var t,e,n,i,r,o,a,s,u,l,c,d,h,v,f,p,y,g,m,_,b,w,k,E,C;function x(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t){for(var e=1;e=0;--r){var o=this.tryEntries[r],a=o[4],s=this.prev,u=o[1],l=o[2];if(-1===o[0])return i("end"),!1;if(!u&&!l)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=s){if(s=0;--n){var i=this.tryEntries[n];if(i[0]>-1&&i[0]<=this.prev&&this.prev=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var i=n[4];if("throw"===i.type){var r=i.arg;E(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={i:x(e),r:n,n:i},"next"===this.method&&(this.arg=t),d}},e}function U(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function L(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){U(o,i,r,a,s,"next",t)}function s(t){U(o,i,r,a,s,"throw",t)}a(void 0)}))}}function R(t,e,n){return e=G(e),function(t,e){if(e&&("object"==K(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return H(t)}(t,I()?Reflect.construct(e,n||[],G(t).constructor):e.apply(t,n))}function H(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&D(t,e)}function z(t){var e="function"==typeof Map?new Map:void 0;return z=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(I())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&D(r,n.prototype),r}(t,arguments,G(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),D(n,t)},z(t)}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(I=function(){return!!t})()}function D(t,e){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},D(t,e)}function G(t){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},G(t)}function q(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=B(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function B(t,e){if(t){if("string"==typeof t)return W(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(t,e):void 0}}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}"function"==typeof SuppressedError&&SuppressedError;var Z=globalThis,X=Z.ShadowRoot&&(void 0===Z.ShadyCSS||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tt=Symbol(),et=new WeakMap,nt=function(){return F((function t(e,n,i){if(Q(this,t),this._$cssResult$=!0,i!==tt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}),[{key:"styleSheet",get:function(){var t=this.o,e=this.t;if(X&&void 0===t){var n=void 0!==e&&1===e.length;n&&(t=et.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&et.set(e,t))}return t}},{key:"toString",value:function(){return this.cssText}}])}(),it=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(this._$Ep=e)}},{key:"createRenderRoot",value:function(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return function(t,e){if(X)t.adoptedStyleSheets=e.map((function(t){return t instanceof CSSStyleSheet?t:t.styleSheet}));else{var n,i=q(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=document.createElement("style"),a=Z.litNonce;void 0!==a&&o.setAttribute("nonce",a),o.textContent=r.cssText,t.appendChild(o)}}catch(t){i.e(t)}finally{i.f()}}}(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function(){var t,e;null!==(t=this.renderRoot)&&void 0!==t||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$EO)||void 0===e||e.forEach((function(t){var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}},{key:"enableUpdating",value:function(t){}},{key:"disconnectedCallback",value:function(){var t;null===(t=this._$EO)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}},{key:"attributeChangedCallback",value:function(t,e,n){this._$AK(t,n)}},{key:"_$ET",value:function(t,e){var n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(void 0!==i&&!0===n.reflect){var r,o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:yt).toAttribute(e,n.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}},{key:"_$AK",value:function(t,e){var n=this.constructor,i=n._$Eh.get(t);if(void 0!==i&&this._$Em!==i){var r,o,a,s,u=n.getPropertyOptions(i),l="function"==typeof u.converter?{fromAttribute:u.converter}:void 0!==(null===(r=u.converter)||void 0===r?void 0:r.fromAttribute)?u.converter:yt;this._$Em=i,this[i]=null!==(o=null!==(a=l.fromAttribute(e,u.type))&&void 0!==a?a:null===(s=this._$Ej)||void 0===s?void 0:s.get(i))&&void 0!==o?o:null,this._$Em=null}}},{key:"requestUpdate",value:function(t,e,n){if(void 0!==t){var i,r,o=this.constructor,a=this[t];if(null!=n||(n=o.getPropertyOptions(t)),!((null!==(i=n.hasChanged)&&void 0!==i?i:gt)(a,e)||n.useDefault&&n.reflect&&a===(null===(r=this._$Ej)||void 0===r?void 0:r.get(t))&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(t,e,n,i){var r,o,a,s=n.useDefault,u=n.reflect,l=n.wrapped;s&&!(null!==(r=this._$Ej)&&void 0!==r?r:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!==(o=null!=i?i:e)&&void 0!==o?o:this[t]),!0!==l||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===u&&this._$Em!==t&&(null!==(a=this._$Eq)&&void 0!==a?a:this._$Eq=new Set).add(t))}},{key:"_$EP",value:(e=L(T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isUpdatePending=!0,t.prev=1,t.next=4,this._$ES;case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),Promise.reject(t.t0);case 9:if(e=this.scheduleUpdate(),t.t1=null!=e,!t.t1){t.next=14;break}return t.next=14,e;case 14:return t.abrupt("return",!this.isUpdatePending);case 15:case"end":return t.stop()}}),t,this,[[1,6]])}))),function(){return e.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){var t;if(null!==(t=this.renderRoot)&&void 0!==t||(this.renderRoot=this.createRenderRoot()),this._$Ep){var e,n=q(this._$Ep);try{for(n.s();!(e=n.n()).done;){var i=P(e.value,2),r=i[0],o=i[1];this[r]=o}}catch(t){n.e(t)}finally{n.f()}this._$Ep=void 0}var a=this.constructor.elementProperties;if(a.size>0){var s,u=q(a);try{for(u.s();!(s=u.n()).done;){var l=P(s.value,2),c=l[0],d=l[1],h=d.wrapped,v=this[c];!0!==h||this._$AL.has(c)||void 0===v||this.C(c,void 0,d,v)}}catch(t){u.e(t)}finally{u.f()}}}var f=!1,p=this._$AL;try{var y;(f=this.shouldUpdate(p))?(this.willUpdate(p),null!==(y=this._$EO)&&void 0!==y&&y.forEach((function(t){var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(p)):this._$EM()}catch(p){throw f=!1,this._$EM(),p}f&&this._$AE(p)}}},{key:"willUpdate",value:function(t){}},{key:"_$AE",value:function(t){var e;null!==(e=this._$EO)&&void 0!==e&&e.forEach((function(t){var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{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(t){return!0}},{key:"update",value:function(t){var e=this;this._$Eq&&(this._$Eq=this._$Eq.forEach((function(t){return e._$ET(t,e[t])}))),this._$EM()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}}],[{key:"addInitializer",value:function(t){var e;this._$Ei(),(null!==(e=this.l)&&void 0!==e?e:this.l=[]).push(t)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&j(this._$Eh.keys())}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt;if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){var n=Symbol(),i=this.getPropertyDescriptor(t,n,e);void 0!==i&&at(this.prototype,t,i)}}},{key:"getPropertyDescriptor",value:function(t,e,n){var i,r=null!==(i=st(this.prototype,t))&&void 0!==i?i:{get:function(){return this[e]},set:function(t){this[e]=t}},o=r.get,a=r.set;return{get:o,set:function(e){var i=null==o?void 0:o.call(this);null!=a&&a.call(this,e),this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){var e;return null!==(e=this.elementProperties.get(t))&&void 0!==e?e:mt}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(pt("elementProperties"))){var t=ct(this);t.finalize(),void 0!==t.l&&(this.l=j(t.l)),this.elementProperties=new Map(t.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(pt("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){var t,e=this.properties,n=q([].concat(j(ut(e)),j(lt(e))));try{for(n.s();!(t=n.n()).done;){var i=t.value;this.createProperty(i,e[i])}}catch(t){n.e(t)}finally{n.f()}}var r=this[Symbol.metadata];if(null!==r){var o=litPropertyMetadata.get(r);if(void 0!==o){var a,s=q(o);try{for(s.s();!(a=s.n()).done;){var u=P(a.value,2),l=u[0],c=u[1];this.elementProperties.set(l,c)}}catch(t){s.e(t)}finally{s.f()}}}this._$Eh=new Map;var d,h=q(this.elementProperties);try{for(h.s();!(d=h.n()).done;){var v=P(d.value,2),f=v[0],p=v[1],y=this._$Eu(f,p);void 0!==y&&this._$Eh.set(y,f)}}catch(t){h.e(t)}finally{h.f()}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(t){var e=[];if(Array.isArray(t)){var n,i=q(new Set(t.flat(1/0).reverse()));try{for(i.s();!(n=i.n()).done;){var r=n.value;e.unshift(rt(r))}}catch(t){i.e(t)}finally{i.f()}}else void 0!==t&&e.push(rt(t));return e}},{key:"_$Eu",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}}]);var e}();_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[pt("elementProperties")]=new Map,_t[pt("finalized")]=new Map,null!=ft&&ft({ReactiveElement:_t}),(null!==(n=dt.reactiveElementVersions)&&void 0!==n?n:dt.reactiveElementVersions=[]).push("2.1.0");var bt=globalThis,wt=bt.trustedTypes,kt=wt?wt.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,Et="$lit$",Ct="lit$".concat(Math.random().toFixed(9).slice(2),"$"),xt="?"+Ct,$t="<".concat(xt,">"),At=document,St=function(){return At.createComment("")},Ot=function(t){return null===t||"object"!=K(t)&&"function"!=typeof t},Mt=Array.isArray,jt="[ \t\n\f\r]",Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Tt=/-->/g,Ut=/>/g,Lt=RegExp(">|".concat(jt,"(?:([^\\s\"'>=/]+)(").concat(jt,"*=").concat(jt,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),Rt=/'/g,Ht=/"/g,Nt=/^(?:script|style|textarea|title)$/i,zt=function(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r":3===e?"":"",a=Pt,s=0;s"===c[0]?(a=null!=n?n:Pt,d=-1):void 0===c[1]?d=-2:(d=a.lastIndex-c[2].length,l=c[1],a=void 0===c[3]?Lt:'"'===c[3]?Ht:Rt):a===Ht||a===Rt?a=Lt:a===Tt||a===Ut?a=Pt:(a=Lt,n=void 0);var v=a===Lt&&t[s+1].startsWith("/>")?" ":"";o+=a===Pt?u+$t:d>=0?(r.push(l),u.slice(0,d)+Et+u.slice(d)+Ct+v):u+Ct+(-2===d?s:v)}return[Bt(t,o+(t[i]||"")+(2===e?"":3===e?"":"")),r]},Qt=function(){return F((function t(e,n){var i,r=e.strings,o=e._$litType$;Q(this,t),this.parts=[];var a=0,s=0,u=r.length-1,l=this.parts,c=P(Wt(r,o),2),d=c[0],h=c[1];if(this.el=t.createElement(d,n),qt.currentNode=this.el.content,2===o||3===o){var v=this.el.content.firstChild;v.replaceWith.apply(v,j(v.childNodes))}for(;null!==(i=qt.nextNode())&&l.length0){i.textContent=wt?wt.emptyScript:"";for(var k=0;k2&&void 0!==arguments[2]?arguments[2]:t,u=arguments.length>3?arguments[3]:void 0;if(e===It)return e;var l=void 0!==u?null===(n=s._$Co)||void 0===n?void 0:n[u]:s._$Cl,c=Ot(e)?void 0:e._$litDirective$;return(null===(i=l)||void 0===i?void 0:i.constructor)!==c&&(null!==(r=l)&&void 0!==r&&null!==(o=r._$AO)&&void 0!==o&&o.call(r,!1),void 0===c?l=void 0:(l=new c(t))._$AT(t,s,u),void 0!==u?(null!==(a=s._$Co)&&void 0!==a?a:s._$Co=[])[u]=l:s._$Cl=l),void 0!==l&&(e=Vt(t,l._$AS(t,e.values),l,u)),e}var Ft=function(){return F((function t(e,n){Q(this,t),this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}),[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(t){var e,n=this._$AD,i=n.el.content,r=n.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:At).importNode(i,!0);qt.currentNode=o;for(var a=qt.nextNode(),s=0,u=0,l=r[0];void 0!==l;){var c;if(s===l.index){var d=void 0;2===l.type?d=new Jt(a,a.nextSibling,this,t):1===l.type?d=new l.ctor(a,l.name,l.strings,this,t):6===l.type&&(d=new te(a,this,t)),this._$AV.push(d),l=r[++u]}s!==(null===(c=l)||void 0===c?void 0:c.index)&&(a=qt.nextNode(),s++)}return qt.currentNode=At,o}},{key:"p",value:function(t){var e,n=0,i=q(this._$AV);try{for(i.s();!(e=i.n()).done;){var r=e.value;void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,n),n+=r.strings.length-2):r._$AI(t[n])),n++}}catch(t){i.e(t)}finally{i.f()}}}])}(),Jt=function(){function t(e,n,i,r){var o;Q(this,t),this.type=2,this._$AH=Dt,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}return F(t,[{key:"_$AU",get:function(){var t,e;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cv}},{key:"parentNode",get:function(){var t,e=this._$AA.parentNode,n=this._$AM;return void 0!==n&&11===(null===(t=e)||void 0===t?void 0:t.nodeType)&&(e=n.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){t=Vt(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),Ot(t)?t===Dt||null==t||""===t?(this._$AH!==Dt&&this._$AR(),this._$AH=Dt):t!==this._$AH&&t!==It&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):function(t){return Mt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])}(t)?this.k(t):this._(t)}},{key:"O",value:function(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"T",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}},{key:"_",value:function(t){this._$AH!==Dt&&Ot(this._$AH)?this._$AA.nextSibling.data=t:this.T(At.createTextNode(t)),this._$AH=t}},{key:"$",value:function(t){var e,n=t.values,i=t._$litType$,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Qt.createElement(Bt(i.h,i.h[0]),this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(n);else{var o=new Ft(r,this),a=o.u(this.options);o.p(n),this.T(a),this._$AH=o}}},{key:"_$AC",value:function(t){var e=Gt.get(t.strings);return void 0===e&&Gt.set(t.strings,e=new Qt(t)),e}},{key:"k",value:function(e){Mt(this._$AH)||(this._$AH=[],this._$AR());var n,i,r=this._$AH,o=0,a=q(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;o===r.length?r.push(n=new t(this.O(St()),this.O(St()),this,this.options)):n=r[o],n._$AI(s),o++}}catch(t){a.e(t)}finally{a.f()}o0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,e=arguments.length>1?arguments[1]:void 0;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){var n,i=t.nextSibling;t.remove(),t=i}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cv=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}])}(),Kt=function(){return F((function t(e,n,i,r,o){Q(this,t),this.type=1,this._$AH=Dt,this._$AN=void 0,this.element=e,this.name=n,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Dt}),[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=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,r=this.strings,o=!1;if(void 0===r)t=Vt(this,t,e,0),(o=!Ot(t)||t!==this._$AH&&t!==It)&&(this._$AH=t);else{var a,s,u=t;for(t=r[0],a=0;a1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:Dt)!==It){var n=this._$AH,i=t===Dt&&n!==Dt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==Dt&&(n===Dt||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}])}(),te=function(){return F((function t(e,n,i){Q(this,t),this.element=e,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(t){Vt(this,t)}}])}(),ee=bt.litHtmlPolyfillSupport;null!=ee&&ee(Qt,Jt),(null!==(i=bt.litHtmlVersions)&&void 0!==i?i:bt.litHtmlVersions=[]).push("3.3.0");var ne=globalThis,ie=function(){function t(){var e;return Q(this,t),(e=R(this,t,arguments)).renderOptions={host:H(e)},e._$Do=void 0,e}return N(t,_t),F(t,[{key:"createRenderRoot",value:function(){var e,n,i=O(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),O(t,"update",this,3)([e]),this._$Do=function(t,e,n){var i,r=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:e,o=r._$litPart$;if(void 0===o){var a,s=null!==(a=null==n?void 0:n.renderBefore)&&void 0!==a?a:null;r._$litPart$=o=new Jt(e.insertBefore(St(),s),s,void 0,null!=n?n:{})}return o._$AI(t),o}(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;O(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;O(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return It}}])}();ie._$litElement$=!0,ie.finalized=!0,null===(r=ne.litElementHydrateSupport)||void 0===r||r.call(ne,{LitElement:ie});var re=ne.litElementPolyfillSupport;null==re||re({LitElement:ie}),(null!==(o=ne.litElementVersions)&&void 0!==o?o:ne.litElementVersions=[]).push("4.2.0");var oe={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:gt},ae=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=n.kind,r=n.metadata,o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),o.set(n.name,t),"accessor"===i){var a=n.name;return{set:function(n){var i=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,i,t)},init:function(e){return void 0!==e&&this.C(a,void 0,t,e),e}}}if("setter"===i){var s=n.name;return function(n){var i=this[s];e.call(this,n),this.requestUpdate(s,i,t)}}throw Error("Unsupported decorator location: "+i)};function se(t){return function(e,n){return"object"==K(n)?ae(t,e,n):function(t,e,n){var i=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),i?Object.getOwnPropertyDescriptor(e,n):void 0}(t,e,n)}}function ue(t){return se(A(A({},t),{},{state:!0,attribute:!1}))}var le=function(){function t(){var e;return Q(this,t),(e=R(this,t,arguments)).cards=[],e._editMode=!1,e._editorLoaded=!1,e}return N(t,ie),F(t,[{key:"setConfig",value:(n=L(T().mark((function t(e){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._config=Object.assign({},e),this._config.view_layout&&void 0===this._config.layout&&(this._config.layout=this._config.view_layout);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"updated",value:(e=L(T().mark((function t(e){var n,i,r,o,a,s,u=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.has("lovelace")&&(null===(n=this.lovelace)||void 0===n?void 0:n.editMode)!=(null===(i=e.get("lovelace"))||void 0===i?void 0:i.editMode)&&((null===(r=this.lovelace)||void 0===r?void 0:r.editMode)&&!this._editorLoaded&&(this._editorLoaded=!0,(s=document.createElement("hui-masonry-view")).lovelace={editMode:!0},s.willUpdate(new Map)),this.cards.forEach((function(t){var e;return t.editMode=null===(e=u.lovelace)||void 0===e?void 0:e.editMode})),this._editMode=null!==(a=null===(o=this.lovelace)||void 0===o?void 0:o.editMode)&&void 0!==a&&a);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"_shouldShow",value:function(t,e,n){var i,r,o,a,s,u,l,c;return"always"===(null===(i=e.view_layout)||void 0===i?void 0:i.show)||"never"!==(null===(r=e.view_layout)||void 0===r?void 0:r.show)&&(("shown"!==(null===(a=null===(o=e.view_layout)||void 0===o?void 0:o.show)||void 0===a?void 0:a.sidebar)||"auto"!==(null===(s=this.hass)||void 0===s?void 0:s.dockedSidebar)&&!this.narrow)&&!("hidden"===(null===(l=null===(u=e.view_layout)||void 0===u?void 0:u.show)||void 0===l?void 0:l.sidebar)&&"docked"===(null===(c=this.hass)||void 0===c?void 0:c.dockedSidebar)&&!this.narrow))}},{key:"getCardElement",value:function(t){var e;if(!(null===(e=this.lovelace)||void 0===e?void 0:e.editMode))return t.card;var n=document.createElement("hui-card-options");return n.hass=this.hass,n.lovelace=this.lovelace,n.path=[this.index,t.index],t.card.editMode=!0,n.appendChild(t.card),!1===t.show&&(n.style.border="1px solid red"),n}},{key:"_addCard",value:function(){this.dispatchEvent(new CustomEvent("ll-create-card"))}},{key:"_render_fab",value:function(){var t;return!0==!(null===(t=this.lovelace)||void 0===t?void 0:t.editMode)?zt(a||(a=x([""]))):zt(s||(s=x(["\n \n ',"\n "])),this._render_fab())}}],[{key:"styles",get:function(){return[this._fab_styles,it(c||(c=x(["\n :host {\n display: block;\n height: 100%;\n box-sizing: border-box;\n overflow-y: var(--layout-overflow);\n }\n\n #columns {\n display: grid;\n grid-auto-columns: minmax(\n var(--column-width),\n var(--column-max-width)\n );\n grid-template-columns: var(--column-widths);\n justify-content: center;\n justify-items: center;\n margin: var(--layout-margin);\n padding: var(--layout-padding);\n height: var(--layout-height);\n overflow-y: var(--layout-overflow);\n }\n .column {\n grid-row: 1/2;\n max-width: var(--column-max-width);\n width: 100%;\n }\n .column > * {\n display: block;\n margin: var(--card-margin);\n }\n "])))]}}]);var e,n,i,r,o,a,s}();Y([se()],ce.prototype,"_columns",void 0),Y([se()],ce.prototype,"_config",void 0);var de=function(){function t(){return Q(this,t),R(this,t,arguments)}return N(t,ce),F(t,[{key:"_placeColumnCards",value:(e=L(T().mark((function t(e,n){var i,r,o,a,s,u,l;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=function(){for(var t=0,n=0;n\n ',""])),this._render_fab())}}],[{key:"styles",get:function(){return[this._fab_styles,it(h||(h=x(["\n :host {\n height: 100%;\n box-sizing: border-box;\n }\n #root {\n display: grid;\n justify-content: stretch;\n margin: var(--layout-margin);\n padding: var(--layout-padding);\n height: var(--layout-height);\n overflow-y: var(--layout-overflow);\n }\n #root > * {\n margin: var(--masonry-view-card-margin, 4px 4px 8px);\n }\n "])))]}}]);var e,n,i}();customElements.define("grid-layout",ye);var ge=function(){function t(){var e;return Q(this,t),(e=R(this,t,arguments)).editMode=!1,e.isPanel=!1,e._cards=[],e}return N(t,ie),F(t,[{key:"setConfig",value:function(t){this._config=Object.assign({},t),this._config.entities&&(this._config.cards=this._config.entities.map((function(t){return t.type?t:Object.assign(Object.assign({},t),{type:"entity"})})));var e=t.layout_type;e?((null==e?void 0:e.endsWith("-layout"))||(e+="-layout"),e.startsWith("custom:")&&(e=e.substring(7))):e="hui-masonry-view",this._layoutType=e}},{key:"updated",value:(i=L(T().mark((function e(n){var i,r,o,a=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O(t,"updated",this,3)([n]),!n.has("_layoutType")&&!n.has("_config")){e.next=12;break}return r={type:this._layoutType,layout:this._config.layout||this._config.layout_options,cards:this._config.cards},o=document.createElement(this._layoutType),null===(i=o.setConfig)||void 0===i||i.call(o,r),this._layoutElement=o,e.next=8,this._createCards();case 8:this._layoutElement.hass=this.hass,this._layoutElement.narrow=!1,this._layoutElement.lovelace=Object.assign(Object.assign({},this._getLovelace()),{editMode:!1}),this._layoutElement.index=1;case 12:n.has("hass")&&(this._cards.forEach((function(t){t.hass=a.hass})),this._layoutElement&&(this._layoutElement.hass=this.hass)),n.has("_cards")&&this._layoutElement&&(this._layoutElement.cards=this._cards),n.has("editMode")&&this._layoutElement&&(this._layoutElement.lovelace=Object.assign(Object.assign({},this._getLovelace()),{editMode:!1}));case 15:case"end":return e.stop()}}),e,this)}))),function(t){return i.apply(this,arguments)})},{key:"_getLovelace",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return t.lovelace?t.lovelace:"home-assistant"!==t.localName?t.parentElement&&t.parentElement.host?this._getLovelace(t.parentElement.host):t.parentNode&&t.parentNode.host?this._getLovelace(t.parentNode.host):t.parentElement?this._getLovelace(t.parentElement):t.parentNode?this._getLovelace(t.parentNode):void 0:void 0}},{key:"_createCard",value:function(t,e){var n=this,i=e.createCardElement(t);return i.addEventListener("ll-rebuild",(function(e){e.stopPropagation(),n._rebuildCard(i,t)})),i.hass=this.hass,i}},{key:"_createCards",value:(n=L(T().mark((function t(){var e,n=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.loadCardHelpers();case 2:e=t.sent,this._cards=this._config.cards.map((function(t){return n._createCard(t,e)}));case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"_rebuildCard",value:(e=L(T().mark((function t(e,n){var i,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.loadCardHelpers();case 2:i=t.sent,r=this._createCard(n,i),e.parentElement&&e.parentElement.replaceChild(r,e),this._cards=this._cards.map((function(t){return t===e?r:t}));case 6:case"end":return t.stop()}}),t,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"render",value:function(){return zt(v||(v=x(["",""])),this._layoutElement)}}],[{key:"styles",get:function(){return it(f||(f=x(["\n :host(:not(:first-child)) {\n margin-top: 0 !important;\n }\n :host(:not(:last-child)) {\n margin-bottom: 0 !important;\n }\n "])))}},{key:"getConfigElement",value:function(){return document.createElement("layout-card-editor")}},{key:"getStubConfig",value:function(){return{layout_type:"masonry",layout:{},cards:[]}}}]);var e,n,i}();Y([se()],ge.prototype,"hass",void 0),Y([se()],ge.prototype,"editMode",void 0),Y([se()],ge.prototype,"isPanel",void 0),Y([se()],ge.prototype,"_config",void 0),Y([se()],ge.prototype,"_cards",void 0),Y([se()],ge.prototype,"_layoutElement",void 0),Y([se()],ge.prototype,"_layoutType",void 0),customElements.define("layout-card",ge),window.customCards=window.customCards||[],window.customCards.push({type:"layout-card",name:"Layout Card",preview:!1,description:"Like a stack card, but with way more control."});var me=function(){var t=L(T().mark((function t(){var e,n,i,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!customElements.get("ha-form")){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,null===(n=(e=window).loadCardHelpers)||void 0===n?void 0:n.call(e);case 4:if(i=t.sent){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,i.createCardElement({type:"entity"});case 9:if(r=t.sent){t.next=12;break}return t.abrupt("return");case 12:return t.next=14,r.getConfigElement();case 14:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),_e=[{value:"custom:masonry-layout",label:"Masonry (layout-card)"},{value:"custom:horizontal-layout",label:"Horizontal (layout-card)"},{value:"custom:vertical-layout",label:"Vertical (layout-card)"},{value:"custom:grid-layout",label:"Grid (layout-card)"}],be=["masonry","sidebar","panel"],we=function(){function t(){var e;return Q(this,t),(e=R(this,t,arguments))._selectedTab=0,e._selectedCard=0,e._cardGUIMode=!0,e._cardGUIModeAvailable=!0,e._schema=function(t){return[{name:"layout_type",selector:{select:{options:[].concat(j(be.map((function(e){return{value:e,label:t("ui.panel.lovelace.editor.edit_view.types.".concat(e))}}))),_e)}}},{name:"layout",selector:{object:{}}}]},e}return N(t,ie),F(t,[{key:"setConfig",value:function(t){this._config=t}},{key:"firstUpdated",value:(n=L(T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return me(),t.next=3,this._preloadCardEditors();case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"_preloadCardEditors",value:(e=L(T().mark((function t(){var e,n,i,r,o;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(n=(e=window).loadCardHelpers)||void 0===n?void 0:n.call(e);case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,r.createCardElement({type:"vertical-stack",cards:[]});case 7:return o=t.sent,t.next=10,customElements.whenDefined("hui-vertical-stack-card");case 10:if(!(null===(i=null==o?void 0:o.constructor)||void 0===i?void 0:i.getConfigElement)){t.next=13;break}return t.next=13,o.constructor.getConfigElement();case 13:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"_handleSwitchTab",value:function(t){t.stopPropagation(),this._selectedTab=parseInt(t.detail.name,10)}},{key:"_editCard",value:function(t){t.stopPropagation(),"add-card"!==t.detail.name?(this._cardGUIMode=!0,this._cardEditorEl&&(this._cardEditorEl.GUImode=!0),this._cardGUIModeAvailable=!0,this._selectedCard=parseInt(t.detail.name,10)):this._selectedCard=this._config.cards.length}},{key:"_addCard",value:function(t){t.stopPropagation();var e=j(this._config.cards);e.push(t.detail.config),this._config=Object.assign(Object.assign({},this._config),{cards:e}),this._selectedCard=this._config.cards.length-1,this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:this._config}}))}},{key:"_updateCard",value:function(t){t.stopPropagation();var e=j(this._config.cards);e[this._selectedCard]=t.detail.config,this._config=Object.assign(Object.assign({},this._config),{cards:e}),this._cardGUIModeAvailable=t.detail.guiModeAvailable,this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:this._config}}))}},{key:"_GUIModeChange",value:function(t){t.stopPropagation(),this._cardGUIMode=t.detail.guiMode,this._cardGUIModeAvailable=t.detail.guiModeAvailable}},{key:"_toggleMode",value:function(t){this._cardEditorEl.toggleMode()}},{key:"_moveCard",value:function(t){var e=this._selectedCard,n=e+t.currentTarget.move,i=j(this._config.cards),r=i.splice(e,1)[0];i.splice(n,0,r),this._config=Object.assign(Object.assign({},this._config),{cards:i}),this._selectedCard=n,this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:this._config}}))}},{key:"_deleteCard",value:function(){var t=j(this._config.cards);t.splice(this._selectedCard,1),this._config=Object.assign(Object.assign({},this._config),{cards:t}),this._selectedCard=Math.max(0,this._selectedCard-1),this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:this._config}}))}},{key:"_valueChanged",value:function(t){t.stopPropagation();var e=t.detail.value;this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:e}}))}},{key:"_computeLabel",value:function(t){return"layout_type"===t.name?this.hass.localize("ui.panel.lovelace.editor.edit_view.type"):"layout"===t.name?"Layout options (layout-card)":void 0}},{key:"render",value:function(){return this.hass&&this._config?zt(y||(y=x(['\n
\n \n \n Layout\n \n \n Cards\n \n \n
\n ',"\n
\n
\n "])),this._handleSwitchTab,0==this._selectedTab,0,1==this._selectedTab,1,[this._renderLayoutEditor,this._renderCardsEditor][this._selectedTab].bind(this)()):zt(p||(p=x([""])))}},{key:"_renderLayoutEditor",value:function(){var t=this._schema(this.hass.localize),e=Object.assign({},this._config);return zt(g||(g=x(['\n

\n See\n layout-card on GitHub for usage instructions.\n

\n \n \n \n \n \n
\n ',"\n
\n \n "])),this._editCard,this._config.cards.map((function(e,n){return zt(b||(b=x(['\n \n \n ',"\n \n \n \n \n \n \n \n \n \n \n \n \n "])),this._toggleMode,!this._cardGUIModeAvailable,this.hass.localize(this._cardEditorEl||this._cardGUIMode?"ui.panel.lovelace.editor.edit_card.show_code_editor":"ui.panel.lovelace.editor.edit_card.show_visual_editor"),0===t,this._moveCard,-1,"mdi:arrow-left",t===e-1,this._moveCard,1,"mdi:arrow-right",this._deleteCard,"mdi:delete",this.hass,this._config.cards[t],this.lovelace,this._updateCard,this._GUIModeChange):zt(k||(k=x(["\n \n "])),this.hass,this.lovelace,this._addCard))}}],[{key:"styles",get:function(){return[it(E||(E=x(['\n mwc-tab-bar {\n border-bottom: 1px solid var(--divider-color);\n }\n\n .layout,\n .cards #editor {\n margin-top: 8px;\n border: 1px solid var(--divider-color);\n padding: 12px;\n }\n\n #add-card {\n max-width: 32px;\n padding: 0;\n }\n ha-tab-group {\n margin-top: -16px;\n margin-bottom: 16px;\n }\n ha-tab-group-tab {\n flex: 1;\n }\n ha-tab-group-tab::part(base) {\n width: 100%;\n justify-content: center;\n }\n ha-tab-group-tab[panel="?"] {\n flex: 0;\n }\n\n .cards .card-options {\n display: flex;\n justify-content: flex-end;\n width: 100%;\n }\n #editor {\n border: 1px solid var(--divider-color);\n padding: 12px;\n }\n .gui-mode-button {\n margin-right: auto;\n }\n\n a {\n color: var(--primary-color);\n }\n '])))]}}]);var e,n}();Y([se()],we.prototype,"_config",void 0),Y([se()],we.prototype,"lovelace",void 0),Y([se()],we.prototype,"hass",void 0),Y([ue()],we.prototype,"_selectedTab",void 0),Y([ue()],we.prototype,"_selectedCard",void 0),Y([ue()],we.prototype,"_cardGUIMode",void 0),Y([ue()],we.prototype,"_cardGUIModeAvailable",void 0),Y([function(t){return function(e,n,i){return function(t,e,n){return n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=K(e)&&Object.defineProperty(t,e,n),n}(e,n,{get:function(){return function(e){var n,i;return null!==(n=null===(i=e.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==n?n:null}(this)}})}}("hui-card-element-editor")],we.prototype,"_cardEditorEl",void 0),customElements.define("layout-card-editor",we),customElements.whenDefined("hui-card-element-editor").then((function(){var t=customElements.get("hui-card-element-editor"),e=t.prototype.getConfigElement;t.prototype.getConfigElement=L(T().mark((function t(){var n,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.bind(this)();case 2:if(n=t.sent){i=n.setConfig;try{n.setConfig=function(t){var e=JSON.parse(JSON.stringify(t));this._layoutData=e.view_layout,delete e.view_layout,i.bind(this)(e)}}catch(t){console.warn(t)}}return t.abrupt("return",n);case 5:case"end":return t.stop()}}),t,this)})));var n=t.prototype._handleUIConfigChanged;t.prototype._handleUIConfigChanged=function(t){this._configElement&&this._configElement._layoutData&&(t.detail.config.view_layout=this._configElement._layoutData),n.bind(this)(t)}})),customElements.whenDefined("hui-view-editor").then((function(){var t=customElements.get("hui-view-editor"),e=t.prototype.firstUpdated;t.prototype.firstUpdated=function(){var t=this;null==e||e.bind(this)(),this._oldSchema=this._schema,this._schema=function(){var e,n=t._oldSchema.apply(t,arguments),i=n.find((function(t){return"type"==t.name}));if("layout"===i.name)return n;i.selector.select.options.find((function(t){return t.value===_e[0].value}))||(e=i.selector.select.options).push.apply(e,_e);return void 0===n.find((function(t){return"layout"===t.name}))&&n.push({name:"layout",selector:{object:{}}}),n};var n=document.createElement("p");n.innerHTML='\n You have layout-card installed which adds some options to this dialog.
\n Please see\n layout-card on GitHubfor usage instructions.\n \n ',this.shadowRoot.appendChild(n),this.requestUpdate()}}));var ke=function(){function t(){return Q(this,t),R(this,t,arguments)}return N(t,z(HTMLElement)),F(t,[{key:"setConfig",value:function(t){var e,n;this.height=null!==(e=t.height)&&void 0!==e?e:50,this.size=null!==(n=t.size)&&void 0!==n?n:Math.ceil(this.height/50),this.style.cssText="\n display: block;\n height: ".concat(this.height,"px;\n ")}},{key:"getCardSize",value:function(){return this.size}}],[{key:"getConfigElement",value:function(){return document.createElement("gap-card-editor")}},{key:"getStubConfig",value:function(){return{}}}])}();customElements.define("gap-card",ke),window.customCards=window.customCards||[],window.customCards.push({type:"gap-card",name:"Gap Card",preview:!1,description:"Add a customizable gap in the layout."});var Ee=function(){function t(){return Q(this,t),R(this,t,arguments)}return N(t,ie),F(t,[{key:"setConfig",value:function(t){this._config=t}},{key:"heightChanged",value:function(t){var e=Object.assign({},this._config);delete e.height,t.detail.value&&(e.height=parseInt(t.detail.value)),this._config=e,this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:e}}))}},{key:"sizeChanged",value:function(t){var e=Object.assign({},this._config);delete e.size,t.detail.value&&(e.size=parseInt(t.detail.value)),this._config=e,this.dispatchEvent(new CustomEvent("config-changed",{detail:{config:e}}))}},{key:"render",value:function(){return zt(C||(C=x(["\n