iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
20 lines • 110 kB
JavaScript
/*! For license information please see 58300.3d37d6fc49a6ef28.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[58300],{35370:function(t,e,r){var i=r(26198);t.exports=function(t,e,r){for(var a=0,o=arguments.length>2?r:i(e),n=new t(o);o>a;)n[a]=e[a++];return n}},48646:function(t,e,r){var i=r(69565),a=r(28551),o=r(1767),n=r(50851);t.exports=function(t,e){e&&"string"==typeof t||a(t);var r=n(t);return o(a(void 0!==r?i(r,t):t))}},78350:function(t,e,r){var i=r(46518),a=r(70259),o=r(79306),n=r(48981),s=r(26198),l=r(1469);i({target:"Array",proto:!0},{flatMap:function(t){var e,r=n(this),i=s(r);return o(t),e=l(r,0),a(e,r,r,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},30237:function(t,e,r){r(6469)("flatMap")},30531:function(t,e,r){var i=r(46518),a=r(69565),o=r(79306),n=r(28551),s=r(1767),l=r(48646),c=r(19462),d=r(9539),u=r(96395),h=r(30684),p=r(84549);var f=!u&&!h("flatMap",function(){}),m=!u&&!f&&p("flatMap",TypeError),v=u||f||m||function(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(t){return t});t.next(),t.return()}catch(e){return!0}}(),g=c(function(){for(var t,e,r=this.iterator,i=this.mapper;;){if(e=this.inner)try{if(!(t=n(a(e.next,e.iterator))).done)return t.value;this.inner=null}catch(o){d(r,"throw",o)}if(t=n(a(this.next,r)),this.done=!!t.done)return;try{this.inner=l(i(t.value,this.counter++),!1)}catch(o){d(r,"throw",o)}}});i({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(t){n(this);try{o(t)}catch(e){d(this,"throw",e)}return m?a(m,this,t):new g(s(this),{mapper:t,inner:null})}})},78347:function(t,e,r){r(46518)({target:"Object",stat:!0},{hasOwn:r(39297)})},34594:function(t,e,r){r(15823)("Float32",function(t){return function(e,r,i){return t(this,e,r,i)}})},29833:function(t,e,r){r(15823)("Float64",function(t){return function(e,r,i){return t(this,e,r,i)}})},72107:function(t,e,r){r(15823)("Int16",function(t){return function(e,r,i){return t(this,e,r,i)}})},95477:function(t,e,r){r(15823)("Int32",function(t){return function(e,r,i){return t(this,e,r,i)}})},46594:function(t,e,r){r(15823)("Int8",function(t){return function(e,r,i){return t(this,e,r,i)}})},3690:function(t,e,r){r(15823)("Uint16",function(t){return function(e,r,i){return t(this,e,r,i)}})},61740:function(t,e,r){r(15823)("Uint32",function(t){return function(e,r,i){return t(this,e,r,i)}})},97577:function(t,e,r){r.d(e,{A:function(){return k}});r(27495),r(62953);var i=r(5124),a=r(67576),o=r(6412),n=r(63672),s=r(34514),l=r(40991),c=r(92070),d=r(49546),u=r(9395),h=r(62676),p=r(15477),f=r(31896);r(38625);let m;var v=(0,i.AH)(m||(m=(t=>t)`:host{--checked-icon-color:var(--wa-color-brand-on-loud);--checked-icon-scale:0.8;display:inline-flex;color:var(--wa-form-control-value-color);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);user-select:none;-webkit-user-select:none}[part~=control]{display:inline-flex;flex:0 0 auto;position:relative;align-items:center;justify-content:center;width:var(--wa-form-control-toggle-size);height:var(--wa-form-control-toggle-size);border-color:var(--wa-form-control-border-color);border-radius:min(calc(var(--wa-form-control-toggle-size) * .375),var(--wa-border-radius-s));border-style:var(--wa-border-style);border-width:var(--wa-form-control-border-width);background-color:var(--wa-form-control-background-color);transition:background var(--wa-transition-normal),border-color var(--wa-transition-fast),box-shadow var(--wa-transition-fast),color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);margin-inline-end:.5em}[part~=base]{display:flex;align-items:flex-start;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:inline}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color);border-color:var(--wa-form-control-activated-color);background-color:var(--wa-form-control-activated-color)}[part~=control]:has(> input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;scale:var(--checked-icon-scale)}[part~=icon]::part(svg){translate:0.0009765625em}input:not(:checked,:indeterminate)+[part~=icon]{visibility:hidden}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}`));let g,y,b,w=t=>t;var C=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=(t,e,r,i)=>{for(var a,o=i>1?void 0:i?x(e,r):e,n=t.length-1;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&C(e,r,o),o};let k=class extends h.q{static get validators(){const t=i.S$?[]:[(0,d.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...t]}get value(){var t;return null!==(t=this._value)&&void 0!==t?t:"on"}set value(t){this._value=t}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){var t;return this.valueHasChanged?Boolean(this._checked):null!==(t=this._checked)&&void 0!==t?t:this.defaultChecked}set checked(t){this._checked=Boolean(t),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback(),this.handleDefaultCheckedChange()}handleDefaultCheckedChange(){this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("checked")||t.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=!!i.S$||this.hasSlotController.test("hint"),e=!!this.hint||!!t,r=!this.checked&&this.indeterminate,a=r?"indeterminate":"check",l=r?"indeterminate":"check";return(0,i.qy)(g||(g=w` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${0}" name="${0}" value="${0}" .indeterminate="${0}" .checked="${0}" .disabled="${0}" .required="${0}" aria-checked="${0}" aria-describedby="hint" @click="${0}"> <wa-icon part="${0}-icon icon" library="system" name="${0}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${0}" class="${0}"> ${0} </slot> `),this.title,(0,n.J)(this.name),(0,n.J)(this._value),(0,s.V)(this.indeterminate),(0,s.V)(this.checked),this.disabled,this.required,this.indeterminate?"mixed":this.checked?"true":"false",this.handleClick,l,a,e?"false":"true",(0,o.H)({"has-slotted":e}),this.hint)}constructor(){var t;super(...arguments),this.hasSlotController=new c.X(this,"hint"),this.title="",this.name=null,this._value=null!==(t=this.getAttribute("value"))&&void 0!==t?t:null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};k.css=[p.A,f.A,v],k.shadowRootOptions=Object.assign(Object.assign({},h.q.shadowRootOptions),{},{delegatesFocus:!0}),$([(0,a.P)('input[type="checkbox"]')],k.prototype,"input",2),$([(0,a.MZ)()],k.prototype,"title",2),$([(0,a.MZ)({reflect:!0})],k.prototype,"name",2),$([(0,a.MZ)({reflect:!0})],k.prototype,"value",1),$([(0,a.MZ)({reflect:!0})],k.prototype,"size",2),$([(0,u.w)("size")],k.prototype,"handleSizeChange",1),$([(0,a.MZ)({type:Boolean})],k.prototype,"disabled",2),$([(0,a.MZ)({type:Boolean,reflect:!0})],k.prototype,"indeterminate",2),$([(0,a.MZ)({type:Boolean,attribute:!1})],k.prototype,"checked",1),$([(0,a.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],k.prototype,"defaultChecked",2),$([(0,a.MZ)({type:Boolean,reflect:!0})],k.prototype,"required",2),$([(0,a.MZ)()],k.prototype,"hint",2),$([(0,u.w)(["checked","defaultChecked"])],k.prototype,"handleDefaultCheckedChange",1),$([(0,u.w)(["checked","indeterminate"])],k.prototype,"handleStateChange",1),$([(0,u.w)("disabled")],k.prototype,"handleDisabledChange",1),k=$([(0,a.EM)("wa-checkbox")],k),null===(y=(b=k).disableWarning)||void 0===y||y.call(b,"change-in-update")},93900:function(t,e,r){r.a(t,async function(t,e){try{r(3362),r(27495),r(62953);var i=r(5124),a=r(67576),o=r(6412),n=r(63672),s=r(17051),l=r(42462),c=r(28438),d=r(98779),u=r(27259),h=r(25877),p=r(31247),f=r(4444),m=r(92070),v=r(9395),g=r(717),y=r(17060),b=r(88496),w=r(91470),C=t([b,y]);[b,y]=C.then?(await C)():C;let A,E,T,O=t=>t;var x=Object.defineProperty,$=Object.getOwnPropertyDescriptor,k=(t,e,r,i)=>{for(var a,o=i>1?void 0:i?$(e,r):e,n=t.length-1;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&x(e,r,o),o};let I=class extends g.A{firstUpdated(){this.open&&(this.addOpenListeners(),this.dialog.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(t){const e=new c.L({source:t});if(this.dispatchEvent(e),e.defaultPrevented)return this.open=!0,void(0,u.Ud)(this.dialog,"pulse");this.removeOpenListeners(),await(0,u.Ud)(this.dialog,"hide"),this.open=!1,this.dialog.close(),(0,f.I7)(this);const r=this.originalTrigger;"function"==typeof(null==r?void 0:r.focus)&&setTimeout(()=>r.focus()),this.dispatchEvent(new s.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,h.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,h.Fw)(this)}handleDialogCancel(t){t.preventDefault(),!this.dialog.classList.contains("hide")&&t.target===this.dialog&&(0,h.a0)(this)&&this.requestClose(this.dialog)}handleDialogClick(t){const e=t.target.closest('[data-dialog="close"]');e&&(t.stopPropagation(),this.requestClose(e))}async handleDialogPointerDown(t){t.target===this.dialog&&(this.lightDismiss?this.requestClose(this.dialog):await(0,u.Ud)(this.dialog,"pulse"))}handleOpenChange(){this.open&&!this.dialog.open?this.show():!this.open&&this.dialog.open&&(this.open=!0,this.requestClose(this.dialog))}async show(){const t=new d.k;this.dispatchEvent(t),t.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.dialog.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const t=this.querySelector("[autofocus]");t&&"function"==typeof t.focus?t.focus():this.dialog.focus()}),await(0,u.Ud)(this.dialog,"show"),this.dispatchEvent(new l.q))}render(){var t;const e=!this.withoutHeader,r=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return(0,i.qy)(A||(A=O` <dialog aria-labelledby="${0}" aria-describedby="${0}" part="dialog" class="${0}" @cancel="${0}" @click="${0}" @pointerdown="${0}"> ${0} <div part="body" class="body"><slot></slot></div> ${0} </dialog> `),null!==(t=this.ariaLabelledby)&&void 0!==t?t:"title",(0,n.J)(this.ariaDescribedby),(0,o.H)({dialog:!0,open:this.open}),this.handleDialogCancel,this.handleDialogClick,this.handleDialogPointerDown,e?(0,i.qy)(E||(E=O` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${0} </slot> </h2> <div part="header-actions" class="header-actions"> <slot name="header-actions"></slot> <wa-button part="close-button" exportparts="base:close-button__base" class="close" appearance="plain" @click="${0}"> <wa-icon name="xmark" label="${0}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `),this.label.length>0?this.label:String.fromCharCode(8203),t=>this.requestClose(t.target),this.localize.term("close")):"",r?(0,i.qy)(T||(T=O` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `)):"")}constructor(){super(...arguments),this.localize=new y.c(this),this.hasSlotController=new m.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!1,this.withFooter=!1,this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,h.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.requestClose(this.dialog))}}};I.css=w.A,k([(0,a.P)(".dialog")],I.prototype,"dialog",2),k([(0,a.MZ)({type:Boolean,reflect:!0})],I.prototype,"open",2),k([(0,a.MZ)({reflect:!0})],I.prototype,"label",2),k([(0,a.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],I.prototype,"withoutHeader",2),k([(0,a.MZ)({attribute:"light-dismiss",type:Boolean})],I.prototype,"lightDismiss",2),k([(0,a.MZ)({attribute:"aria-labelledby"})],I.prototype,"ariaLabelledby",2),k([(0,a.MZ)({attribute:"aria-describedby"})],I.prototype,"ariaDescribedby",2),k([(0,a.MZ)({attribute:"with-footer",type:Boolean})],I.prototype,"withFooter",2),k([(0,v.w)("open",{waitUntilFirstUpdate:!0})],I.prototype,"handleOpenChange",1),I=k([(0,a.EM)("wa-dialog")],I),i.S$||(document.addEventListener("click",t=>{const e=t.target.closest("[data-dialog]");if(e instanceof Element){const[t,r]=(0,p.v)(e.getAttribute("data-dialog")||"");if("open"===t&&null!=r&&r.length){const t=e.getRootNode().getElementById(r);"wa-dialog"===(null==t?void 0:t.localName)?t.open=!0:console.warn(`A dialog with an ID of "${r}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),e()}catch(A){e(A)}})},91470:function(t,e,r){r.d(e,{A:function(){return a}});let i;var a=(0,r(5124).AH)(i||(i=(t=>t)`:host{--width:31rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:200ms;--hide-duration:200ms;display:none}:host([open]){display:block}.dialog{display:flex;flex-direction:column;top:0;right:0;bottom:0;left:0;width:var(--width);max-width:calc(100% - var(--wa-space-2xl));max-height:calc(100% - var(--wa-space-2xl));color:inherit;background-color:var(--wa-color-surface-raised);border-radius:var(--wa-panel-border-radius);border:none;box-shadow:var(--wa-shadow-l);padding:0;margin:auto}.dialog.show{animation:show-dialog var(--show-duration) ease}.dialog.show::backdrop{animation:show-backdrop var(--show-duration,200ms) ease}.dialog.hide{animation:show-dialog var(--hide-duration) ease reverse}.dialog.hide::backdrop{animation:show-backdrop var(--hide-duration,200ms) ease reverse}.dialog.pulse{animation:pulse 250ms ease}.dialog:focus{outline:0}@media screen and (max-width:420px){.dialog{max-height:80vh}}.open{display:flex;opacity:1}.header{flex:0 0 auto;display:flex;flex-wrap:nowrap;padding-inline-start:var(--spacing);padding-block-end:0;padding-inline-end:calc(var(--spacing) - var(--wa-form-control-padding-block));padding-block-start:calc(var(--spacing) - var(--wa-form-control-padding-block))}.title{align-self:center;flex:1 1 auto;font-family:inherit;font-size:var(--wa-font-size-l);font-weight:var(--wa-font-weight-heading);line-height:var(--wa-line-height-condensed);margin:0}.header-actions{align-self:start;display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:end;gap:var(--wa-space-2xs);padding-inline-start:var(--spacing)}.header-actions ::slotted(wa-button),.header-actions wa-button{flex:0 0 auto;display:flex;align-items:center}.body{flex:1 1 auto;display:block;padding:var(--spacing);overflow:auto;-webkit-overflow-scrolling:touch}.body:focus{outline:0}.body:focus-visible{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.footer{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:var(--wa-space-xs);justify-content:end;padding:var(--spacing);padding-block-start:0}.footer ::slotted(wa-button:not(:first-of-type)){margin-inline-start:var(--wa-spacing-xs)}.dialog::backdrop{background-color:var(--wa-color-overlay-modal,rgb(0 0 0 / .25));-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}@keyframes pulse{0%{scale:1}50%{scale:1.02}100%{scale:1}}@keyframes show-dialog{from{opacity:0;scale:0.8}to{opacity:1;scale:1}}@keyframes show-backdrop{from{opacity:0}to{opacity:1}}@media (forced-colors:active){.dialog{border:solid 1px #fff}}`))},30006:function(t,e,r){r.a(t,async function(t,e){try{r(74423),r(27495),r(62953);var i=r(5124),a=r(67576),o=r(6412),n=r(63672),s=r(34514),l=r(37541),c=r(40991),d=r(92070),u=r(28225),h=r(41268),p=r(9395),f=r(62676),m=r(15477),v=r(31896),g=r(17060),y=(r(38625),r(96272)),b=t([g]);g=(b.then?(await b)():b)[0];let $,k,A,E,T,O,I,M=t=>t;var w=Object.defineProperty,C=Object.getOwnPropertyDescriptor,x=(t,e,r,i)=>{for(var a,o=i>1?void 0:i?C(e,r):e,n=t.length-1;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&w(e,r,o),o};let P=class extends f.q{static get validators(){return[...super.validators,(0,h.i)()]}get value(){var t;return this.valueHasChanged?this._value:null!==(t=this._value)&&void 0!==t?t:this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,c.b)(this.localName,this.size)}handleChange(t){this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0})}clear(){""!==this.value&&(this.value="",this.updateComplete.then(()=>{this.dispatchEvent(new l.I),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),this.input.focus()}handleClearClick(t){t.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(t){(0,u.U)(t,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(t){if(super.updated(t),t.has("value")||t.has("defaultValue")||t.has("type")){const t=["number","date","time","datetime-local"];this.input&&t.includes(this.type)&&this.value&&this.input.value!==this.value&&(this._value=this.input.value),this.customStates.set("blank",!this.value),this.updateValidity()}}handleStepChange(){this.input.step=String(this.step),this.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,r="none"){this.input.setSelectionRange(t,e,r)}setRangeText(t,e,r,i="preserve"){const a=null!=e?e:this.input.selectionStart,o=null!=r?r:this.input.selectionEnd;this.input.setRangeText(t,a,o,i),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}formResetCallback(){this.value=null,this.input&&(this.input.value=this.value),super.formResetCallback()}render(){var t;const e=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,r=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,a=!!this.label||!!e,l=!!this.hint||!!r,c=this.withClear&&!this.disabled&&!this.readonly,d=(i.S$||this.hasUpdated)&&c&&("number"==typeof this.value||this.value&&this.value.length>0);return(0,i.qy)($||($=M` <label part="form-control-label label" class="${0}" for="input" aria-hidden="${0}"> <slot name="label">${0}</slot> </label> <div part="base" class="text-field"> <slot name="start" part="start" class="start"></slot> <input part="input" id="input" class="control" type="${0}" title="${0}" name="${0}" ?disabled="${0}" ?readonly="${0}" ?required="${0}" placeholder="${0}" minlength="${0}" maxlength="${0}" min="${0}" max="${0}" step="${0}" .value="${0}" autocapitalize="${0}" autocomplete="${0}" autocorrect="${0}" ?autofocus="${0}" spellcheck="${0}" pattern="${0}" enterkeyhint="${0}" inputmode="${0}" aria-describedby="hint" @change="${0}" @input="${0}" @keydown="${0}"> ${0} ${0} <slot name="end" part="end" class="end"></slot> </div> <slot id="hint" part="hint" name="hint" class="${0}" aria-hidden="${0}">${0}</slot> `),(0,o.H)({label:!0,"has-label":a}),a?"false":"true",this.label,"password"===this.type&&this.passwordVisible?"text":this.type,this.title,(0,n.J)(this.name),this.disabled,this.readonly,this.required,(0,n.J)(this.placeholder),(0,n.J)(this.minlength),(0,n.J)(this.maxlength),(0,n.J)(this.min),(0,n.J)(this.max),(0,n.J)(this.step),(0,s.V)(null!==(t=this.value)&&void 0!==t?t:""),(0,n.J)(this.autocapitalize),(0,n.J)(this.autocomplete),this.autocorrect?"on":"off",this.autofocus,this.spellcheck,(0,n.J)(this.pattern),(0,n.J)(this.enterkeyhint),(0,n.J)(this.inputmode),this.handleChange,this.handleInput,this.handleKeyDown,d?(0,i.qy)(k||(k=M` <slot name="clear-button"> <button part="clear-button" class="clear" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> <slot name="clear-icon"> <wa-icon name="circle-xmark" library="system" variant="regular"></wa-icon> </slot> </button> </slot> `),this.localize.term("clearEntry"),this.handleClearClick):"",this.passwordToggle&&!this.disabled?(0,i.qy)(A||(A=M` <slot name="password-toggle-button"> <button part="password-toggle-button" class="password-toggle" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> ${0} </button> </slot> `),this.localize.term(this.passwordVisible?"hidePassword":"showPassword"),this.handlePasswordToggle,this.passwordVisible?(0,i.qy)(T||(T=M` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `)):(0,i.qy)(E||(E=M` <slot name="show-password-icon"> <wa-icon name="eye" library="system" variant="regular"></wa-icon> </slot> `))):"",(0,o.H)({"has-slotted":l}),l?"false":"true",this.hint)}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new d.X(this,"hint","label"),this.localize=new g.c(this),this.title="",this.type="text",this._value=null,this.defaultValue=this.getAttribute("value")||null,this.size="m",this.appearance="outlined",this.pill=!1,this.label="",this.hint="",this.withClear=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.withoutSpinButtons=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1}};P.css=[v.A,m.A,y.A],P.shadowRootOptions=Object.assign(Object.assign({},f.q.shadowRootOptions),{},{delegatesFocus:!0}),x([(0,a.P)("input")],P.prototype,"input",2),x([(0,a.MZ)()],P.prototype,"title",2),x([(0,a.MZ)({reflect:!0})],P.prototype,"type",2),x([(0,a.wk)()],P.prototype,"value",1),x([(0,a.MZ)({attribute:"value",reflect:!0})],P.prototype,"defaultValue",2),x([(0,a.MZ)({reflect:!0})],P.prototype,"size",2),x([(0,p.w)("size")],P.prototype,"handleSizeChange",1),x([(0,a.MZ)({reflect:!0})],P.prototype,"appearance",2),x([(0,a.MZ)({type:Boolean,reflect:!0})],P.prototype,"pill",2),x([(0,a.MZ)()],P.prototype,"label",2),x([(0,a.MZ)({attribute:"hint"})],P.prototype,"hint",2),x([(0,a.MZ)({attribute:"with-clear",type:Boolean})],P.prototype,"withClear",2),x([(0,a.MZ)()],P.prototype,"placeholder",2),x([(0,a.MZ)({type:Boolean,reflect:!0})],P.prototype,"readonly",2),x([(0,a.MZ)({attribute:"password-toggle",type:Boolean})],P.prototype,"passwordToggle",2),x([(0,a.MZ)({attribute:"password-visible",type:Boolean})],P.prototype,"passwordVisible",2),x([(0,a.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],P.prototype,"withoutSpinButtons",2),x([(0,a.MZ)({type:Boolean,reflect:!0})],P.prototype,"required",2),x([(0,a.MZ)()],P.prototype,"pattern",2),x([(0,a.MZ)({type:Number})],P.prototype,"minlength",2),x([(0,a.MZ)({type:Number})],P.prototype,"maxlength",2),x([(0,a.MZ)()],P.prototype,"min",2),x([(0,a.MZ)()],P.prototype,"max",2),x([(0,a.MZ)()],P.prototype,"step",2),x([(0,a.MZ)()],P.prototype,"autocapitalize",2),x([(0,a.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],P.prototype,"autocorrect",2),x([(0,a.MZ)()],P.prototype,"autocomplete",2),x([(0,a.MZ)({type:Boolean})],P.prototype,"autofocus",2),x([(0,a.MZ)()],P.prototype,"enterkeyhint",2),x([(0,a.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],P.prototype,"spellcheck",2),x([(0,a.MZ)()],P.prototype,"inputmode",2),x([(0,a.MZ)({attribute:"with-label",type:Boolean})],P.prototype,"withLabel",2),x([(0,a.MZ)({attribute:"with-hint",type:Boolean})],P.prototype,"withHint",2),x([(0,p.w)("step",{waitUntilFirstUpdate:!0})],P.prototype,"handleStepChange",1),P=x([(0,a.EM)("wa-input")],P),null===(O=(I=P).disableWarning)||void 0===O||O.call(I,"change-in-update"),e()}catch($){e($)}})},96272:function(t,e,r){r.d(e,{A:function(){return a}});let i;var a=(0,r(5124).AH)(i||(i=(t=>t)`:host{border-width:0}:host(:focus){outline:0}.text-field{display:flex;align-items:stretch;justify-content:start;position:relative;transition:inherit;height:var(--wa-form-control-height);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);cursor:text;color:var(--wa-form-control-value-color);font-size:var(--wa-form-control-value-font-size);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);vertical-align:middle;width:100%;transition:background-color var(--wa-transition-normal),border-color var(--wa-transition-normal),outline-color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);background-color:var(--wa-form-control-background-color);box-shadow:var(--box-shadow);padding:0 var(--wa-form-control-padding-inline);outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.text-field:focus-within{outline-color:var(--wa-color-focus)}.text-field:has(:disabled){cursor:not-allowed;opacity:.5}:host([appearance=outlined]) .text-field{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}:host([pill]) .text-field{border-radius:var(--wa-border-radius-pill)!important}.text-field:has(:-webkit-autofill),.text-field:has(:autofill){background-color:var(--wa-color-brand-fill-quiet)!important}.text-field input,.text-field textarea{height:100%;padding:0;border:none;outline:0;box-shadow:none;margin:0;cursor:inherit;-webkit-appearance:none;font:inherit}:is(.text-field input,.text-field textarea):-webkit-autofill,:is(.text-field input,.text-field textarea):-webkit-autofill:active,:is(.text-field input,.text-field textarea):-webkit-autofill:focus,:is(.text-field input,.text-field textarea):-webkit-autofill:hover{-webkit-background-clip:text;background-color:transparent;-webkit-text-fill-color:inherit}input{flex:1 1 auto;min-width:0;height:100%;transition:inherit;background-color:rgb(118 118 118 / 0);height:calc(var(--wa-form-control-height) - var(--border-width) * 2);padding-block:0;color:inherit}input:autofill,input:autofill:active,input:autofill:focus,input:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}input::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{-webkit-appearance:none}input:focus{outline:0}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}.end,.start{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}:is(.start,.end)::slotted(wa-icon){color:var(--wa-color-neutral-on-quiet)}.start::slotted(*){margin-inline-end:var(--wa-form-control-padding-inline)}.end::slotted(*){margin-inline-start:var(--wa-form-control-padding-inline)}.clear,.password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:inherit;color:var(--wa-color-neutral-on-quiet);border:none;background:0 0;padding:0;transition:var(--wa-transition-normal) color;cursor:pointer;margin-inline-start:var(--wa-form-control-padding-inline)}@media (hover:hover){:is(.clear,.password-toggle):hover{color:color-mix(in oklab,currentColor,var(--wa-color-mix-hover))}}:is(.clear,.password-toggle):active{color:color-mix(in oklab,currentColor,var(--wa-color-mix-active))}:is(.clear,.password-toggle):focus{outline:0}::-ms-reveal{display:none}:host([without-spin-buttons]) input[type=number]{-moz-appearance:textfield}:host([without-spin-buttons]) input[type=number]::-webkit-inner-spin-button,:host([without-spin-buttons]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}`))},52630:function(t,e,r){r.a(t,async function(t,i){try{r.d(e,{A:function(){return A}});r(74423),r(44114),r(18111),r(22489),r(3362),r(27495),r(62953);var a=r(5124),o=r(67576),n=r(6412),s=r(17051),l=r(42462),c=r(28438),d=r(98779),u=r(27259),h=r(25877),p=r(984),f=r(95010),m=r(9395),v=r(717),g=r(40158),y=r(51920),b=t([g]);g=(b.then?(await b)():b)[0];let $,k=t=>t;var w=Object.defineProperty,C=Object.getOwnPropertyDescriptor,x=(t,e,r,i)=>{for(var a,o=i>1?void 0:i?C(e,r):e,n=t.length-1;n>=0;n--)(a=t[n])&&(o=(i?a(e,r,o):a(o))||o);return i&&o&&w(e,r,o),o};let A=class extends v.A{connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.addEventListener("mouseout",this.handleMouseOut),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||(this.id=(0,f.N)("wa-tooltip-")),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,h.Fw)(this),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}addToAriaLabelledBy(t,e){const r=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean);r.includes(e)||(r.push(e),t.setAttribute("aria-labelledby",r.join(" ")))}removeFromAriaLabelledBy(t,e){const r=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean).filter(t=>t!==e);r.length>0?t.setAttribute("aria-labelledby",r.join(" ")):t.removeAttribute("aria-labelledby")}async handleOpenChange(){if(this.open){if(this.disabled)return;const t=new d.k;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),(0,h.AZ)(this),this.body.hidden=!1,this.popup.active=!0,await(0,u.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const t=new c.L;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,h.Fw)(this),await(0,u.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.body.hidden=!0,this.dispatchEvent(new s.Z)}}handleForChange(){const t=this.getRootNode();if(!t)return;const e=this.for?t.getElementById(this.for):null,r=this.anchor;if(e===r)return;const{signal:i}=this.eventController;e&&(this.addToAriaLabelledBy(e,this.id),e.addEventListener("blur",this.handleBlur,{capture:!0,signal:i}),e.addEventListener("focus",this.handleFocus,{capture:!0,signal:i}),e.addEventListener("click",this.handleClick,{signal:i}),e.addEventListener("mouseover",this.handleMouseOver,{signal:i}),e.addEventListener("mouseout",this.handleMouseOut,{signal:i})),r&&(this.removeFromAriaLabelledBy(r,this.id),r.removeEventListener("blur",this.handleBlur,{capture:!0}),r.removeEventListener("focus",this.handleFocus,{capture:!0}),r.removeEventListener("click",this.handleClick),r.removeEventListener("mouseover",this.handleMouseOver),r.removeEventListener("mouseout",this.handleMouseOut)),this.anchor=e}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,(0,p.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,p.l)(this,"wa-after-hide")}render(){return(0,a.qy)($||($=k` <wa-popup part="base" exportparts="
popup:base__popup,
arrow:base__arrow
" class="${0}" placement="${0}" distance="${0}" skidding="${0}" flip shift ?arrow="${0}" hover-bridge .anchor="${0}"> <div part="body" class="body"> <slot></slot> </div> </wa-popup> `),(0,n.H)({tooltip:!0,"tooltip-open":this.open}),this.placement,this.distance,this.skidding,!this.withoutArrow,this.anchor)}constructor(){super(...arguments),this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger="hover focus",this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,h.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){var t;const e=Boolean(null===(t=this.anchor)||void 0===t?void 0:t.matches(":hover")),r=this.matches(":hover");if(e||r)return;clearTimeout(this.hoverTimeout),e||r||(this.hoverTimeout=window.setTimeout(()=>{this.hide()},this.hideDelay))}}}};A.css=y.A,A.dependencies={"wa-popup":g.A},x([(0,o.P)("slot:not([name])")],A.prototype,"defaultSlot",2),x([(0,o.P)(".body")],A.prototype,"body",2),x([(0,o.P)("wa-popup")],A.prototype,"popup",2),x([(0,o.MZ)()],A.prototype,"placement",2),x([(0,o.MZ)({type:Boolean,reflect:!0})],A.prototype,"disabled",2),x([(0,o.MZ)({type:Number})],A.prototype,"distance",2),x([(0,o.MZ)({type:Boolean,reflect:!0})],A.prototype,"open",2),x([(0,o.MZ)({type:Number})],A.prototype,"skidding",2),x([(0,o.MZ)({attribute:"show-delay",type:Number})],A.prototype,"showDelay",2),x([(0,o.MZ)({attribute:"hide-delay",type:Number})],A.prototype,"hideDelay",2),x([(0,o.MZ)()],A.prototype,"trigger",2),x([(0,o.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],A.prototype,"withoutArrow",2),x([(0,o.MZ)()],A.prototype,"for",2),x([(0,o.wk)()],A.prototype,"anchor",2),x([(0,m.w)("open",{waitUntilFirstUpdate:!0})],A.prototype,"handleOpenChange",1),x([(0,m.w)("for")],A.prototype,"handleForChange",1),x([(0,m.w)(["distance","placement","skidding"])],A.prototype,"handleOptionsChange",1),x([(0,m.w)("disabled")],A.prototype,"handleDisabledChange",1),A=x([(0,o.EM)("wa-tooltip")],A),i()}catch($){i($)}})},51920:function(t,e,r){r.d(e,{A:function(){return a}});let i;var a=(0,r(5124).AH)(i||(i=(t=>t)`:host{--max-width:30ch;display:inline-block;position:absolute;color:var(--wa-tooltip-content-color);font-size:var(--wa-tooltip-font-size);line-height:var(--wa-tooltip-line-height);text-align:start;white-space:normal}.tooltip{--arrow-size:var(--wa-tooltip-arrow-size);--arrow-color:var(--wa-tooltip-background-color)}.tooltip::part(popup){z-index:1000}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.body{display:block;width:max-content;max-width:var(--max-width);border-radius:var(--wa-tooltip-border-radius);background-color:var(--wa-tooltip-background-color);border:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);padding:.25em .5em;user-select:none;-webkit-user-select:none}.tooltip{--popup-border-width:var(--wa-tooltip-border-width)}.tooltip::part(arrow){border-bottom:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);border-right:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color)}`))},37541:function(t,e,r){r.d(e,{I:function(){return i}});class i extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},984:function(t,e,r){r.d(e,{l:function(){return i}});r(3362);function i(t,e){return new Promise(r=>{t.addEventListener(e,function i(a){a.target===t&&(t.removeEventListener(e,i),r())})})}},95010:function(t,e,r){r.d(e,{q:function(){return a},N:function(){return o}});r(54743),r(11745),r(16573),r(78100),r(77936),r(21489),r(48140),r(75044),r(21903),r(91134),r(28845),r(373),r(37467),r(44732),r(79577),r(16632),r(34226),r(9486),r(20456);let i=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return e};function a(t,e,r){const i=t=>Object.is(t,-0)?0:t;return i(t<e?e:t>r?r:t)}function o(t=""){return`${t}${i()}`}},31247:function(t,e,r){r.d(e,{v:function(){return i}});r(18111),r(22489),r(61701),r(42762);function i(t){return t.split(" ").map(t=>t.trim()).filter(t=>""!==t)}},4444:function(t,e,r){r.d(e,{JG:function(){return a},Rt:function(){return n},I7:function(){return o}});r(27495),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(25440),r(62953);const i=new Set;function a(t){if(i.add(t),!document.documentElement.classList.contains("wa-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function o(t){i.delete(t),0===i.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function n(t,e,r="vertical",i="smooth"){const a=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),o=a.top+e.scrollTop,n=a.left+e.scrollLeft,s=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,d=e.scrollTop+e.offsetHeight;"horizontal"!==r&&"both"!==r||(n<s?e.scrollTo({left:n,behavior:i}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:i})),"vertical"!==r&&"both"!==r||(o<c?e.scrollTo({top:o,behavior:i}):o+t.clientHeight>d&&e.scrollTo({top:o-e.offsetHeight+t.clientHeight,behavior:i}))}},28225:function(t,e,r){r.d(e,{U:function(){return i}});r(74423),r(62953);function i(t,e){const r=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"!==t.key||r||setTimeout(()=>{t.defaultPrevented||t.isComposing||function(t){let e=null;"form"in t&&(e=t.form);!e&&"getForm"in t&&(e=t.getForm());if(!e)return;const r=[...e.elements];if(1===r.length)return void e.requestSubmit(null);const i=r.find(t=>"submit"===t.type&&!t.matches(":disabled"));if(!i)return;["input","button"].includes(i.localName)?e.requestSubmit(i):i.click()}(e)})}},49546:function(t,e,r){r.d(e,{Y:function(){return i}});r(44114);const i=(t={})=>{let{validationElement:e,validationProperty:r}=t;e||(e=Object.assign(document.createElement("input"),{required:!0})),r||(r="value");const i={observedAttributes:["required"],message:e.validationMessage,checkValidity(t){var e;const a={message:"",isValid:!0,invalidKeys:[]};if(!(null!==(e=t.required)&&void 0!==e?e:t.hasAttribute("required")))return a;return!t[r]&&(a.message="function"==typeof i.message?i.message(t):i.message||"",a.isValid=!1,a.invalidKeys.push("valueMissing")),a}};return i}},15477:function(t,e,r){r.d(e,{A:function(){return a}});let i;var a=(0,r(5124).AH)(i||(i=(t=>t)`:host{display:flex;flex-direction:column}[part~=form-control]{display:contents}:is([part~=form-control-label],[part~=label]).has-label,:is([part~=form-control-label],[part~=label]):has(:not(:empty)){display:inline-flex;color:var(--wa-form-control-label-color);font-weight:var(--wa-form-control-label-font-weight);line-height:var(--wa-form-control-label-line-height);margin-block-end:0.5em}:host([required]) :is([part~=form-control-label],[part~=label])::after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset);color:var(--wa-form-control-required-content-color)}[part~=hint]{display:block;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller)}[part~=hint]:not(.has-slotted,.has-hint){display:none}`))},88696:function(t,e,r){r.a(t,async function(t,i){try{r.d(e,{P:function(){return l}});var a=r(69235),o=(r(3362),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(62953),r(37540)),n=r(42017),s=t([a]);a=(s.then?(await s)():s)[0];class l{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return c(this,t)}constructor(t,{target:e,config:r,callback:i,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=r,this.o=null!=a?a:this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const c=(0,n.u$)(class extends o.Kq{render(t,e){}update(t,[e,r]){this.controller=e,this.part=t,this.observe=r,!1===r?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){var t;null!==(t=this.controller)&&void 0!==t&&t.unobserve(this.part.element),this.observing=!1}reconnected(){var t;!1!==this.observe&&!1===this.observing&&(null!==(t=this.controller)&&void 0!==t&&t.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});i()}catch(l){i(l)}})},75275:function(t,e,r){var i=r(40445),a=r(67576),o=(r(89463),r(62953),r(5124)),n=r(76482);const s=["focusin","focusout","pointerdown"];class l extends o.WF{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){var e,r;if(!t[c]){switch(t.type){default:return;case"focusin":this.visible=null!==(e=null===(r=this.control)||void 0===r?void 0:r.matches(":focus-visible"))&&void 0!==e&&e;break;case"focusout":case"pointerdown":this.visible=!1}t[c]=!0}}onControlChange(t,e){if(!o.S$)for(const r of s)null==t||t.removeEventListener(r,this),null==e||e.addEventListener(r,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new n.i(this,this.onControlChange.bind(this))}}(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const c=Symbol("handledByFocusRing");let d;const u=(0,o.AH)(d||(d=(t=>t)`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}@media(prefers-reduced-motion){:host{animation:none}}`));let h=class extends l{};h.styles=[u],h=(0,i.Cg)([(0,a.EM)("md-focus-ring")],h)},1024:function(t,e,r){r.d(e,{n:function(){return c}});r(89463),r(27495),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(25440),r(62953);var i=r(5124);r(74423);const a=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],o=a.map(s);function n(t){return o.includes(t)}function s(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function c(t){var e;if(i.S$)return t;class r extends t{attributeChangedCallback(t,e,r){if(!n(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=u(t);null===r?delete this.dataset[i]:this.dataset[i]=r,this.requestUpdate(u(t),e)}getAttribute(t){return n(t)?super.getAttribute(d(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),n(t)&&(super.removeAttribute(d(t)),this.requestUpdate())}constructor(){super(...arguments),this[e]=new Set}}return e=l,function(t){for(const e of a){const r=s(e),i=d(r),a=u(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(){var t;return null!==(t=this.dataset[a])&&void 0!==t?t:null},set(t){var r;const i=null!==(r=this.dataset[a])&&void 0!==r?r:null;t!==i&&(null===t?delete this.dataset[a]:this.dataset[a]=t,this.requestUpdate(e,i))}})}}(r),r}function d(t){return`data-${t}`}function u(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}},25423:function(t,e,r){r.d(e,{U:function(){return a},Z:function(){return o}});r(44114),r(62953);var i=r(27525);const a={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class o{get items(){const t=this.getPossibleItems(),e=[];for(const r of t){if(this.isItem(r)){e.push(r);continue}const t=r.item;t&&this.isItem(t)&&e.push(t)}return e}activateNextItem(){const t=this.items,e=(0,i.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,i.wm)(t,e,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const t=this.items,e=(0,i.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,i.u9)(t,e,this.isActivatable,this.wrapNavigation())}constructor(t){this.handleKeydown=t=>{const e=t.key;if(t.defaultPrevented||!this.isNavigableKey(e))return;const r=this.items;if(!r.length)return;const o=(0,i.A6)(r,this.isActivatable);t.preventDefault();const n=this.isRtl(),s=n?a.ArrowRight:a.ArrowLeft,l=n?a.ArrowLeft:a.ArrowRight;let c=null;switch(e){case a.ArrowDown:case l:c=(0,i.wm)(r,o,this.isActivatable,this.wrapNavigation());break;case a.ArrowUp:case s:c=(0,i.u9)(r,o,this.isActivatable,this.wrapNavigation());break;case a.Home:c=(0,i.zT)(r,this.isActivatable);break;case a.End:c=(0,i.RZ)(r,this.isActivatable)}c&&o&&o.item!==c&&(o.item.tabIndex=-1)},this.onDeactivateItems=()=>{const t=this.items;for(const e of t)this.deactivateItem(e)},this.onRequestActivation=t=>{this.onDeactivateItems();const e=t.target;this.activateItem(e),e.focus()},this.onSlotchange=()=>{const t=this.items;let e=!1;for(const i of t){!(!i.disabled&&i.tabIndex>-1)||e?i.tabIndex=-1:(e=!0,i.tabIndex=0)}if(e)return;const r=(0,i.c7)(t,this.isActivatable);r&&(r.tabIndex=0)};const{isItem:e,getPossibleItems:r,isRtl:o,deactivateItem:n,activateItem:s,isNavigableKey:l,isActivatable:c,wrapNavigation:d}=t;this.isItem=e,this.getPossibleItems=r,this.isRtl=o,this.deactivateItem=n,this.activateItem=s,this.isNavigableKey=l,this.isActivatable=c,this.wrapNavigation=null!=d?d:()=>!0}}},27525:function(t,e,r){r.d(e,{A6:function(){return n},Ex:function(){return l},RN:function(){return u},RZ:function(){return a},c7:function(){return s},cG:function(){return h},u9:function(){return d},ub:function(){return o},wm:function(){return c},zT:function(){return i}});r(62953);function i(t,e=p){const r=s(t,e);return r&&(r.tabIndex=0,r.focus()),r}function a(t,e=p){const r=l(t,e);return r&&(r.tabIndex=0,r.focus()),r}function o(t,e=p){const r=n(t,e);return r&&(r.item.tabIndex=-1),r}function n(t,e=p){for(let r=0;r<t.length;r++){const i=t[r];if(0===i.tabIndex&&e(i))return{item:i,index:r}}return null}function s(t,e=p){for(const r of t)if(e(r))return r;return null}function l(t,e=p){for(let r=t.length-1;r>=0;r--){const i=t[r];if(e(i))return i}return null}function c(t,e,r=p,a=!0){if(e){const i=function(t,e,r=p,i=!0){for(let a=1;a<t.length;a++){const o=(a+e)%t.length;if(o<e&&!i)return null;const n=t[o];if(r(n))return n}return t[e]?t[e]:null}(t,e.index,r,a);return i&&(i.tabIndex=0,i.focus()),i}return i(t,r)}function d(t,e,r=p,i=!0){if(e){const a=function(t,e,r=p,i=!0){for(let a=1;a<t.length;a++){const o=(e-a+t.length)%t.length;if(o>e&&!i)return null;const n=t[o];if(r(n))return n}return t[e]?t[e]:null}(t,e.index,r,i);return a&&(a.tabIndex=0,a.focus()),a}return a(t,r)}function u(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function h(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(t){return!t.disabled}},11245:function(t,e,r){r.d(e,{R:function(){return a}});let i;const a=(0,r(5124).AH)(i||(i=(t=>t)`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`))},49838:function(t,e,r){r.d(e,{B:function(){return d}});r(93775),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(62953);var i=r(40445),a=r(5124),o=r(67576),n=r(25423);let s,l=t=>t;const c=new Set(Object.values(n.U));class d extends a.WF{get items(){return this.listController.items}render(){return(0,a.qy)(s||(s=l` <slot @deactivate-items="${0}" @request-activation="${0}" @slotchange="${0}"> </slot> `),this.listController.onDeactivateItems,this.listController.onRequestActivation,this.listController.onSlotchange)}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}constructor(){super(),this.listController=new n.Z({isItem:t=>t.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:t=>{t.tabIndex=-1},activateItem:t=>{t.tabIndex=0},isNavigableKey:t=>c.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),a.S$||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}}(0,i.Cg)([(0,o.KN)({flatten:!0})],d.prototype,"slotItems",void 0)},82553:function(t,e,r){r.d(e,{R:function(){return a}});let i;const a=(0,r(5124).AH)(i||(i=(t=>t)`: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:function(t,e,r){r.d(e,{n:function(){return T}});r(62953);var i=r(40445),a=(r(75275),r(67576)),o=(r(27495),r(5124));let n,s=t=>t;class l extends o.WF{render(){return(0,o.qy)(n||(n=s` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${0}"></slot> <slot class="default-slot" @slotchange="${0}"></slot> <slot name="headline" @slotchange="${0}"></slot> <slot name="supporting-text" @slotchange="${0}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `),this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange)}handleTextSlotChange(){let t=!1,e=0;for(const r of this.textSlots)if(c(r)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function c(t){for(const r of t.assignedNodes({flatten:!0})){var e;const t=r.nodeType===Node.ELEMENT_NODE,i=r.nodeType===Node.TEXT_NODE&&(null===(e=r.textContent)||void 0===e?void 0:e.match(/\S/));if(t||i)return!0}return!1}(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],l.prototype,"multiline",void 0),(0,i.Cg)([(0,a.YG)(".text slot")],l.prototype,"textSlots",void 0);let d;const u=(0,o.AH)(d||(d=(t=>t)`: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 h=class extends l{};h.styles=[u],h=(0,i.Cg)([(0,a.EM)("md-item")],h);r(71970);var p=r(6412),f=r(7872),m=r(1024),v=r(27525);let g,y,b,w,C,x,$,k,A=t=>t;const E=(0,m.n)(o.WF);class T extends E{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem((0,o.qy)(g||(g=A` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(t){const e="link"===this.type;let r;switch(this.type){case"link":r=(0,f.eu)(y||(y=A`a`));break;case"button":r=(0,f.eu)(b||(b=A`button`));break;default:r=(0,f.eu)(w||(w=A`li`))}const i="text"!==this.type,a=e&&this.target?this.target:o.s6;return(0,f.qy)(C||(C=A`
<${0}
id="item"
tabindex="${0}"
?disabled=${0}
role="listitem"
aria-selected=${0}
aria-checked=${0}
aria-expanded=${0}
aria-haspopup=${0}
class="list-item ${0}"
href=${0}
target=${0}
@focus=${0}
>${0}</${0}>
`),r,this.isDisabled||!i?-1:0,this.isDisabled,this.ariaSelected||o.s6,this.ariaChecked||o.s6,this.ariaExpanded||o.s6,this.ariaHasPopup||o.s6,(0,p.H)(this.getRenderClasses()),this.href||o.s6,a,this.onFocus,t,r)}renderRipple(){return"text"===this.type?o.s6:(0,o.qy)(x||(x=A` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?o.s6:(0,o.qy)($||($=A` <md-focus-ring @visibility-changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,o.qy)(k||(k=A` <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,v.cG)())}focus(){var t;null===(t=this.listItemRoot)||void 0===t||t.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=""}}T.shadowRootOptions=Object.assign(Object.assign({},o.WF.shadowRootOptions),{},{delegatesFocus:!0}),(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],T.prototype,"disabled",void 0),(0,i.Cg)([(0,a.MZ)({reflect:!0})],T.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],T.prototype,"isListItem",void 0),(0,i.Cg)([(0,a.MZ)()],T.prototype,"href",void 0),(0,i.Cg)([(0,a.MZ)()],T.prototype,"target",void 0),(0,i.Cg)([(0,a.P)(".list-item")],T.prototype,"listItemRoot",void 0)},71970:function(t,e,r){var i=r(40445),a=r(67576),o=r(91382),n=r(96245);let s=class extends o.n{};s.styles=[n.R],s=(0,i.Cg)([(0,a.EM)("md-ripple")],s)},29865:function(t,e,r){r.d(e,{sm:function(){return E}});r(89463),r(97324),r(16280),r(74423),r(44114),r(54743),r(11745),r(16573),r(78100),r(77936),r(55081),r(18111),r(76382),r(81148),r(22489),r(7588),r(61701),r(45367),r(92731),r(78347),r(3362),r(27495),r(25440),r(42762),r(34594),r(29833),r(46594),r(72107),r(95477),r(21489),r(3690),r(61740),r(48140),r(75044),r(21903),r(91134),r(28845),r(373),r(37467),r(44732),r(79577),r(16632),r(34226),r(9486),r(20456),r(88454),r(29452),r(62953),r(55815),r(64979),r(79739),r(3296),r(27208),r(48408),r(14603),r(47566),r(98721);var i=[["All","*","*"," ",0,"All"],["AllReadable","*","r"," ",0,"All Readable"],["AllCreatable","*","w"," ",0,"All Creatable"],["AllLinear","*","l"," ",0,"All Linear"],["AllMatrix","*","m"," ",0,"All Matrix"],["AllGS1","*","G"," ",0,"All GS1"],["AllRetail","*","R"," ",0,"All Retail"],["AllIndustrial","*","I"," ",0,"All Industrial"],["Codabar","F"," ","lrw ",18,"Codabar"],["Code39","A"," ","lrw I",8,"Code 39"],["Code39Std","A","s","lrw I",8,"Code 39 Standard"],["Code39Ext","A","e","lr I",9,"Code 39 Extended"],["Code32","A","2","lr I",129,"Code 32"],["PZN","A","p","lr I",52,"Pharmazentralnummer"],["Code93","G"," ","lrw I",25,"Code 93"],["Code128","C"," ","lrwGI",20,"Code 128"],["ITF","I"," ","lrw I",3,"ITF"],["ITF14","I","4","lr I",89,"ITF-14"],["DataBar","e"," ","lr GR",29,"DataBar"],["DataBarOmni","e","o","lr GR",29,"DataBar Omni"],["DataBarStk","e","s","lr GR",79,"DataBar Stacked"],["DataBarStkOmni","e","O","lr GR",80,"DataBar Stacked Omni"],["DataBarLtd","e","l","lr GR",30,"DataBar Limited"],["DataBarExp","e","e","lr GR",31,"DataBar Expanded"],["DataBarExpStk","e","E","lr GR",81,"DataBar Expanded Stacked"],["EANUPC","E"," ","lr R",15,"EAN/UPC"],["EAN13","E","1","lrw R",15,"EAN-13"],["EAN8","E","8","lrw R",10,"EAN-8"],["EAN5","E","5","l R",12,"EAN-5"],["EAN2","E","2","l R",11,"EAN-2"],["ISBN","E","i","lr R",69,"ISBN"],["UPCA","E","a","lrw R",34,"UPC-A"],["UPCE","E","e","lrw R",37,"UPC-E"],["OtherBarcode","X"," "," r ",0,"Other barcode"],["DXFilmEdge","X","x","lr ",147,"DX Film Edge"],["PDF417","L"," ","mrw ",55,"PDF417"],["CompactPDF417","L","c","mr ",56,"Compact PDF417"],["MicroPDF417","L","m","m ",84,"MicroPDF417"],["Aztec","z"," ","mr G ",92,"Aztec"],["AztecCode","z","c","mrwG ",92,"Aztec Code"],["AztecRune","z","r","mr ",128,"Aztec Rune"],["QRCode","Q"," ","mrwG ",58,"QR Code"],["QRCodeModel1","Q","1","mr ",0,"QR Code Model 1"],["QRCodeModel2","Q","2","mr ",58,"QR Code Model 2"],["MicroQRCode","Q","m","mr ",97,"Micro QR Code"],["RMQRCode","Q","r","mr G ",145,"rMQR Code"],["DataMatrix","d"," ","mrwG ",71,"Data Matrix"],["MaxiCode","U"," ","mr ",57,"MaxiCode"]],a={DataBarExpanded:"DataBarExp",DataBarLimited:"DataBarLtd","Linear-Codes":"AllLinear","Matrix-Codes":"AllMatrix",Any:"All",rMQRCode:"RMQRCode"};function o(t){var e;return null==(e=a[t])?t:e}function n(t){return t.map(o).join(",")}i.map(t=>t[5]),i.filter(t=>"*"===t[1]).map(t=>t[0]),i.filter(t=>"*"!==t[1]).map(t=>t[0]),i.filter(t=>" "===t[2]).map(t=>t[0]),i.filter(t=>"l"===t[3][0]).map(t=>t[0]),i.filter(t=>"m"===t[3][0]).map(t=>t[0]),i.filter(t=>"r"===t[3][1]).map(t=>t[0]),i.filter(t=>"w"===t[3][2]||0!==t[4]).map(t=>t[0]),i.filter(t=>"G"===t[3][3]).map(t=>t[0]),i.filter(t=>"R"===t[3][4]).map(t=>t[0]),i.filter(t=>"I"===t[3][4]).map(t=>t[0]);var s=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function l(t){return s.indexOf(t)}var c="Unknown.ASCII.ISO8859_1.ISO8859_2.ISO8859_3.ISO8859_4.ISO8859_5.ISO8859_6.ISO8859_7.ISO8859_8.ISO8859_9.ISO8859_10.ISO8859_11.ISO8859_13.ISO8859_14.ISO8859_15.ISO8859_16.Cp437.Cp1250.Cp1251.Cp1252.Cp1256.Shift_JIS.Big5.GB2312.GB18030.EUC_JP.EUC_KR.UTF16BE.UTF8.UTF16LE.UTF32BE.UTF32LE.BINARY".split(".");function d(t){return"UnicodeBig"===t?c.indexOf("UTF16BE"):c.indexOf(t)}var u=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function h(t){return u[t]}var p=["Ignore","Read","Require"];function f(t){return p.indexOf(t)}var m=["Plain","ECI","HRI","Escaped","Hex","HexECI"];function v(t){return m.indexOf(t)}var g={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,tryDenoise:!1,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,validateOptionalChecksum:!1,returnErrors:!1,eanAddOnSymbol:"Ignore",textMode:"HRI",characterSet:"Unknown",tryCode39ExtendedMode:!0};function y(t){var e;return Object.assign(Object.assign({},t),{},{formats:n(t.formats),binarizer:l(t.binarizer),eanAddOnSymbol:f(t.eanAddOnSymbol),textMode:v(t.textMode),characterSet:d(t.characterSet),tryCode39ExtendedMode:null==(e=t.tryCode39ExtendedMode)||e})}function b(t){return Object.assign(Object.assign({},t),{},{format:t.format,symbology:t.symbology,contentType:h(t.contentType)})}var w={locateFile:(t,e)=>{let r=t.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.3/dist/${r[1]}/${t}`:e+t}},C=new WeakMap;function x(t,e){return Object.is(t,e)||Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>Object.hasOwn(e,r)&&t[r]===e[r])}function $(t,{overrides:e,equalityFn:r=x,fireImmediately:i=!1}={}){var a,o;let n,[s,l]=null==(a=C.get(t))?[w]:a,c=null==e?s:e;if(i){if(l&&(n=r(s,c)))return l;let e=t(Object.assign({},c));return C.set(t,[c,e]),e}(null==(o=n)?r(s,c):o)||C.set(t,[c])}async function k(t,e,r=g){let i,a,o=Object.assign(Object.assign({},g),r),n=await $(t,{fireImmediately:!0});if("width"in e&&"height"in e&&"data"in e){let{data:t,width:r,height:s}=e,l=function(t){let e=t.byteLength>>2,r=new Uint8Array(e);for(let i=0;i<e;i++){let e=i<<2;r[i]=306*t[e]+601*t[e+1]+117*t[e+2]+512>>10}return r}(t),c=l.byteLength;if(a=n._malloc(c),!a)throw Error(`Failed to allocate ${c} bytes in WASM memory`);try{n.HEAPU8.set(l,a),i=n.readBarcodesFromPixmap(a,r,s,y(o))}finally{n._free(a)}}else{let t,r;if("buffer"in e)[t,r]=[e.byteLength,e];else if("byteLength"in e)[t,r]=[e.byteLength,new Uint8Array(e)];else{if(!("size"in e))throw TypeError("Invalid input type");[t,r]=[e.size,new Uint8Array(await e.arrayBuffer())]}if(a=n._malloc(t),!a)throw Error(`Failed to allocate ${t} bytes in WASM memory`);try{n.HEAPU8.set(r,a),i=n.readBarcodesFromImage(a,t,y(o))}finally{n._free(a)}}let s=[];for(let l=0;l<i.size();++l)s.push(b(i.get(l)));return s}async function A(t={}){var e,r,i,a=t,o=!!globalThis.window,n=typeof Bun<"u",s=!!globalThis.WorkerGlobalScope;null!=(r=globalThis.process)&&null!=(r=r.versions)&&r.node&&(null==(i=globalThis.process)||i.type);var l,c,d="./this.program",u="";if(o||s||n){try{u=new URL(".",void 0).href}catch(Be){}s&&(c=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),l=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}var h,p,f,m,v=console.log.bind(console),g=console.error.bind(console),y=!1,b=!1;function w(){var t=Me.buffer;T=new Int8Array(t),A=new Int16Array(t),a.HEAPU8=S=new Uint8Array(t),M=new Uint16Array(t),E=new Int32Array(t),P=new Uint32Array(t),O=new Float32Array(t),I=new Float64Array(t)}function C(t){var e,r;null==(e=a.onAbort)||e.call(a,t),g(t="Aborted("+t+")"),y=!0,t+=". Build with -sASSERTIONS for more info.";var i=new WebAssembly.RuntimeError(t);throw null==(r=f)||r(i),i}function x(){return function(t){return a.locateFile?a.locateFile(t,u):u+t}("zxing_reader.wasm")}async function $(t){if(!h)try{var e=await l(t);return new Uint8Array(e)}catch(r){}return function(t){if(t==m&&h)return new Uint8Array(h);if(c)return c(t);throw"both async and sync fetching of the wasm failed"}(t)}async function k(t,e,r){if(!t&&WebAssembly.instantiateStreaming)try{var i=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(i,r)}catch(t){g(`wasm streaming compile failed: ${t}`),g("falling back to ArrayBuffer instantiation")}return async function(t,e){try{var r=await $(t);return await WebAssembly.instantiate(r,e)}catch(t){g(`failed to asynchronously prepare wasm: ${t}`),C(t)}}(e,r)}var A,E,T,O,I,M,P,S,R=t=>{for(;t.length>0;)t.shift()(a)},_=[],D=t=>_.push(t),B=[],F=t=>B.push(t),L=t=>xe(t),z=()=>$e(),j=[],U=0,q=0;class N{set_type(t){P[this.ptr+4>>2]=t}get_type(){return P[this.ptr+4>>2]}set_destructor(t){P[this.ptr+8>>2]=t}get_destructor(){return P[this.ptr+8>>2]}set_caught(t){t=+!!t,T[this.ptr+12]=t}get_caught(){return 0!=T[this.ptr+12]}set_rethrown(t){t=+!!t,T[this.ptr+13]=t}get_rethrown(){return 0!=T[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){P[this.ptr+16>>2]=t}get_adjusted_ptr(){return P[this.ptr+16>>2]}constructor(t){this.excPtr=t,this.ptr=t-24}}var Z=t=>Ce(t),H=t=>{var e=q;if(!e)return Z(0),0;var r=new N(e);r.set_adjusted_ptr(e);var i=r.get_type();if(!i)return Z(0),e;for(var a of t){if(0===a||a===i)break;var o=r.ptr+16;if(Ee(a,i,o))return Z(a),e}return Z(i),e},V={},W=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function G(t){return this.fromWireType(P[t>>2])}var Q={},K={},J={},X=class extends Error{constructor(t){super(t),this.name="InternalError"}},Y=t=>{throw new X(t)},tt=(t,e,r)=>{function i(e){var i=r(e);i.length!==t.length&&Y("Mismatched type converter count");for(var a=0;a<t.length;++a)at(t[a],i[a])}t.forEach(t=>J[t]=e);var a=Array(e.length),o=[],n=0;{let t=e;for(let e=0;e<t.length;++e){let r=t[e];K.hasOwnProperty(r)?a[e]=K[r]:(o.push(r),Q.hasOwnProperty(r)||(Q[r]=[]),Q[r].push(()=>{a[e]=K[r],++n===o.length&&i(a)}))}}0===o.length&&i(a)},et=t=>{for(var e="";;){var r=S[t++];if(!r)return e;e+=String.fromCharCode(r)}},rt=class extends Error{constructor(t){super(t),this.name="BindingError"}},it=t=>{throw new rt(t)};function at(t,e){return function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var i=e.name;if(t||it(`type "${i}" must have a positive integer typeid pointer`),K.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;it(`Cannot register type '${i}' twice`)}if(K[t]=e,delete J[t],Q.hasOwnProperty(t)){var a=Q[t];delete Q[t],a.forEach(t=>t())}}(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}var ot=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),nt=t=>{it(function(t){return t.$$.ptrType.registeredClass.name}(t)+" instance already deleted")},st=!1,lt=t=>{},ct=t=>{--t.count.value,0===t.count.value&&(t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)})(t)},dt=t=>globalThis.FinalizationRegistry?(st=new FinalizationRegistry(t=>{ct(t.$$)}),dt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};st.register(t,r,t)}return t},lt=t=>st.unregister(t),dt(t)):(dt=t=>t,t),ut=[];function ht(){}var pt=(t,e)=>Object.defineProperty(e,"name",{value:t}),ft={},mt=(t,e,r)=>{if(void 0===t[e].overloadTable){var i=t[e];t[e]=function(){var i=[...arguments];return t[e].overloadTable.hasOwnProperty(i.length)||it(`Function '${r}' called with an invalid number of arguments (${i.length}) - expects one of (${t[e].overloadTable})!`),t[e].overloadTable[i.length].apply(this,i)},t[e].overloadTable=[],t[e].overloadTable[i.argCount]=i}},vt=(t,e,r)=>{a.hasOwnProperty(t)?((void 0===r||void 0!==a[t].overloadTable&&void 0!==a[t].overloadTable[r])&&it(`Cannot register public name '${t}' twice`),mt(a,t,t),a[t].overloadTable.hasOwnProperty(r)&&it(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[t].overloadTable[r]=e):(a[t]=e,a[t].argCount=r)};function gt(t,e,r,i,a,o,n,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=i,this.baseClass=a,this.getActualType=o,this.upcast=n,this.downcast=s,this.pureVirtualFunctions=[]}var yt=(t,e,r)=>{for(;e!==r;)e.upcast||it(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.upcast(t),e=e.baseClass;return t},bt=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t};function wt(t,e){if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),0;e.$$||it(`Cannot pass "${bt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=e.$$.ptrType.registeredClass;return yt(e.$$.ptr,r,this.registeredClass)}function Ct(t,e){var r;if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;(!e||!e.$$)&&it(`Cannot pass "${bt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&it(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var i=e.$$.ptrType.registeredClass;if(r=yt(e.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&it("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:it(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var a=e.clone();r=this.rawShare(r,Zt.toHandle(()=>a.delete())),null!==t&&t.push(this.rawDestructor,r)}break;default:it("Unsupported sharing policy")}return r}function xt(t,e){if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),0;e.$$||it(`Cannot pass "${bt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&it(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass;return yt(e.$$.ptr,r,this.registeredClass)}var $t=(t,e,r)=>{if(e===r)return t;if(void 0===r.baseClass)return null;var i=$t(t,e,r.baseClass);return null===i?null:r.downcast(i)},kt={},At=(t,e)=>(e=((t,e)=>{for(void 0===e&&it("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e})(t,e),kt[e]),Et=(t,e)=>((!e.ptrType||!e.ptr)&&Y("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&Y("Both smartPtrType and smartPtr must be specified"),e.count={value:1},dt(Object.create(t,{$$:{value:e,writable:!0}})));function Tt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=At(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var i=r.clone();return this.destructor(t),i}function a(){return this.isSmartPointer?Et(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Et(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=ft[this.registeredClass.getActualType(e)];if(!o)return a.call(this);var n=this.isConst?o.constPointerType:o.pointerType,s=$t(e,this.registeredClass,n.registeredClass);return null===s?a.call(this):this.isSmartPointer?Et(n.registeredClass.instancePrototype,{ptrType:n,ptr:s,smartPtrType:this,smartPtr:t}):Et(n.registeredClass.instancePrototype,{ptrType:n,ptr:s})}function Ot(t,e,r,i,a,o,n,s,l,c,d){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=i,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=n,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=c,this.rawDestructor=d,a||void 0!==e.baseClass?this.toWireType=Ct:i?(this.toWireType=wt,this.destructorFunction=null):(this.toWireType=xt,this.destructorFunction=null)}var It=(t,e,r)=>{a.hasOwnProperty(t)||Y("Replacing nonexistent public symbol"),void 0!==a[t].overloadTable&&void 0!==r?a[t].overloadTable[r]=e:(a[t]=e,a[t].argCount=r)},Mt={},Pt=[],St=t=>{var e=Pt[t];return e||(Pt[t]=e=Pe.get(t)),e},Rt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.includes("j"))return((t,e,r)=>(t=t.replace(/p/g,"i"),(0,Mt[t])(e,...r)))(t,e,r);return St(e)(...r)},_t=function(t,e){var r=(t=et(t)).includes("j")?function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){return Rt(t,e,[...arguments],r)}}(t,e):St(e);return"function"!=typeof r&&it(`unknown function pointer with signature ${t}: ${e}`),r};class Dt extends Error{}var Bt=t=>{var e=ve(t),r=et(e);return ge(e),r},Ft=(t,e)=>{var r=[],i={};throw e.forEach(function t(e){if(!i[e]&&!K[e]){if(J[e])return void J[e].forEach(t);r.push(e),i[e]=!0}}),new Dt(`${t}: `+r.map(Bt).join([", "]))},Lt=(t,e)=>{for(var r=[],i=0;i<t;i++)r.push(P[e+4*i>>2]);return r};function zt(t,e,r,i,a,o){var n=e.length;n<2&&it("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==e[1]&&null!==r,l=function(t){for(var e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].destructorFunction)return!0;return!1}(e),c=!e[0].isVoid,d=n-2,u=Array(d),h=[],p=[];return pt(t,function(){var t;p.length=0,h.length=s?2:1,h[0]=a,s&&(t=e[1].toWireType(p,this),h[1]=t);for(var r=0;r<d;++r)u[r]=e[r+2].toWireType(p,r<0||arguments.length<=r?void 0:arguments[r]),h.push(u[r]);return function(r){if(l)W(p);else for(var i=s?1:2;i<e.length;i++){var a=1===i?t:u[i-2];null!==e[i].destructorFunction&&e[i].destructorFunction(a)}if(c)return e[0].fromWireType(r)}(i(...h))})}var jt=t=>{let e=(t=t.trim()).indexOf("(");return-1===e?t:t.slice(0,e)},Ut=[],qt=[0,1,,1,null,1,!0,1,!1,1],Nt=t=>{t>9&&0===--qt[t+1]&&(qt[t]=void 0,Ut.push(t))},Zt={toValue:t=>(t||it(`Cannot use deleted val. handle = ${t}`),qt[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let e=Ut.pop()||qt.length;return qt[e]=t,qt[e+1]=1,e}}}},Ht={name:"emscripten::val",fromWireType:t=>{var e=Zt.toValue(t);return Nt(t),e},toWireType:(t,e)=>Zt.toHandle(e),readValueFromPointer:G,destructorFunction:null},Vt=(t,e)=>{switch(e){case 4:return function(t){return this.fromWireType(O[t>>2])};case 8:return function(t){return this.fromWireType(I[t>>3])};default:throw TypeError(`invalid float width (${e}): ${t}`)}},Wt=(t,e,r)=>{switch(e){case 1:return r?t=>T[t]:t=>S[t];case 2:return r?t=>A[t>>1]:t=>M[t>>1];case 4:return r?t=>E[t>>2]:t=>P[t>>2];default:throw TypeError(`invalid integer width (${e}): ${t}`)}},Gt=(t,e,r)=>{let i=(t,e)=>{let r=0;return{next(){if(r>=t)return{done:!0};let i=r;return r++,{value:e(i),done:!1}},[Symbol.iterator](){return this}}};t[Symbol.iterator]||(t[Symbol.iterator]=function(){return i(this[e](),t=>this[r](t))})},Qt=Object.assign({optional:!0},Ht),Kt=(t,e,r)=>((t,e,r,i)=>{if(!(i>0))return 0;for(var a=r,o=r+i-1,n=0;n<t.length;++n){var s=t.codePointAt(n);if(s<=127){if(r>=o)break;e[r++]=s}else if(s<=2047){if(r+1>=o)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=o)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s,n++}}return e[r]=0,r-a})(t,S,e,r),Jt=t=>{for(var e=0,r=0;r<t.length;++r){var i=t.charCodeAt(r);i<=127?e++:i<=2047?e+=2:i>=55296&&i<=57343?(e+=4,++r):e+=3}return e},Xt=globalThis.TextDecoder&&new TextDecoder,Yt=(t,e,r,i)=>{var a=e+r;if(i)return a;for(;t[e]&&!(e>=a);)++e;return e},te=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r=Yt(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);if(r-e>16&&t.buffer&&Xt)return Xt.decode(t.subarray(e,r));for(var i="";e<r;){var a=t[e++];if(128&a){var o=63&t[e++];if(192!=(224&a)){var n=63&t[e++];if((a=224==(240&a)?(15&a)<<12|o<<6|n:(7&a)<<18|o<<12|n<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var s=a-65536;i+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else i+=String.fromCharCode((31&a)<<6|o)}else i+=String.fromCharCode(a)}return i},ee=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,re=(t,e,r)=>{var i=t>>1,a=Yt(M,i,e/2,r);if(a-i>16&&ee)return ee.decode(M.subarray(i,a));for(var o="",n=i;n<a;++n){var s=M[n];o+=String.fromCharCode(s)}return o},ie=(t,e,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var i=e,a=(r-=2)<2*t.length?r/2:t.length,o=0;o<a;++o){var n=t.charCodeAt(o);A[e>>1]=n,e+=2}return A[e>>1]=0,e-i},ae=t=>2*t.length,oe=(t,e,r)=>{for(var i="",a=t>>2,o=0;!(o>=e/4);o++){var n=P[a+o];if(!n&&!r)break;i+=String.fromCodePoint(n)}return i},ne=(t,e,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var i=e,a=i+r-4,o=0;o<t.length;++o){var n=t.codePointAt(o);if(n>65535&&o++,E[e>>2]=n,(e+=4)+4>a)break}return E[e>>2]=0,e-i},se=t=>{for(var e=0,r=0;r<t.length;++r)t.codePointAt(r)>65535&&r++,e+=4;return e},le=[],ce=(t,e)=>{var r=K[t];return void 0===r&&it(`${e} has unknown type ${Bt(t)}`),r},de={},ue=t=>{var e=de[t];return void 0===e?et(t):e},he=(t,e)=>Math.ceil(t/e)*e,pe=t=>{var e=(t-Me.buffer.byteLength+65535)/65536|0;try{return Me.grow(e),w(),1}catch(r){}},fe={},me=()=>{if(!me.strings){var t,e,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(null==(t=null==(e=globalThis.navigator)?void 0:e.language)?"C":t).replace("-","_")+".UTF-8",_:d||"./this.program"};for(var i in fe)void 0===fe[i]?delete r[i]:r[i]=fe[i];var a=[];for(var i in r)a.push(`${i}=${r[i]}`);me.strings=a}return me.strings};var ve,ge,ye,be,we,Ce,xe,$e,ke,Ae,Ee,Te,Oe,Ie,Me,Pe,Se=[null,[],[]],Re=(t,e)=>{var r=Se[t];0===e||10===e?((1===t?v:g)(te(r)),r.length=0):r.push(e)};if((()=>{let t=ht.prototype;Object.assign(t,{isAliasOf(t){if(!(this instanceof ht&&t instanceof ht))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var i=t.$$.ptrType.registeredClass,a=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;i.baseClass;)a=i.upcast(a),i=i.baseClass;return e===i&&r===a},clone(){if(this.$$.ptr||nt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=dt(Object.create(Object.getPrototypeOf(this),{$$:{value:ot(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||nt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&it("Object already scheduled for deletion"),lt(this),ct(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||nt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&it("Object already scheduled for deletion"),ut.push(this),ut.length,this.$$.deleteScheduled=!0,this}});let e=Symbol.dispose;e&&(t[e]=t.delete)})(),Object.assign(Ot.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var e;null==(e=this.rawDestructor)||e.call(this,t)},readValueFromPointer:G,fromWireType:Tt}),a.noExitRuntime&&a.noExitRuntime,a.print&&(v=a.print),a.printErr&&(g=a.printErr),a.wasmBinary&&(h=a.wasmBinary),a.arguments&&a.arguments,a.thisProgram&&(d=a.thisProgram),a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.shift()();var _e={s:t=>{var e=new N(t);return e.get_caught()||(e.set_caught(!0),U--),e.set_rethrown(!1),j.push(e),be(t)},x:()=>{we(0,0);var t=j.pop();ke(t.excPtr),q=0},a:()=>H([]),i:t=>H([t]),m:(t,e)=>H([t,e]),R:()=>{var t=j.pop();t||C("no exception to throw");var e=t.excPtr;throw t.get_rethrown()||(j.push(t),t.set_rethrown(!0),t.set_caught(!1),U++),Ae(e),q=e},p:(t,e,r)=>{throw new N(t).init(e,r),Ae(t),U++,q=t},ga:()=>U,d:t=>{throw q||(q=t),q},ca:()=>C(""),xa:t=>{var e=V[t];delete V[t];var r=e.rawConstructor,i=e.rawDestructor,a=e.fields,o=a.map(t=>t.getterReturnType).concat(a.map(t=>t.setterArgumentType));tt([t],o,t=>{var o={};{let e=a;for(let r=0;r<e.length;++r){let i=e[r],n=t[r],s=i.getter,l=i.getterContext,c=t[r+a.length],d=i.setter,u=i.setterContext;o[i.fieldName]={read:t=>n.fromWireType(s(l,t)),write:(t,e)=>{var r=[];d(u,t,c.toWireType(r,e)),W(r)},optional:n.optional}}}return[{name:e.name,fromWireType:t=>{var e={};for(var r in o)e[r]=o[r].read(t);return i(t),e},toWireType:(t,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw TypeError(`Missing field: "${a}"`);var n=r();for(a in o)o[a].write(n,e[a]);return null!==t&&t.push(i,n),n},readValueFromPointer:G,destructorFunction:i}]})},ba:(t,e,r,i,a)=>{},ra:(t,e,r,i)=>{at(t,{name:e=et(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:i},readValueFromPointer:function(t){return this.fromWireType(S[t])},destructorFunction:null})},va:(t,e,r,i,a,o,n,s,l,c,d,u,h)=>{d=et(d),o=_t(a,o),s&&(s=_t(n,s)),c&&(c=_t(l,c)),h=_t(u,h);var p=(t=>{var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${t}`:t})(d);vt(p,function(){Ft(`Cannot construct ${d} due to unbound types`,[i])}),tt([t,e,r],i?[i]:[],e=>{var r,a;e=e[0],i?a=(r=e.registeredClass).instancePrototype:a=ht.prototype;var n=pt(d,function(){if(Object.getPrototypeOf(this)!==l)throw new rt(`Use 'new' to construct ${d}`);if(void 0===f.constructor_body)throw new rt(`${d} has no accessible constructor`);var t=[...arguments],e=f.constructor_body[t.length];if(void 0===e)throw new rt(`Tried to invoke ctor of ${d} with invalid number of parameters (${t.length}) - expected (${Object.keys(f.constructor_body).toString()}) parameters instead!`);return e.apply(this,t)}),l=Object.create(a,{constructor:{value:n}});n.prototype=l;var u,f=new gt(d,n,l,h,r,o,s,c);f.baseClass&&(null!=(u=f.baseClass).__derivedClasses||(u.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new Ot(d,f,!0,!1,!1),v=new Ot(d+"*",f,!1,!1,!1),g=new Ot(d+" const*",f,!1,!0,!1);return ft[t]={pointerType:v,constPointerType:g},It(p,n),[m,v,g]})},ua:(t,e,r,i,a,o)=>{var n=Lt(e,r);a=_t(i,a),tt([],[t],t=>{var r=`constructor ${(t=t[0]).name}`;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new rt(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.registeredClass.constructor_body[e-1]=()=>{Ft(`Cannot construct ${t.name} due to unbound types`,n)},tt([],n,i=>(i.splice(1,0,null),t.registeredClass.constructor_body[e-1]=zt(r,i,null,a,o),[])),[]})},H:(t,e,r,i,a,o,n,s,l,c)=>{var d=Lt(r,i);e=et(e),e=jt(e),o=_t(a,o,l),tt([],[t],t=>{var i=`${(t=t[0]).name}.${e}`;function a(){Ft(`Cannot call ${i} due to unbound types`,d)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var l=t.registeredClass.instancePrototype,c=l[e];return void 0===c||void 0===c.overloadTable&&c.className!==t.name&&c.argCount===r-2?(a.argCount=r-2,a.className=t.name,l[e]=a):(mt(l,e,i),l[e].overloadTable[r-2]=a),tt([],d,a=>{var s=zt(i,a,t,o,n);return void 0===l[e].overloadTable?(s.argCount=r-2,l[e]=s):l[e].overloadTable[r-2]=s,[]}),[]})},pa:t=>at(t,Ht),X:(t,e,r)=>{at(t,{name:e=et(e),fromWireType:t=>t,toWireType:(t,e)=>e,readValueFromPointer:Vt(e,r),destructorFunction:null})},Y:(t,e,r,i,a,o,n,s)=>{var l=Lt(e,r);t=et(t),t=jt(t),a=_t(i,a,n),vt(t,function(){Ft(`Cannot call ${t} due to unbound types`,l)},e-1),tt([],l,r=>{var i=[r[0],null].concat(r.slice(1));return It(t,zt(t,i,null,a,o),e-1),[]})},A:(t,e,r,i,a)=>{e=et(e);let o=t=>t;if(0===i){var n=32-8*r;o=t=>t<<n>>>n,a=o(a)}at(t,{name:e,fromWireType:o,toWireType:(t,e)=>e,readValueFromPointer:Wt(e,r,0!==i),destructorFunction:null})},ta:(t,e,r,i)=>{r=et(r),i=et(i),tt([],[t,e],t=>{let e=t[0];return Gt(e.registeredClass.instancePrototype,r,i),[]})},u:(t,e,r)=>{var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(t){var e=P[t>>2],r=P[t+4>>2];return new i(T.buffer,r,e)}at(t,{name:r=et(r),fromWireType:a,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},wa:(t,e)=>{at(t,Qt)},qa:(t,e)=>{e=et(e);at(t,{name:e,fromWireType(t){var e,r=P[t>>2],i=t+4;return e=((t,e,r)=>t?te(S,t,e,r):"")(i,r,!0),ge(t),e},toWireType(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r,i="string"==typeof e;i||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||it("Cannot pass non-string to std::string"),r=i?Jt(e):e.length;var a=ye(4+r+1),o=a+4;(P[a>>2]=r,i)?Kt(e,o,r+1):S.set(e,o);return null!==t&&t.push(ge,a),a},readValueFromPointer:G,destructorFunction(t){ge(t)}})},S:(t,e,r)=>{var i,a,o;r=et(r),2===e?(i=re,a=ie,o=ae):(i=oe,a=ne,o=se),at(t,{name:r,fromWireType:t=>{var r=P[t>>2],a=i(t+4,r*e,!0);return ge(t),a},toWireType:(t,i)=>{"string"!=typeof i&&it(`Cannot pass non-string to C++ string type ${r}`);var n=o(i),s=ye(4+n+e);return P[s>>2]=n/e,a(i,s+4,n+e),null!==t&&t.push(ge,s),s},readValueFromPointer:G,destructorFunction(t){ge(t)}})},I:(t,e,r,i,a,o)=>{V[t]={name:et(e),rawConstructor:_t(r,i),rawDestructor:_t(a,o),fields:[]}},ya:(t,e,r,i,a,o,n,s,l,c)=>{V[t].fields.push({fieldName:et(e),getterReturnType:r,getter:_t(i,a),getterContext:o,setterArgumentType:n,setter:_t(s,l),setterContext:c})},sa:(t,e)=>{at(t,{isVoid:!0,name:e=et(e),fromWireType:()=>{},toWireType:(t,e)=>{}})},O:(t,e,r)=>{var[i,...a]=((t,e)=>{for(var r=Array(t),i=0;i<t;++i)r[i]=ce(P[e+4*i>>2],`parameter ${i}`);return r})(t,e),o=i.toWireType.bind(i),n=a.map(t=>t.readValueFromPointer.bind(t));t--;var s=Array(t);return(t=>{var e=le.length;return le.push(t),e})(pt(`methodCaller<(${a.map(t=>t.name)}) => ${i.name}>`,(e,i,a,l)=>{for(var c=0,d=0;d<t;++d)s[d]=n[d](l+c),c+=8;var u;switch(r){case 0:u=Zt.toValue(e).apply(null,s);break;case 2:u=Reflect.construct(Zt.toValue(e),s);break;case 3:u=s[0];break;case 1:u=Zt.toValue(e)[ue(i)](...s)}return((t,e,r)=>{var i=[],a=t(i,r);return i.length&&(P[e>>2]=Zt.toHandle(i)),a})(o,a,u)}))},za:Nt,E:t=>t?(t=ue(t),Zt.toHandle(globalThis[t])):Zt.toHandle(globalThis),T:t=>{t>9&&(qt[t+1]+=1)},N:(t,e,r,i,a)=>le[t](e,r,i,a),la:t=>{W(Zt.toValue(t)),Nt(t)},da:(t,e,r,i)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),n=new Date(a,6,1),s=o.getTimezoneOffset(),l=n.getTimezoneOffset(),c=Math.max(s,l);P[t>>2]=60*c,E[e>>2]=Number(s!=l);var d=t=>{var e=t>=0?"-":"+",r=Math.abs(t);return`UTC${e}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`},u=d(s),h=d(l);l<s?(Kt(u,r,17),Kt(h,i,17)):(Kt(u,i,17),Kt(h,r,17))},ha:t=>{var e=S.length,r=2147483648;if((t>>>=0)>r)return!1;for(var i=1;i<=4;i*=2){var a=e*(1+.2/i);if(a=Math.min(a,t+100663296),pe(Math.min(r,he(Math.max(t,a),65536))))return!0}return!1},ea:(t,e)=>{var r=0,i=0;for(var a of me()){var o=e+r;P[t+i>>2]=o,r+=Kt(a,o,1/0)+1,i+=4}return 0},fa:(t,e)=>{var r=me();P[t>>2]=r.length;var i=0;for(var a of r)i+=Jt(a)+1;return P[e>>2]=i,0},ia:t=>52,_:function(t,e,r,i,a){return(()=>{})(e,r),70},V:(t,e,r,i)=>{for(var a=0,o=0;o<r;o++){var n=P[e>>2],s=P[e+4>>2];e+=8;for(var l=0;l<s;l++)Re(t,S[n+l]);a+=s}return P[i>>2]=a,0},na:function(t,e,r){var i=z();try{return St(t)(e,r)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},M:function(t,e,r,i){var a=z();try{return St(t)(e,r,i)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},C:function(t,e,r,i,a,o){var n=z();try{return St(t)(e,r,i,a,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},P:function(t,e,r,i,a,o){var n=z();try{return St(t)(e,r,i,a,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},U:function(t,e,r,i){var a=z();try{return St(t)(e,r,i)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},q:function(t){var e=z();try{return St(t)()}catch(t){if(L(e),t!==t+0)throw t;we(1,0)}},b:function(t,e){var r=z();try{return St(t)(e)}catch(t){if(L(r),t!==t+0)throw t;we(1,0)}},F:function(t,e,r,i){var a=z();try{return St(t)(e,r,i)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},ka:function(t,e,r){var i=z();try{return St(t)(e,r)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},c:function(t,e,r){var i=z();try{return St(t)(e,r)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},ja:function(t,e,r,i,a){var o=z();try{return St(t)(e,r,i,a)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},g:function(t,e,r,i){var a=z();try{return St(t)(e,r,i)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},j:function(t,e,r,i,a){var o=z();try{return St(t)(e,r,i,a)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},r:function(t,e,r,i,a,o){var n=z();try{return St(t)(e,r,i,a,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},Q:function(t,e,r,i,a,o,n){var s=z();try{return St(t)(e,r,i,a,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},t:function(t,e,r,i,a,o,n){var s=z();try{return St(t)(e,r,i,a,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},G:function(t,e,r,i,a,o,n,s){var l=z();try{return St(t)(e,r,i,a,o,n,s)}catch(t){if(L(l),t!==t+0)throw t;we(1,0)}},B:function(t,e,r,i,a,o,n,s,l){var c=z();try{return St(t)(e,r,i,a,o,n,s,l)}catch(t){if(L(c),t!==t+0)throw t;we(1,0)}},K:function(t,e,r,i,a,o,n,s,l,c,d,u){var h=z();try{return St(t)(e,r,i,a,o,n,s,l,c,d,u)}catch(t){if(L(h),t!==t+0)throw t;we(1,0)}},$:function(t,e,r,i,a,o,n){var s=z();try{return Oe(t,e,r,i,a,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},Z:function(t,e,r,i,a){var o=z();try{return Ie(t,e,r,i,a)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},f:function(t){var e=z();try{St(t)()}catch(t){if(L(e),t!==t+0)throw t;we(1,0)}},l:function(t,e){var r=z();try{St(t)(e)}catch(t){if(L(r),t!==t+0)throw t;we(1,0)}},e:function(t,e,r){var i=z();try{St(t)(e,r)}catch(t){if(L(i),t!==t+0)throw t;we(1,0)}},W:function(t,e,r,i,a,o,n,s,l){var c=z();try{St(t)(e,r,i,a,o,n,s,l)}catch(t){if(L(c),t!==t+0)throw t;we(1,0)}},h:function(t,e,r,i){var a=z();try{St(t)(e,r,i)}catch(t){if(L(a),t!==t+0)throw t;we(1,0)}},L:function(t,e,r,i,a,o,n){var s=z();try{St(t)(e,r,i,a,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},k:function(t,e,r,i,a){var o=z();try{St(t)(e,r,i,a)}catch(t){if(L(o),t!==t+0)throw t;we(1,0)}},ma:function(t,e,r,i,a,o,n,s){var l=z();try{St(t)(e,r,i,a,o,n,s)}catch(t){if(L(l),t!==t+0)throw t;we(1,0)}},o:function(t,e,r,i,a,o){var n=z();try{St(t)(e,r,i,a,o)}catch(t){if(L(n),t!==t+0)throw t;we(1,0)}},y:function(t,e,r,i,a,o,n){var s=z();try{St(t)(e,r,i,a,o,n)}catch(t){if(L(s),t!==t+0)throw t;we(1,0)}},v:function(t,e,r,i,a,o,n,s){var l=z();try{St(t)(e,r,i,a,o,n,s)}catch(t){if(L(l),t!==t+0)throw t;we(1,0)}},D:function(t,e,r,i,a,o,n,s,l){var c=z();try{St(t)(e,r,i,a,o,n,s,l)}catch(t){if(L(c),t!==t+0)throw t;we(1,0)}},w:function(t,e,r,i,a,o,n,s,l,c){var d=z();try{St(t)(e,r,i,a,o,n,s,l,c)}catch(t){if(L(d),t!==t+0)throw t;we(1,0)}},n:function(t,e,r,i,a,o,n,s,l,c,d){var u=z();try{St(t)(e,r,i,a,o,n,s,l,c,d)}catch(t){if(L(u),t!==t+0)throw t;we(1,0)}},J:function(t,e,r,i,a,o,n,s,l,c,d,u,h,p,f,m){var v=z();try{St(t)(e,r,i,a,o,n,s,l,c,d,u,h,p,f,m)}catch(t){if(L(v),t!==t+0)throw t;we(1,0)}},oa:function(t,e,r,i,a,o,n,s,l,c,d,u,h,p,f,m,v){var g=z();try{St(t)(e,r,i,a,o,n,s,l,c,d,u,h,p,f,m,v)}catch(t){if(L(g),t!==t+0)throw t;we(1,0)}},aa:function(t,e,r,i,a,o,n,s,l,c,d,u,h,p,f,m,v,g,y,b){var w=z();try{Te(t,e,r,i,a,o,n,s,l,c,d,u,h,p,f,m,v,g,y,b)}catch(t){if(L(w),t!==t+0)throw t;we(1,0)}},z:t=>t};var De=await async function(){function t(t,e){return function(t){ve=t.Ca,ge=a._free=t.Da,ye=a._malloc=t.Fa,be=t.Ga,we=t.Ha,Ce=t.Ia,xe=t.Ja,$e=t.Ka,ke=t.La,Ae=t.Ma,Ee=t.Na,Mt.viijii=t.Oa,Te=Mt.viijjijjjjjj=t.Pa,Oe=Mt.iiijj=t.Qa,Mt.jiji=t.Ra,Ie=Mt.jiiii=t.Sa,Mt.iiiiij=t.Ta,Mt.iiiiijj=t.Ua,Mt.iiiiiijj=t.Va,Me=t.Aa,Pe=t.Ea}(De=t.exports),w(),De}var e={a:_e};return a.instantiateWasm?new Promise((r,i)=>{a.instantiateWasm(e,(e,i)=>{r(t(e))})}):(null!=m||(m=x()),function(e){return t(e.instance)}(await k(h,m,e)))}();return function(){function t(){var t,e;a.calledRun=!0,!y&&(b=!0,De.Ba(),null==(t=p)||t(a),null==(e=a.onRuntimeInitialized)||e.call(a),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)D(a.postRun.shift());R(_)}())}!function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)F(a.preRun.shift());R(B)}(),a.setStatus?(a.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>a.setStatus(""),1),t()},1)):t()}(),e=b?a:new Promise((t,e)=>{p=t,f=e}),e}function E(t){return $(A,t)}Object.assign({},g),Object.assign({},{format:"QRCode",readerInit:!1,forceSquareDataMatrix:!1,ecLevel:"",scale:1,sizeHint:0,rotate:0,invert:!1,withHRT:!1,withQuietZones:!0,addHRT:!1,addQuietZones:!0,options:""});var T=[["aztec","Aztec"],["aztec_code","AztecCode"],["aztec_rune","AztecRune"],["code_128","Code128"],["code_39","Code39"],["code_39_standard","Code39Std"],["code_39_extended","Code39Ext"],["code_32","Code32"],["pzn","PZN"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_omni","DataBarOmni"],["databar_stacked","DataBarStk"],["databar_stacked_omni","DataBarStkOmni"],["databar_expanded","DataBarExp"],["databar_expanded_stacked","DataBarExpStk"],["databar_limited","DataBarLtd"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN13"],["ean_upc","EANUPC"],["isbn","ISBN"],["ean_8","EAN8"],["itf","ITF"],["itf_14","ITF14"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["compact_pdf417","CompactPDF417"],["qr_code","QRCode"],["qr_code_model_1","QRCodeModel1"],["qr_code_model_2","QRCodeModel2"],["rm_qr_code","RMQRCode"],["upc_a","UPCA"],["upc_e","UPCE"],["other_barcode","OtherBarcode"],["linear_codes","AllLinear"],["matrix_codes","AllMatrix"],["gs1_codes","AllGS1"],["retail_codes","AllRetail"],["industrial_codes","AllIndustrial"],["any","All"]],O=[...T,["unknown"]].map(t=>t[0]),I=new Map(T);function M(t){for(let[e,r]of I)if(t===r)return e;return"unknown"}function P(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLImageElement)}catch(r){return!1}}function S(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.SVGImageElement)}catch(r){return!1}}function R(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLVideoElement)}catch(r){return!1}}function _(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLCanvasElement)}catch(r){return!1}}function D(t){try{return t instanceof ImageBitmap||"[object ImageBitmap]"===Object.prototype.toString.call(t)}catch(e){return!1}}function B(t){try{return t instanceof OffscreenCanvas||"[object OffscreenCanvas]"===Object.prototype.toString.call(t)}catch(e){return!1}}function F(t){try{return t instanceof VideoFrame||"[object VideoFrame]"===Object.prototype.toString.call(t)}catch(e){return!1}}async function L(t){if(P(t)&&!(await async function(t){try{return await t.decode(),!0}catch(e){return!1}}(t)))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(S(t)&&!(await async function(t){try{var e;return await(null==(e=t.decode)?void 0:e.call(t)),!0}catch(r){return!1}}(t)))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(F(t)&&function(t){return null===t.format}(t))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(R(t)&&(0===t.readyState||1===t.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(D(t)&&function(t){return 0===t.width&&0===t.height}(t))throw new DOMException("The image source is detached.","InvalidStateError");let{width:e,height:r}=function(t){if(P(t))return{width:t.naturalWidth,height:t.naturalHeight};if(S(t))return{width:t.width.baseVal.value,height:t.height.baseVal.value};if(R(t))return{width:t.videoWidth,height:t.videoHeight};if(D(t))return{width:t.width,height:t.height};if(F(t))return{width:t.displayWidth,height:t.displayHeight};if(_(t)||B(t))return{width:t.width,height:t.height};throw TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}(t);if(0===e||0===r)return null;let i=function(t,e){try{let r=new OffscreenCanvas(t,e);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch(r){let i=document.createElement("canvas");return i.width=t,i.height=e,i}}(e,r).getContext("2d");i.drawImage(t,0,0);try{return i.getImageData(0,0,e,r)}catch(a){throw new DOMException("Source would taint origin.","SecurityError")}}async function z(t){if(function(t){try{return t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t)}catch(e){return!1}}(t))return await async function(t){let e;try{e=await createImageBitmap(t)}catch(r){try{if(!globalThis.Image)return t;{e=new Image;let r="";try{r=URL.createObjectURL(t),e.src=r,await e.decode()}finally{URL.revokeObjectURL(r)}}}catch(i){throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}}return await L(e)}(t);if(function(t){try{return t instanceof ImageData||"[object ImageData]"===Object.prototype.toString.call(t)}catch(e){return!1}}(t)){if(function(t){return 0===t.data.buffer.byteLength}(t))throw new DOMException("The image data has been detached.","InvalidStateError");return t}return _(t)||B(t)?function(t){let{width:e,height:r}=t;if(0===e||0===r)return null;let i=t.getContext("2d");try{return i.getImageData(0,0,e,r)}catch(a){throw new DOMException("Source would taint origin.","SecurityError")}}(t):await L(t)}function j(t,e){return function(t){return t instanceof DOMException||"[object DOMException]"===Object.prototype.toString.call(t)}(t)?new DOMException(`${e}: ${t.message}`,t.name):function(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}(t)?new t.constructor(`${e}: ${t.message}`):Error(`${e}: ${t}`)}function U(t,e,r){(function(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}function q(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw TypeError("Private element is not present on this object")}function N(t,e){return t.get(q(t,e))}var Z,H=new WeakMap;null!=(Z=globalThis).BarcodeDetector||(Z.BarcodeDetector=class{static async getSupportedFormats(){return O.filter(t=>"unknown"!==t)}async detect(t){try{let e=await z(t);if(null===e)return[];let r,i={textMode:"Plain",formats:N(H,this).map(t=>I.get(t))};try{r=await async function(t,e){return k(A,t,e)}(e,i)}catch(t){throw console.error(t),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(t=>{let{topLeft:{x:e,y:r},topRight:{x:i,y:a},bottomLeft:{x:o,y:n},bottomRight:{x:s,y:l}}=t.position,c=Math.min(e,i,o,s),d=Math.min(r,a,n,l),u=Math.max(e,i,o,s),h=Math.max(r,a,n,l);return{boundingBox:new DOMRectReadOnly(c,d,u-c,h-d),rawValue:t.text,format:M(t.format),cornerPoints:[{x:e,y:r},{x:i,y:a},{x:s,y:l},{x:o,y:n}]}})}catch(t){throw j(t,"Failed to execute 'detect' on 'BarcodeDetector'")}}constructor(t={}){U(this,H,void 0);try{var e;let r=null==t||null==(e=t.formats)?void 0:e.filter(t=>"unknown"!==t);if(0===(null==r?void 0:r.length))throw TypeError("Hint option provided, but is empty.");for(let t of null==r?[]:r)if(!I.has(t))throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${t}' is not a valid enum value of type BarcodeFormat.`);(function(t,e,r){t.set(q(t,e),r)})(H,this,null==r?[]:r),E({fireImmediately:!0}).catch(()=>{})}catch(t){throw j(t,"Failed to construct 'BarcodeDetector'")}}})},37540:function(t,e,r){r.d(e,{Kq:function(){return u}});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(62953);var i=r(63937),a=r(42017);const o=(t,e)=>{const r=t._$AN;if(void 0===r)return!1;for(const a of r){var i;null!==(i=a._$AO)&&void 0!==i&&i.call(a,e,!1),o(a,e)}return!0},n=t=>{let e,r;do{var i;if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===(null===(i=r)||void 0===i?void 0:i.size))},s=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),d(e)}};function l(t){void 0!==this._$AN?(n(this),this._$AM=t,s(this)):this._$AM=t}function c(t,e=!1,r=0){const i=this._$AH,a=this._$AN;if(void 0!==a&&0!==a.size)if(e)if(Array.isArray(i))for(let s=r;s<i.length;s++)o(i[s],!1),n(i[s]);else null!=i&&(o(i,!1),n(i));else o(this,t)}const d=t=>{var e,r;t.type==a.OA.CHILD&&(null!==(e=t._$AP)&&void 0!==e||(t._$AP=c),null!==(r=t._$AQ)&&void 0!==r||(t._$AQ=l))};class u extends a.WL{_$AT(t,e,r){super._$AT(t,e,r),s(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?null===(r=this.reconnected)||void 0===r||r.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),e&&(o(this,t),n(this))}setValue(t){if((0,i.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}},54495:function(t,e,r){r.d(e,{OA:function(){return i.OA},WL:function(){return i.WL},u$:function(){return i.u$}});var i=r(42017)},34514:function(t,e,r){r.d(e,{V:function(){return n}});r(16280),r(62953);var i=r(5055),a=r(42017),o=r(63937);const n=(0,a.u$)(class extends a.WL{render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const r=t.element,n=t.name;if(t.type===a.OA.PROPERTY){if(e===r[n])return i.c0}else if(t.type===a.OA.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(n))return i.c0}else if(t.type===a.OA.ATTRIBUTE&&r.getAttribute(n)===e+"")return i.c0;return(0,o.mY)(t),e}constructor(t){if(super(t),t.type!==a.OA.PROPERTY&&t.type!==a.OA.ATTRIBUTE&&t.type!==a.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,o.Rt)(t))throw Error("`live` bindings can only contain a single expression")}})}}]);