iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
20 lines • 34 kB
JavaScript
/*! For license information please see 62511.cdf62272d365b72e.js.LICENSE.txt */
export const __webpack_ids__=["62511"];export const __webpack_modules__={87319:function(t,e,r){var i=r(9065),o=r(15093),n=r(65703),s=r(46289);let a=class extends n.K{};a.styles=[s.W],a=(0,i.__decorate)([(0,o.Mo)("mwc-list-item")],a)},27323:function(t,e,r){r.d(e,{O:()=>h});var i=r(9065),o=r(1105),n=r(57243),s=r(15093),a=r(35359),l=r(20552),d=r(91928);const c={fromAttribute:t=>null!==t&&(""===t||t),toAttribute:t=>"boolean"==typeof t?t?"":null:t};class h extends o.P{constructor(){super(...arguments),this.rows=2,this.cols=20,this.charCounter=!1}render(){const t=this.charCounter&&-1!==this.maxLength,e=t&&"internal"===this.charCounter,r=t&&!e,i=!!this.helper||!!this.validationMessage||r,o={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--end-aligned":this.endAligned,"mdc-text-field--with-internal-counter":e};return n.dy` <label class="mdc-text-field mdc-text-field--textarea ${(0,a.$)(o)}"> ${this.renderRipple()} ${this.outlined?this.renderOutline():this.renderLabel()} ${this.renderInput()} ${this.renderCharCounter(e)} ${this.renderLineRipple()} </label> ${this.renderHelperText(i,r)} `}renderInput(){const t=this.label?"label":void 0,e=-1===this.minLength?void 0:this.minLength,r=-1===this.maxLength?void 0:this.maxLength,i=this.autocapitalize?this.autocapitalize:void 0;return n.dy` <textarea aria-labelledby="${(0,l.o)(t)}" class="mdc-text-field__input" .value="${(0,d.a)(this.value)}" rows="${this.rows}" cols="${this.cols}" ?disabled="${this.disabled}" placeholder="${this.placeholder}" ?required="${this.required}" ?readonly="${this.readOnly}" minlength="${(0,l.o)(e)}" maxlength="${(0,l.o)(r)}" name="${(0,l.o)(""===this.name?void 0:this.name)}" inputmode="${(0,l.o)(this.inputMode)}" autocapitalize="${(0,l.o)(i)}" ="${this.handleInputChange}" ="${this.onInputBlur}">
</textarea>`}}(0,i.__decorate)([(0,s.IO)("textarea")],h.prototype,"formElement",void 0),(0,i.__decorate)([(0,s.Cb)({type:Number})],h.prototype,"rows",void 0),(0,i.__decorate)([(0,s.Cb)({type:Number})],h.prototype,"cols",void 0),(0,i.__decorate)([(0,s.Cb)({converter:c})],h.prototype,"charCounter",void 0)},88540:function(t,e,r){r.d(e,{W:()=>i});const i=r(57243).iv`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`},12582:function(t,e,r){r.d(e,{Z:()=>i});r(9359),r(31526),r(70104);function i(t){if(!t||"object"!=typeof t)return t;if("[object Date]"==Object.prototype.toString.call(t))return new Date(t.getTime());if(Array.isArray(t))return t.map(i);var e={};return Object.keys(t).forEach((function(r){e[r]=i(t[r])})),e}},88977:function(t,e,r){r.d(e,{L:()=>n});const i={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 o={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 i,o=t.toLowerCase().split(/[-_]/),n=o[0],s=n;if(o[1]&&4===o[1].length?(s+="_"+o[1],i=o[2]):i=o[1],i||(i=e[s]||e[n]),i)return function(t,e){var r=e["string"==typeof t?t.toUpperCase():t];return"number"==typeof r?r:1}(i.match(/^\d+$/)?Number(i):i,r)}return 1}(t,i,o)}},78344:function(t){var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},87265:function(t,e,r){var i=r(61896),o=String,n=TypeError;t.exports=function(t){if(void 0===t||i(t))return t;throw new n(o(t)+" is not an object or undefined")}},87038:function(t,e,r){var i=r(59069),o=TypeError;t.exports=function(t){if("Uint8Array"===i(t))return t;throw new o("Argument is not an Uint8Array")}},15419:function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",i=e+"-_",o=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:o(r),i2cUrl:i,c2iUrl:o(i)}},93474:function(t){var e=TypeError;t.exports=function(t){var r=t&&t.alphabet;if(void 0===r||"base64"===r||"base64url"===r)return r||"base64";throw new e("Incorrect `alphabet` option")}},47057:function(t,e,r){var i=r(1569),o=r(72878),n=r(87265),s=r(78344),a=r(39129),l=r(15419),d=r(93474),c=r(38511),h=l.c2i,u=l.c2iUrl,p=i.SyntaxError,m=i.TypeError,f=o("".charAt),v=function(t,e){for(var r=t.length;e<r;e++){var i=f(t,e);if(" "!==i&&"\t"!==i&&"\n"!==i&&"\f"!==i&&"\r"!==i)break}return e},b=function(t,e,r){var i=t.length;i<4&&(t+=2===i?"AA":"A");var o=(e[f(t,0)]<<18)+(e[f(t,1)]<<12)+(e[f(t,2)]<<6)+e[f(t,3)],n=[o>>16&255,o>>8&255,255&o];if(2===i){if(r&&0!==n[1])throw new p("Extra bits");return[n[0]]}if(3===i){if(r&&0!==n[2])throw new p("Extra bits");return[n[0],n[1]]}return n},g=function(t,e,r){for(var i=e.length,o=0;o<i;o++)t[r+o]=e[o];return r+i};t.exports=function(t,e,r,i){s(t),n(e);var o="base64"===d(e)?h:u,l=e?e.lastChunkHandling:void 0;if(void 0===l&&(l="loose"),"loose"!==l&&"strict"!==l&&"stop-before-partial"!==l)throw new m("Incorrect `lastChunkHandling` option");r&&c(r.buffer);var y=r||[],x=0,w=0,C="",_=0;if(i)for(;;){if((_=v(t,_))===t.length){if(C.length>0){if("stop-before-partial"===l)break;if("loose"!==l)throw new p("Missing padding");if(1===C.length)throw new p("Malformed padding: exactly one additional character");x=g(y,b(C,o,!1),x)}w=t.length;break}var k=f(t,_);if(++_,"="===k){if(C.length<2)throw new p("Padding is too early");if(_=v(t,_),2===C.length){if(_===t.length){if("stop-before-partial"===l)break;throw new p("Malformed padding: only one =")}"="===f(t,_)&&(++_,_=v(t,_))}if(_<t.length)throw new p("Unexpected character after padding");x=g(y,b(C,o,"strict"===l),x),w=t.length;break}if(!a(o,k))throw new p("Unexpected character");var E=i-x;if(1===E&&2===C.length||2===E&&3===C.length)break;if(4===(C+=k).length&&(x=g(y,b(C,o,!1),x),C="",w=_,x===i))break}return{bytes:y,read:w,written:x}}},35303:function(t,e,r){var i=r(1569),o=r(72878),n=i.Uint8Array,s=i.SyntaxError,a=i.parseInt,l=Math.min,d=/[^\da-f]/i,c=o(d.exec),h=o("".slice);t.exports=function(t,e){var r=t.length;if(r%2!=0)throw new s("String should be an even number of characters");for(var i=e?l(e.length,r/2):r/2,o=e||new n(i),u=0,p=0;p<i;){var m=h(t,u,u+=2);if(c(d,m))throw new s("String should only contain hex characters");o[p++]=a(m,16)}return{bytes:o,read:u}}},68107:function(t,e,r){var i=r(40810),o=r(73994),n=r(63983),s=r(71998),a=r(4576);i({target:"Iterator",proto:!0,real:!0},{every:function(t){s(this),n(t);var e=a(this),r=0;return!o(e,(function(e,i){if(!t(e,r++))return i()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},21917:function(t,e,r){var i=r(40810),o=r(1569),n=r(47057),s=r(87038);o.Uint8Array&&i({target:"Uint8Array",proto:!0},{setFromBase64:function(t){s(this);var e=n(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:e.read,written:e.written}}})},56193:function(t,e,r){var i=r(40810),o=r(1569),n=r(78344),s=r(87038),a=r(38511),l=r(35303);o.Uint8Array&&i({target:"Uint8Array",proto:!0},{setFromHex:function(t){s(this),n(t),a(this.buffer);var e=l(t,this).read;return{read:e,written:e/2}}})},25020:function(t,e,r){var i=r(40810),o=r(1569),n=r(72878),s=r(87265),a=r(87038),l=r(38511),d=r(15419),c=r(93474),h=d.i2c,u=d.i2cUrl,p=n("".charAt);o.Uint8Array&&i({target:"Uint8Array",proto:!0},{toBase64:function(){var t=a(this),e=arguments.length?s(arguments[0]):void 0,r="base64"===c(e)?h:u,i=!!e&&!!e.omitPadding;l(this.buffer);for(var o,n="",d=0,m=t.length,f=function(t){return p(r,o>>6*t&63)};d+2<m;d+=3)o=(t[d]<<16)+(t[d+1]<<8)+t[d+2],n+=f(3)+f(2)+f(1)+f(0);return d+2===m?(o=(t[d]<<16)+(t[d+1]<<8),n+=f(3)+f(2)+f(1)+(i?"":"=")):d+1===m&&(o=t[d]<<16,n+=f(3)+f(2)+(i?"":"==")),n}})},86913:function(t,e,r){var i=r(40810),o=r(1569),n=r(72878),s=r(87038),a=r(38511),l=n(1..toString);o.Uint8Array&&i({target:"Uint8Array",proto:!0},{toHex:function(){s(this),a(this.buffer);for(var t="",e=0,r=this.length;e<r;e++){var i=l(this[e],16);t+=1===i.length?"0"+i:i}return t}})},60738:function(t,e,r){r.d(e,{F_:()=>c,HQ:()=>l,kr:()=>o});class i extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=null!=r&&r}}function o(t){return t}class n{constructor(t,e,r,i){var o;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=null!==(o=t.subscribe)&&void 0!==o&&o}else this.context=e,this.callback=r,this.subscribe=null!=i&&i;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new i(this.context,this.t,this.subscribe))}}r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);class s{constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}}class a extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class l extends s{constructor(t,e,r){super(void 0!==e.context?e.initialValue:r),this.onContextRequest=t=>{const e=t.composedPath()[0];t.context===this.context&&e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{const e=t.composedPath()[0];if(t.context!==this.context||e===this.host)return;const r=new Set;for(const[t,{consumerHost:e}]of this.subscriptions)r.has(t)||(r.add(t),e.dispatchEvent(new i(this.context,t,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new a(this.context))}}r(92745);var d=r(64026);function c({context:t,subscribe:e}){return(0,d.eZ)({finisher:(r,i)=>{r.addInitializer((r=>{new n(r,{context:t,callback:t=>{r[i]=t},subscribe:e})}))}})}},1231:function(t,e,r){r.d(e,{B:()=>l});var i=r(9065),o=r(15093),n=r(57243);class s extends n.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],s.prototype,"inset",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],s.prototype,"insetStart",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],s.prototype,"insetEnd",void 0);const a=n.iv`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}{:host::before{background:CanvasText}}`;let l=class extends s{};l.styles=[a],l=(0,i.__decorate)([(0,o.Mo)("md-divider")],l)},54835:function(t,e,r){var i=r(9065),o=r(15093),n=r(57243);class s extends n.oi{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return n.dy`<span class="shadow"></span>`}}const a=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 l=class extends s{};l.styles=[a],l=(0,i.__decorate)([(0,o.Mo)("md-elevation")],l)},57618:function(t,e,r){var i=r(9065),o=r(15093),n=r(57243),s=r(19799);const a=["focusin","focusout","pointerdown"];class l extends n.oi{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new s.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 a)t?.removeEventListener(r,this),e?.addEventListener(r,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing"),c=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)} outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}} outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}} inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}} inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}{:host{animation:none}}`;let h=class extends l{};h.styles=[c],h=(0,i.__decorate)([(0,o.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 i=r(57243);const o=["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=o.map(a);function s(t){return n.includes(t)}function a(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(t){var e;if(i.sk)return t;class r extends t{constructor(){super(...arguments),this[e]=new Set}attributeChangedCallback(t,e,r){if(!s(t))return void super.attributeChangedCallback(t,e,r);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const i=h(t);null===r?delete this.dataset[i]:this.dataset[i]=r,this.requestUpdate(h(t),e)}getAttribute(t){return s(t)?super.getAttribute(c(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),s(t)&&(super.removeAttribute(c(t)),this.requestUpdate())}}return e=l,function(t){for(const e of o){const r=a(e),i=c(r),o=h(r);t.createProperty(e,{attribute:r,noAccessor:!0}),t.createProperty(Symbol(i),{attribute:i,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[o]??null},set(t){const r=this.dataset[o]??null;t!==r&&(null===t?delete this.dataset[o]:this.dataset[o]=t,this.requestUpdate(e,r))}})}}(r),r}function c(t){return`data-${t}`}function h(t){return t.replace(/-\w/,(t=>t[1].toUpperCase()))}},43895:function(t,e,r){r.d(e,{_:()=>o});r(92745),r(9359),r(31526);var i=r(7162);class o{constructor(t,e){this.host=t,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.CLICK_SELECTION}))},this.onKeydown=t=>{if(this.host.href&&"Enter"===t.code){const t=this.getInteractiveElement();t instanceof HTMLAnchorElement&&t.click()}if(t.defaultPrevented)return;const e=t.code;this.host.keepOpen&&"Escape"!==e||(0,i.kE)(e)&&(t.preventDefault(),this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.KEYDOWN,key:e})))},this.getHeadlineElements=e.getHeadlineElements,this.getSupportingTextElements=e.getSupportingTextElements,this.getDefaultElements=e.getDefaultElements,this.getInteractiveElement=e.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(null!==this.internalTypeaheadText)return this.internalTypeaheadText;const t=this.getHeadlineElements(),e=[];return t.forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),0===e.length&&this.getDefaultElements().forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),0===e.length&&this.getSupportingTextElements().forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),e.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:return"li"}}get role(){return"option"===this.host.type?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(t){this.internalTypeaheadText=t}}},99072:function(t,e,r){r.d(e,{W:()=>i});const i=r(57243).iv`:host{display:flex;--md-ripple-hover-color:var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, .3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;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}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-menu-item-one-line-container-height,56px);padding-top:var(--md-menu-item-top-space,12px);padding-bottom:var(--md-menu-item-bottom-space,12px);padding-inline-start:var(--md-menu-item-leading-space,16px);padding-inline-end:var(--md-menu-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-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-menu-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-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-menu-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}.list-item{background-color:var(--md-menu-item-container-color,transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color,var(--md-sys-color-secondary-container,#e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color,var(--md-sys-color-on-secondary-container,#1d192b))}{:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}}`},28674:function(t,e,r){r.d(e,{i:()=>p});var i=r(9065),o=r(15093),n=(r(57618),r(26499),r(23111),r(57243)),s=r(35359),a=r(79840),l=r(13823),d=r(43895);const c=(0,l.T)(n.oi);class h extends c{constructor(){super(...arguments),this.disabled=!1,this.type="menuitem",this.href="",this.target="",this.keepOpen=!1,this.selected=!1,this.menuItemController=new d._(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.menuItemController.typeaheadText}set typeaheadText(t){this.menuItemController.setTypeaheadText(t)}render(){return this.renderListItem(n.dy` <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(t){const e="link"===this.type;let r;switch(this.menuItemController.tagName){case"a":r=a.i0`a`;break;case"button":r=a.i0`button`;break;default:r=a.i0`li`}const i=e&&this.target?this.target:n.Ld;return a.dy`
<${r}
id="item"
tabindex=${this.disabled&&!e?-1:0}
role=${this.menuItemController.role}
aria-label=${this.ariaLabel||n.Ld}
aria-selected=${this.ariaSelected||n.Ld}
aria-checked=${this.ariaChecked||n.Ld}
aria-expanded=${this.ariaExpanded||n.Ld}
aria-haspopup=${this.ariaHasPopup||n.Ld}
class="list-item ${(0,s.$)(this.getRenderClasses())}"
href=${this.href||n.Ld}
target=${i}
=${this.menuItemController.onClick}
=${this.menuItemController.onKeydown}
>${t}</${r}>
`}renderRipple(){return n.dy` <md-ripple part="ripple" for="item" ?disabled="${this.disabled}"></md-ripple>`}renderFocusRing(){return n.dy` <md-focus-ring part="focus-ring" for="item" inward></md-focus-ring>`}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return n.dy` <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> `}focus(){this.listItemRoot?.focus()}}h.shadowRootOptions={...n.oi.shadowRootOptions,delegatesFocus:!0},(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],h.prototype,"disabled",void 0),(0,i.__decorate)([(0,o.Cb)()],h.prototype,"type",void 0),(0,i.__decorate)([(0,o.Cb)()],h.prototype,"href",void 0),(0,i.__decorate)([(0,o.Cb)()],h.prototype,"target",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,attribute:"keep-open"})],h.prototype,"keepOpen",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],h.prototype,"selected",void 0),(0,i.__decorate)([(0,o.IO)(".list-item")],h.prototype,"listItemRoot",void 0),(0,i.__decorate)([(0,o.NH)({slot:"headline"})],h.prototype,"headlineElements",void 0),(0,i.__decorate)([(0,o.NH)({slot:"supporting-text"})],h.prototype,"supportingTextElements",void 0),(0,i.__decorate)([(0,o.vZ)({slot:""})],h.prototype,"defaultElements",void 0),(0,i.__decorate)([(0,o.Cb)({attribute:"typeahead-text"})],h.prototype,"typeaheadText",null);var u=r(99072);let p=class extends h{};p.styles=[u.W],p=(0,i.__decorate)([(0,o.Mo)("md-menu-item")],p)},27608:function(t,e,r){r.d(e,{MT:()=>o,RV:()=>i,U2:()=>a,ZH:()=>d,t8:()=>l});r(92745),r(9359),r(31526),r(70104);function i(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function o(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const o=i(r);return(t,r)=>o.then((i=>r(i.transaction(e,t).objectStore(e))))}let n;function s(){return n||(n=o("keyval-store","keyval")),n}function a(t,e=s()){return e("readonly",(e=>i(e.get(t))))}function l(t,e,r=s()){return r("readwrite",(r=>(r.put(e,t),i(r.transaction))))}function d(t=s()){return t("readwrite",(t=>(t.clear(),i(t.transaction))))}},91583:function(t,e,r){r.d(e,{r:()=>a});var i=r(2841),o=r(45779),n=r(53232);const s=(t,e,r)=>{const i=new Map;for(let o=e;o<=r;o++)i.set(t[o],o);return i},a=(0,o.XM)(class extends o.Xe{constructor(t){if(super(t),t.type!==o.pX.CHILD)throw Error("repeat() can only be used in text expressions")}ct(t,e,r){let i;void 0===r?r=e:void 0!==e&&(i=e);const o=[],n=[];let s=0;for(const e of t)o[s]=i?i(e,s):s,n[s]=r(e,s),s++;return{values:n,keys:o}}render(t,e,r){return this.ct(t,e,r).values}update(t,[e,r,o]){var a;const l=(0,n.i9)(t),{values:d,keys:c}=this.ct(e,r,o);if(!Array.isArray(l))return this.ut=c,d;const h=null!==(a=this.ut)&&void 0!==a?a:this.ut=[],u=[];let p,m,f=0,v=l.length-1,b=0,g=d.length-1;for(;f<=v&&b<=g;)if(null===l[f])f++;else if(null===l[v])v--;else if(h[f]===c[b])u[b]=(0,n.fk)(l[f],d[b]),f++,b++;else if(h[v]===c[g])u[g]=(0,n.fk)(l[v],d[g]),v--,g--;else if(h[f]===c[g])u[g]=(0,n.fk)(l[f],d[g]),(0,n._Y)(t,u[g+1],l[f]),f++,g--;else if(h[v]===c[b])u[b]=(0,n.fk)(l[v],d[b]),(0,n._Y)(t,l[f],l[v]),v--,b++;else if(void 0===p&&(p=s(c,b,g),m=s(h,f,v)),p.has(h[f]))if(p.has(h[v])){const e=m.get(c[b]),r=void 0!==e?l[e]:null;if(null===r){const e=(0,n._Y)(t,l[f]);(0,n.fk)(e,d[b]),u[b]=e}else u[b]=(0,n.fk)(r,d[b]),(0,n._Y)(t,l[f],r),l[e]=null;b++}else(0,n.ws)(l[v]),v--;else(0,n.ws)(l[f]),f++;for(;b<=g;){const e=(0,n._Y)(t,u[g+1]);(0,n.fk)(e,d[b]),u[b++]=e}for(;f<=v;){const t=l[f++];null!==t&&(0,n.ws)(t)}return this.ut=c,(0,n.hl)(t,u),i.Jb}})},94571:function(t,e,r){r.d(e,{C:()=>u});r(9359),r(1331);var i=r(2841),o=r(53232),n=r(1714);class s{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class a{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 l=r(45779);const d=t=>!(0,o.pt)(t)&&"function"==typeof t.then,c=1073741823;class h extends n.sR{constructor(){super(...arguments),this._$C_t=c,this._$Cwt=[],this._$Cq=new s(this),this._$CK=new a}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:i.Jb}update(t,e){const r=this._$Cwt;let o=r.length;this._$Cwt=e;const n=this._$Cq,s=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const i=e[t];if(!d(i))return this._$C_t=t,i;t<o&&i===r[t]||(this._$C_t=c,o=0,Promise.resolve(i).then((async t=>{for(;s.get();)await s.get();const e=n.deref();if(void 0!==e){const r=e._$Cwt.indexOf(i);r>-1&&r<e._$C_t&&(e._$C_t=r,e.setValue(t))}})))}return i.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const u=(0,l.XM)(h)},79840:function(t,e,r){r.d(e,{i0:()=>s,dy:()=>d});r(92745),r(9359),r(48136);var i=r(2841);const o=Symbol.for(""),n=t=>{if((null==t?void 0:t.r)===o)return null==t?void 0:t._$litStatic$},s=(t,...e)=>({_$litStatic$:e.reduce(((e,r,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(r)+t[i+1]),t[0]),r:o}),a=new Map,l=t=>(e,...r)=>{const i=r.length;let o,s;const l=[],d=[];let c,h=0,u=!1;for(;h<i;){for(c=e[h];h<i&&void 0!==(s=r[h],o=n(s));)c+=o+e[++h],u=!0;h!==i&&d.push(s),l.push(c),h++}if(h===i&&l.push(e[i]),u){const t=l.join("$$lit$$");void 0===(e=a.get(t))&&(l.raw=l,a.set(t,e=l)),r=d}return t(e,...r)},d=l(i.dy);l(i.YP)}};
//# sourceMappingURL=62511.cdf62272d365b72e.js.map