import {
  a as t,
  c as l
} from "./chunk-IO47FP3U.js";

// ../node_modules/refractor/lang/diff.js
var o = l((u, d) => {
  d.exports = s;
  s.displayName = "diff";
  s.aliases = [];
  function s(n) {
    (function(i) {
      i.languages.diff = {
        coord: [
          // Match all kinds of coord lines (prefixed by "+++", "---" or "***").
          /^(?:\*{3}|-{3}|\+{3}).*$/m,
          // Match "@@ ... @@" coord lines in unified diff.
          /^@@.*@@$/m,
          // Match coord lines in normal diff (starts with a number).
          /^\d.*$/m
        ]
        // deleted, inserted, unchanged, diff
      };
      var f = {
        "deleted-sign": "-",
        "deleted-arrow": "<",
        "inserted-sign": "+",
        "inserted-arrow": ">",
        unchanged: " ",
        diff: "!"
      };
      Object.keys(f).forEach(function(e) {
        var r = f[e], a = [];
        /^\w+$/.test(e) || a.push(/\w+/.exec(e)[0]), e === "diff" && a.push("bold"), i.languages.diff[e] = {
          pattern: RegExp(
            "^(?:[" + r + `].*(?:\r
?|
|(?![\\s\\S])))+`,
            "m"
          ),
          alias: a,
          inside: {
            line: {
              pattern: /(.)(?=[\s\S]).*(?:\r\n?|\n)?/,
              lookbehind: !0
            },
            prefix: {
              pattern: /[\s\S]/,
              alias: /\w+/.exec(e)[0]
            }
          }
        };
      }), Object.defineProperty(i.languages.diff, "PREFIXES", {
        value: f
      });
    })(n);
  }
  t(s, "diff");
});

export {
  o as a
};
