iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
8 lines • 68.4 kB
JavaScript
/*! For license information please see 41144.38da5f0adbe0a6d8.js.LICENSE.txt */
export const __rspack_esm_id=41144;export const __rspack_esm_ids=[41144];export const __webpack_modules__={12451(e,t,o){o.d(t,{O:()=>n,i:()=>a.is});var i=o(5124),a=o(12130);class n extends i.WF{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},12130(e,t,o){o.d(t,{SE:()=>d,U9:()=>l,hP:()=>i,is:()=>a});o(44114);const i=e=>e.nodeType===Node.ELEMENT_NODE;function a(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}let n=!1;const r=()=>{},s={get passive(){return n=!0,!1}};document.addEventListener("x",r,s),document.removeEventListener("x",r);const l=(e=window.document)=>{let t=e.activeElement;const o=[];if(!t)return o;for(;t&&(o.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return o},d=e=>{const t=l();if(!t.length)return!1;const o=t[t.length-1],i=new Event("check-if-focused",{bubbles:!0,composed:!0});let a=[];const n=e=>{a=e.composedPath()};return document.body.addEventListener("check-if-focused",n),o.dispatchEvent(i),document.body.removeEventListener("check-if-focused",n),-1!==a.indexOf(e)}},32308(e,t,o){var i=o(62826),a=o(22441),n=o(68618),r=o(11081);o(34078);let s=class extends n.iY{};s.styles=[r.R],s=(0,i.Cg)([(0,a.EM)("mwc-list")],s)},48646(e,t,o){var i=o(69565),a=o(28551),n=o(1767),r=o(50851);e.exports=function(e,t){t&&"string"==typeof e||a(e);var o=r(e);return n(a(void 0!==o?i(o,e):e))}},65213(e,t,o){var i=o(44576),a=o(79039),n=i.RegExp,r=!a(function(){var e=!0;try{n(".","d")}catch(t){e=!1}var t={},o="",i=e?"dgimsy":"gimsy",a=function(e,i){Object.defineProperty(t,e,{get:function(){return o+=i,!0}})},r={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(r.hasIndices="d"),r)a(s,r[s]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||o!==i});e.exports={correct:r}},67979(e,t,o){var i=o(28551);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},30531(e,t,o){var i=o(46518),a=o(69565),n=o(79306),r=o(28551),s=o(1767),l=o(48646),d=o(19462),c=o(9539),h=o(96395),u=o(30684),p=o(84549);var f=!h&&!u("flatMap",function(){}),b=!h&&!f&&p("flatMap",TypeError),m=h||f||b||function(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e.return()}catch(e){return!0}}(),w=d(function(){for(var e,t,o=this.iterator,i=this.mapper;;){if(t=this.inner)try{if(!(e=r(a(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(o,"throw",e)}if(e=r(a(this.next,o)),this.done=!!e.done)return;try{this.inner=l(i(e.value,this.counter++),!1)}catch(e){c(o,"throw",e)}}});i({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return b?a(b,this,e):new w(s(this),{mapper:e,inner:null})}})},69479(e,t,o){var i=o(43724),a=o(62106),n=o(65213),r=o(67979);i&&!n.correct&&(a(RegExp.prototype,"flags",{configurable:!0,get:r}),n.correct=!0)},22395(e,t,o){var i=o(5124),a=o(22441),n=o(717),r=i.AH`:host{display:inline-flex}.button-group{display:flex;position:relative;isolation:isolate;flex-wrap:wrap}@media (hover:hover){.button-group::slotted(:hover),.button-group>:hover{z-index:1}}.button-group::slotted(:focus),.button-group::slotted([aria-checked=true]),.button-group::slotted([checked]),.button-group>:focus,.button-group>[aria-checked=true],.button-group>[checked]{z-index:2!important}:host([orientation=horizontal]) .button-group{flex-direction:row}:host([orientation=vertical]) .button-group{flex-direction:column}:host([orientation=horizontal]){--_button-horizontal-indent:var(--wa-form-control-border-width);--_button-horizontal-indent-outlined:calc(var(--wa-form-control-border-width) * -1)}:host([orientation=vertical]){--_button-vertical-indent:var(--wa-form-control-border-width);--_button-vertical-indent-outlined:calc(var(--wa-form-control-border-width) * -1)}::slotted(:not(:first-child):not(:last-child)){--_button-start-start-radius:0;--_button-start-end-radius:0;--_button-end-start-radius:0;--_button-end-end-radius:0}:host([orientation=horizontal]) ::slotted(:first-child:not(:last-child)){--_button-start-end-radius:0;--_button-end-end-radius:0}:host([orientation=horizontal]) ::slotted(:last-child:not(:first-child)){--_button-start-start-radius:0;--_button-end-start-radius:0}:host([orientation=vertical]) ::slotted(:first-child:not(:last-child)){--_button-end-start-radius:0;--_button-end-end-radius:0}:host([orientation=vertical]) ::slotted(:last-child:not(:first-child)){--_button-start-start-radius:0;--_button-start-end-radius:0}`,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=(e,t,o,i)=>{for(var a,n=i>1?void 0:i?l(t,o):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,o,n):a(n))||n);return i&&n&&s(t,o,n),n};let c=class extends n.A{updated(e){super.updated(e),e.has("orientation")&&this.setAttribute("aria-orientation",this.orientation)}handleFocus(e){const t=h(e.target,this.childSelector);t?.classList.add("button-focus")}handleBlur(e){const t=h(e.target,this.childSelector);t?.classList.remove("button-focus")}handleMouseOver(e){const t=h(e.target,this.childSelector);t?.classList.add("button-hover")}handleMouseOut(e){const t=h(e.target,this.childSelector);t?.classList.remove("button-hover")}render(){return i.qy` <slot part="base" class="button-group" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" aria-orientation="${this.orientation}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}"></slot> `}constructor(){super(...arguments),this.disableRole=!1,this.hasOutlined=!1,this.label="",this.orientation="horizontal",this.childSelector="wa-button, wa-radio-button"}};function h(e,t){return e.closest(t)??e.querySelector(t)}c.css=[r],d([(0,a.P)("slot")],c.prototype,"defaultSlot",2),d([(0,a.wk)()],c.prototype,"disableRole",2),d([(0,a.wk)()],c.prototype,"hasOutlined",2),d([(0,a.MZ)()],c.prototype,"label",2),d([(0,a.MZ)({reflect:!0})],c.prototype,"orientation",2),d([(0,a.MZ)()],c.prototype,"childSelector",2),c=d([(0,a.EM)("wa-button-group")],c)},97577(e,t,o){o.d(t,{A:()=>v});var i=o(5124),a=o(22441),n=o(6412),r=o(63672),s=o(34514),l=o(40991),d=o(92070),c=o(49546),h=o(9395),u=o(62676),p=o(15477),f=o(31896),b=(o(38625),i.AH`:host{--checked-icon-color:var(--wa-color-brand-on-loud);--checked-icon-scale:0.8;display:inline-flex;color:var(--wa-form-control-value-color);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);user-select:none;-webkit-user-select:none}[part~=control]{display:inline-flex;flex:0 0 auto;position:relative;align-items:center;justify-content:center;width:var(--wa-form-control-toggle-size);height:var(--wa-form-control-toggle-size);border-color:var(--wa-form-control-border-color);border-radius:min(calc(var(--wa-form-control-toggle-size) * .375),var(--wa-border-radius-s));border-style:var(--wa-border-style);border-width:var(--wa-form-control-border-width);background-color:var(--wa-form-control-background-color);transition:background var(--wa-transition-normal),border-color var(--wa-transition-fast),box-shadow var(--wa-transition-fast),color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);margin-inline-end:.5em}[part~=base]{display:flex;align-items:flex-start;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:inline}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color);border-color:var(--wa-form-control-activated-color);background-color:var(--wa-form-control-activated-color)}[part~=control]:has(> input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;scale:var(--checked-icon-scale)}[part~=icon]::part(svg){translate:0.0009765625em}input:not(:checked,:indeterminate)+[part~=icon]{visibility:hidden}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}`),m=Object.defineProperty,w=Object.getOwnPropertyDescriptor,g=(e,t,o,i)=>{for(var a,n=i>1?void 0:i?w(t,o):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,o,n):a(n))||n);return i&&n&&m(t,o,n),n};let v=class extends u.q{static get validators(){const e=i.S$?[]:[(0,c.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...e]}get value(){return this._value??"on"}set value(e){this._value=e}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){return this.valueHasChanged?Boolean(this._checked):this._checked??this.defaultChecked}set checked(e){this._checked=Boolean(e),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback(),this.handleDefaultCheckedChange()}handleDefaultCheckedChange(){this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(e){super.willUpdate(e),(e.has("value")||e.has("checked")||e.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){const e=!!i.S$||this.hasSlotController.test("hint"),t=!!this.hint||!!e,o=!this.checked&&this.indeterminate,a=o?"indeterminate":"check",l=o?"indeterminate":"check";return i.qy` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${this.title}" name="${(0,r.J)(this.name)}" value="${(0,r.J)(this._value)}" .indeterminate="${(0,s.V)(this.indeterminate)}" .checked="${(0,s.V)(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}" aria-describedby="hint" @click="${this.handleClick}"> <wa-icon part="${l}-icon icon" library="system" name="${a}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${t?"false":"true"}" class="${(0,n.H)({"has-slotted":t})}"> ${this.hint} </slot> `}constructor(){super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.title="",this.name=null,this._value=this.getAttribute("value")??null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};v.css=[p.A,f.A,b],v.shadowRootOptions={...u.q.shadowRootOptions,delegatesFocus:!0},g([(0,a.P)('input[type="checkbox"]')],v.prototype,"input",2),g([(0,a.MZ)()],v.prototype,"title",2),g([(0,a.MZ)({reflect:!0})],v.prototype,"name",2),g([(0,a.MZ)({reflect:!0})],v.prototype,"value",1),g([(0,a.MZ)({reflect:!0})],v.prototype,"size",2),g([(0,h.w)("size")],v.prototype,"handleSizeChange",1),g([(0,a.MZ)({type:Boolean})],v.prototype,"disabled",2),g([(0,a.MZ)({type:Boolean,reflect:!0})],v.prototype,"indeterminate",2),g([(0,a.MZ)({type:Boolean,attribute:!1})],v.prototype,"checked",1),g([(0,a.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],v.prototype,"defaultChecked",2),g([(0,a.MZ)({type:Boolean,reflect:!0})],v.prototype,"required",2),g([(0,a.MZ)()],v.prototype,"hint",2),g([(0,h.w)(["checked","defaultChecked"])],v.prototype,"handleDefaultCheckedChange",1),g([(0,h.w)(["checked","indeterminate"])],v.prototype,"handleStateChange",1),g([(0,h.w)("disabled")],v.prototype,"handleDisabledChange",1),v=g([(0,a.EM)("wa-checkbox")],v),v.disableWarning?.("change-in-update")},93900(e,t,o){o.a(e,async function(e,t){try{var i=o(5124),a=o(22441),n=o(6412),r=o(63672),s=o(17051),l=o(42462),d=o(28438),c=o(98779),h=o(27259),u=o(25877),p=o(31247),f=o(4444),b=o(92070),m=o(9395),w=o(717),g=o(17060),v=o(88496),y=o(91470),x=e([v,g]);[v,g]=x.then?(await x)():x;var k=Object.defineProperty,C=Object.getOwnPropertyDescriptor,E=(e,t,o,i)=>{for(var a,n=i>1?void 0:i?C(t,o):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,o,n):a(n))||n);return i&&n&&k(t,o,n),n};let $=class extends w.A{firstUpdated(){this.open&&(this.addOpenListeners(),this.dialog.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(e){const t=new d.L({source:e});if(this.dispatchEvent(t),t.defaultPrevented)return this.open=!0,void(0,h.Ud)(this.dialog,"pulse");this.removeOpenListeners(),await(0,h.Ud)(this.dialog,"hide"),this.open=!1,this.dialog.close(),(0,f.I7)(this);const o=this.originalTrigger;"function"==typeof o?.focus&&setTimeout(()=>o.focus()),this.dispatchEvent(new s.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,u.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this)}handleDialogCancel(e){e.preventDefault(),!this.dialog.classList.contains("hide")&&e.target===this.dialog&&(0,u.a0)(this)&&this.requestClose(this.dialog)}handleDialogClick(e){const t=e.target.closest('[data-dialog="close"]');t&&(e.stopPropagation(),this.requestClose(t))}async handleDialogPointerDown(e){e.target===this.dialog&&(this.lightDismiss?this.requestClose(this.dialog):await(0,h.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 e=new c.k;this.dispatchEvent(e),e.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.dialog.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const e=this.querySelector("[autofocus]");e&&"function"==typeof e.focus?e.focus():this.dialog.focus()}),await(0,h.Ud)(this.dialog,"show"),this.dispatchEvent(new l.q))}render(){const e=!this.withoutHeader,t=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return i.qy` <dialog aria-labelledby="${this.ariaLabelledby??"title"}" aria-describedby="${(0,r.J)(this.ariaDescribedby)}" part="dialog" class="${(0,n.H)({dialog:!0,open:this.open})}" @cancel="${this.handleDialogCancel}" @click="${this.handleDialogClick}" @pointerdown="${this.handleDialogPointerDown}"> ${e?i.qy` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(8203)} </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="${e=>this.requestClose(e.target)}"> <wa-icon name="xmark" label="${this.localize.term("close")}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `:""} <div part="body" class="body"><slot></slot></div> ${t?i.qy` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `:""} </dialog> `}constructor(){super(...arguments),this.localize=new g.c(this),this.hasSlotController=new b.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!1,this.withFooter=!1,this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.open&&(0,u.a0)(this)&&(e.preventDefault(),e.stopPropagation(),this.requestClose(this.dialog))}}};$.css=y.A,E([(0,a.P)(".dialog")],$.prototype,"dialog",2),E([(0,a.MZ)({type:Boolean,reflect:!0})],$.prototype,"open",2),E([(0,a.MZ)({reflect:!0})],$.prototype,"label",2),E([(0,a.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],$.prototype,"withoutHeader",2),E([(0,a.MZ)({attribute:"light-dismiss",type:Boolean})],$.prototype,"lightDismiss",2),E([(0,a.MZ)({attribute:"aria-labelledby"})],$.prototype,"ariaLabelledby",2),E([(0,a.MZ)({attribute:"aria-describedby"})],$.prototype,"ariaDescribedby",2),E([(0,a.MZ)({attribute:"with-footer",type:Boolean})],$.prototype,"withFooter",2),E([(0,m.w)("open",{waitUntilFirstUpdate:!0})],$.prototype,"handleOpenChange",1),$=E([(0,a.EM)("wa-dialog")],$),i.S$||(document.addEventListener("click",e=>{const t=e.target.closest("[data-dialog]");if(t instanceof Element){const[e,o]=(0,p.v)(t.getAttribute("data-dialog")||"");if("open"===e&&o?.length){const e=t.getRootNode().getElementById(o);"wa-dialog"===e?.localName?e.open=!0:console.warn(`A dialog with an ID of "${o}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),t()}catch(e){t(e)}})},91470(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`: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}}`},1126(e,t,o){o.a(e,async function(e,t){try{var i=o(5124),a=o(22441),n=o(6412),r=o(63672),s=o(17051),l=o(42462),d=o(28438),c=o(98779),h=o(27259),u=o(25877),p=o(31247),f=o(4444),b=o(92070),m=o(9395),w=o(717),g=o(17060),v=o(88496),y=o(57024),x=e([v,g]);[v,g]=x.then?(await x)():x;var k=Object.defineProperty,C=Object.getOwnPropertyDescriptor,E=(e,t,o,i)=>{for(var a,n=i>1?void 0:i?C(t,o):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,o,n):a(n))||n);return i&&n&&k(t,o,n),n};let $=class extends w.A{firstUpdated(){i.S$||this.open&&(this.addOpenListeners(),this.drawer.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(e){const t=new d.L({source:e});if(this.dispatchEvent(t),t.defaultPrevented)return this.open=!0,void(0,h.Ud)(this.drawer,"pulse");this.removeOpenListeners(),await(0,h.Ud)(this.drawer,"hide"),this.open=!1,this.drawer.close(),(0,f.I7)(this);const o=this.originalTrigger;"function"==typeof o?.focus&&setTimeout(()=>o.focus()),this.dispatchEvent(new s.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,u.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this)}handleDialogCancel(e){e.preventDefault(),!this.drawer.classList.contains("hide")&&e.target===this.drawer&&(0,u.a0)(this)&&this.requestClose(this.drawer)}handleDialogClick(e){const t=e.target.closest('[data-drawer="close"]');t&&(e.stopPropagation(),this.requestClose(t))}async handleDialogPointerDown(e){e.target===this.drawer&&(this.lightDismiss?this.requestClose(this.drawer):await(0,h.Ud)(this.drawer,"pulse"))}handleOpenChange(){this.open&&!this.drawer.open?this.show():this.drawer.open&&(this.open=!0,this.requestClose(this.drawer))}async show(){const e=new c.k;this.dispatchEvent(e),e.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.drawer.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const e=this.querySelector("[autofocus]");e&&"function"==typeof e.focus?e.focus():this.drawer.focus()}),await(0,h.Ud)(this.drawer,"show"),this.dispatchEvent(new l.q))}render(){const e=!this.withoutHeader,t=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return i.qy` <dialog aria-labelledby="${this.ariaLabelledby??"title"}" aria-describedby="${(0,r.J)(this.ariaDescribedby)}" part="dialog" class="${(0,n.H)({drawer:!0,open:this.open,top:"top"===this.placement,end:"end"===this.placement,bottom:"bottom"===this.placement,start:"start"===this.placement})}" @cancel="${this.handleDialogCancel}" @click="${this.handleDialogClick}" @pointerdown="${this.handleDialogPointerDown}"> ${e?i.qy` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(8203)} </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="${e=>this.requestClose(e.target)}"> <wa-icon name="xmark" label="${this.localize.term("close")}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `:""} <div part="body" class="body"><slot></slot></div> ${t?i.qy` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `:""} </dialog> `}constructor(){super(...arguments),this.localize=new g.c(this),this.hasSlotController=new b.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.placement="end",this.withoutHeader=!1,this.lightDismiss=!0,this.withFooter=!1,this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.open&&(0,u.a0)(this)&&(e.preventDefault(),e.stopPropagation(),this.requestClose(this.drawer))}}};$.css=y.A,E([(0,a.P)(".drawer")],$.prototype,"drawer",2),E([(0,a.MZ)({type:Boolean,reflect:!0})],$.prototype,"open",2),E([(0,a.MZ)({reflect:!0})],$.prototype,"label",2),E([(0,a.MZ)({reflect:!0})],$.prototype,"placement",2),E([(0,a.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],$.prototype,"withoutHeader",2),E([(0,a.MZ)({attribute:"light-dismiss",type:Boolean})],$.prototype,"lightDismiss",2),E([(0,a.MZ)({attribute:"aria-labelledby"})],$.prototype,"ariaLabelledby",2),E([(0,a.MZ)({attribute:"aria-describedby"})],$.prototype,"ariaDescribedby",2),E([(0,a.MZ)({attribute:"with-footer",type:Boolean})],$.prototype,"withFooter",2),E([(0,m.w)("open",{waitUntilFirstUpdate:!0})],$.prototype,"handleOpenChange",1),$=E([(0,a.EM)("wa-drawer")],$),i.S$||(document.addEventListener("click",e=>{const t=e.target.closest("[data-drawer]");if(t instanceof Element){const[e,o]=(0,p.v)(t.getAttribute("data-drawer")||"");if("open"===e&&o?.length){const e=t.getRootNode().getElementById(o);"wa-drawer"===e?.localName?e.open=!0:console.warn(`A drawer with an ID of "${o}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),t()}catch(e){t(e)}})},57024(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`:host{--size:25rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:200ms;--hide-duration:200ms;display:none}:host([open]){display:block}.drawer{display:flex;flex-direction:column;top:0;inset-inline-start:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;color:inherit;background-color:var(--wa-color-surface-raised);border:none;box-shadow:var(--wa-shadow-l);overflow:auto;padding:0;margin:0;animation-duration:var(--show-duration);animation-timing-function:ease}.drawer.show::backdrop{animation:show-backdrop var(--show-duration,200ms) ease}.drawer.hide::backdrop{animation:show-backdrop var(--hide-duration,200ms) ease reverse}.drawer.show.top{animation:show-drawer-from-top var(--show-duration) ease}.drawer.hide.top{animation:show-drawer-from-top var(--hide-duration) ease reverse}.drawer.show.end{animation:show-drawer-from-end var(--show-duration) ease}.drawer.show.end:dir(rtl){animation-name:show-drawer-from-start}.drawer.hide.end{animation:show-drawer-from-end var(--hide-duration) ease reverse}.drawer.hide.end:dir(rtl){animation-name:show-drawer-from-start}.drawer.show.bottom{animation:show-drawer-from-bottom var(--show-duration) ease}.drawer.hide.bottom{animation:show-drawer-from-bottom var(--hide-duration) ease reverse}.drawer.show.start{animation:show-drawer-from-start var(--show-duration) ease}.drawer.show.start:dir(rtl){animation-name:show-drawer-from-end}.drawer.hide.start{animation:show-drawer-from-start var(--hide-duration) ease reverse}.drawer.hide.start:dir(rtl){animation-name:show-drawer-from-end}.drawer.pulse{animation:pulse 250ms ease}.drawer:focus{outline:0}.top{top:0;inset-inline-end:auto;bottom:auto;inset-inline-start:0;width:100%;height:var(--size)}.end{top:0;inset-inline-end:0;bottom:auto;inset-inline-start:auto;width:var(--size);height:100%}.bottom{top:auto;inset-inline-end:auto;bottom:0;inset-inline-start:0;width:100%;height:var(--size)}.start{top:0;inset-inline-end:auto;bottom:auto;inset-inline-start:0;width:var(--size);height:100%}.header{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: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{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(:last-of-type)){margin-inline-end:var(--wa-spacing-xs)}.drawer::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.01}100%{scale:1}}@keyframes show-drawer{from{opacity:0;scale:0.8}to{opacity:1;scale:1}}@keyframes show-drawer-from-top{from{opacity:0;translate:0 -100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-end{from{opacity:0;translate:100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-bottom{from{opacity:0;translate:0 100%}to{opacity:1;translate:0 0}}@keyframes show-drawer-from-start{from{opacity:0;translate:-100% 0}to{opacity:1;translate:0 0}}@keyframes show-backdrop{from{opacity:0}to{opacity:1}}@media (forced-colors:active){.drawer{border:solid 1px #fff}}`},30006(e,t,o){o.a(e,async function(e,t){try{o(74423);var i=o(5124),a=o(22441),n=o(6412),r=o(63672),s=o(34514),l=o(37541),d=o(40991),c=o(92070),h=o(28225),u=o(41268),p=o(9395),f=o(62676),b=o(15477),m=o(31896),w=o(17060),g=(o(38625),o(96272)),v=e([w]);w=(v.then?(await v)():v)[0];var y=Object.defineProperty,x=Object.getOwnPropertyDescriptor,k=(e,t,o,i)=>{for(var a,n=i>1?void 0:i?x(t,o):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,o,n):a(n))||n);return i&&n&&y(t,o,n),n};let C=class extends f.q{static get validators(){return[...super.validators,(0,u.i)()]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(e){this._value!==e&&(this.valueHasChanged=!0,this._value=e)}handleSizeChange(){(0,d.b)(this.localName,this.size)}handleChange(e){this.value=this.input.value,this.relayNativeEvent(e,{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(e){e.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(e){(0,h.U)(e,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(e){if(super.updated(e),e.has("value")||e.has("defaultValue")||e.has("type")){const e=["number","date","time","datetime-local"];this.input&&e.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(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,o="none"){this.input.setSelectionRange(e,t,o)}setRangeText(e,t,o,i="preserve"){const a=t??this.input.selectionStart,n=o??this.input.selectionEnd;this.input.setRangeText(e,a,n,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(){const e=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,t=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,o=!!this.label||!!e,a=!!this.hint||!!t,l=this.withClear&&!this.disabled&&!this.readonly,d=(i.S$||this.hasUpdated)&&l&&("number"==typeof this.value||this.value&&this.value.length>0);return i.qy` <label part="form-control-label label" class="${(0,n.H)({label:!0,"has-label":o})}" for="input" aria-hidden="${o?"false":"true"}"> <slot name="label">${this.label}</slot> </label> <div part="base" class="text-field"> <slot name="start" part="start" class="start"></slot> <input part="input" id="input" class="control" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${(0,r.J)(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${(0,r.J)(this.placeholder)}" minlength="${(0,r.J)(this.minlength)}" maxlength="${(0,r.J)(this.maxlength)}" min="${(0,r.J)(this.min)}" max="${(0,r.J)(this.max)}" step="${(0,r.J)(this.step)}" .value="${(0,s.V)(this.value??"")}" autocapitalize="${(0,r.J)(this.autocapitalize)}" autocomplete="${(0,r.J)(this.autocomplete)}" autocorrect="${this.autocorrect?"on":"off"}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${(0,r.J)(this.pattern)}" enterkeyhint="${(0,r.J)(this.enterkeyhint)}" inputmode="${(0,r.J)(this.inputmode)}" aria-describedby="hint" @change="${this.handleChange}" @input="${this.handleInput}" @keydown="${this.handleKeyDown}"> ${d?i.qy` <slot name="clear-button"> <button part="clear-button" class="clear" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"> <slot name="clear-icon"> <wa-icon name="circle-xmark" library="system" variant="regular"></wa-icon> </slot> </button> </slot> `:""} ${this.passwordToggle&&!this.disabled?i.qy` <slot name="password-toggle-button"> <button part="password-toggle-button" class="password-toggle" type="button" aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" @click="${this.handlePasswordToggle}" tabindex="-1"> ${this.passwordVisible?i.qy` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `:i.qy` <slot name="show-password-icon"> <wa-icon name="eye" library="system" variant="regular"></wa-icon> </slot> `} </button> </slot> `:""} <slot name="end" part="end" class="end"></slot> </div> <slot id="hint" part="hint" name="hint" class="${(0,n.H)({"has-slotted":a})}" aria-hidden="${a?"false":"true"}">${this.hint}</slot> `}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new c.X(this,"hint","label"),this.localize=new w.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}};C.css=[m.A,b.A,g.A],C.shadowRootOptions={...f.q.shadowRootOptions,delegatesFocus:!0},k([(0,a.P)("input")],C.prototype,"input",2),k([(0,a.MZ)()],C.prototype,"title",2),k([(0,a.MZ)({reflect:!0})],C.prototype,"type",2),k([(0,a.wk)()],C.prototype,"value",1),k([(0,a.MZ)({attribute:"value",reflect:!0})],C.prototype,"defaultValue",2),k([(0,a.MZ)({reflect:!0})],C.prototype,"size",2),k([(0,p.w)("size")],C.prototype,"handleSizeChange",1),k([(0,a.MZ)({reflect:!0})],C.prototype,"appearance",2),k([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"pill",2),k([(0,a.MZ)()],C.prototype,"label",2),k([(0,a.MZ)({attribute:"hint"})],C.prototype,"hint",2),k([(0,a.MZ)({attribute:"with-clear",type:Boolean})],C.prototype,"withClear",2),k([(0,a.MZ)()],C.prototype,"placeholder",2),k([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"readonly",2),k([(0,a.MZ)({attribute:"password-toggle",type:Boolean})],C.prototype,"passwordToggle",2),k([(0,a.MZ)({attribute:"password-visible",type:Boolean})],C.prototype,"passwordVisible",2),k([(0,a.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],C.prototype,"withoutSpinButtons",2),k([(0,a.MZ)({type:Boolean,reflect:!0})],C.prototype,"required",2),k([(0,a.MZ)()],C.prototype,"pattern",2),k([(0,a.MZ)({type:Number})],C.prototype,"minlength",2),k([(0,a.MZ)({type:Number})],C.prototype,"maxlength",2),k([(0,a.MZ)()],C.prototype,"min",2),k([(0,a.MZ)()],C.prototype,"max",2),k([(0,a.MZ)()],C.prototype,"step",2),k([(0,a.MZ)()],C.prototype,"autocapitalize",2),k([(0,a.MZ)({type:Boolean,converter:{fromAttribute:e=>!(!e||"off"===e),toAttribute:e=>e?"on":"off"}})],C.prototype,"autocorrect",2),k([(0,a.MZ)()],C.prototype,"autocomplete",2),k([(0,a.MZ)({type:Boolean})],C.prototype,"autofocus",2),k([(0,a.MZ)()],C.prototype,"enterkeyhint",2),k([(0,a.MZ)({type:Boolean,converter:{fromAttribute:e=>!(!e||"false"===e),toAttribute:e=>e?"true":"false"}})],C.prototype,"spellcheck",2),k([(0,a.MZ)()],C.prototype,"inputmode",2),k([(0,a.MZ)({attribute:"with-label",type:Boolean})],C.prototype,"withLabel",2),k([(0,a.MZ)({attribute:"with-hint",type:Boolean})],C.prototype,"withHint",2),k([(0,p.w)("step",{waitUntilFirstUpdate:!0})],C.prototype,"handleStepChange",1),C=k([(0,a.EM)("wa-input")],C),C.disableWarning?.("change-in-update"),t()}catch(e){t(e)}})},96272(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`: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}`},99222(e,t,o){o.a(e,async function(e,i){try{o.d(t,{A:()=>$});var a=o(5124),n=o(22441),r=o(6412),s=o(34514),l=o(3495),d=o(9072),c=o(72979),h=o(1169),u=o(52906),p=o(93821),f=o(17081),b=o(27259),m=o(9395),w=o(717),g=o(17060),v=(o(97577),o(38625),o(55262)),y=o(8208),x=e([v,g]);[v,g]=x.then?(await x)():x;var k=Object.defineProperty,C=Object.getOwnPropertyDescriptor,E=(e,t,o,i)=>{for(var a,n=i>1?void 0:i?C(t,o):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,o,n):a(n))||n);return i&&n&&k(t,o,n),n};let $=class extends w.A{static isTreeItem(e){return e instanceof Element&&"treeitem"===e.getAttribute("role")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","treeitem"),this.setAttribute("tabindex","-1"),this.isNestedItem()&&(this.slot="children"),this.updateIndentation()}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?"auto":"0",this.isLeaf=!this.lazy&&0===this.getChildrenItems().length,this.handleExpandedChange()}async animateCollapse(e){this.dispatchEvent(new h.e);const t=(0,b.E9)(getComputedStyle(this.childrenContainer).getPropertyValue("--hide-duration"));await(0,b.i0)(this.childrenContainer,[{height:`${this.childrenContainer.scrollHeight}px`,opacity:"1",overflow:"hidden"},{height:"0",opacity:"0",overflow:"hidden"}],{duration:t,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}),this.animationGeneration===e&&(this.childrenContainer.hidden=!0,this.dispatchEvent(new d.w))}isNestedItem(){const e=this.parentElement;return!!e&&$.isTreeItem(e)}updateIndentation(){let e=0,t=this.parentElement;for(;t;)$.isTreeItem(t)&&e++,t=t.parentElement;this.style.setProperty("--indent",`calc(${e} * var(--indent-size, 2em))`)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&0===this.getChildrenItems().length}willUpdate(e){e.has("selected")&&!e.has("indeterminate")&&(this.indeterminate=!1)}async animateExpand(e){this.dispatchEvent(new u.T),this.childrenContainer.hidden=!1;const t=(0,b.E9)(getComputedStyle(this.childrenContainer).getPropertyValue("--show-duration"));await(0,b.i0)(this.childrenContainer,[{height:"0",opacity:"0",overflow:"hidden"},{height:`${this.childrenContainer.scrollHeight}px`,opacity:"1",overflow:"hidden"}],{duration:t,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}),this.animationGeneration===e&&(this.childrenContainer.style.height="auto",this.dispatchEvent(new c.V))}handleLoadingChange(){this.setAttribute("aria-busy",this.loading?"true":"false"),this.loading||this.animateExpand(this.animationGeneration)}handleDisabledChange(){this.customStates.set("disabled",this.disabled),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleExpandedState(){this.customStates.set("expanded",this.expanded)}handleIndeterminateStateChange(){this.customStates.set("indeterminate",this.indeterminate)}handleSelectedChange(){this.customStates.set("selected",this.selected),this.setAttribute("aria-selected",this.selected?"true":"false")}handleExpandedChange(){this.isLeaf?this.removeAttribute("aria-expanded"):this.setAttribute("aria-expanded",this.expanded?"true":"false")}handleExpandAnimation(){this.animationGeneration++;const e=this.animationGeneration;this.expanded?this.lazy?(this.loading=!0,this.dispatchEvent(new f.L)):this.animateExpand(e):this.animateCollapse(e)}handleLazyChange(){this.dispatchEvent(new p.d)}getChildrenItems({includeDisabled:e=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(t=>$.isTreeItem(t)&&(e||!t.disabled)):[]}render(){const e="rtl"===this.localize.dir(),t=!this.loading&&(!this.isLeaf||this.lazy);return a.qy` <div part="base" class="${(0,r.H)({"tree-item":!0,"tree-item-expanded":this.expanded,"tree-item-selected":this.selected,"tree-item-leaf":this.isLeaf,"tree-item-loading":this.loading,"tree-item-has-expand-button":t})}"> <div class="item" part="item"> <div class="indentation" part="indentation"></div> <div part="expand-button" class="${(0,r.H)({"expand-button":!0,"expand-button-visible":t})}" aria-hidden="true"> <slot class="expand-icon-slot" name="expand-icon"> ${(0,l.z)(this.loading,()=>a.qy` <wa-spinner part="spinner" exportparts="base:spinner__base"></wa-spinner> `,()=>a.qy` <wa-icon name="${e?"chevron-left":"chevron-right"}" library="system" variant="solid"></wa-icon> `)} </slot> <slot class="expand-icon-slot" name="collapse-icon"> <wa-icon name="${e?"chevron-left":"chevron-right"}" library="system" variant="solid"></wa-icon> </slot> </div> ${(0,l.z)(this.selectable,()=>a.qy` <wa-checkbox part="checkbox" exportparts="
base:checkbox__base,
control:checkbox__control,
checked-icon:checkbox__checked-icon,
indeterminate-icon:checkbox__indeterminate-icon,
label:checkbox__label
" class="checkbox" ?disabled="${this.disabled}" ?checked="${(0,s.V)(this.selected)}" ?indeterminate="${this.indeterminate}" tabindex="-1"></wa-checkbox> `)} <slot class="label" part="label"></slot> </div> <div class="children" part="children" role="group"> <slot name="children" @slotchange="${this.handleChildrenSlotChange}"></slot> </div> </div> `}constructor(){super(...arguments),this.localize=new g.c(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.preventSelection=!1,this.lazy=!1,this.animationGeneration=0}};$.css=y.A,E([(0,n.wk)()],$.prototype,"indeterminate",2),E([(0,n.wk)()],$.prototype,"isLeaf",2),E([(0,n.wk)()],$.prototype,"loading",2),E([(0,n.wk)()],$.prototype,"selectable",2),E([(0,n.MZ)({type:Boolean,reflect:!0})],$.prototype,"expanded",2),E([(0,n.MZ)({type:Boolean,reflect:!0})],$.prototype,"selected",2),E([(0,n.MZ)({type:Boolean,reflect:!0})],$.prototype,"disabled",2),E([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"prevent-selection"})],$.prototype,"preventSelection",2),E([(0,n.MZ)({type:Boolean,reflect:!0})],$.prototype,"lazy",2),E([(0,n.P)("slot:not([name])")],$.prototype,"defaultSlot",2),E([(0,n.P)("slot[name=children]")],$.prototype,"childrenSlot",2),E([(0,n.P)(".item")],$.prototype,"itemElement",2),E([(0,n.P)(".children")],$.prototype,"childrenContainer",2),E([(0,n.P)(".expand-button slot")],$.prototype,"expandButtonSlot",2),E([(0,m.w)("loading",{waitUntilFirstUpdate:!0})],$.prototype,"handleLoadingChange",1),E([(0,m.w)("disabled")],$.prototype,"handleDisabledChange",1),E([(0,m.w)("expanded")],$.prototype,"handleExpandedState",1),E([(0,m.w)("indeterminate")],$.prototype,"handleIndeterminateStateChange",1),E([(0,m.w)("selected")],$.prototype,"handleSelectedChange",1),E([(0,m.w)("expanded",{waitUntilFirstUpdate:!0})],$.prototype,"handleExpandedChange",1),E([(0,m.w)("expanded",{waitUntilFirstUpdate:!0})],$.prototype,"handleExpandAnimation",1),E([(0,m.w)("lazy",{waitUntilFirstUpdate:!0})],$.prototype,"handleLazyChange",1),$=E([(0,n.EM)("wa-tree-item")],$),$.disableWarning?.("change-in-update"),i()}catch(e){i(e)}})},8208(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`:host{--indent:0px;--show-duration:200ms;--hide-duration:200ms;display:block;color:var(--wa-color-text-normal);outline:0;z-index:0}:host(:focus){outline:0}slot:not([name])::slotted(wa-icon){margin-inline-end:.5em}.tree-item{position:relative;display:flex;align-items:stretch;flex-direction:column;cursor:default;user-select:none;-webkit-user-select:none}.checkbox{line-height:var(--wa-form-control-value-line-height);pointer-events:none}.checkbox,.expand-button,.label{font-family:inherit;font-size:inherit;font-weight:inherit}.checkbox::part(base){display:flex;align-items:center}.indentation{display:block;width:var(--indent);flex-shrink:0}.expand-button{display:flex;align-items:center;justify-content:center;color:var(--wa-color-text-quiet);width:2em;height:2em;flex-shrink:0;cursor:pointer}.expand-button{transition:rotate var(--wa-transition-normal) var(--wa-transition-easing)}.tree-item-expanded .expand-button{rotate:90deg}.tree-item-expanded:dir(rtl) .expand-button{rotate:-90deg}.tree-item-expanded:not(.tree-item-loading) slot[name=expand-icon],.tree-item:not(.tree-item-expanded) slot[name=collapse-icon]{display:none}.tree-item:not(.tree-item-has-expand-button):not(.tree-item-loading) .expand-icon-slot{display:none}.tree-item:not(.tree-item-has-expand-button):not(.tree-item-loading) .expand-button{cursor:default}.tree-item-loading .expand-icon-slot wa-icon{display:none}.expand-button-visible{cursor:pointer}.item{display:flex;align-items:center;border-inline-start:solid 0.1875em transparent}:host([disabled]) .item{opacity:.5;outline:0;cursor:not-allowed}:host(:focus-visible) .item{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset);z-index:2}:host(:not([aria-disabled=true])) .tree-item-selected .item{background-color:var(--wa-color-neutral-fill-quiet);border-inline-start-color:var(--wa-color-brand-fill-loud)}:host(:not([aria-disabled=true])) .expand-button{color:var(--wa-color-text-quiet)}.label{display:flex;align-items:center;transition:color var(--wa-transition-normal) var(--wa-transition-easing)}.children{display:block}.children{position:relative}.children::before{content:"";position:absolute;top:var(--indent-guide-offset);bottom:var(--indent-guide-offset);inset-inline-start:calc(0.1875em + var(--indent) + 1em - (var(--indent-guide-width)/ 2));border-inline-end:var(--indent-guide-width) var(--indent-guide-style) var(--indent-guide-color);z-index:1}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item-selected .item{outline:dashed 1px SelectedItem}}`},73984(e,t,o){o.a(e,async function(e,t){try{o(74423),o(18111),o(81148),o(22489),o(7588),o(61701),o(13579),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var i=o(5124),a=o(22441),n=o(23636),r=o(95010),s=o(9395),l=o(717),d=o(17060),c=o(99222),h=o(10410),u=e([d,c]);[d,c]=u.then?(await u)():u;var p=Object.defineProperty,f=Object.getOwnPropertyDescriptor,b=(e,t,o,i)=>{for(var a,n=i>1?void 0:i?f(t,o):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,o,n):a(n))||n);return i&&n&&p(t,o,n),n};function m(e,t=!1){function o(e){const t=e.getChildrenItems({includeDisabled:!1});if(t.length){const o=t.every(e=>e.selected),i=t.every(e=>!e.selected&&!e.indeterminate);e.selected=o,e.indeterminate=!o&&!i}}!function e(i){for(const o of i.getChildrenItems())o.selected=t?i.selected||o.selected:!o.disabled&&i.selected,e(o);t&&o(i)}(e),function e(t){const i=t.parentElement;c.A.isTreeItem(i)&&(o(i),e(i))}(e)}let w=class extends l.A{async connectedCallback(){super.connectedCallback(),i.S$||(this.setAttribute("role","tree"),this.setAttribute("tabindex","0"),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0}))}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}getExpandButtonIcon(e){const t=("expand"===e?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){const o=t.cloneNode(!0);return[o,...o.querySelectorAll("[id]")].forEach(e=>e.removeAttribute("id")),o.setAttribute("data-default",""),o.slot=`${e}-icon`,o}return null}selectItem(e){const t=[...this.selectedItems];if("multiple"===this.selection)e.selected=!e.selected,e.lazy&&(e.expanded=!0),m(e);else if("single"!==this.selection&&!e.isLeaf||e.preventSelection)("leaf"===this.selection||e.preventSelection)&&(e.expanded=!e.expanded);else{const t=this.getAllTreeItems();for(const o of t)o.selected=o===e}const o=this.selectedItems;(t.length!==o.length||o.some(e=>!t.includes(e)))&&Promise.all(o.map(e=>e.updateComplete)).then(()=>{this.dispatchEvent(new n.H({selection:o}))})}getAllTreeItems(){return[...this.querySelectorAll("wa-tree-item")]}focusItem(e){e?.focus()}handleKeyDown(e){if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Home","End","Enter"," "].includes(e.key))return;if(e.composedPath().some(e=>["input","textarea"].includes(e?.tagName?.toLowerCase())))return;const t=this.getFocusableItems(),o=this.matches(":dir(ltr)"),i="rtl"===this.localize.dir();if(t.length>0){e.preventDefault();const a=t.findIndex(e=>e.matches(":focus")),n=t[a],s=e=>{const o=t[(0,r.q)(e,0,t.length-1)];this.focusItem(o)},l=e=>{n.expanded=e};"ArrowDown"===e.key?s(a+1):"ArrowUp"===e.key?s(a-1):o&&"ArrowRight"===e.key||i&&"ArrowLeft"===e.key?!n||n.disabled||n.expanded||n.isLeaf&&!n.lazy?s(a+1):l(!0):o&&"ArrowLeft"===e.key||i&&"ArrowRight"===e.key?!n||n.disabled||n.isLeaf||!n.expanded?s(a-1):l(!1):"Home"===e.key?s(0):"End"===e.key?s(t.length-1):"Enter"!==e.key&&" "!==e.key||n.disabled||this.selectItem(n)}}handleClick(e){const t=e.target,o=t.closest("wa-tree-item"),i=e.composedPath().some(e=>e?.classList?.contains("expand-button"));o&&!o.disabled&&t===this.clickTarget&&(i?o.expanded=!o.expanded:this.selectItem(o))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){const e="multiple"===this.selection,t=this.getAllTreeItems();this.setAttribute("aria-multiselectable",e?"true":"false");for(const o of t)o.updateComplete.then(()=>{o.selectable=e});e&&(await this.updateComplete,[...this.querySelectorAll(":scope > wa-tree-item")].forEach(e=>{e.updateComplete.then(()=>{m(e,!0)})}))}get selectedItems(){return this.getAllTreeItems().filter(e=>e.selected)}getFocusableItems(){const e=this.getAllTreeItems(),t=new Set;return e.filter(e=>{if(e.disabled)return!1;const o=e.parentElement?.closest("[role=treeitem]");return o&&(!o.expanded||o.loading||t.has(o))&&t.add(e),!t.has(e)})}render(){return i.qy` <div part="base" class="tree" @click="${this.handleClick}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}"> <slot @slotchange="${this.handleSlotChange}"></slot> <span hidden aria-hidden="true"><slot name="expand-icon"></slot></span> <span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span> </div> `}constructor(){super(),this.selection="single",this.clickTarget=null,this.localize=new d.c(this),this.initTreeItem=e=>{e.updateComplete.then(()=>{e.selectable="multiple"===this.selection,["expand","collapse"].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(t=>{const o=e.querySelector(`[slot="${t}-icon"]`),i=this.getExpandButtonIcon(t);i&&(null===o?e.append(i):o.hasAttribute("data-default")&&o.replaceWith(i))})})},this.handleTreeChanged=e=>{for(const t of e){const e=[...t.addedNodes].filter(c.A.isTreeItem),o=[...t.removedNodes].filter(c.A.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&o.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{const t=e.relatedTarget;t&&this.contains(t)||(this.tabIndex=0)},this.handleFocusIn=e=>{const t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),c.A.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},i.S$||(this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("wa-lazy-change",this.handleSlotChange))}};w.css=h.A,b([(0,a.P)("slot:not([name])")],w.prototype,"defaultSlot",2),b([(0,a.P)("slot[name=expand-icon]")],w.prototype,"expandedIconSlot",2),b([(0,a.P)("slot[name=collapse-icon]")],w.prototype,"collapsedIconSlot",2),b([(0,a.MZ)()],w.prototype,"selection",2),b([(0,s.w)("selection")],w.prototype,"handleSelectionChange",1),w=b([(0,a.EM)("wa-tree")],w),t()}catch(g){t(g)}})},10410(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`:host{--indent-guide-color:var(--wa-color-surface-border);--indent-guide-offset:0;--indent-guide-style:solid;--indent-guide-width:0;--indent-size:2em;display:block}`},9072(e,t,o){o.d(t,{w:()=>i});class i extends Event{constructor(){super("wa-after-collapse",{bubbles:!0,cancelable:!1,composed:!0})}}},72979(e,t,o){o.d(t,{V:()=>i});class i extends Event{constructor(){super("wa-after-expand",{bubbles:!0,cancelable:!1,composed:!0})}}},37541(e,t,o){o.d(t,{I:()=>i});class i extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},1169(e,t,o){o.d(t,{e:()=>i});class i extends Event{constructor(){super("wa-collapse",{bubbles:!0,cancelable:!1,composed:!0})}}},52906(e,t,o){o.d(t,{T:()=>i});class i extends Event{constructor(){super("wa-expand",{bubbles:!0,cancelable:!1,composed:!0})}}},93821(e,t,o){o.d(t,{d:()=>i});class i extends Event{constructor(){super("wa-lazy-change",{bubbles:!0,cancelable:!1,composed:!0})}}},17081(e,t,o){o.d(t,{L:()=>i});class i extends Event{constructor(){super("wa-lazy-load",{bubbles:!0,cancelable:!1,composed:!0})}}},23636(e,t,o){o.d(t,{H:()=>i});class i extends Event{constructor(e){super("wa-selection-change",{bubbles:!0,cancelable:!1,composed:!0}),this.detail=e}}},31247(e,t,o){o.d(t,{v:()=>i});o(18111),o(22489),o(61701);function i(e){return e.split(" ").map(e=>e.trim()).filter(e=>""!==e)}},4444(e,t,o){o.d(t,{JG:()=>a,Rt:()=>r,I7:()=>n});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);const i=new Set;function a(e){if(i.add(e),!document.documentElement.classList.contains("wa-scroll-lock")){const e=function(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}()+function(){const e=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(e)||!e?0:e}();let t=getComputedStyle(document.documentElement).scrollbarGutter;t&&"auto"!==t||(t="stable"),e<2&&(t=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",t),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${e}px`)}}function n(e){i.delete(e),0===i.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function r(e,t,o="vertical",i="smooth"){const a=function(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}(e,t),n=a.top+t.scrollTop,r=a.left+t.scrollLeft,s=t.scrollLeft,l=t.scrollLeft+t.offsetWidth,d=t.scrollTop,c=t.scrollTop+t.offsetHeight;"horizontal"!==o&&"both"!==o||(r<s?t.scrollTo({left:r,behavior:i}):r+e.clientWidth>l&&t.scrollTo({left:r-t.offsetWidth+e.clientWidth,behavior:i})),"vertical"!==o&&"both"!==o||(n<d?t.scrollTo({top:n,behavior:i}):n+e.clientHeight>c&&t.scrollTo({top:n-t.offsetHeight+e.clientHeight,behavior:i}))}},28225(e,t,o){o.d(t,{U:()=>i});o(74423);function i(e,t){const o=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||o||setTimeout(()=>{e.defaultPrevented||e.isComposing||function(e){let t=null;"form"in e&&(t=e.form);!t&&"getForm"in e&&(t=e.getForm());if(!t)return;const o=[...t.elements];if(1===o.length)return void t.requestSubmit(null);const i=o.find(e=>"submit"===e.type&&!e.matches(":disabled"));if(!i)return;["input","button"].includes(i.localName)?t.requestSubmit(i):i.click()}(t)})}},49546(e,t,o){o.d(t,{Y:()=>i});o(44114);const i=(e={})=>{let{validationElement:t,validationProperty:o}=e;t||(t=Object.assign(document.createElement("input"),{required:!0})),o||(o="value");const i={observedAttributes:["required"],message:t.validationMessage,checkValidity(e){const t={message:"",isValid:!0,invalidKeys:[]};if(!(e.required??e.hasAttribute("required")))return t;return!e[o]&&(t.message="function"==typeof i.message?i.message(e):i.message||"",t.isValid=!1,t.invalidKeys.push("valueMissing")),t}};return i}},15477(e,t,o){o.d(t,{A:()=>i});var i=o(5124).AH`:host{display:flex;flex-direction:column}[part~=form-control]{display:contents}:is([part~=form-control-label],[part~=label]).has-label,:is([part~=form-control-label],[part~=label]):has(:not(:empty)){display:inline-flex;color:var(--wa-form-control-label-color);font-weight:var(--wa-form-control-label-font-weight);line-height:var(--wa-form-control-label-line-height);margin-block-end:0.5em}:host([required]) :is([part~=form-control-label],[part~=label])::after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset);color:var(--wa-form-control-required-content-color)}[part~=hint]{display:block;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller)}[part~=hint]:not(.has-slotted,.has-hint){display:none}`},88696(e,t,o){o.d(t,{P:()=>n});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var i=o(37540),a=o(42017);class n{handleChanges(e){this.value=this.callback?.(e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}target(e){return r(this,e)}constructor(e,{target:t,config:o,callback:i,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(t??e),this.l=o,this.o=a??this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver(e=>{this.handleChanges(e),this.h.requestUpdate()}),e.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const r=(0,a.u$)(class extends i.Kq{render(e,t){}update(e,[t,o]){this.controller=t,this.part=e,this.observe=o,!1===o?(t.unobserve(e.element),this.observing=!1):!1===this.observing&&(t.observe(e.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){!1!==this.observe&&!1===this.observing&&(this.controller?.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}})},99731(e,t,o){o.d(t,{Y:()=>d});var i=o(62826),a=o(22441),n=(o(18111),o(22489),o(20116),o(5124)),r=o(99591);class s extends n.WF{get chips(){return this.childElements.filter(e=>e instanceof r.v)}render(){return n.qy`<slot @slotchange="${this.updateTabIndices}"></slot>`}handleKeyDown(e){const t="ArrowLeft"===e.key,o="ArrowRight"===e.key,i="Home"===e.key,a="End"===e.key;if(!(t||o||i||a))return;const{chips:n}=this;if(n.length<2)return;if(e.preventDefault(),i||a){return n[i?0:n.length-1].focus({trailing:a}),void this.updateTabIndices()}const r="rtl"===getComputedStyle(this).direction?t:o,s=n.find(e=>e.matches(":focus-within"));if(!s){return(r?n[0]:n[n.length-1]).focus({trailing:!r}),void this.updateTabIndices()}const l=n.indexOf(s);let d=r?l+1:l-1;for(;d!==l;){d>=n.length?d=0:d<0&&(d=n.length-1);const e=n[d];if(!e.disabled||e.alwaysFocusable){e.focus({trailing:!r}),this.updateTabIndices();break}r?d++:d--}}updateTabIndices(){const{chips:e}=this;let t;for(const o of e){const e=o.alwaysFocusable||!o.disabled;o.matches(":focus-within")&&e?t=o:(e&&!t&&(t=o),o.tabIndex=-1)}t&&(t.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),n.S$||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}}(0,i.Cg)([(0,a.KN)()],s.prototype,"childElements",void 0);const l=n.AH`:host{display:flex;flex-wrap:wrap;gap:8px}`;let d=class extends s{};d.styles=[l],d=(0,i.Cg)([(0,a.EM)("md-chip-set")],d)},27525(e,t,o){function i(e,t=p){const o=s(e,t);return o&&(o.tabIndex=0,o.focus()),o}function a(e,t=p){const o=l(e,t);return o&&(o.tabIndex=0,o.focus()),o}function n(e,t=p){const o=r(e,t);return o&&(o.item.tabIndex=-1),o}function r(e,t=p){for(let o=0;o<e.length;o++){const i=e[o];if(0===i.tabIndex&&t(i))return{item:i,index:o}}return null}function s(e,t=p){for(const o of e)if(t(o))return o;return null}function l(e,t=p){for(let o=e.length-1;o>=0;o--){const i=e[o];if(t(i))return i}return null}function d(e,t,o=p,a=!0){if(t){const i=function(e,t,o=p,i=!0){for(let a=1;a<e.length;a++){const n=(a+t)%e.length;if(n<t&&!i)return null;const r=e[n];if(o(r))return r}return e[t]?e[t]:null}(e,t.index,o,a);return i&&(i.tabIndex=0,i.focus()),i}return i(e,o)}function c(e,t,o=p,i=!0){if(t){const a=function(e,t,o=p,i=!0){for(let a=1;a<e.length;a++){const n=(t-a+e.length)%e.length;if(n>t&&!i)return null;const r=e[n];if(o(r))return r}return e[t]?e[t]:null}(e,t.index,o,i);return a&&(a.tabIndex=0,a.focus()),a}return a(e,o)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function u(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(e){return!e.disabled}o.d(t,{A6:()=>r,Ex:()=>l,RN:()=>h,RZ:()=>a,c7:()=>s,cG:()=>u,u9:()=>c,ub:()=>n,wm:()=>d,zT:()=>i})},3495(e,t,o){function i(e,t,o){return e?t(e):o?.(e)}o.d(t,{z:()=>i})},34514(e,t,o){o.d(t,{V:()=>r});var i=o(5055),a=o(42017),n=o(63937);const r=(0,a.u$)(class extends a.WL{render(e){return e}update(e,[t]){if(t===i.c0||t===i.s6)return t;const o=e.element,r=e.name;if(e.type===a.OA.PROPERTY){if(t===o[r])return i.c0}else if(e.type===a.OA.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(r))return i.c0}else if(e.type===a.OA.ATTRIBUTE&&o.getAttribute(r)===t+"")return i.c0;return(0,n.mY)(e),t}constructor(e){if(super(e),e.type!==a.OA.PROPERTY&&e.type!==a.OA.ATTRIBUTE&&e.type!==a.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,n.Rt)(e))throw Error("`live` bindings can only contain a single expression")}})},75751(e,t,o){o.d(t,{u:()=>s});o(45367),o(92731);var i=o(5055),a=o(42017),n=o(63937);const r=(e,t,o)=>{const i=new Map;for(let a=t;a<=o;a++)i.set(e[a],a);return i},s=(0,a.u$)(class extends a.WL{dt(e,t,o){let i;void 0===o?o=t:void 0!==t&&(i=t);const a=[],n=[];let r=0;for(const t of e)a[r]=i?i(t,r):r,n[r]=o(t,r),r++;return{values:n,keys:a}}render(e,t,o){return this.dt(e,t,o).values}update(e,[t,o,a]){const s=(0,n.cN)(e),{values:l,keys:d}=this.dt(t,o,a);if(!Array.isArray(s))return this.ut=d,l;const c=this.ut??=[],h=[];let u,p,f=0,b=s.length-1,m=0,w=l.length-1;for(;f<=b&&m<=w;)if(null===s[f])f++;else if(null===s[b])b--;else if(c[f]===d[m])h[m]=(0,n.lx)(s[f],l[m]),f++,m++;else if(c[b]===d[w])h[w]=(0,n.lx)(s[b],l[w]),b--,w--;else if(c[f]===d[w])h[w]=(0,n.lx)(s[f],l[w]),(0,n.Dx)(e,h[w+1],s[f]),f++,w--;else if(c[b]===d[m])h[m]=(0,n.lx)(s[b],l[m]),(0,n.Dx)(e,s[f],s[b]),b--,m++;else if(void 0===u&&(u=r(d,m,w),p=r(c,f,b)),u.has(c[f]))if(u.has(c[b])){const t=p.get(d[m]),o=void 0!==t?s[t]:null;if(null===o){const t=(0,n.Dx)(e,s[f]);(0,n.lx)(t,l[m]),h[m]=t}else h[m]=(0,n.lx)(o,l[m]),(0,n.Dx)(e,s[f],o),s[t]=null;m++}else(0,n.KO)(s[b]),b--;else(0,n.KO)(s[f]),f++;for(;m<=w;){const t=(0,n.Dx)(e,h[w+1]);(0,n.lx)(t,l[m]),h[m++]=t}for(;f<=b;){const e=s[f++];null!==e&&(0,n.KO)(e)}return this.ut=d,(0,n.mY)(e,h),i.c0}constructor(e){if(super(e),e.type!==a.OA.CHILD)throw Error("repeat() can only be used in text expressions")}})}};