superdoc 0.34.6-RC1 → 0.34.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-Cdq6hWaP.cjs → PdfViewer-C8xLNe_n.cjs} +2 -2
- package/dist/chunks/{PdfViewer-Yy390Dyv.es.js → PdfViewer-WfRCZj-e.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CFCpOk3d.cjs → eventemitter3-DmHNHvFX.cjs} +1 -1
- package/dist/chunks/{eventemitter3-BZXKb7j7.es.js → eventemitter3-hYlnBzSA.es.js} +1 -1
- package/dist/chunks/{index-_8cQcYzu-Dj8Emsl2.es.js → index-BENzx4z6-DdFuGCwa.es.js} +1 -1
- package/dist/chunks/{index-_8cQcYzu-CB4RkW2W.cjs → index-BENzx4z6-Ds8akndA.cjs} +1 -1
- package/dist/chunks/{index-QkGtTLUE.cjs → index-CIQILa8l.cjs} +7 -12
- package/dist/chunks/{index-M9d0bJ9k.es.js → index-wZJgMVEg.es.js} +7 -12
- package/dist/chunks/{jszip-B99MTu59.cjs → jszip-BP2FTbpi.cjs} +1 -1
- package/dist/chunks/{jszip-Duxs2YMV.es.js → jszip-jKrsZoMS.es.js} +1 -1
- package/dist/chunks/{super-editor.es-kNY6AOSu.es.js → super-editor.es-B21z_KOS.es.js} +626 -727
- package/dist/chunks/{super-editor.es-C-hpEM8j.cjs → super-editor.es-BVJ4WHrZ.cjs} +673 -774
- package/dist/chunks/{vue-B5QAf5pA.es.js → vue-CKmzTNVs.es.js} +1379 -1420
- package/dist/chunks/{vue-ARQSyfaw.cjs → vue-Cwv-wUpm.cjs} +1379 -1420
- package/dist/chunks/xml-js-BSDu25I7.cjs +3 -0
- package/dist/chunks/xml-js-CBrRls0f.es.js +2 -0
- package/dist/packages/superdoc/src/components/CommentsLayer/use-comment.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Ddl2ZmKy.js → converter-BItdKEMN.js} +301 -394
- package/dist/super-editor/chunks/{docx-zipper-D1BgiAWm.js → docx-zipper-Brh1H7kE.js} +1 -1
- package/dist/super-editor/chunks/{editor-B2T2u3JG.js → editor-BwXcd5wT.js} +59 -67
- package/dist/super-editor/chunks/{index-_8cQcYzu.js → index-BENzx4z6.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-hyRTdNjv.js → toolbar-CiQKWEEf.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/exporter/commentsExporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +975 -1121
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CVyfrKaV.es.js +0 -2
- package/dist/chunks/xml-js-DQa4Ye5C.cjs +0 -3
package/dist/superdoc.umd.js
CHANGED
|
@@ -434,17 +434,17 @@
|
|
|
434
434
|
);
|
|
435
435
|
}
|
|
436
436
|
if (a2 === b2) return 0;
|
|
437
|
-
let
|
|
437
|
+
let x = a2.length;
|
|
438
438
|
let y2 = b2.length;
|
|
439
|
-
for (let i2 = 0, len2 = Math.min(
|
|
439
|
+
for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
|
|
440
440
|
if (a2[i2] !== b2[i2]) {
|
|
441
|
-
|
|
441
|
+
x = a2[i2];
|
|
442
442
|
y2 = b2[i2];
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
if (
|
|
447
|
-
if (y2 <
|
|
446
|
+
if (x < y2) return -1;
|
|
447
|
+
if (y2 < x) return 1;
|
|
448
448
|
return 0;
|
|
449
449
|
};
|
|
450
450
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -693,20 +693,20 @@
|
|
|
693
693
|
thisStart >>>= 0;
|
|
694
694
|
thisEnd >>>= 0;
|
|
695
695
|
if (this === target) return 0;
|
|
696
|
-
let
|
|
696
|
+
let x = thisEnd - thisStart;
|
|
697
697
|
let y2 = end2 - start2;
|
|
698
|
-
const len2 = Math.min(
|
|
698
|
+
const len2 = Math.min(x, y2);
|
|
699
699
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
700
700
|
const targetCopy = target.slice(start2, end2);
|
|
701
701
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
702
702
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
703
|
-
|
|
703
|
+
x = thisCopy[i2];
|
|
704
704
|
y2 = targetCopy[i2];
|
|
705
705
|
break;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
if (
|
|
709
|
-
if (y2 <
|
|
708
|
+
if (x < y2) return -1;
|
|
709
|
+
if (y2 < x) return 1;
|
|
710
710
|
return 0;
|
|
711
711
|
};
|
|
712
712
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -1796,8 +1796,8 @@
|
|
|
1796
1796
|
})(buffer);
|
|
1797
1797
|
const Buffer2 = buffer.Buffer;
|
|
1798
1798
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1799
|
-
function getDefaultExportFromCjs$2(
|
|
1800
|
-
return
|
|
1799
|
+
function getDefaultExportFromCjs$2(x) {
|
|
1800
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1801
1801
|
}
|
|
1802
1802
|
var sax = {};
|
|
1803
1803
|
var events$2 = { exports: {} };
|
|
@@ -1805,13 +1805,13 @@
|
|
|
1805
1805
|
function requireEvents() {
|
|
1806
1806
|
if (hasRequiredEvents) return events$2.exports;
|
|
1807
1807
|
hasRequiredEvents = 1;
|
|
1808
|
-
var
|
|
1809
|
-
var ReflectApply =
|
|
1808
|
+
var R2 = typeof Reflect === "object" ? Reflect : null;
|
|
1809
|
+
var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
|
|
1810
1810
|
return Function.prototype.apply.call(target, receiver, args);
|
|
1811
1811
|
};
|
|
1812
1812
|
var ReflectOwnKeys;
|
|
1813
|
-
if (
|
|
1814
|
-
ReflectOwnKeys =
|
|
1813
|
+
if (R2 && typeof R2.ownKeys === "function") {
|
|
1814
|
+
ReflectOwnKeys = R2.ownKeys;
|
|
1815
1815
|
} else if (Object.getOwnPropertySymbols) {
|
|
1816
1816
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1817
1817
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -2201,8 +2201,8 @@
|
|
|
2201
2201
|
}
|
|
2202
2202
|
return inherits_browser.exports;
|
|
2203
2203
|
}
|
|
2204
|
-
function getDefaultExportFromCjs$1(
|
|
2205
|
-
return
|
|
2204
|
+
function getDefaultExportFromCjs$1(x) {
|
|
2205
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2206
2206
|
}
|
|
2207
2207
|
var browser$1 = { exports: {} };
|
|
2208
2208
|
var process$2 = browser$1.exports = {};
|
|
@@ -2783,17 +2783,17 @@
|
|
|
2783
2783
|
);
|
|
2784
2784
|
}
|
|
2785
2785
|
if (a2 === b2) return 0;
|
|
2786
|
-
let
|
|
2786
|
+
let x = a2.length;
|
|
2787
2787
|
let y2 = b2.length;
|
|
2788
|
-
for (let i22 = 0, len22 = Math.min(
|
|
2788
|
+
for (let i22 = 0, len22 = Math.min(x, y2); i22 < len22; ++i22) {
|
|
2789
2789
|
if (a2[i22] !== b2[i22]) {
|
|
2790
|
-
|
|
2790
|
+
x = a2[i22];
|
|
2791
2791
|
y2 = b2[i22];
|
|
2792
2792
|
break;
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
if (
|
|
2796
|
-
if (y2 <
|
|
2795
|
+
if (x < y2) return -1;
|
|
2796
|
+
if (y2 < x) return 1;
|
|
2797
2797
|
return 0;
|
|
2798
2798
|
};
|
|
2799
2799
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -3042,20 +3042,20 @@
|
|
|
3042
3042
|
thisStart >>>= 0;
|
|
3043
3043
|
thisEnd >>>= 0;
|
|
3044
3044
|
if (this === target) return 0;
|
|
3045
|
-
let
|
|
3045
|
+
let x = thisEnd - thisStart;
|
|
3046
3046
|
let y2 = end2 - start2;
|
|
3047
|
-
const len22 = Math.min(
|
|
3047
|
+
const len22 = Math.min(x, y2);
|
|
3048
3048
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
3049
3049
|
const targetCopy = target.slice(start2, end2);
|
|
3050
3050
|
for (let i22 = 0; i22 < len22; ++i22) {
|
|
3051
3051
|
if (thisCopy[i22] !== targetCopy[i22]) {
|
|
3052
|
-
|
|
3052
|
+
x = thisCopy[i22];
|
|
3053
3053
|
y2 = targetCopy[i22];
|
|
3054
3054
|
break;
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
|
-
if (
|
|
3058
|
-
if (y2 <
|
|
3057
|
+
if (x < y2) return -1;
|
|
3058
|
+
if (y2 < x) return 1;
|
|
3059
3059
|
return 0;
|
|
3060
3060
|
};
|
|
3061
3061
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -4627,15 +4627,15 @@
|
|
|
4627
4627
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
4628
4628
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
4629
4629
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
4630
|
-
getProto$1 = reflectGetProto ? function getProto2(
|
|
4631
|
-
return reflectGetProto(
|
|
4632
|
-
} : originalGetProto ? function getProto2(
|
|
4633
|
-
if (!
|
|
4630
|
+
getProto$1 = reflectGetProto ? function getProto2(O2) {
|
|
4631
|
+
return reflectGetProto(O2);
|
|
4632
|
+
} : originalGetProto ? function getProto2(O2) {
|
|
4633
|
+
if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
|
|
4634
4634
|
throw new TypeError("getProto: not an object");
|
|
4635
4635
|
}
|
|
4636
|
-
return originalGetProto(
|
|
4637
|
-
} : getDunderProto ? function getProto2(
|
|
4638
|
-
return getDunderProto(
|
|
4636
|
+
return originalGetProto(O2);
|
|
4637
|
+
} : getDunderProto ? function getProto2(O2) {
|
|
4638
|
+
return getDunderProto(O2);
|
|
4639
4639
|
} : null;
|
|
4640
4640
|
return getProto$1;
|
|
4641
4641
|
}
|
|
@@ -5313,8 +5313,8 @@
|
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
5315
|
};
|
|
5316
|
-
function isArray2(
|
|
5317
|
-
return toStr.call(
|
|
5316
|
+
function isArray2(x) {
|
|
5317
|
+
return toStr.call(x) === "[object Array]";
|
|
5318
5318
|
}
|
|
5319
5319
|
forEach = function forEach2(list2, iterator2, thisArg) {
|
|
5320
5320
|
if (!isCallable2(iterator2)) {
|
|
@@ -5923,10 +5923,10 @@
|
|
|
5923
5923
|
var i2 = 1;
|
|
5924
5924
|
var args = arguments;
|
|
5925
5925
|
var len2 = args.length;
|
|
5926
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
5927
|
-
if (
|
|
5928
|
-
if (i2 >= len2) return
|
|
5929
|
-
switch (
|
|
5926
|
+
var str = String(f2).replace(formatRegExp, function(x2) {
|
|
5927
|
+
if (x2 === "%%") return "%";
|
|
5928
|
+
if (i2 >= len2) return x2;
|
|
5929
|
+
switch (x2) {
|
|
5930
5930
|
case "%s":
|
|
5931
5931
|
return String(args[i2++]);
|
|
5932
5932
|
case "%d":
|
|
@@ -5938,14 +5938,14 @@
|
|
|
5938
5938
|
return "[Circular]";
|
|
5939
5939
|
}
|
|
5940
5940
|
default:
|
|
5941
|
-
return
|
|
5941
|
+
return x2;
|
|
5942
5942
|
}
|
|
5943
5943
|
});
|
|
5944
|
-
for (var
|
|
5945
|
-
if (isNull(
|
|
5946
|
-
str += " " +
|
|
5944
|
+
for (var x = args[i2]; i2 < len2; x = args[++i2]) {
|
|
5945
|
+
if (isNull(x) || !isObject2(x)) {
|
|
5946
|
+
str += " " + x;
|
|
5947
5947
|
} else {
|
|
5948
|
-
str += " " + inspect2(
|
|
5948
|
+
str += " " + inspect2(x);
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
5951
5951
|
return str;
|
|
@@ -7510,7 +7510,6 @@
|
|
|
7510
7510
|
}
|
|
7511
7511
|
var string_decoder = {};
|
|
7512
7512
|
var safeBuffer = { exports: {} };
|
|
7513
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
7514
7513
|
var hasRequiredSafeBuffer;
|
|
7515
7514
|
function requireSafeBuffer() {
|
|
7516
7515
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
@@ -7532,7 +7531,6 @@
|
|
|
7532
7531
|
function SafeBuffer(arg, encodingOrOffset, length2) {
|
|
7533
7532
|
return Buffer3(arg, encodingOrOffset, length2);
|
|
7534
7533
|
}
|
|
7535
|
-
SafeBuffer.prototype = Object.create(Buffer3.prototype);
|
|
7536
7534
|
copyProps(Buffer3, SafeBuffer);
|
|
7537
7535
|
SafeBuffer.from = function(arg, encodingOrOffset, length2) {
|
|
7538
7536
|
if (typeof arg === "number") {
|
|
@@ -8810,9 +8808,9 @@
|
|
|
8810
8808
|
return from2(Readable, iterable, opts);
|
|
8811
8809
|
};
|
|
8812
8810
|
}
|
|
8813
|
-
function indexOf(xs,
|
|
8811
|
+
function indexOf(xs, x) {
|
|
8814
8812
|
for (var i2 = 0, l3 = xs.length; i2 < l3; i2++) {
|
|
8815
|
-
if (xs[i2] ===
|
|
8813
|
+
if (xs[i2] === x) return i2;
|
|
8816
8814
|
}
|
|
8817
8815
|
return -1;
|
|
8818
8816
|
}
|
|
@@ -9270,27 +9268,27 @@
|
|
|
9270
9268
|
this._parser = new SAXParser(strict, opt);
|
|
9271
9269
|
this.writable = true;
|
|
9272
9270
|
this.readable = true;
|
|
9273
|
-
var
|
|
9271
|
+
var me = this;
|
|
9274
9272
|
this._parser.onend = function() {
|
|
9275
|
-
|
|
9273
|
+
me.emit("end");
|
|
9276
9274
|
};
|
|
9277
9275
|
this._parser.onerror = function(er) {
|
|
9278
|
-
|
|
9279
|
-
|
|
9276
|
+
me.emit("error", er);
|
|
9277
|
+
me._parser.error = null;
|
|
9280
9278
|
};
|
|
9281
9279
|
this._decoder = null;
|
|
9282
9280
|
streamWraps.forEach(function(ev) {
|
|
9283
|
-
Object.defineProperty(
|
|
9281
|
+
Object.defineProperty(me, "on" + ev, {
|
|
9284
9282
|
get: function() {
|
|
9285
|
-
return
|
|
9283
|
+
return me._parser["on" + ev];
|
|
9286
9284
|
},
|
|
9287
9285
|
set: function(h2) {
|
|
9288
9286
|
if (!h2) {
|
|
9289
|
-
|
|
9290
|
-
|
|
9287
|
+
me.removeAllListeners(ev);
|
|
9288
|
+
me._parser["on" + ev] = h2;
|
|
9291
9289
|
return h2;
|
|
9292
9290
|
}
|
|
9293
|
-
|
|
9291
|
+
me.on(ev, h2);
|
|
9294
9292
|
},
|
|
9295
9293
|
enumerable: true,
|
|
9296
9294
|
configurable: false
|
|
@@ -9322,15 +9320,15 @@
|
|
|
9322
9320
|
return true;
|
|
9323
9321
|
};
|
|
9324
9322
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9325
|
-
var
|
|
9326
|
-
if (!
|
|
9327
|
-
|
|
9323
|
+
var me = this;
|
|
9324
|
+
if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9325
|
+
me._parser["on" + ev] = function() {
|
|
9328
9326
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9329
9327
|
args.splice(0, 0, ev);
|
|
9330
|
-
|
|
9328
|
+
me.emit.apply(me, args);
|
|
9331
9329
|
};
|
|
9332
9330
|
}
|
|
9333
|
-
return Stream.prototype.on.call(
|
|
9331
|
+
return Stream.prototype.on.call(me, ev, handler2);
|
|
9334
9332
|
};
|
|
9335
9333
|
var CDATA = "[CDATA[";
|
|
9336
9334
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9922,9 +9920,9 @@
|
|
|
9922
9920
|
var tag = parser.tag = parser.tags.pop();
|
|
9923
9921
|
parser.tagName = parser.tag.name;
|
|
9924
9922
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9925
|
-
var
|
|
9923
|
+
var x = {};
|
|
9926
9924
|
for (var i2 in tag.ns) {
|
|
9927
|
-
|
|
9925
|
+
x[i2] = tag.ns[i2];
|
|
9928
9926
|
}
|
|
9929
9927
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9930
9928
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -11404,8 +11402,8 @@
|
|
|
11404
11402
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11405
11403
|
return unsafeStringify$1(rnds);
|
|
11406
11404
|
}
|
|
11407
|
-
function getDefaultExportFromCjs$3(
|
|
11408
|
-
return
|
|
11405
|
+
function getDefaultExportFromCjs$3(x) {
|
|
11406
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11409
11407
|
}
|
|
11410
11408
|
const CRC_TABLE = new Int32Array([
|
|
11411
11409
|
0,
|
|
@@ -15221,8 +15219,8 @@
|
|
|
15221
15219
|
const points = [];
|
|
15222
15220
|
polygonNode.elements.forEach((element2) => {
|
|
15223
15221
|
if (["wp:start", "wp:lineTo"].includes(element2.name)) {
|
|
15224
|
-
const { x
|
|
15225
|
-
points.push([polygonUnitsToPixels(
|
|
15222
|
+
const { x, y: y2 } = element2.attributes;
|
|
15223
|
+
points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
|
|
15226
15224
|
}
|
|
15227
15225
|
});
|
|
15228
15226
|
if (points.length > 1) {
|
|
@@ -15245,13 +15243,13 @@
|
|
|
15245
15243
|
elements: []
|
|
15246
15244
|
};
|
|
15247
15245
|
points.forEach((point2, index2) => {
|
|
15248
|
-
const [
|
|
15246
|
+
const [x, y2] = point2;
|
|
15249
15247
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15250
15248
|
const pointNode = {
|
|
15251
15249
|
name: tagName,
|
|
15252
15250
|
type: tagName,
|
|
15253
15251
|
attributes: {
|
|
15254
|
-
x: pixelsToPolygonUnits(
|
|
15252
|
+
x: pixelsToPolygonUnits(x),
|
|
15255
15253
|
y: pixelsToPolygonUnits(y2)
|
|
15256
15254
|
}
|
|
15257
15255
|
};
|
|
@@ -22916,7 +22914,7 @@
|
|
|
22916
22914
|
const right2 = Math.max(start2.right, end2.right);
|
|
22917
22915
|
const width = right2 - left2;
|
|
22918
22916
|
const height = bottom2 - top2;
|
|
22919
|
-
const
|
|
22917
|
+
const x = left2;
|
|
22920
22918
|
const y2 = top2;
|
|
22921
22919
|
const data = {
|
|
22922
22920
|
top: top2,
|
|
@@ -22925,7 +22923,7 @@
|
|
|
22925
22923
|
right: right2,
|
|
22926
22924
|
width,
|
|
22927
22925
|
height,
|
|
22928
|
-
x
|
|
22926
|
+
x,
|
|
22929
22927
|
y: y2
|
|
22930
22928
|
};
|
|
22931
22929
|
return {
|
|
@@ -23014,31 +23012,25 @@
|
|
|
23014
23012
|
function L() {
|
|
23015
23013
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
23016
23014
|
}
|
|
23017
|
-
var
|
|
23015
|
+
var O = L();
|
|
23018
23016
|
function G(l3) {
|
|
23019
|
-
|
|
23017
|
+
O = l3;
|
|
23020
23018
|
}
|
|
23021
23019
|
var E = { exec: () => null };
|
|
23022
|
-
function
|
|
23020
|
+
function h$2(l3, e = "") {
|
|
23023
23021
|
let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i2) => {
|
|
23024
23022
|
let s2 = typeof i2 == "string" ? i2 : i2.source;
|
|
23025
23023
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
23026
23024
|
}, getRegex: () => new RegExp(t, e) };
|
|
23027
23025
|
return n;
|
|
23028
23026
|
}
|
|
23029
|
-
var
|
|
23030
|
-
|
|
23031
|
-
|
|
23032
|
-
} catch {
|
|
23033
|
-
return false;
|
|
23034
|
-
}
|
|
23035
|
-
})(), 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") }, Re = /^(?:[ \t]*(?:\n|$))+/, Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = d$1(ie$2).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(), ye = d$1(ie$2).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]+)*)/, Pe = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = d$1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = d$1(/^( {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 = d$1("^ {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 = d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = d$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: Le, code: Te, def: Se, fences: Oe, heading: we, hr: I, html: _e, lheading: oe, list: $e, newline: Re, paragraph: ae, table: E, text: Pe }, re$1 = d$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\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(), Me = { ...K$1, lheading: ye, table: re$1, paragraph: d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re$1).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() }, ze = { ...K$1, html: d$1(`^ *(?: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: d$1(j).replace("hr", I).replace("heading", ` *#{1,6} *[^
|
|
23036
|
-
]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\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, Ce = d$1(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ve = d$1(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, De = d$1(ce, "u").replace(/punct/g, D).getRegex(), He = d$1(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = d$1(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = d$1(he$3, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), Ne = d$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Fe = d$1(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), je = d$1(/^<(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(), Qe = d$1(U).replace("(?:-->|$)", "-->").getRegex(), Ue = d$1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q$1 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d$1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q$1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d$1(/^!?\[(label)\]\[(ref)\]/).replace("label", q$1).replace("ref", Q).getRegex(), ke = d$1(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), We = d$1("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: E, anyPunctuation: Fe, autolink: je, blockSkip: ve, br: le, code: Ee, del: E, emStrongLDelim: De, emStrongRDelimAst: Ze, emStrongRDelimUnd: Ne, escape: Ae, link: Ke, nolink: ke, punctuation: Ce, reflink: de, reflinkSearch: We, tag: Ue, text: Ie, url: E }, Xe = { ...X, link: d$1(/^!?\[(label)\]\((.*?)\)/).replace("label", q$1).getRegex(), reflink: d$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q$1).getRegex() }, N = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: He, url: d$1(/^((?: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: d$1(/^([`~]+|[^`~])(?:(?= {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() }, Je = { ...N, br: d$1(le).replace("{2,}", "*").getRegex(), text: d$1(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Me, pedantic: ze }, M$1 = { normal: X, gfm: N, breaks: Je, pedantic: Xe };
|
|
23037
|
-
var Ve = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (l3) => Ve[l3];
|
|
23027
|
+
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$2 = h$2(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$2(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$2(/^ {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$2(/^( {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$2("^ {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$2(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$2(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re$1 = h$2("^ *([^\\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$1, lheading: Te, table: re$1, paragraph: h$2(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re$1).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$1, html: h$2(`^ *(?: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$2(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
23028
|
+
]`).replace("lheading", ie$2).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$2(/^((?![*_])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$2(pe, "u").replace(/punct/g, D).getRegex(), ve = h$2(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h$2(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h$2(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h$2("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)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$2(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h$2(/^<(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$2(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h$2("^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$1 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h$2(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q$1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h$2(/^!?\[(label)\]\[(ref)\]/).replace("label", q$1).replace("ref", Q).getRegex(), de = h$2(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h$2("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$2(/^!?\[(label)\]\((.*?)\)/).replace("label", q$1).getRegex(), reflink: h$2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q$1).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h$2(/^((?: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$2(ae).replace("{2,}", "*").getRegex(), text: h$2(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
|
|
23029
|
+
var Xe = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ke = (l3) => Xe[l3];
|
|
23038
23030
|
function w(l3, e) {
|
|
23039
23031
|
if (e) {
|
|
23040
|
-
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace,
|
|
23041
|
-
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode,
|
|
23032
|
+
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
|
|
23033
|
+
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
|
|
23042
23034
|
return l3;
|
|
23043
23035
|
}
|
|
23044
23036
|
function J(l3) {
|
|
@@ -23050,10 +23042,10 @@
|
|
|
23050
23042
|
return l3;
|
|
23051
23043
|
}
|
|
23052
23044
|
function V(l3, e) {
|
|
23053
|
-
let t = l3.replace(m.findPipe, (i2, s2,
|
|
23054
|
-
let
|
|
23055
|
-
for (; --
|
|
23056
|
-
return
|
|
23045
|
+
let t = l3.replace(m.findPipe, (i2, s2, o) => {
|
|
23046
|
+
let a2 = false, u = s2;
|
|
23047
|
+
for (; --u >= 0 && o[u] === "\\"; ) a2 = !a2;
|
|
23048
|
+
return a2 ? "|" : " |";
|
|
23057
23049
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
23058
23050
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
23059
23051
|
else for (; n.length < e; ) n.push("");
|
|
@@ -23071,7 +23063,7 @@
|
|
|
23071
23063
|
}
|
|
23072
23064
|
return l3.slice(0, n - r2);
|
|
23073
23065
|
}
|
|
23074
|
-
function
|
|
23066
|
+
function ge(l3, e) {
|
|
23075
23067
|
if (l3.indexOf(e[1]) === -1) return -1;
|
|
23076
23068
|
let t = 0;
|
|
23077
23069
|
for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
|
|
@@ -23079,13 +23071,13 @@
|
|
|
23079
23071
|
else if (l3[n] === e[1] && (t--, t < 0)) return n;
|
|
23080
23072
|
return t > 0 ? -2 : -1;
|
|
23081
23073
|
}
|
|
23082
|
-
function
|
|
23083
|
-
let i2 = e.href, s2 = e.title || null,
|
|
23074
|
+
function fe(l3, e, t, n, r2) {
|
|
23075
|
+
let i2 = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
23084
23076
|
n.state.inLink = true;
|
|
23085
|
-
let
|
|
23086
|
-
return n.state.inLink = false,
|
|
23077
|
+
let a2 = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i2, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
23078
|
+
return n.state.inLink = false, a2;
|
|
23087
23079
|
}
|
|
23088
|
-
function
|
|
23080
|
+
function Je(l3, e, t) {
|
|
23089
23081
|
let n = l3.match(t.other.indentCodeCompensation);
|
|
23090
23082
|
if (n === null) return e;
|
|
23091
23083
|
let r2 = n[1];
|
|
@@ -23093,8 +23085,8 @@
|
|
|
23093
23085
|
`).map((i2) => {
|
|
23094
23086
|
let s2 = i2.match(t.other.beginningSpace);
|
|
23095
23087
|
if (s2 === null) return i2;
|
|
23096
|
-
let [
|
|
23097
|
-
return
|
|
23088
|
+
let [o] = s2;
|
|
23089
|
+
return o.length >= r2.length ? i2.slice(r2.length) : i2;
|
|
23098
23090
|
}).join(`
|
|
23099
23091
|
`);
|
|
23100
23092
|
}
|
|
@@ -23103,7 +23095,7 @@
|
|
|
23103
23095
|
__publicField$2(this, "options");
|
|
23104
23096
|
__publicField$2(this, "rules");
|
|
23105
23097
|
__publicField$2(this, "lexer");
|
|
23106
|
-
this.options = e ||
|
|
23098
|
+
this.options = e || O;
|
|
23107
23099
|
}
|
|
23108
23100
|
space(e) {
|
|
23109
23101
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -23120,7 +23112,7 @@
|
|
|
23120
23112
|
fences(e) {
|
|
23121
23113
|
let t = this.rules.block.fences.exec(e);
|
|
23122
23114
|
if (t) {
|
|
23123
|
-
let n = t[0], r2 =
|
|
23115
|
+
let n = t[0], r2 = Je(n, t[3] || "", this.rules);
|
|
23124
23116
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
23125
23117
|
}
|
|
23126
23118
|
}
|
|
@@ -23147,32 +23139,32 @@
|
|
|
23147
23139
|
`).split(`
|
|
23148
23140
|
`), r2 = "", i2 = "", s2 = [];
|
|
23149
23141
|
for (; n.length > 0; ) {
|
|
23150
|
-
let
|
|
23151
|
-
for (
|
|
23152
|
-
else if (!
|
|
23142
|
+
let o = false, a2 = [], u;
|
|
23143
|
+
for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a2.push(n[u]), o = true;
|
|
23144
|
+
else if (!o) a2.push(n[u]);
|
|
23153
23145
|
else break;
|
|
23154
|
-
n = n.slice(
|
|
23155
|
-
let
|
|
23156
|
-
`), c2 =
|
|
23146
|
+
n = n.slice(u);
|
|
23147
|
+
let p2 = a2.join(`
|
|
23148
|
+
`), c2 = p2.replace(this.rules.other.blockquoteSetextReplace, `
|
|
23157
23149
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
23158
23150
|
r2 = r2 ? `${r2}
|
|
23159
|
-
${
|
|
23151
|
+
${p2}` : p2, i2 = i2 ? `${i2}
|
|
23160
23152
|
${c2}` : c2;
|
|
23161
|
-
let
|
|
23162
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top =
|
|
23163
|
-
let
|
|
23164
|
-
if (
|
|
23165
|
-
if (
|
|
23166
|
-
let
|
|
23153
|
+
let f2 = this.lexer.state.top;
|
|
23154
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
|
|
23155
|
+
let k2 = s2.at(-1);
|
|
23156
|
+
if (k2?.type === "code") break;
|
|
23157
|
+
if (k2?.type === "blockquote") {
|
|
23158
|
+
let x = k2, g = x.raw + `
|
|
23167
23159
|
` + n.join(`
|
|
23168
|
-
`),
|
|
23169
|
-
s2[s2.length - 1] =
|
|
23160
|
+
`), T = this.blockquote(g);
|
|
23161
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i2 = i2.substring(0, i2.length - x.text.length) + T.text;
|
|
23170
23162
|
break;
|
|
23171
|
-
} else if (
|
|
23172
|
-
let
|
|
23163
|
+
} else if (k2?.type === "list") {
|
|
23164
|
+
let x = k2, g = x.raw + `
|
|
23173
23165
|
` + n.join(`
|
|
23174
|
-
`),
|
|
23175
|
-
s2[s2.length - 1] =
|
|
23166
|
+
`), T = this.list(g);
|
|
23167
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i2 = i2.substring(0, i2.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
|
|
23176
23168
|
`);
|
|
23177
23169
|
continue;
|
|
23178
23170
|
}
|
|
@@ -23185,45 +23177,45 @@ ${c2}` : c2;
|
|
|
23185
23177
|
if (t) {
|
|
23186
23178
|
let n = t[1].trim(), r2 = n.length > 1, i2 = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
|
|
23187
23179
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
23188
|
-
let s2 = this.rules.other.listItemRegex(n),
|
|
23180
|
+
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
23189
23181
|
for (; e; ) {
|
|
23190
|
-
let
|
|
23182
|
+
let u = false, p2 = "", c2 = "";
|
|
23191
23183
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
23192
|
-
|
|
23193
|
-
let
|
|
23194
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
23195
|
-
`, 1)[0],
|
|
23196
|
-
if (this.options.pedantic ? (
|
|
23197
|
-
`, e = e.substring(
|
|
23198
|
-
let H = this.rules.other.nextBulletRegex(
|
|
23184
|
+
p2 = t[0], e = e.substring(p2.length);
|
|
23185
|
+
let f2 = t[2].split(`
|
|
23186
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
|
|
23187
|
+
`, 1)[0], x = !f2.trim(), g = 0;
|
|
23188
|
+
if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p2 += k2 + `
|
|
23189
|
+
`, e = e.substring(k2.length + 1), u = true), !u) {
|
|
23190
|
+
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);
|
|
23199
23191
|
for (; e; ) {
|
|
23200
23192
|
let Z = e.split(`
|
|
23201
23193
|
`, 1)[0], A2;
|
|
23202
|
-
if (
|
|
23203
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
23204
|
-
` + A2.slice(
|
|
23194
|
+
if (k2 = Z, this.options.pedantic ? (k2 = k2.replace(this.rules.other.listReplaceNesting, " "), A2 = k2) : A2 = k2.replace(this.rules.other.tabCharGlobal, " "), te.test(k2) || ne.test(k2) || me.test(k2) || H.test(k2) || ee.test(k2)) break;
|
|
23195
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
|
|
23196
|
+
` + A2.slice(g);
|
|
23205
23197
|
else {
|
|
23206
|
-
if (
|
|
23198
|
+
if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
|
|
23207
23199
|
c2 += `
|
|
23208
|
-
` +
|
|
23200
|
+
` + k2;
|
|
23209
23201
|
}
|
|
23210
|
-
!
|
|
23211
|
-
`, e = e.substring(Z.length + 1),
|
|
23202
|
+
!x && !k2.trim() && (x = true), p2 += Z + `
|
|
23203
|
+
`, e = e.substring(Z.length + 1), f2 = A2.slice(g);
|
|
23212
23204
|
}
|
|
23213
23205
|
}
|
|
23214
|
-
i2.loose || (
|
|
23215
|
-
let
|
|
23216
|
-
this.options.gfm && (
|
|
23206
|
+
i2.loose || (o ? i2.loose = true : this.rules.other.doubleBlankLine.test(p2) && (o = true));
|
|
23207
|
+
let T = null, Y2;
|
|
23208
|
+
this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i2.items.push({ type: "list_item", raw: p2, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i2.raw += p2;
|
|
23217
23209
|
}
|
|
23218
|
-
let
|
|
23219
|
-
if (
|
|
23210
|
+
let a2 = i2.items.at(-1);
|
|
23211
|
+
if (a2) a2.raw = a2.raw.trimEnd(), a2.text = a2.text.trimEnd();
|
|
23220
23212
|
else return;
|
|
23221
23213
|
i2.raw = i2.raw.trimEnd();
|
|
23222
|
-
for (let
|
|
23223
|
-
let
|
|
23214
|
+
for (let u = 0; u < i2.items.length; u++) if (this.lexer.state.top = false, i2.items[u].tokens = this.lexer.blockTokens(i2.items[u].text, []), !i2.loose) {
|
|
23215
|
+
let p2 = i2.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p2.length > 0 && p2.some((f2) => this.rules.other.anyLine.test(f2.raw));
|
|
23224
23216
|
i2.loose = c2;
|
|
23225
23217
|
}
|
|
23226
|
-
if (i2.loose) for (let
|
|
23218
|
+
if (i2.loose) for (let u = 0; u < i2.items.length; u++) i2.items[u].loose = true;
|
|
23227
23219
|
return i2;
|
|
23228
23220
|
}
|
|
23229
23221
|
}
|
|
@@ -23244,9 +23236,9 @@ ${c2}` : c2;
|
|
|
23244
23236
|
let n = V(t[1]), r2 = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i2 = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
23245
23237
|
`) : [], s2 = { type: "table", raw: t[0], header: [], align: [], rows: [] };
|
|
23246
23238
|
if (n.length === r2.length) {
|
|
23247
|
-
for (let
|
|
23248
|
-
for (let
|
|
23249
|
-
for (let
|
|
23239
|
+
for (let o of r2) this.rules.other.tableAlignRight.test(o) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s2.align.push("left") : s2.align.push(null);
|
|
23240
|
+
for (let o = 0; o < n.length; o++) s2.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s2.align[o] });
|
|
23241
|
+
for (let o of i2) s2.rows.push(V(o, s2.header.length).map((a2, u) => ({ text: a2, tokens: this.lexer.inline(a2), header: false, align: s2.align[u] })));
|
|
23250
23242
|
return s2;
|
|
23251
23243
|
}
|
|
23252
23244
|
}
|
|
@@ -23283,11 +23275,11 @@ ${c2}` : c2;
|
|
|
23283
23275
|
let s2 = z(n.slice(0, -1), "\\");
|
|
23284
23276
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
23285
23277
|
} else {
|
|
23286
|
-
let s2 =
|
|
23278
|
+
let s2 = ge(t[2], "()");
|
|
23287
23279
|
if (s2 === -2) return;
|
|
23288
23280
|
if (s2 > -1) {
|
|
23289
|
-
let
|
|
23290
|
-
t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0,
|
|
23281
|
+
let a2 = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
23282
|
+
t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, a2).trim(), t[3] = "";
|
|
23291
23283
|
}
|
|
23292
23284
|
}
|
|
23293
23285
|
let r2 = t[2], i2 = "";
|
|
@@ -23295,7 +23287,7 @@ ${c2}` : c2;
|
|
|
23295
23287
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
23296
23288
|
s2 && (r2 = s2[1], i2 = s2[3]);
|
|
23297
23289
|
} else i2 = t[3] ? t[3].slice(1, -1) : "";
|
|
23298
|
-
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)),
|
|
23290
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i2 && i2.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
|
|
23299
23291
|
}
|
|
23300
23292
|
}
|
|
23301
23293
|
reflink(e, t) {
|
|
@@ -23306,32 +23298,32 @@ ${c2}` : c2;
|
|
|
23306
23298
|
let s2 = n[0].charAt(0);
|
|
23307
23299
|
return { type: "text", raw: s2, text: s2 };
|
|
23308
23300
|
}
|
|
23309
|
-
return
|
|
23301
|
+
return fe(n, i2, n[0], this.lexer, this.rules);
|
|
23310
23302
|
}
|
|
23311
23303
|
}
|
|
23312
23304
|
emStrong(e, t, n = "") {
|
|
23313
23305
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
23314
23306
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
23315
23307
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
23316
|
-
let s2 = [...r2[0]].length - 1,
|
|
23308
|
+
let s2 = [...r2[0]].length - 1, o, a2, u = s2, p2 = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
23317
23309
|
for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
|
|
23318
|
-
if (
|
|
23319
|
-
if (
|
|
23320
|
-
|
|
23310
|
+
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
23311
|
+
if (a2 = [...o].length, r2[3] || r2[4]) {
|
|
23312
|
+
u += a2;
|
|
23321
23313
|
continue;
|
|
23322
|
-
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 +
|
|
23323
|
-
|
|
23314
|
+
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a2) % 3)) {
|
|
23315
|
+
p2 += a2;
|
|
23324
23316
|
continue;
|
|
23325
23317
|
}
|
|
23326
|
-
if (
|
|
23327
|
-
|
|
23328
|
-
let
|
|
23329
|
-
if (Math.min(s2,
|
|
23330
|
-
let
|
|
23331
|
-
return { type: "em", raw:
|
|
23318
|
+
if (u -= a2, u > 0) continue;
|
|
23319
|
+
a2 = Math.min(a2, a2 + u + p2);
|
|
23320
|
+
let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a2);
|
|
23321
|
+
if (Math.min(s2, a2) % 2) {
|
|
23322
|
+
let g = k2.slice(1, -1);
|
|
23323
|
+
return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
|
|
23332
23324
|
}
|
|
23333
|
-
let
|
|
23334
|
-
return { type: "strong", raw:
|
|
23325
|
+
let x = k2.slice(2, -2);
|
|
23326
|
+
return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
|
|
23335
23327
|
}
|
|
23336
23328
|
}
|
|
23337
23329
|
}
|
|
@@ -23380,19 +23372,19 @@ ${c2}` : c2;
|
|
|
23380
23372
|
}
|
|
23381
23373
|
}
|
|
23382
23374
|
};
|
|
23383
|
-
var
|
|
23375
|
+
var b = class l {
|
|
23384
23376
|
constructor(e) {
|
|
23385
23377
|
__publicField$2(this, "tokens");
|
|
23386
23378
|
__publicField$2(this, "options");
|
|
23387
23379
|
__publicField$2(this, "state");
|
|
23388
23380
|
__publicField$2(this, "tokenizer");
|
|
23389
23381
|
__publicField$2(this, "inlineQueue");
|
|
23390
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
23391
|
-
let t = { other: m, block:
|
|
23392
|
-
this.options.pedantic ? (t.block =
|
|
23382
|
+
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 };
|
|
23383
|
+
let t = { other: m, block: I.normal, inline: M$1.normal };
|
|
23384
|
+
this.options.pedantic ? (t.block = I.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
23393
23385
|
}
|
|
23394
23386
|
static get rules() {
|
|
23395
|
-
return { block:
|
|
23387
|
+
return { block: I, inline: M$1 };
|
|
23396
23388
|
}
|
|
23397
23389
|
static lex(e, t) {
|
|
23398
23390
|
return new l(t).lex(e);
|
|
@@ -23472,9 +23464,9 @@ ${c2}` : c2;
|
|
|
23472
23464
|
}
|
|
23473
23465
|
let i2 = e;
|
|
23474
23466
|
if (this.options.extensions?.startBlock) {
|
|
23475
|
-
let s2 = 1 / 0,
|
|
23476
|
-
this.options.extensions.startBlock.forEach((
|
|
23477
|
-
|
|
23467
|
+
let s2 = 1 / 0, o = e.slice(1), a2;
|
|
23468
|
+
this.options.extensions.startBlock.forEach((u) => {
|
|
23469
|
+
a2 = u.call({ lexer: this }, o), typeof a2 == "number" && a2 >= 0 && (s2 = Math.min(s2, a2));
|
|
23478
23470
|
}), s2 < 1 / 0 && s2 >= 0 && (i2 = e.substring(0, s2 + 1));
|
|
23479
23471
|
}
|
|
23480
23472
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i2))) {
|
|
@@ -23514,12 +23506,11 @@ ${c2}` : c2;
|
|
|
23514
23506
|
if (o.length > 0) for (; (r2 = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; ) o.includes(r2[0].slice(r2[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
23515
23507
|
}
|
|
23516
23508
|
for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
23517
|
-
|
|
23518
|
-
for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i2 = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i2) + "[" + "a".repeat(r2[0].length - i2 - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
23509
|
+
for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
23519
23510
|
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
23520
|
-
let
|
|
23511
|
+
let i2 = false, s2 = "";
|
|
23521
23512
|
for (; e; ) {
|
|
23522
|
-
|
|
23513
|
+
i2 || (s2 = ""), i2 = false;
|
|
23523
23514
|
let o;
|
|
23524
23515
|
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;
|
|
23525
23516
|
if (o = this.tokenizer.escape(e)) {
|
|
@@ -23540,7 +23531,7 @@ ${c2}` : c2;
|
|
|
23540
23531
|
o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
23541
23532
|
continue;
|
|
23542
23533
|
}
|
|
23543
|
-
if (o = this.tokenizer.emStrong(e, n,
|
|
23534
|
+
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
23544
23535
|
e = e.substring(o.raw.length), t.push(o);
|
|
23545
23536
|
continue;
|
|
23546
23537
|
}
|
|
@@ -23564,15 +23555,15 @@ ${c2}` : c2;
|
|
|
23564
23555
|
e = e.substring(o.raw.length), t.push(o);
|
|
23565
23556
|
continue;
|
|
23566
23557
|
}
|
|
23567
|
-
let
|
|
23558
|
+
let a2 = e;
|
|
23568
23559
|
if (this.options.extensions?.startInline) {
|
|
23569
|
-
let u = 1 / 0,
|
|
23570
|
-
this.options.extensions.startInline.forEach((
|
|
23571
|
-
|
|
23572
|
-
}), u < 1 / 0 && u >= 0 && (
|
|
23560
|
+
let u = 1 / 0, p2 = e.slice(1), c2;
|
|
23561
|
+
this.options.extensions.startInline.forEach((f2) => {
|
|
23562
|
+
c2 = f2.call({ lexer: this }, p2), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
|
|
23563
|
+
}), u < 1 / 0 && u >= 0 && (a2 = e.substring(0, u + 1));
|
|
23573
23564
|
}
|
|
23574
|
-
if (o = this.tokenizer.inlineText(
|
|
23575
|
-
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (
|
|
23565
|
+
if (o = this.tokenizer.inlineText(a2)) {
|
|
23566
|
+
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i2 = true;
|
|
23576
23567
|
let u = t.at(-1);
|
|
23577
23568
|
u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
23578
23569
|
continue;
|
|
@@ -23592,7 +23583,7 @@ ${c2}` : c2;
|
|
|
23592
23583
|
constructor(e) {
|
|
23593
23584
|
__publicField$2(this, "options");
|
|
23594
23585
|
__publicField$2(this, "parser");
|
|
23595
|
-
this.options = e ||
|
|
23586
|
+
this.options = e || O;
|
|
23596
23587
|
}
|
|
23597
23588
|
space(e) {
|
|
23598
23589
|
return "";
|
|
@@ -23625,9 +23616,9 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
23625
23616
|
}
|
|
23626
23617
|
list(e) {
|
|
23627
23618
|
let t = e.ordered, n = e.start, r2 = "";
|
|
23628
|
-
for (let
|
|
23629
|
-
let
|
|
23630
|
-
r2 += this.listitem(
|
|
23619
|
+
for (let o = 0; o < e.items.length; o++) {
|
|
23620
|
+
let a2 = e.items[o];
|
|
23621
|
+
r2 += this.listitem(a2);
|
|
23631
23622
|
}
|
|
23632
23623
|
let i2 = t ? "ol" : "ul", s2 = t && n !== 1 ? ' start="' + n + '"' : "";
|
|
23633
23624
|
return "<" + i2 + s2 + `>
|
|
@@ -23658,7 +23649,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
23658
23649
|
for (let i2 = 0; i2 < e.rows.length; i2++) {
|
|
23659
23650
|
let s2 = e.rows[i2];
|
|
23660
23651
|
n = "";
|
|
23661
|
-
for (let
|
|
23652
|
+
for (let o = 0; o < s2.length; o++) n += this.tablecell(s2[o]);
|
|
23662
23653
|
r2 += this.tablerow({ text: n });
|
|
23663
23654
|
}
|
|
23664
23655
|
return r2 && (r2 = `<tbody>${r2}</tbody>`), `<table>
|
|
@@ -23740,12 +23731,12 @@ ${e}</tr>
|
|
|
23740
23731
|
return "";
|
|
23741
23732
|
}
|
|
23742
23733
|
};
|
|
23743
|
-
var
|
|
23734
|
+
var R = class l2 {
|
|
23744
23735
|
constructor(e) {
|
|
23745
23736
|
__publicField$2(this, "options");
|
|
23746
23737
|
__publicField$2(this, "renderer");
|
|
23747
23738
|
__publicField$2(this, "textRenderer");
|
|
23748
|
-
this.options = e ||
|
|
23739
|
+
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 $$1();
|
|
23749
23740
|
}
|
|
23750
23741
|
static parse(e, t) {
|
|
23751
23742
|
return new l2(t).parse(e);
|
|
@@ -23758,9 +23749,9 @@ ${e}</tr>
|
|
|
23758
23749
|
for (let r2 = 0; r2 < e.length; r2++) {
|
|
23759
23750
|
let i2 = e[r2];
|
|
23760
23751
|
if (this.options.extensions?.renderers?.[i2.type]) {
|
|
23761
|
-
let
|
|
23762
|
-
if (
|
|
23763
|
-
n +=
|
|
23752
|
+
let o = i2, a2 = this.options.extensions.renderers[o.type].call({ parser: this }, o);
|
|
23753
|
+
if (a2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
|
|
23754
|
+
n += a2 || "";
|
|
23764
23755
|
continue;
|
|
23765
23756
|
}
|
|
23766
23757
|
}
|
|
@@ -23807,16 +23798,16 @@ ${e}</tr>
|
|
|
23807
23798
|
continue;
|
|
23808
23799
|
}
|
|
23809
23800
|
case "text": {
|
|
23810
|
-
let
|
|
23811
|
-
for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; )
|
|
23812
|
-
` + this.renderer.text(
|
|
23813
|
-
t ? n += this.renderer.paragraph({ type: "paragraph", raw:
|
|
23801
|
+
let o = s2, a2 = this.renderer.text(o);
|
|
23802
|
+
for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) o = e[++r2], a2 += `
|
|
23803
|
+
` + this.renderer.text(o);
|
|
23804
|
+
t ? n += this.renderer.paragraph({ type: "paragraph", raw: a2, text: a2, tokens: [{ type: "text", raw: a2, text: a2, escaped: true }] }) : n += a2;
|
|
23814
23805
|
continue;
|
|
23815
23806
|
}
|
|
23816
23807
|
default: {
|
|
23817
|
-
let
|
|
23818
|
-
if (this.options.silent) return console.error(
|
|
23819
|
-
throw new Error(
|
|
23808
|
+
let o = 'Token with "' + s2.type + '" type was not found.';
|
|
23809
|
+
if (this.options.silent) return console.error(o), "";
|
|
23810
|
+
throw new Error(o);
|
|
23820
23811
|
}
|
|
23821
23812
|
}
|
|
23822
23813
|
}
|
|
@@ -23827,9 +23818,9 @@ ${e}</tr>
|
|
|
23827
23818
|
for (let r2 = 0; r2 < e.length; r2++) {
|
|
23828
23819
|
let i2 = e[r2];
|
|
23829
23820
|
if (this.options.extensions?.renderers?.[i2.type]) {
|
|
23830
|
-
let
|
|
23831
|
-
if (
|
|
23832
|
-
n +=
|
|
23821
|
+
let o = this.options.extensions.renderers[i2.type].call({ parser: this }, i2);
|
|
23822
|
+
if (o !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i2.type)) {
|
|
23823
|
+
n += o || "";
|
|
23833
23824
|
continue;
|
|
23834
23825
|
}
|
|
23835
23826
|
}
|
|
@@ -23876,9 +23867,9 @@ ${e}</tr>
|
|
|
23876
23867
|
break;
|
|
23877
23868
|
}
|
|
23878
23869
|
default: {
|
|
23879
|
-
let
|
|
23880
|
-
if (this.options.silent) return console.error(
|
|
23881
|
-
throw new Error(
|
|
23870
|
+
let o = 'Token with "' + s2.type + '" type was not found.';
|
|
23871
|
+
if (this.options.silent) return console.error(o), "";
|
|
23872
|
+
throw new Error(o);
|
|
23882
23873
|
}
|
|
23883
23874
|
}
|
|
23884
23875
|
}
|
|
@@ -23889,7 +23880,7 @@ ${e}</tr>
|
|
|
23889
23880
|
constructor(e) {
|
|
23890
23881
|
__publicField$2(this, "options");
|
|
23891
23882
|
__publicField$2(this, "block");
|
|
23892
|
-
this.options = e ||
|
|
23883
|
+
this.options = e || O;
|
|
23893
23884
|
}
|
|
23894
23885
|
preprocess(e) {
|
|
23895
23886
|
return e;
|
|
@@ -23904,10 +23895,10 @@ ${e}</tr>
|
|
|
23904
23895
|
return e;
|
|
23905
23896
|
}
|
|
23906
23897
|
provideLexer() {
|
|
23907
|
-
return this.block ?
|
|
23898
|
+
return this.block ? b.lex : b.lexInline;
|
|
23908
23899
|
}
|
|
23909
23900
|
provideParser() {
|
|
23910
|
-
return this.block ?
|
|
23901
|
+
return this.block ? R.parse : R.parseInline;
|
|
23911
23902
|
}
|
|
23912
23903
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
23913
23904
|
var B = class {
|
|
@@ -23916,10 +23907,10 @@ ${e}</tr>
|
|
|
23916
23907
|
__publicField$2(this, "options", this.setOptions);
|
|
23917
23908
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
23918
23909
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
23919
|
-
__publicField$2(this, "Parser",
|
|
23910
|
+
__publicField$2(this, "Parser", R);
|
|
23920
23911
|
__publicField$2(this, "Renderer", P);
|
|
23921
23912
|
__publicField$2(this, "TextRenderer", $$1);
|
|
23922
|
-
__publicField$2(this, "Lexer",
|
|
23913
|
+
__publicField$2(this, "Lexer", b);
|
|
23923
23914
|
__publicField$2(this, "Tokenizer", y);
|
|
23924
23915
|
__publicField$2(this, "Hooks", S);
|
|
23925
23916
|
this.use(...e);
|
|
@@ -23930,7 +23921,7 @@ ${e}</tr>
|
|
|
23930
23921
|
case "table": {
|
|
23931
23922
|
let i2 = r2;
|
|
23932
23923
|
for (let s2 of i2.header) n = n.concat(this.walkTokens(s2.tokens, t));
|
|
23933
|
-
for (let s2 of i2.rows) for (let
|
|
23924
|
+
for (let s2 of i2.rows) for (let o of s2) n = n.concat(this.walkTokens(o.tokens, t));
|
|
23934
23925
|
break;
|
|
23935
23926
|
}
|
|
23936
23927
|
case "list": {
|
|
@@ -23941,8 +23932,8 @@ ${e}</tr>
|
|
|
23941
23932
|
default: {
|
|
23942
23933
|
let i2 = r2;
|
|
23943
23934
|
this.defaults.extensions?.childTokens?.[i2.type] ? this.defaults.extensions.childTokens[i2.type].forEach((s2) => {
|
|
23944
|
-
let
|
|
23945
|
-
n = n.concat(this.walkTokens(
|
|
23935
|
+
let o = i2[s2].flat(1 / 0);
|
|
23936
|
+
n = n.concat(this.walkTokens(o, t));
|
|
23946
23937
|
}) : i2.tokens && (n = n.concat(this.walkTokens(i2.tokens, t)));
|
|
23947
23938
|
}
|
|
23948
23939
|
}
|
|
@@ -23956,9 +23947,9 @@ ${e}</tr>
|
|
|
23956
23947
|
if (!i2.name) throw new Error("extension name required");
|
|
23957
23948
|
if ("renderer" in i2) {
|
|
23958
23949
|
let s2 = t.renderers[i2.name];
|
|
23959
|
-
s2 ? t.renderers[i2.name] = function(...
|
|
23960
|
-
let
|
|
23961
|
-
return
|
|
23950
|
+
s2 ? t.renderers[i2.name] = function(...o) {
|
|
23951
|
+
let a2 = i2.renderer.apply(this, o);
|
|
23952
|
+
return a2 === false && (a2 = s2.apply(this, o)), a2;
|
|
23962
23953
|
} : t.renderers[i2.name] = i2.renderer;
|
|
23963
23954
|
}
|
|
23964
23955
|
if ("tokenizer" in i2) {
|
|
@@ -23972,10 +23963,10 @@ ${e}</tr>
|
|
|
23972
23963
|
for (let s2 in n.renderer) {
|
|
23973
23964
|
if (!(s2 in i2)) throw new Error(`renderer '${s2}' does not exist`);
|
|
23974
23965
|
if (["options", "parser"].includes(s2)) continue;
|
|
23975
|
-
let
|
|
23976
|
-
i2[
|
|
23977
|
-
let c2 =
|
|
23978
|
-
return c2 === false && (c2 =
|
|
23966
|
+
let o = s2, a2 = n.renderer[o], u = i2[o];
|
|
23967
|
+
i2[o] = (...p2) => {
|
|
23968
|
+
let c2 = a2.apply(i2, p2);
|
|
23969
|
+
return c2 === false && (c2 = u.apply(i2, p2)), c2 || "";
|
|
23979
23970
|
};
|
|
23980
23971
|
}
|
|
23981
23972
|
r2.renderer = i2;
|
|
@@ -23985,10 +23976,10 @@ ${e}</tr>
|
|
|
23985
23976
|
for (let s2 in n.tokenizer) {
|
|
23986
23977
|
if (!(s2 in i2)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
23987
23978
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
23988
|
-
let
|
|
23989
|
-
i2[
|
|
23990
|
-
let c2 =
|
|
23991
|
-
return c2 === false && (c2 =
|
|
23979
|
+
let o = s2, a2 = n.tokenizer[o], u = i2[o];
|
|
23980
|
+
i2[o] = (...p2) => {
|
|
23981
|
+
let c2 = a2.apply(i2, p2);
|
|
23982
|
+
return c2 === false && (c2 = u.apply(i2, p2)), c2;
|
|
23992
23983
|
};
|
|
23993
23984
|
}
|
|
23994
23985
|
r2.tokenizer = i2;
|
|
@@ -23998,30 +23989,23 @@ ${e}</tr>
|
|
|
23998
23989
|
for (let s2 in n.hooks) {
|
|
23999
23990
|
if (!(s2 in i2)) throw new Error(`hook '${s2}' does not exist`);
|
|
24000
23991
|
if (["options", "block"].includes(s2)) continue;
|
|
24001
|
-
let
|
|
24002
|
-
S.passThroughHooks.has(s2) ? i2[
|
|
24003
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (
|
|
24004
|
-
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
let c2 =
|
|
24008
|
-
return
|
|
24009
|
-
} : i2[a2] = (...u) => {
|
|
24010
|
-
if (this.defaults.async) return (async () => {
|
|
24011
|
-
let g = await o.apply(i2, u);
|
|
24012
|
-
return g === false && (g = await p2.apply(i2, u)), g;
|
|
24013
|
-
})();
|
|
24014
|
-
let c2 = o.apply(i2, u);
|
|
24015
|
-
return c2 === false && (c2 = p2.apply(i2, u)), c2;
|
|
23992
|
+
let o = s2, a2 = n.hooks[o], u = i2[o];
|
|
23993
|
+
S.passThroughHooks.has(s2) ? i2[o] = (p2) => {
|
|
23994
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a2.call(i2, p2)).then((f2) => u.call(i2, f2));
|
|
23995
|
+
let c2 = a2.call(i2, p2);
|
|
23996
|
+
return u.call(i2, c2);
|
|
23997
|
+
} : i2[o] = (...p2) => {
|
|
23998
|
+
let c2 = a2.apply(i2, p2);
|
|
23999
|
+
return c2 === false && (c2 = u.apply(i2, p2)), c2;
|
|
24016
24000
|
};
|
|
24017
24001
|
}
|
|
24018
24002
|
r2.hooks = i2;
|
|
24019
24003
|
}
|
|
24020
24004
|
if (n.walkTokens) {
|
|
24021
24005
|
let i2 = this.defaults.walkTokens, s2 = n.walkTokens;
|
|
24022
|
-
r2.walkTokens = function(
|
|
24023
|
-
let
|
|
24024
|
-
return
|
|
24006
|
+
r2.walkTokens = function(o) {
|
|
24007
|
+
let a2 = [];
|
|
24008
|
+
return a2.push(s2.call(this, o)), i2 && (a2 = a2.concat(i2.call(this, o))), a2;
|
|
24025
24009
|
};
|
|
24026
24010
|
}
|
|
24027
24011
|
this.defaults = { ...this.defaults, ...r2 };
|
|
@@ -24031,31 +24015,28 @@ ${e}</tr>
|
|
|
24031
24015
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
24032
24016
|
}
|
|
24033
24017
|
lexer(e, t) {
|
|
24034
|
-
return
|
|
24018
|
+
return b.lex(e, t ?? this.defaults);
|
|
24035
24019
|
}
|
|
24036
24020
|
parser(e, t) {
|
|
24037
|
-
return
|
|
24021
|
+
return R.parse(e, t ?? this.defaults);
|
|
24038
24022
|
}
|
|
24039
24023
|
parseMarkdown(e) {
|
|
24040
24024
|
return (n, r2) => {
|
|
24041
|
-
let i2 = { ...r2 }, s2 = { ...this.defaults, ...i2 },
|
|
24042
|
-
if (this.defaults.async === true && i2.async === false) return
|
|
24043
|
-
if (typeof n > "u" || n === null) return
|
|
24044
|
-
if (typeof n != "string") return
|
|
24045
|
-
|
|
24046
|
-
|
|
24047
|
-
|
|
24048
|
-
let h2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(c2, s2);
|
|
24049
|
-
return s2.hooks ? await s2.hooks.postprocess(h2) : h2;
|
|
24050
|
-
})().catch(a2);
|
|
24025
|
+
let i2 = { ...r2 }, s2 = { ...this.defaults, ...i2 }, o = this.onError(!!s2.silent, !!s2.async);
|
|
24026
|
+
if (this.defaults.async === true && i2.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."));
|
|
24027
|
+
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
24028
|
+
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
24029
|
+
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
|
|
24030
|
+
let a2 = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
|
|
24031
|
+
if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p2) => a2(p2, s2)).then((p2) => s2.hooks ? s2.hooks.processAllTokens(p2) : p2).then((p2) => s2.walkTokens ? Promise.all(this.walkTokens(p2, s2.walkTokens)).then(() => p2) : p2).then((p2) => u(p2, s2)).then((p2) => s2.hooks ? s2.hooks.postprocess(p2) : p2).catch(o);
|
|
24051
24032
|
try {
|
|
24052
24033
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
24053
|
-
let p2 = (
|
|
24034
|
+
let p2 = a2(n, s2);
|
|
24054
24035
|
s2.hooks && (p2 = s2.hooks.processAllTokens(p2)), s2.walkTokens && this.walkTokens(p2, s2.walkTokens);
|
|
24055
|
-
let c2 = (
|
|
24036
|
+
let c2 = u(p2, s2);
|
|
24056
24037
|
return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
|
|
24057
|
-
} catch (
|
|
24058
|
-
return
|
|
24038
|
+
} catch (p2) {
|
|
24039
|
+
return o(p2);
|
|
24059
24040
|
}
|
|
24060
24041
|
};
|
|
24061
24042
|
}
|
|
@@ -24072,38 +24053,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
24072
24053
|
}
|
|
24073
24054
|
};
|
|
24074
24055
|
var _ = new B();
|
|
24075
|
-
function
|
|
24056
|
+
function d$1(l3, e) {
|
|
24076
24057
|
return _.parse(l3, e);
|
|
24077
24058
|
}
|
|
24078
|
-
|
|
24079
|
-
return _.setOptions(l3),
|
|
24059
|
+
d$1.options = d$1.setOptions = function(l3) {
|
|
24060
|
+
return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
24080
24061
|
};
|
|
24081
|
-
|
|
24082
|
-
|
|
24083
|
-
|
|
24084
|
-
return _.use(...l3),
|
|
24062
|
+
d$1.getDefaults = L;
|
|
24063
|
+
d$1.defaults = O;
|
|
24064
|
+
d$1.use = function(...l3) {
|
|
24065
|
+
return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
24085
24066
|
};
|
|
24086
|
-
|
|
24067
|
+
d$1.walkTokens = function(l3, e) {
|
|
24087
24068
|
return _.walkTokens(l3, e);
|
|
24088
24069
|
};
|
|
24089
|
-
|
|
24090
|
-
|
|
24091
|
-
|
|
24092
|
-
|
|
24093
|
-
|
|
24094
|
-
|
|
24095
|
-
|
|
24096
|
-
|
|
24097
|
-
|
|
24098
|
-
|
|
24099
|
-
|
|
24100
|
-
|
|
24101
|
-
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
|
|
24105
|
-
|
|
24106
|
-
|
|
24070
|
+
d$1.parseInline = _.parseInline;
|
|
24071
|
+
d$1.Parser = R;
|
|
24072
|
+
d$1.parser = R.parse;
|
|
24073
|
+
d$1.Renderer = P;
|
|
24074
|
+
d$1.TextRenderer = $$1;
|
|
24075
|
+
d$1.Lexer = b;
|
|
24076
|
+
d$1.lexer = b.lex;
|
|
24077
|
+
d$1.Tokenizer = y;
|
|
24078
|
+
d$1.Hooks = S;
|
|
24079
|
+
d$1.parse = d$1;
|
|
24080
|
+
d$1.options;
|
|
24081
|
+
d$1.setOptions;
|
|
24082
|
+
d$1.use;
|
|
24083
|
+
d$1.walkTokens;
|
|
24084
|
+
d$1.parseInline;
|
|
24085
|
+
R.parse;
|
|
24086
|
+
b.lex;
|
|
24087
|
+
d$1.use({
|
|
24107
24088
|
breaks: false,
|
|
24108
24089
|
// Use proper paragraphs, not <br> tags
|
|
24109
24090
|
gfm: true
|
|
@@ -24114,7 +24095,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
24114
24095
|
return createDocFromHTML(html2, schema, options);
|
|
24115
24096
|
}
|
|
24116
24097
|
function convertMarkdownToHTML(markdown) {
|
|
24117
|
-
let html2 =
|
|
24098
|
+
let html2 = d$1.parse(markdown, { async: false });
|
|
24118
24099
|
return html2.replace(/<\/p>\n<ul>/g, "</p>\n<p> </p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p> </p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p> </p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p> </p>\n<h");
|
|
24119
24100
|
}
|
|
24120
24101
|
function processContent({ content: content2, type: type2, schema }) {
|
|
@@ -27065,6 +27046,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
27065
27046
|
runs2.push(trackedClone);
|
|
27066
27047
|
return;
|
|
27067
27048
|
}
|
|
27049
|
+
if (child.name === "w:commentRangeStart" || child.name === "w:commentRangeEnd") {
|
|
27050
|
+
const commentRangeClone = cloneXmlNode(child);
|
|
27051
|
+
runs2.push(commentRangeClone);
|
|
27052
|
+
return;
|
|
27053
|
+
}
|
|
27068
27054
|
const runWrapper = { name: XML_NODE_NAME$j, elements: [] };
|
|
27069
27055
|
applyBaseRunProps(runWrapper);
|
|
27070
27056
|
if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
|
|
@@ -28738,18 +28724,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
28738
28724
|
const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
|
|
28739
28725
|
const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
|
|
28740
28726
|
const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
|
|
28741
|
-
let
|
|
28727
|
+
let x, y2, width, height;
|
|
28742
28728
|
if (groupTransform.childWidth && groupTransform.childHeight) {
|
|
28743
28729
|
const scaleX = groupTransform.width / groupTransform.childWidth;
|
|
28744
28730
|
const scaleY = groupTransform.height / groupTransform.childHeight;
|
|
28745
28731
|
const childOriginX = groupTransform.childOriginXEmu || 0;
|
|
28746
28732
|
const childOriginY = groupTransform.childOriginYEmu || 0;
|
|
28747
|
-
|
|
28733
|
+
x = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
|
|
28748
28734
|
y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
|
|
28749
28735
|
width = emuToPixels(rawWidth * scaleX);
|
|
28750
28736
|
height = emuToPixels(rawHeight * scaleY);
|
|
28751
28737
|
} else {
|
|
28752
|
-
|
|
28738
|
+
x = emuToPixels(rawX);
|
|
28753
28739
|
y2 = emuToPixels(rawY);
|
|
28754
28740
|
width = emuToPixels(rawWidth);
|
|
28755
28741
|
height = emuToPixels(rawHeight);
|
|
@@ -28768,7 +28754,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
28768
28754
|
shapeType: "vectorShape",
|
|
28769
28755
|
attrs: {
|
|
28770
28756
|
kind: shapeKind,
|
|
28771
|
-
x
|
|
28757
|
+
x,
|
|
28772
28758
|
y: y2,
|
|
28773
28759
|
width,
|
|
28774
28760
|
height,
|
|
@@ -33186,11 +33172,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33186
33172
|
const generateCommentsWithExtendedData = ({ docx, comments }) => {
|
|
33187
33173
|
if (!comments?.length) return [];
|
|
33188
33174
|
const commentsExtended = docx["word/commentsExtended.xml"];
|
|
33189
|
-
if (!commentsExtended) {
|
|
33190
|
-
const commentRanges = extractCommentRangesFromDocument(docx);
|
|
33191
|
-
const commentsWithThreading = detectThreadingFromRanges(comments, commentRanges);
|
|
33192
|
-
return commentsWithThreading.map((comment2) => ({ ...comment2, isDone: comment2.isDone ?? false }));
|
|
33193
|
-
}
|
|
33175
|
+
if (!commentsExtended) return comments.map((comment2) => ({ ...comment2, isDone: comment2.isDone ?? false }));
|
|
33194
33176
|
const { elements: initialElements = [] } = commentsExtended;
|
|
33195
33177
|
if (!initialElements?.length) return comments.map((comment2) => ({ ...comment2, isDone: comment2.isDone ?? false }));
|
|
33196
33178
|
const { elements = [] } = initialElements[0] ?? {};
|
|
@@ -33216,79 +33198,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33216
33198
|
const paraIdParent = attributes["w15:paraIdParent"];
|
|
33217
33199
|
return { paraId, isDone, paraIdParent };
|
|
33218
33200
|
};
|
|
33219
|
-
const extractCommentRangesFromDocument = (docx) => {
|
|
33220
|
-
const documentXml = docx["word/document.xml"];
|
|
33221
|
-
if (!documentXml) {
|
|
33222
|
-
return [];
|
|
33223
|
-
}
|
|
33224
|
-
const pendingComments = [];
|
|
33225
|
-
const walkElements = (elements) => {
|
|
33226
|
-
if (!elements || !Array.isArray(elements)) return;
|
|
33227
|
-
elements.forEach((element2) => {
|
|
33228
|
-
if (element2.name === "w:commentRangeStart") {
|
|
33229
|
-
const commentId = element2.attributes?.["w:id"];
|
|
33230
|
-
if (commentId !== void 0) {
|
|
33231
|
-
pendingComments.push({
|
|
33232
|
-
type: "start",
|
|
33233
|
-
commentId: String(commentId)
|
|
33234
|
-
});
|
|
33235
|
-
}
|
|
33236
|
-
} else if (element2.name === "w:commentRangeEnd") {
|
|
33237
|
-
const commentId = element2.attributes?.["w:id"];
|
|
33238
|
-
if (commentId !== void 0) {
|
|
33239
|
-
pendingComments.push({
|
|
33240
|
-
type: "end",
|
|
33241
|
-
commentId: String(commentId)
|
|
33242
|
-
});
|
|
33243
|
-
}
|
|
33244
|
-
}
|
|
33245
|
-
if (element2.elements && Array.isArray(element2.elements)) {
|
|
33246
|
-
walkElements(element2.elements);
|
|
33247
|
-
}
|
|
33248
|
-
});
|
|
33249
|
-
};
|
|
33250
|
-
if (documentXml.elements && documentXml.elements.length > 0) {
|
|
33251
|
-
const body = documentXml.elements[0];
|
|
33252
|
-
if (body.elements) {
|
|
33253
|
-
walkElements(body.elements);
|
|
33254
|
-
}
|
|
33255
|
-
}
|
|
33256
|
-
return pendingComments;
|
|
33257
|
-
};
|
|
33258
|
-
const detectThreadingFromRanges = (comments, rangeEvents) => {
|
|
33259
|
-
if (!rangeEvents || rangeEvents.length === 0) {
|
|
33260
|
-
return comments;
|
|
33261
|
-
}
|
|
33262
|
-
const openRanges = [];
|
|
33263
|
-
const parentMap = /* @__PURE__ */ new Map();
|
|
33264
|
-
rangeEvents.forEach((event) => {
|
|
33265
|
-
if (event.type === "start") {
|
|
33266
|
-
if (openRanges.length > 0) {
|
|
33267
|
-
const parentCommentId = openRanges[openRanges.length - 1];
|
|
33268
|
-
parentMap.set(event.commentId, parentCommentId);
|
|
33269
|
-
}
|
|
33270
|
-
openRanges.push(event.commentId);
|
|
33271
|
-
} else if (event.type === "end") {
|
|
33272
|
-
const index2 = openRanges.lastIndexOf(event.commentId);
|
|
33273
|
-
if (index2 !== -1) {
|
|
33274
|
-
openRanges.splice(index2, 1);
|
|
33275
|
-
}
|
|
33276
|
-
}
|
|
33277
|
-
});
|
|
33278
|
-
return comments.map((comment2) => {
|
|
33279
|
-
const parentCommentId = parentMap.get(comment2.importedId);
|
|
33280
|
-
if (parentCommentId) {
|
|
33281
|
-
const parentComment = comments.find((c2) => c2.importedId === parentCommentId);
|
|
33282
|
-
if (parentComment) {
|
|
33283
|
-
return {
|
|
33284
|
-
...comment2,
|
|
33285
|
-
parentCommentId: parentComment.commentId
|
|
33286
|
-
};
|
|
33287
|
-
}
|
|
33288
|
-
}
|
|
33289
|
-
return comment2;
|
|
33290
|
-
});
|
|
33291
|
-
};
|
|
33292
33201
|
const RELATIONSHIP_TYPES = (
|
|
33293
33202
|
/** @type {const} */
|
|
33294
33203
|
{
|
|
@@ -35474,7 +35383,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35474
35383
|
return newComment;
|
|
35475
35384
|
};
|
|
35476
35385
|
const getCommentDefinition = (comment2, commentId, allComments, editor) => {
|
|
35477
|
-
const translatedText =
|
|
35386
|
+
const translatedText = translateParagraphNode({ editor, node: comment2.commentJSON });
|
|
35478
35387
|
const attributes = {
|
|
35479
35388
|
"w:id": String(commentId),
|
|
35480
35389
|
"w:author": comment2.creatorName || comment2.importedAuthor?.name,
|
|
@@ -35513,12 +35422,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35513
35422
|
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
35514
35423
|
const newCommentsXml = carbonCopy(commentsXml);
|
|
35515
35424
|
commentDefs.forEach((commentDef) => {
|
|
35516
|
-
const
|
|
35517
|
-
if (!paraNode.attributes) paraNode.attributes = {};
|
|
35518
|
-
const elements = paraNode.elements;
|
|
35425
|
+
const elements = commentDef.elements[0].elements;
|
|
35519
35426
|
elements.unshift(COMMENT_REF);
|
|
35520
35427
|
const paraId = commentDef.attributes["w15:paraId"];
|
|
35521
|
-
|
|
35428
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
35522
35429
|
commentDef.attributes = {
|
|
35523
35430
|
"w:id": commentDef.attributes["w:id"],
|
|
35524
35431
|
"w:author": commentDef.attributes["w:author"],
|
|
@@ -35891,7 +35798,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35891
35798
|
static getStoredSuperdocVersion(docx) {
|
|
35892
35799
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35893
35800
|
}
|
|
35894
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.
|
|
35801
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.7") {
|
|
35895
35802
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35896
35803
|
}
|
|
35897
35804
|
/**
|
|
@@ -36282,7 +36189,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36282
36189
|
};
|
|
36283
36190
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
36284
36191
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36285
|
-
const relationships = relsData.elements.find((
|
|
36192
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
36286
36193
|
const newDocRels = [];
|
|
36287
36194
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
36288
36195
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -36323,7 +36230,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36323
36230
|
}
|
|
36324
36231
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36325
36232
|
if (params2.relationships.length) {
|
|
36326
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36233
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
36327
36234
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36328
36235
|
declaration: this.initialJSON?.declaration,
|
|
36329
36236
|
elements: [
|
|
@@ -36377,7 +36284,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36377
36284
|
}
|
|
36378
36285
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36379
36286
|
if (params2.relationships.length) {
|
|
36380
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36287
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
36381
36288
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36382
36289
|
declaration: this.initialJSON?.declaration,
|
|
36383
36290
|
elements: [
|
|
@@ -36396,7 +36303,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36396
36303
|
};
|
|
36397
36304
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
36398
36305
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36399
|
-
const relationships = relsData.elements.find((
|
|
36306
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
36400
36307
|
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
36401
36308
|
};
|
|
36402
36309
|
exportProcessMediaFiles_fn = async function(media2 = {}) {
|
|
@@ -36592,8 +36499,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36592
36499
|
return n2;
|
|
36593
36500
|
}
|
|
36594
36501
|
function n(e2, t2, r22, n2, i22, s22) {
|
|
36595
|
-
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !==
|
|
36596
|
-
t2 && !r22 || (
|
|
36502
|
+
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p2 = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
36503
|
+
t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
|
|
36597
36504
|
var S2 = 0;
|
|
36598
36505
|
t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
|
|
36599
36506
|
var z2 = 0, C2 = 0;
|
|
@@ -36604,9 +36511,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36604
36511
|
return 63 & (e3 || 0);
|
|
36605
36512
|
})(h2.dosPermissions)), a2 = k2.getUTCHours(), a2 <<= 6, a2 |= k2.getUTCMinutes(), a2 <<= 5, a2 |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p2), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
|
|
36606
36513
|
var E2 = "";
|
|
36607
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(
|
|
36514
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p2.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p2 };
|
|
36608
36515
|
}
|
|
36609
|
-
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"),
|
|
36516
|
+
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
|
|
36610
36517
|
function s2(e2, t2, r22, n2) {
|
|
36611
36518
|
i2.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
36612
36519
|
}
|
|
@@ -36624,7 +36531,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36624
36531
|
this.accumulate = false;
|
|
36625
36532
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36626
36533
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36627
|
-
return
|
|
36534
|
+
return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36628
36535
|
})(e2), meta: { percent: 100 } });
|
|
36629
36536
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36630
36537
|
this.currentFile = null;
|
|
@@ -36632,7 +36539,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36632
36539
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36633
36540
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i22) {
|
|
36634
36541
|
var s22 = I2.transformTo("string", i22(n3));
|
|
36635
|
-
return
|
|
36542
|
+
return R2.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
36636
36543
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36637
36544
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36638
36545
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -37832,11 +37739,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37832
37739
|
return -1 ^ e2;
|
|
37833
37740
|
};
|
|
37834
37741
|
}, {}], 46: [function(e, t, r2) {
|
|
37835
|
-
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15,
|
|
37836
|
-
function
|
|
37742
|
+
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
|
|
37743
|
+
function R2(e2, t2) {
|
|
37837
37744
|
return e2.msg = n[t2], t2;
|
|
37838
37745
|
}
|
|
37839
|
-
function
|
|
37746
|
+
function T(e2) {
|
|
37840
37747
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37841
37748
|
}
|
|
37842
37749
|
function D2(e2) {
|
|
@@ -37880,7 +37787,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37880
37787
|
i22 += f22;
|
|
37881
37788
|
}
|
|
37882
37789
|
if (0 === e2.strm.avail_in) break;
|
|
37883
|
-
if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >=
|
|
37790
|
+
if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
|
|
37884
37791
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37885
37792
|
}
|
|
37886
37793
|
function Z(e2, t2) {
|
|
@@ -37889,14 +37796,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37889
37796
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37890
37797
|
if (0 === e2.lookahead) break;
|
|
37891
37798
|
}
|
|
37892
|
-
if (r22 = 0, e2.lookahead >=
|
|
37893
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37799
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
|
|
37800
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
37894
37801
|
e2.strstart++;
|
|
37895
37802
|
} else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
|
|
37896
37803
|
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37897
37804
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37898
37805
|
}
|
|
37899
|
-
return e2.insert = e2.strstart <
|
|
37806
|
+
return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37900
37807
|
}
|
|
37901
37808
|
function W2(e2, t2) {
|
|
37902
37809
|
for (var r22, n2, i22; ; ) {
|
|
@@ -37904,14 +37811,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37904
37811
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37905
37812
|
if (0 === e2.lookahead) break;
|
|
37906
37813
|
}
|
|
37907
|
-
if (r22 = 0, e2.lookahead >=
|
|
37908
|
-
for (i22 = e2.strstart + e2.lookahead -
|
|
37909
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37814
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
|
|
37815
|
+
for (i22 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i22 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
37816
|
+
if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37910
37817
|
} else if (e2.match_available) {
|
|
37911
37818
|
if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
|
|
37912
37819
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37913
37820
|
}
|
|
37914
|
-
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart <
|
|
37821
|
+
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37915
37822
|
}
|
|
37916
37823
|
function M2(e2, t2, r22, n2, i22) {
|
|
37917
37824
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i22;
|
|
@@ -37921,21 +37828,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37921
37828
|
}
|
|
37922
37829
|
function G2(e2) {
|
|
37923
37830
|
var t2;
|
|
37924
|
-
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m2) :
|
|
37831
|
+
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m2) : R2(e2, _2);
|
|
37925
37832
|
}
|
|
37926
37833
|
function K2(e2) {
|
|
37927
37834
|
var t2 = G2(e2);
|
|
37928
37835
|
return t2 === m2 && (function(e3) {
|
|
37929
|
-
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length =
|
|
37836
|
+
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
37930
37837
|
})(e2.state), t2;
|
|
37931
37838
|
}
|
|
37932
37839
|
function Y2(e2, t2, r22, n2, i22, s22) {
|
|
37933
37840
|
if (!e2) return _2;
|
|
37934
37841
|
var a22 = 1;
|
|
37935
|
-
if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return
|
|
37842
|
+
if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
|
|
37936
37843
|
8 === n2 && (n2 = 9);
|
|
37937
37844
|
var o2 = new H();
|
|
37938
|
-
return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits +
|
|
37845
|
+
return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i22 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
|
|
37939
37846
|
}
|
|
37940
37847
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37941
37848
|
var r22 = 65535;
|
|
@@ -37949,15 +37856,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37949
37856
|
if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37950
37857
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37951
37858
|
}
|
|
37952
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37859
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
37953
37860
|
}), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
|
|
37954
37861
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37955
37862
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37956
37863
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37957
37864
|
}, r2.deflate = function(e2, t2) {
|
|
37958
37865
|
var r22, n2, i22, s22;
|
|
37959
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37960
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37866
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
|
|
37867
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R2(e2, 0 === e2.avail_out ? -5 : _2);
|
|
37961
37868
|
if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p2(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
|
|
37962
37869
|
else {
|
|
37963
37870
|
var a22 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37991,8 +37898,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37991
37898
|
} else n2.status = 103;
|
|
37992
37899
|
if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F2(e2), n2.pending + 2 <= n2.pending_buf_size && (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E2)) : n2.status = E2), 0 !== n2.pending) {
|
|
37993
37900
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37994
|
-
} else if (0 === e2.avail_in &&
|
|
37995
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37901
|
+
} else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
|
|
37902
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
|
|
37996
37903
|
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
|
|
37997
37904
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37998
37905
|
for (var r3; ; ) {
|
|
@@ -38002,39 +37909,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38002
37909
|
}
|
|
38003
37910
|
if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
38004
37911
|
}
|
|
38005
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37912
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
38006
37913
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
38007
37914
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
38008
37915
|
if (e3.lookahead <= S2) {
|
|
38009
37916
|
if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
|
|
38010
37917
|
if (0 === e3.lookahead) break;
|
|
38011
37918
|
}
|
|
38012
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37919
|
+
if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
38013
37920
|
s3 = e3.strstart + S2;
|
|
38014
37921
|
do {
|
|
38015
37922
|
} while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);
|
|
38016
37923
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
38017
37924
|
}
|
|
38018
|
-
if (e3.match_length >=
|
|
37925
|
+
if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
38019
37926
|
}
|
|
38020
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37927
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
38021
37928
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
38022
|
-
if (o2 !==
|
|
37929
|
+
if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
38023
37930
|
if (o2 === I2 && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
|
|
38024
37931
|
}
|
|
38025
37932
|
return t2 !== f2 ? m2 : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), U2(n2, e2.adler >> 16 & 255), U2(n2, e2.adler >> 24 & 255), U2(n2, 255 & e2.total_in), U2(n2, e2.total_in >> 8 & 255), U2(n2, e2.total_in >> 16 & 255), U2(n2, e2.total_in >> 24 & 255)) : (P2(n2, e2.adler >>> 16), P2(n2, 65535 & e2.adler)), F2(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m2 : 1);
|
|
38026
37933
|
}, r2.deflateEnd = function(e2) {
|
|
38027
37934
|
var t2;
|
|
38028
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37935
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R2(e2, _2) : (e2.state = null, t2 === E2 ? R2(e2, -3) : m2) : _2;
|
|
38029
37936
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
38030
37937
|
var r22, n2, i22, s22, a22, o2, h22, u2, l2 = t2.length;
|
|
38031
37938
|
if (!e2 || !e2.state) return _2;
|
|
38032
37939
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
38033
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >=
|
|
38034
|
-
for (n2 = r22.strstart, i22 = r22.lookahead - (
|
|
38035
|
-
r22.strstart = n2, r22.lookahead =
|
|
37940
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
|
|
37941
|
+
for (n2 = r22.strstart, i22 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i22; ) ;
|
|
37942
|
+
r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
|
|
38036
37943
|
}
|
|
38037
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37944
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a22, r22.wrap = s22, m2;
|
|
38038
37945
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
38039
37946
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
38040
37947
|
t.exports = function() {
|
|
@@ -38042,7 +37949,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38042
37949
|
};
|
|
38043
37950
|
}, {}], 48: [function(e, t, r2) {
|
|
38044
37951
|
t.exports = function(e2, t2) {
|
|
38045
|
-
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
37952
|
+
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
|
|
38046
37953
|
r22 = e2.state, n = e2.next_in, z2 = e2.input, i2 = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a2 = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p2 = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
|
|
38047
37954
|
e: do {
|
|
38048
37955
|
p2 < 15 && (d2 += z2[n++] << p2, p2 += 8, d2 += z2[n++] << p2, p2 += 8), v2 = m2[d2 & g];
|
|
@@ -38080,28 +37987,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38080
37987
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
38081
37988
|
break e;
|
|
38082
37989
|
}
|
|
38083
|
-
if (S2 = c2, (
|
|
38084
|
-
if (
|
|
38085
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
38086
|
-
|
|
37990
|
+
if (S2 = c2, (x = 0) === f2) {
|
|
37991
|
+
if (x += u - y2, y2 < w2) {
|
|
37992
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37993
|
+
x = s2 - k2, S2 = C2;
|
|
38087
37994
|
}
|
|
38088
37995
|
} else if (f2 < y2) {
|
|
38089
|
-
if (
|
|
38090
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
38091
|
-
if (
|
|
38092
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
38093
|
-
|
|
37996
|
+
if (x += u + f2 - y2, (y2 -= f2) < w2) {
|
|
37997
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37998
|
+
if (x = 0, f2 < w2) {
|
|
37999
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
|
|
38000
|
+
x = s2 - k2, S2 = C2;
|
|
38094
38001
|
}
|
|
38095
38002
|
}
|
|
38096
|
-
} else if (
|
|
38097
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
38098
|
-
|
|
38003
|
+
} else if (x += f2 - y2, y2 < w2) {
|
|
38004
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
38005
|
+
x = s2 - k2, S2 = C2;
|
|
38099
38006
|
}
|
|
38100
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
38101
|
-
w2 && (C2[s2++] = S2[
|
|
38007
|
+
for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
|
|
38008
|
+
w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
|
|
38102
38009
|
} else {
|
|
38103
|
-
for (
|
|
38104
|
-
w2 && (C2[s2++] = C2[
|
|
38010
|
+
for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
|
|
38011
|
+
w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
|
|
38105
38012
|
}
|
|
38106
38013
|
break;
|
|
38107
38014
|
}
|
|
@@ -38112,7 +38019,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38112
38019
|
n -= w2 = p2 >> 3, d2 &= (1 << (p2 -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i2 ? i2 - n + 5 : 5 - (n - i2), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p2;
|
|
38113
38020
|
};
|
|
38114
38021
|
}, {}], 49: [function(e, t, r2) {
|
|
38115
|
-
var I2 = e("../utils/common"),
|
|
38022
|
+
var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i2 = 592;
|
|
38116
38023
|
function L2(e2) {
|
|
38117
38024
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
38118
38025
|
}
|
|
@@ -38143,8 +38050,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38143
38050
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
38144
38051
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
38145
38052
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
38146
|
-
for (
|
|
38147
|
-
|
|
38053
|
+
for (T(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
38054
|
+
T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
38148
38055
|
}
|
|
38149
38056
|
e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
38150
38057
|
}
|
|
@@ -38155,9 +38062,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38155
38062
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a2, r2.inflateInit = function(e2) {
|
|
38156
38063
|
return u(e2, 15);
|
|
38157
38064
|
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
38158
|
-
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
38065
|
+
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
38159
38066
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
38160
|
-
12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22,
|
|
38067
|
+
12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x = N2;
|
|
38161
38068
|
e: for (; ; ) switch (r22.mode) {
|
|
38162
38069
|
case P2:
|
|
38163
38070
|
if (0 === r22.wrap) {
|
|
@@ -38328,7 +38235,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38328
38235
|
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3;
|
|
38329
38236
|
}
|
|
38330
38237
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
38331
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
38238
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x = T(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
38332
38239
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
38333
38240
|
break;
|
|
38334
38241
|
}
|
|
@@ -38376,11 +38283,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38376
38283
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
38377
38284
|
break;
|
|
38378
38285
|
}
|
|
38379
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
38286
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x = T(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
38380
38287
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
38381
38288
|
break;
|
|
38382
38289
|
}
|
|
38383
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
38290
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x = T(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x) {
|
|
38384
38291
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
38385
38292
|
break;
|
|
38386
38293
|
}
|
|
@@ -38389,7 +38296,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38389
38296
|
r22.mode = 21;
|
|
38390
38297
|
case 21:
|
|
38391
38298
|
if (6 <= o2 && 258 <= h22) {
|
|
38392
|
-
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2,
|
|
38299
|
+
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, R2(e2, c22), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
38393
38300
|
break;
|
|
38394
38301
|
}
|
|
38395
38302
|
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
@@ -38477,7 +38384,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38477
38384
|
if (0 === o2) break e;
|
|
38478
38385
|
o2--, u2 |= n2[s22++] << l2, l2 += 8;
|
|
38479
38386
|
}
|
|
38480
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) :
|
|
38387
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) : O2(r22.check, i22, c22, a22 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
|
|
38481
38388
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
38482
38389
|
break;
|
|
38483
38390
|
}
|
|
@@ -38498,10 +38405,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38498
38405
|
}
|
|
38499
38406
|
r22.mode = 29;
|
|
38500
38407
|
case 29:
|
|
38501
|
-
|
|
38408
|
+
x = 1;
|
|
38502
38409
|
break e;
|
|
38503
38410
|
case 30:
|
|
38504
|
-
|
|
38411
|
+
x = -3;
|
|
38505
38412
|
break e;
|
|
38506
38413
|
case 31:
|
|
38507
38414
|
return -4;
|
|
@@ -38509,7 +38416,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38509
38416
|
default:
|
|
38510
38417
|
return U2;
|
|
38511
38418
|
}
|
|
38512
|
-
return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, e2.next_out - c22) :
|
|
38419
|
+
return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, e2.next_out - c22) : O2(r22.check, i22, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
|
|
38513
38420
|
}, r2.inflateEnd = function(e2) {
|
|
38514
38421
|
if (!e2 || !e2.state) return U2;
|
|
38515
38422
|
var t2 = e2.state;
|
|
@@ -38519,33 +38426,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38519
38426
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
38520
38427
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
38521
38428
|
var r22, n2 = t2.length;
|
|
38522
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
38429
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O2(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
38523
38430
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
38524
38431
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
38525
38432
|
var D2 = e("../utils/common"), F2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N2 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
38526
38433
|
t.exports = function(e2, t2, r22, n, i2, s2, a2, o) {
|
|
38527
|
-
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0,
|
|
38528
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
38529
|
-
for (v2 = 0; v2 < n; v2++)
|
|
38530
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
38434
|
+
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
|
|
38435
|
+
for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
|
|
38436
|
+
for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
|
|
38437
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
|
|
38531
38438
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i2[s2++] = 20971520, i2[s2++] = 20971520, o.bits = 1, 0;
|
|
38532
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
38533
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
38439
|
+
for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
|
|
38440
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
|
|
38534
38441
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
38535
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
38442
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
|
|
38536
38443
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a2[B2[t2[r22 + v2]]++] = v2);
|
|
38537
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
38444
|
+
if (d2 = 0 === e2 ? (A2 = R2 = a2, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38538
38445
|
for (; ; ) {
|
|
38539
|
-
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 =
|
|
38446
|
+
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 = R2[T + a2[v2]], A2[I2 + a2[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i2[c2 + (E2 >> S2) + (u -= h2)] = p2 << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
|
|
38540
38447
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38541
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
38448
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
|
|
38542
38449
|
if (b2 === w2) break;
|
|
38543
38450
|
b2 = t2[r22 + a2[v2]];
|
|
38544
38451
|
}
|
|
38545
38452
|
if (k2 < b2 && (E2 & f2) !== l) {
|
|
38546
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38547
|
-
if (C2 += 1 <<
|
|
38548
|
-
i2[l = E2 & f2] = k2 << 24 |
|
|
38453
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
|
|
38454
|
+
if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38455
|
+
i2[l = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
|
|
38549
38456
|
}
|
|
38550
38457
|
}
|
|
38551
38458
|
return 0 !== E2 && (i2[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38557,7 +38464,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38557
38464
|
function n(e2) {
|
|
38558
38465
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38559
38466
|
}
|
|
38560
|
-
var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
|
|
38467
|
+
var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l + 2));
|
|
38561
38468
|
n(z2);
|
|
38562
38469
|
var C2 = new Array(2 * f2);
|
|
38563
38470
|
n(C2);
|
|
@@ -38567,7 +38474,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38567
38474
|
n(A2);
|
|
38568
38475
|
var I2 = new Array(a2);
|
|
38569
38476
|
n(I2);
|
|
38570
|
-
var
|
|
38477
|
+
var O2, B2, R2, T = new Array(f2);
|
|
38571
38478
|
function D2(e2, t2, r22, n2, i22) {
|
|
38572
38479
|
this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i22, this.has_stree = e2 && e2.length;
|
|
38573
38480
|
}
|
|
@@ -38618,7 +38525,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38618
38525
|
}
|
|
38619
38526
|
function K2(e2, t2, r22) {
|
|
38620
38527
|
var n2, i22, s22, a22, o2 = 0;
|
|
38621
|
-
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -=
|
|
38528
|
+
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -= T[s22], a22)), o2 < e2.last_lit; ) ;
|
|
38622
38529
|
L2(e2, m2, t2);
|
|
38623
38530
|
}
|
|
38624
38531
|
function Y2(e2, t2) {
|
|
@@ -38652,7 +38559,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38652
38559
|
s22 = i22, u2 = (o2 = 0) === a22 ? (h22 = 138, 3) : i22 === a22 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38653
38560
|
}
|
|
38654
38561
|
}
|
|
38655
|
-
n(
|
|
38562
|
+
n(T);
|
|
38656
38563
|
var q2 = false;
|
|
38657
38564
|
function J2(e2, t2, r22, n2) {
|
|
38658
38565
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38663,16 +38570,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38663
38570
|
q2 || ((function() {
|
|
38664
38571
|
var e3, t2, r22, n2, i22, s22 = new Array(g + 1);
|
|
38665
38572
|
for (n2 = r22 = 0; n2 < a2 - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38666
|
-
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (
|
|
38667
|
-
for (i22 >>= 7; n2 < f2; n2++) for (
|
|
38573
|
+
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (T[n2] = i22, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i22++] = n2;
|
|
38574
|
+
for (i22 >>= 7; n2 < f2; n2++) for (T[n2] = i22 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i22++] = n2;
|
|
38668
38575
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38669
38576
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38670
38577
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38671
38578
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38672
38579
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38673
38580
|
for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38674
|
-
|
|
38675
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38581
|
+
O2 = new D2(z2, w2, u + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p2);
|
|
38582
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O2), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R2), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
38676
38583
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38677
38584
|
var i22, s22, a22 = 0;
|
|
38678
38585
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
@@ -39077,7 +38984,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39077
38984
|
}
|
|
39078
38985
|
}
|
|
39079
38986
|
/**
|
|
39080
|
-
* @vue/shared v3.5.
|
|
38987
|
+
* @vue/shared v3.5.24
|
|
39081
38988
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
39082
38989
|
* @license MIT
|
|
39083
38990
|
**/
|
|
@@ -39873,25 +39780,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39873
39780
|
track$1(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
39874
39781
|
return arr;
|
|
39875
39782
|
}
|
|
39876
|
-
function toWrapped(target, item) {
|
|
39877
|
-
if (isReadonly(target)) {
|
|
39878
|
-
return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
|
|
39879
|
-
}
|
|
39880
|
-
return toReactive(item);
|
|
39881
|
-
}
|
|
39882
39783
|
const arrayInstrumentations = {
|
|
39883
39784
|
__proto__: null,
|
|
39884
39785
|
[Symbol.iterator]() {
|
|
39885
|
-
return iterator(this, Symbol.iterator,
|
|
39786
|
+
return iterator(this, Symbol.iterator, toReactive);
|
|
39886
39787
|
},
|
|
39887
39788
|
concat(...args) {
|
|
39888
39789
|
return reactiveReadArray(this).concat(
|
|
39889
|
-
...args.map((
|
|
39790
|
+
...args.map((x) => isArray$3(x) ? reactiveReadArray(x) : x)
|
|
39890
39791
|
);
|
|
39891
39792
|
},
|
|
39892
39793
|
entries() {
|
|
39893
39794
|
return iterator(this, "entries", (value) => {
|
|
39894
|
-
value[1] =
|
|
39795
|
+
value[1] = toReactive(value[1]);
|
|
39895
39796
|
return value;
|
|
39896
39797
|
});
|
|
39897
39798
|
},
|
|
@@ -39899,37 +39800,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39899
39800
|
return apply$3(this, "every", fn, thisArg, void 0, arguments);
|
|
39900
39801
|
},
|
|
39901
39802
|
filter(fn, thisArg) {
|
|
39902
|
-
return apply$3(
|
|
39903
|
-
this,
|
|
39904
|
-
"filter",
|
|
39905
|
-
fn,
|
|
39906
|
-
thisArg,
|
|
39907
|
-
(v2) => v2.map((item) => toWrapped(this, item)),
|
|
39908
|
-
arguments
|
|
39909
|
-
);
|
|
39803
|
+
return apply$3(this, "filter", fn, thisArg, (v2) => v2.map(toReactive), arguments);
|
|
39910
39804
|
},
|
|
39911
39805
|
find(fn, thisArg) {
|
|
39912
|
-
return apply$3(
|
|
39913
|
-
this,
|
|
39914
|
-
"find",
|
|
39915
|
-
fn,
|
|
39916
|
-
thisArg,
|
|
39917
|
-
(item) => toWrapped(this, item),
|
|
39918
|
-
arguments
|
|
39919
|
-
);
|
|
39806
|
+
return apply$3(this, "find", fn, thisArg, toReactive, arguments);
|
|
39920
39807
|
},
|
|
39921
39808
|
findIndex(fn, thisArg) {
|
|
39922
39809
|
return apply$3(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
39923
39810
|
},
|
|
39924
39811
|
findLast(fn, thisArg) {
|
|
39925
|
-
return apply$3(
|
|
39926
|
-
this,
|
|
39927
|
-
"findLast",
|
|
39928
|
-
fn,
|
|
39929
|
-
thisArg,
|
|
39930
|
-
(item) => toWrapped(this, item),
|
|
39931
|
-
arguments
|
|
39932
|
-
);
|
|
39812
|
+
return apply$3(this, "findLast", fn, thisArg, toReactive, arguments);
|
|
39933
39813
|
},
|
|
39934
39814
|
findLastIndex(fn, thisArg) {
|
|
39935
39815
|
return apply$3(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
@@ -39989,7 +39869,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39989
39869
|
return noTracking(this, "unshift", args);
|
|
39990
39870
|
},
|
|
39991
39871
|
values() {
|
|
39992
|
-
return iterator(this, "values",
|
|
39872
|
+
return iterator(this, "values", toReactive);
|
|
39993
39873
|
}
|
|
39994
39874
|
};
|
|
39995
39875
|
function iterator(self2, method, wrapValue) {
|
|
@@ -40020,7 +39900,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40020
39900
|
if (arr !== self2) {
|
|
40021
39901
|
if (needsWrap) {
|
|
40022
39902
|
wrappedFn = function(item, index2) {
|
|
40023
|
-
return fn.call(this,
|
|
39903
|
+
return fn.call(this, toReactive(item), index2, self2);
|
|
40024
39904
|
};
|
|
40025
39905
|
} else if (fn.length > 2) {
|
|
40026
39906
|
wrappedFn = function(item, index2) {
|
|
@@ -40037,7 +39917,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40037
39917
|
if (arr !== self2) {
|
|
40038
39918
|
if (!isShallow(self2)) {
|
|
40039
39919
|
wrappedFn = function(acc, item, index2) {
|
|
40040
|
-
return fn.call(this, acc,
|
|
39920
|
+
return fn.call(this, acc, toReactive(item), index2, self2);
|
|
40041
39921
|
};
|
|
40042
39922
|
} else if (fn.length > 3) {
|
|
40043
39923
|
wrappedFn = function(acc, item, index2) {
|
|
@@ -40140,14 +40020,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40140
40020
|
}
|
|
40141
40021
|
set(target, key2, value, receiver) {
|
|
40142
40022
|
let oldValue = target[key2];
|
|
40143
|
-
const isArrayWithIntegerKey = isArray$3(target) && isIntegerKey(key2);
|
|
40144
40023
|
if (!this._isShallow) {
|
|
40145
40024
|
const isOldValueReadonly = isReadonly(oldValue);
|
|
40146
40025
|
if (!isShallow(value) && !isReadonly(value)) {
|
|
40147
40026
|
oldValue = toRaw(oldValue);
|
|
40148
40027
|
value = toRaw(value);
|
|
40149
40028
|
}
|
|
40150
|
-
if (!
|
|
40029
|
+
if (!isArray$3(target) && isRef(oldValue) && !isRef(value)) {
|
|
40151
40030
|
if (isOldValueReadonly) {
|
|
40152
40031
|
return true;
|
|
40153
40032
|
} else {
|
|
@@ -40156,7 +40035,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40156
40035
|
}
|
|
40157
40036
|
}
|
|
40158
40037
|
}
|
|
40159
|
-
const hadKey =
|
|
40038
|
+
const hadKey = isArray$3(target) && isIntegerKey(key2) ? Number(key2) < target.length : hasOwn(target, key2);
|
|
40160
40039
|
const result = Reflect.set(
|
|
40161
40040
|
target,
|
|
40162
40041
|
key2,
|
|
@@ -40595,35 +40474,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40595
40474
|
this._defaultValue = _defaultValue;
|
|
40596
40475
|
this["__v_isRef"] = true;
|
|
40597
40476
|
this._value = void 0;
|
|
40598
|
-
this._raw = toRaw(_object);
|
|
40599
|
-
let shallow = true;
|
|
40600
|
-
let obj = _object;
|
|
40601
|
-
if (!isArray$3(_object) || !isIntegerKey(String(_key))) {
|
|
40602
|
-
do {
|
|
40603
|
-
shallow = !isProxy(obj) || isShallow(obj);
|
|
40604
|
-
} while (shallow && (obj = obj["__v_raw"]));
|
|
40605
|
-
}
|
|
40606
|
-
this._shallow = shallow;
|
|
40607
40477
|
}
|
|
40608
40478
|
get value() {
|
|
40609
|
-
|
|
40610
|
-
if (this._shallow) {
|
|
40611
|
-
val = unref(val);
|
|
40612
|
-
}
|
|
40479
|
+
const val = this._object[this._key];
|
|
40613
40480
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
40614
40481
|
}
|
|
40615
40482
|
set value(newVal) {
|
|
40616
|
-
if (this._shallow && isRef(this._raw[this._key])) {
|
|
40617
|
-
const nestedRef = this._object[this._key];
|
|
40618
|
-
if (isRef(nestedRef)) {
|
|
40619
|
-
nestedRef.value = newVal;
|
|
40620
|
-
return;
|
|
40621
|
-
}
|
|
40622
|
-
}
|
|
40623
40483
|
this._object[this._key] = newVal;
|
|
40624
40484
|
}
|
|
40625
40485
|
get dep() {
|
|
40626
|
-
return getDepFromReactive(this.
|
|
40486
|
+
return getDepFromReactive(toRaw(this._object), this._key);
|
|
40627
40487
|
}
|
|
40628
40488
|
}
|
|
40629
40489
|
class GetterRefImpl {
|
|
@@ -40649,7 +40509,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40649
40509
|
}
|
|
40650
40510
|
}
|
|
40651
40511
|
function propertyToRef(source, key2, defaultValue) {
|
|
40652
|
-
|
|
40512
|
+
const val = source[key2];
|
|
40513
|
+
return isRef(val) ? val : new ObjectRefImpl(source, key2, defaultValue);
|
|
40653
40514
|
}
|
|
40654
40515
|
class ComputedRefImpl {
|
|
40655
40516
|
constructor(fn, setter, isSSR) {
|
|
@@ -42511,6 +42372,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42511
42372
|
return true;
|
|
42512
42373
|
}
|
|
42513
42374
|
const { ctx: ctx2, setupState, data, props, accessCache, type: type2, appContext } = instance;
|
|
42375
|
+
let normalizedProps;
|
|
42514
42376
|
if (key2[0] !== "$") {
|
|
42515
42377
|
const n = accessCache[key2];
|
|
42516
42378
|
if (n !== void 0) {
|
|
@@ -42530,7 +42392,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42530
42392
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key2)) {
|
|
42531
42393
|
accessCache[key2] = 2;
|
|
42532
42394
|
return data[key2];
|
|
42533
|
-
} else if (
|
|
42395
|
+
} else if (
|
|
42396
|
+
// only cache other properties when instance has declared (thus stable)
|
|
42397
|
+
// props
|
|
42398
|
+
(normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key2)
|
|
42399
|
+
) {
|
|
42534
42400
|
accessCache[key2] = 3;
|
|
42535
42401
|
return props[key2];
|
|
42536
42402
|
} else if (ctx2 !== EMPTY_OBJ && hasOwn(ctx2, key2)) {
|
|
@@ -42585,10 +42451,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42585
42451
|
return true;
|
|
42586
42452
|
},
|
|
42587
42453
|
has({
|
|
42588
|
-
_: { data, setupState, accessCache, ctx: ctx2, appContext,
|
|
42454
|
+
_: { data, setupState, accessCache, ctx: ctx2, appContext, propsOptions, type: type2 }
|
|
42589
42455
|
}, key2) {
|
|
42590
|
-
let cssModules;
|
|
42591
|
-
return !!(accessCache[key2] || data !== EMPTY_OBJ && key2[0] !== "$" && hasOwn(data, key2) || hasSetupBinding(setupState, key2) || hasOwn(
|
|
42456
|
+
let normalizedProps, cssModules;
|
|
42457
|
+
return !!(accessCache[key2] || data !== EMPTY_OBJ && key2[0] !== "$" && hasOwn(data, key2) || hasSetupBinding(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key2) || hasOwn(ctx2, key2) || hasOwn(publicPropertiesMap, key2) || hasOwn(appContext.config.globalProperties, key2) || (cssModules = type2.__cssModules) && cssModules[key2]);
|
|
42592
42458
|
},
|
|
42593
42459
|
defineProperty(target, key2, descriptor) {
|
|
42594
42460
|
if (descriptor.get != null) {
|
|
@@ -43075,7 +42941,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43075
42941
|
}
|
|
43076
42942
|
let currentApp = null;
|
|
43077
42943
|
function provide(key2, value) {
|
|
43078
|
-
if (currentInstance)
|
|
42944
|
+
if (!currentInstance) ;
|
|
42945
|
+
else {
|
|
43079
42946
|
let provides = currentInstance.provides;
|
|
43080
42947
|
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
43081
42948
|
if (parentProvides === provides) {
|
|
@@ -43098,391 +42965,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43098
42965
|
function hasInjectionContext() {
|
|
43099
42966
|
return !!(getCurrentInstance() || currentApp);
|
|
43100
42967
|
}
|
|
43101
|
-
const ssrContextKey$2 = Symbol.for("v-scx");
|
|
43102
|
-
const useSSRContext = () => {
|
|
43103
|
-
{
|
|
43104
|
-
const ctx2 = inject(ssrContextKey$2);
|
|
43105
|
-
return ctx2;
|
|
43106
|
-
}
|
|
43107
|
-
};
|
|
43108
|
-
function watchEffect(effect2, options) {
|
|
43109
|
-
return doWatch(effect2, null, options);
|
|
43110
|
-
}
|
|
43111
|
-
function watch(source, cb, options) {
|
|
43112
|
-
return doWatch(source, cb, options);
|
|
43113
|
-
}
|
|
43114
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
43115
|
-
const { immediate, deep, flush, once } = options;
|
|
43116
|
-
const baseWatchOptions = extend$2({}, options);
|
|
43117
|
-
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
43118
|
-
let ssrCleanup;
|
|
43119
|
-
if (isInSSRComponentSetup) {
|
|
43120
|
-
if (flush === "sync") {
|
|
43121
|
-
const ctx2 = useSSRContext();
|
|
43122
|
-
ssrCleanup = ctx2.__watcherHandles || (ctx2.__watcherHandles = []);
|
|
43123
|
-
} else if (!runsImmediately) {
|
|
43124
|
-
const watchStopHandle = () => {
|
|
43125
|
-
};
|
|
43126
|
-
watchStopHandle.stop = NOOP;
|
|
43127
|
-
watchStopHandle.resume = NOOP;
|
|
43128
|
-
watchStopHandle.pause = NOOP;
|
|
43129
|
-
return watchStopHandle;
|
|
43130
|
-
}
|
|
43131
|
-
}
|
|
43132
|
-
const instance = currentInstance;
|
|
43133
|
-
baseWatchOptions.call = (fn, type2, args) => callWithAsyncErrorHandling(fn, instance, type2, args);
|
|
43134
|
-
let isPre = false;
|
|
43135
|
-
if (flush === "post") {
|
|
43136
|
-
baseWatchOptions.scheduler = (job) => {
|
|
43137
|
-
queuePostRenderEffect(job, instance && instance.suspense);
|
|
43138
|
-
};
|
|
43139
|
-
} else if (flush !== "sync") {
|
|
43140
|
-
isPre = true;
|
|
43141
|
-
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
43142
|
-
if (isFirstRun) {
|
|
43143
|
-
job();
|
|
43144
|
-
} else {
|
|
43145
|
-
queueJob(job);
|
|
43146
|
-
}
|
|
43147
|
-
};
|
|
43148
|
-
}
|
|
43149
|
-
baseWatchOptions.augmentJob = (job) => {
|
|
43150
|
-
if (cb) {
|
|
43151
|
-
job.flags |= 4;
|
|
43152
|
-
}
|
|
43153
|
-
if (isPre) {
|
|
43154
|
-
job.flags |= 2;
|
|
43155
|
-
if (instance) {
|
|
43156
|
-
job.id = instance.uid;
|
|
43157
|
-
job.i = instance;
|
|
43158
|
-
}
|
|
43159
|
-
}
|
|
43160
|
-
};
|
|
43161
|
-
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
43162
|
-
if (isInSSRComponentSetup) {
|
|
43163
|
-
if (ssrCleanup) {
|
|
43164
|
-
ssrCleanup.push(watchHandle);
|
|
43165
|
-
} else if (runsImmediately) {
|
|
43166
|
-
watchHandle();
|
|
43167
|
-
}
|
|
43168
|
-
}
|
|
43169
|
-
return watchHandle;
|
|
43170
|
-
}
|
|
43171
|
-
function instanceWatch(source, value, options) {
|
|
43172
|
-
const publicThis = this.proxy;
|
|
43173
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
43174
|
-
let cb;
|
|
43175
|
-
if (isFunction$2(value)) {
|
|
43176
|
-
cb = value;
|
|
43177
|
-
} else {
|
|
43178
|
-
cb = value.handler;
|
|
43179
|
-
options = value;
|
|
43180
|
-
}
|
|
43181
|
-
const reset = setCurrentInstance(this);
|
|
43182
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
43183
|
-
reset();
|
|
43184
|
-
return res;
|
|
43185
|
-
}
|
|
43186
|
-
function createPathGetter(ctx2, path2) {
|
|
43187
|
-
const segments = path2.split(".");
|
|
43188
|
-
return () => {
|
|
43189
|
-
let cur = ctx2;
|
|
43190
|
-
for (let i2 = 0; i2 < segments.length && cur; i2++) {
|
|
43191
|
-
cur = cur[segments[i2]];
|
|
43192
|
-
}
|
|
43193
|
-
return cur;
|
|
43194
|
-
};
|
|
43195
|
-
}
|
|
43196
|
-
const getModelModifiers = (props, modelName) => {
|
|
43197
|
-
return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
|
|
43198
|
-
};
|
|
43199
|
-
function emit(instance, event, ...rawArgs) {
|
|
43200
|
-
if (instance.isUnmounted) return;
|
|
43201
|
-
const props = instance.vnode.props || EMPTY_OBJ;
|
|
43202
|
-
let args = rawArgs;
|
|
43203
|
-
const isModelListener2 = event.startsWith("update:");
|
|
43204
|
-
const modifiers2 = isModelListener2 && getModelModifiers(props, event.slice(7));
|
|
43205
|
-
if (modifiers2) {
|
|
43206
|
-
if (modifiers2.trim) {
|
|
43207
|
-
args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2);
|
|
43208
|
-
}
|
|
43209
|
-
if (modifiers2.number) {
|
|
43210
|
-
args = rawArgs.map(looseToNumber);
|
|
43211
|
-
}
|
|
43212
|
-
}
|
|
43213
|
-
let handlerName;
|
|
43214
|
-
let handler2 = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
|
|
43215
|
-
props[handlerName = toHandlerKey(camelize(event))];
|
|
43216
|
-
if (!handler2 && isModelListener2) {
|
|
43217
|
-
handler2 = props[handlerName = toHandlerKey(hyphenate(event))];
|
|
43218
|
-
}
|
|
43219
|
-
if (handler2) {
|
|
43220
|
-
callWithAsyncErrorHandling(
|
|
43221
|
-
handler2,
|
|
43222
|
-
instance,
|
|
43223
|
-
6,
|
|
43224
|
-
args
|
|
43225
|
-
);
|
|
43226
|
-
}
|
|
43227
|
-
const onceHandler = props[handlerName + `Once`];
|
|
43228
|
-
if (onceHandler) {
|
|
43229
|
-
if (!instance.emitted) {
|
|
43230
|
-
instance.emitted = {};
|
|
43231
|
-
} else if (instance.emitted[handlerName]) {
|
|
43232
|
-
return;
|
|
43233
|
-
}
|
|
43234
|
-
instance.emitted[handlerName] = true;
|
|
43235
|
-
callWithAsyncErrorHandling(
|
|
43236
|
-
onceHandler,
|
|
43237
|
-
instance,
|
|
43238
|
-
6,
|
|
43239
|
-
args
|
|
43240
|
-
);
|
|
43241
|
-
}
|
|
43242
|
-
}
|
|
43243
|
-
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
43244
|
-
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
43245
|
-
const cache2 = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
43246
|
-
const cached = cache2.get(comp);
|
|
43247
|
-
if (cached !== void 0) {
|
|
43248
|
-
return cached;
|
|
43249
|
-
}
|
|
43250
|
-
const raw = comp.emits;
|
|
43251
|
-
let normalized = {};
|
|
43252
|
-
let hasExtends = false;
|
|
43253
|
-
if (!isFunction$2(comp)) {
|
|
43254
|
-
const extendEmits = (raw2) => {
|
|
43255
|
-
const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
|
|
43256
|
-
if (normalizedFromExtend) {
|
|
43257
|
-
hasExtends = true;
|
|
43258
|
-
extend$2(normalized, normalizedFromExtend);
|
|
43259
|
-
}
|
|
43260
|
-
};
|
|
43261
|
-
if (!asMixin && appContext.mixins.length) {
|
|
43262
|
-
appContext.mixins.forEach(extendEmits);
|
|
43263
|
-
}
|
|
43264
|
-
if (comp.extends) {
|
|
43265
|
-
extendEmits(comp.extends);
|
|
43266
|
-
}
|
|
43267
|
-
if (comp.mixins) {
|
|
43268
|
-
comp.mixins.forEach(extendEmits);
|
|
43269
|
-
}
|
|
43270
|
-
}
|
|
43271
|
-
if (!raw && !hasExtends) {
|
|
43272
|
-
if (isObject$3(comp)) {
|
|
43273
|
-
cache2.set(comp, null);
|
|
43274
|
-
}
|
|
43275
|
-
return null;
|
|
43276
|
-
}
|
|
43277
|
-
if (isArray$3(raw)) {
|
|
43278
|
-
raw.forEach((key2) => normalized[key2] = null);
|
|
43279
|
-
} else {
|
|
43280
|
-
extend$2(normalized, raw);
|
|
43281
|
-
}
|
|
43282
|
-
if (isObject$3(comp)) {
|
|
43283
|
-
cache2.set(comp, normalized);
|
|
43284
|
-
}
|
|
43285
|
-
return normalized;
|
|
43286
|
-
}
|
|
43287
|
-
function isEmitListener(options, key2) {
|
|
43288
|
-
if (!options || !isOn(key2)) {
|
|
43289
|
-
return false;
|
|
43290
|
-
}
|
|
43291
|
-
key2 = key2.slice(2).replace(/Once$/, "");
|
|
43292
|
-
return hasOwn(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn(options, hyphenate(key2)) || hasOwn(options, key2);
|
|
43293
|
-
}
|
|
43294
|
-
function markAttrsAccessed() {
|
|
43295
|
-
}
|
|
43296
|
-
function renderComponentRoot(instance) {
|
|
43297
|
-
const {
|
|
43298
|
-
type: Component,
|
|
43299
|
-
vnode,
|
|
43300
|
-
proxy,
|
|
43301
|
-
withProxy,
|
|
43302
|
-
propsOptions: [propsOptions],
|
|
43303
|
-
slots,
|
|
43304
|
-
attrs,
|
|
43305
|
-
emit: emit2,
|
|
43306
|
-
render: render2,
|
|
43307
|
-
renderCache,
|
|
43308
|
-
props,
|
|
43309
|
-
data,
|
|
43310
|
-
setupState,
|
|
43311
|
-
ctx: ctx2,
|
|
43312
|
-
inheritAttrs
|
|
43313
|
-
} = instance;
|
|
43314
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
43315
|
-
let result;
|
|
43316
|
-
let fallthroughAttrs;
|
|
43317
|
-
try {
|
|
43318
|
-
if (vnode.shapeFlag & 4) {
|
|
43319
|
-
const proxyToUse = withProxy || proxy;
|
|
43320
|
-
const thisProxy = !!(define_process_default$2.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
|
|
43321
|
-
get(target, key2, receiver) {
|
|
43322
|
-
warn$1$2(
|
|
43323
|
-
`Property '${String(
|
|
43324
|
-
key2
|
|
43325
|
-
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
43326
|
-
);
|
|
43327
|
-
return Reflect.get(target, key2, receiver);
|
|
43328
|
-
}
|
|
43329
|
-
}) : proxyToUse;
|
|
43330
|
-
result = normalizeVNode(
|
|
43331
|
-
render2.call(
|
|
43332
|
-
thisProxy,
|
|
43333
|
-
proxyToUse,
|
|
43334
|
-
renderCache,
|
|
43335
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
43336
|
-
setupState,
|
|
43337
|
-
data,
|
|
43338
|
-
ctx2
|
|
43339
|
-
)
|
|
43340
|
-
);
|
|
43341
|
-
fallthroughAttrs = attrs;
|
|
43342
|
-
} else {
|
|
43343
|
-
const render22 = Component;
|
|
43344
|
-
if (!!(define_process_default$2.env.NODE_ENV !== "production") && attrs === props) ;
|
|
43345
|
-
result = normalizeVNode(
|
|
43346
|
-
render22.length > 1 ? render22(
|
|
43347
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
43348
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? {
|
|
43349
|
-
get attrs() {
|
|
43350
|
-
markAttrsAccessed();
|
|
43351
|
-
return shallowReadonly(attrs);
|
|
43352
|
-
},
|
|
43353
|
-
slots,
|
|
43354
|
-
emit: emit2
|
|
43355
|
-
} : { attrs, slots, emit: emit2 }
|
|
43356
|
-
) : render22(
|
|
43357
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
43358
|
-
null
|
|
43359
|
-
)
|
|
43360
|
-
);
|
|
43361
|
-
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
43362
|
-
}
|
|
43363
|
-
} catch (err) {
|
|
43364
|
-
blockStack.length = 0;
|
|
43365
|
-
handleError(err, instance, 1);
|
|
43366
|
-
result = createVNode(Comment);
|
|
43367
|
-
}
|
|
43368
|
-
let root2 = result;
|
|
43369
|
-
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
43370
|
-
const keys2 = Object.keys(fallthroughAttrs);
|
|
43371
|
-
const { shapeFlag } = root2;
|
|
43372
|
-
if (keys2.length) {
|
|
43373
|
-
if (shapeFlag & (1 | 6)) {
|
|
43374
|
-
if (propsOptions && keys2.some(isModelListener)) {
|
|
43375
|
-
fallthroughAttrs = filterModelListeners(
|
|
43376
|
-
fallthroughAttrs,
|
|
43377
|
-
propsOptions
|
|
43378
|
-
);
|
|
43379
|
-
}
|
|
43380
|
-
root2 = cloneVNode(root2, fallthroughAttrs, false, true);
|
|
43381
|
-
}
|
|
43382
|
-
}
|
|
43383
|
-
}
|
|
43384
|
-
if (vnode.dirs) {
|
|
43385
|
-
root2 = cloneVNode(root2, null, false, true);
|
|
43386
|
-
root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
43387
|
-
}
|
|
43388
|
-
if (vnode.transition) {
|
|
43389
|
-
setTransitionHooks(root2, vnode.transition);
|
|
43390
|
-
}
|
|
43391
|
-
{
|
|
43392
|
-
result = root2;
|
|
43393
|
-
}
|
|
43394
|
-
setCurrentRenderingInstance(prev);
|
|
43395
|
-
return result;
|
|
43396
|
-
}
|
|
43397
|
-
const getFunctionalFallthrough = (attrs) => {
|
|
43398
|
-
let res;
|
|
43399
|
-
for (const key2 in attrs) {
|
|
43400
|
-
if (key2 === "class" || key2 === "style" || isOn(key2)) {
|
|
43401
|
-
(res || (res = {}))[key2] = attrs[key2];
|
|
43402
|
-
}
|
|
43403
|
-
}
|
|
43404
|
-
return res;
|
|
43405
|
-
};
|
|
43406
|
-
const filterModelListeners = (attrs, props) => {
|
|
43407
|
-
const res = {};
|
|
43408
|
-
for (const key2 in attrs) {
|
|
43409
|
-
if (!isModelListener(key2) || !(key2.slice(9) in props)) {
|
|
43410
|
-
res[key2] = attrs[key2];
|
|
43411
|
-
}
|
|
43412
|
-
}
|
|
43413
|
-
return res;
|
|
43414
|
-
};
|
|
43415
|
-
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
43416
|
-
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
43417
|
-
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
43418
|
-
const emits = component.emitsOptions;
|
|
43419
|
-
if (nextVNode.dirs || nextVNode.transition) {
|
|
43420
|
-
return true;
|
|
43421
|
-
}
|
|
43422
|
-
if (optimized && patchFlag >= 0) {
|
|
43423
|
-
if (patchFlag & 1024) {
|
|
43424
|
-
return true;
|
|
43425
|
-
}
|
|
43426
|
-
if (patchFlag & 16) {
|
|
43427
|
-
if (!prevProps) {
|
|
43428
|
-
return !!nextProps;
|
|
43429
|
-
}
|
|
43430
|
-
return hasPropsChanged(prevProps, nextProps, emits);
|
|
43431
|
-
} else if (patchFlag & 8) {
|
|
43432
|
-
const dynamicProps = nextVNode.dynamicProps;
|
|
43433
|
-
for (let i2 = 0; i2 < dynamicProps.length; i2++) {
|
|
43434
|
-
const key2 = dynamicProps[i2];
|
|
43435
|
-
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits, key2)) {
|
|
43436
|
-
return true;
|
|
43437
|
-
}
|
|
43438
|
-
}
|
|
43439
|
-
}
|
|
43440
|
-
} else {
|
|
43441
|
-
if (prevChildren || nextChildren) {
|
|
43442
|
-
if (!nextChildren || !nextChildren.$stable) {
|
|
43443
|
-
return true;
|
|
43444
|
-
}
|
|
43445
|
-
}
|
|
43446
|
-
if (prevProps === nextProps) {
|
|
43447
|
-
return false;
|
|
43448
|
-
}
|
|
43449
|
-
if (!prevProps) {
|
|
43450
|
-
return !!nextProps;
|
|
43451
|
-
}
|
|
43452
|
-
if (!nextProps) {
|
|
43453
|
-
return true;
|
|
43454
|
-
}
|
|
43455
|
-
return hasPropsChanged(prevProps, nextProps, emits);
|
|
43456
|
-
}
|
|
43457
|
-
return false;
|
|
43458
|
-
}
|
|
43459
|
-
function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
43460
|
-
const nextKeys = Object.keys(nextProps);
|
|
43461
|
-
if (nextKeys.length !== Object.keys(prevProps).length) {
|
|
43462
|
-
return true;
|
|
43463
|
-
}
|
|
43464
|
-
for (let i2 = 0; i2 < nextKeys.length; i2++) {
|
|
43465
|
-
const key2 = nextKeys[i2];
|
|
43466
|
-
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) {
|
|
43467
|
-
return true;
|
|
43468
|
-
}
|
|
43469
|
-
}
|
|
43470
|
-
return false;
|
|
43471
|
-
}
|
|
43472
|
-
function updateHOCHostEl({ vnode, parent }, el) {
|
|
43473
|
-
while (parent) {
|
|
43474
|
-
const root2 = parent.subTree;
|
|
43475
|
-
if (root2.suspense && root2.suspense.activeBranch === vnode) {
|
|
43476
|
-
root2.el = vnode.el;
|
|
43477
|
-
}
|
|
43478
|
-
if (root2 === vnode) {
|
|
43479
|
-
(vnode = parent.vnode).el = el;
|
|
43480
|
-
parent = parent.parent;
|
|
43481
|
-
} else {
|
|
43482
|
-
break;
|
|
43483
|
-
}
|
|
43484
|
-
}
|
|
43485
|
-
}
|
|
43486
42968
|
const internalObjectProto = {};
|
|
43487
42969
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
43488
42970
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
@@ -45203,6 +44685,391 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45203
44685
|
hooks[i2].flags |= 8;
|
|
45204
44686
|
}
|
|
45205
44687
|
}
|
|
44688
|
+
const ssrContextKey$2 = Symbol.for("v-scx");
|
|
44689
|
+
const useSSRContext = () => {
|
|
44690
|
+
{
|
|
44691
|
+
const ctx2 = inject(ssrContextKey$2);
|
|
44692
|
+
return ctx2;
|
|
44693
|
+
}
|
|
44694
|
+
};
|
|
44695
|
+
function watchEffect(effect2, options) {
|
|
44696
|
+
return doWatch(effect2, null, options);
|
|
44697
|
+
}
|
|
44698
|
+
function watch(source, cb, options) {
|
|
44699
|
+
return doWatch(source, cb, options);
|
|
44700
|
+
}
|
|
44701
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
44702
|
+
const { immediate, deep, flush, once } = options;
|
|
44703
|
+
const baseWatchOptions = extend$2({}, options);
|
|
44704
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
44705
|
+
let ssrCleanup;
|
|
44706
|
+
if (isInSSRComponentSetup) {
|
|
44707
|
+
if (flush === "sync") {
|
|
44708
|
+
const ctx2 = useSSRContext();
|
|
44709
|
+
ssrCleanup = ctx2.__watcherHandles || (ctx2.__watcherHandles = []);
|
|
44710
|
+
} else if (!runsImmediately) {
|
|
44711
|
+
const watchStopHandle = () => {
|
|
44712
|
+
};
|
|
44713
|
+
watchStopHandle.stop = NOOP;
|
|
44714
|
+
watchStopHandle.resume = NOOP;
|
|
44715
|
+
watchStopHandle.pause = NOOP;
|
|
44716
|
+
return watchStopHandle;
|
|
44717
|
+
}
|
|
44718
|
+
}
|
|
44719
|
+
const instance = currentInstance;
|
|
44720
|
+
baseWatchOptions.call = (fn, type2, args) => callWithAsyncErrorHandling(fn, instance, type2, args);
|
|
44721
|
+
let isPre = false;
|
|
44722
|
+
if (flush === "post") {
|
|
44723
|
+
baseWatchOptions.scheduler = (job) => {
|
|
44724
|
+
queuePostRenderEffect(job, instance && instance.suspense);
|
|
44725
|
+
};
|
|
44726
|
+
} else if (flush !== "sync") {
|
|
44727
|
+
isPre = true;
|
|
44728
|
+
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
44729
|
+
if (isFirstRun) {
|
|
44730
|
+
job();
|
|
44731
|
+
} else {
|
|
44732
|
+
queueJob(job);
|
|
44733
|
+
}
|
|
44734
|
+
};
|
|
44735
|
+
}
|
|
44736
|
+
baseWatchOptions.augmentJob = (job) => {
|
|
44737
|
+
if (cb) {
|
|
44738
|
+
job.flags |= 4;
|
|
44739
|
+
}
|
|
44740
|
+
if (isPre) {
|
|
44741
|
+
job.flags |= 2;
|
|
44742
|
+
if (instance) {
|
|
44743
|
+
job.id = instance.uid;
|
|
44744
|
+
job.i = instance;
|
|
44745
|
+
}
|
|
44746
|
+
}
|
|
44747
|
+
};
|
|
44748
|
+
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
44749
|
+
if (isInSSRComponentSetup) {
|
|
44750
|
+
if (ssrCleanup) {
|
|
44751
|
+
ssrCleanup.push(watchHandle);
|
|
44752
|
+
} else if (runsImmediately) {
|
|
44753
|
+
watchHandle();
|
|
44754
|
+
}
|
|
44755
|
+
}
|
|
44756
|
+
return watchHandle;
|
|
44757
|
+
}
|
|
44758
|
+
function instanceWatch(source, value, options) {
|
|
44759
|
+
const publicThis = this.proxy;
|
|
44760
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
44761
|
+
let cb;
|
|
44762
|
+
if (isFunction$2(value)) {
|
|
44763
|
+
cb = value;
|
|
44764
|
+
} else {
|
|
44765
|
+
cb = value.handler;
|
|
44766
|
+
options = value;
|
|
44767
|
+
}
|
|
44768
|
+
const reset = setCurrentInstance(this);
|
|
44769
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
44770
|
+
reset();
|
|
44771
|
+
return res;
|
|
44772
|
+
}
|
|
44773
|
+
function createPathGetter(ctx2, path2) {
|
|
44774
|
+
const segments = path2.split(".");
|
|
44775
|
+
return () => {
|
|
44776
|
+
let cur = ctx2;
|
|
44777
|
+
for (let i2 = 0; i2 < segments.length && cur; i2++) {
|
|
44778
|
+
cur = cur[segments[i2]];
|
|
44779
|
+
}
|
|
44780
|
+
return cur;
|
|
44781
|
+
};
|
|
44782
|
+
}
|
|
44783
|
+
const getModelModifiers = (props, modelName) => {
|
|
44784
|
+
return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
|
|
44785
|
+
};
|
|
44786
|
+
function emit(instance, event, ...rawArgs) {
|
|
44787
|
+
if (instance.isUnmounted) return;
|
|
44788
|
+
const props = instance.vnode.props || EMPTY_OBJ;
|
|
44789
|
+
let args = rawArgs;
|
|
44790
|
+
const isModelListener2 = event.startsWith("update:");
|
|
44791
|
+
const modifiers2 = isModelListener2 && getModelModifiers(props, event.slice(7));
|
|
44792
|
+
if (modifiers2) {
|
|
44793
|
+
if (modifiers2.trim) {
|
|
44794
|
+
args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2);
|
|
44795
|
+
}
|
|
44796
|
+
if (modifiers2.number) {
|
|
44797
|
+
args = rawArgs.map(looseToNumber);
|
|
44798
|
+
}
|
|
44799
|
+
}
|
|
44800
|
+
let handlerName;
|
|
44801
|
+
let handler2 = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
|
|
44802
|
+
props[handlerName = toHandlerKey(camelize(event))];
|
|
44803
|
+
if (!handler2 && isModelListener2) {
|
|
44804
|
+
handler2 = props[handlerName = toHandlerKey(hyphenate(event))];
|
|
44805
|
+
}
|
|
44806
|
+
if (handler2) {
|
|
44807
|
+
callWithAsyncErrorHandling(
|
|
44808
|
+
handler2,
|
|
44809
|
+
instance,
|
|
44810
|
+
6,
|
|
44811
|
+
args
|
|
44812
|
+
);
|
|
44813
|
+
}
|
|
44814
|
+
const onceHandler = props[handlerName + `Once`];
|
|
44815
|
+
if (onceHandler) {
|
|
44816
|
+
if (!instance.emitted) {
|
|
44817
|
+
instance.emitted = {};
|
|
44818
|
+
} else if (instance.emitted[handlerName]) {
|
|
44819
|
+
return;
|
|
44820
|
+
}
|
|
44821
|
+
instance.emitted[handlerName] = true;
|
|
44822
|
+
callWithAsyncErrorHandling(
|
|
44823
|
+
onceHandler,
|
|
44824
|
+
instance,
|
|
44825
|
+
6,
|
|
44826
|
+
args
|
|
44827
|
+
);
|
|
44828
|
+
}
|
|
44829
|
+
}
|
|
44830
|
+
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
44831
|
+
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
44832
|
+
const cache2 = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
44833
|
+
const cached = cache2.get(comp);
|
|
44834
|
+
if (cached !== void 0) {
|
|
44835
|
+
return cached;
|
|
44836
|
+
}
|
|
44837
|
+
const raw = comp.emits;
|
|
44838
|
+
let normalized = {};
|
|
44839
|
+
let hasExtends = false;
|
|
44840
|
+
if (!isFunction$2(comp)) {
|
|
44841
|
+
const extendEmits = (raw2) => {
|
|
44842
|
+
const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
|
|
44843
|
+
if (normalizedFromExtend) {
|
|
44844
|
+
hasExtends = true;
|
|
44845
|
+
extend$2(normalized, normalizedFromExtend);
|
|
44846
|
+
}
|
|
44847
|
+
};
|
|
44848
|
+
if (!asMixin && appContext.mixins.length) {
|
|
44849
|
+
appContext.mixins.forEach(extendEmits);
|
|
44850
|
+
}
|
|
44851
|
+
if (comp.extends) {
|
|
44852
|
+
extendEmits(comp.extends);
|
|
44853
|
+
}
|
|
44854
|
+
if (comp.mixins) {
|
|
44855
|
+
comp.mixins.forEach(extendEmits);
|
|
44856
|
+
}
|
|
44857
|
+
}
|
|
44858
|
+
if (!raw && !hasExtends) {
|
|
44859
|
+
if (isObject$3(comp)) {
|
|
44860
|
+
cache2.set(comp, null);
|
|
44861
|
+
}
|
|
44862
|
+
return null;
|
|
44863
|
+
}
|
|
44864
|
+
if (isArray$3(raw)) {
|
|
44865
|
+
raw.forEach((key2) => normalized[key2] = null);
|
|
44866
|
+
} else {
|
|
44867
|
+
extend$2(normalized, raw);
|
|
44868
|
+
}
|
|
44869
|
+
if (isObject$3(comp)) {
|
|
44870
|
+
cache2.set(comp, normalized);
|
|
44871
|
+
}
|
|
44872
|
+
return normalized;
|
|
44873
|
+
}
|
|
44874
|
+
function isEmitListener(options, key2) {
|
|
44875
|
+
if (!options || !isOn(key2)) {
|
|
44876
|
+
return false;
|
|
44877
|
+
}
|
|
44878
|
+
key2 = key2.slice(2).replace(/Once$/, "");
|
|
44879
|
+
return hasOwn(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn(options, hyphenate(key2)) || hasOwn(options, key2);
|
|
44880
|
+
}
|
|
44881
|
+
function markAttrsAccessed() {
|
|
44882
|
+
}
|
|
44883
|
+
function renderComponentRoot(instance) {
|
|
44884
|
+
const {
|
|
44885
|
+
type: Component,
|
|
44886
|
+
vnode,
|
|
44887
|
+
proxy,
|
|
44888
|
+
withProxy,
|
|
44889
|
+
propsOptions: [propsOptions],
|
|
44890
|
+
slots,
|
|
44891
|
+
attrs,
|
|
44892
|
+
emit: emit2,
|
|
44893
|
+
render: render2,
|
|
44894
|
+
renderCache,
|
|
44895
|
+
props,
|
|
44896
|
+
data,
|
|
44897
|
+
setupState,
|
|
44898
|
+
ctx: ctx2,
|
|
44899
|
+
inheritAttrs
|
|
44900
|
+
} = instance;
|
|
44901
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
44902
|
+
let result;
|
|
44903
|
+
let fallthroughAttrs;
|
|
44904
|
+
try {
|
|
44905
|
+
if (vnode.shapeFlag & 4) {
|
|
44906
|
+
const proxyToUse = withProxy || proxy;
|
|
44907
|
+
const thisProxy = !!(define_process_default$2.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
|
|
44908
|
+
get(target, key2, receiver) {
|
|
44909
|
+
warn$1$2(
|
|
44910
|
+
`Property '${String(
|
|
44911
|
+
key2
|
|
44912
|
+
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
44913
|
+
);
|
|
44914
|
+
return Reflect.get(target, key2, receiver);
|
|
44915
|
+
}
|
|
44916
|
+
}) : proxyToUse;
|
|
44917
|
+
result = normalizeVNode(
|
|
44918
|
+
render2.call(
|
|
44919
|
+
thisProxy,
|
|
44920
|
+
proxyToUse,
|
|
44921
|
+
renderCache,
|
|
44922
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
44923
|
+
setupState,
|
|
44924
|
+
data,
|
|
44925
|
+
ctx2
|
|
44926
|
+
)
|
|
44927
|
+
);
|
|
44928
|
+
fallthroughAttrs = attrs;
|
|
44929
|
+
} else {
|
|
44930
|
+
const render22 = Component;
|
|
44931
|
+
if (!!(define_process_default$2.env.NODE_ENV !== "production") && attrs === props) ;
|
|
44932
|
+
result = normalizeVNode(
|
|
44933
|
+
render22.length > 1 ? render22(
|
|
44934
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
44935
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? {
|
|
44936
|
+
get attrs() {
|
|
44937
|
+
markAttrsAccessed();
|
|
44938
|
+
return shallowReadonly(attrs);
|
|
44939
|
+
},
|
|
44940
|
+
slots,
|
|
44941
|
+
emit: emit2
|
|
44942
|
+
} : { attrs, slots, emit: emit2 }
|
|
44943
|
+
) : render22(
|
|
44944
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
44945
|
+
null
|
|
44946
|
+
)
|
|
44947
|
+
);
|
|
44948
|
+
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
44949
|
+
}
|
|
44950
|
+
} catch (err) {
|
|
44951
|
+
blockStack.length = 0;
|
|
44952
|
+
handleError(err, instance, 1);
|
|
44953
|
+
result = createVNode(Comment);
|
|
44954
|
+
}
|
|
44955
|
+
let root2 = result;
|
|
44956
|
+
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
44957
|
+
const keys2 = Object.keys(fallthroughAttrs);
|
|
44958
|
+
const { shapeFlag } = root2;
|
|
44959
|
+
if (keys2.length) {
|
|
44960
|
+
if (shapeFlag & (1 | 6)) {
|
|
44961
|
+
if (propsOptions && keys2.some(isModelListener)) {
|
|
44962
|
+
fallthroughAttrs = filterModelListeners(
|
|
44963
|
+
fallthroughAttrs,
|
|
44964
|
+
propsOptions
|
|
44965
|
+
);
|
|
44966
|
+
}
|
|
44967
|
+
root2 = cloneVNode(root2, fallthroughAttrs, false, true);
|
|
44968
|
+
}
|
|
44969
|
+
}
|
|
44970
|
+
}
|
|
44971
|
+
if (vnode.dirs) {
|
|
44972
|
+
root2 = cloneVNode(root2, null, false, true);
|
|
44973
|
+
root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
44974
|
+
}
|
|
44975
|
+
if (vnode.transition) {
|
|
44976
|
+
setTransitionHooks(root2, vnode.transition);
|
|
44977
|
+
}
|
|
44978
|
+
{
|
|
44979
|
+
result = root2;
|
|
44980
|
+
}
|
|
44981
|
+
setCurrentRenderingInstance(prev);
|
|
44982
|
+
return result;
|
|
44983
|
+
}
|
|
44984
|
+
const getFunctionalFallthrough = (attrs) => {
|
|
44985
|
+
let res;
|
|
44986
|
+
for (const key2 in attrs) {
|
|
44987
|
+
if (key2 === "class" || key2 === "style" || isOn(key2)) {
|
|
44988
|
+
(res || (res = {}))[key2] = attrs[key2];
|
|
44989
|
+
}
|
|
44990
|
+
}
|
|
44991
|
+
return res;
|
|
44992
|
+
};
|
|
44993
|
+
const filterModelListeners = (attrs, props) => {
|
|
44994
|
+
const res = {};
|
|
44995
|
+
for (const key2 in attrs) {
|
|
44996
|
+
if (!isModelListener(key2) || !(key2.slice(9) in props)) {
|
|
44997
|
+
res[key2] = attrs[key2];
|
|
44998
|
+
}
|
|
44999
|
+
}
|
|
45000
|
+
return res;
|
|
45001
|
+
};
|
|
45002
|
+
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
45003
|
+
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
45004
|
+
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
45005
|
+
const emits = component.emitsOptions;
|
|
45006
|
+
if (nextVNode.dirs || nextVNode.transition) {
|
|
45007
|
+
return true;
|
|
45008
|
+
}
|
|
45009
|
+
if (optimized && patchFlag >= 0) {
|
|
45010
|
+
if (patchFlag & 1024) {
|
|
45011
|
+
return true;
|
|
45012
|
+
}
|
|
45013
|
+
if (patchFlag & 16) {
|
|
45014
|
+
if (!prevProps) {
|
|
45015
|
+
return !!nextProps;
|
|
45016
|
+
}
|
|
45017
|
+
return hasPropsChanged(prevProps, nextProps, emits);
|
|
45018
|
+
} else if (patchFlag & 8) {
|
|
45019
|
+
const dynamicProps = nextVNode.dynamicProps;
|
|
45020
|
+
for (let i2 = 0; i2 < dynamicProps.length; i2++) {
|
|
45021
|
+
const key2 = dynamicProps[i2];
|
|
45022
|
+
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits, key2)) {
|
|
45023
|
+
return true;
|
|
45024
|
+
}
|
|
45025
|
+
}
|
|
45026
|
+
}
|
|
45027
|
+
} else {
|
|
45028
|
+
if (prevChildren || nextChildren) {
|
|
45029
|
+
if (!nextChildren || !nextChildren.$stable) {
|
|
45030
|
+
return true;
|
|
45031
|
+
}
|
|
45032
|
+
}
|
|
45033
|
+
if (prevProps === nextProps) {
|
|
45034
|
+
return false;
|
|
45035
|
+
}
|
|
45036
|
+
if (!prevProps) {
|
|
45037
|
+
return !!nextProps;
|
|
45038
|
+
}
|
|
45039
|
+
if (!nextProps) {
|
|
45040
|
+
return true;
|
|
45041
|
+
}
|
|
45042
|
+
return hasPropsChanged(prevProps, nextProps, emits);
|
|
45043
|
+
}
|
|
45044
|
+
return false;
|
|
45045
|
+
}
|
|
45046
|
+
function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
45047
|
+
const nextKeys = Object.keys(nextProps);
|
|
45048
|
+
if (nextKeys.length !== Object.keys(prevProps).length) {
|
|
45049
|
+
return true;
|
|
45050
|
+
}
|
|
45051
|
+
for (let i2 = 0; i2 < nextKeys.length; i2++) {
|
|
45052
|
+
const key2 = nextKeys[i2];
|
|
45053
|
+
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) {
|
|
45054
|
+
return true;
|
|
45055
|
+
}
|
|
45056
|
+
}
|
|
45057
|
+
return false;
|
|
45058
|
+
}
|
|
45059
|
+
function updateHOCHostEl({ vnode, parent }, el) {
|
|
45060
|
+
while (parent) {
|
|
45061
|
+
const root2 = parent.subTree;
|
|
45062
|
+
if (root2.suspense && root2.suspense.activeBranch === vnode) {
|
|
45063
|
+
root2.el = vnode.el;
|
|
45064
|
+
}
|
|
45065
|
+
if (root2 === vnode) {
|
|
45066
|
+
(vnode = parent.vnode).el = el;
|
|
45067
|
+
parent = parent.parent;
|
|
45068
|
+
} else {
|
|
45069
|
+
break;
|
|
45070
|
+
}
|
|
45071
|
+
}
|
|
45072
|
+
}
|
|
45206
45073
|
const isSuspense = (type2) => type2.__isSuspense;
|
|
45207
45074
|
function queueEffectWithSuspense(fn, suspense) {
|
|
45208
45075
|
if (suspense && suspense.pendingBranch) {
|
|
@@ -45810,7 +45677,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45810
45677
|
name = match[1];
|
|
45811
45678
|
}
|
|
45812
45679
|
}
|
|
45813
|
-
if (!name && instance) {
|
|
45680
|
+
if (!name && instance && instance.parent) {
|
|
45814
45681
|
const inferFromRegistry = (registry) => {
|
|
45815
45682
|
for (const key2 in registry) {
|
|
45816
45683
|
if (registry[key2] === Component) {
|
|
@@ -45818,8 +45685,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45818
45685
|
}
|
|
45819
45686
|
}
|
|
45820
45687
|
};
|
|
45821
|
-
name = inferFromRegistry(
|
|
45822
|
-
instance.parent.type.components
|
|
45688
|
+
name = inferFromRegistry(
|
|
45689
|
+
instance.components || instance.parent.type.components
|
|
45823
45690
|
) || inferFromRegistry(instance.appContext.components);
|
|
45824
45691
|
}
|
|
45825
45692
|
return name ? classify(name) : isRoot ? `App` : `Anonymous`;
|
|
@@ -45856,7 +45723,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45856
45723
|
setBlockTracking(1);
|
|
45857
45724
|
}
|
|
45858
45725
|
}
|
|
45859
|
-
const version$1 = "3.5.
|
|
45726
|
+
const version$1 = "3.5.24";
|
|
45860
45727
|
let policy = void 0;
|
|
45861
45728
|
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
45862
45729
|
if (tt) {
|
|
@@ -47529,17 +47396,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47529
47396
|
elt = elt.shadowRoot.activeElement;
|
|
47530
47397
|
return elt;
|
|
47531
47398
|
}
|
|
47532
|
-
function caretFromPoint(doc2,
|
|
47399
|
+
function caretFromPoint(doc2, x, y2) {
|
|
47533
47400
|
if (doc2.caretPositionFromPoint) {
|
|
47534
47401
|
try {
|
|
47535
|
-
let pos = doc2.caretPositionFromPoint(
|
|
47402
|
+
let pos = doc2.caretPositionFromPoint(x, y2);
|
|
47536
47403
|
if (pos)
|
|
47537
47404
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
47538
47405
|
} catch (_2) {
|
|
47539
47406
|
}
|
|
47540
47407
|
}
|
|
47541
47408
|
if (doc2.caretRangeFromPoint) {
|
|
47542
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
47409
|
+
let range2 = doc2.caretRangeFromPoint(x, y2);
|
|
47543
47410
|
if (range2)
|
|
47544
47411
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
47545
47412
|
}
|
|
@@ -47638,8 +47505,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47638
47505
|
function storeScrollPos(view) {
|
|
47639
47506
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
47640
47507
|
let refDOM, refTop;
|
|
47641
|
-
for (let
|
|
47642
|
-
let dom = view.root.elementFromPoint(
|
|
47508
|
+
for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
47509
|
+
let dom = view.root.elementFromPoint(x, y2);
|
|
47643
47510
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
47644
47511
|
continue;
|
|
47645
47512
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -47741,20 +47608,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47741
47608
|
}
|
|
47742
47609
|
function findOffsetInText(node2, coords) {
|
|
47743
47610
|
let len2 = node2.nodeValue.length;
|
|
47744
|
-
let range2 = document.createRange()
|
|
47611
|
+
let range2 = document.createRange();
|
|
47745
47612
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
47746
47613
|
range2.setEnd(node2, i2 + 1);
|
|
47747
47614
|
range2.setStart(node2, i2);
|
|
47748
47615
|
let rect = singleRect(range2, 1);
|
|
47749
47616
|
if (rect.top == rect.bottom)
|
|
47750
47617
|
continue;
|
|
47751
|
-
if (inRect(coords, rect))
|
|
47752
|
-
|
|
47753
|
-
break;
|
|
47754
|
-
}
|
|
47618
|
+
if (inRect(coords, rect))
|
|
47619
|
+
return { node: node2, offset: i2 + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0) };
|
|
47755
47620
|
}
|
|
47756
|
-
|
|
47757
|
-
return result || { node: node2, offset: 0 };
|
|
47621
|
+
return { node: node2, offset: 0 };
|
|
47758
47622
|
}
|
|
47759
47623
|
function inRect(coords, rect) {
|
|
47760
47624
|
return coords.left >= rect.left - 1 && coords.left <= rect.right + 1 && coords.top >= rect.top - 1 && coords.top <= rect.bottom + 1;
|
|
@@ -47938,8 +47802,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47938
47802
|
function flattenV(rect, left2) {
|
|
47939
47803
|
if (rect.width == 0)
|
|
47940
47804
|
return rect;
|
|
47941
|
-
let
|
|
47942
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
47805
|
+
let x = left2 ? rect.left : rect.right;
|
|
47806
|
+
return { top: rect.top, bottom: rect.bottom, left: x, right: x };
|
|
47943
47807
|
}
|
|
47944
47808
|
function flattenH(rect, top2) {
|
|
47945
47809
|
if (rect.height == 0)
|
|
@@ -50501,7 +50365,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
50501
50365
|
if (!view.composing) {
|
|
50502
50366
|
view.domObserver.flush();
|
|
50503
50367
|
let { state: state2 } = view, $pos = state2.selection.$to;
|
|
50504
|
-
if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false)
|
|
50368
|
+
if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false))) {
|
|
50505
50369
|
view.markCursor = view.state.storedMarks || $pos.marks();
|
|
50506
50370
|
endComposition(view, true);
|
|
50507
50371
|
view.markCursor = null;
|
|
@@ -50529,13 +50393,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
50529
50393
|
}
|
|
50530
50394
|
scheduleComposeEnd(view, timeoutComposition);
|
|
50531
50395
|
};
|
|
50532
|
-
function selectionBeforeUneditable(view) {
|
|
50533
|
-
let { focusNode, focusOffset } = view.domSelectionRange();
|
|
50534
|
-
if (!focusNode || focusNode.nodeType != 1 || focusOffset >= focusNode.childNodes.length)
|
|
50535
|
-
return false;
|
|
50536
|
-
let next2 = focusNode.childNodes[focusOffset];
|
|
50537
|
-
return next2.nodeType == 1 && next2.contentEditable == "false";
|
|
50538
|
-
}
|
|
50539
50396
|
editHandlers.compositionend = (view, event) => {
|
|
50540
50397
|
if (view.composing) {
|
|
50541
50398
|
view.input.composing = false;
|
|
@@ -50739,14 +50596,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
50739
50596
|
}, 50);
|
|
50740
50597
|
};
|
|
50741
50598
|
editHandlers.dragover = editHandlers.dragenter = (_2, e) => e.preventDefault();
|
|
50742
|
-
editHandlers.drop = (view,
|
|
50743
|
-
|
|
50744
|
-
|
|
50745
|
-
|
|
50746
|
-
view.dragging = null;
|
|
50747
|
-
}
|
|
50748
|
-
};
|
|
50749
|
-
function handleDrop(view, event, dragging) {
|
|
50599
|
+
editHandlers.drop = (view, _event) => {
|
|
50600
|
+
let event = _event;
|
|
50601
|
+
let dragging = view.dragging;
|
|
50602
|
+
view.dragging = null;
|
|
50750
50603
|
if (!event.dataTransfer)
|
|
50751
50604
|
return;
|
|
50752
50605
|
let eventPos = view.posAtCoords(eventCoords(event));
|
|
@@ -50799,7 +50652,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
50799
50652
|
}
|
|
50800
50653
|
view.focus();
|
|
50801
50654
|
view.dispatch(tr.setMeta("uiEvent", "drop"));
|
|
50802
|
-
}
|
|
50655
|
+
};
|
|
50803
50656
|
handlers$1.focus = (view) => {
|
|
50804
50657
|
view.input.lastFocus = Date.now();
|
|
50805
50658
|
if (!view.focused) {
|
|
@@ -51649,13 +51502,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
51649
51502
|
br2.remove();
|
|
51650
51503
|
}
|
|
51651
51504
|
}
|
|
51652
|
-
} else if ((chrome || safari) && added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
51653
|
-
for (let node2 of added)
|
|
51654
|
-
if (node2.nodeName == "BR" && node2.parentNode) {
|
|
51655
|
-
let after = node2.nextSibling;
|
|
51656
|
-
if (after && after.nodeType == 1 && after.contentEditable == "false")
|
|
51657
|
-
node2.parentNode.removeChild(node2);
|
|
51658
|
-
}
|
|
51659
51505
|
}
|
|
51660
51506
|
let readSel = null;
|
|
51661
51507
|
if (from2 < 0 && newSel && view.input.lastFocus > Date.now() - 200 && Math.max(view.input.lastTouch, view.input.lastClick.time) < Date.now() - 300 && selectionCollapsed(sel) && (readSel = selectionFromDOM(view)) && readSel.eq(Selection.near(view.state.doc.resolve(0), 1))) {
|
|
@@ -52964,10 +52810,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
52964
52810
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
52965
52811
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
52966
52812
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
52967
|
-
const sum0to256 = (
|
|
52968
|
-
const sum1to256 = (
|
|
52969
|
-
const sigma0to256 = (
|
|
52970
|
-
const sigma1to256 = (
|
|
52813
|
+
const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
|
|
52814
|
+
const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
|
|
52815
|
+
const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
|
|
52816
|
+
const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
|
|
52971
52817
|
const K = new Uint32Array([
|
|
52972
52818
|
1116352408,
|
|
52973
52819
|
1899447441,
|
|
@@ -58520,39 +58366,52 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58520
58366
|
return `${color2}${alpha}`;
|
|
58521
58367
|
};
|
|
58522
58368
|
const updateYdocDocxData = async (editor, ydoc) => {
|
|
58523
|
-
|
|
58524
|
-
|
|
58525
|
-
|
|
58526
|
-
|
|
58527
|
-
|
|
58528
|
-
|
|
58529
|
-
|
|
58530
|
-
|
|
58531
|
-
|
|
58532
|
-
|
|
58533
|
-
|
|
58534
|
-
|
|
58535
|
-
|
|
58536
|
-
|
|
58537
|
-
docx
|
|
58538
|
-
|
|
58539
|
-
|
|
58540
|
-
|
|
58541
|
-
|
|
58542
|
-
|
|
58543
|
-
|
|
58544
|
-
|
|
58545
|
-
|
|
58546
|
-
|
|
58547
|
-
|
|
58369
|
+
try {
|
|
58370
|
+
ydoc = ydoc || editor?.options?.ydoc;
|
|
58371
|
+
if (!ydoc) return;
|
|
58372
|
+
if (!editor || editor.isDestroyed) return;
|
|
58373
|
+
const metaMap = ydoc.getMap("meta");
|
|
58374
|
+
const docxValue = metaMap.get("docx");
|
|
58375
|
+
let docx = [];
|
|
58376
|
+
if (Array.isArray(docxValue)) {
|
|
58377
|
+
docx = [...docxValue];
|
|
58378
|
+
} else if (docxValue && typeof docxValue.toArray === "function") {
|
|
58379
|
+
docx = docxValue.toArray();
|
|
58380
|
+
} else if (docxValue && typeof docxValue[Symbol.iterator] === "function") {
|
|
58381
|
+
docx = Array.from(docxValue);
|
|
58382
|
+
}
|
|
58383
|
+
if (!docx.length && Array.isArray(editor.options.content)) {
|
|
58384
|
+
docx = [...editor.options.content];
|
|
58385
|
+
}
|
|
58386
|
+
const newXml = await editor.exportDocx({ getUpdatedDocs: true });
|
|
58387
|
+
if (!newXml || typeof newXml !== "object") return;
|
|
58388
|
+
let hasChanges = false;
|
|
58389
|
+
Object.keys(newXml).forEach((key2) => {
|
|
58390
|
+
const fileIndex = docx.findIndex((item) => item.name === key2);
|
|
58391
|
+
const existingContent = fileIndex > -1 ? docx[fileIndex].content : null;
|
|
58392
|
+
if (existingContent === newXml[key2]) {
|
|
58393
|
+
return;
|
|
58394
|
+
}
|
|
58395
|
+
hasChanges = true;
|
|
58396
|
+
if (fileIndex > -1) {
|
|
58397
|
+
docx.splice(fileIndex, 1);
|
|
58398
|
+
}
|
|
58399
|
+
docx.push({
|
|
58400
|
+
name: key2,
|
|
58401
|
+
content: newXml[key2]
|
|
58402
|
+
});
|
|
58548
58403
|
});
|
|
58549
|
-
|
|
58550
|
-
|
|
58551
|
-
|
|
58552
|
-
|
|
58553
|
-
|
|
58554
|
-
|
|
58555
|
-
|
|
58404
|
+
if (hasChanges || !docxValue) {
|
|
58405
|
+
ydoc.transact(
|
|
58406
|
+
() => {
|
|
58407
|
+
metaMap.set("docx", docx);
|
|
58408
|
+
},
|
|
58409
|
+
{ event: "docx-update", user: editor.options.user }
|
|
58410
|
+
);
|
|
58411
|
+
}
|
|
58412
|
+
} catch (error) {
|
|
58413
|
+
console.warn("[collaboration] Failed to update Ydoc docx data", error);
|
|
58414
|
+
}
|
|
58556
58415
|
};
|
|
58557
58416
|
const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
|
|
58558
58417
|
const applyStyleIsolationClass = (target) => {
|
|
@@ -61989,7 +61848,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61989
61848
|
{ default: remarkStringify2 },
|
|
61990
61849
|
{ default: remarkGfm2 }
|
|
61991
61850
|
] = await Promise.all([
|
|
61992
|
-
Promise.resolve().then(() =>
|
|
61851
|
+
Promise.resolve().then(() => indexBENzx4z6),
|
|
61993
61852
|
Promise.resolve().then(() => indexDRCvimau),
|
|
61994
61853
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
61995
61854
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -62207,7 +62066,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62207
62066
|
* @returns {Object | void} Migration results
|
|
62208
62067
|
*/
|
|
62209
62068
|
processCollaborationMigrations() {
|
|
62210
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.34.
|
|
62069
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.34.7");
|
|
62211
62070
|
if (!this.options.ydoc) return;
|
|
62212
62071
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
62213
62072
|
let docVersion = metaMap.get("version");
|
|
@@ -64086,16 +63945,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
64086
63945
|
const { state: state2, dom } = view;
|
|
64087
63946
|
const { selection } = state2;
|
|
64088
63947
|
const containerRect = dom.getBoundingClientRect();
|
|
64089
|
-
let
|
|
63948
|
+
let x, y2;
|
|
64090
63949
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
64091
|
-
|
|
63950
|
+
x = eventLocation.clientX - containerRect.left;
|
|
64092
63951
|
y2 = eventLocation.clientY - containerRect.top;
|
|
64093
63952
|
} else {
|
|
64094
63953
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
64095
|
-
|
|
63954
|
+
x = cursorCoords.left - containerRect.left;
|
|
64096
63955
|
y2 = cursorCoords.top - containerRect.top;
|
|
64097
63956
|
}
|
|
64098
|
-
return { left:
|
|
63957
|
+
return { left: x, top: y2 };
|
|
64099
63958
|
}
|
|
64100
63959
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
64101
63960
|
const SlashMenu = Extension.create({
|
|
@@ -64374,17 +64233,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
64374
64233
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
64375
64234
|
return;
|
|
64376
64235
|
}
|
|
64377
|
-
let
|
|
64236
|
+
let x = 0;
|
|
64378
64237
|
let y2 = 0;
|
|
64379
64238
|
if (this.dom !== dragHandle) {
|
|
64380
64239
|
const domBox = this.dom.getBoundingClientRect();
|
|
64381
64240
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
64382
64241
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
64383
64242
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
64384
|
-
|
|
64243
|
+
x = handleBox.x - domBox.x + offsetX;
|
|
64385
64244
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
64386
64245
|
}
|
|
64387
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
64246
|
+
event.dataTransfer?.setDragImage(this.dom, x, y2);
|
|
64388
64247
|
const pos = this.getPos();
|
|
64389
64248
|
if (typeof pos !== "number") {
|
|
64390
64249
|
return;
|
|
@@ -72642,17 +72501,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72642
72501
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
72643
72502
|
if (reducedHexMatch) {
|
|
72644
72503
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
72645
|
-
return [...arr.slice(0, 3).map((
|
|
72504
|
+
return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
72646
72505
|
}
|
|
72647
72506
|
const hexMatch = hexRegex$2.exec(normalizedColor);
|
|
72648
72507
|
if (hexMatch) {
|
|
72649
72508
|
const arr = Array.from(hexMatch).slice(1);
|
|
72650
|
-
return [...arr.slice(0, 3).map((
|
|
72509
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
72651
72510
|
}
|
|
72652
72511
|
const rgbaMatch = rgbaRegex$2.exec(normalizedColor);
|
|
72653
72512
|
if (rgbaMatch) {
|
|
72654
72513
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
72655
|
-
return [...arr.slice(0, 3).map((
|
|
72514
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
|
|
72656
72515
|
}
|
|
72657
72516
|
const hslaMatch = hslaRegex$2.exec(normalizedColor);
|
|
72658
72517
|
if (hslaMatch) {
|
|
@@ -72671,7 +72530,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72671
72530
|
}
|
|
72672
72531
|
return (hash2 >>> 0) % 2341;
|
|
72673
72532
|
}
|
|
72674
|
-
const colorToInt = (
|
|
72533
|
+
const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
|
|
72675
72534
|
const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next2) => {
|
|
72676
72535
|
const key2 = colorToInt(next2.substring(0, 3));
|
|
72677
72536
|
const hex2 = colorToInt(next2.substring(3)).toString(16);
|
|
@@ -72735,8 +72594,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72735
72594
|
};
|
|
72736
72595
|
function toHex(color2) {
|
|
72737
72596
|
const [r2, g, b2, a2] = parseToRgba(color2);
|
|
72738
|
-
let hex2 = (
|
|
72739
|
-
const h2 = guard(0, 255,
|
|
72597
|
+
let hex2 = (x) => {
|
|
72598
|
+
const h2 = guard(0, 255, x).toString(16);
|
|
72740
72599
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
72741
72600
|
};
|
|
72742
72601
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a2 < 1 ? hex2(Math.round(a2 * 255)) : ""}`;
|
|
@@ -74840,10 +74699,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74840
74699
|
let minX = 0;
|
|
74841
74700
|
let minY = 0;
|
|
74842
74701
|
let maxY = 0;
|
|
74843
|
-
attrs.polygon.forEach(([
|
|
74844
|
-
if (floatRight &&
|
|
74845
|
-
if (
|
|
74846
|
-
if (
|
|
74702
|
+
attrs.polygon.forEach(([x, y2]) => {
|
|
74703
|
+
if (floatRight && x < horizontalOffset) horizontalOffset = x;
|
|
74704
|
+
if (x > maxX) maxX = x;
|
|
74705
|
+
if (x < minX) minX = x;
|
|
74847
74706
|
if (y2 > maxY) maxY = y2;
|
|
74848
74707
|
if (y2 < minY) minY = y2;
|
|
74849
74708
|
});
|
|
@@ -74852,7 +74711,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74852
74711
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
74853
74712
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
74854
74713
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
74855
|
-
const points = attrs.polygon.map(([
|
|
74714
|
+
const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
74856
74715
|
style2 += `shape-outside: polygon(${points});`;
|
|
74857
74716
|
}
|
|
74858
74717
|
break;
|
|
@@ -78506,13 +78365,13 @@ ${l}
|
|
|
78506
78365
|
createShapeElement(shape) {
|
|
78507
78366
|
const attrs = shape.attrs;
|
|
78508
78367
|
if (!attrs) return null;
|
|
78509
|
-
const
|
|
78368
|
+
const x = attrs.x || 0;
|
|
78510
78369
|
const y2 = attrs.y || 0;
|
|
78511
78370
|
const width = attrs.width || 100;
|
|
78512
78371
|
const height = attrs.height || 100;
|
|
78513
78372
|
const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
78514
78373
|
const transforms = [];
|
|
78515
|
-
transforms.push(`translate(${
|
|
78374
|
+
transforms.push(`translate(${x}, ${y2})`);
|
|
78516
78375
|
if (attrs.rotation !== 0) {
|
|
78517
78376
|
transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
|
|
78518
78377
|
}
|
|
@@ -80239,7 +80098,7 @@ ${l}
|
|
|
80239
80098
|
}
|
|
80240
80099
|
var _ref = isElement$2$1(element2) ? getWindow$1(element2) : window, visualViewport = _ref.visualViewport;
|
|
80241
80100
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
80242
|
-
var
|
|
80101
|
+
var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
80243
80102
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
80244
80103
|
var width = clientRect2.width / scaleX;
|
|
80245
80104
|
var height = clientRect2.height / scaleY;
|
|
@@ -80247,10 +80106,10 @@ ${l}
|
|
|
80247
80106
|
width,
|
|
80248
80107
|
height,
|
|
80249
80108
|
top: y2,
|
|
80250
|
-
right:
|
|
80109
|
+
right: x + width,
|
|
80251
80110
|
bottom: y2 + height,
|
|
80252
|
-
left:
|
|
80253
|
-
x
|
|
80111
|
+
left: x,
|
|
80112
|
+
x,
|
|
80254
80113
|
y: y2
|
|
80255
80114
|
};
|
|
80256
80115
|
}
|
|
@@ -80451,25 +80310,25 @@ ${l}
|
|
|
80451
80310
|
left: "auto"
|
|
80452
80311
|
};
|
|
80453
80312
|
function roundOffsetsByDPR(_ref, win) {
|
|
80454
|
-
var
|
|
80313
|
+
var x = _ref.x, y2 = _ref.y;
|
|
80455
80314
|
var dpr = win.devicePixelRatio || 1;
|
|
80456
80315
|
return {
|
|
80457
|
-
x: round$1(
|
|
80316
|
+
x: round$1(x * dpr) / dpr || 0,
|
|
80458
80317
|
y: round$1(y2 * dpr) / dpr || 0
|
|
80459
80318
|
};
|
|
80460
80319
|
}
|
|
80461
80320
|
function mapToStyles(_ref2) {
|
|
80462
80321
|
var _Object$assign2;
|
|
80463
80322
|
var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position2 = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
|
80464
|
-
var _offsets$x = offsets.x,
|
|
80323
|
+
var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
80465
80324
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
80466
|
-
x
|
|
80325
|
+
x,
|
|
80467
80326
|
y: y2
|
|
80468
80327
|
}) : {
|
|
80469
|
-
x
|
|
80328
|
+
x,
|
|
80470
80329
|
y: y2
|
|
80471
80330
|
};
|
|
80472
|
-
|
|
80331
|
+
x = _ref3.x;
|
|
80473
80332
|
y2 = _ref3.y;
|
|
80474
80333
|
var hasX = offsets.hasOwnProperty("x");
|
|
80475
80334
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -80503,27 +80362,27 @@ ${l}
|
|
|
80503
80362
|
// $FlowFixMe[prop-missing]
|
|
80504
80363
|
offsetParent[widthProp]
|
|
80505
80364
|
);
|
|
80506
|
-
|
|
80507
|
-
|
|
80365
|
+
x -= offsetX - popperRect.width;
|
|
80366
|
+
x *= gpuAcceleration ? 1 : -1;
|
|
80508
80367
|
}
|
|
80509
80368
|
}
|
|
80510
80369
|
var commonStyles = Object.assign({
|
|
80511
80370
|
position: position2
|
|
80512
80371
|
}, adaptive && unsetSides);
|
|
80513
80372
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
80514
|
-
x
|
|
80373
|
+
x,
|
|
80515
80374
|
y: y2
|
|
80516
80375
|
}, getWindow$1(popper2)) : {
|
|
80517
|
-
x
|
|
80376
|
+
x,
|
|
80518
80377
|
y: y2
|
|
80519
80378
|
};
|
|
80520
|
-
|
|
80379
|
+
x = _ref4.x;
|
|
80521
80380
|
y2 = _ref4.y;
|
|
80522
80381
|
if (gpuAcceleration) {
|
|
80523
80382
|
var _Object$assign;
|
|
80524
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
80383
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y2 + "px)" : "translate3d(" + x + "px, " + y2 + "px, 0)", _Object$assign));
|
|
80525
80384
|
}
|
|
80526
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
80385
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
80527
80386
|
}
|
|
80528
80387
|
function computeStyles(_ref5) {
|
|
80529
80388
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -80637,21 +80496,21 @@ ${l}
|
|
|
80637
80496
|
var visualViewport = win.visualViewport;
|
|
80638
80497
|
var width = html2.clientWidth;
|
|
80639
80498
|
var height = html2.clientHeight;
|
|
80640
|
-
var
|
|
80499
|
+
var x = 0;
|
|
80641
80500
|
var y2 = 0;
|
|
80642
80501
|
if (visualViewport) {
|
|
80643
80502
|
width = visualViewport.width;
|
|
80644
80503
|
height = visualViewport.height;
|
|
80645
80504
|
var layoutViewport = isLayoutViewport();
|
|
80646
80505
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
80647
|
-
|
|
80506
|
+
x = visualViewport.offsetLeft;
|
|
80648
80507
|
y2 = visualViewport.offsetTop;
|
|
80649
80508
|
}
|
|
80650
80509
|
}
|
|
80651
80510
|
return {
|
|
80652
80511
|
width,
|
|
80653
80512
|
height,
|
|
80654
|
-
x:
|
|
80513
|
+
x: x + getWindowScrollBarX$1(element2),
|
|
80655
80514
|
y: y2
|
|
80656
80515
|
};
|
|
80657
80516
|
}
|
|
@@ -80662,15 +80521,15 @@ ${l}
|
|
|
80662
80521
|
var body = (_element$ownerDocumen = element2.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
80663
80522
|
var width = max$1(html2.scrollWidth, html2.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
80664
80523
|
var height = max$1(html2.scrollHeight, html2.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
80665
|
-
var
|
|
80524
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element2);
|
|
80666
80525
|
var y2 = -winScroll.scrollTop;
|
|
80667
80526
|
if (getComputedStyle$2(body || html2).direction === "rtl") {
|
|
80668
|
-
|
|
80527
|
+
x += max$1(html2.clientWidth, body ? body.clientWidth : 0) - width;
|
|
80669
80528
|
}
|
|
80670
80529
|
return {
|
|
80671
80530
|
width,
|
|
80672
80531
|
height,
|
|
80673
|
-
x
|
|
80532
|
+
x,
|
|
80674
80533
|
y: y2
|
|
80675
80534
|
};
|
|
80676
80535
|
}
|
|
@@ -81047,9 +80906,9 @@ ${l}
|
|
|
81047
80906
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
81048
80907
|
return acc;
|
|
81049
80908
|
}, {});
|
|
81050
|
-
var _data$state$placement = data[state2.placement],
|
|
80909
|
+
var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
81051
80910
|
if (state2.modifiersData.popperOffsets != null) {
|
|
81052
|
-
state2.modifiersData.popperOffsets.x +=
|
|
80911
|
+
state2.modifiersData.popperOffsets.x += x;
|
|
81053
80912
|
state2.modifiersData.popperOffsets.y += y2;
|
|
81054
80913
|
}
|
|
81055
80914
|
state2.modifiersData[name] = data;
|
|
@@ -83000,7 +82859,7 @@ ${l}
|
|
|
83000
82859
|
}
|
|
83001
82860
|
function rectToClientRect(rect) {
|
|
83002
82861
|
const {
|
|
83003
|
-
x
|
|
82862
|
+
x,
|
|
83004
82863
|
y: y2,
|
|
83005
82864
|
width,
|
|
83006
82865
|
height
|
|
@@ -83009,10 +82868,10 @@ ${l}
|
|
|
83009
82868
|
width,
|
|
83010
82869
|
height,
|
|
83011
82870
|
top: y2,
|
|
83012
|
-
left:
|
|
83013
|
-
right:
|
|
82871
|
+
left: x,
|
|
82872
|
+
right: x + width,
|
|
83014
82873
|
bottom: y2 + height,
|
|
83015
|
-
x
|
|
82874
|
+
x,
|
|
83016
82875
|
y: y2
|
|
83017
82876
|
};
|
|
83018
82877
|
}
|
|
@@ -83086,7 +82945,7 @@ ${l}
|
|
|
83086
82945
|
strategy
|
|
83087
82946
|
});
|
|
83088
82947
|
let {
|
|
83089
|
-
x
|
|
82948
|
+
x,
|
|
83090
82949
|
y: y2
|
|
83091
82950
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
83092
82951
|
let statefulPlacement = placement;
|
|
@@ -83103,7 +82962,7 @@ ${l}
|
|
|
83103
82962
|
data,
|
|
83104
82963
|
reset
|
|
83105
82964
|
} = await fn2({
|
|
83106
|
-
x
|
|
82965
|
+
x,
|
|
83107
82966
|
y: y2,
|
|
83108
82967
|
initialPlacement: placement,
|
|
83109
82968
|
placement: statefulPlacement,
|
|
@@ -83116,7 +82975,7 @@ ${l}
|
|
|
83116
82975
|
floating
|
|
83117
82976
|
}
|
|
83118
82977
|
});
|
|
83119
|
-
|
|
82978
|
+
x = nextX != null ? nextX : x;
|
|
83120
82979
|
y2 = nextY != null ? nextY : y2;
|
|
83121
82980
|
middlewareData = {
|
|
83122
82981
|
...middlewareData,
|
|
@@ -83139,7 +82998,7 @@ ${l}
|
|
|
83139
82998
|
}) : reset.rects;
|
|
83140
82999
|
}
|
|
83141
83000
|
({
|
|
83142
|
-
x
|
|
83001
|
+
x,
|
|
83143
83002
|
y: y2
|
|
83144
83003
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
83145
83004
|
}
|
|
@@ -83147,7 +83006,7 @@ ${l}
|
|
|
83147
83006
|
}
|
|
83148
83007
|
}
|
|
83149
83008
|
return {
|
|
83150
|
-
x
|
|
83009
|
+
x,
|
|
83151
83010
|
y: y2,
|
|
83152
83011
|
placement: statefulPlacement,
|
|
83153
83012
|
strategy,
|
|
@@ -83160,7 +83019,7 @@ ${l}
|
|
|
83160
83019
|
options = {};
|
|
83161
83020
|
}
|
|
83162
83021
|
const {
|
|
83163
|
-
x
|
|
83022
|
+
x,
|
|
83164
83023
|
y: y2,
|
|
83165
83024
|
platform: platform2,
|
|
83166
83025
|
rects,
|
|
@@ -83184,7 +83043,7 @@ ${l}
|
|
|
83184
83043
|
strategy
|
|
83185
83044
|
}));
|
|
83186
83045
|
const rect = elementContext === "floating" ? {
|
|
83187
|
-
x
|
|
83046
|
+
x,
|
|
83188
83047
|
y: y2,
|
|
83189
83048
|
width: rects.floating.width,
|
|
83190
83049
|
height: rects.floating.height
|
|
@@ -83453,16 +83312,16 @@ ${l}
|
|
|
83453
83312
|
height,
|
|
83454
83313
|
$: $2
|
|
83455
83314
|
} = getCssDimensions(domElement);
|
|
83456
|
-
let
|
|
83315
|
+
let x = ($2 ? round(rect.width) : rect.width) / width;
|
|
83457
83316
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
83458
|
-
if (!
|
|
83459
|
-
|
|
83317
|
+
if (!x || !Number.isFinite(x)) {
|
|
83318
|
+
x = 1;
|
|
83460
83319
|
}
|
|
83461
83320
|
if (!y2 || !Number.isFinite(y2)) {
|
|
83462
83321
|
y2 = 1;
|
|
83463
83322
|
}
|
|
83464
83323
|
return {
|
|
83465
|
-
x
|
|
83324
|
+
x,
|
|
83466
83325
|
y: y2
|
|
83467
83326
|
};
|
|
83468
83327
|
}
|
|
@@ -83506,7 +83365,7 @@ ${l}
|
|
|
83506
83365
|
}
|
|
83507
83366
|
}
|
|
83508
83367
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
83509
|
-
let
|
|
83368
|
+
let x = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
83510
83369
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
83511
83370
|
let width = clientRect2.width / scale.x;
|
|
83512
83371
|
let height = clientRect2.height / scale.y;
|
|
@@ -83521,11 +83380,11 @@ ${l}
|
|
|
83521
83380
|
const css = getComputedStyle$1(currentIFrame);
|
|
83522
83381
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
83523
83382
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
83524
|
-
|
|
83383
|
+
x *= iframeScale.x;
|
|
83525
83384
|
y2 *= iframeScale.y;
|
|
83526
83385
|
width *= iframeScale.x;
|
|
83527
83386
|
height *= iframeScale.y;
|
|
83528
|
-
|
|
83387
|
+
x += left2;
|
|
83529
83388
|
y2 += top2;
|
|
83530
83389
|
currentWin = getWindow(currentIFrame);
|
|
83531
83390
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -83534,7 +83393,7 @@ ${l}
|
|
|
83534
83393
|
return rectToClientRect({
|
|
83535
83394
|
width,
|
|
83536
83395
|
height,
|
|
83537
|
-
x
|
|
83396
|
+
x,
|
|
83538
83397
|
y: y2
|
|
83539
83398
|
});
|
|
83540
83399
|
}
|
|
@@ -83547,10 +83406,10 @@ ${l}
|
|
|
83547
83406
|
}
|
|
83548
83407
|
function getHTMLOffset(documentElement, scroll) {
|
|
83549
83408
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
83550
|
-
const
|
|
83409
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
83551
83410
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
83552
83411
|
return {
|
|
83553
|
-
x
|
|
83412
|
+
x,
|
|
83554
83413
|
y: y2
|
|
83555
83414
|
};
|
|
83556
83415
|
}
|
|
@@ -83602,15 +83461,15 @@ ${l}
|
|
|
83602
83461
|
const body = element2.ownerDocument.body;
|
|
83603
83462
|
const width = max$3(html2.scrollWidth, html2.clientWidth, body.scrollWidth, body.clientWidth);
|
|
83604
83463
|
const height = max$3(html2.scrollHeight, html2.clientHeight, body.scrollHeight, body.clientHeight);
|
|
83605
|
-
let
|
|
83464
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element2);
|
|
83606
83465
|
const y2 = -scroll.scrollTop;
|
|
83607
83466
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
83608
|
-
|
|
83467
|
+
x += max$3(html2.clientWidth, body.clientWidth) - width;
|
|
83609
83468
|
}
|
|
83610
83469
|
return {
|
|
83611
83470
|
width,
|
|
83612
83471
|
height,
|
|
83613
|
-
x
|
|
83472
|
+
x,
|
|
83614
83473
|
y: y2
|
|
83615
83474
|
};
|
|
83616
83475
|
}
|
|
@@ -83621,14 +83480,14 @@ ${l}
|
|
|
83621
83480
|
const visualViewport = win.visualViewport;
|
|
83622
83481
|
let width = html2.clientWidth;
|
|
83623
83482
|
let height = html2.clientHeight;
|
|
83624
|
-
let
|
|
83483
|
+
let x = 0;
|
|
83625
83484
|
let y2 = 0;
|
|
83626
83485
|
if (visualViewport) {
|
|
83627
83486
|
width = visualViewport.width;
|
|
83628
83487
|
height = visualViewport.height;
|
|
83629
83488
|
const visualViewportBased = isWebKit();
|
|
83630
83489
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
83631
|
-
|
|
83490
|
+
x = visualViewport.offsetLeft;
|
|
83632
83491
|
y2 = visualViewport.offsetTop;
|
|
83633
83492
|
}
|
|
83634
83493
|
}
|
|
@@ -83648,7 +83507,7 @@ ${l}
|
|
|
83648
83507
|
return {
|
|
83649
83508
|
width,
|
|
83650
83509
|
height,
|
|
83651
|
-
x
|
|
83510
|
+
x,
|
|
83652
83511
|
y: y2
|
|
83653
83512
|
};
|
|
83654
83513
|
}
|
|
@@ -83660,12 +83519,12 @@ ${l}
|
|
|
83660
83519
|
const scale = isHTMLElement$2(element2) ? getScale(element2) : createCoords(1);
|
|
83661
83520
|
const width = element2.clientWidth * scale.x;
|
|
83662
83521
|
const height = element2.clientHeight * scale.y;
|
|
83663
|
-
const
|
|
83522
|
+
const x = left2 * scale.x;
|
|
83664
83523
|
const y2 = top2 * scale.y;
|
|
83665
83524
|
return {
|
|
83666
83525
|
width,
|
|
83667
83526
|
height,
|
|
83668
|
-
x
|
|
83527
|
+
x,
|
|
83669
83528
|
y: y2
|
|
83670
83529
|
};
|
|
83671
83530
|
}
|
|
@@ -83785,10 +83644,10 @@ ${l}
|
|
|
83785
83644
|
setLeftRTLScrollbarOffset();
|
|
83786
83645
|
}
|
|
83787
83646
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
83788
|
-
const
|
|
83647
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
83789
83648
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
83790
83649
|
return {
|
|
83791
|
-
x
|
|
83650
|
+
x,
|
|
83792
83651
|
y: y2,
|
|
83793
83652
|
width: rect.width,
|
|
83794
83653
|
height: rect.height
|
|
@@ -84667,22 +84526,22 @@ ${l}
|
|
|
84667
84526
|
const rect = elements.reference.getBoundingClientRect();
|
|
84668
84527
|
const containerRect = editorElement.getBoundingClientRect();
|
|
84669
84528
|
const scaleFactor = getScaleFactor(editorElement);
|
|
84670
|
-
const
|
|
84529
|
+
const x = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
84671
84530
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
84672
84531
|
const width = Math.round(rect.width / scaleFactor);
|
|
84673
84532
|
const height = Math.round(rect.height / scaleFactor);
|
|
84674
84533
|
return {
|
|
84675
|
-
x
|
|
84534
|
+
x,
|
|
84676
84535
|
y: y2,
|
|
84677
84536
|
data: { width, height }
|
|
84678
84537
|
};
|
|
84679
84538
|
}
|
|
84680
84539
|
}
|
|
84681
84540
|
]
|
|
84682
|
-
}).then(({ x
|
|
84541
|
+
}).then(({ x, y: y2, middlewareData }) => {
|
|
84683
84542
|
Object.assign(floatingSeparator.style, {
|
|
84684
84543
|
top: `${y2}px`,
|
|
84685
|
-
left: `${
|
|
84544
|
+
left: `${x}px`,
|
|
84686
84545
|
width: `${middlewareData.copy.width}px`,
|
|
84687
84546
|
height: `${middlewareData.copy.height}px`,
|
|
84688
84547
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -87741,14 +87600,14 @@ ${unwrappedProps}
|
|
|
87741
87600
|
}
|
|
87742
87601
|
return viewMeasurer$1.getBoundingClientRect();
|
|
87743
87602
|
}
|
|
87744
|
-
function getPointRect$1(
|
|
87603
|
+
function getPointRect$1(x, y2) {
|
|
87745
87604
|
const viewRect = ensureViewBoundingRect$1();
|
|
87746
87605
|
return {
|
|
87747
87606
|
top: y2,
|
|
87748
|
-
left:
|
|
87607
|
+
left: x,
|
|
87749
87608
|
height: 0,
|
|
87750
87609
|
width: 0,
|
|
87751
|
-
right: viewRect.width -
|
|
87610
|
+
right: viewRect.width - x,
|
|
87752
87611
|
bottom: viewRect.height - y2
|
|
87753
87612
|
};
|
|
87754
87613
|
}
|
|
@@ -88586,8 +88445,8 @@ ${style2}
|
|
|
88586
88445
|
if (follower === null)
|
|
88587
88446
|
return;
|
|
88588
88447
|
const target = VBinder.targetRef;
|
|
88589
|
-
const { x
|
|
88590
|
-
const targetRect =
|
|
88448
|
+
const { x, y: y2, overlap } = props;
|
|
88449
|
+
const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect$1(x, y2) : getRect$1(target);
|
|
88591
88450
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
88592
88451
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
88593
88452
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -88757,8 +88616,8 @@ ${style2}
|
|
|
88757
88616
|
return ResizeObserverSize2;
|
|
88758
88617
|
})();
|
|
88759
88618
|
var DOMRectReadOnly$1 = (function() {
|
|
88760
|
-
function DOMRectReadOnly2(
|
|
88761
|
-
this.x =
|
|
88619
|
+
function DOMRectReadOnly2(x, y2, width, height) {
|
|
88620
|
+
this.x = x;
|
|
88762
88621
|
this.y = y2;
|
|
88763
88622
|
this.width = width;
|
|
88764
88623
|
this.height = height;
|
|
@@ -88769,8 +88628,8 @@ ${style2}
|
|
|
88769
88628
|
return freeze$1(this);
|
|
88770
88629
|
}
|
|
88771
88630
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
88772
|
-
var _a2 = this,
|
|
88773
|
-
return { x
|
|
88631
|
+
var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
88632
|
+
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
88774
88633
|
};
|
|
88775
88634
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
88776
88635
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -101864,8 +101723,8 @@ ${style2}
|
|
|
101864
101723
|
return array;
|
|
101865
101724
|
};
|
|
101866
101725
|
const BlankDOCX = "data:application/octet-stream;base64,UEsDBBQAAAAIAAAAIQAykW9XXgEAAKUFAAATABwAW0NvbnRlbnRfVHlwZXNdLnhtbFVUCQADMNDOEjDQzhJ1eAsAAQT1AQAABBQAAAC1lMtqwzAQRfeF/oPRNthKuiilxMmij2UbaPoBijRORPVCmrz+vuM4NaWkMeSxMcgz994zQsxwvLEmW0FM2ruSDYo+y8BJr7Sbl+xz+po/sCyhcEoY76BkW0hsPLq9GU63AVJGapdKtkAMj5w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AAAAAABAAAApIG2FQAAd29yZC93ZWJTZXR0aW5ncy54bWxVVAUAAzDQzhJ1eAsAAQT1AQAABBQAAABQSwECHgMUAAAACAAAACEAP6/hZl8PAAANpgAADwAYAAAAAAABAAAApIFaFwAAd29yZC9zdHlsZXMueG1sVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAk2RNWwAAAAAAAAAAAAAAAAsAGAAAAAAAAAAQAO1BAicAAHdvcmQvdGhlbWUvVVQFAAOGHO1odXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAAAAhAGeA/LSbBgAAzSAAABUAGAAAAAAAAQAAAKSBRycAAHdvcmQvdGhlbWUvdGhlbWUxLnhtbFVUBQADMNDOEnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJNkTVsAAAAAAAAAAAAAAAALABgAAAAAAAAAEADtQTEuAAB3b3JkL19yZWxzL1VUBQADhhztaHV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAAAIQCzvosd/gAAALYDAAAcABgAAAAAAAEAAACkgXYuAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsFBgAAAAARABEAqQUAAMovAAAAAA==";
|
|
101867
|
-
function getDefaultExportFromCjs(
|
|
101868
|
-
return
|
|
101726
|
+
function getDefaultExportFromCjs(x) {
|
|
101727
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
101869
101728
|
}
|
|
101870
101729
|
var eventemitter3 = { exports: {} };
|
|
101871
101730
|
var hasRequiredEventemitter3;
|
|
@@ -104004,7 +103863,6 @@ ${reason}`);
|
|
|
104004
103863
|
const creatorImage = params2.creatorImage;
|
|
104005
103864
|
const createdTime = params2.createdTime || Date.now();
|
|
104006
103865
|
const importedAuthor = ref(params2.importedAuthor || null);
|
|
104007
|
-
const docxCommentJSON = params2.docxCommentJSON || null;
|
|
104008
103866
|
const commentText = ref(params2.commentText || "");
|
|
104009
103867
|
const selection = params2.selection ? useSelection(params2.selection) : useSelection({
|
|
104010
103868
|
documentId: fileId,
|
|
@@ -104119,7 +103977,6 @@ ${reason}`);
|
|
|
104119
103977
|
creatorImage,
|
|
104120
103978
|
createdTime,
|
|
104121
103979
|
importedAuthor: importedAuthor.value,
|
|
104122
|
-
docxCommentJSON,
|
|
104123
103980
|
isInternal: isInternal.value,
|
|
104124
103981
|
commentText: commentText.value,
|
|
104125
103982
|
selection: selection ? selection.getValues() : null,
|
|
@@ -104158,7 +104015,6 @@ ${reason}`);
|
|
|
104158
104015
|
resolvedByEmail,
|
|
104159
104016
|
resolvedByName,
|
|
104160
104017
|
importedAuthor,
|
|
104161
|
-
docxCommentJSON,
|
|
104162
104018
|
// Actions
|
|
104163
104019
|
setText,
|
|
104164
104020
|
getValues,
|
|
@@ -104735,8 +104591,6 @@ ${reason}`);
|
|
|
104735
104591
|
const newComment = useComment({
|
|
104736
104592
|
fileId: documentId,
|
|
104737
104593
|
fileType: document2.type,
|
|
104738
|
-
// Preserve original DOCX-schema comment JSON so exporter can reuse it
|
|
104739
|
-
docxCommentJSON: comment2.textJson,
|
|
104740
104594
|
commentId: comment2.commentId,
|
|
104741
104595
|
isInternal: false,
|
|
104742
104596
|
parentCommentId: comment2.parentCommentId,
|
|
@@ -104797,7 +104651,7 @@ ${reason}`);
|
|
|
104797
104651
|
commentsList.value.forEach((comment2) => {
|
|
104798
104652
|
const values = comment2.getValues();
|
|
104799
104653
|
const richText = values.commentText;
|
|
104800
|
-
const schema =
|
|
104654
|
+
const schema = convertHtmlToSchema(richText);
|
|
104801
104655
|
processedComments.push({
|
|
104802
104656
|
...values,
|
|
104803
104657
|
commentJSON: schema
|
|
@@ -106543,14 +106397,14 @@ ${unwrappedProps}
|
|
|
106543
106397
|
}
|
|
106544
106398
|
return viewMeasurer.getBoundingClientRect();
|
|
106545
106399
|
}
|
|
106546
|
-
function getPointRect(
|
|
106400
|
+
function getPointRect(x, y2) {
|
|
106547
106401
|
const viewRect = ensureViewBoundingRect();
|
|
106548
106402
|
return {
|
|
106549
106403
|
top: y2,
|
|
106550
|
-
left:
|
|
106404
|
+
left: x,
|
|
106551
106405
|
height: 0,
|
|
106552
106406
|
width: 0,
|
|
106553
|
-
right: viewRect.width -
|
|
106407
|
+
right: viewRect.width - x,
|
|
106554
106408
|
bottom: viewRect.height - y2
|
|
106555
106409
|
};
|
|
106556
106410
|
}
|
|
@@ -107388,8 +107242,8 @@ ${style2}
|
|
|
107388
107242
|
if (follower === null)
|
|
107389
107243
|
return;
|
|
107390
107244
|
const target = VBinder.targetRef;
|
|
107391
|
-
const { x
|
|
107392
|
-
const targetRect =
|
|
107245
|
+
const { x, y: y2, overlap } = props;
|
|
107246
|
+
const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
|
|
107393
107247
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
107394
107248
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
107395
107249
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -107559,8 +107413,8 @@ ${style2}
|
|
|
107559
107413
|
return ResizeObserverSize2;
|
|
107560
107414
|
})();
|
|
107561
107415
|
var DOMRectReadOnly = (function() {
|
|
107562
|
-
function DOMRectReadOnly2(
|
|
107563
|
-
this.x =
|
|
107416
|
+
function DOMRectReadOnly2(x, y2, width, height) {
|
|
107417
|
+
this.x = x;
|
|
107564
107418
|
this.y = y2;
|
|
107565
107419
|
this.width = width;
|
|
107566
107420
|
this.height = height;
|
|
@@ -107571,8 +107425,8 @@ ${style2}
|
|
|
107571
107425
|
return freeze(this);
|
|
107572
107426
|
}
|
|
107573
107427
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
107574
|
-
var _a2 = this,
|
|
107575
|
-
return { x
|
|
107428
|
+
var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
107429
|
+
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
107576
107430
|
};
|
|
107577
107431
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
107578
107432
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -118276,9 +118130,9 @@ ${style2}
|
|
|
118276
118130
|
const resetSelection = () => {
|
|
118277
118131
|
selectionPosition.value = null;
|
|
118278
118132
|
};
|
|
118279
|
-
const updateSelection2 = ({ startX, startY, x
|
|
118133
|
+
const updateSelection2 = ({ startX, startY, x, y: y2, source }) => {
|
|
118280
118134
|
const hasStartCoords = startX || startY;
|
|
118281
|
-
const hasEndCoords =
|
|
118135
|
+
const hasEndCoords = x || y2;
|
|
118282
118136
|
if (!hasStartCoords && !hasEndCoords) {
|
|
118283
118137
|
return selectionPosition.value = null;
|
|
118284
118138
|
}
|
|
@@ -118303,10 +118157,10 @@ ${style2}
|
|
|
118303
118157
|
selectionPosition.value.bottom = y2;
|
|
118304
118158
|
}
|
|
118305
118159
|
const selectionLeft = selectionPosition.value.startX;
|
|
118306
|
-
if (
|
|
118307
|
-
selectionPosition.value.left =
|
|
118160
|
+
if (x < selectionLeft) {
|
|
118161
|
+
selectionPosition.value.left = x;
|
|
118308
118162
|
} else {
|
|
118309
|
-
selectionPosition.value.right =
|
|
118163
|
+
selectionPosition.value.right = x;
|
|
118310
118164
|
}
|
|
118311
118165
|
};
|
|
118312
118166
|
const handleSelectionStart = (e) => {
|
|
@@ -118315,16 +118169,16 @@ ${style2}
|
|
|
118315
118169
|
nextTick(() => {
|
|
118316
118170
|
isDragging.value = true;
|
|
118317
118171
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
118318
|
-
const
|
|
118319
|
-
updateSelection2({ startX:
|
|
118172
|
+
const x = e.offsetX / (activeZoom.value / 100);
|
|
118173
|
+
updateSelection2({ startX: x, startY: y2 });
|
|
118320
118174
|
selectionLayer.value.addEventListener("mousemove", handleDragMove);
|
|
118321
118175
|
});
|
|
118322
118176
|
};
|
|
118323
118177
|
const handleDragMove = (e) => {
|
|
118324
118178
|
if (!isDragging.value) return;
|
|
118325
118179
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
118326
|
-
const
|
|
118327
|
-
updateSelection2({ x
|
|
118180
|
+
const x = e.offsetX / (activeZoom.value / 100);
|
|
118181
|
+
updateSelection2({ x, y: y2 });
|
|
118328
118182
|
};
|
|
118329
118183
|
const handleDragEnd = (e) => {
|
|
118330
118184
|
if (!isDragging.value) return;
|
|
@@ -118681,7 +118535,7 @@ ${style2}
|
|
|
118681
118535
|
this.config.colors = shuffleArray(this.config.colors);
|
|
118682
118536
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
118683
118537
|
this.colorIndex = 0;
|
|
118684
|
-
this.version = "0.34.
|
|
118538
|
+
this.version = "0.34.7";
|
|
118685
118539
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
118686
118540
|
this.superdocId = config2.superdocId || v4();
|
|
118687
118541
|
this.colors = this.config.colors;
|
|
@@ -121081,7 +120935,7 @@ ${style2}
|
|
|
121081
120935
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
121082
120936
|
);
|
|
121083
120937
|
}
|
|
121084
|
-
const
|
|
120938
|
+
const indexBENzx4z6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
121085
120939
|
__proto__: null,
|
|
121086
120940
|
unified
|
|
121087
120941
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -122673,8 +122527,8 @@ ${style2}
|
|
|
122673
122527
|
properties[name] = attribute.value;
|
|
122674
122528
|
}
|
|
122675
122529
|
}
|
|
122676
|
-
const
|
|
122677
|
-
const result =
|
|
122530
|
+
const x = state2.schema.space === "svg" ? s : h;
|
|
122531
|
+
const result = x(node2.tagName, properties, all$4(state2, node2.childNodes));
|
|
122678
122532
|
patch$1(state2, node2, result);
|
|
122679
122533
|
if (result.tagName === "template") {
|
|
122680
122534
|
const reference2 = (
|