@m3e/web 2.3.2 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/all.js +745 -32
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +15 -15
- package/dist/all.min.js.map +1 -1
- package/dist/core.js +2 -2
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/core.min.js.map +1 -1
- package/dist/css-custom-data.json +370 -260
- package/dist/custom-elements.json +14690 -13502
- package/dist/html-custom-data.json +168 -129
- package/dist/list.js +1 -1
- package/dist/list.js.map +1 -1
- package/dist/list.min.js +1 -1
- package/dist/list.min.js.map +1 -1
- package/dist/nav-menu.js +18 -26
- package/dist/nav-menu.js.map +1 -1
- package/dist/nav-menu.min.js +1 -1
- package/dist/nav-menu.min.js.map +1 -1
- package/dist/src/all.d.ts +1 -0
- package/dist/src/all.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/PseudoCheckboxElement.d.ts.map +1 -1
- package/dist/src/core/shared/primitives/PseudoRadioElement.d.ts.map +1 -1
- package/dist/src/list/ListItemElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuElement.d.ts +18 -6
- package/dist/src/nav-menu/NavMenuElement.d.ts.map +1 -1
- package/dist/src/nav-menu/NavMenuItemElement.d.ts +3 -5
- package/dist/src/nav-menu/NavMenuItemElement.d.ts.map +1 -1
- package/dist/src/tree/TreeElement.d.ts +150 -0
- package/dist/src/tree/TreeElement.d.ts.map +1 -0
- package/dist/src/tree/TreeItemElement.d.ts +131 -0
- package/dist/src/tree/TreeItemElement.d.ts.map +1 -0
- package/dist/src/tree/index.d.ts +3 -0
- package/dist/src/tree/index.d.ts.map +1 -0
- package/dist/tree.js +736 -0
- package/dist/tree.js.map +1 -0
- package/dist/tree.min.js +7 -0
- package/dist/tree.min.js.map +1 -0
- package/package.json +7 -2
package/dist/all.min.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2025–2026 matraic
|
|
4
4
|
* See LICENSE file in the project root for full license text.
|
|
5
5
|
*/
|
|
6
|
-
import{__classPrivateFieldGet as e,__decorate as t,__classPrivateFieldSet as a}from"tslib";import{unsafeCSS as o,css as i,LitElement as r,html as s,nothing as n,isServer as l,noChange as c,svg as d}from"lit";import{query as h,property as m,queryAssignedElements as p,state as u}from"lit/decorators.js";import{DesignToken as v,HtmlFor as b,Role as f,hasAssignedNodes as g,debounce as y,customElement as $,EventAttribute as x,MutationController as w,setCustomState as k,deleteCustomState as C,prefersReducedMotion as S,scrollIntoViewIfNeeded as _,forcedColorsActive as L,addCustomState as E,ActionElementBase as z,ReconnectedCallback as M,SuppressInitialAnimation as T,AttachInternals as P,VelocityTracker as I,ScrollLockController as W,InertController as D,ResizeController as A,focusWhenReady as H,hasCustomState as O,computeCssSize as B,registerStyleSheet as F,spaceSeparatedStringConverter as V,KeyboardClick as q,LinkButton as R,FormSubmitter as U,Focusable as N,DisabledInteractive as j,Disabled as Y,FocusController as K,PressedController as Z,renderPseudoLink as G,isSelectedMixin as X,dateConverter as J,Labelled as Q,RequiredConstraintValidation as ee,Dirty as te,Touched as ae,Required as oe,ConstraintValidation as ie,CheckedIndeterminate as re,FormAssociated as se,HoverController as ne,formValue as le,isDisabledMixin as ce,isDisabledInteractiveMixin as de,isLinkButtonMixin as he,getTextContent as me,Vertical as pe,Selected as ue,ScrollController as ve,isReadOnlyMixin as be,interceptProperty as fe,computeLineCount as ge,generateClipPaths as ye,Checked as $e,AnimationLoopController as xe,resolveFragmentUrl as we,safeStyleMap as ke,updateLabels as Ce,waitForUpgrade as Se,guid as _e,IntersectionController as Le,LongPressController as Ee}from"@m3e/web/core";import{ListKeyManager as ze,M3eLiveAnnouncer as Me,M3eInteractivityChecker as Te,isModifierAllowed as Pe,addAriaReferencedId as Ie,removeAriaReferencedId as We,selectionManager as De,SelectionManager as Ae,ListManager as He,RovingTabIndexManager as Oe,M3eAriaDescriber as Be,typeaheadLabel as Fe}from"@m3e/web/core/a11y";import{M3eOptGroupElement as Ve}from"@m3e/web/option";import{M3eDirectionality as qe}from"@m3e/web/core/bidi";import{positionAnchor as Re,M3eFloatingPanelElement as Ue}from"@m3e/web/core/anchoring";import{classMap as Ne}from"lit/directives/class-map.js";import{ifDefined as je}from"lit/directives/if-defined.js";import{M3eButtonElement as Ye}from"@m3e/web/button";import{M3eIconButtonElement as Ke}from"@m3e/web/icon-button";import"@m3e/web/tooltip";import{directive as Ze,Directive as Ge,PartType as Xe}from"lit/directive.js";import{M3eBreakpointObserver as Je,Breakpoint as Qe}from"@m3e/web/core/layout";import"@m3e/web/calendar";import{M3eNavBarElement as et}from"@m3e/web/nav-bar";import"@m3e/web/form-field";import"@m3e/web/select";import"@m3e/web/button-group";import"@m3e/web/slide-group";import{M3ePlatform as tt}from"@m3e/web/core/platform";const at={small:{containerHeight:o("var(--m3e-app-bar-small-container-height, 4rem)"),titleTextFontSize:o(`var(--m3e-app-bar-small-title-text-font-size, ${v.typescale.standard.title.large.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-small-title-text-font-weight, ${v.typescale.standard.title.large.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-small-title-text-line-height, ${v.typescale.standard.title.large.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.title.large.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-small-subtitle-text-font-size, ${v.typescale.standard.label.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-small-subtitle-text-font-weight, ${v.typescale.standard.label.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-small-subtitle-text-line-height, ${v.typescale.standard.label.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.label.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-small-heading-padding-left, 0.25rem)"),headingPaddingRight:o("var(--m3e-app-bar-small-heading-padding-right, 0.25rem)")},medium:{containerHeight:o("var(--m3e-app-bar-medium-container-height, 7rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-medium-container-height-with-subtitle, 8.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-medium-title-text-font-size, ${v.typescale.standard.headline.medium.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-medium-title-text-font-weight, ${v.typescale.standard.headline.medium.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-medium-title-text-line-height, ${v.typescale.standard.headline.medium.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.headline.medium.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-medium-subtitle-text-font-size, ${v.typescale.standard.title.small.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-medium-subtitle-text-font-weight, ${v.typescale.standard.title.small.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-medium-subtitle-text-line-height, ${v.typescale.standard.title.small.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.title.small.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-medium-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-medium-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-medium-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-medium-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-medium-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-medium-subtitle-max-lines, 1)")},large:{containerHeight:o("var(--m3e-app-bar-large-container-height, 7.5rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-large-container-height-with-subtitle, 9.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-large-title-text-font-size, ${v.typescale.standard.display.small.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-large-title-text-font-weight, ${v.typescale.standard.display.small.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-large-title-text-line-height, ${v.typescale.standard.display.small.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.display.small.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-large-subtitle-text-font-size, ${v.typescale.standard.title.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-large-subtitle-text-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-large-subtitle-text-line-height, ${v.typescale.standard.title.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.title.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-large-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-large-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-large-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-large-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-large-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-large-subtitle-max-lines, 1)")}};function ot(e){return i`:host([size="${o(e)}"]) .base:not(.with-subtitle) { min-height: ${at[e].containerHeight}; } :host([size="${o(e)}"]) .base.with-subtitle { min-height: ${at[e].containerHeightWithSubtitle??at[e].containerHeight}; } :host([size="${o(e)}"]) .title { font-size: ${at[e].titleTextFontSize}; font-weight: ${at[e].titleTextFontWeight}; line-height: ${at[e].titleTextLineHeight}; letter-spacing: ${at[e].titleTextTracking}; } :host([size="${o(e)}"]) .subtitle { font-size: ${at[e].subtitleTextFontSize}; font-weight: ${at[e].subtitleTextFontWeight}; line-height: ${at[e].subtitleTextLineHeight}; letter-spacing: ${at[e].subtitleTextTracking}; } :host(:not([centered])[size="${o(e)}"]) .label { padding-inline-start: ${at[e].headingPaddingLeft}; padding-inline-end: ${at[e].headingPaddingRight}; } :host([centered][size="${o(e)}"]) .label { padding-inline: ${at[e].headingPaddingLeft}; } :host([size="${o(e)}"]) .base { padding-block-start: ${at[e].paddingTop??o("unset")}; padding-block-end: ${at[e].paddingBottom??o("unset")}; } ${at[e].titleMaxLines?i`:host([size="${o(e)}"]) .title { display: -webkit-box; -webkit-line-clamp: ${at[e].titleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${at[e].titleMaxLines}; }`:i``} ${at[e].subtitleMaxLines?i`:host([size="${o(e)}"]) .subtitle { display: -webkit-box; -webkit-line-clamp: ${at[e].subtitleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${at[e].subtitleMaxLines}; }`:i``}`}const it=[ot("small"),ot("medium"),ot("large")],rt=o(`var(--m3e-app-bar-container-color, ${v.color.surface})`),st=o(`var(--m3e-app-bar-container-color-on-scroll, ${v.color.surfaceContainer})`),nt=o(`var(--m3e-app-bar-container-elevation, ${v.elevation.level0})`),lt=o(`var(--m3e-app-bar-container-elevation-on-scroll, ${v.elevation.level1})`),ct=o(`var(--m3e-app-bar-title-text-color, ${v.color.onSurface})`),dt=o(`var(--m3e-app-bar-subtitle-text-color, ${v.color.onSurfaceVariant})`),ht=o("var(--m3e-app-bar-padding-left, 0.25rem)"),mt=o("var(--m3e-app-bar-padding-right, 0.25rem)"),pt=i`:host { display: block; flex: none; } :host([size="small"]) .base, :host(:not([size="small"]):not([centered])) .heading { padding-inline-start: ${ht}; padding-inline-end: ${mt}; } .base { box-sizing: border-box; display: flex; transition: ${o(`background-color ${v.motion.duration.medium1} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium1} ${v.motion.easing.standard}`)}; } .base:not(.on-scroll) { background-color: ${rt}; box-shadow: ${nt}; } .base.on-scroll { background-color: ${st}; box-shadow: ${lt}; } .leading-icon, .trailing-icon { display: flex; flex: none; align-items: center; } .leading-icon { min-width: var(--_leading-icon-min-width); } .trailing-icon { min-width: var(--_trailing-icon-min-width); } .heading { display: flex; align-items: center; } :host([size="small"]) .heading { flex: 1 1 auto; } .spacer { flex: 1 1 auto; } .label { display: flex; flex-direction: column; flex: none; } .title { color: ${ct}; } .subtitle { color: ${dt}; } .base:not(.with-title) .title, .base:not(.with-subtitle) .subtitle, .base:not(.with-title):not(.with-subtitle) .label, .base:not(.with-trailing-icon) .trailing-icon { display: none; } :host([size="small"]) .base { align-items: center; } :host([size="small"]) .heading { min-width: 0; } :host([size="small"]) .label { flex: 1 1 auto; min-width: 0; } :host([size="small"]) .title, :host([size="small"]) .subtitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } :host(:not([size="small"])) .base { flex-direction: column; } :host([centered]) .title, :host([centered]) .subtitle { text-align: center; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } .base:not(.on-scroll), .base.on-scroll { background-color: Canvas; box-shadow: unset; } .title { color: CanvasText; } .subtitle { color: FieldText; } }`;var ut,vt,bt,ft,gt,yt,$t,xt,wt,kt,Ct,St;let _t=class extends(b(f(r,"banner"))){constructor(){super(...arguments),ut.add(this),vt.set(this,e=>this._updateScroll(e)),bt.set(this,()=>e(this,ut,"m",Ct).call(this)),this.centered=!1,this.size="small"}attach(t){super.attach(t),t instanceof HTMLIFrameElement?(t.addEventListener("load",e(this,bt,"f")),e(this,ut,"m",Ct).call(this)):t.addEventListener("scroll",e(this,vt,"f"),{passive:!0})}detach(){this.control instanceof HTMLIFrameElement&&(this.control.removeEventListener("load",e(this,bt,"f")),this.control.contentDocument?.removeEventListener("scroll",e(this,vt,"f"))),this.control&&this.control.removeEventListener("scroll",e(this,vt,"f")),super.detach()}updated(t){super.updated(t),(t.has("centered")||t.has("size"))&&(this.centered&&"small"===this.size?e(this,ut,"m",kt).call(this):e(this,ut,"m",wt).call(this))}render(){return"small"===this.size?s`<div class="base"><div class="leading-icon"><slot name="leading" @slotchange="${e(this,ut,"m",yt)}"><slot name="leading-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div><div class="heading"><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,ut,"m",ft)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,ut,"m",gt)}"></slot></div></div></div><div class="trailing-icon"><slot name="trailing" @slotchange="${e(this,ut,"m",$t)}"><slot name="trailing-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div></div>`:s`<div class="base"><div class="heading"><div class="leading-icon"><slot name="leading" @slotchange="${e(this,ut,"m",yt)}"><slot name="leading-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div><div class="spacer"></div><div class="trailing-icon"><slot name="trailing" @slotchange="${e(this,ut,"m",$t)}"><slot name="trailing-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div></div><div class="spacer"></div><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,ut,"m",ft)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,ut,"m",gt)}"></slot></div></div></div>`}_updateScroll(t){let a=0;this.control instanceof HTMLIFrameElement?a=e(this,ut,"m",St).call(this,this.control):t.target instanceof HTMLElement&&(a=t.target.scrollTop),this._base?.classList.toggle("on-scroll",a>0)}};var Lt,Et,zt,Mt,Tt,Pt,It,Wt,Dt,At,Ht,Ot,Bt,Ft,Vt,qt,Rt,Ut,Nt,jt,Yt,Kt,Zt,Gt,Xt,Jt,Qt,ea,ta,aa,oa,ia,ra,sa,na,la,ca,da,ha,ma,pa,ua,va,ba,fa,ga,ya,$a,xa,wa,ka,Ca,Sa;vt=new WeakMap,bt=new WeakMap,ut=new WeakSet,ft=function(e){this._base?.classList.toggle("with-title",g(e.target))},gt=function(e){this._base?.classList.toggle("with-subtitle",g(e.target))},yt=function(t){this._base?.classList.toggle("with-leading-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,ut,"m",kt).call(this),40)},$t=function(t){this._base?.classList.toggle("with-trailing-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,ut,"m",kt).call(this),40)},xt=function(e){const t=e.target.name,a=t.replace("-icon","");console.warn(`[m3e-app-bar] Slot "${t}" is deprecated and will be removed in a future release. Use "${a}" instead.`)},wt=function(){this._base?.style.removeProperty("--_leading-icon-min-width"),this._base?.style.removeProperty("--_trailing-icon-min-width")},kt=function(){e(this,ut,"m",wt).call(this);const t=this._leadingIcon?.getBoundingClientRect().width??0,a=this._trailingIcon?.getBoundingClientRect().width??0;t<a?this._base?.style.setProperty("--_leading-icon-min-width",`${a}px`):t>a&&this._base?.style.setProperty("--_trailing-icon-min-width",`${t}px`)},Ct=function(){this.control instanceof HTMLIFrameElement&&(this.control.contentDocument?.addEventListener("scroll",e(this,vt,"f"),{passive:!0}),this._base?.classList.toggle("on-scroll",e(this,ut,"m",St).call(this,this.control)>0))},St=function(e){return Math.max(e.contentDocument?.documentElement?.scrollTop??0,e.contentDocument?.body?.scrollTop??0)},_t.styles=[pt,it],t([h(".base")],_t.prototype,"_base",void 0),t([h(".leading-icon")],_t.prototype,"_leadingIcon",void 0),t([h(".trailing-icon")],_t.prototype,"_trailingIcon",void 0),t([m({type:Boolean,reflect:!0})],_t.prototype,"centered",void 0),t([m({reflect:!0})],_t.prototype,"size",void 0),t([y(40)],_t.prototype,"_updateScroll",null),_t=t([$("m3e-app-bar")],_t);let _a=Sa=class extends(x(b(r),"query")){constructor(){super(),Lt.add(this),Et.set(this,`m3e-autocomplete-${Sa.__nextId}`),zt.set(this,`${e(this,Et,"f")}-menu`),this._options=new Array,Mt.set(this,void 0),Tt.set(this,!1),Pt.set(this,void 0),It.set(this,!1),Wt.set(this,!1),Dt.set(this,!1),At.set(this,void 0),Ht.set(this,()=>e(this,Lt,"m",ta).call(this)),Ot.set(this,()=>e(this,Lt,"m",aa).call(this)),Bt.set(this,()=>e(this,Lt,"m",oa).call(this)),Ft.set(this,()=>e(this,Lt,"m",ia).call(this)),Vt.set(this,t=>e(this,Lt,"m",na).call(this,t)),qt.set(this,t=>e(this,Lt,"m",ra).call(this,t)),Rt.set(this,()=>e(this,Lt,"m",sa).call(this)),Ut.set(this,t=>e(this,Lt,"m",da).call(this,t)),Nt.set(this,t=>e(this,Lt,"m",la).call(this,t)),jt.set(this,t=>e(this,Lt,"m",ca).call(this,t)),Yt.set(this,void 0),this._listKeyManager=(new ze).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withSkipPredicate(e=>e.disabled||!0===e.hidden).onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,Lt,"m",ba).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.required=!1,this.autoActivate=!1,this.caseSensitive=!1,this.filter="contains",this.loading=!1,this.hideNoData=!1,this.hideLoading=!1,this.loadingLabel="Loading...",this.noDataLabel="No options",this.resultsLabel=e=>`${e} options`,this.panelClass="",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,Lt,"m",ea).call(this)})}get options(){return this._options??[]}get selected(){return this.options.find(e=>e.selected)??null}get value(){const e=this.selected;return e&&!e.disabled?e.value:null}attach(t){t instanceof HTMLInputElement&&(super.attach(t),t.autocomplete="off",t.role="combobox",t.ariaAutoComplete="list",t.ariaExpanded="false",t.addEventListener("click",e(this,Ht,"f")),t.addEventListener("focus",e(this,Bt,"f")),t.addEventListener("blur",e(this,Ft,"f")),t.addEventListener("keydown",e(this,Vt,"f")),t.addEventListener("input",e(this,qt,"f")),t.addEventListener("change",e(this,Rt,"f")),e(this,Lt,"a",Qt)?.addEventListener("pointerdown",e(this,Ot,"f")))}detach(){this.control&&(e(this,Lt,"a",Qt)?.removeEventListener("pointerdown",e(this,Ot,"f")),this.control.role=null,this.control.ariaAutoComplete=null,this.control.ariaExpanded=null,this.control.removeEventListener("click",e(this,Ht,"f")),this.control.removeEventListener("focus",e(this,Bt,"f")),this.control.removeEventListener("blur",e(this,Ft,"f")),this.control.removeEventListener("keydown",e(this,Vt,"f")),this.control.removeEventListener("input",e(this,qt,"f")),this.control.removeEventListener("change",e(this,Rt,"f"))),super.detach()}clear(t=!1){e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).value="",e(this,Lt,"m",xa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0})),e(this,Lt,"m",$a).call(this),t?e(this,Lt,"a",Zt).focus():e(this,Lt,"m",va).call(this))}connectedCallback(){super.connectedCallback(),e(this,Lt,"m",ea).call(this)}update(t){super.update(t),t.has("hideNoData")&&this.hideNoData&&e(this,Pt,"f")&&k(e(this,Pt,"f"),"-no-data",!1),t.has("loading")&&(this.loading?e(this,Dt,"f")&&(this.loadingLabel&&Me.announce(this.loadingLabel,"polite"),!e(this,Pt,"f")&&e(this,Lt,"a",Jt)&&e(this,Lt,"m",ma).call(this)):e(this,Pt,"f")&&!e(this,Lt,"a",Jt)?e(this,Lt,"m",va).call(this):e(this,Pt,"f")?C(e(this,Pt,"f"),"-loading"):e(this,Dt,"f")&&e(this,Lt,"m",ma).call(this))}render(){return s`<div class="options" aria-hidden="true"><slot></slot></div>`}};Et=new WeakMap,zt=new WeakMap,Mt=new WeakMap,Tt=new WeakMap,Pt=new WeakMap,It=new WeakMap,Wt=new WeakMap,Dt=new WeakMap,At=new WeakMap,Ht=new WeakMap,Ot=new WeakMap,Bt=new WeakMap,Ft=new WeakMap,Vt=new WeakMap,qt=new WeakMap,Rt=new WeakMap,Ut=new WeakMap,Nt=new WeakMap,jt=new WeakMap,Yt=new WeakMap,Lt=new WeakSet,Kt=function(){return this._listKeyManager?.items??[]},Zt=function(){return this.control?this.control:null},Gt=function(){return null!==(e(this,Mt,"f")?.querySelector("[slot='no-data']")??null)},Xt=function(){return null!==(e(this,Mt,"f")?.querySelector("[slot='loading']")??null)},Jt=function(){return e(this,Lt,"a",Kt).some(e=>!1===e.hidden)||this.loading&&!this.hideLoading&&this.loadingLabel.length>0||!this.loading&&!this.hideNoData&&this.noDataLabel.length>0},Qt=function(){return this.control?.closest("m3e-form-field")??null},ea=async function(){e(this,At,"f")&&e(this,At,"f").abort();const t=new AbortController;a(this,At,t,"f");const o=[...this.querySelectorAll("m3e-option")];for(const e of o){if(t.signal.aborted)break;e.isUpdatePending&&await e.updateComplete}if(t.signal.aborted)return;this._options=o,a(this,Mt,this.cloneNode(!0),"f");const{added:i}=this._listKeyManager.setItems([...e(this,Mt,"f").querySelectorAll("m3e-option")]);if(i.forEach(t=>{t.id=t.id||`${e(this,Et,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,k(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),e(this,Pt,"f")){const t=e(this,Lt,"m",$a).call(this);e(this,Lt,"m",pa).call(this),e(this,Lt,"a",Jt)?e(this,Lt,"m",ua).call(this,e(this,Pt,"f"),t):e(this,Lt,"m",va).call(this)}},ta=function(){a(this,Tt,!0,"f"),e(this,Lt,"m",ma).call(this)},aa=function(){a(this,It,!0,"f")},oa=function(){a(this,Dt,!0,"f"),a(this,Tt,!0,"f"),0!=this.options.length||this.control.readOnly||this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,Lt,"a",Zt)?.value??""},bubbles:!0,composed:!0})),e(this,Lt,"m",ma).call(this)},ia=function(){a(this,Dt,!1,"f"),e(this,It,"f")||e(this,Lt,"m",va).call(this),a(this,It,!1,"f")},ra=function(t){if(e(this,Lt,"a",Zt)&&!t.defaultPrevented){this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,Lt,"a",Zt).value},bubbles:!0,composed:!0})),""===e(this,Lt,"a",Zt).value&&e(this,Lt,"m",xa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0})),a(this,Wt,!0,"f");try{e(this,Pt,"f")?(e(this,Lt,"m",$a).call(this),e(this,Lt,"a",Jt)||e(this,Lt,"m",va).call(this)):e(this,Lt,"m",ma).call(this)}finally{a(this,Wt,!1,"f"),e(this,Lt,"a",Qt)?.notifyControlStateChange(!0)}}},sa=function(){if(e(this,Lt,"a",Zt)){const t=this.selected;this.required?e(this,Lt,"a",Zt).value=t?.label??"":t&&t.label!==e(this,Lt,"a",Zt).value&&e(this,Lt,"m",xa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0}))}},na=function(t){if(!t.defaultPrevented)switch(a(this,Tt,!1,"f"),t.key){case"Backspace":case"Delete":e(this,Lt,"a",Zt)&&!e(this,Lt,"a",Zt).value&&e(this,Lt,"m",va).call(this);break;case"Enter":e(this,Pt,"f")&&this._listKeyManager.activeItem?(t.preventDefault(),e(this,Lt,"m",ga).call(this,this._listKeyManager.activeItem),S()?e(this,Lt,"m",va).call(this):setTimeout(()=>e(this,Lt,"m",va).call(this),150)):e(this,Pt,"f")&&setTimeout(()=>{e(this,Lt,"a",Zt)&&!e(this,Lt,"a",Zt).value&&e(this,Lt,"m",va).call(this)});break;case"Escape":case"Tab":e(this,Lt,"m",va).call(this);break;case"Up":case"ArrowUp":t.altKey?e(this,Lt,"m",va).call(this):this._listKeyManager.onKeyDown(t);break;case"Down":case"ArrowDown":e(this,Pt,"f")?this._listKeyManager.onKeyDown(t):(e(this,Lt,"m",ma).call(this),t.preventDefault());break;default:this._listKeyManager.onKeyDown(t)}},la=function(e){if(a(this,Yt,void 0,"f"),2===e.button)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);t&&!t.disabled&&a(this,Yt,t,"f")},ca=function(t){const o=e(this,Yt,"f");if(a(this,Yt,void 0,"f"),2===t.button)return;if(!o)return;const i=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);i===o&&(this._listKeyManager.setActiveItem(i),e(this,Lt,"m",ga).call(this,i)),S()?e(this,Lt,"m",va).call(this):setTimeout(()=>e(this,Lt,"m",va).call(this),150)},da=function(t){if(e(this,Pt,"f"))if("closed"!==t.newState){const a=e(this,Lt,"a",Kt).find(e=>e.selected&&!e.disabled);a?(this._listKeyManager.setActiveItem(a),_(a,e(this,Pt,"f"))):e(this,Lt,"m",ka).call(this),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else S()?e(this,Lt,"m",ha).call(this,t):setTimeout(()=>e(this,Lt,"m",ha).call(this,t),100)},ha=function(t){e(this,Pt,"f")&&(e(this,Mt,"f")?.replaceChildren(...e(this,Pt,"f").childNodes),e(this,Pt,"f").remove(),e(this,Pt,"f").removeEventListener("toggle",e(this,Ut,"f")),e(this,Pt,"f").removeEventListener("pointerdown",e(this,Nt,"f")),e(this,Pt,"f").removeEventListener("pointerup",e(this,jt,"f")),a(this,Pt,void 0,"f"),e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).ariaExpanded="false",e(this,Lt,"a",Zt).removeAttribute("aria-controls"),e(this,Lt,"a",Zt).removeAttribute("aria-owns"),e(this,Lt,"a",Zt).removeAttribute("aria-activedescendant")),this.requestUpdate(),e(this,Lt,"a",Qt)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})),"input"===e(this,Lt,"a",Zt)?.slot&&"M3E-INPUT-CHIP-SET"===e(this,Lt,"a",Zt).parentElement?.tagName&&e(this,Lt,"m",xa).call(this))},ma=function(){if(e(this,Pt,"f")||!e(this,Lt,"a",Zt)||e(this,Lt,"a",Zt).readOnly||e(this,Lt,"a",Zt).disabled)return;const t=e(this,Lt,"m",$a).call(this);if(!e(this,Lt,"a",Jt))return;if(a(this,Pt,document.createElement("m3e-option-panel"),"f"),e(this,Pt,"f").id=e(this,zt,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,Pt,"f").classList.add(t);e(this,Pt,"f").style.overflowX="hidden",e(this,Pt,"f").scrollStrategy="reposition",e(this,Pt,"f").fitAnchorWidth=!0,e(this,Pt,"f").addEventListener("toggle",e(this,Ut,"f")),e(this,Pt,"f").addEventListener("pointerdown",e(this,Nt,"f")),e(this,Pt,"f").addEventListener("pointerup",e(this,jt,"f")),e(this,Lt,"m",pa).call(this),e(this,Lt,"m",ua).call(this,e(this,Pt,"f"),t),(e(this,Lt,"a",Qt)??e(this,Lt,"a",Zt)).insertAdjacentElement("afterend",e(this,Pt,"f")),e(this,Lt,"a",Zt).setAttribute("aria-controls",e(this,zt,"f")),e(this,Lt,"a",Zt).setAttribute("aria-owns",e(this,zt,"f")),e(this,Lt,"a",Qt)?.notifyControlStateChange(),this._listKeyManager.activeItem&&this.autoActivate&&e(this,Lt,"m",ba).call(this,this._listKeyManager.activeItem,!0);const o=e(this,Lt,"a",Zt);setTimeout(()=>e(this,Pt,"f")?.show(o,e(this,Lt,"a",Qt)?.menuAnchor))},pa=function(){if(!e(this,Mt,"f")||!e(this,Pt,"f"))return;const t=[...e(this,Mt,"f").childNodes];if(!e(this,Lt,"a",Gt)&&this.noDataLabel){const e=document.createElement("span");e.slot="no-data",e.textContent=this.noDataLabel,t.push(e)}if(!e(this,Lt,"a",Xt)&&this.loadingLabel){const e=document.createElement("span");e.slot="loading",e.textContent=this.loadingLabel,t.push(e)}e(this,Pt,"f").replaceChildren(...t)},ua=function(e,t){k(e,"-loading",this.loading),k(e,"-no-data",0==t)},va=function(){e(this,Pt,"f")?.hide()},ba=function(t,a=!1){if(e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).setAttribute("aria-activedescendant",t.id),e(this,Pt,"f"))){_(t,e(this,Pt,"f"),{block:"nearest",behavior:"instant"});const o=a||!e(this,Tt,"f")&&(e(this,Lt,"a",Zt).matches(":focus-visible")||L());e(this,Lt,"a",Kt).forEach(e=>{e===t&&o?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},fa=async function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected,t.isUpdatePending&&await t.updateComplete)},ga=async function(t){t.selected||(t.selected=!0,await e(this,Lt,"m",fa).call(this,t),t.isUpdatePending&&await t.updateComplete,this.requestUpdate(),this.isUpdatePending&&await this.updateComplete,e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).value=t.label),this.dispatchEvent(new Event("change",{bubbles:!0})),e(this,Lt,"a",Qt)?.notifyControlStateChange(!0))},ya=function(e,t,a,o){const i=this.caseSensitive?t.value:t.value.toLowerCase();switch(this.filter){case"starts-with":return e.term=o,e.highlightMode=this.filter,i.startsWith(a);case"ends-with":return e.term=o,e.highlightMode=this.filter,i.endsWith(a);case"contains":return e.term=o,e.highlightMode=this.filter,i.includes(a);case"none":return e.disableHighlight=!0,!0;default:return e.disableHighlight=!0,this.filter(t,o)}},$a=function(){if(!e(this,Lt,"a",Zt))return 0;const t=e(this,Lt,"a",Kt).filter(e=>!1===e.hidden).length,o=!this.loading&&e(this,Wt,"f");a(this,Wt,!1,"f");const i=e(this,Lt,"a",Zt).value,r=this.caseSensitive?i:i.toLocaleLowerCase();let s,n=0,l=!1;for(let t=0;t<e(this,Lt,"a",Kt).length;t++){const a=e(this,Lt,"a",Kt)[t],o=this._options[t];a.hidden=!e(this,Lt,"m",ya).call(this,a,o,r,i),!0===a.hidden?(e(this,Lt,"m",Ca).call(this,a),C(a,"-first"),C(a,"-last")):(n++,l||a.parentElement instanceof Ve?(C(a,"-first"),s&&C(s,"-last"),E(a,"-last"),s=a):(E(a,"-first"),l=!0,E(a,"-last"),s=a))}e(this,Pt,"f")&&e(this,Lt,"m",ua).call(this,e(this,Pt,"f"),n);const c=e(this,Pt,"f")?.querySelectorAll("m3e-optgroup")??e(this,Mt,"f")?.querySelectorAll("m3e-optgroup")??[];for(const e of c)e.hidden=[...e.querySelectorAll("m3e-option")].every(e=>!0===e.hidden);return o&&e(this,Lt,"m",wa).call(this,t,n),e(this,Lt,"m",ka).call(this),n},xa=function(){const t=this._listKeyManager.items.filter(e=>e.selected);return t.length>0&&(t.forEach(t=>{t.selected=!1,e(this,Lt,"m",fa).call(this,t)}),!0)},wa=function(t,a){if(e(this,Dt,"f"))if(0==a)t>0&&this.noDataLabel&&Me.announce(this.noDataLabel,"polite");else if(t!=a){const e=this.resultsLabel instanceof Function?this.resultsLabel(a):this.resultsLabel;e&&Me.announce(e,"polite")}},ka=function(){if(this.autoActivate&&(!this._listKeyManager.activeItem||!this._listKeyManager.activeItem.selected)){const t=e(this,Lt,"a",Kt).find(e=>!e.disabled&&!1===e.hidden);t&&(this._listKeyManager.setActiveItem(t),e(this,Pt,"f")&&_(t,e(this,Pt,"f"),{block:"nearest",behavior:"instant"}))}},Ca=function(t){t.focusRing?.hide(),t.stateLayer?.hide("focused"),t===this._listKeyManager.activeItem&&(this._listKeyManager.updateActiveItem(null),e(this,Lt,"a",Zt)?.removeAttribute("aria-activedescendant"))},_a.styles=i`:host { display: contents; } .options { display: none; }`,_a.__nextId=0,t([m({attribute:"hide-selection-indicator",type:Boolean})],_a.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean,reflect:!0})],_a.prototype,"required",void 0),t([m({attribute:"auto-activate",type:Boolean})],_a.prototype,"autoActivate",void 0),t([m({attribute:"case-sensitive",type:Boolean})],_a.prototype,"caseSensitive",void 0),t([m({converter:{fromAttribute:e=>null===e?"contains":"starts-with"===e||"ends-with"===e||"contains"===e||"none"===e?e:"contains"}})],_a.prototype,"filter",void 0),t([m({type:Boolean})],_a.prototype,"loading",void 0),t([m({attribute:"hide-no-data",type:Boolean})],_a.prototype,"hideNoData",void 0),t([m({attribute:"hide-loading",type:Boolean})],_a.prototype,"hideLoading",void 0),t([m({attribute:"loading-label"})],_a.prototype,"loadingLabel",void 0),t([m({attribute:"no-data-label"})],_a.prototype,"noDataLabel",void 0),t([m({attribute:"results-label"})],_a.prototype,"resultsLabel",void 0),t([m({attribute:"panel-class"})],_a.prototype,"panelClass",void 0),_a=Sa=t([$("m3e-autocomplete")],_a);let La=class extends r{render(){return s`<div class="base"><slot></slot></div>`}};var Ea,za,Ma,Ta,Pa,Ia;La.styles=i`:host { display: inline-block; vertical-align: middle; aspect-ratio: 1 / 1; width: var(--m3e-avatar-size, 2.5rem); } .base { user-select: none; white-space: nowrap; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--m3e-avatar-shape, ${v.shape.corner.full}); font-size: var(--m3e-avatar-font-size, ${v.typescale.standard.title.medium.fontSize}); font-weight: var(--m3e-avatar-font-weight, ${v.typescale.standard.title.medium.fontWeight}); line-height: var(--m3e-avatar-line-height, ${v.typescale.standard.title.medium.lineHeight}); letter-spacing: var(--m3e-avatar-tracking, ${v.typescale.standard.title.medium.tracking}); background-color: var(--m3e-avatar-color, ${v.color.primaryContainer}); color: var(--m3e-avatar-label-color, ${v.color.onPrimaryContainer}); } ::slotted(img) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; width: 100%; height: 100%; }`,La=t([$("m3e-avatar")],La);let Wa=class extends(b(r)){constructor(){super(...arguments),Ea.add(this),za.set(this,void 0),Ma.set(this,void 0),this.size="medium",this.position="above-after"}attach(t){super.attach(t),e(this,Ea,"m",Ia).call(this)}detach(){super.detach(),e(this,Ea,"m",Pa).call(this)}connectedCallback(){super.connectedCallback(),a(this,za,qe.observe(()=>e(this,Ea,"m",Ia).call(this)),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,za,"f")?.call(this)}update(t){super.update(t),(t.has("position")||t.has("size")||t.has("htmlFor"))&&e(this,Ea,"m",Ia).call(this)}render(){return s`<div class="base"><slot @slotchange="${e(this,Ea,"m",Ta)}"><span aria-hidden="true"> </span></slot></div>`}};za=new WeakMap,Ma=new WeakMap,Ea=new WeakSet,Ta=function(){this.isConnected&&this.style.setProperty("--_badge-padding",this.textContent&&this.textContent.length>2?"0 "+("medium"===this.size?"0.25rem":"large"===this.size?"0.5rem":"0"):"")},Pa=function(){e(this,Ma,"f")?.call(this),a(this,Ma,void 0,"f")},Ia=async function(){if(e(this,Ea,"m",Pa).call(this),!this.control)return;let t="top-end";switch(this.position){case"above":t="top";break;case"above-before":t="top-start";break;case"after":t="right";break;case"before":t="left";break;case"below":t="bottom";break;case"below-after":t="bottom-end";break;case"below-before":t="bottom-start"}a(this,Ma,await Re(this,this.control,{position:t},(e,t)=>{this.position.includes("before")&&"before"!==this.position&&("rtl"===qe.current?e+=this.clientWidth:e-=this.clientWidth),this.position.includes("after")&&"after"!==this.position&&("rtl"===qe.current?e-=this.clientWidth:e+=this.clientWidth),this.style.left=`${e}px`,this.style.top=`${t}px`}),"f")},Wa.styles=i`:host { display: inline-block; vertical-align: baseline; } .base { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; vertical-align: baseline; box-sizing: border-box; user-select: none; padding: var(--_badge-padding); border-radius: var(--m3e-badge-shape, ${v.shape.corner.full}); color: var(--m3e-badge-color, ${v.color.onError}); background-color: var(--m3e-badge-container-color, ${v.color.error}); } :host([for]) { position: absolute; z-index: 1; } :host([for][position="above"]) { transform: translateY(var(--_badge-offset, 0px)); } :host([for][position="above-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="above-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="below"]) { transform: translateY(calc(0px - var(--_badge-offset, 0px))); } :host([for][position="below-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="before"]:not(:dir(rtl))), :host([for][position="after"]:dir(rtl)) { transform: translateX(var(--_badge-offset, 0px)); } :host([for][position="before"]:dir(rtl)), :host([for][position="after"]:not(:dir(rtl))) { transform: translateX(calc(0px - var(--_badge-offset, 0px))); } :host([size="small"]) { height: var(--m3e-badge-small-size, 0.375rem); max-height: var(--m3e-badge-small-size, 0.375rem); width: var(--m3e-badge-small-size, 0.375rem); min-width: var(--m3e-badge-small-size, 0.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.375rem); } :host([size="small"]) .base { font-size: 0; } :host([size="medium"]) { height: var(--m3e-badge-medium-size, 1.375rem); min-width: var(--m3e-badge-medium-size, 1.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.75rem); } :host([size="medium"]) .base { font-size: var(--m3e-badge-medium-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-badge-medium-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-badge-medium-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-badge-medium-tracking, ${v.typescale.standard.label.small.tracking}); } :host([size="large"]) { height: var(--m3e-badge-large-size, 1.75rem); min-width: var(--m3e-badge-large-size, 1.75rem); --_badge-offset: var(--m3e-badge-small-offset, 1rem); } :host([size="large"]) .base { font-size: var(--m3e-badge-large-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-badge-large-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-badge-large-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-badge-large-tracking, ${v.typescale.standard.label.large.tracking}); } @media (forced-colors: active) { .base { background-color: ButtonFace; color: ButtonText; outline: 1px solid ButtonText; } }`,t([m({reflect:!0})],Wa.prototype,"size",void 0),t([m({reflect:!0})],Wa.prototype,"position",void 0),Wa=t([$("m3e-badge")],Wa);let Da=class extends z{_onClick(){this.closest("m3e-bottom-sheet")?.hide()}};var Aa,Ha,Oa,Ba,Fa,Va,qa,Ra,Ua,Na,ja,Ya,Ka,Za,Ga,Xa,Ja,Qa,eo,to,ao,oo,io,ro,so,no,lo,co,ho,mo,po,uo,vo,bo,fo,go,yo,$o,xo;Da=t([$("m3e-bottom-sheet-action")],Da);let wo=xo=class extends(x(M(T(P(r))),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),Aa.add(this),Ha.set(this,t=>e(this,Aa,"m",oo).call(this,t)),Oa.set(this,t=>e(this,Aa,"m",io).call(this,t)),Ba.set(this,()=>e(this,Aa,"m",ro).call(this)),Fa.set(this,new I),Va.set(this,new W(this)),qa.set(this,new D(this)),Ra.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,Aa,"m",fo).call(this,t)})),Ua.set(this,null),Na.set(this,void 0),ja.set(this,!1),Ya.set(this,0),Ka.set(this,void 0),Za.set(this,0),Ga.set(this,0),Xa.set(this,void 0),this.modal=!1,this.open=!1,this.handle=!1,this.handleLabel="Drag handle",this.detents=[],this.detent=0,this.hideable=!1,this.hideFriction=.5}show(t=this.detent){this.open?void 0!==t&&e(this,Ya,"f")!==t&&e(this,Aa,"m",go).call(this,t):(a(this,Ka,t,"f"),this.open=!0)}hide(){this.open=!1}toggle(e){this.open?this.hide():this.show(e)}cycle(){var t;this.open?this.detents.length>0?e(this,Ya,"f")<this.detents.length-1?(a(this,Ya,(t=e(this,Ya,"f"),++t),"f"),e(this,Aa,"m",go).call(this,e(this,Ya,"f"))):this.hideable&&this.hide():this.hide():this.show()}update(e){super.update(e),e.has("modal")&&(this.role=this.modal?"dialog":"region",this.ariaModal=this.modal?"true":null,this.popover=this.modal?"manual":null)}reconnectedCallback(){super.reconnectedCallback(),e(this,Aa,"m",Ja).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Aa,"m",Ja).call(this)}updated(t){if(super.updated(t),t.has("open")){if(this.open){if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);xo.__openSheet!==this&&xo.__openSheet?.hide(),xo.__openSheet=this,this.inert=!1,window.addEventListener("resize",e(this,Ba,"f")),this.detents.length>0?(a(this,Ya,Math.min(Math.max(0,e(this,Ka,"f")??this.detent),this.detents.length-1),"f"),e(this,Aa,"m",$o).call(this,e(this,Aa,"m",mo).call(this,this.detents[e(this,Ya,"f")]))):e(this,Aa,"m",$o).call(this,Math.min(e(this,Aa,"m",mo).call(this,"fit"),e(this,Aa,"m",mo).call(this,"half"))),a(this,Ka,void 0,"f")}else{if(!this.dispatchEvent(new Event("closing",{cancelable:!0})))return void(this.open=!0);requestAnimationFrame(()=>this.inert=!0),window.removeEventListener("resize",e(this,Ba,"f")),xo.__openSheet===this&&(xo.__openSheet=void 0)}if(this.modal)if(this.open){a(this,Ua,document.activeElement,"f"),e(this,qa,"f").lock(),e(this,Va,"f").lock(),this.showPopover(),requestAnimationFrame(()=>{document.addEventListener("click",e(this,Ha,"f")),document.addEventListener("keydown",e(this,Oa,"f"))});let t=this.querySelector("[autofocus]");t&&Te.isFocusable(t)||(t=this.shadowRoot?.querySelector(".handle")),t&&H(t)}else e(this,Aa,"m",yo).call(this,0).then(()=>{e(this,qa,"f").unlock(),e(this,Va,"f").unlock(),document.removeEventListener("click",e(this,Ha,"f")),document.removeEventListener("keydown",e(this,Oa,"f")),this.hidePopover(),e(this,Ua,"f")instanceof HTMLElement&&e(this,Ua,"f").focus(),a(this,Ua,null,"f")});this.dispatchEvent(new Event(this.open?"opened":"closed"))}}render(){return s`<m3e-focus-trap ?disabled="${!this.modal}"><div class="base"><m3e-elevation class="elevation"></m3e-elevation><div class="header" @pointerdown="${e(this,Aa,"m",eo)}" @pointermove="${e(this,Aa,"m",to)}" @pointerup="${e(this,Aa,"m",ao)}">${this.handle?s`<div class="handle-row"><div id="handle" class="handle" role="button" aria-label="${this.handleLabel}" tabindex="0" @click="${e(this,Aa,"m",so)}" @keydown="${e(this,Aa,"m",no)}"><m3e-focus-ring class="focus-ring" for="handle"></m3e-focus-ring><div class="handle-touch" aria-hidden="true"></div></div></div>`:n}<slot name="header" @slotchange="${e(this,Aa,"m",Qa)}"></slot></div><div class="body"><div class="content"><slot></slot></div></div></div></m3e-focus-trap>`}};Ha=new WeakMap,Oa=new WeakMap,Ba=new WeakMap,Fa=new WeakMap,Va=new WeakMap,qa=new WeakMap,Ra=new WeakMap,Ua=new WeakMap,Na=new WeakMap,ja=new WeakMap,Ya=new WeakMap,Ka=new WeakMap,Za=new WeakMap,Ga=new WeakMap,Xa=new WeakMap,Aa=new WeakSet,Ja=function(){const t=this.shadowRoot?.querySelector(".content");t&&(a(this,Za,t.clientHeight,"f"),e(this,Ra,"f").observe(t));const o=this.shadowRoot?.querySelector(".header");o&&(a(this,Ga,o.clientHeight,"f"),e(this,Ra,"f").observe(o))},Qa=function(e){k(this,"has-header",g(e.target))},eo=function(t){t.target instanceof HTMLElement&&Te.isFocusable(t.target)||(t.target.setPointerCapture(t.pointerId),t.target.style.cursor="grabbing",e(this,Fa,"f").reset(),e(this,Fa,"f").add(t.clientY),a(this,Na,{startY:t.clientY,startHeight:this.clientHeight,maxHeight:e(this,Aa,"m",po).call(this),minHeight:e(this,Aa,"m",uo).call(this)},"f"),a(this,ja,!1,"f"))},to=function(t){if(!e(this,Na,"f"))return;if(Math.abs(t.clientY-e(this,Na,"f").startY)<=8)return;(t.getCoalescedEvents?.()??[t]).forEach(a=>e(this,Fa,"f").add(a.clientY,t.timeStamp));let o=e(this,Na,"f").startHeight-(t.clientY-e(this,Na,"f").startY);if(o<e(this,Na,"f").minHeight){const t=(e(this,Na,"f").minHeight-o)*this.hideFriction;o=e(this,Na,"f").minHeight-t}e(this,Aa,"m",$o).call(this,Math.min(e(this,Na,"f").maxHeight,o)),a(this,ja,!0,"f")},ao=function(t){if(e(this,Na,"f"))try{if(t.target.releasePointerCapture(t.pointerId),t.target.style.cursor="",!e(this,ja,"f"))return;const a="touch"===t.pointerType?1200:500,o=e(this,Fa,"f").getVelocity();if(e(this,Fa,"f").reset(),this.hideable&&o>=a)this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide();else if(Math.abs(o)>=a)if(this.detents.length>0){const t=e(this,Aa,"m",lo).call(this);t!==e(this,Ya,"f")&&e(this,Aa,"m",go).call(this,t)}else e(this,Aa,"m",yo).call(this,e(this,Aa,"m",mo).call(this,"full"));else{const t=20;if(this.hideable){const a=e(this,Na,"f").minHeight;if(this.clientHeight<a-t)return void this.hide()}this.detents.length>0?e(this,Aa,"m",go).call(this,e(this,Aa,"m",ho).call(this)):this.clientHeight<e(this,Na,"f").minHeight&&e(this,Aa,"m",yo).call(this,e(this,Na,"f").minHeight)}}finally{a(this,Na,void 0,"f")}},oo=function(e){this.open&&this.modal&&!e.composedPath().includes(this)&&this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide()},io=function(e){this.open&&this.modal&&"Escape"===e.key&&!e.shiftKey&&!e.ctrlKey&&(e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},ro=function(){if(this.detents.length>0&&"half"===this.detents[e(this,Ya,"f")])return void e(this,Aa,"m",$o).call(this,e(this,Aa,"m",mo).call(this,"half"));const t=e(this,Aa,"m",po).call(this);(O(this,"-full")||this.clientHeight>t)&&e(this,Aa,"m",$o).call(this,t)},so=function(){e(this,ja,"f")||this.cycle(),a(this,ja,!1,"f")},no=function(t){if(!t.defaultPrevented&&Pe(t))switch(t.key){case"Up":case"ArrowUp":if(t.preventDefault(),this.detents.length>0){const t=e(this,Aa,"m",lo).call(this);t!==e(this,Ya,"f")&&e(this,Aa,"m",go).call(this,t)}else e(this,Aa,"m",yo).call(this,e(this,Aa,"m",mo).call(this,"full"));break;case"Down":case"ArrowDown":if(t.preventDefault(),this.detents.length>0){const t=e(this,Aa,"m",co).call(this);t!==e(this,Ya,"f")?e(this,Aa,"m",go).call(this,t):this.hideable&&this.hide()}else this.hideable&&this.hide()}},lo=function(){const t=this.clientHeight;let a=1/0,o=e(this,Ya,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ya,"f"))continue;const r=e(this,Aa,"m",mo).call(this,this.detents[i]);r>t&&r<a&&(a=r,o=i)}return o},co=function(){const t=this.clientHeight;let a=-1/0,o=e(this,Ya,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ya,"f"))continue;const r=e(this,Aa,"m",mo).call(this,this.detents[i]);r<t&&r>a&&(a=r,o=i)}return o},ho=function(){const t=this.clientHeight;let a=e(this,Ya,"f"),o=1/0;for(let i=0;i<this.detents.length;i++){const r=e(this,Aa,"m",mo).call(this,this.detents[i]),s=Math.abs(t-r);s<o&&(o=s,a=i)}return a},mo=function(t){switch(t){case"collapsed":return e(this,Aa,"m",uo).call(this);case"half":return.5*e(this,Aa,"m",po).call(this);case"full":return e(this,Aa,"m",po).call(this);case"fit":return e(this,Aa,"m",bo).call(this)}return t.endsWith("%")?e(this,Aa,"m",po).call(this)*(parseFloat(t)/100):t.endsWith("px")?parseFloat(t):e(this,Aa,"m",uo).call(this)},po=function(){const e=this.shadowRoot?.querySelector(".base");return window.innerHeight-(e?B(e,"var(--_bottom-sheet-top-space)"):0)},uo=function(){return this.detents.includes("fit")&&!this.detents.includes("collapsed")?e(this,Aa,"m",bo).call(this):e(this,Aa,"m",vo).call(this)},vo=function(){const t=this.shadowRoot?.querySelector(".base");return e(this,Ga,"f")+(t?B(t,"var(--_bottom-sheet-peek-height)"):0)},bo=function(){const t=this.shadowRoot?.querySelector(".body");if(!t)return 0;const a=getComputedStyle(t);return e(this,Ga,"f")+e(this,Za,"f")+parseFloat(a.paddingBlockStart)+parseFloat(a.paddingBlockEnd)},fo=function(t){const o=e(this,Za,"f"),i=e(this,Ga,"f");for(const e of t)e.target.classList.contains("content")?a(this,Za,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f"):e.target.classList.contains("header")&&a(this,Ga,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f");if(this.open&&this.detents.length>0&&(o!==e(this,Za,"f")||i!==e(this,Ga,"f")))switch(this.detents[e(this,Ya,"f")]){case"fit":e(this,Aa,"m",$o).call(this,e(this,Aa,"m",bo).call(this));break;case"collapsed":e(this,Aa,"m",$o).call(this,e(this,Aa,"m",uo).call(this))}},go=function(t){t>=0&&t<this.detents.length&&(a(this,Ya,t,"f"),e(this,Aa,"m",yo).call(this,e(this,Aa,"m",mo).call(this,this.detents[t])))},yo=async function(t){e(this,Xa,"f")&&(e(this,Aa,"m",$o).call(this,this.clientHeight),e(this,Xa,"f")?.cancel(),a(this,Xa,void 0,"f")),S()?e(this,Aa,"m",$o).call(this,t):(a(this,Xa,this.animate([{"--_bottom-sheet-height":`${this.clientHeight}px`},{"--_bottom-sheet-height":`${t}px`}],{duration:250,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}),"f"),e(this,Xa,"f").onfinish=()=>{e(this,Aa,"m",$o).call(this,t),a(this,Xa,void 0,"f")},await e(this,Xa,"f").finished)},$o=function(t){this.style.setProperty("--_bottom-sheet-height",`${t}px`),k(this,"-full",t===e(this,Aa,"m",po).call(this));const a=this.shadowRoot?.querySelector(".content");a&&(a.inert=t<=e(this,Aa,"m",vo).call(this))},F(i`@property --_bottom-sheet-height { syntax: "<length>"; inherits: false; initial-value: 50vh; } m3e-bottom-sheet > [slot="header"] { margin-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); margin-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); }</length>`),wo.styles=i`:host { display: block; position: fixed; left: 50%; top: calc(100vh - var(--_bottom-sheet-height)); margin: 0; padding: 0; outline: none; overflow: hidden; border: none; box-sizing: border-box; width: var(--m3e-bottom-sheet-width, 100%); max-width: var(--m3e-bottom-sheet-max-width, 40rem); height: var(--_bottom-sheet-height); color: var(--m3e-bottom-sheet-color, ${v.color.onSurface}); background-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } :host(:not(:state(-no-animate))) { transition: ${o(`transform ${v.motion.duration.medium2} ${v.motion.easing.standardDecelerate},\n border-radius ${v.motion.duration.medium2} ${v.motion.easing.standard}`)}; } :host(:not([modal]):not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-elevation, ${v.elevation.level1}); } :host([modal]:not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-modal-elevation, ${v.elevation.level1}); } :host(:state(-full)) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-full-elevation, ${v.elevation.level1}); } :host(:not([modal])) { z-index: var(--m3e-bottom-sheet-z-index, 10); } :host(:not([modal]):not([open])), :host([modal]:not(:popover-open)) { border-radius: var(--m3e-bottom-sheet-minimized-container-shape, ${v.shape.corner.none}); transform: translateX(-50%) translateY(100%); } :host(:not([modal])[open]:not(:state(-full))), :host([modal]:not(:state(-full)):popover-open) { border-radius: var(--m3e-bottom-sheet-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]:state(-full)), :host([modal]:state(-full):popover-open) { border-radius: var(--m3e-bottom-sheet-full-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]), :host([modal]:popover-open) { transform: translateX(-50%) translateY(0); } :host([modal]:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) var(--m3e-bottom-sheet-scrim-opacity, 32%), transparent ); } :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) 0%, transparent ); } } .base { display: flex; border-radius: inherit; flex-direction: column; height: 100%; --_bottom-sheet-peek-height: var(--m3e-bottom-sheet-peek-height, 0); --_bottom-sheet-top-space: var(--m3e-bottom-sheet-compact-top-space, 4.5rem); } @media (max-height: 640px) { .base { --_bottom-sheet-top-space: var(--m3e-bottom-sheet-top-space, 3.5rem); } } .body { flex: 1 1 auto; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; padding-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); padding-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); font-size: var(--m3e-bottom-sheet-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-bottom-sheet-content-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-bottom-sheet-content-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var(--m3e-bottom-sheet-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .content { height: fit-content; } :host(:not([handle])) .header { display: none; } :host(:not([handle])) .body, .header { border-top-left-radius: inherit; border-top-right-radius: inherit; padding-block-start: var(--m3e-bottom-sheet-padding-block, 0.5rem); font-size: var(--m3e-bottom-sheet-header-font-size, ${v.typescale.standard.title.large.fontSize}); font-weight: var(--m3e-bottom-sheet-header-font-weight, ${v.typescale.standard.title.large.fontWeight}); line-height: var(--m3e-bottom-sheet-header-line-height, ${v.typescale.standard.title.large.lineHeight}); letter-spacing: var(--m3e-bottom-sheet-header-tracking, ${v.typescale.standard.title.large.tracking}); } .header { cursor: grab; touch-action: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; flex: none; display: flex; flex-direction: column; min-height: 3rem; --m3e-app-bar-container-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } .handle-row { position: relative; flex: none; display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible; height: var(--m3e-bottom-sheet-handle-container-height, 1.5rem); } :host(:not(:state(-no-animate))) .handle-row { transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard},\n padding ${v.motion.duration.short3} ${v.motion.easing.standard},\n height ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .handle { position: relative; width: var(--m3e-bottom-sheet-handle-width, 2rem); height: var(--m3e-bottom-sheet-handle-height, 4px); border-radius: var(--m3e-bottom-sheet-handle-shape, ${v.shape.corner.full}); background-color: var(--m3e-bottom-sheet-handle-color, ${v.color.onSurfaceVariant}); } .handle-touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); right: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); top: calc( 0px - calc( calc(3rem - var(--m3e-bottom-sheet-handle-container-height, 1.5rem)) - calc( var(--m3e-bottom-sheet-handle-height, 4px) / 2 ) ) ); } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))), :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop, :host(:not(:state(-no-animate))) .handle-row { transition: none; } } @media (forced-colors: active) { :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } .handle { background-color: ButtonText; } }`,t([m({type:Boolean,reflect:!0})],wo.prototype,"modal",void 0),t([m({type:Boolean,reflect:!0})],wo.prototype,"open",void 0),t([m({type:Boolean})],wo.prototype,"handle",void 0),t([m({attribute:"handle-label"})],wo.prototype,"handleLabel",void 0),t([m({attribute:"detents",converter:V})],wo.prototype,"detents",void 0),t([m({type:Number})],wo.prototype,"detent",void 0),t([m({type:Boolean,reflect:!0})],wo.prototype,"hideable",void 0),t([m({attribute:"hide-friction",type:Number})],wo.prototype,"hideFriction",void 0),wo=xo=t([$("m3e-bottom-sheet")],wo);let ko=class extends(b(z)){constructor(){super(...arguments),this.secondary=!1}attach(e){e instanceof wo&&(super.attach(e),this.parentElement&&(e.modal?this.parentElement.ariaHasPopup="dialog":this.secondary||(this.parentElement.ariaExpanded="false",Ie(this.parentElement,"aria-controls",e.id),this.parentElement.id&&Ie(e,"aria-labelledby",this.parentElement.id))))}detach(){this.control&&this.parentElement&&!this.secondary&&We(this.parentElement,"aria-controls",this.control.id),super.detach()}_onClick(){this.control instanceof wo&&(this.control.modal?this.control.show(this.detent):(this.control.toggle(this.detent),!this.secondary&&this.parentElement&&(this.parentElement.ariaExpanded=`${this.control.open}`)))}};t([m({type:Number})],ko.prototype,"detent",void 0),t([m({type:Boolean})],ko.prototype,"secondary",void 0),ko=t([$("m3e-bottom-sheet-trigger")],ko);const Co={"extra-small":{containerHeight:o(`calc(var(--m3e-button-extra-small-container-height, var(--m3e-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-button-extra-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-extra-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-extra-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-extra-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-extra-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-extra-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-extra-small-leading-space, var(--m3e-button-leading-space, 0.75rem))"),trailingSpace:o("var(--m3e-button-extra-small-trailing-space, var(--m3e-button-trailing-space, 0.75rem))"),iconLabelSpace:o("var(--m3e-button-extra-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},small:{containerHeight:o(`calc(var(--m3e-button-small-container-height, var(--m3e-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-button-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-small-leading-space, var(--m3e-button-leading-space, 1rem))"),trailingSpace:o("var(--m3e-button-small-trailing-space, var(--m3e-button-trailing-space, 1rem))"),iconLabelSpace:o("var(--m3e-button-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},medium:{containerHeight:o(`calc(var(--m3e-button-medium-container-height, var(--m3e-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-button-medium-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-medium-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.body.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-medium-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.body.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-medium-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.body.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-medium-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.body.large.tracking}))`),iconSize:o("var(--m3e-button-medium-icon-size, var(--m3e-button-icon-size, 1.5rem))"),shapeRound:o(`var(--m3e-button-medium-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-medium-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-button-medium-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-button-medium-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-medium-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.medium}))`),leadingSpace:o("var(--m3e-button-medium-leading-space, var(--m3e-button-leading-space, 1.5rem))"),trailingSpace:o("var(--m3e-button-medium-trailing-space, var(--m3e-button-trailing-space, 1.5rem))"),iconLabelSpace:o("var(--m3e-button-medium-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},large:{containerHeight:o(`calc(var(--m3e-button-large-container-height, var(--m3e-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-large-outline-thickness, var(--m3e-button-outline-thickness, 2px))"),labelTextFontSize:o(`var(--m3e-button-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o("var(--m3e-button-large-icon-size, var(--m3e-button-icon-size, 2rem))"),shapeRound:o(`var(--m3e-button-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-large-leading-space, var(--m3e-button-leading-space, 3rem))"),trailingSpace:o("var(--m3e-button-large-trailing-space, var(--m3e-button-trailing-space, 3rem))"),iconLabelSpace:o("var(--m3e-button-large-icon-label-space, var(--m3e-button-icon-label-space, 0.75rem))")},"extra-large":{containerHeight:o(`calc(var(--m3e-button-extra-large-container-height, var(--m3e-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-extra-large-outline-thickness, var(--m3e-button-outline-thickness, 3px))"),labelTextFontSize:o(`var(--m3e-button-extra-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.large.tracking}))`),iconSize:o("var(--m3e-button-extra-large-icon-size, var(--m3e-button-icon-size, 2.5rem))"),shapeRound:o(`var(--m3e-button-extra-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-extra-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-extra-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-extra-large-leading-space, var(--m3e-button-leading-space, 4rem))"),trailingSpace:o("var(--m3e-button-extra-large-trailing-space, var(--m3e-button-trailing-space, 4rem))"),iconLabelSpace:o("var(--m3e-button-extra-large-icon-label-space, var(--m3e-button-icon-label-space, 1rem))")}};function So(e){return i`:host([size="${o(e)}"]) .base { height: ${Co[e].containerHeight}; } :host([size="${o(e)}"]) .wrapper { padding-inline-start: ${Co[e].leadingSpace}; padding-inline-end: ${Co[e].trailingSpace}; column-gap: ${Co[e].iconLabelSpace}; } :host( [size="${o(e)}"]:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not( :state(-pressed) ) ) .wrapper { padding-inline-start: calc( ${Co[e].leadingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); padding-inline-end: calc( ${Co[e].trailingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); } :host([size="${o(e)}"]) .label { font-size: ${Co[e].labelTextFontSize}; font-weight: ${Co[e].labelTextFontWeight}; line-height: ${Co[e].labelTextLineHeight}; letter-spacing: ${Co[e].labelTextTracking}; } :host([size="${o(e)}"]) .icon { font-size: ${Co[e].iconSize}; --m3e-icon-size: ${Co[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${Co[e].outlineThickness}); outline-width: ${Co[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]) .base { border-radius: var(--_button-shape, ${Co[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${Co[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${Co[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Co[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${Co[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Co[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Co[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Co[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Co[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${Co[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${Co[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${Co[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${Co[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Co[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var(--_button-start-shape-pressed-morph, ${Co[e].shapePressedMorph}); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${Co[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${Co[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${Co[e].shapePressedMorph}); }`}const _o=[So("extra-small"),So("small"),So("medium"),So("large"),So("extra-large")],Lo=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]), ::slotted([slot="trailing-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]), ::slotted(svg[slot="selected-icon"]), ::slotted(svg[slot="trailing-icon"]) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected-icon"], :host([toggle][selected]) .base.with-selected-icon slot[name="icon"] { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected))) { transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .label, .icon { transition: none; } }`,Eo={elevated:{labelTextColor:o(`var(--m3e-elevated-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-elevated-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-button-container-color, var(--m3e-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-elevated-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-elevated-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-elevated-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{labelTextColor:o(`var(--m3e-outlined-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSurfaceVariant}))`),iconColor:o(`var(--m3e-outlined-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-outline-color, var(--m3e-button-outline-color, ${v.color.outlineVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedIconColor:o(`var(--m3e-outlined-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-outlined-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-outlined-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-button-disabled-outline-color, var(--m3e-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-hover-outline-color, var(--m3e-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-focus-outline-color, var(--m3e-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-pressed-outline-color, var(--m3e-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{labelTextColor:o(`var(--m3e-filled-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-filled-button-icon-color, var(--m3e-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-button-container-color, var(--m3e-button-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-filled-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-filled-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-filled-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-filled-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-filled-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-filled-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-filled-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-filled-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{labelTextColor:o(`var(--m3e-tonal-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-tonal-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-button-container-color, var(--m3e-button-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-tonal-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onSecondary}))`),selectedIconColor:o(`var(--m3e-tonal-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tonal-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tonal-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tonal-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tonal-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-tonal-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},text:{labelTextColor:o(`var(--m3e-text-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-text-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-text-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-text-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-text-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-text-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-text-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-text-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-text-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-text-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-text-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-text-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function zo(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Eo[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${Eo[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Eo[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Eo[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Eo[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Eo[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Eo[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Eo[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Eo[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Eo[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Eo[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${Eo[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Eo[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${Eo[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${Eo[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Eo[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Eo[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${Eo[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${Eo[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].selectedLabelTextColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].focus.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].focus.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].focus.selectedLabelTextColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].hover.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].hover.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].hover.selectedLabelTextColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].pressed.labelTextColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .label { color: ${Eo[e].pressed.unselectedLabelTextColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .label { color: ${Eo[e].pressed.selectedLabelTextColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${Eo[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${Eo[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Eo[e].disabled.containerElevation??o("unset")}; outline-color: ${Eo[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${Eo[e].disabled.containerColor} ${Eo[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${Eo[e].disabled.labelTextColor} ${Eo[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Eo[e].disabled.iconColor} ${Eo[e].disabled.iconOpacity}, transparent ); }`}const Mo=[zo("text"),zo("elevated"),zo("outlined"),zo("filled"),zo("tonal"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var To,Po,Io,Wo,Do,Ao;let Ho=class extends(q(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),To.add(this),Po.set(this,t=>e(this,To,"m",Io).call(this,t)),this.variant="text",this.shape="rounded",this.size="small",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new K(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new Z(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,To,"m",Do).call(this),S()?e(this,To,"m",Ao).call(this,!0):requestAnimationFrame(()=>e(this,To,"m",Ao).call(this,!0))):e(this,To,"m",Ao).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected-icon" aria-hidden="true" @slotchange="${e(this,To,"m",Wo)}"></slot>`:n}<slot class="icon" name="icon" aria-hidden="true"></slot><div class="label">${this.toggle&&this.selected?s`<slot name="selected"><slot></slot></slot>`:s`<slot></slot>`}</div><slot class="icon" name="trailing-icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Po,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>C(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),C(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,Po,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(C(this,"-pressed"),C(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,To,"m",Do).call(this,!0))}};var Oo,Bo,Fo,Vo;Po=new WeakMap,To=new WeakSet,Io=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},Wo=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},Do=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},Ao=function(e){k(this,"-pressed",e),k(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),k(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),C(r,"-adjacent-pressed"))}}},Ho.styles=[_o,Mo,Lo],t([h(".base")],Ho.prototype,"_base",void 0),t([h(".elevation")],Ho.prototype,"_elevation",void 0),t([h(".focus-ring")],Ho.prototype,"_focusRing",void 0),t([h(".state-layer")],Ho.prototype,"_stateLayer",void 0),t([h(".ripple")],Ho.prototype,"_ripple",void 0),t([m({reflect:!0})],Ho.prototype,"variant",void 0),t([m({reflect:!0})],Ho.prototype,"shape",void 0),t([m({reflect:!0})],Ho.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],Ho.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],Ho.prototype,"selected",void 0),t([y(40)],Ho.prototype,"_handleResize",null),Ho=t([$("m3e-button")],Ho);let qo=class extends(f(r,"group")){constructor(){super(...arguments),Oo.add(this),Bo.set(this,new Z(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:e=>{this._base&&(e&&"connected"!==this.variant?(this._base.classList.add("pressed"),this._base.style.setProperty("--_button-group-width",`${this._base.getBoundingClientRect().width}px`)):(this._base.style.removeProperty("--_button-group-width"),this._base.classList.remove("pressed")))}})),this.variant="standard",this.size="small",this.multi=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("disable-role")&&(this.role=null)}disconnectedCallback(){super.disconnectedCallback(),this._base?.style.removeProperty("--_button-group-width"),this._base?.classList.remove("pressed")}update(t){super.update(t),(t.has("multi")||t.has("variant"))&&e(this,Oo,"m",Fo).call(this),t.has("variant")&&this._base?.style.removeProperty("--_button-group-width")}render(){return s`<div class="base"><slot @slotchange="${e(this,Oo,"m",Fo)}" @change="${e(this,Oo,"m",Vo)}"></slot></div>`}};function Ro(e,t,a){const o=new Date;return o.setFullYear(e,t,a),o.setHours(0,0,0,0),o}function Uo(e,t){return Ro(e.getFullYear(),e.getMonth(),e.getDate()+t)}function No(e,t){let a=Ro(e.getFullYear(),e.getMonth()+t,e.getDate());return a.getMonth()!=((e.getMonth()+t)%12+12)%12&&(a=Ro(a.getFullYear(),a.getMonth(),0)),a}function jo(e,t){return No(e,12*t)}function Yo(e,t){return e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()}function Ko(e,t){return e&&t?0==Yo(e,t):e==t}function Zo(e,t,a){return o=e.getFullYear()-function(e,t){return t?t.getFullYear()-Qo+1:e?e.getFullYear():0}(t,a),(o%(i=Qo)+i)%i;var o,i}function Go(e,t,a){return e.getFullYear()-Zo(e,t,a)}function Xo(e,t,a){return Go(e,t,a)+Qo-1}function Jo(e,t,a){return t&&Yo(e,t)<0?t:a&&Yo(e,a)>0?a:e}Bo=new WeakMap,Oo=new WeakSet,Fo=function(){const t=this.buttons;for(const t of e(this,Bo,"f").targets)e(this,Bo,"f").unobserve(t);const a=[...t].some(e=>e.toggle);this.hasAttribute("disable-role")||(this.role=a&&!this.multi?"radiogroup":"group");const o="radiogroup"===this.role?"radio":"button";t.forEach((a,i)=>{if(e(this,Bo,"f").observe(a),k(a,"-connected","connected"===this.variant),E(a,"-grouped"),k(a,"-first",0==i),k(a,"-last",i==t.length-1),!this.hasAttribute("disable-role")&&a.role!==o&&a.toggle){const e=a.toggle?a.selected?"true":"false":null;a.role=o,"button"===a.role?(a.ariaPressed=e,a.ariaChecked=null):(a.ariaChecked=e,a.ariaPressed=null)}})},Vo=function(e){if(!this.multi&&e.target instanceof HTMLElement&&("M3E-BUTTON"===e.target.tagName||"M3E-ICON-BUTTON"===e.target.tagName)){if(!X(e.target)||!e.target.selected)return;for(const t of this.buttons)t!==e.target&&t.selected&&(t.selected=!1)}},qo.styles=i`:host { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } .base { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } :host([variant="standard"]) { justify-content: center; } :host([variant="connected"]) .base { flex: 1 1 auto; } :host([variant="standard"]) .base { width: fit-content; flex: none; } :host([variant="standard"]) .base.pressed { justify-content: space-between; width: var(--_button-group-width); } :host([variant="standard"][size="extra-small"]) .base { column-gap: var(--m3e-standard-button-group-extra-small-spacing, 1.125rem); } :host([variant="standard"][size="small"]) .base { column-gap: var(--m3e-standard-button-group-small-spacing, 0.75rem); } :host([variant="standard"][size="medium"]).base { column-gap: var(--m3e-standard-button-group-medium-spacing, 0.5rem); } :host([variant="standard"][size="large"]) .base { column-gap: var(--m3e-standard-button-group-large-spacing, 0.5rem); } :host([variant="standard"][size="extra-large"]) .base { column-gap: var(--m3e-standard-button-group-extra-large-spacing, 0.5rem); } :host([variant="connected"]) .base { column-gap: var(--m3e-connected-button-group-spacing, 0.125rem); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-first)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-last)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-first)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-end-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-last)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-start-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-first)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-last)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-first)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-last)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-first)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-last)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); }`,t([h(".base")],qo.prototype,"_base",void 0),t([m({reflect:!0})],qo.prototype,"variant",void 0),t([m({reflect:!0})],qo.prototype,"size",void 0),t([m({type:Boolean})],qo.prototype,"multi",void 0),t([p({slot:"",selector:"m3e-button,m3e-icon-button",flatten:!0})],qo.prototype,"buttons",void 0),qo=t([$("m3e-button-group")],qo);const Qo=15;class ei extends r{constructor(){super(...arguments),this.today=new Date,this.date=null,this.activeDate=new Date,this.minDate=null,this.maxDate=null}async focusActiveCell(){this.isUpdatePending&&await this.updateComplete,this._activeItem&&await H(this._activeItem)}_changeActiveDate(e){Ko(e=Jo(e,this.minDate,this.maxDate),this.activeDate)||(this._activeItem?.style.setProperty("--m3e-state-layer-duration","0ms"),this._activeItem?.blur(),this._activeItem?.style.removeProperty("--m3e-state-layer-duration"),this.activeDate=e,this.dispatchEvent(new Event("active-change",{bubbles:!1})))}}
|
|
6
|
+
import{__classPrivateFieldGet as e,__decorate as t,__classPrivateFieldSet as a}from"tslib";import{unsafeCSS as o,css as i,LitElement as r,html as s,nothing as n,isServer as l,noChange as c,svg as d}from"lit";import{query as h,property as m,queryAssignedElements as p,state as u}from"lit/decorators.js";import{DesignToken as v,HtmlFor as b,Role as f,hasAssignedNodes as g,debounce as y,customElement as $,EventAttribute as x,MutationController as w,setCustomState as k,deleteCustomState as C,prefersReducedMotion as S,scrollIntoViewIfNeeded as _,forcedColorsActive as L,addCustomState as E,ActionElementBase as z,ReconnectedCallback as M,SuppressInitialAnimation as T,AttachInternals as P,VelocityTracker as I,ScrollLockController as W,InertController as D,ResizeController as A,focusWhenReady as H,hasCustomState as O,computeCssSize as B,registerStyleSheet as F,spaceSeparatedStringConverter as q,KeyboardClick as V,LinkButton as R,FormSubmitter as U,Focusable as N,DisabledInteractive as j,Disabled as Y,FocusController as K,PressedController as Z,renderPseudoLink as G,isSelectedMixin as X,dateConverter as J,Labelled as Q,RequiredConstraintValidation as ee,Dirty as te,Touched as ae,Required as oe,ConstraintValidation as ie,CheckedIndeterminate as re,FormAssociated as se,HoverController as ne,formValue as le,isDisabledMixin as ce,isDisabledInteractiveMixin as de,isLinkButtonMixin as he,getTextContent as me,Vertical as pe,Selected as ue,ScrollController as ve,isReadOnlyMixin as be,interceptProperty as fe,computeLineCount as ge,generateClipPaths as ye,Checked as $e,AnimationLoopController as xe,resolveFragmentUrl as we,safeStyleMap as ke,updateLabels as Ce,waitForUpgrade as Se,guid as _e,IntersectionController as Le,LongPressController as Ee}from"@m3e/web/core";import{ListKeyManager as ze,M3eLiveAnnouncer as Me,M3eInteractivityChecker as Te,isModifierAllowed as Pe,addAriaReferencedId as Ie,removeAriaReferencedId as We,selectionManager as De,SelectionManager as Ae,ListManager as He,RovingTabIndexManager as Oe,M3eAriaDescriber as Be,typeaheadLabel as Fe}from"@m3e/web/core/a11y";import{M3eOptGroupElement as qe}from"@m3e/web/option";import{M3eDirectionality as Ve}from"@m3e/web/core/bidi";import{positionAnchor as Re,M3eFloatingPanelElement as Ue}from"@m3e/web/core/anchoring";import{classMap as Ne}from"lit/directives/class-map.js";import{ifDefined as je}from"lit/directives/if-defined.js";import{M3eButtonElement as Ye}from"@m3e/web/button";import{M3eIconButtonElement as Ke}from"@m3e/web/icon-button";import"@m3e/web/tooltip";import{directive as Ze,Directive as Ge,PartType as Xe}from"lit/directive.js";import{M3eBreakpointObserver as Je,Breakpoint as Qe}from"@m3e/web/core/layout";import"@m3e/web/calendar";import{M3eNavBarElement as et}from"@m3e/web/nav-bar";import"@m3e/web/form-field";import"@m3e/web/select";import"@m3e/web/button-group";import"@m3e/web/slide-group";import{M3ePlatform as tt}from"@m3e/web/core/platform";const at={small:{containerHeight:o("var(--m3e-app-bar-small-container-height, 4rem)"),titleTextFontSize:o(`var(--m3e-app-bar-small-title-text-font-size, ${v.typescale.standard.title.large.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-small-title-text-font-weight, ${v.typescale.standard.title.large.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-small-title-text-line-height, ${v.typescale.standard.title.large.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.title.large.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-small-subtitle-text-font-size, ${v.typescale.standard.label.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-small-subtitle-text-font-weight, ${v.typescale.standard.label.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-small-subtitle-text-line-height, ${v.typescale.standard.label.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.label.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-small-heading-padding-left, 0.25rem)"),headingPaddingRight:o("var(--m3e-app-bar-small-heading-padding-right, 0.25rem)")},medium:{containerHeight:o("var(--m3e-app-bar-medium-container-height, 7rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-medium-container-height-with-subtitle, 8.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-medium-title-text-font-size, ${v.typescale.standard.headline.medium.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-medium-title-text-font-weight, ${v.typescale.standard.headline.medium.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-medium-title-text-line-height, ${v.typescale.standard.headline.medium.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.headline.medium.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-medium-subtitle-text-font-size, ${v.typescale.standard.title.small.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-medium-subtitle-text-font-weight, ${v.typescale.standard.title.small.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-medium-subtitle-text-line-height, ${v.typescale.standard.title.small.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.title.small.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-medium-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-medium-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-medium-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-medium-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-medium-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-medium-subtitle-max-lines, 1)")},large:{containerHeight:o("var(--m3e-app-bar-large-container-height, 7.5rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-large-container-height-with-subtitle, 9.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-large-title-text-font-size, ${v.typescale.standard.display.small.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-large-title-text-font-weight, ${v.typescale.standard.display.small.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-large-title-text-line-height, ${v.typescale.standard.display.small.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.display.small.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-large-subtitle-text-font-size, ${v.typescale.standard.title.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-large-subtitle-text-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-large-subtitle-text-line-height, ${v.typescale.standard.title.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.title.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-large-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-large-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-large-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-large-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-large-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-large-subtitle-max-lines, 1)")}};function ot(e){return i`:host([size="${o(e)}"]) .base:not(.with-subtitle) { min-height: ${at[e].containerHeight}; } :host([size="${o(e)}"]) .base.with-subtitle { min-height: ${at[e].containerHeightWithSubtitle??at[e].containerHeight}; } :host([size="${o(e)}"]) .title { font-size: ${at[e].titleTextFontSize}; font-weight: ${at[e].titleTextFontWeight}; line-height: ${at[e].titleTextLineHeight}; letter-spacing: ${at[e].titleTextTracking}; } :host([size="${o(e)}"]) .subtitle { font-size: ${at[e].subtitleTextFontSize}; font-weight: ${at[e].subtitleTextFontWeight}; line-height: ${at[e].subtitleTextLineHeight}; letter-spacing: ${at[e].subtitleTextTracking}; } :host(:not([centered])[size="${o(e)}"]) .label { padding-inline-start: ${at[e].headingPaddingLeft}; padding-inline-end: ${at[e].headingPaddingRight}; } :host([centered][size="${o(e)}"]) .label { padding-inline: ${at[e].headingPaddingLeft}; } :host([size="${o(e)}"]) .base { padding-block-start: ${at[e].paddingTop??o("unset")}; padding-block-end: ${at[e].paddingBottom??o("unset")}; } ${at[e].titleMaxLines?i`:host([size="${o(e)}"]) .title { display: -webkit-box; -webkit-line-clamp: ${at[e].titleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${at[e].titleMaxLines}; }`:i``} ${at[e].subtitleMaxLines?i`:host([size="${o(e)}"]) .subtitle { display: -webkit-box; -webkit-line-clamp: ${at[e].subtitleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${at[e].subtitleMaxLines}; }`:i``}`}const it=[ot("small"),ot("medium"),ot("large")],rt=o(`var(--m3e-app-bar-container-color, ${v.color.surface})`),st=o(`var(--m3e-app-bar-container-color-on-scroll, ${v.color.surfaceContainer})`),nt=o(`var(--m3e-app-bar-container-elevation, ${v.elevation.level0})`),lt=o(`var(--m3e-app-bar-container-elevation-on-scroll, ${v.elevation.level1})`),ct=o(`var(--m3e-app-bar-title-text-color, ${v.color.onSurface})`),dt=o(`var(--m3e-app-bar-subtitle-text-color, ${v.color.onSurfaceVariant})`),ht=o("var(--m3e-app-bar-padding-left, 0.25rem)"),mt=o("var(--m3e-app-bar-padding-right, 0.25rem)"),pt=i`:host { display: block; flex: none; } :host([size="small"]) .base, :host(:not([size="small"]):not([centered])) .heading { padding-inline-start: ${ht}; padding-inline-end: ${mt}; } .base { box-sizing: border-box; display: flex; transition: ${o(`background-color ${v.motion.duration.medium1} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium1} ${v.motion.easing.standard}`)}; } .base:not(.on-scroll) { background-color: ${rt}; box-shadow: ${nt}; } .base.on-scroll { background-color: ${st}; box-shadow: ${lt}; } .leading-icon, .trailing-icon { display: flex; flex: none; align-items: center; } .leading-icon { min-width: var(--_leading-icon-min-width); } .trailing-icon { min-width: var(--_trailing-icon-min-width); } .heading { display: flex; align-items: center; } :host([size="small"]) .heading { flex: 1 1 auto; } .spacer { flex: 1 1 auto; } .label { display: flex; flex-direction: column; flex: none; } .title { color: ${ct}; } .subtitle { color: ${dt}; } .base:not(.with-title) .title, .base:not(.with-subtitle) .subtitle, .base:not(.with-title):not(.with-subtitle) .label, .base:not(.with-trailing-icon) .trailing-icon { display: none; } :host([size="small"]) .base { align-items: center; } :host([size="small"]) .heading { min-width: 0; } :host([size="small"]) .label { flex: 1 1 auto; min-width: 0; } :host([size="small"]) .title, :host([size="small"]) .subtitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } :host(:not([size="small"])) .base { flex-direction: column; } :host([centered]) .title, :host([centered]) .subtitle { text-align: center; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } .base:not(.on-scroll), .base.on-scroll { background-color: Canvas; box-shadow: unset; } .title { color: CanvasText; } .subtitle { color: FieldText; } }`;var ut,vt,bt,ft,gt,yt,$t,xt,wt,kt,Ct,St;let _t=class extends(b(f(r,"banner"))){constructor(){super(...arguments),ut.add(this),vt.set(this,e=>this._updateScroll(e)),bt.set(this,()=>e(this,ut,"m",Ct).call(this)),this.centered=!1,this.size="small"}attach(t){super.attach(t),t instanceof HTMLIFrameElement?(t.addEventListener("load",e(this,bt,"f")),e(this,ut,"m",Ct).call(this)):t.addEventListener("scroll",e(this,vt,"f"),{passive:!0})}detach(){this.control instanceof HTMLIFrameElement&&(this.control.removeEventListener("load",e(this,bt,"f")),this.control.contentDocument?.removeEventListener("scroll",e(this,vt,"f"))),this.control&&this.control.removeEventListener("scroll",e(this,vt,"f")),super.detach()}updated(t){super.updated(t),(t.has("centered")||t.has("size"))&&(this.centered&&"small"===this.size?e(this,ut,"m",kt).call(this):e(this,ut,"m",wt).call(this))}render(){return"small"===this.size?s`<div class="base"><div class="leading-icon"><slot name="leading" @slotchange="${e(this,ut,"m",yt)}"><slot name="leading-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div><div class="heading"><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,ut,"m",ft)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,ut,"m",gt)}"></slot></div></div></div><div class="trailing-icon"><slot name="trailing" @slotchange="${e(this,ut,"m",$t)}"><slot name="trailing-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div></div>`:s`<div class="base"><div class="heading"><div class="leading-icon"><slot name="leading" @slotchange="${e(this,ut,"m",yt)}"><slot name="leading-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div><div class="spacer"></div><div class="trailing-icon"><slot name="trailing" @slotchange="${e(this,ut,"m",$t)}"><slot name="trailing-icon" @slotchange="${e(this,ut,"m",xt)}"></slot></slot></div></div><div class="spacer"></div><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,ut,"m",ft)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,ut,"m",gt)}"></slot></div></div></div>`}_updateScroll(t){let a=0;this.control instanceof HTMLIFrameElement?a=e(this,ut,"m",St).call(this,this.control):t.target instanceof HTMLElement&&(a=t.target.scrollTop),this._base?.classList.toggle("on-scroll",a>0)}};var Lt,Et,zt,Mt,Tt,Pt,It,Wt,Dt,At,Ht,Ot,Bt,Ft,qt,Vt,Rt,Ut,Nt,jt,Yt,Kt,Zt,Gt,Xt,Jt,Qt,ea,ta,aa,oa,ia,ra,sa,na,la,ca,da,ha,ma,pa,ua,va,ba,fa,ga,ya,$a,xa,wa,ka,Ca,Sa;vt=new WeakMap,bt=new WeakMap,ut=new WeakSet,ft=function(e){this._base?.classList.toggle("with-title",g(e.target))},gt=function(e){this._base?.classList.toggle("with-subtitle",g(e.target))},yt=function(t){this._base?.classList.toggle("with-leading-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,ut,"m",kt).call(this),40)},$t=function(t){this._base?.classList.toggle("with-trailing-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,ut,"m",kt).call(this),40)},xt=function(e){const t=e.target.name,a=t.replace("-icon","");console.warn(`[m3e-app-bar] Slot "${t}" is deprecated and will be removed in a future release. Use "${a}" instead.`)},wt=function(){this._base?.style.removeProperty("--_leading-icon-min-width"),this._base?.style.removeProperty("--_trailing-icon-min-width")},kt=function(){e(this,ut,"m",wt).call(this);const t=this._leadingIcon?.getBoundingClientRect().width??0,a=this._trailingIcon?.getBoundingClientRect().width??0;t<a?this._base?.style.setProperty("--_leading-icon-min-width",`${a}px`):t>a&&this._base?.style.setProperty("--_trailing-icon-min-width",`${t}px`)},Ct=function(){this.control instanceof HTMLIFrameElement&&(this.control.contentDocument?.addEventListener("scroll",e(this,vt,"f"),{passive:!0}),this._base?.classList.toggle("on-scroll",e(this,ut,"m",St).call(this,this.control)>0))},St=function(e){return Math.max(e.contentDocument?.documentElement?.scrollTop??0,e.contentDocument?.body?.scrollTop??0)},_t.styles=[pt,it],t([h(".base")],_t.prototype,"_base",void 0),t([h(".leading-icon")],_t.prototype,"_leadingIcon",void 0),t([h(".trailing-icon")],_t.prototype,"_trailingIcon",void 0),t([m({type:Boolean,reflect:!0})],_t.prototype,"centered",void 0),t([m({reflect:!0})],_t.prototype,"size",void 0),t([y(40)],_t.prototype,"_updateScroll",null),_t=t([$("m3e-app-bar")],_t);let _a=Sa=class extends(x(b(r),"query")){constructor(){super(),Lt.add(this),Et.set(this,`m3e-autocomplete-${Sa.__nextId}`),zt.set(this,`${e(this,Et,"f")}-menu`),this._options=new Array,Mt.set(this,void 0),Tt.set(this,!1),Pt.set(this,void 0),It.set(this,!1),Wt.set(this,!1),Dt.set(this,!1),At.set(this,void 0),Ht.set(this,()=>e(this,Lt,"m",ta).call(this)),Ot.set(this,()=>e(this,Lt,"m",aa).call(this)),Bt.set(this,()=>e(this,Lt,"m",oa).call(this)),Ft.set(this,()=>e(this,Lt,"m",ia).call(this)),qt.set(this,t=>e(this,Lt,"m",na).call(this,t)),Vt.set(this,t=>e(this,Lt,"m",ra).call(this,t)),Rt.set(this,()=>e(this,Lt,"m",sa).call(this)),Ut.set(this,t=>e(this,Lt,"m",da).call(this,t)),Nt.set(this,t=>e(this,Lt,"m",la).call(this,t)),jt.set(this,t=>e(this,Lt,"m",ca).call(this,t)),Yt.set(this,void 0),this._listKeyManager=(new ze).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withSkipPredicate(e=>e.disabled||!0===e.hidden).onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,Lt,"m",ba).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.required=!1,this.autoActivate=!1,this.caseSensitive=!1,this.filter="contains",this.loading=!1,this.hideNoData=!1,this.hideLoading=!1,this.loadingLabel="Loading...",this.noDataLabel="No options",this.resultsLabel=e=>`${e} options`,this.panelClass="",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,Lt,"m",ea).call(this)})}get options(){return this._options??[]}get selected(){return this.options.find(e=>e.selected)??null}get value(){const e=this.selected;return e&&!e.disabled?e.value:null}attach(t){t instanceof HTMLInputElement&&(super.attach(t),t.autocomplete="off",t.role="combobox",t.ariaAutoComplete="list",t.ariaExpanded="false",t.addEventListener("click",e(this,Ht,"f")),t.addEventListener("focus",e(this,Bt,"f")),t.addEventListener("blur",e(this,Ft,"f")),t.addEventListener("keydown",e(this,qt,"f")),t.addEventListener("input",e(this,Vt,"f")),t.addEventListener("change",e(this,Rt,"f")),e(this,Lt,"a",Qt)?.addEventListener("pointerdown",e(this,Ot,"f")))}detach(){this.control&&(e(this,Lt,"a",Qt)?.removeEventListener("pointerdown",e(this,Ot,"f")),this.control.role=null,this.control.ariaAutoComplete=null,this.control.ariaExpanded=null,this.control.removeEventListener("click",e(this,Ht,"f")),this.control.removeEventListener("focus",e(this,Bt,"f")),this.control.removeEventListener("blur",e(this,Ft,"f")),this.control.removeEventListener("keydown",e(this,qt,"f")),this.control.removeEventListener("input",e(this,Vt,"f")),this.control.removeEventListener("change",e(this,Rt,"f"))),super.detach()}clear(t=!1){e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).value="",e(this,Lt,"m",xa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0})),e(this,Lt,"m",$a).call(this),t?e(this,Lt,"a",Zt).focus():e(this,Lt,"m",va).call(this))}connectedCallback(){super.connectedCallback(),e(this,Lt,"m",ea).call(this)}update(t){super.update(t),t.has("hideNoData")&&this.hideNoData&&e(this,Pt,"f")&&k(e(this,Pt,"f"),"-no-data",!1),t.has("loading")&&(this.loading?e(this,Dt,"f")&&(this.loadingLabel&&Me.announce(this.loadingLabel,"polite"),!e(this,Pt,"f")&&e(this,Lt,"a",Jt)&&e(this,Lt,"m",ma).call(this)):e(this,Pt,"f")&&!e(this,Lt,"a",Jt)?e(this,Lt,"m",va).call(this):e(this,Pt,"f")?C(e(this,Pt,"f"),"-loading"):e(this,Dt,"f")&&e(this,Lt,"m",ma).call(this))}render(){return s`<div class="options" aria-hidden="true"><slot></slot></div>`}};Et=new WeakMap,zt=new WeakMap,Mt=new WeakMap,Tt=new WeakMap,Pt=new WeakMap,It=new WeakMap,Wt=new WeakMap,Dt=new WeakMap,At=new WeakMap,Ht=new WeakMap,Ot=new WeakMap,Bt=new WeakMap,Ft=new WeakMap,qt=new WeakMap,Vt=new WeakMap,Rt=new WeakMap,Ut=new WeakMap,Nt=new WeakMap,jt=new WeakMap,Yt=new WeakMap,Lt=new WeakSet,Kt=function(){return this._listKeyManager?.items??[]},Zt=function(){return this.control?this.control:null},Gt=function(){return null!==(e(this,Mt,"f")?.querySelector("[slot='no-data']")??null)},Xt=function(){return null!==(e(this,Mt,"f")?.querySelector("[slot='loading']")??null)},Jt=function(){return e(this,Lt,"a",Kt).some(e=>!1===e.hidden)||this.loading&&!this.hideLoading&&this.loadingLabel.length>0||!this.loading&&!this.hideNoData&&this.noDataLabel.length>0},Qt=function(){return this.control?.closest("m3e-form-field")??null},ea=async function(){e(this,At,"f")&&e(this,At,"f").abort();const t=new AbortController;a(this,At,t,"f");const o=[...this.querySelectorAll("m3e-option")];for(const e of o){if(t.signal.aborted)break;e.isUpdatePending&&await e.updateComplete}if(t.signal.aborted)return;this._options=o,a(this,Mt,this.cloneNode(!0),"f");const{added:i}=this._listKeyManager.setItems([...e(this,Mt,"f").querySelectorAll("m3e-option")]);if(i.forEach(t=>{t.id=t.id||`${e(this,Et,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,k(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),e(this,Pt,"f")){const t=e(this,Lt,"m",$a).call(this);e(this,Lt,"m",pa).call(this),e(this,Lt,"a",Jt)?e(this,Lt,"m",ua).call(this,e(this,Pt,"f"),t):e(this,Lt,"m",va).call(this)}},ta=function(){a(this,Tt,!0,"f"),e(this,Lt,"m",ma).call(this)},aa=function(){a(this,It,!0,"f")},oa=function(){a(this,Dt,!0,"f"),a(this,Tt,!0,"f"),0!=this.options.length||this.control.readOnly||this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,Lt,"a",Zt)?.value??""},bubbles:!0,composed:!0})),e(this,Lt,"m",ma).call(this)},ia=function(){a(this,Dt,!1,"f"),e(this,It,"f")||e(this,Lt,"m",va).call(this),a(this,It,!1,"f")},ra=function(t){if(e(this,Lt,"a",Zt)&&!t.defaultPrevented){this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,Lt,"a",Zt).value},bubbles:!0,composed:!0})),""===e(this,Lt,"a",Zt).value&&e(this,Lt,"m",xa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0})),a(this,Wt,!0,"f");try{e(this,Pt,"f")?(e(this,Lt,"m",$a).call(this),e(this,Lt,"a",Jt)||e(this,Lt,"m",va).call(this)):e(this,Lt,"m",ma).call(this)}finally{a(this,Wt,!1,"f"),e(this,Lt,"a",Qt)?.notifyControlStateChange(!0)}}},sa=function(){if(e(this,Lt,"a",Zt)){const t=this.selected;this.required?e(this,Lt,"a",Zt).value=t?.label??"":t&&t.label!==e(this,Lt,"a",Zt).value&&e(this,Lt,"m",xa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0}))}},na=function(t){if(!t.defaultPrevented)switch(a(this,Tt,!1,"f"),t.key){case"Backspace":case"Delete":e(this,Lt,"a",Zt)&&!e(this,Lt,"a",Zt).value&&e(this,Lt,"m",va).call(this);break;case"Enter":e(this,Pt,"f")&&this._listKeyManager.activeItem?(t.preventDefault(),e(this,Lt,"m",ga).call(this,this._listKeyManager.activeItem),S()?e(this,Lt,"m",va).call(this):setTimeout(()=>e(this,Lt,"m",va).call(this),150)):e(this,Pt,"f")&&setTimeout(()=>{e(this,Lt,"a",Zt)&&!e(this,Lt,"a",Zt).value&&e(this,Lt,"m",va).call(this)});break;case"Escape":case"Tab":e(this,Lt,"m",va).call(this);break;case"Up":case"ArrowUp":t.altKey?e(this,Lt,"m",va).call(this):this._listKeyManager.onKeyDown(t);break;case"Down":case"ArrowDown":e(this,Pt,"f")?this._listKeyManager.onKeyDown(t):(e(this,Lt,"m",ma).call(this),t.preventDefault());break;default:this._listKeyManager.onKeyDown(t)}},la=function(e){if(a(this,Yt,void 0,"f"),2===e.button)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);t&&!t.disabled&&a(this,Yt,t,"f")},ca=function(t){const o=e(this,Yt,"f");if(a(this,Yt,void 0,"f"),2===t.button)return;if(!o)return;const i=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);i===o&&(this._listKeyManager.setActiveItem(i),e(this,Lt,"m",ga).call(this,i)),S()?e(this,Lt,"m",va).call(this):setTimeout(()=>e(this,Lt,"m",va).call(this),150)},da=function(t){if(e(this,Pt,"f"))if("closed"!==t.newState){const a=e(this,Lt,"a",Kt).find(e=>e.selected&&!e.disabled);a?(this._listKeyManager.setActiveItem(a),_(a,e(this,Pt,"f"))):e(this,Lt,"m",ka).call(this),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else S()?e(this,Lt,"m",ha).call(this,t):setTimeout(()=>e(this,Lt,"m",ha).call(this,t),100)},ha=function(t){e(this,Pt,"f")&&(e(this,Mt,"f")?.replaceChildren(...e(this,Pt,"f").childNodes),e(this,Pt,"f").remove(),e(this,Pt,"f").removeEventListener("toggle",e(this,Ut,"f")),e(this,Pt,"f").removeEventListener("pointerdown",e(this,Nt,"f")),e(this,Pt,"f").removeEventListener("pointerup",e(this,jt,"f")),a(this,Pt,void 0,"f"),e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).ariaExpanded="false",e(this,Lt,"a",Zt).removeAttribute("aria-controls"),e(this,Lt,"a",Zt).removeAttribute("aria-owns"),e(this,Lt,"a",Zt).removeAttribute("aria-activedescendant")),this.requestUpdate(),e(this,Lt,"a",Qt)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})),"input"===e(this,Lt,"a",Zt)?.slot&&"M3E-INPUT-CHIP-SET"===e(this,Lt,"a",Zt).parentElement?.tagName&&e(this,Lt,"m",xa).call(this))},ma=function(){if(e(this,Pt,"f")||!e(this,Lt,"a",Zt)||e(this,Lt,"a",Zt).readOnly||e(this,Lt,"a",Zt).disabled)return;const t=e(this,Lt,"m",$a).call(this);if(!e(this,Lt,"a",Jt))return;if(a(this,Pt,document.createElement("m3e-option-panel"),"f"),e(this,Pt,"f").id=e(this,zt,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,Pt,"f").classList.add(t);e(this,Pt,"f").style.overflowX="hidden",e(this,Pt,"f").scrollStrategy="reposition",e(this,Pt,"f").fitAnchorWidth=!0,e(this,Pt,"f").addEventListener("toggle",e(this,Ut,"f")),e(this,Pt,"f").addEventListener("pointerdown",e(this,Nt,"f")),e(this,Pt,"f").addEventListener("pointerup",e(this,jt,"f")),e(this,Lt,"m",pa).call(this),e(this,Lt,"m",ua).call(this,e(this,Pt,"f"),t),(e(this,Lt,"a",Qt)??e(this,Lt,"a",Zt)).insertAdjacentElement("afterend",e(this,Pt,"f")),e(this,Lt,"a",Zt).setAttribute("aria-controls",e(this,zt,"f")),e(this,Lt,"a",Zt).setAttribute("aria-owns",e(this,zt,"f")),e(this,Lt,"a",Qt)?.notifyControlStateChange(),this._listKeyManager.activeItem&&this.autoActivate&&e(this,Lt,"m",ba).call(this,this._listKeyManager.activeItem,!0);const o=e(this,Lt,"a",Zt);setTimeout(()=>e(this,Pt,"f")?.show(o,e(this,Lt,"a",Qt)?.menuAnchor))},pa=function(){if(!e(this,Mt,"f")||!e(this,Pt,"f"))return;const t=[...e(this,Mt,"f").childNodes];if(!e(this,Lt,"a",Gt)&&this.noDataLabel){const e=document.createElement("span");e.slot="no-data",e.textContent=this.noDataLabel,t.push(e)}if(!e(this,Lt,"a",Xt)&&this.loadingLabel){const e=document.createElement("span");e.slot="loading",e.textContent=this.loadingLabel,t.push(e)}e(this,Pt,"f").replaceChildren(...t)},ua=function(e,t){k(e,"-loading",this.loading),k(e,"-no-data",0==t)},va=function(){e(this,Pt,"f")?.hide()},ba=function(t,a=!1){if(e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).setAttribute("aria-activedescendant",t.id),e(this,Pt,"f"))){_(t,e(this,Pt,"f"),{block:"nearest",behavior:"instant"});const o=a||!e(this,Tt,"f")&&(e(this,Lt,"a",Zt).matches(":focus-visible")||L());e(this,Lt,"a",Kt).forEach(e=>{e===t&&o?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},fa=async function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected,t.isUpdatePending&&await t.updateComplete)},ga=async function(t){t.selected||(t.selected=!0,await e(this,Lt,"m",fa).call(this,t),t.isUpdatePending&&await t.updateComplete,this.requestUpdate(),this.isUpdatePending&&await this.updateComplete,e(this,Lt,"a",Zt)&&(e(this,Lt,"a",Zt).value=t.label),this.dispatchEvent(new Event("change",{bubbles:!0})),e(this,Lt,"a",Qt)?.notifyControlStateChange(!0))},ya=function(e,t,a,o){const i=this.caseSensitive?t.value:t.value.toLowerCase();switch(this.filter){case"starts-with":return e.term=o,e.highlightMode=this.filter,i.startsWith(a);case"ends-with":return e.term=o,e.highlightMode=this.filter,i.endsWith(a);case"contains":return e.term=o,e.highlightMode=this.filter,i.includes(a);case"none":return e.disableHighlight=!0,!0;default:return e.disableHighlight=!0,this.filter(t,o)}},$a=function(){if(!e(this,Lt,"a",Zt))return 0;const t=e(this,Lt,"a",Kt).filter(e=>!1===e.hidden).length,o=!this.loading&&e(this,Wt,"f");a(this,Wt,!1,"f");const i=e(this,Lt,"a",Zt).value,r=this.caseSensitive?i:i.toLocaleLowerCase();let s,n=0,l=!1;for(let t=0;t<e(this,Lt,"a",Kt).length;t++){const a=e(this,Lt,"a",Kt)[t],o=this._options[t];a.hidden=!e(this,Lt,"m",ya).call(this,a,o,r,i),!0===a.hidden?(e(this,Lt,"m",Ca).call(this,a),C(a,"-first"),C(a,"-last")):(n++,l||a.parentElement instanceof qe?(C(a,"-first"),s&&C(s,"-last"),E(a,"-last"),s=a):(E(a,"-first"),l=!0,E(a,"-last"),s=a))}e(this,Pt,"f")&&e(this,Lt,"m",ua).call(this,e(this,Pt,"f"),n);const c=e(this,Pt,"f")?.querySelectorAll("m3e-optgroup")??e(this,Mt,"f")?.querySelectorAll("m3e-optgroup")??[];for(const e of c)e.hidden=[...e.querySelectorAll("m3e-option")].every(e=>!0===e.hidden);return o&&e(this,Lt,"m",wa).call(this,t,n),e(this,Lt,"m",ka).call(this),n},xa=function(){const t=this._listKeyManager.items.filter(e=>e.selected);return t.length>0&&(t.forEach(t=>{t.selected=!1,e(this,Lt,"m",fa).call(this,t)}),!0)},wa=function(t,a){if(e(this,Dt,"f"))if(0==a)t>0&&this.noDataLabel&&Me.announce(this.noDataLabel,"polite");else if(t!=a){const e=this.resultsLabel instanceof Function?this.resultsLabel(a):this.resultsLabel;e&&Me.announce(e,"polite")}},ka=function(){if(this.autoActivate&&(!this._listKeyManager.activeItem||!this._listKeyManager.activeItem.selected)){const t=e(this,Lt,"a",Kt).find(e=>!e.disabled&&!1===e.hidden);t&&(this._listKeyManager.setActiveItem(t),e(this,Pt,"f")&&_(t,e(this,Pt,"f"),{block:"nearest",behavior:"instant"}))}},Ca=function(t){t.focusRing?.hide(),t.stateLayer?.hide("focused"),t===this._listKeyManager.activeItem&&(this._listKeyManager.updateActiveItem(null),e(this,Lt,"a",Zt)?.removeAttribute("aria-activedescendant"))},_a.styles=i`:host { display: contents; } .options { display: none; }`,_a.__nextId=0,t([m({attribute:"hide-selection-indicator",type:Boolean})],_a.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean,reflect:!0})],_a.prototype,"required",void 0),t([m({attribute:"auto-activate",type:Boolean})],_a.prototype,"autoActivate",void 0),t([m({attribute:"case-sensitive",type:Boolean})],_a.prototype,"caseSensitive",void 0),t([m({converter:{fromAttribute:e=>null===e?"contains":"starts-with"===e||"ends-with"===e||"contains"===e||"none"===e?e:"contains"}})],_a.prototype,"filter",void 0),t([m({type:Boolean})],_a.prototype,"loading",void 0),t([m({attribute:"hide-no-data",type:Boolean})],_a.prototype,"hideNoData",void 0),t([m({attribute:"hide-loading",type:Boolean})],_a.prototype,"hideLoading",void 0),t([m({attribute:"loading-label"})],_a.prototype,"loadingLabel",void 0),t([m({attribute:"no-data-label"})],_a.prototype,"noDataLabel",void 0),t([m({attribute:"results-label"})],_a.prototype,"resultsLabel",void 0),t([m({attribute:"panel-class"})],_a.prototype,"panelClass",void 0),_a=Sa=t([$("m3e-autocomplete")],_a);let La=class extends r{render(){return s`<div class="base"><slot></slot></div>`}};var Ea,za,Ma,Ta,Pa,Ia;La.styles=i`:host { display: inline-block; vertical-align: middle; aspect-ratio: 1 / 1; width: var(--m3e-avatar-size, 2.5rem); } .base { user-select: none; white-space: nowrap; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--m3e-avatar-shape, ${v.shape.corner.full}); font-size: var(--m3e-avatar-font-size, ${v.typescale.standard.title.medium.fontSize}); font-weight: var(--m3e-avatar-font-weight, ${v.typescale.standard.title.medium.fontWeight}); line-height: var(--m3e-avatar-line-height, ${v.typescale.standard.title.medium.lineHeight}); letter-spacing: var(--m3e-avatar-tracking, ${v.typescale.standard.title.medium.tracking}); background-color: var(--m3e-avatar-color, ${v.color.primaryContainer}); color: var(--m3e-avatar-label-color, ${v.color.onPrimaryContainer}); } ::slotted(img) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; width: 100%; height: 100%; }`,La=t([$("m3e-avatar")],La);let Wa=class extends(b(r)){constructor(){super(...arguments),Ea.add(this),za.set(this,void 0),Ma.set(this,void 0),this.size="medium",this.position="above-after"}attach(t){super.attach(t),e(this,Ea,"m",Ia).call(this)}detach(){super.detach(),e(this,Ea,"m",Pa).call(this)}connectedCallback(){super.connectedCallback(),a(this,za,Ve.observe(()=>e(this,Ea,"m",Ia).call(this)),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,za,"f")?.call(this)}update(t){super.update(t),(t.has("position")||t.has("size")||t.has("htmlFor"))&&e(this,Ea,"m",Ia).call(this)}render(){return s`<div class="base"><slot @slotchange="${e(this,Ea,"m",Ta)}"><span aria-hidden="true"> </span></slot></div>`}};za=new WeakMap,Ma=new WeakMap,Ea=new WeakSet,Ta=function(){this.isConnected&&this.style.setProperty("--_badge-padding",this.textContent&&this.textContent.length>2?"0 "+("medium"===this.size?"0.25rem":"large"===this.size?"0.5rem":"0"):"")},Pa=function(){e(this,Ma,"f")?.call(this),a(this,Ma,void 0,"f")},Ia=async function(){if(e(this,Ea,"m",Pa).call(this),!this.control)return;let t="top-end";switch(this.position){case"above":t="top";break;case"above-before":t="top-start";break;case"after":t="right";break;case"before":t="left";break;case"below":t="bottom";break;case"below-after":t="bottom-end";break;case"below-before":t="bottom-start"}a(this,Ma,await Re(this,this.control,{position:t},(e,t)=>{this.position.includes("before")&&"before"!==this.position&&("rtl"===Ve.current?e+=this.clientWidth:e-=this.clientWidth),this.position.includes("after")&&"after"!==this.position&&("rtl"===Ve.current?e-=this.clientWidth:e+=this.clientWidth),this.style.left=`${e}px`,this.style.top=`${t}px`}),"f")},Wa.styles=i`:host { display: inline-block; vertical-align: baseline; } .base { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; vertical-align: baseline; box-sizing: border-box; user-select: none; padding: var(--_badge-padding); border-radius: var(--m3e-badge-shape, ${v.shape.corner.full}); color: var(--m3e-badge-color, ${v.color.onError}); background-color: var(--m3e-badge-container-color, ${v.color.error}); } :host([for]) { position: absolute; z-index: 1; } :host([for][position="above"]) { transform: translateY(var(--_badge-offset, 0px)); } :host([for][position="above-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="above-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="below"]) { transform: translateY(calc(0px - var(--_badge-offset, 0px))); } :host([for][position="below-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="before"]:not(:dir(rtl))), :host([for][position="after"]:dir(rtl)) { transform: translateX(var(--_badge-offset, 0px)); } :host([for][position="before"]:dir(rtl)), :host([for][position="after"]:not(:dir(rtl))) { transform: translateX(calc(0px - var(--_badge-offset, 0px))); } :host([size="small"]) { height: var(--m3e-badge-small-size, 0.375rem); max-height: var(--m3e-badge-small-size, 0.375rem); width: var(--m3e-badge-small-size, 0.375rem); min-width: var(--m3e-badge-small-size, 0.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.375rem); } :host([size="small"]) .base { font-size: 0; } :host([size="medium"]) { height: var(--m3e-badge-medium-size, 1.375rem); min-width: var(--m3e-badge-medium-size, 1.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.75rem); } :host([size="medium"]) .base { font-size: var(--m3e-badge-medium-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-badge-medium-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-badge-medium-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-badge-medium-tracking, ${v.typescale.standard.label.small.tracking}); } :host([size="large"]) { height: var(--m3e-badge-large-size, 1.75rem); min-width: var(--m3e-badge-large-size, 1.75rem); --_badge-offset: var(--m3e-badge-small-offset, 1rem); } :host([size="large"]) .base { font-size: var(--m3e-badge-large-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-badge-large-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-badge-large-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-badge-large-tracking, ${v.typescale.standard.label.large.tracking}); } @media (forced-colors: active) { .base { background-color: ButtonFace; color: ButtonText; outline: 1px solid ButtonText; } }`,t([m({reflect:!0})],Wa.prototype,"size",void 0),t([m({reflect:!0})],Wa.prototype,"position",void 0),Wa=t([$("m3e-badge")],Wa);let Da=class extends z{_onClick(){this.closest("m3e-bottom-sheet")?.hide()}};var Aa,Ha,Oa,Ba,Fa,qa,Va,Ra,Ua,Na,ja,Ya,Ka,Za,Ga,Xa,Ja,Qa,eo,to,ao,oo,io,ro,so,no,lo,co,ho,mo,po,uo,vo,bo,fo,go,yo,$o,xo;Da=t([$("m3e-bottom-sheet-action")],Da);let wo=xo=class extends(x(M(T(P(r))),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),Aa.add(this),Ha.set(this,t=>e(this,Aa,"m",oo).call(this,t)),Oa.set(this,t=>e(this,Aa,"m",io).call(this,t)),Ba.set(this,()=>e(this,Aa,"m",ro).call(this)),Fa.set(this,new I),qa.set(this,new W(this)),Va.set(this,new D(this)),Ra.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,Aa,"m",fo).call(this,t)})),Ua.set(this,null),Na.set(this,void 0),ja.set(this,!1),Ya.set(this,0),Ka.set(this,void 0),Za.set(this,0),Ga.set(this,0),Xa.set(this,void 0),this.modal=!1,this.open=!1,this.handle=!1,this.handleLabel="Drag handle",this.detents=[],this.detent=0,this.hideable=!1,this.hideFriction=.5}show(t=this.detent){this.open?void 0!==t&&e(this,Ya,"f")!==t&&e(this,Aa,"m",go).call(this,t):(a(this,Ka,t,"f"),this.open=!0)}hide(){this.open=!1}toggle(e){this.open?this.hide():this.show(e)}cycle(){var t;this.open?this.detents.length>0?e(this,Ya,"f")<this.detents.length-1?(a(this,Ya,(t=e(this,Ya,"f"),++t),"f"),e(this,Aa,"m",go).call(this,e(this,Ya,"f"))):this.hideable&&this.hide():this.hide():this.show()}update(e){super.update(e),e.has("modal")&&(this.role=this.modal?"dialog":"region",this.ariaModal=this.modal?"true":null,this.popover=this.modal?"manual":null)}reconnectedCallback(){super.reconnectedCallback(),e(this,Aa,"m",Ja).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Aa,"m",Ja).call(this)}updated(t){if(super.updated(t),t.has("open")){if(this.open){if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);xo.__openSheet!==this&&xo.__openSheet?.hide(),xo.__openSheet=this,this.inert=!1,window.addEventListener("resize",e(this,Ba,"f")),this.detents.length>0?(a(this,Ya,Math.min(Math.max(0,e(this,Ka,"f")??this.detent),this.detents.length-1),"f"),e(this,Aa,"m",$o).call(this,e(this,Aa,"m",mo).call(this,this.detents[e(this,Ya,"f")]))):e(this,Aa,"m",$o).call(this,Math.min(e(this,Aa,"m",mo).call(this,"fit"),e(this,Aa,"m",mo).call(this,"half"))),a(this,Ka,void 0,"f")}else{if(!this.dispatchEvent(new Event("closing",{cancelable:!0})))return void(this.open=!0);requestAnimationFrame(()=>this.inert=!0),window.removeEventListener("resize",e(this,Ba,"f")),xo.__openSheet===this&&(xo.__openSheet=void 0)}if(this.modal)if(this.open){a(this,Ua,document.activeElement,"f"),e(this,Va,"f").lock(),e(this,qa,"f").lock(),this.showPopover(),requestAnimationFrame(()=>{document.addEventListener("click",e(this,Ha,"f")),document.addEventListener("keydown",e(this,Oa,"f"))});let t=this.querySelector("[autofocus]");t&&Te.isFocusable(t)||(t=this.shadowRoot?.querySelector(".handle")),t&&H(t)}else e(this,Aa,"m",yo).call(this,0).then(()=>{e(this,Va,"f").unlock(),e(this,qa,"f").unlock(),document.removeEventListener("click",e(this,Ha,"f")),document.removeEventListener("keydown",e(this,Oa,"f")),this.hidePopover(),e(this,Ua,"f")instanceof HTMLElement&&e(this,Ua,"f").focus(),a(this,Ua,null,"f")});this.dispatchEvent(new Event(this.open?"opened":"closed"))}}render(){return s`<m3e-focus-trap ?disabled="${!this.modal}"><div class="base"><m3e-elevation class="elevation"></m3e-elevation><div class="header" @pointerdown="${e(this,Aa,"m",eo)}" @pointermove="${e(this,Aa,"m",to)}" @pointerup="${e(this,Aa,"m",ao)}">${this.handle?s`<div class="handle-row"><div id="handle" class="handle" role="button" aria-label="${this.handleLabel}" tabindex="0" @click="${e(this,Aa,"m",so)}" @keydown="${e(this,Aa,"m",no)}"><m3e-focus-ring class="focus-ring" for="handle"></m3e-focus-ring><div class="handle-touch" aria-hidden="true"></div></div></div>`:n}<slot name="header" @slotchange="${e(this,Aa,"m",Qa)}"></slot></div><div class="body"><div class="content"><slot></slot></div></div></div></m3e-focus-trap>`}};Ha=new WeakMap,Oa=new WeakMap,Ba=new WeakMap,Fa=new WeakMap,qa=new WeakMap,Va=new WeakMap,Ra=new WeakMap,Ua=new WeakMap,Na=new WeakMap,ja=new WeakMap,Ya=new WeakMap,Ka=new WeakMap,Za=new WeakMap,Ga=new WeakMap,Xa=new WeakMap,Aa=new WeakSet,Ja=function(){const t=this.shadowRoot?.querySelector(".content");t&&(a(this,Za,t.clientHeight,"f"),e(this,Ra,"f").observe(t));const o=this.shadowRoot?.querySelector(".header");o&&(a(this,Ga,o.clientHeight,"f"),e(this,Ra,"f").observe(o))},Qa=function(e){k(this,"has-header",g(e.target))},eo=function(t){t.target instanceof HTMLElement&&Te.isFocusable(t.target)||(t.target.setPointerCapture(t.pointerId),t.target.style.cursor="grabbing",e(this,Fa,"f").reset(),e(this,Fa,"f").add(t.clientY),a(this,Na,{startY:t.clientY,startHeight:this.clientHeight,maxHeight:e(this,Aa,"m",po).call(this),minHeight:e(this,Aa,"m",uo).call(this)},"f"),a(this,ja,!1,"f"))},to=function(t){if(!e(this,Na,"f"))return;if(Math.abs(t.clientY-e(this,Na,"f").startY)<=8)return;(t.getCoalescedEvents?.()??[t]).forEach(a=>e(this,Fa,"f").add(a.clientY,t.timeStamp));let o=e(this,Na,"f").startHeight-(t.clientY-e(this,Na,"f").startY);if(o<e(this,Na,"f").minHeight){const t=(e(this,Na,"f").minHeight-o)*this.hideFriction;o=e(this,Na,"f").minHeight-t}e(this,Aa,"m",$o).call(this,Math.min(e(this,Na,"f").maxHeight,o)),a(this,ja,!0,"f")},ao=function(t){if(e(this,Na,"f"))try{if(t.target.releasePointerCapture(t.pointerId),t.target.style.cursor="",!e(this,ja,"f"))return;const a="touch"===t.pointerType?1200:500,o=e(this,Fa,"f").getVelocity();if(e(this,Fa,"f").reset(),this.hideable&&o>=a)this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide();else if(Math.abs(o)>=a)if(this.detents.length>0){const t=e(this,Aa,"m",lo).call(this);t!==e(this,Ya,"f")&&e(this,Aa,"m",go).call(this,t)}else e(this,Aa,"m",yo).call(this,e(this,Aa,"m",mo).call(this,"full"));else{const t=20;if(this.hideable){const a=e(this,Na,"f").minHeight;if(this.clientHeight<a-t)return void this.hide()}this.detents.length>0?e(this,Aa,"m",go).call(this,e(this,Aa,"m",ho).call(this)):this.clientHeight<e(this,Na,"f").minHeight&&e(this,Aa,"m",yo).call(this,e(this,Na,"f").minHeight)}}finally{a(this,Na,void 0,"f")}},oo=function(e){this.open&&this.modal&&!e.composedPath().includes(this)&&this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide()},io=function(e){this.open&&this.modal&&"Escape"===e.key&&!e.shiftKey&&!e.ctrlKey&&(e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},ro=function(){if(this.detents.length>0&&"half"===this.detents[e(this,Ya,"f")])return void e(this,Aa,"m",$o).call(this,e(this,Aa,"m",mo).call(this,"half"));const t=e(this,Aa,"m",po).call(this);(O(this,"-full")||this.clientHeight>t)&&e(this,Aa,"m",$o).call(this,t)},so=function(){e(this,ja,"f")||this.cycle(),a(this,ja,!1,"f")},no=function(t){if(!t.defaultPrevented&&Pe(t))switch(t.key){case"Up":case"ArrowUp":if(t.preventDefault(),this.detents.length>0){const t=e(this,Aa,"m",lo).call(this);t!==e(this,Ya,"f")&&e(this,Aa,"m",go).call(this,t)}else e(this,Aa,"m",yo).call(this,e(this,Aa,"m",mo).call(this,"full"));break;case"Down":case"ArrowDown":if(t.preventDefault(),this.detents.length>0){const t=e(this,Aa,"m",co).call(this);t!==e(this,Ya,"f")?e(this,Aa,"m",go).call(this,t):this.hideable&&this.hide()}else this.hideable&&this.hide()}},lo=function(){const t=this.clientHeight;let a=1/0,o=e(this,Ya,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ya,"f"))continue;const r=e(this,Aa,"m",mo).call(this,this.detents[i]);r>t&&r<a&&(a=r,o=i)}return o},co=function(){const t=this.clientHeight;let a=-1/0,o=e(this,Ya,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ya,"f"))continue;const r=e(this,Aa,"m",mo).call(this,this.detents[i]);r<t&&r>a&&(a=r,o=i)}return o},ho=function(){const t=this.clientHeight;let a=e(this,Ya,"f"),o=1/0;for(let i=0;i<this.detents.length;i++){const r=e(this,Aa,"m",mo).call(this,this.detents[i]),s=Math.abs(t-r);s<o&&(o=s,a=i)}return a},mo=function(t){switch(t){case"collapsed":return e(this,Aa,"m",uo).call(this);case"half":return.5*e(this,Aa,"m",po).call(this);case"full":return e(this,Aa,"m",po).call(this);case"fit":return e(this,Aa,"m",bo).call(this)}return t.endsWith("%")?e(this,Aa,"m",po).call(this)*(parseFloat(t)/100):t.endsWith("px")?parseFloat(t):e(this,Aa,"m",uo).call(this)},po=function(){const e=this.shadowRoot?.querySelector(".base");return window.innerHeight-(e?B(e,"var(--_bottom-sheet-top-space)"):0)},uo=function(){return this.detents.includes("fit")&&!this.detents.includes("collapsed")?e(this,Aa,"m",bo).call(this):e(this,Aa,"m",vo).call(this)},vo=function(){const t=this.shadowRoot?.querySelector(".base");return e(this,Ga,"f")+(t?B(t,"var(--_bottom-sheet-peek-height)"):0)},bo=function(){const t=this.shadowRoot?.querySelector(".body");if(!t)return 0;const a=getComputedStyle(t);return e(this,Ga,"f")+e(this,Za,"f")+parseFloat(a.paddingBlockStart)+parseFloat(a.paddingBlockEnd)},fo=function(t){const o=e(this,Za,"f"),i=e(this,Ga,"f");for(const e of t)e.target.classList.contains("content")?a(this,Za,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f"):e.target.classList.contains("header")&&a(this,Ga,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f");if(this.open&&this.detents.length>0&&(o!==e(this,Za,"f")||i!==e(this,Ga,"f")))switch(this.detents[e(this,Ya,"f")]){case"fit":e(this,Aa,"m",$o).call(this,e(this,Aa,"m",bo).call(this));break;case"collapsed":e(this,Aa,"m",$o).call(this,e(this,Aa,"m",uo).call(this))}},go=function(t){t>=0&&t<this.detents.length&&(a(this,Ya,t,"f"),e(this,Aa,"m",yo).call(this,e(this,Aa,"m",mo).call(this,this.detents[t])))},yo=async function(t){e(this,Xa,"f")&&(e(this,Aa,"m",$o).call(this,this.clientHeight),e(this,Xa,"f")?.cancel(),a(this,Xa,void 0,"f")),S()?e(this,Aa,"m",$o).call(this,t):(a(this,Xa,this.animate([{"--_bottom-sheet-height":`${this.clientHeight}px`},{"--_bottom-sheet-height":`${t}px`}],{duration:250,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}),"f"),e(this,Xa,"f").onfinish=()=>{e(this,Aa,"m",$o).call(this,t),a(this,Xa,void 0,"f")},await e(this,Xa,"f").finished)},$o=function(t){this.style.setProperty("--_bottom-sheet-height",`${t}px`),k(this,"-full",t===e(this,Aa,"m",po).call(this));const a=this.shadowRoot?.querySelector(".content");a&&(a.inert=t<=e(this,Aa,"m",vo).call(this))},F(i`@property --_bottom-sheet-height { syntax: "<length>"; inherits: false; initial-value: 50vh; } m3e-bottom-sheet > [slot="header"] { margin-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); margin-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); }</length>`),wo.styles=i`:host { display: block; position: fixed; left: 50%; top: calc(100vh - var(--_bottom-sheet-height)); margin: 0; padding: 0; outline: none; overflow: hidden; border: none; box-sizing: border-box; width: var(--m3e-bottom-sheet-width, 100%); max-width: var(--m3e-bottom-sheet-max-width, 40rem); height: var(--_bottom-sheet-height); color: var(--m3e-bottom-sheet-color, ${v.color.onSurface}); background-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } :host(:not(:state(-no-animate))) { transition: ${o(`transform ${v.motion.duration.medium2} ${v.motion.easing.standardDecelerate},\n border-radius ${v.motion.duration.medium2} ${v.motion.easing.standard}`)}; } :host(:not([modal]):not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-elevation, ${v.elevation.level1}); } :host([modal]:not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-modal-elevation, ${v.elevation.level1}); } :host(:state(-full)) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-full-elevation, ${v.elevation.level1}); } :host(:not([modal])) { z-index: var(--m3e-bottom-sheet-z-index, 10); } :host(:not([modal]):not([open])), :host([modal]:not(:popover-open)) { border-radius: var(--m3e-bottom-sheet-minimized-container-shape, ${v.shape.corner.none}); transform: translateX(-50%) translateY(100%); } :host(:not([modal])[open]:not(:state(-full))), :host([modal]:not(:state(-full)):popover-open) { border-radius: var(--m3e-bottom-sheet-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]:state(-full)), :host([modal]:state(-full):popover-open) { border-radius: var(--m3e-bottom-sheet-full-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]), :host([modal]:popover-open) { transform: translateX(-50%) translateY(0); } :host([modal]:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) var(--m3e-bottom-sheet-scrim-opacity, 32%), transparent ); } :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) 0%, transparent ); } } .base { display: flex; border-radius: inherit; flex-direction: column; height: 100%; --_bottom-sheet-peek-height: var(--m3e-bottom-sheet-peek-height, 0); --_bottom-sheet-top-space: var(--m3e-bottom-sheet-compact-top-space, 4.5rem); } @media (max-height: 640px) { .base { --_bottom-sheet-top-space: var(--m3e-bottom-sheet-top-space, 3.5rem); } } .body { flex: 1 1 auto; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; padding-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); padding-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); font-size: var(--m3e-bottom-sheet-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-bottom-sheet-content-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-bottom-sheet-content-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var(--m3e-bottom-sheet-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .content { height: fit-content; } :host(:not([handle])) .header { display: none; } :host(:not([handle])) .body, .header { border-top-left-radius: inherit; border-top-right-radius: inherit; padding-block-start: var(--m3e-bottom-sheet-padding-block, 0.5rem); font-size: var(--m3e-bottom-sheet-header-font-size, ${v.typescale.standard.title.large.fontSize}); font-weight: var(--m3e-bottom-sheet-header-font-weight, ${v.typescale.standard.title.large.fontWeight}); line-height: var(--m3e-bottom-sheet-header-line-height, ${v.typescale.standard.title.large.lineHeight}); letter-spacing: var(--m3e-bottom-sheet-header-tracking, ${v.typescale.standard.title.large.tracking}); } .header { cursor: grab; touch-action: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; flex: none; display: flex; flex-direction: column; min-height: 3rem; --m3e-app-bar-container-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } .handle-row { position: relative; flex: none; display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible; height: var(--m3e-bottom-sheet-handle-container-height, 1.5rem); } :host(:not(:state(-no-animate))) .handle-row { transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard},\n padding ${v.motion.duration.short3} ${v.motion.easing.standard},\n height ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .handle { position: relative; width: var(--m3e-bottom-sheet-handle-width, 2rem); height: var(--m3e-bottom-sheet-handle-height, 4px); border-radius: var(--m3e-bottom-sheet-handle-shape, ${v.shape.corner.full}); background-color: var(--m3e-bottom-sheet-handle-color, ${v.color.onSurfaceVariant}); } .handle-touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); right: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); top: calc( 0px - calc( calc(3rem - var(--m3e-bottom-sheet-handle-container-height, 1.5rem)) - calc( var(--m3e-bottom-sheet-handle-height, 4px) / 2 ) ) ); } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))), :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop, :host(:not(:state(-no-animate))) .handle-row { transition: none; } } @media (forced-colors: active) { :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } .handle { background-color: ButtonText; } }`,t([m({type:Boolean,reflect:!0})],wo.prototype,"modal",void 0),t([m({type:Boolean,reflect:!0})],wo.prototype,"open",void 0),t([m({type:Boolean})],wo.prototype,"handle",void 0),t([m({attribute:"handle-label"})],wo.prototype,"handleLabel",void 0),t([m({attribute:"detents",converter:q})],wo.prototype,"detents",void 0),t([m({type:Number})],wo.prototype,"detent",void 0),t([m({type:Boolean,reflect:!0})],wo.prototype,"hideable",void 0),t([m({attribute:"hide-friction",type:Number})],wo.prototype,"hideFriction",void 0),wo=xo=t([$("m3e-bottom-sheet")],wo);let ko=class extends(b(z)){constructor(){super(...arguments),this.secondary=!1}attach(e){e instanceof wo&&(super.attach(e),this.parentElement&&(e.modal?this.parentElement.ariaHasPopup="dialog":this.secondary||(this.parentElement.ariaExpanded="false",Ie(this.parentElement,"aria-controls",e.id),this.parentElement.id&&Ie(e,"aria-labelledby",this.parentElement.id))))}detach(){this.control&&this.parentElement&&!this.secondary&&We(this.parentElement,"aria-controls",this.control.id),super.detach()}_onClick(){this.control instanceof wo&&(this.control.modal?this.control.show(this.detent):(this.control.toggle(this.detent),!this.secondary&&this.parentElement&&(this.parentElement.ariaExpanded=`${this.control.open}`)))}};t([m({type:Number})],ko.prototype,"detent",void 0),t([m({type:Boolean})],ko.prototype,"secondary",void 0),ko=t([$("m3e-bottom-sheet-trigger")],ko);const Co={"extra-small":{containerHeight:o(`calc(var(--m3e-button-extra-small-container-height, var(--m3e-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-button-extra-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-extra-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-extra-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-extra-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-extra-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-extra-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-extra-small-leading-space, var(--m3e-button-leading-space, 0.75rem))"),trailingSpace:o("var(--m3e-button-extra-small-trailing-space, var(--m3e-button-trailing-space, 0.75rem))"),iconLabelSpace:o("var(--m3e-button-extra-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},small:{containerHeight:o(`calc(var(--m3e-button-small-container-height, var(--m3e-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-button-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-small-leading-space, var(--m3e-button-leading-space, 1rem))"),trailingSpace:o("var(--m3e-button-small-trailing-space, var(--m3e-button-trailing-space, 1rem))"),iconLabelSpace:o("var(--m3e-button-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},medium:{containerHeight:o(`calc(var(--m3e-button-medium-container-height, var(--m3e-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-button-medium-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-medium-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.body.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-medium-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.body.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-medium-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.body.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-medium-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.body.large.tracking}))`),iconSize:o("var(--m3e-button-medium-icon-size, var(--m3e-button-icon-size, 1.5rem))"),shapeRound:o(`var(--m3e-button-medium-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-medium-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-button-medium-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-button-medium-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-medium-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.medium}))`),leadingSpace:o("var(--m3e-button-medium-leading-space, var(--m3e-button-leading-space, 1.5rem))"),trailingSpace:o("var(--m3e-button-medium-trailing-space, var(--m3e-button-trailing-space, 1.5rem))"),iconLabelSpace:o("var(--m3e-button-medium-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},large:{containerHeight:o(`calc(var(--m3e-button-large-container-height, var(--m3e-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-large-outline-thickness, var(--m3e-button-outline-thickness, 2px))"),labelTextFontSize:o(`var(--m3e-button-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o("var(--m3e-button-large-icon-size, var(--m3e-button-icon-size, 2rem))"),shapeRound:o(`var(--m3e-button-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-large-leading-space, var(--m3e-button-leading-space, 3rem))"),trailingSpace:o("var(--m3e-button-large-trailing-space, var(--m3e-button-trailing-space, 3rem))"),iconLabelSpace:o("var(--m3e-button-large-icon-label-space, var(--m3e-button-icon-label-space, 0.75rem))")},"extra-large":{containerHeight:o(`calc(var(--m3e-button-extra-large-container-height, var(--m3e-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-extra-large-outline-thickness, var(--m3e-button-outline-thickness, 3px))"),labelTextFontSize:o(`var(--m3e-button-extra-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.large.tracking}))`),iconSize:o("var(--m3e-button-extra-large-icon-size, var(--m3e-button-icon-size, 2.5rem))"),shapeRound:o(`var(--m3e-button-extra-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-extra-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-extra-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-extra-large-leading-space, var(--m3e-button-leading-space, 4rem))"),trailingSpace:o("var(--m3e-button-extra-large-trailing-space, var(--m3e-button-trailing-space, 4rem))"),iconLabelSpace:o("var(--m3e-button-extra-large-icon-label-space, var(--m3e-button-icon-label-space, 1rem))")}};function So(e){return i`:host([size="${o(e)}"]) .base { height: ${Co[e].containerHeight}; } :host([size="${o(e)}"]) .wrapper { padding-inline-start: ${Co[e].leadingSpace}; padding-inline-end: ${Co[e].trailingSpace}; column-gap: ${Co[e].iconLabelSpace}; } :host( [size="${o(e)}"]:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not( :state(-pressed) ) ) .wrapper { padding-inline-start: calc( ${Co[e].leadingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); padding-inline-end: calc( ${Co[e].trailingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); } :host([size="${o(e)}"]) .label { font-size: ${Co[e].labelTextFontSize}; font-weight: ${Co[e].labelTextFontWeight}; line-height: ${Co[e].labelTextLineHeight}; letter-spacing: ${Co[e].labelTextTracking}; } :host([size="${o(e)}"]) .icon { font-size: ${Co[e].iconSize}; --m3e-icon-size: ${Co[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${Co[e].outlineThickness}); outline-width: ${Co[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]) .base { border-radius: var(--_button-shape, ${Co[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${Co[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${Co[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Co[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${Co[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Co[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Co[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Co[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Co[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${Co[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${Co[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${Co[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${Co[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Co[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var(--_button-start-shape-pressed-morph, ${Co[e].shapePressedMorph}); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${Co[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${Co[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${Co[e].shapePressedMorph}); }`}const _o=[So("extra-small"),So("small"),So("medium"),So("large"),So("extra-large")],Lo=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]), ::slotted([slot="trailing-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]), ::slotted(svg[slot="selected-icon"]), ::slotted(svg[slot="trailing-icon"]) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected-icon"], :host([toggle][selected]) .base.with-selected-icon slot[name="icon"] { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected))) { transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .label, .icon { transition: none; } }`,Eo={elevated:{labelTextColor:o(`var(--m3e-elevated-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-elevated-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-button-container-color, var(--m3e-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-elevated-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-elevated-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-elevated-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{labelTextColor:o(`var(--m3e-outlined-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSurfaceVariant}))`),iconColor:o(`var(--m3e-outlined-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-outline-color, var(--m3e-button-outline-color, ${v.color.outlineVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedIconColor:o(`var(--m3e-outlined-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-outlined-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-outlined-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-button-disabled-outline-color, var(--m3e-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-hover-outline-color, var(--m3e-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-focus-outline-color, var(--m3e-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-pressed-outline-color, var(--m3e-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{labelTextColor:o(`var(--m3e-filled-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-filled-button-icon-color, var(--m3e-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-button-container-color, var(--m3e-button-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-filled-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-filled-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-filled-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-filled-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-filled-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-filled-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-filled-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-filled-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{labelTextColor:o(`var(--m3e-tonal-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-tonal-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-button-container-color, var(--m3e-button-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-tonal-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onSecondary}))`),selectedIconColor:o(`var(--m3e-tonal-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tonal-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tonal-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tonal-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tonal-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-tonal-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},text:{labelTextColor:o(`var(--m3e-text-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-text-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-text-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-text-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-text-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-text-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-text-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-text-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-text-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-text-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-text-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-text-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function zo(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Eo[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${Eo[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Eo[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Eo[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Eo[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Eo[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Eo[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Eo[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Eo[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Eo[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Eo[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${Eo[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Eo[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${Eo[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${Eo[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Eo[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Eo[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${Eo[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${Eo[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${Eo[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].selectedLabelTextColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].focus.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].focus.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].focus.selectedLabelTextColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].hover.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].hover.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].hover.selectedLabelTextColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .label { color: ${Eo[e].pressed.labelTextColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .label { color: ${Eo[e].pressed.unselectedLabelTextColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .label { color: ${Eo[e].pressed.selectedLabelTextColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${Eo[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${Eo[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${Eo[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Eo[e].disabled.containerElevation??o("unset")}; outline-color: ${Eo[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${Eo[e].disabled.containerColor} ${Eo[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${Eo[e].disabled.labelTextColor} ${Eo[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Eo[e].disabled.iconColor} ${Eo[e].disabled.iconOpacity}, transparent ); }`}const Mo=[zo("text"),zo("elevated"),zo("outlined"),zo("filled"),zo("tonal"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var To,Po,Io,Wo,Do,Ao;let Ho=class extends(V(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),To.add(this),Po.set(this,t=>e(this,To,"m",Io).call(this,t)),this.variant="text",this.shape="rounded",this.size="small",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new K(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new Z(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,To,"m",Do).call(this),S()?e(this,To,"m",Ao).call(this,!0):requestAnimationFrame(()=>e(this,To,"m",Ao).call(this,!0))):e(this,To,"m",Ao).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected-icon" aria-hidden="true" @slotchange="${e(this,To,"m",Wo)}"></slot>`:n}<slot class="icon" name="icon" aria-hidden="true"></slot><div class="label">${this.toggle&&this.selected?s`<slot name="selected"><slot></slot></slot>`:s`<slot></slot>`}</div><slot class="icon" name="trailing-icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Po,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>C(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),C(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,Po,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(C(this,"-pressed"),C(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,To,"m",Do).call(this,!0))}};var Oo,Bo,Fo,qo;Po=new WeakMap,To=new WeakSet,Io=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},Wo=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},Do=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},Ao=function(e){k(this,"-pressed",e),k(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),k(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),C(r,"-adjacent-pressed"))}}},Ho.styles=[_o,Mo,Lo],t([h(".base")],Ho.prototype,"_base",void 0),t([h(".elevation")],Ho.prototype,"_elevation",void 0),t([h(".focus-ring")],Ho.prototype,"_focusRing",void 0),t([h(".state-layer")],Ho.prototype,"_stateLayer",void 0),t([h(".ripple")],Ho.prototype,"_ripple",void 0),t([m({reflect:!0})],Ho.prototype,"variant",void 0),t([m({reflect:!0})],Ho.prototype,"shape",void 0),t([m({reflect:!0})],Ho.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],Ho.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],Ho.prototype,"selected",void 0),t([y(40)],Ho.prototype,"_handleResize",null),Ho=t([$("m3e-button")],Ho);let Vo=class extends(f(r,"group")){constructor(){super(...arguments),Oo.add(this),Bo.set(this,new Z(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:e=>{this._base&&(e&&"connected"!==this.variant?(this._base.classList.add("pressed"),this._base.style.setProperty("--_button-group-width",`${this._base.getBoundingClientRect().width}px`)):(this._base.style.removeProperty("--_button-group-width"),this._base.classList.remove("pressed")))}})),this.variant="standard",this.size="small",this.multi=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("disable-role")&&(this.role=null)}disconnectedCallback(){super.disconnectedCallback(),this._base?.style.removeProperty("--_button-group-width"),this._base?.classList.remove("pressed")}update(t){super.update(t),(t.has("multi")||t.has("variant"))&&e(this,Oo,"m",Fo).call(this),t.has("variant")&&this._base?.style.removeProperty("--_button-group-width")}render(){return s`<div class="base"><slot @slotchange="${e(this,Oo,"m",Fo)}" @change="${e(this,Oo,"m",qo)}"></slot></div>`}};function Ro(e,t,a){const o=new Date;return o.setFullYear(e,t,a),o.setHours(0,0,0,0),o}function Uo(e,t){return Ro(e.getFullYear(),e.getMonth(),e.getDate()+t)}function No(e,t){let a=Ro(e.getFullYear(),e.getMonth()+t,e.getDate());return a.getMonth()!=((e.getMonth()+t)%12+12)%12&&(a=Ro(a.getFullYear(),a.getMonth(),0)),a}function jo(e,t){return No(e,12*t)}function Yo(e,t){return e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()}function Ko(e,t){return e&&t?0==Yo(e,t):e==t}function Zo(e,t,a){return o=e.getFullYear()-function(e,t){return t?t.getFullYear()-Qo+1:e?e.getFullYear():0}(t,a),(o%(i=Qo)+i)%i;var o,i}function Go(e,t,a){return e.getFullYear()-Zo(e,t,a)}function Xo(e,t,a){return Go(e,t,a)+Qo-1}function Jo(e,t,a){return t&&Yo(e,t)<0?t:a&&Yo(e,a)>0?a:e}Bo=new WeakMap,Oo=new WeakSet,Fo=function(){const t=this.buttons;for(const t of e(this,Bo,"f").targets)e(this,Bo,"f").unobserve(t);const a=[...t].some(e=>e.toggle);this.hasAttribute("disable-role")||(this.role=a&&!this.multi?"radiogroup":"group");const o="radiogroup"===this.role?"radio":"button";t.forEach((a,i)=>{if(e(this,Bo,"f").observe(a),k(a,"-connected","connected"===this.variant),E(a,"-grouped"),k(a,"-first",0==i),k(a,"-last",i==t.length-1),!this.hasAttribute("disable-role")&&a.role!==o&&a.toggle){const e=a.toggle?a.selected?"true":"false":null;a.role=o,"button"===a.role?(a.ariaPressed=e,a.ariaChecked=null):(a.ariaChecked=e,a.ariaPressed=null)}})},qo=function(e){if(!this.multi&&e.target instanceof HTMLElement&&("M3E-BUTTON"===e.target.tagName||"M3E-ICON-BUTTON"===e.target.tagName)){if(!X(e.target)||!e.target.selected)return;for(const t of this.buttons)t!==e.target&&t.selected&&(t.selected=!1)}},Vo.styles=i`:host { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } .base { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } :host([variant="standard"]) { justify-content: center; } :host([variant="connected"]) .base { flex: 1 1 auto; } :host([variant="standard"]) .base { width: fit-content; flex: none; } :host([variant="standard"]) .base.pressed { justify-content: space-between; width: var(--_button-group-width); } :host([variant="standard"][size="extra-small"]) .base { column-gap: var(--m3e-standard-button-group-extra-small-spacing, 1.125rem); } :host([variant="standard"][size="small"]) .base { column-gap: var(--m3e-standard-button-group-small-spacing, 0.75rem); } :host([variant="standard"][size="medium"]).base { column-gap: var(--m3e-standard-button-group-medium-spacing, 0.5rem); } :host([variant="standard"][size="large"]) .base { column-gap: var(--m3e-standard-button-group-large-spacing, 0.5rem); } :host([variant="standard"][size="extra-large"]) .base { column-gap: var(--m3e-standard-button-group-extra-large-spacing, 0.5rem); } :host([variant="connected"]) .base { column-gap: var(--m3e-connected-button-group-spacing, 0.125rem); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-first)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-last)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-first)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-end-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-last)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-start-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-first)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-last)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-first)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-last)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-first)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-last)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); }`,t([h(".base")],Vo.prototype,"_base",void 0),t([m({reflect:!0})],Vo.prototype,"variant",void 0),t([m({reflect:!0})],Vo.prototype,"size",void 0),t([m({type:Boolean})],Vo.prototype,"multi",void 0),t([p({slot:"",selector:"m3e-button,m3e-icon-button",flatten:!0})],Vo.prototype,"buttons",void 0),Vo=t([$("m3e-button-group")],Vo);const Qo=15;class ei extends r{constructor(){super(...arguments),this.today=new Date,this.date=null,this.activeDate=new Date,this.minDate=null,this.maxDate=null}async focusActiveCell(){this.isUpdatePending&&await this.updateComplete,this._activeItem&&await H(this._activeItem)}_changeActiveDate(e){Ko(e=Jo(e,this.minDate,this.maxDate),this.activeDate)||(this._activeItem?.style.setProperty("--m3e-state-layer-duration","0ms"),this._activeItem?.blur(),this._activeItem?.style.removeProperty("--m3e-state-layer-duration"),this.activeDate=e,this.dispatchEvent(new Event("active-change",{bubbles:!1})))}}
|
|
7
7
|
/**
|
|
8
8
|
* Adapted from Angular Material Datepicker
|
|
9
9
|
* Source: https://github.com/angular/components/blob/main/src/material/datepicker/month-view.ts
|
|
@@ -21,7 +21,7 @@ var ti,ai,oi,ii,ri,si,ni,li;ei.styles=i`:host { display: inline-block; user-sele
|
|
|
21
21
|
* Copyright (c) 2025 Google LLC
|
|
22
22
|
* See LICENSE file in the project root for full license text.
|
|
23
23
|
*/
|
|
24
|
-
var di,hi,mi,pi;ti=new WeakSet,ai=function(t){const a=new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"long",day:"numeric"}).format(t),o=this.specialDates?.(t)??!1,i=Ko(this.date,t),r=Ko(this.activeDate,t),n=Ko(this.today,t),l=this.minDate&&Yo(t,this.minDate)<0||this.maxDate&&Yo(t,this.maxDate)>0||!0===this.blackoutDates?.(t),c=`date-${t.getMonth()}-${t.getDate()}-${t.getFullYear()}`;let d=!1,h=!1,m=!1,p=!1;return this.rangeStart&&(this.rangeEnd?(d=Yo(t,this.rangeStart)>0&&Yo(t,this.rangeEnd)<0,d||(h=Yo(t,this.rangeStart)>=0&&Yo(t,this.rangeEnd)<0,h?p=!0:m=Yo(t,this.rangeStart)>0&&Yo(t,this.rangeEnd)<=0)):h=Ko(t,this.rangeStart)),s`<td role="gridcell" class="${Ne({current:n,selected:i,active:r,special:o,range:d,"range-start":h,"range-start-range":p,"range-end":m})}"><div id="${c}" role="button" class="item" data-value="${t.toISOString()}" tabindex="${r?"0":"-1"}" aria-disabled="${je(l||void 0)}" aria-current="${je(n?"date":void 0)}" aria-pressed="${i||h||m}" @click="${e(this,ti,"m",oi)}" @mouseenter="${e(this,ti,"m",ri)}" @focus="${e(this,ti,"m",si)}" @mouseleave="${e(this,ti,"m",li)}" @blur="${e(this,ti,"m",li)}" @keydown="${e(this,ti,"m",ii)}"><m3e-focus-ring class="focus-ring" for="${c}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${c}" ?disable-hover="${l}"></m3e-state-layer><m3e-ripple class="ripple" centered for="${c}" ?disabled="${l}"></m3e-ripple><div class="touch"></div><span class="visually-hidden">${a}</span> <span aria-hidden="true">${t.getDate()}</span></div></td>`},oi=function(t){const a=t.currentTarget;"true"!==a.ariaDisabled&&a.dataset.value&&(this.activeDate=new Date(a.dataset.value),this.activeDate=Jo(this.activeDate,this.minDate,this.maxDate),this.rangeStart&&(Yo(this.activeDate,this.rangeStart)<0?(this.rangeStart=this.activeDate,this.rangeEnd=null):this.rangeEnd=this.activeDate,e(this,ti,"m",li).call(this)),this.dispatchEvent(new Event("change",{bubbles:!1})))},ii=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=Uo(t,"rtl"===
|
|
24
|
+
var di,hi,mi,pi;ti=new WeakSet,ai=function(t){const a=new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"long",day:"numeric"}).format(t),o=this.specialDates?.(t)??!1,i=Ko(this.date,t),r=Ko(this.activeDate,t),n=Ko(this.today,t),l=this.minDate&&Yo(t,this.minDate)<0||this.maxDate&&Yo(t,this.maxDate)>0||!0===this.blackoutDates?.(t),c=`date-${t.getMonth()}-${t.getDate()}-${t.getFullYear()}`;let d=!1,h=!1,m=!1,p=!1;return this.rangeStart&&(this.rangeEnd?(d=Yo(t,this.rangeStart)>0&&Yo(t,this.rangeEnd)<0,d||(h=Yo(t,this.rangeStart)>=0&&Yo(t,this.rangeEnd)<0,h?p=!0:m=Yo(t,this.rangeStart)>0&&Yo(t,this.rangeEnd)<=0)):h=Ko(t,this.rangeStart)),s`<td role="gridcell" class="${Ne({current:n,selected:i,active:r,special:o,range:d,"range-start":h,"range-start-range":p,"range-end":m})}"><div id="${c}" role="button" class="item" data-value="${t.toISOString()}" tabindex="${r?"0":"-1"}" aria-disabled="${je(l||void 0)}" aria-current="${je(n?"date":void 0)}" aria-pressed="${i||h||m}" @click="${e(this,ti,"m",oi)}" @mouseenter="${e(this,ti,"m",ri)}" @focus="${e(this,ti,"m",si)}" @mouseleave="${e(this,ti,"m",li)}" @blur="${e(this,ti,"m",li)}" @keydown="${e(this,ti,"m",ii)}"><m3e-focus-ring class="focus-ring" for="${c}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${c}" ?disable-hover="${l}"></m3e-state-layer><m3e-ripple class="ripple" centered for="${c}" ?disabled="${l}"></m3e-ripple><div class="touch"></div><span class="visually-hidden">${a}</span> <span aria-hidden="true">${t.getDate()}</span></div></td>`},oi=function(t){const a=t.currentTarget;"true"!==a.ariaDisabled&&a.dataset.value&&(this.activeDate=new Date(a.dataset.value),this.activeDate=Jo(this.activeDate,this.minDate,this.maxDate),this.rangeStart&&(Yo(this.activeDate,this.rangeStart)<0?(this.rangeStart=this.activeDate,this.rangeEnd=null):this.rangeEnd=this.activeDate,e(this,ti,"m",li).call(this)),this.dispatchEvent(new Event("change",{bubbles:!1})))},ii=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=Uo(t,"rtl"===Ve.current?1:-1);break;case"ArrowRight":case"Right":t=Uo(t,"rtl"===Ve.current?-1:1);break;case"ArrowUp":case"Up":t=Uo(t,-7);break;case"ArrowDown":case"Down":t=Uo(t,7);break;case"Home":t=Uo(t,1-t.getDate());break;case"End":t=Uo(t,Ro((a=t).getFullYear(),a.getMonth()+1,0).getDate()-t.getDate());break;case"PageUp":t=e.altKey?jo(t,-1):No(t,-1);break;case"PageDown":t=e.altKey?jo(t,1):No(t,1);break;default:return}var a;e.preventDefault(),this._changeActiveDate(t)},ri=function(t){e(this,ti,"m",ni).call(this,t.currentTarget)},si=function(t){this._suppressFocusHighlight||e(this,ti,"m",ni).call(this,t.currentTarget)},ni=function(t){if(e(this,ti,"m",li).call(this),this.rangeStart&&t.dataset.value){Yo(new Date(t.dataset.value),this.rangeStart)>0&&t.parentElement.classList.add("range-highlight-end");for(const e of t.closest("table")?.querySelectorAll(".item")??[]){if(e===t)break;const a=new Date(e.dataset.value);Yo(a,this.rangeStart)>0?e.parentElement.classList.add("range-highlight"):Yo(a,this.rangeStart)>=0&&e.parentElement.classList.add("range-highlight-start")}}},li=function(){this.rangeStart&&this.shadowRoot?.querySelectorAll(".range-highlight,.range-highlight-end,.range-highlight-start").forEach(e=>e.classList.remove("range-highlight","range-highlight-end","range-highlight-start"))},ci.styles=[ei.styles,i`thead { font-size: var(--m3e-calendar-weekday-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-calendar-weekday-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-calendar-weekday-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-calendar-weekday-tracking, ${v.typescale.standard.title.small.tracking}); color: var(--m3e-calendar-weekday-color, ${v.color.onSurface}); } th { height: 1.5rem; padding-block-start: 1.875rem; padding-block-end: 1rem; } tbody { font-size: var(--m3e-calendar-date-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-calendar-date-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-calendar-date-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-calendar-date-tracking, ${v.typescale.standard.body.medium.tracking}); } td:not(:has(.item[aria-disabled])):not(.selected):not(.range-start):not(.range-end).special { color: var(--m3e-calendar-item-special-color, ${v.color.onTertiaryContainer}); --m3e-ripple-color: var(--m3e-calendar-item-special-ripple-color, ${v.color.onTertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-calendar-item-special-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-calendar-item-special-focus-color, ${v.color.onTertiaryContainer} ); } td:not(:has(.item[aria-disabled])):not(.selected):not(.range-start):not(.range-end).special .state-layer { background-color: var(--m3e-calendar-item-special-container-color, ${v.color.tertiaryContainer}); } td:not(:has(.item[aria-disabled])).range-start, td:not(:has(.item[aria-disabled])).range-end { color: var(--m3e-calendar-item-selected-color, ${v.color.onPrimary}); --m3e-ripple-color: var(--m3e-calendar-item-selected-ripple-color, ${v.color.onPrimary}); } td:not(:has(.item[aria-disabled])).range-start .state-layer, td:not(:has(.item[aria-disabled])).range-end .state-layer { background-color: var(--m3e-calendar-item-selected-container-color, ${v.color.primary}); } td:not(:has(.item[aria-disabled])).range::before, td:not(:has(.item[aria-disabled])).range-start-range::before, td:not(:has(.item[aria-disabled])).range-end::before { content: ""; position: absolute; left: 0; right: 0; top: 0.25rem; bottom: 0.25rem; background-color: var(--m3e-calendar-range-container-color, ${v.color.primaryContainer}); } td:not(:has(.item[aria-disabled])):not(.selected).range { color: var(--m3e-calendar-range-color, ${v.color.onPrimaryContainer}); } td:not(:has(.item[aria-disabled])).range-start::before { inset-inline-start: 50%; width: 50%; } td:not(:has(.item[aria-disabled])).range-end::before { inset-inline-end: 50%; width: 50%; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after, td:not(:has(.item[aria-disabled])).range-highlight .item::after, td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { content: ""; position: absolute; top: 0; left: calc(0px - 0.1875rem); right: calc(0px - 0.1875rem); bottom: 0; border-style: dashed; border-color: ${v.color.primary}; border-width: 1px; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after { margin-inline-start: 50%; } td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { margin-inline-end: 0.1875rem; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after, td:not(:has(.item[aria-disabled])).range-highlight .item::after { border-inline-style: none; } td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { border-start-end-radius: ${v.shape.corner.full}; border-end-end-radius: ${v.shape.corner.full}; border-inline-start-style: none; } @media (forced-colors: active) { td:not(:has(.item[aria-disabled])).range-start, td:not(:has(.item[aria-disabled])).range-end { forced-color-adjust: none; color: HighlightText; } td:not(:has(.item[aria-disabled])).range-start .state-layer, td:not(:has(.item[aria-disabled])).range-end .state-layer { background-color: Highlight; } td:not(:has(.item[aria-disabled])).range::before, td:not(:has(.item[aria-disabled])).range-start-range::before, td:not(:has(.item[aria-disabled])).range-end::before { background-color: Highlight; } td:not(:has(.item[aria-disabled])):not(.selected).range { forced-color-adjust: none; color: HighlightText; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after, td:not(:has(.item[aria-disabled])).range-highlight .item::after, td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { border-color: GrayText; } }`],t([m({attribute:"range-start",converter:J})],ci.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],ci.prototype,"rangeEnd",void 0),t([m({attribute:!1})],ci.prototype,"blackoutDates",void 0),t([m({attribute:!1})],ci.prototype,"specialDates",void 0),ci=t([$("m3e-month-view")],ci);let ui=class extends ei{constructor(){super(...arguments),di.add(this)}render(){const t=new Array,a=Go(this.activeDate,this.minDate,this.maxDate);for(let e=0,o=[];e<Qo;e++)o.push(a+e),3===o.length&&(t.push(o),o=new Array);return s`<table role="grid"><thead aria-hidden="true"><tr><th colspan="${3}"></th></tr></thead><tbody>${t.map(t=>s`<tr role="row">${t.map(t=>e(this,di,"m",hi).call(this,t))}</tr>`)}</tbody></table>`}};
|
|
25
25
|
/**
|
|
26
26
|
* Adapted from Angular Material Datepicker
|
|
27
27
|
* Source: https://github.com/angular/components/blob/main/src/material/datepicker/year-view.ts
|
|
@@ -30,7 +30,7 @@ var di,hi,mi,pi;ti=new WeakSet,ai=function(t){const a=new Intl.DateTimeFormat(na
|
|
|
30
30
|
* Copyright (c) 2025 Google LLC
|
|
31
31
|
* See LICENSE file in the project root for full license text.
|
|
32
32
|
*/
|
|
33
|
-
var vi,bi,fi,gi;di=new WeakSet,hi=function(t){const a=new Intl.DateTimeFormat(navigator.language,{year:"numeric"}),o=this.activeDate.getFullYear()===t,i=this.date?.getFullYear()===t,r=this.today.getFullYear()===t,n=this.minDate&&t<this.minDate.getFullYear()||this.maxDate&&t>this.maxDate.getFullYear(),l=`year-${t}`;return s`<td role="gridcell" class="${Ne({current:r,selected:i,active:o})}"><div id="${l}" class="item" role="button" tabindex="${o?"0":"-1"}" data-value="${t}" aria-disabled="${je(n||void 0)}" aria-current="${je(r?"date":void 0)}" aria-pressed="${i}" @click="${e(this,di,"m",mi)}" @keydown="${e(this,di,"m",pi)}"><m3e-focus-ring class="focus-ring" for="${l}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${l}" ?disable-hover="${n}"></m3e-state-layer><m3e-ripple class="ripple" for="${l}" centered ?disabled="${n}"></m3e-ripple><div class="touch"></div><span>${a.format(new Date(t,0,1))}</span></div></td>`},mi=function(e){const t=e.currentTarget;"true"!==t.ariaDisabled&&t.dataset.value&&(this.activeDate=new Date(this.activeDate),this.activeDate.setFullYear(Number(t.dataset.value)),this.activeDate=Jo(this.activeDate,this.minDate,this.maxDate),this.dispatchEvent(new Event("change",{bubbles:!1})))},pi=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=jo(t,"rtl"===
|
|
33
|
+
var vi,bi,fi,gi;di=new WeakSet,hi=function(t){const a=new Intl.DateTimeFormat(navigator.language,{year:"numeric"}),o=this.activeDate.getFullYear()===t,i=this.date?.getFullYear()===t,r=this.today.getFullYear()===t,n=this.minDate&&t<this.minDate.getFullYear()||this.maxDate&&t>this.maxDate.getFullYear(),l=`year-${t}`;return s`<td role="gridcell" class="${Ne({current:r,selected:i,active:o})}"><div id="${l}" class="item" role="button" tabindex="${o?"0":"-1"}" data-value="${t}" aria-disabled="${je(n||void 0)}" aria-current="${je(r?"date":void 0)}" aria-pressed="${i}" @click="${e(this,di,"m",mi)}" @keydown="${e(this,di,"m",pi)}"><m3e-focus-ring class="focus-ring" for="${l}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${l}" ?disable-hover="${n}"></m3e-state-layer><m3e-ripple class="ripple" for="${l}" centered ?disabled="${n}"></m3e-ripple><div class="touch"></div><span>${a.format(new Date(t,0,1))}</span></div></td>`},mi=function(e){const t=e.currentTarget;"true"!==t.ariaDisabled&&t.dataset.value&&(this.activeDate=new Date(this.activeDate),this.activeDate.setFullYear(Number(t.dataset.value)),this.activeDate=Jo(this.activeDate,this.minDate,this.maxDate),this.dispatchEvent(new Event("change",{bubbles:!1})))},pi=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=jo(t,"rtl"===Ve.current?1:-1);break;case"ArrowRight":case"Right":t=jo(t,"rtl"===Ve.current?-1:1);break;case"ArrowUp":case"Up":t=jo(t,-3);break;case"ArrowDown":case"Down":t=jo(t,3);break;case"Home":t=jo(t,-Zo(t,this.minDate,this.maxDate));break;case"End":t=jo(t,Qo-Zo(t,this.minDate,this.maxDate)-1);break;case"PageUp":t=jo(t,e.altKey?10*-Qo:-Qo);break;case"PageDown":t=jo(t,e.altKey?10*Qo:Qo);break;default:return}e.preventDefault(),this._changeActiveDate(t)},ui.styles=[ei.styles,i`.item { height: 2.25rem; } .touch { width: 100%; } th { height: 1rem; } td { padding-inline: 1rem; } tbody { font-size: var(--m3e-calendar-item-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-calendar-item-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-calendar-item-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-calendar-item-tracking, ${v.typescale.standard.body.medium.tracking}); }`],ui=t([$("m3e-multi-year-view")],ui);let yi=class extends ei{constructor(){super(...arguments),vi.add(this)}render(){const t=new Array,a=new Intl.DateTimeFormat(navigator.language,{month:"short"}),o=new Intl.DateTimeFormat(navigator.language,{month:"long"}),i=this.activeDate.getFullYear();for(let e=0,r=new Array;e<12;e++){const s=new Date(i,e,1);r.push({narrow:a.format(s),long:o.format(s),date:s}),4==r.length&&(t.push(r),r=[])}return s`<table role="grid"><thead aria-hidden="true"><tr><th colspan="${4}"></th></tr></thead><tbody>${t.map(t=>s`<tr role="row">${t.map(t=>e(this,vi,"m",bi).call(this,t))}</tr>`)}</tbody></table>`}};
|
|
34
34
|
/**
|
|
35
35
|
* Adapted from Angular Material Datepicker
|
|
36
36
|
* Source: https://github.com/angular/components/blob/main/src/material/datepicker/calendar.ts
|
|
@@ -39,7 +39,7 @@ var vi,bi,fi,gi;di=new WeakSet,hi=function(t){const a=new Intl.DateTimeFormat(na
|
|
|
39
39
|
* Copyright (c) 2025 Google LLC
|
|
40
40
|
* See LICENSE file in the project root for full license text.
|
|
41
41
|
*/
|
|
42
|
-
var $i,xi,wi,ki,Ci,Si,_i,Li,Ei,zi;vi=new WeakSet,bi=function(t){const a=this.activeDate.getFullYear()===t.date.getFullYear()&&this.activeDate.getMonth()===t.date.getMonth(),o=this.date?.getFullYear()===t.date.getFullYear()&&this.date?.getMonth()===t.date.getMonth(),i=this.today.getFullYear()===t.date.getFullYear()&&this.today.getMonth()===t.date.getMonth(),r=this.minDate&&(t.date.getFullYear()<this.minDate.getFullYear()||t.date.getFullYear()===this.minDate.getFullYear()&&t.date.getMonth()<this.minDate.getMonth())||this.maxDate&&(t.date.getFullYear()>this.maxDate.getFullYear()||t.date.getFullYear()===this.maxDate.getFullYear()&&t.date.getMonth()>this.maxDate.getMonth()),n=`month-${t.date.getMonth()}`;return s`<td role="gridcell" class="${Ne({current:i,selected:o,active:a})}"><div id="${n}" class="item" role="button" tabindex="${a?"0":"-1"}" data-value="${t.date.toISOString()}" aria-disabled="${je(r||void 0)}" aria-current="${je(i?"date":void 0)}" aria-pressed="${o}" @click="${e(this,vi,"m",fi)}" @keydown="${e(this,vi,"m",gi)}"><m3e-focus-ring class="focus-ring" for="${n}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${n}" ?disable-hover="${r}"></m3e-state-layer><m3e-ripple class="ripple" centered for="${n}" ?disabled="${r}"></m3e-ripple><div class="touch"></div><span class="visually-hidden">${t.long}</span> <span aria-hidden="true">${t.narrow}</span></div></td>`},fi=function(e){const t=e.currentTarget;"true"!==t.ariaDisabled&&t.dataset.value&&(this.activeDate=Jo(new Date(t.dataset.value),this.minDate,this.maxDate),this.dispatchEvent(new Event("change",{bubbles:!1})))},gi=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=No(t,"rtl"===qe.current?1:-1);break;case"ArrowRight":case"Right":t=No(t,"rtl"===qe.current?-1:1);break;case"ArrowUp":case"Up":t=No(t,-4);break;case"ArrowDown":case"Down":t=No(t,4);break;case"Home":t=No(t,-t.getMonth());break;case"End":t=No(t,11-t.getMonth());break;case"PageUp":t=jo(t,e.altKey?-10:-1);break;case"PageDown":t=jo(t,e.altKey?10:1);break;default:return}e.preventDefault(),this._changeActiveDate(t)},yi.styles=[ei.styles,i`.item { height: 2.25rem; } .touch { width: 100%; } th { height: 1rem; } td { padding-inline: 0.375rem; } tbody { font-size: var(--m3e-calendar-item-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-calendar-item-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-calendar-item-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-calendar-item-tracking, ${v.typescale.standard.body.medium.tracking}); }`],yi=t([$("m3e-year-view")],yi);let Mi=class extends r{constructor(){super(...arguments),$i.add(this),xi.set(this,void 0),this._today=new Date,this._activeView="month",this._activeDate=new Date,this.startView="month",this.date=null,this.startAt=null,this.minDate=null,this.maxDate=null,this.rangeStart=null,this.rangeEnd=null,this.blackoutDates=null,this.specialDates=null,this.previousMonthLabel="Previous month",this.previousYearLabel="Previous year",this.previousMultiYearLabel="Previous 24 years",this.nextMonthLabel="Next month",this.nextYearLabel="Next year",this.nextMultiYearLabel="Next 24 years"}get periodLabel(){switch(this._activeView){case"month":return new Intl.DateTimeFormat(navigator.language,{month:"short",year:"numeric"}).format(this._activeDate);case"year":return new Intl.DateTimeFormat(navigator.language,{year:"numeric"}).format(new Date(this._activeDate.getFullYear(),0,1));case"multi-year":return new Intl.DateTimeFormat(navigator.language,{year:"numeric"}).formatRange(new Date(Go(this._activeDate,this.minDate,this.maxDate),0,1),new Date(Xo(this._activeDate,this.minDate,this.maxDate),0,1))}}get canMovePreviousPeriod(){if(!this.minDate)return!0;switch(this._activeView){case"month":return new Date(this._activeDate.getFullYear(),this._activeDate.getMonth(),0)>=this.minDate;case"year":return new Date(this._activeDate.getFullYear()-1,12,1)>=this.minDate;case"multi-year":return new Date(Go(this._activeDate,this.minDate,this.maxDate)-1,12,1)>=this.minDate}}get canMoveNextPeriod(){if(!this.maxDate)return!0;switch(this._activeView){case"month":return new Date(this._activeDate.getFullYear(),this._activeDate.getMonth()+1,1)<=this.maxDate;case"year":return new Date(this._activeDate.getFullYear()+1,1,1)<=this.maxDate;case"multi-year":return new Date(Xo(this._activeDate,this.minDate,this.maxDate)+1,12,1)<=this.maxDate}}async focusActiveCell(){this.isUpdatePending&&await this.updateComplete,await(this._view?.focusActiveCell())}updateTodayDate(){this._today=new Date}async movePreviousPeriod(){if(!this.canMovePreviousPeriod)return;if(S())return void(this._activeDate=e(this,$i,"m",Ei).call(this,this._activeView));await e(this,xi,"f");const t=[...this.shadowRoot?.querySelectorAll(`.row.${this._activeView} .view`)??[]];3==t.length&&(a(this,xi,new Promise(a=>{t[0].addEventListener("transitionend",()=>{this._activeDate=e(this,$i,"m",Ei).call(this,this._activeView),t.forEach(e=>e.classList.add("no-animate")),t[1].classList.remove("after"),t[0].classList.add("before"),setTimeout(()=>{t.forEach(e=>e.classList.remove("no-animate")),a()})},{once:!0})}),"f"),this._body.style.overflow="hidden",t[1].classList.add("after"),t[0].classList.remove("before"),await e(this,xi,"f"),this._body.style.overflow="")}async moveNextPeriod(){if(!this.canMoveNextPeriod)return;if(S())return void(this._activeDate=e(this,$i,"m",zi).call(this,this._activeView));await e(this,xi,"f");const t=[...this.shadowRoot?.querySelectorAll(`.row.${this._activeView} .view`)??[]];3==t.length&&(a(this,xi,new Promise(a=>{t[2].addEventListener("transitionend",()=>{this._activeDate=e(this,$i,"m",zi).call(this,this._activeView),t.forEach(e=>e.classList.add("no-animate")),t[1].classList.remove("before"),t[2].classList.add("after"),setTimeout(()=>{t.forEach(e=>e.classList.remove("no-animate")),a()})},{once:!0})}),"f"),this._body.style.overflow="hidden",t[1].classList.add("before"),t[2].classList.remove("after"),await e(this,xi,"f"),this._body.style.overflow="")}async togglePeriod(){await e(this,xi,"f"),this._activeView="month"===this._activeView?"multi-year":"month",await this.focusActiveCell()}willUpdate(e){super.willUpdate(e),e.has("date")&&(this._activeDate=new Date(this.date??this._today)),e.has("startAt")&&(this._activeDate=new Date(this.startAt??this.date??this._today)),e.has("startView")&&(this._activeView=this.startView)}updated(e){super.updated(e),this._view instanceof ci&&(e.has("specialDates")||e.has("blackoutDates"))&&this.shadowRoot?.querySelectorAll("m3e-month-view").forEach(e=>{e.specialDates=this.specialDates,e.blackoutDates=this.blackoutDates})}render(){return s`<div class="base"><slot name="header">${e(this,$i,"m",wi).call(this)}</slot><div class="body ${this._activeView}"><div class="row multi-year">${e(this,$i,"m",ki).call(this,"multi-year",-1)}${e(this,$i,"m",ki).call(this,"multi-year",0)}${e(this,$i,"m",ki).call(this,"multi-year",1)}</div><div class="row year">${e(this,$i,"m",ki).call(this,"year",-1)}${e(this,$i,"m",ki).call(this,"year",0)}${e(this,$i,"m",ki).call(this,"year",1)}</div><div class="row month">${e(this,$i,"m",ki).call(this,"month",-1)}${e(this,$i,"m",ki).call(this,"month",0)}${e(this,$i,"m",ki).call(this,"month",1)}</div></div></div>`}};xi=new WeakMap,$i=new WeakSet,wi=function(){return s`<div class="header"><m3e-button @click="${this.togglePeriod}">${this.periodLabel} <svg class="${Ne({rotate:"month"!==this._activeView})}" slot="trailing-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></m3e-button><div class="spacer"></div><m3e-icon-button ?disabled="${!this.canMovePreviousPeriod}" @click="${this.movePreviousPeriod}" aria-label="${"month"===this._activeView?this.previousMonthLabel:"year"===this._activeView?this.previousYearLabel:this.previousMultiYearLabel}">${"ltr"===qe.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`}</m3e-icon-button><m3e-icon-button ?disabled="${!this.canMoveNextPeriod}" @click="${this.moveNextPeriod}" aria-label="${"month"===this._activeView?this.nextMonthLabel:"year"===this._activeView?this.nextYearLabel:this.nextMultiYearLabel}">${"ltr"===qe.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`}</m3e-icon-button></div>`},ki=function(t,a){const o=a<0?e(this,$i,"m",Ei).call(this,t):a>0?e(this,$i,"m",zi).call(this,t):new Date(this._activeDate);switch(t){case"month":return s`<m3e-month-view class="view ${Ne({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${je(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" range-start="${je(this.rangeStart?.toISOString())}" range-end="${je(this.rangeEnd?.toISOString())}" @active-change="${0===a?e(this,$i,"m",Li):void 0}" @change="${0===a?e(this,$i,"m",Ci):void 0}"></m3e-month-view>`;case"year":return s`<m3e-year-view class="view ${Ne({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${je(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" @active-change="${0===a?e(this,$i,"m",Li):void 0}" @change="${0===a?e(this,$i,"m",Si):void 0}"></m3e-year-view>`;case"multi-year":return s`<m3e-multi-year-view class="view ${Ne({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${je(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" @active-change="${0===a?e(this,$i,"m",Li):void 0}" @change="${0===a?e(this,$i,"m",_i):void 0}"></m3e-multi-year-view>`}},Ci=function(e){const t=e.currentTarget;this._activeDate=new Date(t.activeDate),this.rangeStart=t.rangeStart,this.rangeEnd=t.rangeEnd,this.date=new Date(this._activeDate),this.dispatchEvent(new Event("change",{bubbles:!0}))},Si=async function(e){this._activeDate=new Date(e.currentTarget.activeDate),this._activeView="month",this.focusActiveCell()},_i=function(e){this._activeDate=new Date(e.currentTarget.activeDate),this._activeView="year",this.focusActiveCell()},Li=async function(e){this._view instanceof ci&&(this._view._suppressFocusHighlight=!1),this._activeDate=new Date(e.currentTarget.activeDate),await this.focusActiveCell(),this._view instanceof ci&&(this._view._suppressFocusHighlight=!1)},Ei=function(e){const t=new Date(this._activeDate);switch(e){case"month":for(t.setMonth(this._activeDate.getMonth()-1);t.getMonth()===this._activeDate.getMonth();)t.setDate(t.getDate()-1);break;case"year":t.setFullYear(this._activeDate.getFullYear()-1);break;case"multi-year":t.setDate(1),t.setFullYear(Go(this._activeDate,this.minDate,this.maxDate)-1)}return t},zi=function(e){const t=new Date(this._activeDate);switch(e){case"month":for(t.setMonth(this._activeDate.getMonth()+1);t.getMonth()===this._activeDate.getMonth();)t.setDate(t.getDate()+1);break;case"year":t.setFullYear(this._activeDate.getFullYear()+1);break;case"multi-year":t.setDate(1),t.setFullYear(Xo(this._activeDate,this.minDate,this.maxDate)+1)}return t},Mi.styles=i`:host { display: inline-block; vertical-align: top; width: fit-content; height: fit-content; } .base { display: flex; flex-direction: column; width: fit-content; overflow: hidden; padding: var(--m3e-calendar-padding, 0.5rem); background-color: var(--m3e-calendar-container-color); box-shadow: var(--m3e-calendar-container-elevation); border-radius: var(--m3e-calendar-container-shape); } .header { display: flex; align-items: center; --m3e-text-button-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-hover-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-focus-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-pressed-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); } .spacer { flex: 1 1 auto; } svg { transition: transform ${v.motion.spring.fastEffects}; } svg.rotate { transform: rotate(-180deg); } .body { position: relative; } .view:not(.no-animate) { transition: ${o(`margin var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard},\n visibility var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .view.before, .view.after { visibility: hidden; position: absolute; } .view.before { margin-inline-start: -100%; } .view.after { margin-inline-start: 100%; } .view:not(.before):not(.after) { visibility: visible; position: relative; left: 0; margin-inline-start: 0; } .row { opacity: 1; transform: translateY(0); } .row.multi-year { transition: ${o(`transform var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete,\n opacity var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .row:not(.multi-year) { transition: ${o(`opacity var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .body.month > .row:not(.month), .body.year > .row:not(.year), .body.multi-year > .row:not(.multi-year) { visibility: hidden; position: absolute; transform: translateY(-10%); opacity: 0; } .body.month > .row:not(.month) .view:not(.before):not(.after), .body.year > .row:not(.year) .view:not(.before):not(.after), .body.multi-year > .row:not(.multi-year) .view:not(.before):not(.after) { visibility: hidden; transition: none; } @media (prefers-reduced-motion) { .row:not(.multi-year), .row.multi-year, .view:not(.no-animate), svg { transition: none; } }`,t([u()],Mi.prototype,"_today",void 0),t([u()],Mi.prototype,"_activeView",void 0),t([u()],Mi.prototype,"_activeDate",void 0),t([h(".active")],Mi.prototype,"_view",void 0),t([h(".body")],Mi.prototype,"_body",void 0),t([m({attribute:"start-view"})],Mi.prototype,"startView",void 0),t([m({converter:J})],Mi.prototype,"date",void 0),t([m({attribute:"start-at",converter:J})],Mi.prototype,"startAt",void 0),t([m({attribute:"min-date",converter:J})],Mi.prototype,"minDate",void 0),t([m({attribute:"max-date",converter:J})],Mi.prototype,"maxDate",void 0),t([m({attribute:"range-start",converter:J})],Mi.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],Mi.prototype,"rangeEnd",void 0),t([m({attribute:!1})],Mi.prototype,"blackoutDates",void 0),t([m({attribute:!1})],Mi.prototype,"specialDates",void 0),t([m({attribute:"previous-month-label"})],Mi.prototype,"previousMonthLabel",void 0),t([m({attribute:"previous-year-label"})],Mi.prototype,"previousYearLabel",void 0),t([m({attribute:"previous-multi-year-label"})],Mi.prototype,"previousMultiYearLabel",void 0),t([m({attribute:"next-month-label"})],Mi.prototype,"nextMonthLabel",void 0),t([m({attribute:"next-year-label"})],Mi.prototype,"nextYearLabel",void 0),t([m({attribute:"next-multi-year-label"})],Mi.prototype,"nextMultiYearLabel",void 0),Mi=t([$("m3e-calendar")],Mi);const Ti=o("var(--m3e-card-padding, 1rem)"),Pi=o(`var(--m3e-card-shape, ${v.shape.corner.medium});`),Ii={filled:{textColor:o(`var(--m3e-filled-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-filled-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerHighest}))`),containerElevation:o(`var(--m3e-filled-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),disabled:{textColor:o(`var(--m3e-filled-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-filled-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-filled-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-filled-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surfaceVariant}))`),containerElevation:o(`var(--m3e-filled-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-filled-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-filled-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-filled-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-filled-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`)},focus:{textColor:o(`var(--m3e-filled-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`)},pressed:{textColor:o(`var(--m3e-filled-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`)}},elevated:{textColor:o(`var(--m3e-elevated-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-elevated-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level1}))`),disabled:{textColor:o(`var(--m3e-elevated-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-elevated-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-elevated-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-elevated-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-elevated-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level1}))`),containerElevationColor:o(`var(--m3e-elevated-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-elevated-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-elevated-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-elevated-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level2}))`)},focus:{textColor:o(`var(--m3e-elevated-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level1}))`)},pressed:{textColor:o(`var(--m3e-elevated-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level1}))`)}},outlined:{textColor:o(`var(--m3e-outlined-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-outlined-card-container-color, var(--m3e-card-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-outlined-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-outline-color, var(--m3e-card-outline-color, ${v.color.outlineVariant}))`),outlineThickness:o("var(--m3e-outlined-card-outline-thickness, var(--m3e-card-outline-thickness, 1px))"),disabled:{textColor:o(`var(--m3e-outlined-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-outlined-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-outlined-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerElevation:o(`var(--m3e-outlined-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-outlined-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-outlined-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-card-disabled-outline-color, var(--m3e-card-disabled-outline-color, ${v.color.outline}))`),outlineOpacity:o("var(--m3e-outlined-card-disabled-outline-opacity, var(--m3e-card-disabled-outline-opacity, 12%))")},hover:{textColor:o(`var(--m3e-outlined-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`),outlineColor:o(`var(--m3e-outlined-card-hover-outline-color, var(--m3e-card-hover-outline-color, ${v.color.outlineVariant}))`)},focus:{textColor:o(`var(--m3e-outlined-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-focus-outline-color, var(--m3e-card-focus-outline-color, ${v.color.onSurface}))`)},pressed:{textColor:o(`var(--m3e-outlined-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-pressed-outline-color, var(--m3e-card-pressed-outline-color, ${v.color.outlineVariant}))`)}}},Wi=i`:host { outline: none; } :host(:not([inline])) { display: block; } :host(:not([inline])) .base { display: flex; } :host([inline]) { display: inline-block; vertical-align: middle; } :host([inline]) .base { display: inline-flex; } .base { width: 100%; height: 100%; position: relative; box-sizing: border-box; border-radius: ${Pi}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host([actionable]) { user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([actionable]:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([actionable][disabled-interactive]) { cursor: not-allowed; } :host(:not([actionable])) .focus-ring, :host(:not([actionable])) .state-layer, :host(:not([actionable])) .ripple { display: none; } :host([variant="outlined"]) .base { border-style: solid; } ::slotted([slot="content"]) { flex: 1 1 auto; } ::slotted(img), ::slotted(video) { inset: 0; object-fit: cover; } ::slotted(img[slot="header"]), ::slotted(video[slot="header"]) { border-radius: ${Pi}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } ::slotted([slot="header"]), ::slotted([slot="actions"]), ::slotted([slot="footer"]) { flex: none; display: flex; align-items: center; } :host([orientation="vertical"]) .base, :host([orientation="horizontal"]) ::slotted([slot="header"]), :host([orientation="horizontal"]) ::slotted([slot="actions"]), :host([orientation="horizontal"]) ::slotted([slot="footer"]) { flex-direction: column; } :host([orientation="horizontal"]) .base, :host([orientation="vertical"]) ::slotted([slot="header"]), :host([orientation="vertical"]) ::slotted([slot="actions"]), :host([orientation="vertical"]) ::slotted([slot="footer"]) { flex-direction: row; } :host([orientation="horizontal"]) ::slotted(img), :host([orientation="horizontal"]) ::slotted(video) { aspect-ratio: 16 / 9; } .has-content:not(.has-default) slot[name="content"], .has-content.has-default slot:not([name]) { display: inherit; flex-direction: inherit; flex: 1 1 auto; } .has-header slot[name="header"], .has-actions slot[name="actions"], .has-footer slot[name="footer"] { display: inherit; flex-direction: inherit; flex: none; } :host([orientation="vertical"]) .has-content:not(.has-default) slot[name="content"] { margin-inline: ${Ti}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-block-start: ${Ti}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-block-end: ${Ti}; } :host([orientation="horizontal"]) .has-content:not(.has-default) slot[name="content"] { margin-block: ${Ti}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-inline-start: ${Ti}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-inline-end: ${Ti}; } :host([orientation="vertical"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline: ${Ti}; margin-block-start: ${Ti}; } :host([orientation="horizontal"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline-start: ${Ti}; margin-block: ${Ti}; } .has-actions slot[name="actions"] { margin-inline: ${Ti}; margin-block: ${Ti}; } :host([orientation="vertical"]) .has-footer slot[name="footer"] { margin-inline: ${Ti}; margin-block-end: ${Ti}; } :host([orientation="horizontal"]) .has-footer slot[name="footer"] { margin-block: ${Ti}; margin-inline-end: ${Ti}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base { transition: none; } :host([variant]) .base { border-style: solid; border-color: CanvasText; border-width: ${Ii.outlined.outlineThickness??o("unset")}; } :host([actionable][variant]:disabled) .base, :host([actionable][variant][disabled-interactive]) .base { color: GrayText; border-color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`;function Di(e){return i`:host([variant="${o(e)}"]) .base { background-color: ${Ii[e].containerColor??o("unset")}; box-shadow: ${Ii[e].containerElevation??o("unset")}; border-width: ${Ii[e].outlineThickness??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Ii[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Ii[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Ii[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Ii[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Ii[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Ii[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Ii[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Ii[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Ii[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Ii[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"]) .base { border-color: ${Ii[e].outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus .base) { border-color: ${Ii[e].focus.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover .base) { border-color: ${Ii[e].hover.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { border-color: ${Ii[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]) .base { color: ${Ii[e].textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus) .base { color: ${Ii[e].focus.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover) .base { color: ${Ii[e].hover.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { color: ${Ii[e].pressed.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) .base, :host([actionable][variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Ii[e].disabled.containerElevation??o("unset")}; --m3e-elevation-color: color-mix( in srgb, ${Ii[e].disabled.containerElevationColor} ${Ii[e].disabled.containerElevationOpacity}, transparent ); color: color-mix( in srgb, ${Ii[e].disabled.textColor} ${Ii[e].disabled.textOpacity}, transparent ); background-color: ${Ii[e].disabled.containerColor&&Ii[e].disabled.containerOpacity?o(`color-mix(\n in srgb,\n ${Ii[e].disabled.containerColor} ${Ii[e].disabled.containerOpacity},\n transparent\n )`):o("unset")}; border-color: ${Ii[e].disabled.outlineColor&&Ii[e].disabled.outlineOpacity?o(`color-mix(\n in srgb,\n ${Ii[e].disabled.outlineColor} ${Ii[e].disabled.outlineOpacity},\n transparent\n )`):o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) ::slotted(img), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(img), :host([actionable][variant="${o(e)}"]:disabled) ::slotted(video), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(video) { opacity: ${Ii[e].disabled.imageOpacity}; }`}const Ai=[Di("filled"),Di("elevated"),Di("outlined")];var Hi,Oi,Bi,Fi,Vi,qi,Ri,Ui;let Ni=class extends(q(R(U(N(j(Y(P(r),!0))))))){constructor(){super(),Hi.add(this),Oi.set(this,t=>e(this,Hi,"m",Ui).call(this,t)),this.inline=!1,this.actionable=!1,this.variant="filled",this.orientation="vertical",new Z(this,{isPressedKey:e=>" "===e,callback:e=>{!this.actionable||this.disabled||this.disabledInteractive||this._base?.classList.toggle("pressed",e)}})}connectedCallback(){this.hasAttribute("actionable")&&(this.role="button"),super.connectedCallback(),this.addEventListener("click",e(this,Oi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this.removeEventListener("click",e(this,Oi,"f"))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${!this.actionable||this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-ripple class="ripple" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-ripple>${this[G]()}<slot name="header" @slotchange="${e(this,Hi,"m",Bi)}"></slot><slot name="content" @slotchange="${e(this,Hi,"m",Fi)}"><slot @slotchange="${e(this,Hi,"m",Vi)}"></slot></slot><slot name="actions" @slotchange="${e(this,Hi,"m",qi)}"></slot><slot name="footer" @slotchange="${e(this,Hi,"m",Ri)}"></slot></div>`}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this)),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}update(e){super.update(e),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}};var ji,Yi,Ki,Zi,Gi,Xi;Oi=new WeakMap,Hi=new WeakSet,Bi=function(e){const t=e.target.assignedNodes({flatten:!0}),a=this.shadowRoot?.querySelector(".base");a?.classList.toggle("has-header",t.length>0),a?.classList.toggle("has-header-media",t.some(e=>e instanceof HTMLElement&&("IMG"===e.tagName||"VIDEO"===e.tagName)))},Fi=function(){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-content",null!==this.querySelector("[slot='content']"))},Vi=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-default",g(e.target)&&null===this.querySelector("[slot='content']"))},qi=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(e.target))},Ri=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-footer",g(e.target))},Ui=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation())},Ni.styles=[Ai,Wi],t([h(".base")],Ni.prototype,"_base",void 0),t([h(".elevation")],Ni.prototype,"_elevation",void 0),t([h(".focus-ring")],Ni.prototype,"_focusRing",void 0),t([h(".state-layer")],Ni.prototype,"_stateLayer",void 0),t([h(".ripple")],Ni.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],Ni.prototype,"inline",void 0),t([m({type:Boolean,reflect:!0})],Ni.prototype,"actionable",void 0),t([m({reflect:!0})],Ni.prototype,"variant",void 0),t([m({reflect:!0})],Ni.prototype,"orientation",void 0),Ni=t([$("m3e-card")],Ni);let Ji=class extends(Q(ee(te(ae(oe(ie(re(se(q(N(Y(P(f(r,"checkbox")))),!1)))))))))){constructor(){super(...arguments),ji.add(this),Yi.set(this,t=>e(this,ji,"m",Xi).call(this,t)),Ki.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),Zi.set(this,new Z(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Yi=new WeakMap,Ki=new WeakMap,Zi=new WeakMap,ji=new WeakSet,le)](){return!this.checked||this.disabled||this.indeterminate?null:this.value}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Yi,"f"));for(const t of this.labels)e(this,Ki,"f").observe(t),e(this,Zi,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Yi,"f"));for(const t of this.labels)e(this,Ki,"f").unobserve(t),e(this,Zi,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,ji,"m",Gi).call(this)}</div></div>`}};var Qi,er,tr,ar,or,ir,rr;Gi=function(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n},Xi=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.indeterminate=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},Ji.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); } :host(:not([checked]):not([indeterminate])) .wrapper { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-checkbox-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-checkbox-selected-ripple-color, ${v.color.primary}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: var(--m3e-checkbox-selected-container-color, ${v.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${v.color.onPrimary}); } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper { border-color: var(--m3e-checkbox-unselected-outline-color, ${v.color.onSurfaceVariant}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover) .wrapper { border-color: var(--m3e-checkbox-unselected-hover-outline-color, ${v.color.onSurface}); } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${v.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${v.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-checkbox-unselected-error-ripple-color, ${v.color.error}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-error-hover-color, ${v.color.onError}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-error-focus-color, ${v.color.onError}); --m3e-ripple-color: var(--m3e-checkbox-selected-error-ripple-color, ${v.color.onError}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: var(--m3e-checkbox-unselected-error-outline-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base, :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: CanvasText; --m3e-state-layer-focus-color: CanvasText; --m3e-ripple-color: CanvasText; } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper, :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover ) .wrapper { border-color: CanvasText; } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: CanvasText; color: Canvas; } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: GrayText; } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: GrayText; color: Canvas; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: Highlight; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: Highlight; --m3e-state-layer-focus-color: Highlight; --m3e-ripple-color: Highlight; } }`,t([h(".focus-ring")],Ji.prototype,"_focusRing",void 0),t([h(".state-layer")],Ji.prototype,"_stateLayer",void 0),t([h(".ripple")],Ji.prototype,"_ripple",void 0),t([m()],Ji.prototype,"value",void 0),Ji=t([$("m3e-checkbox")],Ji);let sr=class extends(P(r)){constructor(){super(...arguments),Qi.add(this),er.set(this,void 0),tr.set(this,""),this.variant="outlined"}get value(){return e(this,er,"f")??e(this,tr,"f")}set value(e){a(this,er,e,"f")}get label(){return e(this,tr,"f")}firstUpdated(e){super.firstUpdated(e),"listitem"===this.role&&this.removeAttribute("tabindex"),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>{e?.htmlFor||e?.attach(this)})}render(){const t=!ce(this)||this.disabled,a=de(this)&&this.disabledInteractive;return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${t||a}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${t||a}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${t}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${t||a}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${he(this)?this[G]():n}<div class="wrapper">${e(this,Qi,"m",ar).call(this)}</div></div>`}_renderIcon(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,Qi,"m",or)}"></slot>`}_renderTrailingIcon(){return s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,Qi,"m",ir)}"></slot>`}_renderSlot(){return s`<slot @slotchange="${e(this,Qi,"m",rr)}"></slot>`}};er=new WeakMap,tr=new WeakMap,Qi=new WeakSet,ar=function(){return s`${this._renderIcon()}<div class="label">${this._renderSlot()}</div>${this._renderTrailingIcon()}`},or=function(e){k(this,"-with-icon",g(e.target))},ir=function(e){k(this,"-with-trailing-icon",g(e.target))},rr=function(e){a(this,tr,me(e.target),"f")},sr.styles=i`:host { display: inline-block; vertical-align: middle; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; border-radius: var(--m3e-chip-container-shape, ${v.shape.corner.small}); height: calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)}); font-size: var(--m3e-chip-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-chip-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-chip-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-chip-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host(:not(m3e-chip):not(:disabled)[disabled-interactive]) { cursor: not-allowed; } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) .base { user-select: none; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; column-gap: var(--m3e-chip-spacing, 0.5rem); } .label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host([variant="elevated"]) .base { background-color: var(--m3e-elevated-chip-container-color, ${v.color.surfaceContainerLow}); --m3e-elevation-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-hover-level: var(--m3e-elevated-chip-hover-elevation, ${v.elevation.level2}); --m3e-elevation-focus-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-pressed-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); } :host([variant="outlined"]) .base { outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-style: solid; outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: var(--m3e-outlined-chip-outline-color, ${v.color.outlineVariant}); } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: color-mix( in srgb, var(--m3e-outlined-chip-disabled-outline-color, ${v.color.onSurface}) var(--m3e-outlined-chip-disabled-outline-opacity, 12%), transparent ); } :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } :host(:not(:state(-with-icon))) .wrapper { padding-inline-start: var(--m3e-chip-padding-start, 1rem); } :host(:state(-with-trailing-icon)) .wrapper { padding-inline-end: var(--m3e-chip-with-icon-padding-end, 0.5rem); } :host(:not(:state(-with-trailing-icon))) .wrapper { padding-inline-end: var(--m3e-chip-padding-end, 1rem); } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]) { flex: none; width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem) !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-icon-color, ${v.color.primary}); } :host(:disabled) .base, :host([disabled-interactive]) .base { color: color-mix( in srgb, var(--m3e-chip-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-chip-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}) var(--m3e-chip-disabled-icon-opacity, 38%), transparent ); } :host([variant="elevated"]:disabled) .base, :host([variant="elevated"][disabled-interactive]) .base { background-color: color-mix( in srgb, var(--m3e-elevated-chip-disabled-container-color, ${v.color.onSurface}) var(--m3e-elevated-chip-disabled-container-opacity, 12%), transparent ); --m3e-elevation-level: var(--m3e-elevated-chip-disabled-elevation, ${v.elevation.level0}); } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: CanvasText; } :host(:disabled) .base, :host([disabled-interactive]) .base, :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: GrayText; } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: GrayText; } }`,t([h(".elevation")],sr.prototype,"_elevation",void 0),t([h(".focus-ring")],sr.prototype,"_focusRing",void 0),t([h(".state-layer")],sr.prototype,"_stateLayer",void 0),t([h(".ripple")],sr.prototype,"_ripple",void 0),t([m({reflect:!0})],sr.prototype,"variant",void 0),t([m()],sr.prototype,"value",null),sr=t([$("m3e-chip")],sr);let nr=class extends(U(R(q(N(j(Y(f(sr,"button")))))))){_renderTrailingIcon(){return n}};nr.formAssociated=!0,nr=t([$("m3e-assist-chip")],nr);let lr=class extends(pe(r)){render(){return s`<slot></slot>`}};var cr,dr,hr;lr.styles=i`:host { display: inline-flex; flex-wrap: wrap; vertical-align: middle; gap: var(--m3e-chip-set-spacing, 0.5rem); outline: none; } :host([vertical]) { flex-direction: column; }`,lr=t([$("m3e-chip-set")],lr);let mr=class extends(ue(q(N(j(Y(f(sr,"radio"))))))){constructor(){super(...arguments),cr.add(this),dr.set(this,t=>e(this,cr,"m",hr).call(this,t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,dr,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,dr,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-filter-chip-set")?.[De].notifySelectionChange(this)}_renderIcon(){return s`<div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg> ${super._renderIcon()}</div>`}};var pr,ur,vr,br,fr,gr,yr;dr=new WeakMap,cr=new WeakSet,hr=function(e){if(e.defaultPrevented)return;const t=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-filter-chip-set")?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=t},mr.formAssociated=!0,mr.styles=[sr.styles,i`:host([selected]:not(:state(-hide-selection))) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } .icon { display: flex; align-items: center; justify-content: center; } .check { width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem); } :host(:not(:disabled):not([disabled-interactive])) .check { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not([selected])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-chip-with-icon-padding-start, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host([selected]) .icon { margin-inline-start: 0; } :host([selected]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-unselected-label-text-color, ${v.color.onSurfaceVariant}); --m3e-ripple-color: var(--m3e-chip-unselected-ripple-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-focus-color: var( --m3e-chip-unselected-state-layer-focus-color, ${v.color.onSurfaceVariant} ); --m3e-state-layer-hover-color: var( --m3e-chip-unselected-state-layer-hover-color, ${v.color.onSurfaceVariant} ); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]) { color: var(--m3e-chip-unselected-leading-icon-color, ${v.color.primary}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-unselected-trailing-icon-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: unset; outline-width: var(--m3e-chip-selected-outline-thickness, 0); color: var(--m3e-chip-selected-label-text-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-chip-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-chip-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-chip-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-elevation-hover-level: var(--m3e-chip-selected-hover-elevation, ${v.elevation.level1}); --m3e-ripple-color: var(--m3e-chip-selected-ripple-color, ${v.color.onSecondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-chip-selected-state-layer-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-chip-selected-state-layer-hover-color, ${v.color.onSecondaryContainer} ); } :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]) { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-selected-trailing-icon-color, ${v.color.onSecondaryContainer}); } @media (prefers-reduced-motion) { .base, :host(:not(:state(-with-icon))) .icon { transition: none; } } @media (forced-colors: active) { :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base, :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="trailing-icon"]), :host(:not(:disabled):not([disabled-interactive])) .check { color: ButtonText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-color: ButtonText; } }`],mr=t([$("m3e-filter-chip")],mr);let $r=class extends(Q(te(ae(se(Y(P(f(lr,"radiogroup")))))))){constructor(){super(...arguments),pr.add(this),ur.set(this,void 0),this[yr]=(new Ae).onActiveItemChange(()=>this[De].activeItem?.focus()).withWrap().withDirectionality(qe.current),this.multi=!1,this.hideSelectionIndicator=!1}get chips(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(ur=new WeakMap,pr=new WeakSet,yr=De,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),a(this,ur,qe.observe(()=>this[De].directionality=qe.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,ur,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(this[De].vertical=this.vertical),t.has("disabled")&&(void 0!==t.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled),t.has("multi")&&(this.role=this.multi?"group":"radiogroup",e(this,pr,"m",gr).call(this),this[De].multi=this.multi,this[De].disableRovingTabIndex(this.multi)),(t.has("multi")||t.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),t.has("hideSelectionIndicator")&&this.chips.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,pr,"m",vr)}" @keydown="${e(this,pr,"m",br)}" @change="${e(this,pr,"m",fr)}"></slot>`}};var xr,wr,kr,Cr;vr=function(){const{added:t}=this[De].setItems([...this.querySelectorAll("m3e-filter-chip")]);t.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),e(this,pr,"m",gr).call(this)},br=function(e){this.multi||this[De].onKeyDown(e)},fr=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},gr=function(){this.chips.forEach(e=>e.role=this.multi?"button":"radio")},t([m({type:Boolean})],$r.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],$r.prototype,"hideSelectionIndicator",void 0),$r=t([$("m3e-filter-chip-set")],$r);let Sr=class extends(x(j(Y(f(sr,"row"))),"remove")){constructor(){super(...arguments),xr.add(this),this.removable=!1,this.removeLabel="Remove"}connectedCallback(){super.connectedCallback(),this.removeAttribute("tabindex")}update(e){super.update(e),this.removeAttribute("tabindex"),e.has("removable")&&k(this,"-with-trailing-icon",this.removable)}render(){return s`<div class="base"><m3e-elevation class="elevation" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" for="cell" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="wrapper"><div id="cell" class="cell" role="gridcell" tabindex="${je(this.disabled?void 0:"-1")}" @keydown="${e(this,xr,"m",Cr)}"><slot name="avatar" @slotchange="${e(this,xr,"m",wr)}"></slot>${this._renderIcon()}<div class="label">${this._renderSlot()}</div><div class="touch" aria-hidden="true"></div></div>${this._renderTrailingIcon()}</div></div>`}_renderTrailingIcon(){return this.removable?s`<span role="gridcell" class="remove"><m3e-icon-button class="remove-button" aria-label="${this.removeLabel}" size="extra-small" tabindex="-1" ?disabled="${this.disabled}" ?disabled-interactive="${this.disabledInteractive}" @click="${e(this,xr,"m",kr)}"><slot name="remove-icon"><svg class="remove-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button></span>`:n}};var _r,Lr,Er,zr,Mr,Tr,Pr,Ir,Wr,Dr,Ar,Hr,Or,Br,Fr,Vr,qr,Rr,Ur,Nr,jr,Yr,Kr,Zr;xr=new WeakSet,wr=function(e){k(this,"-with-avatar",g(e.target))},kr=function(e){e.stopPropagation(),this.dispatchEvent(new Event("remove"))},Cr=function(e){if(this.removable)switch(e.key){case"Backspace":case"Delete":this.dispatchEvent(new Event("remove"))}},Sr.formAssociated=!0,Sr.styles=[sr.styles,i`.cell { display: inline-flex; align-items: center; outline: none; column-gap: var(--m3e-chip-spacing, 0.5rem); min-width: 0; } .remove-button { --m3e-icon-button-extra-small-container-height: 1.5rem; --m3e-icon-button-extra-small-icon-size: var(--m3e-chip-icon-size, 1.125rem); width: 1.5rem; } .remove-icon { flex: none; width: var(--m3e-chip-icon-size, 1.125rem); height: var(--m3e-chip-icon-size, 1.125rem); } .touch { top: calc( 0px - calc(calc(3rem - calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)})) / 2) ); } .wrapper { height: 100%; overflow: visible; min-width: 0; } ::slotted([slot="avatar"]) { flex: none; font-size: var(--m3e-chip-avatar-size, 1.5rem); } ::slotted(m3e-avatar[slot="avatar"]) { --m3e-icon-size: var(--m3e-chip-avatar-icon-size, 1.125rem); --m3e-avatar-size: var(--m3e-chip-avatar-size, 1.5rem); --m3e-avatar-font-size: var( --m3e-chip-avatar-font-size, ${v.typescale.standard.title.small.fontSize} ); --m3e-avatar-font-weight: var( --m3e-chip-avatar-font-height, ${v.typescale.standard.title.small.fontWeight} ); --m3e-avatar-line-height: var( --m3e-chip-avatar-line-height, ${v.typescale.standard.title.small.lineHeight} ); --m3e-avatar-tracking: var(--m3e-chip-avatar-tracking, ${v.typescale.standard.title.small.tracking}); } :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { opacity: var(--m3e-chip-disabled-avatar-opacity, 38%); color: var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}); } :host(:state(-with-avatar)) ::slotted([slot="icon"]) { display: none; } :host(:state(-with-avatar)) .wrapper { padding-inline-start: var(--m3e-chip-with-avatar-padding-start, 0.25rem); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { color: CanvasText; } }`],t([h(".cell")],Sr.prototype,"cell",void 0),t([h(".remove-button")],Sr.prototype,"removeButton",void 0),t([m({type:Boolean})],Sr.prototype,"removable",void 0),t([m({attribute:"remove-label"})],Sr.prototype,"removeLabel",void 0),Sr=t([$("m3e-input-chip")],Sr);let Gr=class extends(ee(oe(ie(te(ae(se(Y(P(f(lr,"grid")))))))))){constructor(){super(...arguments),_r.add(this),Lr.set(this,void 0),Er.set(this,()=>e(this,_r,"m",Kr).call(this)),zr.set(this,t=>e(this,_r,"m",Zr).call(this,t)),Mr.set(this,()=>e(this,_r,"m",Rr).call(this)),Tr.set(this,()=>e(this,_r,"m",Ur).call(this)),Pr.set(this,()=>e(this,_r,"m",Nr).call(this)),Ir.set(this,t=>e(this,_r,"m",jr).call(this,t)),Wr.set(this,t=>e(this,_r,"m",Yr).call(this,t)),Dr.set(this,new He),Ar.set(this,(new ze).onActiveItemChange(()=>e(this,Ar,"f").activeItem?.focus()).withHomeAndEnd().withSkipPredicate(e=>!e.hasAttribute("tabindex")).withDirectionality(qe.current)),Hr.set(this,!1),Or.set(this,null),Br.set(this,0)}get chips(){return[...this.querySelectorAll("m3e-input-chip")]}get value(){const e=this.chips.filter(e=>!e.disabled).map(e=>e.value);return 0==e.length?null:e}get[(Lr=new WeakMap,Er=new WeakMap,zr=new WeakMap,Mr=new WeakMap,Tr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,Wr=new WeakMap,Dr=new WeakMap,Ar=new WeakMap,Hr=new WeakMap,Or=new WeakMap,Br=new WeakMap,_r=new WeakSet,le)](){const e=this.value;if(!e)return null;const t=new FormData;for(const a of e)t.append(this.name,a);return t}get shouldLabelFloat(){return this.chips.length>0}onContainerClick(){e(this,Or,"f")?.focus()}connectedCallback(){super.connectedCallback(),customElements.get("m3e-form-field")?this.closest("m3e-form-field")?.notifyControlStateChange():customElements.whenDefined("m3e-form-field").then(()=>{this.closest("m3e-form-field")?.notifyControlStateChange()}),a(this,Br,Number.parseInt(this.getAttribute("tabindex")??"0"),"f"),this.addEventListener("focus",e(this,Mr,"f")),this.addEventListener("focusin",e(this,Tr,"f")),this.addEventListener("focusout",e(this,Pr,"f")),a(this,Lr,qe.observe(()=>e(this,Ar,"f").directionality=qe.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",e(this,Mr,"f")),this.removeEventListener("focusin",e(this,Tr,"f")),this.removeEventListener("focusout",e(this,Pr,"f")),e(this,Lr,"f")?.call(this)}firstUpdated(t){super.firstUpdated(t),this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${e(this,Br,"f")}`)}update(t){super.update(t),t.has("vertical")&&(this.ariaOrientation=null),t.has("disabled")&&(e(this,Dr,"f").items.forEach(e=>e.disabled=this.disabled),e(this,Or,"f")&&(e(this,Or,"f").disabled=this.disabled))}render(){return s`<slot @keydown="${e(this,_r,"m",Fr)}" @slotchange="${e(this,_r,"m",Vr)}"></slot><span role="row"><span role="gridcell"><slot name="input" @slotchange="${e(this,_r,"m",qr)}"></slot></span></span>`}};Fr=function(t){e(this,Ar,"f").onKeyDown(t)},Vr=async function(){const{added:t,removed:a}=e(this,Dr,"f").setItems([...this.querySelectorAll("m3e-input-chip")]);for(const a of t)a.isUpdatePending&&await a.updateComplete,this.disabled&&(a.disabled=!0),a.addEventListener("remove",e(this,Ir,"f")),a.cell.addEventListener("click",e(this,Wr,"f"));a.forEach(t=>{t.removeEventListener("remove",e(this,Ir,"f")),t.cell.removeEventListener("click",e(this,Wr,"f"))}),e(this,Ar,"f").setItems(e(this,Dr,"f").items.flatMap(e=>e.removeButton?[e.cell,e.removeButton]:[e.cell])),e(this,Ar,"f").activeItem||e(this,Ar,"f").updateActiveItem(e(this,Ar,"f").items.find(e=>e.hasAttribute("tabindex")))},qr=function(){const t=this.querySelector("input");if(e(this,Or,"f")&&(e(this,Or,"f").removeEventListener("change",e(this,Er,"f")),e(this,Or,"f").removeEventListener("keydown",e(this,zr,"f"))),a(this,Or,t,"f"),e(this,Or,"f")){e(this,Or,"f").disabled=this.disabled,e(this,Or,"f").addEventListener("change",e(this,Er,"f")),e(this,Or,"f").addEventListener("keydown",e(this,zr,"f"));const a=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(t,"value",{get:()=>a.get?.call(t),set:o=>{a.set?.call(t,o),e(this,Or,"f")!==t||e(this,Hr,"f")||e(this,_r,"m",Kr).call(this)}})}},Rr=function(){setTimeout(()=>(e(this,Ar,"f").activeItem??e(this,Or,"f"))?.focus())},Ur=function(){this.setAttribute("tabindex","-1")},Nr=function(){this.setAttribute("tabindex",`${e(this,Br,"f")}`)},jr=function(t){const a=t.target,o=e(this,Dr,"f").items.indexOf(a),i=e(this,Dr,"f").items.find((e,t)=>t>o&&!e.disabled&&e.removable);a.remove(),e(this,Ar,"f").setActiveItem(e(this,Ar,"f").items.find(e=>e===i?.removeButton)),e(this,Ar,"f").activeItem||e(this,Or,"f")?.focus(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"remove",value:a.value,chip:a}}))},Yr=function(t){e(this,Ar,"f").updateActiveItem(t.composedPath().find(e=>e instanceof Sr)?.cell)},Kr=async function(){const t=e(this,Or,"f")?.value;if(!t)return;const o=document.createElement("m3e-input-chip");if(o.removable=!0,o.appendChild(document.createTextNode(t)),this.appendChild(o),o.isUpdatePending&&await o.updateComplete,e(this,Or,"f"))try{a(this,Hr,!0,"f"),e(this,Or,"f").value=""}finally{a(this,Hr,!1,"f")}this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"add",value:t,chip:o}}))},Zr=function(t){if("Backspace"===t.key&&!e(this,Or,"f")?.value){const t=[...e(this,Dr,"f").items].reverse().find(e=>!e.disabled&&!e.disabledInteractive&&e.removable);t&&t.dispatchEvent(new Event("remove"))}},F(i`m3e-input-chip-set [slot="input"]::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-input-chip-set:not(:focus-within) [slot="input"]::placeholder { opacity: 0; transition: 0s; } m3e-input-chip-set:hover [slot="input"]::placeholder { transition: 0s; } @media (prefers-reduced-motion) { m3e-input-chip-set [slot="input"]::placeholder { transition: none !important; } }`),Gr.styles=[lr.styles,i`::slotted([slot="input"]) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: initial; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(m3e-input-chip) { min-width: 0; } span[role="row"], span[role="gridcell"] { display: contents; }`],Gr=t([$("m3e-input-chip-set")],Gr);let Xr=class extends(U(R(q(N(j(Y(f(sr,"button")))))))){_renderTrailingIcon(){return n}};var Jr,Qr,es,ts,as,os,is,rs,ss,ns,ls,cs,ds,hs,ms,ps,us,vs,bs,fs,gs,ys,$s,xs,ws,ks,Cs,Ss,_s,Ls,Es,zs,Ms,Ts,Ps,Is,Ws,Ds,As,Hs,Os,Bs,Fs,Vs,qs,Rs,Us,Ns,js,Ys,Ks,Zs,Gs,Xs,Js,Qs,en,tn,an,on,rn,sn,nn,ln,cn,dn,hn,mn,pn,un,vn,bn,fn,gn,yn,$n,xn;Xr.formAssociated=!0,Xr=t([$("m3e-suggestion-chip")],Xr);class wn{constructor(t,o){Jr.set(this,null),Qr.set(this,0),es.set(this,!1),ts.set(this,void 0),as.set(this,()=>{if(!e(this,es,"f"))return;const t=performance.now();e(this,ts,"f").call(this,(t-e(this,Qr,"f"))/1e3,t/1e3),a(this,Qr,t,"f"),a(this,Jr,requestAnimationFrame(e(this,as,"f")),"f")}),a(this,ts,o,"f"),t.addController(this)}hostDisconnected(){this.stop()}start(){e(this,es,"f")||(a(this,es,!0,"f"),a(this,Qr,performance.now(),"f"),e(this,as,"f").call(this))}stop(){e(this,es,"f")&&(a(this,es,!1,"f"),null!==e(this,Jr,"f")&&(cancelAnimationFrame(e(this,Jr,"f")),a(this,Jr,null,"f")))}}Jr=new WeakMap,Qr=new WeakMap,es=new WeakMap,ts=new WeakMap,as=new WeakMap;class kn{constructor(t,o){os.set(this,void 0),is.set(this,void 0),rs.set(this,new Set),a(this,os,t,"f"),a(this,is,o.target,"f"),e(this,os,"f").addController(this)}get targets(){return e(this,rs,"f").values()}hostConnected(){null!==e(this,is,"f")&&this.observe(e(this,is,"f")??e(this,os,"f"))}hostDisconnected(){e(this,rs,"f").forEach(e=>this.unobserve(e)),e(this,rs,"f").clear()}observe(t){e(this,rs,"f").has(t)||(e(this,rs,"f").add(t),this._observe(t))}isObserving(t){return e(this,rs,"f").has(t)}unobserve(t){e(this,rs,"f").delete(t)&&this._unobserve(t)}}function Cn(e,t){if(!t)return 0;const a=document.createElement("div");a.style.all="inherit",a.style.width=t,a.style.position="absolute",a.style.visibility="hidden",a.style.pointerEvents="none",e.appendChild(a);try{return parseFloat(getComputedStyle(a).width)}finally{a.remove()}}function Sn(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function _n(e,t=200){function a(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const o=performance.now();for(;!a(e);){if(!e.isConnected||performance.now()-o>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Ln(){return!l&&matchMedia("(forced-colors: active)").matches}function En(e,t,a){return e+(t-e)*a}function zn(e,t,a,o){return{x:Math.pow(1-o,2)*e.x+2*(1-o)*o*t.x+Math.pow(o,2)*a.x,y:Math.pow(1-o,2)*e.y+2*(1-o)*o*t.y+Math.pow(o,2)*a.y}}function Mn(e,t,a,o,i){return{x:Math.pow(1-i,3)*e.x+3*Math.pow(1-i,2)*i*t.x+3*(1-i)*Math.pow(i,2)*a.x+Math.pow(i,3)*o.x,y:Math.pow(1-i,3)*e.y+3*Math.pow(1-i,2)*i*t.y+3*(1-i)*Math.pow(i,2)*a.y+Math.pow(i,3)*o.y}}function Tn(e,t){const a=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let o={x:0,y:0},i={x:0,y:0};const r=[];for(const e of a)if("M"===e.type)o={x:e.nums[0],y:e.nums[1]},i=o;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},a=t.x-o.x,i=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.hypot(a,i)}),o=t}else if("H"===e.type){const t={x:e.nums[0],y:o.y},a=t.x-o.x;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("V"===e.type){const t={x:o.x,y:e.nums[0]},a=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]};let i=0,s=o;const n=20;for(let e=1;e<=n;e++){const r=zn(o,t,a,e/n);i+=Math.hypot(r.x-s.x,r.y-s.y),s=r}r.push({type:"Q",pts:[o,t,a],length:i}),o=a}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]},i={x:e.nums[4],y:e.nums[5]};let s=0,n=o;const l=20;for(let e=1;e<=l;e++){const r=Mn(o,t,a,i,e/l);s+=Math.hypot(r.x-n.x,r.y-n.y),n=r}r.push({type:"C",pts:[o,t,a,i],length:s}),o=i}else if("Z"===e.type){const e=i.x-o.x,t=i.y-o.y;r.push({type:"L",pts:[o,i],length:Math.hypot(e,t)}),o=i}const s=r.reduce((e,t)=>e+t.length,0)/(t-1),n=[];let l=0,c=0;for(let e=0;e<t;e++){const t=e*s;for(;c<r.length&&l+r[c].length<t;)l+=r[c].length,c++;const a=r[c];if(!a)break;const o=(t-l)/a.length;if("L"===a.type){const[e,t]=a.pts;n.push({x:En(e.x,t.x,o),y:En(e.y,t.y,o)})}else if("Q"===a.type){const[e,t,i]=a.pts;n.push(zn(e,t,i,o))}else if("C"===a.type){const[e,t,i,r]=a.pts;n.push(Mn(e,t,i,r,o))}}return n}function Pn(e,t,a){return Math.max(t,Math.min(a,e))}function In(e,t){const a=e.length,o=new Array(a);for(let i=0;i<a;i++)o[i]=e[(i+t)%a];return o}function Wn(e,t){const a=Math.min(t.length,e.length);let o=0,i=1/0;for(let r=0;r<a;r++){let s=0;for(let o=0;o<a;o++){const n=t[(o+r)%a],l=e[o],c=n.x-l.x,d=n.y-l.y;if(s+=c*c+d*d,s>=i)break}s<i&&(i=s,o=r)}return o}function Dn(e){let t=0;const a=e.length;for(let o=0;o<a;o++){const i=e[o],r=e[(o+1)%a];t+=i.x*r.y-r.x*i.y}return t/2}function An(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,a=1/0,o=-1/0,i=-1/0;for(const r of e)r.x<t&&(t=r.x),r.x>o&&(o=r.x),r.y<a&&(a=r.y),r.y>i&&(i=r.y);return{minX:t,minY:a,maxX:o,maxY:i,width:o-t,height:i-a}}(e),a=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),o=Math.max(t.width,t.height)||1,i=a.map(e=>({x:e.x/o,y:e.y/o})),r=t.width/o,s=t.height/o,n=(1-r)/2,l=(1-s)/2;return i.map(e=>({x:e.x+n,y:e.y+l}))}),a=t[0],o=Math.sign(Dn(a));for(let e=1;e<t.length;e++){let i=t[e];const r=Math.sign(Dn(i));0!==r&&r!==o&&(i=i.slice().reverse());const s=Wn(a,i);t[e]=In(i,s)}return t}(e.map(e=>Tn(e,t))).map(e=>`${e.map(e=>{const t=Pn(100*e.x,0,100),a=Pn(100*e.y,0,100);return`${t.toFixed(2)}% ${a.toFixed(2)}%`}).join(", ")}`)}function Hn(e,t=!1){let a="";switch(e.nodeType){case Node.TEXT_NODE:a=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const o of e.assignedNodes({flatten:!0}))a+=Hn(o,t);else for(const o of e.childNodes)a+=Hn(o,t)}return t&&(a=a.trim()),a}function On(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Bn(e){return e.assignedNodes({flatten:!0}).length>0}function Fn(e,t,a){const o=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!o)throw new Error(`Property ${String(t)} not found on target.`);const i=o.get?.bind(e),r=o.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:o.enumerable,get:()=>a.get?a.get(()=>i?.()):i?.(),set(e){a.set?a.set(e,e=>r?.(e)):r?.(e)}}),()=>Object.defineProperty(e,t,o)}function Vn(){return l||matchMedia("(prefers-reduced-motion)").matches}function qn(e){if("undefined"==typeof window)return;const t=new CSSStyleSheet;t.replaceSync(e.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}function Rn(e,t=document){return new Promise(a=>{const o=t.querySelector(`#${e}`);o?a(o):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>a(t.querySelector(`#${e}`)),{once:!0}):a(t.querySelector(`#${e}`))})}function Un(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function Nn(e,t,a){const o=t.getBoundingClientRect(),i=e.getBoundingClientRect();(i.top<o.top||i.bottom>o.bottom)&&e.scrollIntoView(a)}os=new WeakMap,is=new WeakMap,rs=new WeakMap;class jn{constructor(e=100){ss.set(this,[]),ns.set(this,void 0),a(this,ns,e,"f")}add(t,a=performance.now()){e(this,ss,"f").push({y:t,t:a});const o=a-e(this,ns,"f");for(;e(this,ss,"f").length>1&&e(this,ss,"f")[0].t<o;)e(this,ss,"f").shift()}getVelocity(){if(e(this,ss,"f").length<2)return 0;const t=e(this,ss,"f")[0],a=e(this,ss,"f")[e(this,ss,"f").length-1],o=a.y-t.y,i=(a.t-t.t)/1e3;return i>0?o/i:0}reset(){e(this,ss,"f").length=0}}async function Yn(e){const t=e.tagName.toLowerCase();if(!t.includes("-"))return;customElements.get(t)||await customElements.whenDefined(t);const a=customElements.get(t);!a||e instanceof a||(await Promise.resolve(),e instanceof a||await Promise.resolve())}ss=new WeakMap,ns=new WeakMap;class Kn extends kn{constructor(t,o){super(t,o),ls.add(this),cs.set(this,!1),ds.set(this,void 0),hs.set(this,t=>e(this,ls,"m",ys).call(this,t)),ms.set(this,t=>e(this,ls,"m",$s).call(this,t)),ps.set(this,t=>e(this,ls,"m",xs).call(this,t)),us.set(this,()=>a(this,cs,!0,"f")),vs.set(this,()=>a(this,cs,!1,"f")),bs.set(this,!1),fs.set(this,()=>a(this,bs,!0,"f")),gs.set(this,()=>a(this,bs,!1,"f")),a(this,ds,o.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",e(this,fs,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",e(this,gs,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",e(this,fs,"f"),{capture:!0}),window?.removeEventListener("pointerdown",e(this,gs,"f"),{capture:!0})}_observe(t){t.addEventListener("keydown",e(this,hs,"f")),t.addEventListener("focusin",e(this,ms,"f")),t.addEventListener("focusout",e(this,ps,"f")),t.addEventListener("touchstart",e(this,us,"f")),t.addEventListener("touchend",e(this,vs,"f")),t.addEventListener("touchcancel",e(this,vs,"f"))}_unobserve(t){t.removeEventListener("keydown",e(this,hs,"f")),t.removeEventListener("focusin",e(this,ms,"f")),t.removeEventListener("focusout",e(this,ps,"f")),t.removeEventListener("touchstart",e(this,us,"f")),t.removeEventListener("touchend",e(this,vs,"f")),t.removeEventListener("touchcancel",e(this,vs,"f"))}}cs=new WeakMap,ds=new WeakMap,hs=new WeakMap,ms=new WeakMap,ps=new WeakMap,us=new WeakMap,vs=new WeakMap,bs=new WeakMap,fs=new WeakMap,gs=new WeakMap,ls=new WeakSet,ys=function(t){t.currentTarget.matches(":focus-within")&&e(this,ls,"m",$s).call(this,t)},$s=function(t){if(e(this,cs,"f"))return;const a=t.currentTarget;e(this,ds,"f").call(this,!0,a.matches(":focus-visible")||e(this,bs,"f")||Ln(),a)},xs=function(t){e(this,cs,"f")||e(this,ds,"f").call(this,!1,!1,t.currentTarget)};class Zn extends kn{constructor(t,o){super(t,o),ws.add(this),ks.set(this,void 0),Cs.set(this,new Map),Ss.set(this,new Map),_s.set(this,t=>e(this,ws,"m",Ts).call(this,t)),Ls.set(this,t=>e(this,ws,"m",Ps).call(this,t)),a(this,ks,o.callback,"f"),this.startDelay=o.startDelay??0,this.endDelay=o.endDelay??0}clearDelays(){for(const t of this.targets)e(this,ws,"m",Es).call(this,t)}_observe(t){t.addEventListener("pointerenter",e(this,_s,"f")),t.addEventListener("pointerleave",e(this,Ls,"f")),t.addEventListener("touchend",e(this,Ls,"f"))}_unobserve(t){t.removeEventListener("pointerenter",e(this,_s,"f")),t.removeEventListener("pointerleave",e(this,Ls,"f")),t.removeEventListener("touchend",e(this,Ls,"f"))}}ks=new WeakMap,Cs=new WeakMap,Ss=new WeakMap,_s=new WeakMap,Ls=new WeakMap,ws=new WeakSet,Es=function(t){e(this,ws,"m",zs).call(this,t),e(this,ws,"m",Ms).call(this,t)},zs=function(t){return!!e(this,Cs,"f").has(t)&&(clearTimeout(e(this,Cs,"f").get(t)),e(this,Cs,"f").delete(t))},Ms=function(t){return!!e(this,Ss,"f").has(t)&&(clearTimeout(e(this,Ss,"f").get(t)),e(this,Ss,"f").delete(t))},Ts=function(t){const a=t.target;e(this,ws,"m",Ms).call(this,a),this.startDelay>0?(e(this,ws,"m",zs).call(this,a),e(this,Cs,"f").set(a,setTimeout(()=>{e(this,Cs,"f").delete(a),e(this,ks,"f").call(this,!0,a)},this.startDelay))):e(this,ks,"f").call(this,!0,a)},Ps=function(t){const a=t.target;e(this,ws,"m",zs).call(this,a)||(this.endDelay>0?(e(this,ws,"m",Ms).call(this,a),e(this,Ss,"f").set(a,setTimeout(()=>{e(this,Ss,"f").delete(a),e(this,ks,"f").call(this,!1,a)},this.endDelay))):e(this,ks,"f").call(this,!1,a))};class Gn{constructor(e){Is.set(this,void 0),Ws.set(this,new Array),a(this,Is,e,"f"),e.addController(this)}lock(){this.unlock();for(let t=e(this,Is,"f");t.parentNode&&t.parentNode!==document.documentElement;t=t.parentNode)for(const a of t.parentNode.children)a instanceof HTMLElement&&a!==t&&!a.inert&&(a.inert=!0,e(this,Ws,"f").push(a))}unlock(){e(this,Ws,"f").forEach(e=>e.inert=!1),e(this,Ws,"f").length=0}hostDisconnected(){this.unlock()}}Is=new WeakMap,Ws=new WeakMap;class Xn extends kn{constructor(t,o){super(t,o),Ds.set(this,void 0),As.set(this,!1),Hs.set(this,void 0),Os.set(this,!0),a(this,Ds,o.callback,"f"),a(this,As,o.skipInitial??!1,"f"),l||(window.IntersectionObserver?a(this,Hs,new IntersectionObserver((t,a)=>{e(this,Ds,"f").call(this,t,a)},o.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){e(this,Hs,"f")&&!e(this,As,"f")&&e(this,Os,"f")&&e(this,Ds,"f").call(this,[],e(this,Hs,"f")),a(this,Os,!1,"f")}_observe(t){e(this,Hs,"f")?.observe(t),a(this,Os,!0,"f")}_unobserve(t){e(this,Hs,"f")?.unobserve(t)}}Ds=new WeakMap,As=new WeakMap,Hs=new WeakMap,Os=new WeakMap;class Jn extends kn{constructor(t,o){super(t,o),Bs.add(this),Fs.set(this,void 0),Vs.set(this,void 0),qs.set(this,new Set),Rs.set(this,new Map),Us.set(this,t=>e(this,Bs,"m",js).call(this,t)),Ns.set(this,t=>e(this,Bs,"m",Ys).call(this,t)),a(this,Fs,o.callback,"f"),a(this,Vs,o.threshold??500,"f")}_observe(t){t.addEventListener("touchstart",e(this,Us,"f"),{passive:!0}),t.addEventListener("touchend",e(this,Ns,"f")),t.addEventListener("touchcancel",e(this,Ns,"f"))}_unobserve(t){t.removeEventListener("touchstart",e(this,Us,"f")),t.removeEventListener("touchend",e(this,Ns,"f")),t.removeEventListener("touchcancel",e(this,Ns,"f"))}}Fs=new WeakMap,Vs=new WeakMap,qs=new WeakMap,Rs=new WeakMap,Us=new WeakMap,Ns=new WeakMap,Bs=new WeakSet,js=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,Rs,"f").set(a,setTimeout(()=>{e(this,qs,"f").add(a),e(this,Rs,"f").delete(a),e(this,Fs,"f").call(this,!0,a)},e(this,Vs,"f")))}},Ys=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,qs,"f").has(a)&&(e(this,Fs,"f").call(this,!1,a),e(this,qs,"f").delete(a)),e(this,Rs,"f").has(a)&&(clearTimeout(e(this,Rs,"f").get(a)),e(this,Rs,"f").delete(a))}};class Qn extends kn{constructor(t,o){super(t,o),Ks.set(this,void 0),Zs.set(this,!1),Gs.set(this,void 0),Xs.set(this,void 0),Js.set(this,!0),a(this,Ks,o.callback,"f"),a(this,Zs,o.skipInitial??!1,"f"),a(this,Gs,o.config,"f"),l||(window.MutationObserver?a(this,Xs,new MutationObserver((t,a)=>e(this,Ks,"f").call(this,t,a)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(e(this,Xs,"f")&&!e(this,Zs,"f")&&e(this,Js,"f")){const t=e(this,Xs,"f").takeRecords();t.length>0&&e(this,Ks,"f").call(this,t,e(this,Xs,"f"))}a(this,Js,!1,"f")}hostDisconnected(){super.hostDisconnected(),e(this,Xs,"f")?.disconnect()}_observe(t){e(this,Xs,"f")?.observe(t,e(this,Gs,"f")),a(this,Js,!0,"f")}_unobserve(){e(this,Xs,"f")?.disconnect();for(const t of this.targets)e(this,Xs,"f")?.observe(t,e(this,Gs,"f"))}}Ks=new WeakMap,Zs=new WeakMap,Gs=new WeakMap,Xs=new WeakMap,Js=new WeakMap;class el extends kn{constructor(t,o){super(t,o),Qs.add(this),en.set(this,void 0),tn.set(this,void 0),an.set(this,void 0),on.set(this,new Map),rn.set(this,void 0),sn.set(this,t=>e(this,Qs,"m",hn).call(this,t)),nn.set(this,t=>e(this,Qs,"m",mn).call(this,t)),ln.set(this,t=>e(this,Qs,"m",pn).call(this,t)),cn.set(this,t=>e(this,Qs,"m",un).call(this,t)),dn.set(this,t=>e(this,Qs,"m",vn).call(this,t)),a(this,en,o.capture,"f"),a(this,tn,o.callback,"f"),a(this,an,o.isPressedKey,"f"),a(this,rn,o.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",e(this,nn,"f"),{capture:e(this,en,"f")}),document.addEventListener("touchend",e(this,ln,"f"),{capture:e(this,en,"f")}),document.addEventListener("touchcancel",e(this,ln,"f"),{capture:e(this,en,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",e(this,nn,"f"),{capture:e(this,en,"f")}),document.removeEventListener("touchend",e(this,ln,"f"),{capture:e(this,en,"f")}),document.removeEventListener("touchcancel",e(this,ln,"f"),{capture:e(this,en,"f")}),super.hostDisconnected(),e(this,on,"f").clear()}_observe(t){t.addEventListener("pointerdown",e(this,sn,"f"),{capture:e(this,en,"f")}),e(this,an,"f")&&(t.addEventListener("keydown",e(this,cn,"f"),{capture:e(this,en,"f")}),t.addEventListener("keyup",e(this,dn,"f"),{capture:e(this,en,"f")}))}_unobserve(t){t.removeEventListener("pointerdown",e(this,sn,"f"),{capture:e(this,en,"f")}),e(this,an,"f")&&(t.removeEventListener("keydown",e(this,cn,"f"),{capture:e(this,en,"f")}),t.removeEventListener("keyup",e(this,dn,"f"),{capture:e(this,en,"f")}))}}en=new WeakMap,tn=new WeakMap,an=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,nn=new WeakMap,ln=new WeakMap,cn=new WeakMap,dn=new WeakMap,Qs=new WeakSet,hn=function(t){if(!("mouse"===t.pointerType&&t.button>1))for(const a of t.composedPath())if(a instanceof HTMLElement&&this.isObserving(a)){e(this,on,"f").has(a)||(e(this,on,"f").set(a,performance.now()),e(this,tn,"f").call(this,!0,{x:t.x,y:t.y},a));break}},mn=function(t){"mouse"===t.pointerType&&t.button>1||e(this,Qs,"m",bn).call(this,t.x,t.y)},pn=function(t){e(this,Qs,"m",bn).call(this,t.changedTouches[0]?.clientX??0,t.changedTouches[0]?.clientY??0)},un=function(t){if(t.target!==t.currentTarget)return;const a=t.currentTarget;if(e(this,an,"f")?.call(this,t.key)&&(" "===t.key&&t.preventDefault(),!e(this,on,"f").has(a))){e(this,on,"f").set(a,performance.now());const t=a.getBoundingClientRect();e(this,tn,"f").call(this,!0,{x:t.x+t.width/2,y:t.y+t.height/2},a)}},vn=function(t){const a=t.target;if(e(this,on,"f").has(a)&&e(this,an,"f")?.call(this,t.key)){const t=e(this,rn,"f")-(performance.now()-e(this,on,"f").get(a)),o=a.getBoundingClientRect();t>0?setTimeout(()=>{e(this,on,"f").delete(a),e(this,tn,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a)},t):(e(this,on,"f").delete(a),e(this,tn,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a))}},bn=function(t,a){for(const o of e(this,on,"f")){const i=e(this,rn,"f")-(performance.now()-o[1]);i>0?setTimeout(()=>{e(this,on,"f").delete(o[0]),e(this,tn,"f").call(this,!1,{x:t,y:a},o[0])},i):(e(this,on,"f").delete(o[0]),e(this,tn,"f").call(this,!1,{x:t,y:a},o[0]))}};class tl extends kn{constructor(t,o){super(t,o),fn.set(this,void 0),gn.set(this,void 0),yn.set(this,void 0),$n.set(this,void 0),xn.set(this,!0),a(this,fn,o.callback,"f"),a(this,gn,o.skipInitial??!1,"f"),a(this,yn,o.config,"f"),l||(window.ResizeObserver?a(this,$n,new ResizeObserver((t,a)=>e(this,fn,"f").call(this,t,a)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){e(this,$n,"f")&&!e(this,gn,"f")&&e(this,xn,"f")&&e(this,fn,"f").call(this,[],e(this,$n,"f")),a(this,xn,!1,"f")}_observe(t){e(this,$n,"f")?.observe(t,e(this,yn,"f")),a(this,xn,!0,"f")}_unobserve(t){e(this,$n,"f")?.unobserve(t)}}fn=new WeakMap,gn=new WeakMap,yn=new WeakMap,$n=new WeakMap,xn=new WeakMap;const al=e=>(t,a)=>{const o=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};a?a.addInitializer(o):o()};function ol(e){const t=Symbol("_id");return(a,o,i)=>{const r=i.value;return i.value=function(...a){clearTimeout(this[t]),this[t]=setTimeout(()=>r.apply(this,a),e)},i}}var il,rl,sl,nl,ll,cl,dl,hl,ml,pl,ul,vl,bl,fl;class gl extends kn{constructor(t,o){super(t,o),il.add(this),rl.set(this,void 0),sl.set(this,void 0),nl.set(this,t=>e(this,il,"m",dl).call(this,t)),ll.set(this,new Map),a(this,rl,!0===o.debounce,"f"),a(this,sl,o.callback,"f")}getScrollContainers(t){return e(this,ll,"f").get(t)}_observe(t){const a=e(this,il,"m",cl).call(this,t);if(a.length>0){e(this,ll,"f").set(t,a);for(const t of a)(t===document.documentElement?document:t).addEventListener("scroll",e(this,nl,"f"),{passive:!0})}}_unobserve(t){if(e(this,ll,"f").has(t)){for(const a of e(this,ll,"f").get(t))(a===document.documentElement?document:a).removeEventListener("scroll",e(this,nl,"f"));e(this,ll,"f").delete(t)}}_debounceCallback(t){e(this,sl,"f").call(this,t)}}rl=new WeakMap,sl=new WeakMap,nl=new WeakMap,ll=new WeakMap,il=new WeakSet,cl=function(e){const t=new Array;let a=e;for(;a;){const e=getComputedStyle(a);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(a),a=a.parentElement}return t},dl=function(t){const a=t.target===document?document.documentElement:t.target;e(this,rl,"f")?this._debounceCallback(a):e(this,sl,"f").call(this,a)},t([ol(40)],gl.prototype,"_debounceCallback",null);class yl{constructor(e){hl.add(this),ml.set(this,!1),pl.set(this,0),ul.set(this,0),vl.set(this,""),bl.set(this,""),e.addController(this)}lock(){e(this,ml,"f")||(a(this,ml,!0,"f"),a(this,pl,window.scrollY,"f"),a(this,ul,window.scrollX,"f"),a(this,vl,document.documentElement.style.overflow,"f"),a(this,bl,document.documentElement.style.scrollbarGutter,"f"),e(this,hl,"m",fl).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(e(this,ul,"f"),e(this,pl,"f")))}unlock(){e(this,ml,"f")&&(a(this,ml,!1,"f"),document.documentElement.style.overflow=e(this,vl,"f"),document.documentElement.style.scrollbarGutter=e(this,bl,"f"),window.scrollTo(e(this,ul,"f"),e(this,pl,"f")))}hostDisconnected(){this.unlock()}}ml=new WeakMap,pl=new WeakMap,ul=new WeakMap,vl=new WeakMap,bl=new WeakMap,hl=new WeakSet,fl=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const $l={fromAttribute(e){if(!e)return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?)?(Z|[+-]\d{2}:\d{2})?$/);if(!t)return null;const a=Number(t[1]),o=Number(t[2])-1,i=Number(t[3]),r=void 0!==t[4],s=r?Number(t[4]):0,n=r?Number(t[5]):0,l=r?Number(t[6]):0,c=r&&t[7]?Number(t[7]):0,d=t[8];if(!r&&!d)return new Date(a,o,i);if(r&&!d)return new Date(a,o,i,s,n,l,c);if("Z"===d)return new Date(Date.UTC(a,o,i,s,n,l,c));if(d&&/^[+-]\d{2}:\d{2}$/.test(d)){const e=d.startsWith("-")?-1:1,[t,r]=d.slice(1).split(":").map(Number),h=e*(60*t+r),m=Date.UTC(a,o,i,s,n,l,c);return new Date(m-6e4*h)}return null},toAttribute:e=>e?.toISOString()??null},xl={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},wl="important",kl=" !"+wl;const Cl=Ze(class extends Ge{constructor(e){if(super(e),e.type!==Xe.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return n}update(e,[t]){const{style:a}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?a.removeProperty(e):a[e]=null);for(const e in t){const o=t[e];if(null!=o){this._previousStyleProperties.add(e);const t="string"==typeof o&&o.endsWith(kl);e.includes("-")||t?a.setProperty(e,t?o.slice(0,-11):o,t?wl:""):a[e]=o}}return c}});function Sl(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const _l=Symbol("internals");function Ll(e){return Sl(e,_l)}const El=Symbol("_internals"),zl=Symbol("_customState");function Ml(e,t){var a;class o extends e{constructor(){super(...arguments),this[a]=new Set}get[(a=zl,_l)](){return this[El]??(this[El]=this.attachInternals())}}return o.formAssociated=t,o}function Tl(e,t){return zl in e?e[zl].has(t):e[_l].states.has(t)}function Pl(e,t){zl in e&&e[zl].add(t),e[_l]?.states.add(t),e[_l]?.states.has(t)}function Il(e,t){return zl in e&&e[zl].delete(t),!!e[_l]?.states.delete(t)&&(e[_l]?.states.has(t),!0)}function Wl(e,t,a){a?Pl(e,t):Il(e,t)}function Dl(e){return Sl(e,"checked")}function Al(e){class a extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"checked",void 0),a}function Hl(e){return Sl(e,"indeterminate")&&Dl(e)}function Ol(e){class a extends(Al(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"indeterminate",void 0),a}function Bl(e){return Sl(e,"selected")}function Fl(e){class a extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"selected",void 0),a}function Vl(e){return Dl(e)||Bl(e)}function ql(e){return Dl(e)&&e.checked||Bl(e)&&e.selected}function Rl(e,t){Dl(e)?e.checked=t:e.selected=t}function Ul(e){return Sl(e,"dirty","pristine","markAsDirty","markAsPristine")}const Nl=Symbol("_eventHandler");function jl(e){var t;return t=Nl,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Tl(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[Nl])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[Nl])}markAsPristine(){Il(this,"-dirty")}markAsDirty(){Pl(this,"-dirty")}}}function Yl(e){return Sl(e,"touched","untouched","markAsTouched","markAsUntouched")}const Kl=Symbol("_eventHandler");function Zl(e){var t;return t=Kl,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Tl(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[Kl],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Kl],{capture:!0})}markAsTouched(){Pl(this,"-touched")}markAsUntouched(){Il(this,"-touched")}}}const Gl={primary:o("var(--md-sys-color-primary, #6750A4)"),onPrimary:o("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:o("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:o("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:o("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:o("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:o("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:o("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:o("var(--md-sys-color-secondary, #625B71)"),onSecondary:o("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:o("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:o("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:o("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:o("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:o("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:o("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:o("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:o("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:o("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:o("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:o("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:o("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:o("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:o("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:o("var(--md-sys-color-error, #B3261E)"),onError:o("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:o("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:o("var(--md-sys-color-on-error-container, #8C1D18)"),surface:o("var(--md-sys-color-surface, #FEF7FF)"),onSurface:o("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:o("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:o("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:o("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:o("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:o("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:o("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:o("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:o("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:o("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:o("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:o("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:o("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:o("var(--md-sys-color-outline, #79747E)"),outlineVariant:o("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:o("var(--md-sys-color-shadow, #000000)"),scrim:o("var(--md-sys-color-scrim, #000000)")},Xl={scale:o("var(--md-sys-density-scale, 0)"),size:o("var(--md-sys-density-size, 0.25rem)")},Jl={...Xl,calc:e=>o(`calc(max(${e}, ${Xl.scale}) * ${Xl.size})`)},Ql=`color-mix(in srgb, var(--m3e-elevation-color, ${Gl.shadow}) 20%, transparent)`,ec=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],tc=`color-mix(in srgb, var(--m3e-elevation-color, ${Gl.shadow}) 14%, transparent)`,ac=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],oc=`color-mix(in srgb, var(--m3e-elevation-color, ${Gl.shadow}) 12%, transparent)`,ic=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function rc(e){return`${Ql} ${ec[e]},${tc} ${ac[e]},${oc} ${ic[e]}`}const sc={level0:o(`var(--md-sys-elevation-level0, ${rc(0)})`),level1:o(`var(--md-sys-elevation-level1, ${rc(1)})`),level2:o(`var(--md-sys-elevation-level2, ${rc(3)})`),level3:o(`var(--md-sys-elevation-level3, ${rc(6)})`),level4:o(`var(--md-sys-elevation-level4, ${rc(8)})`),level5:o(`var(--md-sys-elevation-level5, ${rc(12)})`)},nc={emphasized:o("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:o("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:o("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:o("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:o("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:o("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},lc={fastSpatial:o("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:o("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:o("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:o("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:o("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:o("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},cc={easing:nc,duration:{short1:o("var(--md-sys-motion-duration-short-1, 50ms)"),short2:o("var(--md-sys-motion-duration-short-2, 100ms)"),short3:o("var(--md-sys-motion-duration-short-3, 150ms)"),short4:o("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:o("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:o("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:o("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:o("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:o("var(--md-sys-motion-duration-long-1, 450ms)"),long2:o("var(--md-sys-motion-duration-long-2, 500ms)"),long3:o("var(--md-sys-motion-duration-long-3, 550ms)"),long4:o("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:o("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:o("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:o("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:o("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:lc},dc={width:o("var(--m3e-scrollbar-width, auto)"),thinWidth:o("var(--m3e-scrollbar-thin-width, thin)"),color:o("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},hc={none:o("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:o("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:o("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:o("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:o("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:o("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:o("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:o("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:o("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},mc={color:Gl,elevation:sc,motion:cc,shape:{corner:{full:o("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:o(`var(--md-sys-shape-corner-extra-large-top, ${hc.extraLarge} ${hc.extraLarge} ${hc.none} ${hc.none})`),extraLarge:o(`var(--md-sys-shape-corner-extra-large, ${hc.extraLarge})`),extraLargeEnd:o(`${hc.none} ${hc.extraLarge} ${hc.extraLarge} ${hc.none}`),extraLargeStart:o(`${hc.extraLarge} ${hc.none} ${hc.none} ${hc.extraLarge}`),largeTop:o(`var(--md-sys-shape-corner-large-top, ${hc.large} ${hc.large} ${hc.none} ${hc.none})`),largeEnd:o(`var(--md-sys-shape-corner-large-end, ${hc.none} ${hc.large} ${hc.large} ${hc.none})`),largeStart:o(`var(--md-sys-shape-corner-large-end, ${hc.large} ${hc.none} ${hc.none} ${hc.large})`),large:o(`var(--md-sys-shape-corner-large, ${hc.large})`),medium:o(`var(--md-sys-shape-corner-medium, ${hc.medium})`),mediumTop:o(`${hc.medium} ${hc.medium} ${hc.none} ${hc.none}`),mediumEnd:o(`${hc.none} ${hc.medium} ${hc.medium} ${hc.none}`),mediumStart:o(`${hc.medium} ${hc.none} ${hc.none} ${hc.medium}`),small:o(`var(--md-sys-shape-corner-small, ${hc.small})`),smallTop:o(`${hc.small} ${hc.small} ${hc.none} ${hc.none}`),smallEnd:o(`${hc.none} ${hc.small} ${hc.small} ${hc.none}`),smallStart:o(`${hc.small} ${hc.none} ${hc.none} ${hc.small}`),extraSmallTop:o(`var(--md-sys-shape-corner-extra-small-top, ${hc.extraSmall} ${hc.extraSmall} ${hc.none} ${hc.none})`),extraSmall:o(`var(--md-sys-shape-corner-extra-small, ${hc.extraSmall})`),extraSmallEnd:o(`${hc.none} ${hc.extraSmall} ${hc.extraSmall} ${hc.none}`),extraSmallStart:o(`${hc.extraSmall} ${hc.none} ${hc.none} ${hc.extraSmall}`),extraSmallBottom:o(`${hc.none} ${hc.none} ${hc.extraSmall} ${hc.extraSmall}`),none:o(`var(--md-sys-shape-corner-none, ${hc.none})`),largeIncreased:o(`var(--md-sys-shape-corner-large-increased, ${hc.largeIncreased})`),extraLargeIncreased:o(`var(--md-sys-shape-corner-extra-large-increased, ${hc.extraLargeIncreased})`),extraExtraLarge:o(`var(--md-sys-shape-corner-extra-extra-large, ${hc.extraExtraLarge})`),value:hc}},state:{focusStateLayerOpacity:o("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:o("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:o("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:o("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:o("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:dc,density:Jl};function pc(e){return Sl(e,"disabled")}function uc(e,a=!0){class o extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return t([m({type:Boolean,reflect:a})],o.prototype,"disabled",void 0),o}function vc(e){return Sl(e,"disabledInteractive")&&pc(e)}const bc=["click","dblclick","auxclick","keydown","keyup"],fc=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],gc=Symbol("_suppressedEventHandler");function yc(e){var a;class o extends e{constructor(){super(...arguments),this[a]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&fc.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){bc.forEach(e=>this.addEventListener(e,this[gc],!0)),super.connectedCallback()}disconnectedCallback(){bc.forEach(e=>this.removeEventListener(e,this[gc],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return a=gc,t([m({attribute:"disabled-interactive",type:Boolean,reflect:!0})],o.prototype,"disabledInteractive",void 0),o}const $c=Symbol("updateLabels");function xc(e){return Sl(e,"labels")&&Ll(e)}const wc=Symbol("_eventHandler");function kc(e){var t;class a extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[$c]()}}get labels(){return this[_l].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[wc]),this.addEventListener("change",this[wc])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[wc]),this.removeEventListener("change",this[wc])}update(e){super.update(e),this[$c]()}[(t=wc,$c)](){const e=this.hasAttribute("tabindex"),t=pc(this)&&this.disabled||vc(this)&&this.disabledInteractive,a=Yl(this)&&this.touched&&(this.ariaInvalid||Tl(this,"-invalid"));for(const o of this.labels??[])o.style.userSelect=e?"none":"",o.style.cursor=!t&&e?"pointer":"",!t&&e?o.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):o.style.removeProperty("-webkit-tap-highlight-color"),o.style.color=t?`color-mix(in srgb, ${mc.color.onSurface} 38%, transparent)`:a?`${mc.color.error}`:""}}return a.formAssociated=!0,a}const Cc=Symbol("formValue"),Sc=Symbol("defaultValue");function _c(e){return Sl(e,"disabled","form","name")&&xc(e)&&Ll(e)}const Lc=Symbol("_defaultValue"),Ec=Symbol("_defaultIndeterminate"),zc=Symbol("_formDisabled");function Mc(e){var a,o;class i extends e{constructor(){super(...arguments),this[a]=!1,this[o]=!1}get form(){return this[_l].form}get labels(){return this[_l].labels}get[(a=Ec,o=zc,Cc)](){return null}get[Sc](){return this[Lc]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[zc]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Dl(this)?(this[Lc]=this.checked,Hl(this)&&(this[Ec]=this.indeterminate)):"value"in this&&(this[Lc]=this.value)}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[_l].setFormValue(this[Cc])}formDisabledCallback(e){const t=this.disabled;this[zc]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Dl(this)?(this.checked=!0===this[Lc],Hl(this)&&(this.indeterminate=this[Ec])):"value"in this&&(this.value=this[Sc]),Ul(this)&&this.markAsPristine(),Yl(this)&&this.markAsUntouched()}}return i.formAssociated=!0,t([m({noAccessor:!0})],i.prototype,"name",null),t([m({type:Boolean})],i.prototype,"disabled",null),i}const Tc=Symbol("validate");function Pc(e){return Sl(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&_c(e)}const Ic=Symbol("_updateValidity"),Wc=Symbol("_validityMessage");function Dc(t){var a,o;class i extends t{constructor(){super(...arguments),a.add(this)}get willValidate(){return this[_l].willValidate}get validity(){return this[Ic](),this[_l].validity}get validationMessage(){return this[Ic](),this[_l].validationMessage}[(a=new WeakSet,Tc)](){return this[Wc]?{customError:!0}:void 0}reportValidity(){return Yl(this)&&this.markAsTouched(),this[Ic](),this[_l].reportValidity()}checkValidity(){return this[Ic](),this[_l].checkValidity()}setCustomValidity(e){this[Wc]=e||void 0,this[Ic]()}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[Ic]()}firstUpdated(e){super.firstUpdated(e),this[Ic]()}[Ic](){if(l||!this.isConnected)return;const t=this[Tc](),i=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[Wc]:"";t&&!r&&(r=e(this,a,"m",o).call(this,t)),this[_l].setValidity(t,r),this.ariaInvalid=i?"true":null,Wl(this,"-invalid",!0===i),xc(this)&&this[$c]?.()}}return o=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},i}function Ac(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Hc=Symbol("_tabindex");function Oc(e){var t;return t=Hc,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Hc]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Hc]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Hc]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Hc]}`)}}}function Bc(e){return Sl(e,"name","type","value")&&Ll(e)}const Fc=Symbol("_clickHandler");function Vc(e){var a;class o extends e{constructor(){super(...arguments),this.type="button",this[a]=async e=>{if(e.defaultPrevented||pc(this)&&this.disabled||vc(this)&&this.disabledInteractive)return;const t=this[_l].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[_l].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Fc])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Fc])}}return a=Fc,o.formAssociated=!0,t([m()],o.prototype,"name",null),t([m()],o.prototype,"value",null),t([m()],o.prototype,"type",void 0),o}function qc(e){return Sl(e,"htmlFor","control","attach","detach")}const Rc=Symbol("_control"),Uc=Symbol("_firstUpdated");function Nc(e){var a;class o extends e{constructor(){super(...arguments),this[a]=!1,this.htmlFor=null}get control(){return this[Rc]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[Rc]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[Rc];e&&(this.detach(),this[Rc]=e)}firstUpdated(e){super.firstUpdated(e),this[Uc]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&Rn(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[Uc]&&this.detach()}attach(e){this[Rc]=new WeakRef(e)}detach(){this[Rc]=void 0}}return a=Uc,t([m({attribute:"for"})],o.prototype,"htmlFor",void 0),o}function jc(t,o=!0){var i,r,s,n,l,c,d;return r=new WeakMap,s=new WeakMap,n=new WeakMap,l=new WeakMap,i=new WeakSet,c=function(e){e.target!==e.currentTarget||pc(this)&&this.disabled||vc(this)&&this.disabledInteractive?a(this,r,!1,"f"):(" "===e.key||o&&"Enter"===e.key)&&a(this,r,!0,"f")},d=function(t){t.target!==t.currentTarget||pc(this)&&this.disabled||vc(this)&&this.disabledInteractive||!e(this,r,"f")?a(this,r,!1,"f"):(a(this,r,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends t{constructor(){super(...arguments),i.add(this),r.set(this,!1),s.set(this,t=>e(this,i,"m",c).call(this,t)),n.set(this,t=>e(this,i,"m",d).call(this,t)),l.set(this,()=>a(this,r,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,s,"f")),this.addEventListener("keyup",e(this,n,"f")),this.addEventListener("focusout",e(this,l,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,s,"f")),this.removeEventListener("keyup",e(this,n,"f")),this.removeEventListener("focusout",e(this,l,"f"))}}}const Yc=Symbol("renderPseudoLink");function Kc(e){return Sl(e,"download","href","rel","target")}const Zc=Symbol("_clickHandler");function Gc(a){var o,i,r,l,c;class d extends a{constructor(){super(...arguments),o.add(this),this[c]=async e=>{if(vc(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Zc]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Zc])}[(o=new WeakSet,c=Zc,Yc)](){const t=pc(this)&&this.disabled,a=vc(this)&&this.disabledInteractive;return t||a||!this.href?n:s`<a href="${this.href}" target="${je(this.target||void 0)}" rel="${je(this.rel||void 0)}" download="${je(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${e(this,o,"m",i)}" @focus="${e(this,o,"m",r)}" @blur="${e(this,o,"m",l)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},l=function(e){e.target.setAttribute("aria-hidden","true")},t([m()],d.prototype,"href",void 0),t([m()],d.prototype,"target",void 0),t([m()],d.prototype,"rel",void 0),t([m({reflect:!1})],d.prototype,"download",null),d}function Xc(e){return Sl(e,"readOnly")}function Jc(e,a=!0){class o extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return t([m({attribute:"readonly",type:Boolean,reflect:a})],o.prototype,"readOnly",void 0),o}const Qc=Symbol("_wasConnected");function ed(e){var t;return t=Qc,class extends e{constructor(){super(...arguments),this[t]=!1}reconnectedCallback(){}connectedCallback(){super.connectedCallback(),this[Qc]&&this.reconnectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this[Qc]=!0}}}function td(e){return Sl(e,"required","optional")}function ad(e){class a extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"required",void 0),a}function od(e){return td(e)&&Pc(e)}function id(e){return class extends e{[Tc](){const e=super[Tc]();if(!e&&this.required){if(Dl(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function rd(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function sd(e){return class extends e{connectedCallback(){super.connectedCallback(),Pl(this,"-no-animate"),requestAnimationFrame(()=>Il(this,"-no-animate"))}}}function nd(e){return Sl(e,"vertical")}function ld(e){class a extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return t([m({type:Boolean,reflect:!0})],a.prototype,"vertical",void 0),a}var cd,dd,hd,md,pd,ud,vd,bd;class fd extends r{constructor(){super(...arguments),cd.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",e(this,cd,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",e(this,cd,"f"))}render(){return s`<slot></slot>`}}cd=new WeakMap,fd.styles=i`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let gd=class extends(Ac(Ml(r),"opening","opened","closing","closed")){constructor(){super(...arguments),dd.add(this),hd.set(this,!1),md.set(this,!1),this.open=!1}update(t){if(super.update(t),Pl(this,"-no-animate"),!e(this,hd,"f"))return this.open&&(a(this,md,!0,"f"),e(this,dd,"m",ud).call(this)),void a(this,hd,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(a(this,md,!0,"f"),Vn()||(e(this,dd,"m",ud).call(this),Wl(this,"-overflows",this.clientHeight<this.scrollHeight),e(this,dd,"m",vd).call(this)),Il(this,"-closing"),Pl(this,"-opening"),this.dispatchEvent(new Event("opening")),e(this,dd,"m",vd).call(this),Il(this,"-no-animate"),e(this,dd,"m",bd).call(this),Vn()?(e(this,dd,"m",ud).call(this),Il(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(e(this,dd,"m",ud).call(this),Il(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(Il(this,"-opening"),Pl(this,"-closing"),this.dispatchEvent(new Event("closing")),e(this,dd,"m",bd).call(this),e(this,md,"f")&&Il(this,"-no-animate"),Vn()?(e(this,dd,"m",vd).call(this),Il(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{e(this,dd,"m",vd).call(this),this.addEventListener("transitionend",()=>{this.open||(Il(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return s`<slot @slotchange="${e(this,dd,"m",pd)}"></slot>`}};hd=new WeakMap,md=new WeakMap,dd=new WeakSet,pd=function(){a(this,hd,!0,"f")},ud=function(){this.style.height="auto"},vd=function(){this.style.height=""},bd=function(){this.style.height=`${this.scrollHeight}px`},gd.styles=i`:host { display: block; height: 0px; overflow: hidden; transition: ${o(`visibility var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,t([m({type:Boolean,reflect:!0})],gd.prototype,"open",void 0),gd=t([al("m3e-collapsible")],gd);const yd=o(`var(--m3e-elevation-lift-duration, ${mc.motion.duration.short4})`),$d=o(`var(--m3e-elevation-lift-easing, ${mc.motion.easing.standard})`),xd=o(`var(--m3e-elevation-settle-duration, ${mc.motion.duration.short3})`),wd=o(`var(--m3e-elevation-settle-easing, ${mc.motion.easing.standardAccelerate})`),kd=o(`var(--m3e-elevation-level, ${mc.elevation.level0})`),Cd=o(`var(--m3e-elevation-hover-level, ${mc.elevation.level0})`),Sd=o(`var(--m3e-elevation-focus-level, ${mc.elevation.level0})`),_d=o(`var(--m3e-elevation-pressed-level, ${mc.elevation.level0})`);var Ld,Ed,zd,Md,Td,Pd,Id;let Wd=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),Ld.add(this),Ed.set(this,new Zn(this,{target:null,callback:t=>e(this,Ld,"m",Td).call(this,t)})),zd.set(this,new Kn(this,{target:null,callback:t=>e(this,Ld,"m",Pd).call(this,t)})),Md.set(this,new el(this,{target:null,callback:t=>e(this,Ld,"m",Id).call(this,t)})),this.disabled=!1,this.level=null}attach(t){super.attach(t),e(this,Ed,"f").observe(t),e(this,zd,"f").observe(t),e(this,Md,"f").observe(t)}detach(){this.control&&(e(this,Ed,"f").unobserve(this.control),e(this,zd,"f").unobserve(this.control),e(this,Md,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return s`<div class="shadow"></div>`}};Ed=new WeakMap,zd=new WeakMap,Md=new WeakMap,Ld=new WeakSet,Td=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Pd=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Id=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Wd.styles=i`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${o(`box-shadow ${xd} ${wd};`)}; } .shadow.hover { will-change: box-shadow; transition: ${o(`box-shadow ${yd} ${$d};`)}; } .shadow { box-shadow: ${kd}; } .shadow.focus { box-shadow: ${Sd}; } .shadow.hover { box-shadow: ${Cd}; } .shadow.pressed { box-shadow: ${_d}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${mc.elevation.level0}; --m3e-elevation-hover-level: ${mc.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${mc.elevation.level1}; --m3e-elevation-hover-level: ${mc.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${mc.elevation.level2}; --m3e-elevation-hover-level: ${mc.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${mc.elevation.level3}; --m3e-elevation-hover-level: ${mc.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${mc.elevation.level4}; --m3e-elevation-hover-level: ${mc.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${mc.elevation.level5}; --m3e-elevation-hover-level: ${kd}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${kd}; --m3e-elevation-pressed-level: ${kd}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,t([h(".shadow")],Wd.prototype,"_shadow",void 0),t([m({type:Boolean,reflect:!0})],Wd.prototype,"disabled",void 0),t([m({type:Number,reflect:!0})],Wd.prototype,"level",void 0),Wd=t([al("m3e-elevation")],Wd);const Dd=o(`var(--m3e-focus-ring-color, ${mc.color.secondary})`),Ad=o(`var(--m3e-focus-ring-duration, ${mc.motion.duration.long2})`),Hd=o("var(--m3e-focus-ring-thickness, 3px)"),Od=o("var(--m3e-focus-ring-outward-offset, 2px)"),Bd=o("var(--m3e-focus-ring-inward-offset, 0px)"),Fd=o("var(--m3e-focus-ring-visibility, visible)"),Vd=o("var(--m3e-focus-ring-growth-factor, 2)");var qd,Rd,Ud;let Nd=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),qd.add(this),Rd.set(this,new Kn(this,{target:null,callback:(t,a)=>e(this,qd,"m",Ud).call(this,a)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(t){super.attach(t),e(this,Rd,"f").observe(t)}detach(){this.control&&e(this,Rd,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return s`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Rd=new WeakMap,qd=new WeakSet,Ud=function(e){this.disabled||(e?this.show():this.hide())},Nd.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${Dd}; outline-width: ${Hd}; visibility: ${Fd}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Od}; } :host([inward]) .outline { outline-offset: calc(${Bd} - ${Hd}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Ad}; } :host([inward]) .outline.visible { animation: shrink-grow ${Ad}; } @keyframes grow-shrink { 50% { outline-width: calc(${Hd} * ${Vd}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Bd} - calc(${Hd} * ${Vd}) ); outline-width: calc(${Hd} * ${Vd}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,t([h(".outline")],Nd.prototype,"_outline",void 0),t([m({type:Boolean,reflect:!0})],Nd.prototype,"inward",void 0),t([m({type:Boolean,reflect:!0})],Nd.prototype,"disabled",void 0),Nd=t([al("m3e-focus-ring")],Nd);let jd=class extends(Ol(uc(rd(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n}};jd.styles=i`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${mc.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${mc.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${mc.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${mc.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${mc.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${mc.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,jd=t([al("m3e-pseudo-checkbox")],jd);let Yd=class extends(Al(uc(rd(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};Yd.styles=i`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${mc.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${mc.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${mc.color.onSurface}) 38%, transparent); }`,Yd=t([al("m3e-pseudo-radio")],Yd);const Kd=o(`var(--m3e-ripple-color, ${mc.color.onSurface})`),Zd=o(`var(--m3e-ripple-opacity, ${mc.state.pressedStateLayerOpacity})`),Gd=o(`var(--m3e-ripple-enter-duration, ${mc.motion.duration.long4})`),Xd=o(`var(--m3e-ripple-exit-duration, ${mc.motion.duration.short2})`),Jd=o("var(--m3e-ripple-scale-factor, 2.5)");var Qd,eh,th,ah,oh,ih;let rh=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),Qd.add(this),eh.set(this,null),th.set(this,new el(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,{x:a,y:o})=>e(this,Qd,"m",ih).call(this,t,a,o)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==e(this,eh,"f")}show(t,o,i=!1){e(this,Qd,"m",ah).call(this);const r=this.getBoundingClientRect();this.centered&&(t=r.left+r.width/2,o=r.top+r.height/2);let s=this.radius;if(!s||isNaN(s)){const e=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),a=Math.max(Math.abs(o-r.top),Math.abs(o-r.bottom));s=Math.sqrt(e*e+a*a)}const n=t-r.left,l=o-r.top;a(this,eh,document.createElement("div"),"f"),e(this,eh,"f").classList.add("ripple"),i&&e(this,eh,"f").classList.add("persistent"),e(this,eh,"f").style.left=n-s+"px",e(this,eh,"f").style.top=l-s+"px",e(this,eh,"f").style.width=2*s+"px",e(this,eh,"f").style.height=2*s+"px",e(this,eh,"f").addEventListener("animationend",()=>e(this,Qd,"m",oh).call(this,i),{once:!0}),e(this,eh,"f").addEventListener("transitionend",()=>e(this,Qd,"m",ah).call(this),{once:!0}),this.shadowRoot?.appendChild(e(this,eh,"f"))}hide(){e(this,eh,"f")?.classList.add("exit")}attach(t){super.attach(t),e(this,th,"f").observe(t)}detach(){this.control&&e(this,th,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,Qd,"m",ah).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var sh;eh=new WeakMap,th=new WeakMap,Qd=new WeakSet,ah=function(){e(this,eh,"f")?.remove(),a(this,eh,null,"f")},oh=function(t){t?e(this,eh,"f")?.classList.add("pressed"):this.hide()},ih=function(e,t,a){this.disabled||(e?this.show(t,a,!0):this.hide())},rh.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${mc.shape.corner.full}; background-color: color-mix(in srgb, ${Kd} ${Zd}, transparent); will-change: background-color, opacity; animation: ripple ${Gd} linear; } .ripple.persistent.pressed { transform: scale(${Jd}); } .ripple.exit { transition: opacity ${Xd} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Jd}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Jd}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,t([m({type:Boolean,reflect:!0})],rh.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],rh.prototype,"centered",void 0),t([m({type:Boolean,reflect:!0})],rh.prototype,"unbounded",void 0),t([m({type:Number})],rh.prototype,"radius",void 0),rh=t([al("m3e-ripple")],rh);let nh=class extends(Ml(r)){constructor(){super(...arguments),sh.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",e(this,sh,"f"))}update(t){super.update(t),t.has("dividers")&&(this.removeEventListener("scroll",e(this,sh,"f")),"none"!==this.dividers&&this.addEventListener("scroll",e(this,sh,"f"),{passive:!0}))}render(){return s`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;Wl(this,"-above",e),Wl(this,"-below",t)}};var lh,ch,dh,hh;sh=new WeakMap,nh.styles=i`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${mc.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Dd}; outline-width: ${Hd}; outline-offset: ${Od}; } :host([thin]) { scrollbar-width: ${mc.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${mc.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${mc.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${mc.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Ad}; } @keyframes grow-shrink { 50% { outline-width: calc(${Hd} * ${Vd}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,t([m()],nh.prototype,"dividers",void 0),t([m({type:Boolean,reflect:!0})],nh.prototype,"thin",void 0),t([ol(40)],nh.prototype,"_updateScroll",null),nh=t([al("m3e-scroll-container")],nh);let mh=class extends(Ml(r)){constructor(){super(...arguments),lh.add(this),ch.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Pl(this,"-no-animate")}update(t){super.update(t),t.has("selectedIndex")&&(null===this.selectedIndex&&Pl(this,"-no-animate"),e(this,lh,"m",hh).call(this),null!==this.selectedIndex&&Tl(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&Il(this,"-no-animate")}))}render(){return s`<slot @slotchange="${e(this,lh,"m",dh)}"></slot>`}};ch=new WeakMap,lh=new WeakSet,dh=function(t){const o=[...t.target.assignedElements({flatten:!0})];for(const t of e(this,ch,"f").filter(e=>!o.includes(e)))t.classList.remove("-before"),t.classList.remove("-after"),t.removeAttribute("inert");a(this,ch,o,"f"),e(this,lh,"m",hh).call(this)},hh=function(){const t=this.selectedIndex??e(this,ch,"f").length;for(let a=0;a<e(this,ch,"f").length;a++){const o=e(this,ch,"f")[a];o.classList.toggle("-before",a<t),o.classList.toggle("-after",a>t),o.toggleAttribute("inert",a!==t)}},mh.styles=i`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${o(`inset-inline-start var(--m3e-slide-animation-duration, ${mc.motion.duration.long2}) ${mc.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${mc.motion.duration.long2}) ${mc.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,t([m({attribute:"selected-index",type:Number,reflect:!0})],mh.prototype,"selectedIndex",void 0),mh=t([al("m3e-slide")],mh);const ph=o(`var(--m3e-state-layer-hover-color, ${mc.color.onSurface})`),uh=o(`var(--m3e-state-layer-hover-opacity, ${mc.state.hoverStateLayerOpacity})`),vh=o(`var(--m3e-state-layer-focus-color, ${mc.color.onSurface})`),bh=o(`var(--m3e-state-layer-focus-opacity, ${mc.state.focusStateLayerOpacity})`),fh=o(`var(--m3e-state-layer-duration, ${mc.motion.duration.medium1})`),gh=o(`var(--m3e-state-layer-easing, ${mc.motion.easing.standard})`);var yh,$h,xh,wh,kh;let Ch=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),yh.add(this),$h.set(this,new Zn(this,{target:null,callback:t=>e(this,yh,"m",wh).call(this,t)})),xh.set(this,new Kn(this,{target:null,callback:(t,a)=>e(this,yh,"m",kh).call(this,a)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(t){super.attach(t),e(this,$h,"f").observe(t),e(this,xh,"f").observe(t)}detach(){this.control&&(e(this,$h,"f").unobserve(this.control),e(this,xh,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return s`<div class="layer"></div>`}};var Sh,_h,Lh,Eh,zh,Mh,Th,Ph;$h=new WeakMap,xh=new WeakMap,yh=new WeakSet,wh=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},kh=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Ch.styles=i`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${o(`background-color ${fh} ${gh}`)}; } .layer.focused { background-color: color-mix(in srgb, ${vh} ${bh}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${ph} ${uh}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,t([h(".layer")],Ch.prototype,"_layer",void 0),t([m({type:Boolean,reflect:!0})],Ch.prototype,"disabled",void 0),t([m({attribute:"disable-hover",type:Boolean,reflect:!0})],Ch.prototype,"disableHover",void 0),Ch=t([al("m3e-state-layer")],Ch);let Ih=Ph=class extends r{constructor(){super(),Sh.add(this),_h.set(this,"m3e-text-highlight-"+Ph.__nextId++),Lh.set(this,new Array),Eh.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(a(this,Eh,new CSSStyleSheet,"f"),e(this,Eh,"f").replaceSync(i`::highlight(${o(e(this,_h,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${mc.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${mc.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(l||!CSS.highlights)}get ranges(){return e(this,Lh,"f")}firstUpdated(t){super.firstUpdated(t),this.shadowRoot&&e(this,Eh,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,Eh,"f"))&&this.shadowRoot.adoptedStyleSheets.push(e(this,Eh,"f"))}updated(t){super.updated(t),(t.has("term")||t.has("caseSensitive")||t.has("disabled"))&&e(this,Sh,"m",Th).call(this)}render(){return s`<slot @slotchange="${e(this,Sh,"m",Th)}"></slot>`}};_h=new WeakMap,Lh=new WeakMap,Eh=new WeakMap,Sh=new WeakSet,zh=function(e){return!/^\s*$/.test(e.data)},Mh=function t(a,o){a instanceof HTMLSlotElement?a.assignedNodes({flatten:!0}).forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,Sh,"m",zh).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,Sh,"m",t).call(this,a,o)}}):a.childNodes.forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,Sh,"m",zh).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,Sh,"m",t).call(this,a,o)}})},Th=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(e(this,_h,"f")),e(this,Lh,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Lh,"f")],bubbles:!1,composed:!1}));const t=new Array;if(e(this,Sh,"m",Mh).call(this,this,t),t.length>0){const o=this.caseSensitive?this.term:this.term.toLowerCase();switch(this.mode){case"starts-with":{const a=t[0];if(((this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"").startsWith(o)){const t=new Range;t.setStart(a,0),t.setEnd(a,o.length),e(this,Lh,"f").push(t)}}break;case"ends-with":{const a=t[t.length-1],i=(this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"";if(i.endsWith(o)){const t=i.length-o.length,r=t+o.length,s=new Range;s.setStart(a,t),s.setEnd(a,r),e(this,Lh,"f").push(s)}}break;case"contains":a(this,Lh,t.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:t})=>{const a=new Array;let i=0;for(;i<t.length;){const e=t.indexOf(o,i);if(-1===e)break;a.push(e),i=e+o.length}return a.map(t=>{const a=new Range;return a.setStart(e,t),a.setEnd(e,t+o.length),a})}).flat(),"f")}e(this,Lh,"f").length>0&&CSS.highlights.set(e(this,_h,"f"),new Highlight(...e(this,Lh,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Lh,"f")],bubbles:!1,composed:!1}))},Ih.styles=i`:host { display: contents; }`,Ih.__nextId=0,t([m({type:Boolean,reflect:!0})],Ih.prototype,"disabled",void 0),t([m()],Ih.prototype,"term",void 0),t([m({attribute:"case-sensitive",type:Boolean})],Ih.prototype,"caseSensitive",void 0),t([m()],Ih.prototype,"mode",void 0),Ih=Ph=t([al("m3e-text-highlight")],Ih);let Wh=class extends r{render(){return s`<span class="base"><slot></slot></span>`}};var Dh,Ah,Hh,Oh,Bh,Fh,Vh,qh,Rh,Uh,Nh,jh,Yh,Kh,Zh,Gh,Xh,Jh,Qh,em,tm,am,om;Wh.styles=i`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Wh=t([al("m3e-text-overflow")],Wh);let im=om=class extends(T(M(P(f(r,"dialog"))))){constructor(){super(...arguments),Dh.add(this),Ah.set(this,void 0),Hh.set(this,void 0),Oh.set(this,void 0),Bh.set(this,void 0),Fh.set(this,new W(this)),Vh.set(this,new D(this)),qh.set(this,t=>e(this,Dh,"m",jh).call(this,t)),Rh.set(this,t=>e(this,Dh,"m",Xh).call(this,t)),Uh.set(this,t=>{"closed"===t.newState&&(e(this,Dh,"m",am).call(this),e(this,Bh,"f")?.call(this),a(this,Bh,void 0,"f"))}),this.variant="docked",this.startView="month",this.date=null,this.startAt=null,this.minDate=null,this.maxDate=null,this.rangeStart=null,this.rangeEnd=null,this.blackoutDates=null,this.specialDates=null,this.previousMonthLabel="Previous month",this.previousYearLabel="Previous year",this.previousMultiYearLabel="Previous 24 years",this.nextMonthLabel="Next month",this.nextYearLabel="Next year",this.nextMultiYearLabel="Next 24 years",this.clearable=!1,this.clearLabel="Clear",this.confirmLabel="OK",this.dismissLabel="Cancel",this.label="Select date"}get isOpen(){return void 0!==e(this,Hh,"f")}get currentVariant(){return this._variant??("modal"!==this.variant?"docked":"modal")}connectedCallback(){super.connectedCallback(),this.setAttribute("popover","manual"),this.addEventListener("toggle",e(this,Uh,"f")),document.addEventListener("click",e(this,qh,"f")),document.addEventListener("keydown",e(this,Rh,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._variant=void 0,e(this,Ah,"f")?.call(this),e(this,Dh,"m",tm).call(this),C(this,"-docked"),C(this,"-modal"),this.removeEventListener("toggle",e(this,Uh,"f")),document.removeEventListener("click",e(this,qh,"f")),document.removeEventListener("keydown",e(this,Rh,"f"))}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.variant&&e(this,Dh,"m",Jh).call(this)}async show(t,o){e(this,Hh,"f")&&e(this,Hh,"f")!==t&&this.hide(),"modal"===this.currentVariant&&(e(this,Fh,"f").lock(),e(this,Vh,"f").lock());const i=this._calendar;i.date=this.date,i.rangeStart=this.rangeStart,i.rangeEnd=this.rangeEnd,i.requestUpdate("startView"),i.isUpdatePending&&await i.updateComplete,a(this,Hh,t,"f"),e(this,Hh,"f").ariaExpanded="true",a(this,Oh,o,"f"),await e(this,Dh,"m",em).call(this),this.showPopover(),await this._calendar.focusActiveCell()}hide(t=!1){"modal"===this.currentVariant&&(e(this,Fh,"f").unlock(),e(this,Vh,"f").unlock()),this.hidePopover(),e(this,Hh,"f")&&(e(this,Hh,"f").ariaExpanded="false",t&&e(this,Hh,"f").focus(),a(this,Hh,void 0,"f"))}async toggle(t,a){e(this,Hh,"f")?this.hide():await this.show(t,a)}render(){return s`<m3e-focus-trap>${e(this,Dh,"m",Nh).call(this)}<m3e-calendar class="calendar" start-view="${this.startView}" start-at="${je(this.startAt?.toISOString())}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" @change="${e(this,Dh,"m",Yh)}"></m3e-calendar><div class="actions">${this.clearable?s`<m3e-button @click="${e(this,Dh,"m",Kh)}">${this.clearLabel}</m3e-button>`:n}<div class="spacer" aria-hidden="true"></div><m3e-button @click="${e(this,Dh,"m",Zh)}">${this.dismissLabel}</m3e-button><m3e-button @click="${e(this,Dh,"m",Gh)}">${this.confirmLabel}</m3e-button></div></m3e-focus-trap>`}willUpdate(t){super.willUpdate(t),["date","rangeStart","rangeEnd"].some(e=>t.has(e))&&e(this,Dh,"m",am).call(this),t.has("variant")&&(e(this,Ah,"f")?.call(this),"auto"===this.variant?e(this,Dh,"m",Jh).call(this):(this._variant=void 0,e(this,Dh,"m",Qh).call(this)))}updated(e){super.updated(e),(e.has("specialDates")||e.has("blackoutDates"))&&(this._calendar.specialDates=this.specialDates,this._calendar.blackoutDates=this.blackoutDates)}};Ah=new WeakMap,Hh=new WeakMap,Oh=new WeakMap,Bh=new WeakMap,Fh=new WeakMap,Vh=new WeakMap,qh=new WeakMap,Rh=new WeakMap,Uh=new WeakMap,Dh=new WeakSet,Nh=function(){if("docked"===this.currentVariant)return n;const e=this._date??this.date;return s`<div class="supporting-text">${this.label}</div><div class="headline">${e?new Intl.DateTimeFormat(navigator.language,{weekday:"short",month:"short",day:"numeric"}).format(e):"––"}</div><div class="divider"></div>`},jh=function(t){t.composedPath().some(t=>t instanceof om||t===e(this,Hh,"f")||t===e(this,Oh,"f"))||this.hide()},Yh=function(){this._date=this._calendar.date,this._rangeStart=this._calendar.rangeStart,this._rangeEnd=this._calendar.rangeEnd},Kh=function(){this.date=null,this.rangeStart=null,this.rangeEnd=null,this.hide(!0),this.dispatchEvent(new Event("change",{bubbles:!0}))},Zh=function(){this.hide(!0)},Gh=function(){this.date=this._date??this.date,this.rangeStart=void 0===this._rangeStart?this.rangeStart:this._rangeStart,this.rangeEnd=void 0===this._rangeEnd?this.rangeEnd:this._rangeEnd,this.hide(!0),this.dispatchEvent(new Event("change",{bubbles:!0}))},Xh=function(e){!this.isOpen||"modal"!==this.currentVariant||"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.hide(!0))},Jh=function(){a(this,Ah,Je.observe([Qe.XSmall,Qe.Small],t=>{this._variant=t.get(Qe.XSmall)||t.get(Qe.Small)?"modal":"docked",e(this,Dh,"m",Qh).call(this)}),"f")},Qh=function(){switch(this.currentVariant){case"docked":this.ariaModal=null,C(this,"-modal"),E(this,"-docked"),e(this,Fh,"f").unlock(),e(this,Vh,"f").unlock();break;case"modal":this.ariaModal="true",C(this,"-docked"),E(this,"-modal"),this.isOpen&&(e(this,Fh,"f").lock(),e(this,Vh,"f").lock())}this.isOpen&&e(this,Dh,"m",em).call(this)},em=async function(){"docked"===this.currentVariant&&e(this,Hh,"f")?(e(this,Bh,"f")?.call(this),a(this,Bh,await Re(this,e(this,Oh,"f")??e(this,Hh,"f"),{position:"bottom-start",inline:!0,flip:!0,shift:"both"},(e,t,a)=>{k(this,"-top",a.includes("top")),k(this,"-bottom",a.includes("bottom")),"rtl"===qe.current?(this.style.right=window.innerWidth-e-this.clientWidth+"px",this.style.left=""):(this.style.left=`${e}px`,this.style.right=""),this.style.top=`${t}px`}),"f")):e(this,Dh,"m",tm).call(this)},tm=function(){e(this,Bh,"f")?.call(this),a(this,Bh,void 0,"f"),this.style.left="",this.style.right="",this.style.top=""},am=function(){this._date=this._rangeStart=this._rangeEnd=void 0},im.styles=i`:host { flex-direction: column; margin: unset; border: unset; padding-block: var(--m3e-datepicker-container-padding-block, 0.75rem); padding-inline: var(--m3e-datepicker-container-padding-inline, 0.25rem); background-color: var(--m3e-datepicker-container-color, ${v.color.surfaceContainer}); box-shadow: var(--m3e-datepicker-container-elevation, ${v.elevation.level3}); opacity: 0; display: none; } .calendar { --m3e-calendar-container-color: transparent; --m3e-calendar-container-elevation: ${v.elevation.level0}; --m3e-calendar-container-shape: ${v.shape.corner.none}; } .headline { color: var(--m3e-datepicker-modal-headline-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-datepicker-modal-headline-font-size, ${v.typescale.standard.headline.large.fontSize} ); font-weight: var( --m3e-datepicker-modal-headline-font-weight, ${v.typescale.standard.headline.large.fontWeight} ); line-height: var( --m3e-datepicker-modal-headline-line-height, ${v.typescale.standard.headline.large.lineHeight} ); letter-spacing: var( --m3e-datepicker-modal-headline-tracking, ${v.typescale.standard.headline.large.tracking} ); margin-block-start: 2.25rem; margin-block-end: 0.75rem; margin-inline: 1.5rem; } .supporting-text { color: var(--m3e-datepicker-modal-supporting-text-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-datepicker-modal-supporting-text-font-size, ${v.typescale.standard.label.large.fontSize} ); font-weight: var( --m3e-datepicker-modal-supporting-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-datepicker-modal-supporting-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-datepicker-modal-supporting-text-tracking, ${v.typescale.standard.label.large.tracking} ); margin-block-start: 1rem; margin-inline: 1.5rem; } .divider { height: var(--m3e-divider-thickness, 1px); width: 100%; position: relative; } .divider::before { content: ""; box-sizing: border-box; position: absolute; border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); height: inherit; left: -0.25rem; right: -0.25rem; } .actions { display: flex; align-items: center; column-gap: 0.5rem; padding-inline: var(--m3e-datepicker-actions-padding-inline, 0.5rem); } .spacer { flex: 1 1 auto; } :host(:state(-docked)) { position: absolute; background-color: var(--m3e-datepicker-docked-container-color, ${v.color.surfaceContainer}); border-radius: var(--m3e-datepicker-docked-container-shape, ${v.shape.corner.large}); } :host(:state(-modal)) { position: fixed; inset: 0; margin: auto; transform-origin: top; background-color: var(--m3e-datepicker-modal-container-color, ${v.color.surfaceContainerHigh}); border-radius: var(--m3e-datepicker-modal-container-shape, ${v.shape.corner.extraLarge}); } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.duration.short2} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete`)}; } :host { transform: scaleY(0.8); } :host(:popover-open) { transform: scaleY(1); display: inline-flex; opacity: 1; } :host(:state(-docked))::backdrop { background-color: transparent; } :host(:state(-modal))::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); margin-inline-end: -20px; } :host(:state(-modal):not(:popover-open))::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-modal):popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) var(--m3e-dialog-scrim-opacity, 32%), transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } @starting-style { :host(:popover-open) { transform: scaleY(0.8); } :host(:state(-modal):popover-open)::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; border: 1px solid CanvasText; } }`,t([u()],im.prototype,"_date",void 0),t([u()],im.prototype,"_rangeStart",void 0),t([u()],im.prototype,"_rangeEnd",void 0),t([h("m3e-calendar")],im.prototype,"_calendar",void 0),t([u()],im.prototype,"_variant",void 0),t([m()],im.prototype,"variant",void 0),t([m({attribute:"start-view"})],im.prototype,"startView",void 0),t([m({converter:J})],im.prototype,"date",void 0),t([m({attribute:"start-at",converter:J})],im.prototype,"startAt",void 0),t([m({attribute:"min-date",converter:J})],im.prototype,"minDate",void 0),t([m({attribute:"max-date",converter:J})],im.prototype,"maxDate",void 0),t([m({attribute:"range-start",converter:J})],im.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],im.prototype,"rangeEnd",void 0),t([m({attribute:!1})],im.prototype,"blackoutDates",void 0),t([m({attribute:!1})],im.prototype,"specialDates",void 0),t([m({attribute:"previous-month-label"})],im.prototype,"previousMonthLabel",void 0),t([m({attribute:"previous-year-label"})],im.prototype,"previousYearLabel",void 0),t([m({attribute:"previous-multi-year-label"})],im.prototype,"previousMultiYearLabel",void 0),t([m({attribute:"next-month-label"})],im.prototype,"nextMonthLabel",void 0),t([m({attribute:"next-year-label"})],im.prototype,"nextYearLabel",void 0),t([m({attribute:"next-multi-year-label"})],im.prototype,"nextMultiYearLabel",void 0),t([m({type:Boolean})],im.prototype,"clearable",void 0),t([m({attribute:"clear-label"})],im.prototype,"clearLabel",void 0),t([m({attribute:"confirm-label"})],im.prototype,"confirmLabel",void 0),t([m({attribute:"dismiss-label"})],im.prototype,"dismissLabel",void 0),t([m()],im.prototype,"label",void 0),im=om=t([$("m3e-datepicker")],im);let rm=class extends(b(z)){connectedCallback(){super.connectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup="dialog")}disconnectedCallback(){super.disconnectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup=null)}_onClick(){this.control instanceof im&&this.parentElement&&this.control.toggle(this.parentElement,this.closest("m3e-form-field")??void 0)}};rm=t([$("m3e-datepicker-toggle")],rm);let sm=class extends z{constructor(){super(...arguments),this.returnValue=""}_onClick(){this.closest("m3e-dialog")?.hide(this.returnValue)}};var nm,lm,cm,dm,hm,mm,pm,um,vm,bm,fm,gm;t([m({attribute:"return-value"})],sm.prototype,"returnValue",void 0),sm=t([$("m3e-dialog-action")],sm);let ym=gm=class extends(x(P(r),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),nm.add(this),lm.set(this,gm.__nextId++),cm.set(this,!1),dm.set(this,!1),this._withActions=!1,hm.set(this,new W(this)),this.alert=!1,this.dismissible=!1,this.disableClose=!1,this.noFocusTrap=!1,this.closeLabel="Close",this.returnValue=""}get open(){return e(this,cm,"f")}set open(t){t!==e(this,cm,"f")&&(a(this,cm,t,"f"),e(this,cm,"f")?this.show():this.hide())}async show(){if(await this.updateComplete,this._base.open)return;if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);e(this,hm,"f").lock(),this._base.showModal(),this._content.scrollTop=0;const t=this.querySelector("[autofocus]");t&&H(t),this.dispatchEvent(new Event("opened"))}async hide(t=this.returnValue){if(!this.isConnected)return void(this.open=!1);if(await this.updateComplete,e(this,hm,"f").unlock(),!this._base.open)return void(this.open=!1);const a=this.returnValue;this.returnValue=t,this.dispatchEvent(new Event("closing",{cancelable:!0}))?(this.open=!1,this._base.close(t),this.dispatchEvent(new Event("closed"))):this.returnValue=a}render(){return s`<dialog class="base" role="${je(this.alert?"alertdialog":void 0)}" aria-labelledby="m3e-dialog-${e(this,lm,"f")}-header" .returnvalue="${this.returnValue}" @close="${e(this,nm,"m",pm)}" @cancel="${e(this,nm,"m",um)}" @click="${e(this,nm,"m",vm)}" @keydown="${e(this,nm,"m",bm)}"><m3e-elevation level="3"></m3e-elevation><m3e-focus-trap ?disabled="${this.noFocusTrap}"><div class="header"><slot name="header" id="m3e-dialog-${e(this,lm,"f")}-header"></slot>${e(this,nm,"m",mm).call(this)}</div><m3e-scroll-container class="content" dividers="${this._withActions?"above-below":"above"}"><slot></slot></m3e-scroll-container><div class="actions"><slot name="actions" @slotchange="${e(this,nm,"m",fm)}"></slot></div></m3e-focus-trap></dialog>`}};lm=new WeakMap,cm=new WeakMap,dm=new WeakMap,hm=new WeakMap,nm=new WeakSet,mm=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" class="close" @click="${this.hide}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},pm=function(){e(this,dm,"f")&&(a(this,dm,!0,"f"),this._base?.dispatchEvent(new Event("cancel",{cancelable:!0})))},um=function(e){e.target===this._base&&(a(this,dm,!1,"f"),e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},vm=function(e){this.disableClose||e.target!==this._base||this.hide()},bm=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.disableClose||this.hide())},fm=function(e){this._withActions=e.target.assignedNodes({flatten:!0}).length>0,k(this,"-with-actions",this._withActions)},ym.styles=i`:host { display: contents; } .base { font: inherit; border: unset; outline: unset; padding: unset; display: flex; flex-direction: column; position: fixed; overflow: visible; border-radius: var(--m3e-dialog-shape, ${v.shape.corner.extraLarge}); min-width: var(--m3e-dialog-min-width, 17.5rem); max-width: var(--m3e-dialog-max-width, 35rem); color: var(--m3e-dialog-color, ${v.color.onSurface}); background-color: var(--m3e-dialog-container-color, ${v.color.surfaceContainerHigh}); visibility: hidden; opacity: 0; transform-origin: top; transform: translateY(-3.125rem) scaleY(0.8); } .base::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); margin-inline-end: -20px; } .base:not([open]) { visibility: hidden; opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.short3} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete`)}; } .base[open] { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); transition: ${o(`opacity ${v.motion.duration.long2} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.long2} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete`)}; } .base:not([open])::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base[open]::backdrop { background-color: color-mix( in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) var(--m3e-dialog-scrim-opacity, 32%), transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .base[open] { opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); } .base[open]::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); } } .header { flex: none; display: flex; align-items: center; padding: 1.5rem 1.5rem 1rem 1.5rem; background-color: var(--m3e-dialog-header-container-color, transparent); } ::slotted([slot="header"]) { margin: unset; flex: 1 1 auto; color: var(--m3e-dialog-header-color, inherit); font-size: var(--m3e-dialog-header-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-dialog-header-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-dialog-header-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-dialog-header-tracking, ${v.typescale.standard.headline.small.tracking}); } .content { padding-inline: 1.5rem; color: var(--m3e-dialog-content-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-dialog-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-dialog-content-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-dialog-content-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-dialog-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .actions { padding: 1.5rem; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } :host(:not(:state(-with-actions))) .content { margin-bottom: 1.5rem; } :host(:not(:state(-with-actions))) .actions { display: none; } .close { margin-inline-start: 0.5rem; } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } } @media (prefers-reduced-motion) { .base:not([open]), .base[open], .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } }`,ym.__nextId=0,t([u()],ym.prototype,"_withActions",void 0),t([h(".base")],ym.prototype,"_base",void 0),t([h(".content")],ym.prototype,"_content",void 0),t([m({type:Boolean})],ym.prototype,"alert",void 0),t([m({type:Boolean,reflect:!0})],ym.prototype,"open",null),t([m({type:Boolean})],ym.prototype,"dismissible",void 0),t([m({attribute:"disable-close",type:Boolean})],ym.prototype,"disableClose",void 0),t([m({attribute:"no-focus-trap",type:Boolean})],ym.prototype,"noFocusTrap",void 0),t([m({attribute:"close-label"})],ym.prototype,"closeLabel",void 0),ym=gm=t([$("m3e-dialog")],ym);let $m=class extends(b(z)){connectedCallback(){super.connectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup="dialog")}disconnectedCallback(){super.disconnectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup=null)}_onClick(){this.control instanceof ym&&this.control.show()}};$m=t([$("m3e-dialog-trigger")],$m);let xm=class extends(f(r,"separator")){constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.insetStart=!1,this.insetEnd=!1}render(){return s`<div class="line"></div>`}};xm.styles=i`:host { display: block; position: relative; } :host(:not([vertical])) { height: var(--m3e-divider-thickness, 1px); width: 100%; } :host([vertical]) { width: var(--m3e-divider-thickness, 1px); height: 100%; } .line { box-sizing: border-box; position: absolute; } :host(:not([vertical])) .line { border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); height: inherit; } :host([vertical]) .line { border-right: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); width: inherit; } :host([vertical][inset]) .line, :host([vertical][inset-start]) .line { top: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-start]) .line { left: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical][inset]) .line, :host([vertical][inset-end]) .line { bottom: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-end]) .line { right: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical]:not([inset]):not([inset-start])) .line { top: 0; } :host(:not([vertical]):not([inset]):not([inset-start])) .line { left: 0; } :host([vertical]:not([inset]):not([inset-end])) .line { bottom: 0; } :host(:not([vertical]):not([inset]):not([inset-end])) .line { right: 0; } @media (forced-colors: active) { .line { border-color: GrayText; } }`,t([m({type:Boolean,reflect:!0})],xm.prototype,"vertical",void 0),t([m({type:Boolean,reflect:!0})],xm.prototype,"inset",void 0),t([m({attribute:"inset-start",type:Boolean,reflect:!0})],xm.prototype,"insetStart",void 0),t([m({attribute:"inset-end",type:Boolean,reflect:!0})],xm.prototype,"insetEnd",void 0),xm=t([$("m3e-divider")],xm);const wm=o(`var(--m3e-drawer-container-color, ${v.color.surface})`),km=o(`var(--m3e-drawer-container-elevation, ${v.elevation.level0})`),Cm=o("var(--m3e-drawer-container-width, 22.5rem)"),Sm=o("var(--m3e-drawer-container-scrim-opacity, 32%)"),_m=o(`var(--m3e-modal-drawer-corner-shape, ${v.shape.corner.large})`),Lm=o(`var(--m3e-modal-drawer-container-color, ${v.color.surfaceContainerLow})`),Em=o(`var(--m3e-modal-drawer-elevation, ${v.elevation.level1})`),zm=o(`var(--m3e-drawer-divider-color, ${v.color.outline})`),Mm=o("var(--m3e-drawer-divider-thickness, 1px)"),Tm=i`:host { display: block; position: relative; overflow: hidden; flex: 1 1 auto; } .start, .end { position: absolute; top: 0; bottom: 0; z-index: 3; outline: none; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; box-sizing: border-box; background-color: ${wm}; box-shadow: ${km}; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete,\n background-color ${v.motion.duration.medium4} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } .start { inset-inline-start: 0; } .end { inset-inline-end: 0; } :host(:not([start])) .start { visibility: hidden; } :host(:not([start]):not(:dir(rtl))) .start { margin-left: calc(0px - var(--_start-drawer-size, ${Cm})); } :host(:not([start]):dir(rtl)) .start { margin-right: calc(0px - var(--_start-drawer-size, ${Cm})); } :host([start]:not(:dir(rtl))) .start { margin-left: 0; } :host([start]:dir(rtl)) .start { margin-right: 0; } :host(:not([end])) .end { visibility: hidden; } :host(:not([end]):not(:dir(rtl))) .end { margin-right: calc(0px - var(--_end-drawer-size, ${Cm})); } :host(:not([end]):dir(rtl)) .end { margin-left: calc(0px - var(--_end-drawer-size, ${Cm})); } :host([end]:not(:dir(rtl))) .end { margin-right: 0; } :host([end]:dir(rtl)) .end { margin-left: 0; } ::slotted([slot="start"]), ::slotted([slot="end"]) { height: 100%; width: ${Cm}; box-sizing: border-box; } .content { position: relative; height: 100%; overflow: auto; margin-left: 0; margin-right: 0; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } :host(:state(-start-push)[start]:not(:dir(rtl))) .content, :host(:state(-start-side)[start]:not(:dir(rtl))) .content { margin-left: var(--_start-drawer-size, ${Cm}); } :host(:state(-start-push)[start]:dir(rtl)) .content, :host(:state(-start-side)[start]:dir(rtl)) .content { margin-right: var(--_start-drawer-size, ${Cm}); } :host(:state(-end-push)[end]:not(:dir(rtl))) .content, :host(:state(-end-side)[end]:not(:dir(rtl))) .content { margin-right: var(--_end-drawer-size, ${Cm}); } :host(:state(-end-push)[end]:dir(rtl)) .content, :host(:state(-end-side)[end]:dir(rtl)) .content { margin-left: var(--_end-drawer-size, ${Cm}); } .scrim { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; background-color: ${v.color.scrim}; opacity: 0; visibility: hidden; transition: ${o(`opacity ${v.motion.duration.medium4} ${v.motion.easing.standard}, \n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .scrim { opacity: 0; } } :host(:state(-start-push)[start]) .scrim, :host(:state(-end-push)[end]) .scrim, :host(:state(-start-over)[start]) .scrim, :host(:state(-end-over)[end]) .scrim { visibility: visible; opacity: ${Sm}; } :host(:state(-start-push)) .start, :host(:state(-start-over)) .start { border-start-end-radius: ${_m}; border-end-end-radius: ${_m}; } :host(:state(-end-push)) .end, :host(:state(-end-over)) .end { border-start-start-radius: ${_m}; border-end-start-radius: ${_m}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: ${Lm}; box-shadow: ${Em}; } :host([start-divider]) .start { border-inline-end-color: transparent; border-inline-end-width: ${Mm}; border-inline-end-style: solid; box-sizing: border-box; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: ${zm}; } :host([end-divider]) .end { border-inline-start-color: transparent; border-inline-start-width: ${Mm}; border-inline-start-style: solid; box-sizing: border-box; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: ${zm}; } :host(:state(-no-animate)) .start, :host(:state(-no-animate)) .end, :host(:state(-no-animate)) .content { transition: none; } @media (forced-colors: active) { .start, .end { background-color: Canvas; box-shadow: unset; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: Canvas; box-shadow: unset; border-color: CanvasText; } .start, .end { border-style: solid; border-color: Canvas; border-width: 1px; } .start { border-inline-start-style: none; } .end { border-inline-end-style: none; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: GrayText; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: GrayText; } } @media (prefers-reduced-motion) { .start, .end, .content, .scrim { transition: none; } }`;var Pm,Im,Wm,Dm,Am,Hm,Om,Bm,Fm,Vm,qm,Rm,Um;let Nm=class extends(M(P(r))){constructor(){super(...arguments),Pm.add(this),this._startMode="side",this._endMode="side",Im.set(this,void 0),Wm.set(this,!1),Dm.set(this,!1),Am.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,Pm,"m",Vm).call(this,t)})),this.start=!1,this.startMode="side",this.startDivider=!1,this.end=!1,this.endMode="side",this.endDivider=!1}connectedCallback(){super.connectedCallback(),E(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),e(this,Im,"f")?.call(this),e(this,Pm,"m",Rm).call(this)}willUpdate(t){super.willUpdate(t),(t.has("startMode")||t.has("endMode"))&&(e(this,Im,"f")?.call(this),"auto"===this.startMode||"auto"===this.endMode?e(this,Pm,"m",qm).call(this):e(this,Pm,"m",Um).call(this)),t.has("start")?this.start&&this.end&&"side"!==this._endMode&&(this.end=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):t.has("end")&&this.end&&this.start&&"side"!==this._startMode&&(this.start=!1,this.dispatchEvent(new Event("change",{bubbles:!0})))}reconnectedCallback(){super.reconnectedCallback(),e(this,Pm,"m",Hm).call(this),"auto"!==this.startMode&&"auto"!==this.endMode||e(this,Pm,"m",qm).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Pm,"m",Hm).call(this)}render(){return s`<div class="start"><m3e-focus-trap ?disabled="${!this.start||"side"===this._startMode||e(this,Wm,"f")}"><slot name="start" @slotchange="${e(this,Pm,"m",Bm)}"></slot></m3e-focus-trap></div><div class="content" .inert="${("side"!==this._startMode||"side"!==this._endMode)&&(this.start||this.end)}"><slot></slot></div><div class="scrim" @click="${e(this,Pm,"m",Om)}"></div><div class="end"><m3e-focus-trap ?disabled="${!this.end||"side"===this._endMode||e(this,Dm,"f")}"><slot name="end" @slotchange="${e(this,Pm,"m",Fm)}"></slot></m3e-focus-trap></div>`}};var jm,Ym,Km,Zm,Gm,Xm;Im=new WeakMap,Wm=new WeakMap,Dm=new WeakMap,Am=new WeakMap,Pm=new WeakSet,Hm=function(){let t=this.shadowRoot?.querySelector(".start");t&&e(this,Am,"f").observe(t),t=this.shadowRoot?.querySelector(".end"),t&&e(this,Am,"f").observe(t)},Om=function(){"side"!==this._startMode&&(this.start=!1),"side"!==this._endMode&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0}))},Bm=function(e){a(this,Wm,!g(e.target),"f")},Fm=function(e){a(this,Dm,!g(e.target),"f")},Vm=function(e){for(const t of e){const e=Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize;t.target.classList.contains("start")?this.style.setProperty("--_start-drawer-size",`${e.inlineSize}px`):t.target.classList.contains("end")&&this.style.setProperty("--_end-drawer-size",`${e.inlineSize}px`)}O(this,"-no-animate")&&(this.offsetTop,C(this,"-no-animate"))},qm=function(){a(this,Im,Je.observe([Qe.XSmall,Qe.Small],t=>e(this,Pm,"m",Um).call(this,t,!0)),"f")},Rm=function(){C(this,"-start-over"),C(this,"-start-push"),C(this,"-start-side"),C(this,"-end-over"),C(this,"-end-push"),C(this,"-end-side")},Um=function(t,a=!1){let o=!1,i=!1;"auto"===this.startMode?t?.get(Qe.Medium)?this._startMode="side":t?.get(Qe.Small)?(o="side"===this._startMode&&this.start,this._startMode="push"):t?.get(Qe.XSmall)?(o="over"!==this._startMode&&this.start,this._startMode="over"):this._startMode="side":this._startMode=this.startMode,"auto"===this.endMode?t?.get(Qe.Medium)?this._endMode="side":t?.get(Qe.Small)?(i="side"===this._endMode&&this.end,this._endMode="push"):t?.get(Qe.XSmall)?(i="over"!==this._endMode&&this.end,this._endMode="over"):this._endMode="side":this._endMode=this.endMode,e(this,Pm,"m",Rm).call(this),E(this,`-start-${this._startMode}`),E(this,`-end-${this._endMode}`),a&&(o||i)&&(o&&(this.start=!1),i&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0})))},Nm.styles=Tm,t([u()],Nm.prototype,"_startMode",void 0),t([u()],Nm.prototype,"_endMode",void 0),t([m({type:Boolean,reflect:!0})],Nm.prototype,"start",void 0),t([m({attribute:"start-mode",reflect:!0})],Nm.prototype,"startMode",void 0),t([m({attribute:"start-divider",type:Boolean,reflect:!0})],Nm.prototype,"startDivider",void 0),t([m({type:Boolean,reflect:!0})],Nm.prototype,"end",void 0),t([m({attribute:"end-mode",reflect:!0})],Nm.prototype,"endMode",void 0),t([m({attribute:"end-divider",type:Boolean,reflect:!0})],Nm.prototype,"endDivider",void 0),Nm=t([$("m3e-drawer-container")],Nm);let Jm=class extends(b(z)){constructor(){super(...arguments),jm.add(this),Ym.set(this,()=>e(this,jm,"m",Zm).call(this)),Km.set(this,!1)}attach(t){super.attach(t),this.htmlFor&&this.parentElement&&Ie(this.parentElement,"aria-controls",this.htmlFor);const a=t.closest("m3e-drawer-container");a&&(a.addEventListener("change",e(this,Ym,"f")),e(this,jm,"m",Xm).call(this,a,!0))}detach(){this.parentElement&&(this.htmlFor&&We(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),this.control?.closest("m3e-drawer-container")?.removeEventListener("change",e(this,Ym,"f")),super.detach()}_onClick(){e(this,jm,"m",Gm).call(this)}};var Qm,ep,tp,ap;Ym=new WeakMap,Km=new WeakMap,jm=new WeakSet,Zm=function(){if(this.control&&!e(this,Km,"f")){const t=this.control.closest("m3e-drawer-container");t&&e(this,jm,"m",Xm).call(this,t,!0)}},Gm=async function(){if(!this.parentElement||!this.control)return;const t=this.control.closest("m3e-drawer-container");if(t){a(this,Km,!0,"f");try{"start"===this.control.slot?t.start=!t.start:"end"===this.control.slot&&(t.end=!t.end),t.isUpdatePending&&await t.updateComplete,await e(this,jm,"m",Xm).call(this,t,!1)}finally{a(this,Km,!1,"f")}}},Xm=async function(e,t){if(!this.parentElement||!this.control)return;let a=!1;"start"===this.control.slot?a=e.start:"end"===this.control.slot&&(a=e.end),this.parentElement.ariaExpanded=`${a}`,t&&this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",a),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},Jm=t([$("m3e-drawer-toggle")],Jm);let op=class extends r{constructor(){super(...arguments),Qm.add(this),ep.set(this,[]),this.multi=!1}get panels(){return e(this,ep,"f")}render(){return s`<slot @slotchange="${e(this,Qm,"m",tp)}" @opening="${e(this,Qm,"m",ap)}"></slot>`}};ep=new WeakMap,Qm=new WeakSet,tp=function(){if(a(this,ep,[...this.querySelectorAll("m3e-expansion-panel")],"f"),this.multi)return;let t=!1;for(const a of e(this,ep,"f").filter(e=>!e.open))t&&(a.open=!1),t=!0},ap=function(t){if(!this.multi)for(const a of e(this,ep,"f").filter(e=>e!==t.target&&e.open))a.open=!1},op.styles=i`:host { display: block; } ::slotted(m3e-expansion-panel) { --m3e-expansion-panel-container-color: ${v.color.surface}; --m3e-expansion-panel-elevation: ${v.elevation.level2}; --m3e-expansion-panel-open-shape: ${v.shape.corner.medium}; --_expansion-panel-open-spacing: 1rem; } ::slotted(m3e-expansion-panel:first-of-type:last-of-type) { --m3e-expansion-panel-shape: ${v.shape.corner.medium}; } ::slotted(m3e-expansion-panel:first-of-type:not(:last-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.medium} ${v.shape.corner.value.medium} ${v.shape.corner.value.none} ${v.shape.corner.value.none}; } ::slotted(m3e-expansion-panel:last-of-type:not(:first-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.none} ${v.shape.corner.value.none} ${v.shape.corner.value.medium} ${v.shape.corner.value.medium}; }`,t([m({type:Boolean})],op.prototype,"multi",void 0),op=t([$("m3e-accordion")],op);const ip=o("var(--m3e-expansion-header-collapsed-height, 3rem)"),rp=o("var(--m3e-expansion-header-expanded-height, 4rem)"),sp=o("var(--m3e-expansion-header-padding-left, 1.5rem)"),np=o("var(--m3e-expansion-header-padding-right, 1.5rem)"),lp=o("var(--m3e-expansion-header-spacing, 0.5rem)"),cp=o("var(--m3e-expansion-header-toggle-icon-size, 1.5rem)"),dp=o(`var(--m3e-expansion-header-font-size, ${v.typescale.standard.title.medium.fontSize})`),hp=o(`var(--m3e-expansion-header-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),mp=o(`var(--m3e-expansion-header-line-height, ${v.typescale.standard.title.medium.lineHeight})`),pp=o(`var(--m3e-expansion-header-tracking, ${v.typescale.standard.title.medium.tracking})`),up=i`:host { display: block; border-radius: inherit; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: ${o(`height var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } .base { box-sizing: border-box; width: 100%; height: 100%; display: flex; border-radius: inherit; outline: none; position: relative; padding-inline-start: ${sp}; padding-inline-end: ${np}; font-size: ${dp}; font-weight: ${hp}; line-height: ${mp}; letter-spacing: ${pp}; column-gap: ${lp}; } :host(:not(:disabled)) { cursor: pointer; } :host(:not([aria-expanded="true"])) { height: ${ip}; } :host([aria-expanded="true"]) { height: ${rp}; } :host(:not(:focus-visible)) .state-layer { --m3e-state-layer-focus-color: transparent; } :host([aria-expanded="true"]) .state-layer { --m3e-state-layer-hover-color: transparent; } :host([aria-expanded="true"]) [part="background"], .content { flex: 1 1 auto; display: flex; align-items: center; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: ${cp}; transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host([toggle-direction="vertical"][aria-expanded="true"]) .toggle { transform: rotate(180deg); } :host([toggle-direction="horizontal"][aria-expanded="true"]) .toggle { transform: rotate(var(--_expansion-header-horizontal-expanded-toggle-rotation, 90deg)); } :host([toggle-position="before"]) .toggle { margin-inline-start: calc(0px - ${lp}); } :host([toggle-position="after"]) .toggle { margin-inline-end: calc(0px - ${lp}); } :host([hide-toggle]) .toggle { display: none; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } @media (prefers-reduced-motion) { :host, .toggle { transition: none; } }`,vp=o(`var(--m3e-expansion-panel-text-color, ${v.color.onSurface})`),bp=o(`var(--m3e-expansion-panel-disabled-text-color, ${v.color.onSurface})`),fp=o("var(--m3e-expansion-panel-disabled-text-opacity, 38%)"),gp=o("var(--m3e-expansion-panel-container-color)"),yp=o("var(--m3e-expansion-panel-elevation)"),$p=o("var(--m3e-expansion-panel-shape)"),xp=o("var(--m3e-expansion-panel-open-elevation, var(--m3e-expansion-panel-elevation))"),wp=o("var(--m3e-expansion-panel-open-shape, var(--m3e-expansion-panel-shape))"),kp=o("var(--_expansion-panel-open-spacing)"),Cp=o("var(--m3e-expansion-panel-content-padding, 0 1.5rem 1rem 1.5rem)"),Sp=o("var(--m3e-expansion-panel-actions-spacing, 0.5rem)"),_p=o("var(--m3e-expansion-panel-actions-padding, 1rem 1.5rem 1rem 1.5rem)"),Lp=o("var(--m3e-expansion-panel-actions-divider-thickness, var(--m3e-divider-thickness, 1px))"),Ep=o(`var(--m3e-expansion-panel-actions-divider-color, var(--m3e-divider-color, ${v.color.outlineVariant}))`),zp=i`:host { display: block; } .base { background-color: ${gp}; transition: ${o(`box-shadow var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) .base { color: ${vp}; } :host(:disabled) .base { color: color-mix( in srgb, ${bp} ${fp}, transparent ); } :host(:not([open])) .base { box-shadow: ${yp}; border-radius: ${$p}; } :host([open]) .base { box-shadow: ${xp}; border-radius: ${wp}; margin-block: ${kp}; } .toggle { display: flex; align-items: center; justify-content: center; font-size: ${cp}; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } .content { padding: ${Cp}; } :host(:not(:state(-with-actions))) .actions { display: none; } .actions { padding: ${_p}; border-top-style: solid; border-top-width: ${Lp}; border-top-color: ${Ep}; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; column-gap: ${Sp}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { border: 1px solid CanvasText; } :host(:disabled) .base { color: GrayText; } .actions { border-top-color: GrayText; } }`;var Mp,Tp;let Pp=class extends(q(N(Y(P(f(r,"button"),!0))))){constructor(){super(...arguments),Mp.add(this),this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer>${"before"===this.togglePosition?e(this,Mp,"m",Tp).call(this):n}<div class="content"><slot></slot></div>${"after"===this.togglePosition?e(this,Mp,"m",Tp).call(this):n}</div>`}};var Ip,Wp,Dp,Ap,Hp,Op,Bp,Fp,Vp,qp,Rp,Up;Mp=new WeakSet,Tp=function(){return s`<div class="toggle" aria-hidden="true"><slot name="toggle-icon"></slot></div>`},Pp.styles=up,t([h(".focus-ring")],Pp.prototype,"_focusRing",void 0),t([h(".state-layer")],Pp.prototype,"_stateLayer",void 0),t([m({attribute:"toggle-direction",reflect:!0})],Pp.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],Pp.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],Pp.prototype,"hideToggle",void 0),Pp=t([$("m3e-expansion-header")],Pp);let Np=Up=class extends(x(Y(M(P(r,!0))),"opening","opened","closing","closed")){constructor(){super(...arguments),Ip.add(this),Wp.set(this,Up.__nextId++),Dp.set(this,`m3e-expansion-panel-${e(this,Wp,"f")}-content`),Ap.set(this,`m3e-expansion-panel-${e(this,Wp,"f")}-header`),Hp.set(this,void 0),this.open=!1,this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}focus(e){this._header?.focus(e)}blur(){this._header?.blur()}click(){this._header?.click()}connectedCallback(){super.connectedCallback(),a(this,Hp,qe.observe(()=>{this.requestUpdate(),e(this,Ip,"m",Rp).call(this)}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Hp,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,Ip,"m",Rp).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Ip,"m",Rp).call(this)}render(){return s`<div class="base"><m3e-expansion-header id="${e(this,Ap,"f")}" toggle-direction="${this.toggleDirection}" toggle-position="${this.togglePosition}" ?hide-toggle="${this.hideToggle}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,Dp,"f")}" @click="${e(this,Ip,"m",Bp)}" @keydown="${e(this,Ip,"m",Fp)}"><div slot="toggle-icon" class="toggle"><slot name="toggle-icon">${e(this,Ip,"m",Op).call(this)}</slot></div><slot name="header"></slot></m3e-expansion-header><m3e-collapsible id="${e(this,Dp,"f")}" role="region" aria-labelledby="${e(this,Ap,"f")}" ?open="${this.open}" @opening="${e(this,Ip,"m",Vp)}" @opened="${e(this,Ip,"m",Vp)}" @closing="${e(this,Ip,"m",Vp)}" @closed="${e(this,Ip,"m",Vp)}"><div class="content"><slot></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,Ip,"m",qp)}"></slot></div></m3e-collapsible></div>`}};Wp=new WeakMap,Dp=new WeakMap,Ap=new WeakMap,Hp=new WeakMap,Ip=new WeakSet,Op=function(){return"vertical"===this.toggleDirection?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>`:"ltr"===qe.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`},Bp=function(){this.open=!this.open},Fp=function(e){switch(e.key){case"ArrowUp":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=[...t.panels].reverse(),a=e.indexOf(this);(e.find((e,t)=>!e.disabled&&t>a)??e.find((e,t)=>!e.disabled&&t<a))?._header?.focus()}else this.open=!1}break;case"ArrowDown":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=t.panels.indexOf(this);(t.panels.find((t,a)=>!t.disabled&&a>e)??t.panels.find((t,a)=>!t.disabled&&a<e))?._header?.focus()}else this.open=!0}}},Vp=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},qp=function(e){k(this,"-with-actions",g(e.target))},Rp=function(){"rtl"===qe.current?this._header?.style.setProperty("--_expansion-header-horizontal-expanded-toggle-rotation","-90deg"):this._header?.style.removeProperty("--_expansion-header-horizontal-expanded-toggle-rotation")},Np.styles=zp,Np.__nextId=0,t([h("m3e-expansion-header")],Np.prototype,"_header",void 0),t([m({type:Boolean,reflect:!0})],Np.prototype,"open",void 0),t([m({attribute:"toggle-direction",reflect:!0})],Np.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],Np.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],Np.prototype,"hideToggle",void 0),Np=Up=t([$("m3e-expansion-panel")],Np);const jp=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .close-icon, ::slotted(:not([slot])), ::slotted([slot="close-icon"]) { font-size: inherit !important; flex: none; } .close-icon, ::slotted(svg:not([slot])), ::slotted(svg[slot="close-icon"]) { width: 1em; height: 1em; } :host(:not([extended])) ::slotted([slot="label"]), .base.with-menu ::slotted([slot="label"]), .base:not(.with-menu) ::slotted([slot="close-icon"]), .base:not(.with-menu) .close-icon, :host([aria-expanded="true"]) .base.with-menu ::slotted(:not([slot])), :host([aria-expanded="false"]) .base.with-menu ::slotted([slot="close-icon"]), :host([aria-expanded="false"]) .base.with-menu .close-icon { display: none; } :host([aria-expanded="true"]) .base.with-menu { border-radius: var(--m3e-fab-menu-close-button-container-shape, ${v.shape.corner.full}); height: calc(var(--m3e-fab-menu-close-button-container-height, 3.5rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .wrapper { padding-inline-start: calc(var(--m3e-fab-menu-close-button-leading-space, 1rem) + ${v.density.calc(-3)}); padding-inline-end: calc(var(--m3e-fab-menu-close-button-trailing-space, 1rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .icon { font-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); --m3e-icon-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); } .base.with-menu { transition: height ${v.motion.spring.fastSpatial}; } .base.with-menu .wrapper { transition: padding ${v.motion.spring.fastSpatial}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base, .icon { transition: none; } .base { outline-style: solid; } :host([variant]:not(:disabled):not([disabled-interactive])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])) .label, :host([variant]:not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } } @media (prefers-reduced-motion) { .base, .base.resting, .base.pressed, .label, .icon { transition: none; } }`,Yp={small:{containerHeight:o(`calc(var(--m3e-fab-small-container-height, var(--m3e-fab-container-height, 3.5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-small-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.medium.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-small-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.medium.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-small-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.medium.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-small-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.medium.tracking}))`),iconSize:o(`calc(var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem))"),shape:o(`var(--m3e-fab-small-shape, var(--m3e-fab-shape, ${v.shape.corner.large}))`),leadingSpace:o(`calc(var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-small-icon-label-space, var(--m3e-fab-icon-label-space, 0.5rem))"),extendedLeadingSpace:o("var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem))"),extendedTrailingSpace:o("var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem))")},medium:{containerHeight:o(`calc(var(--m3e-fab-medium-container-height, var(--m3e-fab-container-height, 5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-medium-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-medium-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-medium-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-medium-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.large.tracking}))`),iconSize:o(`calc(var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem))"),shape:o(`var(--m3e-fab-medium-shape, var(--m3e-fab-shape, ${v.shape.corner.largeIncreased}))`),leadingSpace:o(`calc(var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-medium-icon-label-space, var(--m3e-fab-icon-label-space, 0.75rem))"),extendedLeadingSpace:o("var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem))"),extendedTrailingSpace:o("var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem))")},large:{containerHeight:o(`calc(var(--m3e-fab-large-container-height, var(--m3e-fab-container-height, 6rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-large-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-large-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-large-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-large-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o(`calc(var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem))"),shape:o(`var(--m3e-fab-large-shape, var(--m3e-fab-shape, ${v.shape.corner.extraLarge}))`),leadingSpace:o(`calc(var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-large-icon-label-space, var(--m3e-fab-icon-label-space, 1rem))"),extendedLeadingSpace:o("var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem))"),extendedTrailingSpace:o("var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem))")}};function Kp(e){return i`:host([size="${o(e)}"]) .base { height: ${Yp[e].containerHeight}; } :host([size="${o(e)}"]) .base { border-radius: ${Yp[e].shape}; } :host([size="${o(e)}"]) .label { font-size: ${Yp[e].labelTextFontSize}; font-weight: ${Yp[e].labelTextFontWeight}; line-height: ${Yp[e].labelTextLineHeight}; letter-spacing: ${Yp[e].labelTextTracking}; } :host([size="${o(e)}"]:not([extended])) .wrapper { padding-inline-start: ${Yp[e].leadingSpace}; padding-inline-end: ${Yp[e].trailingSpace}; } :host([size="${o(e)}"]:not([extended])) .icon { font-size: ${Yp[e].iconSize}; --m3e-icon-size: ${Yp[e].iconSize}; } :host([size="${o(e)}"][extended]) .wrapper { padding-inline-start: ${Yp[e].extendedLeadingSpace}; padding-inline-end: ${Yp[e].extendedTrailingSpace}; column-gap: ${Yp[e].iconLabelSpace}; } :host([size="${o(e)}"][extended]) .icon { font-size: ${Yp[e].extendedIconSize}; --m3e-icon-size: ${Yp[e].extendedIconSize}; }`}const Zp=[Kp("small"),Kp("medium"),Kp("large")],Gp={primary:{labelTextColor:o(`var(--m3e-primary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-primary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-primary-fab-container-color, var(--m3e-fab-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-primary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},secondary:{labelTextColor:o(`var(--m3e-secondary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondary}))`),iconColor:o(`var(--m3e-secondary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondary}))`),containerColor:o(`var(--m3e-secondary-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondary}))`),containerElevation:o(`var(--m3e-secondary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},tertiary:{labelTextColor:o(`var(--m3e-tertiary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiary}))`),iconColor:o(`var(--m3e-tertiary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiary}))`),containerColor:o(`var(--m3e-tertiary-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiary}))`),containerElevation:o(`var(--m3e-tertiary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"primary-container":{labelTextColor:o(`var(--m3e-primary-container-fab-label-text-color, var(--m3e-primary-container-fab-label-text-color, ${v.color.onPrimaryContainer}))`),iconColor:o(`var(--m3e-primary-container-fab-icon-color, var(--m3e-primary-container-fab-icon-color, ${v.color.onPrimaryContainer}))`),containerColor:o(`var(--m3e-primary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.primaryContainer}))`),containerElevation:o(`var(--m3e-primary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"secondary-container":{labelTextColor:o(`var(--m3e-secondary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-secondary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-secondary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-secondary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"tertiary-container":{labelTextColor:o(`var(--m3e-tertiary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiaryContainer}))`),iconColor:o(`var(--m3e-tertiary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiaryContainer}))`),containerColor:o(`var(--m3e-tertiary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiaryContainer}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},surface:{labelTextColor:o(`var(--m3e-surface-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-surface-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-surface-fab-container-color, var(--m3e-fab-container-color, ${v.color.surfaceContainerHigh}))`),containerElevation:o(`var(--m3e-surface-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),loweredContainerColor:o(`var(--m3e-surface-fab-lowered-container-color, var(--m3e-fab-lowered-container-color, ${v.color.surfaceContainerLow}))`),disabled:{containerColor:o(`var(--m3e-surface-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-surface-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-surface-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-surface-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-surface-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-surface-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-surface-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-surface-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-surface-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-surface-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}}};function Xp(e){return i`:host([variant="${o(e)}"]:not([lowered])) .base { background-color: ${Gp[e].containerColor}; --m3e-elevation-level: ${Gp[e].containerElevation}; --m3e-elevation-hover-level: ${Gp[e].hover.containerElevation}; --m3e-elevation-focus-level: ${Gp[e].focus.containerElevation}; --m3e-elevation-pressed-level: ${Gp[e].pressed.containerElevation}; } :host([variant="${o(e)}"][lowered]) .base { background-color: ${Gp[e].loweredContainerColor??Gp[e].containerColor}; --m3e-elevation-level: ${Gp[e].loweredContainerElevation}; --m3e-elevation-hover-level: ${Gp[e].hover.loweredContainerElevation}; --m3e-elevation-focus-level: ${Gp[e].focus.loweredContainerElevation}; --m3e-elevation-pressed-level: ${Gp[e].pressed.loweredContainerElevation}; } :host([variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Gp[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Gp[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Gp[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Gp[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Gp[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Gp[e].pressed.stateLayerOpacity}; } :host([variant="${o(e)}"]) .label { color: ${Gp[e].labelTextColor}; } :host([variant="${o(e)}"]:focus) .label { color: ${Gp[e].focus.labelTextColor}; } :host([variant="${o(e)}"]:hover) .label { color: ${Gp[e].hover.labelTextColor}; } :host([variant="${o(e)}"]) .base.pressed .label { color: ${Gp[e].pressed.labelTextColor}; } :host([variant="${o(e)}"]) .icon { color: ${Gp[e].iconColor}; } :host([variant="${o(e)}"]:focus) .icon { color: ${Gp[e].focus.iconColor}; } :host([variant="${o(e)}"]:hover) .icon { color: ${Gp[e].hover.iconColor}; } :host([variant="${o(e)}"]) .base.pressed .icon { color: ${Gp[e].pressed.iconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Gp[e].disabled.containerElevation}; background-color: color-mix( in srgb, ${Gp[e].disabled.containerColor} ${Gp[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${Gp[e].disabled.labelTextColor} ${Gp[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Gp[e].disabled.iconColor} ${Gp[e].disabled.iconOpacity}, transparent ); }`}const Jp=[Xp("primary"),Xp("secondary"),Xp("tertiary"),Xp("primary-container"),Xp("secondary-container"),Xp("tertiary-container"),Xp("surface")];var Qp,eu;let tu=class extends(q(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),Qp.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new Z(this,{isPressedKey:e=>" "===e,callback:e=>{this.disabled||this.disabledInteractive||(this._base?.classList.toggle("pressed",e),this._base?.classList.toggle("resting",!e))}})}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1)}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?centered="${!this.extended}" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper"><slot class="icon" aria-hidden="true" @slotchange="${e(this,Qp,"m",eu)}"></slot><slot class="icon" aria-hidden="true" name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot><div class="label"><slot name="label" @slotchange="${e(this,Qp,"m",eu)}"></slot></div></div></div>`}};var au,ou,iu;Qp=new WeakSet,eu=function(){this._base?.classList.toggle("with-menu",null!==this.querySelector("m3e-fab-menu-trigger"))},tu.styles=[Zp,Jp,jp],t([h(".base")],tu.prototype,"_base",void 0),t([h(".elevation")],tu.prototype,"_elevation",void 0),t([h(".focus-ring")],tu.prototype,"_focusRing",void 0),t([h(".state-layer")],tu.prototype,"_stateLayer",void 0),t([h(".ripple")],tu.prototype,"_ripple",void 0),t([m({reflect:!0})],tu.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],tu.prototype,"lowered",void 0),t([m({reflect:!0})],tu.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],tu.prototype,"extended",void 0),tu=t([$("m3e-fab")],tu);let ru=class extends(q(R(Y(P(f(r,"menuitem"),!0))))){constructor(){super(...arguments),au.add(this),ou.set(this,t=>e(this,au,"m",iu).call(this,t))}get menu(){return this.closest("m3e-fab-menu")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,ou,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,ou,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper"><slot class="icon" name="icon" aria-hidden="true"></slot><div class="label"><slot></slot></div></div></div>`}};var su,nu,lu,cu,du,hu,mu,pu,uu,vu,bu,fu,gu,yu;ou=new WeakMap,au=new WeakSet,iu=function(e){e.defaultPrevented||this.menu?.hide(!0)},ru.styles=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; height: var(--m3e-fab-menu-item-height, 3.5rem); font-size: var(--m3e-fab-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-fab-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-fab-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-fab-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); border-radius: var(--m3e-fab-menu-item-shape, ${v.shape.corner.full}); } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: var(--_fab-menu-item-color); } :host(:not(:disabled)) .base { background-color: var(--_fab-menu-item-container-color); --m3e-state-layer-hover-color: var(--_fab-menu-background-hover-color); --m3e-state-layer-focus-color: var(--_fab-menu-background-focus-color); --m3e-ripple-color: var(--_fab-menu-ripple-color); } :host(:disabled) .base { background-color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-container-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-container-opacity, 10%), transparent ); } :host(:disabled) .label, :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-opacity, 38%), transparent ); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-fab-menu-item-leading-space, 1.5rem); padding-inline-end: var(--m3e-fab-menu-item-trailing-space, 1.5rem); column-gap: var(--m3e-fab-menu-item-spacing, 0.5rem); } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { font-size: var(--m3e-fab-menu-item-icon-size, 1.5rem); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } ::slotted([slot="icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]) { width: 1em; height: 1em; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (prefers-reduced-motion) { .base, .label, .icon { transition: none; } } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:not(:disabled)) .base { background-color: Menu; } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: MenuText; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } }`,t([h(".elevation")],ru.prototype,"_elevation",void 0),t([h(".focus-ring")],ru.prototype,"_focusRing",void 0),t([h(".state-layer")],ru.prototype,"_stateLayer",void 0),t([h(".ripple")],ru.prototype,"_ripple",void 0),ru=t([$("m3e-fab-menu-item")],ru);let $u=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),su.add(this),nu.set(this,void 0),lu.set(this,void 0),cu.set(this,void 0),du.set(this,(new Oe).withWrap().withHomeAndEnd().withVerticalOrientation()),hu.set(this,t=>e(this,su,"m",bu).call(this,t)),mu.set(this,t=>e(this,su,"m",fu).call(this,t)),pu.set(this,new ve(this,{target:null,callback:()=>this.hide()})),uu.set(this,t=>{"closed"===t.newState?(e(this,cu,"f")?.call(this),a(this,cu,void 0,"f")):setTimeout(()=>{e(this,du,"f").setActiveItem(e(this,du,"f").items.find(e=>!e.disabled))},40)}),this.variant="primary"}get isOpen(){return void 0!==e(this,lu,"f")}async show(t){e(this,lu,"f")&&e(this,lu,"f")!==t&&this.hide(),e(this,cu,"f")?.call(this),a(this,cu,await Re(this,t,{position:"top-end",inline:!0,shift:"main",flip:!0,offset:8},(e,t,a)=>{k(this,"-right",a.includes("end")),k(this,"-left",a.includes("start")),"rtl"===qe.current?(this.style.right=window.innerWidth-e-this.clientWidth+"px",this.style.left=""):(this.style.left=`${e}px`,this.style.right=""),this.style.top=`${t}px`}),"f"),this.showPopover(),a(this,lu,t,"f"),e(this,lu,"f").ariaExpanded="true",e(this,pu,"f").observe(e(this,lu,"f")),e(this,su,"m",gu).call(this)}hide(t=!1){e(this,cu,"f")?.call(this),a(this,cu,void 0,"f"),e(this,lu,"f")&&(e(this,lu,"f").ariaExpanded="false",t&&e(this,lu,"f").focus(),e(this,su,"m",yu).call(this),e(this,pu,"f").unobserve(e(this,lu,"f")),a(this,lu,void 0,"f")),this.hidePopover()}async toggle(t){e(this,lu,"f")?this.hide():await this.show(t)}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,hu,"f")),this.addEventListener("toggle",e(this,uu,"f")),document.addEventListener("click",e(this,mu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,hu,"f")),this.removeEventListener("toggle",e(this,uu,"f")),document.removeEventListener("click",e(this,mu,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,su,"m",vu)}"></slot></div>`}};nu=new WeakMap,lu=new WeakMap,cu=new WeakMap,du=new WeakMap,hu=new WeakMap,mu=new WeakMap,pu=new WeakMap,uu=new WeakMap,su=new WeakSet,vu=function(){const{added:t}=e(this,du,"f").setItems([...this.querySelectorAll("m3e-fab-menu-item")]);e(this,du,"f").activeItem||e(this,du,"f").updateActiveItem(t.find(e=>!e.disabled))},bu=function(t){switch(t.key){case"Tab":this.hide();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,du,"f").onKeyDown(t)}},fu=function(t){t.composedPath().some(t=>t instanceof ru||t===e(this,lu,"f"))||this.hide()},gu=function(){const t=e(this,lu,"f")?.closest("m3e-fab");t&&(a(this,nu,t.tabIndex,"f"),t.addEventListener("keydown",e(this,hu,"f")),e(this,du,"f").setItems([...e(this,du,"f").items,t]))},yu=function(){const t=e(this,lu,"f")?.closest("m3e-fab");t&&(void 0!==e(this,nu,"f")&&(t.tabIndex=e(this,nu,"f")),t.removeEventListener("keydown",e(this,hu,"f")),e(this,du,"f").setItems([...e(this,du,"f").items.filter(e=>e!==t)]))},$u.styles=i`:host { position: absolute; flex-direction: column; row-gap: var(--m3e-fab-menu-spacing, 0.25rem); padding: unset; margin: unset; border: unset; overflow: visible; max-width: var(--m3e-fab-menu-max-width, 17.5rem); opacity: 0; background-color: transparent; display: none; } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.spring.fastEffects}, \n transform ${v.motion.spring.fastSpatial},\n overlay ${v.motion.spring.fastEffects} allow-discrete,\n display ${v.motion.spring.fastEffects} allow-discrete`)}; } .base { display: contents; } :host([variant="primary"]) .base { --_fab-menu-item-color: var(--m3e-primary-fab-color, ${v.color.onPrimaryContainer}); --_fab-menu-item-container-color: var(--m3e-primary-fab-container-color, ${v.color.primaryContainer}); --_fab-menu-background-hover-color: var(--m3e-primary-fab-hover-color, ${v.color.onPrimaryContainer}); --_fab-menu-background-focus-color: var(--m3e-primary-fab-focus-color, ${v.color.onPrimaryContainer}); --_fab-menu-ripple-color: var(--m3e-primary-fab-ripple-color, ${v.color.onPrimaryContainer}); } :host([variant="secondary"]) .base { --_fab-menu-item-color: var(--m3e-secondary-fab-color, ${v.color.onSecondaryContainer}); --_fab-menu-item-container-color: var( --m3e-secondary-fab-container-color, ${v.color.secondaryContainer} ); --_fab-menu-background-hover-color: var( --m3e-secondary-fab-hover-color, ${v.color.onSecondaryContainer} ); --_fab-menu-background-focus-color: var( --m3e-secondary-fab-focus-color, ${v.color.onSecondaryContainer} ); --_fab-menu-ripple-color: var(--m3e-secondary-fab-ripple-color, ${v.color.onSecondaryContainer}); } :host([variant="tertiary"]) .base { --_fab-menu-item-color: var(--m3e-tertiary-fab-color, ${v.color.onTertiaryContainer}); --_fab-menu-item-container-color: var(--m3e-tertiary-fab-container-color, ${v.color.tertiaryContainer}); --_fab-menu-background-hover-color: var(--m3e-tertiary-fab-hover-color, ${v.color.onTertiaryContainer}); --_fab-menu-background-focus-color: var(--m3e-tertiary-fab-focus-color, ${v.color.onTertiaryContainer}); --_fab-menu-ripple-color: var(--m3e-tertiary-fab-ripple-color, ${v.color.onTertiaryContainer}); } :host { transform: scaleX(0.8); } :host(:state(-left)) { align-items: flex-start; transform-origin: left; } :host(:state(-right)) { align-items: flex-end; transform-origin: right; } :host(:popover-open) { transform: scaleX(1); display: inline-flex; opacity: 1; } :host::backdrop { background-color: transparent; } @starting-style { :host(:popover-open) { opacity: 0; } :host(:popover-open) { transform: scaleX(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { border-radius: ${v.shape.corner.medium}; outline: 1px solid MenuText; background-color: Menu; } }`,t([m({reflect:!0})],$u.prototype,"variant",void 0),$u=t([$("m3e-fab-menu")],$u);let xu=class extends(b(z)){get menu(){return this.control instanceof $u?this.control:null}attach(e){super.attach(e),this.parentElement&&e instanceof $u&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",e.id&&Ie(this.parentElement,"aria-controls",e.id))}detach(){this.parentElement&&(this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null,this.control?.id&&We(this.parentElement,"aria-controls",this.control.id)),super.detach()}_onClick(){this.parentElement&&this.menu?.toggle(this.parentElement)}};xu=t([$("m3e-fab-menu-trigger")],xu);
|
|
42
|
+
var $i,xi,wi,ki,Ci,Si,_i,Li,Ei,zi;vi=new WeakSet,bi=function(t){const a=this.activeDate.getFullYear()===t.date.getFullYear()&&this.activeDate.getMonth()===t.date.getMonth(),o=this.date?.getFullYear()===t.date.getFullYear()&&this.date?.getMonth()===t.date.getMonth(),i=this.today.getFullYear()===t.date.getFullYear()&&this.today.getMonth()===t.date.getMonth(),r=this.minDate&&(t.date.getFullYear()<this.minDate.getFullYear()||t.date.getFullYear()===this.minDate.getFullYear()&&t.date.getMonth()<this.minDate.getMonth())||this.maxDate&&(t.date.getFullYear()>this.maxDate.getFullYear()||t.date.getFullYear()===this.maxDate.getFullYear()&&t.date.getMonth()>this.maxDate.getMonth()),n=`month-${t.date.getMonth()}`;return s`<td role="gridcell" class="${Ne({current:i,selected:o,active:a})}"><div id="${n}" class="item" role="button" tabindex="${a?"0":"-1"}" data-value="${t.date.toISOString()}" aria-disabled="${je(r||void 0)}" aria-current="${je(i?"date":void 0)}" aria-pressed="${o}" @click="${e(this,vi,"m",fi)}" @keydown="${e(this,vi,"m",gi)}"><m3e-focus-ring class="focus-ring" for="${n}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${n}" ?disable-hover="${r}"></m3e-state-layer><m3e-ripple class="ripple" centered for="${n}" ?disabled="${r}"></m3e-ripple><div class="touch"></div><span class="visually-hidden">${t.long}</span> <span aria-hidden="true">${t.narrow}</span></div></td>`},fi=function(e){const t=e.currentTarget;"true"!==t.ariaDisabled&&t.dataset.value&&(this.activeDate=Jo(new Date(t.dataset.value),this.minDate,this.maxDate),this.dispatchEvent(new Event("change",{bubbles:!1})))},gi=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=No(t,"rtl"===Ve.current?1:-1);break;case"ArrowRight":case"Right":t=No(t,"rtl"===Ve.current?-1:1);break;case"ArrowUp":case"Up":t=No(t,-4);break;case"ArrowDown":case"Down":t=No(t,4);break;case"Home":t=No(t,-t.getMonth());break;case"End":t=No(t,11-t.getMonth());break;case"PageUp":t=jo(t,e.altKey?-10:-1);break;case"PageDown":t=jo(t,e.altKey?10:1);break;default:return}e.preventDefault(),this._changeActiveDate(t)},yi.styles=[ei.styles,i`.item { height: 2.25rem; } .touch { width: 100%; } th { height: 1rem; } td { padding-inline: 0.375rem; } tbody { font-size: var(--m3e-calendar-item-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-calendar-item-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-calendar-item-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-calendar-item-tracking, ${v.typescale.standard.body.medium.tracking}); }`],yi=t([$("m3e-year-view")],yi);let Mi=class extends r{constructor(){super(...arguments),$i.add(this),xi.set(this,void 0),this._today=new Date,this._activeView="month",this._activeDate=new Date,this.startView="month",this.date=null,this.startAt=null,this.minDate=null,this.maxDate=null,this.rangeStart=null,this.rangeEnd=null,this.blackoutDates=null,this.specialDates=null,this.previousMonthLabel="Previous month",this.previousYearLabel="Previous year",this.previousMultiYearLabel="Previous 24 years",this.nextMonthLabel="Next month",this.nextYearLabel="Next year",this.nextMultiYearLabel="Next 24 years"}get periodLabel(){switch(this._activeView){case"month":return new Intl.DateTimeFormat(navigator.language,{month:"short",year:"numeric"}).format(this._activeDate);case"year":return new Intl.DateTimeFormat(navigator.language,{year:"numeric"}).format(new Date(this._activeDate.getFullYear(),0,1));case"multi-year":return new Intl.DateTimeFormat(navigator.language,{year:"numeric"}).formatRange(new Date(Go(this._activeDate,this.minDate,this.maxDate),0,1),new Date(Xo(this._activeDate,this.minDate,this.maxDate),0,1))}}get canMovePreviousPeriod(){if(!this.minDate)return!0;switch(this._activeView){case"month":return new Date(this._activeDate.getFullYear(),this._activeDate.getMonth(),0)>=this.minDate;case"year":return new Date(this._activeDate.getFullYear()-1,12,1)>=this.minDate;case"multi-year":return new Date(Go(this._activeDate,this.minDate,this.maxDate)-1,12,1)>=this.minDate}}get canMoveNextPeriod(){if(!this.maxDate)return!0;switch(this._activeView){case"month":return new Date(this._activeDate.getFullYear(),this._activeDate.getMonth()+1,1)<=this.maxDate;case"year":return new Date(this._activeDate.getFullYear()+1,1,1)<=this.maxDate;case"multi-year":return new Date(Xo(this._activeDate,this.minDate,this.maxDate)+1,12,1)<=this.maxDate}}async focusActiveCell(){this.isUpdatePending&&await this.updateComplete,await(this._view?.focusActiveCell())}updateTodayDate(){this._today=new Date}async movePreviousPeriod(){if(!this.canMovePreviousPeriod)return;if(S())return void(this._activeDate=e(this,$i,"m",Ei).call(this,this._activeView));await e(this,xi,"f");const t=[...this.shadowRoot?.querySelectorAll(`.row.${this._activeView} .view`)??[]];3==t.length&&(a(this,xi,new Promise(a=>{t[0].addEventListener("transitionend",()=>{this._activeDate=e(this,$i,"m",Ei).call(this,this._activeView),t.forEach(e=>e.classList.add("no-animate")),t[1].classList.remove("after"),t[0].classList.add("before"),setTimeout(()=>{t.forEach(e=>e.classList.remove("no-animate")),a()})},{once:!0})}),"f"),this._body.style.overflow="hidden",t[1].classList.add("after"),t[0].classList.remove("before"),await e(this,xi,"f"),this._body.style.overflow="")}async moveNextPeriod(){if(!this.canMoveNextPeriod)return;if(S())return void(this._activeDate=e(this,$i,"m",zi).call(this,this._activeView));await e(this,xi,"f");const t=[...this.shadowRoot?.querySelectorAll(`.row.${this._activeView} .view`)??[]];3==t.length&&(a(this,xi,new Promise(a=>{t[2].addEventListener("transitionend",()=>{this._activeDate=e(this,$i,"m",zi).call(this,this._activeView),t.forEach(e=>e.classList.add("no-animate")),t[1].classList.remove("before"),t[2].classList.add("after"),setTimeout(()=>{t.forEach(e=>e.classList.remove("no-animate")),a()})},{once:!0})}),"f"),this._body.style.overflow="hidden",t[1].classList.add("before"),t[2].classList.remove("after"),await e(this,xi,"f"),this._body.style.overflow="")}async togglePeriod(){await e(this,xi,"f"),this._activeView="month"===this._activeView?"multi-year":"month",await this.focusActiveCell()}willUpdate(e){super.willUpdate(e),e.has("date")&&(this._activeDate=new Date(this.date??this._today)),e.has("startAt")&&(this._activeDate=new Date(this.startAt??this.date??this._today)),e.has("startView")&&(this._activeView=this.startView)}updated(e){super.updated(e),this._view instanceof ci&&(e.has("specialDates")||e.has("blackoutDates"))&&this.shadowRoot?.querySelectorAll("m3e-month-view").forEach(e=>{e.specialDates=this.specialDates,e.blackoutDates=this.blackoutDates})}render(){return s`<div class="base"><slot name="header">${e(this,$i,"m",wi).call(this)}</slot><div class="body ${this._activeView}"><div class="row multi-year">${e(this,$i,"m",ki).call(this,"multi-year",-1)}${e(this,$i,"m",ki).call(this,"multi-year",0)}${e(this,$i,"m",ki).call(this,"multi-year",1)}</div><div class="row year">${e(this,$i,"m",ki).call(this,"year",-1)}${e(this,$i,"m",ki).call(this,"year",0)}${e(this,$i,"m",ki).call(this,"year",1)}</div><div class="row month">${e(this,$i,"m",ki).call(this,"month",-1)}${e(this,$i,"m",ki).call(this,"month",0)}${e(this,$i,"m",ki).call(this,"month",1)}</div></div></div>`}};xi=new WeakMap,$i=new WeakSet,wi=function(){return s`<div class="header"><m3e-button @click="${this.togglePeriod}">${this.periodLabel} <svg class="${Ne({rotate:"month"!==this._activeView})}" slot="trailing-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></m3e-button><div class="spacer"></div><m3e-icon-button ?disabled="${!this.canMovePreviousPeriod}" @click="${this.movePreviousPeriod}" aria-label="${"month"===this._activeView?this.previousMonthLabel:"year"===this._activeView?this.previousYearLabel:this.previousMultiYearLabel}">${"ltr"===Ve.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`}</m3e-icon-button><m3e-icon-button ?disabled="${!this.canMoveNextPeriod}" @click="${this.moveNextPeriod}" aria-label="${"month"===this._activeView?this.nextMonthLabel:"year"===this._activeView?this.nextYearLabel:this.nextMultiYearLabel}">${"ltr"===Ve.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`}</m3e-icon-button></div>`},ki=function(t,a){const o=a<0?e(this,$i,"m",Ei).call(this,t):a>0?e(this,$i,"m",zi).call(this,t):new Date(this._activeDate);switch(t){case"month":return s`<m3e-month-view class="view ${Ne({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${je(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" range-start="${je(this.rangeStart?.toISOString())}" range-end="${je(this.rangeEnd?.toISOString())}" @active-change="${0===a?e(this,$i,"m",Li):void 0}" @change="${0===a?e(this,$i,"m",Ci):void 0}"></m3e-month-view>`;case"year":return s`<m3e-year-view class="view ${Ne({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${je(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" @active-change="${0===a?e(this,$i,"m",Li):void 0}" @change="${0===a?e(this,$i,"m",Si):void 0}"></m3e-year-view>`;case"multi-year":return s`<m3e-multi-year-view class="view ${Ne({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${je(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" @active-change="${0===a?e(this,$i,"m",Li):void 0}" @change="${0===a?e(this,$i,"m",_i):void 0}"></m3e-multi-year-view>`}},Ci=function(e){const t=e.currentTarget;this._activeDate=new Date(t.activeDate),this.rangeStart=t.rangeStart,this.rangeEnd=t.rangeEnd,this.date=new Date(this._activeDate),this.dispatchEvent(new Event("change",{bubbles:!0}))},Si=async function(e){this._activeDate=new Date(e.currentTarget.activeDate),this._activeView="month",this.focusActiveCell()},_i=function(e){this._activeDate=new Date(e.currentTarget.activeDate),this._activeView="year",this.focusActiveCell()},Li=async function(e){this._view instanceof ci&&(this._view._suppressFocusHighlight=!1),this._activeDate=new Date(e.currentTarget.activeDate),await this.focusActiveCell(),this._view instanceof ci&&(this._view._suppressFocusHighlight=!1)},Ei=function(e){const t=new Date(this._activeDate);switch(e){case"month":for(t.setMonth(this._activeDate.getMonth()-1);t.getMonth()===this._activeDate.getMonth();)t.setDate(t.getDate()-1);break;case"year":t.setFullYear(this._activeDate.getFullYear()-1);break;case"multi-year":t.setDate(1),t.setFullYear(Go(this._activeDate,this.minDate,this.maxDate)-1)}return t},zi=function(e){const t=new Date(this._activeDate);switch(e){case"month":for(t.setMonth(this._activeDate.getMonth()+1);t.getMonth()===this._activeDate.getMonth();)t.setDate(t.getDate()+1);break;case"year":t.setFullYear(this._activeDate.getFullYear()+1);break;case"multi-year":t.setDate(1),t.setFullYear(Xo(this._activeDate,this.minDate,this.maxDate)+1)}return t},Mi.styles=i`:host { display: inline-block; vertical-align: top; width: fit-content; height: fit-content; } .base { display: flex; flex-direction: column; width: fit-content; overflow: hidden; padding: var(--m3e-calendar-padding, 0.5rem); background-color: var(--m3e-calendar-container-color); box-shadow: var(--m3e-calendar-container-elevation); border-radius: var(--m3e-calendar-container-shape); } .header { display: flex; align-items: center; --m3e-text-button-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-hover-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-focus-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-pressed-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); } .spacer { flex: 1 1 auto; } svg { transition: transform ${v.motion.spring.fastEffects}; } svg.rotate { transform: rotate(-180deg); } .body { position: relative; } .view:not(.no-animate) { transition: ${o(`margin var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard},\n visibility var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .view.before, .view.after { visibility: hidden; position: absolute; } .view.before { margin-inline-start: -100%; } .view.after { margin-inline-start: 100%; } .view:not(.before):not(.after) { visibility: visible; position: relative; left: 0; margin-inline-start: 0; } .row { opacity: 1; transform: translateY(0); } .row.multi-year { transition: ${o(`transform var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete,\n opacity var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .row:not(.multi-year) { transition: ${o(`opacity var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .body.month > .row:not(.month), .body.year > .row:not(.year), .body.multi-year > .row:not(.multi-year) { visibility: hidden; position: absolute; transform: translateY(-10%); opacity: 0; } .body.month > .row:not(.month) .view:not(.before):not(.after), .body.year > .row:not(.year) .view:not(.before):not(.after), .body.multi-year > .row:not(.multi-year) .view:not(.before):not(.after) { visibility: hidden; transition: none; } @media (prefers-reduced-motion) { .row:not(.multi-year), .row.multi-year, .view:not(.no-animate), svg { transition: none; } }`,t([u()],Mi.prototype,"_today",void 0),t([u()],Mi.prototype,"_activeView",void 0),t([u()],Mi.prototype,"_activeDate",void 0),t([h(".active")],Mi.prototype,"_view",void 0),t([h(".body")],Mi.prototype,"_body",void 0),t([m({attribute:"start-view"})],Mi.prototype,"startView",void 0),t([m({converter:J})],Mi.prototype,"date",void 0),t([m({attribute:"start-at",converter:J})],Mi.prototype,"startAt",void 0),t([m({attribute:"min-date",converter:J})],Mi.prototype,"minDate",void 0),t([m({attribute:"max-date",converter:J})],Mi.prototype,"maxDate",void 0),t([m({attribute:"range-start",converter:J})],Mi.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],Mi.prototype,"rangeEnd",void 0),t([m({attribute:!1})],Mi.prototype,"blackoutDates",void 0),t([m({attribute:!1})],Mi.prototype,"specialDates",void 0),t([m({attribute:"previous-month-label"})],Mi.prototype,"previousMonthLabel",void 0),t([m({attribute:"previous-year-label"})],Mi.prototype,"previousYearLabel",void 0),t([m({attribute:"previous-multi-year-label"})],Mi.prototype,"previousMultiYearLabel",void 0),t([m({attribute:"next-month-label"})],Mi.prototype,"nextMonthLabel",void 0),t([m({attribute:"next-year-label"})],Mi.prototype,"nextYearLabel",void 0),t([m({attribute:"next-multi-year-label"})],Mi.prototype,"nextMultiYearLabel",void 0),Mi=t([$("m3e-calendar")],Mi);const Ti=o("var(--m3e-card-padding, 1rem)"),Pi=o(`var(--m3e-card-shape, ${v.shape.corner.medium});`),Ii={filled:{textColor:o(`var(--m3e-filled-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-filled-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerHighest}))`),containerElevation:o(`var(--m3e-filled-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),disabled:{textColor:o(`var(--m3e-filled-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-filled-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-filled-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-filled-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surfaceVariant}))`),containerElevation:o(`var(--m3e-filled-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-filled-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-filled-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-filled-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-filled-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`)},focus:{textColor:o(`var(--m3e-filled-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`)},pressed:{textColor:o(`var(--m3e-filled-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`)}},elevated:{textColor:o(`var(--m3e-elevated-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-elevated-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level1}))`),disabled:{textColor:o(`var(--m3e-elevated-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-elevated-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-elevated-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-elevated-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-elevated-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level1}))`),containerElevationColor:o(`var(--m3e-elevated-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-elevated-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-elevated-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-elevated-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level2}))`)},focus:{textColor:o(`var(--m3e-elevated-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level1}))`)},pressed:{textColor:o(`var(--m3e-elevated-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level1}))`)}},outlined:{textColor:o(`var(--m3e-outlined-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-outlined-card-container-color, var(--m3e-card-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-outlined-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-outline-color, var(--m3e-card-outline-color, ${v.color.outlineVariant}))`),outlineThickness:o("var(--m3e-outlined-card-outline-thickness, var(--m3e-card-outline-thickness, 1px))"),disabled:{textColor:o(`var(--m3e-outlined-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-outlined-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-outlined-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerElevation:o(`var(--m3e-outlined-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-outlined-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-outlined-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-card-disabled-outline-color, var(--m3e-card-disabled-outline-color, ${v.color.outline}))`),outlineOpacity:o("var(--m3e-outlined-card-disabled-outline-opacity, var(--m3e-card-disabled-outline-opacity, 12%))")},hover:{textColor:o(`var(--m3e-outlined-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`),outlineColor:o(`var(--m3e-outlined-card-hover-outline-color, var(--m3e-card-hover-outline-color, ${v.color.outlineVariant}))`)},focus:{textColor:o(`var(--m3e-outlined-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-focus-outline-color, var(--m3e-card-focus-outline-color, ${v.color.onSurface}))`)},pressed:{textColor:o(`var(--m3e-outlined-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-pressed-outline-color, var(--m3e-card-pressed-outline-color, ${v.color.outlineVariant}))`)}}},Wi=i`:host { outline: none; } :host(:not([inline])) { display: block; } :host(:not([inline])) .base { display: flex; } :host([inline]) { display: inline-block; vertical-align: middle; } :host([inline]) .base { display: inline-flex; } .base { width: 100%; height: 100%; position: relative; box-sizing: border-box; border-radius: ${Pi}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host([actionable]) { user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([actionable]:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([actionable][disabled-interactive]) { cursor: not-allowed; } :host(:not([actionable])) .focus-ring, :host(:not([actionable])) .state-layer, :host(:not([actionable])) .ripple { display: none; } :host([variant="outlined"]) .base { border-style: solid; } ::slotted([slot="content"]) { flex: 1 1 auto; } ::slotted(img), ::slotted(video) { inset: 0; object-fit: cover; } ::slotted(img[slot="header"]), ::slotted(video[slot="header"]) { border-radius: ${Pi}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } ::slotted([slot="header"]), ::slotted([slot="actions"]), ::slotted([slot="footer"]) { flex: none; display: flex; align-items: center; } :host([orientation="vertical"]) .base, :host([orientation="horizontal"]) ::slotted([slot="header"]), :host([orientation="horizontal"]) ::slotted([slot="actions"]), :host([orientation="horizontal"]) ::slotted([slot="footer"]) { flex-direction: column; } :host([orientation="horizontal"]) .base, :host([orientation="vertical"]) ::slotted([slot="header"]), :host([orientation="vertical"]) ::slotted([slot="actions"]), :host([orientation="vertical"]) ::slotted([slot="footer"]) { flex-direction: row; } :host([orientation="horizontal"]) ::slotted(img), :host([orientation="horizontal"]) ::slotted(video) { aspect-ratio: 16 / 9; } .has-content:not(.has-default) slot[name="content"], .has-content.has-default slot:not([name]) { display: inherit; flex-direction: inherit; flex: 1 1 auto; } .has-header slot[name="header"], .has-actions slot[name="actions"], .has-footer slot[name="footer"] { display: inherit; flex-direction: inherit; flex: none; } :host([orientation="vertical"]) .has-content:not(.has-default) slot[name="content"] { margin-inline: ${Ti}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-block-start: ${Ti}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-block-end: ${Ti}; } :host([orientation="horizontal"]) .has-content:not(.has-default) slot[name="content"] { margin-block: ${Ti}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-inline-start: ${Ti}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-inline-end: ${Ti}; } :host([orientation="vertical"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline: ${Ti}; margin-block-start: ${Ti}; } :host([orientation="horizontal"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline-start: ${Ti}; margin-block: ${Ti}; } .has-actions slot[name="actions"] { margin-inline: ${Ti}; margin-block: ${Ti}; } :host([orientation="vertical"]) .has-footer slot[name="footer"] { margin-inline: ${Ti}; margin-block-end: ${Ti}; } :host([orientation="horizontal"]) .has-footer slot[name="footer"] { margin-block: ${Ti}; margin-inline-end: ${Ti}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base { transition: none; } :host([variant]) .base { border-style: solid; border-color: CanvasText; border-width: ${Ii.outlined.outlineThickness??o("unset")}; } :host([actionable][variant]:disabled) .base, :host([actionable][variant][disabled-interactive]) .base { color: GrayText; border-color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`;function Di(e){return i`:host([variant="${o(e)}"]) .base { background-color: ${Ii[e].containerColor??o("unset")}; box-shadow: ${Ii[e].containerElevation??o("unset")}; border-width: ${Ii[e].outlineThickness??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Ii[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Ii[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Ii[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Ii[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Ii[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Ii[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Ii[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Ii[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Ii[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Ii[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"]) .base { border-color: ${Ii[e].outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus .base) { border-color: ${Ii[e].focus.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover .base) { border-color: ${Ii[e].hover.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { border-color: ${Ii[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]) .base { color: ${Ii[e].textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus) .base { color: ${Ii[e].focus.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover) .base { color: ${Ii[e].hover.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { color: ${Ii[e].pressed.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) .base, :host([actionable][variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Ii[e].disabled.containerElevation??o("unset")}; --m3e-elevation-color: color-mix( in srgb, ${Ii[e].disabled.containerElevationColor} ${Ii[e].disabled.containerElevationOpacity}, transparent ); color: color-mix( in srgb, ${Ii[e].disabled.textColor} ${Ii[e].disabled.textOpacity}, transparent ); background-color: ${Ii[e].disabled.containerColor&&Ii[e].disabled.containerOpacity?o(`color-mix(\n in srgb,\n ${Ii[e].disabled.containerColor} ${Ii[e].disabled.containerOpacity},\n transparent\n )`):o("unset")}; border-color: ${Ii[e].disabled.outlineColor&&Ii[e].disabled.outlineOpacity?o(`color-mix(\n in srgb,\n ${Ii[e].disabled.outlineColor} ${Ii[e].disabled.outlineOpacity},\n transparent\n )`):o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) ::slotted(img), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(img), :host([actionable][variant="${o(e)}"]:disabled) ::slotted(video), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(video) { opacity: ${Ii[e].disabled.imageOpacity}; }`}const Ai=[Di("filled"),Di("elevated"),Di("outlined")];var Hi,Oi,Bi,Fi,qi,Vi,Ri,Ui;let Ni=class extends(V(R(U(N(j(Y(P(r),!0))))))){constructor(){super(),Hi.add(this),Oi.set(this,t=>e(this,Hi,"m",Ui).call(this,t)),this.inline=!1,this.actionable=!1,this.variant="filled",this.orientation="vertical",new Z(this,{isPressedKey:e=>" "===e,callback:e=>{!this.actionable||this.disabled||this.disabledInteractive||this._base?.classList.toggle("pressed",e)}})}connectedCallback(){this.hasAttribute("actionable")&&(this.role="button"),super.connectedCallback(),this.addEventListener("click",e(this,Oi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this.removeEventListener("click",e(this,Oi,"f"))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${!this.actionable||this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-ripple class="ripple" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-ripple>${this[G]()}<slot name="header" @slotchange="${e(this,Hi,"m",Bi)}"></slot><slot name="content" @slotchange="${e(this,Hi,"m",Fi)}"><slot @slotchange="${e(this,Hi,"m",qi)}"></slot></slot><slot name="actions" @slotchange="${e(this,Hi,"m",Vi)}"></slot><slot name="footer" @slotchange="${e(this,Hi,"m",Ri)}"></slot></div>`}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this)),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}update(e){super.update(e),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}};var ji,Yi,Ki,Zi,Gi,Xi;Oi=new WeakMap,Hi=new WeakSet,Bi=function(e){const t=e.target.assignedNodes({flatten:!0}),a=this.shadowRoot?.querySelector(".base");a?.classList.toggle("has-header",t.length>0),a?.classList.toggle("has-header-media",t.some(e=>e instanceof HTMLElement&&("IMG"===e.tagName||"VIDEO"===e.tagName)))},Fi=function(){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-content",null!==this.querySelector("[slot='content']"))},qi=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-default",g(e.target)&&null===this.querySelector("[slot='content']"))},Vi=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(e.target))},Ri=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-footer",g(e.target))},Ui=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation())},Ni.styles=[Ai,Wi],t([h(".base")],Ni.prototype,"_base",void 0),t([h(".elevation")],Ni.prototype,"_elevation",void 0),t([h(".focus-ring")],Ni.prototype,"_focusRing",void 0),t([h(".state-layer")],Ni.prototype,"_stateLayer",void 0),t([h(".ripple")],Ni.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],Ni.prototype,"inline",void 0),t([m({type:Boolean,reflect:!0})],Ni.prototype,"actionable",void 0),t([m({reflect:!0})],Ni.prototype,"variant",void 0),t([m({reflect:!0})],Ni.prototype,"orientation",void 0),Ni=t([$("m3e-card")],Ni);let Ji=class extends(Q(ee(te(ae(oe(ie(re(se(V(N(Y(P(f(r,"checkbox")))),!1)))))))))){constructor(){super(...arguments),ji.add(this),Yi.set(this,t=>e(this,ji,"m",Xi).call(this,t)),Ki.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),Zi.set(this,new Z(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Yi=new WeakMap,Ki=new WeakMap,Zi=new WeakMap,ji=new WeakSet,le)](){return!this.checked||this.disabled||this.indeterminate?null:this.value}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Yi,"f"));for(const t of this.labels)e(this,Ki,"f").observe(t),e(this,Zi,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Yi,"f"));for(const t of this.labels)e(this,Ki,"f").unobserve(t),e(this,Zi,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,ji,"m",Gi).call(this)}</div></div>`}};var Qi,er,tr,ar,or,ir,rr;Gi=function(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n},Xi=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.indeterminate=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},Ji.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); } :host(:not([checked]):not([indeterminate])) .wrapper { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-checkbox-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-checkbox-selected-ripple-color, ${v.color.primary}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: var(--m3e-checkbox-selected-container-color, ${v.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${v.color.onPrimary}); } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper { border-color: var(--m3e-checkbox-unselected-outline-color, ${v.color.onSurfaceVariant}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover) .wrapper { border-color: var(--m3e-checkbox-unselected-hover-outline-color, ${v.color.onSurface}); } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${v.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${v.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-checkbox-unselected-error-ripple-color, ${v.color.error}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-error-hover-color, ${v.color.onError}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-error-focus-color, ${v.color.onError}); --m3e-ripple-color: var(--m3e-checkbox-selected-error-ripple-color, ${v.color.onError}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: var(--m3e-checkbox-unselected-error-outline-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base, :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: CanvasText; --m3e-state-layer-focus-color: CanvasText; --m3e-ripple-color: CanvasText; } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper, :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover ) .wrapper { border-color: CanvasText; } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: CanvasText; color: Canvas; } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: GrayText; } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: GrayText; color: Canvas; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: Highlight; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: Highlight; --m3e-state-layer-focus-color: Highlight; --m3e-ripple-color: Highlight; } }`,t([h(".focus-ring")],Ji.prototype,"_focusRing",void 0),t([h(".state-layer")],Ji.prototype,"_stateLayer",void 0),t([h(".ripple")],Ji.prototype,"_ripple",void 0),t([m()],Ji.prototype,"value",void 0),Ji=t([$("m3e-checkbox")],Ji);let sr=class extends(P(r)){constructor(){super(...arguments),Qi.add(this),er.set(this,void 0),tr.set(this,""),this.variant="outlined"}get value(){return e(this,er,"f")??e(this,tr,"f")}set value(e){a(this,er,e,"f")}get label(){return e(this,tr,"f")}firstUpdated(e){super.firstUpdated(e),"listitem"===this.role&&this.removeAttribute("tabindex"),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>{e?.htmlFor||e?.attach(this)})}render(){const t=!ce(this)||this.disabled,a=de(this)&&this.disabledInteractive;return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${t||a}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${t||a}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${t}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${t||a}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${he(this)?this[G]():n}<div class="wrapper">${e(this,Qi,"m",ar).call(this)}</div></div>`}_renderIcon(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,Qi,"m",or)}"></slot>`}_renderTrailingIcon(){return s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,Qi,"m",ir)}"></slot>`}_renderSlot(){return s`<slot @slotchange="${e(this,Qi,"m",rr)}"></slot>`}};er=new WeakMap,tr=new WeakMap,Qi=new WeakSet,ar=function(){return s`${this._renderIcon()}<div class="label">${this._renderSlot()}</div>${this._renderTrailingIcon()}`},or=function(e){k(this,"-with-icon",g(e.target))},ir=function(e){k(this,"-with-trailing-icon",g(e.target))},rr=function(e){a(this,tr,me(e.target),"f")},sr.styles=i`:host { display: inline-block; vertical-align: middle; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; border-radius: var(--m3e-chip-container-shape, ${v.shape.corner.small}); height: calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)}); font-size: var(--m3e-chip-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-chip-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-chip-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-chip-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host(:not(m3e-chip):not(:disabled)[disabled-interactive]) { cursor: not-allowed; } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) .base { user-select: none; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; column-gap: var(--m3e-chip-spacing, 0.5rem); } .label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host([variant="elevated"]) .base { background-color: var(--m3e-elevated-chip-container-color, ${v.color.surfaceContainerLow}); --m3e-elevation-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-hover-level: var(--m3e-elevated-chip-hover-elevation, ${v.elevation.level2}); --m3e-elevation-focus-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-pressed-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); } :host([variant="outlined"]) .base { outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-style: solid; outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: var(--m3e-outlined-chip-outline-color, ${v.color.outlineVariant}); } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: color-mix( in srgb, var(--m3e-outlined-chip-disabled-outline-color, ${v.color.onSurface}) var(--m3e-outlined-chip-disabled-outline-opacity, 12%), transparent ); } :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } :host(:not(:state(-with-icon))) .wrapper { padding-inline-start: var(--m3e-chip-padding-start, 1rem); } :host(:state(-with-trailing-icon)) .wrapper { padding-inline-end: var(--m3e-chip-with-icon-padding-end, 0.5rem); } :host(:not(:state(-with-trailing-icon))) .wrapper { padding-inline-end: var(--m3e-chip-padding-end, 1rem); } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]) { flex: none; width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem) !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-icon-color, ${v.color.primary}); } :host(:disabled) .base, :host([disabled-interactive]) .base { color: color-mix( in srgb, var(--m3e-chip-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-chip-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}) var(--m3e-chip-disabled-icon-opacity, 38%), transparent ); } :host([variant="elevated"]:disabled) .base, :host([variant="elevated"][disabled-interactive]) .base { background-color: color-mix( in srgb, var(--m3e-elevated-chip-disabled-container-color, ${v.color.onSurface}) var(--m3e-elevated-chip-disabled-container-opacity, 12%), transparent ); --m3e-elevation-level: var(--m3e-elevated-chip-disabled-elevation, ${v.elevation.level0}); } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: CanvasText; } :host(:disabled) .base, :host([disabled-interactive]) .base, :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: GrayText; } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: GrayText; } }`,t([h(".elevation")],sr.prototype,"_elevation",void 0),t([h(".focus-ring")],sr.prototype,"_focusRing",void 0),t([h(".state-layer")],sr.prototype,"_stateLayer",void 0),t([h(".ripple")],sr.prototype,"_ripple",void 0),t([m({reflect:!0})],sr.prototype,"variant",void 0),t([m()],sr.prototype,"value",null),sr=t([$("m3e-chip")],sr);let nr=class extends(U(R(V(N(j(Y(f(sr,"button")))))))){_renderTrailingIcon(){return n}};nr.formAssociated=!0,nr=t([$("m3e-assist-chip")],nr);let lr=class extends(pe(r)){render(){return s`<slot></slot>`}};var cr,dr,hr;lr.styles=i`:host { display: inline-flex; flex-wrap: wrap; vertical-align: middle; gap: var(--m3e-chip-set-spacing, 0.5rem); outline: none; } :host([vertical]) { flex-direction: column; }`,lr=t([$("m3e-chip-set")],lr);let mr=class extends(ue(V(N(j(Y(f(sr,"radio"))))))){constructor(){super(...arguments),cr.add(this),dr.set(this,t=>e(this,cr,"m",hr).call(this,t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,dr,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,dr,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-filter-chip-set")?.[De].notifySelectionChange(this)}_renderIcon(){return s`<div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg> ${super._renderIcon()}</div>`}};var pr,ur,vr,br,fr,gr,yr;dr=new WeakMap,cr=new WeakSet,hr=function(e){if(e.defaultPrevented)return;const t=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-filter-chip-set")?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=t},mr.formAssociated=!0,mr.styles=[sr.styles,i`:host([selected]:not(:state(-hide-selection))) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } .icon { display: flex; align-items: center; justify-content: center; } .check { width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem); } :host(:not(:disabled):not([disabled-interactive])) .check { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not([selected])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-chip-with-icon-padding-start, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host([selected]) .icon { margin-inline-start: 0; } :host([selected]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-unselected-label-text-color, ${v.color.onSurfaceVariant}); --m3e-ripple-color: var(--m3e-chip-unselected-ripple-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-focus-color: var( --m3e-chip-unselected-state-layer-focus-color, ${v.color.onSurfaceVariant} ); --m3e-state-layer-hover-color: var( --m3e-chip-unselected-state-layer-hover-color, ${v.color.onSurfaceVariant} ); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]) { color: var(--m3e-chip-unselected-leading-icon-color, ${v.color.primary}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-unselected-trailing-icon-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: unset; outline-width: var(--m3e-chip-selected-outline-thickness, 0); color: var(--m3e-chip-selected-label-text-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-chip-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-chip-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-chip-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-elevation-hover-level: var(--m3e-chip-selected-hover-elevation, ${v.elevation.level1}); --m3e-ripple-color: var(--m3e-chip-selected-ripple-color, ${v.color.onSecondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-chip-selected-state-layer-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-chip-selected-state-layer-hover-color, ${v.color.onSecondaryContainer} ); } :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]) { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-selected-trailing-icon-color, ${v.color.onSecondaryContainer}); } @media (prefers-reduced-motion) { .base, :host(:not(:state(-with-icon))) .icon { transition: none; } } @media (forced-colors: active) { :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base, :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="trailing-icon"]), :host(:not(:disabled):not([disabled-interactive])) .check { color: ButtonText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-color: ButtonText; } }`],mr=t([$("m3e-filter-chip")],mr);let $r=class extends(Q(te(ae(se(Y(P(f(lr,"radiogroup")))))))){constructor(){super(...arguments),pr.add(this),ur.set(this,void 0),this[yr]=(new Ae).onActiveItemChange(()=>this[De].activeItem?.focus()).withWrap().withDirectionality(Ve.current),this.multi=!1,this.hideSelectionIndicator=!1}get chips(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(ur=new WeakMap,pr=new WeakSet,yr=De,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),a(this,ur,Ve.observe(()=>this[De].directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,ur,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(this[De].vertical=this.vertical),t.has("disabled")&&(void 0!==t.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled),t.has("multi")&&(this.role=this.multi?"group":"radiogroup",e(this,pr,"m",gr).call(this),this[De].multi=this.multi,this[De].disableRovingTabIndex(this.multi)),(t.has("multi")||t.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),t.has("hideSelectionIndicator")&&this.chips.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,pr,"m",vr)}" @keydown="${e(this,pr,"m",br)}" @change="${e(this,pr,"m",fr)}"></slot>`}};var xr,wr,kr,Cr;vr=function(){const{added:t}=this[De].setItems([...this.querySelectorAll("m3e-filter-chip")]);t.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),e(this,pr,"m",gr).call(this)},br=function(e){this.multi||this[De].onKeyDown(e)},fr=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},gr=function(){this.chips.forEach(e=>e.role=this.multi?"button":"radio")},t([m({type:Boolean})],$r.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],$r.prototype,"hideSelectionIndicator",void 0),$r=t([$("m3e-filter-chip-set")],$r);let Sr=class extends(x(j(Y(f(sr,"row"))),"remove")){constructor(){super(...arguments),xr.add(this),this.removable=!1,this.removeLabel="Remove"}connectedCallback(){super.connectedCallback(),this.removeAttribute("tabindex")}update(e){super.update(e),this.removeAttribute("tabindex"),e.has("removable")&&k(this,"-with-trailing-icon",this.removable)}render(){return s`<div class="base"><m3e-elevation class="elevation" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" for="cell" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="wrapper"><div id="cell" class="cell" role="gridcell" tabindex="${je(this.disabled?void 0:"-1")}" @keydown="${e(this,xr,"m",Cr)}"><slot name="avatar" @slotchange="${e(this,xr,"m",wr)}"></slot>${this._renderIcon()}<div class="label">${this._renderSlot()}</div><div class="touch" aria-hidden="true"></div></div>${this._renderTrailingIcon()}</div></div>`}_renderTrailingIcon(){return this.removable?s`<span role="gridcell" class="remove"><m3e-icon-button class="remove-button" aria-label="${this.removeLabel}" size="extra-small" tabindex="-1" ?disabled="${this.disabled}" ?disabled-interactive="${this.disabledInteractive}" @click="${e(this,xr,"m",kr)}"><slot name="remove-icon"><svg class="remove-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button></span>`:n}};var _r,Lr,Er,zr,Mr,Tr,Pr,Ir,Wr,Dr,Ar,Hr,Or,Br,Fr,qr,Vr,Rr,Ur,Nr,jr,Yr,Kr,Zr;xr=new WeakSet,wr=function(e){k(this,"-with-avatar",g(e.target))},kr=function(e){e.stopPropagation(),this.dispatchEvent(new Event("remove"))},Cr=function(e){if(this.removable)switch(e.key){case"Backspace":case"Delete":this.dispatchEvent(new Event("remove"))}},Sr.formAssociated=!0,Sr.styles=[sr.styles,i`.cell { display: inline-flex; align-items: center; outline: none; column-gap: var(--m3e-chip-spacing, 0.5rem); min-width: 0; } .remove-button { --m3e-icon-button-extra-small-container-height: 1.5rem; --m3e-icon-button-extra-small-icon-size: var(--m3e-chip-icon-size, 1.125rem); width: 1.5rem; } .remove-icon { flex: none; width: var(--m3e-chip-icon-size, 1.125rem); height: var(--m3e-chip-icon-size, 1.125rem); } .touch { top: calc( 0px - calc(calc(3rem - calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)})) / 2) ); } .wrapper { height: 100%; overflow: visible; min-width: 0; } ::slotted([slot="avatar"]) { flex: none; font-size: var(--m3e-chip-avatar-size, 1.5rem); } ::slotted(m3e-avatar[slot="avatar"]) { --m3e-icon-size: var(--m3e-chip-avatar-icon-size, 1.125rem); --m3e-avatar-size: var(--m3e-chip-avatar-size, 1.5rem); --m3e-avatar-font-size: var( --m3e-chip-avatar-font-size, ${v.typescale.standard.title.small.fontSize} ); --m3e-avatar-font-weight: var( --m3e-chip-avatar-font-height, ${v.typescale.standard.title.small.fontWeight} ); --m3e-avatar-line-height: var( --m3e-chip-avatar-line-height, ${v.typescale.standard.title.small.lineHeight} ); --m3e-avatar-tracking: var(--m3e-chip-avatar-tracking, ${v.typescale.standard.title.small.tracking}); } :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { opacity: var(--m3e-chip-disabled-avatar-opacity, 38%); color: var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}); } :host(:state(-with-avatar)) ::slotted([slot="icon"]) { display: none; } :host(:state(-with-avatar)) .wrapper { padding-inline-start: var(--m3e-chip-with-avatar-padding-start, 0.25rem); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { color: CanvasText; } }`],t([h(".cell")],Sr.prototype,"cell",void 0),t([h(".remove-button")],Sr.prototype,"removeButton",void 0),t([m({type:Boolean})],Sr.prototype,"removable",void 0),t([m({attribute:"remove-label"})],Sr.prototype,"removeLabel",void 0),Sr=t([$("m3e-input-chip")],Sr);let Gr=class extends(ee(oe(ie(te(ae(se(Y(P(f(lr,"grid")))))))))){constructor(){super(...arguments),_r.add(this),Lr.set(this,void 0),Er.set(this,()=>e(this,_r,"m",Kr).call(this)),zr.set(this,t=>e(this,_r,"m",Zr).call(this,t)),Mr.set(this,()=>e(this,_r,"m",Rr).call(this)),Tr.set(this,()=>e(this,_r,"m",Ur).call(this)),Pr.set(this,()=>e(this,_r,"m",Nr).call(this)),Ir.set(this,t=>e(this,_r,"m",jr).call(this,t)),Wr.set(this,t=>e(this,_r,"m",Yr).call(this,t)),Dr.set(this,new He),Ar.set(this,(new ze).onActiveItemChange(()=>e(this,Ar,"f").activeItem?.focus()).withHomeAndEnd().withSkipPredicate(e=>!e.hasAttribute("tabindex")).withDirectionality(Ve.current)),Hr.set(this,!1),Or.set(this,null),Br.set(this,0)}get chips(){return[...this.querySelectorAll("m3e-input-chip")]}get value(){const e=this.chips.filter(e=>!e.disabled).map(e=>e.value);return 0==e.length?null:e}get[(Lr=new WeakMap,Er=new WeakMap,zr=new WeakMap,Mr=new WeakMap,Tr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,Wr=new WeakMap,Dr=new WeakMap,Ar=new WeakMap,Hr=new WeakMap,Or=new WeakMap,Br=new WeakMap,_r=new WeakSet,le)](){const e=this.value;if(!e)return null;const t=new FormData;for(const a of e)t.append(this.name,a);return t}get shouldLabelFloat(){return this.chips.length>0}onContainerClick(){e(this,Or,"f")?.focus()}connectedCallback(){super.connectedCallback(),customElements.get("m3e-form-field")?this.closest("m3e-form-field")?.notifyControlStateChange():customElements.whenDefined("m3e-form-field").then(()=>{this.closest("m3e-form-field")?.notifyControlStateChange()}),a(this,Br,Number.parseInt(this.getAttribute("tabindex")??"0"),"f"),this.addEventListener("focus",e(this,Mr,"f")),this.addEventListener("focusin",e(this,Tr,"f")),this.addEventListener("focusout",e(this,Pr,"f")),a(this,Lr,Ve.observe(()=>e(this,Ar,"f").directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",e(this,Mr,"f")),this.removeEventListener("focusin",e(this,Tr,"f")),this.removeEventListener("focusout",e(this,Pr,"f")),e(this,Lr,"f")?.call(this)}firstUpdated(t){super.firstUpdated(t),this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${e(this,Br,"f")}`)}update(t){super.update(t),t.has("vertical")&&(this.ariaOrientation=null),t.has("disabled")&&(e(this,Dr,"f").items.forEach(e=>e.disabled=this.disabled),e(this,Or,"f")&&(e(this,Or,"f").disabled=this.disabled))}render(){return s`<slot @keydown="${e(this,_r,"m",Fr)}" @slotchange="${e(this,_r,"m",qr)}"></slot><span role="row"><span role="gridcell"><slot name="input" @slotchange="${e(this,_r,"m",Vr)}"></slot></span></span>`}};Fr=function(t){e(this,Ar,"f").onKeyDown(t)},qr=async function(){const{added:t,removed:a}=e(this,Dr,"f").setItems([...this.querySelectorAll("m3e-input-chip")]);for(const a of t)a.isUpdatePending&&await a.updateComplete,this.disabled&&(a.disabled=!0),a.addEventListener("remove",e(this,Ir,"f")),a.cell.addEventListener("click",e(this,Wr,"f"));a.forEach(t=>{t.removeEventListener("remove",e(this,Ir,"f")),t.cell.removeEventListener("click",e(this,Wr,"f"))}),e(this,Ar,"f").setItems(e(this,Dr,"f").items.flatMap(e=>e.removeButton?[e.cell,e.removeButton]:[e.cell])),e(this,Ar,"f").activeItem||e(this,Ar,"f").updateActiveItem(e(this,Ar,"f").items.find(e=>e.hasAttribute("tabindex")))},Vr=function(){const t=this.querySelector("input");if(e(this,Or,"f")&&(e(this,Or,"f").removeEventListener("change",e(this,Er,"f")),e(this,Or,"f").removeEventListener("keydown",e(this,zr,"f"))),a(this,Or,t,"f"),e(this,Or,"f")){e(this,Or,"f").disabled=this.disabled,e(this,Or,"f").addEventListener("change",e(this,Er,"f")),e(this,Or,"f").addEventListener("keydown",e(this,zr,"f"));const a=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(t,"value",{get:()=>a.get?.call(t),set:o=>{a.set?.call(t,o),e(this,Or,"f")!==t||e(this,Hr,"f")||e(this,_r,"m",Kr).call(this)}})}},Rr=function(){setTimeout(()=>(e(this,Ar,"f").activeItem??e(this,Or,"f"))?.focus())},Ur=function(){this.setAttribute("tabindex","-1")},Nr=function(){this.setAttribute("tabindex",`${e(this,Br,"f")}`)},jr=function(t){const a=t.target,o=e(this,Dr,"f").items.indexOf(a),i=e(this,Dr,"f").items.find((e,t)=>t>o&&!e.disabled&&e.removable);a.remove(),e(this,Ar,"f").setActiveItem(e(this,Ar,"f").items.find(e=>e===i?.removeButton)),e(this,Ar,"f").activeItem||e(this,Or,"f")?.focus(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"remove",value:a.value,chip:a}}))},Yr=function(t){e(this,Ar,"f").updateActiveItem(t.composedPath().find(e=>e instanceof Sr)?.cell)},Kr=async function(){const t=e(this,Or,"f")?.value;if(!t)return;const o=document.createElement("m3e-input-chip");if(o.removable=!0,o.appendChild(document.createTextNode(t)),this.appendChild(o),o.isUpdatePending&&await o.updateComplete,e(this,Or,"f"))try{a(this,Hr,!0,"f"),e(this,Or,"f").value=""}finally{a(this,Hr,!1,"f")}this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"add",value:t,chip:o}}))},Zr=function(t){if("Backspace"===t.key&&!e(this,Or,"f")?.value){const t=[...e(this,Dr,"f").items].reverse().find(e=>!e.disabled&&!e.disabledInteractive&&e.removable);t&&t.dispatchEvent(new Event("remove"))}},F(i`m3e-input-chip-set [slot="input"]::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-input-chip-set:not(:focus-within) [slot="input"]::placeholder { opacity: 0; transition: 0s; } m3e-input-chip-set:hover [slot="input"]::placeholder { transition: 0s; } @media (prefers-reduced-motion) { m3e-input-chip-set [slot="input"]::placeholder { transition: none !important; } }`),Gr.styles=[lr.styles,i`::slotted([slot="input"]) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: initial; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(m3e-input-chip) { min-width: 0; } span[role="row"], span[role="gridcell"] { display: contents; }`],Gr=t([$("m3e-input-chip-set")],Gr);let Xr=class extends(U(R(V(N(j(Y(f(sr,"button")))))))){_renderTrailingIcon(){return n}};var Jr,Qr,es,ts,as,os,is,rs,ss,ns,ls,cs,ds,hs,ms,ps,us,vs,bs,fs,gs,ys,$s,xs,ws,ks,Cs,Ss,_s,Ls,Es,zs,Ms,Ts,Ps,Is,Ws,Ds,As,Hs,Os,Bs,Fs,qs,Vs,Rs,Us,Ns,js,Ys,Ks,Zs,Gs,Xs,Js,Qs,en,tn,an,on,rn,sn,nn,ln,cn,dn,hn,mn,pn,un,vn,bn,fn,gn,yn,$n,xn;Xr.formAssociated=!0,Xr=t([$("m3e-suggestion-chip")],Xr);class wn{constructor(t,o){Jr.set(this,null),Qr.set(this,0),es.set(this,!1),ts.set(this,void 0),as.set(this,()=>{if(!e(this,es,"f"))return;const t=performance.now();e(this,ts,"f").call(this,(t-e(this,Qr,"f"))/1e3,t/1e3),a(this,Qr,t,"f"),a(this,Jr,requestAnimationFrame(e(this,as,"f")),"f")}),a(this,ts,o,"f"),t.addController(this)}hostDisconnected(){this.stop()}start(){e(this,es,"f")||(a(this,es,!0,"f"),a(this,Qr,performance.now(),"f"),e(this,as,"f").call(this))}stop(){e(this,es,"f")&&(a(this,es,!1,"f"),null!==e(this,Jr,"f")&&(cancelAnimationFrame(e(this,Jr,"f")),a(this,Jr,null,"f")))}}Jr=new WeakMap,Qr=new WeakMap,es=new WeakMap,ts=new WeakMap,as=new WeakMap;class kn{constructor(t,o){os.set(this,void 0),is.set(this,void 0),rs.set(this,new Set),a(this,os,t,"f"),a(this,is,o.target,"f"),e(this,os,"f").addController(this)}get targets(){return e(this,rs,"f").values()}hostConnected(){null!==e(this,is,"f")&&this.observe(e(this,is,"f")??e(this,os,"f"))}hostDisconnected(){e(this,rs,"f").forEach(e=>this.unobserve(e)),e(this,rs,"f").clear()}observe(t){e(this,rs,"f").has(t)||(e(this,rs,"f").add(t),this._observe(t))}isObserving(t){return e(this,rs,"f").has(t)}unobserve(t){e(this,rs,"f").delete(t)&&this._unobserve(t)}}function Cn(e,t){if(!t)return 0;const a=document.createElement("div");a.style.all="inherit",a.style.width=t,a.style.position="absolute",a.style.visibility="hidden",a.style.pointerEvents="none",e.appendChild(a);try{return parseFloat(getComputedStyle(a).width)}finally{a.remove()}}function Sn(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function _n(e,t=200){function a(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const o=performance.now();for(;!a(e);){if(!e.isConnected||performance.now()-o>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Ln(){return!l&&matchMedia("(forced-colors: active)").matches}function En(e,t,a){return e+(t-e)*a}function zn(e,t,a,o){return{x:Math.pow(1-o,2)*e.x+2*(1-o)*o*t.x+Math.pow(o,2)*a.x,y:Math.pow(1-o,2)*e.y+2*(1-o)*o*t.y+Math.pow(o,2)*a.y}}function Mn(e,t,a,o,i){return{x:Math.pow(1-i,3)*e.x+3*Math.pow(1-i,2)*i*t.x+3*(1-i)*Math.pow(i,2)*a.x+Math.pow(i,3)*o.x,y:Math.pow(1-i,3)*e.y+3*Math.pow(1-i,2)*i*t.y+3*(1-i)*Math.pow(i,2)*a.y+Math.pow(i,3)*o.y}}function Tn(e,t){const a=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let o={x:0,y:0},i={x:0,y:0};const r=[];for(const e of a)if("M"===e.type)o={x:e.nums[0],y:e.nums[1]},i=o;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},a=t.x-o.x,i=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.hypot(a,i)}),o=t}else if("H"===e.type){const t={x:e.nums[0],y:o.y},a=t.x-o.x;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("V"===e.type){const t={x:o.x,y:e.nums[0]},a=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]};let i=0,s=o;const n=20;for(let e=1;e<=n;e++){const r=zn(o,t,a,e/n);i+=Math.hypot(r.x-s.x,r.y-s.y),s=r}r.push({type:"Q",pts:[o,t,a],length:i}),o=a}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]},i={x:e.nums[4],y:e.nums[5]};let s=0,n=o;const l=20;for(let e=1;e<=l;e++){const r=Mn(o,t,a,i,e/l);s+=Math.hypot(r.x-n.x,r.y-n.y),n=r}r.push({type:"C",pts:[o,t,a,i],length:s}),o=i}else if("Z"===e.type){const e=i.x-o.x,t=i.y-o.y;r.push({type:"L",pts:[o,i],length:Math.hypot(e,t)}),o=i}const s=r.reduce((e,t)=>e+t.length,0)/(t-1),n=[];let l=0,c=0;for(let e=0;e<t;e++){const t=e*s;for(;c<r.length&&l+r[c].length<t;)l+=r[c].length,c++;const a=r[c];if(!a)break;const o=(t-l)/a.length;if("L"===a.type){const[e,t]=a.pts;n.push({x:En(e.x,t.x,o),y:En(e.y,t.y,o)})}else if("Q"===a.type){const[e,t,i]=a.pts;n.push(zn(e,t,i,o))}else if("C"===a.type){const[e,t,i,r]=a.pts;n.push(Mn(e,t,i,r,o))}}return n}function Pn(e,t,a){return Math.max(t,Math.min(a,e))}function In(e,t){const a=e.length,o=new Array(a);for(let i=0;i<a;i++)o[i]=e[(i+t)%a];return o}function Wn(e,t){const a=Math.min(t.length,e.length);let o=0,i=1/0;for(let r=0;r<a;r++){let s=0;for(let o=0;o<a;o++){const n=t[(o+r)%a],l=e[o],c=n.x-l.x,d=n.y-l.y;if(s+=c*c+d*d,s>=i)break}s<i&&(i=s,o=r)}return o}function Dn(e){let t=0;const a=e.length;for(let o=0;o<a;o++){const i=e[o],r=e[(o+1)%a];t+=i.x*r.y-r.x*i.y}return t/2}function An(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,a=1/0,o=-1/0,i=-1/0;for(const r of e)r.x<t&&(t=r.x),r.x>o&&(o=r.x),r.y<a&&(a=r.y),r.y>i&&(i=r.y);return{minX:t,minY:a,maxX:o,maxY:i,width:o-t,height:i-a}}(e),a=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),o=Math.max(t.width,t.height)||1,i=a.map(e=>({x:e.x/o,y:e.y/o})),r=t.width/o,s=t.height/o,n=(1-r)/2,l=(1-s)/2;return i.map(e=>({x:e.x+n,y:e.y+l}))}),a=t[0],o=Math.sign(Dn(a));for(let e=1;e<t.length;e++){let i=t[e];const r=Math.sign(Dn(i));0!==r&&r!==o&&(i=i.slice().reverse());const s=Wn(a,i);t[e]=In(i,s)}return t}(e.map(e=>Tn(e,t))).map(e=>`${e.map(e=>{const t=Pn(100*e.x,0,100),a=Pn(100*e.y,0,100);return`${t.toFixed(2)}% ${a.toFixed(2)}%`}).join(", ")}`)}function Hn(e,t=!1){let a="";switch(e.nodeType){case Node.TEXT_NODE:a=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const o of e.assignedNodes({flatten:!0}))a+=Hn(o,t);else for(const o of e.childNodes)a+=Hn(o,t)}return t&&(a=a.trim()),a}function On(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Bn(e){return e.assignedNodes({flatten:!0}).length>0}function Fn(e,t,a){const o=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!o)throw new Error(`Property ${String(t)} not found on target.`);const i=o.get?.bind(e),r=o.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:o.enumerable,get:()=>a.get?a.get(()=>i?.()):i?.(),set(e){a.set?a.set(e,e=>r?.(e)):r?.(e)}}),()=>Object.defineProperty(e,t,o)}function qn(){return l||matchMedia("(prefers-reduced-motion)").matches}function Vn(e){if("undefined"==typeof window)return;const t=new CSSStyleSheet;t.replaceSync(e.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}function Rn(e,t=document){return new Promise(a=>{const o=t.querySelector(`#${e}`);o?a(o):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>a(t.querySelector(`#${e}`)),{once:!0}):a(t.querySelector(`#${e}`))})}function Un(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function Nn(e,t,a){const o=t.getBoundingClientRect(),i=e.getBoundingClientRect();(i.top<o.top||i.bottom>o.bottom)&&e.scrollIntoView(a)}os=new WeakMap,is=new WeakMap,rs=new WeakMap;class jn{constructor(e=100){ss.set(this,[]),ns.set(this,void 0),a(this,ns,e,"f")}add(t,a=performance.now()){e(this,ss,"f").push({y:t,t:a});const o=a-e(this,ns,"f");for(;e(this,ss,"f").length>1&&e(this,ss,"f")[0].t<o;)e(this,ss,"f").shift()}getVelocity(){if(e(this,ss,"f").length<2)return 0;const t=e(this,ss,"f")[0],a=e(this,ss,"f")[e(this,ss,"f").length-1],o=a.y-t.y,i=(a.t-t.t)/1e3;return i>0?o/i:0}reset(){e(this,ss,"f").length=0}}async function Yn(e){const t=e.tagName.toLowerCase();if(!t.includes("-"))return;customElements.get(t)||await customElements.whenDefined(t);const a=customElements.get(t);!a||e instanceof a||(await Promise.resolve(),e instanceof a||await Promise.resolve())}ss=new WeakMap,ns=new WeakMap;class Kn extends kn{constructor(t,o){super(t,o),ls.add(this),cs.set(this,!1),ds.set(this,void 0),hs.set(this,t=>e(this,ls,"m",ys).call(this,t)),ms.set(this,t=>e(this,ls,"m",$s).call(this,t)),ps.set(this,t=>e(this,ls,"m",xs).call(this,t)),us.set(this,()=>a(this,cs,!0,"f")),vs.set(this,()=>a(this,cs,!1,"f")),bs.set(this,!1),fs.set(this,()=>a(this,bs,!0,"f")),gs.set(this,()=>a(this,bs,!1,"f")),a(this,ds,o.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",e(this,fs,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",e(this,gs,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",e(this,fs,"f"),{capture:!0}),window?.removeEventListener("pointerdown",e(this,gs,"f"),{capture:!0})}_observe(t){t.addEventListener("keydown",e(this,hs,"f")),t.addEventListener("focusin",e(this,ms,"f")),t.addEventListener("focusout",e(this,ps,"f")),t.addEventListener("touchstart",e(this,us,"f")),t.addEventListener("touchend",e(this,vs,"f")),t.addEventListener("touchcancel",e(this,vs,"f"))}_unobserve(t){t.removeEventListener("keydown",e(this,hs,"f")),t.removeEventListener("focusin",e(this,ms,"f")),t.removeEventListener("focusout",e(this,ps,"f")),t.removeEventListener("touchstart",e(this,us,"f")),t.removeEventListener("touchend",e(this,vs,"f")),t.removeEventListener("touchcancel",e(this,vs,"f"))}}cs=new WeakMap,ds=new WeakMap,hs=new WeakMap,ms=new WeakMap,ps=new WeakMap,us=new WeakMap,vs=new WeakMap,bs=new WeakMap,fs=new WeakMap,gs=new WeakMap,ls=new WeakSet,ys=function(t){t.currentTarget.matches(":focus-within")&&e(this,ls,"m",$s).call(this,t)},$s=function(t){if(e(this,cs,"f"))return;const a=t.currentTarget;e(this,ds,"f").call(this,!0,a.matches(":focus-visible")||e(this,bs,"f")||Ln(),a)},xs=function(t){e(this,cs,"f")||e(this,ds,"f").call(this,!1,!1,t.currentTarget)};class Zn extends kn{constructor(t,o){super(t,o),ws.add(this),ks.set(this,void 0),Cs.set(this,new Map),Ss.set(this,new Map),_s.set(this,t=>e(this,ws,"m",Ts).call(this,t)),Ls.set(this,t=>e(this,ws,"m",Ps).call(this,t)),a(this,ks,o.callback,"f"),this.startDelay=o.startDelay??0,this.endDelay=o.endDelay??0}clearDelays(){for(const t of this.targets)e(this,ws,"m",Es).call(this,t)}_observe(t){t.addEventListener("pointerenter",e(this,_s,"f")),t.addEventListener("pointerleave",e(this,Ls,"f")),t.addEventListener("touchend",e(this,Ls,"f"))}_unobserve(t){t.removeEventListener("pointerenter",e(this,_s,"f")),t.removeEventListener("pointerleave",e(this,Ls,"f")),t.removeEventListener("touchend",e(this,Ls,"f"))}}ks=new WeakMap,Cs=new WeakMap,Ss=new WeakMap,_s=new WeakMap,Ls=new WeakMap,ws=new WeakSet,Es=function(t){e(this,ws,"m",zs).call(this,t),e(this,ws,"m",Ms).call(this,t)},zs=function(t){return!!e(this,Cs,"f").has(t)&&(clearTimeout(e(this,Cs,"f").get(t)),e(this,Cs,"f").delete(t))},Ms=function(t){return!!e(this,Ss,"f").has(t)&&(clearTimeout(e(this,Ss,"f").get(t)),e(this,Ss,"f").delete(t))},Ts=function(t){const a=t.target;e(this,ws,"m",Ms).call(this,a),this.startDelay>0?(e(this,ws,"m",zs).call(this,a),e(this,Cs,"f").set(a,setTimeout(()=>{e(this,Cs,"f").delete(a),e(this,ks,"f").call(this,!0,a)},this.startDelay))):e(this,ks,"f").call(this,!0,a)},Ps=function(t){const a=t.target;e(this,ws,"m",zs).call(this,a)||(this.endDelay>0?(e(this,ws,"m",Ms).call(this,a),e(this,Ss,"f").set(a,setTimeout(()=>{e(this,Ss,"f").delete(a),e(this,ks,"f").call(this,!1,a)},this.endDelay))):e(this,ks,"f").call(this,!1,a))};class Gn{constructor(e){Is.set(this,void 0),Ws.set(this,new Array),a(this,Is,e,"f"),e.addController(this)}lock(){this.unlock();for(let t=e(this,Is,"f");t.parentNode&&t.parentNode!==document.documentElement;t=t.parentNode)for(const a of t.parentNode.children)a instanceof HTMLElement&&a!==t&&!a.inert&&(a.inert=!0,e(this,Ws,"f").push(a))}unlock(){e(this,Ws,"f").forEach(e=>e.inert=!1),e(this,Ws,"f").length=0}hostDisconnected(){this.unlock()}}Is=new WeakMap,Ws=new WeakMap;class Xn extends kn{constructor(t,o){super(t,o),Ds.set(this,void 0),As.set(this,!1),Hs.set(this,void 0),Os.set(this,!0),a(this,Ds,o.callback,"f"),a(this,As,o.skipInitial??!1,"f"),l||(window.IntersectionObserver?a(this,Hs,new IntersectionObserver((t,a)=>{e(this,Ds,"f").call(this,t,a)},o.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){e(this,Hs,"f")&&!e(this,As,"f")&&e(this,Os,"f")&&e(this,Ds,"f").call(this,[],e(this,Hs,"f")),a(this,Os,!1,"f")}_observe(t){e(this,Hs,"f")?.observe(t),a(this,Os,!0,"f")}_unobserve(t){e(this,Hs,"f")?.unobserve(t)}}Ds=new WeakMap,As=new WeakMap,Hs=new WeakMap,Os=new WeakMap;class Jn extends kn{constructor(t,o){super(t,o),Bs.add(this),Fs.set(this,void 0),qs.set(this,void 0),Vs.set(this,new Set),Rs.set(this,new Map),Us.set(this,t=>e(this,Bs,"m",js).call(this,t)),Ns.set(this,t=>e(this,Bs,"m",Ys).call(this,t)),a(this,Fs,o.callback,"f"),a(this,qs,o.threshold??500,"f")}_observe(t){t.addEventListener("touchstart",e(this,Us,"f"),{passive:!0}),t.addEventListener("touchend",e(this,Ns,"f")),t.addEventListener("touchcancel",e(this,Ns,"f"))}_unobserve(t){t.removeEventListener("touchstart",e(this,Us,"f")),t.removeEventListener("touchend",e(this,Ns,"f")),t.removeEventListener("touchcancel",e(this,Ns,"f"))}}Fs=new WeakMap,qs=new WeakMap,Vs=new WeakMap,Rs=new WeakMap,Us=new WeakMap,Ns=new WeakMap,Bs=new WeakSet,js=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,Rs,"f").set(a,setTimeout(()=>{e(this,Vs,"f").add(a),e(this,Rs,"f").delete(a),e(this,Fs,"f").call(this,!0,a)},e(this,qs,"f")))}},Ys=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,Vs,"f").has(a)&&(e(this,Fs,"f").call(this,!1,a),e(this,Vs,"f").delete(a)),e(this,Rs,"f").has(a)&&(clearTimeout(e(this,Rs,"f").get(a)),e(this,Rs,"f").delete(a))}};class Qn extends kn{constructor(t,o){super(t,o),Ks.set(this,void 0),Zs.set(this,!1),Gs.set(this,void 0),Xs.set(this,void 0),Js.set(this,!0),a(this,Ks,o.callback,"f"),a(this,Zs,o.skipInitial??!1,"f"),a(this,Gs,o.config,"f"),l||(window.MutationObserver?a(this,Xs,new MutationObserver((t,a)=>e(this,Ks,"f").call(this,t,a)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(e(this,Xs,"f")&&!e(this,Zs,"f")&&e(this,Js,"f")){const t=e(this,Xs,"f").takeRecords();t.length>0&&e(this,Ks,"f").call(this,t,e(this,Xs,"f"))}a(this,Js,!1,"f")}hostDisconnected(){super.hostDisconnected(),e(this,Xs,"f")?.disconnect()}_observe(t){e(this,Xs,"f")?.observe(t,e(this,Gs,"f")),a(this,Js,!0,"f")}_unobserve(){e(this,Xs,"f")?.disconnect();for(const t of this.targets)e(this,Xs,"f")?.observe(t,e(this,Gs,"f"))}}Ks=new WeakMap,Zs=new WeakMap,Gs=new WeakMap,Xs=new WeakMap,Js=new WeakMap;class el extends kn{constructor(t,o){super(t,o),Qs.add(this),en.set(this,void 0),tn.set(this,void 0),an.set(this,void 0),on.set(this,new Map),rn.set(this,void 0),sn.set(this,t=>e(this,Qs,"m",hn).call(this,t)),nn.set(this,t=>e(this,Qs,"m",mn).call(this,t)),ln.set(this,t=>e(this,Qs,"m",pn).call(this,t)),cn.set(this,t=>e(this,Qs,"m",un).call(this,t)),dn.set(this,t=>e(this,Qs,"m",vn).call(this,t)),a(this,en,o.capture,"f"),a(this,tn,o.callback,"f"),a(this,an,o.isPressedKey,"f"),a(this,rn,o.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",e(this,nn,"f"),{capture:e(this,en,"f")}),document.addEventListener("touchend",e(this,ln,"f"),{capture:e(this,en,"f")}),document.addEventListener("touchcancel",e(this,ln,"f"),{capture:e(this,en,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",e(this,nn,"f"),{capture:e(this,en,"f")}),document.removeEventListener("touchend",e(this,ln,"f"),{capture:e(this,en,"f")}),document.removeEventListener("touchcancel",e(this,ln,"f"),{capture:e(this,en,"f")}),super.hostDisconnected(),e(this,on,"f").clear()}_observe(t){t.addEventListener("pointerdown",e(this,sn,"f"),{capture:e(this,en,"f")}),e(this,an,"f")&&(t.addEventListener("keydown",e(this,cn,"f"),{capture:e(this,en,"f")}),t.addEventListener("keyup",e(this,dn,"f"),{capture:e(this,en,"f")}))}_unobserve(t){t.removeEventListener("pointerdown",e(this,sn,"f"),{capture:e(this,en,"f")}),e(this,an,"f")&&(t.removeEventListener("keydown",e(this,cn,"f"),{capture:e(this,en,"f")}),t.removeEventListener("keyup",e(this,dn,"f"),{capture:e(this,en,"f")}))}}en=new WeakMap,tn=new WeakMap,an=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,nn=new WeakMap,ln=new WeakMap,cn=new WeakMap,dn=new WeakMap,Qs=new WeakSet,hn=function(t){if(!("mouse"===t.pointerType&&t.button>1))for(const a of t.composedPath())if(a instanceof HTMLElement&&this.isObserving(a)){e(this,on,"f").has(a)||(e(this,on,"f").set(a,performance.now()),e(this,tn,"f").call(this,!0,{x:t.x,y:t.y},a));break}},mn=function(t){"mouse"===t.pointerType&&t.button>1||e(this,Qs,"m",bn).call(this,t.x,t.y)},pn=function(t){e(this,Qs,"m",bn).call(this,t.changedTouches[0]?.clientX??0,t.changedTouches[0]?.clientY??0)},un=function(t){if(t.target!==t.currentTarget)return;const a=t.currentTarget;if(e(this,an,"f")?.call(this,t.key)&&(" "===t.key&&t.preventDefault(),!e(this,on,"f").has(a))){e(this,on,"f").set(a,performance.now());const t=a.getBoundingClientRect();e(this,tn,"f").call(this,!0,{x:t.x+t.width/2,y:t.y+t.height/2},a)}},vn=function(t){const a=t.target;if(e(this,on,"f").has(a)&&e(this,an,"f")?.call(this,t.key)){const t=e(this,rn,"f")-(performance.now()-e(this,on,"f").get(a)),o=a.getBoundingClientRect();t>0?setTimeout(()=>{e(this,on,"f").delete(a),e(this,tn,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a)},t):(e(this,on,"f").delete(a),e(this,tn,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a))}},bn=function(t,a){for(const o of e(this,on,"f")){const i=e(this,rn,"f")-(performance.now()-o[1]);i>0?setTimeout(()=>{e(this,on,"f").delete(o[0]),e(this,tn,"f").call(this,!1,{x:t,y:a},o[0])},i):(e(this,on,"f").delete(o[0]),e(this,tn,"f").call(this,!1,{x:t,y:a},o[0]))}};class tl extends kn{constructor(t,o){super(t,o),fn.set(this,void 0),gn.set(this,void 0),yn.set(this,void 0),$n.set(this,void 0),xn.set(this,!0),a(this,fn,o.callback,"f"),a(this,gn,o.skipInitial??!1,"f"),a(this,yn,o.config,"f"),l||(window.ResizeObserver?a(this,$n,new ResizeObserver((t,a)=>e(this,fn,"f").call(this,t,a)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){e(this,$n,"f")&&!e(this,gn,"f")&&e(this,xn,"f")&&e(this,fn,"f").call(this,[],e(this,$n,"f")),a(this,xn,!1,"f")}_observe(t){e(this,$n,"f")?.observe(t,e(this,yn,"f")),a(this,xn,!0,"f")}_unobserve(t){e(this,$n,"f")?.unobserve(t)}}fn=new WeakMap,gn=new WeakMap,yn=new WeakMap,$n=new WeakMap,xn=new WeakMap;const al=e=>(t,a)=>{const o=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};a?a.addInitializer(o):o()};function ol(e){const t=Symbol("_id");return(a,o,i)=>{const r=i.value;return i.value=function(...a){clearTimeout(this[t]),this[t]=setTimeout(()=>r.apply(this,a),e)},i}}var il,rl,sl,nl,ll,cl,dl,hl,ml,pl,ul,vl,bl,fl;class gl extends kn{constructor(t,o){super(t,o),il.add(this),rl.set(this,void 0),sl.set(this,void 0),nl.set(this,t=>e(this,il,"m",dl).call(this,t)),ll.set(this,new Map),a(this,rl,!0===o.debounce,"f"),a(this,sl,o.callback,"f")}getScrollContainers(t){return e(this,ll,"f").get(t)}_observe(t){const a=e(this,il,"m",cl).call(this,t);if(a.length>0){e(this,ll,"f").set(t,a);for(const t of a)(t===document.documentElement?document:t).addEventListener("scroll",e(this,nl,"f"),{passive:!0})}}_unobserve(t){if(e(this,ll,"f").has(t)){for(const a of e(this,ll,"f").get(t))(a===document.documentElement?document:a).removeEventListener("scroll",e(this,nl,"f"));e(this,ll,"f").delete(t)}}_debounceCallback(t){e(this,sl,"f").call(this,t)}}rl=new WeakMap,sl=new WeakMap,nl=new WeakMap,ll=new WeakMap,il=new WeakSet,cl=function(e){const t=new Array;let a=e;for(;a;){const e=getComputedStyle(a);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(a),a=a.parentElement}return t},dl=function(t){const a=t.target===document?document.documentElement:t.target;e(this,rl,"f")?this._debounceCallback(a):e(this,sl,"f").call(this,a)},t([ol(40)],gl.prototype,"_debounceCallback",null);class yl{constructor(e){hl.add(this),ml.set(this,!1),pl.set(this,0),ul.set(this,0),vl.set(this,""),bl.set(this,""),e.addController(this)}lock(){e(this,ml,"f")||(a(this,ml,!0,"f"),a(this,pl,window.scrollY,"f"),a(this,ul,window.scrollX,"f"),a(this,vl,document.documentElement.style.overflow,"f"),a(this,bl,document.documentElement.style.scrollbarGutter,"f"),e(this,hl,"m",fl).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(e(this,ul,"f"),e(this,pl,"f")))}unlock(){e(this,ml,"f")&&(a(this,ml,!1,"f"),document.documentElement.style.overflow=e(this,vl,"f"),document.documentElement.style.scrollbarGutter=e(this,bl,"f"),window.scrollTo(e(this,ul,"f"),e(this,pl,"f")))}hostDisconnected(){this.unlock()}}ml=new WeakMap,pl=new WeakMap,ul=new WeakMap,vl=new WeakMap,bl=new WeakMap,hl=new WeakSet,fl=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const $l={fromAttribute(e){if(!e)return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?)?(Z|[+-]\d{2}:\d{2})?$/);if(!t)return null;const a=Number(t[1]),o=Number(t[2])-1,i=Number(t[3]),r=void 0!==t[4],s=r?Number(t[4]):0,n=r?Number(t[5]):0,l=r?Number(t[6]):0,c=r&&t[7]?Number(t[7]):0,d=t[8];if(!r&&!d)return new Date(a,o,i);if(r&&!d)return new Date(a,o,i,s,n,l,c);if("Z"===d)return new Date(Date.UTC(a,o,i,s,n,l,c));if(d&&/^[+-]\d{2}:\d{2}$/.test(d)){const e=d.startsWith("-")?-1:1,[t,r]=d.slice(1).split(":").map(Number),h=e*(60*t+r),m=Date.UTC(a,o,i,s,n,l,c);return new Date(m-6e4*h)}return null},toAttribute:e=>e?.toISOString()??null},xl={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},wl="important",kl=" !"+wl;const Cl=Ze(class extends Ge{constructor(e){if(super(e),e.type!==Xe.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return n}update(e,[t]){const{style:a}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?a.removeProperty(e):a[e]=null);for(const e in t){const o=t[e];if(null!=o){this._previousStyleProperties.add(e);const t="string"==typeof o&&o.endsWith(kl);e.includes("-")||t?a.setProperty(e,t?o.slice(0,-11):o,t?wl:""):a[e]=o}}return c}});function Sl(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const _l=Symbol("internals");function Ll(e){return Sl(e,_l)}const El=Symbol("_internals"),zl=Symbol("_customState");function Ml(e,t){var a;class o extends e{constructor(){super(...arguments),this[a]=new Set}get[(a=zl,_l)](){return this[El]??(this[El]=this.attachInternals())}}return o.formAssociated=t,o}function Tl(e,t){return zl in e?e[zl].has(t):e[_l].states.has(t)}function Pl(e,t){zl in e&&e[zl].add(t),e[_l]?.states.add(t),e[_l]?.states.has(t)}function Il(e,t){return zl in e&&e[zl].delete(t),!!e[_l]?.states.delete(t)&&(e[_l]?.states.has(t),!0)}function Wl(e,t,a){a?Pl(e,t):Il(e,t)}function Dl(e){return Sl(e,"checked")}function Al(e){class a extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"checked",void 0),a}function Hl(e){return Sl(e,"indeterminate")&&Dl(e)}function Ol(e){class a extends(Al(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"indeterminate",void 0),a}function Bl(e){return Sl(e,"selected")}function Fl(e){class a extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"selected",void 0),a}function ql(e){return Dl(e)||Bl(e)}function Vl(e){return Dl(e)&&e.checked||Bl(e)&&e.selected}function Rl(e,t){Dl(e)?e.checked=t:e.selected=t}function Ul(e){return Sl(e,"dirty","pristine","markAsDirty","markAsPristine")}const Nl=Symbol("_eventHandler");function jl(e){var t;return t=Nl,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Tl(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[Nl])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[Nl])}markAsPristine(){Il(this,"-dirty")}markAsDirty(){Pl(this,"-dirty")}}}function Yl(e){return Sl(e,"touched","untouched","markAsTouched","markAsUntouched")}const Kl=Symbol("_eventHandler");function Zl(e){var t;return t=Kl,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Tl(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[Kl],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Kl],{capture:!0})}markAsTouched(){Pl(this,"-touched")}markAsUntouched(){Il(this,"-touched")}}}const Gl={primary:o("var(--md-sys-color-primary, #6750A4)"),onPrimary:o("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:o("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:o("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:o("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:o("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:o("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:o("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:o("var(--md-sys-color-secondary, #625B71)"),onSecondary:o("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:o("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:o("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:o("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:o("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:o("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:o("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:o("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:o("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:o("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:o("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:o("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:o("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:o("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:o("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:o("var(--md-sys-color-error, #B3261E)"),onError:o("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:o("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:o("var(--md-sys-color-on-error-container, #8C1D18)"),surface:o("var(--md-sys-color-surface, #FEF7FF)"),onSurface:o("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:o("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:o("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:o("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:o("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:o("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:o("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:o("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:o("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:o("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:o("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:o("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:o("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:o("var(--md-sys-color-outline, #79747E)"),outlineVariant:o("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:o("var(--md-sys-color-shadow, #000000)"),scrim:o("var(--md-sys-color-scrim, #000000)")},Xl={scale:o("var(--md-sys-density-scale, 0)"),size:o("var(--md-sys-density-size, 0.25rem)")},Jl={...Xl,calc:e=>o(`calc(max(${e}, ${Xl.scale}) * ${Xl.size})`)},Ql=`color-mix(in srgb, var(--m3e-elevation-color, ${Gl.shadow}) 20%, transparent)`,ec=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],tc=`color-mix(in srgb, var(--m3e-elevation-color, ${Gl.shadow}) 14%, transparent)`,ac=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],oc=`color-mix(in srgb, var(--m3e-elevation-color, ${Gl.shadow}) 12%, transparent)`,ic=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function rc(e){return`${Ql} ${ec[e]},${tc} ${ac[e]},${oc} ${ic[e]}`}const sc={level0:o(`var(--md-sys-elevation-level0, ${rc(0)})`),level1:o(`var(--md-sys-elevation-level1, ${rc(1)})`),level2:o(`var(--md-sys-elevation-level2, ${rc(3)})`),level3:o(`var(--md-sys-elevation-level3, ${rc(6)})`),level4:o(`var(--md-sys-elevation-level4, ${rc(8)})`),level5:o(`var(--md-sys-elevation-level5, ${rc(12)})`)},nc={emphasized:o("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:o("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:o("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:o("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:o("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:o("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},lc={fastSpatial:o("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:o("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:o("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:o("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:o("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:o("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},cc={easing:nc,duration:{short1:o("var(--md-sys-motion-duration-short-1, 50ms)"),short2:o("var(--md-sys-motion-duration-short-2, 100ms)"),short3:o("var(--md-sys-motion-duration-short-3, 150ms)"),short4:o("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:o("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:o("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:o("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:o("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:o("var(--md-sys-motion-duration-long-1, 450ms)"),long2:o("var(--md-sys-motion-duration-long-2, 500ms)"),long3:o("var(--md-sys-motion-duration-long-3, 550ms)"),long4:o("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:o("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:o("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:o("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:o("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:lc},dc={width:o("var(--m3e-scrollbar-width, auto)"),thinWidth:o("var(--m3e-scrollbar-thin-width, thin)"),color:o("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},hc={none:o("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:o("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:o("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:o("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:o("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:o("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:o("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:o("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:o("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},mc={color:Gl,elevation:sc,motion:cc,shape:{corner:{full:o("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:o(`var(--md-sys-shape-corner-extra-large-top, ${hc.extraLarge} ${hc.extraLarge} ${hc.none} ${hc.none})`),extraLarge:o(`var(--md-sys-shape-corner-extra-large, ${hc.extraLarge})`),extraLargeEnd:o(`${hc.none} ${hc.extraLarge} ${hc.extraLarge} ${hc.none}`),extraLargeStart:o(`${hc.extraLarge} ${hc.none} ${hc.none} ${hc.extraLarge}`),largeTop:o(`var(--md-sys-shape-corner-large-top, ${hc.large} ${hc.large} ${hc.none} ${hc.none})`),largeEnd:o(`var(--md-sys-shape-corner-large-end, ${hc.none} ${hc.large} ${hc.large} ${hc.none})`),largeStart:o(`var(--md-sys-shape-corner-large-end, ${hc.large} ${hc.none} ${hc.none} ${hc.large})`),large:o(`var(--md-sys-shape-corner-large, ${hc.large})`),medium:o(`var(--md-sys-shape-corner-medium, ${hc.medium})`),mediumTop:o(`${hc.medium} ${hc.medium} ${hc.none} ${hc.none}`),mediumEnd:o(`${hc.none} ${hc.medium} ${hc.medium} ${hc.none}`),mediumStart:o(`${hc.medium} ${hc.none} ${hc.none} ${hc.medium}`),small:o(`var(--md-sys-shape-corner-small, ${hc.small})`),smallTop:o(`${hc.small} ${hc.small} ${hc.none} ${hc.none}`),smallEnd:o(`${hc.none} ${hc.small} ${hc.small} ${hc.none}`),smallStart:o(`${hc.small} ${hc.none} ${hc.none} ${hc.small}`),extraSmallTop:o(`var(--md-sys-shape-corner-extra-small-top, ${hc.extraSmall} ${hc.extraSmall} ${hc.none} ${hc.none})`),extraSmall:o(`var(--md-sys-shape-corner-extra-small, ${hc.extraSmall})`),extraSmallEnd:o(`${hc.none} ${hc.extraSmall} ${hc.extraSmall} ${hc.none}`),extraSmallStart:o(`${hc.extraSmall} ${hc.none} ${hc.none} ${hc.extraSmall}`),extraSmallBottom:o(`${hc.none} ${hc.none} ${hc.extraSmall} ${hc.extraSmall}`),none:o(`var(--md-sys-shape-corner-none, ${hc.none})`),largeIncreased:o(`var(--md-sys-shape-corner-large-increased, ${hc.largeIncreased})`),extraLargeIncreased:o(`var(--md-sys-shape-corner-extra-large-increased, ${hc.extraLargeIncreased})`),extraExtraLarge:o(`var(--md-sys-shape-corner-extra-extra-large, ${hc.extraExtraLarge})`),value:hc}},state:{focusStateLayerOpacity:o("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:o("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:o("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:o("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:o("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:dc,density:Jl};function pc(e){return Sl(e,"disabled")}function uc(e,a=!0){class o extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return t([m({type:Boolean,reflect:a})],o.prototype,"disabled",void 0),o}function vc(e){return Sl(e,"disabledInteractive")&&pc(e)}const bc=["click","dblclick","auxclick","keydown","keyup"],fc=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],gc=Symbol("_suppressedEventHandler");function yc(e){var a;class o extends e{constructor(){super(...arguments),this[a]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&fc.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){bc.forEach(e=>this.addEventListener(e,this[gc],!0)),super.connectedCallback()}disconnectedCallback(){bc.forEach(e=>this.removeEventListener(e,this[gc],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return a=gc,t([m({attribute:"disabled-interactive",type:Boolean,reflect:!0})],o.prototype,"disabledInteractive",void 0),o}const $c=Symbol("updateLabels");function xc(e){return Sl(e,"labels")&&Ll(e)}const wc=Symbol("_eventHandler");function kc(e){var t;class a extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[$c]()}}get labels(){return this[_l].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[wc]),this.addEventListener("change",this[wc])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[wc]),this.removeEventListener("change",this[wc])}update(e){super.update(e),this[$c]()}[(t=wc,$c)](){const e=this.hasAttribute("tabindex"),t=pc(this)&&this.disabled||vc(this)&&this.disabledInteractive,a=Yl(this)&&this.touched&&(this.ariaInvalid||Tl(this,"-invalid"));for(const o of this.labels??[])o.style.userSelect=e?"none":"",o.style.cursor=!t&&e?"pointer":"",!t&&e?o.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):o.style.removeProperty("-webkit-tap-highlight-color"),o.style.color=t?`color-mix(in srgb, ${mc.color.onSurface} 38%, transparent)`:a?`${mc.color.error}`:""}}return a.formAssociated=!0,a}const Cc=Symbol("formValue"),Sc=Symbol("defaultValue");function _c(e){return Sl(e,"disabled","form","name")&&xc(e)&&Ll(e)}const Lc=Symbol("_defaultValue"),Ec=Symbol("_defaultIndeterminate"),zc=Symbol("_formDisabled");function Mc(e){var a,o;class i extends e{constructor(){super(...arguments),this[a]=!1,this[o]=!1}get form(){return this[_l].form}get labels(){return this[_l].labels}get[(a=Ec,o=zc,Cc)](){return null}get[Sc](){return this[Lc]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[zc]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Dl(this)?(this[Lc]=this.checked,Hl(this)&&(this[Ec]=this.indeterminate)):"value"in this&&(this[Lc]=this.value)}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[_l].setFormValue(this[Cc])}formDisabledCallback(e){const t=this.disabled;this[zc]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Dl(this)?(this.checked=!0===this[Lc],Hl(this)&&(this.indeterminate=this[Ec])):"value"in this&&(this.value=this[Sc]),Ul(this)&&this.markAsPristine(),Yl(this)&&this.markAsUntouched()}}return i.formAssociated=!0,t([m({noAccessor:!0})],i.prototype,"name",null),t([m({type:Boolean})],i.prototype,"disabled",null),i}const Tc=Symbol("validate");function Pc(e){return Sl(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&_c(e)}const Ic=Symbol("_updateValidity"),Wc=Symbol("_validityMessage");function Dc(t){var a,o;class i extends t{constructor(){super(...arguments),a.add(this)}get willValidate(){return this[_l].willValidate}get validity(){return this[Ic](),this[_l].validity}get validationMessage(){return this[Ic](),this[_l].validationMessage}[(a=new WeakSet,Tc)](){return this[Wc]?{customError:!0}:void 0}reportValidity(){return Yl(this)&&this.markAsTouched(),this[Ic](),this[_l].reportValidity()}checkValidity(){return this[Ic](),this[_l].checkValidity()}setCustomValidity(e){this[Wc]=e||void 0,this[Ic]()}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[Ic]()}firstUpdated(e){super.firstUpdated(e),this[Ic]()}[Ic](){if(l||!this.isConnected)return;const t=this[Tc](),i=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[Wc]:"";t&&!r&&(r=e(this,a,"m",o).call(this,t)),this[_l].setValidity(t,r),this.ariaInvalid=i?"true":null,Wl(this,"-invalid",!0===i),xc(this)&&this[$c]?.()}}return o=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},i}function Ac(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Hc=Symbol("_tabindex");function Oc(e){var t;return t=Hc,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Hc]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Hc]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Hc]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Hc]}`)}}}function Bc(e){return Sl(e,"name","type","value")&&Ll(e)}const Fc=Symbol("_clickHandler");function qc(e){var a;class o extends e{constructor(){super(...arguments),this.type="button",this[a]=async e=>{if(e.defaultPrevented||pc(this)&&this.disabled||vc(this)&&this.disabledInteractive)return;const t=this[_l].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[_l].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Fc])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Fc])}}return a=Fc,o.formAssociated=!0,t([m()],o.prototype,"name",null),t([m()],o.prototype,"value",null),t([m()],o.prototype,"type",void 0),o}function Vc(e){return Sl(e,"htmlFor","control","attach","detach")}const Rc=Symbol("_control"),Uc=Symbol("_firstUpdated");function Nc(e){var a;class o extends e{constructor(){super(...arguments),this[a]=!1,this.htmlFor=null}get control(){return this[Rc]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[Rc]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[Rc];e&&(this.detach(),this[Rc]=e)}firstUpdated(e){super.firstUpdated(e),this[Uc]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&Rn(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[Uc]&&this.detach()}attach(e){this[Rc]=new WeakRef(e)}detach(){this[Rc]=void 0}}return a=Uc,t([m({attribute:"for"})],o.prototype,"htmlFor",void 0),o}function jc(t,o=!0){var i,r,s,n,l,c,d;return r=new WeakMap,s=new WeakMap,n=new WeakMap,l=new WeakMap,i=new WeakSet,c=function(e){e.target!==e.currentTarget||pc(this)&&this.disabled||vc(this)&&this.disabledInteractive?a(this,r,!1,"f"):(" "===e.key||o&&"Enter"===e.key)&&a(this,r,!0,"f")},d=function(t){t.target!==t.currentTarget||pc(this)&&this.disabled||vc(this)&&this.disabledInteractive||!e(this,r,"f")?a(this,r,!1,"f"):(a(this,r,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends t{constructor(){super(...arguments),i.add(this),r.set(this,!1),s.set(this,t=>e(this,i,"m",c).call(this,t)),n.set(this,t=>e(this,i,"m",d).call(this,t)),l.set(this,()=>a(this,r,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,s,"f")),this.addEventListener("keyup",e(this,n,"f")),this.addEventListener("focusout",e(this,l,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,s,"f")),this.removeEventListener("keyup",e(this,n,"f")),this.removeEventListener("focusout",e(this,l,"f"))}}}const Yc=Symbol("renderPseudoLink");function Kc(e){return Sl(e,"download","href","rel","target")}const Zc=Symbol("_clickHandler");function Gc(a){var o,i,r,l,c;class d extends a{constructor(){super(...arguments),o.add(this),this[c]=async e=>{if(vc(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Zc]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Zc])}[(o=new WeakSet,c=Zc,Yc)](){const t=pc(this)&&this.disabled,a=vc(this)&&this.disabledInteractive;return t||a||!this.href?n:s`<a href="${this.href}" target="${je(this.target||void 0)}" rel="${je(this.rel||void 0)}" download="${je(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${e(this,o,"m",i)}" @focus="${e(this,o,"m",r)}" @blur="${e(this,o,"m",l)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},l=function(e){e.target.setAttribute("aria-hidden","true")},t([m()],d.prototype,"href",void 0),t([m()],d.prototype,"target",void 0),t([m()],d.prototype,"rel",void 0),t([m({reflect:!1})],d.prototype,"download",null),d}function Xc(e){return Sl(e,"readOnly")}function Jc(e,a=!0){class o extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return t([m({attribute:"readonly",type:Boolean,reflect:a})],o.prototype,"readOnly",void 0),o}const Qc=Symbol("_wasConnected");function ed(e){var t;return t=Qc,class extends e{constructor(){super(...arguments),this[t]=!1}reconnectedCallback(){}connectedCallback(){super.connectedCallback(),this[Qc]&&this.reconnectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this[Qc]=!0}}}function td(e){return Sl(e,"required","optional")}function ad(e){class a extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"required",void 0),a}function od(e){return td(e)&&Pc(e)}function id(e){return class extends e{[Tc](){const e=super[Tc]();if(!e&&this.required){if(Dl(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function rd(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function sd(e){return class extends e{connectedCallback(){super.connectedCallback(),Pl(this,"-no-animate"),requestAnimationFrame(()=>Il(this,"-no-animate"))}}}function nd(e){return Sl(e,"vertical")}function ld(e){class a extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return t([m({type:Boolean,reflect:!0})],a.prototype,"vertical",void 0),a}var cd,dd,hd,md,pd,ud,vd,bd;class fd extends r{constructor(){super(...arguments),cd.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",e(this,cd,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",e(this,cd,"f"))}render(){return s`<slot></slot>`}}cd=new WeakMap,fd.styles=i`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let gd=class extends(Ac(Ml(r),"opening","opened","closing","closed")){constructor(){super(...arguments),dd.add(this),hd.set(this,!1),md.set(this,!1),this.open=!1}update(t){if(super.update(t),Pl(this,"-no-animate"),!e(this,hd,"f"))return this.open&&(a(this,md,!0,"f"),e(this,dd,"m",ud).call(this)),void a(this,hd,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(a(this,md,!0,"f"),qn()||(e(this,dd,"m",ud).call(this),Wl(this,"-overflows",this.clientHeight<this.scrollHeight),e(this,dd,"m",vd).call(this)),Il(this,"-closing"),Pl(this,"-opening"),this.dispatchEvent(new Event("opening")),e(this,dd,"m",vd).call(this),Il(this,"-no-animate"),e(this,dd,"m",bd).call(this),qn()?(e(this,dd,"m",ud).call(this),Il(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(e(this,dd,"m",ud).call(this),Il(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(Il(this,"-opening"),Pl(this,"-closing"),this.dispatchEvent(new Event("closing")),e(this,dd,"m",bd).call(this),e(this,md,"f")&&Il(this,"-no-animate"),qn()?(e(this,dd,"m",vd).call(this),Il(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{e(this,dd,"m",vd).call(this),this.addEventListener("transitionend",()=>{this.open||(Il(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return s`<slot @slotchange="${e(this,dd,"m",pd)}"></slot>`}};hd=new WeakMap,md=new WeakMap,dd=new WeakSet,pd=function(){a(this,hd,!0,"f")},ud=function(){this.style.height="auto"},vd=function(){this.style.height=""},bd=function(){this.style.height=`${this.scrollHeight}px`},gd.styles=i`:host { display: block; height: 0px; overflow: hidden; transition: ${o(`visibility var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${mc.motion.duration.medium1})\n ${mc.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,t([m({type:Boolean,reflect:!0})],gd.prototype,"open",void 0),gd=t([al("m3e-collapsible")],gd);const yd=o(`var(--m3e-elevation-lift-duration, ${mc.motion.duration.short4})`),$d=o(`var(--m3e-elevation-lift-easing, ${mc.motion.easing.standard})`),xd=o(`var(--m3e-elevation-settle-duration, ${mc.motion.duration.short3})`),wd=o(`var(--m3e-elevation-settle-easing, ${mc.motion.easing.standardAccelerate})`),kd=o(`var(--m3e-elevation-level, ${mc.elevation.level0})`),Cd=o(`var(--m3e-elevation-hover-level, ${mc.elevation.level0})`),Sd=o(`var(--m3e-elevation-focus-level, ${mc.elevation.level0})`),_d=o(`var(--m3e-elevation-pressed-level, ${mc.elevation.level0})`);var Ld,Ed,zd,Md,Td,Pd,Id;let Wd=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),Ld.add(this),Ed.set(this,new Zn(this,{target:null,callback:t=>e(this,Ld,"m",Td).call(this,t)})),zd.set(this,new Kn(this,{target:null,callback:t=>e(this,Ld,"m",Pd).call(this,t)})),Md.set(this,new el(this,{target:null,callback:t=>e(this,Ld,"m",Id).call(this,t)})),this.disabled=!1,this.level=null}attach(t){super.attach(t),e(this,Ed,"f").observe(t),e(this,zd,"f").observe(t),e(this,Md,"f").observe(t)}detach(){this.control&&(e(this,Ed,"f").unobserve(this.control),e(this,zd,"f").unobserve(this.control),e(this,Md,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return s`<div class="shadow"></div>`}};Ed=new WeakMap,zd=new WeakMap,Md=new WeakMap,Ld=new WeakSet,Td=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Pd=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Id=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Wd.styles=i`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${o(`box-shadow ${xd} ${wd};`)}; } .shadow.hover { will-change: box-shadow; transition: ${o(`box-shadow ${yd} ${$d};`)}; } .shadow { box-shadow: ${kd}; } .shadow.focus { box-shadow: ${Sd}; } .shadow.hover { box-shadow: ${Cd}; } .shadow.pressed { box-shadow: ${_d}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${mc.elevation.level0}; --m3e-elevation-hover-level: ${mc.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${mc.elevation.level1}; --m3e-elevation-hover-level: ${mc.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${mc.elevation.level2}; --m3e-elevation-hover-level: ${mc.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${mc.elevation.level3}; --m3e-elevation-hover-level: ${mc.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${mc.elevation.level4}; --m3e-elevation-hover-level: ${mc.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${mc.elevation.level5}; --m3e-elevation-hover-level: ${kd}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${kd}; --m3e-elevation-pressed-level: ${kd}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,t([h(".shadow")],Wd.prototype,"_shadow",void 0),t([m({type:Boolean,reflect:!0})],Wd.prototype,"disabled",void 0),t([m({type:Number,reflect:!0})],Wd.prototype,"level",void 0),Wd=t([al("m3e-elevation")],Wd);const Dd=o(`var(--m3e-focus-ring-color, ${mc.color.secondary})`),Ad=o(`var(--m3e-focus-ring-duration, ${mc.motion.duration.long2})`),Hd=o("var(--m3e-focus-ring-thickness, 3px)"),Od=o("var(--m3e-focus-ring-outward-offset, 2px)"),Bd=o("var(--m3e-focus-ring-inward-offset, 0px)"),Fd=o("var(--m3e-focus-ring-visibility, visible)"),qd=o("var(--m3e-focus-ring-growth-factor, 2)");var Vd,Rd,Ud;let Nd=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),Vd.add(this),Rd.set(this,new Kn(this,{target:null,callback:(t,a)=>e(this,Vd,"m",Ud).call(this,a)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(t){super.attach(t),e(this,Rd,"f").observe(t)}detach(){this.control&&e(this,Rd,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return s`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Rd=new WeakMap,Vd=new WeakSet,Ud=function(e){this.disabled||(e?this.show():this.hide())},Nd.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${Dd}; outline-width: ${Hd}; visibility: ${Fd}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Od}; } :host([inward]) .outline { outline-offset: calc(${Bd} - ${Hd}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Ad}; } :host([inward]) .outline.visible { animation: shrink-grow ${Ad}; } @keyframes grow-shrink { 50% { outline-width: calc(${Hd} * ${qd}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Bd} - calc(${Hd} * ${qd}) ); outline-width: calc(${Hd} * ${qd}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,t([h(".outline")],Nd.prototype,"_outline",void 0),t([m({type:Boolean,reflect:!0})],Nd.prototype,"inward",void 0),t([m({type:Boolean,reflect:!0})],Nd.prototype,"disabled",void 0),Nd=t([al("m3e-focus-ring")],Nd);let jd=class extends(Ol(uc(rd(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n}};jd.styles=i`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${mc.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${mc.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${mc.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${mc.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${mc.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${mc.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); } svg { pointer-events: none; } @media (forced-colors: active) { :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { border-color: Highlight; background-color: Highlight; color: HighlightText; } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: CanvasText; background: Canvas; } :host([disabled]:not([checked]):not([indeterminate])) { border-color: GrayText; background-color: Canvas; } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: GrayText; color: Canvas; } }`,jd=t([al("m3e-pseudo-checkbox")],jd);let Yd=class extends(Al(uc(rd(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};Yd.styles=i`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${mc.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${mc.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${mc.color.onSurface}) 38%, transparent); } @media (forced-colors: active) { :host { border-radius: 50%; } :host(:not([checked])) { color: CanvasText; background-color: Canvas; } :host([checked]) { color: HighlightText; background-color: Highlight; } :host([disabled]) { color: GrayText; background-color: Canvas; } }`,Yd=t([al("m3e-pseudo-radio")],Yd);const Kd=o(`var(--m3e-ripple-color, ${mc.color.onSurface})`),Zd=o(`var(--m3e-ripple-opacity, ${mc.state.pressedStateLayerOpacity})`),Gd=o(`var(--m3e-ripple-enter-duration, ${mc.motion.duration.long4})`),Xd=o(`var(--m3e-ripple-exit-duration, ${mc.motion.duration.short2})`),Jd=o("var(--m3e-ripple-scale-factor, 2.5)");var Qd,eh,th,ah,oh,ih;let rh=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),Qd.add(this),eh.set(this,null),th.set(this,new el(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,{x:a,y:o})=>e(this,Qd,"m",ih).call(this,t,a,o)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==e(this,eh,"f")}show(t,o,i=!1){e(this,Qd,"m",ah).call(this);const r=this.getBoundingClientRect();this.centered&&(t=r.left+r.width/2,o=r.top+r.height/2);let s=this.radius;if(!s||isNaN(s)){const e=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),a=Math.max(Math.abs(o-r.top),Math.abs(o-r.bottom));s=Math.sqrt(e*e+a*a)}const n=t-r.left,l=o-r.top;a(this,eh,document.createElement("div"),"f"),e(this,eh,"f").classList.add("ripple"),i&&e(this,eh,"f").classList.add("persistent"),e(this,eh,"f").style.left=n-s+"px",e(this,eh,"f").style.top=l-s+"px",e(this,eh,"f").style.width=2*s+"px",e(this,eh,"f").style.height=2*s+"px",e(this,eh,"f").addEventListener("animationend",()=>e(this,Qd,"m",oh).call(this,i),{once:!0}),e(this,eh,"f").addEventListener("transitionend",()=>e(this,Qd,"m",ah).call(this),{once:!0}),this.shadowRoot?.appendChild(e(this,eh,"f"))}hide(){e(this,eh,"f")?.classList.add("exit")}attach(t){super.attach(t),e(this,th,"f").observe(t)}detach(){this.control&&e(this,th,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,Qd,"m",ah).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var sh;eh=new WeakMap,th=new WeakMap,Qd=new WeakSet,ah=function(){e(this,eh,"f")?.remove(),a(this,eh,null,"f")},oh=function(t){t?e(this,eh,"f")?.classList.add("pressed"):this.hide()},ih=function(e,t,a){this.disabled||(e?this.show(t,a,!0):this.hide())},rh.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${mc.shape.corner.full}; background-color: color-mix(in srgb, ${Kd} ${Zd}, transparent); will-change: background-color, opacity; animation: ripple ${Gd} linear; } .ripple.persistent.pressed { transform: scale(${Jd}); } .ripple.exit { transition: opacity ${Xd} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Jd}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Jd}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,t([m({type:Boolean,reflect:!0})],rh.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],rh.prototype,"centered",void 0),t([m({type:Boolean,reflect:!0})],rh.prototype,"unbounded",void 0),t([m({type:Number})],rh.prototype,"radius",void 0),rh=t([al("m3e-ripple")],rh);let nh=class extends(Ml(r)){constructor(){super(...arguments),sh.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",e(this,sh,"f"))}update(t){super.update(t),t.has("dividers")&&(this.removeEventListener("scroll",e(this,sh,"f")),"none"!==this.dividers&&this.addEventListener("scroll",e(this,sh,"f"),{passive:!0}))}render(){return s`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;Wl(this,"-above",e),Wl(this,"-below",t)}};var lh,ch,dh,hh;sh=new WeakMap,nh.styles=i`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${mc.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Dd}; outline-width: ${Hd}; outline-offset: ${Od}; } :host([thin]) { scrollbar-width: ${mc.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${mc.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${mc.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${mc.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Ad}; } @keyframes grow-shrink { 50% { outline-width: calc(${Hd} * ${qd}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,t([m()],nh.prototype,"dividers",void 0),t([m({type:Boolean,reflect:!0})],nh.prototype,"thin",void 0),t([ol(40)],nh.prototype,"_updateScroll",null),nh=t([al("m3e-scroll-container")],nh);let mh=class extends(Ml(r)){constructor(){super(...arguments),lh.add(this),ch.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Pl(this,"-no-animate")}update(t){super.update(t),t.has("selectedIndex")&&(null===this.selectedIndex&&Pl(this,"-no-animate"),e(this,lh,"m",hh).call(this),null!==this.selectedIndex&&Tl(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&Il(this,"-no-animate")}))}render(){return s`<slot @slotchange="${e(this,lh,"m",dh)}"></slot>`}};ch=new WeakMap,lh=new WeakSet,dh=function(t){const o=[...t.target.assignedElements({flatten:!0})];for(const t of e(this,ch,"f").filter(e=>!o.includes(e)))t.classList.remove("-before"),t.classList.remove("-after"),t.removeAttribute("inert");a(this,ch,o,"f"),e(this,lh,"m",hh).call(this)},hh=function(){const t=this.selectedIndex??e(this,ch,"f").length;for(let a=0;a<e(this,ch,"f").length;a++){const o=e(this,ch,"f")[a];o.classList.toggle("-before",a<t),o.classList.toggle("-after",a>t),o.toggleAttribute("inert",a!==t)}},mh.styles=i`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${o(`inset-inline-start var(--m3e-slide-animation-duration, ${mc.motion.duration.long2}) ${mc.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${mc.motion.duration.long2}) ${mc.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,t([m({attribute:"selected-index",type:Number,reflect:!0})],mh.prototype,"selectedIndex",void 0),mh=t([al("m3e-slide")],mh);const ph=o(`var(--m3e-state-layer-hover-color, ${mc.color.onSurface})`),uh=o(`var(--m3e-state-layer-hover-opacity, ${mc.state.hoverStateLayerOpacity})`),vh=o(`var(--m3e-state-layer-focus-color, ${mc.color.onSurface})`),bh=o(`var(--m3e-state-layer-focus-opacity, ${mc.state.focusStateLayerOpacity})`),fh=o(`var(--m3e-state-layer-duration, ${mc.motion.duration.medium1})`),gh=o(`var(--m3e-state-layer-easing, ${mc.motion.easing.standard})`);var yh,$h,xh,wh,kh;let Ch=class extends(Nc(rd(r,"none"))){constructor(){super(...arguments),yh.add(this),$h.set(this,new Zn(this,{target:null,callback:t=>e(this,yh,"m",wh).call(this,t)})),xh.set(this,new Kn(this,{target:null,callback:(t,a)=>e(this,yh,"m",kh).call(this,a)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(t){super.attach(t),e(this,$h,"f").observe(t),e(this,xh,"f").observe(t)}detach(){this.control&&(e(this,$h,"f").unobserve(this.control),e(this,xh,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return s`<div class="layer"></div>`}};var Sh,_h,Lh,Eh,zh,Mh,Th,Ph;$h=new WeakMap,xh=new WeakMap,yh=new WeakSet,wh=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},kh=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Ch.styles=i`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${o(`background-color ${fh} ${gh}`)}; } .layer.focused { background-color: color-mix(in srgb, ${vh} ${bh}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${ph} ${uh}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,t([h(".layer")],Ch.prototype,"_layer",void 0),t([m({type:Boolean,reflect:!0})],Ch.prototype,"disabled",void 0),t([m({attribute:"disable-hover",type:Boolean,reflect:!0})],Ch.prototype,"disableHover",void 0),Ch=t([al("m3e-state-layer")],Ch);let Ih=Ph=class extends r{constructor(){super(),Sh.add(this),_h.set(this,"m3e-text-highlight-"+Ph.__nextId++),Lh.set(this,new Array),Eh.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(a(this,Eh,new CSSStyleSheet,"f"),e(this,Eh,"f").replaceSync(i`::highlight(${o(e(this,_h,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${mc.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${mc.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(l||!CSS.highlights)}get ranges(){return e(this,Lh,"f")}firstUpdated(t){super.firstUpdated(t),this.shadowRoot&&e(this,Eh,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,Eh,"f"))&&this.shadowRoot.adoptedStyleSheets.push(e(this,Eh,"f"))}updated(t){super.updated(t),(t.has("term")||t.has("caseSensitive")||t.has("disabled"))&&e(this,Sh,"m",Th).call(this)}render(){return s`<slot @slotchange="${e(this,Sh,"m",Th)}"></slot>`}};_h=new WeakMap,Lh=new WeakMap,Eh=new WeakMap,Sh=new WeakSet,zh=function(e){return!/^\s*$/.test(e.data)},Mh=function t(a,o){a instanceof HTMLSlotElement?a.assignedNodes({flatten:!0}).forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,Sh,"m",zh).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,Sh,"m",t).call(this,a,o)}}):a.childNodes.forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,Sh,"m",zh).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,Sh,"m",t).call(this,a,o)}})},Th=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(e(this,_h,"f")),e(this,Lh,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Lh,"f")],bubbles:!1,composed:!1}));const t=new Array;if(e(this,Sh,"m",Mh).call(this,this,t),t.length>0){const o=this.caseSensitive?this.term:this.term.toLowerCase();switch(this.mode){case"starts-with":{const a=t[0];if(((this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"").startsWith(o)){const t=new Range;t.setStart(a,0),t.setEnd(a,o.length),e(this,Lh,"f").push(t)}}break;case"ends-with":{const a=t[t.length-1],i=(this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"";if(i.endsWith(o)){const t=i.length-o.length,r=t+o.length,s=new Range;s.setStart(a,t),s.setEnd(a,r),e(this,Lh,"f").push(s)}}break;case"contains":a(this,Lh,t.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:t})=>{const a=new Array;let i=0;for(;i<t.length;){const e=t.indexOf(o,i);if(-1===e)break;a.push(e),i=e+o.length}return a.map(t=>{const a=new Range;return a.setStart(e,t),a.setEnd(e,t+o.length),a})}).flat(),"f")}e(this,Lh,"f").length>0&&CSS.highlights.set(e(this,_h,"f"),new Highlight(...e(this,Lh,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Lh,"f")],bubbles:!1,composed:!1}))},Ih.styles=i`:host { display: contents; }`,Ih.__nextId=0,t([m({type:Boolean,reflect:!0})],Ih.prototype,"disabled",void 0),t([m()],Ih.prototype,"term",void 0),t([m({attribute:"case-sensitive",type:Boolean})],Ih.prototype,"caseSensitive",void 0),t([m()],Ih.prototype,"mode",void 0),Ih=Ph=t([al("m3e-text-highlight")],Ih);let Wh=class extends r{render(){return s`<span class="base"><slot></slot></span>`}};var Dh,Ah,Hh,Oh,Bh,Fh,qh,Vh,Rh,Uh,Nh,jh,Yh,Kh,Zh,Gh,Xh,Jh,Qh,em,tm,am,om;Wh.styles=i`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Wh=t([al("m3e-text-overflow")],Wh);let im=om=class extends(T(M(P(f(r,"dialog"))))){constructor(){super(...arguments),Dh.add(this),Ah.set(this,void 0),Hh.set(this,void 0),Oh.set(this,void 0),Bh.set(this,void 0),Fh.set(this,new W(this)),qh.set(this,new D(this)),Vh.set(this,t=>e(this,Dh,"m",jh).call(this,t)),Rh.set(this,t=>e(this,Dh,"m",Xh).call(this,t)),Uh.set(this,t=>{"closed"===t.newState&&(e(this,Dh,"m",am).call(this),e(this,Bh,"f")?.call(this),a(this,Bh,void 0,"f"))}),this.variant="docked",this.startView="month",this.date=null,this.startAt=null,this.minDate=null,this.maxDate=null,this.rangeStart=null,this.rangeEnd=null,this.blackoutDates=null,this.specialDates=null,this.previousMonthLabel="Previous month",this.previousYearLabel="Previous year",this.previousMultiYearLabel="Previous 24 years",this.nextMonthLabel="Next month",this.nextYearLabel="Next year",this.nextMultiYearLabel="Next 24 years",this.clearable=!1,this.clearLabel="Clear",this.confirmLabel="OK",this.dismissLabel="Cancel",this.label="Select date"}get isOpen(){return void 0!==e(this,Hh,"f")}get currentVariant(){return this._variant??("modal"!==this.variant?"docked":"modal")}connectedCallback(){super.connectedCallback(),this.setAttribute("popover","manual"),this.addEventListener("toggle",e(this,Uh,"f")),document.addEventListener("click",e(this,Vh,"f")),document.addEventListener("keydown",e(this,Rh,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._variant=void 0,e(this,Ah,"f")?.call(this),e(this,Dh,"m",tm).call(this),C(this,"-docked"),C(this,"-modal"),this.removeEventListener("toggle",e(this,Uh,"f")),document.removeEventListener("click",e(this,Vh,"f")),document.removeEventListener("keydown",e(this,Rh,"f"))}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.variant&&e(this,Dh,"m",Jh).call(this)}async show(t,o){e(this,Hh,"f")&&e(this,Hh,"f")!==t&&this.hide(),"modal"===this.currentVariant&&(e(this,Fh,"f").lock(),e(this,qh,"f").lock());const i=this._calendar;i.date=this.date,i.rangeStart=this.rangeStart,i.rangeEnd=this.rangeEnd,i.requestUpdate("startView"),i.isUpdatePending&&await i.updateComplete,a(this,Hh,t,"f"),e(this,Hh,"f").ariaExpanded="true",a(this,Oh,o,"f"),await e(this,Dh,"m",em).call(this),this.showPopover(),await this._calendar.focusActiveCell()}hide(t=!1){"modal"===this.currentVariant&&(e(this,Fh,"f").unlock(),e(this,qh,"f").unlock()),this.hidePopover(),e(this,Hh,"f")&&(e(this,Hh,"f").ariaExpanded="false",t&&e(this,Hh,"f").focus(),a(this,Hh,void 0,"f"))}async toggle(t,a){e(this,Hh,"f")?this.hide():await this.show(t,a)}render(){return s`<m3e-focus-trap>${e(this,Dh,"m",Nh).call(this)}<m3e-calendar class="calendar" start-view="${this.startView}" start-at="${je(this.startAt?.toISOString())}" min-date="${je(this.minDate?.toISOString())}" max-date="${je(this.maxDate?.toISOString())}" @change="${e(this,Dh,"m",Yh)}"></m3e-calendar><div class="actions">${this.clearable?s`<m3e-button @click="${e(this,Dh,"m",Kh)}">${this.clearLabel}</m3e-button>`:n}<div class="spacer" aria-hidden="true"></div><m3e-button @click="${e(this,Dh,"m",Zh)}">${this.dismissLabel}</m3e-button><m3e-button @click="${e(this,Dh,"m",Gh)}">${this.confirmLabel}</m3e-button></div></m3e-focus-trap>`}willUpdate(t){super.willUpdate(t),["date","rangeStart","rangeEnd"].some(e=>t.has(e))&&e(this,Dh,"m",am).call(this),t.has("variant")&&(e(this,Ah,"f")?.call(this),"auto"===this.variant?e(this,Dh,"m",Jh).call(this):(this._variant=void 0,e(this,Dh,"m",Qh).call(this)))}updated(e){super.updated(e),(e.has("specialDates")||e.has("blackoutDates"))&&(this._calendar.specialDates=this.specialDates,this._calendar.blackoutDates=this.blackoutDates)}};Ah=new WeakMap,Hh=new WeakMap,Oh=new WeakMap,Bh=new WeakMap,Fh=new WeakMap,qh=new WeakMap,Vh=new WeakMap,Rh=new WeakMap,Uh=new WeakMap,Dh=new WeakSet,Nh=function(){if("docked"===this.currentVariant)return n;const e=this._date??this.date;return s`<div class="supporting-text">${this.label}</div><div class="headline">${e?new Intl.DateTimeFormat(navigator.language,{weekday:"short",month:"short",day:"numeric"}).format(e):"––"}</div><div class="divider"></div>`},jh=function(t){t.composedPath().some(t=>t instanceof om||t===e(this,Hh,"f")||t===e(this,Oh,"f"))||this.hide()},Yh=function(){this._date=this._calendar.date,this._rangeStart=this._calendar.rangeStart,this._rangeEnd=this._calendar.rangeEnd},Kh=function(){this.date=null,this.rangeStart=null,this.rangeEnd=null,this.hide(!0),this.dispatchEvent(new Event("change",{bubbles:!0}))},Zh=function(){this.hide(!0)},Gh=function(){this.date=this._date??this.date,this.rangeStart=void 0===this._rangeStart?this.rangeStart:this._rangeStart,this.rangeEnd=void 0===this._rangeEnd?this.rangeEnd:this._rangeEnd,this.hide(!0),this.dispatchEvent(new Event("change",{bubbles:!0}))},Xh=function(e){!this.isOpen||"modal"!==this.currentVariant||"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.hide(!0))},Jh=function(){a(this,Ah,Je.observe([Qe.XSmall,Qe.Small],t=>{this._variant=t.get(Qe.XSmall)||t.get(Qe.Small)?"modal":"docked",e(this,Dh,"m",Qh).call(this)}),"f")},Qh=function(){switch(this.currentVariant){case"docked":this.ariaModal=null,C(this,"-modal"),E(this,"-docked"),e(this,Fh,"f").unlock(),e(this,qh,"f").unlock();break;case"modal":this.ariaModal="true",C(this,"-docked"),E(this,"-modal"),this.isOpen&&(e(this,Fh,"f").lock(),e(this,qh,"f").lock())}this.isOpen&&e(this,Dh,"m",em).call(this)},em=async function(){"docked"===this.currentVariant&&e(this,Hh,"f")?(e(this,Bh,"f")?.call(this),a(this,Bh,await Re(this,e(this,Oh,"f")??e(this,Hh,"f"),{position:"bottom-start",inline:!0,flip:!0,shift:"both"},(e,t,a)=>{k(this,"-top",a.includes("top")),k(this,"-bottom",a.includes("bottom")),"rtl"===Ve.current?(this.style.right=window.innerWidth-e-this.clientWidth+"px",this.style.left=""):(this.style.left=`${e}px`,this.style.right=""),this.style.top=`${t}px`}),"f")):e(this,Dh,"m",tm).call(this)},tm=function(){e(this,Bh,"f")?.call(this),a(this,Bh,void 0,"f"),this.style.left="",this.style.right="",this.style.top=""},am=function(){this._date=this._rangeStart=this._rangeEnd=void 0},im.styles=i`:host { flex-direction: column; margin: unset; border: unset; padding-block: var(--m3e-datepicker-container-padding-block, 0.75rem); padding-inline: var(--m3e-datepicker-container-padding-inline, 0.25rem); background-color: var(--m3e-datepicker-container-color, ${v.color.surfaceContainer}); box-shadow: var(--m3e-datepicker-container-elevation, ${v.elevation.level3}); opacity: 0; display: none; } .calendar { --m3e-calendar-container-color: transparent; --m3e-calendar-container-elevation: ${v.elevation.level0}; --m3e-calendar-container-shape: ${v.shape.corner.none}; } .headline { color: var(--m3e-datepicker-modal-headline-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-datepicker-modal-headline-font-size, ${v.typescale.standard.headline.large.fontSize} ); font-weight: var( --m3e-datepicker-modal-headline-font-weight, ${v.typescale.standard.headline.large.fontWeight} ); line-height: var( --m3e-datepicker-modal-headline-line-height, ${v.typescale.standard.headline.large.lineHeight} ); letter-spacing: var( --m3e-datepicker-modal-headline-tracking, ${v.typescale.standard.headline.large.tracking} ); margin-block-start: 2.25rem; margin-block-end: 0.75rem; margin-inline: 1.5rem; } .supporting-text { color: var(--m3e-datepicker-modal-supporting-text-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-datepicker-modal-supporting-text-font-size, ${v.typescale.standard.label.large.fontSize} ); font-weight: var( --m3e-datepicker-modal-supporting-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-datepicker-modal-supporting-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-datepicker-modal-supporting-text-tracking, ${v.typescale.standard.label.large.tracking} ); margin-block-start: 1rem; margin-inline: 1.5rem; } .divider { height: var(--m3e-divider-thickness, 1px); width: 100%; position: relative; } .divider::before { content: ""; box-sizing: border-box; position: absolute; border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); height: inherit; left: -0.25rem; right: -0.25rem; } .actions { display: flex; align-items: center; column-gap: 0.5rem; padding-inline: var(--m3e-datepicker-actions-padding-inline, 0.5rem); } .spacer { flex: 1 1 auto; } :host(:state(-docked)) { position: absolute; background-color: var(--m3e-datepicker-docked-container-color, ${v.color.surfaceContainer}); border-radius: var(--m3e-datepicker-docked-container-shape, ${v.shape.corner.large}); } :host(:state(-modal)) { position: fixed; inset: 0; margin: auto; transform-origin: top; background-color: var(--m3e-datepicker-modal-container-color, ${v.color.surfaceContainerHigh}); border-radius: var(--m3e-datepicker-modal-container-shape, ${v.shape.corner.extraLarge}); } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.duration.short2} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete`)}; } :host { transform: scaleY(0.8); } :host(:popover-open) { transform: scaleY(1); display: inline-flex; opacity: 1; } :host(:state(-docked))::backdrop { background-color: transparent; } :host(:state(-modal))::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); margin-inline-end: -20px; } :host(:state(-modal):not(:popover-open))::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-modal):popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) var(--m3e-dialog-scrim-opacity, 32%), transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } @starting-style { :host(:popover-open) { transform: scaleY(0.8); } :host(:state(-modal):popover-open)::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; border: 1px solid CanvasText; } }`,t([u()],im.prototype,"_date",void 0),t([u()],im.prototype,"_rangeStart",void 0),t([u()],im.prototype,"_rangeEnd",void 0),t([h("m3e-calendar")],im.prototype,"_calendar",void 0),t([u()],im.prototype,"_variant",void 0),t([m()],im.prototype,"variant",void 0),t([m({attribute:"start-view"})],im.prototype,"startView",void 0),t([m({converter:J})],im.prototype,"date",void 0),t([m({attribute:"start-at",converter:J})],im.prototype,"startAt",void 0),t([m({attribute:"min-date",converter:J})],im.prototype,"minDate",void 0),t([m({attribute:"max-date",converter:J})],im.prototype,"maxDate",void 0),t([m({attribute:"range-start",converter:J})],im.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],im.prototype,"rangeEnd",void 0),t([m({attribute:!1})],im.prototype,"blackoutDates",void 0),t([m({attribute:!1})],im.prototype,"specialDates",void 0),t([m({attribute:"previous-month-label"})],im.prototype,"previousMonthLabel",void 0),t([m({attribute:"previous-year-label"})],im.prototype,"previousYearLabel",void 0),t([m({attribute:"previous-multi-year-label"})],im.prototype,"previousMultiYearLabel",void 0),t([m({attribute:"next-month-label"})],im.prototype,"nextMonthLabel",void 0),t([m({attribute:"next-year-label"})],im.prototype,"nextYearLabel",void 0),t([m({attribute:"next-multi-year-label"})],im.prototype,"nextMultiYearLabel",void 0),t([m({type:Boolean})],im.prototype,"clearable",void 0),t([m({attribute:"clear-label"})],im.prototype,"clearLabel",void 0),t([m({attribute:"confirm-label"})],im.prototype,"confirmLabel",void 0),t([m({attribute:"dismiss-label"})],im.prototype,"dismissLabel",void 0),t([m()],im.prototype,"label",void 0),im=om=t([$("m3e-datepicker")],im);let rm=class extends(b(z)){connectedCallback(){super.connectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup="dialog")}disconnectedCallback(){super.disconnectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup=null)}_onClick(){this.control instanceof im&&this.parentElement&&this.control.toggle(this.parentElement,this.closest("m3e-form-field")??void 0)}};rm=t([$("m3e-datepicker-toggle")],rm);let sm=class extends z{constructor(){super(...arguments),this.returnValue=""}_onClick(){this.closest("m3e-dialog")?.hide(this.returnValue)}};var nm,lm,cm,dm,hm,mm,pm,um,vm,bm,fm,gm;t([m({attribute:"return-value"})],sm.prototype,"returnValue",void 0),sm=t([$("m3e-dialog-action")],sm);let ym=gm=class extends(x(P(r),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),nm.add(this),lm.set(this,gm.__nextId++),cm.set(this,!1),dm.set(this,!1),this._withActions=!1,hm.set(this,new W(this)),this.alert=!1,this.dismissible=!1,this.disableClose=!1,this.noFocusTrap=!1,this.closeLabel="Close",this.returnValue=""}get open(){return e(this,cm,"f")}set open(t){t!==e(this,cm,"f")&&(a(this,cm,t,"f"),e(this,cm,"f")?this.show():this.hide())}async show(){if(await this.updateComplete,this._base.open)return;if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);e(this,hm,"f").lock(),this._base.showModal(),this._content.scrollTop=0;const t=this.querySelector("[autofocus]");t&&H(t),this.dispatchEvent(new Event("opened"))}async hide(t=this.returnValue){if(!this.isConnected)return void(this.open=!1);if(await this.updateComplete,e(this,hm,"f").unlock(),!this._base.open)return void(this.open=!1);const a=this.returnValue;this.returnValue=t,this.dispatchEvent(new Event("closing",{cancelable:!0}))?(this.open=!1,this._base.close(t),this.dispatchEvent(new Event("closed"))):this.returnValue=a}render(){return s`<dialog class="base" role="${je(this.alert?"alertdialog":void 0)}" aria-labelledby="m3e-dialog-${e(this,lm,"f")}-header" .returnvalue="${this.returnValue}" @close="${e(this,nm,"m",pm)}" @cancel="${e(this,nm,"m",um)}" @click="${e(this,nm,"m",vm)}" @keydown="${e(this,nm,"m",bm)}"><m3e-elevation level="3"></m3e-elevation><m3e-focus-trap ?disabled="${this.noFocusTrap}"><div class="header"><slot name="header" id="m3e-dialog-${e(this,lm,"f")}-header"></slot>${e(this,nm,"m",mm).call(this)}</div><m3e-scroll-container class="content" dividers="${this._withActions?"above-below":"above"}"><slot></slot></m3e-scroll-container><div class="actions"><slot name="actions" @slotchange="${e(this,nm,"m",fm)}"></slot></div></m3e-focus-trap></dialog>`}};lm=new WeakMap,cm=new WeakMap,dm=new WeakMap,hm=new WeakMap,nm=new WeakSet,mm=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" class="close" @click="${this.hide}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},pm=function(){e(this,dm,"f")&&(a(this,dm,!0,"f"),this._base?.dispatchEvent(new Event("cancel",{cancelable:!0})))},um=function(e){e.target===this._base&&(a(this,dm,!1,"f"),e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},vm=function(e){this.disableClose||e.target!==this._base||this.hide()},bm=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.disableClose||this.hide())},fm=function(e){this._withActions=e.target.assignedNodes({flatten:!0}).length>0,k(this,"-with-actions",this._withActions)},ym.styles=i`:host { display: contents; } .base { font: inherit; border: unset; outline: unset; padding: unset; display: flex; flex-direction: column; position: fixed; overflow: visible; border-radius: var(--m3e-dialog-shape, ${v.shape.corner.extraLarge}); min-width: var(--m3e-dialog-min-width, 17.5rem); max-width: var(--m3e-dialog-max-width, 35rem); color: var(--m3e-dialog-color, ${v.color.onSurface}); background-color: var(--m3e-dialog-container-color, ${v.color.surfaceContainerHigh}); visibility: hidden; opacity: 0; transform-origin: top; transform: translateY(-3.125rem) scaleY(0.8); } .base::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); margin-inline-end: -20px; } .base:not([open]) { visibility: hidden; opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.short3} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete`)}; } .base[open] { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); transition: ${o(`opacity ${v.motion.duration.long2} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.long2} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete`)}; } .base:not([open])::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base[open]::backdrop { background-color: color-mix( in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) var(--m3e-dialog-scrim-opacity, 32%), transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .base[open] { opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); } .base[open]::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); } } .header { flex: none; display: flex; align-items: center; padding: 1.5rem 1.5rem 1rem 1.5rem; background-color: var(--m3e-dialog-header-container-color, transparent); } ::slotted([slot="header"]) { margin: unset; flex: 1 1 auto; color: var(--m3e-dialog-header-color, inherit); font-size: var(--m3e-dialog-header-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-dialog-header-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-dialog-header-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-dialog-header-tracking, ${v.typescale.standard.headline.small.tracking}); } .content { padding-inline: 1.5rem; color: var(--m3e-dialog-content-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-dialog-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-dialog-content-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-dialog-content-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-dialog-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .actions { padding: 1.5rem; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } :host(:not(:state(-with-actions))) .content { margin-bottom: 1.5rem; } :host(:not(:state(-with-actions))) .actions { display: none; } .close { margin-inline-start: 0.5rem; } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } } @media (prefers-reduced-motion) { .base:not([open]), .base[open], .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } }`,ym.__nextId=0,t([u()],ym.prototype,"_withActions",void 0),t([h(".base")],ym.prototype,"_base",void 0),t([h(".content")],ym.prototype,"_content",void 0),t([m({type:Boolean})],ym.prototype,"alert",void 0),t([m({type:Boolean,reflect:!0})],ym.prototype,"open",null),t([m({type:Boolean})],ym.prototype,"dismissible",void 0),t([m({attribute:"disable-close",type:Boolean})],ym.prototype,"disableClose",void 0),t([m({attribute:"no-focus-trap",type:Boolean})],ym.prototype,"noFocusTrap",void 0),t([m({attribute:"close-label"})],ym.prototype,"closeLabel",void 0),ym=gm=t([$("m3e-dialog")],ym);let $m=class extends(b(z)){connectedCallback(){super.connectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup="dialog")}disconnectedCallback(){super.disconnectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup=null)}_onClick(){this.control instanceof ym&&this.control.show()}};$m=t([$("m3e-dialog-trigger")],$m);let xm=class extends(f(r,"separator")){constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.insetStart=!1,this.insetEnd=!1}render(){return s`<div class="line"></div>`}};xm.styles=i`:host { display: block; position: relative; } :host(:not([vertical])) { height: var(--m3e-divider-thickness, 1px); width: 100%; } :host([vertical]) { width: var(--m3e-divider-thickness, 1px); height: 100%; } .line { box-sizing: border-box; position: absolute; } :host(:not([vertical])) .line { border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); height: inherit; } :host([vertical]) .line { border-right: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); width: inherit; } :host([vertical][inset]) .line, :host([vertical][inset-start]) .line { top: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-start]) .line { left: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical][inset]) .line, :host([vertical][inset-end]) .line { bottom: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-end]) .line { right: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical]:not([inset]):not([inset-start])) .line { top: 0; } :host(:not([vertical]):not([inset]):not([inset-start])) .line { left: 0; } :host([vertical]:not([inset]):not([inset-end])) .line { bottom: 0; } :host(:not([vertical]):not([inset]):not([inset-end])) .line { right: 0; } @media (forced-colors: active) { .line { border-color: GrayText; } }`,t([m({type:Boolean,reflect:!0})],xm.prototype,"vertical",void 0),t([m({type:Boolean,reflect:!0})],xm.prototype,"inset",void 0),t([m({attribute:"inset-start",type:Boolean,reflect:!0})],xm.prototype,"insetStart",void 0),t([m({attribute:"inset-end",type:Boolean,reflect:!0})],xm.prototype,"insetEnd",void 0),xm=t([$("m3e-divider")],xm);const wm=o(`var(--m3e-drawer-container-color, ${v.color.surface})`),km=o(`var(--m3e-drawer-container-elevation, ${v.elevation.level0})`),Cm=o("var(--m3e-drawer-container-width, 22.5rem)"),Sm=o("var(--m3e-drawer-container-scrim-opacity, 32%)"),_m=o(`var(--m3e-modal-drawer-corner-shape, ${v.shape.corner.large})`),Lm=o(`var(--m3e-modal-drawer-container-color, ${v.color.surfaceContainerLow})`),Em=o(`var(--m3e-modal-drawer-elevation, ${v.elevation.level1})`),zm=o(`var(--m3e-drawer-divider-color, ${v.color.outline})`),Mm=o("var(--m3e-drawer-divider-thickness, 1px)"),Tm=i`:host { display: block; position: relative; overflow: hidden; flex: 1 1 auto; } .start, .end { position: absolute; top: 0; bottom: 0; z-index: 3; outline: none; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; box-sizing: border-box; background-color: ${wm}; box-shadow: ${km}; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete,\n background-color ${v.motion.duration.medium4} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } .start { inset-inline-start: 0; } .end { inset-inline-end: 0; } :host(:not([start])) .start { visibility: hidden; } :host(:not([start]):not(:dir(rtl))) .start { margin-left: calc(0px - var(--_start-drawer-size, ${Cm})); } :host(:not([start]):dir(rtl)) .start { margin-right: calc(0px - var(--_start-drawer-size, ${Cm})); } :host([start]:not(:dir(rtl))) .start { margin-left: 0; } :host([start]:dir(rtl)) .start { margin-right: 0; } :host(:not([end])) .end { visibility: hidden; } :host(:not([end]):not(:dir(rtl))) .end { margin-right: calc(0px - var(--_end-drawer-size, ${Cm})); } :host(:not([end]):dir(rtl)) .end { margin-left: calc(0px - var(--_end-drawer-size, ${Cm})); } :host([end]:not(:dir(rtl))) .end { margin-right: 0; } :host([end]:dir(rtl)) .end { margin-left: 0; } ::slotted([slot="start"]), ::slotted([slot="end"]) { height: 100%; width: ${Cm}; box-sizing: border-box; } .content { position: relative; height: 100%; overflow: auto; margin-left: 0; margin-right: 0; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } :host(:state(-start-push)[start]:not(:dir(rtl))) .content, :host(:state(-start-side)[start]:not(:dir(rtl))) .content { margin-left: var(--_start-drawer-size, ${Cm}); } :host(:state(-start-push)[start]:dir(rtl)) .content, :host(:state(-start-side)[start]:dir(rtl)) .content { margin-right: var(--_start-drawer-size, ${Cm}); } :host(:state(-end-push)[end]:not(:dir(rtl))) .content, :host(:state(-end-side)[end]:not(:dir(rtl))) .content { margin-right: var(--_end-drawer-size, ${Cm}); } :host(:state(-end-push)[end]:dir(rtl)) .content, :host(:state(-end-side)[end]:dir(rtl)) .content { margin-left: var(--_end-drawer-size, ${Cm}); } .scrim { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; background-color: ${v.color.scrim}; opacity: 0; visibility: hidden; transition: ${o(`opacity ${v.motion.duration.medium4} ${v.motion.easing.standard}, \n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .scrim { opacity: 0; } } :host(:state(-start-push)[start]) .scrim, :host(:state(-end-push)[end]) .scrim, :host(:state(-start-over)[start]) .scrim, :host(:state(-end-over)[end]) .scrim { visibility: visible; opacity: ${Sm}; } :host(:state(-start-push)) .start, :host(:state(-start-over)) .start { border-start-end-radius: ${_m}; border-end-end-radius: ${_m}; } :host(:state(-end-push)) .end, :host(:state(-end-over)) .end { border-start-start-radius: ${_m}; border-end-start-radius: ${_m}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: ${Lm}; box-shadow: ${Em}; } :host([start-divider]) .start { border-inline-end-color: transparent; border-inline-end-width: ${Mm}; border-inline-end-style: solid; box-sizing: border-box; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: ${zm}; } :host([end-divider]) .end { border-inline-start-color: transparent; border-inline-start-width: ${Mm}; border-inline-start-style: solid; box-sizing: border-box; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: ${zm}; } :host(:state(-no-animate)) .start, :host(:state(-no-animate)) .end, :host(:state(-no-animate)) .content { transition: none; } @media (forced-colors: active) { .start, .end { background-color: Canvas; box-shadow: unset; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: Canvas; box-shadow: unset; border-color: CanvasText; } .start, .end { border-style: solid; border-color: Canvas; border-width: 1px; } .start { border-inline-start-style: none; } .end { border-inline-end-style: none; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: GrayText; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: GrayText; } } @media (prefers-reduced-motion) { .start, .end, .content, .scrim { transition: none; } }`;var Pm,Im,Wm,Dm,Am,Hm,Om,Bm,Fm,qm,Vm,Rm,Um;let Nm=class extends(M(P(r))){constructor(){super(...arguments),Pm.add(this),this._startMode="side",this._endMode="side",Im.set(this,void 0),Wm.set(this,!1),Dm.set(this,!1),Am.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,Pm,"m",qm).call(this,t)})),this.start=!1,this.startMode="side",this.startDivider=!1,this.end=!1,this.endMode="side",this.endDivider=!1}connectedCallback(){super.connectedCallback(),E(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),e(this,Im,"f")?.call(this),e(this,Pm,"m",Rm).call(this)}willUpdate(t){super.willUpdate(t),(t.has("startMode")||t.has("endMode"))&&(e(this,Im,"f")?.call(this),"auto"===this.startMode||"auto"===this.endMode?e(this,Pm,"m",Vm).call(this):e(this,Pm,"m",Um).call(this)),t.has("start")?this.start&&this.end&&"side"!==this._endMode&&(this.end=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):t.has("end")&&this.end&&this.start&&"side"!==this._startMode&&(this.start=!1,this.dispatchEvent(new Event("change",{bubbles:!0})))}reconnectedCallback(){super.reconnectedCallback(),e(this,Pm,"m",Hm).call(this),"auto"!==this.startMode&&"auto"!==this.endMode||e(this,Pm,"m",Vm).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Pm,"m",Hm).call(this)}render(){return s`<div class="start"><m3e-focus-trap ?disabled="${!this.start||"side"===this._startMode||e(this,Wm,"f")}"><slot name="start" @slotchange="${e(this,Pm,"m",Bm)}"></slot></m3e-focus-trap></div><div class="content" .inert="${("side"!==this._startMode||"side"!==this._endMode)&&(this.start||this.end)}"><slot></slot></div><div class="scrim" @click="${e(this,Pm,"m",Om)}"></div><div class="end"><m3e-focus-trap ?disabled="${!this.end||"side"===this._endMode||e(this,Dm,"f")}"><slot name="end" @slotchange="${e(this,Pm,"m",Fm)}"></slot></m3e-focus-trap></div>`}};var jm,Ym,Km,Zm,Gm,Xm;Im=new WeakMap,Wm=new WeakMap,Dm=new WeakMap,Am=new WeakMap,Pm=new WeakSet,Hm=function(){let t=this.shadowRoot?.querySelector(".start");t&&e(this,Am,"f").observe(t),t=this.shadowRoot?.querySelector(".end"),t&&e(this,Am,"f").observe(t)},Om=function(){"side"!==this._startMode&&(this.start=!1),"side"!==this._endMode&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0}))},Bm=function(e){a(this,Wm,!g(e.target),"f")},Fm=function(e){a(this,Dm,!g(e.target),"f")},qm=function(e){for(const t of e){const e=Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize;t.target.classList.contains("start")?this.style.setProperty("--_start-drawer-size",`${e.inlineSize}px`):t.target.classList.contains("end")&&this.style.setProperty("--_end-drawer-size",`${e.inlineSize}px`)}O(this,"-no-animate")&&(this.offsetTop,C(this,"-no-animate"))},Vm=function(){a(this,Im,Je.observe([Qe.XSmall,Qe.Small],t=>e(this,Pm,"m",Um).call(this,t,!0)),"f")},Rm=function(){C(this,"-start-over"),C(this,"-start-push"),C(this,"-start-side"),C(this,"-end-over"),C(this,"-end-push"),C(this,"-end-side")},Um=function(t,a=!1){let o=!1,i=!1;"auto"===this.startMode?t?.get(Qe.Medium)?this._startMode="side":t?.get(Qe.Small)?(o="side"===this._startMode&&this.start,this._startMode="push"):t?.get(Qe.XSmall)?(o="over"!==this._startMode&&this.start,this._startMode="over"):this._startMode="side":this._startMode=this.startMode,"auto"===this.endMode?t?.get(Qe.Medium)?this._endMode="side":t?.get(Qe.Small)?(i="side"===this._endMode&&this.end,this._endMode="push"):t?.get(Qe.XSmall)?(i="over"!==this._endMode&&this.end,this._endMode="over"):this._endMode="side":this._endMode=this.endMode,e(this,Pm,"m",Rm).call(this),E(this,`-start-${this._startMode}`),E(this,`-end-${this._endMode}`),a&&(o||i)&&(o&&(this.start=!1),i&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0})))},Nm.styles=Tm,t([u()],Nm.prototype,"_startMode",void 0),t([u()],Nm.prototype,"_endMode",void 0),t([m({type:Boolean,reflect:!0})],Nm.prototype,"start",void 0),t([m({attribute:"start-mode",reflect:!0})],Nm.prototype,"startMode",void 0),t([m({attribute:"start-divider",type:Boolean,reflect:!0})],Nm.prototype,"startDivider",void 0),t([m({type:Boolean,reflect:!0})],Nm.prototype,"end",void 0),t([m({attribute:"end-mode",reflect:!0})],Nm.prototype,"endMode",void 0),t([m({attribute:"end-divider",type:Boolean,reflect:!0})],Nm.prototype,"endDivider",void 0),Nm=t([$("m3e-drawer-container")],Nm);let Jm=class extends(b(z)){constructor(){super(...arguments),jm.add(this),Ym.set(this,()=>e(this,jm,"m",Zm).call(this)),Km.set(this,!1)}attach(t){super.attach(t),this.htmlFor&&this.parentElement&&Ie(this.parentElement,"aria-controls",this.htmlFor);const a=t.closest("m3e-drawer-container");a&&(a.addEventListener("change",e(this,Ym,"f")),e(this,jm,"m",Xm).call(this,a,!0))}detach(){this.parentElement&&(this.htmlFor&&We(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),this.control?.closest("m3e-drawer-container")?.removeEventListener("change",e(this,Ym,"f")),super.detach()}_onClick(){e(this,jm,"m",Gm).call(this)}};var Qm,ep,tp,ap;Ym=new WeakMap,Km=new WeakMap,jm=new WeakSet,Zm=function(){if(this.control&&!e(this,Km,"f")){const t=this.control.closest("m3e-drawer-container");t&&e(this,jm,"m",Xm).call(this,t,!0)}},Gm=async function(){if(!this.parentElement||!this.control)return;const t=this.control.closest("m3e-drawer-container");if(t){a(this,Km,!0,"f");try{"start"===this.control.slot?t.start=!t.start:"end"===this.control.slot&&(t.end=!t.end),t.isUpdatePending&&await t.updateComplete,await e(this,jm,"m",Xm).call(this,t,!1)}finally{a(this,Km,!1,"f")}}},Xm=async function(e,t){if(!this.parentElement||!this.control)return;let a=!1;"start"===this.control.slot?a=e.start:"end"===this.control.slot&&(a=e.end),this.parentElement.ariaExpanded=`${a}`,t&&this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",a),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},Jm=t([$("m3e-drawer-toggle")],Jm);let op=class extends r{constructor(){super(...arguments),Qm.add(this),ep.set(this,[]),this.multi=!1}get panels(){return e(this,ep,"f")}render(){return s`<slot @slotchange="${e(this,Qm,"m",tp)}" @opening="${e(this,Qm,"m",ap)}"></slot>`}};ep=new WeakMap,Qm=new WeakSet,tp=function(){if(a(this,ep,[...this.querySelectorAll("m3e-expansion-panel")],"f"),this.multi)return;let t=!1;for(const a of e(this,ep,"f").filter(e=>!e.open))t&&(a.open=!1),t=!0},ap=function(t){if(!this.multi)for(const a of e(this,ep,"f").filter(e=>e!==t.target&&e.open))a.open=!1},op.styles=i`:host { display: block; } ::slotted(m3e-expansion-panel) { --m3e-expansion-panel-container-color: ${v.color.surface}; --m3e-expansion-panel-elevation: ${v.elevation.level2}; --m3e-expansion-panel-open-shape: ${v.shape.corner.medium}; --_expansion-panel-open-spacing: 1rem; } ::slotted(m3e-expansion-panel:first-of-type:last-of-type) { --m3e-expansion-panel-shape: ${v.shape.corner.medium}; } ::slotted(m3e-expansion-panel:first-of-type:not(:last-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.medium} ${v.shape.corner.value.medium} ${v.shape.corner.value.none} ${v.shape.corner.value.none}; } ::slotted(m3e-expansion-panel:last-of-type:not(:first-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.none} ${v.shape.corner.value.none} ${v.shape.corner.value.medium} ${v.shape.corner.value.medium}; }`,t([m({type:Boolean})],op.prototype,"multi",void 0),op=t([$("m3e-accordion")],op);const ip=o("var(--m3e-expansion-header-collapsed-height, 3rem)"),rp=o("var(--m3e-expansion-header-expanded-height, 4rem)"),sp=o("var(--m3e-expansion-header-padding-left, 1.5rem)"),np=o("var(--m3e-expansion-header-padding-right, 1.5rem)"),lp=o("var(--m3e-expansion-header-spacing, 0.5rem)"),cp=o("var(--m3e-expansion-header-toggle-icon-size, 1.5rem)"),dp=o(`var(--m3e-expansion-header-font-size, ${v.typescale.standard.title.medium.fontSize})`),hp=o(`var(--m3e-expansion-header-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),mp=o(`var(--m3e-expansion-header-line-height, ${v.typescale.standard.title.medium.lineHeight})`),pp=o(`var(--m3e-expansion-header-tracking, ${v.typescale.standard.title.medium.tracking})`),up=i`:host { display: block; border-radius: inherit; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: ${o(`height var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } .base { box-sizing: border-box; width: 100%; height: 100%; display: flex; border-radius: inherit; outline: none; position: relative; padding-inline-start: ${sp}; padding-inline-end: ${np}; font-size: ${dp}; font-weight: ${hp}; line-height: ${mp}; letter-spacing: ${pp}; column-gap: ${lp}; } :host(:not(:disabled)) { cursor: pointer; } :host(:not([aria-expanded="true"])) { height: ${ip}; } :host([aria-expanded="true"]) { height: ${rp}; } :host(:not(:focus-visible)) .state-layer { --m3e-state-layer-focus-color: transparent; } :host([aria-expanded="true"]) .state-layer { --m3e-state-layer-hover-color: transparent; } :host([aria-expanded="true"]) [part="background"], .content { flex: 1 1 auto; display: flex; align-items: center; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: ${cp}; transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host([toggle-direction="vertical"][aria-expanded="true"]) .toggle { transform: rotate(180deg); } :host([toggle-direction="horizontal"][aria-expanded="true"]) .toggle { transform: rotate(var(--_expansion-header-horizontal-expanded-toggle-rotation, 90deg)); } :host([toggle-position="before"]) .toggle { margin-inline-start: calc(0px - ${lp}); } :host([toggle-position="after"]) .toggle { margin-inline-end: calc(0px - ${lp}); } :host([hide-toggle]) .toggle { display: none; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } @media (prefers-reduced-motion) { :host, .toggle { transition: none; } }`,vp=o(`var(--m3e-expansion-panel-text-color, ${v.color.onSurface})`),bp=o(`var(--m3e-expansion-panel-disabled-text-color, ${v.color.onSurface})`),fp=o("var(--m3e-expansion-panel-disabled-text-opacity, 38%)"),gp=o("var(--m3e-expansion-panel-container-color)"),yp=o("var(--m3e-expansion-panel-elevation)"),$p=o("var(--m3e-expansion-panel-shape)"),xp=o("var(--m3e-expansion-panel-open-elevation, var(--m3e-expansion-panel-elevation))"),wp=o("var(--m3e-expansion-panel-open-shape, var(--m3e-expansion-panel-shape))"),kp=o("var(--_expansion-panel-open-spacing)"),Cp=o("var(--m3e-expansion-panel-content-padding, 0 1.5rem 1rem 1.5rem)"),Sp=o("var(--m3e-expansion-panel-actions-spacing, 0.5rem)"),_p=o("var(--m3e-expansion-panel-actions-padding, 1rem 1.5rem 1rem 1.5rem)"),Lp=o("var(--m3e-expansion-panel-actions-divider-thickness, var(--m3e-divider-thickness, 1px))"),Ep=o(`var(--m3e-expansion-panel-actions-divider-color, var(--m3e-divider-color, ${v.color.outlineVariant}))`),zp=i`:host { display: block; } .base { background-color: ${gp}; transition: ${o(`box-shadow var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) .base { color: ${vp}; } :host(:disabled) .base { color: color-mix( in srgb, ${bp} ${fp}, transparent ); } :host(:not([open])) .base { box-shadow: ${yp}; border-radius: ${$p}; } :host([open]) .base { box-shadow: ${xp}; border-radius: ${wp}; margin-block: ${kp}; } .toggle { display: flex; align-items: center; justify-content: center; font-size: ${cp}; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } .content { padding: ${Cp}; } :host(:not(:state(-with-actions))) .actions { display: none; } .actions { padding: ${_p}; border-top-style: solid; border-top-width: ${Lp}; border-top-color: ${Ep}; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; column-gap: ${Sp}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { border: 1px solid CanvasText; } :host(:disabled) .base { color: GrayText; } .actions { border-top-color: GrayText; } }`;var Mp,Tp;let Pp=class extends(V(N(Y(P(f(r,"button"),!0))))){constructor(){super(...arguments),Mp.add(this),this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer>${"before"===this.togglePosition?e(this,Mp,"m",Tp).call(this):n}<div class="content"><slot></slot></div>${"after"===this.togglePosition?e(this,Mp,"m",Tp).call(this):n}</div>`}};var Ip,Wp,Dp,Ap,Hp,Op,Bp,Fp,qp,Vp,Rp,Up;Mp=new WeakSet,Tp=function(){return s`<div class="toggle" aria-hidden="true"><slot name="toggle-icon"></slot></div>`},Pp.styles=up,t([h(".focus-ring")],Pp.prototype,"_focusRing",void 0),t([h(".state-layer")],Pp.prototype,"_stateLayer",void 0),t([m({attribute:"toggle-direction",reflect:!0})],Pp.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],Pp.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],Pp.prototype,"hideToggle",void 0),Pp=t([$("m3e-expansion-header")],Pp);let Np=Up=class extends(x(Y(M(P(r,!0))),"opening","opened","closing","closed")){constructor(){super(...arguments),Ip.add(this),Wp.set(this,Up.__nextId++),Dp.set(this,`m3e-expansion-panel-${e(this,Wp,"f")}-content`),Ap.set(this,`m3e-expansion-panel-${e(this,Wp,"f")}-header`),Hp.set(this,void 0),this.open=!1,this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}focus(e){this._header?.focus(e)}blur(){this._header?.blur()}click(){this._header?.click()}connectedCallback(){super.connectedCallback(),a(this,Hp,Ve.observe(()=>{this.requestUpdate(),e(this,Ip,"m",Rp).call(this)}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Hp,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,Ip,"m",Rp).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Ip,"m",Rp).call(this)}render(){return s`<div class="base"><m3e-expansion-header id="${e(this,Ap,"f")}" toggle-direction="${this.toggleDirection}" toggle-position="${this.togglePosition}" ?hide-toggle="${this.hideToggle}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,Dp,"f")}" @click="${e(this,Ip,"m",Bp)}" @keydown="${e(this,Ip,"m",Fp)}"><div slot="toggle-icon" class="toggle"><slot name="toggle-icon">${e(this,Ip,"m",Op).call(this)}</slot></div><slot name="header"></slot></m3e-expansion-header><m3e-collapsible id="${e(this,Dp,"f")}" role="region" aria-labelledby="${e(this,Ap,"f")}" ?open="${this.open}" @opening="${e(this,Ip,"m",qp)}" @opened="${e(this,Ip,"m",qp)}" @closing="${e(this,Ip,"m",qp)}" @closed="${e(this,Ip,"m",qp)}"><div class="content"><slot></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,Ip,"m",Vp)}"></slot></div></m3e-collapsible></div>`}};Wp=new WeakMap,Dp=new WeakMap,Ap=new WeakMap,Hp=new WeakMap,Ip=new WeakSet,Op=function(){return"vertical"===this.toggleDirection?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>`:"ltr"===Ve.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`},Bp=function(){this.open=!this.open},Fp=function(e){switch(e.key){case"ArrowUp":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=[...t.panels].reverse(),a=e.indexOf(this);(e.find((e,t)=>!e.disabled&&t>a)??e.find((e,t)=>!e.disabled&&t<a))?._header?.focus()}else this.open=!1}break;case"ArrowDown":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=t.panels.indexOf(this);(t.panels.find((t,a)=>!t.disabled&&a>e)??t.panels.find((t,a)=>!t.disabled&&a<e))?._header?.focus()}else this.open=!0}}},qp=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},Vp=function(e){k(this,"-with-actions",g(e.target))},Rp=function(){"rtl"===Ve.current?this._header?.style.setProperty("--_expansion-header-horizontal-expanded-toggle-rotation","-90deg"):this._header?.style.removeProperty("--_expansion-header-horizontal-expanded-toggle-rotation")},Np.styles=zp,Np.__nextId=0,t([h("m3e-expansion-header")],Np.prototype,"_header",void 0),t([m({type:Boolean,reflect:!0})],Np.prototype,"open",void 0),t([m({attribute:"toggle-direction",reflect:!0})],Np.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],Np.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],Np.prototype,"hideToggle",void 0),Np=Up=t([$("m3e-expansion-panel")],Np);const jp=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .close-icon, ::slotted(:not([slot])), ::slotted([slot="close-icon"]) { font-size: inherit !important; flex: none; } .close-icon, ::slotted(svg:not([slot])), ::slotted(svg[slot="close-icon"]) { width: 1em; height: 1em; } :host(:not([extended])) ::slotted([slot="label"]), .base.with-menu ::slotted([slot="label"]), .base:not(.with-menu) ::slotted([slot="close-icon"]), .base:not(.with-menu) .close-icon, :host([aria-expanded="true"]) .base.with-menu ::slotted(:not([slot])), :host([aria-expanded="false"]) .base.with-menu ::slotted([slot="close-icon"]), :host([aria-expanded="false"]) .base.with-menu .close-icon { display: none; } :host([aria-expanded="true"]) .base.with-menu { border-radius: var(--m3e-fab-menu-close-button-container-shape, ${v.shape.corner.full}); height: calc(var(--m3e-fab-menu-close-button-container-height, 3.5rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .wrapper { padding-inline-start: calc(var(--m3e-fab-menu-close-button-leading-space, 1rem) + ${v.density.calc(-3)}); padding-inline-end: calc(var(--m3e-fab-menu-close-button-trailing-space, 1rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .icon { font-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); --m3e-icon-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); } .base.with-menu { transition: height ${v.motion.spring.fastSpatial}; } .base.with-menu .wrapper { transition: padding ${v.motion.spring.fastSpatial}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base, .icon { transition: none; } .base { outline-style: solid; } :host([variant]:not(:disabled):not([disabled-interactive])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])) .label, :host([variant]:not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } } @media (prefers-reduced-motion) { .base, .base.resting, .base.pressed, .label, .icon { transition: none; } }`,Yp={small:{containerHeight:o(`calc(var(--m3e-fab-small-container-height, var(--m3e-fab-container-height, 3.5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-small-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.medium.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-small-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.medium.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-small-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.medium.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-small-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.medium.tracking}))`),iconSize:o(`calc(var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem))"),shape:o(`var(--m3e-fab-small-shape, var(--m3e-fab-shape, ${v.shape.corner.large}))`),leadingSpace:o(`calc(var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-small-icon-label-space, var(--m3e-fab-icon-label-space, 0.5rem))"),extendedLeadingSpace:o("var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem))"),extendedTrailingSpace:o("var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem))")},medium:{containerHeight:o(`calc(var(--m3e-fab-medium-container-height, var(--m3e-fab-container-height, 5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-medium-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-medium-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-medium-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-medium-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.large.tracking}))`),iconSize:o(`calc(var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem))"),shape:o(`var(--m3e-fab-medium-shape, var(--m3e-fab-shape, ${v.shape.corner.largeIncreased}))`),leadingSpace:o(`calc(var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-medium-icon-label-space, var(--m3e-fab-icon-label-space, 0.75rem))"),extendedLeadingSpace:o("var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem))"),extendedTrailingSpace:o("var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem))")},large:{containerHeight:o(`calc(var(--m3e-fab-large-container-height, var(--m3e-fab-container-height, 6rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-large-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-large-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-large-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-large-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o(`calc(var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem))"),shape:o(`var(--m3e-fab-large-shape, var(--m3e-fab-shape, ${v.shape.corner.extraLarge}))`),leadingSpace:o(`calc(var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-large-icon-label-space, var(--m3e-fab-icon-label-space, 1rem))"),extendedLeadingSpace:o("var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem))"),extendedTrailingSpace:o("var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem))")}};function Kp(e){return i`:host([size="${o(e)}"]) .base { height: ${Yp[e].containerHeight}; } :host([size="${o(e)}"]) .base { border-radius: ${Yp[e].shape}; } :host([size="${o(e)}"]) .label { font-size: ${Yp[e].labelTextFontSize}; font-weight: ${Yp[e].labelTextFontWeight}; line-height: ${Yp[e].labelTextLineHeight}; letter-spacing: ${Yp[e].labelTextTracking}; } :host([size="${o(e)}"]:not([extended])) .wrapper { padding-inline-start: ${Yp[e].leadingSpace}; padding-inline-end: ${Yp[e].trailingSpace}; } :host([size="${o(e)}"]:not([extended])) .icon { font-size: ${Yp[e].iconSize}; --m3e-icon-size: ${Yp[e].iconSize}; } :host([size="${o(e)}"][extended]) .wrapper { padding-inline-start: ${Yp[e].extendedLeadingSpace}; padding-inline-end: ${Yp[e].extendedTrailingSpace}; column-gap: ${Yp[e].iconLabelSpace}; } :host([size="${o(e)}"][extended]) .icon { font-size: ${Yp[e].extendedIconSize}; --m3e-icon-size: ${Yp[e].extendedIconSize}; }`}const Zp=[Kp("small"),Kp("medium"),Kp("large")],Gp={primary:{labelTextColor:o(`var(--m3e-primary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-primary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-primary-fab-container-color, var(--m3e-fab-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-primary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},secondary:{labelTextColor:o(`var(--m3e-secondary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondary}))`),iconColor:o(`var(--m3e-secondary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondary}))`),containerColor:o(`var(--m3e-secondary-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondary}))`),containerElevation:o(`var(--m3e-secondary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},tertiary:{labelTextColor:o(`var(--m3e-tertiary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiary}))`),iconColor:o(`var(--m3e-tertiary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiary}))`),containerColor:o(`var(--m3e-tertiary-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiary}))`),containerElevation:o(`var(--m3e-tertiary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"primary-container":{labelTextColor:o(`var(--m3e-primary-container-fab-label-text-color, var(--m3e-primary-container-fab-label-text-color, ${v.color.onPrimaryContainer}))`),iconColor:o(`var(--m3e-primary-container-fab-icon-color, var(--m3e-primary-container-fab-icon-color, ${v.color.onPrimaryContainer}))`),containerColor:o(`var(--m3e-primary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.primaryContainer}))`),containerElevation:o(`var(--m3e-primary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"secondary-container":{labelTextColor:o(`var(--m3e-secondary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-secondary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-secondary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-secondary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"tertiary-container":{labelTextColor:o(`var(--m3e-tertiary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiaryContainer}))`),iconColor:o(`var(--m3e-tertiary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiaryContainer}))`),containerColor:o(`var(--m3e-tertiary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiaryContainer}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},surface:{labelTextColor:o(`var(--m3e-surface-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-surface-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-surface-fab-container-color, var(--m3e-fab-container-color, ${v.color.surfaceContainerHigh}))`),containerElevation:o(`var(--m3e-surface-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),loweredContainerColor:o(`var(--m3e-surface-fab-lowered-container-color, var(--m3e-fab-lowered-container-color, ${v.color.surfaceContainerLow}))`),disabled:{containerColor:o(`var(--m3e-surface-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-surface-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-surface-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-surface-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-surface-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-surface-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-surface-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-surface-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-surface-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-surface-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}}};function Xp(e){return i`:host([variant="${o(e)}"]:not([lowered])) .base { background-color: ${Gp[e].containerColor}; --m3e-elevation-level: ${Gp[e].containerElevation}; --m3e-elevation-hover-level: ${Gp[e].hover.containerElevation}; --m3e-elevation-focus-level: ${Gp[e].focus.containerElevation}; --m3e-elevation-pressed-level: ${Gp[e].pressed.containerElevation}; } :host([variant="${o(e)}"][lowered]) .base { background-color: ${Gp[e].loweredContainerColor??Gp[e].containerColor}; --m3e-elevation-level: ${Gp[e].loweredContainerElevation}; --m3e-elevation-hover-level: ${Gp[e].hover.loweredContainerElevation}; --m3e-elevation-focus-level: ${Gp[e].focus.loweredContainerElevation}; --m3e-elevation-pressed-level: ${Gp[e].pressed.loweredContainerElevation}; } :host([variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Gp[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Gp[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Gp[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Gp[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Gp[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Gp[e].pressed.stateLayerOpacity}; } :host([variant="${o(e)}"]) .label { color: ${Gp[e].labelTextColor}; } :host([variant="${o(e)}"]:focus) .label { color: ${Gp[e].focus.labelTextColor}; } :host([variant="${o(e)}"]:hover) .label { color: ${Gp[e].hover.labelTextColor}; } :host([variant="${o(e)}"]) .base.pressed .label { color: ${Gp[e].pressed.labelTextColor}; } :host([variant="${o(e)}"]) .icon { color: ${Gp[e].iconColor}; } :host([variant="${o(e)}"]:focus) .icon { color: ${Gp[e].focus.iconColor}; } :host([variant="${o(e)}"]:hover) .icon { color: ${Gp[e].hover.iconColor}; } :host([variant="${o(e)}"]) .base.pressed .icon { color: ${Gp[e].pressed.iconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Gp[e].disabled.containerElevation}; background-color: color-mix( in srgb, ${Gp[e].disabled.containerColor} ${Gp[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${Gp[e].disabled.labelTextColor} ${Gp[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Gp[e].disabled.iconColor} ${Gp[e].disabled.iconOpacity}, transparent ); }`}const Jp=[Xp("primary"),Xp("secondary"),Xp("tertiary"),Xp("primary-container"),Xp("secondary-container"),Xp("tertiary-container"),Xp("surface")];var Qp,eu;let tu=class extends(V(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),Qp.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new Z(this,{isPressedKey:e=>" "===e,callback:e=>{this.disabled||this.disabledInteractive||(this._base?.classList.toggle("pressed",e),this._base?.classList.toggle("resting",!e))}})}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1)}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?centered="${!this.extended}" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper"><slot class="icon" aria-hidden="true" @slotchange="${e(this,Qp,"m",eu)}"></slot><slot class="icon" aria-hidden="true" name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot><div class="label"><slot name="label" @slotchange="${e(this,Qp,"m",eu)}"></slot></div></div></div>`}};var au,ou,iu;Qp=new WeakSet,eu=function(){this._base?.classList.toggle("with-menu",null!==this.querySelector("m3e-fab-menu-trigger"))},tu.styles=[Zp,Jp,jp],t([h(".base")],tu.prototype,"_base",void 0),t([h(".elevation")],tu.prototype,"_elevation",void 0),t([h(".focus-ring")],tu.prototype,"_focusRing",void 0),t([h(".state-layer")],tu.prototype,"_stateLayer",void 0),t([h(".ripple")],tu.prototype,"_ripple",void 0),t([m({reflect:!0})],tu.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],tu.prototype,"lowered",void 0),t([m({reflect:!0})],tu.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],tu.prototype,"extended",void 0),tu=t([$("m3e-fab")],tu);let ru=class extends(V(R(Y(P(f(r,"menuitem"),!0))))){constructor(){super(...arguments),au.add(this),ou.set(this,t=>e(this,au,"m",iu).call(this,t))}get menu(){return this.closest("m3e-fab-menu")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,ou,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,ou,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper"><slot class="icon" name="icon" aria-hidden="true"></slot><div class="label"><slot></slot></div></div></div>`}};var su,nu,lu,cu,du,hu,mu,pu,uu,vu,bu,fu,gu,yu;ou=new WeakMap,au=new WeakSet,iu=function(e){e.defaultPrevented||this.menu?.hide(!0)},ru.styles=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; height: var(--m3e-fab-menu-item-height, 3.5rem); font-size: var(--m3e-fab-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-fab-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-fab-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-fab-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); border-radius: var(--m3e-fab-menu-item-shape, ${v.shape.corner.full}); } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: var(--_fab-menu-item-color); } :host(:not(:disabled)) .base { background-color: var(--_fab-menu-item-container-color); --m3e-state-layer-hover-color: var(--_fab-menu-background-hover-color); --m3e-state-layer-focus-color: var(--_fab-menu-background-focus-color); --m3e-ripple-color: var(--_fab-menu-ripple-color); } :host(:disabled) .base { background-color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-container-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-container-opacity, 10%), transparent ); } :host(:disabled) .label, :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-opacity, 38%), transparent ); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-fab-menu-item-leading-space, 1.5rem); padding-inline-end: var(--m3e-fab-menu-item-trailing-space, 1.5rem); column-gap: var(--m3e-fab-menu-item-spacing, 0.5rem); } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { font-size: var(--m3e-fab-menu-item-icon-size, 1.5rem); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } ::slotted([slot="icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]) { width: 1em; height: 1em; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (prefers-reduced-motion) { .base, .label, .icon { transition: none; } } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:not(:disabled)) .base { background-color: Menu; } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: MenuText; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } }`,t([h(".elevation")],ru.prototype,"_elevation",void 0),t([h(".focus-ring")],ru.prototype,"_focusRing",void 0),t([h(".state-layer")],ru.prototype,"_stateLayer",void 0),t([h(".ripple")],ru.prototype,"_ripple",void 0),ru=t([$("m3e-fab-menu-item")],ru);let $u=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),su.add(this),nu.set(this,void 0),lu.set(this,void 0),cu.set(this,void 0),du.set(this,(new Oe).withWrap().withHomeAndEnd().withVerticalOrientation()),hu.set(this,t=>e(this,su,"m",bu).call(this,t)),mu.set(this,t=>e(this,su,"m",fu).call(this,t)),pu.set(this,new ve(this,{target:null,callback:()=>this.hide()})),uu.set(this,t=>{"closed"===t.newState?(e(this,cu,"f")?.call(this),a(this,cu,void 0,"f")):setTimeout(()=>{e(this,du,"f").setActiveItem(e(this,du,"f").items.find(e=>!e.disabled))},40)}),this.variant="primary"}get isOpen(){return void 0!==e(this,lu,"f")}async show(t){e(this,lu,"f")&&e(this,lu,"f")!==t&&this.hide(),e(this,cu,"f")?.call(this),a(this,cu,await Re(this,t,{position:"top-end",inline:!0,shift:"main",flip:!0,offset:8},(e,t,a)=>{k(this,"-right",a.includes("end")),k(this,"-left",a.includes("start")),"rtl"===Ve.current?(this.style.right=window.innerWidth-e-this.clientWidth+"px",this.style.left=""):(this.style.left=`${e}px`,this.style.right=""),this.style.top=`${t}px`}),"f"),this.showPopover(),a(this,lu,t,"f"),e(this,lu,"f").ariaExpanded="true",e(this,pu,"f").observe(e(this,lu,"f")),e(this,su,"m",gu).call(this)}hide(t=!1){e(this,cu,"f")?.call(this),a(this,cu,void 0,"f"),e(this,lu,"f")&&(e(this,lu,"f").ariaExpanded="false",t&&e(this,lu,"f").focus(),e(this,su,"m",yu).call(this),e(this,pu,"f").unobserve(e(this,lu,"f")),a(this,lu,void 0,"f")),this.hidePopover()}async toggle(t){e(this,lu,"f")?this.hide():await this.show(t)}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,hu,"f")),this.addEventListener("toggle",e(this,uu,"f")),document.addEventListener("click",e(this,mu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,hu,"f")),this.removeEventListener("toggle",e(this,uu,"f")),document.removeEventListener("click",e(this,mu,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,su,"m",vu)}"></slot></div>`}};nu=new WeakMap,lu=new WeakMap,cu=new WeakMap,du=new WeakMap,hu=new WeakMap,mu=new WeakMap,pu=new WeakMap,uu=new WeakMap,su=new WeakSet,vu=function(){const{added:t}=e(this,du,"f").setItems([...this.querySelectorAll("m3e-fab-menu-item")]);e(this,du,"f").activeItem||e(this,du,"f").updateActiveItem(t.find(e=>!e.disabled))},bu=function(t){switch(t.key){case"Tab":this.hide();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,du,"f").onKeyDown(t)}},fu=function(t){t.composedPath().some(t=>t instanceof ru||t===e(this,lu,"f"))||this.hide()},gu=function(){const t=e(this,lu,"f")?.closest("m3e-fab");t&&(a(this,nu,t.tabIndex,"f"),t.addEventListener("keydown",e(this,hu,"f")),e(this,du,"f").setItems([...e(this,du,"f").items,t]))},yu=function(){const t=e(this,lu,"f")?.closest("m3e-fab");t&&(void 0!==e(this,nu,"f")&&(t.tabIndex=e(this,nu,"f")),t.removeEventListener("keydown",e(this,hu,"f")),e(this,du,"f").setItems([...e(this,du,"f").items.filter(e=>e!==t)]))},$u.styles=i`:host { position: absolute; flex-direction: column; row-gap: var(--m3e-fab-menu-spacing, 0.25rem); padding: unset; margin: unset; border: unset; overflow: visible; max-width: var(--m3e-fab-menu-max-width, 17.5rem); opacity: 0; background-color: transparent; display: none; } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.spring.fastEffects}, \n transform ${v.motion.spring.fastSpatial},\n overlay ${v.motion.spring.fastEffects} allow-discrete,\n display ${v.motion.spring.fastEffects} allow-discrete`)}; } .base { display: contents; } :host([variant="primary"]) .base { --_fab-menu-item-color: var(--m3e-primary-fab-color, ${v.color.onPrimaryContainer}); --_fab-menu-item-container-color: var(--m3e-primary-fab-container-color, ${v.color.primaryContainer}); --_fab-menu-background-hover-color: var(--m3e-primary-fab-hover-color, ${v.color.onPrimaryContainer}); --_fab-menu-background-focus-color: var(--m3e-primary-fab-focus-color, ${v.color.onPrimaryContainer}); --_fab-menu-ripple-color: var(--m3e-primary-fab-ripple-color, ${v.color.onPrimaryContainer}); } :host([variant="secondary"]) .base { --_fab-menu-item-color: var(--m3e-secondary-fab-color, ${v.color.onSecondaryContainer}); --_fab-menu-item-container-color: var( --m3e-secondary-fab-container-color, ${v.color.secondaryContainer} ); --_fab-menu-background-hover-color: var( --m3e-secondary-fab-hover-color, ${v.color.onSecondaryContainer} ); --_fab-menu-background-focus-color: var( --m3e-secondary-fab-focus-color, ${v.color.onSecondaryContainer} ); --_fab-menu-ripple-color: var(--m3e-secondary-fab-ripple-color, ${v.color.onSecondaryContainer}); } :host([variant="tertiary"]) .base { --_fab-menu-item-color: var(--m3e-tertiary-fab-color, ${v.color.onTertiaryContainer}); --_fab-menu-item-container-color: var(--m3e-tertiary-fab-container-color, ${v.color.tertiaryContainer}); --_fab-menu-background-hover-color: var(--m3e-tertiary-fab-hover-color, ${v.color.onTertiaryContainer}); --_fab-menu-background-focus-color: var(--m3e-tertiary-fab-focus-color, ${v.color.onTertiaryContainer}); --_fab-menu-ripple-color: var(--m3e-tertiary-fab-ripple-color, ${v.color.onTertiaryContainer}); } :host { transform: scaleX(0.8); } :host(:state(-left)) { align-items: flex-start; transform-origin: left; } :host(:state(-right)) { align-items: flex-end; transform-origin: right; } :host(:popover-open) { transform: scaleX(1); display: inline-flex; opacity: 1; } :host::backdrop { background-color: transparent; } @starting-style { :host(:popover-open) { opacity: 0; } :host(:popover-open) { transform: scaleX(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { border-radius: ${v.shape.corner.medium}; outline: 1px solid MenuText; background-color: Menu; } }`,t([m({reflect:!0})],$u.prototype,"variant",void 0),$u=t([$("m3e-fab-menu")],$u);let xu=class extends(b(z)){get menu(){return this.control instanceof $u?this.control:null}attach(e){super.attach(e),this.parentElement&&e instanceof $u&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",e.id&&Ie(this.parentElement,"aria-controls",e.id))}detach(){this.parentElement&&(this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null,this.control?.id&&We(this.parentElement,"aria-controls",this.control.id)),super.detach()}_onClick(){this.parentElement&&this.menu?.toggle(this.parentElement)}};xu=t([$("m3e-fab-menu-trigger")],xu);
|
|
43
43
|
/**
|
|
44
44
|
* Adapted from Angular Material Form Field Control
|
|
45
45
|
* Source: https://github.com/angular/components/blob/main/src/material/form-field/form-field-control.ts
|
|
@@ -56,7 +56,7 @@ const wu=["m3e-input-chip-set","m3e-select"];function ku(e){return e instanceof
|
|
|
56
56
|
* @license MIT
|
|
57
57
|
* Copyright (c) 2025 Google LLC
|
|
58
58
|
* See LICENSE file in the project root for full license text.
|
|
59
|
-
*/var Su,_u,Lu,Eu,zu,Mu,Tu,Pu,Iu,Wu,Du,Au,Hu,Ou,Bu,Fu,Vu,qu,Ru,Uu,Nu,ju,Yu,Ku,Zu,Gu,Xu,Ju,Qu,ev;let tv=class extends(M(P(r))){constructor(){super(),Su.add(this),_u.set(this,null),Lu.set(this,void 0),Eu.set(this,()=>e(this,Su,"m",Gu).call(this)),zu.set(this,()=>e(this,Su,"m",Ku).call(this)),Mu.set(this,new w(this,{target:null,config:{attributeFilter:["disabled","readonly","required"]},callback:()=>this.notifyControlStateChange()})),Tu.set(this,new A(this,{target:null,callback:()=>e(this,Su,"m",Nu).call(this)})),Pu.set(this,new K(this,{target:null,callback:t=>{t=t&&!(e(this,_u,"f")?.disabled??1),k(this,"-no-animate",!1),a(this,Au,t,"f"),t?k(this,"-float-label",!0):(this._invalid=!(e(this,_u,"f")?.checkValidity?.()??1),this.notifyControlStateChange())}})),Iu.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,Su,"m",Qu).call(this)})),Wu.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,Su,"m",ev).call(this)})),Du.set(this,new Z(this,{target:null,callback:t=>k(this,"-pressed",t&&!(e(this,_u,"f")?.disabled??1))})),Au.set(this,!1),this._pseudoLabel="",this._required=!1,this._invalid=!1,this._validationMessage="",Hu.set(this,""),Ou.set(this,""),this.variant="outlined",this.hideRequiredMarker=!1,this.hideSubscript="auto",this.floatLabel="auto",new ne(this,{callback:()=>k(this,"-no-animate",!1)})}get menuAnchor(){return this._base}get control(){return e(this,_u,"f")}notifyControlStateChange(t=!1){this._required=!0===e(this,_u,"f")?.required,k(this,"-required",this._required),k(this,"-disabled",!0===e(this,_u,"f")?.disabled),k(this,"-readonly",be(e(this,_u,"f"))&&!0===e(this,_u,"f").readOnly),"auto"===this.floatLabel&&k(this,"-float-label",e(this,Su,"a",Bu)||e(this,Au,"f")),t&&(this._invalid=!(e(this,_u,"f")?.checkValidity?.()??1)),k(this,"-invalid",this._invalid),this._validationMessage=e(this,_u,"f")?.validationMessage??"",this.isUpdatePending||this.performUpdate()}connectedCallback(){super.connectedCallback(),k(this,"-no-animate",!0)}disconnectedCallback(){super.disconnectedCallback(),e(this,Su,"m",Xu).call(this,null)}reconnectedCallback(){super.reconnectedCallback(),e(this,Su,"m",Fu).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Su,"m",Fu).call(this)}update(t){super.update(t),t.has("_invalid")&&e(this,_u,"f")&&(e(this,_u,"f").ariaInvalid=this._invalid?"true":null,e(this,Ou,"f")&&(this._invalid?Be.describe(e(this,_u,"f"),e(this,Ou,"f")):Be.removeDescription(e(this,_u,"f"),e(this,Ou,"f"))))}render(){return s`<div class="base" @click="${e(this,Su,"m",Yu)}">${"outlined"===this.variant?s`<div class="outline" aria-hidden="true"><div class="outline-start"></div><div class="outline-notch"><div class="pseudo-label">${this._pseudoLabel} ${!this.hideRequiredMarker&&this._required?s` *`:n}</div></div><div class="outline-end"></div></div>`:n}<div class="prefix"><slot name="prefix" @slotchange="${e(this,Su,"m",Ru)}"></slot></div><div class="content"><span class="prefix-text"><slot name="prefix-text"></slot></span><span class="input"><slot @slotchange="${e(this,Su,"m",ju)}" @change="${e(this,Su,"m",Zu)}"></slot></span><span class="suffix-text"><slot name="suffix-text"></slot></span><span class="label"><slot name="label" @slotchange="${e(this,Su,"m",qu)}"></slot>${!this.hideRequiredMarker&&this._required?s`<span class="required-marker" aria-hidden="true"> *</span>`:n}</span></div><div class="suffix" @click="${e(this,Su,"m",Vu)}" @focusin="${e(this,Su,"m",Vu)}" @focusout="${e(this,Su,"m",Vu)}" @pointerdown="${e(this,Su,"m",Vu)}" @keydown="${e(this,Su,"m",Vu)}" @keyup="${e(this,Su,"m",Vu)}"><slot name="suffix" @slotchange="${e(this,Su,"m",Uu)}"></slot></div></div><span class="subscript" aria-hidden="true"><span class="error"><slot name="error">${this._validationMessage}</slot></span><span class="hint"><slot name="hint"></slot></span></span>`}};_u=new WeakMap,Lu=new WeakMap,Eu=new WeakMap,zu=new WeakMap,Mu=new WeakMap,Tu=new WeakMap,Pu=new WeakMap,Iu=new WeakMap,Wu=new WeakMap,Du=new WeakMap,Au=new WeakMap,Hu=new WeakMap,Ou=new WeakMap,Su=new WeakSet,Bu=function(){return void 0!==e(this,_u,"f")?.shouldLabelFloat?!0===e(this,_u,"f").shouldLabelFloat:"string"==typeof e(this,_u,"f")?.value&&e(this,_u,"f").value.length>0},Fu=function(){e(this,Pu,"f").observe(this._base),e(this,Du,"f").observe(this._base),e(this,Iu,"f").observe(this._hint),e(this,Su,"m",Qu).call(this),e(this,Wu,"f").observe(this._error),e(this,Su,"m",ev).call(this)},Vu=function(e){e.stopImmediatePropagation(),e.stopPropagation()},qu=function(e){const t=e.target.assignedElements({flatten:!0});k(this,"-with-label",t.length>0),this._pseudoLabel=t[0]?.textContent??""},Ru=function(t){k(this,"-with-prefix",g(t.target)),e(this,Tu,"f").observe(this._prefix)},Uu=function(e){k(this,"-with-suffix",g(e.target))},Nu=function(){"outlined"===this.variant&&this._base.style.setProperty("--_prefix-width",`${this._prefix.clientWidth}px`)},ju=function(t){e(this,Su,"m",Xu).call(this,Cu(t.target))},Yu=function(t){!e(this,_u,"f")||e(this,Au,"f")||e(this,_u,"f").disabled||(e(this,_u,"f").onContainerClick?e(this,_u,"f").onContainerClick(t):e(this,_u,"f").focus())},Ku=function(){this._invalid=!0,this.notifyControlStateChange()},Zu=function(){this._invalid=!(e(this,_u,"f")?.checkValidity?.()??1),this.notifyControlStateChange()},Gu=function(){this._invalid=!1,setTimeout(()=>this.notifyControlStateChange())},Xu=function(t){if(e(this,_u,"f")!==t&&(e(this,_u,"f")&&(e(this,Hu,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Hu,"f")),e(this,Ou,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Ou,"f")),e(this,Mu,"f").unobserve(e(this,_u,"f")),e(this,_u,"f").removeEventListener("invalid",e(this,zu,"f")),e(this,_u,"f").form?.removeEventListener("reset",e(this,Eu,"f")),e(this,Lu,"f")?.call(this),a(this,Lu,void 0,"f")),a(this,_u,t,"f"),["INPUT","TEXTAREA"].includes(e(this,_u,"f")?.tagName??"")?this._base.style.setProperty("--_form-field-cursor","text"):this._base.style.removeProperty("--_form-field-cursor"),k(this,"-with-select","M3E-SELECT"===e(this,_u,"f")?.tagName),O(this,"-with-select")&&this._base.style.setProperty("--_form-field-cursor","pointer"),e(this,_u,"f"))){e(this,Mu,"f").observe(e(this,_u,"f")),e(this,_u,"f").addEventListener("invalid",e(this,zu,"f")),e(this,_u,"f").form?.addEventListener("reset",e(this,Eu,"f")),e(this,_u,"f").removeAttribute("aria-invalid"),e(this,Hu,"f")&&Be.describe(e(this,_u,"f"),e(this,Hu,"f")),this.notifyControlStateChange();const t=e(this,_u,"f").tagName.toLowerCase();t.startsWith("m3e-")&&!customElements.get(t)?customElements.whenDefined(t).then(()=>e(this,Su,"m",Ju).call(this)):e(this,Su,"m",Ju).call(this)}},Ju=function(){e(this,_u,"f")&&a(this,Lu,fe(e(this,_u,"f"),"value",{set:(e,t)=>{t(e),this.notifyControlStateChange(!0)}}),"f")},Qu=function(){const t=me(this._hint,!0);t!==e(this,Hu,"f")&&(e(this,_u,"f")&&e(this,Hu,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Hu,"f")),a(this,Hu,t,"f"),e(this,_u,"f")&&e(this,Hu,"f")&&Be.describe(e(this,_u,"f"),e(this,Hu,"f")))},ev=function(){const t=me(this._error,!0);t!==e(this,Ou,"f")&&(e(this,_u,"f")&&e(this,Ou,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Ou,"f")),a(this,Ou,t,"f"),e(this,_u,"f")&&e(this,Ou,"f")&&this._invalid&&Be.describe(e(this,_u,"f"),e(this,Ou,"f")))},F(i`m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) input::placeholder, m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) textarea::placeholder { opacity: 0; transition: opacity 0s; } m3e-form-field[variant="outlined"] m3e-input-chip-set { margin-block: calc(calc(3.5rem + ${v.density.calc(-2)}) / 4); } @media (prefers-reduced-motion) { m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { transition: none !important; } }`),tv.styles=i`:host { display: inline-flex; flex-direction: column; vertical-align: middle; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); width: var(--m3e-form-field-width, 14.5rem); color: var(--_form-field-color); } :host(:not(:state(-disabled))) .base { cursor: var(--_form-field-cursor); } .base { display: flex; align-items: center; position: relative; min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); --_form-field-label-line-height: var( --m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight} ); } .content { display: flex; align-items: center; position: relative; flex: 1 1 auto; min-width: 0; min-height: var(--m3e-form-field-icon-size, 1.5rem); } .prefix, .suffix { display: flex; align-items: center; position: relative; user-select: none; flex: none; font-size: var(--m3e-form-field-icon-size, 1.5rem); } .prefix-text, .suffix-text { opacity: 1; transition: opacity ${v.motion.duration.extraLong1}; user-select: none; flex: none; } .input { display: inline-flex; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; } .label { display: flex; position: absolute; pointer-events: none; user-select: none; top: 0; left: 0; right: 0; font-size: var(--m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-label-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-label-tracking, ${v.typescale.standard.body.small.tracking}); color: var(--_form-field-label-color, inherit); transition: ${o(`top ${v.motion.duration.short4}, \n font-size ${v.motion.duration.short4}, \n line-height ${v.motion.duration.short4}`)}; } :host(:state(-with-select)) .label { margin-inline-end: 1.5rem; } ::slotted([slot="label"]) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subscript { display: inline-flex; width: 100%; margin-top: 0.25rem; font-size: var(--m3e-form-field-subscript-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-subscript-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-subscript-tracking, ${v.typescale.standard.body.small.tracking}); min-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); color: var(--m3e-form-field-subscript-color, ${v.color.onSurfaceVariant}); } .error, .hint { flex: 1 1 auto; } :host([hide-subscript="always"]) .subscript { display: none; } :host([hide-subscript="auto"]:not(:state(-invalid))) .subscript { opacity: 0; margin-top: 0px; margin-bottom: 0.25rem; transition: ${o(`opacity ${v.motion.duration.short4}, \n margin-top ${v.motion.duration.short4}, \n margin-bottom ${v.motion.duration.short4}`)}; } :host([hide-subscript="auto"]:not(:state(-invalid)):focus-within) .subscript, :host([hide-subscript="auto"]:not(:state(-invalid)):state(-pressed)) .subscript { opacity: 1; margin-top: 0.25rem; margin-bottom: 0; } :host(:state(-invalid)) .hint { display: none; } :host(:not(:state(-invalid))) .error { display: none; } ::slotted(input), ::slotted(textarea), ::slotted(select) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(textarea) { scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } ::slotted(m3e-select), ::slotted(m3e-input-chip-set) { flex: 1 1 auto; min-width: 0; } :host([float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { font-size: inherit; } :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .prefix-text, :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .suffix-text { opacity: 0; transition: opacity 0s; } .prefix { margin-inline-start: 1rem; } :host(:state(-with-prefix)) .prefix { margin-inline-end: 1rem; margin-inline-start: 0.75rem; } .suffix { margin-inline-end: 1rem; } :host(:state(-with-suffix)) .suffix { margin-inline-start: 0.25rem; margin-inline-end: 0.5rem; } :host(:state(-with-suffix):state(-with-select)) .suffix { margin-inline-start: unset; } :host(:state(-with-select)) .suffix-text { display: none; } :host([variant="outlined"]) .label { margin-top: calc(0px - var(--_form-field-label-line-height) / 2); } :host([variant="outlined"]) .outline { position: absolute; display: flex; pointer-events: none; left: 0; top: 0; bottom: 0; right: 0; } :host([variant="outlined"]) .pseudo-label { visibility: hidden; margin-inline-end: 0.5rem; font-size: var(--_form-field-label-font-size); line-height: var(--_form-field-label-line-height); letter-spacing: var(--_form-field-label-tracking); max-width: 100%; transition-property: max-width, margin-inline-end; transition-duration: 1ms; } :host([variant="outlined"]:state(-required):not([hide-required-marker])) .pseudo-label { margin-inline-end: 0.25rem; } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .pseudo-label { max-width: 0; margin-inline-end: 0px; transition-delay: ${v.motion.duration.short2}; } :host([variant="outlined"]) .outline-start, :host([variant="outlined"]) .outline-notch, :host([variant="outlined"]) .outline-end { box-sizing: border-box; border-width: var(--_form-field-outline-size, 1px); border-color: var(--_form-field-outline-color); transition: border-color ${v.motion.duration.short4}; } :host([variant="outlined"]:not(:state(-with-label))) .outline-notch { display: none; } :host([variant="outlined"]) .outline-start { min-width: 0.75rem; border-top-style: solid; border-inline-start-style: solid; border-bottom-style: solid; border-start-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]) .outline-notch { border-bottom-style: solid; } :host([variant="outlined"]) .outline-end { flex-grow: 1; min-width: 1rem; border-top-style: solid; border-inline-end-style: solid; border-bottom-style: solid; border-start-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]:state(-with-prefix)) .outline-start { min-width: calc(1.25rem + var(--_prefix-width, 0px) + 0.25rem); } :host([variant="outlined"]:not(:state(-disabled))) .base:hover .outline, :host([variant="outlined"]:not(:state(-disabled)):focus-within) .outline, :host([variant="outlined"]:not(:state(-disabled)):state(-pressed)) .outline { --_form-field-outline-size: 2px; } :host([variant="outlined"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="outlined"]) .content { min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { margin-top: unset; line-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="filled"]) .base { --_select-arrow-margin-top: calc( 0px - calc(1rem / max(calc(0 - calc(var(--md-sys-density-scale, 0) + var(--md-sys-density-scale, 0))), 1)) ); } :host([variant="filled"]) .base::before { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; border-bottom-style: solid; border-width: 1px; border-radius: var(--m3e-form-field-container-shape, ${v.shape.corner.extraSmallTop}); border-color: var(--_form-field-outline-color); background-color: var(--_form-field-container-color); } :host([variant="filled"]:not(:state(-disabled))) .base:hover::before, :host([variant="filled"]:not(:state(-disabled)):focus-within) .base::before, :host([variant="filled"]:not(:state(-disabled)):state(-pressed)) .base::before { border-width: 3px; } :host([variant="filled"]) .base::after { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--_form-field-hover-container-color); transition: background-color ${v.motion.duration.short4}; } :host([variant="filled"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="filled"]) .content { padding-top: calc(1.5rem + ${v.density.calc(-2)}); margin-bottom: 0.5rem; } :host([variant="filled"]) .label { top: calc(0.5rem + ${v.density.calc(-2)}); } :host([variant="filled"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { top: 0px; line-height: calc(3.5rem + ${v.density.calc(-2)} - 0.0625rem); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host(:not(:state(-disabled)):not(:focus-within):not(:state(-pressed))) .base:hover { --_form-field-hover-container-color: color-mix( in srgb, var(--m3e-form-field-hover-container-color, ${v.color.onSurface}) var(--m3e-form-field-hover-container-opacity, 8%), transparent ); } :host(:not(:state(-disabled)):not(:state(-invalid))) { color: var(--m3e-form-field-color, ${v.color.onSurface}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.outline}); } :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.onSurfaceVariant}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base { --_form-field-outline-color: var(--m3e-form-field-focused-outline-color, ${v.color.primary}); --_form-field-label-color: var(--m3e-form-field-focused-color, ${v.color.primary}); } :host(:not(:state(-disabled))) .base { --_form-field-container-color: var( --m3e-form-field-container-color, ${v.color.surfaceContainerHighest} ); } :host(:not(:state(-disabled)):state(-invalid)) .base { --_form-field-label-color: var(--m3e-form-field-invalid-color, ${v.color.error}); --_form-field-outline-color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:not(:state(-disabled)):state(-invalid)) .subscript { color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:state(-disabled)) { color: color-mix( in srgb, var(--m3e-form-field-disabled-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-opacity, 38%), transparent ); } :host(:state(-disabled)) .base { --_form-field-container-color: color-mix( in srgb, var(--m3e-form-field-disabled-container-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-container-opacity, 4%), transparent ); } :host(:state(-no-animate)) *, :host(:state(-no-animate)) *::before, :host(:state(-no-animate)) *::after { transition: none !important; } @media (forced-colors: active) { :host([variant="filled"]) .base::after { transition: none; } :host { --_form-field-outline-color: CanvasText; } :host(:state(-disabled)) { --_form-field-input-color: GrayText; --_form-field-color: GrayText; --_form-field-label-color: GrayText; --_form-field-outline-color: GrayText; } } @media (prefers-reduced-motion) { .base::before, .prefix-text, .suffix-text, .label, .subscript, .outline-start, .outline-notch, .outline-end, .pseudo-label { transition: none !important; } }`,t([h(".base")],tv.prototype,"_base",void 0),t([h(".prefix")],tv.prototype,"_prefix",void 0),t([h(".error")],tv.prototype,"_error",void 0),t([h(".hint")],tv.prototype,"_hint",void 0),t([u()],tv.prototype,"_pseudoLabel",void 0),t([u()],tv.prototype,"_required",void 0),t([u()],tv.prototype,"_invalid",void 0),t([u()],tv.prototype,"_validationMessage",void 0),t([m({reflect:!0})],tv.prototype,"variant",void 0),t([m({attribute:"hide-required-marker",type:Boolean,reflect:!0})],tv.prototype,"hideRequiredMarker",void 0),t([m({attribute:"hide-subscript",reflect:!0})],tv.prototype,"hideSubscript",void 0),t([m({attribute:"float-label",reflect:!0})],tv.prototype,"floatLabel",void 0),tv=t([$("m3e-form-field")],tv);let av=class extends r{constructor(){super(...arguments),this.emphasized=!1,this.variant="display",this.size="medium"}update(e){super.update(e),e.has("level")&&(this.ariaLevel=void 0!==this.level?`${this.level}`:null,this.role=this.ariaLevel?"heading":null)}render(){return s`<slot></slot>`}};var ov,iv,rv,sv,nv;av.styles=i`:host { display: block; } :host([variant="display"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.display.large.fontSize}; font-weight: ${v.typescale.standard.display.large.fontWeight}; line-height: ${v.typescale.standard.display.large.lineHeight}; letter-spacing: ${v.typescale.standard.display.large.tracking}; } :host([variant="display"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.display.medium.fontSize}; font-weight: ${v.typescale.standard.display.medium.fontWeight}; line-height: ${v.typescale.standard.display.medium.lineHeight}; letter-spacing: ${v.typescale.standard.display.medium.tracking}; } :host([variant="display"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.display.small.fontSize}; font-weight: ${v.typescale.standard.display.small.fontWeight}; line-height: ${v.typescale.standard.display.small.lineHeight}; letter-spacing: ${v.typescale.standard.display.small.tracking}; } :host([variant="headline"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.large.fontSize}; font-weight: ${v.typescale.standard.headline.large.fontWeight}; line-height: ${v.typescale.standard.headline.large.lineHeight}; letter-spacing: ${v.typescale.standard.headline.large.tracking}; } :host([variant="headline"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.medium.fontSize}; font-weight: ${v.typescale.standard.headline.medium.fontWeight}; line-height: ${v.typescale.standard.headline.medium.lineHeight}; letter-spacing: ${v.typescale.standard.headline.medium.tracking}; } :host([variant="headline"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.small.fontSize}; font-weight: ${v.typescale.standard.headline.small.fontWeight}; line-height: ${v.typescale.standard.headline.small.lineHeight}; letter-spacing: ${v.typescale.standard.headline.small.tracking}; } :host([variant="title"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.title.large.fontSize}; font-weight: ${v.typescale.standard.title.large.fontWeight}; line-height: ${v.typescale.standard.title.large.lineHeight}; letter-spacing: ${v.typescale.standard.title.large.tracking}; } :host([variant="title"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.title.medium.fontSize}; font-weight: ${v.typescale.standard.title.medium.fontWeight}; line-height: ${v.typescale.standard.title.medium.lineHeight}; letter-spacing: ${v.typescale.standard.title.medium.tracking}; } :host([variant="title"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.title.small.fontSize}; font-weight: ${v.typescale.standard.title.small.fontWeight}; line-height: ${v.typescale.standard.title.small.lineHeight}; letter-spacing: ${v.typescale.standard.title.small.tracking}; } :host([variant="label"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.label.large.fontSize}; font-weight: ${v.typescale.standard.label.large.fontWeight}; line-height: ${v.typescale.standard.label.large.lineHeight}; letter-spacing: ${v.typescale.standard.label.large.tracking}; } :host([variant="label"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.label.medium.fontSize}; font-weight: ${v.typescale.standard.label.medium.fontWeight}; line-height: ${v.typescale.standard.label.medium.lineHeight}; letter-spacing: ${v.typescale.standard.label.medium.tracking}; } :host([variant="label"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.label.small.fontSize}; font-weight: ${v.typescale.standard.label.small.fontWeight}; line-height: ${v.typescale.standard.label.small.lineHeight}; letter-spacing: ${v.typescale.standard.label.small.tracking}; } :host([variant="display"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.display.large.fontSize}; font-weight: ${v.typescale.emphasized.display.large.fontWeight}; line-height: ${v.typescale.emphasized.display.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.large.tracking}; } :host([variant="display"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.display.medium.fontSize}; font-weight: ${v.typescale.emphasized.display.medium.fontWeight}; line-height: ${v.typescale.emphasized.display.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.medium.tracking}; } :host([variant="display"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.display.small.fontSize}; font-weight: ${v.typescale.emphasized.display.small.fontWeight}; line-height: ${v.typescale.emphasized.display.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.small.tracking}; } :host([variant="headline"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.headline.large.fontSize}; font-weight: ${v.typescale.emphasized.headline.large.fontWeight}; line-height: ${v.typescale.emphasized.headline.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.large.tracking}; } :host([variant="headline"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.headline.medium.fontSize}; font-weight: ${v.typescale.emphasized.headline.medium.fontWeight}; line-height: ${v.typescale.emphasized.headline.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.medium.tracking}; } :host([variant="headline"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.headline.small.fontSize}; font-weight: ${v.typescale.emphasized.headline.small.fontWeight}; line-height: ${v.typescale.emphasized.headline.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.small.tracking}; } :host([variant="title"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.title.large.fontSize}; font-weight: ${v.typescale.emphasized.title.large.fontWeight}; line-height: ${v.typescale.emphasized.title.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.large.tracking}; } :host([variant="title"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.title.medium.fontSize}; font-weight: ${v.typescale.emphasized.title.medium.fontWeight}; line-height: ${v.typescale.emphasized.title.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.medium.tracking}; } :host([variant="title"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.title.small.fontSize}; font-weight: ${v.typescale.emphasized.title.small.fontWeight}; line-height: ${v.typescale.emphasized.title.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.small.tracking}; } :host([variant="label"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.label.large.fontSize}; font-weight: ${v.typescale.emphasized.label.large.fontWeight}; line-height: ${v.typescale.emphasized.label.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.large.tracking}; } :host([variant="label"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.label.medium.fontSize}; font-weight: ${v.typescale.emphasized.label.medium.fontWeight}; line-height: ${v.typescale.emphasized.label.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.medium.tracking}; } :host([variant="label"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.label.small.fontSize}; font-weight: ${v.typescale.emphasized.label.small.fontWeight}; line-height: ${v.typescale.emphasized.label.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.small.tracking}; }`,t([m({type:Boolean,reflect:!0})],av.prototype,"emphasized",void 0),t([m({reflect:!0})],av.prototype,"variant",void 0),t([m({reflect:!0})],av.prototype,"size",void 0),t([m({type:Number})],av.prototype,"level",void 0),av=t([$("m3e-heading")],av);const lv=/^[MmLlHhVvCcSsQqTtAaZz0-9.,\s-]+$/,cv=/^-?\d+(\.\d+)?\s+-?\d+(\.\d+)?\s+-?\d+(\.\d+)?\s+-?\d+(\.\d+)?$/;class dv{static addIcon(t,a,o){const i="string"==typeof o.outlined,r="string"==typeof o.filled;if("string"==typeof o.outlined&&(o.outlined={viewBox:"0 -960 960 960",path:o.outlined}),"string"==typeof o.filled&&(o.filled={viewBox:"0 -960 960 960",path:o.filled}),e(this,ov,"m",nv).call(this,t,a,o.outlined,i),e(this,ov,"m",nv).call(this,t,a,o.filled,r),void 0!==window){const i=e(this,ov,"m",sv).call(this,t,a);e(this,ov,"f",iv).set(i,{outlined:d`<svg viewBox="${o.outlined.viewBox}"><path d="${o.outlined.path}"/></svg>`,filled:d`<svg viewBox="${o.filled.viewBox}"><path d="${o.filled.path}"/></svg>`}),e(this,ov,"f",rv).get(i)?.forEach(e=>e())}}static isIconRegistered(t,a){return void 0!==window&&e(this,ov,"f",iv).has(e(this,ov,"m",sv).call(this,t,a))}static renderIcon(t,a,o){const i=e(this,ov,"f",iv).get(e(this,ov,"m",sv).call(this,t,a));return o?i?.filled:i?.outlined}static observe(t,a,o){if(void 0===window)return()=>{};const i=e(this,ov,"m",sv).call(this,t,a);return e(this,ov,"f",rv).has(i)?e(this,ov,"f",rv).get(i)?.push(o):e(this,ov,"f",rv).set(i,[o]),()=>{const t=e(this,ov,"f",rv).get(i);if(t){const a=t.indexOf(o);a>=0&&t.splice(a,1),0==t.length&&e(this,ov,"f",rv).delete(i)}}}}var hv;ov=dv,sv=function(e,t){return`${t}-${e}`},nv=function(e,t,a,o=!1){if(!o&&!cv.test(a.viewBox))throw new Error(`Unable to register icon '${e}' for variant '${t}'. Invalid viewbox data.`);if(!lv.test(a.path))throw new Error(`Unable to register icon '${e}' for variant '${t}'. Invalid path data.`)},iv={value:new Map},rv={value:new Map};let mv=class extends(f(r,"img")){constructor(){super(...arguments),hv.set(this,void 0),this.name="",this.variant="outlined",this.filled=!1,this.grade="medium",this.weight=400,this.opticalSize=24}connectedCallback(){this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby")||this.hasAttribute("aria-hidden")||(this.ariaHidden="true"),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,hv,"f")?.call(this)}willUpdate(t){super.willUpdate(t),t.has("name")&&!dv.isIconRegistered(this.name,this.variant)&&a(this,hv,dv.observe(this.name,this.variant,()=>{this.requestUpdate(),e(this,hv,"f")?.call(this),a(this,hv,void 0,"f")}),"f")}updated(e){super.updated(e),e.has("filled")&&this._icon?.style.setProperty("--_icon-fill",this.filled?"1":"0"),e.has("grade")&&this._icon?.style.setProperty("--_icon-grade","low"===this.grade?"-25":"high"===this.grade?"200":"0"),e.has("weight")&&this._icon?.style.setProperty("--_icon-weight",`${this.weight}`),e.has("opticalSize")&&this._icon?.style.setProperty("--_icon-optical-size",`${this.opticalSize}`)}render(){return dv.isIconRegistered(this.name,this.variant)?dv.renderIcon(this.name,this.variant,this.filled):s`<div class="icon" aria-hidden="true">${this.name}</div>`}};function pv(e,t,a){dv.addIcon(e,t,a)}hv=new WeakMap,mv.styles=i`:host { display: inline-block; user-select: none; font-size: var(--m3e-icon-size, 1.5rem); width: 1em; height: 1em; vertical-align: middle; overflow: hidden; } .icon { font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; width: inherit; height: inherit; vertical-align: inherit; font-variation-settings: "FILL" var(--_icon-fill, 0), "wght" var(--_icon-weight, 400), "GRAD" var(--_icon-grade, 0), "opsz" var(--_icon-optical-size, 24); } :host([variant="outlined"]) .icon { font-family: "Material Symbols Outlined"; } :host([variant="rounded"]) .icon { font-family: "Material Symbols Rounded"; } :host([variant="sharp"]) .icon { font-family: "Material Symbols Sharp"; } svg { font-size: inherit; width: 1em; height: 1em; }`,t([h(".icon")],mv.prototype,"_icon",void 0),t([m()],mv.prototype,"name",void 0),t([m({reflect:!0})],mv.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],mv.prototype,"filled",void 0),t([m()],mv.prototype,"grade",void 0),t([m({type:Number})],mv.prototype,"weight",void 0),t([m({attribute:"optical-size",type:Number})],mv.prototype,"opticalSize",void 0),mv=t([$("m3e-icon")],mv);const uv={"extra-small":{containerHeight:o(`calc(var(--m3e-icon-button-extra-small-container-height, var(--m3e-icon-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-icon-button-extra-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-small-icon-size, var(--m3e-icon-button-icon-size, 1.25rem)) + ${v.density.calc(0)})`),shapeRound:o(`var(--m3e-icon-button-extra-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(0)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(0)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.375rem)) + ${v.density.calc(0)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.375rem)) + ${v.density.calc(0)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.625rem)) + ${v.density.calc(0)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.625rem)) + ${v.density.calc(0)})`)},small:{containerHeight:o(`calc(var(--m3e-icon-button-small-container-height, var(--m3e-icon-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-icon-button-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-small-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-1)})`),shapeRound:o(`var(--m3e-icon-button-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(-1)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(-1)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.5rem)) + ${v.density.calc(-1)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.5rem)) + ${v.density.calc(-1)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.875rem)) + ${v.density.calc(-1)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.875rem)) + ${v.density.calc(-1)})`)},medium:{containerHeight:o(`calc(var(--m3e-icon-button-medium-container-height, var(--m3e-icon-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-icon-button-medium-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-medium-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-2)})`),shapeRound:o(`var(--m3e-icon-button-medium-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-medium-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-icon-button-medium-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-icon-button-medium-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-medium-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.medium}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.75rem)) + ${v.density.calc(-2)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.75rem)) + ${v.density.calc(-2)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-medium-default-leading-space, var(--m3e-icon-button-default-leading-space, 1rem)) + ${v.density.calc(-2)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-medium-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 1rem)) + ${v.density.calc(-2)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-medium-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 1.5rem)) + ${v.density.calc(-2)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-medium-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 1.5rem)) + ${v.density.calc(-2)})`)},large:{containerHeight:o(`calc(var(--m3e-icon-button-large-container-height, var(--m3e-icon-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 2px))"),iconSize:o(`calc(var(--m3e-icon-button-large-icon-size, var(--m3e-icon-button-icon-size, 2rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 1rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 1rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 2rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 2rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 3rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 3rem)) + ${v.density.calc(-3)})`)},"extra-large":{containerHeight:o(`calc(var(--m3e-icon-button-extra-large-container-height, var(--m3e-icon-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-extra-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 3px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-large-icon-size, var(--m3e-icon-button-icon-size, 2.5rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-extra-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 2rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 2rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 3rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 3rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 4.5rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 4.5rem)) + ${v.density.calc(-3)})`)}};function vv(e){return i`:host([size="${o(e)}"]) .base { height: ${uv[e].containerHeight}; } :host([size="${o(e)}"][width="default"]) .wrapper { padding-inline-start: ${uv[e].defaultLeadingSpace}; padding-inline-end: ${uv[e].defaultTrailingSpace}; } :host([size="${o(e)}"][width="narrow"]) .wrapper { padding-inline-start: ${uv[e].narrowLeadingSpace}; padding-inline-end: ${uv[e].narrowTrailingSpace}; } :host([size="${o(e)}"][width="wide"]) .wrapper { padding-inline-start: ${uv[e].wideLeadingSpace}; padding-inline-end: ${uv[e].wideTrailingSpace}; } :host([size="${o(e)}"]) .icon { font-size: ${uv[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${uv[e].outlineThickness}); outline-width: ${uv[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${uv[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${uv[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${uv[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${uv[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${uv[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${uv[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${uv[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${uv[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${uv[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${uv[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${uv[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${uv[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${uv[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${uv[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var( --_button-start-shape-pressed-morph, ${uv[e].shapePressedMorph} ); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${uv[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${uv[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${uv[e].shapePressedMorph}); }`}const bv=[vv("extra-small"),vv("small"),vv("medium"),vv("large"),vv("extra-large")],fv=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: auto; right: auto; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; --m3e-icon-size: 1em; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted(*) { font-size: inherit !important; flex: none; transform: var(--_icon-button-icon-transform); transform-origin: center center; transition: ${o(`transform var(--_icon-button-icon-transform-transition, ${v.motion.spring.fastEffects})`)}; } ::slotted(svg) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected"], :host([toggle][selected]) .base.with-selected-icon slot:not([name]) { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: border-radius ${v.motion.spring.fastEffects}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-large-outline-thickness, 2px)); outline-width: var(--m3e-icon-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-icon-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .wrapper, .icon { transition: none; } }`,gv={elevated:{iconColor:o(`var(--m3e-elevated-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-icon-button-container-elevation, var(--m3e-icon-button-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-icon-button-disabled-container-elevation, var(--m3e-icon-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-hover-container-elevation, var(--m3e-icon-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-focus-container-elevation, var(--m3e-icon-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-pressed-container-elevation, var(--m3e-icon-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{iconColor:o(`var(--m3e-outlined-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-outline-color, var(--m3e-icon-button-outline-color, ${v.color.outlineVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-icon-button-disabled-outline-color, var(--m3e-icon-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-hover-outline-color, var(--m3e-icon-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-focus-outline-color, var(--m3e-icon-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-pressed-outline-color, var(--m3e-icon-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{iconColor:o(`var(--m3e-filled-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-filled-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{iconColor:o(`var(--m3e-tonal-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.secondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-tonal-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},standard:{iconColor:o(`var(--m3e-standard-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o("var(--m3e-standard-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, transparent))"),containerOpacity:o("var(--m3e-standard-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-standard-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-standard-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-standard-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-standard-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-standard-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function yv(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${gv[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${gv[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${gv[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${gv[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${gv[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${gv[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${gv[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${gv[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${gv[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${gv[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${gv[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${gv[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${gv[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${gv[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${gv[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${gv[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${gv[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${gv[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${gv[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${gv[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${gv[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { outline-color: ${gv[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${gv[e].disabled.containerColor} ${gv[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${gv[e].disabled.iconColor} ${gv[e].disabled.iconOpacity}, transparent ); }`}const $v=[yv("standard"),yv("outlined"),yv("filled"),yv("tonal"),yv("elevated"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var xv,wv,kv,Cv,Sv,_v;let Lv=class extends(q(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),xv.add(this),wv.set(this,t=>e(this,xv,"m",Sv).call(this,t)),this.variant="standard",this.shape="rounded",this.size="small",this.width="default",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new K(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new Z(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,xv,"m",kv).call(this),S()?e(this,xv,"m",Cv).call(this,!0):requestAnimationFrame(()=>e(this,xv,"m",Cv).call(this,!0))):e(this,xv,"m",Cv).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected" aria-hidden="true" @slotchange="${e(this,xv,"m",_v)}"></slot>`:n}<slot class="icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,wv,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>C(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),C(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,wv,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(C(this,"-pressed"),C(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,xv,"m",kv).call(this,!0))}};var Ev,zv,Mv,Tv,Pv,Iv,Wv;wv=new WeakMap,xv=new WeakSet,kv=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},Cv=function(e){k(this,"-pressed",e),k(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),k(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),C(r,"-adjacent-pressed"))}}},Sv=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},_v=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},Lv.styles=[bv,$v,fv],t([h(".base")],Lv.prototype,"_base",void 0),t([h(".elevation")],Lv.prototype,"_elevation",void 0),t([h(".focus-ring")],Lv.prototype,"_focusRing",void 0),t([h(".state-layer")],Lv.prototype,"_stateLayer",void 0),t([h(".ripple")],Lv.prototype,"_ripple",void 0),t([m({reflect:!0})],Lv.prototype,"variant",void 0),t([m({reflect:!0})],Lv.prototype,"shape",void 0),t([m({reflect:!0})],Lv.prototype,"size",void 0),t([m({reflect:!0})],Lv.prototype,"width",void 0),t([m({type:Boolean,reflect:!0})],Lv.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],Lv.prototype,"selected",void 0),t([y(40)],Lv.prototype,"_handleResize",null),Lv=t([$("m3e-icon-button")],Lv);let Dv=class extends(M(P(f(r,"listitem")))){constructor(){super(...arguments),Ev.add(this),zv.set(this,new A(this,{target:null,callback:()=>e(this,Ev,"m",Iv).call(this)})),Mv.set(this,void 0),Tv.set(this,void 0)}get leadingContentType(){return e(this,Mv,"f")}get trailingContentType(){return e(this,Tv,"f")}reconnectedCallback(){super.reconnectedCallback(),e(this,Ev,"m",Pv).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Ev,"m",Pv).call(this)}render(){return s`<div class="base">${this._renderBase()}</div>`}_renderBase(){return s`<slot name="leading" @slotchange="${this._handleLeadingSlotChange}"><slot name="leading-icon" @slotchange="${this._handleLeadingSlotChange}"></slot></slot><div class="content"><slot name="overline"></slot><slot></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"><slot name="trailing-supporting-text" @slotchange="${this._handleTrailingSlotChange}"></slot><slot name="trailing-icon" @slotchange="${this._handleTrailingSlotChange}"></slot></slot>`}_handleLeadingSlotChange(t){const o=e(this,Mv,"f");a(this,Mv,e(this,Ev,"m",Wv).call(this,t.target),"f"),k(this,"-has-leading",void 0!==e(this,Mv,"f")),o!==e(this,Mv,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyLeadingContentTypeChange(o,e(this,Mv,"f"))}_handleTrailingSlotChange(t){const o=e(this,Tv,"f");a(this,Tv,e(this,Ev,"m",Wv).call(this,t.target),"f"),k(this,"-has-trailing",void 0!==e(this,Tv,"f")),o!==e(this,Tv,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyTrailingContentTypeChange(o,e(this,Tv,"f"))}};var Av,Hv,Ov,Bv,Fv;zv=new WeakMap,Mv=new WeakMap,Tv=new WeakMap,Ev=new WeakSet,Pv=function(){const t=this.shadowRoot?.querySelector(".content");t&&e(this,zv,"f").observe(t)},Iv=function(){const e=this.shadowRoot?.querySelector(".content")??null,t=null===e?0:ge(e);k(this,"-one-line",t<=1),k(this,"-two-line",2==t),k(this,"-three-line",t>2)},Wv=function(e){const t=e.assignedElements({flatten:!0});return t.some(e=>"VIDEO"===e.tagName)?"video":t.some(e=>"IMG"===e.tagName)?"image":t.some(e=>"M3E-AVATAR"===e.tagName)?"avatar":t.some(e=>"M3E-ICON"===e.tagName)?"icon":t.length>0?"text":void 0},Dv.styles=i`:host { display: block; } .base { display: flex; min-height: inherit; width: 100%; box-sizing: border-box; column-gap: var(--m3e-list-item-between-space, 1rem); padding-inline-start: var(--m3e-list-item-leading-space, 1rem); padding-inline-end: var(--m3e-list-item-trailing-space, 1rem); border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); transition: ${o(`border-radius ${v.motion.spring.fastEffects}, background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:state(-one-line)) { min-height: calc(var(--m3e-list-item-one-line-height, 3.5rem) + ${v.density.calc(-3)}); } :host(:state(-one-line)) .base { padding-block-start: var(--m3e-list-item-one-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-one-line-bottom-space, 0.5rem); } :host(:state(-two-line)) { min-height: calc(var(--m3e-list-item-two-line-height, 4.5rem) + ${v.density.calc(-3)}); } :host(:state(-two-line)) .base { padding-block-start: var(--m3e-list-item-two-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-two-line-bottom-space, 0.5rem); } :host(:state(-three-line)) { min-height: calc(var(--m3e-list-item-three-line-height, 5.5rem) + ${v.density.calc(-3)}); } :host(:state(-three-line)) .base { padding-block-start: var(--m3e-list-item-three-line-top-space, 0.75rem); padding-block-end: var(--m3e-list-item-three-line-bottom-space, 0.75rem); } :host(:not(:state(-three-line))) .base { align-items: center; } :host(:state(-three-line)) .base { align-items: flex-start; } :host(:not(:disabled):not([selected])) .base:not(.hover).focus-visible:not(.pressed) { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); } :host(:not(:disabled):not([selected])) .base.hover, :host(:not(:disabled):not([selected])) .base.pressed { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); } .content { flex: 1 1 auto; display: flex; flex-direction: column; align-items: unset; justify-content: unset; } ::slotted([slot="overline"]) { font-size: var(--m3e-list-item-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-list-item-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-list-item-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-list-item-overline-tracking, ${v.typescale.standard.label.small.tracking}); } ::slotted([slot="supporting-text"]) { font-size: var(--m3e-list-item-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-list-item-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-list-item-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-list-item-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } ::slotted(:not([slot])) { font-size: var(--m3e-list-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-list-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-list-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-list-item-tracking, ${v.typescale.standard.body.large.tracking}); } :host(:state(-has-leading)) slot[name="leading"], :host(:state(-has-trailing)) slot[name="trailing"] { display: flex; justify-content: center; } :host(:not(:state(-has-leading))) slot[name="leading"] { display: var(--_list-item-leading-reserved-display, contents); } :host(:not(:state(-has-trailing))) slot[name="trailing"] { display: var(--_list-item-trailing-reserved-display, contents); } slot[name="leading"] { min-width: var(--_list-item-leading-reserved-space, 0px); margin-inline-start: calc(0px - var(--_list-item-leading-reserved-outset, 0px)); } slot[name="trailing"] { min-width: var(--_list-item-trailing-reserved-space, 0px); margin-inline-end: calc(0px - var(--_list-item-trailing-reserved-outset, 0px)); } ::slotted(span[slot="trailing"]), ::slotted([slot="trailing-supporting-text"]) { white-space: nowrap; font-size: var(--m3e-list-item-trailing-text-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var( --m3e-list-item-trailing-text-font-weight, ${v.typescale.standard.label.small.fontWeight} ); line-height: var( --m3e-list-item-trailing-text-line-height, ${v.typescale.standard.label.small.lineHeight} ); letter-spacing: var( --m3e-list-item-trailing-text-tracking, ${v.typescale.standard.label.small.tracking} ); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]), ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; } ::slotted(video) { width: var(--m3e-list-item-video-width, 6.25rem); height: var(--m3e-list-item-video-height, 3.5rem); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]) { border-radius: var(--m3e-list-item-video-shape, ${v.shape.corner.none}); } ::slotted(video[slot="leading"]) { margin-inline-start: calc(0px - var(--_list-item-leading-video-outset, 0px)); } ::slotted(video[slot="trailing"]) { margin-inline-end: calc(0px - var(--_list-item-trailing-video-outset, 0px)); } ::slotted(img) { user-drag: none; user-select: none; pointer-events: none; width: var(--m3e-list-item-image-width, 3.5rem); height: var(--m3e-list-item-image-height, 3.5rem); } ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { border-radius: var(--m3e-list-item-image-shape, ${v.shape.corner.none}); } ::slotted(m3e-icon[slot="leading"]), ::slotted(m3e-icon[slot="leading-icon"]), ::slotted(m3e-icon[slot="trailing"]), ::slotted(m3e-icon[slot="trailing-icon"]) { --m3e-icon-size: var(--m3e-list-item-icon-size, 1.5rem); } :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading"]), :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading-icon"]) { color: var(--m3e-list-item-leading-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .content { color: var(--m3e-list-item-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-overline-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-supporting-text-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="trailing"]), :host(:not(:disabled)) ::slotted([slot="trailing-supporting-text"]), :host(:not(:disabled)) ::slotted([slot="trailing-icon"]) { color: var(--m3e-list-item-trailing-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .base { background-color: var(--_list-item-container-color, var(--m3e-list-item-container-color, transparent)); } :host(:disabled) .base { background-color: var(--m3e-list-item-disabled-container-color, transparent); } :host(:disabled) ::slotted(video), :host(:disabled) ::slotted(img), :host(:disabled) ::slotted(m3e-avatar) { opacity: var(--m3e-list-item-disabled-media-opacity, 38%); } :host(:disabled) .content { color: color-mix( in srgb, var(--m3e-list-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="overline"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-overline-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-overline-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="supporting-text"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-supporting-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-supporting-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-leading-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-leading-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-trailing-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-trailing-opacity, 38%), transparent ); } :host(:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var(--m3e-list-item-hover-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-hover-opacity: var( --m3e-list-item-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var(--m3e-list-item-focus-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-focus-opacity: var( --m3e-list-item-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host(:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]), :host(:disabled) .content, :host(:disabled) ::slotted([slot="overline"]), :host(:disabled) ::slotted([slot="supporting-text"]), :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`,Dv=t([$("m3e-list-item")],Dv);let Vv=class extends(P(f(r,"list"))){constructor(){super(...arguments),Av.add(this),Hv.set(this,new Array),Ov.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),Bv.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),this.variant="standard"}get items(){return e(this,Hv,"f")}get leadingContentType(){return e(this,Ov,"f").video>0?"video":e(this,Ov,"f").image>0?"image":e(this,Ov,"f").avatar>0?"avatar":e(this,Ov,"f").icon>0?"icon":e(this,Ov,"f").text>0?"text":void 0}get trailingContentType(){return e(this,Bv,"f").video>0?"video":e(this,Bv,"f").image>0?"image":e(this,Bv,"f").avatar>0?"avatar":e(this,Bv,"f").icon>0?"icon":e(this,Bv,"f").text>0?"text":void 0}render(){return s`<slot @slotchange="${e(this,Av,"m",Fv)}"></slot>`}notifyItemsChange(){}notifyLeadingContentTypeChange(t,a){t&&e(this,Ov,"f")[t]--,a&&e(this,Ov,"f")[a]++,["video","image","avatar","icon"].forEach(e=>{k(this,`-has-leading-${e}`,this.leadingContentType===e)})}notifyTrailingContentTypeChange(t,a){t&&e(this,Bv,"f")[t]--,a&&e(this,Bv,"f")[a]--,["video","image","avatar","icon"].forEach(e=>{k(this,`-has-trailing-${e}`,this.trailingContentType===e)})}};var qv,Rv,Uv,Nv,jv,Yv,Kv,Zv,Gv;Hv=new WeakMap,Ov=new WeakMap,Bv=new WeakMap,Av=new WeakSet,Fv=function(t){a(this,Hv,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof Dv),"f"),e(this,Hv,"f").forEach((t,a)=>{k(t,"-first",0===a),k(t,"-last",a===e(this,Hv,"f").length-1)}),this.notifyItemsChange()},Vv.styles=i`:host { display: flex; flex-direction: column; overflow-y: auto; box-sizing: border-box; padding-block: var(--m3e-list-block-padding, 0px); --m3e-divider-inset-start-size: var(--m3e-list-divider-inset-start-size, 1rem); --m3e-divider-inset-end-size: var(--m3e-list-divider-inset-end-size, 1.5rem); } :host([variant="standard"]) { --_list-item-leading-video-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-video-outset: var(--m3e-list-item-trailing-space, 1rem); --_expandable-list-item-expanded-toggle-icon-container-color: transparent; } :host([variant="segmented"]) { row-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); } :host([variant="segmented"]) { --m3e-list-item-container-color: var(--m3e-segmented-list-item-container-color, ${v.color.surface}); --m3e-list-item-disabled-container-color: var( --m3e-segmented-list-item-disabled-container-color, ${v.color.surface} ); --m3e-list-item-container-shape: var( --m3e-segmented-list-item-container-shape, ${v.shape.corner.extraSmall} ); --m3e-list-item-hover-container-shape: var( --m3e-segmented-list-item-hover-container-shape, ${v.shape.corner.medium} ); --m3e-list-item-focus-container-shape: var( --m3e-segmented-list-item-focus-container-shape, ${v.shape.corner.large} ); --m3e-list-item-selected-container-shape: var( --m3e-segmented-list-item-selected-container-shape, ${v.shape.corner.large} ); --m3e-list-item-video-shape: var(--m3e-segmented-list-item-video-shape, ${v.shape.corner.small}); --m3e-list-item-image-shape: var(--m3e-segmented-list-item-image-shape, ${v.shape.corner.small}); --m3e-list-item-between-space: var(--m3e-segmented-list-item-spacing, 0.75rem); --_expandable-list-item-items-segment-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); --_expandable-list-item-expanded-top-shape: var( --m3e-segmented-list-container-shape, ${v.shape.corner.large} ); } :host([variant="segmented"]) ::slotted(:state(-first)), :host([variant="segmented"]) ::slotted(:state(-has-previous-open):not([open])) { --_list-item-top-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(:state(-has-next-open):not([open])), :host([variant="segmented"]) ::slotted(:state(-last)) { --_list-item-bottom-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(m3e-divider) { display: none; } :host(:state(-has-leading-video)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-video-width, 6.25rem); } :host([variant="standard"]:state(-has-leading-video)) { --_list-item-leading-reserved-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-reserved-outset: var(--m3e-list-item-trailing-space, 1rem); } :host(:state(-has-leading-image)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-image-width, 3.5rem); } :host(:state(-has-leading-avatar)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-avatar-size, 2.5rem); } :host(:state(-has-leading-icon)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-icon-size, 1.5rem); }`,t([m({reflect:!0})],Vv.prototype,"variant",void 0),Vv=t([$("m3e-list")],Vv);let Xv=Gv=class extends Dv{constructor(){super(...arguments),qv.add(this),Rv.set(this,Gv.__nextId++),Uv.set(this,`m3e-expandable-list-item-${e(this,Rv,"f")}-content`),Nv.set(this,`m3e-expandable-list-item-${e(this,Rv,"f")}-header`),jv.set(this,new Array),this.disabled=!1,this.open=!1}get items(){return e(this,jv,"f")}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}updated(e){if(super.updated(e),e.has("open")){for(let e=this.previousElementSibling;e;e=e.previousElementSibling)if(e instanceof Dv){k(e,"-has-next-open",this.open);break}for(let e=this.nextElementSibling;e;e=e.nextElementSibling)if(e instanceof Dv){k(e,"-has-previous-open",this.open);break}}}render(){return s`<div class="base"><m3e-list-item-button id="${e(this,Nv,"f")}" class="header" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,Uv,"f")}" @click="${e(this,qv,"m",Yv)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><div class="toggle-container" slot="trailing" aria-hidden="true"><div class="toggle"><slot name="toggle-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg></slot></div></div></m3e-list-item-button><m3e-collapsible id="${e(this,Uv,"f")}" class="items" role="list" aria-labelledby="${e(this,Nv,"f")}" ?open="${this.open}" @opening="${e(this,qv,"m",Kv)}" @opened="${e(this,qv,"m",Kv)}" @closing="${e(this,qv,"m",Kv)}" @closed="${e(this,qv,"m",Kv)}"><slot name="items" @slotchange="${e(this,qv,"m",Zv)}"></slot></m3e-collapsible></div>`}};var Jv,Qv;Rv=new WeakMap,Uv=new WeakMap,Nv=new WeakMap,jv=new WeakMap,qv=new WeakSet,Yv=function(e){e.defaultPrevented||(this.open=!this.open,this.closest("m3e-action-list")?.[De].updateActiveItem(this.button))},Kv=function(e){e.stopPropagation(),["opening","opened","closing","closed"].forEach(t=>{this.button?.classList.toggle(t,e.type===t)}),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},Zv=function(t){a(this,jv,t.target.assignedElements({flatten:!0}).flatMap(e=>[...e.childNodes].filter(e=>e instanceof Dv)),"f"),e(this,jv,"f").forEach((t,a)=>{a==e(this,jv,"f").length-1?t.style.setProperty("--_list-item-bottom-container-shape",`var(--m3e-segmented-list-container-shape, ${v.shape.corner.large})`):t.style.removeProperty("--_list-item-bottom-container-shape")}),this.closest("m3e-list, m3e-action-list, m3e-selection-list")?.notifyItemsChange()},Xv.styles=i`:host { display: block; } .header { width: 100%; margin-bottom: 0px; transition: ${o(`margin-bottom \n var(--m3e-expandable-list-item-bounce-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; --_list-item-button-trailing-align-self: stretch; } .toggle-container { display: flex; align-items: center; justify-content: center; align-self: stretch; width: var(--m3e-expandable-list-item-toggle-icon-container-width, 2rem); border-radius: var(--m3e-expandable-list-item-toggle-icon-container-shape, ${v.shape.corner.full}); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: var(--m3e-expandable-list-item-toggle-icon-size, 1.5rem); transition: ${o(`transform ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } :host([open]) .toggle-container { background-color: var( --_expandable-list-item-expanded-toggle-icon-container-color, var(--m3e-expandable-list-item-expanded-toggle-icon-container-color, ${v.color.surfaceContainer}) ); } :host([open]) .toggle { transform: rotate(180deg); } :host([open]) .header { --_list-item-top-container-shape: var(--_expandable-list-item-expanded-top-shape, initial); --_list-item-bottom-container-shape: initial; margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } :host([open]) .header.opening { margin-bottom: calc( var(--_expandable-list-item-items-segment-gap, 0px) * var(--m3e-expandable-list-item-bounce-factor, 4) ); } :host([open]) .header, :host([open]) .items { --_list-item-container-color: var( --m3e-expandable-list-item-expanded-container-color, var(--m3e-list-item-container-color, transparent) ); } .base, ::slotted([slot="items"]) { display: flex; flex-direction: column; box-sizing: border-box; } ::slotted([slot="items"]) { flex: none; --_list-item-top-container-shape: initial; --_list-item-bottom-container-shape: initial; row-gap: var(--_expandable-list-item-items-segment-gap, 0px); } .items { --m3e-collapsible-animation-duration: var( --m3e-expandable-list-item-expand-duration, ${v.motion.duration.medium1} ); } @media (forced-colors: active) { .header { transition: none; } :host([open]) .header.opening { margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } } @media (prefers-reduced-motion) { .header, .toggle-container, .toggle { transition: none; } }`,Xv.__nextId=0,t([m({type:Boolean,reflect:!0})],Xv.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],Xv.prototype,"open",void 0),t([h(".header")],Xv.prototype,"button",void 0),Xv=Gv=t([$("m3e-expandable-list-item")],Xv);let eb=class extends Vv{constructor(){super(...arguments),Jv.set(this,e=>this[De].onKeyDown(e)),this[Qv]=(new Oe).withWrap().withHomeAndEnd().withVerticalOrientation().withSkipPredicate(e=>{if(e.disabled)return!0;const t=e.getRootNode().host;if("items"===t.parentElement?.slot){let e=t.closest("m3e-expandable-list-item");for(;e;){if(!e.open)return!0;const t=e.closest("m3e-expandable-list-item,m3e-action-list");if(!(t instanceof Xv))break;e=t}}return!1})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Jv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Jv,"f"))}async notifyItemsChange(){const e=[...this.querySelectorAll("m3e-list-action,m3e-expandable-list-item")];for(const t of e)t.isUpdatePending&&await t.updateComplete;this.isUpdatePending&&await this.updateComplete;const{added:t}=this[De].setItems(e.map(e=>e.button));this[De].activeItem||this[De].updateActiveItem(t.find(e=>!e.disabled))}};var tb,ab;Jv=new WeakMap,Qv=De,eb=t([$("m3e-action-list")],eb);let ob=class extends(R(Dv)){constructor(){super(...arguments),tb.add(this),this.disabled=!1}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}render(){return s`<m3e-list-item-button class="button" ?disabled="${this.disabled}" href="${je(this.href||void 0)}" target="${je(this.target||void 0)}" download="${je(this.download||void 0)}" rel="${je(this.rel||void 0)}" @click="${e(this,tb,"m",ab)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><slot name="trailing" slot="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot></m3e-list-item-button>`}};tb=new WeakSet,ab=function(e){e.defaultPrevented||this.closest("m3e-action-list")?.[De].updateActiveItem(this.button)},ob.styles=i`:host { display: block; } .button { width: 100%; }`,t([h(".button")],ob.prototype,"button",void 0),t([m({type:Boolean,reflect:!0})],ob.prototype,"disabled",void 0),ob=t([$("m3e-list-action")],ob);let ib=class extends(q(R(N(Y(P(f(Dv,"button"),!0)))))){constructor(){super(),new K(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new Z(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ne(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple>${this[G]()} ${super._renderBase()}</div>`}};var rb,sb,nb,lb,cb,db;ib.styles=[Dv.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } :host(:not(:disabled)) { cursor: pointer; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } slot[name="trailing"] { align-self: var(--_list-item-button-trailing-align-self, auto); }`],t([h(".focus-ring")],ib.prototype,"_focusRing",void 0),t([h(".state-layer")],ib.prototype,"_stateLayer",void 0),t([h(".ripple")],ib.prototype,"_ripple",void 0),ib=t([$("m3e-list-item-button")],ib);let hb=class extends(q(N(ue(Y(P(f(Dv,"option"),!0)))))){constructor(){super(),rb.add(this),sb.set(this,void 0),nb.set(this,""),lb.set(this,t=>e(this,rb,"m",db).call(this,t)),new K(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new Z(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ne(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}get value(){return e(this,sb,"f")??e(this,nb,"f")}set value(e){a(this,sb,e,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,lb,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,lb,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")){this.closest("m3e-selection-list")?.[De].notifySelectionChange(this);for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><slot name="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><div class="content"><slot name="overline"></slot><slot @slotchange="${e(this,rb,"m",cb)}"></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot><div class="indicator">${this.closest("m3e-selection-list")?.multi?s`<m3e-pseudo-checkbox ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-checkbox>`:s`<m3e-pseudo-radio ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-radio>`}</div></div>`}};var mb,pb,ub,vb,bb;sb=new WeakMap,nb=new WeakMap,lb=new WeakMap,rb=new WeakSet,cb=function(e){a(this,nb,me(e.target),"f")},db=function(e){const t=this.closest("m3e-selection-list");if(!e.defaultPrevented&&t&&(t.multi||!this.selected)){const e=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(t[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=e}},hb.styles=[Dv.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } .indicator { min-width: 1.5rem; min-height: 1.5rem; display: flex; align-items: center; justify-content: center; } :host(:not(:disabled)) { cursor: pointer; } :host(:state(-three-line)) .indicator { align-self: flex-start; margin-top: var(--m3e-list-item-three-line-top-offset, 0.25rem); } :host([selected]) .base, :host([selected]) .state-layer, :host([selected]) .ripple, :host([selected]) .focus-ring { border-radius: var(--m3e-list-item-selected-container-shape, ${v.shape.corner.large}); } :host([selected]:not(:disabled)) .base { color: var(--m3e-list-item-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-selected-overline-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-selected-supporting-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="leading"]) { color: var(--m3e-list-item-selected-leading-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: var(--m3e-list-item-selected-trailing-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) .base { background-color: var(--m3e-list-item-selected-container-color, ${v.color.secondaryContainer}); } :host([selected]:disabled) .base { background-color: color-mix( in srgb, var(--m3e-list-item-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-list-item-selected-disabled-container-opacity, 10%), transparent ); } :host([selected]:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var( --m3e-list-item-selected-hover-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-hover-opacity: var( --m3e-list-item-selected-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var( --m3e-list-item-selected-focus-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-focus-opacity: var( --m3e-list-item-selected-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host([selected]:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-selected-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-selected-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } :host(:state(-hide-selection)) .indicator, :host(:not(:state(-hide-selection))) ::slotted([slot="trailing"]) { display: none; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .content, :host([selected]:not(:disabled)) ::slotted([slot="overline"]), :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]), :host([selected]:not(:disabled)) ::slotted([slot="leading"]), :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: HighlightText; forced-color-adjust: none; } :host([selected]:not(:disabled)) .base { background-color: Highlight; } }`],t([h(".focus-ring")],hb.prototype,"_focusRing",void 0),t([h(".state-layer")],hb.prototype,"_stateLayer",void 0),t([h(".ripple")],hb.prototype,"_ripple",void 0),t([m()],hb.prototype,"value",null),hb=t([$("m3e-list-option")],hb);let fb=class extends(Q(te(ae(se(Y(P(f(Vv,"listbox")))))))){constructor(){super(...arguments),mb.add(this),pb.set(this,e=>this[De].onKeyDown(e)),ub.set(this,t=>e(this,mb,"m",vb).call(this,t)),this[bb]=(new Ae).withWrap().withHomeAndEnd().withVerticalOrientation(),this.multi=!1,this.hideSelectionIndicator=!1}get options(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(pb=new WeakMap,ub=new WeakMap,mb=new WeakSet,bb=De,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,pb,"f")),this.addEventListener("change",e(this,ub,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,pb,"f")),this.removeEventListener("change",e(this,ub,"f"))}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled),e.has("multi")&&(this[De].multi=this.multi,this.multi?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),this[De].items.forEach(e=>e.requestUpdate())),e.has("hideSelectionIndicator")&&this[De].items.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}notifyItemsChange(){const{added:e}=this[De].setItems(this.items.filter(e=>e instanceof hb));e.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),this[De].activeItem||this[De].updateActiveItem(e.find(e=>!e.disabled))}};vb=function(e){e.target!==this&&(e.stopImmediatePropagation(),e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0})))},t([m({type:Boolean})],fb.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],fb.prototype,"hideSelectionIndicator",void 0),fb=t([$("m3e-selection-list")],fb);const gb=o("var(--m3e-loading-indicator-size, 2.375rem)"),yb=o(`var(--m3e-loading-indicator-active-indicator-color, ${v.color.primary})`),$b=o(`var(--m3e-loading-indicator-contained-active-indicator-color, ${v.color.onPrimaryContainer})`),xb=o(`var(--m3e-loading-indicator-contained-container-color, ${v.color.secondaryContainer})`),wb=o(`var(--m3e-loading-indicator-container-shape, ${v.shape.corner.full})`),kb=o("var(--m3e-loading-indicator-container-size, 3rem)"),Cb={"4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z"};let Sb=new Array;const _b=new Map;for(const e in Cb)Sb.push(Cb[e]),_b.set(e,Sb.length-1);const Lb={};Sb=ye(Sb,300);for(const e of _b)Lb[e[0]]=o(Sb[e[1]]);const Eb=Lb;let zb=class extends(M(f(r,"progressbar"))){constructor(){super(...arguments),this.variant="uncontained"}connectedCallback(){super.connectedCallback(),this.ariaValueMin=this.ariaValueMin||"0",this.ariaValueMax=this.ariaValueMax||"100"}disconnectedCallback(){super.disconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!1)}reconnectedCallback(){super.reconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!0)}firstUpdated(e){super.firstUpdated(e),this._activeIndicator?.classList.toggle("animate",!0)}render(){return s`<div class="container" aria-hidden="true"><div class="active-indicator"></div></div>`}};zb.styles=i`:host { display: inline-block; aspect-ratio: 1 / 1; contain: strict; vertical-align: middle; content-visibility: auto; } :host([variant="uncontained"]) { width: ${gb}; } :host([variant="contained"]) { width: ${kb}; } :host([variant="uncontained"]) .active-indicator { background-color: ${yb}; } :host([variant="contained"]) .active-indicator { background-color: ${$b}; } :host([variant="contained"]) .container { background-color: ${xb}; } .container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: ${wb}; } .active-indicator { margin: auto; aspect-ratio: 1 / 1; width: calc(${gb} * 0.842); transform-origin: center; transition: clip-path ${v.motion.spring.slowEffects}; will-change: transform, clip-path; --_polygon-soft-burst: polygon(${Eb["soft-burst"]}); --_polygon-7-sided-cookie: polygon(${Eb["7-sided-cookie"]}); --_polygon-pentagon: polygon(${Eb.pentagon}); --_polygon-pill: polygon(${Eb.pill}); --_polygon-very-sunny: polygon(${Eb["very-sunny"]}); --_polygon-4-sided-cookie: polygon(${Eb["4-sided-cookie"]}); --_polygon-oval: polygon(${Eb.oval}); } .active-indicator.animate { animation: rotate 4998ms infinite; } @keyframes rotate { 0% { clip-path: var(--_polygon-soft-burst); transform: rotate(0deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 14% { clip-path: var(--_polygon-7-sided-cookie); transform: rotate(154deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 29% { clip-path: var(--_polygon-pentagon); transform: rotate(309deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 43% { clip-path: var(--_polygon-pill); transform: rotate(463deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 57% { clip-path: var(--_polygon-very-sunny); transform: rotate(617deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 71% { clip-path: var(--_polygon-4-sided-cookie); transform: rotate(771deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 83% { clip-path: var(--_polygon-oval); transform: rotate(926deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 100% { clip-path: var(--_polygon-soft-burst); transform: rotate(1080deg); } } @media (forced-colors: active) { .active-indicator { background-color: CanvasText !important; } }`,t([h(".active-indicator")],zb.prototype,"_activeIndicator",void 0),t([m({reflect:!0})],zb.prototype,"variant",void 0),zb=t([$("m3e-loading-indicator")],zb);class Mb extends(q(N(P(Y(r),!0)))){constructor(){super(),new K(this,{callback:e=>{e&&this.menu?._activate()}})}get menu(){return this.closest("m3e-menu")}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${he(this)?this[G]():n}<div class="wrapper">${this._renderContent()}</div></div>`}}Mb.styles=i`:host { display: inline-block; outline: none; user-select: none; flex: none; height: var(--m3e-menu-item-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) .base { color: var(--m3e-menu-item-color, ${v.color.onSurface}); } :host(:not([aria-expanded="true"])) .base { --m3e-state-layer-hover-color: var(--m3e-menu-item-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-menu-item-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-menu-item-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled)[aria-expanded="true"]) .base { background-color: color-mix( in srgb, var(--m3e-menu-item-active-state-layer-color, ${v.color.onSurface}) var(--m3e-menu-active-state-layer-opacity, 8%), transparent ); } :host([aria-expanded="true"]) .state-layer { display: none; } :host(:not(:disabled)[checked]) .base { color: var(--m3e-menu-item-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-menu-item-selected-container-color, ${v.color.tertiaryContainer}); } :host([checked]) .base { --m3e-state-layer-hover-color: var( --m3e-menu-item-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-menu-item-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-menu-item-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-menu-item-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-menu-item-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([checked]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host([checked]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; column-gap: var(--m3e-menu-item-icon-label-space, 0.5rem); padding-inline-start: var(--m3e-menu-item-padding-start, 0.75rem); padding-inline-end: var(--m3e-menu-item-padding-end, 0.75rem); font-size: var(--m3e-menu-item-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-menu-item-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-menu-item-label-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var(--m3e-menu-item-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-menu-item-focus-ring-shape, inherit); } .content { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]), .trailing-icon { flex: none; width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host(:disabled) .base { color: GrayText; } }`,t([h(".focus-ring")],Mb.prototype,"_focusRing",void 0),t([h(".state-layer")],Mb.prototype,"_stateLayer",void 0),t([h(".ripple")],Mb.prototype,"_ripple",void 0);let Tb=class extends(b(z)){get menu(){return"M3E-MENU"===this.control?.tagName?this.control:null}attach(e){super.attach(e);const t=this.menu;t&&(this.parentElement&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",t.id&&Ie(this.parentElement,"aria-controls",t.id)),this.closest("m3e-menu")&&(t.submenu=!0))}detach(){if(this.parentElement){this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null;const e=this.menu;e?.id&&We(this.parentElement,"aria-controls",e.id)}super.detach()}_onClick(){this.parentElement&&("M3E-MENU-ITEM"===this.parentElement.tagName?this.menu?.show(this.parentElement):this.menu?.toggle(this.parentElement))}};var Pb,Ib,Wb,Db,Ab,Hb,Ob,Bb,Fb,Vb,qb,Rb;Tb=t([$("m3e-menu-trigger")],Tb);let Ub=Rb=class extends(R(f(Mb,"menuitem"))){constructor(){super(),Pb.add(this),Ib.set(this,t=>e(this,Pb,"m",Fb).call(this,t)),Wb.set(this,t=>e(this,Pb,"m",Vb).call(this,t)),Db.set(this,()=>e(this,Pb,"m",qb).call(this)),this._hasSubmenu=!1,Ab.set(this,void 0),new ne(this,{startDelay:500,endDelay:500,callback:t=>{t&&!this.disabled&&e(this,Ab,"f")&&e(this,Ab,"f").menu?.show(this)}})}get submenu(){return e(this,Ab,"f")?.menu??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Ib,"f")),this.addEventListener("keydown",e(this,Wb,"f")),this.addEventListener("mouseenter",e(this,Db,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ib,"f")),this.removeEventListener("keydown",e(this,Wb,"f")),this.removeEventListener("mouseenter",e(this,Db,"f"))}_renderContent(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,Pb,"m",Ob)}"></slot><span class="content"><slot @slotchange="${e(this,Pb,"m",Hb)}"></slot></span>${this._hasSubmenu?"ltr"===qe.current?s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M400-280v-400l200 200-200 200Z"/></svg>`:s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M560-280 360-480l200-200v400Z"/></svg>`:s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,Pb,"m",Bb)}"></slot>`}`}};var Nb,jb,Yb,Kb,Zb,Gb,Xb,Jb,Qb,ef,tf,af,of,rf,sf,nf;Ib=new WeakMap,Wb=new WeakMap,Db=new WeakMap,Ab=new WeakMap,Pb=new WeakSet,Hb=function(t){a(this,Ab,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Tb),"f"),this._hasSubmenu=void 0!==e(this,Ab,"f")},Ob=function(e){k(this,"-with-icon",g(e.target))},Bb=function(e){k(this,"-with-trailing-icon",g(e.target))},Fb=function(e){e.defaultPrevented||this._hasSubmenu||this.menu?.hideAll(!0)},Vb=function(e){if(!e.defaultPrevented&&!this.disabled)switch(e.key){case"Right":case"ArrowRight":"ltr"===qe.current&&(e.preventDefault(),this.submenu?.show(this));break;case"Left":case"ArrowLeft":"rtl"===qe.current&&(e.preventDefault(),this.submenu?.show(this))}},qb=function(){this.menu?.items.forEach(e=>{e instanceof Rb&&e!==this&&e.submenu?.isOpen&&e.submenu.hide()})},t([u()],Ub.prototype,"_hasSubmenu",void 0),Ub=Rb=t([$("m3e-menu-item")],Ub);let lf=nf=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),Nb.add(this),jb.set(this,void 0),Yb.set(this,void 0),Kb.set(this,(new Oe).withWrap().withHomeAndEnd().withVerticalOrientation()),Zb.set(this,t=>e(this,Nb,"m",tf).call(this,t)),Gb.set(this,()=>e(this,Nb,"m",af).call(this)),Xb.set(this,t=>e(this,Nb,"m",of).call(this,t)),Jb.set(this,new ve(this,{target:null,callback:e=>e instanceof nf?e.items.filter(e=>e instanceof Ub).forEach(e=>e.submenu?.hide()):this.hideAll()})),Qb.set(this,t=>{"closed"===t.newState?(e(this,Yb,"f")?.call(this),a(this,Yb,void 0,"f")):setTimeout(()=>{e(this,Kb,"f").setActiveItem(e(this,Kb,"f").items.find(e=>!e.disabled))},40)}),this.positionX="after",this.positionY="below",this.variant="standard",this.submenu=!1}get items(){return e(this,Kb,"f").items}get isOpen(){return void 0!==e(this,jb,"f")}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,Zb,"f")),this.addEventListener("mouseenter",e(this,Gb,"f")),this.addEventListener("toggle",e(this,Qb,"f")),document.addEventListener("click",e(this,Xb,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Zb,"f")),this.removeEventListener("mouseenter",e(this,Gb,"f")),this.removeEventListener("toggle",e(this,Qb,"f")),document.removeEventListener("click",e(this,Xb,"f")),e(this,Nb,"m",sf).call(this)}async show(t){e(this,jb,"f")&&e(this,jb,"f")!==t&&this.hide();let o=this.positionX;"rtl"===qe.current&&(o="before"===o?"after":"before"),a(this,Yb,await Re(this,t,{position:this.submenu?"before"===o?"left-start":"right-start":"above"===this.positionY?"before"===o?"top-end":"top-start":"before"===o?"bottom-end":"bottom-start",inline:!0,flip:!0,shift:"main",offset:this.submenu?void 0:4},(t,a,o)=>{if(this.submenu){if(e(this,jb,"f")){const t=e(this,Nb,"m",rf).call(this,e(this,jb,"f")).y;k(this,"-shift-down",!1),k(this,"-shift-up",!1),k(this,Math.round(a)===Math.round(t)?"-shift-down":"-shift-up",!0)}}else k(this,"-top",o.includes("top")),k(this,"-bottom",o.includes("bottom"));"rtl"===qe.current?this.style.right=window.innerWidth-t-this.clientWidth+"px":this.style.left=`${t}px`,this.style.top=`${a}px`}),"f");const i=t.closest("m3e-menu");i?this.variant=i.variant:this._activate(),this.showPopover(),a(this,jb,t,"f"),e(this,jb,"f").ariaExpanded="true",e(this,Jb,"f").observe(e(this,jb,"f"))}hide(t=!1){for(const t of e(this,Kb,"f").items){const e=t.submenu;e&&e.isOpen&&e.hide()}e(this,Nb,"m",sf).call(this),this.hidePopover(),e(this,jb,"f")&&(e(this,jb,"f").ariaExpanded="false",t&&e(this,jb,"f").focus(),e(this,Jb,"f").unobserve(e(this,jb,"f")),a(this,jb,void 0,"f"))}hideAll(t=!1){let a=this;for(;e(a,jb,"f");){const t=e(a,jb,"f").closest("m3e-menu");if(!t)break;a=t}a.hide(t)}async toggle(t){e(this,jb,"f")?this.hide():await this.show(t)}render(){return s`<div class="base"><slot @slotchange="${e(this,Nb,"m",ef)}"></slot></div>`}_activate(){this!==nf.__activeMenu&&(nf.__activeMenu&&C(nf.__activeMenu,"-active"),nf.__activeMenu=this,E(nf.__activeMenu,"-active"))}};var cf,df,hf,mf,pf,uf,vf,bf,ff,gf,yf,$f;jb=new WeakMap,Yb=new WeakMap,Kb=new WeakMap,Zb=new WeakMap,Gb=new WeakMap,Xb=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,Nb=new WeakSet,ef=function(){const{added:t}=e(this,Kb,"f").setItems([...this.querySelectorAll("m3e-menu-item,m3e-menu-item-checkbox,m3e-menu-item-radio")].filter(e=>e.closest("m3e-menu")===this));e(this,Kb,"f").activeItem||e(this,Kb,"f").updateActiveItem(t.find(e=>!e.disabled)),e(this,Kb,"f").items.forEach((t,a)=>{k(t,"-first",0===a&&!t.previousElementSibling),k(t,"-last",a===e(this,Kb,"f").items.length-1)})},tf=function(t){switch(t.key){case"Right":case"ArrowRight":"rtl"===qe.current?(t.preventDefault(),this.hide(!0)):e(this,Kb,"f").onKeyDown(t);break;case"Left":case"ArrowLeft":"ltr"===qe.current?(t.preventDefault(),this.hide(!0)):e(this,Kb,"f").onKeyDown(t);break;case"Tab":this.hideAll();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,Kb,"f").onKeyDown(t)}},af=function(){this._activate()},of=function(t){this.submenu||t.composedPath().some(t=>t instanceof nf||t===e(this,jb,"f"))||this.hide()},rf=function(e){let t=0,a=0;for(let o=e;o;o=o.offsetParent instanceof HTMLElement?o.offsetParent:null)t+=o.offsetLeft-o.scrollLeft+o.clientLeft,a+=o.offsetTop-o.scrollTop+o.clientTop;return{x:t,y:a}},sf=function(){this===nf.__activeMenu&&(C(nf.__activeMenu,"-active"),nf.__activeMenu=void 0)},F(i`m3e-menu > m3e-divider { margin-block: var(--m3e-menu-divider-spacing, 0.5rem); }`),lf.styles=i`:host { position: absolute; padding: unset; margin: unset; border: unset; overflow-y: auto; overflow-x: visible; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; scroll-padding-block: calc( var(--m3e-focus-ring-thickness, 3px) + var(--m3e-menu-container-padding-block, 0.25rem) ); min-width: var(--m3e-menu-container-min-width, 7rem); max-width: var(--m3e-menu-container-max-width, 17.5rem); max-height: var(--m3e-menu-container-max-height, 17.5rem); box-shadow: var(--m3e-menu-container-elevation, ${v.elevation.level3}); opacity: 0; display: none; } .base { display: flex; flex-direction: column; row-gap: var(--m3e-menu-gap, 0.125rem); min-width: inherit; max-width: inherit; padding-block: var(--m3e-menu-container-padding-block, 0.25rem); padding-inline: var(--m3e-menu-container-padding-inline, 0.25rem); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } :host(:not(:state(-active))) { border-radius: var(--m3e-menu-container-shape, ${v.shape.corner.small}); } :host(:not(:state(-active))) .base { --m3e-menu-item-first-child-shape: ${v.shape.corner.extraSmall}; --m3e-menu-item-last-child-shape: ${v.shape.corner.extraSmall}; } :host(:state(-active)) { border-radius: var(--m3e-menu-active-container-shape, ${v.shape.corner.large}); } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.duration.short2} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n border-radius ${v.motion.spring.fastEffects}`)}; } :host(:not([submenu])) { transform: scaleY(0.8); } :host(:not([submenu]):popover-open) { transform: scaleY(1); } :host::backdrop { background-color: transparent; } :host(:popover-open) { display: block; opacity: 1; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } :host(:state(-shift-down)) { margin-top: calc(0px - var(--m3e-menu-container-padding-block, 0.25rem)); } :host(:state(-shift-up)) { margin-top: var(--m3e-menu-container-padding-block, 0.25rem); } :host([variant="vibrant"]) { background-color: var(--m3e-vibrant-menu-container-color, ${v.color.tertiaryContainer}); --m3e-menu-item-color: var(--m3e-vibrant-menu-item-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-container-hover-color: var( --m3e-vibrant-menu-item-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-container-focus-color: var( --m3e-vibrant-menu-item-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-ripple-color: var(--m3e-vibrant-menu-item-ripple-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-active-state-layer-color: var( --m3e-vibrant-menu-item-active-state-layer-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-selected-color: var(--m3e-vibrant-menu-item-selected-color, ${v.color.onTertiary}); --m3e-menu-item-selected-container-color: var( --m3e-vibrant-menu-item-selected-container-color, ${v.color.tertiary} ); --m3e-menu-item-selected-container-hover-color: var( --m3e-vibrant-menu-item-selected-container-hover-color, ${v.color.onTertiary} ); --m3e-menu-item-container-selected-focus-color: var( --m3e-vibrant-menu-item-selected-container-focus-color, ${v.color.onTertiary} ); --m3e-menu-item-selected-ripple-color: var( --m3e-vibrant-menu-item-selected-ripple-color, ${v.color.onTertiary} ); --m3e-menu-item-disabled-color: var( --m3e-vibrant-menu-item-disabled-color, ${v.color.onTertiaryContainer} ); } :host([variant="standard"]) { background-color: var(--m3e-menu-container-color, ${v.color.surfaceContainer}); } @starting-style { :host(:popover-open) { opacity: 0; } :host(:not([submenu]):popover-open) { transform: scaleY(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; outline: 1px solid MenuText; } }`,t([m({attribute:"position-x"})],lf.prototype,"positionX",void 0),t([m({attribute:"position-y"})],lf.prototype,"positionY",void 0),t([m({reflect:!0})],lf.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],lf.prototype,"submenu",void 0),lf=nf=t([$("m3e-menu")],lf);let xf=class extends($e(f(Mb,"menuitemcheckbox"))){constructor(){super(...arguments),cf.add(this),df.set(this,t=>e(this,cf,"m",ff).call(this,t)),hf.set(this,t=>e(this,cf,"m",gf).call(this,t)),mf.set(this,()=>e(this,cf,"m",yf).call(this)),pf.set(this,()=>e(this,cf,"m",$f).call(this)),uf.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,df,"f")),this.addEventListener("keydown",e(this,hf,"f")),this.addEventListener("keyup",e(this,mf,"f")),this.addEventListener("mouseenter",e(this,pf,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,df,"f")),this.removeEventListener("keydown",e(this,hf,"f")),this.removeEventListener("keyup",e(this,mf,"f")),this.removeEventListener("mouseenter",e(this,pf,"f"))}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,cf,"m",vf)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,cf,"m",bf)}"></slot>`}};df=new WeakMap,hf=new WeakMap,mf=new WeakMap,pf=new WeakMap,uf=new WeakMap,cf=new WeakSet,vf=function(e){k(this,"-with-icon",g(e.target))},bf=function(e){k(this,"-with-trailing-icon",g(e.target))},ff=function(t){t.defaultPrevented||(this.checked=!this.checked,this.performUpdate(),e(this,uf,"f")||(S()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},gf=function(e){a(this,uf," "===e.key,"f")},yf=function(){a(this,uf,!1,"f")},$f=function(){this.menu?.items.forEach(e=>{e instanceof Ub&&e.submenu?.isOpen&&e.submenu.hide()})},xf.styles=[Mb.styles,i`.icon { display: flex; align-items: center; justify-content: center; transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-menu-item-icon-label-space, 0.75rem)); } .check { width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } :host(:not([checked])) .check { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]) ::slotted([slot="icon"]) { display: none !important; } @media (prefers-reduced-motion) { .icon { transition: none; } }`],xf=t([$("m3e-menu-item-checkbox")],xf);let wf=class extends(f(r,"group")){render(){return s`<slot></slot>`}};var kf,Cf,Sf,_f,Lf,Ef,zf,Mf,Tf,Pf,If,Wf;wf.styles=i`:host { display: contents; }`,wf=t([$("m3e-menu-item-group")],wf);let Df=class extends($e(f(Mb,"menuitemradio"))){constructor(){super(...arguments),kf.add(this),Cf.set(this,t=>e(this,kf,"m",Tf).call(this,t)),Sf.set(this,t=>e(this,kf,"m",Pf).call(this,t)),_f.set(this,()=>e(this,kf,"m",If).call(this)),Lf.set(this,()=>e(this,kf,"m",Wf).call(this)),Ef.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Cf,"f")),this.addEventListener("keydown",e(this,Sf,"f")),this.addEventListener("keyup",e(this,_f,"f")),this.addEventListener("mouseenter",e(this,Lf,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Cf,"f")),this.removeEventListener("keydown",e(this,Sf,"f")),this.removeEventListener("keyup",e(this,_f,"f")),this.removeEventListener("mouseenter",e(this,Lf,"f"))}update(e){super.update(e),e.has("checked")&&this.checked&&(this.closest("[role='group']")??this.closest("m3e-menu"))?.querySelectorAll("m3e-menu-item-radio").forEach(e=>{e!==this&&e.checked&&(e.checked=!1)})}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,kf,"m",zf)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,kf,"m",Mf)}"></slot>`}};var Af,Hf,Of,Bf,Ff,Vf;Cf=new WeakMap,Sf=new WeakMap,_f=new WeakMap,Lf=new WeakMap,Ef=new WeakMap,kf=new WeakSet,zf=function(e){k(this,"-with-icon",g(e.target))},Mf=function(e){k(this,"-with-trailing-icon",g(e.target))},Tf=function(t){t.defaultPrevented||(this.checked=!0,this.performUpdate(),e(this,Ef,"f")||(S()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},Pf=function(e){a(this,Ef," "===e.key,"f")},If=function(){a(this,Ef,!1,"f")},Wf=function(){this.menu?.items.forEach(e=>{e instanceof Ub&&e.submenu?.isOpen&&e.submenu.hide()})},Df.styles=xf.styles,Df=t([$("m3e-menu-item-radio")],Df);let qf=class extends(M(P(f(r,"navigation")))){constructor(){super(...arguments),Af.add(this),this[Vf]=(new Ae).disableRovingTabIndex(),Hf.set(this,void 0),this.mode="compact"}get items(){return this[De].items}get selected(){return this[De].selectedItems[0]??null}get currentMode(){return this._mode??("compact"!==this.mode?"expanded":"compact")}set currentMode(e){this._mode=e}disconnectedCallback(){super.disconnectedCallback(),this._mode=void 0,e(this,Hf,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.mode&&e(this,Af,"m",Of).call(this)}willUpdate(t){super.willUpdate(t),t.has("mode")&&(e(this,Hf,"f")?.call(this),"auto"===this.mode?e(this,Af,"m",Of).call(this):(this._mode=void 0,this._updateItems())),t.has("_mode")&&this._updateItems()}render(){return s`<div class="base"><slot @change="${e(this,Af,"m",Ff)}" @slotchange="${e(this,Af,"m",Bf)}"></slot></div>`}_updateItems(){const e="compact"===this.currentMode?"vertical":"horizontal";this._updateOrientation(e),k(this,"-compact","vertical"===e)}_updateOrientation(e){this[De].items.forEach(t=>t.orientation=e)}};var Rf,Uf,Nf;Hf=new WeakMap,Af=new WeakSet,Vf=De,Of=function(){a(this,Hf,Je.observe([Qe.XSmall,Qe.Small],e=>{this._mode=e.get(Qe.XSmall)||e.get(Qe.Small)?"compact":"expanded",this._updateItems()}),"f")},Bf=function(){this[De].setItems([...this.querySelectorAll("m3e-nav-item")]),this._updateItems()},Ff=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},qf.styles=i`:host { display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; min-height: var(--m3e-nav-bar-height, 4rem); } .base { display: flex; align-items: stretch; justify-content: center; box-sizing: border-box; min-height: inherit; height: inherit; width: 100%; background-color: var(--m3e-nav-bar-container-color, ${v.color.surfaceContainer}); --_nav-item-min-width: var(--m3e-nav-bar-vertical-item-width, 7rem); }`,t([u()],qf.prototype,"_mode",void 0),t([m({reflect:!0})],qf.prototype,"mode",void 0),qf=t([$("m3e-nav-bar")],qf);let jf=class extends(R(ue(q(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(...arguments),Rf.add(this),Uf.set(this,t=>e(this,Rf,"m",Nf).call(this,t)),this.orientation="vertical"}get navBar(){return this.closest("m3e-nav-bar")??this.closest("m3e-nav-rail")??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Uf,"f"),{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Uf,"f"),{capture:!0})}update(e){if(super.update(e),e.has("selected")){this.ariaSelected=null,this.ariaPressed=null,this.ariaCurrent=`${this.selected}`;for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected);this.navBar?.[De].notifySelectionChange(this)}}updated(e){super.updated(e),e.has("orientation")&&this._focusRing?.attach(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const e=this.disabled||this.disabledInteractive;return s`${"vertical"===this.orientation?s`<m3e-focus-ring class="focus-ring" inward></m3e-focus-ring>`:n}<div class="outer">${this[G]()}<div class="inner">${"horizontal"===this.orientation?s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring>`:n}<m3e-state-layer class="state-layer" ?disabled="${e}"></m3e-state-layer><m3e-ripple class="ripple" centered ?disabled="${e}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="base"><div class="icon-wrapper" aria-hidden="true"><div class="icon"><slot name="icon" aria-hidden="true"></slot></div></div><div class="label"><slot></slot></div></div></div></div>`}};var Yf,Kf,Zf,Gf,Xf,Jf,Qf,eg,tg,ag,og,ig;Uf=new WeakMap,Rf=new WeakSet,Nf=function(e){e.defaultPrevented||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.navBar?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},jf.styles=i`:host { display: inline-block; vertical-align: middle; position: relative; outline: none; user-select: none; flex: 1; font-size: var(--m3e-nav-item-label-text-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var( --m3e-nav-item-label-text-font-weight, ${v.typescale.standard.label.medium.fontWeight} ); line-height: var( --m3e-nav-item-label-text-line-height, ${v.typescale.standard.label.medium.lineHeight} ); letter-spacing: var(--m3e-nav-item-label-text-tracking, ${v.typescale.standard.label.medium.tracking}); border-radius: var(--m3e-nav-item-shape, ${v.shape.corner.full}); min-width: var(--_nav-item-min-width); align-self: var(--_nav-item-align-self); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([orientation="horizontal"]) { max-width: fit-content; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .outer { height: 100%; } .outer, .inner { display: flex; align-items: center; justify-content: var(--_nav-item-justify-content, center); position: relative; border-radius: inherit; } .icon-wrapper { position: relative; flex: none; } .base { justify-content: unset; box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; } .icon { position: absolute; } .label { vertical-align: middle; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]) { width: 1em; font-size: var(--m3e-nav-item-icon-size, 1.5rem) !important; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-inactive-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-inactive-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-inactive-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-inactive-label-text-color, ${v.color.onSurfaceVariant}); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-inactive-icon-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-active-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-active-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-active-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host([selected]:not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-active-label-text-color, ${v.color.secondary}); } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: var(--m3e-nav-item-active-container-color, ${v.color.secondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-active-icon-color, ${v.color.onSecondaryContainer}); } :host([orientation="vertical"]) .outer { align-self: stretch; align-items: flex-start; } :host([orientation="vertical"]) .label { text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host([orientation="vertical"]) .base { flex-direction: column; row-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="vertical"]) .base { margin-block: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple { top: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); bottom: unset; } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { width: var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { height: var(--m3e-vertical-nav-item-active-indicator-height, 2rem); } :host([orientation="vertical"]) .icon { top: calc( calc(var(--m3e-vertical-nav-item-active-indicator-height, 2rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); left: calc( calc(var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); } :host([orientation="vertical"]) .focus-ring { border-radius: var(--m3e-nav-item-focus-ring-shape, ${v.shape.corner.medium}); } :host([orientation="horizontal"]) .icon-wrapper { width: var(--m3e-nav-item-icon-size, 1.5rem); height: var(--m3e-nav-item-icon-size, 1.5rem); } :host([orientation="horizontal"]) .base { padding: var(--m3e-horizontal-nav-item-padding, 1rem); } :host([orientation="horizontal"]) .label { flex: 1 1 auto; } :host([orientation="horizontal"]) .base { column-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="horizontal"]) .inner { height: var(--m3e-horizontal-nav-item-active-indicator-height, 2.5rem); width: fit-content; } .state-layer, .ripple { margin-inline: auto; } :host(:disabled) .label, :host([disabled-interactive]) .label { color: color-mix( in srgb, var(--m3e-nav-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: color-mix( in srgb, var(--m3e-nav-item-disabled-icon-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-icon-opacity, 38%), transparent ); } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { :host(:disabled) .label, :host([disabled-interactive]) .label, :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: GrayText; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label, :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: ButtonText; } :host([orientation="vertical"][selected]:not(:disabled):not([disabled-interactive])) .label { color: ButtonText; } :host([orientation="horizontal"][selected]:not(:disabled):not([disabled-interactive])) .label, :host([selected]:not(:disabled):not([disabled-interactive])) .icon { forced-color-adjust: none; color: ButtonFace; } }`,t([h(".focus-ring")],jf.prototype,"_focusRing",void 0),t([h(".state-layer")],jf.prototype,"_stateLayer",void 0),t([h(".ripple")],jf.prototype,"_ripple",void 0),t([m({reflect:!0})],jf.prototype,"orientation",void 0),jf=t([$("m3e-nav-item")],jf);let rg=ig=class extends(ue(Y(x(P(f(r,"treeitem"),!0),"opening","opened","closing","closed")))){constructor(){super(...arguments),Yf.add(this),this._hasChildItems=!1,Kf.set(this,[]),Zf.set(this,null),Gf.set(this,new Array),Xf.set(this,null),this.open=!1}get link(){return e(this,Xf,"f")}get label(){return this._base??null}get visible(){return!e(this,Gf,"f").some(e=>!e.open)}get path(){return[...e(this,Gf,"f"),this]}get hasChildItems(){return this._hasChildItems}get parentItem(){return e(this,Gf,"f")[e(this,Gf,"f").length-1]??null}get childItems(){return e(this,Kf,"f")}get level(){return e(this,Gf,"f").length+1}expand(e=!1){this.hasChildItems&&(this.open=!0,e&&this.childItems.forEach(e=>e.expand(!0)))}collapse(e=!1){this.hasChildItems&&(this.open=!1,e&&this.childItems.forEach(e=>e.collapse(!0)))}toggle(){this.hasChildItems&&(this.open=!this.open)}connectedCallback(){super.connectedCallback(),e(this,Gf,"f").length=0;for(let t=this.parentElement?.closest("m3e-nav-menu-item");t;t=t.parentElement?.closest("m3e-nav-menu-item"))e(this,Gf,"f").push(t);e(this,Gf,"f").reverse(),this.style.setProperty("--_nav-menu-item-level",`${this.level}`),a(this,Zf,this.closest("m3e-nav-menu"),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Gf,"f").length=0}update(t){if(super.update(t),t.has("selected")){this.ariaSelected=null,this.ariaCurrent=this.hasChildItems?null:`${this.selected}`;for(const e of this.querySelectorAll(":scope > m3e-icon[slot]"))e.toggleAttribute("filled",this.selected);e(this,Gf,"f").forEach(e=>e.selected=this.selected),this.selected&&!this.hasChildItems&&this.closest("m3e-nav-menu")?.[De].notifySelectionChange(this)}(t.has("open")||t.has("_hasChildItems"))&&(this.ariaExpanded=this._hasChildItems?`${this.open}`:null),(t.has("_hasChildItems")&&this.disabled||t.has("disabled"))&&e(this,Kf,"f").forEach(e=>e.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e);const t=this._base;t&&[this.focusRing,this.stateLayer,this.ripple].forEach(e=>e?.attach(t))}render(){return s`<div class="base" @click="${e(this,Yf,"m",ag)}"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="icon" aria-hidden="true">${e(this,Yf,"m",Jf).call(this)}</div><div class="label"><slot name="label" @slotchange="${e(this,Yf,"m",eg)}"></slot></div><slot name="badge"></slot><div aria-hidden="true" class="toggle"><slot name="toggle-icon"><svg class="toggle-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><m3e-collapsible class="group" role="group" aria-hidden="${je(this._hasChildItems?void 0:"true")}" ?open="${this._hasChildItems&&this.open}" @opening="${e(this,Yf,"m",og)}" @opened="${e(this,Yf,"m",og)}" @closing="${e(this,Yf,"m",og)}" @closed="${e(this,Yf,"m",og)}"><slot @slotchange="${e(this,Yf,"m",tg)}"></slot></m3e-collapsible>`}};var sg,ng,lg,cg,dg,hg,mg,pg,ug,vg,bg,fg,gg,yg,$g;Kf=new WeakMap,Zf=new WeakMap,Gf=new WeakMap,Xf=new WeakMap,Yf=new WeakSet,Jf=function(){const t=s`<slot name="icon" @slotchange="${e(this,Yf,"m",Qf)}"></slot>`;return this.selected&&!this.hasChildItems?s`<slot name="selected-icon" @slotchange="${e(this,Yf,"m",Qf)}">${t}</slot>`:t},Qf=function(e){k(this,"-with-icon",g(e.target))},eg=function(t){a(this,Xf,t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLAnchorElement)??null,"f"),e(this,Xf,"f")?.setAttribute("tabindex","-1")},tg=function(t){a(this,Kf,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof ig),"f");const o=this._hasChildItems;this._hasChildItems=e(this,Kf,"f").length>0,k(this,"-with-items",this._hasChildItems),(o||this._hasChildItems)&&(this.selected=e(this,Kf,"f").some(e=>e.selected))},ag=function(){if(!this.disabled)if(e(this,Zf,"f")?.[De].setActiveItem(this),this._hasChildItems)this.toggle();else{e(this,Zf,"f")?.[De].select(this),e(this,Gf,"f").forEach(e=>e.selected=this.selected),e(this,Xf,"f")?.click();const t=this.closest("m3e-drawer-container");if(t){const e=this.closest("[slot='start']")??this.closest("[slot='end']");e&&(O(t,`-${e.slot}-push`)||O(t,`-${e.slot}-over`))&&setTimeout(()=>{t.removeAttribute(e.slot),t.dispatchEvent(new Event("change",{bubbles:!0}))},300)}}},og=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},F(i`m3e-nav-menu-item > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; } m3e-nav-menu-item > m3e-nav-menu-item:first-of-type { margin-block-start: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); } m3e-nav-menu-item > m3e-nav-menu-item:last-of-type { margin-block-end: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); }`),rg.styles=i`:host { display: block; flex: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: flex; align-items: center; position: relative; padding-inline: var(--m3e-nav-menu-item-padding, 1.5rem); height: calc(var(--m3e-nav-menu-item-height, 3.5rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-nav-menu-item-spacing, 0.75rem); font-size: var(--m3e-nav-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard},\n background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .base, .focus-ring { border-radius: var(--m3e-nav-menu-item-shape, ${v.shape.corner.full}); } .label { flex: 1 1 auto; display: flex; align-items: center; position: relative; overflow: hidden; vertical-align: middle; } .icon, .toggle { flex: none; display: flex; align-items: center; justify-content: center; position: relative; vertical-align: middle; } ::slotted([slot="badge"]) { flex: none; position: relative; font-size: var(--m3e-nav-menu-item-badge-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-badge-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-badge-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-badge-tracking, ${v.typescale.standard.label.large.tracking}); } .toggle { transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:state(-with-icon))) .icon { display: none; } .icon { margin-inline-start: -0.5rem; } .toggle { margin-inline-end: -0.5rem; } .group { padding-inline-start: var(--m3e-nav-menu-item-inset, 1rem); } :host([open]) .toggle { transform: rotate(180deg); } :host(:not(:state(-with-items))) .toggle, :host(:not(:state(-with-items))) .group { display: none; } ::slotted([slot="selected-icon"]), ::slotted([slot="icon"]), ::slotted([slot="toggle-icon"]), .toggle-icon { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-nav-menu-item-icon-size, 1.5rem); } :host(:not(:disabled)) .base { cursor: pointer; } :host(:not(:disabled)) .base { color: var(--m3e-nav-menu-item-label-color, ${v.color.onSurfaceVariant}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-nav-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-nav-menu-item-disabled-color-opacity, 38%), transparent ); } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { color: var(--m3e-nav-menu-item-selected-label-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-nav-menu-item-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-nav-menu-item-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not([selected]):not(:state(-with-items)):not(:disabled)) .base { --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-unselected-ripple-color, ${v.color.onSurface}); } .state-layer { margin-inline: auto; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: var(--m3e-nav-menu-item-open-container-color, ${v.color.surfaceContainerHighest}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-open-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-open-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-open-ripple-color, ${v.color.onSurface}); } ::slotted(a[slot="label"]) { all: unset; } @media (prefers-reduced-motion) { .base, .toggle, .state-layer { transition: none !important; } } @media (forced-colors: active) { .base, .state-layer { transition: none !important; } :host(:disabled) .base { color: GrayText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: unset; color: ButtonText; } }`,t([h(".state-layer")],rg.prototype,"stateLayer",void 0),t([h(".focus-ring")],rg.prototype,"focusRing",void 0),t([h(".ripple")],rg.prototype,"ripple",void 0),t([h(".base")],rg.prototype,"_base",void 0),t([u()],rg.prototype,"_hasChildItems",void 0),t([m({type:Boolean,reflect:!0})],rg.prototype,"open",void 0),rg=ig=t([$("m3e-nav-menu-item")],rg);let xg=$g=class extends(f(r,"tree")){constructor(){super(),sg.add(this),ng.set(this,!1),lg.set(this,!1),this[yg]=(new Ae).withVerticalOrientation().withHomeAndEnd().withTypeahead().withSkipPredicate(e=>e.disabled||!e.visible).disableRovingTabIndex().onActiveItemChange(()=>{this[De].activeItem&&e(this,sg,"m",bg).call(this,this[De].activeItem)}).onSelectedItemsChange(()=>{const t=this.selected;for(const a of this.items)a!==t&&e(this,sg,"m",gg).call(this,a,!1,!1);t?.label&&_(t.label,this,{block:"start",behavior:"smooth"})}),cg.set(this,t=>e(this,sg,"m",pg).call(this,t)),dg.set(this,t=>e(this,sg,"m",ug).call(this,t)),hg.set(this,t=>e(this,sg,"m",vg).call(this,t)),new Z(this,{callback:e=>a(this,lg,e,"f")}),new K(this,{callback:()=>{e(this,lg,"f")||e(this,sg,"m",fg).call(this)}})}get selected(){return this[De].selectedItems[0]??null}get items(){return this[De].items}expand(e){(e??this[De].items).forEach(e=>e.expand())}collapse(e){(e??this[De].items).forEach(e=>e.collapse());const t=this[De].activeItem;if(t&&!t.visible)for(let e=t.parentItem;e;e=e.parentItem)if(e.visible){this[De].setActiveItem(e);break}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",e(this,cg,"f")),this.addEventListener("keyup",e(this,dg,"f")),this.addEventListener("pointerdown",e(this,hg,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,cg,"f")),this.removeEventListener("keyup",e(this,dg,"f")),this.removeEventListener("pointerdown",e(this,hg,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,sg,"m",mg)}"></slot></div>`}};var wg,kg,Cg,Sg,_g;ng=new WeakMap,lg=new WeakMap,cg=new WeakMap,dg=new WeakMap,hg=new WeakMap,sg=new WeakSet,yg=De,mg=function(){for(const e of this.querySelectorAll("m3e-divider"))e.ariaHidden="true";const{added:t}=this[De].setItems([...this.querySelectorAll("m3e-nav-menu-item")]);for(const e of t)e.id=e.id||"m3e-nav-menu-item-"+$g.__nextId++;this[De].activeItem?(this.setAttribute("aria-activedescendant",this[De].activeItem.id),e(this,sg,"m",fg).call(this)):this.removeAttribute("aria-activedescendant")},pg=function(t){a(this,ng,!1,"f"),e(this,sg,"m",fg).call(this);const o=this[De].activeItem;if(!t.defaultPrevented&&o&&!o.disabled)switch(t.key){case"Enter":case" ":t.preventDefault()," "===t.key&&o.ripple&&!o.ripple.visible&&o.ripple.show(0,0,!0),o.hasChildItems?requestAnimationFrame(()=>o.toggle()):o.selected||(this[De].select(o),o.link?.click());break;case"*":t.preventDefault(),o.expand(!0);break;case"Left":case"ArrowLeft":if(t.preventDefault(),"ltr"===qe.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&requestAnimationFrame(()=>{e.collapse(),this[De].setActiveItem(e)})}else o.hasChildItems&&!o.open&&o.expand();break;case"Right":case"ArrowRight":if(t.preventDefault(),"rtl"===qe.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&requestAnimationFrame(()=>{e.collapse(),this[De].setActiveItem(e)})}else o.hasChildItems&&!o.open&&o.expand();break;default:this[De].onKeyDown(t)}},ug=function(e){const t=this[De].activeItem;e.defaultPrevented||!t||t.disabled||" "!==e.key||t.ripple?.hide()},vg=function(t){if(!t.defaultPrevented&&!e(this,ng,"f")){a(this,ng,!0,"f");const o=t.composedPath().reverse().find(e=>e instanceof rg);o&&!o.disabled&&e(this,sg,"m",gg).call(this,o,!0,!1)}},bg=function(t){this.setAttribute("aria-activedescendant",t.id),t.label&&_(t.label,this,{block:"nearest",behavior:"smooth"}),e(this,sg,"m",fg).call(this)},fg=function(){const t=this.matches(":focus")||this.matches(":focus-within"),a=!e(this,ng,"f")&&this.matches(":focus-visible");this[De].items.forEach(o=>{const i=o===this[De].activeItem;e(this,sg,"m",gg).call(this,o,i&&t,i&&a)})},gg=function(e,t,a){t&&a?e.stateLayer?.show("focused"):e.stateLayer?.hide("focused"),a?e.focusRing?.show():e.focusRing?.hide()},F(i`m3e-nav-menu > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; }`),xg.styles=i`:host { display: block; outline: none; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; } .base { width: 100%; display: flex; flex-direction: column; position: relative; min-height: inherit; box-sizing: border-box; padding-block-start: var(--m3e-nav-menu-padding-top, 0.5rem); padding-block-end: var(--m3e-nav-menu-padding-bottom, 0.5rem); padding-inline-start: var(--m3e-nav-menu-padding-left, 0.75rem); padding-inline-end: var(--m3e-nav-menu-padding-right, 0.75rem); }`,xg.__nextId=0,xg=$g=t([$("m3e-nav-menu")],xg);let Lg=_g=class extends(P(f(r,"group"))){constructor(){super(...arguments),wg.add(this),kg.set(this,"m3e-nav-menu-item-group-label-"+_g.__nextId++),Cg.set(this,void 0)}connectedCallback(){super.connectedCallback(),k(this,"-divided","M3E-DIVIDER"===this.previousElementSibling?.tagName)}disconnectedCallback(){super.disconnectedCallback(),C(this,"-divided")}render(){return s`<div class="label"><slot name="label" @slotchange="${e(this,wg,"m",Sg)}"></slot></div><slot></slot>`}};var Eg,zg,Mg,Tg;kg=new WeakMap,Cg=new WeakMap,wg=new WeakSet,Sg=function(t){const o=t.target.assignedElements({flatten:!0})[0];o!==e(this,Cg,"f")&&(e(this,Cg,"f")?.id===e(this,kg,"f")&&(e(this,Cg,"f").id=""),a(this,Cg,o,"f"),e(this,Cg,"f")?(e(this,Cg,"f").id=e(this,Cg,"f").id||e(this,kg,"f"),this.setAttribute("aria-labelledby",e(this,Cg,"f").id)):this.removeAttribute("aria-labelledby")),k(this,"-with-label",void 0!==e(this,Cg,"f"))},Lg.styles=i`:host { display: contents; } :host(:not(:state(-with-label))) .label { display: none; } .label { margin-inline-start: var(--m3e-nav-menu-item-group-label-inset, 1rem); margin-block-end: var(--m3e-nav-menu-item-group-label-space, 1rem); flex: none; } :host(:state(-divided)) .label { margin-block-start: calc( var(--m3e-nav-menu-item-group-label-space, 1rem) - var(--m3e-nav-menu-divider-margin, 0.25rem) ); } :host(:not(:state(-divided))) .label { margin-block-start: var(--m3e-nav-menu-item-group-label-space, 1rem); }`,Lg.__nextId=0,Lg=_g=t([$("m3e-nav-menu-item-group")],Lg);let Pg=class extends et{constructor(){super(),Eg.add(this),zg.set(this,(new Oe).withHomeAndEnd().withWrap()),Mg.set(this,t=>e(this,Eg,"m",Tg).call(this,t)),this[De].onSelectedItemsChange(()=>{e(this,zg,"f").updateActiveItem(this[De].activeItem)})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Mg,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Mg,"f"))}_updateItems(){const t=Te.findInteractiveElements(this),{added:a}=e(this,zg,"f").setItems(t);if(!e(this,zg,"f").activeItem){const t=a.find(e=>!e.hasAttribute("disabled"));t&&e(this,zg,"f").updateActiveItem(t)}super._updateItems()}_updateOrientation(e){super._updateOrientation(e),this.querySelectorAll("m3e-fab").forEach(t=>t.toggleAttribute("extended","horizontal"===e))}};var Ig,Wg,Dg;zg=new WeakMap,Mg=new WeakMap,Eg=new WeakSet,Tg=function(t){e(this,zg,"f").onKeyDown(t)},F(i`m3e-nav-rail > m3e-icon-button, m3e-nav-rail > m3e-fab { margin-block-end: var(--m3e-nav-rail-button-item-space, 1rem); } m3e-nav-rail:not(:state(-compact)) > m3e-icon-button { margin-inline-start: var(--m3e-nav-rail-expanded-icon-button-inset, 0.5rem); }`),Pg.styles=i`:host { display: block; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } .base { display: flex; width: 100%; min-width: inherit; max-width: inherit; flex-direction: column; padding-block-start: var(--m3e-nav-rail-top-space, 2.75rem); padding-block-end: var(--m3e-nav-rail-bottom-space, 0.5rem); } :host(:state(-compact)) { width: var(--m3e-nav-rail-compact-width, 6rem); } :host(:state(-compact)) ::slotted(m3e-fab) { align-self: center; } :host(:not(:state(-compact))) { min-width: var(--m3e-nav-rail-expanded-min-width, 13.75rem); max-width: var(--m3e-nav-rail-expanded-max-width, 22.5rem); } :host(:not(:state(-compact))) .base { padding-inline: var(--m3e-nav-rail-expanded-inline-padding, 1.25rem); align-items: flex-start; --m3e-horizontal-nav-item-active-indicator-height: var(--m3e-nav-rail-expanded-item-height, 3.5rem); --_nav-item-align-self: stretch; --_nav-item-justify-content: flex-start; } ::slotted(*) { flex: none; } :host(:state(-compact)) ::slotted(m3e-icon-button) { align-self: center; } ::slotted(m3e-fab) { --m3e-fab-container-elevation: ${v.elevation.level0}; --m3e-fab-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-hover-container-elevation: ${v.elevation.level1}; --m3e-fab-lowered-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-hover-container-elevation: ${v.elevation.level1}; }`,Pg=t([$("m3e-nav-rail")],Pg);let Ag=class extends(b(z)){constructor(){super(...arguments),Ig.add(this),Wg.set(this,new w(this,{target:null,config:{attributeFilter:["class"]},callback:()=>e(this,Ig,"m",Dg).call(this)}))}attach(t){t instanceof Pg&&e(this,Wg,"f").observe(t),this.htmlFor&&this.parentElement&&Ie(this.parentElement,"aria-controls",this.htmlFor),super.attach(t),e(this,Ig,"m",Dg).call(this)}detach(){for(const t of e(this,Wg,"f").targets)e(this,Wg,"f").unobserve(t);this.parentElement&&(this.htmlFor&&We(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),super.detach()}_onClick(){this.control instanceof Pg&&(this.control.currentMode="compact"===this.control.currentMode?"expanded":"compact")}};var Hg,Og,Bg,Fg;Wg=new WeakMap,Ig=new WeakSet,Dg=async function(){if(!this.parentElement)return;const e=this.control instanceof Pg&&"expanded"===this.control.currentMode;this.parentElement.ariaExpanded=`${e}`,this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",e),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},Ag=t([$("m3e-nav-rail-toggle")],Ag);let Vg=class extends(ue(Y(P(f(r,"option"))))){constructor(){super(...arguments),Hg.add(this),Og.set(this,void 0),Bg.set(this,""),this.term="",this.highlightMode="contains",this.disableHighlight=!1}get value(){return e(this,Og,"f")??e(this,Bg,"f")}set value(e){a(this,Og,e,"f")}get label(){return e(this,Bg,"f")}[(Og=new WeakMap,Bg=new WeakMap,Hg=new WeakSet,Fe)](){return this.label}get isEmpty(){return""===this.value}connectedCallback(){super.connectedCallback(),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}firstUpdated(e){super.firstUpdated(e),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")&&this.selected){const e=this.closest("[role='listbox']")??this.closest("m3e-autocomplete")??this.closest("m3e-select");e&&"true"!==e.ariaMultiSelectable&&!e.hasAttribute("multi")&&e.querySelectorAll("m3e-option").forEach(e=>{e!==this&&e.selected&&(e.selected=!1)})}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></div><m3e-text-overflow class="label"><m3e-text-highlight term="${this.term}" mode="${this.highlightMode}" ?disabled="${this.disableHighlight}"><slot @slotchange="${e(this,Hg,"m",Fg)}"></slot></m3e-text-highlight></m3e-text-overflow></div></div>`}};var qg,Rg,Ug,Ng,jg;Fg=function(e){a(this,Bg,me(e.target),"f"),k(this,"-empty",this.isEmpty),this.selected&&this.closest("m3e-select")?.requestUpdate?.()},Vg.styles=i`:host { display: block; outline: none; user-select: none; flex: none; height: var(--m3e-option-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) .base { color: var(--m3e-option-color, ${v.color.onSurface}); --m3e-state-layer-hover-color: var(--m3e-option-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-option-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-option-ripple-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not(:state(-empty))[selected]) .base { color: var(--m3e-option-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-option-selected-container-color, ${v.color.tertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-option-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-option-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-option-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not([aria-disabled="true"])) { cursor: pointer; } :host([aria-disabled="true"]) .base { color: color-mix( in srgb, var(--m3e-option-disabled-color, ${v.color.onSurface}) var(--m3e-option-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-option-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([selected]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host([selected]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; width: 100%; overflow: hidden; column-gap: var(--m3e-option-icon-label-space, 0.5rem); padding-inline-start: var(--_option-padding-start, var(--m3e-option-padding-start, 0.75rem)); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); font-size: var(--m3e-option-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-option-focus-ring-shape, inherit); } .icon { margin-inline-start: calc(0px - var(--m3e-option-icon-label-space, 0.5rem)); transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects}, width ${v.motion.spring.fastEffects}`)}; } :host([selected]) .icon { margin-inline-start: 0; width: var(--m3e-option-icon-size, 1.25rem); } .icon { flex: none; width: 0px; font-size: var(--m3e-option-icon-size, 1.25rem); } :host(:state(-empty)) .icon, :host(:state(-hide-selection-indicator)) .icon, :host(:not([selected])) .check { display: none; } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host([aria-disabled="true"]) .base { color: GrayText; } } @media (prefers-reduced-motion) { .icon, .base { transition: none; } }`,t([h(".focus-ring")],Vg.prototype,"focusRing",void 0),t([h(".state-layer")],Vg.prototype,"stateLayer",void 0),t([h(".ripple")],Vg.prototype,"_ripple",void 0),t([m()],Vg.prototype,"value",null),t([m()],Vg.prototype,"term",void 0),t([m({attribute:"highlight-mode"})],Vg.prototype,"highlightMode",void 0),t([m({attribute:"disable-highlight",type:Boolean})],Vg.prototype,"disableHighlight",void 0),Vg=t([$("m3e-option")],Vg);let Yg=jg=class extends(f(r,"group")){constructor(){super(...arguments),qg.add(this),Rg.set(this,"m3e-optgroup-label-"+jg.__nextId++),Ug.set(this,void 0)}render(){return s`<m3e-text-overflow class="label"><slot name="label" @slotchange="${e(this,qg,"m",Ng)}"></slot></m3e-text-overflow><slot></slot>`}};var Kg,Zg,Gg,Xg;Rg=new WeakMap,Ug=new WeakMap,qg=new WeakSet,Ng=function(t){const o=t.target.assignedElements({flatten:!0})[0]??void 0;o!==e(this,Ug,"f")&&(e(this,Ug,"f")?.id&&(We(this,"aria-labelledby",e(this,Ug,"f").id),e(this,Ug,"f").id===e(this,Rg,"f")&&(e(this,Ug,"f").id="")),a(this,Ug,o,"f"),e(this,Ug,"f")&&(e(this,Ug,"f").id=e(this,Ug,"f").id||e(this,Rg,"f"),Ie(this,"aria-labelledby",e(this,Ug,"f").id)))},Yg.styles=i`:host { display: block; --_option-padding-start: calc(var(--m3e-option-padding-start, 0.75rem) * 2); } .label { height: var(--m3e-option-height, 3rem); font-size: var(--m3e-option-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-tracking, ${v.typescale.standard.label.large.tracking}); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); padding-inline-start: var(--m3e-option-padding-start, 0.75rem); color: var(--m3e-option-color, ${v.color.onSurface}); flex: none; }`,Yg.__nextId=0,Yg=jg=t([$("m3e-optgroup")],Yg);let Jg=class extends(f(Ue,"listbox")){constructor(){super(),Kg.add(this),this.state="content",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,Kg,"m",Xg).call(this)})}connectedCallback(){super.connectedCallback(),e(this,Kg,"m",Xg).call(this)}render(){return s`<div class="base"><slot></slot><div class="no-data" aria-hidden="true"><slot name="no-data" @slotchange="${e(this,Kg,"m",Zg)}"></slot></div><div class="loading" aria-hidden="true"><slot name="loading" @slotchange="${e(this,Kg,"m",Gg)}"></slot></div></div>`}};
|
|
59
|
+
*/var Su,_u,Lu,Eu,zu,Mu,Tu,Pu,Iu,Wu,Du,Au,Hu,Ou,Bu,Fu,qu,Vu,Ru,Uu,Nu,ju,Yu,Ku,Zu,Gu,Xu,Ju,Qu,ev;let tv=class extends(M(P(r))){constructor(){super(),Su.add(this),_u.set(this,null),Lu.set(this,void 0),Eu.set(this,()=>e(this,Su,"m",Gu).call(this)),zu.set(this,()=>e(this,Su,"m",Ku).call(this)),Mu.set(this,new w(this,{target:null,config:{attributeFilter:["disabled","readonly","required"]},callback:()=>this.notifyControlStateChange()})),Tu.set(this,new A(this,{target:null,callback:()=>e(this,Su,"m",Nu).call(this)})),Pu.set(this,new K(this,{target:null,callback:t=>{t=t&&!(e(this,_u,"f")?.disabled??1),k(this,"-no-animate",!1),a(this,Au,t,"f"),t?k(this,"-float-label",!0):(this._invalid=!(e(this,_u,"f")?.checkValidity?.()??1),this.notifyControlStateChange())}})),Iu.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,Su,"m",Qu).call(this)})),Wu.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,Su,"m",ev).call(this)})),Du.set(this,new Z(this,{target:null,callback:t=>k(this,"-pressed",t&&!(e(this,_u,"f")?.disabled??1))})),Au.set(this,!1),this._pseudoLabel="",this._required=!1,this._invalid=!1,this._validationMessage="",Hu.set(this,""),Ou.set(this,""),this.variant="outlined",this.hideRequiredMarker=!1,this.hideSubscript="auto",this.floatLabel="auto",new ne(this,{callback:()=>k(this,"-no-animate",!1)})}get menuAnchor(){return this._base}get control(){return e(this,_u,"f")}notifyControlStateChange(t=!1){this._required=!0===e(this,_u,"f")?.required,k(this,"-required",this._required),k(this,"-disabled",!0===e(this,_u,"f")?.disabled),k(this,"-readonly",be(e(this,_u,"f"))&&!0===e(this,_u,"f").readOnly),"auto"===this.floatLabel&&k(this,"-float-label",e(this,Su,"a",Bu)||e(this,Au,"f")),t&&(this._invalid=!(e(this,_u,"f")?.checkValidity?.()??1)),k(this,"-invalid",this._invalid),this._validationMessage=e(this,_u,"f")?.validationMessage??"",this.isUpdatePending||this.performUpdate()}connectedCallback(){super.connectedCallback(),k(this,"-no-animate",!0)}disconnectedCallback(){super.disconnectedCallback(),e(this,Su,"m",Xu).call(this,null)}reconnectedCallback(){super.reconnectedCallback(),e(this,Su,"m",Fu).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Su,"m",Fu).call(this)}update(t){super.update(t),t.has("_invalid")&&e(this,_u,"f")&&(e(this,_u,"f").ariaInvalid=this._invalid?"true":null,e(this,Ou,"f")&&(this._invalid?Be.describe(e(this,_u,"f"),e(this,Ou,"f")):Be.removeDescription(e(this,_u,"f"),e(this,Ou,"f"))))}render(){return s`<div class="base" @click="${e(this,Su,"m",Yu)}">${"outlined"===this.variant?s`<div class="outline" aria-hidden="true"><div class="outline-start"></div><div class="outline-notch"><div class="pseudo-label">${this._pseudoLabel} ${!this.hideRequiredMarker&&this._required?s` *`:n}</div></div><div class="outline-end"></div></div>`:n}<div class="prefix"><slot name="prefix" @slotchange="${e(this,Su,"m",Ru)}"></slot></div><div class="content"><span class="prefix-text"><slot name="prefix-text"></slot></span><span class="input"><slot @slotchange="${e(this,Su,"m",ju)}" @change="${e(this,Su,"m",Zu)}"></slot></span><span class="suffix-text"><slot name="suffix-text"></slot></span><span class="label"><slot name="label" @slotchange="${e(this,Su,"m",Vu)}"></slot>${!this.hideRequiredMarker&&this._required?s`<span class="required-marker" aria-hidden="true"> *</span>`:n}</span></div><div class="suffix" @click="${e(this,Su,"m",qu)}" @focusin="${e(this,Su,"m",qu)}" @focusout="${e(this,Su,"m",qu)}" @pointerdown="${e(this,Su,"m",qu)}" @keydown="${e(this,Su,"m",qu)}" @keyup="${e(this,Su,"m",qu)}"><slot name="suffix" @slotchange="${e(this,Su,"m",Uu)}"></slot></div></div><span class="subscript" aria-hidden="true"><span class="error"><slot name="error">${this._validationMessage}</slot></span><span class="hint"><slot name="hint"></slot></span></span>`}};_u=new WeakMap,Lu=new WeakMap,Eu=new WeakMap,zu=new WeakMap,Mu=new WeakMap,Tu=new WeakMap,Pu=new WeakMap,Iu=new WeakMap,Wu=new WeakMap,Du=new WeakMap,Au=new WeakMap,Hu=new WeakMap,Ou=new WeakMap,Su=new WeakSet,Bu=function(){return void 0!==e(this,_u,"f")?.shouldLabelFloat?!0===e(this,_u,"f").shouldLabelFloat:"string"==typeof e(this,_u,"f")?.value&&e(this,_u,"f").value.length>0},Fu=function(){e(this,Pu,"f").observe(this._base),e(this,Du,"f").observe(this._base),e(this,Iu,"f").observe(this._hint),e(this,Su,"m",Qu).call(this),e(this,Wu,"f").observe(this._error),e(this,Su,"m",ev).call(this)},qu=function(e){e.stopImmediatePropagation(),e.stopPropagation()},Vu=function(e){const t=e.target.assignedElements({flatten:!0});k(this,"-with-label",t.length>0),this._pseudoLabel=t[0]?.textContent??""},Ru=function(t){k(this,"-with-prefix",g(t.target)),e(this,Tu,"f").observe(this._prefix)},Uu=function(e){k(this,"-with-suffix",g(e.target))},Nu=function(){"outlined"===this.variant&&this._base.style.setProperty("--_prefix-width",`${this._prefix.clientWidth}px`)},ju=function(t){e(this,Su,"m",Xu).call(this,Cu(t.target))},Yu=function(t){!e(this,_u,"f")||e(this,Au,"f")||e(this,_u,"f").disabled||(e(this,_u,"f").onContainerClick?e(this,_u,"f").onContainerClick(t):e(this,_u,"f").focus())},Ku=function(){this._invalid=!0,this.notifyControlStateChange()},Zu=function(){this._invalid=!(e(this,_u,"f")?.checkValidity?.()??1),this.notifyControlStateChange()},Gu=function(){this._invalid=!1,setTimeout(()=>this.notifyControlStateChange())},Xu=function(t){if(e(this,_u,"f")!==t&&(e(this,_u,"f")&&(e(this,Hu,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Hu,"f")),e(this,Ou,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Ou,"f")),e(this,Mu,"f").unobserve(e(this,_u,"f")),e(this,_u,"f").removeEventListener("invalid",e(this,zu,"f")),e(this,_u,"f").form?.removeEventListener("reset",e(this,Eu,"f")),e(this,Lu,"f")?.call(this),a(this,Lu,void 0,"f")),a(this,_u,t,"f"),["INPUT","TEXTAREA"].includes(e(this,_u,"f")?.tagName??"")?this._base.style.setProperty("--_form-field-cursor","text"):this._base.style.removeProperty("--_form-field-cursor"),k(this,"-with-select","M3E-SELECT"===e(this,_u,"f")?.tagName),O(this,"-with-select")&&this._base.style.setProperty("--_form-field-cursor","pointer"),e(this,_u,"f"))){e(this,Mu,"f").observe(e(this,_u,"f")),e(this,_u,"f").addEventListener("invalid",e(this,zu,"f")),e(this,_u,"f").form?.addEventListener("reset",e(this,Eu,"f")),e(this,_u,"f").removeAttribute("aria-invalid"),e(this,Hu,"f")&&Be.describe(e(this,_u,"f"),e(this,Hu,"f")),this.notifyControlStateChange();const t=e(this,_u,"f").tagName.toLowerCase();t.startsWith("m3e-")&&!customElements.get(t)?customElements.whenDefined(t).then(()=>e(this,Su,"m",Ju).call(this)):e(this,Su,"m",Ju).call(this)}},Ju=function(){e(this,_u,"f")&&a(this,Lu,fe(e(this,_u,"f"),"value",{set:(e,t)=>{t(e),this.notifyControlStateChange(!0)}}),"f")},Qu=function(){const t=me(this._hint,!0);t!==e(this,Hu,"f")&&(e(this,_u,"f")&&e(this,Hu,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Hu,"f")),a(this,Hu,t,"f"),e(this,_u,"f")&&e(this,Hu,"f")&&Be.describe(e(this,_u,"f"),e(this,Hu,"f")))},ev=function(){const t=me(this._error,!0);t!==e(this,Ou,"f")&&(e(this,_u,"f")&&e(this,Ou,"f")&&Be.removeDescription(e(this,_u,"f"),e(this,Ou,"f")),a(this,Ou,t,"f"),e(this,_u,"f")&&e(this,Ou,"f")&&this._invalid&&Be.describe(e(this,_u,"f"),e(this,Ou,"f")))},F(i`m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) input::placeholder, m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) textarea::placeholder { opacity: 0; transition: opacity 0s; } m3e-form-field[variant="outlined"] m3e-input-chip-set { margin-block: calc(calc(3.5rem + ${v.density.calc(-2)}) / 4); } @media (prefers-reduced-motion) { m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { transition: none !important; } }`),tv.styles=i`:host { display: inline-flex; flex-direction: column; vertical-align: middle; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); width: var(--m3e-form-field-width, 14.5rem); color: var(--_form-field-color); } :host(:not(:state(-disabled))) .base { cursor: var(--_form-field-cursor); } .base { display: flex; align-items: center; position: relative; min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); --_form-field-label-line-height: var( --m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight} ); } .content { display: flex; align-items: center; position: relative; flex: 1 1 auto; min-width: 0; min-height: var(--m3e-form-field-icon-size, 1.5rem); } .prefix, .suffix { display: flex; align-items: center; position: relative; user-select: none; flex: none; font-size: var(--m3e-form-field-icon-size, 1.5rem); } .prefix-text, .suffix-text { opacity: 1; transition: opacity ${v.motion.duration.extraLong1}; user-select: none; flex: none; } .input { display: inline-flex; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; } .label { display: flex; position: absolute; pointer-events: none; user-select: none; top: 0; left: 0; right: 0; font-size: var(--m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-label-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-label-tracking, ${v.typescale.standard.body.small.tracking}); color: var(--_form-field-label-color, inherit); transition: ${o(`top ${v.motion.duration.short4}, \n font-size ${v.motion.duration.short4}, \n line-height ${v.motion.duration.short4}`)}; } :host(:state(-with-select)) .label { margin-inline-end: 1.5rem; } ::slotted([slot="label"]) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subscript { display: inline-flex; width: 100%; margin-top: 0.25rem; font-size: var(--m3e-form-field-subscript-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-subscript-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-subscript-tracking, ${v.typescale.standard.body.small.tracking}); min-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); color: var(--m3e-form-field-subscript-color, ${v.color.onSurfaceVariant}); } .error, .hint { flex: 1 1 auto; } :host([hide-subscript="always"]) .subscript { display: none; } :host([hide-subscript="auto"]:not(:state(-invalid))) .subscript { opacity: 0; margin-top: 0px; margin-bottom: 0.25rem; transition: ${o(`opacity ${v.motion.duration.short4}, \n margin-top ${v.motion.duration.short4}, \n margin-bottom ${v.motion.duration.short4}`)}; } :host([hide-subscript="auto"]:not(:state(-invalid)):focus-within) .subscript, :host([hide-subscript="auto"]:not(:state(-invalid)):state(-pressed)) .subscript { opacity: 1; margin-top: 0.25rem; margin-bottom: 0; } :host(:state(-invalid)) .hint { display: none; } :host(:not(:state(-invalid))) .error { display: none; } ::slotted(input), ::slotted(textarea), ::slotted(select) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(textarea) { scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } ::slotted(m3e-select), ::slotted(m3e-input-chip-set) { flex: 1 1 auto; min-width: 0; } :host([float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { font-size: inherit; } :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .prefix-text, :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .suffix-text { opacity: 0; transition: opacity 0s; } .prefix { margin-inline-start: 1rem; } :host(:state(-with-prefix)) .prefix { margin-inline-end: 1rem; margin-inline-start: 0.75rem; } .suffix { margin-inline-end: 1rem; } :host(:state(-with-suffix)) .suffix { margin-inline-start: 0.25rem; margin-inline-end: 0.5rem; } :host(:state(-with-suffix):state(-with-select)) .suffix { margin-inline-start: unset; } :host(:state(-with-select)) .suffix-text { display: none; } :host([variant="outlined"]) .label { margin-top: calc(0px - var(--_form-field-label-line-height) / 2); } :host([variant="outlined"]) .outline { position: absolute; display: flex; pointer-events: none; left: 0; top: 0; bottom: 0; right: 0; } :host([variant="outlined"]) .pseudo-label { visibility: hidden; margin-inline-end: 0.5rem; font-size: var(--_form-field-label-font-size); line-height: var(--_form-field-label-line-height); letter-spacing: var(--_form-field-label-tracking); max-width: 100%; transition-property: max-width, margin-inline-end; transition-duration: 1ms; } :host([variant="outlined"]:state(-required):not([hide-required-marker])) .pseudo-label { margin-inline-end: 0.25rem; } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .pseudo-label { max-width: 0; margin-inline-end: 0px; transition-delay: ${v.motion.duration.short2}; } :host([variant="outlined"]) .outline-start, :host([variant="outlined"]) .outline-notch, :host([variant="outlined"]) .outline-end { box-sizing: border-box; border-width: var(--_form-field-outline-size, 1px); border-color: var(--_form-field-outline-color); transition: border-color ${v.motion.duration.short4}; } :host([variant="outlined"]:not(:state(-with-label))) .outline-notch { display: none; } :host([variant="outlined"]) .outline-start { min-width: 0.75rem; border-top-style: solid; border-inline-start-style: solid; border-bottom-style: solid; border-start-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]) .outline-notch { border-bottom-style: solid; } :host([variant="outlined"]) .outline-end { flex-grow: 1; min-width: 1rem; border-top-style: solid; border-inline-end-style: solid; border-bottom-style: solid; border-start-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]:state(-with-prefix)) .outline-start { min-width: calc(1.25rem + var(--_prefix-width, 0px) + 0.25rem); } :host([variant="outlined"]:not(:state(-disabled))) .base:hover .outline, :host([variant="outlined"]:not(:state(-disabled)):focus-within) .outline, :host([variant="outlined"]:not(:state(-disabled)):state(-pressed)) .outline { --_form-field-outline-size: 2px; } :host([variant="outlined"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="outlined"]) .content { min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { margin-top: unset; line-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="filled"]) .base { --_select-arrow-margin-top: calc( 0px - calc(1rem / max(calc(0 - calc(var(--md-sys-density-scale, 0) + var(--md-sys-density-scale, 0))), 1)) ); } :host([variant="filled"]) .base::before { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; border-bottom-style: solid; border-width: 1px; border-radius: var(--m3e-form-field-container-shape, ${v.shape.corner.extraSmallTop}); border-color: var(--_form-field-outline-color); background-color: var(--_form-field-container-color); } :host([variant="filled"]:not(:state(-disabled))) .base:hover::before, :host([variant="filled"]:not(:state(-disabled)):focus-within) .base::before, :host([variant="filled"]:not(:state(-disabled)):state(-pressed)) .base::before { border-width: 3px; } :host([variant="filled"]) .base::after { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--_form-field-hover-container-color); transition: background-color ${v.motion.duration.short4}; } :host([variant="filled"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="filled"]) .content { padding-top: calc(1.5rem + ${v.density.calc(-2)}); margin-bottom: 0.5rem; } :host([variant="filled"]) .label { top: calc(0.5rem + ${v.density.calc(-2)}); } :host([variant="filled"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { top: 0px; line-height: calc(3.5rem + ${v.density.calc(-2)} - 0.0625rem); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host(:not(:state(-disabled)):not(:focus-within):not(:state(-pressed))) .base:hover { --_form-field-hover-container-color: color-mix( in srgb, var(--m3e-form-field-hover-container-color, ${v.color.onSurface}) var(--m3e-form-field-hover-container-opacity, 8%), transparent ); } :host(:not(:state(-disabled)):not(:state(-invalid))) { color: var(--m3e-form-field-color, ${v.color.onSurface}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.outline}); } :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.onSurfaceVariant}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base { --_form-field-outline-color: var(--m3e-form-field-focused-outline-color, ${v.color.primary}); --_form-field-label-color: var(--m3e-form-field-focused-color, ${v.color.primary}); } :host(:not(:state(-disabled))) .base { --_form-field-container-color: var( --m3e-form-field-container-color, ${v.color.surfaceContainerHighest} ); } :host(:not(:state(-disabled)):state(-invalid)) .base { --_form-field-label-color: var(--m3e-form-field-invalid-color, ${v.color.error}); --_form-field-outline-color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:not(:state(-disabled)):state(-invalid)) .subscript { color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:state(-disabled)) { color: color-mix( in srgb, var(--m3e-form-field-disabled-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-opacity, 38%), transparent ); } :host(:state(-disabled)) .base { --_form-field-container-color: color-mix( in srgb, var(--m3e-form-field-disabled-container-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-container-opacity, 4%), transparent ); } :host(:state(-no-animate)) *, :host(:state(-no-animate)) *::before, :host(:state(-no-animate)) *::after { transition: none !important; } @media (forced-colors: active) { :host([variant="filled"]) .base::after { transition: none; } :host { --_form-field-outline-color: CanvasText; } :host(:state(-disabled)) { --_form-field-input-color: GrayText; --_form-field-color: GrayText; --_form-field-label-color: GrayText; --_form-field-outline-color: GrayText; } } @media (prefers-reduced-motion) { .base::before, .prefix-text, .suffix-text, .label, .subscript, .outline-start, .outline-notch, .outline-end, .pseudo-label { transition: none !important; } }`,t([h(".base")],tv.prototype,"_base",void 0),t([h(".prefix")],tv.prototype,"_prefix",void 0),t([h(".error")],tv.prototype,"_error",void 0),t([h(".hint")],tv.prototype,"_hint",void 0),t([u()],tv.prototype,"_pseudoLabel",void 0),t([u()],tv.prototype,"_required",void 0),t([u()],tv.prototype,"_invalid",void 0),t([u()],tv.prototype,"_validationMessage",void 0),t([m({reflect:!0})],tv.prototype,"variant",void 0),t([m({attribute:"hide-required-marker",type:Boolean,reflect:!0})],tv.prototype,"hideRequiredMarker",void 0),t([m({attribute:"hide-subscript",reflect:!0})],tv.prototype,"hideSubscript",void 0),t([m({attribute:"float-label",reflect:!0})],tv.prototype,"floatLabel",void 0),tv=t([$("m3e-form-field")],tv);let av=class extends r{constructor(){super(...arguments),this.emphasized=!1,this.variant="display",this.size="medium"}update(e){super.update(e),e.has("level")&&(this.ariaLevel=void 0!==this.level?`${this.level}`:null,this.role=this.ariaLevel?"heading":null)}render(){return s`<slot></slot>`}};var ov,iv,rv,sv,nv;av.styles=i`:host { display: block; } :host([variant="display"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.display.large.fontSize}; font-weight: ${v.typescale.standard.display.large.fontWeight}; line-height: ${v.typescale.standard.display.large.lineHeight}; letter-spacing: ${v.typescale.standard.display.large.tracking}; } :host([variant="display"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.display.medium.fontSize}; font-weight: ${v.typescale.standard.display.medium.fontWeight}; line-height: ${v.typescale.standard.display.medium.lineHeight}; letter-spacing: ${v.typescale.standard.display.medium.tracking}; } :host([variant="display"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.display.small.fontSize}; font-weight: ${v.typescale.standard.display.small.fontWeight}; line-height: ${v.typescale.standard.display.small.lineHeight}; letter-spacing: ${v.typescale.standard.display.small.tracking}; } :host([variant="headline"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.large.fontSize}; font-weight: ${v.typescale.standard.headline.large.fontWeight}; line-height: ${v.typescale.standard.headline.large.lineHeight}; letter-spacing: ${v.typescale.standard.headline.large.tracking}; } :host([variant="headline"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.medium.fontSize}; font-weight: ${v.typescale.standard.headline.medium.fontWeight}; line-height: ${v.typescale.standard.headline.medium.lineHeight}; letter-spacing: ${v.typescale.standard.headline.medium.tracking}; } :host([variant="headline"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.small.fontSize}; font-weight: ${v.typescale.standard.headline.small.fontWeight}; line-height: ${v.typescale.standard.headline.small.lineHeight}; letter-spacing: ${v.typescale.standard.headline.small.tracking}; } :host([variant="title"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.title.large.fontSize}; font-weight: ${v.typescale.standard.title.large.fontWeight}; line-height: ${v.typescale.standard.title.large.lineHeight}; letter-spacing: ${v.typescale.standard.title.large.tracking}; } :host([variant="title"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.title.medium.fontSize}; font-weight: ${v.typescale.standard.title.medium.fontWeight}; line-height: ${v.typescale.standard.title.medium.lineHeight}; letter-spacing: ${v.typescale.standard.title.medium.tracking}; } :host([variant="title"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.title.small.fontSize}; font-weight: ${v.typescale.standard.title.small.fontWeight}; line-height: ${v.typescale.standard.title.small.lineHeight}; letter-spacing: ${v.typescale.standard.title.small.tracking}; } :host([variant="label"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.label.large.fontSize}; font-weight: ${v.typescale.standard.label.large.fontWeight}; line-height: ${v.typescale.standard.label.large.lineHeight}; letter-spacing: ${v.typescale.standard.label.large.tracking}; } :host([variant="label"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.label.medium.fontSize}; font-weight: ${v.typescale.standard.label.medium.fontWeight}; line-height: ${v.typescale.standard.label.medium.lineHeight}; letter-spacing: ${v.typescale.standard.label.medium.tracking}; } :host([variant="label"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.label.small.fontSize}; font-weight: ${v.typescale.standard.label.small.fontWeight}; line-height: ${v.typescale.standard.label.small.lineHeight}; letter-spacing: ${v.typescale.standard.label.small.tracking}; } :host([variant="display"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.display.large.fontSize}; font-weight: ${v.typescale.emphasized.display.large.fontWeight}; line-height: ${v.typescale.emphasized.display.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.large.tracking}; } :host([variant="display"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.display.medium.fontSize}; font-weight: ${v.typescale.emphasized.display.medium.fontWeight}; line-height: ${v.typescale.emphasized.display.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.medium.tracking}; } :host([variant="display"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.display.small.fontSize}; font-weight: ${v.typescale.emphasized.display.small.fontWeight}; line-height: ${v.typescale.emphasized.display.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.small.tracking}; } :host([variant="headline"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.headline.large.fontSize}; font-weight: ${v.typescale.emphasized.headline.large.fontWeight}; line-height: ${v.typescale.emphasized.headline.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.large.tracking}; } :host([variant="headline"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.headline.medium.fontSize}; font-weight: ${v.typescale.emphasized.headline.medium.fontWeight}; line-height: ${v.typescale.emphasized.headline.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.medium.tracking}; } :host([variant="headline"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.headline.small.fontSize}; font-weight: ${v.typescale.emphasized.headline.small.fontWeight}; line-height: ${v.typescale.emphasized.headline.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.small.tracking}; } :host([variant="title"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.title.large.fontSize}; font-weight: ${v.typescale.emphasized.title.large.fontWeight}; line-height: ${v.typescale.emphasized.title.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.large.tracking}; } :host([variant="title"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.title.medium.fontSize}; font-weight: ${v.typescale.emphasized.title.medium.fontWeight}; line-height: ${v.typescale.emphasized.title.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.medium.tracking}; } :host([variant="title"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.title.small.fontSize}; font-weight: ${v.typescale.emphasized.title.small.fontWeight}; line-height: ${v.typescale.emphasized.title.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.small.tracking}; } :host([variant="label"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.label.large.fontSize}; font-weight: ${v.typescale.emphasized.label.large.fontWeight}; line-height: ${v.typescale.emphasized.label.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.large.tracking}; } :host([variant="label"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.label.medium.fontSize}; font-weight: ${v.typescale.emphasized.label.medium.fontWeight}; line-height: ${v.typescale.emphasized.label.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.medium.tracking}; } :host([variant="label"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.label.small.fontSize}; font-weight: ${v.typescale.emphasized.label.small.fontWeight}; line-height: ${v.typescale.emphasized.label.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.small.tracking}; }`,t([m({type:Boolean,reflect:!0})],av.prototype,"emphasized",void 0),t([m({reflect:!0})],av.prototype,"variant",void 0),t([m({reflect:!0})],av.prototype,"size",void 0),t([m({type:Number})],av.prototype,"level",void 0),av=t([$("m3e-heading")],av);const lv=/^[MmLlHhVvCcSsQqTtAaZz0-9.,\s-]+$/,cv=/^-?\d+(\.\d+)?\s+-?\d+(\.\d+)?\s+-?\d+(\.\d+)?\s+-?\d+(\.\d+)?$/;class dv{static addIcon(t,a,o){const i="string"==typeof o.outlined,r="string"==typeof o.filled;if("string"==typeof o.outlined&&(o.outlined={viewBox:"0 -960 960 960",path:o.outlined}),"string"==typeof o.filled&&(o.filled={viewBox:"0 -960 960 960",path:o.filled}),e(this,ov,"m",nv).call(this,t,a,o.outlined,i),e(this,ov,"m",nv).call(this,t,a,o.filled,r),void 0!==window){const i=e(this,ov,"m",sv).call(this,t,a);e(this,ov,"f",iv).set(i,{outlined:d`<svg viewBox="${o.outlined.viewBox}"><path d="${o.outlined.path}"/></svg>`,filled:d`<svg viewBox="${o.filled.viewBox}"><path d="${o.filled.path}"/></svg>`}),e(this,ov,"f",rv).get(i)?.forEach(e=>e())}}static isIconRegistered(t,a){return void 0!==window&&e(this,ov,"f",iv).has(e(this,ov,"m",sv).call(this,t,a))}static renderIcon(t,a,o){const i=e(this,ov,"f",iv).get(e(this,ov,"m",sv).call(this,t,a));return o?i?.filled:i?.outlined}static observe(t,a,o){if(void 0===window)return()=>{};const i=e(this,ov,"m",sv).call(this,t,a);return e(this,ov,"f",rv).has(i)?e(this,ov,"f",rv).get(i)?.push(o):e(this,ov,"f",rv).set(i,[o]),()=>{const t=e(this,ov,"f",rv).get(i);if(t){const a=t.indexOf(o);a>=0&&t.splice(a,1),0==t.length&&e(this,ov,"f",rv).delete(i)}}}}var hv;ov=dv,sv=function(e,t){return`${t}-${e}`},nv=function(e,t,a,o=!1){if(!o&&!cv.test(a.viewBox))throw new Error(`Unable to register icon '${e}' for variant '${t}'. Invalid viewbox data.`);if(!lv.test(a.path))throw new Error(`Unable to register icon '${e}' for variant '${t}'. Invalid path data.`)},iv={value:new Map},rv={value:new Map};let mv=class extends(f(r,"img")){constructor(){super(...arguments),hv.set(this,void 0),this.name="",this.variant="outlined",this.filled=!1,this.grade="medium",this.weight=400,this.opticalSize=24}connectedCallback(){this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby")||this.hasAttribute("aria-hidden")||(this.ariaHidden="true"),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,hv,"f")?.call(this)}willUpdate(t){super.willUpdate(t),t.has("name")&&!dv.isIconRegistered(this.name,this.variant)&&a(this,hv,dv.observe(this.name,this.variant,()=>{this.requestUpdate(),e(this,hv,"f")?.call(this),a(this,hv,void 0,"f")}),"f")}updated(e){super.updated(e),e.has("filled")&&this._icon?.style.setProperty("--_icon-fill",this.filled?"1":"0"),e.has("grade")&&this._icon?.style.setProperty("--_icon-grade","low"===this.grade?"-25":"high"===this.grade?"200":"0"),e.has("weight")&&this._icon?.style.setProperty("--_icon-weight",`${this.weight}`),e.has("opticalSize")&&this._icon?.style.setProperty("--_icon-optical-size",`${this.opticalSize}`)}render(){return dv.isIconRegistered(this.name,this.variant)?dv.renderIcon(this.name,this.variant,this.filled):s`<div class="icon" aria-hidden="true">${this.name}</div>`}};function pv(e,t,a){dv.addIcon(e,t,a)}hv=new WeakMap,mv.styles=i`:host { display: inline-block; user-select: none; font-size: var(--m3e-icon-size, 1.5rem); width: 1em; height: 1em; vertical-align: middle; overflow: hidden; } .icon { font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; width: inherit; height: inherit; vertical-align: inherit; font-variation-settings: "FILL" var(--_icon-fill, 0), "wght" var(--_icon-weight, 400), "GRAD" var(--_icon-grade, 0), "opsz" var(--_icon-optical-size, 24); } :host([variant="outlined"]) .icon { font-family: "Material Symbols Outlined"; } :host([variant="rounded"]) .icon { font-family: "Material Symbols Rounded"; } :host([variant="sharp"]) .icon { font-family: "Material Symbols Sharp"; } svg { font-size: inherit; width: 1em; height: 1em; }`,t([h(".icon")],mv.prototype,"_icon",void 0),t([m()],mv.prototype,"name",void 0),t([m({reflect:!0})],mv.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],mv.prototype,"filled",void 0),t([m()],mv.prototype,"grade",void 0),t([m({type:Number})],mv.prototype,"weight",void 0),t([m({attribute:"optical-size",type:Number})],mv.prototype,"opticalSize",void 0),mv=t([$("m3e-icon")],mv);const uv={"extra-small":{containerHeight:o(`calc(var(--m3e-icon-button-extra-small-container-height, var(--m3e-icon-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-icon-button-extra-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-small-icon-size, var(--m3e-icon-button-icon-size, 1.25rem)) + ${v.density.calc(0)})`),shapeRound:o(`var(--m3e-icon-button-extra-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(0)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(0)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.375rem)) + ${v.density.calc(0)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.375rem)) + ${v.density.calc(0)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.625rem)) + ${v.density.calc(0)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.625rem)) + ${v.density.calc(0)})`)},small:{containerHeight:o(`calc(var(--m3e-icon-button-small-container-height, var(--m3e-icon-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-icon-button-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-small-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-1)})`),shapeRound:o(`var(--m3e-icon-button-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(-1)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(-1)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.5rem)) + ${v.density.calc(-1)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.5rem)) + ${v.density.calc(-1)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.875rem)) + ${v.density.calc(-1)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.875rem)) + ${v.density.calc(-1)})`)},medium:{containerHeight:o(`calc(var(--m3e-icon-button-medium-container-height, var(--m3e-icon-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-icon-button-medium-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-medium-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-2)})`),shapeRound:o(`var(--m3e-icon-button-medium-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-medium-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-icon-button-medium-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-icon-button-medium-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-medium-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.medium}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.75rem)) + ${v.density.calc(-2)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.75rem)) + ${v.density.calc(-2)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-medium-default-leading-space, var(--m3e-icon-button-default-leading-space, 1rem)) + ${v.density.calc(-2)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-medium-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 1rem)) + ${v.density.calc(-2)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-medium-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 1.5rem)) + ${v.density.calc(-2)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-medium-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 1.5rem)) + ${v.density.calc(-2)})`)},large:{containerHeight:o(`calc(var(--m3e-icon-button-large-container-height, var(--m3e-icon-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 2px))"),iconSize:o(`calc(var(--m3e-icon-button-large-icon-size, var(--m3e-icon-button-icon-size, 2rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 1rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 1rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 2rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 2rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 3rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 3rem)) + ${v.density.calc(-3)})`)},"extra-large":{containerHeight:o(`calc(var(--m3e-icon-button-extra-large-container-height, var(--m3e-icon-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-extra-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 3px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-large-icon-size, var(--m3e-icon-button-icon-size, 2.5rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-extra-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 2rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 2rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 3rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 3rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 4.5rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 4.5rem)) + ${v.density.calc(-3)})`)}};function vv(e){return i`:host([size="${o(e)}"]) .base { height: ${uv[e].containerHeight}; } :host([size="${o(e)}"][width="default"]) .wrapper { padding-inline-start: ${uv[e].defaultLeadingSpace}; padding-inline-end: ${uv[e].defaultTrailingSpace}; } :host([size="${o(e)}"][width="narrow"]) .wrapper { padding-inline-start: ${uv[e].narrowLeadingSpace}; padding-inline-end: ${uv[e].narrowTrailingSpace}; } :host([size="${o(e)}"][width="wide"]) .wrapper { padding-inline-start: ${uv[e].wideLeadingSpace}; padding-inline-end: ${uv[e].wideTrailingSpace}; } :host([size="${o(e)}"]) .icon { font-size: ${uv[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${uv[e].outlineThickness}); outline-width: ${uv[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${uv[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${uv[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${uv[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${uv[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${uv[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${uv[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${uv[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${uv[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${uv[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${uv[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${uv[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${uv[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${uv[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${uv[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var( --_button-start-shape-pressed-morph, ${uv[e].shapePressedMorph} ); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${uv[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${uv[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${uv[e].shapePressedMorph}); }`}const bv=[vv("extra-small"),vv("small"),vv("medium"),vv("large"),vv("extra-large")],fv=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: auto; right: auto; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; --m3e-icon-size: 1em; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted(*) { font-size: inherit !important; flex: none; transform: var(--_icon-button-icon-transform); transform-origin: center center; transition: ${o(`transform var(--_icon-button-icon-transform-transition, ${v.motion.spring.fastEffects})`)}; } ::slotted(svg) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected"], :host([toggle][selected]) .base.with-selected-icon slot:not([name]) { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: border-radius ${v.motion.spring.fastEffects}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-large-outline-thickness, 2px)); outline-width: var(--m3e-icon-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-icon-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .wrapper, .icon { transition: none; } }`,gv={elevated:{iconColor:o(`var(--m3e-elevated-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-icon-button-container-elevation, var(--m3e-icon-button-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-icon-button-disabled-container-elevation, var(--m3e-icon-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-hover-container-elevation, var(--m3e-icon-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-focus-container-elevation, var(--m3e-icon-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-pressed-container-elevation, var(--m3e-icon-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{iconColor:o(`var(--m3e-outlined-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-outline-color, var(--m3e-icon-button-outline-color, ${v.color.outlineVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-icon-button-disabled-outline-color, var(--m3e-icon-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-hover-outline-color, var(--m3e-icon-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-focus-outline-color, var(--m3e-icon-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-pressed-outline-color, var(--m3e-icon-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{iconColor:o(`var(--m3e-filled-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-filled-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{iconColor:o(`var(--m3e-tonal-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.secondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-tonal-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},standard:{iconColor:o(`var(--m3e-standard-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o("var(--m3e-standard-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, transparent))"),containerOpacity:o("var(--m3e-standard-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-standard-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-standard-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-standard-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-standard-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-standard-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function yv(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${gv[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${gv[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${gv[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${gv[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${gv[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${gv[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${gv[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${gv[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${gv[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${gv[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${gv[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${gv[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${gv[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${gv[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${gv[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${gv[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${gv[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${gv[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${gv[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${gv[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${gv[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${gv[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${gv[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { outline-color: ${gv[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${gv[e].disabled.containerColor} ${gv[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${gv[e].disabled.iconColor} ${gv[e].disabled.iconOpacity}, transparent ); }`}const $v=[yv("standard"),yv("outlined"),yv("filled"),yv("tonal"),yv("elevated"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var xv,wv,kv,Cv,Sv,_v;let Lv=class extends(V(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),xv.add(this),wv.set(this,t=>e(this,xv,"m",Sv).call(this,t)),this.variant="standard",this.shape="rounded",this.size="small",this.width="default",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new K(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new Z(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,xv,"m",kv).call(this),S()?e(this,xv,"m",Cv).call(this,!0):requestAnimationFrame(()=>e(this,xv,"m",Cv).call(this,!0))):e(this,xv,"m",Cv).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected" aria-hidden="true" @slotchange="${e(this,xv,"m",_v)}"></slot>`:n}<slot class="icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,wv,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>C(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),C(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,wv,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(C(this,"-pressed"),C(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,xv,"m",kv).call(this,!0))}};var Ev,zv,Mv,Tv,Pv,Iv,Wv;wv=new WeakMap,xv=new WeakSet,kv=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},Cv=function(e){k(this,"-pressed",e),k(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),k(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),C(r,"-adjacent-pressed"))}}},Sv=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},_v=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},Lv.styles=[bv,$v,fv],t([h(".base")],Lv.prototype,"_base",void 0),t([h(".elevation")],Lv.prototype,"_elevation",void 0),t([h(".focus-ring")],Lv.prototype,"_focusRing",void 0),t([h(".state-layer")],Lv.prototype,"_stateLayer",void 0),t([h(".ripple")],Lv.prototype,"_ripple",void 0),t([m({reflect:!0})],Lv.prototype,"variant",void 0),t([m({reflect:!0})],Lv.prototype,"shape",void 0),t([m({reflect:!0})],Lv.prototype,"size",void 0),t([m({reflect:!0})],Lv.prototype,"width",void 0),t([m({type:Boolean,reflect:!0})],Lv.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],Lv.prototype,"selected",void 0),t([y(40)],Lv.prototype,"_handleResize",null),Lv=t([$("m3e-icon-button")],Lv);let Dv=class extends(M(P(f(r,"listitem")))){constructor(){super(...arguments),Ev.add(this),zv.set(this,new A(this,{target:null,callback:()=>e(this,Ev,"m",Iv).call(this)})),Mv.set(this,void 0),Tv.set(this,void 0)}get leadingContentType(){return e(this,Mv,"f")}get trailingContentType(){return e(this,Tv,"f")}reconnectedCallback(){super.reconnectedCallback(),e(this,Ev,"m",Pv).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Ev,"m",Pv).call(this)}render(){return s`<div class="base">${this._renderBase()}</div>`}_renderBase(){return s`<slot name="leading" @slotchange="${this._handleLeadingSlotChange}"><slot name="leading-icon" @slotchange="${this._handleLeadingSlotChange}"></slot></slot><div class="content"><slot name="overline"></slot><slot></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"><slot name="trailing-supporting-text" @slotchange="${this._handleTrailingSlotChange}"></slot><slot name="trailing-icon" @slotchange="${this._handleTrailingSlotChange}"></slot></slot>`}_handleLeadingSlotChange(t){const o=e(this,Mv,"f");a(this,Mv,e(this,Ev,"m",Wv).call(this,t.target),"f"),k(this,"-has-leading",void 0!==e(this,Mv,"f")),o!==e(this,Mv,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyLeadingContentTypeChange(o,e(this,Mv,"f"))}_handleTrailingSlotChange(t){const o=e(this,Tv,"f");a(this,Tv,e(this,Ev,"m",Wv).call(this,t.target),"f"),k(this,"-has-trailing",void 0!==e(this,Tv,"f")),o!==e(this,Tv,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyTrailingContentTypeChange(o,e(this,Tv,"f"))}};var Av,Hv,Ov,Bv,Fv;zv=new WeakMap,Mv=new WeakMap,Tv=new WeakMap,Ev=new WeakSet,Pv=function(){const t=this.shadowRoot?.querySelector(".content");t&&e(this,zv,"f").observe(t)},Iv=function(){const e=this.shadowRoot?.querySelector(".content")??null,t=null===e?0:ge(e);k(this,"-one-line",t<=1),k(this,"-two-line",2==t),k(this,"-three-line",t>2)},Wv=function(e){const t=e.assignedElements({flatten:!0});return t.some(e=>"VIDEO"===e.tagName)?"video":t.some(e=>"IMG"===e.tagName)?"image":t.some(e=>"M3E-AVATAR"===e.tagName)?"avatar":t.some(e=>"M3E-ICON"===e.tagName)?"icon":t.length>0?"text":void 0},Dv.styles=i`:host { display: block; } .base { display: flex; min-height: inherit; width: 100%; box-sizing: border-box; column-gap: var(--m3e-list-item-between-space, 1rem); padding-inline-start: var(--m3e-list-item-leading-space, 1rem); padding-inline-end: var(--m3e-list-item-trailing-space, 1rem); border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); transition: ${o(`border-radius ${v.motion.spring.fastEffects}, background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:state(-one-line)) { min-height: calc(var(--m3e-list-item-one-line-height, 3.5rem) + ${v.density.calc(-3)}); } :host(:state(-one-line)) .base { padding-block-start: var(--m3e-list-item-one-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-one-line-bottom-space, 0.5rem); } :host(:state(-two-line)) { min-height: calc(var(--m3e-list-item-two-line-height, 4.5rem) + ${v.density.calc(-3)}); } :host(:state(-two-line)) .base { padding-block-start: var(--m3e-list-item-two-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-two-line-bottom-space, 0.5rem); } :host(:state(-three-line)) { min-height: calc(var(--m3e-list-item-three-line-height, 5.5rem) + ${v.density.calc(-3)}); } :host(:state(-three-line)) .base { padding-block-start: var(--m3e-list-item-three-line-top-space, 0.75rem); padding-block-end: var(--m3e-list-item-three-line-bottom-space, 0.75rem); } :host(:not(:state(-three-line))) .base { align-items: center; } :host(:state(-three-line)) .base { align-items: flex-start; } :host(:not(:disabled):not([selected])) .base:not(.hover).focus-visible:not(.pressed) { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); } :host(:not(:disabled):not([selected])) .base.hover, :host(:not(:disabled):not([selected])) .base.pressed { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); } .content { flex: 1 1 auto; display: flex; flex-direction: column; align-items: unset; justify-content: unset; } ::slotted([slot="overline"]) { font-size: var(--m3e-list-item-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-list-item-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-list-item-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-list-item-overline-tracking, ${v.typescale.standard.label.small.tracking}); } ::slotted([slot="supporting-text"]) { font-size: var(--m3e-list-item-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-list-item-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-list-item-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-list-item-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } ::slotted(:not([slot])) { font-size: var(--m3e-list-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-list-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-list-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-list-item-tracking, ${v.typescale.standard.body.large.tracking}); } :host(:state(-has-leading)) slot[name="leading"], :host(:state(-has-trailing)) slot[name="trailing"] { display: flex; justify-content: center; } :host(:not(:state(-has-leading))) slot[name="leading"] { display: var(--_list-item-leading-reserved-display, contents); } :host(:not(:state(-has-trailing))) slot[name="trailing"] { display: var(--_list-item-trailing-reserved-display, contents); } slot[name="leading"] { min-width: var(--_list-item-leading-reserved-space, 0px); margin-inline-start: calc(0px - var(--_list-item-leading-reserved-outset, 0px)); } slot[name="trailing"] { min-width: var(--_list-item-trailing-reserved-space, 0px); margin-inline-end: calc(0px - var(--_list-item-trailing-reserved-outset, 0px)); } ::slotted(span[slot="trailing"]), ::slotted([slot="trailing-supporting-text"]) { white-space: nowrap; font-size: var(--m3e-list-item-trailing-text-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var( --m3e-list-item-trailing-text-font-weight, ${v.typescale.standard.label.small.fontWeight} ); line-height: var( --m3e-list-item-trailing-text-line-height, ${v.typescale.standard.label.small.lineHeight} ); letter-spacing: var( --m3e-list-item-trailing-text-tracking, ${v.typescale.standard.label.small.tracking} ); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]), ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; } ::slotted(video) { width: var(--m3e-list-item-video-width, 6.25rem); height: var(--m3e-list-item-video-height, 3.5rem); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]) { border-radius: var(--m3e-list-item-video-shape, ${v.shape.corner.none}); } ::slotted(video[slot="leading"]) { margin-inline-start: calc(0px - var(--_list-item-leading-video-outset, 0px)); } ::slotted(video[slot="trailing"]) { margin-inline-end: calc(0px - var(--_list-item-trailing-video-outset, 0px)); } ::slotted(img) { user-drag: none; user-select: none; pointer-events: none; width: var(--m3e-list-item-image-width, 3.5rem); height: var(--m3e-list-item-image-height, 3.5rem); } ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { border-radius: var(--m3e-list-item-image-shape, ${v.shape.corner.none}); } ::slotted(m3e-icon[slot="leading"]), ::slotted(m3e-icon[slot="leading-icon"]), ::slotted(m3e-icon[slot="trailing"]), ::slotted(m3e-icon[slot="trailing-icon"]) { --m3e-icon-size: var(--m3e-list-item-icon-size, 1.5rem); } :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading"]), :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading-icon"]) { color: var(--m3e-list-item-leading-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .content { color: var(--m3e-list-item-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-overline-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-supporting-text-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="trailing"]), :host(:not(:disabled)) ::slotted([slot="trailing-supporting-text"]), :host(:not(:disabled)) ::slotted([slot="trailing-icon"]) { color: var(--m3e-list-item-trailing-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .base { background-color: var(--_list-item-container-color, var(--m3e-list-item-container-color, transparent)); } :host(:disabled) .base { background-color: var(--m3e-list-item-disabled-container-color, transparent); } :host(:disabled) ::slotted(video), :host(:disabled) ::slotted(img), :host(:disabled) ::slotted(m3e-avatar) { opacity: var(--m3e-list-item-disabled-media-opacity, 38%); } :host(:disabled) .content { color: color-mix( in srgb, var(--m3e-list-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="overline"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-overline-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-overline-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="supporting-text"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-supporting-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-supporting-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-leading-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-leading-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-trailing-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-trailing-opacity, 38%), transparent ); } :host(:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var(--m3e-list-item-hover-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-hover-opacity: var( --m3e-list-item-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var(--m3e-list-item-focus-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-focus-opacity: var( --m3e-list-item-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host(:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } @media (forced-colors: active) { .base { transition: none; } :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]), :host(:disabled) .content, :host(:disabled) ::slotted([slot="overline"]), :host(:disabled) ::slotted([slot="supporting-text"]), :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`,Dv=t([$("m3e-list-item")],Dv);let qv=class extends(P(f(r,"list"))){constructor(){super(...arguments),Av.add(this),Hv.set(this,new Array),Ov.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),Bv.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),this.variant="standard"}get items(){return e(this,Hv,"f")}get leadingContentType(){return e(this,Ov,"f").video>0?"video":e(this,Ov,"f").image>0?"image":e(this,Ov,"f").avatar>0?"avatar":e(this,Ov,"f").icon>0?"icon":e(this,Ov,"f").text>0?"text":void 0}get trailingContentType(){return e(this,Bv,"f").video>0?"video":e(this,Bv,"f").image>0?"image":e(this,Bv,"f").avatar>0?"avatar":e(this,Bv,"f").icon>0?"icon":e(this,Bv,"f").text>0?"text":void 0}render(){return s`<slot @slotchange="${e(this,Av,"m",Fv)}"></slot>`}notifyItemsChange(){}notifyLeadingContentTypeChange(t,a){t&&e(this,Ov,"f")[t]--,a&&e(this,Ov,"f")[a]++,["video","image","avatar","icon"].forEach(e=>{k(this,`-has-leading-${e}`,this.leadingContentType===e)})}notifyTrailingContentTypeChange(t,a){t&&e(this,Bv,"f")[t]--,a&&e(this,Bv,"f")[a]--,["video","image","avatar","icon"].forEach(e=>{k(this,`-has-trailing-${e}`,this.trailingContentType===e)})}};var Vv,Rv,Uv,Nv,jv,Yv,Kv,Zv,Gv;Hv=new WeakMap,Ov=new WeakMap,Bv=new WeakMap,Av=new WeakSet,Fv=function(t){a(this,Hv,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof Dv),"f"),e(this,Hv,"f").forEach((t,a)=>{k(t,"-first",0===a),k(t,"-last",a===e(this,Hv,"f").length-1)}),this.notifyItemsChange()},qv.styles=i`:host { display: flex; flex-direction: column; overflow-y: auto; box-sizing: border-box; padding-block: var(--m3e-list-block-padding, 0px); --m3e-divider-inset-start-size: var(--m3e-list-divider-inset-start-size, 1rem); --m3e-divider-inset-end-size: var(--m3e-list-divider-inset-end-size, 1.5rem); } :host([variant="standard"]) { --_list-item-leading-video-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-video-outset: var(--m3e-list-item-trailing-space, 1rem); --_expandable-list-item-expanded-toggle-icon-container-color: transparent; } :host([variant="segmented"]) { row-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); } :host([variant="segmented"]) { --m3e-list-item-container-color: var(--m3e-segmented-list-item-container-color, ${v.color.surface}); --m3e-list-item-disabled-container-color: var( --m3e-segmented-list-item-disabled-container-color, ${v.color.surface} ); --m3e-list-item-container-shape: var( --m3e-segmented-list-item-container-shape, ${v.shape.corner.extraSmall} ); --m3e-list-item-hover-container-shape: var( --m3e-segmented-list-item-hover-container-shape, ${v.shape.corner.medium} ); --m3e-list-item-focus-container-shape: var( --m3e-segmented-list-item-focus-container-shape, ${v.shape.corner.large} ); --m3e-list-item-selected-container-shape: var( --m3e-segmented-list-item-selected-container-shape, ${v.shape.corner.large} ); --m3e-list-item-video-shape: var(--m3e-segmented-list-item-video-shape, ${v.shape.corner.small}); --m3e-list-item-image-shape: var(--m3e-segmented-list-item-image-shape, ${v.shape.corner.small}); --m3e-list-item-between-space: var(--m3e-segmented-list-item-spacing, 0.75rem); --_expandable-list-item-items-segment-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); --_expandable-list-item-expanded-top-shape: var( --m3e-segmented-list-container-shape, ${v.shape.corner.large} ); } :host([variant="segmented"]) ::slotted(:state(-first)), :host([variant="segmented"]) ::slotted(:state(-has-previous-open):not([open])) { --_list-item-top-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(:state(-has-next-open):not([open])), :host([variant="segmented"]) ::slotted(:state(-last)) { --_list-item-bottom-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(m3e-divider) { display: none; } :host(:state(-has-leading-video)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-video-width, 6.25rem); } :host([variant="standard"]:state(-has-leading-video)) { --_list-item-leading-reserved-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-reserved-outset: var(--m3e-list-item-trailing-space, 1rem); } :host(:state(-has-leading-image)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-image-width, 3.5rem); } :host(:state(-has-leading-avatar)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-avatar-size, 2.5rem); } :host(:state(-has-leading-icon)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-icon-size, 1.5rem); }`,t([m({reflect:!0})],qv.prototype,"variant",void 0),qv=t([$("m3e-list")],qv);let Xv=Gv=class extends Dv{constructor(){super(...arguments),Vv.add(this),Rv.set(this,Gv.__nextId++),Uv.set(this,`m3e-expandable-list-item-${e(this,Rv,"f")}-content`),Nv.set(this,`m3e-expandable-list-item-${e(this,Rv,"f")}-header`),jv.set(this,new Array),this.disabled=!1,this.open=!1}get items(){return e(this,jv,"f")}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}updated(e){if(super.updated(e),e.has("open")){for(let e=this.previousElementSibling;e;e=e.previousElementSibling)if(e instanceof Dv){k(e,"-has-next-open",this.open);break}for(let e=this.nextElementSibling;e;e=e.nextElementSibling)if(e instanceof Dv){k(e,"-has-previous-open",this.open);break}}}render(){return s`<div class="base"><m3e-list-item-button id="${e(this,Nv,"f")}" class="header" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,Uv,"f")}" @click="${e(this,Vv,"m",Yv)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><div class="toggle-container" slot="trailing" aria-hidden="true"><div class="toggle"><slot name="toggle-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg></slot></div></div></m3e-list-item-button><m3e-collapsible id="${e(this,Uv,"f")}" class="items" role="list" aria-labelledby="${e(this,Nv,"f")}" ?open="${this.open}" @opening="${e(this,Vv,"m",Kv)}" @opened="${e(this,Vv,"m",Kv)}" @closing="${e(this,Vv,"m",Kv)}" @closed="${e(this,Vv,"m",Kv)}"><slot name="items" @slotchange="${e(this,Vv,"m",Zv)}"></slot></m3e-collapsible></div>`}};var Jv,Qv;Rv=new WeakMap,Uv=new WeakMap,Nv=new WeakMap,jv=new WeakMap,Vv=new WeakSet,Yv=function(e){e.defaultPrevented||(this.open=!this.open,this.closest("m3e-action-list")?.[De].updateActiveItem(this.button))},Kv=function(e){e.stopPropagation(),["opening","opened","closing","closed"].forEach(t=>{this.button?.classList.toggle(t,e.type===t)}),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},Zv=function(t){a(this,jv,t.target.assignedElements({flatten:!0}).flatMap(e=>[...e.childNodes].filter(e=>e instanceof Dv)),"f"),e(this,jv,"f").forEach((t,a)=>{a==e(this,jv,"f").length-1?t.style.setProperty("--_list-item-bottom-container-shape",`var(--m3e-segmented-list-container-shape, ${v.shape.corner.large})`):t.style.removeProperty("--_list-item-bottom-container-shape")}),this.closest("m3e-list, m3e-action-list, m3e-selection-list")?.notifyItemsChange()},Xv.styles=i`:host { display: block; } .header { width: 100%; margin-bottom: 0px; transition: ${o(`margin-bottom \n var(--m3e-expandable-list-item-bounce-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; --_list-item-button-trailing-align-self: stretch; } .toggle-container { display: flex; align-items: center; justify-content: center; align-self: stretch; width: var(--m3e-expandable-list-item-toggle-icon-container-width, 2rem); border-radius: var(--m3e-expandable-list-item-toggle-icon-container-shape, ${v.shape.corner.full}); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: var(--m3e-expandable-list-item-toggle-icon-size, 1.5rem); transition: ${o(`transform ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } :host([open]) .toggle-container { background-color: var( --_expandable-list-item-expanded-toggle-icon-container-color, var(--m3e-expandable-list-item-expanded-toggle-icon-container-color, ${v.color.surfaceContainer}) ); } :host([open]) .toggle { transform: rotate(180deg); } :host([open]) .header { --_list-item-top-container-shape: var(--_expandable-list-item-expanded-top-shape, initial); --_list-item-bottom-container-shape: initial; margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } :host([open]) .header.opening { margin-bottom: calc( var(--_expandable-list-item-items-segment-gap, 0px) * var(--m3e-expandable-list-item-bounce-factor, 4) ); } :host([open]) .header, :host([open]) .items { --_list-item-container-color: var( --m3e-expandable-list-item-expanded-container-color, var(--m3e-list-item-container-color, transparent) ); } .base, ::slotted([slot="items"]) { display: flex; flex-direction: column; box-sizing: border-box; } ::slotted([slot="items"]) { flex: none; --_list-item-top-container-shape: initial; --_list-item-bottom-container-shape: initial; row-gap: var(--_expandable-list-item-items-segment-gap, 0px); } .items { --m3e-collapsible-animation-duration: var( --m3e-expandable-list-item-expand-duration, ${v.motion.duration.medium1} ); } @media (forced-colors: active) { .header { transition: none; } :host([open]) .header.opening { margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } } @media (prefers-reduced-motion) { .header, .toggle-container, .toggle { transition: none; } }`,Xv.__nextId=0,t([m({type:Boolean,reflect:!0})],Xv.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],Xv.prototype,"open",void 0),t([h(".header")],Xv.prototype,"button",void 0),Xv=Gv=t([$("m3e-expandable-list-item")],Xv);let eb=class extends qv{constructor(){super(...arguments),Jv.set(this,e=>this[De].onKeyDown(e)),this[Qv]=(new Oe).withWrap().withHomeAndEnd().withVerticalOrientation().withSkipPredicate(e=>{if(e.disabled)return!0;const t=e.getRootNode().host;if("items"===t.parentElement?.slot){let e=t.closest("m3e-expandable-list-item");for(;e;){if(!e.open)return!0;const t=e.closest("m3e-expandable-list-item,m3e-action-list");if(!(t instanceof Xv))break;e=t}}return!1})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Jv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Jv,"f"))}async notifyItemsChange(){const e=[...this.querySelectorAll("m3e-list-action,m3e-expandable-list-item")];for(const t of e)t.isUpdatePending&&await t.updateComplete;this.isUpdatePending&&await this.updateComplete;const{added:t}=this[De].setItems(e.map(e=>e.button));this[De].activeItem||this[De].updateActiveItem(t.find(e=>!e.disabled))}};var tb,ab;Jv=new WeakMap,Qv=De,eb=t([$("m3e-action-list")],eb);let ob=class extends(R(Dv)){constructor(){super(...arguments),tb.add(this),this.disabled=!1}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}render(){return s`<m3e-list-item-button class="button" ?disabled="${this.disabled}" href="${je(this.href||void 0)}" target="${je(this.target||void 0)}" download="${je(this.download||void 0)}" rel="${je(this.rel||void 0)}" @click="${e(this,tb,"m",ab)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><slot name="trailing" slot="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot></m3e-list-item-button>`}};tb=new WeakSet,ab=function(e){e.defaultPrevented||this.closest("m3e-action-list")?.[De].updateActiveItem(this.button)},ob.styles=i`:host { display: block; } .button { width: 100%; }`,t([h(".button")],ob.prototype,"button",void 0),t([m({type:Boolean,reflect:!0})],ob.prototype,"disabled",void 0),ob=t([$("m3e-list-action")],ob);let ib=class extends(V(R(N(Y(P(f(Dv,"button"),!0)))))){constructor(){super(),new K(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new Z(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ne(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple>${this[G]()} ${super._renderBase()}</div>`}};var rb,sb,nb,lb,cb,db;ib.styles=[Dv.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } :host(:not(:disabled)) { cursor: pointer; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } slot[name="trailing"] { align-self: var(--_list-item-button-trailing-align-self, auto); }`],t([h(".focus-ring")],ib.prototype,"_focusRing",void 0),t([h(".state-layer")],ib.prototype,"_stateLayer",void 0),t([h(".ripple")],ib.prototype,"_ripple",void 0),ib=t([$("m3e-list-item-button")],ib);let hb=class extends(V(N(ue(Y(P(f(Dv,"option"),!0)))))){constructor(){super(),rb.add(this),sb.set(this,void 0),nb.set(this,""),lb.set(this,t=>e(this,rb,"m",db).call(this,t)),new K(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new Z(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ne(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}get value(){return e(this,sb,"f")??e(this,nb,"f")}set value(e){a(this,sb,e,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,lb,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,lb,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")){this.closest("m3e-selection-list")?.[De].notifySelectionChange(this);for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><slot name="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><div class="content"><slot name="overline"></slot><slot @slotchange="${e(this,rb,"m",cb)}"></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot><div class="indicator">${this.closest("m3e-selection-list")?.multi?s`<m3e-pseudo-checkbox ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-checkbox>`:s`<m3e-pseudo-radio ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-radio>`}</div></div>`}};var mb,pb,ub,vb,bb;sb=new WeakMap,nb=new WeakMap,lb=new WeakMap,rb=new WeakSet,cb=function(e){a(this,nb,me(e.target),"f")},db=function(e){const t=this.closest("m3e-selection-list");if(!e.defaultPrevented&&t&&(t.multi||!this.selected)){const e=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(t[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=e}},hb.styles=[Dv.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } .indicator { min-width: 1.5rem; min-height: 1.5rem; display: flex; align-items: center; justify-content: center; } :host(:not(:disabled)) { cursor: pointer; } :host(:state(-three-line)) .indicator { align-self: flex-start; margin-top: var(--m3e-list-item-three-line-top-offset, 0.25rem); } :host([selected]) .base, :host([selected]) .state-layer, :host([selected]) .ripple, :host([selected]) .focus-ring { border-radius: var(--m3e-list-item-selected-container-shape, ${v.shape.corner.large}); } :host([selected]:not(:disabled)) .base { color: var(--m3e-list-item-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-selected-overline-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-selected-supporting-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="leading"]) { color: var(--m3e-list-item-selected-leading-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: var(--m3e-list-item-selected-trailing-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) .base { background-color: var(--m3e-list-item-selected-container-color, ${v.color.secondaryContainer}); } :host([selected]:disabled) .base { background-color: color-mix( in srgb, var(--m3e-list-item-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-list-item-selected-disabled-container-opacity, 10%), transparent ); } :host([selected]:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var( --m3e-list-item-selected-hover-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-hover-opacity: var( --m3e-list-item-selected-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var( --m3e-list-item-selected-focus-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-focus-opacity: var( --m3e-list-item-selected-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host([selected]:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-selected-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-selected-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } :host(:state(-hide-selection)) .indicator, :host(:not(:state(-hide-selection))) ::slotted([slot="trailing"]) { display: none; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .content, :host([selected]:not(:disabled)) ::slotted([slot="overline"]), :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]), :host([selected]:not(:disabled)) ::slotted([slot="leading"]), :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: HighlightText; forced-color-adjust: none; } :host([selected]:not(:disabled)) .base { background-color: Highlight; } }`],t([h(".focus-ring")],hb.prototype,"_focusRing",void 0),t([h(".state-layer")],hb.prototype,"_stateLayer",void 0),t([h(".ripple")],hb.prototype,"_ripple",void 0),t([m()],hb.prototype,"value",null),hb=t([$("m3e-list-option")],hb);let fb=class extends(Q(te(ae(se(Y(P(f(qv,"listbox")))))))){constructor(){super(...arguments),mb.add(this),pb.set(this,e=>this[De].onKeyDown(e)),ub.set(this,t=>e(this,mb,"m",vb).call(this,t)),this[bb]=(new Ae).withWrap().withHomeAndEnd().withVerticalOrientation(),this.multi=!1,this.hideSelectionIndicator=!1}get options(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(pb=new WeakMap,ub=new WeakMap,mb=new WeakSet,bb=De,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,pb,"f")),this.addEventListener("change",e(this,ub,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,pb,"f")),this.removeEventListener("change",e(this,ub,"f"))}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled),e.has("multi")&&(this[De].multi=this.multi,this.multi?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),this[De].items.forEach(e=>e.requestUpdate())),e.has("hideSelectionIndicator")&&this[De].items.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}notifyItemsChange(){const{added:e}=this[De].setItems(this.items.filter(e=>e instanceof hb));e.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),this[De].activeItem||this[De].updateActiveItem(e.find(e=>!e.disabled))}};vb=function(e){e.target!==this&&(e.stopImmediatePropagation(),e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0})))},t([m({type:Boolean})],fb.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],fb.prototype,"hideSelectionIndicator",void 0),fb=t([$("m3e-selection-list")],fb);const gb=o("var(--m3e-loading-indicator-size, 2.375rem)"),yb=o(`var(--m3e-loading-indicator-active-indicator-color, ${v.color.primary})`),$b=o(`var(--m3e-loading-indicator-contained-active-indicator-color, ${v.color.onPrimaryContainer})`),xb=o(`var(--m3e-loading-indicator-contained-container-color, ${v.color.secondaryContainer})`),wb=o(`var(--m3e-loading-indicator-container-shape, ${v.shape.corner.full})`),kb=o("var(--m3e-loading-indicator-container-size, 3rem)"),Cb={"4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z"};let Sb=new Array;const _b=new Map;for(const e in Cb)Sb.push(Cb[e]),_b.set(e,Sb.length-1);const Lb={};Sb=ye(Sb,300);for(const e of _b)Lb[e[0]]=o(Sb[e[1]]);const Eb=Lb;let zb=class extends(M(f(r,"progressbar"))){constructor(){super(...arguments),this.variant="uncontained"}connectedCallback(){super.connectedCallback(),this.ariaValueMin=this.ariaValueMin||"0",this.ariaValueMax=this.ariaValueMax||"100"}disconnectedCallback(){super.disconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!1)}reconnectedCallback(){super.reconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!0)}firstUpdated(e){super.firstUpdated(e),this._activeIndicator?.classList.toggle("animate",!0)}render(){return s`<div class="container" aria-hidden="true"><div class="active-indicator"></div></div>`}};zb.styles=i`:host { display: inline-block; aspect-ratio: 1 / 1; contain: strict; vertical-align: middle; content-visibility: auto; } :host([variant="uncontained"]) { width: ${gb}; } :host([variant="contained"]) { width: ${kb}; } :host([variant="uncontained"]) .active-indicator { background-color: ${yb}; } :host([variant="contained"]) .active-indicator { background-color: ${$b}; } :host([variant="contained"]) .container { background-color: ${xb}; } .container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: ${wb}; } .active-indicator { margin: auto; aspect-ratio: 1 / 1; width: calc(${gb} * 0.842); transform-origin: center; transition: clip-path ${v.motion.spring.slowEffects}; will-change: transform, clip-path; --_polygon-soft-burst: polygon(${Eb["soft-burst"]}); --_polygon-7-sided-cookie: polygon(${Eb["7-sided-cookie"]}); --_polygon-pentagon: polygon(${Eb.pentagon}); --_polygon-pill: polygon(${Eb.pill}); --_polygon-very-sunny: polygon(${Eb["very-sunny"]}); --_polygon-4-sided-cookie: polygon(${Eb["4-sided-cookie"]}); --_polygon-oval: polygon(${Eb.oval}); } .active-indicator.animate { animation: rotate 4998ms infinite; } @keyframes rotate { 0% { clip-path: var(--_polygon-soft-burst); transform: rotate(0deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 14% { clip-path: var(--_polygon-7-sided-cookie); transform: rotate(154deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 29% { clip-path: var(--_polygon-pentagon); transform: rotate(309deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 43% { clip-path: var(--_polygon-pill); transform: rotate(463deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 57% { clip-path: var(--_polygon-very-sunny); transform: rotate(617deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 71% { clip-path: var(--_polygon-4-sided-cookie); transform: rotate(771deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 83% { clip-path: var(--_polygon-oval); transform: rotate(926deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 100% { clip-path: var(--_polygon-soft-burst); transform: rotate(1080deg); } } @media (forced-colors: active) { .active-indicator { background-color: CanvasText !important; } }`,t([h(".active-indicator")],zb.prototype,"_activeIndicator",void 0),t([m({reflect:!0})],zb.prototype,"variant",void 0),zb=t([$("m3e-loading-indicator")],zb);class Mb extends(V(N(P(Y(r),!0)))){constructor(){super(),new K(this,{callback:e=>{e&&this.menu?._activate()}})}get menu(){return this.closest("m3e-menu")}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${he(this)?this[G]():n}<div class="wrapper">${this._renderContent()}</div></div>`}}Mb.styles=i`:host { display: inline-block; outline: none; user-select: none; flex: none; height: var(--m3e-menu-item-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) .base { color: var(--m3e-menu-item-color, ${v.color.onSurface}); } :host(:not([aria-expanded="true"])) .base { --m3e-state-layer-hover-color: var(--m3e-menu-item-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-menu-item-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-menu-item-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled)[aria-expanded="true"]) .base { background-color: color-mix( in srgb, var(--m3e-menu-item-active-state-layer-color, ${v.color.onSurface}) var(--m3e-menu-active-state-layer-opacity, 8%), transparent ); } :host([aria-expanded="true"]) .state-layer { display: none; } :host(:not(:disabled)[checked]) .base { color: var(--m3e-menu-item-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-menu-item-selected-container-color, ${v.color.tertiaryContainer}); } :host([checked]) .base { --m3e-state-layer-hover-color: var( --m3e-menu-item-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-menu-item-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-menu-item-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-menu-item-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-menu-item-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([checked]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host([checked]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; column-gap: var(--m3e-menu-item-icon-label-space, 0.5rem); padding-inline-start: var(--m3e-menu-item-padding-start, 0.75rem); padding-inline-end: var(--m3e-menu-item-padding-end, 0.75rem); font-size: var(--m3e-menu-item-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-menu-item-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-menu-item-label-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var(--m3e-menu-item-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-menu-item-focus-ring-shape, inherit); } .content { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]), .trailing-icon { flex: none; width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host(:disabled) .base { color: GrayText; } }`,t([h(".focus-ring")],Mb.prototype,"_focusRing",void 0),t([h(".state-layer")],Mb.prototype,"_stateLayer",void 0),t([h(".ripple")],Mb.prototype,"_ripple",void 0);let Tb=class extends(b(z)){get menu(){return"M3E-MENU"===this.control?.tagName?this.control:null}attach(e){super.attach(e);const t=this.menu;t&&(this.parentElement&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",t.id&&Ie(this.parentElement,"aria-controls",t.id)),this.closest("m3e-menu")&&(t.submenu=!0))}detach(){if(this.parentElement){this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null;const e=this.menu;e?.id&&We(this.parentElement,"aria-controls",e.id)}super.detach()}_onClick(){this.parentElement&&("M3E-MENU-ITEM"===this.parentElement.tagName?this.menu?.show(this.parentElement):this.menu?.toggle(this.parentElement))}};var Pb,Ib,Wb,Db,Ab,Hb,Ob,Bb,Fb,qb,Vb,Rb;Tb=t([$("m3e-menu-trigger")],Tb);let Ub=Rb=class extends(R(f(Mb,"menuitem"))){constructor(){super(),Pb.add(this),Ib.set(this,t=>e(this,Pb,"m",Fb).call(this,t)),Wb.set(this,t=>e(this,Pb,"m",qb).call(this,t)),Db.set(this,()=>e(this,Pb,"m",Vb).call(this)),this._hasSubmenu=!1,Ab.set(this,void 0),new ne(this,{startDelay:500,endDelay:500,callback:t=>{t&&!this.disabled&&e(this,Ab,"f")&&e(this,Ab,"f").menu?.show(this)}})}get submenu(){return e(this,Ab,"f")?.menu??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Ib,"f")),this.addEventListener("keydown",e(this,Wb,"f")),this.addEventListener("mouseenter",e(this,Db,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ib,"f")),this.removeEventListener("keydown",e(this,Wb,"f")),this.removeEventListener("mouseenter",e(this,Db,"f"))}_renderContent(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,Pb,"m",Ob)}"></slot><span class="content"><slot @slotchange="${e(this,Pb,"m",Hb)}"></slot></span>${this._hasSubmenu?"ltr"===Ve.current?s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M400-280v-400l200 200-200 200Z"/></svg>`:s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M560-280 360-480l200-200v400Z"/></svg>`:s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,Pb,"m",Bb)}"></slot>`}`}};var Nb,jb,Yb,Kb,Zb,Gb,Xb,Jb,Qb,ef,tf,af,of,rf,sf,nf;Ib=new WeakMap,Wb=new WeakMap,Db=new WeakMap,Ab=new WeakMap,Pb=new WeakSet,Hb=function(t){a(this,Ab,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Tb),"f"),this._hasSubmenu=void 0!==e(this,Ab,"f")},Ob=function(e){k(this,"-with-icon",g(e.target))},Bb=function(e){k(this,"-with-trailing-icon",g(e.target))},Fb=function(e){e.defaultPrevented||this._hasSubmenu||this.menu?.hideAll(!0)},qb=function(e){if(!e.defaultPrevented&&!this.disabled)switch(e.key){case"Right":case"ArrowRight":"ltr"===Ve.current&&(e.preventDefault(),this.submenu?.show(this));break;case"Left":case"ArrowLeft":"rtl"===Ve.current&&(e.preventDefault(),this.submenu?.show(this))}},Vb=function(){this.menu?.items.forEach(e=>{e instanceof Rb&&e!==this&&e.submenu?.isOpen&&e.submenu.hide()})},t([u()],Ub.prototype,"_hasSubmenu",void 0),Ub=Rb=t([$("m3e-menu-item")],Ub);let lf=nf=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),Nb.add(this),jb.set(this,void 0),Yb.set(this,void 0),Kb.set(this,(new Oe).withWrap().withHomeAndEnd().withVerticalOrientation()),Zb.set(this,t=>e(this,Nb,"m",tf).call(this,t)),Gb.set(this,()=>e(this,Nb,"m",af).call(this)),Xb.set(this,t=>e(this,Nb,"m",of).call(this,t)),Jb.set(this,new ve(this,{target:null,callback:e=>e instanceof nf?e.items.filter(e=>e instanceof Ub).forEach(e=>e.submenu?.hide()):this.hideAll()})),Qb.set(this,t=>{"closed"===t.newState?(e(this,Yb,"f")?.call(this),a(this,Yb,void 0,"f")):setTimeout(()=>{e(this,Kb,"f").setActiveItem(e(this,Kb,"f").items.find(e=>!e.disabled))},40)}),this.positionX="after",this.positionY="below",this.variant="standard",this.submenu=!1}get items(){return e(this,Kb,"f").items}get isOpen(){return void 0!==e(this,jb,"f")}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,Zb,"f")),this.addEventListener("mouseenter",e(this,Gb,"f")),this.addEventListener("toggle",e(this,Qb,"f")),document.addEventListener("click",e(this,Xb,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Zb,"f")),this.removeEventListener("mouseenter",e(this,Gb,"f")),this.removeEventListener("toggle",e(this,Qb,"f")),document.removeEventListener("click",e(this,Xb,"f")),e(this,Nb,"m",sf).call(this)}async show(t){e(this,jb,"f")&&e(this,jb,"f")!==t&&this.hide();let o=this.positionX;"rtl"===Ve.current&&(o="before"===o?"after":"before"),a(this,Yb,await Re(this,t,{position:this.submenu?"before"===o?"left-start":"right-start":"above"===this.positionY?"before"===o?"top-end":"top-start":"before"===o?"bottom-end":"bottom-start",inline:!0,flip:!0,shift:"main",offset:this.submenu?void 0:4},(t,a,o)=>{if(this.submenu){if(e(this,jb,"f")){const t=e(this,Nb,"m",rf).call(this,e(this,jb,"f")).y;k(this,"-shift-down",!1),k(this,"-shift-up",!1),k(this,Math.round(a)===Math.round(t)?"-shift-down":"-shift-up",!0)}}else k(this,"-top",o.includes("top")),k(this,"-bottom",o.includes("bottom"));"rtl"===Ve.current?this.style.right=window.innerWidth-t-this.clientWidth+"px":this.style.left=`${t}px`,this.style.top=`${a}px`}),"f");const i=t.closest("m3e-menu");i?this.variant=i.variant:this._activate(),this.showPopover(),a(this,jb,t,"f"),e(this,jb,"f").ariaExpanded="true",e(this,Jb,"f").observe(e(this,jb,"f"))}hide(t=!1){for(const t of e(this,Kb,"f").items){const e=t.submenu;e&&e.isOpen&&e.hide()}e(this,Nb,"m",sf).call(this),this.hidePopover(),e(this,jb,"f")&&(e(this,jb,"f").ariaExpanded="false",t&&e(this,jb,"f").focus(),e(this,Jb,"f").unobserve(e(this,jb,"f")),a(this,jb,void 0,"f"))}hideAll(t=!1){let a=this;for(;e(a,jb,"f");){const t=e(a,jb,"f").closest("m3e-menu");if(!t)break;a=t}a.hide(t)}async toggle(t){e(this,jb,"f")?this.hide():await this.show(t)}render(){return s`<div class="base"><slot @slotchange="${e(this,Nb,"m",ef)}"></slot></div>`}_activate(){this!==nf.__activeMenu&&(nf.__activeMenu&&C(nf.__activeMenu,"-active"),nf.__activeMenu=this,E(nf.__activeMenu,"-active"))}};var cf,df,hf,mf,pf,uf,vf,bf,ff,gf,yf,$f;jb=new WeakMap,Yb=new WeakMap,Kb=new WeakMap,Zb=new WeakMap,Gb=new WeakMap,Xb=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,Nb=new WeakSet,ef=function(){const{added:t}=e(this,Kb,"f").setItems([...this.querySelectorAll("m3e-menu-item,m3e-menu-item-checkbox,m3e-menu-item-radio")].filter(e=>e.closest("m3e-menu")===this));e(this,Kb,"f").activeItem||e(this,Kb,"f").updateActiveItem(t.find(e=>!e.disabled)),e(this,Kb,"f").items.forEach((t,a)=>{k(t,"-first",0===a&&!t.previousElementSibling),k(t,"-last",a===e(this,Kb,"f").items.length-1)})},tf=function(t){switch(t.key){case"Right":case"ArrowRight":"rtl"===Ve.current?(t.preventDefault(),this.hide(!0)):e(this,Kb,"f").onKeyDown(t);break;case"Left":case"ArrowLeft":"ltr"===Ve.current?(t.preventDefault(),this.hide(!0)):e(this,Kb,"f").onKeyDown(t);break;case"Tab":this.hideAll();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,Kb,"f").onKeyDown(t)}},af=function(){this._activate()},of=function(t){this.submenu||t.composedPath().some(t=>t instanceof nf||t===e(this,jb,"f"))||this.hide()},rf=function(e){let t=0,a=0;for(let o=e;o;o=o.offsetParent instanceof HTMLElement?o.offsetParent:null)t+=o.offsetLeft-o.scrollLeft+o.clientLeft,a+=o.offsetTop-o.scrollTop+o.clientTop;return{x:t,y:a}},sf=function(){this===nf.__activeMenu&&(C(nf.__activeMenu,"-active"),nf.__activeMenu=void 0)},F(i`m3e-menu > m3e-divider { margin-block: var(--m3e-menu-divider-spacing, 0.5rem); }`),lf.styles=i`:host { position: absolute; padding: unset; margin: unset; border: unset; overflow-y: auto; overflow-x: visible; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; scroll-padding-block: calc( var(--m3e-focus-ring-thickness, 3px) + var(--m3e-menu-container-padding-block, 0.25rem) ); min-width: var(--m3e-menu-container-min-width, 7rem); max-width: var(--m3e-menu-container-max-width, 17.5rem); max-height: var(--m3e-menu-container-max-height, 17.5rem); box-shadow: var(--m3e-menu-container-elevation, ${v.elevation.level3}); opacity: 0; display: none; } .base { display: flex; flex-direction: column; row-gap: var(--m3e-menu-gap, 0.125rem); min-width: inherit; max-width: inherit; padding-block: var(--m3e-menu-container-padding-block, 0.25rem); padding-inline: var(--m3e-menu-container-padding-inline, 0.25rem); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } :host(:not(:state(-active))) { border-radius: var(--m3e-menu-container-shape, ${v.shape.corner.small}); } :host(:not(:state(-active))) .base { --m3e-menu-item-first-child-shape: ${v.shape.corner.extraSmall}; --m3e-menu-item-last-child-shape: ${v.shape.corner.extraSmall}; } :host(:state(-active)) { border-radius: var(--m3e-menu-active-container-shape, ${v.shape.corner.large}); } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.duration.short2} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n border-radius ${v.motion.spring.fastEffects}`)}; } :host(:not([submenu])) { transform: scaleY(0.8); } :host(:not([submenu]):popover-open) { transform: scaleY(1); } :host::backdrop { background-color: transparent; } :host(:popover-open) { display: block; opacity: 1; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } :host(:state(-shift-down)) { margin-top: calc(0px - var(--m3e-menu-container-padding-block, 0.25rem)); } :host(:state(-shift-up)) { margin-top: var(--m3e-menu-container-padding-block, 0.25rem); } :host([variant="vibrant"]) { background-color: var(--m3e-vibrant-menu-container-color, ${v.color.tertiaryContainer}); --m3e-menu-item-color: var(--m3e-vibrant-menu-item-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-container-hover-color: var( --m3e-vibrant-menu-item-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-container-focus-color: var( --m3e-vibrant-menu-item-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-ripple-color: var(--m3e-vibrant-menu-item-ripple-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-active-state-layer-color: var( --m3e-vibrant-menu-item-active-state-layer-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-selected-color: var(--m3e-vibrant-menu-item-selected-color, ${v.color.onTertiary}); --m3e-menu-item-selected-container-color: var( --m3e-vibrant-menu-item-selected-container-color, ${v.color.tertiary} ); --m3e-menu-item-selected-container-hover-color: var( --m3e-vibrant-menu-item-selected-container-hover-color, ${v.color.onTertiary} ); --m3e-menu-item-container-selected-focus-color: var( --m3e-vibrant-menu-item-selected-container-focus-color, ${v.color.onTertiary} ); --m3e-menu-item-selected-ripple-color: var( --m3e-vibrant-menu-item-selected-ripple-color, ${v.color.onTertiary} ); --m3e-menu-item-disabled-color: var( --m3e-vibrant-menu-item-disabled-color, ${v.color.onTertiaryContainer} ); } :host([variant="standard"]) { background-color: var(--m3e-menu-container-color, ${v.color.surfaceContainer}); } @starting-style { :host(:popover-open) { opacity: 0; } :host(:not([submenu]):popover-open) { transform: scaleY(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; outline: 1px solid MenuText; } }`,t([m({attribute:"position-x"})],lf.prototype,"positionX",void 0),t([m({attribute:"position-y"})],lf.prototype,"positionY",void 0),t([m({reflect:!0})],lf.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],lf.prototype,"submenu",void 0),lf=nf=t([$("m3e-menu")],lf);let xf=class extends($e(f(Mb,"menuitemcheckbox"))){constructor(){super(...arguments),cf.add(this),df.set(this,t=>e(this,cf,"m",ff).call(this,t)),hf.set(this,t=>e(this,cf,"m",gf).call(this,t)),mf.set(this,()=>e(this,cf,"m",yf).call(this)),pf.set(this,()=>e(this,cf,"m",$f).call(this)),uf.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,df,"f")),this.addEventListener("keydown",e(this,hf,"f")),this.addEventListener("keyup",e(this,mf,"f")),this.addEventListener("mouseenter",e(this,pf,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,df,"f")),this.removeEventListener("keydown",e(this,hf,"f")),this.removeEventListener("keyup",e(this,mf,"f")),this.removeEventListener("mouseenter",e(this,pf,"f"))}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,cf,"m",vf)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,cf,"m",bf)}"></slot>`}};df=new WeakMap,hf=new WeakMap,mf=new WeakMap,pf=new WeakMap,uf=new WeakMap,cf=new WeakSet,vf=function(e){k(this,"-with-icon",g(e.target))},bf=function(e){k(this,"-with-trailing-icon",g(e.target))},ff=function(t){t.defaultPrevented||(this.checked=!this.checked,this.performUpdate(),e(this,uf,"f")||(S()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},gf=function(e){a(this,uf," "===e.key,"f")},yf=function(){a(this,uf,!1,"f")},$f=function(){this.menu?.items.forEach(e=>{e instanceof Ub&&e.submenu?.isOpen&&e.submenu.hide()})},xf.styles=[Mb.styles,i`.icon { display: flex; align-items: center; justify-content: center; transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-menu-item-icon-label-space, 0.75rem)); } .check { width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } :host(:not([checked])) .check { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]) ::slotted([slot="icon"]) { display: none !important; } @media (prefers-reduced-motion) { .icon { transition: none; } }`],xf=t([$("m3e-menu-item-checkbox")],xf);let wf=class extends(f(r,"group")){render(){return s`<slot></slot>`}};var kf,Cf,Sf,_f,Lf,Ef,zf,Mf,Tf,Pf,If,Wf;wf.styles=i`:host { display: contents; }`,wf=t([$("m3e-menu-item-group")],wf);let Df=class extends($e(f(Mb,"menuitemradio"))){constructor(){super(...arguments),kf.add(this),Cf.set(this,t=>e(this,kf,"m",Tf).call(this,t)),Sf.set(this,t=>e(this,kf,"m",Pf).call(this,t)),_f.set(this,()=>e(this,kf,"m",If).call(this)),Lf.set(this,()=>e(this,kf,"m",Wf).call(this)),Ef.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Cf,"f")),this.addEventListener("keydown",e(this,Sf,"f")),this.addEventListener("keyup",e(this,_f,"f")),this.addEventListener("mouseenter",e(this,Lf,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Cf,"f")),this.removeEventListener("keydown",e(this,Sf,"f")),this.removeEventListener("keyup",e(this,_f,"f")),this.removeEventListener("mouseenter",e(this,Lf,"f"))}update(e){super.update(e),e.has("checked")&&this.checked&&(this.closest("[role='group']")??this.closest("m3e-menu"))?.querySelectorAll("m3e-menu-item-radio").forEach(e=>{e!==this&&e.checked&&(e.checked=!1)})}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,kf,"m",zf)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,kf,"m",Mf)}"></slot>`}};var Af,Hf,Of,Bf,Ff,qf;Cf=new WeakMap,Sf=new WeakMap,_f=new WeakMap,Lf=new WeakMap,Ef=new WeakMap,kf=new WeakSet,zf=function(e){k(this,"-with-icon",g(e.target))},Mf=function(e){k(this,"-with-trailing-icon",g(e.target))},Tf=function(t){t.defaultPrevented||(this.checked=!0,this.performUpdate(),e(this,Ef,"f")||(S()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},Pf=function(e){a(this,Ef," "===e.key,"f")},If=function(){a(this,Ef,!1,"f")},Wf=function(){this.menu?.items.forEach(e=>{e instanceof Ub&&e.submenu?.isOpen&&e.submenu.hide()})},Df.styles=xf.styles,Df=t([$("m3e-menu-item-radio")],Df);let Vf=class extends(M(P(f(r,"navigation")))){constructor(){super(...arguments),Af.add(this),this[qf]=(new Ae).disableRovingTabIndex(),Hf.set(this,void 0),this.mode="compact"}get items(){return this[De].items}get selected(){return this[De].selectedItems[0]??null}get currentMode(){return this._mode??("compact"!==this.mode?"expanded":"compact")}set currentMode(e){this._mode=e}disconnectedCallback(){super.disconnectedCallback(),this._mode=void 0,e(this,Hf,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.mode&&e(this,Af,"m",Of).call(this)}willUpdate(t){super.willUpdate(t),t.has("mode")&&(e(this,Hf,"f")?.call(this),"auto"===this.mode?e(this,Af,"m",Of).call(this):(this._mode=void 0,this._updateItems())),t.has("_mode")&&this._updateItems()}render(){return s`<div class="base"><slot @change="${e(this,Af,"m",Ff)}" @slotchange="${e(this,Af,"m",Bf)}"></slot></div>`}_updateItems(){const e="compact"===this.currentMode?"vertical":"horizontal";this._updateOrientation(e),k(this,"-compact","vertical"===e)}_updateOrientation(e){this[De].items.forEach(t=>t.orientation=e)}};var Rf,Uf,Nf;Hf=new WeakMap,Af=new WeakSet,qf=De,Of=function(){a(this,Hf,Je.observe([Qe.XSmall,Qe.Small],e=>{this._mode=e.get(Qe.XSmall)||e.get(Qe.Small)?"compact":"expanded",this._updateItems()}),"f")},Bf=function(){this[De].setItems([...this.querySelectorAll("m3e-nav-item")]),this._updateItems()},Ff=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},Vf.styles=i`:host { display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; min-height: var(--m3e-nav-bar-height, 4rem); } .base { display: flex; align-items: stretch; justify-content: center; box-sizing: border-box; min-height: inherit; height: inherit; width: 100%; background-color: var(--m3e-nav-bar-container-color, ${v.color.surfaceContainer}); --_nav-item-min-width: var(--m3e-nav-bar-vertical-item-width, 7rem); }`,t([u()],Vf.prototype,"_mode",void 0),t([m({reflect:!0})],Vf.prototype,"mode",void 0),Vf=t([$("m3e-nav-bar")],Vf);let jf=class extends(R(ue(V(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(...arguments),Rf.add(this),Uf.set(this,t=>e(this,Rf,"m",Nf).call(this,t)),this.orientation="vertical"}get navBar(){return this.closest("m3e-nav-bar")??this.closest("m3e-nav-rail")??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Uf,"f"),{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Uf,"f"),{capture:!0})}update(e){if(super.update(e),e.has("selected")){this.ariaSelected=null,this.ariaPressed=null,this.ariaCurrent=`${this.selected}`;for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected);this.navBar?.[De].notifySelectionChange(this)}}updated(e){super.updated(e),e.has("orientation")&&this._focusRing?.attach(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const e=this.disabled||this.disabledInteractive;return s`${"vertical"===this.orientation?s`<m3e-focus-ring class="focus-ring" inward></m3e-focus-ring>`:n}<div class="outer">${this[G]()}<div class="inner">${"horizontal"===this.orientation?s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring>`:n}<m3e-state-layer class="state-layer" ?disabled="${e}"></m3e-state-layer><m3e-ripple class="ripple" centered ?disabled="${e}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="base"><div class="icon-wrapper" aria-hidden="true"><div class="icon"><slot name="icon" aria-hidden="true"></slot></div></div><div class="label"><slot></slot></div></div></div></div>`}};var Yf,Kf,Zf,Gf,Xf,Jf,Qf,eg,tg,ag,og,ig;Uf=new WeakMap,Rf=new WeakSet,Nf=function(e){e.defaultPrevented||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.navBar?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},jf.styles=i`:host { display: inline-block; vertical-align: middle; position: relative; outline: none; user-select: none; flex: 1; font-size: var(--m3e-nav-item-label-text-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var( --m3e-nav-item-label-text-font-weight, ${v.typescale.standard.label.medium.fontWeight} ); line-height: var( --m3e-nav-item-label-text-line-height, ${v.typescale.standard.label.medium.lineHeight} ); letter-spacing: var(--m3e-nav-item-label-text-tracking, ${v.typescale.standard.label.medium.tracking}); border-radius: var(--m3e-nav-item-shape, ${v.shape.corner.full}); min-width: var(--_nav-item-min-width); align-self: var(--_nav-item-align-self); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([orientation="horizontal"]) { max-width: fit-content; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .outer { height: 100%; } .outer, .inner { display: flex; align-items: center; justify-content: var(--_nav-item-justify-content, center); position: relative; border-radius: inherit; } .icon-wrapper { position: relative; flex: none; } .base { justify-content: unset; box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; } .icon { position: absolute; } .label { vertical-align: middle; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]) { width: 1em; font-size: var(--m3e-nav-item-icon-size, 1.5rem) !important; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-inactive-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-inactive-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-inactive-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-inactive-label-text-color, ${v.color.onSurfaceVariant}); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-inactive-icon-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-active-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-active-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-active-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host([selected]:not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-active-label-text-color, ${v.color.secondary}); } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: var(--m3e-nav-item-active-container-color, ${v.color.secondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-active-icon-color, ${v.color.onSecondaryContainer}); } :host([orientation="vertical"]) .outer { align-self: stretch; align-items: flex-start; } :host([orientation="vertical"]) .label { text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host([orientation="vertical"]) .base { flex-direction: column; row-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="vertical"]) .base { margin-block: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple { top: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); bottom: unset; } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { width: var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { height: var(--m3e-vertical-nav-item-active-indicator-height, 2rem); } :host([orientation="vertical"]) .icon { top: calc( calc(var(--m3e-vertical-nav-item-active-indicator-height, 2rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); left: calc( calc(var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); } :host([orientation="vertical"]) .focus-ring { border-radius: var(--m3e-nav-item-focus-ring-shape, ${v.shape.corner.medium}); } :host([orientation="horizontal"]) .icon-wrapper { width: var(--m3e-nav-item-icon-size, 1.5rem); height: var(--m3e-nav-item-icon-size, 1.5rem); } :host([orientation="horizontal"]) .base { padding: var(--m3e-horizontal-nav-item-padding, 1rem); } :host([orientation="horizontal"]) .label { flex: 1 1 auto; } :host([orientation="horizontal"]) .base { column-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="horizontal"]) .inner { height: var(--m3e-horizontal-nav-item-active-indicator-height, 2.5rem); width: fit-content; } .state-layer, .ripple { margin-inline: auto; } :host(:disabled) .label, :host([disabled-interactive]) .label { color: color-mix( in srgb, var(--m3e-nav-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: color-mix( in srgb, var(--m3e-nav-item-disabled-icon-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-icon-opacity, 38%), transparent ); } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { :host(:disabled) .label, :host([disabled-interactive]) .label, :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: GrayText; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label, :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: ButtonText; } :host([orientation="vertical"][selected]:not(:disabled):not([disabled-interactive])) .label { color: ButtonText; } :host([orientation="horizontal"][selected]:not(:disabled):not([disabled-interactive])) .label, :host([selected]:not(:disabled):not([disabled-interactive])) .icon { forced-color-adjust: none; color: ButtonFace; } }`,t([h(".focus-ring")],jf.prototype,"_focusRing",void 0),t([h(".state-layer")],jf.prototype,"_stateLayer",void 0),t([h(".ripple")],jf.prototype,"_ripple",void 0),t([m({reflect:!0})],jf.prototype,"orientation",void 0),jf=t([$("m3e-nav-item")],jf);let rg=ig=class extends(ue(Y(x(P(f(r,"treeitem"),!0),"opening","opened","closing","closed")))){constructor(){super(...arguments),Yf.add(this),this._hasChildItems=!1,Kf.set(this,[]),Zf.set(this,null),Gf.set(this,new Array),Xf.set(this,null),this.open=!1}get link(){return e(this,Xf,"f")}get label(){return this._base??null}get visible(){return!e(this,Gf,"f").some(e=>!e.open)}get path(){return[...e(this,Gf,"f"),this]}get hasChildItems(){return this._hasChildItems}get parentItem(){return e(this,Gf,"f")[e(this,Gf,"f").length-1]??null}get childItems(){return e(this,Kf,"f")}get level(){return e(this,Gf,"f").length+1}expand(e=!1){this.hasChildItems&&(this.open=!0,e&&this.childItems.forEach(e=>e.expand(!0)))}collapse(e=!1){this.hasChildItems&&(this.open=!1,e&&this.childItems.forEach(e=>e.collapse(!0)))}toggle(){this.hasChildItems&&(this.open=!this.open)}connectedCallback(){super.connectedCallback(),e(this,Gf,"f").length=0;for(let t=this.parentElement?.closest("m3e-nav-menu-item");t;t=t.parentElement?.closest("m3e-nav-menu-item"))e(this,Gf,"f").push(t);e(this,Gf,"f").reverse(),this.style.setProperty("--_nav-menu-item-level",`${this.level}`),a(this,Zf,this.closest("m3e-nav-menu"),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Gf,"f").length=0}update(t){if(super.update(t),t.has("selected")){this.ariaSelected=null,this.ariaCurrent=this.hasChildItems?null:`${this.selected}`;for(const e of this.querySelectorAll(":scope > m3e-icon[slot]"))e.toggleAttribute("filled",this.selected);e(this,Gf,"f").forEach(e=>e.selected=this.selected),this.selected&&!this.hasChildItems&&this.closest("m3e-nav-menu")?.[De].notifySelectionChange(this)}(t.has("open")||t.has("_hasChildItems"))&&(this.ariaExpanded=this._hasChildItems?`${this.open}`:null),(t.has("_hasChildItems")&&this.disabled||t.has("disabled"))&&e(this,Kf,"f").forEach(e=>e.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e);const t=this._base;t&&[this.focusRing,this.stateLayer,this.ripple].forEach(e=>e?.attach(t))}render(){return s`<div class="base" @click="${e(this,Yf,"m",ag)}"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="icon" aria-hidden="true">${e(this,Yf,"m",Jf).call(this)}</div><div class="label"><slot name="label" @slotchange="${e(this,Yf,"m",eg)}"></slot></div><slot name="badge"></slot><div aria-hidden="true" class="toggle"><slot name="toggle-icon"><svg class="toggle-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><m3e-collapsible class="group" role="group" aria-hidden="${je(this._hasChildItems?void 0:"true")}" ?open="${this._hasChildItems&&this.open}" @opening="${e(this,Yf,"m",og)}" @opened="${e(this,Yf,"m",og)}" @closing="${e(this,Yf,"m",og)}" @closed="${e(this,Yf,"m",og)}"><slot @slotchange="${e(this,Yf,"m",tg)}"></slot></m3e-collapsible>`}};var sg,ng,lg,cg,dg,hg,mg,pg,ug,vg,bg,fg,gg,yg,$g;Kf=new WeakMap,Zf=new WeakMap,Gf=new WeakMap,Xf=new WeakMap,Yf=new WeakSet,Jf=function(){const t=s`<slot name="icon" @slotchange="${e(this,Yf,"m",Qf)}"></slot>`;return this.selected&&!this.hasChildItems?s`<slot name="selected-icon" @slotchange="${e(this,Yf,"m",Qf)}">${t}</slot>`:t},Qf=function(e){k(this,"-with-icon",g(e.target))},eg=function(t){a(this,Xf,t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLAnchorElement)??null,"f"),e(this,Xf,"f")?.setAttribute("tabindex","-1")},tg=function(t){a(this,Kf,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof ig),"f");const o=this._hasChildItems;this._hasChildItems=e(this,Kf,"f").length>0,k(this,"-with-items",this._hasChildItems),(o||this._hasChildItems)&&(this.selected=e(this,Kf,"f").some(e=>e.selected))},ag=function(){if(!this.disabled)if(e(this,Zf,"f")?.[De].setActiveItem(this),this._hasChildItems)this.toggle();else{e(this,Zf,"f")?.[De].select(this),e(this,Gf,"f").forEach(e=>e.selected=this.selected),e(this,Xf,"f")?.click();const t=this.closest("m3e-drawer-container");if(t){const e=this.closest("[slot='start']")??this.closest("[slot='end']");e&&(O(t,`-${e.slot}-push`)||O(t,`-${e.slot}-over`))&&setTimeout(()=>{t.removeAttribute(e.slot),t.dispatchEvent(new Event("change",{bubbles:!0}))},300)}}},og=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},F(i`m3e-nav-menu-item > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; } m3e-nav-menu-item > m3e-nav-menu-item:first-of-type { margin-block-start: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); } m3e-nav-menu-item > m3e-nav-menu-item:last-of-type { margin-block-end: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); }`),rg.styles=i`:host { display: block; flex: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: flex; align-items: center; position: relative; padding-inline: var(--m3e-nav-menu-item-padding, 1.5rem); height: calc(var(--m3e-nav-menu-item-height, 3.5rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-nav-menu-item-spacing, 0.75rem); font-size: var(--m3e-nav-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard},\n background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .base, .focus-ring { border-radius: var(--m3e-nav-menu-item-shape, ${v.shape.corner.full}); } .label { flex: 1 1 auto; display: flex; align-items: center; position: relative; overflow: hidden; vertical-align: middle; } .icon, .toggle { flex: none; display: flex; align-items: center; justify-content: center; position: relative; vertical-align: middle; } ::slotted([slot="badge"]) { flex: none; position: relative; font-size: var(--m3e-nav-menu-item-badge-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-badge-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-badge-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-badge-tracking, ${v.typescale.standard.label.large.tracking}); } .toggle { transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:state(-with-icon))) .icon { display: none; } .icon { margin-inline-start: -0.5rem; } .toggle { margin-inline-end: -0.5rem; } .group { padding-inline-start: var(--m3e-nav-menu-item-inset, 1rem); } :host([open]) .toggle { transform: rotate(180deg); } :host(:not(:state(-with-items))) .toggle, :host(:not(:state(-with-items))) .group { display: none; } ::slotted([slot="selected-icon"]), ::slotted([slot="icon"]), ::slotted([slot="toggle-icon"]), .toggle-icon { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-nav-menu-item-icon-size, 1.5rem); } :host(:not(:disabled)) .base { cursor: pointer; } :host(:not(:disabled)) .base { color: var(--m3e-nav-menu-item-label-color, ${v.color.onSurfaceVariant}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-nav-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-nav-menu-item-disabled-color-opacity, 38%), transparent ); } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { color: var(--m3e-nav-menu-item-selected-label-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-nav-menu-item-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-nav-menu-item-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not([selected]):not(:state(-with-items)):not(:disabled)) .base { --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-unselected-ripple-color, ${v.color.onSurface}); } .state-layer { margin-inline: auto; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: var(--m3e-nav-menu-item-open-container-color, ${v.color.surfaceContainerHighest}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-open-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-open-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-open-ripple-color, ${v.color.onSurface}); } ::slotted(a[slot="label"]) { all: unset; } @media (prefers-reduced-motion) { .base, .toggle, .state-layer { transition: none !important; } } @media (forced-colors: active) { .base, .state-layer { transition: none !important; } :host(:disabled) .base { color: GrayText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: unset; color: ButtonText; } }`,t([h(".state-layer")],rg.prototype,"stateLayer",void 0),t([h(".focus-ring")],rg.prototype,"focusRing",void 0),t([h(".ripple")],rg.prototype,"ripple",void 0),t([h(".base")],rg.prototype,"_base",void 0),t([u()],rg.prototype,"_hasChildItems",void 0),t([m({type:Boolean,reflect:!0})],rg.prototype,"open",void 0),rg=ig=t([$("m3e-nav-menu-item")],rg);let xg=$g=class extends(f(r,"tree")){constructor(){super(),sg.add(this),ng.set(this,!1),lg.set(this,!1),this[yg]=(new Ae).withVerticalOrientation().withHomeAndEnd().withTypeahead().withSkipPredicate(e=>e.disabled||!e.visible).disableRovingTabIndex().onActiveItemChange(()=>{this[De].activeItem&&e(this,sg,"m",bg).call(this,this[De].activeItem)}).onSelectedItemsChange(()=>{const t=this.selected;for(const a of this.items)a!==t&&e(this,sg,"m",gg).call(this,a,!1,!1);t?.label&&_(t.label,this,{block:"start",behavior:"smooth"})}),cg.set(this,t=>e(this,sg,"m",pg).call(this,t)),dg.set(this,t=>e(this,sg,"m",ug).call(this,t)),hg.set(this,t=>e(this,sg,"m",vg).call(this,t)),new Z(this,{callback:e=>a(this,lg,e,"f")}),new K(this,{callback:()=>{e(this,lg,"f")||e(this,sg,"m",fg).call(this)}})}get selected(){return this[De].selectedItems[0]??null}get items(){return this[De].items}expand(e,t=!1){const a=Array.isArray(e)?e:this[De].items,o="boolean"==typeof e?e:t;a.forEach(e=>e.expand(o))}collapse(e,t=!1){const a=Array.isArray(e)?e:this[De].items,o="boolean"==typeof e?e:t;a.forEach(e=>e.collapse(o));const i=this[De].activeItem;if(i&&!i.visible)for(let e=i.parentItem;e;e=e.parentItem)if(e.visible){this[De].setActiveItem(e);break}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",e(this,cg,"f")),this.addEventListener("keyup",e(this,dg,"f")),this.addEventListener("pointerdown",e(this,hg,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,cg,"f")),this.removeEventListener("keyup",e(this,dg,"f")),this.removeEventListener("pointerdown",e(this,hg,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,sg,"m",mg)}"></slot></div>`}};var wg,kg,Cg,Sg,_g;ng=new WeakMap,lg=new WeakMap,cg=new WeakMap,dg=new WeakMap,hg=new WeakMap,sg=new WeakSet,yg=De,mg=function(){for(const e of this.querySelectorAll("m3e-divider"))e.ariaHidden="true";const{added:t}=this[De].setItems([...this.querySelectorAll("m3e-nav-menu-item")]);for(const e of t)e.id=e.id||"m3e-nav-menu-item-"+$g.__nextId++;this[De].activeItem?(this.setAttribute("aria-activedescendant",this[De].activeItem.id),e(this,sg,"m",fg).call(this)):this.removeAttribute("aria-activedescendant")},pg=function(t){a(this,ng,!1,"f"),e(this,sg,"m",fg).call(this);const o=this[De].activeItem;if(!t.defaultPrevented&&o&&!o.disabled)switch(t.key){case"Enter":case" ":t.preventDefault()," "===t.key&&o.ripple&&!o.ripple.visible&&(o.ripple.centered=!0,o.ripple.show(0,0,!0),o.ripple.centered=!1),o.hasChildItems?requestAnimationFrame(()=>o.toggle()):o.selected||(this[De].select(o),o.link?.click());break;case"*":t.preventDefault(),o.expand(!0);break;case"Left":case"ArrowLeft":if(t.preventDefault(),"ltr"===Ve.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&this[De].setActiveItem(e)}else o.hasChildItems&&!o.open&&o.expand();break;case"Right":case"ArrowRight":if(t.preventDefault(),"rtl"===Ve.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&this[De].setActiveItem(e)}else o.hasChildItems&&!o.open&&o.expand();break;default:this[De].onKeyDown(t)}},ug=function(e){const t=this[De].activeItem;e.defaultPrevented||!t||t.disabled||" "!==e.key||t.ripple?.hide()},vg=function(t){if(!t.defaultPrevented&&!e(this,ng,"f")){a(this,ng,!0,"f");const o=t.composedPath().reverse().find(e=>e instanceof rg);o&&!o.disabled&&e(this,sg,"m",gg).call(this,o,!0,!1)}},bg=function(t){this.setAttribute("aria-activedescendant",t.id),t.label&&_(t.label,this,{block:"nearest",behavior:"smooth"}),e(this,sg,"m",fg).call(this)},fg=function(){const t=this.matches(":focus")||this.matches(":focus-within"),a=!e(this,ng,"f")&&this.matches(":focus-visible");this[De].items.forEach(o=>{const i=o===this[De].activeItem;e(this,sg,"m",gg).call(this,o,i&&t,i&&a)})},gg=function(e,t,a){t&&a?e.stateLayer?.show("focused"):e.stateLayer?.hide("focused"),a?e.focusRing?.show():e.focusRing?.hide()},F(i`m3e-nav-menu > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; }`),xg.styles=i`:host { display: block; outline: none; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; } .base { width: 100%; display: flex; flex-direction: column; position: relative; min-height: inherit; box-sizing: border-box; padding-block-start: var(--m3e-nav-menu-padding-top, 0.5rem); padding-block-end: var(--m3e-nav-menu-padding-bottom, 0.5rem); padding-inline-start: var(--m3e-nav-menu-padding-left, 0.75rem); padding-inline-end: var(--m3e-nav-menu-padding-right, 0.75rem); }`,xg.__nextId=0,xg=$g=t([$("m3e-nav-menu")],xg);let Lg=_g=class extends(P(f(r,"group"))){constructor(){super(...arguments),wg.add(this),kg.set(this,"m3e-nav-menu-item-group-label-"+_g.__nextId++),Cg.set(this,void 0)}connectedCallback(){super.connectedCallback(),k(this,"-divided","M3E-DIVIDER"===this.previousElementSibling?.tagName)}disconnectedCallback(){super.disconnectedCallback(),C(this,"-divided")}render(){return s`<div class="label"><slot name="label" @slotchange="${e(this,wg,"m",Sg)}"></slot></div><slot></slot>`}};var Eg,zg,Mg,Tg;kg=new WeakMap,Cg=new WeakMap,wg=new WeakSet,Sg=function(t){const o=t.target.assignedElements({flatten:!0})[0];o!==e(this,Cg,"f")&&(e(this,Cg,"f")?.id===e(this,kg,"f")&&(e(this,Cg,"f").id=""),a(this,Cg,o,"f"),e(this,Cg,"f")?(e(this,Cg,"f").id=e(this,Cg,"f").id||e(this,kg,"f"),this.setAttribute("aria-labelledby",e(this,Cg,"f").id)):this.removeAttribute("aria-labelledby")),k(this,"-with-label",void 0!==e(this,Cg,"f"))},Lg.styles=i`:host { display: contents; } :host(:not(:state(-with-label))) .label { display: none; } .label { margin-inline-start: var(--m3e-nav-menu-item-group-label-inset, 1rem); margin-block-end: var(--m3e-nav-menu-item-group-label-space, 1rem); flex: none; } :host(:state(-divided)) .label { margin-block-start: calc( var(--m3e-nav-menu-item-group-label-space, 1rem) - var(--m3e-nav-menu-divider-margin, 0.25rem) ); } :host(:not(:state(-divided))) .label { margin-block-start: var(--m3e-nav-menu-item-group-label-space, 1rem); }`,Lg.__nextId=0,Lg=_g=t([$("m3e-nav-menu-item-group")],Lg);let Pg=class extends et{constructor(){super(),Eg.add(this),zg.set(this,(new Oe).withHomeAndEnd().withWrap()),Mg.set(this,t=>e(this,Eg,"m",Tg).call(this,t)),this[De].onSelectedItemsChange(()=>{e(this,zg,"f").updateActiveItem(this[De].activeItem)})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Mg,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Mg,"f"))}_updateItems(){const t=Te.findInteractiveElements(this),{added:a}=e(this,zg,"f").setItems(t);if(!e(this,zg,"f").activeItem){const t=a.find(e=>!e.hasAttribute("disabled"));t&&e(this,zg,"f").updateActiveItem(t)}super._updateItems()}_updateOrientation(e){super._updateOrientation(e),this.querySelectorAll("m3e-fab").forEach(t=>t.toggleAttribute("extended","horizontal"===e))}};var Ig,Wg,Dg;zg=new WeakMap,Mg=new WeakMap,Eg=new WeakSet,Tg=function(t){e(this,zg,"f").onKeyDown(t)},F(i`m3e-nav-rail > m3e-icon-button, m3e-nav-rail > m3e-fab { margin-block-end: var(--m3e-nav-rail-button-item-space, 1rem); } m3e-nav-rail:not(:state(-compact)) > m3e-icon-button { margin-inline-start: var(--m3e-nav-rail-expanded-icon-button-inset, 0.5rem); }`),Pg.styles=i`:host { display: block; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } .base { display: flex; width: 100%; min-width: inherit; max-width: inherit; flex-direction: column; padding-block-start: var(--m3e-nav-rail-top-space, 2.75rem); padding-block-end: var(--m3e-nav-rail-bottom-space, 0.5rem); } :host(:state(-compact)) { width: var(--m3e-nav-rail-compact-width, 6rem); } :host(:state(-compact)) ::slotted(m3e-fab) { align-self: center; } :host(:not(:state(-compact))) { min-width: var(--m3e-nav-rail-expanded-min-width, 13.75rem); max-width: var(--m3e-nav-rail-expanded-max-width, 22.5rem); } :host(:not(:state(-compact))) .base { padding-inline: var(--m3e-nav-rail-expanded-inline-padding, 1.25rem); align-items: flex-start; --m3e-horizontal-nav-item-active-indicator-height: var(--m3e-nav-rail-expanded-item-height, 3.5rem); --_nav-item-align-self: stretch; --_nav-item-justify-content: flex-start; } ::slotted(*) { flex: none; } :host(:state(-compact)) ::slotted(m3e-icon-button) { align-self: center; } ::slotted(m3e-fab) { --m3e-fab-container-elevation: ${v.elevation.level0}; --m3e-fab-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-hover-container-elevation: ${v.elevation.level1}; --m3e-fab-lowered-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-hover-container-elevation: ${v.elevation.level1}; }`,Pg=t([$("m3e-nav-rail")],Pg);let Ag=class extends(b(z)){constructor(){super(...arguments),Ig.add(this),Wg.set(this,new w(this,{target:null,config:{attributeFilter:["class"]},callback:()=>e(this,Ig,"m",Dg).call(this)}))}attach(t){t instanceof Pg&&e(this,Wg,"f").observe(t),this.htmlFor&&this.parentElement&&Ie(this.parentElement,"aria-controls",this.htmlFor),super.attach(t),e(this,Ig,"m",Dg).call(this)}detach(){for(const t of e(this,Wg,"f").targets)e(this,Wg,"f").unobserve(t);this.parentElement&&(this.htmlFor&&We(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),super.detach()}_onClick(){this.control instanceof Pg&&(this.control.currentMode="compact"===this.control.currentMode?"expanded":"compact")}};var Hg,Og,Bg,Fg;Wg=new WeakMap,Ig=new WeakSet,Dg=async function(){if(!this.parentElement)return;const e=this.control instanceof Pg&&"expanded"===this.control.currentMode;this.parentElement.ariaExpanded=`${e}`,this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",e),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},Ag=t([$("m3e-nav-rail-toggle")],Ag);let qg=class extends(ue(Y(P(f(r,"option"))))){constructor(){super(...arguments),Hg.add(this),Og.set(this,void 0),Bg.set(this,""),this.term="",this.highlightMode="contains",this.disableHighlight=!1}get value(){return e(this,Og,"f")??e(this,Bg,"f")}set value(e){a(this,Og,e,"f")}get label(){return e(this,Bg,"f")}[(Og=new WeakMap,Bg=new WeakMap,Hg=new WeakSet,Fe)](){return this.label}get isEmpty(){return""===this.value}connectedCallback(){super.connectedCallback(),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}firstUpdated(e){super.firstUpdated(e),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")&&this.selected){const e=this.closest("[role='listbox']")??this.closest("m3e-autocomplete")??this.closest("m3e-select");e&&"true"!==e.ariaMultiSelectable&&!e.hasAttribute("multi")&&e.querySelectorAll("m3e-option").forEach(e=>{e!==this&&e.selected&&(e.selected=!1)})}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></div><m3e-text-overflow class="label"><m3e-text-highlight term="${this.term}" mode="${this.highlightMode}" ?disabled="${this.disableHighlight}"><slot @slotchange="${e(this,Hg,"m",Fg)}"></slot></m3e-text-highlight></m3e-text-overflow></div></div>`}};var Vg,Rg,Ug,Ng,jg;Fg=function(e){a(this,Bg,me(e.target),"f"),k(this,"-empty",this.isEmpty),this.selected&&this.closest("m3e-select")?.requestUpdate?.()},qg.styles=i`:host { display: block; outline: none; user-select: none; flex: none; height: var(--m3e-option-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) .base { color: var(--m3e-option-color, ${v.color.onSurface}); --m3e-state-layer-hover-color: var(--m3e-option-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-option-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-option-ripple-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not(:state(-empty))[selected]) .base { color: var(--m3e-option-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-option-selected-container-color, ${v.color.tertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-option-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-option-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-option-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not([aria-disabled="true"])) { cursor: pointer; } :host([aria-disabled="true"]) .base { color: color-mix( in srgb, var(--m3e-option-disabled-color, ${v.color.onSurface}) var(--m3e-option-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-option-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([selected]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host([selected]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; width: 100%; overflow: hidden; column-gap: var(--m3e-option-icon-label-space, 0.5rem); padding-inline-start: var(--_option-padding-start, var(--m3e-option-padding-start, 0.75rem)); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); font-size: var(--m3e-option-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-option-focus-ring-shape, inherit); } .icon { margin-inline-start: calc(0px - var(--m3e-option-icon-label-space, 0.5rem)); transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects}, width ${v.motion.spring.fastEffects}`)}; } :host([selected]) .icon { margin-inline-start: 0; width: var(--m3e-option-icon-size, 1.25rem); } .icon { flex: none; width: 0px; font-size: var(--m3e-option-icon-size, 1.25rem); } :host(:state(-empty)) .icon, :host(:state(-hide-selection-indicator)) .icon, :host(:not([selected])) .check { display: none; } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host([aria-disabled="true"]) .base { color: GrayText; } } @media (prefers-reduced-motion) { .icon, .base { transition: none; } }`,t([h(".focus-ring")],qg.prototype,"focusRing",void 0),t([h(".state-layer")],qg.prototype,"stateLayer",void 0),t([h(".ripple")],qg.prototype,"_ripple",void 0),t([m()],qg.prototype,"value",null),t([m()],qg.prototype,"term",void 0),t([m({attribute:"highlight-mode"})],qg.prototype,"highlightMode",void 0),t([m({attribute:"disable-highlight",type:Boolean})],qg.prototype,"disableHighlight",void 0),qg=t([$("m3e-option")],qg);let Yg=jg=class extends(f(r,"group")){constructor(){super(...arguments),Vg.add(this),Rg.set(this,"m3e-optgroup-label-"+jg.__nextId++),Ug.set(this,void 0)}render(){return s`<m3e-text-overflow class="label"><slot name="label" @slotchange="${e(this,Vg,"m",Ng)}"></slot></m3e-text-overflow><slot></slot>`}};var Kg,Zg,Gg,Xg;Rg=new WeakMap,Ug=new WeakMap,Vg=new WeakSet,Ng=function(t){const o=t.target.assignedElements({flatten:!0})[0]??void 0;o!==e(this,Ug,"f")&&(e(this,Ug,"f")?.id&&(We(this,"aria-labelledby",e(this,Ug,"f").id),e(this,Ug,"f").id===e(this,Rg,"f")&&(e(this,Ug,"f").id="")),a(this,Ug,o,"f"),e(this,Ug,"f")&&(e(this,Ug,"f").id=e(this,Ug,"f").id||e(this,Rg,"f"),Ie(this,"aria-labelledby",e(this,Ug,"f").id)))},Yg.styles=i`:host { display: block; --_option-padding-start: calc(var(--m3e-option-padding-start, 0.75rem) * 2); } .label { height: var(--m3e-option-height, 3rem); font-size: var(--m3e-option-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-tracking, ${v.typescale.standard.label.large.tracking}); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); padding-inline-start: var(--m3e-option-padding-start, 0.75rem); color: var(--m3e-option-color, ${v.color.onSurface}); flex: none; }`,Yg.__nextId=0,Yg=jg=t([$("m3e-optgroup")],Yg);let Jg=class extends(f(Ue,"listbox")){constructor(){super(),Kg.add(this),this.state="content",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,Kg,"m",Xg).call(this)})}connectedCallback(){super.connectedCallback(),e(this,Kg,"m",Xg).call(this)}render(){return s`<div class="base"><slot></slot><div class="no-data" aria-hidden="true"><slot name="no-data" @slotchange="${e(this,Kg,"m",Zg)}"></slot></div><div class="loading" aria-hidden="true"><slot name="loading" @slotchange="${e(this,Kg,"m",Gg)}"></slot></div></div>`}};
|
|
60
60
|
/**
|
|
61
61
|
* Adapted from Angular Material Paginator
|
|
62
62
|
* Source: https://github.com/angular/components/blob/main/src/material/paginator/paginator.ts
|
|
@@ -65,7 +65,7 @@ const wu=["m3e-input-chip-set","m3e-select"];function ku(e){return e instanceof
|
|
|
65
65
|
* Copyright (c) 2025 Google LLC
|
|
66
66
|
* See LICENSE file in the project root for full license text.
|
|
67
67
|
*/
|
|
68
|
-
var Qg,ey,ty,ay,oy,iy,ry,sy,ny;Kg=new WeakSet,Zg=function(e){k(this,"-with-no-data",g(e.target))},Gg=function(e){k(this,"-with-loading",g(e.target)),k(this,"-with-loading-indicator",null!==this.querySelector("m3e-loading-indicator[slot='loading'], m3e-circular-progress-indicator[slot='loading']"))},Xg=function(){const e=this.querySelectorAll("m3e-option");let t,a=!1;for(let o=0;o<e.length;o++){const i=e[o];!0===i.hidden?(C(i,"-first"),C(i,"-last")):a||i.parentElement instanceof Yg?(C(i,"-first"),t&&C(t,"-last"),E(i,"-last"),t=i):(E(i,"-first"),a=!0,E(i,"-last"),t=i)}},F(i`m3e-option-panel > m3e-divider { margin-block: var(--m3e-option-panel-divider-spacing, 0.5rem); } m3e-option-panel m3e-option[hidden], m3e-option-panel m3e-optgroup[hidden] { display: none; }`),Jg.styles=[Ue.styles,i`:host { --m3e-floating-panel-container-shape: var( --m3e-option-panel-container-shape, ${v.shape.corner.large} ); --m3e-floating-panel-container-min-width: var(--m3e-option-panel-container-min-width, 7rem); --m3e-floating-panel-container-max-width: var(--m3e-option-panel-container-max-width, 17.5rem); --m3e-floating-panel-container-max-height: var(--m3e-option-panel-container-max-height, 17.5rem); --m3e-floating-panel-container-color: var( --m3e-option-panel-container-color, ${v.color.surfaceContainer} ); --m3e-floating-panel-container-elevation: var( --m3e-option-panel-container-elevation, ${v.elevation.level3} ); --m3e-floating-panel-container-padding-inline: var(--m3e-option-panel-container-padding-inline, 0.25rem); --m3e-floating-panel-container-padding-block: var(--m3e-option-panel-container-padding-block, 0.25rem); } .base { row-gap: var(--m3e-option-panel-gap, 0.125rem); --m3e-text-highlight-container-color: var( --m3e-option-panel-text-highlight-container-color, ${v.color.tertiaryContainer} ); --m3e-text-highlight-color: var( --m3e-option-panel-text-highlight-color, ${v.color.onTertiaryContainer} ); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } .no-data { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-no-data-container-height, 2.75rem); padding: var(--m3e-option-panel-no-data-container-padding, 0.75rem); color: var(--m3e-option-panel-no-data-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-no-data-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-no-data-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-no-data-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-no-data-tracking, ${v.typescale.standard.label.large.tracking} ); } .loading { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-loading-container-height, 2.75rem); padding: var(--m3e-option-panel-loading-container-padding, 0.75rem); color: var(--m3e-option-panel-loading-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-loading-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-loading-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-loading-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-loading-tracking, ${v.typescale.standard.label.large.tracking} ); } :host(:state(-no-data)) slot:not([name]), :host(:state(-loading)) slot:not([name]), :host(:state(-loading)) .no-data, :host(:not(:state(-no-data))) .no-data, :host(:not(:state(-with-no-data))) .no-data, :host(:not(:state(-loading))) .loading, :host(:not(:state(-with-loading))) .loading { display: none; } :host(:state(-no-data)) .base, :host(:state(-loading)) .base { overflow-y: hidden; } :host(:state(-with-loading-indicator)) .loading { padding: 0; justify-content: center; }`],t([m({reflect:!0})],Jg.prototype,"state",void 0),Jg=t([$("m3e-option-panel")],Jg);let ly=ny=class extends(x(f(r,"group"),"page")){constructor(){super(...arguments),Qg.add(this),ey.set(this,"m3e-paginator-page-size-label-"+ny.__nextId++),ty.set(this,(e,t,a)=>{if(a=Math.max(a,0),"all"===t)return"";if(0===a||t<=0)return`0 of ${a}`;const o=e*t;return`${o+1} - ${o<a?Math.min(o+t,a):o+t} of ${a}`}),this.disabled=!1,this.pageIndex=0,this.length=0,this.pageSize=50,this.pageSizes="5,10,25,50,100",this.hidePageSize=!1,this.showFirstLastButtons=!1,this.itemsPerPageLabel="Items per page:",this.previousPageLabel="Previous page",this.nextPageLabel="Next page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.pageSizeVariant="outlined"}get pageCount(){return this.pageSize&&"all"!==this.pageSize?Math.ceil(this.length/this.pageSize):0}get hasPreviousPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex>=1}get hasNextPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex<this.pageCount-1}firstPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex=0,e(this,Qg,"m",sy).call(this,t)}}previousPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex--,e(this,Qg,"m",sy).call(this,t)}}nextPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex++,e(this,Qg,"m",sy).call(this,t)}}lastPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex=this.pageCount-1,e(this,Qg,"m",sy).call(this,t)}}willUpdate(t){if(super.willUpdate(t),t.has("pageIndex")){const t=e(this,Qg,"m",oy).call(this);t.includes(this.pageSize)||(this.pageSizes=[...t,this.pageSize].join(","),this.pageSizes=e(this,Qg,"m",oy).call(this).join(","))}}render(){return s`<div class="outer"><div class="inner">${e(this,Qg,"m",ay).call(this)} ${e(this,Qg,"m",iy).call(this)}</div></div>`}};ey=new WeakMap,ty=new WeakMap,Qg=new WeakSet,ay=function(){const t=e(this,Qg,"m",oy).call(this);return this.hidePageSize?n:s`<div id="${e(this,ey,"f")}" class="items-per-page-label" aria-live="polite">${this.itemsPerPageLabel}</div><m3e-form-field class="form-field" variant="${this.pageSizeVariant}" hide-subscript="always"><m3e-select class="select" aria-labelledby="${e(this,ey,"f")}" hide-selection-indicator ?disabled="${this.disabled||t.length<=1}" @change="${e(this,Qg,"m",ry)}">${t.map(e=>s`<m3e-option value="${e}" ?selected="${e===this.pageSize}">${"all"===e?"All":e}</m3e-option>`)}</m3e-select></m3e-form-field>`},oy=function(){const e=this.pageSizes.split(",").map(e=>e.trim()).filter(e=>""!==e).map(e=>"all"===e?e:Number(e)),t=e.filter(e=>"all"!==e);return t.sort((e,t)=>e-t),e.some(e=>"all"===e)?[...t,"all"]:t},iy=function(){const t=this.rangeLabelFormatter??e(this,ty,"f");return"all"===this.pageSize?n:s`<div class="range-actions"><div class="range-label">${t(this.pageIndex,this.pageSize,this.length)}</div>${this.showFirstLastButtons?s`<m3e-icon-button id="firstPageButton" aria-label="${this.firstPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.firstPage}"><slot name="first-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M240-240v-480h80v480h-80Zm440 0L440-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="firstPageButton" position="above">${this.firstPageLabel}</m3e-tooltip>`:n}<m3e-icon-button id="previousPageButton" aria-label="${this.previousPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.previousPage}"><slot name="previous-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="previousPageButton" position="above">${this.previousPageLabel}</m3e-tooltip><m3e-icon-button id="nextPageButton" aria-label="${this.nextPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.nextPage}"><slot name="next-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="nextPageButton" position="above">${this.nextPageLabel}</m3e-tooltip>${this.showFirstLastButtons?s`<m3e-icon-button id="lastPageButton" aria-label="${this.lastPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.lastPage}"><slot name="last-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m280-240-56-56 184-184-184-184 56-56 240 240-240 240Zm360 0v-480h80v480h-80Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="lastPageButton" position="above">${this.lastPageLabel}</m3e-tooltip>`:n}</div>`},ry=function(t){const a=t.target?.selected[0];if(!a)return;const o="all"===a.value?"all":Number(a.value);if(o!==this.pageSize){const t=this.pageIndex;this.pageIndex=0,this.pageSize=o,e(this,Qg,"m",sy).call(this,t)}},sy=function(e){this.dispatchEvent(new CustomEvent("page",{detail:{previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length}}))},ly.styles=i`:host { display: block; } .outer { display: flex; font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .inner { display: flex; align-items: center; justify-content: flex-end; padding-inline: 0.5rem; width: 100%; } .form-field { --md-sys-density-scale: -2; --m3e-form-field-font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); --m3e-form-field-font-weight: var( --m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight} ); --m3e-form-field-line-height: var( --m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight} ); --m3e-form-field-tracking: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .items-per-page-label { display: flex; align-items: center; margin-inline-end: 0.5rem; } .form-field { min-width: auto; width: 6rem; margin-inline: 0.25rem; } .range-label { margin-inline: 1.5rem 2rem; } :host([hide-page-size]) .range-label { margin-inline-start: unset; } .range-actions { display: flex; align-items: center; } ::slotted([slot="first-page-icon"]), ::slotted([slot="previous-page-icon"]), ::slotted([slot="next-page-icon"]), ::slotted([slot="last-page-icon"]), svg { width: 1em; font-size: var(--m3e-icon-button-medium-icon-size, 1.5rem) !important; } :host(:dir(rtl)) svg { transform: rotate(180deg); }`,ly.__nextId=0,t([m({type:Boolean,reflect:!0})],ly.prototype,"disabled",void 0),t([m({attribute:"page-index",type:Number})],ly.prototype,"pageIndex",void 0),t([m({type:Number})],ly.prototype,"length",void 0),t([m({attribute:"page-size",converter:e=>"all"===e?"all":Number(e)})],ly.prototype,"pageSize",void 0),t([m({attribute:"page-sizes"})],ly.prototype,"pageSizes",void 0),t([m({attribute:"hide-page-size",type:Boolean,reflect:!0})],ly.prototype,"hidePageSize",void 0),t([m({attribute:"show-first-last-buttons",type:Boolean})],ly.prototype,"showFirstLastButtons",void 0),t([m({attribute:"items-per-page-label"})],ly.prototype,"itemsPerPageLabel",void 0),t([m({attribute:"previous-page-label"})],ly.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],ly.prototype,"nextPageLabel",void 0),t([m({attribute:"first-page-label"})],ly.prototype,"firstPageLabel",void 0),t([m({attribute:"last-page-label"})],ly.prototype,"lastPageLabel",void 0),t([m({attribute:"page-size-variant"})],ly.prototype,"pageSizeVariant",void 0),ly=ny=t([$("m3e-paginator")],ly);class cy extends(M(P(f(r,"progressbar"),!0))){constructor(){super(...arguments),this.value=0,this.max=100,this.variant="flat"}connectedCallback(){super.connectedCallback(),this.ariaValueMin="0"}update(e){super.update(e),e.has("value")&&(this.ariaValueNow=`${this.value}`),e.has("max")&&(this.ariaValueMax=`${this.max}`)}}var dy,hy,my,py,uy,vy,by,fy,gy,yy,$y,xy,wy,ky,Cy,Sy,_y,Ly,Ey,zy,My,Ty,Py,Iy,Wy,Dy;cy.styles=i`@media (forced-colors: active) { :host { --m3e-progress-indicator-color: CanvasText; --m3e-progress-indicator-track-color: Canvas; } }`,t([m({type:Number,reflect:!0})],cy.prototype,"value",void 0),t([m({type:Number})],cy.prototype,"max",void 0),t([m({reflect:!0})],cy.prototype,"variant",void 0);let Ay=Dy=class extends cy{constructor(){super(...arguments),dy.add(this),hy.set(this,"m3e-circular-progress-mask-"+Dy.__nextMaskId++),my.set(this,0),py.set(this,0),uy.set(this,0),vy.set(this,0),by.set(this,void 0),fy.set(this,void 0),gy.set(this,new A(this,{skipInitial:!0,target:null,callback:()=>{e(this,dy,"m",Sy).call(this),e(this,dy,"m",_y).call(this),queueMicrotask(()=>this.requestUpdate())}})),yy.set(this,new xe(this,(t,a)=>e(this,dy,"m",Ly).call(this,a))),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&(this.ariaValueNow=this.indeterminate?null:`${this.value}`)}reconnectedCallback(){super.reconnectedCallback(),e(this,dy,"m",$y).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,dy,"m",$y).call(this)}updated(t){super.updated(t),t.has("indeterminate")&&(a(this,by,this.shadowRoot?.querySelector(".spinner.active-track"),"f"),a(this,fy,this.shadowRoot?.querySelector(".spinner.track"),"f"),this.indeterminate?e(this,yy,"f").start():e(this,yy,"f").stop())}render(){return"wavy"===this.variant?e(this,dy,"m",wy).call(this):e(this,dy,"m",xy).call(this)}};var Hy,Oy,By,Fy,Vy,qy,Ry,Uy,Ny,jy,Yy,Ky,Zy;hy=new WeakMap,my=new WeakMap,py=new WeakMap,uy=new WeakMap,vy=new WeakMap,by=new WeakMap,fy=new WeakMap,gy=new WeakMap,yy=new WeakMap,dy=new WeakSet,$y=function(){const t=this.shadowRoot?.querySelector(".diameter-and-stroke");t&&(e(this,dy,"m",Sy).call(this),e(this,gy,"f").observe(t));const a=this.shadowRoot?.querySelector(".amplitude-and-wavelength");a&&(e(this,dy,"m",Sy).call(this),e(this,gy,"f").observe(a))},xy=function(){if(this.indeterminate){const t=e(this,dy,"m",Iy).call(this,{startAngle:-45,endAngle:90+e(this,py,"f")}),a=e(this,dy,"m",Iy).call(this,{startAngle:-e(this,py,"f"),endAngle:135});return s`<div class="progress" aria-hidden="true"><div class="spinner"><div class="left"><svg width="${e(this,my,"f")}" height="${e(this,my,"f")}" viewBox="${t.viewBox}" class="circle"><path class="active-track" d="${t.path}" stroke="currentColor" stroke-width="${e(this,py,"f")}" fill="none" stroke-linecap="round"/></svg></div><div class="right"><svg width="${e(this,my,"f")}" height="${e(this,my,"f")}" viewBox="${a.viewBox}" class="circle"><path class="active-track" d="${a.path}" stroke="currentColor" stroke-width="${e(this,py,"f")}" fill="none" stroke-linecap="round"/></svg></div></div></div>${e(this,dy,"m",ky).call(this)}`}const t=e(this,dy,"m",zy).call(this,2*e(this,py,"f"),e(this,my,"f"));let a=this.value/this.max*360;a>0&&(a=Math.max(0,t,a));const o=e(this,dy,"m",Iy).call(this,{gap:a<360?e(this,py,"f"):0,endAngle:a}),i=e(this,dy,"m",Iy).call(this,{gap:a>0?e(this,py,"f"):0,startAngle:a,endAngle:360});return s`<div class="progress" aria-hidden="true"><svg width="${e(this,my,"f")}" height="${e(this,my,"f")}" viewBox="${o.viewBox}">${a>0?d`<path
|
|
68
|
+
var Qg,ey,ty,ay,oy,iy,ry,sy,ny;Kg=new WeakSet,Zg=function(e){k(this,"-with-no-data",g(e.target))},Gg=function(e){k(this,"-with-loading",g(e.target)),k(this,"-with-loading-indicator",null!==this.querySelector("m3e-loading-indicator[slot='loading'], m3e-circular-progress-indicator[slot='loading']"))},Xg=function(){const e=this.querySelectorAll("m3e-option");let t,a=!1;for(let o=0;o<e.length;o++){const i=e[o];!0===i.hidden?(C(i,"-first"),C(i,"-last")):a||i.parentElement instanceof Yg?(C(i,"-first"),t&&C(t,"-last"),E(i,"-last"),t=i):(E(i,"-first"),a=!0,E(i,"-last"),t=i)}},F(i`m3e-option-panel > m3e-divider { margin-block: var(--m3e-option-panel-divider-spacing, 0.5rem); } m3e-option-panel m3e-option[hidden], m3e-option-panel m3e-optgroup[hidden] { display: none; }`),Jg.styles=[Ue.styles,i`:host { --m3e-floating-panel-container-shape: var( --m3e-option-panel-container-shape, ${v.shape.corner.large} ); --m3e-floating-panel-container-min-width: var(--m3e-option-panel-container-min-width, 7rem); --m3e-floating-panel-container-max-width: var(--m3e-option-panel-container-max-width, 17.5rem); --m3e-floating-panel-container-max-height: var(--m3e-option-panel-container-max-height, 17.5rem); --m3e-floating-panel-container-color: var( --m3e-option-panel-container-color, ${v.color.surfaceContainer} ); --m3e-floating-panel-container-elevation: var( --m3e-option-panel-container-elevation, ${v.elevation.level3} ); --m3e-floating-panel-container-padding-inline: var(--m3e-option-panel-container-padding-inline, 0.25rem); --m3e-floating-panel-container-padding-block: var(--m3e-option-panel-container-padding-block, 0.25rem); } .base { row-gap: var(--m3e-option-panel-gap, 0.125rem); --m3e-text-highlight-container-color: var( --m3e-option-panel-text-highlight-container-color, ${v.color.tertiaryContainer} ); --m3e-text-highlight-color: var( --m3e-option-panel-text-highlight-color, ${v.color.onTertiaryContainer} ); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } .no-data { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-no-data-container-height, 2.75rem); padding: var(--m3e-option-panel-no-data-container-padding, 0.75rem); color: var(--m3e-option-panel-no-data-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-no-data-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-no-data-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-no-data-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-no-data-tracking, ${v.typescale.standard.label.large.tracking} ); } .loading { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-loading-container-height, 2.75rem); padding: var(--m3e-option-panel-loading-container-padding, 0.75rem); color: var(--m3e-option-panel-loading-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-loading-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-loading-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-loading-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-loading-tracking, ${v.typescale.standard.label.large.tracking} ); } :host(:state(-no-data)) slot:not([name]), :host(:state(-loading)) slot:not([name]), :host(:state(-loading)) .no-data, :host(:not(:state(-no-data))) .no-data, :host(:not(:state(-with-no-data))) .no-data, :host(:not(:state(-loading))) .loading, :host(:not(:state(-with-loading))) .loading { display: none; } :host(:state(-no-data)) .base, :host(:state(-loading)) .base { overflow-y: hidden; } :host(:state(-with-loading-indicator)) .loading { padding: 0; justify-content: center; }`],t([m({reflect:!0})],Jg.prototype,"state",void 0),Jg=t([$("m3e-option-panel")],Jg);let ly=ny=class extends(x(f(r,"group"),"page")){constructor(){super(...arguments),Qg.add(this),ey.set(this,"m3e-paginator-page-size-label-"+ny.__nextId++),ty.set(this,(e,t,a)=>{if(a=Math.max(a,0),"all"===t)return"";if(0===a||t<=0)return`0 of ${a}`;const o=e*t;return`${o+1} - ${o<a?Math.min(o+t,a):o+t} of ${a}`}),this.disabled=!1,this.pageIndex=0,this.length=0,this.pageSize=50,this.pageSizes="5,10,25,50,100",this.hidePageSize=!1,this.showFirstLastButtons=!1,this.itemsPerPageLabel="Items per page:",this.previousPageLabel="Previous page",this.nextPageLabel="Next page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.pageSizeVariant="outlined"}get pageCount(){return this.pageSize&&"all"!==this.pageSize?Math.ceil(this.length/this.pageSize):0}get hasPreviousPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex>=1}get hasNextPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex<this.pageCount-1}firstPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex=0,e(this,Qg,"m",sy).call(this,t)}}previousPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex--,e(this,Qg,"m",sy).call(this,t)}}nextPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex++,e(this,Qg,"m",sy).call(this,t)}}lastPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex=this.pageCount-1,e(this,Qg,"m",sy).call(this,t)}}willUpdate(t){if(super.willUpdate(t),t.has("pageIndex")){const t=e(this,Qg,"m",oy).call(this);t.includes(this.pageSize)||(this.pageSizes=[...t,this.pageSize].join(","),this.pageSizes=e(this,Qg,"m",oy).call(this).join(","))}}render(){return s`<div class="outer"><div class="inner">${e(this,Qg,"m",ay).call(this)} ${e(this,Qg,"m",iy).call(this)}</div></div>`}};ey=new WeakMap,ty=new WeakMap,Qg=new WeakSet,ay=function(){const t=e(this,Qg,"m",oy).call(this);return this.hidePageSize?n:s`<div id="${e(this,ey,"f")}" class="items-per-page-label" aria-live="polite">${this.itemsPerPageLabel}</div><m3e-form-field class="form-field" variant="${this.pageSizeVariant}" hide-subscript="always"><m3e-select class="select" aria-labelledby="${e(this,ey,"f")}" hide-selection-indicator ?disabled="${this.disabled||t.length<=1}" @change="${e(this,Qg,"m",ry)}">${t.map(e=>s`<m3e-option value="${e}" ?selected="${e===this.pageSize}">${"all"===e?"All":e}</m3e-option>`)}</m3e-select></m3e-form-field>`},oy=function(){const e=this.pageSizes.split(",").map(e=>e.trim()).filter(e=>""!==e).map(e=>"all"===e?e:Number(e)),t=e.filter(e=>"all"!==e);return t.sort((e,t)=>e-t),e.some(e=>"all"===e)?[...t,"all"]:t},iy=function(){const t=this.rangeLabelFormatter??e(this,ty,"f");return"all"===this.pageSize?n:s`<div class="range-actions"><div class="range-label">${t(this.pageIndex,this.pageSize,this.length)}</div>${this.showFirstLastButtons?s`<m3e-icon-button id="firstPageButton" aria-label="${this.firstPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.firstPage}"><slot name="first-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M240-240v-480h80v480h-80Zm440 0L440-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="firstPageButton" position="above">${this.firstPageLabel}</m3e-tooltip>`:n}<m3e-icon-button id="previousPageButton" aria-label="${this.previousPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.previousPage}"><slot name="previous-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="previousPageButton" position="above">${this.previousPageLabel}</m3e-tooltip><m3e-icon-button id="nextPageButton" aria-label="${this.nextPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.nextPage}"><slot name="next-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="nextPageButton" position="above">${this.nextPageLabel}</m3e-tooltip>${this.showFirstLastButtons?s`<m3e-icon-button id="lastPageButton" aria-label="${this.lastPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.lastPage}"><slot name="last-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m280-240-56-56 184-184-184-184 56-56 240 240-240 240Zm360 0v-480h80v480h-80Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="lastPageButton" position="above">${this.lastPageLabel}</m3e-tooltip>`:n}</div>`},ry=function(t){const a=t.target?.selected[0];if(!a)return;const o="all"===a.value?"all":Number(a.value);if(o!==this.pageSize){const t=this.pageIndex;this.pageIndex=0,this.pageSize=o,e(this,Qg,"m",sy).call(this,t)}},sy=function(e){this.dispatchEvent(new CustomEvent("page",{detail:{previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length}}))},ly.styles=i`:host { display: block; } .outer { display: flex; font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .inner { display: flex; align-items: center; justify-content: flex-end; padding-inline: 0.5rem; width: 100%; } .form-field { --md-sys-density-scale: -2; --m3e-form-field-font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); --m3e-form-field-font-weight: var( --m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight} ); --m3e-form-field-line-height: var( --m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight} ); --m3e-form-field-tracking: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .items-per-page-label { display: flex; align-items: center; margin-inline-end: 0.5rem; } .form-field { min-width: auto; width: 6rem; margin-inline: 0.25rem; } .range-label { margin-inline: 1.5rem 2rem; } :host([hide-page-size]) .range-label { margin-inline-start: unset; } .range-actions { display: flex; align-items: center; } ::slotted([slot="first-page-icon"]), ::slotted([slot="previous-page-icon"]), ::slotted([slot="next-page-icon"]), ::slotted([slot="last-page-icon"]), svg { width: 1em; font-size: var(--m3e-icon-button-medium-icon-size, 1.5rem) !important; } :host(:dir(rtl)) svg { transform: rotate(180deg); }`,ly.__nextId=0,t([m({type:Boolean,reflect:!0})],ly.prototype,"disabled",void 0),t([m({attribute:"page-index",type:Number})],ly.prototype,"pageIndex",void 0),t([m({type:Number})],ly.prototype,"length",void 0),t([m({attribute:"page-size",converter:e=>"all"===e?"all":Number(e)})],ly.prototype,"pageSize",void 0),t([m({attribute:"page-sizes"})],ly.prototype,"pageSizes",void 0),t([m({attribute:"hide-page-size",type:Boolean,reflect:!0})],ly.prototype,"hidePageSize",void 0),t([m({attribute:"show-first-last-buttons",type:Boolean})],ly.prototype,"showFirstLastButtons",void 0),t([m({attribute:"items-per-page-label"})],ly.prototype,"itemsPerPageLabel",void 0),t([m({attribute:"previous-page-label"})],ly.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],ly.prototype,"nextPageLabel",void 0),t([m({attribute:"first-page-label"})],ly.prototype,"firstPageLabel",void 0),t([m({attribute:"last-page-label"})],ly.prototype,"lastPageLabel",void 0),t([m({attribute:"page-size-variant"})],ly.prototype,"pageSizeVariant",void 0),ly=ny=t([$("m3e-paginator")],ly);class cy extends(M(P(f(r,"progressbar"),!0))){constructor(){super(...arguments),this.value=0,this.max=100,this.variant="flat"}connectedCallback(){super.connectedCallback(),this.ariaValueMin="0"}update(e){super.update(e),e.has("value")&&(this.ariaValueNow=`${this.value}`),e.has("max")&&(this.ariaValueMax=`${this.max}`)}}var dy,hy,my,py,uy,vy,by,fy,gy,yy,$y,xy,wy,ky,Cy,Sy,_y,Ly,Ey,zy,My,Ty,Py,Iy,Wy,Dy;cy.styles=i`@media (forced-colors: active) { :host { --m3e-progress-indicator-color: CanvasText; --m3e-progress-indicator-track-color: Canvas; } }`,t([m({type:Number,reflect:!0})],cy.prototype,"value",void 0),t([m({type:Number})],cy.prototype,"max",void 0),t([m({reflect:!0})],cy.prototype,"variant",void 0);let Ay=Dy=class extends cy{constructor(){super(...arguments),dy.add(this),hy.set(this,"m3e-circular-progress-mask-"+Dy.__nextMaskId++),my.set(this,0),py.set(this,0),uy.set(this,0),vy.set(this,0),by.set(this,void 0),fy.set(this,void 0),gy.set(this,new A(this,{skipInitial:!0,target:null,callback:()=>{e(this,dy,"m",Sy).call(this),e(this,dy,"m",_y).call(this),queueMicrotask(()=>this.requestUpdate())}})),yy.set(this,new xe(this,(t,a)=>e(this,dy,"m",Ly).call(this,a))),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&(this.ariaValueNow=this.indeterminate?null:`${this.value}`)}reconnectedCallback(){super.reconnectedCallback(),e(this,dy,"m",$y).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,dy,"m",$y).call(this)}updated(t){super.updated(t),t.has("indeterminate")&&(a(this,by,this.shadowRoot?.querySelector(".spinner.active-track"),"f"),a(this,fy,this.shadowRoot?.querySelector(".spinner.track"),"f"),this.indeterminate?e(this,yy,"f").start():e(this,yy,"f").stop())}render(){return"wavy"===this.variant?e(this,dy,"m",wy).call(this):e(this,dy,"m",xy).call(this)}};var Hy,Oy,By,Fy,qy,Vy,Ry,Uy,Ny,jy,Yy,Ky,Zy;hy=new WeakMap,my=new WeakMap,py=new WeakMap,uy=new WeakMap,vy=new WeakMap,by=new WeakMap,fy=new WeakMap,gy=new WeakMap,yy=new WeakMap,dy=new WeakSet,$y=function(){const t=this.shadowRoot?.querySelector(".diameter-and-stroke");t&&(e(this,dy,"m",Sy).call(this),e(this,gy,"f").observe(t));const a=this.shadowRoot?.querySelector(".amplitude-and-wavelength");a&&(e(this,dy,"m",Sy).call(this),e(this,gy,"f").observe(a))},xy=function(){if(this.indeterminate){const t=e(this,dy,"m",Iy).call(this,{startAngle:-45,endAngle:90+e(this,py,"f")}),a=e(this,dy,"m",Iy).call(this,{startAngle:-e(this,py,"f"),endAngle:135});return s`<div class="progress" aria-hidden="true"><div class="spinner"><div class="left"><svg width="${e(this,my,"f")}" height="${e(this,my,"f")}" viewBox="${t.viewBox}" class="circle"><path class="active-track" d="${t.path}" stroke="currentColor" stroke-width="${e(this,py,"f")}" fill="none" stroke-linecap="round"/></svg></div><div class="right"><svg width="${e(this,my,"f")}" height="${e(this,my,"f")}" viewBox="${a.viewBox}" class="circle"><path class="active-track" d="${a.path}" stroke="currentColor" stroke-width="${e(this,py,"f")}" fill="none" stroke-linecap="round"/></svg></div></div></div>${e(this,dy,"m",ky).call(this)}`}const t=e(this,dy,"m",zy).call(this,2*e(this,py,"f"),e(this,my,"f"));let a=this.value/this.max*360;a>0&&(a=Math.max(0,t,a));const o=e(this,dy,"m",Iy).call(this,{gap:a<360?e(this,py,"f"):0,endAngle:a}),i=e(this,dy,"m",Iy).call(this,{gap:a>0?e(this,py,"f"):0,startAngle:a,endAngle:360});return s`<div class="progress" aria-hidden="true"><svg width="${e(this,my,"f")}" height="${e(this,my,"f")}" viewBox="${o.viewBox}">${a>0?d`<path
|
|
69
69
|
class="active-track"
|
|
70
70
|
d="${o.path}"
|
|
71
71
|
stroke="currentColor"
|
|
@@ -107,7 +107,7 @@ var Qg,ey,ty,ay,oy,iy,ry,sy,ny;Kg=new WeakSet,Zg=function(e){k(this,"-with-no-da
|
|
|
107
107
|
stroke-width=${e(this,py,"f")}
|
|
108
108
|
fill="none"
|
|
109
109
|
stroke-linecap="round"
|
|
110
|
-
/>`:n}</svg> ${e(this,dy,"m",ky).call(this)}${e(this,dy,"m",Cy).call(this)}`},ky=function(){return s`<div class="diameter-and-stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},Cy=function(){return s`<div class="content" aria-hidden="true"><slot></slot></div>`},Sy=function(){const e=this.shadowRoot?.querySelector(".diameter-and-stroke");e&&(a(this,my,e.clientWidth,"f"),a(this,py,e.clientHeight,"f"))},_y=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,uy,e.clientWidth,"f"),a(this,vy,e.clientHeight,"f"))},Ly=function(t){if(0===e(this,uy,"f")||0===e(this,vy,"f"))return;const a=e(this,dy,"m",Ey).call(this,t);e(this,by,"f")?.setAttribute("d",e(this,dy,"m",Wy).call(this,{endAngle:a}).path),e(this,fy,"f")?.setAttribute("d",e(this,dy,"m",Iy).call(this,{gap:e(this,dy,"m",zy).call(this,e(this,py,"f"),e(this,my,"f")),startAngle:a}).path)},Ey=function(t){const a=2*e(this,dy,"m",zy).call(this,e(this,py,"f")),o=18+a,i=280-a,r=1.575,s=t%6.3;if(s<r)return o;if(s<3.15){const e=(s-r)/r;return o+e*e*(3-2*e)*(i-o)}if(s<4.725)return i;const n=(s-4.725)/r;return i-n*n*(3-2*n)*(i-o)},zy=function(t,a=e(this,uy,"f")){return t*(360/(2*Math.PI*e(this,dy,"m",Py).call(this,a).r))},My=function(e){return(e-90)*(Math.PI/180)},Ty=function(t,a){const o=e(this,dy,"m",My).call(this,a);return{x:t.cx+t.r*Math.cos(o),y:t.cy+t.r*Math.sin(o)}},Py=function(t){t+=e(this,py,"f")/2;const a=e(this,my,"f")/2;return{cx:a+t,cy:a+t,r:a,padding:t}},Iy=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,uy,"f")}){if(0===e(this,my,"f")||0===e(this,py,"f"))return{path:"",viewBox:"0 0 0 0"};const r=e(this,dy,"m",Py).call(this,i);o>0&&(t+=e(this,dy,"m",zy).call(this,o,i),a-=e(this,dy,"m",zy).call(this,o,i)),a-t>=360&&(a=t+359.999);const s=e(this,dy,"m",Ty).call(this,r,a),n=e(this,dy,"m",Ty).call(this,r,t);return{path:`M ${s.x} ${s.y} A ${r.r} ${r.r} 0 ${a-t<=180?"0":"1"} 0 ${n.x} ${n.y}`,viewBox:`0 0 ${e(this,my,"f")+2*r.padding} ${e(this,my,"f")+2*r.padding}`}},Wy=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,uy,"f"),amplitude:r=e(this,uy,"f"),steps:s=200}){if(0===e(this,my,"f")||0===e(this,py,"f"))return{path:"",viewBox:"0 0 0 0"};const n=e(this,dy,"m",Py).call(this,i);o>0&&(t+=e(this,dy,"m",zy).call(this,o,i),a-=e(this,dy,"m",zy).call(this,o,i));const l=e(this,dy,"m",My).call(this,t);let c=e(this,dy,"m",My).call(this,a);t===a?c=l:c<l&&(c+=2*Math.PI);const d=c-l,h=2*Math.PI*n.r/e(this,vy,"f"),m=Math.PI/2*(h-1),p=[];for(let e=0;e<=s;e++){const t=l+(0===s?0:e/s)*d,a=Math.sin(t*h+m),o=n.r-r*a,i=o*Math.cos(t)+n.cx,c=o*Math.sin(t)+n.cy;p.push([i,c])}return{path:1===p.length?`M ${p[0][0]},${p[0][1]}`:`M ${p[0][0]},${p[0][1]} `+p.slice(1).map(([e,t])=>`L ${e},${t}`).join(" "),viewBox:`0 0 ${e(this,my,"f")+2*n.padding} ${e(this,my,"f")+2*n.padding}`}},Ay.styles=[cy.styles,i`:host { display: inline-flex; vertical-align: middle; aspect-ratio: 1; position: relative; align-items: center; justify-content: center; } .progress { --_arc-duration: 1333ms; --_cycle-duration: calc(4 * var(--_arc-duration)); --_linear-rotate-duration: calc(var(--_arc-duration) * 360 / 306); --_indeterminate-easing: cubic-bezier(0.4, 0, 0.2, 1); } .active-track { transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1); } :host([variant="flat"]) .progress { flex: 1; align-self: stretch; pointer-events: none; } .progress, .spinner, .left, .right, .content, .circle { position: absolute; inset: 0; } .content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .diameter-and-stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .diameter-and-stroke { width: inherit; height: var(--m3e-circular-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { width: var(--m3e-circular-wavy-progress-indicator-amplitude, 0.1rem); height: var(--m3e-circular-wavy-progress-indicator-wavelength, 0.9375rem); } :host([variant="flat"]) { width: var(--m3e-circular-flat-progress-indicator-diameter, 2.5rem); } :host([variant="wavy"]) { width: var(--m3e-circular-wavy-progress-indicator-diameter, 3rem); } :host([variant="flat"][indeterminate]) .progress { animation: linear infinite linear-rotate; animation-duration: var(--_linear-rotate-duration); } :host([variant="flat"][indeterminate]) .spinner { animation: infinite both rotate-arc; animation-duration: var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } :host([variant="wavy"][indeterminate]) .spinner { transform-origin: 50% 50%; animation: wavy-spin ${1.575}s linear infinite; } .left { clip-path: inset(0); inset: 0 50% 0 0; } .right { clip-path: inset(0); inset: 0 0 0 50%; } .circle { animation: expand-arc; animation-iteration-count: infinite; animation-fill-mode: both; animation-duration: var(--_arc-duration), var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } .left .circle { rotate: 135deg; inset: 0 -100% 0 0; } .right .circle { rotate: 100deg; inset: 0 0 0 -100%; animation-delay: calc(-0.5 * var(--_arc-duration)), 0ms; } .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } .active-track { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } .wave { animation: spin-reverse 8s linear infinite; transform-origin: 50% 50%; } @keyframes expand-arc { 0% { transform: rotate(265deg); } 50% { transform: rotate(130deg); } 100% { transform: rotate(265deg); } } @keyframes rotate-arc { 12.5% { transform: rotate(135deg); } 25% { transform: rotate(270deg); } 37.5% { transform: rotate(405deg); } 50% { transform: rotate(540deg); } 62.5% { transform: rotate(675deg); } 75% { transform: rotate(810deg); } 87.5% { transform: rotate(945deg); } 100% { transform: rotate(1080deg); } } @keyframes linear-rotate { to { transform: rotate(360deg); } } @keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes wavy-spin { 0% { transform: rotate(0deg); } 10% { transform: rotate(90deg); } 100% { transform: rotate(360deg); } } @media (forced-colors: active) { :host([variant="flat"]) circle { fill: Canvas; } :host([variant="flat"]) .circle { border-color: var(--m3e-progress-indicator-color, ${v.color.primary}) var(--m3e-progress-indicator-color, ${v.color.primary}) Canvas Canvas; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],Ay.__nextMaskId=0,t([m({type:Boolean,reflect:!0})],Ay.prototype,"indeterminate",void 0),Ay=Dy=t([$("m3e-circular-progress-indicator")],Ay);let Gy=Zy=class extends cy{constructor(){super(...arguments),Hy.add(this),Oy.set(this,"m3e-linear-progress-mask-"+Zy.__nextMaskId++),By.set(this,0),Fy.set(this,0),
|
|
110
|
+
/>`:n}</svg> ${e(this,dy,"m",ky).call(this)}${e(this,dy,"m",Cy).call(this)}`},ky=function(){return s`<div class="diameter-and-stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},Cy=function(){return s`<div class="content" aria-hidden="true"><slot></slot></div>`},Sy=function(){const e=this.shadowRoot?.querySelector(".diameter-and-stroke");e&&(a(this,my,e.clientWidth,"f"),a(this,py,e.clientHeight,"f"))},_y=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,uy,e.clientWidth,"f"),a(this,vy,e.clientHeight,"f"))},Ly=function(t){if(0===e(this,uy,"f")||0===e(this,vy,"f"))return;const a=e(this,dy,"m",Ey).call(this,t);e(this,by,"f")?.setAttribute("d",e(this,dy,"m",Wy).call(this,{endAngle:a}).path),e(this,fy,"f")?.setAttribute("d",e(this,dy,"m",Iy).call(this,{gap:e(this,dy,"m",zy).call(this,e(this,py,"f"),e(this,my,"f")),startAngle:a}).path)},Ey=function(t){const a=2*e(this,dy,"m",zy).call(this,e(this,py,"f")),o=18+a,i=280-a,r=1.575,s=t%6.3;if(s<r)return o;if(s<3.15){const e=(s-r)/r;return o+e*e*(3-2*e)*(i-o)}if(s<4.725)return i;const n=(s-4.725)/r;return i-n*n*(3-2*n)*(i-o)},zy=function(t,a=e(this,uy,"f")){return t*(360/(2*Math.PI*e(this,dy,"m",Py).call(this,a).r))},My=function(e){return(e-90)*(Math.PI/180)},Ty=function(t,a){const o=e(this,dy,"m",My).call(this,a);return{x:t.cx+t.r*Math.cos(o),y:t.cy+t.r*Math.sin(o)}},Py=function(t){t+=e(this,py,"f")/2;const a=e(this,my,"f")/2;return{cx:a+t,cy:a+t,r:a,padding:t}},Iy=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,uy,"f")}){if(0===e(this,my,"f")||0===e(this,py,"f"))return{path:"",viewBox:"0 0 0 0"};const r=e(this,dy,"m",Py).call(this,i);o>0&&(t+=e(this,dy,"m",zy).call(this,o,i),a-=e(this,dy,"m",zy).call(this,o,i)),a-t>=360&&(a=t+359.999);const s=e(this,dy,"m",Ty).call(this,r,a),n=e(this,dy,"m",Ty).call(this,r,t);return{path:`M ${s.x} ${s.y} A ${r.r} ${r.r} 0 ${a-t<=180?"0":"1"} 0 ${n.x} ${n.y}`,viewBox:`0 0 ${e(this,my,"f")+2*r.padding} ${e(this,my,"f")+2*r.padding}`}},Wy=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,uy,"f"),amplitude:r=e(this,uy,"f"),steps:s=200}){if(0===e(this,my,"f")||0===e(this,py,"f"))return{path:"",viewBox:"0 0 0 0"};const n=e(this,dy,"m",Py).call(this,i);o>0&&(t+=e(this,dy,"m",zy).call(this,o,i),a-=e(this,dy,"m",zy).call(this,o,i));const l=e(this,dy,"m",My).call(this,t);let c=e(this,dy,"m",My).call(this,a);t===a?c=l:c<l&&(c+=2*Math.PI);const d=c-l,h=2*Math.PI*n.r/e(this,vy,"f"),m=Math.PI/2*(h-1),p=[];for(let e=0;e<=s;e++){const t=l+(0===s?0:e/s)*d,a=Math.sin(t*h+m),o=n.r-r*a,i=o*Math.cos(t)+n.cx,c=o*Math.sin(t)+n.cy;p.push([i,c])}return{path:1===p.length?`M ${p[0][0]},${p[0][1]}`:`M ${p[0][0]},${p[0][1]} `+p.slice(1).map(([e,t])=>`L ${e},${t}`).join(" "),viewBox:`0 0 ${e(this,my,"f")+2*n.padding} ${e(this,my,"f")+2*n.padding}`}},Ay.styles=[cy.styles,i`:host { display: inline-flex; vertical-align: middle; aspect-ratio: 1; position: relative; align-items: center; justify-content: center; } .progress { --_arc-duration: 1333ms; --_cycle-duration: calc(4 * var(--_arc-duration)); --_linear-rotate-duration: calc(var(--_arc-duration) * 360 / 306); --_indeterminate-easing: cubic-bezier(0.4, 0, 0.2, 1); } .active-track { transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1); } :host([variant="flat"]) .progress { flex: 1; align-self: stretch; pointer-events: none; } .progress, .spinner, .left, .right, .content, .circle { position: absolute; inset: 0; } .content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .diameter-and-stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .diameter-and-stroke { width: inherit; height: var(--m3e-circular-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { width: var(--m3e-circular-wavy-progress-indicator-amplitude, 0.1rem); height: var(--m3e-circular-wavy-progress-indicator-wavelength, 0.9375rem); } :host([variant="flat"]) { width: var(--m3e-circular-flat-progress-indicator-diameter, 2.5rem); } :host([variant="wavy"]) { width: var(--m3e-circular-wavy-progress-indicator-diameter, 3rem); } :host([variant="flat"][indeterminate]) .progress { animation: linear infinite linear-rotate; animation-duration: var(--_linear-rotate-duration); } :host([variant="flat"][indeterminate]) .spinner { animation: infinite both rotate-arc; animation-duration: var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } :host([variant="wavy"][indeterminate]) .spinner { transform-origin: 50% 50%; animation: wavy-spin ${1.575}s linear infinite; } .left { clip-path: inset(0); inset: 0 50% 0 0; } .right { clip-path: inset(0); inset: 0 0 0 50%; } .circle { animation: expand-arc; animation-iteration-count: infinite; animation-fill-mode: both; animation-duration: var(--_arc-duration), var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } .left .circle { rotate: 135deg; inset: 0 -100% 0 0; } .right .circle { rotate: 100deg; inset: 0 0 0 -100%; animation-delay: calc(-0.5 * var(--_arc-duration)), 0ms; } .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } .active-track { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } .wave { animation: spin-reverse 8s linear infinite; transform-origin: 50% 50%; } @keyframes expand-arc { 0% { transform: rotate(265deg); } 50% { transform: rotate(130deg); } 100% { transform: rotate(265deg); } } @keyframes rotate-arc { 12.5% { transform: rotate(135deg); } 25% { transform: rotate(270deg); } 37.5% { transform: rotate(405deg); } 50% { transform: rotate(540deg); } 62.5% { transform: rotate(675deg); } 75% { transform: rotate(810deg); } 87.5% { transform: rotate(945deg); } 100% { transform: rotate(1080deg); } } @keyframes linear-rotate { to { transform: rotate(360deg); } } @keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes wavy-spin { 0% { transform: rotate(0deg); } 10% { transform: rotate(90deg); } 100% { transform: rotate(360deg); } } @media (forced-colors: active) { :host([variant="flat"]) circle { fill: Canvas; } :host([variant="flat"]) .circle { border-color: var(--m3e-progress-indicator-color, ${v.color.primary}) var(--m3e-progress-indicator-color, ${v.color.primary}) Canvas Canvas; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],Ay.__nextMaskId=0,t([m({type:Boolean,reflect:!0})],Ay.prototype,"indeterminate",void 0),Ay=Dy=t([$("m3e-circular-progress-indicator")],Ay);let Gy=Zy=class extends cy{constructor(){super(...arguments),Hy.add(this),Oy.set(this,"m3e-linear-progress-mask-"+Zy.__nextMaskId++),By.set(this,0),Fy.set(this,0),qy.set(this,0),Vy.set(this,new A(this,{skipInitial:!0,target:null,callback:()=>{e(this,Hy,"m",jy).call(this),e(this,Hy,"m",Yy).call(this),queueMicrotask(()=>this.requestUpdate())}})),this.mode="determinate",this.bufferValue=0}reconnectedCallback(){super.reconnectedCallback(),e(this,Hy,"m",Ry).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Hy,"m",Ry).call(this)}update(e){super.update(e),e.has("mode")&&(this.ariaValueNow="indeterminate"===this.mode||"query"===this.mode?null:`${this.value}`)}updated(e){if(super.updated(e),e.has("value")||e.has("bufferValue")||e.has("max")){const e=this.shadowRoot?.querySelector(".progress");e?.style.setProperty("--_value",this.value/this.max*100+"%"),e?.style.setProperty("--_buffer-value",this.bufferValue/this.max*100+"%")}}render(){const t=Math.max(0,Math.min(this.value,this.max))/this.max*this.clientWidth,a="indeterminate"===this.mode||"query"===this.mode?this.clientWidth:t+3*e(this,qy,"f"),o="wavy"===this.variant&&e(this,By,"f")>0&&e(this,Fy,"f")>0&&e(this,qy,"f")>0?e(this,Hy,"m",Ky).call(this,a):void 0;return s`<div class="progress" aria-hidden="true" style="${ke({"--_translate-x":`-${t}px`})}">${o?n:s`<div class="track"></div>`} ${("determinate"===this.mode||"buffer"===this.mode)&&this.value<=0?n:s`<div class="primary">${!o||"determinate"!==this.mode&&"buffer"!==this.mode?n:e(this,Hy,"m",Uy).call(this,a,o.height,o.viewBox,o.path)}</div>${"determinate"===this.mode||"buffer"===this.mode?s`<div class="gap"></div>`:n}`} ${"buffer"!==this.mode||this.bufferValue>0?s`<div class="secondary"></div>`:n} ${"buffer"===this.mode&&this.bufferValue>0?s`<div class="gap"></div>`:n} ${"buffer"===this.mode?s`<div class="buffer"></div>`:n} ${("determinate"===this.mode||"buffer"===this.mode)&&this.value>0?s`<div class="gap"></div><div class="stop"></div>`:n} ${o&&"determinate"!==this.mode&&"buffer"!==this.mode?e(this,Hy,"m",Uy).call(this,a,o.height,o.viewBox,o.path):n}</div>${e(this,Hy,"m",Ny).call(this)}`}};var Xy,Jy,Qy,e$,t$,a$,o$;Oy=new WeakMap,By=new WeakMap,Fy=new WeakMap,qy=new WeakMap,Vy=new WeakMap,Hy=new WeakSet,Ry=function(){e(this,Hy,"m",jy).call(this),e(this,Hy,"m",Yy).call(this);const t=this.shadowRoot?.querySelector(".stroke");t&&e(this,Vy,"f").observe(t);const a=this.shadowRoot?.querySelector(".amplitude-and-wavelength");a&&e(this,Vy,"f").observe(a)},Uy=function(t,a,o,i){const r="indeterminate"===this.mode||"query"===this.mode;return r||this.value/this.max!==1?s`<svg class="wave" width="${t}" height="${a}" viewBox="${o}" preserveAspectRatio="none">${r?d`
|
|
111
111
|
<mask id="${e(this,Oy,"f")}" maskUnits="userSpaceOnUse">
|
|
112
112
|
<rect width="${t}" height="${a}" fill="black" />
|
|
113
113
|
<rect class="primary" height="${a}" fill="white" />
|
|
@@ -123,7 +123,7 @@ var Qg,ey,ty,ay,oy,iy,ry,sy,ny;Kg=new WeakSet,Zg=function(e){k(this,"-with-no-da
|
|
|
123
123
|
</g>
|
|
124
124
|
<g mask="${we(`${e(this,Oy,"f")}-inverse`)}">
|
|
125
125
|
<rect class="track" width="100%" height="${e(this,By,"f")}" fill="currentColor" />
|
|
126
|
-
</g>`:d`<path d="${i}" stroke="currentColor" stroke-width=${e(this,By,"f")} fill="none" stroke-linecap="round" />`}</svg>`:s`<div class="complete"></div>`},Ny=function(){return s`<div class="stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},jy=function(){const e=this.shadowRoot?.querySelector(".stroke");e&&a(this,By,e.clientHeight,"f")},Yy=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,Fy,e.clientHeight,"f"),a(this,Vy,e.clientWidth,"f"))},Ky=function(t,a=0){const o=e(this,Fy,"f")+e(this,By,"f")/2,i=o,r=[],s=e(this,Vy,"f")/2;let n=0;for(r.push(`M ${n},${i}`);n<=t;){const t=n+s,l=i+o*Math.sin(2*Math.PI*t/e(this,Vy,"f")+a),c=n+s/2,d=i+o*Math.sin(2*Math.PI*(n+s/2)/e(this,Vy,"f")+a);r.push(`Q ${c},${d} ${t},${l}`),n+=s}const l=`0 -1 ${t} ${2*o+2}`;return{path:r.join(" "),viewBox:l,height:e(this,By,"f")+2*e(this,Fy,"f"),padding:1}},Gy.styles=[cy.styles,i`:host { display: block; position: relative; } .progress { width: 100%; height: 100%; position: relative; align-items: center; border-radius: var(--m3e-linear-progress-indicator-shape, ${v.shape.corner.extraSmall}); } .stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .stroke { width: 100%; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { height: var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem); width: var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem); } :host([mode="indeterminate"]) .amplitude-and-wavelength, :host([mode="query"]) .amplitude-and-wavelength { width: var(--m3e-linear-wavy-indeterminate-progress-indicator-wavelength, 1.5rem); } .primary, .secondary, .stop { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } .stop { aspect-ratio: 1; flex: none; } :host([variant="flat"]) { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } :host([variant="wavy"]) { height: calc( var(--m3e-linear-progress-indicator-thickness, 0.25rem) + calc(var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem) * 2) ); } :host([variant="wavy"]) .primary, :host([variant="wavy"]) .secondary { position: relative; height: 100%; overflow: hidden; } :host([variant="wavy"]) .complete { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } :host([variant="wavy"]) .secondary { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .wave { position: absolute; display: block; } .primary .wave, .secondary .wave { margin-inline-start: calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem)); } :host([variant="wavy"][mode="determinate"]) .primary path, :host([variant="wavy"][mode="buffer"]) .primary path { animation: wave-slide 1.5s linear infinite; } @keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem))); } } :host([mode="determinate"]) .progress, :host([mode="buffer"]) .progress { display: flex; overflow: hidden; } :host([mode="determinate"]) .primary, :host([mode="buffer"]) .primary { width: var(--_value, 0px); flex: none; } :host([mode="determinate"]) .gap, :host([mode="buffer"]) .gap { flex-basis: var(--m3e-linear-progress-indicator-thickness, 0.25rem); flex-shrink: 1; } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .buffer { flex: 1 1 auto; } :host([mode="buffer"]) .buffer { flex-shrink: 5; height: 100%; width: 100%; background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); mask-image: radial-gradient( circle, black 0, black calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2), transparent calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2) ); mask-size: calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2) 100%; mask-repeat: repeat; animation: buffer 250ms linear infinite; } :host(:dir(rtl)[mode="buffer"]) .buffer { transform: scaleX(-1); } @keyframes buffer { from { mask-position: 0 0; } to { mask-position: calc(-1 * calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2)) 0; } } :host([mode="buffer"]) .secondary { width: var(--_buffer-value, 0px); flex: none; } :host([mode="indeterminate"]) .primary, :host([mode="query"]) .primary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-primary 2.1s infinite linear; } :host([variant="wavy"][mode="indeterminate"]) .primary, :host([variant="wavy"][mode="query"]) .primary { animation-name: wavy-indeterminate-primary; } :host([mode="indeterminate"]) .secondary, :host([mode="query"]) .secondary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-secondary 2.1s infinite linear; animation-delay: 1.15s; animation-fill-mode: backwards; } :host([variant="wavy"][mode="indeterminate"]) .secondary, :host([variant="wavy"][mode="query"]) .secondary { animation-name: wavy-indeterminate-secondary; } :host([mode="indeterminate"]) .progress, :host([mode="query"]) .progress { overflow: hidden; position: relative; } :host(:not(:dir(rtl))[mode="query"]) .progress, :host(:dir(rtl)[mode="indeterminate"]) .progress { transform: scaleX(-1); } :host([variant="flat"]) .primary, :host([variant="flat"][mode="indeterminate"]) .secondary, :host([variant="flat"][mode="query"]) .secondary, :host([variant="wavy"]) .complete, .stop { background-color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([variant="wavy"]) .progress { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .secondary, :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { y: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); border-radius: inherit; } :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } @keyframes indeterminate-primary { 0% { left: -145.167%; width: 8%; } 20% { left: -113.333%; width: 48%; } 60% { left: 56.333%; width: 78%; } 100% { left: 100%; width: 8%; } } @keyframes indeterminate-secondary { 0% { left: -54.888%; width: 8%; } 20% { left: -20%; width: 48%; } 60% { left: 60%; width: 78%; } 100% { left: 160%; width: 8%; } } @keyframes wavy-indeterminate-primary { 0% { transform: translateX(-145.167%); width: 8%; } 20% { transform: translateX(-113.333%); width: 48%; } 60% { transform: translateX(56.333%); width: 78%; } 100% { transform: translateX(100%); width: 8%; } } @keyframes wavy-indeterminate-secondary { 0% { transform: translateX(-54.888%); width: 8%; } 20% { transform: translateX(-20%); width: 48%; } 60% { transform: translateX(60%); width: 78%; } 100% { transform: translateX(160%); width: 8%; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],Gy.__nextMaskId=0,t([m({reflect:!0})],Gy.prototype,"mode",void 0),t([m({attribute:"buffer-value",type:Number,reflect:!0})],Gy.prototype,"bufferValue",void 0),Gy=Zy=t([$("m3e-linear-progress-indicator")],Gy);let i$=class extends(Q(te(ae($e(q(N(se(Y(P(f(r,"radio"),!0)))))))))){constructor(){super(...arguments),Xy.add(this),Jy.set(this,t=>e(this,Xy,"m",a$).call(this,t)),Qy.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),e$.set(this,new Z(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Jy=new WeakMap,Qy=new WeakMap,e$=new WeakMap,Xy=new WeakSet,le)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Jy,"f"));for(const t of this.labels)e(this,Qy,"f").observe(t),e(this,e$,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Jy,"f"));for(const t of this.labels)e(this,Qy,"f").unobserve(t),e(this,e$,"f").unobserve(t)}update(t){super.update(t),t.has("checked")&&e(this,Xy,"m",o$).call(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,Xy,"m",t$).call(this)}</div></div>`}};var r$,s$,n$,l$,c$,d$,h$;t$=function(){return s`<svg viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`},a$=function(t){t.defaultPrevented||this.checked||this.disabled||(this.checked=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(e(this,Xy,"m",o$).call(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!1,this.closest("label")&&t.preventDefault())},o$=function(){const e=this.closest("m3e-radio-group");e?e[De].notifySelectionChange(this):this.name&&this.checked&&[...this.getRootNode()?.querySelectorAll(`m3e-radio[name="${this.name}"]`)??[]].filter(e=>e!==this&&e.checked).forEach(e=>e.checked=!1)},i$.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-radio-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-radio-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-radio-unselected-ripple-color, ${v.color.onSurface}); color: var(--m3e-radio-unselected-icon-color, ${v.color.onSurfaceVariant}); } :host([checked]) .base { --m3e-state-layer-hover-color: var(--m3e-radio-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-radio-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-radio-selected-ripple-color, ${v.color.primary}); color: var(--m3e-radio-selected-icon-color, ${v.color.primary}); } :host([aria-disabled="true"]) .base { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:state(-touched):state(-invalid)) .base { --m3e-state-layer-hover-color: var(--m3e-radio-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-radio-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-radio-error-ripple-color, ${v.color.error}); color: var(--m3e-radio-error-icon-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not([checked])) .base, :host([checked]) .base { --m3e-state-layer-hover-color: var(--_radio-forced-color, CanvasText); --m3e-state-layer-focus-color: var(--_radio-forced-color, CanvasText); --m3e-ripple-color: var(--_radio-forced-color, CanvasText); color: var(--_radio-forced-color, CanvasText); } :host([aria-disabled="true"]) .base { color: GrayText; } :host(:state(-touched):state(-invalid)) .base { --_radio-forced-color: Highlight; color: Highlight; } }`,t([h(".focus-ring")],i$.prototype,"_focusRing",void 0),t([h(".state-layer")],i$.prototype,"_stateLayer",void 0),t([h(".ripple")],i$.prototype,"_ripple",void 0),t([m()],i$.prototype,"value",void 0),i$=t([$("m3e-radio")],i$);let m$=class extends(Q(ee(te(ae(oe(ie(se(Y(P(f(r,"radiogroup"))))))))))){constructor(){super(...arguments),r$.add(this),s$.set(this,void 0),n$.set(this,()=>e(this,r$,"m",d$).call(this)),this[h$]=(new Ae).withWrap().withDirectionality(qe.current).onActiveItemChange(()=>{this[De].activeItem?.click()})}static get observedAttributes(){return[...super.observedAttributes,"aria-invalid"]}get radios(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems[0]??null}get value(){return this.selected?.value??null}markAsTouched(){super.markAsTouched(),this.radios.forEach(e=>e.markAsTouched())}markAsUntouched(){super.markAsUntouched(),this.radios.forEach(e=>e.markAsUntouched())}markAsDirty(){super.markAsDirty(),this.radios.forEach(e=>e.markAsDirty())}markAsPristine(){super.markAsPristine(),this.radios.forEach(e=>e.markAsPristine())}attributeChangedCallback(e,t,a){switch(super.attributeChangedCallback(e,t,a),e){case"name":this.radios.forEach(e=>e.name=this.name);break;case"aria-invalid":this.radios.forEach(e=>{k(e,"-invalid","true"===a),e[Ce]?.()})}}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",e(this,n$,"f")),a(this,s$,qe.observe(()=>this[De].directionality=qe.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",e(this,n$,"f")),e(this,s$,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(this.ariaDisabled=null),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled)}render(){return s`<slot @slotchange="${e(this,r$,"m",l$)}" @keydown="${e(this,r$,"m",c$)}" @change="${e(this,r$,"m",d$)}"></slot>`}};s$=new WeakMap,n$=new WeakMap,r$=new WeakSet,h$=De,l$=function(){const{added:e}=this[De].setItems([...this.querySelectorAll("m3e-radio")]);e.forEach(e=>e.name=e.name||this.name)},c$=function(e){this[De].onKeyDown(e)},d$=function(){this.checkValidity()},m$.styles=i`:host { display: inline-flex; }`,m$=t([$("m3e-radio-group")],m$);const p$=o(`var(--m3e-search-bar-container-color, ${v.color.surfaceContainerHigh})`),u$=o(`var(--m3e-search-bar-leading-icon-color, ${v.color.onSurface})`),v$=o(`var(--m3e-search-bar-trailing-icon-color, ${v.color.onSurfaceVariant})`),b$=o("var(--m3e-search-bar-container-height, 3.5rem)"),f$=o(`var(--m3e-search-bar-container-shape, ${v.shape.corner.full})`),g$=o("var(--m3e-search-bar-icon-size, 1.5rem)"),y$=o(`var(--m3e-search-bar-supporting-text-color, ${v.color.onSurfaceVariant})`),$$=o(`var(--m3e-search-bar-supporting-text-font-size, ${v.typescale.standard.body.large.fontSize})`),x$=o(`var(--m3e-search-bar-supporting-text-font-weight, ${v.typescale.standard.body.large.fontWeight})`),w$=o(`var(--m3e-search-bar-supporting-text-line-height, ${v.typescale.standard.body.large.lineHeight})`),k$=o(`var(--m3e-search-bar-supporting-text-tracking, ${v.typescale.standard.body.large.tracking})`),C$=o(`var(--m3e-search-bar-input-color, ${v.color.onSurface})`),S$=o(`var(--m3e-search-bar-input-text-font-size, ${v.typescale.standard.body.large.fontSize})`),_$=o(`var(--m3e-search-bar-input-text-font-weight, ${v.typescale.standard.body.large.fontWeight})`),L$=o(`var(--m3e-search-bar-input-text-line-height, ${v.typescale.standard.body.large.lineHeight})`),E$=o(`var(--m3e-search-bar-input-text-tracking, ${v.typescale.standard.body.large.tracking})`),z$=o("var(--m3e-search-bar-leading-space, 0.25rem)"),M$=o("var(--m3e-search-bar-trailing-space, 0.25rem)"),T$=o("var(--m3e-search-bar-no-actions-leading-space, 1rem)"),P$=o("var(--m3e-search-bar-no-actions-trailing-space, 1rem)"),I$=o("var(--m3e-search-bar-leading-actions-trailing-space, 0.25rem)"),W$=o("var(--m3e-search-bar-trailing-actions-leading-space, 0.25rem)"),D$=o("var(--m3e-search-bar-actions-gap, 0px)"),A$=i`m3e-search-bar input[slot="input"]::placeholder { user-select: none; color: ${y$}; font-size: ${$$}; font-weight: ${x$}; line-height: ${w$}; letter-spacing: ${k$}; }`,H$=i`:host { display: block; height: ${b$}; } .base { cursor: text; display: flex; align-items: center; box-sizing: border-box; width: 100%; height: 100%; border-radius: ${f$}; background-color: ${p$}; } .clear { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; } :host(:not(:state(-clearable))) .clear { display: none; } :host(:state(-with-leading)) slot[name="leading"], :host(:state(-with-trailing)) slot[name="trailing"] { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; padding-inline: 0.25rem; column-gap: calc(0.5rem + ${D$}); } ::slotted([slot="input"]) { flex: 1 1 auto; outline: unset; border: unset; background-color: transparent; box-shadow: none; min-width: 0; padding: unset; color: ${C$}; font-size: ${S$}; font-weight: ${_$}; line-height: ${L$}; letter-spacing: ${E$}; } :host(:state(-with-leading)) .base { padding-inline-start: ${z$}; } :host(:not(:state(-with-leading))) .base { padding-inline-start: ${T$}; } :host(:is(:state(-with-trailing), :state(-clearable))) .base { padding-inline-end: ${M$}; } :host(:not(:is(:state(-with-trailing), :state(-clearable)))) .base { padding-inline-end: ${P$}; } :host(:state(-with-leading)) ::slotted([slot="input"]) { margin-inline-start: ${I$}; } :host(:is(:state(-with-trailing), :state(-clearable))) ::slotted([slot="input"]) { margin-inline-end: ${W$}; } slot[name="leading"] { color: ${u$}; --m3e-icon-color: ${u$}; --m3e-icon-button-icon-color: ${u$}; --m3e-icon-size: ${g$}; } slot[name="trailing"], .clear { color: ${v$}; --m3e-icon-color: ${v$}; --m3e-icon-button-icon-color: ${v$}; --m3e-icon-size: ${g$}; } ::slotted(svg[slot="leading"]), ::slotted(svg[slot="trailing"]) { width: 1em; font-size: ${g$}; } ::slotted([slot="clear-icon"]), .clear-icon { width: 1em; font-size: ${g$} !important; } slot[name="clear-icon"] { --m3e-icon-size: ${g$}; } @media (forced-colors: active) { .base { border: 1px var(--_search-bar-forced-color-outline-style, solid) CanvasText; } }`,O$=o(`var(--m3e-search-view-container-color, ${v.color.surfaceContainerHigh})`),B$=o(`var(--m3e-search-view-contained-container-color, ${v.color.surfaceContainerLow})`),F$=o(`var(--m3e-search-view-divider-color, ${v.color.outline})`),V$=o("var(--m3e-search-view-divider-thickness, 1px)"),q$=o(`var(--m3e-search-view-full-screen-container-shape, ${v.shape.corner.none})`),R$=o("var(--m3e-search-view-full-screen-header-container-height, 4.5rem)"),U$=o(`var(--m3e-search-view-docked-container-shape, ${v.shape.corner.extraLarge})`),N$=o("var(--m3e-search-view-docked-header-container-height, 3.5rem)"),j$=o("var(--m3e-search-view-contained-leading-margin, 1.5rem)"),Y$=o("var(--m3e-search-view-contained-trailing-margin, 1.55rem)"),K$=o("var(--m3e-search-view-contained-focused-leading-margin, 0.75rem)"),Z$=o("var(--m3e-search-view-contained-focused-trailing-margin, 0.75rem)"),G$=o("var(--m3e-search-view-contained-docked-bar-results-gap, 2px)"),X$=(o(`var(--m3e-search-view-contained-docked-results-shape, ${v.shape.corner.medium})`),o(`var(--m3e-search-view-contained-docked-bar-shape, ${v.shape.corner.full})`),o("var(--m3e-search-view-contained-full-screen-bar-container-height, 3.5rem)")),J$=o("var(--m3e-search-view-docked-container-min-height, 240px)"),Q$=o("var(--m3e-search-view-docked-container-max-height, calc(100vh * 0.6667))"),ex=o("var(--m3e-search-view-contained-docked-results-space, 0.25rem)"),tx=o("var(--m3e-search-view-docked-results-bottom-space, 1rem)"),ax=o(`var(--m3e-search-view-docked-scrim-color, ${v.color.scrim})`),ox=o("var(--m3e-search-view-docked-scrim-opacity, 32%)"),ix=i`m3e-search-view input[slot="input"]::placeholder { user-select: none; color: ${y$}; font-size: ${$$}; font-weight: ${x$}; line-height: ${w$}; letter-spacing: ${k$}; }`,rx=i`:host { display: block; } .base { position: relative; width: 100%; } .anchor { position: absolute; width: 100%; visibility: hidden; } .view { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; outline: none; padding: unset; margin: unset; border: unset; } .header { flex: none; display: flex; align-items: center; } .bar { flex: 1 1 auto; } :host(:state(-fullscreen)) .bar { transition: ${o(`margin ${v.motion.duration.short2} ${v.motion.easing.standard}`)}; } :host(:state(-fullscreen)[contained]:not([open])) .bar { margin-inline-start: ${j$}; margin-inline-end: ${Y$}; } :host(:state(-fullscreen)[contained][open]) .bar, :host(:state(-fullscreen)[contained][open]) .results { margin-inline-start: ${K$}; margin-inline-end: ${Z$}; } .icon { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; } ::slotted([slot="search-icon"]), .search-icon, ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: ${g$} !important; } .results { overflow: hidden; flex: 1 1 auto; display: flex; flex-direction: column; } .scroll-container { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; scrollbar-color: ${v.scrollbar.color}; } .view:not(:popover-open) .results, .view.closing .results { display: none; } :host(:not(:is(:state(-clearable), [open]))) .clear { display: none; } ::slotted([slot="clear-icon"]), .clear-icon { width: 1em; font-size: ${g$} !important; } slot[name="clear-icon"] { --m3e-icon-size: ${g$}; } :host(:state(-fullscreen)) .header { transition: height 150ms cubic-bezier(0.2, 0, 0, 1); } :host(:state(-fullscreen)) .view:popover-open:not(.closing) .header { height: ${R$}; } :host(:state(-fullscreen):not([open])) .header, :host(:state(-fullscreen)[open]) .view.closing .header { height: ${X$}; } :host(:state(-fullscreen)[open]) .bar { --m3e-search-bar-container-height: ${X$}; } :host(:state(-fullscreen)) .anchor { height: ${X$}; } :host(:state(-fullscreen)) .view:popover-open { border-radius: ${q$}; } :host(:state(-fullscreen)[contained]) .view:popover-open { background-color: ${B$}; } :host(:state(-fullscreen):not([contained])) .view:popover-open { background-color: ${O$}; } :host(:state(-docked)[open]) .header, :host(:state(-docked)) .anchor { height: ${N$}; } :host(:not([contained])[open]) .results { border-top-width: ${V$}; border-top-style: solid; border-top-color: ${F$}; } :host(:state(-docked)[contained]) .results { margin-top: ${G$}; } :host(:state(-docked):not([contained])[open]) .view { background-color: ${O$}; --m3e-search-bar-container-color: ${O$}; } :host(:state(-docked)[contained]) .results { background-color: ${O$}; } :host(:state(-docked):not([contained])[open]) .view, :host(:state(-docked)[contained]) .results { border-radius: ${U$}; } :host(:state(-docked)) .results { min-height: calc(${J$} - ${N$}); max-height: calc(${Q$} - ${N$}); } :host(:state(-docked)) .scroll-container { scrollbar-width: ${v.scrollbar.thinWidth}; } :host(:state(-docked):not([contained])) .scroll-container { padding-bottom: ${tx}; } :host(:state(-docked)[contained]) .scroll-container { padding: ${ex}; } :host(:state(-docked)) .results { transform-origin: top; transition: ${o(`transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-docked):not([open])) .results { transform: scaleY(0.8); } :host(:state(-docked)[open]) .results { transform: scaleY(1); } @starting-style { :host(:state(-docked)[open]) .results { transform: scaleY(0.8); } } :host(:state(-docked)[contained]) .view { background-color: transparent; } :host(:state(-docked):not([open])) .view { transition: ${o(`border-radius ${v.motion.duration.long2} ${v.motion.easing.standard},\n background-color ${v.motion.duration.long2} ${v.motion.easing.standard}`)}; } :host(:state(-docked):not([open])) .view::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-docked)) .view::backdrop { background-color: color-mix(in srgb, ${ax} 0%, transparent); margin-inline-end: -20px; } :host(:state(-docked)[open]) .view::backdrop { background-color: color-mix( in srgb, ${ax} ${ox}, transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { :host(:state(-docked)[open]) .view::backdrop { background-color: color-mix(in srgb, ${ax} 0%, transparent); } } :host(:state(-fullscreen)) .view:popover-open { width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; overflow: hidden; } @media (prefers-reduced-motion) { :host(:state(-fullscreen)) .bar, :host(:state(-fullscreen)) .header, :host(:state(-docked)) .results, :host(:state(-docked):not([open])) .view, :host(:state(-docked):not([open])) .view::backdrop, :host(:state(-docked)[open]) .view::backdrop { transition: none; } } @media (forced-colors: active) { :host(:not([contained])[open]) .bar { --_search-bar-forced-color-outline-style: none; } :host(:state(-docked):not([contained])[open]) .view, :host(:state(-docked)[contained]) .results { border: 1px solid CanvasText; } :host(:not([contained])[open]) .results { border-top-color: CanvasText; } }`;var sx,nx,lx,cx,dx,hx,mx,px,ux,vx;let bx=class extends(x(P(r),"clear")){constructor(){super(...arguments),sx.add(this),nx.set(this,void 0),lx.set(this,()=>e(this,sx,"m",ux).call(this)),this.clearable=!1,this.clearLabel="Clear"}clear(){e(this,nx,"f")&&(e(this,nx,"f").value="",e(this,sx,"m",ux).call(this),this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})))}render(){return s`<div class="base" @click="${e(this,sx,"m",dx)}"><slot name="leading" @slotchange="${e(this,sx,"m",hx)}"></slot><slot name="input" @slotchange="${e(this,sx,"m",px)}"></slot>${e(this,sx,"m",cx).call(this)}<slot name="trailing" @slotchange="${e(this,sx,"m",mx)}"></slot></div>`}};var fx,gx,yx,$x,xx,wx,kx,Cx,Sx,_x,Lx,Ex,zx,Mx,Tx,Px,Ix,Wx,Dx,Ax,Hx,Ox,Bx,Fx,Vx,qx,Rx,Ux,Nx,jx,Yx,Kx;nx=new WeakMap,lx=new WeakMap,sx=new WeakSet,cx=function(){return this.clearable?s`<div class="clear"><m3e-icon-button aria-label="${this.clearLabel}" @click="${e(this,sx,"m",vx)}"><slot name="clear-icon"><svg class="clear-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button></div>`:n},dx=function(){this.matches(":focus-within")||e(this,nx,"f")?.focus()},hx=function(e){k(this,"-with-leading",g(e.target))},mx=function(e){k(this,"-with-trailing",g(e.target))},px=function(t){const o=t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLInputElement);o!=e(this,nx,"f")&&(e(this,nx,"f")?.removeEventListener("input",e(this,lx,"f")),a(this,nx,o,"f"),e(this,nx,"f")?.addEventListener("input",e(this,lx,"f")),e(this,nx,"f")&&(e(this,nx,"f").role=e(this,nx,"f").role||"searchbox",e(this,nx,"f").inputMode=e(this,nx,"f").inputMode||"search",e(this,nx,"f").type="text"),e(this,sx,"m",ux).call(this))},ux=function(){k(this,"-clearable",this.clearable&&(e(this,nx,"f")?.value??"").length>0)},vx=function(){this.clear(),e(this,nx,"f")?.focus()},F(A$),bx.styles=H$,t([m({type:Boolean,reflect:!0})],bx.prototype,"clearable",void 0),t([m({attribute:"clear-label"})],bx.prototype,"clearLabel",void 0),bx=t([$("m3e-search-bar")],bx);let Zx=class extends(x(M(P(r)),"clear","query")){constructor(){super(),fx.add(this),gx.set(this,void 0),yx.set(this,!1),$x.set(this,()=>e(this,fx,"m",Dx).call(this)),xx.set(this,()=>e(this,fx,"m",Ox).call(this)),wx.set(this,t=>e(this,fx,"m",qx).call(this,t)),kx.set(this,()=>e(this,fx,"m",Vx).call(this)),Cx.set(this,new W(this)),Sx.set(this,new D(this)),this._clearable=!1,_x.set(this,void 0),Lx.set(this,void 0),Ex.set(this,void 0),this.contained=!1,this.mode="docked",this.open=!1,this.clearLabel="Clear",this.closeLabel="Close",this.hideSearchIcon=!1,new K(this,{callback:e=>this._handleFocusChange(e)})}get currentMode(){return this._mode??("fullscreen"!==this.mode?"docked":"fullscreen")}set currentMode(e){this._mode=e}clear(){e(this,gx,"f")&&(e(this,gx,"f").value="",e(this,fx,"m",Hx).call(this),this.dispatchEvent(new CustomEvent("query",{detail:{term:""},bubbles:!0,composed:!0})),this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this._mode=void 0,e(this,Ex,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.mode&&e(this,fx,"m",Ix).call(this)}willUpdate(t){if(super.willUpdate(t),t.has("mode")){e(this,Ex,"f")?.call(this);const a=t.get("mode");a&&a!==this.mode&&this.open&&(this.open=!1),"auto"===this.mode?e(this,fx,"m",Ix).call(this):(this._mode=void 0,e(this,fx,"m",Ax).call(this))}t.has("_mode")&&e(this,fx,"m",Ax).call(this)}updated(t){super.updated(t),t.has("open")&&(this.open?"fullscreen"===this.currentMode?e(this,fx,"m",Yx).call(this):e(this,fx,"m",Ux).call(this):"fullscreen"===(e(this,_x,"f")??this.currentMode)?e(this,fx,"m",Kx).call(this):e(this,fx,"m",Nx).call(this))}render(){return s`<div class="base"><div class="anchor"></div><div role="${je(this.open?"dialog":void 0)}" aria-modal="${je(this.open?"true":void 0)}" aria-labelledby="${je(this.open?"header":void 0)}" class="view" tabindex="-1" @keydown="${e(this,fx,"m",Rx)}"><m3e-focus-trap ?disabled="${!this.open}"><div class="header" id="header"><m3e-search-bar class="bar">${e(this,fx,"m",zx).call(this)} ${this.open?s`<slot name="open-leading" slot="leading"></slot>`:s`<slot name="closed-leading" slot="leading"></slot>`}<slot name="input" slot="input" @slotchange="${e(this,fx,"m",Wx)}"></slot>${e(this,fx,"m",Px).call(this)} ${this.open?s`<slot name="open-trailing" slot="trailing"></slot>`:s`<slot name="closed-trailing" slot="trailing"></slot>`}</m3e-search-bar></div><div class="results"><div class="scroll-container"><slot></slot></div></div></m3e-focus-trap></div></div>`}_handleFocusChange(e){e||"docked"!==this.currentMode||(this.clear(),this.open=!1)}};var Gx,Xx,Jx,Qx,ew;gx=new WeakMap,yx=new WeakMap,$x=new WeakMap,xx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Cx=new WeakMap,Sx=new WeakMap,_x=new WeakMap,Lx=new WeakMap,Ex=new WeakMap,fx=new WeakSet,zx=function(){return!this.open&&this.hideSearchIcon?n:s`<div class="icon" slot="leading">${this.open?e(this,fx,"m",Tx).call(this):e(this,fx,"m",Mx).call(this)}</div>`},Mx=function(){return s`<slot name="search-icon"><svg class="search-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg></slot>`},Tx=function(){return s`<m3e-icon-button class="close" slot="leading" aria-label="${this.closeLabel}" @click="${e(this,fx,"m",Bx)}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor">${"docked"===this.currentMode?d`<path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/>`:d`<path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/>`}</svg></slot></m3e-icon-button>`},Px=function(){return s`<m3e-icon-button class="clear" slot="trailing" aria-label="${this.open&&!this._clearable?this.closeLabel:this.clearLabel}" @click="${e(this,fx,"m",Fx)}"><slot name="clear-icon"><svg class="clear-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`},Ix=function(){a(this,Ex,Je.observe([Qe.XSmall],t=>{const a=this.currentMode;this._mode=t.get(Qe.XSmall)?"fullscreen":"docked",a!==this._mode&&this.open&&(this.open=!1),e(this,fx,"m",Ax).call(this)}),"f")},Wx=function(t){const o=t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLInputElement);o!=e(this,gx,"f")&&(e(this,gx,"f")?.removeEventListener("input",e(this,$x,"f")),e(this,gx,"f")?.removeEventListener("focus",e(this,xx,"f")),e(this,gx,"f")?.removeEventListener("keydown",e(this,wx,"f")),e(this,gx,"f")?.removeEventListener("pointerdown",e(this,kx,"f")),a(this,gx,o,"f"),e(this,gx,"f")?.addEventListener("input",e(this,$x,"f")),e(this,gx,"f")?.addEventListener("focus",e(this,xx,"f")),e(this,gx,"f")?.addEventListener("keydown",e(this,wx,"f")),e(this,gx,"f")?.addEventListener("pointerdown",e(this,kx,"f")),e(this,gx,"f")&&(e(this,gx,"f").role=e(this,gx,"f").role||"searchbox",e(this,gx,"f").inputMode=e(this,gx,"f").inputMode||"search",e(this,gx,"f").type="text",e(this,gx,"f").ariaHasPopup="dialog"),e(this,fx,"m",Hx).call(this))},Dx=function(){e(this,fx,"m",Hx).call(this),this.open?this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,gx,"f")?.value??""},bubbles:!0,composed:!0})):this.open=!0},Ax=function(){k(this,"-fullscreen","fullscreen"===this.currentMode),k(this,"-docked","docked"===this.currentMode)},Hx=function(){this._clearable=(e(this,gx,"f")?.value??"").length>0,k(this,"-clearable",this._clearable)},Ox=function(){this.open=!e(this,yx,"f"),a(this,yx,!1,"f")},Bx=function(){e(this,gx,"f")&&(e(this,gx,"f").value&&this.clear(),a(this,yx,!0,"f"),e(this,gx,"f")?.focus())},Fx=function(){e(this,gx,"f")&&(e(this,gx,"f").value?this.clear():a(this,yx,!0,"f"),e(this,gx,"f")?.focus())},Vx=function(){!this.open&&e(this,gx,"f")?.matches(":focus")&&(this.open=!0)},qx=function(e){if(this.open&&"Escape"===e.key&&!e.shiftKey&&!e.ctrlKey){e.preventDefault();e.target.value&&this.clear(),this.open=!1}},Rx=function(t){!this.open||"Escape"!==t.key||t.shiftKey||t.ctrlKey||(t.preventDefault(),e(this,fx,"m",Bx).call(this))},Ux=async function(){if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!1);a(this,_x,this.currentMode,"f");const t=this._view;e(this,Lx,"f")?.call(this),a(this,Lx,await Re(t,this._anchor,{position:"bottom"},(e,t)=>{const a=this._view;a.style.top=t-this._anchor.clientHeight+"px",a.style.width=`${this._anchor.clientWidth}px`,"rtl"===qe.current?(a.style.right=window.innerWidth-e-this.clientWidth+"px",a.style.left=""):(a.style.left=`${e}px`,a.style.right="")}),"f"),this._anchor.style.position="relative",t.popover="manual",t.style.position="absolute",t.showPopover(),e(this,Cx,"f").lock(),e(this,Sx,"f").lock(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,gx,"f")?.value??""},bubbles:!0,composed:!0}))},Nx=function(){const t=this._view;"manual"===t.popover&&(this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0,cancelable:!0}))?(a(this,_x,void 0,"f"),e(this,Cx,"f").unlock(),e(this,Sx,"f").unlock(),S()?e(this,fx,"m",jx).call(this):(t.classList.add("closing"),t.addEventListener("transitionend",()=>e(this,fx,"m",jx).call(this),{once:!0}))):this.open=!0)},jx=function(){e(this,Lx,"f")?.call(this),a(this,Lx,void 0,"f");const t=this._view;t.classList.remove("closing"),t.style.position="",t.style.width="",t.style.top="",t.style.left="",t.style.right="",t.hidePopover(),t.popover=null,this._anchor.style.position="",this.dispatchEvent(new ToggleEvent("toggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0}))},Yx=async function(){if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!1);a(this,_x,this.currentMode,"f"),e(this,Cx,"f").lock(),e(this,Sx,"f").lock();const t=this._view;if(e(this,Lx,"f")?.call(this),S())t.style.position="fixed",t.popover="manual",t.showPopover(),this._anchor.style.position="relative";else{const e=t.getBoundingClientRect(),a="rtl"===qe.current?window.innerWidth-e.right:e.left;t.style.position="fixed",t.popover="manual",t.showPopover(),this._anchor.style.position="relative",t.animate([{transform:`translateX(${a}px)`,width:`${e.width}px`,top:`${e.top}px`,height:`${e.height}px`},{transform:"translateX(0px)",width:"100vw",top:"0px",height:"100vh"}],{duration:150,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"})}this.dispatchEvent(new ToggleEvent("toggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,gx,"f")?.value??""},bubbles:!0,composed:!0}))},Kx=async function(){const t=this._view;if("manual"!==t.popover)return;if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!0);a(this,_x,void 0,"f"),e(this,Cx,"f").unlock(),e(this,Sx,"f").unlock();const o=this._anchor;if(!S()){const e=t.getBoundingClientRect(),a=o.getBoundingClientRect(),i="rtl"===qe.current?window.innerWidth-e.right:e.left,r="rtl"===qe.current?window.innerWidth-a.right:a.left,s="rtl"===qe.current?i-r:r-i;t.classList.add("closing"),await t.animate([{transform:"translateX(0px)",width:`${e.width}px`,top:`${e.top}px`,height:`${e.height}px`},{transform:`translateX(${s}px)`,width:`${a.width}px`,top:`${a.top}px`,height:`${a.height}px`}],{duration:150,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}).finished}t.hidePopover(),t.style.position="",t.popover=null,t.classList.remove("closing"),o.style.position="",this.dispatchEvent(new ToggleEvent("toggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0}))},F(ix),Zx.styles=rx,t([u()],Zx.prototype,"_clearable",void 0),t([u()],Zx.prototype,"_mode",void 0),t([h(".anchor")],Zx.prototype,"_anchor",void 0),t([h(".view")],Zx.prototype,"_view",void 0),t([m({type:Boolean,reflect:!0})],Zx.prototype,"contained",void 0),t([m({reflect:!0})],Zx.prototype,"mode",void 0),t([m({type:Boolean,reflect:!0})],Zx.prototype,"open",void 0),t([m({attribute:"clear-label"})],Zx.prototype,"clearLabel",void 0),t([m({attribute:"close-label"})],Zx.prototype,"closeLabel",void 0),t([m({attribute:"hide-search-icon",type:Boolean})],Zx.prototype,"hideSearchIcon",void 0),t([y(40)],Zx.prototype,"_handleFocusChange",null),Zx=t([$("m3e-search-view")],Zx);let tw=ew=class extends(te(ae($e(Y(P(f(r,"radio"),!0)))))){constructor(){super(...arguments),Gx.add(this),Xx.set(this,t=>e(this,Gx,"m",Qx).call(this,t)),this.value="on"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Xx,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Xx,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){const t=this.closest("m3e-segmented-button");t&&(this.role=t.multi?"button":"radio"),super.update(e),e.has("checked")&&t?.[De].notifySelectionChange(this),e.has("disabled")&&(this.disabled?this.nextElementSibling instanceof ew&&(this.nextElementSibling.disabled?this.style.removeProperty("--_segmented-button-disabled-outline-color"):this.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`)):(this.style.removeProperty("--_segmented-button-disabled-outline-color"),this.previousElementSibling instanceof ew&&(this.previousElementSibling.disabled?this.previousElementSibling.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`):this.previousElementSibling.style.removeProperty("--_segmented-button-disabled-outline-color"))))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,Gx,"m",Jx)}"></slot></div><div class="label"><slot></slot></div></div></div>`}};var aw,ow,iw,rw,sw,nw;Xx=new WeakMap,Gx=new WeakSet,Jx=function(e){k(this,"-with-icon",g(e.target))},Qx=function(e){if(e.defaultPrevented)return;const t=this.closest("m3e-segmented-button");if(t&&(t.multi||!this.checked)){const e=this.checked;this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-segmented-button")?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=e}},tw.styles=i`:host { display: inline-block; position: relative; vertical-align: middle; outline: none; user-select: none; flex: 1 1 auto; min-width: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: inline-flex; vertical-align: middle; align-items: center; width: 100%; height: calc(var(--m3e-segmented-button-height, 2.5rem) + ${v.density.calc(-3)}); box-sizing: border-box; border-width: var(--m3e-segmented-button-outline-thickness, 1px); border-color: var(--m3e-segmented-button-outline-color, ${v.color.outline}); border-style: solid; border-radius: inherit; border-inline-start-style: var(--_segmented-button-left-border, solid); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-segmented-button-padding-start, 1rem); padding-inline-end: var(--m3e-segmented-button-padding-end, 1rem); column-gap: var(--m3e-segmented-button-spacing, 0.5rem); } .label { font-size: var(--m3e-segmented-button-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-segmented-button-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-segmented-button-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-segmented-button-tracking, ${v.typescale.standard.label.large.tracking}); justify-self: center; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { display: flex; align-items: center; justify-content: center; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } :host([checked]:not(:state(-hide-selection))) .wrapper, :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-segmented-button-with-icon-padding-start, 0.75rem); } :host(:not(:disabled)[checked]) .base { background-color: var(--m3e-segmented-button-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-segmented-button-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-segmented-button-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .label { color: var(--m3e-segmented-button-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .icon { color: var(--m3e-segmented-button-selected-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([checked])) .base { --m3e-state-layer-hover-color: var( --m3e-segmented-button-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-segmented-button-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .label { color: var(--m3e-segmented-button-unselected-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .icon { color: var(--m3e-segmented-button-unselected-icon-color, ${v.color.onSurface}); } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-segmented-button-spacing, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } .check, ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-segmented-button-icon-size, 1.125rem) !important; } :host(:not([checked])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:disabled) .base { border-color: color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ); border-inline-end-color: var( --_segmented-button-disabled-outline-color, color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ) ); } :host(:disabled) .label { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-icon-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-icon-opacity, 38%), transparent ); } @media (prefers-reduced-motion) { .base, .icon, .label { transition: none; } } @media (forced-colors: active) { .base, .icon, .label { transition: none !important; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } :host(:not([selected]):not(:disabled)) .label, :host(:not([selected]):not(:disabled)) .icon { color: ButtonText; } :host(:not(:disabled)[checked]) .base { background-color: ButtonText; } :host(:not(:disabled)[checked]) .label, :host(:not(:disabled)[checked]) .icon { forced-color-adjust: none; color: ButtonFace; } :host { --m3e-segmented-button-outline-color: ButtonText; } }`,t([h(".focus-ring")],tw.prototype,"_focusRing",void 0),t([h(".state-layer")],tw.prototype,"_stateLayer",void 0),t([h(".ripple")],tw.prototype,"_ripple",void 0),t([m()],tw.prototype,"value",void 0),tw=ew=t([$("m3e-button-segment")],tw);let lw=class extends(Q(te(ae(se(Y(P(f(r,"radiogroup")))))))){constructor(){super(...arguments),aw.add(this),ow.set(this,void 0),this[nw]=(new Ae).withWrap().withDirectionality(qe.current).onActiveItemChange(()=>this[De].activeItem?.click()),this.multi=!1,this.hideSelectionIndicator=!1}get segments(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(ow=new WeakMap,aw=new WeakSet,nw=De,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this[De].multi=this.multi,this[De].disableRovingTabIndex(this.multi),a(this,ow,qe.observe(()=>this[De].directionality=qe.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,ow,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled),e.has("multi")&&(this.role=this.multi?"group":"radiogroup",this[De].multi=this.multi,this[De].disableRovingTabIndex(this.multi)),(e.has("multi")||e.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),e.has("hideSelectionIndicator")&&this.segments.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,aw,"m",iw)}" @keydown="${e(this,aw,"m",rw)}" @change="${e(this,aw,"m",sw)}"></slot>`}};var cw,dw,hw,mw,pw,uw,vw,bw,fw,gw,yw,$w,xw,ww,kw,Cw,Sw,_w,Lw,Ew,zw,Mw,Tw,Pw,Iw,Ww,Dw,Aw,Hw,Ow,Bw,Fw;iw=function(){const{added:e}=this[De].setItems([...this.querySelectorAll("m3e-button-segment")]);e.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),this[De].items.forEach((e,t)=>{k(e,"-first",0==t),k(e,"-last",t==this[De].items.length-1)})},rw=function(e){this.multi||this[De].onKeyDown(e)},sw=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},lw.styles=i`:host { display: inline-flex; vertical-align: middle; align-items: center; } ::slotted(:state(-first)) { border-start-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); border-end-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); } ::slotted(:state(-last)) { border-start-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); border-end-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); } ::slotted(:not(:state(-first))) { --_segmented-button-left-border: none; }`,t([m({type:Boolean})],lw.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],lw.prototype,"hideSelectionIndicator",void 0),lw=t([$("m3e-segmented-button")],lw);let Vw=Fw=class extends(N(Q(ee(te(ae(oe(ie(se(Y(P(f(r,"combobox")))))))))))){constructor(){super(),cw.add(this),this._options=new Array,dw.set(this,void 0),hw.set(this,void 0),mw.set(this,!1),pw.set(this,!1),uw.set(this,"m3e-select-"+Fw.__nextId++),vw.set(this,`${e(this,uw,"f")}-list`),bw.set(this,t=>e(this,cw,"m",Lw).call(this,t)),fw.set(this,t=>e(this,cw,"m",Ew).call(this,t)),gw.set(this,t=>e(this,cw,"m",zw).call(this,t)),yw.set(this,t=>e(this,cw,"m",Pw).call(this,t)),$w.set(this,t=>e(this,cw,"m",Mw).call(this,t)),xw.set(this,t=>e(this,cw,"m",Tw).call(this,t)),ww.set(this,void 0),this._listKeyManager=(new ze).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withTypeahead().onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,cw,"m",Hw).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.multi=!1,this.panelClass="",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,cw,"m",_w).call(this)})}get options(){return this._options??[]}get selected(){return this.options.filter(e=>e.selected)}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(dw=new WeakMap,hw=new WeakMap,mw=new WeakMap,pw=new WeakMap,uw=new WeakMap,vw=new WeakMap,bw=new WeakMap,fw=new WeakMap,gw=new WeakMap,yw=new WeakMap,$w=new WeakMap,xw=new WeakMap,ww=new WeakMap,cw=new WeakSet,kw=function(){return this._listKeyManager?.items??[]},Cw=function(){return e(this,cw,"a",kw).filter(e=>e.selected)},le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}get shouldLabelFloat(){return this.selected.filter(e=>!e.isEmpty).length>0}onContainerClick(){a(this,pw,!0,"f"),e(this,cw,"m",Ww).call(this),this.focus({preventScroll:!0})}clear(t=!1){const a=e(this,cw,"a",Cw),o=a.length>0;o&&(a.forEach(t=>{t.selected=!1,e(this,cw,"m",Ow).call(this,t)}),this.requestUpdate()),e(this,cw,"m",Aw).call(this),o&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&this.focus()}connectedCallback(){super.connectedCallback(),this.ariaHasPopup="listbox",this.ariaExpanded="false",this.addEventListener("click",e(this,bw,"f")),this.addEventListener("keydown",e(this,fw,"f")),this.addEventListener("keyup",e(this,gw,"f")),e(this,cw,"m",_w).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,bw,"f")),this.removeEventListener("keydown",e(this,fw,"f")),this.removeEventListener("keyup",e(this,gw,"f"))}update(t){super.update(t),t.has("hideSelectionIndicator")&&e(this,cw,"a",kw).forEach(e=>k(e,"-hide-selection-indicator",this.hideSelectionIndicator))}firstUpdated(t){super.firstUpdated(t),this._focusRing?.attach(this),e(this,cw,"a",Sw)&&this._focusRing&&(this._focusRing.style.display="none")}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="base"><m3e-text-overflow><slot name="value">${this.selected.filter(e=>!e.isEmpty).map((e,t)=>t>0?s`<span>, </span>${e.label}`:e.label)}</slot></m3e-text-overflow><div class="arrow-wrapper" aria-hidden="true"><slot name="arrow"><svg class="arrow" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><div class="options" aria-hidden="true"><slot></slot></div>`}};Sw=function(){return this.closest("m3e-form-field")},_w=function(){a(this,dw,this.cloneNode(!0),"f");const{added:t}=this._listKeyManager.setItems([...e(this,dw,"f").querySelectorAll("m3e-option")]);t.forEach(t=>{t.id=t.id||`${e(this,uw,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,k(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),this._options=[...this.querySelectorAll("m3e-option")],e(this,cw,"a",Sw)?.notifyControlStateChange(),e(this,hw,"f")&&(e(this,hw,"f").replaceChildren(...e(this,dw,"f").childNodes),0==this._options.length&&e(this,cw,"m",Aw).call(this))},Lw=function(t){t.defaultPrevented||this.disabled||e(this,cw,"m",Ww).call(this)},Ew=function(t){if(!t.defaultPrevented)switch(a(this,pw,!1,"f"),t.key){case" ":case"Enter":t.preventDefault(),this.multi?e(this,hw,"f")||(a(this,mw,!0,"f"),e(this,cw,"m",Ww).call(this)):(e(this,hw,"f")&&this._listKeyManager.activeItem&&e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem),e(this,hw,"f")?.isOpen?S()?e(this,cw,"m",Aw).call(this):setTimeout(()=>e(this,cw,"m",Aw).call(this),150):e(this,cw,"m",Dw).call(this));break;case"Escape":case"Tab":e(this,cw,"m",Aw).call(this);break;case"Down":case"ArrowDown":this.multi&&!e(this,hw,"f")?e(this,cw,"m",Ww).call(this):(this._listKeyManager.onKeyDown(t),!e(this,hw,"f")&&this._listKeyManager.activeItem&&e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem));break;default:this._listKeyManager.onKeyDown(t),this.multi||e(this,hw,"f")||!this._listKeyManager.activeItem||e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem)}},zw=function(t){if(!t.defaultPrevented)if(e(this,mw,"f"))a(this,mw,!1,"f");else switch(t.key){case" ":case"Enter":if(!this.multi)return;t.preventDefault(),e(this,hw,"f")&&this._listKeyManager.activeItem&&e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem)}},Mw=function(e){if(a(this,ww,void 0,"f"),2===e.button)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);t&&!t.disabled&&a(this,ww,t,"f")},Tw=function(t){const o=e(this,ww,"f");if(a(this,ww,void 0,"f"),2===t.button)return;if(!o)return;const i=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);i===o&&(e(this,cw,"m",Bw).call(this,i),this._listKeyManager.setActiveItem(i),this.multi&&this.requestUpdate()),this.multi||(S()?e(this,cw,"m",Aw).call(this):setTimeout(()=>e(this,cw,"m",Aw).call(this),150))},Pw=function(t){if(e(this,hw,"f"))if("closed"!==t.newState){const a=e(this,cw,"a",Cw).find(e=>!e.disabled)??this._listKeyManager.items.find(e=>!e.disabled);this._listKeyManager.setActiveItem(a),a&&_(a,e(this,hw,"f"),{block:"nearest",behavior:"instant"}),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else S()?e(this,cw,"m",Iw).call(this,t):setTimeout(()=>e(this,cw,"m",Iw).call(this,t),100)},Iw=function(t){e(this,hw,"f")&&(e(this,dw,"f")?.replaceChildren(...e(this,hw,"f").childNodes),e(this,hw,"f").remove(),e(this,hw,"f").removeEventListener("toggle",e(this,yw,"f")),e(this,hw,"f").removeEventListener("pointerdown",e(this,$w,"f")),e(this,hw,"f").removeEventListener("pointerup",e(this,xw,"f")),a(this,hw,void 0,"f"),this.ariaExpanded="false",this.removeAttribute("aria-controls"),this.removeAttribute("aria-owns"),this.removeAttribute("aria-activedescendant"),this.requestUpdate(),C(this,"-open"),e(this,cw,"a",Sw)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})))},Ww=function(){this.disabled||(e(this,hw,"f")?e(this,cw,"m",Aw).call(this):e(this,cw,"m",Dw).call(this))},Dw=function(){if(!e(this,hw,"f")&&0!=this._options.length){if(a(this,hw,document.createElement("m3e-option-panel"),"f"),this.multi&&(e(this,hw,"f").ariaMultiSelectable="true"),e(this,hw,"f").id=e(this,vw,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,hw,"f").classList.add(t);e(this,hw,"f").style.overflowX="hidden",e(this,hw,"f").fitAnchorWidth=!0,e(this,hw,"f").addEventListener("toggle",e(this,yw,"f")),e(this,hw,"f").addEventListener("pointerdown",e(this,$w,"f")),e(this,hw,"f").addEventListener("pointerup",e(this,xw,"f")),e(this,dw,"f")&&e(this,hw,"f").replaceChildren(...e(this,dw,"f").childNodes),(e(this,cw,"a",Sw)??this).insertAdjacentElement("afterend",e(this,hw,"f")),this.ariaExpanded="true",this.setAttribute("aria-controls",e(this,vw,"f")),this.setAttribute("aria-owns",e(this,vw,"f")),e(this,cw,"a",Sw)?.notifyControlStateChange(),setTimeout(()=>{e(this,hw,"f")?.show(this,e(this,cw,"a",Sw)?.menuAnchor),E(this,"-open")})}},Aw=function(){e(this,hw,"f")&&(e(this,hw,"f").hide(),C(this,"-open"))},Hw=function(t){if(this.setAttribute("aria-activedescendant",t.id),e(this,hw,"f")){_(t,e(this,hw,"f"),{block:"nearest",behavior:"instant"});const a=!e(this,pw,"f")&&(this.matches(":focus-visible")||L());e(this,cw,"a",kw).forEach(e=>{e===t&&a?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},Ow=function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected)},Bw=function(t){const a=!this.multi||!t.selected;t.selected!==a&&(t.selected=a,e(this,cw,"m",Ow).call(this,t),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.multi||e(this,cw,"a",Cw).filter(e=>e!==t).forEach(t=>{t.selected=!1,e(this,cw,"m",Ow).call(this,t)}),this.requestUpdate(),e(this,cw,"a",Sw)?.notifyControlStateChange(),this.dispatchEvent(new Event("change",{bubbles:!0}))):(t.selected=!a,e(this,cw,"m",Ow).call(this,t)))},Vw.styles=i`:host { display: inline-flex; vertical-align: middle; outline: none; position: relative; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); min-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); border-radius: var(--m3e-select-container-shape, ${v.shape.corner.extraSmall}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) { color: color-mix( in srgb, var(--m3e-select-disabled-color, ${v.color.onSurface}) var(--m3e-select-disabled-color-opacity, 38%), transparent ); } .options { display: none; } .base { flex: 1 1 auto; display: inline-flex; align-items: center; overflow: hidden; } .arrow-wrapper { display: flex; align-items: center; justify-content: center; margin-top: var(--_select-arrow-margin-top); } ::slotted([slot="arrow"]), .arrow { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-select-icon-size, 1.5rem); } :host(:state(-open)) .focus-ring { display: none; }`,Vw.__nextId=0,t([h(".focus-ring")],Vw.prototype,"_focusRing",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],Vw.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean})],Vw.prototype,"multi",void 0),t([m({attribute:"panel-class"})],Vw.prototype,"panelClass",void 0),Vw=Fw=t([$("m3e-select")],Vw);const qw=o("var(--m3e-shape-size, 3rem)"),Rw=o(`var(--m3e-shape-container-color, ${v.color.primary})`),Uw=o(`var(--m3e-shape-transition, clip-path ${v.motion.spring.slowEffects})`),Nw=i`:host { display: inline-block; position: relative; aspect-ratio: 1 / 1; width: ${qw}; } :host([name]) .wrapper { background-color: ${Rw}; transition: ${Uw}; transform-origin: center; } .wrapper { width: 100%; height: 100%; position: relative; isolation: isolate; overflow: hidden; will-change: clip-path; } ::slotted(img), ::slotted(video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } @media (prefers-reduced-motion) { .wrapper { transition: none; } }`,jw={"4-leaf-clover":"M63.0014 190C49.8954 174.339 42 154.126 42 132.06C42 82.321 82.1131 42 131.595 42C153.99 42 174.466 50.2594 190.173 63.9131C205.843 50.2594 226.271 42 248.614 42C297.981 42 338 82.321 338 132.06C338 154.126 330.123 174.339 317.048 190C330.123 205.661 338 225.874 338 247.94C338 297.679 297.981 338 248.614 338C226.271 338 205.843 329.741 190.173 316.087C174.466 329.741 153.99 338 131.595 338C82.1131 338 42 297.679 42 247.94C42 225.874 49.8954 205.661 63.0014 190Z","4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","6-sided-cookie":"M134.186 54.5654C165.276 24.4782 214.724 24.4782 245.814 54.5654C255.328 63.7718 266.984 70.4811 279.738 74.0919C321.419 85.8924 346.142 128.586 335.552 170.473C332.312 183.291 332.312 196.709 335.552 209.527C346.142 251.414 321.419 294.108 279.738 305.908C266.984 309.519 255.328 316.228 245.814 325.435C214.724 355.522 165.276 355.522 134.186 325.435C124.672 316.228 113.016 309.519 100.262 305.908C58.5815 294.108 33.8578 251.414 44.4476 209.527C47.6879 196.709 47.6879 183.291 44.4476 170.473C33.8578 128.586 58.5815 85.8924 100.262 74.0919C113.016 70.4811 124.672 63.7718 134.186 54.5654Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z","8-leaf-clover":"M338.584 189.998C364.427 238.164 344.902 281.771 295.066 295.061C281.771 344.902 238.164 364.422 189.998 338.584C141.831 364.427 98.2245 344.902 84.9337 295.066C35.0981 281.771 15.573 238.164 41.4157 189.998C15.573 141.831 35.0981 98.2245 84.9337 84.9337C98.2245 35.0981 141.831 15.573 189.998 41.4157C238.164 15.573 281.771 35.0981 295.061 84.9337C344.902 98.2245 364.422 141.831 338.584 189.998Z","9-sided-cookie":"M154.828 43.2756C156.574 41.8498 157.448 41.1369 158.245 40.535C177.03 26.3548 202.97 26.3548 221.755 40.535C222.552 41.1369 223.425 41.8498 225.172 43.2756C225.952 43.9121 226.342 44.2303 226.727 44.5333C235.567 51.4788 246.406 55.4147 257.652 55.7636C258.143 55.7788 258.647 55.785 259.654 55.7975C261.911 55.8255 263.039 55.8395 264.037 55.8898C287.563 57.0742 307.435 73.7107 312.689 96.6205C312.912 97.5928 313.121 98.6991 313.541 100.911C313.728 101.899 313.822 102.393 313.922 102.872C316.219 113.862 321.986 123.828 330.377 131.308C330.743 131.635 331.125 131.962 331.888 132.618C333.599 134.087 334.454 134.821 335.187 135.5C352.445 151.495 356.95 176.983 346.215 197.903C345.76 198.791 345.208 199.773 344.104 201.737C343.611 202.613 343.364 203.052 343.132 203.483C337.812 213.375 335.809 224.708 337.418 235.82C337.488 236.304 337.569 236.8 337.732 237.792C338.096 240.014 338.278 241.125 338.402 242.115C341.318 265.436 328.347 287.851 306.647 296.991C305.726 297.379 304.67 297.778 302.559 298.574C301.617 298.929 301.146 299.107 300.69 299.289C290.241 303.455 281.406 310.852 275.48 320.395C275.221 320.811 274.964 321.243 274.449 322.107C273.297 324.043 272.721 325.011 272.178 325.849C259.387 345.584 235.011 354.436 212.498 347.521C211.543 347.228 210.477 346.856 208.347 346.112C207.396 345.78 206.921 345.614 206.455 345.461C195.767 341.951 184.233 341.951 173.545 345.461C173.079 345.614 172.603 345.78 171.652 346.112C169.522 346.856 168.457 347.228 167.502 347.521C144.989 354.436 120.613 345.584 107.822 325.849C107.279 325.011 106.703 324.043 105.55 322.107C105.036 321.243 104.779 320.811 104.52 320.395C98.5939 310.852 89.7583 303.455 79.3096 299.289C78.8539 299.107 78.3827 298.929 77.4404 298.574C75.3294 297.778 74.274 297.379 73.3529 296.991C51.6523 287.851 38.6819 265.436 41.598 242.115C41.7218 241.125 41.9039 240.014 42.2682 237.792C42.4308 236.8 42.5121 236.304 42.5822 235.82C44.1908 224.708 42.188 213.375 36.8675 203.483C36.6354 203.052 36.389 202.613 35.8962 201.737C34.7921 199.773 34.2401 198.791 33.7845 197.903C23.0499 176.983 27.5544 151.495 44.8128 135.5C45.5454 134.821 46.4007 134.087 48.1113 132.618C48.875 131.962 49.2568 131.635 49.6228 131.308C58.0134 123.828 63.7804 113.862 66.0777 102.872C66.1779 102.393 66.2715 101.899 66.4588 100.911C66.8783 98.699 67.088 97.5928 67.311 96.6204C72.5652 73.7107 92.4369 57.0742 115.962 55.8898C116.961 55.8395 118.089 55.8255 120.346 55.7975C121.353 55.785 121.857 55.7788 122.347 55.7636C133.594 55.4147 144.432 51.4788 153.272 44.5333C153.658 44.2303 154.048 43.9121 154.828 43.2756Z","12-sided-cookie":"M166.697 39.8458C167.238 39.3157 167.508 39.0506 167.743 38.8298C180.246 27.0567 199.754 27.0567 212.257 38.8298C212.492 39.0506 212.762 39.3157 213.303 39.8458C213.628 40.1639 213.79 40.323 213.945 40.4703C221.945 48.1056 233.282 51.1433 244.028 48.5311C244.235 48.4807 244.456 48.4242 244.896 48.311C245.629 48.1224 245.996 48.0282 246.31 47.9542C263.024 44.0098 279.919 53.7642 284.86 70.2114C284.953 70.5199 285.055 70.8847 285.258 71.6143C285.38 72.0522 285.442 72.2711 285.502 72.4758C288.613 83.0884 296.912 91.3875 307.524 94.4985C307.729 94.5585 307.948 94.6195 308.386 94.7417C309.115 94.9452 309.48 95.0469 309.789 95.1396C326.236 100.081 335.99 116.976 332.046 133.69C331.972 134.004 331.878 134.371 331.689 135.104C331.576 135.544 331.519 135.765 331.469 135.972C328.857 146.718 331.894 158.055 339.53 166.055C339.677 166.21 339.836 166.372 340.154 166.697C340.684 167.238 340.949 167.508 341.17 167.743C352.943 180.246 352.943 199.754 341.17 212.257C340.949 212.492 340.684 212.762 340.154 213.303C339.836 213.628 339.677 213.79 339.53 213.945C331.894 221.945 328.857 233.282 331.469 244.028C331.519 244.235 331.576 244.456 331.689 244.896C331.878 245.629 331.972 245.996 332.046 246.31C335.99 263.024 326.236 279.919 309.789 284.86C309.48 284.953 309.115 285.055 308.386 285.258C307.948 285.381 307.729 285.442 307.524 285.502C296.912 288.613 288.613 296.912 285.502 307.524C285.442 307.729 285.381 307.948 285.258 308.386C285.055 309.115 284.953 309.48 284.86 309.789C279.919 326.236 263.024 335.99 246.31 332.046C245.996 331.972 245.629 331.878 244.896 331.689C244.456 331.576 244.235 331.519 244.028 331.469C233.282 328.857 221.945 331.894 213.945 339.53C213.79 339.677 213.628 339.836 213.303 340.154C212.762 340.684 212.492 340.949 212.257 341.17C199.754 352.943 180.246 352.943 167.743 341.17C167.508 340.949 167.238 340.684 166.697 340.154C166.372 339.836 166.21 339.677 166.055 339.53C158.055 331.894 146.718 328.857 135.972 331.469C135.765 331.519 135.544 331.576 135.104 331.689C134.371 331.878 134.004 331.972 133.69 332.046C116.976 335.99 100.081 326.236 95.1396 309.789C95.0469 309.48 94.9452 309.115 94.7417 308.386C94.6195 307.948 94.5585 307.729 94.4985 307.524C91.3875 296.912 83.0884 288.613 72.4758 285.502C72.2711 285.442 72.0522 285.38 71.6143 285.258C70.8847 285.055 70.5199 284.953 70.2114 284.86C53.7642 279.919 44.0098 263.024 47.9542 246.31C48.0282 245.996 48.1224 245.629 48.311 244.896C48.4242 244.456 48.4807 244.235 48.5311 244.028C51.1433 233.282 48.1056 221.945 40.4703 213.945C40.323 213.79 40.1639 213.628 39.8458 213.303C39.3157 212.762 39.0506 212.492 38.8298 212.257C27.0567 199.754 27.0567 180.246 38.8298 167.743C39.0506 167.508 39.3157 167.238 39.8458 166.697C40.1639 166.372 40.323 166.21 40.4703 166.055C48.1056 158.055 51.1433 146.718 48.5311 135.972C48.4807 135.765 48.4242 135.544 48.311 135.104C48.1224 134.371 48.0282 134.004 47.9542 133.69C44.0098 116.976 53.7642 100.081 70.2114 95.1396C70.5199 95.0469 70.8847 94.9452 71.6143 94.7417C72.0522 94.6195 72.2711 94.5585 72.4758 94.4985C83.0884 91.3875 91.3875 83.0884 94.4985 72.4758C94.5585 72.2711 94.6195 72.0522 94.7417 71.6143C94.9452 70.8847 95.0469 70.5199 95.1396 70.2114C100.081 53.7642 116.976 44.0098 133.69 47.9542C134.004 48.0282 134.371 48.1224 135.104 48.311C135.544 48.4242 135.765 48.4807 135.972 48.5311C146.718 51.1433 158.055 48.1056 166.055 40.4703C166.21 40.323 166.372 40.1639 166.697 39.8458Z",burst:"M187.293 26.6421C188.056 25.2785 188.437 24.5966 188.902 24.3108C189.575 23.8964 190.425 23.8964 191.098 24.3108C191.563 24.5966 191.944 25.2785 192.707 26.6421L218.917 73.4925C219.386 74.3306 219.62 74.7497 219.937 75.0046C220.396 75.3737 220.989 75.5326 221.571 75.4425C221.973 75.3802 222.386 75.1345 223.211 74.6431L269.335 47.1743C270.677 46.3748 271.348 45.9751 271.893 45.9598C272.684 45.9377 273.42 46.3624 273.796 47.0581C274.055 47.5379 274.045 48.3191 274.023 49.8814L273.296 103.56C273.283 104.52 273.277 105 273.424 105.38C273.637 105.929 274.071 106.363 274.62 106.576C275 106.723 275.48 106.717 276.44 106.704L330.119 105.977C331.681 105.955 332.462 105.945 332.942 106.204C333.638 106.58 334.062 107.316 334.04 108.107C334.025 108.652 333.625 109.323 332.826 110.665L305.357 156.789C304.865 157.614 304.62 158.027 304.557 158.429C304.467 159.011 304.626 159.604 304.995 160.063C305.25 160.38 305.669 160.614 306.508 161.083L353.358 187.293C354.722 188.056 355.403 188.437 355.689 188.902C356.104 189.575 356.104 190.425 355.689 191.098C355.403 191.563 354.722 191.944 353.358 192.707L306.508 218.917C305.669 219.386 305.25 219.62 304.995 219.937C304.626 220.396 304.467 220.989 304.557 221.571C304.62 221.973 304.865 222.386 305.357 223.211L332.826 269.335C333.625 270.677 334.025 271.348 334.04 271.893C334.062 272.684 333.638 273.42 332.942 273.796C332.462 274.055 331.681 274.045 330.119 274.023L276.44 273.296C275.48 273.283 275 273.277 274.62 273.424C274.071 273.637 273.637 274.071 273.424 274.62C273.277 275 273.283 275.48 273.296 276.44L274.023 330.119C274.045 331.681 274.055 332.462 273.796 332.942C273.42 333.638 272.684 334.062 271.893 334.04C271.348 334.025 270.677 333.625 269.335 332.826L223.211 305.357C222.386 304.865 221.973 304.62 221.571 304.557C220.989 304.467 220.396 304.626 219.937 304.995C219.62 305.25 219.386 305.669 218.917 306.508L192.707 353.358C191.944 354.722 191.563 355.403 191.098 355.689C190.425 356.104 189.575 356.104 188.902 355.689C188.437 355.403 188.056 354.722 187.293 353.358L161.083 306.508C160.614 305.669 160.38 305.25 160.063 304.995C159.604 304.626 159.011 304.467 158.429 304.557C158.027 304.62 157.614 304.865 156.789 305.357L110.665 332.826C109.323 333.625 108.652 334.025 108.107 334.04C107.316 334.062 106.58 333.638 106.204 332.942C105.945 332.462 105.955 331.681 105.977 330.119L106.704 276.44C106.717 275.48 106.723 275 106.576 274.62C106.363 274.071 105.929 273.637 105.38 273.424C105 273.277 104.52 273.283 103.56 273.296L49.8814 274.023C48.3191 274.045 47.5379 274.055 47.0581 273.796C46.3624 273.42 45.9377 272.684 45.9598 271.893C45.9751 271.348 46.3748 270.677 47.1743 269.335L74.6431 223.211C75.1345 222.386 75.3802 221.973 75.4425 221.571C75.5326 220.989 75.3737 220.396 75.0046 219.937C74.7497 219.62 74.3306 219.386 73.4925 218.917L26.6421 192.707C25.2785 191.944 24.5966 191.563 24.3108 191.098C23.8964 190.425 23.8964 189.575 24.3108 188.902C24.5966 188.437 25.2785 188.056 26.6421 187.293L73.4925 161.083C74.3306 160.614 74.7497 160.38 75.0046 160.063C75.3737 159.604 75.5326 159.011 75.4425 158.429C75.3802 158.027 75.1345 157.614 74.6431 156.789L47.1743 110.665C46.3748 109.323 45.9751 108.652 45.9598 108.107C45.9377 107.316 46.3624 106.58 47.0581 106.204C47.5379 105.945 48.3191 105.955 49.8814 105.977L103.56 106.704C104.52 106.717 105 106.723 105.38 106.576C105.929 106.363 106.363 105.929 106.576 105.38C106.723 105 106.717 104.52 106.704 103.56L105.977 49.8814C105.955 48.3191 105.945 47.5379 106.204 47.0581C106.58 46.3624 107.316 45.9377 108.107 45.9598C108.652 45.9751 109.323 46.3748 110.665 47.1743L156.789 74.6431C157.614 75.1345 158.027 75.3802 158.429 75.4425C159.011 75.5326 159.604 75.3737 160.063 75.0046C160.38 74.7497 160.614 74.3306 161.083 73.4925L187.293 26.6421Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z",sunny:"M276.453 68.8118C286.405 69.4881 291.381 69.8263 295.404 71.5853C301.223 74.1305 305.87 78.7766 308.415 84.5965C310.174 88.6186 310.512 93.5948 311.188 103.547L312.732 126.259C313.005 130.284 313.142 132.296 313.579 134.219C314.212 136.997 315.31 139.648 316.827 142.059C317.877 143.728 319.203 145.248 321.856 148.288L336.824 165.438C343.384 172.954 346.663 176.712 348.263 180.8C350.579 186.715 350.579 193.285 348.263 199.2C346.663 203.288 343.384 207.046 336.824 214.562L321.856 231.712C319.203 234.752 317.877 236.272 316.827 237.941C315.31 240.352 314.212 243.003 313.579 245.781C313.142 247.704 313.005 249.716 312.732 253.741L311.188 276.453C310.512 286.405 310.174 291.381 308.415 295.404C305.87 301.223 301.223 305.87 295.404 308.415C291.381 310.174 286.405 310.512 276.453 311.188L253.741 312.732C249.716 313.005 247.704 313.142 245.781 313.579C243.003 314.212 240.352 315.31 237.941 316.827C236.272 317.877 234.752 319.203 231.712 321.856L214.562 336.824C207.046 343.384 203.288 346.663 199.2 348.263C193.285 350.579 186.715 350.579 180.8 348.263C176.712 346.663 172.954 343.384 165.438 336.824L148.288 321.856C145.248 319.203 143.728 317.877 142.059 316.827C139.648 315.31 136.997 314.212 134.219 313.579C132.296 313.142 130.284 313.005 126.259 312.732L103.547 311.188C93.5947 310.512 88.6186 310.174 84.5965 308.415C78.7766 305.87 74.1305 301.223 71.5853 295.404C69.8263 291.381 69.4881 286.405 68.8118 276.453L67.2684 253.741C66.9949 249.716 66.8581 247.704 66.4206 245.781C65.7883 243.003 64.6903 240.352 63.173 237.941C62.123 236.272 60.7965 234.752 58.1437 231.712L43.1756 214.562C36.6164 207.046 33.3369 203.288 31.7366 199.2C29.4211 193.285 29.4211 186.715 31.7366 180.8C33.3369 176.712 36.6164 172.954 43.1756 165.438L58.1437 148.288C60.7965 145.248 62.123 143.728 63.173 142.059C64.6903 139.648 65.7883 136.997 66.4206 134.219C66.8581 132.296 66.9949 130.284 67.2684 126.259L68.8118 103.547C69.4881 93.5948 69.8263 88.6186 71.5853 84.5965C74.1305 78.7766 78.7766 74.1305 84.5965 71.5853C88.6186 69.8263 93.5948 69.4881 103.547 68.8118L126.259 67.2684C130.284 66.9949 132.296 66.8581 134.219 66.4206C136.997 65.7883 139.648 64.6903 142.059 63.173C143.728 62.123 145.248 60.7966 148.288 58.1437L165.438 43.1756C172.954 36.6164 176.712 33.3369 180.8 31.7366C186.715 29.4211 193.285 29.4211 199.2 31.7366C203.288 33.3369 207.046 36.6164 214.562 43.1756L231.712 58.1437C234.752 60.7966 236.272 62.123 237.941 63.173C240.352 64.6903 243.003 65.7883 245.781 66.4206C247.704 66.8581 249.716 66.9949 253.741 67.2684L276.453 68.8118Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z",bun:"M38.875 113.322C38.875 69.5137 74.3887 34 118.197 34H261.803C305.611 34 341.125 69.5137 341.125 113.322C341.125 149.45 316.972 179.937 283.932 189.516C283.717 189.579 283.567 189.776 283.567 190C283.567 190.224 283.717 190.421 283.932 190.484C316.972 200.063 341.125 230.55 341.125 266.678C341.125 310.486 305.611 346 261.803 346H118.197C74.3887 346 38.875 310.486 38.875 266.678C38.875 230.785 62.7138 200.461 95.422 190.674C95.72 190.585 95.9264 190.311 95.9264 190C95.9264 189.689 95.72 189.415 95.422 189.326C62.7138 179.539 38.875 149.214 38.875 113.322Z",boom:"M186.738 36.413C187.51 30.2399 187.896 27.1534 188.483 26.6019C189.337 25.7994 190.663 25.7994 191.517 26.6019C192.104 27.1534 192.49 30.2399 193.262 36.413L203.079 114.907C203.39 117.398 203.546 118.644 203.993 119.158C204.642 119.904 205.703 120.131 206.598 119.715C207.214 119.428 207.861 118.353 209.153 116.205L249.875 48.5119C253.078 43.1883 254.679 40.5264 255.438 40.2626C256.543 39.8785 257.754 40.4209 258.21 41.5032C258.522 42.247 257.626 45.2245 255.834 51.1796L233.049 126.902C232.326 129.305 231.964 130.507 232.165 131.159C232.456 132.107 233.333 132.748 234.319 132.733C234.998 132.723 236.023 132.006 238.073 130.572L302.659 85.3844C307.738 81.8306 310.278 80.0538 311.078 80.1231C312.243 80.2241 313.13 81.2151 313.108 82.39C313.093 83.1974 311.07 85.5511 307.024 90.2585L255.576 150.116C253.943 152.016 253.126 152.966 253.045 153.644C252.928 154.628 253.47 155.573 254.377 155.963C255.001 156.231 256.228 155.995 258.681 155.524L335.963 140.655C342.041 139.485 345.08 138.901 345.783 139.291C346.806 139.86 347.215 141.128 346.72 142.192C346.38 142.924 343.579 144.247 337.979 146.893L266.764 180.536C264.503 181.604 263.373 182.137 263.025 182.724C262.52 183.575 262.633 184.66 263.304 185.387C263.765 185.887 264.981 186.173 267.413 186.745L344.029 204.766C350.054 206.184 353.067 206.892 353.551 207.537C354.256 208.474 354.117 209.8 353.234 210.57C352.627 211.099 349.534 211.163 343.347 211.289L264.679 212.901C262.182 212.952 260.933 212.977 260.378 213.371C259.572 213.942 259.237 214.979 259.555 215.917C259.774 216.563 260.77 217.322 262.76 218.839L325.462 266.634C330.393 270.393 332.858 272.272 333.04 273.059C333.304 274.203 332.641 275.358 331.523 275.7C330.755 275.935 327.903 274.728 322.2 272.314L249.681 241.615C247.379 240.641 246.228 240.153 245.562 240.286C244.595 240.478 243.869 241.288 243.78 242.275C243.719 242.955 244.321 244.055 245.526 246.255L283.472 315.559C286.456 321.01 287.948 323.735 287.796 324.528C287.574 325.682 286.501 326.466 285.341 326.321C284.544 326.221 282.428 323.952 278.194 319.415L224.364 261.714C222.655 259.882 221.801 258.966 221.139 258.815C220.177 258.594 219.187 259.038 218.706 259.904C218.375 260.5 218.48 261.751 218.691 264.253L225.32 343.084C225.841 349.283 226.102 352.383 225.642 353.045C224.973 354.009 223.676 354.286 222.675 353.679C221.987 353.263 220.971 350.324 218.939 344.447L193.105 269.721C192.285 267.349 191.875 266.163 191.332 265.754C190.542 265.16 189.458 265.16 188.668 265.754C188.125 266.163 187.715 267.349 186.895 269.721L161.061 344.447C159.029 350.324 158.013 353.263 157.325 353.679C156.324 354.286 155.027 354.009 154.358 353.045C153.898 352.383 154.159 349.283 154.68 343.084L161.309 264.253C161.52 261.751 161.625 260.5 161.294 259.904C160.813 259.038 159.823 258.594 158.861 258.815C158.199 258.966 157.345 259.882 155.636 261.714L101.806 319.415C97.5724 323.952 95.4556 326.221 94.6586 326.321C93.4987 326.466 92.4257 325.682 92.2041 324.528C92.0519 323.735 93.544 321.01 96.5282 315.559L134.474 246.255C135.679 244.055 136.281 242.955 136.22 242.275C136.131 241.288 135.405 240.478 134.438 240.286C133.772 240.153 132.621 240.641 130.319 241.615L57.8002 272.314C52.097 274.728 49.2455 275.935 48.4771 275.7C47.3589 275.358 46.6958 274.203 46.9601 273.059C47.1418 272.272 49.6074 270.393 54.5385 266.634L117.24 218.839C119.23 217.322 120.226 216.563 120.445 215.917C120.763 214.979 120.428 213.942 119.622 213.371C119.067 212.977 117.818 212.952 115.321 212.901L36.6531 211.289C30.4664 211.163 27.373 211.099 26.7662 210.57C25.8831 209.8 25.7445 208.474 26.449 207.537C26.9332 206.892 29.9459 206.184 35.9713 204.766L112.587 186.745C115.019 186.173 116.235 185.887 116.697 185.387C117.367 184.66 117.48 183.575 116.975 182.724C116.627 182.137 115.497 181.604 113.236 180.536L42.0212 146.893C36.4205 144.247 33.6202 142.924 33.2799 142.192C32.7846 141.128 33.1944 139.86 34.2174 139.291C34.9204 138.901 37.9592 139.485 44.037 140.655L121.319 155.524C123.772 155.995 124.999 156.231 125.623 155.963C126.53 155.573 127.072 154.628 126.955 153.644C126.874 152.966 126.057 152.016 124.424 150.116L72.9761 90.2585C68.93 85.5511 66.907 83.1974 66.8919 82.39C66.87 81.2151 67.7575 80.2241 68.922 80.1231C69.7222 80.0538 72.2618 81.8306 77.3411 85.3844L141.927 130.572C143.977 132.006 145.002 132.723 145.681 132.733C146.667 132.748 147.544 132.107 147.835 131.159C148.036 130.507 147.674 129.305 146.951 126.902L124.166 51.1796C122.374 45.2245 121.478 42.247 121.79 41.5032C122.246 40.4209 123.457 39.8785 124.562 40.2626C125.321 40.5264 126.922 43.1883 130.125 48.5119L170.847 116.205C172.139 118.354 172.786 119.428 173.402 119.715C174.297 120.131 175.358 119.904 176.007 119.158C176.454 118.644 176.61 117.398 176.921 114.907L186.738 36.413Z",arch:"M345 293.727C345 299.96 345 303.076 344.689 305.696C342.259 326.14 326.14 342.259 305.696 344.689C303.076 345 299.96 345 293.727 345H86.2732C80.0405 345 76.9242 345 74.3043 344.689C53.8596 342.259 37.7407 326.14 35.3113 305.696C35 303.076 35 299.96 35 293.727L35 190C35 104.396 104.396 35 190 35C275.604 35 345 104.396 345 190V293.727Z",arrow:"M262.422 104.907C253.213 90.2936 243.84 75.4777 231.389 63.8739C218.938 52.2412 202.808 44.023 186.27 45.0937C171.748 46.0486 158.288 54.0932 147.662 64.5974C137.036 75.1015 128.781 88.0365 120.661 100.856C98.7011 135.464 76.7136 170.073 54.7533 204.711C44.3181 221.147 33.6105 238.307 30.7224 257.898C27.2349 281.568 36.6348 305.673 53.3093 321.415C70.7467 337.88 99.0008 336.549 120.225 332.035C143.493 327.086 166.244 317.769 189.975 317.797C210.301 317.797 229.945 324.685 249.726 329.691C269.479 334.668 290.704 337.735 309.776 330.327C333.453 321.154 350.454 295.082 349.991 268.315C349.555 243.892 323.508 201.759 323.508 201.759C323.508 201.759 282.78 137.194 262.422 104.907Z",diamond:"M247.442 306.481C230.606 328.514 222.188 339.53 212.466 344.548C198.383 351.817 181.617 351.817 167.534 344.548C157.812 339.53 149.394 328.514 132.558 306.481L76.646 233.308C66.4059 219.906 61.2859 213.206 58.7505 206.032C55.0832 195.654 55.0832 184.346 58.7505 173.968C61.2859 166.794 66.4059 160.094 76.6461 146.692L132.558 73.5194C149.394 51.4863 157.812 40.4697 167.534 35.4518C181.617 28.1827 198.383 28.1827 212.466 35.4518C222.188 40.4697 230.606 51.4863 247.442 73.5195L303.354 146.692C313.594 160.094 318.714 166.794 321.249 173.968C324.917 184.346 324.917 195.654 321.249 206.032C318.714 213.206 313.594 219.906 303.354 233.308L247.442 306.481Z",fan:"M40 87.3684C40 85.697 40 84.8613 40.0219 84.1547C40.7686 60.0969 60.0969 40.7686 84.1547 40.0219C84.8613 40 85.697 40 87.3684 40C96.2825 40 100.74 40 104.508 40.117C232.816 44.0992 335.901 147.184 339.883 275.492C340 279.26 340 283.717 340 292.632C340 294.303 340 295.139 339.978 295.845C339.231 319.903 319.903 339.231 295.845 339.978C295.139 340 294.303 340 292.632 340H107.441C87.0642 340 76.8757 340 68.7935 336.8C57.0947 332.168 47.8318 322.905 43.2 311.207C40 303.124 40 292.936 40 272.559V87.3684Z",flower:"M303.126 76.8625C291.251 64.988 264.194 70.8597 231.547 89.6813C221.771 53.2855 206.79 30 189.996 30C173.203 30 158.223 53.2841 148.447 89.6779C115.802 70.8581 88.7463 64.9874 76.8722 76.8614C64.997 88.7367 70.8701 115.796 89.6945 148.446C53.2912 158.222 30 173.204 30 190C30 206.793 53.283 221.773 89.6753 231.549C70.8495 264.2 64.9757 291.261 76.8513 303.137C88.7274 315.013 115.79 309.138 148.444 290.31C158.22 326.711 173.201 350 189.996 350C206.792 350 221.774 326.709 231.55 290.307C264.205 309.136 291.27 315.012 303.146 303.136C315.022 291.26 309.148 264.2 290.323 231.549C326.716 221.773 350 206.793 350 190C350 173.204 326.708 158.222 290.304 148.446C309.128 115.797 315.001 88.7376 303.126 76.8625Z",gem:"M133.415 65.7498C150.981 52.991 159.763 46.6116 169.124 43.4402C182.663 38.8533 197.337 38.8533 210.876 43.4402C220.237 46.6116 229.019 52.991 246.585 65.7498L286.083 94.4402C296.514 102.017 301.729 105.805 305.981 110.353C312.125 116.926 316.839 124.702 319.823 133.189C321.888 139.062 322.834 145.437 324.725 158.189L332.038 207.501C335.355 229.87 337.014 241.055 335.34 251.136C332.918 265.718 325.6 279.04 314.59 288.907C306.979 295.728 296.649 300.329 275.987 309.532L229.176 330.382C216.707 335.935 210.473 338.712 204.064 340.131C194.8 342.182 185.2 342.182 175.936 340.131C169.527 338.712 163.293 335.935 150.824 330.382L104.013 309.532C83.3515 300.329 73.0207 295.728 65.4097 288.907C54.4005 279.04 47.0819 265.718 44.6602 251.136C42.9859 241.055 44.6447 229.87 47.9621 207.501L55.2752 158.189C57.1662 145.437 58.1117 139.062 60.1768 133.189C63.1612 124.702 67.8747 116.926 74.0191 110.353C78.2706 105.805 83.4862 102.017 93.9172 94.4402L133.415 65.7498Z","ghost-ish":"M40 182.857C40 103.959 107.157 40 190 40C272.843 40 340 103.959 340 182.857L340 282.857C340 314.416 313.137 340 280 340C270.178 340 260.907 337.752 252.724 333.768C248.554 331.737 244.394 329.512 240.216 327.277C225.513 319.411 210.592 311.429 194.27 311.429H185.73C169.408 311.429 154.487 319.411 139.784 327.277C135.606 329.512 131.446 331.737 127.276 333.768C119.093 337.752 109.822 340 100 340C66.8629 340 40 314.416 40 282.857L40 182.857Z",heart:"M281.1 47.134C259.439 47.134 240.113 57.3021 227.481 73.1973L190 114.513V114.379L152.519 73.0633C139.887 57.1681 120.561 47 98.8995 47C60.8478 47 30 78.3656 30 117.059C30 151.058 58.3751 176.471 78.9187 200.884C99.3895 225.205 119.856 249.523 140.323 273.844L186.272 328.437C187.516 329.914 188.756 331.388 190 332.866V333C191.244 331.522 192.484 330.048 193.728 328.571C209.043 310.375 224.358 292.178 239.677 273.978C260.144 249.657 280.614 225.339 301.081 201.018C321.625 176.608 350 151.196 350 117.193C350 78.4996 319.152 47.134 281.1 47.134Z",hexagon:"M360.196 147.081C367.995 160.591 371.894 167.346 373.864 174.403C376.712 184.606 376.712 195.394 373.864 205.597C371.894 212.654 367.995 219.409 360.196 232.919L336.437 274.079C328.638 287.589 324.738 294.344 319.613 299.58C312.202 307.148 302.86 312.543 292.601 315.177C285.505 317 277.706 317 262.108 317L117.892 317C102.294 317 94.4949 317 87.399 315.178C77.1398 312.543 67.798 307.149 60.3873 299.58C55.2616 294.345 51.3621 287.589 43.5632 274.079L19.8039 232.919C12.0054 219.409 8.10612 212.654 6.13613 205.597C3.28796 195.394 3.28796 184.606 6.13613 174.403C8.10613 167.346 12.0054 160.591 19.804 147.081L43.5632 105.921C51.3622 92.4107 55.2616 85.6554 60.3874 80.4202C67.798 72.8514 77.1398 67.457 87.3989 64.8224C94.4949 63.0002 102.294 63.0002 117.892 63.0002L262.108 63C277.706 63 285.505 63 292.601 64.8222C302.86 67.4567 312.202 72.8511 319.613 80.42C324.738 85.6551 328.638 92.4104 336.437 105.921L360.196 147.081Z","pixel-circle":"M253.556 34H126.444V54.2217H83.1111V80.2222H57.1111V126.444H34V253.556H57.1111V299.778H83.1111V325.777H126.444V346H253.556V325.777H296.889V299.778H322.889V253.556H346V126.444H322.889V80.2222H296.889V54.2217H253.556V34Z","pixel-triangle":"M121.641 30H66V350H121.641V322.174H164.564V295.739H209.077V265.13H245.641V240.086H282.205V209.478H314V170.522H282.205V139.912H245.641V114.869H209.077V84.2609H164.564V57.8262H121.641V30Z",puffy:"M371.982 187.559C371.686 165.488 353.541 147.816 331.439 148.112C330.218 148.112 329.016 148.204 327.832 148.334C328.757 147.576 329.663 146.799 330.532 145.949C346.365 130.551 346.698 105.226 331.291 89.4031C330.384 88.4788 329.478 87.5546 328.553 86.6673C312.721 71.2692 287.4 71.6019 271.974 87.4252C271.123 88.294 270.347 89.1997 269.588 90.124C269.718 88.9409 269.792 87.7394 269.81 86.5194C270.125 64.4482 252.443 46.3142 230.359 46C229.711 46 229.064 46 228.417 46H227.103C210.734 46 196.696 55.8341 190.5 69.9013C184.304 55.8341 170.247 46 153.897 46H152.583C151.936 46 151.289 46 150.641 46C128.557 46.2958 110.875 64.4297 111.171 86.5194C111.171 87.7394 111.264 88.9409 111.393 90.124C110.635 89.1997 109.858 88.294 109.007 87.4252C93.6001 71.6019 68.2608 71.2692 52.4283 86.6673C51.5035 87.573 50.5787 88.4788 49.6909 89.4031C34.2839 105.226 34.6168 130.532 50.4493 145.949C51.3186 146.799 52.2249 147.576 53.1497 148.334C51.9659 148.204 50.7637 148.13 49.543 148.112C27.4589 147.816 9.31443 165.488 9 187.559C9 188.206 9 188.853 9 189.5C9 190.147 9 190.794 9 191.441C9.29593 213.512 27.4404 231.184 49.543 230.888C50.7637 230.888 51.9659 230.796 53.1497 230.666C52.2249 231.424 51.3186 232.201 50.4493 233.051C34.6168 248.449 34.2839 273.774 49.6909 289.597C50.5972 290.521 51.5035 291.445 52.4283 292.333C68.2608 307.731 93.5816 307.398 109.007 291.575C109.858 290.706 110.635 289.8 111.393 288.876C111.264 290.059 111.19 291.261 111.171 292.481C110.875 314.552 128.539 332.704 150.641 333C151.289 333 151.936 333 152.583 333H153.897C170.266 333 184.304 323.166 190.5 309.099C196.696 323.166 210.753 333 227.103 333H228.417C229.064 333 229.711 333 230.359 333C252.443 332.704 270.125 314.57 269.829 292.481C269.829 291.261 269.736 290.059 269.607 288.876C270.365 289.8 271.142 290.706 271.993 291.575C287.4 307.398 312.739 307.731 328.572 292.333C329.496 291.427 330.421 290.521 331.309 289.597C346.716 273.774 346.383 248.468 330.551 233.051C329.681 232.201 328.775 231.424 327.85 230.666C329.034 230.796 330.236 230.87 331.457 230.888C353.541 231.184 371.704 213.531 372 191.441C372 190.794 372 190.147 372 189.5C372 188.853 372 188.206 372 187.559H371.982Z","puffy-diamond":"M279.397 279.754C291.485 267.666 295.573 250.608 291.663 235.157C307.124 239.086 324.202 235.001 336.3 222.902C354.567 204.636 354.567 175.02 336.3 156.754C324.273 144.727 307.325 140.619 291.936 144.43C295.368 129.286 291.188 112.766 279.397 100.975C267.282 88.8601 250.174 84.7804 234.696 88.736C238.798 73.1705 234.747 55.9026 222.544 43.6997C204.278 25.4334 174.662 25.4334 156.396 43.6997C144.266 55.83 140.191 72.9655 144.172 88.4584C129.001 84.9862 112.435 89.1585 100.618 100.975C88.8257 112.767 84.6462 129.289 88.0792 144.434C72.6865 140.616 55.7312 144.723 43.6997 156.754C25.4334 175.02 25.4334 204.636 43.6997 222.902C55.8026 235.005 72.8879 239.089 88.3531 235.153C84.4405 250.605 88.5288 267.665 100.618 279.754C112.385 291.521 128.862 295.708 143.98 292.314C140.328 307.602 144.467 324.371 156.396 336.3C174.662 354.567 204.278 354.567 222.544 336.3C234.544 324.301 238.661 307.403 234.894 292.043C250.32 295.914 267.333 291.817 279.397 279.754Z",semicircle:"M350 256.921C350 275.19 335.19 290 316.921 290L63.0794 290C44.8102 290 30 275.19 30 256.921L30 250C30 161.634 101.634 90 190 90C278.366 90 350 161.634 350 250V256.921Z",slanted:"M45.7147 120.543C48.289 95.9642 49.5761 83.6748 54.3025 73.9777C61.142 59.9453 73.0768 49.1101 87.6278 43.7229C97.6833 40 109.933 40 134.432 40H258.137C287.764 40 302.578 40 313.887 44.8539C330.261 51.8819 342.72 65.8495 347.927 83.0153C351.523 94.8709 349.967 109.733 346.854 139.457L334.285 259.457C331.711 284.036 330.424 296.325 325.697 306.022C318.858 320.055 306.923 330.89 292.372 336.277C282.317 340 270.067 340 245.568 340H121.863C92.2359 340 77.4221 340 66.1134 335.146C49.7395 328.118 37.2802 314.151 32.0729 296.985C28.4765 285.129 30.0331 270.267 33.1463 240.543L45.7147 120.543Z","soft-boom":"M204.57 116.822C226.539 6.39254 153.487 6.39254 175.457 116.822C153.487 6.39254 85.9934 34.3433 148.549 127.966C85.9934 34.3433 34.3433 85.9934 127.966 148.549C34.3433 85.9934 6.39254 153.487 116.822 175.444C6.39254 153.474 6.39254 226.526 116.822 204.556C6.39254 226.526 34.3565 294.007 127.966 231.451C34.3565 294.007 86.0066 345.657 148.549 252.034C85.9934 345.644 153.487 373.594 175.444 263.178C153.474 373.607 226.526 373.607 204.556 263.178C226.526 373.607 294.007 345.644 231.451 252.034C294.007 345.644 345.657 293.993 252.034 231.451C345.644 294.007 373.594 226.513 263.178 204.556C373.607 226.526 373.607 153.474 263.178 175.444C373.607 153.474 345.644 85.9934 252.034 148.549C345.644 85.9934 293.993 34.3433 231.451 127.966C294.007 34.3565 226.513 6.40574 204.556 116.822H204.57Z",square:"M350 202C350 246.717 350 269.076 342.978 286.812C332.813 312.485 312.485 332.813 286.812 342.978C269.076 350 246.717 350 202 350H178C133.283 350 110.924 350 93.1875 342.978C67.5145 332.813 47.187 312.485 37.0223 286.812C30 269.076 30 246.717 30 202L30 178C30 133.283 30 110.924 37.0224 93.1875C47.187 67.5145 67.5146 47.187 93.1876 37.0223C110.924 30 133.283 30 178 30L202 30C246.717 30 269.076 30 286.812 37.0224C312.485 47.187 332.813 67.5146 342.978 93.1876C350 110.924 350 133.283 350 178V202Z",circle:"M350 190C350 278.366 278.366 350 190 350C101.634 350 30 278.366 30 190C30 101.634 101.634 30 190 30C278.366 30 350 101.634 350 190Z",triangle:"M136.461 98.2021C151.597 71.8217 159.165 58.6315 168.342 53.0594C181.648 44.9802 198.352 44.9802 211.658 53.0594C220.835 58.6315 228.403 71.8217 243.539 98.2021L325.309 240.72C340.3 266.847 347.795 279.911 347.993 290.585C348.28 306.06 339.949 320.418 326.364 327.864C316.994 333 301.919 333 271.77 333H108.23C78.0806 333 63.006 333 53.636 327.864C40.0505 320.418 31.7204 306.06 32.0072 290.585C32.2049 279.911 39.7003 266.847 54.6909 240.72L136.461 98.2021Z"};let Yw=new Array;const Kw=new Map;for(const e in jw)Yw.push(jw[e]),Kw.set(e,Yw.length-1);const Zw={};Yw=ye(Yw,300);for(const e of Kw)Zw[e[0]]=o(Yw[e[1]]);const Gw=Zw;const Xw=[...Object.getOwnPropertyNames(Gw).map(e=>function(e){return i`:host([name="${o(e)}"]) .wrapper { clip-path: polygon(${Gw[e]}); }`}(e))];let Jw=class extends r{constructor(){super(...arguments),this.name=null}render(){return s`<div class="wrapper"><slot></slot></div>`}};var Qw,ek,tk,ak,ok,ik;Jw.styles=[Nw,Xw],t([m({reflect:!0})],Jw.prototype,"name",void 0),Jw=t([$("m3e-shape")],Jw);let rk=class extends(M(r)){constructor(){super(...arguments),Qw.add(this),ek.set(this,new Map),this.shape="auto",this.animation="wave",this.loaded=!1}disconnectedCallback(){super.disconnectedCallback(),e(this,Qw,"m",ak).call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,Qw,"m",ok).call(this)}render(){return s`<slot ?inert="${!this.loaded}" @slotchange="${e(this,Qw,"m",tk)}"></slot>`}};var sk,nk,lk,ck,dk;ek=new WeakMap,Qw=new WeakSet,tk=async function(){e(this,Qw,"m",ok).call(this)},ak=function(){for(const t of e(this,ek,"f"))t[0].remove(),t[1]();e(this,ek,"f").clear()},ok=async function(){e(this,Qw,"m",ak).call(this);const t=this.shadowRoot?.querySelector("slot");if(t)for(const a of t.assignedElements({flatten:!0}).filter(e=>e instanceof HTMLElement))await e(this,Qw,"m",ik).call(this,a)},ik=async function(t){await Se(t);const a=document.createElement("div");if(a.classList.add("shape"),"auto"===this.shape){let e=getComputedStyle(t).borderRadius;if(!e||"0px"===e){const a=t.shadowRoot?.firstElementChild;a&&!a.nextElementSibling&&(e=getComputedStyle(a).borderRadius)}e&&"0px"!==e&&(a.style.borderRadius=e)}const o=await Re(a,t,{position:"bottom"},(e,o)=>{a.style.left=`${e}px`,a.style.top=o-t.clientHeight+"px",a.style.width=`${t.clientWidth}px`,a.style.height=`${t.clientHeight}px`});e(this,ek,"f").set(a,o),this.shadowRoot?.appendChild(a)},(()=>{if(void 0!==window){F(i`@property --_m3e-skeleton-wave-pct { syntax: "<number>"; inherits: true; initial-value: 0; } @property --_m3e-skeleton-pulse-norm { syntax: "<number>"; inherits: true; initial-value: 0; } :root { --_m3e-skeleton-wave-span: 40vw; --_m3e-skeleton-pulse-min: 0.06; }</number></number>`);const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(forced-colors: active)");let a=null,o=null;function r(){a=document.documentElement.animate([{"--_m3e-skeleton-wave-pct":0},{"--_m3e-skeleton-wave-pct":1}],{duration:2100,iterations:1/0,easing:"linear"}),o=document.documentElement.animate([{"--_m3e-skeleton-pulse-norm":0},{"--_m3e-skeleton-pulse-norm":1},{"--_m3e-skeleton-pulse-norm":0}],{duration:1200,iterations:1/0,easing:"ease-in-out"})}function s(){e.matches||t.matches?(a?.pause(),o?.pause()):(a?.play(),o?.play())}r(),s(),e.addEventListener("change",s),t.addEventListener("change",s)}})(),rk.styles=i`:host { display: contents; } .shape { position: absolute; overflow: hidden; pointer-events: none; opacity: 1; background-color: var(--m3e-skeleton-color, ${v.color.surface}); } .shape::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: color-mix( in srgb, var(--m3e-skeleton-tint-color, ${v.color.onSurface}) var(--m3e-skeleton-tint-opacity, 8%), transparent ); } :host(:not([loaded])) slot { visibility: hidden; } :host([loaded]) .shape { opacity: 0; transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}`)}; } :host([shape="rounded"]) .shape { border-radius: var(--m3e-skeleton-rounded-shape, var(--m3e-skeleton-shape, ${v.shape.corner.large})); } :host([shape="circular"]) .shape { border-radius: var(--m3e-skeleton-circular-shape, var(--m3e-skeleton-shape, ${v.shape.corner.full})); } :host([shape="square"]) .shape { border-radius: var(--m3e-skeleton-square-shape, var(--m3e-skeleton-shape, 0px)); } :host([animation="pulse"]:not([loaded])) .shape::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: calc( var(--m3e-skeleton-accent-opacity, 0.06) + (1 - var(--m3e-skeleton-accent-opacity, 0.06)) * var(--_m3e-skeleton-pulse-norm) ); background-color: var(--m3e-skeleton-tint-color, ${v.color.surfaceDim}); } :host([animation="wave"]:not([loaded])) .shape::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient( 90deg, transparent 0%, transparent 35%, var(--m3e-skeleton-accent-color, ${v.color.onSurface}) 50%, transparent 65%, transparent 100% ); background-attachment: fixed; background-size: calc(100vw + var(--_m3e-skeleton-wave-span) * 2) 100%; background-position-x: calc( var(--_m3e-skeleton-wave-pct) * (100vw + var(--_m3e-skeleton-wave-span) * 2) - var(--_m3e-skeleton-wave-span) ); opacity: var(--m3e-skeleton-accent-opacity, 0.06); } @media (forced-colors: active) { :host([loaded]) .shape { transition: none; } .shape::after { display: none; } .shape { background-color: GrayText; } } @media (prefers-reduced-motion) { :host([loaded]) .shape { transition: none; } .shape::after { display: none; } }`,t([m({reflect:!0})],rk.prototype,"shape",void 0),t([m({reflect:!0})],rk.prototype,"animation",void 0),t([m({type:Boolean,reflect:!0})],rk.prototype,"loaded",void 0),rk=t([$("m3e-skeleton")],rk);let hk=class extends(M(r)){constructor(){super(...arguments),sk.add(this),nk.set(this,void 0),lk.set(this,new A(this,{target:null,callback:()=>this._updatePaging()})),this._canPage=!1,this._canPageStart=!1,this._canPageEnd=!1,this.disabled=!1,this.vertical=!1,this.threshold=0,this.previousPageLabel="Previous page",this.nextPageLabel="Next page"}connectedCallback(){super.connectedCallback(),a(this,nk,qe.observe(()=>this.requestUpdate()),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,nk,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,lk,"f").observe(this.scrollContainer)}firstUpdated(t){super.firstUpdated(t),e(this,lk,"f").observe(this.scrollContainer)}render(){const t=s`<m3e-icon-button class="prev-button" tabindex="-1" aria-label="${this.previousPageLabel}" ?disabled="${!this._canPageStart}" @click="${e(this,sk,"m",ck)}"><slot name="prev-icon">${"ltr"===qe.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`}</slot></m3e-icon-button>`,a=s`<m3e-icon-button class="next-button" tabindex="-1" aria-label="${this.nextPageLabel}" ?disabled="${!this._canPageEnd}" @click="${e(this,sk,"m",dk)}"><slot name="next-icon">${"ltr"===qe.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`}</slot></m3e-icon-button>`;return s`${this._canPage?t:n}<div class="content" @scroll="${this._updatePaging}"><slot></slot></div>${this._canPage?a:n}`}_updatePaging(){this.disabled?this._canPage=!1:this.vertical?(this._canPage=Math.round(this.scrollContainer.scrollHeight)>Math.round(this.scrollContainer.clientHeight)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollTop)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollTop)+ +this.threshold<Math.round(this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight))):(this._canPage=Math.round(this.scrollContainer.scrollWidth)>Math.round(this.scrollContainer.clientWidth)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollLeft)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollLeft)+this.threshold<Math.round(this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth))),this._canPage||(this._canPageStart=this._canPageEnd=!1)}};var mk,pk;nk=new WeakMap,lk=new WeakMap,sk=new WeakSet,ck=function(){if(this.vertical){let e=this.scrollContainer.scrollTop-this.scrollContainer.clientHeight;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft-this.scrollContainer.clientWidth;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},dk=function(){if(this.vertical){let e=this.scrollContainer.scrollTop+this.scrollContainer.clientHeight;e>=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight-this.threshold&&(e=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft+this.scrollContainer.clientWidth;e>=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth-this.threshold&&(e=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},hk.styles=i`:host { display: flex; flex-wrap: nowrap; overflow: hidden; } :host([vertical]) { flex-direction: column; } .prev-button, .next-button { flex: none; --m3e-icon-button-small-shape-round: 0px; --m3e-icon-button-small-shape-square: 0px; --m3e-icon-button-small-shape-pressed-morph: 0px; --m3e-focus-ring-visibility: hidden; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-slide-group-button-icon-size, var(--m3e-icon-button-small-icon-size, 1.5rem)) !important; } :host(:not([vertical])) .prev-button, :host(:not([vertical])) .next-button { --m3e-icon-button-small-container-height: 100%; width: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button, :host([vertical]) .next-button { width: unset; --m3e-icon-button-small-container-height: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button .icon, :host([vertical]) .next-button .icon { transform: rotate(90deg); } .content { flex: 1 1 auto; display: inherit; flex-wrap: inherit; flex-direction: inherit; overflow: inherit; position: relative; border-top: var(--m3e-slide-group-divider-top); border-bottom: var(--m3e-slide-group-divider-bottom); }`,t([h(".content")],hk.prototype,"scrollContainer",void 0),t([u()],hk.prototype,"_canPage",void 0),t([u()],hk.prototype,"_canPageStart",void 0),t([u()],hk.prototype,"_canPageEnd",void 0),t([m({type:Boolean,reflect:!0})],hk.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],hk.prototype,"vertical",void 0),t([m({type:Number})],hk.prototype,"threshold",void 0),t([m({attribute:"previous-page-label"})],hk.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],hk.prototype,"nextPageLabel",void 0),t([y(40)],hk.prototype,"_updatePaging",null),hk=t([$("m3e-slide-group")],hk);let uk=class extends(te(ae(se(N(Y(P(f(r,"slider")))))))){constructor(){super(...arguments),mk.add(this),this.value=null}get[(mk=new WeakSet,le)](){return this.value?.toString()??null}focus(e){this._focusRing&&(this._focusRing.disabled=!0),super.focus(e),this._focusRing&&(this._focusRing.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e),this._focusRing?.attach(this)}update(e){super.update(e),e.has("value")&&this.dispatchEvent(new Event("value-change",{bubbles:!0}))}render(){return s`<div class="label" aria-hidden="true">${e(this,mk,"a",pk)}</div><div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="handle"></div></div></div>`}};var vk,bk,fk,gk,yk,$k,xk,wk,kk,Ck,Sk,_k,Lk,Ek,zk,Mk,Tk,Pk,Ik,Wk,Dk;pk=function(){return this.closest("m3e-slider")?.displayWith?.(this.value)??this.value?.toString()??""},uk.styles=i`:host { display: block; box-sizing: border-box; position: absolute; outline: none; top: 0; bottom: 0; border-radius: var(--m3e-slider-thumb-shape, ${v.shape.corner.full}); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; border-radius: inherit; } .touch { position: absolute; height: 3rem; left: 0; right: 0; touch-action: none; } .wrapper { display: inline-flex; justify-content: center; height: 100%; border-radius: inherit; width: calc(var(--m3e-slider-thumb-width, 0.25rem) + calc(var(--m3e-slider-thumb-padding, 0.375em) * 2)); } .focus-ring { top: calc(0px - var(--m3e-focus-ring-thickness, 3px)); bottom: calc(0px - var(--m3e-focus-ring-thickness, 3px)); left: var(--m3e-focus-ring-thickness, 3px); right: var(--m3e-focus-ring-thickness, 3px); } .label { user-select: none; position: absolute; display: flex; align-items: center; justify-content: center; visibility: var(--_slider-label-visibility, hidden); opacity: var(--_slider-label-opacity, 0); transform: var(--_slider-label-transform, scale(0)); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; width: var(--m3e-slider-label-width, 3rem); height: var(--_m3e-slider-label-height, 2.75rem); top: calc(0px - var(--_m3e-slider-label-height, 2.75rem) - var(--_m3e-slider-label-margin, 0.25rem)); inset-inline-start: calc(0px - 100%); border-radius: var(--m3e-slider-label-shape, ${v.shape.corner.full}); background-color: var(--m3e-slider-label-container-color, ${v.color.inverseSurface}); color: var(--m3e-slider-label-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-slider-label-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var(--m3e-slider-label-font-weight, ${v.typescale.standard.label.medium.fontWeight}); line-height: var(--m3e-slider-label-line-height, ${v.typescale.standard.label.medium.lineHeight}); letter-spacing: var(--m3e-slider-label-tracking, ${v.typescale.standard.label.medium.tracking}); } @starting-style { .label { opacity: 0; transform: scale(0); } } .handle { height: 100%; width: var(--m3e-slider-thumb-width, 0.25rem); border-radius: inherit; transition: ${o(`width ${v.motion.duration.short2} ${v.motion.easing.standard}`)}; } :host(:active:not([aria-disabled="true"])) .handle { width: var(--m3e-slider-thumb-pressed-width, 2px); } :host(:not([aria-disabled="true"])) .handle { background-color: var(--m3e-slider-thumb-color, ${v.color.primary}); } :host([aria-disabled="true"]) .handle { opacity: var(--m3e-slider-thumb-disabled-opacity, 38%); background-color: var(--m3e-slider-thumb-disabled-color, ${v.color.onSurface}); } @media (prefers-reduced-motion) { .label { transition: none; } } @media (forced-colors: active) { .label { forced-color-adjust: none; background-color: CanvasText; color: Canvas; } :host(:not([aria-disabled="true"])) .handle { background-color: CanvasText; } :host([aria-disabled="true"]) .handle { opacity: unset; background-color: GrayText; } }`,t([h(".focus-ring")],uk.prototype,"_focusRing",void 0),t([m({type:Number,reflect:!0})],uk.prototype,"value",void 0),uk=t([$("m3e-slider-thumb")],uk);let Ak=class extends(P(r)){constructor(){super(),vk.add(this),bk.set(this,void 0),this._ticks=new Array,fk.set(this,new Array),gk.set(this,void 0),yk.set(this,0),$k.set(this,0),xk.set(this,0),this.size="extra-small",this.disabled=!1,this.discrete=!1,this.min=0,this.max=100,this.step=1,this.labelled=!1,this.displayWith=null,new A(this,{callback:()=>e(this,vk,"m",Ek).call(this,!0)})}get thumbs(){return e(this,fk,"f")}get isRange(){return e(this,fk,"f").length>1}get thumb(){return e(this,fk,"f")[0]??null}get lowerThumb(){return this.thumb}get upperThumb(){return e(this,fk,"f")[1]??null}connectedCallback(){super.connectedCallback(),a(this,bk,qe.observe(()=>{e(this,vk,"m",Ek).call(this,!0),this.requestUpdate()}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,bk,"f")?.call(this)}updated(t){super.updated(t),t.has("disabled")&&e(this,fk,"f").forEach(e=>e.disabled=this.disabled)}render(){return s`<div class="base" tabindex="${je(this.disabled?void 0:"-1")}" @pointerdown="${e(this,vk,"m",Mk)}" @pointermove="${e(this,vk,"m",Tk)}" @pointerup="${e(this,vk,"m",Pk)}" @keydown="${e(this,vk,"m",Ik)}" @value-change="${e(this,vk,"m",Wk)}"><div class="track" aria-hidden="true"><div class="track-inactive start"></div><div class="track-active"></div><div class="track-inactive end"></div></div><div class="ticks" aria-hidden="true">${this._ticks.map(t=>e(this,vk,"m",wk).call(this,t))}</div><slot @slotchange="${e(this,vk,"m",kk)}"></slot></div>`}};var Hk,Ok,Bk,Fk,Vk,qk,Rk,Uk,Nk;bk=new WeakMap,fk=new WeakMap,gk=new WeakMap,yk=new WeakMap,$k=new WeakMap,xk=new WeakMap,vk=new WeakSet,wk=function(t){return s`<div class="tick ${t.active?"active":"inactive"}" style="${ke({transform:`translate(${"rtl"===qe.current?-e(this,vk,"m",Sk).call(this,t.value):e(this,vk,"m",Sk).call(this,t.value)}px, 0)`})}"></div>`},kk=function(t){a(this,fk,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof uk),"f"),e(this,fk,"f").length>2&&(e(this,fk,"f").length=2),this.isRange?this._base?.style.setProperty("--_slider-active-track-middle-shape","0"):this._base?.style.removeProperty("--_slider-active-track-middle-shape"),e(this,vk,"m",Ck).call(this)},Ck=function(){e(this,fk,"f").forEach((t,a)=>{this.disabled&&(t.disabled=!0),t.ariaValueMin=`${e(this,fk,"f")[a-1]?.value??this.min}`,t.ariaValueMax=`${e(this,fk,"f")[a+1]?.value??this.max}`,t.ariaValueNow=`${t.value??e(this,fk,"f")[a-1]?.value??this.min}`})},Sk=function(t){return(e(this,yk,"f")-e(this,$k,"f"))*((t-this.min)/(this.max-this.min))},_k=function(t){const a="rtl"===qe.current?e(this,xk,"f")+e(this,yk,"f")-t.clientX:t.clientX-e(this,xk,"f"),o=0===this.step?1:this.step,i=Math.floor((this.max-this.min)/o),r=a/e(this,yk,"f"),s=Math.round(r*i)/i*(this.max-this.min)+this.min;return Math.round(s/o)*o},Lk=function(t=!1){this.lowerThumb&&(a(this,yk,!t&&e(this,yk,"f")>0?e(this,yk,"f"):this.clientWidth,"f"),a(this,$k,!t&&e(this,$k,"f")>0?e(this,$k,"f"):this.lowerThumb.clientWidth,"f"),a(this,xk,!t&&e(this,xk,"f")>0?e(this,xk,"f"):this.getBoundingClientRect().left,"f"))},Ek=function(t=!1){if(e(this,vk,"m",Lk).call(this,t),!this.lowerThumb)return;const a=this.lowerThumb.value??this.min,o=e(this,vk,"m",Sk).call(this,a);if(this.lowerThumb.style.transform=`translate(${"rtl"===qe.current?-o:o}px, 0)`,this.upperThumb){const t=this.upperThumb.value??a,i=e(this,vk,"m",Sk).call(this,t);this.upperThumb.style.transform=`translate(${"rtl"===qe.current?-i:i}px, 0)`,this._base?.classList.toggle("range",!0),this._base?.style.setProperty("--_slider-inactive-track-before-size",`${o}px`),this._base?.style.setProperty("--_slider-active-track-offset",`${o+e(this,$k,"f")}px`),this._base?.style.setProperty("--_slider-active-track-size",i-o-e(this,$k,"f")+"px"),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${i+e(this,$k,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,yk,"f")-e(this,$k,"f")-i+"px"),e(this,vk,"m",zk).call(this,e=>e>a&&e<t)}else this._base?.classList.toggle("range",!1),this._base?.style.setProperty("--_slider-active-track-size",`${o}px`),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${o+e(this,$k,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,yk,"f")-o-e(this,$k,"f")+"px"),e(this,vk,"m",zk).call(this,e=>e<a)},zk=function(e){if(this._ticks=[],this.discrete&&this.step>1)for(let t=this.min;t<=this.max;t+=this.step)this._ticks.push({value:t,active:e(t)});else this._ticks.push({value:this.min,active:e(this.min)}),this.min<0&&this.max>0&&this._ticks.push({value:0,active:e(0)}),this._ticks.push({value:this.max,active:e(this.max)})},Mk=function(t){if("mouse"===t.pointerType&&t.button>1)return;if(!this.lowerThumb||this.disabled)return;if(t.target instanceof HTMLElement&&t.target.setPointerCapture(t.pointerId),a(this,gk,t.composedPath().find(e=>e instanceof uk),"f"),e(this,gk,"f"))return;const o=e(this,vk,"m",_k).call(this,t);if(this.upperThumb){const t=this.lowerThumb.value??this.min,i=this.upperThumb.value??t;if(o<t)this.lowerThumb.disabled||(e(this,vk,"m",Dk).call(this,this.lowerThumb,o,!0),a(this,gk,this.lowerThumb,"f"));else if(o>i)this.upperThumb.disabled||(e(this,vk,"m",Dk).call(this,this.upperThumb,o,!0),a(this,gk,this.upperThumb,"f"));else{o<(t+i)/2&&!this.lowerThumb.disabled?(e(this,vk,"m",Dk).call(this,this.lowerThumb,o,!0),a(this,gk,this.lowerThumb,"f")):this.upperThumb.disabled||(e(this,vk,"m",Dk).call(this,this.upperThumb,o,!0),a(this,gk,this.upperThumb,"f"))}}else this.lowerThumb.disabled||(e(this,vk,"m",Dk).call(this,this.lowerThumb,o,!0),a(this,gk,this.lowerThumb,"f"))},Tk=function(t){if(!(t.target instanceof HTMLElement)||!t.target.hasPointerCapture(t.pointerId)||!e(this,gk,"f")||e(this,gk,"f").disabled)return;const a=e(this,vk,"m",_k).call(this,t);let o=this.min,i=this.max;e(this,gk,"f")===this.upperThumb?o=Math.max(o,this.lowerThumb?.value??0):this.upperThumb&&(i=Math.min(i,this.upperThumb.value??this.max)),O(this,"-animating")&&(C(this,"-animating"),e(this,gk,"f").style.transition=""),e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(i,Math.max(o,a)))},Pk=function(t){"mouse"===t.pointerType&&t.button>1||this.lowerThumb&&!this.disabled&&(t.target instanceof HTMLElement&&t.target.releasePointerCapture(t.pointerId),e(this,gk,"f")&&!e(this,gk,"f").disabled&&e(this,gk,"f").focus())},Ik=function(t){if(a(this,gk,t.composedPath().find(e=>e instanceof uk),"f"),!e(this,gk,"f"))return;const o=e(this,gk,"f").value??0;let i=this.min,r=this.max;switch(e(this,gk,"f")===this.upperThumb?i=Math.max(i,this.lowerThumb?.value??0):this.upperThumb&&(r=Math.max(r,this.upperThumb.value??this.max)),t.key){case"Home":e(this,vk,"m",Dk).call(this,e(this,gk,"f"),i),t.preventDefault();break;case"End":e(this,vk,"m",Dk).call(this,e(this,gk,"f"),r),t.preventDefault();break;case"PageUp":"ltr"===qe.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+(this.step>1?this.step:10))):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-(this.step>1?this.step:10))),t.preventDefault();break;case"PageDown":"ltr"===qe.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-(this.step>1?this.step:10))):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+(this.step>1?this.step:10))),t.preventDefault();break;case"Down":case"ArrowDown":case"Left":case"ArrowLeft":"ltr"===qe.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-this.step)):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+this.step)),t.preventDefault();break;case"Up":case"ArrowUp":case"Right":case"ArrowRight":"ltr"===qe.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+this.step)):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-this.step)),t.preventDefault();break;case" ":t.preventDefault()}},Wk=function(t){t.stopPropagation(),e(this,vk,"m",Ck).call(this),e(this,vk,"m",Ek).call(this)},Dk=function(e,t,a=!1){if(e.value===t)return;const o=e.value;a&&!S()&&(E(this,"-animating"),e.addEventListener("transitionend",()=>{e.style.transition="",C(this,"-animating")},{once:!0}),e.style.transition=`transform ${v.motion.spring.fastEffects}`),e.value=t,e.markAsDirty(),e.markAsTouched(),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})):e.value=o},Ak.styles=i`:host { display: inline-block; vertical-align: middle; min-inline-size: var(--m3e-slider-min-width, 12.5rem); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([disabled])) { cursor: pointer; } :host([size="extra-small"]), :host([size="small"]) { height: var(--m3e-slider-small-height, 2.75rem); } :host(:not(:dir(rtl))[size="extra-small"]) .base, :host(:not(:dir(rtl))[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallEnd} ); } :host(:dir(rtl)[size="extra-small"]) .base, :host(:dir(rtl)[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallStart} ); } :host([size="extra-small"]) .track { height: calc(var(--m3e-slider-extra-small-track-height, 1rem)); } :host([size="small"]) .track { height: calc(var(--m3e-slider-small-track-height, 1.5rem)); } :host([size="medium"]) { height: var(--m3e-slider-medium-height, 3.25rem); } :host(:not(:dir(rtl))[size="medium"]) .base { --_slider-active-track-shape: var( --m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumEnd} ); } :host(:dir(rtl)[size="medium"]) .base { --_slider-active-track-shape: var(--m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumStart} ); } :host([size="medium"]) .track { height: var(--m3e-slider-medium-track-height, 2.5rem); } :host([size="large"]) { height: var(--m3e-slider-large-height, 4.25rem); } :host(:not(:dir(rtl))[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeEnd} ); } :host(:dir(rtl)[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeStart} ); } :host([size="large"]) .track { height: var(--m3e-slider-large-track-height, 3.5rem); } :host([size="extra-large"]) { height: var(--m3e-slider-extra-large-height, 6.75rem); } :host(:not(:dir(rtl))[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeEnd} ); } :host(:dir(rtl)[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeStart} ); } :host([size="extra-large"]) .track { height: var(--m3e-slider-extra-large-track-height, 6rem); } :host(:state(-animating)) .track-active, :host(:state(-animating)) .track-inactive.start, :host(:state(-animating)) .track-inactive.end { transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects},\n width ${v.motion.spring.fastEffects}`)}; } .base { display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: inherit; outline: none; touch-action: none; } .track { position: relative; flex: 1 1 auto; touch-action: none; } .track-inactive, .track-active { position: absolute; height: 100%; touch-action: none; } .track-active { margin-inline-start: var(--_slider-active-track-offset, 0px); width: var(--_slider-active-track-size, 0px); border-radius: var(--_slider-active-track-middle-shape, var(--_slider-active-track-shape)); } .track-inactive.start { width: var(--_slider-inactive-track-before-size, 0px); border-radius: var(--_slider-inactive-track-start-shape); } .track-inactive.end { margin-inline-start: var(--_slider-inactive-track-after-offset, 0px); width: var(--_slider-inactive-track-after-size, 0px); border-radius: var(--_slider-inactive-track-end-shape); } .ticks { position: absolute; width: 100%; height: var(--m3e-slider-tick-size, 0.25rem); overflow: visible; touch-action: none; } .tick { position: absolute; top: 0; touch-action: none; inset-inline-start: calc(var(--m3e-slider-tick-size, 0.25rem) + calc(var(--m3e-slider-tick-size, 0.25rem) / 2)); width: var(--m3e-slider-tick-size, 0.25rem); height: var(--m3e-slider-tick-size, 0.25rem); border-radius: var(--m3e-slider-tick-shape, ${v.shape.corner.full}); } :host(:not([disabled])) .track-inactive { background-color: var(--m3e-slider-inactive-track-color, ${v.color.secondaryContainer}); } :host([disabled]) .track-inactive { background-color: color-mix( in srgb, var(--m3e-slider-disabled-inactive-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-inactive-track-opacity, 12%), transparent ); } :host(:not([disabled])) .track-active { background-color: var(--m3e-slider-active-track-color, ${v.color.primary}); } :host([disabled]) .track-active { background-color: color-mix( in srgb, var(--m3e-slider-disabled-active-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-active-track-opacity, 38%), transparent ); } :host(:not([disabled])) .tick.active { background-color: var(--m3e-slider-tick-active-color, ${v.color.onPrimary}); } :host([disabled]) .tick.active { background-color: var(--m3e-slider-disabled-tick-active-color, ${v.color.inverseOnSurface}); } :host(:not([disabled])) .tick.inactive { background-color: var(--m3e-slider-tick-inactive-color, ${v.color.onSecondaryContainer}); } :host([disabled]) .tick.inactive { background-color: var(--m3e-slider-disabled-tick-inactive-color, ${v.color.onSurface}); } :host(:not([discrete])) .tick.active { display: none; } :host(:hover[labelled]) .base, :host(:focus-within[labelled]) .base { --_slider-label-visibility: visible; --_slider-label-opacity: 1; --_slider-label-transform: scale(1); } @media (forced-colors: active) { :host(:not([disabled])) .track-inactive { background-color: unset; } :host(:not([disabled])) .base.range .track-inactive.start, :host(:not([disabled])) .track-inactive.end { border: 1px solid CanvasText; box-sizing: border-box; } :host(:not([disabled])) .tick.inactive { background-color: CanvasText; } :host(:not([disabled])) .tick.active { background-color: Canvas; } :host(:not([disabled])) .track-active { background-color: CanvasText; } :host([disabled]) .base.range .track-inactive.start, :host([disabled]) .track-inactive.end { border: 1px solid GrayText; box-sizing: border-box; } :host([disabled]) .track-active { background-color: GrayText; } :host([disabled]) .tick.inactive { background-color: GrayText; } :host([disabled]) .tick.active { background-color: Canvas; } }`,t([h(".base")],Ak.prototype,"_base",void 0),t([u()],Ak.prototype,"_ticks",void 0),t([m({reflect:!0})],Ak.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],Ak.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],Ak.prototype,"discrete",void 0),t([m({type:Number})],Ak.prototype,"min",void 0),t([m({type:Number})],Ak.prototype,"max",void 0),t([m({type:Number})],Ak.prototype,"step",void 0),t([m({type:Boolean})],Ak.prototype,"labelled",void 0),t([m({attribute:!1})],Ak.prototype,"displayWith",void 0),Ak=t([$("m3e-slider")],Ak);let jk=Nk=class extends(f(r,"status")){constructor(){super(...arguments),Hk.add(this),Ok.set(this,-1),Bk.set(this,!1),Fk.set(this,t=>e(this,Hk,"m",Uk).call(this,t)),this.duration=3e3,this.action="",this.dismissible=!1,this.closeLabel="Close"}static get current(){return Nk.__current}get isActionTaken(){return e(this,Bk,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("beforetoggle",e(this,Fk,"f")),this.setAttribute("popover","manual"),this.ariaLive="polite"}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",e(this,Fk,"f"))}render(){return s`<div class="base"><span class="supporting-text"><slot></slot></span>${e(this,Hk,"m",Vk).call(this)} ${e(this,Hk,"m",qk).call(this)}</div>`}updated(e){super.updated(e),this.style.setProperty("--_snackbar-height",this.getBoundingClientRect().height/.8+"px")}};Ok=new WeakMap,Bk=new WeakMap,Fk=new WeakMap,Hk=new WeakSet,Vk=function(){return this.action?s`<m3e-button @click="${e(this,Hk,"m",Rk)}">${this.action}</m3e-button>`:n},qk=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" @click="${this.hidePopover}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},Rk=function(){a(this,Bk,!0,"f"),this.hidePopover()},Uk=function(t){"open"==t.newState?(Nk.__current?.hidePopover(),Nk.__current=this,this.duration>0&&a(this,Ok,setTimeout(()=>this.hidePopover(),this.duration),"f")):(Nk.__current===this&&(Nk.__current=null),clearTimeout(e(this,Ok,"f")))},F(i`m3e-snackbar { margin-inline: auto; }`),jk.styles=i`:host { position: fixed; top: calc(100vh - var(--_snackbar-height, 0px) - var(--m3e-snackbar-margin, 1rem)); display: inline-flex; align-items: center; min-width: var(--m3e-snackbar-min-width, 21.5rem); max-width: var(--m3e-snackbar-max-width, 42rem); visibility: hidden; border: none; margin: 0; padding: 0; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host::backdrop { background-color: transparent; } :host(:popover-open) { visibility: visible; opacity: 1; transform: scale(1); } @starting-style { :host(:popover-open) { opacity: 0; transform: scale(0.8); } } .base { display: inline-flex; align-items: center; flex: 1 1 auto; box-sizing: border-box; padding: var(--m3e-snackbar-padding, 0 1rem 0 1rem); border-radius: var(--m3e-snackbar-container-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-snackbar-container-color, ${v.color.inverseSurface}); font-size: var(--m3e-snackbar-supporting-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-snackbar-supporting-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-snackbar-supporting-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-snackbar-supporting-text-tracking, ${v.typescale.standard.label.large.tracking} ); color: var(--m3e-snackbar-supporting-text-color, ${v.color.inverseOnSurface}); --m3e-text-button-label-text-color: var(--m3e-snackbar-action-text-color, ${v.color.inversePrimary}); --m3e-text-button-hover-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-hover-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-standard-icon-button-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); } :host([dismissible]) .base { padding-inline-end: 0.5rem; } .supporting-text { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; margin-block: var(--m3e-snackbar-supporting-text-margin-block, 0.875rem); } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host { background-color: Canvas; color: CanvasText; border-radius: ${v.shape.corner.small}; box-sizing: border-box; outline: 1px solid CanvasText; } }`,jk.__current=null,t([m({type:Number})],jk.prototype,"duration",void 0),t([m()],jk.prototype,"action",void 0),t([m({type:Boolean,reflect:!0})],jk.prototype,"dismissible",void 0),t([m({attribute:"close-label"})],jk.prototype,"closeLabel",void 0),jk=Nk=t([$("m3e-snackbar")],jk);class Yk{static open(e,t,a,o){if(l)return;const i=document.createElement("m3e-snackbar");let r;i.append(document.createTextNode(e)),"string"==typeof t?i.action=t:"boolean"==typeof t?i.dismissible=t:r=t,"boolean"==typeof a?i.dismissible=a:r=a,o&&(r=o),void 0!==r?.duration&&(i.duration=r.duration),r?.closeLabel&&(i.closeLabel=r.closeLabel),i.addEventListener("toggle",e=>{"closed"===e.newState&&(S()?i.remove():i.addEventListener("transitionend",()=>i.remove(),{once:!0}),i.isActionTaken&&r?.actionCallback?.())}),(document.querySelector("m3e-theme")??document.body).append(i),i.showPopover()}static dismiss(){jk.current?.hidePopover()}}var Kk,Zk,Gk,Xk,Jk,Qk,eC,tC,aC,oC,iC,rC;globalThis.M3eSnackbar=Yk;let sC=class extends(f(r,"group")){constructor(){super(...arguments),Kk.add(this),Zk.set(this,void 0),Gk.set(this,void 0),Xk.set(this,!1),Jk.set(this,new Z(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,a,o)=>{switch(o){case e(this,Zk,"f"):e(this,Kk,"m",oC).call(this,t);break;case e(this,Gk,"f"):e(this,Kk,"m",iC).call(this,t||e(this,Xk,"f"))}}})),Qk.set(this,new ne(this,{target:null,callback:(t,o)=>{if(o===e(this,Gk,"f"))e(this,Gk,"f")?.disabled||e(this,Gk,"f")?.disabledInteractive||(a(this,Xk,t,"f"),e(this,Kk,"m",iC).call(this,t))}})),this.variant="filled",this.size="small"}update(t){super.update(t),t.has("variant")&&e(this,Kk,"m",aC).call(this)}render(){return s`<m3e-button-group class="base" disable-role variant="connected" size="${this.size}"><slot name="leading-button" @slotchange="${e(this,Kk,"m",eC)}"></slot><slot name="trailing-button" @slotchange="${e(this,Kk,"m",tC)}"></slot></m3e-button-group>`}};var nC,lC,cC,dC,hC,mC,pC,uC,vC,bC,fC,gC,yC,$C,xC,wC,kC,CC,SC,_C,LC,EC,zC,MC,TC,PC,IC,WC,DC,AC,HC;Zk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Kk=new WeakSet,eC=function(t){e(this,Zk,"f")&&e(this,Jk,"f").unobserve(e(this,Zk,"f")),a(this,Zk,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Ye),"f"),e(this,Zk,"f")&&e(this,Jk,"f").observe(e(this,Zk,"f")),e(this,Kk,"m",aC).call(this)},tC=function(t){e(this,Gk,"f")&&(e(this,Jk,"f").unobserve(e(this,Gk,"f")),e(this,Qk,"f").unobserve(e(this,Gk,"f"))),a(this,Gk,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Ke),"f"),e(this,Gk,"f")&&(e(this,Jk,"f").observe(e(this,Gk,"f")),e(this,Qk,"f").observe(e(this,Gk,"f"))),e(this,Kk,"m",aC).call(this)},aC=function(){e(this,Zk,"f")&&(e(this,Zk,"f").variant=this.variant,e(this,Zk,"f").size=this.size,e(this,Zk,"f").shape="rounded"),e(this,Gk,"f")&&(e(this,Gk,"f").width="default",e(this,Gk,"f").shape="rounded",e(this,Gk,"f").setAttribute("variant",this.variant),e(this,Gk,"f").size=this.size)},oC=function(t){t&&e(this,Zk,"f")?e(this,Kk,"m",rC).call(this,e(this,Zk,"f"),"--_leading-button-shape"):this._base?.style.removeProperty("--_leading-button-shape")},iC=function(t){t&&e(this,Gk,"f")?e(this,Kk,"m",rC).call(this,e(this,Gk,"f"),"--_trailing-button-shape"):this._base?.style.removeProperty("--_trailing-button-shape")},rC=function(e,t){const a=e.clientHeight/2;a&&this._base?.style.setProperty(t,`${a}px`)},sC.styles=i`:host { display: inline-flex; vertical-align: middle; } ::slotted([slot="leading-button"]) { flex: 1 1 auto; min-width: 0; --_button-start-shape-pressed-morph: var(--_leading-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"])) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-unselected-leading-space, 0.8125rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-unselected-trailing-space, 1.0625rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-unselected-leading-space, 1.625rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-unselected-trailing-space, 2rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-unselected-leading-space, 2.3125rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-unselected-trailing-space, 3.0625rem ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-selected-leading-space, 0.9375rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-selected-trailing-space, 0.9375rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-selected-leading-space, 1.8125rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-selected-trailing-space, 1.8125rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-selected-leading-space, 2.6875rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-selected-trailing-space, 2.6875rem ); } ::slotted([slot="leading-button"]:not(:hover)), ::slotted([slot="leading-button"]:disabled), ::slotted([slot="leading-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="leading-button"]:hover:not(:disabled):not([disabled-interactive])), ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):hover:not(:disabled):not([disabled-interactive])) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-hover-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="leading-button"]), ::slotted([slot="trailing-button"]) { --m3e-connected-button-group-extra-small-inner-pressed-shape: var( --m3e-split-button-extra-small-inner-corner-pressed-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-pressed-shape: var( --m3e-split-button-small-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-pressed-shape: var( --m3e-split-button-medium-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-pressed-shape: var( --m3e-split-button-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-pressed-shape: var( --m3e-split-button-extra-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):not(:hover)), ::slotted([slot="trailing-button"]:disabled), ::slotted([slot="trailing-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --_icon-button-icon-transform: rotate(180deg); --_button-rounded-start-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); --_button-rounded-end-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]) { --_button-end-shape-pressed-morph: var(--_trailing-button-shape, ${v.shape.corner.full}); } .base { --m3e-icon-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-icon-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-icon-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-icon-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-icon-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); --m3e-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); } :host([size="extra-small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-small-between-spacing, 0.125rem); } :host([size="small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-small-between-spacing, 0.125rem); } :host([size="medium"]).base { --m3e-connected-button-group-spacing: var(--m3e-split-button-medium-between-spacing, 0.125rem); } :host([size="large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-large-between-spacing, 0.125rem); } :host([size="extra-large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-large-between-spacing, 0.125rem); }`,t([h(".base")],sC.prototype,"_base",void 0),t([m({reflect:!0})],sC.prototype,"variant",void 0),t([m({reflect:!0})],sC.prototype,"size",void 0),sC=t([$("m3e-split-button")],sC);let OC=class extends(se(Y(M(P(r))))){constructor(){super(...arguments),nC.add(this),lC.set(this,void 0),cC.set(this,0),dC.set(this,!1),hC.set(this,0),mC.set(this,void 0),pC.set(this,new Z(this,{target:null,isPressedKey:e=>" "===e,minPressedDuration:150,callback:e=>k(this,"-pressed",e&&!this.disabled)})),uC.set(this,new w(this,{target:null,config:{attributeFilter:["hidden"]},callback:()=>e(this,nC,"m",$C).call(this,"start")})),vC.set(this,new w(this,{target:null,config:{attributeFilter:["hidden"]},callback:()=>e(this,nC,"m",$C).call(this,"end")})),this.value=50,this.min=0,this.max=100,this.step=1,this.detents=[],this.wrapDetents=!1,this.orientation="horizontal",this.label="Resize panes",this.valueFormatter=(e,t,a)=>{if((e=Math.round(e))>=48&&e<=52)return"Panes equally sized";switch(e){case 0:return"horizontal"===t?"ltr"===a?"Left pane collapsed":"Right pane collapsed":"Top pane collapsed";case 100:return"horizontal"===t?"ltr"===a?"Right pane collapsed":"Left pane collapsed":"Bottom pane collapsed";default:return"horizontal"===t?"ltr"===a?`Left pane ${e}%, right pane ${100-e}%`:`Left pane ${100-e}%, right pane ${e}%`:`Top pane ${e}%, bottom pane ${100-e}%`}}}get currentOrientation(){return this._orientation??("vertical"!==this.orientation?"horizontal":"vertical")}get[(lC=new WeakMap,cC=new WeakMap,dC=new WeakMap,hC=new WeakMap,mC=new WeakMap,pC=new WeakMap,uC=new WeakMap,vC=new WeakMap,nC=new WeakSet,le)](){return this.value?.toString()??null}collapse(){this.snapToValue(this.min)}expand(){this.snapToValue(this.max)}snapToValue(t){const a=e(this,nC,"m",TC).call(this,t);t=a>-1?e(this,nC,"m",WC).call(this,this.detents[a]):t,e(this,mC,"f")?e(this,nC,"m",MC).call(this,t):e(this,nC,"m",AC).call(this,t)}disconnectedCallback(){super.disconnectedCallback(),e(this,nC,"m",SC).call(this),e(this,pC,"f").unobserve(this._dragHandle)}reconnectedCallback(){super.reconnectedCallback(),e(this,nC,"m",wC).call(this),"auto"===this.orientation&&e(this,nC,"m",kC).call(this)}willUpdate(t){super.willUpdate(t),t.has("orientation")&&(e(this,lC,"f")?.call(this),"auto"===this.orientation?e(this,nC,"m",kC).call(this):(this._orientation=void 0,e(this,nC,"m",CC).call(this)))}updated(e){super.updated(e),e.has("value")&&this._base.style.setProperty("--_split-pane-value",`${this.value}%`)}firstUpdated(t){super.firstUpdated(t),e(this,nC,"m",wC).call(this)}render(){return s`<div class="base"><div class="start" id="start" ?inert="${this.value<=0}"><slot name="start" @slotchange="${e(this,nC,"m",fC)}"></slot></div>${e(this,nC,"m",bC).call(this)}<div class="end" ?inert="${this.value>=100}"><slot name="end" @slotchange="${e(this,nC,"m",gC)}"></slot></div></div>`}};bC=function(){return s`<div id="drag-handle" class="drag-handle" role="separator" ?hidden="${this.disabled}" tabindex="0" aria-label="${this.label}" aria-controls="start" aria-orientation="${"horizontal"===this.currentOrientation?"vertical":"horizontal"}" aria-valuemin="${this.min}" aria-valuemax="${this.max}" aria-valuenow="${this.value}" aria-valuetext="${je(this.valueFormatter?.(this.value,this.currentOrientation,qe.current))}" @pointerdown="${e(this,nC,"m",_C)}" @pointerup="${e(this,nC,"m",EC)}" @pointermove="${e(this,nC,"m",LC)}" @keydown="${e(this,nC,"m",zC)}" @dblclick="${e(this,nC,"m",HC)}"><div class="handle"><m3e-focus-ring for="drag-handle"></m3e-focus-ring><m3e-state-layer for="drag-handle"></m3e-state-layer></div><div class="touch"></div></div>`},fC=function(t){e(this,nC,"m",yC).call(this,t.target,e(this,uC,"f"),"-with-start")},gC=function(t){e(this,nC,"m",yC).call(this,t.target,e(this,vC,"f"),"-with-end")},yC=function(t,a,o){for(const e of a.targets)a.unobserve(e);const i=new Array;k(this,o,e(this,nC,"m",xC).call(this,t,i));for(const e of i)e instanceof HTMLElement&&a.observe(e)},$C=function(t){k(this,`-with-${t}`,e(this,nC,"m",xC).call(this,this.shadowRoot?.querySelector(`slot[name='${t}']`)))},xC=function(e,t){return(t=t??[]).push(...e?.assignedElements({flatten:!0})??[]),t.length>0&&!t.every(e=>e.hasAttribute("hidden"))},wC=function(){e(this,pC,"f").observe(this._dragHandle)},kC=function(){a(this,lC,Je.observe([Qe.XSmall],t=>{this._orientation=t.get(Qe.XSmall)?"vertical":"horizontal",e(this,nC,"m",CC).call(this)}),"f")},CC=function(){k(this,"-vertical","vertical"===this.currentOrientation)},SC=function(){C(this,"-vertical"),this._orientation=void 0,e(this,lC,"f")?.call(this),a(this,lC,void 0,"f")},_C=function(e){"mouse"===e.pointerType&&e.button>1||this.disabled||(this._dragHandle.setPointerCapture(e.pointerId),a(this,dC,!1,"f"),a(this,cC,"vertical"===this.currentOrientation?e.clientY:e.clientX,"f"),a(this,hC,"vertical"===this.currentOrientation?this.clientHeight:this.clientWidth,"f"))},LC=function(t){if(!this._dragHandle.hasPointerCapture(t.pointerId))return;const o="vertical"===this.currentOrientation?t.clientY:t.clientX;let i=e(this,hC,"f")>0?(o-e(this,cC,"f"))/e(this,hC,"f")*100:0;"rtl"===qe.current&&"vertical"!==this.currentOrientation&&(i=-i),e(this,nC,"m",MC).call(this,this.value+i,!1)&&(a(this,cC,o,"f"),a(this,dC,!0,"f"))},EC=function(t){if(!("mouse"===t.pointerType&&t.button>1)&&this._dragHandle.hasPointerCapture(t.pointerId)){this._dragHandle.releasePointerCapture(t.pointerId),a(this,cC,0,"f"),a(this,hC,0,"f");const o=e(this,nC,"m",TC).call(this,this.value);if(o>=0){const t=e(this,nC,"m",WC).call(this,this.detents[o]);void 0!==t&&e(this,nC,"m",AC).call(this,t,!1)}e(this,dC,"f")&&(this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a(this,dC,!1,"f"))}},zC=function(t){const a="ltr"===qe.current||"vertical"===this.currentOrientation;switch(t.key){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":{t.preventDefault();const o=e(this,nC,"m",TC).call(this,this.value);if(o>=0){const t=a?e(this,nC,"m",IC).call(this,o):e(this,nC,"m",PC).call(this,o);if(t!==o&&!e(this,mC,"f")){const a=e(this,nC,"m",WC).call(this,this.detents[t]);void 0!==a&&e(this,nC,"m",AC).call(this,a)}}else this.step>1?e(this,mC,"f")||e(this,nC,"m",AC).call(this,this.value+(a?-this.step:this.step)):e(this,nC,"m",MC).call(this,this.value+(a?-this.step:this.step));break}case"Down":case"ArrowDown":case"Right":case"ArrowRight":{t.preventDefault();const o=e(this,nC,"m",TC).call(this,this.value);if(o>=0){const t=a?e(this,nC,"m",PC).call(this,o):e(this,nC,"m",IC).call(this,o);if(t!==o&&!e(this,mC,"f")){const a=e(this,nC,"m",WC).call(this,this.detents[t]);void 0!==a&&e(this,nC,"m",AC).call(this,a)}}else this.step>1?e(this,mC,"f")||e(this,nC,"m",AC).call(this,this.value+(a?this.step:-this.step)):e(this,nC,"m",MC).call(this,this.value+(a?this.step:-this.step));break}case"Home":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.min);t>-1?e(this,nC,"m",AC).call(this,e(this,nC,"m",WC).call(this,this.detents[t])):e(this,nC,"m",AC).call(this,this.min)}break;case"End":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.max);t>-1?e(this,nC,"m",AC).call(this,e(this,nC,"m",WC).call(this,this.detents[t])):e(this,nC,"m",AC).call(this,this.max)}break;case"PageUp":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.value);if(t>=0){const a=e(this,nC,"m",IC).call(this,t);if(a!==t){const t=e(this,nC,"m",WC).call(this,this.detents[a]);void 0!==t&&e(this,nC,"m",AC).call(this,t)}}else e(this,nC,"m",AC).call(this,this.value-Math.max(10,this.step))}break;case"PageDown":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.value);if(t>=0){const a=e(this,nC,"m",PC).call(this,t);if(a!==t){const t=e(this,nC,"m",WC).call(this,this.detents[a]);void 0!==t&&e(this,nC,"m",AC).call(this,t)}}else e(this,nC,"m",AC).call(this,this.value+Math.max(10,this.step))}break;case"Enter":e(this,mC,"f")||e(this,nC,"m",HC).call(this);break;case" ":t.preventDefault(),e(this,mC,"f")||e(this,nC,"m",HC).call(this)}},MC=function(t,a=!0){if(e(this,nC,"m",DC).call(this),(t=Math.max(this.min,Math.min(this.max,t)))!=this.value){const e=this.value;if(this.value=t,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0})))return this._base.style.setProperty("--_split-pane-value",`${this.value}%`),a&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),!0;this.value=e}return!1},TC=function(t){let a=-1,o=1/0;for(let i=0;i<this.detents.length;i++){const r=e(this,nC,"m",WC).call(this,this.detents[i]);if(void 0===r)continue;const s=Math.abs(t-r);s<o&&(o=s,a=i)}return a},PC=function(t){const a=e(this,nC,"m",WC).call(this,this.detents[t]);if(void 0===a)return t;let o=1/0,i=t;for(let r=0;r<this.detents.length;r++){if(r===t)continue;const s=e(this,nC,"m",WC).call(this,this.detents[r]);void 0!==s&&(s>a&&s<o&&(o=s,i=r))}return i},IC=function(t){const a=e(this,nC,"m",WC).call(this,this.detents[t]);if(void 0===a)return t;let o=-1/0,i=t;for(let r=0;r<this.detents.length;r++){if(r===t)continue;const s=e(this,nC,"m",WC).call(this,this.detents[r]);void 0!==s&&(s<a&&s>o&&(o=s,i=r))}return i},WC=function(e){const t=e.endsWith("px")?this.clientWidth/parseFloat(e):parseFloat(e);return isNaN(t)?void 0:t},DC=function(){e(this,mC,"f")?.cancel(),a(this,mC,void 0,"f")},AC=function(t,o=!0){e(this,nC,"m",DC).call(this),(t=Math.max(this.min,Math.min(this.max,t)))!==this.value&&(S()?e(this,nC,"m",MC).call(this,t,o):(E(this,"-animating"),a(this,mC,this._base.animate([{"--_split-pane-value":`${this.value}%`},{"--_split-pane-value":`${t}%`}],{duration:250,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}),"f"),e(this,mC,"f").onfinish=()=>{e(this,nC,"m",MC).call(this,t,o),a(this,mC,void 0,"f"),C(this,"-animating")}))},HC=function(){if(0===this.detents.length)return;const t=e(this,nC,"m",TC).call(this,this.value);if(-1===t)return;let a=e(this,nC,"m",PC).call(this,t);if(a===t&&this.wrapDetents&&(a=e(this,nC,"m",TC).call(this,0),-1===a))return;const o=e(this,nC,"m",WC).call(this,this.detents[a]);void 0!==o&&e(this,nC,"m",AC).call(this,o)},F(i`@property --_split-pane-value { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }</length-percentage>`),OC.styles=i`:host { display: block; } .base { display: flex; width: 100%; height: 100%; overflow: hidden; } :host(:not(:state(-vertical))) .base { flex-direction: row; } :host(:state(-vertical)) .base { flex-direction: column; } :host(:state(-with-start):state(-with-end)) .base:not(:has(.drag-handle[hidden])) .start { flex: 0 1 calc(var(--_split-pane-value) - calc(var(--m3e-split-pane-drag-handle-container-width, 1.5rem) / 2)); } :host(:state(-with-start):state(-with-end)) .base:has(.drag-handle[hidden]) .start { flex: 0 1 var(--_split-pane-value); } :host(:not(:state(-with-end))) .start { flex: 1 1 auto; } :host(:state(-with-end)) .end { flex: 1 1 auto; } :host(:not(:state(-with-end))) .end { display: none; } :host(:not(:state(-animating))) .start[inert], :host(:not(:state(-animating))) .end[inert] { visibility: hidden; } .drag-handle { flex: none; display: flex; align-items: center; justify-content: center; outline: none; touch-action: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); --m3e-state-layer-hover-color: var(--m3e-split-pane-drag-handle-hover-color, ${v.color.onSurface}); --m3e-state-layer-hover-opacity: var(--m3e-split-pane-drag-handle-hover-opacity, 8%); --m3e-state-layer-focus-color: var(--m3e-split-pane-drag-handle-focus-color, ${v.color.onSurface}); --m3e-state-layer-focus-opacity: var(--m3e-split-pane-drag-handle-focus-opacity, 10%); } :host(:is(:not(:state(-with-start)), :not(:state(-with-end)))) .drag-handle, .drag-handle[hidden] { display: none; } :host(:not(:state(-pressed))) .drag-handle:not([aria-disabled]) { cursor: grab; } :host(:state(-pressed)) .drag-handle:not([aria-disabled]) { cursor: grabbing; } .handle { position: relative; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n width ${v.motion.spring.fastEffects}, height ${v.motion.spring.fastEffects}`)}; } .touch { z-index: 1; position: absolute; height: 3rem; width: 3rem; margin: auto; touch-action: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:state(-pressed))) .handle { background-color: var(--m3e-split-pane-drag-handle-color, ${v.color.outline}); border-radius: var(--m3e-split-pane-drag-handle-shape, ${v.shape.corner.full}); } :host(:state(-pressed)) .handle { background-color: var(--m3e-split-pane-drag-handle-pressed-color, ${v.color.onSurface}); border-radius: var(--m3e-split-pane-drag-handle-pressed-shape, ${v.shape.corner.medium}); } :host(:not(:state(-vertical))) .drag-handle { flex-direction: column; width: var(--m3e-split-pane-drag-handle-container-width, 1.5rem); } :host(:not(:state(-vertical)):not(:state(-pressed))) .handle { width: var(--m3e-split-pane-drag-handle-width, 0.25rem); height: var(--m3e-split-pane-drag-handle-height, 3rem); } :host(:not(:state(-vertical)):state(-pressed)) .handle { width: var(--m3e-split-pane-drag-handle-pressed-width, 0.75rem); height: var(--m3e-split-pane-drag-handle-pressed-height, 3.25rem); } :host(:state(-vertical)) .drag-handle { height: var(--m3e-split-pane-drag-handle-container-width, 1.5rem); } :host(:state(-vertical):not(:state(-pressed))) .handle { width: var(--m3e-split-pane-drag-handle-height, 3rem); height: var(--m3e-split-pane-drag-handle-width, 0.25rem); } :host(:state(-vertical):state(-pressed)) .handle { width: var(--m3e-split-pane-drag-handle-pressed-height, 3.25rem); height: var(--m3e-split-pane-drag-handle-pressed-width, 0.75rem); } @media (prefers-reduced-motion) { .handle { transition: none; } } @media (forced-colors: active) { :host(:state(-pressed)) .handle, :host(:not(:state(-pressed))) .handle { background-color: ButtonText; } }`,t([u()],OC.prototype,"_orientation",void 0),t([h(".base")],OC.prototype,"_base",void 0),t([h(".drag-handle")],OC.prototype,"_dragHandle",void 0),t([m({type:Number})],OC.prototype,"value",void 0),t([m({type:Number})],OC.prototype,"min",void 0),t([m({type:Number})],OC.prototype,"max",void 0),t([m({type:Number})],OC.prototype,"step",void 0),t([m({attribute:"detents",converter:V})],OC.prototype,"detents",void 0),t([m({attribute:"wrap-detents",type:Boolean})],OC.prototype,"wrapDetents",void 0),t([m()],OC.prototype,"orientation",void 0),t([m()],OC.prototype,"label",void 0),t([m()],OC.prototype,"valueFormatter",void 0),OC=t([$("m3e-split-pane")],OC);let BC=class extends(f(r,"tabpanel")){constructor(){super(...arguments),this.active=!1}connectedCallback(){this.slot="panel",super.connectedCallback()}render(){return s`<m3e-collapsible ?open="${this.active}"><div class="content"><div><slot></slot></div><slot name="actions"></slot></div></m3e-collapsible>`}};var FC,VC,qC,RC,UC;BC.styles=i`:host { display: block; } .content { display: flex; flex-direction: column; padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem); row-gap: var(--m3e-step-panel-spacing, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: var(--m3e-step-panel-actions-height, 3rem); } ::slotted([slot="actions"][end]) { justify-content: flex-end; }`,t([u()],BC.prototype,"active",void 0),BC=t([$("m3e-step-panel")],BC);let NC=UC=class extends(ue(q(N(b(Y(P(f(r,"tab")))))))){constructor(){super(...arguments),FC.add(this),VC.set(this,t=>e(this,FC,"m",RC).call(this,t)),this.optional=!1,this.editable=!1,this.completed=!1,this.invalid=!1,this.index=-1}get panel(){return this.control instanceof BC?this.control:null}get stepper(){return this.closest("m3e-stepper")}reset(){this.invalid=!1,this.completed=!1,this.panel?.querySelector("form")?.reset()}attach(e){e instanceof BC&&(e.id=e.id||"m3e-step-panel-"+UC.__nextId++,Ie(this,"aria-controls",e.id),e.style.order=this.style.order),super.attach(e)}detach(){this.control&&(this.control.style.order="",this.control.id&&We(this,"aria-controls",this.control.id)),super.detach()}connectedCallback(){this.slot="step",super.connectedCallback(),this.addEventListener("click",e(this,VC,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,VC,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-stepper")?.[De].notifySelectionChange(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const t=s`<slot name="hint">${this.optional?s`<span class="hint">(Optional)</span>`:n}</slot>`,a=s`<slot name="error">${t}</slot>`;return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="wrapper"><div class="icon" aria-hidden="true">${e(this,FC,"m",qC).call(this)}</div><div class="label"><slot></slot>${this.invalid?a:t}</div></div></div>`}};var jC,YC,KC,ZC,GC,XC,JC,QC,eS,tS,aS,oS;VC=new WeakMap,FC=new WeakSet,qC=function(){if(!this.selected){if(this.invalid)return s`<slot name="error-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg></slot>`;if(this.completed)return this.editable?s`<slot name="edit-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg></slot>`:s`<slot name="done-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></slot>`}return s`<slot name="icon">${this.index+1}</slot>`},RC=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))&&this.closest("m3e-stepper")?.moveTo(this.index)?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!1)},NC.styles=i`:host { display: block; outline: none; min-width: 0px; position: relative; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { min-width: inherit; position: relative; border-radius: var(--m3e-step-shape, ${v.shape.corner.medium}); padding: var(--m3e-step-padding, 1.5rem); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .icon { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--m3e-step-icon-shape, 50%); width: var(--m3e-step-icon-size, 1.5rem); height: var(--m3e-step-icon-size, 1.5rem); } .icon svg, ::slotted([slot="icon"]), ::slotted([slot="edit-icon"]), ::slotted([slot="done-icon"]), ::slotted([slot="error-icon"]) { width: 1em; font-size: var(--m3e-step-icon-size, 1.5rem) !important; } :host(:not([aria-disabled="true"])[selected]) .icon { background-color: var(--m3e-step-selected-icon-container-color, ${v.color.primary}); color: var(--m3e-step-selected-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon { background-color: var(--m3e-step-completed-icon-container-color, ${v.color.primary}); color: var(--m3e-step-completed-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon { background-color: var(--m3e-step-unselected-icon-container-color, ${v.color.inverseSurface}); color: var(--m3e-step-unselected-icon-color, ${v.color.inverseOnSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon { color: var(--m3e-step-icon-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .icon { background-color: color-mix( in srgb, var(--m3e-step-disabled-icon-container-color, ${v.color.onSurface}) 10%, transparent ); color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:not([aria-disabled="true"])) .label { color: var(--m3e-step-label-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label { color: var(--m3e-step-label-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .label { color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${v.color.onSurface}) 38%, transparent); } .wrapper { display: flex; align-items: center; height: 100%; border-radius: inherit; font-size: var(--m3e-step-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-step-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-step-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-step-tracking, ${v.typescale.standard.title.small.tracking}); flex-direction: var(--_step-direction, row); gap: var(--m3e-step-icon-label-space, 0.5rem); justify-content: flex-start; } .label { display: flex; flex-direction: column; align-items: var(--_step-label-align-items, flex-start); } ::slotted([slot="hint"]), .hint, ::slotted([slot="error"]) { font-size: var(--m3e-step-hint-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-step-hint-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-step-hint-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-step-hint-tracking, ${v.typescale.standard.body.small.tracking}); } :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]), :host(:not([aria-disabled="true"]):not([invalid])) .hint { color: var(--m3e-step-hint-color, ${v.color.onSurfaceVariant}); } :host([aria-disabled="true"]) ::slotted([slot="hint"]), :host([aria-disabled="true"]) .hint { color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${v.color.onSurface}) 38%, transparent); }`,NC.__nextId=0,t([h(".focus-ring")],NC.prototype,"_focusRing",void 0),t([h(".state-layer")],NC.prototype,"_stateLayer",void 0),t([h(".ripple")],NC.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"optional",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"editable",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"completed",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"invalid",void 0),t([u()],NC.prototype,"index",void 0),NC=UC=t([$("m3e-step")],NC);class iS extends z{constructor(e){super(),jC.set(this,void 0),a(this,jC,e,"f")}_onClick(){switch(e(this,jC,"f")){case"next":this.closest("m3e-stepper")?.moveNext();break;case"previous":this.closest("m3e-stepper")?.movePrevious();break;case"reset":this.closest("m3e-stepper")?.reset()}}}jC=new WeakMap;let rS=class extends(M(P(r))){constructor(){super(...arguments),YC.add(this),KC.set(this,void 0),this._selectedIndex=null,this[oS]=(new Ae).withHomeAndEnd().withWrap().onSelectedItemsChange(()=>e(this,YC,"m",QC).call(this)),this.headerPosition="above",this.labelPosition="end",this.linear=!1,this.orientation="horizontal"}get steps(){return this[De]?.items??[]}get selectedStep(){return null!==this._selectedIndex?this.steps[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}movePrevious(){return this.moveTo((this._selectedIndex??1)-1)}moveNext(){return this.moveTo((this._selectedIndex??-1)+1)}moveTo(t){const a=this.selectedStep;if(a&&a.index===t)return!0;if(this.steps[t]?.disabled)return!1;if(t>=0&&t<this.steps.length){if(a){const o=e(this,YC,"m",eS).call(this);if(this.linear)if(t<a.index){const e=this[De].items[t];if(!e||e.completed&&!e.editable)return!1}else if(t>a.index+1){const e=this[De].items[t];if(!e||!e.completed)return!1}else if(!o&&!a.optional)return!1;a.completed=!0}return this._selectedIndex=t,this[De].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})),!0}return a&&(this[De].deselect(a),this.dispatchEvent(new Event("change",{bubbles:!0}))),!1}reset(){this.steps.forEach(e=>e.reset());const e=this.steps.findIndex(e=>!e.disabled);e!==this._selectedIndex&&(this._selectedIndex=e,this[De].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})))}connectedCallback(){super.connectedCallback(),E(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),this._orientation=void 0,e(this,KC,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.orientation&&e(this,YC,"m",tS).call(this)}willUpdate(t){super.willUpdate(t),t.has("orientation")&&(e(this,KC,"f")?.call(this),"auto"===this.orientation?e(this,YC,"m",tS).call(this):(this._orientation=void 0,e(this,YC,"m",aS).call(this))),t.has("_orientation")&&e(this,YC,"m",aS).call(this)}render(){let t;return this.selectedStep?.panel&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedStep.panel),-1===t&&(t=void 0)),this[De].vertical?s`${e(this,YC,"m",ZC).call(this)}<slot name="panel"></slot>`:s`${"above"===this.headerPosition?e(this,YC,"m",ZC).call(this):n}<m3e-slide class="steps" selected-index="${je(t)}"><slot name="panel"></slot></m3e-slide>${"below"===this.headerPosition?e(this,YC,"m",ZC).call(this):n}`}};KC=new WeakMap,YC=new WeakSet,oS=De,ZC=function(){return s`<div class="header" role="tablist" aria-orientation="${je(this[De].vertical?"vertical":void 0)}" @change="${e(this,YC,"m",GC)}"><slot name="step" @slotchange="${e(this,YC,"m",XC)}" @keydown="${e(this,YC,"m",JC)}"></slot></div>`},GC=function(e){e.stopPropagation()},XC=function(){const{added:t,removed:a}=this[De].setItems([...this.querySelectorAll("m3e-step")]);if(t.length>0||a.length>0){this.querySelectorAll(".-m3e-step-divider").forEach(e=>e.remove());for(let e=0;e<this[De].items.length;e++){const t=this[De].items[e];if(t.index=e,e>0){const e=document.createElement("div");e.ariaHidden="true",e.classList.add("-m3e-step-divider"),e.slot="step",t.insertAdjacentElement("beforebegin",e)}}e(this,YC,"m",aS).call(this),0==this[De].selectedItems.length&&this[De].select(this[De].items.find(e=>!e.disabled))}},JC=function(e){this[De].onKeyDown(e)},QC=function(){const e=this[De].selectedItems[0];let t=e?this.steps.indexOf(e):null;-1===t&&(t=null),this._selectedIndex=t;for(const e of this[De].items)e.panel&&(e.panel.active=e.index===t);e&&this.matches(":focus-within")&&!e.matches(":focus")&&e.focus(),O(this,"-no-animate")&&requestAnimationFrame(()=>C(this,"-no-animate"))},eS=function(){let e=!1;return this.selectedStep&&(e=this.selectedStep.panel?.querySelector("form")?.checkValidity()??!0,this.selectedStep.optional&&(e=!0),this.selectedStep.invalid=!e),e},tS=function(){a(this,KC,Je.observe([Qe.XSmall],t=>{this._orientation=t.get(Qe.XSmall)?"vertical":"horizontal",e(this,YC,"m",aS).call(this)}),"f")},aS=function(){this[De].vertical="vertical"===(this._orientation??this.orientation),k(this,"-vertical",this[De].vertical),this[De].vertical?this.steps.forEach((e,t)=>{e.style.order=`${t}`,e.panel&&(e.panel.style.order=`${t}`)}):this.steps.forEach(e=>{e.style.order="",e.panel&&(e.panel.style.order="")})},F(i`m3e-stepper:not(:state(-vertical)) > .-m3e-step-divider::before { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical))[label-position="end"] > .-m3e-step-divider { margin-block: auto; } m3e-stepper:not(:state(-vertical))[label-position="below"] > .-m3e-step-divider::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-block-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"] { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"]:not(:last-of-type) { border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); }`),rS.styles=i`:host { display: flex; flex-direction: column; position: relative; } :host(:not(:state(-vertical))) .header { display: flex; align-items: flex-start; flex-wrap: nowrap; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider) { flex: 1 1 auto; position: relative; min-width: 2rem; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider)::before { content: ""; position: absolute; left: 0; right: 0; } :host(:not(:state(-vertical)):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before { top: 50%; } :host(:not(:state(-vertical))) ::slotted([slot="step"]) { align-self: stretch; } :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; top: 0; } :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: 50%; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:state(-vertical))[label-position="below"]) { --_step-direction: column; --_step-label-align-items: center; } :host(:state(-vertical)) .header { display: contents; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider)) { flex: none; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; left: 0; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { top: 0; bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); bottom: 0; } :host(:not(:state(-vertical))) { --m3e-collapsible-animation-duration: 0ms; } :host(:state(-no-animate)) { --m3e-collapsible-animation-duration: 0ms; }`,t([u()],rS.prototype,"_orientation",void 0),t([u()],rS.prototype,"_selectedIndex",void 0),t([m({attribute:"header-position",reflect:!0})],rS.prototype,"headerPosition",void 0),t([m({attribute:"label-position",reflect:!0})],rS.prototype,"labelPosition",void 0),t([m({type:Boolean,reflect:!0})],rS.prototype,"linear",void 0),t([m({reflect:!0})],rS.prototype,"orientation",void 0),rS=t([$("m3e-stepper")],rS);let sS=class extends iS{constructor(){super("next")}};sS=t([$("m3e-stepper-next")],sS);let nS=class extends iS{constructor(){super("previous")}};nS=t([$("m3e-stepper-previous")],nS);let lS=class extends iS{constructor(){super("reset")}};lS=t([$("m3e-stepper-reset")],lS);const cS=o(`var(--m3e-switch-selected-icon-color, ${v.color.onPrimaryContainer})`),dS=o("var(--m3e-switch-selected-icon-size, 1rem)"),hS=o(`var(--m3e-switch-unselected-icon-color, ${v.color.surfaceContainerHighest})`),mS=o("var(--m3e-switch-unselected-icon-size, 1rem)"),pS=o("var(--m3e-switch-track-height, 2rem)"),uS=o("var(--m3e-switch-track-width, 3.25rem)"),vS=o(`var(--m3e-switch-track-outline-color, ${v.color.outline})`),bS=o("var(--m3e-switch-track-outline-width, 2px)"),fS=o(`var(--m3e-switch-track-shape, ${v.shape.corner.full})`),gS=o(`var(--m3e-switch-selected-track-color, ${v.color.primary})`),yS=o(`var(--m3e-switch-unselected-track-color, ${v.color.surfaceContainerHighest})`),$S=o("var(--m3e-switch-unselected-handle-height, 1rem)"),xS=o("var(--m3e-switch-unselected-handle-width, 1rem)"),wS=o("var(--m3e-switch-with-icon-handle-height, 1.5rem)"),kS=o("var(--m3e-switch-with-icon-handle-width, 1.5rem)"),CS=o("var(--m3e-switch-selected-handle-height, 1.5rem)"),SS=o("var(--m3e-switch-selected-handle-width, 1.5rem)"),_S=o("var(--m3e-switch-pressed-handle-height, 1.75rem)"),LS=o("var(--m3e-switch-pressed-handle-width, 1.75rem)"),ES=o(`var(--m3e-switch-handle-shape, ${v.shape.corner.full})`),zS=o(`var(--m3e-switch-selected-handle-color, ${v.color.onPrimary})`),MS=o(`var(--m3e-switch-unselected-handle-color, ${v.color.outline})`),TS=o("var(--m3e-switch-state-layer-size, 2.5rem)"),PS=o(`var(--m3e-switch-state-layer-shape, ${v.shape.corner.full})`),IS=o(`var(--m3e-switch-disabled-selected-icon-color, ${v.color.onSurface})`),WS=o("var(--m3e-switch-disabled-selected-icon-opacity, 38%)"),DS=o(`var(--m3e-switch-disabled-unselected-icon-color, ${v.color.surfaceContainerHighest})`),AS=o("var(--m3e-switch-disabled-unselected-icon-opacity, 38%)"),HS=o("var(--m3e-switch-disabled-track-opacity, 12%)"),OS=o(`var(--m3e-switch-disabled-selected-track-color, ${v.color.onSurface})`),BS=o(`var(--m3e-switch-disabled-unselected-track-color, ${v.color.surfaceContainerHighest})`),FS=o(`var(--m3e-switch-disabled-unselected-track-outline-color, ${v.color.onSurface})`),VS=o("var(--m3e-switch-disabled-unselected-handle-opacity, 38%)"),qS=o("var(--m3e-switch-disabled-selected-handle-opacity, 100%)"),RS=o(`var(--m3e-switch-disabled-selected-handle-color, ${v.color.surface})`),US=o(`var(--m3e-switch-disabled-unselected-handle-color, ${v.color.onSurface})`),NS=o(`var(--m3e-switch-selected-hover-icon-color, ${v.color.onPrimaryContainer})`),jS=o(`var(--m3e-switch-unselected-hover-icon-color, ${v.color.surfaceContainerHighest})`),YS=o(`var(--m3e-switch-selected-hover-track-color, ${v.color.primary})`),KS=o(`var(--m3e-switch-selected-hover-state-layer-color, ${v.color.primary})`),ZS=o("var(--m3e-switch-selected-hover-state-layer-opacity, 8%)"),GS=o(`var(--m3e-switch-unselected-hover-track-color, ${v.color.surfaceContainerHighest})`),XS=o(`var(--m3e-switch-unselected-hover-track-outline-color, ${v.color.outline})`),JS=o(`var(--m3e-switch-unselected-hover-state-layer-color, ${v.color.onSurface})`),QS=o("var(--m3e-switch-unselected-hover-state-layer-opacity, 8%)"),e_=o(`var(--m3e-switch-selected-hover-handle-color, ${v.color.surfaceContainerHighest})`),t_=o(`var(--m3e-switch-unselected-hover-handle-color, ${v.color.onSurfaceVariant})`),a_=o(`var(--m3e-switch-selected-focus-icon-color, ${v.color.onPrimaryContainer})`),o_=o(`var(--m3e-switch-unselected-focus-icon-color, ${v.color.surfaceContainerHighest})`),i_=o(`var(--m3e-switch-selected-focus-track-color, ${v.color.primary})`),r_=o(`var(--m3e-switch-selected-focus-state-layer-color, ${v.color.primary})`),s_=o("var(--m3e-switch-selected-focus-state-layer-opacity, 10%)"),n_=o(`var(--m3e-switch-unselected-focus-track-color, ${v.color.surfaceContainerHighest})`),l_=o(`var(--m3e-switch-unselected-focus-track-outline-color, ${v.color.outline})`),c_=o(`var(--m3e-switch-unselected-focus-state-layer-color, ${v.color.onSurface})`),d_=o("var(--m3e-switch-unselected-focus-state-layer-opacity, 10%)"),h_=o(`var(--m3e-switch-selected-focus-handle-color, ${v.color.primaryContainer})`),m_=o(`var(--m3e-switch-unselected-focus-handle-color, ${v.color.onSurfaceVariant})`),p_=o(`var(--m3e-switch-selected-pressed-icon-color, ${v.color.onPrimaryContainer})`),u_=o(`var(--m3e-switch-unselected-pressed-icon-color, ${v.color.surfaceContainerHighest})`),v_=o(`var(--m3e-switch-selected-pressed-track-color, ${v.color.primary})`),b_=(o(`var(--m3e-switch-selected-pressed-state-layer-color, ${v.color.primary})`),o("var(--m3e-switch-selected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-unselected-pressed-track-color, ${v.color.surfaceContainerHighest})`)),f_=o(`var(--m3e-switch-unselected-pressed-track-outline-color, ${v.color.outline})`),g_=(o(`var(--m3e-switch-unselected-pressed-state-layer-color, ${v.color.onSurface})`),o("var(--m3e-switch-unselected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-selected-pressed-handle-color, ${v.color.primaryContainer})`)),y_=o(`var(--m3e-switch-unselected-pressed-handle-color, ${v.color.onSurfaceVariant})`),$_=i`.handle { position: relative; display: flex; align-items: center; justify-content: center; pointer-events: none; transform-origin: center center; border-radius: ${ES}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } .track:not(.pressed) .handle { --_switch-handle-effect: ${v.motion.spring.fastSpatial}; } .track.pressed .handle { --_switch-handle-effect: ${v.motion.spring.fastEffects}; } :host(:not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { width: ${kS}; height: ${wS}; } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host([aria-disabled="true"]:not([checked])) .handle { width: ${xS}; height: ${$S}; } :host([checked]) .track:not(.pressed) .handle { width: ${SS}; height: ${CS}; } .track.pressed .handle { width: ${LS}; height: ${_S}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${MS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle { background-color: ${t_}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle { background-color: ${m_}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ${y_}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${zS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle { background-color: ${e_}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle { background-color: ${h_}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: ${g_}; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: color-mix( in srgb, ${US} ${VS}, transparent ); } :host([aria-disabled="true"][checked]) .handle { background-color: color-mix( in srgb, ${RS} ${qS}, transparent ); } :host(:not(:dir(rtl))[checked]) .track:not(.pressed) .handle { transform: translateX( calc(${uS} - ${SS} - calc(${bS} * 2)) ); } :host(:dir(rtl)[checked]) .track:not(.pressed) .handle { transform: translateX( calc( 0px - calc( ${uS} - ${SS} - calc(${bS} * 2) ) ) ); } :host(:not(:dir(rtl))[checked]) .track.pressed .handle { transform: translateX( calc(${uS} - ${LS} - ${bS}) ); } :host(:dir(rtl)[checked]) .track.pressed .handle { transform: translateX( calc(0px - calc(${uS} - ${LS} - ${bS})) ); } :host(:not(:dir(rtl)):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:not(:dir(rtl))[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( ${bS} + calc(${LS} - ${kS}) ) ); } :host(:dir(rtl):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:dir(rtl)[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( 0px - calc( ${bS} + calc(${LS} - ${kS}) ) ) ); } :host(:not(:dir(rtl)):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(${bS}); } :host(:dir(rtl):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(calc(0px - ${bS})); } @media (forced-colors: active) { .handle { transition: ${o(`transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ButtonText; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: GrayText; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: Canvas; } :host([aria-disabled="true"][checked]) .handle { background-color: Canvas; } } @media (prefers-reduced-motion) { .handle { transition: none; } }`,x_=i`:host([icons="none"]) .icon, :host([icons="selected"]:not([checked])) .icon, :host([aria-disabled="true"]:not([checked])) .icon { display: none; } .icon { width: 1em; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .icon { font-size: ${mS}; } :host([checked]) .icon { font-size: ${dS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${hS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon { color: ${jS}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon { color: ${o_}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: ${u_}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${cS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon { color: ${NS}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon { color: ${a_}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: ${p_}; } :host([aria-disabled="true"]:not([checked])) .icon { color: color-mix( in srgb, ${DS} ${AS}, transparent ); } :host([aria-disabled="true"][checked]) .icon { color: color-mix( in srgb, ${IS} ${WS}, transparent ); } @media (forced-colors: active) { :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: CanvasText; } :host([aria-disabled="true"]:not([checked])) .icon { color: Canvas; } :host([aria-disabled="true"][checked]) .icon { color: GrayText; } } @media (prefers-reduced-motion) { .icon { transition: none; } }`,w_=i`.state-layer { width: ${TS}; height: ${TS}; border-radius: ${PS}; transition: ${o(`top ${v.motion.spring.fastEffects},\n left ${v.motion.spring.fastEffects},\n right ${v.motion.spring.fastEffects}`)}; } :host(:not([checked])[icons="both"]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${TS} - ${kS}) / 2)); top: calc(0px - calc(calc(${TS} - ${wS}) / 2)); } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .state-layer { inset-inline-start: calc( 0px - calc(calc(${TS} - ${xS}) / 2) ); top: calc(0px - calc(calc(${TS} - ${$S}) / 2)); } :host([checked]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${TS} - ${SS}) / 2)); top: calc(0px - calc(calc(${TS} - ${CS}) / 2)); } .track.pressed .state-layer { inset-inline-start: calc(0px - calc(calc(${TS} - ${LS}) / 2)); top: calc(0px - calc(calc(${TS} - ${LS}) / 2)); } :host(:not([checked])) .state-layer { --m3e-state-layer-hover-color: ${JS}; --m3e-state-layer-hover-opacity: ${QS}; --m3e-state-layer-focus-color: ${c_}; --m3e-state-layer-focus-opacity: ${d_}; } :host([checked]) .state-layer { --m3e-state-layer-hover-color: ${KS}; --m3e-state-layer-hover-opacity: ${ZS}; --m3e-state-layer-focus-color: ${r_}; --m3e-state-layer-focus-opacity: ${s_}; }`,k_=i`:host { display: inline-block; position: relative; outline: none; height: fit-content; width: fit-content; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .focus-ring { border-radius: ${fS}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .base { display: flex; align-items: center; justify-content: center; }`,C_=i`.track { display: flex; align-items: center; position: relative; box-sizing: border-box; border-radius: ${fS}; width: ${uS}; height: ${pS}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .track { border-width: ${bS}; border-style: solid; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) { border-color: ${vS}; background-color: ${yS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) { border-color: ${XS}; background-color: ${GS}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) { border-color: ${l_}; background-color: ${n_}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ${f_}; background-color: ${b_}; } :host([aria-disabled="true"]:not([checked])) .track { border-color: color-mix( in srgb, ${FS} ${HS}, transparent ); background-color: color-mix( in srgb, ${BS} ${HS}, transparent ); } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) { background-color: ${gS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) { background-color: ${YS}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) { background-color: ${i_}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ${v_}; } :host([aria-disabled="true"][checked]) .track { background-color: color-mix( in srgb, ${OS} ${HS}, transparent ); } @media (forced-colors: active) { .track { transition: none; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ButtonText; background-color: Canvas; } :host([aria-disabled="true"]:not([checked])) .track { border-color: GrayText; background-color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ButtonText; } :host([aria-disabled="true"][checked]) .track { background-color: GrayText; } } @media (prefers-reduced-motion) { .track { transition: none; } }`;var S_,__,L_,E_,z_,M_;let T_=class extends(Q(te(ae(ie($e(se(q(N(Y(P(f(r,"switch")))))))))))){constructor(){super(),S_.add(this),__.set(this,t=>e(this,S_,"m",M_).call(this,t)),L_.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),E_.set(this,new Z(this,{target:null,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})),this.icons="none",this.value="on",new Z(this,{isPressedKey:e=>" "===e,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})}get[(__=new WeakMap,L_=new WeakMap,E_=new WeakMap,S_=new WeakSet,le)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,__,"f"));for(const t of this.labels)e(this,L_,"f").observe(t),e(this,E_,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,__,"f"));for(const t of this.labels)e(this,L_,"f").unobserve(t),e(this,E_,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="track" aria-hidden="true"><div class="touch" aria-hidden="true"></div><div class="handle"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><div class="base">${e(this,S_,"m",z_).call(this)}</div></div></div>`}};var P_,I_,W_,D_;z_=function(){return this.checked?s`<svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"></path></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>`},M_=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},T_.styles=[k_,w_,C_,$_,x_],t([h(".track")],T_.prototype,"_track",void 0),t([h(".focus-ring")],T_.prototype,"_focusRing",void 0),t([h(".state-layer")],T_.prototype,"_stateLayer",void 0),t([m({reflect:!0})],T_.prototype,"icons",void 0),t([m()],T_.prototype,"value",void 0),T_=t([$("m3e-switch")],T_);let A_=D_=class extends(ue(b(q(N(Y(P(f(r,"tab"),!0))))))){constructor(){super(...arguments),P_.add(this),I_.set(this,t=>e(this,P_,"m",W_).call(this,t))}attach(e){super.attach(e),e.id=e.id||"m3e-tab-panel-"+D_.__nextId++,Ie(this,"aria-controls",e.id)}detach(){this.control&&this.control.id&&We(this,"aria-controls",this.control.id),super.detach()}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,I_,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,I_,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-tabs")?.[De].notifySelectionChange(this)}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><slot name="icon" aria-hidden="true"></slot><span class="label"><slot></slot></span></div></div>`}};I_=new WeakMap,P_=new WeakSet,W_=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-tabs")?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},A_.styles=i`:host { display: inline-block; outline: none; user-select: none; height: calc(var(--_tab-height) + ${v.density.calc(-3)}); font-size: var(--m3e-tab-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-tab-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-tab-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-tab-tracking, ${v.typescale.standard.title.small.tracking}); flex-grow: var(--_tab-grow); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; padding-inline-start: var(--m3e-tab-padding-start, 1.5rem); padding-inline-end: var(--m3e-tab-padding-end, 1.5rem); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .focus-ring { border-radius: var(--m3e-tab-focus-ring-shape, ${v.shape.corner.large}); } :host([selected]:focus-within) .focus-ring { top: var(--_tab-focus-ring-top-offset, 0); bottom: var(--_tab-focus-ring-bottom-offset, 0); } :host([selected]:not(:disabled)) .base { color: var(--m3e-tab-selected-color, var(--_tab-selected-color, ${v.color.primary})); --m3e-state-layer-hover-color: var( --m3e-tab-selected-container-hover-color, var(--_tab-selected-container-hover-color, ${v.color.primary}) ); --m3e-state-layer-focus-color: var( --_tab-selected-container-focus-color, var(--m3e-tab-selected-container-focus-color, ${v.color.primary}) ); --m3e-ripple-color: var( --_tab-selected-ripple-color, var(--m3e-tab-selected-ripple-color, ${v.color.primary}) ); } :host(:not([selected]):not(:disabled)) .base { color: var(--m3e-tab-unselected-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-hover-color: var(--m3e-tab-unselected-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-tab-unselected-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-tab-unselected-ripple-color, ${v.color.onSurface}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-tab-disabled-color, ${v.color.onSurface}) var(--m3e-tab-disabled-opacity, 38%), transparent ); } .wrapper { display: inline-flex; align-items: center; white-space: nowrap; flex-direction: var(--_tab-direction); justify-content: center; column-gap: var(--m3e-tab-spacing, 0.5rem); } ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-tab-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .base { color: ButtonText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host(:disabled) .base { color: GrayText; } }`,A_.__nextId=0,t([h(".focus-ring")],A_.prototype,"_focusRing",void 0),t([h(".state-layer")],A_.prototype,"_stateLayer",void 0),t([h(".ripple")],A_.prototype,"_ripple",void 0),t([h(".label")],A_.prototype,"label",void 0),A_=D_=t([$("m3e-tab")],A_);let H_=class extends(f(r,"tabpanel")){connectedCallback(){super.connectedCallback(),this.slot="panel"}render(){return s`<slot></slot>`}};var O_,B_,F_,V_,q_,R_,U_,N_,j_;H_.styles=i`:host { display: block; overflow-y: auto; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; }`,H_=t([$("m3e-tab-panel")],H_);let Y_=class extends(P(r)){constructor(){super(),O_.add(this),B_.set(this,void 0),this._selectedIndex=null,this[j_]=(new Ae).onSelectedItemsChange(()=>e(this,O_,"m",U_).call(this)).withHomeAndEnd().withWrap().withDirectionality(qe.current),this.disablePagination=!1,this.headerPosition="before",this.variant="secondary",this.stretch=!1,this.previousPageLabel="Previous page",this.nextPageLabel="Next page",new A(this,{skipInitial:!0,callback:()=>{E(this,"-no-animate"),e(this,O_,"m",N_).call(this)}})}get tabs(){return this[De]?.items??[]}get selectedTab(){return null!==this._selectedIndex?this.tabs[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}set selectedIndex(e){if(e>=0&&e<this.tabs.length)this.tabs[e].selected=!0;else{const e=this.selectedTab;e&&(e.selected=!1)}}connectedCallback(){super.connectedCallback(),E(this,"-no-animate"),a(this,B_,qe.observe(()=>{this.requestUpdate(),this[De].directionality=qe.current}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,B_,"f")?.call(this)}updated(t){super.updated(t),(t.has("variant")||t.has("stretch"))&&null!==this._selectedIndex&&e(this,O_,"m",N_).call(this)}render(){let t;return this.selectedTab?.control&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedTab.control),-1===t&&(t=void 0)),s`${"before"===this.headerPosition?e(this,O_,"m",F_).call(this):n}<m3e-slide class="tabs" selected-index="${je(t)}"><slot name="panel"></slot></m3e-slide>${"after"===this.headerPosition?e(this,O_,"m",F_).call(this):n}`}};
|
|
126
|
+
</g>`:d`<path d="${i}" stroke="currentColor" stroke-width=${e(this,By,"f")} fill="none" stroke-linecap="round" />`}</svg>`:s`<div class="complete"></div>`},Ny=function(){return s`<div class="stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},jy=function(){const e=this.shadowRoot?.querySelector(".stroke");e&&a(this,By,e.clientHeight,"f")},Yy=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,Fy,e.clientHeight,"f"),a(this,qy,e.clientWidth,"f"))},Ky=function(t,a=0){const o=e(this,Fy,"f")+e(this,By,"f")/2,i=o,r=[],s=e(this,qy,"f")/2;let n=0;for(r.push(`M ${n},${i}`);n<=t;){const t=n+s,l=i+o*Math.sin(2*Math.PI*t/e(this,qy,"f")+a),c=n+s/2,d=i+o*Math.sin(2*Math.PI*(n+s/2)/e(this,qy,"f")+a);r.push(`Q ${c},${d} ${t},${l}`),n+=s}const l=`0 -1 ${t} ${2*o+2}`;return{path:r.join(" "),viewBox:l,height:e(this,By,"f")+2*e(this,Fy,"f"),padding:1}},Gy.styles=[cy.styles,i`:host { display: block; position: relative; } .progress { width: 100%; height: 100%; position: relative; align-items: center; border-radius: var(--m3e-linear-progress-indicator-shape, ${v.shape.corner.extraSmall}); } .stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .stroke { width: 100%; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { height: var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem); width: var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem); } :host([mode="indeterminate"]) .amplitude-and-wavelength, :host([mode="query"]) .amplitude-and-wavelength { width: var(--m3e-linear-wavy-indeterminate-progress-indicator-wavelength, 1.5rem); } .primary, .secondary, .stop { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } .stop { aspect-ratio: 1; flex: none; } :host([variant="flat"]) { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } :host([variant="wavy"]) { height: calc( var(--m3e-linear-progress-indicator-thickness, 0.25rem) + calc(var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem) * 2) ); } :host([variant="wavy"]) .primary, :host([variant="wavy"]) .secondary { position: relative; height: 100%; overflow: hidden; } :host([variant="wavy"]) .complete { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } :host([variant="wavy"]) .secondary { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .wave { position: absolute; display: block; } .primary .wave, .secondary .wave { margin-inline-start: calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem)); } :host([variant="wavy"][mode="determinate"]) .primary path, :host([variant="wavy"][mode="buffer"]) .primary path { animation: wave-slide 1.5s linear infinite; } @keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem))); } } :host([mode="determinate"]) .progress, :host([mode="buffer"]) .progress { display: flex; overflow: hidden; } :host([mode="determinate"]) .primary, :host([mode="buffer"]) .primary { width: var(--_value, 0px); flex: none; } :host([mode="determinate"]) .gap, :host([mode="buffer"]) .gap { flex-basis: var(--m3e-linear-progress-indicator-thickness, 0.25rem); flex-shrink: 1; } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .buffer { flex: 1 1 auto; } :host([mode="buffer"]) .buffer { flex-shrink: 5; height: 100%; width: 100%; background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); mask-image: radial-gradient( circle, black 0, black calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2), transparent calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2) ); mask-size: calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2) 100%; mask-repeat: repeat; animation: buffer 250ms linear infinite; } :host(:dir(rtl)[mode="buffer"]) .buffer { transform: scaleX(-1); } @keyframes buffer { from { mask-position: 0 0; } to { mask-position: calc(-1 * calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2)) 0; } } :host([mode="buffer"]) .secondary { width: var(--_buffer-value, 0px); flex: none; } :host([mode="indeterminate"]) .primary, :host([mode="query"]) .primary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-primary 2.1s infinite linear; } :host([variant="wavy"][mode="indeterminate"]) .primary, :host([variant="wavy"][mode="query"]) .primary { animation-name: wavy-indeterminate-primary; } :host([mode="indeterminate"]) .secondary, :host([mode="query"]) .secondary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-secondary 2.1s infinite linear; animation-delay: 1.15s; animation-fill-mode: backwards; } :host([variant="wavy"][mode="indeterminate"]) .secondary, :host([variant="wavy"][mode="query"]) .secondary { animation-name: wavy-indeterminate-secondary; } :host([mode="indeterminate"]) .progress, :host([mode="query"]) .progress { overflow: hidden; position: relative; } :host(:not(:dir(rtl))[mode="query"]) .progress, :host(:dir(rtl)[mode="indeterminate"]) .progress { transform: scaleX(-1); } :host([variant="flat"]) .primary, :host([variant="flat"][mode="indeterminate"]) .secondary, :host([variant="flat"][mode="query"]) .secondary, :host([variant="wavy"]) .complete, .stop { background-color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([variant="wavy"]) .progress { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .secondary, :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { y: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); border-radius: inherit; } :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } @keyframes indeterminate-primary { 0% { left: -145.167%; width: 8%; } 20% { left: -113.333%; width: 48%; } 60% { left: 56.333%; width: 78%; } 100% { left: 100%; width: 8%; } } @keyframes indeterminate-secondary { 0% { left: -54.888%; width: 8%; } 20% { left: -20%; width: 48%; } 60% { left: 60%; width: 78%; } 100% { left: 160%; width: 8%; } } @keyframes wavy-indeterminate-primary { 0% { transform: translateX(-145.167%); width: 8%; } 20% { transform: translateX(-113.333%); width: 48%; } 60% { transform: translateX(56.333%); width: 78%; } 100% { transform: translateX(100%); width: 8%; } } @keyframes wavy-indeterminate-secondary { 0% { transform: translateX(-54.888%); width: 8%; } 20% { transform: translateX(-20%); width: 48%; } 60% { transform: translateX(60%); width: 78%; } 100% { transform: translateX(160%); width: 8%; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],Gy.__nextMaskId=0,t([m({reflect:!0})],Gy.prototype,"mode",void 0),t([m({attribute:"buffer-value",type:Number,reflect:!0})],Gy.prototype,"bufferValue",void 0),Gy=Zy=t([$("m3e-linear-progress-indicator")],Gy);let i$=class extends(Q(te(ae($e(V(N(se(Y(P(f(r,"radio"),!0)))))))))){constructor(){super(...arguments),Xy.add(this),Jy.set(this,t=>e(this,Xy,"m",a$).call(this,t)),Qy.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),e$.set(this,new Z(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Jy=new WeakMap,Qy=new WeakMap,e$=new WeakMap,Xy=new WeakSet,le)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Jy,"f"));for(const t of this.labels)e(this,Qy,"f").observe(t),e(this,e$,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Jy,"f"));for(const t of this.labels)e(this,Qy,"f").unobserve(t),e(this,e$,"f").unobserve(t)}update(t){super.update(t),t.has("checked")&&e(this,Xy,"m",o$).call(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,Xy,"m",t$).call(this)}</div></div>`}};var r$,s$,n$,l$,c$,d$,h$;t$=function(){return s`<svg viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`},a$=function(t){t.defaultPrevented||this.checked||this.disabled||(this.checked=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(e(this,Xy,"m",o$).call(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!1,this.closest("label")&&t.preventDefault())},o$=function(){const e=this.closest("m3e-radio-group");e?e[De].notifySelectionChange(this):this.name&&this.checked&&[...this.getRootNode()?.querySelectorAll(`m3e-radio[name="${this.name}"]`)??[]].filter(e=>e!==this&&e.checked).forEach(e=>e.checked=!1)},i$.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-radio-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-radio-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-radio-unselected-ripple-color, ${v.color.onSurface}); color: var(--m3e-radio-unselected-icon-color, ${v.color.onSurfaceVariant}); } :host([checked]) .base { --m3e-state-layer-hover-color: var(--m3e-radio-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-radio-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-radio-selected-ripple-color, ${v.color.primary}); color: var(--m3e-radio-selected-icon-color, ${v.color.primary}); } :host([aria-disabled="true"]) .base { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:state(-touched):state(-invalid)) .base { --m3e-state-layer-hover-color: var(--m3e-radio-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-radio-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-radio-error-ripple-color, ${v.color.error}); color: var(--m3e-radio-error-icon-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not([checked])) .base, :host([checked]) .base { --m3e-state-layer-hover-color: var(--_radio-forced-color, CanvasText); --m3e-state-layer-focus-color: var(--_radio-forced-color, CanvasText); --m3e-ripple-color: var(--_radio-forced-color, CanvasText); color: var(--_radio-forced-color, CanvasText); } :host([aria-disabled="true"]) .base { color: GrayText; } :host(:state(-touched):state(-invalid)) .base { --_radio-forced-color: Highlight; color: Highlight; } }`,t([h(".focus-ring")],i$.prototype,"_focusRing",void 0),t([h(".state-layer")],i$.prototype,"_stateLayer",void 0),t([h(".ripple")],i$.prototype,"_ripple",void 0),t([m()],i$.prototype,"value",void 0),i$=t([$("m3e-radio")],i$);let m$=class extends(Q(ee(te(ae(oe(ie(se(Y(P(f(r,"radiogroup"))))))))))){constructor(){super(...arguments),r$.add(this),s$.set(this,void 0),n$.set(this,()=>e(this,r$,"m",d$).call(this)),this[h$]=(new Ae).withWrap().withDirectionality(Ve.current).onActiveItemChange(()=>{this[De].activeItem?.click()})}static get observedAttributes(){return[...super.observedAttributes,"aria-invalid"]}get radios(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems[0]??null}get value(){return this.selected?.value??null}markAsTouched(){super.markAsTouched(),this.radios.forEach(e=>e.markAsTouched())}markAsUntouched(){super.markAsUntouched(),this.radios.forEach(e=>e.markAsUntouched())}markAsDirty(){super.markAsDirty(),this.radios.forEach(e=>e.markAsDirty())}markAsPristine(){super.markAsPristine(),this.radios.forEach(e=>e.markAsPristine())}attributeChangedCallback(e,t,a){switch(super.attributeChangedCallback(e,t,a),e){case"name":this.radios.forEach(e=>e.name=this.name);break;case"aria-invalid":this.radios.forEach(e=>{k(e,"-invalid","true"===a),e[Ce]?.()})}}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",e(this,n$,"f")),a(this,s$,Ve.observe(()=>this[De].directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",e(this,n$,"f")),e(this,s$,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(this.ariaDisabled=null),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled)}render(){return s`<slot @slotchange="${e(this,r$,"m",l$)}" @keydown="${e(this,r$,"m",c$)}" @change="${e(this,r$,"m",d$)}"></slot>`}};s$=new WeakMap,n$=new WeakMap,r$=new WeakSet,h$=De,l$=function(){const{added:e}=this[De].setItems([...this.querySelectorAll("m3e-radio")]);e.forEach(e=>e.name=e.name||this.name)},c$=function(e){this[De].onKeyDown(e)},d$=function(){this.checkValidity()},m$.styles=i`:host { display: inline-flex; }`,m$=t([$("m3e-radio-group")],m$);const p$=o(`var(--m3e-search-bar-container-color, ${v.color.surfaceContainerHigh})`),u$=o(`var(--m3e-search-bar-leading-icon-color, ${v.color.onSurface})`),v$=o(`var(--m3e-search-bar-trailing-icon-color, ${v.color.onSurfaceVariant})`),b$=o("var(--m3e-search-bar-container-height, 3.5rem)"),f$=o(`var(--m3e-search-bar-container-shape, ${v.shape.corner.full})`),g$=o("var(--m3e-search-bar-icon-size, 1.5rem)"),y$=o(`var(--m3e-search-bar-supporting-text-color, ${v.color.onSurfaceVariant})`),$$=o(`var(--m3e-search-bar-supporting-text-font-size, ${v.typescale.standard.body.large.fontSize})`),x$=o(`var(--m3e-search-bar-supporting-text-font-weight, ${v.typescale.standard.body.large.fontWeight})`),w$=o(`var(--m3e-search-bar-supporting-text-line-height, ${v.typescale.standard.body.large.lineHeight})`),k$=o(`var(--m3e-search-bar-supporting-text-tracking, ${v.typescale.standard.body.large.tracking})`),C$=o(`var(--m3e-search-bar-input-color, ${v.color.onSurface})`),S$=o(`var(--m3e-search-bar-input-text-font-size, ${v.typescale.standard.body.large.fontSize})`),_$=o(`var(--m3e-search-bar-input-text-font-weight, ${v.typescale.standard.body.large.fontWeight})`),L$=o(`var(--m3e-search-bar-input-text-line-height, ${v.typescale.standard.body.large.lineHeight})`),E$=o(`var(--m3e-search-bar-input-text-tracking, ${v.typescale.standard.body.large.tracking})`),z$=o("var(--m3e-search-bar-leading-space, 0.25rem)"),M$=o("var(--m3e-search-bar-trailing-space, 0.25rem)"),T$=o("var(--m3e-search-bar-no-actions-leading-space, 1rem)"),P$=o("var(--m3e-search-bar-no-actions-trailing-space, 1rem)"),I$=o("var(--m3e-search-bar-leading-actions-trailing-space, 0.25rem)"),W$=o("var(--m3e-search-bar-trailing-actions-leading-space, 0.25rem)"),D$=o("var(--m3e-search-bar-actions-gap, 0px)"),A$=i`m3e-search-bar input[slot="input"]::placeholder { user-select: none; color: ${y$}; font-size: ${$$}; font-weight: ${x$}; line-height: ${w$}; letter-spacing: ${k$}; }`,H$=i`:host { display: block; height: ${b$}; } .base { cursor: text; display: flex; align-items: center; box-sizing: border-box; width: 100%; height: 100%; border-radius: ${f$}; background-color: ${p$}; } .clear { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; } :host(:not(:state(-clearable))) .clear { display: none; } :host(:state(-with-leading)) slot[name="leading"], :host(:state(-with-trailing)) slot[name="trailing"] { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; padding-inline: 0.25rem; column-gap: calc(0.5rem + ${D$}); } ::slotted([slot="input"]) { flex: 1 1 auto; outline: unset; border: unset; background-color: transparent; box-shadow: none; min-width: 0; padding: unset; color: ${C$}; font-size: ${S$}; font-weight: ${_$}; line-height: ${L$}; letter-spacing: ${E$}; } :host(:state(-with-leading)) .base { padding-inline-start: ${z$}; } :host(:not(:state(-with-leading))) .base { padding-inline-start: ${T$}; } :host(:is(:state(-with-trailing), :state(-clearable))) .base { padding-inline-end: ${M$}; } :host(:not(:is(:state(-with-trailing), :state(-clearable)))) .base { padding-inline-end: ${P$}; } :host(:state(-with-leading)) ::slotted([slot="input"]) { margin-inline-start: ${I$}; } :host(:is(:state(-with-trailing), :state(-clearable))) ::slotted([slot="input"]) { margin-inline-end: ${W$}; } slot[name="leading"] { color: ${u$}; --m3e-icon-color: ${u$}; --m3e-icon-button-icon-color: ${u$}; --m3e-icon-size: ${g$}; } slot[name="trailing"], .clear { color: ${v$}; --m3e-icon-color: ${v$}; --m3e-icon-button-icon-color: ${v$}; --m3e-icon-size: ${g$}; } ::slotted(svg[slot="leading"]), ::slotted(svg[slot="trailing"]) { width: 1em; font-size: ${g$}; } ::slotted([slot="clear-icon"]), .clear-icon { width: 1em; font-size: ${g$} !important; } slot[name="clear-icon"] { --m3e-icon-size: ${g$}; } @media (forced-colors: active) { .base { border: 1px var(--_search-bar-forced-color-outline-style, solid) CanvasText; } }`,O$=o(`var(--m3e-search-view-container-color, ${v.color.surfaceContainerHigh})`),B$=o(`var(--m3e-search-view-contained-container-color, ${v.color.surfaceContainerLow})`),F$=o(`var(--m3e-search-view-divider-color, ${v.color.outline})`),q$=o("var(--m3e-search-view-divider-thickness, 1px)"),V$=o(`var(--m3e-search-view-full-screen-container-shape, ${v.shape.corner.none})`),R$=o("var(--m3e-search-view-full-screen-header-container-height, 4.5rem)"),U$=o(`var(--m3e-search-view-docked-container-shape, ${v.shape.corner.extraLarge})`),N$=o("var(--m3e-search-view-docked-header-container-height, 3.5rem)"),j$=o("var(--m3e-search-view-contained-leading-margin, 1.5rem)"),Y$=o("var(--m3e-search-view-contained-trailing-margin, 1.55rem)"),K$=o("var(--m3e-search-view-contained-focused-leading-margin, 0.75rem)"),Z$=o("var(--m3e-search-view-contained-focused-trailing-margin, 0.75rem)"),G$=o("var(--m3e-search-view-contained-docked-bar-results-gap, 2px)"),X$=(o(`var(--m3e-search-view-contained-docked-results-shape, ${v.shape.corner.medium})`),o(`var(--m3e-search-view-contained-docked-bar-shape, ${v.shape.corner.full})`),o("var(--m3e-search-view-contained-full-screen-bar-container-height, 3.5rem)")),J$=o("var(--m3e-search-view-docked-container-min-height, 240px)"),Q$=o("var(--m3e-search-view-docked-container-max-height, calc(100vh * 0.6667))"),ex=o("var(--m3e-search-view-contained-docked-results-space, 0.25rem)"),tx=o("var(--m3e-search-view-docked-results-bottom-space, 1rem)"),ax=o(`var(--m3e-search-view-docked-scrim-color, ${v.color.scrim})`),ox=o("var(--m3e-search-view-docked-scrim-opacity, 32%)"),ix=i`m3e-search-view input[slot="input"]::placeholder { user-select: none; color: ${y$}; font-size: ${$$}; font-weight: ${x$}; line-height: ${w$}; letter-spacing: ${k$}; }`,rx=i`:host { display: block; } .base { position: relative; width: 100%; } .anchor { position: absolute; width: 100%; visibility: hidden; } .view { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; outline: none; padding: unset; margin: unset; border: unset; } .header { flex: none; display: flex; align-items: center; } .bar { flex: 1 1 auto; } :host(:state(-fullscreen)) .bar { transition: ${o(`margin ${v.motion.duration.short2} ${v.motion.easing.standard}`)}; } :host(:state(-fullscreen)[contained]:not([open])) .bar { margin-inline-start: ${j$}; margin-inline-end: ${Y$}; } :host(:state(-fullscreen)[contained][open]) .bar, :host(:state(-fullscreen)[contained][open]) .results { margin-inline-start: ${K$}; margin-inline-end: ${Z$}; } .icon { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; } ::slotted([slot="search-icon"]), .search-icon, ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: ${g$} !important; } .results { overflow: hidden; flex: 1 1 auto; display: flex; flex-direction: column; } .scroll-container { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; scrollbar-color: ${v.scrollbar.color}; } .view:not(:popover-open) .results, .view.closing .results { display: none; } :host(:not(:is(:state(-clearable), [open]))) .clear { display: none; } ::slotted([slot="clear-icon"]), .clear-icon { width: 1em; font-size: ${g$} !important; } slot[name="clear-icon"] { --m3e-icon-size: ${g$}; } :host(:state(-fullscreen)) .header { transition: height 150ms cubic-bezier(0.2, 0, 0, 1); } :host(:state(-fullscreen)) .view:popover-open:not(.closing) .header { height: ${R$}; } :host(:state(-fullscreen):not([open])) .header, :host(:state(-fullscreen)[open]) .view.closing .header { height: ${X$}; } :host(:state(-fullscreen)[open]) .bar { --m3e-search-bar-container-height: ${X$}; } :host(:state(-fullscreen)) .anchor { height: ${X$}; } :host(:state(-fullscreen)) .view:popover-open { border-radius: ${V$}; } :host(:state(-fullscreen)[contained]) .view:popover-open { background-color: ${B$}; } :host(:state(-fullscreen):not([contained])) .view:popover-open { background-color: ${O$}; } :host(:state(-docked)[open]) .header, :host(:state(-docked)) .anchor { height: ${N$}; } :host(:not([contained])[open]) .results { border-top-width: ${q$}; border-top-style: solid; border-top-color: ${F$}; } :host(:state(-docked)[contained]) .results { margin-top: ${G$}; } :host(:state(-docked):not([contained])[open]) .view { background-color: ${O$}; --m3e-search-bar-container-color: ${O$}; } :host(:state(-docked)[contained]) .results { background-color: ${O$}; } :host(:state(-docked):not([contained])[open]) .view, :host(:state(-docked)[contained]) .results { border-radius: ${U$}; } :host(:state(-docked)) .results { min-height: calc(${J$} - ${N$}); max-height: calc(${Q$} - ${N$}); } :host(:state(-docked)) .scroll-container { scrollbar-width: ${v.scrollbar.thinWidth}; } :host(:state(-docked):not([contained])) .scroll-container { padding-bottom: ${tx}; } :host(:state(-docked)[contained]) .scroll-container { padding: ${ex}; } :host(:state(-docked)) .results { transform-origin: top; transition: ${o(`transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-docked):not([open])) .results { transform: scaleY(0.8); } :host(:state(-docked)[open]) .results { transform: scaleY(1); } @starting-style { :host(:state(-docked)[open]) .results { transform: scaleY(0.8); } } :host(:state(-docked)[contained]) .view { background-color: transparent; } :host(:state(-docked):not([open])) .view { transition: ${o(`border-radius ${v.motion.duration.long2} ${v.motion.easing.standard},\n background-color ${v.motion.duration.long2} ${v.motion.easing.standard}`)}; } :host(:state(-docked):not([open])) .view::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-docked)) .view::backdrop { background-color: color-mix(in srgb, ${ax} 0%, transparent); margin-inline-end: -20px; } :host(:state(-docked)[open]) .view::backdrop { background-color: color-mix( in srgb, ${ax} ${ox}, transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { :host(:state(-docked)[open]) .view::backdrop { background-color: color-mix(in srgb, ${ax} 0%, transparent); } } :host(:state(-fullscreen)) .view:popover-open { width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; overflow: hidden; } @media (prefers-reduced-motion) { :host(:state(-fullscreen)) .bar, :host(:state(-fullscreen)) .header, :host(:state(-docked)) .results, :host(:state(-docked):not([open])) .view, :host(:state(-docked):not([open])) .view::backdrop, :host(:state(-docked)[open]) .view::backdrop { transition: none; } } @media (forced-colors: active) { :host(:not([contained])[open]) .bar { --_search-bar-forced-color-outline-style: none; } :host(:state(-docked):not([contained])[open]) .view, :host(:state(-docked)[contained]) .results { border: 1px solid CanvasText; } :host(:not([contained])[open]) .results { border-top-color: CanvasText; } }`;var sx,nx,lx,cx,dx,hx,mx,px,ux,vx;let bx=class extends(x(P(r),"clear")){constructor(){super(...arguments),sx.add(this),nx.set(this,void 0),lx.set(this,()=>e(this,sx,"m",ux).call(this)),this.clearable=!1,this.clearLabel="Clear"}clear(){e(this,nx,"f")&&(e(this,nx,"f").value="",e(this,sx,"m",ux).call(this),this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})))}render(){return s`<div class="base" @click="${e(this,sx,"m",dx)}"><slot name="leading" @slotchange="${e(this,sx,"m",hx)}"></slot><slot name="input" @slotchange="${e(this,sx,"m",px)}"></slot>${e(this,sx,"m",cx).call(this)}<slot name="trailing" @slotchange="${e(this,sx,"m",mx)}"></slot></div>`}};var fx,gx,yx,$x,xx,wx,kx,Cx,Sx,_x,Lx,Ex,zx,Mx,Tx,Px,Ix,Wx,Dx,Ax,Hx,Ox,Bx,Fx,qx,Vx,Rx,Ux,Nx,jx,Yx,Kx;nx=new WeakMap,lx=new WeakMap,sx=new WeakSet,cx=function(){return this.clearable?s`<div class="clear"><m3e-icon-button aria-label="${this.clearLabel}" @click="${e(this,sx,"m",vx)}"><slot name="clear-icon"><svg class="clear-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button></div>`:n},dx=function(){this.matches(":focus-within")||e(this,nx,"f")?.focus()},hx=function(e){k(this,"-with-leading",g(e.target))},mx=function(e){k(this,"-with-trailing",g(e.target))},px=function(t){const o=t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLInputElement);o!=e(this,nx,"f")&&(e(this,nx,"f")?.removeEventListener("input",e(this,lx,"f")),a(this,nx,o,"f"),e(this,nx,"f")?.addEventListener("input",e(this,lx,"f")),e(this,nx,"f")&&(e(this,nx,"f").role=e(this,nx,"f").role||"searchbox",e(this,nx,"f").inputMode=e(this,nx,"f").inputMode||"search",e(this,nx,"f").type="text"),e(this,sx,"m",ux).call(this))},ux=function(){k(this,"-clearable",this.clearable&&(e(this,nx,"f")?.value??"").length>0)},vx=function(){this.clear(),e(this,nx,"f")?.focus()},F(A$),bx.styles=H$,t([m({type:Boolean,reflect:!0})],bx.prototype,"clearable",void 0),t([m({attribute:"clear-label"})],bx.prototype,"clearLabel",void 0),bx=t([$("m3e-search-bar")],bx);let Zx=class extends(x(M(P(r)),"clear","query")){constructor(){super(),fx.add(this),gx.set(this,void 0),yx.set(this,!1),$x.set(this,()=>e(this,fx,"m",Dx).call(this)),xx.set(this,()=>e(this,fx,"m",Ox).call(this)),wx.set(this,t=>e(this,fx,"m",Vx).call(this,t)),kx.set(this,()=>e(this,fx,"m",qx).call(this)),Cx.set(this,new W(this)),Sx.set(this,new D(this)),this._clearable=!1,_x.set(this,void 0),Lx.set(this,void 0),Ex.set(this,void 0),this.contained=!1,this.mode="docked",this.open=!1,this.clearLabel="Clear",this.closeLabel="Close",this.hideSearchIcon=!1,new K(this,{callback:e=>this._handleFocusChange(e)})}get currentMode(){return this._mode??("fullscreen"!==this.mode?"docked":"fullscreen")}set currentMode(e){this._mode=e}clear(){e(this,gx,"f")&&(e(this,gx,"f").value="",e(this,fx,"m",Hx).call(this),this.dispatchEvent(new CustomEvent("query",{detail:{term:""},bubbles:!0,composed:!0})),this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this._mode=void 0,e(this,Ex,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.mode&&e(this,fx,"m",Ix).call(this)}willUpdate(t){if(super.willUpdate(t),t.has("mode")){e(this,Ex,"f")?.call(this);const a=t.get("mode");a&&a!==this.mode&&this.open&&(this.open=!1),"auto"===this.mode?e(this,fx,"m",Ix).call(this):(this._mode=void 0,e(this,fx,"m",Ax).call(this))}t.has("_mode")&&e(this,fx,"m",Ax).call(this)}updated(t){super.updated(t),t.has("open")&&(this.open?"fullscreen"===this.currentMode?e(this,fx,"m",Yx).call(this):e(this,fx,"m",Ux).call(this):"fullscreen"===(e(this,_x,"f")??this.currentMode)?e(this,fx,"m",Kx).call(this):e(this,fx,"m",Nx).call(this))}render(){return s`<div class="base"><div class="anchor"></div><div role="${je(this.open?"dialog":void 0)}" aria-modal="${je(this.open?"true":void 0)}" aria-labelledby="${je(this.open?"header":void 0)}" class="view" tabindex="-1" @keydown="${e(this,fx,"m",Rx)}"><m3e-focus-trap ?disabled="${!this.open}"><div class="header" id="header"><m3e-search-bar class="bar">${e(this,fx,"m",zx).call(this)} ${this.open?s`<slot name="open-leading" slot="leading"></slot>`:s`<slot name="closed-leading" slot="leading"></slot>`}<slot name="input" slot="input" @slotchange="${e(this,fx,"m",Wx)}"></slot>${e(this,fx,"m",Px).call(this)} ${this.open?s`<slot name="open-trailing" slot="trailing"></slot>`:s`<slot name="closed-trailing" slot="trailing"></slot>`}</m3e-search-bar></div><div class="results"><div class="scroll-container"><slot></slot></div></div></m3e-focus-trap></div></div>`}_handleFocusChange(e){e||"docked"!==this.currentMode||(this.clear(),this.open=!1)}};var Gx,Xx,Jx,Qx,ew;gx=new WeakMap,yx=new WeakMap,$x=new WeakMap,xx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Cx=new WeakMap,Sx=new WeakMap,_x=new WeakMap,Lx=new WeakMap,Ex=new WeakMap,fx=new WeakSet,zx=function(){return!this.open&&this.hideSearchIcon?n:s`<div class="icon" slot="leading">${this.open?e(this,fx,"m",Tx).call(this):e(this,fx,"m",Mx).call(this)}</div>`},Mx=function(){return s`<slot name="search-icon"><svg class="search-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg></slot>`},Tx=function(){return s`<m3e-icon-button class="close" slot="leading" aria-label="${this.closeLabel}" @click="${e(this,fx,"m",Bx)}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor">${"docked"===this.currentMode?d`<path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/>`:d`<path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/>`}</svg></slot></m3e-icon-button>`},Px=function(){return s`<m3e-icon-button class="clear" slot="trailing" aria-label="${this.open&&!this._clearable?this.closeLabel:this.clearLabel}" @click="${e(this,fx,"m",Fx)}"><slot name="clear-icon"><svg class="clear-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`},Ix=function(){a(this,Ex,Je.observe([Qe.XSmall],t=>{const a=this.currentMode;this._mode=t.get(Qe.XSmall)?"fullscreen":"docked",a!==this._mode&&this.open&&(this.open=!1),e(this,fx,"m",Ax).call(this)}),"f")},Wx=function(t){const o=t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLInputElement);o!=e(this,gx,"f")&&(e(this,gx,"f")?.removeEventListener("input",e(this,$x,"f")),e(this,gx,"f")?.removeEventListener("focus",e(this,xx,"f")),e(this,gx,"f")?.removeEventListener("keydown",e(this,wx,"f")),e(this,gx,"f")?.removeEventListener("pointerdown",e(this,kx,"f")),a(this,gx,o,"f"),e(this,gx,"f")?.addEventListener("input",e(this,$x,"f")),e(this,gx,"f")?.addEventListener("focus",e(this,xx,"f")),e(this,gx,"f")?.addEventListener("keydown",e(this,wx,"f")),e(this,gx,"f")?.addEventListener("pointerdown",e(this,kx,"f")),e(this,gx,"f")&&(e(this,gx,"f").role=e(this,gx,"f").role||"searchbox",e(this,gx,"f").inputMode=e(this,gx,"f").inputMode||"search",e(this,gx,"f").type="text",e(this,gx,"f").ariaHasPopup="dialog"),e(this,fx,"m",Hx).call(this))},Dx=function(){e(this,fx,"m",Hx).call(this),this.open?this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,gx,"f")?.value??""},bubbles:!0,composed:!0})):this.open=!0},Ax=function(){k(this,"-fullscreen","fullscreen"===this.currentMode),k(this,"-docked","docked"===this.currentMode)},Hx=function(){this._clearable=(e(this,gx,"f")?.value??"").length>0,k(this,"-clearable",this._clearable)},Ox=function(){this.open=!e(this,yx,"f"),a(this,yx,!1,"f")},Bx=function(){e(this,gx,"f")&&(e(this,gx,"f").value&&this.clear(),a(this,yx,!0,"f"),e(this,gx,"f")?.focus())},Fx=function(){e(this,gx,"f")&&(e(this,gx,"f").value?this.clear():a(this,yx,!0,"f"),e(this,gx,"f")?.focus())},qx=function(){!this.open&&e(this,gx,"f")?.matches(":focus")&&(this.open=!0)},Vx=function(e){if(this.open&&"Escape"===e.key&&!e.shiftKey&&!e.ctrlKey){e.preventDefault();e.target.value&&this.clear(),this.open=!1}},Rx=function(t){!this.open||"Escape"!==t.key||t.shiftKey||t.ctrlKey||(t.preventDefault(),e(this,fx,"m",Bx).call(this))},Ux=async function(){if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!1);a(this,_x,this.currentMode,"f");const t=this._view;e(this,Lx,"f")?.call(this),a(this,Lx,await Re(t,this._anchor,{position:"bottom"},(e,t)=>{const a=this._view;a.style.top=t-this._anchor.clientHeight+"px",a.style.width=`${this._anchor.clientWidth}px`,"rtl"===Ve.current?(a.style.right=window.innerWidth-e-this.clientWidth+"px",a.style.left=""):(a.style.left=`${e}px`,a.style.right="")}),"f"),this._anchor.style.position="relative",t.popover="manual",t.style.position="absolute",t.showPopover(),e(this,Cx,"f").lock(),e(this,Sx,"f").lock(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,gx,"f")?.value??""},bubbles:!0,composed:!0}))},Nx=function(){const t=this._view;"manual"===t.popover&&(this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0,cancelable:!0}))?(a(this,_x,void 0,"f"),e(this,Cx,"f").unlock(),e(this,Sx,"f").unlock(),S()?e(this,fx,"m",jx).call(this):(t.classList.add("closing"),t.addEventListener("transitionend",()=>e(this,fx,"m",jx).call(this),{once:!0}))):this.open=!0)},jx=function(){e(this,Lx,"f")?.call(this),a(this,Lx,void 0,"f");const t=this._view;t.classList.remove("closing"),t.style.position="",t.style.width="",t.style.top="",t.style.left="",t.style.right="",t.hidePopover(),t.popover=null,this._anchor.style.position="",this.dispatchEvent(new ToggleEvent("toggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0}))},Yx=async function(){if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!1);a(this,_x,this.currentMode,"f"),e(this,Cx,"f").lock(),e(this,Sx,"f").lock();const t=this._view;if(e(this,Lx,"f")?.call(this),S())t.style.position="fixed",t.popover="manual",t.showPopover(),this._anchor.style.position="relative";else{const e=t.getBoundingClientRect(),a="rtl"===Ve.current?window.innerWidth-e.right:e.left;t.style.position="fixed",t.popover="manual",t.showPopover(),this._anchor.style.position="relative",t.animate([{transform:`translateX(${a}px)`,width:`${e.width}px`,top:`${e.top}px`,height:`${e.height}px`},{transform:"translateX(0px)",width:"100vw",top:"0px",height:"100vh"}],{duration:150,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"})}this.dispatchEvent(new ToggleEvent("toggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,gx,"f")?.value??""},bubbles:!0,composed:!0}))},Kx=async function(){const t=this._view;if("manual"!==t.popover)return;if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!0);a(this,_x,void 0,"f"),e(this,Cx,"f").unlock(),e(this,Sx,"f").unlock();const o=this._anchor;if(!S()){const e=t.getBoundingClientRect(),a=o.getBoundingClientRect(),i="rtl"===Ve.current?window.innerWidth-e.right:e.left,r="rtl"===Ve.current?window.innerWidth-a.right:a.left,s="rtl"===Ve.current?i-r:r-i;t.classList.add("closing"),await t.animate([{transform:"translateX(0px)",width:`${e.width}px`,top:`${e.top}px`,height:`${e.height}px`},{transform:`translateX(${s}px)`,width:`${a.width}px`,top:`${a.top}px`,height:`${a.height}px`}],{duration:150,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}).finished}t.hidePopover(),t.style.position="",t.popover=null,t.classList.remove("closing"),o.style.position="",this.dispatchEvent(new ToggleEvent("toggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0}))},F(ix),Zx.styles=rx,t([u()],Zx.prototype,"_clearable",void 0),t([u()],Zx.prototype,"_mode",void 0),t([h(".anchor")],Zx.prototype,"_anchor",void 0),t([h(".view")],Zx.prototype,"_view",void 0),t([m({type:Boolean,reflect:!0})],Zx.prototype,"contained",void 0),t([m({reflect:!0})],Zx.prototype,"mode",void 0),t([m({type:Boolean,reflect:!0})],Zx.prototype,"open",void 0),t([m({attribute:"clear-label"})],Zx.prototype,"clearLabel",void 0),t([m({attribute:"close-label"})],Zx.prototype,"closeLabel",void 0),t([m({attribute:"hide-search-icon",type:Boolean})],Zx.prototype,"hideSearchIcon",void 0),t([y(40)],Zx.prototype,"_handleFocusChange",null),Zx=t([$("m3e-search-view")],Zx);let tw=ew=class extends(te(ae($e(Y(P(f(r,"radio"),!0)))))){constructor(){super(...arguments),Gx.add(this),Xx.set(this,t=>e(this,Gx,"m",Qx).call(this,t)),this.value="on"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Xx,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Xx,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){const t=this.closest("m3e-segmented-button");t&&(this.role=t.multi?"button":"radio"),super.update(e),e.has("checked")&&t?.[De].notifySelectionChange(this),e.has("disabled")&&(this.disabled?this.nextElementSibling instanceof ew&&(this.nextElementSibling.disabled?this.style.removeProperty("--_segmented-button-disabled-outline-color"):this.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`)):(this.style.removeProperty("--_segmented-button-disabled-outline-color"),this.previousElementSibling instanceof ew&&(this.previousElementSibling.disabled?this.previousElementSibling.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`):this.previousElementSibling.style.removeProperty("--_segmented-button-disabled-outline-color"))))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,Gx,"m",Jx)}"></slot></div><div class="label"><slot></slot></div></div></div>`}};var aw,ow,iw,rw,sw,nw;Xx=new WeakMap,Gx=new WeakSet,Jx=function(e){k(this,"-with-icon",g(e.target))},Qx=function(e){if(e.defaultPrevented)return;const t=this.closest("m3e-segmented-button");if(t&&(t.multi||!this.checked)){const e=this.checked;this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-segmented-button")?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=e}},tw.styles=i`:host { display: inline-block; position: relative; vertical-align: middle; outline: none; user-select: none; flex: 1 1 auto; min-width: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: inline-flex; vertical-align: middle; align-items: center; width: 100%; height: calc(var(--m3e-segmented-button-height, 2.5rem) + ${v.density.calc(-3)}); box-sizing: border-box; border-width: var(--m3e-segmented-button-outline-thickness, 1px); border-color: var(--m3e-segmented-button-outline-color, ${v.color.outline}); border-style: solid; border-radius: inherit; border-inline-start-style: var(--_segmented-button-left-border, solid); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-segmented-button-padding-start, 1rem); padding-inline-end: var(--m3e-segmented-button-padding-end, 1rem); column-gap: var(--m3e-segmented-button-spacing, 0.5rem); } .label { font-size: var(--m3e-segmented-button-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-segmented-button-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-segmented-button-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-segmented-button-tracking, ${v.typescale.standard.label.large.tracking}); justify-self: center; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { display: flex; align-items: center; justify-content: center; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } :host([checked]:not(:state(-hide-selection))) .wrapper, :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-segmented-button-with-icon-padding-start, 0.75rem); } :host(:not(:disabled)[checked]) .base { background-color: var(--m3e-segmented-button-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-segmented-button-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-segmented-button-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .label { color: var(--m3e-segmented-button-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .icon { color: var(--m3e-segmented-button-selected-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([checked])) .base { --m3e-state-layer-hover-color: var( --m3e-segmented-button-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-segmented-button-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .label { color: var(--m3e-segmented-button-unselected-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .icon { color: var(--m3e-segmented-button-unselected-icon-color, ${v.color.onSurface}); } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-segmented-button-spacing, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } .check, ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-segmented-button-icon-size, 1.125rem) !important; } :host(:not([checked])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:disabled) .base { border-color: color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ); border-inline-end-color: var( --_segmented-button-disabled-outline-color, color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ) ); } :host(:disabled) .label { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-icon-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-icon-opacity, 38%), transparent ); } @media (prefers-reduced-motion) { .base, .icon, .label { transition: none; } } @media (forced-colors: active) { .base, .icon, .label { transition: none !important; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } :host(:not([selected]):not(:disabled)) .label, :host(:not([selected]):not(:disabled)) .icon { color: ButtonText; } :host(:not(:disabled)[checked]) .base { background-color: ButtonText; } :host(:not(:disabled)[checked]) .label, :host(:not(:disabled)[checked]) .icon { forced-color-adjust: none; color: ButtonFace; } :host { --m3e-segmented-button-outline-color: ButtonText; } }`,t([h(".focus-ring")],tw.prototype,"_focusRing",void 0),t([h(".state-layer")],tw.prototype,"_stateLayer",void 0),t([h(".ripple")],tw.prototype,"_ripple",void 0),t([m()],tw.prototype,"value",void 0),tw=ew=t([$("m3e-button-segment")],tw);let lw=class extends(Q(te(ae(se(Y(P(f(r,"radiogroup")))))))){constructor(){super(...arguments),aw.add(this),ow.set(this,void 0),this[nw]=(new Ae).withWrap().withDirectionality(Ve.current).onActiveItemChange(()=>this[De].activeItem?.click()),this.multi=!1,this.hideSelectionIndicator=!1}get segments(){return this[De]?.items??[]}get selected(){return this[De]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(ow=new WeakMap,aw=new WeakSet,nw=De,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this[De].multi=this.multi,this[De].disableRovingTabIndex(this.multi),a(this,ow,Ve.observe(()=>this[De].directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,ow,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[De].disabled=this.disabled),e.has("multi")&&(this.role=this.multi?"group":"radiogroup",this[De].multi=this.multi,this[De].disableRovingTabIndex(this.multi)),(e.has("multi")||e.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),e.has("hideSelectionIndicator")&&this.segments.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,aw,"m",iw)}" @keydown="${e(this,aw,"m",rw)}" @change="${e(this,aw,"m",sw)}"></slot>`}};var cw,dw,hw,mw,pw,uw,vw,bw,fw,gw,yw,$w,xw,ww,kw,Cw,Sw,_w,Lw,Ew,zw,Mw,Tw,Pw,Iw,Ww,Dw,Aw,Hw,Ow,Bw,Fw;iw=function(){const{added:e}=this[De].setItems([...this.querySelectorAll("m3e-button-segment")]);e.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),this[De].items.forEach((e,t)=>{k(e,"-first",0==t),k(e,"-last",t==this[De].items.length-1)})},rw=function(e){this.multi||this[De].onKeyDown(e)},sw=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},lw.styles=i`:host { display: inline-flex; vertical-align: middle; align-items: center; } ::slotted(:state(-first)) { border-start-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); border-end-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); } ::slotted(:state(-last)) { border-start-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); border-end-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); } ::slotted(:not(:state(-first))) { --_segmented-button-left-border: none; }`,t([m({type:Boolean})],lw.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],lw.prototype,"hideSelectionIndicator",void 0),lw=t([$("m3e-segmented-button")],lw);let qw=Fw=class extends(N(Q(ee(te(ae(oe(ie(se(Y(P(f(r,"combobox")))))))))))){constructor(){super(),cw.add(this),this._options=new Array,dw.set(this,void 0),hw.set(this,void 0),mw.set(this,!1),pw.set(this,!1),uw.set(this,"m3e-select-"+Fw.__nextId++),vw.set(this,`${e(this,uw,"f")}-list`),bw.set(this,t=>e(this,cw,"m",Lw).call(this,t)),fw.set(this,t=>e(this,cw,"m",Ew).call(this,t)),gw.set(this,t=>e(this,cw,"m",zw).call(this,t)),yw.set(this,t=>e(this,cw,"m",Pw).call(this,t)),$w.set(this,t=>e(this,cw,"m",Mw).call(this,t)),xw.set(this,t=>e(this,cw,"m",Tw).call(this,t)),ww.set(this,void 0),this._listKeyManager=(new ze).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withTypeahead().onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,cw,"m",Hw).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.multi=!1,this.panelClass="",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,cw,"m",_w).call(this)})}get options(){return this._options??[]}get selected(){return this.options.filter(e=>e.selected)}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(dw=new WeakMap,hw=new WeakMap,mw=new WeakMap,pw=new WeakMap,uw=new WeakMap,vw=new WeakMap,bw=new WeakMap,fw=new WeakMap,gw=new WeakMap,yw=new WeakMap,$w=new WeakMap,xw=new WeakMap,ww=new WeakMap,cw=new WeakSet,kw=function(){return this._listKeyManager?.items??[]},Cw=function(){return e(this,cw,"a",kw).filter(e=>e.selected)},le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}get shouldLabelFloat(){return this.selected.filter(e=>!e.isEmpty).length>0}onContainerClick(){a(this,pw,!0,"f"),e(this,cw,"m",Ww).call(this),this.focus({preventScroll:!0})}clear(t=!1){const a=e(this,cw,"a",Cw),o=a.length>0;o&&(a.forEach(t=>{t.selected=!1,e(this,cw,"m",Ow).call(this,t)}),this.requestUpdate()),e(this,cw,"m",Aw).call(this),o&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&this.focus()}connectedCallback(){super.connectedCallback(),this.ariaHasPopup="listbox",this.ariaExpanded="false",this.addEventListener("click",e(this,bw,"f")),this.addEventListener("keydown",e(this,fw,"f")),this.addEventListener("keyup",e(this,gw,"f")),e(this,cw,"m",_w).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,bw,"f")),this.removeEventListener("keydown",e(this,fw,"f")),this.removeEventListener("keyup",e(this,gw,"f"))}update(t){super.update(t),t.has("hideSelectionIndicator")&&e(this,cw,"a",kw).forEach(e=>k(e,"-hide-selection-indicator",this.hideSelectionIndicator))}firstUpdated(t){super.firstUpdated(t),this._focusRing?.attach(this),e(this,cw,"a",Sw)&&this._focusRing&&(this._focusRing.style.display="none")}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="base"><m3e-text-overflow><slot name="value">${this.selected.filter(e=>!e.isEmpty).map((e,t)=>t>0?s`<span>, </span>${e.label}`:e.label)}</slot></m3e-text-overflow><div class="arrow-wrapper" aria-hidden="true"><slot name="arrow"><svg class="arrow" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><div class="options" aria-hidden="true"><slot></slot></div>`}};Sw=function(){return this.closest("m3e-form-field")},_w=function(){a(this,dw,this.cloneNode(!0),"f");const{added:t}=this._listKeyManager.setItems([...e(this,dw,"f").querySelectorAll("m3e-option")]);t.forEach(t=>{t.id=t.id||`${e(this,uw,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,k(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),this._options=[...this.querySelectorAll("m3e-option")],e(this,cw,"a",Sw)?.notifyControlStateChange(),e(this,hw,"f")&&(e(this,hw,"f").replaceChildren(...e(this,dw,"f").childNodes),0==this._options.length&&e(this,cw,"m",Aw).call(this))},Lw=function(t){t.defaultPrevented||this.disabled||e(this,cw,"m",Ww).call(this)},Ew=function(t){if(!t.defaultPrevented)switch(a(this,pw,!1,"f"),t.key){case" ":case"Enter":t.preventDefault(),this.multi?e(this,hw,"f")||(a(this,mw,!0,"f"),e(this,cw,"m",Ww).call(this)):(e(this,hw,"f")&&this._listKeyManager.activeItem&&e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem),e(this,hw,"f")?.isOpen?S()?e(this,cw,"m",Aw).call(this):setTimeout(()=>e(this,cw,"m",Aw).call(this),150):e(this,cw,"m",Dw).call(this));break;case"Escape":case"Tab":e(this,cw,"m",Aw).call(this);break;case"Down":case"ArrowDown":this.multi&&!e(this,hw,"f")?e(this,cw,"m",Ww).call(this):(this._listKeyManager.onKeyDown(t),!e(this,hw,"f")&&this._listKeyManager.activeItem&&e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem));break;default:this._listKeyManager.onKeyDown(t),this.multi||e(this,hw,"f")||!this._listKeyManager.activeItem||e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem)}},zw=function(t){if(!t.defaultPrevented)if(e(this,mw,"f"))a(this,mw,!1,"f");else switch(t.key){case" ":case"Enter":if(!this.multi)return;t.preventDefault(),e(this,hw,"f")&&this._listKeyManager.activeItem&&e(this,cw,"m",Bw).call(this,this._listKeyManager.activeItem)}},Mw=function(e){if(a(this,ww,void 0,"f"),2===e.button)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);t&&!t.disabled&&a(this,ww,t,"f")},Tw=function(t){const o=e(this,ww,"f");if(a(this,ww,void 0,"f"),2===t.button)return;if(!o)return;const i=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);i===o&&(e(this,cw,"m",Bw).call(this,i),this._listKeyManager.setActiveItem(i),this.multi&&this.requestUpdate()),this.multi||(S()?e(this,cw,"m",Aw).call(this):setTimeout(()=>e(this,cw,"m",Aw).call(this),150))},Pw=function(t){if(e(this,hw,"f"))if("closed"!==t.newState){const a=e(this,cw,"a",Cw).find(e=>!e.disabled)??this._listKeyManager.items.find(e=>!e.disabled);this._listKeyManager.setActiveItem(a),a&&_(a,e(this,hw,"f"),{block:"nearest",behavior:"instant"}),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else S()?e(this,cw,"m",Iw).call(this,t):setTimeout(()=>e(this,cw,"m",Iw).call(this,t),100)},Iw=function(t){e(this,hw,"f")&&(e(this,dw,"f")?.replaceChildren(...e(this,hw,"f").childNodes),e(this,hw,"f").remove(),e(this,hw,"f").removeEventListener("toggle",e(this,yw,"f")),e(this,hw,"f").removeEventListener("pointerdown",e(this,$w,"f")),e(this,hw,"f").removeEventListener("pointerup",e(this,xw,"f")),a(this,hw,void 0,"f"),this.ariaExpanded="false",this.removeAttribute("aria-controls"),this.removeAttribute("aria-owns"),this.removeAttribute("aria-activedescendant"),this.requestUpdate(),C(this,"-open"),e(this,cw,"a",Sw)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})))},Ww=function(){this.disabled||(e(this,hw,"f")?e(this,cw,"m",Aw).call(this):e(this,cw,"m",Dw).call(this))},Dw=function(){if(!e(this,hw,"f")&&0!=this._options.length){if(a(this,hw,document.createElement("m3e-option-panel"),"f"),this.multi&&(e(this,hw,"f").ariaMultiSelectable="true"),e(this,hw,"f").id=e(this,vw,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,hw,"f").classList.add(t);e(this,hw,"f").style.overflowX="hidden",e(this,hw,"f").fitAnchorWidth=!0,e(this,hw,"f").addEventListener("toggle",e(this,yw,"f")),e(this,hw,"f").addEventListener("pointerdown",e(this,$w,"f")),e(this,hw,"f").addEventListener("pointerup",e(this,xw,"f")),e(this,dw,"f")&&e(this,hw,"f").replaceChildren(...e(this,dw,"f").childNodes),(e(this,cw,"a",Sw)??this).insertAdjacentElement("afterend",e(this,hw,"f")),this.ariaExpanded="true",this.setAttribute("aria-controls",e(this,vw,"f")),this.setAttribute("aria-owns",e(this,vw,"f")),e(this,cw,"a",Sw)?.notifyControlStateChange(),setTimeout(()=>{e(this,hw,"f")?.show(this,e(this,cw,"a",Sw)?.menuAnchor),E(this,"-open")})}},Aw=function(){e(this,hw,"f")&&(e(this,hw,"f").hide(),C(this,"-open"))},Hw=function(t){if(this.setAttribute("aria-activedescendant",t.id),e(this,hw,"f")){_(t,e(this,hw,"f"),{block:"nearest",behavior:"instant"});const a=!e(this,pw,"f")&&(this.matches(":focus-visible")||L());e(this,cw,"a",kw).forEach(e=>{e===t&&a?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},Ow=function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected)},Bw=function(t){const a=!this.multi||!t.selected;t.selected!==a&&(t.selected=a,e(this,cw,"m",Ow).call(this,t),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.multi||e(this,cw,"a",Cw).filter(e=>e!==t).forEach(t=>{t.selected=!1,e(this,cw,"m",Ow).call(this,t)}),this.requestUpdate(),e(this,cw,"a",Sw)?.notifyControlStateChange(),this.dispatchEvent(new Event("change",{bubbles:!0}))):(t.selected=!a,e(this,cw,"m",Ow).call(this,t)))},qw.styles=i`:host { display: inline-flex; vertical-align: middle; outline: none; position: relative; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); min-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); border-radius: var(--m3e-select-container-shape, ${v.shape.corner.extraSmall}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) { color: color-mix( in srgb, var(--m3e-select-disabled-color, ${v.color.onSurface}) var(--m3e-select-disabled-color-opacity, 38%), transparent ); } .options { display: none; } .base { flex: 1 1 auto; display: inline-flex; align-items: center; overflow: hidden; } .arrow-wrapper { display: flex; align-items: center; justify-content: center; margin-top: var(--_select-arrow-margin-top); } ::slotted([slot="arrow"]), .arrow { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-select-icon-size, 1.5rem); } :host(:state(-open)) .focus-ring { display: none; }`,qw.__nextId=0,t([h(".focus-ring")],qw.prototype,"_focusRing",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],qw.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean})],qw.prototype,"multi",void 0),t([m({attribute:"panel-class"})],qw.prototype,"panelClass",void 0),qw=Fw=t([$("m3e-select")],qw);const Vw=o("var(--m3e-shape-size, 3rem)"),Rw=o(`var(--m3e-shape-container-color, ${v.color.primary})`),Uw=o(`var(--m3e-shape-transition, clip-path ${v.motion.spring.slowEffects})`),Nw=i`:host { display: inline-block; position: relative; aspect-ratio: 1 / 1; width: ${Vw}; } :host([name]) .wrapper { background-color: ${Rw}; transition: ${Uw}; transform-origin: center; } .wrapper { width: 100%; height: 100%; position: relative; isolation: isolate; overflow: hidden; will-change: clip-path; } ::slotted(img), ::slotted(video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } @media (prefers-reduced-motion) { .wrapper { transition: none; } }`,jw={"4-leaf-clover":"M63.0014 190C49.8954 174.339 42 154.126 42 132.06C42 82.321 82.1131 42 131.595 42C153.99 42 174.466 50.2594 190.173 63.9131C205.843 50.2594 226.271 42 248.614 42C297.981 42 338 82.321 338 132.06C338 154.126 330.123 174.339 317.048 190C330.123 205.661 338 225.874 338 247.94C338 297.679 297.981 338 248.614 338C226.271 338 205.843 329.741 190.173 316.087C174.466 329.741 153.99 338 131.595 338C82.1131 338 42 297.679 42 247.94C42 225.874 49.8954 205.661 63.0014 190Z","4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","6-sided-cookie":"M134.186 54.5654C165.276 24.4782 214.724 24.4782 245.814 54.5654C255.328 63.7718 266.984 70.4811 279.738 74.0919C321.419 85.8924 346.142 128.586 335.552 170.473C332.312 183.291 332.312 196.709 335.552 209.527C346.142 251.414 321.419 294.108 279.738 305.908C266.984 309.519 255.328 316.228 245.814 325.435C214.724 355.522 165.276 355.522 134.186 325.435C124.672 316.228 113.016 309.519 100.262 305.908C58.5815 294.108 33.8578 251.414 44.4476 209.527C47.6879 196.709 47.6879 183.291 44.4476 170.473C33.8578 128.586 58.5815 85.8924 100.262 74.0919C113.016 70.4811 124.672 63.7718 134.186 54.5654Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z","8-leaf-clover":"M338.584 189.998C364.427 238.164 344.902 281.771 295.066 295.061C281.771 344.902 238.164 364.422 189.998 338.584C141.831 364.427 98.2245 344.902 84.9337 295.066C35.0981 281.771 15.573 238.164 41.4157 189.998C15.573 141.831 35.0981 98.2245 84.9337 84.9337C98.2245 35.0981 141.831 15.573 189.998 41.4157C238.164 15.573 281.771 35.0981 295.061 84.9337C344.902 98.2245 364.422 141.831 338.584 189.998Z","9-sided-cookie":"M154.828 43.2756C156.574 41.8498 157.448 41.1369 158.245 40.535C177.03 26.3548 202.97 26.3548 221.755 40.535C222.552 41.1369 223.425 41.8498 225.172 43.2756C225.952 43.9121 226.342 44.2303 226.727 44.5333C235.567 51.4788 246.406 55.4147 257.652 55.7636C258.143 55.7788 258.647 55.785 259.654 55.7975C261.911 55.8255 263.039 55.8395 264.037 55.8898C287.563 57.0742 307.435 73.7107 312.689 96.6205C312.912 97.5928 313.121 98.6991 313.541 100.911C313.728 101.899 313.822 102.393 313.922 102.872C316.219 113.862 321.986 123.828 330.377 131.308C330.743 131.635 331.125 131.962 331.888 132.618C333.599 134.087 334.454 134.821 335.187 135.5C352.445 151.495 356.95 176.983 346.215 197.903C345.76 198.791 345.208 199.773 344.104 201.737C343.611 202.613 343.364 203.052 343.132 203.483C337.812 213.375 335.809 224.708 337.418 235.82C337.488 236.304 337.569 236.8 337.732 237.792C338.096 240.014 338.278 241.125 338.402 242.115C341.318 265.436 328.347 287.851 306.647 296.991C305.726 297.379 304.67 297.778 302.559 298.574C301.617 298.929 301.146 299.107 300.69 299.289C290.241 303.455 281.406 310.852 275.48 320.395C275.221 320.811 274.964 321.243 274.449 322.107C273.297 324.043 272.721 325.011 272.178 325.849C259.387 345.584 235.011 354.436 212.498 347.521C211.543 347.228 210.477 346.856 208.347 346.112C207.396 345.78 206.921 345.614 206.455 345.461C195.767 341.951 184.233 341.951 173.545 345.461C173.079 345.614 172.603 345.78 171.652 346.112C169.522 346.856 168.457 347.228 167.502 347.521C144.989 354.436 120.613 345.584 107.822 325.849C107.279 325.011 106.703 324.043 105.55 322.107C105.036 321.243 104.779 320.811 104.52 320.395C98.5939 310.852 89.7583 303.455 79.3096 299.289C78.8539 299.107 78.3827 298.929 77.4404 298.574C75.3294 297.778 74.274 297.379 73.3529 296.991C51.6523 287.851 38.6819 265.436 41.598 242.115C41.7218 241.125 41.9039 240.014 42.2682 237.792C42.4308 236.8 42.5121 236.304 42.5822 235.82C44.1908 224.708 42.188 213.375 36.8675 203.483C36.6354 203.052 36.389 202.613 35.8962 201.737C34.7921 199.773 34.2401 198.791 33.7845 197.903C23.0499 176.983 27.5544 151.495 44.8128 135.5C45.5454 134.821 46.4007 134.087 48.1113 132.618C48.875 131.962 49.2568 131.635 49.6228 131.308C58.0134 123.828 63.7804 113.862 66.0777 102.872C66.1779 102.393 66.2715 101.899 66.4588 100.911C66.8783 98.699 67.088 97.5928 67.311 96.6204C72.5652 73.7107 92.4369 57.0742 115.962 55.8898C116.961 55.8395 118.089 55.8255 120.346 55.7975C121.353 55.785 121.857 55.7788 122.347 55.7636C133.594 55.4147 144.432 51.4788 153.272 44.5333C153.658 44.2303 154.048 43.9121 154.828 43.2756Z","12-sided-cookie":"M166.697 39.8458C167.238 39.3157 167.508 39.0506 167.743 38.8298C180.246 27.0567 199.754 27.0567 212.257 38.8298C212.492 39.0506 212.762 39.3157 213.303 39.8458C213.628 40.1639 213.79 40.323 213.945 40.4703C221.945 48.1056 233.282 51.1433 244.028 48.5311C244.235 48.4807 244.456 48.4242 244.896 48.311C245.629 48.1224 245.996 48.0282 246.31 47.9542C263.024 44.0098 279.919 53.7642 284.86 70.2114C284.953 70.5199 285.055 70.8847 285.258 71.6143C285.38 72.0522 285.442 72.2711 285.502 72.4758C288.613 83.0884 296.912 91.3875 307.524 94.4985C307.729 94.5585 307.948 94.6195 308.386 94.7417C309.115 94.9452 309.48 95.0469 309.789 95.1396C326.236 100.081 335.99 116.976 332.046 133.69C331.972 134.004 331.878 134.371 331.689 135.104C331.576 135.544 331.519 135.765 331.469 135.972C328.857 146.718 331.894 158.055 339.53 166.055C339.677 166.21 339.836 166.372 340.154 166.697C340.684 167.238 340.949 167.508 341.17 167.743C352.943 180.246 352.943 199.754 341.17 212.257C340.949 212.492 340.684 212.762 340.154 213.303C339.836 213.628 339.677 213.79 339.53 213.945C331.894 221.945 328.857 233.282 331.469 244.028C331.519 244.235 331.576 244.456 331.689 244.896C331.878 245.629 331.972 245.996 332.046 246.31C335.99 263.024 326.236 279.919 309.789 284.86C309.48 284.953 309.115 285.055 308.386 285.258C307.948 285.381 307.729 285.442 307.524 285.502C296.912 288.613 288.613 296.912 285.502 307.524C285.442 307.729 285.381 307.948 285.258 308.386C285.055 309.115 284.953 309.48 284.86 309.789C279.919 326.236 263.024 335.99 246.31 332.046C245.996 331.972 245.629 331.878 244.896 331.689C244.456 331.576 244.235 331.519 244.028 331.469C233.282 328.857 221.945 331.894 213.945 339.53C213.79 339.677 213.628 339.836 213.303 340.154C212.762 340.684 212.492 340.949 212.257 341.17C199.754 352.943 180.246 352.943 167.743 341.17C167.508 340.949 167.238 340.684 166.697 340.154C166.372 339.836 166.21 339.677 166.055 339.53C158.055 331.894 146.718 328.857 135.972 331.469C135.765 331.519 135.544 331.576 135.104 331.689C134.371 331.878 134.004 331.972 133.69 332.046C116.976 335.99 100.081 326.236 95.1396 309.789C95.0469 309.48 94.9452 309.115 94.7417 308.386C94.6195 307.948 94.5585 307.729 94.4985 307.524C91.3875 296.912 83.0884 288.613 72.4758 285.502C72.2711 285.442 72.0522 285.38 71.6143 285.258C70.8847 285.055 70.5199 284.953 70.2114 284.86C53.7642 279.919 44.0098 263.024 47.9542 246.31C48.0282 245.996 48.1224 245.629 48.311 244.896C48.4242 244.456 48.4807 244.235 48.5311 244.028C51.1433 233.282 48.1056 221.945 40.4703 213.945C40.323 213.79 40.1639 213.628 39.8458 213.303C39.3157 212.762 39.0506 212.492 38.8298 212.257C27.0567 199.754 27.0567 180.246 38.8298 167.743C39.0506 167.508 39.3157 167.238 39.8458 166.697C40.1639 166.372 40.323 166.21 40.4703 166.055C48.1056 158.055 51.1433 146.718 48.5311 135.972C48.4807 135.765 48.4242 135.544 48.311 135.104C48.1224 134.371 48.0282 134.004 47.9542 133.69C44.0098 116.976 53.7642 100.081 70.2114 95.1396C70.5199 95.0469 70.8847 94.9452 71.6143 94.7417C72.0522 94.6195 72.2711 94.5585 72.4758 94.4985C83.0884 91.3875 91.3875 83.0884 94.4985 72.4758C94.5585 72.2711 94.6195 72.0522 94.7417 71.6143C94.9452 70.8847 95.0469 70.5199 95.1396 70.2114C100.081 53.7642 116.976 44.0098 133.69 47.9542C134.004 48.0282 134.371 48.1224 135.104 48.311C135.544 48.4242 135.765 48.4807 135.972 48.5311C146.718 51.1433 158.055 48.1056 166.055 40.4703C166.21 40.323 166.372 40.1639 166.697 39.8458Z",burst:"M187.293 26.6421C188.056 25.2785 188.437 24.5966 188.902 24.3108C189.575 23.8964 190.425 23.8964 191.098 24.3108C191.563 24.5966 191.944 25.2785 192.707 26.6421L218.917 73.4925C219.386 74.3306 219.62 74.7497 219.937 75.0046C220.396 75.3737 220.989 75.5326 221.571 75.4425C221.973 75.3802 222.386 75.1345 223.211 74.6431L269.335 47.1743C270.677 46.3748 271.348 45.9751 271.893 45.9598C272.684 45.9377 273.42 46.3624 273.796 47.0581C274.055 47.5379 274.045 48.3191 274.023 49.8814L273.296 103.56C273.283 104.52 273.277 105 273.424 105.38C273.637 105.929 274.071 106.363 274.62 106.576C275 106.723 275.48 106.717 276.44 106.704L330.119 105.977C331.681 105.955 332.462 105.945 332.942 106.204C333.638 106.58 334.062 107.316 334.04 108.107C334.025 108.652 333.625 109.323 332.826 110.665L305.357 156.789C304.865 157.614 304.62 158.027 304.557 158.429C304.467 159.011 304.626 159.604 304.995 160.063C305.25 160.38 305.669 160.614 306.508 161.083L353.358 187.293C354.722 188.056 355.403 188.437 355.689 188.902C356.104 189.575 356.104 190.425 355.689 191.098C355.403 191.563 354.722 191.944 353.358 192.707L306.508 218.917C305.669 219.386 305.25 219.62 304.995 219.937C304.626 220.396 304.467 220.989 304.557 221.571C304.62 221.973 304.865 222.386 305.357 223.211L332.826 269.335C333.625 270.677 334.025 271.348 334.04 271.893C334.062 272.684 333.638 273.42 332.942 273.796C332.462 274.055 331.681 274.045 330.119 274.023L276.44 273.296C275.48 273.283 275 273.277 274.62 273.424C274.071 273.637 273.637 274.071 273.424 274.62C273.277 275 273.283 275.48 273.296 276.44L274.023 330.119C274.045 331.681 274.055 332.462 273.796 332.942C273.42 333.638 272.684 334.062 271.893 334.04C271.348 334.025 270.677 333.625 269.335 332.826L223.211 305.357C222.386 304.865 221.973 304.62 221.571 304.557C220.989 304.467 220.396 304.626 219.937 304.995C219.62 305.25 219.386 305.669 218.917 306.508L192.707 353.358C191.944 354.722 191.563 355.403 191.098 355.689C190.425 356.104 189.575 356.104 188.902 355.689C188.437 355.403 188.056 354.722 187.293 353.358L161.083 306.508C160.614 305.669 160.38 305.25 160.063 304.995C159.604 304.626 159.011 304.467 158.429 304.557C158.027 304.62 157.614 304.865 156.789 305.357L110.665 332.826C109.323 333.625 108.652 334.025 108.107 334.04C107.316 334.062 106.58 333.638 106.204 332.942C105.945 332.462 105.955 331.681 105.977 330.119L106.704 276.44C106.717 275.48 106.723 275 106.576 274.62C106.363 274.071 105.929 273.637 105.38 273.424C105 273.277 104.52 273.283 103.56 273.296L49.8814 274.023C48.3191 274.045 47.5379 274.055 47.0581 273.796C46.3624 273.42 45.9377 272.684 45.9598 271.893C45.9751 271.348 46.3748 270.677 47.1743 269.335L74.6431 223.211C75.1345 222.386 75.3802 221.973 75.4425 221.571C75.5326 220.989 75.3737 220.396 75.0046 219.937C74.7497 219.62 74.3306 219.386 73.4925 218.917L26.6421 192.707C25.2785 191.944 24.5966 191.563 24.3108 191.098C23.8964 190.425 23.8964 189.575 24.3108 188.902C24.5966 188.437 25.2785 188.056 26.6421 187.293L73.4925 161.083C74.3306 160.614 74.7497 160.38 75.0046 160.063C75.3737 159.604 75.5326 159.011 75.4425 158.429C75.3802 158.027 75.1345 157.614 74.6431 156.789L47.1743 110.665C46.3748 109.323 45.9751 108.652 45.9598 108.107C45.9377 107.316 46.3624 106.58 47.0581 106.204C47.5379 105.945 48.3191 105.955 49.8814 105.977L103.56 106.704C104.52 106.717 105 106.723 105.38 106.576C105.929 106.363 106.363 105.929 106.576 105.38C106.723 105 106.717 104.52 106.704 103.56L105.977 49.8814C105.955 48.3191 105.945 47.5379 106.204 47.0581C106.58 46.3624 107.316 45.9377 108.107 45.9598C108.652 45.9751 109.323 46.3748 110.665 47.1743L156.789 74.6431C157.614 75.1345 158.027 75.3802 158.429 75.4425C159.011 75.5326 159.604 75.3737 160.063 75.0046C160.38 74.7497 160.614 74.3306 161.083 73.4925L187.293 26.6421Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z",sunny:"M276.453 68.8118C286.405 69.4881 291.381 69.8263 295.404 71.5853C301.223 74.1305 305.87 78.7766 308.415 84.5965C310.174 88.6186 310.512 93.5948 311.188 103.547L312.732 126.259C313.005 130.284 313.142 132.296 313.579 134.219C314.212 136.997 315.31 139.648 316.827 142.059C317.877 143.728 319.203 145.248 321.856 148.288L336.824 165.438C343.384 172.954 346.663 176.712 348.263 180.8C350.579 186.715 350.579 193.285 348.263 199.2C346.663 203.288 343.384 207.046 336.824 214.562L321.856 231.712C319.203 234.752 317.877 236.272 316.827 237.941C315.31 240.352 314.212 243.003 313.579 245.781C313.142 247.704 313.005 249.716 312.732 253.741L311.188 276.453C310.512 286.405 310.174 291.381 308.415 295.404C305.87 301.223 301.223 305.87 295.404 308.415C291.381 310.174 286.405 310.512 276.453 311.188L253.741 312.732C249.716 313.005 247.704 313.142 245.781 313.579C243.003 314.212 240.352 315.31 237.941 316.827C236.272 317.877 234.752 319.203 231.712 321.856L214.562 336.824C207.046 343.384 203.288 346.663 199.2 348.263C193.285 350.579 186.715 350.579 180.8 348.263C176.712 346.663 172.954 343.384 165.438 336.824L148.288 321.856C145.248 319.203 143.728 317.877 142.059 316.827C139.648 315.31 136.997 314.212 134.219 313.579C132.296 313.142 130.284 313.005 126.259 312.732L103.547 311.188C93.5947 310.512 88.6186 310.174 84.5965 308.415C78.7766 305.87 74.1305 301.223 71.5853 295.404C69.8263 291.381 69.4881 286.405 68.8118 276.453L67.2684 253.741C66.9949 249.716 66.8581 247.704 66.4206 245.781C65.7883 243.003 64.6903 240.352 63.173 237.941C62.123 236.272 60.7965 234.752 58.1437 231.712L43.1756 214.562C36.6164 207.046 33.3369 203.288 31.7366 199.2C29.4211 193.285 29.4211 186.715 31.7366 180.8C33.3369 176.712 36.6164 172.954 43.1756 165.438L58.1437 148.288C60.7965 145.248 62.123 143.728 63.173 142.059C64.6903 139.648 65.7883 136.997 66.4206 134.219C66.8581 132.296 66.9949 130.284 67.2684 126.259L68.8118 103.547C69.4881 93.5948 69.8263 88.6186 71.5853 84.5965C74.1305 78.7766 78.7766 74.1305 84.5965 71.5853C88.6186 69.8263 93.5948 69.4881 103.547 68.8118L126.259 67.2684C130.284 66.9949 132.296 66.8581 134.219 66.4206C136.997 65.7883 139.648 64.6903 142.059 63.173C143.728 62.123 145.248 60.7966 148.288 58.1437L165.438 43.1756C172.954 36.6164 176.712 33.3369 180.8 31.7366C186.715 29.4211 193.285 29.4211 199.2 31.7366C203.288 33.3369 207.046 36.6164 214.562 43.1756L231.712 58.1437C234.752 60.7966 236.272 62.123 237.941 63.173C240.352 64.6903 243.003 65.7883 245.781 66.4206C247.704 66.8581 249.716 66.9949 253.741 67.2684L276.453 68.8118Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z",bun:"M38.875 113.322C38.875 69.5137 74.3887 34 118.197 34H261.803C305.611 34 341.125 69.5137 341.125 113.322C341.125 149.45 316.972 179.937 283.932 189.516C283.717 189.579 283.567 189.776 283.567 190C283.567 190.224 283.717 190.421 283.932 190.484C316.972 200.063 341.125 230.55 341.125 266.678C341.125 310.486 305.611 346 261.803 346H118.197C74.3887 346 38.875 310.486 38.875 266.678C38.875 230.785 62.7138 200.461 95.422 190.674C95.72 190.585 95.9264 190.311 95.9264 190C95.9264 189.689 95.72 189.415 95.422 189.326C62.7138 179.539 38.875 149.214 38.875 113.322Z",boom:"M186.738 36.413C187.51 30.2399 187.896 27.1534 188.483 26.6019C189.337 25.7994 190.663 25.7994 191.517 26.6019C192.104 27.1534 192.49 30.2399 193.262 36.413L203.079 114.907C203.39 117.398 203.546 118.644 203.993 119.158C204.642 119.904 205.703 120.131 206.598 119.715C207.214 119.428 207.861 118.353 209.153 116.205L249.875 48.5119C253.078 43.1883 254.679 40.5264 255.438 40.2626C256.543 39.8785 257.754 40.4209 258.21 41.5032C258.522 42.247 257.626 45.2245 255.834 51.1796L233.049 126.902C232.326 129.305 231.964 130.507 232.165 131.159C232.456 132.107 233.333 132.748 234.319 132.733C234.998 132.723 236.023 132.006 238.073 130.572L302.659 85.3844C307.738 81.8306 310.278 80.0538 311.078 80.1231C312.243 80.2241 313.13 81.2151 313.108 82.39C313.093 83.1974 311.07 85.5511 307.024 90.2585L255.576 150.116C253.943 152.016 253.126 152.966 253.045 153.644C252.928 154.628 253.47 155.573 254.377 155.963C255.001 156.231 256.228 155.995 258.681 155.524L335.963 140.655C342.041 139.485 345.08 138.901 345.783 139.291C346.806 139.86 347.215 141.128 346.72 142.192C346.38 142.924 343.579 144.247 337.979 146.893L266.764 180.536C264.503 181.604 263.373 182.137 263.025 182.724C262.52 183.575 262.633 184.66 263.304 185.387C263.765 185.887 264.981 186.173 267.413 186.745L344.029 204.766C350.054 206.184 353.067 206.892 353.551 207.537C354.256 208.474 354.117 209.8 353.234 210.57C352.627 211.099 349.534 211.163 343.347 211.289L264.679 212.901C262.182 212.952 260.933 212.977 260.378 213.371C259.572 213.942 259.237 214.979 259.555 215.917C259.774 216.563 260.77 217.322 262.76 218.839L325.462 266.634C330.393 270.393 332.858 272.272 333.04 273.059C333.304 274.203 332.641 275.358 331.523 275.7C330.755 275.935 327.903 274.728 322.2 272.314L249.681 241.615C247.379 240.641 246.228 240.153 245.562 240.286C244.595 240.478 243.869 241.288 243.78 242.275C243.719 242.955 244.321 244.055 245.526 246.255L283.472 315.559C286.456 321.01 287.948 323.735 287.796 324.528C287.574 325.682 286.501 326.466 285.341 326.321C284.544 326.221 282.428 323.952 278.194 319.415L224.364 261.714C222.655 259.882 221.801 258.966 221.139 258.815C220.177 258.594 219.187 259.038 218.706 259.904C218.375 260.5 218.48 261.751 218.691 264.253L225.32 343.084C225.841 349.283 226.102 352.383 225.642 353.045C224.973 354.009 223.676 354.286 222.675 353.679C221.987 353.263 220.971 350.324 218.939 344.447L193.105 269.721C192.285 267.349 191.875 266.163 191.332 265.754C190.542 265.16 189.458 265.16 188.668 265.754C188.125 266.163 187.715 267.349 186.895 269.721L161.061 344.447C159.029 350.324 158.013 353.263 157.325 353.679C156.324 354.286 155.027 354.009 154.358 353.045C153.898 352.383 154.159 349.283 154.68 343.084L161.309 264.253C161.52 261.751 161.625 260.5 161.294 259.904C160.813 259.038 159.823 258.594 158.861 258.815C158.199 258.966 157.345 259.882 155.636 261.714L101.806 319.415C97.5724 323.952 95.4556 326.221 94.6586 326.321C93.4987 326.466 92.4257 325.682 92.2041 324.528C92.0519 323.735 93.544 321.01 96.5282 315.559L134.474 246.255C135.679 244.055 136.281 242.955 136.22 242.275C136.131 241.288 135.405 240.478 134.438 240.286C133.772 240.153 132.621 240.641 130.319 241.615L57.8002 272.314C52.097 274.728 49.2455 275.935 48.4771 275.7C47.3589 275.358 46.6958 274.203 46.9601 273.059C47.1418 272.272 49.6074 270.393 54.5385 266.634L117.24 218.839C119.23 217.322 120.226 216.563 120.445 215.917C120.763 214.979 120.428 213.942 119.622 213.371C119.067 212.977 117.818 212.952 115.321 212.901L36.6531 211.289C30.4664 211.163 27.373 211.099 26.7662 210.57C25.8831 209.8 25.7445 208.474 26.449 207.537C26.9332 206.892 29.9459 206.184 35.9713 204.766L112.587 186.745C115.019 186.173 116.235 185.887 116.697 185.387C117.367 184.66 117.48 183.575 116.975 182.724C116.627 182.137 115.497 181.604 113.236 180.536L42.0212 146.893C36.4205 144.247 33.6202 142.924 33.2799 142.192C32.7846 141.128 33.1944 139.86 34.2174 139.291C34.9204 138.901 37.9592 139.485 44.037 140.655L121.319 155.524C123.772 155.995 124.999 156.231 125.623 155.963C126.53 155.573 127.072 154.628 126.955 153.644C126.874 152.966 126.057 152.016 124.424 150.116L72.9761 90.2585C68.93 85.5511 66.907 83.1974 66.8919 82.39C66.87 81.2151 67.7575 80.2241 68.922 80.1231C69.7222 80.0538 72.2618 81.8306 77.3411 85.3844L141.927 130.572C143.977 132.006 145.002 132.723 145.681 132.733C146.667 132.748 147.544 132.107 147.835 131.159C148.036 130.507 147.674 129.305 146.951 126.902L124.166 51.1796C122.374 45.2245 121.478 42.247 121.79 41.5032C122.246 40.4209 123.457 39.8785 124.562 40.2626C125.321 40.5264 126.922 43.1883 130.125 48.5119L170.847 116.205C172.139 118.354 172.786 119.428 173.402 119.715C174.297 120.131 175.358 119.904 176.007 119.158C176.454 118.644 176.61 117.398 176.921 114.907L186.738 36.413Z",arch:"M345 293.727C345 299.96 345 303.076 344.689 305.696C342.259 326.14 326.14 342.259 305.696 344.689C303.076 345 299.96 345 293.727 345H86.2732C80.0405 345 76.9242 345 74.3043 344.689C53.8596 342.259 37.7407 326.14 35.3113 305.696C35 303.076 35 299.96 35 293.727L35 190C35 104.396 104.396 35 190 35C275.604 35 345 104.396 345 190V293.727Z",arrow:"M262.422 104.907C253.213 90.2936 243.84 75.4777 231.389 63.8739C218.938 52.2412 202.808 44.023 186.27 45.0937C171.748 46.0486 158.288 54.0932 147.662 64.5974C137.036 75.1015 128.781 88.0365 120.661 100.856C98.7011 135.464 76.7136 170.073 54.7533 204.711C44.3181 221.147 33.6105 238.307 30.7224 257.898C27.2349 281.568 36.6348 305.673 53.3093 321.415C70.7467 337.88 99.0008 336.549 120.225 332.035C143.493 327.086 166.244 317.769 189.975 317.797C210.301 317.797 229.945 324.685 249.726 329.691C269.479 334.668 290.704 337.735 309.776 330.327C333.453 321.154 350.454 295.082 349.991 268.315C349.555 243.892 323.508 201.759 323.508 201.759C323.508 201.759 282.78 137.194 262.422 104.907Z",diamond:"M247.442 306.481C230.606 328.514 222.188 339.53 212.466 344.548C198.383 351.817 181.617 351.817 167.534 344.548C157.812 339.53 149.394 328.514 132.558 306.481L76.646 233.308C66.4059 219.906 61.2859 213.206 58.7505 206.032C55.0832 195.654 55.0832 184.346 58.7505 173.968C61.2859 166.794 66.4059 160.094 76.6461 146.692L132.558 73.5194C149.394 51.4863 157.812 40.4697 167.534 35.4518C181.617 28.1827 198.383 28.1827 212.466 35.4518C222.188 40.4697 230.606 51.4863 247.442 73.5195L303.354 146.692C313.594 160.094 318.714 166.794 321.249 173.968C324.917 184.346 324.917 195.654 321.249 206.032C318.714 213.206 313.594 219.906 303.354 233.308L247.442 306.481Z",fan:"M40 87.3684C40 85.697 40 84.8613 40.0219 84.1547C40.7686 60.0969 60.0969 40.7686 84.1547 40.0219C84.8613 40 85.697 40 87.3684 40C96.2825 40 100.74 40 104.508 40.117C232.816 44.0992 335.901 147.184 339.883 275.492C340 279.26 340 283.717 340 292.632C340 294.303 340 295.139 339.978 295.845C339.231 319.903 319.903 339.231 295.845 339.978C295.139 340 294.303 340 292.632 340H107.441C87.0642 340 76.8757 340 68.7935 336.8C57.0947 332.168 47.8318 322.905 43.2 311.207C40 303.124 40 292.936 40 272.559V87.3684Z",flower:"M303.126 76.8625C291.251 64.988 264.194 70.8597 231.547 89.6813C221.771 53.2855 206.79 30 189.996 30C173.203 30 158.223 53.2841 148.447 89.6779C115.802 70.8581 88.7463 64.9874 76.8722 76.8614C64.997 88.7367 70.8701 115.796 89.6945 148.446C53.2912 158.222 30 173.204 30 190C30 206.793 53.283 221.773 89.6753 231.549C70.8495 264.2 64.9757 291.261 76.8513 303.137C88.7274 315.013 115.79 309.138 148.444 290.31C158.22 326.711 173.201 350 189.996 350C206.792 350 221.774 326.709 231.55 290.307C264.205 309.136 291.27 315.012 303.146 303.136C315.022 291.26 309.148 264.2 290.323 231.549C326.716 221.773 350 206.793 350 190C350 173.204 326.708 158.222 290.304 148.446C309.128 115.797 315.001 88.7376 303.126 76.8625Z",gem:"M133.415 65.7498C150.981 52.991 159.763 46.6116 169.124 43.4402C182.663 38.8533 197.337 38.8533 210.876 43.4402C220.237 46.6116 229.019 52.991 246.585 65.7498L286.083 94.4402C296.514 102.017 301.729 105.805 305.981 110.353C312.125 116.926 316.839 124.702 319.823 133.189C321.888 139.062 322.834 145.437 324.725 158.189L332.038 207.501C335.355 229.87 337.014 241.055 335.34 251.136C332.918 265.718 325.6 279.04 314.59 288.907C306.979 295.728 296.649 300.329 275.987 309.532L229.176 330.382C216.707 335.935 210.473 338.712 204.064 340.131C194.8 342.182 185.2 342.182 175.936 340.131C169.527 338.712 163.293 335.935 150.824 330.382L104.013 309.532C83.3515 300.329 73.0207 295.728 65.4097 288.907C54.4005 279.04 47.0819 265.718 44.6602 251.136C42.9859 241.055 44.6447 229.87 47.9621 207.501L55.2752 158.189C57.1662 145.437 58.1117 139.062 60.1768 133.189C63.1612 124.702 67.8747 116.926 74.0191 110.353C78.2706 105.805 83.4862 102.017 93.9172 94.4402L133.415 65.7498Z","ghost-ish":"M40 182.857C40 103.959 107.157 40 190 40C272.843 40 340 103.959 340 182.857L340 282.857C340 314.416 313.137 340 280 340C270.178 340 260.907 337.752 252.724 333.768C248.554 331.737 244.394 329.512 240.216 327.277C225.513 319.411 210.592 311.429 194.27 311.429H185.73C169.408 311.429 154.487 319.411 139.784 327.277C135.606 329.512 131.446 331.737 127.276 333.768C119.093 337.752 109.822 340 100 340C66.8629 340 40 314.416 40 282.857L40 182.857Z",heart:"M281.1 47.134C259.439 47.134 240.113 57.3021 227.481 73.1973L190 114.513V114.379L152.519 73.0633C139.887 57.1681 120.561 47 98.8995 47C60.8478 47 30 78.3656 30 117.059C30 151.058 58.3751 176.471 78.9187 200.884C99.3895 225.205 119.856 249.523 140.323 273.844L186.272 328.437C187.516 329.914 188.756 331.388 190 332.866V333C191.244 331.522 192.484 330.048 193.728 328.571C209.043 310.375 224.358 292.178 239.677 273.978C260.144 249.657 280.614 225.339 301.081 201.018C321.625 176.608 350 151.196 350 117.193C350 78.4996 319.152 47.134 281.1 47.134Z",hexagon:"M360.196 147.081C367.995 160.591 371.894 167.346 373.864 174.403C376.712 184.606 376.712 195.394 373.864 205.597C371.894 212.654 367.995 219.409 360.196 232.919L336.437 274.079C328.638 287.589 324.738 294.344 319.613 299.58C312.202 307.148 302.86 312.543 292.601 315.177C285.505 317 277.706 317 262.108 317L117.892 317C102.294 317 94.4949 317 87.399 315.178C77.1398 312.543 67.798 307.149 60.3873 299.58C55.2616 294.345 51.3621 287.589 43.5632 274.079L19.8039 232.919C12.0054 219.409 8.10612 212.654 6.13613 205.597C3.28796 195.394 3.28796 184.606 6.13613 174.403C8.10613 167.346 12.0054 160.591 19.804 147.081L43.5632 105.921C51.3622 92.4107 55.2616 85.6554 60.3874 80.4202C67.798 72.8514 77.1398 67.457 87.3989 64.8224C94.4949 63.0002 102.294 63.0002 117.892 63.0002L262.108 63C277.706 63 285.505 63 292.601 64.8222C302.86 67.4567 312.202 72.8511 319.613 80.42C324.738 85.6551 328.638 92.4104 336.437 105.921L360.196 147.081Z","pixel-circle":"M253.556 34H126.444V54.2217H83.1111V80.2222H57.1111V126.444H34V253.556H57.1111V299.778H83.1111V325.777H126.444V346H253.556V325.777H296.889V299.778H322.889V253.556H346V126.444H322.889V80.2222H296.889V54.2217H253.556V34Z","pixel-triangle":"M121.641 30H66V350H121.641V322.174H164.564V295.739H209.077V265.13H245.641V240.086H282.205V209.478H314V170.522H282.205V139.912H245.641V114.869H209.077V84.2609H164.564V57.8262H121.641V30Z",puffy:"M371.982 187.559C371.686 165.488 353.541 147.816 331.439 148.112C330.218 148.112 329.016 148.204 327.832 148.334C328.757 147.576 329.663 146.799 330.532 145.949C346.365 130.551 346.698 105.226 331.291 89.4031C330.384 88.4788 329.478 87.5546 328.553 86.6673C312.721 71.2692 287.4 71.6019 271.974 87.4252C271.123 88.294 270.347 89.1997 269.588 90.124C269.718 88.9409 269.792 87.7394 269.81 86.5194C270.125 64.4482 252.443 46.3142 230.359 46C229.711 46 229.064 46 228.417 46H227.103C210.734 46 196.696 55.8341 190.5 69.9013C184.304 55.8341 170.247 46 153.897 46H152.583C151.936 46 151.289 46 150.641 46C128.557 46.2958 110.875 64.4297 111.171 86.5194C111.171 87.7394 111.264 88.9409 111.393 90.124C110.635 89.1997 109.858 88.294 109.007 87.4252C93.6001 71.6019 68.2608 71.2692 52.4283 86.6673C51.5035 87.573 50.5787 88.4788 49.6909 89.4031C34.2839 105.226 34.6168 130.532 50.4493 145.949C51.3186 146.799 52.2249 147.576 53.1497 148.334C51.9659 148.204 50.7637 148.13 49.543 148.112C27.4589 147.816 9.31443 165.488 9 187.559C9 188.206 9 188.853 9 189.5C9 190.147 9 190.794 9 191.441C9.29593 213.512 27.4404 231.184 49.543 230.888C50.7637 230.888 51.9659 230.796 53.1497 230.666C52.2249 231.424 51.3186 232.201 50.4493 233.051C34.6168 248.449 34.2839 273.774 49.6909 289.597C50.5972 290.521 51.5035 291.445 52.4283 292.333C68.2608 307.731 93.5816 307.398 109.007 291.575C109.858 290.706 110.635 289.8 111.393 288.876C111.264 290.059 111.19 291.261 111.171 292.481C110.875 314.552 128.539 332.704 150.641 333C151.289 333 151.936 333 152.583 333H153.897C170.266 333 184.304 323.166 190.5 309.099C196.696 323.166 210.753 333 227.103 333H228.417C229.064 333 229.711 333 230.359 333C252.443 332.704 270.125 314.57 269.829 292.481C269.829 291.261 269.736 290.059 269.607 288.876C270.365 289.8 271.142 290.706 271.993 291.575C287.4 307.398 312.739 307.731 328.572 292.333C329.496 291.427 330.421 290.521 331.309 289.597C346.716 273.774 346.383 248.468 330.551 233.051C329.681 232.201 328.775 231.424 327.85 230.666C329.034 230.796 330.236 230.87 331.457 230.888C353.541 231.184 371.704 213.531 372 191.441C372 190.794 372 190.147 372 189.5C372 188.853 372 188.206 372 187.559H371.982Z","puffy-diamond":"M279.397 279.754C291.485 267.666 295.573 250.608 291.663 235.157C307.124 239.086 324.202 235.001 336.3 222.902C354.567 204.636 354.567 175.02 336.3 156.754C324.273 144.727 307.325 140.619 291.936 144.43C295.368 129.286 291.188 112.766 279.397 100.975C267.282 88.8601 250.174 84.7804 234.696 88.736C238.798 73.1705 234.747 55.9026 222.544 43.6997C204.278 25.4334 174.662 25.4334 156.396 43.6997C144.266 55.83 140.191 72.9655 144.172 88.4584C129.001 84.9862 112.435 89.1585 100.618 100.975C88.8257 112.767 84.6462 129.289 88.0792 144.434C72.6865 140.616 55.7312 144.723 43.6997 156.754C25.4334 175.02 25.4334 204.636 43.6997 222.902C55.8026 235.005 72.8879 239.089 88.3531 235.153C84.4405 250.605 88.5288 267.665 100.618 279.754C112.385 291.521 128.862 295.708 143.98 292.314C140.328 307.602 144.467 324.371 156.396 336.3C174.662 354.567 204.278 354.567 222.544 336.3C234.544 324.301 238.661 307.403 234.894 292.043C250.32 295.914 267.333 291.817 279.397 279.754Z",semicircle:"M350 256.921C350 275.19 335.19 290 316.921 290L63.0794 290C44.8102 290 30 275.19 30 256.921L30 250C30 161.634 101.634 90 190 90C278.366 90 350 161.634 350 250V256.921Z",slanted:"M45.7147 120.543C48.289 95.9642 49.5761 83.6748 54.3025 73.9777C61.142 59.9453 73.0768 49.1101 87.6278 43.7229C97.6833 40 109.933 40 134.432 40H258.137C287.764 40 302.578 40 313.887 44.8539C330.261 51.8819 342.72 65.8495 347.927 83.0153C351.523 94.8709 349.967 109.733 346.854 139.457L334.285 259.457C331.711 284.036 330.424 296.325 325.697 306.022C318.858 320.055 306.923 330.89 292.372 336.277C282.317 340 270.067 340 245.568 340H121.863C92.2359 340 77.4221 340 66.1134 335.146C49.7395 328.118 37.2802 314.151 32.0729 296.985C28.4765 285.129 30.0331 270.267 33.1463 240.543L45.7147 120.543Z","soft-boom":"M204.57 116.822C226.539 6.39254 153.487 6.39254 175.457 116.822C153.487 6.39254 85.9934 34.3433 148.549 127.966C85.9934 34.3433 34.3433 85.9934 127.966 148.549C34.3433 85.9934 6.39254 153.487 116.822 175.444C6.39254 153.474 6.39254 226.526 116.822 204.556C6.39254 226.526 34.3565 294.007 127.966 231.451C34.3565 294.007 86.0066 345.657 148.549 252.034C85.9934 345.644 153.487 373.594 175.444 263.178C153.474 373.607 226.526 373.607 204.556 263.178C226.526 373.607 294.007 345.644 231.451 252.034C294.007 345.644 345.657 293.993 252.034 231.451C345.644 294.007 373.594 226.513 263.178 204.556C373.607 226.526 373.607 153.474 263.178 175.444C373.607 153.474 345.644 85.9934 252.034 148.549C345.644 85.9934 293.993 34.3433 231.451 127.966C294.007 34.3565 226.513 6.40574 204.556 116.822H204.57Z",square:"M350 202C350 246.717 350 269.076 342.978 286.812C332.813 312.485 312.485 332.813 286.812 342.978C269.076 350 246.717 350 202 350H178C133.283 350 110.924 350 93.1875 342.978C67.5145 332.813 47.187 312.485 37.0223 286.812C30 269.076 30 246.717 30 202L30 178C30 133.283 30 110.924 37.0224 93.1875C47.187 67.5145 67.5146 47.187 93.1876 37.0223C110.924 30 133.283 30 178 30L202 30C246.717 30 269.076 30 286.812 37.0224C312.485 47.187 332.813 67.5146 342.978 93.1876C350 110.924 350 133.283 350 178V202Z",circle:"M350 190C350 278.366 278.366 350 190 350C101.634 350 30 278.366 30 190C30 101.634 101.634 30 190 30C278.366 30 350 101.634 350 190Z",triangle:"M136.461 98.2021C151.597 71.8217 159.165 58.6315 168.342 53.0594C181.648 44.9802 198.352 44.9802 211.658 53.0594C220.835 58.6315 228.403 71.8217 243.539 98.2021L325.309 240.72C340.3 266.847 347.795 279.911 347.993 290.585C348.28 306.06 339.949 320.418 326.364 327.864C316.994 333 301.919 333 271.77 333H108.23C78.0806 333 63.006 333 53.636 327.864C40.0505 320.418 31.7204 306.06 32.0072 290.585C32.2049 279.911 39.7003 266.847 54.6909 240.72L136.461 98.2021Z"};let Yw=new Array;const Kw=new Map;for(const e in jw)Yw.push(jw[e]),Kw.set(e,Yw.length-1);const Zw={};Yw=ye(Yw,300);for(const e of Kw)Zw[e[0]]=o(Yw[e[1]]);const Gw=Zw;const Xw=[...Object.getOwnPropertyNames(Gw).map(e=>function(e){return i`:host([name="${o(e)}"]) .wrapper { clip-path: polygon(${Gw[e]}); }`}(e))];let Jw=class extends r{constructor(){super(...arguments),this.name=null}render(){return s`<div class="wrapper"><slot></slot></div>`}};var Qw,ek,tk,ak,ok,ik;Jw.styles=[Nw,Xw],t([m({reflect:!0})],Jw.prototype,"name",void 0),Jw=t([$("m3e-shape")],Jw);let rk=class extends(M(r)){constructor(){super(...arguments),Qw.add(this),ek.set(this,new Map),this.shape="auto",this.animation="wave",this.loaded=!1}disconnectedCallback(){super.disconnectedCallback(),e(this,Qw,"m",ak).call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,Qw,"m",ok).call(this)}render(){return s`<slot ?inert="${!this.loaded}" @slotchange="${e(this,Qw,"m",tk)}"></slot>`}};var sk,nk,lk,ck,dk;ek=new WeakMap,Qw=new WeakSet,tk=async function(){e(this,Qw,"m",ok).call(this)},ak=function(){for(const t of e(this,ek,"f"))t[0].remove(),t[1]();e(this,ek,"f").clear()},ok=async function(){e(this,Qw,"m",ak).call(this);const t=this.shadowRoot?.querySelector("slot");if(t)for(const a of t.assignedElements({flatten:!0}).filter(e=>e instanceof HTMLElement))await e(this,Qw,"m",ik).call(this,a)},ik=async function(t){await Se(t);const a=document.createElement("div");if(a.classList.add("shape"),"auto"===this.shape){let e=getComputedStyle(t).borderRadius;if(!e||"0px"===e){const a=t.shadowRoot?.firstElementChild;a&&!a.nextElementSibling&&(e=getComputedStyle(a).borderRadius)}e&&"0px"!==e&&(a.style.borderRadius=e)}const o=await Re(a,t,{position:"bottom"},(e,o)=>{a.style.left=`${e}px`,a.style.top=o-t.clientHeight+"px",a.style.width=`${t.clientWidth}px`,a.style.height=`${t.clientHeight}px`});e(this,ek,"f").set(a,o),this.shadowRoot?.appendChild(a)},(()=>{if(void 0!==window){F(i`@property --_m3e-skeleton-wave-pct { syntax: "<number>"; inherits: true; initial-value: 0; } @property --_m3e-skeleton-pulse-norm { syntax: "<number>"; inherits: true; initial-value: 0; } :root { --_m3e-skeleton-wave-span: 40vw; --_m3e-skeleton-pulse-min: 0.06; }</number></number>`);const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(forced-colors: active)");let a=null,o=null;function r(){a=document.documentElement.animate([{"--_m3e-skeleton-wave-pct":0},{"--_m3e-skeleton-wave-pct":1}],{duration:2100,iterations:1/0,easing:"linear"}),o=document.documentElement.animate([{"--_m3e-skeleton-pulse-norm":0},{"--_m3e-skeleton-pulse-norm":1},{"--_m3e-skeleton-pulse-norm":0}],{duration:1200,iterations:1/0,easing:"ease-in-out"})}function s(){e.matches||t.matches?(a?.pause(),o?.pause()):(a?.play(),o?.play())}r(),s(),e.addEventListener("change",s),t.addEventListener("change",s)}})(),rk.styles=i`:host { display: contents; } .shape { position: absolute; overflow: hidden; pointer-events: none; opacity: 1; background-color: var(--m3e-skeleton-color, ${v.color.surface}); } .shape::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: color-mix( in srgb, var(--m3e-skeleton-tint-color, ${v.color.onSurface}) var(--m3e-skeleton-tint-opacity, 8%), transparent ); } :host(:not([loaded])) slot { visibility: hidden; } :host([loaded]) .shape { opacity: 0; transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}`)}; } :host([shape="rounded"]) .shape { border-radius: var(--m3e-skeleton-rounded-shape, var(--m3e-skeleton-shape, ${v.shape.corner.large})); } :host([shape="circular"]) .shape { border-radius: var(--m3e-skeleton-circular-shape, var(--m3e-skeleton-shape, ${v.shape.corner.full})); } :host([shape="square"]) .shape { border-radius: var(--m3e-skeleton-square-shape, var(--m3e-skeleton-shape, 0px)); } :host([animation="pulse"]:not([loaded])) .shape::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: calc( var(--m3e-skeleton-accent-opacity, 0.06) + (1 - var(--m3e-skeleton-accent-opacity, 0.06)) * var(--_m3e-skeleton-pulse-norm) ); background-color: var(--m3e-skeleton-tint-color, ${v.color.surfaceDim}); } :host([animation="wave"]:not([loaded])) .shape::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient( 90deg, transparent 0%, transparent 35%, var(--m3e-skeleton-accent-color, ${v.color.onSurface}) 50%, transparent 65%, transparent 100% ); background-attachment: fixed; background-size: calc(100vw + var(--_m3e-skeleton-wave-span) * 2) 100%; background-position-x: calc( var(--_m3e-skeleton-wave-pct) * (100vw + var(--_m3e-skeleton-wave-span) * 2) - var(--_m3e-skeleton-wave-span) ); opacity: var(--m3e-skeleton-accent-opacity, 0.06); } @media (forced-colors: active) { :host([loaded]) .shape { transition: none; } .shape::after { display: none; } .shape { background-color: GrayText; } } @media (prefers-reduced-motion) { :host([loaded]) .shape { transition: none; } .shape::after { display: none; } }`,t([m({reflect:!0})],rk.prototype,"shape",void 0),t([m({reflect:!0})],rk.prototype,"animation",void 0),t([m({type:Boolean,reflect:!0})],rk.prototype,"loaded",void 0),rk=t([$("m3e-skeleton")],rk);let hk=class extends(M(r)){constructor(){super(...arguments),sk.add(this),nk.set(this,void 0),lk.set(this,new A(this,{target:null,callback:()=>this._updatePaging()})),this._canPage=!1,this._canPageStart=!1,this._canPageEnd=!1,this.disabled=!1,this.vertical=!1,this.threshold=0,this.previousPageLabel="Previous page",this.nextPageLabel="Next page"}connectedCallback(){super.connectedCallback(),a(this,nk,Ve.observe(()=>this.requestUpdate()),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,nk,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,lk,"f").observe(this.scrollContainer)}firstUpdated(t){super.firstUpdated(t),e(this,lk,"f").observe(this.scrollContainer)}render(){const t=s`<m3e-icon-button class="prev-button" tabindex="-1" aria-label="${this.previousPageLabel}" ?disabled="${!this._canPageStart}" @click="${e(this,sk,"m",ck)}"><slot name="prev-icon">${"ltr"===Ve.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`}</slot></m3e-icon-button>`,a=s`<m3e-icon-button class="next-button" tabindex="-1" aria-label="${this.nextPageLabel}" ?disabled="${!this._canPageEnd}" @click="${e(this,sk,"m",dk)}"><slot name="next-icon">${"ltr"===Ve.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`}</slot></m3e-icon-button>`;return s`${this._canPage?t:n}<div class="content" @scroll="${this._updatePaging}"><slot></slot></div>${this._canPage?a:n}`}_updatePaging(){this.disabled?this._canPage=!1:this.vertical?(this._canPage=Math.round(this.scrollContainer.scrollHeight)>Math.round(this.scrollContainer.clientHeight)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollTop)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollTop)+ +this.threshold<Math.round(this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight))):(this._canPage=Math.round(this.scrollContainer.scrollWidth)>Math.round(this.scrollContainer.clientWidth)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollLeft)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollLeft)+this.threshold<Math.round(this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth))),this._canPage||(this._canPageStart=this._canPageEnd=!1)}};var mk,pk;nk=new WeakMap,lk=new WeakMap,sk=new WeakSet,ck=function(){if(this.vertical){let e=this.scrollContainer.scrollTop-this.scrollContainer.clientHeight;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft-this.scrollContainer.clientWidth;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},dk=function(){if(this.vertical){let e=this.scrollContainer.scrollTop+this.scrollContainer.clientHeight;e>=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight-this.threshold&&(e=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft+this.scrollContainer.clientWidth;e>=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth-this.threshold&&(e=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},hk.styles=i`:host { display: flex; flex-wrap: nowrap; overflow: hidden; } :host([vertical]) { flex-direction: column; } .prev-button, .next-button { flex: none; --m3e-icon-button-small-shape-round: 0px; --m3e-icon-button-small-shape-square: 0px; --m3e-icon-button-small-shape-pressed-morph: 0px; --m3e-focus-ring-visibility: hidden; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-slide-group-button-icon-size, var(--m3e-icon-button-small-icon-size, 1.5rem)) !important; } :host(:not([vertical])) .prev-button, :host(:not([vertical])) .next-button { --m3e-icon-button-small-container-height: 100%; width: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button, :host([vertical]) .next-button { width: unset; --m3e-icon-button-small-container-height: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button .icon, :host([vertical]) .next-button .icon { transform: rotate(90deg); } .content { flex: 1 1 auto; display: inherit; flex-wrap: inherit; flex-direction: inherit; overflow: inherit; position: relative; border-top: var(--m3e-slide-group-divider-top); border-bottom: var(--m3e-slide-group-divider-bottom); }`,t([h(".content")],hk.prototype,"scrollContainer",void 0),t([u()],hk.prototype,"_canPage",void 0),t([u()],hk.prototype,"_canPageStart",void 0),t([u()],hk.prototype,"_canPageEnd",void 0),t([m({type:Boolean,reflect:!0})],hk.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],hk.prototype,"vertical",void 0),t([m({type:Number})],hk.prototype,"threshold",void 0),t([m({attribute:"previous-page-label"})],hk.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],hk.prototype,"nextPageLabel",void 0),t([y(40)],hk.prototype,"_updatePaging",null),hk=t([$("m3e-slide-group")],hk);let uk=class extends(te(ae(se(N(Y(P(f(r,"slider")))))))){constructor(){super(...arguments),mk.add(this),this.value=null}get[(mk=new WeakSet,le)](){return this.value?.toString()??null}focus(e){this._focusRing&&(this._focusRing.disabled=!0),super.focus(e),this._focusRing&&(this._focusRing.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e),this._focusRing?.attach(this)}update(e){super.update(e),e.has("value")&&this.dispatchEvent(new Event("value-change",{bubbles:!0}))}render(){return s`<div class="label" aria-hidden="true">${e(this,mk,"a",pk)}</div><div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="handle"></div></div></div>`}};var vk,bk,fk,gk,yk,$k,xk,wk,kk,Ck,Sk,_k,Lk,Ek,zk,Mk,Tk,Pk,Ik,Wk,Dk;pk=function(){return this.closest("m3e-slider")?.displayWith?.(this.value)??this.value?.toString()??""},uk.styles=i`:host { display: block; box-sizing: border-box; position: absolute; outline: none; top: 0; bottom: 0; border-radius: var(--m3e-slider-thumb-shape, ${v.shape.corner.full}); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; border-radius: inherit; } .touch { position: absolute; height: 3rem; left: 0; right: 0; touch-action: none; } .wrapper { display: inline-flex; justify-content: center; height: 100%; border-radius: inherit; width: calc(var(--m3e-slider-thumb-width, 0.25rem) + calc(var(--m3e-slider-thumb-padding, 0.375em) * 2)); } .focus-ring { top: calc(0px - var(--m3e-focus-ring-thickness, 3px)); bottom: calc(0px - var(--m3e-focus-ring-thickness, 3px)); left: var(--m3e-focus-ring-thickness, 3px); right: var(--m3e-focus-ring-thickness, 3px); } .label { user-select: none; position: absolute; display: flex; align-items: center; justify-content: center; visibility: var(--_slider-label-visibility, hidden); opacity: var(--_slider-label-opacity, 0); transform: var(--_slider-label-transform, scale(0)); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; width: var(--m3e-slider-label-width, 3rem); height: var(--_m3e-slider-label-height, 2.75rem); top: calc(0px - var(--_m3e-slider-label-height, 2.75rem) - var(--_m3e-slider-label-margin, 0.25rem)); inset-inline-start: calc(0px - 100%); border-radius: var(--m3e-slider-label-shape, ${v.shape.corner.full}); background-color: var(--m3e-slider-label-container-color, ${v.color.inverseSurface}); color: var(--m3e-slider-label-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-slider-label-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var(--m3e-slider-label-font-weight, ${v.typescale.standard.label.medium.fontWeight}); line-height: var(--m3e-slider-label-line-height, ${v.typescale.standard.label.medium.lineHeight}); letter-spacing: var(--m3e-slider-label-tracking, ${v.typescale.standard.label.medium.tracking}); } @starting-style { .label { opacity: 0; transform: scale(0); } } .handle { height: 100%; width: var(--m3e-slider-thumb-width, 0.25rem); border-radius: inherit; transition: ${o(`width ${v.motion.duration.short2} ${v.motion.easing.standard}`)}; } :host(:active:not([aria-disabled="true"])) .handle { width: var(--m3e-slider-thumb-pressed-width, 2px); } :host(:not([aria-disabled="true"])) .handle { background-color: var(--m3e-slider-thumb-color, ${v.color.primary}); } :host([aria-disabled="true"]) .handle { opacity: var(--m3e-slider-thumb-disabled-opacity, 38%); background-color: var(--m3e-slider-thumb-disabled-color, ${v.color.onSurface}); } @media (prefers-reduced-motion) { .label { transition: none; } } @media (forced-colors: active) { .label { forced-color-adjust: none; background-color: CanvasText; color: Canvas; } :host(:not([aria-disabled="true"])) .handle { background-color: CanvasText; } :host([aria-disabled="true"]) .handle { opacity: unset; background-color: GrayText; } }`,t([h(".focus-ring")],uk.prototype,"_focusRing",void 0),t([m({type:Number,reflect:!0})],uk.prototype,"value",void 0),uk=t([$("m3e-slider-thumb")],uk);let Ak=class extends(P(r)){constructor(){super(),vk.add(this),bk.set(this,void 0),this._ticks=new Array,fk.set(this,new Array),gk.set(this,void 0),yk.set(this,0),$k.set(this,0),xk.set(this,0),this.size="extra-small",this.disabled=!1,this.discrete=!1,this.min=0,this.max=100,this.step=1,this.labelled=!1,this.displayWith=null,new A(this,{callback:()=>e(this,vk,"m",Ek).call(this,!0)})}get thumbs(){return e(this,fk,"f")}get isRange(){return e(this,fk,"f").length>1}get thumb(){return e(this,fk,"f")[0]??null}get lowerThumb(){return this.thumb}get upperThumb(){return e(this,fk,"f")[1]??null}connectedCallback(){super.connectedCallback(),a(this,bk,Ve.observe(()=>{e(this,vk,"m",Ek).call(this,!0),this.requestUpdate()}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,bk,"f")?.call(this)}updated(t){super.updated(t),t.has("disabled")&&e(this,fk,"f").forEach(e=>e.disabled=this.disabled)}render(){return s`<div class="base" tabindex="${je(this.disabled?void 0:"-1")}" @pointerdown="${e(this,vk,"m",Mk)}" @pointermove="${e(this,vk,"m",Tk)}" @pointerup="${e(this,vk,"m",Pk)}" @keydown="${e(this,vk,"m",Ik)}" @value-change="${e(this,vk,"m",Wk)}"><div class="track" aria-hidden="true"><div class="track-inactive start"></div><div class="track-active"></div><div class="track-inactive end"></div></div><div class="ticks" aria-hidden="true">${this._ticks.map(t=>e(this,vk,"m",wk).call(this,t))}</div><slot @slotchange="${e(this,vk,"m",kk)}"></slot></div>`}};var Hk,Ok,Bk,Fk,qk,Vk,Rk,Uk,Nk;bk=new WeakMap,fk=new WeakMap,gk=new WeakMap,yk=new WeakMap,$k=new WeakMap,xk=new WeakMap,vk=new WeakSet,wk=function(t){return s`<div class="tick ${t.active?"active":"inactive"}" style="${ke({transform:`translate(${"rtl"===Ve.current?-e(this,vk,"m",Sk).call(this,t.value):e(this,vk,"m",Sk).call(this,t.value)}px, 0)`})}"></div>`},kk=function(t){a(this,fk,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof uk),"f"),e(this,fk,"f").length>2&&(e(this,fk,"f").length=2),this.isRange?this._base?.style.setProperty("--_slider-active-track-middle-shape","0"):this._base?.style.removeProperty("--_slider-active-track-middle-shape"),e(this,vk,"m",Ck).call(this)},Ck=function(){e(this,fk,"f").forEach((t,a)=>{this.disabled&&(t.disabled=!0),t.ariaValueMin=`${e(this,fk,"f")[a-1]?.value??this.min}`,t.ariaValueMax=`${e(this,fk,"f")[a+1]?.value??this.max}`,t.ariaValueNow=`${t.value??e(this,fk,"f")[a-1]?.value??this.min}`})},Sk=function(t){return(e(this,yk,"f")-e(this,$k,"f"))*((t-this.min)/(this.max-this.min))},_k=function(t){const a="rtl"===Ve.current?e(this,xk,"f")+e(this,yk,"f")-t.clientX:t.clientX-e(this,xk,"f"),o=0===this.step?1:this.step,i=Math.floor((this.max-this.min)/o),r=a/e(this,yk,"f"),s=Math.round(r*i)/i*(this.max-this.min)+this.min;return Math.round(s/o)*o},Lk=function(t=!1){this.lowerThumb&&(a(this,yk,!t&&e(this,yk,"f")>0?e(this,yk,"f"):this.clientWidth,"f"),a(this,$k,!t&&e(this,$k,"f")>0?e(this,$k,"f"):this.lowerThumb.clientWidth,"f"),a(this,xk,!t&&e(this,xk,"f")>0?e(this,xk,"f"):this.getBoundingClientRect().left,"f"))},Ek=function(t=!1){if(e(this,vk,"m",Lk).call(this,t),!this.lowerThumb)return;const a=this.lowerThumb.value??this.min,o=e(this,vk,"m",Sk).call(this,a);if(this.lowerThumb.style.transform=`translate(${"rtl"===Ve.current?-o:o}px, 0)`,this.upperThumb){const t=this.upperThumb.value??a,i=e(this,vk,"m",Sk).call(this,t);this.upperThumb.style.transform=`translate(${"rtl"===Ve.current?-i:i}px, 0)`,this._base?.classList.toggle("range",!0),this._base?.style.setProperty("--_slider-inactive-track-before-size",`${o}px`),this._base?.style.setProperty("--_slider-active-track-offset",`${o+e(this,$k,"f")}px`),this._base?.style.setProperty("--_slider-active-track-size",i-o-e(this,$k,"f")+"px"),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${i+e(this,$k,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,yk,"f")-e(this,$k,"f")-i+"px"),e(this,vk,"m",zk).call(this,e=>e>a&&e<t)}else this._base?.classList.toggle("range",!1),this._base?.style.setProperty("--_slider-active-track-size",`${o}px`),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${o+e(this,$k,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,yk,"f")-o-e(this,$k,"f")+"px"),e(this,vk,"m",zk).call(this,e=>e<a)},zk=function(e){if(this._ticks=[],this.discrete&&this.step>1)for(let t=this.min;t<=this.max;t+=this.step)this._ticks.push({value:t,active:e(t)});else this._ticks.push({value:this.min,active:e(this.min)}),this.min<0&&this.max>0&&this._ticks.push({value:0,active:e(0)}),this._ticks.push({value:this.max,active:e(this.max)})},Mk=function(t){if("mouse"===t.pointerType&&t.button>1)return;if(!this.lowerThumb||this.disabled)return;if(t.target instanceof HTMLElement&&t.target.setPointerCapture(t.pointerId),a(this,gk,t.composedPath().find(e=>e instanceof uk),"f"),e(this,gk,"f"))return;const o=e(this,vk,"m",_k).call(this,t);if(this.upperThumb){const t=this.lowerThumb.value??this.min,i=this.upperThumb.value??t;if(o<t)this.lowerThumb.disabled||(e(this,vk,"m",Dk).call(this,this.lowerThumb,o,!0),a(this,gk,this.lowerThumb,"f"));else if(o>i)this.upperThumb.disabled||(e(this,vk,"m",Dk).call(this,this.upperThumb,o,!0),a(this,gk,this.upperThumb,"f"));else{o<(t+i)/2&&!this.lowerThumb.disabled?(e(this,vk,"m",Dk).call(this,this.lowerThumb,o,!0),a(this,gk,this.lowerThumb,"f")):this.upperThumb.disabled||(e(this,vk,"m",Dk).call(this,this.upperThumb,o,!0),a(this,gk,this.upperThumb,"f"))}}else this.lowerThumb.disabled||(e(this,vk,"m",Dk).call(this,this.lowerThumb,o,!0),a(this,gk,this.lowerThumb,"f"))},Tk=function(t){if(!(t.target instanceof HTMLElement)||!t.target.hasPointerCapture(t.pointerId)||!e(this,gk,"f")||e(this,gk,"f").disabled)return;const a=e(this,vk,"m",_k).call(this,t);let o=this.min,i=this.max;e(this,gk,"f")===this.upperThumb?o=Math.max(o,this.lowerThumb?.value??0):this.upperThumb&&(i=Math.min(i,this.upperThumb.value??this.max)),O(this,"-animating")&&(C(this,"-animating"),e(this,gk,"f").style.transition=""),e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(i,Math.max(o,a)))},Pk=function(t){"mouse"===t.pointerType&&t.button>1||this.lowerThumb&&!this.disabled&&(t.target instanceof HTMLElement&&t.target.releasePointerCapture(t.pointerId),e(this,gk,"f")&&!e(this,gk,"f").disabled&&e(this,gk,"f").focus())},Ik=function(t){if(a(this,gk,t.composedPath().find(e=>e instanceof uk),"f"),!e(this,gk,"f"))return;const o=e(this,gk,"f").value??0;let i=this.min,r=this.max;switch(e(this,gk,"f")===this.upperThumb?i=Math.max(i,this.lowerThumb?.value??0):this.upperThumb&&(r=Math.max(r,this.upperThumb.value??this.max)),t.key){case"Home":e(this,vk,"m",Dk).call(this,e(this,gk,"f"),i),t.preventDefault();break;case"End":e(this,vk,"m",Dk).call(this,e(this,gk,"f"),r),t.preventDefault();break;case"PageUp":"ltr"===Ve.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+(this.step>1?this.step:10))):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-(this.step>1?this.step:10))),t.preventDefault();break;case"PageDown":"ltr"===Ve.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-(this.step>1?this.step:10))):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+(this.step>1?this.step:10))),t.preventDefault();break;case"Down":case"ArrowDown":case"Left":case"ArrowLeft":"ltr"===Ve.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-this.step)):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+this.step)),t.preventDefault();break;case"Up":case"ArrowUp":case"Right":case"ArrowRight":"ltr"===Ve.current?e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.min(r,o+this.step)):e(this,vk,"m",Dk).call(this,e(this,gk,"f"),Math.max(i,o-this.step)),t.preventDefault();break;case" ":t.preventDefault()}},Wk=function(t){t.stopPropagation(),e(this,vk,"m",Ck).call(this),e(this,vk,"m",Ek).call(this)},Dk=function(e,t,a=!1){if(e.value===t)return;const o=e.value;a&&!S()&&(E(this,"-animating"),e.addEventListener("transitionend",()=>{e.style.transition="",C(this,"-animating")},{once:!0}),e.style.transition=`transform ${v.motion.spring.fastEffects}`),e.value=t,e.markAsDirty(),e.markAsTouched(),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})):e.value=o},Ak.styles=i`:host { display: inline-block; vertical-align: middle; min-inline-size: var(--m3e-slider-min-width, 12.5rem); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([disabled])) { cursor: pointer; } :host([size="extra-small"]), :host([size="small"]) { height: var(--m3e-slider-small-height, 2.75rem); } :host(:not(:dir(rtl))[size="extra-small"]) .base, :host(:not(:dir(rtl))[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallEnd} ); } :host(:dir(rtl)[size="extra-small"]) .base, :host(:dir(rtl)[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallStart} ); } :host([size="extra-small"]) .track { height: calc(var(--m3e-slider-extra-small-track-height, 1rem)); } :host([size="small"]) .track { height: calc(var(--m3e-slider-small-track-height, 1.5rem)); } :host([size="medium"]) { height: var(--m3e-slider-medium-height, 3.25rem); } :host(:not(:dir(rtl))[size="medium"]) .base { --_slider-active-track-shape: var( --m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumEnd} ); } :host(:dir(rtl)[size="medium"]) .base { --_slider-active-track-shape: var(--m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumStart} ); } :host([size="medium"]) .track { height: var(--m3e-slider-medium-track-height, 2.5rem); } :host([size="large"]) { height: var(--m3e-slider-large-height, 4.25rem); } :host(:not(:dir(rtl))[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeEnd} ); } :host(:dir(rtl)[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeStart} ); } :host([size="large"]) .track { height: var(--m3e-slider-large-track-height, 3.5rem); } :host([size="extra-large"]) { height: var(--m3e-slider-extra-large-height, 6.75rem); } :host(:not(:dir(rtl))[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeEnd} ); } :host(:dir(rtl)[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeStart} ); } :host([size="extra-large"]) .track { height: var(--m3e-slider-extra-large-track-height, 6rem); } :host(:state(-animating)) .track-active, :host(:state(-animating)) .track-inactive.start, :host(:state(-animating)) .track-inactive.end { transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects},\n width ${v.motion.spring.fastEffects}`)}; } .base { display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: inherit; outline: none; touch-action: none; } .track { position: relative; flex: 1 1 auto; touch-action: none; } .track-inactive, .track-active { position: absolute; height: 100%; touch-action: none; } .track-active { margin-inline-start: var(--_slider-active-track-offset, 0px); width: var(--_slider-active-track-size, 0px); border-radius: var(--_slider-active-track-middle-shape, var(--_slider-active-track-shape)); } .track-inactive.start { width: var(--_slider-inactive-track-before-size, 0px); border-radius: var(--_slider-inactive-track-start-shape); } .track-inactive.end { margin-inline-start: var(--_slider-inactive-track-after-offset, 0px); width: var(--_slider-inactive-track-after-size, 0px); border-radius: var(--_slider-inactive-track-end-shape); } .ticks { position: absolute; width: 100%; height: var(--m3e-slider-tick-size, 0.25rem); overflow: visible; touch-action: none; } .tick { position: absolute; top: 0; touch-action: none; inset-inline-start: calc(var(--m3e-slider-tick-size, 0.25rem) + calc(var(--m3e-slider-tick-size, 0.25rem) / 2)); width: var(--m3e-slider-tick-size, 0.25rem); height: var(--m3e-slider-tick-size, 0.25rem); border-radius: var(--m3e-slider-tick-shape, ${v.shape.corner.full}); } :host(:not([disabled])) .track-inactive { background-color: var(--m3e-slider-inactive-track-color, ${v.color.secondaryContainer}); } :host([disabled]) .track-inactive { background-color: color-mix( in srgb, var(--m3e-slider-disabled-inactive-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-inactive-track-opacity, 12%), transparent ); } :host(:not([disabled])) .track-active { background-color: var(--m3e-slider-active-track-color, ${v.color.primary}); } :host([disabled]) .track-active { background-color: color-mix( in srgb, var(--m3e-slider-disabled-active-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-active-track-opacity, 38%), transparent ); } :host(:not([disabled])) .tick.active { background-color: var(--m3e-slider-tick-active-color, ${v.color.onPrimary}); } :host([disabled]) .tick.active { background-color: var(--m3e-slider-disabled-tick-active-color, ${v.color.inverseOnSurface}); } :host(:not([disabled])) .tick.inactive { background-color: var(--m3e-slider-tick-inactive-color, ${v.color.onSecondaryContainer}); } :host([disabled]) .tick.inactive { background-color: var(--m3e-slider-disabled-tick-inactive-color, ${v.color.onSurface}); } :host(:not([discrete])) .tick.active { display: none; } :host(:hover[labelled]) .base, :host(:focus-within[labelled]) .base { --_slider-label-visibility: visible; --_slider-label-opacity: 1; --_slider-label-transform: scale(1); } @media (forced-colors: active) { :host(:not([disabled])) .track-inactive { background-color: unset; } :host(:not([disabled])) .base.range .track-inactive.start, :host(:not([disabled])) .track-inactive.end { border: 1px solid CanvasText; box-sizing: border-box; } :host(:not([disabled])) .tick.inactive { background-color: CanvasText; } :host(:not([disabled])) .tick.active { background-color: Canvas; } :host(:not([disabled])) .track-active { background-color: CanvasText; } :host([disabled]) .base.range .track-inactive.start, :host([disabled]) .track-inactive.end { border: 1px solid GrayText; box-sizing: border-box; } :host([disabled]) .track-active { background-color: GrayText; } :host([disabled]) .tick.inactive { background-color: GrayText; } :host([disabled]) .tick.active { background-color: Canvas; } }`,t([h(".base")],Ak.prototype,"_base",void 0),t([u()],Ak.prototype,"_ticks",void 0),t([m({reflect:!0})],Ak.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],Ak.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],Ak.prototype,"discrete",void 0),t([m({type:Number})],Ak.prototype,"min",void 0),t([m({type:Number})],Ak.prototype,"max",void 0),t([m({type:Number})],Ak.prototype,"step",void 0),t([m({type:Boolean})],Ak.prototype,"labelled",void 0),t([m({attribute:!1})],Ak.prototype,"displayWith",void 0),Ak=t([$("m3e-slider")],Ak);let jk=Nk=class extends(f(r,"status")){constructor(){super(...arguments),Hk.add(this),Ok.set(this,-1),Bk.set(this,!1),Fk.set(this,t=>e(this,Hk,"m",Uk).call(this,t)),this.duration=3e3,this.action="",this.dismissible=!1,this.closeLabel="Close"}static get current(){return Nk.__current}get isActionTaken(){return e(this,Bk,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("beforetoggle",e(this,Fk,"f")),this.setAttribute("popover","manual"),this.ariaLive="polite"}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",e(this,Fk,"f"))}render(){return s`<div class="base"><span class="supporting-text"><slot></slot></span>${e(this,Hk,"m",qk).call(this)} ${e(this,Hk,"m",Vk).call(this)}</div>`}updated(e){super.updated(e),this.style.setProperty("--_snackbar-height",this.getBoundingClientRect().height/.8+"px")}};Ok=new WeakMap,Bk=new WeakMap,Fk=new WeakMap,Hk=new WeakSet,qk=function(){return this.action?s`<m3e-button @click="${e(this,Hk,"m",Rk)}">${this.action}</m3e-button>`:n},Vk=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" @click="${this.hidePopover}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},Rk=function(){a(this,Bk,!0,"f"),this.hidePopover()},Uk=function(t){"open"==t.newState?(Nk.__current?.hidePopover(),Nk.__current=this,this.duration>0&&a(this,Ok,setTimeout(()=>this.hidePopover(),this.duration),"f")):(Nk.__current===this&&(Nk.__current=null),clearTimeout(e(this,Ok,"f")))},F(i`m3e-snackbar { margin-inline: auto; }`),jk.styles=i`:host { position: fixed; top: calc(100vh - var(--_snackbar-height, 0px) - var(--m3e-snackbar-margin, 1rem)); display: inline-flex; align-items: center; min-width: var(--m3e-snackbar-min-width, 21.5rem); max-width: var(--m3e-snackbar-max-width, 42rem); visibility: hidden; border: none; margin: 0; padding: 0; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host::backdrop { background-color: transparent; } :host(:popover-open) { visibility: visible; opacity: 1; transform: scale(1); } @starting-style { :host(:popover-open) { opacity: 0; transform: scale(0.8); } } .base { display: inline-flex; align-items: center; flex: 1 1 auto; box-sizing: border-box; padding: var(--m3e-snackbar-padding, 0 1rem 0 1rem); border-radius: var(--m3e-snackbar-container-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-snackbar-container-color, ${v.color.inverseSurface}); font-size: var(--m3e-snackbar-supporting-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-snackbar-supporting-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-snackbar-supporting-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-snackbar-supporting-text-tracking, ${v.typescale.standard.label.large.tracking} ); color: var(--m3e-snackbar-supporting-text-color, ${v.color.inverseOnSurface}); --m3e-text-button-label-text-color: var(--m3e-snackbar-action-text-color, ${v.color.inversePrimary}); --m3e-text-button-hover-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-hover-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-standard-icon-button-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); } :host([dismissible]) .base { padding-inline-end: 0.5rem; } .supporting-text { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; margin-block: var(--m3e-snackbar-supporting-text-margin-block, 0.875rem); } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host { background-color: Canvas; color: CanvasText; border-radius: ${v.shape.corner.small}; box-sizing: border-box; outline: 1px solid CanvasText; } }`,jk.__current=null,t([m({type:Number})],jk.prototype,"duration",void 0),t([m()],jk.prototype,"action",void 0),t([m({type:Boolean,reflect:!0})],jk.prototype,"dismissible",void 0),t([m({attribute:"close-label"})],jk.prototype,"closeLabel",void 0),jk=Nk=t([$("m3e-snackbar")],jk);class Yk{static open(e,t,a,o){if(l)return;const i=document.createElement("m3e-snackbar");let r;i.append(document.createTextNode(e)),"string"==typeof t?i.action=t:"boolean"==typeof t?i.dismissible=t:r=t,"boolean"==typeof a?i.dismissible=a:r=a,o&&(r=o),void 0!==r?.duration&&(i.duration=r.duration),r?.closeLabel&&(i.closeLabel=r.closeLabel),i.addEventListener("toggle",e=>{"closed"===e.newState&&(S()?i.remove():i.addEventListener("transitionend",()=>i.remove(),{once:!0}),i.isActionTaken&&r?.actionCallback?.())}),(document.querySelector("m3e-theme")??document.body).append(i),i.showPopover()}static dismiss(){jk.current?.hidePopover()}}var Kk,Zk,Gk,Xk,Jk,Qk,eC,tC,aC,oC,iC,rC;globalThis.M3eSnackbar=Yk;let sC=class extends(f(r,"group")){constructor(){super(...arguments),Kk.add(this),Zk.set(this,void 0),Gk.set(this,void 0),Xk.set(this,!1),Jk.set(this,new Z(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,a,o)=>{switch(o){case e(this,Zk,"f"):e(this,Kk,"m",oC).call(this,t);break;case e(this,Gk,"f"):e(this,Kk,"m",iC).call(this,t||e(this,Xk,"f"))}}})),Qk.set(this,new ne(this,{target:null,callback:(t,o)=>{if(o===e(this,Gk,"f"))e(this,Gk,"f")?.disabled||e(this,Gk,"f")?.disabledInteractive||(a(this,Xk,t,"f"),e(this,Kk,"m",iC).call(this,t))}})),this.variant="filled",this.size="small"}update(t){super.update(t),t.has("variant")&&e(this,Kk,"m",aC).call(this)}render(){return s`<m3e-button-group class="base" disable-role variant="connected" size="${this.size}"><slot name="leading-button" @slotchange="${e(this,Kk,"m",eC)}"></slot><slot name="trailing-button" @slotchange="${e(this,Kk,"m",tC)}"></slot></m3e-button-group>`}};var nC,lC,cC,dC,hC,mC,pC,uC,vC,bC,fC,gC,yC,$C,xC,wC,kC,CC,SC,_C,LC,EC,zC,MC,TC,PC,IC,WC,DC,AC,HC;Zk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Kk=new WeakSet,eC=function(t){e(this,Zk,"f")&&e(this,Jk,"f").unobserve(e(this,Zk,"f")),a(this,Zk,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Ye),"f"),e(this,Zk,"f")&&e(this,Jk,"f").observe(e(this,Zk,"f")),e(this,Kk,"m",aC).call(this)},tC=function(t){e(this,Gk,"f")&&(e(this,Jk,"f").unobserve(e(this,Gk,"f")),e(this,Qk,"f").unobserve(e(this,Gk,"f"))),a(this,Gk,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Ke),"f"),e(this,Gk,"f")&&(e(this,Jk,"f").observe(e(this,Gk,"f")),e(this,Qk,"f").observe(e(this,Gk,"f"))),e(this,Kk,"m",aC).call(this)},aC=function(){e(this,Zk,"f")&&(e(this,Zk,"f").variant=this.variant,e(this,Zk,"f").size=this.size,e(this,Zk,"f").shape="rounded"),e(this,Gk,"f")&&(e(this,Gk,"f").width="default",e(this,Gk,"f").shape="rounded",e(this,Gk,"f").setAttribute("variant",this.variant),e(this,Gk,"f").size=this.size)},oC=function(t){t&&e(this,Zk,"f")?e(this,Kk,"m",rC).call(this,e(this,Zk,"f"),"--_leading-button-shape"):this._base?.style.removeProperty("--_leading-button-shape")},iC=function(t){t&&e(this,Gk,"f")?e(this,Kk,"m",rC).call(this,e(this,Gk,"f"),"--_trailing-button-shape"):this._base?.style.removeProperty("--_trailing-button-shape")},rC=function(e,t){const a=e.clientHeight/2;a&&this._base?.style.setProperty(t,`${a}px`)},sC.styles=i`:host { display: inline-flex; vertical-align: middle; } ::slotted([slot="leading-button"]) { flex: 1 1 auto; min-width: 0; --_button-start-shape-pressed-morph: var(--_leading-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"])) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-unselected-leading-space, 0.8125rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-unselected-trailing-space, 1.0625rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-unselected-leading-space, 1.625rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-unselected-trailing-space, 2rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-unselected-leading-space, 2.3125rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-unselected-trailing-space, 3.0625rem ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-selected-leading-space, 0.9375rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-selected-trailing-space, 0.9375rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-selected-leading-space, 1.8125rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-selected-trailing-space, 1.8125rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-selected-leading-space, 2.6875rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-selected-trailing-space, 2.6875rem ); } ::slotted([slot="leading-button"]:not(:hover)), ::slotted([slot="leading-button"]:disabled), ::slotted([slot="leading-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="leading-button"]:hover:not(:disabled):not([disabled-interactive])), ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):hover:not(:disabled):not([disabled-interactive])) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-hover-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="leading-button"]), ::slotted([slot="trailing-button"]) { --m3e-connected-button-group-extra-small-inner-pressed-shape: var( --m3e-split-button-extra-small-inner-corner-pressed-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-pressed-shape: var( --m3e-split-button-small-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-pressed-shape: var( --m3e-split-button-medium-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-pressed-shape: var( --m3e-split-button-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-pressed-shape: var( --m3e-split-button-extra-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):not(:hover)), ::slotted([slot="trailing-button"]:disabled), ::slotted([slot="trailing-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --_icon-button-icon-transform: rotate(180deg); --_button-rounded-start-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); --_button-rounded-end-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]) { --_button-end-shape-pressed-morph: var(--_trailing-button-shape, ${v.shape.corner.full}); } .base { --m3e-icon-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-icon-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-icon-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-icon-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-icon-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); --m3e-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); } :host([size="extra-small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-small-between-spacing, 0.125rem); } :host([size="small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-small-between-spacing, 0.125rem); } :host([size="medium"]).base { --m3e-connected-button-group-spacing: var(--m3e-split-button-medium-between-spacing, 0.125rem); } :host([size="large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-large-between-spacing, 0.125rem); } :host([size="extra-large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-large-between-spacing, 0.125rem); }`,t([h(".base")],sC.prototype,"_base",void 0),t([m({reflect:!0})],sC.prototype,"variant",void 0),t([m({reflect:!0})],sC.prototype,"size",void 0),sC=t([$("m3e-split-button")],sC);let OC=class extends(se(Y(M(P(r))))){constructor(){super(...arguments),nC.add(this),lC.set(this,void 0),cC.set(this,0),dC.set(this,!1),hC.set(this,0),mC.set(this,void 0),pC.set(this,new Z(this,{target:null,isPressedKey:e=>" "===e,minPressedDuration:150,callback:e=>k(this,"-pressed",e&&!this.disabled)})),uC.set(this,new w(this,{target:null,config:{attributeFilter:["hidden"]},callback:()=>e(this,nC,"m",$C).call(this,"start")})),vC.set(this,new w(this,{target:null,config:{attributeFilter:["hidden"]},callback:()=>e(this,nC,"m",$C).call(this,"end")})),this.value=50,this.min=0,this.max=100,this.step=1,this.detents=[],this.wrapDetents=!1,this.orientation="horizontal",this.label="Resize panes",this.valueFormatter=(e,t,a)=>{if((e=Math.round(e))>=48&&e<=52)return"Panes equally sized";switch(e){case 0:return"horizontal"===t?"ltr"===a?"Left pane collapsed":"Right pane collapsed":"Top pane collapsed";case 100:return"horizontal"===t?"ltr"===a?"Right pane collapsed":"Left pane collapsed":"Bottom pane collapsed";default:return"horizontal"===t?"ltr"===a?`Left pane ${e}%, right pane ${100-e}%`:`Left pane ${100-e}%, right pane ${e}%`:`Top pane ${e}%, bottom pane ${100-e}%`}}}get currentOrientation(){return this._orientation??("vertical"!==this.orientation?"horizontal":"vertical")}get[(lC=new WeakMap,cC=new WeakMap,dC=new WeakMap,hC=new WeakMap,mC=new WeakMap,pC=new WeakMap,uC=new WeakMap,vC=new WeakMap,nC=new WeakSet,le)](){return this.value?.toString()??null}collapse(){this.snapToValue(this.min)}expand(){this.snapToValue(this.max)}snapToValue(t){const a=e(this,nC,"m",TC).call(this,t);t=a>-1?e(this,nC,"m",WC).call(this,this.detents[a]):t,e(this,mC,"f")?e(this,nC,"m",MC).call(this,t):e(this,nC,"m",AC).call(this,t)}disconnectedCallback(){super.disconnectedCallback(),e(this,nC,"m",SC).call(this),e(this,pC,"f").unobserve(this._dragHandle)}reconnectedCallback(){super.reconnectedCallback(),e(this,nC,"m",wC).call(this),"auto"===this.orientation&&e(this,nC,"m",kC).call(this)}willUpdate(t){super.willUpdate(t),t.has("orientation")&&(e(this,lC,"f")?.call(this),"auto"===this.orientation?e(this,nC,"m",kC).call(this):(this._orientation=void 0,e(this,nC,"m",CC).call(this)))}updated(e){super.updated(e),e.has("value")&&this._base.style.setProperty("--_split-pane-value",`${this.value}%`)}firstUpdated(t){super.firstUpdated(t),e(this,nC,"m",wC).call(this)}render(){return s`<div class="base"><div class="start" id="start" ?inert="${this.value<=0}"><slot name="start" @slotchange="${e(this,nC,"m",fC)}"></slot></div>${e(this,nC,"m",bC).call(this)}<div class="end" ?inert="${this.value>=100}"><slot name="end" @slotchange="${e(this,nC,"m",gC)}"></slot></div></div>`}};bC=function(){return s`<div id="drag-handle" class="drag-handle" role="separator" ?hidden="${this.disabled}" tabindex="0" aria-label="${this.label}" aria-controls="start" aria-orientation="${"horizontal"===this.currentOrientation?"vertical":"horizontal"}" aria-valuemin="${this.min}" aria-valuemax="${this.max}" aria-valuenow="${this.value}" aria-valuetext="${je(this.valueFormatter?.(this.value,this.currentOrientation,Ve.current))}" @pointerdown="${e(this,nC,"m",_C)}" @pointerup="${e(this,nC,"m",EC)}" @pointermove="${e(this,nC,"m",LC)}" @keydown="${e(this,nC,"m",zC)}" @dblclick="${e(this,nC,"m",HC)}"><div class="handle"><m3e-focus-ring for="drag-handle"></m3e-focus-ring><m3e-state-layer for="drag-handle"></m3e-state-layer></div><div class="touch"></div></div>`},fC=function(t){e(this,nC,"m",yC).call(this,t.target,e(this,uC,"f"),"-with-start")},gC=function(t){e(this,nC,"m",yC).call(this,t.target,e(this,vC,"f"),"-with-end")},yC=function(t,a,o){for(const e of a.targets)a.unobserve(e);const i=new Array;k(this,o,e(this,nC,"m",xC).call(this,t,i));for(const e of i)e instanceof HTMLElement&&a.observe(e)},$C=function(t){k(this,`-with-${t}`,e(this,nC,"m",xC).call(this,this.shadowRoot?.querySelector(`slot[name='${t}']`)))},xC=function(e,t){return(t=t??[]).push(...e?.assignedElements({flatten:!0})??[]),t.length>0&&!t.every(e=>e.hasAttribute("hidden"))},wC=function(){e(this,pC,"f").observe(this._dragHandle)},kC=function(){a(this,lC,Je.observe([Qe.XSmall],t=>{this._orientation=t.get(Qe.XSmall)?"vertical":"horizontal",e(this,nC,"m",CC).call(this)}),"f")},CC=function(){k(this,"-vertical","vertical"===this.currentOrientation)},SC=function(){C(this,"-vertical"),this._orientation=void 0,e(this,lC,"f")?.call(this),a(this,lC,void 0,"f")},_C=function(e){"mouse"===e.pointerType&&e.button>1||this.disabled||(this._dragHandle.setPointerCapture(e.pointerId),a(this,dC,!1,"f"),a(this,cC,"vertical"===this.currentOrientation?e.clientY:e.clientX,"f"),a(this,hC,"vertical"===this.currentOrientation?this.clientHeight:this.clientWidth,"f"))},LC=function(t){if(!this._dragHandle.hasPointerCapture(t.pointerId))return;const o="vertical"===this.currentOrientation?t.clientY:t.clientX;let i=e(this,hC,"f")>0?(o-e(this,cC,"f"))/e(this,hC,"f")*100:0;"rtl"===Ve.current&&"vertical"!==this.currentOrientation&&(i=-i),e(this,nC,"m",MC).call(this,this.value+i,!1)&&(a(this,cC,o,"f"),a(this,dC,!0,"f"))},EC=function(t){if(!("mouse"===t.pointerType&&t.button>1)&&this._dragHandle.hasPointerCapture(t.pointerId)){this._dragHandle.releasePointerCapture(t.pointerId),a(this,cC,0,"f"),a(this,hC,0,"f");const o=e(this,nC,"m",TC).call(this,this.value);if(o>=0){const t=e(this,nC,"m",WC).call(this,this.detents[o]);void 0!==t&&e(this,nC,"m",AC).call(this,t,!1)}e(this,dC,"f")&&(this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a(this,dC,!1,"f"))}},zC=function(t){const a="ltr"===Ve.current||"vertical"===this.currentOrientation;switch(t.key){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":{t.preventDefault();const o=e(this,nC,"m",TC).call(this,this.value);if(o>=0){const t=a?e(this,nC,"m",IC).call(this,o):e(this,nC,"m",PC).call(this,o);if(t!==o&&!e(this,mC,"f")){const a=e(this,nC,"m",WC).call(this,this.detents[t]);void 0!==a&&e(this,nC,"m",AC).call(this,a)}}else this.step>1?e(this,mC,"f")||e(this,nC,"m",AC).call(this,this.value+(a?-this.step:this.step)):e(this,nC,"m",MC).call(this,this.value+(a?-this.step:this.step));break}case"Down":case"ArrowDown":case"Right":case"ArrowRight":{t.preventDefault();const o=e(this,nC,"m",TC).call(this,this.value);if(o>=0){const t=a?e(this,nC,"m",PC).call(this,o):e(this,nC,"m",IC).call(this,o);if(t!==o&&!e(this,mC,"f")){const a=e(this,nC,"m",WC).call(this,this.detents[t]);void 0!==a&&e(this,nC,"m",AC).call(this,a)}}else this.step>1?e(this,mC,"f")||e(this,nC,"m",AC).call(this,this.value+(a?this.step:-this.step)):e(this,nC,"m",MC).call(this,this.value+(a?this.step:-this.step));break}case"Home":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.min);t>-1?e(this,nC,"m",AC).call(this,e(this,nC,"m",WC).call(this,this.detents[t])):e(this,nC,"m",AC).call(this,this.min)}break;case"End":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.max);t>-1?e(this,nC,"m",AC).call(this,e(this,nC,"m",WC).call(this,this.detents[t])):e(this,nC,"m",AC).call(this,this.max)}break;case"PageUp":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.value);if(t>=0){const a=e(this,nC,"m",IC).call(this,t);if(a!==t){const t=e(this,nC,"m",WC).call(this,this.detents[a]);void 0!==t&&e(this,nC,"m",AC).call(this,t)}}else e(this,nC,"m",AC).call(this,this.value-Math.max(10,this.step))}break;case"PageDown":if(t.preventDefault(),!e(this,mC,"f")){const t=e(this,nC,"m",TC).call(this,this.value);if(t>=0){const a=e(this,nC,"m",PC).call(this,t);if(a!==t){const t=e(this,nC,"m",WC).call(this,this.detents[a]);void 0!==t&&e(this,nC,"m",AC).call(this,t)}}else e(this,nC,"m",AC).call(this,this.value+Math.max(10,this.step))}break;case"Enter":e(this,mC,"f")||e(this,nC,"m",HC).call(this);break;case" ":t.preventDefault(),e(this,mC,"f")||e(this,nC,"m",HC).call(this)}},MC=function(t,a=!0){if(e(this,nC,"m",DC).call(this),(t=Math.max(this.min,Math.min(this.max,t)))!=this.value){const e=this.value;if(this.value=t,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0})))return this._base.style.setProperty("--_split-pane-value",`${this.value}%`),a&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),!0;this.value=e}return!1},TC=function(t){let a=-1,o=1/0;for(let i=0;i<this.detents.length;i++){const r=e(this,nC,"m",WC).call(this,this.detents[i]);if(void 0===r)continue;const s=Math.abs(t-r);s<o&&(o=s,a=i)}return a},PC=function(t){const a=e(this,nC,"m",WC).call(this,this.detents[t]);if(void 0===a)return t;let o=1/0,i=t;for(let r=0;r<this.detents.length;r++){if(r===t)continue;const s=e(this,nC,"m",WC).call(this,this.detents[r]);void 0!==s&&(s>a&&s<o&&(o=s,i=r))}return i},IC=function(t){const a=e(this,nC,"m",WC).call(this,this.detents[t]);if(void 0===a)return t;let o=-1/0,i=t;for(let r=0;r<this.detents.length;r++){if(r===t)continue;const s=e(this,nC,"m",WC).call(this,this.detents[r]);void 0!==s&&(s<a&&s>o&&(o=s,i=r))}return i},WC=function(e){const t=e.endsWith("px")?this.clientWidth/parseFloat(e):parseFloat(e);return isNaN(t)?void 0:t},DC=function(){e(this,mC,"f")?.cancel(),a(this,mC,void 0,"f")},AC=function(t,o=!0){e(this,nC,"m",DC).call(this),(t=Math.max(this.min,Math.min(this.max,t)))!==this.value&&(S()?e(this,nC,"m",MC).call(this,t,o):(E(this,"-animating"),a(this,mC,this._base.animate([{"--_split-pane-value":`${this.value}%`},{"--_split-pane-value":`${t}%`}],{duration:250,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}),"f"),e(this,mC,"f").onfinish=()=>{e(this,nC,"m",MC).call(this,t,o),a(this,mC,void 0,"f"),C(this,"-animating")}))},HC=function(){if(0===this.detents.length)return;const t=e(this,nC,"m",TC).call(this,this.value);if(-1===t)return;let a=e(this,nC,"m",PC).call(this,t);if(a===t&&this.wrapDetents&&(a=e(this,nC,"m",TC).call(this,0),-1===a))return;const o=e(this,nC,"m",WC).call(this,this.detents[a]);void 0!==o&&e(this,nC,"m",AC).call(this,o)},F(i`@property --_split-pane-value { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }</length-percentage>`),OC.styles=i`:host { display: block; } .base { display: flex; width: 100%; height: 100%; overflow: hidden; } :host(:not(:state(-vertical))) .base { flex-direction: row; } :host(:state(-vertical)) .base { flex-direction: column; } :host(:state(-with-start):state(-with-end)) .base:not(:has(.drag-handle[hidden])) .start { flex: 0 1 calc(var(--_split-pane-value) - calc(var(--m3e-split-pane-drag-handle-container-width, 1.5rem) / 2)); } :host(:state(-with-start):state(-with-end)) .base:has(.drag-handle[hidden]) .start { flex: 0 1 var(--_split-pane-value); } :host(:not(:state(-with-end))) .start { flex: 1 1 auto; } :host(:state(-with-end)) .end { flex: 1 1 auto; } :host(:not(:state(-with-end))) .end { display: none; } :host(:not(:state(-animating))) .start[inert], :host(:not(:state(-animating))) .end[inert] { visibility: hidden; } .drag-handle { flex: none; display: flex; align-items: center; justify-content: center; outline: none; touch-action: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); --m3e-state-layer-hover-color: var(--m3e-split-pane-drag-handle-hover-color, ${v.color.onSurface}); --m3e-state-layer-hover-opacity: var(--m3e-split-pane-drag-handle-hover-opacity, 8%); --m3e-state-layer-focus-color: var(--m3e-split-pane-drag-handle-focus-color, ${v.color.onSurface}); --m3e-state-layer-focus-opacity: var(--m3e-split-pane-drag-handle-focus-opacity, 10%); } :host(:is(:not(:state(-with-start)), :not(:state(-with-end)))) .drag-handle, .drag-handle[hidden] { display: none; } :host(:not(:state(-pressed))) .drag-handle:not([aria-disabled]) { cursor: grab; } :host(:state(-pressed)) .drag-handle:not([aria-disabled]) { cursor: grabbing; } .handle { position: relative; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n width ${v.motion.spring.fastEffects}, height ${v.motion.spring.fastEffects}`)}; } .touch { z-index: 1; position: absolute; height: 3rem; width: 3rem; margin: auto; touch-action: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:state(-pressed))) .handle { background-color: var(--m3e-split-pane-drag-handle-color, ${v.color.outline}); border-radius: var(--m3e-split-pane-drag-handle-shape, ${v.shape.corner.full}); } :host(:state(-pressed)) .handle { background-color: var(--m3e-split-pane-drag-handle-pressed-color, ${v.color.onSurface}); border-radius: var(--m3e-split-pane-drag-handle-pressed-shape, ${v.shape.corner.medium}); } :host(:not(:state(-vertical))) .drag-handle { flex-direction: column; width: var(--m3e-split-pane-drag-handle-container-width, 1.5rem); } :host(:not(:state(-vertical)):not(:state(-pressed))) .handle { width: var(--m3e-split-pane-drag-handle-width, 0.25rem); height: var(--m3e-split-pane-drag-handle-height, 3rem); } :host(:not(:state(-vertical)):state(-pressed)) .handle { width: var(--m3e-split-pane-drag-handle-pressed-width, 0.75rem); height: var(--m3e-split-pane-drag-handle-pressed-height, 3.25rem); } :host(:state(-vertical)) .drag-handle { height: var(--m3e-split-pane-drag-handle-container-width, 1.5rem); } :host(:state(-vertical):not(:state(-pressed))) .handle { width: var(--m3e-split-pane-drag-handle-height, 3rem); height: var(--m3e-split-pane-drag-handle-width, 0.25rem); } :host(:state(-vertical):state(-pressed)) .handle { width: var(--m3e-split-pane-drag-handle-pressed-height, 3.25rem); height: var(--m3e-split-pane-drag-handle-pressed-width, 0.75rem); } @media (prefers-reduced-motion) { .handle { transition: none; } } @media (forced-colors: active) { :host(:state(-pressed)) .handle, :host(:not(:state(-pressed))) .handle { background-color: ButtonText; } }`,t([u()],OC.prototype,"_orientation",void 0),t([h(".base")],OC.prototype,"_base",void 0),t([h(".drag-handle")],OC.prototype,"_dragHandle",void 0),t([m({type:Number})],OC.prototype,"value",void 0),t([m({type:Number})],OC.prototype,"min",void 0),t([m({type:Number})],OC.prototype,"max",void 0),t([m({type:Number})],OC.prototype,"step",void 0),t([m({attribute:"detents",converter:q})],OC.prototype,"detents",void 0),t([m({attribute:"wrap-detents",type:Boolean})],OC.prototype,"wrapDetents",void 0),t([m()],OC.prototype,"orientation",void 0),t([m()],OC.prototype,"label",void 0),t([m()],OC.prototype,"valueFormatter",void 0),OC=t([$("m3e-split-pane")],OC);let BC=class extends(f(r,"tabpanel")){constructor(){super(...arguments),this.active=!1}connectedCallback(){this.slot="panel",super.connectedCallback()}render(){return s`<m3e-collapsible ?open="${this.active}"><div class="content"><div><slot></slot></div><slot name="actions"></slot></div></m3e-collapsible>`}};var FC,qC,VC,RC,UC;BC.styles=i`:host { display: block; } .content { display: flex; flex-direction: column; padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem); row-gap: var(--m3e-step-panel-spacing, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: var(--m3e-step-panel-actions-height, 3rem); } ::slotted([slot="actions"][end]) { justify-content: flex-end; }`,t([u()],BC.prototype,"active",void 0),BC=t([$("m3e-step-panel")],BC);let NC=UC=class extends(ue(V(N(b(Y(P(f(r,"tab")))))))){constructor(){super(...arguments),FC.add(this),qC.set(this,t=>e(this,FC,"m",RC).call(this,t)),this.optional=!1,this.editable=!1,this.completed=!1,this.invalid=!1,this.index=-1}get panel(){return this.control instanceof BC?this.control:null}get stepper(){return this.closest("m3e-stepper")}reset(){this.invalid=!1,this.completed=!1,this.panel?.querySelector("form")?.reset()}attach(e){e instanceof BC&&(e.id=e.id||"m3e-step-panel-"+UC.__nextId++,Ie(this,"aria-controls",e.id),e.style.order=this.style.order),super.attach(e)}detach(){this.control&&(this.control.style.order="",this.control.id&&We(this,"aria-controls",this.control.id)),super.detach()}connectedCallback(){this.slot="step",super.connectedCallback(),this.addEventListener("click",e(this,qC,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,qC,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-stepper")?.[De].notifySelectionChange(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const t=s`<slot name="hint">${this.optional?s`<span class="hint">(Optional)</span>`:n}</slot>`,a=s`<slot name="error">${t}</slot>`;return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="wrapper"><div class="icon" aria-hidden="true">${e(this,FC,"m",VC).call(this)}</div><div class="label"><slot></slot>${this.invalid?a:t}</div></div></div>`}};var jC,YC,KC,ZC,GC,XC,JC,QC,eS,tS,aS,oS;qC=new WeakMap,FC=new WeakSet,VC=function(){if(!this.selected){if(this.invalid)return s`<slot name="error-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg></slot>`;if(this.completed)return this.editable?s`<slot name="edit-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg></slot>`:s`<slot name="done-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></slot>`}return s`<slot name="icon">${this.index+1}</slot>`},RC=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))&&this.closest("m3e-stepper")?.moveTo(this.index)?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!1)},NC.styles=i`:host { display: block; outline: none; min-width: 0px; position: relative; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { min-width: inherit; position: relative; border-radius: var(--m3e-step-shape, ${v.shape.corner.medium}); padding: var(--m3e-step-padding, 1.5rem); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .icon { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--m3e-step-icon-shape, 50%); width: var(--m3e-step-icon-size, 1.5rem); height: var(--m3e-step-icon-size, 1.5rem); } .icon svg, ::slotted([slot="icon"]), ::slotted([slot="edit-icon"]), ::slotted([slot="done-icon"]), ::slotted([slot="error-icon"]) { width: 1em; font-size: var(--m3e-step-icon-size, 1.5rem) !important; } :host(:not([aria-disabled="true"])[selected]) .icon { background-color: var(--m3e-step-selected-icon-container-color, ${v.color.primary}); color: var(--m3e-step-selected-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon { background-color: var(--m3e-step-completed-icon-container-color, ${v.color.primary}); color: var(--m3e-step-completed-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon { background-color: var(--m3e-step-unselected-icon-container-color, ${v.color.inverseSurface}); color: var(--m3e-step-unselected-icon-color, ${v.color.inverseOnSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon { color: var(--m3e-step-icon-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .icon { background-color: color-mix( in srgb, var(--m3e-step-disabled-icon-container-color, ${v.color.onSurface}) 10%, transparent ); color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:not([aria-disabled="true"])) .label { color: var(--m3e-step-label-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label { color: var(--m3e-step-label-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .label { color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${v.color.onSurface}) 38%, transparent); } .wrapper { display: flex; align-items: center; height: 100%; border-radius: inherit; font-size: var(--m3e-step-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-step-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-step-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-step-tracking, ${v.typescale.standard.title.small.tracking}); flex-direction: var(--_step-direction, row); gap: var(--m3e-step-icon-label-space, 0.5rem); justify-content: flex-start; } .label { display: flex; flex-direction: column; align-items: var(--_step-label-align-items, flex-start); } ::slotted([slot="hint"]), .hint, ::slotted([slot="error"]) { font-size: var(--m3e-step-hint-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-step-hint-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-step-hint-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-step-hint-tracking, ${v.typescale.standard.body.small.tracking}); } :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]), :host(:not([aria-disabled="true"]):not([invalid])) .hint { color: var(--m3e-step-hint-color, ${v.color.onSurfaceVariant}); } :host([aria-disabled="true"]) ::slotted([slot="hint"]), :host([aria-disabled="true"]) .hint { color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${v.color.onSurface}) 38%, transparent); }`,NC.__nextId=0,t([h(".focus-ring")],NC.prototype,"_focusRing",void 0),t([h(".state-layer")],NC.prototype,"_stateLayer",void 0),t([h(".ripple")],NC.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"optional",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"editable",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"completed",void 0),t([m({type:Boolean,reflect:!0})],NC.prototype,"invalid",void 0),t([u()],NC.prototype,"index",void 0),NC=UC=t([$("m3e-step")],NC);class iS extends z{constructor(e){super(),jC.set(this,void 0),a(this,jC,e,"f")}_onClick(){switch(e(this,jC,"f")){case"next":this.closest("m3e-stepper")?.moveNext();break;case"previous":this.closest("m3e-stepper")?.movePrevious();break;case"reset":this.closest("m3e-stepper")?.reset()}}}jC=new WeakMap;let rS=class extends(M(P(r))){constructor(){super(...arguments),YC.add(this),KC.set(this,void 0),this._selectedIndex=null,this[oS]=(new Ae).withHomeAndEnd().withWrap().onSelectedItemsChange(()=>e(this,YC,"m",QC).call(this)),this.headerPosition="above",this.labelPosition="end",this.linear=!1,this.orientation="horizontal"}get steps(){return this[De]?.items??[]}get selectedStep(){return null!==this._selectedIndex?this.steps[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}movePrevious(){return this.moveTo((this._selectedIndex??1)-1)}moveNext(){return this.moveTo((this._selectedIndex??-1)+1)}moveTo(t){const a=this.selectedStep;if(a&&a.index===t)return!0;if(this.steps[t]?.disabled)return!1;if(t>=0&&t<this.steps.length){if(a){const o=e(this,YC,"m",eS).call(this);if(this.linear)if(t<a.index){const e=this[De].items[t];if(!e||e.completed&&!e.editable)return!1}else if(t>a.index+1){const e=this[De].items[t];if(!e||!e.completed)return!1}else if(!o&&!a.optional)return!1;a.completed=!0}return this._selectedIndex=t,this[De].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})),!0}return a&&(this[De].deselect(a),this.dispatchEvent(new Event("change",{bubbles:!0}))),!1}reset(){this.steps.forEach(e=>e.reset());const e=this.steps.findIndex(e=>!e.disabled);e!==this._selectedIndex&&(this._selectedIndex=e,this[De].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})))}connectedCallback(){super.connectedCallback(),E(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),this._orientation=void 0,e(this,KC,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.orientation&&e(this,YC,"m",tS).call(this)}willUpdate(t){super.willUpdate(t),t.has("orientation")&&(e(this,KC,"f")?.call(this),"auto"===this.orientation?e(this,YC,"m",tS).call(this):(this._orientation=void 0,e(this,YC,"m",aS).call(this))),t.has("_orientation")&&e(this,YC,"m",aS).call(this)}render(){let t;return this.selectedStep?.panel&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedStep.panel),-1===t&&(t=void 0)),this[De].vertical?s`${e(this,YC,"m",ZC).call(this)}<slot name="panel"></slot>`:s`${"above"===this.headerPosition?e(this,YC,"m",ZC).call(this):n}<m3e-slide class="steps" selected-index="${je(t)}"><slot name="panel"></slot></m3e-slide>${"below"===this.headerPosition?e(this,YC,"m",ZC).call(this):n}`}};KC=new WeakMap,YC=new WeakSet,oS=De,ZC=function(){return s`<div class="header" role="tablist" aria-orientation="${je(this[De].vertical?"vertical":void 0)}" @change="${e(this,YC,"m",GC)}"><slot name="step" @slotchange="${e(this,YC,"m",XC)}" @keydown="${e(this,YC,"m",JC)}"></slot></div>`},GC=function(e){e.stopPropagation()},XC=function(){const{added:t,removed:a}=this[De].setItems([...this.querySelectorAll("m3e-step")]);if(t.length>0||a.length>0){this.querySelectorAll(".-m3e-step-divider").forEach(e=>e.remove());for(let e=0;e<this[De].items.length;e++){const t=this[De].items[e];if(t.index=e,e>0){const e=document.createElement("div");e.ariaHidden="true",e.classList.add("-m3e-step-divider"),e.slot="step",t.insertAdjacentElement("beforebegin",e)}}e(this,YC,"m",aS).call(this),0==this[De].selectedItems.length&&this[De].select(this[De].items.find(e=>!e.disabled))}},JC=function(e){this[De].onKeyDown(e)},QC=function(){const e=this[De].selectedItems[0];let t=e?this.steps.indexOf(e):null;-1===t&&(t=null),this._selectedIndex=t;for(const e of this[De].items)e.panel&&(e.panel.active=e.index===t);e&&this.matches(":focus-within")&&!e.matches(":focus")&&e.focus(),O(this,"-no-animate")&&requestAnimationFrame(()=>C(this,"-no-animate"))},eS=function(){let e=!1;return this.selectedStep&&(e=this.selectedStep.panel?.querySelector("form")?.checkValidity()??!0,this.selectedStep.optional&&(e=!0),this.selectedStep.invalid=!e),e},tS=function(){a(this,KC,Je.observe([Qe.XSmall],t=>{this._orientation=t.get(Qe.XSmall)?"vertical":"horizontal",e(this,YC,"m",aS).call(this)}),"f")},aS=function(){this[De].vertical="vertical"===(this._orientation??this.orientation),k(this,"-vertical",this[De].vertical),this[De].vertical?this.steps.forEach((e,t)=>{e.style.order=`${t}`,e.panel&&(e.panel.style.order=`${t}`)}):this.steps.forEach(e=>{e.style.order="",e.panel&&(e.panel.style.order="")})},F(i`m3e-stepper:not(:state(-vertical)) > .-m3e-step-divider::before { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical))[label-position="end"] > .-m3e-step-divider { margin-block: auto; } m3e-stepper:not(:state(-vertical))[label-position="below"] > .-m3e-step-divider::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-block-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"] { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"]:not(:last-of-type) { border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); }`),rS.styles=i`:host { display: flex; flex-direction: column; position: relative; } :host(:not(:state(-vertical))) .header { display: flex; align-items: flex-start; flex-wrap: nowrap; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider) { flex: 1 1 auto; position: relative; min-width: 2rem; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider)::before { content: ""; position: absolute; left: 0; right: 0; } :host(:not(:state(-vertical)):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before { top: 50%; } :host(:not(:state(-vertical))) ::slotted([slot="step"]) { align-self: stretch; } :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; top: 0; } :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: 50%; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:state(-vertical))[label-position="below"]) { --_step-direction: column; --_step-label-align-items: center; } :host(:state(-vertical)) .header { display: contents; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider)) { flex: none; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; left: 0; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { top: 0; bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); bottom: 0; } :host(:not(:state(-vertical))) { --m3e-collapsible-animation-duration: 0ms; } :host(:state(-no-animate)) { --m3e-collapsible-animation-duration: 0ms; }`,t([u()],rS.prototype,"_orientation",void 0),t([u()],rS.prototype,"_selectedIndex",void 0),t([m({attribute:"header-position",reflect:!0})],rS.prototype,"headerPosition",void 0),t([m({attribute:"label-position",reflect:!0})],rS.prototype,"labelPosition",void 0),t([m({type:Boolean,reflect:!0})],rS.prototype,"linear",void 0),t([m({reflect:!0})],rS.prototype,"orientation",void 0),rS=t([$("m3e-stepper")],rS);let sS=class extends iS{constructor(){super("next")}};sS=t([$("m3e-stepper-next")],sS);let nS=class extends iS{constructor(){super("previous")}};nS=t([$("m3e-stepper-previous")],nS);let lS=class extends iS{constructor(){super("reset")}};lS=t([$("m3e-stepper-reset")],lS);const cS=o(`var(--m3e-switch-selected-icon-color, ${v.color.onPrimaryContainer})`),dS=o("var(--m3e-switch-selected-icon-size, 1rem)"),hS=o(`var(--m3e-switch-unselected-icon-color, ${v.color.surfaceContainerHighest})`),mS=o("var(--m3e-switch-unselected-icon-size, 1rem)"),pS=o("var(--m3e-switch-track-height, 2rem)"),uS=o("var(--m3e-switch-track-width, 3.25rem)"),vS=o(`var(--m3e-switch-track-outline-color, ${v.color.outline})`),bS=o("var(--m3e-switch-track-outline-width, 2px)"),fS=o(`var(--m3e-switch-track-shape, ${v.shape.corner.full})`),gS=o(`var(--m3e-switch-selected-track-color, ${v.color.primary})`),yS=o(`var(--m3e-switch-unselected-track-color, ${v.color.surfaceContainerHighest})`),$S=o("var(--m3e-switch-unselected-handle-height, 1rem)"),xS=o("var(--m3e-switch-unselected-handle-width, 1rem)"),wS=o("var(--m3e-switch-with-icon-handle-height, 1.5rem)"),kS=o("var(--m3e-switch-with-icon-handle-width, 1.5rem)"),CS=o("var(--m3e-switch-selected-handle-height, 1.5rem)"),SS=o("var(--m3e-switch-selected-handle-width, 1.5rem)"),_S=o("var(--m3e-switch-pressed-handle-height, 1.75rem)"),LS=o("var(--m3e-switch-pressed-handle-width, 1.75rem)"),ES=o(`var(--m3e-switch-handle-shape, ${v.shape.corner.full})`),zS=o(`var(--m3e-switch-selected-handle-color, ${v.color.onPrimary})`),MS=o(`var(--m3e-switch-unselected-handle-color, ${v.color.outline})`),TS=o("var(--m3e-switch-state-layer-size, 2.5rem)"),PS=o(`var(--m3e-switch-state-layer-shape, ${v.shape.corner.full})`),IS=o(`var(--m3e-switch-disabled-selected-icon-color, ${v.color.onSurface})`),WS=o("var(--m3e-switch-disabled-selected-icon-opacity, 38%)"),DS=o(`var(--m3e-switch-disabled-unselected-icon-color, ${v.color.surfaceContainerHighest})`),AS=o("var(--m3e-switch-disabled-unselected-icon-opacity, 38%)"),HS=o("var(--m3e-switch-disabled-track-opacity, 12%)"),OS=o(`var(--m3e-switch-disabled-selected-track-color, ${v.color.onSurface})`),BS=o(`var(--m3e-switch-disabled-unselected-track-color, ${v.color.surfaceContainerHighest})`),FS=o(`var(--m3e-switch-disabled-unselected-track-outline-color, ${v.color.onSurface})`),qS=o("var(--m3e-switch-disabled-unselected-handle-opacity, 38%)"),VS=o("var(--m3e-switch-disabled-selected-handle-opacity, 100%)"),RS=o(`var(--m3e-switch-disabled-selected-handle-color, ${v.color.surface})`),US=o(`var(--m3e-switch-disabled-unselected-handle-color, ${v.color.onSurface})`),NS=o(`var(--m3e-switch-selected-hover-icon-color, ${v.color.onPrimaryContainer})`),jS=o(`var(--m3e-switch-unselected-hover-icon-color, ${v.color.surfaceContainerHighest})`),YS=o(`var(--m3e-switch-selected-hover-track-color, ${v.color.primary})`),KS=o(`var(--m3e-switch-selected-hover-state-layer-color, ${v.color.primary})`),ZS=o("var(--m3e-switch-selected-hover-state-layer-opacity, 8%)"),GS=o(`var(--m3e-switch-unselected-hover-track-color, ${v.color.surfaceContainerHighest})`),XS=o(`var(--m3e-switch-unselected-hover-track-outline-color, ${v.color.outline})`),JS=o(`var(--m3e-switch-unselected-hover-state-layer-color, ${v.color.onSurface})`),QS=o("var(--m3e-switch-unselected-hover-state-layer-opacity, 8%)"),e_=o(`var(--m3e-switch-selected-hover-handle-color, ${v.color.surfaceContainerHighest})`),t_=o(`var(--m3e-switch-unselected-hover-handle-color, ${v.color.onSurfaceVariant})`),a_=o(`var(--m3e-switch-selected-focus-icon-color, ${v.color.onPrimaryContainer})`),o_=o(`var(--m3e-switch-unselected-focus-icon-color, ${v.color.surfaceContainerHighest})`),i_=o(`var(--m3e-switch-selected-focus-track-color, ${v.color.primary})`),r_=o(`var(--m3e-switch-selected-focus-state-layer-color, ${v.color.primary})`),s_=o("var(--m3e-switch-selected-focus-state-layer-opacity, 10%)"),n_=o(`var(--m3e-switch-unselected-focus-track-color, ${v.color.surfaceContainerHighest})`),l_=o(`var(--m3e-switch-unselected-focus-track-outline-color, ${v.color.outline})`),c_=o(`var(--m3e-switch-unselected-focus-state-layer-color, ${v.color.onSurface})`),d_=o("var(--m3e-switch-unselected-focus-state-layer-opacity, 10%)"),h_=o(`var(--m3e-switch-selected-focus-handle-color, ${v.color.primaryContainer})`),m_=o(`var(--m3e-switch-unselected-focus-handle-color, ${v.color.onSurfaceVariant})`),p_=o(`var(--m3e-switch-selected-pressed-icon-color, ${v.color.onPrimaryContainer})`),u_=o(`var(--m3e-switch-unselected-pressed-icon-color, ${v.color.surfaceContainerHighest})`),v_=o(`var(--m3e-switch-selected-pressed-track-color, ${v.color.primary})`),b_=(o(`var(--m3e-switch-selected-pressed-state-layer-color, ${v.color.primary})`),o("var(--m3e-switch-selected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-unselected-pressed-track-color, ${v.color.surfaceContainerHighest})`)),f_=o(`var(--m3e-switch-unselected-pressed-track-outline-color, ${v.color.outline})`),g_=(o(`var(--m3e-switch-unselected-pressed-state-layer-color, ${v.color.onSurface})`),o("var(--m3e-switch-unselected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-selected-pressed-handle-color, ${v.color.primaryContainer})`)),y_=o(`var(--m3e-switch-unselected-pressed-handle-color, ${v.color.onSurfaceVariant})`),$_=i`.handle { position: relative; display: flex; align-items: center; justify-content: center; pointer-events: none; transform-origin: center center; border-radius: ${ES}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } .track:not(.pressed) .handle { --_switch-handle-effect: ${v.motion.spring.fastSpatial}; } .track.pressed .handle { --_switch-handle-effect: ${v.motion.spring.fastEffects}; } :host(:not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { width: ${kS}; height: ${wS}; } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host([aria-disabled="true"]:not([checked])) .handle { width: ${xS}; height: ${$S}; } :host([checked]) .track:not(.pressed) .handle { width: ${SS}; height: ${CS}; } .track.pressed .handle { width: ${LS}; height: ${_S}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${MS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle { background-color: ${t_}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle { background-color: ${m_}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ${y_}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${zS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle { background-color: ${e_}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle { background-color: ${h_}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: ${g_}; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: color-mix( in srgb, ${US} ${qS}, transparent ); } :host([aria-disabled="true"][checked]) .handle { background-color: color-mix( in srgb, ${RS} ${VS}, transparent ); } :host(:not(:dir(rtl))[checked]) .track:not(.pressed) .handle { transform: translateX( calc(${uS} - ${SS} - calc(${bS} * 2)) ); } :host(:dir(rtl)[checked]) .track:not(.pressed) .handle { transform: translateX( calc( 0px - calc( ${uS} - ${SS} - calc(${bS} * 2) ) ) ); } :host(:not(:dir(rtl))[checked]) .track.pressed .handle { transform: translateX( calc(${uS} - ${LS} - ${bS}) ); } :host(:dir(rtl)[checked]) .track.pressed .handle { transform: translateX( calc(0px - calc(${uS} - ${LS} - ${bS})) ); } :host(:not(:dir(rtl)):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:not(:dir(rtl))[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( ${bS} + calc(${LS} - ${kS}) ) ); } :host(:dir(rtl):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:dir(rtl)[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( 0px - calc( ${bS} + calc(${LS} - ${kS}) ) ) ); } :host(:not(:dir(rtl)):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(${bS}); } :host(:dir(rtl):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(calc(0px - ${bS})); } @media (forced-colors: active) { .handle { transition: ${o(`transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ButtonText; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: GrayText; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: Canvas; } :host([aria-disabled="true"][checked]) .handle { background-color: Canvas; } } @media (prefers-reduced-motion) { .handle { transition: none; } }`,x_=i`:host([icons="none"]) .icon, :host([icons="selected"]:not([checked])) .icon, :host([aria-disabled="true"]:not([checked])) .icon { display: none; } .icon { width: 1em; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .icon { font-size: ${mS}; } :host([checked]) .icon { font-size: ${dS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${hS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon { color: ${jS}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon { color: ${o_}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: ${u_}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${cS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon { color: ${NS}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon { color: ${a_}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: ${p_}; } :host([aria-disabled="true"]:not([checked])) .icon { color: color-mix( in srgb, ${DS} ${AS}, transparent ); } :host([aria-disabled="true"][checked]) .icon { color: color-mix( in srgb, ${IS} ${WS}, transparent ); } @media (forced-colors: active) { :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: CanvasText; } :host([aria-disabled="true"]:not([checked])) .icon { color: Canvas; } :host([aria-disabled="true"][checked]) .icon { color: GrayText; } } @media (prefers-reduced-motion) { .icon { transition: none; } }`,w_=i`.state-layer { width: ${TS}; height: ${TS}; border-radius: ${PS}; transition: ${o(`top ${v.motion.spring.fastEffects},\n left ${v.motion.spring.fastEffects},\n right ${v.motion.spring.fastEffects}`)}; } :host(:not([checked])[icons="both"]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${TS} - ${kS}) / 2)); top: calc(0px - calc(calc(${TS} - ${wS}) / 2)); } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .state-layer { inset-inline-start: calc( 0px - calc(calc(${TS} - ${xS}) / 2) ); top: calc(0px - calc(calc(${TS} - ${$S}) / 2)); } :host([checked]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${TS} - ${SS}) / 2)); top: calc(0px - calc(calc(${TS} - ${CS}) / 2)); } .track.pressed .state-layer { inset-inline-start: calc(0px - calc(calc(${TS} - ${LS}) / 2)); top: calc(0px - calc(calc(${TS} - ${LS}) / 2)); } :host(:not([checked])) .state-layer { --m3e-state-layer-hover-color: ${JS}; --m3e-state-layer-hover-opacity: ${QS}; --m3e-state-layer-focus-color: ${c_}; --m3e-state-layer-focus-opacity: ${d_}; } :host([checked]) .state-layer { --m3e-state-layer-hover-color: ${KS}; --m3e-state-layer-hover-opacity: ${ZS}; --m3e-state-layer-focus-color: ${r_}; --m3e-state-layer-focus-opacity: ${s_}; }`,k_=i`:host { display: inline-block; position: relative; outline: none; height: fit-content; width: fit-content; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .focus-ring { border-radius: ${fS}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .base { display: flex; align-items: center; justify-content: center; }`,C_=i`.track { display: flex; align-items: center; position: relative; box-sizing: border-box; border-radius: ${fS}; width: ${uS}; height: ${pS}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .track { border-width: ${bS}; border-style: solid; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) { border-color: ${vS}; background-color: ${yS}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) { border-color: ${XS}; background-color: ${GS}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) { border-color: ${l_}; background-color: ${n_}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ${f_}; background-color: ${b_}; } :host([aria-disabled="true"]:not([checked])) .track { border-color: color-mix( in srgb, ${FS} ${HS}, transparent ); background-color: color-mix( in srgb, ${BS} ${HS}, transparent ); } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) { background-color: ${gS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) { background-color: ${YS}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) { background-color: ${i_}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ${v_}; } :host([aria-disabled="true"][checked]) .track { background-color: color-mix( in srgb, ${OS} ${HS}, transparent ); } @media (forced-colors: active) { .track { transition: none; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ButtonText; background-color: Canvas; } :host([aria-disabled="true"]:not([checked])) .track { border-color: GrayText; background-color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ButtonText; } :host([aria-disabled="true"][checked]) .track { background-color: GrayText; } } @media (prefers-reduced-motion) { .track { transition: none; } }`;var S_,__,L_,E_,z_,M_;let T_=class extends(Q(te(ae(ie($e(se(V(N(Y(P(f(r,"switch")))))))))))){constructor(){super(),S_.add(this),__.set(this,t=>e(this,S_,"m",M_).call(this,t)),L_.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),E_.set(this,new Z(this,{target:null,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})),this.icons="none",this.value="on",new Z(this,{isPressedKey:e=>" "===e,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})}get[(__=new WeakMap,L_=new WeakMap,E_=new WeakMap,S_=new WeakSet,le)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,__,"f"));for(const t of this.labels)e(this,L_,"f").observe(t),e(this,E_,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,__,"f"));for(const t of this.labels)e(this,L_,"f").unobserve(t),e(this,E_,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="track" aria-hidden="true"><div class="touch" aria-hidden="true"></div><div class="handle"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><div class="base">${e(this,S_,"m",z_).call(this)}</div></div></div>`}};var P_,I_,W_,D_;z_=function(){return this.checked?s`<svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"></path></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>`},M_=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},T_.styles=[k_,w_,C_,$_,x_],t([h(".track")],T_.prototype,"_track",void 0),t([h(".focus-ring")],T_.prototype,"_focusRing",void 0),t([h(".state-layer")],T_.prototype,"_stateLayer",void 0),t([m({reflect:!0})],T_.prototype,"icons",void 0),t([m()],T_.prototype,"value",void 0),T_=t([$("m3e-switch")],T_);let A_=D_=class extends(ue(b(V(N(Y(P(f(r,"tab"),!0))))))){constructor(){super(...arguments),P_.add(this),I_.set(this,t=>e(this,P_,"m",W_).call(this,t))}attach(e){super.attach(e),e.id=e.id||"m3e-tab-panel-"+D_.__nextId++,Ie(this,"aria-controls",e.id)}detach(){this.control&&this.control.id&&We(this,"aria-controls",this.control.id),super.detach()}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,I_,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,I_,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-tabs")?.[De].notifySelectionChange(this)}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><slot name="icon" aria-hidden="true"></slot><span class="label"><slot></slot></span></div></div>`}};I_=new WeakMap,P_=new WeakSet,W_=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-tabs")?.[De].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},A_.styles=i`:host { display: inline-block; outline: none; user-select: none; height: calc(var(--_tab-height) + ${v.density.calc(-3)}); font-size: var(--m3e-tab-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-tab-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-tab-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-tab-tracking, ${v.typescale.standard.title.small.tracking}); flex-grow: var(--_tab-grow); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; padding-inline-start: var(--m3e-tab-padding-start, 1.5rem); padding-inline-end: var(--m3e-tab-padding-end, 1.5rem); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .focus-ring { border-radius: var(--m3e-tab-focus-ring-shape, ${v.shape.corner.large}); } :host([selected]:focus-within) .focus-ring { top: var(--_tab-focus-ring-top-offset, 0); bottom: var(--_tab-focus-ring-bottom-offset, 0); } :host([selected]:not(:disabled)) .base { color: var(--m3e-tab-selected-color, var(--_tab-selected-color, ${v.color.primary})); --m3e-state-layer-hover-color: var( --m3e-tab-selected-container-hover-color, var(--_tab-selected-container-hover-color, ${v.color.primary}) ); --m3e-state-layer-focus-color: var( --_tab-selected-container-focus-color, var(--m3e-tab-selected-container-focus-color, ${v.color.primary}) ); --m3e-ripple-color: var( --_tab-selected-ripple-color, var(--m3e-tab-selected-ripple-color, ${v.color.primary}) ); } :host(:not([selected]):not(:disabled)) .base { color: var(--m3e-tab-unselected-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-hover-color: var(--m3e-tab-unselected-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-tab-unselected-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-tab-unselected-ripple-color, ${v.color.onSurface}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-tab-disabled-color, ${v.color.onSurface}) var(--m3e-tab-disabled-opacity, 38%), transparent ); } .wrapper { display: inline-flex; align-items: center; white-space: nowrap; flex-direction: var(--_tab-direction); justify-content: center; column-gap: var(--m3e-tab-spacing, 0.5rem); } ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-tab-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .base { color: ButtonText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host(:disabled) .base { color: GrayText; } }`,A_.__nextId=0,t([h(".focus-ring")],A_.prototype,"_focusRing",void 0),t([h(".state-layer")],A_.prototype,"_stateLayer",void 0),t([h(".ripple")],A_.prototype,"_ripple",void 0),t([h(".label")],A_.prototype,"label",void 0),A_=D_=t([$("m3e-tab")],A_);let H_=class extends(f(r,"tabpanel")){connectedCallback(){super.connectedCallback(),this.slot="panel"}render(){return s`<slot></slot>`}};var O_,B_,F_,q_,V_,R_,U_,N_,j_;H_.styles=i`:host { display: block; overflow-y: auto; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; }`,H_=t([$("m3e-tab-panel")],H_);let Y_=class extends(P(r)){constructor(){super(),O_.add(this),B_.set(this,void 0),this._selectedIndex=null,this[j_]=(new Ae).onSelectedItemsChange(()=>e(this,O_,"m",U_).call(this)).withHomeAndEnd().withWrap().withDirectionality(Ve.current),this.disablePagination=!1,this.headerPosition="before",this.variant="secondary",this.stretch=!1,this.previousPageLabel="Previous page",this.nextPageLabel="Next page",new A(this,{skipInitial:!0,callback:()=>{E(this,"-no-animate"),e(this,O_,"m",N_).call(this)}})}get tabs(){return this[De]?.items??[]}get selectedTab(){return null!==this._selectedIndex?this.tabs[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}set selectedIndex(e){if(e>=0&&e<this.tabs.length)this.tabs[e].selected=!0;else{const e=this.selectedTab;e&&(e.selected=!1)}}connectedCallback(){super.connectedCallback(),E(this,"-no-animate"),a(this,B_,Ve.observe(()=>{this.requestUpdate(),this[De].directionality=Ve.current}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,B_,"f")?.call(this)}updated(t){super.updated(t),(t.has("variant")||t.has("stretch"))&&null!==this._selectedIndex&&e(this,O_,"m",N_).call(this)}render(){let t;return this.selectedTab?.control&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedTab.control),-1===t&&(t=void 0)),s`${"before"===this.headerPosition?e(this,O_,"m",F_).call(this):n}<m3e-slide class="tabs" selected-index="${je(t)}"><slot name="panel"></slot></m3e-slide>${"after"===this.headerPosition?e(this,O_,"m",F_).call(this):n}`}};
|
|
127
127
|
/**
|
|
128
128
|
* Adapted from Angular Material CDK Text Field
|
|
129
129
|
* Source: https://github.com/angular/components/blob/main/src/cdk/text-field/autosize.ts
|
|
@@ -132,7 +132,7 @@ var Qg,ey,ty,ay,oy,iy,ry,sy,ny;Kg=new WeakSet,Zg=function(e){k(this,"-with-no-da
|
|
|
132
132
|
* Copyright (c) 2025 Google LLC
|
|
133
133
|
* See LICENSE file in the project root for full license text.
|
|
134
134
|
*/
|
|
135
|
-
var K_,Z_,G_,X_,J_,Q_,eL,tL,aL,oL,iL,rL,sL,nL,lL,cL;B_=new WeakMap,O_=new WeakSet,j_=De,F_=function(){return s`<m3e-slide-group class="tablist" threshold="8" previous-page-label="${this.previousPageLabel}" next-page-label="${this.nextPageLabel}" ?disabled="${this.disablePagination}"><slot name="prev-icon" slot="prev-icon">${"ltr"===
|
|
135
|
+
var K_,Z_,G_,X_,J_,Q_,eL,tL,aL,oL,iL,rL,sL,nL,lL,cL;B_=new WeakMap,O_=new WeakSet,j_=De,F_=function(){return s`<m3e-slide-group class="tablist" threshold="8" previous-page-label="${this.previousPageLabel}" next-page-label="${this.nextPageLabel}" ?disabled="${this.disablePagination}"><slot name="prev-icon" slot="prev-icon">${"ltr"===Ve.current?s`<svg class="prev icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`:s`<svg class="next icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`}</slot><slot name="next-icon" slot="next-icon">${"ltr"===Ve.current?s`<svg class="next icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`:s`<svg class="prev icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`}</slot><div class="header" role="tablist"><div class="tabs"><slot @slotchange="${e(this,O_,"m",q_)}" @keydown="${e(this,O_,"m",V_)}" @change="${e(this,O_,"m",R_)}"></slot></div><div class="ink-bar" aria-hidden="true"><div class="active-indicator"></div></div></div></m3e-slide-group>`},q_=function(){this[De].setItems([...this.querySelectorAll("m3e-tab")])},V_=function(e){this[De].onKeyDown(e)},R_=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},U_=function(){const t=this[De].selectedItems[0];let a=t?this.tabs.indexOf(t):null;-1===a&&(a=null),this._selectedIndex=a,e(this,O_,"m",N_).call(this)},N_=function(){if(!this._tablist)return;const e=this[De].selectedItems[0];let t=0,a=0;if(e&&null!==this._selectedIndex){for(let e=0;e<this._selectedIndex;e++)t+=this.tabs[e].clientWidth;a=e.clientWidth,"primary"===this.variant&&e.label&&(t+=e.label.offsetLeft,a=e.label.clientWidth,a<24&&(t-=(24-a)/2,a=24))}this._tablist.style.setProperty("--_tabs-active-tab-position",`${t}px`),this._tablist.style.setProperty("--_tabs-active-tab-size",`${a}px`),a>0&&O(this,"-no-animate")&&setTimeout(()=>C(this,"-no-animate"))},Y_.styles=i`:host { display: flex; flex-direction: column; position: relative; } .tablist { position: relative; box-sizing: border-box; flex: none; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-tabs-paginator-button-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) !important; } .header { display: flex; flex-direction: column; } .tabs { display: flex; flex-wrap: nowrap; align-items: center; } .ink-bar { box-sizing: border-box; height: var(--_tabs-active-indicator-thickness); } .active-indicator { position: relative; height: var(--_tabs-active-indicator-thickness); left: calc(var(--_tabs-active-tab-position) + var(--_tabs-activate-indicator-inset, 0px)); width: calc(var(--_tabs-active-tab-size) - calc(var(--_tabs-activate-indicator-inset, 0px) * 2)); background-color: var(--m3e-tabs-active-indicator-color, ${v.color.primary}); transition: ${o(`left var(--m3e-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard},\n width var(--m3e-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard}`)}; } :host([header-position="after"]) .header { flex-direction: column-reverse; } :host([header-position="before"]) .ink-bar { margin-top: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="before"]) .tablist { --m3e-slide-group-divider-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); } :host([header-position="after"]) .ink-bar { margin-bottom: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="after"]) .tablist { --m3e-slide-group-divider-top: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); } :host([header-position="before"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-before-active-indicator-shape, ${v.shape.corner.extraSmallTop}); } :host([header-position="after"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-after-active-indicator-shape, ${v.shape.corner.extraSmallBottom}); } .tabs { flex: 1 1 auto; } :host([variant="primary"]) .tablist { --_tabs-activate-indicator-inset: var(--m3e-tabs-primary-active-indicator-inset, 0.125rem); --_tabs-active-indicator-thickness: var(--m3e-tabs-primary-active-indicator-thickness, 3px); --_tab-height: 4rem; } :host([header-position="before"]) .tablist { --_tab-focus-ring-bottom-offset: calc(var(--_tabs-active-indicator-thickness) + 1px); } :host([header-position="after"]) .tablist { --_tab-focus-ring-top-offset: calc(var(--_tabs-active-indicator-thickness) + 2px); } :host([header-position="before"][variant="primary"]) .tablist { --_tab-direction: column; } :host([header-position="after"][variant="primary"]) .tablist { --_tab-direction: column-reverse; } :host([variant="secondary"]) .tablist { --_tabs-active-indicator-thickness: var(--m3e-tabs-secondary-active-indicator-thickness, 2px); --_tab-height: 3rem; --_tab-selected-color: ${v.color.onSurface}; --_tab-selected-container-hover-color: ${v.color.onSurface}; --_tab-selected-container-focus-color: ${v.color.onSurface}; --_tab-selected-ripple-color: ${v.color.onSurface}; } :host([stretch]) .header { width: 100%; --_tab-grow: 1; } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } } @media (forced-colors: active) { .active-indicator { background-color: ButtonText; --m3e-divider-color: GrayText; } }`,t([h(".tablist")],Y_.prototype,"_tablist",void 0),t([u()],Y_.prototype,"_selectedIndex",void 0),t([m({attribute:"disable-pagination",type:Boolean})],Y_.prototype,"disablePagination",void 0),t([m({attribute:"header-position",reflect:!0})],Y_.prototype,"headerPosition",void 0),t([m({reflect:!0})],Y_.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],Y_.prototype,"stretch",void 0),t([m({attribute:"previous-page-label"})],Y_.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],Y_.prototype,"nextPageLabel",void 0),Y_=t([$("m3e-tabs")],Y_);let dL=class extends(b(f(r,"none"))){constructor(){super(...arguments),K_.add(this),Z_.set(this,void 0),G_.set(this,void 0),X_.set(this,void 0),J_.set(this,void 0),Q_.set(this,void 0),eL.set(this,!1),tL.set(this,()=>this._handleWindowResize()),aL.set(this,e=>a(this,eL,"focus"===e.type,"f")),oL.set(this,()=>this.resizeToFitContent()),this.maxRows=0,this.minRows=0,this.disabled=!1}attach(t){super.attach(t),t instanceof HTMLTextAreaElement&&(t.style.resize="none",a(this,Z_,t.style.height,"f"),t.addEventListener("focus",e(this,aL,"f")),t.addEventListener("blur",e(this,aL,"f")),t.addEventListener("input",e(this,oL,"f")),window.addEventListener("resize",e(this,tL,"f")),this.resizeToFitContent(!0))}detach(){this.control instanceof HTMLTextAreaElement&&(window.removeEventListener("resize",e(this,tL,"f")),this.control.removeEventListener("focus",e(this,aL,"f")),this.control.removeEventListener("blur",e(this,aL,"f")),this.control.removeEventListener("input",e(this,oL,"f"))),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}updated(e){super.updated(e),e.has("disabled")&&(this.disabled?this.reset():this.resizeToFitContent(!0))}resizeToFitContent(t=!1){if(this.disabled||!(this.control instanceof HTMLTextAreaElement))return;if(e(this,K_,"m",iL).call(this),e(this,K_,"m",rL).call(this),!e(this,G_,"f"))return;const o=this.control.value;if(!t&&this.minRows===e(this,J_,"f")&&o===e(this,Q_,"f"))return;const i=e(this,K_,"m",lL).call(this),r=Math.max(i,e(this,X_,"f")||0);this.control.style.height=`${r}px`,setTimeout(()=>e(this,K_,"m",cL).call(this)),a(this,Q_,o,"f"),a(this,J_,this.minRows,"f")}reset(){void 0!==e(this,Z_,"f")&&this.control instanceof HTMLTextAreaElement&&(this.control.style.height=e(this,Z_,"f"))}_handleWindowResize(){a(this,G_,a(this,X_,void 0,"f"),"f"),this.resizeToFitContent(!0)}};
|
|
136
136
|
/**
|
|
137
137
|
* @license
|
|
138
138
|
* Copyright 2021 Google LLC
|
|
@@ -198,7 +198,7 @@ function hL(e){return e<0?-1:0===e?0:1}function mL(e,t,a){return(1-a)*e+a*t}func
|
|
|
198
198
|
* See the License for the specific language governing permissions and
|
|
199
199
|
* limitations under the License.
|
|
200
200
|
*/
|
|
201
|
-
class TL{constructor(e,t,a,o,i,r,s,n,l){this.hue=e,this.chroma=t,this.j=a,this.q=o,this.m=i,this.s=r,this.jstar=s,this.astar=n,this.bstar=l}distance(e){const t=this.jstar-e.jstar,a=this.astar-e.astar,o=this.bstar-e.bstar,i=Math.sqrt(t*t+a*a+o*o);return 1.41*Math.pow(i,.63)}static fromInt(e){return TL.fromIntInViewingConditions(e,ML.DEFAULT)}static fromIntInViewingConditions(e,t){const a=(65280&e)>>8,o=255&e,i=LL((16711680&e)>>16),r=LL(a),s=LL(o),n=.41233895*i+.35762064*r+.18051042*s,l=.2126*i+.7152*r+.0722*s,c=.01932141*i+.11916382*r+.95034478*s,d=.401288*n+.650173*l-.051461*c,h=-.250268*n+1.204414*l+.045854*c,m=-.002079*n+.048952*l+.953127*c,p=t.rgbD[0]*d,u=t.rgbD[1]*h,v=t.rgbD[2]*m,b=Math.pow(t.fl*Math.abs(p)/100,.42),f=Math.pow(t.fl*Math.abs(u)/100,.42),g=Math.pow(t.fl*Math.abs(v)/100,.42),y=400*hL(p)*b/(b+27.13),$=400*hL(u)*f/(f+27.13),x=400*hL(v)*g/(g+27.13),w=(11*y+-12*$+x)/11,k=(y+$-2*x)/9,C=(20*y+20*$+21*x)/20,S=(40*y+20*$+x)/20,_=180*Math.atan2(k,w)/Math.PI,L=_<0?_+360:_>=360?_-360:_,E=L*Math.PI/180,z=S*t.nbb,M=100*Math.pow(z/t.aw,t.c*t.z),T=4/t.c*Math.sqrt(M/100)*(t.aw+4)*t.fLRoot,P=L<20.14?L+360:L,I=5e4/13*(.25*(Math.cos(P*Math.PI/180+2)+3.8))*t.nc*t.ncb*Math.sqrt(w*w+k*k)/(C+.305),W=Math.pow(I,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),D=W*Math.sqrt(M/100),A=D*t.fLRoot,H=50*Math.sqrt(W*t.c/(t.aw+4)),O=(1+100*.007)*M/(1+.007*M),B=1/.0228*Math.log(1+.0228*A),F=B*Math.cos(E),
|
|
201
|
+
class TL{constructor(e,t,a,o,i,r,s,n,l){this.hue=e,this.chroma=t,this.j=a,this.q=o,this.m=i,this.s=r,this.jstar=s,this.astar=n,this.bstar=l}distance(e){const t=this.jstar-e.jstar,a=this.astar-e.astar,o=this.bstar-e.bstar,i=Math.sqrt(t*t+a*a+o*o);return 1.41*Math.pow(i,.63)}static fromInt(e){return TL.fromIntInViewingConditions(e,ML.DEFAULT)}static fromIntInViewingConditions(e,t){const a=(65280&e)>>8,o=255&e,i=LL((16711680&e)>>16),r=LL(a),s=LL(o),n=.41233895*i+.35762064*r+.18051042*s,l=.2126*i+.7152*r+.0722*s,c=.01932141*i+.11916382*r+.95034478*s,d=.401288*n+.650173*l-.051461*c,h=-.250268*n+1.204414*l+.045854*c,m=-.002079*n+.048952*l+.953127*c,p=t.rgbD[0]*d,u=t.rgbD[1]*h,v=t.rgbD[2]*m,b=Math.pow(t.fl*Math.abs(p)/100,.42),f=Math.pow(t.fl*Math.abs(u)/100,.42),g=Math.pow(t.fl*Math.abs(v)/100,.42),y=400*hL(p)*b/(b+27.13),$=400*hL(u)*f/(f+27.13),x=400*hL(v)*g/(g+27.13),w=(11*y+-12*$+x)/11,k=(y+$-2*x)/9,C=(20*y+20*$+21*x)/20,S=(40*y+20*$+x)/20,_=180*Math.atan2(k,w)/Math.PI,L=_<0?_+360:_>=360?_-360:_,E=L*Math.PI/180,z=S*t.nbb,M=100*Math.pow(z/t.aw,t.c*t.z),T=4/t.c*Math.sqrt(M/100)*(t.aw+4)*t.fLRoot,P=L<20.14?L+360:L,I=5e4/13*(.25*(Math.cos(P*Math.PI/180+2)+3.8))*t.nc*t.ncb*Math.sqrt(w*w+k*k)/(C+.305),W=Math.pow(I,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),D=W*Math.sqrt(M/100),A=D*t.fLRoot,H=50*Math.sqrt(W*t.c/(t.aw+4)),O=(1+100*.007)*M/(1+.007*M),B=1/.0228*Math.log(1+.0228*A),F=B*Math.cos(E),q=B*Math.sin(E);return new TL(L,D,M,T,A,H,O,F,q)}static fromJch(e,t,a){return TL.fromJchInViewingConditions(e,t,a,ML.DEFAULT)}static fromJchInViewingConditions(e,t,a,o){const i=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,r=t*o.fLRoot,s=t/Math.sqrt(e/100),n=50*Math.sqrt(s*o.c/(o.aw+4)),l=a*Math.PI/180,c=(1+100*.007)*e/(1+.007*e),d=1/.0228*Math.log(1+.0228*r),h=d*Math.cos(l),m=d*Math.sin(l);return new TL(a,t,e,i,r,n,c,h,m)}static fromUcs(e,t,a){return TL.fromUcsInViewingConditions(e,t,a,ML.DEFAULT)}static fromUcsInViewingConditions(e,t,a,o){const i=t,r=a,s=Math.sqrt(i*i+r*r),n=(Math.exp(.0228*s)-1)/.0228/o.fLRoot;let l=Math.atan2(r,i)*(180/Math.PI);l<0&&(l+=360);const c=e/(1-.007*(e-100));return TL.fromJchInViewingConditions(c,n,l,o)}toInt(){return this.viewed(ML.DEFAULT)}viewed(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),r=e.aw*Math.pow(this.j/100,1/e.c/e.z),s=i*(5e4/13)*e.nc*e.ncb,n=r/e.nbb,l=Math.sin(o),c=Math.cos(o),d=23*(n+.305)*a/(23*s+11*a*c+108*a*l),h=d*c,m=d*l,p=(460*n+451*h+288*m)/1403,u=(460*n-891*h-261*m)/1403,v=(460*n-220*h-6300*m)/1403,b=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),f=hL(p)*(100/e.fl)*Math.pow(b,1/.42),g=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),y=hL(u)*(100/e.fl)*Math.pow(g,1/.42),$=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),x=hL(v)*(100/e.fl)*Math.pow($,1/.42),w=f/e.rgbD[0],k=y/e.rgbD[1],C=x/e.rgbD[2],S=function(e,t,a){const o=fL,i=o[0][0]*e+o[0][1]*t+o[0][2]*a,r=o[1][0]*e+o[1][1]*t+o[1][2]*a,s=o[2][0]*e+o[2][1]*t+o[2][2]*a;return yL(EL(i),EL(r),EL(s))}(1.86206786*w-1.01125463*k+.14918677*C,.38752654*w+.62144744*k-.00897398*C,-.0158415*w-.03412294*k+1.04996444*C);return S}static fromXyzInViewingConditions(e,t,a,o){const i=.401288*e+.650173*t-.051461*a,r=-.250268*e+1.204414*t+.045854*a,s=-.002079*e+.048952*t+.953127*a,n=o.rgbD[0]*i,l=o.rgbD[1]*r,c=o.rgbD[2]*s,d=Math.pow(o.fl*Math.abs(n)/100,.42),h=Math.pow(o.fl*Math.abs(l)/100,.42),m=Math.pow(o.fl*Math.abs(c)/100,.42),p=400*hL(n)*d/(d+27.13),u=400*hL(l)*h/(h+27.13),v=400*hL(c)*m/(m+27.13),b=(11*p+-12*u+v)/11,f=(p+u-2*v)/9,g=(20*p+20*u+21*v)/20,y=(40*p+20*u+v)/20,$=180*Math.atan2(f,b)/Math.PI,x=$<0?$+360:$>=360?$-360:$,w=x*Math.PI/180,k=y*o.nbb,C=100*Math.pow(k/o.aw,o.c*o.z),S=4/o.c*Math.sqrt(C/100)*(o.aw+4)*o.fLRoot,_=x<20.14?x+360:x,L=5e4/13*(1/4*(Math.cos(_*Math.PI/180+2)+3.8))*o.nc*o.ncb*Math.sqrt(b*b+f*f)/(g+.305),E=Math.pow(L,.9)*Math.pow(1.64-Math.pow(.29,o.n),.73),z=E*Math.sqrt(C/100),M=z*o.fLRoot,T=50*Math.sqrt(E*o.c/(o.aw+4)),P=(1+100*.007)*C/(1+.007*C),I=Math.log(1+.0228*M)/.0228,W=I*Math.cos(w),D=I*Math.sin(w);return new TL(x,z,C,S,M,T,P,W,D)}xyzInViewingConditions(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),r=e.aw*Math.pow(this.j/100,1/e.c/e.z),s=i*(5e4/13)*e.nc*e.ncb,n=r/e.nbb,l=Math.sin(o),c=Math.cos(o),d=23*(n+.305)*a/(23*s+11*a*c+108*a*l),h=d*c,m=d*l,p=(460*n+451*h+288*m)/1403,u=(460*n-891*h-261*m)/1403,v=(460*n-220*h-6300*m)/1403,b=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),f=hL(p)*(100/e.fl)*Math.pow(b,1/.42),g=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),y=hL(u)*(100/e.fl)*Math.pow(g,1/.42),$=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),x=hL(v)*(100/e.fl)*Math.pow($,1/.42),w=f/e.rgbD[0],k=y/e.rgbD[1],C=x/e.rgbD[2];return[1.86206786*w-1.01125463*k+.14918677*C,.38752654*w+.62144744*k-.00897398*C,-.0158415*w-.03412294*k+1.04996444*C]}}
|
|
202
202
|
/**
|
|
203
203
|
* @license
|
|
204
204
|
* Copyright 2021 Google LLC
|
|
@@ -343,7 +343,7 @@ class IL{static from(e,t,a){return new IL(PL.solveToInt(e,t,a))}static fromInt(e
|
|
|
343
343
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
344
344
|
* See the License for the specific language governing permissions and
|
|
345
345
|
* limitations under the License.
|
|
346
|
-
*/var VL,
|
|
346
|
+
*/var qL,VL,RL,UL,NL,jL,YL,KL,ZL,GL;
|
|
347
347
|
/**
|
|
348
348
|
* @license
|
|
349
349
|
* Copyright 2022 Google LLC
|
|
@@ -360,7 +360,7 @@ class IL{static from(e,t,a){return new IL(PL.solveToInt(e,t,a))}static fromInt(e
|
|
|
360
360
|
* See the License for the specific language governing permissions and
|
|
361
361
|
* limitations under the License.
|
|
362
362
|
*/
|
|
363
|
-
function XL(e){return e.variant===VL.FIDELITY||e.variant===VL.CONTENT}function JL(e){return e.variant===VL.MONOCHROME}!function(e){e[e.MONOCHROME=0]="MONOCHROME",e[e.NEUTRAL=1]="NEUTRAL",e[e.TONAL_SPOT=2]="TONAL_SPOT",e[e.VIBRANT=3]="VIBRANT",e[e.EXPRESSIVE=4]="EXPRESSIVE",e[e.FIDELITY=5]="FIDELITY",e[e.CONTENT=6]="CONTENT",e[e.RAINBOW=7]="RAINBOW",e[e.FRUIT_SALAD=8]="FRUIT_SALAD"}(VL||(VL={}));class QL{static highestSurface(e){return e.isDark?QL.surfaceBright:QL.surfaceDim}}QL.contentAccentToneDelta=15,QL.primaryPaletteKeyColor=AL.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone}),QL.secondaryPaletteKeyColor=AL.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone}),QL.tertiaryPaletteKeyColor=AL.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone}),QL.neutralPaletteKeyColor=AL.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone}),QL.neutralVariantPaletteKeyColor=AL.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone}),QL.background=AL.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),QL.onBackground=AL.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>QL.background,contrastCurve:new BL(3,3,4.5,7)}),QL.surface=AL.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),QL.surfaceDim=AL.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:new BL(87,87,80,75).get(e.contrastLevel),isBackground:!0}),QL.surfaceBright=AL.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(24,24,29,34).get(e.contrastLevel):98,isBackground:!0}),QL.surfaceContainerLowest=AL.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(4,4,2,0).get(e.contrastLevel):100,isBackground:!0}),QL.surfaceContainerLow=AL.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(10,10,11,12).get(e.contrastLevel):new BL(96,96,96,95).get(e.contrastLevel),isBackground:!0}),QL.surfaceContainer=AL.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(12,12,16,20).get(e.contrastLevel):new BL(94,94,92,90).get(e.contrastLevel),isBackground:!0}),QL.surfaceContainerHigh=AL.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(17,17,21,25).get(e.contrastLevel):new BL(92,92,88,85).get(e.contrastLevel),isBackground:!0}),QL.surfaceContainerHighest=AL.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(22,22,26,30).get(e.contrastLevel):new BL(90,90,84,80).get(e.contrastLevel),isBackground:!0}),QL.onSurface=AL.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>QL.highestSurface(e),contrastCurve:new BL(4.5,7,11,21)}),QL.surfaceVariant=AL.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0}),QL.onSurfaceVariant=AL.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,11)}),QL.inverseSurface=AL.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20}),QL.inverseOnSurface=AL.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>QL.inverseSurface,contrastCurve:new BL(4.5,7,11,21)}),QL.outline=AL.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>QL.highestSurface(e),contrastCurve:new BL(1.5,3,4.5,7)}),QL.outlineVariant=AL.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5)}),QL.shadow=AL.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0}),QL.scrim=AL.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0}),QL.surfaceTint=AL.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0}),QL.primary=AL.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>JL(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.primaryContainer,QL.primary,10,"nearer",!1)}),QL.onPrimary=AL.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>JL(e)?e.isDark?10:90:e.isDark?20:100,background:e=>QL.primary,contrastCurve:new BL(4.5,7,11,21)}),QL.primaryContainer=AL.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>XL(e)?e.sourceColorHct.tone:JL(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.primaryContainer,QL.primary,10,"nearer",!1)}),QL.onPrimaryContainer=AL.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>XL(e)?AL.foregroundTone(QL.primaryContainer.tone(e),4.5):JL(e)?e.isDark?0:100:e.isDark?90:30,background:e=>QL.primaryContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.inversePrimary=AL.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>QL.inverseSurface,contrastCurve:new BL(3,4.5,7,7)}),QL.secondary=AL.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.secondaryContainer,QL.secondary,10,"nearer",!1)}),QL.onSecondary=AL.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>JL(e)?e.isDark?10:100:e.isDark?20:100,background:e=>QL.secondary,contrastCurve:new BL(4.5,7,11,21)}),QL.secondaryContainer=AL.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;return JL(e)?e.isDark?30:85:XL(e)?function(e,t,a,o){let i=a,r=IL.from(e,t,a);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){i+=o?-1:1;const s=IL.from(e,t,i);if(a>s.chroma)break;if(Math.abs(s.chroma-t)<.4)break;Math.abs(s.chroma-t)<Math.abs(r.chroma-t)&&(r=s),a=Math.max(a,s.chroma)}}return i}(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark):t},isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.secondaryContainer,QL.secondary,10,"nearer",!1)}),QL.onSecondaryContainer=AL.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>JL(e)?e.isDark?90:10:XL(e)?AL.foregroundTone(QL.secondaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>QL.secondaryContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.tertiary=AL.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.tertiaryContainer,QL.tertiary,10,"nearer",!1)}),QL.onTertiary=AL.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?e.isDark?10:90:e.isDark?20:100,background:e=>QL.tertiary,contrastCurve:new BL(4.5,7,11,21)}),QL.tertiaryContainer=AL.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(JL(e))return e.isDark?60:49;if(!XL(e))return e.isDark?30:90;const t=e.tertiaryPalette.getHct(e.sourceColorHct.tone);return DL.fixIfDisliked(t).tone},isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.tertiaryContainer,QL.tertiary,10,"nearer",!1)}),QL.onTertiaryContainer=AL.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?e.isDark?0:100:XL(e)?AL.foregroundTone(QL.tertiaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>QL.tertiaryContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.error=AL.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.errorContainer,QL.error,10,"nearer",!1)}),QL.onError=AL.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>QL.error,contrastCurve:new BL(4.5,7,11,21)}),QL.errorContainer=AL.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.errorContainer,QL.error,10,"nearer",!1)}),QL.onErrorContainer=AL.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>JL(e)?e.isDark?90:10:e.isDark?90:30,background:e=>QL.errorContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.primaryFixed=AL.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>JL(e)?40:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.primaryFixed,QL.primaryFixedDim,10,"lighter",!0)}),QL.primaryFixedDim=AL.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>JL(e)?30:80,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.primaryFixed,QL.primaryFixedDim,10,"lighter",!0)}),QL.onPrimaryFixed=AL.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>JL(e)?100:10,background:e=>QL.primaryFixedDim,secondBackground:e=>QL.primaryFixed,contrastCurve:new BL(4.5,7,11,21)}),QL.onPrimaryFixedVariant=AL.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>JL(e)?90:30,background:e=>QL.primaryFixedDim,secondBackground:e=>QL.primaryFixed,contrastCurve:new BL(3,4.5,7,11)}),QL.secondaryFixed=AL.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>JL(e)?80:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.secondaryFixed,QL.secondaryFixedDim,10,"lighter",!0)}),QL.secondaryFixedDim=AL.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>JL(e)?70:80,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.secondaryFixed,QL.secondaryFixedDim,10,"lighter",!0)}),QL.onSecondaryFixed=AL.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>QL.secondaryFixedDim,secondBackground:e=>QL.secondaryFixed,contrastCurve:new BL(4.5,7,11,21)}),QL.onSecondaryFixedVariant=AL.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>JL(e)?25:30,background:e=>QL.secondaryFixedDim,secondBackground:e=>QL.secondaryFixed,contrastCurve:new BL(3,4.5,7,11)}),QL.tertiaryFixed=AL.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?40:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.tertiaryFixed,QL.tertiaryFixedDim,10,"lighter",!0)}),QL.tertiaryFixedDim=AL.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?30:80,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.tertiaryFixed,QL.tertiaryFixedDim,10,"lighter",!0)}),QL.onTertiaryFixed=AL.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?100:10,background:e=>QL.tertiaryFixedDim,secondBackground:e=>QL.tertiaryFixed,contrastCurve:new BL(4.5,7,11,21)}),QL.onTertiaryFixedVariant=AL.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?90:30,background:e=>QL.tertiaryFixedDim,secondBackground:e=>QL.tertiaryFixed,contrastCurve:new BL(3,4.5,7,11)});
|
|
363
|
+
function XL(e){return e.variant===qL.FIDELITY||e.variant===qL.CONTENT}function JL(e){return e.variant===qL.MONOCHROME}!function(e){e[e.MONOCHROME=0]="MONOCHROME",e[e.NEUTRAL=1]="NEUTRAL",e[e.TONAL_SPOT=2]="TONAL_SPOT",e[e.VIBRANT=3]="VIBRANT",e[e.EXPRESSIVE=4]="EXPRESSIVE",e[e.FIDELITY=5]="FIDELITY",e[e.CONTENT=6]="CONTENT",e[e.RAINBOW=7]="RAINBOW",e[e.FRUIT_SALAD=8]="FRUIT_SALAD"}(qL||(qL={}));class QL{static highestSurface(e){return e.isDark?QL.surfaceBright:QL.surfaceDim}}QL.contentAccentToneDelta=15,QL.primaryPaletteKeyColor=AL.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone}),QL.secondaryPaletteKeyColor=AL.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone}),QL.tertiaryPaletteKeyColor=AL.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone}),QL.neutralPaletteKeyColor=AL.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone}),QL.neutralVariantPaletteKeyColor=AL.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone}),QL.background=AL.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),QL.onBackground=AL.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>QL.background,contrastCurve:new BL(3,3,4.5,7)}),QL.surface=AL.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),QL.surfaceDim=AL.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:new BL(87,87,80,75).get(e.contrastLevel),isBackground:!0}),QL.surfaceBright=AL.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(24,24,29,34).get(e.contrastLevel):98,isBackground:!0}),QL.surfaceContainerLowest=AL.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(4,4,2,0).get(e.contrastLevel):100,isBackground:!0}),QL.surfaceContainerLow=AL.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(10,10,11,12).get(e.contrastLevel):new BL(96,96,96,95).get(e.contrastLevel),isBackground:!0}),QL.surfaceContainer=AL.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(12,12,16,20).get(e.contrastLevel):new BL(94,94,92,90).get(e.contrastLevel),isBackground:!0}),QL.surfaceContainerHigh=AL.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(17,17,21,25).get(e.contrastLevel):new BL(92,92,88,85).get(e.contrastLevel),isBackground:!0}),QL.surfaceContainerHighest=AL.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new BL(22,22,26,30).get(e.contrastLevel):new BL(90,90,84,80).get(e.contrastLevel),isBackground:!0}),QL.onSurface=AL.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>QL.highestSurface(e),contrastCurve:new BL(4.5,7,11,21)}),QL.surfaceVariant=AL.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0}),QL.onSurfaceVariant=AL.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,11)}),QL.inverseSurface=AL.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20}),QL.inverseOnSurface=AL.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>QL.inverseSurface,contrastCurve:new BL(4.5,7,11,21)}),QL.outline=AL.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>QL.highestSurface(e),contrastCurve:new BL(1.5,3,4.5,7)}),QL.outlineVariant=AL.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5)}),QL.shadow=AL.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0}),QL.scrim=AL.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0}),QL.surfaceTint=AL.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0}),QL.primary=AL.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>JL(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.primaryContainer,QL.primary,10,"nearer",!1)}),QL.onPrimary=AL.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>JL(e)?e.isDark?10:90:e.isDark?20:100,background:e=>QL.primary,contrastCurve:new BL(4.5,7,11,21)}),QL.primaryContainer=AL.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>XL(e)?e.sourceColorHct.tone:JL(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.primaryContainer,QL.primary,10,"nearer",!1)}),QL.onPrimaryContainer=AL.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>XL(e)?AL.foregroundTone(QL.primaryContainer.tone(e),4.5):JL(e)?e.isDark?0:100:e.isDark?90:30,background:e=>QL.primaryContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.inversePrimary=AL.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>QL.inverseSurface,contrastCurve:new BL(3,4.5,7,7)}),QL.secondary=AL.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.secondaryContainer,QL.secondary,10,"nearer",!1)}),QL.onSecondary=AL.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>JL(e)?e.isDark?10:100:e.isDark?20:100,background:e=>QL.secondary,contrastCurve:new BL(4.5,7,11,21)}),QL.secondaryContainer=AL.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;return JL(e)?e.isDark?30:85:XL(e)?function(e,t,a,o){let i=a,r=IL.from(e,t,a);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){i+=o?-1:1;const s=IL.from(e,t,i);if(a>s.chroma)break;if(Math.abs(s.chroma-t)<.4)break;Math.abs(s.chroma-t)<Math.abs(r.chroma-t)&&(r=s),a=Math.max(a,s.chroma)}}return i}(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark):t},isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.secondaryContainer,QL.secondary,10,"nearer",!1)}),QL.onSecondaryContainer=AL.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>JL(e)?e.isDark?90:10:XL(e)?AL.foregroundTone(QL.secondaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>QL.secondaryContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.tertiary=AL.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.tertiaryContainer,QL.tertiary,10,"nearer",!1)}),QL.onTertiary=AL.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?e.isDark?10:90:e.isDark?20:100,background:e=>QL.tertiary,contrastCurve:new BL(4.5,7,11,21)}),QL.tertiaryContainer=AL.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(JL(e))return e.isDark?60:49;if(!XL(e))return e.isDark?30:90;const t=e.tertiaryPalette.getHct(e.sourceColorHct.tone);return DL.fixIfDisliked(t).tone},isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.tertiaryContainer,QL.tertiary,10,"nearer",!1)}),QL.onTertiaryContainer=AL.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?e.isDark?0:100:XL(e)?AL.foregroundTone(QL.tertiaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>QL.tertiaryContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.error=AL.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(3,4.5,7,7),toneDeltaPair:e=>new FL(QL.errorContainer,QL.error,10,"nearer",!1)}),QL.onError=AL.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>QL.error,contrastCurve:new BL(4.5,7,11,21)}),QL.errorContainer=AL.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.errorContainer,QL.error,10,"nearer",!1)}),QL.onErrorContainer=AL.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>JL(e)?e.isDark?90:10:e.isDark?90:30,background:e=>QL.errorContainer,contrastCurve:new BL(3,4.5,7,11)}),QL.primaryFixed=AL.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>JL(e)?40:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.primaryFixed,QL.primaryFixedDim,10,"lighter",!0)}),QL.primaryFixedDim=AL.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>JL(e)?30:80,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.primaryFixed,QL.primaryFixedDim,10,"lighter",!0)}),QL.onPrimaryFixed=AL.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>JL(e)?100:10,background:e=>QL.primaryFixedDim,secondBackground:e=>QL.primaryFixed,contrastCurve:new BL(4.5,7,11,21)}),QL.onPrimaryFixedVariant=AL.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>JL(e)?90:30,background:e=>QL.primaryFixedDim,secondBackground:e=>QL.primaryFixed,contrastCurve:new BL(3,4.5,7,11)}),QL.secondaryFixed=AL.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>JL(e)?80:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.secondaryFixed,QL.secondaryFixedDim,10,"lighter",!0)}),QL.secondaryFixedDim=AL.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>JL(e)?70:80,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.secondaryFixed,QL.secondaryFixedDim,10,"lighter",!0)}),QL.onSecondaryFixed=AL.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>QL.secondaryFixedDim,secondBackground:e=>QL.secondaryFixed,contrastCurve:new BL(4.5,7,11,21)}),QL.onSecondaryFixedVariant=AL.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>JL(e)?25:30,background:e=>QL.secondaryFixedDim,secondBackground:e=>QL.secondaryFixed,contrastCurve:new BL(3,4.5,7,11)}),QL.tertiaryFixed=AL.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?40:90,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.tertiaryFixed,QL.tertiaryFixedDim,10,"lighter",!0)}),QL.tertiaryFixedDim=AL.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?30:80,isBackground:!0,background:e=>QL.highestSurface(e),contrastCurve:new BL(1,1,3,4.5),toneDeltaPair:e=>new FL(QL.tertiaryFixed,QL.tertiaryFixedDim,10,"lighter",!0)}),QL.onTertiaryFixed=AL.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?100:10,background:e=>QL.tertiaryFixedDim,secondBackground:e=>QL.tertiaryFixed,contrastCurve:new BL(4.5,7,11,21)}),QL.onTertiaryFixedVariant=AL.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>JL(e)?90:30,background:e=>QL.tertiaryFixedDim,secondBackground:e=>QL.tertiaryFixed,contrastCurve:new BL(3,4.5,7,11)});
|
|
364
364
|
/**
|
|
365
365
|
* @license
|
|
366
366
|
* Copyright 2022 Google LLC
|
|
@@ -409,7 +409,7 @@ class eE{constructor(e){this.sourceColorArgb=e.sourceColorArgb,this.variant=e.va
|
|
|
409
409
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
410
410
|
* See the License for the specific language governing permissions and
|
|
411
411
|
* limitations under the License.
|
|
412
|
-
*/class aE extends eE{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:
|
|
412
|
+
*/class aE extends eE{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:qL.EXPRESSIVE,contrastLevel:a,isDark:t,primaryPalette:HL.fromHueAndChroma(uL(e.hue+240),40),secondaryPalette:HL.fromHueAndChroma(eE.getRotatedHue(e,aE.hues,aE.secondaryRotations),24),tertiaryPalette:HL.fromHueAndChroma(eE.getRotatedHue(e,aE.hues,aE.tertiaryRotations),32),neutralPalette:HL.fromHueAndChroma(e.hue+15,8),neutralVariantPalette:HL.fromHueAndChroma(e.hue+15,12)})}}aE.hues=[0,21,51,121,151,191,271,321,360],aE.secondaryRotations=[45,95,45,20,45,90,45,45,45],aE.tertiaryRotations=[120,120,20,45,20,15,20,120,120];
|
|
413
413
|
/**
|
|
414
414
|
* @license
|
|
415
415
|
* Copyright 2022 Google LLC
|
|
@@ -426,7 +426,7 @@ class eE{constructor(e){this.sourceColorArgb=e.sourceColorArgb,this.variant=e.va
|
|
|
426
426
|
* See the License for the specific language governing permissions and
|
|
427
427
|
* limitations under the License.
|
|
428
428
|
*/
|
|
429
|
-
class oE extends eE{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:
|
|
429
|
+
class oE extends eE{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:qL.VIBRANT,contrastLevel:a,isDark:t,primaryPalette:HL.fromHueAndChroma(e.hue,200),secondaryPalette:HL.fromHueAndChroma(eE.getRotatedHue(e,oE.hues,oE.secondaryRotations),24),tertiaryPalette:HL.fromHueAndChroma(eE.getRotatedHue(e,oE.hues,oE.tertiaryRotations),32),neutralPalette:HL.fromHueAndChroma(e.hue,10),neutralVariantPalette:HL.fromHueAndChroma(e.hue,12)})}}
|
|
430
430
|
/**
|
|
431
431
|
* @license
|
|
432
432
|
* Copyright 2021 Google LLC
|
|
@@ -443,5 +443,5 @@ class oE extends eE{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:
|
|
|
443
443
|
* See the License for the specific language governing permissions and
|
|
444
444
|
* limitations under the License.
|
|
445
445
|
*/
|
|
446
|
-
function iE(e){const t=xL(e),a=wL(e),o=kL(e),i=[t.toString(16),a.toString(16),o.toString(16)];for(const[e,t]of i.entries())1===t.length&&(i[e]="0"+t);return"#"+i.join("")}function rE(e){return parseInt(e,16)}oE.hues=[0,41,61,101,131,181,251,301,360],oE.secondaryRotations=[18,15,10,12,15,18,15,12,12],oE.tertiaryRotations=[35,30,20,25,30,35,30,25,25];let sE=class extends r{constructor(){super(...arguments),qL.add(this),RL.set(this,new CSSStyleSheet),UL.set(this,!1),NL.set(this,void 0),jL.set(this,void 0),YL.set(this,void 0),KL.set(this,()=>e(this,qL,"m",ZL).call(this,!0)),this.color="#6750A4",this.scheme="auto",this.contrast="standard",this.strongFocus=!1,this.density=0,this.motion="standard"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return e(this,jL,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,RL,"f"))&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,e(this,RL,"f")]),a(this,NL,matchMedia("(prefers-color-scheme: light)"),"f"),a(this,jL,matchMedia("(prefers-color-scheme: dark)"),"f"),a(this,YL,matchMedia("(forced-colors: active)"),"f"),[e(this,NL,"f"),e(this,jL,"f"),e(this,YL,"f")].forEach(t=>t.addEventListener("change",e(this,KL,"f")))}disconnectedCallback(){super.disconnectedCallback(),[e(this,NL,"f"),e(this,jL,"f"),e(this,YL,"f")].forEach(t=>t?.removeEventListener("change",e(this,KL,"f"))),a(this,NL,a(this,jL,a(this,YL,void 0,"f"),"f"),"f")}updated(t){super.updated(t),e(this,qL,"m",ZL).call(this,e(this,UL,"f")&&["color","scheme","contrast"].some(e=>t.has(e)))}firstUpdated(e){super.firstUpdated(e),a(this,UL,!0,"f")}render(){return s`<slot></slot>`}};RL=new WeakMap,UL=new WeakMap,NL=new WeakMap,jL=new WeakMap,YL=new WeakMap,KL=new WeakMap,qL=new WeakSet,ZL=function(t){const a=function(e){const t=3===(e=e.replace("#","")).length,a=6===e.length,o=8===e.length;if(!t&&!a&&!o)throw new Error("unexpected hex "+e);let i=0,r=0,s=0;return t?(i=rE(e.slice(0,1).repeat(2)),r=rE(e.slice(1,2).repeat(2)),s=rE(e.slice(2,3).repeat(2))):a?(i=rE(e.slice(0,2)),r=rE(e.slice(2,4)),s=rE(e.slice(4,6))):o&&(i=rE(e.slice(2,4)),r=rE(e.slice(4,6)),s=rE(e.slice(6,8))),(255<<24|(255&i)<<16|(255&r)<<8|255&s)>>>0}(this.color),o=tE.of(a),i=new eE({sourceColorArgb:a,variant:1,contrastLevel:e(this,qL,"m",GL).call(this),isDark:this.isDark,primaryPalette:o.a1,secondaryPalette:o.a2,tertiaryPalette:o.a3,neutralPalette:o.n1,neutralVariantPalette:o.n2});let r="";for(const e in QL)if(!e.endsWith("PaletteKeyColor")){const t=QL[e];t instanceof AL&&(r+=`--md-sys-color-${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}: ${iE(t.getArgb(i))};`)}if("expressive"===this.motion&&(r+="--md-sys-motion-spring-fast-spatial: 350ms cubic-bezier(0.42, 1.67, 0.21, 0.90);",r+="--md-sys-motion-spring-default-spatial: 500ms cubic-bezier(0.38, 1.21, 0.22, 1.00);",r+="--md-sys-motion-spring-slow-spatial: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);",r+="--md-sys-motion-spring-fast-effects: 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00);",r+="--md-sys-motion-spring-default-effects: 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00);",r+="--md-sys-motion-spring-slow-effects: 300ms cubic-bezier(0.34, 0.88, 0.34, 1.00);"),r+=`--md-sys-density-scale: ${this.density};`,r+=`--m3e-scrollbar-thumb-color: ${iE(i.neutralPalette.tone(60))};`,r+=`--m3e-focus-ring-visibility: ${this.strongFocus?"visible":"hidden"};`,e(this,RL,"f").replaceSync(`:host { ${r} }`),this.parentElement instanceof HTMLBodyElement){const t=getComputedStyle(this);switch(this.scheme){case"light":document.documentElement.style.colorScheme="light";break;case"dark":document.documentElement.style.colorScheme="dark";break;default:switch(document.documentElement.style.colorScheme){case"light":case"dark":document.documentElement.style.colorScheme="light dark"}}e(this,YL,"f")?.matches?this.parentElement.style.backgroundColor=this.parentElement.style.color=this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor="":(this.parentElement.style.backgroundColor=t.getPropertyValue("--md-sys-color-background"),this.parentElement.style.color=t.getPropertyValue("--md-sys-color-on-background"),this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor=`${t.getPropertyValue("--m3e-scrollbar-thumb-color")} ${t.getPropertyValue("--m3e-scrollbar-track-color")}`)}e(this,UL,"f")&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&document.body.offsetHeight},GL=function(){switch(this.contrast){case"high":return 1;case"medium":return.5;default:return 0}},sE.styles=i`:host { display: contents; font-size: ${v.typescale.standard.body.large.fontSize}; font-weight: ${v.typescale.standard.body.large.fontWeight}; line-height: ${v.typescale.standard.body.large.lineHeight}; letter-spacing: ${v.typescale.standard.body.large.tracking}; }`,t([m()],sE.prototype,"color",void 0),t([m()],sE.prototype,"scheme",void 0),t([m()],sE.prototype,"contrast",void 0),t([m({attribute:"strong-focus",type:Boolean})],sE.prototype,"strongFocus",void 0),t([m({type:Number})],sE.prototype,"density",void 0),t([m()],sE.prototype,"motion",void 0),sE=t([$("m3e-theme")],sE);let nE=class extends(ue(Y(P(f(r,"link"))))){update(e){super.update(e),e.has("selected")&&(this.ariaSelected=null,this.ariaCurrent=this.selected?"true":null),e.has("node")&&(this.node?this._base?.style.setProperty("--_level",""+(this.node.level-1)):this._base?.style.removeProperty("--_level"))}firstUpdated(e){super.firstUpdated(e),this._stateLayer?.attach(this)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><div class="base"><slot></slot></div>`}};var lE,cE,dE,hE,mE,pE,uE,vE,bE,fE,gE,yE,$E;nE.styles=i`:host { display: inline-block; position: relative; user-select: none; outline: none; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); padding-block: var(--m3e-toc-item-padding-block, 0.5rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { padding-inline-start: calc( var(--m3e-toc-item-padding, 1rem) + calc(var(--m3e-toc-item-inset, 0.75rem) * var(--_level, 0)) ); padding-inline-end: var(--m3e-toc-item-padding, 1rem); transition: ${o(`color var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1}) ${v.motion.easing.standard}`)}; } :host(:not([selected])) { font-size: var(--m3e-toc-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-toc-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-toc-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-tracking, ${v.typescale.standard.body.large.tracking}); color: var(--m3e-toc-item-color, ${v.color.onSurfaceVariant}); } :host([selected]) { font-size: var(--m3e-toc-item-selected-font-size, ${v.typescale.emphasized.body.large.fontSize}); font-weight: var(--m3e-toc-item-selected-font-weight, ${v.typescale.emphasized.body.large.fontWeight}); line-height: var(--m3e-toc-item-selected-line-height, ${v.typescale.emphasized.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-selected-tracking, ${v.typescale.emphasized.body.large.tracking}); color: var(--m3e-toc-item-selected-color, ${v.color.onSecondaryContainer}); } .base { justify-content: unset; } .state-layer { --m3e-state-layer-focus-opacity: 0; } @media (prefers-reduced-motion) { .base { transition: none; } }`,t([h(".base")],nE.prototype,"_base",void 0),t([h(".state-layer")],nE.prototype,"_stateLayer",void 0),t([u()],nE.prototype,"node",void 0),nE=t([$("m3e-toc-item")],nE);class xE{static generate(t,a=6){let o=6;const i=new Array;t.querySelectorAll("h1:not([m3e-toc-ignore]),h2:not([m3e-toc-ignore]),h3:not([m3e-toc-ignore]),h4:not([m3e-toc-ignore]),h5:not([m3e-toc-ignore]),h6:not([m3e-toc-ignore]),m3e-heading[level]:not([m3e-toc-ignore])").forEach(t=>{const a=e(lE,lE,"m",cE).call(lE,t);o=Math.min(a,o),i.push({id:t.id||_e(),element:t,level:a,label:me(t,!0),nodes:new Array})});for(let e=o+a-1;e>o;e--)for(let t=0;t<i.length;t++){const a=i[t];if(a.level===e)for(let o=t;o>=0;o--){const t=i[o];if(t.level<e){t.nodes.push(a);break}}}return i.forEach(e=>e.level-=o-1),i.filter(e=>1===e.level)}}lE=xE,cE=function(e){return e.tagName.startsWith("H")?parseInt(e.tagName.substring(1)):parseInt(e.getAttribute("level")??"0")};let wE=class extends(b(P(f(r,"navigation")))){constructor(){super(...arguments),dE.add(this),this._toc=[],hE.set(this,!1),mE.set(this,(new Ae).withHomeAndEnd().withVerticalOrientation().disableRovingTabIndex().onSelectedItemsChange(()=>{if(this._activeIndicator){const t=e(this,mE,"f").selectedItems[0];t?(_(t,this,{block:"nearest",behavior:"smooth"}),this._activeIndicator.style.top=`${t.offsetTop}px`,this._activeIndicator.style.height=`${t.clientHeight}px`,this._activeIndicator.style.visibility=0==t.clientHeight?"hidden":"",O(this,"-no-animate")&&setTimeout(()=>k(this,"-no-animate",!1),40)):(k(this,"-no-animate",!0),this._activeIndicator.style.top="0px",this._activeIndicator.style.height="0px",this._activeIndicator.style.visibility="hidden")}})),pE.set(this,new Le(this,{target:null,callback:t=>{if(!this.control||e(this,hE,"f"))return;const a=this.control.scrollTop;let o=null,i=Number.POSITIVE_INFINITY;if(t.filter(e=>e.isIntersecting).map(e=>e.target).forEach(e=>{const t=e.offsetTop,r=Math.abs(t-a);r<i&&(i=r,o=e)}),o){const t=e(this,mE,"f").items.find(e=>e.node?.element===o);t&&e(this,mE,"f").select(t)}}})),uE.set(this,new ve(this,{target:null,callback:()=>a(this,hE,!1,"f"),debounce:!0})),vE.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>this._updateToc()})),this.maxDepth=2}attach(t){super.attach(t),e(this,vE,"f").observe(t),e(this,uE,"f").observe(t),e(this,dE,"m",$E).call(this)}detach(){this.control&&(e(this,vE,"f").unobserve(this.control),e(this,uE,"f").unobserve(this.control)),super.detach(),e(this,dE,"m",$E).call(this)}willUpdate(t){super.willUpdate(t),t.has("maxDepth")&&e(this,dE,"m",$E).call(this)}updated(t){if(super.updated(t),t.has("_toc")){const{added:t,removed:a}=e(this,mE,"f").setItems([...this.shadowRoot?.querySelectorAll("m3e-toc-item")??[]]);e(this,mE,"f").activeItem||(k(this,"-no-animate",!0),e(this,mE,"f").updateActiveItem(t.find(e=>!e.disabled)));for(const a of t)a.node&&e(this,pE,"f").observe(a.node.element);for(const t of a)t.node&&e(this,pE,"f").unobserve(t.node.element)}}render(){return s`<div class="header"><div class="overline"><slot name="overline" @slotchange="${e(this,dE,"m",fE)}"></slot></div><div class="title"><slot name="title" @slotchange="${e(this,dE,"m",gE)}"></slot></div></div><slot></slot><ul class="list">${this._toc.map(t=>e(this,dE,"m",bE).call(this,t))}</ul><div class="active-indicator" aria-hidden="true"></div>`}_updateToc(){e(this,dE,"m",$E).call(this)}};var kE,CE,SE,_E,LE,EE;hE=new WeakMap,mE=new WeakMap,pE=new WeakMap,uE=new WeakMap,vE=new WeakMap,dE=new WeakSet,bE=function t(a){return s`<li><m3e-toc-item tabindex="-1" .node="${a}" @click="${e(this,dE,"m",yE)}">${a.label}</m3e-toc-item>${0==a.nodes.length?n:s`<ul>${a.nodes.map(a=>e(this,dE,"m",t).call(this,a))}</ul>`}</li>`},fE=function(e){k(this,"-with-overline",g(e.target))},gE=function(e){k(this,"-with-title",g(e.target))},yE=function(t){t.target instanceof nE&&!t.target.disabled&&t.target.node?.element&&(a(this,hE,!0,"f"),t.target.node.element.scrollIntoView({block:"start",behavior:"smooth"}),e(this,mE,"f").updateActiveItem(t.target),e(this,mE,"f").select(t.target))},$E=function(){this._toc=this.control?xE.generate(this.control,Math.max(1,Math.min(this.maxDepth,6))):[]},wE.styles=i`:host { display: inline-block; position: relative; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; width: var(--m3e-toc-width, 9.75rem); } ul { list-style: none; padding-inline-start: unset; margin-block-start: unset; margin-block-end: unset; } ul, li { display: flex; flex-direction: column; align-items: stretch; } m3e-toc-item { flex: none; } .active-indicator { position: absolute; pointer-events: none; box-sizing: border-box; left: 0; right: 0; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); border: 1px solid var(--m3e-toc-active-indicator-color, ${v.color.outline}); transition: ${o(`visibility var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n height var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n top var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard}`)}; } .header { display: flex; flex-direction: column; align-items: stretch; padding-inline-start: var(--m3e-toc-item-padding, 1rem); padding-block-end: var(--m3e-toc-header-space, 0.5rem); row-gap: var(--m3e-toc-header-space, 0.5rem); } .overline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host(:not(:state(-with-overline))) .overline, :host(:not(:state(-with-title))) .title, :host(:not(:state(-with-overline)):not(:state(-with-title))) .header { display: none; } ::slotted([slot="overline"]) { font-size: var(--m3e-toc-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-toc-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-toc-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-toc-overline-tracking, ${v.typescale.standard.label.small.tracking}); color: var(--m3e-toc-overline-color, ${v.color.onSurfaceVariant}); } ::slotted([slot="title"]) { font-size: var(--m3e-toc-title-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-toc-title-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-toc-title-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-toc-title-tracking, ${v.typescale.standard.headline.small.tracking}); color: var(--m3e-toc-title-color, ${v.color.onSurface}); } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } }`,t([u()],wE.prototype,"_toc",void 0),t([h(".active-indicator")],wE.prototype,"_activeIndicator",void 0),t([m({attribute:"max-depth",type:Number})],wE.prototype,"maxDepth",void 0),t([y(40)],wE.prototype,"_updateToc",null),wE=t([$("m3e-toc")],wE);let zE=class extends(pe(f(r,"toolbar"))){constructor(){super(...arguments),kE.add(this),CE.set(this,void 0),SE.set(this,(new Oe).withHomeAndEnd().withDirectionality(qe.current)),this.variant="standard",this.shape="square",this.elevated=!1}connectedCallback(){super.connectedCallback(),a(this,CE,qe.observe(()=>e(this,SE,"f").directionality=qe.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,CE,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(e(this,SE,"f").vertical=this.vertical)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><m3e-elevation class="elevation" level="${this.elevated?3:0}"></m3e-elevation><div class="base"><slot @click="${e(this,kE,"m",EE)}" @keydown="${e(this,kE,"m",LE)}" @slotchange="${e(this,kE,"m",_E)}"></slot></div>`}};CE=new WeakMap,SE=new WeakMap,kE=new WeakSet,_E=function(){const{added:t}=e(this,SE,"f").setItems(Te.findInteractiveElements(this));if(!e(this,SE,"f").activeItem){const a=t.find(e=>!e.hasAttribute("disabled"));a&&e(this,SE,"f").updateActiveItem(a)}},LE=function(t){e(this,SE,"f").onKeyDown(t)},EE=function(t){const a=t.composedPath().find(t=>t instanceof HTMLElement&&e(this,SE,"f").items.includes(t));a&&e(this,SE,"f").updateActiveItem(a)},zE.styles=i`:host { display: inline-block; position: relative; } .base { display: flex; align-items: center; box-sizing: border-box; border-radius: inherit; } :host(:not([vertical])) { height: fit-content; } :host(:not([vertical])) .base { height: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([vertical]) { width: fit-content; } :host([vertical]) .base { width: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); } :host([vertical]) .base { flex-direction: column; justify-content: center; row-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([shape="rounded"]) { border-radius: var(--m3e-toolbar-rounded-shape, ${v.shape.corner.full}); } :host([shape="rounded"]) .base { padding: var(--m3e-toolbar-rounded-padding, 0.5rem); } :host(:not([vertical])[shape="square"]) .base { padding-inline: var(--m3e-toolbar-square-padding, 1rem); } :host([vertical][shape="square"]) .base { padding-block: var(--m3e-toolbar-square-padding, 1rem); } :host([variant="standard"]) .state-layer { background-color: var(--m3e-toolbar-standard-container-color, ${v.color.surfaceContainer}); } :host([variant="standard"]) .base { color: var(--m3e-toolbar-standard-color, ${v.color.onSurface}); } :host([variant="vibrant"]) .state-layer { background-color: var(--m3e-toolbar-vibrant-container-color, ${v.color.primaryContainer}); } :host([variant="vibrant"]) .base { color: var(--m3e-toolbar-vibrant-color, ${v.color.onPrimaryContainer}); } @media (forced-colors: active) { :host([variant]) .state-layer { background-color: Canvas; } :host([variant]) .base { color: CanvasText; outline: 1px solid CanvasText; } }`,t([m({reflect:!0})],zE.prototype,"variant",void 0),t([m({reflect:!0})],zE.prototype,"shape",void 0),t([m({type:Boolean,reflect:!0})],zE.prototype,"elevated",void 0),zE=t([$("m3e-toolbar")],zE);let ME=class extends z{constructor(){super(...arguments),this.disableRestoreFocus=!1}_onClick(){this.closest("m3e-rich-tooltip")?.hide(!this.disableRestoreFocus)}};var TE,PE,IE,WE,DE,AE,HE,OE,BE,FE,VE;t([m({attribute:"disable-restore-focus",type:Boolean})],ME.prototype,"disableRestoreFocus",void 0),ME=t([$("m3e-rich-tooltip-action")],ME);class qE extends(b(M(P(r)))){constructor(){super(...arguments),TE.add(this),IE.set(this,null),WE.set(this,void 0),DE.set(this,!1),AE.set(this,()=>e(this,TE,"m",FE).call(this)),HE.set(this,new ne(this,{target:null,endDelay:200,callback:(t,o)=>{if(!this._isInteractive)if(t){if(o===this._base)return void a(this,DE,!0,"f");this.show()}else e(this,DE,"f")&&o!==this._base||(a(this,DE,!1,"f"),this.hide())}})),OE.set(this,new Ee(this,{target:null,callback:e=>{this._isInteractive||(e?this.show():this.hide())}})),this.disabled=!1,this.touchGestures="auto"}get showDelay(){return e(this,HE,"f").startDelay}set showDelay(t){e(this,HE,"f").startDelay=t}get hideDelay(){return e(this,HE,"f").endDelay}set hideDelay(t){e(this,HE,"f").endDelay=t}get isOpen(){return PE.__openTooltips.includes(this)}get _isInteractive(){return!1}attach(t){super.attach(t),tt.iOS||tt.Android?(e(this,OE,"f").observe(t),e(this,TE,"m",VE).call(this)):e(this,HE,"f").observe(t),t.addEventListener("click",e(this,AE,"f"))}detach(){this.control&&(e(this,HE,"f").unobserve(this.control),e(this,OE,"f").unobserve(this.control),this.control.removeEventListener("click",e(this,AE,"f")),this.hide()),super.detach()}update(e){super.update(e),e.has("disabled")&&this.disabled&&this.hide()}reconnectedCallback(){super.reconnectedCallback(),e(this,TE,"m",BE).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,TE,"m",BE).call(this)}async show(){!this.control||this.disabled||ce(this.control)&&this.control.disabled||(PE.__openTooltips.filter(e=>e!==this).forEach(e=>e.hide()),this._base.showPopover(),a(this,WE,await Re(this._base,this.control,{position:this._anchorPosition,inline:!0,flip:!0,shift:"main",offset:4},(e,t)=>this._updatePosition(this._base,e,t)),"f"),PE.__openTooltips.includes(this)||PE.__openTooltips.push(this))}hide(){this._base.hidePopover(),e(this,WE,"f")?.call(this),a(this,WE,void 0,"f"),e(this,HE,"f").clearDelays(),PE.__openTooltips.includes(this)&&(PE.__openTooltips=PE.__openTooltips.filter(e=>e!==this))}}var RE,UE,NE,jE,YE,KE,ZE,GE,XE,JE,QE,ez,tz,az,oz,iz;PE=qE,IE=new WeakMap,WE=new WeakMap,DE=new WeakMap,AE=new WeakMap,HE=new WeakMap,OE=new WeakMap,TE=new WeakSet,BE=function(){this._base&&e(this,HE,"f").observe(this._base)},FE=function(){this._isInteractive?PE.__openTooltips.includes(this)?this.hide():this.show():this.hide()},VE=function(){if("off"!==this.touchGestures&&e(this,IE,"f")){const t=e(this,IE,"f").style;("on"===this.touchGestures||"INPUT"!==e(this,IE,"f").nodeName&&"TEXTAREA"!==e(this,IE,"f").nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==this.touchGestures&&e(this,IE,"f").draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent"}},qE.__openTooltips=new Array,t([h(".base")],qE.prototype,"_base",void 0),t([m({type:Boolean,reflect:!0})],qE.prototype,"disabled",void 0),t([m({attribute:"show-delay",type:Number})],qE.prototype,"showDelay",null),t([m({attribute:"hide-delay",type:Number})],qE.prototype,"hideDelay",null),t([m({attribute:"touch-gestures"})],qE.prototype,"touchGestures",void 0);let rz=iz=class extends qE{constructor(){super(...arguments),RE.add(this),UE.set(this,iz.__nextId++),NE.set(this,""),jE.set(this,""),YE.set(this,""),KE.set(this,!1),this._hasSubhead=!1,this._interactive=!1,ZE.set(this,t=>e(this,RE,"m",JE).call(this,t)),this.position="below-after"}get _isInteractive(){return this._interactive}get _anchorPosition(){switch(this.position){case"above":return"top";case"above-after":return"rtl"===qe.current?"top-start":"top-end";case"above-before":return"rtl"===qe.current?"top-end":"top-start";case"after":return"rtl"===qe.current?"left":"right";case"before":return"rtl"===qe.current?"right":"left";case"below":return"bottom";case"below-after":return"rtl"===qe.current?"bottom-start":"bottom-end";case"below-before":return"rtl"===qe.current?"bottom-end":"bottom-start"}}render(){const t=this._interactive&&this._hasSubhead?`m3e-rich-tooltip-${e(this,UE,"f")}-subhead`:void 0;return s`<div class="base" popover="manual" role="${je(this._interactive?"dialog":void 0)}" aria-labelledby="${je(t)}" @keydown="${e(this,RE,"m",QE)}" @beforetoggle="${e(this,RE,"m",GE)}" @toggle="${e(this,RE,"m",XE)}"><m3e-elevation level="3"></m3e-elevation><div class="subhead" id="${je(t)}"><slot name="subhead" @slotchange="${e(this,RE,"m",ez)}"></slot></div><div class="content"><slot @slotchange="${e(this,RE,"m",tz)}"></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,RE,"m",az)}"></slot></div></div>`}show(){return this._interactive&&document.addEventListener("click",e(this,ZE,"f")),super.show()}hide(t=!0){this._interactive&&document.removeEventListener("click",e(this,ZE,"f")),super.hide(),t&&this._interactive&&this.control&&Te.isFocusable(this.control)&&this.control.focus()}attach(t){super.attach(t),e(this,RE,"m",oz).call(this),this._interactive&&(t.ariaHasPopup="dialog")}update(t){super.update(t),t.has("_interactive")&&(this.ariaHidden=this._interactive?null:"true",e(this,RE,"m",oz).call(this),this.control&&this._interactive&&(this.control.ariaHasPopup="dialog"))}_updatePosition(e,t,a){this.position.includes("before")&&"before"!==this.position&&("rtl"===qe.current?t+=this.control?.clientWidth??0:t-=this.control?.clientWidth??0),this.position.includes("after")&&"after"!==this.position&&("rtl"===qe.current?t-=this.control?.clientWidth??0:t+=this.control?.clientWidth??0),"rtl"===qe.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};var sz,nz,lz,cz;UE=new WeakMap,NE=new WeakMap,jE=new WeakMap,YE=new WeakMap,KE=new WeakMap,ZE=new WeakMap,RE=new WeakSet,GE=function(e){const t=new ToggleEvent("beforetoggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0,cancelable:e.cancelable});this.dispatchEvent(t)||(e.preventDefault(),this.hide())},XE=function(e){const t=new ToggleEvent("toggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0});this.dispatchEvent(t)},JE=function(e){e.composedPath().some(e=>e instanceof iz||e===this.control)||this.hide()},QE=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.hide())},ez=function(t){this._hasSubhead=g(t.target),this.shadowRoot?.querySelector(".base")?.classList.toggle("has-subhead",this._hasSubhead),a(this,NE,this._hasSubhead?me(t.target,!0):"","f"),e(this,RE,"m",oz).call(this)},tz=function(t){this._interactive=Te.findInteractiveElements(this).length>0,a(this,jE,me(t.target,!0),"f"),e(this,RE,"m",oz).call(this)},az=function(t){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(t.target)),this._interactive=Te.findInteractiveElements(this).length>0,e(this,RE,"m",oz).call(this)},oz=function(){const t=e(this,NE,"f")?`${e(this,NE,"f")}/n${e(this,jE,"f")}`:e(this,jE,"f");this.isConnected&&this.control&&(e(this,YE,"f")&&e(this,KE,"f")&&(Be.removeDescription(this.control,e(this,YE,"f")),a(this,KE,!1,"f")),a(this,YE,t,"f"),e(this,YE,"f")&&!this._interactive&&(Be.describe(this.control,e(this,YE,"f")),a(this,KE,!0,"f")))},rz.styles=i`:host { display: contents; } .base { flex-direction: column; position: absolute; padding: unset; margin: unset; border: unset; padding-block-start: var(--m3e-rich-tooltip-padding-top, 0.75rem); padding-inline: var(--m3e-rich-tooltip-padding-inline, 1rem); max-width: var(--m3e-rich-tooltip-max-width, 20rem); box-sizing: border-box; overflow: visible; border-radius: var(--m3e-rich-tooltip-shape, ${v.shape.corner.medium}); background-color: var(--m3e-rich-tooltip-container-color, ${v.color.surfaceContainer}); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base:not(.has-actions) { padding-block-end: var(--m3e-rich-tooltip-padding-bottom, 0.75rem); } .base::backdrop { background-color: transparent; } .base:popover-open { display: flex; opacity: 1; transform: scale(1); } .base:not(.has-subhead) .subhead, .base:not(.has-actions) .actions { display: none; } .subhead { color: var(--m3e-rich-tooltip-subhead-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-rich-tooltip-subhead-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var( --m3e-rich-tooltip-subhead-font-weight, ${v.typescale.standard.title.small.fontWeight} ); line-height: var( --m3e-rich-tooltip-subhead-line-height, ${v.typescale.standard.title.small.lineHeight} ); letter-spacing: var(--m3e-rich-tooltip-subhead-tracking, ${v.typescale.standard.title.small.tracking}); padding-block-end: var(--m3e-rich-tooltip-subhead-bottom-space, 0.25rem); } .content { color: var(--m3e-rich-tooltip-supporting-text-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-rich-tooltip-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize} ); font-weight: var( --m3e-rich-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-rich-tooltip-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-rich-tooltip-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } .actions { margin-inline: calc( 0px - calc( var(--m3e-rich-tooltip-padding-inline, 1rem) - var(--m3e-rich-tooltip-actions-padding-inline, 0.25rem) ) ); padding-block-start: var(--m3e-rich-tooltip-actions-top-space, 0.75rem); padding-block-end: var(--m3e-rich-tooltip-actions-bottom-space, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,rz.__nextId=0,t([u()],rz.prototype,"_hasSubhead",void 0),t([u()],rz.prototype,"_interactive",void 0),t([m()],rz.prototype,"position",void 0),rz=iz=t([$("m3e-rich-tooltip")],rz);let dz=class extends qE{constructor(){super(...arguments),sz.add(this),nz.set(this,void 0),this.position="below"}get _anchorPosition(){return"above"===this.position?"top":"below"===this.position?"bottom":"before"===this.position?"ltr"===qe.current?"left":"right":"ltr"===qe.current?"right":"left"}attach(t){super.attach(t),e(this,nz,"f")&&Be.describe(t,e(this,nz,"f"))}detach(){this.control&&e(this,nz,"f")&&Be.removeDescription(this.control,e(this,nz,"f")),super.detach()}connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<div class="base" popover="manual" @toggle="${e(this,sz,"m",cz)}"><slot @slotchange="${e(this,sz,"m",lz)}"></slot></div>`}_updatePosition(e,t,a){"rtl"===qe.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};nz=new WeakMap,sz=new WeakSet,lz=function(t){const o=me(t.target,!0);this.isConnected&&this.control?(e(this,nz,"f")&&Be.removeDescription(this.control,e(this,nz,"f")),a(this,nz,o,"f"),e(this,nz,"f")&&Be.describe(this.control,e(this,nz,"f"))):a(this,nz,o,"f")},cz=function(e){if("open"===e.newState){const e=this._base.getBoundingClientRect().height>parseFloat(getComputedStyle(this._base).minHeight);k(this,"-multiline",e)}},dz.styles=i`:host { display: contents; } .base { position: absolute; pointer-events: none; margin: unset; border: unset; word-break: normal; overflow-wrap: anywhere; padding: var(--m3e-tooltip-padding, 0.25rem 0.5rem); min-width: var(--m3e-tooltip-min-width, 2.5rem); max-width: var(--m3e-tooltip-max-width, 12.5rem); min-height: var(--m3e-tooltip-min-height, 1.5rem); max-height: var(--m3e-tooltip-max-height, 40vh); box-sizing: border-box; overflow: hidden; text-align: center; border-radius: var(--m3e-tooltip-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-tooltip-container-color, ${v.color.inverseSurface}); color: var(--m3e-tooltip-supporting-text-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-tooltip-supporting-text-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var( --m3e-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.small.fontWeight} ); line-height: var( --m3e-tooltip-supporting-text-line-height, ${v.typescale.standard.body.small.lineHeight} ); letter-spacing: var( --m3e-tooltip-supporting-text-tracking, ${v.typescale.standard.body.small.tracking} ); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-multiline)) .base { text-align: start; } .base::backdrop { background-color: transparent; } .base:popover-open { display: block; opacity: 1; transform: scale(1); } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,t([m()],dz.prototype,"position",void 0),dz=t([$("m3e-tooltip")],dz);export{fd as ActionElementBase,wn as AnimationLoopController,Ml as AttachInternals,ei as CalendarViewElementBase,Al as Checked,Ol as CheckedIndeterminate,Dc as ConstraintValidation,mc as DesignToken,jl as Dirty,uc as Disabled,yc as DisabledInteractive,Ac as EventAttribute,Kn as FocusController,Oc as Focusable,Mc as FormAssociated,Vc as FormSubmitter,Zn as HoverController,Nc as HtmlFor,Gn as InertController,Xn as IntersectionController,jc as KeyboardClick,kc as Labelled,Gc as LinkButton,Jn as LongPressController,op as M3eAccordionElement,eb as M3eActionListElement,_t as M3eAppBarElement,nr as M3eAssistChipElement,_a as M3eAutocompleteElement,La as M3eAvatarElement,Wa as M3eBadgeElement,Da as M3eBottomSheetActionElement,wo as M3eBottomSheetElement,ko as M3eBottomSheetTriggerElement,Ho as M3eButtonElement,qo as M3eButtonGroupElement,tw as M3eButtonSegmentElement,Mi as M3eCalendarElement,Ni as M3eCardElement,Ji as M3eCheckboxElement,sr as M3eChipElement,lr as M3eChipSetElement,Ay as M3eCircularProgressIndicatorElement,gd as M3eCollapsibleElement,im as M3eDatepickerElement,rm as M3eDatepickerToggleElement,sm as M3eDialogActionElement,ym as M3eDialogElement,$m as M3eDialogTriggerElement,xm as M3eDividerElement,Nm as M3eDrawerContainerElement,Jm as M3eDrawerToggleElement,Wd as M3eElevationElement,Xv as M3eExpandableListItemElement,Pp as M3eExpansionHeaderElement,Np as M3eExpansionPanelElement,tu as M3eFabElement,$u as M3eFabMenuElement,ru as M3eFabMenuItemElement,xu as M3eFabMenuTriggerElement,mr as M3eFilterChipElement,$r as M3eFilterChipSetElement,Nd as M3eFocusRingElement,tv as M3eFormFieldElement,av as M3eHeadingElement,Lv as M3eIconButtonElement,mv as M3eIconElement,Sr as M3eInputChipElement,Gr as M3eInputChipSetElement,Gy as M3eLinearProgressIndicatorElement,ob as M3eListActionElement,Vv as M3eListElement,ib as M3eListItemButtonElement,Dv as M3eListItemElement,hb as M3eListOptionElement,zb as M3eLoadingIndicatorElement,lf as M3eMenuElement,xf as M3eMenuItemCheckboxElement,Ub as M3eMenuItemElement,wf as M3eMenuItemGroupElement,Df as M3eMenuItemRadioElement,Tb as M3eMenuTriggerElement,ci as M3eMonthViewElement,ui as M3eMultiYearViewElement,qf as M3eNavBarElement,jf as M3eNavItemElement,xg as M3eNavMenuElement,rg as M3eNavMenuItemElement,Lg as M3eNavMenuItemGroupElement,Pg as M3eNavRailElement,Ag as M3eNavRailToggleElement,Yg as M3eOptGroupElement,Vg as M3eOptionElement,Jg as M3eOptionPanelElement,ly as M3ePaginatorElement,jd as M3ePseudoCheckboxElement,Yd as M3ePseudoRadioElement,i$ as M3eRadioElement,m$ as M3eRadioGroupElement,ME as M3eRichTooltipActionElement,rz as M3eRichTooltipElement,rh as M3eRippleElement,nh as M3eScrollContainerElement,bx as M3eSearchBarElement,Zx as M3eSearchViewElement,lw as M3eSegmentedButtonElement,Vw as M3eSelectElement,fb as M3eSelectionListElement,Jw as M3eShapeElement,rk as M3eSkeletonElement,mh as M3eSlideElement,hk as M3eSlideGroupElement,Ak as M3eSliderElement,uk as M3eSliderThumbElement,Yk as M3eSnackbar,jk as M3eSnackbarElement,sC as M3eSplitButtonElement,OC as M3eSplitPaneElement,Ch as M3eStateLayerElement,NC as M3eStepElement,BC as M3eStepPanelElement,rS as M3eStepperElement,sS as M3eStepperNextElement,nS as M3eStepperPreviousElement,lS as M3eStepperResetElement,Xr as M3eSuggestionChipElement,T_ as M3eSwitchElement,A_ as M3eTabElement,H_ as M3eTabPanelElement,Y_ as M3eTabsElement,Ih as M3eTextHighlightElement,Wh as M3eTextOverflowElement,dL as M3eTextareaAutosizeElement,sE as M3eThemeElement,wE as M3eTocElement,nE as M3eTocItemElement,zE as M3eToolbarElement,dz as M3eTooltipElement,yi as M3eYearViewElement,Qn as MutationController,el as PressedController,cy as ProgressElementIndicatorBase,Jc as ReadOnly,ed as ReconnectedCallback,ad as Required,id as RequiredConstraintValidation,tl as ResizeController,rd as Role,gl as ScrollController,yl as ScrollLockController,Fl as Selected,iS as StepperButtonElementBase,sd as SuppressInitialAnimation,xE as TocGenerator,qE as TooltipElementBase,Zl as Touched,jn as VelocityTracker,ld as Vertical,Pl as addCustomState,Rl as checkOrSelect,Cn as computeCssSize,Sn as computeLineCount,al as customElement,$l as dateConverter,ol as debounce,Sc as defaultValue,Il as deleteCustomState,Cu as findFormFieldControl,_n as focusWhenReady,Ln as forcedColorsActive,Cc as formValue,An as generateClipPaths,Hn as getTextContent,On as guid,Bn as hasAssignedNodes,Tl as hasCustomState,Sl as hasKeys,Fn as interceptProperty,_l as internals,Ll as isAttachInternalsMixin,Hl as isCheckedIndeterminateMixin,Dl as isCheckedMixin,ql as isCheckedOrSelected,Vl as isCheckedOrSelectedMixin,Pc as isConstraintValidationMixin,Ul as isDirtyMixin,vc as isDisabledInteractiveMixin,pc as isDisabledMixin,_c as isFormAssociatedMixin,ku as isFormFieldControl,Bc as isFormSubmitterMixin,qc as isHtmlForMixin,xc as isLabelledMixin,Kc as isLinkButtonMixin,Xc as isReadOnlyMixin,od as isRequiredConstraintValidationMixin,td as isRequiredMixin,Bl as isSelectedMixin,Yl as isTouchedMixin,nd as isVerticalMixin,Vn as prefersReducedMotion,pv as registerIcon,qn as registerStyleSheet,Yc as renderPseudoLink,Rn as resolveElementById,Un as resolveFragmentUrl,Cl as safeStyleMap,Nn as scrollIntoViewIfNeeded,Wl as setCustomState,xl as spaceSeparatedStringConverter,$c as updateLabels,Tc as validate,Yn as waitForUpgrade};
|
|
446
|
+
function iE(e){const t=xL(e),a=wL(e),o=kL(e),i=[t.toString(16),a.toString(16),o.toString(16)];for(const[e,t]of i.entries())1===t.length&&(i[e]="0"+t);return"#"+i.join("")}function rE(e){return parseInt(e,16)}oE.hues=[0,41,61,101,131,181,251,301,360],oE.secondaryRotations=[18,15,10,12,15,18,15,12,12],oE.tertiaryRotations=[35,30,20,25,30,35,30,25,25];let sE=class extends r{constructor(){super(...arguments),VL.add(this),RL.set(this,new CSSStyleSheet),UL.set(this,!1),NL.set(this,void 0),jL.set(this,void 0),YL.set(this,void 0),KL.set(this,()=>e(this,VL,"m",ZL).call(this,!0)),this.color="#6750A4",this.scheme="auto",this.contrast="standard",this.strongFocus=!1,this.density=0,this.motion="standard"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return e(this,jL,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,RL,"f"))&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,e(this,RL,"f")]),a(this,NL,matchMedia("(prefers-color-scheme: light)"),"f"),a(this,jL,matchMedia("(prefers-color-scheme: dark)"),"f"),a(this,YL,matchMedia("(forced-colors: active)"),"f"),[e(this,NL,"f"),e(this,jL,"f"),e(this,YL,"f")].forEach(t=>t.addEventListener("change",e(this,KL,"f")))}disconnectedCallback(){super.disconnectedCallback(),[e(this,NL,"f"),e(this,jL,"f"),e(this,YL,"f")].forEach(t=>t?.removeEventListener("change",e(this,KL,"f"))),a(this,NL,a(this,jL,a(this,YL,void 0,"f"),"f"),"f")}updated(t){super.updated(t),e(this,VL,"m",ZL).call(this,e(this,UL,"f")&&["color","scheme","contrast"].some(e=>t.has(e)))}firstUpdated(e){super.firstUpdated(e),a(this,UL,!0,"f")}render(){return s`<slot></slot>`}};RL=new WeakMap,UL=new WeakMap,NL=new WeakMap,jL=new WeakMap,YL=new WeakMap,KL=new WeakMap,VL=new WeakSet,ZL=function(t){const a=function(e){const t=3===(e=e.replace("#","")).length,a=6===e.length,o=8===e.length;if(!t&&!a&&!o)throw new Error("unexpected hex "+e);let i=0,r=0,s=0;return t?(i=rE(e.slice(0,1).repeat(2)),r=rE(e.slice(1,2).repeat(2)),s=rE(e.slice(2,3).repeat(2))):a?(i=rE(e.slice(0,2)),r=rE(e.slice(2,4)),s=rE(e.slice(4,6))):o&&(i=rE(e.slice(2,4)),r=rE(e.slice(4,6)),s=rE(e.slice(6,8))),(255<<24|(255&i)<<16|(255&r)<<8|255&s)>>>0}(this.color),o=tE.of(a),i=new eE({sourceColorArgb:a,variant:1,contrastLevel:e(this,VL,"m",GL).call(this),isDark:this.isDark,primaryPalette:o.a1,secondaryPalette:o.a2,tertiaryPalette:o.a3,neutralPalette:o.n1,neutralVariantPalette:o.n2});let r="";for(const e in QL)if(!e.endsWith("PaletteKeyColor")){const t=QL[e];t instanceof AL&&(r+=`--md-sys-color-${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}: ${iE(t.getArgb(i))};`)}if("expressive"===this.motion&&(r+="--md-sys-motion-spring-fast-spatial: 350ms cubic-bezier(0.42, 1.67, 0.21, 0.90);",r+="--md-sys-motion-spring-default-spatial: 500ms cubic-bezier(0.38, 1.21, 0.22, 1.00);",r+="--md-sys-motion-spring-slow-spatial: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);",r+="--md-sys-motion-spring-fast-effects: 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00);",r+="--md-sys-motion-spring-default-effects: 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00);",r+="--md-sys-motion-spring-slow-effects: 300ms cubic-bezier(0.34, 0.88, 0.34, 1.00);"),r+=`--md-sys-density-scale: ${this.density};`,r+=`--m3e-scrollbar-thumb-color: ${iE(i.neutralPalette.tone(60))};`,r+=`--m3e-focus-ring-visibility: ${this.strongFocus?"visible":"hidden"};`,e(this,RL,"f").replaceSync(`:host { ${r} }`),this.parentElement instanceof HTMLBodyElement){const t=getComputedStyle(this);switch(this.scheme){case"light":document.documentElement.style.colorScheme="light";break;case"dark":document.documentElement.style.colorScheme="dark";break;default:switch(document.documentElement.style.colorScheme){case"light":case"dark":document.documentElement.style.colorScheme="light dark"}}e(this,YL,"f")?.matches?this.parentElement.style.backgroundColor=this.parentElement.style.color=this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor="":(this.parentElement.style.backgroundColor=t.getPropertyValue("--md-sys-color-background"),this.parentElement.style.color=t.getPropertyValue("--md-sys-color-on-background"),this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor=`${t.getPropertyValue("--m3e-scrollbar-thumb-color")} ${t.getPropertyValue("--m3e-scrollbar-track-color")}`)}e(this,UL,"f")&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&document.body.offsetHeight},GL=function(){switch(this.contrast){case"high":return 1;case"medium":return.5;default:return 0}},sE.styles=i`:host { display: contents; font-size: ${v.typescale.standard.body.large.fontSize}; font-weight: ${v.typescale.standard.body.large.fontWeight}; line-height: ${v.typescale.standard.body.large.lineHeight}; letter-spacing: ${v.typescale.standard.body.large.tracking}; }`,t([m()],sE.prototype,"color",void 0),t([m()],sE.prototype,"scheme",void 0),t([m()],sE.prototype,"contrast",void 0),t([m({attribute:"strong-focus",type:Boolean})],sE.prototype,"strongFocus",void 0),t([m({type:Number})],sE.prototype,"density",void 0),t([m()],sE.prototype,"motion",void 0),sE=t([$("m3e-theme")],sE);let nE=class extends(ue(Y(P(f(r,"link"))))){update(e){super.update(e),e.has("selected")&&(this.ariaSelected=null,this.ariaCurrent=this.selected?"true":null),e.has("node")&&(this.node?this._base?.style.setProperty("--_level",""+(this.node.level-1)):this._base?.style.removeProperty("--_level"))}firstUpdated(e){super.firstUpdated(e),this._stateLayer?.attach(this)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><div class="base"><slot></slot></div>`}};var lE,cE,dE,hE,mE,pE,uE,vE,bE,fE,gE,yE,$E;nE.styles=i`:host { display: inline-block; position: relative; user-select: none; outline: none; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); padding-block: var(--m3e-toc-item-padding-block, 0.5rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { padding-inline-start: calc( var(--m3e-toc-item-padding, 1rem) + calc(var(--m3e-toc-item-inset, 0.75rem) * var(--_level, 0)) ); padding-inline-end: var(--m3e-toc-item-padding, 1rem); transition: ${o(`color var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1}) ${v.motion.easing.standard}`)}; } :host(:not([selected])) { font-size: var(--m3e-toc-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-toc-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-toc-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-tracking, ${v.typescale.standard.body.large.tracking}); color: var(--m3e-toc-item-color, ${v.color.onSurfaceVariant}); } :host([selected]) { font-size: var(--m3e-toc-item-selected-font-size, ${v.typescale.emphasized.body.large.fontSize}); font-weight: var(--m3e-toc-item-selected-font-weight, ${v.typescale.emphasized.body.large.fontWeight}); line-height: var(--m3e-toc-item-selected-line-height, ${v.typescale.emphasized.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-selected-tracking, ${v.typescale.emphasized.body.large.tracking}); color: var(--m3e-toc-item-selected-color, ${v.color.onSecondaryContainer}); } .base { justify-content: unset; } .state-layer { --m3e-state-layer-focus-opacity: 0; } @media (prefers-reduced-motion) { .base { transition: none; } }`,t([h(".base")],nE.prototype,"_base",void 0),t([h(".state-layer")],nE.prototype,"_stateLayer",void 0),t([u()],nE.prototype,"node",void 0),nE=t([$("m3e-toc-item")],nE);class xE{static generate(t,a=6){let o=6;const i=new Array;t.querySelectorAll("h1:not([m3e-toc-ignore]),h2:not([m3e-toc-ignore]),h3:not([m3e-toc-ignore]),h4:not([m3e-toc-ignore]),h5:not([m3e-toc-ignore]),h6:not([m3e-toc-ignore]),m3e-heading[level]:not([m3e-toc-ignore])").forEach(t=>{const a=e(lE,lE,"m",cE).call(lE,t);o=Math.min(a,o),i.push({id:t.id||_e(),element:t,level:a,label:me(t,!0),nodes:new Array})});for(let e=o+a-1;e>o;e--)for(let t=0;t<i.length;t++){const a=i[t];if(a.level===e)for(let o=t;o>=0;o--){const t=i[o];if(t.level<e){t.nodes.push(a);break}}}return i.forEach(e=>e.level-=o-1),i.filter(e=>1===e.level)}}lE=xE,cE=function(e){return e.tagName.startsWith("H")?parseInt(e.tagName.substring(1)):parseInt(e.getAttribute("level")??"0")};let wE=class extends(b(P(f(r,"navigation")))){constructor(){super(...arguments),dE.add(this),this._toc=[],hE.set(this,!1),mE.set(this,(new Ae).withHomeAndEnd().withVerticalOrientation().disableRovingTabIndex().onSelectedItemsChange(()=>{if(this._activeIndicator){const t=e(this,mE,"f").selectedItems[0];t?(_(t,this,{block:"nearest",behavior:"smooth"}),this._activeIndicator.style.top=`${t.offsetTop}px`,this._activeIndicator.style.height=`${t.clientHeight}px`,this._activeIndicator.style.visibility=0==t.clientHeight?"hidden":"",O(this,"-no-animate")&&setTimeout(()=>k(this,"-no-animate",!1),40)):(k(this,"-no-animate",!0),this._activeIndicator.style.top="0px",this._activeIndicator.style.height="0px",this._activeIndicator.style.visibility="hidden")}})),pE.set(this,new Le(this,{target:null,callback:t=>{if(!this.control||e(this,hE,"f"))return;const a=this.control.scrollTop;let o=null,i=Number.POSITIVE_INFINITY;if(t.filter(e=>e.isIntersecting).map(e=>e.target).forEach(e=>{const t=e.offsetTop,r=Math.abs(t-a);r<i&&(i=r,o=e)}),o){const t=e(this,mE,"f").items.find(e=>e.node?.element===o);t&&e(this,mE,"f").select(t)}}})),uE.set(this,new ve(this,{target:null,callback:()=>a(this,hE,!1,"f"),debounce:!0})),vE.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>this._updateToc()})),this.maxDepth=2}attach(t){super.attach(t),e(this,vE,"f").observe(t),e(this,uE,"f").observe(t),e(this,dE,"m",$E).call(this)}detach(){this.control&&(e(this,vE,"f").unobserve(this.control),e(this,uE,"f").unobserve(this.control)),super.detach(),e(this,dE,"m",$E).call(this)}willUpdate(t){super.willUpdate(t),t.has("maxDepth")&&e(this,dE,"m",$E).call(this)}updated(t){if(super.updated(t),t.has("_toc")){const{added:t,removed:a}=e(this,mE,"f").setItems([...this.shadowRoot?.querySelectorAll("m3e-toc-item")??[]]);e(this,mE,"f").activeItem||(k(this,"-no-animate",!0),e(this,mE,"f").updateActiveItem(t.find(e=>!e.disabled)));for(const a of t)a.node&&e(this,pE,"f").observe(a.node.element);for(const t of a)t.node&&e(this,pE,"f").unobserve(t.node.element)}}render(){return s`<div class="header"><div class="overline"><slot name="overline" @slotchange="${e(this,dE,"m",fE)}"></slot></div><div class="title"><slot name="title" @slotchange="${e(this,dE,"m",gE)}"></slot></div></div><slot></slot><ul class="list">${this._toc.map(t=>e(this,dE,"m",bE).call(this,t))}</ul><div class="active-indicator" aria-hidden="true"></div>`}_updateToc(){e(this,dE,"m",$E).call(this)}};var kE,CE,SE,_E,LE,EE;hE=new WeakMap,mE=new WeakMap,pE=new WeakMap,uE=new WeakMap,vE=new WeakMap,dE=new WeakSet,bE=function t(a){return s`<li><m3e-toc-item tabindex="-1" .node="${a}" @click="${e(this,dE,"m",yE)}">${a.label}</m3e-toc-item>${0==a.nodes.length?n:s`<ul>${a.nodes.map(a=>e(this,dE,"m",t).call(this,a))}</ul>`}</li>`},fE=function(e){k(this,"-with-overline",g(e.target))},gE=function(e){k(this,"-with-title",g(e.target))},yE=function(t){t.target instanceof nE&&!t.target.disabled&&t.target.node?.element&&(a(this,hE,!0,"f"),t.target.node.element.scrollIntoView({block:"start",behavior:"smooth"}),e(this,mE,"f").updateActiveItem(t.target),e(this,mE,"f").select(t.target))},$E=function(){this._toc=this.control?xE.generate(this.control,Math.max(1,Math.min(this.maxDepth,6))):[]},wE.styles=i`:host { display: inline-block; position: relative; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; width: var(--m3e-toc-width, 9.75rem); } ul { list-style: none; padding-inline-start: unset; margin-block-start: unset; margin-block-end: unset; } ul, li { display: flex; flex-direction: column; align-items: stretch; } m3e-toc-item { flex: none; } .active-indicator { position: absolute; pointer-events: none; box-sizing: border-box; left: 0; right: 0; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); border: 1px solid var(--m3e-toc-active-indicator-color, ${v.color.outline}); transition: ${o(`visibility var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n height var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n top var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard}`)}; } .header { display: flex; flex-direction: column; align-items: stretch; padding-inline-start: var(--m3e-toc-item-padding, 1rem); padding-block-end: var(--m3e-toc-header-space, 0.5rem); row-gap: var(--m3e-toc-header-space, 0.5rem); } .overline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host(:not(:state(-with-overline))) .overline, :host(:not(:state(-with-title))) .title, :host(:not(:state(-with-overline)):not(:state(-with-title))) .header { display: none; } ::slotted([slot="overline"]) { font-size: var(--m3e-toc-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-toc-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-toc-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-toc-overline-tracking, ${v.typescale.standard.label.small.tracking}); color: var(--m3e-toc-overline-color, ${v.color.onSurfaceVariant}); } ::slotted([slot="title"]) { font-size: var(--m3e-toc-title-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-toc-title-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-toc-title-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-toc-title-tracking, ${v.typescale.standard.headline.small.tracking}); color: var(--m3e-toc-title-color, ${v.color.onSurface}); } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } }`,t([u()],wE.prototype,"_toc",void 0),t([h(".active-indicator")],wE.prototype,"_activeIndicator",void 0),t([m({attribute:"max-depth",type:Number})],wE.prototype,"maxDepth",void 0),t([y(40)],wE.prototype,"_updateToc",null),wE=t([$("m3e-toc")],wE);let zE=class extends(pe(f(r,"toolbar"))){constructor(){super(...arguments),kE.add(this),CE.set(this,void 0),SE.set(this,(new Oe).withHomeAndEnd().withDirectionality(Ve.current)),this.variant="standard",this.shape="square",this.elevated=!1}connectedCallback(){super.connectedCallback(),a(this,CE,Ve.observe(()=>e(this,SE,"f").directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,CE,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(e(this,SE,"f").vertical=this.vertical)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><m3e-elevation class="elevation" level="${this.elevated?3:0}"></m3e-elevation><div class="base"><slot @click="${e(this,kE,"m",EE)}" @keydown="${e(this,kE,"m",LE)}" @slotchange="${e(this,kE,"m",_E)}"></slot></div>`}};CE=new WeakMap,SE=new WeakMap,kE=new WeakSet,_E=function(){const{added:t}=e(this,SE,"f").setItems(Te.findInteractiveElements(this));if(!e(this,SE,"f").activeItem){const a=t.find(e=>!e.hasAttribute("disabled"));a&&e(this,SE,"f").updateActiveItem(a)}},LE=function(t){e(this,SE,"f").onKeyDown(t)},EE=function(t){const a=t.composedPath().find(t=>t instanceof HTMLElement&&e(this,SE,"f").items.includes(t));a&&e(this,SE,"f").updateActiveItem(a)},zE.styles=i`:host { display: inline-block; position: relative; } .base { display: flex; align-items: center; box-sizing: border-box; border-radius: inherit; } :host(:not([vertical])) { height: fit-content; } :host(:not([vertical])) .base { height: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([vertical]) { width: fit-content; } :host([vertical]) .base { width: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); } :host([vertical]) .base { flex-direction: column; justify-content: center; row-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([shape="rounded"]) { border-radius: var(--m3e-toolbar-rounded-shape, ${v.shape.corner.full}); } :host([shape="rounded"]) .base { padding: var(--m3e-toolbar-rounded-padding, 0.5rem); } :host(:not([vertical])[shape="square"]) .base { padding-inline: var(--m3e-toolbar-square-padding, 1rem); } :host([vertical][shape="square"]) .base { padding-block: var(--m3e-toolbar-square-padding, 1rem); } :host([variant="standard"]) .state-layer { background-color: var(--m3e-toolbar-standard-container-color, ${v.color.surfaceContainer}); } :host([variant="standard"]) .base { color: var(--m3e-toolbar-standard-color, ${v.color.onSurface}); } :host([variant="vibrant"]) .state-layer { background-color: var(--m3e-toolbar-vibrant-container-color, ${v.color.primaryContainer}); } :host([variant="vibrant"]) .base { color: var(--m3e-toolbar-vibrant-color, ${v.color.onPrimaryContainer}); } @media (forced-colors: active) { :host([variant]) .state-layer { background-color: Canvas; } :host([variant]) .base { color: CanvasText; outline: 1px solid CanvasText; } }`,t([m({reflect:!0})],zE.prototype,"variant",void 0),t([m({reflect:!0})],zE.prototype,"shape",void 0),t([m({type:Boolean,reflect:!0})],zE.prototype,"elevated",void 0),zE=t([$("m3e-toolbar")],zE);let ME=class extends z{constructor(){super(...arguments),this.disableRestoreFocus=!1}_onClick(){this.closest("m3e-rich-tooltip")?.hide(!this.disableRestoreFocus)}};var TE,PE,IE,WE,DE,AE,HE,OE,BE,FE,qE;t([m({attribute:"disable-restore-focus",type:Boolean})],ME.prototype,"disableRestoreFocus",void 0),ME=t([$("m3e-rich-tooltip-action")],ME);class VE extends(b(M(P(r)))){constructor(){super(...arguments),TE.add(this),IE.set(this,null),WE.set(this,void 0),DE.set(this,!1),AE.set(this,()=>e(this,TE,"m",FE).call(this)),HE.set(this,new ne(this,{target:null,endDelay:200,callback:(t,o)=>{if(!this._isInteractive)if(t){if(o===this._base)return void a(this,DE,!0,"f");this.show()}else e(this,DE,"f")&&o!==this._base||(a(this,DE,!1,"f"),this.hide())}})),OE.set(this,new Ee(this,{target:null,callback:e=>{this._isInteractive||(e?this.show():this.hide())}})),this.disabled=!1,this.touchGestures="auto"}get showDelay(){return e(this,HE,"f").startDelay}set showDelay(t){e(this,HE,"f").startDelay=t}get hideDelay(){return e(this,HE,"f").endDelay}set hideDelay(t){e(this,HE,"f").endDelay=t}get isOpen(){return PE.__openTooltips.includes(this)}get _isInteractive(){return!1}attach(t){super.attach(t),tt.iOS||tt.Android?(e(this,OE,"f").observe(t),e(this,TE,"m",qE).call(this)):e(this,HE,"f").observe(t),t.addEventListener("click",e(this,AE,"f"))}detach(){this.control&&(e(this,HE,"f").unobserve(this.control),e(this,OE,"f").unobserve(this.control),this.control.removeEventListener("click",e(this,AE,"f")),this.hide()),super.detach()}update(e){super.update(e),e.has("disabled")&&this.disabled&&this.hide()}reconnectedCallback(){super.reconnectedCallback(),e(this,TE,"m",BE).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,TE,"m",BE).call(this)}async show(){!this.control||this.disabled||ce(this.control)&&this.control.disabled||(PE.__openTooltips.filter(e=>e!==this).forEach(e=>e.hide()),this._base.showPopover(),a(this,WE,await Re(this._base,this.control,{position:this._anchorPosition,inline:!0,flip:!0,shift:"main",offset:4},(e,t)=>this._updatePosition(this._base,e,t)),"f"),PE.__openTooltips.includes(this)||PE.__openTooltips.push(this))}hide(){this._base.hidePopover(),e(this,WE,"f")?.call(this),a(this,WE,void 0,"f"),e(this,HE,"f").clearDelays(),PE.__openTooltips.includes(this)&&(PE.__openTooltips=PE.__openTooltips.filter(e=>e!==this))}}var RE,UE,NE,jE,YE,KE,ZE,GE,XE,JE,QE,ez,tz,az,oz,iz;PE=VE,IE=new WeakMap,WE=new WeakMap,DE=new WeakMap,AE=new WeakMap,HE=new WeakMap,OE=new WeakMap,TE=new WeakSet,BE=function(){this._base&&e(this,HE,"f").observe(this._base)},FE=function(){this._isInteractive?PE.__openTooltips.includes(this)?this.hide():this.show():this.hide()},qE=function(){if("off"!==this.touchGestures&&e(this,IE,"f")){const t=e(this,IE,"f").style;("on"===this.touchGestures||"INPUT"!==e(this,IE,"f").nodeName&&"TEXTAREA"!==e(this,IE,"f").nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==this.touchGestures&&e(this,IE,"f").draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent"}},VE.__openTooltips=new Array,t([h(".base")],VE.prototype,"_base",void 0),t([m({type:Boolean,reflect:!0})],VE.prototype,"disabled",void 0),t([m({attribute:"show-delay",type:Number})],VE.prototype,"showDelay",null),t([m({attribute:"hide-delay",type:Number})],VE.prototype,"hideDelay",null),t([m({attribute:"touch-gestures"})],VE.prototype,"touchGestures",void 0);let rz=iz=class extends VE{constructor(){super(...arguments),RE.add(this),UE.set(this,iz.__nextId++),NE.set(this,""),jE.set(this,""),YE.set(this,""),KE.set(this,!1),this._hasSubhead=!1,this._interactive=!1,ZE.set(this,t=>e(this,RE,"m",JE).call(this,t)),this.position="below-after"}get _isInteractive(){return this._interactive}get _anchorPosition(){switch(this.position){case"above":return"top";case"above-after":return"rtl"===Ve.current?"top-start":"top-end";case"above-before":return"rtl"===Ve.current?"top-end":"top-start";case"after":return"rtl"===Ve.current?"left":"right";case"before":return"rtl"===Ve.current?"right":"left";case"below":return"bottom";case"below-after":return"rtl"===Ve.current?"bottom-start":"bottom-end";case"below-before":return"rtl"===Ve.current?"bottom-end":"bottom-start"}}render(){const t=this._interactive&&this._hasSubhead?`m3e-rich-tooltip-${e(this,UE,"f")}-subhead`:void 0;return s`<div class="base" popover="manual" role="${je(this._interactive?"dialog":void 0)}" aria-labelledby="${je(t)}" @keydown="${e(this,RE,"m",QE)}" @beforetoggle="${e(this,RE,"m",GE)}" @toggle="${e(this,RE,"m",XE)}"><m3e-elevation level="3"></m3e-elevation><div class="subhead" id="${je(t)}"><slot name="subhead" @slotchange="${e(this,RE,"m",ez)}"></slot></div><div class="content"><slot @slotchange="${e(this,RE,"m",tz)}"></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,RE,"m",az)}"></slot></div></div>`}show(){return this._interactive&&document.addEventListener("click",e(this,ZE,"f")),super.show()}hide(t=!0){this._interactive&&document.removeEventListener("click",e(this,ZE,"f")),super.hide(),t&&this._interactive&&this.control&&Te.isFocusable(this.control)&&this.control.focus()}attach(t){super.attach(t),e(this,RE,"m",oz).call(this),this._interactive&&(t.ariaHasPopup="dialog")}update(t){super.update(t),t.has("_interactive")&&(this.ariaHidden=this._interactive?null:"true",e(this,RE,"m",oz).call(this),this.control&&this._interactive&&(this.control.ariaHasPopup="dialog"))}_updatePosition(e,t,a){this.position.includes("before")&&"before"!==this.position&&("rtl"===Ve.current?t+=this.control?.clientWidth??0:t-=this.control?.clientWidth??0),this.position.includes("after")&&"after"!==this.position&&("rtl"===Ve.current?t-=this.control?.clientWidth??0:t+=this.control?.clientWidth??0),"rtl"===Ve.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};var sz,nz,lz,cz;UE=new WeakMap,NE=new WeakMap,jE=new WeakMap,YE=new WeakMap,KE=new WeakMap,ZE=new WeakMap,RE=new WeakSet,GE=function(e){const t=new ToggleEvent("beforetoggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0,cancelable:e.cancelable});this.dispatchEvent(t)||(e.preventDefault(),this.hide())},XE=function(e){const t=new ToggleEvent("toggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0});this.dispatchEvent(t)},JE=function(e){e.composedPath().some(e=>e instanceof iz||e===this.control)||this.hide()},QE=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.hide())},ez=function(t){this._hasSubhead=g(t.target),this.shadowRoot?.querySelector(".base")?.classList.toggle("has-subhead",this._hasSubhead),a(this,NE,this._hasSubhead?me(t.target,!0):"","f"),e(this,RE,"m",oz).call(this)},tz=function(t){this._interactive=Te.findInteractiveElements(this).length>0,a(this,jE,me(t.target,!0),"f"),e(this,RE,"m",oz).call(this)},az=function(t){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(t.target)),this._interactive=Te.findInteractiveElements(this).length>0,e(this,RE,"m",oz).call(this)},oz=function(){const t=e(this,NE,"f")?`${e(this,NE,"f")}/n${e(this,jE,"f")}`:e(this,jE,"f");this.isConnected&&this.control&&(e(this,YE,"f")&&e(this,KE,"f")&&(Be.removeDescription(this.control,e(this,YE,"f")),a(this,KE,!1,"f")),a(this,YE,t,"f"),e(this,YE,"f")&&!this._interactive&&(Be.describe(this.control,e(this,YE,"f")),a(this,KE,!0,"f")))},rz.styles=i`:host { display: contents; } .base { flex-direction: column; position: absolute; padding: unset; margin: unset; border: unset; padding-block-start: var(--m3e-rich-tooltip-padding-top, 0.75rem); padding-inline: var(--m3e-rich-tooltip-padding-inline, 1rem); max-width: var(--m3e-rich-tooltip-max-width, 20rem); box-sizing: border-box; overflow: visible; border-radius: var(--m3e-rich-tooltip-shape, ${v.shape.corner.medium}); background-color: var(--m3e-rich-tooltip-container-color, ${v.color.surfaceContainer}); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base:not(.has-actions) { padding-block-end: var(--m3e-rich-tooltip-padding-bottom, 0.75rem); } .base::backdrop { background-color: transparent; } .base:popover-open { display: flex; opacity: 1; transform: scale(1); } .base:not(.has-subhead) .subhead, .base:not(.has-actions) .actions { display: none; } .subhead { color: var(--m3e-rich-tooltip-subhead-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-rich-tooltip-subhead-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var( --m3e-rich-tooltip-subhead-font-weight, ${v.typescale.standard.title.small.fontWeight} ); line-height: var( --m3e-rich-tooltip-subhead-line-height, ${v.typescale.standard.title.small.lineHeight} ); letter-spacing: var(--m3e-rich-tooltip-subhead-tracking, ${v.typescale.standard.title.small.tracking}); padding-block-end: var(--m3e-rich-tooltip-subhead-bottom-space, 0.25rem); } .content { color: var(--m3e-rich-tooltip-supporting-text-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-rich-tooltip-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize} ); font-weight: var( --m3e-rich-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-rich-tooltip-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-rich-tooltip-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } .actions { margin-inline: calc( 0px - calc( var(--m3e-rich-tooltip-padding-inline, 1rem) - var(--m3e-rich-tooltip-actions-padding-inline, 0.25rem) ) ); padding-block-start: var(--m3e-rich-tooltip-actions-top-space, 0.75rem); padding-block-end: var(--m3e-rich-tooltip-actions-bottom-space, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,rz.__nextId=0,t([u()],rz.prototype,"_hasSubhead",void 0),t([u()],rz.prototype,"_interactive",void 0),t([m()],rz.prototype,"position",void 0),rz=iz=t([$("m3e-rich-tooltip")],rz);let dz=class extends VE{constructor(){super(...arguments),sz.add(this),nz.set(this,void 0),this.position="below"}get _anchorPosition(){return"above"===this.position?"top":"below"===this.position?"bottom":"before"===this.position?"ltr"===Ve.current?"left":"right":"ltr"===Ve.current?"right":"left"}attach(t){super.attach(t),e(this,nz,"f")&&Be.describe(t,e(this,nz,"f"))}detach(){this.control&&e(this,nz,"f")&&Be.removeDescription(this.control,e(this,nz,"f")),super.detach()}connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<div class="base" popover="manual" @toggle="${e(this,sz,"m",cz)}"><slot @slotchange="${e(this,sz,"m",lz)}"></slot></div>`}_updatePosition(e,t,a){"rtl"===Ve.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};var hz,mz,pz,uz,vz,bz,fz,gz,yz,$z,xz,wz,kz,Cz,Sz,_z;nz=new WeakMap,sz=new WeakSet,lz=function(t){const o=me(t.target,!0);this.isConnected&&this.control?(e(this,nz,"f")&&Be.removeDescription(this.control,e(this,nz,"f")),a(this,nz,o,"f"),e(this,nz,"f")&&Be.describe(this.control,e(this,nz,"f"))):a(this,nz,o,"f")},cz=function(e){if("open"===e.newState){const e=this._base.getBoundingClientRect().height>parseFloat(getComputedStyle(this._base).minHeight);k(this,"-multiline",e)}},dz.styles=i`:host { display: contents; } .base { position: absolute; pointer-events: none; margin: unset; border: unset; word-break: normal; overflow-wrap: anywhere; padding: var(--m3e-tooltip-padding, 0.25rem 0.5rem); min-width: var(--m3e-tooltip-min-width, 2.5rem); max-width: var(--m3e-tooltip-max-width, 12.5rem); min-height: var(--m3e-tooltip-min-height, 1.5rem); max-height: var(--m3e-tooltip-max-height, 40vh); box-sizing: border-box; overflow: hidden; text-align: center; border-radius: var(--m3e-tooltip-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-tooltip-container-color, ${v.color.inverseSurface}); color: var(--m3e-tooltip-supporting-text-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-tooltip-supporting-text-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var( --m3e-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.small.fontWeight} ); line-height: var( --m3e-tooltip-supporting-text-line-height, ${v.typescale.standard.body.small.lineHeight} ); letter-spacing: var( --m3e-tooltip-supporting-text-tracking, ${v.typescale.standard.body.small.tracking} ); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-multiline)) .base { text-align: start; } .base::backdrop { background-color: transparent; } .base:popover-open { display: block; opacity: 1; transform: scale(1); } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,t([m()],dz.prototype,"position",void 0),dz=t([$("m3e-tooltip")],dz);let Lz=_z=class extends(ue(Y(x(P(f(r,"treeitem"),!0),"opening","opened","closing","closed")))){constructor(){super(...arguments),hz.add(this),this._hasChildItems=!1,this._multi=!1,mz.set(this,new w(this,{target:null,skipInitial:!0,config:{attributeFilter:["multi"]},callback:()=>e(this,hz,"m",wz).call(this)})),pz.set(this,[]),uz.set(this,null),vz.set(this,new Array),bz.set(this,null),this.open=!1,this.indeterminate=!1}get link(){return e(this,bz,"f")}get label(){return this._base??null}get visible(){return!e(this,vz,"f").some(e=>!e.open)}get path(){return[...e(this,vz,"f"),this]}get hasChildItems(){return this._hasChildItems}get parentItem(){return e(this,vz,"f")[e(this,vz,"f").length-1]??null}get childItems(){return e(this,pz,"f")}get level(){return e(this,vz,"f").length+1}expand(e=!1){this.hasChildItems&&(this.open=!0,e&&this.childItems.forEach(e=>e.expand(!0)))}collapse(e=!1){this.hasChildItems&&(this.open=!1,e&&this.childItems.forEach(e=>e.collapse(!0)))}toggle(){this.hasChildItems&&(this.open=!this.open)}connectedCallback(){super.connectedCallback(),e(this,vz,"f").length=0;for(let t=this.parentElement?.closest("m3e-tree-item");t;t=t.parentElement?.closest("m3e-tree-item"))e(this,vz,"f").push(t);e(this,vz,"f").reverse(),this.style.setProperty("--_tree-item-level",""+(this.level-1)),a(this,uz,this.closest("m3e-tree"),"f"),e(this,uz,"f")&&(e(this,mz,"f").observe(e(this,uz,"f")),e(this,hz,"m",wz).call(this))}disconnectedCallback(){super.disconnectedCallback(),e(this,vz,"f").length=0,e(this,uz,"f")&&e(this,mz,"f").unobserve(e(this,uz,"f"))}update(t){if(super.update(t),(t.has("selected")||t.has("indeterminate")||t.has("_multi"))&&(e(this,uz,"f")?.multi?(this.ariaSelected=null,this.ariaChecked=this.indeterminate?"mixed":`${this.selected}`):this.ariaSelected=`${this.selected}`),t.has("selected"))for(const e of this.querySelectorAll(":scope > m3e-icon[slot]:not([slot='toggle-icon']):not([slot='open-toggle-icon'])"))e.toggleAttribute("filled",this.selected);(t.has("open")||t.has("_hasChildItems"))&&(this.ariaExpanded=this._hasChildItems?`${this.open}`:null),(t.has("_hasChildItems")&&this.disabled||t.has("disabled"))&&e(this,pz,"f").forEach(e=>e.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e);const t=this._base;t&&[this.focusRing,this.stateLayer,this.ripple].forEach(e=>e?.attach(t))}render(){return s`<div class="base" @click="${e(this,hz,"m",kz)}"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div aria-hidden="true" class="inset"></div><div aria-hidden="true" class="toggle"><slot name="toggle-icon"><svg class="toggle-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg></slot><slot name="open-toggle-icon" @slotchange="${e(this,hz,"m",gz)}"></slot></div>${this._multi?s`<m3e-pseudo-checkbox class="checkbox" ?checked="${this.selected}" ?indeterminate="${this.indeterminate}" ?disabled="${this.disabled}" @click="${e(this,hz,"m",Cz)}"></m3e-pseudo-checkbox>`:n}<div class="icon" aria-hidden="true">${e(this,hz,"m",fz).call(this)}</div><div class="label"><slot name="label" @slotchange="${e(this,hz,"m",$z)}"></slot></div></div><m3e-collapsible class="group" role="group" aria-hidden="${je(this._hasChildItems?void 0:"true")}" ?open="${this.open}" @opening="${e(this,hz,"m",Sz)}" @opened="${e(this,hz,"m",Sz)}" @closing="${e(this,hz,"m",Sz)}" @closed="${e(this,hz,"m",Sz)}"><slot @slotchange="${e(this,hz,"m",xz)}"></slot></m3e-collapsible>`}};var Ez,zz,Mz,Tz,Pz,Iz,Wz,Dz,Az,Hz,Oz,Bz,Fz,qz,Vz,Rz;mz=new WeakMap,pz=new WeakMap,uz=new WeakMap,vz=new WeakMap,bz=new WeakMap,hz=new WeakSet,fz=function(){const t=s`<slot name="icon" @slotchange="${e(this,hz,"m",yz)}"></slot>`;return this.selected&&!this.hasChildItems?s`<slot name="selected-icon" @slotchange="${e(this,hz,"m",yz)}">${t}</slot>`:t},gz=function(e){k(this,"-with-open-toggle-icon",g(e.target))},yz=function(e){k(this,"-with-icon",g(e.target))},$z=function(t){a(this,bz,t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLAnchorElement)??null,"f"),e(this,bz,"f")?.setAttribute("tabindex","-1")},xz=function(t){a(this,pz,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof _z),"f");const o=this._hasChildItems;if(this._hasChildItems=e(this,pz,"f").length>0,k(this,"-with-items",this._hasChildItems),(o||this._hasChildItems)&&this._multi&&e(this,uz,"f")?.cascade){let t=!1,a=!1;for(const e of this.querySelectorAll("m3e-tree-item"))if(t=t||e.selected,a=a||!e.selected,t&&a)break;a?(e(this,uz,"f")?.[De].deselect(this),this.indeterminate=t):(e(this,uz,"f")?.[De].select(this,!1),this.indeterminate=!1)}},wz=function(){this._multi=!0===e(this,uz,"f")?.multi,k(this,"-multi",this._multi)},kz=function(){this.disabled||(e(this,uz,"f")?.[De].setActiveItem(this),this._hasChildItems?(this._multi||e(this,uz,"f")?.select(this),this.toggle()):(this._multi&&this.selected?e(this,uz,"f")?.deselect(this):e(this,uz,"f")?.select(this),e(this,bz,"f")?.click()))},Cz=function(t){t.stopPropagation(),this.selected?e(this,uz,"f")?.deselect(this):e(this,uz,"f")?.select(this)},Sz=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},Lz.styles=i`:host { display: block; flex: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: flex; align-items: center; position: relative; height: calc(var(--m3e-tree-item-height, 3rem) + ${v.density.calc(-3)}); padding-inline: var(--m3e-tree-item-padding, 1rem); font-size: var(--m3e-tree-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-tree-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-tree-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-tree-item-tracking, ${v.typescale.standard.label.large.tracking}); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard},\n background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .base, .focus-ring { border-radius: var(--m3e-tree-item-shape, ${v.shape.corner.none}); } .label { flex: 1 1 auto; display: flex; align-items: center; position: relative; overflow: hidden; vertical-align: middle; } .checkbox { flex: none; margin-inline-end: 0.5rem; } .icon, .toggle { flex: none; align-items: center; justify-content: center; position: relative; vertical-align: middle; margin-inline-end: 0.5rem; } .toggle { display: var(--_tree-item-toggle-display, none); } :host(:not(:state(-with-icon))) .icon { display: none; } .inset { margin-inline-start: calc(var(--m3e-tree-item-inset, 2rem) * var(--_tree-item-level, 0)); } :host([open]) .toggle-icon { transform: rotate(90deg); } :host(:not(:state(-with-items))) .toggle { visibility: hidden; } :host(:not(:state(-with-items))) .group { display: none; } ::slotted([slot="selected-icon"]), ::slotted([slot="icon"]), ::slotted([slot="toggle-icon"]), ::slotted([slot="open-toggle-icon"]), .toggle-icon { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-tree-item-icon-size, 1.5rem); } .toggle-icon { transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:state(-with-open-toggle-icon)[open]) slot[name="toggle-icon"], :host(:state(-with-open-toggle-icon):not([open])) slot[name="open-toggle-icon"] { display: none; } :host(:not(:disabled)) .base { cursor: pointer; } :host(:not(:disabled)) .base { color: var(--m3e-tree-item-label-color, ${v.color.onSurfaceVariant}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-tree-item-disabled-color, ${v.color.onSurface}) var(--m3e-tree-item-disabled-color-opacity, 38%), transparent ); } :host([selected]:not(:disabled)) .base { color: var(--m3e-tree-item-selected-label-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-tree-item-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-tree-item-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-tree-item-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-tree-item-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not([selected]):not(:disabled)) .base { --m3e-state-layer-focus-color: var( --m3e-tree-item-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-tree-item-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-tree-item-unselected-ripple-color, ${v.color.onSurface}); } .state-layer { margin-inline: auto; } ::slotted(a[slot="label"]) { all: unset; } @media (prefers-reduced-motion) { .base, .toggle, .state-layer { transition: none !important; } } @media (forced-colors: active) { .base, .state-layer { transition: none !important; } :host(:disabled) .base { color: GrayText; } :host(:not(:disabled)) .base { color: CanvasText; background-color: Canvas; } :host([selected]:not(:state(-multi)):not(:disabled)) slot[name="icon"], :host([selected]:not(:state(-multi)):not(:disabled)) slot[name="label"] { color: Highlight; } }`,t([h(".state-layer")],Lz.prototype,"stateLayer",void 0),t([h(".focus-ring")],Lz.prototype,"focusRing",void 0),t([h(".ripple")],Lz.prototype,"ripple",void 0),t([h(".base")],Lz.prototype,"_base",void 0),t([u()],Lz.prototype,"_hasChildItems",void 0),t([u()],Lz.prototype,"_multi",void 0),t([m({type:Boolean,reflect:!0})],Lz.prototype,"open",void 0),t([m({type:Boolean,reflect:!0})],Lz.prototype,"indeterminate",void 0),Lz=_z=t([$("m3e-tree-item")],Lz);let Uz=Rz=class extends(f(r,"tree")){constructor(){super(),Ez.add(this),zz.set(this,!1),Mz.set(this,!1),this[Vz]=(new Ae).withVerticalOrientation().withHomeAndEnd().withPageUpAndDown().withTypeahead().withSkipPredicate(e=>e.disabled||!e.visible).disableRovingTabIndex().onActiveItemChange(()=>{this[De].activeItem&&e(this,Ez,"m",Oz).call(this,this[De].activeItem)}),Tz.set(this,t=>e(this,Ez,"m",Dz).call(this,t)),Pz.set(this,()=>e(this,Ez,"m",Az).call(this)),Iz.set(this,t=>e(this,Ez,"m",Hz).call(this,t)),this.multi=!1,this.cascade=!1,new Z(this,{callback:e=>a(this,Mz,e,"f")}),new K(this,{callback:()=>{e(this,Mz,"f")||e(this,Ez,"m",Bz).call(this)}})}get selected(){return this[De].selectedItems}get items(){return this[De].items}expand(e,t=!1){const a=Array.isArray(e)?e:this[De].items,o="boolean"==typeof e?e:t;a.forEach(e=>e.expand(o))}collapse(e,t=!1){const a=Array.isArray(e)?e:this[De].items,o="boolean"==typeof e?e:t;a.forEach(e=>e.collapse(o));const i=this[De].activeItem;if(i&&!i.visible)for(let e=i.parentItem;e;e=e.parentItem)if(e.visible){this[De].setActiveItem(e);break}}select(t,a=!1){this[De].select(t,a),t.indeterminate=!1,this.multi&&this.cascade&&(t.hasChildItems&&t.childItems.forEach(e=>this.select(e)),e(this,Ez,"m",qz).call(this,t)),a&&e(this,Ez,"m",Oz).call(this,t),this.dispatchEvent(new Event("change",{bubbles:!0}))}deselect(t){this[De].deselect(t),t.indeterminate=!1,this.multi&&this.cascade&&(t.hasChildItems&&t.childItems.forEach(e=>this.deselect(e)),e(this,Ez,"m",qz).call(this,t)),this.dispatchEvent(new Event("change",{bubbles:!0}))}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",e(this,Tz,"f")),this.addEventListener("keyup",e(this,Pz,"f")),this.addEventListener("pointerdown",e(this,Iz,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Tz,"f")),this.removeEventListener("keyup",e(this,Pz,"f")),this.removeEventListener("pointerdown",e(this,Iz,"f"))}willUpdate(e){super.willUpdate(e),e.has("multi")&&(this[De].multi=this.multi,this.multi?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"))}render(){return s`<div class="base"><slot @slotchange="${e(this,Ez,"m",Wz)}"></slot></div>`}};zz=new WeakMap,Mz=new WeakMap,Tz=new WeakMap,Pz=new WeakMap,Iz=new WeakMap,Ez=new WeakSet,Vz=De,Wz=function(){const{added:t}=this[De].setItems([...this.querySelectorAll("m3e-tree-item")]);for(const e of t)e.id=e.id||"m3e-tree-item-"+Rz.__nextId++;this[De].activeItem?(this.setAttribute("aria-activedescendant",this[De].activeItem.id),e(this,Ez,"m",Bz).call(this)):this.removeAttribute("aria-activedescendant")},Dz=function(t){a(this,zz,!1,"f"),e(this,Ez,"m",Bz).call(this);const o=this[De].activeItem;if(!t.defaultPrevented&&o&&!o.disabled)switch(t.key){case"Enter":this.multi?(o.ripple&&!o.ripple.visible&&(o.ripple.centered=!0,o.ripple.show(0,0,!0),o.ripple.centered=!1),o.link?.click()):o.selected||(this.select(o),o.link?.click());break;case" ":t.preventDefault(),this.multi?o.selected?this.deselect(o):this.select(o):(o.ripple&&!o.ripple.visible&&(o.ripple.centered=!0,o.ripple.show(0,0,!0),o.ripple.centered=!1),this.select(o),o.link?.click());break;case"*":t.preventDefault(),o.expand(!0);break;case"Left":case"ArrowLeft":if(t.preventDefault(),"ltr"===Ve.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&this[De].setActiveItem(e)}else o.hasChildItems&&!o.open&&o.expand();break;case"Right":case"ArrowRight":if(t.preventDefault(),"rtl"===Ve.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&this[De].setActiveItem(e)}else o.hasChildItems&&!o.open&&o.expand();break;default:this[De].onKeyDown(t)}},Az=function(){const e=this[De].activeItem;e&&!e.disabled&&e.ripple?.visible&&e.ripple.hide()},Hz=function(t){if(!t.defaultPrevented&&!e(this,zz,"f")){a(this,zz,!0,"f");const o=t.composedPath().reverse().find(e=>e instanceof Lz);o&&!o.disabled&&e(this,Ez,"m",Fz).call(this,o,!0,!1)}},Oz=function(t){this.setAttribute("aria-activedescendant",t.id),t.label&&_(t.label,this,{block:"nearest",behavior:"smooth"}),e(this,Ez,"m",Bz).call(this)},Bz=function(){const t=this.matches(":focus")||this.matches(":focus-within"),a=!e(this,zz,"f")&&this.matches(":focus-visible");this[De].items.forEach(o=>{const i=o===this[De].activeItem;e(this,Ez,"m",Fz).call(this,o,i&&t,i&&a)})},Fz=function(e,t,a){t&&a?e.stateLayer?.show("focused"):e.stateLayer?.hide("focused"),a?e.focusRing?.show():e.focusRing?.hide()},qz=function(e){for(let t=e.parentItem;t;t=t.parentItem){let e=!1,a=!1;for(const o of t.querySelectorAll("m3e-tree-item"))if(e=e||o.selected,a=a||!o.selected,e&&a)break;a?(this[De].deselect(t),t.indeterminate=e):(this[De].select(t,!1),t.indeterminate=!1)}},F(i`${o("m3e-tree:has(> m3e-tree-item:state(-with-items)) {\n --_tree-item-toggle-display: flex;\n }")}`),Uz.styles=i`:host { display: block; outline: none; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; } .base { width: 100%; display: flex; flex-direction: column; position: relative; min-height: inherit; box-sizing: border-box; }`,Uz.__nextId=0,t([m({type:Boolean,reflect:!0})],Uz.prototype,"multi",void 0),t([m({type:Boolean,reflect:!0})],Uz.prototype,"cascade",void 0),Uz=Rz=t([$("m3e-tree")],Uz);export{fd as ActionElementBase,wn as AnimationLoopController,Ml as AttachInternals,ei as CalendarViewElementBase,Al as Checked,Ol as CheckedIndeterminate,Dc as ConstraintValidation,mc as DesignToken,jl as Dirty,uc as Disabled,yc as DisabledInteractive,Ac as EventAttribute,Kn as FocusController,Oc as Focusable,Mc as FormAssociated,qc as FormSubmitter,Zn as HoverController,Nc as HtmlFor,Gn as InertController,Xn as IntersectionController,jc as KeyboardClick,kc as Labelled,Gc as LinkButton,Jn as LongPressController,op as M3eAccordionElement,eb as M3eActionListElement,_t as M3eAppBarElement,nr as M3eAssistChipElement,_a as M3eAutocompleteElement,La as M3eAvatarElement,Wa as M3eBadgeElement,Da as M3eBottomSheetActionElement,wo as M3eBottomSheetElement,ko as M3eBottomSheetTriggerElement,Ho as M3eButtonElement,Vo as M3eButtonGroupElement,tw as M3eButtonSegmentElement,Mi as M3eCalendarElement,Ni as M3eCardElement,Ji as M3eCheckboxElement,sr as M3eChipElement,lr as M3eChipSetElement,Ay as M3eCircularProgressIndicatorElement,gd as M3eCollapsibleElement,im as M3eDatepickerElement,rm as M3eDatepickerToggleElement,sm as M3eDialogActionElement,ym as M3eDialogElement,$m as M3eDialogTriggerElement,xm as M3eDividerElement,Nm as M3eDrawerContainerElement,Jm as M3eDrawerToggleElement,Wd as M3eElevationElement,Xv as M3eExpandableListItemElement,Pp as M3eExpansionHeaderElement,Np as M3eExpansionPanelElement,tu as M3eFabElement,$u as M3eFabMenuElement,ru as M3eFabMenuItemElement,xu as M3eFabMenuTriggerElement,mr as M3eFilterChipElement,$r as M3eFilterChipSetElement,Nd as M3eFocusRingElement,tv as M3eFormFieldElement,av as M3eHeadingElement,Lv as M3eIconButtonElement,mv as M3eIconElement,Sr as M3eInputChipElement,Gr as M3eInputChipSetElement,Gy as M3eLinearProgressIndicatorElement,ob as M3eListActionElement,qv as M3eListElement,ib as M3eListItemButtonElement,Dv as M3eListItemElement,hb as M3eListOptionElement,zb as M3eLoadingIndicatorElement,lf as M3eMenuElement,xf as M3eMenuItemCheckboxElement,Ub as M3eMenuItemElement,wf as M3eMenuItemGroupElement,Df as M3eMenuItemRadioElement,Tb as M3eMenuTriggerElement,ci as M3eMonthViewElement,ui as M3eMultiYearViewElement,Vf as M3eNavBarElement,jf as M3eNavItemElement,xg as M3eNavMenuElement,rg as M3eNavMenuItemElement,Lg as M3eNavMenuItemGroupElement,Pg as M3eNavRailElement,Ag as M3eNavRailToggleElement,Yg as M3eOptGroupElement,qg as M3eOptionElement,Jg as M3eOptionPanelElement,ly as M3ePaginatorElement,jd as M3ePseudoCheckboxElement,Yd as M3ePseudoRadioElement,i$ as M3eRadioElement,m$ as M3eRadioGroupElement,ME as M3eRichTooltipActionElement,rz as M3eRichTooltipElement,rh as M3eRippleElement,nh as M3eScrollContainerElement,bx as M3eSearchBarElement,Zx as M3eSearchViewElement,lw as M3eSegmentedButtonElement,qw as M3eSelectElement,fb as M3eSelectionListElement,Jw as M3eShapeElement,rk as M3eSkeletonElement,mh as M3eSlideElement,hk as M3eSlideGroupElement,Ak as M3eSliderElement,uk as M3eSliderThumbElement,Yk as M3eSnackbar,jk as M3eSnackbarElement,sC as M3eSplitButtonElement,OC as M3eSplitPaneElement,Ch as M3eStateLayerElement,NC as M3eStepElement,BC as M3eStepPanelElement,rS as M3eStepperElement,sS as M3eStepperNextElement,nS as M3eStepperPreviousElement,lS as M3eStepperResetElement,Xr as M3eSuggestionChipElement,T_ as M3eSwitchElement,A_ as M3eTabElement,H_ as M3eTabPanelElement,Y_ as M3eTabsElement,Ih as M3eTextHighlightElement,Wh as M3eTextOverflowElement,dL as M3eTextareaAutosizeElement,sE as M3eThemeElement,wE as M3eTocElement,nE as M3eTocItemElement,zE as M3eToolbarElement,dz as M3eTooltipElement,Uz as M3eTreeElement,Lz as M3eTreeItemElement,yi as M3eYearViewElement,Qn as MutationController,el as PressedController,cy as ProgressElementIndicatorBase,Jc as ReadOnly,ed as ReconnectedCallback,ad as Required,id as RequiredConstraintValidation,tl as ResizeController,rd as Role,gl as ScrollController,yl as ScrollLockController,Fl as Selected,iS as StepperButtonElementBase,sd as SuppressInitialAnimation,xE as TocGenerator,VE as TooltipElementBase,Zl as Touched,jn as VelocityTracker,ld as Vertical,Pl as addCustomState,Rl as checkOrSelect,Cn as computeCssSize,Sn as computeLineCount,al as customElement,$l as dateConverter,ol as debounce,Sc as defaultValue,Il as deleteCustomState,Cu as findFormFieldControl,_n as focusWhenReady,Ln as forcedColorsActive,Cc as formValue,An as generateClipPaths,Hn as getTextContent,On as guid,Bn as hasAssignedNodes,Tl as hasCustomState,Sl as hasKeys,Fn as interceptProperty,_l as internals,Ll as isAttachInternalsMixin,Hl as isCheckedIndeterminateMixin,Dl as isCheckedMixin,Vl as isCheckedOrSelected,ql as isCheckedOrSelectedMixin,Pc as isConstraintValidationMixin,Ul as isDirtyMixin,vc as isDisabledInteractiveMixin,pc as isDisabledMixin,_c as isFormAssociatedMixin,ku as isFormFieldControl,Bc as isFormSubmitterMixin,Vc as isHtmlForMixin,xc as isLabelledMixin,Kc as isLinkButtonMixin,Xc as isReadOnlyMixin,od as isRequiredConstraintValidationMixin,td as isRequiredMixin,Bl as isSelectedMixin,Yl as isTouchedMixin,nd as isVerticalMixin,qn as prefersReducedMotion,pv as registerIcon,Vn as registerStyleSheet,Yc as renderPseudoLink,Rn as resolveElementById,Un as resolveFragmentUrl,Cl as safeStyleMap,Nn as scrollIntoViewIfNeeded,Wl as setCustomState,xl as spaceSeparatedStringConverter,$c as updateLabels,Tc as validate,Yn as waitForUpgrade};
|
|
447
447
|
//# sourceMappingURL=all.min.js.map
|