@ganpatiinfo/gids-core-web 22.0.0 → 23.0.0

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 (269) hide show
  1. package/dist/css/index.css +83 -34
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.js +1 -1
  4. package/dist/gids-activity-gauge.js +1 -1
  5. package/dist/gids-advanced-tooltip.js +1 -1
  6. package/dist/gids-bar-chart.js +1 -1
  7. package/dist/gids-bento-card.js +1 -1
  8. package/dist/gids-calendar-header-panel.js +1 -1
  9. package/dist/gids-calendar-month-list.js +1 -1
  10. package/dist/gids-calendar-picker.d.ts +11 -0
  11. package/dist/gids-calendar-picker.js +1 -0
  12. package/dist/gids-calendar-year-list.js +1 -1
  13. package/dist/gids-calendar.js +1 -1
  14. package/dist/gids-chart-legend-item.js +1 -1
  15. package/dist/gids-chart-legend.js +1 -1
  16. package/dist/gids-chart.js +1 -1
  17. package/dist/gids-chevron-button.js +1 -1
  18. package/dist/gids-date-picker-field.d.ts +11 -0
  19. package/dist/gids-date-picker-field.js +1 -0
  20. package/dist/gids-date-picker.d.ts +11 -0
  21. package/dist/gids-date-picker.js +1 -0
  22. package/dist/gids-day-dropdown-picker.d.ts +11 -0
  23. package/dist/gids-day-dropdown-picker.js +1 -0
  24. package/dist/gids-dot.js +1 -1
  25. package/dist/gids-dropdown-field.js +1 -1
  26. package/dist/gids-dropdown-picker.js +1 -1
  27. package/dist/gids-dropdown.js +1 -1
  28. package/dist/gids-expansion-body-list-item.js +1 -1
  29. package/dist/gids-expansion-body-list.js +1 -1
  30. package/dist/gids-expansion-group.js +1 -1
  31. package/dist/gids-expansion.js +1 -1
  32. package/dist/gids-field.js +1 -1
  33. package/dist/gids-filter.js +1 -1
  34. package/dist/gids-flyout-panel.js +1 -1
  35. package/dist/gids-form.js +1 -1
  36. package/dist/gids-header-navigation-item.js +1 -1
  37. package/dist/gids-header-navigation.js +1 -1
  38. package/dist/gids-icon.js +1 -1
  39. package/dist/gids-input.js +1 -1
  40. package/dist/gids-line-chart.js +1 -1
  41. package/dist/gids-md-table.js +1 -1
  42. package/dist/gids-month-dropdown-picker.d.ts +11 -0
  43. package/dist/gids-month-dropdown-picker.js +1 -0
  44. package/dist/gids-overflow-container.js +1 -1
  45. package/dist/gids-overlay-provider.js +1 -1
  46. package/dist/gids-password-field.js +1 -1
  47. package/dist/gids-pie-chart.js +1 -1
  48. package/dist/gids-popover.js +1 -1
  49. package/dist/gids-profile-menu-header.js +1 -1
  50. package/dist/gids-profile-menu.js +1 -1
  51. package/dist/gids-profile.js +1 -1
  52. package/dist/gids-scrim.js +1 -1
  53. package/dist/gids-sidebar-item.js +1 -1
  54. package/dist/gids-sidebar-menu.js +1 -1
  55. package/dist/gids-sidebar.js +1 -1
  56. package/dist/gids-skeleton.js +1 -1
  57. package/dist/gids-tab-item.js +1 -1
  58. package/dist/gids-tab.js +1 -1
  59. package/dist/gids-text-field.js +1 -1
  60. package/dist/gids-toggle-button.js +1 -1
  61. package/dist/gids-tooltip.js +1 -1
  62. package/dist/gids-transfer-list.js +1 -1
  63. package/dist/gids-year-dropdown-picker.d.ts +11 -0
  64. package/dist/gids-year-dropdown-picker.js +1 -0
  65. package/dist/p-62akP0Ad.js +1 -0
  66. package/dist/{p-B_FEFM5I.js → p-B18yNcA0.js} +1 -1
  67. package/dist/p-B2YjHZsu.js +1 -0
  68. package/dist/{p-DLRj-mUX.js → p-B3AB3GQ0.js} +1 -1
  69. package/dist/{p-Ds5IzXj3.js → p-B4d07GWP.js} +1 -1
  70. package/dist/p-BBlUduEr.js +1 -0
  71. package/dist/{p-BAqWcL0K.js → p-BNW2xgxF.js} +1 -1
  72. package/dist/p-BcXumkjZ.js +1 -0
  73. package/dist/{p-DKSnGphd.js → p-C88Z_F_m.js} +1 -1
  74. package/dist/{p-bfWlRsx_.js → p-CKj2Ru6e.js} +1 -1
  75. package/dist/{p-B_St7yaX.js → p-COsSHfdc.js} +1 -1
  76. package/dist/{p-DrxfD2yZ.js → p-CSXuAs_X.js} +1 -1
  77. package/dist/{p-DzOOjiNH.js → p-CZgH5rZs.js} +1 -1
  78. package/dist/{p-BIxBMTG9.js → p-CueywyHC.js} +1 -1
  79. package/dist/p-CxfmNDsm.js +1 -0
  80. package/dist/{p-CV1-78HB.js → p-D2VR17v2.js} +1 -1
  81. package/dist/{p-DMxvWIj1.js → p-DKe6orSY.js} +1 -1
  82. package/dist/{p-D0RJMGGj.js → p-DLX-l0-L.js} +1 -1
  83. package/dist/p-DOiDD7cS.js +1 -0
  84. package/dist/{p-B2flLE0s.js → p-DXlBK8TS.js} +1 -1
  85. package/dist/{p-E13ycS5K.js → p-DYKcsBzA.js} +1 -1
  86. package/dist/{p--kh67-_Z.js → p-D_mszaeq.js} +1 -1
  87. package/dist/p-DdJKIFk0.js +1 -0
  88. package/dist/p-DiX4HaE6.js +1 -0
  89. package/dist/{p-DQQhGF5N.js → p-DjnREsH0.js} +1 -1
  90. package/dist/{p-CIjK3iHM.js → p-FSv82P6v.js} +1 -1
  91. package/dist/p-MaJDBE6u.js +1 -0
  92. package/dist/p-XVlT5H5q.js +1 -0
  93. package/dist/p-fE-MdTCH.js +1 -0
  94. package/dist/{p-mv_7K1EM.js → p-gK9DvcL8.js} +1 -1
  95. package/dist/{p-_W77iniK.js → p-iEUyQs9t.js} +1 -1
  96. package/dist/{p-BCbovLBE.js → p-jtpLLxuw.js} +1 -1
  97. package/dist/p-lvArnlBV.js +1 -0
  98. package/dist/{p-TfH966_e.js → p-vz4tzbld.js} +1 -1
  99. package/dist/{p-DnRuhvRw.js → p-x1tVOUSt.js} +1 -1
  100. package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +4 -2
  101. package/dist/types/components/webComponents/GidsCalendarPicker/GidsCalendarPicker.d.ts +55 -0
  102. package/dist/types/components/webComponents/GidsDatePicker/GidsDatePicker.d.ts +74 -0
  103. package/dist/types/components/webComponents/GidsDatePickerField/GidsDatePickerField.d.ts +75 -0
  104. package/dist/types/components/webComponents/GidsDayDropdownPicker/GidsDayDropdownPicker.d.ts +40 -0
  105. package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +10 -8
  106. package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +5 -1
  107. package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +1 -0
  108. package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +7 -2
  109. package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +8 -0
  110. package/dist/types/components/webComponents/GidsMonthDropdownPicker/GidsMonthDropdownPicker.d.ts +40 -0
  111. package/dist/types/components/webComponents/GidsYearDropdownPicker/GidsYearDropdownPicker.d.ts +40 -0
  112. package/dist/types/components.d.ts +877 -70
  113. package/dist-bundled/es/GidsDatePickerSharedUtils-Dh5qFlYA.js +105 -0
  114. package/dist-bundled/es/gids-action-bar.js +28 -28
  115. package/dist-bundled/es/gids-activity-gauge.js +3 -3
  116. package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
  117. package/dist-bundled/es/gids-bar-chart.js +1 -1
  118. package/dist-bundled/es/gids-bento-card.js +1 -1
  119. package/dist-bundled/es/gids-calendar-header-panel.js +1 -1
  120. package/dist-bundled/es/gids-calendar-month-list.js +3 -3
  121. package/dist-bundled/es/gids-calendar-picker.js +6 -0
  122. package/dist-bundled/es/gids-calendar-year-list.js +1 -1
  123. package/dist-bundled/es/gids-calendar.js +4 -151
  124. package/dist-bundled/es/gids-chart-legend-item.js +1 -1
  125. package/dist-bundled/es/gids-chart-legend.js +4 -4
  126. package/dist-bundled/es/gids-chart.js +7 -7
  127. package/dist-bundled/es/gids-chevron-button.js +7 -7
  128. package/dist-bundled/es/gids-date-picker-field.js +181 -0
  129. package/dist-bundled/es/gids-date-picker.js +6 -0
  130. package/dist-bundled/es/gids-day-dropdown-picker.js +6 -0
  131. package/dist-bundled/es/gids-dot.js +1 -1
  132. package/dist-bundled/es/gids-dropdown-field.js +28 -18
  133. package/dist-bundled/es/gids-dropdown-picker.js +2 -2
  134. package/dist-bundled/es/gids-dropdown.js +4 -4
  135. package/dist-bundled/es/gids-expansion-body-list-item.js +1 -1
  136. package/dist-bundled/es/gids-expansion-body-list.js +2 -2
  137. package/dist-bundled/es/gids-expansion-group.js +5 -5
  138. package/dist-bundled/es/gids-expansion.js +8 -8
  139. package/dist-bundled/es/gids-field.js +4 -4
  140. package/dist-bundled/es/gids-filter.js +1 -1
  141. package/dist-bundled/es/gids-flyout-panel.js +3 -3
  142. package/dist-bundled/es/gids-form.js +65 -49
  143. package/dist-bundled/es/gids-header-navigation-item.js +3 -3
  144. package/dist-bundled/es/gids-header-navigation.js +2 -2
  145. package/dist-bundled/es/gids-icon.js +3 -3
  146. package/dist-bundled/es/gids-input.js +1 -1
  147. package/dist-bundled/es/gids-line-chart.js +3 -3
  148. package/dist-bundled/es/gids-md-table.js +1 -1
  149. package/dist-bundled/es/gids-month-dropdown-picker.js +6 -0
  150. package/dist-bundled/es/gids-overflow-container.js +9 -9
  151. package/dist-bundled/es/gids-overlay-provider.js +2 -2
  152. package/dist-bundled/es/gids-password-field.js +20 -20
  153. package/dist-bundled/es/gids-pie-chart.js +1 -1
  154. package/dist-bundled/es/gids-popover.js +1 -1
  155. package/dist-bundled/es/gids-profile-menu-header.js +4 -4
  156. package/dist-bundled/es/gids-profile-menu.js +4 -4
  157. package/dist-bundled/es/gids-profile.js +10 -10
  158. package/dist-bundled/es/gids-scrim.js +3 -3
  159. package/dist-bundled/es/gids-sidebar-item.js +1 -1
  160. package/dist-bundled/es/gids-sidebar-menu.js +1 -1
  161. package/dist-bundled/es/gids-sidebar.js +12 -12
  162. package/dist-bundled/es/gids-skeleton.js +8 -8
  163. package/dist-bundled/es/gids-tab-item.js +6 -6
  164. package/dist-bundled/es/gids-tab.js +7 -7
  165. package/dist-bundled/es/gids-text-field.js +10 -10
  166. package/dist-bundled/es/gids-toggle-button.js +1 -1
  167. package/dist-bundled/es/gids-tooltip.js +4 -4
  168. package/dist-bundled/es/gids-transfer-list.js +8 -8
  169. package/dist-bundled/es/gids-year-dropdown-picker.js +6 -0
  170. package/dist-bundled/es/p-62akP0Ad-D4pJ0a_I.js +86 -0
  171. package/dist-bundled/es/{p-B_FEFM5I-JoBieRfG.js → p-B18yNcA0-BaaXQYM_.js} +2 -2
  172. package/dist-bundled/es/{p-kWyyLyT3-VhX9LNzT.js → p-B2YjHZsu-DxdrSYcE.js} +28 -28
  173. package/dist-bundled/es/{p-DLRj-mUX-BapdQYpI.js → p-B3AB3GQ0-DdgNC9FJ.js} +5 -5
  174. package/dist-bundled/es/{p-Ds5IzXj3-B2o0ML2C.js → p-B4d07GWP-DLyo7HQ9.js} +3 -3
  175. package/dist-bundled/es/{p-CAjDiWIc-C9dOa7FT.js → p-BBlUduEr-CWdvgBS6.js} +7 -7
  176. package/dist-bundled/es/{p-BAqWcL0K-DNkV1R_C.js → p-BNW2xgxF-DWKLliyn.js} +5 -5
  177. package/dist-bundled/es/p-BcXumkjZ-zNpzLmjI.js +240 -0
  178. package/dist-bundled/es/{p-DKSnGphd-CZSPfB-N.js → p-C88Z_F_m-wMA27lx_.js} +3 -3
  179. package/dist-bundled/es/{p-bfWlRsx_-CNZjBYOE.js → p-CKj2Ru6e-B-Nk5B_P.js} +3 -3
  180. package/dist-bundled/es/{p-B_St7yaX-Da4DWjGh.js → p-COsSHfdc-DfDYoLSS.js} +3 -3
  181. package/dist-bundled/es/{p-DrxfD2yZ-Cetyr3S9.js → p-CSXuAs_X-Hw6bT-8r.js} +11 -11
  182. package/dist-bundled/es/{p-DzOOjiNH-CqI4E-mj.js → p-CZgH5rZs-Clk0qfHN.js} +3 -3
  183. package/dist-bundled/es/{p-BIxBMTG9-Ctr342ff.js → p-CueywyHC-CsEetdha.js} +3 -3
  184. package/dist-bundled/es/{p-DpvdbdZ--C7QlXxK2.js → p-CxfmNDsm-JHseL2it.js} +30 -18
  185. package/dist-bundled/es/{p-DMxvWIj1-BxbvrlFL.js → p-DKe6orSY-D1kYOeuX.js} +6 -6
  186. package/dist-bundled/es/{p-D0RJMGGj-BflZ9l8y.js → p-DLX-l0-L-gumz4bOG.js} +1 -1
  187. package/dist-bundled/es/{p-BQT5yy5L-C1C_zTi-.js → p-DOiDD7cS-j1RR9K9r.js} +8 -4
  188. package/dist-bundled/es/{p-B2flLE0s-SMg7vg1a.js → p-DXlBK8TS-DazOvEm2.js} +2 -2
  189. package/dist-bundled/es/{p-E13ycS5K-BBDydae3.js → p-DYKcsBzA-BcupA9sw.js} +6 -6
  190. package/dist-bundled/es/{p--kh67-_Z-B-vf_gng.js → p-D_mszaeq-ndcXN34-.js} +4 -4
  191. package/dist-bundled/es/{p-Do_VlNHg-Ck03dQOR.js → p-DdJKIFk0-Co3FvR3K.js} +1 -1
  192. package/dist-bundled/es/p-DiX4HaE6-C35K492C.js +86 -0
  193. package/dist-bundled/es/{p-DQQhGF5N-mCqb5VTE.js → p-DjnREsH0-Cm8vBvIX.js} +7 -7
  194. package/dist-bundled/es/{p-CIjK3iHM-DEW8PRM5.js → p-FSv82P6v-C6jFH7Zo.js} +1 -1
  195. package/dist-bundled/es/p-MaJDBE6u-DjtEX6-I.js +157 -0
  196. package/dist-bundled/es/p-XVlT5H5q-CFIMyrM3.js +148 -0
  197. package/dist-bundled/es/p-fE-MdTCH-CDvG1Xn1.js +122 -0
  198. package/dist-bundled/es/{p-mv_7K1EM-U3yKC45e.js → p-gK9DvcL8-Chw-ya2Q.js} +1 -1
  199. package/dist-bundled/es/{p-_W77iniK-ChKfEOp3.js → p-iEUyQs9t-BUXXVuwz.js} +2 -2
  200. package/dist-bundled/es/{p-BCbovLBE-CDxKiOtS.js → p-jtpLLxuw-BlEPhjmU.js} +1 -1
  201. package/dist-bundled/es/p-lvArnlBV-BxkIAxHG.js +86 -0
  202. package/dist-bundled/es/{p-TfH966_e-BzZRV8Rj.js → p-vz4tzbld-BYJRjHJw.js} +5 -5
  203. package/dist-bundled/es/{p-DnRuhvRw-Beh0bANh.js → p-x1tVOUSt-CdB8Szfe.js} +6 -6
  204. package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
  205. package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
  206. package/dist-bundled/umd/gids-advanced-tooltip.umd.js +1 -1
  207. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  208. package/dist-bundled/umd/gids-bento-card.umd.js +1 -1
  209. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  210. package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
  211. package/dist-bundled/umd/gids-calendar-picker.umd.js +5 -0
  212. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  213. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  214. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  215. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  216. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  217. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  218. package/dist-bundled/umd/gids-date-picker-field.umd.js +5 -0
  219. package/dist-bundled/umd/gids-date-picker.umd.js +5 -0
  220. package/dist-bundled/umd/gids-day-dropdown-picker.umd.js +5 -0
  221. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  222. package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
  223. package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
  224. package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
  225. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  226. package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
  227. package/dist-bundled/umd/gids-expansion-group.umd.js +2 -2
  228. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  229. package/dist-bundled/umd/gids-field.umd.js +1 -1
  230. package/dist-bundled/umd/gids-filter.umd.js +2 -2
  231. package/dist-bundled/umd/gids-flyout-panel.umd.js +2 -2
  232. package/dist-bundled/umd/gids-form.umd.js +2 -2
  233. package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
  234. package/dist-bundled/umd/gids-header-navigation.umd.js +1 -1
  235. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  236. package/dist-bundled/umd/gids-input.umd.js +1 -1
  237. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  238. package/dist-bundled/umd/gids-md-table.umd.js +1 -1
  239. package/dist-bundled/umd/gids-month-dropdown-picker.umd.js +5 -0
  240. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  241. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  242. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  243. package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
  244. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  245. package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
  246. package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
  247. package/dist-bundled/umd/gids-profile.umd.js +2 -2
  248. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  249. package/dist-bundled/umd/gids-sidebar-item.umd.js +2 -2
  250. package/dist-bundled/umd/gids-sidebar-menu.umd.js +2 -2
  251. package/dist-bundled/umd/gids-sidebar.umd.js +2 -2
  252. package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
  253. package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
  254. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  255. package/dist-bundled/umd/gids-text-field.umd.js +1 -1
  256. package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
  257. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  258. package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
  259. package/dist-bundled/umd/gids-year-dropdown-picker.umd.js +5 -0
  260. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  261. package/package.json +55 -7
  262. package/dist/p-BQT5yy5L.js +0 -1
  263. package/dist/p-CAjDiWIc.js +0 -1
  264. package/dist/p-Do_VlNHg.js +0 -1
  265. package/dist/p-DpvdbdZ-.js +0 -1
  266. package/dist/p-kWyyLyT3.js +0 -1
  267. package/dist/p-tEbUT3n3.js +0 -1
  268. package/dist-bundled/es/p-tEbUT3n3-Byef6fQN.js +0 -244
  269. /package/dist-bundled/es/{p-CV1-78HB-C0k_l_CT.js → p-D2VR17v2-C0k_l_CT.js} +0 -0
@@ -0,0 +1,5 @@
1
+ (function(ae,ue){typeof exports=="object"&&typeof module<"u"?ue(exports):typeof define=="function"&&define.amd?define(["exports"],ue):(ae=typeof globalThis<"u"?globalThis:ae||self,ue(ae.gidsCoreWebGidsCalendarPicker={}))})(this,(function(ae){"use strict";var X;function ue(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var ke,ns=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const a=e[s],o=ue(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(e,s,{get(){return o.get.call(this)},set(r){o.set.call(this,r)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):a!==void 0&&(e[s]=a)}}))},H=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ft=(e,t)=>t in e,oe=(e,t)=>(0,console.error)(e,t),De=new Map,Rt="http://www.w3.org/1999/xlink",ss=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],P=typeof window<"u"?window:{},$=P.HTMLElement||class{},D={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},is=(()=>{var e;let t=!1;try{(e=P.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Ze=(()=>{try{return!!P.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Je=!!Ze&&!!P.document&&Object.getOwnPropertyDescriptor(P.document.adoptedStyleSheets,"length").writable,Qe=!1,zt=[],Vt=[],as=(e,t)=>n=>{e.push(n),Qe||(Qe=!0,4&D.i?tt(et):D.raf(et))},jt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){oe(n)}e.length=0},et=()=>{jt(zt),jt(Vt),(Qe=zt.length>0)&&D.raf(et)},tt=e=>Promise.resolve(void 0).then(e),os=as(Vt);function rs(){const e=this.attachShadow({mode:"open"});ke===void 0&&(ke=null),ke&&(Je?e.adoptedStyleSheets.push(ke):e.adoptedStyleSheets=[...e.adoptedStyleSheets,ke])}var Gt=e=>{const t=st(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&nt(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ls(s,xe(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&st(s,"childNodes").length&&Gt(s)}};function nt(e,t,n){let s,i=0,a=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||xe(s)===n)&&(a.push(s),n!==void 0))return a;a=[...a,...nt(s.childNodes,t,n)]}return a}var ls=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)xe(i)!==t||!n&&i["s-sr"]||s.push(i);return s},qt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",xe=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function st(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var it,re,J=new WeakMap,Bt=e=>"sc-"+e.p,at=e=>(e=typeof e)=="object"||e==="function",m=(e,t,...n)=>{let s=null,i=null,a=null,o=!1,r=!1;const l=[],h=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?h(s):s!=null&&typeof s!="boolean"&&((o=typeof e!="function"&&!at(s))&&(s=String(s)),o&&r?l[l.length-1].h+=s:l.push(o?Ne(null,s):s),r=o)};if(h(n),t){t.key&&(i=t.key),t.name&&(a=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,cs);const c=Ne(e,null);return c.v=t,l.length>0&&(c.m=l),c.$=i,c.j=a,c},Ne=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ht={},cs={forEach:(e,t)=>e.map(Wt).forEach(t),map:(e,t)=>e.map(Wt).map(t).map(ds)},Wt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ds=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),m(e.vtag,n,...e.vchildren||[])}const t=Ne(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ut=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const i of t){if(n)break;for(const a of e[i])if(typeof a=="string"){n=!0;break}}if(!n)return e;const s={};for(const i of t)s[i]=e[i].map((a=>typeof a=="string"?{[a]:0}:a));return s},Kt=(e,t,n)=>e==null||at(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,hs=(e,t,n)=>{const s=D.ce(t,n);return e.dispatchEvent(s),s},Xt=(e,t,n,s,i,a)=>{if(n===s)return;let o=Ft(e,t),r=t.toLowerCase();if(t==="class"){const l=e.classList,h=Zt(n);let c=Zt(s);l.remove(...h.filter((d=>d&&!c.includes(d)))),l.add(...c.filter((d=>d&&!h.includes(d))))}else if(t==="style"){for(const l in n)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)n&&s[l]===n[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&gs(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let h;{const c=H(e);if(c&&c.o&&c.o.t){const d=c.o.t[l];d&&d[1]&&(h=d[1])}}return h||(h=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(h)!==""||e.removeAttribute(h):e.setAttribute(h,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=at(s);if((o||l&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const c=s??"";t==="list"?o=!1:n!=null&&e[t]===c||(typeof e.__lookupSetter__(t)=="function"?e[t]=c:e.setAttribute(t,c))}}catch{}let h=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,h=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(h?e.removeAttributeNS(Rt,t):e.removeAttribute(t)):(!o||4&a||i)&&!l&&e.nodeType===1&&(s=s===!0?"":s,h?e.setAttributeNS(Rt,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):Ft(P,r)?r.slice(2):r[2]+t.slice(3),n||s){const l=t.endsWith(Jt);t=t.replace(ps,""),n&&D.rel(e,t,n,l),s&&D.ael(e,t,s,l)}}},us=/\s/,Zt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(us):[]),Jt="Capture",ps=new RegExp(Jt+"$"),ot=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},a=t.v||{};for(const o of Qt(Object.keys(i)))o in a||Xt(s,o,i[o],void 0,n,t.i);for(const o of Qt(Object.keys(a)))Xt(s,o,i[o],a[o],n,t.i)};function Qt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var Ce=!1,Ae=!1,Me=!1,M=!1,rt=[],lt=[],Le=(e,t,n)=>{var s;const i=t.m[n];let a,o,r,l=0;if(Ce||(Me=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)a=i.S=P.document.createTextNode(i.h);else if(1&i.i)a=i.S=P.document.createTextNode(""),ot(null,i,M);else{if(M||(M=i.O==="svg"),!P.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(a=i.S=P.document.createElementNS(M?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Ce&&2&i.i?"slot-fb":i.O),M&&i.O==="foreignObject"&&(M=!1),ot(null,i,M),i.m){const h=i.O==="template"?a.content:a;for(l=0;l<i.m.length;++l)o=Le(e,i,l),o&&h.appendChild(o)}i.O==="svg"?M=!1:a.tagName==="foreignObject"&&(M=!0)}return a["s-hn"]=re,3&i.i&&(a["s-sr"]=!0,a["s-cr"]=it,a["s-sn"]=i.j||"",a["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(h){if(h.assignedElements||h.assignedNodes||!h["s-sr"])return;const c=d=>(function(u){const g=[],p=this["s-sn"];u?.flatten&&console.error(`
2
+ Flattening is not supported for Stencil non-shadow slots.
3
+ You can use \`.childNodes\` to nested slot fallback content.
4
+ If you have a particular use case, please open an issue on the Stencil repo.
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const f=[];for(let b=0;b<w.length;b++){const y=w[b]["s-nr"]||void 0;y&&y.isConnected&&f.push(y)}return f})(v.childNodes)).forEach((w=>{p===xe(w)&&g.push(w)})),d?g.filter((w=>w.nodeType===1)):g}).bind(h);h.assignedElements=c(!0),h.assignedNodes=c(!1)})(a),r=e&&e.m&&e.m[n],r&&r.O===i.O&&e.S&&en(e.S)),a},en=e=>{D.i|=1;const t=e.closest(re.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(T(t,i,n??null),i["s-sh"]=void 0,Me=!0)}D.i&=-2},Oe=(e,t)=>{D.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===re&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==re&&i["s-ol"]&&(T(Ee(i).parentNode,i,Ee(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Me=!0),t&&Oe(i,t)}D.i&=-2},tn=(e,t,n,s,i,a)=>{let o,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===re&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=a;++i)s[i]&&(o=Le(null,n,i),o&&(s[i].S=o,T(r,o,Ee(t))))},nn=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const a=i.S;an(i),a&&(Ae=!0,a["s-ol"]?a["s-ol"].remove():Oe(a,!0),a.remove())}}},$e=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Ee=e=>e&&e["s-ol"]||e,pe=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,a=t.m,o=t.O,r=t.h;let l;r==null?(M=o==="svg"||o!=="foreignObject"&&M,o!=="slot"||Ce||e.j!==t.j&&(t.S["s-sn"]=t.j||"",en(t.S.parentElement)),ot(e,t,M),i!==null&&a!==null?((h,c,d,u,g=!1)=>{let p,v,w=0,f=0,b=0,y=0,C=c.length-1,k=c[0],x=c[C],E=u.length-1,S=u[0],I=u[E];const N=d.O==="template"?h.content:h;for(;w<=C&&f<=E;)if(k==null)k=c[++w];else if(x==null)x=c[--C];else if(S==null)S=u[++f];else if(I==null)I=u[--E];else if($e(k,S,g))pe(k,S,g),k=c[++w],S=u[++f];else if($e(x,I,g))pe(x,I,g),x=c[--C],I=u[--E];else if($e(k,I,g))k.O!=="slot"&&I.O!=="slot"||Oe(k.S.parentNode,!1),pe(k,I,g),T(N,k.S,x.S.nextSibling),k=c[++w],I=u[--E];else if($e(x,S,g))k.O!=="slot"&&I.O!=="slot"||Oe(x.S.parentNode,!1),pe(x,S,g),T(N,x.S,k.S),x=c[--C],S=u[++f];else{for(b=-1,y=w;y<=C;++y)if(c[y]&&c[y].$!==null&&c[y].$===S.$){b=y;break}b>=0?(v=c[b],v.O!==S.O?p=Le(c&&c[f],d,b):(pe(v,S,g),c[b]=void 0,p=v.S),S=u[++f]):(p=Le(c&&c[f],d,f),S=u[++f]),p&&T(Ee(k.S).parentNode,p,Ee(k.S))}w>C?tn(h,u[E+1]==null?null:u[E+1].S,d,u,f,E):f>E&&nn(c,w,C)})(s,i,t,a,n):a!==null?(e.h!==null&&(s.textContent=""),tn(s,null,t,a,0,a.length-1)):!n&&i!==null&&nn(i,0,i.length-1),M&&o==="svg"&&(M=!1)):(l=s["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(s.data=r)},W=[],sn=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const a of i){if(a["s-sr"]&&(t=a["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const o=a["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===a["s-hn"]||t["s-sh"]&&t["s-sh"]===a["s-hn"]))if(qt(t,o)){let r=W.find((l=>l.k===t));Ae=!0,t["s-sn"]=t["s-sn"]||o,r?(r.k["s-sh"]=a["s-hn"],r.N=a):(t["s-sh"]=a["s-hn"],W.push({N:a,k:t})),t["s-sr"]&&W.map((l=>{qt(l.k,t["s-sn"])&&(r=W.find((h=>h.k===t)),r&&!l.N&&(l.N=r.N))}))}else W.some((r=>r.k===t))||W.push({k:t})}a.nodeType===1&&sn(a)}},an=e=>{e.v&&e.v.ref&&rt.push((()=>e.v.ref(null))),e.m&&e.m.map(an)},gs=(e,t)=>{lt.push((()=>e(t)))},T=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(a,o){var r;if(!(o=o||((r=a["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=a["s-sn"]=xe(a)||"";return{slotNode:nt(st(o,"childNodes"),o.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},ms=(e,t,n=!1)=>{var s,i,a,o,r;const l=e.$hostElement$,h=e.o,c=e.M||Ne(null,null);var d;const u=(d=t)&&d.O===Ht?t:m(null,null,t);if(re=l.tagName,h.C&&(u.v=u.v||{},h.C.forEach((([g,p])=>{u.v[p]=l[g]}))),n&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=c.S=l.shadowRoot||l,Ce=!(!(1&h.i)||128&h.i),it=l["s-cr"],Ae=!1,pe(c,u,n),D.i|=1,Me){sn(u.S);for(const g of W){const p=g.k;if(!p["s-ol"]&&P.document){const v=P.document.createTextNode("");v["s-nr"]=p,T(p.parentNode,p["s-ol"]=v,p,n)}}for(const g of W){const p=g.k,v=g.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),v){const w=v.parentNode;let f=v.nextSibling;if(f&&f.nodeType===1){let b=(i=p["s-ol"])==null?void 0:i.previousSibling;for(;b;){let y=(a=b["s-nr"])!=null?a:null;if(y&&y["s-sn"]===p["s-sn"]&&w===(y.__parentNode||y.parentNode)){for(y=y.nextSibling;y===p||y?.["s-sr"];)y=y?.nextSibling;if(!y||!y["s-nr"]){f=y;break}}b=b.previousSibling}}if((!f&&w!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==f)&&p!==f){if(T(w,p,f,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const b=P.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));b["s-hn"]=p["s-hn"],b["s-sn"]=p["s-sn"],b["s-sh"]=p["s-sh"],b["s-sr"]=p["s-sr"],b["s-ol"]=p["s-ol"],b["s-ol"]["s-nr"]=b,T(p.parentNode,b,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(o=p["s-ih"])!=null&&o)}p&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else p.nodeType===1&&(p.hidden=!0)}}if(Ae&&Gt(u.S),D.i&=-2,W.length=0,!Ce&&!(1&h.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const p of g)if(p["s-hn"]!==re&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(r=p.hidden)!=null&&r),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const v=P.document.createComment("s-nt-"+p.nodeValue);v["s-sn"]=p["s-sn"],T(p.parentNode,v,p,n),p.parentNode.removeChild(p)}}}it=void 0,rt.forEach((g=>g())),rt.length=0,lt.forEach((g=>g())),lt.length=0},on=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ct=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);on(e,e.R);const n=()=>fs(e,t);if(!t)return os(n);queueMicrotask((()=>{n()}))},fs=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=Se(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=rn(i,(()=>Se(s,"componentWillRender",void 0,n))),rn(i,(()=>ys(e,s,t)))},rn=(e,t)=>bs(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),bs=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ys=async(e,t,n)=>{var s;const i=e.$hostElement$,a=i["s-rc"];n&&(o=>{const r=o.o,l=o.$hostElement$,h=r.i,c=((d,u)=>{var g,p,v;const w=Bt(u),f=De.get(w);if(!P.document)return w;if(d=d.nodeType===11?d:P.document,f)if(typeof f=="string"){let b,y=J.get(d=d.head||d);if(y||J.set(d,y=new Set),!y.has(w)){b=P.document.createElement("style"),b.textContent=f;const C=(g=D._)!=null?g:(function(){var k,x,E;return(E=(x=(k=P.document.head)==null?void 0:k.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?E:void 0})();if(C!=null&&b.setAttribute("nonce",C),!(1&u.i))if(d.nodeName==="HEAD"){const k=d.querySelectorAll("link[rel=preconnect]"),x=k.length>0?k[k.length-1].nextSibling:d.querySelector("style");d.insertBefore(b,x?.parentNode===d?x:null)}else if("host"in d)if(Ze){const k=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;k.replaceSync(f),Je?d.adoptedStyleSheets.unshift(k):d.adoptedStyleSheets=[k,...d.adoptedStyleSheets]}else{const k=d.querySelector("style");k?k.textContent=f+k.textContent:d.prepend(b)}else d.append(b);1&u.i&&d.insertBefore(b,null),4&u.i&&(b.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),y&&y.add(w)}}else{let b=J.get(d);if(b||J.set(d,b=new Set),!b.has(w)){const y=(v=d.defaultView)!=null?v:d.ownerDocument.defaultView;let C;if(f.constructor===y.CSSStyleSheet)C=f;else{C=new y.CSSStyleSheet;for(let k=0;k<f.cssRules.length;k++)C.insertRule(f.cssRules[k].cssText,k)}Je?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],b.add(w)}}return w})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&h&&(l["s-sc"]=c,l.classList.add(c+"-h"))})(e),vs(e,t,i,n),a&&(a.map((o=>o())),i["s-rc"]=void 0);{const o=(s=i["s-p"])!=null?s:[],r=()=>ws(e);o.length===0?r():(Promise.all(o).then(r).catch(r),e.i|=4,o.length=0)}},vs=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ms(e,t,s)}catch(i){oe(i,e.$hostElement$)}return null},ws=e=>{const t=e.$hostElement$,n=t,s=e.R;Se(n,"componentDidRender",void 0,t),64&e.i?Se(n,"componentDidUpdate",void 0,t):(e.i|=64,xs(t),Se(n,"componentDidLoad",void 0,t),e.L(t),s||ks()),e.A&&(e.A(),e.A=void 0),512&e.i&&tt((()=>ct(e,!1))),e.i&=-517},ks=()=>{tt((()=>hs(P,"appload",{detail:{namespace:"gids-core-web"}})))},Se=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){oe(i,s)}},xs=e=>e.classList.add("hydrated"),ln=(e,t,n,s)=>{const i=H(e);if(!i)return;const a=e,o=i.l.get(t),r=i.i,l=a;n=Kt(n,s.t[t][0],!!(64&s.i));const h=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!h){if(i.l.set(t,n),s.F){const c=s.F[t];c&&c.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](n,o,t):i.T.push((()=>{i.D[u](n,o,t)})))}catch(u){oe(u,a)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1&&!(16&r))return;16&r||ct(i,!1)}}},Cs=(e,t,n)=>{var s,i;const a=e.prototype;64&t.i&&1&n&&ss.forEach((o=>{const r=a[o];Object.defineProperty(a,o,{value(...l){var h;const c=H(this),d=this;d?typeof r=="function"&&r.call(d,...l):(h=c?.H)==null||h.then((u=>{const g=u[o];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Ut(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const o=Object.entries((s=t.t)!=null?s:{});o.map((([r,[l]])=>{if(31&l||32&l){const{get:h,set:c}=ue(a,r)||{};h&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(a,r,{get(){return h?h.apply(this):(d=r,H(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(a,r,{set(d){const u=H(this);if(u){if(c)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),c.apply(this,[Kt(d,l,!!(64&t.i))]),void ln(this,r,d=32&l?this[r]:u.$hostElement$[r],t);ln(this,r,d,t)}}})}}));{const r=new Map;a.attributeChangedCallback=function(l,h,c){D.jmp((()=>{var d;const u=r.get(l),g=H(this);if(this.hasOwnProperty(u),a.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const b=g?.i;if(g&&b&&!(8&b)&&c!==h){const y=this,C=(d=t.F)==null?void 0:d[l];C?.forEach((k=>{const[[x,E]]=Object.entries(k);y[x]!=null&&(128&b||1&E)&&y[x].call(y,c,h,l)}))}return}const p=o.find((([b])=>b===u)),v=p&&4&p[1][0],w=v&&c===null&&this[u]===void 0;v&&(c=c!==null&&c!=="false");const f=Object.getOwnPropertyDescriptor(a,u);w||c==this[u]||f.get&&!f.set||(this[u]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...o.filter((([l,h])=>31&h[0])).map((([l,h])=>{var c;const d=h[1]||l;return r.set(d,l),512&h[0]&&((c=t.C)==null||c.push([l,d])),d}))]))}}return e},Y=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ut(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((a,o)=>{const r={i:0,$hostElement$:a,o,l:new Map,B:new Map};r.H=new Promise((h=>r.L=h)),a["s-p"]=[],a["s-rc"]=[];const l=r;a.__stencil__getHostRef=()=>l,512&o.i&&ns(a,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const a=H(this);if(!a)return;cn(this,a,n.W),this.__hasHostListenerAttached=!0}(a=>{if(!(1&D.i)){const o=H(a);if(!o)return;const r=o.o;if(1&o.i)cn(a,o,r.W),o?.D||o?.H&&o.H.then((()=>{}));else{o.i|=1,12&r.i&&(l=>{if(!P.document)return;const h=l["s-cr"]=P.document.createComment("");h["s-cn"]=!0,T(l,h,l.firstChild)})(a);{let l=a;for(;l=l.parentNode||l.host;)if(l["s-p"]){on(o,o.R=l);break}}r.t&&Object.entries(r.t).map((([l,[h]])=>{if(31&h&&Object.prototype.hasOwnProperty.call(a,l)){const c=a[l];delete a[l],a[l]=c}})),(async(l,h,c)=>{let d;try{if(!(32&h.i)&&(h.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>h.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const v=Bt(c);De.has(v)||((w,f,b)=>{let y=De.get(w);Ze&&b?(y=y||new CSSStyleSheet,typeof y=="string"?y=f:y.replaceSync(f)):y=f,De.set(w,y)})(v,p,!!(1&c.i))}const u=h.R,g=()=>ct(h,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){oe(u,l),h.A&&(h.A(),h.A=void 0),h.L&&h.L(l)}})(a,o,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async a=>{if(!(1&D.i)){const o=H(a);o?.V&&(o.V.map((r=>r())),o.V=void 0)}J.has(a)&&J.delete(a),a.shadowRoot&&J.has(a.shadowRoot)&&J.delete(a.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else rs.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Cs(e,n,3)}catch(s){return oe(s),e}},Te=(e,t)=>t,cn=(e,t,n)=>{n&&P.document&&n.map((([s,i,a])=>{const o=Ss(P.document,e,s),r=Es(t,a),l=Ps(s);D.ael(o,i,r,l),(t.V=t.V||[]).push((()=>D.rel(o,i,r,l)))}))},Es=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){oe(s,e.$hostElement$)}},Ss=(e,t,n)=>8&n?P:t,Ps=e=>is?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function to(e){return e}const _s=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:n}=e,s=typeof t=="string"&&t.trim().length>0,i=typeof n=="string"&&n.trim().length>0;return{hasLabel:s,hasSupportingText:i}}},Symbol.toStringTag,{value:"Module"})),Ye=64,dn=10,hn=Ye/2-dn/2,Is=Ye/2,dt=2*Math.PI*hn,Ds=`0 0 ${Ye} ${Ye}`,Ns=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,a=(dt*i/100).toFixed(2),o=(dt-parseFloat(a)).toFixed(2);return`${a} ${o}`},centerPosition:Is,circumference:dt,radius:hn,thickness:dn,viewBox:Ds},Symbol.toStringTag,{value:"Module"})),As="1990";new Date().getDate(),new Date().getMonth()+1;const Ms=new Date().getFullYear();function un(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=un(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function _(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=un(e))&&(s&&(s+=" "),s+=t);return s}const Ls=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>_("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Os=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:i,loading:a},o,r)=>_("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":s&&!i,"gids-button--positive":i&&!s,"gids-button--icon-only":o,"gids-button--loading":a},r)},Symbol.toStringTag,{value:"Module"})),$s=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarCellClassNames:({disabled:e,selected:t,today:n,cellType:s,dot:i},a)=>_("gids-calendar-cell",{"gids-calendar-cell--selected":t&&!e&&!n,"gids-calendar-cell--today":n&&!e&&!i,"gids-calendar-cell--label-non-effective":s==="non-effective","gids-calendar-cell--default-effective":s==="effective"&&!e&&!n&&!t,"gids-calendar-cell--selected-effective":t&&s==="effective"&&!e&&!n,"gids-calendar-cell--today-effective":n&&s==="effective"&&!e&&!i,"gids-calendar-cell--default-disabled":e&&!n&&!t,"gids-calendar-cell--selected-disabled":e&&t&&!n,"gids-calendar-cell--today-disabled":e&&n&&!i,"gids-calendar-cell--today-dot":n&&!e&&i,"gids-calendar-cell--today-dot-effective":n&&s==="effective"&&!e&&i,"gids-calendar-cell--today-dot-disabled":e&&n&&i},a)},Symbol.toStringTag,{value:"Module"})),Ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarDayCellClassNames:e=>_("gids-calendar-day-cell",e)},Symbol.toStringTag,{value:"Module"})),pn=Object.freeze(Object.defineProperty({__proto__:null,getCalendarMonthNameViaMonthNumber:(e,t="en-US")=>{const n=new Date(2e3,e-1,1);return new Intl.DateTimeFormat(t,{month:"long"}).format(n)},getGidsCalendarHeaderPanelClassNames:e=>_("gids-calendar-header-panel",e)},Symbol.toStringTag,{value:"Module"})),Ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarMonthListClassNames:e=>_("gids-calendar-month-list",e),getGidsCalendarMonthListMonths:()=>{const e=[],t=new Intl.DateTimeFormat("en-US",{month:"long"});for(let n=1;n<=12;n+=1){const s=new Date(2e3,n-1,1),i=t.format(s);e.push({id:`${n}`,title:i,value:n})}return e}},Symbol.toStringTag,{value:"Module"})),Fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarPickerClassNames:e=>_("gids-calendar-picker",e)},Symbol.toStringTag,{value:"Module"})),Rs=Object.freeze(Object.defineProperty({__proto__:null,generateCalendarDays:({currentMonth:e,currentYear:t})=>{if(!t||!e)return[];const n=t,s=e-1,i=new Date(n,s,1).getDay(),a=new Date(n,s+1,0).getDate(),o=new Date(n,s,0).getDate(),r=[],l=new Date().toISOString().split("T")[0];for(let c=i-1;c>=0;c--){const d=o-c,u=s===0?12:s,p=`${s===0?n-1:n}-${String(u).padStart(2,"0")}-${String(d).padStart(2,"0")}`;r.push({day:d,isCurrentMonth:!1,dateString:p,isToday:l===p})}for(let c=1;c<=a;c++){const d=`${n}-${String(e).padStart(2,"0")}-${String(c).padStart(2,"0")}`;r.push({day:c,isCurrentMonth:!0,dateString:d,isToday:l===d})}const h=42-r.length;for(let c=1;c<=h;c++){const d=s===11?1:s+2,g=`${s===11?n+1:n}-${String(d).padStart(2,"0")}-${String(c).padStart(2,"0")}`;r.push({day:c,isCurrentMonth:!1,dateString:g,isToday:l===g})}return r},generateCalendarWeekdays:()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],getGidsCalendarClassNames:({width:e},t)=>_("gids-calendar",{"gids-calendar--width-fixed":e==="fixed","gids-calendar--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),zs=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>_("gids-calendar-year-list",e),getGidsCalendarYearListYears:({startYear:e,endYear:t})=>{const n=[];let s=1;for(let i=e;i<=t;i+=1)n.push({id:`${s}_${i}`,title:`${i}`,value:i}),s=s+1;return n},isValidFourDigitYear:e=>{const t=e.toString().trim();if(!/^\d{4}$/.test(t))return!1;const s=parseInt(t,10);return s>=1e3&&s<=9999}},Symbol.toStringTag,{value:"Module"})),Vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>_("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),js=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:n},s)=>_("gids-dot",{"gids-dot--disabled":n,"gids-dot--subtle":e==="subtle"&&!n,"gids-dot--static-inverse":e==="static-inverse"&&!n,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),Gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>_("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),qs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>_("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),Bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>_("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Hs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>_("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>_("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:e=>_("gids-dropdown",e)},Symbol.toStringTag,{value:"Module"})),Us=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>_("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Ks=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>_("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),Xs=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>_("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Zs=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},n)=>_("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},n)},Symbol.toStringTag,{value:"Module"})),Js=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>_("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),Qs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>_("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),ht=Symbol("defaultPath"),gn=Symbol("pathSet"),ut="gids-asset-paths-set";class ei extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#n(t){return this.#t.get(t)??null}#s=()=>{this.dispatchEvent(new Event(ut))};haveAssetPathsBeenSet(){return this.#n(gn)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ht,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(ht,n)}this.#e(gn,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const n=this.#n(t);if(n===null){const s=this.#n(ht);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ut,t,{once:!0}),()=>{this.removeEventListener(ut,t)}}}const pt=Symbol.for("GIDS"),ti=()=>(globalThis[pt]===void 0&&(globalThis[pt]={assetPaths:{}}),globalThis[pt]),ni=e=>{const t=ti().assetPaths;return t[e]===void 0&&(t[e]=new ei),t[e]};function gt(){return ni("@ganpatiinfo/gids-web-shared")}function si(){return gt().haveAssetPathsBeenSet()}function mn(e){return gt().getAssetFilePath(e)}function ii(e){return gt().onAssetPathsSet(e)}let ai=0;const oi=(e,t="gids")=>e||`${t}-${ai++}`,ri=e=>e.type==="hidden",li=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ri(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},fn=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:ci}=Js,{calculateStrokeDasharray:di,thickness:bn,radius:yn,centerPosition:Fe,viewBox:hi}=Ns,mt=({size:e,indeterminate:t,value:n,max:s,...i})=>{let a;return t||(a={strokeDashArray:di(n,s||0),strokeDashoffset:"0"}),m("svg",{class:ci({size:e,indeterminate:t,value:n}),viewBox:hi,...i},m("circle",{class:"gids-spinner-control__track",cx:Fe,cy:Fe,r:yn,"stroke-width":bn}),m("circle",{style:a,class:"gids-spinner-control__progress",cx:Fe,cy:Fe,r:yn,"stroke-width":bn}))},{getGidsButtonClassNames:ui}=Os,ft=({appearance:e,size:t,destructive:n,positive:s,loading:i,width:a,leadingIcon:o,trailingIcon:r,as:l,disabled:h,class:c,forceIconOnly:d=!1,...u},g)=>{const p=l||"button",v=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in u||(u.type="button"),m(p,{class:ui({appearance:e,size:t,destructive:n,loading:i,width:a,positive:s},d||g.length===0&&fn(o)&&!fn(r),c),disabled:p==="button"?h:void 0,...u},m("span",{class:"gids-button__content"},o,g),i&&m(mt,{size:v,indeterminate:!0}),r)},vn={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind","acorn","address-book","address-book-tabs","air-traffic-control","airplane","airplane-in-flight","airplane-landing","airplane-takeoff","airplane-taxiing","airplane-tilt","airplay","alarm","alien","align-bottom","align-bottom-simple","align-center-horizontal","align-center-horizontal-simple","align-center-vertical","align-center-vertical-simple","align-left","align-left-simple","align-right","align-right-simple","align-top","align-top-simple","amazon-logo","ambulance","anchor","anchor-simple","android-logo","angle","angular-logo","aperture","app-store-logo","app-window","apple-logo","apple-podcasts-logo","approximate-equals","armchair","arrow-arc-left","arrow-arc-right","arrow-bend-double-up-left","arrow-bend-double-up-right","arrow-bend-down-left","arrow-bend-down-right","arrow-bend-left-down","arrow-bend-left-up","arrow-bend-right-down","arrow-bend-right-up","arrow-bend-up-left","arrow-bend-up-right","arrow-circle-down","arrow-circle-down-left","arrow-circle-down-right","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-circle-up-left","arrow-circle-up-right","arrow-clockwise","arrow-counter-clockwise","arrow-down-left","arrow-down-right","arrow-elbow-down-left","arrow-elbow-down-right","arrow-elbow-left","arrow-elbow-left-down","arrow-elbow-left-up","arrow-elbow-right","arrow-elbow-right-down","arrow-elbow-right-up","arrow-elbow-up-left","arrow-elbow-up-right","arrow-fat-down","arrow-fat-left","arrow-fat-line-down","arrow-fat-line-left","arrow-fat-line-right","arrow-fat-line-up","arrow-fat-lines-down","arrow-fat-lines-left","arrow-fat-lines-right","arrow-fat-lines-up","arrow-fat-right","arrow-fat-up","arrow-line-down","arrow-line-down-left","arrow-line-down-right","arrow-line-left","arrow-line-right","arrow-line-up","arrow-line-up-left","arrow-line-up-right","arrow-square-down","arrow-square-down-left","arrow-square-down-right","arrow-square-in","arrow-square-left","arrow-square-out","arrow-square-right","arrow-square-up","arrow-square-up-left","arrow-square-up-right","arrow-u-down-left","arrow-u-down-right","arrow-u-left-down","arrow-u-left-up","arrow-u-right-down","arrow-u-right-up","arrow-u-up-left","arrow-u-up-right","arrow-up-left","arrow-up-right","arrows-clockwise","arrows-counter-clockwise","arrows-down-up","arrows-horizontal","arrows-in","arrows-in-cardinal","arrows-in-line-horizontal","arrows-in-line-vertical","arrows-in-simple","arrows-left-right","arrows-merge","arrows-out","arrows-out-cardinal","arrows-out-line-horizontal","arrows-out-line-vertical","arrows-out-simple","arrows-split","arrows-vertical","article","article-medium","article-ny-times","asclepius","asterisk","asterisk-simple","at","atom","avocado","axe","baby","baby-carriage","backpack","backspace","bag","bag-simple","balloon","bandaids","bank","barbell","barcode","barn","barricade","baseball","baseball-cap","baseball-helmet","basket","basketball","bathtub","battery-charging","battery-charging-vertical","battery-empty","battery-full","battery-high","battery-low","battery-medium","battery-plus","battery-plus-vertical","battery-vertical-empty","battery-vertical-full","battery-vertical-high","battery-vertical-low","battery-vertical-medium","battery-warning","battery-warning-vertical","beach-ball","beanie","bed","beer-bottle","beer-stein","behance-logo","bell","bell-ringing","bell-simple","bell-simple-ringing","bell-simple-slash","bell-simple-z","bell-slash","bell-z","belt","bezier-curve","bicycle","binary","binoculars","biohazard","bird","blueprint","bluetooth-connected","bluetooth-slash","bluetooth-x","boat","bomb","bone","book","book-bookmark","book-open","book-open-text","book-open-user","bookmark-simple","bookmarks","bookmarks-simple","books","boot","boules","bounding-box","bowl-food","bowl-steam","bowling-ball","box-arrow-down","box-arrow-up","boxing-glove","brackets-angle","brackets-curly","brackets-round","brackets-square","brain","brandy","bread","bridge","briefcase","briefcase-metal","broadcast","broom","browser","browsers","bug","bug-beetle","bug-droid","building","building-apartment","building-office","buildings","bulldozer","bus","butterfly","cable-car","cactus","cake","calculator","calendar-blank","calendar-check","calendar-dot","calendar-dots","calendar-heart","calendar-minus","calendar-plus","calendar-slash","calendar-star","calendar-x","call-bell","camera-plus","camera-rotate","camera-slash","campfire","car","car-battery","car-profile","car-simple","cardholder","cards","cards-three","caret-circle-double-down","caret-circle-double-left","caret-circle-double-right","caret-circle-double-up","caret-circle-down","caret-circle-left","caret-circle-right","caret-circle-up","caret-circle-up-down","caret-double-down","caret-double-left","caret-double-right","caret-double-up","caret-down","caret-left","caret-line-down","caret-line-left","caret-line-right","caret-line-up","caret-right","caret-up","caret-up-down","carrot","cash-register","cassette-tape","castle-turret","cat","cell-signal-full","cell-signal-high","cell-signal-low","cell-signal-medium","cell-signal-none","cell-signal-slash","cell-signal-x","cell-tower","certificate","chair","chalkboard","chalkboard-simple","chalkboard-teacher","champagne","charging-station","chart-bar","chart-bar-horizontal","chart-donut","chart-line","chart-line-down","chart-line-up","chart-pie","chart-pie-slice","chart-polar","chart-scatter","chat-centered","chat-centered-dots","chat-centered-slash","chat-centered-text","chat-circle","chat-circle-dots","chat-circle-slash","chat-circle-text","chat-dots","chat-slash","chat-teardrop","chat-teardrop-dots","chat-teardrop-slash","chat-teardrop-text","chat-text","chats","chats-circle","chats-teardrop","check","check-circle","check-fat","check-square","check-square-offset","checkerboard","checks","cheers","cheese","chef-hat","cherries","church","cigarette","cigarette-slash","circle","circle-dashed","circle-half","circle-half-tilt","circle-notch","circles-four","circles-three","circles-three-plus","circuitry","city","clipboard","clipboard-text","clock","clock-afternoon","clock-clockwise","clock-countdown","clock-counter-clockwise","clock-user","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-check","cloud-fog","cloud-lightning","cloud-moon","cloud-rain","cloud-slash","cloud-snow","cloud-sun","cloud-warning","cloud-x","clover","club","coat-hanger","coda-logo","code-block","code-simple","codepen-logo","codesandbox-logo","coffee","coffee-bean","coin","coin-vertical","coins","columns","columns-plus-left","columns-plus-right","command","compass-rose","compass-tool","computer-tower","confetti","contactless-payment","control","cookie","cooking-pot","copy-simple","copyleft","copyright","corners-in","corners-out","couch","court-basketball","cow","cowboy-hat","cpu","crane","crane-tower","credit-card","cricket","crop","crosshair","crosshair-simple","crown","crown-cross","crown-simple","cube","cube-focus","cube-transparent","currency-btc","currency-circle-dollar","currency-cny","currency-dollar","currency-dollar-simple","currency-eth","currency-eur","currency-gbp","currency-inr","currency-jpy","currency-krw","currency-kzt","currency-ngn","currency-rub","cursor","cursor-click","cursor-text","cylinder","database","desk","desktop-tower","detective","dev-to-logo","device-mobile","device-mobile-camera","device-mobile-slash","device-mobile-speaker","device-rotate","device-tablet","device-tablet-camera","device-tablet-speaker","devices","diamond","diamonds-four","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","disc","disco-ball","discord-logo","divide","dna","dog","door","door-open","dot","dot-outline","dots-nine","dots-six","dots-six-vertical","dots-three","dots-three-circle","dots-three-circle-vertical","dots-three-outline","dots-three-outline-vertical","dots-three-vertical","download-simple","dress","dresser","dribbble-logo","drone","drop","drop-half","drop-half-bottom","drop-simple","drop-slash","dropbox-logo","ear","ear-slash","egg","egg-crack","eject","eject-simple","elevator","empty","engine","envelope","envelope-open","envelope-simple","envelope-simple-open","equalizer","equals","eraser","escalator-down","escalator-up","exam","exclamation-mark","exclude","exclude-square","export","eye-closed","eye-slash","eyedropper","eyedropper-sample","eyeglasses","eyes","face-mask","facebook-logo","factory","faders","faders-horizontal","fallout-shelter","fan","farm","fast-forward","fast-forward-circle","feather","fediverse-logo","figma-logo","file","file-archive","file-arrow-down","file-arrow-up","file-audio","file-c","file-c-sharp","file-cloud","file-code","file-cpp","file-css","file-csv","file-dashed","file-doc","file-html","file-image","file-ini","file-jpg","file-js","file-jsx","file-lock","file-magnifying-glass","file-md","file-minus","file-pdf","file-plus","file-png","file-ppt","file-py","file-rs","file-sql","file-svg","file-text","file-ts","file-tsx","file-txt","file-video","file-vue","file-x","file-xls","file-zip","files","film-reel","film-script","film-slate","film-strip","fingerprint-simple","finn-the-human","fire","fire-extinguisher","fire-simple","fire-truck","first-aid","first-aid-kit","fish","fish-simple","flag-banner","flag-banner-fold","flag-checkered","flag-pennant","flame","flashlight","flask","flip-horizontal","flip-vertical","floppy-disk","floppy-disk-back","flow-arrow","flower","flower-lotus","flower-tulip","flying-saucer","folder-dashed","folder-lock","folder-minus","folder-open","folder-plus","folder-simple","folder-simple-dashed","folder-simple-lock","folder-simple-minus","folder-simple-plus","folder-simple-star","folder-simple-user","folder-star","folder-user","folders","football","football-helmet","footprints","fork-knife","four-k","frame-corners","framer-logo","function","funnel","funnel-simple","funnel-simple-x","funnel-x","game-controller","garage","gas-can","gas-pump","gauge","gavel","gear","gear-fine","gear-six","gender-female","gender-intersex","gender-male","gender-neuter","gender-nonbinary","gender-transgender","ghost","gif","git-branch","git-commit","git-diff","git-fork","git-merge","git-pull-request","github-logo","gitlab-logo","gitlab-logo-simple","globe-hemisphere-east","globe-hemisphere-west","globe-simple","globe-simple-x","globe-stand","globe-x","goggles","golf","goodreads-logo","google-cardboard-logo","google-chrome-logo","google-drive-logo","google-logo","google-photos-logo","google-play-logo","google-podcasts-logo","gps","gps-fix","gps-slash","gradient","graduation-cap","grains","grains-slash","graph","graphics-card","greater-than","greater-than-or-equal","grid-four","grid-nine","guitar","hair-dryer","hamburger","hammer","hand","hand-arrow-down","hand-arrow-up","hand-coins","hand-deposit","hand-eye","hand-fist","hand-grabbing","hand-heart","hand-palm","hand-peace","hand-pointing","hand-soap","hand-swipe-left","hand-swipe-right","hand-tap","hand-waving","hand-withdraw","handbag","handbag-simple","hands-clapping","hands-praying","handshake","hard-drive","hard-drives","hard-hat","hash","hash-straight","head-circuit","headlights","headset","heart","heart-break","heart-half","heart-straight","heart-straight-break","heartbeat","hexagon","high-definition","high-heel","highlighter","highlighter-circle","hockey","hoodie","horse","hospital","hourglass","hourglass-high","hourglass-low","hourglass-medium","hourglass-simple","hourglass-simple-high","hourglass-simple-low","hourglass-simple-medium","house","house-line","house-simple","hurricane","ice-cream","identification-badge","identification-card","image-broken","image-square","images","images-square","infinity","info","instagram-logo","intersect","intersect-square","intersect-three","intersection","invoice","island","jar","jar-label","jeep","joystick","kanban","key-return","keyboard","keyhole","knife","ladder","ladder-simple","lamp","lamp-pendant","laptop","lasso","lastfm-logo","layout","leaf","lectern","lego","lego-smiley","less-than","less-than-or-equal","letter-circle-h","letter-circle-p","letter-circle-v","lifebuoy","lightbulb","lightbulb-filament","lighthouse","lightning","lightning-a","lightning-slash","line-segment","line-segments","line-vertical","link-break","link-simple","link-simple-break","link-simple-horizontal","link-simple-horizontal-break","linkedin-logo","linktree-logo","linux-logo","list-bullets","list-checks","list-dashes","list-heart","list-magnifying-glass","list-numbers","list-plus","list-star","lock-key","lock-key-open","lock-laminated","lock-laminated-open","lock-open","lock-simple","lock-simple-open","lockers","log","magic-wand","magnet","magnet-straight","magnifying-glass","magnifying-glass-minus","magnifying-glass-plus","mailbox","map-pin","map-pin-area","map-pin-line","map-pin-plus","map-pin-simple","map-pin-simple-area","map-pin-simple-line","map-trifold","markdown-logo","marker-circle","martini","mask-happy","mask-sad","mastodon-logo","math-operations","matrix-logo","medal","medal-military","medium-logo","megaphone","megaphone-simple","member-of","memory","messenger-logo","meta-logo","meteor","metronome","microphone-slash","microphone-stage","microscope","microsoft-excel-logo","microsoft-outlook-logo","microsoft-powerpoint-logo","microsoft-teams-logo","microsoft-word-logo","minus-circle","minus-square","money","money-wavy","monitor","monitor-arrow-up","monitor-play","moon-stars","moped","moped-front","mosque","motorcycle","mountains","mouse","mouse-left-click","mouse-middle-click","mouse-right-click","mouse-scroll","mouse-simple","music-note","music-note-simple","music-notes","music-notes-minus","music-notes-plus","music-notes-simple","navigation-arrow","needle","network-slash","network-x","newspaper","newspaper-clipping","not-equals","not-member-of","not-subset-of","not-superset-of","notches","note","note-blank","note-pencil","notebook","notepad","notification","notion-logo","nuclear-plant","number-circle-eight","number-circle-five","number-circle-four","number-circle-nine","number-circle-one","number-circle-seven","number-circle-six","number-circle-three","number-circle-two","number-circle-zero","number-eight","number-five","number-four","number-nine","number-one","number-seven","number-six","number-square-eight","number-square-five","number-square-four","number-square-nine","number-square-one","number-square-seven","number-square-six","number-square-three","number-square-two","number-square-zero","number-three","number-two","number-zero","numpad","nut","ny-times-logo","octagon","office-chair","onigiri","open-ai-logo","option","orange","orange-slice","oven","package","paint-brush","paint-brush-broad","paint-brush-household","paint-bucket","paint-roller","palette","panorama","pants","paper-plane","paper-plane-right","paper-plane-tilt","paperclip","paperclip-horizontal","parachute","paragraph","parallelogram","park","password","path","patreon-logo","pause-circle","paw-print","paypal-logo","peace","pen","pen-nib","pen-nib-straight","pencil","pencil-circle","pencil-line","pencil-ruler","pencil-simple","pencil-simple-line","pencil-simple-slash","pencil-slash","pentagon","pentagram","pepper","person","person-arms-spread","person-simple","person-simple-bike","person-simple-circle","person-simple-hike","person-simple-run","person-simple-ski","person-simple-snowboard","person-simple-swim","person-simple-tai-chi","person-simple-throw","person-simple-walk","perspective","phone-call","phone-disconnect","phone-incoming","phone-list","phone-outgoing","phone-pause","phone-plus","phone-slash","phone-transfer","phone-x","phosphor-logo","pi","piano-keys","picnic-table","picture-in-picture","piggy-bank","pill","ping-pong","pint-glass","pinterest-logo","pinwheel","pipe","pipe-wrench","pix-logo","pizza","planet","plant","play-circle","play-pause","playlist","plug","plug-charging","plugs","plugs-connected","plus-circle","plus-minus","plus-square","poker-chip","police-car","polygon","popcorn","popsicle","potted-plant","prescription","presentation","presentation-chart","prohibit","prohibit-inset","projector-screen","projector-screen-chart","pulse","push-pin","push-pin-simple","push-pin-simple-slash","push-pin-slash","puzzle-piece","qr-code","question-mark","queue","quotes","rabbit","racquet","radical","radio","radio-button","radioactive","rainbow","rainbow-cloud","ranking","read-cv-logo","receipt","receipt-x","record","rectangle","rectangle-dashed","recycle","reddit-logo","repeat-once","replit-logo","resize","rewind","rewind-circle","road-horizon","robot","rocket","rocket-launch","rows","rows-plus-bottom","rows-plus-top","rss","rss-simple","rug","ruler","sailboat","scales","scan","scan-smiley","scissors","scooter","screencast","screwdriver","scribble","scribble-loop","scroll","seal","seal-check","seal-percent","seal-question","seal-warning","seat","seatbelt","security-camera","selection","selection-all","selection-background","selection-foreground","selection-inverse","selection-plus","selection-slash","shapes","share-fat","share-network","shield-check","shield-checkered","shield-chevron","shield-plus","shield-slash","shield-star","shield-warning","shipping-container","shirt-folded","shooting-star","shopping-bag","shopping-bag-open","shopping-cart","shopping-cart-simple","shovel","shower","shrimp","shuffle-angular","shuffle-simple","sidebar","sidebar-simple","sigma","sign-in","sign-out","signature","signpost","sim-card","siren","sketch-logo","skip-back","skip-back-circle","skip-forward","skip-forward-circle","skull","skype-logo","slack-logo","sliders","sliders-horizontal","slideshow","smiley","smiley-angry","smiley-blank","smiley-meh","smiley-melting","smiley-nervous","smiley-sad","smiley-sticker","smiley-wink","smiley-x-eyes","snapchat-logo","sneaker","sneaker-move","snowflake","soccer-ball","sock","solar-panel","solar-roof","sort-ascending","sort-descending","soundcloud-logo","spade","sparkle","speaker-hifi","speaker-high","speaker-low","speaker-none","speaker-simple-high","speaker-simple-low","speaker-simple-none","speaker-simple-slash","speaker-simple-x","speaker-slash","speaker-x","speedometer","sphere","spinner","spinner-ball","spinner-gap","spiral","split-horizontal","split-vertical","spotify-logo","spray-bottle","square","square-half","square-half-bottom","square-logo","square-split-horizontal","square-split-vertical","squares-four","stack","stack-minus","stack-overflow-logo","stack-plus","stack-simple","stairs","stamp","standard-definition","star-and-crescent","star-four","star-half","star-of-david","steam-logo","steering-wheel","steps","stethoscope","sticker","stool","stop-circle","storefront","strategy","stripe-logo","student","subset-of","subset-proper-of","subtitles","subtitles-slash","subtract","subtract-square","subway","suitcase","suitcase-rolling","suitcase-simple","sun-dim","sun-horizon","sunglasses","superset-of","superset-proper-of","swap","swatches","swimming-pool","sword","synagogue","syringe","t-shirt","table","tabs","tag","tag-chevron","tag-simple","target","taxi","tea-bag","telegram-logo","television","television-simple","tennis-ball","tent","terminal","terminal-window","test-tube","text-a-underline","text-aa","text-align-center","text-align-justify","text-align-left","text-align-right","text-b","text-columns","text-h","text-h-five","text-h-four","text-h-one","text-h-six","text-h-three","text-h-two","text-indent","text-italic","text-outdent","text-strikethrough","text-subscript","text-superscript","text-t","text-t-slash","text-underline","textbox","thermometer","thermometer-cold","thermometer-hot","thermometer-simple","threads-logo","three-d","ticket","tidal-logo","tiktok-logo","tilde","timer","tip-jar","tipi","tire","toggle-left","toggle-right","toilet","toilet-paper","toolbox","tooth","tornado","tote","tote-simple","towel","tractor","trademark","trademark-registered","traffic-cone","traffic-sign","traffic-signal","train","train-regional","train-simple","tram","translate","trash","trash-simple","tray","tray-arrow-down","tray-arrow-up","treasure-chest","tree","tree-evergreen","tree-palm","tree-structure","tree-view","triangle","triangle-dashed","trolley","trolley-suitcase","trophy","truck","truck-trailer","tumblr-logo","twitch-logo","twitter-logo","umbrella","umbrella-simple","union","unite","unite-square","upload-simple","usb","user-check","user-circle","user-circle-check","user-circle-dashed","user-circle-gear","user-circle-minus","user-circle-plus","user-focus","user-gear","user-list","user-minus","user-plus","user-rectangle","user-sound","user-square","user-switch","users-four","users-three","van","vault","vector-three","vector-two","vibrate","video-camera","video-camera-slash","video-conference","vignette","vinyl-record","virtual-reality","virus","visor","voicemail","volleyball","wall","warehouse","warning-circle","warning-diamond","warning-octagon","washing-machine","watch","wave-sawtooth","wave-sine","wave-square","wave-triangle","waveform","waveform-slash","waves","webcam","webcam-slash","webhooks-logo","wechat-logo","whatsapp-logo","wheelchair","wheelchair-motion","wifi-high","wifi-low","wifi-medium","wifi-none","wifi-slash","wifi-x","windmill","windows-logo","wine","wrench","x","x-circle","x-logo","x-square","yarn","yin-yang","youtube-logo"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},wn=new Map;for(const e in vn)for(const t of vn[e])wn.set(t,e);function pi(e){return wn.get(e)}function kn(e,t="regular",n){const s=pi(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:gi}=Xs,j=({name:e,size:t,appearance:n,alt:s,class:i,titleId:a,src:o,...r})=>{const l=oi(a);let h=o;return h===void 0&&si()&&(h=kn(e,n,mn)),m("svg",{ref:c=>{h===void 0&&ii((()=>{(function(d,u,g){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",kn(u,g,mn)),d.appendChild(p)})(c,e,n)}))},width:"16",height:"16",class:gi({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...r},s!==""&&m("title",{id:l},s||e),h!==void 0?m("use",{href:h}):null)};function xn(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xn(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function mi(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xn(e))&&(s&&(s+=" "),s+=t);return s}const{getGidsSpinnerClassNames:fi}=Qs,{getElementVisibility:bi}=_s,yi=({label:e,supportingText:t,size:n,indeterminate:s,value:i,max:a,class:o,...r})=>{const{hasLabel:l,hasSupportingText:h}=bi({label:e,supportingText:t});return m("span",{class:fi({size:n},o),...r},m(mt,{size:n,indeterminate:s,value:i,max:a}),l&&m("span",{class:"gids-spinner__label"},e),h&&m("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDividerClassNames:vi}=Vs,wi=({orientation:e})=>m("hr",{class:vi({orientation:e})}),{getGidsButtonGroupClassNames:ki}=Ls,xi=({layout:e,class:t},n)=>m("span",{class:ki({layout:e},t)},n),{getGidsHeadingClassNames:Ci,getGidsHeadingSupportingTextTypographyClass:Ei}=Ks,Si=({heading:e,supportingText:t,level:n="section",children:s,supportingTextTypography:i,class:a})=>m("div",{class:Ci(a)},m("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?m("span",{class:n==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?m("span",{class:`${n==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${Ei(i)}`},t):null:t:null),s?m(xi,{layout:"wrap"},s):null),{getGidsEditButtonClassNames:Pi}=Us,_i=({disabled:e,children:t,size:n="md",editButtonType:s="add",onPressEditButton:i,class:a,...o})=>m("button",{class:Pi({size:n},a),...o,onClick:i,disabled:e},s==="custom"&&t?m("div",null,t):s==="add"?m("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},m(j,{name:"add",appearance:"filled",size:n})):s==="remove"?m("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},m(j,{appearance:"filled",name:"remove",size:n})):void 0),{getGidsListItemClassNames:Ii}=Zs,Di=({id:e,value:t,index:n,defaultSelected:s,disabled:i,selected:a,editButton:o,onPressEditButton:r,onPressListItem:l,leadingAccessory:h,leadingSupport:c,leadingParagraph:d,trailingContent:u,trailingAccessory:g,trailingSupport:p,trailingParagraph:v,divider:w,role:f="list-item-option",isPlaceholderItem:b,class:y,...C},k)=>{const x=a||s;return m("button",{type:"button",id:e,class:Ii({selected:x,disabled:i},y),role:f,"aria-selected":x?"true":"false",disabled:i,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const E=k;return E?(Array.isArray(E)?E:[E]).map((S=>typeof S=="string"||typeof S=="number"?String(S):S&&typeof S=="object"&&"text"in S?S.text??"":"")).join("").trim():""})(),tabIndex:n,onClick:E=>{const S=E.currentTarget;if(!S||E.defaultPrevented||S.disabled)return;const I=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:n,defaultSelected:s,isPlaceholderItem:b}});l?.(I)},"is-placeholder-item":b?"true":"false",...C},m("div",{class:"gids-list-item__main-container"},o==null||o==="none"||i?null:m(_i,{size:"md",editButtonType:o,onPressEditButton:r}),h!=null?m("div",{class:i?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},h):null,m("div",{class:"gids-list-item__middle-content-container"},m("div",{class:"gids-list-item__leading-content-container"},m(Te,null,k!=null?m("span",{class:i?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},k):null,m("div",{class:"gids-list-item__leading-support-content"},c!=null?typeof c=="string"?m("p",{class:i?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},c):c:null,d!=null?typeof d=="string"?m("p",{class:i?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),m("div",{class:"gids-list-item__trailing-content-container"},m(Te,null,u!=null?typeof u=="string"?m("span",{class:i?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},u):u:null,m("div",{class:"gids-list-item__trailing-support-content"},p!=null?typeof p=="string"?m("p",{class:i?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},p):p:null,v!=null?typeof v=="string"?m("p",{class:i?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},v):v:null)))),x?m("div",{class:i?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},m(j,{name:"checkmark",size:"md",appearance:"regular"})):null,x||g==null?null:m("div",{class:i?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},g)),w&&!x?m("div",{class:"gids-list-item__divider"},m(wi,{orientation:"horizontal"})):null)},{getGidsDropdownMenuGroupClassNames:Ni}=qs,Cn=({type:e="no-options",supportingText:t="No options",class:n,...s},i)=>m("div",{class:Ni({type:e},n),...s},e==="loading"?m(yi,{indeterminate:!0,size:"md"}):null,e==="no-options"?m("span",null,t):null,e==="default"&&i!=null?i:null),{getGidsDropdownMenuClassNames:Ai}=Bs,En=({sectionLabel:e,class:t,...n},s)=>m("div",{class:Ai(t),...n},e!=null&&e!==""?m(Si,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?m("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsDropdownItemClassNames:Mi}=Gs,Sn=({id:e,title:t,class:n,selected:s=!1,disabled:i=!1,role:a="list-item-option",value:o,name:r,onPressDropdownItem:l,index:h,defaultSelected:c,leadingAccessory:d,divider:u,isPlaceholderItem:g,...p})=>{const v=Mi(typeof n=="string"?n:void 0);return m(Di,{id:e,index:h??0,defaultSelected:c,selected:s,disabled:i,role:a,value:o,name:r,leadingAccessory:d,class:v,onPressListItem:w=>{if(w.defaultPrevented)return;const f=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:o,disabled:i,selectedIndex:h,defaultSelected:c,isPlaceholderItem:g}});l?.(f)},divider:u,isPlaceholderItem:g,...p},t)},{getGidsCalendarMonthListClassNames:Li,getGidsCalendarMonthListMonths:Oi}=Ys,$i=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:n,value:s,selectedIndex:i,disabled:a,id:o}=t.detail;a||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,month:n,monthInNumber:Number(s),disabled:!1,selectedIndex:i}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t?.detail;this.applySelection({id:n.id,monthInNumber:Number(n.value),month:n.title,disabled:!1,selectedIndex:n.selectedIndex})},this.monthsList=()=>Oi(),this.getSelectedItem=()=>{const t=this.selectedMonthNumber,n=this.monthsList(),s=n.findIndex((a=>a.value===t));let i;return s!=null&&s!==-1&&(i=n[s]),{foundItem:i,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:n}=this.getSelectedItem();return n===t}}connectedCallback(){this.attachItemListener()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}applySelection(e){this.clearActive(),this.onSelectionMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarMonthChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Li();return m("div",{key:"59a191fefecff9ac070690ecb243ebd70a306390",class:e},m(Cn,{key:"a90a1353aa7d094a3ca401e5932ea057d98ca3d8",type:this.type,supportingText:this.noOptionsText},m(En,{key:"0bd03ee45c2392f3bd923d93a7d8119871d22bf9",sectionLabel:"Months"},this.monthsList().map(((t,n)=>{const s=`${n+1}`,i=this.disabledIndices?.includes(n);return m(Sn,{title:t.title,value:`${t.value}`,key:`${n.toString()}`,index:n,id:s,selected:this.isItemSelected(n),onPressDropdownItem:this.handleMenuClick,disabled:i,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-month-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedMonthNumber:[2,"selected-month-number"],onSelectionMonthChange:[16]}]);function Re(){typeof customElements<"u"&&["gids-calendar-month-list"].forEach((e=>{e==="gids-calendar-month-list"&&(customElements.get(e)||customElements.define(e,$i))}))}Re();const{getGidsCalendarYearListClassNames:Ti,getGidsCalendarYearListYears:Yi,isValidFourDigitYear:Pn}=zs,Fi=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.newStartYear=new Date().getFullYear(),this.newEndYear=new Date().getFullYear()+100,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:n,value:s,selectedIndex:i,disabled:a,id:o}=t.detail;a||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,year:Number(s),disabled:!1,selectedIndex:i,startYear:this.newStartYear,endYear:this.newEndYear}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t?.detail;this.applySelection({id:n.id,year:Number(n.value),disabled:!1,selectedIndex:n.selectedIndex,startYear:this.newStartYear,endYear:this.newEndYear})},this.yearsList=()=>Yi({startYear:this.newStartYear,endYear:this.newEndYear}),this.getSelectedItem=()=>{const t=this.selectedYear,n=this.yearsList(),s=n.findIndex((a=>a.value===t));let i;return s!=null&&s!==-1&&(i=n[s]),{foundItem:i,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:n}=this.getSelectedItem();return n===t}}connectedCallback(){this.attachItemListener(),this.handleStartAndEndYear()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}handleStartAndEndYear(){const e=this.startYear,t=this.endYear;return this.newStartYear=e&&e>0&&Pn(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&Pn(t)?t:this.newStartYear+100,{newStartYear:this.newStartYear,newEndYear:this.newEndYear}}applySelection(e){this.clearActive(),this.onSelectionYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarYearChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Ti();return m("div",{key:"322150db7c7bfbc83015b66ea589e013d36c72c8",class:e},m(Cn,{key:"17a8a890eeee289869ad5455996265df4cd4efb7",type:this.type,supportingText:this.noOptionsText},m(En,{key:"3b5ec7f3d9943123137433e54febe1f756bfd145",sectionLabel:"Years"},this.yearsList().map(((t,n)=>{const s=`${n+1}`,i=this.disabledIndices?.includes(t.value);return m(Sn,{title:t.title,value:`${t.value}`,key:`${n.toString()}`,index:n,id:s,selected:this.isItemSelected(n),onPressDropdownItem:this.handleMenuClick,disabled:i,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-year-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedYear:[2,"selected-year"],startYear:[2,"start-year"],endYear:[2,"end-year"],onSelectionYearChange:[16],newStartYear:[32],newEndYear:[32]}]);function ze(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,Fi))}))}ze();const{getGidsDropdownPickerClassNames:Ri}=Hs,zi=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{if(this.isFromNestedDropdown(t))return;const{value:n,title:s,disabled:i,id:a,isPlaceholderItem:o}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:a,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:o}))},this.handleMenuClick=t=>{if(this.isFromNestedDropdown(t)||this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const i=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof i!="string"||i.length===0)return;const a=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof a!="string"||a.length===0)return;const o=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:a,value:i,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!o||o!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}isFromNestedDropdown(e){return e.composedPath().some((t=>t instanceof Element&&(t.matches("gids-dropdown")||t.matches("gids-calendar-picker"))))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Ri({expanded:e}),n=typeof this.idPicker=="string"?this.idPicker:void 0,s=n?`${n}__menu`:void 0;return m("div",{key:"5b141d4cceb88155df51f99786b63ac5be35cb51",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},m(ft,{key:"63e6097d28608ede3f7461edb4979534ccc3b3eb",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?m("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):m(j,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),m("div",{key:"49edea362d933e5325796dee950586506c9bdfeb",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},m("slot",{key:"49ac05c6253118b6f2f246783f6a79af3776d234"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function Ve(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,zi))}))}Ve();const{getGidsCalendarHeaderPanelClassNames:Vi,getCalendarMonthNameViaMonthNumber:ge}=pn,ji=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="primary",this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.panelDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.expandedMonthPicker=!1,this.expandedYearPicker=!1,this.internalPreviousDisabled=!1,this.internalNextDisabled=!1,this.suppressNextMenuClickSelection=!1,this.suppressNextActionClickSelection=!1,this.fallbackYear=new Date().getFullYear(),this.fallbackMonth=1,this.fallbackStartYear=new Date().getFullYear(),this.fallbackEndYear=new Date().getFullYear()+100,this.handleMonthPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t;this.updateActionProps({newSelectedMonthNumber:n?.monthInNumber??this.fallbackMonth,newSelectedYear:this.panelYear??this.fallbackYear}),this.applyMonthSelection({id:n.id,type:"month",month:n.month,monthNumber:Number(n.monthInNumber),year:this.panelYear,disabled:!1,panelValue:`${n.month} ${this.panelYear}`})},this.handleYearPickerMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t;this.updateActionProps({newSelectedMonthNumber:this?.panelMonthNumber??this.fallbackMonth,newSelectedYear:n?.year??this.fallbackYear}),this.applyYearSelection({id:n.id,type:"year",month:this.panelMonth,monthNumber:Number(this?.panelMonthNumber),year:n?.year,disabled:!1,panelValue:`${this.panelMonth} ${n.year}`})},this.handlePreviousActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isPreviousActionInteractive())return;const{newSelectedMonthNumber:n,newSelectedYear:s}=this.onPreviousActionChange();this.updateActionProps({newSelectedMonthNumber:n,newSelectedYear:s});const i=ge(n);this.applyActionsSelection({type:"previous",month:i,monthNumber:n,year:s,disabled:!1,panelValue:`${i} ${s}`})},this.handleNextActionClick=t=>{if(this.suppressNextActionClickSelection||!(t.target instanceof Element)||!this.isNextActionInteractive())return;const{newSelectedMonthNumber:n,newSelectedYear:s}=this.onNextActionChange();this.updateActionProps({newSelectedMonthNumber:n,newSelectedYear:s});const i=ge(n);this.applyActionsSelection({type:"next",month:i,monthNumber:n,year:s,disabled:!1,panelValue:`${i} ${s}`})}}handleSelectedMonthNumberChange(e){e!=null&&(this.panelMonthNumber=e,this.panelMonth=ge(e),this.syncPanelDisplayValue())}handleSelectedYearChange(e){e!=null&&(this.panelYear=e,this.syncPanelDisplayValue())}handleExpandedMonthPickerChange(e){e&&!this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1),e&&this.isMonthPickerInteractive()&&this.setExpandedMonthPickerState(!1)}handleExpandedYearPickerChange(e){e&&!this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1),e&&this.isYearPickerInteractive()&&this.setExpandedYearPickerState(!1)}handleMonthPickerInteractivityChange(){!this.isMonthPickerInteractive()&&this.expandedMonthPicker&&this.setExpandedMonthPickerState(!1)}handleYearPickerInteractivityChange(){!this.isYearPickerInteractive()&&this.expandedYearPicker&&this.setExpandedYearPickerState(!1)}handleAppearanceChange(e){this.appearance=e}connectedCallback(){this.panelMonthNumber=this.selectedMonthNumber??this.fallbackMonth,this.panelMonth=ge(this.selectedMonthNumber??this.fallbackMonth),this.panelYear=this.selectedYear??this.fallbackYear,this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`,this.syncPanelDisplayValue(),this.setPreviousActionInteractivity(),this.setNextActionInteractivity()}applyMonthSelection(e){this.setExpandedMonthPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelMonthChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelMonthChange",{bubbles:!0,composed:!0,detail:e}))}applyYearSelection(e){this.setExpandedYearPickerState(!1,this.coerceEvent(e?.originalEvent)),this.setPreviousActionInteractivity(),this.setNextActionInteractivity(),this.onPanelYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsPanelYearChange",{bubbles:!0,composed:!0,detail:e}))}setExpandedMonthPickerState(e,t){const n=!!e;n&&!this.isMonthPickerInteractive()||this.expandedMonthPicker!==n&&(this.expandedMonthPicker=n,n||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelMonthToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:n,expandedYearPicker:!!this.expandedYearPicker,originalEvent:t}})))}setExpandedYearPickerState(e,t){const n=!!e;n&&!this.isYearPickerInteractive()||this.expandedYearPicker!==n&&(this.expandedYearPicker=n,n||this.syncPanelDisplayValue(),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarHeaderPanelYearToggle",{bubbles:!0,composed:!0,detail:{expandedMonthPicker:!!this.expandedMonthPicker,expandedYearPicker:n,originalEvent:t}})))}syncPanelDisplayValue(){this.panelMonth&&this.panelYear&&(this.panelDisplayValue=`${this.panelMonth} ${this.panelYear}`)}applyActionsSelection(e){this.setNextActionInteractivity(),this.setPreviousActionInteractivity(),e.type==="previous"&&this.onPreviousChange?.(e),e.type==="next"&&this.onNextChange?.(e)}checkPrevYearIsAllowed(e){return e>=(this.startYear??this.fallbackStartYear)}checkNextYearIsAllowed(e){return e<=(this.endYear??this.fallbackEndYear)}isPreviousActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===1?this.checkPrevYearIsAllowed((this.panelYear??this.fallbackYear)-1)&&!this.previousDisabled:!this.previousDisabled}isNextActionInteractive(){return(this.panelMonthNumber??this.fallbackMonth)===12?this.checkNextYearIsAllowed((this.panelYear??this.fallbackYear)+1)&&!this.nextDisabled:!this.nextDisabled}onPreviousActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isPreviousActionInteractive()?{newSelectedMonthNumber:e===1?12:e-1,newSelectedYear:e===1?t-1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}onNextActionChange(){const e=this.panelMonthNumber??this.fallbackMonth,t=this.panelYear??this.fallbackYear;return this.isNextActionInteractive()?{newSelectedMonthNumber:e===12?1:e+1,newSelectedYear:e===12?t+1:t}:{newSelectedMonthNumber:e,newSelectedYear:t}}isMonthPickerInteractive(){return!this.monthPickerDisabled}isYearPickerInteractive(){return!this.yearPickerDisabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}updatePanelMonth(e){e?(this.selectedMonthNumber=e,this.panelMonth=ge(e),this.panelMonthNumber=e):(this.selectedMonthNumber=this.fallbackMonth,this.panelMonth=ge(this.fallbackMonth),this.panelMonthNumber=this.fallbackMonth)}updatePanelYear(e){e?(this.selectedYear=e,this.panelYear=e):this.panelYear=this.fallbackYear}setPreviousActionInteractivity(){this.internalPreviousDisabled=!this.isPreviousActionInteractive()}setNextActionInteractivity(){this.internalNextDisabled=!this.isNextActionInteractive()}updateActionProps({newSelectedYear:e,newSelectedMonthNumber:t}){this.updatePanelYear(e),this.updatePanelMonth(t),this.syncPanelDisplayValue()}getPanelValue(){return this.panelDisplayValue}render(){const e=Vi(),t=this.expandedMonthPicker&&this.isMonthPickerInteractive()&&!this.expandedYearPicker,n=this.expandedYearPicker&&this.isYearPickerInteractive()&&!this.expandedMonthPicker,s=this.internalPreviousDisabled||this.previousDisabled,i=this.internalNextDisabled||this.nextDisabled;return m("div",{key:"6f3a9f33504c28ebc0135aa7176267172378e184",class:e},m(ft,{key:"e12e0ab1a440338aec9a600eeb2e63678da0c0e5",leadingIcon:m(j,{name:"arrow-left",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handlePreviousActionClick,disabled:s}),m("div",{key:"915a9603380adfcff5586038bd9d902b354d298b",class:"gids-calendar-header-panel__main-container"},m("gids-dropdown-picker",{key:"b6cdfbf2e722b7749ac851189e88501ae5011ec6",expanded:t,appearance:this.appearance,size:"sm",value:`${this.panelMonthNumber}`,disabled:this.monthPickerDisabled},m("gids-calendar-month-list",{key:"328169b55bca1c6b61ce10dd8db5fe7bb758879c",type:"default",selectedMonthNumber:this.panelMonthNumber,onSelectionMonthChange:this.handleMonthPickerMenuClick})),m("span",{key:"b77e36f39d1599ef39c7dab120d692c0e3ec9b83",class:mi("gids-calendar-header-panel__panel-value",{"gids-calendar-header-panel__panel-value-disabled":this.panelDisabled})},this.getPanelValue()),m("gids-dropdown-picker",{key:"2f48db7f8fd971693a03886cc560abe3abcd65c3",expanded:n,appearance:this.appearance,size:"sm",value:`${this.panelYear}`,disabled:this.yearPickerDisabled},m("gids-calendar-year-list",{key:"c1af31e67f962bf71f81bada6fbb673f8a004c12",type:"default",selectedYear:this.panelYear,startYear:this.startYear??this.fallbackStartYear,endYear:this.endYear,onSelectionYearChange:this.handleYearPickerMenuClick}))),m(ft,{key:"de0e78ea6bfdb3ee1fe533c4215bb7df642ca824",leadingIcon:m(j,{name:"arrow-right",size:"md",appearance:"regular"}),appearance:this.appearance,size:"sm",width:"intrinsic",onClick:this.handleNextActionClick,disabled:i}))}get hostElement(){return this}static get watchers(){return{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}}static get style(){return".gids-calendar-header-panel{display:flex;justify-content:center;align-items:center;align-self:stretch;gap:var(--gids-gap-150);width:100%}.gids-calendar-header-panel__main-container{display:flex;flex:1 0 0;align-items:center;justify-content:center;align-self:stretch;gap:var(--gids-gap-100)}.gids-calendar-header-panel__panel-value{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);text-align:center}.gids-calendar-header-panel__panel-value-disabled{color:var(--gids-color-text-disabled)}"}},[0,"gids-calendar-header-panel",{selectedMonthNumber:[1538,"selected-month-number"],selectedYear:[1538,"selected-year"],startYear:[1538,"start-year"],endYear:[1538,"end-year"],appearance:[1],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],panelDisabled:[4,"panel-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],expandedMonthPicker:[1540,"expanded-month-picker"],expandedYearPicker:[1540,"expanded-year-picker"],onPreviousChange:[16],onNextChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],panelMonth:[32],panelMonthNumber:[32],panelYear:[32],panelDisplayValue:[32],internalPreviousDisabled:[32],internalNextDisabled:[32]},void 0,{selectedMonthNumber:[{handleSelectedMonthNumberChange:0}],selectedYear:[{handleSelectedYearChange:0}],expandedMonthPicker:[{handleExpandedMonthPickerChange:0}],expandedYearPicker:[{handleExpandedYearPickerChange:0}],monthPickerDisabled:[{handleMonthPickerInteractivityChange:0}],yearPickerDisabled:[{handleYearPickerInteractivityChange:0}],appearance:[{handleAppearanceChange:0}]}]);function bt(){typeof customElements<"u"&&["gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dropdown-picker"].forEach((e=>{switch(e){case"gids-calendar-header-panel":customElements.get(e)||customElements.define(e,ji);break;case"gids-calendar-month-list":customElements.get(e)||Re();break;case"gids-calendar-year-list":customElements.get(e)||ze();break;case"gids-dropdown-picker":customElements.get(e)||Ve()}}))}bt();const me=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let _n=!1;me&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(me):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let yt=null;const vt=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{In()})):void 0,In=()=>{if(me===void 0)return!1;const e=(()=>{if(me===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const s=document.styleSheets.item(n);if(s)try{let i=-1,a=0;for(let o=0;o<s.cssRules.length;o++){const r=s.cssRules.item(o);if(r?.cssText.startsWith("gids-global-styles-start"))i=o;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){a=o-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:a,rules:t,styleSheet:s}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return vt!==void 0&&t!==yt&&(yt&&vt.disconnect(),t instanceof Element&&vt.observe(t,{childList:!0,characterData:!0,subtree:!0}),yt=t),me.replaceSync((n=>n.rules.map((s=>s.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:s,originalRulesCount:i,styleSheet:a}=n;for(let o=0;o<i;o++)a.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Dn=()=>(_n||(_n=In()),me),Gi=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Dn();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return m(j,{key:"c9001181f20d03baa6262bbb947afea2059862e0",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function je(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Gi))}))}je();const{getGidsDotClassNames:wt}=js,qi=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=wt({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Dn();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=wt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=wt({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return m("gids-icon",{key:"2b4e03d0c47efcf545a8a8c68fcdf7dc2e3a8025",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function kt(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,qi);break;case"gids-icon":customElements.get(e)||je()}}))}kt();const{getGidsCalendarCellClassNames:Bi}=$s,Nn=({label:e,dot:t,disabled:n,selected:s,today:i,onPressCalendarCell:a,class:o,role:r="gridcell",cellType:l="effective",...h})=>{const c=!n&&l==="effective";return m("button",{class:Bi({disabled:n,selected:s,today:i,cellType:l,dot:t},o),type:"button",role:r,"aria-selected":s?"true":"false",disabled:n,onClick:d=>{if(d.defaultPrevented||n||!c)return;const u=new CustomEvent("onPressCalendarCell",{bubbles:!0,composed:!0,detail:{cellValue:e,selected:s,disabled:n,dot:t,today:i}});a&&a(u)},...h},e?m("span",null,e):null,t?m("gids-dot",{appearance:(()=>{let d="subtle";return s&&!n&&(d="static-inverse"),d})(),disabled:n,size:"xs"}):null)},{getGidsCalendarDayCellClassNames:Hi}=Ts,Wi=({id:e,label:t,class:n,...s})=>m(Nn,{...s,id:e,label:t,name:t,dot:!1,disabled:!1,selected:!1,today:!1,cellType:"non-effective",class:Hi(n)}),{getGidsCalendarClassNames:Ui,generateCalendarDays:Ki,generateCalendarWeekdays:Xi}=Rs,{getCalendarMonthNameViaMonthNumber:Zi}=pn,Ji=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.width="intrinsic",this.panelActionsAppearance="primary",this.dotVisibleDates=[],this.monthPickerDisabled=!1,this.yearPickerDisabled=!1,this.previousDisabled=!1,this.nextDisabled=!1,this.panelDisabled=!1,this.currentMonth=new Date().getMonth()+1,this.currentYear=new Date().getFullYear(),this.handleCHPOnPreviousActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPreviousChange&&this.onPreviousChange(t))},this.handleCHPOnNextActionEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onNextChange&&this.onNextChange(t))},this.handleCHPOnPanelMonthChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelMonthChange&&this.onPanelMonthChange(t))},this.handleCHPOnPanelYearChangeEvent=t=>{t&&(this.setLocalStates({monthNumber:t.monthNumber,year:t.year}),this.onPanelYearChange&&this.onPanelYearChange(t))},this.setLocalStates=t=>{const{monthNumber:n,year:s}=t;n&&(this.currentMonth=Number(n)),s&&(this.currentYear=Number(s))}}handleActiveMonthPropChange(e){e!=null&&(this.currentMonth=Number(e))}handleActiveYearPropChange(e){e!=null&&(this.currentYear=Number(e))}connectedCallback(){}componentWillLoad(){this.activeMonthNumber!=null&&(this.currentMonth=Number(this.activeMonthNumber)),this.activeYear!=null&&(this.currentYear=Number(this.activeYear))}handleDateCellClick({event:e,dateStr:t,isCurrentMonth:n}){if(e?.detail?.disabled)return;const i=new Date().toISOString().split("T")[0],a=Zi(this.currentMonth);this.onSelectionCalendarCell&&this.onSelectionCalendarCell({currentActivePanelState:{monthNumber:this.currentMonth,year:this.currentYear,month:a,panelValue:`${a} ${this.currentYear}`},date:t,isCurrentMonth:n,selected:!0,today:i===t,dotVisibleDates:this.dotVisibleDates??[]})}render(){const e=Ki({currentYear:this.currentYear,currentMonth:this.currentMonth}),t=Xi(),n=Ui({width:this.width});return m("div",{key:"47f81d5faa197cb17936fe154c20dab85f9e1a95",class:n},m("gids-calendar-header-panel",{key:"248aae36e0b75a49fd24ef5f7dc9e5b482384160",appearance:this.panelActionsAppearance,startYear:this.startYear,endYear:this.endYear,monthPickerDisabled:this.monthPickerDisabled,yearPickerDisabled:this.yearPickerDisabled,previousDisabled:this.previousDisabled,nextDisabled:this.nextDisabled,panelDisabled:this.panelDisabled,selectedMonthNumber:this.currentMonth,selectedYear:this.currentYear,onPanelMonthChange:this.handleCHPOnPanelMonthChangeEvent,onPanelYearChange:this.handleCHPOnPanelYearChangeEvent,onNextChange:this.handleCHPOnNextActionEvent,onPreviousChange:this.handleCHPOnPreviousActionEvent}),m("div",{key:"35899870256ed036aa01b7df0b9c56bb2bac076c",class:"gids-calendar__weekdays-grid"},t.map((s=>m(Wi,{label:s})))),m("div",{key:"549766df8627fd5bc258df56a9403dbde298b851",class:"gids-calendar__days-grid"},e.map((s=>{const i=this.selectedDate===s.dateString,a=this.dotVisibleDates?.includes(s.dateString);return m(Nn,{label:String(s.day),today:s.isToday,selected:i,dot:a,cellType:"effective",disabled:!s.isCurrentMonth,onPressCalendarCell:o=>this.handleDateCellClick({event:o,dateStr:s.dateString,isCurrentMonth:s.isCurrentMonth})})}))))}get hostElement(){return this}static get watchers(){return{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}}static get style(){return".gids-calendar{display:flex;flex-direction:column;background-color:transparent;box-sizing:border-box;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-300);gap:var(--gids-gap-200)}.gids-calendar--width-fixed{width:100%;max-width:var(--gids-width-xs)}.gids-calendar--width-intrinsic{width:100%;max-width:100%}.gids-calendar--width-intrinsic .gids-calendar-cell{--cell-width:100%;--cell-aspect-ratio:1 / 1}.gids-calendar__weekdays-grid{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center;align-items:center;width:100%}.gids-calendar__days-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:var(--gids-gap-050);justify-items:center;align-items:center;width:100%}"}},[0,"gids-calendar",{width:[1],panelActionsAppearance:[1,"panel-actions-appearance"],selectedDate:[1,"selected-date"],dotVisibleDates:[16],startYear:[2,"start-year"],endYear:[2,"end-year"],monthPickerDisabled:[4,"month-picker-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],previousDisabled:[4,"previous-disabled"],nextDisabled:[4,"next-disabled"],panelDisabled:[4,"panel-disabled"],activeMonthNumber:[2,"active-month-number"],activeYear:[2,"active-year"],onNextChange:[16],onPreviousChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],onSelectionCalendarCell:[16],currentMonth:[32],currentYear:[32]},void 0,{activeMonthNumber:[{handleActiveMonthPropChange:0}],activeYear:[{handleActiveYearPropChange:0}]}]);function An(){typeof customElements<"u"&&["gids-calendar","gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dot","gids-dropdown-picker","gids-icon"].forEach((e=>{switch(e){case"gids-calendar":customElements.get(e)||customElements.define(e,Ji);break;case"gids-calendar-header-panel":customElements.get(e)||bt();break;case"gids-calendar-month-list":customElements.get(e)||Re();break;case"gids-calendar-year-list":customElements.get(e)||ze();break;case"gids-dot":customElements.get(e)||kt();break;case"gids-dropdown-picker":customElements.get(e)||Ve();break;case"gids-icon":customElements.get(e)||je()}}))}An();const Q=Math.min,L=Math.max,Ge=Math.round,qe=Math.floor,G=e=>({x:e,y:e}),Qi={left:"right",right:"left",bottom:"top",top:"bottom"};function xt(e,t,n){return L(e,Q(t,n))}function fe(e,t){return typeof e=="function"?e(t):e}function ee(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Ct(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Et(e){return Mn(U(e))}function ea(e,t,n){n===void 0&&(n=!1);const s=be(e),i=Et(e),a=Ct(i);let o=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Be(o)),[o,Be(o)]}function ta(e){const t=Be(e);return[St(e),t,St(t)]}function St(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ln=["left","right"],On=["right","left"],na=["top","bottom"],sa=["bottom","top"];function ia(e,t,n){switch(e){case"top":case"bottom":return n?t?On:Ln:t?Ln:On;case"left":case"right":return t?na:sa;default:return[]}}function aa(e,t,n,s){const i=be(e);let a=ia(ee(e),n==="start",s);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(St)))),a}function Be(e){const t=ee(e);return Qi[t]+e.slice(t.length)}function oa(e){return{top:0,right:0,bottom:0,left:0,...e}}function $n(e){return typeof e!="number"?oa(e):{top:e,right:e,bottom:e,left:e}}function He(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function Tn(e,t,n){let{reference:s,floating:i}=e;const a=U(t),o=Et(t),r=Ct(o),l=ee(t),h=a==="y",c=s.x+s.width/2-i.width/2,d=s.y+s.height/2-i.height/2,u=s[r]/2-i[r]/2;let g;switch(l){case"top":g={x:c,y:s.y-i.height};break;case"bottom":g={x:c,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:d};break;case"left":g={x:s.x-i.width,y:d};break;default:g={x:s.x,y:s.y}}switch(be(t)){case"start":g[o]-=u*(n&&h?-1:1);break;case"end":g[o]+=u*(n&&h?-1:1);break}return g}async function ra(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:a,rects:o,elements:r,strategy:l}=e,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:u=!1,padding:g=0}=fe(t,e),p=$n(g),w=r[u?d==="floating"?"reference":"floating":d],f=He(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(r.floating)),boundary:h,rootBoundary:c,strategy:l})),b=d==="floating"?{x:s,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(r.floating)),C=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},k=He(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:l}):b);return{top:(f.top-k.top+p.top)/C.y,bottom:(k.bottom-f.bottom+p.bottom)/C.y,left:(f.left-k.left+p.left)/C.x,right:(k.right-f.right+p.right)/C.x}}const la=50,ca=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,r=o.detectOverflow?o:{...o,detectOverflow:ra},l=await(o.isRTL==null?void 0:o.isRTL(t));let h=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Tn(h,s,l),u=s,g=0;const p={};for(let v=0;v<a.length;v++){const w=a[v];if(!w)continue;const{name:f,fn:b}=w,{x:y,y:C,data:k,reset:x}=await b({x:c,y:d,initialPlacement:s,placement:u,strategy:i,middlewareData:p,rects:h,platform:r,elements:{reference:e,floating:t}});c=y??c,d=C??d,p[f]={...p[f],...k},x&&g<la&&(g++,typeof x=="object"&&(x.placement&&(u=x.placement),x.rects&&(h=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=Tn(h,u,l)),v=-1)}return{x:c,y:d,placement:u,strategy:i,middlewareData:p}},da=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:a,platform:o,elements:r,middlewareData:l}=t,{element:h,padding:c=0}=fe(e,t)||{};if(h==null)return{};const d=$n(c),u={x:n,y:s},g=Et(i),p=Ct(g),v=await o.getDimensions(h),w=g==="y",f=w?"top":"left",b=w?"bottom":"right",y=w?"clientHeight":"clientWidth",C=a.reference[p]+a.reference[g]-u[g]-a.floating[p],k=u[g]-a.reference[g],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let E=x?x[y]:0;(!E||!await(o.isElement==null?void 0:o.isElement(x)))&&(E=r.floating[y]||a.floating[p]);const S=C/2-k/2,I=E/2-v[p]/2-1,N=Q(d[f],I),ne=Q(d[b],I),B=N,se=E-v[p]-ne,A=E/2-v[p]/2+S,he=xt(B,A,se),Z=!l.arrow&&be(i)!=null&&A!==he&&a.reference[p]/2-(A<B?N:ne)-v[p]/2<0,z=Z?A<B?A-B:A-se:0;return{[g]:u[g]+z,data:{[g]:he,centerOffset:A-he-z,...Z&&{alignmentOffset:z}},reset:Z}}}),ha=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:a,rects:o,initialPlacement:r,platform:l,elements:h}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...w}=fe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const f=ee(i),b=U(r),y=ee(r)===r,C=await(l.isRTL==null?void 0:l.isRTL(h.floating)),k=u||(y||!v?[Be(r)]:ta(r)),x=p!=="none";!u&&x&&k.push(...aa(r,v,p,C));const E=[r,...k],S=await l.detectOverflow(t,w),I=[];let N=((s=a.flip)==null?void 0:s.overflows)||[];if(c&&I.push(S[f]),d){const A=ea(i,o,C);I.push(S[A[0]],S[A[1]])}if(N=[...N,{placement:i,overflows:I}],!I.every(A=>A<=0)){var ne,B;const A=(((ne=a.flip)==null?void 0:ne.index)||0)+1,he=E[A];if(he&&(!(d==="alignment"?b!==U(he):!1)||N.every(V=>U(V.placement)===b?V.overflows[0]>0:!0)))return{data:{index:A,overflows:N},reset:{placement:he}};let Z=(B=N.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:B.placement;if(!Z)switch(g){case"bestFit":{var se;const z=(se=N.filter(V=>{if(x){const ie=U(V.placement);return ie===b||ie==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ie=>ie>0).reduce((ie,eo)=>ie+eo,0)]).sort((V,ie)=>V[1]-ie[1])[0])==null?void 0:se[0];z&&(Z=z);break}case"initialPlacement":Z=r;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}},ua=new Set(["left","top"]);async function pa(e,t){const{placement:n,platform:s,elements:i}=e,a=await(s.isRTL==null?void 0:s.isRTL(i.floating)),o=ee(n),r=be(n),l=U(n)==="y",h=ua.has(o)?-1:1,c=a&&l?-1:1,d=fe(t,e);let{mainAxis:u,crossAxis:g,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return r&&typeof p=="number"&&(g=r==="end"?p*-1:p),l?{x:g*c,y:u*h}:{x:u*h,y:g*c}}const ga=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:a,placement:o,middlewareData:r}=t,l=await pa(t,e);return o===((n=r.offset)==null?void 0:n.placement)&&(s=r.arrow)!=null&&s.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},ma=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:r=!1,limiter:l={fn:f=>{let{x:b,y}=f;return{x:b,y}}},...h}=fe(e,t),c={x:n,y:s},d=await a.detectOverflow(t,h),u=U(ee(i)),g=Mn(u);let p=c[g],v=c[u];if(o){const f=g==="y"?"top":"left",b=g==="y"?"bottom":"right",y=p+d[f],C=p-d[b];p=xt(y,p,C)}if(r){const f=u==="y"?"top":"left",b=u==="y"?"bottom":"right",y=v+d[f],C=v-d[b];v=xt(y,v,C)}const w=l.fn({...t,[g]:p,[u]:v});return{...w,data:{x:w.x-n,y:w.y-s,enabled:{[g]:o,[u]:r}}}}}},fa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:a,platform:o,elements:r}=t,{apply:l=()=>{},...h}=fe(e,t),c=await o.detectOverflow(t,h),d=ee(i),u=be(i),g=U(i)==="y",{width:p,height:v}=a.floating;let w,f;d==="top"||d==="bottom"?(w=d,f=u===(await(o.isRTL==null?void 0:o.isRTL(r.floating))?"start":"end")?"left":"right"):(f=d,w=u==="end"?"top":"bottom");const b=v-c.top-c.bottom,y=p-c.left-c.right,C=Q(v-c[w],b),k=Q(p-c[f],y),x=!t.middlewareData.shift;let E=C,S=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=y),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(E=b),x&&!u){const N=L(c.left,0),ne=L(c.right,0),B=L(c.top,0),se=L(c.bottom,0);g?S=p-2*(N!==0||ne!==0?N+ne:L(c.left,c.right)):E=v-2*(B!==0||se!==0?B+se:L(c.top,c.bottom))}await l({...t,availableWidth:S,availableHeight:E});const I=await o.getDimensions(r.floating);return p!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}};function We(){return typeof window<"u"}function ye(e){return Yn(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(Yn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yn(e){return We()?e instanceof Node||e instanceof O(e).Node:!1}function F(e){return We()?e instanceof Element||e instanceof O(e).Element:!1}function K(e){return We()?e instanceof HTMLElement||e instanceof O(e).HTMLElement:!1}function Fn(e){return!We()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O(e).ShadowRoot}function Pe(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&i!=="inline"&&i!=="contents"}function ba(e){return/^(table|td|th)$/.test(ye(e))}function Ue(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ya=/transform|translate|scale|rotate|perspective|filter/,va=/paint|layout|strict|content/,le=e=>!!e&&e!=="none";let Pt;function _t(e){const t=F(e)?R(e):e;return le(t.transform)||le(t.translate)||le(t.scale)||le(t.rotate)||le(t.perspective)||!It()&&(le(t.backdropFilter)||le(t.filter))||ya.test(t.willChange||"")||va.test(t.contain||"")}function wa(e){let t=te(e);for(;K(t)&&!ve(t);){if(_t(t))return t;if(Ue(t))return null;t=te(t)}return null}function It(){return Pt==null&&(Pt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pt}function ve(e){return/^(html|body|#document)$/.test(ye(e))}function R(e){return O(e).getComputedStyle(e)}function Ke(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(ye(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fn(e)&&e.host||q(e);return Fn(t)?t.host:t}function Rn(e){const t=te(e);return ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:K(t)&&Pe(t)?t:Rn(t)}function _e(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Rn(e),a=i===((s=e.ownerDocument)==null?void 0:s.body),o=O(i);if(a){const r=Dt(o);return t.concat(o,o.visualViewport||[],Pe(i)?i:[],r&&n?_e(r):[])}else return t.concat(i,_e(i,[],n))}function Dt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zn(e){const t=R(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:s,r=Ge(n)!==a||Ge(s)!==o;return r&&(n=a,s=o),{width:n,height:s,$:r}}function Nt(e){return F(e)?e:e.contextElement}function we(e){const t=Nt(e);if(!K(t))return G(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:a}=zn(t);let o=(a?Ge(n.width):n.width)/s,r=(a?Ge(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!r||!Number.isFinite(r))&&(r=1),{x:o,y:r}}const ka=G(0);function Vn(e){const t=O(e);return!It()||!t.visualViewport?ka:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xa(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O(e)?!1:t}function ce(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Nt(e);let o=G(1);t&&(s?F(s)&&(o=we(s)):o=we(e));const r=xa(a,n,s)?Vn(a):G(0);let l=(i.left+r.x)/o.x,h=(i.top+r.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const u=O(a),g=s&&F(s)?O(s):s;let p=u,v=Dt(p);for(;v&&s&&g!==p;){const w=we(v),f=v.getBoundingClientRect(),b=R(v),y=f.left+(v.clientLeft+parseFloat(b.paddingLeft))*w.x,C=f.top+(v.clientTop+parseFloat(b.paddingTop))*w.y;l*=w.x,h*=w.y,c*=w.x,d*=w.y,l+=y,h+=C,p=O(v),v=Dt(p)}}return He({width:c,height:d,x:l,y:h})}function Xe(e,t){const n=Ke(e).scrollLeft;return t?t.left+n:ce(q(e)).left+n}function jn(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Xe(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function Ca(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const a=i==="fixed",o=q(s),r=t?Ue(t.floating):!1;if(s===o||r&&a)return n;let l={scrollLeft:0,scrollTop:0},h=G(1);const c=G(0),d=K(s);if((d||!d&&!a)&&((ye(s)!=="body"||Pe(o))&&(l=Ke(s)),d)){const g=ce(s);h=we(s),c.x=g.x+s.clientLeft,c.y=g.y+s.clientTop}const u=o&&!d&&!a?jn(o,l):G(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-l.scrollLeft*h.x+c.x+u.x,y:n.y*h.y-l.scrollTop*h.y+c.y+u.y}}function Ea(e){return Array.from(e.getClientRects())}function Sa(e){const t=q(e),n=Ke(e),s=e.ownerDocument.body,i=L(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),a=L(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Xe(e);const r=-n.scrollTop;return R(s).direction==="rtl"&&(o+=L(t.clientWidth,s.clientWidth)-i),{width:i,height:a,x:o,y:r}}const Gn=25;function Pa(e,t){const n=O(e),s=q(e),i=n.visualViewport;let a=s.clientWidth,o=s.clientHeight,r=0,l=0;if(i){a=i.width,o=i.height;const c=It();(!c||c&&t==="fixed")&&(r=i.offsetLeft,l=i.offsetTop)}const h=Xe(s);if(h<=0){const c=s.ownerDocument,d=c.body,u=getComputedStyle(d),g=c.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,p=Math.abs(s.clientWidth-d.clientWidth-g);p<=Gn&&(a-=p)}else h<=Gn&&(a+=h);return{width:a,height:o,x:r,y:l}}function _a(e,t){const n=ce(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,a=K(e)?we(e):G(1),o=e.clientWidth*a.x,r=e.clientHeight*a.y,l=i*a.x,h=s*a.y;return{width:o,height:r,x:l,y:h}}function qn(e,t,n){let s;if(t==="viewport")s=Pa(e,n);else if(t==="document")s=Sa(q(e));else if(F(t))s=_a(t,n);else{const i=Vn(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return He(s)}function Bn(e,t){const n=te(e);return n===t||!F(n)||ve(n)?!1:R(n).position==="fixed"||Bn(n,t)}function Ia(e,t){const n=t.get(e);if(n)return n;let s=_e(e,[],!1).filter(r=>F(r)&&ye(r)!=="body"),i=null;const a=R(e).position==="fixed";let o=a?te(e):e;for(;F(o)&&!ve(o);){const r=R(o),l=_t(o);!l&&r.position==="fixed"&&(i=null),(a?!l&&!i:!l&&r.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Pe(o)&&!l&&Bn(e,o))?s=s.filter(c=>c!==o):i=r,o=te(o)}return t.set(e,s),s}function Da(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const o=[...n==="clippingAncestors"?Ue(t)?[]:Ia(t,this._c):[].concat(n),s],r=qn(t,o[0],i);let l=r.top,h=r.right,c=r.bottom,d=r.left;for(let u=1;u<o.length;u++){const g=qn(t,o[u],i);l=L(g.top,l),h=Q(g.right,h),c=Q(g.bottom,c),d=L(g.left,d)}return{width:h-d,height:c-l,x:d,y:l}}function Na(e){const{width:t,height:n}=zn(e);return{width:t,height:n}}function Aa(e,t,n){const s=K(t),i=q(t),a=n==="fixed",o=ce(e,!0,a,t);let r={scrollLeft:0,scrollTop:0};const l=G(0);function h(){l.x=Xe(i)}if(s||!s&&!a)if((ye(t)!=="body"||Pe(i))&&(r=Ke(t)),s){const g=ce(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&h();a&&!s&&i&&h();const c=i&&!s&&!a?jn(i,r):G(0),d=o.left+r.scrollLeft-l.x-c.x,u=o.top+r.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function At(e){return R(e).position==="static"}function Hn(e,t){if(!K(e)||R(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function Wn(e,t){const n=O(e);if(Ue(e))return n;if(!K(e)){let i=te(e);for(;i&&!ve(i);){if(F(i)&&!At(i))return i;i=te(i)}return n}let s=Hn(e,t);for(;s&&ba(s)&&At(s);)s=Hn(s,t);return s&&ve(s)&&At(s)&&!_t(s)?n:s||wa(e)||n}const Ma=async function(e){const t=this.getOffsetParent||Wn,n=this.getDimensions,s=await n(e.floating);return{reference:Aa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function La(e){return R(e).direction==="rtl"}const Mt={convertOffsetParentRelativeRectToViewportRelativeRect:Ca,getDocumentElement:q,getClippingRect:Da,getOffsetParent:Wn,getElementRects:Ma,getClientRects:Ea,getDimensions:Na,getScale:we,isElement:F,isRTL:La};function Un(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Oa(e,t){let n=null,s;const i=q(e);function a(){var r;clearTimeout(s),(r=n)==null||r.disconnect(),n=null}function o(r,l){r===void 0&&(r=!1),l===void 0&&(l=1),a();const h=e.getBoundingClientRect(),{left:c,top:d,width:u,height:g}=h;if(r||t(),!u||!g)return;const p=qe(d),v=qe(i.clientWidth-(c+u)),w=qe(i.clientHeight-(d+g)),f=qe(c),y={rootMargin:-p+"px "+-v+"px "+-w+"px "+-f+"px",threshold:L(0,Q(1,l))||1};let C=!0;function k(x){const E=x[0].intersectionRatio;if(E!==l){if(!C)return o();E?o(!1,E):s=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Un(h,e.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(k,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return o(!0),a}function $a(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,h=Nt(e),c=i||a?[...h?_e(h):[],...t?_e(t):[]]:[];c.forEach(f=>{i&&f.addEventListener("scroll",n,{passive:!0}),a&&f.addEventListener("resize",n)});const d=h&&r?Oa(h,n):null;let u=-1,g=null;o&&(g=new ResizeObserver(f=>{let[b]=f;b&&b.target===h&&g&&t&&(g.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),n()}),h&&!l&&g.observe(h),t&&g.observe(t));let p,v=l?ce(e):null;l&&w();function w(){const f=ce(e);v&&!Un(v,f)&&n(),v=f,p=requestAnimationFrame(w)}return n(),()=>{var f;c.forEach(b=>{i&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d?.(),(f=g)==null||f.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const Ta=ga,Ya=ma,Fa=ha,Kn=fa,Ra=da,za=(e,t,n)=>{const s=new Map,i={platform:Mt,...n},a={...i.platform,_c:s};return ca(e,t,{...i,platform:a})};function Xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Va=/transform|translate|scale|rotate|perspective|filter/,ja=/paint|layout|strict|content/,de=e=>!!e&&e!=="none";let Lt;function Ga(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof Xn(n).Element)?Xn(s=e).getComputedStyle(s):e);var n,s;return de(t.transform)||de(t.translate)||de(t.scale)||de(t.rotate)||de(t.perspective)||(Lt==null&&(Lt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!Lt&&(de(t.backdropFilter)||de(t.filter)))||Va.test(t.willChange||"")||ja.test(t.contain||"")}function qa(e){return(function(t){for(let n=t;n;n=Ot(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=Ot(t);n;n=Ot(n)){if(!(n instanceof Element))continue;const s=getComputedStyle(n);if(s.display!=="contents"&&(s.position!=="static"||Ga(s)||n.tagName==="BODY"))return n}return null})(e)}function Ot(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var Ie;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(Ie||(Ie={}));let Ba=(X=class{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=$a(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,n=[Ta(t)],s=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,a=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,o=Fa(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((h=>h!==a)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),r=this.config.elementType===Ie.POPOVER,l=Ya({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===Ie.TOOLTIP||r&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(Kn({apply({elements:h,rects:c}){Object.assign(h.floating.style,{width:`${c.reference.width}px`})}})),a?.includes("-")?n.push(o,l):n.push(l,o),this.config.constrainToViewportHeight&&n.push(Kn({padding:t,apply:({availableHeight:h,elements:c})=>{const d=Array.from(c.floating.children).find((u=>u!==this.arrowEl));d instanceof HTMLElement&&Object.assign(d.style,{maxHeight:`${Math.max(0,h)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Ra({element:this.arrowEl,padding:t})),za(this.anchorElement,this.floatingElement,{placement:a,strategy:"fixed",middleware:n,platform:{...Mt,getOffsetParent:h=>Mt.getOffsetParent(h,qa)}}).then((({x:h,y:c,middlewareData:d,placement:u})=>{if(r){const w=u.startsWith("left")||u.startsWith("right"),f=u.startsWith("top")||u.startsWith("bottom"),b=this.isAnchorInViewport(),y=!!f||(w?b:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=u,Object.assign(this.floatingElement.style,{left:`${h}px`,top:`${c}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const g=u.split("-")[0]??"bottom",p={top:"bottom",right:"left",bottom:"top",left:"right"}[g],{arrowZIndex:v}=this.normalizeFloatingElementStacking();if(d.arrow&&this.arrowEl){const w=this.arrowEl.offsetWidth,{x:f,y:b}=d.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(g)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(g)?" 0":""}`,Object.assign(this.arrowEl.style,{left:f!==null?`${f}px`:"",top:b!==null?`${b}px`:"",right:"",bottom:"",[p]:-w/2+"px",transform:"rotate(45deg)",zIndex:`${v}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),s=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?s+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((a=>{if(!(a instanceof HTMLElement)||a===this.arrowEl)return;const o=a.style.zIndex||(window.getComputedStyle?.(a).zIndex??""),r=Number.parseInt(o,10),l=window.getComputedStyle?.(a).position??"";(o===""||o==="auto"||Number.isNaN(r)||r<i)&&(a.style.zIndex=`${i}`,l!==""&&l!=="static"||(a.style.position="relative"))})),{contentZIndex:i,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),X.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=X.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),X.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=s}},X.currentFloatingElements=new Map,X);const Ha=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.constrainPlacements=["bottom","top"],this.matchReferenceWidth=!0,this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onFlyoutPanelShow():n&&!this.floatingElementManager.isVisible()&&this.onFlyoutPanelHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onFlyoutPanelHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new Ba(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:Ie.FLYOUT_PANEL,constrainPlacements:this?.constrainPlacements??["bottom","top"],constrainToViewportHeight:!0,matchReferenceWidth:this?.matchReferenceWidth??!0,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onFlyoutPanelShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onFlyoutPanelHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#flyout-panel");if(!e)return;const t=[],n=Jn(e);t.push(...n);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((i=>{const a=Jn(i);t.push(...a)})),this.focusableElements=t.sort(((i,a)=>{const o=i.compareDocumentPosition(a),r=!!(o&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(o&Node.DOCUMENT_POSITION_PRECEDING);return r?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const a=this._el.shadowRoot?.activeElement;a!==null&&(s=a)}const i=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&i||(e.preventDefault(),n&&n.focus()):s!==n&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}constrainPlacementsChanged(e){this.floatingElementManager?.updateConfig({constrainPlacements:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}flyoutPanelVisible(){return!!this.floatingElementManager.isVisible()}openPanel(e){this.floatingElementManager.isVisible()||this.handleToggleEvent(e)}closePanel(e){this.floatingElementManager.isVisible()&&this.handleToggleEvent(e)}async isFlyoutPanelVisible(){return this.flyoutPanelVisible()}async openFlyoutPanel(e){this.openPanel(e)}async closeFlyoutPanel(e){this.closePanel(e)}render(){return m(Te,{key:"5c1652a168d27045c28c7cae5d56fe3c3b43457f"},m("slot",{key:"dbadbb0e93053a04d647fd7af31c2363813c46c9",name:"anchor"}),m("div",{key:"ca341b9babdf1c8d5862e0517814892743f27a07",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},m("div",{key:"b7bd390c78988bd35673c6d7aee4fb122bc0d9e5"},m("slot",{key:"c989d0ac0497f350d2403aa075c6bc46c9821f2a"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}"}},[257,"gids-flyout-panel",{htmlFor:[513,"for"],placement:[513],constrainPlacements:[16],matchReferenceWidth:[516,"match-reference-width"],isFlyoutPanelVisible:[64],openFlyoutPanel:[64],closeFlyoutPanel:[64]},void 0,{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}]),Zn=e=>{if(!(e instanceof $)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=n,s&&e.blur(),s}catch{return!1}},Jn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>Zn(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];Zn(e)&&n.push(e);let s=t.nextNode();for(;s!==null;)n.push(s),s=t.nextNode();return n};function $t(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,Ha))}))}$t();const Wa=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(li(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return m(Te,{key:"571ed3a5815c1cef82a0115634d4d181a73e0515"},m("slot",{key:"50188a10937675d31a93e46070fd2ce7709a0763",name:"leadingIcon"}),this.leadingLabel&&m("span",{key:"37aa8f33f1490ef0ca77f6ae7fabc0abb88ad749",class:"gids-input__label"},this.leadingLabel),m("slot",{key:"d1482ff4d6b9f2a0da0cedc45a738eeae6ee969d",name:"leadingAccessory"}),m("input",{key:"ba004d40d2feee851187e3c7d778b423976817d6",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),m("slot",{key:"b74721099ecf423895c306e63d42d6ae5ddbf8d2",name:"trailingAccessory"}),this.trailingLabel&&m("span",{key:"2ffdc81450931d653f76948961a4f55559df9010",class:"gids-input__label"},this.trailingLabel),m("slot",{key:"806cae677da57a02924ff0d0166a2bf16c5a9e15",name:"trailingIcon"}),this.status==="incomplete"&&m(j,{key:"a238cdac45fc718976cce8ca022e32a946d9fe1a",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&m(j,{key:"2ce2f8354b5f1c1d2d2376fae1b672e6361cd504",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&m(mt,{key:"1d93199143a67f7a1a0b1e9a96dc698974248a61",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Tt(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Wa))}))}Tt();const{getGidsDropdownClassNames:Ua,getGidsChevronButtonControlClassNames:Ka}=Ws,Yt="gids-dropdown-item--active",Xa=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.menuPlacement="bottom",this.menuConstrainPlacements=["bottom","top"],this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.suppressNextFilterInput=!1,this.handleDropdownItemSelect=t=>{const{value:n,title:s,disabled:i,id:a,isPlaceholderItem:o}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:a,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:o}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const i=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")||"";if(typeof i!="string"||i.length===0)return;const a=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof a!="string"||a.length===0)return;const o=s.getAttribute("is-placeholder-item")??"";let r=s.textContent?.trim()??"";r.endsWith("checkmark")&&(r=r.slice(0,-9).trim()),this.applySelection({id:a,value:i,title:r.trim(),disabled:!1,originalEvent:t,isPlaceholderItem:!(!o||o!=="true")})},this.handleFilterInput=t=>{if(this.suppressNextFilterInput)return void(this.suppressNextFilterInput=!1);const n=t.target;this.filterValue=n?.value??"",this.isFilterEditing=!0,this.clearActive(),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const n=t.key,s=n==="ArrowDown";return!s&&n!=="ArrowUp"||t.metaKey||t.ctrlKey?n==="Home"?(t.preventDefault(),void this.setActiveByIndex(0)):n==="End"?(t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1)):void(n==="Enter"&&this.selectActive()&&t.preventDefault()):(t.preventDefault(),void this.moveActive(s?1:-1))},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=()=>{},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.disabled||this.readOnly||this.flyoutPanelElement?.isFlyoutPanelVisible().then((n=>{n?this.flyoutPanelElement?.closeFlyoutPanel(t):this.flyoutPanelElement?.openFlyoutPanel(t)})))},this.handleDocumentPointerDown=t=>{t.button!==2&&!(typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)&&this.hostElement.contains(t.target)},this.handleDocumentKeyDown=t=>{const n=t.key;n!=="Escape"&&n!=="Esc"||t.preventDefault()},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue=""}}handleInteractivityChange(e){this.disabled=e,this.readOnly=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}componentDidRender(){this.flyoutPanelElement=this.hostElement.querySelector("gids-flyout-panel")??void 0}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.resetItemVisibility(),this.onSelectionChange?.(e);const t=new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e});this.hostElement.dispatchEvent(t),this.disabled||this.readOnly||this.flyoutPanelElement?.isFlyoutPanelVisible().then((n=>{n?this.flyoutPanelElement?.closeFlyoutPanel(t):this.flyoutPanelElement?.openFlyoutPanel(t)}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,this.suppressNextFilterInput=!0,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.suppressNextFilterInput&&(this.suppressNextFilterInput=!1))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Yt))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Yt))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const n=Math.max(0,Math.min(e,t.length-1)),s=t[n];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=n,s.classList.add(Yt),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const n=(t.textContent??"").toLowerCase();e.length===0||n.includes(e)?t.style.removeProperty("display"):t.style.display="none"}))}resetItemVisibility(){this.getItemElements().forEach((e=>{e.style.removeProperty("display")}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const n=e.onBlur;e.onBlur=i=>{n?.(i),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=i=>{s?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=Ua(),t=this.getEnhancedInputProps(),n=typeof t.id=="string"?t.id:void 0,s=n?`${n}__menu`:void 0,i=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=this.disabled||this.readOnly?"":`dropdown-${s}`,o=m("button",{key:"7ea973413d842a50076beefa4c7e44e690ce64ca",class:Ka({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:r=>this.handleChevronClickToggle(r),"aria-haspopup":"listbox","aria-controls":s,disabled:this.disabled||this.readOnly,tabIndex:-1},m("span",{key:"1579fc5f3c7e582619754aef7830ea7079f38963",class:"gids-button__content"},m(j,{key:"e2781f65e2eab2ea398070eca03855d89343870e",name:"chevron-vertical",alt:""})));return m("div",{key:"9c55513535108fb289d6011102ecd7ef9f217c79",class:e},m("gids-input",{key:"5c5be9280f69ef3b031a34f50927e1f649c4911e",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:i,name:this.name,inputProps:t,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur,id:a},this.hasLeadingIcon&&m("slot",{key:"502e234e0fb147df023d1e969975167975b4dd7f",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&m("slot",{key:"f447253a177d9a724d4c60f63c30232dc23add11",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),o),m("gids-flyout-panel",{key:"905193245274409ea826af63a658c98de1e8966d",placement:this?.menuPlacement??"bottom",constrainPlacements:this?.menuConstrainPlacements??["bottom","top"],onClick:this.handleMenuClick,htmlFor:a},m("slot",{key:"b398ffd22d450277271a51fce7f52164b2f76229"})))}get hostElement(){return this}static get watchers(){return{disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}]}}static get style(){return".gids-dropdown{position:relative}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}"}},[260,"gids-dropdown",{appearance:[1],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}]}]);function Qn(){typeof customElements<"u"&&["gids-dropdown","gids-flyout-panel","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,Xa);break;case"gids-flyout-panel":customElements.get(e)||$t();break;case"gids-input":customElements.get(e)||Tt()}}))}Qn();const{getGidsCalendarPickerClassNames:Za}=Fs,es=Y(class extends ${constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.menuPlacement="bottom",this.menuConstrainPlacements=["bottom","top"],this.panelActionsAppearance="default",this.hasLeadingIcon=!1,this.selectedCalendarPickerObj=void 0,this.handleCalendarDateSelectionChange=t=>{if(this.selectedCalendarPickerObj=t,this.onSelectionCalendarCell){this.onSelectionCalendarCell(t);const n=new CustomEvent("gidsCalendarPickerChange",{bubbles:!0,composed:!0,detail:t});this.hostElement.dispatchEvent(n),this.disabled||this.readOnly||this.flyoutPanelElement?.isFlyoutPanelVisible().then((s=>{s?this.flyoutPanelElement?.closeFlyoutPanel(n):this.flyoutPanelElement?.openFlyoutPanel(n)}))}},this.handleCalendarNextChange=t=>{this.onNextChange&&this.onNextChange(t)},this.handleCalendarPanelMonthChange=t=>{this.onPanelMonthChange&&this.onPanelMonthChange(t)},this.handleCalendarPanelYearChange=t=>{this.onPanelYearChange&&this.onPanelYearChange(t)},this.handleCalendarPreviousChange=t=>{this.onPreviousChange&&this.onPreviousChange(t)},this.syncCalendarPickerValue=()=>this?.selectedCalendarPickerObj?.date?this.selectedCalendarPickerObj.date:this?.value,this.getSelectedDate=()=>this?.selectedCalendarPickerObj?.date,this.getActiveMonthNumber=()=>this?.selectedCalendarPickerObj?.currentActivePanelState?.monthNumber,this.getActiveYear=()=>this?.selectedCalendarPickerObj?.currentActivePanelState?.year}handleInteractivityChange(e){this.disabled=e,this.readOnly=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}startYearChanged(e){this.startYear=e}endYearChanged(e){this.endYear=e}connectedCallback(){}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}componentDidRender(){this.flyoutPanelElement=this.hostElement.querySelector("gids-flyout-panel")??void 0}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]')}render(){const e=Za(),t=typeof this?.inputProps?.id=="string"?this.inputProps.id:"calendar-picker-input",n={id:t,appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:this.syncCalendarPickerValue(),name:this.name,inputProps:{...this?.inputProps??{},id:t}},s=this?.startYear??As,i=this?.endYear??Ms,a=Number(s),o=Number(i);return m(Ht,{key:"7373d9601eaaafee7c9c4f8056982b5b695089c7",class:e},m("gids-dropdown",{key:"8b36bba505737ffe43aa3abecd90a946a1c39c55",...n,menuPlacement:this?.menuPlacement??"bottom",menuConstrainPlacements:this.menuConstrainPlacements??["bottom","top"]},this.hasLeadingIcon&&m("slot",{key:"e2eb369f2c6e85482c8866dd3e2c4614edf004bd",name:"leadingIconDropdown",slot:"leadingIconDropdown"}),m("gids-calendar",{key:"e8be0098b49f3b88ac0f061d75f5ca75da82c879",onSelectionCalendarCell:this.handleCalendarDateSelectionChange,startYear:a,endYear:o,panelActionsAppearance:this?.panelActionsAppearance??"default",monthPickerDisabled:this.monthPickerDisabled,nextDisabled:this.nextDisabled,panelDisabled:this.panelDisabled,previousDisabled:this.previousDisabled,yearPickerDisabled:this.yearPickerDisabled,onNextChange:this.handleCalendarNextChange,onPanelMonthChange:this.handleCalendarPanelMonthChange,onPanelYearChange:this.handleCalendarPanelYearChange,onPreviousChange:this.handleCalendarPreviousChange,selectedDate:this.getSelectedDate(),activeMonthNumber:this.getActiveMonthNumber(),activeYear:this.getActiveYear()})))}get hostElement(){return this}static get watchers(){return{disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],startYear:[{startYearChanged:0}],endYear:[{endYearChanged:0}]}}static get style(){return".gids-calendar-picker{position:relative;display:flex;flex-direction:column}"}},[260,"gids-calendar-picker",{appearance:[1],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],required:[4],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],startYear:[2,"start-year"],endYear:[2,"end-year"],monthPickerDisabled:[4,"month-picker-disabled"],nextDisabled:[4,"next-disabled"],panelDisabled:[4,"panel-disabled"],previousDisabled:[4,"previous-disabled"],yearPickerDisabled:[4,"year-picker-disabled"],panelActionsAppearance:[1,"panel-actions-appearance"],onNextChange:[16],onPreviousChange:[16],onPanelMonthChange:[16],onPanelYearChange:[16],onSelectionCalendarCell:[16],hasLeadingIcon:[32],selectedCalendarPickerObj:[32]},void 0,{disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],startYear:[{startYearChanged:0}],endYear:[{endYearChanged:0}]}]);function ts(){typeof customElements<"u"&&["gids-calendar-picker","gids-calendar","gids-calendar-header-panel","gids-calendar-month-list","gids-calendar-year-list","gids-dot","gids-dropdown","gids-dropdown-picker","gids-flyout-panel","gids-icon","gids-input"].forEach((e=>{switch(e){case"gids-calendar-picker":customElements.get(e)||customElements.define(e,es);break;case"gids-calendar":customElements.get(e)||An();break;case"gids-calendar-header-panel":customElements.get(e)||bt();break;case"gids-calendar-month-list":customElements.get(e)||Re();break;case"gids-calendar-year-list":customElements.get(e)||ze();break;case"gids-dot":customElements.get(e)||kt();break;case"gids-dropdown":customElements.get(e)||Qn();break;case"gids-dropdown-picker":customElements.get(e)||Ve();break;case"gids-flyout-panel":customElements.get(e)||$t();break;case"gids-icon":customElements.get(e)||je();break;case"gids-input":customElements.get(e)||Tt()}}))}ts();const Ja=es,Qa=ts;ae.GidsCalendarPicker=Ja,ae.defineCustomElement=Qa,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})}));