@luzmo/analytics-components-kit 1.0.1-alpha.4 → 1.0.1-alpha.5

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 (369) hide show
  1. package/components/async-directive-FGzMycjH-Bgeca09f.js +152 -0
  2. package/components/async-directive-FGzMycjH-CeG35vZ3.cjs +56 -0
  3. package/components/base-BjTwmyRF.cjs +24 -0
  4. package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
  5. package/components/base-D76d76ww-gf0ESLsU.js +45 -0
  6. package/components/base-D76d76ww.js +28 -0
  7. package/components/button-base-CDLQV7Vk-BXgdcJZo.cjs +43 -0
  8. package/{lib/button-base-CtfPWS-P.js → components/button-base-CDLQV7Vk-C_3zTrbV.js} +55 -36
  9. package/components/checkbox-mixin-DXUIwtea-DNISZS47.cjs +45 -0
  10. package/components/checkbox-mixin-DXUIwtea-wiCZr_KI.js +88 -0
  11. package/components/directive-helpers-BLDZnGQv-DYFfxaqA.cjs +80 -0
  12. package/components/directive-helpers-BLDZnGQv-oKMCBvb2.js +115 -0
  13. package/components/display-settings/display-settings.d.ts +70 -0
  14. package/components/display-settings/index.cjs +105 -0
  15. package/components/display-settings/index.d.ts +7 -0
  16. package/components/display-settings/index.js +238 -0
  17. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  18. package/components/display-settings-binning/index.cjs +51 -0
  19. package/components/display-settings-binning/index.d.ts +7 -0
  20. package/components/display-settings-binning/index.js +137 -0
  21. package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
  22. package/{lib/draggable-data-item → components/display-settings-datetime}/index.cjs +1 -1
  23. package/components/display-settings-datetime/index.d.ts +7 -0
  24. package/{lib/draggable-data-item → components/display-settings-datetime}/index.js +2 -2
  25. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
  26. package/{lib/index-C4ePDYEC.cjs → components/display-settings-grand-totals/index.cjs} +4 -4
  27. package/components/display-settings-grand-totals/index.d.ts +7 -0
  28. package/components/display-settings-grand-totals/index.js +115 -0
  29. package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
  30. package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
  31. package/components/display-settings-numeric/index.cjs +146 -0
  32. package/components/display-settings-numeric/index.d.ts +7 -0
  33. package/{lib/index-CM80_HQw.js → components/display-settings-numeric/index.js} +106 -96
  34. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
  35. package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
  36. package/components/display-settings-period-over-period/index.cjs +103 -0
  37. package/components/display-settings-period-over-period/index.d.ts +7 -0
  38. package/{lib/index-DJp_9h0l.js → components/display-settings-period-over-period/index.js} +104 -123
  39. package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
  40. package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
  41. package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
  42. package/components/draggable-data-item/index.cjs +55 -0
  43. package/components/draggable-data-item/index.d.ts +7 -0
  44. package/components/draggable-data-item/index.js +140 -0
  45. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
  46. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
  47. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
  48. package/components/draggable-data-item-level/index.cjs +36 -0
  49. package/components/draggable-data-item-level/index.d.ts +7 -0
  50. package/{lib/index-DrIA0eFE.js → components/draggable-data-item-level/index.js} +137 -236
  51. package/components/droppable-slot/droppable-slot.d.ts +49 -0
  52. package/components/droppable-slot/index.cjs +69 -0
  53. package/components/droppable-slot/index.d.ts +7 -0
  54. package/components/droppable-slot/index.js +255 -0
  55. package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
  56. package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
  57. package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
  58. package/components/edit-item/edit-item.d.ts +50 -0
  59. package/components/edit-item/index.cjs +85 -0
  60. package/components/edit-item/index.d.ts +7 -0
  61. package/components/edit-item/index.js +333 -0
  62. package/components/edit-option/edit-option.d.ts +22 -0
  63. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  64. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  65. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  66. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  67. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  68. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  69. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  70. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  71. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  72. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  73. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  74. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  75. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  76. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  77. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  78. package/components/edit-option/index.cjs +176 -0
  79. package/components/edit-option/index.d.ts +7 -0
  80. package/components/edit-option/index.js +507 -0
  81. package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
  82. package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
  83. package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
  84. package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
  85. package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
  86. package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
  87. package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
  88. package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
  89. package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
  90. package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
  91. package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
  92. package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
  93. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  94. package/components/edit-option-action-button-group/index.cjs +44 -0
  95. package/components/edit-option-action-button-group/index.d.ts +7 -0
  96. package/components/edit-option-action-button-group/index.js +144 -0
  97. package/components/edit-option-base/edit-option-base.d.ts +22 -0
  98. package/components/edit-option-base-DnrerC_T.cjs +53 -0
  99. package/components/edit-option-base-oIvlolV9.js +120 -0
  100. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
  101. package/components/edit-option-color-picker/index.cjs +472 -0
  102. package/components/edit-option-color-picker/index.d.ts +7 -0
  103. package/components/edit-option-color-picker/index.js +2553 -0
  104. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
  105. package/components/edit-option-multi-language-field/index.cjs +31 -0
  106. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  107. package/components/edit-option-multi-language-field/index.js +102 -0
  108. package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
  109. package/components/edit-option-number-field/index.cjs +32 -0
  110. package/components/edit-option-number-field/index.d.ts +7 -0
  111. package/components/edit-option-number-field/index.js +115 -0
  112. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  113. package/components/edit-option-picker/index.cjs +35 -0
  114. package/components/edit-option-picker/index.d.ts +7 -0
  115. package/components/edit-option-picker/index.js +106 -0
  116. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
  117. package/components/edit-option-positions-number-field/index.cjs +42 -0
  118. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  119. package/components/edit-option-positions-number-field/index.js +170 -0
  120. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  121. package/components/edit-option-radio-button-group/index.cjs +36 -0
  122. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  123. package/components/edit-option-radio-button-group/index.js +113 -0
  124. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  125. package/components/edit-option-slider/index.cjs +48 -0
  126. package/components/edit-option-slider/index.d.ts +7 -0
  127. package/components/edit-option-slider/index.js +1253 -0
  128. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  129. package/components/edit-option-switch/index.cjs +50 -0
  130. package/components/edit-option-switch/index.d.ts +7 -0
  131. package/components/edit-option-switch/index.js +171 -0
  132. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  133. package/components/edit-option-text-field/index.cjs +31 -0
  134. package/components/edit-option-text-field/index.d.ts +7 -0
  135. package/components/edit-option-text-field/index.js +100 -0
  136. package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
  137. package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
  138. package/{lib/en-CIeY2T5K.js → components/en-BsAhbMzm.js} +101 -102
  139. package/components/en-CdROUdjt.cjs +202 -0
  140. package/{lib/en-GB-BqYHIX1v.cjs → components/en-GB-g8rSQSba.cjs} +1 -1
  141. package/{lib/en-GB-CYx--4nh.js → components/en-GB-qub-Kemt.js} +1 -1
  142. package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
  143. package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
  144. package/{lib/get-css-variable-BHHQ0SnL.js → components/get-css-variable-Bhbr-Kr1.js} +379 -410
  145. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  146. package/components/if-defined-CYpcjGCb-Bzbg7zmM.cjs +60 -0
  147. package/components/if-defined-CYpcjGCb-tXzyj9Dq.js +95 -0
  148. package/components/if-defined-Ch2dtEOS.js +29 -0
  149. package/components/if-defined-DMSuo5Qx.cjs +24 -0
  150. package/components/index-3ewegRbb.cjs +67 -0
  151. package/components/index-B0cBkCaq.cjs +39 -0
  152. package/components/index-B2N_PZf3.js +164 -0
  153. package/components/index-B2z7i1-X.js +77 -0
  154. package/components/index-B5VaT0lQ.js +145 -0
  155. package/components/index-BC-nmKjU.js +104 -0
  156. package/{lib/droppable-slot/index.js → components/index-BD3VxQBH.js} +18 -4
  157. package/components/index-BGaxFTL4.js +299 -0
  158. package/{lib/index-B9h2L_hV.js → components/index-BRk42NQn.js} +1235 -1112
  159. package/components/index-Bjs6Yqet.cjs +185 -0
  160. package/components/index-Bofs4Q2E.cjs +36 -0
  161. package/components/index-BqTdFs1o.js +77 -0
  162. package/components/index-C2qG2Sm8-BQUlk-w0.js +935 -0
  163. package/components/index-C2qG2Sm8-CbVWlbag.cjs +95 -0
  164. package/components/index-CTPox3yS.cjs +54 -0
  165. package/components/index-C_3Ak4MQ.cjs +59 -0
  166. package/components/index-CayjvyyX.cjs +95 -0
  167. package/components/index-CkDDDzuJ.js +744 -0
  168. package/{lib/progress-circle/index.js → components/index-Cp-lHUlX.js} +53 -20
  169. package/components/index-CtHO6VyI.cjs +42 -0
  170. package/components/index-D4x-O9Uc.cjs +192 -0
  171. package/components/index-D9vzXhtJ.cjs +95 -0
  172. package/components/index-DQiQXn8N.cjs +36 -0
  173. package/{lib/picker/index.js → components/index-DVaeDCbe.js} +22 -6
  174. package/components/index-DskAouD-.js +317 -0
  175. package/{lib/index-CBCm4_7S.js → components/index-DszPbTTD.js} +401 -460
  176. package/{lib/index-Bd4cKS9O.js → components/index-EQldC-LR.js} +67 -47
  177. package/components/index-ON4x-yZ7.cjs +36 -0
  178. package/components/index-gfU9TGd5.cjs +57 -0
  179. package/components/index-liTHhAef.cjs +36 -0
  180. package/components/index.cjs +20 -0
  181. package/components/index.js +74 -0
  182. package/components/language-resolution-8yZa5r_P-CTSmbE1U.js +161 -0
  183. package/components/language-resolution-8yZa5r_P-DQ3rZzW5.cjs +52 -0
  184. package/components/localize-B6AsX_Zv.js +52 -0
  185. package/components/localize-DbobqcKs.cjs +20 -0
  186. package/components/luzmo-icons-BrtBl3E5.cjs +31 -0
  187. package/{lib/index-DdtjeKYI.js → components/luzmo-icons-CZEpXpvy.js} +157 -472
  188. package/components/observe-slot-text-BG0H7bQK-C0wmc4DO.js +221 -0
  189. package/components/observe-slot-text-BG0H7bQK-CrkAqUMj.cjs +86 -0
  190. package/{lib/popover-Bwnkg-5-.js → components/popover-bg0EQQ8p-D4-hrhIx.js} +25 -6
  191. package/components/popover-bg0EQQ8p-Dha09dhV.cjs +48 -0
  192. package/components/property-CD3dwBJC.js +1447 -0
  193. package/components/property-Su1Q6aME.cjs +124 -0
  194. package/components/query-D5qWDopr.cjs +24 -0
  195. package/components/query-Ddbd72Um.js +39 -0
  196. package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
  197. package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
  198. package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
  199. package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
  200. package/components/sized-mixin-PyCYpyQq-B40Ek2UB.js +82 -0
  201. package/components/sized-mixin-PyCYpyQq-sKzDjc75.cjs +36 -0
  202. package/components/slot-menu/index.cjs +55 -0
  203. package/components/slot-menu/index.d.ts +7 -0
  204. package/components/slot-menu/index.js +188 -0
  205. package/components/slot-menu/slot-menu.d.ts +66 -0
  206. package/components/slot-menu-list/index.cjs +39 -0
  207. package/components/slot-menu-list/index.d.ts +7 -0
  208. package/components/slot-menu-list/index.js +351 -0
  209. package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
  210. package/components/state-B1a8XIDm.js +31 -0
  211. package/components/state-ByiKNRhp.cjs +24 -0
  212. package/components/task-BPD0PyaQ.js +120 -0
  213. package/components/task-HFsHfTra.cjs +24 -0
  214. package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +131 -0
  215. package/components/text-field-7ITo3Lac-DqVO04kR.js +412 -0
  216. package/{lib/index-D_KYpfBM.js → components/utils.cjs} +1 -5
  217. package/{lib/droppable-slot/index.cjs → components/utils.js} +1 -1
  218. package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
  219. package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
  220. package/custom-elements.json +3562 -884
  221. package/index.d.ts +23 -0
  222. package/package.json +132 -17
  223. package/utils/formatter/calculate-duration.d.ts +2 -0
  224. package/utils/formatter/decompose-numeric-format.d.ts +11 -0
  225. package/utils/formatter/default-local-formats.d.ts +20 -0
  226. package/utils/formatter/formats/cs.d.ts +20 -0
  227. package/utils/formatter/formats/da.d.ts +20 -0
  228. package/utils/formatter/formats/de.d.ts +21 -0
  229. package/utils/formatter/formats/en-GB.d.ts +21 -0
  230. package/utils/formatter/formats/en-US.d.ts +1 -0
  231. package/utils/formatter/formats/en.d.ts +1 -0
  232. package/utils/formatter/formats/es.d.ts +54 -0
  233. package/utils/formatter/formats/fi.d.ts +20 -0
  234. package/utils/formatter/formats/fr.d.ts +54 -0
  235. package/utils/formatter/formats/he.d.ts +20 -0
  236. package/utils/formatter/formats/hu.d.ts +20 -0
  237. package/utils/formatter/formats/it.d.ts +54 -0
  238. package/utils/formatter/formats/ja.d.ts +20 -0
  239. package/utils/formatter/formats/ko.d.ts +20 -0
  240. package/utils/formatter/formats/mk.d.ts +20 -0
  241. package/utils/formatter/formats/nl.d.ts +21 -0
  242. package/utils/formatter/formats/no.d.ts +21 -0
  243. package/utils/formatter/formats/pl.d.ts +20 -0
  244. package/utils/formatter/formats/pt.d.ts +20 -0
  245. package/utils/formatter/formats/ru.d.ts +20 -0
  246. package/utils/formatter/formats/sv.d.ts +20 -0
  247. package/utils/formatter/formats/tr.d.ts +21 -0
  248. package/utils/formatter/formats/zh-CN.d.ts +20 -0
  249. package/utils/formatter/formats/zh-TW.d.ts +20 -0
  250. package/utils/formatter/formatter.d.ts +9 -0
  251. package/utils/formatter/localize.d.ts +3 -0
  252. package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  253. package/utils/get-css-variable.d.ts +1 -0
  254. package/utils/index.d.ts +1 -0
  255. package/utils/time/formats.const.d.ts +8 -0
  256. package/utils/time/periods.const.d.ts +29 -0
  257. package/utils/types/column.types.d.ts +56 -0
  258. package/utils/types/type-check.d.ts +7 -0
  259. package/lib/async-directive-CPjMHOPu.cjs +0 -24
  260. package/lib/async-directive-SCUUQ3Mh.js +0 -114
  261. package/lib/button-base-B4PdJFVe.cjs +0 -27
  262. package/lib/directive-helpers-BSB0tfc9.cjs +0 -32
  263. package/lib/directive-helpers-eY1rHtyn.js +0 -154
  264. package/lib/divider.module-BW8qaMVq.js +0 -211
  265. package/lib/divider.module-DEy88Ieh.cjs +0 -20
  266. package/lib/en-BDBzmAXX.cjs +0 -202
  267. package/lib/get-css-variable-D439CdH9.cjs +0 -24
  268. package/lib/if-defined-BbzmSG-O.js +0 -757
  269. package/lib/if-defined-V7yEJWI3.cjs +0 -54
  270. package/lib/index-0314DjEl.cjs +0 -20
  271. package/lib/index-BDXFsKUM.cjs +0 -146
  272. package/lib/index-BmAD29P2.js +0 -106
  273. package/lib/index-Bo1DpZ-1.cjs +0 -58
  274. package/lib/index-C9xEN5Ji.js +0 -82
  275. package/lib/index-CcF-9wyF.cjs +0 -71
  276. package/lib/index-CfEm5P0J.cjs +0 -196
  277. package/lib/index-CrWoFMZ3.cjs +0 -22
  278. package/lib/index-CtEJZdT0.js +0 -1627
  279. package/lib/index-CvX-HLY1.cjs +0 -322
  280. package/lib/index-D37RwuEH.js +0 -1584
  281. package/lib/index-D5puKlcm.cjs +0 -96
  282. package/lib/index-DGz6jCKo.cjs +0 -26
  283. package/lib/index-DSbgZduE.js +0 -501
  284. package/lib/index-Dj7PF4Q9.cjs +0 -63
  285. package/lib/index-Dq3HAOaM.js +0 -127
  286. package/lib/index-jt6FL_uE.cjs +0 -20
  287. package/lib/index-kJR406YZ.cjs +0 -112
  288. package/lib/index-v8ZTprPO.cjs +0 -51
  289. package/lib/index.cjs +0 -875
  290. package/lib/index.js +0 -6411
  291. package/lib/observe-slot-text-DOYmGOZe.js +0 -181
  292. package/lib/observe-slot-text-oJ0a2KY9.cjs +0 -42
  293. package/lib/picker/index.cjs +0 -20
  294. package/lib/popover-CQGN8nbX.cjs +0 -32
  295. package/lib/progress-circle/index.cjs +0 -35
  296. /package/{lib → components}/area-chart-slots.config-BLxiYX05.cjs +0 -0
  297. /package/{lib → components}/area-chart-slots.config-C0c2ZzBh.js +0 -0
  298. /package/{lib → components}/bar-chart-slots.config-GSSL7XVA.js +0 -0
  299. /package/{lib → components}/bar-chart-slots.config-Jx1PveTM.cjs +0 -0
  300. /package/{lib → components}/bar-chart.config-B57geUzJ.cjs +0 -0
  301. /package/{lib → components}/bar-chart.config-CQ6HAvs2.js +0 -0
  302. /package/{lib → components}/bar-chart.en-BqYbiHO3.cjs +0 -0
  303. /package/{lib → components}/bar-chart.en-FwT00qdU.js +0 -0
  304. /package/{lib → components}/bar-chart.fr-DGx9smEh.cjs +0 -0
  305. /package/{lib → components}/bar-chart.fr-DbxKiM0j.js +0 -0
  306. /package/{lib → components}/bar-chart.nl-BYzVExsz.cjs +0 -0
  307. /package/{lib → components}/bar-chart.nl-ahX1ARpH.js +0 -0
  308. /package/{lib → components}/column-chart.config-B57geUzJ.cjs +0 -0
  309. /package/{lib → components}/column-chart.config-C9hP0kX7.js +0 -0
  310. /package/{lib → components}/cs-DVZ0Tapy.js +0 -0
  311. /package/{lib → components}/cs-I9E81keK.cjs +0 -0
  312. /package/{lib → components}/da-DHy05oSR.js +0 -0
  313. /package/{lib → components}/da-QkdvupDg.cjs +0 -0
  314. /package/{lib → components}/de-Dn5mUzha.cjs +0 -0
  315. /package/{lib → components}/de-iM39JlAt.js +0 -0
  316. /package/{lib → components}/decompose-numeric-format-B3rVVHpO.cjs +0 -0
  317. /package/{lib → components}/decompose-numeric-format-BuZcjH2k.js +0 -0
  318. /package/{lib → components}/donut-chart-slots.config-BEwhfq27.js +0 -0
  319. /package/{lib → components}/donut-chart-slots.config-DIp-24lO.cjs +0 -0
  320. /package/{lib → components}/donut-chart.config-3DhKiSSM.js +0 -0
  321. /package/{lib → components}/donut-chart.config-DLWJUlHx.cjs +0 -0
  322. /package/{lib → components}/donut-chart.en-Blb9oSdU.cjs +0 -0
  323. /package/{lib → components}/donut-chart.en-CzjT4-XN.js +0 -0
  324. /package/{lib → components}/donut-chart.fr-BeTVa2wh.cjs +0 -0
  325. /package/{lib → components}/donut-chart.fr-DftPrKbG.js +0 -0
  326. /package/{lib → components}/donut-chart.nl-D9YGbOce.cjs +0 -0
  327. /package/{lib → components}/donut-chart.nl-NMatXfhK.js +0 -0
  328. /package/{lib → components}/es-CwyPlN5d.cjs +0 -0
  329. /package/{lib → components}/es-KhTq4jX8.js +0 -0
  330. /package/{lib → components}/fi-Dh_ebgpe.js +0 -0
  331. /package/{lib → components}/fi-rijeZE5V.cjs +0 -0
  332. /package/{lib → components}/fr-BcgE-6S_.cjs +0 -0
  333. /package/{lib → components}/fr-CU727YF1.js +0 -0
  334. /package/{lib → components}/he-Au3xg6lR.js +0 -0
  335. /package/{lib → components}/he-O6Ih8Bqh.cjs +0 -0
  336. /package/{lib → components}/hu-BnZ8y3xQ.cjs +0 -0
  337. /package/{lib → components}/hu-DNJ-P_MW.js +0 -0
  338. /package/{lib → components}/imageobject.config-B7ld9bj3.cjs +0 -0
  339. /package/{lib → components}/imageobject.config-DZLp9Elq.js +0 -0
  340. /package/{lib → components}/it-Bh5U73z6.js +0 -0
  341. /package/{lib → components}/it-PshtLMkq.cjs +0 -0
  342. /package/{lib → components}/ja-CCcHUL61.js +0 -0
  343. /package/{lib → components}/ja-KIS2HdaG.cjs +0 -0
  344. /package/{lib → components}/ko--l4qmjLV.cjs +0 -0
  345. /package/{lib → components}/ko-DhapsZMM.js +0 -0
  346. /package/{lib → components}/line-chart.config-BZcvfO2c.cjs +0 -0
  347. /package/{lib → components}/line-chart.config-CIVN6uLI.js +0 -0
  348. /package/{lib → components}/mk-B9HPSuKa.js +0 -0
  349. /package/{lib → components}/mk-DZlj-edb.cjs +0 -0
  350. /package/{lib → components}/nl-BKlDqOXb.cjs +0 -0
  351. /package/{lib → components}/nl-BwSt5Bf4.js +0 -0
  352. /package/{lib → components}/no-D-DofYnx.js +0 -0
  353. /package/{lib → components}/no-D_SzxhTu.cjs +0 -0
  354. /package/{lib → components}/pl-D_L_0Boq.js +0 -0
  355. /package/{lib → components}/pl-PIK23rK_.cjs +0 -0
  356. /package/{lib → components}/pt-B0BBS5VB.js +0 -0
  357. /package/{lib → components}/pt-Dqlu4MS5.cjs +0 -0
  358. /package/{lib → components}/ru-Vo-m3O_2.js +0 -0
  359. /package/{lib → components}/ru-zyNDTB04.cjs +0 -0
  360. /package/{lib → components}/sv-1DPTltNQ.cjs +0 -0
  361. /package/{lib → components}/sv-CiozMaev.js +0 -0
  362. /package/{lib → components}/textobject.config-C8opcGG4.js +0 -0
  363. /package/{lib → components}/textobject.config-DbAajFz8.cjs +0 -0
  364. /package/{lib → components}/tr-BkmWvOG2.cjs +0 -0
  365. /package/{lib → components}/tr-D_D4i5iv.js +0 -0
  366. /package/{lib → components}/zh-CN-DTZ4OmdP.cjs +0 -0
  367. /package/{lib → components}/zh-CN-wsl7eFSd.js +0 -0
  368. /package/{lib → components}/zh-TW-DTZ4OmdP.cjs +0 -0
  369. /package/{lib → components}/zh-TW-wsl7eFSd.js +0 -0
@@ -17,102 +17,169 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { e as re, i as Oe, t as Ae, c as Lt, a as _t, E as Te, b as Re, r as ut } from "./directive-helpers-eY1rHtyn.js";
21
- import { b as De, T as Se, L as le, r as ae, x as k, o as St, n as x, e as pt, E as ce, B as he } from "./if-defined-BbzmSG-O.js";
22
- import { v as ft } from "./index-DdtjeKYI.js";
23
- import { i as ke, b as Le, f as $e } from "./async-directive-SCUUQ3Mh.js";
24
- /**
25
- * @license
26
- * Copyright 2021 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- */
29
- function Fe(e) {
30
- return (t, n) => {
31
- const { slot: i, selector: o } = e ?? {}, s = "slot" + (i ? `[name=${i}]` : ":not([name])");
32
- return De(t, n, { get() {
33
- var a;
34
- const r = (a = this.renderRoot) == null ? void 0 : a.querySelector(s), l = (r == null ? void 0 : r.assignedElements(e)) ?? [];
35
- return o === void 0 ? l : l.filter((c) => c.matches(o));
36
- } });
37
- };
38
- }
39
- class ze extends Event {
40
- constructor(t, n, i) {
41
- super("slottable-request", {
42
- bubbles: !1,
43
- cancelable: !0,
44
- composed: !1
45
- }), this.name = t, this.data = n, this.slotName = i === void 0 ? t : `${t}.${i}`;
46
- }
47
- }
48
- const Nt = Symbol("remove-slottable-request");
20
+ import { c as De, I as ge, x as A, r as fe, H as x, E as ve, B as ye } from "./property-CD3dwBJC.js";
21
+ import { _ as _t, $ as Fe, s as Ne, n as mt } from "./directive-helpers-BLDZnGQv-oKMCBvb2.js";
22
+ import { m as $t, d as gt } from "./if-defined-CYpcjGCb-tXzyj9Dq.js";
23
+ import { o as qe } from "./base-D76d76ww-gf0ESLsU.js";
24
+ import { u as Nt, n as It, d as He, h as Be } from "./element-resolution-FCUT-wql--7ctE626.js";
25
+ import { t as ft } from "./index-DskAouD-.js";
26
+ import { a as _e, w as Ie, C as Me } from "./async-directive-FGzMycjH-Bgeca09f.js";
27
+ /*! * Lucero - The design system for Luzmo.
28
+ *
29
+ * Copyright © 2025 Luzmo
30
+ * All rights reserved.
31
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
32
+ * This license allows users with a current active Luzmo account to use Lucero.
33
+ * This license terminates automatically if a user no longer has an active Luzmo account.
34
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
35
+ *
36
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
+ * SOFTWARE.
43
+ * */
49
44
  /**
50
45
  * @license
51
46
  * Copyright 2018 Google LLC
52
47
  * SPDX-License-Identifier: BSD-3-Clause
53
48
  */
54
- const de = "important", _e = " !" + de, Jt = re(class extends Oe {
49
+ const be = "important", We = " !" + be, re = _t(class extends Fe {
55
50
  constructor(e) {
56
51
  var t;
57
- if (super(e), e.type !== Ae.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
52
+ if (super(e), e.type !== Ne.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
58
53
  }
59
54
  render(e) {
60
55
  return Object.keys(e).reduce((t, n) => {
61
- const i = e[n];
62
- return i == null ? t : t + `${n = n.includes("-") ? n : n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${i};`;
56
+ const o = e[n];
57
+ return o == null ? t : t + `${n = n.includes("-") ? n : n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${o};`;
63
58
  }, "");
64
59
  }
65
60
  update(e, [t]) {
66
61
  const { style: n } = e.element;
67
62
  if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
68
- for (const i of this.ft) t[i] == null && (this.ft.delete(i), i.includes("-") ? n.removeProperty(i) : n[i] = null);
69
- for (const i in t) {
70
- const o = t[i];
71
- if (o != null) {
72
- this.ft.add(i);
73
- const s = typeof o == "string" && o.endsWith(_e);
74
- i.includes("-") || s ? n.setProperty(i, s ? o.slice(0, -11) : o, s ? de : "") : n[i] = o;
63
+ for (const o of this.ft) t[o] == null && (this.ft.delete(o), o.includes("-") ? n.removeProperty(o) : n[o] = null);
64
+ for (const o in t) {
65
+ const i = t[o];
66
+ if (i != null) {
67
+ this.ft.add(o);
68
+ const s = typeof i == "string" && i.endsWith(We);
69
+ o.includes("-") || s ? n.setProperty(o, s ? i.slice(0, -11) : i, s ? be : "") : n[o] = i;
75
70
  }
76
71
  }
77
- return Se;
72
+ return De;
78
73
  }
79
74
  });
80
- function Ne(e, t, n = []) {
81
- for (const [i, o] of t.entries()) {
82
- const s = e[i], r = s.parentElement || s.getRootNode();
83
- n[i] && n[i](o), r && r !== s && s.replaceWith(o), delete e[i];
75
+ /*! * Lucero - The design system for Luzmo.
76
+ *
77
+ * Copyright © 2025 Luzmo
78
+ * All rights reserved.
79
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
80
+ * This license allows users with a current active Luzmo account to use Lucero.
81
+ * This license terminates automatically if a user no longer has an active Luzmo account.
82
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
83
+ *
84
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
85
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
86
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
87
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
88
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
89
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
90
+ * SOFTWARE.
91
+ * */
92
+ class we extends Event {
93
+ constructor(t, n, o) {
94
+ super("slottable-request", {
95
+ bubbles: !1,
96
+ cancelable: !0,
97
+ composed: !1
98
+ }), this.name = t, this.data = n, this.slotName = o === void 0 ? t : `${t}.${o}`;
99
+ }
100
+ }
101
+ const St = Symbol("remove-slottable-request");
102
+ /*! * Lucero - The design system for Luzmo.
103
+ *
104
+ * Copyright © 2025 Luzmo
105
+ * All rights reserved.
106
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
107
+ * This license allows users with a current active Luzmo account to use Lucero.
108
+ * This license terminates automatically if a user no longer has an active Luzmo account.
109
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
110
+ *
111
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
112
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
113
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
114
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
115
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
116
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
117
+ * SOFTWARE.
118
+ * */
119
+ /**
120
+ * @license
121
+ * Copyright 2021 Google LLC
122
+ * SPDX-License-Identifier: BSD-3-Clause
123
+ */
124
+ function Ue(e) {
125
+ return (t, n) => {
126
+ const { slot: o, selector: i } = e ?? {}, s = "slot" + (o ? `[name=${o}]` : ":not([name])");
127
+ return qe(t, n, { get() {
128
+ var l;
129
+ const r = (l = this.renderRoot) == null ? void 0 : l.querySelector(s), a = (r == null ? void 0 : r.assignedElements(e)) ?? [];
130
+ return i === void 0 ? a : a.filter((c) => c.matches(i));
131
+ } });
132
+ };
133
+ }
134
+ /*! * Lucero - The design system for Luzmo.
135
+ *
136
+ * Copyright © 2025 Luzmo
137
+ * All rights reserved.
138
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
139
+ * This license allows users with a current active Luzmo account to use Lucero.
140
+ * This license terminates automatically if a user no longer has an active Luzmo account.
141
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
142
+ *
143
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
144
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
145
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
146
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
147
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
148
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
149
+ * SOFTWARE.
150
+ * */
151
+ function je(e, t, n = []) {
152
+ for (const [o, i] of t.entries()) {
153
+ const s = e[o], l = s.parentElement || s.getRootNode();
154
+ n[o] && n[o](i), l && l !== s && s.replaceWith(i), delete e[o];
84
155
  }
85
156
  return t;
86
157
  }
87
- const Be = (e, t, {
158
+ const Ve = (e, t, {
88
159
  position: n,
89
- prepareCallback: i
160
+ prepareCallback: o
90
161
  } = { position: "beforeend" }) => {
91
- let { length: o } = e;
92
- if (o === 0)
162
+ let { length: i } = e;
163
+ if (i === 0)
93
164
  return () => e;
94
- let s = 1, r = 0;
95
- (n === "afterbegin" || n === "afterend") && (s = -1, r = o - 1);
96
- const l = new Array(o), a = new Array(o), c = document.createComment(
165
+ let s = 1, l = 0;
166
+ (n === "afterbegin" || n === "afterend") && (s = -1, l = i - 1);
167
+ const r = new Array(i), a = new Array(i), c = document.createComment(
97
168
  "placeholder for reparented element"
98
169
  );
99
170
  do {
100
- const h = e[r];
101
- i && (a[r] = i(h)), l[r] = c.cloneNode();
171
+ const h = e[l];
172
+ o && (a[l] = o(h)), r[l] = c.cloneNode();
102
173
  const d = h.parentElement || h.getRootNode();
103
- d && d !== h && d.replaceChild(l[r], h), t.insertAdjacentElement(n, h), r += s;
104
- } while (--o > 0);
174
+ d && d !== h && d.replaceChild(r[l], h), t.insertAdjacentElement(n, h), l += s;
175
+ } while (--i > 0);
105
176
  return function() {
106
- return Ne(
107
- l,
108
- e,
109
- a
110
- );
177
+ return je(r, e, a);
111
178
  };
112
- }, Me = 1e3, He = 1e3;
113
- class qe {
179
+ }, Ke = 1e3, Xe = 1e3;
180
+ class Ye {
114
181
  constructor(t = {}) {
115
- this.warmUpDelay = Me, this.coolDownDelay = He, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
182
+ this.warmUpDelay = Ke, this.coolDownDelay = Xe, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
116
183
  }
117
184
  openTimer(t) {
118
185
  if (this.cancelCooldownTimer(), !this.component || t !== this.component)
@@ -137,43 +204,43 @@ class qe {
137
204
  this.cooldownTimeout && window.clearTimeout(this.cooldownTimeout), delete this.cooldownTimeout;
138
205
  }
139
206
  }
140
- const xt = new qe(), tt = () => {
141
- }, Bt = (e, t, n) => {
142
- const i = new AbortController(), o = /* @__PURE__ */ new Map(), s = () => {
143
- i.abort(), n();
207
+ const lt = new Ye(), V = () => {
208
+ }, vt = (e, t, n) => {
209
+ const o = new AbortController(), i = /* @__PURE__ */ new Map(), s = () => {
210
+ o.abort(), n();
144
211
  };
145
- let r, l;
212
+ let l, r;
146
213
  const a = requestAnimationFrame(() => {
147
- r = requestAnimationFrame(() => {
148
- l = requestAnimationFrame(() => {
214
+ l = requestAnimationFrame(() => {
215
+ r = requestAnimationFrame(() => {
149
216
  s();
150
217
  });
151
218
  });
152
219
  }), c = (d) => {
153
- d.target === e && (o.set(
220
+ d.target === e && (i.set(
154
221
  d.propertyName,
155
- o.get(d.propertyName) - 1
156
- ), o.get(d.propertyName) || o.delete(d.propertyName), o.size === 0 && s());
222
+ i.get(d.propertyName) - 1
223
+ ), i.get(d.propertyName) || i.delete(d.propertyName), i.size === 0 && s());
157
224
  }, h = (d) => {
158
- d.target === e && (o.has(d.propertyName) || o.set(d.propertyName, 0), o.set(
225
+ d.target === e && (i.has(d.propertyName) || i.set(d.propertyName, 0), i.set(
159
226
  d.propertyName,
160
- o.get(d.propertyName) + 1
161
- ), cancelAnimationFrame(a), cancelAnimationFrame(r), cancelAnimationFrame(l));
227
+ i.get(d.propertyName) + 1
228
+ ), cancelAnimationFrame(a), cancelAnimationFrame(l), cancelAnimationFrame(r));
162
229
  };
163
230
  e.addEventListener("transitionrun", h, {
164
- signal: i.signal
231
+ signal: o.signal
165
232
  }), e.addEventListener("transitionend", c, {
166
- signal: i.signal
233
+ signal: o.signal
167
234
  }), e.addEventListener("transitioncancel", c, {
168
- signal: i.signal
235
+ signal: o.signal
169
236
  }), t();
170
237
  };
171
- function L() {
238
+ function T() {
172
239
  return new Promise((e) => requestAnimationFrame(() => e()));
173
240
  }
174
- class rt extends le {
241
+ class J extends ge {
175
242
  constructor() {
176
- super(...arguments), this.dispose = tt, this.offset = 0, this.willPreventClose = !1;
243
+ super(...arguments), this.dispose = V, this.offset = 0, this.willPreventClose = !1;
177
244
  }
178
245
  applyFocus(t, n) {
179
246
  }
@@ -246,41 +313,41 @@ class rt extends le {
246
313
  });
247
314
  document.dispatchEvent(t);
248
315
  }
249
- static async open(t, n, i, o) {
250
- await Promise.resolve().then(() => st);
251
- const s = arguments.length === 2, r = i || t, l = new this();
316
+ static async open(t, n, o, i) {
317
+ await Promise.resolve().then(() => kt);
318
+ const s = arguments.length === 2, l = o || t, r = new this();
252
319
  let a = !1;
253
- const c = Be([r], l, {
320
+ const c = Ve([l], r, {
254
321
  position: "beforeend",
255
- prepareCallback: (f) => {
256
- const u = f.slot;
257
- return f.removeAttribute("slot"), () => {
258
- f.slot = u;
322
+ prepareCallback: (d) => {
323
+ const p = d.slot;
324
+ return d.removeAttribute("slot"), () => {
325
+ d.slot = p;
259
326
  };
260
327
  }
261
328
  });
262
- if (l.dispose = () => {
263
- l.addEventListener("luzmo-closed", () => {
329
+ if (r.dispose = () => {
330
+ r.addEventListener("luzmo-closed", () => {
264
331
  a || (c(), a = !0), requestAnimationFrame(() => {
265
- l.remove();
332
+ r.remove();
266
333
  });
267
- }), l.open = !1, l.dispose = tt;
268
- }, !s && r && o) {
269
- const f = t, u = n, p = o;
270
- return rt.applyOptions(l, {
271
- ...p,
272
- delayed: p.delayed || r.hasAttribute("delayed"),
273
- trigger: p.virtualTrigger || f,
274
- type: u === "modal" ? "modal" : u === "hover" ? "hint" : "auto"
275
- }), f.after(l), await l.updateComplete, l.open = !0, l.dispose;
334
+ }), r.open = !1, r.dispose = V;
335
+ }, !s && l && i) {
336
+ const d = t, p = n, u = i;
337
+ return J.applyOptions(r, {
338
+ ...u,
339
+ delayed: u.delayed || l.hasAttribute("delayed"),
340
+ trigger: u.virtualTrigger || d,
341
+ type: p === "modal" ? "modal" : p === "hover" ? "hint" : "auto"
342
+ }), d.after(r), await r.updateComplete, r.open = !0, r.dispose;
276
343
  }
277
- const d = n;
278
- return l.append(r), rt.applyOptions(l, {
279
- ...d,
280
- delayed: d.delayed || r.hasAttribute("delayed")
281
- }), l.updateComplete.then(() => {
282
- l.open = !0;
283
- }), l;
344
+ const h = n;
345
+ return r.append(l), J.applyOptions(r, {
346
+ ...h,
347
+ delayed: h.delayed || l.hasAttribute("delayed")
348
+ }), r.updateComplete.then(() => {
349
+ r.open = !0;
350
+ }), r;
284
351
  }
285
352
  static applyOptions(t, n) {
286
353
  t.delayed = !!n.delayed, t.receivesFocus = n.receivesFocus ?? "auto", t.triggerElement = n.trigger || null, t.type = n.type || "modal", t.offset = n.offset ?? 0, t.placement = n.placement, t.willPreventClose = !!n.notImmediatelyClosable;
@@ -288,10 +355,8 @@ class rt extends le {
288
355
  }
289
356
  const Mt = (e) => e.querySelector(
290
357
  ft
291
- ), Ht = (e) => e.assignedElements().find(
292
- (n) => n.matches(ft)
293
- );
294
- class qt extends Event {
358
+ ), Wt = (e) => e.assignedElements().find((t) => t.matches(ft));
359
+ class Ut extends Event {
295
360
  constructor() {
296
361
  super("beforetoggle", {
297
362
  bubbles: !1,
@@ -299,7 +364,7 @@ class qt extends Event {
299
364
  }), this.currentState = "open", this.newState = "closed";
300
365
  }
301
366
  }
302
- class It extends Event {
367
+ class jt extends Event {
303
368
  constructor() {
304
369
  super("beforetoggle", {
305
370
  bubbles: !1,
@@ -307,27 +372,27 @@ class It extends Event {
307
372
  }), this.currentState = "closed", this.newState = "open";
308
373
  }
309
374
  }
310
- class z extends Event {
375
+ class F extends Event {
311
376
  constructor(t, n, {
312
- publish: i,
313
- interaction: o,
377
+ publish: o,
378
+ interaction: i,
314
379
  reason: s
315
380
  }) {
316
381
  super(t, {
317
- bubbles: i,
318
- composed: i
382
+ bubbles: o,
383
+ composed: o
319
384
  }), this.overlay = n, this.detail = {
320
- interaction: o,
385
+ interaction: i,
321
386
  reason: s
322
387
  };
323
388
  }
324
389
  }
325
- class mt {
390
+ class ct {
326
391
  constructor(t, n) {
327
392
  this.x = 0, this.y = 0, this.x = t, this.y = n;
328
393
  }
329
394
  updateBoundingClientRect(t, n) {
330
- this.x = t, this.y = n, rt.update();
395
+ this.x = t, this.y = n, J.update();
331
396
  }
332
397
  getBoundingClientRect() {
333
398
  return {
@@ -345,65 +410,65 @@ class mt {
345
410
  };
346
411
  }
347
412
  }
348
- function Ie(e) {
413
+ function Ge(e) {
349
414
  class t extends e {
350
415
  async manageDialogOpen() {
351
- const i = this.open;
352
- if (await L(), await this.managePosition(), this.open !== i)
416
+ const o = this.open;
417
+ if (await T(), await this.managePosition(), this.open !== o)
353
418
  return;
354
- const o = await this.dialogMakeTransition(i);
355
- this.open === i && await this.dialogApplyFocus(i, o);
419
+ const i = await this.dialogMakeTransition(o);
420
+ this.open === o && await this.dialogApplyFocus(o, i);
356
421
  }
357
- dialogMakeTransition(i) {
358
- let o = null;
359
- const s = (l, a) => () => {
360
- if (l.open = i, !i) {
422
+ dialogMakeTransition(o) {
423
+ let i = null;
424
+ const s = (r, a) => () => {
425
+ if (r.open = o, !o) {
361
426
  const h = () => {
362
- l.removeEventListener("close", h);
427
+ r.removeEventListener("close", h);
363
428
  };
364
- l.addEventListener("close", h);
429
+ r.addEventListener("close", h);
365
430
  }
366
431
  if (a > 0)
367
432
  return;
368
- const c = i ? It : qt;
369
- this.dispatchEvent(new c()), i && (l.matches(ft) && (o = l), o = o || Mt(l), o || l.querySelectorAll("slot").forEach((d) => {
370
- o || (o = Ht(d));
433
+ const c = o ? jt : Ut;
434
+ this.dispatchEvent(new c()), o && (r.matches(ft) && (i = r), i = i || Mt(r), i || r.querySelectorAll("slot").forEach((h) => {
435
+ i || (i = Wt(h));
371
436
  }), !(!this.isConnected || this.dialogEl.open) && this.dialogEl.showModal());
372
- }, r = (l, a) => () => {
373
- if (this.open !== i)
437
+ }, l = (r, a) => () => {
438
+ if (this.open !== o)
374
439
  return;
375
- const c = i ? "luzmo-opened" : "luzmo-closed";
440
+ const c = o ? "luzmo-opened" : "luzmo-closed";
376
441
  if (a > 0) {
377
- l.dispatchEvent(
378
- new z(c, this, {
442
+ r.dispatchEvent(
443
+ new F(c, this, {
379
444
  interaction: this.type,
380
445
  publish: !1
381
446
  })
382
447
  );
383
448
  return;
384
449
  }
385
- if (!this.isConnected || i !== this.open)
450
+ if (!this.isConnected || o !== this.open)
386
451
  return;
387
452
  const h = async () => {
388
- const d = this.triggerElement instanceof mt;
453
+ const d = this.triggerElement instanceof ct;
389
454
  this.dispatchEvent(
390
- new z(c, this, {
455
+ new F(c, this, {
391
456
  interaction: this.type,
392
457
  publish: d
393
458
  })
394
- ), l.dispatchEvent(
395
- new z(c, this, {
459
+ ), r.dispatchEvent(
460
+ new F(c, this, {
396
461
  interaction: this.type,
397
462
  publish: !1
398
463
  })
399
464
  ), this.triggerElement && !d && this.triggerElement.dispatchEvent(
400
- new z(c, this, {
465
+ new F(c, this, {
401
466
  interaction: this.type,
402
467
  publish: !0
403
468
  })
404
- ), this.state = i ? "opened" : "closed", this.returnFocus(), await L(), await L(), i === this.open && i === !1 && this.requestSlottable();
469
+ ), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
405
470
  };
406
- !i && this.dialogEl.open ? (this.dialogEl.addEventListener(
471
+ !o && this.dialogEl.open ? (this.dialogEl.addEventListener(
407
472
  "close",
408
473
  () => {
409
474
  h();
@@ -411,79 +476,77 @@ function Ie(e) {
411
476
  { once: !0 }
412
477
  ), this.dialogEl.close()) : h();
413
478
  };
414
- return this.elements.forEach((l, a) => {
415
- Bt(l, s(l, a), r(l, a));
416
- }), o;
479
+ return this.elements.forEach((r, a) => {
480
+ vt(r, s(r, a), l(r, a));
481
+ }), i;
417
482
  }
418
- dialogApplyFocus(i, o) {
419
- this.applyFocus(i, o);
483
+ dialogApplyFocus(o, i) {
484
+ this.applyFocus(o, i);
420
485
  }
421
486
  }
422
487
  return t;
423
488
  }
424
- function We(e) {
489
+ function Je(e) {
425
490
  class t extends e {
426
491
  async managePopoverOpen() {
427
492
  await this.managePosition();
428
493
  }
429
- async manageDelay(i) {
430
- if (i === !1 || i !== this.open) {
431
- xt.close(this);
494
+ async manageDelay(o) {
495
+ if (o === !1 || o !== this.open) {
496
+ lt.close(this);
432
497
  return;
433
498
  }
434
- this.delayed && await xt.openTimer(this) && (this.open = !i);
499
+ this.delayed && await lt.openTimer(this) && (this.open = !o);
435
500
  }
436
- ensureOnDOM(i) {
501
+ ensureOnDOM(o) {
437
502
  document.body.offsetHeight;
438
503
  }
439
- makeTransition(i) {
440
- if (this.open !== i)
504
+ makeTransition(o) {
505
+ if (this.open !== o)
441
506
  return null;
442
- let o = null;
443
- const s = (l, a) => () => {
444
- if (i !== this.open)
445
- return;
446
- if (l.open = i, a === 0) {
447
- const h = i ? It : qt;
448
- this.dispatchEvent(new h());
507
+ let i = null;
508
+ const s = (r, a) => () => {
509
+ if (o === this.open) {
510
+ if (r.open = o, a === 0) {
511
+ const c = o ? jt : Ut;
512
+ this.dispatchEvent(new c());
513
+ }
514
+ o !== !0 || (r.matches(ft) && (i = r), i = i || Mt(r), i) || r.querySelectorAll("slot").forEach((c) => {
515
+ i || (i = Wt(c));
516
+ });
449
517
  }
450
- if (i !== !0 || (l.matches(ft) && (o = l), o = o || Mt(l), o))
518
+ }, l = (r, a) => async () => {
519
+ if (this.open !== o)
451
520
  return;
452
- l.querySelectorAll("slot").forEach((h) => {
453
- o || (o = Ht(h));
454
- });
455
- }, r = (l, a) => async () => {
456
- if (this.open !== i)
457
- return;
458
- const c = i ? "luzmo-opened" : "luzmo-closed";
459
- if (l.dispatchEvent(
460
- new z(c, this, {
521
+ const c = o ? "luzmo-opened" : "luzmo-closed";
522
+ if (r.dispatchEvent(
523
+ new F(c, this, {
461
524
  interaction: this.type
462
525
  })
463
526
  ), a > 0)
464
527
  return;
465
- const h = this.triggerElement instanceof mt;
528
+ const h = this.triggerElement instanceof ct;
466
529
  this.dispatchEvent(
467
- new z(c, this, {
530
+ new F(c, this, {
468
531
  interaction: this.type,
469
532
  publish: h
470
533
  })
471
534
  ), this.triggerElement && !h && this.triggerElement.dispatchEvent(
472
- new z(c, this, {
535
+ new F(c, this, {
473
536
  interaction: this.type,
474
537
  publish: !0
475
538
  })
476
- ), this.state = i ? "opened" : "closed", this.returnFocus(), await L(), await L(), i === this.open && i === !1 && this.requestSlottable();
539
+ ), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
477
540
  };
478
- return this.elements.forEach((l, a) => {
479
- Bt(l, s(l, a), r(l, a));
480
- }), o;
541
+ return this.elements.forEach((r, a) => {
542
+ vt(r, s(r, a), l(r, a));
543
+ }), i;
481
544
  }
482
545
  }
483
546
  return t;
484
547
  }
485
- const Ve = CSS.supports("(overlay: auto)");
486
- function Qt(e) {
548
+ const Ze = CSS.supports("(overlay: auto)");
549
+ function le(e) {
487
550
  let t = !1;
488
551
  try {
489
552
  t = e.matches(":popover-open");
@@ -496,39 +559,39 @@ function Qt(e) {
496
559
  }
497
560
  return t || n;
498
561
  }
499
- function Ue(e) {
562
+ function Qe(e) {
500
563
  class t extends e {
501
- async manageDelay(i) {
502
- if (i === !1 || i !== this.open) {
503
- xt.close(this);
564
+ async manageDelay(o) {
565
+ if (o === !1 || o !== this.open) {
566
+ lt.close(this);
504
567
  return;
505
568
  }
506
- this.delayed && await xt.openTimer(this) && (this.open = !i);
569
+ this.delayed && await lt.openTimer(this) && (this.open = !o);
507
570
  }
508
571
  /**
509
572
  * A popover should be hidden _after_ it is no longer on top-layer because
510
573
  * the position metrics will have changed from when it was originally positioned.
511
574
  */
512
- shouldHidePopover(i) {
513
- if (i && this.open !== i)
575
+ shouldHidePopover(o) {
576
+ if (o && this.open !== o)
514
577
  return;
515
- const o = async ({
578
+ const i = async ({
516
579
  newState: s
517
580
  } = {}) => {
518
581
  s !== "open" && await this.placementController.resetOverlayPosition();
519
582
  };
520
- if (!Qt(this.dialogEl)) {
521
- o();
583
+ if (!le(this.dialogEl)) {
584
+ i();
522
585
  return;
523
586
  }
524
- this.dialogEl.addEventListener("toggle", o, {
587
+ this.dialogEl.addEventListener("toggle", i, {
525
588
  once: !0
526
589
  });
527
590
  }
528
- shouldShowPopover(i) {
529
- let o = !1;
591
+ shouldShowPopover(o) {
592
+ let i = !1;
530
593
  try {
531
- o = this.dialogEl.matches(":popover-open");
594
+ i = this.dialogEl.matches(":popover-open");
532
595
  } catch {
533
596
  }
534
597
  let s = !1;
@@ -536,32 +599,30 @@ function Ue(e) {
536
599
  s = this.dialogEl.matches(":open");
537
600
  } catch {
538
601
  }
539
- i && this.open === i && !o && !s && this.isConnected && (this.dialogEl.showPopover(), this.managePosition());
602
+ o && this.open === o && !i && !s && this.isConnected && (this.dialogEl.showPopover(), this.managePosition());
540
603
  }
541
- async ensureOnDOM(i) {
542
- await L(), Ve || await this.shouldHidePopover(i), this.shouldShowPopover(i), await L();
604
+ async ensureOnDOM(o) {
605
+ await T(), Ze || await this.shouldHidePopover(o), this.shouldShowPopover(o), await T();
543
606
  }
544
- makeTransition(i) {
545
- if (this.open !== i)
607
+ makeTransition(o) {
608
+ if (this.open !== o)
546
609
  return null;
547
- let o = null;
548
- const s = (l, a) => () => {
549
- if (l.open = i, a === 0) {
550
- const h = i ? It : qt;
551
- this.dispatchEvent(new h());
610
+ let i = null;
611
+ const s = (r, a) => () => {
612
+ if (r.open = o, a === 0) {
613
+ const c = o ? jt : Ut;
614
+ this.dispatchEvent(new c());
552
615
  }
553
- if (!i || (l.matches(ft) && (o = l), o = o || Mt(l), o))
554
- return;
555
- l.querySelectorAll("slot").forEach((h) => {
556
- o || (o = Ht(h));
616
+ !o || (r.matches(ft) && (i = r), i = i || Mt(r), i) || r.querySelectorAll("slot").forEach((c) => {
617
+ i || (i = Wt(c));
557
618
  });
558
- }, r = (l, a) => () => {
559
- if (this.open !== i)
619
+ }, l = (r, a) => () => {
620
+ if (this.open !== o)
560
621
  return;
561
- const c = i ? "luzmo-opened" : "luzmo-closed";
622
+ const c = o ? "luzmo-opened" : "luzmo-closed";
562
623
  if (a > 0) {
563
- l.dispatchEvent(
564
- new z(c, this, {
624
+ r.dispatchEvent(
625
+ new F(c, this, {
565
626
  interaction: this.type,
566
627
  publish: !1
567
628
  })
@@ -569,31 +630,31 @@ function Ue(e) {
569
630
  return;
570
631
  }
571
632
  const h = async () => {
572
- if (this.open !== i)
633
+ if (this.open !== o)
573
634
  return;
574
- await L();
575
- const f = this.triggerElement instanceof mt;
635
+ await T();
636
+ const p = this.triggerElement instanceof ct;
576
637
  this.dispatchEvent(
577
- new z(c, this, {
638
+ new F(c, this, {
578
639
  interaction: this.type,
579
- publish: f
640
+ publish: p
580
641
  })
581
- ), l.dispatchEvent(
582
- new z(c, this, {
642
+ ), r.dispatchEvent(
643
+ new F(c, this, {
583
644
  interaction: this.type,
584
645
  publish: !1
585
646
  })
586
- ), this.triggerElement && !f && this.triggerElement.dispatchEvent(
587
- new z(c, this, {
647
+ ), this.triggerElement && !p && this.triggerElement.dispatchEvent(
648
+ new F(c, this, {
588
649
  interaction: this.type,
589
650
  publish: !0
590
651
  })
591
- ), this.state = i ? "opened" : "closed", this.returnFocus(), await L(), await L(), i === this.open && i === !1 && this.requestSlottable();
652
+ ), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
592
653
  };
593
- if (this.open !== i)
654
+ if (this.open !== o)
594
655
  return;
595
- const d = Qt(this.dialogEl);
596
- i !== !0 && d && this.isConnected ? (this.dialogEl.addEventListener(
656
+ const d = le(this.dialogEl);
657
+ o !== !0 && d && this.isConnected ? (this.dialogEl.addEventListener(
597
658
  "beforetoggle",
598
659
  () => {
599
660
  h();
@@ -601,15 +662,15 @@ function Ue(e) {
601
662
  { once: !0 }
602
663
  ), this.dialogEl.hidePopover()) : h();
603
664
  };
604
- return this.elements.forEach((l, a) => {
605
- Bt(l, s(l, a), r(l, a));
606
- }), o;
665
+ return this.elements.forEach((r, a) => {
666
+ vt(r, s(r, a), l(r, a));
667
+ }), i;
607
668
  }
608
669
  }
609
670
  return t;
610
671
  }
611
- const je = "showPopover" in document.createElement("div");
612
- class Ke {
672
+ const to = "showPopover" in document.createElement("div");
673
+ class eo {
613
674
  constructor() {
614
675
  this.root = document.body, this.stack = [], this.handlePointerdown = (t) => {
615
676
  this.pointerdownPath = t.composedPath(), this.lastOverlay = this.stack.at(-1);
@@ -619,21 +680,25 @@ class Ke {
619
680
  return;
620
681
  const n = this.lastOverlay;
621
682
  this.lastOverlay = void 0;
622
- const i = this.stack.length - 1, o = this.stack.filter((s, r) => !t.find(
623
- (a) => (
683
+ const o = this.stack.length - 1, i = this.stack.filter((s, l) => !t.find(
684
+ (r) => (
624
685
  // The Overlay is in the stack
625
- a === s || a === (s == null ? void 0 : s.triggerElement) && (s == null ? void 0 : s.type) === "hint" || r === i && s !== n && s.triggerInteraction === "longpress"
686
+ r === s || // The Overlay trigger is in the stack and the Overlay is a "hint"
687
+ r === (s == null ? void 0 : s.triggerElement) && (s == null ? void 0 : s.type) === "hint" || // The last Overlay in the stack is not the last Overlay at `pointerdown` time and has a
688
+ // `triggerInteraction` of "longpress", meaning it was opened by this poitner interaction
689
+ l === o && s !== n && s.triggerInteraction === "longpress"
626
690
  )
627
- ) && !s.shouldPreventClose() && s.type !== "manual" && !(s.type === "modal" && n !== s));
628
- o.reverse(), o.forEach((s) => {
691
+ ) && !s.shouldPreventClose() && s.type !== "manual" && // Don't close if this overlay is modal and not on top of the overlay stack.
692
+ !(s.type === "modal" && n !== s));
693
+ i.reverse(), i.forEach((s) => {
629
694
  this.closeOverlay(s);
630
- let r = s.parentOverlayToForceClose;
631
- for (; r; )
632
- this.closeOverlay(r), r = r.parentOverlayToForceClose;
695
+ let l = s.parentOverlayToForceClose;
696
+ for (; l; )
697
+ this.closeOverlay(l), l = l.parentOverlayToForceClose;
633
698
  });
634
699
  }, this.handleBeforetoggle = (t) => {
635
- const { target: n, newState: i } = t;
636
- i !== "open" && this.closeOverlay(n);
700
+ const { target: n, newState: o } = t;
701
+ o !== "open" && this.closeOverlay(n);
637
702
  }, this.handleKeydown = (t) => {
638
703
  if (t.code !== "Escape" || this.stack.length === 0)
639
704
  return;
@@ -642,7 +707,7 @@ class Ke {
642
707
  t.preventDefault();
643
708
  return;
644
709
  }
645
- je || (n == null ? void 0 : n.type) !== "manual" && n && this.closeOverlay(n);
710
+ to || (n == null ? void 0 : n.type) !== "manual" && n && this.closeOverlay(n);
646
711
  }, this.bindEvents();
647
712
  }
648
713
  get document() {
@@ -681,27 +746,29 @@ class Ke {
681
746
  return;
682
747
  }
683
748
  if (t.type === "auto" || t.type === "modal" || t.type === "page") {
684
- const n = "luzmo-overlay-query-path", i = new Event(n, {
749
+ const n = "luzmo-overlay-query-path", o = new Event(n, {
685
750
  composed: !0,
686
751
  bubbles: !0
687
752
  });
688
753
  t.addEventListener(
689
754
  n,
690
- (o) => {
691
- const s = o.composedPath();
692
- this.stack.forEach((r) => {
693
- !s.find((a) => a === r) && r.type !== "manual" && r.type !== "modal" && this.closeOverlay(r);
755
+ (i) => {
756
+ const s = i.composedPath();
757
+ this.stack.forEach((l) => {
758
+ !s.find((r) => r === l) && l.type !== "manual" && l.type !== "modal" && this.closeOverlay(l);
694
759
  });
695
760
  },
696
761
  { once: !0 }
697
- ), t.dispatchEvent(i);
762
+ ), t.dispatchEvent(o);
698
763
  } else if (t.type === "hint") {
699
- if (this.stack.some((i) => i.type !== "manual" && i.triggerElement && i.triggerElement === t.triggerElement)) {
764
+ if (this.stack.some(
765
+ (n) => n.type !== "manual" && n.triggerElement && n.triggerElement === t.triggerElement
766
+ )) {
700
767
  t.open = !1;
701
768
  return;
702
769
  }
703
- this.stack.forEach((i) => {
704
- i.type === "hint" && this.closeOverlay(i);
770
+ this.stack.forEach((n) => {
771
+ n.type === "hint" && this.closeOverlay(n);
705
772
  });
706
773
  }
707
774
  requestAnimationFrame(() => {
@@ -714,77 +781,77 @@ class Ke {
714
781
  this.closeOverlay(t);
715
782
  }
716
783
  }
717
- const Zt = new Ke(), Ye = ':host{display:contents;pointer-events:none;--luzmo-overlay-animation-distance: .5rem}:host(:has(> luzmo-tooltip)){--luzmo-overlay-animation-distance: var( --luzmo-tooltip-animation-distance, 4px )}.dialog{margin:0;border:0;background:none;padding:0;position:fixed;overflow:visible;opacity:1!important;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);height:auto;inset:auto;top:0;left:0;display:flex;--luzmo-overlay-open: true}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}:host(:not([open])) .dialog{--luzmo-overlay-open: false}.dialog::backdrop{display:none}.dialog:before{position:absolute;top:-999em;right:-999em;bottom:-999em;left:-999em;content:"";pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports (overlay: auto){.dialog{display:none;transition:all var(--luzmo-overlay-animation-duration, .13s),translate 0s,display var(--luzmo-overlay-animation-duration, .13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base, 1000) + var(--luzmo-overlay-open-count))}}', J = Math.min, D = Math.max, Ct = Math.round, yt = Math.floor, q = (e) => ({
784
+ const ae = new eo(), oo = ':host{display:contents;pointer-events:none;--luzmo-overlay-animation-distance: .5rem}:host(:has(> luzmo-tooltip)){--luzmo-overlay-animation-distance: var( --luzmo-tooltip-animation-distance, 4px )}.dialog{margin:0;border:0;background:none;padding:0;position:fixed;overflow:visible;opacity:1!important;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);height:auto;inset:auto;top:0;left:0;display:flex;--luzmo-overlay-open: true}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}:host(:not([open])) .dialog{--luzmo-overlay-open: false}.dialog::backdrop{display:none}.dialog:before{position:absolute;top:-999em;right:-999em;bottom:-999em;left:-999em;content:"";pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports (overlay: auto){.dialog{display:none;transition:all var(--luzmo-overlay-animation-duration, .13s),translate 0s,display var(--luzmo-overlay-animation-duration, .13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base, 1000) + var(--luzmo-overlay-open-count))}}', Z = Math.min, L = Math.max, Ot = Math.round, xt = Math.floor, I = (e) => ({
718
785
  x: e,
719
786
  y: e
720
- }), Ge = {
787
+ }), no = {
721
788
  left: "right",
722
789
  right: "left",
723
790
  bottom: "top",
724
791
  top: "bottom"
725
- }, Xe = {
792
+ }, io = {
726
793
  start: "end",
727
794
  end: "start"
728
795
  };
729
- function $t(e, t, n) {
730
- return D(e, J(t, n));
796
+ function qt(e, t, n) {
797
+ return L(e, Z(t, n));
731
798
  }
732
- function at(e, t) {
799
+ function ht(e, t) {
733
800
  return typeof e == "function" ? e(t) : e;
734
801
  }
735
802
  function Q(e) {
736
803
  return e.split("-")[0];
737
804
  }
738
- function ct(e) {
805
+ function dt(e) {
739
806
  return e.split("-")[1];
740
807
  }
741
- function ue(e) {
808
+ function xe(e) {
742
809
  return e === "x" ? "y" : "x";
743
810
  }
744
- function Wt(e) {
811
+ function Vt(e) {
745
812
  return e === "y" ? "height" : "width";
746
813
  }
747
814
  function et(e) {
748
815
  return ["top", "bottom"].includes(Q(e)) ? "y" : "x";
749
816
  }
750
- function Vt(e) {
751
- return ue(et(e));
817
+ function Kt(e) {
818
+ return xe(et(e));
752
819
  }
753
- function Je(e, t, n) {
820
+ function so(e, t, n) {
754
821
  n === void 0 && (n = !1);
755
- const i = ct(e), o = Vt(e), s = Wt(o);
756
- let r = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
757
- return t.reference[s] > t.floating[s] && (r = Pt(r)), [r, Pt(r)];
822
+ const o = dt(e), i = Kt(e), s = Vt(i);
823
+ let l = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
824
+ return t.reference[s] > t.floating[s] && (l = Pt(l)), [l, Pt(l)];
758
825
  }
759
- function Qe(e) {
826
+ function ro(e) {
760
827
  const t = Pt(e);
761
- return [Ft(e), t, Ft(t)];
828
+ return [Ht(e), t, Ht(t)];
762
829
  }
763
- function Ft(e) {
764
- return e.replace(/start|end/g, (t) => Xe[t]);
830
+ function Ht(e) {
831
+ return e.replace(/start|end/g, (t) => io[t]);
765
832
  }
766
- function Ze(e, t, n) {
767
- const i = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
833
+ function lo(e, t, n) {
834
+ const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], l = ["bottom", "top"];
768
835
  switch (e) {
769
836
  case "top":
770
837
  case "bottom":
771
- return n ? t ? o : i : t ? i : o;
838
+ return n ? t ? i : o : t ? o : i;
772
839
  case "left":
773
840
  case "right":
774
- return t ? s : r;
841
+ return t ? s : l;
775
842
  default:
776
843
  return [];
777
844
  }
778
845
  }
779
- function tn(e, t, n, i) {
780
- const o = ct(e);
781
- let s = Ze(Q(e), n === "start", i);
782
- return o && (s = s.map((r) => r + "-" + o), t && (s = s.concat(s.map(Ft)))), s;
846
+ function ao(e, t, n, o) {
847
+ const i = dt(e);
848
+ let s = lo(Q(e), n === "start", o);
849
+ return i && (s = s.map((l) => l + "-" + i), t && (s = s.concat(s.map(Ht)))), s;
783
850
  }
784
851
  function Pt(e) {
785
- return e.replace(/left|right|bottom|top/g, (t) => Ge[t]);
852
+ return e.replace(/left|right|bottom|top/g, (t) => no[t]);
786
853
  }
787
- function en(e) {
854
+ function co(e) {
788
855
  return {
789
856
  top: 0,
790
857
  right: 0,
@@ -793,113 +860,113 @@ function en(e) {
793
860
  ...e
794
861
  };
795
862
  }
796
- function pe(e) {
797
- return typeof e != "number" ? en(e) : {
863
+ function Ee(e) {
864
+ return typeof e != "number" ? co(e) : {
798
865
  top: e,
799
866
  right: e,
800
867
  bottom: e,
801
868
  left: e
802
869
  };
803
870
  }
804
- function Ot(e) {
871
+ function Tt(e) {
805
872
  const {
806
873
  x: t,
807
874
  y: n,
808
- width: i,
809
- height: o
875
+ width: o,
876
+ height: i
810
877
  } = e;
811
878
  return {
812
- width: i,
813
- height: o,
879
+ width: o,
880
+ height: i,
814
881
  top: n,
815
882
  left: t,
816
- right: t + i,
817
- bottom: n + o,
883
+ right: t + o,
884
+ bottom: n + i,
818
885
  x: t,
819
886
  y: n
820
887
  };
821
888
  }
822
- function te(e, t, n) {
889
+ function ce(e, t, n) {
823
890
  let {
824
- reference: i,
825
- floating: o
891
+ reference: o,
892
+ floating: i
826
893
  } = e;
827
- const s = et(t), r = Vt(t), l = Wt(r), a = Q(t), c = s === "y", h = i.x + i.width / 2 - o.width / 2, d = i.y + i.height / 2 - o.height / 2, f = i[l] / 2 - o[l] / 2;
894
+ const s = et(t), l = Kt(t), r = Vt(l), a = Q(t), c = s === "y", h = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[r] / 2 - i[r] / 2;
828
895
  let u;
829
896
  switch (a) {
830
897
  case "top":
831
898
  u = {
832
899
  x: h,
833
- y: i.y - o.height
900
+ y: o.y - i.height
834
901
  };
835
902
  break;
836
903
  case "bottom":
837
904
  u = {
838
905
  x: h,
839
- y: i.y + i.height
906
+ y: o.y + o.height
840
907
  };
841
908
  break;
842
909
  case "right":
843
910
  u = {
844
- x: i.x + i.width,
911
+ x: o.x + o.width,
845
912
  y: d
846
913
  };
847
914
  break;
848
915
  case "left":
849
916
  u = {
850
- x: i.x - o.width,
917
+ x: o.x - i.width,
851
918
  y: d
852
919
  };
853
920
  break;
854
921
  default:
855
922
  u = {
856
- x: i.x,
857
- y: i.y
923
+ x: o.x,
924
+ y: o.y
858
925
  };
859
926
  }
860
- switch (ct(t)) {
927
+ switch (dt(t)) {
861
928
  case "start":
862
- u[r] -= f * (n && c ? -1 : 1);
929
+ u[l] -= p * (n && c ? -1 : 1);
863
930
  break;
864
931
  case "end":
865
- u[r] += f * (n && c ? -1 : 1);
932
+ u[l] += p * (n && c ? -1 : 1);
866
933
  break;
867
934
  }
868
935
  return u;
869
936
  }
870
- const nn = async (e, t, n) => {
937
+ const ho = async (e, t, n) => {
871
938
  const {
872
- placement: i = "bottom",
873
- strategy: o = "absolute",
939
+ placement: o = "bottom",
940
+ strategy: i = "absolute",
874
941
  middleware: s = [],
875
- platform: r
876
- } = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(t));
877
- let c = await r.getElementRects({
942
+ platform: l
943
+ } = n, r = s.filter(Boolean), a = await (l.isRTL == null ? void 0 : l.isRTL(t));
944
+ let c = await l.getElementRects({
878
945
  reference: e,
879
946
  floating: t,
880
- strategy: o
947
+ strategy: i
881
948
  }), {
882
949
  x: h,
883
950
  y: d
884
- } = te(c, i, a), f = i, u = {}, p = 0;
885
- for (let m = 0; m < l.length; m++) {
951
+ } = ce(c, o, a), p = o, u = {}, m = 0;
952
+ for (let g = 0; g < r.length; g++) {
886
953
  const {
887
- name: v,
888
- fn: g
889
- } = l[m], {
954
+ name: f,
955
+ fn: v
956
+ } = r[g], {
890
957
  x: y,
891
958
  y: b,
892
- data: E,
893
- reset: w
894
- } = await g({
959
+ data: w,
960
+ reset: E
961
+ } = await v({
895
962
  x: h,
896
963
  y: d,
897
- initialPlacement: i,
898
- placement: f,
899
- strategy: o,
964
+ initialPlacement: o,
965
+ placement: p,
966
+ strategy: i,
900
967
  middlewareData: u,
901
968
  rects: c,
902
- platform: r,
969
+ platform: l,
903
970
  elements: {
904
971
  reference: e,
905
972
  floating: t
@@ -907,182 +974,182 @@ const nn = async (e, t, n) => {
907
974
  });
908
975
  h = y ?? h, d = b ?? d, u = {
909
976
  ...u,
910
- [v]: {
911
- ...u[v],
912
- ...E
977
+ [f]: {
978
+ ...u[f],
979
+ ...w
913
980
  }
914
- }, w && p <= 50 && (p++, typeof w == "object" && (w.placement && (f = w.placement), w.rects && (c = w.rects === !0 ? await r.getElementRects({
981
+ }, E && m <= 50 && (m++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (c = E.rects === !0 ? await l.getElementRects({
915
982
  reference: e,
916
983
  floating: t,
917
- strategy: o
918
- }) : w.rects), {
984
+ strategy: i
985
+ }) : E.rects), {
919
986
  x: h,
920
987
  y: d
921
- } = te(c, f, a)), m = -1);
988
+ } = ce(c, p, a)), g = -1);
922
989
  }
923
990
  return {
924
991
  x: h,
925
992
  y: d,
926
- placement: f,
927
- strategy: o,
993
+ placement: p,
994
+ strategy: i,
928
995
  middlewareData: u
929
996
  };
930
997
  };
931
- async function Ut(e, t) {
998
+ async function Xt(e, t) {
932
999
  var n;
933
1000
  t === void 0 && (t = {});
934
1001
  const {
935
- x: i,
936
- y: o,
1002
+ x: o,
1003
+ y: i,
937
1004
  platform: s,
938
- rects: r,
939
- elements: l,
1005
+ rects: l,
1006
+ elements: r,
940
1007
  strategy: a
941
1008
  } = e, {
942
1009
  boundary: c = "clippingAncestors",
943
1010
  rootBoundary: h = "viewport",
944
1011
  elementContext: d = "floating",
945
- altBoundary: f = !1,
1012
+ altBoundary: p = !1,
946
1013
  padding: u = 0
947
- } = at(t, e), p = pe(u), v = l[f ? d === "floating" ? "reference" : "floating" : d], g = Ot(await s.getClippingRect({
948
- element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
1014
+ } = ht(t, e), m = Ee(u), g = r[p ? d === "floating" ? "reference" : "floating" : d], f = Tt(await s.getClippingRect({
1015
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
949
1016
  boundary: c,
950
1017
  rootBoundary: h,
951
1018
  strategy: a
952
- })), y = d === "floating" ? {
953
- x: i,
954
- y: o,
955
- width: r.floating.width,
956
- height: r.floating.height
957
- } : r.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), E = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
1019
+ })), v = d === "floating" ? {
1020
+ x: o,
1021
+ y: i,
1022
+ width: l.floating.width,
1023
+ height: l.floating.height
1024
+ } : l.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
958
1025
  x: 1,
959
1026
  y: 1
960
1027
  } : {
961
1028
  x: 1,
962
1029
  y: 1
963
- }, w = Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
964
- elements: l,
965
- rect: y,
966
- offsetParent: b,
1030
+ }, w = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
1031
+ elements: r,
1032
+ rect: v,
1033
+ offsetParent: y,
967
1034
  strategy: a
968
- }) : y);
1035
+ }) : v);
969
1036
  return {
970
- top: (g.top - w.top + p.top) / E.y,
971
- bottom: (w.bottom - g.bottom + p.bottom) / E.y,
972
- left: (g.left - w.left + p.left) / E.x,
973
- right: (w.right - g.right + p.right) / E.x
1037
+ top: (f.top - w.top + m.top) / b.y,
1038
+ bottom: (w.bottom - f.bottom + m.bottom) / b.y,
1039
+ left: (f.left - w.left + m.left) / b.x,
1040
+ right: (w.right - f.right + m.right) / b.x
974
1041
  };
975
1042
  }
976
- const on = (e) => ({
1043
+ const uo = (e) => ({
977
1044
  name: "arrow",
978
1045
  options: e,
979
1046
  async fn(t) {
980
1047
  const {
981
1048
  x: n,
982
- y: i,
983
- placement: o,
1049
+ y: o,
1050
+ placement: i,
984
1051
  rects: s,
985
- platform: r,
986
- elements: l,
1052
+ platform: l,
1053
+ elements: r,
987
1054
  middlewareData: a
988
1055
  } = t, {
989
1056
  element: c,
990
1057
  padding: h = 0
991
- } = at(e, t) || {};
1058
+ } = ht(e, t) || {};
992
1059
  if (c == null)
993
1060
  return {};
994
- const d = pe(h), f = {
1061
+ const d = Ee(h), p = {
995
1062
  x: n,
996
- y: i
997
- }, u = Vt(o), p = Wt(u), m = await r.getDimensions(c), v = u === "y", g = v ? "top" : "left", y = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", E = s.reference[p] + s.reference[u] - f[u] - s.floating[p], w = f[u] - s.reference[u], $ = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
998
- let C = $ ? $[b] : 0;
999
- (!C || !await (r.isElement == null ? void 0 : r.isElement($))) && (C = l.floating[b] || s.floating[p]);
1000
- const V = E / 2 - w / 2, B = C / 2 - m[p] / 2 - 1, F = J(d[g], B), K = J(d[y], B), M = F, Y = C - m[p] - K, A = C / 2 - m[p] / 2 + V, it = $t(M, A, Y), U = !a.arrow && ct(o) != null && A !== it && s.reference[p] / 2 - (A < M ? F : K) - m[p] / 2 < 0, H = U ? A < M ? A - M : A - Y : 0;
1063
+ y: o
1064
+ }, u = Kt(i), m = Vt(u), g = await l.getDimensions(c), f = u === "y", v = f ? "top" : "left", y = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", w = s.reference[m] + s.reference[u] - p[u] - s.floating[m], E = p[u] - s.reference[u], S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
1065
+ let $ = S ? S[b] : 0;
1066
+ (!$ || !await (l.isElement == null ? void 0 : l.isElement(S))) && ($ = r.floating[b] || s.floating[m]);
1067
+ const U = w / 2 - E / 2, H = $ / 2 - g[m] / 2 - 1, D = Z(d[v], H), K = Z(d[y], H), B = D, X = $ - g[m] - K, O = $ / 2 - g[m] / 2 + U, it = qt(B, O, X), j = !a.arrow && dt(i) != null && O !== it && s.reference[m] / 2 - (O < B ? D : K) - g[m] / 2 < 0, _ = j ? O < B ? O - B : O - X : 0;
1001
1068
  return {
1002
- [u]: f[u] + H,
1069
+ [u]: p[u] + _,
1003
1070
  data: {
1004
1071
  [u]: it,
1005
- centerOffset: A - it - H,
1006
- ...U && {
1007
- alignmentOffset: H
1072
+ centerOffset: O - it - _,
1073
+ ...j && {
1074
+ alignmentOffset: _
1008
1075
  }
1009
1076
  },
1010
- reset: U
1077
+ reset: j
1011
1078
  };
1012
1079
  }
1013
- }), sn = function(e) {
1080
+ }), po = function(e) {
1014
1081
  return e === void 0 && (e = {}), {
1015
1082
  name: "flip",
1016
1083
  options: e,
1017
1084
  async fn(t) {
1018
- var n, i;
1085
+ var n, o;
1019
1086
  const {
1020
- placement: o,
1087
+ placement: i,
1021
1088
  middlewareData: s,
1022
- rects: r,
1023
- initialPlacement: l,
1089
+ rects: l,
1090
+ initialPlacement: r,
1024
1091
  platform: a,
1025
1092
  elements: c
1026
1093
  } = t, {
1027
1094
  mainAxis: h = !0,
1028
1095
  crossAxis: d = !0,
1029
- fallbackPlacements: f,
1096
+ fallbackPlacements: p,
1030
1097
  fallbackStrategy: u = "bestFit",
1031
- fallbackAxisSideDirection: p = "none",
1032
- flipAlignment: m = !0,
1033
- ...v
1034
- } = at(e, t);
1098
+ fallbackAxisSideDirection: m = "none",
1099
+ flipAlignment: g = !0,
1100
+ ...f
1101
+ } = ht(e, t);
1035
1102
  if ((n = s.arrow) != null && n.alignmentOffset)
1036
1103
  return {};
1037
- const g = Q(o), y = et(l), b = Q(l) === l, E = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), w = f || (b || !m ? [Pt(l)] : Qe(l)), $ = p !== "none";
1038
- !f && $ && w.push(...tn(l, m, p, E));
1039
- const C = [l, ...w], V = await Ut(t, v), B = [];
1040
- let F = ((i = s.flip) == null ? void 0 : i.overflows) || [];
1041
- if (h && B.push(V[g]), d) {
1042
- const A = Je(o, r, E);
1043
- B.push(V[A[0]], V[A[1]]);
1104
+ const v = Q(i), y = et(r), b = Q(r) === r, w = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), E = p || (b || !g ? [Pt(r)] : ro(r)), S = m !== "none";
1105
+ !p && S && E.push(...ao(r, g, m, w));
1106
+ const $ = [r, ...E], U = await Xt(t, f), H = [];
1107
+ let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
1108
+ if (h && H.push(U[v]), d) {
1109
+ const O = so(i, l, w);
1110
+ H.push(U[O[0]], U[O[1]]);
1044
1111
  }
1045
- if (F = [...F, {
1046
- placement: o,
1047
- overflows: B
1048
- }], !B.every((A) => A <= 0)) {
1049
- var K, M;
1050
- const A = (((K = s.flip) == null ? void 0 : K.index) || 0) + 1, it = C[A];
1112
+ if (D = [...D, {
1113
+ placement: i,
1114
+ overflows: H
1115
+ }], !H.every((O) => O <= 0)) {
1116
+ var K, B;
1117
+ const O = (((K = s.flip) == null ? void 0 : K.index) || 0) + 1, it = $[O];
1051
1118
  if (it)
1052
1119
  return {
1053
1120
  data: {
1054
- index: A,
1055
- overflows: F
1121
+ index: O,
1122
+ overflows: D
1056
1123
  },
1057
1124
  reset: {
1058
1125
  placement: it
1059
1126
  }
1060
1127
  };
1061
- let U = (M = F.filter((H) => H.overflows[0] <= 0).sort((H, G) => H.overflows[1] - G.overflows[1])[0]) == null ? void 0 : M.placement;
1062
- if (!U)
1128
+ let j = (B = D.filter((_) => _.overflows[0] <= 0).sort((_, Y) => _.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : B.placement;
1129
+ if (!j)
1063
1130
  switch (u) {
1064
1131
  case "bestFit": {
1065
- var Y;
1066
- const H = (Y = F.filter((G) => {
1067
- if ($) {
1068
- const X = et(G.placement);
1069
- return X === y || // Create a bias to the `y` side axis due to horizontal
1132
+ var X;
1133
+ const _ = (X = D.filter((Y) => {
1134
+ if (S) {
1135
+ const G = et(Y.placement);
1136
+ return G === y || // Create a bias to the `y` side axis due to horizontal
1070
1137
  // reading directions favoring greater width.
1071
- X === "y";
1138
+ G === "y";
1072
1139
  }
1073
1140
  return !0;
1074
- }).map((G) => [G.placement, G.overflows.filter((X) => X > 0).reduce((X, Pe) => X + Pe, 0)]).sort((G, X) => G[1] - X[1])[0]) == null ? void 0 : Y[0];
1075
- H && (U = H);
1141
+ }).map((Y) => [Y.placement, Y.overflows.filter((G) => G > 0).reduce((G, $e) => G + $e, 0)]).sort((Y, G) => Y[1] - G[1])[0]) == null ? void 0 : X[0];
1142
+ _ && (j = _);
1076
1143
  break;
1077
1144
  }
1078
1145
  case "initialPlacement":
1079
- U = l;
1146
+ j = r;
1080
1147
  break;
1081
1148
  }
1082
- if (o !== U)
1149
+ if (i !== j)
1083
1150
  return {
1084
1151
  reset: {
1085
- placement: U
1152
+ placement: j
1086
1153
  }
1087
1154
  };
1088
1155
  }
@@ -1090,16 +1157,16 @@ const on = (e) => ({
1090
1157
  }
1091
1158
  };
1092
1159
  };
1093
- async function rn(e, t) {
1160
+ async function mo(e, t) {
1094
1161
  const {
1095
1162
  placement: n,
1096
- platform: i,
1097
- elements: o
1098
- } = e, s = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), r = Q(n), l = ct(n), a = et(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, h = s && a ? -1 : 1, d = at(t, e);
1163
+ platform: o,
1164
+ elements: i
1165
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = Q(n), r = dt(n), a = et(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, h = s && a ? -1 : 1, d = ht(t, e);
1099
1166
  let {
1100
- mainAxis: f,
1167
+ mainAxis: p,
1101
1168
  crossAxis: u,
1102
- alignmentAxis: p
1169
+ alignmentAxis: m
1103
1170
  } = typeof d == "number" ? {
1104
1171
  mainAxis: d,
1105
1172
  crossAxis: 0,
@@ -1109,126 +1176,126 @@ async function rn(e, t) {
1109
1176
  crossAxis: d.crossAxis || 0,
1110
1177
  alignmentAxis: d.alignmentAxis
1111
1178
  };
1112
- return l && typeof p == "number" && (u = l === "end" ? p * -1 : p), a ? {
1179
+ return r && typeof m == "number" && (u = r === "end" ? m * -1 : m), a ? {
1113
1180
  x: u * h,
1114
- y: f * c
1181
+ y: p * c
1115
1182
  } : {
1116
- x: f * c,
1183
+ x: p * c,
1117
1184
  y: u * h
1118
1185
  };
1119
1186
  }
1120
- const ln = function(e) {
1187
+ const go = function(e) {
1121
1188
  return e === void 0 && (e = 0), {
1122
1189
  name: "offset",
1123
1190
  options: e,
1124
1191
  async fn(t) {
1125
- var n, i;
1192
+ var n, o;
1126
1193
  const {
1127
- x: o,
1194
+ x: i,
1128
1195
  y: s,
1129
- placement: r,
1130
- middlewareData: l
1131
- } = t, a = await rn(t, e);
1132
- return r === ((n = l.offset) == null ? void 0 : n.placement) && (i = l.arrow) != null && i.alignmentOffset ? {} : {
1133
- x: o + a.x,
1196
+ placement: l,
1197
+ middlewareData: r
1198
+ } = t, a = await mo(t, e);
1199
+ return l === ((n = r.offset) == null ? void 0 : n.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
1200
+ x: i + a.x,
1134
1201
  y: s + a.y,
1135
1202
  data: {
1136
1203
  ...a,
1137
- placement: r
1204
+ placement: l
1138
1205
  }
1139
1206
  };
1140
1207
  }
1141
1208
  };
1142
- }, an = function(e) {
1209
+ }, fo = function(e) {
1143
1210
  return e === void 0 && (e = {}), {
1144
1211
  name: "shift",
1145
1212
  options: e,
1146
1213
  async fn(t) {
1147
1214
  const {
1148
1215
  x: n,
1149
- y: i,
1150
- placement: o
1216
+ y: o,
1217
+ placement: i
1151
1218
  } = t, {
1152
1219
  mainAxis: s = !0,
1153
- crossAxis: r = !1,
1154
- limiter: l = {
1155
- fn: (v) => {
1220
+ crossAxis: l = !1,
1221
+ limiter: r = {
1222
+ fn: (f) => {
1156
1223
  let {
1157
- x: g,
1224
+ x: v,
1158
1225
  y
1159
- } = v;
1226
+ } = f;
1160
1227
  return {
1161
- x: g,
1228
+ x: v,
1162
1229
  y
1163
1230
  };
1164
1231
  }
1165
1232
  },
1166
1233
  ...a
1167
- } = at(e, t), c = {
1234
+ } = ht(e, t), c = {
1168
1235
  x: n,
1169
- y: i
1170
- }, h = await Ut(t, a), d = et(Q(o)), f = ue(d);
1171
- let u = c[f], p = c[d];
1236
+ y: o
1237
+ }, h = await Xt(t, a), d = et(Q(i)), p = xe(d);
1238
+ let u = c[p], m = c[d];
1172
1239
  if (s) {
1173
- const v = f === "y" ? "top" : "left", g = f === "y" ? "bottom" : "right", y = u + h[v], b = u - h[g];
1174
- u = $t(y, u, b);
1240
+ const f = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = u + h[f], b = u - h[v];
1241
+ u = qt(y, u, b);
1175
1242
  }
1176
- if (r) {
1177
- const v = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", y = p + h[v], b = p - h[g];
1178
- p = $t(y, p, b);
1243
+ if (l) {
1244
+ const f = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = m + h[f], b = m - h[v];
1245
+ m = qt(y, m, b);
1179
1246
  }
1180
- const m = l.fn({
1247
+ const g = r.fn({
1181
1248
  ...t,
1182
- [f]: u,
1183
- [d]: p
1249
+ [p]: u,
1250
+ [d]: m
1184
1251
  });
1185
1252
  return {
1186
- ...m,
1253
+ ...g,
1187
1254
  data: {
1188
- x: m.x - n,
1189
- y: m.y - i,
1255
+ x: g.x - n,
1256
+ y: g.y - o,
1190
1257
  enabled: {
1191
- [f]: s,
1192
- [d]: r
1258
+ [p]: s,
1259
+ [d]: l
1193
1260
  }
1194
1261
  }
1195
1262
  };
1196
1263
  }
1197
1264
  };
1198
- }, cn = function(e) {
1265
+ }, vo = function(e) {
1199
1266
  return e === void 0 && (e = {}), {
1200
1267
  name: "size",
1201
1268
  options: e,
1202
1269
  async fn(t) {
1203
- var n, i;
1270
+ var n, o;
1204
1271
  const {
1205
- placement: o,
1272
+ placement: i,
1206
1273
  rects: s,
1207
- platform: r,
1208
- elements: l
1274
+ platform: l,
1275
+ elements: r
1209
1276
  } = t, {
1210
1277
  apply: a = () => {
1211
1278
  },
1212
1279
  ...c
1213
- } = at(e, t), h = await Ut(t, c), d = Q(o), f = ct(o), u = et(o) === "y", {
1214
- width: p,
1215
- height: m
1280
+ } = ht(e, t), h = await Xt(t, c), d = Q(i), p = dt(i), u = et(i) === "y", {
1281
+ width: m,
1282
+ height: g
1216
1283
  } = s.floating;
1217
- let v, g;
1218
- d === "top" || d === "bottom" ? (v = d, g = f === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (g = d, v = f === "end" ? "top" : "bottom");
1219
- const y = m - h.top - h.bottom, b = p - h.left - h.right, E = J(m - h[v], y), w = J(p - h[g], b), $ = !t.middlewareData.shift;
1220
- let C = E, V = w;
1221
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (V = b), (i = t.middlewareData.shift) != null && i.enabled.y && (C = y), $ && !f) {
1222
- const F = D(h.left, 0), K = D(h.right, 0), M = D(h.top, 0), Y = D(h.bottom, 0);
1223
- u ? V = p - 2 * (F !== 0 || K !== 0 ? F + K : D(h.left, h.right)) : C = m - 2 * (M !== 0 || Y !== 0 ? M + Y : D(h.top, h.bottom));
1284
+ let f, v;
1285
+ d === "top" || d === "bottom" ? (f = d, v = p === (await (l.isRTL == null ? void 0 : l.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (v = d, f = p === "end" ? "top" : "bottom");
1286
+ const y = g - h.top - h.bottom, b = m - h.left - h.right, w = Z(g - h[f], y), E = Z(m - h[v], b), S = !t.middlewareData.shift;
1287
+ let $ = w, U = E;
1288
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (U = b), (o = t.middlewareData.shift) != null && o.enabled.y && ($ = y), S && !p) {
1289
+ const D = L(h.left, 0), K = L(h.right, 0), B = L(h.top, 0), X = L(h.bottom, 0);
1290
+ u ? U = m - 2 * (D !== 0 || K !== 0 ? D + K : L(h.left, h.right)) : $ = g - 2 * (B !== 0 || X !== 0 ? B + X : L(h.top, h.bottom));
1224
1291
  }
1225
1292
  await a({
1226
1293
  ...t,
1227
- availableWidth: V,
1228
- availableHeight: C
1294
+ availableWidth: U,
1295
+ availableHeight: $
1229
1296
  });
1230
- const B = await r.getDimensions(l.floating);
1231
- return p !== B.width || m !== B.height ? {
1297
+ const H = await l.getDimensions(r.floating);
1298
+ return m !== H.width || g !== H.height ? {
1232
1299
  reset: {
1233
1300
  rects: !0
1234
1301
  }
@@ -1236,45 +1303,45 @@ const ln = function(e) {
1236
1303
  }
1237
1304
  };
1238
1305
  };
1239
- function At() {
1306
+ function Lt() {
1240
1307
  return typeof window < "u";
1241
1308
  }
1242
- function ht(e) {
1243
- return fe(e) ? (e.nodeName || "").toLowerCase() : "#document";
1309
+ function ut(e) {
1310
+ return ze(e) ? (e.nodeName || "").toLowerCase() : "#document";
1244
1311
  }
1245
- function S(e) {
1312
+ function R(e) {
1246
1313
  var t;
1247
1314
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1248
1315
  }
1249
1316
  function W(e) {
1250
1317
  var t;
1251
- return (t = (fe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1318
+ return (t = (ze(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1252
1319
  }
1253
- function fe(e) {
1254
- return At() ? e instanceof Node || e instanceof S(e).Node : !1;
1320
+ function ze(e) {
1321
+ return Lt() ? e instanceof Node || e instanceof R(e).Node : !1;
1255
1322
  }
1256
- function _(e) {
1257
- return At() ? e instanceof Element || e instanceof S(e).Element : !1;
1323
+ function N(e) {
1324
+ return Lt() ? e instanceof Element || e instanceof R(e).Element : !1;
1258
1325
  }
1259
- function I(e) {
1260
- return At() ? e instanceof HTMLElement || e instanceof S(e).HTMLElement : !1;
1326
+ function M(e) {
1327
+ return Lt() ? e instanceof HTMLElement || e instanceof R(e).HTMLElement : !1;
1261
1328
  }
1262
- function ee(e) {
1263
- return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof S(e).ShadowRoot;
1329
+ function he(e) {
1330
+ return !Lt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof R(e).ShadowRoot;
1264
1331
  }
1265
- function gt(e) {
1332
+ function yt(e) {
1266
1333
  const {
1267
1334
  overflow: t,
1268
1335
  overflowX: n,
1269
- overflowY: i,
1270
- display: o
1271
- } = N(e);
1272
- return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !["inline", "contents"].includes(o);
1336
+ overflowY: o,
1337
+ display: i
1338
+ } = q(e);
1339
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
1273
1340
  }
1274
- function hn(e) {
1275
- return ["table", "td", "th"].includes(ht(e));
1341
+ function yo(e) {
1342
+ return ["table", "td", "th"].includes(ut(e));
1276
1343
  }
1277
- function Tt(e) {
1344
+ function Rt(e) {
1278
1345
  return [":popover-open", ":modal"].some((t) => {
1279
1346
  try {
1280
1347
  return e.matches(t);
@@ -1283,32 +1350,32 @@ function Tt(e) {
1283
1350
  }
1284
1351
  });
1285
1352
  }
1286
- function jt(e) {
1287
- const t = Kt(), n = _(e) ? N(e) : e;
1288
- return ["transform", "translate", "scale", "rotate", "perspective"].some((i) => n[i] ? n[i] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
1353
+ function Yt(e) {
1354
+ const t = Gt(), n = N(e) ? q(e) : e;
1355
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
1289
1356
  }
1290
- function dn(e) {
1291
- let t = Z(e);
1292
- for (; I(t) && !lt(t); ) {
1293
- if (jt(t))
1357
+ function bo(e) {
1358
+ let t = tt(e);
1359
+ for (; M(t) && !at(t); ) {
1360
+ if (Yt(t))
1294
1361
  return t;
1295
- if (Tt(t))
1362
+ if (Rt(t))
1296
1363
  return null;
1297
- t = Z(t);
1364
+ t = tt(t);
1298
1365
  }
1299
1366
  return null;
1300
1367
  }
1301
- function Kt() {
1368
+ function Gt() {
1302
1369
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1303
1370
  }
1304
- function lt(e) {
1305
- return ["html", "body", "#document"].includes(ht(e));
1371
+ function at(e) {
1372
+ return ["html", "body", "#document"].includes(ut(e));
1306
1373
  }
1307
- function N(e) {
1308
- return S(e).getComputedStyle(e);
1374
+ function q(e) {
1375
+ return R(e).getComputedStyle(e);
1309
1376
  }
1310
- function Rt(e) {
1311
- return _(e) ? {
1377
+ function At(e) {
1378
+ return N(e) ? {
1312
1379
  scrollLeft: e.scrollLeft,
1313
1380
  scrollTop: e.scrollTop
1314
1381
  } : {
@@ -1316,421 +1383,421 @@ function Rt(e) {
1316
1383
  scrollTop: e.scrollY
1317
1384
  };
1318
1385
  }
1319
- function Z(e) {
1320
- if (ht(e) === "html")
1386
+ function tt(e) {
1387
+ if (ut(e) === "html")
1321
1388
  return e;
1322
1389
  const t = (
1323
1390
  // Step into the shadow DOM of the parent of a slotted node.
1324
1391
  e.assignedSlot || // DOM Element detected.
1325
1392
  e.parentNode || // ShadowRoot detected.
1326
- ee(e) && e.host || // Fallback.
1393
+ he(e) && e.host || // Fallback.
1327
1394
  W(e)
1328
1395
  );
1329
- return ee(t) ? t.host : t;
1396
+ return he(t) ? t.host : t;
1330
1397
  }
1331
- function me(e) {
1332
- const t = Z(e);
1333
- return lt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : I(t) && gt(t) ? t : me(t);
1398
+ function Ce(e) {
1399
+ const t = tt(e);
1400
+ return at(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : M(t) && yt(t) ? t : Ce(t);
1334
1401
  }
1335
- function dt(e, t, n) {
1336
- var i;
1402
+ function pt(e, t, n) {
1403
+ var o;
1337
1404
  t === void 0 && (t = []), n === void 0 && (n = !0);
1338
- const o = me(e), s = o === ((i = e.ownerDocument) == null ? void 0 : i.body), r = S(o);
1405
+ const i = Ce(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), l = R(i);
1339
1406
  if (s) {
1340
- const l = zt(r);
1341
- return t.concat(r, r.visualViewport || [], gt(o) ? o : [], l && n ? dt(l) : []);
1407
+ const r = Bt(l);
1408
+ return t.concat(l, l.visualViewport || [], yt(i) ? i : [], r && n ? pt(r) : []);
1342
1409
  }
1343
- return t.concat(o, dt(o, [], n));
1410
+ return t.concat(i, pt(i, [], n));
1344
1411
  }
1345
- function zt(e) {
1412
+ function Bt(e) {
1346
1413
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1347
1414
  }
1348
- function ge(e) {
1349
- const t = N(e);
1350
- let n = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
1351
- const o = I(e), s = o ? e.offsetWidth : n, r = o ? e.offsetHeight : i, l = Ct(n) !== s || Ct(i) !== r;
1352
- return l && (n = s, i = r), {
1415
+ function Oe(e) {
1416
+ const t = q(e);
1417
+ let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1418
+ const i = M(e), s = i ? e.offsetWidth : n, l = i ? e.offsetHeight : o, r = Ot(n) !== s || Ot(o) !== l;
1419
+ return r && (n = s, o = l), {
1353
1420
  width: n,
1354
- height: i,
1355
- $: l
1421
+ height: o,
1422
+ $: r
1356
1423
  };
1357
1424
  }
1358
- function Yt(e) {
1359
- return _(e) ? e : e.contextElement;
1425
+ function Jt(e) {
1426
+ return N(e) ? e : e.contextElement;
1360
1427
  }
1361
- function ot(e) {
1362
- const t = Yt(e);
1363
- if (!I(t))
1364
- return q(1);
1428
+ function rt(e) {
1429
+ const t = Jt(e);
1430
+ if (!M(t))
1431
+ return I(1);
1365
1432
  const n = t.getBoundingClientRect(), {
1366
- width: i,
1367
- height: o,
1433
+ width: o,
1434
+ height: i,
1368
1435
  $: s
1369
- } = ge(t);
1370
- let r = (s ? Ct(n.width) : n.width) / i, l = (s ? Ct(n.height) : n.height) / o;
1371
- return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
1372
- x: r,
1373
- y: l
1436
+ } = Oe(t);
1437
+ let l = (s ? Ot(n.width) : n.width) / o, r = (s ? Ot(n.height) : n.height) / i;
1438
+ return (!l || !Number.isFinite(l)) && (l = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1439
+ x: l,
1440
+ y: r
1374
1441
  };
1375
1442
  }
1376
- const un = /* @__PURE__ */ q(0);
1377
- function ve(e) {
1378
- const t = S(e);
1379
- return !Kt() || !t.visualViewport ? un : {
1443
+ const wo = /* @__PURE__ */ I(0);
1444
+ function Pe(e) {
1445
+ const t = R(e);
1446
+ return !Gt() || !t.visualViewport ? wo : {
1380
1447
  x: t.visualViewport.offsetLeft,
1381
1448
  y: t.visualViewport.offsetTop
1382
1449
  };
1383
1450
  }
1384
- function pn(e, t, n) {
1385
- return t === void 0 && (t = !1), !n || t && n !== S(e) ? !1 : t;
1451
+ function xo(e, t, n) {
1452
+ return t === void 0 && (t = !1), !n || t && n !== R(e) ? !1 : t;
1386
1453
  }
1387
- function nt(e, t, n, i) {
1454
+ function ot(e, t, n, o) {
1388
1455
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1389
- const o = e.getBoundingClientRect(), s = Yt(e);
1390
- let r = q(1);
1391
- t && (i ? _(i) && (r = ot(i)) : r = ot(e));
1392
- const l = pn(s, n, i) ? ve(s) : q(0);
1393
- let a = (o.left + l.x) / r.x, c = (o.top + l.y) / r.y, h = o.width / r.x, d = o.height / r.y;
1456
+ const i = e.getBoundingClientRect(), s = Jt(e);
1457
+ let l = I(1);
1458
+ t && (o ? N(o) && (l = rt(o)) : l = rt(e));
1459
+ const r = xo(s, n, o) ? Pe(s) : I(0);
1460
+ let a = (i.left + r.x) / l.x, c = (i.top + r.y) / l.y, h = i.width / l.x, d = i.height / l.y;
1394
1461
  if (s) {
1395
- const f = S(s), u = i && _(i) ? S(i) : i;
1396
- let p = f, m = zt(p);
1397
- for (; m && i && u !== p; ) {
1398
- const v = ot(m), g = m.getBoundingClientRect(), y = N(m), b = g.left + (m.clientLeft + parseFloat(y.paddingLeft)) * v.x, E = g.top + (m.clientTop + parseFloat(y.paddingTop)) * v.y;
1399
- a *= v.x, c *= v.y, h *= v.x, d *= v.y, a += b, c += E, p = S(m), m = zt(p);
1462
+ const p = R(s), u = o && N(o) ? R(o) : o;
1463
+ let m = p, g = Bt(m);
1464
+ for (; g && o && u !== m; ) {
1465
+ const f = rt(g), v = g.getBoundingClientRect(), y = q(g), b = v.left + (g.clientLeft + parseFloat(y.paddingLeft)) * f.x, w = v.top + (g.clientTop + parseFloat(y.paddingTop)) * f.y;
1466
+ a *= f.x, c *= f.y, h *= f.x, d *= f.y, a += b, c += w, m = R(g), g = Bt(m);
1400
1467
  }
1401
1468
  }
1402
- return Ot({
1469
+ return Tt({
1403
1470
  width: h,
1404
1471
  height: d,
1405
1472
  x: a,
1406
1473
  y: c
1407
1474
  });
1408
1475
  }
1409
- function Gt(e, t) {
1410
- const n = Rt(e).scrollLeft;
1411
- return t ? t.left + n : nt(W(e)).left + n;
1476
+ function Zt(e, t) {
1477
+ const n = At(e).scrollLeft;
1478
+ return t ? t.left + n : ot(W(e)).left + n;
1412
1479
  }
1413
- function ye(e, t, n) {
1480
+ function Te(e, t, n) {
1414
1481
  n === void 0 && (n = !1);
1415
- const i = e.getBoundingClientRect(), o = i.left + t.scrollLeft - (n ? 0 : (
1482
+ const o = e.getBoundingClientRect(), i = o.left + t.scrollLeft - (n ? 0 : (
1416
1483
  // RTL <body> scrollbar.
1417
- Gt(e, i)
1418
- )), s = i.top + t.scrollTop;
1484
+ Zt(e, o)
1485
+ )), s = o.top + t.scrollTop;
1419
1486
  return {
1420
- x: o,
1487
+ x: i,
1421
1488
  y: s
1422
1489
  };
1423
1490
  }
1424
- function fn(e) {
1491
+ function Eo(e) {
1425
1492
  let {
1426
1493
  elements: t,
1427
1494
  rect: n,
1428
- offsetParent: i,
1429
- strategy: o
1495
+ offsetParent: o,
1496
+ strategy: i
1430
1497
  } = e;
1431
- const s = o === "fixed", r = W(i), l = t ? Tt(t.floating) : !1;
1432
- if (i === r || l && s)
1498
+ const s = i === "fixed", l = W(o), r = t ? Rt(t.floating) : !1;
1499
+ if (o === l || r && s)
1433
1500
  return n;
1434
1501
  let a = {
1435
1502
  scrollLeft: 0,
1436
1503
  scrollTop: 0
1437
- }, c = q(1);
1438
- const h = q(0), d = I(i);
1439
- if ((d || !d && !s) && ((ht(i) !== "body" || gt(r)) && (a = Rt(i)), I(i))) {
1440
- const u = nt(i);
1441
- c = ot(i), h.x = u.x + i.clientLeft, h.y = u.y + i.clientTop;
1504
+ }, c = I(1);
1505
+ const h = I(0), d = M(o);
1506
+ if ((d || !d && !s) && ((ut(o) !== "body" || yt(l)) && (a = At(o)), M(o))) {
1507
+ const u = ot(o);
1508
+ c = rt(o), h.x = u.x + o.clientLeft, h.y = u.y + o.clientTop;
1442
1509
  }
1443
- const f = r && !d && !s ? ye(r, a, !0) : q(0);
1510
+ const p = l && !d && !s ? Te(l, a, !0) : I(0);
1444
1511
  return {
1445
1512
  width: n.width * c.x,
1446
1513
  height: n.height * c.y,
1447
- x: n.x * c.x - a.scrollLeft * c.x + h.x + f.x,
1448
- y: n.y * c.y - a.scrollTop * c.y + h.y + f.y
1514
+ x: n.x * c.x - a.scrollLeft * c.x + h.x + p.x,
1515
+ y: n.y * c.y - a.scrollTop * c.y + h.y + p.y
1449
1516
  };
1450
1517
  }
1451
- function mn(e) {
1518
+ function zo(e) {
1452
1519
  return Array.from(e.getClientRects());
1453
1520
  }
1454
- function gn(e) {
1455
- const t = W(e), n = Rt(e), i = e.ownerDocument.body, o = D(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), s = D(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
1456
- let r = -n.scrollLeft + Gt(e);
1457
- const l = -n.scrollTop;
1458
- return N(i).direction === "rtl" && (r += D(t.clientWidth, i.clientWidth) - o), {
1459
- width: o,
1521
+ function Co(e) {
1522
+ const t = W(e), n = At(e), o = e.ownerDocument.body, i = L(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = L(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1523
+ let l = -n.scrollLeft + Zt(e);
1524
+ const r = -n.scrollTop;
1525
+ return q(o).direction === "rtl" && (l += L(t.clientWidth, o.clientWidth) - i), {
1526
+ width: i,
1460
1527
  height: s,
1461
- x: r,
1462
- y: l
1528
+ x: l,
1529
+ y: r
1463
1530
  };
1464
1531
  }
1465
- function vn(e, t) {
1466
- const n = S(e), i = W(e), o = n.visualViewport;
1467
- let s = i.clientWidth, r = i.clientHeight, l = 0, a = 0;
1468
- if (o) {
1469
- s = o.width, r = o.height;
1470
- const c = Kt();
1471
- (!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
1532
+ function Oo(e, t) {
1533
+ const n = R(e), o = W(e), i = n.visualViewport;
1534
+ let s = o.clientWidth, l = o.clientHeight, r = 0, a = 0;
1535
+ if (i) {
1536
+ s = i.width, l = i.height;
1537
+ const c = Gt();
1538
+ (!c || c && t === "fixed") && (r = i.offsetLeft, a = i.offsetTop);
1472
1539
  }
1473
1540
  return {
1474
1541
  width: s,
1475
- height: r,
1476
- x: l,
1542
+ height: l,
1543
+ x: r,
1477
1544
  y: a
1478
1545
  };
1479
1546
  }
1480
- function yn(e, t) {
1481
- const n = nt(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, s = I(e) ? ot(e) : q(1), r = e.clientWidth * s.x, l = e.clientHeight * s.y, a = o * s.x, c = i * s.y;
1547
+ function Po(e, t) {
1548
+ const n = ot(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, s = M(e) ? rt(e) : I(1), l = e.clientWidth * s.x, r = e.clientHeight * s.y, a = i * s.x, c = o * s.y;
1482
1549
  return {
1483
- width: r,
1484
- height: l,
1550
+ width: l,
1551
+ height: r,
1485
1552
  x: a,
1486
1553
  y: c
1487
1554
  };
1488
1555
  }
1489
- function ne(e, t, n) {
1490
- let i;
1556
+ function de(e, t, n) {
1557
+ let o;
1491
1558
  if (t === "viewport")
1492
- i = vn(e, n);
1559
+ o = Oo(e, n);
1493
1560
  else if (t === "document")
1494
- i = gn(W(e));
1495
- else if (_(t))
1496
- i = yn(t, n);
1561
+ o = Co(W(e));
1562
+ else if (N(t))
1563
+ o = Po(t, n);
1497
1564
  else {
1498
- const o = ve(e);
1499
- i = {
1500
- x: t.x - o.x,
1501
- y: t.y - o.y,
1565
+ const i = Pe(e);
1566
+ o = {
1567
+ x: t.x - i.x,
1568
+ y: t.y - i.y,
1502
1569
  width: t.width,
1503
1570
  height: t.height
1504
1571
  };
1505
1572
  }
1506
- return Ot(i);
1573
+ return Tt(o);
1507
1574
  }
1508
- function be(e, t) {
1509
- const n = Z(e);
1510
- return n === t || !_(n) || lt(n) ? !1 : N(n).position === "fixed" || be(n, t);
1575
+ function ke(e, t) {
1576
+ const n = tt(e);
1577
+ return n === t || !N(n) || at(n) ? !1 : q(n).position === "fixed" || ke(n, t);
1511
1578
  }
1512
- function bn(e, t) {
1579
+ function To(e, t) {
1513
1580
  const n = t.get(e);
1514
1581
  if (n)
1515
1582
  return n;
1516
- let i = dt(e, [], !1).filter((l) => _(l) && ht(l) !== "body"), o = null;
1517
- const s = N(e).position === "fixed";
1518
- let r = s ? Z(e) : e;
1519
- for (; _(r) && !lt(r); ) {
1520
- const l = N(r), a = jt(r);
1521
- !a && l.position === "fixed" && (o = null), (s ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || gt(r) && !a && be(e, r)) ? i = i.filter((h) => h !== r) : o = l, r = Z(r);
1583
+ let o = pt(e, [], !1).filter((r) => N(r) && ut(r) !== "body"), i = null;
1584
+ const s = q(e).position === "fixed";
1585
+ let l = s ? tt(e) : e;
1586
+ for (; N(l) && !at(l); ) {
1587
+ const r = q(l), a = Yt(l);
1588
+ !a && r.position === "fixed" && (i = null), (s ? !a && !i : !a && r.position === "static" && i && ["absolute", "fixed"].includes(i.position) || yt(l) && !a && ke(e, l)) ? o = o.filter((c) => c !== l) : i = r, l = tt(l);
1522
1589
  }
1523
- return t.set(e, i), i;
1590
+ return t.set(e, o), o;
1524
1591
  }
1525
- function wn(e) {
1592
+ function ko(e) {
1526
1593
  let {
1527
1594
  element: t,
1528
1595
  boundary: n,
1529
- rootBoundary: i,
1530
- strategy: o
1596
+ rootBoundary: o,
1597
+ strategy: i
1531
1598
  } = e;
1532
- const r = [...n === "clippingAncestors" ? Tt(t) ? [] : bn(t, this._c) : [].concat(n), i], l = r[0], a = r.reduce((c, h) => {
1533
- const d = ne(t, h, o);
1534
- return c.top = D(d.top, c.top), c.right = J(d.right, c.right), c.bottom = J(d.bottom, c.bottom), c.left = D(d.left, c.left), c;
1535
- }, ne(t, l, o));
1599
+ const s = [...n === "clippingAncestors" ? Rt(t) ? [] : To(t, this._c) : [].concat(n), o], l = s[0], r = s.reduce((a, c) => {
1600
+ const h = de(t, c, i);
1601
+ return a.top = L(h.top, a.top), a.right = Z(h.right, a.right), a.bottom = Z(h.bottom, a.bottom), a.left = L(h.left, a.left), a;
1602
+ }, de(t, l, i));
1536
1603
  return {
1537
- width: a.right - a.left,
1538
- height: a.bottom - a.top,
1539
- x: a.left,
1540
- y: a.top
1604
+ width: r.right - r.left,
1605
+ height: r.bottom - r.top,
1606
+ x: r.left,
1607
+ y: r.top
1541
1608
  };
1542
1609
  }
1543
- function En(e) {
1610
+ function So(e) {
1544
1611
  const {
1545
1612
  width: t,
1546
1613
  height: n
1547
- } = ge(e);
1614
+ } = Oe(e);
1548
1615
  return {
1549
1616
  width: t,
1550
1617
  height: n
1551
1618
  };
1552
1619
  }
1553
- function xn(e, t, n) {
1554
- const i = I(t), o = W(t), s = n === "fixed", r = nt(e, !0, s, t);
1555
- let l = {
1620
+ function Lo(e, t, n) {
1621
+ const o = M(t), i = W(t), s = n === "fixed", l = ot(e, !0, s, t);
1622
+ let r = {
1556
1623
  scrollLeft: 0,
1557
1624
  scrollTop: 0
1558
1625
  };
1559
- const a = q(0);
1560
- if (i || !i && !s)
1561
- if ((ht(t) !== "body" || gt(o)) && (l = Rt(t)), i) {
1562
- const f = nt(t, !0, s, t);
1563
- a.x = f.x + t.clientLeft, a.y = f.y + t.clientTop;
1564
- } else o && (a.x = Gt(o));
1565
- const c = o && !i && !s ? ye(o, l) : q(0), h = r.left + l.scrollLeft - a.x - c.x, d = r.top + l.scrollTop - a.y - c.y;
1626
+ const a = I(0);
1627
+ if (o || !o && !s)
1628
+ if ((ut(t) !== "body" || yt(i)) && (r = At(t)), o) {
1629
+ const p = ot(t, !0, s, t);
1630
+ a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
1631
+ } else i && (a.x = Zt(i));
1632
+ const c = i && !o && !s ? Te(i, r) : I(0), h = l.left + r.scrollLeft - a.x - c.x, d = l.top + r.scrollTop - a.y - c.y;
1566
1633
  return {
1567
1634
  x: h,
1568
1635
  y: d,
1569
- width: r.width,
1570
- height: r.height
1636
+ width: l.width,
1637
+ height: l.height
1571
1638
  };
1572
1639
  }
1573
- function kt(e) {
1574
- return N(e).position === "static";
1640
+ function Dt(e) {
1641
+ return q(e).position === "static";
1575
1642
  }
1576
- function ie(e, t) {
1577
- if (!I(e) || N(e).position === "fixed")
1643
+ function ue(e, t) {
1644
+ if (!M(e) || q(e).position === "fixed")
1578
1645
  return null;
1579
1646
  if (t)
1580
1647
  return t(e);
1581
1648
  let n = e.offsetParent;
1582
1649
  return W(e) === n && (n = n.ownerDocument.body), n;
1583
1650
  }
1584
- function we(e, t) {
1585
- const n = S(e);
1586
- if (Tt(e))
1651
+ function Se(e, t) {
1652
+ const n = R(e);
1653
+ if (Rt(e))
1587
1654
  return n;
1588
- if (!I(e)) {
1589
- let o = Z(e);
1590
- for (; o && !lt(o); ) {
1591
- if (_(o) && !kt(o))
1592
- return o;
1593
- o = Z(o);
1655
+ if (!M(e)) {
1656
+ let i = tt(e);
1657
+ for (; i && !at(i); ) {
1658
+ if (N(i) && !Dt(i))
1659
+ return i;
1660
+ i = tt(i);
1594
1661
  }
1595
1662
  return n;
1596
1663
  }
1597
- let i = ie(e, t);
1598
- for (; i && hn(i) && kt(i); )
1599
- i = ie(i, t);
1600
- return i && lt(i) && kt(i) && !jt(i) ? n : i || dn(e) || n;
1664
+ let o = ue(e, t);
1665
+ for (; o && yo(o) && Dt(o); )
1666
+ o = ue(o, t);
1667
+ return o && at(o) && Dt(o) && !Yt(o) ? n : o || bo(e) || n;
1601
1668
  }
1602
- const Cn = async function(e) {
1603
- const t = this.getOffsetParent || we, n = this.getDimensions, i = await n(e.floating);
1669
+ const Ro = async function(e) {
1670
+ const t = this.getOffsetParent || Se, n = this.getDimensions, o = await n(e.floating);
1604
1671
  return {
1605
- reference: xn(e.reference, await t(e.floating), e.strategy),
1672
+ reference: Lo(e.reference, await t(e.floating), e.strategy),
1606
1673
  floating: {
1607
1674
  x: 0,
1608
1675
  y: 0,
1609
- width: i.width,
1610
- height: i.height
1676
+ width: o.width,
1677
+ height: o.height
1611
1678
  }
1612
1679
  };
1613
1680
  };
1614
- function Pn(e) {
1615
- return N(e).direction === "rtl";
1681
+ function Ao(e) {
1682
+ return q(e).direction === "rtl";
1616
1683
  }
1617
- const On = {
1618
- convertOffsetParentRelativeRectToViewportRelativeRect: fn,
1684
+ const $o = {
1685
+ convertOffsetParentRelativeRectToViewportRelativeRect: Eo,
1619
1686
  getDocumentElement: W,
1620
- getClippingRect: wn,
1621
- getOffsetParent: we,
1622
- getElementRects: Cn,
1623
- getClientRects: mn,
1624
- getDimensions: En,
1625
- getScale: ot,
1626
- isElement: _,
1627
- isRTL: Pn
1687
+ getClippingRect: ko,
1688
+ getOffsetParent: Se,
1689
+ getElementRects: Ro,
1690
+ getClientRects: zo,
1691
+ getDimensions: So,
1692
+ getScale: rt,
1693
+ isElement: N,
1694
+ isRTL: Ao
1628
1695
  };
1629
- function Ee(e, t) {
1696
+ function Le(e, t) {
1630
1697
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1631
1698
  }
1632
- function An(e, t) {
1633
- let n = null, i;
1634
- const o = W(e);
1699
+ function Do(e, t) {
1700
+ let n = null, o;
1701
+ const i = W(e);
1635
1702
  function s() {
1636
- var l;
1637
- clearTimeout(i), (l = n) == null || l.disconnect(), n = null;
1703
+ var r;
1704
+ clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
1638
1705
  }
1639
- function r(l, a) {
1640
- l === void 0 && (l = !1), a === void 0 && (a = 1), s();
1706
+ function l(r, a) {
1707
+ r === void 0 && (r = !1), a === void 0 && (a = 1), s();
1641
1708
  const c = e.getBoundingClientRect(), {
1642
1709
  left: h,
1643
1710
  top: d,
1644
- width: f,
1711
+ width: p,
1645
1712
  height: u
1646
1713
  } = c;
1647
- if (l || t(), !f || !u)
1714
+ if (r || t(), !p || !u)
1648
1715
  return;
1649
- const p = yt(d), m = yt(o.clientWidth - (h + f)), v = yt(o.clientHeight - (d + u)), g = yt(h), b = {
1650
- rootMargin: -p + "px " + -m + "px " + -v + "px " + -g + "px",
1651
- threshold: D(0, J(1, a)) || 1
1716
+ const m = xt(d), g = xt(i.clientWidth - (h + p)), f = xt(i.clientHeight - (d + u)), v = xt(h), y = {
1717
+ rootMargin: -m + "px " + -g + "px " + -f + "px " + -v + "px",
1718
+ threshold: L(0, Z(1, a)) || 1
1652
1719
  };
1653
- let E = !0;
1654
- function w($) {
1655
- const C = $[0].intersectionRatio;
1656
- if (C !== a) {
1657
- if (!E)
1658
- return r();
1659
- C ? r(!1, C) : i = setTimeout(() => {
1660
- r(!1, 1e-7);
1720
+ let b = !0;
1721
+ function w(E) {
1722
+ const S = E[0].intersectionRatio;
1723
+ if (S !== a) {
1724
+ if (!b)
1725
+ return l();
1726
+ S ? l(!1, S) : o = setTimeout(() => {
1727
+ l(!1, 1e-7);
1661
1728
  }, 1e3);
1662
1729
  }
1663
- C === 1 && !Ee(c, e.getBoundingClientRect()) && r(), E = !1;
1730
+ S === 1 && !Le(c, e.getBoundingClientRect()) && l(), b = !1;
1664
1731
  }
1665
1732
  try {
1666
1733
  n = new IntersectionObserver(w, {
1667
- ...b,
1734
+ ...y,
1668
1735
  // Handle <iframe>s
1669
- root: o.ownerDocument
1736
+ root: i.ownerDocument
1670
1737
  });
1671
1738
  } catch {
1672
- n = new IntersectionObserver(w, b);
1739
+ n = new IntersectionObserver(w, y);
1673
1740
  }
1674
1741
  n.observe(e);
1675
1742
  }
1676
- return r(!0), s;
1743
+ return l(!0), s;
1677
1744
  }
1678
- function oe(e, t, n, i) {
1679
- i === void 0 && (i = {});
1745
+ function pe(e, t, n, o) {
1746
+ o === void 0 && (o = {});
1680
1747
  const {
1681
- ancestorScroll: o = !0,
1748
+ ancestorScroll: i = !0,
1682
1749
  ancestorResize: s = !0,
1683
- elementResize: r = typeof ResizeObserver == "function",
1684
- layoutShift: l = typeof IntersectionObserver == "function",
1750
+ elementResize: l = typeof ResizeObserver == "function",
1751
+ layoutShift: r = typeof IntersectionObserver == "function",
1685
1752
  animationFrame: a = !1
1686
- } = i, c = Yt(e), h = o || s ? [...c ? dt(c) : [], ...dt(t)] : [];
1687
- h.forEach((g) => {
1688
- o && g.addEventListener("scroll", n, {
1753
+ } = o, c = Jt(e), h = i || s ? [...c ? pt(c) : [], ...pt(t)] : [];
1754
+ h.forEach((v) => {
1755
+ i && v.addEventListener("scroll", n, {
1689
1756
  passive: !0
1690
- }), s && g.addEventListener("resize", n);
1757
+ }), s && v.addEventListener("resize", n);
1691
1758
  });
1692
- const d = c && l ? An(c, n) : null;
1693
- let f = -1, u = null;
1694
- r && (u = new ResizeObserver((g) => {
1695
- let [y] = g;
1696
- y && y.target === c && u && (u.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
1759
+ const d = c && r ? Do(c, n) : null;
1760
+ let p = -1, u = null;
1761
+ l && (u = new ResizeObserver((v) => {
1762
+ let [y] = v;
1763
+ y && y.target === c && u && (u.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1697
1764
  var b;
1698
1765
  (b = u) == null || b.observe(t);
1699
1766
  })), n();
1700
1767
  }), c && !a && u.observe(c), u.observe(t));
1701
- let p, m = a ? nt(e) : null;
1702
- a && v();
1703
- function v() {
1704
- const g = nt(e);
1705
- m && !Ee(m, g) && n(), m = g, p = requestAnimationFrame(v);
1768
+ let m, g = a ? ot(e) : null;
1769
+ a && f();
1770
+ function f() {
1771
+ const v = ot(e);
1772
+ g && !Le(g, v) && n(), g = v, m = requestAnimationFrame(f);
1706
1773
  }
1707
1774
  return n(), () => {
1708
- var g;
1775
+ var v;
1709
1776
  h.forEach((y) => {
1710
- o && y.removeEventListener("scroll", n), s && y.removeEventListener("resize", n);
1711
- }), d == null || d(), (g = u) == null || g.disconnect(), u = null, a && cancelAnimationFrame(p);
1777
+ i && y.removeEventListener("scroll", n), s && y.removeEventListener("resize", n);
1778
+ }), d == null || d(), (v = u) == null || v.disconnect(), u = null, a && cancelAnimationFrame(m);
1712
1779
  };
1713
1780
  }
1714
- const Tn = ln, Rn = an, se = sn, Dn = cn, Sn = on, kn = (e, t, n) => {
1715
- const i = /* @__PURE__ */ new Map(), o = {
1716
- platform: On,
1781
+ const Fo = go, No = fo, me = po, qo = vo, Ho = uo, Bo = (e, t, n) => {
1782
+ const o = /* @__PURE__ */ new Map(), i = {
1783
+ platform: $o,
1717
1784
  ...n
1718
1785
  }, s = {
1719
- ...o.platform,
1720
- _c: i
1786
+ ...i.platform,
1787
+ _c: o
1721
1788
  };
1722
- return nn(e, t, {
1723
- ...o,
1789
+ return ho(e, t, {
1790
+ ...i,
1724
1791
  platform: s
1725
1792
  });
1726
1793
  };
1727
- function bt(e) {
1794
+ function Et(e) {
1728
1795
  if (e === void 0)
1729
1796
  return 0;
1730
1797
  const t = window.devicePixelRatio || 1;
1731
1798
  return Math.round(e * t) / t;
1732
1799
  }
1733
- const wt = 8, Ln = 100, $n = (e) => ({
1800
+ const zt = 8, _o = 100, Io = (e) => ({
1734
1801
  left: ["right", "bottom", "top"],
1735
1802
  "left-start": ["right-start", "bottom", "top"],
1736
1803
  "left-end": ["right-end", "bottom", "top"],
@@ -1743,8 +1810,8 @@ const wt = 8, Ln = 100, $n = (e) => ({
1743
1810
  bottom: ["top", "left", "right"],
1744
1811
  "bottom-start": ["top-start", "left", "right"],
1745
1812
  "bottom-end": ["top-end", "left", "right"]
1746
- })[e] ?? [e];
1747
- class Fn {
1813
+ })[e] ?? [e], Re = Symbol("placement updated");
1814
+ class Qt {
1748
1815
  /**
1749
1816
  * Creates an instance of the PlacementController.
1750
1817
  *
@@ -1772,7 +1839,7 @@ class Fn {
1772
1839
  placeOverlay(t = this.target, n = this.options) {
1773
1840
  if (this.target = t, this.options = n, !t || !n)
1774
1841
  return;
1775
- const i = oe(
1842
+ const o = pe(
1776
1843
  n.trigger,
1777
1844
  t,
1778
1845
  this.closeForAncestorUpdate,
@@ -1781,7 +1848,7 @@ class Fn {
1781
1848
  elementResize: !1,
1782
1849
  layoutShift: !1
1783
1850
  }
1784
- ), o = oe(
1851
+ ), i = pe(
1785
1852
  n.trigger,
1786
1853
  t,
1787
1854
  this.updatePlacement,
@@ -1791,16 +1858,16 @@ class Fn {
1791
1858
  );
1792
1859
  this.cleanup = () => {
1793
1860
  var s;
1794
- (s = this.host.elements) == null || s.forEach((r) => {
1795
- r.addEventListener(
1861
+ (s = this.host.elements) == null || s.forEach((l) => {
1862
+ l.addEventListener(
1796
1863
  "luzmo-closed",
1797
1864
  () => {
1798
- const l = this.originalPlacements.get(r);
1799
- l && r.setAttribute("placement", l), this.originalPlacements.delete(r);
1865
+ const r = this.originalPlacements.get(l);
1866
+ r && l.setAttribute("placement", r), this.originalPlacements.delete(l);
1800
1867
  },
1801
1868
  { once: !0 }
1802
1869
  );
1803
- }), i(), o();
1870
+ }), o(), i();
1804
1871
  };
1805
1872
  }
1806
1873
  /**
@@ -1813,66 +1880,66 @@ class Fn {
1813
1880
  * @returns A promise that resolves when the placement has been computed.
1814
1881
  */
1815
1882
  async computePlacement() {
1816
- var f, u;
1817
- const { options: t, target: n } = this;
1883
+ var t, n;
1884
+ const { options: o, target: i } = this;
1818
1885
  await (document.fonts ? document.fonts.ready : Promise.resolve());
1819
- const i = t.trigger instanceof HTMLElement ? se() : se({
1820
- padding: wt,
1821
- fallbackPlacements: $n(t.placement)
1822
- }), [o = 0, s = 0] = Array.isArray(t == null ? void 0 : t.offset) ? t.offset : [t.offset, 0], r = (f = this.host.elements.find(
1823
- (p) => p.tipElement
1824
- )) == null ? void 0 : f.tipElement, l = [
1825
- Tn({
1826
- mainAxis: o,
1827
- crossAxis: s
1886
+ const s = o.trigger instanceof HTMLElement ? me() : me({
1887
+ padding: zt,
1888
+ fallbackPlacements: Io(o.placement)
1889
+ }), [l = 0, r = 0] = Array.isArray(o == null ? void 0 : o.offset) ? o.offset : [o.offset, 0], a = (t = this.host.elements.find(
1890
+ (m) => m.tipElement
1891
+ )) == null ? void 0 : t.tipElement, c = [
1892
+ Fo({
1893
+ mainAxis: l,
1894
+ crossAxis: r
1828
1895
  }),
1829
- Rn({ padding: wt }),
1830
- i,
1831
- Dn({
1832
- padding: wt,
1833
- apply: ({ availableWidth: p, availableHeight: m, rects: { floating: v } }) => {
1834
- const g = Math.max(
1835
- Ln,
1836
- Math.floor(m)
1837
- ), y = v.height;
1838
- this.initialHeight = this.isConstrained && this.initialHeight || y, this.isConstrained = y < this.initialHeight || g <= y;
1839
- const b = this.isConstrained ? `${g}px` : "";
1840
- Object.assign(n.style, {
1841
- maxWidth: `${Math.floor(p)}px`,
1896
+ No({ padding: zt }),
1897
+ s,
1898
+ qo({
1899
+ padding: zt,
1900
+ apply: ({ availableWidth: m, availableHeight: g, rects: { floating: f } }) => {
1901
+ const v = Math.max(
1902
+ _o,
1903
+ Math.floor(g)
1904
+ ), y = f.height;
1905
+ this.initialHeight = this.isConstrained && this.initialHeight || y, this.isConstrained = y < this.initialHeight || v <= y;
1906
+ const b = this.isConstrained ? `${v}px` : "";
1907
+ Object.assign(i.style, {
1908
+ maxWidth: `${Math.floor(m)}px`,
1842
1909
  maxHeight: b
1843
1910
  });
1844
1911
  }
1845
1912
  }),
1846
- ...r ? [
1847
- Sn({
1848
- element: r,
1849
- padding: t.tipPadding || wt
1913
+ ...a ? [
1914
+ Ho({
1915
+ element: a,
1916
+ padding: o.tipPadding || zt
1850
1917
  })
1851
1918
  ] : []
1852
- ], { x: a, y: c, placement: h, middlewareData: d } = await kn(
1853
- t.trigger,
1854
- n,
1919
+ ], { x: h, y: d, placement: p, middlewareData: u } = await Bo(
1920
+ o.trigger,
1921
+ i,
1855
1922
  {
1856
- placement: t.placement,
1857
- middleware: l,
1923
+ placement: o.placement,
1924
+ middleware: c,
1858
1925
  strategy: "fixed"
1859
1926
  }
1860
1927
  );
1861
- if (Object.assign(n.style, {
1928
+ if (Object.assign(i.style, {
1862
1929
  top: "0px",
1863
1930
  left: "0px",
1864
- translate: `${bt(a)}px ${bt(c)}px`
1865
- }), n.setAttribute("actual-placement", h), (u = this.host.elements) == null || u.forEach((p) => {
1866
- this.originalPlacements.has(p) || this.originalPlacements.set(
1867
- p,
1868
- p.getAttribute("placement")
1869
- ), p.setAttribute("placement", h);
1870
- }), r && d.arrow) {
1871
- const { x: p, y: m } = d.arrow;
1872
- Object.assign(r.style, {
1873
- top: h.startsWith("right") || h.startsWith("left") ? "0px" : "",
1874
- left: h.startsWith("bottom") || h.startsWith("top") ? "0px" : "",
1875
- translate: `${bt(p)}px ${bt(m)}px`
1931
+ translate: `${Et(h)}px ${Et(d)}px`
1932
+ }), i.setAttribute("actual-placement", p), (n = this.host.elements) == null || n.forEach((m) => {
1933
+ this.originalPlacements.has(m) || this.originalPlacements.set(
1934
+ m,
1935
+ m.getAttribute("placement")
1936
+ ), m.setAttribute("placement", p);
1937
+ }), a && u.arrow) {
1938
+ const { x: m, y: g } = u.arrow;
1939
+ Object.assign(a.style, {
1940
+ top: p.startsWith("right") || p.startsWith("left") ? "0px" : "",
1941
+ left: p.startsWith("bottom") || p.startsWith("top") ? "0px" : "",
1942
+ translate: `${Et(m)}px ${Et(g)}px`
1876
1943
  });
1877
1944
  }
1878
1945
  }
@@ -1918,10 +1985,10 @@ class Fn {
1918
1985
  );
1919
1986
  }
1920
1987
  }
1921
- var vt = /* @__PURE__ */ ((e) => (e[e.click = 0] = "click", e[e.hover = 1] = "hover", e[e.longpress = 2] = "longpress", e))(vt || {});
1922
- class Xt {
1923
- constructor(t, { overlay: n, isPersistent: i, handleOverlayReady: o }) {
1924
- this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!i, this.handleOverlayReady = o, this.isPersistent && this.init(), this.overlay = n;
1988
+ var nt = /* @__PURE__ */ ((e) => (e[e.click = 0] = "click", e[e.hover = 1] = "hover", e[e.longpress = 2] = "longpress", e))(nt || {});
1989
+ class bt {
1990
+ constructor(t, { overlay: n, isPersistent: o, handleOverlayReady: i }) {
1991
+ this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!o, this.handleOverlayReady = i, this.isPersistent && this.init(), this.overlay = n;
1925
1992
  }
1926
1993
  get activelyOpening() {
1927
1994
  return !1;
@@ -1940,9 +2007,9 @@ class Xt {
1940
2007
  return;
1941
2008
  }
1942
2009
  t && (customElements.whenDefined("luzmo-overlay").then(async () => {
1943
- const { Overlay: n } = await Promise.resolve().then(() => st);
2010
+ const { LuzmoOverlay: n } = await Promise.resolve().then(() => kt);
1944
2011
  this.overlay = new n(), this.overlay.open = !0;
1945
- }), Promise.resolve().then(() => st));
2012
+ }), Promise.resolve().then(() => kt));
1946
2013
  }
1947
2014
  }
1948
2015
  get overlay() {
@@ -1975,9 +2042,9 @@ class Xt {
1975
2042
  this.isPersistent || this.abort();
1976
2043
  }
1977
2044
  }
1978
- class zn extends Xt {
2045
+ class te extends bt {
1979
2046
  constructor() {
1980
- super(...arguments), this.type = vt.click, this.preventNextToggle = !1;
2047
+ super(...arguments), this.type = nt.click, this.preventNextToggle = !1;
1981
2048
  }
1982
2049
  handleClick() {
1983
2050
  this.preventNextToggle || (this.open = !this.open), this.preventNextToggle = !1;
@@ -1986,22 +2053,22 @@ class zn extends Xt {
1986
2053
  this.preventNextToggle = this.open;
1987
2054
  }
1988
2055
  init() {
1989
- var n;
1990
- (n = this.abortController) == null || n.abort(), this.abortController = new AbortController();
1991
- const { signal: t } = this.abortController;
2056
+ var t;
2057
+ (t = this.abortController) == null || t.abort(), this.abortController = new AbortController();
2058
+ const { signal: n } = this.abortController;
1992
2059
  this.target.addEventListener("click", () => this.handleClick(), {
1993
- signal: t
2060
+ signal: n
1994
2061
  }), this.target.addEventListener(
1995
2062
  "pointerdown",
1996
2063
  () => this.handlePointerdown(),
1997
- { signal: t }
2064
+ { signal: n }
1998
2065
  );
1999
2066
  }
2000
2067
  }
2001
- const _n = 300;
2002
- class Nn extends Xt {
2068
+ const Mo = 300;
2069
+ class ee extends bt {
2003
2070
  constructor() {
2004
- super(...arguments), this.type = vt.hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2071
+ super(...arguments), this.type = nt.hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
2005
2072
  }
2006
2073
  handleTargetFocusin() {
2007
2074
  this.target.matches(":focus-visible") && (this.open = !0, this.focusedin = !0);
@@ -2027,31 +2094,31 @@ class Nn extends Xt {
2027
2094
  prepareDescription() {
2028
2095
  if (this.overlay.elements.length === 0)
2029
2096
  return;
2030
- const t = this.target.getRootNode(), n = this.overlay.elements[0].getRootNode(), i = this.overlay.getRootNode();
2031
- t === i ? this.prepareOverlayRelativeDescription() : t === n && this.prepareContentRelativeDescription();
2097
+ const t = this.target.getRootNode(), n = this.overlay.elements[0].getRootNode(), o = this.overlay.getRootNode();
2098
+ t === o ? this.prepareOverlayRelativeDescription() : t === n && this.prepareContentRelativeDescription();
2032
2099
  }
2033
2100
  prepareOverlayRelativeDescription() {
2034
- const t = Lt(
2101
+ const t = Nt(
2035
2102
  this.target,
2036
2103
  "aria-describedby",
2037
2104
  [this.overlay.id]
2038
2105
  );
2039
2106
  this.releaseDescription = () => {
2040
- t(), this.releaseDescription = tt;
2107
+ t(), this.releaseDescription = V;
2041
2108
  };
2042
2109
  }
2043
2110
  prepareContentRelativeDescription() {
2044
- const t = [], n = this.overlay.elements.map((o) => (t.push(o.id), o.id || (o.id = `${this.overlay.tagName.toLowerCase()}-helper-${_t()}`), o.id));
2111
+ const t = [], n = this.overlay.elements.map((i) => (t.push(i.id), i.id || (i.id = `${this.overlay.tagName.toLowerCase()}-helper-${It()}`), i.id));
2045
2112
  this.elementIds = t;
2046
- const i = Lt(
2113
+ const o = Nt(
2047
2114
  this.target,
2048
2115
  "aria-describedby",
2049
2116
  n
2050
2117
  );
2051
2118
  this.releaseDescription = () => {
2052
- i(), this.overlay.elements.map((o, s) => {
2053
- o.id = this.elementIds[s];
2054
- }), this.releaseDescription = tt;
2119
+ o(), this.overlay.elements.map((i, s) => {
2120
+ i.id = this.elementIds[s];
2121
+ }), this.releaseDescription = V;
2055
2122
  };
2056
2123
  }
2057
2124
  doPointerleave() {
@@ -2059,26 +2126,26 @@ class Nn extends Xt {
2059
2126
  const t = this.target;
2060
2127
  this.focusedin && t.matches(":focus-visible") || (this.hoverTimeout = setTimeout(() => {
2061
2128
  this.open = !1;
2062
- }, _n));
2129
+ }, Mo));
2063
2130
  }
2064
2131
  init() {
2065
- var n;
2066
- (n = this.abortController) == null || n.abort(), this.abortController = new AbortController();
2067
- const { signal: t } = this.abortController;
2132
+ var t;
2133
+ (t = this.abortController) == null || t.abort(), this.abortController = new AbortController();
2134
+ const { signal: n } = this.abortController;
2068
2135
  this.target.addEventListener("focusin", () => this.handleTargetFocusin(), {
2069
- signal: t
2136
+ signal: n
2070
2137
  }), this.target.addEventListener(
2071
2138
  "focusout",
2072
2139
  () => this.handleTargetFocusout(),
2073
- { signal: t }
2140
+ { signal: n }
2074
2141
  ), this.target.addEventListener(
2075
2142
  "pointerenter",
2076
2143
  () => this.handleTargetPointerenter(),
2077
- { signal: t }
2144
+ { signal: n }
2078
2145
  ), this.target.addEventListener(
2079
2146
  "pointerleave",
2080
2147
  () => this.handleTargetPointerleave(),
2081
- { signal: t }
2148
+ { signal: n }
2082
2149
  ), this.overlay && this.initOverlay();
2083
2150
  }
2084
2151
  initOverlay() {
@@ -2096,14 +2163,14 @@ class Nn extends Xt {
2096
2163
  );
2097
2164
  }
2098
2165
  }
2099
- const Bn = 300, Mn = {
2166
+ const Wo = 300, oe = {
2100
2167
  touch: "Double tap and long press for additional options",
2101
2168
  keyboard: "Press Space or Alt+Down Arrow for additional options",
2102
2169
  mouse: "Click and hold for additional options"
2103
2170
  };
2104
- class Hn extends Xt {
2171
+ class ne extends bt {
2105
2172
  constructor() {
2106
- super(...arguments), this.type = vt.longpress, this.longpressState = null, this.releaseDescription = tt, this.handlePointerup = () => {
2173
+ super(...arguments), this.type = nt.longpress, this.longpressState = null, this.releaseDescription = V, this.handlePointerup = () => {
2107
2174
  var t;
2108
2175
  clearTimeout(this.timeout), this.target && (this.longpressState = ((t = this.overlay) == null ? void 0 : t.state) === "opening" ? "pressed" : null, document.removeEventListener("pointerup", this.handlePointerup), document.removeEventListener("pointercancel", this.handlePointerup));
2109
2176
  };
@@ -2125,15 +2192,15 @@ class Hn extends Xt {
2125
2192
  }
2126
2193
  })
2127
2194
  );
2128
- }, Bn));
2195
+ }, Wo));
2129
2196
  }
2130
2197
  handleKeydown(t) {
2131
- const { code: n, altKey: i } = t;
2132
- i && n === "ArrowDown" && (t.stopPropagation(), t.stopImmediatePropagation());
2198
+ const { code: n, altKey: o } = t;
2199
+ o && n === "ArrowDown" && (t.stopPropagation(), t.stopImmediatePropagation());
2133
2200
  }
2134
2201
  handleKeyup(t) {
2135
- const { code: n, altKey: i } = t;
2136
- if (n === "Space" || i && n === "ArrowDown") {
2202
+ const { code: n, altKey: o } = t;
2203
+ if (n === "Space" || o && n === "ArrowDown") {
2137
2204
  if (!this.target)
2138
2205
  return;
2139
2206
  t.stopPropagation(), this.target.dispatchEvent(
@@ -2152,90 +2219,90 @@ class Hn extends Xt {
2152
2219
  prepareDescription(t) {
2153
2220
  if (
2154
2221
  // do not reapply until target is recycled
2155
- this.releaseDescription !== tt || // require "longpress content" to apply relationship
2222
+ this.releaseDescription !== V || // require "longpress content" to apply relationship
2156
2223
  this.overlay.elements.length === 0
2157
2224
  )
2158
2225
  return;
2159
2226
  const n = document.createElement("div");
2160
- n.id = `longpress-describedby-descriptor-${_t()}`;
2161
- const i = ke() || Le() ? "touch" : "keyboard";
2162
- n.textContent = Mn[i], n.slot = "longpress-describedby-descriptor";
2163
- const o = t.getRootNode(), s = this.overlay.getRootNode();
2164
- o === s ? this.overlay.append(n) : (n.hidden = !("host" in o), t.after(n));
2165
- const r = Lt(
2227
+ n.id = `longpress-describedby-descriptor-${It()}`;
2228
+ const o = _e() || Ie() ? "touch" : "keyboard";
2229
+ n.textContent = oe[o], n.slot = "longpress-describedby-descriptor";
2230
+ const i = t.getRootNode(), s = this.overlay.getRootNode();
2231
+ i === s ? this.overlay.append(n) : (n.hidden = !("host" in i), t.after(n));
2232
+ const l = Nt(
2166
2233
  t,
2167
2234
  "aria-describedby",
2168
2235
  [n.id]
2169
2236
  );
2170
2237
  this.releaseDescription = () => {
2171
- r(), n.remove(), this.releaseDescription = tt;
2238
+ l(), n.remove(), this.releaseDescription = V;
2172
2239
  };
2173
2240
  }
2174
2241
  shouldCompleteOpen() {
2175
2242
  this.longpressState = this.longpressState === "pressed" ? null : this.longpressState;
2176
2243
  }
2177
2244
  init() {
2178
- var n;
2179
- (n = this.abortController) == null || n.abort(), this.abortController = new AbortController();
2180
- const { signal: t } = this.abortController;
2245
+ var t;
2246
+ (t = this.abortController) == null || t.abort(), this.abortController = new AbortController();
2247
+ const { signal: n } = this.abortController;
2181
2248
  this.target.addEventListener("longpress", () => this.handleLongpress(), {
2182
- signal: t
2249
+ signal: n
2183
2250
  }), this.target.addEventListener(
2184
2251
  "pointerdown",
2185
- (i) => this.handlePointerdown(i),
2186
- { signal: t }
2252
+ (o) => this.handlePointerdown(o),
2253
+ { signal: n }
2187
2254
  ), this.prepareDescription(this.target), !this.target.holdAffordance && (this.target.addEventListener(
2188
2255
  "keydown",
2189
- (i) => this.handleKeydown(i),
2190
- { signal: t }
2256
+ (o) => this.handleKeydown(o),
2257
+ { signal: n }
2191
2258
  ), this.target.addEventListener(
2192
2259
  "keyup",
2193
- (i) => this.handleKeyup(i),
2194
- { signal: t }
2260
+ (o) => this.handleKeyup(o),
2261
+ { signal: n }
2195
2262
  ));
2196
2263
  }
2197
2264
  }
2198
- const xe = {
2199
- click: zn,
2200
- longpress: Hn,
2201
- hover: Nn
2265
+ const ie = {
2266
+ click: te,
2267
+ longpress: ne,
2268
+ hover: ee
2202
2269
  };
2203
- var qn = Object.defineProperty, In = Object.getOwnPropertyDescriptor, T = (e, t, n, i) => {
2204
- for (var o = i > 1 ? void 0 : i ? In(t, n) : t, s = e.length - 1, r; s >= 0; s--)
2205
- (r = e[s]) && (o = (i ? r(t, n, o) : r(o)) || o);
2206
- return i && o && qn(t, n, o), o;
2270
+ var Uo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, P = (e, t, n, o) => {
2271
+ for (var i = o > 1 ? void 0 : o ? jo(t, n) : t, s = e.length - 1, l; s >= 0; s--)
2272
+ (l = e[s]) && (i = (o ? l(t, n, i) : l(i)) || i);
2273
+ return o && i && Uo(t, n, i), i;
2207
2274
  };
2208
- const Wn = "showPopover" in document.createElement("div");
2209
- let Et = Ie(rt);
2210
- Et = Wn ? Ue(Et) : We(Et);
2211
- var j;
2212
- const P = (j = class extends Et {
2275
+ const Vo = "showPopover" in document.createElement("div");
2276
+ let Ct = Ge(J);
2277
+ Ct = Vo ? Qe(Ct) : Je(Ct);
2278
+ var st;
2279
+ const z = (st = class extends Ct {
2213
2280
  constructor() {
2214
- super(...arguments), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (t) => {
2215
- if (!t.relatedTarget)
2281
+ super(...arguments), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (e) => {
2282
+ if (!e.relatedTarget)
2216
2283
  return;
2217
- const n = new Event("overlay-relation-query", {
2284
+ const t = new Event("overlay-relation-query", {
2218
2285
  bubbles: !0,
2219
2286
  composed: !0
2220
2287
  });
2221
- t.relatedTarget.addEventListener(n.type, (i) => {
2222
- i.composedPath().includes(this) || (this.open = !1);
2223
- }), t.relatedTarget.dispatchEvent(n);
2288
+ e.relatedTarget.addEventListener(t.type, (n) => {
2289
+ n.composedPath().includes(this) || (this.open = !1);
2290
+ }), e.relatedTarget.dispatchEvent(t);
2224
2291
  };
2225
2292
  }
2226
2293
  get delayed() {
2227
- var t;
2228
- return ((t = this.elements.at(-1)) == null ? void 0 : t.hasAttribute("delayed")) || this._delayed;
2294
+ var e;
2295
+ return ((e = this.elements.at(-1)) == null ? void 0 : e.hasAttribute("delayed")) || this._delayed;
2229
2296
  }
2230
- set delayed(t) {
2231
- this._delayed = t;
2297
+ set delayed(e) {
2298
+ this._delayed = e;
2232
2299
  }
2233
2300
  get disabled() {
2234
2301
  return this._disabled;
2235
2302
  }
2236
- set disabled(t) {
2237
- var n;
2238
- this._disabled = t, t ? ((n = this.strategy) == null || n.abort(), this.wasOpen = this.open, this.open = !1) : (this.bindEvents(), this.open = this.open || this.wasOpen, this.wasOpen = !1);
2303
+ set disabled(e) {
2304
+ var t;
2305
+ this._disabled = e, e ? ((t = this.strategy) == null || t.abort(), this.wasOpen = this.open, this.open = !1) : (this.bindEvents(), this.open = this.open || this.wasOpen, this.wasOpen = !1);
2239
2306
  }
2240
2307
  /**
2241
2308
  * Determines if the overlay has a non-virtual trigger element.
@@ -2243,7 +2310,7 @@ const P = (j = class extends Et {
2243
2310
  * @returns `true` if the trigger element is not a virtual trigger, otherwise `false`.
2244
2311
  */
2245
2312
  get hasNonVirtualTrigger() {
2246
- return !!this.triggerElement && !(this.triggerElement instanceof mt);
2313
+ return !!this.triggerElement && !(this.triggerElement instanceof ct);
2247
2314
  }
2248
2315
  /**
2249
2316
  * Provides an instance of the `PlacementController` for managing the positioning
@@ -2256,24 +2323,24 @@ const P = (j = class extends Et {
2256
2323
  * @returns The `PlacementController` instance.
2257
2324
  */
2258
2325
  get placementController() {
2259
- return this._placementController || (this._placementController = new Fn(this)), this._placementController;
2326
+ return this._placementController || (this._placementController = new Qt(this)), this._placementController;
2260
2327
  }
2261
2328
  get open() {
2262
2329
  return this._open;
2263
2330
  }
2264
- set open(t) {
2265
- var n;
2266
- t && this.disabled || t !== this.open && ((n = this.strategy) != null && n.activelyOpening && !t || (this._open = t, this.open && (j.openCount += 1), this.requestUpdate("open", !this.open), this.open && this.requestSlottable()));
2331
+ set open(e) {
2332
+ var t;
2333
+ e && this.disabled || e !== this.open && ((t = this.strategy) != null && t.activelyOpening && !e || (this._open = e, this.open && (st.openCount += 1), this.requestUpdate("open", !this.open), this.open && this.requestSlottable()));
2267
2334
  }
2268
2335
  get state() {
2269
2336
  return this._state;
2270
2337
  }
2271
- set state(t) {
2272
- var i;
2273
- if (t === this.state)
2338
+ set state(e) {
2339
+ var t;
2340
+ if (e === this.state)
2274
2341
  return;
2275
2342
  const n = this.state;
2276
- this._state = t, (this.state === "opened" || this.state === "closed") && ((i = this.strategy) == null || i.shouldCompleteOpen()), this.requestUpdate("state", n);
2343
+ this._state = e, (this.state === "opened" || this.state === "closed") && ((t = this.strategy) == null || t.shouldCompleteOpen()), this.requestUpdate("state", n);
2277
2344
  }
2278
2345
  /**
2279
2346
  * Provides an instance of the `ElementResolutionController` for managing the element
@@ -2284,7 +2351,7 @@ const P = (j = class extends Et {
2284
2351
  * @returns The `ElementResolutionController` instance.
2285
2352
  */
2286
2353
  get elementResolver() {
2287
- return this._elementResolver || (this._elementResolver = new Te(this)), this._elementResolver;
2354
+ return this._elementResolver || (this._elementResolver = new He(this)), this._elementResolver;
2288
2355
  }
2289
2356
  /**
2290
2357
  * Determines if the overlay uses a dialog.
@@ -2336,12 +2403,12 @@ const P = (j = class extends Et {
2336
2403
  managePosition() {
2337
2404
  if (!this.requiresPositioning || !this.open)
2338
2405
  return;
2339
- const t = this.offset || 0, n = this.triggerElement, i = this.placement || "right", o = this.tipPadding;
2406
+ const e = this.offset || 0, t = this.triggerElement, n = this.placement || "right", o = this.tipPadding;
2340
2407
  this.placementController.placeOverlay(this.dialogEl, {
2341
- offset: t,
2342
- placement: i,
2408
+ offset: e,
2409
+ placement: n,
2343
2410
  tipPadding: o,
2344
- trigger: n,
2411
+ trigger: t,
2345
2412
  type: this.type
2346
2413
  });
2347
2414
  }
@@ -2357,11 +2424,11 @@ const P = (j = class extends Et {
2357
2424
  */
2358
2425
  async managePopoverOpen() {
2359
2426
  super.managePopoverOpen();
2360
- const t = this.open;
2361
- if (this.open !== t || (await this.manageDelay(t), this.open !== t) || (await this.ensureOnDOM(t), this.open !== t))
2427
+ const e = this.open;
2428
+ if (this.open !== e || (await this.manageDelay(e), this.open !== e) || (await this.ensureOnDOM(e), this.open !== e))
2362
2429
  return;
2363
- const n = await this.makeTransition(t);
2364
- this.open === t && await this.applyFocus(t, n);
2430
+ const t = await this.makeTransition(e);
2431
+ this.open === e && await this.applyFocus(e, t);
2365
2432
  }
2366
2433
  /**
2367
2434
  * Applies focus to the appropriate element after the popover has been opened.
@@ -2375,13 +2442,13 @@ const P = (j = class extends Et {
2375
2442
  * @param focusEl - The element to focus after opening the popover.
2376
2443
  * @returns A promise that resolves when the focus has been applied.
2377
2444
  */
2378
- async applyFocus(t, n) {
2445
+ async applyFocus(e, t) {
2379
2446
  if (!(this.receivesFocus === "false" || this.type === "hint")) {
2380
- if (await L(), await L(), t === this.open && !this.open) {
2447
+ if (await T(), await T(), e === this.open && !this.open) {
2381
2448
  this.hasNonVirtualTrigger && this.contains(this.getRootNode().activeElement) && this.triggerElement.focus();
2382
2449
  return;
2383
2450
  }
2384
- n == null || n.focus();
2451
+ t == null || t.focus();
2385
2452
  }
2386
2453
  }
2387
2454
  /**
@@ -2394,22 +2461,22 @@ const P = (j = class extends Et {
2394
2461
  * @override
2395
2462
  */
2396
2463
  returnFocus() {
2397
- var n;
2464
+ var e;
2398
2465
  if (this.open || this.type === "hint")
2399
2466
  return;
2400
2467
  const t = () => {
2401
- var s, r;
2468
+ var n, o;
2402
2469
  const i = [];
2403
- let o = document.activeElement;
2404
- for (; (s = o == null ? void 0 : o.shadowRoot) != null && s.activeElement; )
2405
- o = o.shadowRoot.activeElement;
2406
- for (; o; ) {
2407
- const l = o.assignedSlot || o.parentElement || ((r = o.getRootNode()) == null ? void 0 : r.host);
2408
- l && i.push(l), o = l;
2470
+ let s = document.activeElement;
2471
+ for (; (n = s == null ? void 0 : s.shadowRoot) != null && n.activeElement; )
2472
+ s = s.shadowRoot.activeElement;
2473
+ for (; s; ) {
2474
+ const l = s.assignedSlot || s.parentElement || ((o = s.getRootNode()) == null ? void 0 : o.host);
2475
+ l && i.push(l), s = l;
2409
2476
  }
2410
2477
  return i;
2411
2478
  };
2412
- this.receivesFocus !== "false" && ((n = this.triggerElement) != null && n.focus) && (this.contains(this.getRootNode().activeElement) || t().includes(this) || document.activeElement === document.body) && this.triggerElement.focus();
2479
+ this.receivesFocus !== "false" && (e = this.triggerElement) != null && e.focus && (this.contains(this.getRootNode().activeElement) || t().includes(this) || document.activeElement === document.body) && this.triggerElement.focus();
2413
2480
  }
2414
2481
  /**
2415
2482
  * Manages the process of opening or closing the overlay.
@@ -2421,18 +2488,18 @@ const P = (j = class extends Et {
2421
2488
  * @param oldOpen - The previous open state of the overlay.
2422
2489
  * @returns A promise that resolves when the overlay has been fully managed.
2423
2490
  */
2424
- async manageOpen(t) {
2425
- if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (Zt.add(this), this.willPreventClose && (document.addEventListener(
2491
+ async manageOpen(e) {
2492
+ if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (ae.add(this), this.willPreventClose && (document.addEventListener(
2426
2493
  "pointerup",
2427
2494
  () => {
2428
2495
  this.dialogEl.classList.toggle("not-immediately-closable", !1), this.willPreventClose = !1;
2429
2496
  },
2430
2497
  { once: !0 }
2431
- ), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (t && this.dispose(), Zt.remove(this)), this.open && this.state !== "opened" ? this.state = "opening" : !this.open && this.state !== "closed" && (this.state = "closing"), this.usesDialog ? this.manageDialogOpen() : this.managePopoverOpen(), this.type === "auto")) {
2432
- const n = this.getRootNode();
2433
- this.open ? n.addEventListener("focusout", this.closeOnFocusOut, {
2498
+ ), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (e && this.dispose(), ae.remove(this)), this.open && this.state !== "opened" ? this.state = "opening" : !this.open && this.state !== "closed" && (this.state = "closing"), this.usesDialog ? this.manageDialogOpen() : this.managePopoverOpen(), this.type === "auto")) {
2499
+ const t = this.getRootNode();
2500
+ this.open ? t.addEventListener("focusout", this.closeOnFocusOut, {
2434
2501
  capture: !0
2435
- }) : n.removeEventListener("focusout", this.closeOnFocusOut, {
2502
+ }) : t.removeEventListener("focusout", this.closeOnFocusOut, {
2436
2503
  capture: !0
2437
2504
  });
2438
2505
  }
@@ -2446,8 +2513,8 @@ const P = (j = class extends Et {
2446
2513
  * @protected
2447
2514
  */
2448
2515
  bindEvents() {
2449
- var t;
2450
- (t = this.strategy) == null || t.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new xe[this.triggerInteraction](
2516
+ var e;
2517
+ (e = this.strategy) == null || e.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new ie[this.triggerInteraction](
2451
2518
  this.triggerElement,
2452
2519
  {
2453
2520
  overlay: this
@@ -2463,8 +2530,8 @@ const P = (j = class extends Et {
2463
2530
  * @protected
2464
2531
  * @param event - The `beforetoggle` event with the new state.
2465
2532
  */
2466
- handleBeforetoggle(t) {
2467
- t.newState !== "open" && this.handleBrowserClose(t);
2533
+ handleBeforetoggle(e) {
2534
+ e.newState !== "open" && this.handleBrowserClose(e);
2468
2535
  }
2469
2536
  /**
2470
2537
  * Handles the browser's close event to manage the overlay's state.
@@ -2475,9 +2542,9 @@ const P = (j = class extends Et {
2475
2542
  * @protected
2476
2543
  * @param event - The browser's close event.
2477
2544
  */
2478
- handleBrowserClose(t) {
2479
- var n;
2480
- if (t.stopPropagation(), !((n = this.strategy) != null && n.activelyOpening)) {
2545
+ handleBrowserClose(e) {
2546
+ var t;
2547
+ if (e.stopPropagation(), !((t = this.strategy) != null && t.activelyOpening)) {
2481
2548
  this.open = !1;
2482
2549
  return;
2483
2550
  }
@@ -2504,8 +2571,8 @@ const P = (j = class extends Et {
2504
2571
  * @protected
2505
2572
  */
2506
2573
  handleSlotchange() {
2507
- var t, n;
2508
- this.elements.length === 0 ? (t = this.strategy) == null || t.releaseDescription() : this.hasNonVirtualTrigger && ((n = this.strategy) == null || n.prepareDescription(this.triggerElement));
2574
+ var e, t;
2575
+ this.elements.length === 0 ? (e = this.strategy) == null || e.releaseDescription() : this.hasNonVirtualTrigger && ((t = this.strategy) == null || t.prepareDescription(this.triggerElement));
2509
2576
  }
2510
2577
  /**
2511
2578
  * Determines whether the overlay should prevent closing.
@@ -2517,8 +2584,8 @@ const P = (j = class extends Et {
2517
2584
  * @returns `true` if the overlay should prevent closing, otherwise `false`.
2518
2585
  */
2519
2586
  shouldPreventClose() {
2520
- const t = this.willPreventClose;
2521
- return this.willPreventClose = !1, t;
2587
+ const e = this.willPreventClose;
2588
+ return this.willPreventClose = !1, e;
2522
2589
  }
2523
2590
  /**
2524
2591
  * Requests slottable content for the overlay.
@@ -2532,9 +2599,9 @@ const P = (j = class extends Et {
2532
2599
  */
2533
2600
  requestSlottable() {
2534
2601
  this.lastRequestSlottableState !== this.open && (this.open || document.body.offsetHeight, this.dispatchEvent(
2535
- new ze(
2602
+ new we(
2536
2603
  "overlay-content",
2537
- this.open ? {} : Nt
2604
+ this.open ? {} : St
2538
2605
  )
2539
2606
  ), this.lastRequestSlottableState = this.open);
2540
2607
  }
@@ -2547,14 +2614,14 @@ const P = (j = class extends Et {
2547
2614
  * @override
2548
2615
  * @param changes - The properties that have changed.
2549
2616
  */
2550
- willUpdate(t) {
2551
- var i;
2552
- if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${_t()}`), t.has("open") && (this.hasUpdated || this.open) && this.manageOpen(t.get("open")), t.has("trigger")) {
2553
- const [o, s] = ((i = this.trigger) == null ? void 0 : i.split("@")) || [];
2554
- this.elementResolver.selector = o ? `#${o}` : "", this.triggerInteraction = s;
2617
+ willUpdate(e) {
2618
+ var t;
2619
+ if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${It()}`), e.has("open") && (this.hasUpdated || this.open) && this.manageOpen(e.get("open")), e.has("trigger")) {
2620
+ const [o, i] = ((t = this.trigger) == null ? void 0 : t.split("@")) || [];
2621
+ this.elementResolver.selector = o ? `#${o}` : "", this.triggerInteraction = i;
2555
2622
  }
2556
2623
  let n = !1;
2557
- t.has(Re) && (n = this.triggerElement, this.triggerElement = this.elementResolver.element), t.has("triggerElement") && (n = t.get("triggerElement")), n !== !1 && this.bindEvents();
2624
+ e.has(Be) && (n = this.triggerElement, this.triggerElement = this.elementResolver.element), e.has("triggerElement") && (n = e.get("triggerElement")), n !== !1 && this.bindEvents();
2558
2625
  }
2559
2626
  /**
2560
2627
  * Lifecycle method called after the component updates.
@@ -2565,8 +2632,8 @@ const P = (j = class extends Et {
2565
2632
  * @override
2566
2633
  * @param changes - The properties that have changed.
2567
2634
  */
2568
- updated(t) {
2569
- super.updated(t), t.has("placement") && (this.placement ? this.dialogEl.setAttribute("actual-placement", this.placement) : this.dialogEl.removeAttribute("actual-placement"), this.open && t.get("placement") !== void 0 && this.placementController.resetOverlayPosition()), t.has("state") && this.state === "closed" && t.get("state") !== void 0 && this.placementController.clearOverlayPosition();
2635
+ updated(e) {
2636
+ super.updated(e), e.has("placement") && (this.placement ? this.dialogEl.setAttribute("actual-placement", this.placement) : this.dialogEl.removeAttribute("actual-placement"), this.open && e.get("placement") !== void 0 && this.placementController.resetOverlayPosition()), e.has("state") && this.state === "closed" && e.get("state") !== void 0 && this.placementController.clearOverlayPosition();
2570
2637
  }
2571
2638
  /**
2572
2639
  * Renders the content of the overlay.
@@ -2578,7 +2645,7 @@ const P = (j = class extends Et {
2578
2645
  * @returns The template result containing the slot element.
2579
2646
  */
2580
2647
  renderContent() {
2581
- return k` <slot @slotchange=${this.handleSlotchange}></slot> `;
2648
+ return A` <slot @slotchange=${this.handleSlotchange}></slot> `;
2582
2649
  }
2583
2650
  /**
2584
2651
  * Generates a style map for the dialog element.
@@ -2591,7 +2658,7 @@ const P = (j = class extends Et {
2591
2658
  */
2592
2659
  get dialogStyleMap() {
2593
2660
  return {
2594
- "--luzmo-overlay-open-count": j.openCount.toString()
2661
+ "--luzmo-overlay-open-count": st.openCount.toString()
2595
2662
  };
2596
2663
  }
2597
2664
  /**
@@ -2604,14 +2671,14 @@ const P = (j = class extends Et {
2604
2671
  * @returns The template result containing the dialog element.
2605
2672
  */
2606
2673
  renderDialog() {
2607
- return k`
2674
+ return A`
2608
2675
  <dialog
2609
2676
  class="dialog"
2610
2677
  part="dialog"
2611
- placement=${St(
2678
+ placement=${$t(
2612
2679
  this.requiresPositioning ? this.placement || "right" : void 0
2613
2680
  )}
2614
- style=${Jt(this.dialogStyleMap)}
2681
+ style=${re(this.dialogStyleMap)}
2615
2682
  @close=${this.handleBrowserClose}
2616
2683
  @cancel=${this.handleBrowserClose}
2617
2684
  @beforetoggle=${this.handleBeforetoggle}
@@ -2631,15 +2698,15 @@ const P = (j = class extends Et {
2631
2698
  * @returns The template result containing the popover element.
2632
2699
  */
2633
2700
  renderPopover() {
2634
- return k`
2701
+ return A`
2635
2702
  <div
2636
2703
  class="dialog"
2637
2704
  part="dialog"
2638
- placement=${St(
2705
+ placement=${$t(
2639
2706
  this.requiresPositioning ? this.placement || "right" : void 0
2640
2707
  )}
2641
- popover=${St(this.popoverValue)}
2642
- style=${Jt(this.dialogStyleMap)}
2708
+ popover=${$t(this.popoverValue)}
2709
+ style=${re(this.dialogStyleMap)}
2643
2710
  @beforetoggle=${this.handleBeforetoggle}
2644
2711
  @close=${this.handleBrowserClose}
2645
2712
  ?is-visible=${this.state !== "closed"}
@@ -2658,9 +2725,9 @@ const P = (j = class extends Et {
2658
2725
  * @returns The template result containing the overlay content.
2659
2726
  */
2660
2727
  render() {
2661
- const t = this.type === "modal" || this.type === "page";
2662
- return k`
2663
- ${t ? this.renderDialog() : this.renderPopover()}
2728
+ const e = this.type === "modal" || this.type === "page";
2729
+ return A`
2730
+ ${e ? this.renderDialog() : this.renderPopover()}
2664
2731
  <slot name="longpress-describedby-descriptor"></slot>
2665
2732
  `;
2666
2733
  }
@@ -2684,74 +2751,118 @@ const P = (j = class extends Et {
2684
2751
  * @override
2685
2752
  */
2686
2753
  disconnectedCallback() {
2687
- var t;
2688
- (t = this.strategy) == null || t.releaseDescription(), this.open = !1, super.disconnectedCallback();
2754
+ var e;
2755
+ (e = this.strategy) == null || e.releaseDescription(), this.open = !1, super.disconnectedCallback();
2689
2756
  }
2690
- }, j.styles = [ae(Ye)], j.openCount = 1, j);
2691
- T([
2757
+ }, st.styles = [fe(oo)], st.openCount = 1, st);
2758
+ P([
2692
2759
  x({ type: Boolean })
2693
- ], P.prototype, "delayed", 1);
2694
- T([
2695
- pt(".dialog")
2696
- ], P.prototype, "dialogEl", 2);
2697
- T([
2760
+ ], z.prototype, "delayed", 1);
2761
+ P([
2762
+ gt(".dialog")
2763
+ ], z.prototype, "dialogEl", 2);
2764
+ P([
2698
2765
  x({ type: Boolean })
2699
- ], P.prototype, "disabled", 1);
2700
- T([
2701
- Fe({
2766
+ ], z.prototype, "disabled", 1);
2767
+ P([
2768
+ Ue({
2702
2769
  flatten: !0,
2703
2770
  selector: ':not([slot="longpress-describedby-descriptor"], slot)'
2704
2771
  })
2705
- ], P.prototype, "elements", 2);
2706
- T([
2772
+ ], z.prototype, "elements", 2);
2773
+ P([
2707
2774
  x({ type: Number })
2708
- ], P.prototype, "offset", 2);
2709
- T([
2775
+ ], z.prototype, "offset", 2);
2776
+ P([
2710
2777
  x({ type: Boolean, reflect: !0 })
2711
- ], P.prototype, "open", 1);
2712
- T([
2778
+ ], z.prototype, "open", 1);
2779
+ P([
2713
2780
  x()
2714
- ], P.prototype, "placement", 2);
2715
- T([
2781
+ ], z.prototype, "placement", 2);
2782
+ P([
2716
2783
  x({ attribute: "receives-focus" })
2717
- ], P.prototype, "receivesFocus", 2);
2718
- T([
2719
- pt("slot")
2720
- ], P.prototype, "slotEl", 2);
2721
- T([
2722
- ut()
2723
- ], P.prototype, "state", 1);
2724
- T([
2784
+ ], z.prototype, "receivesFocus", 2);
2785
+ P([
2786
+ gt("slot")
2787
+ ], z.prototype, "slotEl", 2);
2788
+ P([
2789
+ mt()
2790
+ ], z.prototype, "state", 1);
2791
+ P([
2725
2792
  x({ type: Number, attribute: "tip-padding" })
2726
- ], P.prototype, "tipPadding", 2);
2727
- T([
2793
+ ], z.prototype, "tipPadding", 2);
2794
+ P([
2728
2795
  x()
2729
- ], P.prototype, "trigger", 2);
2730
- T([
2796
+ ], z.prototype, "trigger", 2);
2797
+ P([
2731
2798
  x({ attribute: !1 })
2732
- ], P.prototype, "triggerElement", 2);
2733
- T([
2799
+ ], z.prototype, "triggerElement", 2);
2800
+ P([
2734
2801
  x({ attribute: !1 })
2735
- ], P.prototype, "triggerInteraction", 2);
2736
- T([
2802
+ ], z.prototype, "triggerInteraction", 2);
2803
+ P([
2737
2804
  x()
2738
- ], P.prototype, "type", 2);
2739
- let Dt = P;
2740
- const st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2805
+ ], z.prototype, "type", 2);
2806
+ let wt = z;
2807
+ const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2808
+ __proto__: null,
2809
+ LuzmoOverlay: wt
2810
+ }, Symbol.toStringTag, { value: "Module" })), Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2741
2811
  __proto__: null,
2742
- Overlay: Dt
2743
- }, Symbol.toStringTag, { value: "Module" })), Vn = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
2744
- var Un = Object.defineProperty, R = (e, t, n, i) => {
2745
- for (var o = void 0, s = e.length - 1, r; s >= 0; s--)
2746
- (r = e[s]) && (o = r(t, n, o) || o);
2747
- return o && Un(t, n, o), o;
2812
+ C: te,
2813
+ H: ee,
2814
+ I: nt,
2815
+ L: J,
2816
+ P: Qt,
2817
+ V: ct,
2818
+ a: T,
2819
+ b: bt,
2820
+ c: oe,
2821
+ d: ne,
2822
+ e: wt,
2823
+ f: kt,
2824
+ g: vt,
2825
+ n: V,
2826
+ o: lt,
2827
+ p: Re,
2828
+ s: ie
2829
+ }, Symbol.toStringTag, { value: "Module" }));
2830
+ /*! * Lucero - The design system for Luzmo.
2831
+ *
2832
+ * Copyright © 2025 Luzmo
2833
+ * All rights reserved.
2834
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
2835
+ * This license allows users with a current active Luzmo account to use Lucero.
2836
+ * This license terminates automatically if a user no longer has an active Luzmo account.
2837
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
2838
+ *
2839
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2840
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2841
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2842
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2843
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2844
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2845
+ * SOFTWARE.
2846
+ * */
2847
+ const Ko = () => {
2848
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
2849
+ const e = document.createElement("style");
2850
+ e.setAttribute("data-luzmo-vars", ""), e.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(e);
2851
+ }
2852
+ };
2853
+ Ko();
2854
+ const Xo = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
2855
+ var Yo = Object.defineProperty, k = (e, t, n, o) => {
2856
+ for (var i = void 0, s = e.length - 1, l; s >= 0; s--)
2857
+ (l = e[s]) && (i = l(t, n, i) || i);
2858
+ return i && Yo(t, n, i), i;
2748
2859
  };
2749
- class O extends le {
2860
+ class C extends ge {
2750
2861
  constructor() {
2751
2862
  super(...arguments), this.content = "click hover longpress", this.offset = 6, this.disabled = !1, this.receivesFocus = "auto", this.clickContent = [], this.longpressContent = [], this.hoverContent = [], this.targetContent = [];
2752
2863
  }
2753
2864
  static get styles() {
2754
- return [ae(Vn)];
2865
+ return [fe(Xo)];
2755
2866
  }
2756
2867
  getAssignedElementsFromSlot(t) {
2757
2868
  return t.assignedElements({ flatten: !0 });
@@ -2777,30 +2888,30 @@ class O extends le {
2777
2888
  }
2778
2889
  handleBeforetoggle(t) {
2779
2890
  const { target: n } = t;
2780
- let i;
2891
+ let o;
2781
2892
  if (n === this.clickOverlayElement)
2782
- i = "click";
2893
+ o = "click";
2783
2894
  else if (n === this.longpressOverlayElement)
2784
- i = "longpress";
2895
+ o = "longpress";
2785
2896
  else if (n === this.hoverOverlayElement)
2786
- i = "hover";
2897
+ o = "hover";
2787
2898
  else
2788
2899
  return;
2789
- t.newState === "open" ? this.open = i : this.open === i && (this.open = void 0);
2900
+ t.newState === "open" ? this.open = o : this.open === o && (this.open = void 0);
2790
2901
  }
2791
2902
  update(t) {
2792
- var n, i, o, s, r, l;
2793
- t.has("clickContent") && (this.clickPlacement = ((n = this.clickContent[0]) == null ? void 0 : n.getAttribute("placement")) || ((i = this.clickContent[0]) == null ? void 0 : i.getAttribute("direction")) || void 0), t.has("hoverContent") && (this.hoverPlacement = ((o = this.hoverContent[0]) == null ? void 0 : o.getAttribute("placement")) || ((s = this.hoverContent[0]) == null ? void 0 : s.getAttribute("direction")) || void 0), t.has("longpressContent") && (this.longpressPlacement = ((r = this.longpressContent[0]) == null ? void 0 : r.getAttribute("placement")) || ((l = this.longpressContent[0]) == null ? void 0 : l.getAttribute("direction")) || void 0), super.update(t);
2903
+ var n, o, i, s, l, r;
2904
+ t.has("clickContent") && (this.clickPlacement = ((n = this.clickContent[0]) == null ? void 0 : n.getAttribute("placement")) || ((o = this.clickContent[0]) == null ? void 0 : o.getAttribute("direction")) || void 0), t.has("hoverContent") && (this.hoverPlacement = ((i = this.hoverContent[0]) == null ? void 0 : i.getAttribute("placement")) || ((s = this.hoverContent[0]) == null ? void 0 : s.getAttribute("direction")) || void 0), t.has("longpressContent") && (this.longpressPlacement = ((l = this.longpressContent[0]) == null ? void 0 : l.getAttribute("placement")) || ((r = this.longpressContent[0]) == null ? void 0 : r.getAttribute("direction")) || void 0), super.update(t);
2794
2905
  }
2795
2906
  renderSlot(t) {
2796
- return k`
2907
+ return A`
2797
2908
  <slot name=${t} @slotchange=${this.handleSlotContent}></slot>
2798
2909
  `;
2799
2910
  }
2800
2911
  renderClickOverlay() {
2801
- Promise.resolve().then(() => st);
2912
+ Promise.resolve().then(() => Ft).then((n) => n.f);
2802
2913
  const t = this.renderSlot("click-content");
2803
- return this.clickContent.length === 0 ? t : k`
2914
+ return this.clickContent.length === 0 ? t : A`
2804
2915
  <luzmo-overlay
2805
2916
  id="click-overlay"
2806
2917
  ?disabled=${this.disabled || this.clickContent.length === 0}
@@ -2818,9 +2929,9 @@ class O extends le {
2818
2929
  `;
2819
2930
  }
2820
2931
  renderHoverOverlay() {
2821
- Promise.resolve().then(() => st);
2932
+ Promise.resolve().then(() => Ft).then((n) => n.f);
2822
2933
  const t = this.renderSlot("hover-content");
2823
- return this.hoverContent.length === 0 ? t : k`
2934
+ return this.hoverContent.length === 0 ? t : A`
2824
2935
  <luzmo-overlay
2825
2936
  id="hover-overlay"
2826
2937
  ?open=${this.open === "hover" && this.hoverContent.length > 0}
@@ -2838,9 +2949,9 @@ class O extends le {
2838
2949
  `;
2839
2950
  }
2840
2951
  renderLongpressOverlay() {
2841
- Promise.resolve().then(() => st);
2952
+ Promise.resolve().then(() => Ft).then((n) => n.f);
2842
2953
  const t = this.renderSlot("longpress-content");
2843
- return this.longpressContent.length === 0 ? t : k`
2954
+ return this.longpressContent.length === 0 ? t : A`
2844
2955
  <luzmo-overlay
2845
2956
  id="longpress-overlay"
2846
2957
  ?disabled=${this.disabled || this.longpressContent.length === 0}
@@ -2860,16 +2971,16 @@ class O extends le {
2860
2971
  }
2861
2972
  render() {
2862
2973
  const t = this.content.split(" ");
2863
- return k`
2974
+ return A`
2864
2975
  <slot
2865
2976
  id="trigger"
2866
2977
  name="trigger"
2867
2978
  @slotchange=${this.handleTriggerContent}
2868
2979
  ></slot>
2869
2980
  ${[
2870
- t.includes("click") ? this.renderClickOverlay() : k``,
2871
- t.includes("hover") ? this.renderHoverOverlay() : k``,
2872
- t.includes("longpress") ? this.renderLongpressOverlay() : k``
2981
+ t.includes("click") ? this.renderClickOverlay() : A``,
2982
+ t.includes("hover") ? this.renderHoverOverlay() : A``,
2983
+ t.includes("longpress") ? this.renderLongpressOverlay() : A``
2873
2984
  ]}
2874
2985
  `;
2875
2986
  }
@@ -2883,60 +2994,60 @@ class O extends le {
2883
2994
  return await super.getUpdateComplete();
2884
2995
  }
2885
2996
  }
2886
- R([
2997
+ k([
2887
2998
  x()
2888
- ], O.prototype, "content");
2889
- R([
2999
+ ], C.prototype, "content");
3000
+ k([
2890
3001
  x({ reflect: !0 })
2891
- ], O.prototype, "placement");
2892
- R([
3002
+ ], C.prototype, "placement");
3003
+ k([
2893
3004
  x()
2894
- ], O.prototype, "type");
2895
- R([
3005
+ ], C.prototype, "type");
3006
+ k([
2896
3007
  x({ type: Number })
2897
- ], O.prototype, "offset");
2898
- R([
3008
+ ], C.prototype, "offset");
3009
+ k([
2899
3010
  x({ reflect: !0 })
2900
- ], O.prototype, "open");
2901
- R([
3011
+ ], C.prototype, "open");
3012
+ k([
2902
3013
  x({ type: Boolean, reflect: !0 })
2903
- ], O.prototype, "disabled");
2904
- R([
3014
+ ], C.prototype, "disabled");
3015
+ k([
2905
3016
  x({ attribute: "receives-focus" })
2906
- ], O.prototype, "receivesFocus");
2907
- R([
2908
- ut()
2909
- ], O.prototype, "clickContent");
2910
- R([
2911
- ut()
2912
- ], O.prototype, "longpressContent");
2913
- R([
2914
- ut()
2915
- ], O.prototype, "hoverContent");
2916
- R([
2917
- ut()
2918
- ], O.prototype, "targetContent");
2919
- R([
2920
- pt("#click-overlay", !0)
2921
- ], O.prototype, "clickOverlayElement");
2922
- R([
2923
- pt("#longpress-overlay", !0)
2924
- ], O.prototype, "longpressOverlayElement");
2925
- R([
2926
- pt("#hover-overlay", !0)
2927
- ], O.prototype, "hoverOverlayElement");
2928
- function jn(e, t, n, i) {
2929
- return Dt.open(
3017
+ ], C.prototype, "receivesFocus");
3018
+ k([
3019
+ mt()
3020
+ ], C.prototype, "clickContent");
3021
+ k([
3022
+ mt()
3023
+ ], C.prototype, "longpressContent");
3024
+ k([
3025
+ mt()
3026
+ ], C.prototype, "hoverContent");
3027
+ k([
3028
+ mt()
3029
+ ], C.prototype, "targetContent");
3030
+ k([
3031
+ gt("#click-overlay", !0)
3032
+ ], C.prototype, "clickOverlayElement");
3033
+ k([
3034
+ gt("#longpress-overlay", !0)
3035
+ ], C.prototype, "longpressOverlayElement");
3036
+ k([
3037
+ gt("#hover-overlay", !0)
3038
+ ], C.prototype, "hoverOverlayElement");
3039
+ function Go(e, t, n, o) {
3040
+ return wt.open(
2930
3041
  e,
2931
3042
  t,
2932
3043
  n,
2933
- i
3044
+ o
2934
3045
  );
2935
3046
  }
2936
- class Kn extends $e {
3047
+ class se extends Me {
2937
3048
  /* c8 ignore next 9 */
2938
3049
  render(t) {
2939
- return ce;
3050
+ return ve;
2940
3051
  }
2941
3052
  update(t, [n]) {
2942
3053
  this.template = n, this.target !== t.element && (this.target = t.element, this.renderBefore = this.target.children[0]), this.listenerHost = this.target, this.init();
@@ -2944,19 +3055,19 @@ class Kn extends $e {
2944
3055
  handleSlottableRequest(t) {
2945
3056
  if (t.target !== t.currentTarget)
2946
3057
  return;
2947
- const n = t.data === Nt;
2948
- he(n ? void 0 : this.template(), this.target, {
3058
+ const n = t.data === St;
3059
+ ye(n ? void 0 : this.template(), this.target, {
2949
3060
  renderBefore: this.renderBefore
2950
3061
  });
2951
3062
  }
2952
3063
  init() {
2953
- var n;
2954
- (n = this.listeners) == null || n.abort(), this.listeners = new AbortController();
2955
- const { signal: t } = this.listeners;
3064
+ var t;
3065
+ (t = this.listeners) == null || t.abort(), this.listeners = new AbortController();
3066
+ const { signal: n } = this.listeners;
2956
3067
  this.listenerHost.addEventListener(
2957
3068
  "slottable-request",
2958
- (i) => this.handleSlottableRequest(i),
2959
- { signal: t }
3069
+ (o) => this.handleSlottableRequest(o),
3070
+ { signal: n }
2960
3071
  );
2961
3072
  }
2962
3073
  disconnected() {
@@ -2968,7 +3079,8 @@ class Kn extends $e {
2968
3079
  this.init();
2969
3080
  }
2970
3081
  }
2971
- class Ce extends Kn {
3082
+ const Jo = _t(se);
3083
+ class Ae extends se {
2972
3084
  constructor() {
2973
3085
  super(...arguments), this.defaultOptions = {
2974
3086
  triggerInteraction: "click",
@@ -2982,67 +3094,78 @@ class Ce extends Kn {
2982
3094
  }
2983
3095
  /* c8 ignore next 9 */
2984
3096
  render(t, n) {
2985
- return ce;
3097
+ return ve;
2986
3098
  }
2987
- update(t, [n, i]) {
2988
- var l, a, c;
3099
+ update(t, [n, o]) {
3100
+ var i, s, l;
2989
3101
  this.options = {
2990
3102
  ...this.defaultOptions.overlayOptions,
2991
- ...i == null ? void 0 : i.overlayOptions
2992
- }, this.insertionOptions = i == null ? void 0 : i.insertionOptions, this.template = n, this.host = (l = t.options) == null ? void 0 : l.host;
2993
- let o = !1;
2994
- const s = (i == null ? void 0 : i.triggerInteraction) || this.defaultOptions.triggerInteraction, r = vt[(a = this.strategy) == null ? void 0 : a.type] !== s;
2995
- this.target !== t.element && (this.target = t.element, o = !0), (o || r) && ((c = this.strategy) == null || c.abort(), this.strategy = new xe[s](this.target, {
3103
+ ...o == null ? void 0 : o.overlayOptions
3104
+ }, this.insertionOptions = o == null ? void 0 : o.insertionOptions, this.template = n, this.host = (i = t.options) == null ? void 0 : i.host;
3105
+ let r = !1;
3106
+ const a = (o == null ? void 0 : o.triggerInteraction) || this.defaultOptions.triggerInteraction, c = nt[(s = this.strategy) == null ? void 0 : s.type] !== a;
3107
+ this.target !== t.element && (this.target = t.element, r = !0), (r || c) && ((l = this.strategy) == null || l.abort(), this.strategy = new ie[a](this.target, {
2996
3108
  isPersistent: !0,
2997
3109
  handleOverlayReady: (h) => {
2998
3110
  this.listenerHost = this.overlay = h, this.init();
2999
3111
  }
3000
- })), this.strategy.open = (i == null ? void 0 : i.open) ?? !1;
3112
+ })), this.strategy.open = (o == null ? void 0 : o.open) ?? !1;
3001
3113
  }
3002
3114
  handleSlottableRequest(t) {
3003
- var o, s;
3115
+ var n, o;
3004
3116
  if (t.target !== t.currentTarget)
3005
3117
  return;
3006
- const n = t.data === Nt, i = {};
3007
- if (this.host && (i.host = this.host), he(
3008
- n ? void 0 : this.template(),
3118
+ const i = t.data === St, s = {};
3119
+ if (this.host && (s.host = this.host), ye(
3120
+ i ? void 0 : this.template(),
3009
3121
  this.overlay,
3010
- i
3011
- ), n)
3122
+ s
3123
+ ), i)
3012
3124
  this.overlay.remove();
3013
3125
  else {
3014
- rt.applyOptions(this.overlay, {
3126
+ J.applyOptions(this.overlay, {
3015
3127
  ...this.options,
3016
3128
  trigger: this.target
3017
3129
  });
3018
- const r = typeof ((o = this.insertionOptions) == null ? void 0 : o.el) == "function" ? this.insertionOptions.el() : ((s = this.insertionOptions) == null ? void 0 : s.el) || this.target, { where: l = "afterend" } = this.insertionOptions || {};
3019
- r.insertAdjacentElement(l, this.overlay);
3130
+ const l = typeof ((n = this.insertionOptions) == null ? void 0 : n.el) == "function" ? this.insertionOptions.el() : ((o = this.insertionOptions) == null ? void 0 : o.el) || this.target, { where: r = "afterend" } = this.insertionOptions || {};
3131
+ l.insertAdjacentElement(r, this.overlay);
3020
3132
  }
3021
3133
  }
3022
3134
  }
3023
- const Yn = re(Ce);
3024
- customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", Dt);
3025
- customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", O);
3026
- const Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3135
+ const Zo = _t(Ae);
3136
+ customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", wt);
3137
+ customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", C);
3138
+ const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3027
3139
  __proto__: null,
3028
- Overlay: Dt,
3029
- OverlayTrigger: O,
3030
- OverlayTriggerDirective: Ce,
3031
- VirtualTrigger: mt,
3032
- openOverlay: jn,
3033
- trigger: Yn
3140
+ ClickController: te,
3141
+ HoverController: ee,
3142
+ InteractionController: bt,
3143
+ InteractionTypes: nt,
3144
+ LONGPRESS_INSTRUCTIONS: oe,
3145
+ LongpressController: ne,
3146
+ LuzmoAbstractOverlay: J,
3147
+ LuzmoOverlay: wt,
3148
+ LuzmoOverlayTrigger: C,
3149
+ OverlayTriggerDirective: Ae,
3150
+ PlacementController: Qt,
3151
+ SlottableRequestDirective: se,
3152
+ SlottableRequestEvent: we,
3153
+ VirtualTrigger: ct,
3154
+ guaranteedAllTransitionend: vt,
3155
+ nextFrame: T,
3156
+ noop: V,
3157
+ openOverlay: Go,
3158
+ overlayTimer: lt,
3159
+ placementUpdatedSymbol: Re,
3160
+ removeSlottableRequest: St,
3161
+ slottableRequest: Jo,
3162
+ trigger: Zo
3034
3163
  }, Symbol.toStringTag, { value: "Module" }));
3035
3164
  export {
3036
- Dt as O,
3037
- ze as S,
3038
- mt as V,
3039
- Fe as a,
3040
- jn as b,
3041
- O as c,
3042
- Ce as d,
3043
- st as e,
3044
- Zn as i,
3045
- Jt as o,
3046
- Nt as r,
3047
- Yn as t
3165
+ St as a,
3166
+ Ft as b,
3167
+ Ue as d,
3168
+ ln as i,
3169
+ we as o,
3170
+ re as p
3048
3171
  };