@awc-ui/core 1.0.0-beta → 1.0.0-beta.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.
Files changed (79) hide show
  1. package/dist/components/p-6wZSqm_2.js +2 -0
  2. package/dist/components/{p-Bx5sxRqa.js.map → p-6wZSqm_2.js.map} +1 -1
  3. package/dist/components/p-7fN_yCXW.js +2 -0
  4. package/dist/components/{p-CJdqKSuf.js.map → p-7fN_yCXW.js.map} +1 -1
  5. package/dist/components/{p-G5m2pHZ2.js → p-B0Opn6dK.js} +2 -2
  6. package/dist/components/{p-pDrTJmeT.js → p-B3MWYEEJ.js} +2 -2
  7. package/dist/components/{p-DGGkdSZk.js → p-BwXpiUsu.js} +2 -2
  8. package/dist/{md3/p-B0NLeNWu.js → components/p-Bx6--dQF.js} +2 -2
  9. package/dist/components/{p-BIIp3Qod.js → p-C8EP4S21.js} +2 -2
  10. package/dist/components/{p-CWM3KSti.js → p-C_ogF68H.js} +2 -2
  11. package/dist/components/{p-BlwGYUkt.js → p-Ch2-tttM.js} +2 -2
  12. package/dist/components/p-DXXUoRSH.js +2 -0
  13. package/dist/components/{p-DWUCvzfU.js.map → p-DXXUoRSH.js.map} +1 -1
  14. package/dist/components/p-Dp-w93ot.js +2 -0
  15. package/dist/components/{p-BUYYCrGa.js.map → p-Dp-w93ot.js.map} +1 -1
  16. package/dist/{md3/p-CGStn3Iq.js → components/p-DvOKnoqK.js} +2 -2
  17. package/dist/components/{p-B7yMxWo-.js → p-DzPKu-Ma.js} +2 -2
  18. package/dist/components/{p-CXpXrhQH.js → p-RLxbNqRv.js} +2 -2
  19. package/dist/components/p-UdGDg2oJ.js +2 -0
  20. package/dist/components/{p-BujtL9xW.js.map → p-UdGDg2oJ.js.map} +1 -1
  21. package/dist/components/p-e2HRV63Y.js +2 -0
  22. package/dist/components/{p-CrlkPxeB.js.map → p-e2HRV63Y.js.map} +1 -1
  23. package/dist/components/p-stybaFzj.js +2 -0
  24. package/dist/components/{p-JbwZ84YK.js.map → p-stybaFzj.js.map} +1 -1
  25. package/dist/components/p-uTEkf0sE.js +2 -0
  26. package/dist/components/{p-BXwh1zjF.js.map → p-uTEkf0sE.js.map} +1 -1
  27. package/dist/esm/{a11y-C9_cZAF_.js → a11y-C6CRqodW.js} +3 -3
  28. package/dist/esm/{a11y-C9_cZAF_.js.map → a11y-C6CRqodW.js.map} +1 -1
  29. package/dist/esm/{bar-chart-IvBgAmmF.js → bar-chart-ZZrajEkM.js} +4 -4
  30. package/dist/esm/{bar-chart-IvBgAmmF.js.map → bar-chart-ZZrajEkM.js.map} +1 -1
  31. package/dist/esm/{chart-D1kP9gfW.js → chart-32olae06.js} +4 -4
  32. package/dist/esm/{chart-D1kP9gfW.js.map → chart-32olae06.js.map} +1 -1
  33. package/dist/esm/{hit-test-DFfwlMb9.js → hit-test-DHldf5Lm.js} +3 -3
  34. package/dist/esm/{hit-test-DFfwlMb9.js.map → hit-test-DHldf5Lm.js.map} +1 -1
  35. package/dist/esm/{rtl-CGStn3Iq.js → rtl-DvOKnoqK.js} +3 -3
  36. package/dist/esm/{rtl-CGStn3Iq.js.map → rtl-DvOKnoqK.js.map} +1 -1
  37. package/dist/md3/p-04e97f5d.entry.js +2 -0
  38. package/dist/md3/{p-ec14eaca.entry.js.map → p-04e97f5d.entry.js.map} +1 -1
  39. package/dist/md3/p-3cce1de3.entry.js +2 -0
  40. package/dist/md3/{p-2121c939.entry.js.map → p-3cce1de3.entry.js.map} +1 -1
  41. package/dist/md3/p-4d82132d.entry.js +2 -0
  42. package/dist/md3/{p-fe78659d.entry.js.map → p-4d82132d.entry.js.map} +1 -1
  43. package/dist/{components/p-Bu-m4Gm2.js → md3/p-Bx6--dQF.js} +2 -2
  44. package/dist/md3/{p-B0NLeNWu.js.map → p-Bx6--dQF.js.map} +1 -1
  45. package/dist/md3/{p-CWM3KSti.js → p-C_ogF68H.js} +2 -2
  46. package/dist/md3/{p-CWM3KSti.js.map → p-C_ogF68H.js.map} +1 -1
  47. package/dist/{components/p-CGStn3Iq.js → md3/p-DvOKnoqK.js} +2 -2
  48. package/dist/md3/{p-CGStn3Iq.js.map → p-DvOKnoqK.js.map} +1 -1
  49. package/dist/md3/{p-B7yMxWo-.js → p-DzPKu-Ma.js} +2 -2
  50. package/dist/md3/{p-B7yMxWo-.js.map → p-DzPKu-Ma.js.map} +1 -1
  51. package/dist/md3/{p-CXpXrhQH.js → p-RLxbNqRv.js} +2 -2
  52. package/dist/md3/{p-CXpXrhQH.js.map → p-RLxbNqRv.js.map} +1 -1
  53. package/dist/md3/{p-f6373c6c.entry.js → p-aaec2698.entry.js} +2 -2
  54. package/dist/md3/{p-9ff2d5d1.entry.js → p-c063c823.entry.js} +2 -2
  55. package/main-llm.md +2 -2
  56. package/package.json +24 -3
  57. package/dist/components/p-BUYYCrGa.js +0 -2
  58. package/dist/components/p-BXwh1zjF.js +0 -2
  59. package/dist/components/p-BujtL9xW.js +0 -2
  60. package/dist/components/p-Bx5sxRqa.js +0 -2
  61. package/dist/components/p-CJdqKSuf.js +0 -2
  62. package/dist/components/p-CrlkPxeB.js +0 -2
  63. package/dist/components/p-DWUCvzfU.js +0 -2
  64. package/dist/components/p-JbwZ84YK.js +0 -2
  65. package/dist/md3/p-2121c939.entry.js +0 -2
  66. package/dist/md3/p-ec14eaca.entry.js +0 -2
  67. package/dist/md3/p-fe78659d.entry.js +0 -2
  68. /package/dist/components/{p-G5m2pHZ2.js.map → p-B0Opn6dK.js.map} +0 -0
  69. /package/dist/components/{p-pDrTJmeT.js.map → p-B3MWYEEJ.js.map} +0 -0
  70. /package/dist/components/{p-DGGkdSZk.js.map → p-BwXpiUsu.js.map} +0 -0
  71. /package/dist/components/{p-Bu-m4Gm2.js.map → p-Bx6--dQF.js.map} +0 -0
  72. /package/dist/components/{p-BIIp3Qod.js.map → p-C8EP4S21.js.map} +0 -0
  73. /package/dist/components/{p-CWM3KSti.js.map → p-C_ogF68H.js.map} +0 -0
  74. /package/dist/components/{p-BlwGYUkt.js.map → p-Ch2-tttM.js.map} +0 -0
  75. /package/dist/components/{p-CGStn3Iq.js.map → p-DvOKnoqK.js.map} +0 -0
  76. /package/dist/components/{p-B7yMxWo-.js.map → p-DzPKu-Ma.js.map} +0 -0
  77. /package/dist/components/{p-CXpXrhQH.js.map → p-RLxbNqRv.js.map} +0 -0
  78. /package/dist/md3/{p-f6373c6c.entry.js.map → p-aaec2698.entry.js.map} +0 -0
  79. /package/dist/md3/{p-9ff2d5d1.entry.js.map → p-c063c823.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{t as e,p as t,H as s,c as i,h as n,d as r}from"./p-MWBNn6Lj.js";const a=()=>`:host{display:block;position:fixed;z-index:auto;pointer-events:none}:host(.md-menu--open){pointer-events:auto}.md-menu__surface{background-color:var(--md-sys-color-surface-container, #F7F2FA);border-radius:var(--md-sys-shape-corner-small, 8px);box-shadow:0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);min-width:var(--md-menu-min-width, 112px);max-width:min( var(--md-menu-max-width, 100vw), calc(100vw - 2 * var(--md-menu-viewport-margin, 8px)) );padding:var(--md-sys-spacing-inset-xs, 4px) 0;overflow:visible;opacity:0;transform:scaleY(0.8);transform-origin:top left;transition:opacity var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1)), transform var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1))}:host(.md-menu--open) .md-menu__surface{opacity:1;transform:none}:host(.md-menu--closing) .md-menu__surface{opacity:0;transform:scaleY(0.8);transition:opacity var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)), transform var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15))}:host(.md-menu--closing){pointer-events:none}:host(.md-menu--quick) .md-menu__surface{transition:none}:host(.md-menu--inline-fill){position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-block-size:0;block-size:100%;inline-size:100%;pointer-events:auto}:host(.md-menu--inline-fill) .md-menu__surface{flex:1 1 auto;block-size:100%;min-block-size:0;min-inline-size:100%;max-inline-size:none;display:flex;flex-direction:column;overflow:hidden;box-shadow:none;border:none;outline:none;padding:0;border-radius:0;border-end-start-radius:var(--md-menu-inline-fill-radius-end, 0);border-end-end-radius:var(--md-menu-inline-fill-radius-end, 0);background-color:var(--md-menu-inline-surface-color, transparent)}:host(.md-menu--inline-fill) .md-menu__scroll-shadow{flex:1 1 auto;min-block-size:0;block-size:100%}:host(.md-menu--inline-fill) .md-menu__surface ::slotted(md-menu-item:last-child){border-end-start-radius:var(--md-menu-inline-fill-radius-end, 0);border-end-end-radius:var(--md-menu-inline-fill-radius-end, 0)}:host(.md-menu--scroll):not(.md-menu--has-submenu) .md-menu__surface{overflow:hidden}:host(.md-menu--scroll) .md-menu__scroll-shadow{min-block-size:0}.md-menu__scroll-shadow{overflow-y:auto;overflow-anchor:none}:host([match-anchor-width]) .md-menu__surface{max-width:calc(100vw - 2 * var(--md-menu-viewport-margin, 8px));box-sizing:border-box}:host(:not(.md-menu--has-submenu):not(.md-menu--inline-fill):not(.md-menu--scroll)) .md-menu__surface{max-height:calc(100dvh - 2 * var(--md-menu-viewport-margin, 8px));overflow-y:auto;overscroll-behavior:contain}@media (max-width: 600px){:host(.md-menu--responsive) .md-menu__surface{width:calc(100vw - 2 * var(--md-menu-viewport-margin, 8px));min-width:0;max-width:none;box-sizing:border-box}}:host([placement="bottom-start"]) .md-menu__surface{transform-origin:top left}:host([placement="bottom-end"]) .md-menu__surface{transform-origin:top right}:host([placement="top-start"]) .md-menu__surface{transform-origin:bottom left}:host([placement="top-end"]) .md-menu__surface{transform-origin:bottom right}:host(.md-menu--standard) .md-menu__surface{background-color:var(--md-sys-color-surface-container-low, #F7F2FA);border-radius:var(--md-sys-shape-corner-large, 16px);box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 8px 3px rgba(0, 0, 0, 0.08);padding:var(--md-sys-spacing-inset-xs, 4px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item){border-radius:var(--md-sys-shape-corner-small, 8px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:first-child),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:first-child){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:last-child),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:last-child){border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:hover),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:hover){border-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:active),:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item.md-menu-item--selected),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:active){border-radius:var(--md-sys-shape-corner-medium, 12px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:first-child:hover),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:first-child:hover){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px);border-end-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-end-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:last-child:hover),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:last-child:hover){border-start-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-start-end-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--vibrant) .md-menu__surface{background-color:var(--md-sys-color-tertiary-container, #FFD8E4);border-radius:var(--md-sys-shape-corner-large, 16px);box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 8px 3px rgba(0, 0, 0, 0.08);padding:var(--md-sys-spacing-inset-xs, 4px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item){border-radius:var(--md-sys-shape-corner-small, 8px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:first-child),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:first-child){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:last-child),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:last-child){border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:hover),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:hover){border-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:active),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item.md-menu-item--selected),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:active){border-radius:var(--md-sys-shape-corner-medium, 12px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:first-child:hover),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:first-child:hover){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px);border-end-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-end-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:last-child:hover),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:last-child:hover){border-start-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-start-end-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--gap) .md-menu__surface{gap:var(--md-sys-spacing-gap-xs, 4px);display:flex;flex-direction:column}:host(.md-menu--grouped.md-menu--gap.md-menu--standard) .md-menu__surface,:host(.md-menu--grouped.md-menu--gap.md-menu--vibrant) .md-menu__surface{background-color:transparent;box-shadow:none;overflow:visible;display:flex;flex-direction:column;gap:var(--md-menu-group-gap, 4px);padding:0;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1))}:host(.md-menu--grouped.md-menu--gap) .md-menu__surface ::slotted(md-menu-item-group),:host(.md-menu--grouped.md-menu--gap) .md-menu__scroll-shadow ::slotted(md-menu-item-group){flex-shrink:0}:host(.md-menu--grouped.md-menu--gap) .md-menu__scroll-shadow{display:flex;flex-direction:column;row-gap:var(--md-menu-group-gap, 4px)}:host(.md-menu--sectioned.md-menu--baseline) .md-menu__surface ::slotted([gap]){margin-bottom:var(--md-menu-section-gap, 2px)}.md-menu__empty{display:none;padding:var(--md-sys-spacing-inset-md, 12px) var(--md-sys-spacing-inset-lg, 16px);font-family:var(--md-sys-typescale-body-medium-font-family, Roboto, sans-serif);font-size:var(--md-sys-typescale-body-medium-size, 14px);line-height:var(--md-sys-typescale-body-medium-line-height, 20px);color:var(--md-sys-color-on-surface-variant, #49454F);text-align:center}:host(.md-menu--empty) .md-menu__empty{display:block}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}`;const d=150;const o=500;const m=8;const u=600;const h=new Set(["button","combobox","link","menuitem","tab","treeitem","checkbox","gridcell","row","rowheader","columnheader"]);const c=new Set(["BUTTON","SUMMARY"]);let l=0;const f=t(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.mdOpen=i(this,"mdOpen",1);this.mdClose=i(this,"mdClose",1);this.open=false;this.anchor="";this.placement="bottom-start";this.quick=false;this.variant="baseline";this.layout="standard";this.useGap=false;this.emptyText="";this.matchAnchorWidth=false;this.responsive=false;this.persistent=false;this.autoFocus=true;this.closing=false;this.sectioned=false;this.empty=false;this.hasSubmenu=false;this.focusedIndex=-1;this.navSeq=0;this.ringedIndex=-1;this.skipAutoFocus=false;this.menuId=`md-menu-${++l}`;this.typeaheadBuffer="";this.keyboardModality=false;this.openedViaKeyboard=false;this.listboxMode=false;this.listbox=false;this.density=0;this.trackKeyboardModality=()=>{this.keyboardModality=true};this.trackPointerModality=()=>{this.keyboardModality=false};this.lastSurfaceSize="";this.handleOutsideClick=e=>{if(this.persistent)return;const t=e.composedPath();if(!t.includes(this.el)){this.close()}};this.handleDocumentKeyDown=e=>{if(e.key==="Escape"&&this.open){this.close();this.restoreFocusToAnchor()}};this.handleScroll=()=>{if(this.open&&!this.closing){this.positionMenu()}};this.handleSlotChange=()=>{this.updateSections();this.propagateVariant();this.wireItemObserver();this.updateEmpty();this.hasSubmenu=!!this.el.querySelector("md-sub-menu-item")}}get asListbox(){return this.listbox||this.listboxMode}async setComboboxElement(e){if(this.comboboxEl&&this.comboboxEl!==e){this.comboboxEl.removeAttribute("aria-activedescendant")}this.comboboxEl=e??undefined}connectedCallback(){if(typeof document==="undefined")return;document.addEventListener("keydown",this.trackKeyboardModality,true);document.addEventListener("pointerdown",this.trackPointerModality,true)}componentDidLoad(){if(this.open){this.applyDepthZIndex()}this.wireItemObserver();this.updateEmpty();this.propagateVariant()}onEmptyTextChange(){this.updateEmpty()}onVariantChange(){this.propagateVariant()}async setVirtualProvider(e){this.provider=e??undefined;this.listboxMode=!!this.provider}async getScrollViewport(){return this.el.shadowRoot?.querySelector(".md-menu__scroll-shadow")??null}async show(e){clearTimeout(this.closeTimer);this.closing=false;if(this.anchor)this.collapseSubmenus();this.skipAutoFocus=e?.autoFocus===false;this.open=true;this.applyDepthZIndex()}async reposition(){if(this.open)this.positionMenu()}async close(){if(!this.open||this.closing)return;if(this.quick){this.open=false;return}this.closing=true;this.closeTimer=setTimeout((()=>{this.closing=false;this.open=false}),d)}onOpenChange(e){if(e){this.openedViaKeyboard=this.keyboardModality;this.dismissPeerMenus();this.applyDepthZIndex();requestAnimationFrame((()=>this.positionMenu()));this.mdOpen.emit();this.updateAnchorAria(true);if(this.anchor){requestAnimationFrame((()=>{document.addEventListener("click",this.handleOutsideClick);document.addEventListener("keydown",this.handleDocumentKeyDown)}));window.addEventListener("scroll",this.handleScroll,true);window.addEventListener("resize",this.handleScroll);this.observeSurfaceResize()}if(this.skipAutoFocus||!this.autoFocus){this.scheduleFocus((()=>this.initRovingTabindex()))}else{this.scheduleFocus((()=>this.focusFirstItem()))}this.skipAutoFocus=false}else{this.mdClose.emit();this.focusedIndex=-1;this.updateAnchorAria(false);this.resetRovingTabindex();this.collapseSubmenus();if(this.anchor){document.removeEventListener("click",this.handleOutsideClick);document.removeEventListener("keydown",this.handleDocumentKeyDown);window.removeEventListener("scroll",this.handleScroll,true);window.removeEventListener("resize",this.handleScroll)}this.unobserveSurfaceResize()}}observeSurfaceResize(){if(typeof ResizeObserver==="undefined")return;const e=this.el.shadowRoot?.querySelector(".md-menu__surface");if(!e)return;this.lastSurfaceSize="";this.surfaceRO=new ResizeObserver((e=>{if(!this.open)return;const t=e[e.length-1]?.contentRect;if(!t)return;const s=`${Math.round(t.width)}x${Math.round(t.height)}`;if(s===this.lastSurfaceSize)return;this.lastSurfaceSize=s;this.positionMenu()}));this.surfaceRO.observe(e)}unobserveSurfaceResize(){this.surfaceRO?.disconnect();this.surfaceRO=undefined}handleFocusIn(e){if(!this.open)return;const t=e.target;if(this.provider){const e=t.closest("md-menu-item");const s=e?.getAttribute("data-vindex");if(e&&s!=null){const t=parseInt(s,10);if(!isNaN(t)&&t!==this.focusedIndex){const s=this.focusedIndex>=0?this.provider.domItemForIndex(this.focusedIndex):null;s?.setAttribute("tabindex","-1");this.focusedIndex=t;e.setAttribute("tabindex","0");if(this.ringedIndex>=0&&this.ringedIndex!==t){const e=this.provider.domItemForIndex(this.ringedIndex);e?.removeAttribute("data-md-focused")}this.ringedIndex=-1}}return}const s=this.getMenuItems();const i=s.indexOf(t);if(i>=0&&i!==this.focusedIndex){if(this.focusedIndex>=0&&this.focusedIndex<s.length){s[this.focusedIndex].setAttribute("tabindex","-1")}this.focusedIndex=i;t.setAttribute("tabindex","0")}}handleKeyDown(e){if(!this.open)return;const t=e.target;if(t&&t.closest("md-menu")!==this.el)return;if(this.provider){this.handleKeyDownVirtual(e);return}const s=this.getMenuItems();if(!s.length)return;switch(e.key){case"ArrowDown":e.preventDefault();this.focusItem(s,this.focusedIndex+1);break;case"ArrowUp":e.preventDefault();this.focusItem(s,this.focusedIndex-1);break;case"Home":e.preventDefault();this.focusItem(s,0);break;case"End":e.preventDefault();this.focusItem(s,s.length-1);break;case"Escape":e.preventDefault();this.close();this.restoreFocusToAnchor();break;case"Tab":e.stopPropagation();this.closeEntireMenuTree();this.restoreFocusToAnchor();break;default:if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.shiftKey){this.handleTypeahead(e.key,s)}break}}handleKeyDownVirtual(e){const t=this.provider;const s=t.count();const i=e.target?.tagName==="INPUT";switch(e.key){case"ArrowDown":e.preventDefault();this.focusVirtual(this.nextEnabled(this.focusedIndex,1,s));break;case"ArrowUp":e.preventDefault();this.focusVirtual(this.nextEnabled(this.focusedIndex,-1,s));break;case"Home":e.preventDefault();this.focusVirtual(this.nextEnabled(-1,1,s));break;case"End":e.preventDefault();this.focusVirtual(this.nextEnabled(s,-1,s));break;case"Enter":if(this.comboboxEl&&this.focusedIndex>=0){e.preventDefault();this.provider.domItemForIndex(this.focusedIndex)?.click()}break;case"Escape":e.preventDefault();this.close();this.restoreFocusToAnchor();break;case"Tab":e.stopPropagation();this.closeEntireMenuTree();this.restoreFocusToAnchor();break;default:if(!i&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.shiftKey){this.handleTypeaheadVirtual(e.key)}break}}nextEnabled(e,t,s){if(s<=0)return-1;let i=e;for(let e=0;e<s;e++){i+=t;if(i<0)i=s-1;else if(i>=s)i=0;if(!this.provider.isDisabledAt(i))return i}return e>=0&&e<s?e:-1}async focusVirtual(e,t=true){if(e<0)return;const s=this.provider;const i=++this.navSeq;this.focusedIndex=e;await s.ensureVisible(e);if(i!==this.navSeq)return;const n=s.domItemForIndex(e);if(!n)return;if(this.ringedIndex>=0&&this.ringedIndex!==e){const e=s.domItemForIndex(this.ringedIndex);e?.setAttribute("tabindex","-1");e?.removeAttribute("data-md-focused")}if(t){n.setAttribute("data-md-focused","");this.ringedIndex=e}else{n.removeAttribute("data-md-focused");this.ringedIndex=-1}if(this.comboboxEl){n.id||(n.id=`${this.menuId}-opt-${e}`);if(n.id)this.comboboxEl.setAttribute("aria-activedescendant",n.id)}else{n.setAttribute("tabindex","0");n.focus({preventScroll:true})}}handleTypeaheadVirtual(e){clearTimeout(this.typeaheadTimer);this.typeaheadBuffer+=e.toLowerCase();this.typeaheadTimer=setTimeout((()=>{this.typeaheadBuffer=""}),o);const t=this.typeaheadBuffer.length===1?this.focusedIndex+1:this.focusedIndex;const s=this.provider.findPrefix(this.typeaheadBuffer,t<0?0:t);if(s>=0)this.focusVirtual(s)}getMenuItems(){const e=Array.from(this.el.querySelectorAll("md-menu-item, md-sub-menu-item"));return e.filter((e=>e.closest("md-menu")===this.el))}getItemLabel(e){return e.headline||e.textContent?.trim()||""}handleTypeahead(e,t){clearTimeout(this.typeaheadTimer);this.typeaheadBuffer+=e.toLowerCase();this.typeaheadTimer=setTimeout((()=>{this.typeaheadBuffer=""}),o);const s=this.typeaheadBuffer.length===1?this.focusedIndex+1:this.focusedIndex;for(let e=0;e<t.length;e++){const i=(s+e)%t.length;const n=this.getItemLabel(t[i]).toLowerCase();if(n.startsWith(this.typeaheadBuffer)){this.focusItem(t,i);return}}}focusItem(e,t,s=true){if(e.length===0)return;if(t<0)t=e.length-1;if(t>=e.length)t=0;if(this.focusedIndex>=0&&this.focusedIndex<e.length){e[this.focusedIndex].setAttribute("tabindex","-1");e[this.focusedIndex].removeAttribute("data-md-focused")}this.focusedIndex=t;e[t].setAttribute("tabindex","0");if(s){e[t].setAttribute("data-md-focused","")}else{e[t].removeAttribute("data-md-focused")}e[t].focus()}initRovingTabindex(){if(this.provider){this.focusedIndex=-1;return}const e=this.getMenuItems();e.forEach(((e,t)=>{e.setAttribute("tabindex",t===0?"0":"-1")}));this.focusedIndex=0}resetRovingTabindex(){if(this.provider){const e=this.focusedIndex>=0?this.provider.domItemForIndex(this.focusedIndex):null;e?.setAttribute("tabindex","-1");e?.removeAttribute("data-md-focused");if(this.ringedIndex>=0&&this.ringedIndex!==this.focusedIndex){const e=this.provider.domItemForIndex(this.ringedIndex);e?.setAttribute("tabindex","-1");e?.removeAttribute("data-md-focused")}this.ringedIndex=-1;this.comboboxEl?.removeAttribute("aria-activedescendant");return}const e=this.getMenuItems();e.forEach((e=>{e.setAttribute("tabindex","-1");e.removeAttribute("data-md-focused")}))}collapseSubmenus(){const e=Array.from(this.el.querySelectorAll("md-sub-menu-item"));e.forEach((e=>e.collapse?.()));const t=Array.from(this.el.querySelectorAll("md-menu-item, md-sub-menu-item"));t.forEach((e=>{e.removeAttribute("data-md-focused");e.setAttribute("tabindex","-1")}))}scheduleFocus(e){setTimeout((()=>requestAnimationFrame((()=>e()))),0)}focusFirstItem(e=3){if(this.provider){const t=this.provider.count();if(t>0){this.focusVirtual(this.nextEnabled(-1,1,t),this.openedViaKeyboard)}else if(e>0){this.scheduleFocus((()=>this.focusFirstItem(e-1)))}return}const t=this.getMenuItems();if(t.length){this.focusItem(t,0,this.openedViaKeyboard)}else if(e>0){this.scheduleFocus((()=>this.focusFirstItem(e-1)))}}getAnchorEl(e=this.anchor){if(!e)return null;const t=this.el.getRootNode();return t.getElementById?.(e)??document.getElementById(e)}updateAnchorAria(e){if(!this.anchor)return;const t=this.getAnchorEl();if(!t)return;const s=t.getAttribute("role");const i=s!==null?h.has(s):c.has(t.tagName)||t.tagName==="A"&&t.hasAttribute("href");if(e){t.setAttribute("aria-haspopup",this.asListbox?"listbox":"menu");if(!this.asListbox)t.setAttribute("aria-controls",this.menuId)}if(i)t.setAttribute("aria-expanded",e?"true":"false");else t.removeAttribute("aria-expanded")}applyDepthZIndex(){if(!this.anchor)return;this.el.style.zIndex="var(--md-sys-z-index-popup, 1000)"}positionMenu(){if(!this.anchor)return;const e=this.getAnchorEl();if(!e)return;const t=e.getBoundingClientRect();const s=this.el.shadowRoot?.querySelector(".md-menu__surface");if(!s)return;const i=4;s.style.minWidth=this.matchAnchorWidth?`${t.width}px`:"";this.el.style.top="0";this.el.style.left="0";this.el.style.right="auto";this.el.style.bottom="auto";const n=s.offsetWidth;let r=s.offsetHeight;if(n===0||r===0){requestAnimationFrame((()=>this.positionMenu()));return}const a=window.innerWidth;const d=window.innerHeight;const o=m;if(this.responsive&&a<=u){const e=s.offsetHeight;let n=t.bottom+i;if(n+e+o>d&&t.top-i-e>=o){n=t.top-i-e;s.style.transformOrigin="bottom left"}else{s.style.transformOrigin="top left"}n=Math.max(o,Math.min(n,d-e-o));this.el.style.top=`${n}px`;this.el.style.left=`${o}px`;return}let h=this.placement.startsWith("bottom")?"bottom":"top";let c=this.placement.endsWith("start")?"start":"end";const l=d-t.bottom-i-o;const f=t.top-i-o;if(h==="bottom"&&r>l){if(r<=f||this.scrollCapped&&f>l)h="top"}else if(h==="top"&&r>f){if(r<=l||this.scrollCapped&&l>f)h="bottom"}if(c==="start"&&t.left+n>a){if(t.right-n>=0)c="end"}else if(c==="end"&&t.right-n<0){if(t.left+n<=a)c="start"}if(this.scrollCapped){const e=h==="bottom"?l:f;const t=s.querySelector(".md-menu__scroll-shadow");const i=s.offsetHeight-(t?.offsetHeight??0);this.el.style.setProperty("--md-menu-avail-block",`${Math.max(48,e-i)}px`);r=s.offsetHeight}else{this.el.style.removeProperty("--md-menu-avail-block")}const p=h==="bottom"?"top":"bottom";const b=c==="start"?"left":"right";s.style.transformOrigin=`${p} ${b}`;const x=h==="bottom"?t.bottom+i:t.top-i-r;const v=c==="start"?t.left:t.right-n;const y=Math.max(o,Math.min(v,a-n-o));const g=Math.max(o,Math.min(x,d-r-o));this.el.style.top=`${g}px`;this.el.style.left=`${y}px`}restoreFocusToAnchor(){if(!this.anchor)return;const e=this.getAnchorEl();e?.focus()}closeEntireMenuTree(){let e=this.el;let t=this.el;while(t){const s=t.parentElement?.closest("md-menu");if(s){e=s;t=s}else{break}}const s=e.querySelectorAll("md-menu-item, md-sub-menu-item");s.forEach((e=>e.setAttribute("tabindex","-1")));if(e.close)e.close();const i=e.anchor;if(i){const t=e.getRootNode();const s=t.getElementById?.(i)??document.getElementById(i);s?.focus()}}dismissPeerMenus(){if(this.persistent)return;if(typeof document==="undefined")return;const e=Array.from(document.querySelectorAll("md-menu"));for(const t of e){if(t===this.el)continue;if(!t.open)continue;if(t.persistent)continue;if(t.contains(this.el))continue;if(this.el.contains(t))continue;t.close()}}isHidden(e){if(e.hasAttribute("hidden"))return true;if(e.style.display==="none")return true;return false}hasVisibleItem(e){if(this.isHidden(e))return false;const t=e.tagName.toLowerCase();if(t==="md-menu-item"||t==="md-sub-menu-item")return true;if(t==="md-menu-item-group"){return Array.from(e.children).some((e=>this.hasVisibleItem(e)))}return false}updateEmpty(){if(!this.emptyText){this.empty=false;return}const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();this.empty=!t.some((e=>this.hasVisibleItem(e)))}wireItemObserver(){this.itemObserver?.disconnect();if(typeof MutationObserver==="undefined")return;const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();if(t.length===0)return;this.itemObserver=new MutationObserver((()=>this.updateEmpty()));for(const e of t){this.itemObserver.observe(e,{attributes:true,attributeFilter:["style","hidden"],subtree:true})}}getContentSlot(){const e=this.el.shadowRoot;if(!e)return null;const t=Array.from(e.querySelectorAll("slot"));return t.find((e=>!e.getAttribute("name")))??null}propagateVariant(){const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();for(const e of t){e.setAttribute("data-variant",this.variant);if(e.tagName.toLowerCase()==="md-menu-item-group"){if(this.useGap){e.setAttribute("data-use-gap","")}else{e.removeAttribute("data-use-gap")}const t=e.querySelectorAll("md-menu-item, md-sub-menu-item");for(const e of Array.from(t)){e.setAttribute("data-variant",this.variant)}}}}updateSections(){const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();let s=false;let i=false;for(const e of t){if(i){e.setAttribute("data-after-gap","");i=false}else{e.removeAttribute("data-after-gap")}if(e.hasAttribute("gap")){s=true;i=true}}this.sectioned=s}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick);document.removeEventListener("keydown",this.handleDocumentKeyDown);document.removeEventListener("keydown",this.trackKeyboardModality,true);document.removeEventListener("pointerdown",this.trackPointerModality,true);window.removeEventListener("scroll",this.handleScroll,true);window.removeEventListener("resize",this.handleScroll);clearTimeout(this.closeTimer);clearTimeout(this.typeaheadTimer);this.itemObserver?.disconnect();this.itemObserver=undefined;this.unobserveSurfaceResize();this.updateAnchorAria(false)}get inlineFill(){return this.el.classList.contains("md-menu--inline-fill")}get maxHeightValue(){if(this.maxHeight===undefined||this.maxHeight===null||this.maxHeight===""){return null}const e=String(this.maxHeight);return/^\d+(\.\d+)?$/.test(e)?`${e}px`:e}get scrollCapped(){return!this.hasSubmenu&&!this.inlineFill}get useScrollViewport(){return this.inlineFill||this.scrollCapped}renderMenuBody(){return[n("slot",{onSlotchange:this.handleSlotChange}),this.emptyText?n("span",{class:"md-menu__empty",part:"empty-text",role:"status"},this.emptyText):null]}render(){return n(r,{key:"349ce271693310ea70aa98cb3980029e3afa1594",class:{"md-menu":true,"md-menu--open":this.open,"md-menu--closing":this.closing,"md-menu--quick":this.quick,[`md-menu--${this.variant}`]:true,[`md-menu--${this.layout}`]:this.variant!=="baseline","md-menu--gap":this.useGap,"md-menu--sectioned":this.sectioned,"md-menu--empty":this.empty,"md-menu--responsive":this.responsive,"md-menu--has-submenu":this.hasSubmenu,"md-menu--scroll":this.scrollCapped},"aria-hidden":!this.open||this.closing?"true":"false",inert:!this.open||this.closing},n("div",{key:"9a3e0ab8f4586b4164412fe972acbbf4cbc3000a",class:"md-menu__surface",part:"surface",role:this.asListbox?"presentation":"menu",id:this.menuId,"aria-orientation":this.asListbox?undefined:"vertical","aria-labelledby":this.asListbox?undefined:this.anchor||undefined},n("slot",{key:"abf20ee5e25dfcc174f8aa45814b6603b77e1c65",name:"header"}),this.useScrollViewport?n("div",{class:"md-menu__scroll-shadow",part:"menu-viewport",tabindex:this.asListbox?"0":undefined,style:this.inlineFill?undefined:{maxBlockSize:this.maxHeightValue?`min(${this.maxHeightValue}, var(--md-menu-avail-block, 100dvh), calc(100dvh - 2 * var(--md-menu-viewport-margin, 8px)))`:`min(var(--md-menu-avail-block, 100dvh), calc(100dvh - 2 * var(--md-menu-viewport-margin, 8px)))`}},this.renderMenuBody()):this.renderMenuBody()))}get el(){return this}static get watchers(){return{emptyText:[{onEmptyTextChange:0}],variant:[{onVariantChange:0}],useGap:[{onVariantChange:0}],open:[{onOpenChange:0}]}}static get style(){return a()}},[257,"md-menu",{open:[1540],anchor:[1],placement:[513],quick:[4],variant:[513],layout:[513],useGap:[516,"use-gap"],emptyText:[1,"empty-text"],matchAnchorWidth:[516,"match-anchor-width"],responsive:[516],persistent:[516],autoFocus:[516,"auto-focus"],maxHeight:[8,"max-height"],listLabel:[1,"list-label"],listbox:[516],density:[514],closing:[32],sectioned:[32],empty:[32],hasSubmenu:[32],listboxMode:[32],setComboboxElement:[64],setVirtualProvider:[64],getScrollViewport:[64],show:[64],reposition:[64],close:[64]},[[0,"focusin","handleFocusIn"],[0,"keydown","handleKeyDown"]],{emptyText:[{onEmptyTextChange:0}],variant:[{onVariantChange:0}],useGap:[{onVariantChange:0}],open:[{onOpenChange:0}]}]);function p(){if(typeof customElements==="undefined"){return}const t=["md-menu"];t.forEach((t=>{switch(t){case"md-menu":if(!customElements.get(e(t))){customElements.define(e(t),f)}break}}))}p();export{f as M,p as d};
2
- //# sourceMappingURL=p-G5m2pHZ2.js.map
1
+ import{p as e,H as t,c as s,h as i,d as n,t as r}from"./p-MWBNn6Lj.js";const a=()=>`:host{display:block;position:fixed;z-index:auto;pointer-events:none}:host(.md-menu--open){pointer-events:auto}.md-menu__surface{background-color:var(--md-sys-color-surface-container, #F7F2FA);border-radius:var(--md-sys-shape-corner-small, 8px);box-shadow:0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);min-width:var(--md-menu-min-width, 112px);max-width:min( var(--md-menu-max-width, 100vw), calc(100vw - 2 * var(--md-menu-viewport-margin, 8px)) );padding:var(--md-sys-spacing-inset-xs, 4px) 0;overflow:visible;opacity:0;transform:scaleY(0.8);transform-origin:top left;transition:opacity var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1)), transform var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1))}:host(.md-menu--open) .md-menu__surface{opacity:1;transform:none}:host(.md-menu--closing) .md-menu__surface{opacity:0;transform:scaleY(0.8);transition:opacity var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)), transform var(--md-sys-motion-duration-short3, 150ms) var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15))}:host(.md-menu--closing){pointer-events:none}:host(.md-menu--quick) .md-menu__surface{transition:none}:host(.md-menu--inline-fill){position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-block-size:0;block-size:100%;inline-size:100%;pointer-events:auto}:host(.md-menu--inline-fill) .md-menu__surface{flex:1 1 auto;block-size:100%;min-block-size:0;min-inline-size:100%;max-inline-size:none;display:flex;flex-direction:column;overflow:hidden;box-shadow:none;border:none;outline:none;padding:0;border-radius:0;border-end-start-radius:var(--md-menu-inline-fill-radius-end, 0);border-end-end-radius:var(--md-menu-inline-fill-radius-end, 0);background-color:var(--md-menu-inline-surface-color, transparent)}:host(.md-menu--inline-fill) .md-menu__scroll-shadow{flex:1 1 auto;min-block-size:0;block-size:100%}:host(.md-menu--inline-fill) .md-menu__surface ::slotted(md-menu-item:last-child){border-end-start-radius:var(--md-menu-inline-fill-radius-end, 0);border-end-end-radius:var(--md-menu-inline-fill-radius-end, 0)}:host(.md-menu--scroll):not(.md-menu--has-submenu) .md-menu__surface{overflow:hidden}:host(.md-menu--scroll) .md-menu__scroll-shadow{min-block-size:0}.md-menu__scroll-shadow{overflow-y:auto;overflow-anchor:none}:host([match-anchor-width]) .md-menu__surface{max-width:calc(100vw - 2 * var(--md-menu-viewport-margin, 8px));box-sizing:border-box}:host(:not(.md-menu--has-submenu):not(.md-menu--inline-fill):not(.md-menu--scroll)) .md-menu__surface{max-height:calc(100dvh - 2 * var(--md-menu-viewport-margin, 8px));overflow-y:auto;overscroll-behavior:contain}@media (max-width: 600px){:host(.md-menu--responsive) .md-menu__surface{width:calc(100vw - 2 * var(--md-menu-viewport-margin, 8px));min-width:0;max-width:none;box-sizing:border-box}}:host([placement="bottom-start"]) .md-menu__surface{transform-origin:top left}:host([placement="bottom-end"]) .md-menu__surface{transform-origin:top right}:host([placement="top-start"]) .md-menu__surface{transform-origin:bottom left}:host([placement="top-end"]) .md-menu__surface{transform-origin:bottom right}:host(.md-menu--standard) .md-menu__surface{background-color:var(--md-sys-color-surface-container-low, #F7F2FA);border-radius:var(--md-sys-shape-corner-large, 16px);box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 8px 3px rgba(0, 0, 0, 0.08);padding:var(--md-sys-spacing-inset-xs, 4px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item){border-radius:var(--md-sys-shape-corner-small, 8px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:first-child),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:first-child){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:last-child),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:last-child){border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:hover),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:hover){border-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:active),:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item.md-menu-item--selected),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:active){border-radius:var(--md-sys-shape-corner-medium, 12px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:first-child:hover),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:first-child:hover){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px);border-end-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-end-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--standard) .md-menu__surface ::slotted(md-menu-item:last-child:hover),:host(.md-menu--standard) .md-menu__surface ::slotted(md-sub-menu-item:last-child:hover){border-start-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-start-end-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--vibrant) .md-menu__surface{background-color:var(--md-sys-color-tertiary-container, #FFD8E4);border-radius:var(--md-sys-shape-corner-large, 16px);box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 8px 3px rgba(0, 0, 0, 0.08);padding:var(--md-sys-spacing-inset-xs, 4px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item){border-radius:var(--md-sys-shape-corner-small, 8px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:first-child),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:first-child){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:last-child),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:last-child){border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:hover),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:hover){border-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:active),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item.md-menu-item--selected),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:active){border-radius:var(--md-sys-shape-corner-medium, 12px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:first-child:hover),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:first-child:hover){border-start-start-radius:var(--md-sys-shape-corner-large, 16px);border-start-end-radius:var(--md-sys-shape-corner-large, 16px);border-end-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-end-radius:var(--md-sys-shape-corner-extra-small, 4px)}:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-menu-item:last-child:hover),:host(.md-menu--vibrant) .md-menu__surface ::slotted(md-sub-menu-item:last-child:hover){border-start-start-radius:var(--md-sys-shape-corner-extra-small, 4px);border-start-end-radius:var(--md-sys-shape-corner-extra-small, 4px);border-end-start-radius:var(--md-sys-shape-corner-large, 16px);border-end-end-radius:var(--md-sys-shape-corner-large, 16px)}:host(.md-menu--gap) .md-menu__surface{gap:var(--md-sys-spacing-gap-xs, 4px);display:flex;flex-direction:column}:host(.md-menu--grouped.md-menu--gap.md-menu--standard) .md-menu__surface,:host(.md-menu--grouped.md-menu--gap.md-menu--vibrant) .md-menu__surface{background-color:transparent;box-shadow:none;overflow:visible;display:flex;flex-direction:column;gap:var(--md-menu-group-gap, 4px);padding:0;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1))}:host(.md-menu--grouped.md-menu--gap) .md-menu__surface ::slotted(md-menu-item-group),:host(.md-menu--grouped.md-menu--gap) .md-menu__scroll-shadow ::slotted(md-menu-item-group){flex-shrink:0}:host(.md-menu--grouped.md-menu--gap) .md-menu__scroll-shadow{display:flex;flex-direction:column;row-gap:var(--md-menu-group-gap, 4px)}:host(.md-menu--sectioned.md-menu--baseline) .md-menu__surface ::slotted([gap]){margin-bottom:var(--md-menu-section-gap, 2px)}.md-menu__empty{display:none;padding:var(--md-sys-spacing-inset-md, 12px) var(--md-sys-spacing-inset-lg, 16px);font-family:var(--md-sys-typescale-body-medium-font-family, Roboto, sans-serif);font-size:var(--md-sys-typescale-body-medium-size, 14px);line-height:var(--md-sys-typescale-body-medium-line-height, 20px);color:var(--md-sys-color-on-surface-variant, #49454F);text-align:center}:host(.md-menu--empty) .md-menu__empty{display:block}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}`;const d=150;const o=500;const m=8;const u=600;const h=new Set(["button","combobox","link","menuitem","tab","treeitem","checkbox","gridcell","row","rowheader","columnheader"]);const c=new Set(["BUTTON","SUMMARY"]);let l=0;const f=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.mdOpen=s(this,"mdOpen",1);this.mdClose=s(this,"mdClose",1);this.open=false;this.anchor="";this.placement="bottom-start";this.quick=false;this.variant="baseline";this.layout="standard";this.useGap=false;this.emptyText="";this.matchAnchorWidth=false;this.responsive=false;this.persistent=false;this.autoFocus=true;this.closing=false;this.sectioned=false;this.empty=false;this.hasSubmenu=false;this.focusedIndex=-1;this.navSeq=0;this.ringedIndex=-1;this.skipAutoFocus=false;this.menuId=`md-menu-${++l}`;this.typeaheadBuffer="";this.keyboardModality=false;this.openedViaKeyboard=false;this.listboxMode=false;this.listbox=false;this.density=0;this.trackKeyboardModality=()=>{this.keyboardModality=true};this.trackPointerModality=()=>{this.keyboardModality=false};this.lastSurfaceSize="";this.handleOutsideClick=e=>{if(this.persistent)return;const t=e.composedPath();if(!t.includes(this.el)){this.close()}};this.handleDocumentKeyDown=e=>{if(e.key==="Escape"&&this.open){this.close();this.restoreFocusToAnchor()}};this.handleScroll=()=>{if(this.open&&!this.closing){this.positionMenu()}};this.handleSlotChange=()=>{this.updateSections();this.propagateVariant();this.wireItemObserver();this.updateEmpty();this.hasSubmenu=!!this.el.querySelector("md-sub-menu-item")}}get asListbox(){return this.listbox||this.listboxMode}async setComboboxElement(e){if(this.comboboxEl&&this.comboboxEl!==e){this.comboboxEl.removeAttribute("aria-activedescendant")}this.comboboxEl=e??undefined}connectedCallback(){if(typeof document==="undefined")return;document.addEventListener("keydown",this.trackKeyboardModality,true);document.addEventListener("pointerdown",this.trackPointerModality,true)}componentDidLoad(){if(this.open){this.applyDepthZIndex()}this.wireItemObserver();this.updateEmpty();this.propagateVariant()}onEmptyTextChange(){this.updateEmpty()}onVariantChange(){this.propagateVariant()}async setVirtualProvider(e){this.provider=e??undefined;this.listboxMode=!!this.provider}async getScrollViewport(){return this.el.shadowRoot?.querySelector(".md-menu__scroll-shadow")??null}async show(e){clearTimeout(this.closeTimer);this.closing=false;if(this.anchor)this.collapseSubmenus();this.skipAutoFocus=e?.autoFocus===false;this.open=true;this.applyDepthZIndex()}async reposition(){if(this.open)this.positionMenu()}async close(){if(!this.open||this.closing)return;if(this.quick){this.open=false;return}this.closing=true;this.closeTimer=setTimeout((()=>{this.closing=false;this.open=false}),d)}onOpenChange(e){if(e){this.openedViaKeyboard=this.keyboardModality;this.dismissPeerMenus();this.applyDepthZIndex();requestAnimationFrame((()=>this.positionMenu()));this.mdOpen.emit();this.updateAnchorAria(true);if(this.anchor){requestAnimationFrame((()=>{document.addEventListener("click",this.handleOutsideClick);document.addEventListener("keydown",this.handleDocumentKeyDown)}));window.addEventListener("scroll",this.handleScroll,true);window.addEventListener("resize",this.handleScroll);this.observeSurfaceResize()}if(this.skipAutoFocus||!this.autoFocus){this.scheduleFocus((()=>this.initRovingTabindex()))}else{this.scheduleFocus((()=>this.focusFirstItem()))}this.skipAutoFocus=false}else{this.mdClose.emit();this.focusedIndex=-1;this.updateAnchorAria(false);this.resetRovingTabindex();this.collapseSubmenus();if(this.anchor){document.removeEventListener("click",this.handleOutsideClick);document.removeEventListener("keydown",this.handleDocumentKeyDown);window.removeEventListener("scroll",this.handleScroll,true);window.removeEventListener("resize",this.handleScroll)}this.unobserveSurfaceResize()}}observeSurfaceResize(){if(typeof ResizeObserver==="undefined")return;const e=this.el.shadowRoot?.querySelector(".md-menu__surface");if(!e)return;this.lastSurfaceSize="";this.surfaceRO=new ResizeObserver((e=>{if(!this.open)return;const t=e[e.length-1]?.contentRect;if(!t)return;const s=`${Math.round(t.width)}x${Math.round(t.height)}`;if(s===this.lastSurfaceSize)return;this.lastSurfaceSize=s;this.positionMenu()}));this.surfaceRO.observe(e)}unobserveSurfaceResize(){this.surfaceRO?.disconnect();this.surfaceRO=undefined}handleFocusIn(e){if(!this.open)return;const t=e.target;if(this.provider){const e=t.closest("md-menu-item");const s=e?.getAttribute("data-vindex");if(e&&s!=null){const t=parseInt(s,10);if(!isNaN(t)&&t!==this.focusedIndex){const s=this.focusedIndex>=0?this.provider.domItemForIndex(this.focusedIndex):null;s?.setAttribute("tabindex","-1");this.focusedIndex=t;e.setAttribute("tabindex","0");if(this.ringedIndex>=0&&this.ringedIndex!==t){const e=this.provider.domItemForIndex(this.ringedIndex);e?.removeAttribute("data-md-focused")}this.ringedIndex=-1}}return}const s=this.getMenuItems();const i=s.indexOf(t);if(i>=0&&i!==this.focusedIndex){if(this.focusedIndex>=0&&this.focusedIndex<s.length){s[this.focusedIndex].setAttribute("tabindex","-1")}this.focusedIndex=i;t.setAttribute("tabindex","0")}}handleKeyDown(e){if(!this.open)return;const t=e.target;if(t&&t.closest("md-menu")!==this.el)return;if(this.provider){this.handleKeyDownVirtual(e);return}const s=this.getMenuItems();if(!s.length)return;switch(e.key){case"ArrowDown":e.preventDefault();this.focusItem(s,this.focusedIndex+1);break;case"ArrowUp":e.preventDefault();this.focusItem(s,this.focusedIndex-1);break;case"Home":e.preventDefault();this.focusItem(s,0);break;case"End":e.preventDefault();this.focusItem(s,s.length-1);break;case"Escape":e.preventDefault();this.close();this.restoreFocusToAnchor();break;case"Tab":e.stopPropagation();this.closeEntireMenuTree();this.restoreFocusToAnchor();break;default:if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.shiftKey){this.handleTypeahead(e.key,s)}break}}handleKeyDownVirtual(e){const t=this.provider;const s=t.count();const i=e.target?.tagName==="INPUT";switch(e.key){case"ArrowDown":e.preventDefault();this.focusVirtual(this.nextEnabled(this.focusedIndex,1,s));break;case"ArrowUp":e.preventDefault();this.focusVirtual(this.nextEnabled(this.focusedIndex,-1,s));break;case"Home":e.preventDefault();this.focusVirtual(this.nextEnabled(-1,1,s));break;case"End":e.preventDefault();this.focusVirtual(this.nextEnabled(s,-1,s));break;case"Enter":if(this.comboboxEl&&this.focusedIndex>=0){e.preventDefault();this.provider.domItemForIndex(this.focusedIndex)?.click()}break;case"Escape":e.preventDefault();this.close();this.restoreFocusToAnchor();break;case"Tab":e.stopPropagation();this.closeEntireMenuTree();this.restoreFocusToAnchor();break;default:if(!i&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.shiftKey){this.handleTypeaheadVirtual(e.key)}break}}nextEnabled(e,t,s){if(s<=0)return-1;let i=e;for(let e=0;e<s;e++){i+=t;if(i<0)i=s-1;else if(i>=s)i=0;if(!this.provider.isDisabledAt(i))return i}return e>=0&&e<s?e:-1}async focusVirtual(e,t=true){if(e<0)return;const s=this.provider;const i=++this.navSeq;this.focusedIndex=e;await s.ensureVisible(e);if(i!==this.navSeq)return;const n=s.domItemForIndex(e);if(!n)return;if(this.ringedIndex>=0&&this.ringedIndex!==e){const e=s.domItemForIndex(this.ringedIndex);e?.setAttribute("tabindex","-1");e?.removeAttribute("data-md-focused")}if(t){n.setAttribute("data-md-focused","");this.ringedIndex=e}else{n.removeAttribute("data-md-focused");this.ringedIndex=-1}if(this.comboboxEl){n.id||(n.id=`${this.menuId}-opt-${e}`);if(n.id)this.comboboxEl.setAttribute("aria-activedescendant",n.id)}else{n.setAttribute("tabindex","0");n.focus({preventScroll:true})}}handleTypeaheadVirtual(e){clearTimeout(this.typeaheadTimer);this.typeaheadBuffer+=e.toLowerCase();this.typeaheadTimer=setTimeout((()=>{this.typeaheadBuffer=""}),o);const t=this.typeaheadBuffer.length===1?this.focusedIndex+1:this.focusedIndex;const s=this.provider.findPrefix(this.typeaheadBuffer,t<0?0:t);if(s>=0)this.focusVirtual(s)}getMenuItems(){const e=Array.from(this.el.querySelectorAll("md-menu-item, md-sub-menu-item"));return e.filter((e=>e.closest("md-menu")===this.el))}getItemLabel(e){return e.headline||e.textContent?.trim()||""}handleTypeahead(e,t){clearTimeout(this.typeaheadTimer);this.typeaheadBuffer+=e.toLowerCase();this.typeaheadTimer=setTimeout((()=>{this.typeaheadBuffer=""}),o);const s=this.typeaheadBuffer.length===1?this.focusedIndex+1:this.focusedIndex;for(let e=0;e<t.length;e++){const i=(s+e)%t.length;const n=this.getItemLabel(t[i]).toLowerCase();if(n.startsWith(this.typeaheadBuffer)){this.focusItem(t,i);return}}}focusItem(e,t,s=true){if(e.length===0)return;if(t<0)t=e.length-1;if(t>=e.length)t=0;if(this.focusedIndex>=0&&this.focusedIndex<e.length){e[this.focusedIndex].setAttribute("tabindex","-1");e[this.focusedIndex].removeAttribute("data-md-focused")}this.focusedIndex=t;e[t].setAttribute("tabindex","0");if(s){e[t].setAttribute("data-md-focused","")}else{e[t].removeAttribute("data-md-focused")}e[t].focus()}initRovingTabindex(){if(this.provider){this.focusedIndex=-1;return}const e=this.getMenuItems();e.forEach(((e,t)=>{e.setAttribute("tabindex",t===0?"0":"-1")}));this.focusedIndex=0}resetRovingTabindex(){if(this.provider){const e=this.focusedIndex>=0?this.provider.domItemForIndex(this.focusedIndex):null;e?.setAttribute("tabindex","-1");e?.removeAttribute("data-md-focused");if(this.ringedIndex>=0&&this.ringedIndex!==this.focusedIndex){const e=this.provider.domItemForIndex(this.ringedIndex);e?.setAttribute("tabindex","-1");e?.removeAttribute("data-md-focused")}this.ringedIndex=-1;this.comboboxEl?.removeAttribute("aria-activedescendant");return}const e=this.getMenuItems();e.forEach((e=>{e.setAttribute("tabindex","-1");e.removeAttribute("data-md-focused")}))}collapseSubmenus(){const e=Array.from(this.el.querySelectorAll("md-sub-menu-item"));e.forEach((e=>e.collapse?.()));const t=Array.from(this.el.querySelectorAll("md-menu-item, md-sub-menu-item"));t.forEach((e=>{e.removeAttribute("data-md-focused");e.setAttribute("tabindex","-1")}))}scheduleFocus(e){setTimeout((()=>requestAnimationFrame((()=>e()))),0)}focusFirstItem(e=3){if(this.provider){const t=this.provider.count();if(t>0){this.focusVirtual(this.nextEnabled(-1,1,t),this.openedViaKeyboard)}else if(e>0){this.scheduleFocus((()=>this.focusFirstItem(e-1)))}return}const t=this.getMenuItems();if(t.length){this.focusItem(t,0,this.openedViaKeyboard)}else if(e>0){this.scheduleFocus((()=>this.focusFirstItem(e-1)))}}getAnchorEl(e=this.anchor){if(!e)return null;const t=this.el.getRootNode();return t.getElementById?.(e)??document.getElementById(e)}updateAnchorAria(e){if(!this.anchor)return;const t=this.getAnchorEl();if(!t)return;const s=t.getAttribute("role");const i=s!==null?h.has(s):c.has(t.tagName)||t.tagName==="A"&&t.hasAttribute("href");if(e){t.setAttribute("aria-haspopup",this.asListbox?"listbox":"menu");if(!this.asListbox)t.setAttribute("aria-controls",this.menuId)}if(i)t.setAttribute("aria-expanded",e?"true":"false");else t.removeAttribute("aria-expanded")}applyDepthZIndex(){if(!this.anchor)return;this.el.style.zIndex="var(--md-sys-z-index-popup, 1000)"}positionMenu(){if(!this.anchor)return;const e=this.getAnchorEl();if(!e)return;const t=e.getBoundingClientRect();const s=this.el.shadowRoot?.querySelector(".md-menu__surface");if(!s)return;const i=4;s.style.minWidth=this.matchAnchorWidth?`${t.width}px`:"";this.el.style.top="0";this.el.style.left="0";this.el.style.right="auto";this.el.style.bottom="auto";const n=s.offsetWidth;let r=s.offsetHeight;if(n===0||r===0){requestAnimationFrame((()=>this.positionMenu()));return}const a=window.innerWidth;const d=window.innerHeight;const o=m;if(this.responsive&&a<=u){const e=s.offsetHeight;let n=t.bottom+i;if(n+e+o>d&&t.top-i-e>=o){n=t.top-i-e;s.style.transformOrigin="bottom left"}else{s.style.transformOrigin="top left"}n=Math.max(o,Math.min(n,d-e-o));this.el.style.top=`${n}px`;this.el.style.left=`${o}px`;return}let h=this.placement.startsWith("bottom")?"bottom":"top";let c=this.placement.endsWith("start")?"start":"end";const l=d-t.bottom-i-o;const f=t.top-i-o;if(h==="bottom"&&r>l){if(r<=f||this.scrollCapped&&f>l)h="top"}else if(h==="top"&&r>f){if(r<=l||this.scrollCapped&&l>f)h="bottom"}if(c==="start"&&t.left+n>a){if(t.right-n>=0)c="end"}else if(c==="end"&&t.right-n<0){if(t.left+n<=a)c="start"}if(this.scrollCapped){const e=h==="bottom"?l:f;const t=s.querySelector(".md-menu__scroll-shadow");const i=s.offsetHeight-(t?.offsetHeight??0);this.el.style.setProperty("--md-menu-avail-block",`${Math.max(48,e-i)}px`);r=s.offsetHeight}else{this.el.style.removeProperty("--md-menu-avail-block")}const p=h==="bottom"?"top":"bottom";const b=c==="start"?"left":"right";s.style.transformOrigin=`${p} ${b}`;const x=h==="bottom"?t.bottom+i:t.top-i-r;const v=c==="start"?t.left:t.right-n;const y=Math.max(o,Math.min(v,a-n-o));const g=Math.max(o,Math.min(x,d-r-o));this.el.style.top=`${g}px`;this.el.style.left=`${y}px`}restoreFocusToAnchor(){if(!this.anchor)return;const e=this.getAnchorEl();e?.focus()}closeEntireMenuTree(){let e=this.el;let t=this.el;while(t){const s=t.parentElement?.closest("md-menu");if(s){e=s;t=s}else{break}}const s=e.querySelectorAll("md-menu-item, md-sub-menu-item");s.forEach((e=>e.setAttribute("tabindex","-1")));if(e.close)e.close();const i=e.anchor;if(i){const t=e.getRootNode();const s=t.getElementById?.(i)??document.getElementById(i);s?.focus()}}dismissPeerMenus(){if(this.persistent)return;if(typeof document==="undefined")return;const e=Array.from(document.querySelectorAll("md-menu"));for(const t of e){if(t===this.el)continue;if(!t.open)continue;if(t.persistent)continue;if(t.contains(this.el))continue;if(this.el.contains(t))continue;t.close()}}isHidden(e){if(e.hasAttribute("hidden"))return true;if(e.style.display==="none")return true;return false}hasVisibleItem(e){if(this.isHidden(e))return false;const t=e.tagName.toLowerCase();if(t==="md-menu-item"||t==="md-sub-menu-item")return true;if(t==="md-menu-item-group"){return Array.from(e.children).some((e=>this.hasVisibleItem(e)))}return false}updateEmpty(){if(!this.emptyText){this.empty=false;return}const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();this.empty=!t.some((e=>this.hasVisibleItem(e)))}wireItemObserver(){this.itemObserver?.disconnect();if(typeof MutationObserver==="undefined")return;const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();if(t.length===0)return;this.itemObserver=new MutationObserver((()=>this.updateEmpty()));for(const e of t){this.itemObserver.observe(e,{attributes:true,attributeFilter:["style","hidden"],subtree:true})}}getContentSlot(){const e=this.el.shadowRoot;if(!e)return null;const t=Array.from(e.querySelectorAll("slot"));return t.find((e=>!e.getAttribute("name")))??null}propagateVariant(){const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();for(const e of t){e.setAttribute("data-variant",this.variant);if(e.tagName.toLowerCase()==="md-menu-item-group"){if(this.useGap){e.setAttribute("data-use-gap","")}else{e.removeAttribute("data-use-gap")}const t=e.querySelectorAll("md-menu-item, md-sub-menu-item");for(const e of Array.from(t)){e.setAttribute("data-variant",this.variant)}}}}updateSections(){const e=this.getContentSlot();if(!e)return;const t=e.assignedElements();let s=false;let i=false;for(const e of t){if(i){e.setAttribute("data-after-gap","");i=false}else{e.removeAttribute("data-after-gap")}if(e.hasAttribute("gap")){s=true;i=true}}this.sectioned=s}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick);document.removeEventListener("keydown",this.handleDocumentKeyDown);document.removeEventListener("keydown",this.trackKeyboardModality,true);document.removeEventListener("pointerdown",this.trackPointerModality,true);window.removeEventListener("scroll",this.handleScroll,true);window.removeEventListener("resize",this.handleScroll);clearTimeout(this.closeTimer);clearTimeout(this.typeaheadTimer);this.itemObserver?.disconnect();this.itemObserver=undefined;this.unobserveSurfaceResize();this.updateAnchorAria(false)}get inlineFill(){return this.el.classList.contains("md-menu--inline-fill")}get maxHeightValue(){if(this.maxHeight===undefined||this.maxHeight===null||this.maxHeight===""){return null}const e=String(this.maxHeight);return/^\d+(\.\d+)?$/.test(e)?`${e}px`:e}get scrollCapped(){return!this.hasSubmenu&&!this.inlineFill}get useScrollViewport(){return this.inlineFill||this.scrollCapped}renderMenuBody(){return[i("slot",{onSlotchange:this.handleSlotChange}),this.emptyText?i("span",{class:"md-menu__empty",part:"empty-text",role:"status"},this.emptyText):null]}render(){return i(n,{key:"349ce271693310ea70aa98cb3980029e3afa1594",class:{"md-menu":true,"md-menu--open":this.open,"md-menu--closing":this.closing,"md-menu--quick":this.quick,[`md-menu--${this.variant}`]:true,[`md-menu--${this.layout}`]:this.variant!=="baseline","md-menu--gap":this.useGap,"md-menu--sectioned":this.sectioned,"md-menu--empty":this.empty,"md-menu--responsive":this.responsive,"md-menu--has-submenu":this.hasSubmenu,"md-menu--scroll":this.scrollCapped},"aria-hidden":!this.open||this.closing?"true":"false",inert:!this.open||this.closing},i("div",{key:"9a3e0ab8f4586b4164412fe972acbbf4cbc3000a",class:"md-menu__surface",part:"surface",role:this.asListbox?"presentation":"menu",id:this.menuId,"aria-orientation":this.asListbox?undefined:"vertical","aria-labelledby":this.asListbox?undefined:this.anchor||undefined},i("slot",{key:"abf20ee5e25dfcc174f8aa45814b6603b77e1c65",name:"header"}),this.useScrollViewport?i("div",{class:"md-menu__scroll-shadow",part:"menu-viewport",tabindex:this.asListbox?"0":undefined,style:this.inlineFill?undefined:{maxBlockSize:this.maxHeightValue?`min(${this.maxHeightValue}, var(--md-menu-avail-block, 100dvh), calc(100dvh - 2 * var(--md-menu-viewport-margin, 8px)))`:`min(var(--md-menu-avail-block, 100dvh), calc(100dvh - 2 * var(--md-menu-viewport-margin, 8px)))`}},this.renderMenuBody()):this.renderMenuBody()))}get el(){return this}static get watchers(){return{emptyText:[{onEmptyTextChange:0}],variant:[{onVariantChange:0}],useGap:[{onVariantChange:0}],open:[{onOpenChange:0}]}}static get style(){return a()}},[257,"md-menu",{open:[1540],anchor:[1],placement:[513],quick:[4],variant:[513],layout:[513],useGap:[516,"use-gap"],emptyText:[1,"empty-text"],matchAnchorWidth:[516,"match-anchor-width"],responsive:[516],persistent:[516],autoFocus:[516,"auto-focus"],maxHeight:[8,"max-height"],listLabel:[1,"list-label"],listbox:[516],density:[514],closing:[32],sectioned:[32],empty:[32],hasSubmenu:[32],listboxMode:[32],setComboboxElement:[64],setVirtualProvider:[64],getScrollViewport:[64],show:[64],reposition:[64],close:[64]},[[0,"focusin","handleFocusIn"],[0,"keydown","handleKeyDown"]],{emptyText:[{onEmptyTextChange:0}],variant:[{onVariantChange:0}],useGap:[{onVariantChange:0}],open:[{onOpenChange:0}]}]);function p(){if(typeof customElements==="undefined"){return}const e=["md-menu"];e.forEach((e=>{switch(e){case"md-menu":if(!customElements.get(r(e))){customElements.define(r(e),f)}break}}))}p();export{f as M,p as d};
2
+ //# sourceMappingURL=p-B0Opn6dK.js.map
@@ -1,2 +1,2 @@
1
- import{t,p as e,H as i,c as s,h as d,d as o}from"./p-MWBNn6Lj.js";import{g as l}from"./p-DWxN44zD.js";const r=()=>`:host{--_container-color:var(--md-text-field-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_input-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1C1B1F));--_label-color:var(--md-text-field-label-color, var(--md-sys-color-on-surface-variant, #49454F));--_active-indicator-color:var(--md-text-field-active-indicator-color, var(--md-sys-color-primary, #6750A4));--_outline-color:var(--md-text-field-outline-color, var(--md-sys-color-outline, #79747E));--_error-color:var(--md-text-field-error-color, var(--md-sys-color-error, #B3261E));--_supporting-text-color:var(--md-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454F));--_icon-color:var(--md-text-field-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_text-inset:calc(var(--md-sys-spacing-inset-lg, 16px) + 7px);--_icon-size:var(--md-text-field-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_container-shape:var(--md-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px));--_filled-pill:var(--md-text-field-filled-pill, 0);--_filled-block-end-radius:calc(var(--_filled-pill) * var(--_container-shape));display:flex;flex-direction:column;position:relative;font-family:var(--md-sys-typescale-body-large-font-family, Roboto, sans-serif);width:100%;box-sizing:border-box}.md-text-field__container{position:relative;display:flex;align-items:stretch;min-height:calc(56px + var(--md-sys-density-scale, 0) * 4px);cursor:var(--md-text-field-cursor, text);box-sizing:border-box}:host(.md-text-field--filled) .md-text-field__container{background-color:var(--_container-color);border-start-start-radius:var(--_container-shape);border-start-end-radius:var(--_container-shape);border-end-start-radius:var(--_filled-block-end-radius);border-end-end-radius:var(--_filled-block-end-radius);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 0.5px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset));transition:background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container{background-color:var(--md-text-field-container-color, var(--md-sys-color-surface-container-high, #ECE6F0))}:host(.md-text-field--outlined) .md-text-field__container{background-color:transparent;border-radius:var(--_container-shape);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 1px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset))}:host(.md-text-field--outlined) .md-text-field__input{position:relative;inset-block-start:var(--md-text-field-optical-nudge, 0px)}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}.md-text-field__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(.md-text-field--filled:hover:not(.md-text-field--disabled)) .md-text-field__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-text-field--outlined) .md-text-field__state-layer{display:none}.md-text-field__input-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;padding:0}:host(.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-end}.md-text-field__input-row{display:flex;align-items:center}.md-text-field__chips{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:4px;min-inline-size:0;overflow:hidden}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__chips{flex:1 1 auto}:host(.md-text-field--with-chips) .md-text-field__input-row{flex-wrap:nowrap;gap:4px;min-inline-size:0}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__input{flex:0 1 0;min-inline-size:0}:host(.md-text-field--with-chips) .md-text-field__input{flex:1 0 40px;min-inline-size:40px}:host(.md-text-field--with-chips[chips-wrap]) .md-text-field__input-row{flex-wrap:wrap;row-gap:6px}:host([chips-wrap]) .md-text-field__chips{flex-wrap:wrap;overflow:visible}.md-text-field__input{flex:1;border:none;outline:none;background:transparent;font-family:inherit;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));font-weight:var(--md-sys-typescale-body-large-weight, 400);letter-spacing:var(--md-sys-typescale-body-large-tracking, 0.5px);color:var(--_input-color);caret-color:var(--_active-indicator-color);cursor:var(--md-text-field-cursor, text);padding:0;margin:0;min-width:0;width:100%}.md-text-field__input::placeholder{color:var(--_label-color)}:host(.md-text-field--error) .md-text-field__input{caret-color:var(--_error-color)}.md-text-field__input--textarea{resize:none;overflow-wrap:break-word}.md-text-field__input--auto-grow{overflow:hidden}.md-text-field__input--fixed{overflow-y:auto}:host(.md-text-field--multiline) .md-text-field__container{align-items:flex-start;min-height:auto}:host(.md-text-field--multiline) .md-text-field__input-wrap{justify-content:flex-start}:host(.md-text-field--multiline.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-start;padding-block-start:20px}:host(.md-text-field--multiline) .md-text-field__input-row{align-items:flex-start}:host(.md-text-field--filled.md-text-field--floating.md-text-field--with-chips) .md-text-field__input-wrap{padding-block-start:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__icon,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__trailing-icon-button,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__clear,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__password-toggle,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__speech{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__icon,:host(.md-text-field--auto-grow) .md-text-field__trailing-icon-button,:host(.md-text-field--auto-grow) .md-text-field__clear,:host(.md-text-field--auto-grow) .md-text-field__password-toggle,:host(.md-text-field--auto-grow) .md-text-field__speech{align-self:center}.md-text-field__label{position:absolute;inset-inline-start:0;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_label-color);pointer-events:none;transition:top var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), inset-inline-start var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), font-size var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), line-height var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 100ms) ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host(.md-text-field--filled) .md-text-field__label{top:50%;transform:translateY(-50%)}:host(.md-text-field--multiline:not(.md-text-field--floating)) .md-text-field__label{top:28px}:host(.md-text-field--multiline.md-text-field--outlined:not(.md-text-field--floating)) .md-text-field__label{top:12px;}:host(.md-text-field--multiline.md-text-field--filled:not(.md-text-field--floating)) .md-text-field__label{top:32px;}:host(.md-text-field--filled.md-text-field--floating) .md-text-field__label{top:0;transform:translateY(0);font-size:max(11px, calc(var(--md-sys-typescale-body-small-size, 12px) + var(--md-sys-density-scale, 0) * 0.25px));line-height:max(12px, calc(var(--md-sys-typescale-body-small-line-height, 16px) + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--outlined) .md-text-field__label{top:50%;transform:translateY(-50%);background-color:transparent;padding:0}:host(.md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:calc(-8px - var(--md-sys-density-scale, 0) * 1px);inset-inline-start:0;transform:translateY(-50%);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px));background-color:transparent;padding:0}:host([density='-1'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-3'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--filled.md-text-field--floating) .md-text-field__label{font-size:11px;line-height:12px;top:1px}:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label{top:-2px;}:host([density='-3'].md-text-field--outlined.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:-4px}:host(.md-text-field--filled) .md-text-field__input{line-height:max(16px, calc(24px + var(--md-sys-density-scale, 0) * 2px))}:host(.md-text-field--outlined.md-text-field--floating.md-text-field--with-leading) .md-text-field__label{inset-inline-start:calc(-1 * (var(--_icon-size) + var(--md-sys-spacing-gap-lg, 16px)))}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:var(--md-sys-color-on-error-container, #8C1D18)}:host(.md-text-field--focused) .md-text-field__label{color:var(--_active-indicator-color)}:host(.md-text-field--error) .md-text-field__label{color:var(--_error-color)}.md-text-field__prefix,.md-text-field__suffix{font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_supporting-text-color);white-space:nowrap;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__prefix{margin-inline-end:2px}.md-text-field__suffix{margin-inline-start:2px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__prefix,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__suffix{color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__icon{display:flex;align-items:center;justify-content:center;font-size:var(--_icon-size);color:var(--_icon-color);flex-shrink:0;align-self:center;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__icon--leading{margin-inline-end:var(--md-sys-spacing-gap-lg, 16px)}.md-text-field__icon--trailing{margin-inline-start:0}.md-text-field__trailing-icon-button{display:flex;align-items:center;flex-shrink:0;align-self:center;margin-inline-start:0}.md-text-field__error-icon+.md-text-field__trailing-icon-button{margin-inline-start:4px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__icon--leading{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__icon--trailing{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(.md-text-field--error) .md-text-field__icon--trailing{color:var(--_error-color)}:host(.md-text-field--error) .md-text-field__icon--trailing ::slotted(*){color:inherit}.md-text-field__clear{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__clear ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__clear:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__clear:focus-visible,.md-text-field__password-toggle:focus-visible,.md-text-field__speech:focus-visible{outline:2px solid var(--md-sys-color-secondary, #625B71);outline-offset:-6px}.md-text-field__clear--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__clear:not(:disabled){color:var(--_error-color)}.md-text-field__password-toggle{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__password-toggle ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__password-toggle:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__password-toggle--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__password-toggle:not(:disabled){color:var(--_error-color)}.md-text-field__speech{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__speech ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__speech:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__speech--listening{color:var(--_error-color);animation:md-speech-pulse 1.2s ease-in-out infinite}.md-text-field__speech--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__speech:not(:disabled):not(.md-text-field__speech--listening){color:var(--_error-color)}@keyframes md-speech-pulse{0%,100%{opacity:1}50%{opacity:0.4}}.md-text-field__error-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:center;width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size);line-height:1;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);color:var(--_error-color)}.md-text-field__error-icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__error-icon{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__error-icon{align-self:center}.md-text-field__indicator{position:absolute;inset-block-end:0;inset-inline:0;height:1px;background-color:var(--md-sys-color-on-surface-variant, #49454F);opacity:calc(1 - var(--_filled-pill));transition:height var(--md-sys-motion-duration-short2, 100ms) ease, background-color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_active-indicator-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--error) .md-text-field__indicator{background-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_error-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__fieldset{position:absolute;inset:0;margin:0;max-inline-size:100%;min-inline-size:0;overflow:hidden;padding-inline-start:calc( var(--md-text-field-padding-inline-start, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-inline-end:calc( var(--md-text-field-padding-inline-end, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-block:0;border:1px solid var(--_outline-color);border-radius:var(--_container-shape);pointer-events:none;transition:border-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_active-indicator-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, -2px);transition:none}:host(.md-text-field--error) .md-text-field__fieldset{border-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_error-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, -2px);transition:none;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__fieldset{border-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__fieldset{border-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__legend{max-inline-size:calc(100% - 16px);overflow:hidden;height:0;padding:0;font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));max-width:0;transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));white-space:nowrap}.md-text-field__legend--active{max-width:100%;padding-inline:var(--_legend-inline-padding, 4px);transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}.md-text-field__legend span{display:inline-block;padding:0;visibility:hidden}.md-text-field__support-row{display:flex;justify-content:space-between;padding:4px 16px 0;gap:16px}.md-text-field__support-text{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color)}.md-text-field__support-text--error{color:var(--_error-color)}.md-text-field__counter{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color);flex-shrink:0}:host(.md-text-field--disabled) .md-text-field__container{cursor:default;pointer-events:none}:host(.md-text-field--disabled.md-text-field--filled) .md-text-field__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 4%, transparent)}:host(.md-text-field--disabled) .md-text-field__label{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__input{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__indicator{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__fieldset{border-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 12%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon ::slotted(*){color:inherit}:host(.md-text-field--disabled) .md-text-field__support-text,:host(.md-text-field--disabled) .md-text-field__counter{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__prefix,:host(.md-text-field--disabled) .md-text-field__suffix{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}.material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-weight:normal;font-style:normal;font-size:var(--_icon-size);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}@keyframes md-tf-autofill-start{from{--md-tf-autofill:1}}@keyframes md-tf-autofill-cancel{from{--md-tf-autofill:0}}.md-text-field__input:-webkit-autofill{animation-name:md-tf-autofill-start;box-shadow:0 0 0 1000px var(--_container-color, #E6E1E6) inset;-webkit-text-fill-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20));caret-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20))}.md-text-field__input:not(:-webkit-autofill){animation-name:md-tf-autofill-cancel}@media (prefers-reduced-motion: reduce){.md-text-field__label,.md-text-field__indicator,.md-text-field__state-layer,.md-text-field__fieldset,.md-text-field__legend,.md-text-field__legend>span,.md-text-field__container{transition-duration:0.01ms !important}.md-text-field__speech--listening,.md-text-field__speech--listening *{animation:none !important}}@media (forced-colors: active){:host(.md-text-field--filled) .md-text-field__container,:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container,:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--outlined) .md-text-field__container,.md-text-field__container{border:1px solid ButtonText;forced-color-adjust:none;background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__indicator{background-color:Highlight}.md-text-field__input{caret-color:FieldText}:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__indicator{background-color:GrayText}:host(.md-text-field--outlined.md-text-field--disabled) .md-text-field__fieldset{border-color:GrayText}:host(.md-text-field--focused) .md-text-field__label,:host(.md-text-field--error) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__label{color:FieldText}:host(.md-text-field--disabled) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText}:host(.md-text-field--error) .md-text-field__indicator{background-color:LinkText}.md-text-field__input{background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__container{outline:2px solid Highlight;outline-offset:1px}:host(.md-text-field--error) .md-text-field__container{border-color:LinkText}:host(.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText;border-color:GrayText}.md-text-field__support-text,.md-text-field__counter{color:CanvasText}.md-text-field__support-text--error{color:LinkText}.md-text-field__label,.md-text-field__prefix,.md-text-field__suffix,.md-text-field__icon,.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{color:FieldText;forced-color-adjust:none}.md-text-field__error-icon{color:LinkText}.md-text-field__indicator{background-color:FieldText}:host(.md-text-field--outlined) .md-text-field__container{border:none}:host(.md-text-field--outlined) .md-text-field__fieldset{border-color:ButtonText}:host(.md-text-field--outlined.md-text-field--error) .md-text-field__fieldset{border-color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label,:host(:hover) .md-text-field__prefix,:host(:hover) .md-text-field__suffix,:host(:hover) .md-text-field__icon{color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator,:host(:hover:not(.md-text-field--focused)) .md-text-field__indicator{background-color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{background-color:LinkText}:host(:hover) .md-text-field__clear,:host(:hover) .md-text-field__password-toggle,:host(:hover) .md-text-field__speech{color:FieldText;background:none}}:host(.md-text-field--outlined) .md-text-field__input:-webkit-autofill{box-shadow:0 0 0 1000px var(--md-sys-color-surface, #FEF7FF) inset}.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{min-inline-size:40px;min-block-size:40px;display:inline-flex;align-items:center;justify-content:center;margin-inline:-6px;margin-block:-8px}.md-text-field__clear--empty{visibility:hidden}`;const n={numeric:/[^0-9]/g,integer:/[^0-9-]/g,decimal:/[^0-9.\-]/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g};const a=e(class t extends i{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdInput=s(this,"mdInput",7);this.mdChange=s(this,"mdChange",7);this.mdSearch=s(this,"mdSearch",7);this.mdClear=s(this,"mdClear",7);this.mdPasswordToggle=s(this,"mdPasswordToggle",7);this.mdSpeechResult=s(this,"mdSpeechResult",7);this.mdValidityChange=s(this,"mdValidityChange",5);this.internals=this.attachInternals();this.reserveSupportingSpace=false;this.variant="filled";this.label="";this.value="";this.placeholder="";this.type="text";this.name="";this.pattern="";this.autocomplete="";this.inputMode="";this.enterKeyHint="";this.autoCapitalize="";this.disabled=false;this.readOnly=false;this.required=false;this.error=false;this.errorText="";this.supportingText="";this.prefixText="";this.suffixText="";this.clearable=false;this.passwordToggle=false;this.density=0;this.multiline=false;this.speechToText=false;this.speechLang="";this.restrict="";this.formatOn="blur";this.focusBorderWidth=3;this.appearFocused=false;this.chipsWrap=false;this.debounce=0;this.throttle=0;this.focused=false;this.formDisabled=false;this.autofilled=false;this.hostAriaLabel="";this.passwordVisible=false;this.hasSlottedLeading=false;this.hasSlottedChips=false;this.hasSlottedTrailing=false;this.hasTrailingIconButton=false;this.listening=false;this.displayValue="";this.defaultValue="";this.internalWrite=false;this.composing=false;this.warnedLiveFormat=false;this.uid=`md-text-field-${Math.random().toString(36).slice(2,7)}`;this.throttlePending=false;this.customValidityMessage="";this.inputRole="";this.inputExpanded=false;this.inputAriaAutocomplete="";this.lastValidityKey=null;this.pendingTypeResync=false;this.formatterEpoch=0;this.handleInput=t=>{const e=t.target||this.inputEl;if(!e)return;if(this.composing)return;let i=e.value;let s=e.selectionStart??i.length;let d=this.applyRestrict(i);if(this.restrict&&this.maxLength!=null&&!isNaN(this.maxLength)&&d.length>this.maxLength){const t=Array.from(d);let e="";for(const i of t){if((e+i).length>this.maxLength)break;e+=i}d=e}if(d!==i){const t=this.applyRestrict(i.substring(0,s));i=d;e.value=i;s=Math.min(t.length,i.length);try{e.setSelectionRange(s,s)}catch{}}this.internalWrite=true;try{this.value=this.parser?this.parser(i):i}catch(t){this.value=i}if(this.formatter&&this.effectiveFormatOn==="input"&&this.maxLength!=null){const t=this.value.replace(/[-/\s]/g,"");if(t.length>this.maxLength){const e=Array.from(t);let i="";for(const t of e){if((i+t).length>this.maxLength)break;i+=t}this.value=i}}if(this.formatter&&this.effectiveFormatOn==="input"){try{const t=t=>this.parser?this.parser(t).length:(t.match(/[0-9a-zA-Z]/g)||[]).length;const d=t(i.substring(0,s));const o=this.formatter(this.value);this.displayValue=o;e.value=o;let l=d===0?0:o.length;for(let e=0;d>0&&e<o.length;e++){if(t(o.slice(0,e+1))===d){l=e+1;break}}try{e.setSelectionRange(l,l)}catch{}}catch(t){this.displayValue=this.value;e.value=this.value}}if(!(this.formatter&&this.effectiveFormatOn==="input")){this.displayValue=e.value}this.internalWrite=false;this.mdInput.emit(this.value);this.emitSearch(this.value);if(this.multiline==="auto-grow"){this.autoGrow()}};this.handleCompositionStart=()=>{this.composing=true};this.handleCompositionEnd=t=>{this.composing=false;this.handleInput(t)};this.handleKeyDown=t=>{if(t.key==="Enter"&&!this.multiline&&!this.composing){try{const t=this.internals?.form;const e=t?.querySelector('button[type="submit"], input[type="submit"], button:not([type])');t?.requestSubmit(e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:undefined)}catch{}}if(t.key==="Escape"&&!this.composing&&this.clearable==="internal"&&this.value&&!this.readOnly&&!this.isDisabled){t.stopPropagation();t.preventDefault();this.clearValue();this.mdClear.emit()}};this.handleAutofillStart=t=>{if(t.animationName==="md-tf-autofill-start")this.autofilled=true;if(t.animationName==="md-tf-autofill-cancel")this.autofilled=false};this.handleChange=()=>{this.mdChange.emit(this.value);this.el.dispatchEvent(new CustomEvent("change",{bubbles:true}))};this.handleFocus=()=>{this.focused=true;if(this.formatter&&this.effectiveFormatOn==="blur"&&this.inputEl){this.displayValue=this.value;this.inputEl.value=this.value}};this.handleBlur=()=>{this.focused=false;this.composing=false;this.syncDisplayValue();if(this.inputEl){this.inputEl.value=this.displayValue}};this.handleContainerClick=()=>{this.inputEl?.focus()};this.handleClear=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly||!this.value)return;if(this.clearable==="internal"){this.clearValue()}this.mdClear.emit();this.inputEl?.focus()};this.handlePasswordToggle=t=>{t.stopPropagation();if(this.isDisabled)return;if(this.passwordToggle==="internal"){this.passwordVisible=!this.passwordVisible;this.mdPasswordToggle.emit({visible:this.passwordVisible})}else{this.mdPasswordToggle.emit({visible:this.type==="password"})}this.inputEl?.focus()};this.handleSpeechToggle=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly)return;if(this.speechToText==="external"){this.listening=!this.listening;this.mdSpeechResult.emit({transcript:"",listening:this.listening});return}if(this.listening){this.recognition?.stop();return}const e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e){console.warn("md-text-field: SpeechRecognition API not supported in this browser.");return}const i=new e;i.continuous=false;i.interimResults=true;if(this.speechLang){i.lang=this.speechLang}let s="";const d=this.value;i.onresult=t=>{let e="";for(let i=t.resultIndex;i<t.results.length;i++){const d=t.results[i][0].transcript;if(t.results[i].isFinal){s+=d}else{e+=d}}const i=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+i+s+e;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdSpeechResult.emit({transcript:s+e,listening:true})};i.onend=()=>{this.listening=false;this.recognition=undefined;const t=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+t+s;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.mdSpeechResult.emit({transcript:s,listening:false})};i.onerror=t=>{if(t.error!=="aborted"){console.warn("md-text-field: Speech recognition error:",t.error)}this.listening=false;this.recognition=undefined};this.recognition=i;this.listening=true;i.start()}}get isDisabled(){return this.disabled||this.formDisabled}get effectiveFormatOn(){if(this.formatOn==="input"&&this.formatter&&!this.parser){return"blur"}return this.formatOn}static isInteractive(t){const e=t.tagName.toLowerCase();return["md-icon-button","md-button","button","a","input","select","textarea"].includes(e)||t.hasAttribute("tabindex")}get isFloating(){return this.focused||this.appearFocused||!!this.value||!!this.placeholder||this.autofilled||this.hasSlottedChips}get effectiveRows(){if(this.rows!=null)return this.rows;return this.multiline==="fixed"?4:2}get restrictPattern(){if(!this.restrict)return null;if(n[this.restrict])return n[this.restrict];try{const t=this.restrict.startsWith("[")&&this.restrict.endsWith("]")?this.restrict.slice(1,-1):this.restrict;return new RegExp(`[^${t}]`,"g")}catch{return null}}applyRestrict(t){const e=this.restrictPattern;return e?t.replace(e,""):t}syncTrailingSlotState(e){if(!e)return;this.hasSlottedTrailing=e.assignedNodes().length>0;this.hasTrailingIconButton=e.assignedElements().some((e=>t.isInteractive(e)))}syncHostSlottedIcons(){const e=this.el.querySelector('[slot="leading-icon"]');const i=this.el.querySelector('[slot="trailing-icon"]');this.hasSlottedLeading=!!e;this.hasSlottedTrailing=!!i;this.hasTrailingIconButton=!!i&&t.isInteractive(i)}componentWillLoad(){this.bridgeFormatterProps();if(this.el.hasAttribute("clearable")&&!this.clearable)this.clearable="internal";if(this.el.hasAttribute("password-toggle")&&!this.passwordToggle)this.passwordToggle="internal";if(this.el.hasAttribute("speech-to-text")&&!this.speechToText)this.speechToText="internal";if(this.maxLength==null&&this.el.hasAttribute("maxlength")){this.maxLength=parseInt(this.el.getAttribute("maxlength"),10)}if(this.minLength==null&&this.el.hasAttribute("minlength")){this.minLength=parseInt(this.el.getAttribute("minlength"),10)}if(!this.label&&!this.hostAriaLabel){const t=this.el.getAttribute("aria-label");if(t){this.hostAriaLabel=t;this.el.removeAttribute("aria-label")}}if(!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"")}this.defaultValue=this.value;this.syncDisplayValue();this.syncHostSlottedIcons();this.updateFormValue()}updateFormValue(){try{this.internals?.setFormValue(this.value)}catch{}}updateValidity(){const t=this.inputEl;if(!t)return;try{if(this.customValidityMessage){this.internals?.setValidity({customError:true},this.customValidityMessage,t);return}if(this.focused&&t.value!==this.value)return;const e=t.value;let i=false;if(t.value!==this.value){t.value=this.value;i=true;if(t.value!==this.value){t.value=e;this.internals?.setValidity({badInput:true},"Invalid value",t);return}}const s=t.validity;const d={valueMissing:s.valueMissing,typeMismatch:s.typeMismatch,patternMismatch:s.patternMismatch,tooLong:s.tooLong,tooShort:s.tooShort,rangeUnderflow:s.rangeUnderflow,rangeOverflow:s.rangeOverflow,stepMismatch:s.stepMismatch,badInput:s.badInput};const o=s.valid;const l=t.validationMessage;if(i)t.value=e;if(o){this.internals?.setValidity({})}else{this.internals?.setValidity(d,l||"Invalid value",t)}}catch{}this.emitValidityChange()}formResetCallback(){this.internalWrite=false;this.value=this.defaultValue;this.syncDisplayValue();if(this.inputEl)this.inputEl.value=this.displayValue;this.updateFormValue()}formDisabledCallback(t){queueMicrotask((()=>{this.formDisabled=t}))}async setFocus(){this.inputEl?.focus()}async select(){this.inputEl?.select()}async getInputElement(){return this.inputEl??null}async getValidity(){try{const t=this.internals.validity;return{valid:t.valid,validationMessage:this.internals.validationMessage,flags:{valueMissing:t.valueMissing,typeMismatch:t.typeMismatch,patternMismatch:t.patternMismatch,tooLong:t.tooLong,tooShort:t.tooShort,rangeUnderflow:t.rangeUnderflow,rangeOverflow:t.rangeOverflow,stepMismatch:t.stepMismatch,badInput:t.badInput,customError:t.customError}}}catch{return{valid:true,validationMessage:"",flags:{}}}}async setCustomValidity(t){this.customValidityMessage=t;this.updateValidity()}formStateRestoreCallback(t){if(typeof t==="string"){this.value=t}}emitValidityChange(){const t=l(this.internals);const e=`${t.valid}|${t.validationMessage}`;if(this.lastValidityKey===e)return;const i=this.lastValidityKey!==null;this.lastValidityKey=e;if(i)this.mdValidityChange.emit(t)}async checkValidity(){try{return this.internals.checkValidity()}catch{return this.inputEl?.checkValidity()??true}}async reportValidity(){try{return this.internals.reportValidity()}catch{return this.inputEl?.reportValidity()??true}}componentDidLoad(){const t=this.el.shadowRoot;const e=t?.querySelector('slot[name="leading-icon"]');e?.addEventListener("slotchange",(()=>{this.hasSlottedLeading=e.assignedNodes().length>0}));const i=t?.querySelector('slot[name="trailing-icon"]');i?.addEventListener("slotchange",(()=>{this.syncTrailingSlotState(i)}));const s=t?.querySelector('slot[name="chips"]');s?.addEventListener("slotchange",(()=>{this.hasSlottedChips=s.assignedNodes().length>0}));this.hasSlottedLeading=(e?.assignedNodes().length??0)>0;this.hasSlottedChips=(s?.assignedNodes().length??0)>0;this.syncTrailingSlotState(i);if(this.multiline==="auto-grow"){this.autoGrow()}this.syncDisplayValue();this.updateValidity()}onValueChange(){if(this.value==null){this.value="";return}if(!this.internalWrite&&!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"");return}if(this.multiline==="auto-grow"){this.autoGrow()}this.updateFormValue();if(!this.focused){this.syncDisplayValue();return}if(!this.internalWrite){this.composing=false;this.syncDisplayValue();const t=this.inputEl;if(t){t.value=this.effectiveFormatOn==="blur"&&this.formatter?this.value:this.displayValue;const e=t.value.length;try{t.setSelectionRange(e,e)}catch{}}this.updateValidity()}}onTypeChange(){this.pendingTypeResync=true}componentDidRender(){if(this.pendingTypeResync){this.pendingTypeResync=false;const t=this.inputEl;if(t){const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur"?this.value:this.displayValue;if(t.value!==e){t.value=e}}}this.updateValidity()}bridgeFormatterProps(){["formatter","parser"].forEach((t=>{Object.defineProperty(this.el,t,{configurable:true,get:()=>this[t],set:e=>{this[t]=e;if(!this.focused){this.syncDisplayValue()}this.formatterEpoch++}})}))}syncDisplayValue(){if(this.formatter){try{const t=this.formatter(this.value);this.displayValue=typeof t==="string"?t:this.value}catch(t){this.displayValue=this.value}}else{this.displayValue=this.value}}emitSearchDistinct(t){if(t===this.lastEmittedSearch)return;this.lastEmittedSearch=t;this.mdSearch.emit(t)}emitSearch(t){if(this.debounce>0){clearTimeout(this.debounceTimer);this.debounceTimer=setTimeout((()=>this.emitSearchDistinct(t)),this.debounce)}if(this.throttle>0){if(!this.throttleTimer){this.emitSearchDistinct(t);this.throttlePending=false;this.throttleTimer=setTimeout((()=>{this.throttleTimer=undefined;if(this.throttlePending){this.emitSearchDistinct(this.value);this.throttlePending=false}}),this.throttle)}else{this.throttlePending=true}}if(this.debounce<=0&&this.throttle<=0){this.emitSearchDistinct(t)}}autoGrow(){const t=this.inputEl;if(!t)return;t.value=this.value;t.style.height="auto";t.style.height=`${t.scrollHeight}px`}clearValue(){this.internalWrite=true;this.value="";this.internalWrite=false;if(this.inputEl){this.inputEl.value=""}this.displayValue="";this.updateValidity();this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.emitSearch("")}disconnectedCallback(){this.recognition?.abort();this.recognition=undefined;clearTimeout(this.debounceTimer);clearTimeout(this.throttleTimer);this.debounceTimer=undefined;this.throttleTimer=undefined;this.throttlePending=false}renderInputElement(){const t=this.passwordToggle==="internal"&&this.passwordVisible?"text":this.type;const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur";const i=e?this.value:this.displayValue;const s=this.error&&this.errorText?this.errorText:this.supportingText;const o=[s?`${this.uid}-support`:"",this.maxLength!=null&&!isNaN(this.maxLength)?`${this.uid}-counter`:""].filter(Boolean).join(" ");const l=this.el.getAttribute("aria-haspopup");const r=l==="dialog"||l==="listbox"?l:null;const n=this.inputRole==="combobox"?"combobox":undefined;const a={placeholder:this.isFloating?this.placeholder:"",disabled:this.isDisabled,readOnly:this.readOnly,required:this.required,maxLength:this.formatter&&this.effectiveFormatOn==="input"||this.restrict?undefined:this.maxLength,pattern:this.pattern||undefined,minLength:this.minLength,min:this.min,max:this.max,step:this.step,autocomplete:this.autocomplete||undefined,inputMode:this.inputMode||undefined,enterKeyHint:this.enterKeyHint||undefined,autoCapitalize:this.autoCapitalize||undefined,spellcheck:this.spellcheck,value:i,"aria-label":this.label||this.hostAriaLabel||undefined,"aria-haspopup":r||undefined,role:n,"aria-expanded":n?String(this.inputExpanded):undefined,"aria-autocomplete":n&&this.inputAriaAutocomplete?this.inputAriaAutocomplete:undefined,"aria-describedby":o||undefined,"aria-invalid":this.error?"true":undefined,"aria-required":this.required?"true":undefined,id:`${this.uid}-input`,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onAnimationStart:this.handleAutofillStart};if(this.multiline){return d("textarea",{ref:t=>{this.inputEl=t},...a,rows:this.effectiveRows,part:"input",class:{"md-text-field__input":true,"md-text-field__input--textarea":true,"md-text-field__input--auto-grow":this.multiline==="auto-grow","md-text-field__input--fixed":this.multiline==="fixed"}},i)}return d("input",{ref:t=>{this.inputEl=t},class:"md-text-field__input",part:"input",type:t,...a})}render(){const t=this.error&&this.errorText?this.errorText:this.supportingText;const e=!!this.clearable;const i=!this.multiline&&!!this.passwordToggle;const s=!!this.speechToText;const l=this.hasSlottedLeading;const r=this.hasSlottedTrailing||e||i||s||this.error;const n=!!this.formatter&&this.effectiveFormatOn==="input";const a=n?this.value.replace(/[-/\s]/g,"").length:this.value.length;const c=this.maxLength!=null&&!isNaN(this.maxLength)?`${a}/${this.maxLength}`:"";const f=this.isDisabled||this.readOnly||!this.value;const h=this.passwordToggle==="internal"?this.passwordVisible:this.type!=="password";const m=h?"visibility_off":"visibility";return d(o,{key:"4508bf039397006cfe5cbf6b6d4b4486161cf528",class:{"md-text-field":true,[`md-text-field--${this.variant}`]:true,"md-text-field--focused":this.focused||this.appearFocused,"md-text-field--error":this.error,"md-text-field--disabled":this.isDisabled,"md-text-field--with-leading":l,"md-text-field--with-trailing":r,"md-text-field--with-chips":this.hasSlottedChips,"md-text-field--floating":this.isFloating,[`md-text-field--density${this.density}`]:this.density!==0,"md-text-field--multiline":!!this.multiline,"md-text-field--auto-grow":this.multiline==="auto-grow","md-text-field--textarea":this.multiline==="fixed","md-text-field--listening":this.listening},style:Number(this.focusBorderWidth)!==3?{"--md-text-field-focus-border-width":`${Number(this.focusBorderWidth)}px`,"--md-text-field-focus-inset":`${-(Number(this.focusBorderWidth)-1)}px`}:undefined},d("div",{key:"d9d373cfa27b4ba168f47f4b05d6433524227e1f",class:"md-text-field__container",part:"container",onClick:this.handleContainerClick},d("div",{key:"9312fd06590051f02f66cca2d488d537a4b7b083",class:"md-text-field__state-layer","aria-hidden":"true"}),d("span",{key:"73efa44c0053b753a101e1f64c64e2d2c39564fd",class:"md-text-field__icon md-text-field__icon--leading","aria-hidden":"true",style:{display:l?undefined:"none"}},d("slot",{key:"bf4a47cc04bca6daa5d11aaad263d87f20377378",name:"leading-icon"})),d("div",{key:"06c44f320928d78994d992c2e32794ca4132ffed",class:"md-text-field__input-wrap"},this.label&&d("label",{key:"a0d7d3b96ac067b17959770389461591baef936a",class:"md-text-field__label",part:"label",htmlFor:`${this.uid}-input`},this.label),d("div",{key:"ea7bcb96445bcaf3df21602c391068e47649d997",class:"md-text-field__input-row"},d("span",{key:"44c6f618e62608f265c6d87b59534f572ed00b75",class:"md-text-field__chips",part:"chips",style:{display:this.hasSlottedChips?undefined:"none"}},d("slot",{key:"e977d02a77960b0fee7125cdd784caf9f66e41e0",name:"chips"})),this.prefixText&&this.isFloating&&d("span",{key:"df25770815ba1f3307c61d860745257bfecb8209",class:"md-text-field__prefix"},this.prefixText),this.renderInputElement(),this.suffixText&&this.isFloating&&d("span",{key:"4effa7c4af78f7af50229c8ef132a981fcdb2722",class:"md-text-field__suffix"},this.suffixText))),e&&d("button",{key:"46bfde02d14bd0c828171fc5f8c30c10f15d84ed",type:"button",class:{"md-text-field__clear":true,"md-text-field__clear--disabled":f,"md-text-field__clear--empty":!this.value},disabled:f,onClick:this.handleClear,"aria-label":"Clear"},d("slot",{key:"ce2c25c56aefc9e6b2eca382f1359e305c33b8e8",name:"clear-icon"},d("span",{key:"58d4069b1f6581d87ad8d18e64604608bdcee805",class:"material-symbols-outlined","aria-hidden":"true"},"cancel"))),i&&d("button",{key:"ebd029da05a0eaa3132c7bae860bbba548c6b243",type:"button",class:{"md-text-field__password-toggle":true,"md-text-field__password-toggle--disabled":this.isDisabled},disabled:this.isDisabled,onClick:this.handlePasswordToggle,"aria-label":h?"Hide password":"Show password","aria-pressed":h?"true":"false"},d("slot",{key:"a32e0b4ab841edd5299d5e09ce69d5fd700d6e34",name:"password-toggle-icon"},d("span",{key:"616afe93a98c1a609b1e01feaf3bc8043145f36c",class:"material-symbols-outlined","aria-hidden":"true"},m))),s&&d("button",{key:"e53cbc05ae3fb648500470932bc96865fd206b2f",type:"button",class:{"md-text-field__speech":true,"md-text-field__speech--listening":this.listening,"md-text-field__speech--disabled":this.isDisabled},disabled:this.isDisabled||this.readOnly,onClick:this.handleSpeechToggle,"aria-label":this.listening?"Stop listening":"Start voice input","aria-pressed":this.listening?"true":"false"},d("slot",{key:"9a5f7868e44b1c8e9f9047e536c1c63505226886",name:"speech-icon"},d("span",{key:"a71be510232fddeb96cb6bb8f673231da9670dc9",class:"material-symbols-outlined","aria-hidden":"true"},this.listening?"hearing":"mic"))),this.error&&d("span",{key:"d729440b9e9e3ce6d8e6486036c97d7f3b443f0b",class:"md-text-field__error-icon","aria-hidden":"true"},d("slot",{key:"90e770cf0fc390961ecb181dc48f92370c7823fd",name:"error-icon"},d("span",{key:"e149f154a1f3d0194aff25d742ebc2c44b6d0547",class:"material-symbols-outlined",style:{fontVariationSettings:"'FILL' 1"}},"error"))),d("span",{key:"53a7d1b64a6385257de98f1f2a40806b76a0d35a",class:{"md-text-field__icon":!this.hasTrailingIconButton,"md-text-field__icon--trailing":!this.hasTrailingIconButton,"md-text-field__trailing-icon-button":this.hasTrailingIconButton},"aria-hidden":this.hasTrailingIconButton?null:"true",style:{display:this.hasSlottedTrailing?undefined:"none"}},d("slot",{key:"9a66c71717eae11fead8bed3e8ccc6217d1dd32e",name:"trailing-icon"})),this.variant==="filled"&&d("div",{key:"44c58eacdabd17b343bd2d9779f9146983412df6",class:"md-text-field__indicator"}),this.variant==="outlined"&&d("fieldset",{key:"0030dec6fd5327ee80d106167eb8746f6857a1b8",class:"md-text-field__fieldset"},d("legend",{key:"f970588bb684f4a6d8c35f6e156c02fb5029a462",class:{"md-text-field__legend":true,"md-text-field__legend--active":this.isFloating&&!!this.label}},d("span",{key:"e1ca66b55e706fe2368e8da9b7087c0bd2144de9"},this.label)))),(t||c||this.reserveSupportingSpace)&&d("div",{key:"2d8c198e0a0ff72cfef291edef33078cbec15338",class:"md-text-field__support-row"},d("span",{key:"e63c054d0e1443b0a968606742dea66f9b26b3fc",id:`${this.uid}-support`,part:"supporting-text",role:this.error?"alert":undefined,class:{"md-text-field__support-text":true,"md-text-field__support-text--error":this.error}},t||(this.reserveSupportingSpace?"​":"")),c&&d("span",{key:"cbad922f5b336990a6e126e82e23d9fea9a171e4",id:`${this.uid}-counter`,part:"counter",class:"md-text-field__counter"},c)))}static get delegatesFocus(){return true}static get formAssociated(){return true}get el(){return this}static get watchers(){return{value:[{onValueChange:0}],type:[{onTypeChange:0}]}}static get style(){return r()}},[337,"md-text-field",{reserveSupportingSpace:[4,"reserve-supporting-space"],variant:[1],label:[1],value:[1025],placeholder:[1],type:[1],name:[513],pattern:[1],minLength:[1026,"min-length"],min:[8],max:[8],step:[8],autocomplete:[1],inputMode:[1,"inputmode"],enterKeyHint:[1,"enterkeyhint"],autoCapitalize:[1,"autocapitalize"],spellcheck:[4],disabled:[516],readOnly:[4,"readonly"],required:[4],error:[4],errorText:[1,"error-text"],supportingText:[1,"supporting-text"],prefixText:[1,"prefix-text"],suffixText:[1,"suffix-text"],maxLength:[1026,"max-length"],clearable:[1032],passwordToggle:[1032,"password-toggle"],density:[514],multiline:[8],rows:[2],speechToText:[1032,"speech-to-text"],speechLang:[1,"speech-lang"],restrict:[1],formatter:[1040],parser:[1040],formatOn:[1,"format-on"],focusBorderWidth:[514,"focus-border-width"],appearFocused:[516,"appear-focused"],chipsWrap:[516,"chips-wrap"],debounce:[514],throttle:[514],inputRole:[1,"input-role"],inputExpanded:[4,"input-expanded"],inputAriaAutocomplete:[1,"input-aria-autocomplete"],focused:[32],formDisabled:[32],autofilled:[32],hostAriaLabel:[32],passwordVisible:[32],hasSlottedLeading:[32],hasSlottedChips:[32],hasSlottedTrailing:[32],hasTrailingIconButton:[32],listening:[32],displayValue:[32],formatterEpoch:[32],setFocus:[64],select:[64],getInputElement:[64],getValidity:[64],setCustomValidity:[64],checkValidity:[64],reportValidity:[64]},undefined,{value:[{onValueChange:0}],type:[{onTypeChange:0}]}]);function c(){if(typeof customElements==="undefined"){return}const e=["md-text-field"];e.forEach((e=>{switch(e){case"md-text-field":if(!customElements.get(t(e))){customElements.define(t(e),a)}break}}))}c();export{a as M,c as d};
2
- //# sourceMappingURL=p-pDrTJmeT.js.map
1
+ import{p as t,H as e,c as i,h as s,d,t as o}from"./p-MWBNn6Lj.js";import{g as l}from"./p-DWxN44zD.js";const r=()=>`:host{--_container-color:var(--md-text-field-container-color, var(--md-sys-color-surface-container-highest, #E6E0E9));--_input-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1C1B1F));--_label-color:var(--md-text-field-label-color, var(--md-sys-color-on-surface-variant, #49454F));--_active-indicator-color:var(--md-text-field-active-indicator-color, var(--md-sys-color-primary, #6750A4));--_outline-color:var(--md-text-field-outline-color, var(--md-sys-color-outline, #79747E));--_error-color:var(--md-text-field-error-color, var(--md-sys-color-error, #B3261E));--_supporting-text-color:var(--md-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454F));--_icon-color:var(--md-text-field-icon-color, var(--md-sys-color-on-surface-variant, #49454F));--_text-inset:calc(var(--md-sys-spacing-inset-lg, 16px) + 7px);--_icon-size:var(--md-text-field-icon-size, max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px)));--_container-shape:var(--md-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px));--_filled-pill:var(--md-text-field-filled-pill, 0);--_filled-block-end-radius:calc(var(--_filled-pill) * var(--_container-shape));display:flex;flex-direction:column;position:relative;font-family:var(--md-sys-typescale-body-large-font-family, Roboto, sans-serif);width:100%;box-sizing:border-box}.md-text-field__container{position:relative;display:flex;align-items:stretch;min-height:calc(56px + var(--md-sys-density-scale, 0) * 4px);cursor:var(--md-text-field-cursor, text);box-sizing:border-box}:host(.md-text-field--filled) .md-text-field__container{background-color:var(--_container-color);border-start-start-radius:var(--_container-shape);border-start-end-radius:var(--_container-shape);border-end-start-radius:var(--_filled-block-end-radius);border-end-end-radius:var(--_filled-block-end-radius);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 0.5px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset));transition:background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container{background-color:var(--md-text-field-container-color, var(--md-sys-color-surface-container-high, #ECE6F0))}:host(.md-text-field--outlined) .md-text-field__container{background-color:transparent;border-radius:var(--_container-shape);padding-block:max(2px, calc(8px + var(--md-sys-density-scale, 0) * 1px));padding-inline-start:var(--md-text-field-padding-inline-start, var(--_text-inset));padding-inline-end:var(--md-text-field-padding-inline-end, var(--_text-inset))}:host(.md-text-field--outlined) .md-text-field__input{position:relative;inset-block-start:var(--md-text-field-optical-nudge, 0px)}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}.md-text-field__state-layer{position:absolute;inset:0;border-radius:inherit;background-color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0;transition:opacity var(--md-sys-motion-duration-short2, 100ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));pointer-events:none}:host(.md-text-field--filled:hover:not(.md-text-field--disabled)) .md-text-field__state-layer{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}:host(.md-text-field--outlined) .md-text-field__state-layer{display:none}.md-text-field__input-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;padding:0}:host(.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-end}.md-text-field__input-row{display:flex;align-items:center}.md-text-field__chips{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:4px;min-inline-size:0;overflow:hidden}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__chips{flex:1 1 auto}:host(.md-text-field--with-chips) .md-text-field__input-row{flex-wrap:nowrap;gap:4px;min-inline-size:0}:host(.md-text-field--with-chips:not([chips-wrap])) .md-text-field__input{flex:0 1 0;min-inline-size:0}:host(.md-text-field--with-chips) .md-text-field__input{flex:1 0 40px;min-inline-size:40px}:host(.md-text-field--with-chips[chips-wrap]) .md-text-field__input-row{flex-wrap:wrap;row-gap:6px}:host([chips-wrap]) .md-text-field__chips{flex-wrap:wrap;overflow:visible}.md-text-field__input{flex:1;border:none;outline:none;background:transparent;font-family:inherit;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));font-weight:var(--md-sys-typescale-body-large-weight, 400);letter-spacing:var(--md-sys-typescale-body-large-tracking, 0.5px);color:var(--_input-color);caret-color:var(--_active-indicator-color);cursor:var(--md-text-field-cursor, text);padding:0;margin:0;min-width:0;width:100%}.md-text-field__input::placeholder{color:var(--_label-color)}:host(.md-text-field--error) .md-text-field__input{caret-color:var(--_error-color)}.md-text-field__input--textarea{resize:none;overflow-wrap:break-word}.md-text-field__input--auto-grow{overflow:hidden}.md-text-field__input--fixed{overflow-y:auto}:host(.md-text-field--multiline) .md-text-field__container{align-items:flex-start;min-height:auto}:host(.md-text-field--multiline) .md-text-field__input-wrap{justify-content:flex-start}:host(.md-text-field--multiline.md-text-field--filled) .md-text-field__input-wrap{justify-content:flex-start;padding-block-start:20px}:host(.md-text-field--multiline) .md-text-field__input-row{align-items:flex-start}:host(.md-text-field--filled.md-text-field--floating.md-text-field--with-chips) .md-text-field__input-wrap{padding-block-start:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__icon,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__trailing-icon-button,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__clear,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__password-toggle,:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__speech{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__icon,:host(.md-text-field--auto-grow) .md-text-field__trailing-icon-button,:host(.md-text-field--auto-grow) .md-text-field__clear,:host(.md-text-field--auto-grow) .md-text-field__password-toggle,:host(.md-text-field--auto-grow) .md-text-field__speech{align-self:center}.md-text-field__label{position:absolute;inset-inline-start:0;font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_label-color);pointer-events:none;transition:top var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), inset-inline-start var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), font-size var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), line-height var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), transform var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), background-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), color var(--md-sys-motion-duration-short2, 100ms) ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host(.md-text-field--filled) .md-text-field__label{top:50%;transform:translateY(-50%)}:host(.md-text-field--multiline:not(.md-text-field--floating)) .md-text-field__label{top:28px}:host(.md-text-field--multiline.md-text-field--outlined:not(.md-text-field--floating)) .md-text-field__label{top:12px;}:host(.md-text-field--multiline.md-text-field--filled:not(.md-text-field--floating)) .md-text-field__label{top:32px;}:host(.md-text-field--filled.md-text-field--floating) .md-text-field__label{top:0;transform:translateY(0);font-size:max(11px, calc(var(--md-sys-typescale-body-small-size, 12px) + var(--md-sys-density-scale, 0) * 0.25px));line-height:max(12px, calc(var(--md-sys-typescale-body-small-line-height, 16px) + var(--md-sys-density-scale, 0) * 1px))}:host(.md-text-field--outlined) .md-text-field__label{top:50%;transform:translateY(-50%);background-color:transparent;padding:0}:host(.md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:calc(-8px - var(--md-sys-density-scale, 0) * 1px);inset-inline-start:0;transform:translateY(-50%);font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(12px, calc(16px + var(--md-sys-density-scale, 0) * 1px));background-color:transparent;padding:0}:host([density='-1'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-3'].md-text-field--filled.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--filled.md-text-field--floating) .md-text-field__label{font-size:11px;line-height:12px;top:1px}:host([density='-2'].md-text-field--filled.md-text-field--floating) .md-text-field__label{top:-2px;}:host([density='-3'].md-text-field--outlined.md-text-field--floating) .md-text-field__label,:host([density='-4'].md-text-field--outlined.md-text-field--floating) .md-text-field__label{top:-4px}:host(.md-text-field--filled) .md-text-field__input{line-height:max(16px, calc(24px + var(--md-sys-density-scale, 0) * 2px))}:host(.md-text-field--outlined.md-text-field--floating.md-text-field--with-leading) .md-text-field__label{inset-inline-start:calc(-1 * (var(--_icon-size) + var(--md-sys-spacing-gap-lg, 16px)))}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:var(--md-sys-color-on-error-container, #8C1D18)}:host(.md-text-field--focused) .md-text-field__label{color:var(--_active-indicator-color)}:host(.md-text-field--error) .md-text-field__label{color:var(--_error-color)}.md-text-field__prefix,.md-text-field__suffix{font-size:max(13px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(18px, calc(24px + var(--md-sys-density-scale, 0) * 1px));color:var(--_supporting-text-color);white-space:nowrap;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__prefix{margin-inline-end:2px}.md-text-field__suffix{margin-inline-start:2px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__prefix,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__suffix{color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__icon{display:flex;align-items:center;justify-content:center;font-size:var(--_icon-size);color:var(--_icon-color);flex-shrink:0;align-self:center;user-select:none;transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__icon--leading{margin-inline-end:var(--md-sys-spacing-gap-lg, 16px)}.md-text-field__icon--trailing{margin-inline-start:0}.md-text-field__trailing-icon-button{display:flex;align-items:center;flex-shrink:0;align-self:center;margin-inline-start:0}.md-text-field__error-icon+.md-text-field__trailing-icon-button{margin-inline-start:4px}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled)) .md-text-field__icon--leading{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__icon--trailing{color:var(--md-sys-color-on-surface, #1C1B1F)}:host(.md-text-field--error) .md-text-field__icon--trailing{color:var(--_error-color)}:host(.md-text-field--error) .md-text-field__icon--trailing ::slotted(*){color:inherit}.md-text-field__clear{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__clear ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__clear:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__clear:focus-visible,.md-text-field__password-toggle:focus-visible,.md-text-field__speech:focus-visible{outline:2px solid var(--md-sys-color-secondary, #625B71);outline-offset:-6px}.md-text-field__clear--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__clear:not(:disabled){color:var(--_error-color)}.md-text-field__password-toggle{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__password-toggle ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__password-toggle:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__password-toggle--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__password-toggle:not(:disabled){color:var(--_error-color)}.md-text-field__speech{display:flex;align-items:center;justify-content:center;align-self:center;border:none;background:none;padding:0;margin:0;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);cursor:pointer;border-radius:50%;width:var(--_icon-size);height:var(--_icon-size);flex-shrink:0;color:var(--_icon-color);transition:color var(--md-sys-motion-duration-short2, 100ms) ease}.md-text-field__speech ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}.md-text-field__speech:hover:not(:disabled){color:var(--md-sys-color-on-surface, #1C1B1F)}.md-text-field__speech--listening{color:var(--_error-color);animation:md-speech-pulse 1.2s ease-in-out infinite}.md-text-field__speech--disabled{color:var(--md-sys-color-on-surface, #1C1B1F);opacity:0.38;cursor:default;pointer-events:none}:host(.md-text-field--error) .md-text-field__speech:not(:disabled):not(.md-text-field__speech--listening){color:var(--_error-color)}@keyframes md-speech-pulse{0%,100%{opacity:1}50%{opacity:0.4}}.md-text-field__error-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:center;width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size);line-height:1;margin-inline-start:var(--md-sys-spacing-gap-lg, 16px);color:var(--_error-color)}.md-text-field__error-icon ::slotted(*){font-size:var(--_icon-size) !important;width:var(--_icon-size);height:var(--_icon-size);color:inherit}:host(.md-text-field--multiline:not(.md-text-field--auto-grow)) .md-text-field__error-icon{align-self:flex-start;margin-block-start:16px}:host(.md-text-field--auto-grow) .md-text-field__error-icon{align-self:center}.md-text-field__indicator{position:absolute;inset-block-end:0;inset-inline:0;height:1px;background-color:var(--md-sys-color-on-surface-variant, #49454F);opacity:calc(1 - var(--_filled-pill));transition:height var(--md-sys-motion-duration-short2, 100ms) ease, background-color var(--md-sys-motion-duration-short2, 100ms) ease, opacity var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_active-indicator-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease}:host(.md-text-field--error) .md-text-field__indicator{background-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__indicator{height:var(--md-text-field-focus-border-width, 3px);background-color:var(--_error-color);transition:height var(--md-sys-motion-duration-short2, 100ms) ease;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{height:1px;background-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__fieldset{position:absolute;inset:0;margin:0;max-inline-size:100%;min-inline-size:0;overflow:hidden;padding-inline-start:calc( var(--md-text-field-padding-inline-start, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-inline-end:calc( var(--md-text-field-padding-inline-end, var(--_text-inset)) - 1px - var(--_legend-inline-padding, 4px) );padding-block:0;border:1px solid var(--_outline-color);border-radius:var(--_container-shape);pointer-events:none;transition:border-color var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}:host(.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_active-indicator-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, -2px);transition:none}:host(.md-text-field--error) .md-text-field__fieldset{border-color:var(--_error-color)}:host(.md-text-field--error.md-text-field--focused) .md-text-field__fieldset{border-color:var(--_error-color);border-width:var(--md-text-field-focus-border-width, 3px);inset:var(--md-text-field-focus-inset, -2px);transition:none;}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__fieldset{border-color:var(--md-sys-color-on-surface, #1C1B1F)}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__fieldset{border-color:var(--md-sys-color-on-error-container, #8C1D18)}.md-text-field__legend{max-inline-size:calc(100% - 16px);overflow:hidden;height:0;padding:0;font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));max-width:0;transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));white-space:nowrap}.md-text-field__legend--active{max-width:100%;padding-inline:var(--_legend-inline-padding, 4px);transition:max-width var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)), padding-inline var(--md-sys-motion-duration-medium1, 200ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))}.md-text-field__legend span{display:inline-block;padding:0;visibility:hidden}.md-text-field__support-row{display:flex;justify-content:space-between;padding:4px 16px 0;gap:16px}.md-text-field__support-text{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color)}.md-text-field__support-text--error{color:var(--_error-color)}.md-text-field__counter{font-size:max(10px, calc(12px + var(--md-sys-density-scale, 0) * 0.5px));line-height:max(14px, calc(16px + var(--md-sys-density-scale, 0) * 0.5px));color:var(--_supporting-text-color);flex-shrink:0}:host(.md-text-field--disabled) .md-text-field__container{cursor:default;pointer-events:none}:host(.md-text-field--disabled.md-text-field--filled) .md-text-field__container{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 4%, transparent)}:host(.md-text-field--disabled) .md-text-field__label{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__input{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__indicator{background-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__fieldset{border-color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 12%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__icon ::slotted(*){color:inherit}:host(.md-text-field--disabled) .md-text-field__support-text,:host(.md-text-field--disabled) .md-text-field__counter{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}:host(.md-text-field--disabled) .md-text-field__prefix,:host(.md-text-field--disabled) .md-text-field__suffix{color:color-mix(in srgb, var(--md-sys-color-on-surface, #1C1B1F) 38%, transparent)}.material-symbols-outlined{font-family:var(--md-sys-icon-font-family, 'Material Symbols Outlined', 'Material Icons');font-weight:normal;font-style:normal;font-size:var(--_icon-size);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}@keyframes md-tf-autofill-start{from{--md-tf-autofill:1}}@keyframes md-tf-autofill-cancel{from{--md-tf-autofill:0}}.md-text-field__input:-webkit-autofill{animation-name:md-tf-autofill-start;box-shadow:0 0 0 1000px var(--_container-color, #E6E1E6) inset;-webkit-text-fill-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20));caret-color:var(--md-text-field-input-color, var(--md-sys-color-on-surface, #1D1B20))}.md-text-field__input:not(:-webkit-autofill){animation-name:md-tf-autofill-cancel}@media (prefers-reduced-motion: reduce){.md-text-field__label,.md-text-field__indicator,.md-text-field__state-layer,.md-text-field__fieldset,.md-text-field__legend,.md-text-field__legend>span,.md-text-field__container{transition-duration:0.01ms !important}.md-text-field__speech--listening,.md-text-field__speech--listening *{animation:none !important}}@media (forced-colors: active){:host(.md-text-field--filled) .md-text-field__container,:host(.md-text-field--filled.md-text-field--focused) .md-text-field__container,:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--outlined) .md-text-field__container,.md-text-field__container{border:1px solid ButtonText;forced-color-adjust:none;background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__indicator{background-color:Highlight}.md-text-field__input{caret-color:FieldText}:host(.md-text-field--filled.md-text-field--disabled) .md-text-field__indicator{background-color:GrayText}:host(.md-text-field--outlined.md-text-field--disabled) .md-text-field__fieldset{border-color:GrayText}:host(.md-text-field--focused) .md-text-field__label,:host(.md-text-field--error) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__label{color:FieldText}:host(.md-text-field--disabled) .md-text-field__label,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText}:host(.md-text-field--error) .md-text-field__indicator{background-color:LinkText}.md-text-field__input{background:Field;color:FieldText}:host(.md-text-field--focused) .md-text-field__container{outline:2px solid Highlight;outline-offset:1px}:host(.md-text-field--error) .md-text-field__container{border-color:LinkText}:host(.md-text-field--disabled) .md-text-field__container,:host(.md-text-field--disabled) .md-text-field__input{color:GrayText;border-color:GrayText}.md-text-field__support-text,.md-text-field__counter{color:CanvasText}.md-text-field__support-text--error{color:LinkText}.md-text-field__label,.md-text-field__prefix,.md-text-field__suffix,.md-text-field__icon,.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{color:FieldText;forced-color-adjust:none}.md-text-field__error-icon{color:LinkText}.md-text-field__indicator{background-color:FieldText}:host(.md-text-field--outlined) .md-text-field__container{border:none}:host(.md-text-field--outlined) .md-text-field__fieldset{border-color:ButtonText}:host(.md-text-field--outlined.md-text-field--error) .md-text-field__fieldset{border-color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__label,:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label,:host(:hover) .md-text-field__prefix,:host(:hover) .md-text-field__suffix,:host(:hover) .md-text-field__icon{color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__label{color:LinkText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled):not(.md-text-field--error)) .md-text-field__indicator,:host(:hover:not(.md-text-field--focused)) .md-text-field__indicator{background-color:FieldText}:host(:hover:not(.md-text-field--focused):not(.md-text-field--disabled).md-text-field--error) .md-text-field__indicator{background-color:LinkText}:host(:hover) .md-text-field__clear,:host(:hover) .md-text-field__password-toggle,:host(:hover) .md-text-field__speech{color:FieldText;background:none}}:host(.md-text-field--outlined) .md-text-field__input:-webkit-autofill{box-shadow:0 0 0 1000px var(--md-sys-color-surface, #FEF7FF) inset}.md-text-field__clear,.md-text-field__password-toggle,.md-text-field__speech{min-inline-size:40px;min-block-size:40px;display:inline-flex;align-items:center;justify-content:center;margin-inline:-6px;margin-block:-8px}.md-text-field__clear--empty{visibility:hidden}`;const n={numeric:/[^0-9]/g,integer:/[^0-9-]/g,decimal:/[^0-9.\-]/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g};const a=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.mdInput=i(this,"mdInput",7);this.mdChange=i(this,"mdChange",7);this.mdSearch=i(this,"mdSearch",7);this.mdClear=i(this,"mdClear",7);this.mdPasswordToggle=i(this,"mdPasswordToggle",7);this.mdSpeechResult=i(this,"mdSpeechResult",7);this.mdValidityChange=i(this,"mdValidityChange",5);this.internals=this.attachInternals();this.reserveSupportingSpace=false;this.variant="filled";this.label="";this.value="";this.placeholder="";this.type="text";this.name="";this.pattern="";this.autocomplete="";this.inputMode="";this.enterKeyHint="";this.autoCapitalize="";this.disabled=false;this.readOnly=false;this.required=false;this.error=false;this.errorText="";this.supportingText="";this.prefixText="";this.suffixText="";this.clearable=false;this.passwordToggle=false;this.density=0;this.multiline=false;this.speechToText=false;this.speechLang="";this.restrict="";this.formatOn="blur";this.focusBorderWidth=3;this.appearFocused=false;this.chipsWrap=false;this.debounce=0;this.throttle=0;this.focused=false;this.formDisabled=false;this.autofilled=false;this.hostAriaLabel="";this.passwordVisible=false;this.hasSlottedLeading=false;this.hasSlottedChips=false;this.hasSlottedTrailing=false;this.hasTrailingIconButton=false;this.listening=false;this.displayValue="";this.defaultValue="";this.internalWrite=false;this.composing=false;this.warnedLiveFormat=false;this.uid=`md-text-field-${Math.random().toString(36).slice(2,7)}`;this.throttlePending=false;this.customValidityMessage="";this.inputRole="";this.inputExpanded=false;this.inputAriaAutocomplete="";this.lastValidityKey=null;this.pendingTypeResync=false;this.formatterEpoch=0;this.handleInput=t=>{const e=t.target||this.inputEl;if(!e)return;if(this.composing)return;let i=e.value;let s=e.selectionStart??i.length;let d=this.applyRestrict(i);if(this.restrict&&this.maxLength!=null&&!isNaN(this.maxLength)&&d.length>this.maxLength){const t=Array.from(d);let e="";for(const i of t){if((e+i).length>this.maxLength)break;e+=i}d=e}if(d!==i){const t=this.applyRestrict(i.substring(0,s));i=d;e.value=i;s=Math.min(t.length,i.length);try{e.setSelectionRange(s,s)}catch{}}this.internalWrite=true;try{this.value=this.parser?this.parser(i):i}catch(t){this.value=i}if(this.formatter&&this.effectiveFormatOn==="input"&&this.maxLength!=null){const t=this.value.replace(/[-/\s]/g,"");if(t.length>this.maxLength){const e=Array.from(t);let i="";for(const t of e){if((i+t).length>this.maxLength)break;i+=t}this.value=i}}if(this.formatter&&this.effectiveFormatOn==="input"){try{const t=t=>this.parser?this.parser(t).length:(t.match(/[0-9a-zA-Z]/g)||[]).length;const d=t(i.substring(0,s));const o=this.formatter(this.value);this.displayValue=o;e.value=o;let l=d===0?0:o.length;for(let e=0;d>0&&e<o.length;e++){if(t(o.slice(0,e+1))===d){l=e+1;break}}try{e.setSelectionRange(l,l)}catch{}}catch(t){this.displayValue=this.value;e.value=this.value}}if(!(this.formatter&&this.effectiveFormatOn==="input")){this.displayValue=e.value}this.internalWrite=false;this.mdInput.emit(this.value);this.emitSearch(this.value);if(this.multiline==="auto-grow"){this.autoGrow()}};this.handleCompositionStart=()=>{this.composing=true};this.handleCompositionEnd=t=>{this.composing=false;this.handleInput(t)};this.handleKeyDown=t=>{if(t.key==="Enter"&&!this.multiline&&!this.composing){try{const t=this.internals?.form;const e=t?.querySelector('button[type="submit"], input[type="submit"], button:not([type])');t?.requestSubmit(e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:undefined)}catch{}}if(t.key==="Escape"&&!this.composing&&this.clearable==="internal"&&this.value&&!this.readOnly&&!this.isDisabled){t.stopPropagation();t.preventDefault();this.clearValue();this.mdClear.emit()}};this.handleAutofillStart=t=>{if(t.animationName==="md-tf-autofill-start")this.autofilled=true;if(t.animationName==="md-tf-autofill-cancel")this.autofilled=false};this.handleChange=()=>{this.mdChange.emit(this.value);this.el.dispatchEvent(new CustomEvent("change",{bubbles:true}))};this.handleFocus=()=>{this.focused=true;if(this.formatter&&this.effectiveFormatOn==="blur"&&this.inputEl){this.displayValue=this.value;this.inputEl.value=this.value}};this.handleBlur=()=>{this.focused=false;this.composing=false;this.syncDisplayValue();if(this.inputEl){this.inputEl.value=this.displayValue}};this.handleContainerClick=()=>{this.inputEl?.focus()};this.handleClear=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly||!this.value)return;if(this.clearable==="internal"){this.clearValue()}this.mdClear.emit();this.inputEl?.focus()};this.handlePasswordToggle=t=>{t.stopPropagation();if(this.isDisabled)return;if(this.passwordToggle==="internal"){this.passwordVisible=!this.passwordVisible;this.mdPasswordToggle.emit({visible:this.passwordVisible})}else{this.mdPasswordToggle.emit({visible:this.type==="password"})}this.inputEl?.focus()};this.handleSpeechToggle=t=>{t.stopPropagation();if(this.isDisabled||this.readOnly)return;if(this.speechToText==="external"){this.listening=!this.listening;this.mdSpeechResult.emit({transcript:"",listening:this.listening});return}if(this.listening){this.recognition?.stop();return}const e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e){console.warn("md-text-field: SpeechRecognition API not supported in this browser.");return}const i=new e;i.continuous=false;i.interimResults=true;if(this.speechLang){i.lang=this.speechLang}let s="";const d=this.value;i.onresult=t=>{let e="";for(let i=t.resultIndex;i<t.results.length;i++){const d=t.results[i][0].transcript;if(t.results[i].isFinal){s+=d}else{e+=d}}const i=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+i+s+e;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdSpeechResult.emit({transcript:s+e,listening:true})};i.onend=()=>{this.listening=false;this.recognition=undefined;const t=d&&!d.endsWith(" ")?" ":"";this.internalWrite=true;this.value=d+t+s;this.internalWrite=false;if(this.inputEl)this.inputEl.value=this.value;this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.mdSpeechResult.emit({transcript:s,listening:false})};i.onerror=t=>{if(t.error!=="aborted"){console.warn("md-text-field: Speech recognition error:",t.error)}this.listening=false;this.recognition=undefined};this.recognition=i;this.listening=true;i.start()}}get isDisabled(){return this.disabled||this.formDisabled}get effectiveFormatOn(){if(this.formatOn==="input"&&this.formatter&&!this.parser){return"blur"}return this.formatOn}static isInteractive(t){const e=t.tagName.toLowerCase();return["md-icon-button","md-button","button","a","input","select","textarea"].includes(e)||t.hasAttribute("tabindex")}get isFloating(){return this.focused||this.appearFocused||!!this.value||!!this.placeholder||this.autofilled||this.hasSlottedChips}get effectiveRows(){if(this.rows!=null)return this.rows;return this.multiline==="fixed"?4:2}get restrictPattern(){if(!this.restrict)return null;if(n[this.restrict])return n[this.restrict];try{const t=this.restrict.startsWith("[")&&this.restrict.endsWith("]")?this.restrict.slice(1,-1):this.restrict;return new RegExp(`[^${t}]`,"g")}catch{return null}}applyRestrict(t){const e=this.restrictPattern;return e?t.replace(e,""):t}syncTrailingSlotState(e){if(!e)return;this.hasSlottedTrailing=e.assignedNodes().length>0;this.hasTrailingIconButton=e.assignedElements().some((e=>t.isInteractive(e)))}syncHostSlottedIcons(){const e=this.el.querySelector('[slot="leading-icon"]');const i=this.el.querySelector('[slot="trailing-icon"]');this.hasSlottedLeading=!!e;this.hasSlottedTrailing=!!i;this.hasTrailingIconButton=!!i&&t.isInteractive(i)}componentWillLoad(){this.bridgeFormatterProps();if(this.el.hasAttribute("clearable")&&!this.clearable)this.clearable="internal";if(this.el.hasAttribute("password-toggle")&&!this.passwordToggle)this.passwordToggle="internal";if(this.el.hasAttribute("speech-to-text")&&!this.speechToText)this.speechToText="internal";if(this.maxLength==null&&this.el.hasAttribute("maxlength")){this.maxLength=parseInt(this.el.getAttribute("maxlength"),10)}if(this.minLength==null&&this.el.hasAttribute("minlength")){this.minLength=parseInt(this.el.getAttribute("minlength"),10)}if(!this.label&&!this.hostAriaLabel){const t=this.el.getAttribute("aria-label");if(t){this.hostAriaLabel=t;this.el.removeAttribute("aria-label")}}if(!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"")}this.defaultValue=this.value;this.syncDisplayValue();this.syncHostSlottedIcons();this.updateFormValue()}updateFormValue(){try{this.internals?.setFormValue(this.value)}catch{}}updateValidity(){const t=this.inputEl;if(!t)return;try{if(this.customValidityMessage){this.internals?.setValidity({customError:true},this.customValidityMessage,t);return}if(this.focused&&t.value!==this.value)return;const e=t.value;let i=false;if(t.value!==this.value){t.value=this.value;i=true;if(t.value!==this.value){t.value=e;this.internals?.setValidity({badInput:true},"Invalid value",t);return}}const s=t.validity;const d={valueMissing:s.valueMissing,typeMismatch:s.typeMismatch,patternMismatch:s.patternMismatch,tooLong:s.tooLong,tooShort:s.tooShort,rangeUnderflow:s.rangeUnderflow,rangeOverflow:s.rangeOverflow,stepMismatch:s.stepMismatch,badInput:s.badInput};const o=s.valid;const l=t.validationMessage;if(i)t.value=e;if(o){this.internals?.setValidity({})}else{this.internals?.setValidity(d,l||"Invalid value",t)}}catch{}this.emitValidityChange()}formResetCallback(){this.internalWrite=false;this.value=this.defaultValue;this.syncDisplayValue();if(this.inputEl)this.inputEl.value=this.displayValue;this.updateFormValue()}formDisabledCallback(t){queueMicrotask((()=>{this.formDisabled=t}))}async setFocus(){this.inputEl?.focus()}async select(){this.inputEl?.select()}async getInputElement(){return this.inputEl??null}async getValidity(){try{const t=this.internals.validity;return{valid:t.valid,validationMessage:this.internals.validationMessage,flags:{valueMissing:t.valueMissing,typeMismatch:t.typeMismatch,patternMismatch:t.patternMismatch,tooLong:t.tooLong,tooShort:t.tooShort,rangeUnderflow:t.rangeUnderflow,rangeOverflow:t.rangeOverflow,stepMismatch:t.stepMismatch,badInput:t.badInput,customError:t.customError}}}catch{return{valid:true,validationMessage:"",flags:{}}}}async setCustomValidity(t){this.customValidityMessage=t;this.updateValidity()}formStateRestoreCallback(t){if(typeof t==="string"){this.value=t}}emitValidityChange(){const t=l(this.internals);const e=`${t.valid}|${t.validationMessage}`;if(this.lastValidityKey===e)return;const i=this.lastValidityKey!==null;this.lastValidityKey=e;if(i)this.mdValidityChange.emit(t)}async checkValidity(){try{return this.internals.checkValidity()}catch{return this.inputEl?.checkValidity()??true}}async reportValidity(){try{return this.internals.reportValidity()}catch{return this.inputEl?.reportValidity()??true}}componentDidLoad(){const t=this.el.shadowRoot;const e=t?.querySelector('slot[name="leading-icon"]');e?.addEventListener("slotchange",(()=>{this.hasSlottedLeading=e.assignedNodes().length>0}));const i=t?.querySelector('slot[name="trailing-icon"]');i?.addEventListener("slotchange",(()=>{this.syncTrailingSlotState(i)}));const s=t?.querySelector('slot[name="chips"]');s?.addEventListener("slotchange",(()=>{this.hasSlottedChips=s.assignedNodes().length>0}));this.hasSlottedLeading=(e?.assignedNodes().length??0)>0;this.hasSlottedChips=(s?.assignedNodes().length??0)>0;this.syncTrailingSlotState(i);if(this.multiline==="auto-grow"){this.autoGrow()}this.syncDisplayValue();this.updateValidity()}onValueChange(){if(this.value==null){this.value="";return}if(!this.internalWrite&&!this.multiline&&/[\r\n]/.test(this.value)){this.value=this.value.replace(/[\r\n]+/g,"");return}if(this.multiline==="auto-grow"){this.autoGrow()}this.updateFormValue();if(!this.focused){this.syncDisplayValue();return}if(!this.internalWrite){this.composing=false;this.syncDisplayValue();const t=this.inputEl;if(t){t.value=this.effectiveFormatOn==="blur"&&this.formatter?this.value:this.displayValue;const e=t.value.length;try{t.setSelectionRange(e,e)}catch{}}this.updateValidity()}}onTypeChange(){this.pendingTypeResync=true}componentDidRender(){if(this.pendingTypeResync){this.pendingTypeResync=false;const t=this.inputEl;if(t){const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur"?this.value:this.displayValue;if(t.value!==e){t.value=e}}}this.updateValidity()}bridgeFormatterProps(){["formatter","parser"].forEach((t=>{Object.defineProperty(this.el,t,{configurable:true,get:()=>this[t],set:e=>{this[t]=e;if(!this.focused){this.syncDisplayValue()}this.formatterEpoch++}})}))}syncDisplayValue(){if(this.formatter){try{const t=this.formatter(this.value);this.displayValue=typeof t==="string"?t:this.value}catch(t){this.displayValue=this.value}}else{this.displayValue=this.value}}emitSearchDistinct(t){if(t===this.lastEmittedSearch)return;this.lastEmittedSearch=t;this.mdSearch.emit(t)}emitSearch(t){if(this.debounce>0){clearTimeout(this.debounceTimer);this.debounceTimer=setTimeout((()=>this.emitSearchDistinct(t)),this.debounce)}if(this.throttle>0){if(!this.throttleTimer){this.emitSearchDistinct(t);this.throttlePending=false;this.throttleTimer=setTimeout((()=>{this.throttleTimer=undefined;if(this.throttlePending){this.emitSearchDistinct(this.value);this.throttlePending=false}}),this.throttle)}else{this.throttlePending=true}}if(this.debounce<=0&&this.throttle<=0){this.emitSearchDistinct(t)}}autoGrow(){const t=this.inputEl;if(!t)return;t.value=this.value;t.style.height="auto";t.style.height=`${t.scrollHeight}px`}clearValue(){this.internalWrite=true;this.value="";this.internalWrite=false;if(this.inputEl){this.inputEl.value=""}this.displayValue="";this.updateValidity();this.mdInput.emit(this.value);this.mdChange.emit(this.value);this.emitSearch("")}disconnectedCallback(){this.recognition?.abort();this.recognition=undefined;clearTimeout(this.debounceTimer);clearTimeout(this.throttleTimer);this.debounceTimer=undefined;this.throttleTimer=undefined;this.throttlePending=false}renderInputElement(){const t=this.passwordToggle==="internal"&&this.passwordVisible?"text":this.type;const e=this.focused&&this.formatter&&this.effectiveFormatOn==="blur";const i=e?this.value:this.displayValue;const d=this.error&&this.errorText?this.errorText:this.supportingText;const o=[d?`${this.uid}-support`:"",this.maxLength!=null&&!isNaN(this.maxLength)?`${this.uid}-counter`:""].filter(Boolean).join(" ");const l=this.el.getAttribute("aria-haspopup");const r=l==="dialog"||l==="listbox"?l:null;const n=this.inputRole==="combobox"?"combobox":undefined;const a={placeholder:this.isFloating?this.placeholder:"",disabled:this.isDisabled,readOnly:this.readOnly,required:this.required,maxLength:this.formatter&&this.effectiveFormatOn==="input"||this.restrict?undefined:this.maxLength,pattern:this.pattern||undefined,minLength:this.minLength,min:this.min,max:this.max,step:this.step,autocomplete:this.autocomplete||undefined,inputMode:this.inputMode||undefined,enterKeyHint:this.enterKeyHint||undefined,autoCapitalize:this.autoCapitalize||undefined,spellcheck:this.spellcheck,value:i,"aria-label":this.label||this.hostAriaLabel||undefined,"aria-haspopup":r||undefined,role:n,"aria-expanded":n?String(this.inputExpanded):undefined,"aria-autocomplete":n&&this.inputAriaAutocomplete?this.inputAriaAutocomplete:undefined,"aria-describedby":o||undefined,"aria-invalid":this.error?"true":undefined,"aria-required":this.required?"true":undefined,id:`${this.uid}-input`,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onAnimationStart:this.handleAutofillStart};if(this.multiline){return s("textarea",{ref:t=>{this.inputEl=t},...a,rows:this.effectiveRows,part:"input",class:{"md-text-field__input":true,"md-text-field__input--textarea":true,"md-text-field__input--auto-grow":this.multiline==="auto-grow","md-text-field__input--fixed":this.multiline==="fixed"}},i)}return s("input",{ref:t=>{this.inputEl=t},class:"md-text-field__input",part:"input",type:t,...a})}render(){const t=this.error&&this.errorText?this.errorText:this.supportingText;const e=!!this.clearable;const i=!this.multiline&&!!this.passwordToggle;const o=!!this.speechToText;const l=this.hasSlottedLeading;const r=this.hasSlottedTrailing||e||i||o||this.error;const n=!!this.formatter&&this.effectiveFormatOn==="input";const a=n?this.value.replace(/[-/\s]/g,"").length:this.value.length;const c=this.maxLength!=null&&!isNaN(this.maxLength)?`${a}/${this.maxLength}`:"";const f=this.isDisabled||this.readOnly||!this.value;const h=this.passwordToggle==="internal"?this.passwordVisible:this.type!=="password";const m=h?"visibility_off":"visibility";return s(d,{key:"4508bf039397006cfe5cbf6b6d4b4486161cf528",class:{"md-text-field":true,[`md-text-field--${this.variant}`]:true,"md-text-field--focused":this.focused||this.appearFocused,"md-text-field--error":this.error,"md-text-field--disabled":this.isDisabled,"md-text-field--with-leading":l,"md-text-field--with-trailing":r,"md-text-field--with-chips":this.hasSlottedChips,"md-text-field--floating":this.isFloating,[`md-text-field--density${this.density}`]:this.density!==0,"md-text-field--multiline":!!this.multiline,"md-text-field--auto-grow":this.multiline==="auto-grow","md-text-field--textarea":this.multiline==="fixed","md-text-field--listening":this.listening},style:Number(this.focusBorderWidth)!==3?{"--md-text-field-focus-border-width":`${Number(this.focusBorderWidth)}px`,"--md-text-field-focus-inset":`${-(Number(this.focusBorderWidth)-1)}px`}:undefined},s("div",{key:"d9d373cfa27b4ba168f47f4b05d6433524227e1f",class:"md-text-field__container",part:"container",onClick:this.handleContainerClick},s("div",{key:"9312fd06590051f02f66cca2d488d537a4b7b083",class:"md-text-field__state-layer","aria-hidden":"true"}),s("span",{key:"73efa44c0053b753a101e1f64c64e2d2c39564fd",class:"md-text-field__icon md-text-field__icon--leading","aria-hidden":"true",style:{display:l?undefined:"none"}},s("slot",{key:"bf4a47cc04bca6daa5d11aaad263d87f20377378",name:"leading-icon"})),s("div",{key:"06c44f320928d78994d992c2e32794ca4132ffed",class:"md-text-field__input-wrap"},this.label&&s("label",{key:"a0d7d3b96ac067b17959770389461591baef936a",class:"md-text-field__label",part:"label",htmlFor:`${this.uid}-input`},this.label),s("div",{key:"ea7bcb96445bcaf3df21602c391068e47649d997",class:"md-text-field__input-row"},s("span",{key:"44c6f618e62608f265c6d87b59534f572ed00b75",class:"md-text-field__chips",part:"chips",style:{display:this.hasSlottedChips?undefined:"none"}},s("slot",{key:"e977d02a77960b0fee7125cdd784caf9f66e41e0",name:"chips"})),this.prefixText&&this.isFloating&&s("span",{key:"df25770815ba1f3307c61d860745257bfecb8209",class:"md-text-field__prefix"},this.prefixText),this.renderInputElement(),this.suffixText&&this.isFloating&&s("span",{key:"4effa7c4af78f7af50229c8ef132a981fcdb2722",class:"md-text-field__suffix"},this.suffixText))),e&&s("button",{key:"46bfde02d14bd0c828171fc5f8c30c10f15d84ed",type:"button",class:{"md-text-field__clear":true,"md-text-field__clear--disabled":f,"md-text-field__clear--empty":!this.value},disabled:f,onClick:this.handleClear,"aria-label":"Clear"},s("slot",{key:"ce2c25c56aefc9e6b2eca382f1359e305c33b8e8",name:"clear-icon"},s("span",{key:"58d4069b1f6581d87ad8d18e64604608bdcee805",class:"material-symbols-outlined","aria-hidden":"true"},"cancel"))),i&&s("button",{key:"ebd029da05a0eaa3132c7bae860bbba548c6b243",type:"button",class:{"md-text-field__password-toggle":true,"md-text-field__password-toggle--disabled":this.isDisabled},disabled:this.isDisabled,onClick:this.handlePasswordToggle,"aria-label":h?"Hide password":"Show password","aria-pressed":h?"true":"false"},s("slot",{key:"a32e0b4ab841edd5299d5e09ce69d5fd700d6e34",name:"password-toggle-icon"},s("span",{key:"616afe93a98c1a609b1e01feaf3bc8043145f36c",class:"material-symbols-outlined","aria-hidden":"true"},m))),o&&s("button",{key:"e53cbc05ae3fb648500470932bc96865fd206b2f",type:"button",class:{"md-text-field__speech":true,"md-text-field__speech--listening":this.listening,"md-text-field__speech--disabled":this.isDisabled},disabled:this.isDisabled||this.readOnly,onClick:this.handleSpeechToggle,"aria-label":this.listening?"Stop listening":"Start voice input","aria-pressed":this.listening?"true":"false"},s("slot",{key:"9a5f7868e44b1c8e9f9047e536c1c63505226886",name:"speech-icon"},s("span",{key:"a71be510232fddeb96cb6bb8f673231da9670dc9",class:"material-symbols-outlined","aria-hidden":"true"},this.listening?"hearing":"mic"))),this.error&&s("span",{key:"d729440b9e9e3ce6d8e6486036c97d7f3b443f0b",class:"md-text-field__error-icon","aria-hidden":"true"},s("slot",{key:"90e770cf0fc390961ecb181dc48f92370c7823fd",name:"error-icon"},s("span",{key:"e149f154a1f3d0194aff25d742ebc2c44b6d0547",class:"material-symbols-outlined",style:{fontVariationSettings:"'FILL' 1"}},"error"))),s("span",{key:"53a7d1b64a6385257de98f1f2a40806b76a0d35a",class:{"md-text-field__icon":!this.hasTrailingIconButton,"md-text-field__icon--trailing":!this.hasTrailingIconButton,"md-text-field__trailing-icon-button":this.hasTrailingIconButton},"aria-hidden":this.hasTrailingIconButton?null:"true",style:{display:this.hasSlottedTrailing?undefined:"none"}},s("slot",{key:"9a66c71717eae11fead8bed3e8ccc6217d1dd32e",name:"trailing-icon"})),this.variant==="filled"&&s("div",{key:"44c58eacdabd17b343bd2d9779f9146983412df6",class:"md-text-field__indicator"}),this.variant==="outlined"&&s("fieldset",{key:"0030dec6fd5327ee80d106167eb8746f6857a1b8",class:"md-text-field__fieldset"},s("legend",{key:"f970588bb684f4a6d8c35f6e156c02fb5029a462",class:{"md-text-field__legend":true,"md-text-field__legend--active":this.isFloating&&!!this.label}},s("span",{key:"e1ca66b55e706fe2368e8da9b7087c0bd2144de9"},this.label)))),(t||c||this.reserveSupportingSpace)&&s("div",{key:"2d8c198e0a0ff72cfef291edef33078cbec15338",class:"md-text-field__support-row"},s("span",{key:"e63c054d0e1443b0a968606742dea66f9b26b3fc",id:`${this.uid}-support`,part:"supporting-text",role:this.error?"alert":undefined,class:{"md-text-field__support-text":true,"md-text-field__support-text--error":this.error}},t||(this.reserveSupportingSpace?"​":"")),c&&s("span",{key:"cbad922f5b336990a6e126e82e23d9fea9a171e4",id:`${this.uid}-counter`,part:"counter",class:"md-text-field__counter"},c)))}static get delegatesFocus(){return true}static get formAssociated(){return true}get el(){return this}static get watchers(){return{value:[{onValueChange:0}],type:[{onTypeChange:0}]}}static get style(){return r()}},[337,"md-text-field",{reserveSupportingSpace:[4,"reserve-supporting-space"],variant:[1],label:[1],value:[1025],placeholder:[1],type:[1],name:[513],pattern:[1],minLength:[1026,"min-length"],min:[8],max:[8],step:[8],autocomplete:[1],inputMode:[1,"inputmode"],enterKeyHint:[1,"enterkeyhint"],autoCapitalize:[1,"autocapitalize"],spellcheck:[4],disabled:[516],readOnly:[4,"readonly"],required:[4],error:[4],errorText:[1,"error-text"],supportingText:[1,"supporting-text"],prefixText:[1,"prefix-text"],suffixText:[1,"suffix-text"],maxLength:[1026,"max-length"],clearable:[1032],passwordToggle:[1032,"password-toggle"],density:[514],multiline:[8],rows:[2],speechToText:[1032,"speech-to-text"],speechLang:[1,"speech-lang"],restrict:[1],formatter:[1040],parser:[1040],formatOn:[1,"format-on"],focusBorderWidth:[514,"focus-border-width"],appearFocused:[516,"appear-focused"],chipsWrap:[516,"chips-wrap"],debounce:[514],throttle:[514],inputRole:[1,"input-role"],inputExpanded:[4,"input-expanded"],inputAriaAutocomplete:[1,"input-aria-autocomplete"],focused:[32],formDisabled:[32],autofilled:[32],hostAriaLabel:[32],passwordVisible:[32],hasSlottedLeading:[32],hasSlottedChips:[32],hasSlottedTrailing:[32],hasTrailingIconButton:[32],listening:[32],displayValue:[32],formatterEpoch:[32],setFocus:[64],select:[64],getInputElement:[64],getValidity:[64],setCustomValidity:[64],checkValidity:[64],reportValidity:[64]},undefined,{value:[{onValueChange:0}],type:[{onTypeChange:0}]}]);function c(){if(typeof customElements==="undefined"){return}const t=["md-text-field"];t.forEach((t=>{switch(t){case"md-text-field":if(!customElements.get(o(t))){customElements.define(o(t),a)}break}}))}c();export{a as M,c as d};
2
+ //# sourceMappingURL=p-B3MWYEEJ.js.map
@@ -1,2 +1,2 @@
1
- import{t as i,p as a,H as o,h as n,d as e}from"./p-MWBNn6Lj.js";const t=()=>`:host{--_color:var(--md-loading-indicator-color, var(--md-sys-color-primary, #6750A4));--_size:var(--md-loading-indicator-size, max(32px, calc(48px + var(--md-sys-density-scale, 0) * 4px)));--_shape-size:var(--md-loading-indicator-shape-size, calc(var(--_size) * 0.792));--_container-color:var(--md-loading-indicator-container-color, var(--md-sys-color-primary-container, #EADDFF));--_container-shape:var(--md-loading-indicator-container-shape, var(--md-sys-shape-corner-full, 50%));display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_size);block-size:var(--_size);flex-shrink:0;box-sizing:border-box;overflow:hidden}:host(.md-loading-indicator--contained){--_color:var(--md-loading-indicator-color, var(--md-sys-color-on-primary-container, #21005D));background-color:var(--_container-color);border-radius:var(--_container-shape)}.md-loading-indicator__shape{display:block;inline-size:var(--_shape-size);block-size:var(--_shape-size);background-color:var(--_color);will-change:clip-path, transform;animation:md-loading-morph 4.55s infinite}@keyframes md-loading-morph{0%{clip-path:polygon( 50% 5.3%, 55.4% 9.1%, 59.3% 15.3%, 64% 16.1%, 71.2% 13.3%, 77.1% 14.7%, 78.3% 21.7%, 78.1% 28.4%, 82.6% 31.2%, 90% 33.4%, 92.6% 38.6%, 88.4% 44.9%, 85.3% 50%, 88.4% 55.1%, 92.6% 61.4%, 90% 66.6%, 82.6% 68.8%, 78.1% 71.6%, 78.3% 78.3%, 77.1% 85.3%, 71.2% 86.7%, 64% 83.9%, 59.3% 84.7%, 55.4% 90.9%, 50% 94.7%, 44.6% 90.9%, 40.7% 84.7%, 36% 83.9%, 28.8% 86.7%, 22.9% 85.3%, 21.7% 78.3%, 21.9% 71.6%, 17.4% 68.8%, 10% 66.6%, 7.4% 61.4%, 11.6% 55.1%, 14.7% 50%, 11.6% 44.9%, 7.4% 38.6%, 10% 33.4%, 17.4% 31.2%, 21.9% 28.4%, 21.7% 21.7%, 22.9% 14.7%, 28.8% 13.3%, 36% 16.1%, 40.7% 15.3%, 44.6% 9.1% );transform:rotate(0deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}14.3%{clip-path:polygon( 50% 6.8%, 55.4% 9.1%, 59.8% 13.6%, 64.2% 15.8%, 70% 15.4%, 76.2% 15.9%, 79.9% 20.1%, 80.8% 26.4%, 81.8% 31.6%, 85.8% 35.2%, 90.8% 39.1%, 92.6% 44.4%, 90% 50%, 86.7% 54.8%, 86.4% 59.8%, 88.1% 65.8%, 87.4% 71.6%, 82.7% 75.1%, 76.7% 76.7%, 72.5% 79.4%, 70% 84.6%, 66.4% 89.7%, 60.9% 90.8%, 55.1% 88.4%, 50% 86.8%, 44.9% 88.4%, 39.1% 90.8%, 33.6% 89.7%, 30% 84.6%, 27.5% 79.4%, 23.3% 76.7%, 17.3% 75.1%, 12.6% 71.6%, 11.9% 65.8%, 13.6% 59.8%, 13.3% 54.8%, 10% 50%, 7.4% 44.4%, 9.2% 39.1%, 14.2% 35.2%, 18.2% 31.6%, 19.2% 26.4%, 20.1% 20.1%, 23.8% 15.9%, 30% 15.4%, 35.8% 15.8%, 40.2% 13.6%, 44.6% 9.1% );transform:rotate(154deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}28.6%{clip-path:polygon( 50% 6.8%, 55.4% 8.9%, 60% 12.7%, 63.9% 16.4%, 67.5% 19.7%, 71.1% 22.5%, 75% 25%, 79.5% 27.4%, 84.4% 30.1%, 89.3% 33.7%, 91.4% 38.9%, 90% 44.7%, 87.6% 50%, 85.4% 54.7%, 83.5% 59%, 82.1% 63.3%, 81.2% 68%, 80.2% 73.2%, 78.9% 78.9%, 76.3% 84.2%, 71% 86.4%, 65% 86.2%, 59.5% 85.5%, 54.6% 84.8%, 50% 84.6%, 45.4% 84.8%, 40.5% 85.5%, 35% 86.2%, 29% 86.4%, 23.7% 84.2%, 21.1% 78.9%, 19.8% 73.2%, 18.8% 68%, 17.9% 63.3%, 16.5% 59%, 14.6% 54.7%, 12.4% 50%, 10% 44.7%, 8.6% 38.9%, 10.7% 33.7%, 15.6% 30.1%, 20.5% 27.4%, 25% 25%, 28.9% 22.5%, 32.5% 19.7%, 36.1% 16.4%, 40% 12.7%, 44.6% 8.9% );transform:rotate(309deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}42.9%{clip-path:polygon( 50% 5.1%, 55.8% 5.6%, 61.5% 7.3%, 66.6% 9.9%, 71.1% 13.4%, 74.8% 17.6%, 77.6% 22.4%, 79.5% 27.4%, 80.3% 32.5%, 80.1% 37.5%, 79.1% 42.2%, 77.5% 46.4%, 76.4% 50%, 77.5% 53.6%, 79.1% 57.8%, 80.1% 62.5%, 80.3% 67.5%, 79.5% 72.6%, 77.6% 77.6%, 74.8% 82.4%, 71.1% 86.6%, 66.6% 90.1%, 61.5% 92.7%, 55.8% 94.4%, 50% 94.9%, 44.2% 94.4%, 38.5% 92.7%, 33.4% 90.1%, 28.9% 86.6%, 25.2% 82.4%, 22.4% 77.6%, 20.5% 72.6%, 19.7% 67.5%, 19.9% 62.5%, 20.9% 57.8%, 22.5% 53.6%, 23.6% 50%, 22.5% 46.4%, 20.9% 42.2%, 19.9% 37.5%, 19.7% 32.5%, 20.5% 27.4%, 22.4% 22.4%, 25.2% 17.6%, 28.9% 13.4%, 33.4% 9.9%, 38.5% 7.3%, 44.2% 5.6% );transform:rotate(463deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}57.1%{clip-path:polygon( 50% 3.4%, 55.7% 7.1%, 59.5% 14.5%, 62.8% 19.1%, 68.4% 18.2%, 76.4% 15.7%, 82.9% 17.1%, 84.3% 23.6%, 81.8% 31.6%, 80.9% 37.2%, 85.5% 40.5%, 92.9% 44.3%, 96.6% 50%, 92.9% 55.7%, 85.5% 59.5%, 80.9% 62.8%, 81.8% 68.4%, 84.3% 76.4%, 82.9% 82.9%, 76.4% 84.3%, 68.4% 81.8%, 62.8% 80.9%, 59.5% 85.5%, 55.7% 92.9%, 50% 96.6%, 44.3% 92.9%, 40.5% 85.5%, 37.2% 80.9%, 31.6% 81.8%, 23.6% 84.3%, 17.1% 82.9%, 15.7% 76.4%, 18.2% 68.4%, 19.1% 62.8%, 14.5% 59.5%, 7.1% 55.7%, 3.4% 50%, 7.1% 44.3%, 14.5% 40.5%, 19.1% 37.2%, 18.2% 31.6%, 15.7% 23.6%, 17.1% 17.1%, 23.6% 15.7%, 31.6% 18.2%, 37.2% 19.1%, 40.5% 14.5%, 44.3% 7.1% );transform:rotate(617deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}71.4%{clip-path:polygon( 50% 18.1%, 54.2% 17.7%, 58.9% 16.8%, 64.3% 15.5%, 70.5% 14.5%, 77% 14.8%, 82.4% 17.6%, 85.2% 23%, 85.5% 29.5%, 84.5% 35.7%, 83.2% 41.1%, 82.3% 45.8%, 81.9% 50%, 82.3% 54.2%, 83.2% 58.9%, 84.5% 64.3%, 85.5% 70.5%, 85.2% 77%, 82.4% 82.4%, 77% 85.2%, 70.5% 85.5%, 64.3% 84.5%, 58.9% 83.2%, 54.2% 82.3%, 50% 81.9%, 45.8% 82.3%, 41.1% 83.2%, 35.7% 84.5%, 29.5% 85.5%, 23% 85.2%, 17.6% 82.4%, 14.8% 77%, 14.5% 70.5%, 15.5% 64.3%, 16.8% 58.9%, 17.7% 54.2%, 18.1% 50%, 17.7% 45.8%, 16.8% 41.1%, 15.5% 35.7%, 14.5% 29.5%, 14.8% 23%, 17.6% 17.6%, 23% 14.8%, 29.5% 14.5%, 35.7% 15.5%, 41.1% 16.8%, 45.8% 17.7% );transform:rotate(771deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}85.7%{clip-path:polygon( 50% 14.5%, 54.9% 12.8%, 60.3% 11.6%, 66.1% 11.2%, 72% 11.9%, 77.7% 13.9%, 82.5% 17.5%, 86.1% 22.3%, 88.1% 28%, 88.8% 33.9%, 88.4% 39.7%, 87.2% 45.1%, 85.5% 50%, 83.5% 54.4%, 81.3% 58.4%, 79% 62%, 76.5% 65.3%, 73.9% 68.4%, 71.2% 71.2%, 68.4% 73.9%, 65.3% 76.5%, 62% 79%, 58.4% 81.3%, 54.4% 83.5%, 50% 85.5%, 45.1% 87.2%, 39.7% 88.4%, 33.9% 88.8%, 28% 88.1%, 22.3% 86.1%, 17.5% 82.5%, 13.9% 77.7%, 11.9% 72%, 11.2% 66.1%, 11.6% 60.3%, 12.8% 54.9%, 14.5% 50%, 16.5% 45.6%, 18.7% 41.6%, 21% 38%, 23.5% 34.7%, 26.1% 31.6%, 28.8% 28.8%, 31.6% 26.1%, 34.7% 23.5%, 38% 21%, 41.6% 18.7%, 45.6% 16.5% );transform:rotate(926deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}100%{clip-path:polygon( 50% 5.3%, 55.4% 9.1%, 59.3% 15.3%, 64% 16.1%, 71.2% 13.3%, 77.1% 14.7%, 78.3% 21.7%, 78.1% 28.4%, 82.6% 31.2%, 90% 33.4%, 92.6% 38.6%, 88.4% 44.9%, 85.3% 50%, 88.4% 55.1%, 92.6% 61.4%, 90% 66.6%, 82.6% 68.8%, 78.1% 71.6%, 78.3% 78.3%, 77.1% 85.3%, 71.2% 86.7%, 64% 83.9%, 59.3% 84.7%, 55.4% 90.9%, 50% 94.7%, 44.6% 90.9%, 40.7% 84.7%, 36% 83.9%, 28.8% 86.7%, 22.9% 85.3%, 21.7% 78.3%, 21.9% 71.6%, 17.4% 68.8%, 10% 66.6%, 7.4% 61.4%, 11.6% 55.1%, 14.7% 50%, 11.6% 44.9%, 7.4% 38.6%, 10% 33.4%, 17.4% 31.2%, 21.9% 28.4%, 21.7% 21.7%, 22.9% 14.7%, 28.8% 13.3%, 36% 16.1%, 40.7% 15.3%, 44.6% 9.1% );transform:rotate(1080deg)}}.md-loading-indicator__sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host(:focus-visible){outline:3px solid var(--md-sys-color-secondary, #625B71);outline-offset:2px;border-radius:var(--_container-shape)}@media (prefers-reduced-motion: reduce){.md-loading-indicator__shape{animation:md-loading-pulse 2s ease-in-out infinite;border-radius:50%;clip-path:none}}@keyframes md-loading-pulse{0%,100%{opacity:1}50%{opacity:0.4}}@media (forced-colors: active){.md-loading-indicator__shape{background-color:CanvasText}:host(.md-loading-indicator--contained){background-color:Canvas;outline:1px solid CanvasText}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}`;const r=a(class i extends o{constructor(i){super();if(i!==false){this.__registerHost()}this.__attachShadow();this.variant="uncontained";this.label="Loading";this.density=0}render(){return n(e,{key:"e6d22ea32ed8fef67906f81bb2ee61f127ed20f8",class:{"md-loading-indicator":true,[`md-loading-indicator--${this.variant}`]:true},role:"progressbar","aria-label":this.label,"aria-live":"polite"},n("span",{key:"284caf45947b622f09d46803b7b0205402b6a309",class:"md-loading-indicator__shape",part:"shape","aria-hidden":"true"}),n("span",{key:"472fac91cea4c2d490d49466b13ab75ab99ed962",class:"md-loading-indicator__sr-only",role:"status"},this.label))}static get style(){return t()}},[1,"md-loading-indicator",{variant:[513],label:[1],density:[514]}]);function s(){if(typeof customElements==="undefined"){return}const a=["md-loading-indicator"];a.forEach((a=>{switch(a){case"md-loading-indicator":if(!customElements.get(i(a))){customElements.define(i(a),r)}break}}))}s();export{r as M,s as d};
2
- //# sourceMappingURL=p-DGGkdSZk.js.map
1
+ import{p as i,H as a,h as o,d as n,t as e}from"./p-MWBNn6Lj.js";const t=()=>`:host{--_color:var(--md-loading-indicator-color, var(--md-sys-color-primary, #6750A4));--_size:var(--md-loading-indicator-size, max(32px, calc(48px + var(--md-sys-density-scale, 0) * 4px)));--_shape-size:var(--md-loading-indicator-shape-size, calc(var(--_size) * 0.792));--_container-color:var(--md-loading-indicator-container-color, var(--md-sys-color-primary-container, #EADDFF));--_container-shape:var(--md-loading-indicator-container-shape, var(--md-sys-shape-corner-full, 50%));display:inline-flex;align-items:center;justify-content:center;inline-size:var(--_size);block-size:var(--_size);flex-shrink:0;box-sizing:border-box;overflow:hidden}:host(.md-loading-indicator--contained){--_color:var(--md-loading-indicator-color, var(--md-sys-color-on-primary-container, #21005D));background-color:var(--_container-color);border-radius:var(--_container-shape)}.md-loading-indicator__shape{display:block;inline-size:var(--_shape-size);block-size:var(--_shape-size);background-color:var(--_color);will-change:clip-path, transform;animation:md-loading-morph 4.55s infinite}@keyframes md-loading-morph{0%{clip-path:polygon( 50% 5.3%, 55.4% 9.1%, 59.3% 15.3%, 64% 16.1%, 71.2% 13.3%, 77.1% 14.7%, 78.3% 21.7%, 78.1% 28.4%, 82.6% 31.2%, 90% 33.4%, 92.6% 38.6%, 88.4% 44.9%, 85.3% 50%, 88.4% 55.1%, 92.6% 61.4%, 90% 66.6%, 82.6% 68.8%, 78.1% 71.6%, 78.3% 78.3%, 77.1% 85.3%, 71.2% 86.7%, 64% 83.9%, 59.3% 84.7%, 55.4% 90.9%, 50% 94.7%, 44.6% 90.9%, 40.7% 84.7%, 36% 83.9%, 28.8% 86.7%, 22.9% 85.3%, 21.7% 78.3%, 21.9% 71.6%, 17.4% 68.8%, 10% 66.6%, 7.4% 61.4%, 11.6% 55.1%, 14.7% 50%, 11.6% 44.9%, 7.4% 38.6%, 10% 33.4%, 17.4% 31.2%, 21.9% 28.4%, 21.7% 21.7%, 22.9% 14.7%, 28.8% 13.3%, 36% 16.1%, 40.7% 15.3%, 44.6% 9.1% );transform:rotate(0deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}14.3%{clip-path:polygon( 50% 6.8%, 55.4% 9.1%, 59.8% 13.6%, 64.2% 15.8%, 70% 15.4%, 76.2% 15.9%, 79.9% 20.1%, 80.8% 26.4%, 81.8% 31.6%, 85.8% 35.2%, 90.8% 39.1%, 92.6% 44.4%, 90% 50%, 86.7% 54.8%, 86.4% 59.8%, 88.1% 65.8%, 87.4% 71.6%, 82.7% 75.1%, 76.7% 76.7%, 72.5% 79.4%, 70% 84.6%, 66.4% 89.7%, 60.9% 90.8%, 55.1% 88.4%, 50% 86.8%, 44.9% 88.4%, 39.1% 90.8%, 33.6% 89.7%, 30% 84.6%, 27.5% 79.4%, 23.3% 76.7%, 17.3% 75.1%, 12.6% 71.6%, 11.9% 65.8%, 13.6% 59.8%, 13.3% 54.8%, 10% 50%, 7.4% 44.4%, 9.2% 39.1%, 14.2% 35.2%, 18.2% 31.6%, 19.2% 26.4%, 20.1% 20.1%, 23.8% 15.9%, 30% 15.4%, 35.8% 15.8%, 40.2% 13.6%, 44.6% 9.1% );transform:rotate(154deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}28.6%{clip-path:polygon( 50% 6.8%, 55.4% 8.9%, 60% 12.7%, 63.9% 16.4%, 67.5% 19.7%, 71.1% 22.5%, 75% 25%, 79.5% 27.4%, 84.4% 30.1%, 89.3% 33.7%, 91.4% 38.9%, 90% 44.7%, 87.6% 50%, 85.4% 54.7%, 83.5% 59%, 82.1% 63.3%, 81.2% 68%, 80.2% 73.2%, 78.9% 78.9%, 76.3% 84.2%, 71% 86.4%, 65% 86.2%, 59.5% 85.5%, 54.6% 84.8%, 50% 84.6%, 45.4% 84.8%, 40.5% 85.5%, 35% 86.2%, 29% 86.4%, 23.7% 84.2%, 21.1% 78.9%, 19.8% 73.2%, 18.8% 68%, 17.9% 63.3%, 16.5% 59%, 14.6% 54.7%, 12.4% 50%, 10% 44.7%, 8.6% 38.9%, 10.7% 33.7%, 15.6% 30.1%, 20.5% 27.4%, 25% 25%, 28.9% 22.5%, 32.5% 19.7%, 36.1% 16.4%, 40% 12.7%, 44.6% 8.9% );transform:rotate(309deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}42.9%{clip-path:polygon( 50% 5.1%, 55.8% 5.6%, 61.5% 7.3%, 66.6% 9.9%, 71.1% 13.4%, 74.8% 17.6%, 77.6% 22.4%, 79.5% 27.4%, 80.3% 32.5%, 80.1% 37.5%, 79.1% 42.2%, 77.5% 46.4%, 76.4% 50%, 77.5% 53.6%, 79.1% 57.8%, 80.1% 62.5%, 80.3% 67.5%, 79.5% 72.6%, 77.6% 77.6%, 74.8% 82.4%, 71.1% 86.6%, 66.6% 90.1%, 61.5% 92.7%, 55.8% 94.4%, 50% 94.9%, 44.2% 94.4%, 38.5% 92.7%, 33.4% 90.1%, 28.9% 86.6%, 25.2% 82.4%, 22.4% 77.6%, 20.5% 72.6%, 19.7% 67.5%, 19.9% 62.5%, 20.9% 57.8%, 22.5% 53.6%, 23.6% 50%, 22.5% 46.4%, 20.9% 42.2%, 19.9% 37.5%, 19.7% 32.5%, 20.5% 27.4%, 22.4% 22.4%, 25.2% 17.6%, 28.9% 13.4%, 33.4% 9.9%, 38.5% 7.3%, 44.2% 5.6% );transform:rotate(463deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}57.1%{clip-path:polygon( 50% 3.4%, 55.7% 7.1%, 59.5% 14.5%, 62.8% 19.1%, 68.4% 18.2%, 76.4% 15.7%, 82.9% 17.1%, 84.3% 23.6%, 81.8% 31.6%, 80.9% 37.2%, 85.5% 40.5%, 92.9% 44.3%, 96.6% 50%, 92.9% 55.7%, 85.5% 59.5%, 80.9% 62.8%, 81.8% 68.4%, 84.3% 76.4%, 82.9% 82.9%, 76.4% 84.3%, 68.4% 81.8%, 62.8% 80.9%, 59.5% 85.5%, 55.7% 92.9%, 50% 96.6%, 44.3% 92.9%, 40.5% 85.5%, 37.2% 80.9%, 31.6% 81.8%, 23.6% 84.3%, 17.1% 82.9%, 15.7% 76.4%, 18.2% 68.4%, 19.1% 62.8%, 14.5% 59.5%, 7.1% 55.7%, 3.4% 50%, 7.1% 44.3%, 14.5% 40.5%, 19.1% 37.2%, 18.2% 31.6%, 15.7% 23.6%, 17.1% 17.1%, 23.6% 15.7%, 31.6% 18.2%, 37.2% 19.1%, 40.5% 14.5%, 44.3% 7.1% );transform:rotate(617deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}71.4%{clip-path:polygon( 50% 18.1%, 54.2% 17.7%, 58.9% 16.8%, 64.3% 15.5%, 70.5% 14.5%, 77% 14.8%, 82.4% 17.6%, 85.2% 23%, 85.5% 29.5%, 84.5% 35.7%, 83.2% 41.1%, 82.3% 45.8%, 81.9% 50%, 82.3% 54.2%, 83.2% 58.9%, 84.5% 64.3%, 85.5% 70.5%, 85.2% 77%, 82.4% 82.4%, 77% 85.2%, 70.5% 85.5%, 64.3% 84.5%, 58.9% 83.2%, 54.2% 82.3%, 50% 81.9%, 45.8% 82.3%, 41.1% 83.2%, 35.7% 84.5%, 29.5% 85.5%, 23% 85.2%, 17.6% 82.4%, 14.8% 77%, 14.5% 70.5%, 15.5% 64.3%, 16.8% 58.9%, 17.7% 54.2%, 18.1% 50%, 17.7% 45.8%, 16.8% 41.1%, 15.5% 35.7%, 14.5% 29.5%, 14.8% 23%, 17.6% 17.6%, 23% 14.8%, 29.5% 14.5%, 35.7% 15.5%, 41.1% 16.8%, 45.8% 17.7% );transform:rotate(771deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}85.7%{clip-path:polygon( 50% 14.5%, 54.9% 12.8%, 60.3% 11.6%, 66.1% 11.2%, 72% 11.9%, 77.7% 13.9%, 82.5% 17.5%, 86.1% 22.3%, 88.1% 28%, 88.8% 33.9%, 88.4% 39.7%, 87.2% 45.1%, 85.5% 50%, 83.5% 54.4%, 81.3% 58.4%, 79% 62%, 76.5% 65.3%, 73.9% 68.4%, 71.2% 71.2%, 68.4% 73.9%, 65.3% 76.5%, 62% 79%, 58.4% 81.3%, 54.4% 83.5%, 50% 85.5%, 45.1% 87.2%, 39.7% 88.4%, 33.9% 88.8%, 28% 88.1%, 22.3% 86.1%, 17.5% 82.5%, 13.9% 77.7%, 11.9% 72%, 11.2% 66.1%, 11.6% 60.3%, 12.8% 54.9%, 14.5% 50%, 16.5% 45.6%, 18.7% 41.6%, 21% 38%, 23.5% 34.7%, 26.1% 31.6%, 28.8% 28.8%, 31.6% 26.1%, 34.7% 23.5%, 38% 21%, 41.6% 18.7%, 45.6% 16.5% );transform:rotate(926deg);animation-timing-function:cubic-bezier(0.34, 1.45, 0.4, 1)}100%{clip-path:polygon( 50% 5.3%, 55.4% 9.1%, 59.3% 15.3%, 64% 16.1%, 71.2% 13.3%, 77.1% 14.7%, 78.3% 21.7%, 78.1% 28.4%, 82.6% 31.2%, 90% 33.4%, 92.6% 38.6%, 88.4% 44.9%, 85.3% 50%, 88.4% 55.1%, 92.6% 61.4%, 90% 66.6%, 82.6% 68.8%, 78.1% 71.6%, 78.3% 78.3%, 77.1% 85.3%, 71.2% 86.7%, 64% 83.9%, 59.3% 84.7%, 55.4% 90.9%, 50% 94.7%, 44.6% 90.9%, 40.7% 84.7%, 36% 83.9%, 28.8% 86.7%, 22.9% 85.3%, 21.7% 78.3%, 21.9% 71.6%, 17.4% 68.8%, 10% 66.6%, 7.4% 61.4%, 11.6% 55.1%, 14.7% 50%, 11.6% 44.9%, 7.4% 38.6%, 10% 33.4%, 17.4% 31.2%, 21.9% 28.4%, 21.7% 21.7%, 22.9% 14.7%, 28.8% 13.3%, 36% 16.1%, 40.7% 15.3%, 44.6% 9.1% );transform:rotate(1080deg)}}.md-loading-indicator__sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host(:focus-visible){outline:3px solid var(--md-sys-color-secondary, #625B71);outline-offset:2px;border-radius:var(--_container-shape)}@media (prefers-reduced-motion: reduce){.md-loading-indicator__shape{animation:md-loading-pulse 2s ease-in-out infinite;border-radius:50%;clip-path:none}}@keyframes md-loading-pulse{0%,100%{opacity:1}50%{opacity:0.4}}@media (forced-colors: active){.md-loading-indicator__shape{background-color:CanvasText}:host(.md-loading-indicator--contained){background-color:Canvas;outline:1px solid CanvasText}}:host([density='-1']){--md-sys-density-scale:-1}:host([density='-2']){--md-sys-density-scale:-2}:host([density='-3']){--md-sys-density-scale:-3}:host([density='-4']){--md-sys-density-scale:-4}`;const r=i(class i extends a{constructor(i){super();if(i!==false){this.__registerHost()}this.__attachShadow();this.variant="uncontained";this.label="Loading";this.density=0}render(){return o(n,{key:"e6d22ea32ed8fef67906f81bb2ee61f127ed20f8",class:{"md-loading-indicator":true,[`md-loading-indicator--${this.variant}`]:true},role:"progressbar","aria-label":this.label,"aria-live":"polite"},o("span",{key:"284caf45947b622f09d46803b7b0205402b6a309",class:"md-loading-indicator__shape",part:"shape","aria-hidden":"true"}),o("span",{key:"472fac91cea4c2d490d49466b13ab75ab99ed962",class:"md-loading-indicator__sr-only",role:"status"},this.label))}static get style(){return t()}},[1,"md-loading-indicator",{variant:[513],label:[1],density:[514]}]);function s(){if(typeof customElements==="undefined"){return}const i=["md-loading-indicator"];i.forEach((i=>{switch(i){case"md-loading-indicator":if(!customElements.get(e(i))){customElements.define(e(i),r)}break}}))}s();export{r as M,s as d};
2
+ //# sourceMappingURL=p-BwXpiUsu.js.map