function normalizeDictionaryValue(value) {
  return value.trim().toLowerCase();
}
function sanitizeDictionaryColor(color) {
  if (!color) return null;
  const trimmed = color.trim();
  if (!trimmed) return null;
  const match = /^#([0-9a-fA-F]{6})$/.exec(trimmed);
  if (!match) return null;
  return `#${match[1].toLowerCase()}`;
}
function sanitizeDictionaryIcon(icon) {
  if (!icon) return null;
  const trimmed = icon.trim();
  if (!trimmed) return null;
  return trimmed.slice(0, 64);
}
export {
  normalizeDictionaryValue,
  sanitizeDictionaryColor,
  sanitizeDictionaryIcon
};
//# sourceMappingURL=utils.js.map
