@m3e/web 2.4.0 → 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/dist/all.min.js CHANGED
@@ -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),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._hasChildItems&&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,console.log(this._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};
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