bunki 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -2177,13 +2177,13 @@ var require_lib = __commonJS((exports, module) => {
2177
2177
  return stackDescriptor.value;
2178
2178
  });
2179
2179
  if (!getStack) {
2180
- getStack = function getStack() {
2180
+ getStack = function getStack2() {
2181
2181
  return cause.stack;
2182
2182
  };
2183
2183
  }
2184
2184
  } else {
2185
2185
  var stack = new Error(message).stack;
2186
- getStack = function getStack() {
2186
+ getStack = function getStack2() {
2187
2187
  return stack;
2188
2188
  };
2189
2189
  }
@@ -3049,7 +3049,7 @@ var require_object = __commonJS((exports, module) => {
3049
3049
  _setPrototypeOf(subClass, superClass);
3050
3050
  }
3051
3051
  function _setPrototypeOf(o, p) {
3052
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
3052
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
3053
3053
  o2.__proto__ = p2;
3054
3054
  return o2;
3055
3055
  };
@@ -3061,7 +3061,7 @@ var require_object = __commonJS((exports, module) => {
3061
3061
  if (typeof parent !== "function" || typeof prop !== "function") {
3062
3062
  return prop;
3063
3063
  }
3064
- return function wrap() {
3064
+ return function wrap2() {
3065
3065
  var tmp = this.parent;
3066
3066
  this.parent = parent;
3067
3067
  var res = prop.apply(this, arguments);
@@ -3185,7 +3185,7 @@ var require_nodes = __commonJS((exports, module) => {
3185
3185
  _setPrototypeOf(subClass, superClass);
3186
3186
  }
3187
3187
  function _setPrototypeOf(o, p) {
3188
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
3188
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
3189
3189
  o2.__proto__ = p2;
3190
3190
  return o2;
3191
3191
  };
@@ -3539,7 +3539,7 @@ var require_parser = __commonJS((exports, module) => {
3539
3539
  _setPrototypeOf(subClass, superClass);
3540
3540
  }
3541
3541
  function _setPrototypeOf(o, p) {
3542
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
3542
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
3543
3543
  o2.__proto__ = p2;
3544
3544
  return o2;
3545
3545
  };
@@ -4446,7 +4446,7 @@ var require_parser = __commonJS((exports, module) => {
4446
4446
  }
4447
4447
  return buf;
4448
4448
  };
4449
- _proto.parse = function parse() {
4449
+ _proto.parse = function parse2() {
4450
4450
  return new nodes.NodeList(0, 0, this.parseNodes());
4451
4451
  };
4452
4452
  _proto.parseAsRoot = function parseAsRoot() {
@@ -4455,7 +4455,7 @@ var require_parser = __commonJS((exports, module) => {
4455
4455
  return Parser2;
4456
4456
  }(Obj);
4457
4457
  module.exports = {
4458
- parse: function parse(src, extensions, opts) {
4458
+ parse: function parse2(src, extensions, opts) {
4459
4459
  var p = new Parser(lexer.lex(src, opts));
4460
4460
  if (extensions !== undefined) {
4461
4461
  p.extensions = extensions;
@@ -4948,7 +4948,7 @@ var require_compiler = __commonJS((exports, module) => {
4948
4948
  _setPrototypeOf(subClass, superClass);
4949
4949
  }
4950
4950
  function _setPrototypeOf(o, p) {
4951
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
4951
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
4952
4952
  o2.__proto__ = p2;
4953
4953
  return o2;
4954
4954
  };
@@ -6390,7 +6390,7 @@ var require_loader = __commonJS((exports, module) => {
6390
6390
  _setPrototypeOf(subClass, superClass);
6391
6391
  }
6392
6392
  function _setPrototypeOf(o, p) {
6393
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
6393
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6394
6394
  o2.__proto__ = p2;
6395
6395
  return o2;
6396
6396
  };
@@ -6423,7 +6423,7 @@ var require_precompiled_loader = __commonJS((exports, module) => {
6423
6423
  _setPrototypeOf(subClass, superClass);
6424
6424
  }
6425
6425
  function _setPrototypeOf(o, p) {
6426
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
6426
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
6427
6427
  o2.__proto__ = p2;
6428
6428
  return o2;
6429
6429
  };
@@ -11371,7 +11371,7 @@ var require_node_loaders = __commonJS((exports, module) => {
11371
11371
  _setPrototypeOf(subClass, superClass);
11372
11372
  }
11373
11373
  function _setPrototypeOf(o, p) {
11374
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
11374
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
11375
11375
  o2.__proto__ = p2;
11376
11376
  return o2;
11377
11377
  };
@@ -11706,7 +11706,7 @@ var require_environment = __commonJS((exports, module) => {
11706
11706
  _setPrototypeOf(subClass, superClass);
11707
11707
  }
11708
11708
  function _setPrototypeOf(o, p) {
11709
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o2, p2) {
11709
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
11710
11710
  o2.__proto__ = p2;
11711
11711
  return o2;
11712
11712
  };
@@ -11909,7 +11909,7 @@ var require_environment = __commonJS((exports, module) => {
11909
11909
  }
11910
11910
  }
11911
11911
  var syncResult;
11912
- var createTemplate = function createTemplate(err, info) {
11912
+ var createTemplate = function createTemplate2(err, info) {
11913
11913
  if (!info && !err && !ignoreMissing) {
11914
11914
  err = new Error("template not found: " + name);
11915
11915
  }
@@ -12403,7 +12403,7 @@ var require_jinja_compat = __commonJS((exports, module) => {
12403
12403
  return orig_Parser_parseAggregate.apply(this);
12404
12404
  } catch (e) {
12405
12405
  var errState = getTokensState(this.tokens);
12406
- var rethrow = function rethrow() {
12406
+ var rethrow = function rethrow2() {
12407
12407
  lib._assign(_this.tokens, errState);
12408
12408
  return e;
12409
12409
  };
@@ -12496,13 +12496,13 @@ var require_jinja_compat = __commonJS((exports, module) => {
12496
12496
  throw new Error("ValueError");
12497
12497
  },
12498
12498
  count: function count(element) {
12499
- var count = 0;
12499
+ var count2 = 0;
12500
12500
  for (var i = 0;i < this.length; i++) {
12501
12501
  if (this[i] === element) {
12502
- count++;
12502
+ count2++;
12503
12503
  }
12504
12504
  }
12505
- return count;
12505
+ return count2;
12506
12506
  },
12507
12507
  index: function index(element) {
12508
12508
  var i;
@@ -19256,24 +19256,24 @@ var require_lib2 = __commonJS((exports) => {
19256
19256
  // node_modules/domhandler/lib/node.js
19257
19257
  var require_node = __commonJS((exports) => {
19258
19258
  var __extends = exports && exports.__extends || function() {
19259
- var extendStatics = function(d3, b2) {
19260
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b3) {
19261
- d4.__proto__ = b3;
19262
- } || function(d4, b3) {
19259
+ var extendStatics = function(d2, b2) {
19260
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
19261
+ d3.__proto__ = b3;
19262
+ } || function(d3, b3) {
19263
19263
  for (var p in b3)
19264
19264
  if (Object.prototype.hasOwnProperty.call(b3, p))
19265
- d4[p] = b3[p];
19265
+ d3[p] = b3[p];
19266
19266
  };
19267
- return extendStatics(d3, b2);
19267
+ return extendStatics(d2, b2);
19268
19268
  };
19269
- return function(d3, b2) {
19269
+ return function(d2, b2) {
19270
19270
  if (typeof b2 !== "function" && b2 !== null)
19271
19271
  throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
19272
- extendStatics(d3, b2);
19272
+ extendStatics(d2, b2);
19273
19273
  function __() {
19274
- this.constructor = d3;
19274
+ this.constructor = d2;
19275
19275
  }
19276
- d3.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
19276
+ d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
19277
19277
  };
19278
19278
  }();
19279
19279
  var __assign = exports && exports.__assign || function() {
@@ -19838,7 +19838,7 @@ var require_escape = __commonJS((exports) => {
19838
19838
  exports.encodeXML = encodeXML;
19839
19839
  exports.escape = encodeXML;
19840
19840
  function getEscaper(regex, map) {
19841
- return function escape(data) {
19841
+ return function escape2(data) {
19842
19842
  var match;
19843
19843
  var lastIdx = 0;
19844
19844
  var result = "";
@@ -21185,7 +21185,7 @@ var require_is_plain_object = __commonJS((exports) => {
21185
21185
 
21186
21186
  // node_modules/deepmerge/dist/cjs.js
21187
21187
  var require_cjs = __commonJS((exports, module) => {
21188
- var isMergeableObject = function isMergeableObject(value) {
21188
+ var isMergeableObject = function isMergeableObject2(value) {
21189
21189
  return isNonNullObject(value) && !isSpecial(value);
21190
21190
  };
21191
21191
  function isNonNullObject(value) {
@@ -21378,7 +21378,7 @@ var require_parse_srcset = __commonJS((exports, module) => {
21378
21378
  }
21379
21379
  }
21380
21380
  function parseDescriptors() {
21381
- var pError = false, w2, d3, h, i, candidate = {}, desc, lastChar, value, intVal, floatVal;
21381
+ var pError = false, w2, d2, h, i, candidate = {}, desc, lastChar, value, intVal, floatVal;
21382
21382
  for (i = 0;i < descriptors.length; i++) {
21383
21383
  desc = descriptors[i];
21384
21384
  lastChar = desc[desc.length - 1];
@@ -21386,7 +21386,7 @@ var require_parse_srcset = __commonJS((exports, module) => {
21386
21386
  intVal = parseInt(value, 10);
21387
21387
  floatVal = parseFloat(value);
21388
21388
  if (regexNonNegativeInteger.test(value) && lastChar === "w") {
21389
- if (w2 || d3) {
21389
+ if (w2 || d2) {
21390
21390
  pError = true;
21391
21391
  }
21392
21392
  if (intVal === 0) {
@@ -21395,16 +21395,16 @@ var require_parse_srcset = __commonJS((exports, module) => {
21395
21395
  w2 = intVal;
21396
21396
  }
21397
21397
  } else if (regexFloatingPoint.test(value) && lastChar === "x") {
21398
- if (w2 || d3 || h) {
21398
+ if (w2 || d2 || h) {
21399
21399
  pError = true;
21400
21400
  }
21401
21401
  if (floatVal < 0) {
21402
21402
  pError = true;
21403
21403
  } else {
21404
- d3 = floatVal;
21404
+ d2 = floatVal;
21405
21405
  }
21406
21406
  } else if (regexNonNegativeInteger.test(value) && lastChar === "h") {
21407
- if (h || d3) {
21407
+ if (h || d2) {
21408
21408
  pError = true;
21409
21409
  }
21410
21410
  if (intVal === 0) {
@@ -21421,8 +21421,8 @@ var require_parse_srcset = __commonJS((exports, module) => {
21421
21421
  if (w2) {
21422
21422
  candidate.w = w2;
21423
21423
  }
21424
- if (d3) {
21425
- candidate.d = d3;
21424
+ if (d2) {
21425
+ candidate.d = d2;
21426
21426
  }
21427
21427
  if (h) {
21428
21428
  candidate.h = h;
@@ -23257,7 +23257,7 @@ var require_util = __commonJS((exports) => {
23257
23257
  return result;
23258
23258
  };
23259
23259
  }
23260
- var normalize = lruMemoize(function normalize(aPath) {
23260
+ var normalize = lruMemoize(function normalize2(aPath) {
23261
23261
  var path5 = aPath;
23262
23262
  var url = urlParse(aPath);
23263
23263
  if (url) {
@@ -31412,14 +31412,14 @@ function xml(hljs) {
31412
31412
  }
31413
31413
 
31414
31414
  // node_modules/marked/lib/marked.esm.js
31415
- function L() {
31415
+ function M() {
31416
31416
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
31417
31417
  }
31418
- var T = L();
31419
- function Z(u) {
31418
+ var T = M();
31419
+ function H(u) {
31420
31420
  T = u;
31421
31421
  }
31422
- var C = { exec: () => null };
31422
+ var _ = { exec: () => null };
31423
31423
  function k(u, e = "") {
31424
31424
  let t = typeof u == "string" ? u : u.source, n = { replace: (r, i) => {
31425
31425
  let s = typeof i == "string" ? i : i.source;
@@ -31427,81 +31427,87 @@ function k(u, e = "") {
31427
31427
  }, getRegex: () => new RegExp(t, e) };
31428
31428
  return n;
31429
31429
  }
31430
- var me = (() => {
31430
+ var Re = (() => {
31431
31431
  try {
31432
31432
  return !!new RegExp("(?<=1)(?<!1)");
31433
31433
  } catch {
31434
31434
  return false;
31435
31435
  }
31436
31436
  })();
31437
- var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u) => new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}#`), htmlBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i") };
31438
- var xe = /^(?:[ \t]*(?:\n|$))+/;
31439
- var be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
31440
- var Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
31437
+ var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u) => new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}#`), htmlBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}>`) };
31438
+ var Te = /^(?:[ \t]*(?:\n|$))+/;
31439
+ var Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
31440
+ var we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
31441
31441
  var I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
31442
- var Te = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
31443
- var N = /(?:[*+-]|\d{1,9}[.)])/;
31442
+ var ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
31443
+ var N = / {0,3}(?:[*+-]|\d{1,9}[.)])/;
31444
31444
  var re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
31445
31445
  var se = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
31446
- var Oe = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
31446
+ var Pe = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
31447
31447
  var Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
31448
- var we = /^[^\n]+/;
31448
+ var Se = /^[^\n]+/;
31449
31449
  var F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
31450
- var ye = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
31451
- var Pe = k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex();
31452
- var v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
31450
+ var $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
31451
+ var _e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex();
31452
+ var q = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
31453
31453
  var j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
31454
- var Se = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", j).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
31455
- var ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
31456
- var $e = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex();
31457
- var U = { blockquote: $e, code: be, def: ye, fences: Re, heading: Te, hr: I, html: Se, lheading: se, list: Pe, newline: xe, paragraph: ie, table: C, text: we };
31458
- var te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
31459
- var _e = { ...U, lheading: Oe, table: te, paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() };
31460
- var Le = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: C, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
31454
+ var Le = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", j).replace("tag", q).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
31455
+ var ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex();
31456
+ var Me = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex();
31457
+ var U = { blockquote: Me, code: Oe, def: $e, fences: we, heading: ye, hr: I, html: Le, lheading: se, list: _e, newline: Te, paragraph: ie, table: _, text: Se };
31458
+ var te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex();
31459
+ var ze = { ...U, lheading: Pe, table: te, paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex() };
31460
+ var Ce = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
31461
31461
  ]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
31462
- var Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
31463
- var ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
31462
+ var Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
31463
+ var Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
31464
31464
  var oe = /^( {2,}|\\)\n(?!\s*$)/;
31465
- var Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
31466
- var D = /[\p{P}\p{S}]/u;
31465
+ var Ee = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
31466
+ var v = /[\p{P}\p{S}]/u;
31467
31467
  var K = /[\s\p{P}\p{S}]/u;
31468
31468
  var ae = /[^\s\p{P}\p{S}]/u;
31469
- var Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex();
31469
+ var Be = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex();
31470
31470
  var le = /(?!~)[\p{P}\p{S}]/u;
31471
- var Ie = /(?!~)[\s\p{P}\p{S}]/u;
31472
- var Ee = /(?:[^\s\p{P}\p{S}]|~)/u;
31473
- var Be = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", me ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
31474
- var ue = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;
31475
- var qe = k(ue, "u").replace(/punct/g, D).getRegex();
31476
- var ve = k(ue, "u").replace(/punct/g, le).getRegex();
31477
- var pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
31478
- var De = k(pe, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex();
31479
- var He = k(pe, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, Ie).replace(/punct/g, le).getRegex();
31480
- var Ze = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex();
31481
- var Ge = k(/\\(punct)/, "gu").replace(/punct/g, D).getRegex();
31482
- var Ne = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
31483
- var Qe = k(j).replace("(?:-->|$)", "-->").getRegex();
31484
- var Fe = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
31485
- var q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/;
31486
- var je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
31487
- var ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex();
31488
- var he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex();
31489
- var Ue = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex();
31471
+ var De = /(?!~)[\s\p{P}\p{S}]/u;
31472
+ var qe = /(?:[^\s\p{P}\p{S}]|~)/u;
31473
+ var ue = /(?![*_])[\p{P}\p{S}]/u;
31474
+ var ve = /(?![*_])[\s\p{P}\p{S}]/u;
31475
+ var Ge = /(?:[^\s\p{P}\p{S}]|[*_])/u;
31476
+ var He = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Re ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
31477
+ var pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;
31478
+ var Ze = k(pe, "u").replace(/punct/g, v).getRegex();
31479
+ var Ne = k(pe, "u").replace(/punct/g, le).getRegex();
31480
+ var ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
31481
+ var Qe = k(ce, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex();
31482
+ var Fe = k(ce, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, De).replace(/punct/g, le).getRegex();
31483
+ var je = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex();
31484
+ var Ue = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ue).getRegex();
31485
+ var Ke = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
31486
+ var We = k(Ke, "gu").replace(/notPunctSpace/g, Ge).replace(/punctSpace/g, ve).replace(/punct/g, ue).getRegex();
31487
+ var Xe = k(/\\(punct)/, "gu").replace(/punct/g, v).getRegex();
31488
+ var Je = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
31489
+ var Ve = k(j).replace("(?:-->|$)", "-->").getRegex();
31490
+ var Ye = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ve).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
31491
+ var D = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/;
31492
+ var et = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", D).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
31493
+ var he = k(/^!?\[(label)\]\[(ref)\]/).replace("label", D).replace("ref", F).getRegex();
31494
+ var ke = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex();
31495
+ var tt = k("reflink|nolink(?!\\()", "g").replace("reflink", he).replace("nolink", ke).getRegex();
31490
31496
  var ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
31491
- var W = { _backpedal: C, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: oe, code: ze, del: C, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: je, nolink: he, punctuation: Ce, reflink: ce, reflinkSearch: Ue, tag: Fe, text: Ae, url: C };
31492
- var Ke = { ...W, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() };
31493
- var G = { ...W, emStrongRDelimAst: He, emStrongLDelim: ve, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() };
31494
- var We = { ...G, br: k(oe).replace("{2,}", "*").getRegex(), text: k(G.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
31495
- var E = { normal: U, gfm: _e, pedantic: Le };
31496
- var M = { normal: W, gfm: G, breaks: We, pedantic: Ke };
31497
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
31498
- var ke = (u) => Xe[u];
31499
- function w(u, e) {
31497
+ var W = { _backpedal: _, anyPunctuation: Xe, autolink: Je, blockSkip: He, br: oe, code: Ie, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: Ze, emStrongRDelimAst: Qe, emStrongRDelimUnd: je, escape: Ae, link: et, nolink: ke, punctuation: Be, reflink: he, reflinkSearch: tt, tag: Ye, text: Ee, url: _ };
31498
+ var nt = { ...W, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex() };
31499
+ var Z = { ...W, emStrongRDelimAst: Fe, emStrongLDelim: Ne, delLDelim: Ue, delRDelim: We, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() };
31500
+ var rt = { ...Z, br: k(oe).replace("{2,}", "*").getRegex(), text: k(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
31501
+ var E = { normal: U, gfm: ze, pedantic: Ce };
31502
+ var z = { normal: W, gfm: Z, breaks: rt, pedantic: nt };
31503
+ var st = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
31504
+ var de = (u) => st[u];
31505
+ function O(u, e) {
31500
31506
  if (e) {
31501
31507
  if (m.escapeTest.test(u))
31502
- return u.replace(m.escapeReplace, ke);
31508
+ return u.replace(m.escapeReplace, de);
31503
31509
  } else if (m.escapeTestNoEncode.test(u))
31504
- return u.replace(m.escapeReplaceNoEncode, ke);
31510
+ return u.replace(m.escapeReplaceNoEncode, de);
31505
31511
  return u;
31506
31512
  }
31507
31513
  function X(u) {
@@ -31529,7 +31535,7 @@ function J(u, e) {
31529
31535
  n[r] = n[r].trim().replace(m.slashPipe, "|");
31530
31536
  return n;
31531
31537
  }
31532
- function z(u, e, t) {
31538
+ function C(u, e, t) {
31533
31539
  let n = u.length;
31534
31540
  if (n === 0)
31535
31541
  return "";
@@ -31545,7 +31551,7 @@ function z(u, e, t) {
31545
31551
  }
31546
31552
  return u.slice(0, n - r);
31547
31553
  }
31548
- function de(u, e) {
31554
+ function ge(u, e) {
31549
31555
  if (u.indexOf(e[1]) === -1)
31550
31556
  return -1;
31551
31557
  let t = 0;
@@ -31558,13 +31564,23 @@ function de(u, e) {
31558
31564
  return n;
31559
31565
  return t > 0 ? -2 : -1;
31560
31566
  }
31561
- function ge(u, e, t, n, r) {
31567
+ function fe(u, e = 0) {
31568
+ let t = e, n = "";
31569
+ for (let r of u)
31570
+ if (r === "\t") {
31571
+ let i = 4 - t % 4;
31572
+ n += " ".repeat(i), t += i;
31573
+ } else
31574
+ n += r, t++;
31575
+ return n;
31576
+ }
31577
+ function me(u, e, t, n, r) {
31562
31578
  let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
31563
31579
  n.state.inLink = true;
31564
31580
  let o = { type: u[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: a, tokens: n.inlineTokens(a) };
31565
31581
  return n.state.inLink = false, o;
31566
31582
  }
31567
- function Je(u, e, t) {
31583
+ function it(u, e, t) {
31568
31584
  let n = u.match(t.other.indentCodeCompensation);
31569
31585
  if (n === null)
31570
31586
  return e;
@@ -31579,7 +31595,7 @@ function Je(u, e, t) {
31579
31595
  }).join(`
31580
31596
  `);
31581
31597
  }
31582
- var y = class {
31598
+ var w = class {
31583
31599
  options;
31584
31600
  rules;
31585
31601
  lexer;
@@ -31595,14 +31611,14 @@ var y = class {
31595
31611
  let t = this.rules.block.code.exec(e);
31596
31612
  if (t) {
31597
31613
  let n = t[0].replace(this.rules.other.codeRemoveIndent, "");
31598
- return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : z(n, `
31614
+ return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : C(n, `
31599
31615
  `) };
31600
31616
  }
31601
31617
  }
31602
31618
  fences(e) {
31603
31619
  let t = this.rules.block.fences.exec(e);
31604
31620
  if (t) {
31605
- let n = t[0], r = Je(n, t[3] || "", this.rules);
31621
+ let n = t[0], r = it(n, t[3] || "", this.rules);
31606
31622
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
31607
31623
  }
31608
31624
  }
@@ -31611,7 +31627,7 @@ var y = class {
31611
31627
  if (t) {
31612
31628
  let n = t[2].trim();
31613
31629
  if (this.rules.other.endingHash.test(n)) {
31614
- let r = z(n, "#");
31630
+ let r = C(n, "#");
31615
31631
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
31616
31632
  }
31617
31633
  return { type: "heading", raw: t[0], depth: t[1].length, text: n, tokens: this.lexer.inline(n) };
@@ -31620,13 +31636,13 @@ var y = class {
31620
31636
  hr(e) {
31621
31637
  let t = this.rules.block.hr.exec(e);
31622
31638
  if (t)
31623
- return { type: "hr", raw: z(t[0], `
31639
+ return { type: "hr", raw: C(t[0], `
31624
31640
  `) };
31625
31641
  }
31626
31642
  blockquote(e) {
31627
31643
  let t = this.rules.block.blockquote.exec(e);
31628
31644
  if (t) {
31629
- let n = z(t[0], `
31645
+ let n = C(t[0], `
31630
31646
  `).split(`
31631
31647
  `), r = "", i = "", s = [];
31632
31648
  for (;n.length > 0; ) {
@@ -31645,8 +31661,8 @@ var y = class {
31645
31661
  r = r ? `${r}
31646
31662
  ${p}` : p, i = i ? `${i}
31647
31663
  ${c}` : c;
31648
- let g = this.lexer.state.top;
31649
- if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = g, n.length === 0)
31664
+ let d = this.lexer.state.top;
31665
+ if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = d, n.length === 0)
31650
31666
  break;
31651
31667
  let h = s.at(-1);
31652
31668
  if (h?.type === "code")
@@ -31654,14 +31670,14 @@ ${c}` : c;
31654
31670
  if (h?.type === "blockquote") {
31655
31671
  let R = h, f = R.raw + `
31656
31672
  ` + n.join(`
31657
- `), O = this.blockquote(f);
31658
- s[s.length - 1] = O, r = r.substring(0, r.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
31673
+ `), S = this.blockquote(f);
31674
+ s[s.length - 1] = S, r = r.substring(0, r.length - R.raw.length) + S.raw, i = i.substring(0, i.length - R.text.length) + S.text;
31659
31675
  break;
31660
31676
  } else if (h?.type === "list") {
31661
31677
  let R = h, f = R.raw + `
31662
31678
  ` + n.join(`
31663
- `), O = this.list(f);
31664
- s[s.length - 1] = O, r = r.substring(0, r.length - h.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
31679
+ `), S = this.list(f);
31680
+ s[s.length - 1] = S, r = r.substring(0, r.length - h.raw.length) + S.raw, i = i.substring(0, i.length - R.raw.length) + S.raw, n = f.substring(s.at(-1).raw.length).split(`
31665
31681
  `);
31666
31682
  continue;
31667
31683
  }
@@ -31680,28 +31696,28 @@ ${c}` : c;
31680
31696
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
31681
31697
  break;
31682
31698
  p = t[0], e = e.substring(p.length);
31683
- let g = t[2].split(`
31684
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (O) => " ".repeat(3 * O.length)), h = e.split(`
31685
- `, 1)[0], R = !g.trim(), f = 0;
31686
- if (this.options.pedantic ? (f = 2, c = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
31699
+ let d = fe(t[2].split(`
31700
+ `, 1)[0], t[1].length), h = e.split(`
31701
+ `, 1)[0], R = !d.trim(), f = 0;
31702
+ if (this.options.pedantic ? (f = 2, c = d.trimStart()) : R ? f = t[1].length + 1 : (f = d.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = d.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
31687
31703
  `, e = e.substring(h.length + 1), l = true), !l) {
31688
- let O = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), fe = this.rules.other.htmlBeginRegex(f);
31704
+ let S = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f), be = this.rules.other.blockquoteBeginRegex(f);
31689
31705
  for (;e; ) {
31690
- let H = e.split(`
31706
+ let G = e.split(`
31691
31707
  `, 1)[0], A;
31692
- if (h = H, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || fe.test(h) || O.test(h) || V.test(h))
31708
+ if (h = G, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || xe.test(h) || be.test(h) || S.test(h) || V.test(h))
31693
31709
  break;
31694
31710
  if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim())
31695
31711
  c += `
31696
31712
  ` + A.slice(f);
31697
31713
  else {
31698
- if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(g) || ee.test(g) || V.test(g))
31714
+ if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d) || ee.test(d) || V.test(d))
31699
31715
  break;
31700
31716
  c += `
31701
31717
  ` + h;
31702
31718
  }
31703
- !R && !h.trim() && (R = true), p += H + `
31704
- `, e = e.substring(H.length + 1), g = A.slice(f);
31719
+ R = !h.trim(), p += G + `
31720
+ `, e = e.substring(G.length + 1), d = A.slice(f);
31705
31721
  }
31706
31722
  }
31707
31723
  i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (a = true)), i.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(c), loose: false, text: c, tokens: [] }), i.raw += p;
@@ -31729,7 +31745,7 @@ ${c}` : c;
31729
31745
  }
31730
31746
  }
31731
31747
  if (!i.loose) {
31732
- let p = l.tokens.filter((g) => g.type === "space"), c = p.length > 0 && p.some((g) => this.rules.other.anyLine.test(g.raw));
31748
+ let p = l.tokens.filter((d) => d.type === "space"), c = p.length > 0 && p.some((d) => this.rules.other.anyLine.test(d.raw));
31733
31749
  i.loose = c;
31734
31750
  }
31735
31751
  }
@@ -31805,11 +31821,11 @@ ${c}` : c;
31805
31821
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
31806
31822
  if (!this.rules.other.endAngleBracket.test(n))
31807
31823
  return;
31808
- let s = z(n.slice(0, -1), "\\");
31824
+ let s = C(n.slice(0, -1), "\\");
31809
31825
  if ((n.length - s.length) % 2 === 0)
31810
31826
  return;
31811
31827
  } else {
31812
- let s = de(t[2], "()");
31828
+ let s = ge(t[2], "()");
31813
31829
  if (s === -2)
31814
31830
  return;
31815
31831
  if (s > -1) {
@@ -31823,7 +31839,7 @@ ${c}` : c;
31823
31839
  s && (r = s[1], i = s[3]);
31824
31840
  } else
31825
31841
  i = t[3] ? t[3].slice(1, -1) : "";
31826
- return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), ge(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
31842
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), me(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
31827
31843
  }
31828
31844
  }
31829
31845
  reflink(e, t) {
@@ -31834,7 +31850,7 @@ ${c}` : c;
31834
31850
  let s = n[0].charAt(0);
31835
31851
  return { type: "text", raw: s, text: s };
31836
31852
  }
31837
- return ge(n, i, n[0], this.lexer, this.rules);
31853
+ return me(n, i, n[0], this.lexer, this.rules);
31838
31854
  }
31839
31855
  }
31840
31856
  emStrong(e, t, n = "") {
@@ -31856,7 +31872,7 @@ ${c}` : c;
31856
31872
  if (l -= o, l > 0)
31857
31873
  continue;
31858
31874
  o = Math.min(o, o + l + p);
31859
- let g = [...r[0]][0].length, h = e.slice(0, s + r.index + g + o);
31875
+ let d = [...r[0]][0].length, h = e.slice(0, s + r.index + d + o);
31860
31876
  if (Math.min(s, o) % 2) {
31861
31877
  let f = h.slice(1, -1);
31862
31878
  return { type: "em", raw: h, text: f, tokens: this.lexer.inlineTokens(f) };
@@ -31878,10 +31894,26 @@ ${c}` : c;
31878
31894
  if (t)
31879
31895
  return { type: "br", raw: t[0] };
31880
31896
  }
31881
- del(e) {
31882
- let t = this.rules.inline.del.exec(e);
31883
- if (t)
31884
- return { type: "del", raw: t[0], text: t[2], tokens: this.lexer.inlineTokens(t[2]) };
31897
+ del(e, t, n = "") {
31898
+ let r = this.rules.inline.delLDelim.exec(e);
31899
+ if (!r)
31900
+ return;
31901
+ if (!(r[1] || "") || !n || this.rules.inline.punctuation.exec(n)) {
31902
+ let s = [...r[0]].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
31903
+ for (p.lastIndex = 0, t = t.slice(-1 * e.length + s);(r = p.exec(t)) != null; ) {
31904
+ if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [...a].length, o !== s))
31905
+ continue;
31906
+ if (r[3] || r[4]) {
31907
+ l += o;
31908
+ continue;
31909
+ }
31910
+ if (l -= o, l > 0)
31911
+ continue;
31912
+ o = Math.min(o, o + l);
31913
+ let c = [...r[0]][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
31914
+ return { type: "del", raw: d, text: h, tokens: this.lexer.inlineTokens(h) };
31915
+ }
31916
+ }
31885
31917
  }
31886
31918
  autolink(e) {
31887
31919
  let t = this.rules.inline.autolink.exec(e);
@@ -31921,12 +31953,12 @@ var x = class u {
31921
31953
  inlineQueue;
31922
31954
  tokenizer;
31923
31955
  constructor(e) {
31924
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
31925
- let t = { other: m, block: E.normal, inline: M.normal };
31926
- this.options.pedantic ? (t.block = E.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
31956
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new w, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
31957
+ let t = { other: m, block: E.normal, inline: z.normal };
31958
+ this.options.pedantic ? (t.block = E.pedantic, t.inline = z.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = z.breaks : t.inline = z.gfm), this.tokenizer.rules = t;
31927
31959
  }
31928
31960
  static get rules() {
31929
- return { block: E, inline: M };
31961
+ return { block: E, inline: z };
31930
31962
  }
31931
31963
  static lex(e, t) {
31932
31964
  return new u(t).lex(e);
@@ -32093,7 +32125,7 @@ var x = class u {
32093
32125
  e = e.substring(o.raw.length), t.push(o);
32094
32126
  continue;
32095
32127
  }
32096
- if (o = this.tokenizer.del(e)) {
32128
+ if (o = this.tokenizer.del(e, n, a)) {
32097
32129
  e = e.substring(o.raw.length), t.push(o);
32098
32130
  continue;
32099
32131
  }
@@ -32107,9 +32139,9 @@ var x = class u {
32107
32139
  }
32108
32140
  let l = e;
32109
32141
  if (this.options.extensions?.startInline) {
32110
- let p = 1 / 0, c = e.slice(1), g;
32142
+ let p = 1 / 0, c = e.slice(1), d;
32111
32143
  this.options.extensions.startInline.forEach((h) => {
32112
- g = h.call({ lexer: this }, c), typeof g == "number" && g >= 0 && (p = Math.min(p, g));
32144
+ d = h.call({ lexer: this }, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
32113
32145
  }), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
32114
32146
  }
32115
32147
  if (o = this.tokenizer.inlineText(l)) {
@@ -32130,7 +32162,7 @@ var x = class u {
32130
32162
  return t;
32131
32163
  }
32132
32164
  };
32133
- var P = class {
32165
+ var y = class {
32134
32166
  options;
32135
32167
  parser;
32136
32168
  constructor(e) {
@@ -32142,8 +32174,8 @@ var P = class {
32142
32174
  code({ text: e, lang: t, escaped: n }) {
32143
32175
  let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
32144
32176
  `;
32145
- return r ? '<pre><code class="language-' + w(r) + '">' + (n ? i : w(i, true)) + `</code></pre>
32146
- ` : "<pre><code>" + (n ? i : w(i, true)) + `</code></pre>
32177
+ return r ? '<pre><code class="language-' + O(r) + '">' + (n ? i : O(i, true)) + `</code></pre>
32178
+ ` : "<pre><code>" + (n ? i : O(i, true)) + `</code></pre>
32147
32179
  `;
32148
32180
  }
32149
32181
  blockquote({ tokens: e }) {
@@ -32223,7 +32255,7 @@ ${e}</tr>
32223
32255
  return `<em>${this.parser.parseInline(e)}</em>`;
32224
32256
  }
32225
32257
  codespan({ text: e }) {
32226
- return `<code>${w(e, true)}</code>`;
32258
+ return `<code>${O(e, true)}</code>`;
32227
32259
  }
32228
32260
  br(e) {
32229
32261
  return "<br>";
@@ -32237,19 +32269,19 @@ ${e}</tr>
32237
32269
  return r;
32238
32270
  e = i;
32239
32271
  let s = '<a href="' + e + '"';
32240
- return t && (s += ' title="' + w(t) + '"'), s += ">" + r + "</a>", s;
32272
+ return t && (s += ' title="' + O(t) + '"'), s += ">" + r + "</a>", s;
32241
32273
  }
32242
32274
  image({ href: e, title: t, text: n, tokens: r }) {
32243
32275
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
32244
32276
  let i = X(e);
32245
32277
  if (i === null)
32246
- return w(n);
32278
+ return O(n);
32247
32279
  e = i;
32248
32280
  let s = `<img src="${e}" alt="${n}"`;
32249
- return t && (s += ` title="${w(t)}"`), s += ">", s;
32281
+ return t && (s += ` title="${O(t)}"`), s += ">", s;
32250
32282
  }
32251
32283
  text(e) {
32252
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : ("escaped" in e) && e.escaped ? e.text : w(e.text);
32284
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : ("escaped" in e) && e.escaped ? e.text : O(e.text);
32253
32285
  }
32254
32286
  };
32255
32287
  var $ = class {
@@ -32289,7 +32321,7 @@ var b = class u2 {
32289
32321
  renderer;
32290
32322
  textRenderer;
32291
32323
  constructor(e) {
32292
- this.options = e || T, this.options.renderer = this.options.renderer || new P, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
32324
+ this.options = e || T, this.options.renderer = this.options.renderer || new y, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
32293
32325
  }
32294
32326
  static parse(e, t) {
32295
32327
  return new u2(t).parse(e);
@@ -32436,7 +32468,7 @@ var b = class u2 {
32436
32468
  return n;
32437
32469
  }
32438
32470
  };
32439
- var S = class {
32471
+ var P = class {
32440
32472
  options;
32441
32473
  block;
32442
32474
  constructor(e) {
@@ -32464,16 +32496,16 @@ var S = class {
32464
32496
  }
32465
32497
  };
32466
32498
  var B = class {
32467
- defaults = L();
32499
+ defaults = M();
32468
32500
  options = this.setOptions;
32469
32501
  parse = this.parseMarkdown(true);
32470
32502
  parseInline = this.parseMarkdown(false);
32471
32503
  Parser = b;
32472
- Renderer = P;
32504
+ Renderer = y;
32473
32505
  TextRenderer = $;
32474
32506
  Lexer = x;
32475
- Tokenizer = y;
32476
- Hooks = S;
32507
+ Tokenizer = w;
32508
+ Hooks = P;
32477
32509
  constructor(...e) {
32478
32510
  this.use(...e);
32479
32511
  }
@@ -32527,7 +32559,7 @@ var B = class {
32527
32559
  }
32528
32560
  "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
32529
32561
  }), r.extensions = t), n.renderer) {
32530
- let i = this.defaults.renderer || new P(this.defaults);
32562
+ let i = this.defaults.renderer || new y(this.defaults);
32531
32563
  for (let s in n.renderer) {
32532
32564
  if (!(s in i))
32533
32565
  throw new Error(`renderer '${s}' does not exist`);
@@ -32542,7 +32574,7 @@ var B = class {
32542
32574
  r.renderer = i;
32543
32575
  }
32544
32576
  if (n.tokenizer) {
32545
- let i = this.defaults.tokenizer || new y(this.defaults);
32577
+ let i = this.defaults.tokenizer || new w(this.defaults);
32546
32578
  for (let s in n.tokenizer) {
32547
32579
  if (!(s in i))
32548
32580
  throw new Error(`tokenizer '${s}' does not exist`);
@@ -32557,26 +32589,26 @@ var B = class {
32557
32589
  r.tokenizer = i;
32558
32590
  }
32559
32591
  if (n.hooks) {
32560
- let i = this.defaults.hooks || new S;
32592
+ let i = this.defaults.hooks || new P;
32561
32593
  for (let s in n.hooks) {
32562
32594
  if (!(s in i))
32563
32595
  throw new Error(`hook '${s}' does not exist`);
32564
32596
  if (["options", "block"].includes(s))
32565
32597
  continue;
32566
32598
  let a = s, o = n.hooks[a], l = i[a];
32567
- S.passThroughHooks.has(s) ? i[a] = (p) => {
32568
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s))
32599
+ P.passThroughHooks.has(s) ? i[a] = (p) => {
32600
+ if (this.defaults.async && P.passThroughHooksRespectAsync.has(s))
32569
32601
  return (async () => {
32570
- let g = await o.call(i, p);
32571
- return l.call(i, g);
32602
+ let d = await o.call(i, p);
32603
+ return l.call(i, d);
32572
32604
  })();
32573
32605
  let c = o.call(i, p);
32574
32606
  return l.call(i, c);
32575
32607
  } : i[a] = (...p) => {
32576
32608
  if (this.defaults.async)
32577
32609
  return (async () => {
32578
- let g = await o.apply(i, p);
32579
- return g === false && (g = await l.apply(i, p)), g;
32610
+ let d = await o.apply(i, p);
32611
+ return d === false && (d = await l.apply(i, p)), d;
32580
32612
  })();
32581
32613
  let c = o.apply(i, p);
32582
32614
  return c === false && (c = l.apply(i, p)), c;
@@ -32634,7 +32666,7 @@ var B = class {
32634
32666
  return (n) => {
32635
32667
  if (n.message += `
32636
32668
  Please report this to https://github.com/markedjs/marked.`, e) {
32637
- let r = "<p>An error occurred:</p><pre>" + w(n.message + "", true) + "</pre>";
32669
+ let r = "<p>An error occurred:</p><pre>" + O(n.message + "", true) + "</pre>";
32638
32670
  return t ? Promise.resolve(r) : r;
32639
32671
  }
32640
32672
  if (t)
@@ -32643,41 +32675,41 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32643
32675
  };
32644
32676
  }
32645
32677
  };
32646
- var _ = new B;
32647
- function d(u3, e) {
32648
- return _.parse(u3, e);
32678
+ var L = new B;
32679
+ function g(u3, e) {
32680
+ return L.parse(u3, e);
32649
32681
  }
32650
- d.options = d.setOptions = function(u3) {
32651
- return _.setOptions(u3), d.defaults = _.defaults, Z(d.defaults), d;
32682
+ g.options = g.setOptions = function(u3) {
32683
+ return L.setOptions(u3), g.defaults = L.defaults, H(g.defaults), g;
32652
32684
  };
32653
- d.getDefaults = L;
32654
- d.defaults = T;
32655
- d.use = function(...u3) {
32656
- return _.use(...u3), d.defaults = _.defaults, Z(d.defaults), d;
32685
+ g.getDefaults = M;
32686
+ g.defaults = T;
32687
+ g.use = function(...u3) {
32688
+ return L.use(...u3), g.defaults = L.defaults, H(g.defaults), g;
32657
32689
  };
32658
- d.walkTokens = function(u3, e) {
32659
- return _.walkTokens(u3, e);
32690
+ g.walkTokens = function(u3, e) {
32691
+ return L.walkTokens(u3, e);
32660
32692
  };
32661
- d.parseInline = _.parseInline;
32662
- d.Parser = b;
32663
- d.parser = b.parse;
32664
- d.Renderer = P;
32665
- d.TextRenderer = $;
32666
- d.Lexer = x;
32667
- d.lexer = x.lex;
32668
- d.Tokenizer = y;
32669
- d.Hooks = S;
32670
- d.parse = d;
32671
- var Dt = d.options;
32672
- var Ht = d.setOptions;
32673
- var Zt = d.use;
32674
- var Gt = d.walkTokens;
32675
- var Nt = d.parseInline;
32676
- var Ft = b.parse;
32677
- var jt = x.lex;
32693
+ g.parseInline = L.parseInline;
32694
+ g.Parser = b;
32695
+ g.parser = b.parse;
32696
+ g.Renderer = y;
32697
+ g.TextRenderer = $;
32698
+ g.Lexer = x;
32699
+ g.lexer = x.lex;
32700
+ g.Tokenizer = w;
32701
+ g.Hooks = P;
32702
+ g.parse = g;
32703
+ var Ut = g.options;
32704
+ var Kt = g.setOptions;
32705
+ var Wt = g.use;
32706
+ var Xt = g.walkTokens;
32707
+ var Jt = g.parseInline;
32708
+ var Yt = b.parse;
32709
+ var en = x.lex;
32678
32710
 
32679
32711
  // node_modules/marked-alert/dist/index.js
32680
- var d2 = [
32712
+ var d = [
32681
32713
  {
32682
32714
  type: "note",
32683
32715
  icon: '<svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>'
@@ -32700,7 +32732,7 @@ var d2 = [
32700
32732
  }
32701
32733
  ];
32702
32734
  function m2(a) {
32703
- return a.length ? Object.values([...d2, ...a].reduce((i, s) => (i[s.type] = s, i), {})) : d2;
32735
+ return a.length ? Object.values([...d, ...a].reduce((i, s) => (i[s.type] = s, i), {})) : d;
32704
32736
  }
32705
32737
  function u3(a) {
32706
32738
  return `^(?:\\[!${a.toUpperCase()}])\\s*?
@@ -32710,13 +32742,13 @@ function x2(a) {
32710
32742
  return a.slice(0, 1).toUpperCase() + a.slice(1).toLowerCase();
32711
32743
  }
32712
32744
  function A(a = {}) {
32713
- const { className: i = "markdown-alert", variants: s = [] } = a, g = m2(s);
32745
+ const { className: i = "markdown-alert", variants: s = [] } = a, g2 = m2(s);
32714
32746
  return {
32715
32747
  walkTokens(t) {
32716
32748
  var e, h, p, v2;
32717
32749
  if (t.type !== "blockquote")
32718
32750
  return;
32719
- const c = g.find(({ type: n }) => new RegExp(u3(n)).test(t.text));
32751
+ const c = g2.find(({ type: n }) => new RegExp(u3(n)).test(t.text));
32720
32752
  if (c) {
32721
32753
  const {
32722
32754
  type: n,
@@ -33364,7 +33396,7 @@ class SiteGenerator {
33364
33396
  watch: false
33365
33397
  });
33366
33398
  env.addFilter("date", function(date, format) {
33367
- const d3 = toPacificTime(date);
33399
+ const d2 = toPacificTime(date);
33368
33400
  const months = [
33369
33401
  "January",
33370
33402
  "February",
@@ -33380,15 +33412,15 @@ class SiteGenerator {
33380
33412
  "December"
33381
33413
  ];
33382
33414
  if (format === "YYYY") {
33383
- return d3.getFullYear();
33415
+ return d2.getFullYear();
33384
33416
  } else if (format === "MMMM D, YYYY") {
33385
- return `${months[d3.getMonth()]} ${d3.getDate()}, ${d3.getFullYear()}`;
33417
+ return `${months[d2.getMonth()]} ${d2.getDate()}, ${d2.getFullYear()}`;
33386
33418
  } else if (format === "MMMM D, YYYY h:mm A") {
33387
- const hours = d3.getHours() % 12 || 12;
33388
- const ampm = d3.getHours() >= 12 ? "PM" : "AM";
33389
- return `${months[d3.getMonth()]} ${d3.getDate()}, ${d3.getFullYear()} @ ${hours} ${ampm}`;
33419
+ const hours = d2.getHours() % 12 || 12;
33420
+ const ampm = d2.getHours() >= 12 ? "PM" : "AM";
33421
+ return `${months[d2.getMonth()]} ${d2.getDate()}, ${d2.getFullYear()} @ ${hours} ${ampm}`;
33390
33422
  } else {
33391
- return d3.toLocaleDateString("en-US", {
33423
+ return d2.toLocaleDateString("en-US", {
33392
33424
  timeZone: "America/Los_Angeles"
33393
33425
  });
33394
33426
  }
@@ -33454,10 +33486,26 @@ class SiteGenerator {
33454
33486
  this.generateRSSFeed(),
33455
33487
  this.generateSitemap(),
33456
33488
  this.generateRobotsTxt(),
33489
+ this.generate404Page(),
33457
33490
  this.copyStaticAssets()
33458
33491
  ]);
33459
33492
  console.log("Site generation complete!");
33460
33493
  }
33494
+ async generate404Page() {
33495
+ try {
33496
+ const notFoundHtml = import_nunjucks.default.render("404.njk", {
33497
+ site: this.options.config
33498
+ });
33499
+ await Bun.write(path5.join(this.options.outputDir, "404.html"), notFoundHtml);
33500
+ console.log("Generated 404.html");
33501
+ } catch (error) {
33502
+ if (error instanceof Error && error.message.includes("404.njk")) {
33503
+ console.log("No 404.njk template found, skipping 404 page generation");
33504
+ } else {
33505
+ console.warn("Error generating 404 page:", error);
33506
+ }
33507
+ }
33508
+ }
33461
33509
  async generateYearArchives() {
33462
33510
  for (const [year, yearPosts] of Object.entries(this.site.postsByYear)) {
33463
33511
  const yearDir = path5.join(this.options.outputDir, year);