@beamimpact/web-sdk 1.55.7 → 1.56.3

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 (354) hide show
  1. package/README.md +5 -0
  2. package/dist/chunks/_share-dialog-dependencies-Bk60ibnw.esm.js +2 -0
  3. package/dist/chunks/{_share-dialog-dependencies-BVNp0oLJ.esm.js.map → _share-dialog-dependencies-Bk60ibnw.esm.js.map} +1 -1
  4. package/dist/chunks/_share-dialog-dependencies-D6vA_2f6.esm.js +2 -0
  5. package/dist/chunks/{_share-dialog-dependencies-D4i8Nvve.esm.js.map → _share-dialog-dependencies-D6vA_2f6.esm.js.map} +1 -1
  6. package/dist/chunks/beam-errors-Ci0d3926.esm.js.map +1 -1
  7. package/dist/chunks/{beam-errors-CCe004HS.esm.d.ts → beam-errors-DUQ9pK2V.esm.d.ts} +7 -1
  8. package/dist/chunks/{cart-contents-CLT7p7Gd.esm.d.ts → cart-contents-CEoSx3y4.esm.d.ts} +1 -1
  9. package/dist/chunks/{css-card-grid-CvoGpsJH.esm.js → css-card-grid-DixMt6ek.esm.js} +2 -2
  10. package/dist/chunks/{css-card-grid-CvoGpsJH.esm.js.map → css-card-grid-DixMt6ek.esm.js.map} +1 -1
  11. package/dist/chunks/enforce-config-DHnpgqSK.esm.js +3 -0
  12. package/dist/chunks/enforce-config-DHnpgqSK.esm.js.map +1 -0
  13. package/dist/chunks/enforce-config-DUbQnaLO.esm.js +3 -0
  14. package/dist/chunks/enforce-config-DUbQnaLO.esm.js.map +1 -0
  15. package/dist/chunks/events-COWOQoLW.esm.js +2 -0
  16. package/dist/chunks/{events-Dki0ka4F.esm.js.map → events-COWOQoLW.esm.js.map} +1 -1
  17. package/dist/chunks/{events-B7l6VPsF.esm.d.ts → events-Dwqfqbij.esm.d.ts} +33 -5
  18. package/dist/chunks/index-8rOpG9kf.esm.js +2 -0
  19. package/dist/chunks/index-8rOpG9kf.esm.js.map +1 -0
  20. package/dist/chunks/{index-BAgWh5OK.esm.js → index-B1GmdVT3.esm.js} +2 -2
  21. package/dist/chunks/index-B1GmdVT3.esm.js.map +1 -0
  22. package/dist/chunks/{index-DKAZRTl5.esm.js → index-B2dxbh1d.esm.js} +2 -2
  23. package/dist/chunks/{index-DKAZRTl5.esm.js.map → index-B2dxbh1d.esm.js.map} +1 -1
  24. package/dist/chunks/{index-DPptZHfR.esm.js → index-BEEmYYxP.esm.js} +28 -18
  25. package/dist/chunks/index-BEEmYYxP.esm.js.map +1 -0
  26. package/dist/chunks/{index-CWnHkgy3.esm.js → index-BIEV1MH0.esm.js} +2 -2
  27. package/dist/chunks/{index-CWnHkgy3.esm.js.map → index-BIEV1MH0.esm.js.map} +1 -1
  28. package/dist/chunks/{index-CBS5Fqry.esm.d.ts → index-BLlSL37B.esm.d.ts} +4 -2
  29. package/dist/chunks/{index-C-hPf29c.esm.d.ts → index-BY5lSRmw.esm.d.ts} +4 -1
  30. package/dist/chunks/index-BaWMWAyt.esm.js +2 -0
  31. package/dist/chunks/index-BaWMWAyt.esm.js.map +1 -0
  32. package/dist/chunks/index-BeX4QeUu.esm.js +2 -0
  33. package/dist/chunks/index-BeX4QeUu.esm.js.map +1 -0
  34. package/dist/chunks/{index-CGKJagBi.esm.js → index-C3v-y56g.esm.js} +2 -2
  35. package/dist/chunks/index-C3v-y56g.esm.js.map +1 -0
  36. package/dist/chunks/{index-DEoMwStx.esm.d.ts → index-C_u1FXtO.esm.d.ts} +33 -5
  37. package/dist/chunks/{index-CG2AhvV9.esm.js → index-CqqF1sQo.esm.js} +2 -2
  38. package/dist/chunks/index-CqqF1sQo.esm.js.map +1 -0
  39. package/dist/chunks/index-Cs4Kp9X4.esm.js +2 -0
  40. package/dist/chunks/index-Cs4Kp9X4.esm.js.map +1 -0
  41. package/dist/chunks/index-D20ifskY.esm.d.ts +21 -0
  42. package/dist/chunks/{index-DmUEFwoM.esm.js → index-D3hxLDQF.esm.js} +2 -2
  43. package/dist/chunks/index-D3hxLDQF.esm.js.map +1 -0
  44. package/dist/chunks/{index-DBb5HSkR.esm.js → index-D5TZB-zM.esm.js} +2 -2
  45. package/dist/chunks/index-D5TZB-zM.esm.js.map +1 -0
  46. package/dist/chunks/{index-DTPlqZRf.esm.d.ts → index-DDCtGN21.esm.d.ts} +15 -2
  47. package/dist/chunks/index-DSJACB_p.esm.js +2 -0
  48. package/dist/chunks/{index-BNjsFEGn.esm.js.map → index-DSJACB_p.esm.js.map} +1 -1
  49. package/dist/chunks/{index-Ct1m4IjM.esm.js → index-DmjZnpod.esm.js} +2 -2
  50. package/dist/chunks/index-DmjZnpod.esm.js.map +1 -0
  51. package/dist/chunks/{index-rxgS4BLp.esm.d.ts → index-DyUuvdr3.esm.d.ts} +6 -2
  52. package/dist/chunks/{index-Bliur1O3.esm.d.ts → index-EJRmgmQu.esm.d.ts} +33 -5
  53. package/dist/chunks/{index-DvhxjeiK.esm.js → index-UMeAzKTG.esm.js} +28 -18
  54. package/dist/chunks/index-UMeAzKTG.esm.js.map +1 -0
  55. package/dist/chunks/index-hghrT7Z_.esm.d.ts +40 -0
  56. package/dist/chunks/index-mppXVWCH.esm.js +2 -0
  57. package/dist/chunks/{index-IKiJwo5v.esm.js.map → index-mppXVWCH.esm.js.map} +1 -1
  58. package/dist/chunks/{index-DjrWwYdg.esm.js → index-n62IxH5D.esm.js} +2 -2
  59. package/dist/chunks/index-n62IxH5D.esm.js.map +1 -0
  60. package/dist/chunks/{index-tbwbkOdj.esm.js → index-nAPzvUWE.esm.js} +2 -2
  61. package/dist/chunks/index-nAPzvUWE.esm.js.map +1 -0
  62. package/dist/chunks/{index-DXj15KHe.esm.d.ts → index-xcGPhpiO.esm.d.ts} +13 -1
  63. package/dist/chunks/lit-JRlupCB5.esm.js +25 -0
  64. package/dist/chunks/lit-JRlupCB5.esm.js.map +1 -0
  65. package/dist/chunks/loading-template-BFvXaTlD.esm.js +2 -0
  66. package/dist/chunks/{loading-template-DG4lkIIc.esm.js.map → loading-template-BFvXaTlD.esm.js.map} +1 -1
  67. package/dist/chunks/{localize-Btu9xYcE.esm.js → localize-Dg7NgKIP.esm.js} +4 -4
  68. package/dist/chunks/localize-Dg7NgKIP.esm.js.map +1 -0
  69. package/dist/chunks/{localize-C25pEGnx.esm.js → localize-DkAbsh05.esm.js} +4 -4
  70. package/dist/chunks/localize-DkAbsh05.esm.js.map +1 -0
  71. package/dist/chunks/lodash-BSs6Il-c.esm.js +2 -0
  72. package/dist/chunks/lodash-BSs6Il-c.esm.js.map +1 -0
  73. package/dist/chunks/{openapi-spec-Bk7E2QQP.esm.d.ts → openapi-spec-B4z4_CMq.esm.d.ts} +18 -0
  74. package/dist/chunks/{order-page-C3b348k0.esm.js → order-page-B0WbVrvh.esm.js} +2 -2
  75. package/dist/chunks/order-page-B0WbVrvh.esm.js.map +1 -0
  76. package/dist/chunks/{order-page-M7a2TINy.esm.d.ts → order-page-CSEjG6ma.esm.d.ts} +19 -18
  77. package/dist/chunks/{order-page-CuL1s6HR.esm.js → order-page-CT3hnhzf.esm.js} +2 -2
  78. package/dist/chunks/order-page-CT3hnhzf.esm.js.map +1 -0
  79. package/dist/chunks/{progress-bar-DF7UuuHb.esm.js → progress-bar-B82FOT8n.esm.js} +2 -2
  80. package/dist/chunks/{progress-bar-DF7UuuHb.esm.js.map → progress-bar-B82FOT8n.esm.js.map} +1 -1
  81. package/dist/chunks/{promo-pill-label-BihVdXIv.esm.js → promo-pill-label-D_4zJ7uy.esm.js} +3 -3
  82. package/dist/chunks/{promo-pill-label-BihVdXIv.esm.js.map → promo-pill-label-D_4zJ7uy.esm.js.map} +1 -1
  83. package/dist/chunks/{promo-pill-label-CD0lWdsv.esm.js → promo-pill-label-DcsiJS_N.esm.js} +3 -3
  84. package/dist/chunks/{promo-pill-label-CD0lWdsv.esm.js.map → promo-pill-label-DcsiJS_N.esm.js.map} +1 -1
  85. package/dist/chunks/{promo-types-BPmDZ5dF.esm.d.ts → promo-types-CmZzhkpN.esm.d.ts} +3 -2
  86. package/dist/chunks/promo-types-DKAOFHJr.esm.js.map +1 -1
  87. package/dist/chunks/{responsive-BR8qUfBa.esm.js → responsive-CIV4sFdH.esm.js} +2 -2
  88. package/dist/chunks/{responsive-BR8qUfBa.esm.js.map → responsive-CIV4sFdH.esm.js.map} +1 -1
  89. package/dist/chunks/routes-BIMwJ8u9.esm.js +2 -0
  90. package/dist/chunks/routes-BIMwJ8u9.esm.js.map +1 -0
  91. package/dist/chunks/routes-DSu5s3K7.esm.js +2 -0
  92. package/dist/chunks/routes-DSu5s3K7.esm.js.map +1 -0
  93. package/dist/chunks/routes-OxC3Ah30.esm.d.ts +638 -0
  94. package/dist/chunks/{share-button-BnNOZHBt.esm.js → share-button-CLMw49f5.esm.js} +2 -2
  95. package/dist/chunks/{share-button-BnNOZHBt.esm.js.map → share-button-CLMw49f5.esm.js.map} +1 -1
  96. package/dist/chunks/{share-button-BzmG48J9.esm.js → share-button-DXS3zbJz.esm.js} +2 -2
  97. package/dist/chunks/{share-button-BzmG48J9.esm.js.map → share-button-DXS3zbJz.esm.js.map} +1 -1
  98. package/dist/chunks/{share-button-BJ8T-uYK.esm.js → share-button-DkTpGZk1.esm.js} +8 -3
  99. package/dist/chunks/share-button-DkTpGZk1.esm.js.map +1 -0
  100. package/dist/chunks/{share-button-VEIdBFu3.esm.js → share-button-Dzc7loia.esm.js} +8 -3
  101. package/dist/chunks/share-button-Dzc7loia.esm.js.map +1 -0
  102. package/dist/chunks/{types-CPxMwnoR.esm.d.ts → types-D_PLq1pj.esm.d.ts} +1 -1
  103. package/dist/chunks/{update-cart-HlVGSYR7.esm.js → update-cart-ByUvNLyZ.esm.js} +2 -2
  104. package/dist/chunks/update-cart-ByUvNLyZ.esm.js.map +1 -0
  105. package/dist/chunks/{update-cart-CauFT0AF.esm.d.ts → update-cart-DWgFuC7U.esm.d.ts} +3 -2
  106. package/dist/chunks/{update-cart-C6BdmBt1.esm.js → update-cart-yj_9VGHp.esm.js} +2 -2
  107. package/dist/chunks/update-cart-yj_9VGHp.esm.js.map +1 -0
  108. package/dist/chunks/vendor-ckSdd6aH.esm.js +1286 -0
  109. package/dist/chunks/vendor-ckSdd6aH.esm.js.map +1 -0
  110. package/dist/components/beam-partner-logos.esm.js +5 -5
  111. package/dist/components/beam-partner-logos.esm.js.map +1 -1
  112. package/dist/components/beam-partner-logos.js +5 -5
  113. package/dist/components/beam-partner-logos.js.map +1 -1
  114. package/dist/components/community-impact.d.ts +1 -3
  115. package/dist/components/community-impact.esm.js +11 -6
  116. package/dist/components/community-impact.esm.js.map +1 -1
  117. package/dist/components/community-impact.js +11 -6
  118. package/dist/components/community-impact.js.map +1 -1
  119. package/dist/components/cumulative-impact.d.ts +1 -1
  120. package/dist/components/cumulative-impact.esm.js +10 -10
  121. package/dist/components/cumulative-impact.esm.js.map +1 -1
  122. package/dist/components/cumulative-impact.js +10 -10
  123. package/dist/components/cumulative-impact.js.map +1 -1
  124. package/dist/components/impact-overview.d.ts +36 -39
  125. package/dist/components/impact-overview.esm.js +11 -6
  126. package/dist/components/impact-overview.esm.js.map +1 -1
  127. package/dist/components/impact-overview.js +11 -6
  128. package/dist/components/impact-overview.js.map +1 -1
  129. package/dist/components/index.d.ts +5 -8
  130. package/dist/components/index.esm.js +1 -1
  131. package/dist/components/index.js +1 -1
  132. package/dist/components/post-purchase.d.ts +11 -12
  133. package/dist/components/post-purchase.esm.js +4 -4
  134. package/dist/components/post-purchase.esm.js.map +1 -1
  135. package/dist/components/post-purchase.js +4 -4
  136. package/dist/components/post-purchase.js.map +1 -1
  137. package/dist/components/product-details-page.d.ts +25 -26
  138. package/dist/components/product-details-page.esm.js +21 -21
  139. package/dist/components/product-details-page.esm.js.map +1 -1
  140. package/dist/components/product-details-page.js +21 -21
  141. package/dist/components/product-details-page.js.map +1 -1
  142. package/dist/components/redeem-transaction.d.ts +4 -7
  143. package/dist/components/redeem-transaction.esm.js +1 -1
  144. package/dist/components/redeem-transaction.js +1 -1
  145. package/dist/components/select-nonprofit.d.ts +4 -16
  146. package/dist/components/select-nonprofit.esm.js +6 -5
  147. package/dist/components/select-nonprofit.esm.js.map +1 -1
  148. package/dist/components/select-nonprofit.js +6 -5
  149. package/dist/components/select-nonprofit.js.map +1 -1
  150. package/dist/components/select-subscription-nonprofit.d.ts +2 -3
  151. package/dist/components/select-subscription-nonprofit.esm.js +42 -21
  152. package/dist/components/select-subscription-nonprofit.esm.js.map +1 -1
  153. package/dist/components/select-subscription-nonprofit.js +42 -21
  154. package/dist/components/select-subscription-nonprofit.js.map +1 -1
  155. package/dist/components/shopify.d.ts +8 -12
  156. package/dist/components/shopify.esm.js +1 -1
  157. package/dist/components/shopify.js +1 -1
  158. package/dist/components/social-share.d.ts +13 -2
  159. package/dist/components/social-share.esm.js +11 -4
  160. package/dist/components/social-share.esm.js.map +1 -1
  161. package/dist/components/social-share.js +11 -4
  162. package/dist/components/social-share.js.map +1 -1
  163. package/dist/components/subscription-impact.d.ts +37 -50
  164. package/dist/components/subscription-impact.esm.js +15 -3
  165. package/dist/components/subscription-impact.esm.js.map +1 -1
  166. package/dist/components/subscription-impact.js +15 -3
  167. package/dist/components/subscription-impact.js.map +1 -1
  168. package/dist/components/subscription-management.d.ts +92 -93
  169. package/dist/components/subscription-management.esm.js +4 -3
  170. package/dist/components/subscription-management.esm.js.map +1 -1
  171. package/dist/components/subscription-management.js +4 -3
  172. package/dist/components/subscription-management.js.map +1 -1
  173. package/dist/index.d.ts +19 -22
  174. package/dist/index.esm.js +1 -1
  175. package/dist/index.js +1 -1
  176. package/dist/integrations/beam.d.ts +3 -2
  177. package/dist/integrations/beam.esm.js +1 -1
  178. package/dist/integrations/beam.esm.js.map +1 -1
  179. package/dist/integrations/beam.js +1 -1
  180. package/dist/integrations/beam.js.map +1 -1
  181. package/dist/integrations/cart.d.ts +3 -3
  182. package/dist/integrations/cart.esm.js +1 -1
  183. package/dist/integrations/cart.js +1 -1
  184. package/dist/integrations/index.d.ts +14 -18
  185. package/dist/integrations/index.esm.js +1 -1
  186. package/dist/integrations/index.js +1 -1
  187. package/dist/integrations/logs.d.ts +2 -2
  188. package/dist/integrations/logs.esm.js +1 -1
  189. package/dist/integrations/logs.js +1 -1
  190. package/dist/integrations/promoManager.d.ts +1 -1
  191. package/dist/integrations/promoManager.esm.js +1 -1
  192. package/dist/integrations/promoManager.esm.js.map +1 -1
  193. package/dist/integrations/promoManager.js +1 -1
  194. package/dist/integrations/promoManager.js.map +1 -1
  195. package/dist/integrations/session.d.ts +1 -1
  196. package/dist/integrations/session.esm.js +1 -1
  197. package/dist/integrations/session.js +1 -1
  198. package/dist/integrations/shopify.d.ts +6 -10
  199. package/dist/integrations/shopify.esm.js +1 -1
  200. package/dist/integrations/shopify.js +1 -1
  201. package/dist/integrations/statsig.d.ts +9 -5
  202. package/dist/integrations/statsig.esm.js +14 -14
  203. package/dist/integrations/statsig.esm.js.map +1 -1
  204. package/dist/integrations/statsig.js +14 -14
  205. package/dist/integrations/statsig.js.map +1 -1
  206. package/dist/integrations/utils.d.ts +7 -7
  207. package/dist/integrations/utils.esm.js +1 -1
  208. package/dist/integrations/utils.js +1 -1
  209. package/dist/react/beam-partner-logos.esm.js +1 -1
  210. package/dist/react/beam-partner-logos.esm.js.map +1 -1
  211. package/dist/react/beam-partner-logos.js +1 -1
  212. package/dist/react/beam-partner-logos.js.map +1 -1
  213. package/dist/react/community-impact.d.ts +1 -3
  214. package/dist/react/community-impact.esm.js +1 -1
  215. package/dist/react/community-impact.esm.js.map +1 -1
  216. package/dist/react/community-impact.js +1 -1
  217. package/dist/react/community-impact.js.map +1 -1
  218. package/dist/react/cumulative-impact.d.ts +1 -1
  219. package/dist/react/cumulative-impact.esm.js +1 -1
  220. package/dist/react/cumulative-impact.esm.js.map +1 -1
  221. package/dist/react/cumulative-impact.js +1 -1
  222. package/dist/react/cumulative-impact.js.map +1 -1
  223. package/dist/react/impact-overview.d.ts +1 -4
  224. package/dist/react/impact-overview.esm.js +1 -1
  225. package/dist/react/impact-overview.esm.js.map +1 -1
  226. package/dist/react/impact-overview.js +1 -1
  227. package/dist/react/impact-overview.js.map +1 -1
  228. package/dist/react/index.d.ts +18 -21
  229. package/dist/react/index.esm.js +1 -1
  230. package/dist/react/index.js +1 -1
  231. package/dist/react/post-purchase.d.ts +3 -7
  232. package/dist/react/post-purchase.esm.js +1 -1
  233. package/dist/react/post-purchase.esm.js.map +1 -1
  234. package/dist/react/post-purchase.js +1 -1
  235. package/dist/react/post-purchase.js.map +1 -1
  236. package/dist/react/product-details-page.d.ts +1 -2
  237. package/dist/react/product-details-page.esm.js +1 -1
  238. package/dist/react/product-details-page.esm.js.map +1 -1
  239. package/dist/react/product-details-page.js +1 -1
  240. package/dist/react/product-details-page.js.map +1 -1
  241. package/dist/react/redeem-transaction.d.ts +5 -8
  242. package/dist/react/redeem-transaction.esm.js +1 -1
  243. package/dist/react/redeem-transaction.esm.js.map +1 -1
  244. package/dist/react/redeem-transaction.js +1 -1
  245. package/dist/react/redeem-transaction.js.map +1 -1
  246. package/dist/react/select-nonprofit.d.ts +5 -7
  247. package/dist/react/select-nonprofit.esm.js +1 -1
  248. package/dist/react/select-nonprofit.esm.js.map +1 -1
  249. package/dist/react/select-nonprofit.js +1 -1
  250. package/dist/react/select-nonprofit.js.map +1 -1
  251. package/dist/react/select-subscription-nonprofit.d.ts +5 -6
  252. package/dist/react/select-subscription-nonprofit.esm.js +1 -1
  253. package/dist/react/select-subscription-nonprofit.esm.js.map +1 -1
  254. package/dist/react/select-subscription-nonprofit.js +1 -1
  255. package/dist/react/select-subscription-nonprofit.js.map +1 -1
  256. package/dist/react/social-share.d.ts +1 -2
  257. package/dist/react/social-share.esm.js +1 -1
  258. package/dist/react/social-share.esm.js.map +1 -1
  259. package/dist/react/social-share.js +1 -1
  260. package/dist/react/social-share.js.map +1 -1
  261. package/dist/react/subscription-impact.d.ts +1 -3
  262. package/dist/react/subscription-impact.esm.js +1 -1
  263. package/dist/react/subscription-impact.esm.js.map +1 -1
  264. package/dist/react/subscription-impact.js +1 -1
  265. package/dist/react/subscription-impact.js.map +1 -1
  266. package/dist/react/subscription-management.d.ts +4 -6
  267. package/dist/react/subscription-management.esm.js +1 -1
  268. package/dist/react/subscription-management.esm.js.map +1 -1
  269. package/dist/react/subscription-management.js +1 -1
  270. package/dist/react/subscription-management.js.map +1 -1
  271. package/dist/utils/beam-errors.d.ts +1 -1
  272. package/dist/utils/cookies.d.ts +1 -41
  273. package/dist/utils/cookies.esm.js +1 -1
  274. package/dist/utils/cookies.esm.js.map +1 -1
  275. package/dist/utils/cookies.js +1 -1
  276. package/dist/utils/cookies.js.map +1 -1
  277. package/dist/utils/debounce.esm.js +1 -1
  278. package/dist/utils/debounce.js +1 -1
  279. package/dist/utils/events.d.ts +5 -5
  280. package/dist/utils/events.esm.js +1 -1
  281. package/dist/utils/events.js +1 -1
  282. package/dist/utils/index.d.ts +7 -7
  283. package/dist/utils/index.esm.js +1 -1
  284. package/dist/utils/index.js +1 -1
  285. package/dist/utils/is-equal.esm.js +1 -1
  286. package/dist/utils/is-equal.js +1 -1
  287. package/dist/utils/makeApiKeyHeader.esm.js.map +1 -1
  288. package/dist/utils/makeApiKeyHeader.js.map +1 -1
  289. package/dist/utils/memoize-last.esm.js +1 -1
  290. package/dist/utils/memoize-last.esm.js.map +1 -1
  291. package/dist/utils/memoize-last.js +1 -1
  292. package/dist/utils/memoize-last.js.map +1 -1
  293. package/dist/utils/network-listeners.esm.js +1 -1
  294. package/dist/utils/network-listeners.esm.js.map +1 -1
  295. package/dist/utils/network-listeners.js +1 -1
  296. package/dist/utils/network-listeners.js.map +1 -1
  297. package/dist/utils/promoManager.d.ts +6 -18
  298. package/dist/utils/promoManager.esm.js.map +1 -1
  299. package/dist/utils/promoManager.js.map +1 -1
  300. package/dist/utils/wait-for-element.esm.js.map +1 -1
  301. package/dist/utils/wait-for-element.js.map +1 -1
  302. package/package.json +42 -39
  303. package/dist/chunks/_share-dialog-dependencies-BVNp0oLJ.esm.js +0 -2
  304. package/dist/chunks/_share-dialog-dependencies-D4i8Nvve.esm.js +0 -2
  305. package/dist/chunks/enforce-config-Ba1JkOHs.esm.js +0 -3
  306. package/dist/chunks/enforce-config-Ba1JkOHs.esm.js.map +0 -1
  307. package/dist/chunks/enforce-config-CZ3ToOgr.esm.js +0 -3
  308. package/dist/chunks/enforce-config-CZ3ToOgr.esm.js.map +0 -1
  309. package/dist/chunks/events-Dki0ka4F.esm.js +0 -2
  310. package/dist/chunks/index-BAgWh5OK.esm.js.map +0 -1
  311. package/dist/chunks/index-BNjsFEGn.esm.js +0 -2
  312. package/dist/chunks/index-C0J0SqUr.esm.js +0 -2
  313. package/dist/chunks/index-C0J0SqUr.esm.js.map +0 -1
  314. package/dist/chunks/index-CG2AhvV9.esm.js.map +0 -1
  315. package/dist/chunks/index-CGKJagBi.esm.js.map +0 -1
  316. package/dist/chunks/index-CLNjLpMX.esm.js +0 -2
  317. package/dist/chunks/index-CLNjLpMX.esm.js.map +0 -1
  318. package/dist/chunks/index-Ct1m4IjM.esm.js.map +0 -1
  319. package/dist/chunks/index-DBb5HSkR.esm.js.map +0 -1
  320. package/dist/chunks/index-DFGxZmsj.esm.js +0 -2
  321. package/dist/chunks/index-DFGxZmsj.esm.js.map +0 -1
  322. package/dist/chunks/index-DHK-p5LV.esm.d.ts +0 -15
  323. package/dist/chunks/index-DPptZHfR.esm.js.map +0 -1
  324. package/dist/chunks/index-DbaDUPup.esm.d.ts +0 -28
  325. package/dist/chunks/index-DjrWwYdg.esm.js.map +0 -1
  326. package/dist/chunks/index-DmUEFwoM.esm.js.map +0 -1
  327. package/dist/chunks/index-DvhxjeiK.esm.js.map +0 -1
  328. package/dist/chunks/index-IKiJwo5v.esm.js +0 -2
  329. package/dist/chunks/index-NHPT4c0V.esm.js +0 -2
  330. package/dist/chunks/index-NHPT4c0V.esm.js.map +0 -1
  331. package/dist/chunks/index-tbwbkOdj.esm.js.map +0 -1
  332. package/dist/chunks/lit-WqMxC_PA.esm.js +0 -34
  333. package/dist/chunks/lit-WqMxC_PA.esm.js.map +0 -1
  334. package/dist/chunks/loading-template-DG4lkIIc.esm.js +0 -2
  335. package/dist/chunks/localize-Btu9xYcE.esm.js.map +0 -1
  336. package/dist/chunks/localize-C25pEGnx.esm.js.map +0 -1
  337. package/dist/chunks/lodash-D3TLHRR_.esm.js +0 -2
  338. package/dist/chunks/lodash-D3TLHRR_.esm.js.map +0 -1
  339. package/dist/chunks/order-page-C3b348k0.esm.js.map +0 -1
  340. package/dist/chunks/order-page-CuL1s6HR.esm.js.map +0 -1
  341. package/dist/chunks/progress-bar-CveZ8E6Q.esm.d.ts +0 -15
  342. package/dist/chunks/promo-pill-label-BXRqZHET.esm.d.ts +0 -19
  343. package/dist/chunks/routes-BHChxaFQ.esm.js +0 -2
  344. package/dist/chunks/routes-BHChxaFQ.esm.js.map +0 -1
  345. package/dist/chunks/routes-BoeGe1RQ.esm.d.ts +0 -638
  346. package/dist/chunks/routes-E1gMJl6d.esm.js +0 -2
  347. package/dist/chunks/routes-E1gMJl6d.esm.js.map +0 -1
  348. package/dist/chunks/share-button-BJ8T-uYK.esm.js.map +0 -1
  349. package/dist/chunks/share-button-CDVVaxEc.esm.d.ts +0 -27
  350. package/dist/chunks/share-button-VEIdBFu3.esm.js.map +0 -1
  351. package/dist/chunks/update-cart-C6BdmBt1.esm.js.map +0 -1
  352. package/dist/chunks/update-cart-HlVGSYR7.esm.js.map +0 -1
  353. package/dist/chunks/vendor-KKSARHWL.esm.js +0 -1284
  354. package/dist/chunks/vendor-KKSARHWL.esm.js.map +0 -1
@@ -0,0 +1,1286 @@
1
+ import{i as Y,n as h,a as uo,r as Rt,b as et,l as ho,e as lt,c as H,d as Ft,o as E,u as Bt}from"./lit-JRlupCB5.esm.js";var te="";function ee(t){te=t}function po(t=""){if(!te){const e=[...document.getElementsByTagName("script")],o=e.find(r=>r.hasAttribute("data-shoelace"));if(o)ee(o.getAttribute("data-shoelace"));else{const r=e.find(n=>/shoelace(\.min)?\.js($|\?)/.test(n.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(n.src));let i="";r&&(i=r.getAttribute("src")),ee(i.split("/").slice(0,-1).join("/"))}}return te.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}var Ce=Object.defineProperty,fo=Object.defineProperties,bo=Object.getOwnPropertyDescriptor,go=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,mo=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable,oe=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),re=t=>{throw TypeError(t)},Se=(t,e,o)=>e in t?Ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ct=(t,e)=>{for(var o in e||(e={}))mo.call(e,o)&&Se(t,o,e[o]);if(Ee)for(var o of Ee(e))vo.call(e,o)&&Se(t,o,e[o]);return t},Tt=(t,e)=>fo(t,go(e)),l=(t,e,o,r)=>{for(var i=r>1?void 0:r?bo(e,o):e,n=t.length-1,s;n>=0;n--)(s=t[n])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&Ce(e,o,i),i},Ae=(t,e,o)=>e.has(t)||re("Cannot "+o),yo=(t,e,o)=>(Ae(t,e,"read from private field"),e.get(t)),wo=(t,e,o)=>e.has(t)?re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),xo=(t,e,o,r)=>(Ae(t,e,"write to private field"),e.set(t,o),o),_o=function(t,e){this[0]=t,this[1]=e},ko=t=>{var e=t[oe("asyncIterator")],o=!1,r,i={};return e==null?(e=t[oe("iterator")](),r=n=>i[n]=s=>e[n](s)):(e=e.call(t),r=n=>i[n]=s=>{if(o){if(o=!1,n==="throw")throw s;return s}return o=!0,{done:!1,value:new _o(new Promise(a=>{var c=e[n](s);c instanceof Object||re("Object expected"),a(c)}),1)}}),i[oe("iterator")]=()=>i,r("next"),"throw"in e?r("throw"):i.throw=n=>{throw n},"return"in e&&r("return"),i},Co={name:"default",resolver:t=>po(`assets/icons/${t}.svg`)},Eo=Co,Le={caret:`
2
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
3
+ <polyline points="6 9 12 15 18 9"></polyline>
4
+ </svg>
5
+ `,check:`
6
+ <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
7
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
8
+ <g stroke="currentColor">
9
+ <g transform="translate(3.428571, 3.428571)">
10
+ <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
11
+ <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </svg>
16
+ `,"chevron-down":`
17
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
18
+ <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
19
+ </svg>
20
+ `,"chevron-left":`
21
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
22
+ <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
23
+ </svg>
24
+ `,"chevron-right":`
25
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
26
+ <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
27
+ </svg>
28
+ `,copy:`
29
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
30
+ <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
31
+ </svg>
32
+ `,eye:`
33
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
34
+ <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
35
+ <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
36
+ </svg>
37
+ `,"eye-slash":`
38
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
39
+ <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
40
+ <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
41
+ <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
42
+ </svg>
43
+ `,eyedropper:`
44
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
45
+ <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
46
+ </svg>
47
+ `,"grip-vertical":`
48
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
49
+ <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
50
+ </svg>
51
+ `,indeterminate:`
52
+ <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
53
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
54
+ <g stroke="currentColor" stroke-width="2">
55
+ <g transform="translate(2.285714, 6.857143)">
56
+ <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
57
+ </g>
58
+ </g>
59
+ </g>
60
+ </svg>
61
+ `,"person-fill":`
62
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
63
+ <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
64
+ </svg>
65
+ `,"play-fill":`
66
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
67
+ <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
68
+ </svg>
69
+ `,"pause-fill":`
70
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
71
+ <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
72
+ </svg>
73
+ `,radio:`
74
+ <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
75
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
76
+ <g fill="currentColor">
77
+ <circle cx="8" cy="8" r="3.42857143"></circle>
78
+ </g>
79
+ </g>
80
+ </svg>
81
+ `,"star-fill":`
82
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
83
+ <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
84
+ </svg>
85
+ `,"x-lg":`
86
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
87
+ <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
88
+ </svg>
89
+ `,"x-circle-fill":`
90
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
91
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
92
+ </svg>
93
+ `},So={name:"system",resolver:t=>t in Le?`data:image/svg+xml,${encodeURIComponent(Le[t])}`:""},Ao=So,Dt=[Eo,Ao],Mt=[];function Lo(t){Mt.push(t)}function zo(t){Mt=Mt.filter(e=>e!==t)}function ze(t){return Dt.find(e=>e.name===t)}function Oo(t,e){$o(t),Dt.push({name:t,resolver:e.resolver,mutator:e.mutator,spriteSheet:e.spriteSheet}),Mt.forEach(o=>{o.library===t&&o.setIcon()})}function $o(t){Dt=Dt.filter(e=>e.name!==t)}var Po=Y`
94
+ :host {
95
+ display: inline-block;
96
+ width: 1em;
97
+ height: 1em;
98
+ box-sizing: content-box !important;
99
+ }
100
+
101
+ svg {
102
+ display: block;
103
+ height: 100%;
104
+ width: 100%;
105
+ }
106
+ `;function dt(t,e){const o=ct({waitUntilFirstUpdate:!1},e);return(r,i)=>{const{update:n}=r,s=Array.isArray(t)?t:[t];r.update=function(a){s.forEach(c=>{const u=c;if(a.has(u)){const d=a.get(u),f=this[u];d!==f&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[i](d,f)}}),n.call(this,a)}}}var ot=Y`
107
+ :host {
108
+ box-sizing: border-box;
109
+ }
110
+
111
+ :host *,
112
+ :host *::before,
113
+ :host *::after {
114
+ box-sizing: inherit;
115
+ }
116
+
117
+ [hidden] {
118
+ display: none !important;
119
+ }
120
+ `,Vt,B=class extends uo{constructor(){super(),wo(this,Vt,!1),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach(([t,e])=>{this.constructor.define(t,e)})}emit(t,e){const o=new CustomEvent(t,ct({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}static define(t,e=this,o={}){const r=customElements.get(t);if(!r){try{customElements.define(t,e,o)}catch{customElements.define(t,class extends e{},o)}return}let i=" (unknown version)",n=i;"version"in e&&e.version&&(i=" v"+e.version),"version"in r&&r.version&&(n=" v"+r.version),!(i&&n&&i===n)&&console.warn(`Attempted to register <${t}>${i}, but <${t}>${n} has already been registered.`)}attributeChangedCallback(t,e,o){yo(this,Vt)||(this.constructor.elementProperties.forEach((r,i)=>{r.reflect&&this[i]!=null&&this.initialReflectedProperties.set(i,this[i])}),xo(this,Vt,!0)),super.attributeChangedCallback(t,e,o)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach((e,o)=>{t.has(o)&&this[o]==null&&(this[o]=e)})}};Vt=new WeakMap,B.version="2.20.1",B.dependencies={},l([h()],B.prototype,"dir",2),l([h()],B.prototype,"lang",2);var Ct=Symbol(),Nt=Symbol(),ie,ne=new Map,M=class extends B{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let r;if(e?.spriteSheet)return this.svg=et`<svg part="svg">
121
+ <use part="use" href="${t}"></use>
122
+ </svg>`,this.svg;try{if(r=await fetch(t,{mode:"cors"}),!r.ok)return r.status===410?Ct:Nt}catch{return Nt}try{const i=document.createElement("div");i.innerHTML=await r.text();const n=i.firstElementChild;if(((o=n?.tagName)==null?void 0:o.toLowerCase())!=="svg")return Ct;ie||(ie=new DOMParser);const a=ie.parseFromString(n.outerHTML,"text/html").body.querySelector("svg");return a?(a.part.add("svg"),document.adoptNode(a)):Ct}catch{return Ct}}connectedCallback(){super.connectedCallback(),Lo(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),zo(this)}getIconSource(){const t=ze(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:o}=this.getIconSource(),r=o?ze(this.library):void 0;if(!e){this.svg=null;return}let i=ne.get(e);if(i||(i=this.resolveIcon(e,r),ne.set(e,i)),!this.initialRender)return;const n=await i;if(n===Nt&&ne.delete(e),e===this.getIconSource().url){if(ho(n)){if(this.svg=n,r){await this.updateComplete;const s=this.shadowRoot.querySelector("[part='svg']");typeof r.mutator=="function"&&s&&r.mutator(s)}return}switch(n){case Nt:case Ct:this.svg=null,this.emit("sl-error");break;default:this.svg=n.cloneNode(!0),(t=r?.mutator)==null||t.call(r,this.svg),this.emit("sl-load")}}}render(){return this.svg}};M.styles=[ot,Po],l([Rt()],M.prototype,"svg",2),l([h({reflect:!0})],M.prototype,"name",2),l([h()],M.prototype,"src",2),l([h()],M.prototype,"label",2),l([h({reflect:!0})],M.prototype,"library",2),l([dt("label")],M.prototype,"handleLabelChange",1),l([dt(["name","src","library"])],M.prototype,"setIcon",1),M.define("sl-icon");var Ro=Y`
123
+ :host {
124
+ display: inline-flex;
125
+ }
126
+
127
+ .badge {
128
+ display: inline-flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ font-size: max(12px, 0.75em);
132
+ font-weight: var(--sl-font-weight-semibold);
133
+ letter-spacing: var(--sl-letter-spacing-normal);
134
+ line-height: 1;
135
+ border-radius: var(--sl-border-radius-small);
136
+ border: solid 1px var(--sl-color-neutral-0);
137
+ white-space: nowrap;
138
+ padding: 0.35em 0.6em;
139
+ user-select: none;
140
+ -webkit-user-select: none;
141
+ cursor: inherit;
142
+ }
143
+
144
+ /* Variant modifiers */
145
+ .badge--primary {
146
+ background-color: var(--sl-color-primary-600);
147
+ color: var(--sl-color-neutral-0);
148
+ }
149
+
150
+ .badge--success {
151
+ background-color: var(--sl-color-success-600);
152
+ color: var(--sl-color-neutral-0);
153
+ }
154
+
155
+ .badge--neutral {
156
+ background-color: var(--sl-color-neutral-600);
157
+ color: var(--sl-color-neutral-0);
158
+ }
159
+
160
+ .badge--warning {
161
+ background-color: var(--sl-color-warning-600);
162
+ color: var(--sl-color-neutral-0);
163
+ }
164
+
165
+ .badge--danger {
166
+ background-color: var(--sl-color-danger-600);
167
+ color: var(--sl-color-neutral-0);
168
+ }
169
+
170
+ /* Pill modifier */
171
+ .badge--pill {
172
+ border-radius: var(--sl-border-radius-pill);
173
+ }
174
+
175
+ /* Pulse modifier */
176
+ .badge--pulse {
177
+ animation: pulse 1.5s infinite;
178
+ }
179
+
180
+ .badge--pulse.badge--primary {
181
+ --pulse-color: var(--sl-color-primary-600);
182
+ }
183
+
184
+ .badge--pulse.badge--success {
185
+ --pulse-color: var(--sl-color-success-600);
186
+ }
187
+
188
+ .badge--pulse.badge--neutral {
189
+ --pulse-color: var(--sl-color-neutral-600);
190
+ }
191
+
192
+ .badge--pulse.badge--warning {
193
+ --pulse-color: var(--sl-color-warning-600);
194
+ }
195
+
196
+ .badge--pulse.badge--danger {
197
+ --pulse-color: var(--sl-color-danger-600);
198
+ }
199
+
200
+ @keyframes pulse {
201
+ 0% {
202
+ box-shadow: 0 0 0 0 var(--pulse-color);
203
+ }
204
+ 70% {
205
+ box-shadow: 0 0 0 0.5rem transparent;
206
+ }
207
+ 100% {
208
+ box-shadow: 0 0 0 0 transparent;
209
+ }
210
+ }
211
+ `,Et=class extends B{constructor(){super(...arguments),this.variant="primary",this.pill=!1,this.pulse=!1}render(){return et`
212
+ <span
213
+ part="base"
214
+ class=${lt({badge:!0,"badge--primary":this.variant==="primary","badge--success":this.variant==="success","badge--neutral":this.variant==="neutral","badge--warning":this.variant==="warning","badge--danger":this.variant==="danger","badge--pill":this.pill,"badge--pulse":this.pulse})}
215
+ role="status"
216
+ >
217
+ <slot></slot>
218
+ </span>
219
+ `}};Et.styles=[ot,Ro],l([h({reflect:!0})],Et.prototype,"variant",2),l([h({type:Boolean,reflect:!0})],Et.prototype,"pill",2),l([h({type:Boolean,reflect:!0})],Et.prototype,"pulse",2),Et.define("sl-badge");var Fo=Y`
220
+ :host {
221
+ --max-width: 20rem;
222
+ --hide-delay: 0ms;
223
+ --show-delay: 150ms;
224
+
225
+ display: contents;
226
+ }
227
+
228
+ .tooltip {
229
+ --arrow-size: var(--sl-tooltip-arrow-size);
230
+ --arrow-color: var(--sl-tooltip-background-color);
231
+ }
232
+
233
+ .tooltip::part(popup) {
234
+ z-index: var(--sl-z-index-tooltip);
235
+ }
236
+
237
+ .tooltip[placement^='top']::part(popup) {
238
+ transform-origin: bottom;
239
+ }
240
+
241
+ .tooltip[placement^='bottom']::part(popup) {
242
+ transform-origin: top;
243
+ }
244
+
245
+ .tooltip[placement^='left']::part(popup) {
246
+ transform-origin: right;
247
+ }
248
+
249
+ .tooltip[placement^='right']::part(popup) {
250
+ transform-origin: left;
251
+ }
252
+
253
+ .tooltip__body {
254
+ display: block;
255
+ width: max-content;
256
+ max-width: var(--max-width);
257
+ border-radius: var(--sl-tooltip-border-radius);
258
+ background-color: var(--sl-tooltip-background-color);
259
+ font-family: var(--sl-tooltip-font-family);
260
+ font-size: var(--sl-tooltip-font-size);
261
+ font-weight: var(--sl-tooltip-font-weight);
262
+ line-height: var(--sl-tooltip-line-height);
263
+ text-align: start;
264
+ white-space: normal;
265
+ color: var(--sl-tooltip-color);
266
+ padding: var(--sl-tooltip-padding);
267
+ pointer-events: none;
268
+ user-select: none;
269
+ -webkit-user-select: none;
270
+ }
271
+ `,Bo=Y`
272
+ :host {
273
+ --arrow-color: var(--sl-color-neutral-1000);
274
+ --arrow-size: 6px;
275
+
276
+ /*
277
+ * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
278
+ * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
279
+ */
280
+ --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
281
+ --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));
282
+
283
+ display: contents;
284
+ }
285
+
286
+ .popup {
287
+ position: absolute;
288
+ isolation: isolate;
289
+ max-width: var(--auto-size-available-width, none);
290
+ max-height: var(--auto-size-available-height, none);
291
+ }
292
+
293
+ .popup--fixed {
294
+ position: fixed;
295
+ }
296
+
297
+ .popup:not(.popup--active) {
298
+ display: none;
299
+ }
300
+
301
+ .popup__arrow {
302
+ position: absolute;
303
+ width: calc(var(--arrow-size-diagonal) * 2);
304
+ height: calc(var(--arrow-size-diagonal) * 2);
305
+ rotate: 45deg;
306
+ background: var(--arrow-color);
307
+ z-index: -1;
308
+ }
309
+
310
+ /* Hover bridge */
311
+ .popup-hover-bridge:not(.popup-hover-bridge--visible) {
312
+ display: none;
313
+ }
314
+
315
+ .popup-hover-bridge {
316
+ position: fixed;
317
+ z-index: calc(var(--sl-z-index-dropdown) - 1);
318
+ top: 0;
319
+ right: 0;
320
+ bottom: 0;
321
+ left: 0;
322
+ clip-path: polygon(
323
+ var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
324
+ var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
325
+ var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),
326
+ var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
327
+ );
328
+ }
329
+ `;const se=new Set,mt=new Map;let ut,ae="ltr",le="en";const Oe=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(Oe){const t=new MutationObserver(Pe);ae=document.documentElement.dir||"ltr",le=document.documentElement.lang||navigator.language,t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function $e(...t){t.map(e=>{const o=e.$code.toLowerCase();mt.has(o)?mt.set(o,Object.assign(Object.assign({},mt.get(o)),e)):mt.set(o,e),ut||(ut=e)}),Pe()}function Pe(){Oe&&(ae=document.documentElement.dir||"ltr",le=document.documentElement.lang||navigator.language),[...se.keys()].map(t=>{typeof t.requestUpdate=="function"&&t.requestUpdate()})}let To=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){se.add(this.host)}hostDisconnected(){se.delete(this.host)}dir(){return`${this.host.dir||ae}`.toLowerCase()}lang(){return`${this.host.lang||le}`.toLowerCase()}getTranslationData(e){var o,r;let i;try{i=new Intl.Locale(e.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}const n=i.language.toLowerCase(),s=(r=(o=i.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",a=mt.get(`${n}-${s}`),c=mt.get(n);return{locale:i,language:n,region:s,primary:a,secondary:c}}exists(e,o){var r;const{primary:i,secondary:n}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(i&&i[e]||n&&n[e]||o.includeFallback&&ut&&ut[e])}term(e,...o){const{primary:r,secondary:i}=this.getTranslationData(this.lang());let n;if(r&&r[e])n=r[e];else if(i&&i[e])n=i[e];else if(ut&&ut[e])n=ut[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof n=="function"?n(...o):n}date(e,o){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),o).format(e)}number(e,o){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),o).format(e)}relativeTime(e,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(e,o)}};var Re={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>t===0?"No options selected":t===1?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};$e(Re);var Do=Re,St=class extends To{};$e(Do);const rt=Math.min,P=Math.max,It=Math.round,Wt=Math.floor,U=t=>({x:t,y:t}),Mo={left:"right",right:"left",bottom:"top",top:"bottom"};function ce(t,e,o){return P(t,rt(e,o))}function vt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function yt(t){return t.split("-")[1]}function Fe(t){return t==="x"?"y":"x"}function de(t){return t==="y"?"height":"width"}function G(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function ue(t){return Fe(G(t))}function Vo(t,e,o){o===void 0&&(o=!1);const r=yt(t),i=ue(t),n=de(i);let s=i==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Ht(s)),[s,Ht(s)]}function No(t){const e=Ht(t);return[he(t),e,he(e)]}function he(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Be=["left","right"],Te=["right","left"],Io=["top","bottom"],Wo=["bottom","top"];function Ho(t,e,o){switch(t){case"top":case"bottom":return o?e?Te:Be:e?Be:Te;case"left":case"right":return e?Io:Wo;default:return[]}}function Uo(t,e,o,r){const i=yt(t);let n=Ho(it(t),o==="start",r);return i&&(n=n.map(s=>s+"-"+i),e&&(n=n.concat(n.map(he)))),n}function Ht(t){const e=it(t);return Mo[e]+t.slice(e.length)}function qo(t){return{top:0,right:0,bottom:0,left:0,...t}}function De(t){return typeof t!="number"?qo(t):{top:t,right:t,bottom:t,left:t}}function Ut(t){const{x:e,y:o,width:r,height:i}=t;return{width:r,height:i,top:o,left:e,right:e+r,bottom:o+i,x:e,y:o}}function Me(t,e,o){let{reference:r,floating:i}=t;const n=G(e),s=ue(e),a=de(s),c=it(e),u=n==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,g=r[a]/2-i[a]/2;let p;switch(c){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(yt(e)){case"start":p[s]-=g*(o&&u?-1:1);break;case"end":p[s]+=g*(o&&u?-1:1);break}return p}async function jo(t,e){var o;e===void 0&&(e={});const{x:r,y:i,platform:n,rects:s,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:p=0}=vt(e,t),b=De(p),y=a[g?f==="floating"?"reference":"floating":f],v=Ut(await n.getClippingRect({element:(o=await(n.isElement==null?void 0:n.isElement(y)))==null||o?y:y.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),w=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,_=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),C=await(n.isElement==null?void 0:n.isElement(_))?await(n.getScale==null?void 0:n.getScale(_))||{x:1,y:1}:{x:1,y:1},L=Ut(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:_,strategy:c}):w);return{top:(v.top-L.top+b.top)/C.y,bottom:(L.bottom-v.bottom+b.bottom)/C.y,left:(v.left-L.left+b.left)/C.x,right:(L.right-v.right+b.right)/C.x}}const Xo=50,Ko=async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:jo},c=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=Me(u,r,c),g=r,p=0;const b={};for(let m=0;m<n.length;m++){const y=n[m];if(!y)continue;const{name:v,fn:w}=y,{x:_,y:C,data:L,reset:S}=await w({x:d,y:f,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:u,platform:a,elements:{reference:t,floating:e}});d=_??d,f=C??f,b[v]={...b[v],...L},S&&p<Xo&&(p++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):S.rects),{x:d,y:f}=Me(u,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:i,middlewareData:b}},Yo=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:r,placement:i,rects:n,platform:s,elements:a,middlewareData:c}=e,{element:u,padding:d=0}=vt(t,e)||{};if(u==null)return{};const f=De(d),g={x:o,y:r},p=ue(i),b=de(p),m=await s.getDimensions(u),y=p==="y",v=y?"top":"left",w=y?"bottom":"right",_=y?"clientHeight":"clientWidth",C=n.reference[b]+n.reference[p]-g[p]-n.floating[b],L=g[p]-n.reference[p],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let z=S?S[_]:0;(!z||!await(s.isElement==null?void 0:s.isElement(S)))&&(z=a.floating[_]||n.floating[b]);const X=C/2-L/2,I=z/2-m[b]/2-1,F=rt(f[v],I),J=rt(f[w],I),W=F,Q=z-m[b]-J,O=z/2-m[b]/2+X,at=ce(W,O,Q),K=!c.arrow&&yt(i)!=null&&O!==at&&n.reference[b]/2-(O<W?F:J)-m[b]/2<0,T=K?O<W?O-W:O-Q:0;return{[p]:g[p]+T,data:{[p]:at,centerOffset:O-at-T,...K&&{alignmentOffset:T}},reset:K}}}),Go=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,r;const{placement:i,middlewareData:n,rects:s,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...y}=vt(t,e);if((o=n.arrow)!=null&&o.alignmentOffset)return{};const v=it(i),w=G(a),_=it(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),L=g||(_||!m?[Ht(a)]:No(a)),S=b!=="none";!g&&S&&L.push(...Uo(a,m,b,C));const z=[a,...L],X=await c.detectOverflow(e,y),I=[];let F=((r=n.flip)==null?void 0:r.overflows)||[];if(d&&I.push(X[v]),f){const O=Vo(i,s,C);I.push(X[O[0]],X[O[1]])}if(F=[...F,{placement:i,overflows:I}],!I.every(O=>O<=0)){var J,W;const O=(((J=n.flip)==null?void 0:J.index)||0)+1,at=z[O];if(at&&(!(f==="alignment"?w!==G(at):!1)||F.every(D=>G(D.placement)===w?D.overflows[0]>0:!0)))return{data:{index:O,overflows:F},reset:{placement:at}};let K=(W=F.filter(T=>T.overflows[0]<=0).sort((T,D)=>T.overflows[1]-D.overflows[1])[0])==null?void 0:W.placement;if(!K)switch(p){case"bestFit":{var Q;const T=(Q=F.filter(D=>{if(S){const tt=G(D.placement);return tt===w||tt==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(tt=>tt>0).reduce((tt,co)=>tt+co,0)]).sort((D,tt)=>D[1]-tt[1])[0])==null?void 0:Q[0];T&&(K=T);break}case"initialPlacement":K=a;break}if(i!==K)return{reset:{placement:K}}}return{}}}},Zo=new Set(["left","top"]);async function Jo(t,e){const{placement:o,platform:r,elements:i}=t,n=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=it(o),a=yt(o),c=G(o)==="y",u=Zo.has(s)?-1:1,d=n&&c?-1:1,f=vt(e,t);let{mainAxis:g,crossAxis:p,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(p=a==="end"?b*-1:b),c?{x:p*d,y:g*u}:{x:g*u,y:p*d}}const Qo=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var o,r;const{x:i,y:n,placement:s,middlewareData:a}=e,c=await Jo(e,t);return s===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:n+c.y,data:{...c,placement:s}}}}},tr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:i,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:w,y:_}=v;return{x:w,y:_}}},...u}=vt(t,e),d={x:o,y:r},f=await n.detectOverflow(e,u),g=G(it(i)),p=Fe(g);let b=d[p],m=d[g];if(s){const v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",_=b+f[v],C=b-f[w];b=ce(_,b,C)}if(a){const v=g==="y"?"top":"left",w=g==="y"?"bottom":"right",_=m+f[v],C=m-f[w];m=ce(_,m,C)}const y=c.fn({...e,[p]:b,[g]:m});return{...y,data:{x:y.x-o,y:y.y-r,enabled:{[p]:s,[g]:a}}}}}},er=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var o,r;const{placement:i,rects:n,platform:s,elements:a}=e,{apply:c=()=>{},...u}=vt(t,e),d=await s.detectOverflow(e,u),f=it(i),g=yt(i),p=G(i)==="y",{width:b,height:m}=n.floating;let y,v;f==="top"||f==="bottom"?(y=f,v=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,y=g==="end"?"top":"bottom");const w=m-d.top-d.bottom,_=b-d.left-d.right,C=rt(m-d[y],w),L=rt(b-d[v],_),S=!e.middlewareData.shift;let z=C,X=L;if((o=e.middlewareData.shift)!=null&&o.enabled.x&&(X=_),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(z=w),S&&!g){const F=P(d.left,0),J=P(d.right,0),W=P(d.top,0),Q=P(d.bottom,0);p?X=b-2*(F!==0||J!==0?F+J:P(d.left,d.right)):z=m-2*(W!==0||Q!==0?W+Q:P(d.top,d.bottom))}await c({...e,availableWidth:X,availableHeight:z});const I=await s.getDimensions(a.floating);return b!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function qt(){return typeof window<"u"}function wt(t){return Ve(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Ve(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ve(t){return qt()?t instanceof Node||t instanceof R(t).Node:!1}function V(t){return qt()?t instanceof Element||t instanceof R(t).Element:!1}function Z(t){return qt()?t instanceof HTMLElement||t instanceof R(t).HTMLElement:!1}function Ne(t){return!qt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}function At(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=N(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&i!=="inline"&&i!=="contents"}function or(t){return/^(table|td|th)$/.test(wt(t))}function jt(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const rr=/transform|translate|scale|rotate|perspective|filter/,ir=/paint|layout|strict|content/,ht=t=>!!t&&t!=="none";let pe;function Xt(t){const e=V(t)?N(t):t;return ht(e.transform)||ht(e.translate)||ht(e.scale)||ht(e.rotate)||ht(e.perspective)||!fe()&&(ht(e.backdropFilter)||ht(e.filter))||rr.test(e.willChange||"")||ir.test(e.contain||"")}function nr(t){let e=nt(t);for(;Z(e)&&!xt(e);){if(Xt(e))return e;if(jt(e))return null;e=nt(e)}return null}function fe(){return pe==null&&(pe=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),pe}function xt(t){return/^(html|body|#document)$/.test(wt(t))}function N(t){return R(t).getComputedStyle(t)}function Kt(t){return V(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function nt(t){if(wt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ne(t)&&t.host||q(t);return Ne(e)?e.host:e}function Ie(t){const e=nt(t);return xt(e)?t.ownerDocument?t.ownerDocument.body:t.body:Z(e)&&At(e)?e:Ie(e)}function Lt(t,e,o){var r;e===void 0&&(e=[]),o===void 0&&(o=!0);const i=Ie(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),s=R(i);if(n){const a=be(s);return e.concat(s,s.visualViewport||[],At(i)?i:[],a&&o?Lt(a):[])}else return e.concat(i,Lt(i,[],o))}function be(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function We(t){const e=N(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Z(t),n=i?t.offsetWidth:o,s=i?t.offsetHeight:r,a=It(o)!==n||It(r)!==s;return a&&(o=n,r=s),{width:o,height:r,$:a}}function ge(t){return V(t)?t:t.contextElement}function _t(t){const e=ge(t);if(!Z(e))return U(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=We(e);let s=(n?It(o.width):o.width)/r,a=(n?It(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const sr=U(0);function He(t){const e=R(t);return!fe()||!e.visualViewport?sr:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ar(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==R(t)?!1:e}function pt(t,e,o,r){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),n=ge(t);let s=U(1);e&&(r?V(r)&&(s=_t(r)):s=_t(t));const a=ar(n,o,r)?He(n):U(0);let c=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(n){const g=R(n),p=r&&V(r)?R(r):r;let b=g,m=be(b);for(;m&&r&&p!==b;){const y=_t(m),v=m.getBoundingClientRect(),w=N(m),_=v.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,C=v.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,f*=y.y,c+=_,u+=C,b=R(m),m=be(b)}}return Ut({width:d,height:f,x:c,y:u})}function Yt(t,e){const o=Kt(t).scrollLeft;return e?e.left+o:pt(q(t)).left+o}function Ue(t,e){const o=t.getBoundingClientRect(),r=o.left+e.scrollLeft-Yt(t,o),i=o.top+e.scrollTop;return{x:r,y:i}}function lr(t){let{elements:e,rect:o,offsetParent:r,strategy:i}=t;const n=i==="fixed",s=q(r),a=e?jt(e.floating):!1;if(r===s||a&&n)return o;let c={scrollLeft:0,scrollTop:0},u=U(1);const d=U(0),f=Z(r);if((f||!f&&!n)&&((wt(r)!=="body"||At(s))&&(c=Kt(r)),f)){const p=pt(r);u=_t(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const g=s&&!f&&!n?Ue(s,c):U(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:o.y*u.y-c.scrollTop*u.y+d.y+g.y}}function cr(t){return Array.from(t.getClientRects())}function dr(t){const e=q(t),o=Kt(t),r=t.ownerDocument.body,i=P(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=P(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+Yt(t);const a=-o.scrollTop;return N(r).direction==="rtl"&&(s+=P(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}const qe=25;function ur(t,e){const o=R(t),r=q(t),i=o.visualViewport;let n=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){n=i.width,s=i.height;const d=fe();(!d||d&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}const u=Yt(r);if(u<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-p);b<=qe&&(n-=b)}else u<=qe&&(n+=u);return{width:n,height:s,x:a,y:c}}function hr(t,e){const o=pt(t,!0,e==="fixed"),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Z(t)?_t(t):U(1),s=t.clientWidth*n.x,a=t.clientHeight*n.y,c=i*n.x,u=r*n.y;return{width:s,height:a,x:c,y:u}}function je(t,e,o){let r;if(e==="viewport")r=ur(t,o);else if(e==="document")r=dr(q(t));else if(V(e))r=hr(e,o);else{const i=He(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ut(r)}function Xe(t,e){const o=nt(t);return o===e||!V(o)||xt(o)?!1:N(o).position==="fixed"||Xe(o,e)}function pr(t,e){const o=e.get(t);if(o)return o;let r=Lt(t,[],!1).filter(a=>V(a)&&wt(a)!=="body"),i=null;const n=N(t).position==="fixed";let s=n?nt(t):t;for(;V(s)&&!xt(s);){const a=N(s),c=Xt(s);!c&&a.position==="fixed"&&(i=null),(n?!c&&!i:!c&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||At(s)&&!c&&Xe(t,s))?r=r.filter(d=>d!==s):i=a,s=nt(s)}return e.set(t,r),r}function fr(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const s=[...o==="clippingAncestors"?jt(e)?[]:pr(e,this._c):[].concat(o),r],a=je(e,s[0],i);let c=a.top,u=a.right,d=a.bottom,f=a.left;for(let g=1;g<s.length;g++){const p=je(e,s[g],i);c=P(p.top,c),u=rt(p.right,u),d=rt(p.bottom,d),f=P(p.left,f)}return{width:u-f,height:d-c,x:f,y:c}}function br(t){const{width:e,height:o}=We(t);return{width:e,height:o}}function gr(t,e,o){const r=Z(e),i=q(e),n=o==="fixed",s=pt(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const c=U(0);function u(){c.x=Yt(i)}if(r||!r&&!n)if((wt(e)!=="body"||At(i))&&(a=Kt(e)),r){const p=pt(e,!0,n,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else i&&u();n&&!r&&i&&u();const d=i&&!r&&!n?Ue(i,a):U(0),f=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function me(t){return N(t).position==="static"}function Ke(t,e){if(!Z(t)||N(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return q(t)===o&&(o=o.ownerDocument.body),o}function Ye(t,e){const o=R(t);if(jt(t))return o;if(!Z(t)){let i=nt(t);for(;i&&!xt(i);){if(V(i)&&!me(i))return i;i=nt(i)}return o}let r=Ke(t,e);for(;r&&or(r)&&me(r);)r=Ke(r,e);return r&&xt(r)&&me(r)&&!Xt(r)?o:r||nr(t)||o}const mr=async function(t){const e=this.getOffsetParent||Ye,o=this.getDimensions,r=await o(t.floating);return{reference:gr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vr(t){return N(t).direction==="rtl"}const Gt={convertOffsetParentRelativeRectToViewportRelativeRect:lr,getDocumentElement:q,getClippingRect:fr,getOffsetParent:Ye,getElementRects:mr,getClientRects:cr,getDimensions:br,getScale:_t,isElement:V,isRTL:vr};function Ge(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function yr(t,e){let o=null,r;const i=q(t);function n(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),n();const u=t.getBoundingClientRect(),{left:d,top:f,width:g,height:p}=u;if(a||e(),!g||!p)return;const b=Wt(f),m=Wt(i.clientWidth-(d+g)),y=Wt(i.clientHeight-(f+p)),v=Wt(d),_={rootMargin:-b+"px "+-m+"px "+-y+"px "+-v+"px",threshold:P(0,rt(1,c))||1};let C=!0;function L(S){const z=S[0].intersectionRatio;if(z!==c){if(!C)return s();z?s(!1,z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}z===1&&!Ge(u,t.getBoundingClientRect())&&s(),C=!1}try{o=new IntersectionObserver(L,{..._,root:i.ownerDocument})}catch{o=new IntersectionObserver(L,_)}o.observe(t)}return s(!0),n}function wr(t,e,o,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=ge(t),d=i||n?[...u?Lt(u):[],...e?Lt(e):[]]:[];d.forEach(v=>{i&&v.addEventListener("scroll",o,{passive:!0}),n&&v.addEventListener("resize",o)});const f=u&&a?yr(u,o):null;let g=-1,p=null;s&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===u&&p&&e&&(p.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var _;(_=p)==null||_.observe(e)})),o()}),u&&!c&&p.observe(u),e&&p.observe(e));let b,m=c?pt(t):null;c&&y();function y(){const v=pt(t);m&&!Ge(m,v)&&o(),m=v,b=requestAnimationFrame(y)}return o(),()=>{var v;d.forEach(w=>{i&&w.removeEventListener("scroll",o),n&&w.removeEventListener("resize",o)}),f?.(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(b)}}const xr=Qo,_r=tr,kr=Go,Ze=er,Cr=Yo,Er=(t,e,o)=>{const r=new Map,i={platform:Gt,...o},n={...i.platform,_c:r};return Ko(t,e,{...i,platform:n})};function Sr(t){return Ar(t)}function ve(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ar(t){for(let e=t;e;e=ve(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ve(t);e;e=ve(e)){if(!(e instanceof Element))continue;const o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||Xt(o)||e.tagName==="BODY"))return e}return null}function Lr(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t&&("contextElement"in t?t.contextElement instanceof Element:!0)}var k=class extends B{constructor(){super(...arguments),this.localize=new St(this),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect(),o=this.placement.includes("top")||this.placement.includes("bottom");let r=0,i=0,n=0,s=0,a=0,c=0,u=0,d=0;o?t.top<e.top?(r=t.left,i=t.bottom,n=t.right,s=t.bottom,a=e.left,c=e.top,u=e.right,d=e.top):(r=e.left,i=e.bottom,n=e.right,s=e.bottom,a=t.left,c=t.top,u=t.right,d=t.top):t.left<e.left?(r=t.right,i=t.top,n=e.left,s=e.top,a=t.right,c=t.bottom,u=e.left,d=e.bottom):(r=e.right,i=e.top,n=t.left,s=t.top,a=e.right,c=e.bottom,u=t.left,d=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${r}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${n}px`),this.style.setProperty("--hover-bridge-top-right-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${a}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${c}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${u}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${d}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||Lr(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.active&&this.start()}start(){!this.anchorEl||!this.active||(this.cleanup=wr(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[xr({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Ze({apply:({rects:o})=>{const r=this.sync==="width"||this.sync==="both",i=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${o.reference.width}px`:"",this.popup.style.height=i?`${o.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(kr({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(_r({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Ze({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:o,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${o}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Cr({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?o=>Gt.getOffsetParent(o,Sr):Gt.getOffsetParent;Er(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Tt(ct({},Gt),{getOffsetParent:e})}).then(({x:o,y:r,middlewareData:i,placement:n})=>{const s=this.localize.dir()==="rtl",a={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${o}px`,top:`${r}px`}),this.arrow){const c=i.arrow.x,u=i.arrow.y;let d="",f="",g="",p="";if(this.arrowPlacement==="start"){const b=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";d=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",f=s?b:"",p=s?"":b}else if(this.arrowPlacement==="end"){const b=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";f=s?"":b,p=s?b:"",g=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(p=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",d=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(p=typeof c=="number"?`${c}px`:"",d=typeof u=="number"?`${u}px`:"");Object.assign(this.arrowEl.style,{top:d,right:f,bottom:g,left:p,[a]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.emit("sl-reposition")}render(){return et`
330
+ <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
331
+
332
+ <span
333
+ part="hover-bridge"
334
+ class=${lt({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
335
+ ></span>
336
+
337
+ <div
338
+ part="popup"
339
+ class=${lt({popup:!0,"popup--active":this.active,"popup--fixed":this.strategy==="fixed","popup--has-arrow":this.arrow})}
340
+ >
341
+ <slot></slot>
342
+ ${this.arrow?et`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
343
+ </div>
344
+ `}};k.styles=[ot,Bo],l([H(".popup")],k.prototype,"popup",2),l([H(".popup__arrow")],k.prototype,"arrowEl",2),l([h()],k.prototype,"anchor",2),l([h({type:Boolean,reflect:!0})],k.prototype,"active",2),l([h({reflect:!0})],k.prototype,"placement",2),l([h({reflect:!0})],k.prototype,"strategy",2),l([h({type:Number})],k.prototype,"distance",2),l([h({type:Number})],k.prototype,"skidding",2),l([h({type:Boolean})],k.prototype,"arrow",2),l([h({attribute:"arrow-placement"})],k.prototype,"arrowPlacement",2),l([h({attribute:"arrow-padding",type:Number})],k.prototype,"arrowPadding",2),l([h({type:Boolean})],k.prototype,"flip",2),l([h({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],k.prototype,"flipFallbackPlacements",2),l([h({attribute:"flip-fallback-strategy"})],k.prototype,"flipFallbackStrategy",2),l([h({type:Object})],k.prototype,"flipBoundary",2),l([h({attribute:"flip-padding",type:Number})],k.prototype,"flipPadding",2),l([h({type:Boolean})],k.prototype,"shift",2),l([h({type:Object})],k.prototype,"shiftBoundary",2),l([h({attribute:"shift-padding",type:Number})],k.prototype,"shiftPadding",2),l([h({attribute:"auto-size"})],k.prototype,"autoSize",2),l([h()],k.prototype,"sync",2),l([h({type:Object})],k.prototype,"autoSizeBoundary",2),l([h({attribute:"auto-size-padding",type:Number})],k.prototype,"autoSizePadding",2),l([h({attribute:"hover-bridge",type:Boolean})],k.prototype,"hoverBridge",2);var Je=new Map,zr=new WeakMap;function Or(t){return t??{keyframes:[],options:{duration:0}}}function Qe(t,e){return e.toLowerCase()==="rtl"?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function ft(t,e){Je.set(t,Or(e))}function bt(t,e,o){const r=zr.get(t);if(r?.[e])return Qe(r[e],o.dir);const i=Je.get(e);return i?Qe(i,o.dir):{keyframes:[],options:{duration:0}}}function Zt(t,e){return new Promise(o=>{function r(i){i.target===t&&(t.removeEventListener(e,r),o())}t.addEventListener(e,r)})}function gt(t,e,o){return new Promise(r=>{if(o?.duration===1/0)throw new Error("Promise-based animations must be finite.");const i=t.animate(e,Tt(ct({},o),{duration:$r()?0:o.duration}));i.addEventListener("cancel",r,{once:!0}),i.addEventListener("finish",r,{once:!0})})}function to(t){return t=t.toString().toLowerCase(),t.indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?parseFloat(t)*1e3:parseFloat(t)}function $r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function kt(t){return Promise.all(t.getAnimations().map(e=>new Promise(o=>{e.cancel(),requestAnimationFrame(o)})))}var A=class extends B{constructor(){super(),this.localize=new St(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=to(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=to(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,e;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await kt(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:o,options:r}=bt(this,"tooltip.show",{dir:this.localize.dir()});await gt(this.popup.popup,o,r),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await kt(this.body);const{keyframes:o,options:r}=bt(this,"tooltip.hide",{dir:this.localize.dir()});await gt(this.popup.popup,o,r),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Zt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Zt(this,"sl-after-hide")}render(){return et`
345
+ <sl-popup
346
+ part="base"
347
+ exportparts="
348
+ popup:base__popup,
349
+ arrow:base__arrow
350
+ "
351
+ class=${lt({tooltip:!0,"tooltip--open":this.open})}
352
+ placement=${this.placement}
353
+ distance=${this.distance}
354
+ skidding=${this.skidding}
355
+ strategy=${this.hoist?"fixed":"absolute"}
356
+ flip
357
+ shift
358
+ arrow
359
+ hover-bridge
360
+ >
361
+ ${""}
362
+ <slot slot="anchor" aria-describedby="tooltip"></slot>
363
+
364
+ ${""}
365
+ <div part="body" id="tooltip" class="tooltip__body" role="tooltip" aria-live=${this.open?"polite":"off"}>
366
+ <slot name="content">${this.content}</slot>
367
+ </div>
368
+ </sl-popup>
369
+ `}};A.styles=[ot,Fo],A.dependencies={"sl-popup":k},l([H("slot:not([name])")],A.prototype,"defaultSlot",2),l([H(".tooltip__body")],A.prototype,"body",2),l([H("sl-popup")],A.prototype,"popup",2),l([h()],A.prototype,"content",2),l([h()],A.prototype,"placement",2),l([h({type:Boolean,reflect:!0})],A.prototype,"disabled",2),l([h({type:Number})],A.prototype,"distance",2),l([h({type:Boolean,reflect:!0})],A.prototype,"open",2),l([h({type:Number})],A.prototype,"skidding",2),l([h()],A.prototype,"trigger",2),l([h({type:Boolean})],A.prototype,"hoist",2),l([dt("open",{waitUntilFirstUpdate:!0})],A.prototype,"handleOpenChange",1),l([dt(["content","distance","hoist","placement","skidding"])],A.prototype,"handleOptionsChange",1),l([dt("disabled")],A.prototype,"handleDisabledChange",1),ft("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),ft("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),A.define("sl-tooltip");var Pr=Y`
370
+ :host {
371
+ --track-width: 2px;
372
+ --track-color: rgb(128 128 128 / 25%);
373
+ --indicator-color: var(--sl-color-primary-600);
374
+ --speed: 2s;
375
+
376
+ display: inline-flex;
377
+ width: 1em;
378
+ height: 1em;
379
+ flex: none;
380
+ }
381
+
382
+ .spinner {
383
+ flex: 1 1 auto;
384
+ height: 100%;
385
+ width: 100%;
386
+ }
387
+
388
+ .spinner__track,
389
+ .spinner__indicator {
390
+ fill: none;
391
+ stroke-width: var(--track-width);
392
+ r: calc(0.5em - var(--track-width) / 2);
393
+ cx: 0.5em;
394
+ cy: 0.5em;
395
+ transform-origin: 50% 50%;
396
+ }
397
+
398
+ .spinner__track {
399
+ stroke: var(--track-color);
400
+ transform-origin: 0% 0%;
401
+ }
402
+
403
+ .spinner__indicator {
404
+ stroke: var(--indicator-color);
405
+ stroke-linecap: round;
406
+ stroke-dasharray: 150% 75%;
407
+ animation: spin var(--speed) linear infinite;
408
+ }
409
+
410
+ @keyframes spin {
411
+ 0% {
412
+ transform: rotate(0deg);
413
+ stroke-dasharray: 0.05em, 3em;
414
+ }
415
+
416
+ 50% {
417
+ transform: rotate(450deg);
418
+ stroke-dasharray: 1.375em, 1.375em;
419
+ }
420
+
421
+ 100% {
422
+ transform: rotate(1080deg);
423
+ stroke-dasharray: 0.05em, 3em;
424
+ }
425
+ }
426
+ `,eo=class extends B{constructor(){super(...arguments),this.localize=new St(this)}render(){return et`
427
+ <svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
428
+ <circle class="spinner__track"></circle>
429
+ <circle class="spinner__indicator"></circle>
430
+ </svg>
431
+ `}};eo.styles=[ot,Pr];var zt=new WeakMap,Ot=new WeakMap,$t=new WeakMap,ye=new WeakSet,Jt=new WeakMap,Rr=class{constructor(t,e){this.handleFormData=o=>{const r=this.options.disabled(this.host),i=this.options.name(this.host),n=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sl-button";this.host.isConnected&&!r&&!s&&typeof i=="string"&&i.length>0&&typeof n<"u"&&(Array.isArray(n)?n.forEach(a=>{o.formData.append(i,a.toString())}):o.formData.append(i,n.toString()))},this.handleFormSubmit=o=>{var r;const i=this.options.disabled(this.host),n=this.options.reportValidity;this.form&&!this.form.noValidate&&((r=zt.get(this.form))==null||r.forEach(s=>{this.setUserInteracted(s,!0)})),this.form&&!this.form.noValidate&&!i&&!n(this.host)&&(o.preventDefault(),o.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Jt.set(this.host,[])},this.handleInteraction=o=>{const r=Jt.get(this.host);r.includes(o.type)||r.push(o.type),r.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.checkValidity=="function"&&!r.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.reportValidity=="function"&&!r.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=ct({form:o=>{const r=o.form;if(r){const n=o.getRootNode().querySelector(`#${r}`);if(n)return n}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var r;return(r=o.disabled)!=null?r:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,checkValidity:o=>typeof o.checkValidity=="function"?o.checkValidity():!0,setValue:(o,r)=>o.value=r,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),Jt.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Jt.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,zt.has(this.form)?zt.get(this.form).add(this.host):zt.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),Ot.has(this.form)||(Ot.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),$t.has(this.form)||($t.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const t=zt.get(this.form);t&&(t.delete(this.host),t.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),Ot.has(this.form)&&(this.form.reportValidity=Ot.get(this.form),Ot.delete(this.form)),$t.has(this.form)&&(this.form.checkValidity=$t.get(this.form),$t.delete(this.form)),this.form=void 0))}setUserInteracted(t,e){e?ye.add(t):ye.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{e.hasAttribute(r)&&o.setAttribute(r,e.getAttribute(r))})),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=!!ye.has(e),r=!!e.required;e.toggleAttribute("data-required",r),e.toggleAttribute("data-optional",!r),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||t?.preventDefault()}},we=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});Object.freeze(Tt(ct({},we),{valid:!1,valueMissing:!0})),Object.freeze(Tt(ct({},we),{valid:!1,customError:!0}));var Fr=Y`
432
+ :host {
433
+ display: inline-block;
434
+ position: relative;
435
+ width: auto;
436
+ cursor: pointer;
437
+ }
438
+
439
+ .button {
440
+ display: inline-flex;
441
+ align-items: stretch;
442
+ justify-content: center;
443
+ width: 100%;
444
+ border-style: solid;
445
+ border-width: var(--sl-input-border-width);
446
+ font-family: var(--sl-input-font-family);
447
+ font-weight: var(--sl-font-weight-semibold);
448
+ text-decoration: none;
449
+ user-select: none;
450
+ -webkit-user-select: none;
451
+ white-space: nowrap;
452
+ vertical-align: middle;
453
+ padding: 0;
454
+ transition:
455
+ var(--sl-transition-x-fast) background-color,
456
+ var(--sl-transition-x-fast) color,
457
+ var(--sl-transition-x-fast) border,
458
+ var(--sl-transition-x-fast) box-shadow;
459
+ cursor: inherit;
460
+ }
461
+
462
+ .button::-moz-focus-inner {
463
+ border: 0;
464
+ }
465
+
466
+ .button:focus {
467
+ outline: none;
468
+ }
469
+
470
+ .button:focus-visible {
471
+ outline: var(--sl-focus-ring);
472
+ outline-offset: var(--sl-focus-ring-offset);
473
+ }
474
+
475
+ .button--disabled {
476
+ opacity: 0.5;
477
+ cursor: not-allowed;
478
+ }
479
+
480
+ /* When disabled, prevent mouse events from bubbling up from children */
481
+ .button--disabled * {
482
+ pointer-events: none;
483
+ }
484
+
485
+ .button__prefix,
486
+ .button__suffix {
487
+ flex: 0 0 auto;
488
+ display: flex;
489
+ align-items: center;
490
+ pointer-events: none;
491
+ }
492
+
493
+ .button__label {
494
+ display: inline-block;
495
+ }
496
+
497
+ .button__label::slotted(sl-icon) {
498
+ vertical-align: -2px;
499
+ }
500
+
501
+ /*
502
+ * Standard buttons
503
+ */
504
+
505
+ /* Default */
506
+ .button--standard.button--default {
507
+ background-color: var(--sl-color-neutral-0);
508
+ border-color: var(--sl-input-border-color);
509
+ color: var(--sl-color-neutral-700);
510
+ }
511
+
512
+ .button--standard.button--default:hover:not(.button--disabled) {
513
+ background-color: var(--sl-color-primary-50);
514
+ border-color: var(--sl-color-primary-300);
515
+ color: var(--sl-color-primary-700);
516
+ }
517
+
518
+ .button--standard.button--default:active:not(.button--disabled) {
519
+ background-color: var(--sl-color-primary-100);
520
+ border-color: var(--sl-color-primary-400);
521
+ color: var(--sl-color-primary-700);
522
+ }
523
+
524
+ /* Primary */
525
+ .button--standard.button--primary {
526
+ background-color: var(--sl-color-primary-600);
527
+ border-color: var(--sl-color-primary-600);
528
+ color: var(--sl-color-neutral-0);
529
+ }
530
+
531
+ .button--standard.button--primary:hover:not(.button--disabled) {
532
+ background-color: var(--sl-color-primary-500);
533
+ border-color: var(--sl-color-primary-500);
534
+ color: var(--sl-color-neutral-0);
535
+ }
536
+
537
+ .button--standard.button--primary:active:not(.button--disabled) {
538
+ background-color: var(--sl-color-primary-600);
539
+ border-color: var(--sl-color-primary-600);
540
+ color: var(--sl-color-neutral-0);
541
+ }
542
+
543
+ /* Success */
544
+ .button--standard.button--success {
545
+ background-color: var(--sl-color-success-600);
546
+ border-color: var(--sl-color-success-600);
547
+ color: var(--sl-color-neutral-0);
548
+ }
549
+
550
+ .button--standard.button--success:hover:not(.button--disabled) {
551
+ background-color: var(--sl-color-success-500);
552
+ border-color: var(--sl-color-success-500);
553
+ color: var(--sl-color-neutral-0);
554
+ }
555
+
556
+ .button--standard.button--success:active:not(.button--disabled) {
557
+ background-color: var(--sl-color-success-600);
558
+ border-color: var(--sl-color-success-600);
559
+ color: var(--sl-color-neutral-0);
560
+ }
561
+
562
+ /* Neutral */
563
+ .button--standard.button--neutral {
564
+ background-color: var(--sl-color-neutral-600);
565
+ border-color: var(--sl-color-neutral-600);
566
+ color: var(--sl-color-neutral-0);
567
+ }
568
+
569
+ .button--standard.button--neutral:hover:not(.button--disabled) {
570
+ background-color: var(--sl-color-neutral-500);
571
+ border-color: var(--sl-color-neutral-500);
572
+ color: var(--sl-color-neutral-0);
573
+ }
574
+
575
+ .button--standard.button--neutral:active:not(.button--disabled) {
576
+ background-color: var(--sl-color-neutral-600);
577
+ border-color: var(--sl-color-neutral-600);
578
+ color: var(--sl-color-neutral-0);
579
+ }
580
+
581
+ /* Warning */
582
+ .button--standard.button--warning {
583
+ background-color: var(--sl-color-warning-600);
584
+ border-color: var(--sl-color-warning-600);
585
+ color: var(--sl-color-neutral-0);
586
+ }
587
+ .button--standard.button--warning:hover:not(.button--disabled) {
588
+ background-color: var(--sl-color-warning-500);
589
+ border-color: var(--sl-color-warning-500);
590
+ color: var(--sl-color-neutral-0);
591
+ }
592
+
593
+ .button--standard.button--warning:active:not(.button--disabled) {
594
+ background-color: var(--sl-color-warning-600);
595
+ border-color: var(--sl-color-warning-600);
596
+ color: var(--sl-color-neutral-0);
597
+ }
598
+
599
+ /* Danger */
600
+ .button--standard.button--danger {
601
+ background-color: var(--sl-color-danger-600);
602
+ border-color: var(--sl-color-danger-600);
603
+ color: var(--sl-color-neutral-0);
604
+ }
605
+
606
+ .button--standard.button--danger:hover:not(.button--disabled) {
607
+ background-color: var(--sl-color-danger-500);
608
+ border-color: var(--sl-color-danger-500);
609
+ color: var(--sl-color-neutral-0);
610
+ }
611
+
612
+ .button--standard.button--danger:active:not(.button--disabled) {
613
+ background-color: var(--sl-color-danger-600);
614
+ border-color: var(--sl-color-danger-600);
615
+ color: var(--sl-color-neutral-0);
616
+ }
617
+
618
+ /*
619
+ * Outline buttons
620
+ */
621
+
622
+ .button--outline {
623
+ background: none;
624
+ border: solid 1px;
625
+ }
626
+
627
+ /* Default */
628
+ .button--outline.button--default {
629
+ border-color: var(--sl-input-border-color);
630
+ color: var(--sl-color-neutral-700);
631
+ }
632
+
633
+ .button--outline.button--default:hover:not(.button--disabled),
634
+ .button--outline.button--default.button--checked:not(.button--disabled) {
635
+ border-color: var(--sl-color-primary-600);
636
+ background-color: var(--sl-color-primary-600);
637
+ color: var(--sl-color-neutral-0);
638
+ }
639
+
640
+ .button--outline.button--default:active:not(.button--disabled) {
641
+ border-color: var(--sl-color-primary-700);
642
+ background-color: var(--sl-color-primary-700);
643
+ color: var(--sl-color-neutral-0);
644
+ }
645
+
646
+ /* Primary */
647
+ .button--outline.button--primary {
648
+ border-color: var(--sl-color-primary-600);
649
+ color: var(--sl-color-primary-600);
650
+ }
651
+
652
+ .button--outline.button--primary:hover:not(.button--disabled),
653
+ .button--outline.button--primary.button--checked:not(.button--disabled) {
654
+ background-color: var(--sl-color-primary-600);
655
+ color: var(--sl-color-neutral-0);
656
+ }
657
+
658
+ .button--outline.button--primary:active:not(.button--disabled) {
659
+ border-color: var(--sl-color-primary-700);
660
+ background-color: var(--sl-color-primary-700);
661
+ color: var(--sl-color-neutral-0);
662
+ }
663
+
664
+ /* Success */
665
+ .button--outline.button--success {
666
+ border-color: var(--sl-color-success-600);
667
+ color: var(--sl-color-success-600);
668
+ }
669
+
670
+ .button--outline.button--success:hover:not(.button--disabled),
671
+ .button--outline.button--success.button--checked:not(.button--disabled) {
672
+ background-color: var(--sl-color-success-600);
673
+ color: var(--sl-color-neutral-0);
674
+ }
675
+
676
+ .button--outline.button--success:active:not(.button--disabled) {
677
+ border-color: var(--sl-color-success-700);
678
+ background-color: var(--sl-color-success-700);
679
+ color: var(--sl-color-neutral-0);
680
+ }
681
+
682
+ /* Neutral */
683
+ .button--outline.button--neutral {
684
+ border-color: var(--sl-color-neutral-600);
685
+ color: var(--sl-color-neutral-600);
686
+ }
687
+
688
+ .button--outline.button--neutral:hover:not(.button--disabled),
689
+ .button--outline.button--neutral.button--checked:not(.button--disabled) {
690
+ background-color: var(--sl-color-neutral-600);
691
+ color: var(--sl-color-neutral-0);
692
+ }
693
+
694
+ .button--outline.button--neutral:active:not(.button--disabled) {
695
+ border-color: var(--sl-color-neutral-700);
696
+ background-color: var(--sl-color-neutral-700);
697
+ color: var(--sl-color-neutral-0);
698
+ }
699
+
700
+ /* Warning */
701
+ .button--outline.button--warning {
702
+ border-color: var(--sl-color-warning-600);
703
+ color: var(--sl-color-warning-600);
704
+ }
705
+
706
+ .button--outline.button--warning:hover:not(.button--disabled),
707
+ .button--outline.button--warning.button--checked:not(.button--disabled) {
708
+ background-color: var(--sl-color-warning-600);
709
+ color: var(--sl-color-neutral-0);
710
+ }
711
+
712
+ .button--outline.button--warning:active:not(.button--disabled) {
713
+ border-color: var(--sl-color-warning-700);
714
+ background-color: var(--sl-color-warning-700);
715
+ color: var(--sl-color-neutral-0);
716
+ }
717
+
718
+ /* Danger */
719
+ .button--outline.button--danger {
720
+ border-color: var(--sl-color-danger-600);
721
+ color: var(--sl-color-danger-600);
722
+ }
723
+
724
+ .button--outline.button--danger:hover:not(.button--disabled),
725
+ .button--outline.button--danger.button--checked:not(.button--disabled) {
726
+ background-color: var(--sl-color-danger-600);
727
+ color: var(--sl-color-neutral-0);
728
+ }
729
+
730
+ .button--outline.button--danger:active:not(.button--disabled) {
731
+ border-color: var(--sl-color-danger-700);
732
+ background-color: var(--sl-color-danger-700);
733
+ color: var(--sl-color-neutral-0);
734
+ }
735
+
736
+ @media (forced-colors: active) {
737
+ .button.button--outline.button--checked:not(.button--disabled) {
738
+ outline: solid 2px transparent;
739
+ }
740
+ }
741
+
742
+ /*
743
+ * Text buttons
744
+ */
745
+
746
+ .button--text {
747
+ background-color: transparent;
748
+ border-color: transparent;
749
+ color: var(--sl-color-primary-600);
750
+ }
751
+
752
+ .button--text:hover:not(.button--disabled) {
753
+ background-color: transparent;
754
+ border-color: transparent;
755
+ color: var(--sl-color-primary-500);
756
+ }
757
+
758
+ .button--text:focus-visible:not(.button--disabled) {
759
+ background-color: transparent;
760
+ border-color: transparent;
761
+ color: var(--sl-color-primary-500);
762
+ }
763
+
764
+ .button--text:active:not(.button--disabled) {
765
+ background-color: transparent;
766
+ border-color: transparent;
767
+ color: var(--sl-color-primary-700);
768
+ }
769
+
770
+ /*
771
+ * Size modifiers
772
+ */
773
+
774
+ .button--small {
775
+ height: auto;
776
+ min-height: var(--sl-input-height-small);
777
+ font-size: var(--sl-button-font-size-small);
778
+ line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
779
+ border-radius: var(--sl-input-border-radius-small);
780
+ }
781
+
782
+ .button--medium {
783
+ height: auto;
784
+ min-height: var(--sl-input-height-medium);
785
+ font-size: var(--sl-button-font-size-medium);
786
+ line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
787
+ border-radius: var(--sl-input-border-radius-medium);
788
+ }
789
+
790
+ .button--large {
791
+ height: auto;
792
+ min-height: var(--sl-input-height-large);
793
+ font-size: var(--sl-button-font-size-large);
794
+ line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
795
+ border-radius: var(--sl-input-border-radius-large);
796
+ }
797
+
798
+ /*
799
+ * Pill modifier
800
+ */
801
+
802
+ .button--pill.button--small {
803
+ border-radius: var(--sl-input-height-small);
804
+ }
805
+
806
+ .button--pill.button--medium {
807
+ border-radius: var(--sl-input-height-medium);
808
+ }
809
+
810
+ .button--pill.button--large {
811
+ border-radius: var(--sl-input-height-large);
812
+ }
813
+
814
+ /*
815
+ * Circle modifier
816
+ */
817
+
818
+ .button--circle {
819
+ padding-left: 0;
820
+ padding-right: 0;
821
+ }
822
+
823
+ .button--circle.button--small {
824
+ width: var(--sl-input-height-small);
825
+ border-radius: 50%;
826
+ }
827
+
828
+ .button--circle.button--medium {
829
+ width: var(--sl-input-height-medium);
830
+ border-radius: 50%;
831
+ }
832
+
833
+ .button--circle.button--large {
834
+ width: var(--sl-input-height-large);
835
+ border-radius: 50%;
836
+ }
837
+
838
+ .button--circle .button__prefix,
839
+ .button--circle .button__suffix,
840
+ .button--circle .button__caret {
841
+ display: none;
842
+ }
843
+
844
+ /*
845
+ * Caret modifier
846
+ */
847
+
848
+ .button--caret .button__suffix {
849
+ display: none;
850
+ }
851
+
852
+ .button--caret .button__caret {
853
+ height: auto;
854
+ }
855
+
856
+ /*
857
+ * Loading modifier
858
+ */
859
+
860
+ .button--loading {
861
+ position: relative;
862
+ cursor: wait;
863
+ }
864
+
865
+ .button--loading .button__prefix,
866
+ .button--loading .button__label,
867
+ .button--loading .button__suffix,
868
+ .button--loading .button__caret {
869
+ visibility: hidden;
870
+ }
871
+
872
+ .button--loading sl-spinner {
873
+ --indicator-color: currentColor;
874
+ position: absolute;
875
+ font-size: 1em;
876
+ height: 1em;
877
+ width: 1em;
878
+ top: calc(50% - 0.5em);
879
+ left: calc(50% - 0.5em);
880
+ }
881
+
882
+ /*
883
+ * Badges
884
+ */
885
+
886
+ .button ::slotted(sl-badge) {
887
+ position: absolute;
888
+ top: 0;
889
+ right: 0;
890
+ translate: 50% -50%;
891
+ pointer-events: none;
892
+ }
893
+
894
+ .button--rtl ::slotted(sl-badge) {
895
+ right: auto;
896
+ left: 0;
897
+ translate: -50% -50%;
898
+ }
899
+
900
+ /*
901
+ * Button spacing
902
+ */
903
+
904
+ .button--has-label.button--small .button__label {
905
+ padding: 0 var(--sl-spacing-small);
906
+ }
907
+
908
+ .button--has-label.button--medium .button__label {
909
+ padding: 0 var(--sl-spacing-medium);
910
+ }
911
+
912
+ .button--has-label.button--large .button__label {
913
+ padding: 0 var(--sl-spacing-large);
914
+ }
915
+
916
+ .button--has-prefix.button--small {
917
+ padding-inline-start: var(--sl-spacing-x-small);
918
+ }
919
+
920
+ .button--has-prefix.button--small .button__label {
921
+ padding-inline-start: var(--sl-spacing-x-small);
922
+ }
923
+
924
+ .button--has-prefix.button--medium {
925
+ padding-inline-start: var(--sl-spacing-small);
926
+ }
927
+
928
+ .button--has-prefix.button--medium .button__label {
929
+ padding-inline-start: var(--sl-spacing-small);
930
+ }
931
+
932
+ .button--has-prefix.button--large {
933
+ padding-inline-start: var(--sl-spacing-small);
934
+ }
935
+
936
+ .button--has-prefix.button--large .button__label {
937
+ padding-inline-start: var(--sl-spacing-small);
938
+ }
939
+
940
+ .button--has-suffix.button--small,
941
+ .button--caret.button--small {
942
+ padding-inline-end: var(--sl-spacing-x-small);
943
+ }
944
+
945
+ .button--has-suffix.button--small .button__label,
946
+ .button--caret.button--small .button__label {
947
+ padding-inline-end: var(--sl-spacing-x-small);
948
+ }
949
+
950
+ .button--has-suffix.button--medium,
951
+ .button--caret.button--medium {
952
+ padding-inline-end: var(--sl-spacing-small);
953
+ }
954
+
955
+ .button--has-suffix.button--medium .button__label,
956
+ .button--caret.button--medium .button__label {
957
+ padding-inline-end: var(--sl-spacing-small);
958
+ }
959
+
960
+ .button--has-suffix.button--large,
961
+ .button--caret.button--large {
962
+ padding-inline-end: var(--sl-spacing-small);
963
+ }
964
+
965
+ .button--has-suffix.button--large .button__label,
966
+ .button--caret.button--large .button__label {
967
+ padding-inline-end: var(--sl-spacing-small);
968
+ }
969
+
970
+ /*
971
+ * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
972
+ * This means buttons aren't always direct descendants of the button group, thus we can't target them with the
973
+ * ::slotted selector. To work around this, the button group component does some magic to add these special classes to
974
+ * buttons and we style them here instead.
975
+ */
976
+
977
+ :host([data-sl-button-group__button--first]:not([data-sl-button-group__button--last])) .button {
978
+ border-start-end-radius: 0;
979
+ border-end-end-radius: 0;
980
+ }
981
+
982
+ :host([data-sl-button-group__button--inner]) .button {
983
+ border-radius: 0;
984
+ }
985
+
986
+ :host([data-sl-button-group__button--last]:not([data-sl-button-group__button--first])) .button {
987
+ border-start-start-radius: 0;
988
+ border-end-start-radius: 0;
989
+ }
990
+
991
+ /* All except the first */
992
+ :host([data-sl-button-group__button]:not([data-sl-button-group__button--first])) {
993
+ margin-inline-start: calc(-1 * var(--sl-input-border-width));
994
+ }
995
+
996
+ /* Add a visual separator between solid buttons */
997
+ :host(
998
+ [data-sl-button-group__button]:not(
999
+ [data-sl-button-group__button--first],
1000
+ [data-sl-button-group__button--radio],
1001
+ [variant='default']
1002
+ ):not(:hover)
1003
+ )
1004
+ .button:after {
1005
+ content: '';
1006
+ position: absolute;
1007
+ top: 0;
1008
+ inset-inline-start: 0;
1009
+ bottom: 0;
1010
+ border-left: solid 1px rgb(128 128 128 / 33%);
1011
+ mix-blend-mode: multiply;
1012
+ }
1013
+
1014
+ /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
1015
+ :host([data-sl-button-group__button--hover]) {
1016
+ z-index: 1;
1017
+ }
1018
+
1019
+ /* Focus and checked are always on top */
1020
+ :host([data-sl-button-group__button--focus]),
1021
+ :host([data-sl-button-group__button][checked]) {
1022
+ z-index: 2;
1023
+ }
1024
+ `,oo=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=o=>{const r=o.target;(this.slotNames.includes("[default]")&&!r.name||r.name&&this.slotNames.includes(r.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if(e.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}},x=class extends B{constructor(){super(...arguments),this.formControlController=new Rr(this,{assumeInteractionOn:["click"]}),this.hasSlotController=new oo(this,"[default]","prefix","suffix"),this.localize=new St(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:we}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?Ft`a`:Ft`button`;return Bt`
1025
+ <${e}
1026
+ part="base"
1027
+ class=${lt({button:!0,"button--default":this.variant==="default","button--primary":this.variant==="primary","button--success":this.variant==="success","button--neutral":this.variant==="neutral","button--warning":this.variant==="warning","button--danger":this.variant==="danger","button--text":this.variant==="text","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()==="rtl","button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
1028
+ ?disabled=${E(t?void 0:this.disabled)}
1029
+ type=${E(t?void 0:this.type)}
1030
+ title=${this.title}
1031
+ name=${E(t?void 0:this.name)}
1032
+ value=${E(t?void 0:this.value)}
1033
+ href=${E(t&&!this.disabled?this.href:void 0)}
1034
+ target=${E(t?this.target:void 0)}
1035
+ download=${E(t?this.download:void 0)}
1036
+ rel=${E(t?this.rel:void 0)}
1037
+ role=${E(t?void 0:"button")}
1038
+ aria-disabled=${this.disabled?"true":"false"}
1039
+ tabindex=${this.disabled?"-1":"0"}
1040
+ @blur=${this.handleBlur}
1041
+ @focus=${this.handleFocus}
1042
+ @invalid=${this.isButton()?this.handleInvalid:null}
1043
+ @click=${this.handleClick}
1044
+ >
1045
+ <slot name="prefix" part="prefix" class="button__prefix"></slot>
1046
+ <slot part="label" class="button__label"></slot>
1047
+ <slot name="suffix" part="suffix" class="button__suffix"></slot>
1048
+ ${this.caret?Bt` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> `:""}
1049
+ ${this.loading?Bt`<sl-spinner part="spinner"></sl-spinner>`:""}
1050
+ </${e}>
1051
+ `}};x.styles=[ot,Fr],x.dependencies={"sl-icon":M,"sl-spinner":eo},l([H(".button")],x.prototype,"button",2),l([Rt()],x.prototype,"hasFocus",2),l([Rt()],x.prototype,"invalid",2),l([h()],x.prototype,"title",2),l([h({reflect:!0})],x.prototype,"variant",2),l([h({reflect:!0})],x.prototype,"size",2),l([h({type:Boolean,reflect:!0})],x.prototype,"caret",2),l([h({type:Boolean,reflect:!0})],x.prototype,"disabled",2),l([h({type:Boolean,reflect:!0})],x.prototype,"loading",2),l([h({type:Boolean,reflect:!0})],x.prototype,"outline",2),l([h({type:Boolean,reflect:!0})],x.prototype,"pill",2),l([h({type:Boolean,reflect:!0})],x.prototype,"circle",2),l([h()],x.prototype,"type",2),l([h()],x.prototype,"name",2),l([h()],x.prototype,"value",2),l([h()],x.prototype,"href",2),l([h()],x.prototype,"target",2),l([h()],x.prototype,"rel",2),l([h()],x.prototype,"download",2),l([h()],x.prototype,"form",2),l([h({attribute:"formaction"})],x.prototype,"formAction",2),l([h({attribute:"formenctype"})],x.prototype,"formEnctype",2),l([h({attribute:"formmethod"})],x.prototype,"formMethod",2),l([h({attribute:"formnovalidate",type:Boolean})],x.prototype,"formNoValidate",2),l([h({attribute:"formtarget"})],x.prototype,"formTarget",2),l([dt("disabled",{waitUntilFirstUpdate:!0})],x.prototype,"handleDisabledChange",1),x.define("sl-button");function*xe(t=document.activeElement){t!=null&&(yield t,"shadowRoot"in t&&t.shadowRoot&&t.shadowRoot.mode!=="closed"&&(yield*ko(xe(t.shadowRoot.activeElement))))}function Br(){return[...xe()].pop()}var ro=new WeakMap;function io(t){let e=ro.get(t);return e||(e=window.getComputedStyle(t,null),ro.set(t,e)),e}function Tr(t){if(typeof t.checkVisibility=="function")return t.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const e=io(t);return e.visibility!=="hidden"&&e.display!=="none"}function Dr(t){const e=io(t),{overflowY:o,overflowX:r}=e;return o==="scroll"||r==="scroll"?!0:o!=="auto"||r!=="auto"?!1:t.scrollHeight>t.clientHeight&&o==="auto"||t.scrollWidth>t.clientWidth&&r==="auto"}function Mr(t){const e=t.tagName.toLowerCase(),o=Number(t.getAttribute("tabindex"));if(t.hasAttribute("tabindex")&&(isNaN(o)||o<=-1)||t.hasAttribute("disabled")||t.closest("[inert]"))return!1;if(e==="input"&&t.getAttribute("type")==="radio"){const n=t.getRootNode(),s=`input[type='radio'][name="${t.getAttribute("name")}"]`,a=n.querySelector(`${s}:checked`);return a?a===t:n.querySelector(s)===t}return Tr(t)?(e==="audio"||e==="video")&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(e)?!0:Dr(t):!1}function Vr(t,e){var o;return((o=t.getRootNode({composed:!0}))==null?void 0:o.host)!==e}function no(t){const e=new WeakMap,o=[];function r(i){if(i instanceof Element){if(i.hasAttribute("inert")||i.closest("[inert]")||e.has(i))return;e.set(i,!0),!o.includes(i)&&Mr(i)&&o.push(i),i instanceof HTMLSlotElement&&Vr(i,t)&&i.assignedElements({flatten:!0}).forEach(n=>{r(n)}),i.shadowRoot!==null&&i.shadowRoot.mode==="open"&&r(i.shadowRoot)}for(const n of i.children)r(n)}return r(t),o.sort((i,n)=>{const s=Number(i.getAttribute("tabindex"))||0;return(Number(n.getAttribute("tabindex"))||0)-s})}var Pt=[],Nr=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.isActive()&&this.checkFocus()},this.handleKeyDown=e=>{var o;if(e.key!=="Tab"||this.isExternalActivated||!this.isActive())return;const r=Br();if(this.previousFocus=r,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const i=no(this.element);let n=i.findIndex(a=>a===r);this.previousFocus=this.currentFocus;const s=this.tabDirection==="forward"?1:-1;for(;;){n+s>=i.length?n=0:n+s<0?n=i.length-1:n+=s,this.previousFocus=this.currentFocus;const a=i[n];if(this.tabDirection==="backward"&&this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus)||a&&this.possiblyHasTabbableChildren(a))return;e.preventDefault(),this.currentFocus=a,(o=this.currentFocus)==null||o.focus({preventScroll:!1});const c=[...xe()];if(c.includes(this.currentFocus)||!c.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t,this.elementsWithTabbableControls=["iframe"]}activate(){Pt.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Pt=Pt.filter(t=>t!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Pt[Pt.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=no(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],r=this.tabDirection==="forward"?e:o;typeof r?.focus=="function"&&(this.currentFocus=r,r.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(t){return this.elementsWithTabbableControls.includes(t.tagName.toLowerCase())||t.hasAttribute("controls")}},_e=new Set;function Ir(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Wr(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}function so(t){if(_e.add(t),!document.documentElement.classList.contains("sl-scroll-lock")){const e=Ir()+Wr();let o=getComputedStyle(document.documentElement).scrollbarGutter;(!o||o==="auto")&&(o="stable"),e<2&&(o=""),document.documentElement.style.setProperty("--sl-scroll-lock-gutter",o),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${e}px`)}}function ao(t){_e.delete(t),_e.size===0&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}var Hr=Y`
1052
+ :host {
1053
+ --width: 31rem;
1054
+ --header-spacing: var(--sl-spacing-large);
1055
+ --body-spacing: var(--sl-spacing-large);
1056
+ --footer-spacing: var(--sl-spacing-large);
1057
+
1058
+ display: contents;
1059
+ }
1060
+
1061
+ .dialog {
1062
+ display: flex;
1063
+ align-items: center;
1064
+ justify-content: center;
1065
+ position: fixed;
1066
+ top: 0;
1067
+ right: 0;
1068
+ bottom: 0;
1069
+ left: 0;
1070
+ z-index: var(--sl-z-index-dialog);
1071
+ }
1072
+
1073
+ .dialog__panel {
1074
+ display: flex;
1075
+ flex-direction: column;
1076
+ z-index: 2;
1077
+ width: var(--width);
1078
+ max-width: calc(100% - var(--sl-spacing-2x-large));
1079
+ max-height: calc(100% - var(--sl-spacing-2x-large));
1080
+ background-color: var(--sl-panel-background-color);
1081
+ border-radius: var(--sl-border-radius-medium);
1082
+ box-shadow: var(--sl-shadow-x-large);
1083
+ }
1084
+
1085
+ .dialog__panel:focus {
1086
+ outline: none;
1087
+ }
1088
+
1089
+ /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
1090
+ @media screen and (max-width: 420px) {
1091
+ .dialog__panel {
1092
+ max-height: 80vh;
1093
+ }
1094
+ }
1095
+
1096
+ .dialog--open .dialog__panel {
1097
+ display: flex;
1098
+ opacity: 1;
1099
+ }
1100
+
1101
+ .dialog__header {
1102
+ flex: 0 0 auto;
1103
+ display: flex;
1104
+ }
1105
+
1106
+ .dialog__title {
1107
+ flex: 1 1 auto;
1108
+ font: inherit;
1109
+ font-size: var(--sl-font-size-large);
1110
+ line-height: var(--sl-line-height-dense);
1111
+ padding: var(--header-spacing);
1112
+ margin: 0;
1113
+ }
1114
+
1115
+ .dialog__header-actions {
1116
+ flex-shrink: 0;
1117
+ display: flex;
1118
+ flex-wrap: wrap;
1119
+ justify-content: end;
1120
+ gap: var(--sl-spacing-2x-small);
1121
+ padding: 0 var(--header-spacing);
1122
+ }
1123
+
1124
+ .dialog__header-actions sl-icon-button,
1125
+ .dialog__header-actions ::slotted(sl-icon-button) {
1126
+ flex: 0 0 auto;
1127
+ display: flex;
1128
+ align-items: center;
1129
+ font-size: var(--sl-font-size-medium);
1130
+ }
1131
+
1132
+ .dialog__body {
1133
+ flex: 1 1 auto;
1134
+ display: block;
1135
+ padding: var(--body-spacing);
1136
+ overflow: auto;
1137
+ -webkit-overflow-scrolling: touch;
1138
+ }
1139
+
1140
+ .dialog__footer {
1141
+ flex: 0 0 auto;
1142
+ text-align: right;
1143
+ padding: var(--footer-spacing);
1144
+ }
1145
+
1146
+ .dialog__footer ::slotted(sl-button:not(:first-of-type)) {
1147
+ margin-inline-start: var(--sl-spacing-x-small);
1148
+ }
1149
+
1150
+ .dialog:not(.dialog--has-footer) .dialog__footer {
1151
+ display: none;
1152
+ }
1153
+
1154
+ .dialog__overlay {
1155
+ position: fixed;
1156
+ top: 0;
1157
+ right: 0;
1158
+ bottom: 0;
1159
+ left: 0;
1160
+ background-color: var(--sl-overlay-background-color);
1161
+ }
1162
+
1163
+ @media (forced-colors: active) {
1164
+ .dialog__panel {
1165
+ border: solid 1px var(--sl-color-neutral-0);
1166
+ }
1167
+ }
1168
+ `,Ur=t=>{var e;const{activeElement:o}=document;o&&t.contains(o)&&((e=document.activeElement)==null||e.blur())},qr=Y`
1169
+ :host {
1170
+ display: inline-block;
1171
+ color: var(--sl-color-neutral-600);
1172
+ }
1173
+
1174
+ .icon-button {
1175
+ flex: 0 0 auto;
1176
+ display: flex;
1177
+ align-items: center;
1178
+ background: none;
1179
+ border: none;
1180
+ border-radius: var(--sl-border-radius-medium);
1181
+ font-size: inherit;
1182
+ color: inherit;
1183
+ padding: var(--sl-spacing-x-small);
1184
+ cursor: pointer;
1185
+ transition: var(--sl-transition-x-fast) color;
1186
+ -webkit-appearance: none;
1187
+ }
1188
+
1189
+ .icon-button:hover:not(.icon-button--disabled),
1190
+ .icon-button:focus-visible:not(.icon-button--disabled) {
1191
+ color: var(--sl-color-primary-600);
1192
+ }
1193
+
1194
+ .icon-button:active:not(.icon-button--disabled) {
1195
+ color: var(--sl-color-primary-700);
1196
+ }
1197
+
1198
+ .icon-button:focus {
1199
+ outline: none;
1200
+ }
1201
+
1202
+ .icon-button--disabled {
1203
+ opacity: 0.5;
1204
+ cursor: not-allowed;
1205
+ }
1206
+
1207
+ .icon-button:focus-visible {
1208
+ outline: var(--sl-focus-ring);
1209
+ outline-offset: var(--sl-focus-ring-offset);
1210
+ }
1211
+
1212
+ .icon-button__icon {
1213
+ pointer-events: none;
1214
+ }
1215
+ `,$=class extends B{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?Ft`a`:Ft`button`;return Bt`
1216
+ <${e}
1217
+ part="base"
1218
+ class=${lt({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
1219
+ ?disabled=${E(t?void 0:this.disabled)}
1220
+ type=${E(t?void 0:"button")}
1221
+ href=${E(t?this.href:void 0)}
1222
+ target=${E(t?this.target:void 0)}
1223
+ download=${E(t?this.download:void 0)}
1224
+ rel=${E(t&&this.target?"noreferrer noopener":void 0)}
1225
+ role=${E(t?void 0:"button")}
1226
+ aria-disabled=${this.disabled?"true":"false"}
1227
+ aria-label="${this.label}"
1228
+ tabindex=${this.disabled?"-1":"0"}
1229
+ @blur=${this.handleBlur}
1230
+ @focus=${this.handleFocus}
1231
+ @click=${this.handleClick}
1232
+ >
1233
+ <sl-icon
1234
+ class="icon-button__icon"
1235
+ name=${E(this.name)}
1236
+ library=${E(this.library)}
1237
+ src=${E(this.src)}
1238
+ aria-hidden="true"
1239
+ ></sl-icon>
1240
+ </${e}>
1241
+ `}};$.styles=[ot,qr],$.dependencies={"sl-icon":M},l([H(".icon-button")],$.prototype,"button",2),l([Rt()],$.prototype,"hasFocus",2),l([h()],$.prototype,"name",2),l([h()],$.prototype,"library",2),l([h()],$.prototype,"src",2),l([h()],$.prototype,"href",2),l([h()],$.prototype,"target",2),l([h()],$.prototype,"download",2),l([h()],$.prototype,"label",2),l([h({type:Boolean,reflect:!0})],$.prototype,"disabled",2);var j=class extends B{constructor(){super(...arguments),this.hasSlotController=new oo(this,"footer"),this.localize=new St(this),this.modal=new Nr(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.modal.isActive()&&this.open&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),so(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),ao(this),this.removeOpenListeners()}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const o=bt(this,"dialog.denyClose",{dir:this.localize.dir()});gt(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){var t;"CloseWatcher"in window?((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var t;(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),so(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([kt(this.dialog),kt(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});const e=bt(this,"dialog.show",{dir:this.localize.dir()}),o=bt(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([gt(this.panel,e.keyframes,e.options),gt(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{Ur(this),this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([kt(this.dialog),kt(this.overlay)]);const t=bt(this,"dialog.hide",{dir:this.localize.dir()}),e=bt(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([gt(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),gt(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,ao(this);const o=this.originalTrigger;typeof o?.focus=="function"&&setTimeout(()=>o.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,Zt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Zt(this,"sl-after-hide")}render(){return et`
1242
+ <div
1243
+ part="base"
1244
+ class=${lt({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
1245
+ >
1246
+ <div part="overlay" class="dialog__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>
1247
+
1248
+ <div
1249
+ part="panel"
1250
+ class="dialog__panel"
1251
+ role="dialog"
1252
+ aria-modal="true"
1253
+ aria-hidden=${this.open?"false":"true"}
1254
+ aria-label=${E(this.noHeader?this.label:void 0)}
1255
+ aria-labelledby=${E(this.noHeader?void 0:"title")}
1256
+ tabindex="-1"
1257
+ >
1258
+ ${this.noHeader?"":et`
1259
+ <header part="header" class="dialog__header">
1260
+ <h2 part="title" class="dialog__title" id="title">
1261
+ <slot name="label"> ${this.label.length>0?this.label:"\uFEFF"} </slot>
1262
+ </h2>
1263
+ <div part="header-actions" class="dialog__header-actions">
1264
+ <slot name="header-actions"></slot>
1265
+ <sl-icon-button
1266
+ part="close-button"
1267
+ exportparts="base:close-button__base"
1268
+ class="dialog__close"
1269
+ name="x-lg"
1270
+ label=${this.localize.term("close")}
1271
+ library="system"
1272
+ @click="${()=>this.requestClose("close-button")}"
1273
+ ></sl-icon-button>
1274
+ </div>
1275
+ </header>
1276
+ `}
1277
+ ${""}
1278
+ <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>
1279
+
1280
+ <footer part="footer" class="dialog__footer">
1281
+ <slot name="footer"></slot>
1282
+ </footer>
1283
+ </div>
1284
+ </div>
1285
+ `}};j.styles=[ot,Hr],j.dependencies={"sl-icon-button":$},l([H(".dialog")],j.prototype,"dialog",2),l([H(".dialog__panel")],j.prototype,"panel",2),l([H(".dialog__overlay")],j.prototype,"overlay",2),l([h({type:Boolean,reflect:!0})],j.prototype,"open",2),l([h({reflect:!0})],j.prototype,"label",2),l([h({attribute:"no-header",type:Boolean,reflect:!0})],j.prototype,"noHeader",2),l([dt("open",{waitUntilFirstUpdate:!0})],j.prototype,"handleOpenChange",1),ft("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ft("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),ft("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),ft("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ft("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}}),j.define("sl-dialog"),$.define("sl-icon-button");function jr(t){return crypto.getRandomValues(new Uint8Array(t))}for(var lo=4096,Qt=[],st=0,ke;st<256;st++)Qt[st]=(st+256).toString(16).substring(1);function Xr(){(!ke||st+16>lo)&&(ke=jr(lo),st=0);for(var t=0,e,o="";t<16;t++)e=ke[st+t],t==6?o+=Qt[e&15|64]:t==8?o+=Qt[e&63|128]:o+=Qt[e],t&1&&t>1&&t<11&&(o+="-");return st+=16,o}export{Oo as r,ee as s,Xr as v};
1286
+ //# sourceMappingURL=vendor-ckSdd6aH.esm.js.map