@m3e/web 2.1.1 → 2.1.2

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 (262) hide show
  1. package/dist/all.js +605 -1296
  2. package/dist/all.js.map +1 -1
  3. package/dist/all.min.js +54 -114
  4. package/dist/all.min.js.map +1 -1
  5. package/dist/app-bar.js +2 -34
  6. package/dist/app-bar.js.map +1 -1
  7. package/dist/app-bar.min.js +1 -1
  8. package/dist/app-bar.min.js.map +1 -1
  9. package/dist/autocomplete.js +17 -40
  10. package/dist/autocomplete.js.map +1 -1
  11. package/dist/autocomplete.min.js +1 -1
  12. package/dist/autocomplete.min.js.map +1 -1
  13. package/dist/avatar.js +1 -28
  14. package/dist/avatar.js.map +1 -1
  15. package/dist/avatar.min.js +1 -1
  16. package/dist/avatar.min.js.map +1 -1
  17. package/dist/badge.js +1 -39
  18. package/dist/badge.js.map +1 -1
  19. package/dist/badge.min.js +1 -1
  20. package/dist/badge.min.js.map +1 -1
  21. package/dist/bottom-sheet.js +22 -58
  22. package/dist/bottom-sheet.js.map +1 -1
  23. package/dist/bottom-sheet.min.js +1 -1
  24. package/dist/bottom-sheet.min.js.map +1 -1
  25. package/dist/button-group.js +2 -34
  26. package/dist/button-group.js.map +1 -1
  27. package/dist/button-group.min.js +1 -1
  28. package/dist/button-group.min.js.map +1 -1
  29. package/dist/button.js +2 -34
  30. package/dist/button.js.map +1 -1
  31. package/dist/button.min.js +1 -1
  32. package/dist/button.min.js.map +1 -1
  33. package/dist/card.js +4 -34
  34. package/dist/card.js.map +1 -1
  35. package/dist/card.min.js +1 -1
  36. package/dist/card.min.js.map +1 -1
  37. package/dist/checkbox.js +2 -34
  38. package/dist/checkbox.js.map +1 -1
  39. package/dist/checkbox.min.js +1 -1
  40. package/dist/checkbox.min.js.map +1 -1
  41. package/dist/chips.js +2 -40
  42. package/dist/chips.js.map +1 -1
  43. package/dist/chips.min.js +1 -1
  44. package/dist/chips.min.js.map +1 -1
  45. package/dist/core-a11y.js +1 -39
  46. package/dist/core-a11y.js.map +1 -1
  47. package/dist/core-a11y.min.js +4 -4
  48. package/dist/core-a11y.min.js.map +1 -1
  49. package/dist/core-anchoring.js +164 -177
  50. package/dist/core-anchoring.js.map +1 -1
  51. package/dist/core-anchoring.min.js +1 -1
  52. package/dist/core-anchoring.min.js.map +1 -1
  53. package/dist/core-bidi.js +1 -31
  54. package/dist/core-bidi.js.map +1 -1
  55. package/dist/core-bidi.min.js +2 -3
  56. package/dist/core-bidi.min.js.map +1 -1
  57. package/dist/core.js +53 -40
  58. package/dist/core.js.map +1 -1
  59. package/dist/core.min.js +1 -1
  60. package/dist/core.min.js.map +1 -1
  61. package/dist/css-custom-data.json +517 -512
  62. package/dist/custom-elements.json +5201 -4336
  63. package/dist/dialog.js +3 -41
  64. package/dist/dialog.js.map +1 -1
  65. package/dist/dialog.min.js +1 -1
  66. package/dist/dialog.min.js.map +1 -1
  67. package/dist/divider.js +1 -28
  68. package/dist/divider.js.map +1 -1
  69. package/dist/divider.min.js +1 -1
  70. package/dist/divider.min.js.map +1 -1
  71. package/dist/drawer-container.js +18 -48
  72. package/dist/drawer-container.js.map +1 -1
  73. package/dist/drawer-container.min.js +1 -1
  74. package/dist/drawer-container.min.js.map +1 -1
  75. package/dist/expansion-panel.js +8 -41
  76. package/dist/expansion-panel.js.map +1 -1
  77. package/dist/expansion-panel.min.js +1 -1
  78. package/dist/expansion-panel.min.js.map +1 -1
  79. package/dist/fab-menu.js +3 -47
  80. package/dist/fab-menu.js.map +1 -1
  81. package/dist/fab-menu.min.js +1 -1
  82. package/dist/fab-menu.min.js.map +1 -1
  83. package/dist/fab.js +1 -33
  84. package/dist/fab.js.map +1 -1
  85. package/dist/fab.min.js +1 -1
  86. package/dist/fab.min.js.map +1 -1
  87. package/dist/form-field.js +19 -49
  88. package/dist/form-field.js.map +1 -1
  89. package/dist/form-field.min.js +3 -4
  90. package/dist/form-field.min.js.map +1 -1
  91. package/dist/heading.js +1 -28
  92. package/dist/heading.js.map +1 -1
  93. package/dist/heading.min.js +1 -1
  94. package/dist/heading.min.js.map +1 -1
  95. package/dist/html-custom-data.json +192 -171
  96. package/dist/icon-button.js +2 -34
  97. package/dist/icon-button.js.map +1 -1
  98. package/dist/icon-button.min.js +1 -1
  99. package/dist/icon-button.min.js.map +1 -1
  100. package/dist/icon.js +1 -28
  101. package/dist/icon.js.map +1 -1
  102. package/dist/icon.min.js +1 -1
  103. package/dist/icon.min.js.map +1 -1
  104. package/dist/index.js.map +1 -1
  105. package/dist/index.min.js +7 -0
  106. package/dist/index.min.js.map +1 -0
  107. package/dist/list.js +17 -46
  108. package/dist/list.js.map +1 -1
  109. package/dist/list.min.js +1 -1
  110. package/dist/list.min.js.map +1 -1
  111. package/dist/loading-indicator.js +8 -31
  112. package/dist/loading-indicator.js.map +1 -1
  113. package/dist/loading-indicator.min.js +1 -1
  114. package/dist/loading-indicator.min.js.map +1 -1
  115. package/dist/menu.js +3 -47
  116. package/dist/menu.js.map +1 -1
  117. package/dist/menu.min.js +1 -1
  118. package/dist/menu.min.js.map +1 -1
  119. package/dist/nav-bar.js +3 -41
  120. package/dist/nav-bar.js.map +1 -1
  121. package/dist/nav-bar.min.js +1 -1
  122. package/dist/nav-bar.min.js.map +1 -1
  123. package/dist/nav-menu.js +2 -40
  124. package/dist/nav-menu.js.map +1 -1
  125. package/dist/nav-menu.min.js +1 -1
  126. package/dist/nav-menu.min.js.map +1 -1
  127. package/dist/nav-rail.js +1 -33
  128. package/dist/nav-rail.js.map +1 -1
  129. package/dist/nav-rail.min.js +1 -1
  130. package/dist/nav-rail.min.js.map +1 -1
  131. package/dist/option.js +3 -59
  132. package/dist/option.js.map +1 -1
  133. package/dist/option.min.js +1 -1
  134. package/dist/option.min.js.map +1 -1
  135. package/dist/paginator.js +2 -34
  136. package/dist/paginator.js.map +1 -1
  137. package/dist/paginator.min.js +2 -3
  138. package/dist/paginator.min.js.map +1 -1
  139. package/dist/progress-indicator.js +41 -63
  140. package/dist/progress-indicator.js.map +1 -1
  141. package/dist/progress-indicator.min.js +32 -32
  142. package/dist/progress-indicator.min.js.map +1 -1
  143. package/dist/radio-group.js +1 -39
  144. package/dist/radio-group.js.map +1 -1
  145. package/dist/radio-group.min.js +1 -1
  146. package/dist/radio-group.min.js.map +1 -1
  147. package/dist/segmented-button.js +2 -40
  148. package/dist/segmented-button.js.map +1 -1
  149. package/dist/segmented-button.min.js +1 -1
  150. package/dist/segmented-button.min.js.map +1 -1
  151. package/dist/select.js +16 -40
  152. package/dist/select.js.map +1 -1
  153. package/dist/select.min.js +1 -1
  154. package/dist/select.min.js.map +1 -1
  155. package/dist/shape.js +1 -28
  156. package/dist/shape.js.map +1 -1
  157. package/dist/shape.min.js +1 -1
  158. package/dist/shape.min.js.map +1 -1
  159. package/dist/slide-group.js +9 -42
  160. package/dist/slide-group.js.map +1 -1
  161. package/dist/slide-group.min.js +1 -1
  162. package/dist/slide-group.min.js.map +1 -1
  163. package/dist/slider.js +1 -39
  164. package/dist/slider.js.map +1 -1
  165. package/dist/slider.min.js +1 -1
  166. package/dist/slider.min.js.map +1 -1
  167. package/dist/snackbar.js +2 -40
  168. package/dist/snackbar.js.map +1 -1
  169. package/dist/snackbar.min.js +1 -1
  170. package/dist/snackbar.min.js.map +1 -1
  171. package/dist/split-button.js +1 -39
  172. package/dist/split-button.js.map +1 -1
  173. package/dist/split-button.min.js +1 -1
  174. package/dist/split-button.min.js.map +1 -1
  175. package/dist/src/autocomplete/AutocompleteElement.d.ts +6 -0
  176. package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -1
  177. package/dist/src/bottom-sheet/BottomSheetElement.d.ts +3 -3
  178. package/dist/src/bottom-sheet/BottomSheetElement.d.ts.map +1 -1
  179. package/dist/src/card/CardElement.d.ts +1 -0
  180. package/dist/src/card/CardElement.d.ts.map +1 -1
  181. package/dist/src/card/styles/CardVariantToken.d.ts +1 -1
  182. package/dist/src/card/styles/CardVariantToken.d.ts.map +1 -1
  183. package/dist/src/core/anchoring/FloatingPanelElement.d.ts +6 -3
  184. package/dist/src/core/anchoring/FloatingPanelElement.d.ts.map +1 -1
  185. package/dist/src/core/anchoring/FloatingPanelScrollStrategy.d.ts +3 -0
  186. package/dist/src/core/anchoring/FloatingPanelScrollStrategy.d.ts.map +1 -0
  187. package/dist/src/core/anchoring/index.d.ts +1 -0
  188. package/dist/src/core/anchoring/index.d.ts.map +1 -1
  189. package/dist/src/core/shared/mixins/ReconnectedCallback.d.ts +15 -0
  190. package/dist/src/core/shared/mixins/ReconnectedCallback.d.ts.map +1 -0
  191. package/dist/src/core/shared/mixins/SuppressInitialAnimation.d.ts +11 -0
  192. package/dist/src/core/shared/mixins/SuppressInitialAnimation.d.ts.map +1 -0
  193. package/dist/src/core/shared/mixins/index.d.ts +2 -0
  194. package/dist/src/core/shared/mixins/index.d.ts.map +1 -1
  195. package/dist/src/drawer-container/DrawerContainerElement.d.ts +4 -2
  196. package/dist/src/drawer-container/DrawerContainerElement.d.ts.map +1 -1
  197. package/dist/src/expansion-panel/ExpansionPanelElement.d.ts +3 -1
  198. package/dist/src/expansion-panel/ExpansionPanelElement.d.ts.map +1 -1
  199. package/dist/src/fab-menu/FabMenuElement.d.ts +1 -3
  200. package/dist/src/fab-menu/FabMenuElement.d.ts.map +1 -1
  201. package/dist/src/form-field/FormFieldElement.d.ts +4 -2
  202. package/dist/src/form-field/FormFieldElement.d.ts.map +1 -1
  203. package/dist/src/list/ActionListElement.d.ts.map +1 -1
  204. package/dist/src/list/ListItemElement.d.ts +3 -1
  205. package/dist/src/list/ListItemElement.d.ts.map +1 -1
  206. package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts +3 -1
  207. package/dist/src/loading-indicator/LoadingIndicatorElement.d.ts.map +1 -1
  208. package/dist/src/menu/MenuElement.d.ts +1 -3
  209. package/dist/src/menu/MenuElement.d.ts.map +1 -1
  210. package/dist/src/nav-bar/NavBarElement.d.ts +1 -1
  211. package/dist/src/nav-bar/NavBarElement.d.ts.map +1 -1
  212. package/dist/src/option/OptionPanelElement.d.ts +0 -4
  213. package/dist/src/option/OptionPanelElement.d.ts.map +1 -1
  214. package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts +2 -0
  215. package/dist/src/progress-indicator/CircularProgressIndicatorElement.d.ts.map +1 -1
  216. package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts +2 -0
  217. package/dist/src/progress-indicator/LinearProgressIndicatorElement.d.ts.map +1 -1
  218. package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts +1 -1
  219. package/dist/src/progress-indicator/ProgressElementIndicatorBase.d.ts.map +1 -1
  220. package/dist/src/select/SelectElement.d.ts +6 -0
  221. package/dist/src/select/SelectElement.d.ts.map +1 -1
  222. package/dist/src/slide-group/SlideGroupElement.d.ts +5 -1
  223. package/dist/src/slide-group/SlideGroupElement.d.ts.map +1 -1
  224. package/dist/src/stepper/StepperElement.d.ts +1 -1
  225. package/dist/src/stepper/StepperElement.d.ts.map +1 -1
  226. package/dist/src/toc/TocElement.d.ts +1 -1
  227. package/dist/src/toc/TocElement.d.ts.map +1 -1
  228. package/dist/src/tooltip/TooltipElementBase.d.ts +3 -1
  229. package/dist/src/tooltip/TooltipElementBase.d.ts.map +1 -1
  230. package/dist/stepper.js +3 -41
  231. package/dist/stepper.js.map +1 -1
  232. package/dist/stepper.min.js +1 -1
  233. package/dist/stepper.min.js.map +1 -1
  234. package/dist/switch.js +1 -33
  235. package/dist/switch.js.map +1 -1
  236. package/dist/switch.min.js +1 -1
  237. package/dist/switch.min.js.map +1 -1
  238. package/dist/tabs.js +1 -39
  239. package/dist/tabs.js.map +1 -1
  240. package/dist/tabs.min.js +1 -1
  241. package/dist/tabs.min.js.map +1 -1
  242. package/dist/textarea-autosize.js +1 -39
  243. package/dist/textarea-autosize.js.map +1 -1
  244. package/dist/textarea-autosize.min.js +2 -3
  245. package/dist/textarea-autosize.min.js.map +1 -1
  246. package/dist/theme.js +1 -39
  247. package/dist/theme.js.map +1 -1
  248. package/dist/theme.min.js +19 -19
  249. package/dist/theme.min.js.map +1 -1
  250. package/dist/toc.js +4 -42
  251. package/dist/toc.js.map +1 -1
  252. package/dist/toc.min.js +1 -1
  253. package/dist/toc.min.js.map +1 -1
  254. package/dist/toolbar.js +1 -39
  255. package/dist/toolbar.js.map +1 -1
  256. package/dist/toolbar.min.js +1 -1
  257. package/dist/toolbar.min.js.map +1 -1
  258. package/dist/tooltip.js +15 -46
  259. package/dist/tooltip.js.map +1 -1
  260. package/dist/tooltip.min.js +1 -1
  261. package/dist/tooltip.min.js.map +1 -1
  262. package/package.json +3 -2
package/dist/core.min.js CHANGED
@@ -3,5 +3,5 @@
3
3
  * Copyright (c) 2025 matraic
4
4
  * See LICENSE file in the project root for full license text.
5
5
  */
6
- import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,html as a,css as r,LitElement as n}from"lit";import{directive as o,Directive as l,PartType as c}from"lit/directive.js";import{property as d,query as h}from"lit/decorators.js";import{ifDefined as p}from"lit/directives/if-defined.js";function m(e,t,s,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(n=(r<3?a(n):r>3?a(t,s,n):a(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n}function u(e,t,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function f(e,t,s,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,s):a?a.value=s:t.set(e,s),s}var v,y,g,b,x,w,k,$,E,S,C,z,L,M,W,F,A,_,T,D,H,P,O,I,B,V,N,R,U,q,j,X,Y,G,Z,K,Q,J,ee,te,se,ie,ae,re,ne,oe,le,ce,de,he,pe,me,ue,fe,ve,ye,ge,be,xe,we,ke,$e,Ee,Se,Ce,ze,Le,Me,We,Fe,Ae,_e,Te,De,He;"function"==typeof SuppressedError&&SuppressedError;class Pe{constructor(e,t){v.set(this,null),y.set(this,0),g.set(this,!1),b.set(this,void 0),x.set(this,()=>{if(!u(this,g,"f"))return;const e=performance.now();u(this,b,"f").call(this,(e-u(this,y,"f"))/1e3,e/1e3),f(this,y,e,"f"),f(this,v,requestAnimationFrame(u(this,x,"f")),"f")}),f(this,b,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){u(this,g,"f")||(f(this,g,!0,"f"),f(this,y,performance.now(),"f"),u(this,x,"f").call(this))}stop(){u(this,g,"f")&&(f(this,g,!1,"f"),null!==u(this,v,"f")&&(cancelAnimationFrame(u(this,v,"f")),f(this,v,null,"f")))}}v=new WeakMap,y=new WeakMap,g=new WeakMap,b=new WeakMap,x=new WeakMap;class Oe{constructor(e,t){w.set(this,void 0),k.set(this,void 0),$.set(this,new Set),f(this,w,e,"f"),f(this,k,t.target,"f"),u(this,w,"f").addController(this)}get targets(){return u(this,$,"f").values()}hostConnected(){null!==u(this,k,"f")&&this.observe(u(this,k,"f")??u(this,w,"f"))}hostDisconnected(){u(this,$,"f").forEach(e=>this.unobserve(e)),u(this,$,"f").clear()}observe(e){u(this,$,"f").has(e)||(u(this,$,"f").add(e),this._observe(e))}isObserving(e){return u(this,$,"f").has(e)}unobserve(e){u(this,$,"f").delete(e)&&this._unobserve(e)}}function Ie(e,t){if(!t)return 0;const s=document.createElement("div");s.style.all="inherit",s.style.width=t,s.style.position="absolute",s.style.visibility="hidden",s.style.pointerEvents="none",e.appendChild(s);try{return parseFloat(getComputedStyle(s).width)}finally{s.remove()}}function Be(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Ve(e,t=200){function s(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const i=performance.now();for(;!s(e);){if(!e.isConnected||performance.now()-i>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Ne(){return!e&&matchMedia("(forced-colors: active)").matches}function Re(e,t,s){return e+(t-e)*s}function Ue(e,t,s,i){return{x:Math.pow(1-i,2)*e.x+2*(1-i)*i*t.x+Math.pow(i,2)*s.x,y:Math.pow(1-i,2)*e.y+2*(1-i)*i*t.y+Math.pow(i,2)*s.y}}function qe(e,t,s,i,a){return{x:Math.pow(1-a,3)*e.x+3*Math.pow(1-a,2)*a*t.x+3*(1-a)*Math.pow(a,2)*s.x+Math.pow(a,3)*i.x,y:Math.pow(1-a,3)*e.y+3*Math.pow(1-a,2)*a*t.y+3*(1-a)*Math.pow(a,2)*s.y+Math.pow(a,3)*i.y}}function je(e,t){const s=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let i={x:0,y:0},a={x:0,y:0};const r=[];for(const e of s)if("M"===e.type)i={x:e.nums[0],y:e.nums[1]},a=i;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},s=t.x-i.x,a=t.y-i.y;r.push({type:"L",pts:[i,t],length:Math.hypot(s,a)}),i=t}else if("H"===e.type){const t={x:e.nums[0],y:i.y},s=t.x-i.x;r.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("V"===e.type){const t={x:i.x,y:e.nums[0]},s=t.y-i.y;r.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]};let a=0,n=i;const o=20;for(let e=1;e<=o;e++){const r=Ue(i,t,s,e/o);a+=Math.hypot(r.x-n.x,r.y-n.y),n=r}r.push({type:"Q",pts:[i,t,s],length:a}),i=s}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]},a={x:e.nums[4],y:e.nums[5]};let n=0,o=i;const l=20;for(let e=1;e<=l;e++){const r=qe(i,t,s,a,e/l);n+=Math.hypot(r.x-o.x,r.y-o.y),o=r}r.push({type:"C",pts:[i,t,s,a],length:n}),i=a}else if("Z"===e.type){const e=a.x-i.x,t=a.y-i.y;r.push({type:"L",pts:[i,a],length:Math.hypot(e,t)}),i=a}const n=r.reduce((e,t)=>e+t.length,0)/(t-1),o=[];let l=0,c=0;for(let e=0;e<t;e++){const t=e*n;for(;c<r.length&&l+r[c].length<t;)l+=r[c].length,c++;const s=r[c];if(!s)break;const i=(t-l)/s.length;if("L"===s.type){const[e,t]=s.pts;o.push({x:Re(e.x,t.x,i),y:Re(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,a]=s.pts;o.push(Ue(e,t,a,i))}else if("C"===s.type){const[e,t,a,r]=s.pts;o.push(qe(e,t,a,r,i))}}return o}function Xe(e,t,s){return Math.max(t,Math.min(s,e))}function Ye(e,t){const s=e.length,i=new Array(s);for(let a=0;a<s;a++)i[a]=e[(a+t)%s];return i}function Ge(e,t){const s=Math.min(t.length,e.length);let i=0,a=1/0;for(let r=0;r<s;r++){let n=0;for(let i=0;i<s;i++){const o=t[(i+r)%s],l=e[i],c=o.x-l.x,d=o.y-l.y;if(n+=c*c+d*d,n>=a)break}n<a&&(a=n,i=r)}return i}function Ze(e){let t=0;const s=e.length;for(let i=0;i<s;i++){const a=e[i],r=e[(i+1)%s];t+=a.x*r.y-r.x*a.y}return t/2}function Ke(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,s=1/0,i=-1/0,a=-1/0;for(const r of e)r.x<t&&(t=r.x),r.x>i&&(i=r.x),r.y<s&&(s=r.y),r.y>a&&(a=r.y);return{minX:t,minY:s,maxX:i,maxY:a,width:i-t,height:a-s}}(e),s=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),i=Math.max(t.width,t.height)||1,a=s.map(e=>({x:e.x/i,y:e.y/i})),r=t.width/i,n=t.height/i,o=(1-r)/2,l=(1-n)/2;return a.map(e=>({x:e.x+o,y:e.y+l}))}),s=t[0],i=Math.sign(Ze(s));for(let e=1;e<t.length;e++){let a=t[e];const r=Math.sign(Ze(a));0!==r&&r!==i&&(a=a.slice().reverse());const n=Ge(s,a);t[e]=Ye(a,n)}return t}(e.map(e=>je(e,t))).map(e=>`${e.map(e=>{const t=Xe(100*e.x,0,100),s=Xe(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`}).join(", ")}`)}function Qe(e,t=!1){let s="";switch(e.nodeType){case Node.TEXT_NODE:s=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const i of e.assignedNodes({flatten:!0}))s+=Qe(i,t);else for(const i of e.childNodes)s+=Qe(i,t)}return t&&(s=s.trim()),s}function Je(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function et(e){return e.assignedNodes({flatten:!0}).length>0}function tt(e,t,s){const i=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!i)throw new Error(`Property ${String(t)} not found on target.`);const a=i.get?.bind(e),r=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>a?.()):a?.(),set(e){s.set?s.set(e,e=>r?.(e)):r?.(e)}}),()=>Object.defineProperty(e,t,i)}function st(){return e||matchMedia("(prefers-reduced-motion)").matches}function it(e,t=document){return new Promise(s=>{const i=t.querySelector(`#${e}`);i?s(i):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>s(t.querySelector(`#${e}`)),{once:!0}):s(t.querySelector(`#${e}`))})}function at(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function rt(e,t,s){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&e.scrollIntoView(s)}w=new WeakMap,k=new WeakMap,$=new WeakMap;class nt{constructor(e=100){E.set(this,[]),S.set(this,void 0),f(this,S,e,"f")}add(e,t=performance.now()){u(this,E,"f").push({y:e,t:t});const s=t-u(this,S,"f");for(;u(this,E,"f").length>1&&u(this,E,"f")[0].t<s;)u(this,E,"f").shift()}getVelocity(){if(u(this,E,"f").length<2)return 0;const e=u(this,E,"f")[0],t=u(this,E,"f")[u(this,E,"f").length-1],s=t.y-e.y,i=(t.t-e.t)/1e3;return i>0?s/i:0}reset(){u(this,E,"f").length=0}}E=new WeakMap,S=new WeakMap;class ot extends Oe{constructor(e,t){super(e,t),C.add(this),z.set(this,!1),L.set(this,void 0),M.set(this,e=>u(this,C,"m",P).call(this,e)),W.set(this,e=>u(this,C,"m",O).call(this,e)),F.set(this,e=>u(this,C,"m",I).call(this,e)),A.set(this,()=>f(this,z,!0,"f")),_.set(this,()=>f(this,z,!1,"f")),T.set(this,!1),D.set(this,()=>f(this,T,!0,"f")),H.set(this,()=>f(this,T,!1,"f")),f(this,L,t.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",u(this,D,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",u(this,H,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",u(this,D,"f"),{capture:!0}),window?.removeEventListener("pointerdown",u(this,H,"f"),{capture:!0})}_observe(e){e.addEventListener("keydown",u(this,M,"f")),e.addEventListener("focusin",u(this,W,"f")),e.addEventListener("focusout",u(this,F,"f")),e.addEventListener("touchstart",u(this,A,"f")),e.addEventListener("touchend",u(this,_,"f")),e.addEventListener("touchcancel",u(this,_,"f"))}_unobserve(e){e.removeEventListener("keydown",u(this,M,"f")),e.removeEventListener("focusin",u(this,W,"f")),e.removeEventListener("focusout",u(this,F,"f")),e.removeEventListener("touchstart",u(this,A,"f")),e.removeEventListener("touchend",u(this,_,"f")),e.removeEventListener("touchcancel",u(this,_,"f"))}}z=new WeakMap,L=new WeakMap,M=new WeakMap,W=new WeakMap,F=new WeakMap,A=new WeakMap,_=new WeakMap,T=new WeakMap,D=new WeakMap,H=new WeakMap,C=new WeakSet,P=function(e){e.currentTarget.matches(":focus-within")&&u(this,C,"m",O).call(this,e)},O=function(e){if(u(this,z,"f"))return;const t=e.currentTarget;u(this,L,"f").call(this,!0,t.matches(":focus-visible")||u(this,T,"f")||Ne(),t)},I=function(e){u(this,z,"f")||u(this,L,"f").call(this,!1,!1,e.currentTarget)};class lt extends Oe{constructor(e,t){super(e,t),B.add(this),V.set(this,void 0),N.set(this,new Map),R.set(this,new Map),U.set(this,e=>u(this,B,"m",G).call(this,e)),q.set(this,e=>u(this,B,"m",Z).call(this,e)),f(this,V,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)u(this,B,"m",j).call(this,e)}_observe(e){e.addEventListener("pointerenter",u(this,U,"f")),e.addEventListener("pointerleave",u(this,q,"f")),e.addEventListener("touchend",u(this,q,"f"))}_unobserve(e){e.removeEventListener("pointerenter",u(this,U,"f")),e.removeEventListener("pointerleave",u(this,q,"f")),e.removeEventListener("touchend",u(this,q,"f"))}}V=new WeakMap,N=new WeakMap,R=new WeakMap,U=new WeakMap,q=new WeakMap,B=new WeakSet,j=function(e){u(this,B,"m",X).call(this,e),u(this,B,"m",Y).call(this,e)},X=function(e){return!!u(this,N,"f").has(e)&&(clearTimeout(u(this,N,"f").get(e)),u(this,N,"f").delete(e))},Y=function(e){return!!u(this,R,"f").has(e)&&(clearTimeout(u(this,R,"f").get(e)),u(this,R,"f").delete(e))},G=function(e){const t=e.target;u(this,B,"m",Y).call(this,t),this.startDelay>0?(u(this,B,"m",X).call(this,t),u(this,N,"f").set(t,setTimeout(()=>{u(this,N,"f").delete(t),u(this,V,"f").call(this,!0,t)},this.startDelay))):u(this,V,"f").call(this,!0,t)},Z=function(e){const t=e.target;u(this,B,"m",X).call(this,t)||(this.endDelay>0?(u(this,B,"m",Y).call(this,t),u(this,R,"f").set(t,setTimeout(()=>{u(this,R,"f").delete(t),u(this,V,"f").call(this,!1,t)},this.endDelay))):u(this,V,"f").call(this,!1,t))};class ct extends Oe{constructor(t,s){super(t,s),K.set(this,void 0),Q.set(this,!1),J.set(this,void 0),ee.set(this,!0),f(this,K,s.callback,"f"),f(this,Q,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?f(this,J,new IntersectionObserver((e,t)=>{u(this,K,"f").call(this,e,t)},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){u(this,J,"f")&&!u(this,Q,"f")&&u(this,ee,"f")&&u(this,K,"f").call(this,[],u(this,J,"f")),f(this,ee,!1,"f")}_observe(e){u(this,J,"f")?.observe(e),f(this,ee,!0,"f")}_unobserve(e){u(this,J,"f")?.unobserve(e)}}K=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap;class dt extends Oe{constructor(e,t){super(e,t),te.add(this),se.set(this,void 0),ie.set(this,void 0),ae.set(this,new Set),re.set(this,new Map),ne.set(this,e=>u(this,te,"m",le).call(this,e)),oe.set(this,e=>u(this,te,"m",ce).call(this,e)),f(this,se,t.callback,"f"),f(this,ie,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",u(this,ne,"f"),{passive:!0}),e.addEventListener("touchend",u(this,oe,"f")),e.addEventListener("touchcancel",u(this,oe,"f"))}_unobserve(e){e.removeEventListener("touchstart",u(this,ne,"f")),e.removeEventListener("touchend",u(this,oe,"f")),e.removeEventListener("touchcancel",u(this,oe,"f"))}}se=new WeakMap,ie=new WeakMap,ae=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,te=new WeakSet,le=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;u(this,re,"f").set(t,setTimeout(()=>{u(this,ae,"f").add(t),u(this,re,"f").delete(t),u(this,se,"f").call(this,!0,t)},u(this,ie,"f")))}},ce=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;u(this,ae,"f").has(t)&&(u(this,se,"f").call(this,!1,t),u(this,ae,"f").delete(t)),u(this,re,"f").has(t)&&(clearTimeout(u(this,re,"f").get(t)),u(this,re,"f").delete(t))}};class ht extends Oe{constructor(t,s){super(t,s),de.set(this,void 0),he.set(this,!1),pe.set(this,void 0),me.set(this,void 0),ue.set(this,!0),f(this,de,s.callback,"f"),f(this,he,s.skipInitial??!1,"f"),f(this,pe,s.config,"f"),e||(window.MutationObserver?f(this,me,new MutationObserver((e,t)=>u(this,de,"f").call(this,e,t)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(u(this,me,"f")&&!u(this,he,"f")&&u(this,ue,"f")){const e=u(this,me,"f").takeRecords();e.length>0&&u(this,de,"f").call(this,e,u(this,me,"f"))}f(this,ue,!1,"f")}hostDisconnected(){super.hostDisconnected(),u(this,me,"f")?.disconnect()}_observe(e){u(this,me,"f")?.observe(e,u(this,pe,"f")),f(this,ue,!0,"f")}_unobserve(){u(this,me,"f")?.disconnect();for(const e of this.targets)u(this,me,"f")?.observe(e,u(this,pe,"f"))}}de=new WeakMap,he=new WeakMap,pe=new WeakMap,me=new WeakMap,ue=new WeakMap;class pt extends Oe{constructor(e,t){super(e,t),fe.add(this),ve.set(this,void 0),ye.set(this,void 0),ge.set(this,void 0),be.set(this,new Map),xe.set(this,void 0),we.set(this,e=>u(this,fe,"m",Ce).call(this,e)),ke.set(this,e=>u(this,fe,"m",ze).call(this,e)),$e.set(this,e=>u(this,fe,"m",Le).call(this,e)),Ee.set(this,e=>u(this,fe,"m",Me).call(this,e)),Se.set(this,e=>u(this,fe,"m",We).call(this,e)),f(this,ve,t.capture,"f"),f(this,ye,t.callback,"f"),f(this,ge,t.isPressedKey,"f"),f(this,xe,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",u(this,ke,"f"),{capture:u(this,ve,"f")}),document.addEventListener("touchend",u(this,$e,"f"),{capture:u(this,ve,"f")}),document.addEventListener("touchcancel",u(this,$e,"f"),{capture:u(this,ve,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",u(this,ke,"f"),{capture:u(this,ve,"f")}),document.removeEventListener("touchend",u(this,$e,"f"),{capture:u(this,ve,"f")}),document.removeEventListener("touchcancel",u(this,$e,"f"),{capture:u(this,ve,"f")}),super.hostDisconnected(),u(this,be,"f").clear()}_observe(e){e.addEventListener("pointerdown",u(this,we,"f"),{capture:u(this,ve,"f")}),u(this,ge,"f")&&(e.addEventListener("keydown",u(this,Ee,"f"),{capture:u(this,ve,"f")}),e.addEventListener("keyup",u(this,Se,"f"),{capture:u(this,ve,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",u(this,we,"f"),{capture:u(this,ve,"f")}),u(this,ge,"f")&&(e.removeEventListener("keydown",u(this,Ee,"f"),{capture:u(this,ve,"f")}),e.removeEventListener("keyup",u(this,Se,"f"),{capture:u(this,ve,"f")}))}}ve=new WeakMap,ye=new WeakMap,ge=new WeakMap,be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,$e=new WeakMap,Ee=new WeakMap,Se=new WeakMap,fe=new WeakSet,Ce=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){u(this,be,"f").has(t)||(u(this,be,"f").set(t,performance.now()),u(this,ye,"f").call(this,!0,{x:e.x,y:e.y},t));break}},ze=function(e){"mouse"===e.pointerType&&e.button>1||u(this,fe,"m",Fe).call(this,e.x,e.y)},Le=function(e){u(this,fe,"m",Fe).call(this,e.changedTouches[0]?.clientX??0,e.changedTouches[0]?.clientY??0)},Me=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(u(this,ge,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!u(this,be,"f").has(t))){u(this,be,"f").set(t,performance.now());const e=t.getBoundingClientRect();u(this,ye,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},We=function(e){const t=e.target;if(u(this,be,"f").has(t)&&u(this,ge,"f")?.call(this,e.key)){const e=u(this,xe,"f")-(performance.now()-u(this,be,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{u(this,be,"f").delete(t),u(this,ye,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(u(this,be,"f").delete(t),u(this,ye,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}},Fe=function(e,t){for(const s of u(this,be,"f")){const i=u(this,xe,"f")-(performance.now()-s[1]);i>0?setTimeout(()=>{u(this,be,"f").delete(s[0]),u(this,ye,"f").call(this,!1,{x:e,y:t},s[0])},i):(u(this,be,"f").delete(s[0]),u(this,ye,"f").call(this,!1,{x:e,y:t},s[0]))}};class mt extends Oe{constructor(t,s){super(t,s),Ae.set(this,void 0),_e.set(this,void 0),Te.set(this,void 0),De.set(this,void 0),He.set(this,!0),f(this,Ae,s.callback,"f"),f(this,_e,s.skipInitial??!1,"f"),f(this,Te,s.config,"f"),e||(window.ResizeObserver?f(this,De,new ResizeObserver((e,t)=>u(this,Ae,"f").call(this,e,t)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){u(this,De,"f")&&!u(this,_e,"f")&&u(this,He,"f")&&u(this,Ae,"f").call(this,[],u(this,De,"f")),f(this,He,!1,"f")}_observe(e){u(this,De,"f")?.observe(e,u(this,Te,"f")),f(this,He,!0,"f")}_unobserve(e){u(this,De,"f")?.unobserve(e)}}Ae=new WeakMap,_e=new WeakMap,Te=new WeakMap,De=new WeakMap,He=new WeakMap;const ut=e=>(t,s)=>{const i=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};s?s.addInitializer(i):i()};function ft(e){const t=Symbol("_id");return(s,i,a)=>{const r=a.value;return a.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>r.apply(this,s),e)},a}}var vt,yt,gt,bt,xt,wt,kt,$t,Et,St,Ct,zt,Lt,Mt;class Wt extends Oe{constructor(e,t){super(e,t),vt.add(this),yt.set(this,void 0),gt.set(this,void 0),bt.set(this,e=>u(this,vt,"m",kt).call(this,e)),xt.set(this,new Map),f(this,yt,!0===t.debounce,"f"),f(this,gt,t.callback,"f")}getScrollContainers(e){return u(this,xt,"f").get(e)}_observe(e){const t=u(this,vt,"m",wt).call(this,e);if(t.length>0){u(this,xt,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",u(this,bt,"f"),{passive:!0})}}_unobserve(e){if(u(this,xt,"f").has(e)){for(const t of u(this,xt,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",u(this,bt,"f"));u(this,xt,"f").delete(e)}}_debounceCallback(e){u(this,gt,"f").call(this,e)}}yt=new WeakMap,gt=new WeakMap,bt=new WeakMap,xt=new WeakMap,vt=new WeakSet,wt=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},kt=function(e){const t=e.target===document?document.documentElement:e.target;u(this,yt,"f")?this._debounceCallback(t):u(this,gt,"f").call(this,t)},m([ft(40)],Wt.prototype,"_debounceCallback",null);class Ft{constructor(e){$t.add(this),Et.set(this,!1),St.set(this,0),Ct.set(this,0),zt.set(this,""),Lt.set(this,""),e.addController(this)}lock(){u(this,Et,"f")||(f(this,Et,!0,"f"),f(this,St,window.scrollY,"f"),f(this,Ct,window.scrollX,"f"),f(this,zt,document.documentElement.style.overflow,"f"),f(this,Lt,document.documentElement.style.scrollbarGutter,"f"),u(this,$t,"m",Mt).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(u(this,Ct,"f"),u(this,St,"f")))}unlock(){u(this,Et,"f")&&(f(this,Et,!1,"f"),document.documentElement.style.overflow=u(this,zt,"f"),document.documentElement.style.scrollbarGutter=u(this,Lt,"f"),window.scrollTo(u(this,Ct,"f"),u(this,St,"f")))}hostDisconnected(){this.unlock()}}Et=new WeakMap,St=new WeakMap,Ct=new WeakMap,zt=new WeakMap,Lt=new WeakMap,$t=new WeakSet,Mt=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const At={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},_t="important",Tt=" !"+_t;const Dt=o(class extends l{constructor(e){if(super(e),e.type!==c.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(Tt);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?_t:""):i[e]=s}}return s}});function Ht(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Pt=Symbol("internals");function Ot(e){return Ht(e,Pt)}const It=Symbol("_internals"),Bt=Symbol("_customState");function Vt(e,t){var s;class i extends e{constructor(){super(...arguments),this[s]=new Set}get[(s=Bt,Pt)](){return this[It]??(this[It]=this.attachInternals())}}return i.formAssociated=t,i}function Nt(e,t){return Bt in e?e[Bt].has(t):e[Pt].states.has(t)}function Rt(e,t){Bt in e&&e[Bt].add(t),e[Pt]?.states.add(t),e[Pt]?.states.has(t)}function Ut(e,t){return Bt in e&&e[Bt].delete(t),!!e[Pt]?.states.delete(t)&&(e[Pt]?.states.has(t),!0)}function qt(e,t,s){s?Rt(e,t):Ut(e,t)}function jt(e){return Ht(e,"checked")}function Xt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return m([d({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Yt(e){return Ht(e,"indeterminate")&&jt(e)}function Gt(e){class t extends(Xt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return m([d({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function Zt(e){return Ht(e,"selected")}function Kt(e){class t extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return m([d({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function Qt(e){return jt(e)||Zt(e)}function Jt(e){return jt(e)&&e.checked||Zt(e)&&e.selected}function es(e,t){jt(e)?e.checked=t:e.selected=t}function ts(e){return Ht(e,"dirty","pristine","markAsDirty","markAsPristine")}const ss=Symbol("_eventHandler");function is(e){var t;return t=ss,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Nt(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[ss])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[ss])}markAsPristine(){Ut(this,"-dirty")}markAsDirty(){Rt(this,"-dirty")}}}function as(e){return Ht(e,"touched","untouched","markAsTouched","markAsUntouched")}const rs=Symbol("_eventHandler");function ns(e){var t;return t=rs,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Nt(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[rs],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[rs],{capture:!0})}markAsTouched(){Rt(this,"-touched")}markAsUntouched(){Ut(this,"-touched")}}}const os={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},ls={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},cs={...ls,calc:e=>i(`calc(max(${e}, ${ls.scale}) * ${ls.size})`)},ds=`color-mix(in srgb, var(--m3e-elevation-color, ${os.shadow}) 20%, transparent)`,hs=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],ps=`color-mix(in srgb, var(--m3e-elevation-color, ${os.shadow}) 14%, transparent)`,ms=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],us=`color-mix(in srgb, var(--m3e-elevation-color, ${os.shadow}) 12%, transparent)`,fs=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function vs(e){return`${ds} ${hs[e]},${ps} ${ms[e]},${us} ${fs[e]}`}const ys={level0:i(`var(--md-sys-elevation-level0, ${vs(0)})`),level1:i(`var(--md-sys-elevation-level1, ${vs(1)})`),level2:i(`var(--md-sys-elevation-level2, ${vs(3)})`),level3:i(`var(--md-sys-elevation-level3, ${vs(6)})`),level4:i(`var(--md-sys-elevation-level4, ${vs(8)})`),level5:i(`var(--md-sys-elevation-level5, ${vs(12)})`)},gs={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},bs={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},xs={easing:gs,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:bs},ws={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},ks={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},$s={color:os,elevation:ys,motion:xs,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${ks.extraLarge} ${ks.extraLarge} ${ks.none} ${ks.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${ks.extraLarge})`),extraLargeEnd:i(`${ks.none} ${ks.extraLarge} ${ks.extraLarge} ${ks.none}`),extraLargeStart:i(`${ks.extraLarge} ${ks.none} ${ks.none} ${ks.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${ks.large} ${ks.large} ${ks.none} ${ks.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${ks.none} ${ks.large} ${ks.large} ${ks.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${ks.large} ${ks.none} ${ks.none} ${ks.large})`),large:i(`var(--md-sys-shape-corner-large, ${ks.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${ks.medium})`),mediumTop:i(`${ks.medium} ${ks.medium} ${ks.none} ${ks.none}`),mediumEnd:i(`${ks.none} ${ks.medium} ${ks.medium} ${ks.none}`),mediumStart:i(`${ks.medium} ${ks.none} ${ks.none} ${ks.medium}`),small:i(`var(--md-sys-shape-corner-small, ${ks.small})`),smallTop:i(`${ks.small} ${ks.small} ${ks.none} ${ks.none}`),smallEnd:i(`${ks.none} ${ks.small} ${ks.small} ${ks.none}`),smallStart:i(`${ks.small} ${ks.none} ${ks.none} ${ks.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${ks.extraSmall} ${ks.extraSmall} ${ks.none} ${ks.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${ks.extraSmall})`),extraSmallEnd:i(`${ks.none} ${ks.extraSmall} ${ks.extraSmall} ${ks.none}`),extraSmallStart:i(`${ks.extraSmall} ${ks.none} ${ks.none} ${ks.extraSmall}`),extraSmallBottom:i(`${ks.none} ${ks.none} ${ks.extraSmall} ${ks.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${ks.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${ks.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${ks.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${ks.extraExtraLarge})`),value:ks}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:ws,density:cs};function Es(e){return Ht(e,"disabled")}function Ss(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return m([d({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Cs(e){return Ht(e,"disabledInteractive")&&Es(e)}const zs=["click","dblclick","auxclick","keydown","keyup"],Ls=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Ms=Symbol("_suppressedEventHandler");function Ws(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ls.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){zs.forEach(e=>this.addEventListener(e,this[Ms],!0)),super.connectedCallback()}disconnectedCallback(){zs.forEach(e=>this.removeEventListener(e,this[Ms],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=Ms,m([d({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const Fs=Symbol("updateLabels");function As(e){return Ht(e,"labels")&&Ot(e)}const _s=Symbol("_eventHandler");function Ts(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Fs]()}}get labels(){return this[Pt].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[_s]),this.addEventListener("change",this[_s])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[_s]),this.removeEventListener("change",this[_s])}update(e){super.update(e),this[Fs]()}[(t=_s,Fs)](){const e=this.hasAttribute("tabindex"),t=Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive,s=as(this)&&this.touched&&(this.ariaInvalid||Nt(this,"-invalid"));for(const i of this.labels??[])i.style.userSelect=e?"none":"",i.style.cursor=!t&&e?"pointer":"",!t&&e?i.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):i.style.removeProperty("-webkit-tap-highlight-color"),i.style.color=t?`color-mix(in srgb, ${$s.color.onSurface} 38%, transparent)`:s?`${$s.color.error}`:""}}return s.formAssociated=!0,s}const Ds=Symbol("formValue"),Hs=Symbol("defaultValue");function Ps(e){return Ht(e,"disabled","form","name")&&As(e)&&Ot(e)}const Os=Symbol("_defaultValue"),Is=Symbol("_defaultIndeterminate"),Bs=Symbol("_formDisabled");function Vs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[Pt].form}get labels(){return this[Pt].labels}get[(t=Is,s=Bs,Ds)](){return null}get[Hs](){return this[Os]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Bs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),jt(this)?(this[Os]=this.checked,Yt(this)&&(this[Is]=this.indeterminate)):"value"in this&&(this[Os]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Pt].setFormValue(this[Ds])}formDisabledCallback(e){const t=this.disabled;this[Bs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){jt(this)?(this.checked=!0===this[Os],Yt(this)&&(this.indeterminate=this[Is])):"value"in this&&(this.value=this[Hs]),ts(this)&&this.markAsPristine(),as(this)&&this.markAsUntouched()}}return i.formAssociated=!0,m([d({noAccessor:!0})],i.prototype,"name",null),m([d({type:Boolean})],i.prototype,"disabled",null),i}const Ns=Symbol("validate");function Rs(e){return Ht(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Ps(e)}const Us=Symbol("_updateValidity"),qs=Symbol("_validityMessage");function js(t){var s,i;class a extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Pt].willValidate}get validity(){return this[Us](),this[Pt].validity}get validationMessage(){return this[Us](),this[Pt].validationMessage}[(s=new WeakSet,Ns)](){return this[qs]?{customError:!0}:void 0}reportValidity(){return as(this)&&this.markAsTouched(),this[Us](),this[Pt].reportValidity()}checkValidity(){return this[Us](),this[Pt].checkValidity()}setCustomValidity(e){this[qs]=e||void 0,this[Us]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Us]()}firstUpdated(e){super.firstUpdated(e),this[Us]()}[Us](){if(e||!this.isConnected)return;const t=this[Ns](),a=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[qs]:"";t&&!r&&(r=u(this,s,"m",i).call(this,t)),this[Pt].setValidity(t,r),this.ariaInvalid=a?"true":null,qt(this,"-invalid",!0===a),As(this)&&this[Fs]?.()}}return i=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},a}function Xs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Ys=Symbol("_tabindex");function Gs(e){var t;return t=Ys,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Ys]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Ys]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Ys]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Ys]}`)}}}function Zs(e){return Ht(e,"name","type","value")&&Ot(e)}const Ks=Symbol("_clickHandler");function Qs(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive)return;const t=this[Pt].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[Pt].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Ks])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Ks])}}return t=Ks,s.formAssociated=!0,m([d()],s.prototype,"name",null),m([d()],s.prototype,"value",null),m([d()],s.prototype,"type",void 0),s}function Js(e){return Ht(e,"htmlFor","control","attach","detach")}const ei=Symbol("_control"),ti=Symbol("_firstUpdated");function si(e){var t;class s extends e{constructor(){super(...arguments),this[t]=!1,this.htmlFor=null}get control(){return this[ei]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[ei]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[ei];e&&(this.detach(),this[ei]=e)}firstUpdated(e){super.firstUpdated(e),this[ti]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&it(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[ti]&&this.detach()}attach(e){this[ei]=new WeakRef(e)}detach(){this[ei]=void 0}}return t=ti,m([d({attribute:"for"})],s.prototype,"htmlFor",void 0),s}function ii(e,t=!0){var s,i,a,r,n,o,l;return i=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,s=new WeakSet,o=function(e){e.target!==e.currentTarget||Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive?f(this,i,!1,"f"):(" "===e.key||t&&"Enter"===e.key)&&f(this,i,!0,"f")},l=function(e){e.target!==e.currentTarget||Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive||!u(this,i,"f")?f(this,i,!1,"f"):(f(this,i,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,!1),a.set(this,e=>u(this,s,"m",o).call(this,e)),r.set(this,e=>u(this,s,"m",l).call(this,e)),n.set(this,()=>f(this,i,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",u(this,a,"f")),this.addEventListener("keyup",u(this,r,"f")),this.addEventListener("focusout",u(this,n,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",u(this,a,"f")),this.removeEventListener("keyup",u(this,r,"f")),this.removeEventListener("focusout",u(this,n,"f"))}}}const ai=Symbol("renderPseudoLink");function ri(e){return Ht(e,"download","href","rel","target")}const ni=Symbol("_clickHandler");function oi(e){var s,i,r,n,o;class l extends e{constructor(){super(...arguments),s.add(this),this[o]=async e=>{if(Cs(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[ni]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ni])}[(s=new WeakSet,o=ni,ai)](){const e=Es(this)&&this.disabled,o=Cs(this)&&this.disabledInteractive;return e||o||!this.href?t:a`<a href="${this.href}" target="${p(this.target||void 0)}" rel="${p(this.rel||void 0)}" download="${p(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${u(this,s,"m",i)}" @focus="${u(this,s,"m",r)}" @blur="${u(this,s,"m",n)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},n=function(e){e.target.setAttribute("aria-hidden","true")},m([d()],l.prototype,"href",void 0),m([d()],l.prototype,"target",void 0),m([d()],l.prototype,"rel",void 0),m([d({reflect:!1})],l.prototype,"download",null),l}function li(e){return Ht(e,"readOnly")}function ci(e,t=!0){class s extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return m([d({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function di(e){return Ht(e,"required","optional")}function hi(e){class t extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return m([d({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function pi(e){return di(e)&&Rs(e)}function mi(e){return class extends e{[Ns](){const e=super[Ns]();if(!e&&this.required){if(jt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function ui(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function fi(e){return Ht(e,"vertical")}function vi(e){class t extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return m([d({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var yi,gi,bi,xi,wi,ki,$i,Ei;class Si extends n{constructor(){super(...arguments),yi.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",u(this,yi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",u(this,yi,"f"))}render(){return a`<slot></slot>`}}yi=new WeakMap,Si.styles=r`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let Ci=class extends(Xs(Vt(n),"opening","opened","closing","closed")){constructor(){super(...arguments),gi.add(this),bi.set(this,!1),xi.set(this,!1),this.open=!1}update(e){if(super.update(e),Rt(this,"-no-animate"),!u(this,bi,"f"))return this.open&&(f(this,xi,!0,"f"),u(this,gi,"m",ki).call(this)),void f(this,bi,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(f(this,xi,!0,"f"),st()||(u(this,gi,"m",ki).call(this),qt(this,"-overflows",this.clientHeight<this.scrollHeight),u(this,gi,"m",$i).call(this)),Ut(this,"-closing"),Rt(this,"-opening"),this.dispatchEvent(new Event("opening")),u(this,gi,"m",$i).call(this),Ut(this,"-no-animate"),u(this,gi,"m",Ei).call(this),st()?(u(this,gi,"m",ki).call(this),Ut(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(u(this,gi,"m",ki).call(this),Ut(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(Ut(this,"-opening"),Rt(this,"-closing"),this.dispatchEvent(new Event("closing")),u(this,gi,"m",Ei).call(this),u(this,xi,"f")&&Ut(this,"-no-animate"),st()?(u(this,gi,"m",$i).call(this),Ut(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{u(this,gi,"m",$i).call(this),this.addEventListener("transitionend",()=>{this.open||(Ut(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return a`<slot @slotchange="${u(this,gi,"m",wi)}"></slot>`}};bi=new WeakMap,xi=new WeakMap,gi=new WeakSet,wi=function(){f(this,bi,!0,"f")},ki=function(){this.style.height="auto"},$i=function(){this.style.height=""},Ei=function(){this.style.height=`${this.scrollHeight}px`},Ci.styles=r`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,m([d({type:Boolean,reflect:!0})],Ci.prototype,"open",void 0),Ci=m([ut("m3e-collapsible")],Ci);const zi=i(`var(--m3e-elevation-lift-duration, ${$s.motion.duration.short4})`),Li=i(`var(--m3e-elevation-lift-easing, ${$s.motion.easing.standard})`),Mi=i(`var(--m3e-elevation-settle-duration, ${$s.motion.duration.short3})`),Wi=i(`var(--m3e-elevation-settle-easing, ${$s.motion.easing.standardAccelerate})`),Fi=i(`var(--m3e-elevation-level, ${$s.elevation.level0})`),Ai=i(`var(--m3e-elevation-hover-level, ${$s.elevation.level0})`),_i=i(`var(--m3e-elevation-focus-level, ${$s.elevation.level0})`),Ti=i(`var(--m3e-elevation-pressed-level, ${$s.elevation.level0})`);var Di,Hi,Pi,Oi,Ii,Bi,Vi;let Ni=class extends(si(ui(n,"none"))){constructor(){super(...arguments),Di.add(this),Hi.set(this,new lt(this,{target:null,callback:e=>u(this,Di,"m",Ii).call(this,e)})),Pi.set(this,new ot(this,{target:null,callback:e=>u(this,Di,"m",Bi).call(this,e)})),Oi.set(this,new pt(this,{target:null,callback:e=>u(this,Di,"m",Vi).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),u(this,Hi,"f").observe(e),u(this,Pi,"f").observe(e),u(this,Oi,"f").observe(e)}detach(){this.control&&(u(this,Hi,"f").unobserve(this.control),u(this,Pi,"f").unobserve(this.control),u(this,Oi,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return a`<div class="shadow"></div>`}};Hi=new WeakMap,Pi=new WeakMap,Oi=new WeakMap,Di=new WeakSet,Ii=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Bi=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Vi=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Ni.styles=r`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${i(`box-shadow ${Mi} ${Wi};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${zi} ${Li};`)}; } .shadow { box-shadow: ${Fi}; } .shadow.focus { box-shadow: ${_i}; } .shadow.hover { box-shadow: ${Ai}; } .shadow.pressed { box-shadow: ${Ti}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${$s.elevation.level0}; --m3e-elevation-hover-level: ${$s.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${$s.elevation.level1}; --m3e-elevation-hover-level: ${$s.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${$s.elevation.level2}; --m3e-elevation-hover-level: ${$s.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${$s.elevation.level3}; --m3e-elevation-hover-level: ${$s.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${$s.elevation.level4}; --m3e-elevation-hover-level: ${$s.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${$s.elevation.level5}; --m3e-elevation-hover-level: ${Fi}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Fi}; --m3e-elevation-pressed-level: ${Fi}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,m([h(".shadow")],Ni.prototype,"_shadow",void 0),m([d({type:Boolean,reflect:!0})],Ni.prototype,"disabled",void 0),m([d({type:Number,reflect:!0})],Ni.prototype,"level",void 0),Ni=m([ut("m3e-elevation")],Ni);const Ri=i(`var(--m3e-focus-ring-color, ${$s.color.secondary})`),Ui=i(`var(--m3e-focus-ring-duration, ${$s.motion.duration.long2})`),qi=i("var(--m3e-focus-ring-thickness, 3px)"),ji=i("var(--m3e-focus-ring-outward-offset, 2px)"),Xi=i("var(--m3e-focus-ring-inward-offset, 0px)"),Yi=i("var(--m3e-focus-ring-visibility, visible)"),Gi=i("var(--m3e-focus-ring-growth-factor, 2)");var Zi,Ki,Qi;let Ji=class extends(si(ui(n,"none"))){constructor(){super(...arguments),Zi.add(this),Ki.set(this,new ot(this,{target:null,callback:(e,t)=>u(this,Zi,"m",Qi).call(this,t)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(e){super.attach(e),u(this,Ki,"f").observe(e)}detach(){this.control&&u(this,Ki,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return a`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Ki=new WeakMap,Zi=new WeakSet,Qi=function(e){this.disabled||(e?this.show():this.hide())},Ji.styles=r`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${Ri}; outline-width: ${qi}; visibility: ${Yi}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${ji}; } :host([inward]) .outline { outline-offset: calc(${Xi} - ${qi}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Ui}; } :host([inward]) .outline.visible { animation: shrink-grow ${Ui}; } @keyframes grow-shrink { 50% { outline-width: calc(${qi} * ${Gi}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Xi} - calc(${qi} * ${Gi}) ); outline-width: calc(${qi} * ${Gi}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,m([h(".outline")],Ji.prototype,"_outline",void 0),m([d({type:Boolean,reflect:!0})],Ji.prototype,"inward",void 0),m([d({type:Boolean,reflect:!0})],Ji.prototype,"disabled",void 0),Ji=m([ut("m3e-focus-ring")],Ji);let ea=class extends(Gt(Ss(ui(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?a`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?a`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:t}};ea.styles=r`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${$s.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${$s.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${$s.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${$s.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${$s.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${$s.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,ea=m([ut("m3e-pseudo-checkbox")],ea);let ta=class extends(Xt(Ss(ui(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return a`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};ta.styles=r`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${$s.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${$s.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${$s.color.onSurface}) 38%, transparent); }`,ta=m([ut("m3e-pseudo-radio")],ta);const sa=i(`var(--m3e-ripple-color, ${$s.color.onSurface})`),ia=i(`var(--m3e-ripple-opacity, ${$s.state.pressedStateLayerOpacity})`),aa=i(`var(--m3e-ripple-enter-duration, ${$s.motion.duration.long4})`),ra=i(`var(--m3e-ripple-exit-duration, ${$s.motion.duration.short2})`),na=i("var(--m3e-ripple-scale-factor, 2.5)");var oa,la,ca,da,ha,pa;let ma=class extends(si(ui(n,"none"))){constructor(){super(...arguments),oa.add(this),la.set(this,null),ca.set(this,new pt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>u(this,oa,"m",pa).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==u(this,la,"f")}show(e,t,s=!1){u(this,oa,"m",da).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let a=this.radius;if(!a||isNaN(a)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));a=Math.sqrt(s*s+r*r)}const r=e-i.left,n=t-i.top;f(this,la,document.createElement("div"),"f"),u(this,la,"f").classList.add("ripple"),s&&u(this,la,"f").classList.add("persistent"),u(this,la,"f").style.left=r-a+"px",u(this,la,"f").style.top=n-a+"px",u(this,la,"f").style.width=2*a+"px",u(this,la,"f").style.height=2*a+"px",u(this,la,"f").addEventListener("animationend",()=>u(this,oa,"m",ha).call(this,s),{once:!0}),u(this,la,"f").addEventListener("transitionend",()=>u(this,oa,"m",da).call(this),{once:!0}),this.shadowRoot?.appendChild(u(this,la,"f"))}hide(){u(this,la,"f")?.classList.add("exit")}attach(e){super.attach(e),u(this,ca,"f").observe(e)}detach(){this.control&&u(this,ca,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),u(this,oa,"m",da).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var ua;la=new WeakMap,ca=new WeakMap,oa=new WeakSet,da=function(){u(this,la,"f")?.remove(),f(this,la,null,"f")},ha=function(e){e?u(this,la,"f")?.classList.add("pressed"):this.hide()},pa=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},ma.styles=r`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${$s.shape.corner.full}; background-color: color-mix(in srgb, ${sa} ${ia}, transparent); will-change: background-color, opacity; animation: ripple ${aa} linear; } .ripple.persistent.pressed { transform: scale(${na}); } .ripple.exit { transition: opacity ${ra} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${na}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${na}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,m([d({type:Boolean,reflect:!0})],ma.prototype,"disabled",void 0),m([d({type:Boolean,reflect:!0})],ma.prototype,"centered",void 0),m([d({type:Boolean,reflect:!0})],ma.prototype,"unbounded",void 0),m([d({type:Number})],ma.prototype,"radius",void 0),ma=m([ut("m3e-ripple")],ma);let fa=class extends(Vt(n)){constructor(){super(...arguments),ua.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",u(this,ua,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",u(this,ua,"f")),"none"!==this.dividers&&this.addEventListener("scroll",u(this,ua,"f"),{passive:!0}))}render(){return a`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;qt(this,"-above",e),qt(this,"-below",t)}};var va,ya,ga,ba;ua=new WeakMap,fa.styles=r`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${$s.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Ri}; outline-width: ${qi}; outline-offset: ${ji}; } :host([thin]) { scrollbar-width: ${$s.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${$s.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${$s.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${$s.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Ui}; } @keyframes grow-shrink { 50% { outline-width: calc(${qi} * ${Gi}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,m([d()],fa.prototype,"dividers",void 0),m([d({type:Boolean,reflect:!0})],fa.prototype,"thin",void 0),m([ft(40)],fa.prototype,"_updateScroll",null),fa=m([ut("m3e-scroll-container")],fa);let xa=class extends(Vt(n)){constructor(){super(...arguments),va.add(this),ya.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Rt(this,"-no-animate")}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&Rt(this,"-no-animate"),u(this,va,"m",ba).call(this),null!==this.selectedIndex&&Nt(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&Ut(this,"-no-animate")}))}render(){return a`<slot @slotchange="${u(this,va,"m",ga)}"></slot>`}};ya=new WeakMap,va=new WeakSet,ga=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of u(this,ya,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");f(this,ya,t,"f"),u(this,va,"m",ba).call(this)},ba=function(){const e=this.selectedIndex??u(this,ya,"f").length;for(let t=0;t<u(this,ya,"f").length;t++){const s=u(this,ya,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},xa.styles=r`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${$s.motion.duration.long2}) ${$s.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${$s.motion.duration.long2}) ${$s.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,m([d({attribute:"selected-index",type:Number,reflect:!0})],xa.prototype,"selectedIndex",void 0),xa=m([ut("m3e-slide")],xa);const wa=i(`var(--m3e-state-layer-hover-color, ${$s.color.onSurface})`),ka=i(`var(--m3e-state-layer-hover-opacity, ${$s.state.hoverStateLayerOpacity})`),$a=i(`var(--m3e-state-layer-focus-color, ${$s.color.onSurface})`),Ea=i(`var(--m3e-state-layer-focus-opacity, ${$s.state.focusStateLayerOpacity})`),Sa=i(`var(--m3e-state-layer-duration, ${$s.motion.duration.medium1})`),Ca=i(`var(--m3e-state-layer-easing, ${$s.motion.easing.standard})`);var za,La,Ma,Wa,Fa;let Aa=class extends(si(ui(n,"none"))){constructor(){super(...arguments),za.add(this),La.set(this,new lt(this,{target:null,callback:e=>u(this,za,"m",Wa).call(this,e)})),Ma.set(this,new ot(this,{target:null,callback:(e,t)=>u(this,za,"m",Fa).call(this,t)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),u(this,La,"f").observe(e),u(this,Ma,"f").observe(e)}detach(){this.control&&(u(this,La,"f").unobserve(this.control),u(this,Ma,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return a`<div class="layer"></div>`}};var _a,Ta,Da,Ha,Pa,Oa,Ia,Ba;La=new WeakMap,Ma=new WeakMap,za=new WeakSet,Wa=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},Fa=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Aa.styles=r`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${i(`background-color ${Sa} ${Ca}`)}; } .layer.focused { background-color: color-mix(in srgb, ${$a} ${Ea}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${wa} ${ka}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,m([h(".layer")],Aa.prototype,"_layer",void 0),m([d({type:Boolean,reflect:!0})],Aa.prototype,"disabled",void 0),m([d({attribute:"disable-hover",type:Boolean,reflect:!0})],Aa.prototype,"disableHover",void 0),Aa=m([ut("m3e-state-layer")],Aa);let Va=Ba=class extends n{constructor(){super(),_a.add(this),Ta.set(this,"m3e-text-highlight-"+Ba.__nextId++),Da.set(this,new Array),Ha.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(f(this,Ha,new CSSStyleSheet,"f"),u(this,Ha,"f").replaceSync(r`::highlight(${i(u(this,Ta,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${$s.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${$s.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return u(this,Da,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&u(this,Ha,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(u(this,Ha,"f"))&&this.shadowRoot.adoptedStyleSheets.push(u(this,Ha,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&u(this,_a,"m",Ia).call(this)}render(){return a`<slot @slotchange="${u(this,_a,"m",Ia)}"></slot>`}};Ta=new WeakMap,Da=new WeakMap,Ha=new WeakMap,_a=new WeakSet,Pa=function(e){return!/^\s*$/.test(e.data)},Oa=function e(t,s){t instanceof HTMLSlotElement?t.assignedNodes({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:u(this,_a,"m",Pa).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:u(this,_a,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:u(this,_a,"m",Pa).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:u(this,_a,"m",e).call(this,t,s)}})},Ia=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(u(this,Ta,"f")),u(this,Da,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...u(this,Da,"f")],bubbles:!1,composed:!1}));const e=new Array;if(u(this,_a,"m",Oa).call(this,this,e),e.length>0){const t=this.caseSensitive?this.term:this.term.toLowerCase();switch(this.mode){case"starts-with":{const s=e[0];if(((this.caseSensitive?s.textContent:s.textContent?.toLowerCase())??"").startsWith(t)){const e=new Range;e.setStart(s,0),e.setEnd(s,t.length),u(this,Da,"f").push(e)}}break;case"ends-with":{const s=e[e.length-1],i=(this.caseSensitive?s.textContent:s.textContent?.toLowerCase())??"";if(i.endsWith(t)){const e=i.length-t.length,a=e+t.length,r=new Range;r.setStart(s,e),r.setEnd(s,a),u(this,Da,"f").push(r)}}break;case"contains":f(this,Da,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let a=0;for(;a<s.length;){const e=s.indexOf(t,a);if(-1===e)break;i.push(e),a=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f")}u(this,Da,"f").length>0&&CSS.highlights.set(u(this,Ta,"f"),new Highlight(...u(this,Da,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...u(this,Da,"f")],bubbles:!1,composed:!1}))},Va.styles=r`:host { display: contents; }`,Va.__nextId=0,m([d({type:Boolean,reflect:!0})],Va.prototype,"disabled",void 0),m([d()],Va.prototype,"term",void 0),m([d({attribute:"case-sensitive",type:Boolean})],Va.prototype,"caseSensitive",void 0),m([d()],Va.prototype,"mode",void 0),Va=Ba=m([ut("m3e-text-highlight")],Va);let Na=class extends n{render(){return a`<span class="base"><slot></slot></span>`}};Na.styles=r`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Na=m([ut("m3e-text-overflow")],Na);export{Si as ActionElementBase,Pe as AnimationLoopController,Vt as AttachInternals,Xt as Checked,Gt as CheckedIndeterminate,js as ConstraintValidation,$s as DesignToken,is as Dirty,Ss as Disabled,Ws as DisabledInteractive,Xs as EventAttribute,ot as FocusController,Gs as Focusable,Vs as FormAssociated,Qs as FormSubmitter,lt as HoverController,si as HtmlFor,ct as IntersectionController,ii as KeyboardClick,Ts as Labelled,oi as LinkButton,dt as LongPressController,Ci as M3eCollapsibleElement,Ni as M3eElevationElement,Ji as M3eFocusRingElement,ea as M3ePseudoCheckboxElement,ta as M3ePseudoRadioElement,ma as M3eRippleElement,fa as M3eScrollContainerElement,xa as M3eSlideElement,Aa as M3eStateLayerElement,Va as M3eTextHighlightElement,Na as M3eTextOverflowElement,ht as MutationController,pt as PressedController,ci as ReadOnly,hi as Required,mi as RequiredConstraintValidation,mt as ResizeController,ui as Role,Wt as ScrollController,Ft as ScrollLockController,Kt as Selected,ns as Touched,nt as VelocityTracker,vi as Vertical,Rt as addCustomState,es as checkOrSelect,Ie as computeCssSize,Be as computeLineCount,ut as customElement,ft as debounce,Hs as defaultValue,Ut as deleteCustomState,Ve as focusWhenReady,Ne as forcedColorsActive,Ds as formValue,Ke as generateClipPaths,Qe as getTextContent,Je as guid,et as hasAssignedNodes,Nt as hasCustomState,Ht as hasKeys,tt as interceptProperty,Pt as internals,Ot as isAttachInternalsMixin,Yt as isCheckedIndeterminateMixin,jt as isCheckedMixin,Jt as isCheckedOrSelected,Qt as isCheckedOrSelectedMixin,Rs as isConstraintValidationMixin,ts as isDirtyMixin,Cs as isDisabledInteractiveMixin,Es as isDisabledMixin,Ps as isFormAssociatedMixin,Zs as isFormSubmitterMixin,Js as isHtmlForMixin,As as isLabelledMixin,ri as isLinkButtonMixin,li as isReadOnlyMixin,pi as isRequiredConstraintValidationMixin,di as isRequiredMixin,Zt as isSelectedMixin,as as isTouchedMixin,fi as isVerticalMixin,st as prefersReducedMotion,ai as renderPseudoLink,it as resolveElementById,at as resolveFragmentUrl,Dt as safeStyleMap,rt as scrollIntoViewIfNeeded,qt as setCustomState,At as spaceSeparatedStringConverter,Fs as updateLabels,Ns as validate};
6
+ import{__classPrivateFieldGet as e,__classPrivateFieldSet as t,__decorate as s}from"tslib";import{isServer as i,nothing as a,noChange as n,unsafeCSS as r,html as o,css as l,LitElement as c}from"lit";import{directive as d,Directive as h,PartType as p}from"lit/directive.js";import{property as m,query as u}from"lit/decorators.js";import{ifDefined as f}from"lit/directives/if-defined.js";var v,y,g,b,x,w,k,$,E,S,C,z,L,M,W,F,A,_,D,T,H,P,I,O,B,V,N,R,q,U,j,X,Y,G,Z,K,Q,J,ee,te,se,ie,ae,ne,re,oe,le,ce,de,he,pe,me,ue,fe,ve,ye,ge,be,xe,we,ke,$e,Ee,Se,Ce,ze,Le,Me,We,Fe,Ae,_e,De,Te,He;class Pe{constructor(s,i){v.set(this,null),y.set(this,0),g.set(this,!1),b.set(this,void 0),x.set(this,()=>{if(!e(this,g,"f"))return;const s=performance.now();e(this,b,"f").call(this,(s-e(this,y,"f"))/1e3,s/1e3),t(this,y,s,"f"),t(this,v,requestAnimationFrame(e(this,x,"f")),"f")}),t(this,b,i,"f"),s.addController(this)}hostDisconnected(){this.stop()}start(){e(this,g,"f")||(t(this,g,!0,"f"),t(this,y,performance.now(),"f"),e(this,x,"f").call(this))}stop(){e(this,g,"f")&&(t(this,g,!1,"f"),null!==e(this,v,"f")&&(cancelAnimationFrame(e(this,v,"f")),t(this,v,null,"f")))}}v=new WeakMap,y=new WeakMap,g=new WeakMap,b=new WeakMap,x=new WeakMap;class Ie{constructor(s,i){w.set(this,void 0),k.set(this,void 0),$.set(this,new Set),t(this,w,s,"f"),t(this,k,i.target,"f"),e(this,w,"f").addController(this)}get targets(){return e(this,$,"f").values()}hostConnected(){null!==e(this,k,"f")&&this.observe(e(this,k,"f")??e(this,w,"f"))}hostDisconnected(){e(this,$,"f").forEach(e=>this.unobserve(e)),e(this,$,"f").clear()}observe(t){e(this,$,"f").has(t)||(e(this,$,"f").add(t),this._observe(t))}isObserving(t){return e(this,$,"f").has(t)}unobserve(t){e(this,$,"f").delete(t)&&this._unobserve(t)}}function Oe(e,t){if(!t)return 0;const s=document.createElement("div");s.style.all="inherit",s.style.width=t,s.style.position="absolute",s.style.visibility="hidden",s.style.pointerEvents="none",e.appendChild(s);try{return parseFloat(getComputedStyle(s).width)}finally{s.remove()}}function Be(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Ve(e,t=200){function s(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const i=performance.now();for(;!s(e);){if(!e.isConnected||performance.now()-i>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Ne(){return!i&&matchMedia("(forced-colors: active)").matches}function Re(e,t,s){return e+(t-e)*s}function qe(e,t,s,i){return{x:Math.pow(1-i,2)*e.x+2*(1-i)*i*t.x+Math.pow(i,2)*s.x,y:Math.pow(1-i,2)*e.y+2*(1-i)*i*t.y+Math.pow(i,2)*s.y}}function Ue(e,t,s,i,a){return{x:Math.pow(1-a,3)*e.x+3*Math.pow(1-a,2)*a*t.x+3*(1-a)*Math.pow(a,2)*s.x+Math.pow(a,3)*i.x,y:Math.pow(1-a,3)*e.y+3*Math.pow(1-a,2)*a*t.y+3*(1-a)*Math.pow(a,2)*s.y+Math.pow(a,3)*i.y}}function je(e,t){const s=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let i={x:0,y:0},a={x:0,y:0};const n=[];for(const e of s)if("M"===e.type)i={x:e.nums[0],y:e.nums[1]},a=i;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},s=t.x-i.x,a=t.y-i.y;n.push({type:"L",pts:[i,t],length:Math.hypot(s,a)}),i=t}else if("H"===e.type){const t={x:e.nums[0],y:i.y},s=t.x-i.x;n.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("V"===e.type){const t={x:i.x,y:e.nums[0]},s=t.y-i.y;n.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]};let a=0,r=i;const o=20;for(let e=1;e<=o;e++){const n=qe(i,t,s,e/o);a+=Math.hypot(n.x-r.x,n.y-r.y),r=n}n.push({type:"Q",pts:[i,t,s],length:a}),i=s}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]},a={x:e.nums[4],y:e.nums[5]};let r=0,o=i;const l=20;for(let e=1;e<=l;e++){const n=Ue(i,t,s,a,e/l);r+=Math.hypot(n.x-o.x,n.y-o.y),o=n}n.push({type:"C",pts:[i,t,s,a],length:r}),i=a}else if("Z"===e.type){const e=a.x-i.x,t=a.y-i.y;n.push({type:"L",pts:[i,a],length:Math.hypot(e,t)}),i=a}const r=n.reduce((e,t)=>e+t.length,0)/(t-1),o=[];let l=0,c=0;for(let e=0;e<t;e++){const t=e*r;for(;c<n.length&&l+n[c].length<t;)l+=n[c].length,c++;const s=n[c];if(!s)break;const i=(t-l)/s.length;if("L"===s.type){const[e,t]=s.pts;o.push({x:Re(e.x,t.x,i),y:Re(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,a]=s.pts;o.push(qe(e,t,a,i))}else if("C"===s.type){const[e,t,a,n]=s.pts;o.push(Ue(e,t,a,n,i))}}return o}function Xe(e,t,s){return Math.max(t,Math.min(s,e))}function Ye(e,t){const s=e.length,i=new Array(s);for(let a=0;a<s;a++)i[a]=e[(a+t)%s];return i}function Ge(e,t){const s=Math.min(t.length,e.length);let i=0,a=1/0;for(let n=0;n<s;n++){let r=0;for(let i=0;i<s;i++){const o=t[(i+n)%s],l=e[i],c=o.x-l.x,d=o.y-l.y;if(r+=c*c+d*d,r>=a)break}r<a&&(a=r,i=n)}return i}function Ze(e){let t=0;const s=e.length;for(let i=0;i<s;i++){const a=e[i],n=e[(i+1)%s];t+=a.x*n.y-n.x*a.y}return t/2}function Ke(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,s=1/0,i=-1/0,a=-1/0;for(const n of e)n.x<t&&(t=n.x),n.x>i&&(i=n.x),n.y<s&&(s=n.y),n.y>a&&(a=n.y);return{minX:t,minY:s,maxX:i,maxY:a,width:i-t,height:a-s}}(e),s=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),i=Math.max(t.width,t.height)||1,a=s.map(e=>({x:e.x/i,y:e.y/i})),n=t.width/i,r=t.height/i,o=(1-n)/2,l=(1-r)/2;return a.map(e=>({x:e.x+o,y:e.y+l}))}),s=t[0],i=Math.sign(Ze(s));for(let e=1;e<t.length;e++){let a=t[e];const n=Math.sign(Ze(a));0!==n&&n!==i&&(a=a.slice().reverse());const r=Ge(s,a);t[e]=Ye(a,r)}return t}(e.map(e=>je(e,t))).map(e=>`${e.map(e=>{const t=Xe(100*e.x,0,100),s=Xe(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`}).join(", ")}`)}function Qe(e,t=!1){let s="";switch(e.nodeType){case Node.TEXT_NODE:s=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const i of e.assignedNodes({flatten:!0}))s+=Qe(i,t);else for(const i of e.childNodes)s+=Qe(i,t)}return t&&(s=s.trim()),s}function Je(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function et(e){return e.assignedNodes({flatten:!0}).length>0}function tt(e,t,s){const i=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!i)throw new Error(`Property ${String(t)} not found on target.`);const a=i.get?.bind(e),n=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>a?.()):a?.(),set(e){s.set?s.set(e,e=>n?.(e)):n?.(e)}}),()=>Object.defineProperty(e,t,i)}function st(){return i||matchMedia("(prefers-reduced-motion)").matches}function it(e,t=document){return new Promise(s=>{const i=t.querySelector(`#${e}`);i?s(i):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>s(t.querySelector(`#${e}`)),{once:!0}):s(t.querySelector(`#${e}`))})}function at(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function nt(e,t,s){const i=t.getBoundingClientRect(),a=e.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&e.scrollIntoView(s)}w=new WeakMap,k=new WeakMap,$=new WeakMap;class rt{constructor(e=100){E.set(this,[]),S.set(this,void 0),t(this,S,e,"f")}add(t,s=performance.now()){e(this,E,"f").push({y:t,t:s});const i=s-e(this,S,"f");for(;e(this,E,"f").length>1&&e(this,E,"f")[0].t<i;)e(this,E,"f").shift()}getVelocity(){if(e(this,E,"f").length<2)return 0;const t=e(this,E,"f")[0],s=e(this,E,"f")[e(this,E,"f").length-1],i=s.y-t.y,a=(s.t-t.t)/1e3;return a>0?i/a:0}reset(){e(this,E,"f").length=0}}E=new WeakMap,S=new WeakMap;class ot extends Ie{constructor(s,i){super(s,i),C.add(this),z.set(this,!1),L.set(this,void 0),M.set(this,t=>e(this,C,"m",P).call(this,t)),W.set(this,t=>e(this,C,"m",I).call(this,t)),F.set(this,t=>e(this,C,"m",O).call(this,t)),A.set(this,()=>t(this,z,!0,"f")),_.set(this,()=>t(this,z,!1,"f")),D.set(this,!1),T.set(this,()=>t(this,D,!0,"f")),H.set(this,()=>t(this,D,!1,"f")),t(this,L,i.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",e(this,T,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",e(this,H,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",e(this,T,"f"),{capture:!0}),window?.removeEventListener("pointerdown",e(this,H,"f"),{capture:!0})}_observe(t){t.addEventListener("keydown",e(this,M,"f")),t.addEventListener("focusin",e(this,W,"f")),t.addEventListener("focusout",e(this,F,"f")),t.addEventListener("touchstart",e(this,A,"f")),t.addEventListener("touchend",e(this,_,"f")),t.addEventListener("touchcancel",e(this,_,"f"))}_unobserve(t){t.removeEventListener("keydown",e(this,M,"f")),t.removeEventListener("focusin",e(this,W,"f")),t.removeEventListener("focusout",e(this,F,"f")),t.removeEventListener("touchstart",e(this,A,"f")),t.removeEventListener("touchend",e(this,_,"f")),t.removeEventListener("touchcancel",e(this,_,"f"))}}z=new WeakMap,L=new WeakMap,M=new WeakMap,W=new WeakMap,F=new WeakMap,A=new WeakMap,_=new WeakMap,D=new WeakMap,T=new WeakMap,H=new WeakMap,C=new WeakSet,P=function(t){t.currentTarget.matches(":focus-within")&&e(this,C,"m",I).call(this,t)},I=function(t){if(e(this,z,"f"))return;const s=t.currentTarget;e(this,L,"f").call(this,!0,s.matches(":focus-visible")||e(this,D,"f")||Ne(),s)},O=function(t){e(this,z,"f")||e(this,L,"f").call(this,!1,!1,t.currentTarget)};class lt extends Ie{constructor(s,i){super(s,i),B.add(this),V.set(this,void 0),N.set(this,new Map),R.set(this,new Map),q.set(this,t=>e(this,B,"m",G).call(this,t)),U.set(this,t=>e(this,B,"m",Z).call(this,t)),t(this,V,i.callback,"f"),this.startDelay=i.startDelay??0,this.endDelay=i.endDelay??0}clearDelays(){for(const t of this.targets)e(this,B,"m",j).call(this,t)}_observe(t){t.addEventListener("pointerenter",e(this,q,"f")),t.addEventListener("pointerleave",e(this,U,"f")),t.addEventListener("touchend",e(this,U,"f"))}_unobserve(t){t.removeEventListener("pointerenter",e(this,q,"f")),t.removeEventListener("pointerleave",e(this,U,"f")),t.removeEventListener("touchend",e(this,U,"f"))}}V=new WeakMap,N=new WeakMap,R=new WeakMap,q=new WeakMap,U=new WeakMap,B=new WeakSet,j=function(t){e(this,B,"m",X).call(this,t),e(this,B,"m",Y).call(this,t)},X=function(t){return!!e(this,N,"f").has(t)&&(clearTimeout(e(this,N,"f").get(t)),e(this,N,"f").delete(t))},Y=function(t){return!!e(this,R,"f").has(t)&&(clearTimeout(e(this,R,"f").get(t)),e(this,R,"f").delete(t))},G=function(t){const s=t.target;e(this,B,"m",Y).call(this,s),this.startDelay>0?(e(this,B,"m",X).call(this,s),e(this,N,"f").set(s,setTimeout(()=>{e(this,N,"f").delete(s),e(this,V,"f").call(this,!0,s)},this.startDelay))):e(this,V,"f").call(this,!0,s)},Z=function(t){const s=t.target;e(this,B,"m",X).call(this,s)||(this.endDelay>0?(e(this,B,"m",Y).call(this,s),e(this,R,"f").set(s,setTimeout(()=>{e(this,R,"f").delete(s),e(this,V,"f").call(this,!1,s)},this.endDelay))):e(this,V,"f").call(this,!1,s))};class ct extends Ie{constructor(s,a){super(s,a),K.set(this,void 0),Q.set(this,!1),J.set(this,void 0),ee.set(this,!0),t(this,K,a.callback,"f"),t(this,Q,a.skipInitial??!1,"f"),i||(window.IntersectionObserver?t(this,J,new IntersectionObserver((t,s)=>{e(this,K,"f").call(this,t,s)},a.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){e(this,J,"f")&&!e(this,Q,"f")&&e(this,ee,"f")&&e(this,K,"f").call(this,[],e(this,J,"f")),t(this,ee,!1,"f")}_observe(s){e(this,J,"f")?.observe(s),t(this,ee,!0,"f")}_unobserve(t){e(this,J,"f")?.unobserve(t)}}K=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap;class dt extends Ie{constructor(s,i){super(s,i),te.add(this),se.set(this,void 0),ie.set(this,void 0),ae.set(this,new Set),ne.set(this,new Map),re.set(this,t=>e(this,te,"m",le).call(this,t)),oe.set(this,t=>e(this,te,"m",ce).call(this,t)),t(this,se,i.callback,"f"),t(this,ie,i.threshold??500,"f")}_observe(t){t.addEventListener("touchstart",e(this,re,"f"),{passive:!0}),t.addEventListener("touchend",e(this,oe,"f")),t.addEventListener("touchcancel",e(this,oe,"f"))}_unobserve(t){t.removeEventListener("touchstart",e(this,re,"f")),t.removeEventListener("touchend",e(this,oe,"f")),t.removeEventListener("touchcancel",e(this,oe,"f"))}}se=new WeakMap,ie=new WeakMap,ae=new WeakMap,ne=new WeakMap,re=new WeakMap,oe=new WeakMap,te=new WeakSet,le=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const s=t.currentTarget;e(this,ne,"f").set(s,setTimeout(()=>{e(this,ae,"f").add(s),e(this,ne,"f").delete(s),e(this,se,"f").call(this,!0,s)},e(this,ie,"f")))}},ce=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const s=t.currentTarget;e(this,ae,"f").has(s)&&(e(this,se,"f").call(this,!1,s),e(this,ae,"f").delete(s)),e(this,ne,"f").has(s)&&(clearTimeout(e(this,ne,"f").get(s)),e(this,ne,"f").delete(s))}};class ht extends Ie{constructor(s,a){super(s,a),de.set(this,void 0),he.set(this,!1),pe.set(this,void 0),me.set(this,void 0),ue.set(this,!0),t(this,de,a.callback,"f"),t(this,he,a.skipInitial??!1,"f"),t(this,pe,a.config,"f"),i||(window.MutationObserver?t(this,me,new MutationObserver((t,s)=>e(this,de,"f").call(this,t,s)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(e(this,me,"f")&&!e(this,he,"f")&&e(this,ue,"f")){const t=e(this,me,"f").takeRecords();t.length>0&&e(this,de,"f").call(this,t,e(this,me,"f"))}t(this,ue,!1,"f")}hostDisconnected(){super.hostDisconnected(),e(this,me,"f")?.disconnect()}_observe(s){e(this,me,"f")?.observe(s,e(this,pe,"f")),t(this,ue,!0,"f")}_unobserve(){e(this,me,"f")?.disconnect();for(const t of this.targets)e(this,me,"f")?.observe(t,e(this,pe,"f"))}}de=new WeakMap,he=new WeakMap,pe=new WeakMap,me=new WeakMap,ue=new WeakMap;class pt extends Ie{constructor(s,i){super(s,i),fe.add(this),ve.set(this,void 0),ye.set(this,void 0),ge.set(this,void 0),be.set(this,new Map),xe.set(this,void 0),we.set(this,t=>e(this,fe,"m",Ce).call(this,t)),ke.set(this,t=>e(this,fe,"m",ze).call(this,t)),$e.set(this,t=>e(this,fe,"m",Le).call(this,t)),Ee.set(this,t=>e(this,fe,"m",Me).call(this,t)),Se.set(this,t=>e(this,fe,"m",We).call(this,t)),t(this,ve,i.capture,"f"),t(this,ye,i.callback,"f"),t(this,ge,i.isPressedKey,"f"),t(this,xe,i.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",e(this,ke,"f"),{capture:e(this,ve,"f")}),document.addEventListener("touchend",e(this,$e,"f"),{capture:e(this,ve,"f")}),document.addEventListener("touchcancel",e(this,$e,"f"),{capture:e(this,ve,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",e(this,ke,"f"),{capture:e(this,ve,"f")}),document.removeEventListener("touchend",e(this,$e,"f"),{capture:e(this,ve,"f")}),document.removeEventListener("touchcancel",e(this,$e,"f"),{capture:e(this,ve,"f")}),super.hostDisconnected(),e(this,be,"f").clear()}_observe(t){t.addEventListener("pointerdown",e(this,we,"f"),{capture:e(this,ve,"f")}),e(this,ge,"f")&&(t.addEventListener("keydown",e(this,Ee,"f"),{capture:e(this,ve,"f")}),t.addEventListener("keyup",e(this,Se,"f"),{capture:e(this,ve,"f")}))}_unobserve(t){t.removeEventListener("pointerdown",e(this,we,"f"),{capture:e(this,ve,"f")}),e(this,ge,"f")&&(t.removeEventListener("keydown",e(this,Ee,"f"),{capture:e(this,ve,"f")}),t.removeEventListener("keyup",e(this,Se,"f"),{capture:e(this,ve,"f")}))}}ve=new WeakMap,ye=new WeakMap,ge=new WeakMap,be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,$e=new WeakMap,Ee=new WeakMap,Se=new WeakMap,fe=new WeakSet,Ce=function(t){if(!("mouse"===t.pointerType&&t.button>1))for(const s of t.composedPath())if(s instanceof HTMLElement&&this.isObserving(s)){e(this,be,"f").has(s)||(e(this,be,"f").set(s,performance.now()),e(this,ye,"f").call(this,!0,{x:t.x,y:t.y},s));break}},ze=function(t){"mouse"===t.pointerType&&t.button>1||e(this,fe,"m",Fe).call(this,t.x,t.y)},Le=function(t){e(this,fe,"m",Fe).call(this,t.changedTouches[0]?.clientX??0,t.changedTouches[0]?.clientY??0)},Me=function(t){if(t.target!==t.currentTarget)return;const s=t.currentTarget;if(e(this,ge,"f")?.call(this,t.key)&&(" "===t.key&&t.preventDefault(),!e(this,be,"f").has(s))){e(this,be,"f").set(s,performance.now());const t=s.getBoundingClientRect();e(this,ye,"f").call(this,!0,{x:t.x+t.width/2,y:t.y+t.height/2},s)}},We=function(t){const s=t.target;if(e(this,be,"f").has(s)&&e(this,ge,"f")?.call(this,t.key)){const t=e(this,xe,"f")-(performance.now()-e(this,be,"f").get(s)),i=s.getBoundingClientRect();t>0?setTimeout(()=>{e(this,be,"f").delete(s),e(this,ye,"f").call(this,!1,{x:i.x+i.width/2,y:i.y+i.height/2},s)},t):(e(this,be,"f").delete(s),e(this,ye,"f").call(this,!1,{x:i.x+i.width/2,y:i.y+i.height/2},s))}},Fe=function(t,s){for(const i of e(this,be,"f")){const a=e(this,xe,"f")-(performance.now()-i[1]);a>0?setTimeout(()=>{e(this,be,"f").delete(i[0]),e(this,ye,"f").call(this,!1,{x:t,y:s},i[0])},a):(e(this,be,"f").delete(i[0]),e(this,ye,"f").call(this,!1,{x:t,y:s},i[0]))}};class mt extends Ie{constructor(s,a){super(s,a),Ae.set(this,void 0),_e.set(this,void 0),De.set(this,void 0),Te.set(this,void 0),He.set(this,!0),t(this,Ae,a.callback,"f"),t(this,_e,a.skipInitial??!1,"f"),t(this,De,a.config,"f"),i||(window.ResizeObserver?t(this,Te,new ResizeObserver((t,s)=>e(this,Ae,"f").call(this,t,s)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){e(this,Te,"f")&&!e(this,_e,"f")&&e(this,He,"f")&&e(this,Ae,"f").call(this,[],e(this,Te,"f")),t(this,He,!1,"f")}_observe(s){e(this,Te,"f")?.observe(s,e(this,De,"f")),t(this,He,!0,"f")}_unobserve(t){e(this,Te,"f")?.unobserve(t)}}Ae=new WeakMap,_e=new WeakMap,De=new WeakMap,Te=new WeakMap,He=new WeakMap;const ut=e=>(t,s)=>{const i=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};s?s.addInitializer(i):i()};function ft(e){const t=Symbol("_id");return(s,i,a)=>{const n=a.value;return a.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>n.apply(this,s),e)},a}}var vt,yt,gt,bt,xt,wt,kt,$t,Et,St,Ct,zt,Lt,Mt;class Wt extends Ie{constructor(s,i){super(s,i),vt.add(this),yt.set(this,void 0),gt.set(this,void 0),bt.set(this,t=>e(this,vt,"m",kt).call(this,t)),xt.set(this,new Map),t(this,yt,!0===i.debounce,"f"),t(this,gt,i.callback,"f")}getScrollContainers(t){return e(this,xt,"f").get(t)}_observe(t){const s=e(this,vt,"m",wt).call(this,t);if(s.length>0){e(this,xt,"f").set(t,s);for(const t of s)(t===document.documentElement?document:t).addEventListener("scroll",e(this,bt,"f"),{passive:!0})}}_unobserve(t){if(e(this,xt,"f").has(t)){for(const s of e(this,xt,"f").get(t))(s===document.documentElement?document:s).removeEventListener("scroll",e(this,bt,"f"));e(this,xt,"f").delete(t)}}_debounceCallback(t){e(this,gt,"f").call(this,t)}}yt=new WeakMap,gt=new WeakMap,bt=new WeakMap,xt=new WeakMap,vt=new WeakSet,wt=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},kt=function(t){const s=t.target===document?document.documentElement:t.target;e(this,yt,"f")?this._debounceCallback(s):e(this,gt,"f").call(this,s)},s([ft(40)],Wt.prototype,"_debounceCallback",null);class Ft{constructor(e){$t.add(this),Et.set(this,!1),St.set(this,0),Ct.set(this,0),zt.set(this,""),Lt.set(this,""),e.addController(this)}lock(){e(this,Et,"f")||(t(this,Et,!0,"f"),t(this,St,window.scrollY,"f"),t(this,Ct,window.scrollX,"f"),t(this,zt,document.documentElement.style.overflow,"f"),t(this,Lt,document.documentElement.style.scrollbarGutter,"f"),e(this,$t,"m",Mt).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(e(this,Ct,"f"),e(this,St,"f")))}unlock(){e(this,Et,"f")&&(t(this,Et,!1,"f"),document.documentElement.style.overflow=e(this,zt,"f"),document.documentElement.style.scrollbarGutter=e(this,Lt,"f"),window.scrollTo(e(this,Ct,"f"),e(this,St,"f")))}hostDisconnected(){this.unlock()}}Et=new WeakMap,St=new WeakMap,Ct=new WeakMap,zt=new WeakMap,Lt=new WeakMap,$t=new WeakSet,Mt=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const At={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},_t="important",Dt=" !"+_t;const Tt=d(class extends h{constructor(e){if(super(e),e.type!==p.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return a}update(e,[t]){const{style:s}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?s.removeProperty(e):s[e]=null);for(const e in t){const i=t[e];if(null!=i){this._previousStyleProperties.add(e);const t="string"==typeof i&&i.endsWith(Dt);e.includes("-")||t?s.setProperty(e,t?i.slice(0,-11):i,t?_t:""):s[e]=i}}return n}});function Ht(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Pt=Symbol("internals");function It(e){return Ht(e,Pt)}const Ot=Symbol("_internals"),Bt=Symbol("_customState");function Vt(e,t){var s;class i extends e{constructor(){super(...arguments),this[s]=new Set}get[(s=Bt,Pt)](){return this[Ot]??(this[Ot]=this.attachInternals())}}return i.formAssociated=t,i}function Nt(e,t){return Bt in e?e[Bt].has(t):e[Pt].states.has(t)}function Rt(e,t){Bt in e&&e[Bt].add(t),e[Pt]?.states.add(t),e[Pt]?.states.has(t)}function qt(e,t){return Bt in e&&e[Bt].delete(t),!!e[Pt]?.states.delete(t)&&(e[Pt]?.states.has(t),!0)}function Ut(e,t,s){s?Rt(e,t):qt(e,t)}function jt(e){return Ht(e,"checked")}function Xt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return s([m({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Yt(e){return Ht(e,"indeterminate")&&jt(e)}function Gt(e){class t extends(Xt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return s([m({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function Zt(e){return Ht(e,"selected")}function Kt(e){class t extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return s([m({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function Qt(e){return jt(e)||Zt(e)}function Jt(e){return jt(e)&&e.checked||Zt(e)&&e.selected}function es(e,t){jt(e)?e.checked=t:e.selected=t}function ts(e){return Ht(e,"dirty","pristine","markAsDirty","markAsPristine")}const ss=Symbol("_eventHandler");function is(e){var t;return t=ss,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Nt(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[ss])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[ss])}markAsPristine(){qt(this,"-dirty")}markAsDirty(){Rt(this,"-dirty")}}}function as(e){return Ht(e,"touched","untouched","markAsTouched","markAsUntouched")}const ns=Symbol("_eventHandler");function rs(e){var t;return t=ns,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Nt(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[ns],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[ns],{capture:!0})}markAsTouched(){Rt(this,"-touched")}markAsUntouched(){qt(this,"-touched")}}}const os={primary:r("var(--md-sys-color-primary, #6750A4)"),onPrimary:r("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:r("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:r("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:r("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:r("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:r("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:r("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:r("var(--md-sys-color-secondary, #625B71)"),onSecondary:r("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:r("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:r("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:r("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:r("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:r("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:r("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:r("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:r("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:r("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:r("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:r("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:r("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:r("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:r("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:r("var(--md-sys-color-error, #B3261E)"),onError:r("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:r("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:r("var(--md-sys-color-on-error-container, #8C1D18)"),surface:r("var(--md-sys-color-surface, #FEF7FF)"),onSurface:r("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:r("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:r("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:r("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:r("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:r("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:r("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:r("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:r("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:r("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:r("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:r("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:r("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:r("var(--md-sys-color-outline, #79747E)"),outlineVariant:r("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:r("var(--md-sys-color-shadow, #000000)"),scrim:r("var(--md-sys-color-scrim, #000000)")},ls={scale:r("var(--md-sys-density-scale, 0)"),size:r("var(--md-sys-density-size, 0.25rem)")},cs={...ls,calc:e=>r(`calc(max(${e}, ${ls.scale}) * ${ls.size})`)},ds=`color-mix(in srgb, var(--m3e-elevation-color, ${os.shadow}) 20%, transparent)`,hs=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],ps=`color-mix(in srgb, var(--m3e-elevation-color, ${os.shadow}) 14%, transparent)`,ms=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],us=`color-mix(in srgb, var(--m3e-elevation-color, ${os.shadow}) 12%, transparent)`,fs=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function vs(e){return`${ds} ${hs[e]},${ps} ${ms[e]},${us} ${fs[e]}`}const ys={level0:r(`var(--md-sys-elevation-level0, ${vs(0)})`),level1:r(`var(--md-sys-elevation-level1, ${vs(1)})`),level2:r(`var(--md-sys-elevation-level2, ${vs(3)})`),level3:r(`var(--md-sys-elevation-level3, ${vs(6)})`),level4:r(`var(--md-sys-elevation-level4, ${vs(8)})`),level5:r(`var(--md-sys-elevation-level5, ${vs(12)})`)},gs={emphasized:r("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:r("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:r("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:r("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:r("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:r("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},bs={fastSpatial:r("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:r("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:r("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:r("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:r("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:r("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},xs={easing:gs,duration:{short1:r("var(--md-sys-motion-duration-short-1, 50ms)"),short2:r("var(--md-sys-motion-duration-short-2, 100ms)"),short3:r("var(--md-sys-motion-duration-short-3, 150ms)"),short4:r("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:r("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:r("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:r("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:r("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:r("var(--md-sys-motion-duration-long-1, 450ms)"),long2:r("var(--md-sys-motion-duration-long-2, 500ms)"),long3:r("var(--md-sys-motion-duration-long-3, 550ms)"),long4:r("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:r("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:r("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:r("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:r("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:bs},ws={width:r("var(--m3e-scrollbar-width, auto)"),thinWidth:r("var(--m3e-scrollbar-thin-width, thin)"),color:r("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},ks={none:r("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:r("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:r("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:r("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:r("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:r("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:r("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:r("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:r("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},$s={color:os,elevation:ys,motion:xs,shape:{corner:{full:r("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:r(`var(--md-sys-shape-corner-extra-large-top, ${ks.extraLarge} ${ks.extraLarge} ${ks.none} ${ks.none})`),extraLarge:r(`var(--md-sys-shape-corner-extra-large, ${ks.extraLarge})`),extraLargeEnd:r(`${ks.none} ${ks.extraLarge} ${ks.extraLarge} ${ks.none}`),extraLargeStart:r(`${ks.extraLarge} ${ks.none} ${ks.none} ${ks.extraLarge}`),largeTop:r(`var(--md-sys-shape-corner-large-top, ${ks.large} ${ks.large} ${ks.none} ${ks.none})`),largeEnd:r(`var(--md-sys-shape-corner-large-end, ${ks.none} ${ks.large} ${ks.large} ${ks.none})`),largeStart:r(`var(--md-sys-shape-corner-large-end, ${ks.large} ${ks.none} ${ks.none} ${ks.large})`),large:r(`var(--md-sys-shape-corner-large, ${ks.large})`),medium:r(`var(--md-sys-shape-corner-medium, ${ks.medium})`),mediumTop:r(`${ks.medium} ${ks.medium} ${ks.none} ${ks.none}`),mediumEnd:r(`${ks.none} ${ks.medium} ${ks.medium} ${ks.none}`),mediumStart:r(`${ks.medium} ${ks.none} ${ks.none} ${ks.medium}`),small:r(`var(--md-sys-shape-corner-small, ${ks.small})`),smallTop:r(`${ks.small} ${ks.small} ${ks.none} ${ks.none}`),smallEnd:r(`${ks.none} ${ks.small} ${ks.small} ${ks.none}`),smallStart:r(`${ks.small} ${ks.none} ${ks.none} ${ks.small}`),extraSmallTop:r(`var(--md-sys-shape-corner-extra-small-top, ${ks.extraSmall} ${ks.extraSmall} ${ks.none} ${ks.none})`),extraSmall:r(`var(--md-sys-shape-corner-extra-small, ${ks.extraSmall})`),extraSmallEnd:r(`${ks.none} ${ks.extraSmall} ${ks.extraSmall} ${ks.none}`),extraSmallStart:r(`${ks.extraSmall} ${ks.none} ${ks.none} ${ks.extraSmall}`),extraSmallBottom:r(`${ks.none} ${ks.none} ${ks.extraSmall} ${ks.extraSmall}`),none:r(`var(--md-sys-shape-corner-none, ${ks.none})`),largeIncreased:r(`var(--md-sys-shape-corner-large-increased, ${ks.largeIncreased})`),extraLargeIncreased:r(`var(--md-sys-shape-corner-extra-large-increased, ${ks.extraLargeIncreased})`),extraExtraLarge:r(`var(--md-sys-shape-corner-extra-extra-large, ${ks.extraExtraLarge})`),value:ks}},state:{focusStateLayerOpacity:r("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:r("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:r("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:r("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:r("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:r("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:r("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:r("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:r("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:r("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:r("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:r("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:r("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:r("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:r("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:r("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:r("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:r("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:r("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:r("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:r("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:r("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:r("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:r("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:r("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:r("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:r("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:r("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:r("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:r("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:r("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:r("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:r("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:r("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:r("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:r("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:r("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:r("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:r("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:r("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:r("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:r("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:r("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:r("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:r("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:r("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:r("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:r("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:r("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:r("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:r("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:r("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:r("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:r("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:r("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:r("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:r("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:r("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:r("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:r("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:r("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:r("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:r("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:r("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:r("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:r("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:r("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:r("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:r("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:r("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:r("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:r("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:r("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:r("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:r("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:r("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:r("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:r("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:r("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:r("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:r("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:r("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:r("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:r("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:r("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:r("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:ws,density:cs};function Es(e){return Ht(e,"disabled")}function Ss(e,t=!0){class i extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return s([m({type:Boolean,reflect:t})],i.prototype,"disabled",void 0),i}function Cs(e){return Ht(e,"disabledInteractive")&&Es(e)}const zs=["click","dblclick","auxclick","keydown","keyup"],Ls=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Ms=Symbol("_suppressedEventHandler");function Ws(e){var t;class i extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ls.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){zs.forEach(e=>this.addEventListener(e,this[Ms],!0)),super.connectedCallback()}disconnectedCallback(){zs.forEach(e=>this.removeEventListener(e,this[Ms],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=Ms,s([m({attribute:"disabled-interactive",type:Boolean,reflect:!0})],i.prototype,"disabledInteractive",void 0),i}const Fs=Symbol("updateLabels");function As(e){return Ht(e,"labels")&&It(e)}const _s=Symbol("_eventHandler");function Ds(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Fs]()}}get labels(){return this[Pt].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[_s]),this.addEventListener("change",this[_s])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[_s]),this.removeEventListener("change",this[_s])}update(e){super.update(e),this[Fs]()}[(t=_s,Fs)](){const e=this.hasAttribute("tabindex"),t=Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive,s=as(this)&&this.touched&&(this.ariaInvalid||Nt(this,"-invalid"));for(const i of this.labels??[])i.style.userSelect=e?"none":"",i.style.cursor=!t&&e?"pointer":"",!t&&e?i.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):i.style.removeProperty("-webkit-tap-highlight-color"),i.style.color=t?`color-mix(in srgb, ${$s.color.onSurface} 38%, transparent)`:s?`${$s.color.error}`:""}}return s.formAssociated=!0,s}const Ts=Symbol("formValue"),Hs=Symbol("defaultValue");function Ps(e){return Ht(e,"disabled","form","name")&&As(e)&&It(e)}const Is=Symbol("_defaultValue"),Os=Symbol("_defaultIndeterminate"),Bs=Symbol("_formDisabled");function Vs(e){var t,i;class a extends e{constructor(){super(...arguments),this[t]=!1,this[i]=!1}get form(){return this[Pt].form}get labels(){return this[Pt].labels}get[(t=Os,i=Bs,Ts)](){return null}get[Hs](){return this[Is]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Bs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),jt(this)?(this[Is]=this.checked,Yt(this)&&(this[Os]=this.indeterminate)):"value"in this&&(this[Is]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Pt].setFormValue(this[Ts])}formDisabledCallback(e){const t=this.disabled;this[Bs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){jt(this)?(this.checked=!0===this[Is],Yt(this)&&(this.indeterminate=this[Os])):"value"in this&&(this.value=this[Hs]),ts(this)&&this.markAsPristine(),as(this)&&this.markAsUntouched()}}return a.formAssociated=!0,s([m({noAccessor:!0})],a.prototype,"name",null),s([m({type:Boolean})],a.prototype,"disabled",null),a}const Ns=Symbol("validate");function Rs(e){return Ht(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Ps(e)}const qs=Symbol("_updateValidity"),Us=Symbol("_validityMessage");function js(t){var s,a;class n extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Pt].willValidate}get validity(){return this[qs](),this[Pt].validity}get validationMessage(){return this[qs](),this[Pt].validationMessage}[(s=new WeakSet,Ns)](){return this[Us]?{customError:!0}:void 0}reportValidity(){return as(this)&&this.markAsTouched(),this[qs](),this[Pt].reportValidity()}checkValidity(){return this[qs](),this[Pt].checkValidity()}setCustomValidity(e){this[Us]=e||void 0,this[qs]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[qs]()}firstUpdated(e){super.firstUpdated(e),this[qs]()}[qs](){if(i||!this.isConnected)return;const t=this[Ns](),n=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[Us]:"";t&&!r&&(r=e(this,s,"m",a).call(this,t)),this[Pt].setValidity(t,r),this.ariaInvalid=n?"true":null,Ut(this,"-invalid",!0===n),As(this)&&this[Fs]?.()}}return a=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},n}function Xs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Ys=Symbol("_tabindex");function Gs(e){var t;return t=Ys,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Ys]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Ys]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Ys]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Ys]}`)}}}function Zs(e){return Ht(e,"name","type","value")&&It(e)}const Ks=Symbol("_clickHandler");function Qs(e){var t;class i extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive)return;const t=this[Pt].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[Pt].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Ks])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Ks])}}return t=Ks,i.formAssociated=!0,s([m()],i.prototype,"name",null),s([m()],i.prototype,"value",null),s([m()],i.prototype,"type",void 0),i}function Js(e){return Ht(e,"htmlFor","control","attach","detach")}const ei=Symbol("_control"),ti=Symbol("_firstUpdated");function si(e){var t;class i extends e{constructor(){super(...arguments),this[t]=!1,this.htmlFor=null}get control(){return this[ei]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[ei]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[ei];e&&(this.detach(),this[ei]=e)}firstUpdated(e){super.firstUpdated(e),this[ti]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&it(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[ti]&&this.detach()}attach(e){this[ei]=new WeakRef(e)}detach(){this[ei]=void 0}}return t=ti,s([m({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function ii(s,i=!0){var a,n,r,o,l,c,d;return n=new WeakMap,r=new WeakMap,o=new WeakMap,l=new WeakMap,a=new WeakSet,c=function(e){e.target!==e.currentTarget||Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive?t(this,n,!1,"f"):(" "===e.key||i&&"Enter"===e.key)&&t(this,n,!0,"f")},d=function(s){s.target!==s.currentTarget||Es(this)&&this.disabled||Cs(this)&&this.disabledInteractive||!e(this,n,"f")?t(this,n,!1,"f"):(t(this,n,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends s{constructor(){super(...arguments),a.add(this),n.set(this,!1),r.set(this,t=>e(this,a,"m",c).call(this,t)),o.set(this,t=>e(this,a,"m",d).call(this,t)),l.set(this,()=>t(this,n,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,r,"f")),this.addEventListener("keyup",e(this,o,"f")),this.addEventListener("focusout",e(this,l,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,r,"f")),this.removeEventListener("keyup",e(this,o,"f")),this.removeEventListener("focusout",e(this,l,"f"))}}}const ai=Symbol("renderPseudoLink");function ni(e){return Ht(e,"download","href","rel","target")}const ri=Symbol("_clickHandler");function oi(t){var i,n,r,l,c;class d extends t{constructor(){super(...arguments),i.add(this),this[c]=async e=>{if(Cs(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[ri]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ri])}[(i=new WeakSet,c=ri,ai)](){const t=Es(this)&&this.disabled,s=Cs(this)&&this.disabledInteractive;return t||s||!this.href?a:o`<a href="${this.href}" target="${f(this.target||void 0)}" rel="${f(this.rel||void 0)}" download="${f(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${e(this,i,"m",n)}" @focus="${e(this,i,"m",r)}" @blur="${e(this,i,"m",l)}"></a>`}}return n=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},l=function(e){e.target.setAttribute("aria-hidden","true")},s([m()],d.prototype,"href",void 0),s([m()],d.prototype,"target",void 0),s([m()],d.prototype,"rel",void 0),s([m({reflect:!1})],d.prototype,"download",null),d}function li(e){return Ht(e,"readOnly")}function ci(e,t=!0){class i extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return s([m({attribute:"readonly",type:Boolean,reflect:t})],i.prototype,"readOnly",void 0),i}const di=Symbol("_wasConnected");function hi(e){var t;return t=di,class extends e{constructor(){super(...arguments),this[t]=!1}reconnectedCallback(){}connectedCallback(){super.connectedCallback(),this[di]&&this.reconnectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this[di]=!0}}}function pi(e){return Ht(e,"required","optional")}function mi(e){class t extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return s([m({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function ui(e){return pi(e)&&Rs(e)}function fi(e){return class extends e{[Ns](){const e=super[Ns]();if(!e&&this.required){if(jt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function vi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function yi(e){return class extends e{connectedCallback(){super.connectedCallback(),Rt(this,"-no-animate"),requestAnimationFrame(()=>qt(this,"-no-animate"))}}}function gi(e){return Ht(e,"vertical")}function bi(e){class t extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return s([m({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var xi,wi,ki,$i,Ei,Si,Ci,zi;class Li extends c{constructor(){super(...arguments),xi.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",e(this,xi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",e(this,xi,"f"))}render(){return o`<slot></slot>`}}xi=new WeakMap,Li.styles=l`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let Mi=class extends(Xs(Vt(c),"opening","opened","closing","closed")){constructor(){super(...arguments),wi.add(this),ki.set(this,!1),$i.set(this,!1),this.open=!1}update(s){if(super.update(s),Rt(this,"-no-animate"),!e(this,ki,"f"))return this.open&&(t(this,$i,!0,"f"),e(this,wi,"m",Si).call(this)),void t(this,ki,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(t(this,$i,!0,"f"),st()||(e(this,wi,"m",Si).call(this),Ut(this,"-overflows",this.clientHeight<this.scrollHeight),e(this,wi,"m",Ci).call(this)),qt(this,"-closing"),Rt(this,"-opening"),this.dispatchEvent(new Event("opening")),e(this,wi,"m",Ci).call(this),qt(this,"-no-animate"),e(this,wi,"m",zi).call(this),st()?(e(this,wi,"m",Si).call(this),qt(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(e(this,wi,"m",Si).call(this),qt(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(qt(this,"-opening"),Rt(this,"-closing"),this.dispatchEvent(new Event("closing")),e(this,wi,"m",zi).call(this),e(this,$i,"f")&&qt(this,"-no-animate"),st()?(e(this,wi,"m",Ci).call(this),qt(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{e(this,wi,"m",Ci).call(this),this.addEventListener("transitionend",()=>{this.open||(qt(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return o`<slot @slotchange="${e(this,wi,"m",Ei)}"></slot>`}};ki=new WeakMap,$i=new WeakMap,wi=new WeakSet,Ei=function(){t(this,ki,!0,"f")},Si=function(){this.style.height="auto"},Ci=function(){this.style.height=""},zi=function(){this.style.height=`${this.scrollHeight}px`},Mi.styles=l`:host { display: block; height: 0px; overflow: hidden; transition: ${r(`visibility var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${$s.motion.duration.medium1})\n ${$s.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,s([m({type:Boolean,reflect:!0})],Mi.prototype,"open",void 0),Mi=s([ut("m3e-collapsible")],Mi);const Wi=r(`var(--m3e-elevation-lift-duration, ${$s.motion.duration.short4})`),Fi=r(`var(--m3e-elevation-lift-easing, ${$s.motion.easing.standard})`),Ai=r(`var(--m3e-elevation-settle-duration, ${$s.motion.duration.short3})`),_i=r(`var(--m3e-elevation-settle-easing, ${$s.motion.easing.standardAccelerate})`),Di=r(`var(--m3e-elevation-level, ${$s.elevation.level0})`),Ti=r(`var(--m3e-elevation-hover-level, ${$s.elevation.level0})`),Hi=r(`var(--m3e-elevation-focus-level, ${$s.elevation.level0})`),Pi=r(`var(--m3e-elevation-pressed-level, ${$s.elevation.level0})`);var Ii,Oi,Bi,Vi,Ni,Ri,qi;let Ui=class extends(si(vi(c,"none"))){constructor(){super(...arguments),Ii.add(this),Oi.set(this,new lt(this,{target:null,callback:t=>e(this,Ii,"m",Ni).call(this,t)})),Bi.set(this,new ot(this,{target:null,callback:t=>e(this,Ii,"m",Ri).call(this,t)})),Vi.set(this,new pt(this,{target:null,callback:t=>e(this,Ii,"m",qi).call(this,t)})),this.disabled=!1,this.level=null}attach(t){super.attach(t),e(this,Oi,"f").observe(t),e(this,Bi,"f").observe(t),e(this,Vi,"f").observe(t)}detach(){this.control&&(e(this,Oi,"f").unobserve(this.control),e(this,Bi,"f").unobserve(this.control),e(this,Vi,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return o`<div class="shadow"></div>`}};Oi=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,Ii=new WeakSet,Ni=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Ri=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},qi=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Ui.styles=l`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${r(`box-shadow ${Ai} ${_i};`)}; } .shadow.hover { will-change: box-shadow; transition: ${r(`box-shadow ${Wi} ${Fi};`)}; } .shadow { box-shadow: ${Di}; } .shadow.focus { box-shadow: ${Hi}; } .shadow.hover { box-shadow: ${Ti}; } .shadow.pressed { box-shadow: ${Pi}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${$s.elevation.level0}; --m3e-elevation-hover-level: ${$s.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${$s.elevation.level1}; --m3e-elevation-hover-level: ${$s.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${$s.elevation.level2}; --m3e-elevation-hover-level: ${$s.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${$s.elevation.level3}; --m3e-elevation-hover-level: ${$s.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${$s.elevation.level4}; --m3e-elevation-hover-level: ${$s.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${$s.elevation.level5}; --m3e-elevation-hover-level: ${Di}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Di}; --m3e-elevation-pressed-level: ${Di}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,s([u(".shadow")],Ui.prototype,"_shadow",void 0),s([m({type:Boolean,reflect:!0})],Ui.prototype,"disabled",void 0),s([m({type:Number,reflect:!0})],Ui.prototype,"level",void 0),Ui=s([ut("m3e-elevation")],Ui);const ji=r(`var(--m3e-focus-ring-color, ${$s.color.secondary})`),Xi=r(`var(--m3e-focus-ring-duration, ${$s.motion.duration.long2})`),Yi=r("var(--m3e-focus-ring-thickness, 3px)"),Gi=r("var(--m3e-focus-ring-outward-offset, 2px)"),Zi=r("var(--m3e-focus-ring-inward-offset, 0px)"),Ki=r("var(--m3e-focus-ring-visibility, visible)"),Qi=r("var(--m3e-focus-ring-growth-factor, 2)");var Ji,ea,ta;let sa=class extends(si(vi(c,"none"))){constructor(){super(...arguments),Ji.add(this),ea.set(this,new ot(this,{target:null,callback:(t,s)=>e(this,Ji,"m",ta).call(this,s)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(t){super.attach(t),e(this,ea,"f").observe(t)}detach(){this.control&&e(this,ea,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return o`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};ea=new WeakMap,Ji=new WeakSet,ta=function(e){this.disabled||(e?this.show():this.hide())},sa.styles=l`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${ji}; outline-width: ${Yi}; visibility: ${Ki}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Gi}; } :host([inward]) .outline { outline-offset: calc(${Zi} - ${Yi}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Xi}; } :host([inward]) .outline.visible { animation: shrink-grow ${Xi}; } @keyframes grow-shrink { 50% { outline-width: calc(${Yi} * ${Qi}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Zi} - calc(${Yi} * ${Qi}) ); outline-width: calc(${Yi} * ${Qi}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,s([u(".outline")],sa.prototype,"_outline",void 0),s([m({type:Boolean,reflect:!0})],sa.prototype,"inward",void 0),s([m({type:Boolean,reflect:!0})],sa.prototype,"disabled",void 0),sa=s([ut("m3e-focus-ring")],sa);let ia=class extends(Gt(Ss(vi(c,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?o`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?o`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:a}};ia.styles=l`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${$s.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${$s.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${$s.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${$s.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${$s.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${$s.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,ia=s([ut("m3e-pseudo-checkbox")],ia);let aa=class extends(Xt(Ss(vi(c,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return o`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};aa.styles=l`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${$s.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${$s.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${$s.color.onSurface}) 38%, transparent); }`,aa=s([ut("m3e-pseudo-radio")],aa);const na=r(`var(--m3e-ripple-color, ${$s.color.onSurface})`),ra=r(`var(--m3e-ripple-opacity, ${$s.state.pressedStateLayerOpacity})`),oa=r(`var(--m3e-ripple-enter-duration, ${$s.motion.duration.long4})`),la=r(`var(--m3e-ripple-exit-duration, ${$s.motion.duration.short2})`),ca=r("var(--m3e-ripple-scale-factor, 2.5)");var da,ha,pa,ma,ua,fa;let va=class extends(si(vi(c,"none"))){constructor(){super(...arguments),da.add(this),ha.set(this,null),pa.set(this,new pt(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,{x:s,y:i})=>e(this,da,"m",fa).call(this,t,s,i)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==e(this,ha,"f")}show(s,i,a=!1){e(this,da,"m",ma).call(this);const n=this.getBoundingClientRect();this.centered&&(s=n.left+n.width/2,i=n.top+n.height/2);let r=this.radius;if(!r||isNaN(r)){const e=Math.max(Math.abs(s-n.left),Math.abs(s-n.right)),t=Math.max(Math.abs(i-n.top),Math.abs(i-n.bottom));r=Math.sqrt(e*e+t*t)}const o=s-n.left,l=i-n.top;t(this,ha,document.createElement("div"),"f"),e(this,ha,"f").classList.add("ripple"),a&&e(this,ha,"f").classList.add("persistent"),e(this,ha,"f").style.left=o-r+"px",e(this,ha,"f").style.top=l-r+"px",e(this,ha,"f").style.width=2*r+"px",e(this,ha,"f").style.height=2*r+"px",e(this,ha,"f").addEventListener("animationend",()=>e(this,da,"m",ua).call(this,a),{once:!0}),e(this,ha,"f").addEventListener("transitionend",()=>e(this,da,"m",ma).call(this),{once:!0}),this.shadowRoot?.appendChild(e(this,ha,"f"))}hide(){e(this,ha,"f")?.classList.add("exit")}attach(t){super.attach(t),e(this,pa,"f").observe(t)}detach(){this.control&&e(this,pa,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,da,"m",ma).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var ya;ha=new WeakMap,pa=new WeakMap,da=new WeakSet,ma=function(){e(this,ha,"f")?.remove(),t(this,ha,null,"f")},ua=function(t){t?e(this,ha,"f")?.classList.add("pressed"):this.hide()},fa=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},va.styles=l`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${$s.shape.corner.full}; background-color: color-mix(in srgb, ${na} ${ra}, transparent); will-change: background-color, opacity; animation: ripple ${oa} linear; } .ripple.persistent.pressed { transform: scale(${ca}); } .ripple.exit { transition: opacity ${la} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${ca}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${ca}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,s([m({type:Boolean,reflect:!0})],va.prototype,"disabled",void 0),s([m({type:Boolean,reflect:!0})],va.prototype,"centered",void 0),s([m({type:Boolean,reflect:!0})],va.prototype,"unbounded",void 0),s([m({type:Number})],va.prototype,"radius",void 0),va=s([ut("m3e-ripple")],va);let ga=class extends(Vt(c)){constructor(){super(...arguments),ya.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",e(this,ya,"f"))}update(t){super.update(t),t.has("dividers")&&(this.removeEventListener("scroll",e(this,ya,"f")),"none"!==this.dividers&&this.addEventListener("scroll",e(this,ya,"f"),{passive:!0}))}render(){return o`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;Ut(this,"-above",e),Ut(this,"-below",t)}};var ba,xa,wa,ka;ya=new WeakMap,ga.styles=l`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${$s.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${ji}; outline-width: ${Yi}; outline-offset: ${Gi}; } :host([thin]) { scrollbar-width: ${$s.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${$s.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${$s.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${$s.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Xi}; } @keyframes grow-shrink { 50% { outline-width: calc(${Yi} * ${Qi}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,s([m()],ga.prototype,"dividers",void 0),s([m({type:Boolean,reflect:!0})],ga.prototype,"thin",void 0),s([ft(40)],ga.prototype,"_updateScroll",null),ga=s([ut("m3e-scroll-container")],ga);let $a=class extends(Vt(c)){constructor(){super(...arguments),ba.add(this),xa.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Rt(this,"-no-animate")}update(t){super.update(t),t.has("selectedIndex")&&(null===this.selectedIndex&&Rt(this,"-no-animate"),e(this,ba,"m",ka).call(this),null!==this.selectedIndex&&Nt(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&qt(this,"-no-animate")}))}render(){return o`<slot @slotchange="${e(this,ba,"m",wa)}"></slot>`}};xa=new WeakMap,ba=new WeakSet,wa=function(s){const i=[...s.target.assignedElements({flatten:!0})];for(const t of e(this,xa,"f").filter(e=>!i.includes(e)))t.classList.remove("-before"),t.classList.remove("-after"),t.removeAttribute("inert");t(this,xa,i,"f"),e(this,ba,"m",ka).call(this)},ka=function(){const t=this.selectedIndex??e(this,xa,"f").length;for(let s=0;s<e(this,xa,"f").length;s++){const i=e(this,xa,"f")[s];i.classList.toggle("-before",s<t),i.classList.toggle("-after",s>t),i.toggleAttribute("inert",s!==t)}},$a.styles=l`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${r(`inset-inline-start var(--m3e-slide-animation-duration, ${$s.motion.duration.long2}) ${$s.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${$s.motion.duration.long2}) ${$s.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,s([m({attribute:"selected-index",type:Number,reflect:!0})],$a.prototype,"selectedIndex",void 0),$a=s([ut("m3e-slide")],$a);const Ea=r(`var(--m3e-state-layer-hover-color, ${$s.color.onSurface})`),Sa=r(`var(--m3e-state-layer-hover-opacity, ${$s.state.hoverStateLayerOpacity})`),Ca=r(`var(--m3e-state-layer-focus-color, ${$s.color.onSurface})`),za=r(`var(--m3e-state-layer-focus-opacity, ${$s.state.focusStateLayerOpacity})`),La=r(`var(--m3e-state-layer-duration, ${$s.motion.duration.medium1})`),Ma=r(`var(--m3e-state-layer-easing, ${$s.motion.easing.standard})`);var Wa,Fa,Aa,_a,Da;let Ta=class extends(si(vi(c,"none"))){constructor(){super(...arguments),Wa.add(this),Fa.set(this,new lt(this,{target:null,callback:t=>e(this,Wa,"m",_a).call(this,t)})),Aa.set(this,new ot(this,{target:null,callback:(t,s)=>e(this,Wa,"m",Da).call(this,s)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(t){super.attach(t),e(this,Fa,"f").observe(t),e(this,Aa,"f").observe(t)}detach(){this.control&&(e(this,Fa,"f").unobserve(this.control),e(this,Aa,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return o`<div class="layer"></div>`}};var Ha,Pa,Ia,Oa,Ba,Va,Na,Ra;Fa=new WeakMap,Aa=new WeakMap,Wa=new WeakSet,_a=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},Da=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Ta.styles=l`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${r(`background-color ${La} ${Ma}`)}; } .layer.focused { background-color: color-mix(in srgb, ${Ca} ${za}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${Ea} ${Sa}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,s([u(".layer")],Ta.prototype,"_layer",void 0),s([m({type:Boolean,reflect:!0})],Ta.prototype,"disabled",void 0),s([m({attribute:"disable-hover",type:Boolean,reflect:!0})],Ta.prototype,"disableHover",void 0),Ta=s([ut("m3e-state-layer")],Ta);let qa=Ra=class extends c{constructor(){super(),Ha.add(this),Pa.set(this,"m3e-text-highlight-"+Ra.__nextId++),Ia.set(this,new Array),Oa.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(t(this,Oa,new CSSStyleSheet,"f"),e(this,Oa,"f").replaceSync(l`::highlight(${r(e(this,Pa,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${$s.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${$s.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(i||!CSS.highlights)}get ranges(){return e(this,Ia,"f")}firstUpdated(t){super.firstUpdated(t),this.shadowRoot&&e(this,Oa,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,Oa,"f"))&&this.shadowRoot.adoptedStyleSheets.push(e(this,Oa,"f"))}updated(t){super.updated(t),(t.has("term")||t.has("caseSensitive")||t.has("disabled"))&&e(this,Ha,"m",Na).call(this)}render(){return o`<slot @slotchange="${e(this,Ha,"m",Na)}"></slot>`}};Pa=new WeakMap,Ia=new WeakMap,Oa=new WeakMap,Ha=new WeakSet,Ba=function(e){return!/^\s*$/.test(e.data)},Va=function t(s,i){s instanceof HTMLSlotElement?s.assignedNodes({flatten:!0}).forEach(s=>{switch(s.nodeType){case Node.TEXT_NODE:e(this,Ha,"m",Ba).call(this,s)&&i.push(s);break;case Node.ELEMENT_NODE:e(this,Ha,"m",t).call(this,s,i)}}):s.childNodes.forEach(s=>{switch(s.nodeType){case Node.TEXT_NODE:e(this,Ha,"m",Ba).call(this,s)&&i.push(s);break;case Node.ELEMENT_NODE:e(this,Ha,"m",t).call(this,s,i)}})},Na=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(e(this,Pa,"f")),e(this,Ia,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ia,"f")],bubbles:!1,composed:!1}));const s=new Array;if(e(this,Ha,"m",Va).call(this,this,s),s.length>0){const i=this.caseSensitive?this.term:this.term.toLowerCase();switch(this.mode){case"starts-with":{const t=s[0];if(((this.caseSensitive?t.textContent:t.textContent?.toLowerCase())??"").startsWith(i)){const s=new Range;s.setStart(t,0),s.setEnd(t,i.length),e(this,Ia,"f").push(s)}}break;case"ends-with":{const t=s[s.length-1],a=(this.caseSensitive?t.textContent:t.textContent?.toLowerCase())??"";if(a.endsWith(i)){const s=a.length-i.length,n=s+i.length,r=new Range;r.setStart(t,s),r.setEnd(t,n),e(this,Ia,"f").push(r)}}break;case"contains":t(this,Ia,s.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:t})=>{const s=new Array;let a=0;for(;a<t.length;){const e=t.indexOf(i,a);if(-1===e)break;s.push(e),a=e+i.length}return s.map(t=>{const s=new Range;return s.setStart(e,t),s.setEnd(e,t+i.length),s})}).flat(),"f")}e(this,Ia,"f").length>0&&CSS.highlights.set(e(this,Pa,"f"),new Highlight(...e(this,Ia,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ia,"f")],bubbles:!1,composed:!1}))},qa.styles=l`:host { display: contents; }`,qa.__nextId=0,s([m({type:Boolean,reflect:!0})],qa.prototype,"disabled",void 0),s([m()],qa.prototype,"term",void 0),s([m({attribute:"case-sensitive",type:Boolean})],qa.prototype,"caseSensitive",void 0),s([m()],qa.prototype,"mode",void 0),qa=Ra=s([ut("m3e-text-highlight")],qa);let Ua=class extends c{render(){return o`<span class="base"><slot></slot></span>`}};Ua.styles=l`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Ua=s([ut("m3e-text-overflow")],Ua);export{Li as ActionElementBase,Pe as AnimationLoopController,Vt as AttachInternals,Xt as Checked,Gt as CheckedIndeterminate,js as ConstraintValidation,$s as DesignToken,is as Dirty,Ss as Disabled,Ws as DisabledInteractive,Xs as EventAttribute,ot as FocusController,Gs as Focusable,Vs as FormAssociated,Qs as FormSubmitter,lt as HoverController,si as HtmlFor,ct as IntersectionController,ii as KeyboardClick,Ds as Labelled,oi as LinkButton,dt as LongPressController,Mi as M3eCollapsibleElement,Ui as M3eElevationElement,sa as M3eFocusRingElement,ia as M3ePseudoCheckboxElement,aa as M3ePseudoRadioElement,va as M3eRippleElement,ga as M3eScrollContainerElement,$a as M3eSlideElement,Ta as M3eStateLayerElement,qa as M3eTextHighlightElement,Ua as M3eTextOverflowElement,ht as MutationController,pt as PressedController,ci as ReadOnly,hi as ReconnectedCallback,mi as Required,fi as RequiredConstraintValidation,mt as ResizeController,vi as Role,Wt as ScrollController,Ft as ScrollLockController,Kt as Selected,yi as SuppressInitialAnimation,rs as Touched,rt as VelocityTracker,bi as Vertical,Rt as addCustomState,es as checkOrSelect,Oe as computeCssSize,Be as computeLineCount,ut as customElement,ft as debounce,Hs as defaultValue,qt as deleteCustomState,Ve as focusWhenReady,Ne as forcedColorsActive,Ts as formValue,Ke as generateClipPaths,Qe as getTextContent,Je as guid,et as hasAssignedNodes,Nt as hasCustomState,Ht as hasKeys,tt as interceptProperty,Pt as internals,It as isAttachInternalsMixin,Yt as isCheckedIndeterminateMixin,jt as isCheckedMixin,Jt as isCheckedOrSelected,Qt as isCheckedOrSelectedMixin,Rs as isConstraintValidationMixin,ts as isDirtyMixin,Cs as isDisabledInteractiveMixin,Es as isDisabledMixin,Ps as isFormAssociatedMixin,Zs as isFormSubmitterMixin,Js as isHtmlForMixin,As as isLabelledMixin,ni as isLinkButtonMixin,li as isReadOnlyMixin,ui as isRequiredConstraintValidationMixin,pi as isRequiredMixin,Zt as isSelectedMixin,as as isTouchedMixin,gi as isVerticalMixin,st as prefersReducedMotion,ai as renderPseudoLink,it as resolveElementById,at as resolveFragmentUrl,Tt as safeStyleMap,nt as scrollIntoViewIfNeeded,Ut as setCustomState,At as spaceSeparatedStringConverter,Fs as updateLabels,Ns as validate};
7
7
  //# sourceMappingURL=core.min.js.map