@esri/calcite-components 1.10.0-next.8 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1117) hide show
  1. package/dist/calcite/assets/input-time-zone/t9n/messages.json +3 -3
  2. package/dist/calcite/assets/input-time-zone/t9n/messages_en.json +3 -3
  3. package/dist/calcite/calcite.esm.js +2 -2
  4. package/dist/calcite/index.esm.js +2 -2
  5. package/dist/calcite/{p-f2923204.entry.js → p-004e069a.entry.js} +2 -2
  6. package/dist/calcite/{p-57db9bb5.js → p-01336eb8.js} +2 -2
  7. package/dist/calcite/{p-95c6ff70.js → p-02ffe899.js} +2 -2
  8. package/dist/calcite/{p-3ba340ce.js → p-0673188b.js} +1 -1
  9. package/dist/calcite/{p-80761c9d.js → p-08e5ea49.js} +2 -2
  10. package/dist/calcite/{p-f9bdfc63.js → p-09040350.js} +2 -2
  11. package/dist/calcite/{p-28b31c1d.entry.js → p-0c8d3da3.entry.js} +2 -2
  12. package/dist/calcite/{p-3d2fcd90.js → p-0dd00c35.js} +2 -2
  13. package/dist/calcite/p-0e6f7f43.entry.js +6 -0
  14. package/dist/calcite/{p-2391fe21.js → p-0ee37677.js} +2 -2
  15. package/dist/calcite/{p-0f89703c.entry.js → p-0fccefd2.entry.js} +2 -2
  16. package/dist/calcite/{p-ff69f87d.js → p-105a525e.js} +2 -2
  17. package/dist/calcite/{p-3b20998f.entry.js → p-1178cbbe.entry.js} +2 -2
  18. package/dist/calcite/{p-979e7659.entry.js → p-131f9b12.entry.js} +2 -2
  19. package/dist/calcite/{p-61f0517c.entry.js → p-1332c842.entry.js} +2 -2
  20. package/dist/calcite/{p-d5d9c044.js → p-150280cd.js} +2 -2
  21. package/dist/calcite/{p-605c531d.entry.js → p-153131fb.entry.js} +2 -2
  22. package/dist/calcite/{p-434e0a98.entry.js → p-17847501.entry.js} +2 -2
  23. package/dist/calcite/p-17ee73e0.entry.js +6 -0
  24. package/dist/calcite/p-1809af8d.js +6 -0
  25. package/dist/calcite/{p-89daf1d6.entry.js → p-1890b4bf.entry.js} +2 -2
  26. package/dist/calcite/{p-5d0440be.entry.js → p-19c3058b.entry.js} +2 -2
  27. package/dist/calcite/{p-ba88ee2f.js → p-1d2aa6bc.js} +1 -1
  28. package/dist/calcite/{p-09611013.entry.js → p-1eac1008.entry.js} +2 -2
  29. package/dist/calcite/{p-042a1275.js → p-1ebea24f.js} +2 -2
  30. package/dist/calcite/{p-8731ff1a.entry.js → p-1f5f36b0.entry.js} +2 -2
  31. package/dist/calcite/{p-d1c6fb95.entry.js → p-2555068c.entry.js} +2 -2
  32. package/dist/calcite/{p-2c0cfd3a.js → p-2556334a.js} +2 -2
  33. package/dist/calcite/{p-94b16f0e.js → p-27384fa5.js} +2 -2
  34. package/dist/calcite/{p-90052d9f.entry.js → p-284658ce.entry.js} +2 -2
  35. package/dist/calcite/{p-a0f4f6eb.entry.js → p-2b090fd0.entry.js} +2 -2
  36. package/dist/calcite/p-2b573ead.entry.js +6 -0
  37. package/dist/calcite/p-2c69dd69.entry.js +6 -0
  38. package/dist/calcite/{p-3411072d.entry.js → p-2f298505.entry.js} +2 -2
  39. package/dist/calcite/{p-e81ba1a6.js → p-308f5dd8.js} +2 -2
  40. package/dist/calcite/{p-6ffbc922.entry.js → p-311776da.entry.js} +2 -2
  41. package/dist/calcite/{p-85891552.entry.js → p-32b2d67a.entry.js} +2 -2
  42. package/dist/calcite/{p-95bc8a66.entry.js → p-33c3ea9c.entry.js} +2 -2
  43. package/dist/calcite/{p-3f9f4578.js → p-342e5f69.js} +2 -2
  44. package/dist/calcite/{p-b41dbbf2.js → p-343f1e34.js} +2 -2
  45. package/dist/calcite/{p-7cec9f27.js → p-36d3ed5d.js} +1 -1
  46. package/dist/calcite/{p-74bdde00.entry.js → p-37051c74.entry.js} +2 -2
  47. package/dist/calcite/{p-0e205036.js → p-397635f5.js} +2 -2
  48. package/dist/calcite/{p-f0ae6250.entry.js → p-39af3299.entry.js} +2 -2
  49. package/dist/calcite/{p-afb5bfac.js → p-39c4bd14.js} +1 -1
  50. package/dist/calcite/{p-b61aeefa.js → p-3aa6843f.js} +1 -1
  51. package/dist/calcite/{p-472805ec.entry.js → p-3c3483c7.entry.js} +2 -2
  52. package/dist/calcite/{p-05d93355.js → p-3d697009.js} +2 -2
  53. package/dist/calcite/{p-fbb6928e.entry.js → p-3e3f4098.entry.js} +2 -2
  54. package/dist/calcite/{p-f25b3d95.entry.js → p-3f3ba232.entry.js} +2 -2
  55. package/dist/calcite/{p-df3b1c71.js → p-4011c57e.js} +2 -2
  56. package/dist/calcite/{p-6fe3a8cb.entry.js → p-428e9f05.entry.js} +2 -2
  57. package/dist/calcite/{p-5ffe1323.entry.js → p-42f6e04f.entry.js} +2 -2
  58. package/dist/calcite/{p-1c93f3f7.js → p-430a4118.js} +2 -2
  59. package/dist/calcite/{p-4ea2589b.js → p-438d4256.js} +2 -2
  60. package/dist/calcite/{p-7363c949.js → p-45376bb7.js} +1 -1
  61. package/dist/calcite/{p-dd9c8057.js → p-46c48630.js} +2 -2
  62. package/dist/calcite/{p-a78846d5.js → p-46f0626f.js} +1 -1
  63. package/dist/calcite/{p-f720ead4.entry.js → p-4860f0ef.entry.js} +2 -2
  64. package/dist/calcite/{p-6ae2760e.entry.js → p-4882f1e7.entry.js} +2 -2
  65. package/dist/calcite/p-4b72efc5.entry.js +6 -0
  66. package/dist/calcite/{p-4387e048.js → p-4c505e07.js} +2 -2
  67. package/dist/calcite/{p-f9654c06.js → p-4c9d8a31.js} +2 -2
  68. package/dist/calcite/{p-671a8dab.entry.js → p-4dfbd1bc.entry.js} +2 -2
  69. package/dist/calcite/{p-c03bf329.js → p-4f5868d5.js} +2 -2
  70. package/dist/calcite/{p-c212e6ce.js → p-530096f0.js} +2 -2
  71. package/dist/calcite/p-53386f79.js +6 -0
  72. package/dist/calcite/{p-9b3ff9fe.js → p-5418fb94.js} +1 -1
  73. package/dist/calcite/{p-3109135c.js → p-54ad40fe.js} +2 -2
  74. package/dist/calcite/{p-2ef0535d.entry.js → p-5529d66d.entry.js} +2 -2
  75. package/dist/calcite/p-580f2500.entry.js +6 -0
  76. package/dist/calcite/{p-2a7a126c.entry.js → p-58232284.entry.js} +2 -2
  77. package/dist/calcite/{p-50b4fe6e.js → p-593d1938.js} +2 -2
  78. package/dist/calcite/{p-2ed7bd5f.js → p-5945f229.js} +2 -2
  79. package/dist/calcite/{p-d9ab276c.entry.js → p-5d3063ea.entry.js} +2 -2
  80. package/dist/calcite/{p-bde7c875.js → p-5e057250.js} +2 -2
  81. package/dist/calcite/{p-07d2e108.entry.js → p-6209d02d.entry.js} +2 -2
  82. package/dist/calcite/p-63d24825.entry.js +6 -0
  83. package/dist/calcite/{p-0ce4ae49.js → p-66deab13.js} +2 -2
  84. package/dist/calcite/{p-bd02e0c4.js → p-6a381b8b.js} +2 -2
  85. package/dist/calcite/{p-0a1db46f.js → p-6d390983.js} +2 -2
  86. package/dist/calcite/{p-8f711d4c.js → p-7255d779.js} +1 -1
  87. package/dist/calcite/{p-1ad99156.js → p-731400db.js} +1 -1
  88. package/dist/calcite/{p-75b25bb9.js → p-7833f32a.js} +2 -2
  89. package/dist/calcite/{p-6453048f.entry.js → p-7ae804f8.entry.js} +2 -2
  90. package/dist/calcite/{p-d1c47ad6.js → p-7b2a2228.js} +2 -2
  91. package/dist/calcite/{p-bd658cfa.js → p-7bb0a24d.js} +2 -2
  92. package/dist/calcite/p-7dcb8d27.entry.js +6 -0
  93. package/dist/calcite/p-7ec1c4e6.js +6 -0
  94. package/dist/calcite/{p-3efc6b1d.js → p-7f81cc49.js} +2 -2
  95. package/dist/calcite/{p-e9b47353.js → p-802467c1.js} +2 -2
  96. package/dist/calcite/{p-1cbdeba8.js → p-8527626c.js} +2 -2
  97. package/dist/calcite/{p-51824a22.entry.js → p-85347869.entry.js} +2 -2
  98. package/dist/calcite/{p-d4f975ff.js → p-87791eeb.js} +2 -2
  99. package/dist/calcite/{p-ec9031b4.entry.js → p-8a4ff950.entry.js} +2 -2
  100. package/dist/calcite/{p-c350ab73.js → p-8afff3b2.js} +2 -2
  101. package/dist/calcite/{p-237265c2.js → p-8bfdc9d6.js} +2 -2
  102. package/dist/calcite/{p-dbcba905.entry.js → p-8dbdc2ee.entry.js} +2 -2
  103. package/dist/calcite/{p-73f87812.entry.js → p-8eb1cb04.entry.js} +2 -2
  104. package/dist/calcite/{p-6801f583.entry.js → p-9052ced6.entry.js} +2 -2
  105. package/dist/calcite/{p-3b2bced3.js → p-90898a8d.js} +1 -1
  106. package/dist/calcite/p-914c936d.entry.js +6 -0
  107. package/dist/calcite/{p-159569ef.js → p-9312fc08.js} +1 -1
  108. package/dist/calcite/{p-0f5da816.entry.js → p-9608ce1c.entry.js} +2 -2
  109. package/dist/calcite/{p-3f4978b0.entry.js → p-9ad8f2dc.entry.js} +2 -2
  110. package/dist/calcite/{p-1aef3a68.entry.js → p-9bc263b0.entry.js} +2 -2
  111. package/dist/calcite/{p-66e9e959.entry.js → p-9bc561b9.entry.js} +2 -2
  112. package/dist/calcite/{p-9b2a04b5.js → p-9bd510bf.js} +2 -2
  113. package/dist/calcite/{p-577e8e66.js → p-9bdf2220.js} +1 -1
  114. package/dist/calcite/{p-ec05c729.js → p-9bf9b1f6.js} +2 -2
  115. package/dist/calcite/{p-a37ac19b.js → p-9ce6b1a0.js} +2 -2
  116. package/dist/calcite/{p-01356069.js → p-9fa7f921.js} +1 -1
  117. package/dist/calcite/{p-a38a050a.js → p-a1785cb1.js} +1 -1
  118. package/dist/calcite/{p-1d5a5ce8.js → p-a3a72125.js} +2 -2
  119. package/dist/calcite/{p-4cd1d362.js → p-a871bf16.js} +2 -2
  120. package/dist/calcite/{p-7f1940cc.entry.js → p-a97224e3.entry.js} +2 -2
  121. package/dist/calcite/{p-d94f3311.js → p-ac683d4b.js} +2 -2
  122. package/dist/calcite/{p-59c918d0.entry.js → p-ad54e10a.entry.js} +2 -2
  123. package/dist/calcite/{p-87408cbe.js → p-ae13c82e.js} +2 -2
  124. package/dist/calcite/{p-68460237.js → p-b123f4eb.js} +2 -2
  125. package/dist/calcite/{p-af220fc5.entry.js → p-b295dd07.entry.js} +2 -2
  126. package/dist/calcite/{p-88105b7d.js → p-b56661b0.js} +3 -3
  127. package/dist/calcite/{p-9740f047.js → p-b58e1d02.js} +2 -2
  128. package/dist/calcite/{p-1699661b.js → p-b7c24c21.js} +2 -2
  129. package/dist/calcite/{p-977c8870.js → p-b9648199.js} +2 -2
  130. package/dist/calcite/p-bbbbad84.entry.js +6 -0
  131. package/dist/calcite/p-bbd3d30b.js +6 -0
  132. package/dist/calcite/{p-35692ab1.js → p-bde954a7.js} +2 -2
  133. package/dist/calcite/{p-0b8f858f.js → p-c30c47b1.js} +2 -2
  134. package/dist/calcite/{p-7cefd7bf.js → p-c3a16369.js} +2 -2
  135. package/dist/calcite/{p-0bc6cf5c.entry.js → p-c40aa963.entry.js} +2 -2
  136. package/dist/calcite/p-c6acafe6.entry.js +6 -0
  137. package/dist/calcite/{p-603b42a5.js → p-c7143cb9.js} +2 -2
  138. package/dist/calcite/p-c981b8c2.entry.js +6 -0
  139. package/dist/calcite/{p-a4d8e161.entry.js → p-ca73a030.entry.js} +2 -2
  140. package/dist/calcite/{p-c6cb1274.js → p-d02a423b.js} +2 -2
  141. package/dist/calcite/{p-9cb81da5.entry.js → p-d520f8a9.entry.js} +2 -2
  142. package/dist/calcite/{p-f807b34f.js → p-d7e55add.js} +2 -2
  143. package/dist/calcite/{p-930f1c93.entry.js → p-d96d8572.entry.js} +2 -2
  144. package/dist/calcite/{p-f546a964.js → p-db148515.js} +2 -2
  145. package/dist/calcite/{p-128223be.js → p-db7b5a5d.js} +1 -1
  146. package/dist/calcite/{p-d22c3be5.js → p-dc8221b8.js} +2 -2
  147. package/dist/calcite/{p-bc416404.entry.js → p-df7c7641.entry.js} +2 -2
  148. package/dist/calcite/{p-617b58be.entry.js → p-e016c47c.entry.js} +2 -2
  149. package/dist/calcite/{p-eee7b66b.js → p-e03abf55.js} +2 -2
  150. package/dist/calcite/{p-8c382a3e.js → p-e1544594.js} +2 -2
  151. package/dist/calcite/p-e25df814.js +6 -0
  152. package/dist/calcite/{p-afb6d64b.entry.js → p-e4cb03fe.entry.js} +2 -2
  153. package/dist/calcite/p-e587d33b.js +6 -0
  154. package/dist/calcite/{p-17bb07b7.js → p-e5b74595.js} +1 -1
  155. package/dist/calcite/{p-947bcb5b.js → p-ec05c1a3.js} +2 -2
  156. package/dist/calcite/{p-e4289501.entry.js → p-ec701024.entry.js} +2 -2
  157. package/dist/calcite/{p-09f8a836.js → p-ee9bb199.js} +2 -2
  158. package/dist/calcite/{p-1f4b228f.entry.js → p-eff69f08.entry.js} +2 -2
  159. package/dist/calcite/{p-d63cdaf9.entry.js → p-f0d94046.entry.js} +2 -2
  160. package/dist/calcite/{p-a2fb4362.entry.js → p-f0dfab94.entry.js} +2 -2
  161. package/dist/calcite/{p-cd8ce34f.entry.js → p-f42601b2.entry.js} +2 -2
  162. package/dist/calcite/{p-5046a969.entry.js → p-f7784ecf.entry.js} +2 -2
  163. package/dist/calcite/{p-d5a0aeb4.js → p-fa55c6cb.js} +1 -1
  164. package/dist/calcite/{p-86947894.js → p-fc4ae57c.js} +2 -2
  165. package/dist/calcite/{p-4ed03cc4.js → p-fd8af378.js} +2 -2
  166. package/dist/cjs/{ExpandToggle-df83d3e1.js → ExpandToggle-3fb2b6cd.js} +5 -5
  167. package/dist/cjs/{FloatingArrow-27b5a710.js → FloatingArrow-53d1857a.js} +2 -2
  168. package/dist/cjs/{Heading-fc03cdb5.js → Heading-6252a876.js} +2 -2
  169. package/dist/cjs/{app-globals-3e7e2d36.js → app-globals-63e51788.js} +2 -2
  170. package/dist/cjs/{ar-23ad9127.js → ar-ff196d50.js} +19 -19
  171. package/dist/cjs/{array-b4c77a24.js → array-9f0a082a.js} +1 -1
  172. package/dist/cjs/{bg-fcaf728b.js → bg-53b237a8.js} +19 -19
  173. package/dist/cjs/{browser-c8e6a9e3.js → browser-bc2f2efb.js} +1 -1
  174. package/dist/cjs/{bs-c0e172d0.js → bs-90a14199.js} +19 -19
  175. package/dist/cjs/{ca-5230c611.js → ca-c2d44673.js} +19 -19
  176. package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
  177. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  178. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  179. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  180. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  181. package/dist/cjs/calcite-action.cjs.entry.js +13 -13
  182. package/dist/cjs/calcite-alert.cjs.entry.js +15 -15
  183. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  184. package/dist/cjs/calcite-block_2.cjs.entry.js +15 -15
  185. package/dist/cjs/calcite-button.cjs.entry.js +16 -16
  186. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  187. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
  188. package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
  189. package/dist/cjs/calcite-chip.cjs.entry.js +14 -14
  190. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
  191. package/dist/cjs/calcite-combobox_3.cjs.entry.js +44 -46
  192. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -15
  193. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -14
  194. package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
  195. package/dist/cjs/calcite-filter.cjs.entry.js +15 -15
  196. package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
  197. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  198. package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
  199. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  200. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  201. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
  202. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +20 -20
  203. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  204. package/dist/cjs/calcite-input-number.cjs.entry.js +15 -15
  205. package/dist/cjs/calcite-input-text.cjs.entry.js +15 -15
  206. package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-023c89c4.js → calcite-input-time-picker.calcite-time-picker-e62854f3.js} +63 -63
  207. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +19 -19
  208. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +16 -16
  209. package/dist/cjs/calcite-input.cjs.entry.js +15 -15
  210. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  211. package/dist/cjs/calcite-link.cjs.entry.js +8 -8
  212. package/dist/cjs/calcite-list_3.cjs.entry.js +15 -15
  213. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  214. package/dist/cjs/calcite-menu_2.cjs.entry.js +11 -11
  215. package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
  216. package/dist/cjs/calcite-modal.cjs.entry.js +14 -14
  217. package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
  218. package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
  219. package/dist/cjs/calcite-option_3.cjs.entry.js +12 -12
  220. package/dist/cjs/calcite-pagination.cjs.entry.js +12 -12
  221. package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
  222. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
  223. package/dist/cjs/calcite-popover.cjs.entry.js +17 -17
  224. package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
  225. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  226. package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
  227. package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
  228. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  229. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
  230. package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
  231. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  232. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
  233. package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
  234. package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
  235. package/dist/cjs/calcite-stepper_2.cjs.entry.js +12 -12
  236. package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
  237. package/dist/cjs/calcite-tab_4.cjs.entry.js +81 -35
  238. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
  239. package/dist/cjs/calcite-table-row.cjs.entry.js +9 -9
  240. package/dist/cjs/calcite-table.cjs.entry.js +11 -11
  241. package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
  242. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
  243. package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
  244. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  245. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  246. package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
  247. package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
  248. package/dist/cjs/calcite.cjs.js +5 -5
  249. package/dist/cjs/{component-ab6f34b4.js → component-75681f41.js} +1 -1
  250. package/dist/cjs/{conditionalSlot-97d87ee0.js → conditionalSlot-849e1a34.js} +3 -3
  251. package/dist/cjs/{cs-c1362466.js → cs-833ac105.js} +19 -19
  252. package/dist/cjs/{da-1770c810.js → da-a78ac4d4.js} +19 -19
  253. package/dist/cjs/{de-at-88bbd625.js → de-at-11a78c7a.js} +19 -19
  254. package/dist/cjs/{de-ch-21ac80a3.js → de-ch-7013df28.js} +19 -19
  255. package/dist/cjs/{de-0ba359c8.js → de-dfbba77e.js} +19 -19
  256. package/dist/cjs/{debounce-85cadc83.js → debounce-94fa0a04.js} +1 -1
  257. package/dist/cjs/{dom-73ce44a6.js → dom-6172ed4c.js} +3 -18
  258. package/dist/cjs/{el-824252d0.js → el-5820ebeb.js} +19 -19
  259. package/dist/cjs/{en-au-0de8ad5c.js → en-au-e93c1794.js} +19 -19
  260. package/dist/cjs/{en-ca-64d1d2fd.js → en-ca-adebc326.js} +19 -19
  261. package/dist/cjs/{en-gb-fb312acc.js → en-gb-4996e917.js} +19 -19
  262. package/dist/cjs/{es-166f0c12.js → es-4bed0f9f.js} +19 -19
  263. package/dist/cjs/{es-mx-91422d01.js → es-mx-3f758f26.js} +19 -19
  264. package/dist/cjs/{et-643b33ee.js → et-ee862ea4.js} +19 -19
  265. package/dist/cjs/{fi-80c19f6b.js → fi-84798e76.js} +19 -19
  266. package/dist/cjs/{filter-1964b36a.js → filter-3cbeb5e0.js} +2 -2
  267. package/dist/cjs/{floating-ui-6be49e6e.js → floating-ui-38753771.js} +3 -3
  268. package/dist/cjs/{focusTrapComponent-6bb56299.js → focusTrapComponent-014b315b.js} +2 -2
  269. package/dist/cjs/{form-2eb31c00.js → form-00b7de4b.js} +3 -3
  270. package/dist/cjs/{fr-36d67e7b.js → fr-a2c5c04b.js} +19 -19
  271. package/dist/cjs/{fr-ch-19aa6043.js → fr-ch-3f656295.js} +19 -19
  272. package/dist/cjs/{globalAttributes-1db2eeca.js → globalAttributes-625c8efa.js} +2 -2
  273. package/dist/cjs/{guid-2813d472.js → guid-67658644.js} +1 -1
  274. package/dist/cjs/{he-72162c4d.js → he-cb7336d0.js} +19 -19
  275. package/dist/cjs/{hi-4f6491d2.js → hi-f3c85b74.js} +19 -19
  276. package/dist/cjs/{hr-a852cd23.js → hr-c6821e59.js} +19 -19
  277. package/dist/cjs/{hu-b523a700.js → hu-4e2b7bfa.js} +19 -19
  278. package/dist/cjs/{id-9e9f7234.js → id-2f6176de.js} +19 -19
  279. package/dist/cjs/{index-881fa04e.js → index-631c1935.js} +1 -1
  280. package/dist/cjs/{index-4ef3fa42.js → index-a872d5df.js} +1 -1
  281. package/dist/cjs/{index-5dab04a7.js → index-f05af83a.js} +1 -1
  282. package/dist/cjs/index.cjs.js +2 -2
  283. package/dist/cjs/{interactive-5c4c1535.js → interactive-e0c7a04c.js} +2 -2
  284. package/dist/cjs/{it-3bc00555.js → it-5f449eb7.js} +19 -19
  285. package/dist/cjs/{it-ch-16d5d7ac.js → it-ch-48290b2f.js} +19 -19
  286. package/dist/cjs/{ja-6771fb79.js → ja-ceeefc77.js} +19 -19
  287. package/dist/cjs/{key-f31e193b.js → key-1b72be47.js} +1 -1
  288. package/dist/cjs/{ko-48652d75.js → ko-240c001d.js} +19 -19
  289. package/dist/cjs/{label-d8ba7528.js → label-40e4cd77.js} +2 -2
  290. package/dist/cjs/{loadable-107a05e5.js → loadable-77539c62.js} +2 -2
  291. package/dist/cjs/loader.cjs.js +5 -5
  292. package/dist/cjs/{locale-7212ba29.js → locale-786ce6b3.js} +4 -4
  293. package/dist/cjs/{lt-d44d2cbc.js → lt-73c0e4e1.js} +19 -19
  294. package/dist/cjs/{lv-5570cadb.js → lv-b1beabb2.js} +19 -19
  295. package/dist/cjs/{math-6cc42fbd.js → math-b503dee6.js} +1 -1
  296. package/dist/cjs/{mk-85f54b97.js → mk-8f575310.js} +19 -19
  297. package/dist/cjs/{nb-2ece26f7.js → nb-7d0e6896.js} +19 -19
  298. package/dist/cjs/{nl-5f77e82b.js → nl-4d62e622.js} +19 -19
  299. package/dist/cjs/{observers-d5d839b6.js → observers-c825c70d.js} +1 -1
  300. package/dist/cjs/{openCloseComponent-627f0265.js → openCloseComponent-7235170a.js} +2 -2
  301. package/dist/cjs/{pl-3497b142.js → pl-524cca47.js} +19 -19
  302. package/dist/cjs/{pt-cb326195.js → pt-3f90bc0a.js} +19 -19
  303. package/dist/cjs/{pt-br-a36f8f67.js → pt-br-a7f9ce20.js} +19 -19
  304. package/dist/cjs/{resources-0f827835.js → resources-01ae6233.js} +1 -1
  305. package/dist/cjs/{resources-778bdf12.js → resources-5d33edb3.js} +1 -1
  306. package/dist/cjs/{resources-cda94bd0.js → resources-6d227abf.js} +1 -1
  307. package/dist/cjs/{resources-6d17ac2c.js → resources-790ebd6e.js} +1 -1
  308. package/dist/cjs/{resources-e0376306.js → resources-d5c37631.js} +1 -1
  309. package/dist/cjs/{resources-5d9e2aaf.js → resources-e8c96bce.js} +5 -5
  310. package/dist/cjs/{resources-8ea1ba99.js → resources-faeadfb6.js} +1 -1
  311. package/dist/cjs/{responsive-56071122.js → responsive-5b2e13fe.js} +1 -1
  312. package/dist/cjs/{ro-a486e9e6.js → ro-91d6df25.js} +19 -19
  313. package/dist/cjs/{ru-1c0e0117.js → ru-bea4d3be.js} +19 -19
  314. package/dist/cjs/{sk-0574a1d3.js → sk-7557e087.js} +19 -19
  315. package/dist/cjs/{sl-2a517b8d.js → sl-5ce09d71.js} +19 -19
  316. package/dist/cjs/{sortableComponent-dbe98730.js → sortableComponent-2e141c24.js} +1 -1
  317. package/dist/cjs/{sr-8d49ff1f.js → sr-9d55fff2.js} +19 -19
  318. package/dist/cjs/{sv-62089b1e.js → sv-a699c161.js} +19 -19
  319. package/dist/cjs/{t9n-2f2c7a13.js → t9n-5def0889.js} +3 -3
  320. package/dist/cjs/{th-f7a7e313.js → th-70243587.js} +19 -19
  321. package/dist/cjs/{throttle-a43800c9.js → throttle-a3cc83a5.js} +2 -2
  322. package/dist/cjs/{tr-30dbac55.js → tr-ec2e4a74.js} +19 -19
  323. package/dist/cjs/{uk-e8208346.js → uk-d79384e3.js} +19 -19
  324. package/dist/cjs/{utils-749ee45b.js → utils-13f61f3f.js} +1 -1
  325. package/dist/cjs/{utils-31177fdf.js → utils-baea4844.js} +3 -3
  326. package/dist/cjs/{vi-b0608403.js → vi-7ded95b8.js} +19 -19
  327. package/dist/cjs/{zh-cn-41831871.js → zh-cn-ad3a3ad6.js} +19 -19
  328. package/dist/cjs/{zh-hk-63347d09.js → zh-hk-91ca468a.js} +19 -19
  329. package/dist/cjs/{zh-tw-8f2635ff.js → zh-tw-ad4bd55f.js} +19 -19
  330. package/dist/collection/components/accordion/accordion.css +1 -1
  331. package/dist/collection/components/accordion/accordion.js +1 -1
  332. package/dist/collection/components/accordion-item/accordion-item.css +1 -1
  333. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  334. package/dist/collection/components/accordion-item/resources.js +1 -1
  335. package/dist/collection/components/action/action.css +1 -1
  336. package/dist/collection/components/action/action.js +1 -1
  337. package/dist/collection/components/action/resources.js +1 -1
  338. package/dist/collection/components/action-bar/action-bar.css +1 -1
  339. package/dist/collection/components/action-bar/action-bar.js +1 -1
  340. package/dist/collection/components/action-bar/resources.js +1 -1
  341. package/dist/collection/components/action-bar/utils.js +1 -1
  342. package/dist/collection/components/action-group/action-group.css +1 -1
  343. package/dist/collection/components/action-group/action-group.js +1 -1
  344. package/dist/collection/components/action-group/resources.js +1 -1
  345. package/dist/collection/components/action-menu/action-menu.css +1 -1
  346. package/dist/collection/components/action-menu/action-menu.js +1 -1
  347. package/dist/collection/components/action-menu/resources.js +1 -1
  348. package/dist/collection/components/action-pad/action-pad.css +1 -1
  349. package/dist/collection/components/action-pad/action-pad.js +1 -1
  350. package/dist/collection/components/action-pad/resources.js +1 -1
  351. package/dist/collection/components/alert/alert.css +1 -1
  352. package/dist/collection/components/alert/alert.js +1 -1
  353. package/dist/collection/components/alert/resources.js +1 -1
  354. package/dist/collection/components/avatar/avatar.css +1 -1
  355. package/dist/collection/components/avatar/avatar.js +1 -1
  356. package/dist/collection/components/avatar/utils.js +1 -1
  357. package/dist/collection/components/block/block.css +1 -1
  358. package/dist/collection/components/block/block.js +1 -1
  359. package/dist/collection/components/block/resources.js +1 -1
  360. package/dist/collection/components/block-section/block-section.css +1 -1
  361. package/dist/collection/components/block-section/block-section.js +1 -1
  362. package/dist/collection/components/block-section/resources.js +1 -1
  363. package/dist/collection/components/button/button.css +1 -1
  364. package/dist/collection/components/button/button.js +1 -1
  365. package/dist/collection/components/button/resources.js +1 -1
  366. package/dist/collection/components/card/card.css +1 -1
  367. package/dist/collection/components/card/card.js +1 -1
  368. package/dist/collection/components/card/resources.js +1 -1
  369. package/dist/collection/components/checkbox/checkbox.css +1 -1
  370. package/dist/collection/components/checkbox/checkbox.js +1 -1
  371. package/dist/collection/components/chip/chip.css +1 -1
  372. package/dist/collection/components/chip/chip.js +1 -1
  373. package/dist/collection/components/chip/resources.js +1 -1
  374. package/dist/collection/components/chip-group/chip-group.css +1 -1
  375. package/dist/collection/components/chip-group/chip-group.js +1 -1
  376. package/dist/collection/components/color-picker/color-picker.css +1 -1
  377. package/dist/collection/components/color-picker/color-picker.js +1 -1
  378. package/dist/collection/components/color-picker/resources.js +1 -1
  379. package/dist/collection/components/color-picker/utils.js +1 -1
  380. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +1 -1
  381. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  382. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  383. package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +1 -1
  384. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  385. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  386. package/dist/collection/components/combobox/combobox.css +1 -2
  387. package/dist/collection/components/combobox/combobox.js +23 -23
  388. package/dist/collection/components/combobox/resources.js +1 -1
  389. package/dist/collection/components/combobox/utils.js +1 -1
  390. package/dist/collection/components/combobox-item/combobox-item.css +1 -1
  391. package/dist/collection/components/combobox-item/combobox-item.js +2 -3
  392. package/dist/collection/components/combobox-item/resources.js +1 -1
  393. package/dist/collection/components/combobox-item-group/combobox-item-group.css +1 -1
  394. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  395. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  396. package/dist/collection/components/date-picker/date-picker.css +1 -1
  397. package/dist/collection/components/date-picker/date-picker.js +1 -1
  398. package/dist/collection/components/date-picker/resources.js +1 -1
  399. package/dist/collection/components/date-picker/utils.js +1 -1
  400. package/dist/collection/components/date-picker-day/date-picker-day.css +1 -1
  401. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  402. package/dist/collection/components/date-picker-month/date-picker-month.css +1 -1
  403. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  404. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -1
  405. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  406. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  407. package/dist/collection/components/dropdown/dropdown.css +1 -1
  408. package/dist/collection/components/dropdown/dropdown.js +1 -1
  409. package/dist/collection/components/dropdown/resources.js +1 -1
  410. package/dist/collection/components/dropdown-group/dropdown-group.css +1 -1
  411. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  412. package/dist/collection/components/dropdown-item/dropdown-item.css +1 -1
  413. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  414. package/dist/collection/components/dropdown-item/resources.js +1 -1
  415. package/dist/collection/components/fab/fab.css +1 -1
  416. package/dist/collection/components/fab/fab.js +1 -1
  417. package/dist/collection/components/fab/resources.js +1 -1
  418. package/dist/collection/components/filter/filter.css +1 -1
  419. package/dist/collection/components/filter/filter.js +2 -2
  420. package/dist/collection/components/filter/resources.js +1 -1
  421. package/dist/collection/components/flow/flow.css +1 -1
  422. package/dist/collection/components/flow/flow.js +1 -1
  423. package/dist/collection/components/flow/resources.js +1 -1
  424. package/dist/collection/components/flow-item/flow-item.css +1 -1
  425. package/dist/collection/components/flow-item/flow-item.js +1 -1
  426. package/dist/collection/components/flow-item/resources.js +1 -1
  427. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  428. package/dist/collection/components/functional/FloatingArrow.js +1 -1
  429. package/dist/collection/components/functional/Heading.js +1 -1
  430. package/dist/collection/components/functional/XButton.js +3 -2
  431. package/dist/collection/components/graph/graph.css +1 -1
  432. package/dist/collection/components/graph/graph.js +1 -1
  433. package/dist/collection/components/graph/util.js +1 -1
  434. package/dist/collection/components/handle/handle.css +1 -1
  435. package/dist/collection/components/handle/handle.js +1 -1
  436. package/dist/collection/components/handle/resources.js +1 -1
  437. package/dist/collection/components/icon/icon.css +1 -1
  438. package/dist/collection/components/icon/icon.js +1 -1
  439. package/dist/collection/components/icon/resources.js +1 -1
  440. package/dist/collection/components/icon/utils.js +1 -1
  441. package/dist/collection/components/inline-editable/inline-editable.css +1 -1
  442. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  443. package/dist/collection/components/inline-editable/resources.js +1 -1
  444. package/dist/collection/components/input/input.css +1 -1
  445. package/dist/collection/components/input/input.js +1 -1
  446. package/dist/collection/components/input/resources.js +1 -1
  447. package/dist/collection/components/input-date-picker/input-date-picker.css +1 -1
  448. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  449. package/dist/collection/components/input-date-picker/resources.js +1 -1
  450. package/dist/collection/components/input-date-picker/utils.js +1 -1
  451. package/dist/collection/components/input-message/input-message.css +1 -1
  452. package/dist/collection/components/input-message/input-message.js +1 -1
  453. package/dist/collection/components/input-message/interfaces.js +1 -1
  454. package/dist/collection/components/input-number/input-number.css +1 -1
  455. package/dist/collection/components/input-number/input-number.js +1 -1
  456. package/dist/collection/components/input-number/resources.js +1 -1
  457. package/dist/collection/components/input-text/input-text.css +1 -1
  458. package/dist/collection/components/input-text/input-text.js +1 -1
  459. package/dist/collection/components/input-text/resources.js +1 -1
  460. package/dist/collection/components/input-time-picker/input-time-picker.css +1 -1
  461. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  462. package/dist/collection/components/input-time-picker/resources.js +1 -1
  463. package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages.json +3 -3
  464. package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_en.json +3 -3
  465. package/dist/collection/components/input-time-zone/input-time-zone.css +1 -1
  466. package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
  467. package/dist/collection/components/input-time-zone/utils.js +1 -1
  468. package/dist/collection/components/label/label.css +1 -1
  469. package/dist/collection/components/label/label.js +1 -1
  470. package/dist/collection/components/label/resources.js +1 -1
  471. package/dist/collection/components/link/link.css +1 -1
  472. package/dist/collection/components/link/link.js +1 -1
  473. package/dist/collection/components/list/list.css +1 -1
  474. package/dist/collection/components/list/list.js +1 -1
  475. package/dist/collection/components/list/resources.js +1 -1
  476. package/dist/collection/components/list-item/list-item.css +1 -1
  477. package/dist/collection/components/list-item/list-item.js +1 -1
  478. package/dist/collection/components/list-item/resources.js +1 -1
  479. package/dist/collection/components/list-item/utils.js +1 -1
  480. package/dist/collection/components/list-item-group/list-item-group.css +1 -1
  481. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  482. package/dist/collection/components/list-item-group/resources.js +1 -1
  483. package/dist/collection/components/loader/loader.css +1 -1
  484. package/dist/collection/components/loader/loader.js +1 -1
  485. package/dist/collection/components/menu/menu.css +1 -1
  486. package/dist/collection/components/menu/menu.js +1 -1
  487. package/dist/collection/components/menu-item/menu-item.css +1 -1
  488. package/dist/collection/components/menu-item/menu-item.js +1 -1
  489. package/dist/collection/components/menu-item/resources.js +1 -1
  490. package/dist/collection/components/meter/meter.css +1 -1
  491. package/dist/collection/components/meter/meter.js +1 -1
  492. package/dist/collection/components/meter/resources.js +1 -1
  493. package/dist/collection/components/modal/modal.css +1 -1
  494. package/dist/collection/components/modal/modal.js +1 -1
  495. package/dist/collection/components/modal/resources.js +1 -1
  496. package/dist/collection/components/navigation/navigation.css +1 -1
  497. package/dist/collection/components/navigation/navigation.js +1 -1
  498. package/dist/collection/components/navigation/resources.js +1 -1
  499. package/dist/collection/components/navigation-logo/navigation-logo.css +1 -1
  500. package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
  501. package/dist/collection/components/navigation-logo/resources.js +1 -1
  502. package/dist/collection/components/navigation-user/navigation-user.css +1 -1
  503. package/dist/collection/components/navigation-user/navigation-user.js +1 -1
  504. package/dist/collection/components/navigation-user/resources.js +1 -1
  505. package/dist/collection/components/notice/notice.css +1 -1
  506. package/dist/collection/components/notice/notice.js +1 -1
  507. package/dist/collection/components/notice/resources.js +1 -1
  508. package/dist/collection/components/option/option.css +1 -1
  509. package/dist/collection/components/option/option.js +1 -1
  510. package/dist/collection/components/option-group/option-group.css +1 -1
  511. package/dist/collection/components/option-group/option-group.js +1 -1
  512. package/dist/collection/components/pagination/pagination.css +1 -1
  513. package/dist/collection/components/pagination/pagination.js +1 -1
  514. package/dist/collection/components/pagination/resources.js +1 -1
  515. package/dist/collection/components/panel/panel.css +1 -1
  516. package/dist/collection/components/panel/panel.js +1 -1
  517. package/dist/collection/components/panel/resources.js +1 -1
  518. package/dist/collection/components/pick-list/pick-list.css +1 -1
  519. package/dist/collection/components/pick-list/pick-list.js +1 -1
  520. package/dist/collection/components/pick-list/resources.js +1 -1
  521. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  522. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  523. package/dist/collection/components/pick-list-group/pick-list-group.css +1 -1
  524. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  525. package/dist/collection/components/pick-list-group/resources.js +1 -1
  526. package/dist/collection/components/pick-list-item/pick-list-item.css +1 -1
  527. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  528. package/dist/collection/components/pick-list-item/resources.js +1 -1
  529. package/dist/collection/components/popover/PopoverManager.js +1 -1
  530. package/dist/collection/components/popover/popover.css +1 -1
  531. package/dist/collection/components/popover/popover.js +1 -1
  532. package/dist/collection/components/popover/resources.js +1 -1
  533. package/dist/collection/components/progress/progress.css +1 -1
  534. package/dist/collection/components/progress/progress.js +1 -1
  535. package/dist/collection/components/radio-button/radio-button.css +1 -1
  536. package/dist/collection/components/radio-button/radio-button.js +1 -1
  537. package/dist/collection/components/radio-button/resources.js +1 -1
  538. package/dist/collection/components/radio-button-group/radio-button-group.css +1 -1
  539. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  540. package/dist/collection/components/rating/function/star.js +1 -1
  541. package/dist/collection/components/rating/rating.css +1 -1
  542. package/dist/collection/components/rating/rating.js +1 -1
  543. package/dist/collection/components/resources.js +1 -1
  544. package/dist/collection/components/scrim/resources.js +1 -1
  545. package/dist/collection/components/scrim/scrim.css +1 -1
  546. package/dist/collection/components/scrim/scrim.js +1 -1
  547. package/dist/collection/components/segmented-control/segmented-control.css +1 -1
  548. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  549. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  550. package/dist/collection/components/segmented-control-item/segmented-control-item.css +1 -1
  551. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  552. package/dist/collection/components/select/resources.js +1 -1
  553. package/dist/collection/components/select/select.css +1 -1
  554. package/dist/collection/components/select/select.js +1 -1
  555. package/dist/collection/components/sheet/resources.js +1 -1
  556. package/dist/collection/components/sheet/sheet.css +1 -1
  557. package/dist/collection/components/sheet/sheet.js +1 -1
  558. package/dist/collection/components/shell/resources.js +1 -1
  559. package/dist/collection/components/shell/shell.css +1 -1
  560. package/dist/collection/components/shell/shell.js +1 -1
  561. package/dist/collection/components/shell-center-row/resources.js +1 -1
  562. package/dist/collection/components/shell-center-row/shell-center-row.css +1 -1
  563. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  564. package/dist/collection/components/shell-panel/resources.js +1 -1
  565. package/dist/collection/components/shell-panel/shell-panel.css +1 -1
  566. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  567. package/dist/collection/components/slider/resources.js +1 -1
  568. package/dist/collection/components/slider/slider.css +1 -1
  569. package/dist/collection/components/slider/slider.js +1 -1
  570. package/dist/collection/components/sortable-list/resources.js +1 -1
  571. package/dist/collection/components/sortable-list/sortable-list.css +1 -1
  572. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  573. package/dist/collection/components/split-button/resources.js +1 -1
  574. package/dist/collection/components/split-button/split-button.css +1 -1
  575. package/dist/collection/components/split-button/split-button.js +1 -1
  576. package/dist/collection/components/stack/resources.js +1 -1
  577. package/dist/collection/components/stack/stack.css +1 -1
  578. package/dist/collection/components/stack/stack.js +1 -1
  579. package/dist/collection/components/stepper/stepper.css +1 -1
  580. package/dist/collection/components/stepper/stepper.js +1 -1
  581. package/dist/collection/components/stepper-item/resources.js +1 -1
  582. package/dist/collection/components/stepper-item/stepper-item.css +1 -1
  583. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  584. package/dist/collection/components/switch/switch.css +1 -1
  585. package/dist/collection/components/switch/switch.js +1 -1
  586. package/dist/collection/components/tab/resources.js +9 -0
  587. package/dist/collection/components/tab/tab.css +28 -28
  588. package/dist/collection/components/tab/tab.js +6 -8
  589. package/dist/collection/components/tab-nav/resources.js +8 -0
  590. package/dist/collection/components/tab-nav/tab-nav.css +24 -7
  591. package/dist/collection/components/tab-nav/tab-nav.js +16 -13
  592. package/dist/collection/components/tab-title/resources.js +2 -2
  593. package/dist/collection/components/tab-title/tab-title.css +24 -25
  594. package/dist/collection/components/tab-title/tab-title.js +13 -17
  595. package/dist/collection/components/table/resources.js +1 -1
  596. package/dist/collection/components/table/table.css +1 -1
  597. package/dist/collection/components/table/table.js +1 -1
  598. package/dist/collection/components/table-cell/resources.js +1 -1
  599. package/dist/collection/components/table-cell/table-cell.css +1 -1
  600. package/dist/collection/components/table-cell/table-cell.js +1 -1
  601. package/dist/collection/components/table-header/resources.js +1 -1
  602. package/dist/collection/components/table-header/table-header.css +1 -1
  603. package/dist/collection/components/table-header/table-header.js +1 -1
  604. package/dist/collection/components/table-row/table-row.css +1 -1
  605. package/dist/collection/components/table-row/table-row.js +1 -1
  606. package/dist/collection/components/tabs/resources.js +1 -1
  607. package/dist/collection/components/tabs/tabs.css +1 -1
  608. package/dist/collection/components/tabs/tabs.js +53 -3
  609. package/dist/collection/components/text-area/resources.js +1 -1
  610. package/dist/collection/components/text-area/text-area.css +1 -1
  611. package/dist/collection/components/text-area/text-area.js +1 -1
  612. package/dist/collection/components/tile/resources.js +1 -1
  613. package/dist/collection/components/tile/tile.css +1 -1
  614. package/dist/collection/components/tile/tile.js +1 -1
  615. package/dist/collection/components/tile-select/resources.js +1 -1
  616. package/dist/collection/components/tile-select/tile-select.css +1 -1
  617. package/dist/collection/components/tile-select/tile-select.js +1 -1
  618. package/dist/collection/components/tile-select-group/tile-select-group.css +1 -1
  619. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  620. package/dist/collection/components/time-picker/resources.js +1 -1
  621. package/dist/collection/components/time-picker/time-picker.css +1 -1
  622. package/dist/collection/components/time-picker/time-picker.js +1 -1
  623. package/dist/collection/components/tip/resources.js +1 -1
  624. package/dist/collection/components/tip/tip.css +1 -1
  625. package/dist/collection/components/tip/tip.js +1 -1
  626. package/dist/collection/components/tip-group/tip-group.css +1 -1
  627. package/dist/collection/components/tip-group/tip-group.js +1 -1
  628. package/dist/collection/components/tip-manager/resources.js +1 -1
  629. package/dist/collection/components/tip-manager/tip-manager.css +1 -1
  630. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  631. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  632. package/dist/collection/components/tooltip/resources.js +1 -1
  633. package/dist/collection/components/tooltip/tooltip.css +1 -1
  634. package/dist/collection/components/tooltip/tooltip.js +1 -1
  635. package/dist/collection/components/tooltip/utils.js +1 -1
  636. package/dist/collection/components/tree/tree.css +1 -1
  637. package/dist/collection/components/tree/tree.js +1 -1
  638. package/dist/collection/components/tree/utils.js +1 -1
  639. package/dist/collection/components/tree-item/resources.js +1 -1
  640. package/dist/collection/components/tree-item/tree-item.css +1 -1
  641. package/dist/collection/components/tree-item/tree-item.js +1 -1
  642. package/dist/collection/components/value-list/resources.js +1 -1
  643. package/dist/collection/components/value-list/utils.js +1 -1
  644. package/dist/collection/components/value-list/value-list.css +1 -1
  645. package/dist/collection/components/value-list/value-list.js +1 -1
  646. package/dist/collection/components/value-list-item/resources.js +1 -1
  647. package/dist/collection/components/value-list-item/value-list-item.css +1 -1
  648. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  649. package/dist/collection/index.js +1 -1
  650. package/dist/collection/utils/array.js +1 -1
  651. package/dist/collection/utils/browser.js +1 -1
  652. package/dist/collection/utils/component.js +1 -1
  653. package/dist/collection/utils/conditionalSlot.js +1 -1
  654. package/dist/collection/utils/config.js +1 -1
  655. package/dist/collection/utils/date.js +1 -1
  656. package/dist/collection/utils/dom.js +1 -1
  657. package/dist/collection/utils/filter.js +1 -1
  658. package/dist/collection/utils/floating-ui.js +1 -1
  659. package/dist/collection/utils/focusTrapComponent.js +1 -1
  660. package/dist/collection/utils/form.js +1 -1
  661. package/dist/collection/utils/globalAttributes.js +1 -1
  662. package/dist/collection/utils/globalScript.js +1 -1
  663. package/dist/collection/utils/guid.js +1 -1
  664. package/dist/collection/utils/interactive.js +1 -1
  665. package/dist/collection/utils/key.js +1 -1
  666. package/dist/collection/utils/label.js +1 -1
  667. package/dist/collection/utils/loadable.js +1 -1
  668. package/dist/collection/utils/locale.js +1 -1
  669. package/dist/collection/utils/math.js +1 -1
  670. package/dist/collection/utils/mode.js +1 -1
  671. package/dist/collection/utils/number.js +1 -1
  672. package/dist/collection/utils/observers.js +1 -1
  673. package/dist/collection/utils/openCloseComponent.js +1 -1
  674. package/dist/collection/utils/resources.js +1 -1
  675. package/dist/collection/utils/responsive.js +1 -1
  676. package/dist/collection/utils/sortableComponent.js +1 -1
  677. package/dist/collection/utils/t9n.js +1 -1
  678. package/dist/collection/utils/time.js +1 -1
  679. package/dist/components/ExpandToggle.js +1 -1
  680. package/dist/components/FloatingArrow.js +1 -1
  681. package/dist/components/Heading.js +1 -1
  682. package/dist/components/action-group.js +1 -1
  683. package/dist/components/action-menu.js +1 -1
  684. package/dist/components/action.js +1 -1
  685. package/dist/components/ar.js +1 -1
  686. package/dist/components/array.js +1 -1
  687. package/dist/components/avatar.js +1 -1
  688. package/dist/components/bg.js +1 -1
  689. package/dist/components/bs.js +1 -1
  690. package/dist/components/button.js +1 -1
  691. package/dist/components/ca.js +1 -1
  692. package/dist/components/calcite-accordion-item.js +1 -1
  693. package/dist/components/calcite-accordion.js +1 -1
  694. package/dist/components/calcite-action-bar.js +1 -1
  695. package/dist/components/calcite-action-group.js +1 -1
  696. package/dist/components/calcite-action-menu.js +1 -1
  697. package/dist/components/calcite-action-pad.js +1 -1
  698. package/dist/components/calcite-action.js +1 -1
  699. package/dist/components/calcite-alert.js +2 -2
  700. package/dist/components/calcite-avatar.js +1 -1
  701. package/dist/components/calcite-block-section.js +1 -1
  702. package/dist/components/calcite-block.js +1 -1
  703. package/dist/components/calcite-button.js +1 -1
  704. package/dist/components/calcite-card.js +1 -1
  705. package/dist/components/calcite-checkbox.js +1 -1
  706. package/dist/components/calcite-chip-group.js +1 -1
  707. package/dist/components/calcite-chip.js +1 -1
  708. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  709. package/dist/components/calcite-color-picker-swatch.js +1 -1
  710. package/dist/components/calcite-color-picker.js +1 -1
  711. package/dist/components/calcite-combobox-item-group.js +1 -1
  712. package/dist/components/calcite-combobox-item.js +1 -1
  713. package/dist/components/calcite-combobox.js +1 -1
  714. package/dist/components/calcite-date-picker-day.js +1 -1
  715. package/dist/components/calcite-date-picker-month-header.js +1 -1
  716. package/dist/components/calcite-date-picker-month.js +1 -1
  717. package/dist/components/calcite-date-picker.js +1 -1
  718. package/dist/components/calcite-dropdown-group.js +1 -1
  719. package/dist/components/calcite-dropdown-item.js +1 -1
  720. package/dist/components/calcite-dropdown.js +1 -1
  721. package/dist/components/calcite-fab.js +1 -1
  722. package/dist/components/calcite-filter.js +1 -1
  723. package/dist/components/calcite-flow-item.js +1 -1
  724. package/dist/components/calcite-flow.js +1 -1
  725. package/dist/components/calcite-graph.js +1 -1
  726. package/dist/components/calcite-handle.js +1 -1
  727. package/dist/components/calcite-icon.js +1 -1
  728. package/dist/components/calcite-inline-editable.js +1 -1
  729. package/dist/components/calcite-input-date-picker.js +1 -1
  730. package/dist/components/calcite-input-message.js +1 -1
  731. package/dist/components/calcite-input-number.js +1 -1
  732. package/dist/components/calcite-input-text.js +1 -1
  733. package/dist/components/calcite-input-time-picker.js +1 -1
  734. package/dist/components/calcite-input-time-zone.js +1 -1
  735. package/dist/components/calcite-input.js +1 -1
  736. package/dist/components/calcite-label.js +1 -1
  737. package/dist/components/calcite-link.js +1 -1
  738. package/dist/components/calcite-list-item-group.js +1 -1
  739. package/dist/components/calcite-list-item.js +1 -1
  740. package/dist/components/calcite-list.js +1 -1
  741. package/dist/components/calcite-loader.js +1 -1
  742. package/dist/components/calcite-menu-item.js +1 -1
  743. package/dist/components/calcite-menu.js +1 -1
  744. package/dist/components/calcite-meter.js +1 -1
  745. package/dist/components/calcite-modal.js +1 -1
  746. package/dist/components/calcite-navigation-logo.js +1 -1
  747. package/dist/components/calcite-navigation-user.js +1 -1
  748. package/dist/components/calcite-navigation.js +1 -1
  749. package/dist/components/calcite-notice.js +1 -1
  750. package/dist/components/calcite-option-group.js +1 -1
  751. package/dist/components/calcite-option.js +1 -1
  752. package/dist/components/calcite-pagination.js +1 -1
  753. package/dist/components/calcite-panel.js +1 -1
  754. package/dist/components/calcite-pick-list-group.js +1 -1
  755. package/dist/components/calcite-pick-list-item.js +1 -1
  756. package/dist/components/calcite-pick-list.js +1 -1
  757. package/dist/components/calcite-popover.js +1 -1
  758. package/dist/components/calcite-progress.js +1 -1
  759. package/dist/components/calcite-radio-button-group.js +1 -1
  760. package/dist/components/calcite-radio-button.js +1 -1
  761. package/dist/components/calcite-rating.js +1 -1
  762. package/dist/components/calcite-scrim.js +1 -1
  763. package/dist/components/calcite-segmented-control-item.js +1 -1
  764. package/dist/components/calcite-segmented-control.js +1 -1
  765. package/dist/components/calcite-select.js +1 -1
  766. package/dist/components/calcite-sheet.js +1 -1
  767. package/dist/components/calcite-shell-center-row.js +1 -1
  768. package/dist/components/calcite-shell-panel.js +1 -1
  769. package/dist/components/calcite-shell.js +1 -1
  770. package/dist/components/calcite-slider.js +1 -1
  771. package/dist/components/calcite-sortable-list.js +1 -1
  772. package/dist/components/calcite-split-button.js +1 -1
  773. package/dist/components/calcite-stack.js +1 -1
  774. package/dist/components/calcite-stepper-item.js +1 -1
  775. package/dist/components/calcite-stepper.js +1 -1
  776. package/dist/components/calcite-switch.js +1 -1
  777. package/dist/components/calcite-tab-nav.js +1 -1
  778. package/dist/components/calcite-tab-title.js +1 -1
  779. package/dist/components/calcite-tab.js +1 -1
  780. package/dist/components/calcite-table-cell.js +1 -1
  781. package/dist/components/calcite-table-header.js +1 -1
  782. package/dist/components/calcite-table-row.js +1 -1
  783. package/dist/components/calcite-table.js +1 -1
  784. package/dist/components/calcite-tabs.js +1 -1
  785. package/dist/components/calcite-text-area.js +1 -1
  786. package/dist/components/calcite-tile-select-group.js +1 -1
  787. package/dist/components/calcite-tile-select.js +1 -1
  788. package/dist/components/calcite-tile.js +1 -1
  789. package/dist/components/calcite-time-picker.js +1 -1
  790. package/dist/components/calcite-tip-group.js +1 -1
  791. package/dist/components/calcite-tip-manager.js +1 -1
  792. package/dist/components/calcite-tip.js +1 -1
  793. package/dist/components/calcite-tooltip.js +1 -1
  794. package/dist/components/calcite-tree-item.js +1 -1
  795. package/dist/components/calcite-tree.js +1 -1
  796. package/dist/components/calcite-value-list-item.js +1 -1
  797. package/dist/components/calcite-value-list.js +1 -1
  798. package/dist/components/checkbox.js +1 -1
  799. package/dist/components/chip.js +1 -1
  800. package/dist/components/color-picker-hex-input.js +1 -1
  801. package/dist/components/color-picker-swatch.js +1 -1
  802. package/dist/components/combobox-item.js +2 -3
  803. package/dist/components/combobox.js +25 -25
  804. package/dist/components/component.js +1 -1
  805. package/dist/components/conditionalSlot.js +1 -1
  806. package/dist/components/cs.js +1 -1
  807. package/dist/components/da.js +1 -1
  808. package/dist/components/date-picker-day.js +1 -1
  809. package/dist/components/date-picker-month-header.js +1 -1
  810. package/dist/components/date-picker-month.js +1 -1
  811. package/dist/components/date-picker.js +1 -1
  812. package/dist/components/date.js +1 -1
  813. package/dist/components/de-at.js +1 -1
  814. package/dist/components/de-ch.js +1 -1
  815. package/dist/components/de.js +1 -1
  816. package/dist/components/debounce.js +1 -1
  817. package/dist/components/dom.js +2 -16
  818. package/dist/components/dropdown.js +1 -1
  819. package/dist/components/el.js +1 -1
  820. package/dist/components/en-au.js +1 -1
  821. package/dist/components/en-ca.js +1 -1
  822. package/dist/components/en-gb.js +1 -1
  823. package/dist/components/es-mx.js +1 -1
  824. package/dist/components/es.js +1 -1
  825. package/dist/components/et.js +1 -1
  826. package/dist/components/fi.js +1 -1
  827. package/dist/components/filter.js +2 -2
  828. package/dist/components/filter2.js +1 -1
  829. package/dist/components/floating-ui.js +1 -1
  830. package/dist/components/focusTrapComponent.js +2 -2
  831. package/dist/components/form.js +1 -1
  832. package/dist/components/fr-ch.js +1 -1
  833. package/dist/components/fr.js +1 -1
  834. package/dist/components/globalAttributes.js +1 -1
  835. package/dist/components/graph.js +1 -1
  836. package/dist/components/guid.js +1 -1
  837. package/dist/components/handle.js +1 -1
  838. package/dist/components/he.js +1 -1
  839. package/dist/components/hi.js +1 -1
  840. package/dist/components/hr.js +1 -1
  841. package/dist/components/hu.js +1 -1
  842. package/dist/components/icon.js +1 -1
  843. package/dist/components/id.js +1 -1
  844. package/dist/components/index.js +1 -1
  845. package/dist/components/index2.js +1 -1
  846. package/dist/components/index3.js +1 -1
  847. package/dist/components/index4.js +1 -1
  848. package/dist/components/input-number.js +1 -1
  849. package/dist/components/input-text.js +1 -1
  850. package/dist/components/input.js +1 -1
  851. package/dist/components/interactive.js +1 -1
  852. package/dist/components/it-ch.js +1 -1
  853. package/dist/components/it.js +1 -1
  854. package/dist/components/ja.js +1 -1
  855. package/dist/components/key.js +1 -1
  856. package/dist/components/ko.js +1 -1
  857. package/dist/components/label.js +1 -1
  858. package/dist/components/label2.js +2 -2
  859. package/dist/components/link.js +1 -1
  860. package/dist/components/loadable.js +1 -1
  861. package/dist/components/loader.js +1 -1
  862. package/dist/components/locale.js +2 -2
  863. package/dist/components/lt.js +1 -1
  864. package/dist/components/lv.js +1 -1
  865. package/dist/components/math.js +1 -1
  866. package/dist/components/menu.js +1 -1
  867. package/dist/components/mk.js +1 -1
  868. package/dist/components/nb.js +1 -1
  869. package/dist/components/nl.js +1 -1
  870. package/dist/components/observers.js +1 -1
  871. package/dist/components/openCloseComponent.js +1 -1
  872. package/dist/components/pagination.js +1 -1
  873. package/dist/components/panel.js +1 -1
  874. package/dist/components/pick-list-item.js +1 -1
  875. package/dist/components/pl.js +1 -1
  876. package/dist/components/popover.js +1 -1
  877. package/dist/components/progress.js +1 -1
  878. package/dist/components/pt-br.js +1 -1
  879. package/dist/components/pt.js +1 -1
  880. package/dist/components/resources.js +1 -1
  881. package/dist/components/resources2.js +1 -1
  882. package/dist/components/resources3.js +1 -1
  883. package/dist/components/resources4.js +1 -1
  884. package/dist/components/responsive.js +1 -1
  885. package/dist/components/ro.js +1 -1
  886. package/dist/components/ru.js +1 -1
  887. package/dist/components/scrim.js +1 -1
  888. package/dist/components/shared-list-render.js +1 -1
  889. package/dist/components/sk.js +1 -1
  890. package/dist/components/sl.js +1 -1
  891. package/dist/components/sortableComponent.js +1 -1
  892. package/dist/components/sr.js +1 -1
  893. package/dist/components/stack.js +1 -1
  894. package/dist/components/sv.js +1 -1
  895. package/dist/components/switch.js +1 -1
  896. package/dist/components/t9n.js +1 -1
  897. package/dist/components/tab-nav.js +16 -10
  898. package/dist/components/tab-title.js +9 -15
  899. package/dist/components/tab.js +9 -7
  900. package/dist/components/table-cell.js +1 -1
  901. package/dist/components/table-header.js +1 -1
  902. package/dist/components/tabs.js +46 -1
  903. package/dist/components/th.js +1 -1
  904. package/dist/components/throttle.js +1 -1
  905. package/dist/components/tile.js +1 -1
  906. package/dist/components/time-picker.js +1 -1
  907. package/dist/components/tr.js +1 -1
  908. package/dist/components/uk.js +1 -1
  909. package/dist/components/utils.js +1 -1
  910. package/dist/components/utils2.js +1 -1
  911. package/dist/components/utils3.js +1 -1
  912. package/dist/components/vi.js +1 -1
  913. package/dist/components/zh-cn.js +1 -1
  914. package/dist/components/zh-hk.js +1 -1
  915. package/dist/components/zh-tw.js +1 -1
  916. package/dist/esm/{ExpandToggle-bbb02721.js → ExpandToggle-3c49d639.js} +5 -5
  917. package/dist/esm/{FloatingArrow-d7d7007c.js → FloatingArrow-b99544af.js} +2 -2
  918. package/dist/esm/{Heading-801b555e.js → Heading-8274015d.js} +2 -2
  919. package/dist/esm/{app-globals-339b9630.js → app-globals-a400dd61.js} +2 -2
  920. package/dist/esm/{ar-17fb35e1.js → ar-0d24ba19.js} +19 -19
  921. package/dist/esm/{array-e4659a40.js → array-4078e4e8.js} +1 -1
  922. package/dist/esm/{bg-29e807de.js → bg-41f0a344.js} +19 -19
  923. package/dist/esm/{browser-95616b47.js → browser-6b1c93d7.js} +1 -1
  924. package/dist/esm/{bs-601b17f0.js → bs-9fb6cb20.js} +19 -19
  925. package/dist/esm/{ca-db0d2bb9.js → ca-02763ffe.js} +19 -19
  926. package/dist/esm/calcite-accordion_2.entry.js +8 -8
  927. package/dist/esm/calcite-action-bar.entry.js +15 -15
  928. package/dist/esm/calcite-action-group.entry.js +13 -13
  929. package/dist/esm/calcite-action-menu.entry.js +9 -9
  930. package/dist/esm/calcite-action-pad.entry.js +14 -14
  931. package/dist/esm/calcite-action.entry.js +13 -13
  932. package/dist/esm/calcite-alert.entry.js +15 -15
  933. package/dist/esm/calcite-avatar.entry.js +6 -6
  934. package/dist/esm/calcite-block_2.entry.js +15 -15
  935. package/dist/esm/calcite-button.entry.js +16 -16
  936. package/dist/esm/calcite-card.entry.js +10 -10
  937. package/dist/esm/calcite-checkbox.entry.js +11 -11
  938. package/dist/esm/calcite-chip-group.entry.js +9 -9
  939. package/dist/esm/calcite-chip.entry.js +14 -14
  940. package/dist/esm/calcite-color-picker_3.entry.js +16 -16
  941. package/dist/esm/calcite-combobox_3.entry.js +44 -46
  942. package/dist/esm/calcite-date-picker_4.entry.js +15 -15
  943. package/dist/esm/calcite-dropdown_3.entry.js +14 -14
  944. package/dist/esm/calcite-fab.entry.js +8 -8
  945. package/dist/esm/calcite-filter.entry.js +15 -15
  946. package/dist/esm/calcite-flow-item.entry.js +13 -13
  947. package/dist/esm/calcite-flow.entry.js +4 -4
  948. package/dist/esm/calcite-graph_2.entry.js +14 -14
  949. package/dist/esm/calcite-handle.entry.js +10 -10
  950. package/dist/esm/calcite-icon.entry.js +6 -6
  951. package/dist/esm/calcite-inline-editable.entry.js +13 -13
  952. package/dist/esm/calcite-input-date-picker.entry.js +20 -20
  953. package/dist/esm/calcite-input-message.entry.js +5 -5
  954. package/dist/esm/calcite-input-number.entry.js +15 -15
  955. package/dist/esm/calcite-input-text.entry.js +15 -15
  956. package/dist/esm/{calcite-input-time-picker.calcite-time-picker-7cb0ee1f.js → calcite-input-time-picker.calcite-time-picker-b4438756.js} +63 -63
  957. package/dist/esm/calcite-input-time-picker_2.entry.js +19 -19
  958. package/dist/esm/calcite-input-time-zone.entry.js +16 -16
  959. package/dist/esm/calcite-input.entry.js +15 -15
  960. package/dist/esm/calcite-label.entry.js +6 -6
  961. package/dist/esm/calcite-link.entry.js +8 -8
  962. package/dist/esm/calcite-list_3.entry.js +15 -15
  963. package/dist/esm/calcite-loader.entry.js +3 -3
  964. package/dist/esm/calcite-menu_2.entry.js +11 -11
  965. package/dist/esm/calcite-meter.entry.js +10 -10
  966. package/dist/esm/calcite-modal.entry.js +14 -14
  967. package/dist/esm/calcite-navigation_3.entry.js +6 -6
  968. package/dist/esm/calcite-notice.entry.js +14 -14
  969. package/dist/esm/calcite-option_3.entry.js +12 -12
  970. package/dist/esm/calcite-pagination.entry.js +12 -12
  971. package/dist/esm/calcite-panel.entry.js +15 -15
  972. package/dist/esm/calcite-pick-list_3.entry.js +17 -17
  973. package/dist/esm/calcite-popover.entry.js +17 -17
  974. package/dist/esm/calcite-progress.entry.js +5 -5
  975. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  976. package/dist/esm/calcite-radio-button.entry.js +11 -11
  977. package/dist/esm/calcite-rating.entry.js +14 -14
  978. package/dist/esm/calcite-scrim.entry.js +9 -9
  979. package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
  980. package/dist/esm/calcite-sheet.entry.js +9 -9
  981. package/dist/esm/calcite-shell_3.entry.js +11 -11
  982. package/dist/esm/calcite-sortable-list.entry.js +9 -9
  983. package/dist/esm/calcite-split-button.entry.js +5 -5
  984. package/dist/esm/calcite-stack.entry.js +6 -6
  985. package/dist/esm/calcite-stepper_2.entry.js +12 -12
  986. package/dist/esm/calcite-switch.entry.js +11 -11
  987. package/dist/esm/calcite-tab_4.entry.js +81 -35
  988. package/dist/esm/calcite-table-cell_2.entry.js +13 -13
  989. package/dist/esm/calcite-table-row.entry.js +9 -9
  990. package/dist/esm/calcite-table.entry.js +11 -11
  991. package/dist/esm/calcite-text-area.entry.js +16 -16
  992. package/dist/esm/calcite-tile-select_2.entry.js +6 -6
  993. package/dist/esm/calcite-tile.entry.js +9 -9
  994. package/dist/esm/calcite-tip_3.entry.js +11 -11
  995. package/dist/esm/calcite-tooltip.entry.js +9 -9
  996. package/dist/esm/calcite-tree_2.entry.js +10 -10
  997. package/dist/esm/calcite-value-list_2.entry.js +17 -17
  998. package/dist/esm/calcite.js +6 -6
  999. package/dist/esm/{component-ce5d17ad.js → component-d6d13dbf.js} +1 -1
  1000. package/dist/esm/{conditionalSlot-c9701a0e.js → conditionalSlot-5bef2941.js} +3 -3
  1001. package/dist/esm/{cs-996013ab.js → cs-5e710b40.js} +19 -19
  1002. package/dist/esm/{da-711ce961.js → da-a1a6bb9b.js} +19 -19
  1003. package/dist/esm/{de-e60855b4.js → de-acd02bc2.js} +19 -19
  1004. package/dist/esm/{de-at-238f8b5c.js → de-at-8e5ec8c0.js} +19 -19
  1005. package/dist/esm/{de-ch-a4c26365.js → de-ch-375f0b07.js} +19 -19
  1006. package/dist/esm/{debounce-1a62d92d.js → debounce-686e8954.js} +1 -1
  1007. package/dist/esm/{dom-a421ce55.js → dom-9ac56900.js} +4 -18
  1008. package/dist/esm/{el-e586eec9.js → el-80e1ff0c.js} +19 -19
  1009. package/dist/esm/{en-au-68e82791.js → en-au-6077eea6.js} +19 -19
  1010. package/dist/esm/{en-ca-f4b9e9d8.js → en-ca-8511686c.js} +19 -19
  1011. package/dist/esm/{en-gb-3e14c946.js → en-gb-8144d60e.js} +19 -19
  1012. package/dist/esm/{es-dcabffb1.js → es-0462a378.js} +19 -19
  1013. package/dist/esm/{es-mx-83b5f502.js → es-mx-982091e0.js} +19 -19
  1014. package/dist/esm/{et-4bc70520.js → et-14225e6e.js} +19 -19
  1015. package/dist/esm/{fi-9128c8de.js → fi-30956ee6.js} +19 -19
  1016. package/dist/esm/{filter-93566a5e.js → filter-58f40640.js} +2 -2
  1017. package/dist/esm/{floating-ui-63dd5d72.js → floating-ui-be2d5268.js} +3 -3
  1018. package/dist/esm/{focusTrapComponent-edbf3695.js → focusTrapComponent-3b9fb942.js} +2 -2
  1019. package/dist/esm/{form-6756c63e.js → form-093f5b04.js} +3 -3
  1020. package/dist/esm/{fr-529f2c27.js → fr-4ed7daff.js} +19 -19
  1021. package/dist/esm/{fr-ch-8a26fec6.js → fr-ch-8fbbc30f.js} +19 -19
  1022. package/dist/esm/{globalAttributes-abdacaf6.js → globalAttributes-c361d715.js} +2 -2
  1023. package/dist/esm/{guid-f172ae54.js → guid-805a73d1.js} +1 -1
  1024. package/dist/esm/{he-2285e0ec.js → he-b57e3a7c.js} +19 -19
  1025. package/dist/esm/{hi-aae182f9.js → hi-99c9b198.js} +19 -19
  1026. package/dist/esm/{hr-dd408fd6.js → hr-74a407de.js} +19 -19
  1027. package/dist/esm/{hu-3a5c9247.js → hu-b4ea1f8d.js} +19 -19
  1028. package/dist/esm/{id-3c8c9335.js → id-35f140e2.js} +19 -19
  1029. package/dist/esm/{index-d33bc281.js → index-4c97cc37.js} +1 -1
  1030. package/dist/esm/{index-ed3e0e7f.js → index-89cd0584.js} +1 -1
  1031. package/dist/esm/{index-a7390dca.js → index-8f3f586a.js} +1 -1
  1032. package/dist/esm/index.js +2 -2
  1033. package/dist/esm/{interactive-b1d604fe.js → interactive-2b2de863.js} +2 -2
  1034. package/dist/esm/{it-ch-87a1d688.js → it-ch-72916841.js} +19 -19
  1035. package/dist/esm/{it-5cee14c4.js → it-dc9fa292.js} +19 -19
  1036. package/dist/esm/{ja-f97bc371.js → ja-dcc50b14.js} +19 -19
  1037. package/dist/esm/{key-25616884.js → key-f3638642.js} +1 -1
  1038. package/dist/esm/{ko-85e15879.js → ko-b58db1fa.js} +19 -19
  1039. package/dist/esm/{label-5b1effee.js → label-0873b8dd.js} +2 -2
  1040. package/dist/esm/{loadable-8c31e49d.js → loadable-1917c524.js} +2 -2
  1041. package/dist/esm/loader.js +6 -6
  1042. package/dist/esm/{locale-34b0349d.js → locale-07424fa5.js} +4 -4
  1043. package/dist/esm/{lt-f77ce5eb.js → lt-afd75bee.js} +19 -19
  1044. package/dist/esm/{lv-246fcdfb.js → lv-d7823878.js} +19 -19
  1045. package/dist/esm/{math-1fceef96.js → math-84ae8cd7.js} +1 -1
  1046. package/dist/esm/{mk-e8d2b98c.js → mk-2fc51c89.js} +19 -19
  1047. package/dist/esm/{nb-0062fda2.js → nb-1a230648.js} +19 -19
  1048. package/dist/esm/{nl-9bb9afd1.js → nl-510ce2f9.js} +19 -19
  1049. package/dist/esm/{observers-47704288.js → observers-469c8c46.js} +1 -1
  1050. package/dist/esm/{openCloseComponent-21cc8d40.js → openCloseComponent-baf628d7.js} +2 -2
  1051. package/dist/esm/{pl-17ea3d42.js → pl-18390b80.js} +19 -19
  1052. package/dist/esm/{pt-45e225ea.js → pt-9fa332f4.js} +19 -19
  1053. package/dist/esm/{pt-br-0614606f.js → pt-br-6dd90b72.js} +19 -19
  1054. package/dist/esm/{resources-5d276419.js → resources-1e592f26.js} +1 -1
  1055. package/dist/esm/{resources-775613d6.js → resources-4b543454.js} +1 -1
  1056. package/dist/esm/{resources-5be296d6.js → resources-6ed27057.js} +1 -1
  1057. package/dist/esm/{resources-1e44ac95.js → resources-8c8ad2c0.js} +5 -5
  1058. package/dist/esm/{resources-e640663e.js → resources-93a25f6f.js} +1 -1
  1059. package/dist/esm/{resources-20ef1636.js → resources-ce721825.js} +1 -1
  1060. package/dist/esm/{resources-818f7e91.js → resources-e83ed566.js} +1 -1
  1061. package/dist/esm/{responsive-e6fbf452.js → responsive-0a8f63c5.js} +1 -1
  1062. package/dist/esm/{ro-89624e5e.js → ro-a522cc24.js} +19 -19
  1063. package/dist/esm/{ru-bf759c13.js → ru-bbd9194b.js} +19 -19
  1064. package/dist/esm/{sk-5e81ebbe.js → sk-a303deba.js} +19 -19
  1065. package/dist/esm/{sl-a7be7b95.js → sl-a45d1446.js} +19 -19
  1066. package/dist/esm/{sortableComponent-fc890d29.js → sortableComponent-ded95007.js} +1 -1
  1067. package/dist/esm/{sr-262c281f.js → sr-8560d64c.js} +19 -19
  1068. package/dist/esm/{sv-9a73ae91.js → sv-2bcbce22.js} +19 -19
  1069. package/dist/esm/{t9n-beee2af5.js → t9n-0cedcbfc.js} +3 -3
  1070. package/dist/esm/{th-f4669de2.js → th-6b613c60.js} +19 -19
  1071. package/dist/esm/{throttle-21d71c9b.js → throttle-2808d5d5.js} +2 -2
  1072. package/dist/esm/{tr-7a71bab8.js → tr-9c792030.js} +19 -19
  1073. package/dist/esm/{uk-f29accef.js → uk-8b1b5351.js} +19 -19
  1074. package/dist/esm/{utils-c600f230.js → utils-9da4191c.js} +1 -1
  1075. package/dist/esm/{utils-68c0332f.js → utils-e4941644.js} +3 -3
  1076. package/dist/esm/{vi-2b78aa6b.js → vi-96d0b47a.js} +19 -19
  1077. package/dist/esm/{zh-cn-0f25c9c0.js → zh-cn-92ec38c3.js} +19 -19
  1078. package/dist/esm/{zh-hk-b10ececc.js → zh-hk-1451a1a9.js} +19 -19
  1079. package/dist/esm/{zh-tw-c801f484.js → zh-tw-f74b1bd5.js} +19 -19
  1080. package/dist/extras/docs-json.json +4 -4
  1081. package/dist/extras/translations-json.json +1 -1
  1082. package/dist/extras/vscode-data.json +2 -2
  1083. package/dist/loader/cdn.js +1 -1
  1084. package/dist/loader/index.cjs.js +1 -1
  1085. package/dist/loader/index.es2017.js +1 -1
  1086. package/dist/loader/index.js +1 -1
  1087. package/dist/types/components/combobox/combobox.d.ts +0 -2
  1088. package/dist/types/components/combobox-item/combobox-item.d.ts +1 -1
  1089. package/dist/types/components/tab/resources.d.ts +4 -0
  1090. package/dist/types/components/tab/tab.d.ts +2 -1
  1091. package/dist/types/components/tab-nav/resources.d.ts +3 -0
  1092. package/dist/types/components/tab-nav/tab-nav.d.ts +6 -2
  1093. package/dist/types/components/tab-title/resources.d.ts +1 -1
  1094. package/dist/types/components/tab-title/tab-title.d.ts +5 -1
  1095. package/dist/types/components/tabs/tabs.d.ts +8 -2
  1096. package/dist/types/components.d.ts +19 -4
  1097. package/hydrate/index.js +526 -505
  1098. package/package.json +3 -3
  1099. package/readme.md +2 -2
  1100. package/dist/calcite/p-09365075.entry.js +0 -6
  1101. package/dist/calcite/p-1dc395d5.js +0 -6
  1102. package/dist/calcite/p-25c3efe4.entry.js +0 -6
  1103. package/dist/calcite/p-2e76b8f0.entry.js +0 -6
  1104. package/dist/calcite/p-5c0751d5.js +0 -6
  1105. package/dist/calcite/p-646610e9.entry.js +0 -6
  1106. package/dist/calcite/p-6b94f278.entry.js +0 -6
  1107. package/dist/calcite/p-7f8eea81.entry.js +0 -6
  1108. package/dist/calcite/p-814f5371.js +0 -6
  1109. package/dist/calcite/p-979de2bf.js +0 -6
  1110. package/dist/calcite/p-a2c564eb.entry.js +0 -6
  1111. package/dist/calcite/p-abaee6e8.js +0 -6
  1112. package/dist/calcite/p-b34d500c.js +0 -6
  1113. package/dist/calcite/p-bbcc57ab.entry.js +0 -6
  1114. package/dist/calcite/p-c686a2fa.entry.js +0 -6
  1115. package/dist/calcite/p-d279f09b.entry.js +0 -6
  1116. package/dist/calcite/p-d46cf3a7.entry.js +0 -6
  1117. package/dist/calcite/p-fb824477.entry.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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{r as t,c as e,h as i,a as s,F as n}from"./p-afb5bfac.js";import{i as r,g as a,d as o,j as l}from"./p-88105b7d.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-128223be.js";import{c as j,d as A,u as z}from"./p-3f9f4578.js";import{i as S}from"./p-7cec9f27.js";import{c as F,s as O,a as $}from"./p-ec05c729.js";import{c as D,d as I}from"./p-75b25bb9.js";import{r as q,c as E,a as N}from"./p-d5a0aeb4.js";import{u as L,s as K,c as U,d as P}from"./p-2c0cfd3a.js";import{t as T}from"./p-87408cbe.js";import"./p-17bb07b7.js";import"./p-3ba340ce.js";import"./p-159569ef.js";import"./p-b61aeefa.js";import"./p-8f711d4c.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-39c4bd14.js";import{i as r,g as a,d as o,j as l}from"./p-b56661b0.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-db7b5a5d.js";import{c as j,d as A,u as z}from"./p-342e5f69.js";import{i as S}from"./p-36d3ed5d.js";import{c as F,s as O,a as $}from"./p-9bf9b1f6.js";import{c as D,d as I}from"./p-7833f32a.js";import{r as q,c as E,a as N}from"./p-fa55c6cb.js";import{u as L,s as K,c as U,d as P}from"./p-2556334a.js";import{t as T}from"./p-ae13c82e.js";import"./p-e5b74595.js";import"./p-0673188b.js";import"./p-9312fc08.js";import"./p-3aa6843f.js";import"./p-7255d779.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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{d as Y}from"./p-95c6ff70.js";import"./p-afb5bfac.js";import"./p-0e205036.js";import"./p-88105b7d.js";import"./p-17bb07b7.js";import"./p-3ba340ce.js";import"./p-3f9f4578.js";import"./p-159569ef.js";import"./p-7cec9f27.js";import"./p-d4f975ff.js";import"./p-ec05c729.js";import"./p-75b25bb9.js";import"./p-b61aeefa.js";import"./p-1699661b.js";import"./p-d5a0aeb4.js";import"./p-2c0cfd3a.js";import"./p-d1c47ad6.js";import"./p-1c93f3f7.js";var M={s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:"%d שעות",hh2:"שעתיים",d:"יום",dd:"%d ימים",dd2:"יומיים",M:"חודש",MM:"%d חודשים",MM2:"חודשיים",y:"שנה",yy:"%d שנים",yy2:"שנתיים"};function m(Y,m,_){return(M[_+(2===Y?"2":"")]||M[_]).replace("%d",Y)}var _={name:"he",weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳".split("_"),months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ".split("_"),relativeTime:{future:"בעוד %s",past:"לפני %s",s:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},ordinal:function(Y){return Y},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"}};Y.locale(_,null,!0);export default _;
6
+ import{d as Y}from"./p-02ffe899.js";import"./p-39c4bd14.js";import"./p-397635f5.js";import"./p-b56661b0.js";import"./p-e5b74595.js";import"./p-0673188b.js";import"./p-342e5f69.js";import"./p-9312fc08.js";import"./p-36d3ed5d.js";import"./p-87791eeb.js";import"./p-9bf9b1f6.js";import"./p-7833f32a.js";import"./p-3aa6843f.js";import"./p-b7c24c21.js";import"./p-fa55c6cb.js";import"./p-2556334a.js";import"./p-7b2a2228.js";import"./p-343f1e34.js";var M={s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:"%d שעות",hh2:"שעתיים",d:"יום",dd:"%d ימים",dd2:"יומיים",M:"חודש",MM:"%d חודשים",MM2:"חודשיים",y:"שנה",yy:"%d שנים",yy2:"שנתיים"};function m(Y,m,_){return(M[_+(2===Y?"2":"")]||M[_]).replace("%d",Y)}var _={name:"he",weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳".split("_"),months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ".split("_"),relativeTime:{future:"בעוד %s",past:"לפני %s",s:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},ordinal:function(Y){return Y},format:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"}};Y.locale(_,null,!0);export default _;
@@ -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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{g as n}from"./p-afb5bfac.js";import{n as t,g as e}from"./p-75b25bb9.js";function a(n,t,e){if(!n)return;const a=n.getTime(),r=!(t instanceof Date)||a>=t.getTime(),o=!(e instanceof Date)||a<=e.getTime();return r&&o}function r(n,t,e){if(!(n instanceof Date))return null;const a=n.getTime(),r=t instanceof Date&&a<t.getTime(),o=e instanceof Date&&a>e.getTime();return r?t:o?e:n}function o(n,t=!1){if(n instanceof Date)return n;if(!n||"string"!=typeof n)return null;const e=n.split(/[: T-]/).map(parseFloat),a=new Date(e[0],(e[1]||1)-1,e[2]||1);if(a.setFullYear(e[0]),isNaN(a.getTime()))throw new Error(`Invalid ISO 8601 date: "${n}"`);return t?h(a):a}function s(n,t){if(!t)return null;const{separator:e}=t,a=function(n,t){const{day:e,month:a,year:r}=f(n,t);return{day:parseInt(e),month:parseInt(a)-1,year:parseInt(r)}}(n,t),{day:r,month:o}=a,s=i(a.year,t),u=new Date(s,o,r);u.setFullYear(s);const c=r>0,d=o>-1,l=!isNaN(u.getTime()),D=n.split(e).filter((n=>n)).length>2,p=s.toString().length>0;return c&&d&&l&&D&&p?u:null}function i(n,t){return c(n,t,"read")}function u(n,t){return c(n,t,"write")}function c(n,t,e){return"buddhist"!==t["default-calendar"]?n:n+543*("read"===e?-1:1)}function f(n,e){const{separator:a,unitOrder:r}=e,o=m(r),s=n.split(a).map((n=>t.delocalize(n)));return{day:s[o.indexOf("d")],month:s[o.indexOf("m")],year:s[o.indexOf("y")]}}function d(n){return n instanceof Date?new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0]:""}function l(n){const t=n.split("-");return{day:t[2],month:t[1],year:t[0]}}function D(n,t){return n instanceof Date&&t instanceof Date&&n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}function p(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t-1),t===e.getMonth()?new Date(n.getFullYear(),t,0):e}function y(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t+1),(t+2)%7==e.getMonth()%7?new Date(n.getFullYear(),t+2,0):e}function m(n){const t=n.toLowerCase();return["d","m","y"].sort(((n,e)=>t.indexOf(n)-t.indexOf(e)))}function w(n,t){return(n.getTime()-t.getTime())/864e5}function h(n){return n.setHours(23,59,59,999),n}const b={},g={};async function I(t){const a=e(t);if(b[a])return b[a];g[a]||(g[a]=fetch(n(`./assets/date-picker/nls/${a}.json`)).then((n=>n.json())).catch((()=>(console.error(`Translations for "${a}" not found or invalid, falling back to english`),I("en")))));const r=await g[a];return b[a]=r,r}function j(n){return n.map(((n,t)=>o(n,1===t)))}export{f as a,s as b,d as c,l as d,o as e,I as f,j as g,r as h,a as i,w as j,D as k,m as l,u as m,y as n,i as o,p,h as s}
6
+ import{g as n}from"./p-39c4bd14.js";import{n as t,g as e}from"./p-7833f32a.js";function a(n,t,e){if(!n)return;const a=n.getTime(),r=!(t instanceof Date)||a>=t.getTime(),o=!(e instanceof Date)||a<=e.getTime();return r&&o}function r(n,t,e){if(!(n instanceof Date))return null;const a=n.getTime(),r=t instanceof Date&&a<t.getTime(),o=e instanceof Date&&a>e.getTime();return r?t:o?e:n}function o(n,t=!1){if(n instanceof Date)return n;if(!n||"string"!=typeof n)return null;const e=n.split(/[: T-]/).map(parseFloat),a=new Date(e[0],(e[1]||1)-1,e[2]||1);if(a.setFullYear(e[0]),isNaN(a.getTime()))throw new Error(`Invalid ISO 8601 date: "${n}"`);return t?h(a):a}function s(n,t){if(!t)return null;const{separator:e}=t,a=function(n,t){const{day:e,month:a,year:r}=f(n,t);return{day:parseInt(e),month:parseInt(a)-1,year:parseInt(r)}}(n,t),{day:r,month:o}=a,s=i(a.year,t),u=new Date(s,o,r);u.setFullYear(s);const c=r>0,d=o>-1,l=!isNaN(u.getTime()),D=n.split(e).filter((n=>n)).length>2,p=s.toString().length>0;return c&&d&&l&&D&&p?u:null}function i(n,t){return c(n,t,"read")}function u(n,t){return c(n,t,"write")}function c(n,t,e){return"buddhist"!==t["default-calendar"]?n:n+543*("read"===e?-1:1)}function f(n,e){const{separator:a,unitOrder:r}=e,o=m(r),s=n.split(a).map((n=>t.delocalize(n)));return{day:s[o.indexOf("d")],month:s[o.indexOf("m")],year:s[o.indexOf("y")]}}function d(n){return n instanceof Date?new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0]:""}function l(n){const t=n.split("-");return{day:t[2],month:t[1],year:t[0]}}function D(n,t){return n instanceof Date&&t instanceof Date&&n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}function p(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t-1),t===e.getMonth()?new Date(n.getFullYear(),t,0):e}function y(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t+1),(t+2)%7==e.getMonth()%7?new Date(n.getFullYear(),t+2,0):e}function m(n){const t=n.toLowerCase();return["d","m","y"].sort(((n,e)=>t.indexOf(n)-t.indexOf(e)))}function w(n,t){return(n.getTime()-t.getTime())/864e5}function h(n){return n.setHours(23,59,59,999),n}const g={},I={};async function b(t){const a=e(t);if(g[a])return g[a];I[a]||(I[a]=fetch(n(`./assets/date-picker/nls/${a}.json`)).then((n=>n.json())).catch((()=>(console.error(`Translations for "${a}" not found or invalid, falling back to english`),b("en")))));const r=await I[a];return g[a]=r,r}function j(n){return n.map(((n,t)=>o(n,1===t)))}export{f as a,s as b,d as c,l as d,o as e,b as f,j as g,r as h,a as i,w as j,D as k,m as l,u as m,y as n,i as o,p,h as s}
@@ -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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{r as e,c as t,f as i,h as s,H as a,a as o}from"./p-afb5bfac.js";import{f as n,c as r,b as l,a as c,r as h,F as d}from"./p-8c382a3e.js";import{d as p,a as f,c as m,u}from"./p-1699661b.js";import{i as b,t as g,f as v,q as w}from"./p-88105b7d.js";import{g as y}from"./p-17bb07b7.js";import{o as x}from"./p-d1c47ad6.js";import{H as k}from"./p-b34d500c.js";import{c as E,d as z}from"./p-75b25bb9.js";import{u as j,c as H,s as P,d as D}from"./p-2c0cfd3a.js";import{i as C}from"./p-7cec9f27.js";import{s as L,a as F,c as O}from"./p-ec05c729.js";import{c as R}from"./p-b61aeefa.js";import{F as A}from"./p-abaee6e8.js";import{g as B}from"./p-1c93f3f7.js";import"./p-8f711d4c.js";import"./p-3ba340ce.js";const S="close-button-container",T="header",M="aria-controls",$="aria-expanded",_=new class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{const{registeredElements:t}=this,i=e.find((e=>t.has(e)));return t.get(i)},this.togglePopovers=e=>{const t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((e=>e!==i&&e.autoClose&&e.open&&!t.includes(e))).forEach((e=>e.open=!1))},this.keyHandler=e=>{e.defaultPrevented||("Escape"===e.key?this.closeAllPopovers():C(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{b(e)&&this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),1===this.registeredElementCount&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((e=>e.open=!1))}addListeners(){document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("keydown",this.keyHandler,{capture:!0})}removeListeners(){document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("keydown",this.keyHandler,{capture:!0})}},X=class{constructor(i){e(this,i),this.calcitePopoverBeforeClose=t(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=t(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=t(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=t(this,"calcitePopoverOpen",6),this.mutationObserver=R("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${y()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?n(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),r(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:i,effectiveReferenceElement:s}=this;e&&i&&!s&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute($,g(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(M,t),_.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(M),e.removeAttribute($)),_.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(e){this.open&&(e?p(this):f(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(e){x(this),e&&this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){j(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),E(this),H(this),this.setUpReferenceElement(this.hasLoaded),m(this),this.open&&x(this)}async componentWillLoad(){await P(this),L(this)}componentDidLoad(){F(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),z(this),D(this),c(this,this.effectiveReferenceElement,this.el),p(this)}async reposition(e=!1){const{el:t,effectiveReferenceElement:i,placement:s,overlayPositioning:a,flipDisabled:o,filteredFlipPlacements:n,offsetDistance:r,offsetSkidding:l,arrowEl:c}=this;return h(this,{floatingEl:t,referenceEl:i,overlayPositioning:a,placement:s,flipDisabled:o,flipPlacements:n,offsetDistance:r,offsetSkidding:l,arrowEl:c,type:"popover"},e)}async setFocus(){await O(this),i(this.el),v(this.el)}async updateFocusTrapElements(){u(this)}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?w(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),f(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),p(this)}renderCloseButton(){const{messages:e,closable:t}=this;return t?s("div",{class:S,key:S},s("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,scale:this.scale,text:e.close,ref:e=>this.closeButtonEl=e},s("calcite-icon",{icon:"x",scale:B(this.scale)}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,i=e?s(k,{class:"heading",level:t},e):null;return i?s("div",{class:T,key:T},i,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:i,open:o,pointerDisabled:n,floatingLayout:r}=this,l=e&&o,c=!l,h=n?null:s(A,{floatingLayout:r,key:"floating-arrow",ref:this.storeArrowEl});return s(a,{"aria-hidden":g(c),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":c,id:this.getId(),role:"dialog"},s("div",{class:{[d.animation]:!0,[d.animationActive]:l},ref:this.setTransitionEl},h,s("div",{class:{"has-header":!!t,container:!0}},this.renderHeader(),s("div",{class:"content"},s("slot",null)),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};X.style=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-app-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-app-z-index) * -1);fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{X as calcite_popover}
6
+ import{r as e,c as t,f as i,h as s,H as a,a as o}from"./p-39c4bd14.js";import{f as n,c as r,b as l,a as c,r as h,F as d}from"./p-e1544594.js";import{d as p,a as f,c as m,u}from"./p-b7c24c21.js";import{i as g,t as v,f as b,q as w}from"./p-b56661b0.js";import{g as y}from"./p-e5b74595.js";import{o as x}from"./p-7b2a2228.js";import{H as k}from"./p-e587d33b.js";import{c as E,d as z}from"./p-7833f32a.js";import{u as j,c as H,s as P,d as D}from"./p-2556334a.js";import{i as C}from"./p-36d3ed5d.js";import{s as L,a as F,c as O}from"./p-9bf9b1f6.js";import{c as R}from"./p-3aa6843f.js";import{F as A}from"./p-e25df814.js";import{g as B}from"./p-343f1e34.js";import"./p-7255d779.js";import"./p-0673188b.js";const S="close-button-container",T="header",M="aria-controls",$="aria-expanded",_=new class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{const{registeredElements:t}=this,i=e.find((e=>t.has(e)));return t.get(i)},this.togglePopovers=e=>{const t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((e=>e!==i&&e.autoClose&&e.open&&!t.includes(e))).forEach((e=>e.open=!1))},this.keyHandler=e=>{e.defaultPrevented||("Escape"===e.key?this.closeAllPopovers():C(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{g(e)&&this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),1===this.registeredElementCount&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((e=>e.open=!1))}addListeners(){document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("keydown",this.keyHandler,{capture:!0})}removeListeners(){document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("keydown",this.keyHandler,{capture:!0})}},X=class{constructor(i){e(this,i),this.calcitePopoverBeforeClose=t(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=t(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=t(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=t(this,"calcitePopoverOpen",6),this.mutationObserver=R("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${y()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?n(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),r(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:i,effectiveReferenceElement:s}=this;e&&i&&!s&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute($,v(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(M,t),_.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(M),e.removeAttribute($)),_.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(e){this.open&&(e?p(this):f(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(e){x(this),e&&this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){j(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),E(this),H(this),this.setUpReferenceElement(this.hasLoaded),m(this),this.open&&x(this)}async componentWillLoad(){await P(this),L(this)}componentDidLoad(){F(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),z(this),D(this),c(this,this.effectiveReferenceElement,this.el),p(this)}async reposition(e=!1){const{el:t,effectiveReferenceElement:i,placement:s,overlayPositioning:a,flipDisabled:o,filteredFlipPlacements:n,offsetDistance:r,offsetSkidding:l,arrowEl:c}=this;return h(this,{floatingEl:t,referenceEl:i,overlayPositioning:a,placement:s,flipDisabled:o,flipPlacements:n,offsetDistance:r,offsetSkidding:l,arrowEl:c,type:"popover"},e)}async setFocus(){await O(this),i(this.el),b(this.el)}async updateFocusTrapElements(){u(this)}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?w(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),f(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),p(this)}renderCloseButton(){const{messages:e,closable:t}=this;return t?s("div",{class:S,key:S},s("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,scale:this.scale,text:e.close,ref:e=>this.closeButtonEl=e},s("calcite-icon",{icon:"x",scale:B(this.scale)}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,i=e?s(k,{class:"heading",level:t},e):null;return i?s("div",{class:T,key:T},i,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:i,open:o,pointerDisabled:n,floatingLayout:r}=this,l=e&&o,c=!l,h=n?null:s(A,{floatingLayout:r,key:"floating-arrow",ref:this.storeArrowEl});return s(a,{"aria-hidden":v(c),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":c,id:this.getId(),role:"dialog"},s("div",{class:{[d.animation]:!0,[d.animationActive]:l},ref:this.setTransitionEl},h,s("div",{class:{"has-header":!!t,container:!0}},this.renderHeader(),s("div",{class:"content"},s("slot",null)),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};X.style=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-app-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-app-z-index) * -1);fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{X as calcite_popover}
@@ -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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{d as e}from"./p-95c6ff70.js";import"./p-afb5bfac.js";import"./p-0e205036.js";import"./p-88105b7d.js";import"./p-17bb07b7.js";import"./p-3ba340ce.js";import"./p-3f9f4578.js";import"./p-159569ef.js";import"./p-7cec9f27.js";import"./p-d4f975ff.js";import"./p-ec05c729.js";import"./p-75b25bb9.js";import"./p-b61aeefa.js";import"./p-1699661b.js";import"./p-d5a0aeb4.js";import"./p-2c0cfd3a.js";import"./p-d1c47ad6.js";import"./p-1c93f3f7.js";var a={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};e.locale(a,null,!0);export default a;
6
+ import{d as e}from"./p-02ffe899.js";import"./p-39c4bd14.js";import"./p-397635f5.js";import"./p-b56661b0.js";import"./p-e5b74595.js";import"./p-0673188b.js";import"./p-342e5f69.js";import"./p-9312fc08.js";import"./p-36d3ed5d.js";import"./p-87791eeb.js";import"./p-9bf9b1f6.js";import"./p-7833f32a.js";import"./p-3aa6843f.js";import"./p-b7c24c21.js";import"./p-fa55c6cb.js";import"./p-2556334a.js";import"./p-7b2a2228.js";import"./p-343f1e34.js";var o={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};e.locale(o,null,!0);export default o;
@@ -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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{g as i,r as s,h as t,H as n,a}from"./p-afb5bfac.js";import{g as e,t as l}from"./p-88105b7d.js";import{c as o}from"./p-b61aeefa.js";import"./p-17bb07b7.js";import"./p-3ba340ce.js";const c={},r={},h={s:16,m:24,l:32};const p=class{constructor(i){s(this,i),this.icon=null,this.flipRtl=!1,this.scale="m",this.textLabel=void 0,this.pathData=void 0,this.visible=!1}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}disconnectedCallback(){this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async componentWillLoad(){this.loadIconPathData()}render(){const{el:i,flipRtl:s,pathData:a,scale:o,textLabel:c}=this,r=e(i),p=h[o],d=!!c,m=[].concat(a||"");return t(n,{"aria-hidden":l(!d),"aria-label":d?c:null,role:d?"img":null},t("svg",{"aria-hidden":"true",class:{"flip-rtl":"rtl"===r&&s,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${p} ${p}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},m.map((i=>t("path","string"==typeof i?{d:i}:{d:i.d,opacity:"opacity"in i?i.opacity:1})))))}async loadIconPathData(){const{icon:s,scale:t,visible:n}=this;s&&n&&(this.pathData=await async function({icon:s,scale:t}){const n=h[t],a=function(i){const s=!isNaN(Number(i.charAt(0))),t=i.split("-");if(t.length>0){const s=/[a-z]/i;i=t.map(((i,t)=>i.replace(s,(function(i,s){return 0===t&&0===s?i:i.toUpperCase()})))).join("")}return s?`i${i}`:i}(s),e="F"===a.charAt(a.length-1),l=`${e?a.substring(0,a.length-1):a}${n}${e?"F":""}`;if(c[l])return c[l];r[l]||(r[l]=fetch(i(`./assets/icon/${l}.json`)).then((i=>i.json())).catch((()=>(console.error(`"${l}" is not a valid calcite-ui-icon name`),""))));const o=await r[l];return c[l]=o,o}({icon:s,scale:t}))}waitUntilVisible(i){this.intersectionObserver=o("intersection",(s=>{s.forEach((s=>{s.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,i())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):i()}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}};p.style=":host{display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}";export{p as calcite_icon}
6
+ import{g as i,r as s,h as t,H as n,a}from"./p-39c4bd14.js";import{g as e,t as l}from"./p-b56661b0.js";import{c as o}from"./p-3aa6843f.js";import"./p-e5b74595.js";import"./p-0673188b.js";const c={},r={},h={s:16,m:24,l:32};const p=class{constructor(i){s(this,i),this.icon=null,this.flipRtl=!1,this.scale="m",this.textLabel=void 0,this.pathData=void 0,this.visible=!1}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}disconnectedCallback(){this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async componentWillLoad(){this.loadIconPathData()}render(){const{el:i,flipRtl:s,pathData:a,scale:o,textLabel:c}=this,r=e(i),p=h[o],d=!!c,m=[].concat(a||"");return t(n,{"aria-hidden":l(!d),"aria-label":d?c:null,role:d?"img":null},t("svg",{"aria-hidden":"true",class:{"flip-rtl":"rtl"===r&&s,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${p} ${p}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},m.map((i=>t("path","string"==typeof i?{d:i}:{d:i.d,opacity:"opacity"in i?i.opacity:1})))))}async loadIconPathData(){const{icon:s,scale:t,visible:n}=this;s&&n&&(this.pathData=await async function({icon:s,scale:t}){const n=h[t],a=function(i){const s=!isNaN(Number(i.charAt(0))),t=i.split("-");if(t.length>0){const s=/[a-z]/i;i=t.map(((i,t)=>i.replace(s,(function(i,s){return 0===t&&0===s?i:i.toUpperCase()})))).join("")}return s?`i${i}`:i}(s),e="F"===a.charAt(a.length-1),l=`${e?a.substring(0,a.length-1):a}${n}${e?"F":""}`;if(c[l])return c[l];r[l]||(r[l]=fetch(i(`./assets/icon/${l}.json`)).then((i=>i.json())).catch((()=>(console.error(`"${l}" is not a valid calcite-ui-icon name`),""))));const o=await r[l];return c[l]=o,o}({icon:s,scale:t}))}waitUntilVisible(i){this.intersectionObserver=o("intersection",(s=>{s.forEach((s=>{s.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,i())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):i()}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}};p.style=":host{display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}";export{p as calcite_icon}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
+ * v1.10.0
5
+ */
6
+ import{r as t,h as o,a as s}from"./p-39c4bd14.js";import{c as a,d as i}from"./p-53386f79.js";import{c as e,s as c,a as n}from"./p-9bf9b1f6.js";import{c as r,d as l}from"./p-7833f32a.js";import{u as d,c as p,d as h,s as u}from"./p-2556334a.js";import{S as g}from"./p-a1785cb1.js";import{S as m,I as f,C as b}from"./p-46f0626f.js";import{b as x}from"./p-b56661b0.js";import"./p-3aa6843f.js";import"./p-36d3ed5d.js";import"./p-e5b74595.js";import"./p-0673188b.js";const v=class{constructor(o){t(this,o),this.setMenuOpen=t=>{this.menuOpen=!!t.target.open},this.handleMenuActionsSlotChange=t=>{this.hasMenuActions=x(t)},this.expanded=!1,this.label=void 0,this.layout="vertical",this.columns=void 0,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.hasMenuActions=!1}expandedHandler(){this.menuOpen=!1}onMessagesChange(){}effectiveLocaleChange(){d(this,this.effectiveLocale)}async setFocus(){await e(this),this.el.focus()}connectedCallback(){r(this),p(this),a(this)}disconnectedCallback(){l(this),h(this),i(this)}async componentWillLoad(){c(this),await u(this)}componentDidLoad(){n(this)}renderMenu(){const{expanded:t,menuOpen:s,scale:a,layout:i,messages:e,overlayPositioning:c,hasMenuActions:n}=this;return o("calcite-action-menu",{expanded:t,flipPlacements:["left","right"],hidden:!n,label:e.more,onCalciteActionMenuOpen:this.setMenuOpen,open:s,overlayPositioning:c,placement:"horizontal"===i?"bottom-start":"leading-start",scale:a},o("calcite-action",{icon:f.menu,scale:a,slot:g.trigger,text:e.more,textEnabled:t}),o("slot",{name:m.menuActions,onSlotchange:this.handleMenuActionsSlotChange}),o("slot",{name:m.menuTooltip,slot:g.tooltip}))}render(){return o("div",{"aria-label":this.label,class:b.container,role:"group"},o("slot",null),this.renderMenu())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};v.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{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3;--calcite-action-group-gap:1px;--calcite-action-group-padding:1px}.container{display:flex;flex-grow:1;flex-direction:column}:host([columns="1"]){--calcite-action-group-columns:1}:host([columns="2"]){--calcite-action-group-columns:2}:host([columns="3"]){--calcite-action-group-columns:3}:host([columns="4"]){--calcite-action-group-columns:4}:host([columns="5"]){--calcite-action-group-columns:5}:host([columns="6"]){--calcite-action-group-columns:6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]),:host([layout=horizontal]) .container{flex-direction:row}:host([layout=grid]){display:grid}:host([layout=grid]) .container{display:grid;place-content:stretch;background-color:var(--calcite-ui-background);gap:var(--calcite-action-group-gap);padding:var(--calcite-action-group-gap);grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}:host([hidden]){display:none}[hidden]{display:none}';export{v as calcite_action_group}
@@ -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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{d as _}from"./p-95c6ff70.js";import"./p-afb5bfac.js";import"./p-0e205036.js";import"./p-88105b7d.js";import"./p-17bb07b7.js";import"./p-3ba340ce.js";import"./p-3f9f4578.js";import"./p-159569ef.js";import"./p-7cec9f27.js";import"./p-d4f975ff.js";import"./p-ec05c729.js";import"./p-75b25bb9.js";import"./p-b61aeefa.js";import"./p-1699661b.js";import"./p-d5a0aeb4.js";import"./p-2c0cfd3a.js";import"./p-d1c47ad6.js";import"./p-1c93f3f7.js";var m="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),p="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),r=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function t(_,m,p){var r,t;return"m"===p?m?"хвилина":"хвилину":"h"===p?m?"година":"годину":_+" "+(r=+_,t={ss:m?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:m?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:m?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[p].split("_"),r%10==1&&r%100!=11?t[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?t[1]:t[2])}var s=function(_,t){return r.test(t)?m[_.month()]:p[_.month()]};s.s=p,s.f=m;var o={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:t,hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}};_.locale(o,null,!0);export default o;
6
+ import{d as _}from"./p-02ffe899.js";import"./p-39c4bd14.js";import"./p-397635f5.js";import"./p-b56661b0.js";import"./p-e5b74595.js";import"./p-0673188b.js";import"./p-342e5f69.js";import"./p-9312fc08.js";import"./p-36d3ed5d.js";import"./p-87791eeb.js";import"./p-9bf9b1f6.js";import"./p-7833f32a.js";import"./p-3aa6843f.js";import"./p-b7c24c21.js";import"./p-fa55c6cb.js";import"./p-2556334a.js";import"./p-7b2a2228.js";import"./p-343f1e34.js";var m="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),p="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),r=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function t(_,m,p){var r,t;return"m"===p?m?"хвилина":"хвилину":"h"===p?m?"година":"годину":_+" "+(r=+_,t={ss:m?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:m?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:m?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[p].split("_"),r%10==1&&r%100!=11?t[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?t[1]:t[2])}var s=function(_,t){return r.test(t)?m[_.month()]:p[_.month()]};s.s=p,s.f=m;var o={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:t,hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}};_.locale(o,null,!0);export default o;
@@ -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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{d as _}from"./p-95c6ff70.js";import"./p-afb5bfac.js";import"./p-0e205036.js";import"./p-88105b7d.js";import"./p-17bb07b7.js";import"./p-3ba340ce.js";import"./p-3f9f4578.js";import"./p-159569ef.js";import"./p-7cec9f27.js";import"./p-d4f975ff.js";import"./p-ec05c729.js";import"./p-75b25bb9.js";import"./p-b61aeefa.js";import"./p-1699661b.js";import"./p-d5a0aeb4.js";import"./p-2c0cfd3a.js";import"./p-d1c47ad6.js";import"./p-1c93f3f7.js";var m={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_){return _+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(_){return _<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};_.locale(m,null,!0);export default m;
6
+ import{d as _}from"./p-02ffe899.js";import"./p-39c4bd14.js";import"./p-397635f5.js";import"./p-b56661b0.js";import"./p-e5b74595.js";import"./p-0673188b.js";import"./p-342e5f69.js";import"./p-9312fc08.js";import"./p-36d3ed5d.js";import"./p-87791eeb.js";import"./p-9bf9b1f6.js";import"./p-7833f32a.js";import"./p-3aa6843f.js";import"./p-b7c24c21.js";import"./p-fa55c6cb.js";import"./p-2556334a.js";import"./p-7b2a2228.js";import"./p-343f1e34.js";var m={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_){return _+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(_){return _<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};_.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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
- import{d as r}from"./p-95c6ff70.js";import"./p-afb5bfac.js";import"./p-0e205036.js";import"./p-88105b7d.js";import"./p-17bb07b7.js";import"./p-3ba340ce.js";import"./p-3f9f4578.js";import"./p-159569ef.js";import"./p-7cec9f27.js";import"./p-d4f975ff.js";import"./p-ec05c729.js";import"./p-75b25bb9.js";import"./p-b61aeefa.js";import"./p-1699661b.js";import"./p-d5a0aeb4.js";import"./p-2c0cfd3a.js";import"./p-d1c47ad6.js";import"./p-1c93f3f7.js";var e={name:"nb",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(r){return r+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"}};r.locale(e,null,!0);export default e;
6
+ import{d as r}from"./p-02ffe899.js";import"./p-39c4bd14.js";import"./p-397635f5.js";import"./p-b56661b0.js";import"./p-e5b74595.js";import"./p-0673188b.js";import"./p-342e5f69.js";import"./p-9312fc08.js";import"./p-36d3ed5d.js";import"./p-87791eeb.js";import"./p-9bf9b1f6.js";import"./p-7833f32a.js";import"./p-3aa6843f.js";import"./p-b7c24c21.js";import"./p-fa55c6cb.js";import"./p-2556334a.js";import"./p-7b2a2228.js";import"./p-343f1e34.js";var e={name:"nb",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(r){return r+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"}};r.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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
6
  var t="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,r=t||n||Function("return this")(),e=r.Symbol,o=Object.prototype,i=o.hasOwnProperty,u=o.toString,f=e?e.toStringTag:void 0,a=Object.prototype.toString,c=e?e.toStringTag:void 0;function v(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var n=i.call(t,f),r=t[f];try{t[f]=void 0;var e=!0}catch(t){}var o=u.call(t);return e&&(n?t[f]=r:delete t[f]),o}(t):function(t){return a.call(t)}(t)}function l(t){return null!=t&&"object"==typeof t}function s(t){return"symbol"==typeof t||l(t)&&"[object Symbol]"==v(t)}var b=/\s/,d=/^\s+/;function p(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}var y=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,m=/^0o[0-7]+$/i,T=parseInt;function g(t){if("number"==typeof t)return t;if(s(t))return NaN;if(p(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=p(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;var r;t=(r=t)?r.slice(0,function(t){for(var n=t.length;n--&&b.test(t.charAt(n)););return n}(r)+1).replace(d,""):r;var e=j.test(t);return e||m.test(t)?T(t.slice(2),e?2:8):y.test(t)?NaN:+t}var h=function(){return r.Date.now()},N=Math.max,O=Math.min;function x(t,n,r){var e,o,i,u,f,a,c=0,v=!1,l=!1,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(n){var r=e,i=o;return e=o=void 0,c=n,u=t.apply(i,r)}function d(t){return c=t,f=setTimeout(j,n),v?b(t):u}function y(t){var r=t-a;return void 0===a||r>=n||r<0||l&&t-c>=i}function j(){var t=h();if(y(t))return m(t);f=setTimeout(j,function(t){var r=n-(t-a);return l?O(r,i-(t-c)):r}(t))}function m(t){return f=void 0,s&&e?b(t):(e=o=void 0,u)}function T(){var t=h(),r=y(t);if(e=arguments,o=this,a=t,r){if(void 0===f)return d(a);if(l)return clearTimeout(f),f=setTimeout(j,n),b(a)}return void 0===f&&(f=setTimeout(j,n)),u}return n=g(n)||0,p(r)&&(v=!!r.leading,i=(l="maxWait"in r)?N(g(r.maxWait)||0,n):i,s="trailing"in r?!!r.trailing:s),T.cancel=function(){void 0!==f&&clearTimeout(f),c=0,e=a=o=f=void 0},T.flush=function(){return void 0===f?u:m(h())},T}export{e as S,s as a,v as b,l as c,x as d,t as f,p as i,r}
@@ -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.10.0-next.8
4
+ * v1.10.0
5
5
  */
6
6
  class e{constructor(){this._formatterCache=new Map,this._commonDateTimeFormatterOptions={year:"numeric",month:"2-digit",day:"2-digit",timeZoneName:"shortOffset"}}get name(){return"native"}create(e){return new Date(e)}increase(e){return new Date(e.getTime()+864e5)}formatToIsoDateString(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`}isoToTimeZone(e,t){const n=this._toDate(e),r=this._getFormatter(t).formatToParts(n),[i]=r.filter((({type:e})=>"timeZoneName"===e)).map((({value:e})=>e)),s=this._getTimeZoneOffsetInMins(i),a=n.getMinutes()-(n.getTimezoneOffset()-s);return n.setMinutes(a),n}same(e,t){return e.getTime()===t.getTime()}_toDate(e){return new Date(e)}_getFormatter(e){let t=this._formatterCache.get(e);return t||(t=new Intl.DateTimeFormat("en-US",{timeZone:e,...this._commonDateTimeFormatterOptions}),this._formatterCache.set(e,t)),t}_getTimeZoneOffsetInMins(e){const[t,...n]=e.slice(3),[r,i]=n.join("").split(":");return("+"===t?1:-1)*(60*Number(r)+Number(i||0))}}export{e as DateEngine}