`),(0,a.$)(this.getSurfaceClasses()),(0,s.V)(this.menuPositionController.surfaceStyles),"popover"===this.positioning?"manual":r.Ld,this.renderElevation(),this.renderMenuItems())}renderMenuItems(){return(0,r.dy)(y||(y=E``),this.onCloseMenu,this.onDeactivateItems,this.onRequestActivation,this.handleDeactivateTypeahead,this.handleActivateTypeahead,this.handleStayOpenOnFocusout,this.handleCloseOnFocusout,this.listController.onSlotchange)}renderElevation(){return(0,r.dy)(w||(w=E``))}getSurfaceClasses(){return{open:this.open,fixed:"fixed"===this.positioning,"has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&(0,p.kE)(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const o=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const i=this.openCloseAnimationSignal.start(),n=e.offsetHeight,r="UP"===o,a=this.items,s=250/a.length,d=e.animate([{height:"0px"},{height:`${n}px`}],{duration:500,easing:l.Xt.EMPHASIZED}),c=t.animate([{transform:r?`translateY(-${n}px)`:""},{transform:""}],{duration:500,easing:l.Xt.EMPHASIZED}),p=e.animate([{opacity:0},{opacity:1}],50),h=[];for(let l=0;l{e.classList.toggle("md-menu-hidden",!1)})),h.push([e,t])}let u=e=>{};const m=new Promise((e=>{u=e}));return i.addEventListener("abort",(()=>{d.cancel(),c.cancel(),p.cancel(),h.forEach((([e,t])=>{e.classList.toggle("md-menu-hidden",!1),t.cancel()})),u(!0)})),d.addEventListener("finish",(()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),u(!1)})),await m}animateClose(){let e;const t=new Promise((t=>{e=t})),o=this.surfaceEl,i=this.slotEl;if(!o||!i)return e(!1),t;const n="UP"===this.openDirection;this.dispatchEvent(new Event("closing")),o.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),a=o.offsetHeight,s=this.items,d=150,c=50/s.length,p=o.animate([{height:`${a}px`},{height:.35*a+"px"}],{duration:d,easing:l.Xt.EMPHASIZED_ACCELERATE}),h=i.animate([{transform:""},{transform:n?`translateY(-${.65*a}px)`:""}],{duration:d,easing:l.Xt.EMPHASIZED_ACCELERATE}),u=o.animate([{opacity:1},{opacity:0}],{duration:50,delay:100}),m=[];for(let l=0;l{e.classList.toggle("md-menu-hidden",!0)})),m.push([e,t])}return r.addEventListener("abort",(()=>{p.cancel(),h.cancel(),u.cancel(),m.forEach((([e,t])=>{t.cancel(),e.classList.toggle("md-menu-hidden",!1)})),e(!1)})),p.addEventListener("finish",(()=>{o.classList.toggle("animating",!1),m.forEach((([e])=>{e.classList.toggle("md-menu-hidden",!1)})),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)})),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1;this.slotItems.forEach((e=>{var t;null===(t=e.close)||void 0===t||t.call(e)}))}show(){this.open=!0}activateNextItem(){var e;return null!==(e=this.listController.activateNextItem())&&void 0!==e?e:null}activatePreviousItem(){var e;return null!==(e=this.listController.activatePreviousItem())&&void 0!==e?e:null}reposition(){this.open&&this.menuPositionController.position()}}(0,i.gn)([(0,n.IO)(".menu")],R.prototype,"surfaceEl",void 0),(0,i.gn)([(0,n.IO)("slot")],R.prototype,"slotEl",void 0),(0,i.gn)([(0,n.Cb)()],R.prototype,"anchor",void 0),(0,i.gn)([(0,n.Cb)()],R.prototype,"positioning",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean})],R.prototype,"quick",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,attribute:"has-overflow"})],R.prototype,"hasOverflow",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,reflect:!0})],R.prototype,"open",void 0),(0,i.gn)([(0,n.Cb)({type:Number,attribute:"x-offset"})],R.prototype,"xOffset",void 0),(0,i.gn)([(0,n.Cb)({type:Number,attribute:"y-offset"})],R.prototype,"yOffset",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,attribute:"no-horizontal-flip"})],R.prototype,"noHorizontalFlip",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,attribute:"no-vertical-flip"})],R.prototype,"noVerticalFlip",void 0),(0,i.gn)([(0,n.Cb)({type:Number,attribute:"typeahead-delay"})],R.prototype,"typeaheadDelay",void 0),(0,i.gn)([(0,n.Cb)({attribute:"anchor-corner"})],R.prototype,"anchorCorner",void 0),(0,i.gn)([(0,n.Cb)({attribute:"menu-corner"})],R.prototype,"menuCorner",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,attribute:"stay-open-on-outside-click"})],R.prototype,"stayOpenOnOutsideClick",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,attribute:"stay-open-on-focusout"})],R.prototype,"stayOpenOnFocusout",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,attribute:"skip-restore-focus"})],R.prototype,"skipRestoreFocus",void 0),(0,i.gn)([(0,n.Cb)({attribute:"default-focus"})],R.prototype,"defaultFocus",void 0),(0,i.gn)([(0,n.Cb)({type:Boolean,attribute:"no-navigation-wrap"})],R.prototype,"noNavigationWrap",void 0),(0,i.gn)([(0,n.NH)({flatten:!0})],R.prototype,"slotItems",void 0),(0,i.gn)([(0,n.SB)()],R.prototype,"typeaheadActive",void 0);let A;const I=(0,r.iv)(A||(A=(e=>e)`:host{--md-elevation-level:var(--md-menu-container-elevation, 2);--md-elevation-shadow-color:var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape,var(--md-sys-shape-corner-extra-small,4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:0;box-sizing:border-box;background-color:var(--md-menu-container-color,var(--md-sys-color-surface-container,#f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:8px}.has-overflow:not([popover]) .items{overflow:visible}.animating .items,.has-overflow.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors:active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}}`));let k=class extends R{};k.styles=[I],k=(0,i.gn)([(0,n.Mo)("md-menu")],k)},23111:function(e,t,o){o.d(t,{M:()=>v});var i=o("9065"),n=o("50778"),r=(o("71695"),o("40251"),o("47021"),o("57243")),a=o("35359"),s=o("19799"),l=o("43921");let d,c=e=>e;var p,h;(h=p||(p={}))[h.INACTIVE=0]="INACTIVE",h[h.TOUCH_DELAY=1]="TOUCH_DELAY",h[h.HOLDING=2]="HOLDING",h[h.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK";const u=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],m=r.sk?null:window.matchMedia("(forced-colors: active)");class f extends r.oi{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=p.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new s.J(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return(0,r.dy)(d||(d=c``),(0,a.$)(e))}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==p.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state!==p.HOLDING)return this.state===p.TOUCH_DELAY?(this.state=p.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=p.WAITING_FOR_CLICK}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e))return this.state=p.WAITING_FOR_CLICK,void this.startPressAnimation(e);this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=p.TOUCH_DELAY,await new Promise((e=>{setTimeout(e,150)})),this.state===p.TOUCH_DELAY&&(this.state=p.HOLDING,this.startPressAnimation(e)))}}handleClick(){this.disabled||(this.state!==p.WAITING_FOR_CLICK?this.state===p.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),o=Math.max(e,t),i=Math.max(.35*o,75),n=Math.floor(.2*o),r=Math.sqrt(t**2+e**2)+10;this.initialSize=n,this.rippleScale=""+(r+i)/n,this.rippleSize=`${n}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:o}=window,{left:i,top:n}=this.getBoundingClientRect(),r=t+i,a=o+n,{pageX:s,pageY:l}=e;return{x:s-r,y:l-a}}getTranslationCoordinates(e){const{height:t,width:o}=this.getBoundingClientRect(),i={x:(o-this.initialSize)/2,y:(t-this.initialSize)/2};let n;return n=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:o/2,y:t/2},n={x:n.x-this.initialSize/2,y:n.y-this.initialSize/2},{startPoint:n,endPoint:i}}startPressAnimation(e){var t;if(!this.mdRoot)return;this.pressed=!0,null===(t=this.growAnimation)||void 0===t||t.cancel(),this.determineRippleSize();const{startPoint:o,endPoint:i}=this.getTranslationCoordinates(e),n=`${o.x}px, ${o.y}px`,r=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${n}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:l.Xt.STANDARD,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=p.INACTIVE;const e=this.growAnimation;let t=1/0;"number"==typeof(null==e?void 0:e.currentTime)?t=e.currentTime:null!=e&&e.currentTime&&(t=e.currentTime.to("ms").value),t>=225?this.pressed=!1:(await new Promise((e=>{setTimeout(e,225-t)})),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if("pointerenter"===e.type||"pointerleave"===e.type)return!this.isTouch(e);const t=1===e.buttons;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:o,left:i,bottom:n,right:r}=this.getBoundingClientRect();return e>=i&&e<=r&&t>=o&&t<=n}isTouch({pointerType:e}){return"touch"===e}async handleEvent(e){if(null==m||!m.matches)switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e)}}onControlChange(e,t){if(!r.sk)for(const o of u)null==e||e.removeEventListener(o,this),null==t||t.addEventListener(o,this)}}(0,i.gn)([(0,n.Cb)({type:Boolean,reflect:!0})],f.prototype,"disabled",void 0),(0,i.gn)([(0,n.SB)()],f.prototype,"hovered",void 0),(0,i.gn)([(0,n.SB)()],f.prototype,"pressed",void 0),(0,i.gn)([(0,n.IO)(".surface")],f.prototype,"mdRoot",void 0);let b;const g=(0,r.iv)(b||(b=(e=>e)`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors:active){:host{display:none}}.surface,:host{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:transparent}.surface::after,.surface::before{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color,var(--md-sys-color-on-surface,#1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side,var(--md-ripple-pressed-color,var(--md-sys-color-on-surface,#1d1b20)) max(100% - 70px,65%),transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color,var(--md-sys-color-on-surface,#1d1b20));opacity:var(--md-ripple-hover-opacity, .08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, .12);transition-duration:105ms}`));let v=class extends f{};v.styles=[g],v=(0,i.gn)([(0,n.Mo)("md-ripple")],v)},75351:function(e,t,o){o.d(t,{Ud:function(){return h}});o(63721),o(52247),o(71695),o(52805),o(43451),o(19423),o(40251),o(69235),o(12385),o(19134),o(5740),o(11740),o(46692),o(39527),o(13334),o(34595),o(47021);const i=Symbol("Comlink.proxy"),n=Symbol("Comlink.endpoint"),r=Symbol("Comlink.releaseProxy"),a=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),l=e=>"object"==typeof e&&null!==e||"function"==typeof e,d=new Map([["proxy",{canHandle:e=>l(e)&&e[i],serialize(e){const{port1:t,port2:o}=new MessageChannel;return c(e,t),[o,[o]]},deserialize(e){return e.start(),h(e)}}],["throw",{canHandle:e=>l(e)&&s in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function c(e,t=globalThis,o=["*"]){t.addEventListener("message",(function n(r){if(!r||!r.data)return;if(!function(e,t){for(const o of e){if(t===o||"*"===o)return!0;if(o instanceof RegExp&&o.test(t))return!0}return!1}(o,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);const{id:l,type:d,path:h}=Object.assign({path:[]},r.data),u=(r.data.argumentList||[]).map(w);let m;try{const t=h.slice(0,-1).reduce(((e,t)=>e[t]),e),o=h.reduce(((e,t)=>e[t]),e);switch(d){case"GET":m=o;break;case"SET":t[h.slice(-1)[0]]=w(r.data.value),m=!0;break;case"APPLY":m=o.apply(t,u);break;case"CONSTRUCT":m=function(e){return Object.assign(e,{[i]:!0})}(new o(...u));break;case"ENDPOINT":{const{port1:t,port2:o}=new MessageChannel;c(e,o),m=function(e,t){return x.set(e,t),e}(t,[t])}break;case"RELEASE":m=void 0;break;default:return}}catch(f){m={value:f,[s]:0}}Promise.resolve(m).catch((e=>({value:e,[s]:0}))).then((o=>{const[i,r]=y(o);t.postMessage(Object.assign(Object.assign({},i),{id:l}),r),"RELEASE"===d&&(t.removeEventListener("message",n),p(t),a in e&&"function"==typeof e[a]&&e[a]())})).catch((e=>{const[o,i]=y({value:new TypeError("Unserializable return value"),[s]:0});t.postMessage(Object.assign(Object.assign({},o),{id:l}),i)}))})),t.start&&t.start()}function p(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function h(e,t){const o=new Map;return e.addEventListener("message",(function(e){const{data:t}=e;if(!t||!t.id)return;const i=o.get(t.id);if(i)try{i(t)}finally{o.delete(t.id)}})),g(e,o,[],t)}function u(e){if(e)throw new Error("Proxy has been released and is not useable")}function m(e){return E(e,new Map,{type:"RELEASE"}).then((()=>{p(e)}))}const f=new WeakMap,b="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(f.get(e)||0)-1;f.set(e,t),0===t&&m(e)}));function g(e,t,o=[],i=function(){}){let a=!1;const s=new Proxy(i,{get(i,n){if(u(a),n===r)return()=>{!function(e){b&&b.unregister(e)}(s),m(e),t.clear(),a=!0};if("then"===n){if(0===o.length)return{then:()=>s};const i=E(e,t,{type:"GET",path:o.map((e=>e.toString()))}).then(w);return i.then.bind(i)}return g(e,t,[...o,n])},set(i,n,r){u(a);const[s,l]=y(r);return E(e,t,{type:"SET",path:[...o,n].map((e=>e.toString())),value:s},l).then(w)},apply(i,r,s){u(a);const l=o[o.length-1];if(l===n)return E(e,t,{type:"ENDPOINT"}).then(w);if("bind"===l)return g(e,t,o.slice(0,-1));const[d,c]=v(s);return E(e,t,{type:"APPLY",path:o.map((e=>e.toString())),argumentList:d},c).then(w)},construct(i,n){u(a);const[r,s]=v(n);return E(e,t,{type:"CONSTRUCT",path:o.map((e=>e.toString())),argumentList:r},s).then(w)}});return function(e,t){const o=(f.get(t)||0)+1;f.set(t,o),b&&b.register(e,t,e)}(s,e),s}function v(e){const t=e.map(y);return[t.map((e=>e[0])),(o=t.map((e=>e[1])),Array.prototype.concat.apply([],o))];var o}const x=new WeakMap;function y(e){for(const[t,o]of d)if(o.canHandle(e)){const[i,n]=o.serialize(e);return[{type:"HANDLER",name:t,value:i},n]}return[{type:"RAW",value:e},x.get(e)||[]]}function w(e){switch(e.type){case"HANDLER":return d.get(e.name).deserialize(e.value);case"RAW":return e.value}}function E(e,t,o,i){return new Promise((n=>{const r=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(r,n),e.start&&e.start(),e.postMessage(Object.assign({id:r},o),i)}))}},85601:function(e,t,o){o(52247),o(19083),o(71695),o(92745),o(61495),o(61893),o(19423),o(19134),o(5740),o(11740),o(92519),o(42179),o(89256),o(24931),o(88463),o(57449),o(19814),o(61006),o(97003),o(46692),o(39527),o(99790),o(41360),o(13334),o(47021),o(34028),o(21478),o(35911);!function(e){const t=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,d=new WeakMap,c=new WeakMap,p=new WeakMap,h=new WeakMap,u=new WeakMap,m=new WeakMap,f=new WeakMap,b={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function g(e){const t=n.get(e),{form:o}=t;L(e,o,t),I(e,t.labels)}const v=(e,t=!1)=>{const o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return n.has(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let i=o.nextNode();const r=!t||e.disabled;for(;i;)i.formDisabledCallback&&r&&_(i,e.disabled),i=o.nextNode()},x={attributes:!0,attributeFilter:["disabled","name"]},y=N()?new MutationObserver((e=>{for(const t of e){const e=t.target;if("disabled"===t.attributeName&&(e.constructor.formAssociated?_(e,e.hasAttribute("disabled")):"fieldset"===e.localName&&v(e)),"name"===t.attributeName&&e.constructor.formAssociated){const t=n.get(e),o=d.get(e);t.setFormValue(o)}}})):{};function w(e){e.forEach((e=>{const{addedNodes:t,removedNodes:o}=e,r=Array.from(t),a=Array.from(o);r.forEach((e=>{var t;if(n.has(e)&&e.constructor.formAssociated&&g(e),c.has(e)){const t=c.get(e);Object.keys(b).filter((e=>null!==t[e])).forEach((o=>{e.setAttribute(b[o],t[o])})),c.delete(e)}if(f.has(e)){const t=f.get(e);e.setAttribute("internals-valid",t.validity.valid.toString()),e.setAttribute("internals-invalid",(!t.validity.valid).toString()),e.setAttribute("aria-invalid",(!t.validity.valid).toString()),f.delete(e)}if("form"===e.localName){const t=l.get(e),o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return!n.has(e)||!e.constructor.formAssociated||t&&t.has(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});let i=o.nextNode();for(;i;)g(i),i=o.nextNode()}"fieldset"===e.localName&&(null===(t=y.observe)||void 0===t||t.call(y,e,x),v(e,!0))})),a.forEach((e=>{const t=n.get(e);if(t&&i.get(t)&&R(t),s.has(e)){s.get(e).disconnect()}}))}))}function E(e){e.forEach((e=>{const{removedNodes:t}=e;t.forEach((t=>{const o=u.get(e.target);n.has(t)&&$(t),o.disconnect()}))}))}!N()||new MutationObserver(w);const C={childList:!0,subtree:!0},_=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},R=e=>{i.get(e).forEach((e=>{e.remove()})),i.set(e,[])},A=(e,t)=>{const o=document.createElement("input");return o.type="hidden",o.name=e.getAttribute("name"),e.after(o),i.get(t).push(o),o},I=(e,t)=>{if(t.length){Array.from(t).forEach((t=>t.addEventListener("click",e.click.bind(e))));let o=t[0].id;t[0].id||(o=`${t[0].htmlFor}_Label`,t[0].id=o),e.setAttribute("aria-labelledby",o)}},k=e=>{const t=Array.from(e.elements).filter((e=>!e.tagName.includes("-")&&e.validity)).map((e=>e.validity.valid)),o=l.get(e)||[],i=[...t,...Array.from(o).filter((e=>e.isConnected)).map((e=>n.get(e).validity.valid))].includes(!1);e.toggleAttribute("internals-invalid",i),e.toggleAttribute("internals-valid",!i)},T=e=>{k(P(e.target))},S=e=>{k(P(e.target))},O=e=>{const t=l.get(e.target);t&&t.size&&t.forEach((e=>{e.constructor.formAssociated&&e.formResetCallback&&e.formResetCallback.apply(e)}))},L=(e,t,o)=>{if(t){const i=l.get(t);if(i)i.add(e);else{const o=new Set;o.add(e),l.set(t,o),(e=>{const t=["button[type=submit]","input[type=submit]","button:not([type])"].map((e=>`${e}:not([disabled])`)).map((t=>`${t}:not([form])${e.id?`,${t}[form='${e.id}']`:""}`)).join(",");e.addEventListener("click",(o=>{if(o.target.closest(t)){const t=l.get(e);if(e.noValidate)return;t.size&&Array.from(t).reverse().map((e=>n.get(e).reportValidity())).includes(!1)&&o.preventDefault()}}))})(t),t.addEventListener("reset",O),t.addEventListener("input",T),t.addEventListener("change",S)}a.set(t,{ref:e,internals:o}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout((()=>{e.formAssociatedCallback.apply(e,[t])}),0),k(t)}},P=e=>{let t=e.parentNode;return t&&"FORM"!==t.tagName&&(t=P(t)),t},M=(e,t,o=DOMException)=>{if(!e.constructor.formAssociated)throw new o(t)},z=(e,t,o)=>{const i=l.get(e);return i&&i.size&&i.forEach((e=>{n.get(e)[o]()||(t=!1)})),t},$=e=>{if(e.constructor.formAssociated){const t=n.get(e),{labels:o,form:i}=t;I(e,o),L(e,i,t)}};function N(){return"undefined"!=typeof MutationObserver}class D{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const F=e=>{let t=!0;for(let o in e)"valid"!==o&&!1!==e[o]&&(t=!1);return t},B=new WeakMap;function H(e,t){e.toggleAttribute(t,!0),e.part&&e.part.add(t)}class W extends Set{static get isPolyfilled(){return!0}constructor(e){if(super(),!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");B.set(this,e)}add(e){if(!/^--/.test(e)||"string"!=typeof e)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);const t=super.add(e),o=B.get(this),i=`state${e}`;return o.isConnected?H(o,i):setTimeout((()=>{H(o,i)})),t}clear(){for(let[e]of this.entries())this.delete(e);super.clear()}delete(e){const t=super.delete(e),o=B.get(this);return o.isConnected?(o.toggleAttribute(`state${e}`,!1),o.part&&o.part.remove(`state${e}`)):setTimeout((()=>{o.toggleAttribute(`state${e}`,!1),o.part&&o.part.remove(`state${e}`)})),t}}function V(e,t,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(e):i?i.value:t.get(e)}var j;class U{constructor(e){j.set(this,void 0),function(e,t,o,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?n.call(e,o):n?n.value=o:t.set(e,o)}(this,j,e,"f");for(let t=0;t{for(let o in b){t[o]=null;let i=null;const n=b[o];Object.defineProperty(t,o,{get(){return i},set(o){i=o,e.isConnected?e.setAttribute(n,o):c.set(e,t)}})}})(e,this),((e,t)=>{var o;i.set(t,[]),null===(o=y.observe)||void 0===o||o.call(y,e,x)})(e,this),Object.seal(this),r instanceof DocumentFragment&&(e=>{var t,o;const i=new MutationObserver(E);(null===(t=null===window||void 0===window?void 0:window.ShadyDOM)||void 0===t?void 0:t.inUse)&&e.mode&&e.host&&(e=e.host),null===(o=i.observe)||void 0===o||o.call(i,e,{childList:!0}),u.set(e,i)})(r)}checkValidity(){const e=t.get(this);if(M(e,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const i=o.get(this);if(!i.valid){const t=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});e.dispatchEvent(t)}return i.valid}get form(){const e=t.get(this);let o;return M(e,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===e.constructor.formAssociated&&(o=P(e)),o}get labels(){const e=t.get(this);M(e,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const o=e.getAttribute("id"),i=e.getRootNode();return i&&o?i.querySelectorAll(`[for="${o}"]`):[]}reportValidity(){const e=t.get(this);if(M(e,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const o=this.checkValidity(),i=h.get(this);if(i&&!e.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!o&&i&&(e.focus(),i.focus()),o}setFormValue(e){const o=t.get(this);if(M(o,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),R(this),null==e||e instanceof FormData)null!=e&&e instanceof FormData&&Array.from(e).reverse().forEach((([e,t])=>{if("string"==typeof t){const i=A(o,this);i.name=e,i.value=t}}));else if(o.getAttribute("name")){A(o,this).value=e}d.set(o,e)}setValidity(e,i,n){const a=t.get(this);if(M(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!e)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");h.set(this,n);const s=o.get(this),l={};for(const t in e)l[t]=e[t];var d;0===Object.keys(l).length&&((d=s).badInput=!1,d.customError=!1,d.patternMismatch=!1,d.rangeOverflow=!1,d.rangeUnderflow=!1,d.stepMismatch=!1,d.tooLong=!1,d.tooShort=!1,d.typeMismatch=!1,d.valid=!0,d.valueMissing=!1);const c=Object.assign(Object.assign({},s),l);delete c.valid;const{valid:p}=((e,t,o)=>(e.valid=F(t),Object.keys(t).forEach((o=>e[o]=t[o])),o&&k(o),e))(s,c,this.form);if(!p&&!i)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");r.set(this,p?"":i),a.isConnected?(a.toggleAttribute("internals-invalid",!p),a.toggleAttribute("internals-valid",p),a.setAttribute("aria-invalid",`${!p}`)):f.set(a,this)}get shadowRoot(){const e=t.get(this),o=p.get(e);return o||null}get validationMessage(){const e=t.get(this);return M(e,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),r.get(this)}get validity(){const e=t.get(this);M(e,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element.");return o.get(this)}get willValidate(){const e=t.get(this);return M(e,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(e.disabled||e.hasAttribute("disabled")||e.hasAttribute("readonly"))}}let G=!1,q=!1;function Y(e){q||(q=!0,window.CustomStateSet=W,e&&(HTMLElement.prototype.attachInternals=function(...t){const o=e.call(this,t);return o.states=new W(this),o}))}function X(e=!0){if(!G){if(G=!0,"undefined"!=typeof window&&(window.ElementInternals=K),"undefined"!=typeof CustomElementRegistry){const t=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(e,o,i){if(o.formAssociated){const e=o.prototype.connectedCallback;o.prototype.connectedCallback=function(){m.has(this)||(m.set(this,!0),this.hasAttribute("disabled")&&_(this,!0)),null!=e&&e.apply(this),$(this)}}t.call(this,e,o,i)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(n.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new K(this)}),"undefined"!=typeof Element){function o(...e){const t=i.apply(this,e);if(p.set(this,t),N()){const e=new MutationObserver(w);window.ShadyDOM?e.observe(this,C):e.observe(t,C),s.set(this,e)}return t}const i=Element.prototype.attachShadow;Element.prototype.attachShadow=o}if(N()&&"undefined"!=typeof document){new MutationObserver(w).observe(document.documentElement,C)}"undefined"!=typeof HTMLFormElement&&function(){const e=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...t){let o=e.apply(this,t);return z(this,o,"checkValidity")};const t=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...e){let o=t.apply(this,e);return z(this,o,"reportValidity")};const{get:o}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...e){const t=o.call(this,...e),i=Array.from(l.get(this)||[]);if(0===i.length)return t;const n=Array.from(t).concat(i).sort(((e,t)=>e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:0));return new U(n)}})}(),(e||"undefined"!=typeof window&&!window.CustomStateSet)&&Y()}}!!customElements.polyfillWrapFlushCallback||(!function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);const o=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every((e=>e in o.internals))}()?X(!1):"undefined"==typeof window||window.CustomStateSet||Y(HTMLElement.prototype.attachInternals)),e.forceCustomStateSetPolyfill=Y,e.forceElementInternalsPolyfill=X,Object.defineProperty(e,"__esModule",{value:!0})}({})},79840:function(e,t,o){o.d(t,{i0:()=>a,dy:()=>d});o("52247"),o("71695"),o("92745"),o("52805"),o("39527"),o("34595"),o("47021");var i=o("2841");const n=Symbol.for(""),r=e=>{if((null==e?void 0:e.r)===n)return null==e?void 0:e._$litStatic$},a=(e,...t)=>({_$litStatic$:t.reduce(((t,o,i)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+e[i+1]),e[0]),r:n}),s=new Map,l=e=>(t,...o)=>{const i=o.length;let n,a;const l=[],d=[];let c,p=0,h=!1;for(;p