import { n as e } from "./theme-BarViDe0.js";
const r = {
  any: {
    regex: /.*/g,
    css: e.text
  },
  number: {
    regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g,
    css: e.number
  },
  boolean: {
    regex: /\b(true|false)\b/g,
    css: e.boolean
  },
  null: {
    regex: /\bnull\b/g,
    css: e.null
  },
  objectBrackets: {
    regex: /[{}]/g,
    css: e.curlyBrackets
  },
  arrayBrackets: {
    regex: /[[\]]/g,
    css: e.squareBrackets
  },
  string: {
    regex: /"(?:[^"\\]*(?:\\.[^"\\]*)*)"/g,
    css: e.string
  },
  key: {
    regex: /"([^"\\]*(\\.[^"\\]*)*)"\s*:/g,
    css: e.key
  }
}, t = (s) => {
  try {
    return JSON.stringify(JSON.parse(s), null, 2);
  } catch {
    return s;
  }
};
var g = {
  definitions: r,
  format: t
};
export {
  g as default
};
