@esri/calcite-components 1.11.0-next.3 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1225) hide show
  1. package/dist/calcite/assets/combobox/t9n/index.d.ts +3 -0
  2. package/dist/calcite/assets/combobox/t9n/messages.json +4 -1
  3. package/dist/calcite/assets/combobox/t9n/messages_en.json +4 -1
  4. package/dist/calcite/assets/stepper/t9n/index.d.ts +2 -0
  5. package/dist/calcite/assets/stepper/t9n/messages.json +3 -1
  6. package/dist/calcite/assets/stepper/t9n/messages_ar.json +3 -1
  7. package/dist/calcite/assets/stepper/t9n/messages_bg.json +3 -1
  8. package/dist/calcite/assets/stepper/t9n/messages_bs.json +3 -1
  9. package/dist/calcite/assets/stepper/t9n/messages_ca.json +3 -1
  10. package/dist/calcite/assets/stepper/t9n/messages_cs.json +3 -1
  11. package/dist/calcite/assets/stepper/t9n/messages_da.json +3 -1
  12. package/dist/calcite/assets/stepper/t9n/messages_de.json +3 -1
  13. package/dist/calcite/assets/stepper/t9n/messages_el.json +3 -1
  14. package/dist/calcite/assets/stepper/t9n/messages_en.json +3 -1
  15. package/dist/calcite/assets/stepper/t9n/messages_es.json +3 -1
  16. package/dist/calcite/assets/stepper/t9n/messages_et.json +3 -1
  17. package/dist/calcite/assets/stepper/t9n/messages_fi.json +3 -1
  18. package/dist/calcite/assets/stepper/t9n/messages_fr.json +3 -1
  19. package/dist/calcite/assets/stepper/t9n/messages_he.json +3 -1
  20. package/dist/calcite/assets/stepper/t9n/messages_hr.json +3 -1
  21. package/dist/calcite/assets/stepper/t9n/messages_hu.json +3 -1
  22. package/dist/calcite/assets/stepper/t9n/messages_id.json +3 -1
  23. package/dist/calcite/assets/stepper/t9n/messages_it.json +3 -1
  24. package/dist/calcite/assets/stepper/t9n/messages_ja.json +3 -1
  25. package/dist/calcite/assets/stepper/t9n/messages_ko.json +3 -1
  26. package/dist/calcite/assets/stepper/t9n/messages_lt.json +3 -1
  27. package/dist/calcite/assets/stepper/t9n/messages_lv.json +3 -1
  28. package/dist/calcite/assets/stepper/t9n/messages_nl.json +3 -1
  29. package/dist/calcite/assets/stepper/t9n/messages_no.json +3 -1
  30. package/dist/calcite/assets/stepper/t9n/messages_pl.json +3 -1
  31. package/dist/calcite/assets/stepper/t9n/messages_pt-BR.json +3 -1
  32. package/dist/calcite/assets/stepper/t9n/messages_pt-PT.json +3 -1
  33. package/dist/calcite/assets/stepper/t9n/messages_ro.json +3 -1
  34. package/dist/calcite/assets/stepper/t9n/messages_ru.json +3 -1
  35. package/dist/calcite/assets/stepper/t9n/messages_sk.json +3 -1
  36. package/dist/calcite/assets/stepper/t9n/messages_sl.json +3 -1
  37. package/dist/calcite/assets/stepper/t9n/messages_sr.json +3 -1
  38. package/dist/calcite/assets/stepper/t9n/messages_sv.json +3 -1
  39. package/dist/calcite/assets/stepper/t9n/messages_th.json +3 -1
  40. package/dist/calcite/assets/stepper/t9n/messages_tr.json +3 -1
  41. package/dist/calcite/assets/stepper/t9n/messages_uk.json +3 -1
  42. package/dist/calcite/assets/stepper/t9n/messages_vi.json +3 -1
  43. package/dist/calcite/assets/stepper/t9n/messages_zh-CN.json +3 -1
  44. package/dist/calcite/assets/stepper/t9n/messages_zh-HK.json +3 -1
  45. package/dist/calcite/assets/stepper/t9n/messages_zh-TW.json +3 -1
  46. package/dist/calcite/calcite.esm.js +2 -2
  47. package/dist/calcite/index.esm.js +2 -2
  48. package/dist/calcite/{p-e44bc26a.js → p-0053b5cc.js} +2 -2
  49. package/dist/calcite/p-0189ff26.entry.js +6 -0
  50. package/dist/calcite/{p-600cab66.entry.js → p-02cae000.entry.js} +2 -2
  51. package/dist/calcite/{p-ca7a7c7b.js → p-062c8abf.js} +2 -2
  52. package/dist/calcite/{p-a0b7bcb9.js → p-08f3dd09.js} +1 -1
  53. package/dist/calcite/{p-32e492f3.entry.js → p-09507d5d.entry.js} +2 -2
  54. package/dist/calcite/{p-7cb4dcf2.js → p-0a23430d.js} +2 -2
  55. package/dist/calcite/{p-ca5b5ce2.js → p-0b5d06f7.js} +2 -2
  56. package/dist/calcite/p-0d50b6e4.entry.js +6 -0
  57. package/dist/calcite/{p-1df43b49.js → p-0f15af8b.js} +2 -2
  58. package/dist/calcite/p-0f3dce4b.entry.js +6 -0
  59. package/dist/calcite/{p-f52e95d2.entry.js → p-0fac7f75.entry.js} +2 -2
  60. package/dist/calcite/{p-a1deaa9b.entry.js → p-1350b322.entry.js} +2 -2
  61. package/dist/calcite/{p-94adfb9b.entry.js → p-1359f7aa.entry.js} +2 -2
  62. package/dist/calcite/{p-ff7554f1.js → p-13e53971.js} +2 -2
  63. package/dist/calcite/p-16315e95.entry.js +6 -0
  64. package/dist/calcite/{p-f04247e6.js → p-165ff9be.js} +2 -2
  65. package/dist/calcite/{p-00792788.js → p-1ea54903.js} +2 -2
  66. package/dist/calcite/{p-75df1f47.entry.js → p-1eac9ab9.entry.js} +2 -2
  67. package/dist/calcite/{p-f874eb2b.js → p-1ecee1c3.js} +3 -3
  68. package/dist/calcite/{p-ec206c33.entry.js → p-222e77ed.entry.js} +2 -2
  69. package/dist/calcite/{p-e3bda7c1.entry.js → p-2290b427.entry.js} +2 -2
  70. package/dist/calcite/{p-bc8c92e9.js → p-23351819.js} +1 -1
  71. package/dist/calcite/{p-84923684.js → p-289967d1.js} +2 -2
  72. package/dist/calcite/{p-00af8265.entry.js → p-2bbb1c19.entry.js} +2 -2
  73. package/dist/calcite/{p-20ad6486.entry.js → p-2cb4e856.entry.js} +2 -2
  74. package/dist/calcite/{p-c9004c0e.js → p-2eb89c3a.js} +2 -2
  75. package/dist/calcite/{p-86e92c54.entry.js → p-3479f8bc.entry.js} +2 -2
  76. package/dist/calcite/{p-4e829d17.js → p-34a48057.js} +2 -2
  77. package/dist/calcite/p-34d9b164.entry.js +6 -0
  78. package/dist/calcite/{p-4fda0147.js → p-36080efe.js} +2 -2
  79. package/dist/calcite/{p-f4ec61fe.js → p-36e01176.js} +1 -1
  80. package/dist/calcite/{p-58c50240.entry.js → p-36f9f96b.entry.js} +2 -2
  81. package/dist/calcite/p-37fea3e8.entry.js +6 -0
  82. package/dist/calcite/{p-67f1e691.entry.js → p-3976823f.entry.js} +2 -2
  83. package/dist/calcite/{p-9c5044f5.js → p-3a076bf1.js} +2 -2
  84. package/dist/calcite/{p-59c881ef.js → p-3f86893e.js} +2 -2
  85. package/dist/calcite/{p-e341636c.js → p-3f94affa.js} +2 -2
  86. package/dist/calcite/{p-cc2afc13.js → p-40c3153a.js} +1 -1
  87. package/dist/calcite/{p-20fa7898.entry.js → p-42a2fdea.entry.js} +2 -2
  88. package/dist/calcite/{p-a9df1303.entry.js → p-43be02f4.entry.js} +2 -2
  89. package/dist/calcite/{p-d6e39cb4.js → p-44a03b26.js} +2 -2
  90. package/dist/calcite/{p-f3345fad.js → p-4770742c.js} +2 -2
  91. package/dist/calcite/{p-3fa70fc9.js → p-4e279db4.js} +2 -2
  92. package/dist/calcite/{p-e0982385.entry.js → p-4e83cb39.entry.js} +2 -2
  93. package/dist/calcite/{p-57b2b0de.entry.js → p-4e9c8ef3.entry.js} +2 -2
  94. package/dist/calcite/{p-bb4406ca.entry.js → p-4ef19851.entry.js} +2 -2
  95. package/dist/calcite/{p-0ff0ba7e.entry.js → p-5009de0d.entry.js} +2 -2
  96. package/dist/calcite/{p-405db005.js → p-52db7a68.js} +2 -2
  97. package/dist/calcite/{p-295d8192.js → p-54c49cb7.js} +2 -2
  98. package/dist/calcite/{p-a16da3c8.entry.js → p-55b50b7b.entry.js} +2 -2
  99. package/dist/calcite/p-577aa52c.entry.js +6 -0
  100. package/dist/calcite/{p-22137130.entry.js → p-57a8b56a.entry.js} +2 -2
  101. package/dist/calcite/{p-2f1b4150.js → p-5b323eec.js} +2 -2
  102. package/dist/calcite/p-5d745fde.entry.js +6 -0
  103. package/dist/calcite/{p-c52fcd92.js → p-5de12cfc.js} +1 -1
  104. package/dist/calcite/{p-2de5ec8e.js → p-5f354ce7.js} +2 -2
  105. package/dist/calcite/{p-be1c2daa.entry.js → p-60ab49c1.entry.js} +2 -2
  106. package/dist/calcite/{p-ca292479.js → p-629513a0.js} +2 -2
  107. package/dist/calcite/{p-859bd03d.entry.js → p-64fa0f4b.entry.js} +2 -2
  108. package/dist/calcite/{p-9931ec6f.js → p-65902546.js} +2 -2
  109. package/dist/calcite/{p-ab8ec5bf.js → p-661e6a8c.js} +2 -2
  110. package/dist/calcite/{p-34c33bcc.js → p-6653c175.js} +2 -2
  111. package/dist/calcite/{p-16868d42.entry.js → p-679be17e.entry.js} +2 -2
  112. package/dist/calcite/{p-db45c95a.entry.js → p-69e4e899.entry.js} +2 -2
  113. package/dist/calcite/p-6c36b346.js +6 -0
  114. package/dist/calcite/{p-be95e2fa.entry.js → p-6d53ee3b.entry.js} +2 -2
  115. package/dist/calcite/{p-4050af20.entry.js → p-6d5d6c83.entry.js} +2 -2
  116. package/dist/calcite/{p-1a2f1414.js → p-6d9b442e.js} +2 -2
  117. package/dist/calcite/{p-2634535a.entry.js → p-6e0cfdb3.entry.js} +2 -2
  118. package/dist/calcite/{p-61442e7d.js → p-6e607443.js} +1 -1
  119. package/dist/calcite/p-7505deaa.entry.js +6 -0
  120. package/dist/calcite/{p-75a5b864.entry.js → p-792a756b.entry.js} +2 -2
  121. package/dist/calcite/{p-7c8970c5.js → p-7a636ec7.js} +2 -2
  122. package/dist/calcite/p-7ab9f1b0.entry.js +6 -0
  123. package/dist/calcite/{p-5545d6aa.js → p-7c1f89c9.js} +2 -2
  124. package/dist/calcite/{p-d404096a.entry.js → p-7d1bc8a8.entry.js} +2 -2
  125. package/dist/calcite/p-7e303712.js +6 -0
  126. package/dist/calcite/{p-cd6faff1.js → p-80765840.js} +2 -2
  127. package/dist/calcite/{p-6c351a2f.js → p-835eb17c.js} +1 -1
  128. package/dist/calcite/p-83dace39.entry.js +6 -0
  129. package/dist/calcite/{p-98478cb3.entry.js → p-83e311f1.entry.js} +2 -2
  130. package/dist/calcite/{p-92aecb91.js → p-84e82243.js} +2 -2
  131. package/dist/calcite/{p-d8c9bc1b.entry.js → p-8741e3a7.entry.js} +2 -2
  132. package/dist/calcite/{p-f67c9720.entry.js → p-895dbec8.entry.js} +2 -2
  133. package/dist/calcite/{p-9579d34e.js → p-89dbaa41.js} +2 -2
  134. package/dist/calcite/{p-452e53bf.entry.js → p-8b991354.entry.js} +2 -2
  135. package/dist/calcite/{p-3c30940d.js → p-91b0f62a.js} +1 -1
  136. package/dist/calcite/{p-236efea6.entry.js → p-91e2de80.entry.js} +2 -2
  137. package/dist/calcite/{p-550ec0b6.entry.js → p-920b1485.entry.js} +2 -2
  138. package/dist/calcite/{p-280885d3.js → p-953058ba.js} +2 -2
  139. package/dist/calcite/p-984b4617.js +6 -0
  140. package/dist/calcite/p-9b6f22cb.entry.js +6 -0
  141. package/dist/calcite/{p-8470aa06.entry.js → p-9b9393c9.entry.js} +2 -2
  142. package/dist/calcite/{p-87f1e961.entry.js → p-9b99f222.entry.js} +2 -2
  143. package/dist/calcite/{p-3cda1116.entry.js → p-9bf37142.entry.js} +2 -2
  144. package/dist/calcite/{p-a431d03b.js → p-9e250dec.js} +1 -1
  145. package/dist/calcite/{p-9c60f2b0.entry.js → p-9e30b01a.entry.js} +2 -2
  146. package/dist/calcite/p-a0a1a6f8.js +6 -0
  147. package/dist/calcite/{p-d6e9d2d8.js → p-a1fdc881.js} +2 -2
  148. package/dist/calcite/{p-56b8a579.entry.js → p-a22ceb1c.entry.js} +2 -2
  149. package/dist/calcite/{p-42687964.entry.js → p-a32a0549.entry.js} +2 -2
  150. package/dist/calcite/{p-6559e78e.js → p-a730a8a7.js} +2 -2
  151. package/dist/calcite/p-a7fd56df.js +6 -0
  152. package/dist/calcite/{p-1baed544.js → p-a97ae2a2.js} +1 -1
  153. package/dist/calcite/{p-716875d3.js → p-a9c49dc3.js} +2 -2
  154. package/dist/calcite/{p-024642ad.js → p-abf27867.js} +2 -2
  155. package/dist/calcite/{p-5fa6b22e.js → p-b19a4d74.js} +1 -1
  156. package/dist/calcite/{p-f49f0da2.js → p-b1ca5261.js} +2 -2
  157. package/dist/calcite/{p-303d0be3.js → p-b3e2357b.js} +2 -2
  158. package/dist/calcite/{p-ba000a6e.js → p-b8496035.js} +2 -2
  159. package/dist/calcite/{p-b56a850f.js → p-ba407747.js} +1 -1
  160. package/dist/calcite/{p-b59cee37.js → p-ba4b3a30.js} +2 -2
  161. package/dist/calcite/p-badfcd8b.js +6 -0
  162. package/dist/calcite/{p-d8f47402.js → p-bd9ca272.js} +2 -2
  163. package/dist/calcite/{p-7ff713c7.js → p-bdf29ea2.js} +1 -1
  164. package/dist/calcite/{p-1e5ad40e.js → p-bdf88c31.js} +2 -2
  165. package/dist/calcite/{p-e044e04c.entry.js → p-c26c7dea.entry.js} +2 -2
  166. package/dist/calcite/{p-37c566ae.js → p-c2c75d15.js} +1 -1
  167. package/dist/calcite/p-c59cd35a.js +6 -0
  168. package/dist/calcite/p-c707879a.entry.js +6 -0
  169. package/dist/calcite/p-c8576ac4.js +6 -0
  170. package/dist/calcite/{p-f2c86ef2.js → p-ca135abd.js} +2 -2
  171. package/dist/calcite/{p-431a9f25.js → p-cd0701e0.js} +2 -2
  172. package/dist/calcite/{p-d0c61494.js → p-cecc3d42.js} +1 -1
  173. package/dist/calcite/{p-1020aae4.js → p-cedfbeda.js} +2 -2
  174. package/dist/calcite/{p-a3b61d7c.js → p-cf33293e.js} +1 -1
  175. package/dist/calcite/{p-6e47e64c.entry.js → p-cfbcfbc4.entry.js} +2 -2
  176. package/dist/calcite/{p-e3dde9ab.js → p-cfdb0a68.js} +1 -1
  177. package/dist/calcite/{p-1df6309c.entry.js → p-d1fc646b.entry.js} +2 -2
  178. package/dist/calcite/{p-6d2a9ab8.js → p-d62665c6.js} +2 -2
  179. package/dist/calcite/{p-8eed4b45.js → p-d9d12377.js} +2 -2
  180. package/dist/calcite/p-daaff213.js +7 -0
  181. package/dist/calcite/{p-68b2f498.js → p-dd657a9e.js} +2 -2
  182. package/dist/calcite/{p-26646ca8.entry.js → p-ddeb5436.entry.js} +2 -2
  183. package/dist/calcite/{p-1b7e2a33.entry.js → p-df91b6c8.entry.js} +2 -2
  184. package/dist/calcite/p-e36e9f28.js +6 -0
  185. package/dist/calcite/{p-d8688c62.js → p-e4890bc6.js} +2 -2
  186. package/dist/calcite/{p-767eac96.js → p-e4d72ec5.js} +2 -2
  187. package/dist/calcite/{p-3456406e.entry.js → p-e55cab5d.entry.js} +2 -2
  188. package/dist/calcite/p-e5693fa7.entry.js +6 -0
  189. package/dist/calcite/{p-538bccbf.entry.js → p-e5b429a8.entry.js} +2 -2
  190. package/dist/calcite/{p-53d844c5.entry.js → p-e64c770e.entry.js} +2 -2
  191. package/dist/calcite/p-e862b48d.entry.js +6 -0
  192. package/dist/calcite/{p-475efdf6.js → p-e872e566.js} +2 -2
  193. package/dist/calcite/{p-388baeec.js → p-e8c77b5b.js} +1 -1
  194. package/dist/calcite/p-e982ac47.entry.js +6 -0
  195. package/dist/calcite/{p-244faba8.js → p-e988d1b9.js} +2 -2
  196. package/dist/calcite/{p-aac7ddcd.js → p-e9fe8c02.js} +2 -2
  197. package/dist/calcite/{p-73d7e46a.entry.js → p-ea4f0d83.entry.js} +2 -2
  198. package/dist/calcite/{p-20ca99b1.entry.js → p-edae68bf.entry.js} +2 -2
  199. package/dist/calcite/{p-39e98e83.js → p-ee1c4cb0.js} +2 -2
  200. package/dist/calcite/p-efbca97f.js +6 -0
  201. package/dist/calcite/{p-38a5b6bb.js → p-efc47dd6.js} +2 -2
  202. package/dist/calcite/{p-2389ba56.entry.js → p-f3463c3a.entry.js} +2 -2
  203. package/dist/calcite/{p-df3a9753.entry.js → p-f40d2764.entry.js} +2 -2
  204. package/dist/calcite/p-f4a01b80.js +6 -0
  205. package/dist/calcite/{p-72cc745a.js → p-f827a56f.js} +2 -2
  206. package/dist/calcite/{p-e7d3df01.js → p-f8fab66d.js} +2 -2
  207. package/dist/calcite/p-f916aaa3.entry.js +6 -0
  208. package/dist/calcite/{p-f4e8b159.js → p-fae9cf02.js} +2 -2
  209. package/dist/cjs/{ExpandToggle-058aadc4.js → ExpandToggle-193e0cbf.js} +5 -5
  210. package/dist/cjs/{FloatingArrow-fd78a5b8.js → FloatingArrow-97278e27.js} +5 -3
  211. package/dist/cjs/{Heading-c408a61f.js → Heading-3ef64582.js} +2 -2
  212. package/dist/cjs/{app-globals-d65b7f05.js → app-globals-66748780.js} +2 -2
  213. package/dist/cjs/{ar-404376f2.js → ar-a14ad704.js} +19 -19
  214. package/dist/cjs/{array-214c8137.js → array-859c5b60.js} +1 -1
  215. package/dist/cjs/{bg-9fa6aef8.js → bg-bc7d6a7a.js} +19 -19
  216. package/dist/cjs/{browser-6df26ac0.js → browser-881f0556.js} +1 -1
  217. package/dist/cjs/{bs-6463fc55.js → bs-6ec257dd.js} +19 -19
  218. package/dist/cjs/{ca-43b8571a.js → ca-d5ee4144.js} +19 -19
  219. package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
  220. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  221. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  222. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  223. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  224. package/dist/cjs/calcite-action.cjs.entry.js +20 -18
  225. package/dist/cjs/calcite-alert.cjs.entry.js +16 -28
  226. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  227. package/dist/cjs/calcite-block_2.cjs.entry.js +15 -15
  228. package/dist/cjs/calcite-button.cjs.entry.js +16 -16
  229. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  230. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
  231. package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
  232. package/dist/cjs/calcite-chip.cjs.entry.js +14 -14
  233. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
  234. package/dist/cjs/calcite-combobox_3.cjs.entry.js +249 -45
  235. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -15
  236. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -14
  237. package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
  238. package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
  239. package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
  240. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  241. package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
  242. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  243. package/dist/cjs/calcite-headless-100c2f24.js +24 -0
  244. package/dist/cjs/calcite-icon.cjs.entry.js +12 -7
  245. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
  246. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +20 -20
  247. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  248. package/dist/cjs/calcite-input-number.cjs.entry.js +16 -15
  249. package/dist/cjs/calcite-input-text.cjs.entry.js +15 -15
  250. package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-d75d4494.js → calcite-input-time-picker.calcite-time-picker-30d23b46.js} +63 -63
  251. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +19 -19
  252. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +16 -16
  253. package/dist/cjs/calcite-input.cjs.entry.js +15 -15
  254. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  255. package/dist/cjs/calcite-link.cjs.entry.js +8 -8
  256. package/dist/cjs/calcite-list_3.cjs.entry.js +71 -25
  257. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  258. package/dist/cjs/calcite-menu_2.cjs.entry.js +11 -11
  259. package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
  260. package/dist/cjs/calcite-modal.cjs.entry.js +14 -14
  261. package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
  262. package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
  263. package/dist/cjs/calcite-option_3.cjs.entry.js +12 -12
  264. package/dist/cjs/calcite-pagination.cjs.entry.js +33 -17
  265. package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
  266. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
  267. package/dist/cjs/calcite-popover.cjs.entry.js +17 -17
  268. package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
  269. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  270. package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
  271. package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
  272. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  273. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
  274. package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
  275. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  276. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
  277. package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
  278. package/dist/cjs/calcite-stack.cjs.entry.js +7 -7
  279. package/dist/cjs/calcite-stepper_2.cjs.entry.js +178 -53
  280. package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
  281. package/dist/cjs/calcite-tab_4.cjs.entry.js +12 -12
  282. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
  283. package/dist/cjs/calcite-table-row.cjs.entry.js +9 -9
  284. package/dist/cjs/calcite-table.cjs.entry.js +11 -11
  285. package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
  286. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
  287. package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
  288. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  289. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  290. package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
  291. package/dist/cjs/calcite-value-list_2.cjs.entry.js +20 -18
  292. package/dist/cjs/calcite.cjs.js +5 -5
  293. package/dist/cjs/{component-cc4e4240.js → component-8aad1833.js} +1 -1
  294. package/dist/cjs/{conditionalSlot-1fc0b669.js → conditionalSlot-029eaa09.js} +3 -3
  295. package/dist/cjs/{cs-41055e91.js → cs-626e4e08.js} +19 -19
  296. package/dist/cjs/{da-a01d50e2.js → da-8c0452e7.js} +19 -19
  297. package/dist/cjs/{de-at-90c03f91.js → de-at-a096c7ab.js} +19 -19
  298. package/dist/cjs/{de-da54e322.js → de-cf2c51db.js} +19 -19
  299. package/dist/cjs/{de-ch-607bd582.js → de-ch-90dffa7b.js} +19 -19
  300. package/dist/cjs/{debounce-517afb69.js → debounce-e86475fb.js} +1 -1
  301. package/dist/cjs/{dom-e819dcdd.js → dom-b708de15.js} +34 -3
  302. package/dist/cjs/{el-5e23a2de.js → el-5195c0e4.js} +19 -19
  303. package/dist/cjs/{en-au-44f005b6.js → en-au-97da33e0.js} +19 -19
  304. package/dist/cjs/{en-ca-0b2b4033.js → en-ca-36fa64d1.js} +19 -19
  305. package/dist/cjs/{en-gb-57cc6f0d.js → en-gb-239a7d71.js} +19 -19
  306. package/dist/cjs/{es-f3960e65.js → es-4e01fa59.js} +19 -19
  307. package/dist/cjs/{es-mx-bf896afb.js → es-mx-de05d856.js} +19 -19
  308. package/dist/cjs/{et-4add7839.js → et-6208c645.js} +19 -19
  309. package/dist/cjs/{fi-8486836e.js → fi-487f6c69.js} +19 -19
  310. package/dist/cjs/{filter-444cc54a.js → filter-beb6a5bb.js} +2 -2
  311. package/dist/cjs/{floating-ui-f4d4ed7e.js → floating-ui-9bc6fbbb.js} +3 -3
  312. package/dist/cjs/{focusTrapComponent-8baf2471.js → focusTrapComponent-8b961e53.js} +2 -2
  313. package/dist/cjs/{form-836b1132.js → form-1432ae43.js} +3 -3
  314. package/dist/cjs/{fr-83e3e68f.js → fr-893f32d3.js} +19 -19
  315. package/dist/cjs/{fr-ch-356148bd.js → fr-ch-6be04680.js} +19 -19
  316. package/dist/cjs/{globalAttributes-39472f2b.js → globalAttributes-e291e30c.js} +2 -2
  317. package/dist/cjs/{guid-110950eb.js → guid-bc43d543.js} +1 -1
  318. package/dist/cjs/{he-ab838dd8.js → he-a24f489f.js} +19 -19
  319. package/dist/cjs/{hi-a4df7df7.js → hi-cd906fae.js} +19 -19
  320. package/dist/cjs/{hr-6a244ee6.js → hr-9d2e335e.js} +19 -19
  321. package/dist/cjs/{hu-e6c2b8ae.js → hu-7a8eaac4.js} +19 -19
  322. package/dist/cjs/{id-433c9c0c.js → id-43f5e5d9.js} +19 -19
  323. package/dist/cjs/{index-d3cd79c5.js → index-54686409.js} +1 -1
  324. package/dist/cjs/{index-2d03a5f6.js → index-e433dc3a.js} +4 -1
  325. package/dist/cjs/{index-6cf28284.js → index-fec1dd6a.js} +1 -1
  326. package/dist/cjs/index.cjs.js +2 -2
  327. package/dist/cjs/{interactive-fb8196d1.js → interactive-79b6c5f7.js} +2 -2
  328. package/dist/cjs/{it-0419def2.js → it-227ed84a.js} +19 -19
  329. package/dist/cjs/{it-ch-7ee6421e.js → it-ch-59eb2448.js} +19 -19
  330. package/dist/cjs/{ja-7ca65e75.js → ja-c8a9d9c0.js} +19 -19
  331. package/dist/cjs/{key-5c3e896e.js → key-a08abeaa.js} +1 -1
  332. package/dist/cjs/{ko-cf479927.js → ko-0ac011e4.js} +19 -19
  333. package/dist/cjs/{label-d1b6e837.js → label-81185d54.js} +2 -2
  334. package/dist/cjs/{loadable-22655756.js → loadable-47839cdc.js} +2 -2
  335. package/dist/cjs/loader.cjs.js +5 -5
  336. package/dist/cjs/{locale-d8f3aec6.js → locale-a273bc0a.js} +4 -4
  337. package/dist/cjs/{lt-6741d6b9.js → lt-ef27ec1d.js} +19 -19
  338. package/dist/cjs/{lv-1cd2b694.js → lv-2769a550.js} +19 -19
  339. package/dist/cjs/{math-92d3e439.js → math-21cdbe9b.js} +1 -1
  340. package/dist/cjs/{mk-62376b7e.js → mk-f0f56ca8.js} +19 -19
  341. package/dist/cjs/{nb-cbf025fa.js → nb-f65179fa.js} +19 -19
  342. package/dist/cjs/{nl-4ed5adc1.js → nl-76e543ac.js} +19 -19
  343. package/dist/cjs/{observers-e24ab32a.js → observers-ad39b7aa.js} +1 -1
  344. package/dist/cjs/{openCloseComponent-29d8b681.js → openCloseComponent-1dd76bff.js} +2 -2
  345. package/dist/cjs/{pl-20285807.js → pl-ccffbc47.js} +19 -19
  346. package/dist/cjs/{pt-b14a9527.js → pt-606851d9.js} +19 -19
  347. package/dist/cjs/{pt-br-9a11a695.js → pt-br-8871fcd6.js} +19 -19
  348. package/dist/cjs/{resources-0cb8f03f.js → resources-538fd86a.js} +1 -1
  349. package/dist/cjs/{resources-5390514a.js → resources-7689dd18.js} +1 -1
  350. package/dist/cjs/{resources-08bc2c78.js → resources-8a8a085c.js} +1 -1
  351. package/dist/cjs/{resources-2eac7c94.js → resources-a31ffd1a.js} +1 -1
  352. package/dist/cjs/{resources-5e3a8e11.js → resources-bc410e57.js} +1 -1
  353. package/dist/cjs/{resources-5a02612a.js → resources-be1fae04.js} +1 -1
  354. package/dist/cjs/{resources-08545b80.js → resources-ee8db988.js} +5 -5
  355. package/dist/cjs/{ro-db6dedc1.js → ro-ceffedd3.js} +19 -19
  356. package/dist/cjs/{ru-8f301e67.js → ru-bc2fc8eb.js} +19 -19
  357. package/dist/cjs/{sk-efa59ce5.js → sk-ac0a4b37.js} +19 -19
  358. package/dist/cjs/{sl-c453c3a4.js → sl-8ed88152.js} +19 -19
  359. package/dist/cjs/{sortableComponent-4dc5871f.js → sortableComponent-6820d30d.js} +1 -1
  360. package/dist/cjs/{sr-39424de9.js → sr-22a785ba.js} +19 -19
  361. package/dist/cjs/{sv-06a9e97f.js → sv-5a861b5d.js} +19 -19
  362. package/dist/cjs/{t9n-1e246c39.js → t9n-3fe28893.js} +3 -3
  363. package/dist/cjs/{th-c5a0a4fc.js → th-3d0ab71f.js} +19 -19
  364. package/dist/cjs/{throttle-f9aad32b.js → throttle-3d34c1bb.js} +2 -2
  365. package/dist/cjs/{tr-07426765.js → tr-f8f2c671.js} +19 -19
  366. package/dist/cjs/{uk-70f04e07.js → uk-070096cc.js} +19 -19
  367. package/dist/cjs/{utils-05ef4ac0.js → utils-1cbe3495.js} +1 -1
  368. package/dist/cjs/{utils-039f8fc9.js → utils-3261c8fc.js} +3 -3
  369. package/dist/cjs/{vi-82615475.js → vi-55801cf4.js} +19 -19
  370. package/dist/cjs/{zh-cn-512f6bd5.js → zh-cn-6242a8db.js} +19 -19
  371. package/dist/cjs/{zh-hk-aecce206.js → zh-hk-5c381c13.js} +19 -19
  372. package/dist/cjs/{zh-tw-fb43a361.js → zh-tw-5e974ebf.js} +19 -19
  373. package/dist/collection/components/accordion/accordion.css +1 -1
  374. package/dist/collection/components/accordion/accordion.js +1 -1
  375. package/dist/collection/components/accordion-item/accordion-item.css +1 -1
  376. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  377. package/dist/collection/components/accordion-item/resources.js +1 -1
  378. package/dist/collection/components/action/action.css +37 -42
  379. package/dist/collection/components/action/action.js +5 -5
  380. package/dist/collection/components/action/resources.js +3 -1
  381. package/dist/collection/components/action-bar/action-bar.css +1 -1
  382. package/dist/collection/components/action-bar/action-bar.js +1 -1
  383. package/dist/collection/components/action-bar/resources.js +1 -1
  384. package/dist/collection/components/action-bar/utils.js +1 -1
  385. package/dist/collection/components/action-group/action-group.css +1 -1
  386. package/dist/collection/components/action-group/action-group.js +1 -1
  387. package/dist/collection/components/action-group/resources.js +1 -1
  388. package/dist/collection/components/action-menu/action-menu.css +1 -1
  389. package/dist/collection/components/action-menu/action-menu.js +1 -1
  390. package/dist/collection/components/action-menu/resources.js +1 -1
  391. package/dist/collection/components/action-pad/action-pad.css +1 -1
  392. package/dist/collection/components/action-pad/action-pad.js +1 -1
  393. package/dist/collection/components/action-pad/resources.js +1 -1
  394. package/dist/collection/components/alert/alert.css +15 -64
  395. package/dist/collection/components/alert/alert.js +4 -18
  396. package/dist/collection/components/alert/resources.js +1 -1
  397. package/dist/collection/components/avatar/avatar.css +1 -1
  398. package/dist/collection/components/avatar/avatar.js +1 -1
  399. package/dist/collection/components/avatar/utils.js +1 -1
  400. package/dist/collection/components/block/block.css +1 -1
  401. package/dist/collection/components/block/block.js +1 -1
  402. package/dist/collection/components/block/resources.js +1 -1
  403. package/dist/collection/components/block-section/block-section.css +1 -1
  404. package/dist/collection/components/block-section/block-section.js +1 -1
  405. package/dist/collection/components/block-section/resources.js +1 -1
  406. package/dist/collection/components/button/button.css +1 -1
  407. package/dist/collection/components/button/button.js +1 -1
  408. package/dist/collection/components/button/resources.js +1 -1
  409. package/dist/collection/components/card/card.css +1 -1
  410. package/dist/collection/components/card/card.js +1 -1
  411. package/dist/collection/components/card/resources.js +1 -1
  412. package/dist/collection/components/checkbox/checkbox.css +1 -1
  413. package/dist/collection/components/checkbox/checkbox.js +1 -1
  414. package/dist/collection/components/chip/chip.css +1 -1
  415. package/dist/collection/components/chip/chip.js +1 -1
  416. package/dist/collection/components/chip/resources.js +1 -1
  417. package/dist/collection/components/chip-group/chip-group.css +1 -1
  418. package/dist/collection/components/chip-group/chip-group.js +1 -1
  419. package/dist/collection/components/color-picker/color-picker.css +1 -1
  420. package/dist/collection/components/color-picker/color-picker.js +1 -1
  421. package/dist/collection/components/color-picker/resources.js +1 -1
  422. package/dist/collection/components/color-picker/utils.js +1 -1
  423. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +1 -1
  424. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  425. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  426. package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +1 -1
  427. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  428. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  429. package/dist/collection/components/combobox/assets/combobox/t9n/index.d.ts +3 -0
  430. package/dist/collection/components/combobox/assets/combobox/t9n/messages.json +4 -1
  431. package/dist/collection/components/combobox/assets/combobox/t9n/messages_en.json +4 -1
  432. package/dist/collection/components/combobox/combobox.css +29 -5
  433. package/dist/collection/components/combobox/combobox.js +262 -32
  434. package/dist/collection/components/combobox/resources.js +4 -1
  435. package/dist/collection/components/combobox/utils.js +1 -1
  436. package/dist/collection/components/combobox-item/combobox-item.css +1 -1
  437. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  438. package/dist/collection/components/combobox-item/resources.js +1 -1
  439. package/dist/collection/components/combobox-item-group/combobox-item-group.css +1 -1
  440. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  441. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  442. package/dist/collection/components/date-picker/date-picker.css +1 -1
  443. package/dist/collection/components/date-picker/date-picker.js +1 -1
  444. package/dist/collection/components/date-picker/resources.js +1 -1
  445. package/dist/collection/components/date-picker/utils.js +1 -1
  446. package/dist/collection/components/date-picker-day/date-picker-day.css +1 -1
  447. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  448. package/dist/collection/components/date-picker-month/date-picker-month.css +1 -1
  449. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  450. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -1
  451. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  452. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  453. package/dist/collection/components/dropdown/dropdown.css +1 -1
  454. package/dist/collection/components/dropdown/dropdown.js +1 -1
  455. package/dist/collection/components/dropdown/resources.js +1 -1
  456. package/dist/collection/components/dropdown-group/dropdown-group.css +1 -1
  457. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  458. package/dist/collection/components/dropdown-item/dropdown-item.css +1 -1
  459. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  460. package/dist/collection/components/dropdown-item/resources.js +1 -1
  461. package/dist/collection/components/fab/fab.css +1 -1
  462. package/dist/collection/components/fab/fab.js +1 -1
  463. package/dist/collection/components/fab/resources.js +1 -1
  464. package/dist/collection/components/filter/filter.css +1 -1
  465. package/dist/collection/components/filter/filter.js +1 -1
  466. package/dist/collection/components/filter/resources.js +1 -1
  467. package/dist/collection/components/flow/flow.css +1 -1
  468. package/dist/collection/components/flow/flow.js +1 -1
  469. package/dist/collection/components/flow/resources.js +1 -1
  470. package/dist/collection/components/flow-item/flow-item.css +1 -1
  471. package/dist/collection/components/flow-item/flow-item.js +1 -1
  472. package/dist/collection/components/flow-item/resources.js +1 -1
  473. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  474. package/dist/collection/components/functional/FloatingArrow.js +4 -2
  475. package/dist/collection/components/functional/Heading.js +1 -1
  476. package/dist/collection/components/functional/XButton.js +1 -1
  477. package/dist/collection/components/graph/graph.css +1 -1
  478. package/dist/collection/components/graph/graph.js +1 -1
  479. package/dist/collection/components/graph/util.js +1 -1
  480. package/dist/collection/components/handle/handle.css +1 -1
  481. package/dist/collection/components/handle/handle.js +1 -1
  482. package/dist/collection/components/handle/resources.js +1 -1
  483. package/dist/collection/components/icon/icon.css +1 -1
  484. package/dist/collection/components/icon/icon.js +7 -2
  485. package/dist/collection/components/icon/resources.js +1 -1
  486. package/dist/collection/components/icon/utils.js +1 -1
  487. package/dist/collection/components/inline-editable/inline-editable.css +1 -1
  488. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  489. package/dist/collection/components/inline-editable/resources.js +1 -1
  490. package/dist/collection/components/input/input.css +1 -1
  491. package/dist/collection/components/input/input.js +1 -1
  492. package/dist/collection/components/input/resources.js +1 -1
  493. package/dist/collection/components/input-date-picker/input-date-picker.css +1 -1
  494. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  495. package/dist/collection/components/input-date-picker/resources.js +1 -1
  496. package/dist/collection/components/input-date-picker/utils.js +1 -1
  497. package/dist/collection/components/input-message/input-message.css +1 -1
  498. package/dist/collection/components/input-message/input-message.js +1 -1
  499. package/dist/collection/components/input-message/interfaces.js +1 -1
  500. package/dist/collection/components/input-number/input-number.css +1 -1
  501. package/dist/collection/components/input-number/input-number.js +2 -1
  502. package/dist/collection/components/input-number/resources.js +1 -1
  503. package/dist/collection/components/input-text/input-text.css +1 -1
  504. package/dist/collection/components/input-text/input-text.js +1 -1
  505. package/dist/collection/components/input-text/resources.js +1 -1
  506. package/dist/collection/components/input-time-picker/input-time-picker.css +1 -1
  507. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  508. package/dist/collection/components/input-time-picker/resources.js +1 -1
  509. package/dist/collection/components/input-time-zone/input-time-zone.css +1 -1
  510. package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
  511. package/dist/collection/components/input-time-zone/utils.js +1 -1
  512. package/dist/collection/components/label/label.css +1 -1
  513. package/dist/collection/components/label/label.js +1 -1
  514. package/dist/collection/components/label/resources.js +1 -1
  515. package/dist/collection/components/link/link.css +1 -1
  516. package/dist/collection/components/link/link.js +1 -1
  517. package/dist/collection/components/list/list.css +12 -5
  518. package/dist/collection/components/list/list.js +26 -1
  519. package/dist/collection/components/list/resources.js +1 -1
  520. package/dist/collection/components/list-item/list-item.css +19 -4
  521. package/dist/collection/components/list-item/list-item.js +30 -9
  522. package/dist/collection/components/list-item/resources.js +3 -1
  523. package/dist/collection/components/list-item/utils.js +1 -1
  524. package/dist/collection/components/list-item-group/list-item-group.css +6 -5
  525. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  526. package/dist/collection/components/list-item-group/resources.js +1 -1
  527. package/dist/collection/components/loader/loader.css +1 -1
  528. package/dist/collection/components/loader/loader.js +1 -1
  529. package/dist/collection/components/menu/menu.css +1 -1
  530. package/dist/collection/components/menu/menu.js +1 -1
  531. package/dist/collection/components/menu-item/menu-item.css +1 -1
  532. package/dist/collection/components/menu-item/menu-item.js +1 -1
  533. package/dist/collection/components/menu-item/resources.js +1 -1
  534. package/dist/collection/components/meter/meter.css +1 -1
  535. package/dist/collection/components/meter/meter.js +1 -1
  536. package/dist/collection/components/meter/resources.js +1 -1
  537. package/dist/collection/components/modal/modal.css +1 -1
  538. package/dist/collection/components/modal/modal.js +1 -1
  539. package/dist/collection/components/modal/resources.js +1 -1
  540. package/dist/collection/components/navigation/navigation.css +1 -1
  541. package/dist/collection/components/navigation/navigation.js +1 -1
  542. package/dist/collection/components/navigation/resources.js +1 -1
  543. package/dist/collection/components/navigation-logo/navigation-logo.css +1 -1
  544. package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
  545. package/dist/collection/components/navigation-logo/resources.js +1 -1
  546. package/dist/collection/components/navigation-user/navigation-user.css +1 -1
  547. package/dist/collection/components/navigation-user/navigation-user.js +1 -1
  548. package/dist/collection/components/navigation-user/resources.js +1 -1
  549. package/dist/collection/components/notice/notice.css +1 -1
  550. package/dist/collection/components/notice/notice.js +1 -1
  551. package/dist/collection/components/notice/resources.js +1 -1
  552. package/dist/collection/components/option/option.css +1 -1
  553. package/dist/collection/components/option/option.js +1 -1
  554. package/dist/collection/components/option-group/option-group.css +1 -1
  555. package/dist/collection/components/option-group/option-group.js +1 -1
  556. package/dist/collection/components/pagination/pagination.css +1 -1
  557. package/dist/collection/components/pagination/pagination.js +1 -1
  558. package/dist/collection/components/pagination/resources.js +1 -1
  559. package/dist/collection/components/panel/panel.css +1 -1
  560. package/dist/collection/components/panel/panel.js +1 -1
  561. package/dist/collection/components/panel/resources.js +1 -1
  562. package/dist/collection/components/pick-list/pick-list.css +1 -1
  563. package/dist/collection/components/pick-list/pick-list.js +1 -1
  564. package/dist/collection/components/pick-list/resources.js +1 -1
  565. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  566. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  567. package/dist/collection/components/pick-list-group/pick-list-group.css +1 -1
  568. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  569. package/dist/collection/components/pick-list-group/resources.js +1 -1
  570. package/dist/collection/components/pick-list-item/pick-list-item.css +1 -1
  571. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  572. package/dist/collection/components/pick-list-item/resources.js +1 -1
  573. package/dist/collection/components/popover/PopoverManager.js +1 -1
  574. package/dist/collection/components/popover/popover.css +1 -1
  575. package/dist/collection/components/popover/popover.js +1 -1
  576. package/dist/collection/components/popover/resources.js +1 -1
  577. package/dist/collection/components/progress/progress.css +1 -1
  578. package/dist/collection/components/progress/progress.js +1 -1
  579. package/dist/collection/components/radio-button/radio-button.css +1 -1
  580. package/dist/collection/components/radio-button/radio-button.js +1 -1
  581. package/dist/collection/components/radio-button/resources.js +1 -1
  582. package/dist/collection/components/radio-button-group/radio-button-group.css +1 -1
  583. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  584. package/dist/collection/components/rating/functional/star.js +1 -1
  585. package/dist/collection/components/rating/rating.css +1 -1
  586. package/dist/collection/components/rating/rating.js +1 -1
  587. package/dist/collection/components/resources.js +1 -1
  588. package/dist/collection/components/scrim/resources.js +1 -1
  589. package/dist/collection/components/scrim/scrim.css +1 -1
  590. package/dist/collection/components/scrim/scrim.js +1 -1
  591. package/dist/collection/components/segmented-control/segmented-control.css +1 -1
  592. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  593. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  594. package/dist/collection/components/segmented-control-item/segmented-control-item.css +1 -1
  595. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  596. package/dist/collection/components/select/resources.js +1 -1
  597. package/dist/collection/components/select/select.css +1 -1
  598. package/dist/collection/components/select/select.js +1 -1
  599. package/dist/collection/components/sheet/resources.js +1 -1
  600. package/dist/collection/components/sheet/sheet.css +1 -1
  601. package/dist/collection/components/sheet/sheet.js +1 -1
  602. package/dist/collection/components/shell/resources.js +1 -1
  603. package/dist/collection/components/shell/shell.css +1 -1
  604. package/dist/collection/components/shell/shell.js +1 -1
  605. package/dist/collection/components/shell-center-row/resources.js +1 -1
  606. package/dist/collection/components/shell-center-row/shell-center-row.css +1 -1
  607. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  608. package/dist/collection/components/shell-panel/resources.js +1 -1
  609. package/dist/collection/components/shell-panel/shell-panel.css +1 -1
  610. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  611. package/dist/collection/components/slider/resources.js +1 -1
  612. package/dist/collection/components/slider/slider.css +1 -1
  613. package/dist/collection/components/slider/slider.js +1 -1
  614. package/dist/collection/components/sortable-list/resources.js +1 -1
  615. package/dist/collection/components/sortable-list/sortable-list.css +1 -1
  616. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  617. package/dist/collection/components/split-button/resources.js +1 -1
  618. package/dist/collection/components/split-button/split-button.css +1 -1
  619. package/dist/collection/components/split-button/split-button.js +1 -1
  620. package/dist/collection/components/stack/resources.js +1 -1
  621. package/dist/collection/components/stack/stack.css +8 -2
  622. package/dist/collection/components/stack/stack.js +1 -1
  623. package/dist/collection/components/stepper/assets/stepper/t9n/index.d.ts +2 -0
  624. package/dist/collection/components/stepper/assets/stepper/t9n/messages.json +3 -1
  625. package/dist/collection/components/stepper/assets/stepper/t9n/messages_ar.json +3 -1
  626. package/dist/collection/components/stepper/assets/stepper/t9n/messages_bg.json +3 -1
  627. package/dist/collection/components/stepper/assets/stepper/t9n/messages_bs.json +3 -1
  628. package/dist/collection/components/stepper/assets/stepper/t9n/messages_ca.json +3 -1
  629. package/dist/collection/components/stepper/assets/stepper/t9n/messages_cs.json +3 -1
  630. package/dist/collection/components/stepper/assets/stepper/t9n/messages_da.json +3 -1
  631. package/dist/collection/components/stepper/assets/stepper/t9n/messages_de.json +3 -1
  632. package/dist/collection/components/stepper/assets/stepper/t9n/messages_el.json +3 -1
  633. package/dist/collection/components/stepper/assets/stepper/t9n/messages_en.json +3 -1
  634. package/dist/collection/components/stepper/assets/stepper/t9n/messages_es.json +3 -1
  635. package/dist/collection/components/stepper/assets/stepper/t9n/messages_et.json +3 -1
  636. package/dist/collection/components/stepper/assets/stepper/t9n/messages_fi.json +3 -1
  637. package/dist/collection/components/stepper/assets/stepper/t9n/messages_fr.json +3 -1
  638. package/dist/collection/components/stepper/assets/stepper/t9n/messages_he.json +3 -1
  639. package/dist/collection/components/stepper/assets/stepper/t9n/messages_hr.json +3 -1
  640. package/dist/collection/components/stepper/assets/stepper/t9n/messages_hu.json +3 -1
  641. package/dist/collection/components/stepper/assets/stepper/t9n/messages_id.json +3 -1
  642. package/dist/collection/components/stepper/assets/stepper/t9n/messages_it.json +3 -1
  643. package/dist/collection/components/stepper/assets/stepper/t9n/messages_ja.json +3 -1
  644. package/dist/collection/components/stepper/assets/stepper/t9n/messages_ko.json +3 -1
  645. package/dist/collection/components/stepper/assets/stepper/t9n/messages_lt.json +3 -1
  646. package/dist/collection/components/stepper/assets/stepper/t9n/messages_lv.json +3 -1
  647. package/dist/collection/components/stepper/assets/stepper/t9n/messages_nl.json +3 -1
  648. package/dist/collection/components/stepper/assets/stepper/t9n/messages_no.json +3 -1
  649. package/dist/collection/components/stepper/assets/stepper/t9n/messages_pl.json +3 -1
  650. package/dist/collection/components/stepper/assets/stepper/t9n/messages_pt-BR.json +3 -1
  651. package/dist/collection/components/stepper/assets/stepper/t9n/messages_pt-PT.json +3 -1
  652. package/dist/collection/components/stepper/assets/stepper/t9n/messages_ro.json +3 -1
  653. package/dist/collection/components/stepper/assets/stepper/t9n/messages_ru.json +3 -1
  654. package/dist/collection/components/stepper/assets/stepper/t9n/messages_sk.json +3 -1
  655. package/dist/collection/components/stepper/assets/stepper/t9n/messages_sl.json +3 -1
  656. package/dist/collection/components/stepper/assets/stepper/t9n/messages_sr.json +3 -1
  657. package/dist/collection/components/stepper/assets/stepper/t9n/messages_sv.json +3 -1
  658. package/dist/collection/components/stepper/assets/stepper/t9n/messages_th.json +3 -1
  659. package/dist/collection/components/stepper/assets/stepper/t9n/messages_tr.json +3 -1
  660. package/dist/collection/components/stepper/assets/stepper/t9n/messages_uk.json +3 -1
  661. package/dist/collection/components/stepper/assets/stepper/t9n/messages_vi.json +3 -1
  662. package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-CN.json +3 -1
  663. package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-HK.json +3 -1
  664. package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-TW.json +3 -1
  665. package/dist/collection/components/stepper/functional/step-bar.js +23 -0
  666. package/dist/collection/components/stepper/resources.js +18 -0
  667. package/dist/collection/components/stepper/stepper.css +96 -3
  668. package/dist/collection/components/stepper/stepper.js +133 -36
  669. package/dist/collection/components/stepper-item/resources.js +1 -1
  670. package/dist/collection/components/stepper-item/stepper-item.css +36 -14
  671. package/dist/collection/components/stepper-item/stepper-item.js +34 -9
  672. package/dist/collection/components/switch/switch.css +1 -1
  673. package/dist/collection/components/switch/switch.js +1 -1
  674. package/dist/collection/components/tab/resources.js +1 -1
  675. package/dist/collection/components/tab/tab.css +1 -1
  676. package/dist/collection/components/tab/tab.js +1 -1
  677. package/dist/collection/components/tab-nav/resources.js +1 -1
  678. package/dist/collection/components/tab-nav/tab-nav.css +1 -1
  679. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  680. package/dist/collection/components/tab-title/resources.js +1 -1
  681. package/dist/collection/components/tab-title/tab-title.css +1 -1
  682. package/dist/collection/components/tab-title/tab-title.js +1 -1
  683. package/dist/collection/components/table/resources.js +1 -1
  684. package/dist/collection/components/table/table.css +1 -1
  685. package/dist/collection/components/table/table.js +1 -1
  686. package/dist/collection/components/table-cell/resources.js +1 -1
  687. package/dist/collection/components/table-cell/table-cell.css +1 -1
  688. package/dist/collection/components/table-cell/table-cell.js +1 -1
  689. package/dist/collection/components/table-header/resources.js +1 -1
  690. package/dist/collection/components/table-header/table-header.css +1 -1
  691. package/dist/collection/components/table-header/table-header.js +1 -1
  692. package/dist/collection/components/table-row/table-row.css +1 -1
  693. package/dist/collection/components/table-row/table-row.js +1 -1
  694. package/dist/collection/components/tabs/resources.js +1 -1
  695. package/dist/collection/components/tabs/tabs.css +1 -1
  696. package/dist/collection/components/tabs/tabs.js +1 -1
  697. package/dist/collection/components/text-area/resources.js +1 -1
  698. package/dist/collection/components/text-area/text-area.css +1 -1
  699. package/dist/collection/components/text-area/text-area.js +1 -1
  700. package/dist/collection/components/tile/resources.js +1 -1
  701. package/dist/collection/components/tile/tile.css +1 -1
  702. package/dist/collection/components/tile/tile.js +1 -1
  703. package/dist/collection/components/tile-select/resources.js +1 -1
  704. package/dist/collection/components/tile-select/tile-select.css +1 -1
  705. package/dist/collection/components/tile-select/tile-select.js +1 -1
  706. package/dist/collection/components/tile-select-group/tile-select-group.css +1 -1
  707. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  708. package/dist/collection/components/time-picker/resources.js +1 -1
  709. package/dist/collection/components/time-picker/time-picker.css +1 -1
  710. package/dist/collection/components/time-picker/time-picker.js +1 -1
  711. package/dist/collection/components/tip/resources.js +1 -1
  712. package/dist/collection/components/tip/tip.css +1 -1
  713. package/dist/collection/components/tip/tip.js +1 -1
  714. package/dist/collection/components/tip-group/tip-group.css +1 -1
  715. package/dist/collection/components/tip-group/tip-group.js +1 -1
  716. package/dist/collection/components/tip-manager/resources.js +1 -1
  717. package/dist/collection/components/tip-manager/tip-manager.css +1 -1
  718. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  719. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  720. package/dist/collection/components/tooltip/resources.js +1 -1
  721. package/dist/collection/components/tooltip/tooltip.css +1 -1
  722. package/dist/collection/components/tooltip/tooltip.js +1 -1
  723. package/dist/collection/components/tooltip/utils.js +1 -1
  724. package/dist/collection/components/tree/tree.css +1 -1
  725. package/dist/collection/components/tree/tree.js +1 -1
  726. package/dist/collection/components/tree/utils.js +1 -1
  727. package/dist/collection/components/tree-item/resources.js +1 -1
  728. package/dist/collection/components/tree-item/tree-item.css +1 -1
  729. package/dist/collection/components/tree-item/tree-item.js +1 -1
  730. package/dist/collection/components/value-list/resources.js +1 -1
  731. package/dist/collection/components/value-list/utils.js +1 -1
  732. package/dist/collection/components/value-list/value-list.css +1 -1
  733. package/dist/collection/components/value-list/value-list.js +1 -1
  734. package/dist/collection/components/value-list-item/resources.js +1 -1
  735. package/dist/collection/components/value-list-item/value-list-item.css +1 -1
  736. package/dist/collection/components/value-list-item/value-list-item.js +4 -2
  737. package/dist/collection/index.js +1 -1
  738. package/dist/collection/utils/array.js +1 -1
  739. package/dist/collection/utils/browser.js +1 -1
  740. package/dist/collection/utils/component.js +1 -1
  741. package/dist/collection/utils/conditionalSlot.js +1 -1
  742. package/dist/collection/utils/config.js +1 -1
  743. package/dist/collection/utils/date.js +1 -1
  744. package/dist/collection/utils/dom.js +30 -1
  745. package/dist/collection/utils/filter.js +1 -1
  746. package/dist/collection/utils/floating-ui.js +1 -1
  747. package/dist/collection/utils/focusTrapComponent.js +1 -1
  748. package/dist/collection/utils/form.js +1 -1
  749. package/dist/collection/utils/globalAttributes.js +1 -1
  750. package/dist/collection/utils/globalScript.js +1 -1
  751. package/dist/collection/utils/guid.js +1 -1
  752. package/dist/collection/utils/interactive.js +1 -1
  753. package/dist/collection/utils/key.js +1 -1
  754. package/dist/collection/utils/label.js +1 -1
  755. package/dist/collection/utils/loadable.js +1 -1
  756. package/dist/collection/utils/locale.js +1 -1
  757. package/dist/collection/utils/math.js +1 -1
  758. package/dist/collection/utils/mode.js +1 -1
  759. package/dist/collection/utils/number.js +1 -1
  760. package/dist/collection/utils/observers.js +1 -1
  761. package/dist/collection/utils/openCloseComponent.js +1 -1
  762. package/dist/collection/utils/resources.js +1 -1
  763. package/dist/collection/utils/responsive.js +1 -1
  764. package/dist/collection/utils/sortableComponent.js +1 -1
  765. package/dist/collection/utils/t9n.js +1 -1
  766. package/dist/collection/utils/time.js +1 -1
  767. package/dist/components/ExpandToggle.js +1 -1
  768. package/dist/components/FloatingArrow.js +4 -2
  769. package/dist/components/Heading.js +1 -1
  770. package/dist/components/action-group.js +1 -1
  771. package/dist/components/action-menu.js +1 -1
  772. package/dist/components/action.js +8 -6
  773. package/dist/components/ar.js +1 -1
  774. package/dist/components/array.js +1 -1
  775. package/dist/components/avatar.js +1 -1
  776. package/dist/components/bg.js +1 -1
  777. package/dist/components/bs.js +1 -1
  778. package/dist/components/button.js +1 -1
  779. package/dist/components/ca.js +1 -1
  780. package/dist/components/calcite-accordion-item.js +1 -1
  781. package/dist/components/calcite-accordion.js +1 -1
  782. package/dist/components/calcite-action-bar.js +1 -1
  783. package/dist/components/calcite-action-group.js +1 -1
  784. package/dist/components/calcite-action-menu.js +1 -1
  785. package/dist/components/calcite-action-pad.js +1 -1
  786. package/dist/components/calcite-action.js +1 -1
  787. package/dist/components/calcite-alert.js +4 -18
  788. package/dist/components/calcite-avatar.js +1 -1
  789. package/dist/components/calcite-block-section.js +1 -1
  790. package/dist/components/calcite-block.js +1 -1
  791. package/dist/components/calcite-button.js +1 -1
  792. package/dist/components/calcite-card.js +1 -1
  793. package/dist/components/calcite-checkbox.js +1 -1
  794. package/dist/components/calcite-chip-group.js +1 -1
  795. package/dist/components/calcite-chip.js +1 -1
  796. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  797. package/dist/components/calcite-color-picker-swatch.js +1 -1
  798. package/dist/components/calcite-color-picker.js +1 -1
  799. package/dist/components/calcite-combobox-item-group.js +1 -1
  800. package/dist/components/calcite-combobox-item.js +1 -1
  801. package/dist/components/calcite-combobox.js +1 -1
  802. package/dist/components/calcite-date-picker-day.js +1 -1
  803. package/dist/components/calcite-date-picker-month-header.js +1 -1
  804. package/dist/components/calcite-date-picker-month.js +1 -1
  805. package/dist/components/calcite-date-picker.js +1 -1
  806. package/dist/components/calcite-dropdown-group.js +1 -1
  807. package/dist/components/calcite-dropdown-item.js +1 -1
  808. package/dist/components/calcite-dropdown.js +1 -1
  809. package/dist/components/calcite-fab.js +1 -1
  810. package/dist/components/calcite-filter.js +1 -1
  811. package/dist/components/calcite-flow-item.js +1 -1
  812. package/dist/components/calcite-flow.js +1 -1
  813. package/dist/components/calcite-graph.js +1 -1
  814. package/dist/components/calcite-handle.js +1 -1
  815. package/dist/components/calcite-headless.js +17 -0
  816. package/dist/components/calcite-icon.js +1 -1
  817. package/dist/components/calcite-inline-editable.js +1 -1
  818. package/dist/components/calcite-input-date-picker.js +1 -1
  819. package/dist/components/calcite-input-message.js +1 -1
  820. package/dist/components/calcite-input-number.js +1 -1
  821. package/dist/components/calcite-input-text.js +1 -1
  822. package/dist/components/calcite-input-time-picker.js +1 -1
  823. package/dist/components/calcite-input-time-zone.js +1 -1
  824. package/dist/components/calcite-input.js +1 -1
  825. package/dist/components/calcite-label.js +1 -1
  826. package/dist/components/calcite-link.js +1 -1
  827. package/dist/components/calcite-list-item-group.js +2 -2
  828. package/dist/components/calcite-list-item.js +29 -9
  829. package/dist/components/calcite-list.js +27 -2
  830. package/dist/components/calcite-loader.js +1 -1
  831. package/dist/components/calcite-menu-item.js +1 -1
  832. package/dist/components/calcite-menu.js +1 -1
  833. package/dist/components/calcite-meter.js +1 -1
  834. package/dist/components/calcite-modal.js +1 -1
  835. package/dist/components/calcite-navigation-logo.js +1 -1
  836. package/dist/components/calcite-navigation-user.js +1 -1
  837. package/dist/components/calcite-navigation.js +1 -1
  838. package/dist/components/calcite-notice.js +1 -1
  839. package/dist/components/calcite-option-group.js +1 -1
  840. package/dist/components/calcite-option.js +1 -1
  841. package/dist/components/calcite-pagination.js +1 -1
  842. package/dist/components/calcite-panel.js +1 -1
  843. package/dist/components/calcite-pick-list-group.js +1 -1
  844. package/dist/components/calcite-pick-list-item.js +1 -1
  845. package/dist/components/calcite-pick-list.js +1 -1
  846. package/dist/components/calcite-popover.js +1 -1
  847. package/dist/components/calcite-progress.js +1 -1
  848. package/dist/components/calcite-radio-button-group.js +1 -1
  849. package/dist/components/calcite-radio-button.js +1 -1
  850. package/dist/components/calcite-rating.js +1 -1
  851. package/dist/components/calcite-scrim.js +1 -1
  852. package/dist/components/calcite-segmented-control-item.js +1 -1
  853. package/dist/components/calcite-segmented-control.js +1 -1
  854. package/dist/components/calcite-select.js +1 -1
  855. package/dist/components/calcite-sheet.js +1 -1
  856. package/dist/components/calcite-shell-center-row.js +1 -1
  857. package/dist/components/calcite-shell-panel.js +1 -1
  858. package/dist/components/calcite-shell.js +1 -1
  859. package/dist/components/calcite-slider.js +1 -1
  860. package/dist/components/calcite-sortable-list.js +1 -1
  861. package/dist/components/calcite-split-button.js +1 -1
  862. package/dist/components/calcite-stack.js +1 -1
  863. package/dist/components/calcite-stepper-item.js +15 -10
  864. package/dist/components/calcite-stepper.js +178 -36
  865. package/dist/components/calcite-switch.js +1 -1
  866. package/dist/components/calcite-tab-nav.js +1 -1
  867. package/dist/components/calcite-tab-title.js +1 -1
  868. package/dist/components/calcite-tab.js +1 -1
  869. package/dist/components/calcite-table-cell.js +1 -1
  870. package/dist/components/calcite-table-header.js +1 -1
  871. package/dist/components/calcite-table-row.js +1 -1
  872. package/dist/components/calcite-table.js +1 -1
  873. package/dist/components/calcite-tabs.js +1 -1
  874. package/dist/components/calcite-text-area.js +1 -1
  875. package/dist/components/calcite-tile-select-group.js +1 -1
  876. package/dist/components/calcite-tile-select.js +1 -1
  877. package/dist/components/calcite-tile.js +1 -1
  878. package/dist/components/calcite-time-picker.js +1 -1
  879. package/dist/components/calcite-tip-group.js +1 -1
  880. package/dist/components/calcite-tip-manager.js +1 -1
  881. package/dist/components/calcite-tip.js +1 -1
  882. package/dist/components/calcite-tooltip.js +1 -1
  883. package/dist/components/calcite-tree-item.js +1 -1
  884. package/dist/components/calcite-tree.js +1 -1
  885. package/dist/components/calcite-value-list-item.js +4 -2
  886. package/dist/components/calcite-value-list.js +1 -1
  887. package/dist/components/checkbox.js +1 -1
  888. package/dist/components/chip.js +1 -1
  889. package/dist/components/color-picker-hex-input.js +1 -1
  890. package/dist/components/color-picker-swatch.js +1 -1
  891. package/dist/components/combobox-item.js +1 -1
  892. package/dist/components/combobox.js +234 -29
  893. package/dist/components/component.js +1 -1
  894. package/dist/components/conditionalSlot.js +1 -1
  895. package/dist/components/cs.js +1 -1
  896. package/dist/components/da.js +1 -1
  897. package/dist/components/date-picker-day.js +1 -1
  898. package/dist/components/date-picker-month-header.js +1 -1
  899. package/dist/components/date-picker-month.js +1 -1
  900. package/dist/components/date-picker.js +1 -1
  901. package/dist/components/date.js +1 -1
  902. package/dist/components/de-at.js +1 -1
  903. package/dist/components/de-ch.js +1 -1
  904. package/dist/components/de.js +1 -1
  905. package/dist/components/debounce.js +1 -1
  906. package/dist/components/dom.js +31 -2
  907. package/dist/components/dropdown.js +1 -1
  908. package/dist/components/el.js +1 -1
  909. package/dist/components/en-au.js +1 -1
  910. package/dist/components/en-ca.js +1 -1
  911. package/dist/components/en-gb.js +1 -1
  912. package/dist/components/es-mx.js +1 -1
  913. package/dist/components/es.js +1 -1
  914. package/dist/components/et.js +1 -1
  915. package/dist/components/fi.js +1 -1
  916. package/dist/components/filter.js +1 -1
  917. package/dist/components/filter2.js +1 -1
  918. package/dist/components/floating-ui.js +1 -1
  919. package/dist/components/focusTrapComponent.js +2 -2
  920. package/dist/components/form.js +1 -1
  921. package/dist/components/fr-ch.js +1 -1
  922. package/dist/components/fr.js +1 -1
  923. package/dist/components/globalAttributes.js +1 -1
  924. package/dist/components/graph.js +1 -1
  925. package/dist/components/guid.js +1 -1
  926. package/dist/components/handle.js +1 -1
  927. package/dist/components/he.js +1 -1
  928. package/dist/components/hi.js +1 -1
  929. package/dist/components/hr.js +1 -1
  930. package/dist/components/hu.js +1 -1
  931. package/dist/components/icon.js +7 -2
  932. package/dist/components/id.js +1 -1
  933. package/dist/components/index.js +1 -1
  934. package/dist/components/index2.js +1 -1
  935. package/dist/components/index3.js +1 -1
  936. package/dist/components/index4.js +1 -1
  937. package/dist/components/input-number.js +2 -1
  938. package/dist/components/input-text.js +1 -1
  939. package/dist/components/input.js +1 -1
  940. package/dist/components/interactive.js +1 -1
  941. package/dist/components/it-ch.js +1 -1
  942. package/dist/components/it.js +1 -1
  943. package/dist/components/ja.js +1 -1
  944. package/dist/components/key.js +1 -1
  945. package/dist/components/ko.js +1 -1
  946. package/dist/components/label.js +1 -1
  947. package/dist/components/label2.js +2 -2
  948. package/dist/components/link.js +1 -1
  949. package/dist/components/loadable.js +1 -1
  950. package/dist/components/loader.js +1 -1
  951. package/dist/components/locale.js +2 -2
  952. package/dist/components/lt.js +1 -1
  953. package/dist/components/lv.js +1 -1
  954. package/dist/components/math.js +1 -1
  955. package/dist/components/menu.js +1 -1
  956. package/dist/components/mk.js +1 -1
  957. package/dist/components/nb.js +1 -1
  958. package/dist/components/nl.js +1 -1
  959. package/dist/components/observers.js +1 -1
  960. package/dist/components/openCloseComponent.js +1 -1
  961. package/dist/components/pagination.js +18 -2
  962. package/dist/components/panel.js +1 -1
  963. package/dist/components/pick-list-item.js +1 -1
  964. package/dist/components/pl.js +1 -1
  965. package/dist/components/popover.js +1 -1
  966. package/dist/components/progress.js +1 -1
  967. package/dist/components/pt-br.js +1 -1
  968. package/dist/components/pt.js +1 -1
  969. package/dist/components/resources.js +1 -1
  970. package/dist/components/resources2.js +1 -1
  971. package/dist/components/resources3.js +1 -1
  972. package/dist/components/resources4.js +1 -1
  973. package/dist/components/ro.js +1 -1
  974. package/dist/components/ru.js +1 -1
  975. package/dist/components/scrim.js +2 -2
  976. package/dist/components/shared-list-render.js +1 -1
  977. package/dist/components/sk.js +1 -1
  978. package/dist/components/sl.js +1 -1
  979. package/dist/components/sortableComponent.js +1 -1
  980. package/dist/components/sr.js +1 -1
  981. package/dist/components/stack.js +2 -2
  982. package/dist/components/sv.js +1 -1
  983. package/dist/components/switch.js +1 -1
  984. package/dist/components/t9n.js +1 -1
  985. package/dist/components/tab-nav.js +1 -1
  986. package/dist/components/tab-title.js +1 -1
  987. package/dist/components/tab.js +1 -1
  988. package/dist/components/table-cell.js +1 -1
  989. package/dist/components/table-header.js +1 -1
  990. package/dist/components/tabs.js +1 -1
  991. package/dist/components/th.js +1 -1
  992. package/dist/components/throttle.js +1 -1
  993. package/dist/components/tile.js +1 -1
  994. package/dist/components/time-picker.js +1 -1
  995. package/dist/components/tr.js +1 -1
  996. package/dist/components/uk.js +1 -1
  997. package/dist/components/utils.js +1 -1
  998. package/dist/components/utils2.js +5 -2
  999. package/dist/components/utils3.js +3 -1
  1000. package/dist/components/vi.js +1 -1
  1001. package/dist/components/zh-cn.js +1 -1
  1002. package/dist/components/zh-hk.js +1 -1
  1003. package/dist/components/zh-tw.js +1 -1
  1004. package/dist/esm/{ExpandToggle-ca500b5f.js → ExpandToggle-f15fdcaa.js} +5 -5
  1005. package/dist/esm/{FloatingArrow-8d57be5a.js → FloatingArrow-15813680.js} +5 -3
  1006. package/dist/esm/{Heading-a5101e67.js → Heading-9f2617c0.js} +2 -2
  1007. package/dist/esm/{app-globals-edc594b4.js → app-globals-27637184.js} +2 -2
  1008. package/dist/esm/{ar-19698a3b.js → ar-2edcc9d3.js} +19 -19
  1009. package/dist/esm/{array-3d50924f.js → array-9c8d8cd1.js} +1 -1
  1010. package/dist/esm/{bg-f6f367fb.js → bg-d8c258ac.js} +19 -19
  1011. package/dist/esm/{browser-f24e454d.js → browser-2f0866ce.js} +1 -1
  1012. package/dist/esm/{bs-ed1b2753.js → bs-1391fd05.js} +19 -19
  1013. package/dist/esm/{ca-655cff09.js → ca-4ad24615.js} +19 -19
  1014. package/dist/esm/calcite-accordion_2.entry.js +8 -8
  1015. package/dist/esm/calcite-action-bar.entry.js +15 -15
  1016. package/dist/esm/calcite-action-group.entry.js +13 -13
  1017. package/dist/esm/calcite-action-menu.entry.js +9 -9
  1018. package/dist/esm/calcite-action-pad.entry.js +14 -14
  1019. package/dist/esm/calcite-action.entry.js +20 -18
  1020. package/dist/esm/calcite-alert.entry.js +16 -28
  1021. package/dist/esm/calcite-avatar.entry.js +6 -6
  1022. package/dist/esm/calcite-block_2.entry.js +15 -15
  1023. package/dist/esm/calcite-button.entry.js +16 -16
  1024. package/dist/esm/calcite-card.entry.js +10 -10
  1025. package/dist/esm/calcite-checkbox.entry.js +11 -11
  1026. package/dist/esm/calcite-chip-group.entry.js +9 -9
  1027. package/dist/esm/calcite-chip.entry.js +14 -14
  1028. package/dist/esm/calcite-color-picker_3.entry.js +16 -16
  1029. package/dist/esm/calcite-combobox_3.entry.js +249 -45
  1030. package/dist/esm/calcite-date-picker_4.entry.js +15 -15
  1031. package/dist/esm/calcite-dropdown_3.entry.js +14 -14
  1032. package/dist/esm/calcite-fab.entry.js +8 -8
  1033. package/dist/esm/calcite-filter.entry.js +14 -14
  1034. package/dist/esm/calcite-flow-item.entry.js +13 -13
  1035. package/dist/esm/calcite-flow.entry.js +4 -4
  1036. package/dist/esm/calcite-graph_2.entry.js +14 -14
  1037. package/dist/esm/calcite-handle.entry.js +10 -10
  1038. package/dist/esm/calcite-headless-54e83838.js +17 -0
  1039. package/dist/esm/calcite-icon.entry.js +12 -7
  1040. package/dist/esm/calcite-inline-editable.entry.js +13 -13
  1041. package/dist/esm/calcite-input-date-picker.entry.js +20 -20
  1042. package/dist/esm/calcite-input-message.entry.js +5 -5
  1043. package/dist/esm/calcite-input-number.entry.js +16 -15
  1044. package/dist/esm/calcite-input-text.entry.js +15 -15
  1045. package/dist/esm/{calcite-input-time-picker.calcite-time-picker-ec3b7d9c.js → calcite-input-time-picker.calcite-time-picker-17fe7dfa.js} +63 -63
  1046. package/dist/esm/calcite-input-time-picker_2.entry.js +19 -19
  1047. package/dist/esm/calcite-input-time-zone.entry.js +16 -16
  1048. package/dist/esm/calcite-input.entry.js +15 -15
  1049. package/dist/esm/calcite-label.entry.js +6 -6
  1050. package/dist/esm/calcite-link.entry.js +8 -8
  1051. package/dist/esm/calcite-list_3.entry.js +71 -25
  1052. package/dist/esm/calcite-loader.entry.js +3 -3
  1053. package/dist/esm/calcite-menu_2.entry.js +11 -11
  1054. package/dist/esm/calcite-meter.entry.js +10 -10
  1055. package/dist/esm/calcite-modal.entry.js +14 -14
  1056. package/dist/esm/calcite-navigation_3.entry.js +6 -6
  1057. package/dist/esm/calcite-notice.entry.js +14 -14
  1058. package/dist/esm/calcite-option_3.entry.js +12 -12
  1059. package/dist/esm/calcite-pagination.entry.js +28 -12
  1060. package/dist/esm/calcite-panel.entry.js +15 -15
  1061. package/dist/esm/calcite-pick-list_3.entry.js +17 -17
  1062. package/dist/esm/calcite-popover.entry.js +17 -17
  1063. package/dist/esm/calcite-progress.entry.js +5 -5
  1064. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  1065. package/dist/esm/calcite-radio-button.entry.js +11 -11
  1066. package/dist/esm/calcite-rating.entry.js +14 -14
  1067. package/dist/esm/calcite-scrim.entry.js +9 -9
  1068. package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
  1069. package/dist/esm/calcite-sheet.entry.js +9 -9
  1070. package/dist/esm/calcite-shell_3.entry.js +11 -11
  1071. package/dist/esm/calcite-sortable-list.entry.js +9 -9
  1072. package/dist/esm/calcite-split-button.entry.js +5 -5
  1073. package/dist/esm/calcite-stack.entry.js +7 -7
  1074. package/dist/esm/calcite-stepper_2.entry.js +178 -53
  1075. package/dist/esm/calcite-switch.entry.js +11 -11
  1076. package/dist/esm/calcite-tab_4.entry.js +12 -12
  1077. package/dist/esm/calcite-table-cell_2.entry.js +13 -13
  1078. package/dist/esm/calcite-table-row.entry.js +9 -9
  1079. package/dist/esm/calcite-table.entry.js +11 -11
  1080. package/dist/esm/calcite-text-area.entry.js +16 -16
  1081. package/dist/esm/calcite-tile-select_2.entry.js +6 -6
  1082. package/dist/esm/calcite-tile.entry.js +9 -9
  1083. package/dist/esm/calcite-tip_3.entry.js +11 -11
  1084. package/dist/esm/calcite-tooltip.entry.js +9 -9
  1085. package/dist/esm/calcite-tree_2.entry.js +10 -10
  1086. package/dist/esm/calcite-value-list_2.entry.js +20 -18
  1087. package/dist/esm/calcite.js +6 -6
  1088. package/dist/esm/{component-d9829048.js → component-5f2c22d5.js} +1 -1
  1089. package/dist/esm/{conditionalSlot-e0ef4435.js → conditionalSlot-e0760d01.js} +3 -3
  1090. package/dist/esm/{cs-f891642c.js → cs-feded687.js} +19 -19
  1091. package/dist/esm/{da-ed38c9af.js → da-a94f5b1b.js} +19 -19
  1092. package/dist/esm/{de-at-99bb01e6.js → de-at-bb4219e3.js} +19 -19
  1093. package/dist/esm/{de-ch-ad3c126a.js → de-ch-8c15b7b6.js} +19 -19
  1094. package/dist/esm/{de-7396ef2c.js → de-ed16e7a4.js} +19 -19
  1095. package/dist/esm/{debounce-24fab12b.js → debounce-5398f62f.js} +1 -1
  1096. package/dist/esm/{dom-39444fa1.js → dom-bb94e253.js} +33 -4
  1097. package/dist/esm/{el-4a559b63.js → el-aa86c105.js} +19 -19
  1098. package/dist/esm/{en-au-d6426106.js → en-au-b35b6a16.js} +19 -19
  1099. package/dist/esm/{en-ca-a3ec442a.js → en-ca-996a851b.js} +19 -19
  1100. package/dist/esm/{en-gb-ebb77b1e.js → en-gb-e4bed8e2.js} +19 -19
  1101. package/dist/esm/{es-728e58ee.js → es-68466408.js} +19 -19
  1102. package/dist/esm/{es-mx-7a8c75ad.js → es-mx-b67051f6.js} +19 -19
  1103. package/dist/esm/{et-116b9d91.js → et-6faa7bbd.js} +19 -19
  1104. package/dist/esm/{fi-831e0df0.js → fi-05a466b4.js} +19 -19
  1105. package/dist/esm/{filter-789a1f68.js → filter-923cf2e4.js} +2 -2
  1106. package/dist/esm/{floating-ui-308fc841.js → floating-ui-65f6796e.js} +3 -3
  1107. package/dist/esm/{focusTrapComponent-713db4af.js → focusTrapComponent-cb668640.js} +2 -2
  1108. package/dist/esm/{form-9477436f.js → form-aaedb8eb.js} +3 -3
  1109. package/dist/esm/{fr-ch-abc5851e.js → fr-ch-69c37efc.js} +19 -19
  1110. package/dist/esm/{fr-749af490.js → fr-d8b932c8.js} +19 -19
  1111. package/dist/esm/{globalAttributes-a4c59e60.js → globalAttributes-a9e33d88.js} +2 -2
  1112. package/dist/esm/{guid-c27bb5cd.js → guid-b69b57e2.js} +1 -1
  1113. package/dist/esm/{he-c083c0ee.js → he-4784b292.js} +19 -19
  1114. package/dist/esm/{hi-081e797d.js → hi-b72a7582.js} +19 -19
  1115. package/dist/esm/{hr-ac293ae5.js → hr-3cd8fa3f.js} +19 -19
  1116. package/dist/esm/{hu-c8c6115f.js → hu-a5bc848c.js} +19 -19
  1117. package/dist/esm/{id-3218626e.js → id-8eedbc06.js} +19 -19
  1118. package/dist/esm/{index-77bbcac2.js → index-5581518c.js} +4 -1
  1119. package/dist/esm/{index-d5b132a2.js → index-8a250c5a.js} +1 -1
  1120. package/dist/esm/{index-b188c681.js → index-8c8901b3.js} +1 -1
  1121. package/dist/esm/index.js +2 -2
  1122. package/dist/esm/{interactive-91b47871.js → interactive-69ec9d65.js} +2 -2
  1123. package/dist/esm/{it-4850e378.js → it-45928571.js} +19 -19
  1124. package/dist/esm/{it-ch-be4a24fc.js → it-ch-f6d8454f.js} +19 -19
  1125. package/dist/esm/{ja-18de6686.js → ja-9bc0c506.js} +19 -19
  1126. package/dist/esm/{key-d8c53f72.js → key-4eff881c.js} +1 -1
  1127. package/dist/esm/{ko-6af66fe6.js → ko-e17a8078.js} +19 -19
  1128. package/dist/esm/{label-d9e179c0.js → label-945638ac.js} +2 -2
  1129. package/dist/esm/{loadable-51090769.js → loadable-e0edfe27.js} +2 -2
  1130. package/dist/esm/loader.js +6 -6
  1131. package/dist/esm/{locale-8015ec61.js → locale-e5414778.js} +4 -4
  1132. package/dist/esm/{lt-61a65274.js → lt-10663133.js} +19 -19
  1133. package/dist/esm/{lv-917175d5.js → lv-b9bc1fbf.js} +19 -19
  1134. package/dist/esm/{math-d34092e1.js → math-63a03baa.js} +1 -1
  1135. package/dist/esm/{mk-17e5c095.js → mk-ceca711a.js} +19 -19
  1136. package/dist/esm/{nb-dd3ec681.js → nb-1ab40058.js} +19 -19
  1137. package/dist/esm/{nl-b996bc82.js → nl-63e10eb9.js} +19 -19
  1138. package/dist/esm/{observers-70c115ce.js → observers-7bce645e.js} +1 -1
  1139. package/dist/esm/{openCloseComponent-22429ebf.js → openCloseComponent-a2872792.js} +2 -2
  1140. package/dist/esm/{pl-971590b8.js → pl-db397b7d.js} +19 -19
  1141. package/dist/esm/{pt-br-2d0690b4.js → pt-br-86eaebb0.js} +19 -19
  1142. package/dist/esm/{pt-14cc11ea.js → pt-c4bf11ae.js} +19 -19
  1143. package/dist/esm/{resources-c7c7109f.js → resources-2b2d4eb4.js} +1 -1
  1144. package/dist/esm/{resources-425c38d2.js → resources-50c656d8.js} +5 -5
  1145. package/dist/esm/{resources-71e5793c.js → resources-53455208.js} +1 -1
  1146. package/dist/esm/{resources-cfcd78c4.js → resources-98c62650.js} +1 -1
  1147. package/dist/esm/{resources-e4b4c0b2.js → resources-b3275c7a.js} +1 -1
  1148. package/dist/esm/{resources-eb3678b9.js → resources-c0ed0e43.js} +1 -1
  1149. package/dist/esm/{resources-c44417f1.js → resources-f9fc1be7.js} +1 -1
  1150. package/dist/esm/{ro-cc8771f2.js → ro-cfdc657f.js} +19 -19
  1151. package/dist/esm/{ru-533765b7.js → ru-6c474d06.js} +19 -19
  1152. package/dist/esm/{sk-7e59e6f6.js → sk-67e27bfc.js} +19 -19
  1153. package/dist/esm/{sl-fb964dec.js → sl-380aef47.js} +19 -19
  1154. package/dist/esm/{sortableComponent-d7007a60.js → sortableComponent-e04c032c.js} +1 -1
  1155. package/dist/esm/{sr-a24dcc9b.js → sr-e6245696.js} +19 -19
  1156. package/dist/esm/{sv-1c31dec8.js → sv-2aced04b.js} +19 -19
  1157. package/dist/esm/{t9n-599cfd78.js → t9n-4e8ea923.js} +3 -3
  1158. package/dist/esm/{th-45165379.js → th-8df72332.js} +19 -19
  1159. package/dist/esm/{throttle-51ccf9e3.js → throttle-008fbbb4.js} +2 -2
  1160. package/dist/esm/{tr-5d8ac79f.js → tr-141ac71e.js} +19 -19
  1161. package/dist/esm/{uk-f9a604f8.js → uk-3aaee2a6.js} +19 -19
  1162. package/dist/esm/{utils-c1b510a3.js → utils-6e2201b3.js} +1 -1
  1163. package/dist/esm/{utils-e1d14192.js → utils-ad44fe85.js} +3 -3
  1164. package/dist/esm/{vi-58ddf83a.js → vi-3c97b57f.js} +19 -19
  1165. package/dist/esm/{zh-cn-586d01aa.js → zh-cn-7527c95f.js} +19 -19
  1166. package/dist/esm/{zh-hk-10561dbf.js → zh-hk-ce33cf14.js} +19 -19
  1167. package/dist/esm/{zh-tw-020c7aba.js → zh-tw-3f828aa0.js} +19 -19
  1168. package/dist/extras/docs-json.json +69 -16
  1169. package/dist/extras/translations-json.json +1 -1
  1170. package/dist/extras/vscode-data.json +15 -0
  1171. package/dist/loader/cdn.js +1 -1
  1172. package/dist/loader/index.cjs.js +1 -1
  1173. package/dist/loader/index.es2017.js +1 -1
  1174. package/dist/loader/index.js +1 -1
  1175. package/dist/types/components/action/resources.d.ts +2 -0
  1176. package/dist/types/components/alert/alert.d.ts +0 -2
  1177. package/dist/types/components/combobox/assets/combobox/t9n/index.d.ts +3 -0
  1178. package/dist/types/components/combobox/combobox.d.ts +32 -4
  1179. package/dist/types/components/combobox/interfaces.d.ts +1 -0
  1180. package/dist/types/components/combobox/resources.d.ts +3 -0
  1181. package/dist/types/components/list/list.d.ts +3 -0
  1182. package/dist/types/components/list-item/list-item.d.ts +5 -0
  1183. package/dist/types/components/list-item/resources.d.ts +2 -0
  1184. package/dist/types/components/stepper/assets/stepper/t9n/index.d.ts +2 -0
  1185. package/dist/types/components/stepper/functional/step-bar.d.ts +18 -0
  1186. package/dist/types/components/stepper/resources.d.ts +13 -0
  1187. package/dist/types/components/stepper/stepper.d.ts +19 -9
  1188. package/dist/types/components/stepper-item/stepper-item.d.ts +6 -0
  1189. package/dist/types/components.d.ts +15 -2
  1190. package/dist/types/utils/dom.d.ts +16 -0
  1191. package/hydrate/index.js +958 -552
  1192. package/package.json +4 -4
  1193. package/readme.md +2 -2
  1194. package/dist/calcite/p-03c66ba1.entry.js +0 -6
  1195. package/dist/calcite/p-055bb019.js +0 -6
  1196. package/dist/calcite/p-09420262.entry.js +0 -6
  1197. package/dist/calcite/p-2c2f676e.js +0 -6
  1198. package/dist/calcite/p-2f3bfa6b.entry.js +0 -6
  1199. package/dist/calcite/p-3987e0a1.entry.js +0 -6
  1200. package/dist/calcite/p-42a0028c.js +0 -6
  1201. package/dist/calcite/p-4537110a.js +0 -6
  1202. package/dist/calcite/p-5662d703.js +0 -6
  1203. package/dist/calcite/p-571b9f5b.js +0 -6
  1204. package/dist/calcite/p-5bf855fa.js +0 -6
  1205. package/dist/calcite/p-60e64b20.js +0 -6
  1206. package/dist/calcite/p-61338201.entry.js +0 -6
  1207. package/dist/calcite/p-65b4ea03.js +0 -6
  1208. package/dist/calcite/p-6bb5cab4.entry.js +0 -6
  1209. package/dist/calcite/p-71726904.js +0 -7
  1210. package/dist/calcite/p-7d219769.entry.js +0 -6
  1211. package/dist/calcite/p-859505c2.entry.js +0 -6
  1212. package/dist/calcite/p-919e7c63.entry.js +0 -6
  1213. package/dist/calcite/p-947751fd.entry.js +0 -6
  1214. package/dist/calcite/p-a1733545.entry.js +0 -6
  1215. package/dist/calcite/p-adc9775c.entry.js +0 -6
  1216. package/dist/calcite/p-b24503eb.entry.js +0 -6
  1217. package/dist/calcite/p-b5f7de86.entry.js +0 -6
  1218. package/dist/calcite/p-b6fe4fee.js +0 -6
  1219. package/dist/calcite/p-c3dcf437.js +0 -6
  1220. package/dist/calcite/p-e18bd0e1.entry.js +0 -6
  1221. package/dist/calcite/p-e484f2af.entry.js +0 -6
  1222. package/dist/calcite/p-f638f9bb.entry.js +0 -6
  1223. package/dist/cjs/responsive-855674f3.js +0 -34
  1224. package/dist/components/responsive.js +0 -32
  1225. package/dist/esm/responsive-44a4fa1a.js +0 -32
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.11.0-next.3
4
+ * v1.11.0
5
5
  */
6
- import{r as t,c as e,h as i,a as s,F as n}from"./p-71726904.js";import{i as r,g as a,d as o,j as l}from"./p-f874eb2b.js";import{C as h,n as c,a as u,o as d,b as p,c as f,p as g,d as b,t as m,e as w,f as y,g as v,j as k,i as x,r as C,k as M}from"./p-7ff713c7.js";import{c as j,d as A,u as z}from"./p-4537110a.js";import{i as S}from"./p-bc8c92e9.js";import{c as F,s as O,a as $}from"./p-ca292479.js";import{c as D,d as I}from"./p-280885d3.js";import{r as q,c as E,a as N}from"./p-b56a850f.js";import{u as L,s as K,c as U,d as P}from"./p-7c8970c5.js";import{t as T}from"./p-1a2f1414.js";import"./p-61442e7d.js";import"./p-1baed544.js";import"./p-6c351a2f.js";import"./p-388baeec.js";import"./p-a431d03b.js";function _(t,e,i){return t(i={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}var H={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},B=_((function(t){var e=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var s,n=[],r=0,a=t.length;r<a;r++){var o=t[r];(s=o)&&"string"!=typeof s&&(s instanceof Array||Array.isArray(s)||s.length>=0&&(s.splice instanceof Function||Object.getOwnPropertyDescriptor(s,s.length-1)&&"String"!==s.constructor.name))?n=e.call(n,i.call(o)):n.push(o)}return n};s.wrap=function(t){return function(){return t(s(arguments))}}})),V=_((function(t){var e=Object.hasOwnProperty,i=Object.create(null);for(var s in H)e.call(H,s)&&(i[H[s]]=s);var n=t.exports={to:{},get:{}};function r(t,e,i){return Math.min(Math.max(e,t),i)}function a(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}n.get=function(t){var e,i;switch(t.substring(0,3).toLowerCase()){case"hsl":e=n.get.hsl(t),i="hsl";break;case"hwb":e=n.get.hwb(t),i="hwb";break;default:e=n.get.rgb(t),i="rgb"}return e?{model:i,value:e}:null},n.get.rgb=function(t){if(!t)return null;var i,s,n,a=[0,0,0,1];if(i=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=i[2],i=i[1],s=0;s<3;s++){var o=2*s;a[s]=parseInt(i.slice(o,o+2),16)}n&&(a[3]=parseInt(n,16)/255)}else if(i=t.match(/^#([a-f0-9]{3,4})$/i)){for(n=(i=i[1])[3],s=0;s<3;s++)a[s]=parseInt(i[s]+i[s],16);n&&(a[3]=parseInt(n+n,16)/255)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)a[s]=parseInt(i[s+1],0);i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}else{if(!(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(i=t.match(/^(\w+)$/))?"transparent"===i[1]?[0,0,0,0]:e.call(H,i[1])?((a=H[i[1]])[3]=1,a):null:null;for(s=0;s<3;s++)a[s]=Math.round(2.55*parseFloat(i[s+1]));i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}for(s=0;s<3;s++)a[s]=r(a[s],0,255);return a[3]=r(a[3],0,1),a},n.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.to.hex=function(){var t=B(arguments);return"#"+a(t[0])+a(t[1])+a(t[2])+(t[3]<1?a(Math.round(255*t[3])):"")},n.to.rgb=function(){var t=B(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},n.to.rgb.percent=function(){var t=B(arguments),e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),s=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+i+"%, "+s+"%)":"rgba("+e+"%, "+i+"%, "+s+"%, "+t[3]+")"},n.to.hsl=function(){var t=B(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},n.to.hwb=function(){var t=B(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},n.to.keyword=function(t){return i[t.slice(0,3)]}})),J={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const R={};for(const t of Object.keys(J))R[J[t]]=t;const X={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var W=X;for(const t of Object.keys(X)){if(!("channels"in X[t]))throw new Error("missing channels property: "+t);if(!("labels"in X[t]))throw new Error("missing channel labels property: "+t);if(X[t].labels.length!==X[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:i}=X[t];delete X[t].channels,delete X[t].labels,Object.defineProperty(X[t],"channels",{value:e}),Object.defineProperty(X[t],"labels",{value:i})}function Y(t,e){return function(i){return e(t(i))}}function G(t,e){const i=[e[t].parent,t];let s=W[e[t].parent][t],n=e[t].parent;for(;e[n].parent;)i.unshift(e[n].parent),s=Y(W[e[n].parent][n],s),n=e[n].parent;return s.conversion=i,s}X.rgb.hsl=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(e,i,s),r=Math.max(e,i,s),a=r-n;let o,l;r===n?o=0:e===r?o=(i-s)/a:i===r?o=2+(s-e)/a:s===r&&(o=4+(e-i)/a),o=Math.min(60*o,360),o<0&&(o+=360);const h=(n+r)/2;return l=r===n?0:h<=.5?a/(r+n):a/(2-r-n),[o,100*l,100*h]},X.rgb.hsv=function(t){let e,i,s,n,r;const a=t[0]/255,o=t[1]/255,l=t[2]/255,h=Math.max(a,o,l),c=h-Math.min(a,o,l),u=function(t){return(h-t)/6/c+.5};return 0===c?(n=0,r=0):(r=c/h,e=u(a),i=u(o),s=u(l),a===h?n=s-i:o===h?n=1/3+e-s:l===h&&(n=2/3+i-e),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*h]},X.rgb.hwb=function(t){const e=t[0],i=t[1];let s=t[2];const n=X.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,s));return s=1-1/255*Math.max(e,Math.max(i,s)),[n,100*r,100*s]},X.rgb.cmyk=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(1-e,1-i,1-s);return[100*((1-e-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*((1-s-n)/(1-n)||0),100*n]},X.rgb.keyword=function(t){const e=R[t];if(e)return e;let i,s=1/0;for(const e of Object.keys(J)){const a=((n=t)[0]-(r=J[e])[0])**2+(n[1]-r[1])**2+(n[2]-r[2])**2;a<s&&(s=a,i=e)}var n,r;return i},X.keyword.rgb=function(t){return J[t]},X.rgb.xyz=function(t){let e=t[0]/255,i=t[1]/255,s=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,[100*(.4124*e+.3576*i+.1805*s),100*(.2126*e+.7152*i+.0722*s),100*(.0193*e+.1192*i+.9505*s)]},X.rgb.lab=function(t){const e=X.rgb.xyz(t);let i=e[0],s=e[1],n=e[2];return i/=95.047,s/=100,n/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*s-16,500*(i-s),200*(s-n)]},X.hsl.rgb=function(t){const e=t[0]/360,i=t[1]/100,s=t[2]/100;let n,r,a;if(0===i)return a=255*s,[a,a,a];n=s<.5?s*(1+i):s+i-s*i;const o=2*s-n,l=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,a=6*r<1?o+6*(n-o)*r:2*r<1?n:3*r<2?o+(n-o)*(2/3-r)*6:o,l[t]=255*a;return l},X.hsl.hsv=function(t){const e=t[0];let i=t[1]/100,s=t[2]/100,n=i;const r=Math.max(s,.01);return s*=2,i*=s<=1?s:2-s,n*=r<=1?r:2-r,[e,100*(0===s?2*n/(r+n):2*i/(s+i)),(s+i)/2*100]},X.hsv.rgb=function(t){const e=t[0]/60,i=t[1]/100;let s=t[2]/100;const n=Math.floor(e)%6,r=e-Math.floor(e),a=255*s*(1-i),o=255*s*(1-i*r),l=255*s*(1-i*(1-r));switch(s*=255,n){case 0:return[s,l,a];case 1:return[o,s,a];case 2:return[a,s,l];case 3:return[a,o,s];case 4:return[l,a,s];case 5:return[s,a,o]}},X.hsv.hsl=function(t){const e=t[0],i=t[1]/100,s=t[2]/100,n=Math.max(s,.01);let r,a;a=(2-i)*s;const o=(2-i)*n;return r=i*n,r/=o<=1?o:2-o,r=r||0,a/=2,[e,100*r,100*a]},X.hwb.rgb=function(t){const e=t[0]/360;let i=t[1]/100,s=t[2]/100;const n=i+s;let r;n>1&&(i/=n,s/=n);const a=Math.floor(6*e),o=1-s;r=6*e-a,0!=(1&a)&&(r=1-r);const l=i+r*(o-i);let h,c,u;switch(a){default:case 6:case 0:h=o,c=l,u=i;break;case 1:h=l,c=o,u=i;break;case 2:h=i,c=o,u=l;break;case 3:h=i,c=l,u=o;break;case 4:h=l,c=i,u=o;break;case 5:h=o,c=i,u=l}return[255*h,255*c,255*u]},X.cmyk.rgb=function(t){const e=t[1]/100,i=t[2]/100,s=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-s)+s)),255*(1-Math.min(1,e*(1-s)+s)),255*(1-Math.min(1,i*(1-s)+s))]},X.xyz.rgb=function(t){const e=t[0]/100,i=t[1]/100,s=t[2]/100;let n,r,a;return n=3.2406*e+-1.5372*i+-.4986*s,r=-.9689*e+1.8758*i+.0415*s,a=.0557*e+-.204*i+1.057*s,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),[255*n,255*r,255*a]},X.xyz.lab=function(t){let e=t[0],i=t[1],s=t[2];return e/=95.047,i/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,[116*i-16,500*(e-i),200*(i-s)]},X.lab.xyz=function(t){let e,i,s;i=(t[0]+16)/116,e=t[1]/500+i,s=i-t[2]/200;const n=i**3,r=e**3,a=s**3;return i=n>.008856?n:(i-16/116)/7.787,e=r>.008856?r:(e-16/116)/7.787,s=a>.008856?a:(s-16/116)/7.787,e*=95.047,i*=100,s*=108.883,[e,i,s]},X.lab.lch=function(t){const e=t[0],i=t[1],s=t[2];let n;return n=360*Math.atan2(s,i)/2/Math.PI,n<0&&(n+=360),[e,Math.sqrt(i*i+s*s),n]},X.lch.lab=function(t){const e=t[1],i=t[2]/360*2*Math.PI;return[t[0],e*Math.cos(i),e*Math.sin(i)]},X.rgb.ansi16=function(t,e=null){const[i,s,n]=t;let r=null===e?X.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),0===r)return 30;let a=30+(Math.round(n/255)<<2|Math.round(s/255)<<1|Math.round(i/255));return 2===r&&(a+=60),a},X.hsv.ansi16=function(t){return X.rgb.ansi16(X.hsv.rgb(t),t[2])},X.rgb.ansi256=function(t){const e=t[0],i=t[1],s=t[2];return e===i&&i===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(s/255*5)},X.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const i=.5*(1+~~(t>50));return[(1&e)*i*255,(e>>1&1)*i*255,(e>>2&1)*i*255]},X.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},X.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},X.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let i=e[0];3===e[0].length&&(i=i.split("").map((t=>t+t)).join(""));const s=parseInt(i,16);return[s>>16&255,s>>8&255,255&s]},X.rgb.hcg=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.max(Math.max(e,i),s),r=Math.min(Math.min(e,i),s),a=n-r;let o,l;return o=a<1?r/(1-a):0,l=a<=0?0:n===e?(i-s)/a%6:n===i?2+(s-e)/a:4+(e-i)/a,l/=6,l%=1,[360*l,100*a,100*o]},X.hsl.hcg=function(t){const e=t[1]/100,i=t[2]/100,s=i<.5?2*e*i:2*e*(1-i);let n=0;return s<1&&(n=(i-.5*s)/(1-s)),[t[0],100*s,100*n]},X.hsv.hcg=function(t){const e=t[2]/100,i=t[1]/100*e;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.hcg.rgb=function(t){const e=t[1]/100,i=t[2]/100;if(0===e)return[255*i,255*i,255*i];const s=[0,0,0],n=t[0]/360%1*6,r=n%1,a=1-r;let o=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=r,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=r;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=r,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return o=(1-e)*i,[255*(e*s[0]+o),255*(e*s[1]+o),255*(e*s[2]+o)]},X.hcg.hsv=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);let s=0;return i>0&&(s=e/i),[t[0],100*s,100*i]},X.hcg.hsl=function(t){const e=t[1]/100,i=t[2]/100*(1-e)+.5*e;let s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[t[0],100*s,100*i]},X.hcg.hwb=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);return[t[0],100*(i-e),100*(1-i)]},X.hwb.hcg=function(t){const e=1-t[2]/100,i=e-t[1]/100;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},X.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},X.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},X.gray.hsl=function(t){return[0,0,t[0]]},X.gray.hsv=X.gray.hsl,X.gray.hwb=function(t){return[0,100,t[0]]},X.gray.cmyk=function(t){return[0,0,0,t[0]]},X.gray.lab=function(t){return[t[0],0,0]},X.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i},X.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const Q={};Object.keys(W).forEach((t=>{Q[t]={},Object.defineProperty(Q[t],"channels",{value:W[t].channels}),Object.defineProperty(Q[t],"labels",{value:W[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(W);for(let i=e.length,s=0;s<i;s++)t[e[s]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;){const t=i.pop(),s=Object.keys(W[t]);for(let n=s.length,r=0;r<n;r++){const n=s[r],a=e[n];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,i.unshift(n))}}return e}(t),i={},s=Object.keys(e);for(let t=s.length,n=0;n<t;n++){const t=s[n];null!==e[t].parent&&(i[t]=G(t,e))}return i}(t);Object.keys(e).forEach((i=>{const s=e[i];Q[t][i]=function(t){const e=function(...e){const i=e[0];if(null==i)return i;i.length>1&&(e=i);const s=t(e);if("object"==typeof s)for(let t=s.length,e=0;e<t;e++)s[e]=Math.round(s[e]);return s};return"conversion"in t&&(e.conversion=t.conversion),e}(s),Q[t][i].raw=function(t){const e=function(...e){const i=e[0];return null==i?i:(i.length>1&&(e=i),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(s)}))}));var Z=Q;const tt=["keyword","gray","hex"],et={};for(const t of Object.keys(Z))et[[...Z[t].labels].sort().join("")]=t;const it={};function st(t,e){if(!(this instanceof st))return new st(t,e);if(e&&e in tt&&(e=null),e&&!(e in Z))throw new Error("Unknown model: "+e);let i,s;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof st)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=V.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,s=Z[this.model].channels,this.color=e.value.slice(0,s),this.valpha="number"==typeof e.value[s]?e.value[s]:1}else if(t.length>0){this.model=e||"rgb",s=Z[this.model].channels;const i=Array.prototype.slice.call(t,0,s);this.color=ot(i,s),this.valpha="number"==typeof t[s]?t[s]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const s=e.sort().join("");if(!(s in et))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=et[s];const{labels:n}=Z[this.model],r=[];for(i=0;i<n.length;i++)r.push(t[n[i]]);this.color=ot(r)}if(it[this.model])for(s=Z[this.model].channels,i=0;i<s;i++){const t=it[this.model][i];t&&(this.color[i]=t(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}st.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in V.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to[e.model](i)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to.rgb.percent(i)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=Z[this.model],{labels:i}=Z[this.model];for(let s=0;s<e;s++)t[i[s]]=this.color[s];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new st([...this.color.map(nt(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new st([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:rt("rgb",0,at(255)),green:rt("rgb",1,at(255)),blue:rt("rgb",2,at(255)),hue:rt(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:rt("hsl",1,at(100)),lightness:rt("hsl",2,at(100)),saturationv:rt("hsv",1,at(100)),value:rt("hsv",2,at(100)),chroma:rt("hcg",1,at(100)),gray:rt("hcg",2,at(100)),white:rt("hwb",1,at(100)),wblack:rt("hwb",2,at(100)),cyan:rt("cmyk",0,at(100)),magenta:rt("cmyk",1,at(100)),yellow:rt("cmyk",2,at(100)),black:rt("cmyk",3,at(100)),x:rt("xyz",0,at(95.047)),y:rt("xyz",1,at(100)),z:rt("xyz",2,at(108.833)),l:rt("lab",0,at(100)),a:rt("lab",1),b:rt("lab",2),keyword(t){return void 0!==t?new st(t):Z[this.model].keyword(this.color)},hex(t){return void 0!==t?new st(t):V.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new st(t);const e=this.rgb().round().color;let i=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===i.length&&(i="0"+i),V.to.hex(e)+i},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[i,s]of t.entries()){const t=s/255;e[i]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return st.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const i=t.rgb(),s=this.rgb(),n=void 0===e?.5:e,r=2*n-1,a=i.alpha()-s.alpha(),o=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-o;return st.rgb(o*i.red()+l*s.red(),o*i.green()+l*s.green(),o*i.blue()+l*s.blue(),i.alpha()*n+s.alpha()*(1-n))}};for(const t of Object.keys(Z)){if(tt.includes(t))continue;const{channels:e}=Z[t];st.prototype[t]=function(...e){return this.model===t?new st(this):new st(e.length>0?e:[...(i=Z[this.model][t].raw(this.color),Array.isArray(i)?i:[i]),this.valpha],t);var i},st[t]=function(...i){let s=i[0];return"number"==typeof s&&(s=ot(i,e)),new st(s,t)}}function nt(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function rt(t,e,i){t=Array.isArray(t)?t:[t];for(const s of t)(it[s]||(it[s]=[]))[e]=i;return t=t[0],function(s){let n;return void 0!==s?(i&&(s=i(s)),n=this[t](),n.color[e]=s,n):(n=this[t]().color[e],i&&(n=i(n)),n)}}function at(t){return function(e){return Math.max(0,Math.min(t,e))}}function ot(t,e){for(let i=0;i<e;i++)"number"!=typeof t[i]&&(t[i]=0);return t}var lt=st;const ht="channel",ct="control",ut="control-and-scope",dt="scope",pt="section",ft="slider",gt=lt("#007AC2"),bt="calcite-color-",mt={r:255,g:255,b:255},wt={h:360,s:100,v:100},yt=wt.h-1,vt=100,kt={s:{slider:{height:12,width:104},colorField:{height:80,width:160},thumb:{radius:10}},m:{slider:{height:12,width:204},colorField:{height:150,width:272},thumb:{radius:10}},l:{slider:{height:12,width:384},colorField:{height:200,width:464},thumb:{radius:10}}},xt=class{constructor(s){t(this,s),this.calciteColorPickerChange=e(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=e(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=h.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:e}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[e]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===e||"ArrowUp"===e?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[e].x||0,this.colorFieldScopeTop+i[e].y||0,!1))},this.handleHueScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.hue(),a=this.baseColorFieldColor.hue(r+n);this.internalColorSet(a,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:e,color:i}=this,s=t.target.value;!e||s?s!==(i&&c(u(i,f(this.mode))))&&this.internalColorSet(lt(s)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(lt(t.currentTarget.color))},this.handleChannelInput=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=3===i?vt:"rgb"===this.channelMode?mt[Object.keys(mt)[i]]:wt[Object.keys(wt)[i]];let n;if(this.allowEmpty&&!e.value)n="";else{const t=Number(e.value);n=E(t+this.shiftKeyChannelAdjustment,0,s).toString()}e.value=n},this.handleChannelChange=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=[...this.channels];if(this.allowEmpty&&!e.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const n=3===i,r=Number(e.value);s[i]=n?d(r):r,this.updateColorFromChannels(s)},this.handleSavedColorKeyDown=t=>{S(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!r(t))return;const{offsetX:e,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(e,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(e),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(e),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!r(t))return;const e=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),e&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:e,el:i}=this;if(!i.isConnected||!e)return;const{context:s,bounds:n}=e;let r,a;const{clientX:o,clientY:l}=t;s.canvas.matches(":hover")?(r=o-n.x,a=l-n.y):(r=o<n.x+n.width&&o>n.x?o-n.x:o<n.x?0:n.width,a=l<n.y+n.height&&l>n.y?l-n.y:l<n.y?0:n.height),s===this.colorFieldRenderingContext?this.captureColorFieldColor(r,a,!1):s===this.hueSliderRenderingContext?this.captureHueSliderColor(r):s===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(r)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:e,messages:s}=this;return i("calcite-tab-title",{class:"color-mode","data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===e},"rgb"===t?s.rgb:s.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:e,channelMode:s,channels:n,messages:r,alphaChannel:o}=this,l=t===s,h="rgb"===t?[r.red,r.green,r.blue]:[r.hue,r.saturation,r.value],c=a(this.el),u=o?n:n.slice(0,3);return i("calcite-tab",{class:ct,key:t,selected:l},i("div",{class:"channels",dir:"ltr"},u.map(((t,i)=>{const s=3===i;return s&&(t=e&&!t?t:p(t)),this.renderChannel(t,i,h[i],c,s?"%":"")}))))},this.renderChannel=(t,e,s,n,r)=>i("calcite-input-number",{class:ht,"data-channel-index":e,dir:n,key:e,label:s,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:e>0&&("s"!==this.scale||!this.alphaChannel||3!==e)?"-1px":""},suffixText:r,value:t?.toString()}),this.deleteColor=()=>{const t=u(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const e=this.savedColors.filter((e=>e!==t));this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.saveColor=()=>{const t=u(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const e=[...this.savedColors,t];this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.drawColorControls=T(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,e,i=!0)=>{const{dimensions:{colorField:{height:s,width:n}}}=this,r=Math.round(wt.s/n*t),a=Math.round(wt.v/s*(s-e));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(r).value(a),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{t&&(this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.alpha(),a=this.baseColorFieldColor.alpha(r+n);this.internalColorSet(a,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=gt,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=c(u(gt,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(gt),this.dimensions=kt.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:e}=this;t&&"auto"!==e&&!f(e)&&(console.warn(`ignoring alphaChannel as the current format (${e}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,e){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=e}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,e){const{allowEmpty:i,format:s}=this;let n=!1;if(!i||t){const i=g(t);if(!i||"auto"!==s&&i!==s)return this.showIncompatibleColorWarning(t,s),void(this.value=e);n=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const r=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(r||this.calciteColorPickerChange.emit());const a=i&&!t?null:lt(null!=t&&"object"==typeof t&&f(this.mode)?v(t):t),o=!b(a,this.color);(n||o)&&this.internalColorSet(a,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||gt}effectiveLocaleChange(){L(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:e}=t;if("ArrowUp"!==e&&"ArrowDown"!==e||!t.composedPath().some((t=>t.classList?.contains(ht))))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===e&&i?9:"ArrowDown"===e&&i?-9:0}async setFocus(){await F(this),this.el.focus()}async componentWillLoad(){O(this);const{allowEmpty:t,color:e,format:i,value:s}=this,n=t&&!s,r=g(s),a=n||"auto"===i&&r||i===r,o=n?null:a?lt(s):e;a||this.showIncompatibleColorWarning(s,i),this.setMode(i,!1),this.internalColorSet(o,!1,"initial"),this.updateDimensions(this.scale);const l=`${bt}${this.storageId}`;this.storageId&&localStorage.getItem(l)&&(this.savedColors=JSON.parse(localStorage.getItem(l))),await K(this)}connectedCallback(){j(this),D(this),U(this)}componentDidLoad(){$(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),A(this),I(this),P(this)}componentDidRender(){z(this)}render(){const{allowEmpty:t,channelsDisabled:e,color:s,colorFieldScopeLeft:n,colorFieldScopeTop:r,dimensions:{slider:{width:a},thumb:{radius:o}},hexDisabled:l,hideChannels:h,hideHex:c,hideSaved:d,hueScopeLeft:f,messages:g,alphaChannel:b,opacityScopeLeft:m,savedColors:w,savedDisabled:y,scale:v,scopeOrientation:k}=this,x=s?u(s,b):null,C=o,M=f??a*gt.hue()/wt.h,j=o,A=m??a*p(gt.alpha())/vt,z=null===s,S="vertical"===k,F=l||c,O=e||h,$=y||d,[D,I]=this.getAdjustedScopePosition(n,r),[q,E]=this.getAdjustedScopePosition(M,C),[N,L]=this.getAdjustedScopePosition(A,j);return i("div",{class:"container"},i("div",{class:ut},i("canvas",{class:"color-field",onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":S?g.value:g.saturation,"aria-valuemax":S?wt.v:wt.s,"aria-valuemin":"0","aria-valuenow":(S?s?.saturationv():s?.value())||"0",class:{[dt]:!0,"scope--color-field":!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${I||0}px`,left:`${D||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:"preview-and-sliders"},i("calcite-color-picker-swatch",{class:"preview",color:x,scale:"l"}),i("div",{class:"sliders"},i("div",{class:ut},i("canvas",{class:{[ft]:!0,"hue-slider":!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":wt.h,"aria-valuemin":"0","aria-valuenow":s?.round().hue()||gt.round().hue(),class:{[dt]:!0,"scope--hue":!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${E}px`,left:`${q}px`},tabindex:"0",ref:this.storeHueScope})),b?i("div",{class:ut},i("canvas",{class:{[ft]:!0,"opacity-slider":!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":vt,"aria-valuemin":0,"aria-valuenow":(s||gt).round().alpha(),class:{[dt]:!0,"scope--opacity":!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${L}px`,left:`${N}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),F&&O?null:i("div",{class:{"control-section":!0,[pt]:!0}},i("div",{class:"hex-and-channels-group"},F?null:i("div",{class:"color-hex-options"},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:b,class:ct,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:v,value:x})),O?null:i("calcite-tabs",{class:{"color-mode-container":!0,"section--split":!0},scale:"l"===v?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),$?null:i("div",{class:{"saved-colors-section":!0,[pt]:!0}},i("div",{class:"header"},i("label",null,g.saved),i("div",{class:"saved-colors-buttons"},i("calcite-button",{appearance:"transparent",class:"delete-color",disabled:z,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:v,type:"button"}),i("calcite-button",{appearance:"transparent",class:"save-color",disabled:z,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:v,type:"button"}))),w.length>0?i("div",{class:"saved-colors"},[...w.map((t=>i("calcite-color-picker-swatch",{class:"saved-color",color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:v,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,e){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${e})`)}setMode(t,e=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,e)}ensureCompatibleMode(t,e){const{alphaChannel:i}=this,s=f(t);if(i&&!s){const i=y(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&s){const i=m(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:e}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(yt/e*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:e}}}=this,i=d(vt/e*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,e=!0,i="user-interaction"){e&&b(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,e=this.mode){if(!t)return null;if(e.includes("hex")){const i=e===h.HEXA;return c(u(t.round(),i),i)}if(e.includes("-css")){const i=t[e.replace("-css","").replace("a","")]().round().string();return(e.endsWith("a")||e.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[m(e)]().round().object();return e.endsWith("a")?w(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:e}}}=this;return 2*e-t}updateDimensions(t="m"){this.dimensions=kt[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:e,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,e);const s=t.createLinearGradient(0,0,i,0);s.addColorStop(0,"rgba(255,255,255,1)"),s.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=s,t.fillRect(0,0,i,e);const n=t.createLinearGradient(0,0,0,e);n.addColorStop(0,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=n,t.fillRect(0,0,i,e),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:e,width:i}){if(!t)return;const s=window.devicePixelRatio||1;t.width=i*s,t.height=e*s,t.style.height=`${e}px`,t.style.width=`${i}px`,t.getContext("2d").scale(s,s)}updateCanvasSize(t="all"){const{dimensions:e}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(this.colorFieldRenderingContext?.canvas,e.colorField);const i={width:e.slider.width,height:e.slider.height+2*(e.thumb.radius-e.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(this.hueSliderRenderingContext?.canvas,i),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(this.opacitySliderRenderingContext?.canvas,i)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const e=t.hsv(),{dimensions:{colorField:{height:i,width:s},thumb:{radius:n}}}=this,r=e.saturationv()/(wt.s/s),a=i-e.value()/(wt.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=r,this.colorFieldScopeTop=a})),this.drawThumb(this.colorFieldRenderingContext,n,r,a,e)}drawThumb(t,e,i,s,n){const r=2*Math.PI;t.beginPath(),t.arc(i,s,e,0,r),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,s,e-3,0,r),t.fillStyle=n.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const e=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=e.hue()/(yt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.hueScopeLeft=a})),this.drawThumb(this.hueSliderRenderingContext,s,a,r,e)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:e,width:i},thumb:{radius:s}}}=this,n=s-e/2,r=t.createLinearGradient(0,0,i,0),a=["red","yellow","lime","cyan","blue","magenta","#ff0004"],o=1/(a.length-1);let l=0;a.forEach((t=>{r.addColorStop(l,lt(t).string()),l+=o})),t.clearRect(0,0,i,e+2*this.getSliderCapSpacing()),this.drawSliderPath(t,e,i,0,n),t.fillStyle=r,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:e,dimensions:{slider:{height:i,width:s},thumb:{radius:n}}}=this,r=n-i/2;t.clearRect(0,0,s,i+2*this.getSliderCapSpacing());const a=t.createLinearGradient(0,r,s,0),o=e.rgb().alpha(0),l=e.rgb().alpha(.5),h=e.rgb().alpha(1);a.addColorStop(0,o.string()),a.addColorStop(.5,l.string()),a.addColorStop(1,h.string()),this.drawSliderPath(t,i,s,0,r);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=a,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,e,i,s,n){const r=e/2+1;t.beginPath(),t.moveTo(s+r,n),t.lineTo(s+i-r,n),t.quadraticCurveTo(s+i,n,s+i,n+r),t.lineTo(s+i,n+e-r),t.quadraticCurveTo(s+i,n+e,s+i-r,n+e),t.lineTo(s+r,n+e),t.quadraticCurveTo(s,n+e,s,n+e-r),t.lineTo(s,n+r),t.quadraticCurveTo(s,n,s+r,n),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const e=t.getContext("2d");return e.fillStyle="#ccc",e.fillRect(0,0,10,10),e.fillStyle="#fff",e.fillRect(0,0,5,5),e.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const e=t,{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=p(e.alpha())/(vt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.opacityScopeLeft=a})),this.drawThumb(this.opacitySliderRenderingContext,s,a,r,e)}getSliderBoundX(t,e,i){const s=N(t,e,i);return 0===s?t:-1===s?q(t,0,e,i,2*i):q(t,0,e,e-2*i,e-i)}updateColorFromChannels(t){this.internalColorSet(lt(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:e}=this,i=t[e]().array().map(((t,e)=>3===e?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,e){return[t-.5,e-.5]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange","handleFormatOrAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatOrAlphaChannelChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};xt.style=':host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';const Ct=lt(),Mt=class{constructor(i){t(this,i),this.calciteColorPickerHexInputChange=e(this,"calciteColorPickerHexInputChange",6),this.onHexInputBlur=()=>{const t=this.hexInputNode,e=t.value,i=`#${e}`,{allowEmpty:s,internalColor:n}=this,r=s&&!e,a=k(i);this.onHexInputChange(),r||x(i)&&a||(t.value=s&&!n?"":this.formatHexForInternalInput(C(n.object())))},this.onOpacityInputBlur=()=>{const t=this.opacityInputNode,e=t.value,{allowEmpty:i,internalColor:s}=this;i&&!e||(t.value=i&&!s?"":this.formatOpacityForInternalInput(s))},this.onHexInputChange=()=>{let t=this.hexInputNode.value;if(t){const e=c(t,!1);x(e)&&this.alphaChannel&&this.internalColor&&(t=`${e+c(this.internalColor.hexa(),!0).slice(-2)}`)}this.internalSetValue(t,this.value)},this.onOpacityInputChange=()=>{const t=this.opacityInputNode;let e;if(t.value){const i=d(Number(t.value));e=this.internalColor?.alpha(i).hexa()}else e=t.value;this.internalSetValue(e,this.value)},this.onInputKeyDown=t=>{const{altKey:e,ctrlKey:i,metaKey:s,shiftKey:n}=t,{alphaChannel:r,hexInputNode:a,internalColor:o,value:l}=this,{key:h}=t,c=t.composedPath();if("Tab"===h||"Enter"===h)return c.includes(a)?this.onHexInputChange():this.onOpacityInputChange(),void("Enter"===h&&t.preventDefault());const d=this.value;if("ArrowDown"===h||"ArrowUp"===h)return l?(this.internalSetValue(u(this.nudgeRGBChannels(o,(n?10:1)*("ArrowUp"===h?1:-1),c.includes(a)?"rgb":"a"),r),d),void t.preventDefault()):(this.internalSetValue(this.previousNonNullValue,d),void t.preventDefault());const p=e||i||s,f=1===h.length,g=M.test(h);!f||p||g||t.preventDefault()},this.onHexInputPaste=t=>{const e=t.clipboardData.getData("text");x(e)&&(t.preventDefault(),this.hexInputNode.value=e.slice(1))},this.previousNonNullValue=this.value,this.storeHexInputRef=t=>{this.hexInputNode=t},this.storeOpacityInputRef=t=>{this.opacityInputNode=t},this.allowEmpty=!1,this.alphaChannel=!1,this.hexLabel="Hex",this.messages=void 0,this.numberingSystem=void 0,this.scale="m",this.value=c(u(Ct,this.alphaChannel),this.alphaChannel,!0),this.internalColor=Ct}connectedCallback(){const{allowEmpty:t,alphaChannel:e,value:i}=this;if(i){const t=c(i,e);x(t,e)&&this.internalSetValue(t,t,!1)}else t&&this.internalSetValue(null,null,!1)}componentWillLoad(){O(this)}componentDidLoad(){$(this)}handleValueChange(t,e){this.internalSetValue(t,e,!1)}render(){const{alphaChannel:t,hexLabel:e,internalColor:s,messages:n,scale:r,value:a}=this,o=this.formatHexForInternalInput(a),l=this.formatOpacityForInternalInput(s),h="l"===r?"m":"s";return i("div",{class:"container"},i("calcite-input-text",{class:"hex-input",label:n?.hex||e,maxLength:6,onCalciteInputTextChange:this.onHexInputChange,onCalciteInternalInputTextBlur:this.onHexInputBlur,onKeyDown:this.onInputKeyDown,onPaste:this.onHexInputPaste,prefixText:"#",scale:h,value:o,ref:this.storeHexInputRef}),t?i("calcite-input-number",{class:"opacity-input",key:"opacity-input",label:n?.opacity,max:vt,maxLength:3,min:0,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.onOpacityInputChange,onCalciteInternalInputNumberBlur:this.onOpacityInputBlur,onKeyDown:this.onInputKeyDown,scale:h,suffixText:"%",value:l,ref:this.storeOpacityInputRef}):null)}async setFocus(){return await F(this),o(this.hexInputNode)}internalSetValue(t,e,i=!0){if(t){const{alphaChannel:e}=this,s=c(t,e,e);if(x(s,e)){const{internalColor:t}=this,n=lt(s),r=c(u(n,e),e),a=!t||r!==c(u(t,e),e);return this.internalColor=n,this.previousNonNullValue=r,this.value=r,void(a&&i&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void(i&&this.calciteColorPickerHexInputChange.emit());this.value=e}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${p(t.alpha())}`:""}nudgeRGBChannels(t,e,i){let s;const n=t.array(),r=n.slice(0,3);if("rgb"===i)s=[...r.map((t=>t+e)),this.alphaChannel?n[3]:void 0];else{const i=d(p(t.alpha())+e);s=[...r,i]}return lt(s)}get el(){return s(this)}static get watchers(){return{value:["handleValueChange"]}}};Mt.style=":host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:68px;margin-inline-start:-1px}:host([scale=s]) .container{flex-wrap:wrap;row-gap:0.125rem}:host([scale=s]) .opacity-input{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .opacity-input{inline-size:88px}:host([hidden]){display:none}[hidden]{display:none}";const jt="checker",At=4,zt=8,St=class{constructor(e){t(this,e),this.active=!1,this.color=void 0,this.scale="m"}handleColorChange(t){this.internalColor=t?lt(t):null}componentWillLoad(){this.handleColorChange(this.color)}render(){return i("svg",{class:{swatch:!0,"swatch--no-color":!this.internalColor},xmlns:"http://www.w3.org/2000/svg"},this.renderSwatch())}renderSwatch(){const{active:t,el:e,internalColor:s}=this,r=t?"100%":"0",a={height:"100%",rx:r,stroke:"light"===l(e)?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.15)","stroke-width":"2",width:"100%"};if(!s)return i(n,null,i("clipPath",{id:"shape"},i("rect",{height:"100%",rx:r,width:"100%"})),i("rect",{"clip-path":`inset(0 round ${r})`,rx:r,...a}),i("line",{"clip-path":"url(#shape)","stroke-width":"3",x1:"100%",x2:"0",y1:"0",y2:"100%"}));const o=s.alpha(),h=u(s),c=u(s,o<1);return i(n,null,i("title",null,c),i("defs",null,i("pattern",{height:zt,id:"checker",patternUnits:"userSpaceOnUse",width:zt,x:"0",y:"0"},i("rect",{class:jt,height:At,width:At,x:"0",y:"0"}),i("rect",{class:jt,height:At,width:At,x:At,y:At}))),i("rect",{fill:"url(#checker)",height:"100%",rx:r,width:"100%"}),i("rect",{fill:h,style:{"clip-path":o<1?"polygon(100% 0, 0 0, 0 100%)":`inset(0 round ${r})`},...a}),o<1?i("rect",{fill:c,key:"opacity-fill",style:{"clip-path":"polygon(100% 0, 100% 100%, 0 100%)"},...a}):null)}get el(){return s(this)}static get watchers(){return{color:["handleColorChange"]}}};St.style=":host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.swatch--no-color rect{fill:var(--calcite-ui-foreground-1)}.swatch--no-color line{stroke:var(--calcite-ui-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}";export{xt as calcite_color_picker,Mt as calcite_color_picker_hex_input,St as calcite_color_picker_swatch}
6
+ import{r as t,c as e,h as i,a as s,F as n}from"./p-daaff213.js";import{i as r,g as a,d as o,j as l}from"./p-1ecee1c3.js";import{C as h,n as c,a as u,o as d,b as p,c as f,p as g,d as b,t as m,e as w,f as y,g as v,j as k,i as x,r as C,k as M}from"./p-bdf29ea2.js";import{c as j,d as A,u as z}from"./p-a0a1a6f8.js";import{i as S}from"./p-23351819.js";import{c as F,s as O,a as $}from"./p-629513a0.js";import{c as D,d as I}from"./p-953058ba.js";import{r as q,c as E,a as N}from"./p-ba407747.js";import{u as L,s as K,c as U,d as P}from"./p-7a636ec7.js";import{t as T}from"./p-6d9b442e.js";import"./p-6e607443.js";import"./p-a97ae2a2.js";import"./p-835eb17c.js";import"./p-e8c77b5b.js";import"./p-9e250dec.js";function _(t,e,i){return t(i={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}var H={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},B=_((function(t){var e=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var s,n=[],r=0,a=t.length;r<a;r++){var o=t[r];(s=o)&&"string"!=typeof s&&(s instanceof Array||Array.isArray(s)||s.length>=0&&(s.splice instanceof Function||Object.getOwnPropertyDescriptor(s,s.length-1)&&"String"!==s.constructor.name))?n=e.call(n,i.call(o)):n.push(o)}return n};s.wrap=function(t){return function(){return t(s(arguments))}}})),V=_((function(t){var e=Object.hasOwnProperty,i=Object.create(null);for(var s in H)e.call(H,s)&&(i[H[s]]=s);var n=t.exports={to:{},get:{}};function r(t,e,i){return Math.min(Math.max(e,t),i)}function a(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}n.get=function(t){var e,i;switch(t.substring(0,3).toLowerCase()){case"hsl":e=n.get.hsl(t),i="hsl";break;case"hwb":e=n.get.hwb(t),i="hwb";break;default:e=n.get.rgb(t),i="rgb"}return e?{model:i,value:e}:null},n.get.rgb=function(t){if(!t)return null;var i,s,n,a=[0,0,0,1];if(i=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=i[2],i=i[1],s=0;s<3;s++){var o=2*s;a[s]=parseInt(i.slice(o,o+2),16)}n&&(a[3]=parseInt(n,16)/255)}else if(i=t.match(/^#([a-f0-9]{3,4})$/i)){for(n=(i=i[1])[3],s=0;s<3;s++)a[s]=parseInt(i[s]+i[s],16);n&&(a[3]=parseInt(n+n,16)/255)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)a[s]=parseInt(i[s+1],0);i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}else{if(!(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(i=t.match(/^(\w+)$/))?"transparent"===i[1]?[0,0,0,0]:e.call(H,i[1])?((a=H[i[1]])[3]=1,a):null:null;for(s=0;s<3;s++)a[s]=Math.round(2.55*parseFloat(i[s+1]));i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}for(s=0;s<3;s++)a[s]=r(a[s],0,255);return a[3]=r(a[3],0,1),a},n.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.to.hex=function(){var t=B(arguments);return"#"+a(t[0])+a(t[1])+a(t[2])+(t[3]<1?a(Math.round(255*t[3])):"")},n.to.rgb=function(){var t=B(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},n.to.rgb.percent=function(){var t=B(arguments),e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),s=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+i+"%, "+s+"%)":"rgba("+e+"%, "+i+"%, "+s+"%, "+t[3]+")"},n.to.hsl=function(){var t=B(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},n.to.hwb=function(){var t=B(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},n.to.keyword=function(t){return i[t.slice(0,3)]}})),J={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const R={};for(const t of Object.keys(J))R[J[t]]=t;const X={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var W=X;for(const t of Object.keys(X)){if(!("channels"in X[t]))throw new Error("missing channels property: "+t);if(!("labels"in X[t]))throw new Error("missing channel labels property: "+t);if(X[t].labels.length!==X[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:i}=X[t];delete X[t].channels,delete X[t].labels,Object.defineProperty(X[t],"channels",{value:e}),Object.defineProperty(X[t],"labels",{value:i})}function Y(t,e){return function(i){return e(t(i))}}function G(t,e){const i=[e[t].parent,t];let s=W[e[t].parent][t],n=e[t].parent;for(;e[n].parent;)i.unshift(e[n].parent),s=Y(W[e[n].parent][n],s),n=e[n].parent;return s.conversion=i,s}X.rgb.hsl=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(e,i,s),r=Math.max(e,i,s),a=r-n;let o,l;r===n?o=0:e===r?o=(i-s)/a:i===r?o=2+(s-e)/a:s===r&&(o=4+(e-i)/a),o=Math.min(60*o,360),o<0&&(o+=360);const h=(n+r)/2;return l=r===n?0:h<=.5?a/(r+n):a/(2-r-n),[o,100*l,100*h]},X.rgb.hsv=function(t){let e,i,s,n,r;const a=t[0]/255,o=t[1]/255,l=t[2]/255,h=Math.max(a,o,l),c=h-Math.min(a,o,l),u=function(t){return(h-t)/6/c+.5};return 0===c?(n=0,r=0):(r=c/h,e=u(a),i=u(o),s=u(l),a===h?n=s-i:o===h?n=1/3+e-s:l===h&&(n=2/3+i-e),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*h]},X.rgb.hwb=function(t){const e=t[0],i=t[1];let s=t[2];const n=X.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,s));return s=1-1/255*Math.max(e,Math.max(i,s)),[n,100*r,100*s]},X.rgb.cmyk=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(1-e,1-i,1-s);return[100*((1-e-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*((1-s-n)/(1-n)||0),100*n]},X.rgb.keyword=function(t){const e=R[t];if(e)return e;let i,s=1/0;for(const e of Object.keys(J)){const a=((n=t)[0]-(r=J[e])[0])**2+(n[1]-r[1])**2+(n[2]-r[2])**2;a<s&&(s=a,i=e)}var n,r;return i},X.keyword.rgb=function(t){return J[t]},X.rgb.xyz=function(t){let e=t[0]/255,i=t[1]/255,s=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,[100*(.4124*e+.3576*i+.1805*s),100*(.2126*e+.7152*i+.0722*s),100*(.0193*e+.1192*i+.9505*s)]},X.rgb.lab=function(t){const e=X.rgb.xyz(t);let i=e[0],s=e[1],n=e[2];return i/=95.047,s/=100,n/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*s-16,500*(i-s),200*(s-n)]},X.hsl.rgb=function(t){const e=t[0]/360,i=t[1]/100,s=t[2]/100;let n,r,a;if(0===i)return a=255*s,[a,a,a];n=s<.5?s*(1+i):s+i-s*i;const o=2*s-n,l=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,a=6*r<1?o+6*(n-o)*r:2*r<1?n:3*r<2?o+(n-o)*(2/3-r)*6:o,l[t]=255*a;return l},X.hsl.hsv=function(t){const e=t[0];let i=t[1]/100,s=t[2]/100,n=i;const r=Math.max(s,.01);return s*=2,i*=s<=1?s:2-s,n*=r<=1?r:2-r,[e,100*(0===s?2*n/(r+n):2*i/(s+i)),(s+i)/2*100]},X.hsv.rgb=function(t){const e=t[0]/60,i=t[1]/100;let s=t[2]/100;const n=Math.floor(e)%6,r=e-Math.floor(e),a=255*s*(1-i),o=255*s*(1-i*r),l=255*s*(1-i*(1-r));switch(s*=255,n){case 0:return[s,l,a];case 1:return[o,s,a];case 2:return[a,s,l];case 3:return[a,o,s];case 4:return[l,a,s];case 5:return[s,a,o]}},X.hsv.hsl=function(t){const e=t[0],i=t[1]/100,s=t[2]/100,n=Math.max(s,.01);let r,a;a=(2-i)*s;const o=(2-i)*n;return r=i*n,r/=o<=1?o:2-o,r=r||0,a/=2,[e,100*r,100*a]},X.hwb.rgb=function(t){const e=t[0]/360;let i=t[1]/100,s=t[2]/100;const n=i+s;let r;n>1&&(i/=n,s/=n);const a=Math.floor(6*e),o=1-s;r=6*e-a,0!=(1&a)&&(r=1-r);const l=i+r*(o-i);let h,c,u;switch(a){default:case 6:case 0:h=o,c=l,u=i;break;case 1:h=l,c=o,u=i;break;case 2:h=i,c=o,u=l;break;case 3:h=i,c=l,u=o;break;case 4:h=l,c=i,u=o;break;case 5:h=o,c=i,u=l}return[255*h,255*c,255*u]},X.cmyk.rgb=function(t){const e=t[1]/100,i=t[2]/100,s=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-s)+s)),255*(1-Math.min(1,e*(1-s)+s)),255*(1-Math.min(1,i*(1-s)+s))]},X.xyz.rgb=function(t){const e=t[0]/100,i=t[1]/100,s=t[2]/100;let n,r,a;return n=3.2406*e+-1.5372*i+-.4986*s,r=-.9689*e+1.8758*i+.0415*s,a=.0557*e+-.204*i+1.057*s,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),[255*n,255*r,255*a]},X.xyz.lab=function(t){let e=t[0],i=t[1],s=t[2];return e/=95.047,i/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,[116*i-16,500*(e-i),200*(i-s)]},X.lab.xyz=function(t){let e,i,s;i=(t[0]+16)/116,e=t[1]/500+i,s=i-t[2]/200;const n=i**3,r=e**3,a=s**3;return i=n>.008856?n:(i-16/116)/7.787,e=r>.008856?r:(e-16/116)/7.787,s=a>.008856?a:(s-16/116)/7.787,e*=95.047,i*=100,s*=108.883,[e,i,s]},X.lab.lch=function(t){const e=t[0],i=t[1],s=t[2];let n;return n=360*Math.atan2(s,i)/2/Math.PI,n<0&&(n+=360),[e,Math.sqrt(i*i+s*s),n]},X.lch.lab=function(t){const e=t[1],i=t[2]/360*2*Math.PI;return[t[0],e*Math.cos(i),e*Math.sin(i)]},X.rgb.ansi16=function(t,e=null){const[i,s,n]=t;let r=null===e?X.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),0===r)return 30;let a=30+(Math.round(n/255)<<2|Math.round(s/255)<<1|Math.round(i/255));return 2===r&&(a+=60),a},X.hsv.ansi16=function(t){return X.rgb.ansi16(X.hsv.rgb(t),t[2])},X.rgb.ansi256=function(t){const e=t[0],i=t[1],s=t[2];return e===i&&i===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(s/255*5)},X.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const i=.5*(1+~~(t>50));return[(1&e)*i*255,(e>>1&1)*i*255,(e>>2&1)*i*255]},X.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},X.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},X.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let i=e[0];3===e[0].length&&(i=i.split("").map((t=>t+t)).join(""));const s=parseInt(i,16);return[s>>16&255,s>>8&255,255&s]},X.rgb.hcg=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.max(Math.max(e,i),s),r=Math.min(Math.min(e,i),s),a=n-r;let o,l;return o=a<1?r/(1-a):0,l=a<=0?0:n===e?(i-s)/a%6:n===i?2+(s-e)/a:4+(e-i)/a,l/=6,l%=1,[360*l,100*a,100*o]},X.hsl.hcg=function(t){const e=t[1]/100,i=t[2]/100,s=i<.5?2*e*i:2*e*(1-i);let n=0;return s<1&&(n=(i-.5*s)/(1-s)),[t[0],100*s,100*n]},X.hsv.hcg=function(t){const e=t[2]/100,i=t[1]/100*e;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.hcg.rgb=function(t){const e=t[1]/100,i=t[2]/100;if(0===e)return[255*i,255*i,255*i];const s=[0,0,0],n=t[0]/360%1*6,r=n%1,a=1-r;let o=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=r,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=r;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=r,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return o=(1-e)*i,[255*(e*s[0]+o),255*(e*s[1]+o),255*(e*s[2]+o)]},X.hcg.hsv=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);let s=0;return i>0&&(s=e/i),[t[0],100*s,100*i]},X.hcg.hsl=function(t){const e=t[1]/100,i=t[2]/100*(1-e)+.5*e;let s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[t[0],100*s,100*i]},X.hcg.hwb=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);return[t[0],100*(i-e),100*(1-i)]},X.hwb.hcg=function(t){const e=1-t[2]/100,i=e-t[1]/100;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},X.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},X.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},X.gray.hsl=function(t){return[0,0,t[0]]},X.gray.hsv=X.gray.hsl,X.gray.hwb=function(t){return[0,100,t[0]]},X.gray.cmyk=function(t){return[0,0,0,t[0]]},X.gray.lab=function(t){return[t[0],0,0]},X.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i},X.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const Q={};Object.keys(W).forEach((t=>{Q[t]={},Object.defineProperty(Q[t],"channels",{value:W[t].channels}),Object.defineProperty(Q[t],"labels",{value:W[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(W);for(let i=e.length,s=0;s<i;s++)t[e[s]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;){const t=i.pop(),s=Object.keys(W[t]);for(let n=s.length,r=0;r<n;r++){const n=s[r],a=e[n];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,i.unshift(n))}}return e}(t),i={},s=Object.keys(e);for(let t=s.length,n=0;n<t;n++){const t=s[n];null!==e[t].parent&&(i[t]=G(t,e))}return i}(t);Object.keys(e).forEach((i=>{const s=e[i];Q[t][i]=function(t){const e=function(...e){const i=e[0];if(null==i)return i;i.length>1&&(e=i);const s=t(e);if("object"==typeof s)for(let t=s.length,e=0;e<t;e++)s[e]=Math.round(s[e]);return s};return"conversion"in t&&(e.conversion=t.conversion),e}(s),Q[t][i].raw=function(t){const e=function(...e){const i=e[0];return null==i?i:(i.length>1&&(e=i),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(s)}))}));var Z=Q;const tt=["keyword","gray","hex"],et={};for(const t of Object.keys(Z))et[[...Z[t].labels].sort().join("")]=t;const it={};function st(t,e){if(!(this instanceof st))return new st(t,e);if(e&&e in tt&&(e=null),e&&!(e in Z))throw new Error("Unknown model: "+e);let i,s;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof st)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=V.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,s=Z[this.model].channels,this.color=e.value.slice(0,s),this.valpha="number"==typeof e.value[s]?e.value[s]:1}else if(t.length>0){this.model=e||"rgb",s=Z[this.model].channels;const i=Array.prototype.slice.call(t,0,s);this.color=ot(i,s),this.valpha="number"==typeof t[s]?t[s]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const s=e.sort().join("");if(!(s in et))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=et[s];const{labels:n}=Z[this.model],r=[];for(i=0;i<n.length;i++)r.push(t[n[i]]);this.color=ot(r)}if(it[this.model])for(s=Z[this.model].channels,i=0;i<s;i++){const t=it[this.model][i];t&&(this.color[i]=t(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}st.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in V.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to[e.model](i)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to.rgb.percent(i)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=Z[this.model],{labels:i}=Z[this.model];for(let s=0;s<e;s++)t[i[s]]=this.color[s];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new st([...this.color.map(nt(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new st([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:rt("rgb",0,at(255)),green:rt("rgb",1,at(255)),blue:rt("rgb",2,at(255)),hue:rt(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:rt("hsl",1,at(100)),lightness:rt("hsl",2,at(100)),saturationv:rt("hsv",1,at(100)),value:rt("hsv",2,at(100)),chroma:rt("hcg",1,at(100)),gray:rt("hcg",2,at(100)),white:rt("hwb",1,at(100)),wblack:rt("hwb",2,at(100)),cyan:rt("cmyk",0,at(100)),magenta:rt("cmyk",1,at(100)),yellow:rt("cmyk",2,at(100)),black:rt("cmyk",3,at(100)),x:rt("xyz",0,at(95.047)),y:rt("xyz",1,at(100)),z:rt("xyz",2,at(108.833)),l:rt("lab",0,at(100)),a:rt("lab",1),b:rt("lab",2),keyword(t){return void 0!==t?new st(t):Z[this.model].keyword(this.color)},hex(t){return void 0!==t?new st(t):V.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new st(t);const e=this.rgb().round().color;let i=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===i.length&&(i="0"+i),V.to.hex(e)+i},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[i,s]of t.entries()){const t=s/255;e[i]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return st.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const i=t.rgb(),s=this.rgb(),n=void 0===e?.5:e,r=2*n-1,a=i.alpha()-s.alpha(),o=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-o;return st.rgb(o*i.red()+l*s.red(),o*i.green()+l*s.green(),o*i.blue()+l*s.blue(),i.alpha()*n+s.alpha()*(1-n))}};for(const t of Object.keys(Z)){if(tt.includes(t))continue;const{channels:e}=Z[t];st.prototype[t]=function(...e){return this.model===t?new st(this):new st(e.length>0?e:[...(i=Z[this.model][t].raw(this.color),Array.isArray(i)?i:[i]),this.valpha],t);var i},st[t]=function(...i){let s=i[0];return"number"==typeof s&&(s=ot(i,e)),new st(s,t)}}function nt(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function rt(t,e,i){t=Array.isArray(t)?t:[t];for(const s of t)(it[s]||(it[s]=[]))[e]=i;return t=t[0],function(s){let n;return void 0!==s?(i&&(s=i(s)),n=this[t](),n.color[e]=s,n):(n=this[t]().color[e],i&&(n=i(n)),n)}}function at(t){return function(e){return Math.max(0,Math.min(t,e))}}function ot(t,e){for(let i=0;i<e;i++)"number"!=typeof t[i]&&(t[i]=0);return t}var lt=st;const ht="channel",ct="control",ut="control-and-scope",dt="scope",pt="section",ft="slider",gt=lt("#007AC2"),bt="calcite-color-",mt={r:255,g:255,b:255},wt={h:360,s:100,v:100},yt=wt.h-1,vt=100,kt={s:{slider:{height:12,width:104},colorField:{height:80,width:160},thumb:{radius:10}},m:{slider:{height:12,width:204},colorField:{height:150,width:272},thumb:{radius:10}},l:{slider:{height:12,width:384},colorField:{height:200,width:464},thumb:{radius:10}}},xt=class{constructor(s){t(this,s),this.calciteColorPickerChange=e(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=e(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=h.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:e}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[e]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===e||"ArrowUp"===e?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[e].x||0,this.colorFieldScopeTop+i[e].y||0,!1))},this.handleHueScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.hue(),a=this.baseColorFieldColor.hue(r+n);this.internalColorSet(a,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:e,color:i}=this,s=t.target.value;!e||s?s!==(i&&c(u(i,f(this.mode))))&&this.internalColorSet(lt(s)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(lt(t.currentTarget.color))},this.handleChannelInput=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=3===i?vt:"rgb"===this.channelMode?mt[Object.keys(mt)[i]]:wt[Object.keys(wt)[i]];let n;if(this.allowEmpty&&!e.value)n="";else{const t=Number(e.value);n=E(t+this.shiftKeyChannelAdjustment,0,s).toString()}e.value=n},this.handleChannelChange=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=[...this.channels];if(this.allowEmpty&&!e.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const n=3===i,r=Number(e.value);s[i]=n?d(r):r,this.updateColorFromChannels(s)},this.handleSavedColorKeyDown=t=>{S(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!r(t))return;const{offsetX:e,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(e,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(e),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(e),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!r(t))return;const e=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),e&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:e,el:i}=this;if(!i.isConnected||!e)return;const{context:s,bounds:n}=e;let r,a;const{clientX:o,clientY:l}=t;s.canvas.matches(":hover")?(r=o-n.x,a=l-n.y):(r=o<n.x+n.width&&o>n.x?o-n.x:o<n.x?0:n.width,a=l<n.y+n.height&&l>n.y?l-n.y:l<n.y?0:n.height),s===this.colorFieldRenderingContext?this.captureColorFieldColor(r,a,!1):s===this.hueSliderRenderingContext?this.captureHueSliderColor(r):s===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(r)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:e,messages:s}=this;return i("calcite-tab-title",{class:"color-mode","data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===e},"rgb"===t?s.rgb:s.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:e,channelMode:s,channels:n,messages:r,alphaChannel:o}=this,l=t===s,h="rgb"===t?[r.red,r.green,r.blue]:[r.hue,r.saturation,r.value],c=a(this.el),u=o?n:n.slice(0,3);return i("calcite-tab",{class:ct,key:t,selected:l},i("div",{class:"channels",dir:"ltr"},u.map(((t,i)=>{const s=3===i;return s&&(t=e&&!t?t:p(t)),this.renderChannel(t,i,h[i],c,s?"%":"")}))))},this.renderChannel=(t,e,s,n,r)=>i("calcite-input-number",{class:ht,"data-channel-index":e,dir:n,key:e,label:s,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:e>0&&("s"!==this.scale||!this.alphaChannel||3!==e)?"-1px":""},suffixText:r,value:t?.toString()}),this.deleteColor=()=>{const t=u(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const e=this.savedColors.filter((e=>e!==t));this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.saveColor=()=>{const t=u(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const e=[...this.savedColors,t];this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.drawColorControls=T(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,e,i=!0)=>{const{dimensions:{colorField:{height:s,width:n}}}=this,r=Math.round(wt.s/n*t),a=Math.round(wt.v/s*(s-e));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(r).value(a),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{t&&(this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.alpha(),a=this.baseColorFieldColor.alpha(r+n);this.internalColorSet(a,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=gt,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=c(u(gt,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(gt),this.dimensions=kt.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:e}=this;t&&"auto"!==e&&!f(e)&&(console.warn(`ignoring alphaChannel as the current format (${e}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,e){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=e}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,e){const{allowEmpty:i,format:s}=this;let n=!1;if(!i||t){const i=g(t);if(!i||"auto"!==s&&i!==s)return this.showIncompatibleColorWarning(t,s),void(this.value=e);n=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const r=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(r||this.calciteColorPickerChange.emit());const a=i&&!t?null:lt(null!=t&&"object"==typeof t&&f(this.mode)?v(t):t),o=!b(a,this.color);(n||o)&&this.internalColorSet(a,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||gt}effectiveLocaleChange(){L(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:e}=t;if("ArrowUp"!==e&&"ArrowDown"!==e||!t.composedPath().some((t=>t.classList?.contains(ht))))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===e&&i?9:"ArrowDown"===e&&i?-9:0}async setFocus(){await F(this),this.el.focus()}async componentWillLoad(){O(this);const{allowEmpty:t,color:e,format:i,value:s}=this,n=t&&!s,r=g(s),a=n||"auto"===i&&r||i===r,o=n?null:a?lt(s):e;a||this.showIncompatibleColorWarning(s,i),this.setMode(i,!1),this.internalColorSet(o,!1,"initial"),this.updateDimensions(this.scale);const l=`${bt}${this.storageId}`;this.storageId&&localStorage.getItem(l)&&(this.savedColors=JSON.parse(localStorage.getItem(l))),await K(this)}connectedCallback(){j(this),D(this),U(this)}componentDidLoad(){$(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),A(this),I(this),P(this)}componentDidRender(){z(this)}render(){const{allowEmpty:t,channelsDisabled:e,color:s,colorFieldScopeLeft:n,colorFieldScopeTop:r,dimensions:{slider:{width:a},thumb:{radius:o}},hexDisabled:l,hideChannels:h,hideHex:c,hideSaved:d,hueScopeLeft:f,messages:g,alphaChannel:b,opacityScopeLeft:m,savedColors:w,savedDisabled:y,scale:v,scopeOrientation:k}=this,x=s?u(s,b):null,C=o,M=f??a*gt.hue()/wt.h,j=o,A=m??a*p(gt.alpha())/vt,z=null===s,S="vertical"===k,F=l||c,O=e||h,$=y||d,[D,I]=this.getAdjustedScopePosition(n,r),[q,E]=this.getAdjustedScopePosition(M,C),[N,L]=this.getAdjustedScopePosition(A,j);return i("div",{class:"container"},i("div",{class:ut},i("canvas",{class:"color-field",onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":S?g.value:g.saturation,"aria-valuemax":S?wt.v:wt.s,"aria-valuemin":"0","aria-valuenow":(S?s?.saturationv():s?.value())||"0",class:{[dt]:!0,"scope--color-field":!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${I||0}px`,left:`${D||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:"preview-and-sliders"},i("calcite-color-picker-swatch",{class:"preview",color:x,scale:"l"}),i("div",{class:"sliders"},i("div",{class:ut},i("canvas",{class:{[ft]:!0,"hue-slider":!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":wt.h,"aria-valuemin":"0","aria-valuenow":s?.round().hue()||gt.round().hue(),class:{[dt]:!0,"scope--hue":!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${E}px`,left:`${q}px`},tabindex:"0",ref:this.storeHueScope})),b?i("div",{class:ut},i("canvas",{class:{[ft]:!0,"opacity-slider":!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":vt,"aria-valuemin":0,"aria-valuenow":(s||gt).round().alpha(),class:{[dt]:!0,"scope--opacity":!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${L}px`,left:`${N}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),F&&O?null:i("div",{class:{"control-section":!0,[pt]:!0}},i("div",{class:"hex-and-channels-group"},F?null:i("div",{class:"color-hex-options"},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:b,class:ct,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:v,value:x})),O?null:i("calcite-tabs",{class:{"color-mode-container":!0,"section--split":!0},scale:"l"===v?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),$?null:i("div",{class:{"saved-colors-section":!0,[pt]:!0}},i("div",{class:"header"},i("label",null,g.saved),i("div",{class:"saved-colors-buttons"},i("calcite-button",{appearance:"transparent",class:"delete-color",disabled:z,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:v,type:"button"}),i("calcite-button",{appearance:"transparent",class:"save-color",disabled:z,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:v,type:"button"}))),w.length>0?i("div",{class:"saved-colors"},[...w.map((t=>i("calcite-color-picker-swatch",{class:"saved-color",color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:v,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,e){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${e})`)}setMode(t,e=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,e)}ensureCompatibleMode(t,e){const{alphaChannel:i}=this,s=f(t);if(i&&!s){const i=y(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&s){const i=m(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:e}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(yt/e*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:e}}}=this,i=d(vt/e*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,e=!0,i="user-interaction"){e&&b(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,e=this.mode){if(!t)return null;if(e.includes("hex")){const i=e===h.HEXA;return c(u(t.round(),i),i)}if(e.includes("-css")){const i=t[e.replace("-css","").replace("a","")]().round().string();return(e.endsWith("a")||e.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[m(e)]().round().object();return e.endsWith("a")?w(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:e}}}=this;return 2*e-t}updateDimensions(t="m"){this.dimensions=kt[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:e,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,e);const s=t.createLinearGradient(0,0,i,0);s.addColorStop(0,"rgba(255,255,255,1)"),s.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=s,t.fillRect(0,0,i,e);const n=t.createLinearGradient(0,0,0,e);n.addColorStop(0,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=n,t.fillRect(0,0,i,e),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:e,width:i}){if(!t)return;const s=window.devicePixelRatio||1;t.width=i*s,t.height=e*s,t.style.height=`${e}px`,t.style.width=`${i}px`,t.getContext("2d").scale(s,s)}updateCanvasSize(t="all"){const{dimensions:e}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(this.colorFieldRenderingContext?.canvas,e.colorField);const i={width:e.slider.width,height:e.slider.height+2*(e.thumb.radius-e.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(this.hueSliderRenderingContext?.canvas,i),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(this.opacitySliderRenderingContext?.canvas,i)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const e=t.hsv(),{dimensions:{colorField:{height:i,width:s},thumb:{radius:n}}}=this,r=e.saturationv()/(wt.s/s),a=i-e.value()/(wt.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=r,this.colorFieldScopeTop=a})),this.drawThumb(this.colorFieldRenderingContext,n,r,a,e)}drawThumb(t,e,i,s,n){const r=2*Math.PI;t.beginPath(),t.arc(i,s,e,0,r),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,s,e-3,0,r),t.fillStyle=n.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const e=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=e.hue()/(yt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.hueScopeLeft=a})),this.drawThumb(this.hueSliderRenderingContext,s,a,r,e)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:e,width:i},thumb:{radius:s}}}=this,n=s-e/2,r=t.createLinearGradient(0,0,i,0),a=["red","yellow","lime","cyan","blue","magenta","#ff0004"],o=1/(a.length-1);let l=0;a.forEach((t=>{r.addColorStop(l,lt(t).string()),l+=o})),t.clearRect(0,0,i,e+2*this.getSliderCapSpacing()),this.drawSliderPath(t,e,i,0,n),t.fillStyle=r,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:e,dimensions:{slider:{height:i,width:s},thumb:{radius:n}}}=this,r=n-i/2;t.clearRect(0,0,s,i+2*this.getSliderCapSpacing());const a=t.createLinearGradient(0,r,s,0),o=e.rgb().alpha(0),l=e.rgb().alpha(.5),h=e.rgb().alpha(1);a.addColorStop(0,o.string()),a.addColorStop(.5,l.string()),a.addColorStop(1,h.string()),this.drawSliderPath(t,i,s,0,r);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=a,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,e,i,s,n){const r=e/2+1;t.beginPath(),t.moveTo(s+r,n),t.lineTo(s+i-r,n),t.quadraticCurveTo(s+i,n,s+i,n+r),t.lineTo(s+i,n+e-r),t.quadraticCurveTo(s+i,n+e,s+i-r,n+e),t.lineTo(s+r,n+e),t.quadraticCurveTo(s,n+e,s,n+e-r),t.lineTo(s,n+r),t.quadraticCurveTo(s,n,s+r,n),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const e=t.getContext("2d");return e.fillStyle="#ccc",e.fillRect(0,0,10,10),e.fillStyle="#fff",e.fillRect(0,0,5,5),e.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const e=t,{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=p(e.alpha())/(vt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.opacityScopeLeft=a})),this.drawThumb(this.opacitySliderRenderingContext,s,a,r,e)}getSliderBoundX(t,e,i){const s=N(t,e,i);return 0===s?t:-1===s?q(t,0,e,i,2*i):q(t,0,e,e-2*i,e-i)}updateColorFromChannels(t){this.internalColorSet(lt(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:e}=this,i=t[e]().array().map(((t,e)=>3===e?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,e){return[t-.5,e-.5]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange","handleFormatOrAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatOrAlphaChannelChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};xt.style=':host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';const Ct=lt(),Mt=class{constructor(i){t(this,i),this.calciteColorPickerHexInputChange=e(this,"calciteColorPickerHexInputChange",6),this.onHexInputBlur=()=>{const t=this.hexInputNode,e=t.value,i=`#${e}`,{allowEmpty:s,internalColor:n}=this,r=s&&!e,a=k(i);this.onHexInputChange(),r||x(i)&&a||(t.value=s&&!n?"":this.formatHexForInternalInput(C(n.object())))},this.onOpacityInputBlur=()=>{const t=this.opacityInputNode,e=t.value,{allowEmpty:i,internalColor:s}=this;i&&!e||(t.value=i&&!s?"":this.formatOpacityForInternalInput(s))},this.onHexInputChange=()=>{let t=this.hexInputNode.value;if(t){const e=c(t,!1);x(e)&&this.alphaChannel&&this.internalColor&&(t=`${e+c(this.internalColor.hexa(),!0).slice(-2)}`)}this.internalSetValue(t,this.value)},this.onOpacityInputChange=()=>{const t=this.opacityInputNode;let e;if(t.value){const i=d(Number(t.value));e=this.internalColor?.alpha(i).hexa()}else e=t.value;this.internalSetValue(e,this.value)},this.onInputKeyDown=t=>{const{altKey:e,ctrlKey:i,metaKey:s,shiftKey:n}=t,{alphaChannel:r,hexInputNode:a,internalColor:o,value:l}=this,{key:h}=t,c=t.composedPath();if("Tab"===h||"Enter"===h)return c.includes(a)?this.onHexInputChange():this.onOpacityInputChange(),void("Enter"===h&&t.preventDefault());const d=this.value;if("ArrowDown"===h||"ArrowUp"===h)return l?(this.internalSetValue(u(this.nudgeRGBChannels(o,(n?10:1)*("ArrowUp"===h?1:-1),c.includes(a)?"rgb":"a"),r),d),void t.preventDefault()):(this.internalSetValue(this.previousNonNullValue,d),void t.preventDefault());const p=e||i||s,f=1===h.length,g=M.test(h);!f||p||g||t.preventDefault()},this.onHexInputPaste=t=>{const e=t.clipboardData.getData("text");x(e)&&(t.preventDefault(),this.hexInputNode.value=e.slice(1))},this.previousNonNullValue=this.value,this.storeHexInputRef=t=>{this.hexInputNode=t},this.storeOpacityInputRef=t=>{this.opacityInputNode=t},this.allowEmpty=!1,this.alphaChannel=!1,this.hexLabel="Hex",this.messages=void 0,this.numberingSystem=void 0,this.scale="m",this.value=c(u(Ct,this.alphaChannel),this.alphaChannel,!0),this.internalColor=Ct}connectedCallback(){const{allowEmpty:t,alphaChannel:e,value:i}=this;if(i){const t=c(i,e);x(t,e)&&this.internalSetValue(t,t,!1)}else t&&this.internalSetValue(null,null,!1)}componentWillLoad(){O(this)}componentDidLoad(){$(this)}handleValueChange(t,e){this.internalSetValue(t,e,!1)}render(){const{alphaChannel:t,hexLabel:e,internalColor:s,messages:n,scale:r,value:a}=this,o=this.formatHexForInternalInput(a),l=this.formatOpacityForInternalInput(s),h="l"===r?"m":"s";return i("div",{class:"container"},i("calcite-input-text",{class:"hex-input",label:n?.hex||e,maxLength:6,onCalciteInputTextChange:this.onHexInputChange,onCalciteInternalInputTextBlur:this.onHexInputBlur,onKeyDown:this.onInputKeyDown,onPaste:this.onHexInputPaste,prefixText:"#",scale:h,value:o,ref:this.storeHexInputRef}),t?i("calcite-input-number",{class:"opacity-input",key:"opacity-input",label:n?.opacity,max:vt,maxLength:3,min:0,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.onOpacityInputChange,onCalciteInternalInputNumberBlur:this.onOpacityInputBlur,onKeyDown:this.onInputKeyDown,scale:h,suffixText:"%",value:l,ref:this.storeOpacityInputRef}):null)}async setFocus(){return await F(this),o(this.hexInputNode)}internalSetValue(t,e,i=!0){if(t){const{alphaChannel:e}=this,s=c(t,e,e);if(x(s,e)){const{internalColor:t}=this,n=lt(s),r=c(u(n,e),e),a=!t||r!==c(u(t,e),e);return this.internalColor=n,this.previousNonNullValue=r,this.value=r,void(a&&i&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void(i&&this.calciteColorPickerHexInputChange.emit());this.value=e}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${p(t.alpha())}`:""}nudgeRGBChannels(t,e,i){let s;const n=t.array(),r=n.slice(0,3);if("rgb"===i)s=[...r.map((t=>t+e)),this.alphaChannel?n[3]:void 0];else{const i=d(p(t.alpha())+e);s=[...r,i]}return lt(s)}get el(){return s(this)}static get watchers(){return{value:["handleValueChange"]}}};Mt.style=":host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:68px;margin-inline-start:-1px}:host([scale=s]) .container{flex-wrap:wrap;row-gap:0.125rem}:host([scale=s]) .opacity-input{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .opacity-input{inline-size:88px}:host([hidden]){display:none}[hidden]{display:none}";const jt="checker",At=4,zt=8,St=class{constructor(e){t(this,e),this.active=!1,this.color=void 0,this.scale="m"}handleColorChange(t){this.internalColor=t?lt(t):null}componentWillLoad(){this.handleColorChange(this.color)}render(){return i("svg",{class:{swatch:!0,"swatch--no-color":!this.internalColor},xmlns:"http://www.w3.org/2000/svg"},this.renderSwatch())}renderSwatch(){const{active:t,el:e,internalColor:s}=this,r=t?"100%":"0",a={height:"100%",rx:r,stroke:"light"===l(e)?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.15)","stroke-width":"2",width:"100%"};if(!s)return i(n,null,i("clipPath",{id:"shape"},i("rect",{height:"100%",rx:r,width:"100%"})),i("rect",{"clip-path":`inset(0 round ${r})`,rx:r,...a}),i("line",{"clip-path":"url(#shape)","stroke-width":"3",x1:"100%",x2:"0",y1:"0",y2:"100%"}));const o=s.alpha(),h=u(s),c=u(s,o<1);return i(n,null,i("title",null,c),i("defs",null,i("pattern",{height:zt,id:"checker",patternUnits:"userSpaceOnUse",width:zt,x:"0",y:"0"},i("rect",{class:jt,height:At,width:At,x:"0",y:"0"}),i("rect",{class:jt,height:At,width:At,x:At,y:At}))),i("rect",{fill:"url(#checker)",height:"100%",rx:r,width:"100%"}),i("rect",{fill:h,style:{"clip-path":o<1?"polygon(100% 0, 0 0, 0 100%)":`inset(0 round ${r})`},...a}),o<1?i("rect",{fill:c,key:"opacity-fill",style:{"clip-path":"polygon(100% 0, 100% 100%, 0 100%)"},...a}):null)}get el(){return s(this)}static get watchers(){return{color:["handleColorChange"]}}};St.style=":host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.swatch--no-color rect{fill:var(--calcite-ui-foreground-1)}.swatch--no-color line{stroke:var(--calcite-ui-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}";export{xt as calcite_color_picker,Mt as calcite_color_picker_hex_input,St as calcite_color_picker_swatch}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
+ * v1.11.0
5
+ */
6
+ import{r as t,c as i,h as e,H as n,a as o}from"./p-daaff213.js";import{t as s,i as a,l as r,d as c}from"./p-1ecee1c3.js";import{f as l,c as d,d as h,a as p,F as m,r as u}from"./p-65902546.js";import{g as f}from"./p-6e607443.js";import{c as g,u as w,d as b}from"./p-a0a1a6f8.js";import{i as v}from"./p-23351819.js";import{c as k,s as x,a as y}from"./p-629513a0.js";import{c as z}from"./p-e8c77b5b.js";import{o as D}from"./p-3f86893e.js";import{g as C}from"./p-cfdb0a68.js";import"./p-a97ae2a2.js";import"./p-9e250dec.js";import"./p-835eb17c.js";const I=class{constructor(e){t(this,e),this.calciteDropdownSelect=i(this,"calciteDropdownSelect",6),this.calciteDropdownBeforeClose=i(this,"calciteDropdownBeforeClose",6),this.calciteDropdownClose=i(this,"calciteDropdownClose",6),this.calciteDropdownBeforeOpen=i(this,"calciteDropdownBeforeOpen",6),this.calciteDropdownOpen=i(this,"calciteDropdownOpen",6),this.items=[],this.groups=[],this.mutationObserver=z("mutation",(()=>this.updateItems())),this.resizeObserver=z("resize",(t=>this.resizeObserverCallback(t))),this.openTransitionProp="opacity",this.guid=`calcite-dropdown-${f()}`,this.defaultAssignedElements=[],this.slotChangeHandler=t=>{this.defaultAssignedElements=t.target.assignedElements({flatten:!0}),this.updateItems()},this.setFilteredPlacements=()=>{const{el:t,flipPlacements:i}=this;this.filteredFlipPlacements=i?l(i,t):null},this.updateTriggers=t=>{this.triggers=t.target.assignedElements({flatten:!0}),this.reposition(!0)},this.updateItems=()=>{this.items=this.groups.map((t=>Array.from(t?.querySelectorAll("calcite-dropdown-item")))).reduce(((t,i)=>[...t,...i]),[]),this.updateSelectedItems(),this.reposition(!0),this.items.forEach((t=>t.scale=this.scale))},this.updateGroups=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-dropdown-group")));this.groups=i,this.updateItems()},this.resizeObserverCallback=t=>{t.forEach((t=>{const{target:i}=t;i===this.referenceEl?this.setDropdownWidth():i===this.scrollerEl&&this.setMaxScrollerHeight()}))},this.setDropdownWidth=()=>{const{referenceEl:t,scrollerEl:i}=this,e=t?.clientWidth;e&&i&&(i.style.minWidth=`${e}px`)},this.setMaxScrollerHeight=()=>{const{scrollerEl:t}=this;if(!t)return;this.reposition(!0);const i=this.getMaxScrollerHeight();t.style.maxHeight=i>0?`${i}px`:"",this.reposition(!0)},this.setScrollerAndTransitionEl=t=>{this.resizeObserver.observe(t),this.scrollerEl=t,this.transitionEl=t},this.setReferenceEl=t=>{this.referenceEl=t,d(this,this.referenceEl,this.floatingEl),this.resizeObserver.observe(t)},this.setFloatingEl=t=>{this.floatingEl=t,d(this,this.referenceEl,this.floatingEl)},this.keyDownHandler=t=>{if(!t.composedPath().includes(this.referenceEl))return;const{defaultPrevented:i,key:e}=t;if(!i){if(this.open){if("Escape"===e)return this.closeCalciteDropdown(),void t.preventDefault();if(t.shiftKey&&"Tab"===e)return this.closeCalciteDropdown(),void t.preventDefault()}v(e)?(this.openCalciteDropdown(),t.preventDefault()):"Escape"===e&&(this.closeCalciteDropdown(),t.preventDefault())}},this.focusOnFirstActiveOrFirstItem=()=>{this.getFocusableElement(this.items.find((t=>t.selected))||this.items[0])},this.toggleOpenEnd=()=>{this.focusOnFirstActiveOrFirstItem(),this.el.removeEventListener("calciteDropdownOpen",this.toggleOpenEnd)},this.openCalciteDropdown=()=>{this.open=!this.open,this.open&&this.el.addEventListener("calciteDropdownOpen",this.toggleOpenEnd)},this.open=!1,this.closeOnSelectDisabled=!1,this.disabled=!1,this.flipPlacements=void 0,this.maxItems=0,this.overlayPositioning="absolute",this.placement=h,this.selectedItems=[],this.type="click",this.width=void 0,this.scale="m"}openHandler(t){if(!this.disabled)return t&&this.reposition(!0),void D(this);this.open=!1}handleDisabledChange(t){t||(this.open=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}maxItemsHandler(){this.setMaxScrollerHeight()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}handlePropsChange(){this.updateItems()}async setFocus(){await k(this),this.el.focus()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),this.reposition(!0),this.open&&(this.openHandler(this.open),D(this)),g(this),this.updateItems()}componentWillLoad(){x(this)}componentDidLoad(){y(this),this.reposition(!0)}componentDidRender(){w(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),b(this),p(this,this.referenceEl,this.floatingEl)}render(){const{open:t,guid:i}=this;return e(n,null,e("div",{class:"calcite-trigger-container",id:`${i}-menubutton`,onClick:this.openCalciteDropdown,onKeyDown:this.keyDownHandler,ref:this.setReferenceEl},e("slot",{"aria-controls":`${i}-menu`,"aria-expanded":s(t),"aria-haspopup":"menu",name:"trigger",onSlotchange:this.updateTriggers})),e("div",{"aria-hidden":s(!t),class:"calcite-dropdown-wrapper",ref:this.setFloatingEl},e("div",{"aria-labelledby":`${i}-menubutton`,class:{"calcite-dropdown-content":!0,[m.animation]:!0,[m.animationActive]:t},id:`${i}-menu`,role:"menu",ref:this.setScrollerAndTransitionEl},e("slot",{onSlotchange:this.updateGroups}))))}async reposition(t=!1){const{floatingEl:i,referenceEl:e,placement:n,overlayPositioning:o,filteredFlipPlacements:s}=this;return u(this,{floatingEl:i,referenceEl:e,overlayPositioning:o,placement:n,flipPlacements:s,type:"menu"},t)}closeCalciteDropdownOnClick(t){!this.disabled&&a(t)&&this.open&&!t.composedPath().includes(this.el)&&this.closeCalciteDropdown(!1)}closeCalciteDropdownOnEvent(t){this.closeCalciteDropdown(),t.stopPropagation()}closeCalciteDropdownOnOpenEvent(t){t.composedPath().includes(this.el)||(this.open=!1)}pointerEnterHandler(){this.disabled||"hover"!==this.type||this.openCalciteDropdown()}pointerLeaveHandler(){this.disabled||"hover"!==this.type||this.closeCalciteDropdown()}calciteInternalDropdownItemKeyEvent(t){const{keyboardEvent:i}=t.detail,e=i.target;switch(i.key){case"Tab":this.open=!1,this.updateTabIndexOfItems(e);break;case"ArrowDown":r(this.items,e,"next");break;case"ArrowUp":r(this.items,e,"previous");break;case"Home":r(this.items,e,"first");break;case"End":r(this.items,e,"last")}t.stopPropagation()}handleItemSelect(t){this.updateSelectedItems(),t.stopPropagation(),this.calciteDropdownSelect.emit(),this.closeOnSelectDisabled&&"none"!==t.detail.requestedDropdownGroup.selectionMode||this.closeCalciteDropdown(),t.stopPropagation()}onBeforeOpen(){this.calciteDropdownBeforeOpen.emit()}onOpen(){this.calciteDropdownOpen.emit()}onBeforeClose(){this.calciteDropdownBeforeClose.emit()}onClose(){this.calciteDropdownClose.emit()}updateSelectedItems(){this.selectedItems=this.items.filter((t=>t.selected))}getMaxScrollerHeight(){const{maxItems:t,items:i}=this;let e,n=0,o=0;return this.groups.forEach((i=>{t>0&&n<t&&Array.from(i.children).forEach(((i,s)=>{0===s&&(isNaN(e)&&(e=i.offsetTop),o+=e),n<t&&(o+=i.offsetHeight,n+=1)}))})),i.length>t?o:0}closeCalciteDropdown(t=!0){this.open=!1,t&&c(this.triggers[0])}getFocusableElement(t){if(!t)return;const i=t.attributes.isLink?t.shadowRoot.querySelector("a"):t;c(i)}updateTabIndexOfItems(t){this.items.forEach((i=>{i.tabIndex=t!==i?-1:0}))}static get delegatesFocus(){return!0}get el(){return o(this)}static get watchers(){return{open:["openHandler"],disabled:["handleDisabledChange"],flipPlacements:["flipPlacementsHandler"],maxItems:["maxItemsHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],scale:["handlePropsChange"]}}};I.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-flex;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{visibility:visible}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-trigger-container{position:relative;display:flex;flex:1 1 auto;word-wrap:break-word;word-break:break-word}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}:host([hidden]){display:none}[hidden]{display:none}";const E="container",H=class{constructor(e){t(this,e),this.calciteInternalDropdownItemChange=i(this,"calciteInternalDropdownItemChange",6),this.updateItems=()=>{Array.from(this.el.querySelectorAll("calcite-dropdown-item")).forEach((t=>t.selectionMode=this.selectionMode))},this.mutationObserver=z("mutation",(()=>this.updateItems())),this.groupTitle=void 0,this.scale="m",this.selectionMode="single"}handlePropsChange(){this.updateItems()}connectedCallback(){this.updateItems(),this.mutationObserver?.observe(this.el,{childList:!0})}componentWillLoad(){this.groupPosition=this.getGroupPosition()}disconnectedCallback(){this.mutationObserver?.disconnect()}render(){const t=this.groupTitle?e("span",{"aria-hidden":"true",class:"dropdown-title"},this.groupTitle):null,i=this.groupPosition>0?e("div",{class:"dropdown-separator",role:"separator"}):null;return e(n,{"aria-label":this.groupTitle,role:"group"},e("div",{class:{[E]:!0,[`${E}--${this.scale}`]:!0}},i,t,e("slot",null)))}updateActiveItemOnChange(t){this.requestedDropdownGroup=t.detail.requestedDropdownGroup,this.requestedDropdownItem=t.detail.requestedDropdownItem,this.calciteInternalDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}getGroupPosition(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)}static get delegatesFocus(){return!0}get el(){return o(this)}static get watchers(){return{selectionMode:["handlePropsChange"]}}};H.style=":host{position:relative;display:block}.container{text-align:start}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;block-size:1px;background-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";const P=class{constructor(e){t(this,e),this.calciteDropdownItemSelect=i(this,"calciteDropdownItemSelect",6),this.calciteInternalDropdownItemSelect=i(this,"calciteInternalDropdownItemSelect",6),this.calciteInternalDropdownItemKeyEvent=i(this,"calciteInternalDropdownItemKeyEvent",6),this.calciteInternalDropdownCloseRequest=i(this,"calciteInternalDropdownCloseRequest",6),this.selected=!1,this.iconFlipRtl=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.href=void 0,this.label=void 0,this.rel=void 0,this.target=void 0,this.selectionMode="single",this.scale="m"}async setFocus(){await k(this),this.el?.focus()}componentWillLoad(){x(this),this.initialize()}componentDidLoad(){y(this)}connectedCallback(){this.initialize()}render(){const{href:t,selectionMode:i,label:o,iconFlipRtl:a,scale:r}=this,c=e("calcite-icon",{class:"dropdown-item-icon-start",flipRtl:"start"===a||"both"===a,icon:this.iconStart,scale:C(this.scale)}),l=e("span",{class:"dropdown-item-content"},e("slot",null)),d=e("calcite-icon",{class:"dropdown-item-icon-end",flipRtl:"end"===a||"both"===a,icon:this.iconEnd,scale:C(this.scale)}),h=this.iconStart&&this.iconEnd?[c,l,d]:this.iconStart?[c,l]:this.iconEnd?[l,d]:l,p=t?e("a",{"aria-label":o,class:"dropdown-link",href:t,rel:this.rel,tabIndex:-1,target:this.target,ref:t=>this.childLink=t},h):h,m=t?null:"single"===i?"menuitemradio":"multiple"===i?"menuitemcheckbox":"menuitem",u="none"!==i?s(this.selected):null;return e(n,{"aria-checked":u,"aria-label":t?"":o,role:m,tabindex:"0"},e("div",{class:{[E]:!0,"container--link":!!t,[`${E}--${r}`]:!0,"container--multi-selection":"multiple"===i,"container--single-selection":"single"===i,"container--none-selection":"none"===i}},"none"!==i?e("calcite-icon",{class:"dropdown-item-icon",icon:"multiple"===i?"check":"bullet-point",scale:C(this.scale)}):null,p))}onClick(){this.emitRequestedItem()}keyDownHandler(t){switch(t.key){case" ":case"Enter":this.emitRequestedItem(),this.href&&this.childLink.click(),t.preventDefault();break;case"Escape":this.calciteInternalDropdownCloseRequest.emit(),t.preventDefault();break;case"Tab":this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:t});break;case"ArrowUp":case"ArrowDown":case"Home":case"End":t.preventDefault(),this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:t})}}updateActiveItemOnChange(t){t.composedPath().includes(this.parentDropdownGroupEl)&&(this.requestedDropdownGroup=t.detail.requestedDropdownGroup,this.requestedDropdownItem=t.detail.requestedDropdownItem,this.determineActiveItem()),t.stopPropagation()}initialize(){this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group"),"none"===this.selectionMode&&(this.selected=!1)}determineActiveItem(){switch(this.selectionMode){case"multiple":this.el===this.requestedDropdownItem&&(this.selected=!this.selected);break;case"single":this.el===this.requestedDropdownItem?this.selected=!0:this.requestedDropdownGroup===this.parentDropdownGroupEl&&(this.selected=!1);break;case"none":this.selected=!1}}emitRequestedItem(){this.calciteDropdownItemSelect.emit(),this.calciteInternalDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})}get el(){return o(this)}};P.style=".container--s{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}.container--m{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}.container--l{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}.container--s.container--none-selection{padding-inline-start:0.25rem}.container--s.container--none-selection .dropdown-link{padding-inline-start:0px}.container--m.container--none-selection{padding-inline-start:0.5rem}.container--m.container--none-selection .dropdown-link{padding-inline-start:0px}.container--l.container--none-selection{padding-inline-start:0.75rem}.container--l.container--none-selection .dropdown-link{padding-inline-start:0px}:host{position:relative;display:flex;flex-grow:1;align-items:center}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);text-align:start}.dropdown-item-content{flex:1 1 auto;padding-block:0.125rem;padding-inline-end:auto;padding-inline-start:0.25rem}:host,.container--link a{outline-color:transparent}:host(:focus){outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.container--link{padding:0px}.container--link a{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.container--s .dropdown-link{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}.container--m .dropdown-link{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}.container--l .dropdown-link{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration-line:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);text-decoration-line:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}:host([selected]) .container:not(.container--none-selection),:host([selected]) .container--link .dropdown-link{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected]) .container:not(.container--none-selection):before,:host([selected]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([selected]) .container:not(.container--none-selection) calcite-icon,:host([selected]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{inset-inline-start:0.5rem}.container--m:before{inset-inline-start:0.75rem}.container--l:before{inset-inline-start:1rem}.dropdown-item-icon{position:absolute;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0.9)}.container--s .dropdown-item-icon{inset-inline-start:0.25rem}.container--m .dropdown-item-icon{inset-inline-start:0.5rem}.container--l .dropdown-item-icon{inset-inline-start:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([selected]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{margin-inline-end:0.5rem;margin-inline-start:0.25rem}.container--s .dropdown-item-icon-end{margin-inline-start:0.5rem}.container--m .dropdown-item-icon-start{margin-inline-end:0.75rem;margin-inline-start:0.25rem}.container--m .dropdown-item-icon-end{margin-inline-start:0.75rem}.container--l .dropdown-item-icon-start{margin-inline-end:1rem;margin-inline-start:0.25rem}.container--l .dropdown-item-icon-end{margin-inline-start:1rem}:host([hidden]){display:none}[hidden]{display:none}";export{I as calcite_dropdown,H as calcite_dropdown_group,P as calcite_dropdown_item}