iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
29 lines • 49.4 kB
JavaScript
/*! For license information please see 17349.d966ec5e3e20eddc.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[17349],{51324:function(e,t,a){a.d(t,{ZS:function(){return c},is:function(){return l.i}});a(62953);var i,r,o=a(40445),n=a(67576),l=a(12451);const s=null!==(r=null===(i=window.ShadyDOM)||void 0===i?void 0:i.inUse)&&void 0!==r&&r;class c extends l.O{findFormElement(){if(!this.shadowRoot||s)return null;const e=this.getRootNode().querySelectorAll("form");for(const t of Array.from(e))if(t.contains(this))return t;return null}connectedCallback(){var e;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(e=this.containingForm)||void 0===e||e.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.containingForm)||void 0===e||e.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",e=>{this.dispatchEvent(new Event("change",e))})}constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=e=>{this.disabled||this.setFormData(e.formData)}}}c.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,o.Cg)([(0,n.MZ)({type:Boolean})],c.prototype,"disabled",void 0)},68462:function(e,t,a){a.d(t,{M:function(){return g}});a(3362),a(62953);var i=a(40445),r=a(7658),o={ROOT:"mdc-form-field"},n={LABEL_SELECTOR:".mdc-form-field > label"},l=function(e){function t(a){var r=e.call(this,(0,i.Cl)((0,i.Cl)({},t.defaultAdapter),a))||this;return r.click=function(){r.handleClick()},r}return(0,i.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(r.I),s=a(12451),c=a(51324),d=a(56161),h=a(5124),p=a(67576),u=a(6412);let m,v=e=>e;class g extends s.O{createAdapter(){return{registerInteractionHandler:(e,t)=>{this.labelEl.addEventListener(e,t)},deregisterInteractionHandler:(e,t)=>{this.labelEl.removeEventListener(e,t)},activateInputRipple:async()=>{const e=this.input;if(e instanceof c.ZS){const t=await e.ripple;t&&t.startPress()}},deactivateInputRipple:async()=>{const e=this.input;if(e instanceof c.ZS){const t=await e.ripple;t&&t.endPress()}}}}get input(){var e,t;return null!==(t=null===(e=this.slottedInputs)||void 0===e?void 0:e[0])&&void 0!==t?t:null}render(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,h.qy)(m||(m=v` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" ="${0}">${0}</label> </div>`),(0,u.H)(e),this._labelClick,this.label)}click(){this._labelClick()}_labelClick(){const e=this.input;e&&(e.focus(),e.click())}constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=l}}(0,i.Cg)([(0,p.MZ)({type:Boolean})],g.prototype,"alignEnd",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],g.prototype,"spaceBetween",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],g.prototype,"nowrap",void 0),(0,i.Cg)([(0,p.MZ)({type:String}),(0,d.P)(async function(e){var t;null===(t=this.input)||void 0===t||t.setAttribute("aria-label",e)})],g.prototype,"label",void 0),(0,i.Cg)([(0,p.P)(".mdc-form-field")],g.prototype,"mdcRoot",void 0),(0,i.Cg)([(0,p.KN)({slot:"",flatten:!0,selector:"*"})],g.prototype,"slottedInputs",void 0),(0,i.Cg)([(0,p.P)("label")],g.prototype,"labelEl",void 0)},38627:function(e,t,a){a.d(t,{R:function(){return r}});let i;const r=(0,a(5124).AH)(i||(i=(e=>e)`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`))},13467:function(e,t,a){var i=a(40445),r=a(41216),o=a(78960),n=a(75640),l=a(91735),s=a(43826),c=a(5124),d=a(67576);let h;class p extends r.R{}p.styles=[l.R,s.R,n.R,o.R,(0,c.AH)(h||(h=(e=>e)`:host{--md-sys-color-primary:var(--primary-text-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--primary-text-color);--md-sys-color-on-secondary-container:var(--primary-text-color);--md-input-chip-container-shape:16px;--md-input-chip-outline-color:var(--outline-color);--md-input-chip-selected-container-color:rgba(
var(--rgb-primary-text-color),
0.15
);--ha-input-chip-selected-container-opacity:1;--md-input-chip-label-text-font:Roboto,sans-serif}::slotted([slot=icon]){display:flex;--mdc-icon-size:var(--md-input-chip-icon-size, 18px)}.selected::before{opacity:var(--ha-input-chip-selected-container-opacity)}`))],p=(0,i.Cg)([(0,d.EM)("ha-input-chip")],p)},9503:function(e,t,a){var i=a(40445),r=a(97577),o=a(5124),n=a(67576);let l,s=e=>e;class c extends r.A{get value(){var e;return null!==(e=this._value)&&void 0!==e?e:null}set value(e){this._value=e}static get styles(){return[r.A.styles,(0,o.AH)(l||(l=s`:host{--wa-form-control-toggle-size:var(--ha-checkbox-size, 20px);--wa-form-control-border-color:var(
--ha-checkbox-border-color,
var(--ha-color-border-neutral-normal)
);--wa-form-control-background-color:var(
--ha-checkbox-background-color,
var(--wa-form-control-background-color)
);--checked-icon-color:var(
--ha-checkbox-checked-icon-color,
var(--wa-color-brand-on-loud)
);--wa-form-control-activated-color:var(
--ha-checkbox-checked-background-color,
var(--ha-color-fill-primary-loud-resting)
);-webkit-tap-highlight-color:transparent;--checked-icon-scale:var(--ha-checkbox-checked-icon-scale, 0.9);--wa-form-control-required-content:var(
--ha-checkbox-required-marker,
var(--ha-input-required-marker, "*")
);--wa-form-control-required-content-offset:var(
--ha-checkbox-required-marker-offset,
0.1rem
)}[part~=base]{align-items:center;gap:var(--ha-space-2)}[part~=control]{border-radius:var(--ha-checkbox-border-radius,var(--ha-border-radius-sm));border-width:var(--ha-checkbox-border-width,var(--ha-border-width-md));margin-inline-end:0}[part~=label]{line-height:1}#hint{font-size:var(--ha-font-size-xs);color:var(--ha-color-text-secondary)}label:has(input:not(:disabled)):hover{--wa-form-control-border-color:var(
--ha-checkbox-border-color-hover,
var(--ha-checkbox-border-color, var(--ha-color-border-neutral-loud))
)}label:has(input:not(:disabled)):hover [part~=control]{background-color:var(--ha-checkbox-background-color-hover,var(--ha-color-form-background-hover))}label:has(input:checked:not(:disabled)):hover [part~=control],label:has(input:indeterminate:not(:disabled)):hover [part~=control]{background-color:var(--ha-checkbox-checked-background-color-hover,var(--ha-color-fill-primary-loud-hover));border-color:var(--ha-checkbox-checked-background-color-hover,var(--ha-color-fill-primary-loud-hover))}`))]}}c=(0,i.Cg)([(0,n.EM)("ha-checkbox")],c)},70947:function(e,t,a){a(62953);var i=a(40445),r=a(50759),o=(a(38625),a(5124)),n=a(67576);a(67094);let l,s,c=e=>e;class d extends r.A{renderCheckboxIcon(){return(0,o.qy)(l||(l=c` <ha-svg-icon id="check" part="checkmark" .path="${0}"></ha-svg-icon> `),this.checked?"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z":"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z")}static get styles(){return[r.A.styles,(0,o.AH)(s||(s=c`:host{min-height:var(--ha-space-10)}#check{visibility:visible;flex-shrink:0}#icon ::slotted(*){color:var(--ha-color-on-neutral-normal)}:host([variant=danger]) #icon ::slotted(*){color:var(--ha-color-on-danger-quiet)}:host([selected]){font-weight:var(--ha-font-weight-medium);color:var(--primary-color);background-color:var(--ha-color-fill-primary-quiet-resting);--icon-primary-color:var(--primary-color)}:host([selected]:hover){background-color:var(--ha-color-fill-primary-quiet-hover)}`))]}constructor(...e){super(...e),this.selected=!1}}(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],d.prototype,"selected",void 0),d=(0,i.Cg)([(0,n.EM)("ha-dropdown-item")],d)},29823:function(e,t,a){a.a(e,async function(e,t){try{a(3362),a(62953);var i=a(40445),r=a(52254),o=a(5124),n=a(67576),l=e([r]);r=(l.then?(await l)():l)[0];let s,c=e=>e;class d extends r.A{get anchorElement(){var e;return null===(e=this.popup)||void 0===e?void 0:e.anchor}set anchorElement(e){this.popup&&(this.popup.anchor&&"ha-icon-button"===this.popup.anchor.localName&&(this.popup.anchor.selected=!1),this.popup.anchor=e)}getTrigger(){return this.anchorElement?this.anchorElement:super.getTrigger()}async showMenu(){await super.showMenu();const e=this.getTrigger();e&&"ha-icon-button"===e.localName&&(e.selected=!0)}async hideMenu(){const e=this.getTrigger();e&&"ha-icon-button"===e.localName&&(e.selected=!1),await super.hideMenu()}static get styles(){return[r.A.styles,(0,o.AH)(s||(s=c`:host{font-size:var(--ha-dropdown-font-size, var(--ha-font-size-m));--wa-color-surface-raised:var(
--card-background-color,
var(--ha-dialog-surface-background, var(--mdc-theme-surface, #fff)),
)}#menu{padding:var(--ha-space-1)}wa-popup::part(popup){z-index:200}`))]}constructor(...e){super(...e),this.dropdownTag="ha-dropdown",this.dropdownItemTag="ha-dropdown-item"}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],d.prototype,"dropdownTag",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],d.prototype,"dropdownItemTag",void 0),d=(0,i.Cg)([(0,n.EM)("ha-dropdown")],d),t()}catch(s){t(s)}})},6:function(e,t,a){a(62953);var i=a(40445),r=a(68462),o=a(38627),n=a(5124),l=a(67576),s=a(6412),c=a(1087);let d,h,p=e=>e;class u extends r.M{render(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,n.qy)(d||(d=p` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" ="${0}"> <slot name="label">${0}</slot> </label> </div>`),(0,s.H)(e),this._labelClick,this.label)}_labelClick(){const e=this.input;if(e&&(e.focus(),!e.disabled))if("HA-CHECKBOX"===e.tagName)e.checked=!e.checked,(0,c.r)(e,"change");else e.click()}constructor(...e){super(...e),this.disabled=!1}}u.styles=[o.R,(0,n.AH)(h||(h=p`:host(:not([alignEnd])) ::slotted(ha-switch){margin-right:10px;margin-inline-end:10px;margin-inline-start:initial}.mdc-form-field{align-items:var(--ha-formfield-align-items,center);gap:var(--ha-space-1)}.mdc-form-field>label{direction:var(--direction);margin-inline-start:0;margin-inline-end:auto;padding:0}:host([disabled]) label{color:var(--disabled-text-color)}`))],(0,i.Cg)([(0,l.MZ)({type:Boolean,reflect:!0})],u.prototype,"disabled",void 0),u=(0,i.Cg)([(0,l.EM)("ha-formfield")],u)},64138:function(e,t,a){a.a(e,async function(e,i){try{a.r(t),a.d(t,{HaIconPicker:function(){return w}});a(74423),a(44114),a(26910),a(18111),a(22489),a(7588),a(61701),a(13579),a(3362),a(27495),a(25440),a(62953);var r=a(40445),o=a(5124),n=a(67576),l=a(22786),s=a(1087),c=a(700),d=(a(75064),a(38508)),h=(a(47680),e([d]));d=(h.then?(await h)():h)[0];let p,u,m,v=e=>e,g=[],b=!1;const f=(e,t)=>{var a;const i=`${t}:${e.name}`,r=e.name,o=r.split("-"),n=null!==(a=e.keywords)&&void 0!==a?a:[],l={iconName:r};return o.forEach((e,t)=>{l[`part${t}`]=e}),n.forEach((e,t)=>{l[`keyword${t}`]=e}),{id:i,primary:i,icon:i,search_labels:l,sorting_label:i}},y=async()=>{b=!0;const e=await a.e(81340).then(a.t.bind(a,25143,19));g=e.default.map(e=>f(e,"mdi"));const t=[];Object.keys(c.y).forEach(e=>{t.push(_(e))}),(await Promise.all(t)).forEach(e=>{g.push(...e)})},_=async e=>{try{const t=c.y[e].getIconList;if("function"!=typeof t)return[];return(await t()).map(t=>f(t,e))}catch(t){return console.warn(`Unable to load icon list for ${e} iconset`),[]}},k=e=>(0,o.qy)(p||(p=v` <ha-combo-box-item type="button"> <ha-icon .icon="${0}" slot="start"></ha-icon> ${0} </ha-combo-box-item> `),e.id,e.id);class w extends o.WF{render(){return(0,o.qy)(u||(u=v` <ha-generic-picker allow-custom-value .getItems="${0}" .helper="${0}" .disabled="${0}" .required="${0}" .errorMessage="${0}" .invalid="${0}" .rowRenderer="${0}" .icon="${0}" .label="${0}" .value="${0}" .searchFn="${0}" -changed="${0}"> <slot name="start"></slot> </ha-generic-picker> `),this._getIconPickerItems,this.helper,this.disabled,this.required,this.errorMessage,this.invalid,k,this._icon,this.label,this._value,this._filterIcons,this._valueChanged)}firstUpdated(){b||y().then(()=>{this._getIconPickerItems=()=>g,this.requestUpdate()})}_valueChanged(e){e.stopPropagation(),this._setValue(e.detail.value)}_setValue(e){this.value=e,(0,s.r)(this,"value-changed",{value:this._value},{bubbles:!1,composed:!1})}get _icon(){var e;return null!==(e=this.value)&&void 0!==e&&e.length?this.value:this.placeholder}get _value(){return this.value||""}constructor(...e){super(...e),this.disabled=!1,this.required=!1,this.invalid=!1,this._getIconPickerItems=()=>g,this._filterIcons=(0,l.A)((e,t,a)=>{const i=e.toLowerCase().replace(/\s+/g,"-"),r=null!=a&&a.length?a:t;if(!i.length)return r;const o=[];for(const n of r){const e=(n.id.split(":")[1]||n.id).toLowerCase().split("-"),t=n.search_labels?Object.values(n.search_labels).filter(e=>null!==e).map(e=>e.toLowerCase()):[],a=n.id.toLowerCase();e.includes(i)?o.push({item:n,rank:1}):t.includes(i)?o.push({item:n,rank:2}):a.includes(i)?o.push({item:n,rank:3}):t.some(e=>e.includes(i))&&o.push({item:n,rank:4})}return o.sort((e,t)=>e.rank-t.rank).map(e=>e.item)})}}w.styles=(0,o.AH)(m||(m=v`ha-generic-picker{width:100%;display:block}`)),(0,r.Cg)([(0,n.MZ)()],w.prototype,"value",void 0),(0,r.Cg)([(0,n.MZ)()],w.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)()],w.prototype,"helper",void 0),(0,r.Cg)([(0,n.MZ)()],w.prototype,"placeholder",void 0),(0,r.Cg)([(0,n.MZ)({attribute:"error-message"})],w.prototype,"errorMessage",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],w.prototype,"disabled",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],w.prototype,"required",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],w.prototype,"invalid",void 0),w=(0,r.Cg)([(0,n.EM)("ha-icon-picker")],w),i()}catch(p){i(p)}})},606:function(e,t,a){a.a(e,async function(e,t){try{a(74423),a(18111),a(61701),a(62953);var i=a(40445),r=a(5124),o=a(67576),n=a(63672),l=a(22786),s=a(1087),c=a(29823),d=(a(70947),a(3449),a(88285)),h=(a(67094),e([c,d]));[c,d]=h.then?(await h)():h;let p,u,m,v,g,b,f,y,_,k=e=>e;class w extends r.WF{render(){return this.disabled?(0,r.qy)(p||(p=k`${0}${0}`),this._renderField(),this._renderHelper()):(0,r.qy)(u||(u=k` <ha-dropdown placement="bottom" -select="${0}" -show="${0}" -hide="${0}"> ${0} ${0} </ha-dropdown> ${0} `),this._handleSelect,this._handleShow,this._handleHide,this._renderField(),this.options?this.options.map(e=>{var t;const a=["string","number"].includes(typeof e);return(0,r.qy)(m||(m=k` <ha-dropdown-item .value="${0}" .disabled="${0}" .selected="${0}"> ${0} <div class="content"> ${0} ${0} </div> </ha-dropdown-item> `),a?e:e.value,!a&&(null!==(t=e.disabled)&&void 0!==t&&t),this.value===(a?e:e.value),e.iconPath?(0,r.qy)(v||(v=k`<ha-svg-icon slot="icon" .path="${0}"></ha-svg-icon>`),e.iconPath):r.s6,a?e:e.label||e.value,e.secondary?(0,r.qy)(g||(g=k`<div class="secondary">${0}</div>`),e.secondary):r.s6)}):(0,r.qy)(b||(b=k`<slot></slot>`)),this._renderHelper())}_renderField(){const e=this._getValueLabel(this.options,this.value);return(0,r.qy)(f||(f=k` <ha-picker-field slot="trigger" type="button" class="${0}" compact="compact" aria-label="${0}" ="${0}" .label="${0}" .value="${0}" .required="${0}" .disabled="${0}" .hideClearIcon="${0}"> </ha-picker-field> `),this._opened?"opened":"",(0,n.J)(this.label),this._clearValue,this.label,e,this.required,this.disabled,!this.clearable||this.required||this.disabled||!String(this.value))}_renderHelper(){return this.helper?(0,r.qy)(y||(y=k`<ha-input-helper-text .disabled="${0}">${0}</ha-input-helper-text>`),this.disabled,this.helper):r.s6}_handleSelect(e){e.stopPropagation();const t=e.detail.item.value;t!==this.value&&(0,s.r)(this,"selected",{value:t})}_clearValue(){!this.disabled&&this.value&&(0,s.r)(this,"selected",{value:void 0})}_handleShow(){this.style.setProperty("--select-menu-width",`${this._triggerField.offsetWidth}px`),this._opened=!0}_handleHide(){this._opened=!1}constructor(...e){super(...e),this.clearable=!1,this.required=!1,this.disabled=!1,this._opened=!1,this._getValueLabel=(0,l.A)((e,t)=>{const a=void 0!==t?String(t):void 0;if(!e||!a)return a;for(const i of e){const e=["string","number"].includes(typeof i);if(e&&i===a||!e&&String(i.value)===a)return e?i:i.label||i.value}return a})}}w.styles=(0,r.AH)(_||(_=k`:host{position:relative}ha-picker-field.opened{--mdc-text-field-idle-line-color:var(--primary-color)}ha-dropdown-item .content{display:flex;gap:var(--ha-space-1);flex-direction:column}ha-dropdown-item .secondary{font-size:var(--ha-font-size-s);color:var(--ha-color-text-secondary)}ha-dropdown::part(menu){min-width:var(--select-menu-width)}ha-input-helper-text{display:block;margin:var(--ha-space-2) 0 0}`)),(0,i.Cg)([(0,o.MZ)({type:Boolean})],w.prototype,"clearable",void 0),(0,i.Cg)([(0,o.MZ)({attribute:!1})],w.prototype,"options",void 0),(0,i.Cg)([(0,o.MZ)()],w.prototype,"label",void 0),(0,i.Cg)([(0,o.MZ)()],w.prototype,"helper",void 0),(0,i.Cg)([(0,o.MZ)()],w.prototype,"value",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],w.prototype,"required",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],w.prototype,"disabled",void 0),(0,i.Cg)([(0,o.wk)()],w.prototype,"_opened",void 0),(0,i.Cg)([(0,o.P)("ha-picker-field")],w.prototype,"_triggerField",void 0),w=(0,i.Cg)([(0,o.EM)("ha-select")],w),t()}catch(p){t(p)}})},85938:function(e,t,a){a(18111),a(22489),a(3362),a(46058),a(62953);var i=a(40445),r=a(5124),o=a(67576),n=a(1087);let l,s=e=>e;class c extends r.WF{updated(e){e.has("disabled")&&(this.disabled?this._destroySortable():this._createSortable())}disconnectedCallback(){super.disconnectedCallback(),this._shouldBeDestroy=!0,setTimeout(()=>{this._shouldBeDestroy&&(this._destroySortable(),this._shouldBeDestroy=!1)},1)}connectedCallback(){super.connectedCallback(),this._shouldBeDestroy=!1,this.hasUpdated&&!this.disabled&&this._createSortable()}createRenderRoot(){return this}render(){return this.noStyle?r.s6:(0,r.qy)(l||(l=s` <style>.sortable-fallback{display:none!important}.sortable-ghost{box-shadow:0 0 0 2px var(--primary-color);background:rgba(var(--rgb-primary-color),.25);border-radius:var(--ha-border-radius-sm);opacity:.4}.sortable-drag{border-radius:var(--ha-border-radius-sm);opacity:1;background:var(--card-background-color);box-shadow:0px 4px 8px 3px #00000026;cursor:grabbing}</style> `))}async _createSortable(){if(this._sortable)return;const e=this.children[0];if(!e)return;const t=(await Promise.all([a.e(85283),a.e(70322)]).then(a.bind(a,80745))).default,i=Object.assign(Object.assign({scroll:!0,forceAutoScrollFallback:!0,scrollSpeed:20,animation:150},this.options),{},{onChoose:this._handleChoose,onStart:this._handleStart,onEnd:this._handleEnd,onUpdate:this._handleUpdate,onAdd:this._handleAdd,onRemove:this._handleRemove});this.draggableSelector&&(i.draggable=this.draggableSelector),this.handleSelector&&(i.handle=this.handleSelector),void 0!==this.invertSwap&&(i.invertSwap=this.invertSwap),this.group&&(i.group=this.group),this.filter&&(i.filter=this.filter),this._sortable=new t(e,i)}_destroySortable(){this._sortable&&(this._sortable.destroy(),this._sortable=void 0)}constructor(...e){super(...e),this.disabled=!1,this.noStyle=!1,this.invertSwap=!1,this.rollback=!0,this._shouldBeDestroy=!1,this._handleUpdate=e=>{(0,n.r)(this,"item-moved",{newIndex:e.newIndex,oldIndex:e.oldIndex})},this._handleAdd=e=>{(0,n.r)(this,"item-added",{index:e.newIndex,data:e.item.sortableData,item:e.item})},this._handleRemove=e=>{(0,n.r)(this,"item-removed",{index:e.oldIndex})},this._handleEnd=async e=>{(0,n.r)(this,"drag-end"),this.rollback&&e.item.placeholder&&(e.item.placeholder.replaceWith(e.item),delete e.item.placeholder)},this._handleStart=()=>{(0,n.r)(this,"drag-start")},this._handleChoose=e=>{this.rollback&&(e.item.placeholder=document.createComment("sort-placeholder"),e.item.after(e.item.placeholder))}}}(0,i.Cg)([(0,o.MZ)({type:Boolean})],c.prototype,"disabled",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,attribute:"no-style"})],c.prototype,"noStyle",void 0),(0,i.Cg)([(0,o.MZ)({type:String,attribute:"draggable-selector"})],c.prototype,"draggableSelector",void 0),(0,i.Cg)([(0,o.MZ)({type:String,attribute:"handle-selector"})],c.prototype,"handleSelector",void 0),(0,i.Cg)([(0,o.MZ)({type:String,attribute:"filter"})],c.prototype,"filter",void 0),(0,i.Cg)([(0,o.MZ)({type:String})],c.prototype,"group",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,attribute:"invert-swap"})],c.prototype,"invertSwap",void 0),(0,i.Cg)([(0,o.MZ)({attribute:!1})],c.prototype,"options",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],c.prototype,"rollback",void 0),c=(0,i.Cg)([(0,o.EM)("ha-sortable")],c)},70407:function(e,t,a){a.d(t,{Y:function(){return i},e:function(){return r}});const i=(e,t)=>e.callWS({type:"number/device_class_convertible_units",device_class:t}),r=["%","A","B","B/s","BTU/(h⋅ft²)","Beaufort","CCF","EB","EiB","GB","GB/s","GHz","GJ","GW","GWh","Gbit","Gbit/s","Gcal","GiB","GiB/s","Hz","J","K","KiB","KiB/s","L","L/h","L/min","L/s","MB","MB/s","MCF","MHz","MJ","MV","MW","MWh","Mbit","Mbit/s","Mcal","MiB","MiB/s","PB","Pa","PiB","S/cm","TB","TW","TWh","TiB","V","VA","W","W/m²","Wh","Wh/km","YB","YiB","ZB","ZiB","ac","bar","bit","bit/s","cal","cbar","cm","cm²","d","dB","dBA","dBm","fl. oz.","ft","ft/s","ft²","ft³","ft³/min","g","g/m³","gal","gal/d","gal/h","gal/min","h","hPa","ha","in","in/d","in/h","in/s","inHg","inH₂O","in²","kB","kB/s","kHz","kJ","kPa","kV","kVA","kW","kWh","kWh/100km","kbit","kbit/s","kcal","kg","km","km/h","km/kWh","km²","kn","kvar","kvarh","lb","lx","m","m/min","m/s","mA","mHz","mL","mL/s","mPa","mS/cm","mV","mVA","mW","mWh","mbar","mg","mg/dL","mg/m³","mi","mi/kWh","min","mi²","mm","mm/d","mm/h","mm/s","mmHg","mmol/L","mm²","mph","ms","mvar","m²","m³","m³/h","m³/min","m³/s","nmi","oz","ppb","ppm","psi","s","st","var","varh","yd","yd²","°","°C","°F","μA","μS/cm","μV","μg","μg/m³","μs"]},76901:function(e,t,a){a.a(e,async function(e,i){try{a.r(t);a(62953);var r=a(40445),o=a(5124),n=a(67576),l=a(1087),s=a(64138),c=(a(64013),a(92677),a(856)),d=a(91485),h=a(70407),p=a(14503),u=e([s,c,d]);[s,c,d]=u.then?(await u)():u;let m,v,g=e=>e;const b={select:{mode:"dropdown",translation_key:"sensor_unit_of_measurement",custom_value:!0,sort:!0,options:h.e}};class f extends o.WF{set item(e){var t,a,i;(this._item=e,e)?(this._name=e.name||"",this._icon=e.icon||"",this._max=null!==(t=e.max)&&void 0!==t?t:100,this._min=null!==(a=e.min)&&void 0!==a?a:0,this._mode=e.mode||"slider",this._step=null!==(i=e.step)&&void 0!==i?i:1,this._unit_of_measurement=e.unit_of_measurement):(this._item={min:0,max:100},this._name="",this._icon="",this._max=100,this._min=0,this._mode="slider",this._step=1)}focus(){this.updateComplete.then(()=>{var e;return null===(e=this._focusElement)||void 0===e?void 0:e.focus()})}render(){return this.hass?(0,o.qy)(m||(m=g` <div class="form"> <ha-input .value="${0}" .configValue="${0}" ="${0}" .label="${0}" auto-validate required .validationMessage="${0}" dialogInitialFocus .disabled="${0}"></ha-input> <ha-icon-picker .value="${0}" .configValue="${0}" -changed="${0}" .label="${0}" .disabled="${0}"></ha-icon-picker> <ha-input .value="${0}" .configValue="${0}" type="number" step="any" ="${0}" .label="${0}" .disabled="${0}"></ha-input> <ha-input .value="${0}" .configValue="${0}" type="number" step="any" ="${0}" .label="${0}" .disabled="${0}"></ha-input> <ha-radio-group orientation="horizontal" class="mode" .label="${0}" .value="${0}" .disabled="${0}" name="mode" ="${0}"> <ha-radio-option value="slider"> ${0} </ha-radio-option> <ha-radio-option value="box"> ${0} </ha-radio-option> </ha-radio-group> <ha-input .value="${0}" .configValue="${0}" type="number" step="any" ="${0}" .label="${0}" .disabled="${0}"></ha-input> <ha-selector-select .hass="${0}" .label="${0}" .selector="${0}" .disabled="${0}" .value="${0}" .configValue="${0}" -changed="${0}"> </ha-selector-select> </div> `),this._name,"name",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.generic.name"),this.hass.localize("ui.dialogs.helper_settings.required_error_msg"),this.disabled,this._icon,"icon",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.generic.icon"),this.disabled,void 0!==this._min?String(this._min):"","min",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.input_number.min"),this.disabled,void 0!==this._max?String(this._max):"","max",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.input_number.max"),this.disabled,this.hass.localize("ui.dialogs.helper_settings.input_number.mode"),this._mode,this.disabled,this._modeChanged,this.hass.localize("ui.dialogs.helper_settings.input_number.slider"),this.hass.localize("ui.dialogs.helper_settings.input_number.box"),void 0!==this._step?String(this._step):"","step",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.input_number.step"),this.disabled,this.hass,this.hass.localize("ui.dialogs.helper_settings.input_number.unit_of_measurement"),b,this.disabled,this._unit_of_measurement||"","unit_of_measurement",this._valueChanged):o.s6}_modeChanged(e){(0,l.r)(this,"value-changed",{value:Object.assign(Object.assign({},this._item),{},{mode:e.currentTarget.value})})}_valueChanged(e){var t;if(!this.new&&!this._item)return;e.stopPropagation();const a=e.target,i=a.configValue,r="number"===a.type?Number(a.value):(null===(t=e.detail)||void 0===t?void 0:t.value)||a.value;if(this[`_${i}`]===r)return;const o=Object.assign({},this._item);void 0===r||""===r?delete o[i]:o[i]=r,(0,l.r)(this,"value-changed",{value:o})}static get styles(){return[p.RF,(0,o.AH)(v||(v=g`.form{color:var(--primary-text-color)}ha-input{--ha-input-padding-bottom:0}ha-icon-picker,ha-input:not([required]){display:block;margin-bottom:var(--ha-space-5);--ha-input-padding-bottom:0}.mode{margin-bottom:var(--ha-space-4)}`))]}constructor(...e){super(...e),this.new=!1,this.disabled=!1}}(0,r.Cg)([(0,n.MZ)({attribute:!1})],f.prototype,"hass",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],f.prototype,"new",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],f.prototype,"disabled",void 0),(0,r.Cg)([(0,n.wk)()],f.prototype,"_name",void 0),(0,r.Cg)([(0,n.wk)()],f.prototype,"_icon",void 0),(0,r.Cg)([(0,n.wk)()],f.prototype,"_max",void 0),(0,r.Cg)([(0,n.wk)()],f.prototype,"_min",void 0),(0,r.Cg)([(0,n.wk)()],f.prototype,"_mode",void 0),(0,r.Cg)([(0,n.wk)()],f.prototype,"_step",void 0),(0,r.Cg)([(0,n.wk)()],f.prototype,"_unit_of_measurement",void 0),(0,r.Cg)([(0,n.P)("[dialogInitialFocus]")],f.prototype,"_focusElement",void 0),f=(0,r.Cg)([(0,n.EM)("ha-input_number-form")],f),i()}catch(m){i(m)}})},97577:function(e,t,a){a.d(t,{A:function(){return C}});a(27495),a(62953);var i=a(5124),r=a(67576),o=a(6412),n=a(63672),l=a(34514),s=a(40991),c=a(92070),d=a(49546),h=a(9395),p=a(62676),u=a(15477),m=a(31896);a(38625);let v;var g=(0,i.AH)(v||(v=(e=>e)`:host{--checked-icon-color:var(--wa-color-brand-on-loud);--checked-icon-scale:0.8;display:inline-flex;color:var(--wa-form-control-value-color);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);user-select:none;-webkit-user-select:none}[part~=control]{display:inline-flex;flex:0 0 auto;position:relative;align-items:center;justify-content:center;width:var(--wa-form-control-toggle-size);height:var(--wa-form-control-toggle-size);border-color:var(--wa-form-control-border-color);border-radius:min(calc(var(--wa-form-control-toggle-size) * .375),var(--wa-border-radius-s));border-style:var(--wa-border-style);border-width:var(--wa-form-control-border-width);background-color:var(--wa-form-control-background-color);transition:background var(--wa-transition-normal),border-color var(--wa-transition-fast),box-shadow var(--wa-transition-fast),color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);margin-inline-end:.5em}[part~=base]{display:flex;align-items:flex-start;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:inline}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color);border-color:var(--wa-form-control-activated-color);background-color:var(--wa-form-control-activated-color)}[part~=control]:has(> input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;scale:var(--checked-icon-scale)}[part~=icon]::part(svg){translate:0.0009765625em}input:not(:checked,:indeterminate)+[part~=icon]{visibility:hidden}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}`));let b,f,y,_=e=>e;var k=Object.defineProperty,w=Object.getOwnPropertyDescriptor,x=(e,t,a,i)=>{for(var r,o=i>1?void 0:i?w(t,a):t,n=e.length-1;n>=0;n--)(r=e[n])&&(o=(i?r(t,a,o):r(o))||o);return i&&o&&k(t,a,o),o};let C=class extends p.q{static get validators(){const e=i.S$?[]:[(0,d.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...e]}get value(){var e;return null!==(e=this._value)&&void 0!==e?e:"on"}set value(e){this._value=e}handleSizeChange(){(0,s.b)(this.localName,this.size)}get checked(){var e;return this.valueHasChanged?Boolean(this._checked):null!==(e=this._checked)&&void 0!==e?e:this.defaultChecked}set checked(e){this._checked=Boolean(e),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback(),this.handleDefaultCheckedChange()}handleDefaultCheckedChange(){this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(e){super.willUpdate(e),(e.has("value")||e.has("checked")||e.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){const e=!!i.S$||this.hasSlotController.test("hint"),t=!!this.hint||!!e,a=!this.checked&&this.indeterminate,r=a?"indeterminate":"check",s=a?"indeterminate":"check";return(0,i.qy)(b||(b=_` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${0}" name="${0}" value="${0}" .indeterminate="${0}" .checked="${0}" .disabled="${0}" .required="${0}" aria-checked="${0}" aria-describedby="hint" ="${0}"> <wa-icon part="${0}-icon icon" library="system" name="${0}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${0}" class="${0}"> ${0} </slot> `),this.title,(0,n.J)(this.name),(0,n.J)(this._value),(0,l.V)(this.indeterminate),(0,l.V)(this.checked),this.disabled,this.required,this.indeterminate?"mixed":this.checked?"true":"false",this.handleClick,s,r,t?"false":"true",(0,o.H)({"has-slotted":t}),this.hint)}constructor(){var e;super(...arguments),this.hasSlotController=new c.X(this,"hint"),this.title="",this.name=null,this._value=null!==(e=this.getAttribute("value"))&&void 0!==e?e:null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};C.css=[u.A,m.A,g],C.shadowRootOptions=Object.assign(Object.assign({},p.q.shadowRootOptions),{},{delegatesFocus:!0}),x([(0,r.P)('input[type="checkbox"]')],C.prototype,"input",2),x([(0,r.MZ)()],C.prototype,"title",2),x([(0,r.MZ)({reflect:!0})],C.prototype,"name",2),x([(0,r.MZ)({reflect:!0})],C.prototype,"value",1),x([(0,r.MZ)({reflect:!0})],C.prototype,"size",2),x([(0,h.w)("size")],C.prototype,"handleSizeChange",1),x([(0,r.MZ)({type:Boolean})],C.prototype,"disabled",2),x([(0,r.MZ)({type:Boolean,reflect:!0})],C.prototype,"indeterminate",2),x([(0,r.MZ)({type:Boolean,attribute:!1})],C.prototype,"checked",1),x([(0,r.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],C.prototype,"defaultChecked",2),x([(0,r.MZ)({type:Boolean,reflect:!0})],C.prototype,"required",2),x([(0,r.MZ)()],C.prototype,"hint",2),x([(0,h.w)(["checked","defaultChecked"])],C.prototype,"handleDefaultCheckedChange",1),x([(0,h.w)(["checked","indeterminate"])],C.prototype,"handleStateChange",1),x([(0,h.w)("disabled")],C.prototype,"handleDisabledChange",1),C=x([(0,r.EM)("wa-checkbox")],C),null===(f=(y=C).disableWarning)||void 0===f||f.call(y,"change-in-update")},49546:function(e,t,a){a.d(t,{Y:function(){return i}});a(44114);const i=(e={})=>{let{validationElement:t,validationProperty:a}=e;t||(t=Object.assign(document.createElement("input"),{required:!0})),a||(a="value");const i={observedAttributes:["required"],message:t.validationMessage,checkValidity(e){var t;const r={message:"",isValid:!0,invalidKeys:[]};if(!(null!==(t=e.required)&&void 0!==t?t:e.hasAttribute("required")))return r;return!e[a]&&(r.message="function"==typeof i.message?i.message(e):i.message||"",r.isValid=!1,r.invalidKeys.push("valueMissing")),r}};return i}},41216:function(e,t,a){a.d(t,{R:function(){return p}});a(62953);var i=a(40445),r=a(5124),o=a(67576),n=a(64918),l=a(84842);let s,c,d,h=e=>e;class p extends n.M{get primaryId(){return this.href?"link":this.removeOnly?"":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}get primaryAction(){return this.removeOnly?null:this.renderRoot.querySelector(".primary.action")}getContainerClasses(){return Object.assign(Object.assign({},super.getContainerClasses()),{},{avatar:this.avatar,disabled:!this.href&&(this.disabled||this.softDisabled),link:!!this.href,selected:this.selected,"has-trailing":!0})}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?(0,r.qy)(s||(s=h` <a class="primary action" id="link" aria-label="${0}" href="${0}" target="${0}">${0}</a> `),t||r.s6,this.href,this.target||r.s6,e):this.removeOnly?(0,r.qy)(c||(c=h` <span class="primary action" aria-label="${0}"> ${0} </span> `),t||r.s6,e):(0,r.qy)(d||(d=h` <button class="primary action" id="button" aria-label="${0}" aria-disabled="${0}" ?disabled="${0}" type="button">${0}</button> `),t||r.s6,this.softDisabled||r.s6,this.disabled&&!this.alwaysFocusable,e)}renderTrailingAction(e){return(0,l.h)({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&(this.disabled||this.softDisabled),tabbable:this.removeOnly})}constructor(){super(...arguments),this.avatar=!1,this.href="",this.target="",this.removeOnly=!1,this.selected=!1}}(0,i.Cg)([(0,o.MZ)({type:Boolean})],p.prototype,"avatar",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"href",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"target",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,attribute:"remove-only"})],p.prototype,"removeOnly",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,reflect:!0})],p.prototype,"selected",void 0),(0,i.Cg)([(0,o.P)(".trailing.action")],p.prototype,"trailingAction",void 0)},78960:function(e,t,a){a.d(t,{R:function(){return r}});let i;const r=(0,a(5124).AH)(i||(i=(e=>e)`:host{--_container-height:var(--md-input-chip-container-height, 32px);--_disabled-label-text-color:var(--md-input-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-input-chip-disabled-label-text-opacity, 0.38);--_disabled-selected-container-color:var(--md-input-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity:var(--md-input-chip-disabled-selected-container-opacity, 0.12);--_label-text-font:var(--md-input-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-input-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size:var(--md-input-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight:var(--md-input-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-container-color:var(--md-input-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-label-text-color:var(--md-input-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color:var(--md-input-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color:var(--md-input-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity:var(--md-input-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color:var(--md-input-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-outline-width:var(--md-input-chip-selected-outline-width, 0px);--_selected-pressed-label-text-color:var(--md-input-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color:var(--md-input-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-opacity:var(--md-input-chip-selected-pressed-state-layer-opacity, 0.12);--_disabled-outline-color:var(--md-input-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity:var(--md-input-chip-disabled-outline-opacity, 0.12);--_focus-label-text-color:var(--md-input-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color:var(--md-input-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color:var(--md-input-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color:var(--md-input-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity:var(--md-input-chip-hover-state-layer-opacity, 0.08);--_label-text-color:var(--md-input-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color:var(--md-input-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width:var(--md-input-chip-outline-width, 1px);--_pressed-label-text-color:var(--md-input-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color:var(--md-input-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity:var(--md-input-chip-pressed-state-layer-opacity, 0.12);--_avatar-shape:var(--md-input-chip-avatar-shape, var(--md-sys-shape-corner-full, 9999px));--_avatar-size:var(--md-input-chip-avatar-size, 24px);--_disabled-avatar-opacity:var(--md-input-chip-disabled-avatar-opacity, 0.38);--_disabled-leading-icon-color:var(--md-input-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-input-chip-disabled-leading-icon-opacity, 0.38);--_icon-size:var(--md-input-chip-icon-size, 18px);--_selected-focus-leading-icon-color:var(--md-input-chip-selected-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-leading-icon-color:var(--md-input-chip-selected-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-leading-icon-color:var(--md-input-chip-selected-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-leading-icon-color:var(--md-input-chip-selected-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color:var(--md-input-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color:var(--md-input-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color:var(--md-input-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color:var(--md-input-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color:var(--md-input-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity:var(--md-input-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color:var(--md-input-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color:var(--md-input-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color:var(--md-input-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color:var(--md-input-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color:var(--md-input-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color:var(--md-input-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color:var(--md-input-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color:var(--md-input-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start:var(--md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end:var(--md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end:var(--md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start:var(--md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space:var(--md-input-chip-leading-space, 16px);--_trailing-space:var(--md-input-chip-trailing-space, 16px);--_icon-label-space:var(--md-input-chip-icon-label-space, 8px);--_with-leading-icon-leading-space:var(--md-input-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space:var(--md-input-chip-with-trailing-icon-trailing-space, 8px)}:host([avatar]){--_container-shape-start-start:var( --md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-start-end:var( --md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-end:var( --md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-start:var( --md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) )}.avatar .primary.action{padding-inline-start:4px}.avatar .leading.icon ::slotted(:first-child){border-radius:var(--_avatar-shape);height:var(--_avatar-size);width:var(--_avatar-size)}.disabled.avatar .leading.icon{opacity:var(--_disabled-avatar-opacity)}{.link .outline{border-color:ActiveText}.disabled.avatar .leading.icon{opacity:1}}`))},75751:function(e,t,a){a.d(t,{u:function(){return l}});a(16280),a(45367),a(92731),a(62953);var i=a(5055),r=a(42017),o=a(63937);const n=(e,t,a)=>{const i=new Map;for(let r=t;r<=a;r++)i.set(e[r],r);return i},l=(0,r.u$)(class extends r.WL{dt(e,t,a){let i;void 0===a?a=t:void 0!==t&&(i=t);const r=[],o=[];let n=0;for(const l of e)r[n]=i?i(l,n):n,o[n]=a(l,n),n++;return{values:o,keys:r}}render(e,t,a){return this.dt(e,t,a).values}update(e,[t,a,r]){var l;const s=(0,o.cN)(e),{values:c,keys:d}=this.dt(t,a,r);if(!Array.isArray(s))return this.ut=d,c;const h=null!==(l=this.ut)&&void 0!==l?l:this.ut=[],p=[];let u,m,v=0,g=s.length-1,b=0,f=c.length-1;for(;v<=g&&b<=f;)if(null===s[v])v++;else if(null===s[g])g--;else if(h[v]===d[b])p[b]=(0,o.lx)(s[v],c[b]),v++,b++;else if(h[g]===d[f])p[f]=(0,o.lx)(s[g],c[f]),g--,f--;else if(h[v]===d[f])p[f]=(0,o.lx)(s[v],c[f]),(0,o.Dx)(e,p[f+1],s[v]),v++,f--;else if(h[g]===d[b])p[b]=(0,o.lx)(s[g],c[b]),(0,o.Dx)(e,s[v],s[g]),g--,b++;else if(void 0===u&&(u=n(d,b,f),m=n(h,v,g)),u.has(h[v]))if(u.has(h[g])){const t=m.get(d[b]),a=void 0!==t?s[t]:null;if(null===a){const t=(0,o.Dx)(e,s[v]);(0,o.lx)(t,c[b]),p[b]=t}else p[b]=(0,o.lx)(a,c[b]),(0,o.Dx)(e,s[v],a),s[t]=null;b++}else(0,o.KO)(s[g]),g--;else(0,o.KO)(s[v]),v++;for(;b<=f;){const t=(0,o.Dx)(e,p[f+1]);(0,o.lx)(t,c[b]),p[b++]=t}for(;v<=g;){const e=s[v++];null!==e&&(0,o.KO)(e)}return this.ut=d,(0,o.mY)(e,p),i.c0}constructor(e){if(super(e),e.type!==r.OA.CHILD)throw Error("repeat() can only be used in text expressions")}})}}]);