{"version":3,"sources":["jsdelivr-header.js","/npm/@mdit/helper@0.22.1/src/dedent.ts","/npm/@mdit/helper@0.22.1/src/escape.ts","/npm/@mdit/helper@0.22.1/src/reg.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNO,MAAM,EAAU,IACrB,MAAM,EAAQ,EAAK,MAAM,MAEnB,EAAkB,EAAM,QAAO,CAAC,EAAK,KACzC,QAAS,EAAI,EAAG,EAAI,EAAK,OAAQ,IAC/B,GAAgB,MAAZ,EAAK,IAA0B,OAAZ,EAAK,GAAa,OAAO,KAAK,IAAI,EAAG,GAE9D,OAAO,IACN,KAEH,OAAI,EAAkB,IACb,EAAM,KAAK,GAAM,EAAE,MAAM,KAAkB,KAAK,MAElD,GCbI,EAAc,GACzB,EACG,QAAQ,MAAO,SACf,QAAQ,MAAO,QACf,QAAQ,MAAO,QACf,QAAQ,MAAO,UACf,QAAQ,MAAO,SAMP,EAAgB,GAC3B,EAAO,QAAQ,wBAAyB,QCZ7B,EAAa,YAEb,EAAc,qDAAA,gBAAA,iBAAA,YAAA,gBAAA","file":"/npm/@mdit/helper@0.22.1/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@mdit/helper@0.22.1/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export const dedent = (text: string): string => {\n  const lines = text.split(\"\\n\");\n\n  const minIndentLength = lines.reduce((acc, line) => {\n    for (let i = 0; i < line.length; i++)\n      if (line[i] !== \" \" && line[i] !== \"\\t\") return Math.min(i, acc);\n\n    return acc;\n  }, Infinity);\n\n  if (minIndentLength < Infinity)\n    return lines.map((x) => x.slice(minIndentLength)).join(\"\\n\");\n\n  return text;\n};\n","export const escapeHtml = (unsafeHTML: string): string =>\n  unsafeHTML\n    .replace(/&/gu, \"&amp;\")\n    .replace(/</gu, \"&lt;\")\n    .replace(/>/gu, \"&gt;\")\n    .replace(/\"/gu, \"&quot;\")\n    .replace(/'/gu, \"&#39;\");\n\n/**\n * Escapes special characters in string s such that the string\n * can be used in `new RegExp`. For example \"[\" becomes \"\\\\[\".\n */\nexport const escapeRegExp = (regexp: string): string =>\n  regexp.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n","// https://spec.commonmark.org/0.29/#line-ending\nexport const NEWLINE_RE = /\\r\\n?|\\n/g;\n\nexport const UNESCAPE_RE = /\\\\([ \\\\!\"#$%&'()*+,./:;<=>?@[\\]^_`{|}~-])/gu;\n"]}