@harbour-enterprises/superdoc 0.28.3 → 0.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-QTV3RJM1.cjs → PdfViewer-CfUwzBbx.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DUpLlOgk.es.js → PdfViewer-FhoWTpo9.es.js} +1 -1
- package/dist/chunks/{index-CuXB3dyN.cjs → index-C3gwy96O.cjs} +3 -3
- package/dist/chunks/{index-B3rVM2bJ-B62R9mgx.es.js → index-CEL3ujoV-BXzhXCnT.es.js} +1 -1
- package/dist/chunks/{index-B3rVM2bJ-BgYPFhrh.cjs → index-CEL3ujoV-C85AsK84.cjs} +1 -1
- package/dist/chunks/{index-DKtyoTAq.es.js → index-CQbyD7vC.es.js} +3 -3
- package/dist/chunks/{super-editor.es-BKCxu5-_.cjs → super-editor.es-BQCukgDh.cjs} +791 -736
- package/dist/chunks/{super-editor.es-BjTZa-cJ.es.js → super-editor.es-rFPLjn7D.es.js} +791 -736
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CMtyH2w0.js → converter-BkMCDOKg.js} +429 -385
- package/dist/super-editor/chunks/{docx-zipper-Pgf9i5kI.js → docx-zipper-CPrVIeS5.js} +1 -1
- package/dist/super-editor/chunks/{editor-C3KgN3zx.js → editor-D2rTPB17.js} +15 -4
- package/dist/super-editor/chunks/{index-B3rVM2bJ.js → index-CEL3ujoV.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-TXkIPPvk.js → toolbar-EGiGMLTV.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/relationship-helpers.d.ts +2 -0
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +555 -500
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +2 -5
package/dist/superdoc.umd.js
CHANGED
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
},
|
|
824
824
|
concat(...args) {
|
|
825
825
|
return reactiveReadArray(this).concat(
|
|
826
|
-
...args.map((
|
|
826
|
+
...args.map((x2) => isArray$3(x2) ? reactiveReadArray(x2) : x2)
|
|
827
827
|
);
|
|
828
828
|
},
|
|
829
829
|
entries() {
|
|
@@ -8158,17 +8158,17 @@
|
|
|
8158
8158
|
);
|
|
8159
8159
|
}
|
|
8160
8160
|
if (a2 === b2) return 0;
|
|
8161
|
-
let
|
|
8161
|
+
let x2 = a2.length;
|
|
8162
8162
|
let y2 = b2.length;
|
|
8163
|
-
for (let i2 = 0, len2 = Math.min(
|
|
8163
|
+
for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
|
|
8164
8164
|
if (a2[i2] !== b2[i2]) {
|
|
8165
|
-
|
|
8165
|
+
x2 = a2[i2];
|
|
8166
8166
|
y2 = b2[i2];
|
|
8167
8167
|
break;
|
|
8168
8168
|
}
|
|
8169
8169
|
}
|
|
8170
|
-
if (
|
|
8171
|
-
if (y2 <
|
|
8170
|
+
if (x2 < y2) return -1;
|
|
8171
|
+
if (y2 < x2) return 1;
|
|
8172
8172
|
return 0;
|
|
8173
8173
|
};
|
|
8174
8174
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -8417,20 +8417,20 @@
|
|
|
8417
8417
|
thisStart >>>= 0;
|
|
8418
8418
|
thisEnd >>>= 0;
|
|
8419
8419
|
if (this === target) return 0;
|
|
8420
|
-
let
|
|
8420
|
+
let x2 = thisEnd - thisStart;
|
|
8421
8421
|
let y2 = end2 - start2;
|
|
8422
|
-
const len2 = Math.min(
|
|
8422
|
+
const len2 = Math.min(x2, y2);
|
|
8423
8423
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
8424
8424
|
const targetCopy = target.slice(start2, end2);
|
|
8425
8425
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
8426
8426
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
8427
|
-
|
|
8427
|
+
x2 = thisCopy[i2];
|
|
8428
8428
|
y2 = targetCopy[i2];
|
|
8429
8429
|
break;
|
|
8430
8430
|
}
|
|
8431
8431
|
}
|
|
8432
|
-
if (
|
|
8433
|
-
if (y2 <
|
|
8432
|
+
if (x2 < y2) return -1;
|
|
8433
|
+
if (y2 < x2) return 1;
|
|
8434
8434
|
return 0;
|
|
8435
8435
|
};
|
|
8436
8436
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -9520,8 +9520,8 @@
|
|
|
9520
9520
|
})(buffer);
|
|
9521
9521
|
const Buffer2 = buffer.Buffer;
|
|
9522
9522
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
9523
|
-
function getDefaultExportFromCjs$2(
|
|
9524
|
-
return
|
|
9523
|
+
function getDefaultExportFromCjs$2(x2) {
|
|
9524
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
9525
9525
|
}
|
|
9526
9526
|
var sax = {};
|
|
9527
9527
|
var events$2 = { exports: {} };
|
|
@@ -9529,13 +9529,13 @@
|
|
|
9529
9529
|
function requireEvents() {
|
|
9530
9530
|
if (hasRequiredEvents) return events$2.exports;
|
|
9531
9531
|
hasRequiredEvents = 1;
|
|
9532
|
-
var
|
|
9533
|
-
var ReflectApply =
|
|
9532
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
9533
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
9534
9534
|
return Function.prototype.apply.call(target, receiver, args);
|
|
9535
9535
|
};
|
|
9536
9536
|
var ReflectOwnKeys;
|
|
9537
|
-
if (
|
|
9538
|
-
ReflectOwnKeys =
|
|
9537
|
+
if (R && typeof R.ownKeys === "function") {
|
|
9538
|
+
ReflectOwnKeys = R.ownKeys;
|
|
9539
9539
|
} else if (Object.getOwnPropertySymbols) {
|
|
9540
9540
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
9541
9541
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -9925,8 +9925,8 @@
|
|
|
9925
9925
|
}
|
|
9926
9926
|
return inherits_browser.exports;
|
|
9927
9927
|
}
|
|
9928
|
-
function getDefaultExportFromCjs$1(
|
|
9929
|
-
return
|
|
9928
|
+
function getDefaultExportFromCjs$1(x2) {
|
|
9929
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
9930
9930
|
}
|
|
9931
9931
|
var browser$1 = { exports: {} };
|
|
9932
9932
|
var process$2 = browser$1.exports = {};
|
|
@@ -10507,17 +10507,17 @@
|
|
|
10507
10507
|
);
|
|
10508
10508
|
}
|
|
10509
10509
|
if (a2 === b2) return 0;
|
|
10510
|
-
let
|
|
10510
|
+
let x2 = a2.length;
|
|
10511
10511
|
let y2 = b2.length;
|
|
10512
|
-
for (let i22 = 0, len22 = Math.min(
|
|
10512
|
+
for (let i22 = 0, len22 = Math.min(x2, y2); i22 < len22; ++i22) {
|
|
10513
10513
|
if (a2[i22] !== b2[i22]) {
|
|
10514
|
-
|
|
10514
|
+
x2 = a2[i22];
|
|
10515
10515
|
y2 = b2[i22];
|
|
10516
10516
|
break;
|
|
10517
10517
|
}
|
|
10518
10518
|
}
|
|
10519
|
-
if (
|
|
10520
|
-
if (y2 <
|
|
10519
|
+
if (x2 < y2) return -1;
|
|
10520
|
+
if (y2 < x2) return 1;
|
|
10521
10521
|
return 0;
|
|
10522
10522
|
};
|
|
10523
10523
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -10766,20 +10766,20 @@
|
|
|
10766
10766
|
thisStart >>>= 0;
|
|
10767
10767
|
thisEnd >>>= 0;
|
|
10768
10768
|
if (this === target) return 0;
|
|
10769
|
-
let
|
|
10769
|
+
let x2 = thisEnd - thisStart;
|
|
10770
10770
|
let y2 = end2 - start2;
|
|
10771
|
-
const len22 = Math.min(
|
|
10771
|
+
const len22 = Math.min(x2, y2);
|
|
10772
10772
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
10773
10773
|
const targetCopy = target.slice(start2, end2);
|
|
10774
10774
|
for (let i22 = 0; i22 < len22; ++i22) {
|
|
10775
10775
|
if (thisCopy[i22] !== targetCopy[i22]) {
|
|
10776
|
-
|
|
10776
|
+
x2 = thisCopy[i22];
|
|
10777
10777
|
y2 = targetCopy[i22];
|
|
10778
10778
|
break;
|
|
10779
10779
|
}
|
|
10780
10780
|
}
|
|
10781
|
-
if (
|
|
10782
|
-
if (y2 <
|
|
10781
|
+
if (x2 < y2) return -1;
|
|
10782
|
+
if (y2 < x2) return 1;
|
|
10783
10783
|
return 0;
|
|
10784
10784
|
};
|
|
10785
10785
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -12351,15 +12351,15 @@
|
|
|
12351
12351
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
12352
12352
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
12353
12353
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
12354
|
-
getProto = reflectGetProto ? function getProto2(
|
|
12355
|
-
return reflectGetProto(
|
|
12356
|
-
} : originalGetProto ? function getProto2(
|
|
12357
|
-
if (!
|
|
12354
|
+
getProto = reflectGetProto ? function getProto2(O) {
|
|
12355
|
+
return reflectGetProto(O);
|
|
12356
|
+
} : originalGetProto ? function getProto2(O) {
|
|
12357
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
12358
12358
|
throw new TypeError("getProto: not an object");
|
|
12359
12359
|
}
|
|
12360
|
-
return originalGetProto(
|
|
12361
|
-
} : getDunderProto ? function getProto2(
|
|
12362
|
-
return getDunderProto(
|
|
12360
|
+
return originalGetProto(O);
|
|
12361
|
+
} : getDunderProto ? function getProto2(O) {
|
|
12362
|
+
return getDunderProto(O);
|
|
12363
12363
|
} : null;
|
|
12364
12364
|
return getProto;
|
|
12365
12365
|
}
|
|
@@ -13037,8 +13037,8 @@
|
|
|
13037
13037
|
}
|
|
13038
13038
|
}
|
|
13039
13039
|
};
|
|
13040
|
-
function isArray2(
|
|
13041
|
-
return toStr.call(
|
|
13040
|
+
function isArray2(x2) {
|
|
13041
|
+
return toStr.call(x2) === "[object Array]";
|
|
13042
13042
|
}
|
|
13043
13043
|
forEach = function forEach2(list2, iterator2, thisArg) {
|
|
13044
13044
|
if (!isCallable2(iterator2)) {
|
|
@@ -13647,10 +13647,10 @@
|
|
|
13647
13647
|
var i2 = 1;
|
|
13648
13648
|
var args = arguments;
|
|
13649
13649
|
var len2 = args.length;
|
|
13650
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
13651
|
-
if (
|
|
13652
|
-
if (i2 >= len2) return
|
|
13653
|
-
switch (
|
|
13650
|
+
var str = String(f2).replace(formatRegExp, function(x3) {
|
|
13651
|
+
if (x3 === "%%") return "%";
|
|
13652
|
+
if (i2 >= len2) return x3;
|
|
13653
|
+
switch (x3) {
|
|
13654
13654
|
case "%s":
|
|
13655
13655
|
return String(args[i2++]);
|
|
13656
13656
|
case "%d":
|
|
@@ -13662,14 +13662,14 @@
|
|
|
13662
13662
|
return "[Circular]";
|
|
13663
13663
|
}
|
|
13664
13664
|
default:
|
|
13665
|
-
return
|
|
13665
|
+
return x3;
|
|
13666
13666
|
}
|
|
13667
13667
|
});
|
|
13668
|
-
for (var
|
|
13669
|
-
if (isNull(
|
|
13670
|
-
str += " " +
|
|
13668
|
+
for (var x2 = args[i2]; i2 < len2; x2 = args[++i2]) {
|
|
13669
|
+
if (isNull(x2) || !isObject2(x2)) {
|
|
13670
|
+
str += " " + x2;
|
|
13671
13671
|
} else {
|
|
13672
|
-
str += " " + inspect2(
|
|
13672
|
+
str += " " + inspect2(x2);
|
|
13673
13673
|
}
|
|
13674
13674
|
}
|
|
13675
13675
|
return str;
|
|
@@ -13882,7 +13882,7 @@
|
|
|
13882
13882
|
}
|
|
13883
13883
|
function formatArray(ctx2, value, recurseTimes, visibleKeys, keys2) {
|
|
13884
13884
|
var output = [];
|
|
13885
|
-
for (var i2 = 0,
|
|
13885
|
+
for (var i2 = 0, l = value.length; i2 < l; ++i2) {
|
|
13886
13886
|
if (hasOwnProperty2(value, String(i2))) {
|
|
13887
13887
|
output.push(formatProperty(
|
|
13888
13888
|
ctx2,
|
|
@@ -14981,8 +14981,8 @@
|
|
|
14981
14981
|
state2.bufferProcessing = true;
|
|
14982
14982
|
var entry = state2.bufferedRequest;
|
|
14983
14983
|
if (stream._writev && entry && entry.next) {
|
|
14984
|
-
var
|
|
14985
|
-
var buffer2 = new Array(
|
|
14984
|
+
var l = state2.bufferedRequestCount;
|
|
14985
|
+
var buffer2 = new Array(l);
|
|
14986
14986
|
var holder = state2.corkedRequestsFree;
|
|
14987
14987
|
holder.entry = entry;
|
|
14988
14988
|
var count = 0;
|
|
@@ -16532,9 +16532,9 @@
|
|
|
16532
16532
|
return from2(Readable, iterable, opts);
|
|
16533
16533
|
};
|
|
16534
16534
|
}
|
|
16535
|
-
function indexOf(xs,
|
|
16536
|
-
for (var i2 = 0,
|
|
16537
|
-
if (xs[i2] ===
|
|
16535
|
+
function indexOf(xs, x2) {
|
|
16536
|
+
for (var i2 = 0, l = xs.length; i2 < l; i2++) {
|
|
16537
|
+
if (xs[i2] === x2) return i2;
|
|
16538
16538
|
}
|
|
16539
16539
|
return -1;
|
|
16540
16540
|
}
|
|
@@ -16913,7 +16913,7 @@
|
|
|
16913
16913
|
function checkBufferLength(parser) {
|
|
16914
16914
|
var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
|
|
16915
16915
|
var maxActual = 0;
|
|
16916
|
-
for (var i2 = 0,
|
|
16916
|
+
for (var i2 = 0, l = buffers.length; i2 < l; i2++) {
|
|
16917
16917
|
var len2 = parser[buffers[i2]].length;
|
|
16918
16918
|
if (len2 > maxAllowed) {
|
|
16919
16919
|
switch (buffers[i2]) {
|
|
@@ -16938,7 +16938,7 @@
|
|
|
16938
16938
|
parser.bufferCheckPosition = m2 + parser.position;
|
|
16939
16939
|
}
|
|
16940
16940
|
function clearBuffers(parser) {
|
|
16941
|
-
for (var i2 = 0,
|
|
16941
|
+
for (var i2 = 0, l = buffers.length; i2 < l; i2++) {
|
|
16942
16942
|
parser[buffers[i2]] = "";
|
|
16943
16943
|
}
|
|
16944
16944
|
}
|
|
@@ -16992,27 +16992,27 @@
|
|
|
16992
16992
|
this._parser = new SAXParser(strict, opt);
|
|
16993
16993
|
this.writable = true;
|
|
16994
16994
|
this.readable = true;
|
|
16995
|
-
var
|
|
16995
|
+
var me2 = this;
|
|
16996
16996
|
this._parser.onend = function() {
|
|
16997
|
-
|
|
16997
|
+
me2.emit("end");
|
|
16998
16998
|
};
|
|
16999
16999
|
this._parser.onerror = function(er) {
|
|
17000
|
-
|
|
17001
|
-
|
|
17000
|
+
me2.emit("error", er);
|
|
17001
|
+
me2._parser.error = null;
|
|
17002
17002
|
};
|
|
17003
17003
|
this._decoder = null;
|
|
17004
17004
|
streamWraps.forEach(function(ev) {
|
|
17005
|
-
Object.defineProperty(
|
|
17005
|
+
Object.defineProperty(me2, "on" + ev, {
|
|
17006
17006
|
get: function() {
|
|
17007
|
-
return
|
|
17007
|
+
return me2._parser["on" + ev];
|
|
17008
17008
|
},
|
|
17009
17009
|
set: function(h2) {
|
|
17010
17010
|
if (!h2) {
|
|
17011
|
-
|
|
17012
|
-
|
|
17011
|
+
me2.removeAllListeners(ev);
|
|
17012
|
+
me2._parser["on" + ev] = h2;
|
|
17013
17013
|
return h2;
|
|
17014
17014
|
}
|
|
17015
|
-
|
|
17015
|
+
me2.on(ev, h2);
|
|
17016
17016
|
},
|
|
17017
17017
|
enumerable: true,
|
|
17018
17018
|
configurable: false
|
|
@@ -17044,15 +17044,15 @@
|
|
|
17044
17044
|
return true;
|
|
17045
17045
|
};
|
|
17046
17046
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
17047
|
-
var
|
|
17048
|
-
if (!
|
|
17049
|
-
|
|
17047
|
+
var me2 = this;
|
|
17048
|
+
if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
17049
|
+
me2._parser["on" + ev] = function() {
|
|
17050
17050
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
17051
17051
|
args.splice(0, 0, ev);
|
|
17052
|
-
|
|
17052
|
+
me2.emit.apply(me2, args);
|
|
17053
17053
|
};
|
|
17054
17054
|
}
|
|
17055
|
-
return Stream.prototype.on.call(
|
|
17055
|
+
return Stream.prototype.on.call(me2, ev, handler2);
|
|
17056
17056
|
};
|
|
17057
17057
|
var CDATA = "[CDATA[";
|
|
17058
17058
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -17558,7 +17558,7 @@
|
|
|
17558
17558
|
});
|
|
17559
17559
|
});
|
|
17560
17560
|
}
|
|
17561
|
-
for (var i2 = 0,
|
|
17561
|
+
for (var i2 = 0, l = parser.attribList.length; i2 < l; i2++) {
|
|
17562
17562
|
var nv = parser.attribList[i2];
|
|
17563
17563
|
var name = nv[0];
|
|
17564
17564
|
var value = nv[1];
|
|
@@ -17644,9 +17644,9 @@
|
|
|
17644
17644
|
var tag = parser.tag = parser.tags.pop();
|
|
17645
17645
|
parser.tagName = parser.tag.name;
|
|
17646
17646
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
17647
|
-
var
|
|
17647
|
+
var x2 = {};
|
|
17648
17648
|
for (var i2 in tag.ns) {
|
|
17649
|
-
|
|
17649
|
+
x2[i2] = tag.ns[i2];
|
|
17650
17650
|
}
|
|
17651
17651
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
17652
17652
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -19126,8 +19126,8 @@
|
|
|
19126
19126
|
rnds[8] = rnds[8] & 63 | 128;
|
|
19127
19127
|
return unsafeStringify$1(rnds);
|
|
19128
19128
|
}
|
|
19129
|
-
function getDefaultExportFromCjs$3(
|
|
19130
|
-
return
|
|
19129
|
+
function getDefaultExportFromCjs$3(x2) {
|
|
19130
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
19131
19131
|
}
|
|
19132
19132
|
const CRC_TABLE = new Int32Array([
|
|
19133
19133
|
0,
|
|
@@ -22943,8 +22943,8 @@
|
|
|
22943
22943
|
const points = [];
|
|
22944
22944
|
polygonNode.elements.forEach((element2) => {
|
|
22945
22945
|
if (["wp:start", "wp:lineTo"].includes(element2.name)) {
|
|
22946
|
-
const { x, y: y2 } = element2.attributes;
|
|
22947
|
-
points.push([polygonUnitsToPixels(
|
|
22946
|
+
const { x: x2, y: y2 } = element2.attributes;
|
|
22947
|
+
points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
|
|
22948
22948
|
}
|
|
22949
22949
|
});
|
|
22950
22950
|
if (points.length > 1) {
|
|
@@ -22967,13 +22967,13 @@
|
|
|
22967
22967
|
elements: []
|
|
22968
22968
|
};
|
|
22969
22969
|
points.forEach((point2, index2) => {
|
|
22970
|
-
const [
|
|
22970
|
+
const [x2, y2] = point2;
|
|
22971
22971
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
22972
22972
|
const pointNode = {
|
|
22973
22973
|
name: tagName,
|
|
22974
22974
|
type: tagName,
|
|
22975
22975
|
attributes: {
|
|
22976
|
-
x: pixelsToPolygonUnits(
|
|
22976
|
+
x: pixelsToPolygonUnits(x2),
|
|
22977
22977
|
y: pixelsToPolygonUnits(y2)
|
|
22978
22978
|
}
|
|
22979
22979
|
};
|
|
@@ -30600,7 +30600,7 @@
|
|
|
30600
30600
|
const right2 = Math.max(start2.right, end2.right);
|
|
30601
30601
|
const width = right2 - left2;
|
|
30602
30602
|
const height = bottom2 - top2;
|
|
30603
|
-
const
|
|
30603
|
+
const x2 = left2;
|
|
30604
30604
|
const y2 = top2;
|
|
30605
30605
|
const data = {
|
|
30606
30606
|
top: top2,
|
|
@@ -30609,7 +30609,7 @@
|
|
|
30609
30609
|
right: right2,
|
|
30610
30610
|
width,
|
|
30611
30611
|
height,
|
|
30612
|
-
x,
|
|
30612
|
+
x: x2,
|
|
30613
30613
|
y: y2
|
|
30614
30614
|
};
|
|
30615
30615
|
return {
|
|
@@ -30698,39 +30698,39 @@
|
|
|
30698
30698
|
function L() {
|
|
30699
30699
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
30700
30700
|
}
|
|
30701
|
-
var
|
|
30702
|
-
function G(
|
|
30703
|
-
|
|
30701
|
+
var T = L();
|
|
30702
|
+
function G(u3) {
|
|
30703
|
+
T = u3;
|
|
30704
30704
|
}
|
|
30705
|
-
var
|
|
30706
|
-
function h$1(
|
|
30707
|
-
let t = typeof
|
|
30705
|
+
var I = { exec: () => null };
|
|
30706
|
+
function h$1(u3, e = "") {
|
|
30707
|
+
let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r2, i2) => {
|
|
30708
30708
|
let s2 = typeof i2 == "string" ? i2 : i2.source;
|
|
30709
30709
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
30710
30710
|
}, getRegex: () => new RegExp(t, e) };
|
|
30711
30711
|
return n;
|
|
30712
30712
|
}
|
|
30713
|
-
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: (
|
|
30714
|
-
]`).replace("lheading",
|
|
30715
|
-
var
|
|
30716
|
-
function w(
|
|
30713
|
+
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = h$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(), we = h$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]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h$1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h$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 = h$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 = h$1(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = h$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re$1 = h$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = { ...K$1, lheading: we, table: re$1, paragraph: h$1(j).replace("hr", E).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() }, Me = { ...K$1, html: h$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: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h$1(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
|
|
30714
|
+
]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ee = h$1(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h$1(/link|code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code", /(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h$1(ce, "u").replace(/punct/g, D).getRegex(), De = h$1(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h$1(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h$1(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h$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(), Ne = h$1(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h$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(), je = h$1(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h$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", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q$1 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h$1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q$1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h$1(/^!?\[(label)\]\[(ref)\]/).replace("label", q$1).replace("ref", Q).getRegex(), ke = h$1(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h$1("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h$1(/^!?\[(label)\]\((.*?)\)/).replace("label", q$1).getRegex(), reflink: h$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q$1).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h$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: h$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() }, Xe = { ...N, br: h$1(le).replace("{2,}", "*").getRegex(), text: h$1(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Le, pedantic: Me }, M$1 = { normal: X, gfm: N, breaks: Xe, pedantic: We };
|
|
30715
|
+
var Je = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (u3) => Je[u3];
|
|
30716
|
+
function w(u3, e) {
|
|
30717
30717
|
if (e) {
|
|
30718
|
-
if (m.escapeTest.test(
|
|
30719
|
-
} else if (m.escapeTestNoEncode.test(
|
|
30720
|
-
return
|
|
30718
|
+
if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
|
|
30719
|
+
} else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
|
|
30720
|
+
return u3;
|
|
30721
30721
|
}
|
|
30722
|
-
function J(
|
|
30722
|
+
function J(u3) {
|
|
30723
30723
|
try {
|
|
30724
|
-
|
|
30724
|
+
u3 = encodeURI(u3).replace(m.percentDecode, "%");
|
|
30725
30725
|
} catch {
|
|
30726
30726
|
return null;
|
|
30727
30727
|
}
|
|
30728
|
-
return
|
|
30728
|
+
return u3;
|
|
30729
30729
|
}
|
|
30730
|
-
function V(
|
|
30731
|
-
let t =
|
|
30732
|
-
let a2 = false,
|
|
30733
|
-
for (; --
|
|
30730
|
+
function V(u3, e) {
|
|
30731
|
+
let t = u3.replace(m.findPipe, (i2, s2, o) => {
|
|
30732
|
+
let a2 = false, l = s2;
|
|
30733
|
+
for (; --l >= 0 && o[l] === "\\"; ) a2 = !a2;
|
|
30734
30734
|
return a2 ? "|" : " |";
|
|
30735
30735
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
30736
30736
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
@@ -30738,33 +30738,33 @@
|
|
|
30738
30738
|
for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
|
|
30739
30739
|
return n;
|
|
30740
30740
|
}
|
|
30741
|
-
function z(
|
|
30742
|
-
let n =
|
|
30741
|
+
function z(u3, e, t) {
|
|
30742
|
+
let n = u3.length;
|
|
30743
30743
|
if (n === 0) return "";
|
|
30744
30744
|
let r2 = 0;
|
|
30745
30745
|
for (; r2 < n; ) {
|
|
30746
|
-
let i2 =
|
|
30746
|
+
let i2 = u3.charAt(n - r2 - 1);
|
|
30747
30747
|
if (i2 === e && true) r2++;
|
|
30748
30748
|
else break;
|
|
30749
30749
|
}
|
|
30750
|
-
return
|
|
30750
|
+
return u3.slice(0, n - r2);
|
|
30751
30751
|
}
|
|
30752
|
-
function
|
|
30753
|
-
if (
|
|
30752
|
+
function fe(u3, e) {
|
|
30753
|
+
if (u3.indexOf(e[1]) === -1) return -1;
|
|
30754
30754
|
let t = 0;
|
|
30755
|
-
for (let n = 0; n <
|
|
30756
|
-
else if (
|
|
30757
|
-
else if (
|
|
30755
|
+
for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
|
|
30756
|
+
else if (u3[n] === e[0]) t++;
|
|
30757
|
+
else if (u3[n] === e[1] && (t--, t < 0)) return n;
|
|
30758
30758
|
return t > 0 ? -2 : -1;
|
|
30759
30759
|
}
|
|
30760
|
-
function
|
|
30761
|
-
let i2 = e.href, s2 = e.title || null, o =
|
|
30760
|
+
function me(u3, e, t, n, r2) {
|
|
30761
|
+
let i2 = e.href, s2 = e.title || null, o = u3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
30762
30762
|
n.state.inLink = true;
|
|
30763
|
-
let a2 = { type:
|
|
30763
|
+
let a2 = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i2, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
30764
30764
|
return n.state.inLink = false, a2;
|
|
30765
30765
|
}
|
|
30766
|
-
function
|
|
30767
|
-
let n =
|
|
30766
|
+
function Ve(u3, e, t) {
|
|
30767
|
+
let n = u3.match(t.other.indentCodeCompensation);
|
|
30768
30768
|
if (n === null) return e;
|
|
30769
30769
|
let r2 = n[1];
|
|
30770
30770
|
return e.split(`
|
|
@@ -30781,7 +30781,7 @@
|
|
|
30781
30781
|
__publicField$2(this, "options");
|
|
30782
30782
|
__publicField$2(this, "rules");
|
|
30783
30783
|
__publicField$2(this, "lexer");
|
|
30784
|
-
this.options = e ||
|
|
30784
|
+
this.options = e || T;
|
|
30785
30785
|
}
|
|
30786
30786
|
space(e) {
|
|
30787
30787
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -30798,7 +30798,7 @@
|
|
|
30798
30798
|
fences(e) {
|
|
30799
30799
|
let t = this.rules.block.fences.exec(e);
|
|
30800
30800
|
if (t) {
|
|
30801
|
-
let n = t[0], r2 =
|
|
30801
|
+
let n = t[0], r2 = Ve(n, t[3] || "", this.rules);
|
|
30802
30802
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
30803
30803
|
}
|
|
30804
30804
|
}
|
|
@@ -30825,32 +30825,32 @@
|
|
|
30825
30825
|
`).split(`
|
|
30826
30826
|
`), r2 = "", i2 = "", s2 = [];
|
|
30827
30827
|
for (; n.length > 0; ) {
|
|
30828
|
-
let o = false, a2 = [],
|
|
30829
|
-
for (
|
|
30830
|
-
else if (!o) a2.push(n[
|
|
30828
|
+
let o = false, a2 = [], l;
|
|
30829
|
+
for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a2.push(n[l]), o = true;
|
|
30830
|
+
else if (!o) a2.push(n[l]);
|
|
30831
30831
|
else break;
|
|
30832
|
-
n = n.slice(
|
|
30833
|
-
let
|
|
30834
|
-
`),
|
|
30832
|
+
n = n.slice(l);
|
|
30833
|
+
let c2 = a2.join(`
|
|
30834
|
+
`), p2 = c2.replace(this.rules.other.blockquoteSetextReplace, `
|
|
30835
30835
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
30836
30836
|
r2 = r2 ? `${r2}
|
|
30837
|
-
${
|
|
30838
|
-
${
|
|
30839
|
-
let
|
|
30840
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(
|
|
30841
|
-
let
|
|
30842
|
-
if (
|
|
30843
|
-
if (
|
|
30844
|
-
let
|
|
30837
|
+
${c2}` : c2, i2 = i2 ? `${i2}
|
|
30838
|
+
${p2}` : p2;
|
|
30839
|
+
let g = this.lexer.state.top;
|
|
30840
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(p2, s2, true), this.lexer.state.top = g, n.length === 0) break;
|
|
30841
|
+
let d2 = s2.at(-1);
|
|
30842
|
+
if (d2?.type === "code") break;
|
|
30843
|
+
if (d2?.type === "blockquote") {
|
|
30844
|
+
let R = d2, f2 = R.raw + `
|
|
30845
30845
|
` + n.join(`
|
|
30846
|
-
`),
|
|
30847
|
-
s2[s2.length - 1] =
|
|
30846
|
+
`), O = this.blockquote(f2);
|
|
30847
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.text.length) + O.text;
|
|
30848
30848
|
break;
|
|
30849
|
-
} else if (
|
|
30850
|
-
let
|
|
30849
|
+
} else if (d2?.type === "list") {
|
|
30850
|
+
let R = d2, f2 = R.raw + `
|
|
30851
30851
|
` + n.join(`
|
|
30852
|
-
`),
|
|
30853
|
-
s2[s2.length - 1] =
|
|
30852
|
+
`), O = this.list(f2);
|
|
30853
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - d2.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
|
|
30854
30854
|
`);
|
|
30855
30855
|
continue;
|
|
30856
30856
|
}
|
|
@@ -30865,43 +30865,43 @@ ${c2}` : c2;
|
|
|
30865
30865
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
30866
30866
|
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
30867
30867
|
for (; e; ) {
|
|
30868
|
-
let
|
|
30868
|
+
let l = false, c2 = "", p2 = "";
|
|
30869
30869
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
30870
|
-
|
|
30871
|
-
let
|
|
30872
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
30873
|
-
`, 1)[0],
|
|
30874
|
-
if (this.options.pedantic ? (
|
|
30875
|
-
`, e = e.substring(
|
|
30876
|
-
let H = this.rules.other.nextBulletRegex(
|
|
30870
|
+
c2 = t[0], e = e.substring(c2.length);
|
|
30871
|
+
let g = t[2].split(`
|
|
30872
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d2 = e.split(`
|
|
30873
|
+
`, 1)[0], R = !g.trim(), f2 = 0;
|
|
30874
|
+
if (this.options.pedantic ? (f2 = 2, p2 = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, p2 = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(d2) && (c2 += d2 + `
|
|
30875
|
+
`, e = e.substring(d2.length + 1), l = true), !l) {
|
|
30876
|
+
let H = this.rules.other.nextBulletRegex(f2), ee = this.rules.other.hrRegex(f2), te = this.rules.other.fencesBeginRegex(f2), ne = this.rules.other.headingBeginRegex(f2), xe = this.rules.other.htmlBeginRegex(f2);
|
|
30877
30877
|
for (; e; ) {
|
|
30878
30878
|
let Z = e.split(`
|
|
30879
30879
|
`, 1)[0], A2;
|
|
30880
|
-
if (
|
|
30881
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
30882
|
-
` + A2.slice(
|
|
30880
|
+
if (d2 = Z, this.options.pedantic ? (d2 = d2.replace(this.rules.other.listReplaceNesting, " "), A2 = d2) : A2 = d2.replace(this.rules.other.tabCharGlobal, " "), te.test(d2) || ne.test(d2) || xe.test(d2) || H.test(d2) || ee.test(d2)) break;
|
|
30881
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !d2.trim()) p2 += `
|
|
30882
|
+
` + A2.slice(f2);
|
|
30883
30883
|
else {
|
|
30884
|
-
if (
|
|
30885
|
-
|
|
30886
|
-
` +
|
|
30884
|
+
if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
|
|
30885
|
+
p2 += `
|
|
30886
|
+
` + d2;
|
|
30887
30887
|
}
|
|
30888
|
-
!
|
|
30889
|
-
`, e = e.substring(Z.length + 1),
|
|
30888
|
+
!R && !d2.trim() && (R = true), c2 += Z + `
|
|
30889
|
+
`, e = e.substring(Z.length + 1), g = A2.slice(f2);
|
|
30890
30890
|
}
|
|
30891
30891
|
}
|
|
30892
|
-
i2.loose || (o ? i2.loose = true : this.rules.other.doubleBlankLine.test(
|
|
30893
|
-
let
|
|
30894
|
-
this.options.gfm && (
|
|
30892
|
+
i2.loose || (o ? i2.loose = true : this.rules.other.doubleBlankLine.test(c2) && (o = true));
|
|
30893
|
+
let O = null, Y2;
|
|
30894
|
+
this.options.gfm && (O = this.rules.other.listIsTask.exec(p2), O && (Y2 = O[0] !== "[ ] ", p2 = p2.replace(this.rules.other.listReplaceTask, ""))), i2.items.push({ type: "list_item", raw: c2, task: !!O, checked: Y2, loose: false, text: p2, tokens: [] }), i2.raw += c2;
|
|
30895
30895
|
}
|
|
30896
30896
|
let a2 = i2.items.at(-1);
|
|
30897
30897
|
if (a2) a2.raw = a2.raw.trimEnd(), a2.text = a2.text.trimEnd();
|
|
30898
30898
|
else return;
|
|
30899
30899
|
i2.raw = i2.raw.trimEnd();
|
|
30900
|
-
for (let
|
|
30901
|
-
let
|
|
30902
|
-
i2.loose =
|
|
30900
|
+
for (let l = 0; l < i2.items.length; l++) if (this.lexer.state.top = false, i2.items[l].tokens = this.lexer.blockTokens(i2.items[l].text, []), !i2.loose) {
|
|
30901
|
+
let c2 = i2.items[l].tokens.filter((g) => g.type === "space"), p2 = c2.length > 0 && c2.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
30902
|
+
i2.loose = p2;
|
|
30903
30903
|
}
|
|
30904
|
-
if (i2.loose) for (let
|
|
30904
|
+
if (i2.loose) for (let l = 0; l < i2.items.length; l++) i2.items[l].loose = true;
|
|
30905
30905
|
return i2;
|
|
30906
30906
|
}
|
|
30907
30907
|
}
|
|
@@ -30924,7 +30924,7 @@ ${c2}` : c2;
|
|
|
30924
30924
|
if (n.length === r2.length) {
|
|
30925
30925
|
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);
|
|
30926
30926
|
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] });
|
|
30927
|
-
for (let o of i2) s2.rows.push(V(o, s2.header.length).map((a2,
|
|
30927
|
+
for (let o of i2) s2.rows.push(V(o, s2.header.length).map((a2, l) => ({ text: a2, tokens: this.lexer.inline(a2), header: false, align: s2.align[l] })));
|
|
30928
30928
|
return s2;
|
|
30929
30929
|
}
|
|
30930
30930
|
}
|
|
@@ -30961,7 +30961,7 @@ ${c2}` : c2;
|
|
|
30961
30961
|
let s2 = z(n.slice(0, -1), "\\");
|
|
30962
30962
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
30963
30963
|
} else {
|
|
30964
|
-
let s2 =
|
|
30964
|
+
let s2 = fe(t[2], "()");
|
|
30965
30965
|
if (s2 === -2) return;
|
|
30966
30966
|
if (s2 > -1) {
|
|
30967
30967
|
let a2 = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
@@ -30973,7 +30973,7 @@ ${c2}` : c2;
|
|
|
30973
30973
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
30974
30974
|
s2 && (r2 = s2[1], i2 = s2[3]);
|
|
30975
30975
|
} else i2 = t[3] ? t[3].slice(1, -1) : "";
|
|
30976
|
-
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)),
|
|
30976
|
+
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)), me(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);
|
|
30977
30977
|
}
|
|
30978
30978
|
}
|
|
30979
30979
|
reflink(e, t) {
|
|
@@ -30984,32 +30984,32 @@ ${c2}` : c2;
|
|
|
30984
30984
|
let s2 = n[0].charAt(0);
|
|
30985
30985
|
return { type: "text", raw: s2, text: s2 };
|
|
30986
30986
|
}
|
|
30987
|
-
return
|
|
30987
|
+
return me(n, i2, n[0], this.lexer, this.rules);
|
|
30988
30988
|
}
|
|
30989
30989
|
}
|
|
30990
30990
|
emStrong(e, t, n = "") {
|
|
30991
30991
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
30992
30992
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
30993
30993
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
30994
|
-
let s2 = [...r2[0]].length - 1, o, a2,
|
|
30995
|
-
for (
|
|
30994
|
+
let s2 = [...r2[0]].length - 1, o, a2, l = s2, c2 = 0, p2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
30995
|
+
for (p2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = p2.exec(t)) != null; ) {
|
|
30996
30996
|
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
30997
30997
|
if (a2 = [...o].length, r2[3] || r2[4]) {
|
|
30998
|
-
|
|
30998
|
+
l += a2;
|
|
30999
30999
|
continue;
|
|
31000
31000
|
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a2) % 3)) {
|
|
31001
|
-
|
|
31001
|
+
c2 += a2;
|
|
31002
31002
|
continue;
|
|
31003
31003
|
}
|
|
31004
|
-
if (
|
|
31005
|
-
a2 = Math.min(a2, a2 +
|
|
31006
|
-
let
|
|
31004
|
+
if (l -= a2, l > 0) continue;
|
|
31005
|
+
a2 = Math.min(a2, a2 + l + c2);
|
|
31006
|
+
let g = [...r2[0]][0].length, d2 = e.slice(0, s2 + r2.index + g + a2);
|
|
31007
31007
|
if (Math.min(s2, a2) % 2) {
|
|
31008
|
-
let
|
|
31009
|
-
return { type: "em", raw:
|
|
31008
|
+
let f2 = d2.slice(1, -1);
|
|
31009
|
+
return { type: "em", raw: d2, text: f2, tokens: this.lexer.inlineTokens(f2) };
|
|
31010
31010
|
}
|
|
31011
|
-
let
|
|
31012
|
-
return { type: "strong", raw:
|
|
31011
|
+
let R = d2.slice(2, -2);
|
|
31012
|
+
return { type: "strong", raw: d2, text: R, tokens: this.lexer.inlineTokens(R) };
|
|
31013
31013
|
}
|
|
31014
31014
|
}
|
|
31015
31015
|
}
|
|
@@ -31058,25 +31058,25 @@ ${c2}` : c2;
|
|
|
31058
31058
|
}
|
|
31059
31059
|
}
|
|
31060
31060
|
};
|
|
31061
|
-
var
|
|
31061
|
+
var x = class u {
|
|
31062
31062
|
constructor(e) {
|
|
31063
31063
|
__publicField$2(this, "tokens");
|
|
31064
31064
|
__publicField$2(this, "options");
|
|
31065
31065
|
__publicField$2(this, "state");
|
|
31066
31066
|
__publicField$2(this, "tokenizer");
|
|
31067
31067
|
__publicField$2(this, "inlineQueue");
|
|
31068
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
31069
|
-
let t = { other: m, block:
|
|
31070
|
-
this.options.pedantic ? (t.block =
|
|
31068
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
|
|
31069
|
+
let t = { other: m, block: C.normal, inline: M$1.normal };
|
|
31070
|
+
this.options.pedantic ? (t.block = C.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
31071
31071
|
}
|
|
31072
31072
|
static get rules() {
|
|
31073
|
-
return { block:
|
|
31073
|
+
return { block: C, inline: M$1 };
|
|
31074
31074
|
}
|
|
31075
31075
|
static lex(e, t) {
|
|
31076
|
-
return new
|
|
31076
|
+
return new u(t).lex(e);
|
|
31077
31077
|
}
|
|
31078
31078
|
static lexInline(e, t) {
|
|
31079
|
-
return new
|
|
31079
|
+
return new u(t).inlineTokens(e);
|
|
31080
31080
|
}
|
|
31081
31081
|
lex(e) {
|
|
31082
31082
|
e = e.replace(m.carriageReturn, `
|
|
@@ -31151,8 +31151,8 @@ ${c2}` : c2;
|
|
|
31151
31151
|
let i2 = e;
|
|
31152
31152
|
if (this.options.extensions?.startBlock) {
|
|
31153
31153
|
let s2 = 1 / 0, o = e.slice(1), a2;
|
|
31154
|
-
this.options.extensions.startBlock.forEach((
|
|
31155
|
-
a2 =
|
|
31154
|
+
this.options.extensions.startBlock.forEach((l) => {
|
|
31155
|
+
a2 = l.call({ lexer: this }, o), typeof a2 == "number" && a2 >= 0 && (s2 = Math.min(s2, a2));
|
|
31156
31156
|
}), s2 < 1 / 0 && s2 >= 0 && (i2 = e.substring(0, s2 + 1));
|
|
31157
31157
|
}
|
|
31158
31158
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i2))) {
|
|
@@ -31198,7 +31198,7 @@ ${c2}` : c2;
|
|
|
31198
31198
|
for (; e; ) {
|
|
31199
31199
|
i2 || (s2 = ""), i2 = false;
|
|
31200
31200
|
let o;
|
|
31201
|
-
if (this.options.extensions?.inline?.some((
|
|
31201
|
+
if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
|
|
31202
31202
|
if (o = this.tokenizer.escape(e)) {
|
|
31203
31203
|
e = e.substring(o.raw.length), t.push(o);
|
|
31204
31204
|
continue;
|
|
@@ -31213,8 +31213,8 @@ ${c2}` : c2;
|
|
|
31213
31213
|
}
|
|
31214
31214
|
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
31215
31215
|
e = e.substring(o.raw.length);
|
|
31216
|
-
let
|
|
31217
|
-
o.type === "text" &&
|
|
31216
|
+
let l = t.at(-1);
|
|
31217
|
+
o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
31218
31218
|
continue;
|
|
31219
31219
|
}
|
|
31220
31220
|
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
@@ -31243,23 +31243,23 @@ ${c2}` : c2;
|
|
|
31243
31243
|
}
|
|
31244
31244
|
let a2 = e;
|
|
31245
31245
|
if (this.options.extensions?.startInline) {
|
|
31246
|
-
let
|
|
31247
|
-
this.options.extensions.startInline.forEach((
|
|
31248
|
-
|
|
31249
|
-
}),
|
|
31246
|
+
let l = 1 / 0, c2 = e.slice(1), p2;
|
|
31247
|
+
this.options.extensions.startInline.forEach((g) => {
|
|
31248
|
+
p2 = g.call({ lexer: this }, c2), typeof p2 == "number" && p2 >= 0 && (l = Math.min(l, p2));
|
|
31249
|
+
}), l < 1 / 0 && l >= 0 && (a2 = e.substring(0, l + 1));
|
|
31250
31250
|
}
|
|
31251
31251
|
if (o = this.tokenizer.inlineText(a2)) {
|
|
31252
31252
|
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i2 = true;
|
|
31253
|
-
let
|
|
31254
|
-
|
|
31253
|
+
let l = t.at(-1);
|
|
31254
|
+
l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
31255
31255
|
continue;
|
|
31256
31256
|
}
|
|
31257
31257
|
if (e) {
|
|
31258
|
-
let
|
|
31258
|
+
let l = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
31259
31259
|
if (this.options.silent) {
|
|
31260
|
-
console.error(
|
|
31260
|
+
console.error(l);
|
|
31261
31261
|
break;
|
|
31262
|
-
} else throw new Error(
|
|
31262
|
+
} else throw new Error(l);
|
|
31263
31263
|
}
|
|
31264
31264
|
}
|
|
31265
31265
|
return t;
|
|
@@ -31269,7 +31269,7 @@ ${c2}` : c2;
|
|
|
31269
31269
|
constructor(e) {
|
|
31270
31270
|
__publicField$2(this, "options");
|
|
31271
31271
|
__publicField$2(this, "parser");
|
|
31272
|
-
this.options = e ||
|
|
31272
|
+
this.options = e || T;
|
|
31273
31273
|
}
|
|
31274
31274
|
space(e) {
|
|
31275
31275
|
return "";
|
|
@@ -31417,18 +31417,18 @@ ${e}</tr>
|
|
|
31417
31417
|
return "";
|
|
31418
31418
|
}
|
|
31419
31419
|
};
|
|
31420
|
-
var
|
|
31420
|
+
var b = class u2 {
|
|
31421
31421
|
constructor(e) {
|
|
31422
31422
|
__publicField$2(this, "options");
|
|
31423
31423
|
__publicField$2(this, "renderer");
|
|
31424
31424
|
__publicField$2(this, "textRenderer");
|
|
31425
|
-
this.options = e ||
|
|
31425
|
+
this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $$1();
|
|
31426
31426
|
}
|
|
31427
31427
|
static parse(e, t) {
|
|
31428
|
-
return new
|
|
31428
|
+
return new u2(t).parse(e);
|
|
31429
31429
|
}
|
|
31430
31430
|
static parseInline(e, t) {
|
|
31431
|
-
return new
|
|
31431
|
+
return new u2(t).parseInline(e);
|
|
31432
31432
|
}
|
|
31433
31433
|
parse(e, t = true) {
|
|
31434
31434
|
let n = "";
|
|
@@ -31566,7 +31566,7 @@ ${e}</tr>
|
|
|
31566
31566
|
constructor(e) {
|
|
31567
31567
|
__publicField$2(this, "options");
|
|
31568
31568
|
__publicField$2(this, "block");
|
|
31569
|
-
this.options = e ||
|
|
31569
|
+
this.options = e || T;
|
|
31570
31570
|
}
|
|
31571
31571
|
preprocess(e) {
|
|
31572
31572
|
return e;
|
|
@@ -31581,10 +31581,10 @@ ${e}</tr>
|
|
|
31581
31581
|
return e;
|
|
31582
31582
|
}
|
|
31583
31583
|
provideLexer() {
|
|
31584
|
-
return this.block ?
|
|
31584
|
+
return this.block ? x.lex : x.lexInline;
|
|
31585
31585
|
}
|
|
31586
31586
|
provideParser() {
|
|
31587
|
-
return this.block ?
|
|
31587
|
+
return this.block ? b.parse : b.parseInline;
|
|
31588
31588
|
}
|
|
31589
31589
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
31590
31590
|
var B = class {
|
|
@@ -31593,10 +31593,10 @@ ${e}</tr>
|
|
|
31593
31593
|
__publicField$2(this, "options", this.setOptions);
|
|
31594
31594
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
31595
31595
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
31596
|
-
__publicField$2(this, "Parser",
|
|
31596
|
+
__publicField$2(this, "Parser", b);
|
|
31597
31597
|
__publicField$2(this, "Renderer", P);
|
|
31598
31598
|
__publicField$2(this, "TextRenderer", $$1);
|
|
31599
|
-
__publicField$2(this, "Lexer",
|
|
31599
|
+
__publicField$2(this, "Lexer", x);
|
|
31600
31600
|
__publicField$2(this, "Tokenizer", y);
|
|
31601
31601
|
__publicField$2(this, "Hooks", S);
|
|
31602
31602
|
this.use(...e);
|
|
@@ -31649,10 +31649,10 @@ ${e}</tr>
|
|
|
31649
31649
|
for (let s2 in n.renderer) {
|
|
31650
31650
|
if (!(s2 in i2)) throw new Error(`renderer '${s2}' does not exist`);
|
|
31651
31651
|
if (["options", "parser"].includes(s2)) continue;
|
|
31652
|
-
let o = s2, a2 = n.renderer[o],
|
|
31653
|
-
i2[o] = (...
|
|
31654
|
-
let
|
|
31655
|
-
return
|
|
31652
|
+
let o = s2, a2 = n.renderer[o], l = i2[o];
|
|
31653
|
+
i2[o] = (...c2) => {
|
|
31654
|
+
let p2 = a2.apply(i2, c2);
|
|
31655
|
+
return p2 === false && (p2 = l.apply(i2, c2)), p2 || "";
|
|
31656
31656
|
};
|
|
31657
31657
|
}
|
|
31658
31658
|
r2.renderer = i2;
|
|
@@ -31662,10 +31662,10 @@ ${e}</tr>
|
|
|
31662
31662
|
for (let s2 in n.tokenizer) {
|
|
31663
31663
|
if (!(s2 in i2)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
31664
31664
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
31665
|
-
let o = s2, a2 = n.tokenizer[o],
|
|
31666
|
-
i2[o] = (...
|
|
31667
|
-
let
|
|
31668
|
-
return
|
|
31665
|
+
let o = s2, a2 = n.tokenizer[o], l = i2[o];
|
|
31666
|
+
i2[o] = (...c2) => {
|
|
31667
|
+
let p2 = a2.apply(i2, c2);
|
|
31668
|
+
return p2 === false && (p2 = l.apply(i2, c2)), p2;
|
|
31669
31669
|
};
|
|
31670
31670
|
}
|
|
31671
31671
|
r2.tokenizer = i2;
|
|
@@ -31675,14 +31675,21 @@ ${e}</tr>
|
|
|
31675
31675
|
for (let s2 in n.hooks) {
|
|
31676
31676
|
if (!(s2 in i2)) throw new Error(`hook '${s2}' does not exist`);
|
|
31677
31677
|
if (["options", "block"].includes(s2)) continue;
|
|
31678
|
-
let o = s2, a2 = n.hooks[o],
|
|
31679
|
-
S.passThroughHooks.has(s2) ? i2[o] = (
|
|
31680
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return
|
|
31681
|
-
|
|
31682
|
-
|
|
31683
|
-
|
|
31684
|
-
let
|
|
31685
|
-
return
|
|
31678
|
+
let o = s2, a2 = n.hooks[o], l = i2[o];
|
|
31679
|
+
S.passThroughHooks.has(s2) ? i2[o] = (c2) => {
|
|
31680
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
|
|
31681
|
+
let g = await a2.call(i2, c2);
|
|
31682
|
+
return l.call(i2, g);
|
|
31683
|
+
})();
|
|
31684
|
+
let p2 = a2.call(i2, c2);
|
|
31685
|
+
return l.call(i2, p2);
|
|
31686
|
+
} : i2[o] = (...c2) => {
|
|
31687
|
+
if (this.defaults.async) return (async () => {
|
|
31688
|
+
let g = await a2.apply(i2, c2);
|
|
31689
|
+
return g === false && (g = await l.apply(i2, c2)), g;
|
|
31690
|
+
})();
|
|
31691
|
+
let p2 = a2.apply(i2, c2);
|
|
31692
|
+
return p2 === false && (p2 = l.apply(i2, c2)), p2;
|
|
31686
31693
|
};
|
|
31687
31694
|
}
|
|
31688
31695
|
r2.hooks = i2;
|
|
@@ -31701,10 +31708,10 @@ ${e}</tr>
|
|
|
31701
31708
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
31702
31709
|
}
|
|
31703
31710
|
lexer(e, t) {
|
|
31704
|
-
return
|
|
31711
|
+
return x.lex(e, t ?? this.defaults);
|
|
31705
31712
|
}
|
|
31706
31713
|
parser(e, t) {
|
|
31707
|
-
return
|
|
31714
|
+
return b.parse(e, t ?? this.defaults);
|
|
31708
31715
|
}
|
|
31709
31716
|
parseMarkdown(e) {
|
|
31710
31717
|
return (n, r2) => {
|
|
@@ -31712,17 +31719,20 @@ ${e}</tr>
|
|
|
31712
31719
|
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."));
|
|
31713
31720
|
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
31714
31721
|
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
31715
|
-
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e)
|
|
31716
|
-
|
|
31717
|
-
|
|
31722
|
+
if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
|
|
31723
|
+
let a2 = s2.hooks ? await s2.hooks.preprocess(n) : n, c2 = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(a2, s2), p2 = s2.hooks ? await s2.hooks.processAllTokens(c2) : c2;
|
|
31724
|
+
s2.walkTokens && await Promise.all(this.walkTokens(p2, s2.walkTokens));
|
|
31725
|
+
let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p2, s2);
|
|
31726
|
+
return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
|
|
31727
|
+
})().catch(o);
|
|
31718
31728
|
try {
|
|
31719
31729
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
31720
|
-
let
|
|
31721
|
-
s2.hooks && (
|
|
31722
|
-
let
|
|
31723
|
-
return s2.hooks && (
|
|
31724
|
-
} catch (
|
|
31725
|
-
return o(
|
|
31730
|
+
let l = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
|
|
31731
|
+
s2.hooks && (l = s2.hooks.processAllTokens(l)), s2.walkTokens && this.walkTokens(l, s2.walkTokens);
|
|
31732
|
+
let p2 = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s2);
|
|
31733
|
+
return s2.hooks && (p2 = s2.hooks.postprocess(p2)), p2;
|
|
31734
|
+
} catch (a2) {
|
|
31735
|
+
return o(a2);
|
|
31726
31736
|
}
|
|
31727
31737
|
};
|
|
31728
31738
|
}
|
|
@@ -31739,38 +31749,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
31739
31749
|
}
|
|
31740
31750
|
};
|
|
31741
31751
|
var _ = new B();
|
|
31742
|
-
function
|
|
31743
|
-
return _.parse(
|
|
31744
|
-
}
|
|
31745
|
-
|
|
31746
|
-
return _.setOptions(
|
|
31747
|
-
};
|
|
31748
|
-
|
|
31749
|
-
|
|
31750
|
-
|
|
31751
|
-
return _.use(...
|
|
31752
|
-
};
|
|
31753
|
-
|
|
31754
|
-
return _.walkTokens(
|
|
31755
|
-
};
|
|
31756
|
-
|
|
31757
|
-
|
|
31758
|
-
|
|
31759
|
-
|
|
31760
|
-
|
|
31761
|
-
|
|
31762
|
-
|
|
31763
|
-
|
|
31764
|
-
|
|
31765
|
-
|
|
31766
|
-
|
|
31767
|
-
|
|
31768
|
-
|
|
31769
|
-
|
|
31770
|
-
|
|
31771
|
-
|
|
31772
|
-
|
|
31773
|
-
|
|
31752
|
+
function k$1(u3, e) {
|
|
31753
|
+
return _.parse(u3, e);
|
|
31754
|
+
}
|
|
31755
|
+
k$1.options = k$1.setOptions = function(u3) {
|
|
31756
|
+
return _.setOptions(u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
31757
|
+
};
|
|
31758
|
+
k$1.getDefaults = L;
|
|
31759
|
+
k$1.defaults = T;
|
|
31760
|
+
k$1.use = function(...u3) {
|
|
31761
|
+
return _.use(...u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
31762
|
+
};
|
|
31763
|
+
k$1.walkTokens = function(u3, e) {
|
|
31764
|
+
return _.walkTokens(u3, e);
|
|
31765
|
+
};
|
|
31766
|
+
k$1.parseInline = _.parseInline;
|
|
31767
|
+
k$1.Parser = b;
|
|
31768
|
+
k$1.parser = b.parse;
|
|
31769
|
+
k$1.Renderer = P;
|
|
31770
|
+
k$1.TextRenderer = $$1;
|
|
31771
|
+
k$1.Lexer = x;
|
|
31772
|
+
k$1.lexer = x.lex;
|
|
31773
|
+
k$1.Tokenizer = y;
|
|
31774
|
+
k$1.Hooks = S;
|
|
31775
|
+
k$1.parse = k$1;
|
|
31776
|
+
k$1.options;
|
|
31777
|
+
k$1.setOptions;
|
|
31778
|
+
k$1.use;
|
|
31779
|
+
k$1.walkTokens;
|
|
31780
|
+
k$1.parseInline;
|
|
31781
|
+
b.parse;
|
|
31782
|
+
x.lex;
|
|
31783
|
+
k$1.use({
|
|
31774
31784
|
breaks: false,
|
|
31775
31785
|
// Use proper paragraphs, not <br> tags
|
|
31776
31786
|
gfm: true
|
|
@@ -31781,7 +31791,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
31781
31791
|
return createDocFromHTML(html2, schema, options);
|
|
31782
31792
|
}
|
|
31783
31793
|
function convertMarkdownToHTML(markdown) {
|
|
31784
|
-
let html2 =
|
|
31794
|
+
let html2 = k$1.parse(markdown, { async: false });
|
|
31785
31795
|
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");
|
|
31786
31796
|
}
|
|
31787
31797
|
function processContent({ content: content2, type: type2, schema }) {
|
|
@@ -36528,7 +36538,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36528
36538
|
const { width: w2, height: h2 } = resizeKeepAspectRatio(size2.w, size2.h, maxWidthEmu);
|
|
36529
36539
|
if (w2 && h2) size2 = { w: w2, h: h2 };
|
|
36530
36540
|
}
|
|
36531
|
-
if (
|
|
36541
|
+
if (imageId) {
|
|
36542
|
+
const docx = params2.converter?.convertedXml || {};
|
|
36543
|
+
const rels = docx["word/_rels/document.xml.rels"];
|
|
36544
|
+
const relsTag = rels?.elements?.find((el) => el.name === "Relationships");
|
|
36545
|
+
const hasRelation = relsTag?.elements.find((el) => el.attributes.Id === imageId);
|
|
36546
|
+
const path2 = src?.split("word/")[1];
|
|
36547
|
+
if (!hasRelation) {
|
|
36548
|
+
addImageRelationshipForId(params2, imageId, path2);
|
|
36549
|
+
}
|
|
36550
|
+
} else if (params2.node.type === "image" && !imageId) {
|
|
36532
36551
|
const path2 = src?.split("word/")[1];
|
|
36533
36552
|
imageId = addNewImageRelationship(params2, path2);
|
|
36534
36553
|
} else if (params2.node.type === "fieldAnnotation" && !imageId) {
|
|
@@ -36752,6 +36771,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36752
36771
|
params2.relationships.push(newRel);
|
|
36753
36772
|
return newId;
|
|
36754
36773
|
}
|
|
36774
|
+
function addImageRelationshipForId(params2, id, imagePath) {
|
|
36775
|
+
const newRel = {
|
|
36776
|
+
type: "element",
|
|
36777
|
+
name: "Relationship",
|
|
36778
|
+
attributes: {
|
|
36779
|
+
Id: id,
|
|
36780
|
+
Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
|
|
36781
|
+
Target: imagePath
|
|
36782
|
+
}
|
|
36783
|
+
};
|
|
36784
|
+
params2.relationships.push(newRel);
|
|
36785
|
+
}
|
|
36755
36786
|
function translateVectorShape(params2) {
|
|
36756
36787
|
const { node: node2 } = params2;
|
|
36757
36788
|
const { drawingContent } = node2.attrs;
|
|
@@ -43014,6 +43045,35 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43014
43045
|
};
|
|
43015
43046
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
43016
43047
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
43048
|
+
const FOOTER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
|
|
43049
|
+
const REL_ID_NUMERIC_PATTERN = /rId|mi/g;
|
|
43050
|
+
const getLargestRelationshipId = (relationships = []) => {
|
|
43051
|
+
const numericIds = relationships.map((rel) => Number(String(rel?.attributes?.Id ?? "").replace(REL_ID_NUMERIC_PATTERN, ""))).filter((value) => Number.isFinite(value));
|
|
43052
|
+
return numericIds.length ? Math.max(...numericIds) : 0;
|
|
43053
|
+
};
|
|
43054
|
+
const mergeRelationshipElements = (existingRelationships = [], newRelationships = []) => {
|
|
43055
|
+
if (!newRelationships?.length) return existingRelationships;
|
|
43056
|
+
let largestId = getLargestRelationshipId(existingRelationships);
|
|
43057
|
+
const seenIds = new Set(existingRelationships.map((rel) => rel?.attributes?.Id).filter(Boolean));
|
|
43058
|
+
const additions = [];
|
|
43059
|
+
newRelationships.forEach((rel) => {
|
|
43060
|
+
if (!rel?.attributes) return;
|
|
43061
|
+
const attributes = rel.attributes;
|
|
43062
|
+
const currentId = attributes.Id || "";
|
|
43063
|
+
attributes.Target = attributes?.Target?.replace(/&/g, "&");
|
|
43064
|
+
const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
|
|
43065
|
+
const isMedia = attributes.Target?.startsWith("media/");
|
|
43066
|
+
const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
|
|
43067
|
+
const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
|
|
43068
|
+
const hasSeenId = currentId && seenIds.has(currentId);
|
|
43069
|
+
const shouldSkip2 = !isNewHyperlink && !isNewHeadFoot && (hasSeenId || existingTarget);
|
|
43070
|
+
if (shouldSkip2) return;
|
|
43071
|
+
attributes.Id = currentId.length > 6 || isMedia ? currentId : `rId${++largestId}`;
|
|
43072
|
+
seenIds.add(attributes.Id);
|
|
43073
|
+
additions.push(rel);
|
|
43074
|
+
});
|
|
43075
|
+
return additions.length ? [...existingRelationships, ...additions] : existingRelationships;
|
|
43076
|
+
};
|
|
43017
43077
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
43018
43078
|
swiss: "Arial, sans-serif",
|
|
43019
43079
|
roman: "Times New Roman, serif",
|
|
@@ -43222,7 +43282,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43222
43282
|
static getStoredSuperdocVersion(docx) {
|
|
43223
43283
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
43224
43284
|
}
|
|
43225
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.28.
|
|
43285
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.28.4") {
|
|
43226
43286
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
43227
43287
|
}
|
|
43228
43288
|
/**
|
|
@@ -43613,7 +43673,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43613
43673
|
};
|
|
43614
43674
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
43615
43675
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
43616
|
-
const relationships = relsData.elements.find((
|
|
43676
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
43617
43677
|
const newDocRels = [];
|
|
43618
43678
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
43619
43679
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -43654,7 +43714,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43654
43714
|
}
|
|
43655
43715
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
43656
43716
|
if (params2.relationships.length) {
|
|
43657
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
43717
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
43658
43718
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
43659
43719
|
declaration: this.initialJSON?.declaration,
|
|
43660
43720
|
elements: [
|
|
@@ -43708,7 +43768,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43708
43768
|
}
|
|
43709
43769
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
43710
43770
|
if (params2.relationships.length) {
|
|
43711
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
43771
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
43712
43772
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
43713
43773
|
declaration: this.initialJSON?.declaration,
|
|
43714
43774
|
elements: [
|
|
@@ -43727,24 +43787,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43727
43787
|
};
|
|
43728
43788
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
43729
43789
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
43730
|
-
const relationships = relsData.elements.find((
|
|
43731
|
-
|
|
43732
|
-
const regex = /rId|mi/g;
|
|
43733
|
-
let largestId = Math.max(...relationships.elements.map((el) => Number(el.attributes.Id.replace(regex, ""))));
|
|
43734
|
-
rels.forEach((rel) => {
|
|
43735
|
-
const existingId = rel.attributes.Id;
|
|
43736
|
-
const existingTarget = relationships.elements.find((el) => el.attributes.Target === rel.attributes.Target);
|
|
43737
|
-
const isNewMedia = rel.attributes.Target?.startsWith("media/") && existingId.length > 6;
|
|
43738
|
-
const isNewHyperlink = rel.attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
43739
|
-
const isNewHeadFoot = rel.attributes.Type === HEADER_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
43740
|
-
if (existingTarget && !isNewMedia && !isNewHyperlink && !isNewHeadFoot) {
|
|
43741
|
-
return;
|
|
43742
|
-
}
|
|
43743
|
-
rel.attributes.Target = rel.attributes?.Target?.replace(/&/g, "&");
|
|
43744
|
-
rel.attributes.Id = existingId.length > 6 ? existingId : `rId${++largestId}`;
|
|
43745
|
-
newRels.push(rel);
|
|
43746
|
-
});
|
|
43747
|
-
relationships.elements = [...relationships.elements, ...newRels];
|
|
43790
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
43791
|
+
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
43748
43792
|
};
|
|
43749
43793
|
exportProcessMediaFiles_fn = async function(media2 = {}) {
|
|
43750
43794
|
const processedData = {
|
|
@@ -43939,8 +43983,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43939
43983
|
return n2;
|
|
43940
43984
|
}
|
|
43941
43985
|
function n(e2, t2, r22, n2, i22, s22) {
|
|
43942
|
-
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !==
|
|
43943
|
-
t2 && !r22 || (
|
|
43986
|
+
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p2 = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
43987
|
+
t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
|
|
43944
43988
|
var S2 = 0;
|
|
43945
43989
|
t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
|
|
43946
43990
|
var z2 = 0, C2 = 0;
|
|
@@ -43951,9 +43995,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43951
43995
|
return 63 & (e3 || 0);
|
|
43952
43996
|
})(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);
|
|
43953
43997
|
var E2 = "";
|
|
43954
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(
|
|
43998
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p2.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p2 };
|
|
43955
43999
|
}
|
|
43956
|
-
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"),
|
|
44000
|
+
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
|
|
43957
44001
|
function s2(e2, t2, r22, n2) {
|
|
43958
44002
|
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 = [];
|
|
43959
44003
|
}
|
|
@@ -43971,7 +44015,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43971
44015
|
this.accumulate = false;
|
|
43972
44016
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
43973
44017
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
43974
|
-
return
|
|
44018
|
+
return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
43975
44019
|
})(e2), meta: { percent: 100 } });
|
|
43976
44020
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
43977
44021
|
this.currentFile = null;
|
|
@@ -43979,7 +44023,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
43979
44023
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
43980
44024
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i22) {
|
|
43981
44025
|
var s22 = I2.transformTo("string", i22(n3));
|
|
43982
|
-
return
|
|
44026
|
+
return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
43983
44027
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
43984
44028
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
43985
44029
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -45179,11 +45223,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45179
45223
|
return -1 ^ e2;
|
|
45180
45224
|
};
|
|
45181
45225
|
}, {}], 46: [function(e, t, r2) {
|
|
45182
|
-
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,
|
|
45183
|
-
function
|
|
45226
|
+
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, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
|
|
45227
|
+
function R(e2, t2) {
|
|
45184
45228
|
return e2.msg = n[t2], t2;
|
|
45185
45229
|
}
|
|
45186
|
-
function
|
|
45230
|
+
function T2(e2) {
|
|
45187
45231
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
45188
45232
|
}
|
|
45189
45233
|
function D2(e2) {
|
|
@@ -45227,7 +45271,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45227
45271
|
i22 += f22;
|
|
45228
45272
|
}
|
|
45229
45273
|
if (0 === e2.strm.avail_in) break;
|
|
45230
|
-
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 >=
|
|
45274
|
+
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 >= x2) 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 + x2 - 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 < x2)); ) ;
|
|
45231
45275
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
45232
45276
|
}
|
|
45233
45277
|
function Z(e2, t2) {
|
|
@@ -45236,14 +45280,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45236
45280
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
45237
45281
|
if (0 === e2.lookahead) break;
|
|
45238
45282
|
}
|
|
45239
|
-
if (r22 = 0, e2.lookahead >=
|
|
45240
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
45283
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 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 >= x2) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
|
|
45284
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 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; ) ;
|
|
45241
45285
|
e2.strstart++;
|
|
45242
45286
|
} 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;
|
|
45243
45287
|
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
45244
45288
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
45245
45289
|
}
|
|
45246
|
-
return e2.insert = e2.strstart <
|
|
45290
|
+
return e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
45247
45291
|
}
|
|
45248
45292
|
function W2(e2, t2) {
|
|
45249
45293
|
for (var r22, n2, i22; ; ) {
|
|
@@ -45251,14 +45295,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45251
45295
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
45252
45296
|
if (0 === e2.lookahead) break;
|
|
45253
45297
|
}
|
|
45254
|
-
if (r22 = 0, e2.lookahead >=
|
|
45255
|
-
for (i22 = e2.strstart + e2.lookahead -
|
|
45256
|
-
if (e2.match_available = 0, e2.match_length =
|
|
45298
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 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 = x2 - 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 === x2 && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x2 - 1)), e2.prev_length >= x2 && e2.match_length <= e2.prev_length) {
|
|
45299
|
+
for (i22 = e2.strstart + e2.lookahead - x2, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), 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 + x2 - 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; ) ;
|
|
45300
|
+
if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
45257
45301
|
} else if (e2.match_available) {
|
|
45258
45302
|
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;
|
|
45259
45303
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
45260
45304
|
}
|
|
45261
|
-
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart <
|
|
45305
|
+
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
45262
45306
|
}
|
|
45263
45307
|
function M2(e2, t2, r22, n2, i22) {
|
|
45264
45308
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i22;
|
|
@@ -45268,21 +45312,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45268
45312
|
}
|
|
45269
45313
|
function G2(e2) {
|
|
45270
45314
|
var t2;
|
|
45271
|
-
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) :
|
|
45315
|
+
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) : R(e2, _2);
|
|
45272
45316
|
}
|
|
45273
45317
|
function K2(e2) {
|
|
45274
45318
|
var t2 = G2(e2);
|
|
45275
45319
|
return t2 === m2 && (function(e3) {
|
|
45276
|
-
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 =
|
|
45320
|
+
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 = x2 - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
45277
45321
|
})(e2.state), t2;
|
|
45278
45322
|
}
|
|
45279
45323
|
function Y2(e2, t2, r22, n2, i22, s22) {
|
|
45280
45324
|
if (!e2) return _2;
|
|
45281
45325
|
var a22 = 1;
|
|
45282
|
-
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
|
|
45326
|
+
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 R(e2, _2);
|
|
45283
45327
|
8 === n2 && (n2 = 9);
|
|
45284
45328
|
var o2 = new H();
|
|
45285
|
-
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 +
|
|
45329
|
+
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 + x2 - 1) / x2), 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);
|
|
45286
45330
|
}
|
|
45287
45331
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
45288
45332
|
var r22 = 65535;
|
|
@@ -45296,15 +45340,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45296
45340
|
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;
|
|
45297
45341
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
45298
45342
|
}
|
|
45299
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
45343
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
45300
45344
|
}), 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) {
|
|
45301
45345
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
45302
45346
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
45303
45347
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
45304
45348
|
}, r2.deflate = function(e2, t2) {
|
|
45305
45349
|
var r22, n2, i22, s22;
|
|
45306
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
45307
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
45350
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
|
|
45351
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R(e2, 0 === e2.avail_out ? -5 : _2);
|
|
45308
45352
|
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);
|
|
45309
45353
|
else {
|
|
45310
45354
|
var a22 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -45338,8 +45382,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45338
45382
|
} else n2.status = 103;
|
|
45339
45383
|
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) {
|
|
45340
45384
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
45341
|
-
} else if (0 === e2.avail_in &&
|
|
45342
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
45385
|
+
} else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
|
|
45386
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
|
|
45343
45387
|
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
|
|
45344
45388
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
45345
45389
|
for (var r3; ; ) {
|
|
@@ -45349,39 +45393,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45349
45393
|
}
|
|
45350
45394
|
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;
|
|
45351
45395
|
}
|
|
45352
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
45396
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
45353
45397
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
45354
45398
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
45355
45399
|
if (e3.lookahead <= S2) {
|
|
45356
45400
|
if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
|
|
45357
45401
|
if (0 === e3.lookahead) break;
|
|
45358
45402
|
}
|
|
45359
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
45403
|
+
if (e3.match_length = 0, e3.lookahead >= x2 && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
45360
45404
|
s3 = e3.strstart + S2;
|
|
45361
45405
|
do {
|
|
45362
45406
|
} 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);
|
|
45363
45407
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
45364
45408
|
}
|
|
45365
|
-
if (e3.match_length >=
|
|
45409
|
+
if (e3.match_length >= x2 ? (r3 = u._tr_tally(e3, 1, e3.match_length - x2), 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;
|
|
45366
45410
|
}
|
|
45367
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
45411
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
45368
45412
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
45369
|
-
if (o2 !==
|
|
45413
|
+
if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
45370
45414
|
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;
|
|
45371
45415
|
}
|
|
45372
45416
|
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);
|
|
45373
45417
|
}, r2.deflateEnd = function(e2) {
|
|
45374
45418
|
var t2;
|
|
45375
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
45419
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R(e2, _2) : (e2.state = null, t2 === E2 ? R(e2, -3) : m2) : _2;
|
|
45376
45420
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
45377
45421
|
var r22, n2, i22, s22, a22, o2, h22, u2, l2 = t2.length;
|
|
45378
45422
|
if (!e2 || !e2.state) return _2;
|
|
45379
45423
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
45380
|
-
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 >=
|
|
45381
|
-
for (n2 = r22.strstart, i22 = r22.lookahead - (
|
|
45382
|
-
r22.strstart = n2, r22.lookahead =
|
|
45424
|
+
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 >= x2; ) {
|
|
45425
|
+
for (n2 = r22.strstart, i22 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i22; ) ;
|
|
45426
|
+
r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
|
|
45383
45427
|
}
|
|
45384
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
45428
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a22, r22.wrap = s22, m2;
|
|
45385
45429
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
45386
45430
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
45387
45431
|
t.exports = function() {
|
|
@@ -45389,7 +45433,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45389
45433
|
};
|
|
45390
45434
|
}, {}], 48: [function(e, t, r2) {
|
|
45391
45435
|
t.exports = function(e2, t2) {
|
|
45392
|
-
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
45436
|
+
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
|
|
45393
45437
|
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;
|
|
45394
45438
|
e: do {
|
|
45395
45439
|
p2 < 15 && (d2 += z2[n++] << p2, p2 += 8, d2 += z2[n++] << p2, p2 += 8), v2 = m2[d2 & g];
|
|
@@ -45427,28 +45471,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45427
45471
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
45428
45472
|
break e;
|
|
45429
45473
|
}
|
|
45430
|
-
if (S2 = c2, (
|
|
45431
|
-
if (
|
|
45432
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
45433
|
-
|
|
45474
|
+
if (S2 = c2, (x2 = 0) === f2) {
|
|
45475
|
+
if (x2 += u - y2, y2 < w2) {
|
|
45476
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
45477
|
+
x2 = s2 - k2, S2 = C2;
|
|
45434
45478
|
}
|
|
45435
45479
|
} else if (f2 < y2) {
|
|
45436
|
-
if (
|
|
45437
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
45438
|
-
if (
|
|
45439
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
45440
|
-
|
|
45480
|
+
if (x2 += u + f2 - y2, (y2 -= f2) < w2) {
|
|
45481
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
45482
|
+
if (x2 = 0, f2 < w2) {
|
|
45483
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
45484
|
+
x2 = s2 - k2, S2 = C2;
|
|
45441
45485
|
}
|
|
45442
45486
|
}
|
|
45443
|
-
} else if (
|
|
45444
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
45445
|
-
|
|
45487
|
+
} else if (x2 += f2 - y2, y2 < w2) {
|
|
45488
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
45489
|
+
x2 = s2 - k2, S2 = C2;
|
|
45446
45490
|
}
|
|
45447
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
45448
|
-
w2 && (C2[s2++] = S2[
|
|
45491
|
+
for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
|
|
45492
|
+
w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
|
|
45449
45493
|
} else {
|
|
45450
|
-
for (
|
|
45451
|
-
w2 && (C2[s2++] = C2[
|
|
45494
|
+
for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
|
|
45495
|
+
w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
|
|
45452
45496
|
}
|
|
45453
45497
|
break;
|
|
45454
45498
|
}
|
|
@@ -45459,7 +45503,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45459
45503
|
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;
|
|
45460
45504
|
};
|
|
45461
45505
|
}, {}], 49: [function(e, t, r2) {
|
|
45462
|
-
var I2 = e("../utils/common"),
|
|
45506
|
+
var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i2 = 592;
|
|
45463
45507
|
function L2(e2) {
|
|
45464
45508
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
45465
45509
|
}
|
|
@@ -45490,8 +45534,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45490
45534
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
45491
45535
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
45492
45536
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
45493
|
-
for (
|
|
45494
|
-
|
|
45537
|
+
for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
45538
|
+
T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
45495
45539
|
}
|
|
45496
45540
|
e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
45497
45541
|
}
|
|
@@ -45502,9 +45546,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45502
45546
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a2, r2.inflateInit = function(e2) {
|
|
45503
45547
|
return u(e2, 15);
|
|
45504
45548
|
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
45505
|
-
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
45549
|
+
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x2, 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];
|
|
45506
45550
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
45507
|
-
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,
|
|
45551
|
+
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, x2 = N2;
|
|
45508
45552
|
e: for (; ; ) switch (r22.mode) {
|
|
45509
45553
|
case P2:
|
|
45510
45554
|
if (0 === r22.wrap) {
|
|
@@ -45675,7 +45719,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45675
45719
|
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3;
|
|
45676
45720
|
}
|
|
45677
45721
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
45678
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
45722
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x2 = T2(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
45679
45723
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
45680
45724
|
break;
|
|
45681
45725
|
}
|
|
@@ -45723,11 +45767,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45723
45767
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
45724
45768
|
break;
|
|
45725
45769
|
}
|
|
45726
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
45770
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x2 = T2(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
45727
45771
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
45728
45772
|
break;
|
|
45729
45773
|
}
|
|
45730
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
45774
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x2 = T2(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x2) {
|
|
45731
45775
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
45732
45776
|
break;
|
|
45733
45777
|
}
|
|
@@ -45736,7 +45780,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45736
45780
|
r22.mode = 21;
|
|
45737
45781
|
case 21:
|
|
45738
45782
|
if (6 <= o2 && 258 <= h22) {
|
|
45739
|
-
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2,
|
|
45783
|
+
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, R(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);
|
|
45740
45784
|
break;
|
|
45741
45785
|
}
|
|
45742
45786
|
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
@@ -45824,7 +45868,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45824
45868
|
if (0 === o2) break e;
|
|
45825
45869
|
o2--, u2 |= n2[s22++] << l2, l2 += 8;
|
|
45826
45870
|
}
|
|
45827
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) :
|
|
45871
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) : O(r22.check, i22, c22, a22 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
|
|
45828
45872
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
45829
45873
|
break;
|
|
45830
45874
|
}
|
|
@@ -45845,10 +45889,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45845
45889
|
}
|
|
45846
45890
|
r22.mode = 29;
|
|
45847
45891
|
case 29:
|
|
45848
|
-
|
|
45892
|
+
x2 = 1;
|
|
45849
45893
|
break e;
|
|
45850
45894
|
case 30:
|
|
45851
|
-
|
|
45895
|
+
x2 = -3;
|
|
45852
45896
|
break e;
|
|
45853
45897
|
case 31:
|
|
45854
45898
|
return -4;
|
|
@@ -45856,7 +45900,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45856
45900
|
default:
|
|
45857
45901
|
return U2;
|
|
45858
45902
|
}
|
|
45859
|
-
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) :
|
|
45903
|
+
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) : O(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) && x2 === N2 && (x2 = -5), x2);
|
|
45860
45904
|
}, r2.inflateEnd = function(e2) {
|
|
45861
45905
|
if (!e2 || !e2.state) return U2;
|
|
45862
45906
|
var t2 = e2.state;
|
|
@@ -45866,33 +45910,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45866
45910
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
45867
45911
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
45868
45912
|
var r22, n2 = t2.length;
|
|
45869
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
45913
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
45870
45914
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
45871
45915
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
45872
45916
|
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];
|
|
45873
45917
|
t.exports = function(e2, t2, r22, n, i2, s2, a2, o) {
|
|
45874
|
-
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0,
|
|
45875
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
45876
|
-
for (v2 = 0; v2 < n; v2++)
|
|
45877
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
45918
|
+
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
|
|
45919
|
+
for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
|
|
45920
|
+
for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
|
|
45921
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
|
|
45878
45922
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i2[s2++] = 20971520, i2[s2++] = 20971520, o.bits = 1, 0;
|
|
45879
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
45880
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
45923
|
+
for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
|
|
45924
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
|
|
45881
45925
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
45882
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
45926
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
|
|
45883
45927
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a2[B2[t2[r22 + v2]]++] = v2);
|
|
45884
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
45928
|
+
if (d2 = 0 === e2 ? (A2 = R = a2, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
45885
45929
|
for (; ; ) {
|
|
45886
|
-
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 =
|
|
45930
|
+
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 = R[T2 + a2[v2]], A2[I2 + a2[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x2; i2[c2 + (E2 >> S2) + (u -= h2)] = p2 << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
|
|
45887
45931
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
45888
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
45932
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
|
|
45889
45933
|
if (b2 === w2) break;
|
|
45890
45934
|
b2 = t2[r22 + a2[v2]];
|
|
45891
45935
|
}
|
|
45892
45936
|
if (k2 < b2 && (E2 & f2) !== l) {
|
|
45893
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
45894
|
-
if (C2 += 1 <<
|
|
45895
|
-
i2[l = E2 & f2] = k2 << 24 |
|
|
45937
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
|
|
45938
|
+
if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
45939
|
+
i2[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
|
|
45896
45940
|
}
|
|
45897
45941
|
}
|
|
45898
45942
|
return 0 !== E2 && (i2[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -45904,7 +45948,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45904
45948
|
function n(e2) {
|
|
45905
45949
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
45906
45950
|
}
|
|
45907
|
-
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],
|
|
45951
|
+
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], x2 = [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));
|
|
45908
45952
|
n(z2);
|
|
45909
45953
|
var C2 = new Array(2 * f2);
|
|
45910
45954
|
n(C2);
|
|
@@ -45914,7 +45958,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45914
45958
|
n(A2);
|
|
45915
45959
|
var I2 = new Array(a2);
|
|
45916
45960
|
n(I2);
|
|
45917
|
-
var
|
|
45961
|
+
var O, B2, R, T2 = new Array(f2);
|
|
45918
45962
|
function D2(e2, t2, r22, n2, i22) {
|
|
45919
45963
|
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;
|
|
45920
45964
|
}
|
|
@@ -45965,7 +46009,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45965
46009
|
}
|
|
45966
46010
|
function K2(e2, t2, r22) {
|
|
45967
46011
|
var n2, i22, s22, a22, o2 = 0;
|
|
45968
|
-
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 -=
|
|
46012
|
+
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 -= T2[s22], a22)), o2 < e2.last_lit; ) ;
|
|
45969
46013
|
L2(e2, m2, t2);
|
|
45970
46014
|
}
|
|
45971
46015
|
function Y2(e2, t2) {
|
|
@@ -45999,7 +46043,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45999
46043
|
s22 = i22, u2 = (o2 = 0) === a22 ? (h22 = 138, 3) : i22 === a22 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
46000
46044
|
}
|
|
46001
46045
|
}
|
|
46002
|
-
n(
|
|
46046
|
+
n(T2);
|
|
46003
46047
|
var q2 = false;
|
|
46004
46048
|
function J2(e2, t2, r22, n2) {
|
|
46005
46049
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -46010,16 +46054,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
46010
46054
|
q2 || ((function() {
|
|
46011
46055
|
var e3, t2, r22, n2, i22, s22 = new Array(g + 1);
|
|
46012
46056
|
for (n2 = r22 = 0; n2 < a2 - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
46013
|
-
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (
|
|
46014
|
-
for (i22 >>= 7; n2 < f2; n2++) for (
|
|
46057
|
+
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (T2[n2] = i22, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i22++] = n2;
|
|
46058
|
+
for (i22 >>= 7; n2 < f2; n2++) for (T2[n2] = i22 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i22++] = n2;
|
|
46015
46059
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
46016
46060
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
46017
46061
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
46018
46062
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
46019
46063
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
46020
46064
|
for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
46021
|
-
|
|
46022
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
46065
|
+
O = new D2(z2, w2, u + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p2);
|
|
46066
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
46023
46067
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
46024
46068
|
var i22, s22, a22 = 0;
|
|
46025
46069
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
@@ -47095,17 +47139,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47095
47139
|
elt = elt.shadowRoot.activeElement;
|
|
47096
47140
|
return elt;
|
|
47097
47141
|
}
|
|
47098
|
-
function caretFromPoint(doc2,
|
|
47142
|
+
function caretFromPoint(doc2, x2, y2) {
|
|
47099
47143
|
if (doc2.caretPositionFromPoint) {
|
|
47100
47144
|
try {
|
|
47101
|
-
let pos = doc2.caretPositionFromPoint(
|
|
47145
|
+
let pos = doc2.caretPositionFromPoint(x2, y2);
|
|
47102
47146
|
if (pos)
|
|
47103
47147
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
47104
47148
|
} catch (_2) {
|
|
47105
47149
|
}
|
|
47106
47150
|
}
|
|
47107
47151
|
if (doc2.caretRangeFromPoint) {
|
|
47108
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
47152
|
+
let range2 = doc2.caretRangeFromPoint(x2, y2);
|
|
47109
47153
|
if (range2)
|
|
47110
47154
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
47111
47155
|
}
|
|
@@ -47204,8 +47248,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47204
47248
|
function storeScrollPos(view) {
|
|
47205
47249
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
47206
47250
|
let refDOM, refTop;
|
|
47207
|
-
for (let
|
|
47208
|
-
let dom = view.root.elementFromPoint(
|
|
47251
|
+
for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
47252
|
+
let dom = view.root.elementFromPoint(x2, y2);
|
|
47209
47253
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
47210
47254
|
continue;
|
|
47211
47255
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -47501,8 +47545,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47501
47545
|
function flattenV(rect, left2) {
|
|
47502
47546
|
if (rect.width == 0)
|
|
47503
47547
|
return rect;
|
|
47504
|
-
let
|
|
47505
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
47548
|
+
let x2 = left2 ? rect.left : rect.right;
|
|
47549
|
+
return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
|
|
47506
47550
|
}
|
|
47507
47551
|
function flattenH(rect, top2) {
|
|
47508
47552
|
if (rect.height == 0)
|
|
@@ -52509,10 +52553,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
52509
52553
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
52510
52554
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
52511
52555
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
52512
|
-
const sum0to256 = (
|
|
52513
|
-
const sum1to256 = (
|
|
52514
|
-
const sigma0to256 = (
|
|
52515
|
-
const sigma1to256 = (
|
|
52556
|
+
const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
|
|
52557
|
+
const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
|
|
52558
|
+
const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
|
|
52559
|
+
const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
|
|
52516
52560
|
const K = new Uint32Array([
|
|
52517
52561
|
1116352408,
|
|
52518
52562
|
1899447441,
|
|
@@ -58064,6 +58108,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58064
58108
|
const updateYdocDocxData = async (editor, ydoc) => {
|
|
58065
58109
|
ydoc = ydoc || editor.options.ydoc;
|
|
58066
58110
|
if (!ydoc) return;
|
|
58111
|
+
if (!editor || editor.isDestroyed) return;
|
|
58067
58112
|
const metaMap = ydoc.getMap("meta");
|
|
58068
58113
|
const docxValue = metaMap.get("docx");
|
|
58069
58114
|
let docx = [];
|
|
@@ -59555,6 +59600,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59555
59600
|
});
|
|
59556
59601
|
});
|
|
59557
59602
|
return [syncPlugin];
|
|
59603
|
+
},
|
|
59604
|
+
addCommands() {
|
|
59605
|
+
return {
|
|
59606
|
+
addImageToCollaboration: ({ mediaPath, fileData }) => () => {
|
|
59607
|
+
if (!this.options.ydoc || !mediaPath || !fileData) return false;
|
|
59608
|
+
const mediaMap = this.options.ydoc.getMap("media");
|
|
59609
|
+
mediaMap.set(mediaPath, fileData);
|
|
59610
|
+
return true;
|
|
59611
|
+
}
|
|
59612
|
+
};
|
|
59558
59613
|
}
|
|
59559
59614
|
});
|
|
59560
59615
|
const createSyncPlugin = (ydoc, editor) => {
|
|
@@ -61407,7 +61462,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61407
61462
|
{ default: remarkStringify2 },
|
|
61408
61463
|
{ default: remarkGfm2 }
|
|
61409
61464
|
] = await Promise.all([
|
|
61410
|
-
Promise.resolve().then(() =>
|
|
61465
|
+
Promise.resolve().then(() => indexCEL3ujoV),
|
|
61411
61466
|
Promise.resolve().then(() => indexDRCvimau),
|
|
61412
61467
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
61413
61468
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -61625,7 +61680,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61625
61680
|
* @returns {Object | void} Migration results
|
|
61626
61681
|
*/
|
|
61627
61682
|
processCollaborationMigrations() {
|
|
61628
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.28.
|
|
61683
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.28.4");
|
|
61629
61684
|
if (!this.options.ydoc) return;
|
|
61630
61685
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
61631
61686
|
let docVersion = metaMap.get("version");
|
|
@@ -63494,16 +63549,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
63494
63549
|
const { state: state2, dom } = view;
|
|
63495
63550
|
const { selection } = state2;
|
|
63496
63551
|
const containerRect = dom.getBoundingClientRect();
|
|
63497
|
-
let
|
|
63552
|
+
let x2, y2;
|
|
63498
63553
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
63499
|
-
|
|
63554
|
+
x2 = eventLocation.clientX - containerRect.left;
|
|
63500
63555
|
y2 = eventLocation.clientY - containerRect.top;
|
|
63501
63556
|
} else {
|
|
63502
63557
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
63503
|
-
|
|
63558
|
+
x2 = cursorCoords.left - containerRect.left;
|
|
63504
63559
|
y2 = cursorCoords.top - containerRect.top;
|
|
63505
63560
|
}
|
|
63506
|
-
return { left:
|
|
63561
|
+
return { left: x2, top: y2 };
|
|
63507
63562
|
}
|
|
63508
63563
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
63509
63564
|
const SlashMenu = Extension.create({
|
|
@@ -63782,17 +63837,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
63782
63837
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
63783
63838
|
return;
|
|
63784
63839
|
}
|
|
63785
|
-
let
|
|
63840
|
+
let x2 = 0;
|
|
63786
63841
|
let y2 = 0;
|
|
63787
63842
|
if (this.dom !== dragHandle) {
|
|
63788
63843
|
const domBox = this.dom.getBoundingClientRect();
|
|
63789
63844
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
63790
63845
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
63791
63846
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
63792
|
-
|
|
63847
|
+
x2 = handleBox.x - domBox.x + offsetX;
|
|
63793
63848
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
63794
63849
|
}
|
|
63795
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
63850
|
+
event.dataTransfer?.setDragImage(this.dom, x2, y2);
|
|
63796
63851
|
const pos = this.getPos();
|
|
63797
63852
|
if (typeof pos !== "number") {
|
|
63798
63853
|
return;
|
|
@@ -71878,17 +71933,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
71878
71933
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
71879
71934
|
if (reducedHexMatch) {
|
|
71880
71935
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
71881
|
-
return [...arr.slice(0, 3).map((
|
|
71936
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
71882
71937
|
}
|
|
71883
71938
|
const hexMatch = hexRegex$2.exec(normalizedColor);
|
|
71884
71939
|
if (hexMatch) {
|
|
71885
71940
|
const arr = Array.from(hexMatch).slice(1);
|
|
71886
|
-
return [...arr.slice(0, 3).map((
|
|
71941
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
71887
71942
|
}
|
|
71888
71943
|
const rgbaMatch = rgbaRegex$2.exec(normalizedColor);
|
|
71889
71944
|
if (rgbaMatch) {
|
|
71890
71945
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
71891
|
-
return [...arr.slice(0, 3).map((
|
|
71946
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
|
|
71892
71947
|
}
|
|
71893
71948
|
const hslaMatch = hslaRegex$2.exec(normalizedColor);
|
|
71894
71949
|
if (hslaMatch) {
|
|
@@ -71907,7 +71962,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
71907
71962
|
}
|
|
71908
71963
|
return (hash2 >>> 0) % 2341;
|
|
71909
71964
|
}
|
|
71910
|
-
const colorToInt = (
|
|
71965
|
+
const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
|
|
71911
71966
|
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) => {
|
|
71912
71967
|
const key2 = colorToInt(next2.substring(0, 3));
|
|
71913
71968
|
const hex2 = colorToInt(next2.substring(3)).toString(16);
|
|
@@ -71971,8 +72026,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
71971
72026
|
};
|
|
71972
72027
|
function toHex(color2) {
|
|
71973
72028
|
const [r2, g, b2, a2] = parseToRgba(color2);
|
|
71974
|
-
let hex2 = (
|
|
71975
|
-
const h2 = guard(0, 255,
|
|
72029
|
+
let hex2 = (x2) => {
|
|
72030
|
+
const h2 = guard(0, 255, x2).toString(16);
|
|
71976
72031
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
71977
72032
|
};
|
|
71978
72033
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a2 < 1 ? hex2(Math.round(a2 * 255)) : ""}`;
|
|
@@ -74076,10 +74131,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74076
74131
|
let minX = 0;
|
|
74077
74132
|
let minY = 0;
|
|
74078
74133
|
let maxY = 0;
|
|
74079
|
-
attrs.polygon.forEach(([
|
|
74080
|
-
if (floatRight &&
|
|
74081
|
-
if (
|
|
74082
|
-
if (
|
|
74134
|
+
attrs.polygon.forEach(([x2, y2]) => {
|
|
74135
|
+
if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
|
|
74136
|
+
if (x2 > maxX) maxX = x2;
|
|
74137
|
+
if (x2 < minX) minX = x2;
|
|
74083
74138
|
if (y2 > maxY) maxY = y2;
|
|
74084
74139
|
if (y2 < minY) minY = y2;
|
|
74085
74140
|
});
|
|
@@ -74088,7 +74143,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74088
74143
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
74089
74144
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
74090
74145
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
74091
|
-
const points = attrs.polygon.map(([
|
|
74146
|
+
const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
74092
74147
|
style2 += `shape-outside: polygon(${points});`;
|
|
74093
74148
|
}
|
|
74094
74149
|
break;
|
|
@@ -79222,7 +79277,7 @@ ${l}
|
|
|
79222
79277
|
}
|
|
79223
79278
|
var _ref = isElement$2$1(element2) ? getWindow$1(element2) : window, visualViewport = _ref.visualViewport;
|
|
79224
79279
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
79225
|
-
var
|
|
79280
|
+
var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
79226
79281
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
79227
79282
|
var width = clientRect2.width / scaleX;
|
|
79228
79283
|
var height = clientRect2.height / scaleY;
|
|
@@ -79230,10 +79285,10 @@ ${l}
|
|
|
79230
79285
|
width,
|
|
79231
79286
|
height,
|
|
79232
79287
|
top: y2,
|
|
79233
|
-
right:
|
|
79288
|
+
right: x2 + width,
|
|
79234
79289
|
bottom: y2 + height,
|
|
79235
|
-
left:
|
|
79236
|
-
x,
|
|
79290
|
+
left: x2,
|
|
79291
|
+
x: x2,
|
|
79237
79292
|
y: y2
|
|
79238
79293
|
};
|
|
79239
79294
|
}
|
|
@@ -79434,25 +79489,25 @@ ${l}
|
|
|
79434
79489
|
left: "auto"
|
|
79435
79490
|
};
|
|
79436
79491
|
function roundOffsetsByDPR(_ref, win) {
|
|
79437
|
-
var
|
|
79492
|
+
var x2 = _ref.x, y2 = _ref.y;
|
|
79438
79493
|
var dpr = win.devicePixelRatio || 1;
|
|
79439
79494
|
return {
|
|
79440
|
-
x: round$1(
|
|
79495
|
+
x: round$1(x2 * dpr) / dpr || 0,
|
|
79441
79496
|
y: round$1(y2 * dpr) / dpr || 0
|
|
79442
79497
|
};
|
|
79443
79498
|
}
|
|
79444
79499
|
function mapToStyles(_ref2) {
|
|
79445
79500
|
var _Object$assign2;
|
|
79446
79501
|
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;
|
|
79447
|
-
var _offsets$x = offsets.x,
|
|
79502
|
+
var _offsets$x = offsets.x, x2 = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
79448
79503
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
79449
|
-
x,
|
|
79504
|
+
x: x2,
|
|
79450
79505
|
y: y2
|
|
79451
79506
|
}) : {
|
|
79452
|
-
x,
|
|
79507
|
+
x: x2,
|
|
79453
79508
|
y: y2
|
|
79454
79509
|
};
|
|
79455
|
-
|
|
79510
|
+
x2 = _ref3.x;
|
|
79456
79511
|
y2 = _ref3.y;
|
|
79457
79512
|
var hasX = offsets.hasOwnProperty("x");
|
|
79458
79513
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -79486,27 +79541,27 @@ ${l}
|
|
|
79486
79541
|
// $FlowFixMe[prop-missing]
|
|
79487
79542
|
offsetParent[widthProp]
|
|
79488
79543
|
);
|
|
79489
|
-
|
|
79490
|
-
|
|
79544
|
+
x2 -= offsetX - popperRect.width;
|
|
79545
|
+
x2 *= gpuAcceleration ? 1 : -1;
|
|
79491
79546
|
}
|
|
79492
79547
|
}
|
|
79493
79548
|
var commonStyles = Object.assign({
|
|
79494
79549
|
position: position2
|
|
79495
79550
|
}, adaptive && unsetSides);
|
|
79496
79551
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
79497
|
-
x,
|
|
79552
|
+
x: x2,
|
|
79498
79553
|
y: y2
|
|
79499
79554
|
}, getWindow$1(popper2)) : {
|
|
79500
|
-
x,
|
|
79555
|
+
x: x2,
|
|
79501
79556
|
y: y2
|
|
79502
79557
|
};
|
|
79503
|
-
|
|
79558
|
+
x2 = _ref4.x;
|
|
79504
79559
|
y2 = _ref4.y;
|
|
79505
79560
|
if (gpuAcceleration) {
|
|
79506
79561
|
var _Object$assign;
|
|
79507
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
79562
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
|
|
79508
79563
|
}
|
|
79509
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
79564
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
79510
79565
|
}
|
|
79511
79566
|
function computeStyles(_ref5) {
|
|
79512
79567
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -79620,21 +79675,21 @@ ${l}
|
|
|
79620
79675
|
var visualViewport = win.visualViewport;
|
|
79621
79676
|
var width = html2.clientWidth;
|
|
79622
79677
|
var height = html2.clientHeight;
|
|
79623
|
-
var
|
|
79678
|
+
var x2 = 0;
|
|
79624
79679
|
var y2 = 0;
|
|
79625
79680
|
if (visualViewport) {
|
|
79626
79681
|
width = visualViewport.width;
|
|
79627
79682
|
height = visualViewport.height;
|
|
79628
79683
|
var layoutViewport = isLayoutViewport();
|
|
79629
79684
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
79630
|
-
|
|
79685
|
+
x2 = visualViewport.offsetLeft;
|
|
79631
79686
|
y2 = visualViewport.offsetTop;
|
|
79632
79687
|
}
|
|
79633
79688
|
}
|
|
79634
79689
|
return {
|
|
79635
79690
|
width,
|
|
79636
79691
|
height,
|
|
79637
|
-
x:
|
|
79692
|
+
x: x2 + getWindowScrollBarX$1(element2),
|
|
79638
79693
|
y: y2
|
|
79639
79694
|
};
|
|
79640
79695
|
}
|
|
@@ -79645,15 +79700,15 @@ ${l}
|
|
|
79645
79700
|
var body = (_element$ownerDocumen = element2.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
79646
79701
|
var width = max$1(html2.scrollWidth, html2.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
79647
79702
|
var height = max$1(html2.scrollHeight, html2.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
79648
|
-
var
|
|
79703
|
+
var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element2);
|
|
79649
79704
|
var y2 = -winScroll.scrollTop;
|
|
79650
79705
|
if (getComputedStyle$2(body || html2).direction === "rtl") {
|
|
79651
|
-
|
|
79706
|
+
x2 += max$1(html2.clientWidth, body ? body.clientWidth : 0) - width;
|
|
79652
79707
|
}
|
|
79653
79708
|
return {
|
|
79654
79709
|
width,
|
|
79655
79710
|
height,
|
|
79656
|
-
x,
|
|
79711
|
+
x: x2,
|
|
79657
79712
|
y: y2
|
|
79658
79713
|
};
|
|
79659
79714
|
}
|
|
@@ -80030,9 +80085,9 @@ ${l}
|
|
|
80030
80085
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
80031
80086
|
return acc;
|
|
80032
80087
|
}, {});
|
|
80033
|
-
var _data$state$placement = data[state2.placement],
|
|
80088
|
+
var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
80034
80089
|
if (state2.modifiersData.popperOffsets != null) {
|
|
80035
|
-
state2.modifiersData.popperOffsets.x +=
|
|
80090
|
+
state2.modifiersData.popperOffsets.x += x2;
|
|
80036
80091
|
state2.modifiersData.popperOffsets.y += y2;
|
|
80037
80092
|
}
|
|
80038
80093
|
state2.modifiersData[name] = data;
|
|
@@ -81982,7 +82037,7 @@ ${l}
|
|
|
81982
82037
|
}
|
|
81983
82038
|
function rectToClientRect(rect) {
|
|
81984
82039
|
const {
|
|
81985
|
-
x,
|
|
82040
|
+
x: x2,
|
|
81986
82041
|
y: y2,
|
|
81987
82042
|
width,
|
|
81988
82043
|
height
|
|
@@ -81991,10 +82046,10 @@ ${l}
|
|
|
81991
82046
|
width,
|
|
81992
82047
|
height,
|
|
81993
82048
|
top: y2,
|
|
81994
|
-
left:
|
|
81995
|
-
right:
|
|
82049
|
+
left: x2,
|
|
82050
|
+
right: x2 + width,
|
|
81996
82051
|
bottom: y2 + height,
|
|
81997
|
-
x,
|
|
82052
|
+
x: x2,
|
|
81998
82053
|
y: y2
|
|
81999
82054
|
};
|
|
82000
82055
|
}
|
|
@@ -82068,7 +82123,7 @@ ${l}
|
|
|
82068
82123
|
strategy
|
|
82069
82124
|
});
|
|
82070
82125
|
let {
|
|
82071
|
-
x,
|
|
82126
|
+
x: x2,
|
|
82072
82127
|
y: y2
|
|
82073
82128
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
82074
82129
|
let statefulPlacement = placement;
|
|
@@ -82085,7 +82140,7 @@ ${l}
|
|
|
82085
82140
|
data,
|
|
82086
82141
|
reset
|
|
82087
82142
|
} = await fn2({
|
|
82088
|
-
x,
|
|
82143
|
+
x: x2,
|
|
82089
82144
|
y: y2,
|
|
82090
82145
|
initialPlacement: placement,
|
|
82091
82146
|
placement: statefulPlacement,
|
|
@@ -82098,7 +82153,7 @@ ${l}
|
|
|
82098
82153
|
floating
|
|
82099
82154
|
}
|
|
82100
82155
|
});
|
|
82101
|
-
|
|
82156
|
+
x2 = nextX != null ? nextX : x2;
|
|
82102
82157
|
y2 = nextY != null ? nextY : y2;
|
|
82103
82158
|
middlewareData = {
|
|
82104
82159
|
...middlewareData,
|
|
@@ -82121,7 +82176,7 @@ ${l}
|
|
|
82121
82176
|
}) : reset.rects;
|
|
82122
82177
|
}
|
|
82123
82178
|
({
|
|
82124
|
-
x,
|
|
82179
|
+
x: x2,
|
|
82125
82180
|
y: y2
|
|
82126
82181
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
82127
82182
|
}
|
|
@@ -82129,7 +82184,7 @@ ${l}
|
|
|
82129
82184
|
}
|
|
82130
82185
|
}
|
|
82131
82186
|
return {
|
|
82132
|
-
x,
|
|
82187
|
+
x: x2,
|
|
82133
82188
|
y: y2,
|
|
82134
82189
|
placement: statefulPlacement,
|
|
82135
82190
|
strategy,
|
|
@@ -82142,7 +82197,7 @@ ${l}
|
|
|
82142
82197
|
options = {};
|
|
82143
82198
|
}
|
|
82144
82199
|
const {
|
|
82145
|
-
x,
|
|
82200
|
+
x: x2,
|
|
82146
82201
|
y: y2,
|
|
82147
82202
|
platform: platform2,
|
|
82148
82203
|
rects,
|
|
@@ -82166,7 +82221,7 @@ ${l}
|
|
|
82166
82221
|
strategy
|
|
82167
82222
|
}));
|
|
82168
82223
|
const rect = elementContext === "floating" ? {
|
|
82169
|
-
x,
|
|
82224
|
+
x: x2,
|
|
82170
82225
|
y: y2,
|
|
82171
82226
|
width: rects.floating.width,
|
|
82172
82227
|
height: rects.floating.height
|
|
@@ -82435,16 +82490,16 @@ ${l}
|
|
|
82435
82490
|
height,
|
|
82436
82491
|
$: $2
|
|
82437
82492
|
} = getCssDimensions(domElement);
|
|
82438
|
-
let
|
|
82493
|
+
let x2 = ($2 ? round(rect.width) : rect.width) / width;
|
|
82439
82494
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
82440
|
-
if (!
|
|
82441
|
-
|
|
82495
|
+
if (!x2 || !Number.isFinite(x2)) {
|
|
82496
|
+
x2 = 1;
|
|
82442
82497
|
}
|
|
82443
82498
|
if (!y2 || !Number.isFinite(y2)) {
|
|
82444
82499
|
y2 = 1;
|
|
82445
82500
|
}
|
|
82446
82501
|
return {
|
|
82447
|
-
x,
|
|
82502
|
+
x: x2,
|
|
82448
82503
|
y: y2
|
|
82449
82504
|
};
|
|
82450
82505
|
}
|
|
@@ -82488,7 +82543,7 @@ ${l}
|
|
|
82488
82543
|
}
|
|
82489
82544
|
}
|
|
82490
82545
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
82491
|
-
let
|
|
82546
|
+
let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
82492
82547
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
82493
82548
|
let width = clientRect2.width / scale.x;
|
|
82494
82549
|
let height = clientRect2.height / scale.y;
|
|
@@ -82503,11 +82558,11 @@ ${l}
|
|
|
82503
82558
|
const css = getComputedStyle$1(currentIFrame);
|
|
82504
82559
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
82505
82560
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
82506
|
-
|
|
82561
|
+
x2 *= iframeScale.x;
|
|
82507
82562
|
y2 *= iframeScale.y;
|
|
82508
82563
|
width *= iframeScale.x;
|
|
82509
82564
|
height *= iframeScale.y;
|
|
82510
|
-
|
|
82565
|
+
x2 += left2;
|
|
82511
82566
|
y2 += top2;
|
|
82512
82567
|
currentWin = getWindow(currentIFrame);
|
|
82513
82568
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -82516,7 +82571,7 @@ ${l}
|
|
|
82516
82571
|
return rectToClientRect({
|
|
82517
82572
|
width,
|
|
82518
82573
|
height,
|
|
82519
|
-
x,
|
|
82574
|
+
x: x2,
|
|
82520
82575
|
y: y2
|
|
82521
82576
|
});
|
|
82522
82577
|
}
|
|
@@ -82529,10 +82584,10 @@ ${l}
|
|
|
82529
82584
|
}
|
|
82530
82585
|
function getHTMLOffset(documentElement, scroll) {
|
|
82531
82586
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
82532
|
-
const
|
|
82587
|
+
const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
82533
82588
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
82534
82589
|
return {
|
|
82535
|
-
x,
|
|
82590
|
+
x: x2,
|
|
82536
82591
|
y: y2
|
|
82537
82592
|
};
|
|
82538
82593
|
}
|
|
@@ -82584,15 +82639,15 @@ ${l}
|
|
|
82584
82639
|
const body = element2.ownerDocument.body;
|
|
82585
82640
|
const width = max$3(html2.scrollWidth, html2.clientWidth, body.scrollWidth, body.clientWidth);
|
|
82586
82641
|
const height = max$3(html2.scrollHeight, html2.clientHeight, body.scrollHeight, body.clientHeight);
|
|
82587
|
-
let
|
|
82642
|
+
let x2 = -scroll.scrollLeft + getWindowScrollBarX(element2);
|
|
82588
82643
|
const y2 = -scroll.scrollTop;
|
|
82589
82644
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
82590
|
-
|
|
82645
|
+
x2 += max$3(html2.clientWidth, body.clientWidth) - width;
|
|
82591
82646
|
}
|
|
82592
82647
|
return {
|
|
82593
82648
|
width,
|
|
82594
82649
|
height,
|
|
82595
|
-
x,
|
|
82650
|
+
x: x2,
|
|
82596
82651
|
y: y2
|
|
82597
82652
|
};
|
|
82598
82653
|
}
|
|
@@ -82603,14 +82658,14 @@ ${l}
|
|
|
82603
82658
|
const visualViewport = win.visualViewport;
|
|
82604
82659
|
let width = html2.clientWidth;
|
|
82605
82660
|
let height = html2.clientHeight;
|
|
82606
|
-
let
|
|
82661
|
+
let x2 = 0;
|
|
82607
82662
|
let y2 = 0;
|
|
82608
82663
|
if (visualViewport) {
|
|
82609
82664
|
width = visualViewport.width;
|
|
82610
82665
|
height = visualViewport.height;
|
|
82611
82666
|
const visualViewportBased = isWebKit();
|
|
82612
82667
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
82613
|
-
|
|
82668
|
+
x2 = visualViewport.offsetLeft;
|
|
82614
82669
|
y2 = visualViewport.offsetTop;
|
|
82615
82670
|
}
|
|
82616
82671
|
}
|
|
@@ -82630,7 +82685,7 @@ ${l}
|
|
|
82630
82685
|
return {
|
|
82631
82686
|
width,
|
|
82632
82687
|
height,
|
|
82633
|
-
x,
|
|
82688
|
+
x: x2,
|
|
82634
82689
|
y: y2
|
|
82635
82690
|
};
|
|
82636
82691
|
}
|
|
@@ -82642,12 +82697,12 @@ ${l}
|
|
|
82642
82697
|
const scale = isHTMLElement$2(element2) ? getScale(element2) : createCoords(1);
|
|
82643
82698
|
const width = element2.clientWidth * scale.x;
|
|
82644
82699
|
const height = element2.clientHeight * scale.y;
|
|
82645
|
-
const
|
|
82700
|
+
const x2 = left2 * scale.x;
|
|
82646
82701
|
const y2 = top2 * scale.y;
|
|
82647
82702
|
return {
|
|
82648
82703
|
width,
|
|
82649
82704
|
height,
|
|
82650
|
-
x,
|
|
82705
|
+
x: x2,
|
|
82651
82706
|
y: y2
|
|
82652
82707
|
};
|
|
82653
82708
|
}
|
|
@@ -82767,10 +82822,10 @@ ${l}
|
|
|
82767
82822
|
setLeftRTLScrollbarOffset();
|
|
82768
82823
|
}
|
|
82769
82824
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
82770
|
-
const
|
|
82825
|
+
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
82771
82826
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
82772
82827
|
return {
|
|
82773
|
-
x,
|
|
82828
|
+
x: x2,
|
|
82774
82829
|
y: y2,
|
|
82775
82830
|
width: rect.width,
|
|
82776
82831
|
height: rect.height
|
|
@@ -83632,22 +83687,22 @@ ${l}
|
|
|
83632
83687
|
const rect = elements.reference.getBoundingClientRect();
|
|
83633
83688
|
const containerRect = editorElement.getBoundingClientRect();
|
|
83634
83689
|
const scaleFactor = getScaleFactor(editorElement);
|
|
83635
|
-
const
|
|
83690
|
+
const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
83636
83691
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
83637
83692
|
const width = Math.round(rect.width / scaleFactor);
|
|
83638
83693
|
const height = Math.round(rect.height / scaleFactor);
|
|
83639
83694
|
return {
|
|
83640
|
-
x,
|
|
83695
|
+
x: x2,
|
|
83641
83696
|
y: y2,
|
|
83642
83697
|
data: { width, height }
|
|
83643
83698
|
};
|
|
83644
83699
|
}
|
|
83645
83700
|
}
|
|
83646
83701
|
]
|
|
83647
|
-
}).then(({ x, y: y2, middlewareData }) => {
|
|
83702
|
+
}).then(({ x: x2, y: y2, middlewareData }) => {
|
|
83648
83703
|
Object.assign(floatingSeparator.style, {
|
|
83649
83704
|
top: `${y2}px`,
|
|
83650
|
-
left: `${
|
|
83705
|
+
left: `${x2}px`,
|
|
83651
83706
|
width: `${middlewareData.copy.width}px`,
|
|
83652
83707
|
height: `${middlewareData.copy.height}px`,
|
|
83653
83708
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -86640,14 +86695,14 @@ ${unwrappedProps}
|
|
|
86640
86695
|
}
|
|
86641
86696
|
return viewMeasurer$1.getBoundingClientRect();
|
|
86642
86697
|
}
|
|
86643
|
-
function getPointRect$1(
|
|
86698
|
+
function getPointRect$1(x2, y2) {
|
|
86644
86699
|
const viewRect = ensureViewBoundingRect$1();
|
|
86645
86700
|
return {
|
|
86646
86701
|
top: y2,
|
|
86647
|
-
left:
|
|
86702
|
+
left: x2,
|
|
86648
86703
|
height: 0,
|
|
86649
86704
|
width: 0,
|
|
86650
|
-
right: viewRect.width -
|
|
86705
|
+
right: viewRect.width - x2,
|
|
86651
86706
|
bottom: viewRect.height - y2
|
|
86652
86707
|
};
|
|
86653
86708
|
}
|
|
@@ -87485,8 +87540,8 @@ ${style2}
|
|
|
87485
87540
|
if (follower === null)
|
|
87486
87541
|
return;
|
|
87487
87542
|
const target = VBinder.targetRef;
|
|
87488
|
-
const { x, y: y2, overlap } = props;
|
|
87489
|
-
const targetRect =
|
|
87543
|
+
const { x: x2, y: y2, overlap } = props;
|
|
87544
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect$1(x2, y2) : getRect$1(target);
|
|
87490
87545
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
87491
87546
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
87492
87547
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -87656,8 +87711,8 @@ ${style2}
|
|
|
87656
87711
|
return ResizeObserverSize2;
|
|
87657
87712
|
})();
|
|
87658
87713
|
var DOMRectReadOnly$1 = (function() {
|
|
87659
|
-
function DOMRectReadOnly2(
|
|
87660
|
-
this.x =
|
|
87714
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
87715
|
+
this.x = x2;
|
|
87661
87716
|
this.y = y2;
|
|
87662
87717
|
this.width = width;
|
|
87663
87718
|
this.height = height;
|
|
@@ -87668,8 +87723,8 @@ ${style2}
|
|
|
87668
87723
|
return freeze$1(this);
|
|
87669
87724
|
}
|
|
87670
87725
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
87671
|
-
var _a2 = this,
|
|
87672
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
87726
|
+
var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
87727
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
87673
87728
|
};
|
|
87674
87729
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
87675
87730
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -100687,8 +100742,8 @@ ${style2}
|
|
|
100687
100742
|
}
|
|
100688
100743
|
}
|
|
100689
100744
|
const BlankDOCX = "data:application/octet-stream;base64,UEsDBBQAAAAIAAAAIQAykW9XXgEAAKUFAAATABwAW0NvbnRlbnRfVHlwZXNdLnhtbFVUCQADMNDOEjDQzhJ1eAsAAQT1AQAABBQAAAC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AAIAAAAIQDbhWzDfQQAAJcdAAASABgAAAAAAAEAAACkge0QAAB3b3JkL251bWJlcmluZy54bWxVVAUAAzDQzhJ1eAsAAQT1AQAABBQAAABQSwECHgMUAAAACAAAACEAvn52YlYBAADQAwAAFAAYAAAAAAABAAAApIG2FQAAd29yZC93ZWJTZXR0aW5ncy54bWxVVAUAAzDQzhJ1eAsAAQT1AQAABBQAAABQSwECHgMUAAAACAAAACEAP6/hZl8PAAANpgAADwAYAAAAAAABAAAApIFaFwAAd29yZC9zdHlsZXMueG1sVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAk2RNWwAAAAAAAAAAAAAAAAsAGAAAAAAAAAAQAO1BAicAAHdvcmQvdGhlbWUvVVQFAAOGHO1odXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAAAAhAGeA/LSbBgAAzSAAABUAGAAAAAAAAQAAAKSBRycAAHdvcmQvdGhlbWUvdGhlbWUxLnhtbFVUBQADMNDOEnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJNkTVsAAAAAAAAAAAAAAAALABgAAAAAAAAAEADtQTEuAAB3b3JkL19yZWxzL1VUBQADhhztaHV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAAAIQCzvosd/gAAALYDAAAcABgAAAAAAAEAAACkgXYuAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsFBgAAAAARABEAqQUAAMovAAAAAA==";
|
|
100690
|
-
function getDefaultExportFromCjs(
|
|
100691
|
-
return
|
|
100745
|
+
function getDefaultExportFromCjs(x2) {
|
|
100746
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
100692
100747
|
}
|
|
100693
100748
|
var eventemitter3 = { exports: {} };
|
|
100694
100749
|
var hasRequiredEventemitter3;
|
|
@@ -105385,14 +105440,14 @@ ${unwrappedProps}
|
|
|
105385
105440
|
}
|
|
105386
105441
|
return viewMeasurer.getBoundingClientRect();
|
|
105387
105442
|
}
|
|
105388
|
-
function getPointRect(
|
|
105443
|
+
function getPointRect(x2, y2) {
|
|
105389
105444
|
const viewRect = ensureViewBoundingRect();
|
|
105390
105445
|
return {
|
|
105391
105446
|
top: y2,
|
|
105392
|
-
left:
|
|
105447
|
+
left: x2,
|
|
105393
105448
|
height: 0,
|
|
105394
105449
|
width: 0,
|
|
105395
|
-
right: viewRect.width -
|
|
105450
|
+
right: viewRect.width - x2,
|
|
105396
105451
|
bottom: viewRect.height - y2
|
|
105397
105452
|
};
|
|
105398
105453
|
}
|
|
@@ -106230,8 +106285,8 @@ ${style2}
|
|
|
106230
106285
|
if (follower === null)
|
|
106231
106286
|
return;
|
|
106232
106287
|
const target = VBinder.targetRef;
|
|
106233
|
-
const { x, y: y2, overlap } = props;
|
|
106234
|
-
const targetRect =
|
|
106288
|
+
const { x: x2, y: y2, overlap } = props;
|
|
106289
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
|
|
106235
106290
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
106236
106291
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
106237
106292
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -106401,8 +106456,8 @@ ${style2}
|
|
|
106401
106456
|
return ResizeObserverSize2;
|
|
106402
106457
|
})();
|
|
106403
106458
|
var DOMRectReadOnly = (function() {
|
|
106404
|
-
function DOMRectReadOnly2(
|
|
106405
|
-
this.x =
|
|
106459
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
106460
|
+
this.x = x2;
|
|
106406
106461
|
this.y = y2;
|
|
106407
106462
|
this.width = width;
|
|
106408
106463
|
this.height = height;
|
|
@@ -106413,8 +106468,8 @@ ${style2}
|
|
|
106413
106468
|
return freeze(this);
|
|
106414
106469
|
}
|
|
106415
106470
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
106416
|
-
var _a2 = this,
|
|
106417
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
106471
|
+
var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
106472
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
106418
106473
|
};
|
|
106419
106474
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
106420
106475
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -117118,9 +117173,9 @@ ${style2}
|
|
|
117118
117173
|
const resetSelection = () => {
|
|
117119
117174
|
selectionPosition.value = null;
|
|
117120
117175
|
};
|
|
117121
|
-
const updateSelection2 = ({ startX, startY, x, y: y2, source }) => {
|
|
117176
|
+
const updateSelection2 = ({ startX, startY, x: x2, y: y2, source }) => {
|
|
117122
117177
|
const hasStartCoords = startX || startY;
|
|
117123
|
-
const hasEndCoords =
|
|
117178
|
+
const hasEndCoords = x2 || y2;
|
|
117124
117179
|
if (!hasStartCoords && !hasEndCoords) {
|
|
117125
117180
|
return selectionPosition.value = null;
|
|
117126
117181
|
}
|
|
@@ -117145,10 +117200,10 @@ ${style2}
|
|
|
117145
117200
|
selectionPosition.value.bottom = y2;
|
|
117146
117201
|
}
|
|
117147
117202
|
const selectionLeft = selectionPosition.value.startX;
|
|
117148
|
-
if (
|
|
117149
|
-
selectionPosition.value.left =
|
|
117203
|
+
if (x2 < selectionLeft) {
|
|
117204
|
+
selectionPosition.value.left = x2;
|
|
117150
117205
|
} else {
|
|
117151
|
-
selectionPosition.value.right =
|
|
117206
|
+
selectionPosition.value.right = x2;
|
|
117152
117207
|
}
|
|
117153
117208
|
};
|
|
117154
117209
|
const handleSelectionStart = (e) => {
|
|
@@ -117157,16 +117212,16 @@ ${style2}
|
|
|
117157
117212
|
nextTick(() => {
|
|
117158
117213
|
isDragging.value = true;
|
|
117159
117214
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
117160
|
-
const
|
|
117161
|
-
updateSelection2({ startX:
|
|
117215
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
117216
|
+
updateSelection2({ startX: x2, startY: y2 });
|
|
117162
117217
|
selectionLayer.value.addEventListener("mousemove", handleDragMove);
|
|
117163
117218
|
});
|
|
117164
117219
|
};
|
|
117165
117220
|
const handleDragMove = (e) => {
|
|
117166
117221
|
if (!isDragging.value) return;
|
|
117167
117222
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
117168
|
-
const
|
|
117169
|
-
updateSelection2({ x, y: y2 });
|
|
117223
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
117224
|
+
updateSelection2({ x: x2, y: y2 });
|
|
117170
117225
|
};
|
|
117171
117226
|
const handleDragEnd = (e) => {
|
|
117172
117227
|
if (!isDragging.value) return;
|
|
@@ -117523,7 +117578,7 @@ ${style2}
|
|
|
117523
117578
|
this.config.colors = shuffleArray(this.config.colors);
|
|
117524
117579
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
117525
117580
|
this.colorIndex = 0;
|
|
117526
|
-
this.version = "0.28.
|
|
117581
|
+
this.version = "0.28.4";
|
|
117527
117582
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
117528
117583
|
this.superdocId = config2.superdocId || v4();
|
|
117529
117584
|
this.colors = this.config.colors;
|
|
@@ -119923,7 +119978,7 @@ ${style2}
|
|
|
119923
119978
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
119924
119979
|
);
|
|
119925
119980
|
}
|
|
119926
|
-
const
|
|
119981
|
+
const indexCEL3ujoV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
119927
119982
|
__proto__: null,
|
|
119928
119983
|
unified
|
|
119929
119984
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -121515,8 +121570,8 @@ ${style2}
|
|
|
121515
121570
|
properties[name] = attribute.value;
|
|
121516
121571
|
}
|
|
121517
121572
|
}
|
|
121518
|
-
const
|
|
121519
|
-
const result =
|
|
121573
|
+
const x2 = state2.schema.space === "svg" ? s : h;
|
|
121574
|
+
const result = x2(node2.tagName, properties, all$4(state2, node2.childNodes));
|
|
121520
121575
|
patch$1(state2, node2, result);
|
|
121521
121576
|
if (result.tagName === "template") {
|
|
121522
121577
|
const reference2 = (
|