@viasat/beam-web-components 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/Accordion/Accordion.d.ts +56 -0
  2. package/Accordion/Accordion.js +12 -0
  3. package/Accordion/AccordionGroup.context.d.ts +10 -0
  4. package/Accordion/AccordionGroup.context.js +8 -0
  5. package/Accordion/AccordionGroup.d.ts +33 -0
  6. package/Accordion/AccordionGroup.js +79 -0
  7. package/Accordion/index.d.ts +3 -0
  8. package/Accordion/index.js +6 -0
  9. package/Alert/Alert.d.ts +64 -0
  10. package/Alert/Alert.js +300 -0
  11. package/Alert/index.d.ts +2 -0
  12. package/Alert/index.js +4 -0
  13. package/Avatar/Avatar.d.ts +60 -0
  14. package/Avatar/Avatar.js +12 -0
  15. package/Avatar/AvatarGroup.context.d.ts +11 -0
  16. package/Avatar/AvatarGroup.context.js +8 -0
  17. package/Avatar/AvatarGroup.d.ts +43 -0
  18. package/Avatar/AvatarGroup.js +181 -0
  19. package/Avatar/index.d.ts +3 -0
  20. package/Avatar/index.js +6 -0
  21. package/Badge/Badge.d.ts +40 -0
  22. package/Badge/Badge.js +125 -0
  23. package/Badge/index.d.ts +2 -0
  24. package/Badge/index.js +4 -0
  25. package/BadgeDot/BadgeDot.d.ts +38 -0
  26. package/BadgeDot/BadgeDot.js +59 -0
  27. package/BadgeDot/index.d.ts +2 -0
  28. package/BadgeDot/index.js +4 -0
  29. package/Box/Box.d.ts +99 -0
  30. package/Box/Box.js +115 -0
  31. package/Box/index.d.ts +2 -0
  32. package/Box/index.js +4 -0
  33. package/Breadcrumbs/Breadcrumbs.context.d.ts +10 -0
  34. package/Breadcrumbs/Breadcrumbs.context.js +8 -0
  35. package/Breadcrumbs/Breadcrumbs.d.ts +38 -0
  36. package/Breadcrumbs/Breadcrumbs.js +115 -0
  37. package/Breadcrumbs/BreadcrumbsItem.d.ts +39 -0
  38. package/Breadcrumbs/BreadcrumbsItem.js +13 -0
  39. package/Breadcrumbs/index.d.ts +3 -0
  40. package/Breadcrumbs/index.js +6 -0
  41. package/Button/Button.d.ts +73 -0
  42. package/Button/Button.js +125 -0
  43. package/Button/index.d.ts +2 -0
  44. package/Button/index.js +4 -0
  45. package/CloseButton/CloseButton.d.ts +25 -0
  46. package/CloseButton/CloseButton.js +60 -0
  47. package/CloseButton/index.d.ts +2 -0
  48. package/CloseButton/index.js +4 -0
  49. package/Divider/Divider.d.ts +56 -0
  50. package/Divider/Divider.js +111 -0
  51. package/Divider/index.d.ts +2 -0
  52. package/Divider/index.js +4 -0
  53. package/EmptyState/EmptyState.d.ts +36 -0
  54. package/EmptyState/EmptyState.js +56 -0
  55. package/EmptyState/index.d.ts +2 -0
  56. package/EmptyState/index.js +4 -0
  57. package/HelperText/HelperText.d.ts +45 -0
  58. package/HelperText/HelperText.js +11 -0
  59. package/HelperText/index.d.ts +2 -0
  60. package/HelperText/index.js +4 -0
  61. package/Icon/Icon.d.ts +35 -0
  62. package/Icon/Icon.js +62 -0
  63. package/Icon/index.d.ts +2 -0
  64. package/Icon/index.js +4 -0
  65. package/InputChoiceGroup/InputChoiceGroup.context.d.ts +13 -0
  66. package/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  67. package/InputChoiceGroup/InputChoiceGroup.d.ts +87 -0
  68. package/InputChoiceGroup/InputChoiceGroup.js +205 -0
  69. package/InputChoiceGroup/index.d.ts +2 -0
  70. package/InputChoiceGroup/index.js +4 -0
  71. package/Link/Link.d.ts +48 -0
  72. package/Link/Link.js +77 -0
  73. package/Link/index.d.ts +2 -0
  74. package/Link/index.js +4 -0
  75. package/List/List.context.d.ts +15 -0
  76. package/List/List.context.js +8 -0
  77. package/List/List.d.ts +43 -0
  78. package/List/List.js +101 -0
  79. package/List/ListItem.d.ts +23 -0
  80. package/List/ListItem.js +90 -0
  81. package/List/index.d.ts +3 -0
  82. package/List/index.js +6 -0
  83. package/ProgressBar/ProgressBar.d.ts +52 -0
  84. package/ProgressBar/ProgressBar.js +128 -0
  85. package/ProgressBar/index.d.ts +2 -0
  86. package/ProgressBar/index.js +4 -0
  87. package/README.md +360 -0
  88. package/SegmentedControl/SegmentedControl.context.d.ts +16 -0
  89. package/SegmentedControl/SegmentedControl.context.js +8 -0
  90. package/SegmentedControl/SegmentedControl.d.ts +41 -0
  91. package/SegmentedControl/SegmentedControl.js +103 -0
  92. package/SegmentedControl/SegmentedControlItem.d.ts +54 -0
  93. package/SegmentedControl/SegmentedControlItem.js +284 -0
  94. package/SegmentedControl/SegmentedControlList.d.ts +23 -0
  95. package/SegmentedControl/SegmentedControlList.js +61 -0
  96. package/SegmentedControl/SegmentedControlPanel.d.ts +21 -0
  97. package/SegmentedControl/SegmentedControlPanel.js +43 -0
  98. package/SegmentedControl/index.d.ts +5 -0
  99. package/SegmentedControl/index.js +10 -0
  100. package/Spinner/Spinner.d.ts +50 -0
  101. package/Spinner/Spinner.js +186 -0
  102. package/Spinner/index.d.ts +2 -0
  103. package/Spinner/index.js +4 -0
  104. package/StateLayer/StateLayer.d.ts +17 -0
  105. package/StateLayer/StateLayer.js +6 -0
  106. package/StateLayer/index.d.ts +2 -0
  107. package/StateLayer/index.js +5 -0
  108. package/Text/Text.d.ts +85 -0
  109. package/Text/Text.js +103 -0
  110. package/Text/index.d.ts +2 -0
  111. package/Text/index.js +4 -0
  112. package/Tooltip/Tooltip.d.ts +139 -0
  113. package/Tooltip/Tooltip.js +1827 -0
  114. package/Tooltip/index.d.ts +2 -0
  115. package/Tooltip/index.js +5 -0
  116. package/chunks/Accordion.DYD3XcAx.js +161 -0
  117. package/chunks/Avatar.C2rfzUGP.js +174 -0
  118. package/chunks/BreadcrumbsItem.4ZR6wbMz.js +121 -0
  119. package/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  120. package/chunks/HelperText.CcVVOtA3.js +108 -0
  121. package/chunks/Upload.B9YEyp7b.js +12 -0
  122. package/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  123. package/chunks/classNames.Cq_tbDRp.js +94 -0
  124. package/chunks/constants.jOWREYQE.js +30 -0
  125. package/chunks/delegate.baxDQosr.js +63 -0
  126. package/chunks/dom.C98AFbJh.js +22 -0
  127. package/chunks/fileUpload.module.kN6o64aL.js +4 -0
  128. package/chunks/globals.Bz4SVF2g.js +4 -0
  129. package/chunks/helpers.AwJwaZvv.js +53 -0
  130. package/chunks/list.module.CZRPBLzy.js +4 -0
  131. package/chunks/register-custom-element.DHGKOhmA.js +17 -0
  132. package/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  133. package/chunks/tokens.CTW8Tt94.js +9 -0
  134. package/custom-elements.json +11341 -0
  135. package/local/Accordion/Accordion.js +12 -0
  136. package/local/Accordion/AccordionGroup.context.js +8 -0
  137. package/local/Accordion/AccordionGroup.js +78 -0
  138. package/local/Accordion/index.js +6 -0
  139. package/local/Alert/Alert.js +301 -0
  140. package/local/Alert/index.js +4 -0
  141. package/local/Avatar/Avatar.js +11 -0
  142. package/local/Avatar/AvatarGroup.context.js +8 -0
  143. package/local/Avatar/AvatarGroup.js +180 -0
  144. package/local/Avatar/index.js +6 -0
  145. package/local/Badge/Badge.js +123 -0
  146. package/local/Badge/index.js +4 -0
  147. package/local/BadgeDot/BadgeDot.js +57 -0
  148. package/local/BadgeDot/index.js +4 -0
  149. package/local/Box/Box.js +113 -0
  150. package/local/Box/index.js +4 -0
  151. package/local/Breadcrumbs/Breadcrumbs.context.js +8 -0
  152. package/local/Breadcrumbs/Breadcrumbs.js +113 -0
  153. package/local/Breadcrumbs/BreadcrumbsItem.js +13 -0
  154. package/local/Breadcrumbs/index.js +6 -0
  155. package/local/Button/Button.js +154 -0
  156. package/local/Button/index.js +4 -0
  157. package/local/CloseButton/CloseButton.js +58 -0
  158. package/local/CloseButton/index.js +4 -0
  159. package/local/Divider/Divider.js +111 -0
  160. package/local/Divider/index.js +4 -0
  161. package/local/EmptyState/EmptyState.js +54 -0
  162. package/local/EmptyState/index.js +4 -0
  163. package/local/HelperText/HelperText.js +9 -0
  164. package/local/HelperText/index.js +4 -0
  165. package/local/Icon/Icon.js +60 -0
  166. package/local/Icon/index.js +4 -0
  167. package/local/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  168. package/local/InputChoiceGroup/InputChoiceGroup.js +205 -0
  169. package/local/InputChoiceGroup/index.js +4 -0
  170. package/local/Link/Link.js +75 -0
  171. package/local/Link/index.js +4 -0
  172. package/local/List/List.context.js +8 -0
  173. package/local/List/List.js +101 -0
  174. package/local/List/ListItem.js +90 -0
  175. package/local/List/index.js +6 -0
  176. package/local/ProgressBar/ProgressBar.js +126 -0
  177. package/local/ProgressBar/index.js +4 -0
  178. package/local/SegmentedControl/SegmentedControl.context.js +8 -0
  179. package/local/SegmentedControl/SegmentedControl.js +103 -0
  180. package/local/SegmentedControl/SegmentedControlItem.js +284 -0
  181. package/local/SegmentedControl/SegmentedControlList.js +59 -0
  182. package/local/SegmentedControl/SegmentedControlPanel.js +41 -0
  183. package/local/SegmentedControl/index.js +10 -0
  184. package/local/Spinner/Spinner.js +185 -0
  185. package/local/Spinner/index.js +4 -0
  186. package/local/StateLayer/StateLayer.js +6 -0
  187. package/local/StateLayer/index.js +5 -0
  188. package/local/Text/Text.js +121 -0
  189. package/local/Text/index.js +4 -0
  190. package/local/Tooltip/Tooltip.js +1826 -0
  191. package/local/Tooltip/index.js +5 -0
  192. package/local/chunks/Accordion.PGU7OILE.js +161 -0
  193. package/local/chunks/Avatar.CvTOzaRT.js +172 -0
  194. package/local/chunks/BreadcrumbsItem.GM6sBp_o.js +121 -0
  195. package/local/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  196. package/local/chunks/Upload.B9YEyp7b.js +12 -0
  197. package/local/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  198. package/local/chunks/base.D76d76ww.js +9 -0
  199. package/local/chunks/classNames.C6fNrXWF.js +106 -0
  200. package/local/chunks/constants.jOWREYQE.js +30 -0
  201. package/local/chunks/consume.Ce9k1-wN.js +47 -0
  202. package/local/chunks/context-request-event.Bl9Vpkzl.js +13 -0
  203. package/local/chunks/create-context.DS1OG3vJ.js +11 -0
  204. package/local/chunks/delegate.baxDQosr.js +63 -0
  205. package/local/chunks/directive.kLG6oqUu.js +27 -0
  206. package/local/chunks/dom.C98AFbJh.js +22 -0
  207. package/local/chunks/fileUpload.module.kN6o64aL.js +4 -0
  208. package/local/chunks/globals.Bz4SVF2g.js +4 -0
  209. package/local/chunks/helpers.BWcXAteC.js +53 -0
  210. package/local/chunks/index.Bz1Jq4c2.js +106 -0
  211. package/local/chunks/list.module.CZRPBLzy.js +4 -0
  212. package/local/chunks/lit-element.CJtt9wj5.js +557 -0
  213. package/local/chunks/provide.i2FlUkOu.js +110 -0
  214. package/local/chunks/query-assigned-elements.Drkgpk9q.js +19 -0
  215. package/local/chunks/query-assigned-nodes.Dgvsf6BR.js +19 -0
  216. package/local/chunks/query.lbpOn5CD.js +20 -0
  217. package/local/chunks/ref.B7e1Hu4F.js +107 -0
  218. package/local/chunks/register-custom-element.vod7zfGv.js +51 -0
  219. package/local/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  220. package/local/chunks/state.CqiuSzAl.js +12 -0
  221. package/local/chunks/tokens.CTW8Tt94.js +9 -0
  222. package/local/chunks/unsafe-html.BzhXEygn.js +27 -0
  223. package/local/chunks/unsafe-svg.HSGf1NCU.js +14 -0
  224. package/local/wip/Checkbox/Checkbox.js +102 -0
  225. package/local/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  226. package/local/wip/Checkbox/index.js +6 -0
  227. package/local/wip/FileUpload/FileUpload.Button.js +75 -0
  228. package/local/wip/FileUpload/FileUpload.Dropzone.js +149 -0
  229. package/local/wip/FileUpload/FileUpload.List.Item.js +201 -0
  230. package/local/wip/FileUpload/FileUpload.List.js +105 -0
  231. package/local/wip/FileUpload/FileUpload.js +452 -0
  232. package/local/wip/FileUpload/FileUploadContext.js +8 -0
  233. package/local/wip/FileUpload/FileUploadListContext.js +8 -0
  234. package/local/wip/FileUpload/index.js +13 -0
  235. package/local/wip/Form/Form.context.js +20 -0
  236. package/local/wip/Form/Form.decorator.js +145 -0
  237. package/local/wip/Form/Form.js +288 -0
  238. package/local/wip/Form/Form.utils.js +8 -0
  239. package/local/wip/Form/index.js +7 -0
  240. package/local/wip/Label/Label.js +86 -0
  241. package/local/wip/Label/index.js +4 -0
  242. package/local/wip/NativeSelect/NativeSelect.js +162 -0
  243. package/local/wip/NativeSelect/index.js +4 -0
  244. package/local/wip/RadioButton/RadioButton.js +123 -0
  245. package/local/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  246. package/local/wip/RadioButton/index.js +6 -0
  247. package/local/wip/Switch/Switch.js +153 -0
  248. package/local/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  249. package/local/wip/Switch/index.js +6 -0
  250. package/local/wip/TextArea/TextArea.js +192 -0
  251. package/local/wip/TextArea/index.js +4 -0
  252. package/local/wip/TextField/TextField.js +169 -0
  253. package/local/wip/TextField/index.js +4 -0
  254. package/package.json +78 -0
  255. package/vscode.css-custom-data.json +6 -0
  256. package/vscode.html-custom-data.json +2704 -0
  257. package/wip/Checkbox/Checkbox.d.ts +55 -0
  258. package/wip/Checkbox/Checkbox.js +104 -0
  259. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  260. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  261. package/wip/Checkbox/index.d.ts +3 -0
  262. package/wip/Checkbox/index.js +6 -0
  263. package/wip/FileUpload/FileUpload.Button.d.ts +36 -0
  264. package/wip/FileUpload/FileUpload.Button.js +77 -0
  265. package/wip/FileUpload/FileUpload.Dropzone.d.ts +55 -0
  266. package/wip/FileUpload/FileUpload.Dropzone.js +150 -0
  267. package/wip/FileUpload/FileUpload.List.Item.d.ts +62 -0
  268. package/wip/FileUpload/FileUpload.List.Item.js +203 -0
  269. package/wip/FileUpload/FileUpload.List.d.ts +46 -0
  270. package/wip/FileUpload/FileUpload.List.js +106 -0
  271. package/wip/FileUpload/FileUpload.d.ts +101 -0
  272. package/wip/FileUpload/FileUpload.js +451 -0
  273. package/wip/FileUpload/FileUploadContext.d.ts +5 -0
  274. package/wip/FileUpload/FileUploadContext.js +8 -0
  275. package/wip/FileUpload/FileUploadListContext.d.ts +5 -0
  276. package/wip/FileUpload/FileUploadListContext.js +8 -0
  277. package/wip/FileUpload/index.d.ts +6 -0
  278. package/wip/FileUpload/index.js +13 -0
  279. package/wip/Form/Form.context.d.ts +19 -0
  280. package/wip/Form/Form.context.js +20 -0
  281. package/wip/Form/Form.d.ts +50 -0
  282. package/wip/Form/Form.decorator.d.ts +47 -0
  283. package/wip/Form/Form.decorator.js +144 -0
  284. package/wip/Form/Form.js +288 -0
  285. package/wip/Form/Form.utils.d.ts +2 -0
  286. package/wip/Form/Form.utils.js +8 -0
  287. package/wip/Form/index.d.ts +3 -0
  288. package/wip/Form/index.js +7 -0
  289. package/wip/Label/Label.d.ts +43 -0
  290. package/wip/Label/Label.js +87 -0
  291. package/wip/Label/index.d.ts +2 -0
  292. package/wip/Label/index.js +4 -0
  293. package/wip/NativeSelect/NativeSelect.d.ts +69 -0
  294. package/wip/NativeSelect/NativeSelect.js +163 -0
  295. package/wip/NativeSelect/index.d.ts +2 -0
  296. package/wip/NativeSelect/index.js +4 -0
  297. package/wip/RadioButton/RadioButton.d.ts +56 -0
  298. package/wip/RadioButton/RadioButton.js +125 -0
  299. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.d.ts +23 -0
  300. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  301. package/wip/RadioButton/index.d.ts +3 -0
  302. package/wip/RadioButton/index.js +6 -0
  303. package/wip/Switch/Switch.d.ts +62 -0
  304. package/wip/Switch/Switch.js +155 -0
  305. package/wip/Switch/SwitchGroup/SwitchGroup.d.ts +15 -0
  306. package/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  307. package/wip/Switch/index.d.ts +3 -0
  308. package/wip/Switch/index.js +6 -0
  309. package/wip/TextArea/TextArea.d.ts +89 -0
  310. package/wip/TextArea/TextArea.js +193 -0
  311. package/wip/TextArea/index.d.ts +2 -0
  312. package/wip/TextArea/index.js +4 -0
  313. package/wip/TextField/TextField.d.ts +70 -0
  314. package/wip/TextField/TextField.js +169 -0
  315. package/wip/TextField/index.d.ts +2 -0
  316. package/wip/TextField/index.js +4 -0
@@ -0,0 +1,1826 @@
1
+ import { r as xt, i as he, x as Yt, a as qt } from "../chunks/lit-element.CJtt9wj5.js";
2
+ import { n as v, c as Gt } from "../chunks/register-custom-element.vod7zfGv.js";
3
+ import { e as zt, n as Tt } from "../chunks/ref.B7e1Hu4F.js";
4
+ import { e as ge, g as Zt, f as kt, h as ve, c as bt } from "../chunks/classNames.C6fNrXWF.js";
5
+ import { p as be, t as ye } from "../chunks/constants.jOWREYQE.js";
6
+ import { e as we, f as xe } from "../chunks/tokens.CTW8Tt94.js";
7
+ import { c as Ce, d as Dt, m as $t, r as Oe, h as Ae, e as Jt, f as Bt } from "../chunks/helpers.BWcXAteC.js";
8
+ import { r as Ee } from "../chunks/state.CqiuSzAl.js";
9
+ const Qt = `:root,:host,.bm-light,.bm-dark .bm-inverse,[data-bm-theme~=bm-light]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #202e39);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #ffffff );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #576775 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}:host,.bm-dark,.bm-light .bm-inverse,[data-bm-theme~=bm-dark]{--bm-comp-tooltip-color-bg: var(--bm-sem-color-surface-inverse, #ffffff);--bm-comp-tooltip-color-text: var( --bm-sem-color-text-primary-inverse, #141d24 );--bm-comp-tooltip-color-icon-trigger: var( --bm-sem-color-icon-secondary, #c3cdd5 );--bm-comp-tooltip-radius: var(--bm-sem-radius-sm, .25rem);--bm-comp-tooltip-space-x: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-y: var(--bm-sem-space-50, .5rem);--bm-comp-tooltip-space-arrow: var(--bm-sem-space-75, .75rem);--bm-comp-tooltip-space-offset: var(--bm-sem-space-25, .25rem);--bm-comp-tooltip-size-arrow-width: .625rem;--bm-comp-tooltip-size-arrow-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-tooltip-size-width: var(--bm-primitive-dimension-1500, 15rem);--bm-comp-tooltip-size-icon-trigger-xs: var(--bm-sem-size-icon-xs, .75rem);--bm-comp-tooltip-size-icon-trigger-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-tooltip-size-icon-trigger-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-tooltip-size-icon-trigger-lg: var(--bm-sem-size-icon-lg, 1.5rem);--bm-comp-tooltip-size-icon-trigger-xl: var(--bm-sem-size-icon-xl, 1.75rem);--bm-comp-tooltip-typo-body: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" )}.bm-tooltip__icon-trigger{border:none;background:none;padding:0;margin:0;display:flex;cursor:pointer;color:var(--bm-comp-tooltip-color-icon-trigger)}.bm-tooltip{z-index:999;background-color:var(--bm-comp-tooltip-color-bg);border-radius:var(--bm-comp-tooltip-radius);max-width:var(--bm-comp-tooltip-size-width);padding:var(--bm-comp-tooltip-space-y) var(--bm-comp-tooltip-space-x);color:var(--bm-comp-tooltip-color-text);font:var(--bm-comp-tooltip-typo-body);offset:var(--bm-comp-tooltip-space-offset);transition-property:opacity}.bm-tooltip[data-status=open]{transition-duration:0s}.bm-tooltip[data-status=close]{transition-duration:.2s}.bm-tooltip[data-status=initial],.bm-tooltip[data-status=close]{opacity:0}.bm-tooltip__arrow{offset:var(--bm-comp-tooltip-space-arrow);-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="4" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 3.515c.69.647 1.81.647 2.5 0L10 0H0l3.75 3.515Z" fill="%23202E39"/></svg>');mask-size:cover;mask-position:center;mask-repeat:no-repeat;scale:1.05;width:var(--bm-comp-tooltip-size-arrow-width);height:var(--bm-comp-tooltip-size-arrow-height);background-color:var(--bm-comp-tooltip-color-bg)}.bm-tooltip__icon-trigger svg{background:none;border:none}.bm-tooltip__icon-trigger:focus-visible{border-radius:var(--bm-sem-radius-round);outline-offset:0px;outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-tooltip__icon-trigger--disabled{opacity:var(--bm-sem-opacity-disabled);cursor:inherit}.bm-tooltip__icon-trigger--xs{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--xs svg{height:var(--bm-comp-tooltip-size-icon-trigger-xs);width:var(--bm-comp-tooltip-size-icon-trigger-xs)}.bm-tooltip__icon-trigger--sm{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--sm svg{height:var(--bm-comp-tooltip-size-icon-trigger-sm);width:var(--bm-comp-tooltip-size-icon-trigger-sm)}.bm-tooltip__icon-trigger--md{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--md svg{height:var(--bm-comp-tooltip-size-icon-trigger-md);width:var(--bm-comp-tooltip-size-icon-trigger-md)}.bm-tooltip__icon-trigger--lg{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--lg svg{height:var(--bm-comp-tooltip-size-icon-trigger-lg);width:var(--bm-comp-tooltip-size-icon-trigger-lg)}.bm-tooltip__icon-trigger--xl{border-radius:100%;height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}.bm-tooltip__icon-trigger--xl svg{height:var(--bm-comp-tooltip-size-icon-trigger-xl);width:var(--bm-comp-tooltip-size-icon-trigger-xl)}`, te = ["top", "right", "bottom", "left"], Ht = ["start", "end"], Ft = /* @__PURE__ */ te.reduce((t, e) => t.concat(e, e + "-" + Ht[0], e + "-" + Ht[1]), []), tt = Math.min, q = Math.max, ft = Math.round, ct = Math.floor, F = (t) => ({
10
+ x: t,
11
+ y: t
12
+ }), Pe = {
13
+ left: "right",
14
+ right: "left",
15
+ bottom: "top",
16
+ top: "bottom"
17
+ }, Re = {
18
+ start: "end",
19
+ end: "start"
20
+ };
21
+ function yt(t, e, n) {
22
+ return q(t, tt(e, n));
23
+ }
24
+ function J(t, e) {
25
+ return typeof t == "function" ? t(e) : t;
26
+ }
27
+ function z(t) {
28
+ return t.split("-")[0];
29
+ }
30
+ function M(t) {
31
+ return t.split("-")[1];
32
+ }
33
+ function Ct(t) {
34
+ return t === "x" ? "y" : "x";
35
+ }
36
+ function Ot(t) {
37
+ return t === "y" ? "height" : "width";
38
+ }
39
+ function et(t) {
40
+ return ["top", "bottom"].includes(z(t)) ? "y" : "x";
41
+ }
42
+ function At(t) {
43
+ return Ct(et(t));
44
+ }
45
+ function ee(t, e, n) {
46
+ n === void 0 && (n = !1);
47
+ const i = M(t), o = At(t), r = Ot(o);
48
+ let s = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
49
+ return e.reference[r] > e.floating[r] && (s = it(s)), [s, it(s)];
50
+ }
51
+ function Le(t) {
52
+ const e = it(t);
53
+ return [pt(t), e, pt(e)];
54
+ }
55
+ function pt(t) {
56
+ return t.replace(/start|end/g, (e) => Re[e]);
57
+ }
58
+ function Se(t, e, n) {
59
+ const i = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
60
+ switch (t) {
61
+ case "top":
62
+ case "bottom":
63
+ return n ? e ? o : i : e ? i : o;
64
+ case "left":
65
+ case "right":
66
+ return e ? r : s;
67
+ default:
68
+ return [];
69
+ }
70
+ }
71
+ function _e(t, e, n, i) {
72
+ const o = M(t);
73
+ let r = Se(z(t), n === "start", i);
74
+ return o && (r = r.map((s) => s + "-" + o), e && (r = r.concat(r.map(pt)))), r;
75
+ }
76
+ function it(t) {
77
+ return t.replace(/left|right|bottom|top/g, (e) => Pe[e]);
78
+ }
79
+ function ze(t) {
80
+ return {
81
+ top: 0,
82
+ right: 0,
83
+ bottom: 0,
84
+ left: 0,
85
+ ...t
86
+ };
87
+ }
88
+ function oe(t) {
89
+ return typeof t != "number" ? ze(t) : {
90
+ top: t,
91
+ right: t,
92
+ bottom: t,
93
+ left: t
94
+ };
95
+ }
96
+ function mt(t) {
97
+ const {
98
+ x: e,
99
+ y: n,
100
+ width: i,
101
+ height: o
102
+ } = t;
103
+ return {
104
+ width: i,
105
+ height: o,
106
+ top: n,
107
+ left: e,
108
+ right: e + i,
109
+ bottom: n + o,
110
+ x: e,
111
+ y: n
112
+ };
113
+ }
114
+ function Mt(t, e, n) {
115
+ let {
116
+ reference: i,
117
+ floating: o
118
+ } = t;
119
+ const r = et(e), s = At(e), l = Ot(s), c = z(e), a = r === "y", m = i.x + i.width / 2 - o.width / 2, f = i.y + i.height / 2 - o.height / 2, d = i[l] / 2 - o[l] / 2;
120
+ let p;
121
+ switch (c) {
122
+ case "top":
123
+ p = {
124
+ x: m,
125
+ y: i.y - o.height
126
+ };
127
+ break;
128
+ case "bottom":
129
+ p = {
130
+ x: m,
131
+ y: i.y + i.height
132
+ };
133
+ break;
134
+ case "right":
135
+ p = {
136
+ x: i.x + i.width,
137
+ y: f
138
+ };
139
+ break;
140
+ case "left":
141
+ p = {
142
+ x: i.x - o.width,
143
+ y: f
144
+ };
145
+ break;
146
+ default:
147
+ p = {
148
+ x: i.x,
149
+ y: i.y
150
+ };
151
+ }
152
+ switch (M(e)) {
153
+ case "start":
154
+ p[s] -= d * (n && a ? -1 : 1);
155
+ break;
156
+ case "end":
157
+ p[s] += d * (n && a ? -1 : 1);
158
+ break;
159
+ }
160
+ return p;
161
+ }
162
+ const Te = async (t, e, n) => {
163
+ const {
164
+ placement: i = "bottom",
165
+ strategy: o = "absolute",
166
+ middleware: r = [],
167
+ platform: s
168
+ } = n, l = r.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(e));
169
+ let a = await s.getElementRects({
170
+ reference: t,
171
+ floating: e,
172
+ strategy: o
173
+ }), {
174
+ x: m,
175
+ y: f
176
+ } = Mt(a, i, c), d = i, p = {}, b = 0;
177
+ for (let g = 0; g < l.length; g++) {
178
+ const {
179
+ name: h,
180
+ fn: u
181
+ } = l[g], {
182
+ x: y,
183
+ y: w,
184
+ data: A,
185
+ reset: x
186
+ } = await u({
187
+ x: m,
188
+ y: f,
189
+ initialPlacement: i,
190
+ placement: d,
191
+ strategy: o,
192
+ middlewareData: p,
193
+ rects: a,
194
+ platform: s,
195
+ elements: {
196
+ reference: t,
197
+ floating: e
198
+ }
199
+ });
200
+ m = y ?? m, f = w ?? f, p = {
201
+ ...p,
202
+ [h]: {
203
+ ...p[h],
204
+ ...A
205
+ }
206
+ }, x && b <= 50 && (b++, typeof x == "object" && (x.placement && (d = x.placement), x.rects && (a = x.rects === !0 ? await s.getElementRects({
207
+ reference: t,
208
+ floating: e,
209
+ strategy: o
210
+ }) : x.rects), {
211
+ x: m,
212
+ y: f
213
+ } = Mt(a, d, c)), g = -1);
214
+ }
215
+ return {
216
+ x: m,
217
+ y: f,
218
+ placement: d,
219
+ strategy: o,
220
+ middlewareData: p
221
+ };
222
+ };
223
+ async function st(t, e) {
224
+ var n;
225
+ e === void 0 && (e = {});
226
+ const {
227
+ x: i,
228
+ y: o,
229
+ platform: r,
230
+ rects: s,
231
+ elements: l,
232
+ strategy: c
233
+ } = t, {
234
+ boundary: a = "clippingAncestors",
235
+ rootBoundary: m = "viewport",
236
+ elementContext: f = "floating",
237
+ altBoundary: d = !1,
238
+ padding: p = 0
239
+ } = J(e, t), b = oe(p), h = l[d ? f === "floating" ? "reference" : "floating" : f], u = mt(await r.getClippingRect({
240
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(h))) == null || n ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
241
+ boundary: a,
242
+ rootBoundary: m,
243
+ strategy: c
244
+ })), y = f === "floating" ? {
245
+ x: i,
246
+ y: o,
247
+ width: s.floating.width,
248
+ height: s.floating.height
249
+ } : s.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), A = await (r.isElement == null ? void 0 : r.isElement(w)) ? await (r.getScale == null ? void 0 : r.getScale(w)) || {
250
+ x: 1,
251
+ y: 1
252
+ } : {
253
+ x: 1,
254
+ y: 1
255
+ }, x = mt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
256
+ elements: l,
257
+ rect: y,
258
+ offsetParent: w,
259
+ strategy: c
260
+ }) : y);
261
+ return {
262
+ top: (u.top - x.top + b.top) / A.y,
263
+ bottom: (x.bottom - u.bottom + b.bottom) / A.y,
264
+ left: (u.left - x.left + b.left) / A.x,
265
+ right: (x.right - u.right + b.right) / A.x
266
+ };
267
+ }
268
+ function ke(t, e, n) {
269
+ return (t ? [...n.filter((o) => M(o) === t), ...n.filter((o) => M(o) !== t)] : n.filter((o) => z(o) === o)).filter((o) => t ? M(o) === t || (e ? pt(o) !== o : !1) : !0);
270
+ }
271
+ const De = function(t) {
272
+ return t === void 0 && (t = {}), {
273
+ name: "autoPlacement",
274
+ options: t,
275
+ async fn(e) {
276
+ var n, i, o;
277
+ const {
278
+ rects: r,
279
+ middlewareData: s,
280
+ placement: l,
281
+ platform: c,
282
+ elements: a
283
+ } = e, {
284
+ crossAxis: m = !1,
285
+ alignment: f,
286
+ allowedPlacements: d = Ft,
287
+ autoAlignment: p = !0,
288
+ ...b
289
+ } = J(t, e), g = f !== void 0 || d === Ft ? ke(f || null, p, d) : d, h = await st(e, b), u = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, y = g[u];
290
+ if (y == null)
291
+ return {};
292
+ const w = ee(y, r, await (c.isRTL == null ? void 0 : c.isRTL(a.floating)));
293
+ if (l !== y)
294
+ return {
295
+ reset: {
296
+ placement: g[0]
297
+ }
298
+ };
299
+ const A = [h[z(y)], h[w[0]], h[w[1]]], x = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
300
+ placement: y,
301
+ overflows: A
302
+ }], D = g[u + 1];
303
+ if (D)
304
+ return {
305
+ data: {
306
+ index: u + 1,
307
+ overflows: x
308
+ },
309
+ reset: {
310
+ placement: D
311
+ }
312
+ };
313
+ const R = x.map((E) => {
314
+ const S = M(E.placement);
315
+ return [E.placement, S && m ? (
316
+ // Check along the mainAxis and main crossAxis side.
317
+ E.overflows.slice(0, 2).reduce((Y, W) => Y + W, 0)
318
+ ) : (
319
+ // Check only the mainAxis.
320
+ E.overflows[0]
321
+ ), E.overflows];
322
+ }).sort((E, S) => E[1] - S[1]), N = ((o = R.filter((E) => E[2].slice(
323
+ 0,
324
+ // Aligned placements should not check their opposite crossAxis
325
+ // side.
326
+ M(E[0]) ? 2 : 3
327
+ ).every((S) => S <= 0))[0]) == null ? void 0 : o[0]) || R[0][0];
328
+ return N !== l ? {
329
+ data: {
330
+ index: u + 1,
331
+ overflows: x
332
+ },
333
+ reset: {
334
+ placement: N
335
+ }
336
+ } : {};
337
+ }
338
+ };
339
+ }, $e = function(t) {
340
+ return t === void 0 && (t = {}), {
341
+ name: "flip",
342
+ options: t,
343
+ async fn(e) {
344
+ var n, i;
345
+ const {
346
+ placement: o,
347
+ middlewareData: r,
348
+ rects: s,
349
+ initialPlacement: l,
350
+ platform: c,
351
+ elements: a
352
+ } = e, {
353
+ mainAxis: m = !0,
354
+ crossAxis: f = !0,
355
+ fallbackPlacements: d,
356
+ fallbackStrategy: p = "bestFit",
357
+ fallbackAxisSideDirection: b = "none",
358
+ flipAlignment: g = !0,
359
+ ...h
360
+ } = J(t, e);
361
+ if ((n = r.arrow) != null && n.alignmentOffset)
362
+ return {};
363
+ const u = z(o), y = et(l), w = z(l) === l, A = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), x = d || (w || !g ? [it(l)] : Le(l)), D = b !== "none";
364
+ !d && D && x.push(..._e(l, g, b, A));
365
+ const R = [l, ...x], $ = await st(e, h), N = [];
366
+ let E = ((i = r.flip) == null ? void 0 : i.overflows) || [];
367
+ if (m && N.push($[u]), f) {
368
+ const B = ee(o, s, A);
369
+ N.push($[B[0]], $[B[1]]);
370
+ }
371
+ if (E = [...E, {
372
+ placement: o,
373
+ overflows: N
374
+ }], !N.every((B) => B <= 0)) {
375
+ var S, Y;
376
+ const B = (((S = r.flip) == null ? void 0 : S.index) || 0) + 1, U = R[B];
377
+ if (U)
378
+ return {
379
+ data: {
380
+ index: B,
381
+ overflows: E
382
+ },
383
+ reset: {
384
+ placement: U
385
+ }
386
+ };
387
+ let K = (Y = E.filter((V) => V.overflows[0] <= 0).sort((V, H) => V.overflows[1] - H.overflows[1])[0]) == null ? void 0 : Y.placement;
388
+ if (!K)
389
+ switch (p) {
390
+ case "bestFit": {
391
+ var W;
392
+ const V = (W = E.filter((H) => {
393
+ if (D) {
394
+ const _ = et(H.placement);
395
+ return _ === y || // Create a bias to the `y` side axis due to horizontal
396
+ // reading directions favoring greater width.
397
+ _ === "y";
398
+ }
399
+ return !0;
400
+ }).map((H) => [H.placement, H.overflows.filter((_) => _ > 0).reduce((_, gt) => _ + gt, 0)]).sort((H, _) => H[1] - _[1])[0]) == null ? void 0 : W[0];
401
+ V && (K = V);
402
+ break;
403
+ }
404
+ case "initialPlacement":
405
+ K = l;
406
+ break;
407
+ }
408
+ if (o !== K)
409
+ return {
410
+ reset: {
411
+ placement: K
412
+ }
413
+ };
414
+ }
415
+ return {};
416
+ }
417
+ };
418
+ };
419
+ function jt(t, e) {
420
+ return {
421
+ top: t.top - e.height,
422
+ right: t.right - e.width,
423
+ bottom: t.bottom - e.height,
424
+ left: t.left - e.width
425
+ };
426
+ }
427
+ function It(t) {
428
+ return te.some((e) => t[e] >= 0);
429
+ }
430
+ const Be = function(t) {
431
+ return t === void 0 && (t = {}), {
432
+ name: "hide",
433
+ options: t,
434
+ async fn(e) {
435
+ const {
436
+ rects: n
437
+ } = e, {
438
+ strategy: i = "referenceHidden",
439
+ ...o
440
+ } = J(t, e);
441
+ switch (i) {
442
+ case "referenceHidden": {
443
+ const r = await st(e, {
444
+ ...o,
445
+ elementContext: "reference"
446
+ }), s = jt(r, n.reference);
447
+ return {
448
+ data: {
449
+ referenceHiddenOffsets: s,
450
+ referenceHidden: It(s)
451
+ }
452
+ };
453
+ }
454
+ case "escaped": {
455
+ const r = await st(e, {
456
+ ...o,
457
+ altBoundary: !0
458
+ }), s = jt(r, n.floating);
459
+ return {
460
+ data: {
461
+ escapedOffsets: s,
462
+ escaped: It(s)
463
+ }
464
+ };
465
+ }
466
+ default:
467
+ return {};
468
+ }
469
+ }
470
+ };
471
+ };
472
+ async function He(t, e) {
473
+ const {
474
+ placement: n,
475
+ platform: i,
476
+ elements: o
477
+ } = t, r = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = z(n), l = M(n), c = et(n) === "y", a = ["left", "top"].includes(s) ? -1 : 1, m = r && c ? -1 : 1, f = J(e, t);
478
+ let {
479
+ mainAxis: d,
480
+ crossAxis: p,
481
+ alignmentAxis: b
482
+ } = typeof f == "number" ? {
483
+ mainAxis: f,
484
+ crossAxis: 0,
485
+ alignmentAxis: null
486
+ } : {
487
+ mainAxis: f.mainAxis || 0,
488
+ crossAxis: f.crossAxis || 0,
489
+ alignmentAxis: f.alignmentAxis
490
+ };
491
+ return l && typeof b == "number" && (p = l === "end" ? b * -1 : b), c ? {
492
+ x: p * m,
493
+ y: d * a
494
+ } : {
495
+ x: d * a,
496
+ y: p * m
497
+ };
498
+ }
499
+ const Fe = function(t) {
500
+ return t === void 0 && (t = 0), {
501
+ name: "offset",
502
+ options: t,
503
+ async fn(e) {
504
+ var n, i;
505
+ const {
506
+ x: o,
507
+ y: r,
508
+ placement: s,
509
+ middlewareData: l
510
+ } = e, c = await He(e, t);
511
+ return s === ((n = l.offset) == null ? void 0 : n.placement) && (i = l.arrow) != null && i.alignmentOffset ? {} : {
512
+ x: o + c.x,
513
+ y: r + c.y,
514
+ data: {
515
+ ...c,
516
+ placement: s
517
+ }
518
+ };
519
+ }
520
+ };
521
+ }, Me = function(t) {
522
+ return t === void 0 && (t = {}), {
523
+ name: "shift",
524
+ options: t,
525
+ async fn(e) {
526
+ const {
527
+ x: n,
528
+ y: i,
529
+ placement: o
530
+ } = e, {
531
+ mainAxis: r = !0,
532
+ crossAxis: s = !1,
533
+ limiter: l = {
534
+ fn: (h) => {
535
+ let {
536
+ x: u,
537
+ y
538
+ } = h;
539
+ return {
540
+ x: u,
541
+ y
542
+ };
543
+ }
544
+ },
545
+ ...c
546
+ } = J(t, e), a = {
547
+ x: n,
548
+ y: i
549
+ }, m = await st(e, c), f = et(z(o)), d = Ct(f);
550
+ let p = a[d], b = a[f];
551
+ if (r) {
552
+ const h = d === "y" ? "top" : "left", u = d === "y" ? "bottom" : "right", y = p + m[h], w = p - m[u];
553
+ p = yt(y, p, w);
554
+ }
555
+ if (s) {
556
+ const h = f === "y" ? "top" : "left", u = f === "y" ? "bottom" : "right", y = b + m[h], w = b - m[u];
557
+ b = yt(y, b, w);
558
+ }
559
+ const g = l.fn({
560
+ ...e,
561
+ [d]: p,
562
+ [f]: b
563
+ });
564
+ return {
565
+ ...g,
566
+ data: {
567
+ x: g.x - n,
568
+ y: g.y - i,
569
+ enabled: {
570
+ [d]: r,
571
+ [f]: s
572
+ }
573
+ }
574
+ };
575
+ }
576
+ };
577
+ };
578
+ function dt() {
579
+ return typeof window < "u";
580
+ }
581
+ function nt(t) {
582
+ return ne(t) ? (t.nodeName || "").toLowerCase() : "#document";
583
+ }
584
+ function L(t) {
585
+ var e;
586
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
587
+ }
588
+ function I(t) {
589
+ var e;
590
+ return (e = (ne(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
591
+ }
592
+ function ne(t) {
593
+ return dt() ? t instanceof Node || t instanceof L(t).Node : !1;
594
+ }
595
+ function T(t) {
596
+ return dt() ? t instanceof Element || t instanceof L(t).Element : !1;
597
+ }
598
+ function j(t) {
599
+ return dt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
600
+ }
601
+ function Nt(t) {
602
+ return !dt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
603
+ }
604
+ function lt(t) {
605
+ const {
606
+ overflow: e,
607
+ overflowX: n,
608
+ overflowY: i,
609
+ display: o
610
+ } = k(t);
611
+ return /auto|scroll|overlay|hidden|clip/.test(e + i + n) && !["inline", "contents"].includes(o);
612
+ }
613
+ function je(t) {
614
+ return ["table", "td", "th"].includes(nt(t));
615
+ }
616
+ function ut(t) {
617
+ return [":popover-open", ":modal"].some((e) => {
618
+ try {
619
+ return t.matches(e);
620
+ } catch {
621
+ return !1;
622
+ }
623
+ });
624
+ }
625
+ function Et(t) {
626
+ const e = Pt(), n = T(t) ? k(t) : t;
627
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((i) => n[i] ? n[i] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (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));
628
+ }
629
+ function Ie(t) {
630
+ let e = X(t);
631
+ for (; j(e) && !ot(e); ) {
632
+ if (Et(e))
633
+ return e;
634
+ if (ut(e))
635
+ return null;
636
+ e = X(e);
637
+ }
638
+ return null;
639
+ }
640
+ function Pt() {
641
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
642
+ }
643
+ function ot(t) {
644
+ return ["html", "body", "#document"].includes(nt(t));
645
+ }
646
+ function k(t) {
647
+ return L(t).getComputedStyle(t);
648
+ }
649
+ function ht(t) {
650
+ return T(t) ? {
651
+ scrollLeft: t.scrollLeft,
652
+ scrollTop: t.scrollTop
653
+ } : {
654
+ scrollLeft: t.scrollX,
655
+ scrollTop: t.scrollY
656
+ };
657
+ }
658
+ function X(t) {
659
+ if (nt(t) === "html")
660
+ return t;
661
+ const e = (
662
+ // Step into the shadow DOM of the parent of a slotted node.
663
+ t.assignedSlot || // DOM Element detected.
664
+ t.parentNode || // ShadowRoot detected.
665
+ Nt(t) && t.host || // Fallback.
666
+ I(t)
667
+ );
668
+ return Nt(e) ? e.host : e;
669
+ }
670
+ function ie(t) {
671
+ const e = X(t);
672
+ return ot(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : j(e) && lt(e) ? e : ie(e);
673
+ }
674
+ function rt(t, e, n) {
675
+ var i;
676
+ e === void 0 && (e = []), n === void 0 && (n = !0);
677
+ const o = ie(t), r = o === ((i = t.ownerDocument) == null ? void 0 : i.body), s = L(o);
678
+ if (r) {
679
+ const l = wt(s);
680
+ return e.concat(s, s.visualViewport || [], lt(o) ? o : [], l && n ? rt(l) : []);
681
+ }
682
+ return e.concat(o, rt(o, [], n));
683
+ }
684
+ function wt(t) {
685
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
686
+ }
687
+ function se(t) {
688
+ const e = k(t);
689
+ let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
690
+ const o = j(t), r = o ? t.offsetWidth : n, s = o ? t.offsetHeight : i, l = ft(n) !== r || ft(i) !== s;
691
+ return l && (n = r, i = s), {
692
+ width: n,
693
+ height: i,
694
+ $: l
695
+ };
696
+ }
697
+ function Rt(t) {
698
+ return T(t) ? t : t.contextElement;
699
+ }
700
+ function Q(t) {
701
+ const e = Rt(t);
702
+ if (!j(e))
703
+ return F(1);
704
+ const n = e.getBoundingClientRect(), {
705
+ width: i,
706
+ height: o,
707
+ $: r
708
+ } = se(e);
709
+ let s = (r ? ft(n.width) : n.width) / i, l = (r ? ft(n.height) : n.height) / o;
710
+ return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
711
+ x: s,
712
+ y: l
713
+ };
714
+ }
715
+ const Ne = /* @__PURE__ */ F(0);
716
+ function re(t) {
717
+ const e = L(t);
718
+ return !Pt() || !e.visualViewport ? Ne : {
719
+ x: e.visualViewport.offsetLeft,
720
+ y: e.visualViewport.offsetTop
721
+ };
722
+ }
723
+ function We(t, e, n) {
724
+ return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
725
+ }
726
+ function Z(t, e, n, i) {
727
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
728
+ const o = t.getBoundingClientRect(), r = Rt(t);
729
+ let s = F(1);
730
+ e && (i ? T(i) && (s = Q(i)) : s = Q(t));
731
+ const l = We(r, n, i) ? re(r) : F(0);
732
+ let c = (o.left + l.x) / s.x, a = (o.top + l.y) / s.y, m = o.width / s.x, f = o.height / s.y;
733
+ if (r) {
734
+ const d = L(r), p = i && T(i) ? L(i) : i;
735
+ let b = d, g = wt(b);
736
+ for (; g && i && p !== b; ) {
737
+ const h = Q(g), u = g.getBoundingClientRect(), y = k(g), w = u.left + (g.clientLeft + parseFloat(y.paddingLeft)) * h.x, A = u.top + (g.clientTop + parseFloat(y.paddingTop)) * h.y;
738
+ c *= h.x, a *= h.y, m *= h.x, f *= h.y, c += w, a += A, b = L(g), g = wt(b);
739
+ }
740
+ }
741
+ return mt({
742
+ width: m,
743
+ height: f,
744
+ x: c,
745
+ y: a
746
+ });
747
+ }
748
+ function Lt(t, e) {
749
+ const n = ht(t).scrollLeft;
750
+ return e ? e.left + n : Z(I(t)).left + n;
751
+ }
752
+ function le(t, e, n) {
753
+ n === void 0 && (n = !1);
754
+ const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - (n ? 0 : (
755
+ // RTL <body> scrollbar.
756
+ Lt(t, i)
757
+ )), r = i.top + e.scrollTop;
758
+ return {
759
+ x: o,
760
+ y: r
761
+ };
762
+ }
763
+ function Ue(t) {
764
+ let {
765
+ elements: e,
766
+ rect: n,
767
+ offsetParent: i,
768
+ strategy: o
769
+ } = t;
770
+ const r = o === "fixed", s = I(i), l = e ? ut(e.floating) : !1;
771
+ if (i === s || l && r)
772
+ return n;
773
+ let c = {
774
+ scrollLeft: 0,
775
+ scrollTop: 0
776
+ }, a = F(1);
777
+ const m = F(0), f = j(i);
778
+ if ((f || !f && !r) && ((nt(i) !== "body" || lt(s)) && (c = ht(i)), j(i))) {
779
+ const p = Z(i);
780
+ a = Q(i), m.x = p.x + i.clientLeft, m.y = p.y + i.clientTop;
781
+ }
782
+ const d = s && !f && !r ? le(s, c, !0) : F(0);
783
+ return {
784
+ width: n.width * a.x,
785
+ height: n.height * a.y,
786
+ x: n.x * a.x - c.scrollLeft * a.x + m.x + d.x,
787
+ y: n.y * a.y - c.scrollTop * a.y + m.y + d.y
788
+ };
789
+ }
790
+ function Ve(t) {
791
+ return Array.from(t.getClientRects());
792
+ }
793
+ function Ke(t) {
794
+ const e = I(t), n = ht(t), i = t.ownerDocument.body, o = q(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = q(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
795
+ let s = -n.scrollLeft + Lt(t);
796
+ const l = -n.scrollTop;
797
+ return k(i).direction === "rtl" && (s += q(e.clientWidth, i.clientWidth) - o), {
798
+ width: o,
799
+ height: r,
800
+ x: s,
801
+ y: l
802
+ };
803
+ }
804
+ function Xe(t, e) {
805
+ const n = L(t), i = I(t), o = n.visualViewport;
806
+ let r = i.clientWidth, s = i.clientHeight, l = 0, c = 0;
807
+ if (o) {
808
+ r = o.width, s = o.height;
809
+ const a = Pt();
810
+ (!a || a && e === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
811
+ }
812
+ return {
813
+ width: r,
814
+ height: s,
815
+ x: l,
816
+ y: c
817
+ };
818
+ }
819
+ function Ye(t, e) {
820
+ const n = Z(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, r = j(t) ? Q(t) : F(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = o * r.x, a = i * r.y;
821
+ return {
822
+ width: s,
823
+ height: l,
824
+ x: c,
825
+ y: a
826
+ };
827
+ }
828
+ function Wt(t, e, n) {
829
+ let i;
830
+ if (e === "viewport")
831
+ i = Xe(t, n);
832
+ else if (e === "document")
833
+ i = Ke(I(t));
834
+ else if (T(e))
835
+ i = Ye(e, n);
836
+ else {
837
+ const o = re(t);
838
+ i = {
839
+ x: e.x - o.x,
840
+ y: e.y - o.y,
841
+ width: e.width,
842
+ height: e.height
843
+ };
844
+ }
845
+ return mt(i);
846
+ }
847
+ function ce(t, e) {
848
+ const n = X(t);
849
+ return n === e || !T(n) || ot(n) ? !1 : k(n).position === "fixed" || ce(n, e);
850
+ }
851
+ function qe(t, e) {
852
+ const n = e.get(t);
853
+ if (n)
854
+ return n;
855
+ let i = rt(t, [], !1).filter((l) => T(l) && nt(l) !== "body"), o = null;
856
+ const r = k(t).position === "fixed";
857
+ let s = r ? X(t) : t;
858
+ for (; T(s) && !ot(s); ) {
859
+ const l = k(s), c = Et(s);
860
+ !c && l.position === "fixed" && (o = null), (r ? !c && !o : !c && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(s) && !c && ce(t, s)) ? i = i.filter((m) => m !== s) : o = l, s = X(s);
861
+ }
862
+ return e.set(t, i), i;
863
+ }
864
+ function Ge(t) {
865
+ let {
866
+ element: e,
867
+ boundary: n,
868
+ rootBoundary: i,
869
+ strategy: o
870
+ } = t;
871
+ const s = [...n === "clippingAncestors" ? ut(e) ? [] : qe(e, this._c) : [].concat(n), i], l = s[0], c = s.reduce((a, m) => {
872
+ const f = Wt(e, m, o);
873
+ return a.top = q(f.top, a.top), a.right = tt(f.right, a.right), a.bottom = tt(f.bottom, a.bottom), a.left = q(f.left, a.left), a;
874
+ }, Wt(e, l, o));
875
+ return {
876
+ width: c.right - c.left,
877
+ height: c.bottom - c.top,
878
+ x: c.left,
879
+ y: c.top
880
+ };
881
+ }
882
+ function Ze(t) {
883
+ const {
884
+ width: e,
885
+ height: n
886
+ } = se(t);
887
+ return {
888
+ width: e,
889
+ height: n
890
+ };
891
+ }
892
+ function Je(t, e, n) {
893
+ const i = j(e), o = I(e), r = n === "fixed", s = Z(t, !0, r, e);
894
+ let l = {
895
+ scrollLeft: 0,
896
+ scrollTop: 0
897
+ };
898
+ const c = F(0);
899
+ if (i || !i && !r)
900
+ if ((nt(e) !== "body" || lt(o)) && (l = ht(e)), i) {
901
+ const d = Z(e, !0, r, e);
902
+ c.x = d.x + e.clientLeft, c.y = d.y + e.clientTop;
903
+ } else o && (c.x = Lt(o));
904
+ const a = o && !i && !r ? le(o, l) : F(0), m = s.left + l.scrollLeft - c.x - a.x, f = s.top + l.scrollTop - c.y - a.y;
905
+ return {
906
+ x: m,
907
+ y: f,
908
+ width: s.width,
909
+ height: s.height
910
+ };
911
+ }
912
+ function vt(t) {
913
+ return k(t).position === "static";
914
+ }
915
+ function Ut(t, e) {
916
+ if (!j(t) || k(t).position === "fixed")
917
+ return null;
918
+ if (e)
919
+ return e(t);
920
+ let n = t.offsetParent;
921
+ return I(t) === n && (n = n.ownerDocument.body), n;
922
+ }
923
+ function ae(t, e) {
924
+ const n = L(t);
925
+ if (ut(t))
926
+ return n;
927
+ if (!j(t)) {
928
+ let o = X(t);
929
+ for (; o && !ot(o); ) {
930
+ if (T(o) && !vt(o))
931
+ return o;
932
+ o = X(o);
933
+ }
934
+ return n;
935
+ }
936
+ let i = Ut(t, e);
937
+ for (; i && je(i) && vt(i); )
938
+ i = Ut(i, e);
939
+ return i && ot(i) && vt(i) && !Et(i) ? n : i || Ie(t) || n;
940
+ }
941
+ const Qe = async function(t) {
942
+ const e = this.getOffsetParent || ae, n = this.getDimensions, i = await n(t.floating);
943
+ return {
944
+ reference: Je(t.reference, await e(t.floating), t.strategy),
945
+ floating: {
946
+ x: 0,
947
+ y: 0,
948
+ width: i.width,
949
+ height: i.height
950
+ }
951
+ };
952
+ };
953
+ function to(t) {
954
+ return k(t).direction === "rtl";
955
+ }
956
+ const eo = {
957
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ue,
958
+ getDocumentElement: I,
959
+ getClippingRect: Ge,
960
+ getOffsetParent: ae,
961
+ getElementRects: Qe,
962
+ getClientRects: Ve,
963
+ getDimensions: Ze,
964
+ getScale: Q,
965
+ isElement: T,
966
+ isRTL: to
967
+ };
968
+ function fe(t, e) {
969
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
970
+ }
971
+ function oo(t, e) {
972
+ let n = null, i;
973
+ const o = I(t);
974
+ function r() {
975
+ var l;
976
+ clearTimeout(i), (l = n) == null || l.disconnect(), n = null;
977
+ }
978
+ function s(l, c) {
979
+ l === void 0 && (l = !1), c === void 0 && (c = 1), r();
980
+ const a = t.getBoundingClientRect(), {
981
+ left: m,
982
+ top: f,
983
+ width: d,
984
+ height: p
985
+ } = a;
986
+ if (l || e(), !d || !p)
987
+ return;
988
+ const b = ct(f), g = ct(o.clientWidth - (m + d)), h = ct(o.clientHeight - (f + p)), u = ct(m), w = {
989
+ rootMargin: -b + "px " + -g + "px " + -h + "px " + -u + "px",
990
+ threshold: q(0, tt(1, c)) || 1
991
+ };
992
+ let A = !0;
993
+ function x(D) {
994
+ const R = D[0].intersectionRatio;
995
+ if (R !== c) {
996
+ if (!A)
997
+ return s();
998
+ R ? s(!1, R) : i = setTimeout(() => {
999
+ s(!1, 1e-7);
1000
+ }, 1e3);
1001
+ }
1002
+ R === 1 && !fe(a, t.getBoundingClientRect()) && s(), A = !1;
1003
+ }
1004
+ try {
1005
+ n = new IntersectionObserver(x, {
1006
+ ...w,
1007
+ // Handle <iframe>s
1008
+ root: o.ownerDocument
1009
+ });
1010
+ } catch {
1011
+ n = new IntersectionObserver(x, w);
1012
+ }
1013
+ n.observe(t);
1014
+ }
1015
+ return s(!0), r;
1016
+ }
1017
+ function no(t, e, n, i) {
1018
+ i === void 0 && (i = {});
1019
+ const {
1020
+ ancestorScroll: o = !0,
1021
+ ancestorResize: r = !0,
1022
+ elementResize: s = typeof ResizeObserver == "function",
1023
+ layoutShift: l = typeof IntersectionObserver == "function",
1024
+ animationFrame: c = !1
1025
+ } = i, a = Rt(t), m = o || r ? [...a ? rt(a) : [], ...rt(e)] : [];
1026
+ m.forEach((u) => {
1027
+ o && u.addEventListener("scroll", n, {
1028
+ passive: !0
1029
+ }), r && u.addEventListener("resize", n);
1030
+ });
1031
+ const f = a && l ? oo(a, n) : null;
1032
+ let d = -1, p = null;
1033
+ s && (p = new ResizeObserver((u) => {
1034
+ let [y] = u;
1035
+ y && y.target === a && p && (p.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1036
+ var w;
1037
+ (w = p) == null || w.observe(e);
1038
+ })), n();
1039
+ }), a && !c && p.observe(a), p.observe(e));
1040
+ let b, g = c ? Z(t) : null;
1041
+ c && h();
1042
+ function h() {
1043
+ const u = Z(t);
1044
+ g && !fe(g, u) && n(), g = u, b = requestAnimationFrame(h);
1045
+ }
1046
+ return n(), () => {
1047
+ var u;
1048
+ m.forEach((y) => {
1049
+ o && y.removeEventListener("scroll", n), r && y.removeEventListener("resize", n);
1050
+ }), f == null || f(), (u = p) == null || u.disconnect(), p = null, c && cancelAnimationFrame(b);
1051
+ };
1052
+ }
1053
+ const io = Fe, so = De, ro = Me, lo = $e, co = Be, ao = (t, e, n) => {
1054
+ const i = /* @__PURE__ */ new Map(), o = {
1055
+ platform: eo,
1056
+ ...n
1057
+ }, r = {
1058
+ ...o.platform,
1059
+ _c: i
1060
+ };
1061
+ return Te(t, e, {
1062
+ ...o,
1063
+ platform: r
1064
+ });
1065
+ }, fo = (t) => {
1066
+ var e;
1067
+ return {
1068
+ visibility: (e = t.hide) != null && e.referenceHidden ? "hidden" : "visible"
1069
+ };
1070
+ }, po = (t) => ({
1071
+ name: "arrowStyles",
1072
+ options: t,
1073
+ async fn(e) {
1074
+ var St, _t;
1075
+ const { x: n, y: i, placement: o, rects: r, platform: s, elements: l, middlewareData: c } = e, { element: a, padding: m = 0 } = J(t, e) || {};
1076
+ if (a == null)
1077
+ return {};
1078
+ const f = oe(m), d = { x: n, y: i }, p = At(o), b = Ct(p), g = Ot(p), h = await s.getDimensions(a), u = p === "y", y = u ? "top" : "left", w = u ? "bottom" : "right", A = u ? "clientHeight" : "clientWidth", x = r.reference[g] + r.reference[p] - d[p] - r.floating[g], D = d[p] - r.reference[p], R = await ((St = s.getOffsetParent) == null ? void 0 : St.call(s, a));
1079
+ let $ = R ? R[A] : 0;
1080
+ (!$ || !await ((_t = s.isElement) == null ? void 0 : _t.call(s, R))) && ($ = l.floating[A] || r.floating[g]);
1081
+ const N = x / 2 - D / 2, E = $ / 2 - h.width / 2 - 1, S = tt(f[y], E), Y = tt(f[w], E), W = S, B = $ - h.width - Y, U = $ / 2 - h.width / 2 + N, K = yt(W, U, B), V = !c.arrow && M(o) != null && U !== K && r.reference[g] / 2 - (U < W ? S : Y) - h.width / 2 < 0, H = V ? U < W ? U - W : U - B : 0, _ = z(o), gt = ["top", "left"].includes(_) ? -1 : 1, de = h.height * gt, ue = uo({
1082
+ placement: _,
1083
+ arrowHeight: h.height,
1084
+ arrowWidth: h.width,
1085
+ // pass arrow middleware
1086
+ [p]: K
1087
+ // for posterity, this is what the floating-ui arrow middleware returns
1088
+ // centerOffset: center - offset - alignmentOffset,
1089
+ // ...(shouldAddOffset && { alignmentOffset }),
1090
+ });
1091
+ return {
1092
+ [p]: d[p] + H,
1093
+ [b]: d[b] + de,
1094
+ data: ue,
1095
+ reset: V
1096
+ };
1097
+ }
1098
+ }), at = (t, e, n, i) => {
1099
+ if (i) {
1100
+ const o = i === !0 ? n() : n(i);
1101
+ t[e](o);
1102
+ }
1103
+ }, mo = ({
1104
+ baseConfig: t,
1105
+ middleware: e,
1106
+ offset: n,
1107
+ arrow: i,
1108
+ placement: o = "top"
1109
+ }) => {
1110
+ const r = { ...t, placement: o };
1111
+ let s = [];
1112
+ if (typeof e.overrides != "object") {
1113
+ s.push(io(n));
1114
+ let l = e.flip ?? !0;
1115
+ e.autoPlacement && (l = !1), at(
1116
+ s,
1117
+ "unshift",
1118
+ so,
1119
+ e.autoPlacement
1120
+ ), at(s, "push", ro, e.shift ?? !0), at(s, "unshift", lo, l), at(s, "push", co, e.hide ?? !0);
1121
+ } else
1122
+ s.push(...e.overrides);
1123
+ return i.hide || s.push(po(i.options)), typeof e.overrides == "function" && (s = e.overrides(s)), r.middleware = s, r;
1124
+ }, uo = ({
1125
+ placement: t,
1126
+ arrowHeight: e,
1127
+ arrowWidth: n,
1128
+ x: i,
1129
+ y: o
1130
+ }) => {
1131
+ const r = z(t), s = n / 2 - e, l = {
1132
+ /* since the default orientation is pointing down, we don't need to rotate the arrow
1133
+ if the tooltip is on top of the reference element
1134
+ */
1135
+ top: "rotate(0deg)",
1136
+ // since the default orientation is pointing down, we don't need to translate the arrow
1137
+ bottom: "rotate(180deg)",
1138
+ /* For an arrow with non-equal width and height, once we rotate the arrow 90 degrees
1139
+ for left and right positions, the top-left corner of the arrow will not be the same
1140
+ as the top-left corner of the original downward-pointing arrow. Thus, top:0 for
1141
+ example will not place the arrow at the top of the tooltip.
1142
+
1143
+ To fix this, we need to translate the arrow along the x-axis by the difference between
1144
+ the arrow's width and height.
1145
+
1146
+ * Example: note that the transformation origin is always bottom-center
1147
+ *
1148
+ * default, downward pointing position rotated 90 degrees, offset from edge
1149
+ * |________ => | |\ <- the top is slightly higher!
1150
+ * | .. | | *
1151
+ * | | |/
1152
+
1153
+ We use translate X to move it along vertical axis as translations are applied before
1154
+ rotation transformations. In both situations, the overall effect is sliding the
1155
+ arrow downwards.
1156
+ */
1157
+ left: `rotate(-90deg) translateX(${-s}px)`,
1158
+ right: `rotate(90deg) translateX(${s}px)`
1159
+ }[r], c = -n / 2 - e, a = {
1160
+ /*
1161
+ * If the tooltip is at the top of the anchor, place the arrow at the bottom of
1162
+ * the tooltip with bottom: 0. The bottom of the arrow will be flush with the bottom
1163
+ * of the tooltip. Result:
1164
+ * v (arrow)
1165
+ * --- (bottom of tooltip)
1166
+ *
1167
+ * Then, shift it down by its height so the flat, top side of the arrow is
1168
+ * flush with the bottom of the tooltip.
1169
+ *
1170
+ * --- (bottom of tooltip)
1171
+ * v (arrow)
1172
+ */
1173
+ top: `${-e}px`,
1174
+ /*
1175
+ * Place the arrow at the top of the tooltip with top: 0. The arrow will be rotated
1176
+ * to point downwards by default. When it's then rotated by 180 deg with
1177
+ * transform-origin as bottom center, we need to shift the arrow up by its height
1178
+ * so it's still flush with the top.
1179
+ *
1180
+ * Then, we need to shift the arrow up by its height again so its bottom edge is
1181
+ * flush with the top of the tooltip.
1182
+ *
1183
+ * In summary the arrow is shifted up by 2 * arrowHeight, or top: -2 * arrowHeight
1184
+ */
1185
+ bottom: `${-e * 2}px`,
1186
+ /*
1187
+ * Place the arrow at the right of the tooltip with right: 0. When we rotate
1188
+ * the arrow 90 degrees clockwise about the bottom center, there will now be
1189
+ * space between the right edge of the tooltip and the arrow. To fix this, we
1190
+ * need to shift the arrow left by the difference between half of the
1191
+ * arrow's width and the arrow's height (the two lengths on the horizontal axis)
1192
+ *
1193
+ * Example: note that the transformation origin is always bottom-center
1194
+ *
1195
+ * default, downward pointing position rotated 90 degrees, offset from edge
1196
+ * | |
1197
+ * |-------- => | |\
1198
+ * | .. | | *
1199
+ * | | |/
1200
+ */
1201
+ left: `${c}px`,
1202
+ // similarly for the right side
1203
+ right: `${c}px`
1204
+ }[r], m = {
1205
+ transform: l
1206
+ };
1207
+ m.left = i != null ? `${i}px` : "", m.top = o != null ? `${o}px` : "";
1208
+ const f = it(r);
1209
+ return m[f] = a, m;
1210
+ }, ho = ".bm-floatingui{z-index:999;position:absolute;inset:unset;top:0;left:0;width:max-content;overflow:unset;border:unset}.bm-floatingui__arrow{position:absolute;transform-origin:bottom center}.bm-floatingui__overlay{background:var(--bm-comp-dialog-color-overlay);padding:var(--bm-comp-dialog-space-viewport-offset);display:flex;justify-content:center;align-items:center;z-index:1}.bm-floatingui__overlay--transparent{background:transparent}";
1211
+ class go {
1212
+ constructor(e) {
1213
+ this.eventMap = /* @__PURE__ */ new Map(), this.elements = /* @__PURE__ */ new Map(), e.addController(this);
1214
+ }
1215
+ /**
1216
+ * Registers an element to be managed by the controller. Adds previously
1217
+ * registered event listeners if specified by assignListeners
1218
+ *
1219
+ * Removes registered event listeners on previous element with id, if it exists
1220
+ *
1221
+ * @param elementId - element id used as reference to this element controller
1222
+ * @param eventTarget - element to assign to id
1223
+ * @param assignListeners - a map of categories to booleans to dynamically add the
1224
+ * category listeners to the element. Or pass in true to add them all.
1225
+ */
1226
+ registerElement(e, n, i = !1) {
1227
+ if (this.elements.has(e) && this.removeAllEventListeners(), this.elements.set(e, n), i) {
1228
+ const o = typeof i == "object" ? (r) => i[r] : void 0;
1229
+ this.assignEventListeners(e, o);
1230
+ }
1231
+ }
1232
+ /**
1233
+ * Registers event listeners for a singular element under a category name
1234
+ *
1235
+ * @param categoryName - name of category
1236
+ * @param elementId - id representing element. Matches arg in `registerElement`
1237
+ * @param handlers - key/value pair(s) of event listeners and their
1238
+ *
1239
+ * @example
1240
+ * this.registerEventListeners('hover', element, [
1241
+ * {
1242
+ * event: 'mouseenter',
1243
+ * handler: mouseenter,
1244
+ * },
1245
+ * {
1246
+ * event: 'mouseleave',
1247
+ * handler: mouseleave,
1248
+ * },
1249
+ * ]);
1250
+ */
1251
+ registerEventListeners(e, n, i) {
1252
+ this.eventMap.has(e) || this.eventMap.set(e, /* @__PURE__ */ new Map());
1253
+ const o = this.eventMap.get(e);
1254
+ if (typeof i == "function")
1255
+ o && o.set(n, [i]);
1256
+ else {
1257
+ const r = i.filter(
1258
+ (s) => !!s
1259
+ );
1260
+ o && o.set(n, r);
1261
+ }
1262
+ }
1263
+ /**
1264
+ * Registers hover event listeners
1265
+ *
1266
+ * @param elementId
1267
+ * @param mouseenter
1268
+ * @param mouseleave
1269
+ */
1270
+ registerHoverListener(e, n, i) {
1271
+ this.registerEventListeners("hover", e, [
1272
+ {
1273
+ event: "mouseenter",
1274
+ handler: n
1275
+ },
1276
+ i && {
1277
+ event: "mouseleave",
1278
+ handler: i
1279
+ }
1280
+ ]);
1281
+ }
1282
+ /**
1283
+ * Registers click event listeners
1284
+ *
1285
+ * @param elementId
1286
+ * @param click
1287
+ */
1288
+ registerClickListener(e, n) {
1289
+ this.registerEventListeners("click", e, [
1290
+ { event: "click", handler: n }
1291
+ ]);
1292
+ }
1293
+ /**
1294
+ * Registers focus and blur event listeners
1295
+ *
1296
+ * @param elementId
1297
+ * @param focus
1298
+ * @param blur
1299
+ */
1300
+ registerFocusListener(e, n, i) {
1301
+ this.registerEventListeners("focus", e, [
1302
+ { event: "focus", handler: n },
1303
+ i && { event: "blur", handler: i }
1304
+ ]);
1305
+ }
1306
+ /**
1307
+ * Removes all event listeners
1308
+ */
1309
+ removeAllEventListeners() {
1310
+ this.eventMap.forEach((e, n) => {
1311
+ this.removeEventListeners(n);
1312
+ });
1313
+ }
1314
+ hostDisconnected() {
1315
+ this.removeAllEventListeners();
1316
+ }
1317
+ /**
1318
+ * Adds event listeners for a specific category
1319
+ *
1320
+ * @param category
1321
+ */
1322
+ addEventListeners(e) {
1323
+ this.setEventListeners(e, "addEventListener");
1324
+ }
1325
+ /**
1326
+ * Removes event listeners for a specific category
1327
+ *
1328
+ * @param category
1329
+ */
1330
+ removeEventListeners(e) {
1331
+ this.setEventListeners(e, "removeEventListener");
1332
+ }
1333
+ /**
1334
+ * Assigns event listeners to an element based on the category
1335
+ *
1336
+ * @param elementId
1337
+ * @param categoryFilter - Optional filter to only assign event listeners for a specific category
1338
+ * @private
1339
+ */
1340
+ assignEventListeners(e, n) {
1341
+ const i = this.elements.get(e);
1342
+ return i ? (this.eventMap.forEach((o, r) => {
1343
+ (n === void 0 || n(r)) && o.forEach((s, l) => {
1344
+ l === e && s.forEach(({ event: c, handler: a }) => {
1345
+ i.addEventListener(c, a);
1346
+ });
1347
+ });
1348
+ }), !0) : (console.warn(`Element ${e} not found`), !1);
1349
+ }
1350
+ /**
1351
+ * Perform action with handler on all elements in category
1352
+ *
1353
+ * @param category
1354
+ * @param action
1355
+ * @private
1356
+ */
1357
+ setEventListeners(e, n) {
1358
+ var i;
1359
+ if (!this.eventMap.has(e)) {
1360
+ console.warn(`No event listeners registered for ${e}`);
1361
+ return;
1362
+ }
1363
+ (i = this.eventMap.get(e)) == null || i.forEach((o, r) => {
1364
+ const s = this.elements.get(r);
1365
+ if (!s) {
1366
+ console.warn(
1367
+ `Cannot ${n} to ${r} for event category ${e}`
1368
+ );
1369
+ return;
1370
+ }
1371
+ o.forEach(({ event: l, handler: c }) => {
1372
+ s[n](l, c);
1373
+ });
1374
+ });
1375
+ }
1376
+ }
1377
+ class Vt {
1378
+ constructor(e) {
1379
+ e.addController(this);
1380
+ }
1381
+ hostDisconnected() {
1382
+ this.cancelSchedule();
1383
+ }
1384
+ /**
1385
+ * Schedule a function to run after a delay.
1386
+ *
1387
+ * @param callback - The function to run.
1388
+ * @param delay - The delay in milliseconds.
1389
+ */
1390
+ schedule(e, n) {
1391
+ this.timer || (this.timer = setTimeout(e, n));
1392
+ }
1393
+ /**
1394
+ * Cancel the scheduled function.
1395
+ */
1396
+ cancelSchedule() {
1397
+ clearTimeout(this.timer), this.timer = void 0;
1398
+ }
1399
+ }
1400
+ var vo = Object.defineProperty, Kt = (t, e, n, i) => {
1401
+ for (var o = void 0, r = t.length - 1, s; r >= 0; r--)
1402
+ (s = t[r]) && (o = s(e, n, o) || o);
1403
+ return o && vo(e, n, o), o;
1404
+ };
1405
+ const bo = (t) => {
1406
+ class e extends t {
1407
+ shouldToggle(i, o) {
1408
+ i && this.fireChange(o);
1409
+ const r = this._isOpen === o, s = this.open === !o;
1410
+ return !(r || s);
1411
+ }
1412
+ /**
1413
+ * Fire a custom event when the floating event is triggered
1414
+ * with an internal event
1415
+ *
1416
+ * @param change - whether the floating content is open or closed
1417
+ */
1418
+ fireChange(i) {
1419
+ const o = `${be}toggle`;
1420
+ this.dispatchEvent(
1421
+ new CustomEvent(o, {
1422
+ detail: { open: i },
1423
+ bubbles: !0,
1424
+ composed: !0
1425
+ })
1426
+ );
1427
+ }
1428
+ }
1429
+ return Kt([
1430
+ v({ type: Boolean })
1431
+ ], e.prototype, "open"), Kt([
1432
+ Ee()
1433
+ ], e.prototype, "_isOpen"), e;
1434
+ };
1435
+ var yo = Object.defineProperty, P = (t, e, n, i) => {
1436
+ for (var o = void 0, r = t.length - 1, s; r >= 0; r--)
1437
+ (s = t[r]) && (o = s(e, n, o) || o);
1438
+ return o && yo(e, n, o), o;
1439
+ };
1440
+ const {
1441
+ subElementClassPrefix: wo,
1442
+ baseClassNamePrefix: xo
1443
+ } = Zt("floatingui"), Xt = {
1444
+ content: xo,
1445
+ arrow: `${wo}arrow`
1446
+ }, Co = ge("popover"), Oo = (t) => {
1447
+ const n = class n extends bo(t) {
1448
+ constructor() {
1449
+ super(), this.hideArrow = !1, this.shift = !0, this.autoHiding = !0, this.defaultOpen = !1, this.showDelay = 0, this.hideDelay = 0, this.popoverAPI = !0, this.disableAutoAria = !1, this.autoDescribedById = Ce(), this.openOnClick = !1, this.openOnHover = !1, this.openOnFocus = !1, this.initialRender = !0, this.contentRef = zt(), this.edgePadding = 0, this.shouldReturnFocus = !1, this.eventPrefix = "bm-floatingui", this.arrowRef = zt(), this.shouldUsePopoverAPI = !1, this.anchor = null, this.eventController = new go(this), this.autoUpdateCleanup = null, this.closeController = new Vt(this), this.openController = new Vt(this), this.openContent = this.openContent.bind(this), this.mouseEnterHandler = this.mouseEnterHandler.bind(this), this.mouseLeaveHandler = this.mouseLeaveHandler.bind(this), this.closeContent = this.closeContent.bind(this), this.toggleContent = this.toggleContent.bind(this), this.contentSlotHandler = this.contentSlotHandler.bind(this), this.environmentClickListener = this.environmentClickListener.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.eventController.registerClickListener("anchor", this.toggleContent), this.eventController.registerHoverListener(
1450
+ "anchor",
1451
+ this.mouseEnterHandler,
1452
+ this.mouseLeaveHandler
1453
+ ), this.eventController.registerFocusListener(
1454
+ "anchor",
1455
+ this.openContent,
1456
+ this.closeContent
1457
+ ), this.eventController.registerHoverListener(
1458
+ "content",
1459
+ this.openContent,
1460
+ this.closeContent
1461
+ ), this.eventController.registerElement("document", document), this.eventController.registerEventListeners("open", "document", [
1462
+ {
1463
+ event: "mousedown",
1464
+ handler: this.environmentClickListener
1465
+ }
1466
+ ]), this.eventController.registerElement("window", window), this.eventController.registerEventListeners("open", "window", [
1467
+ {
1468
+ event: "keydown",
1469
+ handler: this.handleKeydown
1470
+ }
1471
+ ]);
1472
+ }
1473
+ disconnectedCallback() {
1474
+ var o;
1475
+ (o = this.autoUpdateCleanup) == null || o.call(this), this._isOpen = !1, super.disconnectedCallback();
1476
+ }
1477
+ /**
1478
+ * Close the floating content.
1479
+ *
1480
+ * Focus will be returned to the anchor element if
1481
+ * the open state was triggered by a click or focus event.
1482
+ *
1483
+ * @param internal - whether the close was triggered internally;
1484
+ * if true, the change event will be fired
1485
+ */
1486
+ closeContent(o) {
1487
+ if (!this.shouldToggle(!!o, !1))
1488
+ return;
1489
+ this.contentRef.value.setAttribute("data-status", "close");
1490
+ const s = () => {
1491
+ var l, c;
1492
+ this.shouldUsePopoverAPI && this.contentRef.value.hidePopover(), this._isOpen = !1, (l = this.autoUpdateCleanup) == null || l.call(this), this.eventController.removeEventListeners("open"), this.shouldReturnFocus && ((c = this.anchor) == null || c.focus(), this.shouldReturnFocus = !1);
1493
+ };
1494
+ this.closeController.schedule(s, this.hideDelay);
1495
+ }
1496
+ /**
1497
+ * Open the floating content. `open` attribute overrides this method call.
1498
+ *
1499
+ * @param internal - whether the close was triggered internally;
1500
+ * if true, the change event will be fired
1501
+ */
1502
+ openContent(o) {
1503
+ this.contentRef.value.setAttribute("data-status", "open"), this.closeController.cancelSchedule(), this.shouldUsePopoverAPI && this.contentRef.value.showPopover(), this.shouldToggle(!!o, !0) && (this._isOpen = !0, this.eventController.addEventListeners("open"), this.positionFloatingContent());
1504
+ }
1505
+ /**
1506
+ * Toggle the visibility of the floating content.
1507
+ *
1508
+ * @param internal - whether the close was triggered internally;
1509
+ * if true, the change event will be fired
1510
+ */
1511
+ toggleContent(o) {
1512
+ this._isOpen ? this.closeContent(o) : (this.shouldReturnFocus = !0, this.openContent(o));
1513
+ }
1514
+ positionFloatingContent() {
1515
+ var s;
1516
+ (s = this.autoUpdateCleanup) == null || s.call(this);
1517
+ let o = {};
1518
+ o = mo({
1519
+ baseConfig: o,
1520
+ middleware: {
1521
+ autoPlacement: this.autoPlacement,
1522
+ flip: this.flip,
1523
+ hide: this.autoHiding,
1524
+ shift: this.shift,
1525
+ overrides: this.middleware
1526
+ },
1527
+ offset: this.offset || 0,
1528
+ arrow: {
1529
+ options: {
1530
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1531
+ element: this.arrowRef.value,
1532
+ padding: this.edgePadding
1533
+ },
1534
+ hide: this.hideArrow
1535
+ },
1536
+ placement: this.placement
1537
+ });
1538
+ const r = () => (
1539
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1540
+ ao(this.anchor, this.contentRef.value, o).then(
1541
+ (l) => {
1542
+ const { x: c, y: a, middlewareData: m } = l;
1543
+ Object.assign(this.contentRef.value.style, {
1544
+ ...fo(m),
1545
+ // translation more performant than top left
1546
+ transform: `translate(${c}px, ${a}px)`
1547
+ }), this.arrowRef.value && m.arrowStyles && Object.assign(this.arrowRef.value.style, m.arrowStyles);
1548
+ }
1549
+ )
1550
+ );
1551
+ this.autoUpdateCleanup = no(
1552
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1553
+ this.anchor,
1554
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1555
+ this.contentRef.value,
1556
+ r
1557
+ );
1558
+ }
1559
+ shouldUpdate(o) {
1560
+ if (this.initialRender)
1561
+ return !0;
1562
+ if (o.has("open")) {
1563
+ if (this._isOpen === this.open)
1564
+ return !1;
1565
+ const s = this._isOpen;
1566
+ return this.open ? this.openContent() : this.closeContent(), s !== this._isOpen;
1567
+ }
1568
+ return super.shouldUpdate(o);
1569
+ }
1570
+ /**
1571
+ * Lifecycle method called when the element is first updated
1572
+ *
1573
+ * Sets the initialRender flag to false only if additional operations on the initial render
1574
+ * are not required. For example, if the floating content should be open by default, the
1575
+ * initialRender flag should not be set to false.
1576
+ *
1577
+ * @param changedProperties
1578
+ * @protected
1579
+ */
1580
+ firstUpdated(o) {
1581
+ super.firstUpdated(o), this.defaultOpen || (this.initialRender = !1), this.eventController.registerElement("content", this.contentRef.value, {
1582
+ hover: this.openOnHover
1583
+ });
1584
+ }
1585
+ /**
1586
+ * Handle slotchange event on the body slot. Currently just
1587
+ * sets the id on the light dom ƒor aria purposes
1588
+ *
1589
+ * @param e
1590
+ * @protected
1591
+ */
1592
+ contentSlotHandler(o) {
1593
+ if (this.disableAutoAria)
1594
+ return;
1595
+ const { child: r } = Dt("bm-floatingui", "content", o);
1596
+ r.setAttribute("id", this.autoDescribedById);
1597
+ }
1598
+ environmentClickListener(o) {
1599
+ if (!this._isOpen || this.open)
1600
+ return;
1601
+ const r = kt(o, this.anchor), s = kt(o, this.contentRef.value);
1602
+ r || s || this.closeContent(!0);
1603
+ }
1604
+ willUpdate(o) {
1605
+ super.willUpdate(o), o.has("popoverAPI") && (this.shouldUsePopoverAPI = this.popoverAPI && Co);
1606
+ }
1607
+ updated(o) {
1608
+ if (super.updated(o), this.anchor && ["click", "hover", "focus"].forEach((m) => {
1609
+ const f = `openOn${ve(m)}`;
1610
+ o.has(f) && (this[f] ? this.eventController.addEventListeners(m) : this.eventController.removeEventListeners(m));
1611
+ }), o.has("autoDescribedById") && !this.disableAutoAria && this.anchor)
1612
+ if (this.autoDescribedById)
1613
+ $t(this.anchor, "aria-describedby", this.autoDescribedById);
1614
+ else {
1615
+ const a = o.get("autoDescribedById");
1616
+ if (!a)
1617
+ return;
1618
+ Oe(this.anchor, "aria-describedby", a);
1619
+ }
1620
+ const l = Ae(
1621
+ o,
1622
+ [
1623
+ "placement",
1624
+ "autoPlacement",
1625
+ "flip",
1626
+ "shift",
1627
+ "autoHiding",
1628
+ "middleware"
1629
+ ]
1630
+ ) && this._isOpen, c = o.has("_isOpen");
1631
+ l && !c && this.positionFloatingContent();
1632
+ }
1633
+ mouseEnterHandler() {
1634
+ const o = () => {
1635
+ this.openContent(!0);
1636
+ };
1637
+ this.openController.schedule(o, this.showDelay);
1638
+ }
1639
+ mouseLeaveHandler() {
1640
+ this.openController.cancelSchedule(), this.closeContent(!0);
1641
+ }
1642
+ anchorSlotHandler(o) {
1643
+ const { child: r } = Dt("bm-floatingui", "anchor", o);
1644
+ this.anchor = r, this.eventController.registerElement("anchor", r, {
1645
+ hover: this.openOnHover,
1646
+ click: this.openOnClick,
1647
+ focus: this.openOnFocus
1648
+ }), this.disableAutoAria || $t(r, "aria-describedby", this.autoDescribedById), this.open ? this.openContent() : this.defaultOpen && this.initialRender && (this.openContent(), this.initialRender = !1);
1649
+ }
1650
+ handleKeydown(o) {
1651
+ o.key === "Escape" && this.closeContent(!0);
1652
+ }
1653
+ };
1654
+ n.styles = [
1655
+ xt(ho),
1656
+ he`
1657
+ :host {
1658
+ display: contents;
1659
+ }
1660
+ `
1661
+ ];
1662
+ let e = n;
1663
+ return P([
1664
+ v({ type: Boolean })
1665
+ ], e.prototype, "hideArrow"), P([
1666
+ v({ type: String })
1667
+ ], e.prototype, "placement"), P([
1668
+ v({ type: Object })
1669
+ ], e.prototype, "autoPlacement"), P([
1670
+ v({ type: Object })
1671
+ ], e.prototype, "flip"), P([
1672
+ v({ type: Object })
1673
+ ], e.prototype, "shift"), P([
1674
+ v({ type: Object })
1675
+ ], e.prototype, "autoHiding"), P([
1676
+ v({ type: Object })
1677
+ ], e.prototype, "middleware"), P([
1678
+ v({ type: Boolean })
1679
+ ], e.prototype, "defaultOpen"), P([
1680
+ v({ type: Number })
1681
+ ], e.prototype, "showDelay"), P([
1682
+ v({ type: Number })
1683
+ ], e.prototype, "hideDelay"), P([
1684
+ v({ type: Boolean, converter: Jt })
1685
+ ], e.prototype, "popoverAPI"), P([
1686
+ v({ type: Boolean })
1687
+ ], e.prototype, "disableAutoAria"), P([
1688
+ v({ type: String })
1689
+ ], e.prototype, "autoDescribedById"), P([
1690
+ v()
1691
+ ], e.prototype, "offset"), P([
1692
+ v({ type: Boolean })
1693
+ ], e.prototype, "openOnClick"), P([
1694
+ v({ type: Boolean })
1695
+ ], e.prototype, "openOnHover"), P([
1696
+ v({ type: Boolean })
1697
+ ], e.prototype, "openOnFocus"), e;
1698
+ };
1699
+ var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, Po = Object.getPrototypeOf, Ro = Reflect.get, O = (t, e, n, i) => {
1700
+ for (var o = i > 1 ? void 0 : i ? Eo(e, n) : e, r = t.length - 1, s; r >= 0; r--)
1701
+ (s = t[r]) && (o = (i ? s(e, n, o) : s(o)) || o);
1702
+ return i && o && Ao(e, n, o), o;
1703
+ }, pe = (t, e, n) => Ro(Po(t), n, e);
1704
+ const { subElementClassPrefix: me, baseClassNamePrefix: Lo } = Zt("tooltip");
1705
+ let C = class extends Oo(qt) {
1706
+ constructor() {
1707
+ super(), this.disabled = !1, this.triggerSize = "md", this.eventPrefix = "tooltip", this.hideDelay = 200, Bt(we, this, "edgePadding"), Bt(xe, this, "offset");
1708
+ }
1709
+ willUpdate(t) {
1710
+ super.willUpdate(t);
1711
+ const e = (n) => {
1712
+ this.openOnHover = n, this.openOnFocus = n;
1713
+ };
1714
+ t.has("disabled") && e(!this.disabled);
1715
+ }
1716
+ render() {
1717
+ return Yt` <slot name="trigger" @slotchange=${this.anchorSlotHandler}></slot>
1718
+ <div
1719
+ role="tooltip"
1720
+ @slotchange=${this.contentSlotHandler}
1721
+ aria-hidden=${!this._isOpen}
1722
+ ${Tt(this.contentRef)}
1723
+ class=${bt(
1724
+ this.theme && ye(this.theme),
1725
+ Xt.content,
1726
+ Lo
1727
+ )}
1728
+ popover="manual"
1729
+ style="display: ${this._isOpen ? "block" : "none"}"
1730
+ >
1731
+ <slot name="text"></slot>
1732
+ <span
1733
+ class=${bt(Xt.arrow, `${me}arrow`)}
1734
+ ${Tt(this.arrowRef)}
1735
+ >
1736
+ </span>
1737
+ </div>`;
1738
+ }
1739
+ };
1740
+ C.styles = [
1741
+ xt(Qt),
1742
+ pe(C, C, "styles") ?? []
1743
+ ];
1744
+ O([
1745
+ v({ type: String })
1746
+ ], C.prototype, "theme", 2);
1747
+ O([
1748
+ v({ type: Boolean })
1749
+ ], C.prototype, "open", 2);
1750
+ O([
1751
+ v({ type: Boolean })
1752
+ ], C.prototype, "hideArrow", 2);
1753
+ O([
1754
+ v({ type: String })
1755
+ ], C.prototype, "placement", 2);
1756
+ O([
1757
+ v({ type: Object })
1758
+ ], C.prototype, "autoPlacement", 2);
1759
+ O([
1760
+ v({ type: Object })
1761
+ ], C.prototype, "flip", 2);
1762
+ O([
1763
+ v({ type: Object })
1764
+ ], C.prototype, "shift", 2);
1765
+ O([
1766
+ v({ type: Object })
1767
+ ], C.prototype, "autoHiding", 2);
1768
+ O([
1769
+ v({ type: Object })
1770
+ ], C.prototype, "middleware", 2);
1771
+ O([
1772
+ v({ type: Boolean })
1773
+ ], C.prototype, "defaultOpen", 2);
1774
+ O([
1775
+ v({ type: Number })
1776
+ ], C.prototype, "showDelay", 2);
1777
+ O([
1778
+ v({ type: Boolean, converter: Jt })
1779
+ ], C.prototype, "popoverAPI", 2);
1780
+ O([
1781
+ v({ type: Boolean })
1782
+ ], C.prototype, "disableAutoAria", 2);
1783
+ O([
1784
+ v({ type: String })
1785
+ ], C.prototype, "autoDescribedById", 2);
1786
+ O([
1787
+ v({ type: Boolean })
1788
+ ], C.prototype, "disabled", 2);
1789
+ O([
1790
+ v({ type: String })
1791
+ ], C.prototype, "triggerSize", 2);
1792
+ C = O([
1793
+ Gt("bm-tooltip")
1794
+ ], C);
1795
+ let G = class extends qt {
1796
+ constructor() {
1797
+ super(...arguments), this.size = "md", this.disabled = !1;
1798
+ }
1799
+ render() {
1800
+ const t = `${me}icon-trigger`, e = bt(
1801
+ t,
1802
+ this.size !== "none" && `${t}--${this.size}`,
1803
+ this.disabled && `${t}--disabled`
1804
+ );
1805
+ return Yt`<button class=${e} aria-label="tooltip trigger">
1806
+ <slot></slot>
1807
+ </button>`;
1808
+ }
1809
+ };
1810
+ G.styles = [
1811
+ xt(Qt),
1812
+ pe(G, G, "styles") ?? []
1813
+ ];
1814
+ O([
1815
+ v({ type: String })
1816
+ ], G.prototype, "size", 2);
1817
+ O([
1818
+ v({ type: Boolean })
1819
+ ], G.prototype, "disabled", 2);
1820
+ G = O([
1821
+ Gt("bm-tooltip-icon-trigger")
1822
+ ], G);
1823
+ export {
1824
+ C as BmTooltip,
1825
+ G as BmTooltipIconTrigger
1826
+ };