@esri/calcite-components 1.9.0-next.2 → 1.9.0-next.4

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 (976) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +2 -2
  3. package/dist/calcite/{p-68f14f80.js → p-003bec51.js} +2 -2
  4. package/dist/calcite/{p-ff9cf414.js → p-0425f900.js} +2 -2
  5. package/dist/calcite/{p-ec438d5e.js → p-051d3769.js} +2 -2
  6. package/dist/calcite/{p-70fcf1ca.entry.js → p-0551e741.entry.js} +2 -2
  7. package/dist/calcite/{p-e7b63d0e.entry.js → p-0608b56c.entry.js} +2 -2
  8. package/dist/calcite/{p-8735a364.entry.js → p-0ec34f38.entry.js} +2 -2
  9. package/dist/calcite/{p-acfef0b9.entry.js → p-0fe3aaa3.entry.js} +2 -2
  10. package/dist/calcite/{p-533e529e.js → p-11da1b14.js} +2 -2
  11. package/dist/calcite/{p-865fb48f.js → p-1520a1ea.js} +2 -2
  12. package/dist/calcite/{p-53d1c057.entry.js → p-16ed3229.entry.js} +2 -2
  13. package/dist/calcite/{p-0c0c333b.js → p-17eab823.js} +2 -2
  14. package/dist/calcite/{p-59703d42.entry.js → p-1a667c2a.entry.js} +2 -2
  15. package/dist/calcite/{p-7dbfc53b.entry.js → p-1a8b427b.entry.js} +2 -2
  16. package/dist/calcite/{p-8c131b5f.entry.js → p-1b9ea6a1.entry.js} +2 -2
  17. package/dist/calcite/{p-675b6557.js → p-1da04471.js} +2 -2
  18. package/dist/calcite/{p-f48daa6c.entry.js → p-1db5419b.entry.js} +2 -2
  19. package/dist/calcite/{p-a7c52287.entry.js → p-1dc83d37.entry.js} +2 -2
  20. package/dist/calcite/{p-d60d1ab4.js → p-1dfad893.js} +2 -2
  21. package/dist/calcite/{p-4e35d688.entry.js → p-1fd9b546.entry.js} +2 -2
  22. package/dist/calcite/{p-0ed9761b.entry.js → p-20469675.entry.js} +2 -2
  23. package/dist/calcite/{p-b2c20b5a.js → p-213c3493.js} +2 -2
  24. package/dist/calcite/{p-6845a16e.js → p-21795ae4.js} +1 -1
  25. package/dist/calcite/{p-30d08f7e.entry.js → p-25f6daf4.entry.js} +2 -2
  26. package/dist/calcite/p-2a41b985.js +6 -0
  27. package/dist/calcite/p-2a61240e.entry.js +6 -0
  28. package/dist/calcite/{p-b47fc1c3.js → p-2b940331.js} +2 -2
  29. package/dist/calcite/{p-9513aa32.js → p-2bcc09b6.js} +2 -2
  30. package/dist/calcite/{p-7796e1ef.entry.js → p-2c848ca4.entry.js} +2 -2
  31. package/dist/calcite/{p-b9b79f0b.js → p-2e54fed8.js} +2 -2
  32. package/dist/calcite/{p-03fd962c.entry.js → p-2ecebb3f.entry.js} +2 -2
  33. package/dist/calcite/{p-02674313.js → p-342aef2f.js} +1 -1
  34. package/dist/calcite/{p-c1e4afe6.js → p-34d96cac.js} +2 -2
  35. package/dist/calcite/{p-b1bc2b61.entry.js → p-353d1be6.entry.js} +2 -2
  36. package/dist/calcite/{p-79624bb6.js → p-35477750.js} +2 -2
  37. package/dist/calcite/{p-e708a21d.js → p-375b9b2d.js} +2 -2
  38. package/dist/calcite/{p-fd4d74ee.js → p-377e4dee.js} +1 -1
  39. package/dist/calcite/{p-6dcd6082.js → p-39e0b8d2.js} +2 -2
  40. package/dist/calcite/{p-9650fa93.entry.js → p-3a6ce74b.entry.js} +2 -2
  41. package/dist/calcite/p-3aa897da.entry.js +6 -0
  42. package/dist/calcite/{p-38b509e8.entry.js → p-3f76348b.entry.js} +2 -2
  43. package/dist/calcite/{p-b2d492a7.entry.js → p-437c8183.entry.js} +2 -2
  44. package/dist/calcite/{p-4ac6fe6d.js → p-43c86ccd.js} +2 -2
  45. package/dist/calcite/{p-11a3a106.js → p-45550a07.js} +2 -2
  46. package/dist/calcite/{p-4ab096a2.entry.js → p-462f80c9.entry.js} +2 -2
  47. package/dist/calcite/{p-dca917ce.js → p-484edaed.js} +2 -2
  48. package/dist/calcite/{p-21c00034.entry.js → p-49a50b1a.entry.js} +2 -2
  49. package/dist/calcite/p-49edc571.js +6 -0
  50. package/dist/calcite/{p-2e0a5b8e.entry.js → p-4a16cb2b.entry.js} +2 -2
  51. package/dist/calcite/{p-400de60e.entry.js → p-4b3cb8b5.entry.js} +2 -2
  52. package/dist/calcite/{p-30fd7c01.js → p-4ce14ea6.js} +2 -2
  53. package/dist/calcite/{p-30d55551.entry.js → p-4e7223f3.entry.js} +2 -2
  54. package/dist/calcite/p-4ebb255c.entry.js +6 -0
  55. package/dist/calcite/{p-e23d32ae.js → p-51eecde8.js} +1 -1
  56. package/dist/calcite/{p-6011bf95.entry.js → p-5275df01.entry.js} +2 -2
  57. package/dist/calcite/{p-61cf3f17.js → p-53a12543.js} +2 -2
  58. package/dist/calcite/{p-61b917ad.entry.js → p-53b611a0.entry.js} +2 -2
  59. package/dist/calcite/{p-03b57f3b.js → p-565143ee.js} +2 -2
  60. package/dist/calcite/{p-6dd6c8f3.js → p-59fe253d.js} +2 -2
  61. package/dist/calcite/{p-7414798f.js → p-5cf6a2d1.js} +2 -2
  62. package/dist/calcite/{p-84c75688.js → p-5d25ded7.js} +2 -2
  63. package/dist/calcite/{p-f4a6ff70.entry.js → p-5f85c2d5.entry.js} +2 -2
  64. package/dist/calcite/{p-f899bbaa.js → p-6003be2e.js} +2 -2
  65. package/dist/calcite/{p-e1797c3d.js → p-6045938b.js} +2 -2
  66. package/dist/calcite/{p-80efd114.js → p-6066c714.js} +2 -2
  67. package/dist/calcite/{p-2d44b388.entry.js → p-60f52fd1.entry.js} +2 -2
  68. package/dist/calcite/{p-35a0c629.entry.js → p-62087aff.entry.js} +2 -2
  69. package/dist/calcite/p-637ca361.entry.js +6 -0
  70. package/dist/calcite/{p-2ef13a20.entry.js → p-6489dd01.entry.js} +2 -2
  71. package/dist/calcite/{p-2218df37.js → p-66b37ba1.js} +2 -2
  72. package/dist/calcite/{p-ad24b41a.entry.js → p-66d3c705.entry.js} +2 -2
  73. package/dist/calcite/{p-699a37fd.js → p-681d53d1.js} +2 -2
  74. package/dist/calcite/{p-a533da18.entry.js → p-68251e67.entry.js} +2 -2
  75. package/dist/calcite/{p-7b602a15.entry.js → p-6b55ffab.entry.js} +2 -2
  76. package/dist/calcite/{p-3a3b986c.entry.js → p-6d0d412a.entry.js} +2 -2
  77. package/dist/calcite/p-7063f0d9.entry.js +6 -0
  78. package/dist/calcite/{p-f46bdc7c.js → p-71117e49.js} +2 -2
  79. package/dist/calcite/{p-2011ad31.entry.js → p-730660ae.entry.js} +2 -2
  80. package/dist/calcite/{p-0a9879c1.js → p-7315e44d.js} +3 -3
  81. package/dist/calcite/{p-0865d32c.js → p-73f5b511.js} +2 -2
  82. package/dist/calcite/{p-d82fa129.js → p-784dab4e.js} +2 -2
  83. package/dist/calcite/{p-ceb3c61b.entry.js → p-79bd6c3b.entry.js} +2 -2
  84. package/dist/calcite/{p-3f349e94.js → p-7a6a1681.js} +1 -1
  85. package/dist/calcite/p-7b2d9b51.js +6 -0
  86. package/dist/calcite/p-7b9eb7cc.js +6 -0
  87. package/dist/calcite/{p-b53999d7.js → p-7e2492e5.js} +2 -2
  88. package/dist/calcite/{p-256e85eb.entry.js → p-7e302b25.entry.js} +2 -2
  89. package/dist/calcite/{p-86d0271d.js → p-7f41466a.js} +2 -2
  90. package/dist/calcite/{p-32d2710d.js → p-88ac8d08.js} +2 -2
  91. package/dist/calcite/{p-4f080ba9.entry.js → p-8a2c019e.entry.js} +2 -2
  92. package/dist/calcite/{p-af7a0d8f.entry.js → p-8dac9001.entry.js} +2 -2
  93. package/dist/calcite/{p-6049b004.entry.js → p-8eef1347.entry.js} +2 -2
  94. package/dist/calcite/{p-70be7b62.js → p-922444e0.js} +1 -1
  95. package/dist/calcite/{p-611d4428.entry.js → p-92c2f075.entry.js} +2 -2
  96. package/dist/calcite/{p-37fa269e.entry.js → p-940d5651.entry.js} +2 -2
  97. package/dist/calcite/p-944dc8a6.entry.js +6 -0
  98. package/dist/calcite/{p-266cc550.entry.js → p-959afe76.entry.js} +2 -2
  99. package/dist/calcite/{p-1f0c80ff.js → p-97e27455.js} +2 -2
  100. package/dist/calcite/{p-0ea2d542.js → p-9b2e2e23.js} +2 -2
  101. package/dist/calcite/{p-6622cd4d.js → p-9b4b0ec1.js} +1 -1
  102. package/dist/calcite/{p-87bffe31.js → p-9fc38aad.js} +1 -1
  103. package/dist/calcite/{p-24f91384.js → p-a04ce9be.js} +2 -2
  104. package/dist/calcite/{p-eb43c0cb.entry.js → p-a2df5b28.entry.js} +2 -2
  105. package/dist/calcite/{p-38c2589e.js → p-a318e315.js} +2 -2
  106. package/dist/calcite/{p-32b211e6.entry.js → p-a4e4ca7d.entry.js} +2 -2
  107. package/dist/calcite/{p-2891f550.entry.js → p-aa6c6096.entry.js} +2 -2
  108. package/dist/calcite/{p-d7feaa30.js → p-ac6d0e15.js} +1 -1
  109. package/dist/calcite/{p-0a1b2c88.js → p-ad040021.js} +2 -2
  110. package/dist/calcite/{p-7990c747.js → p-ad9e20af.js} +2 -2
  111. package/dist/calcite/{p-7d1fe80d.js → p-b4d7ede4.js} +1 -1
  112. package/dist/calcite/{p-8f7d97e2.js → p-b4fbfdaa.js} +2 -2
  113. package/dist/calcite/{p-7a0fd9c8.js → p-b5a3476e.js} +1 -1
  114. package/dist/calcite/p-b973d61d.entry.js +6 -0
  115. package/dist/calcite/{p-47166824.entry.js → p-b97da44c.entry.js} +2 -2
  116. package/dist/calcite/{p-619516e9.entry.js → p-bb455c73.entry.js} +2 -2
  117. package/dist/calcite/{p-5d6b9996.entry.js → p-beb7c906.entry.js} +2 -2
  118. package/dist/calcite/{p-d2e38f5e.js → p-bff59d54.js} +2 -2
  119. package/dist/calcite/{p-b1b80710.entry.js → p-c37af731.entry.js} +2 -2
  120. package/dist/calcite/{p-04452681.js → p-c52e1541.js} +2 -2
  121. package/dist/calcite/{p-d809b89f.entry.js → p-c7af7ed1.entry.js} +2 -2
  122. package/dist/calcite/{p-92cee3b9.js → p-c8551f70.js} +1 -1
  123. package/dist/calcite/{p-3fd375ec.js → p-cd22a526.js} +2 -2
  124. package/dist/calcite/{p-d41aa5cf.js → p-ce04d8b2.js} +2 -2
  125. package/dist/calcite/{p-6ab7b3c6.entry.js → p-cfcdefca.entry.js} +2 -2
  126. package/dist/calcite/{p-90ccbb73.js → p-d0fd025c.js} +1 -1
  127. package/dist/calcite/p-d229043d.entry.js +6 -0
  128. package/dist/calcite/{p-0334b869.js → p-d3486826.js} +2 -2
  129. package/dist/calcite/{p-63c31282.js → p-d407a27d.js} +2 -2
  130. package/dist/calcite/{p-963d384b.entry.js → p-d4fd7943.entry.js} +2 -2
  131. package/dist/calcite/{p-1c22ef18.js → p-d5538ed2.js} +1 -1
  132. package/dist/calcite/{p-2dc209d5.js → p-da54c3f7.js} +2 -2
  133. package/dist/calcite/{p-4fdaa42e.js → p-dbf2e726.js} +2 -2
  134. package/dist/calcite/{p-edf31390.js → p-dcc09ec8.js} +2 -2
  135. package/dist/calcite/{p-aca39f19.js → p-dd9d4ff6.js} +2 -2
  136. package/dist/calcite/{p-0f487f5a.js → p-e0099329.js} +2 -2
  137. package/dist/calcite/{p-d0928968.entry.js → p-e2b6eccc.entry.js} +2 -2
  138. package/dist/calcite/p-e342cb16.js +6 -0
  139. package/dist/calcite/{p-c8868da1.js → p-e3aeb8aa.js} +2 -2
  140. package/dist/calcite/{p-a5a3f3a6.js → p-e3d4060e.js} +2 -2
  141. package/dist/calcite/{p-ed4e242f.js → p-e8651158.js} +1 -1
  142. package/dist/calcite/{p-636ea890.js → p-e9091728.js} +2 -2
  143. package/dist/calcite/{p-eebfbb45.js → p-e941ed6f.js} +1 -1
  144. package/dist/calcite/{p-870e6cb3.entry.js → p-e9f9655f.entry.js} +2 -2
  145. package/dist/calcite/{p-8eac3920.js → p-ea031e51.js} +2 -2
  146. package/dist/calcite/p-ea3be343.entry.js +6 -0
  147. package/dist/calcite/{p-2640c282.entry.js → p-ebcde8c5.entry.js} +2 -2
  148. package/dist/calcite/{p-da8834e4.js → p-ec1ae22e.js} +2 -2
  149. package/dist/calcite/{p-3150677d.entry.js → p-ed1789b8.entry.js} +2 -2
  150. package/dist/calcite/{p-a40c2404.js → p-ed202896.js} +2 -2
  151. package/dist/calcite/{p-141523f8.entry.js → p-ef922019.entry.js} +2 -2
  152. package/dist/calcite/{p-3ce61697.js → p-f365a643.js} +2 -2
  153. package/dist/calcite/p-f6dec19a.js +6 -0
  154. package/dist/calcite/p-fb77792b.entry.js +6 -0
  155. package/dist/calcite/{p-41b711cb.entry.js → p-fd18d6c2.entry.js} +2 -2
  156. package/dist/calcite/p-fdb61d3d.js +6 -0
  157. package/dist/calcite/{p-96bbc2cd.entry.js → p-ff79df54.entry.js} +2 -2
  158. package/dist/calcite/{p-d098d462.entry.js → p-ffbe7782.entry.js} +2 -2
  159. package/dist/cjs/{ExpandToggle-fe9ddf25.js → ExpandToggle-df0261a1.js} +5 -5
  160. package/dist/cjs/{FloatingArrow-3f56af0b.js → FloatingArrow-ae11c373.js} +2 -2
  161. package/dist/cjs/{Heading-cec9aa78.js → Heading-295f255d.js} +2 -2
  162. package/dist/cjs/{app-globals-96b5e59f.js → app-globals-f9312c49.js} +2 -2
  163. package/dist/cjs/{ar-e9841d1d.js → ar-033f58cd.js} +17 -17
  164. package/dist/cjs/{array-b882ea91.js → array-e5e2c254.js} +1 -1
  165. package/dist/cjs/{bg-f4dd5772.js → bg-1c632350.js} +17 -17
  166. package/dist/cjs/{browser-c8229b6a.js → browser-9fce3122.js} +1 -1
  167. package/dist/cjs/{bs-a4753b0e.js → bs-06adaff9.js} +17 -17
  168. package/dist/cjs/{ca-355e5613.js → ca-6695e3f9.js} +17 -17
  169. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  170. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  171. package/dist/cjs/calcite-action-group.cjs.entry.js +14 -14
  172. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  173. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  174. package/dist/cjs/calcite-action.cjs.entry.js +12 -12
  175. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  176. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  177. package/dist/cjs/calcite-block_2.cjs.entry.js +14 -14
  178. package/dist/cjs/calcite-button.cjs.entry.js +14 -14
  179. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  180. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
  181. package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
  182. package/dist/cjs/calcite-chip.cjs.entry.js +13 -13
  183. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
  184. package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -19
  185. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -14
  186. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -13
  187. package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
  188. package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
  189. package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
  190. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  191. package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
  192. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  193. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  194. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
  195. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +19 -19
  196. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  197. package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
  198. package/dist/cjs/calcite-input-text.cjs.entry.js +14 -14
  199. package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-681f2be0.js → calcite-input-time-picker.calcite-time-picker-f5a12954.js} +61 -61
  200. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +17 -17
  201. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -14
  202. package/dist/cjs/calcite-input.cjs.entry.js +14 -14
  203. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  204. package/dist/cjs/calcite-link.cjs.entry.js +8 -8
  205. package/dist/cjs/calcite-list_3.cjs.entry.js +15 -15
  206. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  207. package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
  208. package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
  209. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  210. package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
  211. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  212. package/dist/cjs/calcite-option_3.cjs.entry.js +15 -14
  213. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
  214. package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
  215. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
  216. package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
  217. package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
  218. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  219. package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
  220. package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
  221. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  222. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
  223. package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
  224. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  225. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
  226. package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
  227. package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
  228. package/dist/cjs/calcite-stepper_2.cjs.entry.js +34 -23
  229. package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
  230. package/dist/cjs/calcite-tab_4.cjs.entry.js +12 -11
  231. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +12 -12
  232. package/dist/cjs/calcite-table-row.cjs.entry.js +8 -8
  233. package/dist/cjs/calcite-table.cjs.entry.js +11 -11
  234. package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
  235. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
  236. package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
  237. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  238. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  239. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
  240. package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
  241. package/dist/cjs/calcite.cjs.js +4 -4
  242. package/dist/cjs/{conditionalSlot-4ba11667.js → conditionalSlot-3d02bf30.js} +3 -3
  243. package/dist/cjs/{cs-21c0a00e.js → cs-789affe9.js} +17 -17
  244. package/dist/cjs/{da-a108c651.js → da-6fe53ac5.js} +17 -17
  245. package/dist/cjs/{de-ae9f0819.js → de-325ba5f7.js} +17 -17
  246. package/dist/cjs/{de-at-a7bd75ca.js → de-at-c96284d2.js} +17 -17
  247. package/dist/cjs/{de-ch-2b4c2ccf.js → de-ch-cebb38a5.js} +17 -17
  248. package/dist/cjs/{debounce-82a75957.js → debounce-38e7a73a.js} +1 -1
  249. package/dist/cjs/{dom-f9a104a6.js → dom-138abdfd.js} +3 -3
  250. package/dist/cjs/{el-201dd593.js → el-eefbb8f0.js} +17 -17
  251. package/dist/cjs/{en-au-3b95e303.js → en-au-1b9a4817.js} +17 -17
  252. package/dist/cjs/{en-ca-18616a46.js → en-ca-c3088d9c.js} +17 -17
  253. package/dist/cjs/{en-gb-6aa6445f.js → en-gb-a4e2c393.js} +17 -17
  254. package/dist/cjs/{es-0a280f64.js → es-37507274.js} +17 -17
  255. package/dist/cjs/{es-mx-346bb570.js → es-mx-14025c63.js} +17 -17
  256. package/dist/cjs/{et-b5ec1db0.js → et-67e905ad.js} +17 -17
  257. package/dist/cjs/{fi-adda771d.js → fi-2b433171.js} +17 -17
  258. package/dist/cjs/{filter-5f1376c5.js → filter-8985175b.js} +2 -2
  259. package/dist/cjs/{floating-ui-5d561701.js → floating-ui-29817784.js} +32 -16
  260. package/dist/cjs/{focusTrapComponent-2b002902.js → focusTrapComponent-5b83374b.js} +2 -2
  261. package/dist/cjs/{form-48d88145.js → form-13812899.js} +3 -3
  262. package/dist/cjs/{fr-a2a2ecc9.js → fr-2368905b.js} +17 -17
  263. package/dist/cjs/{fr-ch-5c3e7f28.js → fr-ch-a72b59e4.js} +17 -17
  264. package/dist/cjs/{guid-43b8b53a.js → guid-55893448.js} +1 -1
  265. package/dist/cjs/{he-927ce386.js → he-7d9e269c.js} +17 -17
  266. package/dist/cjs/{hi-93823f22.js → hi-018ffb71.js} +17 -17
  267. package/dist/cjs/{hr-2a875c3c.js → hr-3574f4e7.js} +17 -17
  268. package/dist/cjs/{hu-3d3d3f65.js → hu-05194164.js} +17 -17
  269. package/dist/cjs/{id-81c5791a.js → id-d4a0ad33.js} +17 -17
  270. package/dist/cjs/{index-92218405.js → index-7a81ba8f.js} +1 -1
  271. package/dist/cjs/index.cjs.js +2 -2
  272. package/dist/cjs/{interactive-c3ace628.js → interactive-84a20b01.js} +2 -2
  273. package/dist/cjs/{it-d4afcdd9.js → it-8a4490f8.js} +17 -17
  274. package/dist/cjs/{it-ch-a11f800a.js → it-ch-1583fbfa.js} +17 -17
  275. package/dist/cjs/{ja-85a84421.js → ja-1a25c9d6.js} +17 -17
  276. package/dist/cjs/{key-8e30c967.js → key-a7949c92.js} +1 -1
  277. package/dist/cjs/{ko-1d20587a.js → ko-e5bcdc0c.js} +17 -17
  278. package/dist/cjs/{label-24c8e35c.js → label-7d8d04a8.js} +2 -2
  279. package/dist/cjs/{loadable-7de1df75.js → loadable-21208622.js} +2 -2
  280. package/dist/cjs/loader.cjs.js +4 -4
  281. package/dist/cjs/{locale-98d3adb6.js → locale-5175878b.js} +4 -4
  282. package/dist/cjs/{lt-18a1fec9.js → lt-2a67d7f6.js} +17 -17
  283. package/dist/cjs/{lv-b7010b64.js → lv-1495aa27.js} +17 -17
  284. package/dist/cjs/{math-c9af7223.js → math-e2d320ab.js} +1 -1
  285. package/dist/cjs/{mk-f3c4c0d9.js → mk-eddc87b4.js} +17 -17
  286. package/dist/cjs/{nb-4b7783e0.js → nb-da9eacb6.js} +17 -17
  287. package/dist/cjs/{nl-1e4c19f4.js → nl-3624a686.js} +17 -17
  288. package/dist/cjs/{observers-fea8899b.js → observers-6e6f34dc.js} +1 -1
  289. package/dist/cjs/{openCloseComponent-d895b0ef.js → openCloseComponent-8001f9d7.js} +2 -2
  290. package/dist/cjs/{pl-d21946f7.js → pl-1fa02b3d.js} +17 -17
  291. package/dist/cjs/{pt-f3a0befd.js → pt-300c8ed7.js} +17 -17
  292. package/dist/cjs/{pt-br-83cb636c.js → pt-br-1eb1da6f.js} +17 -17
  293. package/dist/cjs/{resources-09ea383f.js → resources-7471dc8e.js} +5 -5
  294. package/dist/cjs/{resources-98e07bcd.js → resources-8100a860.js} +1 -1
  295. package/dist/cjs/{resources-ecb027a1.js → resources-8ae36d9c.js} +1 -1
  296. package/dist/cjs/{resources-e7bf9033.js → resources-d21c5f03.js} +1 -1
  297. package/dist/cjs/{resources-003386cb.js → resources-e73d435b.js} +1 -1
  298. package/dist/cjs/{resources-75389e58.js → resources-eea0963c.js} +1 -1
  299. package/dist/cjs/{resources-1a18768c.js → resources-fbf5f39a.js} +1 -1
  300. package/dist/cjs/{ro-06e805a0.js → ro-cad9ab88.js} +17 -17
  301. package/dist/cjs/{ru-790ac577.js → ru-9af0d3a6.js} +17 -17
  302. package/dist/cjs/{sk-de1036cc.js → sk-f97469d9.js} +17 -17
  303. package/dist/cjs/{sl-a09c0824.js → sl-a931f05f.js} +17 -17
  304. package/dist/cjs/{sortableComponent-a26cfdd8.js → sortableComponent-8552c0f9.js} +1 -1
  305. package/dist/cjs/{sr-406b32fc.js → sr-c2f8dd4d.js} +17 -17
  306. package/dist/cjs/{sv-091e89d4.js → sv-503f8963.js} +17 -17
  307. package/dist/cjs/{t9n-980f6197.js → t9n-17617255.js} +3 -3
  308. package/dist/cjs/{th-ff5705c9.js → th-90451add.js} +17 -17
  309. package/dist/cjs/{throttle-a3625f31.js → throttle-91a36c63.js} +2 -2
  310. package/dist/cjs/{tr-249cd500.js → tr-93cd06d0.js} +17 -17
  311. package/dist/cjs/{uk-93a55bdd.js → uk-7ebad5b3.js} +17 -17
  312. package/dist/cjs/{utils-6ae49619.js → utils-c4598449.js} +1 -1
  313. package/dist/cjs/{utils-2b850241.js → utils-e3bf661c.js} +3 -3
  314. package/dist/cjs/{vi-556135e4.js → vi-e029dae5.js} +17 -17
  315. package/dist/cjs/{zh-cn-6638ccbf.js → zh-cn-7a08fb5a.js} +17 -17
  316. package/dist/cjs/{zh-hk-2a6ca344.js → zh-hk-5657a268.js} +17 -17
  317. package/dist/cjs/{zh-tw-0e548133.js → zh-tw-bd1a4ebe.js} +17 -17
  318. package/dist/collection/components/accordion/accordion.js +1 -1
  319. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  320. package/dist/collection/components/accordion-item/resources.js +1 -1
  321. package/dist/collection/components/action/action.js +1 -1
  322. package/dist/collection/components/action/resources.js +1 -1
  323. package/dist/collection/components/action-bar/action-bar.js +1 -1
  324. package/dist/collection/components/action-bar/resources.js +1 -1
  325. package/dist/collection/components/action-bar/utils.js +1 -1
  326. package/dist/collection/components/action-group/action-group.css +6 -2
  327. package/dist/collection/components/action-group/action-group.js +1 -1
  328. package/dist/collection/components/action-group/resources.js +1 -1
  329. package/dist/collection/components/action-menu/action-menu.js +1 -1
  330. package/dist/collection/components/action-menu/resources.js +1 -1
  331. package/dist/collection/components/action-pad/action-pad.js +1 -1
  332. package/dist/collection/components/action-pad/resources.js +1 -1
  333. package/dist/collection/components/alert/alert.js +1 -1
  334. package/dist/collection/components/alert/resources.js +1 -1
  335. package/dist/collection/components/avatar/avatar.js +1 -1
  336. package/dist/collection/components/avatar/utils.js +1 -1
  337. package/dist/collection/components/block/block.js +1 -1
  338. package/dist/collection/components/block/resources.js +1 -1
  339. package/dist/collection/components/block-section/block-section.js +1 -1
  340. package/dist/collection/components/block-section/resources.js +1 -1
  341. package/dist/collection/components/button/button.js +1 -1
  342. package/dist/collection/components/button/resources.js +1 -1
  343. package/dist/collection/components/card/card.js +1 -1
  344. package/dist/collection/components/card/resources.js +1 -1
  345. package/dist/collection/components/checkbox/checkbox.js +1 -1
  346. package/dist/collection/components/chip/chip.js +1 -1
  347. package/dist/collection/components/chip/resources.js +1 -1
  348. package/dist/collection/components/chip-group/chip-group.js +1 -1
  349. package/dist/collection/components/color-picker/color-picker.js +1 -1
  350. package/dist/collection/components/color-picker/resources.js +1 -1
  351. package/dist/collection/components/color-picker/utils.js +1 -1
  352. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  353. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  354. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  355. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  356. package/dist/collection/components/combobox/combobox.js +1 -1
  357. package/dist/collection/components/combobox/resources.js +1 -1
  358. package/dist/collection/components/combobox/utils.js +1 -1
  359. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  360. package/dist/collection/components/combobox-item/resources.js +1 -1
  361. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  362. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  363. package/dist/collection/components/date-picker/date-picker.js +1 -1
  364. package/dist/collection/components/date-picker/resources.js +1 -1
  365. package/dist/collection/components/date-picker/utils.js +1 -1
  366. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  367. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  368. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  369. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  370. package/dist/collection/components/dropdown/dropdown.js +1 -1
  371. package/dist/collection/components/dropdown/resources.js +1 -1
  372. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  373. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  374. package/dist/collection/components/dropdown-item/resources.js +1 -1
  375. package/dist/collection/components/fab/fab.js +1 -1
  376. package/dist/collection/components/fab/resources.js +1 -1
  377. package/dist/collection/components/filter/filter.js +1 -1
  378. package/dist/collection/components/filter/resources.js +1 -1
  379. package/dist/collection/components/flow/flow.js +1 -1
  380. package/dist/collection/components/flow/resources.js +1 -1
  381. package/dist/collection/components/flow-item/flow-item.js +1 -1
  382. package/dist/collection/components/flow-item/resources.js +1 -1
  383. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  384. package/dist/collection/components/functional/FloatingArrow.js +1 -1
  385. package/dist/collection/components/functional/Heading.js +1 -1
  386. package/dist/collection/components/functional/XButton.js +1 -1
  387. package/dist/collection/components/graph/graph.js +1 -1
  388. package/dist/collection/components/graph/util.js +1 -1
  389. package/dist/collection/components/handle/handle.js +1 -1
  390. package/dist/collection/components/handle/resources.js +1 -1
  391. package/dist/collection/components/icon/icon.js +1 -1
  392. package/dist/collection/components/icon/resources.js +1 -1
  393. package/dist/collection/components/icon/utils.js +1 -1
  394. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  395. package/dist/collection/components/inline-editable/resources.js +1 -1
  396. package/dist/collection/components/input/input.js +1 -1
  397. package/dist/collection/components/input/resources.js +1 -1
  398. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  399. package/dist/collection/components/input-date-picker/resources.js +1 -1
  400. package/dist/collection/components/input-date-picker/utils.js +1 -1
  401. package/dist/collection/components/input-message/input-message.js +1 -1
  402. package/dist/collection/components/input-message/interfaces.js +1 -1
  403. package/dist/collection/components/input-number/input-number.js +1 -1
  404. package/dist/collection/components/input-number/resources.js +1 -1
  405. package/dist/collection/components/input-text/input-text.js +1 -1
  406. package/dist/collection/components/input-text/resources.js +1 -1
  407. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  408. package/dist/collection/components/input-time-picker/resources.js +1 -1
  409. package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
  410. package/dist/collection/components/input-time-zone/utils.js +1 -1
  411. package/dist/collection/components/label/label.js +1 -1
  412. package/dist/collection/components/label/resources.js +1 -1
  413. package/dist/collection/components/link/link.js +1 -1
  414. package/dist/collection/components/list/list.js +1 -1
  415. package/dist/collection/components/list/resources.js +1 -1
  416. package/dist/collection/components/list-item/list-item.js +1 -1
  417. package/dist/collection/components/list-item/resources.js +1 -1
  418. package/dist/collection/components/list-item/utils.js +1 -1
  419. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  420. package/dist/collection/components/list-item-group/resources.js +1 -1
  421. package/dist/collection/components/loader/loader.js +1 -1
  422. package/dist/collection/components/menu/menu.js +1 -1
  423. package/dist/collection/components/menu-item/menu-item.js +1 -1
  424. package/dist/collection/components/menu-item/resources.js +1 -1
  425. package/dist/collection/components/meter/meter.js +1 -1
  426. package/dist/collection/components/meter/resources.js +1 -1
  427. package/dist/collection/components/modal/modal.js +1 -1
  428. package/dist/collection/components/modal/resources.js +1 -1
  429. package/dist/collection/components/navigation/navigation.js +1 -1
  430. package/dist/collection/components/navigation/resources.js +1 -1
  431. package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
  432. package/dist/collection/components/navigation-logo/resources.js +1 -1
  433. package/dist/collection/components/navigation-user/navigation-user.js +1 -1
  434. package/dist/collection/components/navigation-user/resources.js +1 -1
  435. package/dist/collection/components/notice/notice.js +1 -1
  436. package/dist/collection/components/notice/resources.js +1 -1
  437. package/dist/collection/components/option/option.js +5 -4
  438. package/dist/collection/components/option-group/option-group.js +1 -1
  439. package/dist/collection/components/pagination/pagination.js +1 -1
  440. package/dist/collection/components/pagination/resources.js +1 -1
  441. package/dist/collection/components/panel/panel.js +1 -1
  442. package/dist/collection/components/panel/resources.js +1 -1
  443. package/dist/collection/components/pick-list/pick-list.js +1 -1
  444. package/dist/collection/components/pick-list/resources.js +1 -1
  445. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  446. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  447. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  448. package/dist/collection/components/pick-list-group/resources.js +1 -1
  449. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  450. package/dist/collection/components/pick-list-item/resources.js +1 -1
  451. package/dist/collection/components/popover/PopoverManager.js +1 -1
  452. package/dist/collection/components/popover/popover.js +1 -1
  453. package/dist/collection/components/popover/resources.js +1 -1
  454. package/dist/collection/components/progress/progress.js +1 -1
  455. package/dist/collection/components/radio-button/radio-button.js +1 -1
  456. package/dist/collection/components/radio-button/resources.js +1 -1
  457. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  458. package/dist/collection/components/rating/function/star.js +1 -1
  459. package/dist/collection/components/rating/rating.js +1 -1
  460. package/dist/collection/components/resources.js +1 -1
  461. package/dist/collection/components/scrim/resources.js +1 -1
  462. package/dist/collection/components/scrim/scrim.js +1 -1
  463. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  464. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  465. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  466. package/dist/collection/components/select/resources.js +1 -1
  467. package/dist/collection/components/select/select.js +1 -1
  468. package/dist/collection/components/sheet/resources.js +1 -1
  469. package/dist/collection/components/sheet/sheet.js +1 -1
  470. package/dist/collection/components/shell/resources.js +1 -1
  471. package/dist/collection/components/shell/shell.js +1 -1
  472. package/dist/collection/components/shell-center-row/resources.js +1 -1
  473. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  474. package/dist/collection/components/shell-panel/resources.js +1 -1
  475. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  476. package/dist/collection/components/slider/resources.js +1 -1
  477. package/dist/collection/components/slider/slider.js +1 -1
  478. package/dist/collection/components/sortable-list/resources.js +1 -1
  479. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  480. package/dist/collection/components/split-button/resources.js +1 -1
  481. package/dist/collection/components/split-button/split-button.js +1 -1
  482. package/dist/collection/components/stack/resources.js +1 -1
  483. package/dist/collection/components/stack/stack.js +1 -1
  484. package/dist/collection/components/stepper/stepper.js +12 -12
  485. package/dist/collection/components/stepper-item/resources.js +15 -0
  486. package/dist/collection/components/stepper-item/stepper-item.css +12 -0
  487. package/dist/collection/components/stepper-item/stepper-item.js +4 -4
  488. package/dist/collection/components/switch/switch.js +1 -1
  489. package/dist/collection/components/tab/tab.js +1 -1
  490. package/dist/collection/components/tab-nav/tab-nav.js +2 -1
  491. package/dist/collection/components/tab-title/resources.js +1 -1
  492. package/dist/collection/components/tab-title/tab-title.js +1 -1
  493. package/dist/collection/components/table/resources.js +1 -1
  494. package/dist/collection/components/table/table.js +1 -1
  495. package/dist/collection/components/table-cell/resources.js +1 -1
  496. package/dist/collection/components/table-cell/table-cell.js +1 -1
  497. package/dist/collection/components/table-header/resources.js +1 -1
  498. package/dist/collection/components/table-header/table-header.js +1 -1
  499. package/dist/collection/components/table-row/table-row.js +1 -1
  500. package/dist/collection/components/tabs/resources.js +1 -1
  501. package/dist/collection/components/tabs/tabs.js +1 -1
  502. package/dist/collection/components/text-area/resources.js +1 -1
  503. package/dist/collection/components/text-area/text-area.js +1 -1
  504. package/dist/collection/components/tile/resources.js +1 -1
  505. package/dist/collection/components/tile/tile.js +1 -1
  506. package/dist/collection/components/tile-select/resources.js +1 -1
  507. package/dist/collection/components/tile-select/tile-select.js +1 -1
  508. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  509. package/dist/collection/components/time-picker/resources.js +1 -1
  510. package/dist/collection/components/time-picker/time-picker.js +1 -1
  511. package/dist/collection/components/tip/resources.js +1 -1
  512. package/dist/collection/components/tip/tip.js +1 -1
  513. package/dist/collection/components/tip-group/tip-group.js +1 -1
  514. package/dist/collection/components/tip-manager/resources.js +1 -1
  515. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  516. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  517. package/dist/collection/components/tooltip/resources.js +1 -1
  518. package/dist/collection/components/tooltip/tooltip.js +1 -1
  519. package/dist/collection/components/tooltip/utils.js +1 -1
  520. package/dist/collection/components/tree/tree.js +1 -1
  521. package/dist/collection/components/tree/utils.js +1 -1
  522. package/dist/collection/components/tree-item/resources.js +1 -1
  523. package/dist/collection/components/tree-item/tree-item.js +1 -1
  524. package/dist/collection/components/value-list/resources.js +1 -1
  525. package/dist/collection/components/value-list/utils.js +1 -1
  526. package/dist/collection/components/value-list/value-list.js +1 -1
  527. package/dist/collection/components/value-list-item/resources.js +1 -1
  528. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  529. package/dist/collection/index.js +1 -1
  530. package/dist/collection/utils/array.js +1 -1
  531. package/dist/collection/utils/browser.js +1 -1
  532. package/dist/collection/utils/conditionalSlot.js +1 -1
  533. package/dist/collection/utils/config.js +1 -1
  534. package/dist/collection/utils/date.js +1 -1
  535. package/dist/collection/utils/dom.js +1 -1
  536. package/dist/collection/utils/filter.js +1 -1
  537. package/dist/collection/utils/floating-ui.js +1 -1
  538. package/dist/collection/utils/focusTrapComponent.js +1 -1
  539. package/dist/collection/utils/form.js +1 -1
  540. package/dist/collection/utils/globalAttributes.js +1 -1
  541. package/dist/collection/utils/globalScript.js +1 -1
  542. package/dist/collection/utils/guid.js +1 -1
  543. package/dist/collection/utils/interactive.js +1 -1
  544. package/dist/collection/utils/key.js +1 -1
  545. package/dist/collection/utils/label.js +1 -1
  546. package/dist/collection/utils/loadable.js +1 -1
  547. package/dist/collection/utils/locale.js +1 -1
  548. package/dist/collection/utils/math.js +1 -1
  549. package/dist/collection/utils/mode.js +1 -1
  550. package/dist/collection/utils/number.js +1 -1
  551. package/dist/collection/utils/observers.js +1 -1
  552. package/dist/collection/utils/openCloseComponent.js +1 -1
  553. package/dist/collection/utils/resources.js +1 -1
  554. package/dist/collection/utils/responsive.js +1 -1
  555. package/dist/collection/utils/sortableComponent.js +1 -1
  556. package/dist/collection/utils/t9n.js +1 -1
  557. package/dist/collection/utils/time.js +1 -1
  558. package/dist/components/ExpandToggle.js +1 -1
  559. package/dist/components/FloatingArrow.js +1 -1
  560. package/dist/components/Heading.js +1 -1
  561. package/dist/components/action-group.js +2 -2
  562. package/dist/components/action-menu.js +1 -1
  563. package/dist/components/action.js +1 -1
  564. package/dist/components/ar.js +1 -1
  565. package/dist/components/array.js +1 -1
  566. package/dist/components/avatar.js +1 -1
  567. package/dist/components/bg.js +1 -1
  568. package/dist/components/bs.js +1 -1
  569. package/dist/components/button.js +1 -1
  570. package/dist/components/ca.js +1 -1
  571. package/dist/components/calcite-accordion-item.js +1 -1
  572. package/dist/components/calcite-accordion.js +1 -1
  573. package/dist/components/calcite-action-bar.js +1 -1
  574. package/dist/components/calcite-action-group.js +1 -1
  575. package/dist/components/calcite-action-menu.js +1 -1
  576. package/dist/components/calcite-action-pad.js +1 -1
  577. package/dist/components/calcite-action.js +1 -1
  578. package/dist/components/calcite-alert.js +1 -1
  579. package/dist/components/calcite-avatar.js +1 -1
  580. package/dist/components/calcite-block-section.js +1 -1
  581. package/dist/components/calcite-block.js +1 -1
  582. package/dist/components/calcite-button.js +1 -1
  583. package/dist/components/calcite-card.js +1 -1
  584. package/dist/components/calcite-checkbox.js +1 -1
  585. package/dist/components/calcite-chip-group.js +1 -1
  586. package/dist/components/calcite-chip.js +1 -1
  587. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  588. package/dist/components/calcite-color-picker-swatch.js +1 -1
  589. package/dist/components/calcite-color-picker.js +1 -1
  590. package/dist/components/calcite-combobox-item-group.js +1 -1
  591. package/dist/components/calcite-combobox-item.js +1 -1
  592. package/dist/components/calcite-combobox.js +1 -1
  593. package/dist/components/calcite-date-picker-day.js +1 -1
  594. package/dist/components/calcite-date-picker-month-header.js +1 -1
  595. package/dist/components/calcite-date-picker-month.js +1 -1
  596. package/dist/components/calcite-date-picker.js +1 -1
  597. package/dist/components/calcite-dropdown-group.js +1 -1
  598. package/dist/components/calcite-dropdown-item.js +1 -1
  599. package/dist/components/calcite-dropdown.js +1 -1
  600. package/dist/components/calcite-fab.js +1 -1
  601. package/dist/components/calcite-filter.js +1 -1
  602. package/dist/components/calcite-flow-item.js +1 -1
  603. package/dist/components/calcite-flow.js +1 -1
  604. package/dist/components/calcite-graph.js +1 -1
  605. package/dist/components/calcite-handle.js +1 -1
  606. package/dist/components/calcite-icon.js +1 -1
  607. package/dist/components/calcite-inline-editable.js +1 -1
  608. package/dist/components/calcite-input-date-picker.js +1 -1
  609. package/dist/components/calcite-input-message.js +1 -1
  610. package/dist/components/calcite-input-number.js +1 -1
  611. package/dist/components/calcite-input-text.js +1 -1
  612. package/dist/components/calcite-input-time-picker.js +1 -1
  613. package/dist/components/calcite-input-time-zone.js +1 -1
  614. package/dist/components/calcite-input.js +1 -1
  615. package/dist/components/calcite-label.js +1 -1
  616. package/dist/components/calcite-link.js +1 -1
  617. package/dist/components/calcite-list-item-group.js +1 -1
  618. package/dist/components/calcite-list-item.js +1 -1
  619. package/dist/components/calcite-list.js +1 -1
  620. package/dist/components/calcite-loader.js +1 -1
  621. package/dist/components/calcite-menu-item.js +1 -1
  622. package/dist/components/calcite-menu.js +1 -1
  623. package/dist/components/calcite-meter.js +1 -1
  624. package/dist/components/calcite-modal.js +1 -1
  625. package/dist/components/calcite-navigation-logo.js +1 -1
  626. package/dist/components/calcite-navigation-user.js +1 -1
  627. package/dist/components/calcite-navigation.js +1 -1
  628. package/dist/components/calcite-notice.js +1 -1
  629. package/dist/components/calcite-option-group.js +1 -1
  630. package/dist/components/calcite-option.js +5 -4
  631. package/dist/components/calcite-pagination.js +1 -1
  632. package/dist/components/calcite-panel.js +1 -1
  633. package/dist/components/calcite-pick-list-group.js +1 -1
  634. package/dist/components/calcite-pick-list-item.js +1 -1
  635. package/dist/components/calcite-pick-list.js +1 -1
  636. package/dist/components/calcite-popover.js +1 -1
  637. package/dist/components/calcite-progress.js +1 -1
  638. package/dist/components/calcite-radio-button-group.js +1 -1
  639. package/dist/components/calcite-radio-button.js +1 -1
  640. package/dist/components/calcite-rating.js +1 -1
  641. package/dist/components/calcite-scrim.js +1 -1
  642. package/dist/components/calcite-segmented-control-item.js +1 -1
  643. package/dist/components/calcite-segmented-control.js +1 -1
  644. package/dist/components/calcite-select.js +1 -1
  645. package/dist/components/calcite-sheet.js +1 -1
  646. package/dist/components/calcite-shell-center-row.js +1 -1
  647. package/dist/components/calcite-shell-panel.js +1 -1
  648. package/dist/components/calcite-shell.js +1 -1
  649. package/dist/components/calcite-slider.js +1 -1
  650. package/dist/components/calcite-sortable-list.js +1 -1
  651. package/dist/components/calcite-split-button.js +1 -1
  652. package/dist/components/calcite-stack.js +1 -1
  653. package/dist/components/calcite-stepper-item.js +15 -5
  654. package/dist/components/calcite-stepper.js +12 -12
  655. package/dist/components/calcite-switch.js +1 -1
  656. package/dist/components/calcite-tab-nav.js +1 -1
  657. package/dist/components/calcite-tab-title.js +1 -1
  658. package/dist/components/calcite-tab.js +1 -1
  659. package/dist/components/calcite-table-cell.js +1 -1
  660. package/dist/components/calcite-table-header.js +1 -1
  661. package/dist/components/calcite-table-row.js +1 -1
  662. package/dist/components/calcite-table.js +1 -1
  663. package/dist/components/calcite-tabs.js +1 -1
  664. package/dist/components/calcite-text-area.js +1 -1
  665. package/dist/components/calcite-tile-select-group.js +1 -1
  666. package/dist/components/calcite-tile-select.js +1 -1
  667. package/dist/components/calcite-tile.js +1 -1
  668. package/dist/components/calcite-time-picker.js +1 -1
  669. package/dist/components/calcite-tip-group.js +1 -1
  670. package/dist/components/calcite-tip-manager.js +1 -1
  671. package/dist/components/calcite-tip.js +1 -1
  672. package/dist/components/calcite-tooltip.js +1 -1
  673. package/dist/components/calcite-tree-item.js +1 -1
  674. package/dist/components/calcite-tree.js +1 -1
  675. package/dist/components/calcite-value-list-item.js +1 -1
  676. package/dist/components/calcite-value-list.js +1 -1
  677. package/dist/components/checkbox.js +1 -1
  678. package/dist/components/chip.js +1 -1
  679. package/dist/components/color-picker-hex-input.js +1 -1
  680. package/dist/components/color-picker-swatch.js +1 -1
  681. package/dist/components/combobox-item.js +1 -1
  682. package/dist/components/combobox.js +1 -1
  683. package/dist/components/conditionalSlot.js +1 -1
  684. package/dist/components/cs.js +1 -1
  685. package/dist/components/da.js +1 -1
  686. package/dist/components/date-picker-day.js +1 -1
  687. package/dist/components/date-picker-month-header.js +1 -1
  688. package/dist/components/date-picker-month.js +1 -1
  689. package/dist/components/date-picker.js +1 -1
  690. package/dist/components/date.js +1 -1
  691. package/dist/components/de-at.js +1 -1
  692. package/dist/components/de-ch.js +1 -1
  693. package/dist/components/de.js +1 -1
  694. package/dist/components/debounce.js +1 -1
  695. package/dist/components/dom.js +1 -1
  696. package/dist/components/dropdown.js +1 -1
  697. package/dist/components/el.js +1 -1
  698. package/dist/components/en-au.js +1 -1
  699. package/dist/components/en-ca.js +1 -1
  700. package/dist/components/en-gb.js +1 -1
  701. package/dist/components/es-mx.js +1 -1
  702. package/dist/components/es.js +1 -1
  703. package/dist/components/et.js +1 -1
  704. package/dist/components/fi.js +1 -1
  705. package/dist/components/filter.js +1 -1
  706. package/dist/components/filter2.js +1 -1
  707. package/dist/components/floating-ui.js +30 -14
  708. package/dist/components/focusTrapComponent.js +1 -1
  709. package/dist/components/form.js +1 -1
  710. package/dist/components/fr-ch.js +1 -1
  711. package/dist/components/fr.js +1 -1
  712. package/dist/components/graph.js +1 -1
  713. package/dist/components/guid.js +1 -1
  714. package/dist/components/handle.js +1 -1
  715. package/dist/components/he.js +1 -1
  716. package/dist/components/hi.js +1 -1
  717. package/dist/components/hr.js +1 -1
  718. package/dist/components/hu.js +1 -1
  719. package/dist/components/icon.js +1 -1
  720. package/dist/components/id.js +1 -1
  721. package/dist/components/index.js +1 -1
  722. package/dist/components/index2.js +1 -1
  723. package/dist/components/input-number.js +1 -1
  724. package/dist/components/input-text.js +1 -1
  725. package/dist/components/input.js +1 -1
  726. package/dist/components/interactive.js +1 -1
  727. package/dist/components/it-ch.js +1 -1
  728. package/dist/components/it.js +1 -1
  729. package/dist/components/ja.js +1 -1
  730. package/dist/components/key.js +1 -1
  731. package/dist/components/ko.js +1 -1
  732. package/dist/components/label.js +1 -1
  733. package/dist/components/label2.js +1 -1
  734. package/dist/components/link.js +1 -1
  735. package/dist/components/loadable.js +1 -1
  736. package/dist/components/loader.js +1 -1
  737. package/dist/components/locale.js +1 -1
  738. package/dist/components/lt.js +1 -1
  739. package/dist/components/lv.js +1 -1
  740. package/dist/components/math.js +1 -1
  741. package/dist/components/menu.js +1 -1
  742. package/dist/components/mk.js +1 -1
  743. package/dist/components/nb.js +1 -1
  744. package/dist/components/nl.js +1 -1
  745. package/dist/components/observers.js +1 -1
  746. package/dist/components/openCloseComponent.js +1 -1
  747. package/dist/components/pagination.js +1 -1
  748. package/dist/components/panel.js +1 -1
  749. package/dist/components/pick-list-item.js +1 -1
  750. package/dist/components/pl.js +1 -1
  751. package/dist/components/popover.js +1 -1
  752. package/dist/components/progress.js +1 -1
  753. package/dist/components/pt-br.js +1 -1
  754. package/dist/components/pt.js +1 -1
  755. package/dist/components/resources.js +1 -1
  756. package/dist/components/resources2.js +1 -1
  757. package/dist/components/resources3.js +1 -1
  758. package/dist/components/resources4.js +1 -1
  759. package/dist/components/ro.js +1 -1
  760. package/dist/components/ru.js +1 -1
  761. package/dist/components/scrim.js +1 -1
  762. package/dist/components/shared-list-render.js +1 -1
  763. package/dist/components/sk.js +1 -1
  764. package/dist/components/sl.js +1 -1
  765. package/dist/components/sortableComponent.js +1 -1
  766. package/dist/components/sr.js +1 -1
  767. package/dist/components/stack.js +1 -1
  768. package/dist/components/sv.js +1 -1
  769. package/dist/components/switch.js +1 -1
  770. package/dist/components/t9n.js +1 -1
  771. package/dist/components/tab-nav.js +2 -1
  772. package/dist/components/tab-title.js +1 -1
  773. package/dist/components/tab.js +1 -1
  774. package/dist/components/table-cell.js +1 -1
  775. package/dist/components/table-header.js +1 -1
  776. package/dist/components/tabs.js +1 -1
  777. package/dist/components/th.js +1 -1
  778. package/dist/components/throttle.js +1 -1
  779. package/dist/components/tile.js +1 -1
  780. package/dist/components/time-picker.js +1 -1
  781. package/dist/components/tr.js +1 -1
  782. package/dist/components/uk.js +1 -1
  783. package/dist/components/utils.js +1 -1
  784. package/dist/components/utils2.js +1 -1
  785. package/dist/components/utils3.js +1 -1
  786. package/dist/components/vi.js +1 -1
  787. package/dist/components/zh-cn.js +1 -1
  788. package/dist/components/zh-hk.js +1 -1
  789. package/dist/components/zh-tw.js +1 -1
  790. package/dist/esm/{ExpandToggle-1650066c.js → ExpandToggle-e9b8af64.js} +5 -5
  791. package/dist/esm/{FloatingArrow-6b183579.js → FloatingArrow-296dd644.js} +2 -2
  792. package/dist/esm/{Heading-c2555842.js → Heading-3bb6a361.js} +2 -2
  793. package/dist/esm/{app-globals-b0a6e40f.js → app-globals-88ce082d.js} +2 -2
  794. package/dist/esm/{ar-5289a664.js → ar-ed936295.js} +17 -17
  795. package/dist/esm/{array-5aef1918.js → array-8f8667ab.js} +1 -1
  796. package/dist/esm/{bg-d40e3430.js → bg-388ebb42.js} +17 -17
  797. package/dist/esm/{browser-72e99f7e.js → browser-67eb1449.js} +1 -1
  798. package/dist/esm/{bs-3071c7a4.js → bs-0c2f5362.js} +17 -17
  799. package/dist/esm/{ca-6b02a663.js → ca-d94dd59a.js} +17 -17
  800. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  801. package/dist/esm/calcite-action-bar.entry.js +15 -15
  802. package/dist/esm/calcite-action-group.entry.js +14 -14
  803. package/dist/esm/calcite-action-menu.entry.js +9 -9
  804. package/dist/esm/calcite-action-pad.entry.js +14 -14
  805. package/dist/esm/calcite-action.entry.js +12 -12
  806. package/dist/esm/calcite-alert.entry.js +12 -12
  807. package/dist/esm/calcite-avatar.entry.js +6 -6
  808. package/dist/esm/calcite-block_2.entry.js +14 -14
  809. package/dist/esm/calcite-button.entry.js +14 -14
  810. package/dist/esm/calcite-card.entry.js +10 -10
  811. package/dist/esm/calcite-checkbox.entry.js +11 -11
  812. package/dist/esm/calcite-chip-group.entry.js +9 -9
  813. package/dist/esm/calcite-chip.entry.js +13 -13
  814. package/dist/esm/calcite-color-picker_3.entry.js +16 -16
  815. package/dist/esm/calcite-combobox_3.entry.js +19 -19
  816. package/dist/esm/calcite-date-picker_4.entry.js +14 -14
  817. package/dist/esm/calcite-dropdown_3.entry.js +13 -13
  818. package/dist/esm/calcite-fab.entry.js +8 -8
  819. package/dist/esm/calcite-filter.entry.js +14 -14
  820. package/dist/esm/calcite-flow-item.entry.js +13 -13
  821. package/dist/esm/calcite-flow.entry.js +4 -4
  822. package/dist/esm/calcite-graph_2.entry.js +14 -14
  823. package/dist/esm/calcite-handle.entry.js +10 -10
  824. package/dist/esm/calcite-icon.entry.js +6 -6
  825. package/dist/esm/calcite-inline-editable.entry.js +13 -13
  826. package/dist/esm/calcite-input-date-picker.entry.js +19 -19
  827. package/dist/esm/calcite-input-message.entry.js +5 -5
  828. package/dist/esm/calcite-input-number.entry.js +14 -14
  829. package/dist/esm/calcite-input-text.entry.js +14 -14
  830. package/dist/esm/{calcite-input-time-picker.calcite-time-picker-839c4ada.js → calcite-input-time-picker.calcite-time-picker-d6e94b4e.js} +61 -61
  831. package/dist/esm/calcite-input-time-picker_2.entry.js +17 -17
  832. package/dist/esm/calcite-input-time-zone.entry.js +14 -14
  833. package/dist/esm/calcite-input.entry.js +14 -14
  834. package/dist/esm/calcite-label.entry.js +6 -6
  835. package/dist/esm/calcite-link.entry.js +8 -8
  836. package/dist/esm/calcite-list_3.entry.js +15 -15
  837. package/dist/esm/calcite-loader.entry.js +3 -3
  838. package/dist/esm/calcite-menu_2.entry.js +10 -10
  839. package/dist/esm/calcite-meter.entry.js +10 -10
  840. package/dist/esm/calcite-modal.entry.js +13 -13
  841. package/dist/esm/calcite-navigation_3.entry.js +6 -6
  842. package/dist/esm/calcite-notice.entry.js +12 -12
  843. package/dist/esm/calcite-option_3.entry.js +15 -14
  844. package/dist/esm/calcite-pagination.entry.js +10 -10
  845. package/dist/esm/calcite-panel.entry.js +15 -15
  846. package/dist/esm/calcite-pick-list_3.entry.js +17 -17
  847. package/dist/esm/calcite-popover.entry.js +16 -16
  848. package/dist/esm/calcite-progress.entry.js +5 -5
  849. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  850. package/dist/esm/calcite-radio-button.entry.js +11 -11
  851. package/dist/esm/calcite-rating.entry.js +14 -14
  852. package/dist/esm/calcite-scrim.entry.js +9 -9
  853. package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
  854. package/dist/esm/calcite-sheet.entry.js +9 -9
  855. package/dist/esm/calcite-shell_3.entry.js +11 -11
  856. package/dist/esm/calcite-sortable-list.entry.js +9 -9
  857. package/dist/esm/calcite-split-button.entry.js +5 -5
  858. package/dist/esm/calcite-stack.entry.js +6 -6
  859. package/dist/esm/calcite-stepper_2.entry.js +34 -23
  860. package/dist/esm/calcite-switch.entry.js +11 -11
  861. package/dist/esm/calcite-tab_4.entry.js +12 -11
  862. package/dist/esm/calcite-table-cell_2.entry.js +12 -12
  863. package/dist/esm/calcite-table-row.entry.js +8 -8
  864. package/dist/esm/calcite-table.entry.js +11 -11
  865. package/dist/esm/calcite-text-area.entry.js +16 -16
  866. package/dist/esm/calcite-tile-select_2.entry.js +6 -6
  867. package/dist/esm/calcite-tile.entry.js +9 -9
  868. package/dist/esm/calcite-tip_3.entry.js +11 -11
  869. package/dist/esm/calcite-tooltip.entry.js +9 -9
  870. package/dist/esm/calcite-tree_2.entry.js +9 -9
  871. package/dist/esm/calcite-value-list_2.entry.js +17 -17
  872. package/dist/esm/calcite.js +5 -5
  873. package/dist/esm/{conditionalSlot-70b1962d.js → conditionalSlot-f3152533.js} +3 -3
  874. package/dist/esm/{cs-0355110d.js → cs-3ef82f69.js} +17 -17
  875. package/dist/esm/{da-79a464cc.js → da-c212daa9.js} +17 -17
  876. package/dist/esm/{de-f15366ac.js → de-46648aaa.js} +17 -17
  877. package/dist/esm/{de-at-3806f4bf.js → de-at-334cbe1a.js} +17 -17
  878. package/dist/esm/{de-ch-0c068488.js → de-ch-deb053fa.js} +17 -17
  879. package/dist/esm/{debounce-8a478a6b.js → debounce-b7540c4a.js} +1 -1
  880. package/dist/esm/{dom-87b64189.js → dom-6cec6d04.js} +3 -3
  881. package/dist/esm/{el-b0811ad4.js → el-9c8e3b98.js} +17 -17
  882. package/dist/esm/{en-au-ac2db00e.js → en-au-5d9f440e.js} +17 -17
  883. package/dist/esm/{en-ca-82b51832.js → en-ca-f922c516.js} +17 -17
  884. package/dist/esm/{en-gb-f788bdff.js → en-gb-f1ea3fdb.js} +17 -17
  885. package/dist/esm/{es-5db2e7ff.js → es-e4bd2418.js} +17 -17
  886. package/dist/esm/{es-mx-f30c3f52.js → es-mx-3937b118.js} +17 -17
  887. package/dist/esm/{et-60edf965.js → et-c966e41f.js} +17 -17
  888. package/dist/esm/{fi-fc5d1827.js → fi-821f5dcc.js} +17 -17
  889. package/dist/esm/{filter-fcee1dd4.js → filter-1c35bfd4.js} +2 -2
  890. package/dist/esm/{floating-ui-b3ea5d3f.js → floating-ui-0826b417.js} +32 -16
  891. package/dist/esm/{focusTrapComponent-1ca9bda0.js → focusTrapComponent-9781627a.js} +2 -2
  892. package/dist/esm/{form-6742e55f.js → form-5a7865cb.js} +3 -3
  893. package/dist/esm/{fr-2c202c7e.js → fr-8d68e0e8.js} +17 -17
  894. package/dist/esm/{fr-ch-95cde70c.js → fr-ch-94748048.js} +17 -17
  895. package/dist/esm/{guid-da69a646.js → guid-e6d9b593.js} +1 -1
  896. package/dist/esm/{he-e01bb5b8.js → he-02ceec03.js} +17 -17
  897. package/dist/esm/{hi-73a9741d.js → hi-7c08957b.js} +17 -17
  898. package/dist/esm/{hr-e43bb93f.js → hr-03f61107.js} +17 -17
  899. package/dist/esm/{hu-fd9daf6b.js → hu-0652948f.js} +17 -17
  900. package/dist/esm/{id-b258b08d.js → id-92f6fa38.js} +17 -17
  901. package/dist/esm/{index-0f30f28c.js → index-06e90a9e.js} +1 -1
  902. package/dist/esm/index.js +2 -2
  903. package/dist/esm/{interactive-26bdcac8.js → interactive-e936b816.js} +2 -2
  904. package/dist/esm/{it-59e1bc1c.js → it-9025abc6.js} +17 -17
  905. package/dist/esm/{it-ch-874104d8.js → it-ch-4f23205d.js} +17 -17
  906. package/dist/esm/{ja-c5fd1466.js → ja-11ff0fa7.js} +17 -17
  907. package/dist/esm/{key-22e2967e.js → key-df25d2ee.js} +1 -1
  908. package/dist/esm/{ko-45fefbc3.js → ko-9cf98261.js} +17 -17
  909. package/dist/esm/{label-0a3854c1.js → label-7fcc498c.js} +2 -2
  910. package/dist/esm/{loadable-50ee79b5.js → loadable-a1dced56.js} +2 -2
  911. package/dist/esm/loader.js +5 -5
  912. package/dist/esm/{locale-ac07a914.js → locale-5d42672d.js} +4 -4
  913. package/dist/esm/{lt-c21ed204.js → lt-667eacef.js} +17 -17
  914. package/dist/esm/{lv-4ea7a844.js → lv-f7544c41.js} +17 -17
  915. package/dist/esm/{math-f6fe0784.js → math-3bac3db7.js} +1 -1
  916. package/dist/esm/{mk-0187ba70.js → mk-45f80351.js} +17 -17
  917. package/dist/esm/{nb-05585c41.js → nb-a9fe2baa.js} +17 -17
  918. package/dist/esm/{nl-5d36b06d.js → nl-9eeeb909.js} +17 -17
  919. package/dist/esm/{observers-399da751.js → observers-81bfe238.js} +1 -1
  920. package/dist/esm/{openCloseComponent-4dfffb2a.js → openCloseComponent-1c903268.js} +2 -2
  921. package/dist/esm/{pl-8a0ef8fd.js → pl-9dabba85.js} +17 -17
  922. package/dist/esm/{pt-7084421b.js → pt-26613a75.js} +17 -17
  923. package/dist/esm/{pt-br-3529fe2c.js → pt-br-a12f9d62.js} +17 -17
  924. package/dist/esm/{resources-5d647924.js → resources-0160d8db.js} +1 -1
  925. package/dist/esm/{resources-580d5a8c.js → resources-35b588b5.js} +1 -1
  926. package/dist/esm/{resources-3fccc5f5.js → resources-3b4bbf27.js} +1 -1
  927. package/dist/esm/{resources-771c649a.js → resources-6c1eff45.js} +1 -1
  928. package/dist/esm/{resources-8f3b7e1c.js → resources-a2f0ea43.js} +1 -1
  929. package/dist/esm/{resources-6f0462da.js → resources-adc73c36.js} +5 -5
  930. package/dist/esm/{resources-2f19bb4e.js → resources-d12b2a0e.js} +1 -1
  931. package/dist/esm/{ro-b9dd8eb5.js → ro-6a0704d5.js} +17 -17
  932. package/dist/esm/{ru-0dba2959.js → ru-dfa753b1.js} +17 -17
  933. package/dist/esm/{sk-abe5a632.js → sk-cee071c8.js} +17 -17
  934. package/dist/esm/{sl-0e816422.js → sl-47300442.js} +17 -17
  935. package/dist/esm/{sortableComponent-bc1a129c.js → sortableComponent-b3ee129b.js} +1 -1
  936. package/dist/esm/{sr-3c93451e.js → sr-1b9c6b33.js} +17 -17
  937. package/dist/esm/{sv-776e506e.js → sv-f83e9435.js} +17 -17
  938. package/dist/esm/{t9n-866a05a0.js → t9n-f3535f7a.js} +3 -3
  939. package/dist/esm/{th-3151a453.js → th-153374e4.js} +17 -17
  940. package/dist/esm/{throttle-d5749010.js → throttle-dbec8793.js} +2 -2
  941. package/dist/esm/{tr-eb149ccc.js → tr-2c1c9227.js} +17 -17
  942. package/dist/esm/{uk-f76a0d07.js → uk-4b952dec.js} +17 -17
  943. package/dist/esm/{utils-017d7c88.js → utils-02cbc822.js} +1 -1
  944. package/dist/esm/{utils-56ceb4ad.js → utils-db0b3cc9.js} +3 -3
  945. package/dist/esm/{vi-a2c1340e.js → vi-f782ebdf.js} +17 -17
  946. package/dist/esm/{zh-cn-9625ab16.js → zh-cn-3390cc2e.js} +17 -17
  947. package/dist/esm/{zh-hk-ce883dc1.js → zh-hk-cfccc140.js} +17 -17
  948. package/dist/esm/{zh-tw-bd9959cf.js → zh-tw-731c753b.js} +17 -17
  949. package/dist/extras/docs-json.json +11 -1
  950. package/dist/loader/cdn.js +1 -1
  951. package/dist/loader/index.cjs.js +1 -1
  952. package/dist/loader/index.es2017.js +1 -1
  953. package/dist/loader/index.js +1 -1
  954. package/dist/types/components/stepper/assets/stepper/t9n/index.d.ts +3 -0
  955. package/dist/types/components/stepper/stepper.d.ts +1 -0
  956. package/dist/types/components/stepper-item/assets/stepper-item/t9n/index.d.ts +3 -0
  957. package/dist/types/components/stepper-item/resources.d.ts +10 -0
  958. package/hydrate/index.js +478 -449
  959. package/package.json +3 -3
  960. package/dist/calcite/p-02e3c0c8.js +0 -6
  961. package/dist/calcite/p-118b1f36.entry.js +0 -6
  962. package/dist/calcite/p-1b004360.entry.js +0 -6
  963. package/dist/calcite/p-3585ac60.entry.js +0 -6
  964. package/dist/calcite/p-3c176726.entry.js +0 -6
  965. package/dist/calcite/p-3e4d4dc3.js +0 -6
  966. package/dist/calcite/p-4c086cf4.js +0 -6
  967. package/dist/calcite/p-5e8be5c5.entry.js +0 -6
  968. package/dist/calcite/p-691fbfe1.entry.js +0 -6
  969. package/dist/calcite/p-82772c8b.js +0 -6
  970. package/dist/calcite/p-84037be5.js +0 -6
  971. package/dist/calcite/p-898cd428.js +0 -6
  972. package/dist/calcite/p-97ab1f5d.entry.js +0 -6
  973. package/dist/calcite/p-ab41c12c.entry.js +0 -6
  974. package/dist/calcite/p-b3afc6e7.entry.js +0 -6
  975. package/dist/calcite/p-c24c1eb1.entry.js +0 -6
  976. package/dist/calcite/p-de87da9c.js +0 -6
@@ -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.9.0-next.2
4
+ * v1.9.0-next.4
5
5
  */
6
- import{d as s}from"./p-79624bb6.js";import"./p-d7feaa30.js";import"./p-d41aa5cf.js";import"./p-0a9879c1.js";import"./p-92cee3b9.js";import"./p-6845a16e.js";import"./p-84037be5.js";import"./p-7a0fd9c8.js";import"./p-ed4e242f.js";import"./p-d2e38f5e.js";import"./p-6dcd6082.js";import"./p-8eac3920.js";import"./p-eebfbb45.js";import"./p-d60d1ab4.js";import"./p-e23d32ae.js";import"./p-b47fc1c3.js";var i="sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),a="sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),m=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,M=function(s,M){return m.test(M)?i[s.month()]:a[s.month()]};M.s=a,M.f=i;var d={name:"lt",weekdays:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),weekdaysShort:"sek_pir_ant_tre_ket_pen_šeš".split("_"),weekdaysMin:"s_p_a_t_k_pn_š".split("_"),months:M,monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),ordinal:function(s){return s+"."},weekStart:1,relativeTime:{future:"už %s",past:"prieš %s",s:"kelias sekundes",m:"minutę",mm:"%d minutes",h:"valandą",hh:"%d valandas",d:"dieną",dd:"%d dienas",M:"mėnesį",MM:"%d mėnesius",y:"metus",yy:"%d metus"},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"}};s.locale(d,null,!0);export default d;
6
+ import{d as s}from"./p-35477750.js";import"./p-ac6d0e15.js";import"./p-ce04d8b2.js";import"./p-7315e44d.js";import"./p-c8551f70.js";import"./p-21795ae4.js";import"./p-fdb61d3d.js";import"./p-b5a3476e.js";import"./p-e8651158.js";import"./p-bff59d54.js";import"./p-39e0b8d2.js";import"./p-ea031e51.js";import"./p-e941ed6f.js";import"./p-1dfad893.js";import"./p-51eecde8.js";import"./p-2b940331.js";var i="sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),m="sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),d=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,M=function(s,M){return d.test(M)?i[s.month()]:m[s.month()]};M.s=m,M.f=i;var e={name:"lt",weekdays:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),weekdaysShort:"sek_pir_ant_tre_ket_pen_šeš".split("_"),weekdaysMin:"s_p_a_t_k_pn_š".split("_"),months:M,monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),ordinal:function(s){return s+"."},weekStart:1,relativeTime:{future:"už %s",past:"prieš %s",s:"kelias sekundes",m:"minutę",mm:"%d minutes",h:"valandą",hh:"%d valandas",d:"dieną",dd:"%d dienas",M:"mėnesį",MM:"%d mėnesius",y:"metus",yy:"%d metus"},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"}};s.locale(e,null,!0);export default e;
@@ -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.9.0-next.2
4
+ * v1.9.0-next.4
5
5
  */
6
- import{r as e,c as t,h as i,H as a,a as n}from"./p-d7feaa30.js";import{l as s,a as l}from"./p-d2e38f5e.js";import"./p-0a9879c1.js";import"./p-92cee3b9.js";import"./p-6845a16e.js";const o=class{constructor(i){e(this,i),this.calciteInternalLabelClick=t(this,"calciteInternalLabelClick",2),this.labelClickHandler=e=>{this.calciteInternalLabelClick.emit({sourceEvent:e})},this.alignment="start",this.for=void 0,this.scale="m",this.layout="default"}connectedCallback(){document.dispatchEvent(new CustomEvent(s))}disconnectedCallback(){document.dispatchEvent(new CustomEvent(l))}render(){return i(a,{onClick:this.labelClickHandler},i("div",{class:"container"},i("slot",null)))}get el(){return n(this)}};o.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:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.5rem)}:host([scale=m]) .container{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.75rem)}:host([scale=l]) .container{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-ui-text-1)}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:0.5rem}:host([layout=inline][scale=l]) .container{gap:0.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity:1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{o as calcite_label}
6
+ import{r as e,c as t,h as i,H as a,a as n}from"./p-ac6d0e15.js";import{l as s,a as l}from"./p-bff59d54.js";import"./p-7315e44d.js";import"./p-c8551f70.js";import"./p-21795ae4.js";const o=class{constructor(i){e(this,i),this.calciteInternalLabelClick=t(this,"calciteInternalLabelClick",2),this.labelClickHandler=e=>{this.calciteInternalLabelClick.emit({sourceEvent:e})},this.alignment="start",this.for=void 0,this.scale="m",this.layout="default"}connectedCallback(){document.dispatchEvent(new CustomEvent(s))}disconnectedCallback(){document.dispatchEvent(new CustomEvent(l))}render(){return i(a,{onClick:this.labelClickHandler},i("div",{class:"container"},i("slot",null)))}get el(){return n(this)}};o.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:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.5rem)}:host([scale=m]) .container{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.75rem)}:host([scale=l]) .container{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-ui-text-1)}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:0.5rem}:host([layout=inline][scale=l]) .container{gap:0.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity:1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{o as calcite_label}
@@ -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.9.0-next.2
4
+ * v1.9.0-next.4
5
5
  */
6
- import{d as u}from"./p-79624bb6.js";import"./p-d7feaa30.js";import"./p-d41aa5cf.js";import"./p-0a9879c1.js";import"./p-92cee3b9.js";import"./p-6845a16e.js";import"./p-84037be5.js";import"./p-7a0fd9c8.js";import"./p-ed4e242f.js";import"./p-d2e38f5e.js";import"./p-6dcd6082.js";import"./p-8eac3920.js";import"./p-eebfbb45.js";import"./p-d60d1ab4.js";import"./p-e23d32ae.js";import"./p-b47fc1c3.js";function t(u,t,i,a){var e={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},m={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},s=a&&!t?m:e;return s[i].replace("%d",u<10?s.numbers[u]:u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};u.locale(i,null,!0);export default i;
6
+ import{d as u}from"./p-35477750.js";import"./p-ac6d0e15.js";import"./p-ce04d8b2.js";import"./p-7315e44d.js";import"./p-c8551f70.js";import"./p-21795ae4.js";import"./p-fdb61d3d.js";import"./p-b5a3476e.js";import"./p-e8651158.js";import"./p-bff59d54.js";import"./p-39e0b8d2.js";import"./p-ea031e51.js";import"./p-e941ed6f.js";import"./p-1dfad893.js";import"./p-51eecde8.js";import"./p-2b940331.js";function t(u,t,i,a){var e={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},m={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},s=a&&!t?m:e;return s[i].replace("%d",u<10?s.numbers[u]:u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};u.locale(i,null,!0);export default i;
@@ -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.9.0-next.2
4
+ * v1.9.0-next.4
5
5
  */
6
- import{d as e}from"./p-79624bb6.js";import"./p-d7feaa30.js";import"./p-d41aa5cf.js";import"./p-0a9879c1.js";import"./p-92cee3b9.js";import"./p-6845a16e.js";import"./p-84037be5.js";import"./p-7a0fd9c8.js";import"./p-ed4e242f.js";import"./p-d2e38f5e.js";import"./p-6dcd6082.js";import"./p-8eac3920.js";import"./p-eebfbb45.js";import"./p-d60d1ab4.js";import"./p-e23d32ae.js";import"./p-b47fc1c3.js";var a={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};e.locale(a,null,!0);export default a;
6
+ import{d as e}from"./p-35477750.js";import"./p-ac6d0e15.js";import"./p-ce04d8b2.js";import"./p-7315e44d.js";import"./p-c8551f70.js";import"./p-21795ae4.js";import"./p-fdb61d3d.js";import"./p-b5a3476e.js";import"./p-e8651158.js";import"./p-bff59d54.js";import"./p-39e0b8d2.js";import"./p-ea031e51.js";import"./p-e941ed6f.js";import"./p-1dfad893.js";import"./p-51eecde8.js";import"./p-2b940331.js";var m={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(e){return e+"."}};e.locale(m,null,!0);export default m;
@@ -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.9.0-next.2
4
+ * v1.9.0-next.4
5
5
  */
6
- import{r as t,c as e,h as i,a as s,F as n}from"./p-d7feaa30.js";import{i as r,g as a,d as o,j as l}from"./p-0a9879c1.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-fd4d74ee.js";import{c as j,d as A,u as z}from"./p-84037be5.js";import{i as S}from"./p-ed4e242f.js";import{c as F,s as O,a as $}from"./p-6dcd6082.js";import{c as D,d as I}from"./p-8eac3920.js";import{r as q,c as E,a as N}from"./p-e23d32ae.js";import{u as L,s as K,c as U,d as P}from"./p-b47fc1c3.js";import{t as T}from"./p-898cd428.js";import"./p-92cee3b9.js";import"./p-6845a16e.js";import"./p-7a0fd9c8.js";import"./p-eebfbb45.js";import"./p-87bffe31.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-ac6d0e15.js";import{i as r,g as a,d as o,j as l}from"./p-7315e44d.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-377e4dee.js";import{c as j,d as A,u as z}from"./p-fdb61d3d.js";import{i as S}from"./p-e8651158.js";import{c as F,s as O,a as $}from"./p-39e0b8d2.js";import{c as D,d as I}from"./p-ea031e51.js";import{r as q,c as E,a as N}from"./p-51eecde8.js";import{u as L,s as K,c as U,d as P}from"./p-2b940331.js";import{t as T}from"./p-7b2d9b51.js";import"./p-c8551f70.js";import"./p-21795ae4.js";import"./p-b5a3476e.js";import"./p-e941ed6f.js";import"./p-9fc38aad.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}
@@ -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.9.0-next.2
4
+ * v1.9.0-next.4
5
5
  */
6
- import{r as t,h as e,F as i,a as n,f as o}from"./p-d7feaa30.js";import{c as a,d as l}from"./p-4c086cf4.js";import{b as s,s as r,h as c,g as h,i as d}from"./p-0a9879c1.js";import{c as p,d as x}from"./p-8eac3920.js";import{c as u}from"./p-e23d32ae.js";import{c as b,s as m,d as w,u as v}from"./p-b47fc1c3.js";import{C as f}from"./p-6845a16e.js";import"./p-eebfbb45.js";import"./p-92cee3b9.js";import"./p-ed4e242f.js";const g="content",y=class{constructor(e){t(this,e),this.handleHeaderSlotChange=t=>{this.hasHeader=!!s(t)},this.handleFooterSlotChange=t=>{this.hasFooter=!!s(t)},this.handleAlertsSlotChange=t=>{this.hasAlerts=!!s(t),r(t)?.map((t=>{"CALCITE-ALERT"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleSheetsSlotChange=t=>{this.hasSheets=!!s(t),r(t)?.map((t=>{"CALCITE-SHEET"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleModalsSlotChange=t=>{this.hasModals=!!s(t),r(t)?.map((t=>{"CALCITE-MODAL"===t.nodeName&&(t.slottedInShell=!0)}))},this.contentBehind=!1,this.hasHeader=!1,this.hasFooter=!1,this.hasAlerts=!1,this.hasModals=!1,this.hasSheets=!1}connectedCallback(){a(this)}disconnectedCallback(){l(this)}renderHeader(){return e("div",{hidden:!this.hasHeader},e("slot",{key:"header",name:"header",onSlotchange:this.handleHeaderSlotChange}))}renderFooter(){return e("div",{class:"footer",hidden:!this.hasFooter,key:"footer"},e("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange}))}renderAlerts(){return e("div",{hidden:!this.hasAlerts},e("slot",{key:"alerts",name:"alerts",onSlotchange:this.handleAlertsSlotChange}))}renderSheets(){return e("div",{hidden:!this.hasSheets},e("slot",{key:"sheets",name:"sheets",onSlotchange:this.handleSheetsSlotChange}))}renderModals(){return e("div",{hidden:!this.hasModals},e("slot",{key:"modals",name:"modals",onSlotchange:this.handleModalsSlotChange}))}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),n=e("slot",{key:"panel-bottom-slot",name:"panel-bottom"}),o=e("slot",{key:"panel-top-slot",name:"panel-top"}),a="content-container";return this.contentBehind?[e("div",{class:{[g]:!0,"content--behind":!0},key:a},t),e("div",{class:"center-content"},o,n,i)]:[e("div",{class:g,key:a},o,t,n,i)]}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}renderPositionedSlots(){return e("div",{class:"positioned-slot-wrapper"},this.renderAlerts(),this.renderModals(),this.renderSheets())}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter(),this.renderPositionedSlots())}get el(){return n(this)}};y.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(var(--calcite-app-z-index) - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-app-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}";const z="action-bar",k=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){a(this)}disconnectedCallback(){l(this)}render(){const{el:t}=this,n=e("div",{class:"content"},e("slot",null)),o=c(t,z),a=[o?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:z})):null,n];return"end"===o?.position&&a.reverse(),e(i,null,a)}get el(){return n(this)}};k.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{z-index:var(--calcite-app-z-index);display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";const C=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialContentHeight=null,this.initialClientX=null,this.initialClientY=null,this.contentWidthMax=null,this.contentWidthMin=null,this.contentHeightMax=null,this.contentHeightMin=null,this.step=1,this.stepMultiplier=10,this.actionBars=[],this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedSize=t=>{const{key:e}=t,{el:i,step:n,stepMultiplier:o,layout:a,contentWidthMin:l,contentWidthMax:s,initialContentWidth:r,initialContentHeight:c,contentHeightMin:d,contentHeightMax:p,position:x}=this,u=n*o;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const b=["ArrowLeft","ArrowRight"],m=["ArrowDown","ArrowUp"],w="rtl"===h(i)&&b.includes(e)?-1:1;if("horizontal"===a?"end"===x?e===m[1]||e===b[0]:e===m[0]||e===b[1]:e===m[1]||("end"===x?e===b[0]:e===b[1])){const e=t.shiftKey?u:n;return"horizontal"===a?c+w*e:r+w*e}if("horizontal"===a?"end"===x?e===m[0]||e===b[0]:e===m[1]||e===b[1]:e===m[0]||("end"===x?e===b[1]:e===b[0])){const e=t.shiftKey?u:n;return"horizontal"===a?c-w*e:r-w*e}return"Home"===e&&"horizontal"===a&&"number"==typeof d?d:"Home"===e&&"vertical"===a&&"number"==typeof l?l:"End"===e&&"horizontal"===a&&"number"==typeof p?p:"End"===e&&"vertical"===a&&"number"==typeof s?s:"PageDown"===e?"horizontal"===a?c-u:r-u:"PageUp"===e?"horizontal"===a?c+u:r+u:null},this.initialKeydownWidth=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentWidth(e)},this.initialKeydownHeight=t=>{this.setInitialContentHeight();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentHeight(e)},this.separatorKeyDown=t=>{"horizontal"===this.layout?this.initialKeydownHeight(t):this.initialKeydownWidth(t)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,layout:i,initialContentWidth:n,initialContentHeight:o,position:a,initialClientX:l,initialClientY:s}=this,r="horizontal"===i?t.clientY-s:t.clientX-l,c="vertical"===i&&"rtl"===h(e)?-1:1,d="end"===a?-c*r:c*r;"horizontal"===i?this.setContentHeight(o+d):this.setContentWidth(n+d)},this.separatorPointerUp=t=>{d(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentHeight=()=>{this.initialContentHeight=this.contentEl?.getBoundingClientRect().height},this.setInitialContentWidth=()=>{this.initialContentWidth=this.contentEl?.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!d(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),"horizontal"===this.layout?(this.setInitialContentHeight(),this.initialClientY=t.clientY):(this.setInitialContentWidth(),this.initialClientX=t.clientX),document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t?.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{this.separatorEl?.removeEventListener("pointerdown",this.separatorPointerDown)},this.setActionBarsLayout=t=>{t.forEach((t=>t.layout=this.layout))},this.handleActionBarSlotChange=t=>{const e=r(t).filter((t=>t?.matches("calcite-action-bar")));this.actionBars=e,this.setActionBarsLayout(e)},this.handleHeaderSlotChange=t=>{this.hasHeader=s(t)},this.collapsed=!1,this.detached=!1,this.displayMode="dock",this.detachedHeightScale=void 0,this.heightScale=void 0,this.widthScale="m",this.layout="vertical",this.position="start",this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.contentHeight=null,this.defaultMessages=void 0,this.effectiveLocale="",this.hasHeader=!1}handleDetached(t){t?this.displayMode="float":"float"===this.displayMode&&(this.displayMode="dock")}handleDisplayMode(t){this.detached="float"===t}handleDetachedHeightScale(t){this.heightScale=t}handleHeightScale(t){this.detachedHeightScale=t}layoutHandler(){this.setActionBarsLayout(this.actionBars)}onMessagesChange(){}connectedCallback(){a(this),p(this),b(this)}async componentWillLoad(){await m(this)}disconnectedCallback(){l(this),this.disconnectSeparator(),x(this),w(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){v(this,this.effectiveLocale)}renderHeader(){return e("div",{class:"content__header",hidden:!this.hasHeader,key:"header"},e("slot",{name:"header",onSlotchange:this.handleHeaderSlotChange}))}render(){const{collapsed:t,position:i,initialContentWidth:n,initialContentHeight:o,contentWidth:a,contentWidthMax:l,contentWidthMin:s,contentHeight:r,contentHeightMax:c,contentHeightMin:d,resizable:p,layout:x,displayMode:u}=this,b=h(this.el),m="float"!==u&&p,w=m?"horizontal"===x?r?{height:`${r}px`}:null:a?{width:`${a}px`}:null:null,v=!t&&m?e("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal"===x?"vertical":"horizontal","aria-valuemax":"horizontal"==x?c:l,"aria-valuemin":"horizontal"==x?d:s,"aria-valuenow":"horizontal"==x?r??o:a??n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,role:"separator",tabIndex:0,"touch-action":"none",ref:this.connectSeparator}):null,g=e("div",{class:{[f.rtl]:"rtl"===b,content:!0,"content--overlay":"overlay"===u,"content--float":"float"===u,[f.calciteAnimate]:"overlay"===u,["horizontal"===x?"start"===i?f.calciteAnimateInDown:f.calciteAnimateInUp:"ltr"===b&&"end"===i||"rtl"===b&&"start"===i?f.calciteAnimateInLeft:f.calciteAnimateInRight]:"overlay"===u},hidden:t,key:"content",style:w,ref:this.storeContentEl},this.renderHeader(),e("div",{class:"content__body"},e("slot",null)),v),y=[e("slot",{key:"action-bar",name:"action-bar",onSlotchange:this.handleActionBarSlotChange}),g];return"end"===i&&y.reverse(),e("div",{class:{container:!0}},y)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,n=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?u(n,i,e):n}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);e&&("horizontal"===this.layout?this.updateHeights(e):this.updateWidths(e),o(this))}setContentHeight(t){const{contentHeightMax:e,contentHeightMin:i}=this,n=Math.round(t);this.contentHeight="number"==typeof e&&"number"==typeof i?u(n,i,e):n}updateWidths(t){const e=parseInt(t.getPropertyValue("max-width"),10),i=parseInt(t.getPropertyValue("min-width"),10),n=parseInt(t.getPropertyValue("width"),10);"number"!=typeof n||isNaN(n)||(this.initialContentWidth=n),"number"!=typeof e||isNaN(e)||(this.contentWidthMax=e),"number"!=typeof i||isNaN(i)||(this.contentWidthMin=i)}updateHeights(t){const e=parseInt(t.getPropertyValue("max-height"),10),i=parseInt(t.getPropertyValue("min-height"),10),n=parseInt(t.getPropertyValue("height"),10);"number"!=typeof n||isNaN(n)||(this.initialContentHeight=n),"number"!=typeof e||isNaN(e)||(this.contentHeightMax=e),"number"!=typeof i||isNaN(i)||(this.contentHeightMin=i)}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{detached:["handleDetached"],displayMode:["handleDisplayMode"],detachedHeightScale:["handleDetachedHeightScale"],heightScale:["handleHeightScale"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};C.style=":host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-app-z-index));--calcite-shell-panel-detached-max-height:unset;--calcite-shell-panel-max-height:unset;--calcite-shell-panel-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04)}.calcite--rtl.content--overlay{--calcite-shell-panel-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index-header) + 1))}:host([layout=vertical][width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal][height-scale=s]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 20vh)\n )}:host([layout=horizontal]) .content{--calcite-shell-panel-min-height-internal:var(--calcite-shell-panel-min-height, 5vh);--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 30vh)\n )}:host([layout=horizontal][height-scale=l]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 40vh)\n )}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host([layout=horizontal]) .container{flex-direction:column}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;display:flex;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .separator{inset-block:0px;block-size:100%;inline-size:0.125rem;cursor:col-resize}:host([layout=horizontal][position=start]) .separator{inset-block-end:0px}:host([layout=horizontal][position=end]) .separator{inset-block-start:0px}:host([layout=horizontal]) .separator{inset-inline-end:0px;block-size:0.125rem;inline-size:100%;cursor:row-resize}:host([layout=vertical][position=start]) .separator{inset-inline-end:-2px}:host([layout=horizontal][position=start]) .separator{inset-block-end:-2px}:host([layout=vertical][position=end]) .separator{inset-inline-start:-2px}:host([layout=horizontal][position=end]) .separator{inset-block-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]) .content{inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal)}:host([layout=horizontal]) .content{block-size:var(--calcite-shell-panel-height-internal);max-block-size:var(--calcite-shell-panel-max-height-internal);min-block-size:var(--calcite-shell-panel-min-height-internal)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-start-internal)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-end-internal)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-shell-panel-shadow-block-start-internal)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-shell-panel-shadow-block-end-internal)}.content--float{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-block-size:var(--calcite-shell-panel-max-height-internal, calc(100% - 1rem))}.content--float ::slotted(calcite-panel),.content--float ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .content--float{margin-block:0.5rem}:host([position=start]) .content--float ::slotted(calcite-panel),:host([position=start]) .content--float ::slotted(calcite-flow),:host([position=end]) .content--float ::slotted(calcite-panel),:host([position=end]) .content--float ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_shell,k as calcite_shell_center_row,C as calcite_shell_panel}
6
+ import{r as t,h as e,F as i,a as n,f as o}from"./p-ac6d0e15.js";import{c as a,d as l}from"./p-f6dec19a.js";import{b as s,s as r,h as c,g as h,i as d}from"./p-7315e44d.js";import{c as p,d as x}from"./p-ea031e51.js";import{c as u}from"./p-51eecde8.js";import{c as b,s as m,d as w,u as v}from"./p-2b940331.js";import{C as f}from"./p-21795ae4.js";import"./p-e941ed6f.js";import"./p-c8551f70.js";import"./p-e8651158.js";const g="content",y=class{constructor(e){t(this,e),this.handleHeaderSlotChange=t=>{this.hasHeader=!!s(t)},this.handleFooterSlotChange=t=>{this.hasFooter=!!s(t)},this.handleAlertsSlotChange=t=>{this.hasAlerts=!!s(t),r(t)?.map((t=>{"CALCITE-ALERT"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleSheetsSlotChange=t=>{this.hasSheets=!!s(t),r(t)?.map((t=>{"CALCITE-SHEET"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleModalsSlotChange=t=>{this.hasModals=!!s(t),r(t)?.map((t=>{"CALCITE-MODAL"===t.nodeName&&(t.slottedInShell=!0)}))},this.contentBehind=!1,this.hasHeader=!1,this.hasFooter=!1,this.hasAlerts=!1,this.hasModals=!1,this.hasSheets=!1}connectedCallback(){a(this)}disconnectedCallback(){l(this)}renderHeader(){return e("div",{hidden:!this.hasHeader},e("slot",{key:"header",name:"header",onSlotchange:this.handleHeaderSlotChange}))}renderFooter(){return e("div",{class:"footer",hidden:!this.hasFooter,key:"footer"},e("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange}))}renderAlerts(){return e("div",{hidden:!this.hasAlerts},e("slot",{key:"alerts",name:"alerts",onSlotchange:this.handleAlertsSlotChange}))}renderSheets(){return e("div",{hidden:!this.hasSheets},e("slot",{key:"sheets",name:"sheets",onSlotchange:this.handleSheetsSlotChange}))}renderModals(){return e("div",{hidden:!this.hasModals},e("slot",{key:"modals",name:"modals",onSlotchange:this.handleModalsSlotChange}))}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),n=e("slot",{key:"panel-bottom-slot",name:"panel-bottom"}),o=e("slot",{key:"panel-top-slot",name:"panel-top"}),a="content-container";return this.contentBehind?[e("div",{class:{[g]:!0,"content--behind":!0},key:a},t),e("div",{class:"center-content"},o,n,i)]:[e("div",{class:g,key:a},o,t,n,i)]}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}renderPositionedSlots(){return e("div",{class:"positioned-slot-wrapper"},this.renderAlerts(),this.renderModals(),this.renderSheets())}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter(),this.renderPositionedSlots())}get el(){return n(this)}};y.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(var(--calcite-app-z-index) - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-app-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}";const z="action-bar",k=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){a(this)}disconnectedCallback(){l(this)}render(){const{el:t}=this,n=e("div",{class:"content"},e("slot",null)),o=c(t,z),a=[o?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:z})):null,n];return"end"===o?.position&&a.reverse(),e(i,null,a)}get el(){return n(this)}};k.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{z-index:var(--calcite-app-z-index);display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";const C=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialContentHeight=null,this.initialClientX=null,this.initialClientY=null,this.contentWidthMax=null,this.contentWidthMin=null,this.contentHeightMax=null,this.contentHeightMin=null,this.step=1,this.stepMultiplier=10,this.actionBars=[],this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedSize=t=>{const{key:e}=t,{el:i,step:n,stepMultiplier:o,layout:a,contentWidthMin:l,contentWidthMax:s,initialContentWidth:r,initialContentHeight:c,contentHeightMin:d,contentHeightMax:p,position:x}=this,u=n*o;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const b=["ArrowLeft","ArrowRight"],m=["ArrowDown","ArrowUp"],w="rtl"===h(i)&&b.includes(e)?-1:1;if("horizontal"===a?"end"===x?e===m[1]||e===b[0]:e===m[0]||e===b[1]:e===m[1]||("end"===x?e===b[0]:e===b[1])){const e=t.shiftKey?u:n;return"horizontal"===a?c+w*e:r+w*e}if("horizontal"===a?"end"===x?e===m[0]||e===b[0]:e===m[1]||e===b[1]:e===m[0]||("end"===x?e===b[1]:e===b[0])){const e=t.shiftKey?u:n;return"horizontal"===a?c-w*e:r-w*e}return"Home"===e&&"horizontal"===a&&"number"==typeof d?d:"Home"===e&&"vertical"===a&&"number"==typeof l?l:"End"===e&&"horizontal"===a&&"number"==typeof p?p:"End"===e&&"vertical"===a&&"number"==typeof s?s:"PageDown"===e?"horizontal"===a?c-u:r-u:"PageUp"===e?"horizontal"===a?c+u:r+u:null},this.initialKeydownWidth=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentWidth(e)},this.initialKeydownHeight=t=>{this.setInitialContentHeight();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentHeight(e)},this.separatorKeyDown=t=>{"horizontal"===this.layout?this.initialKeydownHeight(t):this.initialKeydownWidth(t)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,layout:i,initialContentWidth:n,initialContentHeight:o,position:a,initialClientX:l,initialClientY:s}=this,r="horizontal"===i?t.clientY-s:t.clientX-l,c="vertical"===i&&"rtl"===h(e)?-1:1,d="end"===a?-c*r:c*r;"horizontal"===i?this.setContentHeight(o+d):this.setContentWidth(n+d)},this.separatorPointerUp=t=>{d(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentHeight=()=>{this.initialContentHeight=this.contentEl?.getBoundingClientRect().height},this.setInitialContentWidth=()=>{this.initialContentWidth=this.contentEl?.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!d(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),"horizontal"===this.layout?(this.setInitialContentHeight(),this.initialClientY=t.clientY):(this.setInitialContentWidth(),this.initialClientX=t.clientX),document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t?.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{this.separatorEl?.removeEventListener("pointerdown",this.separatorPointerDown)},this.setActionBarsLayout=t=>{t.forEach((t=>t.layout=this.layout))},this.handleActionBarSlotChange=t=>{const e=r(t).filter((t=>t?.matches("calcite-action-bar")));this.actionBars=e,this.setActionBarsLayout(e)},this.handleHeaderSlotChange=t=>{this.hasHeader=s(t)},this.collapsed=!1,this.detached=!1,this.displayMode="dock",this.detachedHeightScale=void 0,this.heightScale=void 0,this.widthScale="m",this.layout="vertical",this.position="start",this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.contentHeight=null,this.defaultMessages=void 0,this.effectiveLocale="",this.hasHeader=!1}handleDetached(t){t?this.displayMode="float":"float"===this.displayMode&&(this.displayMode="dock")}handleDisplayMode(t){this.detached="float"===t}handleDetachedHeightScale(t){this.heightScale=t}handleHeightScale(t){this.detachedHeightScale=t}layoutHandler(){this.setActionBarsLayout(this.actionBars)}onMessagesChange(){}connectedCallback(){a(this),p(this),b(this)}async componentWillLoad(){await m(this)}disconnectedCallback(){l(this),this.disconnectSeparator(),x(this),w(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){v(this,this.effectiveLocale)}renderHeader(){return e("div",{class:"content__header",hidden:!this.hasHeader,key:"header"},e("slot",{name:"header",onSlotchange:this.handleHeaderSlotChange}))}render(){const{collapsed:t,position:i,initialContentWidth:n,initialContentHeight:o,contentWidth:a,contentWidthMax:l,contentWidthMin:s,contentHeight:r,contentHeightMax:c,contentHeightMin:d,resizable:p,layout:x,displayMode:u}=this,b=h(this.el),m="float"!==u&&p,w=m?"horizontal"===x?r?{height:`${r}px`}:null:a?{width:`${a}px`}:null:null,v=!t&&m?e("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal"===x?"vertical":"horizontal","aria-valuemax":"horizontal"==x?c:l,"aria-valuemin":"horizontal"==x?d:s,"aria-valuenow":"horizontal"==x?r??o:a??n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,role:"separator",tabIndex:0,"touch-action":"none",ref:this.connectSeparator}):null,g=e("div",{class:{[f.rtl]:"rtl"===b,content:!0,"content--overlay":"overlay"===u,"content--float":"float"===u,[f.calciteAnimate]:"overlay"===u,["horizontal"===x?"start"===i?f.calciteAnimateInDown:f.calciteAnimateInUp:"ltr"===b&&"end"===i||"rtl"===b&&"start"===i?f.calciteAnimateInLeft:f.calciteAnimateInRight]:"overlay"===u},hidden:t,key:"content",style:w,ref:this.storeContentEl},this.renderHeader(),e("div",{class:"content__body"},e("slot",null)),v),y=[e("slot",{key:"action-bar",name:"action-bar",onSlotchange:this.handleActionBarSlotChange}),g];return"end"===i&&y.reverse(),e("div",{class:{container:!0}},y)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,n=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?u(n,i,e):n}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);e&&("horizontal"===this.layout?this.updateHeights(e):this.updateWidths(e),o(this))}setContentHeight(t){const{contentHeightMax:e,contentHeightMin:i}=this,n=Math.round(t);this.contentHeight="number"==typeof e&&"number"==typeof i?u(n,i,e):n}updateWidths(t){const e=parseInt(t.getPropertyValue("max-width"),10),i=parseInt(t.getPropertyValue("min-width"),10),n=parseInt(t.getPropertyValue("width"),10);"number"!=typeof n||isNaN(n)||(this.initialContentWidth=n),"number"!=typeof e||isNaN(e)||(this.contentWidthMax=e),"number"!=typeof i||isNaN(i)||(this.contentWidthMin=i)}updateHeights(t){const e=parseInt(t.getPropertyValue("max-height"),10),i=parseInt(t.getPropertyValue("min-height"),10),n=parseInt(t.getPropertyValue("height"),10);"number"!=typeof n||isNaN(n)||(this.initialContentHeight=n),"number"!=typeof e||isNaN(e)||(this.contentHeightMax=e),"number"!=typeof i||isNaN(i)||(this.contentHeightMin=i)}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{detached:["handleDetached"],displayMode:["handleDisplayMode"],detachedHeightScale:["handleDetachedHeightScale"],heightScale:["handleHeightScale"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};C.style=":host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-app-z-index));--calcite-shell-panel-detached-max-height:unset;--calcite-shell-panel-max-height:unset;--calcite-shell-panel-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04)}.calcite--rtl.content--overlay{--calcite-shell-panel-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index-header) + 1))}:host([layout=vertical][width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal][height-scale=s]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 20vh)\n )}:host([layout=horizontal]) .content{--calcite-shell-panel-min-height-internal:var(--calcite-shell-panel-min-height, 5vh);--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 30vh)\n )}:host([layout=horizontal][height-scale=l]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 40vh)\n )}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host([layout=horizontal]) .container{flex-direction:column}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;display:flex;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .separator{inset-block:0px;block-size:100%;inline-size:0.125rem;cursor:col-resize}:host([layout=horizontal][position=start]) .separator{inset-block-end:0px}:host([layout=horizontal][position=end]) .separator{inset-block-start:0px}:host([layout=horizontal]) .separator{inset-inline-end:0px;block-size:0.125rem;inline-size:100%;cursor:row-resize}:host([layout=vertical][position=start]) .separator{inset-inline-end:-2px}:host([layout=horizontal][position=start]) .separator{inset-block-end:-2px}:host([layout=vertical][position=end]) .separator{inset-inline-start:-2px}:host([layout=horizontal][position=end]) .separator{inset-block-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]) .content{inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal)}:host([layout=horizontal]) .content{block-size:var(--calcite-shell-panel-height-internal);max-block-size:var(--calcite-shell-panel-max-height-internal);min-block-size:var(--calcite-shell-panel-min-height-internal)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-start-internal)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-end-internal)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-shell-panel-shadow-block-start-internal)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-shell-panel-shadow-block-end-internal)}.content--float{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-block-size:var(--calcite-shell-panel-max-height-internal, calc(100% - 1rem))}.content--float ::slotted(calcite-panel),.content--float ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .content--float{margin-block:0.5rem}:host([position=start]) .content--float ::slotted(calcite-panel),:host([position=start]) .content--float ::slotted(calcite-flow),:host([position=end]) .content--float ::slotted(calcite-panel),:host([position=end]) .content--float ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_shell,k as calcite_shell_center_row,C as calcite_shell_panel}