@luzmo/analytics-components-kit 1.0.1-alpha.53 → 1.0.1-alpha.55

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 (166) hide show
  1. package/components/{de-Cxe7xkT4.cjs → de-BimXztr7.cjs} +1 -1
  2. package/components/{de-ZPzjN2kc.js → de-Ca_gJecj.js} +0 -1
  3. package/components/display-settings/index.cjs +1 -1
  4. package/components/display-settings/index.js +1 -1
  5. package/components/display-settings-binning/index.cjs +1 -1
  6. package/components/display-settings-binning/index.js +5 -5
  7. package/components/display-settings-datetime/index.cjs +1 -1
  8. package/components/display-settings-datetime/index.js +7 -7
  9. package/components/display-settings-grand-totals/index.cjs +1 -1
  10. package/components/display-settings-grand-totals/index.js +4 -4
  11. package/components/display-settings-numeric/index.cjs +3 -3
  12. package/components/display-settings-numeric/index.js +8 -8
  13. package/components/display-settings-period-over-period/index.cjs +6 -6
  14. package/components/display-settings-period-over-period/index.js +6 -6
  15. package/components/draggable-data-item/index.cjs +1 -1
  16. package/components/draggable-data-item/index.js +3 -3
  17. package/components/draggable-data-item-level/index.cjs +1 -1
  18. package/components/draggable-data-item-level/index.js +2 -2
  19. package/components/droppable-slot/index.cjs +2 -2
  20. package/components/droppable-slot/index.js +4 -4
  21. package/components/edit-item/index.cjs +2 -2
  22. package/components/edit-item/index.js +4 -2
  23. package/components/edit-option/index.cjs +1 -1
  24. package/components/edit-option/index.js +1 -1
  25. package/components/edit-option-action-button-group/index.cjs +1 -1
  26. package/components/edit-option-action-button-group/index.js +2 -2
  27. package/components/edit-option-color-picker/index.cjs +1 -1
  28. package/components/edit-option-color-picker/index.js +2 -2
  29. package/components/edit-option-color-range/index.cjs +1 -1
  30. package/components/edit-option-color-range/index.js +5 -5
  31. package/components/edit-option-multi-language-field/index.cjs +1 -1
  32. package/components/edit-option-multi-language-field/index.js +1 -1
  33. package/components/edit-option-number-field/index.cjs +1 -1
  34. package/components/edit-option-number-field/index.js +1 -1
  35. package/components/edit-option-picker/index.cjs +1 -1
  36. package/components/edit-option-picker/index.js +2 -2
  37. package/components/edit-option-position-picker/index.cjs +1 -1
  38. package/components/edit-option-position-picker/index.js +1 -1
  39. package/components/edit-option-positions-number-field/index.cjs +1 -1
  40. package/components/edit-option-positions-number-field/index.js +1 -1
  41. package/components/edit-option-radio-button-group/index.cjs +1 -1
  42. package/components/edit-option-radio-button-group/index.js +1 -1
  43. package/components/edit-option-text-field/index.cjs +1 -1
  44. package/components/edit-option-text-field/index.js +1 -1
  45. package/components/{es-C0JGlz18.js → es-BHAnPxmj.js} +0 -1
  46. package/components/{es-4dEouIgb.cjs → es-CDzU1gsd.cjs} +1 -1
  47. package/components/filter-data-item-picker/index.cjs +1 -1
  48. package/components/filter-data-item-picker/index.js +5 -5
  49. package/components/filter-expression-picker/index.cjs +1 -1
  50. package/components/filter-expression-picker/index.js +1 -1
  51. package/components/filter-item/index.cjs +1 -1
  52. package/components/filter-item/index.js +3 -3
  53. package/components/filter-value-picker/index.cjs +1 -1
  54. package/components/filter-value-picker/index.js +2 -2
  55. package/components/filter-value-picker-datetime/index.cjs +1 -1
  56. package/components/filter-value-picker-datetime/index.js +9 -9
  57. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  58. package/components/filter-value-picker-hierarchy/index.js +4 -4
  59. package/components/filter-value-picker-numeric/index.cjs +1 -1
  60. package/components/filter-value-picker-numeric/index.js +4 -4
  61. package/components/{fr-B_-_f-VN.js → fr-CKHxPDre.js} +0 -1
  62. package/components/{fr-Dwulhlbi.cjs → fr-s3wNsLiB.cjs} +1 -1
  63. package/components/grid/index.cjs +1 -1
  64. package/components/grid/index.js +4 -4
  65. package/components/{index-Tx5oQjbt.cjs → index--3gSNupB.cjs} +1 -1
  66. package/components/{index-B2ngKWOI.js → index-9LxnqLJa.js} +2 -2
  67. package/components/{index-5Z9GD60H.js → index-B759H2a6.js} +4 -4
  68. package/components/index-BF9-Mgs_.cjs +249 -0
  69. package/components/{index-tXl_aMnZ.cjs → index-BKx2WhDB.cjs} +1 -1
  70. package/components/{index-cHKqEi5-.cjs → index-BSgp4MWQ.cjs} +1 -1
  71. package/components/{index-DTI4dIyd.js → index-BY1yDIAI.js} +634 -586
  72. package/components/index-Be-pSgzQ.js +174 -0
  73. package/components/{index-Df-_TbOD.cjs → index-BgaRiq5f.cjs} +1 -1
  74. package/components/{index-BssHAgUU.js → index-BobhBKA2.js} +1 -1
  75. package/components/{index-MPM_B4re.cjs → index-Bpdwb9Js.cjs} +3 -3
  76. package/components/{index-Ck5VRoXN.cjs → index-BukPAqqU.cjs} +1 -1
  77. package/components/{index-DsP81c4M.js → index-C6NpWavw.js} +2 -2
  78. package/components/{index-BC1LV3vH.js → index-COU9XhBt.js} +1 -1
  79. package/components/{index-BEtf1WaQ.js → index-Cf_a7VrO.js} +2 -2
  80. package/components/{index-DV63kOPg.js → index-CgriGUqp.js} +3 -3
  81. package/components/{index-D05oY5ND.cjs → index-CpUmLQwd.cjs} +1 -1
  82. package/components/index-DCdx3dxQ.cjs +42 -0
  83. package/components/{index-BbpsZYZF.cjs → index-DMhm0FM8.cjs} +26 -25
  84. package/components/{index-DE3d0E0P.js → index-DYmi-X87.js} +2 -2
  85. package/components/{index-CbuHBIDB.js → index-DeIay7ZE.js} +2 -2
  86. package/components/{index-CShrqT1H.js → index-KFE-WtKZ.js} +2 -0
  87. package/components/{index-1oIrlkAr.cjs → index-cbfU96gS.cjs} +8 -8
  88. package/components/{index-DSQyBS9Z.cjs → index-fwJBhawL.cjs} +1 -1
  89. package/components/index.cjs +1 -1
  90. package/components/index.js +3 -3
  91. package/components/item-context-configs.cjs +223 -0
  92. package/components/item-context-configs.js +1129 -0
  93. package/components/item-options-configs.cjs +20 -0
  94. package/components/item-options-configs.js +109 -0
  95. package/components/{localized-decorator-DIXYZ3RL.cjs → localized-decorator-CIHsaT2_.cjs} +1 -1
  96. package/components/{localized-decorator-Bl5gcI6n.js → localized-decorator-Di4TdvRQ.js} +1 -1
  97. package/components/{luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs → luzmo-icons-4nDFv1Lq-D6-m-VWM.cjs} +2 -2
  98. package/components/{luzmo-icons-DbwDQtuO-QG0fLECn.js → luzmo-icons-4nDFv1Lq-DffGNBpO.js} +7 -7
  99. package/components/{nl-gdQCG4WV.js → nl-CMVty5rf.js} +0 -1
  100. package/components/{nl-DxdBIXDd.cjs → nl-DHgf0PUG.cjs} +1 -1
  101. package/components/{periods.const-7sXlqgEo.cjs → periods.const-CTd6Hskz.cjs} +1 -1
  102. package/components/{periods.const-B7FKokcH.js → periods.const-D77iT3rK.js} +1 -1
  103. package/components/{set-locale-DCPlazsZ.cjs → set-locale-CSL8WaxL.cjs} +1 -1
  104. package/components/{set-locale-GI34z_M7.js → set-locale-CW9yA503.js} +1 -1
  105. package/components/slot-contents-picker/index.cjs +1 -1
  106. package/components/slot-contents-picker/index.js +5 -5
  107. package/components/slot-menu/index.cjs +1 -1
  108. package/components/slot-menu/index.js +1 -1
  109. package/components/{text-field-BIADXoLC-B9oE05VF.js → text-field-ol9Ed5lQ-DbpeM4EP.js} +1 -1
  110. package/components/{text-field-BIADXoLC-B8w9TVmS.cjs → text-field-ol9Ed5lQ-cRqtIf_0.cjs} +1 -1
  111. package/components/venn-diagram-options.config-CGUMA930.js +23 -0
  112. package/components/venn-diagram-options.config-mPXMR1CE.cjs +20 -0
  113. package/item-definitions/area-chart/area-chart-context.config.d.ts +21 -0
  114. package/item-definitions/bar-chart/bar-chart-context.config.d.ts +21 -0
  115. package/item-definitions/box-plot/box-plot-context.config.d.ts +18 -0
  116. package/item-definitions/bubble-chart/bubble-chart-context.config.d.ts +21 -0
  117. package/item-definitions/bullet-chart/bullet-chart-context.config.d.ts +21 -0
  118. package/item-definitions/choropleth-map/choropleth-map-context.config.d.ts +21 -0
  119. package/item-definitions/circle-pack-chart/circle-pack-chart-context.config.d.ts +18 -0
  120. package/item-definitions/circular-gauge/circular-gauge-context.config.d.ts +18 -0
  121. package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +1 -1
  122. package/item-definitions/column-chart/column-chart-context.config.d.ts +21 -0
  123. package/item-definitions/combination-chart/combination-chart-context.config.d.ts +18 -0
  124. package/item-definitions/conditional-number/conditional-number-context.config.d.ts +18 -0
  125. package/item-definitions/context-helpers.d.ts +2 -0
  126. package/item-definitions/date-filter/date-filter-context.config.d.ts +15 -0
  127. package/item-definitions/donut-chart/donut-chart-context.config.d.ts +18 -0
  128. package/item-definitions/dropdown-filter/dropdown-filter-context.config.d.ts +15 -0
  129. package/item-definitions/evolution-number/evolution-number-context.config.d.ts +18 -0
  130. package/item-definitions/funnel-chart/funnel-chart-context.config.d.ts +18 -0
  131. package/item-definitions/heat-map/heat-map-context.config.d.ts +18 -0
  132. package/item-definitions/heat-table/heat-table-context.config.d.ts +21 -0
  133. package/item-definitions/hexbin-map/hexbin-map-context.config.d.ts +18 -0
  134. package/item-definitions/image/image-context.config.d.ts +11 -0
  135. package/item-definitions/item-context.config.d.ts +44 -0
  136. package/item-definitions/item-options.config.d.ts +44 -0
  137. package/item-definitions/line-chart/line-chart-context.config.d.ts +21 -0
  138. package/item-definitions/marker-map/marker-map-context.config.d.ts +18 -0
  139. package/item-definitions/ohlc-chart/ohlc-chart-context.config.d.ts +27 -0
  140. package/item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-context.config.d.ts +18 -0
  141. package/item-definitions/pivot-table/pivot-table-context.config.d.ts +21 -0
  142. package/item-definitions/pyramid-chart/pyramid-chart-context.config.d.ts +21 -0
  143. package/item-definitions/radar-chart/radar-chart-context.config.d.ts +21 -0
  144. package/item-definitions/regular-table/regular-table-context.config.d.ts +15 -0
  145. package/item-definitions/route-map/route-map-context.config.d.ts +24 -0
  146. package/item-definitions/sankey-diagram/sankey-diagram-context.config.d.ts +24 -0
  147. package/item-definitions/scatter-plot/scatter-plot-context.config.d.ts +27 -0
  148. package/item-definitions/search-filter/search-filter-context.config.d.ts +15 -0
  149. package/item-definitions/slicer-filter/slicer-filter-context.config.d.ts +18 -0
  150. package/item-definitions/slider-filter/slider-filter-context.config.d.ts +15 -0
  151. package/item-definitions/spacer/spacer-context.config.d.ts +11 -0
  152. package/item-definitions/speedometer-chart/speedometer-chart-context.config.d.ts +18 -0
  153. package/item-definitions/spike-map/spike-map-context.config.d.ts +21 -0
  154. package/item-definitions/strip-plot/strip-plot-context.config.d.ts +18 -0
  155. package/item-definitions/sunburst-chart/sunburst-chart-context.config.d.ts +18 -0
  156. package/item-definitions/symbol-map/symbol-map-context.config.d.ts +21 -0
  157. package/item-definitions/text/text-context.config.d.ts +11 -0
  158. package/item-definitions/treemap-chart/treemap-chart-context.config.d.ts +21 -0
  159. package/item-definitions/venn-diagram/venn-diagram-context.config.d.ts +21 -0
  160. package/item-definitions/venn-diagram/venn-diagram-options.config.d.ts +2 -0
  161. package/item-definitions/video/video-context.config.d.ts +11 -0
  162. package/item-definitions/wordcloud-chart/wordcloud-chart-context.config.d.ts +21 -0
  163. package/package.json +11 -1
  164. package/components/index-BYO1LMBt.cjs +0 -249
  165. package/components/index-D_jFGBMs.js +0 -174
  166. package/components/index-Dy_5M3M5.cjs +0 -42
@@ -18,19 +18,19 @@
18
18
  * SOFTWARE.
19
19
  * */
20
20
  import { a as io, z as m, I as jo, R as N, m as ie } from "./base-D76d76ww-BGkuhs54.js";
21
- import { n as ut } from "./directive-helpers-Cm6gitnu-CeYtlPO9.js";
22
- import { m as wo, d as V } from "./if-defined-DOaE2coe-CNT45Xcl.js";
23
- import { D as Se, g as ua, v as ha, s as da } from "./luzmo-icons-DbwDQtuO-QG0fLECn.js";
21
+ import { n as ht } from "./directive-helpers-Cm6gitnu-CeYtlPO9.js";
22
+ import { m as wo, d as J } from "./if-defined-DOaE2coe-CNT45Xcl.js";
23
+ import { D as Se, g as ha, v as da, s as ma } from "./luzmo-icons-4nDFv1Lq-DffGNBpO.js";
24
24
  import { r as Fe } from "./focusable-BxtpnzWp-DJQkL8Zv.js";
25
- import { w as ma, a as pa } from "./async-directive-BfcqVjDp-BCT-lA4F.js";
26
- import { l as ht, u as dt } from "./streaming-listener-CP-JE6Fa-9MH0gENR.js";
27
- import { i as ga } from "./text-field-BIADXoLC-B9oE05VF.js";
28
- import { p as fa, d as ba, a as za } from "./index-DUF6bALI.js";
25
+ import { w as pa, a as ga } from "./async-directive-BfcqVjDp-BCT-lA4F.js";
26
+ import { l as dt, u as mt } from "./streaming-listener-CP-JE6Fa-9MH0gENR.js";
27
+ import { i as fa } from "./text-field-ol9Ed5lQ-DbpeM4EP.js";
28
+ import { p as ba, d as za, a as va } from "./index-DUF6bALI.js";
29
29
  import "./index-CskV_bXp.js";
30
30
  import "./index-CTVNGPeT.js";
31
- import { o as Qe } from "./when-CDK1Tt5Y-C6ViXC43.js";
32
- import { a as va } from "./mutation-controller-DH7YOCyj-E7gpCmwh.js";
33
- import { m as wa } from "./roving-tabindex-DOg4z6ZU-dufnVmvL.js";
31
+ import { o as or } from "./when-CDK1Tt5Y-C6ViXC43.js";
32
+ import { a as wa } from "./mutation-controller-DH7YOCyj-E7gpCmwh.js";
33
+ import { m as ya } from "./roving-tabindex-DOg4z6ZU-dufnVmvL.js";
34
34
  /*! * Lucero - The design system for Luzmo.
35
35
  *
36
36
  * Copyright © 2025 Luzmo
@@ -48,13 +48,13 @@ import { m as wa } from "./roving-tabindex-DOg4z6ZU-dufnVmvL.js";
48
48
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
49
  * SOFTWARE.
50
50
  * */
51
- const ya = ':host{inline-size:var(--luzmo-color-loupe-width, 48px);block-size:var(--luzmo-color-loupe-height, 64px);transform:translateY(var(--luzmo-color-loupe-animation-distance, 8px));opacity:0;transform-origin:bottom;pointer-events:none;filter:drop-shadow(var(--luzmo-color-loupe-drop-shadow-x, 0) var(--luzmo-color-loupe-drop-shadow-y, 2px) var(--luzmo-color-loupe-drop-shadow-blur, 8px) var(--luzmo-color-loupe-drop-shadow-color, rgba(0, 0, 0, .25)));transition:transform .1s ease-in-out,opacity .125s ease-in-out;position:absolute;inset-block-end:calc(var(--luzmo-color-handle-size, 16px) - var(--luzmo-color-handle-outer-border-width, 1px) + var(--luzmo-color-loupe-offset, 12px));inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2)}:host:dir(rtl),:host([dir=rtl]){inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.luzmo-color-loupe-inner-border{fill:var(--luzmo-picked-color);stroke:var(--luzmo-color-loupe-inner-border-color, rgba(0, 0, 0, .1));stroke-width:var(--luzmo-color-loupe-inner-border-width, 1px)}.luzmo-color-loupe-outer-border{fill:none;stroke:var(--luzmo-color-loupe-outer-border-color, white);stroke-width:calc(var(--luzmo-color-loupe-outer-border-width, 2px) + 2px);transform:translate(calc((var(--luzmo-color-loupe-outer-border-width, 2px) + 2px) / 2))}.luzmo-color-loupe-checkerboard-pattern{fill:var(--luzmo-color-loupe-checkerboard-dark-color, rgb(230, 230, 230))}.luzmo-color-loupe-checkerboard-background{fill:var(--luzmo-color-loupe-checkerboard-light-color, rgb(255, 255, 255))}.luzmo-color-loupe-checkerboard-fill{fill:var(--luzmo-color-loupe-checkerboard-fill, url(#checkerboard-primary))}@media (forced-colors: active){:host{--highcontrast-colorloupe-outer-border-color: CanvasText}}svg{width:inherit;height:inherit}.loupe-clipped{clip-path:path("M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ")}.opacity-checkerboard{position:absolute;top:2px;left:2px;block-size:100%;inline-size:100%}.opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2)}';
52
- var xa = Object.defineProperty, mt = (r, o, e, t) => {
51
+ const xa = ':host{inline-size:var(--luzmo-color-loupe-width, 48px);block-size:var(--luzmo-color-loupe-height, 64px);transform:translateY(var(--luzmo-color-loupe-animation-distance, 8px));opacity:0;transform-origin:bottom;pointer-events:none;filter:drop-shadow(var(--luzmo-color-loupe-drop-shadow-x, 0) var(--luzmo-color-loupe-drop-shadow-y, 2px) var(--luzmo-color-loupe-drop-shadow-blur, 8px) var(--luzmo-color-loupe-drop-shadow-color, rgba(0, 0, 0, .25)));transition:transform .1s ease-in-out,opacity .125s ease-in-out;position:absolute;inset-block-end:calc(var(--luzmo-color-handle-size, 16px) - var(--luzmo-color-handle-outer-border-width, 1px) + var(--luzmo-color-loupe-offset, 12px));inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2)}:host:dir(rtl),:host([dir=rtl]){inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.luzmo-color-loupe-inner-border{fill:var(--luzmo-picked-color);stroke:var(--luzmo-color-loupe-inner-border-color, rgba(0, 0, 0, .1));stroke-width:var(--luzmo-color-loupe-inner-border-width, 1px)}.luzmo-color-loupe-outer-border{fill:none;stroke:var(--luzmo-color-loupe-outer-border-color, white);stroke-width:calc(var(--luzmo-color-loupe-outer-border-width, 2px) + 2px);transform:translate(calc((var(--luzmo-color-loupe-outer-border-width, 2px) + 2px) / 2))}.luzmo-color-loupe-checkerboard-pattern{fill:var(--luzmo-color-loupe-checkerboard-dark-color, rgb(230, 230, 230))}.luzmo-color-loupe-checkerboard-background{fill:var(--luzmo-color-loupe-checkerboard-light-color, rgb(255, 255, 255))}.luzmo-color-loupe-checkerboard-fill{fill:var(--luzmo-color-loupe-checkerboard-fill, url(#checkerboard-primary))}@media (forced-colors: active){:host{--highcontrast-colorloupe-outer-border-color: CanvasText}}svg{width:inherit;height:inherit}.loupe-clipped{clip-path:path("M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ")}.opacity-checkerboard{position:absolute;top:2px;left:2px;block-size:100%;inline-size:100%}.opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2)}';
52
+ var Ca = Object.defineProperty, pt = (r, o, e, t) => {
53
53
  for (var a = void 0, l = r.length - 1, s; l >= 0; l--)
54
54
  (s = r[l]) && (a = s(o, e, a) || a);
55
- return a && xa(o, e, a), a;
55
+ return a && Ca(o, e, a), a;
56
56
  };
57
- const pt = class extends jo {
57
+ const gt = class extends jo {
58
58
  constructor() {
59
59
  super(...arguments), this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
60
60
  }
@@ -100,14 +100,14 @@ const pt = class extends jo {
100
100
  `;
101
101
  }
102
102
  };
103
- pt.styles = io(ya);
104
- let gt = pt;
105
- mt([
103
+ gt.styles = io(xa);
104
+ let ft = gt;
105
+ pt([
106
106
  m({ type: Boolean, reflect: !0 })
107
- ], gt.prototype, "open");
108
- mt([
107
+ ], ft.prototype, "open");
108
+ pt([
109
109
  m({ type: String })
110
- ], gt.prototype, "color");
110
+ ], ft.prototype, "color");
111
111
  /*! * Lucero - The design system for Luzmo.
112
112
  *
113
113
  * Copyright © 2025 Luzmo
@@ -125,20 +125,20 @@ mt([
125
125
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
126
126
  * SOFTWARE.
127
127
  * */
128
- const Ca = () => {
128
+ const ka = () => {
129
129
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
130
130
  const r = document.createElement("style");
131
131
  r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(r);
132
132
  }
133
133
  };
134
- Ca();
135
- const ka = ':host{touch-action:none;transition:inline-size var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),block-size var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),border-width var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),margin-inline var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),margin-block var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out)}:host{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2);background-position:50%}:host(:focus){outline:none}:host{z-index:1;box-sizing:border-box;inline-size:var(--luzmo-color-handle-size, 16px);block-size:var(--luzmo-color-handle-size, 16px);margin-inline:calc(var(--luzmo-color-handle-size, 16px) / 2 * -1);margin-block:calc(var(--luzmo-color-handle-size, 16px) / 2 * -1);border-width:var(--luzmo-color-handle-border-width, 2px);border-color:var(--luzmo-color-handle-border-color, rgb(255, 255, 255));box-shadow:0 0 0 var(--luzmo-color-handle-outer-border-width, 1px) var(--luzmo-color-handle-outer-border-color, rgba(0, 0, 0, .42));transition:all var(--luzmo-color-handle-animation-duration, 0) var(--luzmo-color-handle-animation-easing, ease-in-out);border-style:solid}:host,:host:after{border-radius:100%;display:block;position:absolute}:host:after{content:"";inset-inline:calc(50% - var(--luzmo-color-handle-hitarea-size, 24px) / 2);inset-block:calc(50% - var(--luzmo-color-handle-hitarea-size, 24px) / 2);inline-size:var(--luzmo-color-handle-hitarea-size, 24px);block-size:var(--luzmo-color-handle-hitarea-size, 24px);border-radius:var(--luzmo-color-handle-hitarea-border-radius, 100%)}:host([focused]),:host(:focus-visible){inline-size:var(--luzmo-color-handle-focused-size, 32px);block-size:var(--luzmo-color-handle-focused-size, 32px);margin-inline:calc(var(--luzmo-color-handle-size, 16px) * -1);margin-block:calc(var(--luzmo-color-handle-size, 16px) * -1);outline:none}:host([disabled]){pointer-events:none;border-color:var(--highcontrast-color-handle-border-color-disabled, var(--luzmo-color-handle-border-color-disabled, var(--luzmo-font-color-disabled)));background:var(--highcontrast-color-handle-fill-color-disabled, var(--luzmo-color-handle-fill-color-disabled, var(--luzmo-font-color-disabled)));box-shadow:none}:host([disabled]) .inner{display:none}.inner{inline-size:100%;block-size:100%;box-shadow:inset 0 0 0 var(--luzmo-color-handle-inner-border-width, var(--luzmo-border-width)) var(--luzmo-color-handle-inner-border-color, rgba(0, 0, 0, .42));background-color:var(--luzmo-picked-color);border-radius:100%}@media (forced-colors: active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-color-handle-border-color-disabled: GrayText;--highcontrast-color-handle-fill-color-disabled: Canvas}}';
136
- var Ma = Object.defineProperty, ce = (r, o, e, t) => {
134
+ ka();
135
+ const Ma = ':host{touch-action:none;transition:inline-size var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),block-size var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),border-width var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),margin-inline var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out),margin-block var(--luzmo-color-handle-animation-duration, .13s) var(--luzmo-color-handle-animation-easing, ease-in-out)}:host{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2);background-position:50%}:host(:focus){outline:none}:host{z-index:1;box-sizing:border-box;inline-size:var(--luzmo-color-handle-size, 16px);block-size:var(--luzmo-color-handle-size, 16px);margin-inline:calc(var(--luzmo-color-handle-size, 16px) / 2 * -1);margin-block:calc(var(--luzmo-color-handle-size, 16px) / 2 * -1);border-width:var(--luzmo-color-handle-border-width, 2px);border-color:var(--luzmo-color-handle-border-color, rgb(255, 255, 255));box-shadow:0 0 0 var(--luzmo-color-handle-outer-border-width, 1px) var(--luzmo-color-handle-outer-border-color, rgba(0, 0, 0, .42));transition:all var(--luzmo-color-handle-animation-duration, 0) var(--luzmo-color-handle-animation-easing, ease-in-out);border-style:solid}:host,:host:after{border-radius:100%;display:block;position:absolute}:host:after{content:"";inset-inline:calc(50% - var(--luzmo-color-handle-hitarea-size, 24px) / 2);inset-block:calc(50% - var(--luzmo-color-handle-hitarea-size, 24px) / 2);inline-size:var(--luzmo-color-handle-hitarea-size, 24px);block-size:var(--luzmo-color-handle-hitarea-size, 24px);border-radius:var(--luzmo-color-handle-hitarea-border-radius, 100%)}:host([focused]),:host(:focus-visible){inline-size:var(--luzmo-color-handle-focused-size, 32px);block-size:var(--luzmo-color-handle-focused-size, 32px);margin-inline:calc(var(--luzmo-color-handle-size, 16px) * -1);margin-block:calc(var(--luzmo-color-handle-size, 16px) * -1);outline:none}:host([disabled]){pointer-events:none;border-color:var(--highcontrast-color-handle-border-color-disabled, var(--luzmo-color-handle-border-color-disabled, var(--luzmo-font-color-disabled)));background:var(--highcontrast-color-handle-fill-color-disabled, var(--luzmo-color-handle-fill-color-disabled, var(--luzmo-font-color-disabled)));box-shadow:none}:host([disabled]) .inner{display:none}.inner{inline-size:100%;block-size:100%;box-shadow:inset 0 0 0 var(--luzmo-color-handle-inner-border-width, var(--luzmo-border-width)) var(--luzmo-color-handle-inner-border-color, rgba(0, 0, 0, .42));background-color:var(--luzmo-picked-color);border-radius:100%}@media (forced-colors: active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-color-handle-border-color-disabled: GrayText;--highcontrast-color-handle-fill-color-disabled: Canvas}}';
136
+ var $a = Object.defineProperty, ce = (r, o, e, t) => {
137
137
  for (var a = void 0, l = r.length - 1, s; l >= 0; l--)
138
138
  (s = r[l]) && (a = s(o, e, a) || a);
139
- return a && Ma(o, e, a), a;
139
+ return a && $a(o, e, a), a;
140
140
  };
141
- const ft = class extends jo {
141
+ const bt = class extends jo {
142
142
  constructor() {
143
143
  super(...arguments), this.disabled = !1, this.focused = !1, this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
144
144
  }
@@ -161,8 +161,8 @@ const ft = class extends jo {
161
161
  super.firstUpdated(o), this.addEventListener("pointerdown", this.handlePointerdown), this.addEventListener("pointerup", this.handlePointerup), this.addEventListener("pointercancel", this.handlePointerup);
162
162
  }
163
163
  };
164
- ft.styles = io(ka);
165
- let Ro = ft;
164
+ bt.styles = io(Ma);
165
+ let Ro = bt;
166
166
  ce([
167
167
  m({ type: Boolean, reflect: !0 })
168
168
  ], Ro.prototype, "disabled");
@@ -176,7 +176,7 @@ ce([
176
176
  m({ type: String })
177
177
  ], Ro.prototype, "color");
178
178
  customElements.get("luzmo-color-handle") || customElements.define("luzmo-color-handle", Ro);
179
- const $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
179
+ const Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
180
180
  __proto__: null,
181
181
  LuzmoColorHandle: Ro
182
182
  }, Symbol.toStringTag, { value: "Module" }));
@@ -197,7 +197,7 @@ const $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
197
197
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
198
198
  * SOFTWARE.
199
199
  * */
200
- var Sa = Object.defineProperty, _a = (r, o, e) => o in r ? Sa(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, or = (r, o, e) => _a(r, typeof o != "symbol" ? o + "" : o, e);
200
+ var _a = Object.defineProperty, Ea = (r, o, e) => o in r ? _a(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, er = (r, o, e) => Ea(r, typeof o != "symbol" ? o + "" : o, e);
201
201
  function $(r, o) {
202
202
  let e = r.length;
203
203
  Array.isArray(r[0]) || (r = [r]), Array.isArray(o[0]) || (o = o.map((s) => [s]));
@@ -221,7 +221,7 @@ function ho(r) {
221
221
  return (Object.prototype.toString.call(r).match(/^\[object\s+(.*?)\]$/)[1] || "").toLowerCase();
222
222
  }
223
223
  function ae(r, { precision: o, unit: e }) {
224
- return mo(r) ? "none" : bt(r, o) + (e ?? "");
224
+ return mo(r) ? "none" : zt(r, o) + (e ?? "");
225
225
  }
226
226
  function mo(r) {
227
227
  return Number.isNaN(r) || r instanceof Number && (r == null ? void 0 : r.none);
@@ -229,7 +229,7 @@ function mo(r) {
229
229
  function R(r) {
230
230
  return mo(r) ? 0 : r;
231
231
  }
232
- function bt(r, o) {
232
+ function zt(r, o) {
233
233
  if (r === 0)
234
234
  return 0;
235
235
  let e = ~~r, t = 0;
@@ -237,13 +237,13 @@ function bt(r, o) {
237
237
  const a = 10 ** (o - t);
238
238
  return Math.floor(r * a + 0.5) / a;
239
239
  }
240
- const Ea = {
240
+ const Aa = {
241
241
  deg: 1,
242
242
  grad: 0.9,
243
243
  rad: 180 / Math.PI,
244
244
  turn: 360
245
245
  };
246
- function zt(r) {
246
+ function vt(r) {
247
247
  if (!r)
248
248
  return;
249
249
  r = r.trim();
@@ -255,7 +255,7 @@ function zt(r) {
255
255
  let c = i.match(t), u = i;
256
256
  if (c) {
257
257
  let h = c[0], d = u.slice(0, -h.length);
258
- h === "%" ? (u = new Number(d / 100), u.type = "<percentage>") : (u = new Number(d * Ea[h]), u.type = "<angle>", u.unit = h);
258
+ h === "%" ? (u = new Number(d / 100), u.type = "<percentage>") : (u = new Number(d * Aa[h]), u.type = "<angle>", u.unit = h);
259
259
  } else e.test(u) ? (u = new Number(u), u.type = "<number>") : u === "none" && (u = new Number(NaN), u.none = !0);
260
260
  n.startsWith("/") && (u = u instanceof Number ? u : new Number(u), u.alpha = !0), typeof u == "object" && u instanceof Number && (u.raw = i), s.push(u);
261
261
  }), {
@@ -268,19 +268,19 @@ function zt(r) {
268
268
  };
269
269
  }
270
270
  }
271
- function vt(r) {
271
+ function wt(r) {
272
272
  return r[r.length - 1];
273
273
  }
274
- function Oo(r, o, e) {
274
+ function Io(r, o, e) {
275
275
  return isNaN(r) ? o : isNaN(o) ? r : r + (o - r) * e;
276
276
  }
277
- function wt(r, o, e) {
277
+ function yt(r, o, e) {
278
278
  return (e - r) / (o - r);
279
279
  }
280
280
  function Le(r, o, e) {
281
- return Oo(o[0], o[1], wt(r[0], r[1], e));
281
+ return Io(o[0], o[1], yt(r[0], r[1], e));
282
282
  }
283
- function yt(r) {
283
+ function xt(r) {
284
284
  return r.map((o) => o.split("|").map((e) => {
285
285
  e = e.trim();
286
286
  let t = e.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);
@@ -291,7 +291,7 @@ function yt(r) {
291
291
  return e;
292
292
  }));
293
293
  }
294
- function xt(r, o, e) {
294
+ function Ct(r, o, e) {
295
295
  return Math.max(Math.min(e, o), r);
296
296
  }
297
297
  function ue(r, o) {
@@ -303,35 +303,35 @@ function to(r, o) {
303
303
  function je(r, o) {
304
304
  return o === 0 ? 0 : r / o;
305
305
  }
306
- function Ct(r, o, e = 0, t = r.length) {
306
+ function kt(r, o, e = 0, t = r.length) {
307
307
  for (; e < t; ) {
308
308
  const a = e + t >> 1;
309
309
  r[a] < o ? e = a + 1 : t = a;
310
310
  }
311
311
  return e;
312
312
  }
313
- var Aa = /* @__PURE__ */ Object.freeze({
313
+ var Ra = /* @__PURE__ */ Object.freeze({
314
314
  __proto__: null,
315
- bisectLeft: Ct,
316
- clamp: xt,
315
+ bisectLeft: kt,
316
+ clamp: Ct,
317
317
  copySign: ue,
318
- interpolate: Oo,
319
- interpolateInv: wt,
318
+ interpolate: Io,
319
+ interpolateInv: yt,
320
320
  isNone: mo,
321
321
  isString: Do,
322
- last: vt,
322
+ last: wt,
323
323
  mapRange: Le,
324
324
  multiplyMatrices: $,
325
- parseCoordGrammar: yt,
326
- parseFunction: zt,
325
+ parseCoordGrammar: xt,
326
+ parseFunction: vt,
327
327
  serializeNumber: ae,
328
328
  skipNone: R,
329
329
  spow: to,
330
- toPrecision: bt,
330
+ toPrecision: zt,
331
331
  type: ho,
332
332
  zdiv: je
333
333
  });
334
- class Ra {
334
+ class Pa {
335
335
  add(o, e, t) {
336
336
  if (typeof arguments[0] != "string") {
337
337
  for (var o in arguments[0])
@@ -348,13 +348,13 @@ class Ra {
348
348
  });
349
349
  }
350
350
  }
351
- const po = new Ra();
352
- var er, rr, tr, G = {
351
+ const po = new Pa();
352
+ var rr, tr, ar, G = {
353
353
  gamut_mapping: "css",
354
354
  precision: 5,
355
355
  deltaE: "76",
356
356
  // Default deltaE method
357
- verbose: ((tr = (rr = (er = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : er.env) == null ? void 0 : rr.NODE_ENV) == null ? void 0 : tr.toLowerCase()) !== "test",
357
+ verbose: ((ar = (tr = (rr = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : rr.env) == null ? void 0 : tr.NODE_ENV) == null ? void 0 : ar.toLowerCase()) !== "test",
358
358
  warn: function(r) {
359
359
  var o, e;
360
360
  this.verbose && ((e = (o = globalThis == null ? void 0 : globalThis.console) == null ? void 0 : o.warn) == null || e.call(o, r));
@@ -386,11 +386,11 @@ function le(r, o, e, t = {}) {
386
386
  return $(a.M, a.XYZ);
387
387
  throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.");
388
388
  }
389
- const Pa = /* @__PURE__ */ new Set(["<number>", "<percentage>", "<angle>"]);
390
- function ar(r, o, e, t) {
389
+ const Ha = /* @__PURE__ */ new Set(["<number>", "<percentage>", "<angle>"]);
390
+ function lr(r, o, e, t) {
391
391
  return Object.entries(r.coords).map(([a, l], s) => {
392
392
  let n = o.coordGrammar[s], i = t[s], c = i == null ? void 0 : i.type, u;
393
- if (i.none ? u = n.find((f) => Pa.has(f)) : u = n.find((f) => f == c), !u) {
393
+ if (i.none ? u = n.find((f) => Ha.has(f)) : u = n.find((f) => f == c), !u) {
394
394
  let f = l.name || a;
395
395
  throw new TypeError(`${c ?? i.raw} not allowed for ${f} in ${e}()`);
396
396
  }
@@ -400,12 +400,12 @@ function ar(r, o, e, t) {
400
400
  return h && d && (t[s] = Le(h, d, t[s])), u;
401
401
  });
402
402
  }
403
- function kt(r, { meta: o } = {}) {
403
+ function Mt(r, { meta: o } = {}) {
404
404
  var e, t, a, l;
405
405
  let s = { str: (e = String(r)) == null ? void 0 : e.trim() };
406
406
  if (po.run("parse-start", s), s.color)
407
407
  return s.color;
408
- if (s.parsed = zt(s.str), s.parsed) {
408
+ if (s.parsed = vt(s.str), s.parsed) {
409
409
  let n = s.parsed.name;
410
410
  if (n === "color") {
411
411
  let i = s.parsed.args.shift(), c = i.startsWith("--") ? i.substring(2) : `--${i}`, u = [i, c], h = s.parsed.rawArgs.indexOf("/") > 0 ? s.parsed.args.pop() : 1;
@@ -414,7 +414,7 @@ function kt(r, { meta: o } = {}) {
414
414
  if (p && (u.includes(p.id) || (t = p.ids) != null && t.filter((z) => u.includes(z)).length)) {
415
415
  const z = Object.keys(b.coords).map((y, C) => s.parsed.args[C] || 0);
416
416
  let w;
417
- return p.coordGrammar && (w = ar(b, p, "color", z)), o && Object.assign(o, { formatId: "color", types: w }), p.id.startsWith("--") && !i.startsWith("--") && G.warn(`${b.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${p.id}) instead of color(${i}).`), i.startsWith("--") && !p.id.startsWith("--") && G.warn(`${b.name} is a standard space and supported in the CSS spec. Use color(${p.id}) instead of prefixed color(${i}).`), { spaceId: b.id, coords: z, alpha: h };
417
+ return p.coordGrammar && (w = lr(b, p, "color", z)), o && Object.assign(o, { formatId: "color", types: w }), p.id.startsWith("--") && !i.startsWith("--") && G.warn(`${b.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${p.id}) instead of color(${i}).`), i.startsWith("--") && !p.id.startsWith("--") && G.warn(`${b.name} is a standard space and supported in the CSS spec. Use color(${p.id}) instead of prefixed color(${i}).`), { spaceId: b.id, coords: z, alpha: h };
418
418
  }
419
419
  }
420
420
  let d = "", f = i in g.registry ? i : c;
@@ -428,9 +428,9 @@ function kt(r, { meta: o } = {}) {
428
428
  let c = i.getFormat(n);
429
429
  if (c && c.type === "function") {
430
430
  let u = 1;
431
- (c.lastAlpha || vt(s.parsed.args).alpha) && (u = s.parsed.args.pop());
431
+ (c.lastAlpha || wt(s.parsed.args).alpha) && (u = s.parsed.args.pop());
432
432
  let h = s.parsed.args, d;
433
- return c.coordGrammar && (d = ar(i, c, n, h)), o && Object.assign(o, { formatId: c.name, types: d }), {
433
+ return c.coordGrammar && (d = lr(i, c, n, h)), o && Object.assign(o, { formatId: c.name, types: d }), {
434
434
  spaceId: i.id,
435
435
  coords: h,
436
436
  alpha: u
@@ -454,14 +454,14 @@ function v(r) {
454
454
  return r.map(v);
455
455
  if (!r)
456
456
  throw new TypeError("Empty color reference");
457
- Do(r) && (r = kt(r));
457
+ Do(r) && (r = Mt(r));
458
458
  let o = r.space || r.spaceId;
459
459
  return o instanceof g || (r.space = g.get(o)), r.alpha === void 0 && (r.alpha = 1), r;
460
460
  }
461
- const Ha = 75e-6, Ee = class oo {
461
+ const Na = 75e-6, Ee = class eo {
462
462
  constructor(o) {
463
463
  var e;
464
- this.id = o.id, this.name = o.name, this.base = o.base ? oo.get(o.base) : null, this.aliases = o.aliases, this.base && (this.fromBase = o.fromBase, this.toBase = o.toBase);
464
+ this.id = o.id, this.name = o.name, this.base = o.base ? eo.get(o.base) : null, this.aliases = o.aliases, this.base && (this.fromBase = o.fromBase, this.toBase = o.toBase);
465
465
  let t = o.coords ?? this.base.coords;
466
466
  for (let l in t)
467
467
  "name" in t[l] || (t[l].name = l);
@@ -475,14 +475,14 @@ const Ha = 75e-6, Ee = class oo {
475
475
  (e = this.formats.color) != null && e.id || (this.formats.color = {
476
476
  ...this.formats.color ?? {},
477
477
  id: o.cssId || this.id
478
- }), o.gamutSpace ? this.gamutSpace = o.gamutSpace === "self" ? this : oo.get(o.gamutSpace) : this.isPolar ? this.gamutSpace = this.base : this.gamutSpace = this, this.gamutSpace.isUnbounded && (this.inGamut = (l, s) => !0), this.referred = o.referred, Object.defineProperty(this, "path", {
479
- value: Na(this).reverse(),
478
+ }), o.gamutSpace ? this.gamutSpace = o.gamutSpace === "self" ? this : eo.get(o.gamutSpace) : this.isPolar ? this.gamutSpace = this.base : this.gamutSpace = this, this.gamutSpace.isUnbounded && (this.inGamut = (l, s) => !0), this.referred = o.referred, Object.defineProperty(this, "path", {
479
+ value: Ba(this).reverse(),
480
480
  writable: !1,
481
481
  enumerable: !0,
482
482
  configurable: !0
483
483
  }), po.run("colorspace-init-end", this);
484
484
  }
485
- inGamut(o, { epsilon: e = Ha } = {}) {
485
+ inGamut(o, { epsilon: e = Na } = {}) {
486
486
  if (!this.equals(this.gamutSpace))
487
487
  return o = this.to(this.gamutSpace, o), this.gamutSpace.inGamut(o, { epsilon: e });
488
488
  let t = Object.values(this.coords);
@@ -512,9 +512,9 @@ const Ha = 75e-6, Ee = class oo {
512
512
  }
513
513
  getFormat(o) {
514
514
  if (typeof o == "object")
515
- return o = lr(o, this), o;
515
+ return o = sr(o, this), o;
516
516
  let e;
517
- return o === "default" ? e = Object.values(this.formats)[0] : e = this.formats[o], e ? (e = lr(e, this), e) : null;
517
+ return o === "default" ? e = Object.values(this.formats)[0] : e = this.formats[o], e ? (e = sr(e, this), e) : null;
518
518
  }
519
519
  /**
520
520
  * Check if this color space is the same as another color space reference.
@@ -530,7 +530,7 @@ const Ha = 75e-6, Ee = class oo {
530
530
  const n = v(o);
531
531
  [o, e] = [n.space, n.coords];
532
532
  }
533
- if (o = oo.get(o), this.equals(o))
533
+ if (o = eo.get(o), this.equals(o))
534
534
  return e;
535
535
  e = e.map((n) => Number.isNaN(n) ? 0 : n);
536
536
  let t = this.path, a = o.path, l, s;
@@ -549,7 +549,7 @@ const Ha = 75e-6, Ee = class oo {
549
549
  const t = v(o);
550
550
  [o, e] = [t.space, t.coords];
551
551
  }
552
- return o = oo.get(o), o.to(this, e);
552
+ return o = eo.get(o), o.to(this, e);
553
553
  }
554
554
  toString() {
555
555
  return `${this.name} (${this.id})`;
@@ -564,7 +564,7 @@ const Ha = 75e-6, Ee = class oo {
564
564
  }
565
565
  // Returns array of unique color spaces
566
566
  static get all() {
567
- return [...new Set(Object.values(oo.registry))];
567
+ return [...new Set(Object.values(eo.registry))];
568
568
  }
569
569
  static register(o, e) {
570
570
  if (arguments.length === 1 && (e = arguments[0], o = e.id), e = this.get(e), this.registry[o] && this.registry[o] !== e)
@@ -579,16 +579,16 @@ const Ha = 75e-6, Ee = class oo {
579
579
  * @param {ColorSpace | string} name
580
580
  */
581
581
  static get(o, ...e) {
582
- if (!o || o instanceof oo)
582
+ if (!o || o instanceof eo)
583
583
  return o;
584
584
  if (ho(o) === "string") {
585
- let t = oo.registry[o.toLowerCase()];
585
+ let t = eo.registry[o.toLowerCase()];
586
586
  if (!t)
587
587
  throw new TypeError(`No color space found with id = "${o}"`);
588
588
  return t;
589
589
  }
590
590
  if (e.length)
591
- return oo.get(...e);
591
+ return eo.get(...e);
592
592
  throw new TypeError(`${o} is not a valid color space`);
593
593
  }
594
594
  /**
@@ -602,14 +602,14 @@ const Ha = 75e-6, Ee = class oo {
602
602
  static resolveCoord(o, e) {
603
603
  var t;
604
604
  let a = ho(o), l, s;
605
- if (a === "string" ? o.includes(".") ? [l, s] = o.split(".") : [l, s] = [, o] : Array.isArray(o) ? [l, s] = o : (l = o.space, s = o.coordId), l = oo.get(l), l || (l = e), !l)
605
+ if (a === "string" ? o.includes(".") ? [l, s] = o.split(".") : [l, s] = [, o] : Array.isArray(o) ? [l, s] = o : (l = o.space, s = o.coordId), l = eo.get(l), l || (l = e), !l)
606
606
  throw new TypeError(`Cannot resolve coordinate reference ${o}: No color space specified and relative references are not allowed here`);
607
607
  if (a = ho(s), a === "number" || a === "string" && s >= 0) {
608
608
  let c = Object.entries(l.coords)[s];
609
609
  if (c)
610
610
  return { space: l, id: c[0], index: s, ...c[1] };
611
611
  }
612
- l = oo.get(l);
612
+ l = eo.get(l);
613
613
  let n = s.toLowerCase(), i = 0;
614
614
  for (let c in l.coords) {
615
615
  let u = l.coords[c];
@@ -620,20 +620,20 @@ const Ha = 75e-6, Ee = class oo {
620
620
  throw new TypeError(`No "${s}" coordinate found in ${l.name}. Its coordinates are: ${Object.keys(l.coords).join(", ")}`);
621
621
  }
622
622
  };
623
- or(Ee, "registry", {}), or(Ee, "DEFAULT_FORMAT", {
623
+ er(Ee, "registry", {}), er(Ee, "DEFAULT_FORMAT", {
624
624
  type: "functions",
625
625
  name: "color"
626
626
  });
627
627
  let g = Ee;
628
- function Na(r) {
628
+ function Ba(r) {
629
629
  let o = [r];
630
630
  for (let e = r; e = e.base; )
631
631
  o.push(e);
632
632
  return o;
633
633
  }
634
- function lr(r, { coords: o } = {}) {
634
+ function sr(r, { coords: o } = {}) {
635
635
  if (r.coords && !r.coordGrammar) {
636
- r.type || (r.type = "function"), r.name || (r.name = "color"), r.coordGrammar = yt(r.coords);
636
+ r.type || (r.type = "function"), r.name || (r.name = "color"), r.coordGrammar = xt(r.coords);
637
637
  let e = Object.entries(o).map(([t, a], l) => {
638
638
  let s = r.coordGrammar[l][0], n = a.range || a.refRange, i = s.range, c = "";
639
639
  return s == "<percentage>" ? (i = [0, 100], c = "%") : s == "<angle>" && (c = "deg"), { fromRange: n, toRange: i, suffix: c };
@@ -724,7 +724,7 @@ var Te = new g({
724
724
  fromBase: (r) => le(B.white, "D50", r),
725
725
  toBase: (r) => le("D50", B.white, r)
726
726
  });
727
- const Ba = 216 / 24389, sr = 24 / 116, Uo = 24389 / 27;
727
+ const Oa = 216 / 24389, nr = 24 / 116, Uo = 24389 / 27;
728
728
  let ge = j.D50;
729
729
  var Y = new g({
730
730
  id: "lab",
@@ -748,7 +748,7 @@ var Y = new g({
748
748
  // Convert D50-adapted XYX to Lab
749
749
  // CIE 15.3:2004 section 8.2.1.1
750
750
  fromBase(r) {
751
- let o = r.map((e, t) => e / ge[t]).map((e) => e > Ba ? Math.cbrt(e) : (Uo * e + 16) / 116);
751
+ let o = r.map((e, t) => e / ge[t]).map((e) => e > Oa ? Math.cbrt(e) : (Uo * e + 16) / 116);
752
752
  return [
753
753
  116 * o[1] - 16,
754
754
  // L
@@ -764,9 +764,9 @@ var Y = new g({
764
764
  toBase(r) {
765
765
  let o = [];
766
766
  return o[1] = (r[0] + 16) / 116, o[0] = r[1] / 500 + o[1], o[2] = o[1] - r[2] / 200, [
767
- o[0] > sr ? Math.pow(o[0], 3) : (116 * o[0] - 16) / Uo,
767
+ o[0] > nr ? Math.pow(o[0], 3) : (116 * o[0] - 16) / Uo,
768
768
  r[0] > 8 ? Math.pow((r[0] + 16) / 116, 3) : r[0] / Uo,
769
- o[2] > sr ? Math.pow(o[2], 3) : (116 * o[2] - 16) / Uo
769
+ o[2] > nr ? Math.pow(o[2], 3) : (116 * o[2] - 16) / Uo
770
770
  ].map((e, t) => e * ge[t]);
771
771
  },
772
772
  formats: {
@@ -832,39 +832,39 @@ var Fo = new g({
832
832
  }
833
833
  }
834
834
  });
835
- const nr = 25 ** 7, se = Math.PI, ir = 180 / se, Co = se / 180;
836
- function cr(r) {
835
+ const ir = 25 ** 7, se = Math.PI, cr = 180 / se, Co = se / 180;
836
+ function ur(r) {
837
837
  const o = r * r;
838
838
  return o * o * o * r;
839
839
  }
840
- function Mt(r, o, { kL: e = 1, kC: t = 1, kH: a = 1 } = {}) {
840
+ function $t(r, o, { kL: e = 1, kC: t = 1, kH: a = 1 } = {}) {
841
841
  [r, o] = v([r, o]);
842
842
  let [l, s, n] = Y.from(r), i = Fo.from(Y, [l, s, n])[1], [c, u, h] = Y.from(o), d = Fo.from(Y, [c, u, h])[1];
843
843
  i < 0 && (i = 0), d < 0 && (d = 0);
844
- let f = (i + d) / 2, b = cr(f), p = 0.5 * (1 - Math.sqrt(b / (b + nr))), z = (1 + p) * s, w = (1 + p) * u, y = Math.sqrt(z ** 2 + n ** 2), C = Math.sqrt(w ** 2 + h ** 2), x = z === 0 && n === 0 ? 0 : Math.atan2(n, z), k = w === 0 && h === 0 ? 0 : Math.atan2(h, w);
845
- x < 0 && (x += 2 * se), k < 0 && (k += 2 * se), x *= ir, k *= ir;
846
- let S = c - l, F = C - y, E = k - x, Po = x + k, Ye = Math.abs(E), Ho;
847
- y * C === 0 ? Ho = 0 : Ye <= 180 ? Ho = E : E > 180 ? Ho = E - 360 : E < -180 ? Ho = E + 360 : G.warn("the unthinkable has happened");
848
- let Ge = 2 * Math.sqrt(C * y) * Math.sin(Ho * Co / 2), la = (l + c) / 2, pe = (y + C) / 2, Ze = cr(pe), so;
849
- y * C === 0 ? so = Po : Ye <= 180 ? so = Po / 2 : Po < 360 ? so = (Po + 360) / 2 : so = (Po - 360) / 2;
850
- let Ke = (la - 50) ** 2, sa = 1 + 0.015 * Ke / Math.sqrt(20 + Ke), Ve = 1 + 0.045 * pe, No = 1;
844
+ let f = (i + d) / 2, b = ur(f), p = 0.5 * (1 - Math.sqrt(b / (b + ir))), z = (1 + p) * s, w = (1 + p) * u, y = Math.sqrt(z ** 2 + n ** 2), C = Math.sqrt(w ** 2 + h ** 2), x = z === 0 && n === 0 ? 0 : Math.atan2(n, z), k = w === 0 && h === 0 ? 0 : Math.atan2(h, w);
845
+ x < 0 && (x += 2 * se), k < 0 && (k += 2 * se), x *= cr, k *= cr;
846
+ let S = c - l, F = C - y, E = k - x, Po = x + k, Ge = Math.abs(E), Ho;
847
+ y * C === 0 ? Ho = 0 : Ge <= 180 ? Ho = E : E > 180 ? Ho = E - 360 : E < -180 ? Ho = E + 360 : G.warn("the unthinkable has happened");
848
+ let Ze = 2 * Math.sqrt(C * y) * Math.sin(Ho * Co / 2), sa = (l + c) / 2, pe = (y + C) / 2, Ke = ur(pe), so;
849
+ y * C === 0 ? so = Po : Ge <= 180 ? so = Po / 2 : Po < 360 ? so = (Po + 360) / 2 : so = (Po - 360) / 2;
850
+ let Ve = (sa - 50) ** 2, na = 1 + 0.015 * Ve / Math.sqrt(20 + Ve), Je = 1 + 0.045 * pe, No = 1;
851
851
  No -= 0.17 * Math.cos((so - 30) * Co), No += 0.24 * Math.cos(2 * so * Co), No += 0.32 * Math.cos((3 * so + 6) * Co), No -= 0.2 * Math.cos((4 * so - 63) * Co);
852
- let Je = 1 + 0.015 * pe * No, na = 30 * Math.exp(-1 * ((so - 275) / 25) ** 2), ia = 2 * Math.sqrt(Ze / (Ze + nr)), ca = -1 * Math.sin(2 * na * Co) * ia, Wo = (S / (e * sa)) ** 2;
853
- return Wo += (F / (t * Ve)) ** 2, Wo += (Ge / (a * Je)) ** 2, Wo += ca * (F / (t * Ve)) * (Ge / (a * Je)), Math.sqrt(Wo);
852
+ let Qe = 1 + 0.015 * pe * No, ia = 30 * Math.exp(-1 * ((so - 275) / 25) ** 2), ca = 2 * Math.sqrt(Ke / (Ke + ir)), ua = -1 * Math.sin(2 * ia * Co) * ca, Wo = (S / (e * na)) ** 2;
853
+ return Wo += (F / (t * Je)) ** 2, Wo += (Ze / (a * Qe)) ** 2, Wo += ua * (F / (t * Je)) * (Ze / (a * Qe)), Math.sqrt(Wo);
854
854
  }
855
- const Oa = [
855
+ const Fa = [
856
856
  [0.819022437996703, 0.3619062600528904, -0.1288737815209879],
857
857
  [0.0329836539323885, 0.9292868615863434, 0.0361446663506424],
858
858
  [0.0481771893596242, 0.2642395317527308, 0.6335478284694309]
859
- ], Fa = [
859
+ ], La = [
860
860
  [1.2268798758459243, -0.5578149944602171, 0.2813910456659647],
861
861
  [-0.0405757452148008, 1.112286803280317, -0.0717110580655164],
862
862
  [-0.0763729366746601, -0.4214933324022432, 1.5869240198367816]
863
- ], La = [
863
+ ], ja = [
864
864
  [0.210454268309314, 0.7936177747023054, -0.0040720430116193],
865
865
  [1.9779985324311684, -2.42859224204858, 0.450593709617411],
866
866
  [0.0259040424655478, 0.7827717124575296, -0.8086757549230774]
867
- ], ja = [
867
+ ], Da = [
868
868
  [1, 0.3963377773761749, 0.2158037573099136],
869
869
  [1, -0.1055613458156586, -0.0638541728258133],
870
870
  [1, -0.0894841775298119, -1.2914855480194092]
@@ -888,12 +888,12 @@ var So = new g({
888
888
  white: "D65",
889
889
  base: B,
890
890
  fromBase(r) {
891
- let o = $(Oa, r).map((e) => Math.cbrt(e));
892
- return $(La, o);
891
+ let o = $(Fa, r).map((e) => Math.cbrt(e));
892
+ return $(ja, o);
893
893
  },
894
894
  toBase(r) {
895
- let o = $(ja, r).map((e) => e ** 3);
896
- return $(Fa, o);
895
+ let o = $(Da, r).map((e) => e ** 3);
896
+ return $(La, o);
897
897
  },
898
898
  formats: {
899
899
  oklab: {
@@ -906,8 +906,8 @@ function Ae(r, o) {
906
906
  let [e, t, a] = So.from(r), [l, s, n] = So.from(o), i = e - l, c = t - s, u = a - n;
907
907
  return Math.sqrt(i ** 2 + c ** 2 + u ** 2);
908
908
  }
909
- const Da = 75e-6;
910
- function yo(r, o, { epsilon: e = Da } = {}) {
909
+ const Ta = 75e-6;
910
+ function yo(r, o, { epsilon: e = Ta } = {}) {
911
911
  r = v(r), o || (o = r.space), o = g.get(o);
912
912
  let t = r.coords;
913
913
  return o !== r.space && (t = o.from(r)), o.inGamut(t, { epsilon: e });
@@ -919,7 +919,7 @@ function _o(r) {
919
919
  alpha: r.alpha
920
920
  };
921
921
  }
922
- function $t(r, o, e = "lab") {
922
+ function St(r, o, e = "lab") {
923
923
  e = g.get(e);
924
924
  let t = e.from(r), a = e.from(o);
925
925
  return Math.sqrt(t.reduce((l, s, n) => {
@@ -927,22 +927,22 @@ function $t(r, o, e = "lab") {
927
927
  return isNaN(s) || isNaN(i) ? l : l + (i - s) ** 2;
928
928
  }, 0));
929
929
  }
930
- function Ta(r, o) {
931
- return $t(r, o, "lab");
930
+ function qa(r, o) {
931
+ return St(r, o, "lab");
932
932
  }
933
- const qa = Math.PI, ur = qa / 180;
934
- function Wa(r, o, { l: e = 2, c: t = 1 } = {}) {
933
+ const Wa = Math.PI, hr = Wa / 180;
934
+ function Ua(r, o, { l: e = 2, c: t = 1 } = {}) {
935
935
  [r, o] = v([r, o]);
936
936
  let [a, l, s] = Y.from(r), [, n, i] = Fo.from(Y, [a, l, s]), [c, u, h] = Y.from(o), d = Fo.from(Y, [c, u, h])[1];
937
937
  n < 0 && (n = 0), d < 0 && (d = 0);
938
938
  let f = a - c, b = n - d, p = l - u, z = s - h, w = p ** 2 + z ** 2 - b ** 2, y = 0.511;
939
939
  a >= 16 && (y = 0.040975 * a / (1 + 0.01765 * a));
940
940
  let C = 0.0638 * n / (1 + 0.0131 * n) + 0.638, x;
941
- Number.isNaN(i) && (i = 0), i >= 164 && i <= 345 ? x = 0.56 + Math.abs(0.2 * Math.cos((i + 168) * ur)) : x = 0.36 + Math.abs(0.4 * Math.cos((i + 35) * ur));
941
+ Number.isNaN(i) && (i = 0), i >= 164 && i <= 345 ? x = 0.56 + Math.abs(0.2 * Math.cos((i + 168) * hr)) : x = 0.36 + Math.abs(0.4 * Math.cos((i + 35) * hr));
942
942
  let k = Math.pow(n, 4), S = Math.sqrt(k / (k + 1900)), F = C * (S * x + 1 - S), E = (f / (e * y)) ** 2;
943
943
  return E += (b / (t * C)) ** 2, E += w / F ** 2, Math.sqrt(E);
944
944
  }
945
- const hr = 203;
945
+ const dr = 203;
946
946
  var qe = new g({
947
947
  // Absolute CIE XYZ, with a D65 whitepoint,
948
948
  // as used in most HDR colorspaces as a starting point.
@@ -967,30 +967,30 @@ var qe = new g({
967
967
  },
968
968
  base: B,
969
969
  fromBase(r) {
970
- return r.map((o) => Math.max(o * hr, 0));
970
+ return r.map((o) => Math.max(o * dr, 0));
971
971
  },
972
972
  toBase(r) {
973
- return r.map((o) => Math.max(o / hr, 0));
973
+ return r.map((o) => Math.max(o / dr, 0));
974
974
  }
975
975
  });
976
- const Xo = 1.15, Yo = 0.66, dr = 2610 / 2 ** 14, Ua = 2 ** 14 / 2610, mr = 3424 / 2 ** 12, pr = 2413 / 2 ** 7, gr = 2392 / 2 ** 7, Xa = 1.7 * 2523 / 2 ** 5, fr = 2 ** 5 / (1.7 * 2523), Go = -0.56, fe = 16295499532821565e-27, Ya = [
976
+ const Xo = 1.15, Yo = 0.66, mr = 2610 / 2 ** 14, Xa = 2 ** 14 / 2610, pr = 3424 / 2 ** 12, gr = 2413 / 2 ** 7, fr = 2392 / 2 ** 7, Ya = 1.7 * 2523 / 2 ** 5, br = 2 ** 5 / (1.7 * 2523), Go = -0.56, fe = 16295499532821565e-27, Ga = [
977
977
  [0.41478972, 0.579999, 0.014648],
978
978
  [-0.20151, 1.120649, 0.0531008],
979
979
  [-0.0166008, 0.2648, 0.6684799]
980
- ], Ga = [
980
+ ], Za = [
981
981
  [1.9242264357876067, -1.0047923125953657, 0.037651404030618],
982
982
  [0.35031676209499907, 0.7264811939316552, -0.06538442294808501],
983
983
  [-0.09098281098284752, -0.3127282905230739, 1.5227665613052603]
984
- ], Za = [
984
+ ], Ka = [
985
985
  [0.5, 0.5, 0],
986
986
  [3.524, -4.066708, 0.542708],
987
987
  [0.199076, 1.096799, -1.295875]
988
- ], Ka = [
988
+ ], Va = [
989
989
  [1, 0.1386050432715393, 0.05804731615611886],
990
990
  [0.9999999999999999, -0.1386050432715393, -0.05804731615611886],
991
991
  [0.9999999999999998, -0.09601924202631895, -0.8118918960560388]
992
992
  ];
993
- var St = new g({
993
+ var _t = new g({
994
994
  id: "jzazbz",
995
995
  name: "Jzazbz",
996
996
  coords: {
@@ -1007,17 +1007,17 @@ var St = new g({
1007
1007
  },
1008
1008
  base: qe,
1009
1009
  fromBase(r) {
1010
- let [o, e, t] = r, a = Xo * o - (Xo - 1) * t, l = Yo * e - (Yo - 1) * o, s = $(Ya, [a, l, t]).map(function(u) {
1011
- let h = mr + pr * (u / 1e4) ** dr, d = 1 + gr * (u / 1e4) ** dr;
1012
- return (h / d) ** Xa;
1013
- }), [n, i, c] = $(Za, s);
1010
+ let [o, e, t] = r, a = Xo * o - (Xo - 1) * t, l = Yo * e - (Yo - 1) * o, s = $(Ga, [a, l, t]).map(function(u) {
1011
+ let h = pr + gr * (u / 1e4) ** mr, d = 1 + fr * (u / 1e4) ** mr;
1012
+ return (h / d) ** Ya;
1013
+ }), [n, i, c] = $(Ka, s);
1014
1014
  return [(1 + Go) * n / (1 + Go * n) - fe, i, c];
1015
1015
  },
1016
1016
  toBase(r) {
1017
- let [o, e, t] = r, a = (o + fe) / (1 + Go - Go * (o + fe)), l = $(Ka, [a, e, t]).map(function(h) {
1018
- let d = mr - h ** fr, f = gr * h ** fr - pr;
1019
- return 1e4 * (d / f) ** Ua;
1020
- }), [s, n, i] = $(Ga, l), c = (s + (Xo - 1) * i) / Xo, u = (n + (Yo - 1) * c) / Yo;
1017
+ let [o, e, t] = r, a = (o + fe) / (1 + Go - Go * (o + fe)), l = $(Va, [a, e, t]).map(function(h) {
1018
+ let d = pr - h ** br, f = fr * h ** br - gr;
1019
+ return 1e4 * (d / f) ** Xa;
1020
+ }), [s, n, i] = $(Za, l), c = (s + (Xo - 1) * i) / Xo, u = (n + (Yo - 1) * c) / Yo;
1021
1021
  return [c, u, i];
1022
1022
  },
1023
1023
  formats: {
@@ -1044,7 +1044,7 @@ var St = new g({
1044
1044
  name: "Hue"
1045
1045
  }
1046
1046
  },
1047
- base: St,
1047
+ base: _t,
1048
1048
  fromBase(r) {
1049
1049
  let [o, e, t] = r, a;
1050
1050
  const l = 2e-4;
@@ -1068,26 +1068,26 @@ var St = new g({
1068
1068
  ];
1069
1069
  }
1070
1070
  });
1071
- function Va(r, o) {
1071
+ function Ja(r, o) {
1072
1072
  [r, o] = v([r, o]);
1073
1073
  let [e, t, a] = Re.from(r), [l, s, n] = Re.from(o), i = e - l, c = t - s;
1074
1074
  Number.isNaN(a) && Number.isNaN(n) ? (a = 0, n = 0) : Number.isNaN(a) ? a = n : Number.isNaN(n) && (n = a);
1075
1075
  let u = a - n, h = 2 * Math.sqrt(t * s) * Math.sin(u / 2 * (Math.PI / 180));
1076
1076
  return Math.sqrt(i ** 2 + c ** 2 + h ** 2);
1077
1077
  }
1078
- const _t = 3424 / 4096, Et = 2413 / 128, At = 2392 / 128, br = 2610 / 16384, Ja = 2523 / 32, Qa = 16384 / 2610, zr = 32 / 2523, ol = [
1078
+ const Et = 3424 / 4096, At = 2413 / 128, Rt = 2392 / 128, zr = 2610 / 16384, Qa = 2523 / 32, ol = 16384 / 2610, vr = 32 / 2523, el = [
1079
1079
  [0.3592832590121217, 0.6976051147779502, -0.035891593232029],
1080
1080
  [-0.1920808463704993, 1.100476797037432, 0.0753748658519118],
1081
1081
  [0.0070797844607479, 0.0748396662186362, 0.8433265453898765]
1082
- ], el = [
1082
+ ], rl = [
1083
1083
  [2048 / 4096, 2048 / 4096, 0],
1084
1084
  [6610 / 4096, -13613 / 4096, 7003 / 4096],
1085
1085
  [17933 / 4096, -17390 / 4096, -543 / 4096]
1086
- ], rl = [
1086
+ ], tl = [
1087
1087
  [0.9999999999999998, 0.0086090370379328, 0.111029625003026],
1088
1088
  [0.9999999999999998, -0.0086090370379328, -0.1110296250030259],
1089
1089
  [0.9999999999999998, 0.5600313357106791, -0.3206271749873188]
1090
- ], tl = [
1090
+ ], al = [
1091
1091
  [2.0701522183894223, -1.3263473389671563, 0.2066510476294053],
1092
1092
  [0.3647385209748072, 0.6805660249472273, -0.0453045459220347],
1093
1093
  [-0.0497472075358123, -0.0492609666966131, 1.1880659249923042]
@@ -1122,45 +1122,45 @@ var Pe = new g({
1122
1122
  },
1123
1123
  base: qe,
1124
1124
  fromBase(r) {
1125
- let o = $(ol, r);
1126
- return al(o);
1125
+ let o = $(el, r);
1126
+ return ll(o);
1127
1127
  },
1128
1128
  toBase(r) {
1129
- let o = ll(r);
1130
- return $(tl, o);
1129
+ let o = sl(r);
1130
+ return $(al, o);
1131
1131
  }
1132
1132
  });
1133
- function al(r) {
1133
+ function ll(r) {
1134
1134
  let o = r.map(function(e) {
1135
- let t = _t + Et * (e / 1e4) ** br, a = 1 + At * (e / 1e4) ** br;
1136
- return (t / a) ** Ja;
1135
+ let t = Et + At * (e / 1e4) ** zr, a = 1 + Rt * (e / 1e4) ** zr;
1136
+ return (t / a) ** Qa;
1137
1137
  });
1138
- return $(el, o);
1138
+ return $(rl, o);
1139
1139
  }
1140
- function ll(r) {
1141
- return $(rl, r).map(function(o) {
1142
- let e = Math.max(o ** zr - _t, 0), t = Et - At * o ** zr;
1143
- return 1e4 * (e / t) ** Qa;
1140
+ function sl(r) {
1141
+ return $(tl, r).map(function(o) {
1142
+ let e = Math.max(o ** vr - Et, 0), t = At - Rt * o ** vr;
1143
+ return 1e4 * (e / t) ** ol;
1144
1144
  });
1145
1145
  }
1146
- function sl(r, o) {
1146
+ function nl(r, o) {
1147
1147
  [r, o] = v([r, o]);
1148
1148
  let [e, t, a] = Pe.from(r), [l, s, n] = Pe.from(o);
1149
1149
  return 720 * Math.sqrt((e - l) ** 2 + 0.25 * (t - s) ** 2 + (a - n) ** 2);
1150
1150
  }
1151
- const nl = j.D65, Rt = 0.42, vr = 1 / Rt, be = 2 * Math.PI, Pt = [
1151
+ const il = j.D65, Pt = 0.42, wr = 1 / Pt, be = 2 * Math.PI, Ht = [
1152
1152
  [0.401288, 0.650173, -0.051461],
1153
1153
  [-0.250268, 1.204414, 0.045854],
1154
1154
  [-2079e-6, 0.048952, 0.953127]
1155
- ], il = [
1155
+ ], cl = [
1156
1156
  [1.8620678550872327, -1.0112546305316843, 0.14918677544445175],
1157
1157
  [0.38752654323613717, 0.6214474419314753, -0.008973985167612518],
1158
1158
  [-0.015841498849333856, -0.03412293802851557, 1.0499644368778496]
1159
- ], cl = [
1159
+ ], ul = [
1160
1160
  [460, 451, 288],
1161
1161
  [460, -891, -261],
1162
1162
  [460, -220, -6300]
1163
- ], ul = {
1163
+ ], hl = {
1164
1164
  dark: [0.8, 0.525, 0.8],
1165
1165
  dim: [0.9, 0.59, 0.9],
1166
1166
  average: [1, 0.69, 1]
@@ -1169,27 +1169,27 @@ const nl = j.D65, Rt = 0.42, vr = 1 / Rt, be = 2 * Math.PI, Pt = [
1169
1169
  h: [20.14, 90, 164.25, 237.53, 380.14],
1170
1170
  e: [0.8, 0.7, 1, 1.2, 0.8],
1171
1171
  H: [0, 100, 200, 300, 400]
1172
- }, hl = 180 / Math.PI, wr = Math.PI / 180;
1173
- function Ht(r, o) {
1172
+ }, dl = 180 / Math.PI, yr = Math.PI / 180;
1173
+ function Nt(r, o) {
1174
1174
  return r.map((e) => {
1175
- const t = to(o * Math.abs(e) * 0.01, Rt);
1175
+ const t = to(o * Math.abs(e) * 0.01, Pt);
1176
1176
  return 400 * ue(t, e) / (t + 27.13);
1177
1177
  });
1178
1178
  }
1179
- function dl(r, o) {
1180
- const e = 100 / o * 27.13 ** vr;
1179
+ function ml(r, o) {
1180
+ const e = 100 / o * 27.13 ** wr;
1181
1181
  return r.map((t) => {
1182
1182
  const a = Math.abs(t);
1183
- return ue(e * to(a / (400 - a), vr), t);
1183
+ return ue(e * to(a / (400 - a), wr), t);
1184
1184
  });
1185
1185
  }
1186
- function ml(r) {
1186
+ function pl(r) {
1187
1187
  let o = ao(r);
1188
1188
  o <= zo.h[0] && (o += 360);
1189
- const e = Ct(zo.h, o) - 1, [t, a] = zo.h.slice(e, e + 2), [l, s] = zo.e.slice(e, e + 2), n = zo.H[e], i = (o - t) / l;
1189
+ const e = kt(zo.h, o) - 1, [t, a] = zo.h.slice(e, e + 2), [l, s] = zo.e.slice(e, e + 2), n = zo.H[e], i = (o - t) / l;
1190
1190
  return n + 100 * i / (i + (a - o) / s);
1191
1191
  }
1192
- function pl(r) {
1192
+ function gl(r) {
1193
1193
  let o = (r % 400 + 400) % 400;
1194
1194
  const e = Math.floor(0.01 * o);
1195
1195
  o = o % 100;
@@ -1198,13 +1198,13 @@ function pl(r) {
1198
1198
  (o * (s * t - l * a) - 100 * t * s) / (o * (s - l) - 100 * s)
1199
1199
  );
1200
1200
  }
1201
- function Nt(r, o, e, t, a) {
1201
+ function Bt(r, o, e, t, a) {
1202
1202
  const l = {};
1203
1203
  l.discounting = a, l.refWhite = r, l.surround = t;
1204
1204
  const s = r.map((b) => b * 100);
1205
1205
  l.la = o, l.yb = e;
1206
- const n = s[1], i = $(Pt, s);
1207
- t = ul[l.surround];
1206
+ const n = s[1], i = $(Ht, s);
1207
+ t = hl[l.surround];
1208
1208
  const c = t[0];
1209
1209
  l.c = t[1], l.nc = t[2];
1210
1210
  const u = (1 / (5 * l.la + 1)) ** 4;
@@ -1213,12 +1213,12 @@ function Nt(r, o, e, t, a) {
1213
1213
  Math.min(c * (1 - 1 / 3.6 * Math.exp((-l.la - 42) / 92)), 1),
1214
1214
  0
1215
1215
  );
1216
- l.dRgb = i.map((b) => Oo(1, n / b, h)), l.dRgbInv = l.dRgb.map((b) => 1 / b);
1217
- const d = i.map((b, p) => b * l.dRgb[p]), f = Ht(d, l.fl);
1216
+ l.dRgb = i.map((b) => Io(1, n / b, h)), l.dRgbInv = l.dRgb.map((b) => 1 / b);
1217
+ const d = i.map((b, p) => b * l.dRgb[p]), f = Nt(d, l.fl);
1218
1218
  return l.aW = l.nbb * (2 * f[0] + f[1] + 0.05 * f[2]), l;
1219
1219
  }
1220
- const yr = Nt(
1221
- nl,
1220
+ const xr = Bt(
1221
+ il,
1222
1222
  64 / Math.PI * 0.2,
1223
1223
  20,
1224
1224
  "average",
@@ -1234,7 +1234,7 @@ function He(r, o) {
1234
1234
  if (r.J === 0 || r.Q === 0)
1235
1235
  return [0, 0, 0];
1236
1236
  let e = 0;
1237
- r.h !== void 0 ? e = ao(r.h) * wr : e = pl(r.H) * wr;
1237
+ r.h !== void 0 ? e = ao(r.h) * yr : e = gl(r.H) * yr;
1238
1238
  const t = Math.cos(e), a = Math.sin(e);
1239
1239
  let l = 0;
1240
1240
  r.J !== void 0 ? l = to(r.J, 1 / 2) * 0.1 : r.Q !== void 0 && (l = 0.25 * o.c * r.Q / ((o.aW + 4) * o.flRoot));
@@ -1243,26 +1243,26 @@ function He(r, o) {
1243
1243
  const n = to(
1244
1244
  s * Math.pow(1.64 - Math.pow(0.29, o.n), -0.73),
1245
1245
  10 / 9
1246
- ), i = 0.25 * (Math.cos(e + 2) + 3.8), c = o.aW * to(l, 2 / o.c / o.z), u = 5e4 / 13 * o.nc * o.ncb * i, h = c / o.nbb, d = 23 * (h + 0.305) * je(n, 23 * u + n * (11 * t + 108 * a)), f = d * t, b = d * a, p = dl(
1247
- $(cl, [h, f, b]).map((z) => z * 1 / 1403),
1246
+ ), i = 0.25 * (Math.cos(e + 2) + 3.8), c = o.aW * to(l, 2 / o.c / o.z), u = 5e4 / 13 * o.nc * o.ncb * i, h = c / o.nbb, d = 23 * (h + 0.305) * je(n, 23 * u + n * (11 * t + 108 * a)), f = d * t, b = d * a, p = ml(
1247
+ $(ul, [h, f, b]).map((z) => z * 1 / 1403),
1248
1248
  o.fl
1249
1249
  );
1250
1250
  return $(
1251
- il,
1251
+ cl,
1252
1252
  p.map((z, w) => z * o.dRgbInv[w])
1253
1253
  ).map((z) => z / 100);
1254
1254
  }
1255
- function Bt(r, o) {
1256
- const e = r.map((C) => C * 100), t = Ht(
1257
- $(Pt, e).map((C, x) => C * o.dRgb[x]),
1255
+ function Ot(r, o) {
1256
+ const e = r.map((C) => C * 100), t = Nt(
1257
+ $(Ht, e).map((C, x) => C * o.dRgb[x]),
1258
1258
  o.fl
1259
1259
  ), a = t[0] + (-12 * t[1] + t[2]) / 11, l = (t[0] + t[1] - 2 * t[2]) / 9, s = (Math.atan2(l, a) % be + be) % be, n = 0.25 * (Math.cos(s + 2) + 3.8), i = 5e4 / 13 * o.nc * o.ncb * je(
1260
1260
  n * Math.sqrt(a ** 2 + l ** 2),
1261
1261
  t[0] + t[1] + 1.05 * t[2] + 0.305
1262
- ), c = to(i, 0.9) * Math.pow(1.64 - Math.pow(0.29, o.n), 0.73), u = o.nbb * (2 * t[0] + t[1] + 0.05 * t[2]), h = to(u / o.aW, 0.5 * o.c * o.z), d = 100 * to(h, 2), f = 4 / o.c * h * (o.aW + 4) * o.flRoot, b = c * h, p = b * o.flRoot, z = ao(s * hl), w = ml(z), y = 50 * to(o.c * c / (o.aW + 4), 1 / 2);
1262
+ ), c = to(i, 0.9) * Math.pow(1.64 - Math.pow(0.29, o.n), 0.73), u = o.nbb * (2 * t[0] + t[1] + 0.05 * t[2]), h = to(u / o.aW, 0.5 * o.c * o.z), d = 100 * to(h, 2), f = 4 / o.c * h * (o.aW + 4) * o.flRoot, b = c * h, p = b * o.flRoot, z = ao(s * dl), w = pl(z), y = 50 * to(o.c * c / (o.aW + 4), 1 / 2);
1263
1263
  return { J: d, C: b, h: z, s: y, Q: f, M: p, H: w };
1264
1264
  }
1265
- var gl = new g({
1265
+ var fl = new g({
1266
1266
  id: "cam16-jmh",
1267
1267
  cssId: "--cam16-jmh",
1268
1268
  name: "CAM16-JMh",
@@ -1283,24 +1283,24 @@ var gl = new g({
1283
1283
  },
1284
1284
  base: B,
1285
1285
  fromBase(r) {
1286
- const o = Bt(r, yr);
1286
+ const o = Ot(r, xr);
1287
1287
  return [o.J, o.M, o.h];
1288
1288
  },
1289
1289
  toBase(r) {
1290
1290
  return He(
1291
1291
  { J: r[0], M: r[1], h: r[2] },
1292
- yr
1292
+ xr
1293
1293
  );
1294
1294
  }
1295
1295
  });
1296
- const fl = j.D65, bl = 216 / 24389, It = 24389 / 27;
1297
- function zl(r) {
1298
- return 116 * (r > bl ? Math.cbrt(r) : (It * r + 16) / 116) - 16;
1296
+ const bl = j.D65, zl = 216 / 24389, It = 24389 / 27;
1297
+ function vl(r) {
1298
+ return 116 * (r > zl ? Math.cbrt(r) : (It * r + 16) / 116) - 16;
1299
1299
  }
1300
1300
  function Ne(r) {
1301
1301
  return r > 8 ? Math.pow((r + 16) / 116, 3) : r / It;
1302
1302
  }
1303
- function vl(r, o) {
1303
+ function wl(r, o) {
1304
1304
  let [e, t, a] = r, l = [], s = 0;
1305
1305
  if (a === 0)
1306
1306
  return [0, 0, 0];
@@ -1320,15 +1320,15 @@ function vl(r, o) {
1320
1320
  }
1321
1321
  return He({ J: s, C: t, h: e }, o);
1322
1322
  }
1323
- function wl(r, o) {
1324
- const e = zl(r[1]);
1323
+ function yl(r, o) {
1324
+ const e = vl(r[1]);
1325
1325
  if (e === 0)
1326
1326
  return [0, 0, 0];
1327
- const t = Bt(r, We);
1327
+ const t = Ot(r, We);
1328
1328
  return [ao(t.h), t.C, e];
1329
1329
  }
1330
- const We = Nt(
1331
- fl,
1330
+ const We = Bt(
1331
+ bl,
1332
1332
  200 / Math.PI * Ne(50),
1333
1333
  Ne(50) * 100,
1334
1334
  "average",
@@ -1354,10 +1354,10 @@ var Lo = new g({
1354
1354
  },
1355
1355
  base: B,
1356
1356
  fromBase(r) {
1357
- return wl(r);
1357
+ return yl(r);
1358
1358
  },
1359
1359
  toBase(r) {
1360
- return vl(r, We);
1360
+ return wl(r, We);
1361
1361
  },
1362
1362
  formats: {
1363
1363
  color: {
@@ -1366,31 +1366,31 @@ var Lo = new g({
1366
1366
  }
1367
1367
  }
1368
1368
  });
1369
- const yl = Math.PI / 180, xr = [1, 7e-3, 0.0228];
1370
- function Cr(r) {
1369
+ const xl = Math.PI / 180, Cr = [1, 7e-3, 0.0228];
1370
+ function kr(r) {
1371
1371
  r[1] < 0 && (r = Lo.fromBase(Lo.toBase(r)));
1372
- const o = Math.log(Math.max(1 + xr[2] * r[1] * We.flRoot, 1)) / xr[2], e = r[0] * yl, t = o * Math.cos(e), a = o * Math.sin(e);
1372
+ const o = Math.log(Math.max(1 + Cr[2] * r[1] * We.flRoot, 1)) / Cr[2], e = r[0] * xl, t = o * Math.cos(e), a = o * Math.sin(e);
1373
1373
  return [r[2], t, a];
1374
1374
  }
1375
- function xl(r, o) {
1375
+ function Cl(r, o) {
1376
1376
  [r, o] = v([r, o]);
1377
- let [e, t, a] = Cr(Lo.from(r)), [l, s, n] = Cr(Lo.from(o));
1377
+ let [e, t, a] = kr(Lo.from(r)), [l, s, n] = kr(Lo.from(o));
1378
1378
  return Math.sqrt((e - l) ** 2 + (t - s) ** 2 + (a - n) ** 2);
1379
1379
  }
1380
1380
  var Eo = {
1381
- deltaE76: Ta,
1382
- deltaECMC: Wa,
1383
- deltaE2000: Mt,
1384
- deltaEJz: Va,
1385
- deltaEITP: sl,
1381
+ deltaE76: qa,
1382
+ deltaECMC: Ua,
1383
+ deltaE2000: $t,
1384
+ deltaEJz: Ja,
1385
+ deltaEITP: nl,
1386
1386
  deltaEOK: Ae,
1387
- deltaEHCT: xl
1387
+ deltaEHCT: Cl
1388
1388
  };
1389
- function Cl(r) {
1389
+ function kl(r) {
1390
1390
  const o = r ? Math.floor(Math.log10(Math.abs(r))) : 0;
1391
1391
  return Math.max(parseFloat(`1e${o - 2}`), 1e-6);
1392
1392
  }
1393
- const kr = {
1393
+ const Mr = {
1394
1394
  hct: {
1395
1395
  method: "hct.c",
1396
1396
  jnd: 2,
@@ -1415,11 +1415,11 @@ function go(r, {
1415
1415
  return r;
1416
1416
  let s;
1417
1417
  if (o === "css")
1418
- s = kl(r, { space: e });
1418
+ s = Ml(r, { space: e });
1419
1419
  else {
1420
1420
  if (o !== "clip" && !yo(r, e)) {
1421
- Object.prototype.hasOwnProperty.call(kr, o) && ({ method: o, jnd: a, deltaEMethod: t, blackWhiteClamp: l } = kr[o]);
1422
- let n = Mt;
1421
+ Object.prototype.hasOwnProperty.call(Mr, o) && ({ method: o, jnd: a, deltaEMethod: t, blackWhiteClamp: l } = Mr[o]);
1422
+ let n = $t;
1423
1423
  if (t !== "") {
1424
1424
  for (let c in Eo)
1425
1425
  if ("deltae" + t.toLowerCase() === c.toLowerCase()) {
@@ -1440,7 +1440,7 @@ function go(r, {
1440
1440
  d.coords.forEach((w, y) => {
1441
1441
  mo(w) && (d.coords[y] = 0);
1442
1442
  });
1443
- let f = (c.range || c.refRange)[0], b = Cl(a), p = f, z = X(d, h);
1443
+ let f = (c.range || c.refRange)[0], b = kl(a), p = f, z = X(d, h);
1444
1444
  for (; z - p > b; ) {
1445
1445
  let w = _o(d);
1446
1446
  w = go(w, { space: e, method: "clip" }), n(d, w) - a < b ? p = X(d, h) : z = X(d, h), no(d, h, (p + z) / 2);
@@ -1461,11 +1461,11 @@ function go(r, {
1461
1461
  return e !== r.space && (s = M(s, r.space)), r.coords = s.coords, r;
1462
1462
  }
1463
1463
  go.returns = "color";
1464
- const Mr = {
1464
+ const $r = {
1465
1465
  WHITE: { space: So, coords: [1, 0, 0] },
1466
1466
  BLACK: { space: So, coords: [0, 0, 0] }
1467
1467
  };
1468
- function kl(r, { space: o } = {}) {
1468
+ function Ml(r, { space: o } = {}) {
1469
1469
  r = v(r), o || (o = r.space), o = g.get(o);
1470
1470
  const e = g.get("oklch");
1471
1471
  if (o.isUnbounded)
@@ -1473,11 +1473,11 @@ function kl(r, { space: o } = {}) {
1473
1473
  const t = M(r, e);
1474
1474
  let a = t.coords[0];
1475
1475
  if (a >= 1) {
1476
- const d = M(Mr.WHITE, o);
1476
+ const d = M($r.WHITE, o);
1477
1477
  return d.alpha = r.alpha, M(d, o);
1478
1478
  }
1479
1479
  if (a <= 0) {
1480
- const d = M(Mr.BLACK, o);
1480
+ const d = M($r.BLACK, o);
1481
1481
  return d.alpha = r.alpha, M(d, o);
1482
1482
  }
1483
1483
  if (yo(t, o, { epsilon: 0 }))
@@ -1487,7 +1487,7 @@ function kl(r, { space: o } = {}) {
1487
1487
  return f.coords = f.coords.map((p, z) => {
1488
1488
  if ("range" in b[z]) {
1489
1489
  const [w, y] = b[z].range;
1490
- return xt(w, p, y);
1490
+ return Ct(w, p, y);
1491
1491
  }
1492
1492
  return p;
1493
1493
  }), f;
@@ -1514,7 +1514,7 @@ function M(r, o, { inGamut: e } = {}) {
1514
1514
  return e && (a = go(a, e === !0 ? void 0 : e)), a;
1515
1515
  }
1516
1516
  M.returns = "color";
1517
- function Io(r, {
1517
+ function Oo(r, {
1518
1518
  precision: o = G.precision,
1519
1519
  format: e = "default",
1520
1520
  inGamut: t = !0,
@@ -1546,11 +1546,11 @@ function Io(r, {
1546
1546
  }
1547
1547
  return s;
1548
1548
  }
1549
- const Ml = [
1549
+ const $l = [
1550
1550
  [0.6369580483012914, 0.14461690358620832, 0.1688809751641721],
1551
1551
  [0.2627002120112671, 0.6779980715188708, 0.05930171646986196],
1552
1552
  [0, 0.028072693049087428, 1.060985057710791]
1553
- ], $l = [
1553
+ ], Sl = [
1554
1554
  [1.716651187971268, -0.355670783776392, -0.25336628137366],
1555
1555
  [-0.666684351832489, 1.616481236634939, 0.0157685458139111],
1556
1556
  [0.017639857445311, -0.042770613257809, 0.942103121235474]
@@ -1560,44 +1560,44 @@ var he = new T({
1560
1560
  cssId: "--rec2020-linear",
1561
1561
  name: "Linear REC.2020",
1562
1562
  white: "D65",
1563
- toXYZ_M: Ml,
1564
- fromXYZ_M: $l
1563
+ toXYZ_M: $l,
1564
+ fromXYZ_M: Sl
1565
1565
  });
1566
- const Zo = 1.09929682680944, $r = 0.018053968510807;
1567
- var Ot = new T({
1566
+ const Zo = 1.09929682680944, Sr = 0.018053968510807;
1567
+ var Ft = new T({
1568
1568
  id: "rec2020",
1569
1569
  name: "REC.2020",
1570
1570
  base: he,
1571
1571
  // Non-linear transfer function from Rec. ITU-R BT.2020-2 table 4
1572
1572
  toBase(r) {
1573
1573
  return r.map(function(o) {
1574
- return o < $r * 4.5 ? o / 4.5 : Math.pow((o + Zo - 1) / Zo, 1 / 0.45);
1574
+ return o < Sr * 4.5 ? o / 4.5 : Math.pow((o + Zo - 1) / Zo, 1 / 0.45);
1575
1575
  });
1576
1576
  },
1577
1577
  fromBase(r) {
1578
1578
  return r.map(function(o) {
1579
- return o >= $r ? Zo * Math.pow(o, 0.45) - (Zo - 1) : 4.5 * o;
1579
+ return o >= Sr ? Zo * Math.pow(o, 0.45) - (Zo - 1) : 4.5 * o;
1580
1580
  });
1581
1581
  }
1582
1582
  });
1583
- const Sl = [
1583
+ const _l = [
1584
1584
  [0.4865709486482162, 0.26566769316909306, 0.1982172852343625],
1585
1585
  [0.2289745640697488, 0.6917385218365064, 0.079286914093745],
1586
1586
  [0, 0.04511338185890264, 1.043944368900976]
1587
- ], _l = [
1587
+ ], El = [
1588
1588
  [2.493496911941425, -0.9313836179191239, -0.40271078445071684],
1589
1589
  [-0.8294889695615747, 1.7626640603183463, 0.023624685841943577],
1590
1590
  [0.03584583024378447, -0.07617238926804182, 0.9568845240076872]
1591
1591
  ];
1592
- var Ft = new T({
1592
+ var Lt = new T({
1593
1593
  id: "p3-linear",
1594
1594
  cssId: "--display-p3-linear",
1595
1595
  name: "Linear P3",
1596
1596
  white: "D65",
1597
- toXYZ_M: Sl,
1598
- fromXYZ_M: _l
1597
+ toXYZ_M: _l,
1598
+ fromXYZ_M: El
1599
1599
  });
1600
- const El = [
1600
+ const Al = [
1601
1601
  [0.41239079926595934, 0.357584339383878, 0.1804807884018343],
1602
1602
  [0.21263900587151027, 0.715168678767756, 0.07219231536073371],
1603
1603
  [0.01933081871559182, 0.11919477979462598, 0.9505321522496607]
@@ -1606,13 +1606,13 @@ const El = [
1606
1606
  [-0.9692436362808796, 1.8759675015077202, 0.04155505740717559],
1607
1607
  [0.05563007969699366, -0.20397695888897652, 1.0569715142428786]
1608
1608
  ];
1609
- var Lt = new T({
1609
+ var jt = new T({
1610
1610
  id: "srgb-linear",
1611
1611
  name: "Linear sRGB",
1612
1612
  white: "D65",
1613
- toXYZ_M: El,
1613
+ toXYZ_M: Al,
1614
1614
  fromXYZ_M: P
1615
- }), Sr = {
1615
+ }), _r = {
1616
1616
  aliceblue: [240 / 255, 248 / 255, 1],
1617
1617
  antiquewhite: [250 / 255, 235 / 255, 215 / 255],
1618
1618
  aqua: [0, 1, 1],
@@ -1762,11 +1762,11 @@ var Lt = new T({
1762
1762
  yellow: [1, 1, 0],
1763
1763
  yellowgreen: [154 / 255, 205 / 255, 50 / 255]
1764
1764
  };
1765
- let _r = Array(3).fill("<percentage> | <number>[0, 255]"), Er = Array(3).fill("<number>[0, 255]");
1765
+ let Er = Array(3).fill("<percentage> | <number>[0, 255]"), Ar = Array(3).fill("<number>[0, 255]");
1766
1766
  var Ao = new T({
1767
1767
  id: "srgb",
1768
1768
  name: "sRGB",
1769
- base: Lt,
1769
+ base: jt,
1770
1770
  fromBase: (r) => r.map((o) => {
1771
1771
  let e = o < 0 ? -1 : 1, t = o * e;
1772
1772
  return t > 31308e-7 ? e * (1.055 * t ** (1 / 2.4) - 0.055) : 12.92 * o;
@@ -1777,26 +1777,26 @@ var Ao = new T({
1777
1777
  }),
1778
1778
  formats: {
1779
1779
  rgb: {
1780
- coords: _r
1780
+ coords: Er
1781
1781
  },
1782
1782
  rgb_number: {
1783
1783
  name: "rgb",
1784
1784
  commas: !0,
1785
- coords: Er,
1785
+ coords: Ar,
1786
1786
  noAlpha: !0
1787
1787
  },
1788
1788
  color: {
1789
1789
  /* use defaults */
1790
1790
  },
1791
1791
  rgba: {
1792
- coords: _r,
1792
+ coords: Er,
1793
1793
  commas: !0,
1794
1794
  lastAlpha: !0
1795
1795
  },
1796
1796
  rgba_number: {
1797
1797
  name: "rgba",
1798
1798
  commas: !0,
1799
- coords: Er
1799
+ coords: Ar
1800
1800
  },
1801
1801
  hex: {
1802
1802
  type: "custom",
@@ -1828,108 +1828,108 @@ var Ao = new T({
1828
1828
  parse(r) {
1829
1829
  r = r.toLowerCase();
1830
1830
  let o = { spaceId: "srgb", coords: null, alpha: 1 };
1831
- if (r === "transparent" ? (o.coords = Sr.black, o.alpha = 0) : o.coords = Sr[r], o.coords)
1831
+ if (r === "transparent" ? (o.coords = _r.black, o.alpha = 0) : o.coords = _r[r], o.coords)
1832
1832
  return o;
1833
1833
  }
1834
1834
  }
1835
1835
  }
1836
- }), jt = new T({
1836
+ }), Dt = new T({
1837
1837
  id: "p3",
1838
1838
  cssId: "display-p3",
1839
1839
  name: "P3",
1840
- base: Ft,
1840
+ base: Lt,
1841
1841
  // Gamma encoding/decoding is the same as sRGB
1842
1842
  fromBase: Ao.fromBase,
1843
1843
  toBase: Ao.toBase
1844
1844
  });
1845
1845
  G.display_space = Ao;
1846
- let Ar;
1846
+ let Rr;
1847
1847
  if (typeof CSS < "u" && CSS.supports)
1848
- for (let r of [Y, Ot, jt]) {
1849
- let o = r.getMinCoords(), e = Io({ space: r, coords: o, alpha: 1 });
1848
+ for (let r of [Y, Ft, Dt]) {
1849
+ let o = r.getMinCoords(), e = Oo({ space: r, coords: o, alpha: 1 });
1850
1850
  if (CSS.supports("color", e)) {
1851
1851
  G.display_space = r;
1852
1852
  break;
1853
1853
  }
1854
1854
  }
1855
- function Al(r, { space: o = G.display_space, ...e } = {}) {
1856
- let t = Io(r, e);
1855
+ function Rl(r, { space: o = G.display_space, ...e } = {}) {
1856
+ let t = Oo(r, e);
1857
1857
  if (typeof CSS > "u" || CSS.supports("color", t) || !G.display_space)
1858
1858
  t = new String(t), t.color = r;
1859
1859
  else {
1860
1860
  let a = r;
1861
- if ((r.coords.some(mo) || mo(r.alpha)) && !(Ar ?? (Ar = CSS.supports("color", "hsl(none 50% 50%)"))) && (a = _o(r), a.coords = a.coords.map(R), a.alpha = R(a.alpha), t = Io(a, e), CSS.supports("color", t)))
1861
+ if ((r.coords.some(mo) || mo(r.alpha)) && !(Rr ?? (Rr = CSS.supports("color", "hsl(none 50% 50%)"))) && (a = _o(r), a.coords = a.coords.map(R), a.alpha = R(a.alpha), t = Oo(a, e), CSS.supports("color", t)))
1862
1862
  return t = new String(t), t.color = a, t;
1863
- a = M(a, o), t = new String(Io(a, e)), t.color = a;
1863
+ a = M(a, o), t = new String(Oo(a, e)), t.color = a;
1864
1864
  }
1865
1865
  return t;
1866
1866
  }
1867
- function Rl(r, o) {
1867
+ function Pl(r, o) {
1868
1868
  return r = v(r), o = v(o), r.space === o.space && r.alpha === o.alpha && r.coords.every((e, t) => e === o.coords[t]);
1869
1869
  }
1870
1870
  function fo(r) {
1871
1871
  return X(r, [B, "y"]);
1872
1872
  }
1873
- function Dt(r, o) {
1873
+ function Tt(r, o) {
1874
1874
  no(r, [B, "y"], o);
1875
1875
  }
1876
- function Pl(r) {
1876
+ function Hl(r) {
1877
1877
  Object.defineProperty(r.prototype, "luminance", {
1878
1878
  get() {
1879
1879
  return fo(this);
1880
1880
  },
1881
1881
  set(o) {
1882
- Dt(this, o);
1882
+ Tt(this, o);
1883
1883
  }
1884
1884
  });
1885
1885
  }
1886
- var Hl = /* @__PURE__ */ Object.freeze({
1886
+ var Nl = /* @__PURE__ */ Object.freeze({
1887
1887
  __proto__: null,
1888
1888
  getLuminance: fo,
1889
- register: Pl,
1890
- setLuminance: Dt
1889
+ register: Hl,
1890
+ setLuminance: Tt
1891
1891
  });
1892
- function Nl(r, o) {
1892
+ function Bl(r, o) {
1893
1893
  r = v(r), o = v(o);
1894
1894
  let e = Math.max(fo(r), 0), t = Math.max(fo(o), 0);
1895
1895
  return t > e && ([e, t] = [t, e]), (e + 0.05) / (t + 0.05);
1896
1896
  }
1897
- const Bl = 0.56, Il = 0.57, Ol = 0.62, Fl = 0.65, Rr = 0.022, Ll = 1.414, jl = 0.1, Dl = 5e-4, Tl = 1.14, Pr = 0.027, ql = 1.14;
1898
- function Hr(r) {
1899
- return r >= Rr ? r : r + (Rr - r) ** Ll;
1897
+ const Ol = 0.56, Il = 0.57, Fl = 0.62, Ll = 0.65, Pr = 0.022, jl = 1.414, Dl = 0.1, Tl = 5e-4, ql = 1.14, Hr = 0.027, Wl = 1.14;
1898
+ function Nr(r) {
1899
+ return r >= Pr ? r : r + (Pr - r) ** jl;
1900
1900
  }
1901
1901
  function ko(r) {
1902
1902
  let o = r < 0 ? -1 : 1, e = Math.abs(r);
1903
1903
  return o * Math.pow(e, 2.4);
1904
1904
  }
1905
- function Wl(r, o) {
1905
+ function Ul(r, o) {
1906
1906
  o = v(o), r = v(r);
1907
1907
  let e, t, a, l, s, n;
1908
1908
  o = M(o, "srgb"), [l, s, n] = o.coords;
1909
1909
  let i = ko(l) * 0.2126729 + ko(s) * 0.7151522 + ko(n) * 0.072175;
1910
1910
  r = M(r, "srgb"), [l, s, n] = r.coords;
1911
- let c = ko(l) * 0.2126729 + ko(s) * 0.7151522 + ko(n) * 0.072175, u = Hr(i), h = Hr(c), d = h > u;
1912
- return Math.abs(h - u) < Dl ? t = 0 : d ? (e = h ** Bl - u ** Il, t = e * Tl) : (e = h ** Fl - u ** Ol, t = e * ql), Math.abs(t) < jl ? a = 0 : t > 0 ? a = t - Pr : a = t + Pr, a * 100;
1911
+ let c = ko(l) * 0.2126729 + ko(s) * 0.7151522 + ko(n) * 0.072175, u = Nr(i), h = Nr(c), d = h > u;
1912
+ return Math.abs(h - u) < Tl ? t = 0 : d ? (e = h ** Ol - u ** Il, t = e * ql) : (e = h ** Ll - u ** Fl, t = e * Wl), Math.abs(t) < Dl ? a = 0 : t > 0 ? a = t - Hr : a = t + Hr, a * 100;
1913
1913
  }
1914
- function Ul(r, o) {
1914
+ function Xl(r, o) {
1915
1915
  r = v(r), o = v(o);
1916
1916
  let e = Math.max(fo(r), 0), t = Math.max(fo(o), 0);
1917
1917
  t > e && ([e, t] = [t, e]);
1918
1918
  let a = e + t;
1919
1919
  return a === 0 ? 0 : (e - t) / a;
1920
1920
  }
1921
- const Xl = 5e4;
1922
- function Yl(r, o) {
1921
+ const Yl = 5e4;
1922
+ function Gl(r, o) {
1923
1923
  r = v(r), o = v(o);
1924
1924
  let e = Math.max(fo(r), 0), t = Math.max(fo(o), 0);
1925
- return t > e && ([e, t] = [t, e]), t === 0 ? Xl : (e - t) / t;
1925
+ return t > e && ([e, t] = [t, e]), t === 0 ? Yl : (e - t) / t;
1926
1926
  }
1927
- function Gl(r, o) {
1927
+ function Zl(r, o) {
1928
1928
  r = v(r), o = v(o);
1929
1929
  let e = X(r, [Y, "l"]), t = X(o, [Y, "l"]);
1930
1930
  return Math.abs(e - t);
1931
1931
  }
1932
- const Zl = 216 / 24389, Nr = 24 / 116, Ko = 24389 / 27;
1932
+ const Kl = 216 / 24389, Br = 24 / 116, Ko = 24389 / 27;
1933
1933
  let ze = j.D65;
1934
1934
  var Be = new g({
1935
1935
  id: "lab-d65",
@@ -1953,7 +1953,7 @@ var Be = new g({
1953
1953
  // Convert D65-adapted XYZ to Lab
1954
1954
  // CIE 15.3:2004 section 8.2.1.1
1955
1955
  fromBase(r) {
1956
- let o = r.map((e, t) => e / ze[t]).map((e) => e > Zl ? Math.cbrt(e) : (Ko * e + 16) / 116);
1956
+ let o = r.map((e, t) => e / ze[t]).map((e) => e > Kl ? Math.cbrt(e) : (Ko * e + 16) / 116);
1957
1957
  return [
1958
1958
  116 * o[1] - 16,
1959
1959
  // L
@@ -1969,9 +1969,9 @@ var Be = new g({
1969
1969
  toBase(r) {
1970
1970
  let o = [];
1971
1971
  return o[1] = (r[0] + 16) / 116, o[0] = r[1] / 500 + o[1], o[2] = o[1] - r[2] / 200, [
1972
- o[0] > Nr ? Math.pow(o[0], 3) : (116 * o[0] - 16) / Ko,
1972
+ o[0] > Br ? Math.pow(o[0], 3) : (116 * o[0] - 16) / Ko,
1973
1973
  r[0] > 8 ? Math.pow((r[0] + 16) / 116, 3) : r[0] / Ko,
1974
- o[2] > Nr ? Math.pow(o[2], 3) : (116 * o[2] - 16) / Ko
1974
+ o[2] > Br ? Math.pow(o[2], 3) : (116 * o[2] - 16) / Ko
1975
1975
  ].map((e, t) => e * ze[t]);
1976
1976
  },
1977
1977
  formats: {
@@ -1981,21 +1981,21 @@ var Be = new g({
1981
1981
  }
1982
1982
  });
1983
1983
  const ve = Math.pow(5, 0.5) * 0.5 + 0.5;
1984
- function Kl(r, o) {
1984
+ function Vl(r, o) {
1985
1985
  r = v(r), o = v(o);
1986
1986
  let e = X(r, [Be, "l"]), t = X(o, [Be, "l"]), a = Math.abs(Math.pow(e, ve) - Math.pow(t, ve)), l = Math.pow(a, 1 / ve) * Math.SQRT2 - 40;
1987
1987
  return l < 7.5 ? 0 : l;
1988
1988
  }
1989
1989
  var te = /* @__PURE__ */ Object.freeze({
1990
1990
  __proto__: null,
1991
- contrastAPCA: Wl,
1992
- contrastDeltaPhi: Kl,
1993
- contrastLstar: Gl,
1994
- contrastMichelson: Ul,
1995
- contrastWCAG21: Nl,
1996
- contrastWeber: Yl
1991
+ contrastAPCA: Ul,
1992
+ contrastDeltaPhi: Vl,
1993
+ contrastLstar: Zl,
1994
+ contrastMichelson: Xl,
1995
+ contrastWCAG21: Bl,
1996
+ contrastWeber: Gl
1997
1997
  });
1998
- function Vl(r, o, e = {}) {
1998
+ function Jl(r, o, e = {}) {
1999
1999
  Do(e) && (e = { algorithm: e });
2000
2000
  let { algorithm: t, ...a } = e;
2001
2001
  if (!t) {
@@ -2012,26 +2012,26 @@ function de(r) {
2012
2012
  let [o, e, t] = To(r, B), a = o + 15 * e + 3 * t;
2013
2013
  return [4 * o / a, 9 * e / a];
2014
2014
  }
2015
- function Tt(r) {
2015
+ function qt(r) {
2016
2016
  let [o, e, t] = To(r, B), a = o + e + t;
2017
2017
  return [o / a, e / a];
2018
2018
  }
2019
- function Jl(r) {
2019
+ function Ql(r) {
2020
2020
  Object.defineProperty(r.prototype, "uv", {
2021
2021
  get() {
2022
2022
  return de(this);
2023
2023
  }
2024
2024
  }), Object.defineProperty(r.prototype, "xy", {
2025
2025
  get() {
2026
- return Tt(this);
2026
+ return qt(this);
2027
2027
  }
2028
2028
  });
2029
2029
  }
2030
- var Ql = /* @__PURE__ */ Object.freeze({
2030
+ var os = /* @__PURE__ */ Object.freeze({
2031
2031
  __proto__: null,
2032
- register: Jl,
2032
+ register: Ql,
2033
2033
  uv: de,
2034
- xy: Tt
2034
+ xy: qt
2035
2035
  });
2036
2036
  function Bo(r, o, e = {}) {
2037
2037
  Do(e) && (e = { method: e });
@@ -2041,23 +2041,23 @@ function Bo(r, o, e = {}) {
2041
2041
  return Eo[l](r, o, a);
2042
2042
  throw new TypeError(`Unknown deltaE method: ${t}`);
2043
2043
  }
2044
- function os(r, o = 0.25) {
2044
+ function es(r, o = 0.25) {
2045
2045
  let e = [g.get("oklch", "lch"), "l"];
2046
2046
  return no(r, e, (t) => t * (1 + o));
2047
2047
  }
2048
- function es(r, o = 0.25) {
2048
+ function rs(r, o = 0.25) {
2049
2049
  let e = [g.get("oklch", "lch"), "l"];
2050
2050
  return no(r, e, (t) => t * (1 - o));
2051
2051
  }
2052
- var rs = /* @__PURE__ */ Object.freeze({
2052
+ var ts = /* @__PURE__ */ Object.freeze({
2053
2053
  __proto__: null,
2054
- darken: es,
2055
- lighten: os
2054
+ darken: rs,
2055
+ lighten: es
2056
2056
  });
2057
- function qt(r, o, e = 0.5, t = {}) {
2057
+ function Wt(r, o, e = 0.5, t = {}) {
2058
2058
  return [r, o] = [v(r), v(o)], ho(e) === "object" && ([e, t] = [0.5, e]), qo(r, o, t)(e);
2059
2059
  }
2060
- function Wt(r, o, e = {}) {
2060
+ function Ut(r, o, e = {}) {
2061
2061
  let t;
2062
2062
  Ue(r) && ([t, e] = [r, o], [r, o] = t.rangeArgs.colors);
2063
2063
  let {
@@ -2111,8 +2111,8 @@ function qo(r, o, e = {}) {
2111
2111
  i = l ? l(i) : i;
2112
2112
  let c = r.coords.map((d, f) => {
2113
2113
  let b = o.coords[f];
2114
- return Oo(d, b, i);
2115
- }), u = Oo(r.alpha, o.alpha, i), h = { space: t, coords: c, alpha: u };
2114
+ return Io(d, b, i);
2115
+ }), u = Io(r.alpha, o.alpha, i), h = { space: t, coords: c, alpha: u };
2116
2116
  return s && (h.coords = h.coords.map((d) => d / u)), a !== t && (h = M(h, a)), h;
2117
2117
  }, {
2118
2118
  rangeArgs: n
@@ -2122,17 +2122,17 @@ function Ue(r) {
2122
2122
  return ho(r) === "function" && !!r.rangeArgs;
2123
2123
  }
2124
2124
  G.interpolationSpace = "lab";
2125
- function ts(r) {
2126
- r.defineFunction("mix", qt, { returns: "color" }), r.defineFunction("range", qo, { returns: "function<color>" }), r.defineFunction("steps", Wt, { returns: "array<color>" });
2125
+ function as(r) {
2126
+ r.defineFunction("mix", Wt, { returns: "color" }), r.defineFunction("range", qo, { returns: "function<color>" }), r.defineFunction("steps", Ut, { returns: "array<color>" });
2127
2127
  }
2128
- var as = /* @__PURE__ */ Object.freeze({
2128
+ var ls = /* @__PURE__ */ Object.freeze({
2129
2129
  __proto__: null,
2130
2130
  isRange: Ue,
2131
- mix: qt,
2131
+ mix: Wt,
2132
2132
  range: qo,
2133
- register: ts,
2134
- steps: Wt
2135
- }), Ut = new g({
2133
+ register: as,
2134
+ steps: Ut
2135
+ }), Xt = new g({
2136
2136
  id: "hsl",
2137
2137
  name: "HSL",
2138
2138
  coords: {
@@ -2189,7 +2189,7 @@ var as = /* @__PURE__ */ Object.freeze({
2189
2189
  lastAlpha: !0
2190
2190
  }
2191
2191
  }
2192
- }), Xt = new g({
2192
+ }), Yt = new g({
2193
2193
  id: "hsv",
2194
2194
  name: "HSV",
2195
2195
  coords: {
@@ -2207,7 +2207,7 @@ var as = /* @__PURE__ */ Object.freeze({
2207
2207
  name: "Value"
2208
2208
  }
2209
2209
  },
2210
- base: Ut,
2210
+ base: Xt,
2211
2211
  // https://en.wikipedia.org/wiki/HSL_and_HSV#Interconversion
2212
2212
  fromBase(r) {
2213
2213
  let [o, e, t] = r;
@@ -2239,7 +2239,7 @@ var as = /* @__PURE__ */ Object.freeze({
2239
2239
  coords: ["<number> | <angle>", "<percentage> | <number>", "<percentage> | <number>"]
2240
2240
  }
2241
2241
  }
2242
- }), ls = new g({
2242
+ }), ss = new g({
2243
2243
  id: "hwb",
2244
2244
  name: "HWB",
2245
2245
  coords: {
@@ -2257,7 +2257,7 @@ var as = /* @__PURE__ */ Object.freeze({
2257
2257
  name: "Blackness"
2258
2258
  }
2259
2259
  },
2260
- base: Xt,
2260
+ base: Yt,
2261
2261
  fromBase(r) {
2262
2262
  let [o, e, t] = r;
2263
2263
  return [o, t * (100 - e) / 100, 100 - t];
@@ -2279,61 +2279,61 @@ var as = /* @__PURE__ */ Object.freeze({
2279
2279
  }
2280
2280
  }
2281
2281
  });
2282
- const ss = [
2282
+ const ns = [
2283
2283
  [0.5766690429101305, 0.1855582379065463, 0.1882286462349947],
2284
2284
  [0.29734497525053605, 0.6273635662554661, 0.07529145849399788],
2285
2285
  [0.02703136138641234, 0.07068885253582723, 0.9913375368376388]
2286
- ], ns = [
2286
+ ], is = [
2287
2287
  [2.0415879038107465, -0.5650069742788596, -0.34473135077832956],
2288
2288
  [-0.9692436362808795, 1.8759675015077202, 0.04155505740717557],
2289
2289
  [0.013444280632031142, -0.11836239223101838, 1.0151749943912054]
2290
2290
  ];
2291
- var Yt = new T({
2291
+ var Gt = new T({
2292
2292
  id: "a98rgb-linear",
2293
2293
  cssId: "--a98-rgb-linear",
2294
2294
  name: "Linear Adobe® 98 RGB compatible",
2295
2295
  white: "D65",
2296
- toXYZ_M: ss,
2297
- fromXYZ_M: ns
2298
- }), is = new T({
2296
+ toXYZ_M: ns,
2297
+ fromXYZ_M: is
2298
+ }), cs = new T({
2299
2299
  id: "a98rgb",
2300
2300
  cssId: "a98-rgb",
2301
2301
  name: "Adobe® 98 RGB compatible",
2302
- base: Yt,
2302
+ base: Gt,
2303
2303
  toBase: (r) => r.map((o) => Math.pow(Math.abs(o), 563 / 256) * Math.sign(o)),
2304
2304
  fromBase: (r) => r.map((o) => Math.pow(Math.abs(o), 256 / 563) * Math.sign(o))
2305
2305
  });
2306
- const cs = [
2306
+ const us = [
2307
2307
  [0.7977666449006423, 0.13518129740053308, 0.0313477341283922],
2308
2308
  [0.2880748288194013, 0.711835234241873, 8993693872564e-17],
2309
2309
  [0, 0, 0.8251046025104602]
2310
- ], us = [
2310
+ ], hs = [
2311
2311
  [1.3457868816471583, -0.25557208737979464, -0.05110186497554526],
2312
2312
  [-0.5446307051249019, 1.5082477428451468, 0.02052744743642139],
2313
2313
  [0, 0, 1.2119675456389452]
2314
2314
  ];
2315
- var Gt = new T({
2315
+ var Zt = new T({
2316
2316
  id: "prophoto-linear",
2317
2317
  cssId: "--prophoto-rgb-linear",
2318
2318
  name: "Linear ProPhoto",
2319
2319
  white: "D50",
2320
2320
  base: Te,
2321
- toXYZ_M: cs,
2322
- fromXYZ_M: us
2321
+ toXYZ_M: us,
2322
+ fromXYZ_M: hs
2323
2323
  });
2324
- const hs = 1 / 512, ds = 16 / 512;
2325
- var ms = new T({
2324
+ const ds = 1 / 512, ms = 16 / 512;
2325
+ var ps = new T({
2326
2326
  id: "prophoto",
2327
2327
  cssId: "prophoto-rgb",
2328
2328
  name: "ProPhoto",
2329
- base: Gt,
2329
+ base: Zt,
2330
2330
  toBase(r) {
2331
- return r.map((o) => o < ds ? o / 16 : o ** 1.8);
2331
+ return r.map((o) => o < ms ? o / 16 : o ** 1.8);
2332
2332
  },
2333
2333
  fromBase(r) {
2334
- return r.map((o) => o >= hs ? o ** (1 / 1.8) : 16 * o);
2334
+ return r.map((o) => o >= ds ? o ** (1 / 1.8) : 16 * o);
2335
2335
  }
2336
- }), ps = new g({
2336
+ }), gs = new g({
2337
2337
  id: "oklch",
2338
2338
  name: "Oklch",
2339
2339
  coords: {
@@ -2376,9 +2376,9 @@ var ms = new T({
2376
2376
  }
2377
2377
  }
2378
2378
  });
2379
- let Zt = j.D65;
2380
- const gs = 216 / 24389, Br = 24389 / 27, [Ir, Or] = de({ space: B, coords: Zt });
2381
- var Kt = new g({
2379
+ let Kt = j.D65;
2380
+ const fs = 216 / 24389, Or = 24389 / 27, [Ir, Fr] = de({ space: B, coords: Kt });
2381
+ var Vt = new g({
2382
2382
  id: "luv",
2383
2383
  name: "Luv",
2384
2384
  coords: {
@@ -2394,7 +2394,7 @@ var Kt = new g({
2394
2394
  refRange: [-215, 215]
2395
2395
  }
2396
2396
  },
2397
- white: Zt,
2397
+ white: Kt,
2398
2398
  base: B,
2399
2399
  // Convert D65-adapted XYZ to Luv
2400
2400
  // https://en.wikipedia.org/wiki/CIELUV#The_forward_transformation
@@ -2402,11 +2402,11 @@ var Kt = new g({
2402
2402
  let o = [R(r[0]), R(r[1]), R(r[2])], e = o[1], [t, a] = de({ space: B, coords: o });
2403
2403
  if (!Number.isFinite(t) || !Number.isFinite(a))
2404
2404
  return [0, 0, 0];
2405
- let l = e <= gs ? Br * e : 116 * Math.cbrt(e) - 16;
2405
+ let l = e <= fs ? Or * e : 116 * Math.cbrt(e) - 16;
2406
2406
  return [
2407
2407
  l,
2408
2408
  13 * l * (t - Ir),
2409
- 13 * l * (a - Or)
2409
+ 13 * l * (a - Fr)
2410
2410
  ];
2411
2411
  },
2412
2412
  // Convert Luv to D65-adapted XYZ
@@ -2416,7 +2416,7 @@ var Kt = new g({
2416
2416
  if (o === 0 || mo(o))
2417
2417
  return [0, 0, 0];
2418
2418
  e = R(e), t = R(t);
2419
- let a = e / (13 * o) + Ir, l = t / (13 * o) + Or, s = o <= 8 ? o / Br : Math.pow((o + 16) / 116, 3);
2419
+ let a = e / (13 * o) + Ir, l = t / (13 * o) + Fr, s = o <= 8 ? o / Or : Math.pow((o + 16) / 116, 3);
2420
2420
  return [
2421
2421
  s * (9 * a / (4 * l)),
2422
2422
  s,
@@ -2447,7 +2447,7 @@ var Kt = new g({
2447
2447
  name: "Hue"
2448
2448
  }
2449
2449
  },
2450
- base: Kt,
2450
+ base: Vt,
2451
2451
  fromBase(r) {
2452
2452
  let [o, e, t] = r, a;
2453
2453
  const l = 0.02;
@@ -2478,13 +2478,13 @@ var Kt = new g({
2478
2478
  }
2479
2479
  }
2480
2480
  });
2481
- const fs = 216 / 24389, bs = 24389 / 27, Fr = P[0][0], Lr = P[0][1], we = P[0][2], jr = P[1][0], Dr = P[1][1], ye = P[1][2], Tr = P[2][0], qr = P[2][1], xe = P[2][2];
2481
+ const bs = 216 / 24389, zs = 24389 / 27, Lr = P[0][0], jr = P[0][1], we = P[0][2], Dr = P[1][0], Tr = P[1][1], ye = P[1][2], qr = P[2][0], Wr = P[2][1], xe = P[2][2];
2482
2482
  function Mo(r, o, e) {
2483
2483
  const t = o / (Math.sin(e) - r * Math.cos(e));
2484
2484
  return t < 0 ? 1 / 0 : t;
2485
2485
  }
2486
2486
  function ne(r) {
2487
- const o = Math.pow(r + 16, 3) / 1560896, e = o > fs ? o : r / bs, t = e * (284517 * Fr - 94839 * we), a = e * (838422 * we + 769860 * Lr + 731718 * Fr), l = e * (632260 * we - 126452 * Lr), s = e * (284517 * jr - 94839 * ye), n = e * (838422 * ye + 769860 * Dr + 731718 * jr), i = e * (632260 * ye - 126452 * Dr), c = e * (284517 * Tr - 94839 * xe), u = e * (838422 * xe + 769860 * qr + 731718 * Tr), h = e * (632260 * xe - 126452 * qr);
2487
+ const o = Math.pow(r + 16, 3) / 1560896, e = o > bs ? o : r / zs, t = e * (284517 * Lr - 94839 * we), a = e * (838422 * we + 769860 * jr + 731718 * Lr), l = e * (632260 * we - 126452 * jr), s = e * (284517 * Dr - 94839 * ye), n = e * (838422 * ye + 769860 * Tr + 731718 * Dr), i = e * (632260 * ye - 126452 * Tr), c = e * (284517 * qr - 94839 * xe), u = e * (838422 * xe + 769860 * Wr + 731718 * qr), h = e * (632260 * xe - 126452 * Wr);
2488
2488
  return {
2489
2489
  r0s: t / l,
2490
2490
  r0i: a * r / l,
@@ -2500,11 +2500,11 @@ function ne(r) {
2500
2500
  b1i: (u - 769860) * r / (h + 126452)
2501
2501
  };
2502
2502
  }
2503
- function Wr(r, o) {
2503
+ function Ur(r, o) {
2504
2504
  const e = o / 360 * Math.PI * 2, t = Mo(r.r0s, r.r0i, e), a = Mo(r.r1s, r.r1i, e), l = Mo(r.g0s, r.g0i, e), s = Mo(r.g1s, r.g1i, e), n = Mo(r.b0s, r.b0i, e), i = Mo(r.b1s, r.b1i, e);
2505
2505
  return Math.min(t, a, l, s, n, i);
2506
2506
  }
2507
- var zs = new g({
2507
+ var vs = new g({
2508
2508
  id: "hsluv",
2509
2509
  name: "HSLuv",
2510
2510
  coords: {
@@ -2532,7 +2532,7 @@ var zs = new g({
2532
2532
  else if (o < 1e-8)
2533
2533
  a = 0, o = 0;
2534
2534
  else {
2535
- let l = ne(o), s = Wr(l, t);
2535
+ let l = ne(o), s = Ur(l, t);
2536
2536
  a = e / s * 100;
2537
2537
  }
2538
2538
  return [t, a, o];
@@ -2546,7 +2546,7 @@ var zs = new g({
2546
2546
  t = 0, a = 0;
2547
2547
  else {
2548
2548
  let l = ne(t);
2549
- a = Wr(l, o) / 100 * e;
2549
+ a = Ur(l, o) / 100 * e;
2550
2550
  }
2551
2551
  return [t, a, o];
2552
2552
  },
@@ -2569,11 +2569,11 @@ P[2][2];
2569
2569
  function $o(r, o) {
2570
2570
  return Math.abs(o) / Math.sqrt(Math.pow(r, 2) + 1);
2571
2571
  }
2572
- function Ur(r) {
2572
+ function Xr(r) {
2573
2573
  let o = $o(r.r0s, r.r0i), e = $o(r.r1s, r.r1i), t = $o(r.g0s, r.g0i), a = $o(r.g1s, r.g1i), l = $o(r.b0s, r.b0i), s = $o(r.b1s, r.b1i);
2574
2574
  return Math.min(o, e, t, a, l, s);
2575
2575
  }
2576
- var vs = new g({
2576
+ var ws = new g({
2577
2577
  id: "hpluv",
2578
2578
  name: "HPLuv",
2579
2579
  coords: {
@@ -2601,7 +2601,7 @@ var vs = new g({
2601
2601
  else if (o < 1e-8)
2602
2602
  a = 0, o = 0;
2603
2603
  else {
2604
- let l = ne(o), s = Ur(l);
2604
+ let l = ne(o), s = Xr(l);
2605
2605
  a = e / s * 100;
2606
2606
  }
2607
2607
  return [t, a, o];
@@ -2615,7 +2615,7 @@ var vs = new g({
2615
2615
  t = 0, a = 0;
2616
2616
  else {
2617
2617
  let l = ne(t);
2618
- a = Ur(l) / 100 * e;
2618
+ a = Xr(l) / 100 * e;
2619
2619
  }
2620
2620
  return [t, a, o];
2621
2621
  },
@@ -2626,26 +2626,26 @@ var vs = new g({
2626
2626
  }
2627
2627
  }
2628
2628
  });
2629
- const Xr = 203, Yr = 2610 / 2 ** 14, ws = 2 ** 14 / 2610, ys = 2523 / 2 ** 5, Gr = 2 ** 5 / 2523, Zr = 3424 / 2 ** 12, Kr = 2413 / 2 ** 7, Vr = 2392 / 2 ** 7;
2630
- var xs = new T({
2629
+ const Yr = 203, Gr = 2610 / 2 ** 14, ys = 2 ** 14 / 2610, xs = 2523 / 2 ** 5, Zr = 2 ** 5 / 2523, Kr = 3424 / 2 ** 12, Vr = 2413 / 2 ** 7, Jr = 2392 / 2 ** 7;
2630
+ var Cs = new T({
2631
2631
  id: "rec2100pq",
2632
2632
  cssId: "rec2100-pq",
2633
2633
  name: "REC.2100-PQ",
2634
2634
  base: he,
2635
2635
  toBase(r) {
2636
2636
  return r.map(function(o) {
2637
- return (Math.max(o ** Gr - Zr, 0) / (Kr - Vr * o ** Gr)) ** ws * 1e4 / Xr;
2637
+ return (Math.max(o ** Zr - Kr, 0) / (Vr - Jr * o ** Zr)) ** ys * 1e4 / Yr;
2638
2638
  });
2639
2639
  },
2640
2640
  fromBase(r) {
2641
2641
  return r.map(function(o) {
2642
- let e = Math.max(o * Xr / 1e4, 0), t = Zr + Kr * e ** Yr, a = 1 + Vr * e ** Yr;
2643
- return (t / a) ** ys;
2642
+ let e = Math.max(o * Yr / 1e4, 0), t = Kr + Vr * e ** Gr, a = 1 + Jr * e ** Gr;
2643
+ return (t / a) ** xs;
2644
2644
  });
2645
2645
  }
2646
2646
  });
2647
- const Jr = 0.17883277, Qr = 0.28466892, ot = 0.55991073, Ce = 3.7743;
2648
- var Cs = new T({
2647
+ const Qr = 0.17883277, ot = 0.28466892, et = 0.55991073, Ce = 3.7743;
2648
+ var ks = new T({
2649
2649
  id: "rec2100hlg",
2650
2650
  cssId: "rec2100-hlg",
2651
2651
  name: "REC.2100-HLG",
@@ -2653,27 +2653,27 @@ var Cs = new T({
2653
2653
  base: he,
2654
2654
  toBase(r) {
2655
2655
  return r.map(function(o) {
2656
- return o <= 0.5 ? o ** 2 / 3 * Ce : (Math.exp((o - ot) / Jr) + Qr) / 12 * Ce;
2656
+ return o <= 0.5 ? o ** 2 / 3 * Ce : (Math.exp((o - et) / Qr) + ot) / 12 * Ce;
2657
2657
  });
2658
2658
  },
2659
2659
  fromBase(r) {
2660
2660
  return r.map(function(o) {
2661
- return o /= Ce, o <= 1 / 12 ? Math.sqrt(3 * o) : Jr * Math.log(12 * o - Qr) + ot;
2661
+ return o /= Ce, o <= 1 / 12 ? Math.sqrt(3 * o) : Qr * Math.log(12 * o - ot) + et;
2662
2662
  });
2663
2663
  }
2664
2664
  });
2665
- const Vt = {};
2665
+ const Jt = {};
2666
2666
  po.add("chromatic-adaptation-start", (r) => {
2667
- r.options.method && (r.M = Jt(r.W1, r.W2, r.options.method));
2667
+ r.options.method && (r.M = Qt(r.W1, r.W2, r.options.method));
2668
2668
  });
2669
2669
  po.add("chromatic-adaptation-end", (r) => {
2670
- r.M || (r.M = Jt(r.W1, r.W2, r.options.method));
2670
+ r.M || (r.M = Qt(r.W1, r.W2, r.options.method));
2671
2671
  });
2672
2672
  function me({ id: r, toCone_M: o, fromCone_M: e }) {
2673
- Vt[r] = arguments[0];
2673
+ Jt[r] = arguments[0];
2674
2674
  }
2675
- function Jt(r, o, e = "Bradford") {
2676
- let t = Vt[e], [a, l, s] = $(t.toCone_M, r), [n, i, c] = $(t.toCone_M, o), u = [
2675
+ function Qt(r, o, e = "Bradford") {
2676
+ let t = Jt[e], [a, l, s] = $(t.toCone_M, r), [n, i, c] = $(t.toCone_M, o), u = [
2677
2677
  [n / a, 0, 0],
2678
2678
  [0, i / l, 0],
2679
2679
  [0, 0, c / s]
@@ -2757,16 +2757,16 @@ Object.assign(j, {
2757
2757
  F11: [1.00962, 1, 0.6435]
2758
2758
  });
2759
2759
  j.ACES = [0.32168 / 0.33767, 1, (1 - 0.32168 - 0.33767) / 0.33767];
2760
- const ks = [
2760
+ const Ms = [
2761
2761
  [0.6624541811085053, 0.13400420645643313, 0.1561876870049078],
2762
2762
  [0.27222871678091454, 0.6740817658111484, 0.05368951740793705],
2763
2763
  [-0.005574649490394108, 0.004060733528982826, 1.0103391003129971]
2764
- ], Ms = [
2764
+ ], $s = [
2765
2765
  [1.6410233796943257, -0.32480329418479, -0.23642469523761225],
2766
2766
  [-0.6636628587229829, 1.6153315916573379, 0.016756347685530137],
2767
2767
  [0.011721894328375376, -0.008284441996237409, 0.9883948585390215]
2768
2768
  ];
2769
- var Qt = new T({
2769
+ var oa = new T({
2770
2770
  id: "acescg",
2771
2771
  cssId: "--acescg",
2772
2772
  name: "ACEScg",
@@ -2789,11 +2789,11 @@ var Qt = new T({
2789
2789
  },
2790
2790
  referred: "scene",
2791
2791
  white: j.ACES,
2792
- toXYZ_M: ks,
2793
- fromXYZ_M: Ms
2792
+ toXYZ_M: Ms,
2793
+ fromXYZ_M: $s
2794
2794
  });
2795
2795
  const Vo = 2 ** -16, ke = -0.35828683, Jo = (Math.log2(65504) + 9.72) / 17.52;
2796
- var $s = new T({
2796
+ var Ss = new T({
2797
2797
  id: "acescc",
2798
2798
  cssId: "--acescc",
2799
2799
  name: "ACEScc",
@@ -2819,7 +2819,7 @@ var $s = new T({
2819
2819
  }
2820
2820
  },
2821
2821
  referred: "scene",
2822
- base: Qt,
2822
+ base: oa,
2823
2823
  // from section 4.4.2 Decoding Function
2824
2824
  toBase(r) {
2825
2825
  const o = -0.3013698630136986;
@@ -2835,42 +2835,42 @@ var $s = new T({
2835
2835
  }
2836
2836
  // encoded media white (rgb 1,1,1) => linear [ 222.861, 222.861, 222.861 ]
2837
2837
  // encoded media black (rgb 0,0,0) => linear [ 0.0011857, 0.0011857, 0.0011857]
2838
- }), et = /* @__PURE__ */ Object.freeze({
2838
+ }), rt = /* @__PURE__ */ Object.freeze({
2839
2839
  __proto__: null,
2840
- A98RGB: is,
2841
- A98RGB_Linear: Yt,
2842
- ACEScc: $s,
2843
- ACEScg: Qt,
2844
- CAM16_JMh: gl,
2840
+ A98RGB: cs,
2841
+ A98RGB_Linear: Gt,
2842
+ ACEScc: Ss,
2843
+ ACEScg: oa,
2844
+ CAM16_JMh: fl,
2845
2845
  HCT: Lo,
2846
- HPLuv: vs,
2847
- HSL: Ut,
2848
- HSLuv: zs,
2849
- HSV: Xt,
2850
- HWB: ls,
2846
+ HPLuv: ws,
2847
+ HSL: Xt,
2848
+ HSLuv: vs,
2849
+ HSV: Yt,
2850
+ HWB: ss,
2851
2851
  ICTCP: Pe,
2852
2852
  JzCzHz: Re,
2853
- Jzazbz: St,
2853
+ Jzazbz: _t,
2854
2854
  LCH: Fo,
2855
2855
  LCHuv: Xe,
2856
2856
  Lab: Y,
2857
2857
  Lab_D65: Be,
2858
- Luv: Kt,
2859
- OKLCH: ps,
2858
+ Luv: Vt,
2859
+ OKLCH: gs,
2860
2860
  OKLab: So,
2861
- P3: jt,
2862
- P3_Linear: Ft,
2863
- ProPhoto: ms,
2864
- ProPhoto_Linear: Gt,
2865
- REC_2020: Ot,
2861
+ P3: Dt,
2862
+ P3_Linear: Lt,
2863
+ ProPhoto: ps,
2864
+ ProPhoto_Linear: Zt,
2865
+ REC_2020: Ft,
2866
2866
  REC_2020_Linear: he,
2867
- REC_2100_HLG: Cs,
2868
- REC_2100_PQ: xs,
2867
+ REC_2100_HLG: ks,
2868
+ REC_2100_PQ: Cs,
2869
2869
  XYZ_ABS_D65: qe,
2870
2870
  XYZ_D50: Te,
2871
2871
  XYZ_D65: B,
2872
2872
  sRGB: Ao,
2873
- sRGB_Linear: Lt
2873
+ sRGB_Linear: jt
2874
2874
  });
2875
2875
  let _ = class D {
2876
2876
  /**
@@ -2915,7 +2915,7 @@ let _ = class D {
2915
2915
  };
2916
2916
  }
2917
2917
  display(...o) {
2918
- let e = Al(this, ...o);
2918
+ let e = Rl(this, ...o);
2919
2919
  return e.color = new D(e.color), e;
2920
2920
  }
2921
2921
  /**
@@ -2961,33 +2961,33 @@ _.defineFunctions({
2961
2961
  set: no,
2962
2962
  setAll: De,
2963
2963
  to: M,
2964
- equals: Rl,
2964
+ equals: Pl,
2965
2965
  inGamut: yo,
2966
2966
  toGamut: go,
2967
- distance: $t,
2968
- toString: Io
2967
+ distance: St,
2968
+ toString: Oo
2969
2969
  });
2970
2970
  Object.assign(_, {
2971
- util: Aa,
2971
+ util: Ra,
2972
2972
  hooks: po,
2973
2973
  WHITES: j,
2974
2974
  Space: g,
2975
2975
  spaces: g.registry,
2976
- parse: kt,
2976
+ parse: Mt,
2977
2977
  // Global defaults one may want to configure
2978
2978
  defaults: G
2979
2979
  });
2980
- for (let r of Object.keys(et))
2981
- g.register(et[r]);
2980
+ for (let r of Object.keys(rt))
2981
+ g.register(rt[r]);
2982
2982
  for (let r in g.registry)
2983
- Ie(r, g.registry[r]);
2983
+ Oe(r, g.registry[r]);
2984
2984
  po.add("colorspace-init-end", (r) => {
2985
2985
  var o;
2986
- Ie(r.id, r), (o = r.aliases) == null || o.forEach((e) => {
2987
- Ie(e, r);
2986
+ Oe(r.id, r), (o = r.aliases) == null || o.forEach((e) => {
2987
+ Oe(e, r);
2988
2988
  });
2989
2989
  });
2990
- function Ie(r, o) {
2990
+ function Oe(r, o) {
2991
2991
  let e = r.replace(/-/g, "_");
2992
2992
  Object.defineProperty(_.prototype, e, {
2993
2993
  // Convert coords to coords in another colorspace and return them
@@ -3034,13 +3034,13 @@ function Ie(r, o) {
3034
3034
  _.extend(Eo);
3035
3035
  _.extend({ deltaE: Bo });
3036
3036
  Object.assign(_, { deltaEMethods: Eo });
3037
- _.extend(rs);
3038
- _.extend({ contrast: Vl });
3039
- _.extend(Ql);
3040
- _.extend(Hl);
3041
- _.extend(as);
3037
+ _.extend(ts);
3038
+ _.extend({ contrast: Jl });
3039
+ _.extend(os);
3040
+ _.extend(Nl);
3041
+ _.extend(ls);
3042
3042
  _.extend(te);
3043
- class oa {
3043
+ class ea {
3044
3044
  /**
3045
3045
  * Creates an instance of ColorController.
3046
3046
  *
@@ -3080,31 +3080,63 @@ class oa {
3080
3080
  isValid: !1,
3081
3081
  alpha: 1
3082
3082
  }, n = [
3083
+ // With commas
3083
3084
  /rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d*\.?\d+)\s*\)/i,
3085
+ // rgba(r, g, b, a)
3084
3086
  /rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/i,
3087
+ // rgb(r, g, b)
3088
+ // With spaces
3085
3089
  /^rgba\s+(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+(0|0?\.\d+|1)\s*$/i,
3090
+ // rgba r g b a
3086
3091
  /^rgb\s+(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s*$/i,
3092
+ // rgb r g b
3093
+ // Spaces inside parentheses
3087
3094
  /^rgba\(\s*(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+(\d*\.?\d+)\s*\)$/i,
3095
+ // rgba(r g b a)
3088
3096
  /^rgb\(\s*(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s*\)$/i,
3097
+ // rgb(r g b)
3098
+ // Percentage values
3089
3099
  /rgb\(\s*(100|[0-9]{1,2}%)\s*,\s*(100|[0-9]{1,2}%)\s*,\s*(100|[0-9]{1,2}%)\s*\)/i,
3100
+ // rgb(r%, g%, b%)
3090
3101
  /rgba\(\s*(100|[0-9]{1,2})%\s*,\s*(100|[0-9]{1,2})%\s*,\s*(100|[0-9]{1,2})%\s*,\s*(\d*\.?\d+)\s*\)/i
3102
+ // rgba(r%, g%, b%, a)
3091
3103
  ], i = [
3104
+ // With commas
3092
3105
  /hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3}%?)\s*,\s*(\d{1,3}%?)\s*,\s*(\d*\.?\d+)\s*\)/i,
3106
+ // hsla(h, s, l, a)
3093
3107
  /hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3}%?)\s*,\s*(\d{1,3}%?)\s*\)/i,
3108
+ // hsl(h, s, l)
3109
+ // With spaces
3094
3110
  /^hsla\s+(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s+(\d*\.?\d+)\s*$/i,
3111
+ // hsla h s l a
3095
3112
  /^hsl\s+(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s*$/i,
3113
+ // hsl h s l
3114
+ // Spaces inside parentheses
3096
3115
  /^hsla\(\s*(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s+(\d*\.?\d+)\s*\)$/i,
3116
+ // hsla(h s l a)
3097
3117
  /^hsl\(\s*(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s*\)$/i
3118
+ // hsl(h s l)
3098
3119
  ], c = [
3120
+ // With commas
3099
3121
  /hsva\(\s*(\d{1,3})\s*,\s*(\d{1,3}%?)\s*,\s*(\d{1,3}%?)\s*,\s*(\d*\.?\d+)\s*\)/i,
3122
+ // hsva(h, s, v, a)
3100
3123
  /hsv\(\s*(\d{1,3})\s*,\s*(\d{1,3}%?)\s*,\s*(\d{1,3}%?)\s*\)/i,
3124
+ // hsv(h, s, v)
3125
+ // With spaces
3101
3126
  /^hsva\s+(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s+(\d*\.?\d+)\s*$/i,
3127
+ // hsva h s v a
3102
3128
  /^hsv\s+(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s*$/i,
3129
+ // hsv h s v
3130
+ // Spaces inside parentheses
3103
3131
  /^hsva\(\s*(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s+(\d*\.?\d+)\s*\)$/i,
3132
+ // hsva(h s v a)
3104
3133
  /^hsv\(\s*(\d{1,3})\s+(\d{1,3}%?)\s+(\d{1,3}%?)\s*\)$/i
3134
+ // hsv(h s v)
3105
3135
  ], u = [
3106
- /^#([A-Fa-f0-9]{6})(?:\s*([01](?:\.\d+)?))?$/,
3107
- /^#([A-Fa-f0-9]{3})(?:\s*([01](?:\.\d+)?))?$/
3136
+ /^#([A-Fa-f0-9]{6})([A-Fa-f0-9]{2})?$/,
3137
+ // 6-digit hex with optional hex alpha
3138
+ /^#([A-Fa-f0-9]{3})([A-Fa-f0-9]{1})?$/
3139
+ // 3-digit hex with optional hex alpha
3108
3140
  ], h = (e = n.find((p) => p.test(o))) == null ? void 0 : e.exec(o), d = (t = i.find((p) => p.test(o))) == null ? void 0 : t.exec(o), f = (a = c.find((p) => p.test(o))) == null ? void 0 : a.exec(o), b = (l = u.find((p) => p.test(o))) == null ? void 0 : l.exec(o);
3109
3141
  if (h) {
3110
3142
  const [, p, z, w, y] = h.filter(
@@ -3125,7 +3157,7 @@ class oa {
3125
3157
  const [, p, z] = b, w = (S) => (S.length === 1 && (S = S + S), Number.parseInt(S, 16) / 255);
3126
3158
  let y, C, x;
3127
3159
  p.length === 3 ? (y = w(p.slice(0, 1)), C = w(p.slice(1, 2)), x = w(p.slice(2, 3))) : (y = w(p.slice(0, 2)), C = w(p.slice(2, 4)), x = w(p.slice(4, 6)));
3128
- const k = z ? Number(z) : 1;
3160
+ const k = z ? w(z) : 1;
3129
3161
  s.spaceId = "srgb", s.coords = [y, C, x], s.alpha = k, s.isValid = y >= 0 && y <= 1 && C >= 0 && C <= 1 && x >= 0 && x <= 1 && k >= 0 && k <= 1;
3130
3162
  }
3131
3163
  return s;
@@ -3390,25 +3422,25 @@ class oa {
3390
3422
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3391
3423
  * SOFTWARE.
3392
3424
  * */
3393
- const Ss = () => {
3425
+ const _s = () => {
3394
3426
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
3395
3427
  const r = document.createElement("style");
3396
3428
  r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(r);
3397
3429
  }
3398
3430
  };
3399
- Ss();
3400
- const _s = "@media (forced-colors: active){:host{--highcontrast-color-area-border-color-disabled: GrayText;--highcontrast-color-area-border-color: Canvas;--highcontrast-color-area-fill-color-disabled: Canvas}.gradient,:host([disabled]){forced-color-adjust:none}}:host{cursor:default;-webkit-user-select:none;user-select:none;min-inline-size:var(--luzmo-color-area-min-width, 64px);min-block-size:var(--luzmo-color-area-min-height, 64px);inline-size:var(--luzmo-color-area-width, 192px);block-size:var(--luzmo-color-area-height, 192px);box-sizing:border-box;border-radius:var(--luzmo-color-area-border-radius, var(--luzmo-border-radius-s));border:var(--luzmo-color-area-border-width, var(--luzmo-border-width)) solid var(--highcontrast-color-area-border-color, var(--luzmo-color-area-border-color, var(--luzmo-border-color)));display:inline-block;position:relative}:host([focused]){z-index:1}:host([disabled]){pointer-events:none;background:var(--highcontrast-color-area-fill-color-disabled, var(--luzmo-color-area-disabled-background-color, var(--luzmo-dimmed-color)));border:var(--luzmo-color-area-border-width, var(--luzmo-border-width)) solid var(--highcontrast-color-area-border-color-disabled)}:host([disabled]) .gradient{display:none}.handle{transform:translate(calc(var(--luzmo-color-area-width, 192px) - var(--luzmo-border-width)));inset-block-start:0}.handle:dir(rtl),:host([dir=rtl]) .handle{inset-inline-end:0}.gradient{inline-size:100%;block-size:100%;border-radius:var(--luzmo-color-area-border-radius, var(--luzmo-border-radius-s))}.slider{opacity:0;inline-size:100%;block-size:100%;z-index:0;pointer-events:none;margin:0;position:absolute;inset-block-start:0;inset-inline-start:0}:host{touch-action:none}:host:before{pointer-events:none}.gradient{overflow:hidden}.handle{transform:translate(var(--luzmo-color-area-default-width))}::slotted(*){width:100%;height:100%}:host([dir=rtl]) .gradient{transform:scaleX(-1)}.slider[orient=vertical]{-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical}.slider:focus{z-index:1}.fieldset{border:0;margin:0;padding:0}";
3401
- var Es = Object.defineProperty, As = Object.getOwnPropertyDescriptor, L = (r, o, e, t) => {
3402
- for (var a = t > 1 ? void 0 : t ? As(o, e) : o, l = r.length - 1, s; l >= 0; l--)
3431
+ _s();
3432
+ const Es = "@media (forced-colors: active){:host{--highcontrast-color-area-border-color-disabled: GrayText;--highcontrast-color-area-border-color: Canvas;--highcontrast-color-area-fill-color-disabled: Canvas}.gradient,:host([disabled]){forced-color-adjust:none}}:host{cursor:default;-webkit-user-select:none;user-select:none;min-inline-size:var(--luzmo-color-area-min-width, 64px);min-block-size:var(--luzmo-color-area-min-height, 64px);inline-size:var(--luzmo-color-area-width, 192px);block-size:var(--luzmo-color-area-height, 192px);box-sizing:border-box;border-radius:var(--luzmo-color-area-border-radius, var(--luzmo-border-radius-s));border:var(--luzmo-color-area-border-width, var(--luzmo-border-width)) solid var(--highcontrast-color-area-border-color, var(--luzmo-color-area-border-color, var(--luzmo-border-color)));display:inline-block;position:relative}:host([focused]){z-index:1}:host([disabled]){pointer-events:none;background:var(--highcontrast-color-area-fill-color-disabled, var(--luzmo-color-area-disabled-background-color, var(--luzmo-dimmed-color)));border:var(--luzmo-color-area-border-width, var(--luzmo-border-width)) solid var(--highcontrast-color-area-border-color-disabled)}:host([disabled]) .gradient{display:none}.handle{transform:translate(calc(var(--luzmo-color-area-width, 192px) - var(--luzmo-border-width)));inset-block-start:0}.handle:dir(rtl),:host([dir=rtl]) .handle{inset-inline-end:0}.gradient{inline-size:100%;block-size:100%;border-radius:var(--luzmo-color-area-border-radius, var(--luzmo-border-radius-s))}.slider{opacity:0;inline-size:100%;block-size:100%;z-index:0;pointer-events:none;margin:0;position:absolute;inset-block-start:0;inset-inline-start:0}:host{touch-action:none}:host:before{pointer-events:none}.gradient{overflow:hidden}.handle{transform:translate(var(--luzmo-color-area-default-width))}::slotted(*){width:100%;height:100%}:host([dir=rtl]) .gradient{transform:scaleX(-1)}.slider[orient=vertical]{-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical}.slider:focus{z-index:1}.fieldset{border:0;margin:0;padding:0}";
3433
+ var As = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, L = (r, o, e, t) => {
3434
+ for (var a = t > 1 ? void 0 : t ? Rs(o, e) : o, l = r.length - 1, s; l >= 0; l--)
3403
3435
  (s = r[l]) && (a = (t ? s(o, e, a) : s(a)) || a);
3404
- return t && a && Es(o, e, a), a;
3436
+ return t && a && As(o, e, a), a;
3405
3437
  };
3406
- let O = class extends jo {
3438
+ let I = class extends jo {
3407
3439
  constructor() {
3408
- super(...arguments), this.disabled = !1, this.focused = !1, this.labelX = "saturation", this.labelY = "luminosity", this.isLTR = !0, this.languageResolver = new ht(this), this.colorController = new oa(this, { manageAs: "hsv" }), this.activeAxis = "x", this.step = 0.01, this.altered = 0, this.activeKeys = /* @__PURE__ */ new Set(), this._valueChanged = !1, this._pointerDown = !1;
3440
+ super(...arguments), this.disabled = !1, this.focused = !1, this.labelX = "saturation", this.labelY = "luminosity", this.isLTR = !0, this.languageResolver = new dt(this), this.colorController = new ea(this, { manageAs: "hsv" }), this.activeAxis = "x", this.step = 0.01, this.altered = 0, this.activeKeys = /* @__PURE__ */ new Set(), this._valueChanged = !1, this._pointerDown = !1;
3409
3441
  }
3410
3442
  static get styles() {
3411
- return [io(_s)];
3443
+ return [io(Es)];
3412
3444
  }
3413
3445
  get hue() {
3414
3446
  return this.colorController.hue;
@@ -3573,7 +3605,7 @@ let O = class extends jo {
3573
3605
  o.button === 0 && (o.stopPropagation(), o.preventDefault(), this.handle.dispatchEvent(new PointerEvent("pointerdown", o)), this.handlePointermove(o));
3574
3606
  }
3575
3607
  render() {
3576
- const { width: o = 0, height: e = 0 } = this.boundingClientRect || {}, t = ma() || pa(), a = "Color Picker", l = wo(t ? void 0 : "2d slider"), s = this.labelX, n = this.labelY, i = new Intl.NumberFormat(this.languageResolver.language, {
3608
+ const { width: o = 0, height: e = 0 } = this.boundingClientRect || {}, t = pa() || ga(), a = "Color Picker", l = wo(t ? void 0 : "2d slider"), s = this.labelX, n = this.labelY, i = new Intl.NumberFormat(this.languageResolver.language, {
3577
3609
  style: "percent",
3578
3610
  unitDisplay: "narrow"
3579
3611
  }).format(this.x), c = new Intl.NumberFormat(this.languageResolver.language, {
@@ -3599,7 +3631,7 @@ let O = class extends jo {
3599
3631
  color=${this.colorController.getHslString()}
3600
3632
  ?disabled=${this.disabled}
3601
3633
  style=${`transform: translate(${(this.isLTR ? this.x : 1 - this.x) * o}px, ${e - this.y * e}px);`}
3602
- ${dt({
3634
+ ${mt({
3603
3635
  start: ["pointerdown", this.handlePointerdown],
3604
3636
  streamInside: ["pointermove", this.handlePointermove],
3605
3637
  end: [
@@ -3696,53 +3728,53 @@ let O = class extends jo {
3696
3728
  };
3697
3729
  L([
3698
3730
  m({ type: String, reflect: !0 })
3699
- ], O.prototype, "dir", 2);
3731
+ ], I.prototype, "dir", 2);
3700
3732
  L([
3701
3733
  m({ type: Boolean, reflect: !0 })
3702
- ], O.prototype, "disabled", 2);
3734
+ ], I.prototype, "disabled", 2);
3703
3735
  L([
3704
3736
  m({ type: Boolean, reflect: !0 })
3705
- ], O.prototype, "focused", 2);
3737
+ ], I.prototype, "focused", 2);
3706
3738
  L([
3707
3739
  m({ type: String, attribute: "label-x" })
3708
- ], O.prototype, "labelX", 2);
3740
+ ], I.prototype, "labelX", 2);
3709
3741
  L([
3710
3742
  m({ type: String, attribute: "label-y" })
3711
- ], O.prototype, "labelY", 2);
3743
+ ], I.prototype, "labelY", 2);
3712
3744
  L([
3713
3745
  m({ type: Boolean, attribute: "is-ltr" })
3714
- ], O.prototype, "isLTR", 2);
3746
+ ], I.prototype, "isLTR", 2);
3715
3747
  L([
3716
- V(".handle")
3717
- ], O.prototype, "handle", 2);
3748
+ J(".handle")
3749
+ ], I.prototype, "handle", 2);
3718
3750
  L([
3719
3751
  m({ type: Number })
3720
- ], O.prototype, "hue", 1);
3752
+ ], I.prototype, "hue", 1);
3721
3753
  L([
3722
3754
  m({ type: String })
3723
- ], O.prototype, "value", 1);
3755
+ ], I.prototype, "value", 1);
3724
3756
  L([
3725
3757
  m({ type: String })
3726
- ], O.prototype, "color", 1);
3758
+ ], I.prototype, "color", 1);
3727
3759
  L([
3728
3760
  m({ attribute: !1 })
3729
- ], O.prototype, "activeAxis", 2);
3761
+ ], I.prototype, "activeAxis", 2);
3730
3762
  L([
3731
3763
  m({ type: Number })
3732
- ], O.prototype, "x", 1);
3764
+ ], I.prototype, "x", 1);
3733
3765
  L([
3734
3766
  m({ type: Number })
3735
- ], O.prototype, "y", 1);
3767
+ ], I.prototype, "y", 1);
3736
3768
  L([
3737
3769
  m({ type: Number })
3738
- ], O.prototype, "step", 2);
3770
+ ], I.prototype, "step", 2);
3739
3771
  L([
3740
- V('[name="x"]')
3741
- ], O.prototype, "inputX", 2);
3772
+ J('[name="x"]')
3773
+ ], I.prototype, "inputX", 2);
3742
3774
  L([
3743
- V('[name="y"]')
3744
- ], O.prototype, "inputY", 2);
3745
- customElements.get("luzmo-color-area") || customElements.define("luzmo-color-area", O);
3775
+ J('[name="y"]')
3776
+ ], I.prototype, "inputY", 2);
3777
+ customElements.get("luzmo-color-area") || customElements.define("luzmo-color-area", I);
3746
3778
  /*! * Lucero - The design system for Luzmo.
3747
3779
  *
3748
3780
  * Copyright © 2025 Luzmo
@@ -3760,25 +3792,25 @@ customElements.get("luzmo-color-area") || customElements.define("luzmo-color-are
3760
3792
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3761
3793
  * SOFTWARE.
3762
3794
  * */
3763
- const Rs = () => {
3795
+ const Ps = () => {
3764
3796
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
3765
3797
  const r = document.createElement("style");
3766
3798
  r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(r);
3767
3799
  }
3768
3800
  };
3769
- Rs();
3770
- const Ps = ":host{position:relative}";
3771
- var Hs = Object.defineProperty, Ns = (r, o, e, t) => {
3801
+ Ps();
3802
+ const Hs = ":host{position:relative}";
3803
+ var Ns = Object.defineProperty, ra = (r, o, e, t) => {
3772
3804
  for (var a = void 0, l = r.length - 1, s; l >= 0; l--)
3773
3805
  (s = r[l]) && (a = s(o, e, a) || a);
3774
- return a && Hs(o, e, a), a;
3806
+ return a && Ns(o, e, a), a;
3775
3807
  };
3776
- class ea extends ga {
3808
+ class Ye extends fa {
3777
3809
  constructor() {
3778
- super(), this.viewColor = !1, this._value = "", this.colorController = new oa(this);
3810
+ super(), this.viewColor = !1, this.noAlphaChannel = !1, this._value = "", this.colorController = new ea(this);
3779
3811
  }
3780
3812
  static get styles() {
3781
- return [...super.styles, io(Ps)];
3813
+ return [...super.styles, io(Hs)];
3782
3814
  }
3783
3815
  set value(o) {
3784
3816
  if (o === this.value)
@@ -3789,31 +3821,43 @@ class ea extends ga {
3789
3821
  get value() {
3790
3822
  return this._value;
3791
3823
  }
3824
+ updated(o) {
3825
+ super.updated(o), o.has("noAlphaChannel") && this.checkValidity();
3826
+ }
3792
3827
  renderColorHandle() {
3793
3828
  return this.viewColor && this.valid ? N`
3794
- <sp-color-handle
3829
+ <luzmo-color-handle
3795
3830
  size="m"
3796
3831
  color=${this.colorController.getColor("srgb").toString()}
3797
- ></sp-color-handle>
3832
+ ></luzmo-color-handle>
3798
3833
  ` : N``;
3799
3834
  }
3800
3835
  getColorValue() {
3801
3836
  return this.valid ? this.colorController.getColor("srgb").toString() : "";
3802
3837
  }
3803
3838
  render() {
3804
- return this.viewColor && Promise.resolve().then(() => $a), N` ${super.render()} ${this.renderColorHandle()} `;
3839
+ return this.viewColor && Promise.resolve().then(() => Sa), N` ${super.render()} ${this.renderColorHandle()} `;
3805
3840
  }
3806
3841
  checkValidity() {
3807
3842
  let o = super.checkValidity();
3808
- return this.value ? (this.valid = o = this.colorController.validateColorString(
3809
- this.value
3810
- ).isValid, this.invalid = !o, this.valid && (this.colorController.color = this.value)) : this.valid = this.invalid = !1, o;
3843
+ if (this.value) {
3844
+ const e = this.colorController.validateColorString(
3845
+ this.value
3846
+ );
3847
+ let t = !1;
3848
+ this.value.startsWith("rgba") ? t = !0 : this.value.startsWith("rgb") ? t = !1 : this.value.startsWith("hsla") ? t = !0 : this.value.startsWith("hsl") ? t = !1 : this.value.startsWith("#") && (t = this.value.length === 9), this.valid = o = e.isValid && (!this.noAlphaChannel || !t), this.invalid = !o, this.valid && (this.colorController.color = this.value);
3849
+ } else
3850
+ this.valid = this.invalid = !1;
3851
+ return o;
3811
3852
  }
3812
3853
  }
3813
- Ns([
3854
+ ra([
3814
3855
  m({ type: Boolean, attribute: "view-color" })
3815
- ], ea.prototype, "viewColor");
3816
- customElements.get("luzmo-color-field") || customElements.define("luzmo-color-field", ea);
3856
+ ], Ye.prototype, "viewColor");
3857
+ ra([
3858
+ m({ type: Boolean, attribute: "no-alpha-channel" })
3859
+ ], Ye.prototype, "noAlphaChannel");
3860
+ customElements.get("luzmo-color-field") || customElements.define("luzmo-color-field", Ye);
3817
3861
  /*! * Lucero - The design system for Luzmo.
3818
3862
  *
3819
3863
  * Copyright © 2025 Luzmo
@@ -3831,9 +3875,9 @@ customElements.get("luzmo-color-field") || customElements.define("luzmo-color-fi
3831
3875
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3832
3876
  * SOFTWARE.
3833
3877
  * */
3834
- function I(r, o) {
3878
+ function O(r, o) {
3835
3879
  Bs(r) && (r = "100%");
3836
- const e = Is(r);
3880
+ const e = Os(r);
3837
3881
  return r = o === 360 ? r : Math.min(o, Math.max(0, parseFloat(r))), e && (r = parseInt(String(r * o), 10) / 100), Math.abs(r - o) < 1e-6 ? 1 : (o === 360 ? r = (r < 0 ? r % o + o : r % o) / parseFloat(String(o)) : r = r % o / parseFloat(String(o)), r);
3838
3882
  }
3839
3883
  function Qo(r) {
@@ -3842,10 +3886,10 @@ function Qo(r) {
3842
3886
  function Bs(r) {
3843
3887
  return typeof r == "string" && r.indexOf(".") !== -1 && parseFloat(r) === 1;
3844
3888
  }
3845
- function Is(r) {
3889
+ function Os(r) {
3846
3890
  return typeof r == "string" && r.indexOf("%") !== -1;
3847
3891
  }
3848
- function ra(r) {
3892
+ function ta(r) {
3849
3893
  return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r;
3850
3894
  }
3851
3895
  function oe(r) {
@@ -3854,15 +3898,15 @@ function oe(r) {
3854
3898
  function vo(r) {
3855
3899
  return r.length === 1 ? "0" + r : String(r);
3856
3900
  }
3857
- function Os(r, o, e) {
3901
+ function Is(r, o, e) {
3858
3902
  return {
3859
- r: I(r, 255) * 255,
3860
- g: I(o, 255) * 255,
3861
- b: I(e, 255) * 255
3903
+ r: O(r, 255) * 255,
3904
+ g: O(o, 255) * 255,
3905
+ b: O(e, 255) * 255
3862
3906
  };
3863
3907
  }
3864
- function rt(r, o, e) {
3865
- r = I(r, 255), o = I(o, 255), e = I(e, 255);
3908
+ function tt(r, o, e) {
3909
+ r = O(r, 255), o = O(o, 255), e = O(e, 255);
3866
3910
  const t = Math.max(r, o, e), a = Math.min(r, o, e);
3867
3911
  let l = 0, s = 0;
3868
3912
  const n = (t + a) / 2;
@@ -3890,7 +3934,7 @@ function Me(r, o, e) {
3890
3934
  }
3891
3935
  function Fs(r, o, e) {
3892
3936
  let t, a, l;
3893
- if (r = I(r, 360), o = I(o, 100), e = I(e, 100), o === 0)
3937
+ if (r = O(r, 360), o = O(o, 100), e = O(e, 100), o === 0)
3894
3938
  a = e, l = e, t = e;
3895
3939
  else {
3896
3940
  const s = e < 0.5 ? e * (1 + o) : e + o - e * o, n = 2 * e - s;
@@ -3898,8 +3942,8 @@ function Fs(r, o, e) {
3898
3942
  }
3899
3943
  return { r: t * 255, g: a * 255, b: l * 255 };
3900
3944
  }
3901
- function tt(r, o, e) {
3902
- r = I(r, 255), o = I(o, 255), e = I(e, 255);
3945
+ function at(r, o, e) {
3946
+ r = O(r, 255), o = O(o, 255), e = O(e, 255);
3903
3947
  const t = Math.max(r, o, e), a = Math.min(r, o, e);
3904
3948
  let l = 0;
3905
3949
  const s = t, n = t - a, i = t === 0 ? 0 : n / t;
@@ -3922,11 +3966,11 @@ function tt(r, o, e) {
3922
3966
  return { h: l, s: i, v: s };
3923
3967
  }
3924
3968
  function Ls(r, o, e) {
3925
- r = I(r, 360) * 6, o = I(o, 100), e = I(e, 100);
3969
+ r = O(r, 360) * 6, o = O(o, 100), e = O(e, 100);
3926
3970
  const t = Math.floor(r), a = r - t, l = e * (1 - o), s = e * (1 - a * o), n = e * (1 - (1 - a) * o), i = t % 6, c = [e, s, l, l, n, e][i], u = [n, e, e, s, l, l][i], h = [l, l, n, e, e, s][i];
3927
3971
  return { r: c * 255, g: u * 255, b: h * 255 };
3928
3972
  }
3929
- function at(r, o, e, t) {
3973
+ function lt(r, o, e, t) {
3930
3974
  const a = [
3931
3975
  vo(Math.round(r).toString(16)),
3932
3976
  vo(Math.round(o).toString(16)),
@@ -3947,7 +3991,7 @@ function Ds(r, o, e, t) {
3947
3991
  const a = r / 100, l = o / 100, s = e / 100, n = t / 100, i = 255 * (1 - a) * (1 - n), c = 255 * (1 - l) * (1 - n), u = 255 * (1 - s) * (1 - n);
3948
3992
  return { r: i, g: c, b: u };
3949
3993
  }
3950
- function lt(r, o, e) {
3994
+ function st(r, o, e) {
3951
3995
  let t = 1 - r / 255, a = 1 - o / 255, l = 1 - e / 255, s = Math.min(t, a, l);
3952
3996
  return s === 1 ? (t = 0, a = 0, l = 0) : (t = (t - s) / (1 - s) * 100, a = (a - s) / (1 - s) * 100, l = (l - s) / (1 - s) * 100), s *= 100, {
3953
3997
  c: Math.round(t),
@@ -3959,7 +4003,7 @@ function lt(r, o, e) {
3959
4003
  function Ts(r) {
3960
4004
  return Math.round(parseFloat(r) * 255).toString(16);
3961
4005
  }
3962
- function st(r) {
4006
+ function nt(r) {
3963
4007
  return U(r) / 255;
3964
4008
  }
3965
4009
  function U(r) {
@@ -3972,7 +4016,7 @@ function qs(r) {
3972
4016
  b: r & 255
3973
4017
  };
3974
4018
  }
3975
- const Oe = {
4019
+ const Ie = {
3976
4020
  aliceblue: "#f0f8ff",
3977
4021
  antiquewhite: "#faebd7",
3978
4022
  aqua: "#00ffff",
@@ -4124,7 +4168,7 @@ const Oe = {
4124
4168
  };
4125
4169
  function Ws(r) {
4126
4170
  let o = { r: 0, g: 0, b: 0 }, e = 1, t = null, a = null, l = null, s = !1, n = !1;
4127
- return typeof r == "string" && (r = Ys(r)), typeof r == "object" && (W(r.r) && W(r.g) && W(r.b) ? (o = Os(r.r, r.g, r.b), s = !0, n = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : W(r.h) && W(r.s) && W(r.v) ? (t = oe(r.s), a = oe(r.v), o = Ls(r.h, t, a), s = !0, n = "hsv") : W(r.h) && W(r.s) && W(r.l) ? (t = oe(r.s), l = oe(r.l), o = Fs(r.h, t, l), s = !0, n = "hsl") : W(r.c) && W(r.m) && W(r.y) && W(r.k) && (o = Ds(r.c, r.m, r.y, r.k), s = !0, n = "cmyk"), Object.prototype.hasOwnProperty.call(r, "a") && (e = r.a)), e = ra(e), {
4171
+ return typeof r == "string" && (r = Ys(r)), typeof r == "object" && (W(r.r) && W(r.g) && W(r.b) ? (o = Is(r.r, r.g, r.b), s = !0, n = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : W(r.h) && W(r.s) && W(r.v) ? (t = oe(r.s), a = oe(r.v), o = Ls(r.h, t, a), s = !0, n = "hsv") : W(r.h) && W(r.s) && W(r.l) ? (t = oe(r.s), l = oe(r.l), o = Fs(r.h, t, l), s = !0, n = "hsl") : W(r.c) && W(r.m) && W(r.y) && W(r.k) && (o = Ds(r.c, r.m, r.y, r.k), s = !0, n = "cmyk"), Object.prototype.hasOwnProperty.call(r, "a") && (e = r.a)), e = ta(e), {
4128
4172
  ok: s,
4129
4173
  format: r.format || n,
4130
4174
  r: Math.min(255, Math.max(o.r, 0)),
@@ -4136,7 +4180,7 @@ function Ws(r) {
4136
4180
  const Us = "[-\\+]?\\d+%?", Xs = "[-\\+]?\\d*\\.\\d+%?", uo = "(?:" + Xs + ")|(?:" + Us + ")", $e = "[\\s|\\(]+(" + uo + ")[,|\\s]+(" + uo + ")[,|\\s]+(" + uo + ")\\s*\\)?", ee = (
4137
4181
  // eslint-disable-next-line prettier/prettier
4138
4182
  "[\\s|\\(]+(" + uo + ")[,|\\s]+(" + uo + ")[,|\\s]+(" + uo + ")[,|\\s]+(" + uo + ")\\s*\\)?"
4139
- ), K = {
4183
+ ), V = {
4140
4184
  CSS_UNIT: new RegExp(uo),
4141
4185
  rgb: new RegExp("rgb" + $e),
4142
4186
  rgba: new RegExp("rgba" + ee),
@@ -4154,34 +4198,34 @@ function Ys(r) {
4154
4198
  if (r = r.trim().toLowerCase(), r.length === 0)
4155
4199
  return !1;
4156
4200
  let o = !1;
4157
- if (Oe[r])
4158
- r = Oe[r], o = !0;
4201
+ if (Ie[r])
4202
+ r = Ie[r], o = !0;
4159
4203
  else if (r === "transparent")
4160
4204
  return { r: 0, g: 0, b: 0, a: 0, format: "name" };
4161
- let e = K.rgb.exec(r);
4162
- return e ? { r: e[1], g: e[2], b: e[3] } : (e = K.rgba.exec(r), e ? { r: e[1], g: e[2], b: e[3], a: e[4] } : (e = K.hsl.exec(r), e ? { h: e[1], s: e[2], l: e[3] } : (e = K.hsla.exec(r), e ? { h: e[1], s: e[2], l: e[3], a: e[4] } : (e = K.hsv.exec(r), e ? { h: e[1], s: e[2], v: e[3] } : (e = K.hsva.exec(r), e ? { h: e[1], s: e[2], v: e[3], a: e[4] } : (e = K.cmyk.exec(r), e ? {
4205
+ let e = V.rgb.exec(r);
4206
+ return e ? { r: e[1], g: e[2], b: e[3] } : (e = V.rgba.exec(r), e ? { r: e[1], g: e[2], b: e[3], a: e[4] } : (e = V.hsl.exec(r), e ? { h: e[1], s: e[2], l: e[3] } : (e = V.hsla.exec(r), e ? { h: e[1], s: e[2], l: e[3], a: e[4] } : (e = V.hsv.exec(r), e ? { h: e[1], s: e[2], v: e[3] } : (e = V.hsva.exec(r), e ? { h: e[1], s: e[2], v: e[3], a: e[4] } : (e = V.cmyk.exec(r), e ? {
4163
4207
  c: e[1],
4164
4208
  m: e[2],
4165
4209
  y: e[3],
4166
4210
  k: e[4]
4167
- } : (e = K.hex8.exec(r), e ? {
4211
+ } : (e = V.hex8.exec(r), e ? {
4168
4212
  r: U(e[1]),
4169
4213
  g: U(e[2]),
4170
4214
  b: U(e[3]),
4171
- a: st(e[4]),
4215
+ a: nt(e[4]),
4172
4216
  format: o ? "name" : "hex8"
4173
- } : (e = K.hex6.exec(r), e ? {
4217
+ } : (e = V.hex6.exec(r), e ? {
4174
4218
  r: U(e[1]),
4175
4219
  g: U(e[2]),
4176
4220
  b: U(e[3]),
4177
4221
  format: o ? "name" : "hex"
4178
- } : (e = K.hex4.exec(r), e ? {
4222
+ } : (e = V.hex4.exec(r), e ? {
4179
4223
  r: U(e[1] + e[1]),
4180
4224
  g: U(e[2] + e[2]),
4181
4225
  b: U(e[3] + e[3]),
4182
- a: st(e[4] + e[4]),
4226
+ a: nt(e[4] + e[4]),
4183
4227
  format: o ? "name" : "hex8"
4184
- } : (e = K.hex3.exec(r), e ? {
4228
+ } : (e = V.hex3.exec(r), e ? {
4185
4229
  r: U(e[1] + e[1]),
4186
4230
  g: U(e[2] + e[2]),
4187
4231
  b: U(e[3] + e[3]),
@@ -4189,7 +4233,7 @@ function Ys(r) {
4189
4233
  } : !1))))))))));
4190
4234
  }
4191
4235
  function W(r) {
4192
- return typeof r == "number" ? !Number.isNaN(r) : K.CSS_UNIT.test(r);
4236
+ return typeof r == "number" ? !Number.isNaN(r) : V.CSS_UNIT.test(r);
4193
4237
  }
4194
4238
  let H = class A {
4195
4239
  constructor(o = "", e = {}) {
@@ -4233,7 +4277,7 @@ let H = class A {
4233
4277
  * @param alpha - The new alpha value. The accepted range is 0-1.
4234
4278
  */
4235
4279
  setAlpha(o) {
4236
- return this.a = ra(o), this.roundA = Math.round(100 * this.a) / 100, this;
4280
+ return this.a = ta(o), this.roundA = Math.round(100 * this.a) / 100, this;
4237
4281
  }
4238
4282
  /**
4239
4283
  * Returns whether the color is monochrome.
@@ -4246,7 +4290,7 @@ let H = class A {
4246
4290
  * Returns the object as a HSVA object.
4247
4291
  */
4248
4292
  toHsv() {
4249
- const o = tt(this.r, this.g, this.b);
4293
+ const o = at(this.r, this.g, this.b);
4250
4294
  return { h: o.h * 360, s: o.s, v: o.v, a: this.a };
4251
4295
  }
4252
4296
  /**
@@ -4254,14 +4298,14 @@ let H = class A {
4254
4298
  * "hsva(xxx, xxx, xxx, xx)".
4255
4299
  */
4256
4300
  toHsvString() {
4257
- const o = tt(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), a = Math.round(o.v * 100);
4301
+ const o = at(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), a = Math.round(o.v * 100);
4258
4302
  return this.a === 1 ? `hsv(${e}, ${t}%, ${a}%)` : `hsva(${e}, ${t}%, ${a}%, ${this.roundA})`;
4259
4303
  }
4260
4304
  /**
4261
4305
  * Returns the object as a HSLA object.
4262
4306
  */
4263
4307
  toHsl() {
4264
- const o = rt(this.r, this.g, this.b);
4308
+ const o = tt(this.r, this.g, this.b);
4265
4309
  return { h: o.h * 360, s: o.s, l: o.l, a: this.a };
4266
4310
  }
4267
4311
  /**
@@ -4269,7 +4313,7 @@ let H = class A {
4269
4313
  * "hsla(xxx, xxx, xxx, xx)".
4270
4314
  */
4271
4315
  toHslString() {
4272
- const o = rt(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), a = Math.round(o.l * 100);
4316
+ const o = tt(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), a = Math.round(o.l * 100);
4273
4317
  return this.a === 1 ? `hsl(${e}, ${t}%, ${a}%)` : `hsla(${e}, ${t}%, ${a}%, ${this.roundA})`;
4274
4318
  }
4275
4319
  /**
@@ -4277,7 +4321,7 @@ let H = class A {
4277
4321
  * @param allow3Char will shorten hex value to 3 char if possible
4278
4322
  */
4279
4323
  toHex(o = !1) {
4280
- return at(this.r, this.g, this.b, o);
4324
+ return lt(this.r, this.g, this.b, o);
4281
4325
  }
4282
4326
  /**
4283
4327
  * Returns the hex value of the color -with a # prefixed.
@@ -4330,7 +4374,7 @@ let H = class A {
4330
4374
  * Returns the object as a RGBA object.
4331
4375
  */
4332
4376
  toPercentageRgb() {
4333
- const o = (e) => `${Math.round(I(e, 255) * 100)}%`;
4377
+ const o = (e) => `${Math.round(O(e, 255) * 100)}%`;
4334
4378
  return {
4335
4379
  r: o(this.r),
4336
4380
  g: o(this.g),
@@ -4342,16 +4386,16 @@ let H = class A {
4342
4386
  * Returns the RGBA relative values interpolated into a string
4343
4387
  */
4344
4388
  toPercentageRgbString() {
4345
- const o = (e) => Math.round(I(e, 255) * 100);
4389
+ const o = (e) => Math.round(O(e, 255) * 100);
4346
4390
  return this.a === 1 ? `rgb(${o(this.r)}%, ${o(this.g)}%, ${o(this.b)}%)` : `rgba(${o(this.r)}%, ${o(this.g)}%, ${o(this.b)}%, ${this.roundA})`;
4347
4391
  }
4348
4392
  toCmyk() {
4349
4393
  return {
4350
- ...lt(this.r, this.g, this.b)
4394
+ ...st(this.r, this.g, this.b)
4351
4395
  };
4352
4396
  }
4353
4397
  toCmykString() {
4354
- const { c: o, m: e, y: t, k: a } = lt(this.r, this.g, this.b);
4398
+ const { c: o, m: e, y: t, k: a } = st(this.r, this.g, this.b);
4355
4399
  return `cmyk(${o}, ${e}, ${t}, ${a})`;
4356
4400
  }
4357
4401
  /**
@@ -4362,8 +4406,8 @@ let H = class A {
4362
4406
  return "transparent";
4363
4407
  if (this.a < 1)
4364
4408
  return !1;
4365
- const o = "#" + at(this.r, this.g, this.b, !1);
4366
- for (const [e, t] of Object.entries(Oe))
4409
+ const o = "#" + lt(this.r, this.g, this.b, !1);
4410
+ for (const [e, t] of Object.entries(Ie))
4367
4411
  if (o === t)
4368
4412
  return e;
4369
4413
  return !1;
@@ -4538,7 +4582,7 @@ let H = class A {
4538
4582
  return this.format === "cmyk" || e.format === "cmyk" ? this.toCmykString() === e.toCmykString() : this.toRgbString() === e.toRgbString();
4539
4583
  }
4540
4584
  };
4541
- const nt = /^hs[v|l]a?\s?\((\d{1,3}\.?\d*?),?\s?(\d{1,3})/, it = /(^hs[v|l]a?\s?\()\d{1,3}\.?\d*?(,?\s?)\d{1,3}/, ct = /(^hs[v|l]a?\()\d{1,3}/, re = (r, o) => o ? r.toHexString() : r.toHex();
4585
+ const it = /^hs[v|l]a?\s?\((\d{1,3}\.?\d*?),?\s?(\d{1,3})/, ct = /(^hs[v|l]a?\s?\()\d{1,3}\.?\d*?(,?\s?)\d{1,3}/, ut = /(^hs[v|l]a?\()\d{1,3}/, re = (r, o) => o ? r.toHexString() : r.toHex();
4542
4586
  class Gs {
4543
4587
  constructor(o, {
4544
4588
  applyColorToState: e,
@@ -4553,13 +4597,13 @@ class Gs {
4553
4597
  hsl: (l, s) => {
4554
4598
  if (this.maintains === "hue") {
4555
4599
  if (s)
4556
- return l.toHslString().replace(ct, `$1${this.hue}`);
4600
+ return l.toHslString().replace(ut, `$1${this.hue}`);
4557
4601
  const { s: u, l: h, a: d } = l.toHsl();
4558
4602
  return { h: this.hue, s: u, l: h, a: d };
4559
4603
  }
4560
4604
  if (s)
4561
4605
  return l.toHslString().replace(
4562
- it,
4606
+ ct,
4563
4607
  `$1${this.hue}$2${this.saturation}`
4564
4608
  );
4565
4609
  const { s: n, l: i, a: c } = l.toHsl();
@@ -4568,13 +4612,13 @@ class Gs {
4568
4612
  hsv: (l, s) => {
4569
4613
  if (this.maintains === "hue") {
4570
4614
  if (s)
4571
- return l.toHsvString().replace(ct, `$1${this.hue}`);
4615
+ return l.toHsvString().replace(ut, `$1${this.hue}`);
4572
4616
  const { s: u, v: h, a: d } = l.toHsv();
4573
4617
  return { h: this.hue, s: u, v: h, a: d };
4574
4618
  }
4575
4619
  if (s)
4576
4620
  return l.toHsvString().replace(
4577
- it,
4621
+ ct,
4578
4622
  `$1${this.hue}$2${this.saturation}`
4579
4623
  );
4580
4624
  const { s: n, v: i, a: c } = l.toHsv();
@@ -4601,7 +4645,7 @@ class Gs {
4601
4645
  const { h: l, s, v: n, a: i } = this._color.toHsv();
4602
4646
  let c;
4603
4647
  if (a && t.startsWith("hs")) {
4604
- const u = nt.exec(e);
4648
+ const u = it.exec(e);
4605
4649
  if (u !== null) {
4606
4650
  const [, h] = u;
4607
4651
  c = Number(h);
@@ -4615,7 +4659,7 @@ class Gs {
4615
4659
  setColorMaintainSaturation(o, e, t, a) {
4616
4660
  const { a: l } = this._color.toHsv();
4617
4661
  if (a && t.startsWith("hs")) {
4618
- const s = nt.exec(e);
4662
+ const s = it.exec(e);
4619
4663
  if (s !== null) {
4620
4664
  const [, n, i] = s;
4621
4665
  this.hue = Number(n), this.saturation = Number(i);
@@ -4703,7 +4747,7 @@ var Ks = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, Z = (r, o,
4703
4747
  };
4704
4748
  let q = class extends Fe {
4705
4749
  constructor() {
4706
- super(...arguments), this.disabled = !1, this.focused = !1, this.label = "hue", this.vertical = !1, this.languageResolver = new ht(this), this.colorController = new Gs(this, {
4750
+ super(...arguments), this.disabled = !1, this.focused = !1, this.label = "hue", this.vertical = !1, this.languageResolver = new dt(this), this.colorController = new Gs(this, {
4707
4751
  /* c8 ignore next 3 */
4708
4752
  applyColorToState: () => {
4709
4753
  if (this.mode === "opacity") {
@@ -4877,7 +4921,7 @@ let q = class extends Fe {
4877
4921
  <div
4878
4922
  class="gradient"
4879
4923
  role="presentation"
4880
- style=${fa(this.getColorSliderStyle)}
4924
+ style=${ba(this.getColorSliderStyle)}
4881
4925
  >
4882
4926
  <slot name="gradient"></slot>
4883
4927
  </div>
@@ -4890,7 +4934,7 @@ let q = class extends Fe {
4890
4934
  color=${this.mode === "opacity" ? this.color : "hsl(" + this.value + ", 100%, 50%)"}
4891
4935
  ?disabled=${this.disabled}
4892
4936
  style=${this.handlePositionStyles}
4893
- ${dt({
4937
+ ${mt({
4894
4938
  start: ["pointerdown", this.handlePointerdown],
4895
4939
  streamInside: ["pointermove", this.handlePointermove],
4896
4940
  end: [
@@ -4949,7 +4993,7 @@ Z([
4949
4993
  m({ type: Boolean, reflect: !0 })
4950
4994
  ], q.prototype, "focused", 2);
4951
4995
  Z([
4952
- V(".handle")
4996
+ J(".handle")
4953
4997
  ], q.prototype, "handle", 2);
4954
4998
  Z([
4955
4999
  m({ type: String })
@@ -4973,7 +5017,7 @@ Z([
4973
5017
  m({ type: Boolean, attribute: "is-ltr" })
4974
5018
  ], q.prototype, "isLTR", 2);
4975
5019
  Z([
4976
- V("input")
5020
+ J("input")
4977
5021
  ], q.prototype, "input", 2);
4978
5022
  customElements.get("luzmo-color-slider") || customElements.define("luzmo-color-slider", q);
4979
5023
  /*! * Lucero - The design system for Luzmo.
@@ -5000,13 +5044,13 @@ const Js = () => {
5000
5044
  }
5001
5045
  };
5002
5046
  Js();
5003
- const Qs = '@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-negative-color);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';
5004
- var on = Object.defineProperty, en = Object.getOwnPropertyDescriptor, eo = (r, o, e, t) => {
5047
+ const Qs = '@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);background-color:var(--luzmo-swatch-focus-indicator-background-color, var(--luzmo-background-color));z-index:-1;opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-negative-color);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';
5048
+ var on = Object.defineProperty, en = Object.getOwnPropertyDescriptor, ro = (r, o, e, t) => {
5005
5049
  for (var a = t > 1 ? void 0 : t ? en(o, e) : o, l = r.length - 1, s; l >= 0; l--)
5006
5050
  (s = r[l]) && (a = (t ? s(o, e, a) : s(a)) || a);
5007
5051
  return t && a && on(o, e, a), a;
5008
5052
  };
5009
- let J = class extends ie(Fe, {
5053
+ let Q = class extends ie(Fe, {
5010
5054
  validSizes: ["xxs", "xs", "s", "m", "l", "xl"],
5011
5055
  noDefaultSize: !0
5012
5056
  }) {
@@ -5028,7 +5072,7 @@ let J = class extends ie(Fe, {
5028
5072
  fill="var(--swatch-disabled-icon-stroke-color)"
5029
5073
  />
5030
5074
  </svg>
5031
- `, this.renderMixedValue = () => Se(ua);
5075
+ `, this.renderMixedValue = () => Se(ha);
5032
5076
  }
5033
5077
  static get styles() {
5034
5078
  return [io(Qs)];
@@ -5093,8 +5137,8 @@ let J = class extends ie(Fe, {
5093
5137
  )}
5094
5138
  >
5095
5139
  <slot name="image"></slot>
5096
- ${Qe(this.disabled, this.renderDisabled)}
5097
- ${Qe(this.mixedValue, this.renderMixedValue)}
5140
+ ${or(this.disabled, this.renderDisabled)}
5141
+ ${or(this.mixedValue, this.renderMixedValue)}
5098
5142
  </div>
5099
5143
  `;
5100
5144
  }
@@ -5110,39 +5154,39 @@ let J = class extends ie(Fe, {
5110
5154
  super.firstUpdated(o), this.addEventListener("click", this.handleClick), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("keypress", this.handleKeypress), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0");
5111
5155
  }
5112
5156
  };
5113
- eo([
5157
+ ro([
5114
5158
  m({ reflect: !0 })
5115
- ], J.prototype, "border", 2);
5116
- eo([
5159
+ ], Q.prototype, "border", 2);
5160
+ ro([
5117
5161
  m()
5118
- ], J.prototype, "color", 2);
5119
- eo([
5162
+ ], Q.prototype, "color", 2);
5163
+ ro([
5120
5164
  m()
5121
- ], J.prototype, "label", 2);
5122
- eo([
5165
+ ], Q.prototype, "label", 2);
5166
+ ro([
5123
5167
  m({ type: Boolean, reflect: !0, attribute: "mixed-value" })
5124
- ], J.prototype, "mixedValue", 2);
5125
- eo([
5168
+ ], Q.prototype, "mixedValue", 2);
5169
+ ro([
5126
5170
  m({ type: Boolean, reflect: !0 })
5127
- ], J.prototype, "nothing", 2);
5128
- eo([
5171
+ ], Q.prototype, "nothing", 2);
5172
+ ro([
5129
5173
  m({ reflect: !0 })
5130
- ], J.prototype, "role", 2);
5131
- eo([
5174
+ ], Q.prototype, "role", 2);
5175
+ ro([
5132
5176
  m({ reflect: !0 })
5133
- ], J.prototype, "rounding", 2);
5134
- eo([
5177
+ ], Q.prototype, "rounding", 2);
5178
+ ro([
5135
5179
  m({ type: Boolean, reflect: !0 })
5136
- ], J.prototype, "selected", 2);
5137
- eo([
5180
+ ], Q.prototype, "selected", 2);
5181
+ ro([
5138
5182
  m({ type: Boolean, reflect: !0 })
5139
- ], J.prototype, "readonly", 2);
5140
- eo([
5183
+ ], Q.prototype, "readonly", 2);
5184
+ ro([
5141
5185
  m({ reflect: !0 })
5142
- ], J.prototype, "shape", 2);
5143
- eo([
5186
+ ], Q.prototype, "shape", 2);
5187
+ ro([
5144
5188
  m()
5145
- ], J.prototype, "value", 1);
5189
+ ], Q.prototype, "value", 1);
5146
5190
  const rn = ":host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular, var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact, var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious, var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact: 2px;--swatch-group-spacing-regular: 4px;--swatch-group-spacing-spacious: 8px}";
5147
5191
  var tn = Object.defineProperty, an = Object.getOwnPropertyDescriptor, xo = (r, o, e, t) => {
5148
5192
  for (var a = t > 1 ? void 0 : t ? an(o, e) : o, l = r.length - 1, s; l >= 0; l--)
@@ -5154,7 +5198,7 @@ class bo extends ie(jo, {
5154
5198
  noDefaultSize: !0
5155
5199
  }) {
5156
5200
  constructor() {
5157
- super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new wa(this, {
5201
+ super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new ya(this, {
5158
5202
  focusInIndex: (o) => {
5159
5203
  let e = -1;
5160
5204
  const t = o.findIndex((a, l) => (!o[e] && !a.disabled && (e = l), a.selected && !a.disabled));
@@ -5169,7 +5213,7 @@ class bo extends ie(jo, {
5169
5213
  }), this.selectedSet.forEach((e) => {
5170
5214
  o.has(e) || this.selectedSet.delete(e);
5171
5215
  }), this._selected = [...this.selectedSet], this.rovingTabindexController.clearElementCache();
5172
- }, new va(this, {
5216
+ }, new wa(this, {
5173
5217
  config: {
5174
5218
  attributes: !0,
5175
5219
  childList: !0,
@@ -5299,9 +5343,9 @@ xo([
5299
5343
  m({ reflect: !0 })
5300
5344
  ], bo.prototype, "shape", 2);
5301
5345
  xo([
5302
- ba({ flatten: !0 })
5346
+ za({ flatten: !0 })
5303
5347
  ], bo.prototype, "swatches", 2);
5304
- customElements.get("luzmo-swatch") || customElements.define("luzmo-swatch", J);
5348
+ customElements.get("luzmo-swatch") || customElements.define("luzmo-swatch", Q);
5305
5349
  customElements.get("luzmo-swatch-group") || customElements.define("luzmo-swatch-group", bo);
5306
5350
  /*! * Lucero - The design system for Luzmo.
5307
5351
  *
@@ -5333,7 +5377,7 @@ var nn = Object.defineProperty, co = (r, o, e, t) => {
5333
5377
  (s = r[l]) && (a = s(o, e, a) || a);
5334
5378
  return a && nn(o, e, a), a;
5335
5379
  };
5336
- const ta = class extends ie(Fe) {
5380
+ const aa = class extends ie(Fe) {
5337
5381
  constructor() {
5338
5382
  super(...arguments), this.color = "rgb(255, 0, 0)", this.noAlphaChannel = !1, this._alpha = 1, this._rgbColor = "rgb(255, 0, 0)", this._rgbaColor = "rgb(255, 0, 0, 1)", this._previousColor = "rgb(255, 0, 0)";
5339
5383
  }
@@ -5355,7 +5399,7 @@ const ta = class extends ie(Fe) {
5355
5399
  const e = new H(this._rgbColor).toHsl();
5356
5400
  e.h = this.hueSliderElement.value;
5357
5401
  const t = new H(e);
5358
- this._rgbColor = t.toRgbString(), this._rgbaColor = t.setAlpha(this._alpha).toRgbString(), this.areaElement.color = this._rgbColor, this.noAlphaChannel || (this.opacitySliderElement.color = this._rgbaColor), this.colorFieldElement.value = this.formatTextField(t), this.swatchElement.color = this._rgbaColor, this._previousColor = this._rgbaColor, this.color = this._rgbaColor, this.dispatchEvent(new CustomEvent("change", { detail: this.color }));
5402
+ this._rgbColor = t.toRgbString(), this._rgbaColor = t.setAlpha(this._alpha).toRgbString(), this.areaElement.color = `hsla(${e.h}, ${e.s * 100}%, ${e.l * 100}%, ${e.a})`, this.noAlphaChannel || (this.opacitySliderElement.color = this._rgbaColor), this.colorFieldElement.value = this.formatTextField(t), this.swatchElement.color = this._rgbaColor, this._previousColor = this._rgbaColor, this.color = this._rgbaColor, this.dispatchEvent(new CustomEvent("change", { detail: this.color }));
5359
5403
  }
5360
5404
  handleOpacitySliderChange(o) {
5361
5405
  o.stopPropagation(), o.preventDefault(), this._alpha = this.opacitySliderElement.sliderHandlePosition / 100;
@@ -5435,8 +5479,8 @@ const ta = class extends ie(Fe) {
5435
5479
  >
5436
5480
  <div class="format-label">${this._format}</div>
5437
5481
  <div class="change-format-icon">
5438
- <div class="angle-icon">${Se(ha)}</div>
5439
5482
  <div class="angle-icon">${Se(da)}</div>
5483
+ <div class="angle-icon">${Se(ma)}</div>
5440
5484
  </div>
5441
5485
  </button>
5442
5486
  </div>
@@ -5463,8 +5507,8 @@ const ta = class extends ie(Fe) {
5463
5507
  `;
5464
5508
  }
5465
5509
  };
5466
- ta.styles = io(sn);
5467
- let lo = ta;
5510
+ aa.styles = io(sn);
5511
+ let lo = aa;
5468
5512
  co([
5469
5513
  m({ type: String, reflect: !0 })
5470
5514
  ], lo.prototype, "color");
@@ -5475,22 +5519,22 @@ co([
5475
5519
  m({ type: Array, reflect: !0 })
5476
5520
  ], lo.prototype, "swatches");
5477
5521
  co([
5478
- V("luzmo-color-area")
5522
+ J("luzmo-color-area")
5479
5523
  ], lo.prototype, "areaElement");
5480
5524
  co([
5481
- V("#luzmo-hue-slider")
5525
+ J("#luzmo-hue-slider")
5482
5526
  ], lo.prototype, "hueSliderElement");
5483
5527
  co([
5484
- V("#luzmo-opacity-slider")
5528
+ J("#luzmo-opacity-slider")
5485
5529
  ], lo.prototype, "opacitySliderElement");
5486
5530
  co([
5487
- V("luzmo-color-field")
5531
+ J("luzmo-color-field")
5488
5532
  ], lo.prototype, "colorFieldElement");
5489
5533
  co([
5490
- V("luzmo-swatch")
5534
+ J("luzmo-swatch")
5491
5535
  ], lo.prototype, "swatchElement");
5492
5536
  co([
5493
- ut()
5537
+ ht()
5494
5538
  ], lo.prototype, "_format");
5495
5539
  customElements.get("luzmo-color-menu") || customElements.define("luzmo-color-menu", lo);
5496
5540
  /*! * Lucero - The design system for Luzmo.
@@ -5517,15 +5561,15 @@ const cn = () => {
5517
5561
  }
5518
5562
  };
5519
5563
  cn();
5520
- const un = "luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host{--luzmo-popover-content-area-spacing-vertical: 0;--color-picker-popover-horizontal-gap: var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-5)}";
5521
- var hn = Object.defineProperty, ro = (r, o, e, t) => {
5564
+ const un = "luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap, var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host([read-only]) luzmo-swatch{cursor:default;pointer-events:none}:host{--luzmo-popover-content-area-spacing-vertical: 0;--color-picker-popover-horizontal-gap: var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap: var(--luzmo-spacing-5)}";
5565
+ var hn = Object.defineProperty, oo = (r, o, e, t) => {
5522
5566
  for (var a = void 0, l = r.length - 1, s; l >= 0; l--)
5523
5567
  (s = r[l]) && (a = s(o, e, a) || a);
5524
5568
  return a && hn(o, e, a), a;
5525
5569
  };
5526
- const aa = class extends ie(jo) {
5570
+ const la = class extends ie(jo) {
5527
5571
  constructor() {
5528
- super(...arguments), this.color = "rgb(255, 0, 0)", this.open = !1, this.disabled = !1, this.placement = "left-start", this.rounding = "full", this.swatches = [], this.noAlphaChannel = !1, this._renderMenu = !1;
5572
+ super(...arguments), this.color = "rgb(255, 0, 0)", this.open = !1, this.disabled = !1, this.readOnly = !1, this.placement = "left-start", this.rounding = "full", this.swatches = [], this.noAlphaChannel = !1, this._renderMenu = !1;
5529
5573
  }
5530
5574
  overlayCloseEvent() {
5531
5575
  this.open = !1;
@@ -5544,7 +5588,7 @@ const aa = class extends ie(jo) {
5544
5588
  }
5545
5589
  firstUpdated() {
5546
5590
  this.overlayElement.addEventListener("slottable-request", (o) => {
5547
- this._renderMenu = o.data !== za;
5591
+ this._renderMenu = o.data !== va;
5548
5592
  });
5549
5593
  }
5550
5594
  updated(o) {
@@ -5571,11 +5615,12 @@ const aa = class extends ie(jo) {
5571
5615
  .color=${this.color}
5572
5616
  .selected=${this.open && !this.disabled}
5573
5617
  ?disabled=${this.disabled}
5618
+ ?read-only=${this.readOnly}
5574
5619
  @luzmo-closed=${this.overlayCloseEvent}
5575
5620
  @luzmo-opened=${this.overlayOpenEvent}
5576
5621
  ></luzmo-swatch>
5577
5622
  <luzmo-overlay
5578
- trigger=${this.disabled ? "" : "trigger@click"}
5623
+ trigger=${this.disabled || this.readOnly ? "" : "trigger@click"}
5579
5624
  .placement=${this.placement}
5580
5625
  type="auto"
5581
5626
  >
@@ -5586,39 +5631,42 @@ const aa = class extends ie(jo) {
5586
5631
  `;
5587
5632
  }
5588
5633
  };
5589
- aa.styles = io(un);
5590
- let Q = aa;
5591
- ro([
5634
+ la.styles = io(un);
5635
+ let K = la;
5636
+ oo([
5592
5637
  m({ type: String, reflect: !0 })
5593
- ], Q.prototype, "color");
5594
- ro([
5638
+ ], K.prototype, "color");
5639
+ oo([
5595
5640
  m({ type: Boolean, reflect: !0 })
5596
- ], Q.prototype, "open");
5597
- ro([
5641
+ ], K.prototype, "open");
5642
+ oo([
5598
5643
  m({ type: Boolean, reflect: !0 })
5599
- ], Q.prototype, "disabled");
5600
- ro([
5644
+ ], K.prototype, "disabled");
5645
+ oo([
5646
+ m({ type: Boolean, reflect: !0, attribute: "read-only" })
5647
+ ], K.prototype, "readOnly");
5648
+ oo([
5601
5649
  m({ type: String, reflect: !0 })
5602
- ], Q.prototype, "placement");
5603
- ro([
5650
+ ], K.prototype, "placement");
5651
+ oo([
5604
5652
  m({ type: String, reflect: !0 })
5605
- ], Q.prototype, "rounding");
5606
- ro([
5653
+ ], K.prototype, "rounding");
5654
+ oo([
5607
5655
  m({ type: String, reflect: !0 })
5608
- ], Q.prototype, "shape");
5609
- ro([
5656
+ ], K.prototype, "shape");
5657
+ oo([
5610
5658
  m({ type: Array, reflect: !0 })
5611
- ], Q.prototype, "swatches");
5612
- ro([
5659
+ ], K.prototype, "swatches");
5660
+ oo([
5613
5661
  m({ type: Boolean, reflect: !0, attribute: "no-alpha-channel" })
5614
- ], Q.prototype, "noAlphaChannel");
5615
- ro([
5616
- V("luzmo-color-menu")
5617
- ], Q.prototype, "menuElement");
5618
- ro([
5619
- V("luzmo-overlay")
5620
- ], Q.prototype, "overlayElement");
5621
- ro([
5622
- ut()
5623
- ], Q.prototype, "_renderMenu");
5624
- customElements.get("luzmo-color-picker") || customElements.define("luzmo-color-picker", Q);
5662
+ ], K.prototype, "noAlphaChannel");
5663
+ oo([
5664
+ J("luzmo-color-menu")
5665
+ ], K.prototype, "menuElement");
5666
+ oo([
5667
+ J("luzmo-overlay")
5668
+ ], K.prototype, "overlayElement");
5669
+ oo([
5670
+ ht()
5671
+ ], K.prototype, "_renderMenu");
5672
+ customElements.get("luzmo-color-picker") || customElements.define("luzmo-color-picker", K);