UNPKG

iobroker.lovelace

Version:

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

3 lines 28.7 kB
/*! For license information please see 27633.ef88cb3baf785e64.js.LICENSE.txt */ export const __webpack_ids__=["27633"];export const __webpack_modules__={4918:function(t,e,r){r.d(e,{a:()=>m});var a=r(9065),i=r(80573),n={ROOT:"mdc-form-field"},o={LABEL_SELECTOR:".mdc-form-field > label"};const s=function(t){function e(r){var i=t.call(this,(0,a.__assign)((0,a.__assign)({},e.defaultAdapter),r))||this;return i.click=function(){i.handleClick()},i}return(0,a.__extends)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(i.K);var c=r(11911),d=r(88618),l=r(78611),h=r(57243),u=r(15093),p=r(35359);class m extends c.H{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=s}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof d.Wg){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof d.Wg){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return h.dy` <div class="mdc-form-field ${(0,p.$)(t)}"> <slot></slot> <label class="mdc-label" @click="${this._labelClick}">${this.label}</label> </div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}(0,a.__decorate)([(0,u.Cb)({type:Boolean})],m.prototype,"alignEnd",void 0),(0,a.__decorate)([(0,u.Cb)({type:Boolean})],m.prototype,"spaceBetween",void 0),(0,a.__decorate)([(0,u.Cb)({type:Boolean})],m.prototype,"nowrap",void 0),(0,a.__decorate)([(0,u.Cb)({type:String}),(0,l.P)((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],m.prototype,"label",void 0),(0,a.__decorate)([(0,u.IO)(".mdc-form-field")],m.prototype,"mdcRoot",void 0),(0,a.__decorate)([(0,u.vZ)("",!0,"*")],m.prototype,"slottedInputs",void 0),(0,a.__decorate)([(0,u.IO)("label")],m.prototype,"labelEl",void 0)},6394:function(t,e,r){r.d(e,{W:()=>a});const a=r(57243).iv`.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}`},62523:function(t,e,r){r.d(e,{H:()=>f});var a=r(9065),i=(r(16060),r(4428)),n=r(11911),o=r(78611),s=r(91532),c=r(80573),d={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},l={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"};const h=function(t){function e(r){return t.call(this,(0,a.__assign)((0,a.__assign)({},e.defaultAdapter),r))||this}return(0,a.__extends)(e,t),Object.defineProperty(e,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setChecked=function(t){this.adapter.setNativeControlChecked(t),this.updateAriaChecked(t),this.updateCheckedStyling(t)},e.prototype.setDisabled=function(t){this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(d.DISABLED):this.adapter.removeClass(d.DISABLED)},e.prototype.handleChange=function(t){var e=t.target;this.updateAriaChecked(e.checked),this.updateCheckedStyling(e.checked)},e.prototype.updateCheckedStyling=function(t){t?this.adapter.addClass(d.CHECKED):this.adapter.removeClass(d.CHECKED)},e.prototype.updateAriaChecked=function(t){this.adapter.setNativeControlAttr(l.ARIA_CHECKED_ATTR,""+!!t)},e}(c.K);var u=r(57243),p=r(15093),m=r(20552);class f extends n.H{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.shouldRenderRipple=!1,this.mdcFoundationClass=h,this.rippleHandlers=new s.A((()=>(this.shouldRenderRipple=!0,this.ripple)))}changeHandler(t){this.mdcFoundation.handleChange(t),this.checked=this.formElement.checked}createAdapter(){return Object.assign(Object.assign({},(0,n.q)(this.mdcRoot)),{setNativeControlChecked:t=>{this.formElement.checked=t},setNativeControlDisabled:t=>{this.formElement.disabled=t},setNativeControlAttr:(t,e)=>{this.formElement.setAttribute(t,e)}})}renderRipple(){return this.shouldRenderRipple?u.dy` <mwc-ripple .accent="${this.checked}" .disabled="${this.disabled}" unbounded> </mwc-ripple>`:""}focus(){const t=this.formElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.formElement;t&&(this.rippleHandlers.endFocus(),t.blur())}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}render(){return u.dy` <div class="mdc-switch"> <div class="mdc-switch__track"></div> <div class="mdc-switch__thumb-underlay"> ${this.renderRipple()} <div class="mdc-switch__thumb"> <input type="checkbox" id="basic-switch" class="mdc-switch__native-control" role="switch" aria-label="${(0,m.o)(this.ariaLabel)}" aria-labelledby="${(0,m.o)(this.ariaLabelledBy)}" @change="${this.changeHandler}" @focus="${this.handleRippleFocus}" @blur="${this.handleRippleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}"> </div> </div> </div>`}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}(0,a.__decorate)([(0,p.Cb)({type:Boolean}),(0,o.P)((function(t){this.mdcFoundation.setChecked(t)}))],f.prototype,"checked",void 0),(0,a.__decorate)([(0,p.Cb)({type:Boolean}),(0,o.P)((function(t){this.mdcFoundation.setDisabled(t)}))],f.prototype,"disabled",void 0),(0,a.__decorate)([i.L,(0,p.Cb)({attribute:"aria-label"})],f.prototype,"ariaLabel",void 0),(0,a.__decorate)([i.L,(0,p.Cb)({attribute:"aria-labelledby"})],f.prototype,"ariaLabelledBy",void 0),(0,a.__decorate)([(0,p.IO)(".mdc-switch")],f.prototype,"mdcRoot",void 0),(0,a.__decorate)([(0,p.IO)("input")],f.prototype,"formElement",void 0),(0,a.__decorate)([(0,p.GC)("mwc-ripple")],f.prototype,"ripple",void 0),(0,a.__decorate)([(0,p.SB)()],f.prototype,"shouldRenderRipple",void 0),(0,a.__decorate)([(0,p.hO)({passive:!0})],f.prototype,"handleRippleMouseDown",null),(0,a.__decorate)([(0,p.hO)({passive:!0})],f.prototype,"handleRippleTouchStart",null)},83835:function(t,e,r){r.d(e,{W:()=>a});const a=r(57243).iv`.mdc-switch__thumb-underlay{left:-14px;right:initial;top:-17px;width:48px;height:48px}.mdc-switch__thumb-underlay[dir=rtl],[dir=rtl] .mdc-switch__thumb-underlay{left:initial;right:-14px}.mdc-switch__native-control{width:64px;height:48px}.mdc-switch{display:inline-block;position:relative;outline:0;user-select:none}.mdc-switch.mdc-switch--checked .mdc-switch__track{background-color:#018786;background-color:var(--mdc-theme-secondary,#018786)}.mdc-switch.mdc-switch--checked .mdc-switch__thumb{background-color:#018786;background-color:var(--mdc-theme-secondary,#018786);border-color:#018786;border-color:var(--mdc-theme-secondary,#018786)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{background-color:#000;background-color:var(--mdc-theme-on-surface,#000)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb{background-color:#fff;background-color:var(--mdc-theme-surface,#fff);border-color:#fff;border-color:var(--mdc-theme-surface,#fff)}.mdc-switch__native-control{left:0;right:initial;position:absolute;top:0;margin:0;opacity:0;cursor:pointer;pointer-events:auto;transition:transform 90ms cubic-bezier(.4, 0, .2, 1)}.mdc-switch__native-control[dir=rtl],[dir=rtl] .mdc-switch__native-control{left:initial;right:0}.mdc-switch__track{box-sizing:border-box;width:36px;height:14px;border:1px solid transparent;border-radius:7px;opacity:.38;transition:opacity 90ms cubic-bezier(.4, 0, .2, 1),background-color 90ms cubic-bezier(.4, 0, .2, 1),border-color 90ms cubic-bezier(.4, 0, .2, 1)}.mdc-switch__thumb-underlay{display:flex;position:absolute;align-items:center;justify-content:center;transform:translateX(0);transition:transform 90ms cubic-bezier(.4, 0, .2, 1),background-color 90ms cubic-bezier(.4, 0, .2, 1),border-color 90ms cubic-bezier(.4, 0, .2, 1)}.mdc-switch__thumb{box-shadow:0px 3px 1px -2px rgba(0,0,0,.2),0px 2px 2px 0px rgba(0,0,0,.14),0px 1px 5px 0px rgba(0,0,0,.12);box-sizing:border-box;width:20px;height:20px;border:10px solid;border-radius:50%;pointer-events:none;z-index:1}.mdc-switch--checked .mdc-switch__track{opacity:.54}.mdc-switch--checked .mdc-switch__thumb-underlay{transform:translateX(16px)}.mdc-switch--checked .mdc-switch__thumb-underlay[dir=rtl],[dir=rtl] .mdc-switch--checked .mdc-switch__thumb-underlay{transform:translateX(-16px)}.mdc-switch--checked .mdc-switch__native-control{transform:translateX(-16px)}.mdc-switch--checked .mdc-switch__native-control[dir=rtl],[dir=rtl] .mdc-switch--checked .mdc-switch__native-control{transform:translateX(16px)}.mdc-switch--disabled{opacity:.38;pointer-events:none}.mdc-switch--disabled .mdc-switch__thumb{border-width:1px}.mdc-switch--disabled .mdc-switch__native-control{cursor:default;pointer-events:none}:host{display:inline-flex;outline:0;-webkit-tap-highlight-color:transparent}`},88977:function(t,e,r){r.d(e,{L:()=>n});const a={en:"US",hi:"IN",deva:"IN",te:"IN",mr:"IN",ta:"IN",gu:"IN",kn:"IN",or:"IN",ml:"IN",pa:"IN",bho:"IN",awa:"IN",as:"IN",mwr:"IN",mai:"IN",mag:"IN",bgc:"IN",hne:"IN",dcc:"IN",bn:"BD",beng:"BD",rkt:"BD",dz:"BT",tibt:"BT",tn:"BW",am:"ET",ethi:"ET",om:"ET",quc:"GT",id:"ID",jv:"ID",su:"ID",mad:"ID",ms_arab:"ID",he:"IL",hebr:"IL",jam:"JM",ja:"JP",jpan:"JP",km:"KH",khmr:"KH",ko:"KR",kore:"KR",lo:"LA",laoo:"LA",mh:"MH",my:"MM",mymr:"MM",mt:"MT",ne:"NP",fil:"PH",ceb:"PH",ilo:"PH",ur:"PK",pa_arab:"PK",lah:"PK",ps:"PK",sd:"PK",skr:"PK",gn:"PY",th:"TH",thai:"TH",tts:"TH",zh_hant:"TW",hant:"TW",sm:"WS",zu:"ZA",sn:"ZW",arq:"DZ",ar:"EG",arab:"EG",arz:"EG",fa:"IR",az_arab:"IR",dv:"MV",thaa:"MV"};const i={AG:0,ATG:0,28:0,AS:0,ASM:0,16:0,BD:0,BGD:0,50:0,BR:0,BRA:0,76:0,BS:0,BHS:0,44:0,BT:0,BTN:0,64:0,BW:0,BWA:0,72:0,BZ:0,BLZ:0,84:0,CA:0,CAN:0,124:0,CO:0,COL:0,170:0,DM:0,DMA:0,212:0,DO:0,DOM:0,214:0,ET:0,ETH:0,231:0,GT:0,GTM:0,320:0,GU:0,GUM:0,316:0,HK:0,HKG:0,344:0,HN:0,HND:0,340:0,ID:0,IDN:0,360:0,IL:0,ISR:0,376:0,IN:0,IND:0,356:0,JM:0,JAM:0,388:0,JP:0,JPN:0,392:0,KE:0,KEN:0,404:0,KH:0,KHM:0,116:0,KR:0,KOR:0,410:0,LA:0,LA0:0,418:0,MH:0,MHL:0,584:0,MM:0,MMR:0,104:0,MO:0,MAC:0,446:0,MT:0,MLT:0,470:0,MX:0,MEX:0,484:0,MZ:0,MOZ:0,508:0,NI:0,NIC:0,558:0,NP:0,NPL:0,524:0,PA:0,PAN:0,591:0,PE:0,PER:0,604:0,PH:0,PHL:0,608:0,PK:0,PAK:0,586:0,PR:0,PRI:0,630:0,PT:0,PRT:0,620:0,PY:0,PRY:0,600:0,SA:0,SAU:0,682:0,SG:0,SGP:0,702:0,SV:0,SLV:0,222:0,TH:0,THA:0,764:0,TT:0,TTO:0,780:0,TW:0,TWN:0,158:0,UM:0,UMI:0,581:0,US:0,USA:0,840:0,VE:0,VEN:0,862:0,VI:0,VIR:0,850:0,WS:0,WSM:0,882:0,YE:0,YEM:0,887:0,ZA:0,ZAF:0,710:0,ZW:0,ZWE:0,716:0,AE:6,ARE:6,784:6,AF:6,AFG:6,4:6,BH:6,BHR:6,48:6,DJ:6,DJI:6,262:6,DZ:6,DZA:6,12:6,EG:6,EGY:6,818:6,IQ:6,IRQ:6,368:6,IR:6,IRN:6,364:6,JO:6,JOR:6,400:6,KW:6,KWT:6,414:6,LY:6,LBY:6,434:6,OM:6,OMN:6,512:6,QA:6,QAT:6,634:6,SD:6,SDN:6,729:6,SY:6,SYR:6,760:6,MV:5,MDV:5,462:5};function n(t){return function(t,e,r){if(t){var a,i=t.toLowerCase().split(/[-_]/),n=i[0],o=n;if(i[1]&&4===i[1].length?(o+="_"+i[1],a=i[2]):a=i[1],a||(a=e[o]||e[n]),a)return function(t,e){var r=e["string"==typeof t?t.toUpperCase():t];return"number"==typeof r?r:1}(a.match(/^\d+$/)?Number(a):a,r)}return 1}(t,a,i)}},54835:function(t,e,r){var a=r(9065),i=r(15093),n=r(57243);class o extends n.oi{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return n.dy`<span class="shadow"></span>`}}const s=n.iv`.shadow,.shadow::after,.shadow::before,:host{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::after,.shadow::before{content:"";transition-property:box-shadow,opacity;--_level:var(--md-elevation-level, 0);--_shadow-color:var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}`;let c=class extends o{};c.styles=[s],c=(0,a.__decorate)([(0,i.Mo)("md-elevation")],c)},57618:function(t,e,r){var a=r(9065),i=r(15093),n=r(57243),o=r(19799);const s=["focusin","focusout","pointerdown"];class c extends n.oi{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new o.J(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[d]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[d]=!0}}onControlChange(t,e){if(!n.sk)for(const r of s)t?.removeEventListener(r,this),e?.addEventListener(r,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}(0,a.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],c.prototype,"visible",void 0),(0,a.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],c.prototype,"inward",void 0);const d=Symbol("handledByFocusRing"),l=n.iv`: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 c{};h.styles=[l],h=(0,a.__decorate)([(0,i.Mo)("md-focus-ring")],h)},13823:function(t,e,r){r.d(e,{T:()=>d});r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);var a=r(57243);const i=["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"],n=i.map(s);function o(t){return n.includes(t)}function s(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const c=Symbol("privateIgnoreAttributeChangesFor");function d(t){var e;if(a.sk)return t;class r extends t{constructor(){super(...arguments),this[e]=new Set}attributeChangedCallback(t,e,r){if(!o(t))return void super.attributeChangedCallback(t,e,r);if(this[c].has(t))return;this[c].add(t),this.removeAttribute(t),this[c].delete(t);const a=h(t);null===r?delete this.dataset[a]:this.dataset[a]=r,this.requestUpdate(h(t),e)}getAttribute(t){return o(t)?super.getAttribute(l(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),o(t)&&(super.removeAttribute(l(t)),this.requestUpdate())}}return e=c,function(t){for(const e of i){const r=s(e),a=l(r),i=h(r);t.createProperty(e,{attribute:r,noAccessor:!0}),t.createProperty(Symbol(a),{attribute:a,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[i]??null},set(t){const r=this.dataset[i]??null;t!==r&&(null===t?delete this.dataset[i]:this.dataset[i]=t,this.requestUpdate(e,r))}})}}(r),r}function l(t){return`data-${t}`}function h(t){return t.replace(/-\w/,(t=>t[1].toUpperCase()))}},79679:function(t,e,r){function a(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const r=Reflect.construct(e.constructor,[e.type,e]),a=t.dispatchEvent(r);return a||e.preventDefault(),a}r.d(e,{e:()=>a})},61073:function(t,e,r){r.d(e,{N:()=>n,b:()=>a});r(67351);const a=Symbol("internals"),i=Symbol("privateInternals");function n(t){return class extends t{get[a](){return this[i]||(this[i]=this.attachInternals()),this[i]}}}},19484:function(t,e,r){r.d(e,{$u:()=>o,hz:()=>c});var a=r(9065),i=r(15093),n=r(61073);const o=Symbol("getFormValue"),s=Symbol("getFormState");function c(t){class e extends t{get form(){return this[n.b].form}get labels(){return this[n.b].labels}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,e,r){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,e,r);else{const r="disabled"===t?null!==e:e;this.requestUpdate(t,r)}}requestUpdate(t,e,r){super.requestUpdate(t,e,r),this[n.b].setFormValue(this[o](),this[s]())}[o](){throw new Error("Implement [getFormValue]")}[s](){return this[o]()}formDisabledCallback(t){this.disabled=t}}return e.formAssociated=!0,(0,a.__decorate)([(0,i.Cb)({noAccessor:!0})],e.prototype,"name",null),(0,a.__decorate)([(0,i.Cb)({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}},55428:function(t,e,r){r.d(e,{j:()=>i});let a={};function i(){return a}},34151:function(t,e,r){function a(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return 0===r?0:r}}r.d(e,{u:()=>a})},18492:function(t,e,r){r.d(e,{d:()=>i});r(9359),r(1331),r(70104);var a=r(53907);function i(t,...e){const r=a.L.bind(null,t||e.find((t=>"object"==typeof t)));return e.map(r)}},76808:function(t,e,r){r.d(e,{I7:()=>s,dP:()=>i,jE:()=>a,vh:()=>o,yJ:()=>n});Math.pow(10,8);const a=6048e5,i=864e5,n=6e4,o=36e5,s=Symbol.for("constructDateFrom")},53907:function(t,e,r){r.d(e,{L:()=>i});var a=r(76808);function i(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&a.I7 in t?t[a.I7](e):t instanceof Date?new t.constructor(e):new Date(e)}},78052:function(t,e,r){r.d(e,{w:()=>c});var a=r(18112);function i(t){const e=(0,a.Q)(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}var n=r(18492),o=r(76808),s=r(7591);function c(t,e,r){const[a,c]=(0,n.d)(r?.in,t,e),d=(0,s.b)(a),l=(0,s.b)(c),h=+d-i(d),u=+l-i(l);return Math.round((h-u)/o.dP)}},13809:function(t,e,r){r.d(e,{j:()=>n});var a=r(18492),i=r(78052);function n(t,e,r){const[n,s]=(0,a.d)(r?.in,t,e),c=o(n,s),d=Math.abs((0,i.w)(n,s));n.setDate(n.getDate()-c*d);const l=c*(d-Number(o(n,s)===-c));return 0===l?0:l}function o(t,e){const r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}},94763:function(t,e,r){r.d(e,{p:()=>n});var a=r(34151),i=r(13809);function n(t,e,r){const n=(0,i.j)(t,e,r)/7;return(0,a.u)(r?.roundingMethod)(n)}},7591:function(t,e,r){r.d(e,{b:()=>i});var a=r(18112);function i(t,e){const r=(0,a.Q)(t,e?.in);return r.setHours(0,0,0,0),r}},29558:function(t,e,r){r.d(e,{z:()=>n});var a=r(55428),i=r(18112);function n(t,e){const r=(0,a.j)(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=(0,i.Q)(t,e?.in),s=o.getDay(),c=(s<n?7:0)+s-n;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}},18112:function(t,e,r){r.d(e,{Q:()=>i});var a=r(53907);function i(t,e){return(0,a.L)(e||t,t)}},27608:function(t,e,r){r.d(e,{MT:()=>i,RV:()=>a,U2:()=>s,ZH:()=>d,t8:()=>c});r(92745),r(9359),r(31526),r(70104);function a(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function i(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const i=a(r);return(t,r)=>i.then((a=>r(a.transaction(e,t).objectStore(e))))}let n;function o(){return n||(n=i("keyval-store","keyval")),n}function s(t,e=o()){return e("readonly",(e=>a(e.get(t))))}function c(t,e,r=o()){return r("readwrite",(r=>(r.put(e,t),a(r.transaction))))}function d(t=o()){return t("readwrite",(t=>(t.clear(),a(t.transaction))))}},94571:function(t,e,r){r.d(e,{C:()=>u});r(9359),r(1331);var a=r(2841),i=r(53232),n=r(1714);class o{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class s{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var c=r(45779);const d=t=>!(0,i.pt)(t)&&"function"==typeof t.then,l=1073741823;class h extends n.sR{constructor(){super(...arguments),this._$C_t=l,this._$Cwt=[],this._$Cq=new o(this),this._$CK=new s}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:a.Jb}update(t,e){const r=this._$Cwt;let i=r.length;this._$Cwt=e;const n=this._$Cq,o=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const a=e[t];if(!d(a))return this._$C_t=t,a;t<i&&a===r[t]||(this._$C_t=l,i=0,Promise.resolve(a).then((async t=>{for(;o.get();)await o.get();const e=n.deref();if(void 0!==e){const r=e._$Cwt.indexOf(a);r>-1&&r<e._$C_t&&(e._$C_t=r,e.setValue(t))}})))}return a.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const u=(0,c.XM)(h)}}; //# sourceMappingURL=27633.ef88cb3baf785e64.js.map