/*! * All material copyright ESRI, All Rights Reserved, unless otherwise specified. * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details. * v1.0.0-beta.82 */ import{r as registerInstance,h,g as getElement}from"./index-8ece2564.js";import{h as hexToRGB,i as isValidHex}from"./utils-040a2a22.js";import{b as getThemeName}from"./dom-da697a3f.js";import"./guid-b4461004.js";function stringToHex(a){var t=0;for(var e=0;e>r*8&255;i+=("00"+n.toString(16)).substr(-2)}return i}function rgbToHue(a){var t=a.r,e=a.g,i=a.b;t/=255;e/=255;i/=255;var r=Math.max(t,e,i);var n=Math.min(t,e,i);var o=r-n;if(r===n){return 0}var s=(r+n)/2;switch(r){case t:s=(e-i)/o+(e