UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

17 lines 29.3 kB
/*! For license information please see 71739.c90d8fda23b6b199.js.LICENSE.txt */ export const __rspack_esm_id=71739;export const __rspack_esm_ids=[71739];export const __webpack_modules__={12451(e,t,r){r.d(t,{O:()=>o,i:()=>a.is});var i=r(5124),a=r(12130);class o extends i.WF{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},12130(e,t,r){r.d(t,{SE:()=>d,U9:()=>l,hP:()=>i,is:()=>a});r(44114);const i=e=>e.nodeType===Node.ELEMENT_NODE;function a(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}let o=!1;const s=()=>{},n={get passive(){return o=!0,!1}};document.addEventListener("x",s,n),document.removeEventListener("x",s);const l=(e=window.document)=>{let t=e.activeElement;const r=[];if(!t)return r;for(;t&&(r.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return r},d=e=>{const t=l();if(!t.length)return!1;const r=t[t.length-1],i=new Event("check-if-focused",{bubbles:!0,composed:!0});let a=[];const o=e=>{a=e.composedPath()};return document.body.addEventListener("check-if-focused",o),r.dispatchEvent(i),document.body.removeEventListener("check-if-focused",o),-1!==a.indexOf(e)}},35370(e,t,r){var i=r(26198);e.exports=function(e,t,r){for(var a=0,o=arguments.length>2?r:i(t),s=new e(o);o>a;)s[a]=t[a++];return s}},77957(e,t,r){var i=r(76080),a=r(79504),o=r(47055),s=r(48981),n=r(56969),l=r(26198),d=r(2360),c=r(35370),h=Array,u=a([].push);e.exports=function(e,t,r,a){for(var p,m,f,v=s(e),g=o(v),y=i(t,r),b=d(null),w=l(g),x=0;w>x;x++)f=g[x],(m=n(y(f,x,v)))in b?u(b[m],f):b[m]=[f];if(a&&(p=a(v))!==h)for(m in b)b[m]=c(p,b[m]);return b}},46058(e,t,r){var i=r(46518),a=r(77957),o=r(6469);i({target:"Array",proto:!0},{group:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("group")},97577(e,t,r){r.d(t,{A:()=>b});var i=r(5124),a=r(22441),o=r(6412),s=r(63672),n=r(34514),l=r(40991),d=r(92070),c=r(49546),h=r(9395),u=r(62676),p=r(15477),m=r(31896),f=(r(38625),i.AH`: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)}`),v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=(e,t,r,i)=>{for(var a,o=i>1?void 0:i?g(t,r):t,s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i?a(t,r,o):a(o))||o);return i&&o&&v(t,r,o),o};let b=class extends u.q{static get validators(){const e=i.S$?[]:[(0,c.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...e]}get value(){return this._value??"on"}set value(e){this._value=e}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??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,r=!this.checked&&this.indeterminate,a=r?"indeterminate":"check",l=r?"indeterminate":"check";return i.qy` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${this.title}" name="${(0,s.J)(this.name)}" value="${(0,s.J)(this._value)}" .indeterminate="${(0,n.V)(this.indeterminate)}" .checked="${(0,n.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}" aria-describedby="hint" @click="${this.handleClick}"> <wa-icon part="${l}-icon icon" library="system" name="${a}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${t?"false":"true"}" class="${(0,o.H)({"has-slotted":t})}"> ${this.hint} </slot> `}constructor(){super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};b.css=[p.A,m.A,f],b.shadowRootOptions={...u.q.shadowRootOptions,delegatesFocus:!0},y([(0,a.P)('input[type="checkbox"]')],b.prototype,"input",2),y([(0,a.MZ)()],b.prototype,"title",2),y([(0,a.MZ)({reflect:!0})],b.prototype,"name",2),y([(0,a.MZ)({reflect:!0})],b.prototype,"value",1),y([(0,a.MZ)({reflect:!0})],b.prototype,"size",2),y([(0,h.w)("size")],b.prototype,"handleSizeChange",1),y([(0,a.MZ)({type:Boolean})],b.prototype,"disabled",2),y([(0,a.MZ)({type:Boolean,reflect:!0})],b.prototype,"indeterminate",2),y([(0,a.MZ)({type:Boolean,attribute:!1})],b.prototype,"checked",1),y([(0,a.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],b.prototype,"defaultChecked",2),y([(0,a.MZ)({type:Boolean,reflect:!0})],b.prototype,"required",2),y([(0,a.MZ)()],b.prototype,"hint",2),y([(0,h.w)(["checked","defaultChecked"])],b.prototype,"handleDefaultCheckedChange",1),y([(0,h.w)(["checked","indeterminate"])],b.prototype,"handleStateChange",1),y([(0,h.w)("disabled")],b.prototype,"handleDisabledChange",1),b=y([(0,a.EM)("wa-checkbox")],b),b.disableWarning?.("change-in-update")},95010(e,t,r){r.d(t,{q:()=>i,N:()=>a});r(16573),r(78100),r(77936),r(37467),r(44732),r(79577),r(16632),r(34226),r(9486),r(20456);function i(e,t,r){const i=e=>Object.is(e,-0)?0:e;return i(e<t?t:e>r?r:e)}function a(e=""){return`${e}${((e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t})()}`}},49546(e,t,r){r.d(t,{Y:()=>i});r(44114);const i=(e={})=>{let{validationElement:t,validationProperty:r}=e;t||(t=Object.assign(document.createElement("input"),{required:!0})),r||(r="value");const i={observedAttributes:["required"],message:t.validationMessage,checkValidity(e){const t={message:"",isValid:!0,invalidKeys:[]};if(!(e.required??e.hasAttribute("required")))return t;return!e[r]&&(t.message="function"==typeof i.message?i.message(e):i.message||"",t.isValid=!1,t.invalidKeys.push("valueMissing")),t}};return i}},15477(e,t,r){r.d(t,{A:()=>i});var i=r(5124).AH`:host{display:flex;flex-direction:column}[part~=form-control]{display:contents}:is([part~=form-control-label],[part~=label]).has-label,:is([part~=form-control-label],[part~=label]):has(:not(:empty)){display:inline-flex;color:var(--wa-form-control-label-color);font-weight:var(--wa-form-control-label-font-weight);line-height:var(--wa-form-control-label-line-height);margin-block-end:0.5em}:host([required]) :is([part~=form-control-label],[part~=label])::after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset);color:var(--wa-form-control-required-content-color)}[part~=hint]{display:block;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller)}[part~=hint]:not(.has-slotted,.has-hint){display:none}`},75275(e,t,r){var i=r(62826),a=r(22441),o=r(5124),s=r(76482);const n=["focusin","focusout","pointerdown"];class l extends o.WF{get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){if(!e[d]){switch(e.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}e[d]=!0}}onControlChange(e,t){if(!o.S$)for(const r of n)e?.removeEventListener(r,this),t?.addEventListener(r,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new s.i(this,this.onControlChange.bind(this))}}(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing"),c=o.AH`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}@media(prefers-reduced-motion){:host{animation:none}}`;let h=class extends l{};h.styles=[c],h=(0,i.Cg)([(0,a.EM)("md-focus-ring")],h)},1024(e,t,r){r.d(t,{n:()=>d});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var i=r(5124);r(74423);const a=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],o=a.map(n);function s(e){return o.includes(e)}function n(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(e){var t;if(i.S$)return e;class r extends e{attributeChangedCallback(e,t,r){if(!s(e))return void super.attributeChangedCallback(e,t,r);if(this[l].has(e))return;this[l].add(e),this.removeAttribute(e),this[l].delete(e);const i=h(e);null===r?delete this.dataset[i]:this.dataset[i]=r,this.requestUpdate(h(e),t)}getAttribute(e){return s(e)?super.getAttribute(c(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),s(e)&&(super.removeAttribute(c(e)),this.requestUpdate())}constructor(){super(...arguments),this[t]=new Set}}return t=l,function(e){for(const t of a){const r=n(t),i=c(r),a=h(r);e.createProperty(t,{attribute:r,noAccessor:!0}),e.createProperty(Symbol(i),{attribute:i,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){return this.dataset[a]??null},set(e){const r=this.dataset[a]??null;e!==r&&(null===e?delete this.dataset[a]:this.dataset[a]=e,this.requestUpdate(t,r))}})}}(r),r}function c(e){return`data-${e}`}function h(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}},27525(e,t,r){function i(e,t=p){const r=n(e,t);return r&&(r.tabIndex=0,r.focus()),r}function a(e,t=p){const r=l(e,t);return r&&(r.tabIndex=0,r.focus()),r}function o(e,t=p){const r=s(e,t);return r&&(r.item.tabIndex=-1),r}function s(e,t=p){for(let r=0;r<e.length;r++){const i=e[r];if(0===i.tabIndex&&t(i))return{item:i,index:r}}return null}function n(e,t=p){for(const r of e)if(t(r))return r;return null}function l(e,t=p){for(let r=e.length-1;r>=0;r--){const i=e[r];if(t(i))return i}return null}function d(e,t,r=p,a=!0){if(t){const i=function(e,t,r=p,i=!0){for(let a=1;a<e.length;a++){const o=(a+t)%e.length;if(o<t&&!i)return null;const s=e[o];if(r(s))return s}return e[t]?e[t]:null}(e,t.index,r,a);return i&&(i.tabIndex=0,i.focus()),i}return i(e,r)}function c(e,t,r=p,i=!0){if(t){const a=function(e,t,r=p,i=!0){for(let a=1;a<e.length;a++){const o=(t-a+e.length)%e.length;if(o>t&&!i)return null;const s=e[o];if(r(s))return s}return e[t]?e[t]:null}(e,t.index,r,i);return a&&(a.tabIndex=0,a.focus()),a}return a(e,r)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function u(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(e){return!e.disabled}r.d(t,{A6:()=>s,Ex:()=>l,RN:()=>h,RZ:()=>a,c7:()=>n,cG:()=>u,u9:()=>c,ub:()=>o,wm:()=>d,zT:()=>i})},82553(e,t,r){r.d(t,{R:()=>i});const i=r(5124).AH`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`},58168(e,t,r){r.d(t,{n:()=>f});var i=r(62826),a=(r(75275),r(22441)),o=r(5124);class s extends o.WF{render(){return o.qy` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${this.handleTextSlotChange}"></slot> <slot class="default-slot" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="headline" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="supporting-text" @slotchange="${this.handleTextSlotChange}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `}handleTextSlotChange(){let e=!1,t=0;for(const r of this.textSlots)if(n(r)&&(t+=1),t>1){e=!0;break}this.multiline=e}constructor(){super(...arguments),this.multiline=!1}}function n(e){for(const t of e.assignedNodes({flatten:!0})){const e=t.nodeType===Node.ELEMENT_NODE,r=t.nodeType===Node.TEXT_NODE&&t.textContent?.match(/\S/);if(e||r)return!0}return!1}(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],s.prototype,"multiline",void 0),(0,i.Cg)([(0,a.YG)(".text slot")],s.prototype,"textSlots",void 0);const l=o.AH`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`;let d=class extends s{};d.styles=[l],d=(0,i.Cg)([(0,a.EM)("md-item")],d);r(71970);var c=r(6412),h=r(7872),u=r(1024),p=r(27525);const m=(0,u.n)(o.WF);class f extends m{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(o.qy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(e){const t="link"===this.type;let r;switch(this.type){case"link":r=h.eu`a`;break;case"button":r=h.eu`button`;break;default:r=h.eu`li`}const i="text"!==this.type,a=t&&this.target?this.target:o.s6;return h.qy` <${r} id="item" tabindex="${this.isDisabled||!i?-1:0}" ?disabled=${this.isDisabled} role="listitem" aria-selected=${this.ariaSelected||o.s6} aria-checked=${this.ariaChecked||o.s6} aria-expanded=${this.ariaExpanded||o.s6} aria-haspopup=${this.ariaHasPopup||o.s6} class="list-item ${(0,c.H)(this.getRenderClasses())}" href=${this.href||o.s6} target=${a} @focus=${this.onFocus} >${e}</${r}> `}renderRipple(){return"text"===this.type?o.s6:o.qy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?o.s6:o.qy` <md-focus-ring @visibility-changed="${this.onFocusRingVisibilityChanged}" part="focus-ring" for="item" inward></md-focus-ring>`}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return o.qy` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,p.cG)())}focus(){this.listItemRoot?.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}f.shadowRootOptions={...o.WF.shadowRootOptions,delegatesFocus:!0},(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],f.prototype,"disabled",void 0),(0,i.Cg)([(0,a.MZ)({reflect:!0})],f.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],f.prototype,"isListItem",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"href",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"target",void 0),(0,i.Cg)([(0,a.P)(".list-item")],f.prototype,"listItemRoot",void 0)},71970(e,t,r){var i=r(62826),a=r(22441),o=r(91382),s=r(96245);let n=class extends o.n{};n.styles=[s.R],n=(0,i.Cg)([(0,a.EM)("md-ripple")],n)},95192(e,t,r){r.d(t,{IU:()=>d,Jt:()=>n,Yd:()=>i,hZ:()=>l,y$:()=>a});r(44114),r(18111),r(7588),r(61701);function i(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function a(e,t){let r;return(a,o)=>(()=>{if(r)return r;const a=indexedDB.open(e);return a.onupgradeneeded=()=>a.result.createObjectStore(t),r=i(a),r.then(e=>{e.onclose=()=>r=void 0},()=>{}),r})().then(e=>o(e.transaction(t,a).objectStore(t)))}let o;function s(){return o||(o=a("keyval-store","keyval")),o}function n(e,t=s()){return t("readonly",t=>i(t.get(e)))}function l(e,t,r=s()){return r("readwrite",r=>(r.put(t,e),i(r.transaction)))}function d(e=s()){return e("readwrite",e=>(e.clear(),i(e.transaction)))}},34514(e,t,r){r.d(t,{V:()=>s});var i=r(5055),a=r(42017),o=r(63937);const s=(0,a.u$)(class extends a.WL{render(e){return e}update(e,[t]){if(t===i.c0||t===i.s6)return t;const r=e.element,s=e.name;if(e.type===a.OA.PROPERTY){if(t===r[s])return i.c0}else if(e.type===a.OA.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(s))return i.c0}else if(e.type===a.OA.ATTRIBUTE&&r.getAttribute(s)===t+"")return i.c0;return(0,o.mY)(e),t}constructor(e){if(super(e),e.type!==a.OA.PROPERTY&&e.type!==a.OA.ATTRIBUTE&&e.type!==a.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,o.Rt)(e))throw Error("`live` bindings can only contain a single expression")}})},89784(e,t,r){r.d(t,{W:()=>n});r(74423),r(18111),r(18237),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var i=r(5055),a=r(42017);const o="important",s=" !"+o,n=(0,a.u$)(class extends a.WL{render(e){return Object.keys(e).reduce((t,r)=>{const i=e[r];return null==i?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:r}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?r.removeProperty(e):r[e]=null);for(const e in t){const i=t[e];if(null!=i){this.ft.add(e);const t="string"==typeof i&&i.endsWith(s);e.includes("-")||t?r.setProperty(e,t?i.slice(0,-11):i,t?o:""):r[e]=i}}return i.c0}constructor(e){if(super(e),e.type!==a.OA.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}};