superdoc 0.30.0-next.3 → 0.30.0-next.4

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.
Files changed (64) hide show
  1. package/dist/chunks/{PdfViewer-YWtbYClb.es.js → PdfViewer-DyeZP8Nl.es.js} +2 -2
  2. package/dist/chunks/{PdfViewer-BIJ6vJck.cjs → PdfViewer-Sfmu-cdb.cjs} +2 -2
  3. package/dist/chunks/{eventemitter3-BvTILlBo.cjs → eventemitter3-DmHNHvFX.cjs} +1 -1
  4. package/dist/chunks/{eventemitter3-D4gv5QOO.es.js → eventemitter3-hYlnBzSA.es.js} +1 -1
  5. package/dist/chunks/{index-Bh45DPpT.es.js → index-BHHC2mqV.es.js} +6 -6
  6. package/dist/chunks/{index-Br4fKccD.cjs → index-BuNsREKD.cjs} +6 -6
  7. package/dist/chunks/{index-D9ggxe26-Dk1kDrfi.es.js → index-D6-7DIFN-BWm3AMeg.es.js} +1 -1
  8. package/dist/chunks/{index-D9ggxe26-BbC5rNDO.cjs → index-D6-7DIFN-Dhy8SBt-.cjs} +1 -1
  9. package/dist/chunks/{jszip-B0BPx_cv.cjs → jszip-BP2FTbpi.cjs} +7 -7
  10. package/dist/chunks/{jszip-Bhl-Iudl.es.js → jszip-jKrsZoMS.es.js} +7 -7
  11. package/dist/chunks/{super-editor.es-FtXwm03k.es.js → super-editor.es-Dg85Z65T.es.js} +850 -851
  12. package/dist/chunks/{super-editor.es-4me2z6up.cjs → super-editor.es-c6saBc8S.cjs} +850 -851
  13. package/dist/chunks/{vue-D1vcEBAQ.es.js → vue-CKmzTNVs.es.js} +2 -2
  14. package/dist/chunks/{vue-BQxRC6G7.cjs → vue-Cwv-wUpm.cjs} +2 -2
  15. package/dist/chunks/xml-js-BSDu25I7.cjs +3 -0
  16. package/dist/chunks/xml-js-CBrRls0f.es.js +2 -0
  17. package/dist/super-editor/ai-writer.es.js +2 -2
  18. package/dist/super-editor/chunks/{converter-SZ8xM5Dw.js → converter-OJmgERLD.js} +491 -497
  19. package/dist/super-editor/chunks/{docx-zipper-GNdwONoA.js → docx-zipper-DmTCMGub.js} +2 -2
  20. package/dist/super-editor/chunks/{editor-Bb8HzfEh.js → editor-BV5Ao3FS.js} +10 -5
  21. package/dist/super-editor/chunks/{index-D9ggxe26.js → index-D6-7DIFN.js} +1 -1
  22. package/dist/super-editor/chunks/{toolbar-DtCz6r-y.js → toolbar-s_KEL20H.js} +2 -2
  23. package/dist/super-editor/converter.es.js +1 -1
  24. package/dist/super-editor/docx-zipper.es.js +2 -2
  25. package/dist/super-editor/editor.es.js +3 -3
  26. package/dist/super-editor/file-zipper.es.js +1 -1
  27. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  28. package/dist/super-editor/super-editor.es.js +6 -6
  29. package/dist/super-editor/toolbar.es.js +2 -2
  30. package/dist/super-editor.cjs +2 -2
  31. package/dist/super-editor.es.js +2 -2
  32. package/dist/superdoc.cjs +2 -2
  33. package/dist/superdoc.es.js +2 -2
  34. package/dist/superdoc.umd.js +615 -616
  35. package/dist/superdoc.umd.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunks/xml-js-cO2Q8Wfu.cjs +0 -3
  38. package/dist/chunks/xml-js-jMPlIVKT.es.js +0 -2
  39. package/dist/images/altText_add.svg +0 -3
  40. package/dist/images/altText_disclaimer.svg +0 -3
  41. package/dist/images/altText_done.svg +0 -3
  42. package/dist/images/altText_spinner.svg +0 -30
  43. package/dist/images/altText_warning.svg +0 -3
  44. package/dist/images/annotation-check.svg +0 -11
  45. package/dist/images/annotation-comment.svg +0 -16
  46. package/dist/images/annotation-help.svg +0 -26
  47. package/dist/images/annotation-insert.svg +0 -10
  48. package/dist/images/annotation-key.svg +0 -11
  49. package/dist/images/annotation-newparagraph.svg +0 -11
  50. package/dist/images/annotation-noicon.svg +0 -7
  51. package/dist/images/annotation-note.svg +0 -42
  52. package/dist/images/annotation-paperclip.svg +0 -6
  53. package/dist/images/annotation-paragraph.svg +0 -16
  54. package/dist/images/annotation-pushpin.svg +0 -7
  55. package/dist/images/cursor-editorFreeHighlight.svg +0 -6
  56. package/dist/images/cursor-editorFreeText.svg +0 -3
  57. package/dist/images/cursor-editorInk.svg +0 -4
  58. package/dist/images/cursor-editorTextHighlight.svg +0 -8
  59. package/dist/images/editor-toolbar-delete.svg +0 -5
  60. package/dist/images/loading-icon.gif +0 -0
  61. package/dist/images/messageBar_closingButton.svg +0 -3
  62. package/dist/images/messageBar_warning.svg +0 -3
  63. package/dist/images/toolbarButton-editorHighlight.svg +0 -6
  64. package/dist/images/toolbarButton-menuArrow.svg +0 -3
@@ -111,18 +111,18 @@ ieee754.read = function(buffer2, offset, isLE, mLen, nBytes) {
111
111
  var eBias = eMax >> 1;
112
112
  var nBits = -7;
113
113
  var i = isLE ? nBytes - 1 : 0;
114
- var d = isLE ? -1 : 1;
114
+ var d2 = isLE ? -1 : 1;
115
115
  var s = buffer2[offset + i];
116
- i += d;
116
+ i += d2;
117
117
  e = s & (1 << -nBits) - 1;
118
118
  s >>= -nBits;
119
119
  nBits += eLen;
120
- for (; nBits > 0; e = e * 256 + buffer2[offset + i], i += d, nBits -= 8) {
120
+ for (; nBits > 0; e = e * 256 + buffer2[offset + i], i += d2, nBits -= 8) {
121
121
  }
122
122
  m2 = e & (1 << -nBits) - 1;
123
123
  e >>= -nBits;
124
124
  nBits += mLen;
125
- for (; nBits > 0; m2 = m2 * 256 + buffer2[offset + i], i += d, nBits -= 8) {
125
+ for (; nBits > 0; m2 = m2 * 256 + buffer2[offset + i], i += d2, nBits -= 8) {
126
126
  }
127
127
  if (e === 0) {
128
128
  e = 1 - eBias;
@@ -141,7 +141,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
141
141
  var eBias = eMax >> 1;
142
142
  var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
143
143
  var i = isLE ? 0 : nBytes - 1;
144
- var d = isLE ? 1 : -1;
144
+ var d2 = isLE ? 1 : -1;
145
145
  var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
146
146
  value = Math.abs(value);
147
147
  if (isNaN(value) || value === Infinity) {
@@ -173,13 +173,13 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
173
173
  e = 0;
174
174
  }
175
175
  }
176
- for (; mLen >= 8; buffer2[offset + i] = m2 & 255, i += d, m2 /= 256, mLen -= 8) {
176
+ for (; mLen >= 8; buffer2[offset + i] = m2 & 255, i += d2, m2 /= 256, mLen -= 8) {
177
177
  }
178
178
  e = e << mLen | m2;
179
179
  eLen += mLen;
180
- for (; eLen > 0; buffer2[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
180
+ for (; eLen > 0; buffer2[offset + i] = e & 255, i += d2, e /= 256, eLen -= 8) {
181
181
  }
182
- buffer2[offset + i - d] |= s * 128;
182
+ buffer2[offset + i - d2] |= s * 128;
183
183
  };
184
184
  /*!
185
185
  * The buffer module from node.js, for the browser.
@@ -187,15 +187,15 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
187
187
  * @author Feross Aboukhadijeh <https://feross.org>
188
188
  * @license MIT
189
189
  */
190
- (function(exports) {
190
+ (function(exports$1) {
191
191
  const base64 = base64Js;
192
192
  const ieee754$1 = ieee754;
193
193
  const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
194
- exports.Buffer = Buffer3;
195
- exports.SlowBuffer = SlowBuffer;
196
- exports.INSPECT_MAX_BYTES = 50;
194
+ exports$1.Buffer = Buffer3;
195
+ exports$1.SlowBuffer = SlowBuffer;
196
+ exports$1.INSPECT_MAX_BYTES = 50;
197
197
  const K_MAX_LENGTH = 2147483647;
198
- exports.kMaxLength = K_MAX_LENGTH;
198
+ exports$1.kMaxLength = K_MAX_LENGTH;
199
199
  const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
200
200
  Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
201
201
  if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
@@ -413,17 +413,17 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
413
413
  );
414
414
  }
415
415
  if (a === b2) return 0;
416
- let x2 = a.length;
416
+ let x = a.length;
417
417
  let y2 = b2.length;
418
- for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
418
+ for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
419
419
  if (a[i] !== b2[i]) {
420
- x2 = a[i];
420
+ x = a[i];
421
421
  y2 = b2[i];
422
422
  break;
423
423
  }
424
424
  }
425
- if (x2 < y2) return -1;
426
- if (y2 < x2) return 1;
425
+ if (x < y2) return -1;
426
+ if (y2 < x) return 1;
427
427
  return 0;
428
428
  };
429
429
  Buffer3.isEncoding = function isEncoding(encoding) {
@@ -626,7 +626,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
626
626
  };
627
627
  Buffer3.prototype.inspect = function inspect() {
628
628
  let str = "";
629
- const max2 = exports.INSPECT_MAX_BYTES;
629
+ const max2 = exports$1.INSPECT_MAX_BYTES;
630
630
  str = this.toString("hex", 0, max2).replace(/(.{2})/g, "$1 ").trim();
631
631
  if (this.length > max2) str += " ... ";
632
632
  return "<Buffer " + str + ">";
@@ -672,20 +672,20 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
672
672
  thisStart >>>= 0;
673
673
  thisEnd >>>= 0;
674
674
  if (this === target) return 0;
675
- let x2 = thisEnd - thisStart;
675
+ let x = thisEnd - thisStart;
676
676
  let y2 = end - start;
677
- const len = Math.min(x2, y2);
677
+ const len = Math.min(x, y2);
678
678
  const thisCopy = this.slice(thisStart, thisEnd);
679
679
  const targetCopy = target.slice(start, end);
680
680
  for (let i = 0; i < len; ++i) {
681
681
  if (thisCopy[i] !== targetCopy[i]) {
682
- x2 = thisCopy[i];
682
+ x = thisCopy[i];
683
683
  y2 = targetCopy[i];
684
684
  break;
685
685
  }
686
686
  }
687
- if (x2 < y2) return -1;
688
- if (y2 < x2) return 1;
687
+ if (x < y2) return -1;
688
+ if (y2 < x) return 1;
689
689
  return 0;
690
690
  };
691
691
  function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
@@ -1775,8 +1775,8 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
1775
1775
  })(buffer);
1776
1776
  const Buffer2 = buffer.Buffer;
1777
1777
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1778
- function getDefaultExportFromCjs$2(x2) {
1779
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1778
+ function getDefaultExportFromCjs$2(x) {
1779
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1780
1780
  }
1781
1781
  var sax = {};
1782
1782
  var events = { exports: {} };
@@ -1784,13 +1784,13 @@ var hasRequiredEvents;
1784
1784
  function requireEvents() {
1785
1785
  if (hasRequiredEvents) return events.exports;
1786
1786
  hasRequiredEvents = 1;
1787
- var R = typeof Reflect === "object" ? Reflect : null;
1788
- var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
1787
+ var R2 = typeof Reflect === "object" ? Reflect : null;
1788
+ var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
1789
1789
  return Function.prototype.apply.call(target, receiver, args);
1790
1790
  };
1791
1791
  var ReflectOwnKeys;
1792
- if (R && typeof R.ownKeys === "function") {
1793
- ReflectOwnKeys = R.ownKeys;
1792
+ if (R2 && typeof R2.ownKeys === "function") {
1793
+ ReflectOwnKeys = R2.ownKeys;
1794
1794
  } else if (Object.getOwnPropertySymbols) {
1795
1795
  ReflectOwnKeys = function ReflectOwnKeys2(target) {
1796
1796
  return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
@@ -2180,8 +2180,8 @@ function requireInherits_browser() {
2180
2180
  }
2181
2181
  return inherits_browser.exports;
2182
2182
  }
2183
- function getDefaultExportFromCjs$1(x2) {
2184
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2183
+ function getDefaultExportFromCjs$1(x) {
2184
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2185
2185
  }
2186
2186
  var browser$1 = { exports: {} };
2187
2187
  var process = browser$1.exports = {};
@@ -2355,8 +2355,8 @@ var hasRequiredDist;
2355
2355
  function requireDist() {
2356
2356
  if (hasRequiredDist) return dist;
2357
2357
  hasRequiredDist = 1;
2358
- (function(exports) {
2359
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2358
+ (function(exports$1) {
2359
+ Object.defineProperties(exports$1, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2360
2360
  var buffer2 = {};
2361
2361
  var base64Js2 = {};
2362
2362
  base64Js2.byteLength = byteLength2;
@@ -2460,18 +2460,18 @@ function requireDist() {
2460
2460
  var eBias = eMax >> 1;
2461
2461
  var nBits = -7;
2462
2462
  var i2 = isLE ? nBytes - 1 : 0;
2463
- var d = isLE ? -1 : 1;
2463
+ var d2 = isLE ? -1 : 1;
2464
2464
  var s = buffer3[offset + i2];
2465
- i2 += d;
2465
+ i2 += d2;
2466
2466
  e = s & (1 << -nBits) - 1;
2467
2467
  s >>= -nBits;
2468
2468
  nBits += eLen;
2469
- for (; nBits > 0; e = e * 256 + buffer3[offset + i2], i2 += d, nBits -= 8) {
2469
+ for (; nBits > 0; e = e * 256 + buffer3[offset + i2], i2 += d2, nBits -= 8) {
2470
2470
  }
2471
2471
  m2 = e & (1 << -nBits) - 1;
2472
2472
  e >>= -nBits;
2473
2473
  nBits += mLen;
2474
- for (; nBits > 0; m2 = m2 * 256 + buffer3[offset + i2], i2 += d, nBits -= 8) {
2474
+ for (; nBits > 0; m2 = m2 * 256 + buffer3[offset + i2], i2 += d2, nBits -= 8) {
2475
2475
  }
2476
2476
  if (e === 0) {
2477
2477
  e = 1 - eBias;
@@ -2490,7 +2490,7 @@ function requireDist() {
2490
2490
  var eBias = eMax >> 1;
2491
2491
  var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
2492
2492
  var i2 = isLE ? 0 : nBytes - 1;
2493
- var d = isLE ? 1 : -1;
2493
+ var d2 = isLE ? 1 : -1;
2494
2494
  var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
2495
2495
  value = Math.abs(value);
2496
2496
  if (isNaN(value) || value === Infinity) {
@@ -2522,13 +2522,13 @@ function requireDist() {
2522
2522
  e = 0;
2523
2523
  }
2524
2524
  }
2525
- for (; mLen >= 8; buffer3[offset + i2] = m2 & 255, i2 += d, m2 /= 256, mLen -= 8) {
2525
+ for (; mLen >= 8; buffer3[offset + i2] = m2 & 255, i2 += d2, m2 /= 256, mLen -= 8) {
2526
2526
  }
2527
2527
  e = e << mLen | m2;
2528
2528
  eLen += mLen;
2529
- for (; eLen > 0; buffer3[offset + i2] = e & 255, i2 += d, e /= 256, eLen -= 8) {
2529
+ for (; eLen > 0; buffer3[offset + i2] = e & 255, i2 += d2, e /= 256, eLen -= 8) {
2530
2530
  }
2531
- buffer3[offset + i2 - d] |= s * 128;
2531
+ buffer3[offset + i2 - d2] |= s * 128;
2532
2532
  };
2533
2533
  /*!
2534
2534
  * The buffer module from node.js, for the browser.
@@ -2536,15 +2536,15 @@ function requireDist() {
2536
2536
  * @author Feross Aboukhadijeh <https://feross.org>
2537
2537
  * @license MIT
2538
2538
  */
2539
- (function(exports2) {
2539
+ (function(exports$12) {
2540
2540
  const base64 = base64Js2;
2541
2541
  const ieee754$1 = ieee7542;
2542
2542
  const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
2543
- exports2.Buffer = Buffer4;
2544
- exports2.SlowBuffer = SlowBuffer;
2545
- exports2.INSPECT_MAX_BYTES = 50;
2543
+ exports$12.Buffer = Buffer4;
2544
+ exports$12.SlowBuffer = SlowBuffer;
2545
+ exports$12.INSPECT_MAX_BYTES = 50;
2546
2546
  const K_MAX_LENGTH = 2147483647;
2547
- exports2.kMaxLength = K_MAX_LENGTH;
2547
+ exports$12.kMaxLength = K_MAX_LENGTH;
2548
2548
  const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
2549
2549
  Buffer4.TYPED_ARRAY_SUPPORT = typedArraySupport();
2550
2550
  if (!Buffer4.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
@@ -2762,17 +2762,17 @@ function requireDist() {
2762
2762
  );
2763
2763
  }
2764
2764
  if (a === b2) return 0;
2765
- let x2 = a.length;
2765
+ let x = a.length;
2766
2766
  let y2 = b2.length;
2767
- for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
2767
+ for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
2768
2768
  if (a[i2] !== b2[i2]) {
2769
- x2 = a[i2];
2769
+ x = a[i2];
2770
2770
  y2 = b2[i2];
2771
2771
  break;
2772
2772
  }
2773
2773
  }
2774
- if (x2 < y2) return -1;
2775
- if (y2 < x2) return 1;
2774
+ if (x < y2) return -1;
2775
+ if (y2 < x) return 1;
2776
2776
  return 0;
2777
2777
  };
2778
2778
  Buffer4.isEncoding = function isEncoding(encoding) {
@@ -2975,7 +2975,7 @@ function requireDist() {
2975
2975
  };
2976
2976
  Buffer4.prototype.inspect = function inspect() {
2977
2977
  let str = "";
2978
- const max2 = exports2.INSPECT_MAX_BYTES;
2978
+ const max2 = exports$12.INSPECT_MAX_BYTES;
2979
2979
  str = this.toString("hex", 0, max2).replace(/(.{2})/g, "$1 ").trim();
2980
2980
  if (this.length > max2) str += " ... ";
2981
2981
  return "<Buffer " + str + ">";
@@ -3021,20 +3021,20 @@ function requireDist() {
3021
3021
  thisStart >>>= 0;
3022
3022
  thisEnd >>>= 0;
3023
3023
  if (this === target) return 0;
3024
- let x2 = thisEnd - thisStart;
3024
+ let x = thisEnd - thisStart;
3025
3025
  let y2 = end - start;
3026
- const len2 = Math.min(x2, y2);
3026
+ const len2 = Math.min(x, y2);
3027
3027
  const thisCopy = this.slice(thisStart, thisEnd);
3028
3028
  const targetCopy = target.slice(start, end);
3029
3029
  for (let i2 = 0; i2 < len2; ++i2) {
3030
3030
  if (thisCopy[i2] !== targetCopy[i2]) {
3031
- x2 = thisCopy[i2];
3031
+ x = thisCopy[i2];
3032
3032
  y2 = targetCopy[i2];
3033
3033
  break;
3034
3034
  }
3035
3035
  }
3036
- if (x2 < y2) return -1;
3037
- if (y2 < x2) return 1;
3036
+ if (x < y2) return -1;
3037
+ if (y2 < x) return 1;
3038
3038
  return 0;
3039
3039
  };
3040
3040
  function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
@@ -4123,24 +4123,24 @@ function requireDist() {
4123
4123
  }
4124
4124
  })(buffer2);
4125
4125
  const Buffer3 = buffer2.Buffer;
4126
- exports.Blob = buffer2.Blob;
4127
- exports.BlobOptions = buffer2.BlobOptions;
4128
- exports.Buffer = buffer2.Buffer;
4129
- exports.File = buffer2.File;
4130
- exports.FileOptions = buffer2.FileOptions;
4131
- exports.INSPECT_MAX_BYTES = buffer2.INSPECT_MAX_BYTES;
4132
- exports.SlowBuffer = buffer2.SlowBuffer;
4133
- exports.TranscodeEncoding = buffer2.TranscodeEncoding;
4134
- exports.atob = buffer2.atob;
4135
- exports.btoa = buffer2.btoa;
4136
- exports.constants = buffer2.constants;
4137
- exports.default = Buffer3;
4138
- exports.isAscii = buffer2.isAscii;
4139
- exports.isUtf8 = buffer2.isUtf8;
4140
- exports.kMaxLength = buffer2.kMaxLength;
4141
- exports.kStringMaxLength = buffer2.kStringMaxLength;
4142
- exports.resolveObjectURL = buffer2.resolveObjectURL;
4143
- exports.transcode = buffer2.transcode;
4126
+ exports$1.Blob = buffer2.Blob;
4127
+ exports$1.BlobOptions = buffer2.BlobOptions;
4128
+ exports$1.Buffer = buffer2.Buffer;
4129
+ exports$1.File = buffer2.File;
4130
+ exports$1.FileOptions = buffer2.FileOptions;
4131
+ exports$1.INSPECT_MAX_BYTES = buffer2.INSPECT_MAX_BYTES;
4132
+ exports$1.SlowBuffer = buffer2.SlowBuffer;
4133
+ exports$1.TranscodeEncoding = buffer2.TranscodeEncoding;
4134
+ exports$1.atob = buffer2.atob;
4135
+ exports$1.btoa = buffer2.btoa;
4136
+ exports$1.constants = buffer2.constants;
4137
+ exports$1.default = Buffer3;
4138
+ exports$1.isAscii = buffer2.isAscii;
4139
+ exports$1.isUtf8 = buffer2.isUtf8;
4140
+ exports$1.kMaxLength = buffer2.kMaxLength;
4141
+ exports$1.kStringMaxLength = buffer2.kStringMaxLength;
4142
+ exports$1.resolveObjectURL = buffer2.resolveObjectURL;
4143
+ exports$1.transcode = buffer2.transcode;
4144
4144
  })(dist);
4145
4145
  return dist;
4146
4146
  }
@@ -4606,15 +4606,15 @@ function requireGetProto() {
4606
4606
  var reflectGetProto = requireReflect_getPrototypeOf();
4607
4607
  var originalGetProto = requireObject_getPrototypeOf();
4608
4608
  var getDunderProto = /* @__PURE__ */ requireGet();
4609
- getProto = reflectGetProto ? function getProto2(O) {
4610
- return reflectGetProto(O);
4611
- } : originalGetProto ? function getProto2(O) {
4612
- if (!O || typeof O !== "object" && typeof O !== "function") {
4609
+ getProto = reflectGetProto ? function getProto2(O2) {
4610
+ return reflectGetProto(O2);
4611
+ } : originalGetProto ? function getProto2(O2) {
4612
+ if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
4613
4613
  throw new TypeError("getProto: not an object");
4614
4614
  }
4615
- return originalGetProto(O);
4616
- } : getDunderProto ? function getProto2(O) {
4617
- return getDunderProto(O);
4615
+ return originalGetProto(O2);
4616
+ } : getDunderProto ? function getProto2(O2) {
4617
+ return getDunderProto(O2);
4618
4618
  } : null;
4619
4619
  return getProto;
4620
4620
  }
@@ -5282,18 +5282,18 @@ function requireForEach() {
5282
5282
  }
5283
5283
  };
5284
5284
  var forEachObject = function forEachObject2(object, iterator, receiver) {
5285
- for (var k2 in object) {
5286
- if (hasOwnProperty.call(object, k2)) {
5285
+ for (var k in object) {
5286
+ if (hasOwnProperty.call(object, k)) {
5287
5287
  if (receiver == null) {
5288
- iterator(object[k2], k2, object);
5288
+ iterator(object[k], k, object);
5289
5289
  } else {
5290
- iterator.call(receiver, object[k2], k2, object);
5290
+ iterator.call(receiver, object[k], k, object);
5291
5291
  }
5292
5292
  }
5293
5293
  }
5294
5294
  };
5295
- function isArray(x2) {
5296
- return toStr.call(x2) === "[object Array]";
5295
+ function isArray(x) {
5296
+ return toStr.call(x) === "[object Array]";
5297
5297
  }
5298
5298
  forEach = function forEach2(list, iterator, thisArg) {
5299
5299
  if (!isCallable2(iterator)) {
@@ -5642,7 +5642,7 @@ var hasRequiredTypes;
5642
5642
  function requireTypes() {
5643
5643
  if (hasRequiredTypes) return types;
5644
5644
  hasRequiredTypes = 1;
5645
- (function(exports) {
5645
+ (function(exports$1) {
5646
5646
  var isArgumentsObject = /* @__PURE__ */ requireIsArguments();
5647
5647
  var isGeneratorFunction2 = requireIsGeneratorFunction();
5648
5648
  var whichTypedArray2 = /* @__PURE__ */ requireWhichTypedArray();
@@ -5673,64 +5673,64 @@ function requireTypes() {
5673
5673
  return false;
5674
5674
  }
5675
5675
  }
5676
- exports.isArgumentsObject = isArgumentsObject;
5677
- exports.isGeneratorFunction = isGeneratorFunction2;
5678
- exports.isTypedArray = isTypedArray2;
5676
+ exports$1.isArgumentsObject = isArgumentsObject;
5677
+ exports$1.isGeneratorFunction = isGeneratorFunction2;
5678
+ exports$1.isTypedArray = isTypedArray2;
5679
5679
  function isPromise(input) {
5680
5680
  return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
5681
5681
  }
5682
- exports.isPromise = isPromise;
5682
+ exports$1.isPromise = isPromise;
5683
5683
  function isArrayBufferView(value) {
5684
5684
  if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
5685
5685
  return ArrayBuffer.isView(value);
5686
5686
  }
5687
5687
  return isTypedArray2(value) || isDataView(value);
5688
5688
  }
5689
- exports.isArrayBufferView = isArrayBufferView;
5689
+ exports$1.isArrayBufferView = isArrayBufferView;
5690
5690
  function isUint8Array(value) {
5691
5691
  return whichTypedArray2(value) === "Uint8Array";
5692
5692
  }
5693
- exports.isUint8Array = isUint8Array;
5693
+ exports$1.isUint8Array = isUint8Array;
5694
5694
  function isUint8ClampedArray(value) {
5695
5695
  return whichTypedArray2(value) === "Uint8ClampedArray";
5696
5696
  }
5697
- exports.isUint8ClampedArray = isUint8ClampedArray;
5697
+ exports$1.isUint8ClampedArray = isUint8ClampedArray;
5698
5698
  function isUint16Array(value) {
5699
5699
  return whichTypedArray2(value) === "Uint16Array";
5700
5700
  }
5701
- exports.isUint16Array = isUint16Array;
5701
+ exports$1.isUint16Array = isUint16Array;
5702
5702
  function isUint32Array(value) {
5703
5703
  return whichTypedArray2(value) === "Uint32Array";
5704
5704
  }
5705
- exports.isUint32Array = isUint32Array;
5705
+ exports$1.isUint32Array = isUint32Array;
5706
5706
  function isInt8Array(value) {
5707
5707
  return whichTypedArray2(value) === "Int8Array";
5708
5708
  }
5709
- exports.isInt8Array = isInt8Array;
5709
+ exports$1.isInt8Array = isInt8Array;
5710
5710
  function isInt16Array(value) {
5711
5711
  return whichTypedArray2(value) === "Int16Array";
5712
5712
  }
5713
- exports.isInt16Array = isInt16Array;
5713
+ exports$1.isInt16Array = isInt16Array;
5714
5714
  function isInt32Array(value) {
5715
5715
  return whichTypedArray2(value) === "Int32Array";
5716
5716
  }
5717
- exports.isInt32Array = isInt32Array;
5717
+ exports$1.isInt32Array = isInt32Array;
5718
5718
  function isFloat32Array(value) {
5719
5719
  return whichTypedArray2(value) === "Float32Array";
5720
5720
  }
5721
- exports.isFloat32Array = isFloat32Array;
5721
+ exports$1.isFloat32Array = isFloat32Array;
5722
5722
  function isFloat64Array(value) {
5723
5723
  return whichTypedArray2(value) === "Float64Array";
5724
5724
  }
5725
- exports.isFloat64Array = isFloat64Array;
5725
+ exports$1.isFloat64Array = isFloat64Array;
5726
5726
  function isBigInt64Array(value) {
5727
5727
  return whichTypedArray2(value) === "BigInt64Array";
5728
5728
  }
5729
- exports.isBigInt64Array = isBigInt64Array;
5729
+ exports$1.isBigInt64Array = isBigInt64Array;
5730
5730
  function isBigUint64Array(value) {
5731
5731
  return whichTypedArray2(value) === "BigUint64Array";
5732
5732
  }
5733
- exports.isBigUint64Array = isBigUint64Array;
5733
+ exports$1.isBigUint64Array = isBigUint64Array;
5734
5734
  function isMapToString(value) {
5735
5735
  return ObjectToString(value) === "[object Map]";
5736
5736
  }
@@ -5741,7 +5741,7 @@ function requireTypes() {
5741
5741
  }
5742
5742
  return isMapToString.working ? isMapToString(value) : value instanceof Map;
5743
5743
  }
5744
- exports.isMap = isMap;
5744
+ exports$1.isMap = isMap;
5745
5745
  function isSetToString(value) {
5746
5746
  return ObjectToString(value) === "[object Set]";
5747
5747
  }
@@ -5752,7 +5752,7 @@ function requireTypes() {
5752
5752
  }
5753
5753
  return isSetToString.working ? isSetToString(value) : value instanceof Set;
5754
5754
  }
5755
- exports.isSet = isSet;
5755
+ exports$1.isSet = isSet;
5756
5756
  function isWeakMapToString(value) {
5757
5757
  return ObjectToString(value) === "[object WeakMap]";
5758
5758
  }
@@ -5763,7 +5763,7 @@ function requireTypes() {
5763
5763
  }
5764
5764
  return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
5765
5765
  }
5766
- exports.isWeakMap = isWeakMap;
5766
+ exports$1.isWeakMap = isWeakMap;
5767
5767
  function isWeakSetToString(value) {
5768
5768
  return ObjectToString(value) === "[object WeakSet]";
5769
5769
  }
@@ -5771,7 +5771,7 @@ function requireTypes() {
5771
5771
  function isWeakSet(value) {
5772
5772
  return isWeakSetToString(value);
5773
5773
  }
5774
- exports.isWeakSet = isWeakSet;
5774
+ exports$1.isWeakSet = isWeakSet;
5775
5775
  function isArrayBufferToString(value) {
5776
5776
  return ObjectToString(value) === "[object ArrayBuffer]";
5777
5777
  }
@@ -5782,7 +5782,7 @@ function requireTypes() {
5782
5782
  }
5783
5783
  return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
5784
5784
  }
5785
- exports.isArrayBuffer = isArrayBuffer;
5785
+ exports$1.isArrayBuffer = isArrayBuffer;
5786
5786
  function isDataViewToString(value) {
5787
5787
  return ObjectToString(value) === "[object DataView]";
5788
5788
  }
@@ -5793,7 +5793,7 @@ function requireTypes() {
5793
5793
  }
5794
5794
  return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
5795
5795
  }
5796
- exports.isDataView = isDataView;
5796
+ exports$1.isDataView = isDataView;
5797
5797
  var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
5798
5798
  function isSharedArrayBufferToString(value) {
5799
5799
  return ObjectToString(value) === "[object SharedArrayBuffer]";
@@ -5807,57 +5807,57 @@ function requireTypes() {
5807
5807
  }
5808
5808
  return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
5809
5809
  }
5810
- exports.isSharedArrayBuffer = isSharedArrayBuffer;
5810
+ exports$1.isSharedArrayBuffer = isSharedArrayBuffer;
5811
5811
  function isAsyncFunction(value) {
5812
5812
  return ObjectToString(value) === "[object AsyncFunction]";
5813
5813
  }
5814
- exports.isAsyncFunction = isAsyncFunction;
5814
+ exports$1.isAsyncFunction = isAsyncFunction;
5815
5815
  function isMapIterator(value) {
5816
5816
  return ObjectToString(value) === "[object Map Iterator]";
5817
5817
  }
5818
- exports.isMapIterator = isMapIterator;
5818
+ exports$1.isMapIterator = isMapIterator;
5819
5819
  function isSetIterator(value) {
5820
5820
  return ObjectToString(value) === "[object Set Iterator]";
5821
5821
  }
5822
- exports.isSetIterator = isSetIterator;
5822
+ exports$1.isSetIterator = isSetIterator;
5823
5823
  function isGeneratorObject(value) {
5824
5824
  return ObjectToString(value) === "[object Generator]";
5825
5825
  }
5826
- exports.isGeneratorObject = isGeneratorObject;
5826
+ exports$1.isGeneratorObject = isGeneratorObject;
5827
5827
  function isWebAssemblyCompiledModule(value) {
5828
5828
  return ObjectToString(value) === "[object WebAssembly.Module]";
5829
5829
  }
5830
- exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
5830
+ exports$1.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
5831
5831
  function isNumberObject(value) {
5832
5832
  return checkBoxedPrimitive(value, numberValue);
5833
5833
  }
5834
- exports.isNumberObject = isNumberObject;
5834
+ exports$1.isNumberObject = isNumberObject;
5835
5835
  function isStringObject(value) {
5836
5836
  return checkBoxedPrimitive(value, stringValue);
5837
5837
  }
5838
- exports.isStringObject = isStringObject;
5838
+ exports$1.isStringObject = isStringObject;
5839
5839
  function isBooleanObject(value) {
5840
5840
  return checkBoxedPrimitive(value, booleanValue);
5841
5841
  }
5842
- exports.isBooleanObject = isBooleanObject;
5842
+ exports$1.isBooleanObject = isBooleanObject;
5843
5843
  function isBigIntObject(value) {
5844
5844
  return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
5845
5845
  }
5846
- exports.isBigIntObject = isBigIntObject;
5846
+ exports$1.isBigIntObject = isBigIntObject;
5847
5847
  function isSymbolObject(value) {
5848
5848
  return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
5849
5849
  }
5850
- exports.isSymbolObject = isSymbolObject;
5850
+ exports$1.isSymbolObject = isSymbolObject;
5851
5851
  function isBoxedPrimitive(value) {
5852
5852
  return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
5853
5853
  }
5854
- exports.isBoxedPrimitive = isBoxedPrimitive;
5854
+ exports$1.isBoxedPrimitive = isBoxedPrimitive;
5855
5855
  function isAnyArrayBuffer(value) {
5856
5856
  return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
5857
5857
  }
5858
- exports.isAnyArrayBuffer = isAnyArrayBuffer;
5858
+ exports$1.isAnyArrayBuffer = isAnyArrayBuffer;
5859
5859
  ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(method) {
5860
- Object.defineProperty(exports, method, {
5860
+ Object.defineProperty(exports$1, method, {
5861
5861
  enumerable: false,
5862
5862
  value: function() {
5863
5863
  throw new Error(method + " is not supported in userland");
@@ -5881,7 +5881,7 @@ var hasRequiredUtil;
5881
5881
  function requireUtil() {
5882
5882
  if (hasRequiredUtil) return util;
5883
5883
  hasRequiredUtil = 1;
5884
- (function(exports) {
5884
+ (function(exports$1) {
5885
5885
  var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {
5886
5886
  var keys2 = Object.keys(obj);
5887
5887
  var descriptors = {};
@@ -5891,7 +5891,7 @@ function requireUtil() {
5891
5891
  return descriptors;
5892
5892
  };
5893
5893
  var formatRegExp = /%[sdj%]/g;
5894
- exports.format = function(f) {
5894
+ exports$1.format = function(f) {
5895
5895
  if (!isString(f)) {
5896
5896
  var objects = [];
5897
5897
  for (var i = 0; i < arguments.length; i++) {
@@ -5902,10 +5902,10 @@ function requireUtil() {
5902
5902
  var i = 1;
5903
5903
  var args = arguments;
5904
5904
  var len = args.length;
5905
- var str = String(f).replace(formatRegExp, function(x3) {
5906
- if (x3 === "%%") return "%";
5907
- if (i >= len) return x3;
5908
- switch (x3) {
5905
+ var str = String(f).replace(formatRegExp, function(x2) {
5906
+ if (x2 === "%%") return "%";
5907
+ if (i >= len) return x2;
5908
+ switch (x2) {
5909
5909
  case "%s":
5910
5910
  return String(args[i++]);
5911
5911
  case "%d":
@@ -5917,25 +5917,25 @@ function requireUtil() {
5917
5917
  return "[Circular]";
5918
5918
  }
5919
5919
  default:
5920
- return x3;
5920
+ return x2;
5921
5921
  }
5922
5922
  });
5923
- for (var x2 = args[i]; i < len; x2 = args[++i]) {
5924
- if (isNull(x2) || !isObject(x2)) {
5925
- str += " " + x2;
5923
+ for (var x = args[i]; i < len; x = args[++i]) {
5924
+ if (isNull(x) || !isObject(x)) {
5925
+ str += " " + x;
5926
5926
  } else {
5927
- str += " " + inspect(x2);
5927
+ str += " " + inspect(x);
5928
5928
  }
5929
5929
  }
5930
5930
  return str;
5931
5931
  };
5932
- exports.deprecate = function(fn, msg) {
5932
+ exports$1.deprecate = function(fn, msg) {
5933
5933
  if (typeof process$1 !== "undefined" && process$1.noDeprecation === true) {
5934
5934
  return fn;
5935
5935
  }
5936
5936
  if (typeof process$1 === "undefined") {
5937
5937
  return function() {
5938
- return exports.deprecate(fn, msg).apply(this, arguments);
5938
+ return exports$1.deprecate(fn, msg).apply(this, arguments);
5939
5939
  };
5940
5940
  }
5941
5941
  var warned = false;
@@ -5961,13 +5961,13 @@ function requireUtil() {
5961
5961
  debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase();
5962
5962
  debugEnvRegex = new RegExp("^" + debugEnv + "$", "i");
5963
5963
  }
5964
- exports.debuglog = function(set) {
5964
+ exports$1.debuglog = function(set) {
5965
5965
  set = set.toUpperCase();
5966
5966
  if (!debugs[set]) {
5967
5967
  if (debugEnvRegex.test(set)) {
5968
5968
  var pid = process$1.pid;
5969
5969
  debugs[set] = function() {
5970
- var msg = exports.format.apply(exports, arguments);
5970
+ var msg = exports$1.format.apply(exports$1, arguments);
5971
5971
  console.error("%s %d: %s", set, pid, msg);
5972
5972
  };
5973
5973
  } else {
@@ -5987,7 +5987,7 @@ function requireUtil() {
5987
5987
  if (isBoolean(opts)) {
5988
5988
  ctx.showHidden = opts;
5989
5989
  } else if (opts) {
5990
- exports._extend(ctx, opts);
5990
+ exports$1._extend(ctx, opts);
5991
5991
  }
5992
5992
  if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
5993
5993
  if (isUndefined(ctx.depth)) ctx.depth = 2;
@@ -5996,7 +5996,7 @@ function requireUtil() {
5996
5996
  if (ctx.colors) ctx.stylize = stylizeWithColor;
5997
5997
  return formatValue(ctx, obj, ctx.depth);
5998
5998
  }
5999
- exports.inspect = inspect;
5999
+ exports$1.inspect = inspect;
6000
6000
  inspect.colors = {
6001
6001
  "bold": [1, 22],
6002
6002
  "italic": [3, 23],
@@ -6043,7 +6043,7 @@ function requireUtil() {
6043
6043
  }
6044
6044
  function formatValue(ctx, value, recurseTimes) {
6045
6045
  if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special
6046
- value.inspect !== exports.inspect && // Also filter out any prototype objects using the circular check.
6046
+ value.inspect !== exports$1.inspect && // Also filter out any prototype objects using the circular check.
6047
6047
  !(value.constructor && value.constructor.prototype === value)) {
6048
6048
  var ret = value.inspect(recurseTimes, ctx);
6049
6049
  if (!isString(ret)) {
@@ -6137,7 +6137,7 @@ function requireUtil() {
6137
6137
  }
6138
6138
  function formatArray(ctx, value, recurseTimes, visibleKeys, keys2) {
6139
6139
  var output = [];
6140
- for (var i = 0, l = value.length; i < l; ++i) {
6140
+ for (var i = 0, l3 = value.length; i < l3; ++i) {
6141
6141
  if (hasOwnProperty(value, String(i))) {
6142
6142
  output.push(formatProperty(
6143
6143
  ctx,
@@ -6229,68 +6229,68 @@ function requireUtil() {
6229
6229
  }
6230
6230
  return braces[0] + base + " " + output.join(", ") + " " + braces[1];
6231
6231
  }
6232
- exports.types = requireTypes();
6232
+ exports$1.types = requireTypes();
6233
6233
  function isArray(ar) {
6234
6234
  return Array.isArray(ar);
6235
6235
  }
6236
- exports.isArray = isArray;
6236
+ exports$1.isArray = isArray;
6237
6237
  function isBoolean(arg) {
6238
6238
  return typeof arg === "boolean";
6239
6239
  }
6240
- exports.isBoolean = isBoolean;
6240
+ exports$1.isBoolean = isBoolean;
6241
6241
  function isNull(arg) {
6242
6242
  return arg === null;
6243
6243
  }
6244
- exports.isNull = isNull;
6244
+ exports$1.isNull = isNull;
6245
6245
  function isNullOrUndefined(arg) {
6246
6246
  return arg == null;
6247
6247
  }
6248
- exports.isNullOrUndefined = isNullOrUndefined;
6248
+ exports$1.isNullOrUndefined = isNullOrUndefined;
6249
6249
  function isNumber(arg) {
6250
6250
  return typeof arg === "number";
6251
6251
  }
6252
- exports.isNumber = isNumber;
6252
+ exports$1.isNumber = isNumber;
6253
6253
  function isString(arg) {
6254
6254
  return typeof arg === "string";
6255
6255
  }
6256
- exports.isString = isString;
6256
+ exports$1.isString = isString;
6257
6257
  function isSymbol(arg) {
6258
6258
  return typeof arg === "symbol";
6259
6259
  }
6260
- exports.isSymbol = isSymbol;
6260
+ exports$1.isSymbol = isSymbol;
6261
6261
  function isUndefined(arg) {
6262
6262
  return arg === void 0;
6263
6263
  }
6264
- exports.isUndefined = isUndefined;
6264
+ exports$1.isUndefined = isUndefined;
6265
6265
  function isRegExp2(re2) {
6266
6266
  return isObject(re2) && objectToString(re2) === "[object RegExp]";
6267
6267
  }
6268
- exports.isRegExp = isRegExp2;
6269
- exports.types.isRegExp = isRegExp2;
6268
+ exports$1.isRegExp = isRegExp2;
6269
+ exports$1.types.isRegExp = isRegExp2;
6270
6270
  function isObject(arg) {
6271
6271
  return typeof arg === "object" && arg !== null;
6272
6272
  }
6273
- exports.isObject = isObject;
6274
- function isDate(d) {
6275
- return isObject(d) && objectToString(d) === "[object Date]";
6273
+ exports$1.isObject = isObject;
6274
+ function isDate(d2) {
6275
+ return isObject(d2) && objectToString(d2) === "[object Date]";
6276
6276
  }
6277
- exports.isDate = isDate;
6278
- exports.types.isDate = isDate;
6277
+ exports$1.isDate = isDate;
6278
+ exports$1.types.isDate = isDate;
6279
6279
  function isError(e) {
6280
6280
  return isObject(e) && (objectToString(e) === "[object Error]" || e instanceof Error);
6281
6281
  }
6282
- exports.isError = isError;
6283
- exports.types.isNativeError = isError;
6282
+ exports$1.isError = isError;
6283
+ exports$1.types.isNativeError = isError;
6284
6284
  function isFunction(arg) {
6285
6285
  return typeof arg === "function";
6286
6286
  }
6287
- exports.isFunction = isFunction;
6287
+ exports$1.isFunction = isFunction;
6288
6288
  function isPrimitive(arg) {
6289
6289
  return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
6290
6290
  typeof arg === "undefined";
6291
6291
  }
6292
- exports.isPrimitive = isPrimitive;
6293
- exports.isBuffer = requireIsBufferBrowser();
6292
+ exports$1.isPrimitive = isPrimitive;
6293
+ exports$1.isBuffer = requireIsBufferBrowser();
6294
6294
  function objectToString(o) {
6295
6295
  return Object.prototype.toString.call(o);
6296
6296
  }
@@ -6312,19 +6312,19 @@ function requireUtil() {
6312
6312
  "Dec"
6313
6313
  ];
6314
6314
  function timestamp() {
6315
- var d = /* @__PURE__ */ new Date();
6315
+ var d2 = /* @__PURE__ */ new Date();
6316
6316
  var time = [
6317
- pad(d.getHours()),
6318
- pad(d.getMinutes()),
6319
- pad(d.getSeconds())
6317
+ pad(d2.getHours()),
6318
+ pad(d2.getMinutes()),
6319
+ pad(d2.getSeconds())
6320
6320
  ].join(":");
6321
- return [d.getDate(), months[d.getMonth()], time].join(" ");
6321
+ return [d2.getDate(), months[d2.getMonth()], time].join(" ");
6322
6322
  }
6323
- exports.log = function() {
6324
- console.log("%s - %s", timestamp(), exports.format.apply(exports, arguments));
6323
+ exports$1.log = function() {
6324
+ console.log("%s - %s", timestamp(), exports$1.format.apply(exports$1, arguments));
6325
6325
  };
6326
- exports.inherits = requireInherits_browser();
6327
- exports._extend = function(origin, add) {
6326
+ exports$1.inherits = requireInherits_browser();
6327
+ exports$1._extend = function(origin, add) {
6328
6328
  if (!add || !isObject(add)) return origin;
6329
6329
  var keys2 = Object.keys(add);
6330
6330
  var i = keys2.length;
@@ -6337,7 +6337,7 @@ function requireUtil() {
6337
6337
  return Object.prototype.hasOwnProperty.call(obj, prop);
6338
6338
  }
6339
6339
  var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
6340
- exports.promisify = function promisify(original) {
6340
+ exports$1.promisify = function promisify(original) {
6341
6341
  if (typeof original !== "function")
6342
6342
  throw new TypeError('The "original" argument must be of type Function');
6343
6343
  if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
@@ -6389,7 +6389,7 @@ function requireUtil() {
6389
6389
  getOwnPropertyDescriptors(original)
6390
6390
  );
6391
6391
  };
6392
- exports.promisify.custom = kCustomPromisifiedSymbol;
6392
+ exports$1.promisify.custom = kCustomPromisifiedSymbol;
6393
6393
  function callbackifyOnRejected(reason, cb) {
6394
6394
  if (!reason) {
6395
6395
  var newReason = new Error("Promise was rejected with a falsy value");
@@ -6431,7 +6431,7 @@ function requireUtil() {
6431
6431
  );
6432
6432
  return callbackified;
6433
6433
  }
6434
- exports.callbackify = callbackify;
6434
+ exports$1.callbackify = callbackify;
6435
6435
  })(util);
6436
6436
  return util;
6437
6437
  }
@@ -7236,8 +7236,8 @@ function require_stream_writable() {
7236
7236
  state2.bufferProcessing = true;
7237
7237
  var entry = state2.bufferedRequest;
7238
7238
  if (stream._writev && entry && entry.next) {
7239
- var l = state2.bufferedRequestCount;
7240
- var buffer2 = new Array(l);
7239
+ var l3 = state2.bufferedRequestCount;
7240
+ var buffer2 = new Array(l3);
7241
7241
  var holder = state2.corkedRequestsFree;
7242
7242
  holder.entry = entry;
7243
7243
  var count = 0;
@@ -7493,7 +7493,7 @@ var hasRequiredSafeBuffer;
7493
7493
  function requireSafeBuffer() {
7494
7494
  if (hasRequiredSafeBuffer) return safeBuffer.exports;
7495
7495
  hasRequiredSafeBuffer = 1;
7496
- (function(module, exports) {
7496
+ (function(module, exports$1) {
7497
7497
  var buffer2 = requireDist();
7498
7498
  var Buffer3 = buffer2.Buffer;
7499
7499
  function copyProps(src, dst) {
@@ -7504,8 +7504,8 @@ function requireSafeBuffer() {
7504
7504
  if (Buffer3.from && Buffer3.alloc && Buffer3.allocUnsafe && Buffer3.allocUnsafeSlow) {
7505
7505
  module.exports = buffer2;
7506
7506
  } else {
7507
- copyProps(buffer2, exports);
7508
- exports.Buffer = SafeBuffer;
7507
+ copyProps(buffer2, exports$1);
7508
+ exports$1.Buffer = SafeBuffer;
7509
7509
  }
7510
7510
  function SafeBuffer(arg, encodingOrOffset, length) {
7511
7511
  return Buffer3(arg, encodingOrOffset, length);
@@ -8787,9 +8787,9 @@ function require_stream_readable() {
8787
8787
  return from(Readable, iterable, opts);
8788
8788
  };
8789
8789
  }
8790
- function indexOf(xs, x2) {
8791
- for (var i = 0, l = xs.length; i < l; i++) {
8792
- if (xs[i] === x2) return i;
8790
+ function indexOf(xs, x) {
8791
+ for (var i = 0, l3 = xs.length; i < l3; i++) {
8792
+ if (xs[i] === x) return i;
8793
8793
  }
8794
8794
  return -1;
8795
8795
  }
@@ -9074,7 +9074,7 @@ var hasRequiredSax;
9074
9074
  function requireSax() {
9075
9075
  if (hasRequiredSax) return sax;
9076
9076
  hasRequiredSax = 1;
9077
- (function(exports) {
9077
+ (function(exports$1) {
9078
9078
  (function(sax2) {
9079
9079
  sax2.parser = function(strict, opt) {
9080
9080
  return new SAXParser(strict, opt);
@@ -9168,7 +9168,7 @@ function requireSax() {
9168
9168
  function checkBufferLength(parser) {
9169
9169
  var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
9170
9170
  var maxActual = 0;
9171
- for (var i = 0, l = buffers.length; i < l; i++) {
9171
+ for (var i = 0, l3 = buffers.length; i < l3; i++) {
9172
9172
  var len = parser[buffers[i]].length;
9173
9173
  if (len > maxAllowed) {
9174
9174
  switch (buffers[i]) {
@@ -9193,7 +9193,7 @@ function requireSax() {
9193
9193
  parser.bufferCheckPosition = m2 + parser.position;
9194
9194
  }
9195
9195
  function clearBuffers(parser) {
9196
- for (var i = 0, l = buffers.length; i < l; i++) {
9196
+ for (var i = 0, l3 = buffers.length; i < l3; i++) {
9197
9197
  parser[buffers[i]] = "";
9198
9198
  }
9199
9199
  }
@@ -9247,27 +9247,27 @@ function requireSax() {
9247
9247
  this._parser = new SAXParser(strict, opt);
9248
9248
  this.writable = true;
9249
9249
  this.readable = true;
9250
- var me2 = this;
9250
+ var me = this;
9251
9251
  this._parser.onend = function() {
9252
- me2.emit("end");
9252
+ me.emit("end");
9253
9253
  };
9254
9254
  this._parser.onerror = function(er) {
9255
- me2.emit("error", er);
9256
- me2._parser.error = null;
9255
+ me.emit("error", er);
9256
+ me._parser.error = null;
9257
9257
  };
9258
9258
  this._decoder = null;
9259
9259
  streamWraps.forEach(function(ev) {
9260
- Object.defineProperty(me2, "on" + ev, {
9260
+ Object.defineProperty(me, "on" + ev, {
9261
9261
  get: function() {
9262
- return me2._parser["on" + ev];
9262
+ return me._parser["on" + ev];
9263
9263
  },
9264
9264
  set: function(h2) {
9265
9265
  if (!h2) {
9266
- me2.removeAllListeners(ev);
9267
- me2._parser["on" + ev] = h2;
9266
+ me.removeAllListeners(ev);
9267
+ me._parser["on" + ev] = h2;
9268
9268
  return h2;
9269
9269
  }
9270
- me2.on(ev, h2);
9270
+ me.on(ev, h2);
9271
9271
  },
9272
9272
  enumerable: true,
9273
9273
  configurable: false
@@ -9299,15 +9299,15 @@ function requireSax() {
9299
9299
  return true;
9300
9300
  };
9301
9301
  SAXStream.prototype.on = function(ev, handler2) {
9302
- var me2 = this;
9303
- if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9304
- me2._parser["on" + ev] = function() {
9302
+ var me = this;
9303
+ if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9304
+ me._parser["on" + ev] = function() {
9305
9305
  var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
9306
9306
  args.splice(0, 0, ev);
9307
- me2.emit.apply(me2, args);
9307
+ me.emit.apply(me, args);
9308
9308
  };
9309
9309
  }
9310
- return Stream.prototype.on.call(me2, ev, handler2);
9310
+ return Stream.prototype.on.call(me, ev, handler2);
9311
9311
  };
9312
9312
  var CDATA = "[CDATA[";
9313
9313
  var DOCTYPE = "DOCTYPE";
@@ -9813,7 +9813,7 @@ function requireSax() {
9813
9813
  });
9814
9814
  });
9815
9815
  }
9816
- for (var i = 0, l = parser.attribList.length; i < l; i++) {
9816
+ for (var i = 0, l3 = parser.attribList.length; i < l3; i++) {
9817
9817
  var nv = parser.attribList[i];
9818
9818
  var name = nv[0];
9819
9819
  var value = nv[1];
@@ -9899,9 +9899,9 @@ function requireSax() {
9899
9899
  var tag = parser.tag = parser.tags.pop();
9900
9900
  parser.tagName = parser.tag.name;
9901
9901
  emitNode(parser, "onclosetag", parser.tagName);
9902
- var x2 = {};
9902
+ var x = {};
9903
9903
  for (var i in tag.ns) {
9904
- x2[i] = tag.ns[i];
9904
+ x[i] = tag.ns[i];
9905
9905
  }
9906
9906
  var parent = parser.tags[parser.tags.length - 1] || parser;
9907
9907
  if (parser.opt.xmlns && tag.ns !== parent.ns) {
@@ -10552,7 +10552,7 @@ function requireSax() {
10552
10552
  }
10553
10553
  })();
10554
10554
  }
10555
- })(exports);
10555
+ })(exports$1);
10556
10556
  })(sax);
10557
10557
  return sax;
10558
10558
  }
@@ -10958,8 +10958,8 @@ function requireXml2json() {
10958
10958
  js = xml2js2(xml, options);
10959
10959
  parentKey = "compact" in options && options.compact ? "_parent" : "parent";
10960
10960
  if ("addParent" in options && options.addParent) {
10961
- json = JSON.stringify(js, function(k2, v2) {
10962
- return k2 === parentKey ? "_" : v2;
10961
+ json = JSON.stringify(js, function(k, v2) {
10962
+ return k === parentKey ? "_" : v2;
10963
10963
  }, options.spaces);
10964
10964
  } else {
10965
10965
  json = JSON.stringify(js, null, options.spaces);
@@ -11381,8 +11381,8 @@ function v4(options, buf, offset) {
11381
11381
  rnds[8] = rnds[8] & 63 | 128;
11382
11382
  return unsafeStringify(rnds);
11383
11383
  }
11384
- function getDefaultExportFromCjs(x2) {
11385
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11384
+ function getDefaultExportFromCjs(x) {
11385
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11386
11386
  }
11387
11387
  const CRC_TABLE = new Int32Array([
11388
11388
  0,
@@ -12755,9 +12755,9 @@ class ResolvedPos {
12755
12755
  blockRange(other = this, pred) {
12756
12756
  if (other.pos < this.pos)
12757
12757
  return other.blockRange(this);
12758
- for (let d = this.depth - (this.parent.inlineContent || this.pos == other.pos ? 1 : 0); d >= 0; d--)
12759
- if (other.pos <= this.end(d) && (!pred || pred(this.node(d))))
12760
- return new NodeRange(this, other, d);
12758
+ for (let d2 = this.depth - (this.parent.inlineContent || this.pos == other.pos ? 1 : 0); d2 >= 0; d2--)
12759
+ if (other.pos <= this.end(d2) && (!pred || pred(this.node(d2))))
12760
+ return new NodeRange(this, other, d2);
12761
12761
  return null;
12762
12762
  }
12763
12763
  /**
@@ -14776,8 +14776,8 @@ class ParseContext {
14776
14776
  textblockFromContext() {
14777
14777
  let $context = this.options.context;
14778
14778
  if ($context)
14779
- for (let d = $context.depth; d >= 0; d--) {
14780
- let deflt = $context.node(d).contentMatchAt($context.indexAfter(d)).defaultType;
14779
+ for (let d2 = $context.depth; d2 >= 0; d2--) {
14780
+ let deflt = $context.node(d2).contentMatchAt($context.indexAfter(d2)).defaultType;
14781
14781
  if (deflt && deflt.isTextblock && deflt.defaultAttrs)
14782
14782
  return deflt;
14783
14783
  }
@@ -15206,8 +15206,8 @@ function polygonToObj(polygonNode) {
15206
15206
  const points = [];
15207
15207
  polygonNode.elements.forEach((element) => {
15208
15208
  if (["wp:start", "wp:lineTo"].includes(element.name)) {
15209
- const { x: x2, y: y2 } = element.attributes;
15210
- points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
15209
+ const { x, y: y2 } = element.attributes;
15210
+ points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
15211
15211
  }
15212
15212
  });
15213
15213
  if (points.length > 1) {
@@ -15230,13 +15230,13 @@ function objToPolygon(points) {
15230
15230
  elements: []
15231
15231
  };
15232
15232
  points.forEach((point, index2) => {
15233
- const [x2, y2] = point;
15233
+ const [x, y2] = point;
15234
15234
  const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
15235
15235
  const pointNode = {
15236
15236
  name: tagName,
15237
15237
  type: tagName,
15238
15238
  attributes: {
15239
- x: pixelsToPolygonUnits(x2),
15239
+ x: pixelsToPolygonUnits(x),
15240
15240
  y: pixelsToPolygonUnits(y2)
15241
15241
  }
15242
15242
  };
@@ -19135,9 +19135,9 @@ const translator$10 = NodeTranslator.from(
19135
19135
  );
19136
19136
  function getUnderlineCssString({ type: type2 = "single", color = null, thickness = null, approximate = true } = {}) {
19137
19137
  const parts = [];
19138
- const add = (k2, v2) => {
19138
+ const add = (k, v2) => {
19139
19139
  if (!v2) return;
19140
- parts.push(`${k2}: ${v2}`);
19140
+ parts.push(`${k}: ${v2}`);
19141
19141
  };
19142
19142
  const lower = String(type2 || "single").toLowerCase();
19143
19143
  if (lower === "none" || lower === "0") {
@@ -22591,13 +22591,17 @@ function canCut(node, start, end) {
22591
22591
  function liftTarget(range2) {
22592
22592
  let parent = range2.parent;
22593
22593
  let content = parent.content.cutByIndex(range2.startIndex, range2.endIndex);
22594
- for (let depth = range2.depth; ; --depth) {
22594
+ for (let depth = range2.depth, contentBefore = 0, contentAfter = 0; ; --depth) {
22595
22595
  let node = range2.$from.node(depth);
22596
- let index2 = range2.$from.index(depth), endIndex = range2.$to.indexAfter(depth);
22596
+ let index2 = range2.$from.index(depth) + contentBefore, endIndex = range2.$to.indexAfter(depth) - contentAfter;
22597
22597
  if (depth < range2.depth && node.canReplace(index2, endIndex, content))
22598
22598
  return depth;
22599
22599
  if (depth == 0 || node.type.spec.isolating || !canCut(node, index2, endIndex))
22600
22600
  break;
22601
+ if (index2)
22602
+ contentBefore = 1;
22603
+ if (endIndex < node.childCount)
22604
+ contentAfter = 1;
22601
22605
  }
22602
22606
  return null;
22603
22607
  }
@@ -22606,19 +22610,19 @@ function lift(tr, range2, target) {
22606
22610
  let gapStart = $from.before(depth + 1), gapEnd = $to.after(depth + 1);
22607
22611
  let start = gapStart, end = gapEnd;
22608
22612
  let before = Fragment.empty, openStart = 0;
22609
- for (let d = depth, splitting = false; d > target; d--)
22610
- if (splitting || $from.index(d) > 0) {
22613
+ for (let d2 = depth, splitting = false; d2 > target; d2--)
22614
+ if (splitting || $from.index(d2) > 0) {
22611
22615
  splitting = true;
22612
- before = Fragment.from($from.node(d).copy(before));
22616
+ before = Fragment.from($from.node(d2).copy(before));
22613
22617
  openStart++;
22614
22618
  } else {
22615
22619
  start--;
22616
22620
  }
22617
22621
  let after = Fragment.empty, openEnd = 0;
22618
- for (let d = depth, splitting = false; d > target; d--)
22619
- if (splitting || $to.after(d + 1) < $to.end(d)) {
22622
+ for (let d2 = depth, splitting = false; d2 > target; d2--)
22623
+ if (splitting || $to.after(d2 + 1) < $to.end(d2)) {
22620
22624
  splitting = true;
22621
- after = Fragment.from($to.node(d).copy(after));
22625
+ after = Fragment.from($to.node(d2).copy(after));
22622
22626
  openEnd++;
22623
22627
  } else {
22624
22628
  end++;
@@ -22706,8 +22710,8 @@ function canSplit(doc2, pos, depth = 1, typesAfter) {
22706
22710
  let innerType = typesAfter && typesAfter[typesAfter.length - 1] || $pos.parent;
22707
22711
  if (base < 0 || $pos.parent.type.spec.isolating || !$pos.parent.canReplace($pos.index(), $pos.parent.childCount) || !innerType.type.validContent($pos.parent.content.cutByIndex($pos.index(), $pos.parent.childCount)))
22708
22712
  return false;
22709
- for (let d = $pos.depth - 1, i = depth - 2; d > base; d--, i--) {
22710
- let node = $pos.node(d), index3 = $pos.index(d);
22713
+ for (let d2 = $pos.depth - 1, i = depth - 2; d2 > base; d2--, i--) {
22714
+ let node = $pos.node(d2), index3 = $pos.index(d2);
22711
22715
  if (node.type.spec.isolating)
22712
22716
  return false;
22713
22717
  let rest = node.content.cutByIndex(index3, node.childCount);
@@ -22724,10 +22728,10 @@ function canSplit(doc2, pos, depth = 1, typesAfter) {
22724
22728
  }
22725
22729
  function split(tr, pos, depth = 1, typesAfter) {
22726
22730
  let $pos = tr.doc.resolve(pos), before = Fragment.empty, after = Fragment.empty;
22727
- for (let d = $pos.depth, e = $pos.depth - depth, i = depth - 1; d > e; d--, i--) {
22728
- before = Fragment.from($pos.node(d).copy(before));
22731
+ for (let d2 = $pos.depth, e = $pos.depth - depth, i = depth - 1; d2 > e; d2--, i--) {
22732
+ before = Fragment.from($pos.node(d2).copy(before));
22729
22733
  let typeAfter = typesAfter && typesAfter[i];
22730
- after = Fragment.from(typeAfter ? typeAfter.type.create(typeAfter.attrs, after) : $pos.node(d).copy(after));
22734
+ after = Fragment.from(typeAfter ? typeAfter.type.create(typeAfter.attrs, after) : $pos.node(d2).copy(after));
22731
22735
  }
22732
22736
  tr.step(new ReplaceStep(pos, pos, new Slice(before.append(after), depth, depth), true));
22733
22737
  }
@@ -22756,24 +22760,24 @@ function joinable(a, b2) {
22756
22760
  }
22757
22761
  function joinPoint(doc2, pos, dir = -1) {
22758
22762
  let $pos = doc2.resolve(pos);
22759
- for (let d = $pos.depth; ; d--) {
22760
- let before, after, index2 = $pos.index(d);
22761
- if (d == $pos.depth) {
22763
+ for (let d2 = $pos.depth; ; d2--) {
22764
+ let before, after, index2 = $pos.index(d2);
22765
+ if (d2 == $pos.depth) {
22762
22766
  before = $pos.nodeBefore;
22763
22767
  after = $pos.nodeAfter;
22764
22768
  } else if (dir > 0) {
22765
- before = $pos.node(d + 1);
22769
+ before = $pos.node(d2 + 1);
22766
22770
  index2++;
22767
- after = $pos.node(d).maybeChild(index2);
22771
+ after = $pos.node(d2).maybeChild(index2);
22768
22772
  } else {
22769
- before = $pos.node(d).maybeChild(index2 - 1);
22770
- after = $pos.node(d + 1);
22773
+ before = $pos.node(d2).maybeChild(index2 - 1);
22774
+ after = $pos.node(d2 + 1);
22771
22775
  }
22772
- if (before && !before.isTextblock && joinable(before, after) && $pos.node(d).canReplace(index2, index2 + 1))
22776
+ if (before && !before.isTextblock && joinable(before, after) && $pos.node(d2).canReplace(index2, index2 + 1))
22773
22777
  return pos;
22774
- if (d == 0)
22778
+ if (d2 == 0)
22775
22779
  break;
22776
- pos = dir < 0 ? $pos.before(d) : $pos.after(d);
22780
+ pos = dir < 0 ? $pos.before(d2) : $pos.after(d2);
22777
22781
  }
22778
22782
  }
22779
22783
  function join(tr, pos, depth) {
@@ -22808,19 +22812,19 @@ function insertPoint(doc2, pos, nodeType) {
22808
22812
  if ($pos.parent.canReplaceWith($pos.index(), $pos.index(), nodeType))
22809
22813
  return pos;
22810
22814
  if ($pos.parentOffset == 0)
22811
- for (let d = $pos.depth - 1; d >= 0; d--) {
22812
- let index2 = $pos.index(d);
22813
- if ($pos.node(d).canReplaceWith(index2, index2, nodeType))
22814
- return $pos.before(d + 1);
22815
+ for (let d2 = $pos.depth - 1; d2 >= 0; d2--) {
22816
+ let index2 = $pos.index(d2);
22817
+ if ($pos.node(d2).canReplaceWith(index2, index2, nodeType))
22818
+ return $pos.before(d2 + 1);
22815
22819
  if (index2 > 0)
22816
22820
  return null;
22817
22821
  }
22818
22822
  if ($pos.parentOffset == $pos.parent.content.size)
22819
- for (let d = $pos.depth - 1; d >= 0; d--) {
22820
- let index2 = $pos.indexAfter(d);
22821
- if ($pos.node(d).canReplaceWith(index2, index2, nodeType))
22822
- return $pos.after(d + 1);
22823
- if (index2 < $pos.node(d).childCount)
22823
+ for (let d2 = $pos.depth - 1; d2 >= 0; d2--) {
22824
+ let index2 = $pos.indexAfter(d2);
22825
+ if ($pos.node(d2).canReplaceWith(index2, index2, nodeType))
22826
+ return $pos.after(d2 + 1);
22827
+ if (index2 < $pos.node(d2).childCount)
22824
22828
  return null;
22825
22829
  }
22826
22830
  return null;
@@ -22833,10 +22837,10 @@ function dropPoint(doc2, pos, slice) {
22833
22837
  for (let i = 0; i < slice.openStart; i++)
22834
22838
  content = content.firstChild.content;
22835
22839
  for (let pass = 1; pass <= (slice.openStart == 0 && slice.size ? 2 : 1); pass++) {
22836
- for (let d = $pos.depth; d >= 0; d--) {
22837
- let bias = d == $pos.depth ? 0 : $pos.pos <= ($pos.start(d + 1) + $pos.end(d + 1)) / 2 ? -1 : 1;
22838
- let insertPos = $pos.index(d) + (bias > 0 ? 1 : 0);
22839
- let parent = $pos.node(d), fits = false;
22840
+ for (let d2 = $pos.depth; d2 >= 0; d2--) {
22841
+ let bias = d2 == $pos.depth ? 0 : $pos.pos <= ($pos.start(d2 + 1) + $pos.end(d2 + 1)) / 2 ? -1 : 1;
22842
+ let insertPos = $pos.index(d2) + (bias > 0 ? 1 : 0);
22843
+ let parent = $pos.node(d2), fits = false;
22840
22844
  if (pass == 1) {
22841
22845
  fits = parent.canReplace(insertPos, insertPos, content);
22842
22846
  } else {
@@ -22844,7 +22848,7 @@ function dropPoint(doc2, pos, slice) {
22844
22848
  fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0]);
22845
22849
  }
22846
22850
  if (fits)
22847
- return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d + 1) : $pos.after(d + 1);
22851
+ return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d2 + 1) : $pos.after(d2 + 1);
22848
22852
  }
22849
22853
  }
22850
22854
  return null;
@@ -22910,12 +22914,12 @@ class Fitter {
22910
22914
  // depths, one for the slice and one for the frontier.
22911
22915
  findFittable() {
22912
22916
  let startDepth = this.unplaced.openStart;
22913
- for (let cur = this.unplaced.content, d = 0, openEnd = this.unplaced.openEnd; d < startDepth; d++) {
22917
+ for (let cur = this.unplaced.content, d2 = 0, openEnd = this.unplaced.openEnd; d2 < startDepth; d2++) {
22914
22918
  let node = cur.firstChild;
22915
22919
  if (cur.childCount > 1)
22916
22920
  openEnd = 0;
22917
- if (node.type.spec.isolating && openEnd <= d) {
22918
- startDepth = d;
22921
+ if (node.type.spec.isolating && openEnd <= d2) {
22922
+ startDepth = d2;
22919
22923
  break;
22920
22924
  }
22921
22925
  cur = node.content;
@@ -23021,9 +23025,9 @@ class Fitter {
23021
23025
  let fit = contentAfterFits($to, i, type2, match, dropInner);
23022
23026
  if (!fit)
23023
23027
  continue;
23024
- for (let d = i - 1; d >= 0; d--) {
23025
- let { match: match2, type: type3 } = this.frontier[d];
23026
- let matches2 = contentAfterFits($to, d, type3, match2, true);
23028
+ for (let d2 = i - 1; d2 >= 0; d2--) {
23029
+ let { match: match2, type: type3 } = this.frontier[d2];
23030
+ let matches2 = contentAfterFits($to, d2, type3, match2, true);
23027
23031
  if (!matches2 || matches2.childCount)
23028
23032
  continue scan;
23029
23033
  }
@@ -23039,8 +23043,8 @@ class Fitter {
23039
23043
  if (close2.fit.childCount)
23040
23044
  this.placed = addToFragment(this.placed, close2.depth, close2.fit);
23041
23045
  $to = close2.move;
23042
- for (let d = close2.depth + 1; d <= $to.depth; d++) {
23043
- let node = $to.node(d), add = node.type.contentMatch.fillBefore(node.content, true, $to.index(d));
23046
+ for (let d2 = close2.depth + 1; d2 <= $to.depth; d2++) {
23047
+ let node = $to.node(d2), add = node.type.contentMatch.fillBefore(node.content, true, $to.index(d2));
23044
23048
  this.openFrontierNode(node.type, node.attrs, add);
23045
23049
  }
23046
23050
  return $to;
@@ -23108,19 +23112,19 @@ function replaceRange(tr, from, to, slice) {
23108
23112
  let $from = tr.doc.resolve(from), $to = tr.doc.resolve(to);
23109
23113
  if (fitsTrivially($from, $to, slice))
23110
23114
  return tr.step(new ReplaceStep(from, to, slice));
23111
- let targetDepths = coveredDepths($from, tr.doc.resolve(to));
23115
+ let targetDepths = coveredDepths($from, $to);
23112
23116
  if (targetDepths[targetDepths.length - 1] == 0)
23113
23117
  targetDepths.pop();
23114
23118
  let preferredTarget = -($from.depth + 1);
23115
23119
  targetDepths.unshift(preferredTarget);
23116
- for (let d = $from.depth, pos = $from.pos - 1; d > 0; d--, pos--) {
23117
- let spec = $from.node(d).type.spec;
23120
+ for (let d2 = $from.depth, pos = $from.pos - 1; d2 > 0; d2--, pos--) {
23121
+ let spec = $from.node(d2).type.spec;
23118
23122
  if (spec.defining || spec.definingAsContext || spec.isolating)
23119
23123
  break;
23120
- if (targetDepths.indexOf(d) > -1)
23121
- preferredTarget = d;
23122
- else if ($from.before(d) == pos)
23123
- targetDepths.splice(1, 0, -d);
23124
+ if (targetDepths.indexOf(d2) > -1)
23125
+ preferredTarget = d2;
23126
+ else if ($from.before(d2) == pos)
23127
+ targetDepths.splice(1, 0, -d2);
23124
23128
  }
23125
23129
  let preferredTargetIndex = targetDepths.indexOf(preferredTarget);
23126
23130
  let leftNodes = [], preferredDepth = slice.openStart;
@@ -23131,10 +23135,10 @@ function replaceRange(tr, from, to, slice) {
23131
23135
  break;
23132
23136
  content = node.content;
23133
23137
  }
23134
- for (let d = preferredDepth - 1; d >= 0; d--) {
23135
- let leftNode = leftNodes[d], def = definesContent(leftNode.type);
23138
+ for (let d2 = preferredDepth - 1; d2 >= 0; d2--) {
23139
+ let leftNode = leftNodes[d2], def = definesContent(leftNode.type);
23136
23140
  if (def && !leftNode.sameMarkup($from.node(Math.abs(preferredTarget) - 1)))
23137
- preferredDepth = d;
23141
+ preferredDepth = d2;
23138
23142
  else if (def || !leftNode.type.isTextblock)
23139
23143
  break;
23140
23144
  }
@@ -23196,20 +23200,20 @@ function deleteRange(tr, from, to) {
23196
23200
  if (depth > 0 && (last || $from.node(depth - 1).canReplace($from.index(depth - 1), $to.indexAfter(depth - 1))))
23197
23201
  return tr.delete($from.before(depth), $to.after(depth));
23198
23202
  }
23199
- for (let d = 1; d <= $from.depth && d <= $to.depth; d++) {
23200
- if (from - $from.start(d) == $from.depth - d && to > $from.end(d) && $to.end(d) - to != $to.depth - d && $from.start(d - 1) == $to.start(d - 1) && $from.node(d - 1).canReplace($from.index(d - 1), $to.index(d - 1)))
23201
- return tr.delete($from.before(d), to);
23203
+ for (let d2 = 1; d2 <= $from.depth && d2 <= $to.depth; d2++) {
23204
+ if (from - $from.start(d2) == $from.depth - d2 && to > $from.end(d2) && $to.end(d2) - to != $to.depth - d2 && $from.start(d2 - 1) == $to.start(d2 - 1) && $from.node(d2 - 1).canReplace($from.index(d2 - 1), $to.index(d2 - 1)))
23205
+ return tr.delete($from.before(d2), to);
23202
23206
  }
23203
23207
  tr.delete(from, to);
23204
23208
  }
23205
23209
  function coveredDepths($from, $to) {
23206
23210
  let result = [], minDepth = Math.min($from.depth, $to.depth);
23207
- for (let d = minDepth; d >= 0; d--) {
23208
- let start = $from.start(d);
23209
- if (start < $from.pos - ($from.depth - d) || $to.end(d) > $to.pos + ($to.depth - d) || $from.node(d).type.spec.isolating || $to.node(d).type.spec.isolating)
23211
+ for (let d2 = minDepth; d2 >= 0; d2--) {
23212
+ let start = $from.start(d2);
23213
+ if (start < $from.pos - ($from.depth - d2) || $to.end(d2) > $to.pos + ($to.depth - d2) || $from.node(d2).type.spec.isolating || $to.node(d2).type.spec.isolating)
23210
23214
  break;
23211
- if (start == $to.start(d) || d == $from.depth && d == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent && d && $to.start(d - 1) == start - 1)
23212
- result.push(d);
23215
+ if (start == $to.start(d2) || d2 == $from.depth && d2 == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent && d2 && $to.start(d2 - 1) == start - 1)
23216
+ result.push(d2);
23213
23217
  }
23214
23218
  return result;
23215
23219
  }
@@ -24904,18 +24908,18 @@ const handleShapeGroup = (params, node, graphicData, size, padding, marginOffset
24904
24908
  const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
24905
24909
  const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
24906
24910
  const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
24907
- let x2, y2, width, height;
24911
+ let x, y2, width, height;
24908
24912
  if (groupTransform.childWidth && groupTransform.childHeight) {
24909
24913
  const scaleX = groupTransform.width / groupTransform.childWidth;
24910
24914
  const scaleY = groupTransform.height / groupTransform.childHeight;
24911
24915
  const childOriginX = groupTransform.childOriginXEmu || 0;
24912
24916
  const childOriginY = groupTransform.childOriginYEmu || 0;
24913
- x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
24917
+ x = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
24914
24918
  y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
24915
24919
  width = emuToPixels(rawWidth * scaleX);
24916
24920
  height = emuToPixels(rawHeight * scaleY);
24917
24921
  } else {
24918
- x2 = emuToPixels(rawX);
24922
+ x = emuToPixels(rawX);
24919
24923
  y2 = emuToPixels(rawY);
24920
24924
  width = emuToPixels(rawWidth);
24921
24925
  height = emuToPixels(rawHeight);
@@ -24934,7 +24938,7 @@ const handleShapeGroup = (params, node, graphicData, size, padding, marginOffset
24934
24938
  shapeType: "vectorShape",
24935
24939
  attrs: {
24936
24940
  kind: shapeKind,
24937
- x: x2,
24941
+ x,
24938
24942
  y: y2,
24939
24943
  width,
24940
24944
  height,
@@ -25556,7 +25560,7 @@ function posToDOMRect(view, from, to) {
25556
25560
  const right = Math.max(start.right, end.right);
25557
25561
  const width = right - left;
25558
25562
  const height = bottom - top;
25559
- const x2 = left;
25563
+ const x = left;
25560
25564
  const y2 = top;
25561
25565
  const data = {
25562
25566
  top,
@@ -25565,7 +25569,7 @@ function posToDOMRect(view, from, to) {
25565
25569
  right,
25566
25570
  width,
25567
25571
  height,
25568
- x: x2,
25572
+ x,
25569
25573
  y: y2
25570
25574
  };
25571
25575
  return {
@@ -25575,8 +25579,8 @@ function posToDOMRect(view, from, to) {
25575
25579
  }
25576
25580
  const isInTable = (state2) => {
25577
25581
  const { $head } = state2.selection;
25578
- for (let d = $head.depth; d > 0; d -= 1) {
25579
- if ($head.node(d).type?.spec?.tableRole === "row") {
25582
+ for (let d2 = $head.depth; d2 > 0; d2 -= 1) {
25583
+ if ($head.node(d2).type?.spec?.tableRole === "row") {
25580
25584
  return true;
25581
25585
  }
25582
25586
  }
@@ -25629,7 +25633,7 @@ function stripHtmlStyles(html) {
25629
25633
  function cleanStyle(style) {
25630
25634
  if (!style) return "";
25631
25635
  const declarations = style.split(";").map((s) => s.trim()).filter(Boolean);
25632
- const textAlign = declarations.find((d) => d.startsWith("text-align"));
25636
+ const textAlign = declarations.find((d2) => d2.startsWith("text-align"));
25633
25637
  return textAlign ? `${textAlign};` : "";
25634
25638
  }
25635
25639
  function preserveSpaces(innerHtml) {
@@ -27405,7 +27409,7 @@ const getBasicNumIdTag = (numId, abstractId) => {
27405
27409
  };
27406
27410
  const getNewListId = (editor, grouping = "definitions") => {
27407
27411
  const defs = editor.converter?.numbering?.[grouping] || {};
27408
- const intKeys = Object.keys(defs).map((k2) => Number(k2)).filter((n) => Number.isInteger(n));
27412
+ const intKeys = Object.keys(defs).map((k) => Number(k)).filter((n) => Number.isInteger(n));
27409
27413
  const max2 = intKeys.length ? Math.max(...intKeys) : 0;
27410
27414
  return max2 + 1;
27411
27415
  };
@@ -28700,39 +28704,39 @@ function createDocFromHTML(content, editor, options = {}) {
28700
28704
  function L() {
28701
28705
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
28702
28706
  }
28703
- var T = L();
28704
- function G(u3) {
28705
- T = u3;
28707
+ var O = L();
28708
+ function G(l3) {
28709
+ O = l3;
28706
28710
  }
28707
- var I = { exec: () => null };
28708
- function h(u3, e = "") {
28709
- let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r, i) => {
28711
+ var E = { exec: () => null };
28712
+ function h(l3, e = "") {
28713
+ let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r, i) => {
28710
28714
  let s = typeof i == "string" ? i : i.source;
28711
28715
  return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
28712
28716
  }, getRegex: () => new RegExp(t, e) };
28713
28717
  return n;
28714
28718
  }
28715
- 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]\] /, listReplaceTask: /^\[[ 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: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = h(ie).replace(/bull/g, F).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(), we = h(ie).replace(/bull/g, F).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(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), 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", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, $e = h("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = h(j).replace("hr", E).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(), _e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\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(), Le = { ...K, lheading: we, table: re, paragraph: h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).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() }, Me = { ...K, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).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: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
28716
- ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h(/link|code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code", /(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h(ce, "u").replace(/punct/g, D).getRegex(), De = h(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ne = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h(/^<(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(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h("^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", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).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: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Xe = { ...N, br: h(le).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K, gfm: Le, pedantic: Me }, M = { normal: X, gfm: N, breaks: Xe, pedantic: We };
28717
- var Je = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (u3) => Je[u3];
28718
- function w(u3, e) {
28719
+ 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]\] /, listReplaceTask: /^\[[ 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: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie = h(se).replace(/bull/g, j).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(), Te = h(se).replace(/bull/g, j).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(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), 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", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).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(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\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(), _e = { ...K, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).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() }, Le = { ...K, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).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: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
28720
+ ]`).replace("lheading", ie).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(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(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^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", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").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: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K, gfm: _e, pedantic: Le }, M = { normal: X, gfm: N, breaks: We, pedantic: Ke };
28721
+ var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (l3) => Xe[l3];
28722
+ function w(l3, e) {
28719
28723
  if (e) {
28720
- if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
28721
- } else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
28722
- return u3;
28724
+ if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
28725
+ } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
28726
+ return l3;
28723
28727
  }
28724
- function J(u3) {
28728
+ function J(l3) {
28725
28729
  try {
28726
- u3 = encodeURI(u3).replace(m.percentDecode, "%");
28730
+ l3 = encodeURI(l3).replace(m.percentDecode, "%");
28727
28731
  } catch {
28728
28732
  return null;
28729
28733
  }
28730
- return u3;
28734
+ return l3;
28731
28735
  }
28732
- function V(u3, e) {
28733
- let t = u3.replace(m.findPipe, (i, s, o) => {
28734
- let a = false, l = s;
28735
- for (; --l >= 0 && o[l] === "\\"; ) a = !a;
28736
+ function V(l3, e) {
28737
+ let t = l3.replace(m.findPipe, (i, s, o) => {
28738
+ let a = false, u = s;
28739
+ for (; --u >= 0 && o[u] === "\\"; ) a = !a;
28736
28740
  return a ? "|" : " |";
28737
28741
  }), n = t.split(m.splitPipe), r = 0;
28738
28742
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
@@ -28740,33 +28744,33 @@ function V(u3, e) {
28740
28744
  for (; r < n.length; r++) n[r] = n[r].trim().replace(m.slashPipe, "|");
28741
28745
  return n;
28742
28746
  }
28743
- function z(u3, e, t) {
28744
- let n = u3.length;
28747
+ function z(l3, e, t) {
28748
+ let n = l3.length;
28745
28749
  if (n === 0) return "";
28746
28750
  let r = 0;
28747
28751
  for (; r < n; ) {
28748
- let i = u3.charAt(n - r - 1);
28752
+ let i = l3.charAt(n - r - 1);
28749
28753
  if (i === e && true) r++;
28750
28754
  else break;
28751
28755
  }
28752
- return u3.slice(0, n - r);
28756
+ return l3.slice(0, n - r);
28753
28757
  }
28754
- function fe(u3, e) {
28755
- if (u3.indexOf(e[1]) === -1) return -1;
28758
+ function ge(l3, e) {
28759
+ if (l3.indexOf(e[1]) === -1) return -1;
28756
28760
  let t = 0;
28757
- for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
28758
- else if (u3[n] === e[0]) t++;
28759
- else if (u3[n] === e[1] && (t--, t < 0)) return n;
28761
+ for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
28762
+ else if (l3[n] === e[0]) t++;
28763
+ else if (l3[n] === e[1] && (t--, t < 0)) return n;
28760
28764
  return t > 0 ? -2 : -1;
28761
28765
  }
28762
- function me(u3, e, t, n, r) {
28763
- let i = e.href, s = e.title || null, o = u3[1].replace(r.other.outputLinkReplace, "$1");
28766
+ function fe(l3, e, t, n, r) {
28767
+ let i = e.href, s = e.title || null, o = l3[1].replace(r.other.outputLinkReplace, "$1");
28764
28768
  n.state.inLink = true;
28765
- let a = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: o, tokens: n.inlineTokens(o) };
28769
+ let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: o, tokens: n.inlineTokens(o) };
28766
28770
  return n.state.inLink = false, a;
28767
28771
  }
28768
- function Ve(u3, e, t) {
28769
- let n = u3.match(t.other.indentCodeCompensation);
28772
+ function Je(l3, e, t) {
28773
+ let n = l3.match(t.other.indentCodeCompensation);
28770
28774
  if (n === null) return e;
28771
28775
  let r = n[1];
28772
28776
  return e.split(`
@@ -28783,7 +28787,7 @@ var y = class {
28783
28787
  __publicField(this, "options");
28784
28788
  __publicField(this, "rules");
28785
28789
  __publicField(this, "lexer");
28786
- this.options = e || T;
28790
+ this.options = e || O;
28787
28791
  }
28788
28792
  space(e) {
28789
28793
  let t = this.rules.block.newline.exec(e);
@@ -28800,7 +28804,7 @@ var y = class {
28800
28804
  fences(e) {
28801
28805
  let t = this.rules.block.fences.exec(e);
28802
28806
  if (t) {
28803
- let n = t[0], r = Ve(n, t[3] || "", this.rules);
28807
+ let n = t[0], r = Je(n, t[3] || "", this.rules);
28804
28808
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
28805
28809
  }
28806
28810
  }
@@ -28827,32 +28831,32 @@ var y = class {
28827
28831
  `).split(`
28828
28832
  `), r = "", i = "", s = [];
28829
28833
  for (; n.length > 0; ) {
28830
- let o = false, a = [], l;
28831
- for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a.push(n[l]), o = true;
28832
- else if (!o) a.push(n[l]);
28834
+ let o = false, a = [], u;
28835
+ for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
28836
+ else if (!o) a.push(n[u]);
28833
28837
  else break;
28834
- n = n.slice(l);
28835
- let c = a.join(`
28836
- `), p = c.replace(this.rules.other.blockquoteSetextReplace, `
28838
+ n = n.slice(u);
28839
+ let p = a.join(`
28840
+ `), c = p.replace(this.rules.other.blockquoteSetextReplace, `
28837
28841
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
28838
28842
  r = r ? `${r}
28839
- ${c}` : c, i = i ? `${i}
28840
- ${p}` : p;
28841
- let g = this.lexer.state.top;
28842
- if (this.lexer.state.top = true, this.lexer.blockTokens(p, s, true), this.lexer.state.top = g, n.length === 0) break;
28843
- let d = s.at(-1);
28844
- if (d?.type === "code") break;
28845
- if (d?.type === "blockquote") {
28846
- let R = d, f = R.raw + `
28843
+ ${p}` : p, i = i ? `${i}
28844
+ ${c}` : c;
28845
+ let f = this.lexer.state.top;
28846
+ if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = f, n.length === 0) break;
28847
+ let k = s.at(-1);
28848
+ if (k?.type === "code") break;
28849
+ if (k?.type === "blockquote") {
28850
+ let x = k, g = x.raw + `
28847
28851
  ` + n.join(`
28848
- `), O = this.blockquote(f);
28849
- 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;
28852
+ `), T = this.blockquote(g);
28853
+ s[s.length - 1] = T, r = r.substring(0, r.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
28850
28854
  break;
28851
- } else if (d?.type === "list") {
28852
- let R = d, f = R.raw + `
28855
+ } else if (k?.type === "list") {
28856
+ let x = k, g = x.raw + `
28853
28857
  ` + n.join(`
28854
- `), O = this.list(f);
28855
- s[s.length - 1] = O, r = r.substring(0, r.length - d.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
28858
+ `), T = this.list(g);
28859
+ s[s.length - 1] = T, r = r.substring(0, r.length - k.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s.at(-1).raw.length).split(`
28856
28860
  `);
28857
28861
  continue;
28858
28862
  }
@@ -28867,43 +28871,43 @@ ${p}` : p;
28867
28871
  n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
28868
28872
  let s = this.rules.other.listItemRegex(n), o = false;
28869
28873
  for (; e; ) {
28870
- let l = false, c = "", p = "";
28874
+ let u = false, p = "", c = "";
28871
28875
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
28872
- c = t[0], e = e.substring(c.length);
28873
- let g = t[2].split(`
28874
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d = e.split(`
28875
- `, 1)[0], R = !g.trim(), f = 0;
28876
- if (this.options.pedantic ? (f = 2, p = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, p = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(d) && (c += d + `
28877
- `, e = e.substring(d.length + 1), l = true), !l) {
28878
- let H = this.rules.other.nextBulletRegex(f), ee = this.rules.other.hrRegex(f), te = this.rules.other.fencesBeginRegex(f), ne = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f);
28876
+ p = t[0], e = e.substring(p.length);
28877
+ let f = t[2].split(`
28878
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k = e.split(`
28879
+ `, 1)[0], x = !f.trim(), g = 0;
28880
+ if (this.options.pedantic ? (g = 2, c = f.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c = f.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k) && (p += k + `
28881
+ `, e = e.substring(k.length + 1), u = true), !u) {
28882
+ let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
28879
28883
  for (; e; ) {
28880
28884
  let Z = e.split(`
28881
28885
  `, 1)[0], A;
28882
- if (d = Z, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), A = d) : A = d.replace(this.rules.other.tabCharGlobal, " "), te.test(d) || ne.test(d) || xe.test(d) || H.test(d) || ee.test(d)) break;
28883
- if (A.search(this.rules.other.nonSpaceChar) >= f || !d.trim()) p += `
28884
- ` + A.slice(f);
28886
+ if (k = Z, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), A = k) : A = k.replace(this.rules.other.tabCharGlobal, " "), te.test(k) || ne.test(k) || me.test(k) || H.test(k) || ee.test(k)) break;
28887
+ if (A.search(this.rules.other.nonSpaceChar) >= g || !k.trim()) c += `
28888
+ ` + A.slice(g);
28885
28889
  else {
28886
- if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
28887
- p += `
28888
- ` + d;
28890
+ if (x || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f) || ne.test(f) || ee.test(f)) break;
28891
+ c += `
28892
+ ` + k;
28889
28893
  }
28890
- !R && !d.trim() && (R = true), c += Z + `
28891
- `, e = e.substring(Z.length + 1), g = A.slice(f);
28894
+ !x && !k.trim() && (x = true), p += Z + `
28895
+ `, e = e.substring(Z.length + 1), f = A.slice(g);
28892
28896
  }
28893
28897
  }
28894
- i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(c) && (o = true));
28895
- let O = null, Y;
28896
- this.options.gfm && (O = this.rules.other.listIsTask.exec(p), O && (Y = O[0] !== "[ ] ", p = p.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: c, task: !!O, checked: Y, loose: false, text: p, tokens: [] }), i.raw += c;
28898
+ i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
28899
+ let T = null, Y;
28900
+ this.options.gfm && (T = this.rules.other.listIsTask.exec(c), T && (Y = T[0] !== "[ ] ", c = c.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y, loose: false, text: c, tokens: [] }), i.raw += p;
28897
28901
  }
28898
28902
  let a = i.items.at(-1);
28899
28903
  if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
28900
28904
  else return;
28901
28905
  i.raw = i.raw.trimEnd();
28902
- for (let l = 0; l < i.items.length; l++) if (this.lexer.state.top = false, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
28903
- let c = i.items[l].tokens.filter((g) => g.type === "space"), p = c.length > 0 && c.some((g) => this.rules.other.anyLine.test(g.raw));
28904
- i.loose = p;
28906
+ for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
28907
+ let p = i.items[u].tokens.filter((f) => f.type === "space"), c = p.length > 0 && p.some((f) => this.rules.other.anyLine.test(f.raw));
28908
+ i.loose = c;
28905
28909
  }
28906
- if (i.loose) for (let l = 0; l < i.items.length; l++) i.items[l].loose = true;
28910
+ if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
28907
28911
  return i;
28908
28912
  }
28909
28913
  }
@@ -28926,7 +28930,7 @@ ${p}` : p;
28926
28930
  if (n.length === r.length) {
28927
28931
  for (let o of r) this.rules.other.tableAlignRight.test(o) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s.align.push("left") : s.align.push(null);
28928
28932
  for (let o = 0; o < n.length; o++) s.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s.align[o] });
28929
- for (let o of i) s.rows.push(V(o, s.header.length).map((a, l) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s.align[l] })));
28933
+ for (let o of i) s.rows.push(V(o, s.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s.align[u] })));
28930
28934
  return s;
28931
28935
  }
28932
28936
  }
@@ -28963,7 +28967,7 @@ ${p}` : p;
28963
28967
  let s = z(n.slice(0, -1), "\\");
28964
28968
  if ((n.length - s.length) % 2 === 0) return;
28965
28969
  } else {
28966
- let s = fe(t[2], "()");
28970
+ let s = ge(t[2], "()");
28967
28971
  if (s === -2) return;
28968
28972
  if (s > -1) {
28969
28973
  let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
@@ -28975,7 +28979,7 @@ ${p}` : p;
28975
28979
  let s = this.rules.other.pedanticHrefTitle.exec(r);
28976
28980
  s && (r = s[1], i = s[3]);
28977
28981
  } else i = t[3] ? t[3].slice(1, -1) : "";
28978
- 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);
28982
+ 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)), fe(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);
28979
28983
  }
28980
28984
  }
28981
28985
  reflink(e, t) {
@@ -28986,32 +28990,32 @@ ${p}` : p;
28986
28990
  let s = n[0].charAt(0);
28987
28991
  return { type: "text", raw: s, text: s };
28988
28992
  }
28989
- return me(n, i, n[0], this.lexer, this.rules);
28993
+ return fe(n, i, n[0], this.lexer, this.rules);
28990
28994
  }
28991
28995
  }
28992
28996
  emStrong(e, t, n = "") {
28993
28997
  let r = this.rules.inline.emStrongLDelim.exec(e);
28994
28998
  if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
28995
28999
  if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
28996
- let s = [...r[0]].length - 1, o, a, l = s, c = 0, p = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
28997
- for (p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) != null; ) {
29000
+ let s = [...r[0]].length - 1, o, a, u = s, p = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
29001
+ for (c.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = c.exec(t)) != null; ) {
28998
29002
  if (o = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !o) continue;
28999
29003
  if (a = [...o].length, r[3] || r[4]) {
29000
- l += a;
29004
+ u += a;
29001
29005
  continue;
29002
29006
  } else if ((r[5] || r[6]) && s % 3 && !((s + a) % 3)) {
29003
- c += a;
29007
+ p += a;
29004
29008
  continue;
29005
29009
  }
29006
- if (l -= a, l > 0) continue;
29007
- a = Math.min(a, a + l + c);
29008
- let g = [...r[0]][0].length, d = e.slice(0, s + r.index + g + a);
29010
+ if (u -= a, u > 0) continue;
29011
+ a = Math.min(a, a + u + p);
29012
+ let f = [...r[0]][0].length, k = e.slice(0, s + r.index + f + a);
29009
29013
  if (Math.min(s, a) % 2) {
29010
- let f = d.slice(1, -1);
29011
- return { type: "em", raw: d, text: f, tokens: this.lexer.inlineTokens(f) };
29014
+ let g = k.slice(1, -1);
29015
+ return { type: "em", raw: k, text: g, tokens: this.lexer.inlineTokens(g) };
29012
29016
  }
29013
- let R = d.slice(2, -2);
29014
- return { type: "strong", raw: d, text: R, tokens: this.lexer.inlineTokens(R) };
29017
+ let x = k.slice(2, -2);
29018
+ return { type: "strong", raw: k, text: x, tokens: this.lexer.inlineTokens(x) };
29015
29019
  }
29016
29020
  }
29017
29021
  }
@@ -29060,25 +29064,25 @@ ${p}` : p;
29060
29064
  }
29061
29065
  }
29062
29066
  };
29063
- var x = class u {
29067
+ var b = class l {
29064
29068
  constructor(e) {
29065
29069
  __publicField(this, "tokens");
29066
29070
  __publicField(this, "options");
29067
29071
  __publicField(this, "state");
29068
29072
  __publicField(this, "tokenizer");
29069
29073
  __publicField(this, "inlineQueue");
29070
- this.tokens = [], this.tokens.links = /* @__PURE__ */ 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 };
29071
- let t = { other: m, block: C.normal, inline: M.normal };
29072
- this.options.pedantic ? (t.block = C.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
29074
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || O, 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 };
29075
+ let t = { other: m, block: I.normal, inline: M.normal };
29076
+ this.options.pedantic ? (t.block = I.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
29073
29077
  }
29074
29078
  static get rules() {
29075
- return { block: C, inline: M };
29079
+ return { block: I, inline: M };
29076
29080
  }
29077
29081
  static lex(e, t) {
29078
- return new u(t).lex(e);
29082
+ return new l(t).lex(e);
29079
29083
  }
29080
29084
  static lexInline(e, t) {
29081
- return new u(t).inlineTokens(e);
29085
+ return new l(t).inlineTokens(e);
29082
29086
  }
29083
29087
  lex(e) {
29084
29088
  e = e.replace(m.carriageReturn, `
@@ -29153,8 +29157,8 @@ var x = class u {
29153
29157
  let i = e;
29154
29158
  if (this.options.extensions?.startBlock) {
29155
29159
  let s = 1 / 0, o = e.slice(1), a;
29156
- this.options.extensions.startBlock.forEach((l) => {
29157
- a = l.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s = Math.min(s, a));
29160
+ this.options.extensions.startBlock.forEach((u) => {
29161
+ a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s = Math.min(s, a));
29158
29162
  }), s < 1 / 0 && s >= 0 && (i = e.substring(0, s + 1));
29159
29163
  }
29160
29164
  if (this.state.top && (r = this.tokenizer.paragraph(i))) {
@@ -29200,7 +29204,7 @@ var x = class u {
29200
29204
  for (; e; ) {
29201
29205
  i || (s = ""), i = false;
29202
29206
  let o;
29203
- if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
29207
+ if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
29204
29208
  if (o = this.tokenizer.escape(e)) {
29205
29209
  e = e.substring(o.raw.length), t.push(o);
29206
29210
  continue;
@@ -29215,8 +29219,8 @@ var x = class u {
29215
29219
  }
29216
29220
  if (o = this.tokenizer.reflink(e, this.tokens.links)) {
29217
29221
  e = e.substring(o.raw.length);
29218
- let l = t.at(-1);
29219
- o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
29222
+ let u = t.at(-1);
29223
+ o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
29220
29224
  continue;
29221
29225
  }
29222
29226
  if (o = this.tokenizer.emStrong(e, n, s)) {
@@ -29245,23 +29249,23 @@ var x = class u {
29245
29249
  }
29246
29250
  let a = e;
29247
29251
  if (this.options.extensions?.startInline) {
29248
- let l = 1 / 0, c = e.slice(1), p;
29249
- this.options.extensions.startInline.forEach((g) => {
29250
- p = g.call({ lexer: this }, c), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
29251
- }), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
29252
+ let u = 1 / 0, p = e.slice(1), c;
29253
+ this.options.extensions.startInline.forEach((f) => {
29254
+ c = f.call({ lexer: this }, p), typeof c == "number" && c >= 0 && (u = Math.min(u, c));
29255
+ }), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
29252
29256
  }
29253
29257
  if (o = this.tokenizer.inlineText(a)) {
29254
29258
  e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s = o.raw.slice(-1)), i = true;
29255
- let l = t.at(-1);
29256
- l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
29259
+ let u = t.at(-1);
29260
+ u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
29257
29261
  continue;
29258
29262
  }
29259
29263
  if (e) {
29260
- let l = "Infinite loop on byte: " + e.charCodeAt(0);
29264
+ let u = "Infinite loop on byte: " + e.charCodeAt(0);
29261
29265
  if (this.options.silent) {
29262
- console.error(l);
29266
+ console.error(u);
29263
29267
  break;
29264
- } else throw new Error(l);
29268
+ } else throw new Error(u);
29265
29269
  }
29266
29270
  }
29267
29271
  return t;
@@ -29271,7 +29275,7 @@ var P = class {
29271
29275
  constructor(e) {
29272
29276
  __publicField(this, "options");
29273
29277
  __publicField(this, "parser");
29274
- this.options = e || T;
29278
+ this.options = e || O;
29275
29279
  }
29276
29280
  space(e) {
29277
29281
  return "";
@@ -29419,18 +29423,18 @@ var $ = class {
29419
29423
  return "";
29420
29424
  }
29421
29425
  };
29422
- var b = class u2 {
29426
+ var R = class l2 {
29423
29427
  constructor(e) {
29424
29428
  __publicField(this, "options");
29425
29429
  __publicField(this, "renderer");
29426
29430
  __publicField(this, "textRenderer");
29427
- 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 $();
29431
+ this.options = e || O, 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 $();
29428
29432
  }
29429
29433
  static parse(e, t) {
29430
- return new u2(t).parse(e);
29434
+ return new l2(t).parse(e);
29431
29435
  }
29432
29436
  static parseInline(e, t) {
29433
- return new u2(t).parseInline(e);
29437
+ return new l2(t).parseInline(e);
29434
29438
  }
29435
29439
  parse(e, t = true) {
29436
29440
  let n = "";
@@ -29568,7 +29572,7 @@ var S = (_a = class {
29568
29572
  constructor(e) {
29569
29573
  __publicField(this, "options");
29570
29574
  __publicField(this, "block");
29571
- this.options = e || T;
29575
+ this.options = e || O;
29572
29576
  }
29573
29577
  preprocess(e) {
29574
29578
  return e;
@@ -29583,10 +29587,10 @@ var S = (_a = class {
29583
29587
  return e;
29584
29588
  }
29585
29589
  provideLexer() {
29586
- return this.block ? x.lex : x.lexInline;
29590
+ return this.block ? b.lex : b.lexInline;
29587
29591
  }
29588
29592
  provideParser() {
29589
- return this.block ? b.parse : b.parseInline;
29593
+ return this.block ? R.parse : R.parseInline;
29590
29594
  }
29591
29595
  }, __publicField(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
29592
29596
  var B = class {
@@ -29595,10 +29599,10 @@ var B = class {
29595
29599
  __publicField(this, "options", this.setOptions);
29596
29600
  __publicField(this, "parse", this.parseMarkdown(true));
29597
29601
  __publicField(this, "parseInline", this.parseMarkdown(false));
29598
- __publicField(this, "Parser", b);
29602
+ __publicField(this, "Parser", R);
29599
29603
  __publicField(this, "Renderer", P);
29600
29604
  __publicField(this, "TextRenderer", $);
29601
- __publicField(this, "Lexer", x);
29605
+ __publicField(this, "Lexer", b);
29602
29606
  __publicField(this, "Tokenizer", y);
29603
29607
  __publicField(this, "Hooks", S);
29604
29608
  this.use(...e);
@@ -29651,10 +29655,10 @@ var B = class {
29651
29655
  for (let s in n.renderer) {
29652
29656
  if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
29653
29657
  if (["options", "parser"].includes(s)) continue;
29654
- let o = s, a = n.renderer[o], l = i[o];
29655
- i[o] = (...c) => {
29656
- let p = a.apply(i, c);
29657
- return p === false && (p = l.apply(i, c)), p || "";
29658
+ let o = s, a = n.renderer[o], u = i[o];
29659
+ i[o] = (...p) => {
29660
+ let c = a.apply(i, p);
29661
+ return c === false && (c = u.apply(i, p)), c || "";
29658
29662
  };
29659
29663
  }
29660
29664
  r.renderer = i;
@@ -29664,10 +29668,10 @@ var B = class {
29664
29668
  for (let s in n.tokenizer) {
29665
29669
  if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
29666
29670
  if (["options", "rules", "lexer"].includes(s)) continue;
29667
- let o = s, a = n.tokenizer[o], l = i[o];
29668
- i[o] = (...c) => {
29669
- let p = a.apply(i, c);
29670
- return p === false && (p = l.apply(i, c)), p;
29671
+ let o = s, a = n.tokenizer[o], u = i[o];
29672
+ i[o] = (...p) => {
29673
+ let c = a.apply(i, p);
29674
+ return c === false && (c = u.apply(i, p)), c;
29671
29675
  };
29672
29676
  }
29673
29677
  r.tokenizer = i;
@@ -29677,21 +29681,14 @@ var B = class {
29677
29681
  for (let s in n.hooks) {
29678
29682
  if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
29679
29683
  if (["options", "block"].includes(s)) continue;
29680
- let o = s, a = n.hooks[o], l = i[o];
29681
- S.passThroughHooks.has(s) ? i[o] = (c) => {
29682
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return (async () => {
29683
- let g = await a.call(i, c);
29684
- return l.call(i, g);
29685
- })();
29686
- let p = a.call(i, c);
29687
- return l.call(i, p);
29688
- } : i[o] = (...c) => {
29689
- if (this.defaults.async) return (async () => {
29690
- let g = await a.apply(i, c);
29691
- return g === false && (g = await l.apply(i, c)), g;
29692
- })();
29693
- let p = a.apply(i, c);
29694
- return p === false && (p = l.apply(i, c)), p;
29684
+ let o = s, a = n.hooks[o], u = i[o];
29685
+ S.passThroughHooks.has(s) ? i[o] = (p) => {
29686
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return Promise.resolve(a.call(i, p)).then((f) => u.call(i, f));
29687
+ let c = a.call(i, p);
29688
+ return u.call(i, c);
29689
+ } : i[o] = (...p) => {
29690
+ let c = a.apply(i, p);
29691
+ return c === false && (c = u.apply(i, p)), c;
29695
29692
  };
29696
29693
  }
29697
29694
  r.hooks = i;
@@ -29710,10 +29707,10 @@ var B = class {
29710
29707
  return this.defaults = { ...this.defaults, ...e }, this;
29711
29708
  }
29712
29709
  lexer(e, t) {
29713
- return x.lex(e, t ?? this.defaults);
29710
+ return b.lex(e, t ?? this.defaults);
29714
29711
  }
29715
29712
  parser(e, t) {
29716
- return b.parse(e, t ?? this.defaults);
29713
+ return R.parse(e, t ?? this.defaults);
29717
29714
  }
29718
29715
  parseMarkdown(e) {
29719
29716
  return (n, r) => {
@@ -29721,20 +29718,17 @@ var B = class {
29721
29718
  if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
29722
29719
  if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
29723
29720
  if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
29724
- if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async) return (async () => {
29725
- let a = s.hooks ? await s.hooks.preprocess(n) : n, c = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(a, s), p = s.hooks ? await s.hooks.processAllTokens(c) : c;
29726
- s.walkTokens && await Promise.all(this.walkTokens(p, s.walkTokens));
29727
- let d = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s);
29728
- return s.hooks ? await s.hooks.postprocess(d) : d;
29729
- })().catch(o);
29721
+ s.hooks && (s.hooks.options = s, s.hooks.block = e);
29722
+ let a = s.hooks ? s.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s.hooks ? s.hooks.provideParser() : e ? R.parse : R.parseInline;
29723
+ if (s.async) return Promise.resolve(s.hooks ? s.hooks.preprocess(n) : n).then((p) => a(p, s)).then((p) => s.hooks ? s.hooks.processAllTokens(p) : p).then((p) => s.walkTokens ? Promise.all(this.walkTokens(p, s.walkTokens)).then(() => p) : p).then((p) => u(p, s)).then((p) => s.hooks ? s.hooks.postprocess(p) : p).catch(o);
29730
29724
  try {
29731
29725
  s.hooks && (n = s.hooks.preprocess(n));
29732
- let l = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
29733
- s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
29734
- let p = (s.hooks ? s.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s);
29735
- return s.hooks && (p = s.hooks.postprocess(p)), p;
29736
- } catch (a) {
29737
- return o(a);
29726
+ let p = a(n, s);
29727
+ s.hooks && (p = s.hooks.processAllTokens(p)), s.walkTokens && this.walkTokens(p, s.walkTokens);
29728
+ let c = u(p, s);
29729
+ return s.hooks && (c = s.hooks.postprocess(c)), c;
29730
+ } catch (p) {
29731
+ return o(p);
29738
29732
  }
29739
29733
  };
29740
29734
  }
@@ -29751,38 +29745,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
29751
29745
  }
29752
29746
  };
29753
29747
  var _ = new B();
29754
- function k(u3, e) {
29755
- return _.parse(u3, e);
29756
- }
29757
- k.options = k.setOptions = function(u3) {
29758
- return _.setOptions(u3), k.defaults = _.defaults, G(k.defaults), k;
29759
- };
29760
- k.getDefaults = L;
29761
- k.defaults = T;
29762
- k.use = function(...u3) {
29763
- return _.use(...u3), k.defaults = _.defaults, G(k.defaults), k;
29764
- };
29765
- k.walkTokens = function(u3, e) {
29766
- return _.walkTokens(u3, e);
29767
- };
29768
- k.parseInline = _.parseInline;
29769
- k.Parser = b;
29770
- k.parser = b.parse;
29771
- k.Renderer = P;
29772
- k.TextRenderer = $;
29773
- k.Lexer = x;
29774
- k.lexer = x.lex;
29775
- k.Tokenizer = y;
29776
- k.Hooks = S;
29777
- k.parse = k;
29778
- k.options;
29779
- k.setOptions;
29780
- k.use;
29781
- k.walkTokens;
29782
- k.parseInline;
29783
- b.parse;
29784
- x.lex;
29785
- k.use({
29748
+ function d(l3, e) {
29749
+ return _.parse(l3, e);
29750
+ }
29751
+ d.options = d.setOptions = function(l3) {
29752
+ return _.setOptions(l3), d.defaults = _.defaults, G(d.defaults), d;
29753
+ };
29754
+ d.getDefaults = L;
29755
+ d.defaults = O;
29756
+ d.use = function(...l3) {
29757
+ return _.use(...l3), d.defaults = _.defaults, G(d.defaults), d;
29758
+ };
29759
+ d.walkTokens = function(l3, e) {
29760
+ return _.walkTokens(l3, e);
29761
+ };
29762
+ d.parseInline = _.parseInline;
29763
+ d.Parser = R;
29764
+ d.parser = R.parse;
29765
+ d.Renderer = P;
29766
+ d.TextRenderer = $;
29767
+ d.Lexer = b;
29768
+ d.lexer = b.lex;
29769
+ d.Tokenizer = y;
29770
+ d.Hooks = S;
29771
+ d.parse = d;
29772
+ d.options;
29773
+ d.setOptions;
29774
+ d.use;
29775
+ d.walkTokens;
29776
+ d.parseInline;
29777
+ R.parse;
29778
+ b.lex;
29779
+ d.use({
29786
29780
  breaks: false,
29787
29781
  // Use proper paragraphs, not <br> tags
29788
29782
  gfm: true
@@ -29793,7 +29787,7 @@ function createDocFromMarkdown(markdown, editor, options = {}) {
29793
29787
  return createDocFromHTML(html, editor, options);
29794
29788
  }
29795
29789
  function convertMarkdownToHTML(markdown) {
29796
- let html = k.parse(markdown, { async: false });
29790
+ let html = d.parse(markdown, { async: false });
29797
29791
  return html.replace(/<\/p>\n<ul>/g, "</p>\n<p>&nbsp;</p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p>&nbsp;</p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p>&nbsp;</p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p>&nbsp;</p>\n<h");
29798
29792
  }
29799
29793
  function processContent({ content, type: type2, editor }) {
@@ -30479,9 +30473,9 @@ var hasRequiredHe;
30479
30473
  function requireHe() {
30480
30474
  if (hasRequiredHe) return he$2.exports;
30481
30475
  hasRequiredHe = 1;
30482
- (function(module, exports) {
30476
+ (function(module, exports$1) {
30483
30477
  (function(root) {
30484
- var freeExports = exports;
30478
+ var freeExports = exports$1;
30485
30479
  var freeModule = module && module.exports == freeExports && module;
30486
30480
  var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal;
30487
30481
  if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
@@ -35533,7 +35527,7 @@ const _SuperConverter = class _SuperConverter {
35533
35527
  static getStoredSuperdocVersion(docx) {
35534
35528
  return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
35535
35529
  }
35536
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.30.0-next.3") {
35530
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.30.0-next.4") {
35537
35531
  return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
35538
35532
  }
35539
35533
  /**
@@ -35930,7 +35924,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
35930
35924
  };
35931
35925
  exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35932
35926
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
35933
- const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
35927
+ const relationships = relsData.elements.find((x) => x.name === "Relationships");
35934
35928
  const newDocRels = [];
35935
35929
  Object.entries(this.headers).forEach(([id, header], index2) => {
35936
35930
  const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
@@ -35971,7 +35965,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35971
35965
  }
35972
35966
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
35973
35967
  if (params.relationships.length) {
35974
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
35968
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
35975
35969
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
35976
35970
  declaration: this.initialJSON?.declaration,
35977
35971
  elements: [
@@ -36025,7 +36019,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36025
36019
  }
36026
36020
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36027
36021
  if (params.relationships.length) {
36028
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36022
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36029
36023
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36030
36024
  declaration: this.initialJSON?.declaration,
36031
36025
  elements: [
@@ -36044,7 +36038,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36044
36038
  };
36045
36039
  exportProcessNewRelationships_fn = function(rels = []) {
36046
36040
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36047
- const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36041
+ const relationships = relsData.elements.find((x) => x.name === "Relationships");
36048
36042
  relationships.elements = mergeRelationshipElements(relationships.elements, rels);
36049
36043
  };
36050
36044
  exportProcessMediaFiles_fn = async function(media = {}) {