UNPKG

iobroker.lovelace

Version:

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

17 lines 43.4 kB
/*! For license information please see 4185.41bf3eb347ce5a45.js.LICENSE.txt */ export const __rspack_esm_id=4185;export const __rspack_esm_ids=[4185];export const __webpack_modules__={7658(e,t,i){i.d(t,{I:()=>r});var r=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},12451(e,t,i){i.d(t,{O:()=>s,i:()=>a.is});var r=i(5124),a=i(12130);class s extends r.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()}}},51324(e,t,i){i.d(t,{ZS:()=>c,is:()=>n.i});var r,a,s=i(62826),o=i(22441),n=i(12451);const l=null!==(a=null===(r=window.ShadyDOM)||void 0===r?void 0:r.inUse)&&void 0!==a&&a;class c extends n.O{findFormElement(){if(!this.shadowRoot||l)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,s.Cg)([(0,o.MZ)({type:Boolean})],c.prototype,"disabled",void 0)},56161(e,t,i){i.d(t,{P:()=>r});i(18111),i(7588),i(45367),i(92731);const r=e=>(t,i)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){const e=t.constructor._observers;t.constructor._observers=new Map,e.forEach((e,i)=>t.constructor._observers.set(i,e))}}else{t.constructor._observers=new Map;const e=t.updated;t.updated=function(t){e.call(this,t),t.forEach((e,t)=>{const i=this.constructor._observers.get(t);void 0!==i&&i.call(this,this[t],e)})}}t.constructor._observers.set(i,e)}},12130(e,t,i){i.d(t,{SE:()=>c,U9:()=>l,hP:()=>r,is:()=>a});i(44114);const r=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 s=!1;const o=()=>{},n={get passive(){return s=!0,!1}};document.addEventListener("x",o,n),document.removeEventListener("x",o);const l=(e=window.document)=>{let t=e.activeElement;const i=[];if(!t)return i;for(;t&&(i.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return i},c=e=>{const t=l();if(!t.length)return!1;const i=t[t.length-1],r=new Event("check-if-focused",{bubbles:!0,composed:!0});let a=[];const s=e=>{a=e.composedPath()};return document.body.addEventListener("check-if-focused",s),i.dispatchEvent(r),document.body.removeEventListener("check-if-focused",s),-1!==a.indexOf(e)}},68462(e,t,i){i.d(t,{M:()=>m});var r=i(62826),a=i(7658),s={ROOT:"mdc-form-field"},o={LABEL_SELECTOR:".mdc-form-field > label"};const n=function(e){function t(i){var a=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),i))||this;return a.click=function(){a.handleClick()},a}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o},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}(a.I);var l=i(12451),c=i(51324),d=i(56161),h=i(5124),p=i(22441),u=i(6412);class m extends l.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 h.qy` <div class="mdc-form-field ${(0,u.H)(e)}"> <slot></slot> <label class="mdc-label" @click="${this._labelClick}">${this.label}</label> </div>`}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=n}}(0,r.Cg)([(0,p.MZ)({type:Boolean})],m.prototype,"alignEnd",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean})],m.prototype,"spaceBetween",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean})],m.prototype,"nowrap",void 0),(0,r.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)})],m.prototype,"label",void 0),(0,r.Cg)([(0,p.P)(".mdc-form-field")],m.prototype,"mdcRoot",void 0),(0,r.Cg)([(0,p.KN)({slot:"",flatten:!0,selector:"*"})],m.prototype,"slottedInputs",void 0),(0,r.Cg)([(0,p.P)("label")],m.prototype,"labelEl",void 0)},38627(e,t,i){i.d(t,{R:()=>r});const r=i(5124).AH`.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}`},77957(e,t,i){var r=i(76080),a=i(79504),s=i(47055),o=i(48981),n=i(56969),l=i(26198),c=i(2360),d=i(35370),h=Array,p=a([].push);e.exports=function(e,t,i,a){for(var u,m,f,v=o(e),g=s(v),y=r(t,i),b=c(null),w=l(g),x=0;w>x;x++)f=g[x],(m=n(y(f,x,v)))in b?p(b[m],f):b[m]=[f];if(a&&(u=a(v))!==h)for(m in b)b[m]=d(u,b[m]);return b}},48646(e,t,i){var r=i(69565),a=i(28551),s=i(1767),o=i(50851);e.exports=function(e,t){t&&"string"==typeof e||a(e);var i=o(e);return s(a(void 0!==i?r(i,e):e))}},65213(e,t,i){var r=i(44576),a=i(79039),s=r.RegExp,o=!a(function(){var e=!0;try{s(".","d")}catch(t){e=!1}var t={},i="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return i+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var n in e&&(o.hasIndices="d"),o)a(n,o[n]);return Object.getOwnPropertyDescriptor(s.prototype,"flags").get.call(t)!==r||i!==r});e.exports={correct:o}},67979(e,t,i){var r=i(28551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},30531(e,t,i){var r=i(46518),a=i(69565),s=i(79306),o=i(28551),n=i(1767),l=i(48646),c=i(19462),d=i(9539),h=i(96395),p=i(30684),u=i(84549);var m=!h&&!p("flatMap",function(){}),f=!h&&!m&&u("flatMap",TypeError),v=h||m||f||function(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e.return()}catch(e){return!0}}(),g=c(function(){for(var e,t,i=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=o(a(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){d(i,"throw",e)}if(e=o(a(this.next,i)),this.done=!!e.done)return;try{this.inner=l(r(e.value,this.counter++),!1)}catch(e){d(i,"throw",e)}}});r({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(e){o(this);try{s(e)}catch(e){d(this,"throw",e)}return f?a(f,this,e):new g(n(this),{mapper:e,inner:null})}})},69479(e,t,i){var r=i(43724),a=i(62106),s=i(65213),o=i(67979);r&&!s.correct&&(a(RegExp.prototype,"flags",{configurable:!0,get:o}),s.correct=!0)},46058(e,t,i){var r=i(46518),a=i(77957),s=i(6469);r({target:"Array",proto:!0},{group:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),s("group")},68825(e,t,i){var r=i(22441),a=i(9395),s=i(717),o=i(5124).AH`:host{--color:var(--wa-color-surface-border);--width:var(--wa-border-width-s);--spacing:var(--wa-space-m)}:host(:not([orientation=vertical])){display:block;border-top:solid var(--width) var(--color);margin:var(--spacing) 0}:host([orientation=vertical]){display:inline-block;height:100%;border-inline-start:solid var(--width) var(--color);margin:0 var(--spacing);min-block-size:1lh}`,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=(e,t,i,r)=>{for(var a,s=r>1?void 0:r?l(t,i):t,o=e.length-1;o>=0;o--)(a=e[o])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&n(t,i,s),s};let d=class extends s.A{connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.orientation)}constructor(){super(...arguments),this.orientation="horizontal"}};d.css=o,c([(0,r.MZ)({reflect:!0})],d.prototype,"orientation",2),c([(0,a.w)("orientation")],d.prototype,"handleVerticalChange",1),d=c([(0,r.EM)("wa-divider")],d)},29344(e,t,i){i.a(e,async function(e,r){try{i.d(t,{A:()=>k});var a=i(5124),s=i(22441),o=i(6412),n=i(63672),l=i(34514),c=i(40991),d=i(92070),h=i(41268),p=i(9395),u=i(62676),m=i(15477),f=i(31896),v=i(17060),g=i(19978),y=e([v]);v=(y.then?(await y)():y)[0];var b=Object.defineProperty,w=Object.getOwnPropertyDescriptor,x=(e,t,i,r)=>{for(var a,s=r>1?void 0:r?w(t,i):t,o=e.length-1;o>=0;o--)(a=e[o])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&b(t,i,s),s};let k=class extends u.q{static get validators(){return[...super.validators,(0,h.i)()]}get value(){return this._value??"on"}set value(e){this._value=e}handleSizeChange(){(0,c.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.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}handleKeyDown(e){const t="rtl"===this.localize.dir();"ArrowLeft"===e.key&&(e.preventDefault(),this.checked=t,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))})),"ArrowRight"===e.key&&(e.preventDefault(),this.checked=!t,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}))}willUpdate(e){super.willUpdate(e),(e.has("value")||e.has("checked")||e.has("defaultChecked"))&&this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked),this.customStates.set("checked",this.checked),this.updateValidity()}handleDisabledChange(){this.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}setValue(e,t){this.checked?this.internals.setFormValue(e??"on",t):this.internals.setFormValue(null,null)}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}render(){const e=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,t=!!this.hint||!!e;return a.qy` <label part="base" class="${(0,o.H)({checked:this.checked,disabled:this.disabled})}"> <input class="input" type="checkbox" title="${this.title}" name="${(0,n.J)(this.name)}" value="${(0,n.J)(this.value)}" .checked="${(0,l.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" role="switch" aria-checked="${this.checked?"true":"false"}" aria-describedby="hint" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"> <span part="control" class="switch"> <span part="thumb" class="thumb"></span> </span> <slot part="label" class="label"></slot> </label> <slot id="hint" name="hint" part="hint" class="${(0,o.H)({"has-slotted":t})}" aria-hidden="${t?"false":"true"}">${this.hint}</slot> `}constructor(){super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.localize=new v.c(this),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint="",this.withHint=!1}};k.shadowRootOptions={...u.q.shadowRootOptions,delegatesFocus:!0},k.css=[m.A,f.A,g.A],x([(0,s.P)('input[type="checkbox"]')],k.prototype,"input",2),x([(0,s.MZ)()],k.prototype,"title",2),x([(0,s.MZ)({reflect:!0})],k.prototype,"name",2),x([(0,s.MZ)({reflect:!0})],k.prototype,"value",1),x([(0,s.MZ)({reflect:!0})],k.prototype,"size",2),x([(0,p.w)("size")],k.prototype,"handleSizeChange",1),x([(0,s.MZ)({type:Boolean})],k.prototype,"disabled",2),x([(0,s.MZ)({type:Boolean,attribute:!1})],k.prototype,"checked",1),x([(0,s.MZ)({type:Boolean,attribute:"checked",reflect:!0})],k.prototype,"defaultChecked",2),x([(0,s.MZ)({type:Boolean,reflect:!0})],k.prototype,"required",2),x([(0,s.MZ)({attribute:"hint"})],k.prototype,"hint",2),x([(0,s.MZ)({attribute:"with-hint",type:Boolean})],k.prototype,"withHint",2),x([(0,p.w)(["checked","defaultChecked"])],k.prototype,"handleStateChange",1),x([(0,p.w)("disabled",{waitUntilFirstUpdate:!0})],k.prototype,"handleDisabledChange",1),k=x([(0,s.EM)("wa-switch")],k),k.disableWarning?.("change-in-update"),r()}catch(e){r(e)}})},19978(e,t,i){i.d(t,{A:()=>r});var r=i(5124).AH`:host{--height:var(--wa-form-control-toggle-size);--width:calc(var(--height) * 1.75);--thumb-size:0.75em;display:inline-flex;line-height:var(--wa-form-control-value-line-height)}label{position:relative;display:flex;align-items:center;font:inherit;color:var(--wa-form-control-value-color);vertical-align:middle;cursor:pointer}.switch{flex:0 0 auto;position:relative;display:flex;align-items:center;justify-content:center;width:var(--width);height:var(--height);background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color);border-radius:var(--height);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);transition-property:translate,background,border-color,box-shadow;transition-duration:var(--wa-transition-normal);transition-timing-function:var(--wa-transition-easing)}.switch .thumb{aspect-ratio:1/1;width:var(--thumb-size);height:var(--thumb-size);background-color:var(--wa-form-control-border-color);border-radius:50%;translate:calc((var(--width) - var(--height))/ -2);transition:inherit}.switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ 2)}.input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}label:not(.disabled) .input:focus-visible~.switch .thumb{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.checked .switch{background-color:var(--wa-form-control-activated-color);border-color:var(--wa-form-control-activated-color)}.checked .switch .thumb{background-color:var(--wa-color-surface-default);translate:calc((var(--width) - var(--height))/ 2)}.checked .switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ -2)}label:has(> :disabled){opacity:.5;cursor:not-allowed}[part~=label]{display:inline-block;line-height:var(--height);margin-inline-start:.5em;user-select:none;-webkit-user-select:none}: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)}@media (forced-colors:active){:checked+.switch .thumb,:checked:enabled+.switch:hover .thumb{background-color:ButtonText}}`},35463(e,t,i){i.d(t,{Q:()=>r});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);class r{handleChanges(e){this.value=this.callback?.(e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){const e=this.u.takeRecords();e.length&&this.handleChanges(e)}observe(e){this.t.add(e),this.u.observe(e),this.i=!0}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}constructor(e,{target:t,config:i,callback:r,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(t??e),this.o=a??this.o,this.callback=r,window.IntersectionObserver?(this.u=new IntersectionObserver(e=>{const t=this.i;this.i=!1,this.o&&t||(this.handleChanges(e),this.h.requestUpdate())},i),e.addController(this)):console.warn("IntersectionController error: browser does not support IntersectionObserver.")}}},99731(e,t,i){i.d(t,{Y:()=>c});var r=i(62826),a=i(22441),s=(i(18111),i(22489),i(20116),i(5124)),o=i(99591);class n extends s.WF{get chips(){return this.childElements.filter(e=>e instanceof o.v)}render(){return s.qy`<slot @slotchange="${this.updateTabIndices}"></slot>`}handleKeyDown(e){const t="ArrowLeft"===e.key,i="ArrowRight"===e.key,r="Home"===e.key,a="End"===e.key;if(!(t||i||r||a))return;const{chips:s}=this;if(s.length<2)return;if(e.preventDefault(),r||a){return s[r?0:s.length-1].focus({trailing:a}),void this.updateTabIndices()}const o="rtl"===getComputedStyle(this).direction?t:i,n=s.find(e=>e.matches(":focus-within"));if(!n){return(o?s[0]:s[s.length-1]).focus({trailing:!o}),void this.updateTabIndices()}const l=s.indexOf(n);let c=o?l+1:l-1;for(;c!==l;){c>=s.length?c=0:c<0&&(c=s.length-1);const e=s[c];if(!e.disabled||e.alwaysFocusable){e.focus({trailing:!o}),this.updateTabIndices();break}o?c++:c--}}updateTabIndices(){const{chips:e}=this;let t;for(const i of e){const e=i.alwaysFocusable||!i.disabled;i.matches(":focus-within")&&e?t=i:(e&&!t&&(t=i),i.tabIndex=-1)}t&&(t.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),s.S$||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}}(0,r.Cg)([(0,a.KN)()],n.prototype,"childElements",void 0);const l=s.AH`:host{display:flex;flex-wrap:wrap;gap:8px}`;let c=class extends n{};c.styles=[l],c=(0,r.Cg)([(0,a.EM)("md-chip-set")],c)},96229(e,t,i){i.d(t,{k:()=>n});var r=i(62826),a=(i(73535),i(5124)),s=i(22441),o=i(99591);class n extends o.v{get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&(this.disabled||this.softDisabled),elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?a.qy` <a class="primary action" id="link" aria-label="${t||a.s6}" href="${this.href}" download="${this.download||a.s6}" target="${this.target||a.s6}">${e}</a> `:a.qy` <button class="primary action" id="button" aria-label="${t||a.s6}" aria-disabled="${this.softDisabled||a.s6}" ?disabled="${this.disabled&&!this.alwaysFocusable}" type="button">${e}</button> `}renderOutline(){return this.elevated?a.qy`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}constructor(){super(...arguments),this.elevated=!1,this.href="",this.download="",this.target=""}}(0,r.Cg)([(0,s.MZ)({type:Boolean})],n.prototype,"elevated",void 0),(0,r.Cg)([(0,s.MZ)()],n.prototype,"href",void 0),(0,r.Cg)([(0,s.MZ)()],n.prototype,"download",void 0),(0,r.Cg)([(0,s.MZ)()],n.prototype,"target",void 0)},26069(e,t,i){i.d(t,{R:()=>r});const r=i(5124).AH`:host{--_container-height:var(--md-assist-chip-container-height, 32px);--_disabled-label-text-color:var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color:var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation:var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color:var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color:var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation:var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity:var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation:var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation:var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation:var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color:var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color:var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color:var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity:var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color:var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font:var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size:var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight:var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color:var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color:var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity:var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color:var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity:var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color:var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color:var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width:var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color:var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color:var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color:var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color:var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size:var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color:var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start:var(--md-assist-chip-container-shape-start-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end:var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end:var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start:var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space:var(--md-assist-chip-leading-space, 16px);--_trailing-space:var(--md-assist-chip-trailing-space, 16px);--_icon-label-space:var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space:var(--md-assist-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors:active){.link .outline{border-color:ActiveText}}`},27525(e,t,i){function r(e,t=u){const i=n(e,t);return i&&(i.tabIndex=0,i.focus()),i}function a(e,t=u){const i=l(e,t);return i&&(i.tabIndex=0,i.focus()),i}function s(e,t=u){const i=o(e,t);return i&&(i.item.tabIndex=-1),i}function o(e,t=u){for(let i=0;i<e.length;i++){const r=e[i];if(0===r.tabIndex&&t(r))return{item:r,index:i}}return null}function n(e,t=u){for(const i of e)if(t(i))return i;return null}function l(e,t=u){for(let i=e.length-1;i>=0;i--){const r=e[i];if(t(r))return r}return null}function c(e,t,i=u,a=!0){if(t){const r=function(e,t,i=u,r=!0){for(let a=1;a<e.length;a++){const s=(a+t)%e.length;if(s<t&&!r)return null;const o=e[s];if(i(o))return o}return e[t]?e[t]:null}(e,t.index,i,a);return r&&(r.tabIndex=0,r.focus()),r}return r(e,i)}function d(e,t,i=u,r=!0){if(t){const a=function(e,t,i=u,r=!0){for(let a=1;a<e.length;a++){const s=(t-a+e.length)%e.length;if(s>t&&!r)return null;const o=e[s];if(i(o))return o}return e[t]?e[t]:null}(e,t.index,i,r);return a&&(a.tabIndex=0,a.focus()),a}return a(e,i)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function p(){return new Event("request-activation",{bubbles:!0,composed:!0})}function u(e){return!e.disabled}i.d(t,{A6:()=>o,Ex:()=>l,RN:()=>h,RZ:()=>a,c7:()=>n,cG:()=>p,u9:()=>d,ub:()=>s,wm:()=>c,zT:()=>r})},82553(e,t,i){i.d(t,{R:()=>r});const r=i(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,i){i.d(t,{n:()=>f});var r=i(62826),a=(i(75275),i(22441)),s=i(5124);class o extends s.WF{render(){return s.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 i of this.textSlots)if(n(i)&&(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,i=t.nodeType===Node.TEXT_NODE&&t.textContent?.match(/\S/);if(e||i)return!0}return!1}(0,r.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],o.prototype,"multiline",void 0),(0,r.Cg)([(0,a.YG)(".text slot")],o.prototype,"textSlots",void 0);const l=s.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 c=class extends o{};c.styles=[l],c=(0,r.Cg)([(0,a.EM)("md-item")],c);i(71970);var d=i(6412),h=i(7872),p=i(1024),u=i(27525);const m=(0,p.n)(s.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(s.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 i;switch(this.type){case"link":i=h.eu`a`;break;case"button":i=h.eu`button`;break;default:i=h.eu`li`}const r="text"!==this.type,a=t&&this.target?this.target:s.s6;return h.qy` <${i} id="item" tabindex="${this.isDisabled||!r?-1:0}" ?disabled=${this.isDisabled} role="listitem" aria-selected=${this.ariaSelected||s.s6} aria-checked=${this.ariaChecked||s.s6} aria-expanded=${this.ariaExpanded||s.s6} aria-haspopup=${this.ariaHasPopup||s.s6} class="list-item ${(0,d.H)(this.getRenderClasses())}" href=${this.href||s.s6} target=${a} @focus=${this.onFocus} >${e}</${i}> `}renderRipple(){return"text"===this.type?s.s6:s.qy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?s.s6:s.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 s.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,u.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={...s.WF.shadowRootOptions,delegatesFocus:!0},(0,r.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],f.prototype,"disabled",void 0),(0,r.Cg)([(0,a.MZ)({reflect:!0})],f.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],f.prototype,"isListItem",void 0),(0,r.Cg)([(0,a.MZ)()],f.prototype,"href",void 0),(0,r.Cg)([(0,a.MZ)()],f.prototype,"target",void 0),(0,r.Cg)([(0,a.P)(".list-item")],f.prototype,"listItemRoot",void 0)},2209(e,t,i){i.d(t,{LV:()=>p});i(18111),i(61701),i(18237),i(45367),i(92731),i(88454),i(29452);const r=Symbol("Comlink.proxy"),a=Symbol("Comlink.endpoint"),s=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),n=Symbol("Comlink.thrown"),l=e=>"object"==typeof e&&null!==e||"function"==typeof e,c=new Map([["proxy",{canHandle:e=>l(e)&&e[r],serialize(e){const{port1:t,port2:i}=new MessageChannel;return d(e,t),[i,[i]]},deserialize:e=>(e.start(),p(e))}],["throw",{canHandle:e=>l(e)&&n in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function d(e,t=globalThis,i=["*"]){t.addEventListener("message",function a(s){if(!s||!s.data)return;if(!function(e,t){for(const i of e){if(t===i||"*"===i)return!0;if(i instanceof RegExp&&i.test(t))return!0}return!1}(i,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:l,type:c,path:p}=Object.assign({path:[]},s.data),u=(s.data.argumentList||[]).map(x);let m;try{const t=p.slice(0,-1).reduce((e,t)=>e[t],e),i=p.reduce((e,t)=>e[t],e);switch(c){case"GET":m=i;break;case"SET":t[p.slice(-1)[0]]=x(s.data.value),m=!0;break;case"APPLY":m=i.apply(t,u);break;case"CONSTRUCT":m=function(e){return Object.assign(e,{[r]:!0})}(new i(...u));break;case"ENDPOINT":{const{port1:t,port2:i}=new MessageChannel;d(e,i),m=function(e,t){return b.set(e,t),e}(t,[t])}break;case"RELEASE":m=void 0;break;default:return}}catch(e){m={value:e,[n]:0}}Promise.resolve(m).catch(e=>({value:e,[n]:0})).then(i=>{const[r,s]=w(i);t.postMessage(Object.assign(Object.assign({},r),{id:l}),s),"RELEASE"===c&&(t.removeEventListener("message",a),h(t),o in e&&"function"==typeof e[o]&&e[o]())}).catch(e=>{const[i,r]=w({value:new TypeError("Unserializable return value"),[n]:0});t.postMessage(Object.assign(Object.assign({},i),{id:l}),r)})}),t.start&&t.start()}function h(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function p(e,t){const i=new Map;return e.addEventListener("message",function(e){const{data:t}=e;if(!t||!t.id)return;const r=i.get(t.id);if(r)try{r(t)}finally{i.delete(t.id)}}),g(e,i,[],t)}function u(e){if(e)throw new Error("Proxy has been released and is not useable")}function m(e){return k(e,new Map,{type:"RELEASE"}).then(()=>{h(e)})}const f=new WeakMap,v="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(f.get(e)||0)-1;f.set(e,t),0===t&&m(e)});function g(e,t,i=[],r=function(){}){let o=!1;const n=new Proxy(r,{get(r,a){if(u(o),a===s)return()=>{!function(e){v&&v.unregister(e)}(n),m(e),t.clear(),o=!0};if("then"===a){if(0===i.length)return{then:()=>n};const r=k(e,t,{type:"GET",path:i.map(e=>e.toString())}).then(x);return r.then.bind(r)}return g(e,t,[...i,a])},set(r,a,s){u(o);const[n,l]=w(s);return k(e,t,{type:"SET",path:[...i,a].map(e=>e.toString()),value:n},l).then(x)},apply(r,s,n){u(o);const l=i[i.length-1];if(l===a)return k(e,t,{type:"ENDPOINT"}).then(x);if("bind"===l)return g(e,t,i.slice(0,-1));const[c,d]=y(n);return k(e,t,{type:"APPLY",path:i.map(e=>e.toString()),argumentList:c},d).then(x)},construct(r,a){u(o);const[s,n]=y(a);return k(e,t,{type:"CONSTRUCT",path:i.map(e=>e.toString()),argumentList:s},n).then(x)}});return function(e,t){const i=(f.get(t)||0)+1;f.set(t,i),v&&v.register(e,t,e)}(n,e),n}function y(e){const t=e.map(w);return[t.map(e=>e[0]),(i=t.map(e=>e[1]),Array.prototype.concat.apply([],i))];var i}const b=new WeakMap;function w(e){for(const[t,i]of c)if(i.canHandle(e)){const[r,a]=i.serialize(e);return[{type:"HANDLER",name:t,value:r},a]}return[{type:"RAW",value:e},b.get(e)||[]]}function x(e){switch(e.type){case"HANDLER":return c.get(e.name).deserialize(e.value);case"RAW":return e.value}}function k(e,t,i,r){return new Promise(a=>{const s=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(s,a),e.start&&e.start(),e.postMessage(Object.assign({id:s},i),r)})}},95192(e,t,i){i.d(t,{IU:()=>c,Jt:()=>n,Yd:()=>r,hZ:()=>l,y$:()=>a});i(44114),i(18111),i(7588),i(61701);function r(e){return new Promise((t,i)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>i(e.error)})}function a(e,t){let i;return(a,s)=>(()=>{if(i)return i;const a=indexedDB.open(e);return a.onupgradeneeded=()=>a.result.createObjectStore(t),i=r(a),i.then(e=>{e.onclose=()=>i=void 0},()=>{}),i})().then(e=>s(e.transaction(t,a).objectStore(t)))}let s;function o(){return s||(s=a("keyval-store","keyval")),s}function n(e,t=o()){return t("readonly",t=>r(t.get(e)))}function l(e,t,i=o()){return i("readwrite",i=>(i.put(t,e),r(i.transaction)))}function c(e=o()){return e("readwrite",e=>(e.clear(),r(e.transaction)))}}};