@holoviz/panel 0.14.3 → 1.0.0-a.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.iife.min.js +217 -0
  2. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.js +28286 -0
  3. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.min.js +217 -0
  4. package/dist/bundled/bootstrap/css/bootstrap.css +688 -0
  5. package/dist/bundled/bootstrap5/css/bootstrap-grid.css +4226 -0
  6. package/dist/bundled/bootstrap5/css/bootstrap-grid.min.css +6 -0
  7. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.css +4225 -0
  8. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.min.css +6 -0
  9. package/dist/bundled/bootstrap5/css/bootstrap-reboot.css +591 -0
  10. package/dist/bundled/bootstrap5/css/bootstrap-reboot.min.css +6 -0
  11. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.css +588 -0
  12. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.min.css +6 -0
  13. package/dist/bundled/bootstrap5/css/bootstrap-utilities.css +5099 -0
  14. package/dist/bundled/bootstrap5/css/bootstrap-utilities.min.css +6 -0
  15. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.css +5090 -0
  16. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.min.css +6 -0
  17. package/dist/bundled/bootstrap5/css/bootstrap.css +11783 -0
  18. package/dist/bundled/bootstrap5/css/bootstrap.min.css +6 -0
  19. package/dist/bundled/bootstrap5/css/bootstrap.rtl.css +11747 -0
  20. package/dist/bundled/bootstrap5/css/bootstrap.rtl.min.css +6 -0
  21. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js +6295 -0
  22. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js.map +1 -0
  23. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +7 -0
  24. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js.map +1 -0
  25. package/dist/bundled/bootstrap5/js/bootstrap.esm.js +4422 -0
  26. package/dist/bundled/bootstrap5/js/bootstrap.esm.js.map +1 -0
  27. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js +7 -0
  28. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js.map +1 -0
  29. package/dist/bundled/bootstrap5/js/bootstrap.js +4468 -0
  30. package/dist/bundled/bootstrap5/js/bootstrap.js.map +1 -0
  31. package/dist/bundled/bootstrap5/js/bootstrap.min.js +7 -0
  32. package/dist/bundled/bootstrap5/js/bootstrap.min.js.map +1 -0
  33. package/dist/bundled/bootstrapdarktheme/bootstrap_dark.css +170 -0
  34. package/dist/bundled/bootstrapdefaulttheme/bootstrap_default.css +120 -0
  35. package/dist/bundled/bootstraptemplate/bootstrap.css +119 -77
  36. package/dist/bundled/darktheme/dark.css +33 -106
  37. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_fast.min.css +1 -0
  38. package/dist/bundled/defaulttheme/default.css +33 -2
  39. package/dist/bundled/fast/css/fast.css +919 -0
  40. package/dist/bundled/fast/js/fast_design.js +87 -0
  41. package/dist/bundled/fastbasetemplate/fast.css +335 -0
  42. package/dist/bundled/fastgridtemplate/fast_grid_template.css +256 -232
  43. package/dist/bundled/golden-layout@1.5.9/dist/css/goldenlayout-base.css +1 -0
  44. package/dist/bundled/golden-layout@1.5.9/dist/css/theme/goldenlayout-dark-theme.css +1 -0
  45. package/dist/bundled/goldentemplate/golden.css +2 -22
  46. package/dist/bundled/material/css/material.css +443 -0
  47. package/dist/bundled/materialtemplate/dark.css +2 -20
  48. package/dist/bundled/materialtemplate/default.css +2 -17
  49. package/dist/bundled/materialtemplate/material.css +119 -114
  50. package/dist/bundled/materialthememixin/material_variables.css +19 -0
  51. package/dist/bundled/native/css/native.css +28 -0
  52. package/dist/bundled/notificationarea/panel/1.0.0-a.1/dist/bundled/font-awesome/css/all.min.css +2 -0
  53. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
  54. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
  55. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/font-awesome/css/all.min.css +2 -0
  56. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
  57. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/fonts.css +1 -0
  58. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material-dark.css +1 -0
  59. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material.css +1 -0
  60. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/monokai.css +1 -0
  61. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized-dark.css +1 -0
  62. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized.css +1 -0
  63. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/themes.css +1 -0
  64. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/vaporwave.css +1 -0
  65. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/variables.css +0 -0
  66. package/dist/bundled/plotlyplot/panel/1.0.0-a.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
  67. package/dist/bundled/react-dom@17/umd/react-dom.production.min.js +245 -0
  68. package/dist/bundled/react-grid-layout@1.3.4/dist/react-grid-layout.min.js +2 -0
  69. package/dist/bundled/react-grid-layout@1.3.4/dist/react-grid-layout.min.js.map +1 -0
  70. package/dist/bundled/react@17/umd/react.production.min.js +31 -0
  71. package/dist/bundled/reacttemplate/react.css +0 -12
  72. package/dist/bundled/vanillatemplate/vanilla.css +129 -134
  73. package/dist/css/alerts.css +64 -64
  74. package/dist/css/booleanstatus.css +48 -0
  75. package/dist/css/card.css +16 -8
  76. package/dist/css/dataframe.css +7 -2
  77. package/dist/css/debugger.css +16 -10
  78. package/dist/css/divider.css +10 -0
  79. package/dist/css/editable_slider.css +22 -0
  80. package/dist/css/katex.css +3 -0
  81. package/dist/css/loadingspinner.css +119 -0
  82. package/dist/css/markdown.css +2 -1
  83. package/dist/css/perspective-datatable.css +504 -0
  84. package/dist/css/plotly.css +246 -0
  85. package/dist/css/progress.css +209 -0
  86. package/dist/css/widgetbox.css +9 -0
  87. package/dist/css/widgets.css +0 -305
  88. package/dist/dts/styles/alerts.css.d.ts +3 -0
  89. package/dist/dts/styles/booleanstatus.css.d.ts +3 -0
  90. package/dist/dts/styles/card.css.d.ts +3 -0
  91. package/dist/dts/styles/dataframe.css.d.ts +3 -0
  92. package/dist/dts/styles/debugger.css.d.ts +3 -0
  93. package/dist/dts/styles/divider.css.d.ts +4 -0
  94. package/dist/dts/styles/editable_slider.css.d.ts +8 -0
  95. package/dist/dts/styles/json.css.d.ts +3 -0
  96. package/dist/dts/styles/katex.css.d.ts +3 -0
  97. package/dist/dts/styles/loading.css.d.ts +3 -0
  98. package/dist/dts/styles/loadingspinner.css.d.ts +3 -0
  99. package/dist/dts/styles/markdown.css.d.ts +3 -0
  100. package/dist/dts/styles/perspective-datatable.css.d.ts +3 -0
  101. package/dist/dts/styles/plotly.css.d.ts +3 -0
  102. package/dist/dts/styles/progress.css.d.ts +3 -0
  103. package/dist/dts/styles/widgetbox.css.d.ts +3 -0
  104. package/dist/dts/styles/widgets.css.d.ts +4 -0
  105. package/dist/lib/models/ace.d.ts +3 -5
  106. package/dist/lib/models/ace.js +24 -23
  107. package/dist/lib/models/ace.js.map +1 -1
  108. package/dist/lib/models/audio.d.ts +2 -4
  109. package/dist/lib/models/audio.js +18 -18
  110. package/dist/lib/models/audio.js.map +1 -1
  111. package/dist/lib/models/card.d.ts +3 -3
  112. package/dist/lib/models/card.js +56 -62
  113. package/dist/lib/models/card.js.map +1 -1
  114. package/dist/lib/models/comm_manager.d.ts +2 -2
  115. package/dist/lib/models/comm_manager.js +20 -19
  116. package/dist/lib/models/comm_manager.js.map +1 -1
  117. package/dist/lib/models/data.js +1 -1
  118. package/dist/lib/models/data.js.map +1 -1
  119. package/dist/lib/models/datetime_picker.d.ts +8 -7
  120. package/dist/lib/models/datetime_picker.js +128 -34
  121. package/dist/lib/models/datetime_picker.js.map +1 -1
  122. package/dist/lib/models/deckgl.d.ts +2 -4
  123. package/dist/lib/models/deckgl.js +24 -25
  124. package/dist/lib/models/deckgl.js.map +1 -1
  125. package/dist/lib/models/echarts.d.ts +3 -2
  126. package/dist/lib/models/echarts.js +22 -12
  127. package/dist/lib/models/echarts.js.map +1 -1
  128. package/dist/lib/models/file_download.d.ts +2 -2
  129. package/dist/lib/models/file_download.js +18 -17
  130. package/dist/lib/models/file_download.js.map +1 -1
  131. package/dist/lib/models/html.d.ts +5 -3
  132. package/dist/lib/models/html.js +20 -16
  133. package/dist/lib/models/html.js.map +1 -1
  134. package/dist/lib/models/index.d.ts +1 -2
  135. package/dist/lib/models/index.js +1 -2
  136. package/dist/lib/models/index.js.map +1 -1
  137. package/dist/lib/models/ipywidget.d.ts +2 -6
  138. package/dist/lib/models/ipywidget.js +14 -24
  139. package/dist/lib/models/ipywidget.js.map +1 -1
  140. package/dist/lib/models/json.d.ts +1 -1
  141. package/dist/lib/models/json.js +14 -12
  142. package/dist/lib/models/json.js.map +1 -1
  143. package/dist/lib/models/jsoneditor.d.ts +9 -6
  144. package/dist/lib/models/jsoneditor.js +27 -18
  145. package/dist/lib/models/jsoneditor.js.map +1 -1
  146. package/dist/lib/models/katex.d.ts +0 -1
  147. package/dist/lib/models/katex.js +7 -6
  148. package/dist/lib/models/katex.js.map +1 -1
  149. package/dist/lib/models/layout.d.ts +25 -22
  150. package/dist/lib/models/layout.js +75 -81
  151. package/dist/lib/models/layout.js.map +1 -1
  152. package/dist/lib/models/location.d.ts +0 -1
  153. package/dist/lib/models/location.js +15 -14
  154. package/dist/lib/models/location.js.map +1 -1
  155. package/dist/lib/models/mathjax.d.ts +0 -3
  156. package/dist/lib/models/mathjax.js +6 -16
  157. package/dist/lib/models/mathjax.js.map +1 -1
  158. package/dist/lib/models/pdf.d.ts +24 -0
  159. package/dist/lib/models/pdf.js +62 -0
  160. package/dist/lib/models/pdf.js.map +1 -0
  161. package/dist/lib/models/perspective.d.ts +4 -9
  162. package/dist/lib/models/perspective.js +36 -64
  163. package/dist/lib/models/perspective.js.map +1 -1
  164. package/dist/lib/models/player.d.ts +0 -1
  165. package/dist/lib/models/player.js +18 -17
  166. package/dist/lib/models/player.js.map +1 -1
  167. package/dist/lib/models/plotly.d.ts +3 -7
  168. package/dist/lib/models/plotly.js +60 -67
  169. package/dist/lib/models/plotly.js.map +1 -1
  170. package/dist/lib/models/progress.d.ts +4 -7
  171. package/dist/lib/models/progress.js +28 -32
  172. package/dist/lib/models/progress.js.map +1 -1
  173. package/dist/lib/models/quill.d.ts +3 -6
  174. package/dist/lib/models/quill.js +25 -24
  175. package/dist/lib/models/quill.js.map +1 -1
  176. package/dist/lib/models/reactive_html.d.ts +6 -12
  177. package/dist/lib/models/reactive_html.js +48 -121
  178. package/dist/lib/models/reactive_html.js.map +1 -1
  179. package/dist/lib/models/singleselect.d.ts +0 -1
  180. package/dist/lib/models/singleselect.js +11 -10
  181. package/dist/lib/models/singleselect.js.map +1 -1
  182. package/dist/lib/models/speech_to_text.d.ts +1 -2
  183. package/dist/lib/models/speech_to_text.js +27 -26
  184. package/dist/lib/models/speech_to_text.js.map +1 -1
  185. package/dist/lib/models/state.d.ts +0 -2
  186. package/dist/lib/models/state.js +12 -13
  187. package/dist/lib/models/state.js.map +1 -1
  188. package/dist/lib/models/tabulator.d.ts +10 -14
  189. package/dist/lib/models/tabulator.js +73 -150
  190. package/dist/lib/models/tabulator.js.map +1 -1
  191. package/dist/lib/models/terminal.d.ts +6 -7
  192. package/dist/lib/models/terminal.js +20 -26
  193. package/dist/lib/models/terminal.js.map +1 -1
  194. package/dist/lib/models/text_to_speech.d.ts +1 -2
  195. package/dist/lib/models/text_to_speech.js +16 -15
  196. package/dist/lib/models/text_to_speech.js.map +1 -1
  197. package/dist/lib/models/trend.d.ts +1 -2
  198. package/dist/lib/models/trend.js +24 -23
  199. package/dist/lib/models/trend.js.map +1 -1
  200. package/dist/lib/models/vega.d.ts +7 -6
  201. package/dist/lib/models/vega.js +31 -36
  202. package/dist/lib/models/vega.js.map +1 -1
  203. package/dist/lib/models/video.d.ts +2 -4
  204. package/dist/lib/models/video.js +18 -18
  205. package/dist/lib/models/video.js.map +1 -1
  206. package/dist/lib/models/videostream.d.ts +2 -4
  207. package/dist/lib/models/videostream.js +19 -19
  208. package/dist/lib/models/videostream.js.map +1 -1
  209. package/dist/lib/models/vtk/util.d.ts +4 -4
  210. package/dist/lib/models/vtk/vtkaxes.d.ts +1 -2
  211. package/dist/lib/models/vtk/vtkaxes.js +15 -14
  212. package/dist/lib/models/vtk/vtkaxes.js.map +1 -1
  213. package/dist/lib/models/vtk/vtkjs.d.ts +0 -1
  214. package/dist/lib/models/vtk/vtkjs.js +9 -8
  215. package/dist/lib/models/vtk/vtkjs.js.map +1 -1
  216. package/dist/lib/models/vtk/vtklayout.d.ts +2 -5
  217. package/dist/lib/models/vtk/vtklayout.js +24 -30
  218. package/dist/lib/models/vtk/vtklayout.js.map +1 -1
  219. package/dist/lib/models/vtk/vtksynchronized.d.ts +0 -1
  220. package/dist/lib/models/vtk/vtksynchronized.js +17 -16
  221. package/dist/lib/models/vtk/vtksynchronized.js.map +1 -1
  222. package/dist/lib/models/vtk/vtkvolume.d.ts +0 -1
  223. package/dist/lib/models/vtk/vtkvolume.js +27 -26
  224. package/dist/lib/models/vtk/vtkvolume.js.map +1 -1
  225. package/dist/lib/styles/alerts.css.d.ts +1 -2
  226. package/dist/lib/styles/alerts.css.js +1 -139
  227. package/dist/lib/styles/booleanstatus.css.d.ts +1 -0
  228. package/dist/lib/styles/booleanstatus.css.js +1 -0
  229. package/dist/lib/styles/card.css.d.ts +1 -2
  230. package/dist/lib/styles/card.css.js +1 -43
  231. package/dist/lib/styles/dataframe.css.d.ts +1 -2
  232. package/dist/lib/styles/dataframe.css.js +1 -44
  233. package/dist/lib/styles/debugger.css.d.ts +1 -2
  234. package/dist/lib/styles/debugger.css.js +1 -68
  235. package/dist/lib/styles/divider.css.d.ts +2 -0
  236. package/dist/lib/styles/divider.css.js +2 -0
  237. package/dist/lib/styles/editable_slider.css.d.ts +6 -0
  238. package/dist/lib/styles/editable_slider.css.js +6 -0
  239. package/dist/lib/styles/json.css.d.ts +1 -2
  240. package/dist/lib/styles/json.css.js +1 -197
  241. package/dist/lib/styles/katex.css.d.ts +1 -0
  242. package/dist/lib/styles/katex.css.js +1 -0
  243. package/dist/lib/styles/loading.css.d.ts +1 -2
  244. package/dist/lib/styles/loading.css.js +1 -31
  245. package/dist/lib/styles/loadingspinner.css.d.ts +1 -0
  246. package/dist/lib/styles/loadingspinner.css.js +17 -0
  247. package/dist/lib/styles/markdown.css.d.ts +1 -2
  248. package/dist/lib/styles/markdown.css.js +1 -91
  249. package/dist/lib/styles/perspective-datatable.css.d.ts +1 -0
  250. package/dist/lib/styles/perspective-datatable.css.js +1 -0
  251. package/dist/lib/styles/plotly.css.d.ts +1 -0
  252. package/dist/lib/styles/plotly.css.js +1 -0
  253. package/dist/lib/styles/progress.css.d.ts +1 -0
  254. package/dist/lib/styles/progress.css.js +22 -0
  255. package/dist/lib/styles/widgetbox.css.d.ts +1 -0
  256. package/dist/lib/styles/widgetbox.css.js +1 -0
  257. package/dist/lib/styles/widgets.css.d.ts +2 -2
  258. package/dist/lib/styles/widgets.css.js +2 -320
  259. package/dist/panel.js +4467 -5894
  260. package/dist/panel.js.map +1 -1
  261. package/dist/panel.json +1 -1
  262. package/dist/panel.min.js +65 -102
  263. package/dist/wheels/bokeh-3.1.0.dev4-py3-none-any.whl +0 -0
  264. package/dist/wheels/panel-1.0.0a1-py3-none-any.whl +0 -0
  265. package/package.json +5 -4
  266. package/dist/bundled/bootstraptemplate/dark.css +0 -19
  267. package/dist/bundled/css/golden-layout@1.5.9/src/css/goldenlayout-base.css +0 -1
  268. package/dist/bundled/css/panel/0.14.3/dist/bundled/bootstrap4/css/bootstrap.min.css +0 -2
  269. package/dist/bundled/css/panel/0.14.3/dist/bundled/font-awesome/css/all.min.css +0 -2
  270. package/dist/bundled/datatabulator/@holoviz/panel@0.14.3/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  271. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  272. package/dist/bundled/fastbasetemplate/fast_awesome.css +0 -13
  273. package/dist/bundled/fastbasetemplate/fast_bokeh.css +0 -1646
  274. package/dist/bundled/fastbasetemplate/fast_bokeh_slickgrid.css +0 -200
  275. package/dist/bundled/fastbasetemplate/fast_panel.css +0 -53
  276. package/dist/bundled/fastbasetemplate/fast_panel_dataframe.css +0 -14
  277. package/dist/bundled/fastbasetemplate/fast_panel_markdown.css +0 -23
  278. package/dist/bundled/fastbasetemplate/fast_panel_widgets.css +0 -301
  279. package/dist/bundled/fastbasetemplate/fast_root.css +0 -41
  280. package/dist/bundled/fastdarktheme/fast_root_dark.css +0 -4
  281. package/dist/bundled/fastdefaulttheme/fast_root_default.css +0 -4
  282. package/dist/bundled/fastgridtemplate/dark.css +0 -26
  283. package/dist/bundled/fastgridtemplate/default.css +0 -4
  284. package/dist/bundled/fastlisttemplate/dark.css +0 -13
  285. package/dist/bundled/fastlisttemplate/default.css +0 -1
  286. package/dist/bundled/fastlisttemplate/fast_list_template.css +0 -237
  287. package/dist/bundled/goldentemplate/dark.css +0 -26
  288. package/dist/bundled/goldentemplate/default.css +0 -23
  289. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/array-pixel-blob.js +0 -39
  290. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-blending.js +0 -270
  291. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-converters.js +0 -524
  292. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsl.js +0 -42
  293. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsv.js +0 -42
  294. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-interpolation.js +0 -133
  295. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lab.js +0 -47
  296. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lch.js +0 -50
  297. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-palette.js +0 -285
  298. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-quantization.js +0 -135
  299. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-rgba-64.js +0 -95
  300. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-scale.js +0 -176
  301. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-xyz.js +0 -50
  302. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/component-state-color-palette.js +0 -113
  303. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/histogram.js +0 -76
  304. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/index.js +0 -19
  305. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/math-utilities.js +0 -138
  306. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/named-colors.js +0 -743
  307. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/palette-extractor.js +0 -134
  308. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/parse-color.js +0 -219
  309. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-blob.js +0 -72
  310. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-box.js +0 -249
  311. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/harness.js +0 -33
  312. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/server.js +0 -36
  313. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.iife.min.js +0 -19
  314. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.js +0 -25813
  315. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.min.js +0 -19
  316. package/dist/bundled/js/ajax/libs/react-grid-layout/1.1.1/react-grid-layout.min.js +0 -7
  317. package/dist/bundled/js/ajax/libs/react-grid-layout/1.1.1/react-grid-layout.min.js.map +0 -1
  318. package/dist/bundled/js/panel/0.14.3/dist/bundled/bootstrap4/js/bootstrap.bundle.min.js +0 -2
  319. package/dist/bundled/js/panel/0.14.3/dist/bundled/jquery/jquery.slim.min.js +0 -2
  320. package/dist/bundled/js/react-dom@18/umd/react-dom.production.min.js +0 -267
  321. package/dist/bundled/js/react@18/umd/react.production.min.js +0 -31
  322. package/dist/bundled/notificationarea/panel/0.14.3/dist/bundled/font-awesome/css/all.min.css +0 -2
  323. package/dist/bundled/plotlyplot/panel/0.14.3/dist/bundled/jquery/jquery.slim.min.js +0 -2
  324. package/dist/bundled/reacttemplate/dark.css +0 -18
  325. package/dist/bundled/reacttemplate/default.css +0 -12
  326. package/dist/bundled/theme/dark.css +0 -107
  327. package/dist/bundled/theme/default.css +0 -3
  328. package/dist/bundled/vanillatemplate/default.css +0 -8
  329. package/dist/idom/package.json +0 -38
  330. package/dist/lib/models/idom.d.ts +0 -36
  331. package/dist/lib/models/idom.js +0 -239
  332. package/dist/lib/models/idom.js.map +0 -1
  333. package/dist/lib/models/tabs.d.ts +0 -24
  334. package/dist/lib/models/tabs.js +0 -231
  335. package/dist/lib/models/tabs.js.map +0 -1
  336. package/dist/wheels/bokeh-2.4.3-py3-none-any.whl +0 -0
  337. package/dist/wheels/panel-0.14.3-py3-none-any.whl +0 -0
  338. /package/dist/bundled/{js/babel-standalone@latest → babel-standalone@latest}/babel.min.js +0 -0
  339. /package/dist/bundled/{js/golden-layout@1.5.9 → golden-layout@1.5.9}/dist/goldenlayout.min.js +0 -0
  340. /package/dist/bundled/{css/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.css +0 -0
  341. /package/dist/bundled/{js/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.js +0 -0
@@ -0,0 +1,217 @@
1
+ const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},e));const i=t.FAST;if(void 0===i.getById){const t=Object.create(null);Reflect.defineProperty(i,"getById",Object.assign({value(e,i){let o=t[e];return void 0===o&&(o=i?t[e]=i():null),o}},e))}const o=Object.freeze([]),s=t.FAST.getById(1,()=>{const e=[],i=[];function o(){if(i.length)throw i.shift()}function s(t){try{t.call()}catch(t){i.push(t),setTimeout(o,0)}}function n(){let t=0;for(;t<e.length;)if(s(e[t]),t++,t>1024){for(let i=0,o=e.length-t;i<o;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(i){e.length<1&&t.requestAnimationFrame(n),e.push(i)},process:n})}),n=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let r=n;const a="fast-"+Math.random().toString(36).substring(2,8),l=a+"{",c="}"+a,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(r!==n)throw new Error("The HTML policy can only be set once.");r=t},createHTML:t=>r.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(a),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(a+":","")),createInterpolationPlaceholder:t=>`${l}${t}${c}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${a}:${t}--\x3e`,queueUpdate:s.enqueue,processUpdates:s.process,nextUpdate:()=>new Promise(s.enqueue),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});function d(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function u(t){const e=this.spillover,i=e.indexOf(t);-1!==i&&e.splice(i,1)}function p(t){const e=this.spillover,i=this.source;for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}function g(t){return-1!==this.spillover.indexOf(t)}class m{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.sub1===t||this.sub2===t}subscribe(t){this.has(t)||(void 0!==this.sub1?void 0!==this.sub2?(this.spillover=[this.sub1,this.sub2,t],this.subscribe=d,this.unsubscribe=u,this.notify=p,this.has=g,this.sub1=void 0,this.sub2=void 0):this.sub2=t:this.sub1=t)}unsubscribe(t){this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0)}notify(t){const e=this.sub1,i=this.sub2,o=this.source;void 0!==e&&e.handleChange(o,t),void 0!==i&&i.handleChange(o,t)}}class f{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new m(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new m(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const b=i.getById(2,()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=new WeakMap,o=h.queueUpdate;let s=void 0,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=n(t):e.set(t,i=new f(t))),i}function a(t){let e=i.get(t);if(void 0===e){let o=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==o;)e=i.get(o),o=Reflect.getPrototypeOf(o);e=void 0===e?[]:e.slice(0),i.set(t,e)}return e}class l{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),r(t).notify(this.name)}}}class c extends m{constructor(t,e,i=!1){super(t,e),this.binding=t,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return s=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=r(t),n=null===i?this.first:{};if(n.propertySource=t,n.propertyName=e,n.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;s=void 0,e=i.propertySource[i.propertyName],s=this,t===e&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,o(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:r,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){r(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),a(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:a,binding(t,e,i=this.isVolatileBinding(t)){return new c(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})});function v(t,e){b.defineProperty(t,e)}const y=i.getById(3,()=>{let t=null;return{get:()=>t,set(e){t=e}}});class x{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return y.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){y.set(t)}}b.defineProperty(x.prototype,"index"),b.defineProperty(x.prototype,"length");const $=Object.seal(new x);class w{constructor(){this.targetIndex=0}}class k extends w{constructor(){super(...arguments),this.createPlaceholder=h.createInterpolationPlaceholder}}class C extends w{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return h.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function I(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=b.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function T(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function F(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function E(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function O(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function S(t){h.setAttribute(this.target,this.targetName,t)}function D(t){h.setBooleanAttribute(this.target,this.targetName,t)}function R(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function L(t){this.target[this.targetName]=t}function A(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class V extends k{constructor(t){super(),this.binding=t,this.bind=I,this.unbind=F,this.updateTarget=S,this.isBindingVolatile=b.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=L,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>h.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=D;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=T,this.unbind=O;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=A)}}targetAtContent(){this.updateTarget=R,this.unbind=E}createBehavior(t){return new P(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class P{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){x.setEvent(t);const e=this.binding(this.source,this.context);x.setEvent(null),!0!==e&&t.preventDefault()}}let z=null;class H{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){z=this}static borrow(t){const e=z||new H;return e.directives=t,e.reset(),z=null,e}}function M(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new V((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const N=c.length;function B(t,e){const i=e.split(l);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(c);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+N)}""!==r&&o.push(r)}return o}function j(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=B(t,a);let c=null;null===l?i&&(c=new V(()=>a),c.targetName=r.name):c=M(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function q(t,e,i){const o=B(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const U=document.createRange();class _{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){U.setStartBefore(t[0].firstChild),U.setEndAfter(t[t.length-1].lastChild),U.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class G{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=h.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=H.borrow(e);j(o,t,!0);const s=o.behaviorFactories;o.reset();const n=h.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:j(o,r);break;case 3:q(o,r,n);break;case 8:h.isMarker(r)&&o.addFactory(e[h.extractDirectiveIndexFromMarker(r)])}let a=0;(h.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=h.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new _(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,$),o.appendTo(e),o}}const W=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof G){const t=r;r=()=>t}if("function"==typeof r&&(r=new V(r)),r instanceof k){const t=W.exec(n);null!==t&&(r.targetName=t[2])}r instanceof w?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new G(o,i)}class X{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function Y(t){return t.map(t=>t instanceof X?Y(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function Q(t){return t.map(t=>t instanceof X?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}X.create=(()=>{if(h.supportsAdoptedStyleSheets){const t=new Map;return e=>new Z(e,t)}return t=>new tt(t)})();class Z extends X{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=Q(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=Y(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let J=0;class tt extends X{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Q(t),this.styleSheets=Y(t),this.styleClass="fast-style-class-"+ ++J}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const et={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},it={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class ot{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=et)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return b.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||h.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;h.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":h.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new ot(t,o)):i.push(new ot(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function st(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const nt={mode:"open"},rt={},at=i.getById(4,()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})});class lt{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=ot.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?nt:null===e.shadowOptions?void 0:Object.assign(Object.assign({},nt),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?rt:Object.assign(Object.assign({},rt),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?X.create(e.styles):e.styles instanceof X?e.styles:X.create([e.styles])}get isDefined(){return!!at.getByType(this.type)}define(t=customElements){const e=this.type;if(at.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)b.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}lt.forType=at.getByType;const ct=new WeakMap,ht={bubbles:!0,composed:!0,cancelable:!0};function dt(t){return t.shadowRoot||ct.get(t)||null}class ut extends f{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&ct.set(t,e)}const o=b.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return b.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,b.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=dt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=dt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,$)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,$);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,$);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},ht),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=dt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||h.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=lt.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new ut(t,i)}}function pt(t){return class extends t{constructor(){super(),ut.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const gt=Object.assign(pt(HTMLElement),{from:t=>pt(t),define:(t,e)=>new lt(t,e).define().type});class mt{createCSS(){return""}createBehavior(){}}function ft(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof mt){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof X||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function bt(t,...e){const{styles:i,behaviors:o}=ft(t,e),s=X.create(i);return o.length&&s.withBehaviors(...o),s}class vt extends mt{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=X.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function yt(t,...e){const{styles:i,behaviors:o}=ft(t,e);return new vt(i,o)}function xt(t,e,i){return{index:t,removed:e,addedCount:i}}function $t(t,e,i,s,n,r){let a=0,l=0;const c=Math.min(i-e,r-n);if(0===e&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,s,c)),i===t.length&&r===s.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,s,c-a)),n+=a,r-=l,(i-=l)-(e+=a)==0&&r-n==0)return o;if(e===i){const t=xt(e,[],0);for(;n<r;)t.removed.push(s[n++]);return[t]}if(n===r)return[xt(e,[],i-e)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,e,i,s,n,r)),d=[];let u=void 0,p=e,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=xt(p,[],0)),u.addedCount++,p++,u.removed.push(s[g]),g++;break;case 2:void 0===u&&(u=xt(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=xt(p,[],0)),u.removed.push(s[g]),g++}return void 0!==u&&d.push(u),d}const wt=Array.prototype.push;function kt(t,e,i,o){const s=xt(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);wt.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);wt.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function Ct(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];kt(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat($t(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let It=!1;function Tt(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class Ft extends m{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?Ct(this.source,t):$t(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Et{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Ot(t){return new C("fast-ref",Et,t)}function St(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}const Dt=Object.freeze({positioning:!1,recycle:!0});function Rt(t,e,i,o){t.bind(e[i],o)}function Lt(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class At{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Rt,this.itemsBindingObserver=b.binding(e,this,i),this.templateBindingObserver=b.binding(o,this,s),n.positioning&&(this.bindView=Lt)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=o);const e=this.itemsObserver,i=this.itemsObserver=b.getNotifier(this.items),s=e!==i;s&&null!==e&&e.unsubscribe(this),(s||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=[],s=this.bindView;let n=0;for(let e=0,s=t.length;e<s;++e){const s=t[e],r=s.removed;o.push(...i.splice(s.index+n,r.length)),n-=s.addedCount}const r=this.items,a=this.template;for(let n=0,l=t.length;n<l;++n){const l=t[n];let c=l.index;const h=c+l.addedCount;for(;c<h;++c){const t=i[c],n=t?t.firstChild:this.location,l=this.options.recycle&&o.length>0?o.shift():a.create();i.splice(c,0,l),s(l,r,c,e),l.insertBefore(n)}}for(let t=0,e=o.length;t<e;++t)o[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if((0===r||t)&&(_.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class Vt extends w{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=h.createBlockPlaceholder,function(){if(It)return;It=!0,b.setArrayObserverFactory(t=>new Ft(t));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(xt(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Tt(xt(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(xt(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Tt(xt(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Tt(xt(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=b.isVolatileBinding(t),this.isTemplateBindingVolatile=b.isVolatileBinding(e)}createBehavior(t){return new At(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Pt(t,e,i=Dt){return new Vt(t,"function"==typeof e?e:()=>e,i)}function zt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Ht{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=b.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(o),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Mt extends Ht{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Nt(t){return"string"==typeof t&&(t={property:t}),new C("fast-slotted",Mt,t)}class Bt extends Ht{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function jt(t){return"string"==typeof t&&(t={property:t}),new C("fast-children",Bt,t)}class qt{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Ut=(t,e)=>K`<span part="end" ${Ot("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${Ot("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,_t=(t,e)=>K`<span part="start" ${Ot("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${Ot("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`,Gt=K`<span part="end" ${Ot("endContainer")}><slot name="end" ${Ot("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,Wt=K`<span part="start" ${Ot("startContainer")}><slot name="start" ${Ot("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */
16
+ function Kt(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const Xt=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=Xt.get(i);void 0===o&&Xt.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=Xt.get(e);if(void 0!==i)return i.get(t)});class Yt{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,ve(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new re(o,t,e))}}function Qt(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],Te(s)||(e[s]=t[s]);return e}const Zt=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new re(t,1,t),transient:t=>new re(t,2,t)}),Jt=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Zt.singleton})}),te=new Map;function ee(t){return e=>Reflect.getOwnMetadata(t,e)}let ie=null;const oe=Object.freeze({createContainer:t=>new fe(null,Object.assign({},Jt.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:oe.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(ge,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||oe.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new fe(t,Object.assign({},Jt.default,e,{parentLocator:oe.findParentContainer})):ie||(ie=new fe(null,Object.assign({},Jt.default,e,{parentLocator:()=>null}))),getDesignParamtypes:ee("design:paramtypes"),getAnnotationParamtypes:ee("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=te.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=oe.getDesignParamtypes(t),o=oe.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?Qt(oe.getDependencies(i)):[]}else e=Qt(o);else if(void 0===o)e=Qt(i);else{e=Qt(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],Te(r)||(e[r]=o[r])}}else e=Qt(i);te.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?oe.findResponsibleContainer(this):oe.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof gt){const o=this.$fastController,n=()=>{oe.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||we,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)oe.defineProperty(t,e,n,s);else{oe.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new Yt(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=oe.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)oe.defineProperty(e,i,t[0]);else{const i=o?oe.getOrCreateAnnotationParamTypes(o.value):oe.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return ye.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=ne)=>(t.register=function(e){return ye.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),se=oe.createInterface("Container");oe.inject;const ne={scoped:!1};class re{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: "+this.state.name);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function ae(t){return this.get(t)}function le(t,e){return e(t)}class ce{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(ae,t)):new this.Type(...this.dependencies.map(ae,t),...e),null==this.transformers?i:this.transformers.reduce(le,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const he={$isResolver:!0,resolve:(t,e)=>e};function de(t){return"function"==typeof t.register}function ue(t){return function(t){return de(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const pe=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),ge="__DI_LOCATE_PARENT__",me=new Map;class fe{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(se,he),t instanceof Node&&t.addEventListener(ge,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())})}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],ke(e))if(de(e))e.register(this,r);else if(void 0!==e.prototype)ye.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],ke(o)&&(de(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){xe(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof re&&4===o.strategy?o.state.push(e):i.set(t,new re(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(xe(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=ue(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(xe(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=ue(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,e=!1){xe(t);const i=this;let s,n=i;if(e){let e=o;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(e=e.concat($e(s,n,i))),n=n.parent;return e}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return $e(s,n,i);if(n=n.parent,null==n)return o}return o}getFactory(t){let e=me.get(t);if(void 0===e){if(Ce(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");me.set(t,e=new ce(t,oe.getDependencies(t)))}return e}registerFactory(t,e){me.set(t,e)}createChild(t){return new fe(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(pe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(de(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const be=new WeakMap;function ve(t){return function(e,i,o){if(be.has(o))return be.get(o);const s=t(e,i,o);return be.set(o,s),s}}const ye=Object.freeze({instance:(t,e)=>new re(t,0,e),singleton:(t,e)=>new re(t,1,e),transient:(t,e)=>new re(t,2,e),callback:(t,e)=>new re(t,3,e),cachedCallback:(t,e)=>new re(t,3,ve(e)),aliasTo:(t,e)=>new re(e,5,t)});function xe(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function $e(t,e,i){if(t instanceof re&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const we="(anonymous)";function ke(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Ce=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),Ie={};function Te(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=Ie[t];if(void 0!==e)return e;const i=t.length;if(0===i)return Ie[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return Ie[t]=!1;return Ie[t]=!0}default:return!1}}function Fe(t){return t.toLowerCase()+":presentation"}const Ee=new Map,Oe=Object.freeze({define(t,e,i){const o=Fe(t);void 0===Ee.get(o)?Ee.set(o,e):Ee.set(o,!1),i.register(ye.instance(o,e))},forTag(t,e){const i=Fe(t),o=Ee.get(i);if(!1===o){return oe.findResponsibleContainer(e).get(i)}return o||null}});class Se{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?X.create(e):e instanceof X?e:X.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class De extends gt{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Oe.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Le(this===De?class extends De{}:this,t,e)}}function Re(t,e,i){return"function"==typeof t?t(e,i):t}Kt([v],De.prototype,"template",void 0),Kt([v],De.prototype,"styles",void 0);class Le{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new Se(Re(i.template,t,i),Re(i.styles,t,i));t.definePresentation(e);let s=Re(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Re(i.elementOptions,t,i),shadowOptions:s,attributes:Re(i.attributes,t,i)})}})}}function Ae(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class Ve extends De{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}Kt([st({attribute:"heading-level",mode:"fromView",converter:it})],Ve.prototype,"headinglevel",void 0),Kt([st({mode:"boolean"})],Ve.prototype,"expanded",void 0),Kt([st],Ve.prototype,"id",void 0),Ae(Ve,qt);const Pe="horizontal",ze="vertical";function He(...t){return t.every(t=>t instanceof HTMLElement)}let Me;var Ne;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Ne||(Ne={}));const Be={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var je;function qe(t,e,i){return i<t?e:i>e?t:i}function Ue(t,e,i){return Math.min(Math.max(i,t),e)}function _e(t,e,i=0){return[e,i]=[e,i].sort((t,e)=>t-e),e<=t&&t<i}!function(t){t.ltr="ltr",t.rtl="rtl"}(je||(je={}));let Ge=0;function We(t=""){return`${t}${Ge++}`}var Ke;!function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(Ke||(Ke={}));const Xe="single",Ye="multi";class Qe extends De{constructor(){super(...arguments),this.expandmode=Ye,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof Ve&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===Xe}adjust(t){this.activeItemIndex=qe(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof Ve&&t.expandbutton.focus()}}Kt([st({attribute:"expand-mode"})],Qe.prototype,"expandmode",void 0),Kt([v],Qe.prototype,"accordionItems",void 0);const Ze=(t,e)=>K`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Ot("control")}>${_t(0,e)}<span class="content" part="content"><slot ${Nt("defaultSlottedContent")}></slot></span>${Ut(0,e)}</a>`;class Je{}Kt([st({attribute:"aria-atomic"})],Je.prototype,"ariaAtomic",void 0),Kt([st({attribute:"aria-busy"})],Je.prototype,"ariaBusy",void 0),Kt([st({attribute:"aria-controls"})],Je.prototype,"ariaControls",void 0),Kt([st({attribute:"aria-current"})],Je.prototype,"ariaCurrent",void 0),Kt([st({attribute:"aria-describedby"})],Je.prototype,"ariaDescribedby",void 0),Kt([st({attribute:"aria-details"})],Je.prototype,"ariaDetails",void 0),Kt([st({attribute:"aria-disabled"})],Je.prototype,"ariaDisabled",void 0),Kt([st({attribute:"aria-errormessage"})],Je.prototype,"ariaErrormessage",void 0),Kt([st({attribute:"aria-flowto"})],Je.prototype,"ariaFlowto",void 0),Kt([st({attribute:"aria-haspopup"})],Je.prototype,"ariaHaspopup",void 0),Kt([st({attribute:"aria-hidden"})],Je.prototype,"ariaHidden",void 0),Kt([st({attribute:"aria-invalid"})],Je.prototype,"ariaInvalid",void 0),Kt([st({attribute:"aria-keyshortcuts"})],Je.prototype,"ariaKeyshortcuts",void 0),Kt([st({attribute:"aria-label"})],Je.prototype,"ariaLabel",void 0),Kt([st({attribute:"aria-labelledby"})],Je.prototype,"ariaLabelledby",void 0),Kt([st({attribute:"aria-live"})],Je.prototype,"ariaLive",void 0),Kt([st({attribute:"aria-owns"})],Je.prototype,"ariaOwns",void 0),Kt([st({attribute:"aria-relevant"})],Je.prototype,"ariaRelevant",void 0),Kt([st({attribute:"aria-roledescription"})],Je.prototype,"ariaRoledescription",void 0);class ti extends De{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}Kt([st],ti.prototype,"download",void 0),Kt([st],ti.prototype,"href",void 0),Kt([st],ti.prototype,"hreflang",void 0),Kt([st],ti.prototype,"ping",void 0),Kt([st],ti.prototype,"referrerpolicy",void 0),Kt([st],ti.prototype,"rel",void 0),Kt([st],ti.prototype,"target",void 0),Kt([st],ti.prototype,"type",void 0),Kt([v],ti.prototype,"defaultSlottedContent",void 0);class ei{}Kt([st({attribute:"aria-expanded"})],ei.prototype,"ariaExpanded",void 0),Ae(ei,Je),Ae(ti,qt,ei);const ii=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?je.rtl:je.ltr};class oi extends De{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=je.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(oi.intersectionService.requestPosition(this,this.handleIntersection),oi.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&oi.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,oi.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&oi.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&oi.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=ii(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=ii(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===je.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const t=this.anchorRect.left+o,e=this.anchorRect.right-o;t<this.viewportRect.left&&!(e>this.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t<this.viewportRect.left)&&(this.translateX=this.translateX-(e-this.viewportRect.right))}}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const t=this.anchorRect.top+o,e=this.anchorRect.bottom-o;t<this.viewportRect.top&&!(e>this.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(t<this.viewportRect.top)&&(this.translateY=this.translateY-(e-this.viewportRect.bottom))}}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),h.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}oi.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},Kt([st],oi.prototype,"anchor",void 0),Kt([st],oi.prototype,"viewport",void 0),Kt([st({attribute:"horizontal-positioning-mode"})],oi.prototype,"horizontalPositioningMode",void 0),Kt([st({attribute:"horizontal-default-position"})],oi.prototype,"horizontalDefaultPosition",void 0),Kt([st({attribute:"horizontal-viewport-lock",mode:"boolean"})],oi.prototype,"horizontalViewportLock",void 0),Kt([st({attribute:"horizontal-inset",mode:"boolean"})],oi.prototype,"horizontalInset",void 0),Kt([st({attribute:"horizontal-threshold"})],oi.prototype,"horizontalThreshold",void 0),Kt([st({attribute:"horizontal-scaling"})],oi.prototype,"horizontalScaling",void 0),Kt([st({attribute:"vertical-positioning-mode"})],oi.prototype,"verticalPositioningMode",void 0),Kt([st({attribute:"vertical-default-position"})],oi.prototype,"verticalDefaultPosition",void 0),Kt([st({attribute:"vertical-viewport-lock",mode:"boolean"})],oi.prototype,"verticalViewportLock",void 0),Kt([st({attribute:"vertical-inset",mode:"boolean"})],oi.prototype,"verticalInset",void 0),Kt([st({attribute:"vertical-threshold"})],oi.prototype,"verticalThreshold",void 0),Kt([st({attribute:"vertical-scaling"})],oi.prototype,"verticalScaling",void 0),Kt([st({attribute:"fixed-placement",mode:"boolean"})],oi.prototype,"fixedPlacement",void 0),Kt([st({attribute:"auto-update-mode"})],oi.prototype,"autoUpdateMode",void 0),Kt([v],oi.prototype,"anchorElement",void 0),Kt([v],oi.prototype,"viewportElement",void 0),Kt([v],oi.prototype,"initialLayoutComplete",void 0);const si={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},ni=Object.assign(Object.assign({},si),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),ri=Object.assign(Object.assign({},si),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),ai=Object.assign(Object.assign({},si),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),li=Object.assign(Object.assign({},ni),{verticalScaling:"fill"}),ci=Object.assign(Object.assign({},ri),{verticalScaling:"fill"}),hi=Object.assign(Object.assign({},ai),{verticalScaling:"fill"});class di extends De{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}}Kt([st],di.prototype,"fill",void 0),Kt([st],di.prototype,"color",void 0),Kt([st],di.prototype,"link",void 0),Kt([st],di.prototype,"shape",void 0);class ui extends De{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}Kt([st({attribute:"fill"})],ui.prototype,"fill",void 0),Kt([st({attribute:"color"})],ui.prototype,"color",void 0),Kt([st({mode:"boolean"})],ui.prototype,"circular",void 0);class pi extends ti{constructor(){super(...arguments),this.separator=!0}}Kt([v],pi.prototype,"separator",void 0),Ae(pi,qt,ei);class gi extends De{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(e=>{const i=e===t;this.setItemSeparator(e,i),this.setAriaCurrent(e,i)})}}setItemSeparator(t,e){t instanceof pi&&(t.separator=!e)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setAriaCurrent(t,e){const i=this.findChildWithHref(t);null===i&&t.hasAttribute("href")&&t instanceof pi?e?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current"):null!==i&&(e?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}Kt([v],gi.prototype,"slottedBreadcrumbItems",void 0);const mi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,fi=new WeakMap;function bi(t){const e=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return mi}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return o}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),h.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),h.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!mi)return null;let t=fi.get(this);return t||(t=this.attachInternals(),fi.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return st({mode:"boolean"})(e.prototype,"disabled"),st({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),st({attribute:"current-value"})(e.prototype,"currentValue"),st(e.prototype,"name"),st({mode:"boolean"})(e.prototype,"required"),v(e.prototype,"value"),e}function vi(t){class e extends(bi(t)){}class i extends e{constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return st({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),st({attribute:"current-checked",converter:et})(i.prototype,"currentChecked"),v(i.prototype,"defaultChecked"),v(i.prototype,"checked"),i}class yi extends De{}class xi extends(bi(yi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class $i extends xi{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.removeEventListener("click",this.handleClick)})}}Kt([st({mode:"boolean"})],$i.prototype,"autofocus",void 0),Kt([st({attribute:"form"})],$i.prototype,"formId",void 0),Kt([st],$i.prototype,"formaction",void 0),Kt([st],$i.prototype,"formenctype",void 0),Kt([st],$i.prototype,"formmethod",void 0),Kt([st({mode:"boolean"})],$i.prototype,"formnovalidate",void 0),Kt([st],$i.prototype,"formtarget",void 0),Kt([st],$i.prototype,"type",void 0),Kt([v],$i.prototype,"defaultSlottedContent",void 0);class wi{}Kt([st({attribute:"aria-expanded"})],wi.prototype,"ariaExpanded",void 0),Kt([st({attribute:"aria-pressed"})],wi.prototype,"ariaPressed",void 0),Ae(wi,Je),Ae($i,qt,wi);class ki{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:o}=t;return new Date(o,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(t),s=Object.assign({timeZone:"utc"},e);return new Intl.DateTimeFormat(i,s).format(o)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const o=`1-${t+1}-2017`;return this.getDate(o,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map((i,o)=>this.getWeekday(o,t,e))}}class Ci extends De{constructor(){super(...arguments),this.dateFormatter=new ki,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},s=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:o(s),month:t,start:i(s),year:e,previous:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:o,previous:s,next:n}=t,r=[];let a=1-i;for(;a<o+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?s:a>o?n:t,l=a<1?s.length+a:a>o?a-o:a,c=`${e}-${l}-${i}`,h={day:l,month:e,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=r[r.length-1];0===r.length||d.length%7==0?r.push([h]):d.push(h),a++}return r}dateInString(t,e){const i=e.split(",").map(t=>t.trim());return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some(e=>e===t)}getDayClassNames(t,e){const{day:i,month:o,year:s,disabled:n,selected:r}=t;return["day",e===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map(t=>({text:t}));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach((t,i)=>{t.abbr=e[i]})}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return"Enter"===t.key&&this.handleDateSelect(t,e),!0}}Kt([st({mode:"boolean"})],Ci.prototype,"readonly",void 0),Kt([st],Ci.prototype,"locale",void 0),Kt([st({converter:it})],Ci.prototype,"month",void 0),Kt([st({converter:it})],Ci.prototype,"year",void 0),Kt([st({attribute:"day-format",mode:"fromView"})],Ci.prototype,"dayFormat",void 0),Kt([st({attribute:"weekday-format",mode:"fromView"})],Ci.prototype,"weekdayFormat",void 0),Kt([st({attribute:"month-format",mode:"fromView"})],Ci.prototype,"monthFormat",void 0),Kt([st({attribute:"year-format",mode:"fromView"})],Ci.prototype,"yearFormat",void 0),Kt([st({attribute:"min-weeks",converter:it})],Ci.prototype,"minWeeks",void 0),Kt([st({attribute:"disabled-dates"})],Ci.prototype,"disabledDates",void 0),Kt([st({attribute:"selected-dates"})],Ci.prototype,"selectedDates",void 0);const Ii="none",Ti="default",Fi="sticky",Ei="default",Oi="columnheader",Si="rowheader",Di="default",Ri="header",Li="sticky-header";class Ai extends De{constructor(){super(...arguments),this.rowType=Di,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Vt(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Di&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Di&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}Kt([st({attribute:"grid-template-columns"})],Ai.prototype,"gridTemplateColumns",void 0),Kt([st({attribute:"row-type"})],Ai.prototype,"rowType",void 0),Kt([v],Ai.prototype,"rowData",void 0),Kt([v],Ai.prototype,"columnDefinitions",void 0),Kt([v],Ai.prototype,"cellItemTemplate",void 0),Kt([v],Ai.prototype,"headerCellItemTemplate",void 0),Kt([v],Ai.prototype,"rowIndex",void 0),Kt([v],Ai.prototype,"isActiveRow",void 0),Kt([v],Ai.prototype,"activeCellItemTemplate",void 0),Kt([v],Ai.prototype,"defaultCellItemTemplate",void 0),Kt([v],Ai.prototype,"defaultHeaderCellItemTemplate",void 0),Kt([v],Ai.prototype,"cellElements",void 0);class Vi extends De{constructor(){super(),this.noTabbing=!1,this.generateHeader=Ti,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,h.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(void 0===t){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=Vi.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=Vi.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Vt(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),h.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===Fi&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,h.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Ii&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Fi?Li:Ri,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}Vi.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),Kt([st({attribute:"no-tabbing",mode:"boolean"})],Vi.prototype,"noTabbing",void 0),Kt([st({attribute:"generate-header"})],Vi.prototype,"generateHeader",void 0),Kt([st({attribute:"grid-template-columns"})],Vi.prototype,"gridTemplateColumns",void 0),Kt([v],Vi.prototype,"rowsData",void 0),Kt([v],Vi.prototype,"columnDefinitions",void 0),Kt([v],Vi.prototype,"rowItemTemplate",void 0),Kt([v],Vi.prototype,"cellItemTemplate",void 0),Kt([v],Vi.prototype,"headerCellItemTemplate",void 0),Kt([v],Vi.prototype,"focusRowIndex",void 0),Kt([v],Vi.prototype,"focusColumnIndex",void 0),Kt([v],Vi.prototype,"defaultRowItemTemplate",void 0),Kt([v],Vi.prototype,"rowElementTag",void 0),Kt([v],Vi.prototype,"rowElements",void 0);const Pi=K`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,zi=K`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Hi extends De{constructor(){super(...arguments),this.cellType=Ei,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case Oi:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===Ei&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Oi&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case Oi:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}break;default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}}break;case"Escape":this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Oi:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=zi.render(this,this);break;case void 0:case Si:case Ei:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Pi.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}Kt([st({attribute:"cell-type"})],Hi.prototype,"cellType",void 0),Kt([st({attribute:"grid-column"})],Hi.prototype,"gridColumn",void 0),Kt([v],Hi.prototype,"rowData",void 0),Kt([v],Hi.prototype,"columnDefinition",void 0);const Mi=K`<div class="title" part="title" aria-label="${t=>t.dateFormatter.getDate(`${t.month}-2-${t.year}`,{month:"long",year:"numeric"})}"><span part="month">${t=>t.dateFormatter.getMonth(t.month)}</span><span part="year">${t=>t.dateFormatter.getYear(t.year)}</span></div>`,Ni=(t,e)=>{const i=t.tagFor(Ai);return K`<${i} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Pt(t=>t,((t,e)=>{const i=t.tagFor(Hi);return K`<${i} class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}" part="day" tabindex="-1" role="gridcell" grid-column="${(t,e)=>e.index+1}" @click="${(t,e)=>e.parentContext.parent.handleDateSelect(e.event,t)}" @keydown="${(t,e)=>e.parentContext.parent.handleKeydown(e.event,t)}" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${t=>e===`${t.month}-${t.day}-${t.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></${i}>`})(t,e),{positioning:!0})}</${i}>`},Bi=(t,e)=>{const i=t.tagFor(Vi),o=t.tagFor(Ai);return K`<${i} class="days interact" part="days" generate-header="none"><${o} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Pt(t=>t.getWeekdayText(),(t=>{const e=t.tagFor(Hi);return K`<${e} class="week-day" part="week-day" tabindex="-1" grid-column="${(t,e)=>e.index+1}" abbr="${t=>t.abbr}">${t=>t.text}</${e}>`})(t),{positioning:!0})}</${o}>${Pt(t=>t.getDays(),Ni(t,e))}</${i}>`};class ji extends De{}class qi extends De{}class Ui extends(vi(qi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class _i extends Ui{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function Gi(t){return He(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}Kt([st({attribute:"readonly",mode:"boolean"})],_i.prototype,"readOnly",void 0),Kt([v],_i.prototype,"defaultSlottedNodes",void 0),Kt([v],_i.prototype,"indeterminate",void 0);class Wi extends De{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=""+(null!=t?t:"");this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),b.notify(this,"value")}get value(){var t;return b.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}}Kt([v],Wi.prototype,"checked",void 0),Kt([v],Wi.prototype,"content",void 0),Kt([v],Wi.prototype,"defaultSelected",void 0),Kt([st({mode:"boolean"})],Wi.prototype,"disabled",void 0),Kt([st({attribute:"selected",mode:"boolean"})],Wi.prototype,"selectedAttribute",void 0),Kt([v],Wi.prototype,"selected",void 0),Kt([st({attribute:"value",mode:"fromView"})],Wi.prototype,"initialValue",void 0);class Ki{}Kt([v],Ki.prototype,"ariaChecked",void 0),Kt([v],Ki.prototype,"ariaPosInSet",void 0),Kt([v],Ki.prototype,"ariaSelected",void 0),Kt([v],Ki.prototype,"ariaSetSize",void 0),Ae(Ki,Je),Ae(Wi,qt,Ki);class Xi extends De{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return b.track(this,"options"),this._options}set options(t){this._options=t,b.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi");return this.options.filter(t=>t.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,o=t+i;let s=null;switch(i){case-1:s=this.options.reduceRight((t,e,i)=>!t&&!e.disabled&&i<o?e:t,s);break;case 1:s=this.options.reduce((t,e,i)=>!t&&!e.disabled&&i>o?e:t,s)}return this.options.indexOf(s)}handleChange(t,e){switch(e){case"selected":Xi.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Xi.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),o=i>-1?i:t;return this.selectedIndex=o,void(e===o&&this.selectedIndexChanged(e,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const o=e.filter(Xi.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach(t=>{const e=b.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=o.includes(t),e.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>!t.disabled))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.defaultSelected))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((t,e)=>(Gi(e)&&t.push(e),t),[]);const i=""+this.options.length;this.options.forEach((t,e)=>{t.id||(t.id=We("option-")),t.ariaPosInSet=""+(e+1),t.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}Xi.slottedOptionFilter=t=>Gi(t)&&!t.hidden,Xi.TYPE_AHEAD_TIMEOUT_MS=1e3,Kt([st({mode:"boolean"})],Xi.prototype,"disabled",void 0),Kt([v],Xi.prototype,"selectedIndex",void 0),Kt([v],Xi.prototype,"selectedOptions",void 0),Kt([v],Xi.prototype,"slottedOptions",void 0),Kt([v],Xi.prototype,"typeaheadBuffer",void 0);class Yi{}Kt([v],Yi.prototype,"ariaActiveDescendant",void 0),Kt([v],Yi.prototype,"ariaDisabled",void 0),Kt([v],Yi.prototype,"ariaExpanded",void 0),Kt([v],Yi.prototype,"ariaMultiSelectable",void 0),Ae(Yi,Je),Ae(Xi,Yi);const Qi="above",Zi="below";class Ji extends Xi{}class to extends(bi(Ji)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const eo="inline",io="list",oo="both",so="none";class no extends to{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=We("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}get isAutocompleteInline(){return this.autocomplete===eo||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===io||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===oo}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}get options(){return b.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,b.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return b.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),b.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==so||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})}))}focusoutHandler(t){if(this.updateValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),"deleteContentBackward"===t.inputType||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&this.filteredOptions.length&&(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection())}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":this.updateValue(!0),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.updateValue(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&(this.updateValue(),this.setInlineSelection());break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=Ue(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInlineSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Qi:Zi,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Qi?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}Kt([st({attribute:"autocomplete",mode:"fromView"})],no.prototype,"autocomplete",void 0),Kt([v],no.prototype,"maxHeight",void 0),Kt([st({attribute:"open",mode:"boolean"})],no.prototype,"open",void 0),Kt([st],no.prototype,"placeholder",void 0),Kt([st({attribute:"position"})],no.prototype,"positionAttribute",void 0),Kt([v],no.prototype,"position",void 0);class ro{}Kt([v],ro.prototype,"ariaAutoComplete",void 0),Kt([v],ro.prototype,"ariaControls",void 0),Ae(ro,Yi),Ae(no,qt,ro);function ao(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}const lo=document.createElement("div");class co{setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class ho extends co{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class uo extends co{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class po{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),b.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),h.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),h.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}Kt([v],po.prototype,"target",void 0);class go{constructor(t){this.target=t.style}setProperty(t,e){h.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){h.queueUpdate(()=>this.target.removeProperty(t))}}class mo{setProperty(t,e){mo.properties[t]=e;for(const i of mo.roots.values())vo.getOrCreate(mo.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete mo.properties[t];for(const e of mo.roots.values())vo.getOrCreate(mo.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=mo;if(!e.has(t)){e.add(t);const i=vo.getOrCreate(this.normalizeRoot(t));for(const t in mo.properties)i.setProperty(t,mo.properties[t])}}static unregisterRoot(t){const{roots:e}=mo;if(e.has(t)){e.delete(t);const i=vo.getOrCreate(mo.normalizeRoot(t));for(const t in mo.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===lo?document:t}}mo.roots=new Set,mo.properties={};const fo=new WeakMap,bo=h.supportsAdoptedStyleSheets?class extends co{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(X.create([e]))}}:po,vo=Object.freeze({getOrCreate(t){if(fo.has(t))return fo.get(t);let e;return t===lo?e=new mo:t instanceof Document?e=h.supportsAdoptedStyleSheets?new ho:new uo:e=t instanceof gt?new bo(t):new go(t),fo.set(t,e),e}});class yo extends mt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=yo.uniqueId(),yo.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new yo({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return yo.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=Co.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof yo&&(e=this.alias(e)),Co.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),Co.existsFor(t)&&Co.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(lo,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!Co.existsFor(e)&&Co.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}yo.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),yo.tokensById=new Map;class xo{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=b.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,$))}}class $o{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),b.getNotifier(this).notify(t.id))}get(t){return b.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const wo=new WeakMap,ko=new WeakMap;class Co{constructor(t){this.target=t,this.store=new $o,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=yo.getTokenById(e);if(i&&(i.notify(this.target),yo.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},wo.set(t,this),b.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof gt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return wo.get(t)||new Co(t)}static existsFor(t){return wo.has(t)}static findParent(t){if(lo!==t.target){let e=ao(t.target);for(;null!==e;){if(wo.has(e))return wo.get(e);e=ao(e)}return Co.getOrCreate(lo)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==lo?Co.getOrCreate(lo):null}while(null!==i);return null}get parent(){return ko.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=Co.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){yo.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),yo.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=Co.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){ko.get(this).removeChild(this)}}appendChild(t){t.parent&&ko.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));ko.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),b.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),b.getNotifier(this.store).unsubscribe(t),t.parent===this&&ko.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=ao(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Co.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Co.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=yo.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);yo.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new xo(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}Co.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){vo.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(Co.getOrCreate(e).get(t)))}remove(t,e){vo.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},Kt([v],Co.prototype,"children",void 0);const Io=Object.freeze({create:function(t){return yo.from(t)},notifyConnection:t=>!(!t.isConnected||!Co.existsFor(t))&&(Co.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!Co.existsFor(t))&&(Co.getOrCreate(t).unbind(),!0),registerRoot(t=lo){mo.registerRoot(t)},unregisterRoot(t=lo){mo.unregisterRoot(t)}}),To=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Fo=new Map,Eo=new Map;let Oo=null;const So=oe.createInterface(t=>t.cachedCallback(t=>(null===Oo&&(Oo=new Ro(null,t)),Oo))),Do=Object.freeze({tagFor:t=>Eo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return oe.findResponsibleContainer(t).get(So)},getOrCreate(t){if(!t)return null===Oo&&(Oo=oe.getOrCreateDOMContainer().get(So)),Oo;const e=t.$$designSystem$$;if(e)return e;const i=oe.getOrCreateDOMContainer(t);if(i.has(So,!1))return i.get(So);{const e=new Ro(t,i);return i.register(ye.instance(So,e)),e}}});class Ro{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>To.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=Fo.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case To.ignoreDuplicate:return;case To.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=Fo.get(u)}}g&&((Eo.has(d)||d===De)&&(d=class extends d{}),Fo.set(u,d),Eo.set(d,u),h&&Eo.set(h,u)),i.push(new Lo(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&Io.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class Lo{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Oe.define(this.name,t,this.container)}defineElement(t){this.definition=new lt(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Do.tagFor(t)}}
17
+ /*!
18
+ * tabbable 5.2.1
19
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
20
+ */
21
+ var Ao=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Vo=Ao.join(","),Po="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zo=function(t){return"INPUT"===t.tagName},Ho=function(t){return function(t){return zo(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},Mo=function(t,e){return!(e.disabled||function(t){return zo(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Po.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Po.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(zo(t)||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||"BUTTON"===t.tagName)for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i<e.children.length;i++){var o=e.children.item(i);if("LEGEND"===o.tagName)return!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},No=function(t,e){return!(!Mo(t,e)||Ho(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},Bo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Po.call(t,Vo)&&No(e,t)},jo=Ao.concat("iframe").join(","),qo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Po.call(t,jo)&&Mo(e,t)};class Uo extends De{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>Uo.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),h.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=b.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:Bo(e)||Uo.isFocusableFastElement(e)&&Uo.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Uo.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>Bo(t))}}Kt([st({mode:"boolean"})],Uo.prototype,"modal",void 0),Kt([st({mode:"boolean"})],Uo.prototype,"hidden",void 0),Kt([st({attribute:"trap-focus",mode:"boolean"})],Uo.prototype,"trapFocus",void 0),Kt([st({attribute:"aria-describedby"})],Uo.prototype,"ariaDescribedby",void 0),Kt([st({attribute:"aria-labelledby"})],Uo.prototype,"ariaLabelledby",void 0),Kt([st({attribute:"aria-label"})],Uo.prototype,"ariaLabel",void 0);class _o extends De{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit("toggle")}}Kt([st({mode:"boolean"})],_o.prototype,"expanded",void 0),Kt([st],_o.prototype,"title",void 0);const Go="separator";class Wo extends De{constructor(){super(...arguments),this.role=Go,this.orientation=Pe}}Kt([st],Wo.prototype,"role",void 0),Kt([st],Wo.prototype,"orientation",void 0);const Ko="next",Xo="previous";class Yo extends De{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Ko}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"!==e&&"Space"!==e||this.$emit("click",t),"Escape"===e&&this.blur()}}}Kt([st({mode:"boolean"})],Yo.prototype,"disabled",void 0),Kt([st({attribute:"aria-hidden",converter:et})],Yo.prototype,"hiddenFromAT",void 0),Kt([st],Yo.prototype,"direction",void 0);class Qo extends Xi{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,e)=>{t.checked=_e(e,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=_e(e,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=_e(e,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((t,e)=>{t.checked=_e(e,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case"Home":return void this.checkFirstOption(i);case"ArrowDown":return void this.checkNextOption(i);case"ArrowUp":return void this.checkPreviousOption(i);case"End":return void this.checkLastOption(i);case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Escape":return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case" ":if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach(t=>{t.checked=!e&&void 0}),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const o=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));o!==e&&h.queueUpdate(()=>{this.size=o})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(t=>!t.disabled),e=!t.every(t=>t.selected);t.forEach(t=>t.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach(t=>t.checked=!this.multiple&&void 0),t||(this.rangeStartIndex=-1)}}Kt([v],Qo.prototype,"activeIndex",void 0),Kt([st({mode:"boolean"})],Qo.prototype,"multiple",void 0),Kt([st({converter:it})],Qo.prototype,"size",void 0);class Zo extends De{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(t){void 0!==t&&t.forEach(t=>{1===t.nodeType&&"listitem"===t.getAttribute("role")&&(t.id=t.id||We("option-"),this.optionElements.push(t))})}}Kt([v],Zo.prototype,"menuElements",void 0),Kt([v],Zo.prototype,"headerElements",void 0),Kt([v],Zo.prototype,"footerElements",void 0),Kt([v],Zo.prototype,"suggestionsAvailableText",void 0);const Jo=K`<template>${t=>t.value}</template>`;class ts extends De{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(t){return t.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var t,e;this.disconnectView(),this.customView=null!==(e=null===(t=this.contentsTemplate)||void 0===t?void 0:t.render(this,this))&&void 0!==e?e:Jo.render(this,this)}disconnectView(){var t;null===(t=this.customView)||void 0===t||t.dispose(),this.customView=void 0}}Kt([st({attribute:"value"})],ts.prototype,"value",void 0),Kt([v],ts.prototype,"contentsTemplate",void 0);class es extends De{}const is=K`<template>${t=>t.value}</template>`;class os extends De{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(t){return!t.defaultPrevented&&("Enter"!==t.key||(this.handleInvoke(),!1))}handleClick(t){return t.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var t,e;this.disconnectView(),this.customView=null!==(e=null===(t=this.contentsTemplate)||void 0===t?void 0:t.render(this,this))&&void 0!==e?e:is.render(this,this)}disconnectView(){var t;null===(t=this.customView)||void 0===t||t.dispose(),this.customView=void 0}}Kt([st({attribute:"value"})],os.prototype,"value",void 0),Kt([v],os.prototype,"contentsTemplate",void 0);class ss extends De{}class ns extends(bi(ss)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const rs=K`<input slot="input-region" role="combobox" type="text" autocapitalize="off" autocomplete="off" haspopup="list" aria-label="${t=>t.label}" aria-labelledby="${t=>t.labelledBy}" placeholder="${t=>t.placeholder}" ${Ot("inputElement")}></input>`;class as extends ns{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=t=>{this.query=this.inputElement.value},this.handleInputClick=t=>{t.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:h.queueUpdate(this.setRegionProps))},this.configLookup={top:ni,bottom:ri,tallest:ai,"top-fill":li,"bottom-fill":ci,"tallest-fill":hi}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map(t=>t.trim()).filter(t=>""!==t)}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&h.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=0===this.filteredOptionsList.length&&0===this.menuElement.querySelectorAll('[role="listitem"]').length,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(h.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&h.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=rs.render(this,this.listElement);const t=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(e=>e.tagName===t),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=We("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),h.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),null!==this.inputElementView&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new Vt(t=>t.selectedItems,t=>t.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new Vt(t=>t.filteredOptionsList,t=>t.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(t){if(this.flyoutOpen!==t){if(t&&document.activeElement===this.inputElement)return this.flyoutOpen=t,void h.queueUpdate(()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()});this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(t){t.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(t){if(t.defaultPrevented)return!1;switch(t.key){case"ArrowDown":if(this.flyoutOpen){const t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case"ArrowUp":if(this.flyoutOpen){const t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case"Escape":return this.toggleFlyout(!1),!1;case"Enter":return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case"ArrowRight":return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case"ArrowLeft":return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case"Delete":case"Backspace":{if(null===document.activeElement)return!0;if(document.activeElement===this.inputElement)return 0!==this.inputElement.selectionStart||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);const t=Array.from(this.listElement.children),e=t.indexOf(document.activeElement);return!(e>-1)||(this.selection=this.selectedItems.splice(e,1).toString(),h.queueUpdate(()=>{t[Math.min(t.length,e)].focus()}),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(t){return!1}handleFocusOut(t){return void 0!==this.menuElement&&this.menuElement.contains(t.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),h.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(t){h.queueUpdate(()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})})}checkMaxItems(){if(void 0!==this.inputElement)if(void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));t[t.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(t){if(t.defaultPrevented)return!1;if(t.target instanceof os){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(t.target);if(-1!==e){const t=this.selectedItems.slice();t.splice(e,1),this.selection=t.toString(),h.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(t){return!t.defaultPrevented&&(!(t.target instanceof ts)||(void 0!==t.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${t.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(t){if(0===this.selectedItems.length)return void this.inputElement.focus();const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=e.indexOf(document.activeElement);-1===i&&(i=e.length);const o=Math.min(e.length,Math.max(0,i+t));o===e.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?e[o-1].focus():this.inputElement.focus():e[o].focus()}}disableMenu(){var t,e,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-activedescendant"),null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(t){if(!this.flyoutOpen||-1===t||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach(t=>{t.setAttribute("aria-selected","false")}),this.menuFocusIndex=t,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const e=this.menuElement.optionElements[this.menuFocusIndex];e.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,e.offsetTop)}updateListItemTemplate(){var t;this.activeListItemTemplate=null!==(t=this.listItemTemplate)&&void 0!==t?t:this.defaultListItemTemplate}updateOptionTemplate(){var t;this.activeMenuOptionTemplate=null!==(t=this.menuOptionTemplate)&&void 0!==t?t:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(t=>-1===this.selectedItems.indexOf(t))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter(t=>-1!==t.indexOf(this.query)))}updateMenuConfig(){let t=this.configLookup[this.menuPlacement];null===t&&(t=ci),this.menuConfig=Object.assign(Object.assign({},t),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}Kt([st({attribute:"selection"})],as.prototype,"selection",void 0),Kt([st({attribute:"options"})],as.prototype,"options",void 0),Kt([st({attribute:"filter-selected",mode:"boolean"})],as.prototype,"filterSelected",void 0),Kt([st({attribute:"filter-query",mode:"boolean"})],as.prototype,"filterQuery",void 0),Kt([st({attribute:"max-selected"})],as.prototype,"maxSelected",void 0),Kt([st({attribute:"no-suggestions-text"})],as.prototype,"noSuggestionsText",void 0),Kt([st({attribute:"suggestions-available-text"})],as.prototype,"suggestionsAvailableText",void 0),Kt([st({attribute:"loading-text"})],as.prototype,"loadingText",void 0),Kt([st({attribute:"label"})],as.prototype,"label",void 0),Kt([st({attribute:"labelledby"})],as.prototype,"labelledBy",void 0),Kt([st({attribute:"placeholder"})],as.prototype,"placeholder",void 0),Kt([st({attribute:"menu-placement"})],as.prototype,"menuPlacement",void 0),Kt([v],as.prototype,"showLoading",void 0),Kt([v],as.prototype,"listItemTemplate",void 0),Kt([v],as.prototype,"defaultListItemTemplate",void 0),Kt([v],as.prototype,"activeListItemTemplate",void 0),Kt([v],as.prototype,"menuOptionTemplate",void 0),Kt([v],as.prototype,"defaultMenuOptionTemplate",void 0),Kt([v],as.prototype,"activeMenuOptionTemplate",void 0),Kt([v],as.prototype,"listItemContentsTemplate",void 0),Kt([v],as.prototype,"menuOptionContentsTemplate",void 0),Kt([v],as.prototype,"optionsList",void 0),Kt([v],as.prototype,"query",void 0),Kt([v],as.prototype,"filteredOptionsList",void 0),Kt([v],as.prototype,"flyoutOpen",void 0),Kt([v],as.prototype,"menuId",void 0),Kt([v],as.prototype,"selectedListTag",void 0),Kt([v],as.prototype,"menuTag",void 0),Kt([v],as.prototype,"menuFocusIndex",void 0),Kt([v],as.prototype,"menuFocusOptionId",void 0),Kt([v],as.prototype,"showNoOptions",void 0),Kt([v],as.prototype,"menuConfig",void 0),Kt([v],as.prototype,"selectedItems",void 0);const ls="menuitem",cs="menuitemcheckbox",hs="menuitemradio",ds={[ls]:"menuitem",[cs]:"menuitemcheckbox",[hs]:"menuitemradio"};class us extends De{constructor(){super(...arguments),this.role=ls,this.hasSubmenu=!1,this.currentDirection=je.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case cs:this.checked=!this.checked;break;case ls:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case hs:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=ii(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}}Kt([st({mode:"boolean"})],us.prototype,"disabled",void 0),Kt([st({mode:"boolean"})],us.prototype,"expanded",void 0),Kt([v],us.prototype,"startColumnCount",void 0),Kt([st],us.prototype,"role",void 0),Kt([st({mode:"boolean"})],us.prototype,"checked",void 0),Kt([v],us.prototype,"submenuRegion",void 0),Kt([v],us.prototype,"hasSubmenu",void 0),Kt([v],us.prototype,"currentDirection",void 0),Kt([v],us.prototype,"submenu",void 0),Ae(us,qt);class ps extends De{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&He(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||void 0===this.menuItems||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce((t,e)=>{const i=function(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e!==ls&&null===i||e===ls&&null!==i?1:e!==ls&&null!==i?2:0}(e);return t>i?t:i},0);e.forEach((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof us&&(t.startColumnCount=i)})},this.changeHandler=t=>{if(void 0===this.menuItems)return;const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===hs&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===hs&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>He(t)&&ps.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),h.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented&&void 0!==this.menuItems)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}ps.focusableElementRoles=ds,Kt([v],ps.prototype,"items",void 0);class gs extends De{}class ms extends(bi(gs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const fs="text";class bs extends ms{constructor(){super(...arguments),this.type=fs}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}Kt([st({attribute:"readonly",mode:"boolean"})],bs.prototype,"readOnly",void 0),Kt([st({mode:"boolean"})],bs.prototype,"autofocus",void 0),Kt([st],bs.prototype,"placeholder",void 0),Kt([st],bs.prototype,"type",void 0),Kt([st],bs.prototype,"list",void 0),Kt([st({converter:it})],bs.prototype,"maxlength",void 0),Kt([st({converter:it})],bs.prototype,"minlength",void 0),Kt([st],bs.prototype,"pattern",void 0),Kt([st({converter:it})],bs.prototype,"size",void 0),Kt([st({mode:"boolean"})],bs.prototype,"spellcheck",void 0),Kt([v],bs.prototype,"defaultSlottedNodes",void 0);class vs{}Ae(vs,Je),Ae(bs,qt,vs);class ys extends De{}class xs extends(bi(ys)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class $s extends xs{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&h.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}Kt([st({attribute:"readonly",mode:"boolean"})],$s.prototype,"readOnly",void 0),Kt([st({mode:"boolean"})],$s.prototype,"autofocus",void 0),Kt([st({attribute:"hide-step",mode:"boolean"})],$s.prototype,"hideStep",void 0),Kt([st],$s.prototype,"placeholder",void 0),Kt([st],$s.prototype,"list",void 0),Kt([st({converter:it})],$s.prototype,"maxlength",void 0),Kt([st({converter:it})],$s.prototype,"minlength",void 0),Kt([st({converter:it})],$s.prototype,"size",void 0),Kt([st({converter:it})],$s.prototype,"step",void 0),Kt([st({converter:it})],$s.prototype,"max",void 0),Kt([st({converter:it})],$s.prototype,"min",void 0),Kt([v],$s.prototype,"defaultSlottedNodes",void 0),Ae($s,qt,vs);class ws extends De{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}Kt([st({converter:it})],ws.prototype,"value",void 0),Kt([st({converter:it})],ws.prototype,"min",void 0),Kt([st({converter:it})],ws.prototype,"max",void 0),Kt([st({mode:"boolean"})],ws.prototype,"paused",void 0),Kt([v],ws.prototype,"percentComplete",void 0);class ks extends De{constructor(){super(...arguments),this.orientation=Pe,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in Be&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===je.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===je.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("value")===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=ii(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}Kt([st({attribute:"readonly",mode:"boolean"})],ks.prototype,"readOnly",void 0),Kt([st({attribute:"disabled",mode:"boolean"})],ks.prototype,"disabled",void 0),Kt([st],ks.prototype,"name",void 0),Kt([st],ks.prototype,"value",void 0),Kt([st],ks.prototype,"orientation",void 0),Kt([v],ks.prototype,"childItems",void 0),Kt([v],ks.prototype,"slottedRadioButtons",void 0);class Cs extends De{}class Is extends(vi(Cs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ts extends Is{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}Kt([st({attribute:"readonly",mode:"boolean"})],Ts.prototype,"readOnly",void 0),Kt([v],Ts.prototype,"name",void 0),Kt([v],Ts.prototype,"defaultSlottedNodes",void 0);class Fs extends De{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&h.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e>=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>=e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}Kt([st({converter:it})],Fs.prototype,"speed",void 0),Kt([st],Fs.prototype,"duration",void 0),Kt([st],Fs.prototype,"easing",void 0),Kt([st({attribute:"flippers-hidden-from-at",converter:et})],Fs.prototype,"flippersHiddenFromAT",void 0),Kt([v],Fs.prototype,"scrolling",void 0),Kt([v],Fs.prototype,"scrollItems",void 0),Kt([st({attribute:"view"})],Fs.prototype,"view",void 0);function Es(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}class Os extends De{}class Ss extends(bi(Os)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ds extends Ss{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&h.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}Kt([st({attribute:"readonly",mode:"boolean"})],Ds.prototype,"readOnly",void 0),Kt([st({mode:"boolean"})],Ds.prototype,"autofocus",void 0),Kt([st],Ds.prototype,"placeholder",void 0),Kt([st],Ds.prototype,"list",void 0),Kt([st({converter:it})],Ds.prototype,"maxlength",void 0),Kt([st({converter:it})],Ds.prototype,"minlength",void 0),Kt([st],Ds.prototype,"pattern",void 0),Kt([st({converter:it})],Ds.prototype,"size",void 0),Kt([st({mode:"boolean"})],Ds.prototype,"spellcheck",void 0),Kt([v],Ds.prototype,"defaultSlottedNodes",void 0);class Rs{}Ae(Rs,Je),Ae(Ds,qt,Rs);class Ls extends Qo{}class As extends(bi(Ls)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Vs extends As{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=We("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void h.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return b.track(this,"value"),this._value}set value(t){var e,i,o,s,n,r,a;const l=""+this._value;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex(e=>e.value===t),l=null!==(o=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==o?o:null,c=null!==(n=null===(s=this._options[e])||void 0===s?void 0:s.value)&&void 0!==n?n:null;-1!==e&&l===c||(t="",this.selectedIndex=e),t=null!==(a=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==a?a:t}l!==t&&(this._value=t,super.valueChanged(l,t),b.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Qi:Zi,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Qi?~~t.top:~~e}get displayValue(){var t,e;return b.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach(t=>{b.getNotifier(t).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,e),this.options.forEach(t=>{b.getNotifier(t).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach((t,e)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);o&&(o.selected=t.selected)})}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(Xi.slottedOptionFilter),i=null==e?void 0:e.findIndex(t=>t.hasAttribute("selected")||t.selected||t.value===this.value);this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)}))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case" ":t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case"Home":case"End":t.preventDefault();break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e in Be)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&b.notify(this,"displayValue")}}Kt([st({attribute:"open",mode:"boolean"})],Vs.prototype,"open",void 0),Kt([function(t,e,i){return Object.assign({},i,{get:function(){return b.trackVolatile(),i.get.apply(this)}})}],Vs.prototype,"collapsible",null),Kt([v],Vs.prototype,"control",void 0),Kt([st({attribute:"position"})],Vs.prototype,"positionAttribute",void 0),Kt([v],Vs.prototype,"position",void 0),Kt([v],Vs.prototype,"maxHeight",void 0);class Ps{}Kt([v],Ps.prototype,"ariaControls",void 0),Ae(Ps,Yi),Ae(Vs,qt,Ps);class zs extends De{constructor(){super(...arguments),this.shape="rect"}}Kt([st],zs.prototype,"fill",void 0),Kt([st],zs.prototype,"shape",void 0),Kt([st],zs.prototype,"pattern",void 0),Kt([st({mode:"boolean"})],zs.prototype,"shimmer",void 0);function Hs(t,e,i,o){let s=Ue(0,1,(t-e)/(i-e));return o===je.rtl&&(s=1-s),s}const Ms={min:0,max:0,direction:je.ltr,orientation:Pe,disabled:!1};class Ns extends De{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=je.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||je.ltr,this.sliderOrientation=s||Pe,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=Ms.direction||je.ltr,this.sliderOrientation=Ms.orientation,this.sliderMaxPosition=Ms.max,this.sliderMinPosition=Ms.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:je.ltr,e=Hs(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===Pe?t===je.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=b.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}Kt([v],Ns.prototype,"positionStyle",void 0),Kt([st],Ns.prototype,"position",void 0),Kt([st({attribute:"hide-mark",mode:"boolean"})],Ns.prototype,"hideMark",void 0),Kt([st({attribute:"disabled",mode:"boolean"})],Ns.prototype,"disabled",void 0),Kt([v],Ns.prototype,"sliderOrientation",void 0),Kt([v],Ns.prototype,"sliderMinPosition",void 0),Kt([v],Ns.prototype,"sliderMaxPosition",void 0),Kt([v],Ns.prototype,"sliderDirection",void 0);class Bs extends De{}class js extends(bi(Bs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const qs="single-value";class Us extends js{constructor(){super(...arguments),this.direction=je.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Pe,this.mode=qs,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===Pe?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=Hs(t,this.orientation===Pe?this.trackMinWidth:this.trackMinHeight,this.orientation===Pe?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===Pe?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=ii(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==je.rtl&&this.orientation!==ze?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==je.rtl&&this.orientation!==ze?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=100*(1-Hs(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===Pe?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}Kt([st({attribute:"readonly",mode:"boolean"})],Us.prototype,"readOnly",void 0),Kt([v],Us.prototype,"direction",void 0),Kt([v],Us.prototype,"isDragging",void 0),Kt([v],Us.prototype,"position",void 0),Kt([v],Us.prototype,"trackWidth",void 0),Kt([v],Us.prototype,"trackMinWidth",void 0),Kt([v],Us.prototype,"trackHeight",void 0),Kt([v],Us.prototype,"trackLeft",void 0),Kt([v],Us.prototype,"trackMinHeight",void 0),Kt([v],Us.prototype,"valueTextFormatter",void 0),Kt([st({converter:it})],Us.prototype,"min",void 0),Kt([st({converter:it})],Us.prototype,"max",void 0),Kt([st({converter:it})],Us.prototype,"step",void 0),Kt([st],Us.prototype,"orientation",void 0),Kt([st],Us.prototype,"mode",void 0);class _s extends De{}class Gs extends(vi(_s)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ws extends Gs{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}Kt([st({attribute:"readonly",mode:"boolean"})],Ws.prototype,"readOnly",void 0),Kt([v],Ws.prototype,"defaultSlottedNodes",void 0);class Ks extends De{}class Xs extends De{}Kt([st({mode:"boolean"})],Xs.prototype,"disabled",void 0);const Ys="horizontal";class Qs extends De{constructor(){super(...arguments),this.orientation=Ys,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot){const t=this.activeTabIndex===i&&this.isFocusableElement(e);this.activeindicator&&this.isFocusableElement(e)&&(this.showActiveIndicator=!0);const o=this.tabIds[i],s=this.tabpanelIds[i];e.setAttribute("id",o),e.setAttribute("aria-selected",t?"true":"false"),e.setAttribute("aria-controls",s),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",t?"0":"-1"),t&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id",o),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"tab-"+We()})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"panel-"+We()})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ys}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=qe(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Kt([st],Qs.prototype,"orientation",void 0),Kt([st],Qs.prototype,"activeid",void 0),Kt([v],Qs.prototype,"tabs",void 0),Kt([v],Qs.prototype,"tabpanels",void 0),Kt([st({mode:"boolean"})],Qs.prototype,"activeindicator",void 0),Kt([v],Qs.prototype,"activeIndicatorRef",void 0),Kt([v],Qs.prototype,"showActiveIndicator",void 0),Ae(Qs,qt);class Zs extends De{}class Js extends(bi(Zs)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const tn="none";class en extends Js{constructor(){super(...arguments),this.resize=tn,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}}Kt([st({mode:"boolean"})],en.prototype,"readOnly",void 0),Kt([st],en.prototype,"resize",void 0),Kt([st({mode:"boolean"})],en.prototype,"autofocus",void 0),Kt([st({attribute:"form"})],en.prototype,"formId",void 0),Kt([st],en.prototype,"list",void 0),Kt([st({converter:it})],en.prototype,"maxlength",void 0),Kt([st({converter:it})],en.prototype,"minlength",void 0),Kt([st],en.prototype,"name",void 0),Kt([st],en.prototype,"placeholder",void 0),Kt([st({converter:it,mode:"fromView"})],en.prototype,"cols",void 0),Kt([st({converter:it,mode:"fromView"})],en.prototype,"rows",void 0),Kt([st({mode:"boolean"})],en.prototype,"spellcheck",void 0),Kt([v],en.prototype,"defaultSlottedNodes",void 0),Ae(en,vs);const on=Object.freeze({[Be.ArrowUp]:{[ze]:-1},[Be.ArrowDown]:{[ze]:1},[Be.ArrowLeft]:{[Pe]:{[je.ltr]:-1,[je.rtl]:1}},[Be.ArrowRight]:{[Pe]:{[je.ltr]:1,[je.rtl]:-1}}});class sn extends De{constructor(){super(...arguments),this._activeIndex=0,this.direction=je.ltr,this.orientation=Pe,this.startEndSlotChange=()=>{this.$fastController.isConnected&&this.reduceFocusableElements()}}get activeIndex(){return b.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=Ue(0,this.focusableElements.length-1,t),b.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=ii(this),this.start.addEventListener("slotchange",this.startEndSlotChange),this.end.addEventListener("slotchange",this.startEndSlotChange)}disconnectedCallback(){super.disconnectedCallback(),this.start.removeEventListener("slotchange",this.startEndSlotChange),this.end.removeEventListener("slotchange",this.startEndSlotChange)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=on[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=on[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in Be)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(sn.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>qo(t));return qo(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(sn.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}Kt([v],sn.prototype,"direction",void 0),Kt([st],sn.prototype,"orientation",void 0),Kt([v],sn.prototype,"slottedItems",void 0),Kt([v],sn.prototype,"slottedLabel",void 0);class nn{}Kt([st({attribute:"aria-labelledby"})],nn.prototype,"ariaLabelledby",void 0),Kt([st({attribute:"aria-label"})],nn.prototype,"ariaLabel",void 0),Ae(nn,Je),Ae(sn,qt,nn);const rn="top",an="right",ln="bottom",cn="left",hn="start",dn="end",un="top-left",pn="top-right",gn="bottom-left",mn="bottom-right",fn="top-start",bn="top-end",vn="bottom-start",yn="bottom-end";class xn extends De{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=je.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=t=>{this.isRegionHovered=!0},this.handleRegionMouseOut=t=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=t=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=t=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=ii(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),h.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startShowDelayTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case rn:case ln:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case an:case cn:case hn:case dn:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case un:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case pn:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case gn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case mn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case fn:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case bn:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case vn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case yn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}Kt([st({mode:"boolean"})],xn.prototype,"visible",void 0),Kt([st],xn.prototype,"anchor",void 0),Kt([st],xn.prototype,"delay",void 0),Kt([st],xn.prototype,"position",void 0),Kt([st({attribute:"auto-update-mode"})],xn.prototype,"autoUpdateMode",void 0),Kt([st({attribute:"horizontal-viewport-lock"})],xn.prototype,"horizontalViewportLock",void 0),Kt([st({attribute:"vertical-viewport-lock"})],xn.prototype,"verticalViewportLock",void 0),Kt([v],xn.prototype,"anchorElement",void 0),Kt([v],xn.prototype,"viewportElement",void 0),Kt([v],xn.prototype,"verticalPositioningMode",void 0),Kt([v],xn.prototype,"horizontalPositioningMode",void 0),Kt([v],xn.prototype,"horizontalInset",void 0),Kt([v],xn.prototype,"verticalInset",void 0),Kt([v],xn.prototype,"horizontalScaling",void 0),Kt([v],xn.prototype,"verticalScaling",void 0),Kt([v],xn.prototype,"verticalDefaultPosition",void 0),Kt([v],xn.prototype,"horizontalDefaultPosition",void 0),Kt([v],xn.prototype,"tooltipVisible",void 0),Kt([v],xn.prototype,"currentDirection",void 0);function $n(t){return He(t)&&"treeitem"===t.getAttribute("role")}class wn extends De{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>$n(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{$n(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>$n(t));return t?t.length:0}}Kt([st({mode:"boolean"})],wn.prototype,"expanded",void 0),Kt([st({mode:"boolean"})],wn.prototype,"selected",void 0),Kt([st({mode:"boolean"})],wn.prototype,"disabled",void 0),Kt([v],wn.prototype,"focusable",void 0),Kt([v],wn.prototype,"childItems",void 0),Kt([v],wn.prototype,"items",void 0),Kt([v],wn.prototype,"nested",void 0),Kt([v],wn.prototype,"renderCollapsedChildren",void 0),Ae(wn,qt);class kn extends De{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&wn.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case"Home":return void(e.length&&wn.focusItem(e[0]));case"End":return void(e.length&&wn.focusItem(e[e.length-1]));case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof wn&&e.childItemLength()>0&&e.expanded?e.expanded=!1:e instanceof wn&&e.parentElement instanceof wn&&wn.focusItem(e.parentElement)}return!1;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof wn&&e.childItemLength()>0&&!e.expanded?e.expanded=!0:e instanceof wn&&e.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case"ArrowDown":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case"ArrowUp":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case"Enter":return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&$n(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach(t=>{$n(t)&&(t.nested=this.nested)})},this.isFocusableElement=t=>$n(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),h.queueUpdate(()=>{this.setItems()})}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&$n(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(e)+t];He(o)&&wn.focusItem(o)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some(t=>$n(t)&&t.querySelector("[role='treeitem']"))}getVisibleNodes(){return function(t,e){if(!t||!e||!He(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}Kt([st({attribute:"render-collapsed-nodes"})],kn.prototype,"renderCollapsedNodes",void 0),Kt([v],kn.prototype,"currentSelected",void 0),Kt([v],kn.prototype,"slottedTreeItems",void 0);class Cn extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Cn(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const In=Cn.with(window.matchMedia("(forced-colors)"));Cn.with(window.matchMedia("(prefers-color-scheme: dark)")),Cn.with(window.matchMedia("(prefers-color-scheme: light)"));class Tn{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){b.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){b.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function Fn(t){return`:host([hidden]){display:none}:host{display:${t}}`}const En=function(){if("boolean"==typeof Me)return Me;if("undefined"==typeof window||!window.document||!window.document.createElement)return Me=!1,Me;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),Me=!0}catch(t){Me=!1}finally{document.head.removeChild(t)}return Me}()?"focus-visible":"focus";function On(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function Sn(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Dn(t,e,i){return isNaN(t)?e:e+t*(i-e)}function Rn(t){return t*(Math.PI/180)}function Ln(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function An(t,e,i){if(t<=0)return e%360;if(t>=1)return i%360;const o=(e-i+360)%360;return o<=(i-e+360)%360?(e-o*t+360)%360:(e+o*t+360)%360}function Vn(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}class Pn{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new Pn(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new Pn(Vn(this.h,t),Vn(this.s,t),Vn(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class zn{constructor(t,e,i){this.h=t,this.s=e,this.v=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new zn(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new zn(Vn(this.h,t),Vn(this.s,t),Vn(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class Hn{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Hn(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Hn(Vn(this.l,t),Vn(this.a,t),Vn(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Hn.epsilon=216/24389,Hn.kappa=24389/27;class Mn{constructor(t,e,i){this.l=t,this.c=e,this.h=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new Mn(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new Mn(Vn(this.l,t),Vn(this.c,t),Vn(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class Nn{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Nn(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Dn(this.r,0,255))},${Math.round(Dn(this.g,0,255))},${Math.round(Dn(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Dn(this.r,0,255))},${Math.round(Dn(this.g,0,255))},${Math.round(Dn(this.b,0,255))},${On(this.a,0,1)})`}roundToPrecision(t){return new Nn(Vn(this.r,t),Vn(this.g,t),Vn(this.b,t),Vn(this.a,t))}clamp(){return new Nn(On(this.r,0,1),On(this.g,0,1),On(this.b,0,1),On(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(On(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Dn(t,0,255))}}class Bn{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new Bn(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new Bn(Vn(this.x,t),Vn(this.y,t),Vn(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function jn(t){return.2126*t.r+.7152*t.g+.0722*t.b}function qn(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return jn(new Nn(e(t.r),e(t.g),e(t.b),1))}Bn.whitePoint=new Bn(.95047,1,1.08883);const Un=(t,e)=>(t+.05)/(e+.05);function _n(t,e){const i=qn(t),o=qn(e);return i>o?Un(i,o):Un(o,i)}function Gn(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new Pn(s,r,n)}function Wn(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Nn(n+s,r+s,a+s,e)}function Kn(t){const e=Math.max(t.r,t.g,t.b),i=e-Math.min(t.r,t.g,t.b);let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==e&&(s=i/e),new zn(o,s,e)}function Xn(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=Math.atan2(t.b,t.a)*(180/Math.PI)),e<0&&(e+=360);const i=Math.sqrt(t.a*t.a+t.b*t.b);return new Mn(t.l,i,e)}function Yn(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new Bn(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function Qn(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Nn(o,s,n,e)}function Zn(t){return function(t){function e(t){return t>Hn.epsilon?Math.pow(t,1/3):(Hn.kappa*t+16)/116}const i=e(t.x/Bn.whitePoint.x),o=e(t.y/Bn.whitePoint.y),s=e(t.z/Bn.whitePoint.z);return new Hn(116*o-16,500*(i-o),200*(o-s))}(Yn(t))}function Jn(t,e=1){return Qn(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Hn.epsilon?s:(116*i-16)/Hn.kappa;let l=0;l=t.l>Hn.epsilon*Hn.kappa?n:t.l/Hn.kappa;let c=0;return c=r>Hn.epsilon?r:(116*o-16)/Hn.kappa,a=Bn.whitePoint.x*a,l=Bn.whitePoint.y*l,c=Bn.whitePoint.z*c,new Bn(a,l,c)}(t),e)}function tr(t){return Xn(Zn(t))}function er(t,e=1){return Jn(function(t){let e=0,i=0;return 0!==t.h&&(e=Math.cos(Rn(t.h))*t.c,i=Math.sin(Rn(t.h))*t.c),new Hn(t.l,e,i)}(t),e)}function ir(t,e,i=18){const o=tr(t);let s=o.c+e*i;return s<0&&(s=0),er(new Mn(o.l,s,o.h))}function or(t,e){return t*e}function sr(t,e){return new Nn(or(t.r,e.r),or(t.g,e.g),or(t.b,e.b),1)}function nr(t,e){return On(t<.5?2*e*t:1-2*(1-e)*(1-t),0,1)}function rr(t,e){return new Nn(nr(t.r,e.r),nr(t.g,e.g),nr(t.b,e.b),1)}var ar,lr;function cr(t,e,i,o){if(isNaN(t)||t<=0)return i;if(t>=1)return o;switch(e){case lr.HSL:return Wn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Pn(An(t,e.h,i.h),Ln(t,e.s,i.s),Ln(t,e.l,i.l))}(t,Gn(i),Gn(o)));case lr.HSV:return function(t,e=1){const i=t.s*t.v,o=i*(1-Math.abs(t.h/60%2-1)),s=t.v-i;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Nn(n+s,r+s,a+s,e)}(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new zn(An(t,e.h,i.h),Ln(t,e.s,i.s),Ln(t,e.v,i.v))}(t,Kn(i),Kn(o)));case lr.XYZ:return Qn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Bn(Ln(t,e.x,i.x),Ln(t,e.y,i.y),Ln(t,e.z,i.z))}(t,Yn(i),Yn(o)));case lr.LAB:return Jn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Hn(Ln(t,e.l,i.l),Ln(t,e.a,i.a),Ln(t,e.b,i.b))}(t,Zn(i),Zn(o)));case lr.LCH:return er(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Mn(Ln(t,e.l,i.l),Ln(t,e.c,i.c),An(t,e.h,i.h))}(t,tr(i),tr(o)));default:return function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Nn(Ln(t,e.r,i.r),Ln(t,e.g,i.g),Ln(t,e.b,i.b),Ln(t,e.a,i.a))}(t,i,o)}}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(ar||(ar={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(lr||(lr={}));class hr{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let i=0;i<t.length;i++)0===i?e[i]={color:t[i],position:0}:i===t.length-1?e[i]={color:t[i],position:1}:e[i]={color:t[i],position:i*(1/(t.length-1))};return new hr(e)}getColor(t,e=lr.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let i=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(i=e);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return cr((t-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),e,this.stops[i].color,this.stops[o].color)}trim(t,e,i=lr.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new hr([{color:this.getColor(t,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=t&&this.stops[i].position<=e&&o.push(this.stops[i]);if(0===o.length)return new hr([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);o[0].position!==t&&o.unshift({color:this.getColor(t),position:t}),o[o.length-1].position!==e&&o.push({color:this.getColor(e),position:e});const s=e-t,n=new Array(o.length);for(let e=0;e<o.length;e++)n[e]={color:o[e].color,position:(o[e].position-t)/s};return new hr(n)}findNextColor(t,e,i=!1,o=lr.RGB,s=.005,n=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const r=this.getColor(t,o),a=i?0:1;if(_n(r,this.getColor(a,o))<=e)return a;let l=i?0:t,c=i?t:0,h=a,d=0;for(;d<=n;){h=Math.abs(c-l)/2+l;const t=_n(r,this.getColor(h,o));if(Math.abs(t-e)<=s)return h;t>e?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new hr(t)}sortColorScaleStops(t){return t.sort((t,e)=>{const i=t.position,o=e.position;return i<o?-1:i>o?1:0})}}const dr=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function ur(t){const e=dr.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new Nn(Sn((16711680&o)>>>16,0,255),Sn((65280&o)>>>8,0,255),Sn(255&o,0,255),1)}class pr{constructor(t){this.config=Object.assign({},pr.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const i in t)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(t[i])||(this.config[i]=t[i],e=!0):t[i]!==this.config[i]&&(this.config[i]=t[i],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=Gn(this.config.baseColor),e=new hr([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=e.getColor(0),o=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(i=ir(i,this.config.saturationLight),o=ir(o,this.config.saturationDark)),0!==this.config.multiplyLight){const t=sr(this.config.baseColor,i);i=cr(this.config.multiplyLight,this.config.interpolationMode,i,t)}if(0!==this.config.multiplyDark){const t=sr(this.config.baseColor,o);o=cr(this.config.multiplyDark,this.config.interpolationMode,o,t)}if(0!==this.config.overlayLight){const t=rr(this.config.baseColor,i);i=cr(this.config.overlayLight,this.config.interpolationMode,i,t)}if(0!==this.config.overlayDark){const t=rr(this.config.baseColor,o);o=cr(this.config.overlayDark,this.config.interpolationMode,o,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new hr([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new hr([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new hr([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new hr([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}pr.defaultPaletteConfig={baseColor:ur("#808080"),steps:11,interpolationMode:lr.RGB,scaleColorLight:new Nn(1,1,1,1),scaleColorDark:new Nn(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},pr.greyscalePaletteConfig={baseColor:ur("#808080"),steps:11,interpolationMode:lr.RGB,scaleColorLight:new Nn(1,1,1,1),scaleColorDark:new Nn(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},pr.defaultPaletteConfig.scaleColorLight,pr.defaultPaletteConfig.scaleColorDark;class gr{constructor(t){this.palette=[],this.config=Object.assign({},gr.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=new Nn(.14,.14,.14,1),i=new pr(Object.assign(Object.assign({},pr.greyscalePaletteConfig),{baseColor:e,baseScalePosition:86/94,steps:t})).palette,o=(jn(this.config.baseColor)+Gn(this.config.baseColor).l)/2,s=this.matchRelativeLuminanceIndex(o,i)/(t-1),n=this.matchRelativeLuminanceIndex(.14,i)/(t-1),r=Gn(this.config.baseColor),a=Wn(Pn.fromObject({h:r.h,s:r.s,l:.14})),l=Wn(Pn.fromObject({h:r.h,s:r.s,l:.06})),c=new Array(5);c[0]={position:0,color:new Nn(1,1,1,1)},c[1]={position:s,color:this.config.baseColor},c[2]={position:n,color:a},c[3]={position:.99,color:l},c[4]={position:1,color:new Nn(0,0,0,1)};const h=new hr(c);this.palette=new Array(t);for(let e=0;e<t;e++){const i=h.getColor(e/(t-1),lr.RGB);this.palette[e]=i}}matchRelativeLuminanceIndex(t,e){let i=Number.MAX_VALUE,o=0,s=0;const n=e.length;for(;s<n;s++){const n=Math.abs(jn(e[s])-t);n<i&&(i=n,o=s)}return o}}function mr(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}gr.defaultPaletteConfig={baseColor:ur("#808080"),steps:94};const fr=Object.freeze({create:(t,e,i)=>new br(t,e,i),from:t=>new br(t.r,t.g,t.b)});class br extends Nn{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=mr.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=qn(this)}static fromObject(t){return new br(t.r,t.g,t.b)}}const vr=(-.1+Math.sqrt(.21))/2;function yr(t){return t.relativeLuminance<=vr}function xr(t){return yr(t)?-1:1}const $r=Object.freeze({create:function(t,e,i){return"number"==typeof t?$r.from(fr.create(t,e,i)):$r.from(t)},from:function(t){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?wr.from(t):wr.from(fr.create(t.r,t.g,t.b))}});class wr{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=xr(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>mr(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[On(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new wr(t,Object.freeze(new gr({baseColor:Nn.fromObject(t)}).palette.map(t=>{const e=ur(t.toStringHexRGB());return fr.create(e.r,e.g,e.b)})))}}const kr=fr.create(1,1,1),Cr=fr.create(0,0,0),Ir=fr.from(ur("#808080")),Tr=fr.from(ur("#DA1A5F"));function Fr(t){return fr.create(t,t,t)}const Er={LightMode:1,DarkMode:.23};function Or(t,e,i,o,s,n){return Math.max(t.closestIndexOf(Fr(e))+i,o,s,n)}const{create:Sr}=Io;function Dr(t){return Io.create({name:t,cssCustomPropertyName:null})}const Rr=Sr("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),Lr=Sr("base-height-multiplier").withDefault(10),Ar=Sr("base-horizontal-spacing-multiplier").withDefault(3),Vr=Sr("base-layer-luminance").withDefault(Er.DarkMode),Pr=Sr("control-corner-radius").withDefault(4),zr=Sr("density").withDefault(0),Hr=Sr("design-unit").withDefault(4),Mr=Sr("direction").withDefault(je.ltr),Nr=Sr("disabled-opacity").withDefault(.3),Br=Sr("stroke-width").withDefault(1),jr=Sr("focus-stroke-width").withDefault(2),qr=Sr("type-ramp-base-font-size").withDefault("14px"),Ur=Sr("type-ramp-base-line-height").withDefault("20px"),_r=Sr("type-ramp-minus-1-font-size").withDefault("12px"),Gr=Sr("type-ramp-minus-1-line-height").withDefault("16px"),Wr=Sr("type-ramp-minus-2-font-size").withDefault("10px"),Kr=Sr("type-ramp-minus-2-line-height").withDefault("16px"),Xr=Sr("type-ramp-plus-1-font-size").withDefault("16px"),Yr=Sr("type-ramp-plus-1-line-height").withDefault("24px"),Qr=Sr("type-ramp-plus-2-font-size").withDefault("20px"),Zr=Sr("type-ramp-plus-2-line-height").withDefault("28px"),Jr=Sr("type-ramp-plus-3-font-size").withDefault("28px"),ta=Sr("type-ramp-plus-3-line-height").withDefault("36px"),ea=Sr("type-ramp-plus-4-font-size").withDefault("34px"),ia=Sr("type-ramp-plus-4-line-height").withDefault("44px"),oa=Sr("type-ramp-plus-5-font-size").withDefault("46px"),sa=Sr("type-ramp-plus-5-line-height").withDefault("56px"),na=Sr("type-ramp-plus-6-font-size").withDefault("60px"),ra=Sr("type-ramp-plus-6-line-height").withDefault("72px"),aa=Dr("accent-fill-rest-delta").withDefault(0),la=Dr("accent-fill-hover-delta").withDefault(4),ca=Dr("accent-fill-active-delta").withDefault(-5),ha=Dr("accent-fill-focus-delta").withDefault(0),da=Dr("accent-foreground-rest-delta").withDefault(0),ua=Dr("accent-foreground-hover-delta").withDefault(6),pa=Dr("accent-foreground-active-delta").withDefault(-4),ga=Dr("accent-foreground-focus-delta").withDefault(0),ma=Dr("neutral-fill-rest-delta").withDefault(7),fa=Dr("neutral-fill-hover-delta").withDefault(10),ba=Dr("neutral-fill-active-delta").withDefault(5),va=Dr("neutral-fill-focus-delta").withDefault(0),ya=Dr("neutral-fill-input-rest-delta").withDefault(0),xa=Dr("neutral-fill-input-hover-delta").withDefault(0),$a=Dr("neutral-fill-input-active-delta").withDefault(0),wa=Dr("neutral-fill-input-focus-delta").withDefault(0),ka=Dr("neutral-fill-stealth-rest-delta").withDefault(0),Ca=Dr("neutral-fill-stealth-hover-delta").withDefault(5),Ia=Dr("neutral-fill-stealth-active-delta").withDefault(3),Ta=Dr("neutral-fill-stealth-focus-delta").withDefault(0),Fa=Dr("neutral-fill-strong-rest-delta").withDefault(0),Ea=Dr("neutral-fill-strong-hover-delta").withDefault(8),Oa=Dr("neutral-fill-strong-active-delta").withDefault(-5),Sa=Dr("neutral-fill-strong-focus-delta").withDefault(0),Da=Dr("neutral-fill-layer-rest-delta").withDefault(3),Ra=Dr("neutral-stroke-rest-delta").withDefault(25),La=Dr("neutral-stroke-hover-delta").withDefault(40),Aa=Dr("neutral-stroke-active-delta").withDefault(16),Va=Dr("neutral-stroke-focus-delta").withDefault(25),Pa=Dr("neutral-stroke-divider-rest-delta").withDefault(8),za=Sr("neutral-color").withDefault(Ir),Ha=Dr("neutral-palette").withDefault(t=>$r.from(za.getValueFor(t))),Ma=Sr("accent-color").withDefault(Tr),Na=Dr("accent-palette").withDefault(t=>$r.from(Ma.getValueFor(t))),Ba=Dr("neutral-layer-card-container-recipe").withDefault({evaluate:t=>{return e=Ha.getValueFor(t),i=Vr.getValueFor(t),o=Da.getValueFor(t),e.get(e.closestIndexOf(Fr(i))+o);var e,i,o}}),ja=Sr("neutral-layer-card-container").withDefault(t=>Ba.getValueFor(t).evaluate(t)),qa=Dr("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){const o=t.closestIndexOf(Fr(e))-i;return t.get(o-i)}(Ha.getValueFor(t),Vr.getValueFor(t),Da.getValueFor(t))}),Ua=Sr("neutral-layer-floating").withDefault(t=>qa.getValueFor(t).evaluate(t)),_a=Dr("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(Fr(e)))}(Ha.getValueFor(t),Vr.getValueFor(t))}),Ga=Sr("neutral-layer-1").withDefault(t=>_a.getValueFor(t).evaluate(t)),Wa=Dr("neutral-layer-2-recipe").withDefault({evaluate:t=>{return e=Ha.getValueFor(t),i=Vr.getValueFor(t),o=Da.getValueFor(t),s=ma.getValueFor(t),n=fa.getValueFor(t),r=ba.getValueFor(t),e.get(Or(e,i,o,s,n,r));var e,i,o,s,n,r}}),Ka=Sr("neutral-layer-2").withDefault(t=>Wa.getValueFor(t).evaluate(t)),Xa=Dr("neutral-layer-3-recipe").withDefault({evaluate:t=>{return e=Ha.getValueFor(t),i=Vr.getValueFor(t),o=Da.getValueFor(t),s=ma.getValueFor(t),n=fa.getValueFor(t),r=ba.getValueFor(t),e.get(Or(e,i,o,s,n,r)+o);var e,i,o,s,n,r}}),Ya=Sr("neutral-layer-3").withDefault(t=>Xa.getValueFor(t).evaluate(t)),Qa=Dr("neutral-layer-4-recipe").withDefault({evaluate:t=>{return e=Ha.getValueFor(t),i=Vr.getValueFor(t),o=Da.getValueFor(t),s=ma.getValueFor(t),n=fa.getValueFor(t),r=ba.getValueFor(t),e.get(Or(e,i,o,s,n,r)+2*o);var e,i,o,s,n,r}}),Za=Sr("neutral-layer-4").withDefault(t=>Qa.getValueFor(t).evaluate(t)),Ja=Sr("fill-color").withDefault(t=>Ga.getValueFor(t));var tl;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(tl||(tl={}));const el=Sr({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l){const c=t.source,h=e.closestIndexOf(i)>=Math.max(r,a,l)?-1:1,d=t.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*n;return{rest:t.get(u),hover:t.get(d),active:t.get(p),focus:t.get(g)}}(Na.getValueFor(t),Ha.getValueFor(t),e||Ja.getValueFor(t),la.getValueFor(t),ca.getValueFor(t),ha.getValueFor(t),ma.getValueFor(t),fa.getValueFor(t),ba.getValueFor(t))}),il=Sr("accent-fill-rest").withDefault(t=>el.getValueFor(t).evaluate(t).rest),ol=Sr("accent-fill-hover").withDefault(t=>el.getValueFor(t).evaluate(t).hover),sl=Sr("accent-fill-active").withDefault(t=>el.getValueFor(t).evaluate(t).active),nl=Sr("accent-fill-focus").withDefault(t=>el.getValueFor(t).evaluate(t).focus),rl=t=>(e,i)=>function(t,e){return t.contrast(kr)>=e?kr:Cr}(i||il.getValueFor(e),t),al=Dr("foreground-on-accent-recipe").withDefault({evaluate:(t,e)=>rl(tl.normal)(t,e)}),ll=Sr("foreground-on-accent-rest").withDefault(t=>al.getValueFor(t).evaluate(t,il.getValueFor(t))),cl=Sr("foreground-on-accent-hover").withDefault(t=>al.getValueFor(t).evaluate(t,ol.getValueFor(t))),hl=Sr("foreground-on-accent-active").withDefault(t=>al.getValueFor(t).evaluate(t,sl.getValueFor(t))),dl=Sr("foreground-on-accent-focus").withDefault(t=>al.getValueFor(t).evaluate(t,nl.getValueFor(t))),ul=Dr("foreground-on-accent-large-recipe").withDefault({evaluate:(t,e)=>rl(tl.large)(t,e)}),pl=Sr("foreground-on-accent-rest-large").withDefault(t=>ul.getValueFor(t).evaluate(t,il.getValueFor(t))),gl=Sr("foreground-on-accent-hover-large").withDefault(t=>ul.getValueFor(t).evaluate(t,ol.getValueFor(t))),ml=Sr("foreground-on-accent-active-large").withDefault(t=>ul.getValueFor(t).evaluate(t,sl.getValueFor(t))),fl=Sr("foreground-on-accent-focus-large").withDefault(t=>ul.getValueFor(t).evaluate(t,nl.getValueFor(t))),bl=t=>(e,i)=>function(t,e,i,o,s,n,r){const a=t.source,l=t.closestIndexOf(a),c=xr(e),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=t.colorContrast(e,i,h,c),u=t.closestIndexOf(d),p=u+c*Math.abs(o-s);let g,m;return(1===c?o<s:c*o>c*s)?(g=u,m=p):(g=p,m=u),{rest:t.get(g),hover:t.get(m),active:t.get(g+c*n),focus:t.get(g+c*r)}}(Na.getValueFor(e),i||Ja.getValueFor(e),t,da.getValueFor(e),ua.getValueFor(e),pa.getValueFor(e),ga.getValueFor(e)),vl=Sr({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>bl(tl.normal)(t,e)}),yl=Sr("accent-foreground-rest").withDefault(t=>vl.getValueFor(t).evaluate(t).rest),xl=Sr("accent-foreground-hover").withDefault(t=>vl.getValueFor(t).evaluate(t).hover),$l=Sr("accent-foreground-active").withDefault(t=>vl.getValueFor(t).evaluate(t).active),wl=Sr("accent-foreground-focus").withDefault(t=>vl.getValueFor(t).evaluate(t).focus),kl=Sr({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=r>=Math.max(i,o,s,n)?-1:1;return{rest:t.get(r+a*i),hover:t.get(r+a*o),active:t.get(r+a*s),focus:t.get(r+a*n)}}(Ha.getValueFor(t),e||Ja.getValueFor(t),ma.getValueFor(t),fa.getValueFor(t),ba.getValueFor(t),va.getValueFor(t))}),Cl=Sr("neutral-fill-rest").withDefault(t=>kl.getValueFor(t).evaluate(t).rest),Il=Sr("neutral-fill-hover").withDefault(t=>kl.getValueFor(t).evaluate(t).hover),Tl=Sr("neutral-fill-active").withDefault(t=>kl.getValueFor(t).evaluate(t).active),Fl=Sr("neutral-fill-focus").withDefault(t=>kl.getValueFor(t).evaluate(t).focus),El=Sr({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=xr(e),a=t.closestIndexOf(e);return{rest:t.get(a-r*i),hover:t.get(a-r*o),active:t.get(a-r*s),focus:t.get(a-r*n)}}(Ha.getValueFor(t),e||Ja.getValueFor(t),ya.getValueFor(t),xa.getValueFor(t),$a.getValueFor(t),wa.getValueFor(t))}),Ol=Sr("neutral-fill-input-rest").withDefault(t=>El.getValueFor(t).evaluate(t).rest),Sl=Sr("neutral-fill-input-hover").withDefault(t=>El.getValueFor(t).evaluate(t).hover),Dl=Sr("neutral-fill-input-active").withDefault(t=>El.getValueFor(t).evaluate(t).active),Rl=Sr("neutral-fill-input-focus").withDefault(t=>El.getValueFor(t).evaluate(t).focus),Ll=Sr({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c){const h=Math.max(i,o,s,n,r,a,l,c),d=t.closestIndexOf(e),u=d>=h?-1:1;return{rest:t.get(d+u*i),hover:t.get(d+u*o),active:t.get(d+u*s),focus:t.get(d+u*n)}}(Ha.getValueFor(t),e||Ja.getValueFor(t),ka.getValueFor(t),Ca.getValueFor(t),Ia.getValueFor(t),Ta.getValueFor(t),ma.getValueFor(t),fa.getValueFor(t),ba.getValueFor(t),va.getValueFor(t))}),Al=Sr("neutral-fill-stealth-rest").withDefault(t=>Ll.getValueFor(t).evaluate(t).rest),Vl=Sr("neutral-fill-stealth-hover").withDefault(t=>Ll.getValueFor(t).evaluate(t).hover),Pl=Sr("neutral-fill-stealth-active").withDefault(t=>Ll.getValueFor(t).evaluate(t).active),zl=Sr("neutral-fill-stealth-focus").withDefault(t=>Ll.getValueFor(t).evaluate(t).focus),Hl=Sr({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=xr(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Ha.getValueFor(t),e||Ja.getValueFor(t),Fa.getValueFor(t),Ea.getValueFor(t),Oa.getValueFor(t),Sa.getValueFor(t))}),Ml=Sr("neutral-fill-strong-rest").withDefault(t=>Hl.getValueFor(t).evaluate(t).rest),Nl=Sr("neutral-fill-strong-hover").withDefault(t=>Hl.getValueFor(t).evaluate(t).hover),Bl=Sr("neutral-fill-strong-active").withDefault(t=>Hl.getValueFor(t).evaluate(t).active),jl=Sr("neutral-fill-strong-focus").withDefault(t=>Hl.getValueFor(t).evaluate(t).focus),ql=Dr("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){const o=t.closestIndexOf(e);return t.get(o-(o<i?-1*i:i))}(Ha.getValueFor(t),e||Ja.getValueFor(t),Da.getValueFor(t))}),Ul=Sr("neutral-fill-layer-rest").withDefault(t=>ql.getValueFor(t).evaluate(t)),_l=Dr("focus-stroke-outer-recipe").withDefault({evaluate:t=>{return e=Ha.getValueFor(t),i=Ja.getValueFor(t),e.colorContrast(i,3.5);var e,i}}),Gl=Sr("focus-stroke-outer").withDefault(t=>_l.getValueFor(t).evaluate(t)),Wl=Dr("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return e=Na.getValueFor(t),i=Ja.getValueFor(t),o=Gl.getValueFor(t),e.colorContrast(o,3.5,e.closestIndexOf(e.source),-1*xr(i));var e,i,o}}),Kl=Sr("focus-stroke-inner").withDefault(t=>Wl.getValueFor(t).evaluate(t)),Xl=Dr("neutral-foreground-hint-recipe").withDefault({evaluate:t=>{return e=Ha.getValueFor(t),i=Ja.getValueFor(t),e.colorContrast(i,4.5);var e,i}}),Yl=Sr("neutral-foreground-hint").withDefault(t=>Xl.getValueFor(t).evaluate(t)),Ql=Dr("neutral-foreground-recipe").withDefault({evaluate:t=>{return e=Ha.getValueFor(t),i=Ja.getValueFor(t),e.colorContrast(i,14);var e,i}}),Zl=Sr("neutral-foreground-rest").withDefault(t=>Ql.getValueFor(t).evaluate(t)),Jl=Sr({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=xr(e),l=r+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(n-i);return{rest:t.get(l),hover:t.get(c),active:t.get(h),focus:t.get(d)}}(Ha.getValueFor(t),Ja.getValueFor(t),Ra.getValueFor(t),La.getValueFor(t),Aa.getValueFor(t),Va.getValueFor(t))}),tc=Sr("neutral-stroke-rest").withDefault(t=>Jl.getValueFor(t).evaluate(t).rest),ec=Sr("neutral-stroke-hover").withDefault(t=>Jl.getValueFor(t).evaluate(t).hover),ic=Sr("neutral-stroke-active").withDefault(t=>Jl.getValueFor(t).evaluate(t).active),oc=Sr("neutral-stroke-focus").withDefault(t=>Jl.getValueFor(t).evaluate(t).focus),sc=Dr("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+xr(e)*i)}(Ha.getValueFor(t),e||Ja.getValueFor(t),Pa.getValueFor(t))}),nc=Sr("neutral-stroke-divider-rest").withDefault(t=>sc.getValueFor(t).evaluate(t)),rc=Io.create({name:"height-number",cssCustomPropertyName:null}).withDefault(t=>(Lr.getValueFor(t)+zr.getValueFor(t))*Hr.getValueFor(t)),ac=(t,e)=>bt`
22
+ ${Fn("flex")} :host{box-sizing:border-box;flex-direction:column;font-family:${Rr};font-size:${_r};line-height:${Gr};color:${Zl};border-top:calc(${Br} * 1px) solid ${nc}}`,lc=yt`(${Lr} + ${zr}) * ${Hr}`,cc=(t,e)=>bt`
23
+ ${Fn("flex")} :host{box-sizing:border-box;font-family:${Rr};flex-direction:column;font-size:${_r};line-height:${Gr};border-bottom:calc(${Br} * 1px) solid ${nc}}.region{display:none;padding:calc((6 + (${Hr} * 2 * ${zr})) * 1px)}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto calc(${lc} * 1px)}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;padding:0 calc((6 + (${Hr} * 2 * ${zr})) * 1px);text-align:left;height:calc(${lc} * 1px);color:${Zl};cursor:pointer;font-family:inherit}.button:hover{color:${Zl}}.button:active{color:${Zl}}.button::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer}.button:${En}::before{outline:none;border:calc(${jr} * 1px) solid ${Gl};border-radius:calc(${Pr} * 1px)}:host([expanded]) .region{display:block}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;pointer-events:none;position:relative}slot[name="expanded-icon"],slot[name="collapsed-icon"]{fill:${yl}}slot[name="collapsed-icon"]{display:flex}:host([expanded]) slot[name="collapsed-icon"]{display:none}slot[name="expanded-icon"]{display:none}:host([expanded]) slot[name="expanded-icon"]{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${Hr} * 1px);justify-content:center;grid-column:1;position:relative}.end{display:flex;align-items:center;justify-content:center;grid-column:3;position:relative}`.withBehaviors(In(bt`
24
+ .button:${En}::before{border-color:${Ke.Highlight}}:host slot[name="collapsed-icon"],:host([expanded]) slot[name="expanded-icon"]{fill:${Ke.ButtonText}}`)),hc=Ve.compose({baseName:"accordion-item",template:(t,e)=>K`<template class="${t=>t.expanded?"expanded":""}"><div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Ot("expandbutton")} aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${_t(0,e)} ${Ut(0,e)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon" part="expanded-icon">${e.expandedIcon||""}</slot><slot name="collapsed-icon" part="collapsed-icon">${e.collapsedIcon||""}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div></template>`,styles:cc,collapsedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M16.22 3H3.78a.78.78 0 00-.78.78v12.44c0 .43.35.78.78.78h12.44c.43 0 .78-.35.78-.78V3.78a.78.78 0 00-.78-.78zM3.78 2h12.44C17.2 2 18 2.8 18 3.78v12.44c0 .98-.8 1.78-1.78 1.78H3.78C2.8 18 2 17.2 2 16.22V3.78C2 2.8 2.8 2 3.78 2zM11 9h3v2h-3v3H9v-3H6V9h3V6h2v3z"\n />\n </svg>\n ',expandedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.78 3h12.44c.43 0 .78.35.78.78v12.44c0 .43-.35.78-.78.78H3.78a.78.78 0 01-.78-.78V3.78c0-.43.35-.78.78-.78zm12.44-1H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.78-.8 1.78-1.78V3.78C18 2.8 17.2 2 16.22 2zM14 9H6v2h8V9z"\n />\n </svg>\n '}),dc=Qe.compose({baseName:"accordion",template:(t,e)=>K`<template><slot ${Nt({property:"accordionItems",filter:zt()})}></slot><slot name="item" part="item" ${Nt("accordionItems")}></slot></template>`,styles:ac});
25
+ /*! *****************************************************************************
26
+ Copyright (c) Microsoft Corporation.
27
+
28
+ Permission to use, copy, modify, and/or distribute this software for any
29
+ purpose with or without fee is hereby granted.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
32
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
34
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
35
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37
+ PERFORMANCE OF THIS SOFTWARE.
38
+ ***************************************************************************** */
39
+ function uc(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const pc="box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))));",gc=bt`
40
+ ${Fn("inline-flex")} :host{font-family:${Rr};outline:none;font-size:${qr};line-height:${Ur};height:calc(${lc} * 1px);min-width:calc(${lc} * 1px);background-color:${Cl};color:${Zl};border-radius:calc(${Pr} * 1px);fill:currentcolor;cursor:pointer}.control{background:transparent;height:inherit;flex-grow:1;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:baseline;padding:0 calc((10 + (${Hr} * 2 * ${zr})) * 1px);white-space:nowrap;outline:none;text-decoration:none;border:calc(${Br} * 1px) solid transparent;color:inherit;border-radius:inherit;fill:inherit;cursor:inherit;font-weight:inherit;font-family:inherit;font-size:inherit;line-height:inherit}:host(:hover){background-color:${Il}}:host(:active){background-color:${Tl}}.control:${En}{border-color:${Gl};box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px) ${Gl} inset}.control::-moz-focus-inner{border:0}.start,.content,.end{align-self:center}.start,.end{display:flex}.control.icon-only{padding:0;line-height:0}::slotted(svg){${""} width:16px;height:16px;pointer-events:none}.start{margin-inline-end:11px}.end{margin-inline-start:11px}`.withBehaviors(In(bt`
41
+ :host .control{background-color:${Ke.ButtonFace};border-color:${Ke.ButtonText};color:${Ke.ButtonText};fill:currentColor}:host(:hover) .control{forced-color-adjust:none;background-color:${Ke.Highlight};color:${Ke.HighlightText}}.control:${En}{forced-color-adjust:none;background-color:${Ke.Highlight};border-color:${Ke.ButtonText};box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px) ${Ke.ButtonText} inset;color:${Ke.HighlightText}}.control:hover,:host([appearance="outline"]) .control:hover{border-color:${Ke.ButtonText}}:host([href]) .control{border-color:${Ke.LinkText};color:${Ke.LinkText}}:host([href]) .control:hover,:host([href]) .control:${En}{forced-color-adjust:none;background:${Ke.ButtonFace};border-color:${Ke.LinkText};box-shadow:0 0 0 1px ${Ke.LinkText} inset;color:${Ke.LinkText};fill:currentColor}`)),mc=bt`
42
+ :host([appearance="accent"]){background:${il};color:${ll}}:host([appearance="accent"]:hover){background:${ol};color:${cl}}:host([appearance="accent"]:active) .control:active{background:${sl};color:${hl}}:host([appearance="accent"]) .control:${En}{box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px) ${Gl} inset,0 0 0 calc((${jr} + ${Br}) * 1px) ${Kl} inset}`.withBehaviors(In(bt`
43
+ :host([appearance="accent"]) .control{forced-color-adjust:none;background:${Ke.Highlight};color:${Ke.HighlightText}}:host([appearance="accent"]) .control:hover,:host([appearance="accent"]:active) .control:active{background:${Ke.HighlightText};border-color:${Ke.Highlight};color:${Ke.Highlight}}:host([appearance="accent"]) .control:${En}{border-color:${Ke.Highlight};box-shadow:0 0 0 calc(${jr} * 1px) ${Ke.HighlightText} inset}:host([appearance="accent"][href]) .control{background:${Ke.LinkText};color:${Ke.HighlightText}}:host([appearance="accent"][href]) .control:hover{background:${Ke.ButtonFace};border-color:${Ke.LinkText};box-shadow:none;color:${Ke.LinkText};fill:currentColor}:host([appearance="accent"][href]) .control:${En}{border-color:${Ke.LinkText};box-shadow:0 0 0 calc(${jr} * 1px) ${Ke.HighlightText} inset}`)),fc=bt`
44
+ :host([appearance="hypertext"]){font-size:inherit;line-height:inherit;height:auto;min-width:0;background:transparent}:host([appearance="hypertext"]) .control{display:inline;padding:0;border:none;box-shadow:none;border-radius:0;line-height:1}:host a.control:not(:link){background-color:transparent;cursor:default}:host([appearance="hypertext"]) .control:link,:host([appearance="hypertext"]) .control:visited{background:transparent;color:${yl};border-bottom:calc(${Br} * 1px) solid ${yl}}:host([appearance="hypertext"]:hover),:host([appearance="hypertext"]) .control:hover{background:transparent;border-bottom-color:${xl}}:host([appearance="hypertext"]:active),:host([appearance="hypertext"]) .control:active{background:transparent;border-bottom-color:${$l}}:host([appearance="hypertext"]) .control:${En}{border-bottom:calc(${jr} * 1px) solid ${Gl};margin-bottom:calc(calc(${Br} - ${jr}) * 1px)}`.withBehaviors(In(bt`
45
+ :host([appearance="hypertext"]:hover){background-color:${Ke.ButtonFace};color:${Ke.ButtonText}}:host([appearance="hypertext"][href]) .control:hover,:host([appearance="hypertext"][href]) .control:active,:host([appearance="hypertext"][href]) .control:${En}{color:${Ke.LinkText};border-bottom-color:${Ke.LinkText};box-shadow:none}`)),bc=bt`
46
+ :host([appearance="lightweight"]){background:transparent;color:${yl}}:host([appearance="lightweight"]) .control{padding:0;height:initial;border:none;box-shadow:none;border-radius:0}:host([appearance="lightweight"]:hover){background:transparent;color:${xl}}:host([appearance="lightweight"]:active){background:transparent;color:${$l}}:host([appearance="lightweight"]) .content{position:relative}:host([appearance="lightweight"]) .content::before{content:"";display:block;height:calc(${Br} * 1px);position:absolute;top:calc(1em + 4px);width:100%}:host([appearance="lightweight"]:hover) .content::before{background:${xl}}:host([appearance="lightweight"]:active) .content::before{background:${$l}}:host([appearance="lightweight"]) .control:${En} .content::before{background:${Zl};height:calc(${jr} * 1px)}`.withBehaviors(In(bt`
47
+ :host([appearance="lightweight"]) .control:hover,:host([appearance="lightweight"]) .control:${En}{forced-color-adjust:none;background:${Ke.ButtonFace};color:${Ke.Highlight}}:host([appearance="lightweight"]) .control:hover .content::before,:host([appearance="lightweight"]) .control:${En} .content::before{background:${Ke.Highlight}}:host([appearance="lightweight"][href]) .control:hover,:host([appearance="lightweight"][href]) .control:${En}{background:${Ke.ButtonFace};box-shadow:none;color:${Ke.LinkText}}:host([appearance="lightweight"][href]) .control:hover .content::before,:host([appearance="lightweight"][href]) .control:${En} .content::before{background:${Ke.LinkText}}`)),vc=bt`
48
+ :host([appearance="outline"]){background:transparent;border-color:${il}}:host([appearance="outline"]:hover){border-color:${ol}}:host([appearance="outline"]:active){border-color:${sl}}:host([appearance="outline"]) .control{border-color:inherit}:host([appearance="outline"]) .control:${En}{box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px) ${Gl} inset;border-color:${Gl}}`.withBehaviors(In(bt`
49
+ :host([appearance="outline"]) .control{border-color:${Ke.ButtonText}}:host([appearance="outline"]) .control:${En}{forced-color-adjust:none;background-color:${Ke.Highlight};border-color:${Ke.ButtonText};box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px) ${Ke.ButtonText} inset;color:${Ke.HighlightText};fill:currentColor}:host([appearance="outline"][href]) .control{background:${Ke.ButtonFace};border-color:${Ke.LinkText};color:${Ke.LinkText};fill:currentColor}:host([appearance="outline"][href]) .control:hover,:host([appearance="outline"][href]) .control:${En}{forced-color-adjust:none;border-color:${Ke.LinkText};box-shadow:0 0 0 1px ${Ke.LinkText} inset}`)),yc=bt`
50
+ :host([appearance="stealth"]){background:${Al}}:host([appearance="stealth"]:hover){background:${Vl}}:host([appearance="stealth"]:active){background:${Pl}}`.withBehaviors(In(bt`
51
+ :host([appearance="stealth"]),:host([appearance="stealth"]) .control{forced-color-adjust:none;background:${Ke.ButtonFace};border-color:transparent;color:${Ke.ButtonText};fill:currentColor}:host([appearance="stealth"]:hover) .control{background:${Ke.Highlight};border-color:${Ke.Highlight};color:${Ke.HighlightText};fill:currentColor}:host([appearance="stealth"]:${En}) .control{background:${Ke.Highlight};box-shadow:0 0 0 1px ${Ke.Highlight};color:${Ke.HighlightText};fill:currentColor}:host([appearance="stealth"][href]) .control{color:${Ke.LinkText}}:host([appearance="stealth"][href]:hover) .control,:host([appearance="stealth"][href]:${En}) .control{background:${Ke.LinkText};border-color:${Ke.LinkText};color:${Ke.HighlightText};fill:currentColor}:host([appearance="stealth"][href]:${En}) .control{forced-color-adjust:none;box-shadow:0 0 0 1px ${Ke.LinkText}}`));class xc{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&Mr.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new $c(this.ltr,this.rtl,t),i=Mr.getValueFor(t);Mr.subscribe(e),e.attach(i),this.cache.set(t,e)}}class $c{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}function wc(t,e){return new Tn("appearance",t,e)}const kc=(t,e)=>bt`
52
+ ${gc}
53
+ `.withBehaviors(wc("accent",mc),wc("hypertext",fc),wc("lightweight",bc),wc("outline",vc),wc("stealth",yc));class Cc extends ti{appearanceChanged(t,e){this.$fastController.isConnected&&(this.classList.remove(t),this.classList.add(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(t,e){const i=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===i.length&&i[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}uc([st],Cc.prototype,"appearance",void 0);const Ic=Cc.compose({baseName:"anchor",baseClass:ti,template:Ze,styles:kc,shadowOptions:{delegatesFocus:!0}}),Tc=(t,e)=>bt`
54
+ :host{contain:layout;display:block}`,Fc=oi.compose({baseName:"anchored-region",template:(t,e)=>K`<template class="${t=>t.initialLayoutComplete?"loaded":""}">${St(t=>t.initialLayoutComplete,K`<slot></slot>`)}</template>`,styles:Tc}),Ec=(t,e)=>bt`
55
+ ${Fn("flex")} :host{position:relative;height:var(--avatar-size,var(--avatar-size-default));max-width:var(--avatar-size,var(--avatar-size-default));--avatar-size-default:calc(
56
+ (
57
+ (${Lr} + ${zr}) * ${Hr} +
58
+ ((${Hr} * 8) - 40)
59
+ ) * 1px
60
+ );--avatar-text-size:${qr};--avatar-text-ratio:${Hr}}.link{text-decoration:none;color:${Zl};display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:100%}.square{border-radius:calc(${Pr} * 1px);min-width:100%;overflow:hidden}.circle{border-radius:100%;min-width:100%;overflow:hidden}.backplate{position:relative;display:flex}.media,::slotted(img){max-width:100%;position:absolute;display:block}.content{font-size:calc(
61
+ (var(--avatar-text-size) + var(--avatar-size,var(--avatar-size-default))) /
62
+ var(--avatar-text-ratio)
63
+ );line-height:var(--avatar-size,var(--avatar-size-default));display:block;min-height:var(--avatar-size,var(--avatar-size-default))}::slotted(${t.tagFor(ui)}){position:absolute;display:block}`.withBehaviors(new xc(((t,e)=>bt`
64
+ ::slotted(${t.tagFor(ui)}){right:0}`)(t),((t,e)=>bt`
65
+ ::slotted(${t.tagFor(ui)}){left:0}`)(t)));class Oc extends di{}uc([st({attribute:"src"})],Oc.prototype,"imgSrc",void 0),uc([st],Oc.prototype,"alt",void 0);const Sc=K` ${St(t=>t.imgSrc,K`<img src="${t=>t.imgSrc}" alt="${t=>t.alt}" slot="media" class="media" part="media" />`)}
66
+ `,Dc=Oc.compose({baseName:"avatar",baseClass:di,template:(t,e)=>K`<div class="backplate ${t=>t.shape}" part="backplate" style="${t=>t.fill?`background-color: var(--avatar-fill-${t.fill});`:void 0}"><a class="link" part="link" href="${t=>t.link?t.link:void 0}" style="${t=>t.color?`color: var(--avatar-color-${t.color});`:void 0}"><slot name="media" part="media">${e.media||""}</slot><slot class="content" part="content"><slot></a></div><slot name="badge" part="badge"></slot>`,styles:Ec,media:Sc,shadowOptions:{delegatesFocus:!0}}),Rc=(t,e)=>bt`
67
+ ${Fn("inline-block")} :host{box-sizing:border-box;font-family:${Rr};font-size:${_r};line-height:${Gr}}.control{border-radius:calc(${Pr} * 1px);padding:calc(((${Hr} * 0.5) - ${Br}) * 1px)
68
+ calc((${Hr} - ${Br}) * 1px);color:${yl};font-weight:600;border:calc(${Br} * 1px) solid transparent}.control[style]{font-weight:400}:host([circular]) .control{border-radius:100px;padding:0 calc(${Hr} * 1px);height:calc((${lc} - (${Hr} * 3)) * 1px);min-width:calc((${lc} - (${Hr} * 3)) * 1px);display:flex;align-items:center;justify-content:center;box-sizing:border-box}`,Lc=ui.compose({baseName:"badge",template:(t,e)=>K`<template class="${t=>t.circular?"circular":""}"><div class="control" part="control" style="${t=>t.generateBadgeStyle()}"><slot></slot></div></template>`,styles:Rc}),Ac=(t,e)=>bt`
69
+ ${Fn("inline-flex")} :host{background:transparent;box-sizing:border-box;font-family:${Rr};font-size:${qr};fill:currentColor;line-height:${Ur};min-width:calc(${lc} * 1px);outline:none;color:${Zl}}.listitem{display:flex;align-items:center;width:max-content}.separator{margin:0 6px;display:flex}.control{align-items:center;box-sizing:border-box;color:${yl};cursor:pointer;display:flex;fill:inherit;outline:none;text-decoration:none;white-space:nowrap}.control:hover{color:${xl}}.control:active{color:${$l}}.control .content{position:relative}.control .content::before{content:"";display:block;height:calc(${Br} * 1px);left:0;position:absolute;right:0;top:calc(1em + 4px);width:100%}.control:hover .content::before{background:${xl}}.control:active .content::before{background:${$l}}.control:${En} .content::before{background:${Zl};height:calc(${jr} * 1px)}.control:not([href]){color:${Zl};cursor:default}.control:not([href]) .content::before{background:none}.start,.end{display:flex}::slotted(svg){width:16px;height:16px}.start{margin-inline-end:6px}.end{margin-inline-start:6px}`.withBehaviors(In(bt`
70
+ .control:hover .content::before,.control:${En} .content::before{background:${Ke.LinkText}}.start,.end{fill:${Ke.ButtonText}}`)),Vc=pi.compose({baseName:"breadcrumb-item",template:(t,e)=>K`<div role="listitem" class="listitem" part="listitem">${St(t=>t.href&&t.href.length>0,K` ${Ze(0,e)} `)} ${St(t=>!t.href,K` ${_t(0,e)}<slot></slot>${Ut(0,e)} `)} ${St(t=>t.separator,K`<span class="separator" part="separator" aria-hidden="true"><slot name="separator">${e.separator||""}</slot></span>`)}</div>`,styles:Ac,separator:"/",shadowOptions:{delegatesFocus:!0}}),Pc=(t,e)=>bt`
71
+ ${Fn("inline-block")} :host{box-sizing:border-box;font-family:${Rr};font-size:${qr};line-height:${Ur}}.list{display:flex;flex-wrap:wrap}`,zc=gi.compose({baseName:"breadcrumb",template:(t,e)=>K`<template role="navigation"><div role="list" class="list" part="list"><slot ${Nt({property:"slottedBreadcrumbItems",filter:zt()})}></slot></div></template>`,styles:Pc}),Hc=(t,e)=>bt`
72
+ :host([disabled]),:host([disabled]:hover),:host([disabled]:active){opacity:${Nr};background-color:${Cl};cursor:${"not-allowed"}}${gc}
73
+ `.withBehaviors(In(bt`
74
+ :host([disabled]),:host([disabled]) .control,:host([disabled]:hover),:host([disabled]:active){forced-color-adjust:none;background-color:${Ke.ButtonFace};border-color:${Ke.GrayText};color:${Ke.GrayText};cursor:${"not-allowed"};opacity:1}`),wc("accent",bt`
75
+ :host([appearance="accent"][disabled]),:host([appearance="accent"][disabled]:hover),:host([appearance="accent"][disabled]:active){background:${il}}${mc}
76
+ `.withBehaviors(In(bt`
77
+ :host([appearance="accent"][disabled]) .control,:host([appearance="accent"][disabled]) .control:hover{background:${Ke.ButtonFace};border-color:${Ke.GrayText};color:${Ke.GrayText}}`))),wc("lightweight",bt`
78
+ :host([appearance="lightweight"][disabled]:hover),:host([appearance="lightweight"][disabled]:active){background-color:transparent;color:${yl}}:host([appearance="lightweight"][disabled]) .content::before,:host([appearance="lightweight"][disabled]:hover) .content::before,:host([appearance="lightweight"][disabled]:active) .content::before{background:transparent}${bc}
79
+ `.withBehaviors(In(bt`
80
+ :host([appearance="lightweight"].disabled) .control{forced-color-adjust:none;color:${Ke.GrayText}}:host([appearance="lightweight"].disabled)
81
+ .control:hover
82
+ .content::before{background:none}`))),wc("outline",bt`
83
+ :host([appearance="outline"][disabled]),:host([appearance="outline"][disabled]:hover),:host([appearance="outline"][disabled]:active){background:transparent;border-color:${il}}${vc}
84
+ `.withBehaviors(In(bt`
85
+ :host([appearance="outline"][disabled]) .control{border-color:${Ke.GrayText}}`))),wc("stealth",bt`
86
+ :host([appearance="stealth"][disabled]),:host([appearance="stealth"][disabled]:hover),:host([appearance="stealth"][disabled]:active){background:${Al}}${yc}
87
+ `.withBehaviors(In(bt`
88
+ :host([appearance="stealth"][disabled]){background:${Ke.ButtonFace}}:host([appearance="stealth"][disabled]) .control{background:${Ke.ButtonFace};border-color:transparent;color:${Ke.GrayText}}`))));class Mc extends $i{constructor(){super(...arguments),this.appearance="neutral"}defaultSlottedContentChanged(t,e){const i=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===i.length&&i[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}uc([st],Mc.prototype,"appearance",void 0);const Nc=Mc.compose({baseName:"button",baseClass:$i,template:(t,e)=>K`<button class="control" part="control" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" form="${t=>t.formId}" formaction="${t=>t.formaction}" formenctype="${t=>t.formenctype}" formmethod="${t=>t.formmethod}" formnovalidate="${t=>t.formnovalidate}" formtarget="${t=>t.formtarget}" name="${t=>t.name}" type="${t=>t.type}" value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-pressed="${t=>t.ariaPressed}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Ot("control")}>${_t(0,e)}<span class="content" part="content"><slot ${Nt("defaultSlottedContent")}></slot></span>${Ut(0,e)}</button>`,styles:Hc,shadowOptions:{delegatesFocus:!0}}),Bc=bt`
89
+ ${Fn("block")} :host{--cell-border:none;--cell-height:calc(${lc} * 1px);--selected-day-outline:1px solid ${$l};--selected-day-color:${$l};--selected-day-background:${Cl};--cell-padding:calc(${Hr} * 1px);--disabled-day-opacity:${Nr};--inactive-day-opacity:${Nr};font-family:${Rr};font-size:${qr};line-height:${Ur};color:${Zl}}.title{font-size:${Jr};line-height:${ta};padding:var(--cell-padding);text-align:center}.week-days,.week{display:grid;grid-template-columns:repeat(7,1fr);border-left:var(--cell-border,none);border-bottom:none;padding:0}.interact .week{grid-gap:calc(${Hr} * 1px);margin-top:calc(${Hr} * 1px)}.day,.week-day{border-bottom:var(--cell-border);border-right:var(--cell-border);padding:var(--cell-padding)}.week-day{text-align:center;border-radius:0;border-top:var(--cell-border)}.day{box-sizing:border-box;vertical-align:top;outline-offset:-1px;line-height:var(--cell-line-height);white-space:normal}.interact .day{background:${Cl};cursor:pointer}.day.inactive{background:var(--inactive-day-background);color:var(--inactive-day-color);opacity:var(--inactive-day-opacity);outline:var(--inactive-day-outline)}.day.disabled{background:var(--disabled-day-background);color:var(--disabled-day-color);cursor:${"not-allowed"};opacity:var(--disabled-day-opacity);outline:var(--disabled-day-outline)}.day.selected{color:var(--selected-day-color);background:var(--selected-day-background);outline:var(--selected-day-outline)}.date{padding:var(--cell-padding);text-align:center}.interact .today,.today{color:${hl};background:${$l}}.today.inactive .date{background:transparent;color:inherit;width:auto}`.withBehaviors(In(bt`
90
+ :host{--selected-day-outline:1px solid ${Ke.Highlight}}.day,.week-day{background:${Ke.Canvas};color:${Ke.CanvasText};fill:currentcolor}.day.selected{color:${Ke.Highlight}}.today .date{background:${Ke.Highlight};color:${Ke.HighlightText}}`)),jc=Ci.compose({baseName:"calendar",template:(t,e)=>{var i;const o=new Date,s=`${o.getMonth()+1}-${o.getDate()}-${o.getFullYear()}`;return K`<template>${Wt} ${e.title instanceof Function?e.title(t,e):null!==(i=e.title)&&void 0!==i?i:""}<slot></slot>${St(t=>!1===t.readonly,Bi(t,s))} ${St(t=>!0===t.readonly,(t=>K`<div class="days" part="days"><div class="week-days" part="week-days">${Pt(t=>t.getWeekdayText(),K`<div class="week-day" part="week-day" abbr="${t=>t.abbr}">${t=>t.text}</div>`)}</div>${Pt(t=>t.getDays(),K`<div class="week">${Pt(t=>t,K`<div class="${(e,i)=>i.parentContext.parent.getDayClassNames(e,t)}" part="day" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${e=>t===`${e.month}-${e.day}-${e.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></div>`)}</div>`)}</div>`)(s))} ${Gt}</template>`},styles:Bc,title:Mi}),qc=(t,e)=>bt`
91
+ ${Fn("block")} :host{--elevation:4;display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${Ja};border-radius:calc(${Pr} * 1px);${pc}}`.withBehaviors(In(bt`
92
+ :host{forced-color-adjust:none;background:${Ke.Canvas};box-shadow:0 0 0 1px ${Ke.CanvasText}}`));class Uc extends ji{connectedCallback(){super.connectedCallback();const t=ao(this);t&&Ja.setValueFor(this,e=>ql.getValueFor(e).evaluate(e,Ja.getValueFor(t)))}}const _c=Uc.compose({baseName:"card",baseClass:ji,template:(t,e)=>K`<slot></slot>`,styles:qc}),Gc=(t,e)=>bt`
93
+ ${Fn("inline-flex")} :host{align-items:center;outline:none;margin:calc(${Hr} * 1px) 0;user-select:none}.control{position:relative;width:calc((${lc} / 2 + ${Hr}) * 1px);height:calc((${lc} / 2 + ${Hr}) * 1px);box-sizing:border-box;border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${tc};background:${Ol};outline:none;cursor:pointer}.label{font-family:${Rr};color:${Zl};padding-inline-start:calc(${Hr} * 2px + 2px);margin-inline-end:calc(${Hr} * 2px + 2px);cursor:pointer;font-size:${qr};line-height:${Ur}}.label__hidden{display:none;visibility:hidden}.checked-indicator{width:100%;height:100%;display:block;fill:${ll};opacity:0;pointer-events:none}.indeterminate-indicator{border-radius:calc(${Pr} * 1px);background:${ll};position:absolute;top:50%;left:50%;width:50%;height:50%;transform:translate(-50%,-50%);opacity:0}:host(:not([disabled])) .control:hover{background:${Sl};border-color:${ec}}:host(:not([disabled])) .control:active{background:${Dl};border-color:${ic}}:host(:${En}) .control{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${Gl}}:host([aria-checked="true"]) .control{background:${il};border:calc(${Br} * 1px) solid ${il}}:host([aria-checked="true"]:not([disabled])) .control:hover{background:${ol};border:calc(${Br} * 1px) solid ${ol}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill:${cl}}:host([aria-checked="true"]:not([disabled])) .control:hover .indeterminate-indicator{background:${cl}}:host([aria-checked="true"]:not([disabled])) .control:active{background:${sl};border:calc(${Br} * 1px) solid ${sl}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{fill:${hl}}:host([aria-checked="true"]:not([disabled])) .control:active .indeterminate-indicator{background:${hl}}:host([aria-checked="true"]:${En}:not([disabled])) .control{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${Gl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([aria-checked="true"]:not(.indeterminate)) .checked-indicator,:host(.indeterminate) .indeterminate-indicator{opacity:1}:host([disabled]){opacity:${Nr}}`.withBehaviors(In(bt`
94
+ .control{forced-color-adjust:none;border-color:${Ke.FieldText};background:${Ke.Field}}.checked-indicator{fill:${Ke.FieldText}}.indeterminate-indicator{background:${Ke.FieldText}}:host(:not([disabled])) .control:hover,.control:active{border-color:${Ke.Highlight};background:${Ke.Field}}:host(:${En}) .control{box-shadow:0 0 0 2px ${Ke.Field},0 0 0 4px ${Ke.FieldText}}:host([aria-checked="true"]:${En}:not([disabled])) .control{box-shadow:0 0 0 2px ${Ke.Field},0 0 0 4px ${Ke.FieldText}}:host([aria-checked="true"]) .control{background:${Ke.Highlight};border-color:${Ke.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover,.control:active{border-color:${Ke.Highlight};background:${Ke.HighlightText}}:host([aria-checked="true"]) .checked-indicator{fill:${Ke.HighlightText}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill:${Ke.Highlight}}:host([aria-checked="true"]) .indeterminate-indicator{background:${Ke.HighlightText}}:host([aria-checked="true"]) .control:hover .indeterminate-indicator{background:${Ke.Highlight}}:host([disabled]){opacity:1}:host([disabled]) .control{forced-color-adjust:none;border-color:${Ke.GrayText};background:${Ke.Field}}:host([disabled]) .indeterminate-indicator,:host([aria-checked="true"][disabled]) .control:hover .indeterminate-indicator{forced-color-adjust:none;background:${Ke.GrayText}}:host([disabled]) .checked-indicator,:host([aria-checked="true"][disabled]) .control:hover .checked-indicator{forced-color-adjust:none;fill:${Ke.GrayText}}`)),Wc=_i.compose({baseName:"checkbox",template:(t,e)=>K`<template role="checkbox" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot><slot name="indeterminate-indicator">${e.indeterminateIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label></template>`,styles:Gc,checkedIndicator:'\n <svg\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '}),Kc=(t,e)=>{const i=t.tagFor(Wi),o=t.name===t.tagFor(Qo)?"":".listbox";return bt`
95
+ ${o?"":Fn("inline-flex")}
96
+
97
+ :host ${o}{background:${Ja};border:calc(${Br} * 1px) solid ${tc};border-radius:calc(${Pr} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${Hr} * 1px) 0}${o?"":bt`
98
+ :host(:focus-within:not([disabled])){border-color:${Gl};box-shadow:0 0 0
99
+ calc((${jr} - ${Br}) * 1px)
100
+ ${Gl} inset}:host([disabled]) ::slotted(*){cursor:${"not-allowed"};opacity:${Nr};pointer-events:none}`}
101
+
102
+ ${o||":host([size])"}{max-height:calc(
103
+ (var(--size) * ${lc} + (${Hr} * ${Br} * 2)) * 1px
104
+ );overflow-y:auto}:host([size="0"]) ${o}{max-height:none}`.withBehaviors(In(bt`
105
+ :host(:not([multiple]):${En}) ::slotted(${i}[aria-selected="true"]),:host([multiple]:${En}) ::slotted(${i}[aria-checked="true"]){border-color:${Ke.ButtonText};box-shadow:0 0 0 calc(${jr} * 1px) inset ${Ke.HighlightText}}:host(:not([multiple]):${En}) ::slotted(${i}[aria-selected="true"]){background:${Ke.Highlight};color:${Ke.HighlightText};fill:currentcolor}::slotted(${i}[aria-selected="true"]:not([aria-checked="true"])){background:${Ke.Highlight};border-color:${Ke.HighlightText};color:${Ke.HighlightText}}`))},Xc=(t,e)=>{const i=t.name===t.tagFor(Vs);return bt`
106
+ ${Fn("inline-flex")}
107
+
108
+ :host{--elevation:14;background:${Ol};border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${il};box-sizing:border-box;color:${Zl};font-family:${Rr};height:calc(${lc} * 1px);position:relative;user-select:none;min-width:250px;outline:none;vertical-align:top}${i?bt`
109
+ :host(:not([aria-haspopup])){--elevation:0;border:0;height:auto;min-width:0}`:""}
110
+
111
+ ${Kc(t)}
112
+
113
+ :host .listbox{${pc}
114
+ border:none;display:flex;left:0;position:absolute;width:100%;z-index:1}.control + .listbox{--stroke-size:calc(${Hr} * ${Br} * 2);max-height:calc(
115
+ (var(--listbox-max-height) * ${lc} + var(--stroke-size)) * 1px
116
+ )}${i?bt`
117
+ :host(:not([aria-haspopup])) .listbox{left:auto;position:static;z-index:auto}`:""}
118
+
119
+ .listbox[hidden]{display:none}.control{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:${qr};font-family:inherit;line-height:${Ur};min-height:100%;padding:0 calc(${Hr} * 2.25px);width:100%}:host(:not([disabled]):hover){background:${Sl};border-color:${ol}}:host(:${En}){border-color:${Gl}}:host(:not([size]):not([multiple]):not([open]):${En}),:host([multiple]:${En}),:host([size]:${En}){box-shadow:0 0 0 calc(${jr} * 1px) ${Gl}}:host(:not([multiple]):not([size]):${En}) ::slotted(${t.tagFor(Wi)}[aria-selected="true"]:not([disabled])){box-shadow:0 0 0 calc(${jr} * 1px) inset ${Kl};border-color:${Gl};background:${nl};color:${dl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}:host([disabled]) .control{cursor:${"not-allowed"};user-select:none}:host([disabled]:hover){background:${Al};color:${Zl};fill:currentcolor}:host(:not([disabled])) .control:active{background:${Dl};border-color:${sl};border-radius:calc(${Pr} * 1px)}:host([open][position="above"]) .listbox{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0;bottom:calc(${lc} * 1px)}:host([open][position="below"]) .listbox{border-top-left-radius:0;border-top-right-radius:0;border-top:0;top:calc(${lc} * 1px)}.selected-value{flex:1 1 auto;font-family:inherit;min-width:calc(var(--listbox-scroll-width,0) - (${Hr} * 4) * 1px);overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap}.indicator{flex:0 0 auto;margin-inline-start:1em}slot[name="listbox"]{display:none;width:100%}:host([open]) slot[name="listbox"]{display:flex;position:absolute;${pc}}.end{margin-inline-start:auto}.start,.end,.indicator,.select-indicator,::slotted(svg){fill:currentcolor;height:1em;min-height:calc(${Hr} * 4px);min-width:calc(${Hr} * 4px);width:1em}::slotted([role="option"]),::slotted(option){flex:0 0 auto}`.withBehaviors(In(bt`
120
+ :host(:not([disabled]):hover),:host(:not([disabled]):active){border-color:${Ke.Highlight}}:host(:not([disabled]):${En}){background-color:${Ke.ButtonFace};box-shadow:0 0 0 calc(${jr} * 1px) ${Ke.Highlight};color:${Ke.ButtonText};fill:currentcolor;forced-color-adjust:none}:host(:not([disabled]):${En}) .listbox{background:${Ke.ButtonFace}}:host([disabled]){border-color:${Ke.GrayText};background-color:${Ke.ButtonFace};color:${Ke.GrayText};fill:currentcolor;opacity:1;forced-color-adjust:none}:host([disabled]:hover){background:${Ke.ButtonFace}}:host([disabled]) .control{color:${Ke.GrayText};border-color:${Ke.GrayText}}:host([disabled]) .control .select-indicator{fill:${Ke.GrayText}}:host(:${En}) ::slotted([aria-selected="true"][role="option"]),:host(:${En}) ::slotted(option[aria-selected="true"]),:host(:${En}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background:${Ke.Highlight};border-color:${Ke.ButtonText};box-shadow:0 0 0 calc(${jr} * 1px) inset ${Ke.HighlightText};color:${Ke.HighlightText};fill:currentcolor}.start,.end,.indicator,.select-indicator,::slotted(svg){color:${Ke.ButtonText};fill:currentcolor}`))},Yc=(t,e)=>bt`
121
+ ${Xc(t)}
122
+
123
+ :host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;font-size:${qr};line-height:${Ur};height:calc(100% - (${Br} * 1px));margin:auto 0;width:100%}.selected-value:hover,.selected-value:${En},.selected-value:disabled,.selected-value:active{outline:none}`;class Qc extends no{maxHeightChanged(t,e){this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);const t=Math.floor(this.maxHeight/rc.getValueFor(this)).toString();this.computedStylesheet=bt`
124
+ :host{--listbox-max-height:${t}}`,this.$fastController.addStyles(this.computedStylesheet)}}const Zc=Qc.compose({baseName:"combobox",baseClass:no,template:(t,e)=>K`<template aria-disabled="${t=>t.ariaDisabled}" autocomplete="${t=>t.autocomplete}" class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" ?open="${t=>t.open}" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><div class="control" part="control">${_t(0,e)}<slot name="control"><input aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-autocomplete="${t=>t.ariaAutoComplete}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${t=>t.placeholder}" role="combobox" type="text" ?disabled="${t=>t.disabled}" :value="${t=>t.value}" @input="${(t,e)=>t.inputHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}" ${Ot("control")} /><div class="indicator" part="indicator" aria-hidden="true"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Ut(0,e)}</div><div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Ot("listbox")}><slot ${Nt({filter:Xi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:Yc,shadowOptions:{delegatesFocus:!0},indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),Jc=(t,e)=>bt`
125
+ :host{display:flex;position:relative;flex-direction:column}`,th=(t,e)=>bt`
126
+ :host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${Br} * 1px) solid ${nc}}:host(.header){}:host(.sticky-header){background:${Cl};position:sticky;top:0}`,eh=(t,e)=>bt`
127
+ :host{padding:calc(${Hr} * 1px) calc(${Hr} * 3px);color:${Zl};box-sizing:border-box;font-family:${Rr};font-size:${qr};line-height:${Ur};font-weight:400;border:transparent calc(${jr} * 1px) solid;overflow:hidden;white-space:nowrap;border-radius:calc(${Pr} * 1px)}:host(.column-header){font-weight:600}:host(:${En}){border:${Gl} calc(${jr} * 1px) solid;outline:none;color:${Zl}}`.withBehaviors(In(bt`
128
+ :host{forced-color-adjust:none;border-color:transparent;background:${Ke.Field};color:${Ke.FieldText}}:host(:${En}){border-color:${Ke.FieldText};box-shadow:0 0 0 2px inset ${Ke.Field};color:${Ke.FieldText}}`)),ih=Hi.compose({baseName:"data-grid-cell",template:(t,e)=>K`<template tabindex="-1" role="${t=>t.cellType&&"default"!==t.cellType?t.cellType:"gridcell"}" class=" ${t=>"columnheader"===t.cellType?"column-header":"rowheader"===t.cellType?"row-header":""} "><slot></slot></template>`,styles:eh}),oh=Ai.compose({baseName:"data-grid-row",template:(t,e)=>K`<template role="row" class="${t=>"default"!==t.rowType?t.rowType:""}" :defaultCellItemTemplate="${function(t){const e=t.tagFor(Hi);return K`<${e} cell-type="${t=>t.isRowHeader?"rowheader":void 0}" grid-column="${(t,e)=>e.index+1}" :rowData="${(t,e)=>e.parent.rowData}" :columnDefinition="${t=>t}"></${e}>`}(t)}" :defaultHeaderCellItemTemplate="${function(t){const e=t.tagFor(Hi);return K`<${e} cell-type="columnheader" grid-column="${(t,e)=>e.index+1}" :columnDefinition="${t=>t}"></${e}>`}(t)}" ${jt({property:"cellElements",filter:zt('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}><slot ${Nt("slottedCellElements")}></slot></template>`,styles:th}),sh=Vi.compose({baseName:"data-grid",template:(t,e)=>{const i=function(t){const e=t.tagFor(Ai);return K`<${e} :rowData="${t=>t}" :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}" :headerCellItemTemplate="${(t,e)=>e.parent.headerCellItemTemplate}"></${e}>`}(t),o=t.tagFor(Ai);return K`<template role="grid" tabindex="0" :rowElementTag="${()=>o}" :defaultRowItemTemplate="${i}" ${jt({property:"rowElements",filter:zt("[role=row]")})}><slot></slot></template>`},styles:Jc}),nh={toView:t=>null==t?null:null==t?void 0:t.toColorString(),fromView(t){if(null==t)return null;const e=ur(t);return e?fr.create(e.r,e.g,e.b):null}},rh=bt`
129
+ :host{background-color:${Ja};color:${Zl}}`.withBehaviors(In(bt`
130
+ :host{background-color:${Ke.ButtonFace};box-shadow:0 0 0 1px ${Ke.CanvasText};color:${Ke.ButtonText}}`));function ah(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class lh extends De{constructor(){super(),this.noPaint=!1;const t={handleChange:this.noPaintChanged.bind(this)};b.getNotifier(this).subscribe(t,"fillColor"),b.getNotifier(this).subscribe(t,"baseLayerLuminance")}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(rh):this.$fastController.addStyles(rh)}}uc([st({attribute:"no-paint",mode:"boolean"})],lh.prototype,"noPaint",void 0),uc([st({attribute:"fill-color",converter:nh}),ah(Ja)],lh.prototype,"fillColor",void 0),uc([st({attribute:"accent-color",converter:nh,mode:"fromView"}),ah(Ma)],lh.prototype,"accentColor",void 0),uc([st({attribute:"neutral-color",converter:nh,mode:"fromView"}),ah(za)],lh.prototype,"neutralColor",void 0),uc([st({converter:it}),ah(zr)],lh.prototype,"density",void 0),uc([st({attribute:"design-unit",converter:it}),ah(Hr)],lh.prototype,"designUnit",void 0),uc([st({attribute:"direction"}),ah(Mr)],lh.prototype,"direction",void 0),uc([st({attribute:"base-height-multiplier",converter:it}),ah(Lr)],lh.prototype,"baseHeightMultiplier",void 0),uc([st({attribute:"base-horizontal-spacing-multiplier",converter:it}),ah(Ar)],lh.prototype,"baseHorizontalSpacingMultiplier",void 0),uc([st({attribute:"control-corner-radius",converter:it}),ah(Pr)],lh.prototype,"controlCornerRadius",void 0),uc([st({attribute:"stroke-width",converter:it}),ah(Br)],lh.prototype,"strokeWidth",void 0),uc([st({attribute:"focus-stroke-width",converter:it}),ah(jr)],lh.prototype,"focusStrokeWidth",void 0),uc([st({attribute:"disabled-opacity",converter:it}),ah(Nr)],lh.prototype,"disabledOpacity",void 0),uc([st({attribute:"type-ramp-minus-2-font-size"}),ah(Wr)],lh.prototype,"typeRampMinus2FontSize",void 0),uc([st({attribute:"type-ramp-minus-2-line-height"}),ah(Kr)],lh.prototype,"typeRampMinus2LineHeight",void 0),uc([st({attribute:"type-ramp-minus-1-font-size"}),ah(_r)],lh.prototype,"typeRampMinus1FontSize",void 0),uc([st({attribute:"type-ramp-minus-1-line-height"}),ah(Gr)],lh.prototype,"typeRampMinus1LineHeight",void 0),uc([st({attribute:"type-ramp-base-font-size"}),ah(qr)],lh.prototype,"typeRampBaseFontSize",void 0),uc([st({attribute:"type-ramp-base-line-height"}),ah(Ur)],lh.prototype,"typeRampBaseLineHeight",void 0),uc([st({attribute:"type-ramp-plus-1-font-size"}),ah(Xr)],lh.prototype,"typeRampPlus1FontSize",void 0),uc([st({attribute:"type-ramp-plus-1-line-height"}),ah(Yr)],lh.prototype,"typeRampPlus1LineHeight",void 0),uc([st({attribute:"type-ramp-plus-2-font-size"}),ah(Qr)],lh.prototype,"typeRampPlus2FontSize",void 0),uc([st({attribute:"type-ramp-plus-2-line-height"}),ah(Zr)],lh.prototype,"typeRampPlus2LineHeight",void 0),uc([st({attribute:"type-ramp-plus-3-font-size"}),ah(Jr)],lh.prototype,"typeRampPlus3FontSize",void 0),uc([st({attribute:"type-ramp-plus-3-line-height"}),ah(ta)],lh.prototype,"typeRampPlus3LineHeight",void 0),uc([st({attribute:"type-ramp-plus-4-font-size"}),ah(ea)],lh.prototype,"typeRampPlus4FontSize",void 0),uc([st({attribute:"type-ramp-plus-4-line-height"}),ah(ia)],lh.prototype,"typeRampPlus4LineHeight",void 0),uc([st({attribute:"type-ramp-plus-5-font-size"}),ah(oa)],lh.prototype,"typeRampPlus5FontSize",void 0),uc([st({attribute:"type-ramp-plus-5-line-height"}),ah(sa)],lh.prototype,"typeRampPlus5LineHeight",void 0),uc([st({attribute:"type-ramp-plus-6-font-size"}),ah(na)],lh.prototype,"typeRampPlus6FontSize",void 0),uc([st({attribute:"type-ramp-plus-6-line-height"}),ah(ra)],lh.prototype,"typeRampPlus6LineHeight",void 0),uc([st({attribute:"accent-fill-rest-delta",converter:it}),ah(aa)],lh.prototype,"accentFillRestDelta",void 0),uc([st({attribute:"accent-fill-hover-delta",converter:it}),ah(la)],lh.prototype,"accentFillHoverDelta",void 0),uc([st({attribute:"accent-fill-active-delta",converter:it}),ah(ca)],lh.prototype,"accentFillActiveDelta",void 0),uc([st({attribute:"accent-fill-focus-delta",converter:it}),ah(ha)],lh.prototype,"accentFillFocusDelta",void 0),uc([st({attribute:"accent-foreground-rest-delta",converter:it}),ah(da)],lh.prototype,"accentForegroundRestDelta",void 0),uc([st({attribute:"accent-foreground-hover-delta",converter:it}),ah(ua)],lh.prototype,"accentForegroundHoverDelta",void 0),uc([st({attribute:"accent-foreground-active-delta",converter:it}),ah(pa)],lh.prototype,"accentForegroundActiveDelta",void 0),uc([st({attribute:"accent-foreground-focus-delta",converter:it}),ah(ga)],lh.prototype,"accentForegroundFocusDelta",void 0),uc([st({attribute:"neutral-fill-rest-delta",converter:it}),ah(ma)],lh.prototype,"neutralFillRestDelta",void 0),uc([st({attribute:"neutral-fill-hover-delta",converter:it}),ah(fa)],lh.prototype,"neutralFillHoverDelta",void 0),uc([st({attribute:"neutral-fill-active-delta",converter:it}),ah(ba)],lh.prototype,"neutralFillActiveDelta",void 0),uc([st({attribute:"neutral-fill-focus-delta",converter:it}),ah(va)],lh.prototype,"neutralFillFocusDelta",void 0),uc([st({attribute:"neutral-fill-input-rest-delta",converter:it}),ah(ya)],lh.prototype,"neutralFillInputRestDelta",void 0),uc([st({attribute:"neutral-fill-input-hover-delta",converter:it}),ah(xa)],lh.prototype,"neutralFillInputHoverDelta",void 0),uc([st({attribute:"neutral-fill-input-active-delta",converter:it}),ah($a)],lh.prototype,"neutralFillInputActiveDelta",void 0),uc([st({attribute:"neutral-fill-input-focus-delta",converter:it}),ah(wa)],lh.prototype,"neutralFillInputFocusDelta",void 0),uc([st({attribute:"neutral-fill-stealth-rest-delta",converter:it}),ah(ka)],lh.prototype,"neutralFillStealthRestDelta",void 0),uc([st({attribute:"neutral-fill-stealth-hover-delta",converter:it}),ah(Ca)],lh.prototype,"neutralFillStealthHoverDelta",void 0),uc([st({attribute:"neutral-fill-stealth-active-delta",converter:it}),ah(Ia)],lh.prototype,"neutralFillStealthActiveDelta",void 0),uc([st({attribute:"neutral-fill-stealth-focus-delta",converter:it}),ah(Ta)],lh.prototype,"neutralFillStealthFocusDelta",void 0),uc([st({attribute:"neutral-fill-strong-hover-delta",converter:it}),ah(Ea)],lh.prototype,"neutralFillStrongHoverDelta",void 0),uc([st({attribute:"neutral-fill-strong-active-delta",converter:it}),ah(Oa)],lh.prototype,"neutralFillStrongActiveDelta",void 0),uc([st({attribute:"neutral-fill-strong-focus-delta",converter:it}),ah(Sa)],lh.prototype,"neutralFillStrongFocusDelta",void 0),uc([st({attribute:"base-layer-luminance",converter:it}),ah(Vr)],lh.prototype,"baseLayerLuminance",void 0),uc([st({attribute:"neutral-fill-layer-rest-delta",converter:it}),ah(Da)],lh.prototype,"neutralFillLayerRestDelta",void 0),uc([st({attribute:"neutral-stroke-divider-rest-delta",converter:it}),ah(Pa)],lh.prototype,"neutralStrokeDividerRestDelta",void 0),uc([st({attribute:"neutral-stroke-rest-delta",converter:it}),ah(Ra)],lh.prototype,"neutralStrokeRestDelta",void 0),uc([st({attribute:"neutral-stroke-hover-delta",converter:it}),ah(La)],lh.prototype,"neutralStrokeHoverDelta",void 0),uc([st({attribute:"neutral-stroke-active-delta",converter:it}),ah(Aa)],lh.prototype,"neutralStrokeActiveDelta",void 0),uc([st({attribute:"neutral-stroke-focus-delta",converter:it}),ah(Va)],lh.prototype,"neutralStrokeFocusDelta",void 0);const ch=(t,e)=>K`<slot></slot>`,hh=(t,e)=>bt`
131
+ ${Fn("block")}
132
+ `,dh=lh.compose({baseName:"design-system-provider",template:ch,styles:hh}),uh=(t,e)=>bt`
133
+ :host([hidden]){display:none}:host{--elevation:14;--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{${pc}
134
+ margin-top:auto;margin-bottom:auto;width:var(--dialog-width);height:var(--dialog-height);background-color:${Ja};z-index:1;border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid transparent}`,ph=Uo.compose({baseName:"dialog",template:(t,e)=>K`<div class="positioning-region" part="positioning-region">${St(t=>t.modal,K`<div class="overlay" part="overlay" role="presentation" @click="${t=>t.dismiss()}"></div>`)}<div role="dialog" tabindex="-1" class="control" part="control" aria-modal="${t=>t.modal}" aria-describedby="${t=>t.ariaDescribedby}" aria-labelledby="${t=>t.ariaLabelledby}" aria-label="${t=>t.ariaLabel}" ${Ot("dialog")}><slot></slot></div></div>`,styles:uh}),gh=(t,e)=>bt`
135
+ .disclosure{transition:height 0.35s}.disclosure .invoker::-webkit-details-marker{display:none}.disclosure .invoker{list-style-type:none}:host([appearance="accent"]) .invoker{background:${il};color:${ll};font-family:${Rr};font-size:${qr};border-radius:calc(${Pr} * 1px);outline:none;cursor:pointer;margin:16px 0;padding:12px;max-width:max-content}:host([appearance="accent"]) .invoker:active{background:${sl};color:${hl}}:host([appearance="accent"]) .invoker:hover{background:${ol};color:${cl}}:host([appearance="lightweight"]) .invoker{background:transparent;color:${yl};border-bottom:calc(${Br} * 1px) solid ${yl};cursor:pointer;width:max-content;margin:16px 0}:host([appearance="lightweight"]) .invoker:active{border-bottom-color:${$l}}:host([appearance="lightweight"]) .invoker:hover{border-bottom-color:${xl}}.disclosure[open] .invoker ~ *{animation:fadeIn 0.5s ease-in-out}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}`;class mh extends _o{constructor(){super(...arguments),this.height=0,this.totalHeight=0}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="accent")}appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}onToggle(){super.onToggle(),this.details.style.setProperty("height",this.disclosureHeight+"px")}setup(){super.setup();const t=()=>this.details.getBoundingClientRect().height;this.show(),this.totalHeight=t(),this.hide(),this.height=t(),this.expanded&&this.show()}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}}uc([st],mh.prototype,"appearance",void 0);const fh=mh.compose({baseName:"disclosure",baseClass:_o,template:(t,e)=>K`<details class="disclosure" ${Ot("details")}><summary class="invoker" role="button" aria-controls="disclosure-content" aria-expanded="${t=>t.expanded}"><slot name="start"></slot><slot name="title">${t=>t.title}</slot><slot name="end"></slot></summary><div id="disclosure-content"><slot></slot></div></details>`,styles:gh}),bh=(t,e)=>bt`
136
+ ${Fn("block")} :host{box-sizing:content-box;height:0;margin:calc(${Hr} * 1px) 0;border-top:calc(${Br} * 1px) solid ${nc};border-left:none}:host([orientation="vertical"]){height:100%;margin:0 calc(${Hr} * 1px);border-top:none;border-left:calc(${Br} * 1px) solid ${nc}}`,vh=Wo.compose({baseName:"divider",template:(t,e)=>K`<template role="${t=>t.role}" aria-orientation="${t=>t.orientation}"></template>`,styles:bh}),yh=(t,e)=>bt`
137
+ ${Fn("inline-flex")} :host{width:calc(${lc} * 1px);height:calc(${lc} * 1px);justify-content:center;align-items:center;margin:0;position:relative;fill:currentcolor;color:${ll};background:transparent;outline:none;border:none;padding:0}:host::before{content:"";background:${il};border:calc(${Br} * 1px) solid ${il};border-radius:50%;position:absolute;top:0;right:0;left:0;bottom:0;transition:all 0.1s ease-in-out}.next,.previous{position:relative;width:16px;height:16px;display:grid}:host([disabled]){opacity:${Nr};cursor:${"not-allowed"};fill:currentcolor;color:${Zl};pointer-events:none}:host([disabled])::before,:host([disabled]:hover)::before,:host([disabled]:active)::before{background:${Al};border-color:${tc}}:host(:hover){color:${cl}}:host(:hover)::before{background:${ol};border-color:${ol}}:host(:active){color:${hl}}:host(:active)::before{background:${sl};border-color:${sl}}:host(:${En}){outline:none}:host(:${En})::before{box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px) ${Gl} inset,0 0 0 calc((${jr} + ${Br}) * 1px) ${Kl} inset;border-color:${Gl}}:host::-moz-focus-inner{border:0}`.withBehaviors(In(bt`
138
+ :host{background:${Ke.Canvas}}:host .next,:host .previous{color:${Ke.ButtonText};fill:currentcolor}:host::before{background:${Ke.Canvas};border-color:${Ke.ButtonText}}:host(:hover)::before{forced-color-adjust:none;background:${Ke.Highlight};border-color:${Ke.ButtonText};opacity:1}:host(:hover) .next,:host(:hover) .previous{forced-color-adjust:none;color:${Ke.HighlightText};fill:currentcolor}:host([disabled]){opacity:1}:host([disabled])::before,:host([disabled]:hover)::before,:host([disabled]) .next,:host([disabled]) .previous{forced-color-adjust:none;background:${Ke.Canvas};border-color:${Ke.GrayText};color:${Ke.GrayText};fill:${Ke.GrayText}}:host(:${En})::before{forced-color-adjust:none;border-color:${Ke.Highlight};box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px) ${Ke.Highlight} inset}`)),xh=Yo.compose({baseName:"flipper",template:(t,e)=>K`<template role="button" aria-disabled="${t=>!!t.disabled||void 0}" tabindex="${t=>t.hiddenFromAT?-1:0}" class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${St(t=>t.direction===Ko,K`<span part="next" class="next"><slot name="next">${e.next||""}</slot></span>`)} ${St(t=>t.direction===Xo,K`<span part="previous" class="previous"><slot name="previous">${e.previous||""}</slot></span>`)}</template>`,styles:yh,next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '}),$h=bt`
139
+ .scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,wh=bt`
140
+ .scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,kh=bt`
141
+ .scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:"";display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}`.withBehaviors(new xc($h,wh)),Ch=(t,e)=>bt`
142
+ ${Fn("block")} :host{--scroll-align:center;--scroll-item-spacing:5px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class Ih extends Fs{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(kh)}}const Th=Ih.compose({baseName:"horizontal-scroll",baseClass:Fs,template:(t,e)=>{var i,o;return K`<template class="horizontal-scroll" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${_t(0,e)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${t=>t.scrolled()}" ${Ot("scrollContainer")}><div class="content-container" part="content-container" ${Ot("content")}><slot ${Nt({property:"scrollItems",filter:zt()})}></slot></div></div>${St(t=>"mobile"!==t.view,K`<div class="scroll scroll-prev" part="scroll-prev" ${Ot("previousFlipperContainer")}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${e.previousFlipper instanceof Function?e.previousFlipper(t,e):null!==(i=e.previousFlipper)&&void 0!==i?i:""}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${Ot("nextFlipperContainer")}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${e.nextFlipper instanceof Function?e.nextFlipper(t,e):null!==(o=e.nextFlipper)&&void 0!==o?o:""}</slot></div></div>`)}</div>${Ut(0,e)}</template>`},styles:Ch,nextFlipper:t=>K`<${t.tagFor(Yo)} @click="${t=>t.scrollToNext()}" aria-hidden="${t=>t.flippersHiddenFromAT}"></${t.tagFor(Yo)}>`,previousFlipper:t=>K`<${t.tagFor(Yo)} @click="${t=>t.scrollToPrevious()}" direction="previous" aria-hidden="${t=>t.flippersHiddenFromAT}"></${t.tagFor(Yo)}>`}),Fh=(t,e)=>bt`
143
+ ${Fn("inline-flex")} :host{align-items:center;font-family:${Rr};border-radius:calc(${Pr} * 1px);border:calc(${jr} * 1px) solid transparent;box-sizing:border-box;background:${Al};color:${Zl};cursor:pointer;flex:0 0 auto;fill:currentcolor;font-size:${qr};height:calc(${lc} * 1px);line-height:${Ur};margin:0 calc((${Hr} - ${jr}) * 1px);outline:none;overflow:hidden;padding:0 1ch;user-select:none;white-space:nowrap}:host(:not([disabled]):not([aria-selected="true"]):hover){background:${Vl}}:host(:not([disabled]):not([aria-selected="true"]):active){background:${Pl}}:host([aria-selected="true"]){background:${il};color:${ll}}:host(:not([disabled])[aria-selected="true"]:hover){background:${ol};color:${cl}}:host(:not([disabled])[aria-selected="true"]:active){background:${sl};color:${hl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted(svg){height:calc(${Hr} * 4px);width:calc(${Hr} * 4px)}::slotted([slot="end"]){margin-inline-start:1ch}::slotted([slot="start"]){margin-inline-end:1ch}:host([aria-checked="true"][aria-selected="false"]){border-color:${Gl}}:host([aria-checked="true"][aria-selected="true"]){border-color:${Gl};box-shadow:0 0 0 calc(${jr} * 2 * 1px) inset
144
+ ${Kl}}`.withBehaviors(In(bt`
145
+ :host{border-color:transparent;forced-color-adjust:none;color:${Ke.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${Ke.Highlight};color:${Ke.HighlightText}}:host([disabled]),:host([disabled][aria-selected="false"]:hover){background:${Ke.Canvas};color:${Ke.GrayText};fill:currentcolor;opacity:1}:host([aria-checked="true"][aria-selected="false"]){background:${Ke.ButtonFace};color:${Ke.ButtonText};border-color:${Ke.ButtonText}}:host([aria-checked="true"][aria-selected="true"]),:host([aria-checked="true"][aria-selected="true"]:hover){background:${Ke.Highlight};color:${Ke.HighlightText};border-color:${Ke.ButtonText}}`)),Eh=Wi.compose({baseName:"option",template:(t,e)=>K`<template aria-checked="${t=>t.ariaChecked}" aria-disabled="${t=>t.ariaDisabled}" aria-posinset="${t=>t.ariaPosInSet}" aria-selected="${t=>t.ariaSelected}" aria-setsize="${t=>t.ariaSetSize}" class="${t=>[t.checked&&"checked",t.selected&&"selected",t.disabled&&"disabled"].filter(Boolean).join(" ")}" role="option">${_t(0,e)}<span class="content" part="content"><slot ${Nt("content")}></slot></span>${Ut(0,e)}</template>`,styles:Fh});class Oh extends Qo{sizeChanged(t,e){super.sizeChanged(t,e),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);const t=""+this.size;this.computedStylesheet=bt`
146
+ :host{--size:${t}}`,this.$fastController.addStyles(this.computedStylesheet)}}const Sh=Oh.compose({baseName:"listbox",baseClass:Qo,template:(t,e)=>K`<template aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-multiselectable="${t=>t.ariaMultiSelectable}" class="listbox" role="listbox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"><slot ${Nt({filter:Qo.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></template>`,styles:Kc}),Dh=(t,e)=>bt`
147
+ ${Fn("grid")} :host{contain:layout;overflow:visible;font-family:${Rr};outline:none;box-sizing:border-box;height:calc(${lc} * 1px);grid-template-columns:minmax(42px,auto) 1fr minmax(42px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;margin:0 calc(${Hr} * 1px);white-space:nowrap;background:${Al};color:${Zl};fill:currentcolor;cursor:pointer;font-size:${qr};line-height:${Ur};border-radius:calc(${Pr} * 1px);border:calc(${jr} * 1px) solid transparent}:host(:hover){position:relative;z-index:1}:host(.indent-0){grid-template-columns:auto 1fr minmax(42px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2){grid-template-columns:minmax(42px,auto) minmax(42px,auto) 1fr minmax(42px,auto) minmax(42px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${En}){border-color:${Gl};background:${zl};color:${Zl}}:host(:hover){background:${Vl};color:${Zl}}:host(:active){background:${Pl}}:host([aria-checked="true"]),:host(.expanded){background:${Cl};color:${Zl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}:host([disabled]:hover){color:${Zl};fill:currentcolor;background:${Al}}:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){fill:${Zl}}.expand-collapse-glyph{width:16px;height:16px;fill:currentcolor}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}::slotted(svg){width:16px;height:16px}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${Zl}}:host(.indent-0[aria-haspopup="menu"]){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-1[aria-haspopup="menu"]),:host(.indent-1[role="menuitemcheckbox"]),:host(.indent-1[role="menuitemradio"]){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup="menu"])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup="menu"]) .expand-collapse-glyph-container,:host([role="menuitemcheckbox"]) .input-container,:host([role="menuitemradio"]) .input-container{display:grid;margin-inline-end:10px}:host([aria-haspopup="menu"]) .content,:host([role="menuitemcheckbox"]) .content,:host([role="menuitemradio"]) .content{grid-column-start:3}:host([aria-haspopup="menu"].indent-0) .content{grid-column-start:1}:host([aria-haspopup="menu"]) .end,:host([role="menuitemcheckbox"]) .end,:host([role="menuitemradio"]) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;width:20px;height:20px;box-sizing:border-box;outline:none;margin-inline-start:10px}:host .checkbox,:host .radio{border:calc(${Br} * 1px) solid ${Zl}}:host([aria-checked="true"]) .checkbox,:host([aria-checked="true"]) .radio{background:${il};border-color:${il}}:host .checkbox{border-radius:calc(${Pr} * 1px)}:host .radio{border-radius:999px}:host .checkbox-indicator,:host .radio-indicator,:host .expand-collapse-indicator,::slotted([slot="checkbox-indicator"]),::slotted([slot="radio-indicator"]),::slotted([slot="expand-collapse-indicator"]){display:none}::slotted([slot="end"]:not(svg)){margin-inline-end:10px;color:${Yl}}:host([aria-checked="true"]) .checkbox-indicator,:host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]){width:100%;height:100%;display:block;fill:${ll};pointer-events:none}:host([aria-checked="true"]) .radio-indicator{position:absolute;top:4px;left:4px;right:4px;bottom:4px;border-radius:999px;display:block;background:${ll};pointer-events:none}:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){display:block;pointer-events:none}`.withBehaviors(In(bt`
148
+ :host{border-color:transparent;color:${Ke.ButtonText};forced-color-adjust:none}:host(:hover){background:${Ke.Highlight};color:${Ke.HighlightText}}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${Ke.HighlightText}}:host(.expanded){background:${Ke.Highlight};border-color:${Ke.Highlight};color:${Ke.HighlightText}}:host(:${En}){background:${Ke.Highlight};border-color:${Ke.ButtonText};box-shadow:0 0 0 calc(${jr} * 1px) inset ${Ke.HighlightText};color:${Ke.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){background:${Ke.Canvas};color:${Ke.GrayText};fill:currentcolor;opacity:1}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${Ke.ButtonText};background:${Ke.HighlightText}}:host([checked="true"]) .checkbox,:host([checked="true"]) .radio{background:${Ke.HighlightText};border-color:${Ke.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${En}) .expanded-toggle,:host(:${En}) .checkbox,:host(:${En}) .radio,:host([checked="true"]:hover) .checkbox,:host([checked="true"]:hover) .radio,:host([checked="true"]:${En}) .checkbox,:host([checked="true"]:${En}) .radio{border-color:${Ke.HighlightText}}:host([aria-checked="true"]){background:${Ke.Highlight};color:${Ke.HighlightText}}:host([aria-checked="true"]) .checkbox-indicator,:host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]),:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){fill:${Ke.Highlight}}:host([aria-checked="true"]) .radio-indicator{background:${Ke.Highlight}}::slotted([slot="end"]:not(svg)){color:${Ke.ButtonText}}:host(:hover) ::slotted([slot="end"]:not(svg)),:host(:${En}) ::slotted([slot="end"]:not(svg)){color:${Ke.HighlightText}}`),new xc(bt`
149
+ .expand-collapse-glyph{transform:rotate(0deg)}`,bt`
150
+ .expand-collapse-glyph{transform:rotate(180deg)}`)),Rh=us.compose({baseName:"menu-item",template:(t,e)=>K`<template role="${t=>t.role}" aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==ls?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>"indent-"+t.startColumnCount}">${St(t=>t.role===cs,K`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${e.checkboxIndicator||""}</slot></span></div>`)} ${St(t=>t.role===hs,K`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${e.radioIndicator||""}</slot></span></div>`)}</div>${_t(0,e)}<span class="content" part="content"><slot></slot></span>${Ut(0,e)} ${St(t=>t.hasSubmenu,K`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${e.expandCollapseGlyph||""}</slot></span></div>`)} ${St(t=>t.expanded,K`<${t.tagFor(oi)} :anchorElement="${t=>t}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${t=>t.currentDirection}" @loaded="${t=>t.submenuLoaded()}" ${Ot("submenuRegion")} part="submenu-region"><slot name="submenu"></slot></${t.tagFor(oi)}>`)}</template>`,styles:Dh,checkboxIndicator:'\n <svg\n part="checkbox-indicator"\n class="checkbox-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n ',radioIndicator:'\n <span part="radio-indicator" class="radio-indicator"></span>\n '}),Lh=(t,e)=>bt`
151
+ ${Fn("block")} :host{--elevation:11;background:${Ja};border:calc(${Br} * 1px) solid transparent;${pc}
152
+ margin:0;border-radius:calc(${Pr} * 1px);padding:calc(${Hr} * 1px) 0;max-width:368px;min-width:64px}:host([slot="submenu"]){width:max-content;margin:0 calc(${Hr} * 1px)}::slotted(hr){box-sizing:content-box;height:0;margin:0;border:none;border-top:calc(${Br} * 1px) solid ${nc}}`.withBehaviors(In(bt`
153
+ :host{background:${Ke.Canvas};border-color:${Ke.CanvasText}}`));class Ah extends ps{connectedCallback(){super.connectedCallback(),Ja.setValueFor(this,Ua)}}const Vh=Ah.compose({baseName:"menu",template:(t,e)=>K`<template slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(t,e)=>t.handleMenuKeyDown(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}"><slot ${Nt("items")}></slot></template>`,styles:Lh}),Ph=(t,e)=>bt`
154
+ ${Fn("inline-block")} :host{font-family:${Rr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Zl};background:${Ol};border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${il};height:calc(${lc} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Hr} * 2px + 1px);font-size:${qr};line-height:${Ur}}.control:hover,.control:${En},.control:disabled,.control:active{outline:none}.controls{opacity:0}.label{display:block;color:${Zl};cursor:pointer;font-size:${qr};line-height:${Ur};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.control,.controls,.end{align-self:center}.start,.end{margin:auto;fill:currentcolor}.step-up-glyph,.step-down-glyph{display:block;padding:4px 10px;cursor:pointer}.step-up-glyph:before,.step-down-glyph:before{content:'';display:block;border:solid transparent 6px}.step-up-glyph:before{border-bottom-color:${Zl}}.step-down-glyph:before{border-top-color:${Zl}}::slotted(svg){width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${Sl};border-color:${ol}}:host(:active:not([disabled])) .root{background:${Sl};border-color:${sl}}:host(:focus-within:not([disabled])) .root{border-color:${Gl};box-shadow:0 0 0 calc(${jr} * 1px) ${Gl} inset}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}:host([appearance="filled"]) .root{background:${Cl}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Il}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${tc}}`.withBehaviors(In(bt`
155
+ .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${Ke.Field};border-color:${Ke.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${Ke.Field};border-color:${Ke.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${Ke.GrayText};background:${Ke.Field}}:host(:focus-within:enabled) .root{border-color:${Ke.Highlight};box-shadow:0 0 0 1px ${Ke.Highlight} inset}input::placeholder{color:${Ke.GrayText}}`));class zh extends $s{constructor(){super(...arguments),this.appearance="outline"}}uc([st],zh.prototype,"appearance",void 0);const Hh=zh.compose({baseName:"number-field",baseClass:$s,styles:Ph,template:(t,e)=>K`<template class="${t=>t.readOnly?"readonly":""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label><div class="root" part="root">${_t(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @blur="${(t,e)=>t.handleBlur()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" type="text" inputmode="numeric" min="${t=>t.min}" max="${t=>t.max}" step="${t=>t.step}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Ot("control")} />${St(t=>!t.hideStep&&!t.readOnly&&!t.disabled,K`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${t=>t.stepUp()}"><slot name="step-up-glyph">${e.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${t=>t.stepDown()}"><slot name="step-down-glyph">${e.stepDownGlyph||""}</slot></div></div>`)} ${Ut(0,e)}</div></template>`,shadowOptions:{delegatesFocus:!0},stepDownGlyph:'\n <span class="step-down-glyph" part="step-down-glyph"></span>\n ',stepUpGlyph:'\n <span class="step-up-glyph" part="step-up-glyph"></span>\n '}),Mh=(t,e)=>bt`
156
+ .region{z-index:1000;overflow:hidden;display:flex;font-family:${Rr};font-size:${qr}}.loaded{opacity:1;pointer-events:none}.loading-display,.no-options-display{background:${Ja};width:100%;min-height:calc(${lc} * 1px);display:flex;flex-direction:column;align-items:center;justify-items:center;padding:calc(${Hr} * 1px)}.loading-progress{width:42px;height:42px}.bottom{flex-direction:column}.top{flex-direction:column-reverse}`,Nh=(t,e)=>bt`
157
+ :host{background:${Ja};--elevation:11;z-index:1000;display:flex;width:100%;max-height:100%;min-height:58px;box-sizing:border-box;flex-direction:column;overflow-y:auto;overflow-x:hidden;pointer-events:auto;border-radius:calc(${Pr} * 1px);padding:calc(${Hr} * 1px) 0;border:calc(${Br} * 1px) solid transparent;${pc}}.suggestions-available-alert{height:0;opacity:0;overflow:hidden}`.withBehaviors(In(bt`
158
+ :host{background:${Ke.Canvas};border-color:${Ke.CanvasText}}`)),Bh=(t,e)=>bt`
159
+ :host{display:flex;align-items:center;justify-items:center;font-family:${Rr};border-radius:calc(${Pr} * 1px);border:calc(${jr} * 1px) solid transparent;box-sizing:border-box;background:${Al};color:${Zl};cursor:pointer;fill:currentcolor;font-size:${qr};min-height:calc(${lc} * 1px);line-height:${Ur};margin:0 calc(${Hr} * 1px);outline:none;overflow:hidden;padding:0 calc(${Hr} * 2.25px);user-select:none;white-space:nowrap}:host(:${En}[role="listitem"]){border-color:${Gl};background:${zl}}:host(:hover){background:${Vl}}:host(:active){background:${Pl}}:host([aria-selected="true"]){background:${il};color:${ll}}:host([aria-selected="true"]:hover){background:${ol};color:${cl}}:host([aria-selected="true"]:active){background:${sl};color:${hl}}`.withBehaviors(In(bt`
160
+ :host{border-color:transparent;forced-color-adjust:none;color:${Ke.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${Ke.Highlight};color:${Ke.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected="true"]):hover){background:${Ke.Canvas};color:${Ke.GrayText};fill:currentcolor;opacity:1}`)),jh=(t,e)=>bt`
161
+ :host{display:flex;align-items:center;justify-items:center;font-family:${Rr};border-radius:calc(${Pr} * 1px);border:calc(${jr} * 1px) solid transparent;box-sizing:border-box;background:${Al};color:${Zl};cursor:pointer;fill:currentcolor;font-size:${qr};height:calc(${lc} * 1px);line-height:${Ur};outline:none;overflow:hidden;padding:0 calc(${Hr} * 2.25px);user-select:none;white-space:nowrap}:host(:hover){background:${Vl}}:host(:active){background:${Pl}}:host(:${En}){background:${zl};border-color:${Gl}}:host([aria-selected="true"]){background:${il};color:${hl}}`.withBehaviors(In(bt`
162
+ :host{border-color:transparent;forced-color-adjust:none;color:${Ke.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${Ke.Highlight};color:${Ke.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected="true"]):hover){background:${Ke.Canvas};color:${Ke.GrayText};fill:currentcolor;opacity:1}`)),qh=as.compose({baseName:"picker",template:(t,e)=>{const i=t.tagFor(oi),o=t.tagFor(Zo),s=t.tagFor(es),n=t.tagFor(es);return K`<template :selectedListTag="${()=>s}" :menuTag="${()=>o}" :defaultListItemTemplate="${function(t){const e=t.tagFor(os);return K`<${e} value="${t=>t}" :contentsTemplate="${(t,e)=>e.parent.listItemContentsTemplate}"></${e}>`}(t)}" :defaultMenuOptionTemplate="${function(t){const e=t.tagFor(ts);return K`<${e} value="${t=>t}" :contentsTemplate="${(t,e)=>e.parent.menuOptionContentsTemplate}"></${e}>`}(t)}" @focusin="${(t,e)=>t.handleFocusIn(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @pickeriteminvoked="${(t,e)=>t.handleItemInvoke(e.event)}" @pickeroptioninvoked="${(t,e)=>t.handleOptionInvoke(e.event)}"><slot name="list-region"></slot>${St(t=>t.flyoutOpen,K`<${i} class="region" part="region" auto-update-mode="${t=>t.menuConfig.autoUpdateMode}" fixed-placement="${t=>t.menuConfig.fixedPlacement}" vertical-positioning-mode="${t=>t.menuConfig.verticalPositioningMode}" vertical-default-position="${t=>t.menuConfig.verticalDefaultPosition}" vertical-scaling="${t=>t.menuConfig.verticalScaling}" vertical-inset="${t=>t.menuConfig.verticalInset}" vertical-viewport-lock="${t=>t.menuConfig.verticalViewportLock}" horizontal-positioning-mode="${t=>t.menuConfig.horizontalPositioningMode}" horizontal-default-position="${t=>t.menuConfig.horizontalDefaultPosition}" horizontal-scaling="${t=>t.menuConfig.horizontalScaling}" horizontal-inset="${t=>t.menuConfig.horizontalInset}" horizontal-viewport-lock="${t=>t.menuConfig.horizontalViewportLock}" @loaded="${(t,e)=>t.handleRegionLoaded(e.event)}" ${Ot("region")}>${St(t=>!t.showNoOptions&&!t.showLoading,K`<slot name="menu-region"></slot>`)} ${St(t=>t.showNoOptions&&!t.showLoading,K`<div class="no-options-display" part="no-options-display"><slot name="no-options-region">${t=>t.noSuggestionsText}</slot></div>`)} ${St(t=>t.showLoading,K`<div class="loading-display" part="loading-display"><slot name="loading-region"><${n} part="loading-progress" class="loading-progress slot="loading-region"></${n}>${t=>t.loadingText}</slot></div>`)}</${i}>`)}</template>`},styles:Mh,shadowOptions:{}});class Uh extends Zo{connectedCallback(){Ja.setValueFor(this,Ua),super.connectedCallback()}}const _h=Uh.compose({baseName:"picker-menu",baseClass:Zo,template:(t,e)=>K`<template role="list" slot="menu-region"><div class="options-display" part="options-display"><div class="header-region" part="header-region"><slot name="header-region" ${Nt("headerElements")}></slot></div><slot ${Nt("menuElements")}></slot><div class="footer-region" part="footer-region"><slot name="footer-region" ${Nt("footerElements")}></slot></div><div role="alert" aria-live="polite" part="suggestions-available-alert" class="suggestions-available-alert">${t=>t.suggestionsAvailableText}</div></div></template>`,styles:Nh}),Gh=ts.compose({baseName:"picker-menu-option",template:(t,e)=>K`<template role="listitem" tabindex="-1" @click="${(t,e)=>t.handleClick(e.event)}"><slot></slot></template>`,styles:Bh}),Wh=es.compose({baseName:"picker-list",template:(t,e)=>K`<template slot="list-region" role="list" class="picker-list"><slot></slot><slot name="input-region"></slot></template>`,styles:(t,e)=>bt`
163
+ :host{display:flex;flex-direction:row;column-gap:calc(${Hr} * 1px);row-gap:calc(${Hr} * 1px);flex-wrap:wrap}::slotted([role="combobox"]){min-width:260px;width:auto;box-sizing:border-box;color:${Zl};background:${Ol};border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${il};height:calc(${lc} * 1px);font-family:${Rr};outline:none;user-select:none;font-size:${qr};line-height:${Ur};padding:0 calc(${Hr} * 2px + 1px)}::slotted([role="combobox"]:active){{background:${Sl};border-color:${sl}}::slotted([role="combobox"]:focus-within){border-color:${Gl};box-shadow:0 0 0 1px ${Gl} inset}`.withBehaviors(In(bt`
164
+ ::slotted([role="combobox"]:active){background:${Ke.Field};border-color:${Ke.Highlight}}::slotted([role="combobox"]:focus-within){border-color:${Ke.Highlight};box-shadow:0 0 0 1px ${Ke.Highlight} inset}::slotted(input:placeholder){color:${Ke.GrayText}}`))}),Kh=os.compose({baseName:"picker-list-item",template:(t,e)=>K`<template role="listitem" tabindex="0" @click="${(t,e)=>t.handleClick(e.event)}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}"><slot></slot></template>`,styles:jh}),Xh=(t,e)=>bt`
165
+ ${Fn("flex")} :host{align-items:center;outline:none;height:calc(${lc} * 1px);width:calc(${lc} * 1px);margin:calc(${lc} * 1px) 0}.progress{height:100%;width:100%}.background{stroke:${Cl};fill:none;stroke-width:2px}.determinate{stroke:${yl};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${yl};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host([paused]) .indeterminate-indicator-1{animation-play-state:paused;stroke:${Cl}}:host([paused]) .determinate{stroke:${Yl}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`.withBehaviors(In(bt`
166
+ .indeterminate-indicator-1,.determinate{stroke:${Ke.FieldText}}.background{stroke:${Ke.Field}}:host([paused]) .indeterminate-indicator-1{stroke:${Ke.Field}}:host([paused]) .determinate{stroke:${Ke.GrayText}}`)),Yh=ws.compose({baseName:"progress-ring",template:(t,e)=>K`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${St(t=>"number"==typeof t.value,K`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${t=>44*t.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${St(t=>"number"!=typeof t.value,K`<slot name="indeterminate" slot="indeterminate">${e.indeterminateIndicator||""}</slot>`)}</template>`,styles:Xh,indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '}),Qh=(t,e)=>bt`
167
+ ${Fn("flex")} :host{align-items:center;outline:none;height:calc(${Hr} * 1px);margin:calc(${Hr} * 1px) 0}.progress{background-color:${Cl};border-radius:calc(${Hr} * 1px);width:100%;height:100%;display:flex;align-items:center;position:relative}.determinate{background-color:${yl};border-radius:calc(${Hr} * 1px);height:100%;transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:100%;border-radius:calc(${Hr} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${yl};border-radius:calc(${Hr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${yl};border-radius:calc(${Hr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host([paused]) .indeterminate-indicator-1,:host([paused]) .indeterminate-indicator-2{animation-play-state:paused;background-color:${Cl}}:host([paused]) .determinate{background-color:${Yl}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(In(bt`
168
+ .progress{forced-color-adjust:none;background-color:${Ke.Field};box-shadow:0 0 0 1px inset ${Ke.FieldText}}.determinate,.indeterminate-indicator-1,.indeterminate-indicator-2{forced-color-adjust:none;background-color:${Ke.FieldText}}:host([paused]) .determinate,:host([paused]) .indeterminate-indicator-1,:host([paused]) .indeterminate-indicator-2{background-color:${Ke.GrayText}}`)),Zh=ws.compose({baseName:"progress",template:(t,e)=>K`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${St(t=>"number"==typeof t.value,K`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${t=>t.percentComplete}%"></div></div>`)} ${St(t=>"number"!=typeof t.value,K`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${e.indeterminateIndicator1||""} ${e.indeterminateIndicator2||""}</slot></div>`)}</template>`,styles:Qh,indeterminateIndicator1:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n ',indeterminateIndicator2:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n '}),Jh=(t,e)=>bt`
169
+ ${Fn("flex")} :host{align-items:flex-start;margin:calc(${Hr} * 1px) 0;flex-direction:column}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation="vertical"]) .positioning-region{flex-direction:column}:host([orientation="horizontal"]) .positioning-region{flex-direction:row}`,td=ks.compose({baseName:"radio-group",template:(t,e)=>K`<template role="radiogroup" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @focusout="${(t,e)=>t.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${t=>t.orientation===Pe?"horizontal":"vertical"}" part="positioning-region"><slot ${Nt({property:"slottedRadioButtons",filter:zt("[role=radio]")})}></slot></div></template>`,styles:Jh}),ed=(t,e)=>bt`
170
+ ${Fn("inline-flex")} :host{--input-size:calc((${lc} / 2) + ${Hr});align-items:center;outline:none;margin:calc(${Hr} * 1px) 0;user-select:none;position:relative;flex-direction:row;transition:all 0.2s ease-in-out}.control{position:relative;width:calc((${lc} / 2 + ${Hr}) * 1px);height:calc((${lc} / 2 + ${Hr}) * 1px);box-sizing:border-box;border-radius:999px;border:calc(${Br} * 1px) solid ${tc};background:${Ol};outline:none;cursor:pointer}.label{font-family:${Rr};color:${Zl};padding-inline-start:calc(${Hr} * 2px + 2px);margin-inline-end:calc(${Hr} * 2px + 2px);cursor:pointer;font-size:${qr};line-height:${Ur}}.label__hidden{display:none;visibility:hidden}.control,.checked-indicator{flex-shrink:0}.checked-indicator{position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:999px;display:inline-block;background:${ll};fill:${ll};opacity:0;pointer-events:none}:host(:not([disabled])) .control:hover{background:${Sl};border-color:${ec}}:host(:not([disabled])) .control:active{background:${Dl};border-color:${ic}}:host(:${En}) .control{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${Gl}}:host([aria-checked="true"]) .control{background:${il};border:calc(${Br} * 1px) solid ${il}}:host([aria-checked="true"]:not([disabled])) .control:hover{background:${ol};border:calc(${Br} * 1px) solid ${ol}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{background:${cl};fill:${cl}}:host([aria-checked="true"]:not([disabled])) .control:active{background:${sl};border:calc(${Br} * 1px) solid ${sl}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background:${hl};fill:${hl}}:host([aria-checked="true"]:${En}:not([disabled])) .control{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${Gl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([aria-checked="true"]) .checked-indicator{opacity:1}:host([disabled]){opacity:${Nr}}`.withBehaviors(In(bt`
171
+ .control,:host([aria-checked="true"]:not([disabled])) .control{forced-color-adjust:none;border-color:${Ke.FieldText};background:${Ke.Field}}:host(:not([disabled])) .control:hover{border-color:${Ke.Highlight};background:${Ke.Field}}:host([aria-checked="true"]:not([disabled])) .control:hover,:host([aria-checked="true"]:not([disabled])) .control:active{border-color:${Ke.Highlight};background:${Ke.Highlight}}:host([aria-checked="true"]) .checked-indicator{background:${Ke.Highlight};fill:${Ke.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator,:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background:${Ke.HighlightText};fill:${Ke.HighlightText}}:host(:${En}) .control{border-color:${Ke.Highlight};box-shadow:0 0 0 2px ${Ke.Field},0 0 0 4px ${Ke.FieldText}}:host([aria-checked="true"]:${En}:not([disabled])) .control{border-color:${Ke.Highlight};box-shadow:0 0 0 2px ${Ke.Field},0 0 0 4px ${Ke.FieldText}}:host([disabled]){forced-color-adjust:none;opacity:1}:host([disabled]) .label{color:${Ke.GrayText}}:host([disabled]) .control,:host([aria-checked="true"][disabled]) .control:hover,.control:active{background:${Ke.Field};border-color:${Ke.GrayText}}:host([disabled]) .checked-indicator,:host([aria-checked="true"][disabled]) .control:hover .checked-indicator{fill:${Ke.GrayText};background:${Ke.GrayText}}`)),id=Ts.compose({baseName:"radio",template:(t,e)=>K`<template role="radio" class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label></template>`,styles:ed,checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '}),od=Io.create("clear-button-hover").withDefault(t=>{const e=Ll.getValueFor(t),i=kl.getValueFor(t);return e.evaluate(t,i.evaluate(t).hover).hover}),sd=Io.create("clear-button-active").withDefault(t=>{const e=Ll.getValueFor(t),i=kl.getValueFor(t);return e.evaluate(t,i.evaluate(t).hover).active}),nd=(t,e)=>bt`
172
+ ${Fn("inline-block")} :host{font-family:${Rr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Zl};background:${Ol};border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${il};height:calc(${lc} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Hr} * 2px + 1px);font-size:${qr};line-height:${Ur}}.control::-webkit-search-cancel-button{-webkit-appearance:none}.control:hover,.control:${En},.control:disabled,.control:active{outline:none}.clear-button{height:calc(100% - 2px);opacity:0;margin:1px;background:transparent;color:${Zl};fill:currentcolor;border:none;border-radius:calc(${Pr} * 1px);min-width:calc(${lc} * 1px);font-size:${qr};line-height:${Ur};outline:none;font-family:${Rr};padding:0 calc((10 + (${Hr} * 2 * ${zr})) * 1px)}.clear-button:hover{background:${Vl}}.clear-button:active{background:${Pl}}:host([appearance="filled"]) .clear-button:hover{background:${od}}:host([appearance="filled"]) .clear-button:active{background:${sd}}.input-wrapper{display:flex;position:relative;width:100%;height:100%}.label{display:block;color:${Zl};cursor:pointer;font-size:${qr};line-height:${Ur};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.input-wrapper,.start,.end{align-self:center}.start,.end{display:flex;margin:1px;fill:currentcolor}::slotted([slot="end"]){height:100%}.end{margin-inline-end:1px;height:calc(100% - 2px)}::slotted(svg){width:16px;height:16px;margin-inline-end:11px;margin-inline-start:11px;margin-top:auto;margin-bottom:auto}:host(:hover:not([disabled])) .root{background:${Sl};border-color:${ol}}:host(:active:not([disabled])) .root{background:${Sl};border-color:${sl}}:host(:focus-within:not([disabled])) .root{border-color:${Gl};box-shadow:0 0 0 1px ${Gl} inset}.clear-button__hidden{opacity:0}:host(:hover:not([disabled],[readOnly])) .clear-button,:host(:active:not([disabled],[readOnly])) .clear-button,:host(:focus-within:not([disabled],[readOnly])) .clear-button{opacity:1}:host(:hover:not([disabled],[readOnly])) .clear-button__hidden,:host(:active:not([disabled],[readOnly])) .clear-button__hidden,:host(:focus-within:not([disabled],[readOnly])) .clear-button__hidden{opacity:0}:host([appearance="filled"]) .root{background:${Ja}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Il}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${tc}}`.withBehaviors(In(bt`
173
+ .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${Ke.Field};border-color:${Ke.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${Ke.Field};border-color:${Ke.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${Ke.GrayText};background:${Ke.Field}}:host(:focus-within:enabled) .root{border-color:${Ke.Highlight};box-shadow:0 0 0 1px ${Ke.Highlight} inset}input::placeholder{color:${Ke.GrayText}}`));class rd extends Ds{constructor(){super(...arguments),this.appearance="outline"}}uc([st],rd.prototype,"appearance",void 0);const ad=rd.compose({baseName:"search",baseClass:Ds,template:(t,e)=>K`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt({property:"defaultSlottedNodes",filter:Es})}></slot></label><div class="root" part="root" ${Ot("root")}>${_t(0,e)}<div class="input-wrapper" part="input-wrapper"><input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="search" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Ot("control")} /><slot name="close-button"><button class="clear-button ${t=>t.value?"":"clear-button__hidden"}" part="clear-button" tabindex="-1" @click=${t=>t.handleClearInput()}><slot name="close-glyph"><svg width="9" height="9" viewBox="0 0 9 9" xmlns="http://www.w3.org/2000/svg"><path d="M0.146447 0.146447C0.338683 -0.0478972 0.645911 -0.0270359 0.853553 0.146447L4.5 3.793L8.14645 0.146447C8.34171 -0.0488155 8.65829 -0.0488155 8.85355 0.146447C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L5.207 4.5L8.85355 8.14645C9.05934 8.35223 9.03129 8.67582 8.85355 8.85355C8.67582 9.03129 8.35409 9.02703 8.14645 8.85355L4.5 5.207L0.853553 8.85355C0.658291 9.04882 0.341709 9.04882 0.146447 8.85355C-0.0488155 8.65829 -0.0488155 8.34171 0.146447 8.14645L3.793 4.5L0.146447 0.853553C-0.0268697 0.680237 -0.0457894 0.34079 0.146447 0.146447Z" /></svg></slot></button></slot></div>${Ut(0,e)}</div></template>`,styles:nd,shadowOptions:{delegatesFocus:!0}}),ld=nd;class cd extends Vs{constructor(){super(...arguments),this.listboxScrollWidth=""}connectedCallback(){super.connectedCallback(),this.listbox&&Ja.setValueFor(this.listbox,Ua)}get listboxMaxHeight(){return Math.floor(this.maxHeight/rc.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var t;return""+(null!==(t=this.size)&&void 0!==t?t:this.multiple?4:0)}multipleChanged(t,e){super.multipleChanged(t,e),this.updateComputedStylesheet()}maxHeightChanged(t,e){this.collapsible&&this.updateComputedStylesheet()}setPositioning(){super.setPositioning(),this.updateComputedStylesheet()}sizeChanged(t,e){super.sizeChanged(t,e),this.updateComputedStylesheet(),this.collapsible?requestAnimationFrame(()=>{this.listbox.style.setProperty("display","flex"),this.listbox.style.setProperty("overflow","visible"),this.listbox.style.setProperty("visibility","hidden"),this.listbox.style.setProperty("width","auto"),this.listbox.hidden=!1,this.listboxScrollWidth=""+this.listbox.scrollWidth,this.listbox.hidden=!0,this.listbox.style.removeProperty("display"),this.listbox.style.removeProperty("overflow"),this.listbox.style.removeProperty("visibility"),this.listbox.style.removeProperty("width")}):this.listboxScrollWidth=""}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet),this.computedStylesheet=bt`
174
+ :host{--listbox-max-height:${this.listboxMaxHeight};--listbox-scroll-width:${this.listboxScrollWidth};--size:${this.selectSize}}`,this.$fastController.addStyles(this.computedStylesheet)}}uc([v],cd.prototype,"listboxScrollWidth",void 0);const hd=cd.compose({baseName:"select",baseClass:Vs,template:(t,e)=>K`<template class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(Boolean).join(" ")}" aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="${t=>t.collapsible?"listbox":null}" aria-multiselectable="${t=>t.ariaMultiSelectable}" ?open="${t=>t.open}" role="combobox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}">${St(t=>t.collapsible,K`<div class="control" part="control" ?disabled="${t=>t.disabled}" ${Ot("control")}>${_t(0,e)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${t=>t.displayValue}</slot></div><div aria-hidden="true" class="indicator" part="indicator"><slot name="indicator">${e.indicator||""}</slot></div></slot>${Ut(0,e)}</div>`)}<div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!!t.collapsible&&!t.open}" ${Ot("listbox")}><slot ${Nt({filter:Xi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:Xc,indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),dd=(t,e)=>bt`
175
+ ${Fn("block")} :host{--skeleton-fill-default:#e1dfdd;overflow:hidden;width:100%;position:relative;background-color:var(--skeleton-fill,var(--skeleton-fill-default));--skeleton-animation-gradient-default:linear-gradient(
176
+ 270deg,var(--skeleton-fill,var(--skeleton-fill-default)) 0%,#f3f2f1 51.13%,var(--skeleton-fill,var(--skeleton-fill-default)) 100%
177
+ );--skeleton-animation-timing-default:ease-in-out}:host([shape="rect"]){border-radius:calc(${Pr} * 1px)}:host([shape="circle"]){border-radius:100%;overflow:hidden}object{position:absolute;width:100%;height:auto;z-index:2}object img{width:100%;height:auto}${Fn("block")} span.shimmer{position:absolute;width:100%;height:100%;background-image:var(
178
+ --skeleton-animation-gradient,var(--skeleton-animation-gradient-default)
179
+ );background-size:0px 0px / 90% 100%;background-repeat:no-repeat;background-color:var(--skeleton-animation-fill,${Cl});animation:shimmer 2s infinite;animation-timing-function:var(
180
+ --skeleton-animation-timing,var(--skeleton-timing-default)
181
+ );animation-direction:normal;z-index:1}::slotted(svg){z-index:2}::slotted(.pattern){width:100%;height:100%}@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`.withBehaviors(In(bt`
182
+ :host{forced-color-adjust:none;background-color:${Ke.ButtonFace};box-shadow:0 0 0 1px ${Ke.ButtonText}}${Fn("block")} span.shimmer{display:none}`)),ud=zs.compose({baseName:"skeleton",template:(t,e)=>K`<template class="${t=>"circle"===t.shape?"circle":"rect"}" pattern="${t=>t.pattern}" ?shimmer="${t=>t.shimmer}">${St(t=>!0===t.shimmer,K`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${t=>t.pattern}" role="presentation"><img class="pattern" src="${t=>t.pattern}" /></object><slot></slot></template>`,styles:dd}),pd=bt`
183
+ :host{align-self:start;grid-row:2;margin-top:-2px;height:calc((${lc} / 2 + ${Hr}) * 1px);width:auto}.container{grid-template-rows:auto auto;grid-template-columns:0}.label{margin:2px 0}`,gd=bt`
184
+ :host{justify-self:start;grid-column:2;margin-left:2px;height:auto;width:calc((${lc} / 2 + ${Hr}) * 1px)}.container{grid-template-columns:auto auto;grid-template-rows:0;min-width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px)}.mark{transform:rotate(90deg);align-self:center}.label{margin-left:calc((${Hr} / 2) * 3px);align-self:center}`,md=(t,e)=>bt`
185
+ ${Fn("block")} :host{font-family:${Rr};color:${Zl};fill:currentcolor}.root{position:absolute;display:grid}.container{display:grid;justify-self:center}.label{justify-self:center;align-self:center;white-space:nowrap;max-width:30px}.mark{width:calc((${Hr} / 4) * 1px);height:calc(${lc} * 0.25 * 1px);background:${tc};justify-self:center}:host(.disabled){opacity:${Nr}}`.withBehaviors(In(bt`
186
+ .mark{forced-color-adjust:none;background:${Ke.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${Ke.GrayText}}:host(.disabled) .mark{background:${Ke.GrayText}}`));class fd extends Ns{sliderOrientationChanged(){this.sliderOrientation===Pe?(this.$fastController.addStyles(pd),this.$fastController.removeStyles(gd)):(this.$fastController.addStyles(gd),this.$fastController.removeStyles(pd))}}const bd=fd.compose({baseName:"slider-label",baseClass:Ns,template:(t,e)=>K`<template aria-disabled="${t=>t.disabled}" class="${t=>t.sliderOrientation||Pe} ${t=>t.disabled?"disabled":""}"><div ${Ot("root")} part="root" class="root" style="${t=>t.positionStyle}"><div class="container">${St(t=>!t.hideMark,K`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`,styles:md}),vd=bt`
187
+ .track-start{left:0}`,yd=bt`
188
+ .track-start{right:0}`,xd=(t,e)=>bt`
189
+ :host([hidden]){display:none}${Fn("inline-grid")} :host{--thumb-size:calc(${lc} * 0.5 - ${Hr});--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${Hr} / 2) * -1);--track-width:${Hr};--fast-slider-height:calc(var(--thumb-size) * 10);align-items:center;width:100%;margin:calc(${Hr} * 1px) 0;user-select:none;box-sizing:border-box;border-radius:calc(${Pr} * 1px);outline:none;cursor:pointer}:host([orientation="horizontal"]) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host([orientation="vertical"]) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${En}) .thumb-cursor{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${Gl}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease;color:${Zl};fill:currentcolor}.thumb-cursor{border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:${Zl};border-radius:calc(${Pr} * 1px)}.thumb-cursor:hover{background:${Zl};border-color:${ec}}.thumb-cursor:active{background:${Zl}}.track-start{background:${yl};position:absolute;height:100%;left:0;border-radius:calc(${Pr} * 1px)}:host([orientation="horizontal"]) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host([orientation="vertical"]) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host([orientation="horizontal"]){min-width:calc(var(--thumb-size) * 1px)}:host([orientation="horizontal"]) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host([orientation="vertical"]) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${tc};position:absolute;border-radius:calc(${Pr} * 1px)}:host([orientation="vertical"]){height:calc(var(--fast-slider-height) * 1px);min-height:calc(var(--thumb-size) * 1px);min-width:calc(${Hr} * 20px)}:host([orientation="vertical"]) .track-start{height:auto;width:100%;top:0}:host([disabled]),:host([readonly]){cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}`.withBehaviors(new xc(vd,yd),In(bt`
190
+ .thumb-cursor{forced-color-adjust:none;border-color:${Ke.FieldText};background:${Ke.FieldText}}.thumb-cursor:hover,.thumb-cursor:active{background:${Ke.Highlight}}.track{forced-color-adjust:none;background:${Ke.FieldText}}:host(:${En}) .thumb-cursor{border-color:${Ke.Highlight}}:host([disabled]){opacity:1}:host([disabled]) .track,:host([disabled]) .thumb-cursor{forced-color-adjust:none;background:${Ke.GrayText}}:host(:${En}) .thumb-cursor{background:${Ke.Highlight};border-color:${Ke.Highlight};box-shadow:0 0 0 2px ${Ke.Field},0 0 0 4px ${Ke.FieldText}}`)),$d=Us.compose({baseName:"slider",template:(t,e)=>K`<template role="slider" class="${t=>t.readOnly?"readonly":""} ${t=>t.orientation||Pe}" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>!!t.disabled||void 0}" aria-readonly="${t=>!!t.readOnly||void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${Ot("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${t=>t.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${Ot("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}"><slot name="thumb">${e.thumb||""}</slot></div></div></template>`,styles:xd,thumb:'\n <div class="thumb-cursor"></div>\n '}),wd=(t,e)=>bt`
191
+ :host([hidden]){display:none}${Fn("inline-flex")} :host{align-items:center;outline:none;font-family:${Rr};margin:calc(${Hr} * 1px) 0;${""} user-select:none}:host([disabled]){opacity:${Nr}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:${"not-allowed"}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(${lc} * 1px);height:calc((${lc} / 2 + ${Hr}) * 1px);background:${Ol};border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${tc}}.switch:hover{background:${Sl};border-color:${ec};cursor:pointer}host([disabled]) .switch:hover,host([readonly]) .switch:hover{background:${Sl};border-color:${ec};cursor:${"not-allowed"}}:host(:not([disabled])) .switch:active{background:${Dl};border-color:${ic}}:host(:${En}) .switch{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${Gl}}.checked-indicator{position:absolute;top:5px;bottom:5px;background:${Zl};border-radius:calc(${Pr} * 1px);transition:all 0.2s ease-in-out}.status-message{color:${Zl};cursor:pointer;font-size:${qr};line-height:${Ur}}:host([disabled]) .status-message,:host([readonly]) .status-message{cursor:${"not-allowed"}}.label{color:${Zl};margin-inline-end:calc(${Hr} * 2px + 2px);font-size:${qr};line-height:${Ur};cursor:pointer}.label__hidden{display:none;visibility:hidden}::slotted([slot="checked-message"]),::slotted([slot="unchecked-message"]){margin-inline-start:calc(${Hr} * 2px + 2px)}:host([aria-checked="true"]) .checked-indicator{background:${ll}}:host([aria-checked="true"]) .switch{background:${il};border-color:${il}}:host([aria-checked="true"]:not([disabled])) .switch:hover{background:${ol};border-color:${ol}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background:${cl}}:host([aria-checked="true"]:not([disabled])) .switch:active{background:${sl};border-color:${sl}}:host([aria-checked="true"]:not([disabled])) .switch:active .checked-indicator{background:${hl}}:host([aria-checked="true"]:${En}:not([disabled])) .switch{box-shadow:0 0 0 2px ${Ja},0 0 0 4px ${Gl}}.unchecked-message{display:block}.checked-message{display:none}:host([aria-checked="true"]) .unchecked-message{display:none}:host([aria-checked="true"]) .checked-message{display:block}`.withBehaviors(In(bt`
192
+ .checked-indicator,:host(:not([disabled])) .switch:active .checked-indicator{forced-color-adjust:none;background:${Ke.FieldText}}.switch{forced-color-adjust:none;background:${Ke.Field};border-color:${Ke.FieldText}}:host(:not([disabled])) .switch:hover{background:${Ke.HighlightText};border-color:${Ke.Highlight}}:host([aria-checked="true"]) .switch{background:${Ke.Highlight};border-color:${Ke.Highlight}}:host([aria-checked="true"]:not([disabled])) .switch:hover,:host(:not([disabled])) .switch:active{background:${Ke.HighlightText};border-color:${Ke.Highlight}}:host([aria-checked="true"]) .checked-indicator{background:${Ke.HighlightText}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background:${Ke.Highlight}}:host([disabled]){opacity:1}:host(:${En}) .switch{border-color:${Ke.Highlight};box-shadow:0 0 0 2px ${Ke.Field},0 0 0 4px ${Ke.FieldText}}:host([aria-checked="true"]:${En}:not([disabled])) .switch{box-shadow:0 0 0 2px ${Ke.Field},0 0 0 4px ${Ke.FieldText}}:host([disabled]) .checked-indicator{background:${Ke.GrayText}}:host([disabled]) .switch{background:${Ke.Field};border-color:${Ke.GrayText}}`),new xc(bt`
193
+ .checked-indicator{left:5px;right:calc(((${lc} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{left:calc(((${lc} / 2) + 1) * 1px);right:5px}`,bt`
194
+ .checked-indicator{right:5px;left:calc(((${lc} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{right:calc(((${lc} / 2) + 1) * 1px);left:5px}`)),kd=Ws.compose({baseName:"switch",template:(t,e)=>K`<template role="switch" aria-checked="${t=>t.checked}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.checked?"checked":""}"><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${e.switch||""}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`,styles:wd,switch:'\n <span class="checked-indicator" part="checked-indicator"></span>\n '}),Cd=(t,e)=>bt`
195
+ ${Fn("grid")} :host{box-sizing:border-box;font-family:${Rr};font-size:${qr};line-height:${Ur};color:${Zl};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;padding:calc(${Hr} * 4px) calc(${Hr} * 4px) 0;box-sizing:border-box}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:100%;height:5px;justify-self:center;background:${il};margin-top:10px;border-radius:calc(${Pr} * 1px)
196
+ calc(${Pr} * 1px) 0 0}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation="vertical"]){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation="vertical"]) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%;padding:0 calc(${Hr} * 4px)
197
+ calc((${lc} - ${Hr}) * 1px) 0}:host([orientation="vertical"]) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation="vertical"]) .end{grid-row:3}:host([orientation="vertical"]) .activeIndicator{grid-column:1;grid-row:1;width:5px;height:100%;margin-inline-end:10px;align-self:center;background:${il};margin-top:0;border-radius:0 calc(${Pr} * 1px)
198
+ calc(${Pr} * 1px) 0}:host([orientation="vertical"]) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(In(bt`
199
+ .activeIndicator,:host([orientation="vertical"]) .activeIndicator{forced-color-adjust:none;background:${Ke.Highlight}}`)),Id=(t,e)=>bt`
200
+ ${Fn("inline-flex")} :host{box-sizing:border-box;font-family:${Rr};font-size:${qr};line-height:${Ur};height:calc(${lc} * 1px);padding:calc(${Hr} * 5px) calc(${Hr} * 4px);color:${Yl};fill:currentcolor;border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid transparent;align-items:center;justify-content:center;grid-row:1;cursor:pointer}:host(:hover){color:${Zl};fill:currentcolor}:host(:active){color:${Zl};fill:currentcolor}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}:host([disabled]:hover){color:${Yl};background:${Al}}:host([aria-selected="true"]){background:${Cl};color:${yl};fill:currentcolor}:host([aria-selected="true"]:hover){background:${Il};color:${xl};fill:currentcolor}:host([aria-selected="true"]:active){background:${Tl};color:${$l};fill:currentcolor}:host(:${En}){outline:none;border:calc(${Br} * 1px) solid ${Gl};box-shadow:0 0 0 calc((${jr} - ${Br}) * 1px)
201
+ ${Gl}}:host(:focus){outline:none}:host(.vertical){justify-content:end;grid-column:2}:host(.vertical[aria-selected="true"]){z-index:2}:host(.vertical:hover){color:${Zl}}:host(.vertical:active){color:${Zl}}:host(.vertical:hover[aria-selected="true"]){}`.withBehaviors(In(bt`
202
+ :host{forced-color-adjust:none;border-color:transparent;color:${Ke.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected="true"]:hover){background:${Ke.Highlight};color:${Ke.HighlightText};fill:currentcolor}:host([aria-selected="true"]){background:${Ke.HighlightText};color:${Ke.Highlight};fill:currentcolor}:host(:${En}){border-color:${Ke.ButtonText};box-shadow:none}:host([disabled]),:host([disabled]:hover){opacity:1;color:${Ke.GrayText};background:${Ke.ButtonFace}}`)),Td=Xs.compose({baseName:"tab",template:(t,e)=>K`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"><slot></slot></template>`,styles:Id}),Fd=(t,e)=>bt`
203
+ ${Fn("block")} :host{box-sizing:border-box;font-size:${qr};line-height:${Ur};padding:0 calc((6 + (${Hr} * 2 * ${zr})) * 1px)}`,Ed=Ks.compose({baseName:"tab-panel",template:(t,e)=>K`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`,styles:Fd}),Od=Qs.compose({baseName:"tabs",template:(t,e)=>K`<template class="${t=>t.orientation}">${_t(0,e)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${Nt("tabs")}></slot>${St(t=>t.showActiveIndicator,K`<div ${Ot("activeIndicatorRef")} class="activeIndicator" part="activeIndicator"></div>`)}</div>${Ut(0,e)}<div class="tabpanel"><slot name="tabpanel" part="tabpanel" ${Nt("tabpanels")}></slot></div></template>`,styles:Cd}),Sd=(t,e)=>bt`
204
+ ${Fn("inline-block")} :host{font-family:${Rr};outline:none;user-select:none}.control{box-sizing:border-box;position:relative;color:${Zl};background:${Ol};border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${il};height:calc(${lc} * 2px);font:inherit;font-size:${qr};line-height:${Ur};padding:calc(${Hr} * 2px + 1px);width:100%;resize:none}.control:hover:enabled{background:${Sl};border-color:${ol}}.control:active:enabled{background:${Dl};border-color:${sl}}.control:hover,.control:${En},.control:disabled,.control:active{outline:none}:host(:focus-within) .control{border-color:${Gl};box-shadow:0 0 0 1px ${Gl} inset}:host([appearance="filled"]) .control{background:${Cl}}:host([appearance="filled"]:hover:not([disabled])) .control{background:${Il}}:host([resize="both"]) .control{resize:both}:host([resize="horizontal"]) .control{resize:horizontal}:host([resize="vertical"]) .control{resize:vertical}.label{display:block;color:${Zl};cursor:pointer;font-size:${qr};line-height:${Ur};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${tc}}:host([cols]){width:initial}:host([rows]) .control{height:initial}`.withBehaviors(In(bt`
205
+ :host([disabled]){opacity:1}`));class Dd extends en{constructor(){super(...arguments),this.appearance="outline"}}uc([st],Dd.prototype,"appearance",void 0);const Rd=Dd.compose({baseName:"text-area",baseClass:en,template:(t,e)=>K`<template class=" ${t=>t.readOnly?"readonly":""} ${t=>t.resize!==tn?"resize-"+t.resize:""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${t=>t.autofocus}" cols="${t=>t.cols}" ?disabled="${t=>t.disabled}" form="${t=>t.form}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" name="${t=>t.name}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" rows="${t=>t.rows}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" @input="${(t,e)=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ${Ot("control")}></textarea></template>`,styles:Sd,shadowOptions:{delegatesFocus:!0}}),Ld=(t,e)=>bt`
206
+ ${Fn("inline-block")} :host{font-family:${Rr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Zl};background:${Ol};border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${il};height:calc(${lc} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Hr} * 2px + 1px);font-size:${qr};line-height:${Ur}}.control:hover,.control:${En},.control:disabled,.control:active{outline:none}.label{display:block;color:${Zl};cursor:pointer;font-size:${qr};line-height:${Ur};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.control,.end{align-self:center}.start,.end{display:flex;margin:auto;fill:currentcolor}::slotted(svg){width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${Sl};border-color:${ol}}:host(:active:not([disabled])) .root{background:${Sl};border-color:${sl}}:host(:focus-within:not([disabled])) .root{border-color:${Gl};box-shadow:0 0 0 calc(${jr} * 1px) ${Gl} inset}:host([appearance="filled"]) .root{background:${Cl}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Il}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${tc}}`.withBehaviors(In(bt`
207
+ .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${Ke.Field};border-color:${Ke.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${Ke.Field};border-color:${Ke.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${Ke.GrayText};background:${Ke.Field}}:host(:focus-within:enabled) .root{border-color:${Ke.Highlight};box-shadow:0 0 0 1px ${Ke.Highlight} inset}input::placeholder{color:${Ke.GrayText}}`));class Ad extends bs{constructor(){super(...arguments),this.appearance="outline"}}uc([st],Ad.prototype,"appearance",void 0);const Vd=Ad.compose({baseName:"text-field",baseClass:bs,template:(t,e)=>K`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt({property:"defaultSlottedNodes",filter:Es})}></slot></label><div class="root" part="root">${_t(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Ot("control")} />${Ut(0,e)}</div></template>`,styles:Ld,shadowOptions:{delegatesFocus:!0}}),Pd=(t,e)=>bt`
208
+ ${Fn("inline-flex")} :host{--toolbar-item-gap:calc(
209
+ (var(--design-unit) + calc(var(--density) + 2)) * 1px
210
+ );background-color:${Ja};border-radius:calc(${Pr} * 1px);fill:currentcolor;padding:var(--toolbar-item-gap)}:host(${En}){outline:calc(${Br} * 1px) solid ${oc}}.positioning-region{align-items:flex-start;display:inline-flex;flex-flow:row wrap;justify-content:flex-start}:host([orientation="vertical"]) .positioning-region{flex-direction:column}::slotted(:not([slot])){flex:0 0 auto;margin:0 var(--toolbar-item-gap)}:host([orientation="vertical"]) ::slotted(:not([slot])){margin:var(--toolbar-item-gap) 0}.start,.end{display:flex;margin:auto;margin-inline:0}::slotted(svg){width:16px;height:16px}`.withBehaviors(In(bt`
211
+ :host(:${En}){box-shadow:0 0 0 calc(${jr} * 1px) ${Ke.Highlight};color:${Ke.ButtonText};forced-color-adjust:none}`));class zd extends sn{connectedCallback(){super.connectedCallback();const t=ao(this);t&&Ja.setValueFor(this,e=>ql.getValueFor(e).evaluate(e,Ja.getValueFor(t)))}}const Hd=zd.compose({baseName:"toolbar",baseClass:sn,template:(t,e)=>K`<template aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-orientation="${t=>t.orientation}" orientation="${t=>t.orientation}" role="toolbar" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><slot name="label"></slot><div class="positioning-region" part="positioning-region">${_t(0,e)}<slot ${Nt({filter:zt(),property:"slottedItems"})}></slot>${Ut(0,e)}</div></template>`,styles:Pd,shadowOptions:{delegatesFocus:!0}}),Md=(t,e)=>{const i=t.tagFor(oi);return bt`
212
+ :host{contain:size;overflow:visible;height:0;width:0}.tooltip{box-sizing:border-box;border-radius:calc(${Pr} * 1px);border:calc(${Br} * 1px) solid ${Gl};box-shadow:0 0 0 1px ${Gl} inset;background:${Cl};color:${Zl};padding:4px;height:fit-content;width:fit-content;font-family:${Rr};font-size:${qr};line-height:${Ur};white-space:nowrap;z-index:10000}${i}{display:flex;justify-content:center;align-items:center;overflow:visible;flex-direction:row}${i}.right,${i}.left{flex-direction:column}${i}.top .tooltip{margin-bottom:4px}${i}.bottom .tooltip{margin-top:4px}${i}.left .tooltip{margin-right:4px}${i}.right .tooltip{margin-left:4px}${i}.top.left .tooltip,${i}.top.right .tooltip{margin-bottom:0px}${i}.bottom.left .tooltip,${i}.bottom.right .tooltip{margin-top:0px}${i}.top.left .tooltip,${i}.bottom.left .tooltip{margin-right:0px}${i}.top.right .tooltip,${i}.bottom.right .tooltip{margin-left:0px}`.withBehaviors(In(bt`
213
+ :host([disabled]){opacity:1}`))},Nd=xn.compose({baseName:"tooltip",template:(t,e)=>K` ${St(t=>t.tooltipVisible,K`<${t.tagFor(oi)} fixed-placement="true" auto-update-mode="${t=>t.autoUpdateMode}" vertical-positioning-mode="${t=>t.verticalPositioningMode}" vertical-default-position="${t=>t.verticalDefaultPosition}" vertical-inset="${t=>t.verticalInset}" vertical-scaling="${t=>t.verticalScaling}" horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" horizontal-default-position="${t=>t.horizontalDefaultPosition}" horizontal-scaling="${t=>t.horizontalScaling}" horizontal-inset="${t=>t.horizontalInset}" vertical-viewport-lock="${t=>t.horizontalViewportLock}" horizontal-viewport-lock="${t=>t.verticalViewportLock}" dir="${t=>t.currentDirection}" ${Ot("region")}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${t.tagFor(oi)}>`)} `,styles:Md}),Bd=bt`
214
+ .expand-collapse-glyph{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${lc} * -1px))}:host([selected])::after{left:calc(${jr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(45deg)}`,jd=bt`
215
+ .expand-collapse-glyph{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${lc} * -1px))}:host([selected])::after{right:calc(${jr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(135deg)}`,qd=yt`((${Lr} / 2) * ${Hr}) + ((${Hr} * ${zr}) / 2)`,Ud=Io.create("tree-item-expand-collapse-hover").withDefault(t=>{const e=Ll.getValueFor(t);return e.evaluate(t,e.evaluate(t).hover).hover}),_d=Io.create("tree-item-expand-collapse-selected-hover").withDefault(t=>{const e=kl.getValueFor(t);return Ll.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),Gd=(t,e)=>bt`@keyframes treeItemLoading{0%{opacity:0}100%{opacity:1}}${Fn("block")} :host{contain:content;position:relative;outline:none;color:${Zl};background:${Al};cursor:pointer;font-family:${Rr};--expand-collapse-button-size:calc(${lc} * 1px);--tree-item-nested-width:0}:host(:focus) > .positioning-region{outline:none}:host(:focus) .content-region{outline:none}:host(:${En}) .positioning-region{border:${Gl} calc(${Br} * 1px) solid;border-radius:calc(${Pr} * 1px);color:${Zl}}.positioning-region{display:flex;position:relative;box-sizing:border-box;background:${Al};border:transparent calc(${Br} * 1px) solid;height:calc((${lc} + 1) * 1px)}.positioning-region::before{content:"";display:block;width:var(--tree-item-nested-width);flex-shrink:0}:host(:not([disabled])) .positioning-region:hover{background:${Vl}}:host(:not([disabled])) .positioning-region:active{background:${Pl}}.content-region{display:inline-flex;align-items:center;white-space:nowrap;width:100%;height:calc(${lc} * 1px);margin-inline-start:calc(${Hr} * 2px + 8px);font-size:${qr};line-height:${Ur};font-weight:400}.items{font-size:calc(1em + (${Hr} + 16) * 1px)}.expand-collapse-button{background:none;border:none;outline:none;width:calc((${qd} + (${Hr} * 2)) * 1px);height:calc((${qd} + (${Hr} * 2)) * 1px);padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-left:6px;margin-right:6px}.expand-collapse-glyph{width:16px;height:16px;transition:transform 0.1s linear;pointer-events:none;fill:currentcolor}.start,.end{display:flex;fill:currentcolor}::slotted(svg){width:16px;height:16px}.start{margin-inline-end:calc(${Hr} * 2px + 2px)}.end{margin-inline-start:calc(${Hr} * 2px + 2px)}:host([expanded]) > .items{animation:treeItemLoading ease-in 10ms;animation-iteration-count:1;animation-fill-mode:forwards}:host([disabled]) .content-region{opacity:${Nr};cursor:${"not-allowed"}}:host(.nested) .content-region{position:relative;margin-inline-start:var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position:absolute}:host(.nested:not([disabled])) .expand-collapse-button:hover{background:${Ud}}:host([selected]) .positioning-region{background:${Cl}}:host([selected]:not([disabled])) .positioning-region:hover{background:${Il}}:host([selected]:not([disabled])) .positioning-region:active{background:${Tl}}:host([selected]:not([disabled])) .expand-collapse-button:hover{background:${_d}}:host([selected])::after{background:${yl};border-radius:calc(${Pr} * 1px);content:"";display:block;position:absolute;top:calc((${lc} / 4) * 1px);width:3px;height:calc((${lc} / 2) * 1px)}::slotted(${t.tagFor(wn)}){--tree-item-nested-width:1em;--expand-collapse-button-nested-width:calc(${lc} * -1px)}`.withBehaviors(new xc(Bd,jd),In(bt`
216
+ :host{forced-color-adjust:none;border-color:transparent;background:${Ke.Field};color:${Ke.FieldText}}:host .content-region .expand-collapse-glyph{fill:${Ke.FieldText}}:host .positioning-region:hover,:host([selected]) .positioning-region{background:${Ke.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{color:${Ke.HighlightText}}:host .positioning-region:hover .content-region .expand-collapse-glyph,:host .positioning-region:hover .content-region .start,:host .positioning-region:hover .content-region .end,:host([selected]) .content-region .expand-collapse-glyph,:host([selected]) .content-region .start,:host([selected]) .content-region .end{fill:${Ke.HighlightText}}:host([selected])::after{background:${Ke.Field}}:host(:${En}) .positioning-region{border-color:${Ke.FieldText};box-shadow:0 0 0 2px inset ${Ke.Field};color:${Ke.FieldText}}:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${Ke.GrayText}}:host([disabled]) .content-region .expand-collapse-glyph,:host([disabled]) .content-region .start,:host([disabled]) .content-region .end,:host([disabled]) .positioning-region:hover .content-region .expand-collapse-glyph,:host([disabled]) .positioning-region:hover .content-region .start,:host([disabled]) .positioning-region:hover .content-region .end{fill:${Ke.GrayText}}:host([disabled]) .positioning-region:hover{background:${Ke.Field}}.expand-collapse-glyph,.start,.end{fill:${Ke.FieldText}}:host(.nested) .expand-collapse-button:hover{background:${Ke.Field}}:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph{fill:${Ke.FieldText}}`)),Wd=wn.compose({baseName:"tree-item",template:(t,e)=>K`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="-1" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" ${jt({property:"childItems",filter:zt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${St(t=>t.childItems&&t.childItemLength()>0,K`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${Ot("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${_t(0,e)}<slot></slot>${Ut(0,e)}</div></div>${St(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),K`<div role="group" class="items" part="items"><slot name="item" ${Nt("items")}></slot></div>`)}</template>`,styles:Gd,expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n '}),Kd=(t,e)=>bt`
217
+ ${Fn("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}:host:focus-visible{outline:none}`,Xd=kn.compose({baseName:"tree-view",template:(t,e)=>K`<template role="tree" ${Ot("treeView")} @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" @click="${(t,e)=>t.handleClick(e.event)}" @selected-change="${(t,e)=>t.handleSelectedChange(e.event)}"><slot ${Nt("slottedTreeItems")}></slot></template>`,styles:Kd}),Yd={fastAccordion:dc,fastAccordionItem:hc,fastAnchor:Ic,fastAnchoredRegion:Fc,fastAvatar:Dc,fastBadge:Lc,fastBreadcrumb:zc,fastBreadcrumbItem:Vc,fastButton:Nc,fastCalendar:jc,fastCard:_c,fastCheckbox:Wc,fastCombobox:Zc,fastDataGrid:sh,fastDataGridCell:ih,fastDataGridRow:oh,fastDesignSystemProvider:dh,fastDialog:ph,fastDisclosure:fh,fastDivider:vh,fastFlipper:xh,fastHorizontalScroll:Th,fastListbox:Sh,fastOption:Eh,fastMenu:Vh,fastMenuItem:Rh,fastNumberField:Hh,fastPicker:qh,fastPickerList:Wh,fastPickerListItem:Kh,fastPickerMenu:_h,fastPickerMenuOption:Gh,fastProgress:Zh,fastProgressRing:Yh,fastRadio:id,fastRadioGroup:td,fastSearch:ad,fastSelect:hd,fastSkeleton:ud,fastSlider:$d,fastSliderLabel:bd,fastSwitch:kd,fastTabs:Od,fastTab:Td,fastTabPanel:Ed,fastTextArea:Rd,fastTextField:Vd,fastTooltip:Nd,fastToolbar:Hd,fastTreeView:Xd,fastTreeItem:Wd,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function Qd(t){return Do.getOrCreate(t).withPrefix("fast")}const Zd=Qd().register(Yd);export{Qe as Accordion,Ve as AccordionItem,kh as ActionsStyles,Cc as Anchor,oi as AnchoredRegion,Oc as Avatar,ui as Badge,gi as Breadcrumb,pi as BreadcrumbItem,Mc as Button,Ci as Calendar,Bc as CalendarStyles,Uc as Card,_i as Checkbox,Qc as Combobox,Vi as DataGrid,Hi as DataGridCell,Ai as DataGridRow,lh as DesignSystemProvider,Uo as Dialog,xc as DirectionalStyleSheetBehavior,mh as Disclosure,Wo as Divider,Zd as FASTDesignSystem,Yo as Flipper,Ih as HorizontalScroll,Oh as Listbox,Wi as ListboxOption,Ah as Menu,us as MenuItem,zh as NumberField,$r as PaletteRGB,as as Picker,Uh as PickerMenu,ws as Progress,ws as ProgressRing,Ts as Radio,ks as RadioGroup,rd as Search,cd as Select,zs as Skeleton,Us as Slider,fd as SliderLabel,Er as StandardLuminance,fr as SwatchRGB,Ws as Switch,Xs as Tab,Ks as TabPanel,Qs as Tabs,Dd as TextArea,Ad as TextField,zd as Toolbar,xn as Tooltip,wn as TreeItem,kn as TreeView,Ma as accentColor,sl as accentFillActive,ca as accentFillActiveDelta,nl as accentFillFocus,ha as accentFillFocusDelta,ol as accentFillHover,la as accentFillHoverDelta,el as accentFillRecipe,il as accentFillRest,aa as accentFillRestDelta,$l as accentForegroundActive,pa as accentForegroundActiveDelta,wl as accentForegroundFocus,ga as accentForegroundFocusDelta,xl as accentForegroundHover,ua as accentForegroundHoverDelta,vl as accentForegroundRecipe,yl as accentForegroundRest,da as accentForegroundRestDelta,Na as accentPalette,cc as accordionItemStyles,ac as accordionStyles,Yd as allComponents,kc as anchorStyles,Tc as anchoredRegionStyles,Ec as avatarStyles,Rc as badgeStyles,Lr as baseHeightMultiplier,Ar as baseHorizontalSpacingMultiplier,Vr as baseLayerLuminance,Rr as bodyFont,Ac as breadcrumbItemStyles,Pc as breadcrumbStyles,Hc as buttonStyles,qc as cardStyles,Gc as checkboxStyles,Yc as comboboxStyles,Pr as controlCornerRadius,eh as dataGridCellStyles,th as dataGridRowStyles,Jc as dataGridStyles,zr as density,hh as designSystemProviderStyles,ch as designSystemProviderTemplate,Hr as designUnit,uh as dialogStyles,Mr as direction,Nr as disabledOpacity,gh as disclosureStyles,bh as dividerStyles,dc as fastAccordion,hc as fastAccordionItem,Ic as fastAnchor,Fc as fastAnchoredRegion,Dc as fastAvatar,Lc as fastBadge,zc as fastBreadcrumb,Vc as fastBreadcrumbItem,Nc as fastButton,jc as fastCalendar,_c as fastCard,Wc as fastCheckbox,Zc as fastCombobox,sh as fastDataGrid,ih as fastDataGridCell,oh as fastDataGridRow,dh as fastDesignSystemProvider,ph as fastDialog,fh as fastDisclosure,vh as fastDivider,xh as fastFlipper,Th as fastHorizontalScroll,Sh as fastListbox,Vh as fastMenu,Rh as fastMenuItem,Hh as fastNumberField,Eh as fastOption,qh as fastPicker,Wh as fastPickerList,Kh as fastPickerListItem,_h as fastPickerMenu,Gh as fastPickerMenuOption,Zh as fastProgress,Yh as fastProgressRing,id as fastRadio,td as fastRadioGroup,ad as fastSearch,hd as fastSelect,ud as fastSkeleton,$d as fastSlider,bd as fastSliderLabel,kd as fastSwitch,Td as fastTab,Ed as fastTabPanel,Od as fastTabs,Rd as fastTextArea,Vd as fastTextField,Hd as fastToolbar,Nd as fastTooltip,Wd as fastTreeItem,Xd as fastTreeView,Ja as fillColor,yh as flipperStyles,Kl as focusStrokeInner,Wl as focusStrokeInnerRecipe,Gl as focusStrokeOuter,_l as focusStrokeOuterRecipe,jr as focusStrokeWidth,hl as foregroundOnAccentActive,ml as foregroundOnAccentActiveLarge,dl as foregroundOnAccentFocus,fl as foregroundOnAccentFocusLarge,cl as foregroundOnAccentHover,gl as foregroundOnAccentHoverLarge,ul as foregroundOnAccentLargeRecipe,al as foregroundOnAccentRecipe,ll as foregroundOnAccentRest,pl as foregroundOnAccentRestLarge,rc as heightNumberAsToken,Ch as horizontalScrollStyles,pd as horizontalSliderLabelStyles,Sc as imgTemplate,yr as isDark,Kc as listboxStyles,Dh as menuItemStyles,Lh as menuStyles,za as neutralColor,Tl as neutralFillActive,ba as neutralFillActiveDelta,Fl as neutralFillFocus,va as neutralFillFocusDelta,Il as neutralFillHover,fa as neutralFillHoverDelta,Dl as neutralFillInputActive,$a as neutralFillInputActiveDelta,Rl as neutralFillInputFocus,wa as neutralFillInputFocusDelta,Sl as neutralFillInputHover,xa as neutralFillInputHoverDelta,El as neutralFillInputRecipe,Ol as neutralFillInputRest,ya as neutralFillInputRestDelta,ql as neutralFillLayerRecipe,Ul as neutralFillLayerRest,Da as neutralFillLayerRestDelta,kl as neutralFillRecipe,Cl as neutralFillRest,ma as neutralFillRestDelta,Pl as neutralFillStealthActive,Ia as neutralFillStealthActiveDelta,zl as neutralFillStealthFocus,Ta as neutralFillStealthFocusDelta,Vl as neutralFillStealthHover,Ca as neutralFillStealthHoverDelta,Ll as neutralFillStealthRecipe,Al as neutralFillStealthRest,ka as neutralFillStealthRestDelta,Bl as neutralFillStrongActive,Oa as neutralFillStrongActiveDelta,jl as neutralFillStrongFocus,Sa as neutralFillStrongFocusDelta,Nl as neutralFillStrongHover,Ea as neutralFillStrongHoverDelta,Hl as neutralFillStrongRecipe,Ml as neutralFillStrongRest,Fa as neutralFillStrongRestDelta,Yl as neutralForegroundHint,Xl as neutralForegroundHintRecipe,Ql as neutralForegroundRecipe,Zl as neutralForegroundRest,Ga as neutralLayer1,_a as neutralLayer1Recipe,Ka as neutralLayer2,Wa as neutralLayer2Recipe,Ya as neutralLayer3,Xa as neutralLayer3Recipe,Za as neutralLayer4,Qa as neutralLayer4Recipe,ja as neutralLayerCardContainer,Ba as neutralLayerCardContainerRecipe,Ua as neutralLayerFloating,qa as neutralLayerFloatingRecipe,Ha as neutralPalette,ic as neutralStrokeActive,Aa as neutralStrokeActiveDelta,sc as neutralStrokeDividerRecipe,nc as neutralStrokeDividerRest,Pa as neutralStrokeDividerRestDelta,oc as neutralStrokeFocus,Va as neutralStrokeFocusDelta,ec as neutralStrokeHover,La as neutralStrokeHoverDelta,Jl as neutralStrokeRecipe,tc as neutralStrokeRest,Ra as neutralStrokeRestDelta,Ph as numberFieldStyles,Fh as optionStyles,jh as pickerListItemStyles,Bh as pickerMenuOptionStyles,Nh as pickerMenuStyles,Mh as pickerStyles,Xh as progressRingStyles,Qh as progressStyles,Qd as provideFASTDesignSystem,Jh as radioGroupStyles,ed as radioStyles,ld as searchStyles,Xc as selectStyles,dd as skeletonStyles,md as sliderLabelStyles,xd as sliderStyles,Br as strokeWidth,wd as switchStyles,Fd as tabPanelStyles,Id as tabStyles,Cd as tabsStyles,Sd as textAreaStyles,Ld as textFieldStyles,Pd as toolbarStyles,Md as tooltipStyles,Gd as treeItemStyles,Kd as treeViewStyles,qr as typeRampBaseFontSize,Ur as typeRampBaseLineHeight,_r as typeRampMinus1FontSize,Gr as typeRampMinus1LineHeight,Wr as typeRampMinus2FontSize,Kr as typeRampMinus2LineHeight,Xr as typeRampPlus1FontSize,Yr as typeRampPlus1LineHeight,Qr as typeRampPlus2FontSize,Zr as typeRampPlus2LineHeight,Jr as typeRampPlus3FontSize,ta as typeRampPlus3LineHeight,ea as typeRampPlus4FontSize,ia as typeRampPlus4LineHeight,oa as typeRampPlus5FontSize,sa as typeRampPlus5LineHeight,na as typeRampPlus6FontSize,ra as typeRampPlus6LineHeight,gd as verticalSliderLabelStyles};