superdoc 0.34.6-RC1 → 0.34.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-Cdq6hWaP.cjs → PdfViewer-C8xLNe_n.cjs} +2 -2
- package/dist/chunks/{PdfViewer-Yy390Dyv.es.js → PdfViewer-WfRCZj-e.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CFCpOk3d.cjs → eventemitter3-DmHNHvFX.cjs} +1 -1
- package/dist/chunks/{eventemitter3-BZXKb7j7.es.js → eventemitter3-hYlnBzSA.es.js} +1 -1
- package/dist/chunks/{index-_8cQcYzu-Dj8Emsl2.es.js → index-BENzx4z6-DdFuGCwa.es.js} +1 -1
- package/dist/chunks/{index-_8cQcYzu-CB4RkW2W.cjs → index-BENzx4z6-Ds8akndA.cjs} +1 -1
- package/dist/chunks/{index-QkGtTLUE.cjs → index-CIQILa8l.cjs} +7 -12
- package/dist/chunks/{index-M9d0bJ9k.es.js → index-wZJgMVEg.es.js} +7 -12
- package/dist/chunks/{jszip-B99MTu59.cjs → jszip-BP2FTbpi.cjs} +1 -1
- package/dist/chunks/{jszip-Duxs2YMV.es.js → jszip-jKrsZoMS.es.js} +1 -1
- package/dist/chunks/{super-editor.es-kNY6AOSu.es.js → super-editor.es-B21z_KOS.es.js} +626 -727
- package/dist/chunks/{super-editor.es-C-hpEM8j.cjs → super-editor.es-BVJ4WHrZ.cjs} +673 -774
- package/dist/chunks/{vue-B5QAf5pA.es.js → vue-CKmzTNVs.es.js} +1379 -1420
- package/dist/chunks/{vue-ARQSyfaw.cjs → vue-Cwv-wUpm.cjs} +1379 -1420
- package/dist/chunks/xml-js-BSDu25I7.cjs +3 -0
- package/dist/chunks/xml-js-CBrRls0f.es.js +2 -0
- package/dist/packages/superdoc/src/components/CommentsLayer/use-comment.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Ddl2ZmKy.js → converter-BItdKEMN.js} +301 -394
- package/dist/super-editor/chunks/{docx-zipper-D1BgiAWm.js → docx-zipper-Brh1H7kE.js} +1 -1
- package/dist/super-editor/chunks/{editor-B2T2u3JG.js → editor-BwXcd5wT.js} +59 -67
- package/dist/super-editor/chunks/{index-_8cQcYzu.js → index-BENzx4z6.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-hyRTdNjv.js → toolbar-CiQKWEEf.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/exporter/commentsExporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +975 -1121
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CVyfrKaV.es.js +0 -2
- package/dist/chunks/xml-js-DQa4Ye5C.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as h, z as mergeProps, A as shallowRef, B as withCtx, C as createTextVNode, D as normalizeStyle, E as toRef, G as provide, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-
|
|
1
|
+
import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as h$1, z as mergeProps, A as shallowRef, B as withCtx, C as createTextVNode, D as normalizeStyle, E as toRef, G as provide, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-CKmzTNVs.es.js";
|
|
2
2
|
import * as Y from "yjs";
|
|
3
3
|
import { UndoManager, Item as Item$2, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
4
4
|
var __defProp$2 = Object.defineProperty;
|
|
@@ -416,17 +416,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
if (a === b2) return 0;
|
|
419
|
-
let
|
|
419
|
+
let x = a.length;
|
|
420
420
|
let y2 = b2.length;
|
|
421
|
-
for (let i = 0, len = Math.min(
|
|
421
|
+
for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
|
|
422
422
|
if (a[i] !== b2[i]) {
|
|
423
|
-
|
|
423
|
+
x = a[i];
|
|
424
424
|
y2 = b2[i];
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
if (
|
|
429
|
-
if (y2 <
|
|
428
|
+
if (x < y2) return -1;
|
|
429
|
+
if (y2 < x) return 1;
|
|
430
430
|
return 0;
|
|
431
431
|
};
|
|
432
432
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -675,20 +675,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
675
675
|
thisStart >>>= 0;
|
|
676
676
|
thisEnd >>>= 0;
|
|
677
677
|
if (this === target) return 0;
|
|
678
|
-
let
|
|
678
|
+
let x = thisEnd - thisStart;
|
|
679
679
|
let y2 = end2 - start2;
|
|
680
|
-
const len = Math.min(
|
|
680
|
+
const len = Math.min(x, y2);
|
|
681
681
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
682
682
|
const targetCopy = target.slice(start2, end2);
|
|
683
683
|
for (let i = 0; i < len; ++i) {
|
|
684
684
|
if (thisCopy[i] !== targetCopy[i]) {
|
|
685
|
-
|
|
685
|
+
x = thisCopy[i];
|
|
686
686
|
y2 = targetCopy[i];
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
if (
|
|
691
|
-
if (y2 <
|
|
690
|
+
if (x < y2) return -1;
|
|
691
|
+
if (y2 < x) return 1;
|
|
692
692
|
return 0;
|
|
693
693
|
};
|
|
694
694
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -1778,8 +1778,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
1778
1778
|
})(buffer);
|
|
1779
1779
|
const Buffer2 = buffer.Buffer;
|
|
1780
1780
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
|
|
1781
|
-
function getDefaultExportFromCjs$2(
|
|
1782
|
-
return
|
|
1781
|
+
function getDefaultExportFromCjs$2(x) {
|
|
1782
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1783
1783
|
}
|
|
1784
1784
|
var sax = {};
|
|
1785
1785
|
var events$1 = { exports: {} };
|
|
@@ -1787,13 +1787,13 @@ var hasRequiredEvents;
|
|
|
1787
1787
|
function requireEvents() {
|
|
1788
1788
|
if (hasRequiredEvents) return events$1.exports;
|
|
1789
1789
|
hasRequiredEvents = 1;
|
|
1790
|
-
var
|
|
1791
|
-
var ReflectApply =
|
|
1790
|
+
var R2 = typeof Reflect === "object" ? Reflect : null;
|
|
1791
|
+
var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
|
|
1792
1792
|
return Function.prototype.apply.call(target, receiver, args);
|
|
1793
1793
|
};
|
|
1794
1794
|
var ReflectOwnKeys;
|
|
1795
|
-
if (
|
|
1796
|
-
ReflectOwnKeys =
|
|
1795
|
+
if (R2 && typeof R2.ownKeys === "function") {
|
|
1796
|
+
ReflectOwnKeys = R2.ownKeys;
|
|
1797
1797
|
} else if (Object.getOwnPropertySymbols) {
|
|
1798
1798
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1799
1799
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -2183,8 +2183,8 @@ function requireInherits_browser() {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
return inherits_browser.exports;
|
|
2185
2185
|
}
|
|
2186
|
-
function getDefaultExportFromCjs$1(
|
|
2187
|
-
return
|
|
2186
|
+
function getDefaultExportFromCjs$1(x) {
|
|
2187
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2188
2188
|
}
|
|
2189
2189
|
var browser$1 = { exports: {} };
|
|
2190
2190
|
var process$1 = browser$1.exports = {};
|
|
@@ -2765,17 +2765,17 @@ function requireDist() {
|
|
|
2765
2765
|
);
|
|
2766
2766
|
}
|
|
2767
2767
|
if (a === b2) return 0;
|
|
2768
|
-
let
|
|
2768
|
+
let x = a.length;
|
|
2769
2769
|
let y2 = b2.length;
|
|
2770
|
-
for (let i2 = 0, len2 = Math.min(
|
|
2770
|
+
for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
|
|
2771
2771
|
if (a[i2] !== b2[i2]) {
|
|
2772
|
-
|
|
2772
|
+
x = a[i2];
|
|
2773
2773
|
y2 = b2[i2];
|
|
2774
2774
|
break;
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
|
-
if (
|
|
2778
|
-
if (y2 <
|
|
2777
|
+
if (x < y2) return -1;
|
|
2778
|
+
if (y2 < x) return 1;
|
|
2779
2779
|
return 0;
|
|
2780
2780
|
};
|
|
2781
2781
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -3024,20 +3024,20 @@ function requireDist() {
|
|
|
3024
3024
|
thisStart >>>= 0;
|
|
3025
3025
|
thisEnd >>>= 0;
|
|
3026
3026
|
if (this === target) return 0;
|
|
3027
|
-
let
|
|
3027
|
+
let x = thisEnd - thisStart;
|
|
3028
3028
|
let y2 = end2 - start2;
|
|
3029
|
-
const len2 = Math.min(
|
|
3029
|
+
const len2 = Math.min(x, y2);
|
|
3030
3030
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
3031
3031
|
const targetCopy = target.slice(start2, end2);
|
|
3032
3032
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
3033
3033
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
3034
|
-
|
|
3034
|
+
x = thisCopy[i2];
|
|
3035
3035
|
y2 = targetCopy[i2];
|
|
3036
3036
|
break;
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
|
-
if (
|
|
3040
|
-
if (y2 <
|
|
3039
|
+
if (x < y2) return -1;
|
|
3040
|
+
if (y2 < x) return 1;
|
|
3041
3041
|
return 0;
|
|
3042
3042
|
};
|
|
3043
3043
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -4609,15 +4609,15 @@ function requireGetProto() {
|
|
|
4609
4609
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
4610
4610
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
4611
4611
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
4612
|
-
getProto = reflectGetProto ? function getProto2(
|
|
4613
|
-
return reflectGetProto(
|
|
4614
|
-
} : originalGetProto ? function getProto2(
|
|
4615
|
-
if (!
|
|
4612
|
+
getProto = reflectGetProto ? function getProto2(O2) {
|
|
4613
|
+
return reflectGetProto(O2);
|
|
4614
|
+
} : originalGetProto ? function getProto2(O2) {
|
|
4615
|
+
if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
|
|
4616
4616
|
throw new TypeError("getProto: not an object");
|
|
4617
4617
|
}
|
|
4618
|
-
return originalGetProto(
|
|
4619
|
-
} : getDunderProto ? function getProto2(
|
|
4620
|
-
return getDunderProto(
|
|
4618
|
+
return originalGetProto(O2);
|
|
4619
|
+
} : getDunderProto ? function getProto2(O2) {
|
|
4620
|
+
return getDunderProto(O2);
|
|
4621
4621
|
} : null;
|
|
4622
4622
|
return getProto;
|
|
4623
4623
|
}
|
|
@@ -5295,8 +5295,8 @@ function requireForEach() {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
}
|
|
5297
5297
|
};
|
|
5298
|
-
function isArray2(
|
|
5299
|
-
return toStr.call(
|
|
5298
|
+
function isArray2(x) {
|
|
5299
|
+
return toStr.call(x) === "[object Array]";
|
|
5300
5300
|
}
|
|
5301
5301
|
forEach = function forEach22(list, iterator, thisArg) {
|
|
5302
5302
|
if (!isCallable2(iterator)) {
|
|
@@ -5905,10 +5905,10 @@ function requireUtil() {
|
|
|
5905
5905
|
var i = 1;
|
|
5906
5906
|
var args = arguments;
|
|
5907
5907
|
var len = args.length;
|
|
5908
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
5909
|
-
if (
|
|
5910
|
-
if (i >= len) return
|
|
5911
|
-
switch (
|
|
5908
|
+
var str = String(f2).replace(formatRegExp, function(x2) {
|
|
5909
|
+
if (x2 === "%%") return "%";
|
|
5910
|
+
if (i >= len) return x2;
|
|
5911
|
+
switch (x2) {
|
|
5912
5912
|
case "%s":
|
|
5913
5913
|
return String(args[i++]);
|
|
5914
5914
|
case "%d":
|
|
@@ -5920,14 +5920,14 @@ function requireUtil() {
|
|
|
5920
5920
|
return "[Circular]";
|
|
5921
5921
|
}
|
|
5922
5922
|
default:
|
|
5923
|
-
return
|
|
5923
|
+
return x2;
|
|
5924
5924
|
}
|
|
5925
5925
|
});
|
|
5926
|
-
for (var
|
|
5927
|
-
if (isNull(
|
|
5928
|
-
str += " " +
|
|
5926
|
+
for (var x = args[i]; i < len; x = args[++i]) {
|
|
5927
|
+
if (isNull(x) || !isObject2(x)) {
|
|
5928
|
+
str += " " + x;
|
|
5929
5929
|
} else {
|
|
5930
|
-
str += " " + inspect(
|
|
5930
|
+
str += " " + inspect(x);
|
|
5931
5931
|
}
|
|
5932
5932
|
}
|
|
5933
5933
|
return str;
|
|
@@ -7492,7 +7492,6 @@ function require_stream_duplex() {
|
|
|
7492
7492
|
}
|
|
7493
7493
|
var string_decoder = {};
|
|
7494
7494
|
var safeBuffer = { exports: {} };
|
|
7495
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
7496
7495
|
var hasRequiredSafeBuffer;
|
|
7497
7496
|
function requireSafeBuffer() {
|
|
7498
7497
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
@@ -7514,7 +7513,6 @@ function requireSafeBuffer() {
|
|
|
7514
7513
|
function SafeBuffer(arg, encodingOrOffset, length2) {
|
|
7515
7514
|
return Buffer3(arg, encodingOrOffset, length2);
|
|
7516
7515
|
}
|
|
7517
|
-
SafeBuffer.prototype = Object.create(Buffer3.prototype);
|
|
7518
7516
|
copyProps(Buffer3, SafeBuffer);
|
|
7519
7517
|
SafeBuffer.from = function(arg, encodingOrOffset, length2) {
|
|
7520
7518
|
if (typeof arg === "number") {
|
|
@@ -8792,9 +8790,9 @@ function require_stream_readable() {
|
|
|
8792
8790
|
return from2(Readable, iterable, opts);
|
|
8793
8791
|
};
|
|
8794
8792
|
}
|
|
8795
|
-
function indexOf(xs,
|
|
8793
|
+
function indexOf(xs, x) {
|
|
8796
8794
|
for (var i = 0, l3 = xs.length; i < l3; i++) {
|
|
8797
|
-
if (xs[i] ===
|
|
8795
|
+
if (xs[i] === x) return i;
|
|
8798
8796
|
}
|
|
8799
8797
|
return -1;
|
|
8800
8798
|
}
|
|
@@ -9252,27 +9250,27 @@ function requireSax() {
|
|
|
9252
9250
|
this._parser = new SAXParser(strict, opt);
|
|
9253
9251
|
this.writable = true;
|
|
9254
9252
|
this.readable = true;
|
|
9255
|
-
var
|
|
9253
|
+
var me = this;
|
|
9256
9254
|
this._parser.onend = function() {
|
|
9257
|
-
|
|
9255
|
+
me.emit("end");
|
|
9258
9256
|
};
|
|
9259
9257
|
this._parser.onerror = function(er) {
|
|
9260
|
-
|
|
9261
|
-
|
|
9258
|
+
me.emit("error", er);
|
|
9259
|
+
me._parser.error = null;
|
|
9262
9260
|
};
|
|
9263
9261
|
this._decoder = null;
|
|
9264
9262
|
streamWraps.forEach(function(ev) {
|
|
9265
|
-
Object.defineProperty(
|
|
9263
|
+
Object.defineProperty(me, "on" + ev, {
|
|
9266
9264
|
get: function() {
|
|
9267
|
-
return
|
|
9265
|
+
return me._parser["on" + ev];
|
|
9268
9266
|
},
|
|
9269
9267
|
set: function(h2) {
|
|
9270
9268
|
if (!h2) {
|
|
9271
|
-
|
|
9272
|
-
|
|
9269
|
+
me.removeAllListeners(ev);
|
|
9270
|
+
me._parser["on" + ev] = h2;
|
|
9273
9271
|
return h2;
|
|
9274
9272
|
}
|
|
9275
|
-
|
|
9273
|
+
me.on(ev, h2);
|
|
9276
9274
|
},
|
|
9277
9275
|
enumerable: true,
|
|
9278
9276
|
configurable: false
|
|
@@ -9304,15 +9302,15 @@ function requireSax() {
|
|
|
9304
9302
|
return true;
|
|
9305
9303
|
};
|
|
9306
9304
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9307
|
-
var
|
|
9308
|
-
if (!
|
|
9309
|
-
|
|
9305
|
+
var me = this;
|
|
9306
|
+
if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9307
|
+
me._parser["on" + ev] = function() {
|
|
9310
9308
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9311
9309
|
args.splice(0, 0, ev);
|
|
9312
|
-
|
|
9310
|
+
me.emit.apply(me, args);
|
|
9313
9311
|
};
|
|
9314
9312
|
}
|
|
9315
|
-
return Stream.prototype.on.call(
|
|
9313
|
+
return Stream.prototype.on.call(me, ev, handler2);
|
|
9316
9314
|
};
|
|
9317
9315
|
var CDATA = "[CDATA[";
|
|
9318
9316
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9904,9 +9902,9 @@ function requireSax() {
|
|
|
9904
9902
|
var tag = parser.tag = parser.tags.pop();
|
|
9905
9903
|
parser.tagName = parser.tag.name;
|
|
9906
9904
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9907
|
-
var
|
|
9905
|
+
var x = {};
|
|
9908
9906
|
for (var i in tag.ns) {
|
|
9909
|
-
|
|
9907
|
+
x[i] = tag.ns[i];
|
|
9910
9908
|
}
|
|
9911
9909
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9912
9910
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -11386,8 +11384,8 @@ function v4(options, buf, offset2) {
|
|
|
11386
11384
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11387
11385
|
return unsafeStringify(rnds);
|
|
11388
11386
|
}
|
|
11389
|
-
function getDefaultExportFromCjs(
|
|
11390
|
-
return
|
|
11387
|
+
function getDefaultExportFromCjs(x) {
|
|
11388
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11391
11389
|
}
|
|
11392
11390
|
const CRC_TABLE = new Int32Array([
|
|
11393
11391
|
0,
|
|
@@ -15203,8 +15201,8 @@ function polygonToObj(polygonNode) {
|
|
|
15203
15201
|
const points = [];
|
|
15204
15202
|
polygonNode.elements.forEach((element) => {
|
|
15205
15203
|
if (["wp:start", "wp:lineTo"].includes(element.name)) {
|
|
15206
|
-
const { x
|
|
15207
|
-
points.push([polygonUnitsToPixels(
|
|
15204
|
+
const { x, y: y2 } = element.attributes;
|
|
15205
|
+
points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
|
|
15208
15206
|
}
|
|
15209
15207
|
});
|
|
15210
15208
|
if (points.length > 1) {
|
|
@@ -15227,13 +15225,13 @@ function objToPolygon(points) {
|
|
|
15227
15225
|
elements: []
|
|
15228
15226
|
};
|
|
15229
15227
|
points.forEach((point, index2) => {
|
|
15230
|
-
const [
|
|
15228
|
+
const [x, y2] = point;
|
|
15231
15229
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15232
15230
|
const pointNode = {
|
|
15233
15231
|
name: tagName,
|
|
15234
15232
|
type: tagName,
|
|
15235
15233
|
attributes: {
|
|
15236
|
-
x: pixelsToPolygonUnits(
|
|
15234
|
+
x: pixelsToPolygonUnits(x),
|
|
15237
15235
|
y: pixelsToPolygonUnits(y2)
|
|
15238
15236
|
}
|
|
15239
15237
|
};
|
|
@@ -22898,7 +22896,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22898
22896
|
const right2 = Math.max(start2.right, end2.right);
|
|
22899
22897
|
const width = right2 - left2;
|
|
22900
22898
|
const height = bottom2 - top2;
|
|
22901
|
-
const
|
|
22899
|
+
const x = left2;
|
|
22902
22900
|
const y2 = top2;
|
|
22903
22901
|
const data = {
|
|
22904
22902
|
top: top2,
|
|
@@ -22907,7 +22905,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22907
22905
|
right: right2,
|
|
22908
22906
|
width,
|
|
22909
22907
|
height,
|
|
22910
|
-
x
|
|
22908
|
+
x,
|
|
22911
22909
|
y: y2
|
|
22912
22910
|
};
|
|
22913
22911
|
return {
|
|
@@ -22996,31 +22994,25 @@ function createDocFromHTML(content, schema, options = {}) {
|
|
|
22996
22994
|
function L() {
|
|
22997
22995
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
22998
22996
|
}
|
|
22999
|
-
var
|
|
22997
|
+
var O = L();
|
|
23000
22998
|
function G(l3) {
|
|
23001
|
-
|
|
22999
|
+
O = l3;
|
|
23002
23000
|
}
|
|
23003
23001
|
var E = { exec: () => null };
|
|
23004
|
-
function
|
|
23002
|
+
function h(l3, e = "") {
|
|
23005
23003
|
let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i) => {
|
|
23006
23004
|
let s2 = typeof i == "string" ? i : i.source;
|
|
23007
23005
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
23008
23006
|
}, getRegex: () => new RegExp(t, e) };
|
|
23009
23007
|
return n;
|
|
23010
23008
|
}
|
|
23011
|
-
var
|
|
23012
|
-
|
|
23013
|
-
|
|
23014
|
-
} catch {
|
|
23015
|
-
return false;
|
|
23016
|
-
}
|
|
23017
|
-
})(), m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, Re = /^(?:[ \t]*(?:\n|$))+/, Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = d$1(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ye = d$1(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = d$1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = d$1(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = d$1("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = d$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: Le, code: Te, def: Se, fences: Oe, heading: we, hr: I, html: _e, lheading: oe, list: $e, newline: Re, paragraph: ae, table: E, text: Pe }, re = d$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Me = { ...K$1, lheading: ye, table: re, paragraph: d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, ze = { ...K$1, html: d$1(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d$1(j).replace("hr", I).replace("heading", ` *#{1,6} *[^
|
|
23018
|
-
]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ce = d$1(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ve = d$1(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, De = d$1(ce, "u").replace(/punct/g, D).getRegex(), He = d$1(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = d$1(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = d$1(he$3, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), Ne = d$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Fe = d$1(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), je = d$1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Qe = d$1(U).replace("(?:-->|$)", "-->").getRegex(), Ue = d$1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d$1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d$1(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = d$1(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), We = d$1("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: E, anyPunctuation: Fe, autolink: je, blockSkip: ve, br: le, code: Ee, del: E, emStrongLDelim: De, emStrongRDelimAst: Ze, emStrongRDelimUnd: Ne, escape: Ae, link: Ke, nolink: ke, punctuation: Ce, reflink: de, reflinkSearch: We, tag: Ue, text: Ie, url: E }, Xe = { ...X, link: d$1(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: d$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: He, url: d$1(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d$1(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Je = { ...N, br: d$1(le).replace("{2,}", "*").getRegex(), text: d$1(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Me, pedantic: ze }, M$1 = { normal: X, gfm: N, breaks: Je, pedantic: Xe };
|
|
23019
|
-
var Ve = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (l3) => Ve[l3];
|
|
23009
|
+
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie$2 = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K$1, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
23010
|
+
]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
|
|
23011
|
+
var Xe = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ke = (l3) => Xe[l3];
|
|
23020
23012
|
function w(l3, e) {
|
|
23021
23013
|
if (e) {
|
|
23022
|
-
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace,
|
|
23023
|
-
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode,
|
|
23014
|
+
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
|
|
23015
|
+
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
|
|
23024
23016
|
return l3;
|
|
23025
23017
|
}
|
|
23026
23018
|
function J(l3) {
|
|
@@ -23032,10 +23024,10 @@ function J(l3) {
|
|
|
23032
23024
|
return l3;
|
|
23033
23025
|
}
|
|
23034
23026
|
function V(l3, e) {
|
|
23035
|
-
let t = l3.replace(m.findPipe, (i, s2,
|
|
23036
|
-
let
|
|
23037
|
-
for (; --
|
|
23038
|
-
return
|
|
23027
|
+
let t = l3.replace(m.findPipe, (i, s2, o) => {
|
|
23028
|
+
let a = false, u = s2;
|
|
23029
|
+
for (; --u >= 0 && o[u] === "\\"; ) a = !a;
|
|
23030
|
+
return a ? "|" : " |";
|
|
23039
23031
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
23040
23032
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
23041
23033
|
else for (; n.length < e; ) n.push("");
|
|
@@ -23053,7 +23045,7 @@ function z(l3, e, t) {
|
|
|
23053
23045
|
}
|
|
23054
23046
|
return l3.slice(0, n - r2);
|
|
23055
23047
|
}
|
|
23056
|
-
function
|
|
23048
|
+
function ge(l3, e) {
|
|
23057
23049
|
if (l3.indexOf(e[1]) === -1) return -1;
|
|
23058
23050
|
let t = 0;
|
|
23059
23051
|
for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
|
|
@@ -23061,13 +23053,13 @@ function fe(l3, e) {
|
|
|
23061
23053
|
else if (l3[n] === e[1] && (t--, t < 0)) return n;
|
|
23062
23054
|
return t > 0 ? -2 : -1;
|
|
23063
23055
|
}
|
|
23064
|
-
function
|
|
23065
|
-
let i = e.href, s2 = e.title || null,
|
|
23056
|
+
function fe(l3, e, t, n, r2) {
|
|
23057
|
+
let i = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
23066
23058
|
n.state.inLink = true;
|
|
23067
|
-
let
|
|
23068
|
-
return n.state.inLink = false,
|
|
23059
|
+
let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
23060
|
+
return n.state.inLink = false, a;
|
|
23069
23061
|
}
|
|
23070
|
-
function
|
|
23062
|
+
function Je(l3, e, t) {
|
|
23071
23063
|
let n = l3.match(t.other.indentCodeCompensation);
|
|
23072
23064
|
if (n === null) return e;
|
|
23073
23065
|
let r2 = n[1];
|
|
@@ -23075,8 +23067,8 @@ function Ye(l3, e, t) {
|
|
|
23075
23067
|
`).map((i) => {
|
|
23076
23068
|
let s2 = i.match(t.other.beginningSpace);
|
|
23077
23069
|
if (s2 === null) return i;
|
|
23078
|
-
let [
|
|
23079
|
-
return
|
|
23070
|
+
let [o] = s2;
|
|
23071
|
+
return o.length >= r2.length ? i.slice(r2.length) : i;
|
|
23080
23072
|
}).join(`
|
|
23081
23073
|
`);
|
|
23082
23074
|
}
|
|
@@ -23085,7 +23077,7 @@ var y = class {
|
|
|
23085
23077
|
__publicField$2(this, "options");
|
|
23086
23078
|
__publicField$2(this, "rules");
|
|
23087
23079
|
__publicField$2(this, "lexer");
|
|
23088
|
-
this.options = e ||
|
|
23080
|
+
this.options = e || O;
|
|
23089
23081
|
}
|
|
23090
23082
|
space(e) {
|
|
23091
23083
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -23102,7 +23094,7 @@ var y = class {
|
|
|
23102
23094
|
fences(e) {
|
|
23103
23095
|
let t = this.rules.block.fences.exec(e);
|
|
23104
23096
|
if (t) {
|
|
23105
|
-
let n = t[0], r2 =
|
|
23097
|
+
let n = t[0], r2 = Je(n, t[3] || "", this.rules);
|
|
23106
23098
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
23107
23099
|
}
|
|
23108
23100
|
}
|
|
@@ -23129,32 +23121,32 @@ var y = class {
|
|
|
23129
23121
|
`).split(`
|
|
23130
23122
|
`), r2 = "", i = "", s2 = [];
|
|
23131
23123
|
for (; n.length > 0; ) {
|
|
23132
|
-
let
|
|
23133
|
-
for (
|
|
23134
|
-
else if (!
|
|
23124
|
+
let o = false, a = [], u;
|
|
23125
|
+
for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
|
|
23126
|
+
else if (!o) a.push(n[u]);
|
|
23135
23127
|
else break;
|
|
23136
|
-
n = n.slice(
|
|
23137
|
-
let
|
|
23138
|
-
`), c2 =
|
|
23128
|
+
n = n.slice(u);
|
|
23129
|
+
let p = a.join(`
|
|
23130
|
+
`), c2 = p.replace(this.rules.other.blockquoteSetextReplace, `
|
|
23139
23131
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
23140
23132
|
r2 = r2 ? `${r2}
|
|
23141
|
-
${
|
|
23133
|
+
${p}` : p, i = i ? `${i}
|
|
23142
23134
|
${c2}` : c2;
|
|
23143
|
-
let
|
|
23144
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top =
|
|
23145
|
-
let
|
|
23146
|
-
if (
|
|
23147
|
-
if (
|
|
23148
|
-
let
|
|
23135
|
+
let f2 = this.lexer.state.top;
|
|
23136
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
|
|
23137
|
+
let k2 = s2.at(-1);
|
|
23138
|
+
if (k2?.type === "code") break;
|
|
23139
|
+
if (k2?.type === "blockquote") {
|
|
23140
|
+
let x = k2, g = x.raw + `
|
|
23149
23141
|
` + n.join(`
|
|
23150
|
-
`),
|
|
23151
|
-
s2[s2.length - 1] =
|
|
23142
|
+
`), T = this.blockquote(g);
|
|
23143
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
|
|
23152
23144
|
break;
|
|
23153
|
-
} else if (
|
|
23154
|
-
let
|
|
23145
|
+
} else if (k2?.type === "list") {
|
|
23146
|
+
let x = k2, g = x.raw + `
|
|
23155
23147
|
` + n.join(`
|
|
23156
|
-
`),
|
|
23157
|
-
s2[s2.length - 1] =
|
|
23148
|
+
`), T = this.list(g);
|
|
23149
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
|
|
23158
23150
|
`);
|
|
23159
23151
|
continue;
|
|
23160
23152
|
}
|
|
@@ -23167,45 +23159,45 @@ ${c2}` : c2;
|
|
|
23167
23159
|
if (t) {
|
|
23168
23160
|
let n = t[1].trim(), r2 = n.length > 1, i = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
|
|
23169
23161
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
23170
|
-
let s2 = this.rules.other.listItemRegex(n),
|
|
23162
|
+
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
23171
23163
|
for (; e; ) {
|
|
23172
|
-
let
|
|
23164
|
+
let u = false, p = "", c2 = "";
|
|
23173
23165
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
23174
|
-
|
|
23175
|
-
let
|
|
23176
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
23177
|
-
`, 1)[0],
|
|
23178
|
-
if (this.options.pedantic ? (
|
|
23179
|
-
`, e = e.substring(
|
|
23180
|
-
let H = this.rules.other.nextBulletRegex(
|
|
23166
|
+
p = t[0], e = e.substring(p.length);
|
|
23167
|
+
let f2 = t[2].split(`
|
|
23168
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
|
|
23169
|
+
`, 1)[0], x = !f2.trim(), g = 0;
|
|
23170
|
+
if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p += k2 + `
|
|
23171
|
+
`, e = e.substring(k2.length + 1), u = true), !u) {
|
|
23172
|
+
let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
|
|
23181
23173
|
for (; e; ) {
|
|
23182
23174
|
let Z = e.split(`
|
|
23183
23175
|
`, 1)[0], A2;
|
|
23184
|
-
if (
|
|
23185
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
23186
|
-
` + A2.slice(
|
|
23176
|
+
if (k2 = Z, this.options.pedantic ? (k2 = k2.replace(this.rules.other.listReplaceNesting, " "), A2 = k2) : A2 = k2.replace(this.rules.other.tabCharGlobal, " "), te.test(k2) || ne.test(k2) || me.test(k2) || H.test(k2) || ee.test(k2)) break;
|
|
23177
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
|
|
23178
|
+
` + A2.slice(g);
|
|
23187
23179
|
else {
|
|
23188
|
-
if (
|
|
23180
|
+
if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
|
|
23189
23181
|
c2 += `
|
|
23190
|
-
` +
|
|
23182
|
+
` + k2;
|
|
23191
23183
|
}
|
|
23192
|
-
!
|
|
23193
|
-
`, e = e.substring(Z.length + 1),
|
|
23184
|
+
!x && !k2.trim() && (x = true), p += Z + `
|
|
23185
|
+
`, e = e.substring(Z.length + 1), f2 = A2.slice(g);
|
|
23194
23186
|
}
|
|
23195
23187
|
}
|
|
23196
|
-
i.loose || (
|
|
23197
|
-
let
|
|
23198
|
-
this.options.gfm && (
|
|
23188
|
+
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
|
|
23189
|
+
let T = null, Y2;
|
|
23190
|
+
this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += p;
|
|
23199
23191
|
}
|
|
23200
|
-
let
|
|
23201
|
-
if (
|
|
23192
|
+
let a = i.items.at(-1);
|
|
23193
|
+
if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
|
|
23202
23194
|
else return;
|
|
23203
23195
|
i.raw = i.raw.trimEnd();
|
|
23204
|
-
for (let
|
|
23205
|
-
let
|
|
23196
|
+
for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
|
|
23197
|
+
let p = i.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p.length > 0 && p.some((f2) => this.rules.other.anyLine.test(f2.raw));
|
|
23206
23198
|
i.loose = c2;
|
|
23207
23199
|
}
|
|
23208
|
-
if (i.loose) for (let
|
|
23200
|
+
if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
|
|
23209
23201
|
return i;
|
|
23210
23202
|
}
|
|
23211
23203
|
}
|
|
@@ -23226,9 +23218,9 @@ ${c2}` : c2;
|
|
|
23226
23218
|
let n = V(t[1]), r2 = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
23227
23219
|
`) : [], s2 = { type: "table", raw: t[0], header: [], align: [], rows: [] };
|
|
23228
23220
|
if (n.length === r2.length) {
|
|
23229
|
-
for (let
|
|
23230
|
-
for (let
|
|
23231
|
-
for (let
|
|
23221
|
+
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);
|
|
23222
|
+
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] });
|
|
23223
|
+
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[u] })));
|
|
23232
23224
|
return s2;
|
|
23233
23225
|
}
|
|
23234
23226
|
}
|
|
@@ -23265,11 +23257,11 @@ ${c2}` : c2;
|
|
|
23265
23257
|
let s2 = z(n.slice(0, -1), "\\");
|
|
23266
23258
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
23267
23259
|
} else {
|
|
23268
|
-
let s2 =
|
|
23260
|
+
let s2 = ge(t[2], "()");
|
|
23269
23261
|
if (s2 === -2) return;
|
|
23270
23262
|
if (s2 > -1) {
|
|
23271
|
-
let
|
|
23272
|
-
t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0,
|
|
23263
|
+
let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
23264
|
+
t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, a).trim(), t[3] = "";
|
|
23273
23265
|
}
|
|
23274
23266
|
}
|
|
23275
23267
|
let r2 = t[2], i = "";
|
|
@@ -23277,7 +23269,7 @@ ${c2}` : c2;
|
|
|
23277
23269
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
23278
23270
|
s2 && (r2 = s2[1], i = s2[3]);
|
|
23279
23271
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
23280
|
-
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)),
|
|
23272
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
|
|
23281
23273
|
}
|
|
23282
23274
|
}
|
|
23283
23275
|
reflink(e, t) {
|
|
@@ -23288,32 +23280,32 @@ ${c2}` : c2;
|
|
|
23288
23280
|
let s2 = n[0].charAt(0);
|
|
23289
23281
|
return { type: "text", raw: s2, text: s2 };
|
|
23290
23282
|
}
|
|
23291
|
-
return
|
|
23283
|
+
return fe(n, i, n[0], this.lexer, this.rules);
|
|
23292
23284
|
}
|
|
23293
23285
|
}
|
|
23294
23286
|
emStrong(e, t, n = "") {
|
|
23295
23287
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
23296
23288
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
23297
23289
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
23298
|
-
let s2 = [...r2[0]].length - 1,
|
|
23290
|
+
let s2 = [...r2[0]].length - 1, o, a, u = s2, p = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
23299
23291
|
for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
|
|
23300
|
-
if (
|
|
23301
|
-
if (
|
|
23302
|
-
|
|
23292
|
+
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
23293
|
+
if (a = [...o].length, r2[3] || r2[4]) {
|
|
23294
|
+
u += a;
|
|
23303
23295
|
continue;
|
|
23304
|
-
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 +
|
|
23305
|
-
|
|
23296
|
+
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
|
|
23297
|
+
p += a;
|
|
23306
23298
|
continue;
|
|
23307
23299
|
}
|
|
23308
|
-
if (
|
|
23309
|
-
|
|
23310
|
-
let
|
|
23311
|
-
if (Math.min(s2,
|
|
23312
|
-
let
|
|
23313
|
-
return { type: "em", raw:
|
|
23300
|
+
if (u -= a, u > 0) continue;
|
|
23301
|
+
a = Math.min(a, a + u + p);
|
|
23302
|
+
let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a);
|
|
23303
|
+
if (Math.min(s2, a) % 2) {
|
|
23304
|
+
let g = k2.slice(1, -1);
|
|
23305
|
+
return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
|
|
23314
23306
|
}
|
|
23315
|
-
let
|
|
23316
|
-
return { type: "strong", raw:
|
|
23307
|
+
let x = k2.slice(2, -2);
|
|
23308
|
+
return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
|
|
23317
23309
|
}
|
|
23318
23310
|
}
|
|
23319
23311
|
}
|
|
@@ -23362,19 +23354,19 @@ ${c2}` : c2;
|
|
|
23362
23354
|
}
|
|
23363
23355
|
}
|
|
23364
23356
|
};
|
|
23365
|
-
var
|
|
23357
|
+
var b = class l {
|
|
23366
23358
|
constructor(e) {
|
|
23367
23359
|
__publicField$2(this, "tokens");
|
|
23368
23360
|
__publicField$2(this, "options");
|
|
23369
23361
|
__publicField$2(this, "state");
|
|
23370
23362
|
__publicField$2(this, "tokenizer");
|
|
23371
23363
|
__publicField$2(this, "inlineQueue");
|
|
23372
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
23373
|
-
let t = { other: m, block:
|
|
23374
|
-
this.options.pedantic ? (t.block =
|
|
23364
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || O, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
|
|
23365
|
+
let t = { other: m, block: I.normal, inline: M$1.normal };
|
|
23366
|
+
this.options.pedantic ? (t.block = I.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
23375
23367
|
}
|
|
23376
23368
|
static get rules() {
|
|
23377
|
-
return { block:
|
|
23369
|
+
return { block: I, inline: M$1 };
|
|
23378
23370
|
}
|
|
23379
23371
|
static lex(e, t) {
|
|
23380
23372
|
return new l(t).lex(e);
|
|
@@ -23454,9 +23446,9 @@ var x = class l {
|
|
|
23454
23446
|
}
|
|
23455
23447
|
let i = e;
|
|
23456
23448
|
if (this.options.extensions?.startBlock) {
|
|
23457
|
-
let s2 = 1 / 0,
|
|
23458
|
-
this.options.extensions.startBlock.forEach((
|
|
23459
|
-
|
|
23449
|
+
let s2 = 1 / 0, o = e.slice(1), a;
|
|
23450
|
+
this.options.extensions.startBlock.forEach((u) => {
|
|
23451
|
+
a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
|
|
23460
23452
|
}), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
|
|
23461
23453
|
}
|
|
23462
23454
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
|
|
@@ -23496,12 +23488,11 @@ var x = class l {
|
|
|
23496
23488
|
if (o.length > 0) for (; (r2 = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; ) o.includes(r2[0].slice(r2[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
23497
23489
|
}
|
|
23498
23490
|
for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
23499
|
-
|
|
23500
|
-
for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i) + "[" + "a".repeat(r2[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
23491
|
+
for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
23501
23492
|
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
23502
|
-
let
|
|
23493
|
+
let i = false, s2 = "";
|
|
23503
23494
|
for (; e; ) {
|
|
23504
|
-
|
|
23495
|
+
i || (s2 = ""), i = false;
|
|
23505
23496
|
let o;
|
|
23506
23497
|
if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
|
|
23507
23498
|
if (o = this.tokenizer.escape(e)) {
|
|
@@ -23522,7 +23513,7 @@ var x = class l {
|
|
|
23522
23513
|
o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
23523
23514
|
continue;
|
|
23524
23515
|
}
|
|
23525
|
-
if (o = this.tokenizer.emStrong(e, n,
|
|
23516
|
+
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
23526
23517
|
e = e.substring(o.raw.length), t.push(o);
|
|
23527
23518
|
continue;
|
|
23528
23519
|
}
|
|
@@ -23546,15 +23537,15 @@ var x = class l {
|
|
|
23546
23537
|
e = e.substring(o.raw.length), t.push(o);
|
|
23547
23538
|
continue;
|
|
23548
23539
|
}
|
|
23549
|
-
let
|
|
23540
|
+
let a = e;
|
|
23550
23541
|
if (this.options.extensions?.startInline) {
|
|
23551
|
-
let u = 1 / 0,
|
|
23552
|
-
this.options.extensions.startInline.forEach((
|
|
23553
|
-
|
|
23554
|
-
}), u < 1 / 0 && u >= 0 && (
|
|
23542
|
+
let u = 1 / 0, p = e.slice(1), c2;
|
|
23543
|
+
this.options.extensions.startInline.forEach((f2) => {
|
|
23544
|
+
c2 = f2.call({ lexer: this }, p), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
|
|
23545
|
+
}), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
|
|
23555
23546
|
}
|
|
23556
|
-
if (o = this.tokenizer.inlineText(
|
|
23557
|
-
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (
|
|
23547
|
+
if (o = this.tokenizer.inlineText(a)) {
|
|
23548
|
+
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
|
|
23558
23549
|
let u = t.at(-1);
|
|
23559
23550
|
u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
23560
23551
|
continue;
|
|
@@ -23574,7 +23565,7 @@ var P = class {
|
|
|
23574
23565
|
constructor(e) {
|
|
23575
23566
|
__publicField$2(this, "options");
|
|
23576
23567
|
__publicField$2(this, "parser");
|
|
23577
|
-
this.options = e ||
|
|
23568
|
+
this.options = e || O;
|
|
23578
23569
|
}
|
|
23579
23570
|
space(e) {
|
|
23580
23571
|
return "";
|
|
@@ -23607,9 +23598,9 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
23607
23598
|
}
|
|
23608
23599
|
list(e) {
|
|
23609
23600
|
let t = e.ordered, n = e.start, r2 = "";
|
|
23610
|
-
for (let
|
|
23611
|
-
let
|
|
23612
|
-
r2 += this.listitem(
|
|
23601
|
+
for (let o = 0; o < e.items.length; o++) {
|
|
23602
|
+
let a = e.items[o];
|
|
23603
|
+
r2 += this.listitem(a);
|
|
23613
23604
|
}
|
|
23614
23605
|
let i = t ? "ol" : "ul", s2 = t && n !== 1 ? ' start="' + n + '"' : "";
|
|
23615
23606
|
return "<" + i + s2 + `>
|
|
@@ -23640,7 +23631,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
23640
23631
|
for (let i = 0; i < e.rows.length; i++) {
|
|
23641
23632
|
let s2 = e.rows[i];
|
|
23642
23633
|
n = "";
|
|
23643
|
-
for (let
|
|
23634
|
+
for (let o = 0; o < s2.length; o++) n += this.tablecell(s2[o]);
|
|
23644
23635
|
r2 += this.tablerow({ text: n });
|
|
23645
23636
|
}
|
|
23646
23637
|
return r2 && (r2 = `<tbody>${r2}</tbody>`), `<table>
|
|
@@ -23722,12 +23713,12 @@ var $ = class {
|
|
|
23722
23713
|
return "";
|
|
23723
23714
|
}
|
|
23724
23715
|
};
|
|
23725
|
-
var
|
|
23716
|
+
var R = class l2 {
|
|
23726
23717
|
constructor(e) {
|
|
23727
23718
|
__publicField$2(this, "options");
|
|
23728
23719
|
__publicField$2(this, "renderer");
|
|
23729
23720
|
__publicField$2(this, "textRenderer");
|
|
23730
|
-
this.options = e ||
|
|
23721
|
+
this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
|
|
23731
23722
|
}
|
|
23732
23723
|
static parse(e, t) {
|
|
23733
23724
|
return new l2(t).parse(e);
|
|
@@ -23740,9 +23731,9 @@ var b = class l2 {
|
|
|
23740
23731
|
for (let r2 = 0; r2 < e.length; r2++) {
|
|
23741
23732
|
let i = e[r2];
|
|
23742
23733
|
if (this.options.extensions?.renderers?.[i.type]) {
|
|
23743
|
-
let
|
|
23744
|
-
if (
|
|
23745
|
-
n +=
|
|
23734
|
+
let o = i, a = this.options.extensions.renderers[o.type].call({ parser: this }, o);
|
|
23735
|
+
if (a !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
|
|
23736
|
+
n += a || "";
|
|
23746
23737
|
continue;
|
|
23747
23738
|
}
|
|
23748
23739
|
}
|
|
@@ -23789,16 +23780,16 @@ var b = class l2 {
|
|
|
23789
23780
|
continue;
|
|
23790
23781
|
}
|
|
23791
23782
|
case "text": {
|
|
23792
|
-
let
|
|
23793
|
-
for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; )
|
|
23794
|
-
` + this.renderer.text(
|
|
23795
|
-
t ? n += this.renderer.paragraph({ type: "paragraph", raw:
|
|
23783
|
+
let o = s2, a = this.renderer.text(o);
|
|
23784
|
+
for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) o = e[++r2], a += `
|
|
23785
|
+
` + this.renderer.text(o);
|
|
23786
|
+
t ? n += this.renderer.paragraph({ type: "paragraph", raw: a, text: a, tokens: [{ type: "text", raw: a, text: a, escaped: true }] }) : n += a;
|
|
23796
23787
|
continue;
|
|
23797
23788
|
}
|
|
23798
23789
|
default: {
|
|
23799
|
-
let
|
|
23800
|
-
if (this.options.silent) return console.error(
|
|
23801
|
-
throw new Error(
|
|
23790
|
+
let o = 'Token with "' + s2.type + '" type was not found.';
|
|
23791
|
+
if (this.options.silent) return console.error(o), "";
|
|
23792
|
+
throw new Error(o);
|
|
23802
23793
|
}
|
|
23803
23794
|
}
|
|
23804
23795
|
}
|
|
@@ -23809,9 +23800,9 @@ var b = class l2 {
|
|
|
23809
23800
|
for (let r2 = 0; r2 < e.length; r2++) {
|
|
23810
23801
|
let i = e[r2];
|
|
23811
23802
|
if (this.options.extensions?.renderers?.[i.type]) {
|
|
23812
|
-
let
|
|
23813
|
-
if (
|
|
23814
|
-
n +=
|
|
23803
|
+
let o = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
23804
|
+
if (o !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
|
|
23805
|
+
n += o || "";
|
|
23815
23806
|
continue;
|
|
23816
23807
|
}
|
|
23817
23808
|
}
|
|
@@ -23858,9 +23849,9 @@ var b = class l2 {
|
|
|
23858
23849
|
break;
|
|
23859
23850
|
}
|
|
23860
23851
|
default: {
|
|
23861
|
-
let
|
|
23862
|
-
if (this.options.silent) return console.error(
|
|
23863
|
-
throw new Error(
|
|
23852
|
+
let o = 'Token with "' + s2.type + '" type was not found.';
|
|
23853
|
+
if (this.options.silent) return console.error(o), "";
|
|
23854
|
+
throw new Error(o);
|
|
23864
23855
|
}
|
|
23865
23856
|
}
|
|
23866
23857
|
}
|
|
@@ -23871,7 +23862,7 @@ var S = (_a = class {
|
|
|
23871
23862
|
constructor(e) {
|
|
23872
23863
|
__publicField$2(this, "options");
|
|
23873
23864
|
__publicField$2(this, "block");
|
|
23874
|
-
this.options = e ||
|
|
23865
|
+
this.options = e || O;
|
|
23875
23866
|
}
|
|
23876
23867
|
preprocess(e) {
|
|
23877
23868
|
return e;
|
|
@@ -23886,10 +23877,10 @@ var S = (_a = class {
|
|
|
23886
23877
|
return e;
|
|
23887
23878
|
}
|
|
23888
23879
|
provideLexer() {
|
|
23889
|
-
return this.block ?
|
|
23880
|
+
return this.block ? b.lex : b.lexInline;
|
|
23890
23881
|
}
|
|
23891
23882
|
provideParser() {
|
|
23892
|
-
return this.block ?
|
|
23883
|
+
return this.block ? R.parse : R.parseInline;
|
|
23893
23884
|
}
|
|
23894
23885
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
23895
23886
|
var B = class {
|
|
@@ -23898,10 +23889,10 @@ var B = class {
|
|
|
23898
23889
|
__publicField$2(this, "options", this.setOptions);
|
|
23899
23890
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
23900
23891
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
23901
|
-
__publicField$2(this, "Parser",
|
|
23892
|
+
__publicField$2(this, "Parser", R);
|
|
23902
23893
|
__publicField$2(this, "Renderer", P);
|
|
23903
23894
|
__publicField$2(this, "TextRenderer", $);
|
|
23904
|
-
__publicField$2(this, "Lexer",
|
|
23895
|
+
__publicField$2(this, "Lexer", b);
|
|
23905
23896
|
__publicField$2(this, "Tokenizer", y);
|
|
23906
23897
|
__publicField$2(this, "Hooks", S);
|
|
23907
23898
|
this.use(...e);
|
|
@@ -23912,7 +23903,7 @@ var B = class {
|
|
|
23912
23903
|
case "table": {
|
|
23913
23904
|
let i = r2;
|
|
23914
23905
|
for (let s2 of i.header) n = n.concat(this.walkTokens(s2.tokens, t));
|
|
23915
|
-
for (let s2 of i.rows) for (let
|
|
23906
|
+
for (let s2 of i.rows) for (let o of s2) n = n.concat(this.walkTokens(o.tokens, t));
|
|
23916
23907
|
break;
|
|
23917
23908
|
}
|
|
23918
23909
|
case "list": {
|
|
@@ -23923,8 +23914,8 @@ var B = class {
|
|
|
23923
23914
|
default: {
|
|
23924
23915
|
let i = r2;
|
|
23925
23916
|
this.defaults.extensions?.childTokens?.[i.type] ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
|
|
23926
|
-
let
|
|
23927
|
-
n = n.concat(this.walkTokens(
|
|
23917
|
+
let o = i[s2].flat(1 / 0);
|
|
23918
|
+
n = n.concat(this.walkTokens(o, t));
|
|
23928
23919
|
}) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
|
|
23929
23920
|
}
|
|
23930
23921
|
}
|
|
@@ -23938,9 +23929,9 @@ var B = class {
|
|
|
23938
23929
|
if (!i.name) throw new Error("extension name required");
|
|
23939
23930
|
if ("renderer" in i) {
|
|
23940
23931
|
let s2 = t.renderers[i.name];
|
|
23941
|
-
s2 ? t.renderers[i.name] = function(...
|
|
23942
|
-
let
|
|
23943
|
-
return
|
|
23932
|
+
s2 ? t.renderers[i.name] = function(...o) {
|
|
23933
|
+
let a = i.renderer.apply(this, o);
|
|
23934
|
+
return a === false && (a = s2.apply(this, o)), a;
|
|
23944
23935
|
} : t.renderers[i.name] = i.renderer;
|
|
23945
23936
|
}
|
|
23946
23937
|
if ("tokenizer" in i) {
|
|
@@ -23954,10 +23945,10 @@ var B = class {
|
|
|
23954
23945
|
for (let s2 in n.renderer) {
|
|
23955
23946
|
if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
|
|
23956
23947
|
if (["options", "parser"].includes(s2)) continue;
|
|
23957
|
-
let
|
|
23958
|
-
i[
|
|
23959
|
-
let c2 =
|
|
23960
|
-
return c2 === false && (c2 =
|
|
23948
|
+
let o = s2, a = n.renderer[o], u = i[o];
|
|
23949
|
+
i[o] = (...p) => {
|
|
23950
|
+
let c2 = a.apply(i, p);
|
|
23951
|
+
return c2 === false && (c2 = u.apply(i, p)), c2 || "";
|
|
23961
23952
|
};
|
|
23962
23953
|
}
|
|
23963
23954
|
r2.renderer = i;
|
|
@@ -23967,10 +23958,10 @@ var B = class {
|
|
|
23967
23958
|
for (let s2 in n.tokenizer) {
|
|
23968
23959
|
if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
23969
23960
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
23970
|
-
let
|
|
23971
|
-
i[
|
|
23972
|
-
let c2 =
|
|
23973
|
-
return c2 === false && (c2 =
|
|
23961
|
+
let o = s2, a = n.tokenizer[o], u = i[o];
|
|
23962
|
+
i[o] = (...p) => {
|
|
23963
|
+
let c2 = a.apply(i, p);
|
|
23964
|
+
return c2 === false && (c2 = u.apply(i, p)), c2;
|
|
23974
23965
|
};
|
|
23975
23966
|
}
|
|
23976
23967
|
r2.tokenizer = i;
|
|
@@ -23980,30 +23971,23 @@ var B = class {
|
|
|
23980
23971
|
for (let s2 in n.hooks) {
|
|
23981
23972
|
if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
|
|
23982
23973
|
if (["options", "block"].includes(s2)) continue;
|
|
23983
|
-
let
|
|
23984
|
-
S.passThroughHooks.has(s2) ? i[
|
|
23985
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (
|
|
23986
|
-
|
|
23987
|
-
|
|
23988
|
-
|
|
23989
|
-
let c2 =
|
|
23990
|
-
return
|
|
23991
|
-
} : i[a] = (...u) => {
|
|
23992
|
-
if (this.defaults.async) return (async () => {
|
|
23993
|
-
let g = await o.apply(i, u);
|
|
23994
|
-
return g === false && (g = await p.apply(i, u)), g;
|
|
23995
|
-
})();
|
|
23996
|
-
let c2 = o.apply(i, u);
|
|
23997
|
-
return c2 === false && (c2 = p.apply(i, u)), c2;
|
|
23974
|
+
let o = s2, a = n.hooks[o], u = i[o];
|
|
23975
|
+
S.passThroughHooks.has(s2) ? i[o] = (p) => {
|
|
23976
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a.call(i, p)).then((f2) => u.call(i, f2));
|
|
23977
|
+
let c2 = a.call(i, p);
|
|
23978
|
+
return u.call(i, c2);
|
|
23979
|
+
} : i[o] = (...p) => {
|
|
23980
|
+
let c2 = a.apply(i, p);
|
|
23981
|
+
return c2 === false && (c2 = u.apply(i, p)), c2;
|
|
23998
23982
|
};
|
|
23999
23983
|
}
|
|
24000
23984
|
r2.hooks = i;
|
|
24001
23985
|
}
|
|
24002
23986
|
if (n.walkTokens) {
|
|
24003
23987
|
let i = this.defaults.walkTokens, s2 = n.walkTokens;
|
|
24004
|
-
r2.walkTokens = function(
|
|
24005
|
-
let
|
|
24006
|
-
return
|
|
23988
|
+
r2.walkTokens = function(o) {
|
|
23989
|
+
let a = [];
|
|
23990
|
+
return a.push(s2.call(this, o)), i && (a = a.concat(i.call(this, o))), a;
|
|
24007
23991
|
};
|
|
24008
23992
|
}
|
|
24009
23993
|
this.defaults = { ...this.defaults, ...r2 };
|
|
@@ -24013,31 +23997,28 @@ var B = class {
|
|
|
24013
23997
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
24014
23998
|
}
|
|
24015
23999
|
lexer(e, t) {
|
|
24016
|
-
return
|
|
24000
|
+
return b.lex(e, t ?? this.defaults);
|
|
24017
24001
|
}
|
|
24018
24002
|
parser(e, t) {
|
|
24019
|
-
return
|
|
24003
|
+
return R.parse(e, t ?? this.defaults);
|
|
24020
24004
|
}
|
|
24021
24005
|
parseMarkdown(e) {
|
|
24022
24006
|
return (n, r2) => {
|
|
24023
|
-
let i = { ...r2 }, s2 = { ...this.defaults, ...i },
|
|
24024
|
-
if (this.defaults.async === true && i.async === false) return
|
|
24025
|
-
if (typeof n > "u" || n === null) return
|
|
24026
|
-
if (typeof n != "string") return
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
let h2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(c2, s2);
|
|
24031
|
-
return s2.hooks ? await s2.hooks.postprocess(h2) : h2;
|
|
24032
|
-
})().catch(a);
|
|
24007
|
+
let i = { ...r2 }, s2 = { ...this.defaults, ...i }, o = this.onError(!!s2.silent, !!s2.async);
|
|
24008
|
+
if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
24009
|
+
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
24010
|
+
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
24011
|
+
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
|
|
24012
|
+
let a = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
|
|
24013
|
+
if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p) => a(p, s2)).then((p) => s2.hooks ? s2.hooks.processAllTokens(p) : p).then((p) => s2.walkTokens ? Promise.all(this.walkTokens(p, s2.walkTokens)).then(() => p) : p).then((p) => u(p, s2)).then((p) => s2.hooks ? s2.hooks.postprocess(p) : p).catch(o);
|
|
24033
24014
|
try {
|
|
24034
24015
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
24035
|
-
let p = (
|
|
24016
|
+
let p = a(n, s2);
|
|
24036
24017
|
s2.hooks && (p = s2.hooks.processAllTokens(p)), s2.walkTokens && this.walkTokens(p, s2.walkTokens);
|
|
24037
|
-
let c2 = (
|
|
24018
|
+
let c2 = u(p, s2);
|
|
24038
24019
|
return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
|
|
24039
|
-
} catch (
|
|
24040
|
-
return
|
|
24020
|
+
} catch (p) {
|
|
24021
|
+
return o(p);
|
|
24041
24022
|
}
|
|
24042
24023
|
};
|
|
24043
24024
|
}
|
|
@@ -24054,38 +24035,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
24054
24035
|
}
|
|
24055
24036
|
};
|
|
24056
24037
|
var _ = new B();
|
|
24057
|
-
function
|
|
24038
|
+
function d$1(l3, e) {
|
|
24058
24039
|
return _.parse(l3, e);
|
|
24059
24040
|
}
|
|
24060
|
-
|
|
24061
|
-
return _.setOptions(l3),
|
|
24041
|
+
d$1.options = d$1.setOptions = function(l3) {
|
|
24042
|
+
return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
24062
24043
|
};
|
|
24063
|
-
|
|
24064
|
-
|
|
24065
|
-
|
|
24066
|
-
return _.use(...l3),
|
|
24044
|
+
d$1.getDefaults = L;
|
|
24045
|
+
d$1.defaults = O;
|
|
24046
|
+
d$1.use = function(...l3) {
|
|
24047
|
+
return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
24067
24048
|
};
|
|
24068
|
-
|
|
24049
|
+
d$1.walkTokens = function(l3, e) {
|
|
24069
24050
|
return _.walkTokens(l3, e);
|
|
24070
24051
|
};
|
|
24071
|
-
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
|
-
|
|
24075
|
-
|
|
24076
|
-
|
|
24077
|
-
|
|
24078
|
-
|
|
24079
|
-
|
|
24080
|
-
|
|
24081
|
-
|
|
24082
|
-
|
|
24083
|
-
|
|
24084
|
-
|
|
24085
|
-
|
|
24086
|
-
|
|
24087
|
-
|
|
24088
|
-
|
|
24052
|
+
d$1.parseInline = _.parseInline;
|
|
24053
|
+
d$1.Parser = R;
|
|
24054
|
+
d$1.parser = R.parse;
|
|
24055
|
+
d$1.Renderer = P;
|
|
24056
|
+
d$1.TextRenderer = $;
|
|
24057
|
+
d$1.Lexer = b;
|
|
24058
|
+
d$1.lexer = b.lex;
|
|
24059
|
+
d$1.Tokenizer = y;
|
|
24060
|
+
d$1.Hooks = S;
|
|
24061
|
+
d$1.parse = d$1;
|
|
24062
|
+
d$1.options;
|
|
24063
|
+
d$1.setOptions;
|
|
24064
|
+
d$1.use;
|
|
24065
|
+
d$1.walkTokens;
|
|
24066
|
+
d$1.parseInline;
|
|
24067
|
+
R.parse;
|
|
24068
|
+
b.lex;
|
|
24069
|
+
d$1.use({
|
|
24089
24070
|
breaks: false,
|
|
24090
24071
|
// Use proper paragraphs, not <br> tags
|
|
24091
24072
|
gfm: true
|
|
@@ -24096,7 +24077,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
|
|
|
24096
24077
|
return createDocFromHTML(html, schema, options);
|
|
24097
24078
|
}
|
|
24098
24079
|
function convertMarkdownToHTML(markdown) {
|
|
24099
|
-
let html =
|
|
24080
|
+
let html = d$1.parse(markdown, { async: false });
|
|
24100
24081
|
return html.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");
|
|
24101
24082
|
}
|
|
24102
24083
|
function processContent({ content, type: type2, schema }) {
|
|
@@ -27047,6 +27028,11 @@ const decode$r = (params2, decodedAttrs = {}) => {
|
|
|
27047
27028
|
runs.push(trackedClone);
|
|
27048
27029
|
return;
|
|
27049
27030
|
}
|
|
27031
|
+
if (child.name === "w:commentRangeStart" || child.name === "w:commentRangeEnd") {
|
|
27032
|
+
const commentRangeClone = cloneXmlNode(child);
|
|
27033
|
+
runs.push(commentRangeClone);
|
|
27034
|
+
return;
|
|
27035
|
+
}
|
|
27050
27036
|
const runWrapper = { name: XML_NODE_NAME$j, elements: [] };
|
|
27051
27037
|
applyBaseRunProps(runWrapper);
|
|
27052
27038
|
if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
|
|
@@ -28720,18 +28706,18 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
|
|
|
28720
28706
|
const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
|
|
28721
28707
|
const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
|
|
28722
28708
|
const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
|
|
28723
|
-
let
|
|
28709
|
+
let x, y2, width, height;
|
|
28724
28710
|
if (groupTransform.childWidth && groupTransform.childHeight) {
|
|
28725
28711
|
const scaleX = groupTransform.width / groupTransform.childWidth;
|
|
28726
28712
|
const scaleY = groupTransform.height / groupTransform.childHeight;
|
|
28727
28713
|
const childOriginX = groupTransform.childOriginXEmu || 0;
|
|
28728
28714
|
const childOriginY = groupTransform.childOriginYEmu || 0;
|
|
28729
|
-
|
|
28715
|
+
x = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
|
|
28730
28716
|
y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
|
|
28731
28717
|
width = emuToPixels(rawWidth * scaleX);
|
|
28732
28718
|
height = emuToPixels(rawHeight * scaleY);
|
|
28733
28719
|
} else {
|
|
28734
|
-
|
|
28720
|
+
x = emuToPixels(rawX);
|
|
28735
28721
|
y2 = emuToPixels(rawY);
|
|
28736
28722
|
width = emuToPixels(rawWidth);
|
|
28737
28723
|
height = emuToPixels(rawHeight);
|
|
@@ -28750,7 +28736,7 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
|
|
|
28750
28736
|
shapeType: "vectorShape",
|
|
28751
28737
|
attrs: {
|
|
28752
28738
|
kind: shapeKind,
|
|
28753
|
-
x
|
|
28739
|
+
x,
|
|
28754
28740
|
y: y2,
|
|
28755
28741
|
width,
|
|
28756
28742
|
height,
|
|
@@ -33168,11 +33154,7 @@ function importCommentData({ docx, editor, converter }) {
|
|
|
33168
33154
|
const generateCommentsWithExtendedData = ({ docx, comments }) => {
|
|
33169
33155
|
if (!comments?.length) return [];
|
|
33170
33156
|
const commentsExtended = docx["word/commentsExtended.xml"];
|
|
33171
|
-
if (!commentsExtended) {
|
|
33172
|
-
const commentRanges = extractCommentRangesFromDocument(docx);
|
|
33173
|
-
const commentsWithThreading = detectThreadingFromRanges(comments, commentRanges);
|
|
33174
|
-
return commentsWithThreading.map((comment) => ({ ...comment, isDone: comment.isDone ?? false }));
|
|
33175
|
-
}
|
|
33157
|
+
if (!commentsExtended) return comments.map((comment) => ({ ...comment, isDone: comment.isDone ?? false }));
|
|
33176
33158
|
const { elements: initialElements = [] } = commentsExtended;
|
|
33177
33159
|
if (!initialElements?.length) return comments.map((comment) => ({ ...comment, isDone: comment.isDone ?? false }));
|
|
33178
33160
|
const { elements = [] } = initialElements[0] ?? {};
|
|
@@ -33198,79 +33180,6 @@ const getExtendedDetails = (commentEx) => {
|
|
|
33198
33180
|
const paraIdParent = attributes["w15:paraIdParent"];
|
|
33199
33181
|
return { paraId, isDone, paraIdParent };
|
|
33200
33182
|
};
|
|
33201
|
-
const extractCommentRangesFromDocument = (docx) => {
|
|
33202
|
-
const documentXml = docx["word/document.xml"];
|
|
33203
|
-
if (!documentXml) {
|
|
33204
|
-
return [];
|
|
33205
|
-
}
|
|
33206
|
-
const pendingComments = [];
|
|
33207
|
-
const walkElements = (elements) => {
|
|
33208
|
-
if (!elements || !Array.isArray(elements)) return;
|
|
33209
|
-
elements.forEach((element) => {
|
|
33210
|
-
if (element.name === "w:commentRangeStart") {
|
|
33211
|
-
const commentId = element.attributes?.["w:id"];
|
|
33212
|
-
if (commentId !== void 0) {
|
|
33213
|
-
pendingComments.push({
|
|
33214
|
-
type: "start",
|
|
33215
|
-
commentId: String(commentId)
|
|
33216
|
-
});
|
|
33217
|
-
}
|
|
33218
|
-
} else if (element.name === "w:commentRangeEnd") {
|
|
33219
|
-
const commentId = element.attributes?.["w:id"];
|
|
33220
|
-
if (commentId !== void 0) {
|
|
33221
|
-
pendingComments.push({
|
|
33222
|
-
type: "end",
|
|
33223
|
-
commentId: String(commentId)
|
|
33224
|
-
});
|
|
33225
|
-
}
|
|
33226
|
-
}
|
|
33227
|
-
if (element.elements && Array.isArray(element.elements)) {
|
|
33228
|
-
walkElements(element.elements);
|
|
33229
|
-
}
|
|
33230
|
-
});
|
|
33231
|
-
};
|
|
33232
|
-
if (documentXml.elements && documentXml.elements.length > 0) {
|
|
33233
|
-
const body = documentXml.elements[0];
|
|
33234
|
-
if (body.elements) {
|
|
33235
|
-
walkElements(body.elements);
|
|
33236
|
-
}
|
|
33237
|
-
}
|
|
33238
|
-
return pendingComments;
|
|
33239
|
-
};
|
|
33240
|
-
const detectThreadingFromRanges = (comments, rangeEvents) => {
|
|
33241
|
-
if (!rangeEvents || rangeEvents.length === 0) {
|
|
33242
|
-
return comments;
|
|
33243
|
-
}
|
|
33244
|
-
const openRanges = [];
|
|
33245
|
-
const parentMap = /* @__PURE__ */ new Map();
|
|
33246
|
-
rangeEvents.forEach((event) => {
|
|
33247
|
-
if (event.type === "start") {
|
|
33248
|
-
if (openRanges.length > 0) {
|
|
33249
|
-
const parentCommentId = openRanges[openRanges.length - 1];
|
|
33250
|
-
parentMap.set(event.commentId, parentCommentId);
|
|
33251
|
-
}
|
|
33252
|
-
openRanges.push(event.commentId);
|
|
33253
|
-
} else if (event.type === "end") {
|
|
33254
|
-
const index2 = openRanges.lastIndexOf(event.commentId);
|
|
33255
|
-
if (index2 !== -1) {
|
|
33256
|
-
openRanges.splice(index2, 1);
|
|
33257
|
-
}
|
|
33258
|
-
}
|
|
33259
|
-
});
|
|
33260
|
-
return comments.map((comment) => {
|
|
33261
|
-
const parentCommentId = parentMap.get(comment.importedId);
|
|
33262
|
-
if (parentCommentId) {
|
|
33263
|
-
const parentComment = comments.find((c2) => c2.importedId === parentCommentId);
|
|
33264
|
-
if (parentComment) {
|
|
33265
|
-
return {
|
|
33266
|
-
...comment,
|
|
33267
|
-
parentCommentId: parentComment.commentId
|
|
33268
|
-
};
|
|
33269
|
-
}
|
|
33270
|
-
}
|
|
33271
|
-
return comment;
|
|
33272
|
-
});
|
|
33273
|
-
};
|
|
33274
33183
|
const RELATIONSHIP_TYPES = (
|
|
33275
33184
|
/** @type {const} */
|
|
33276
33185
|
{
|
|
@@ -35456,7 +35365,7 @@ const prepareCommentParaIds = (comment) => {
|
|
|
35456
35365
|
return newComment;
|
|
35457
35366
|
};
|
|
35458
35367
|
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
35459
|
-
const translatedText =
|
|
35368
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
35460
35369
|
const attributes = {
|
|
35461
35370
|
"w:id": String(commentId),
|
|
35462
35371
|
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
@@ -35495,12 +35404,10 @@ const toIsoNoFractional = (unixMillis) => {
|
|
|
35495
35404
|
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
35496
35405
|
const newCommentsXml = carbonCopy(commentsXml);
|
|
35497
35406
|
commentDefs.forEach((commentDef) => {
|
|
35498
|
-
const
|
|
35499
|
-
if (!paraNode.attributes) paraNode.attributes = {};
|
|
35500
|
-
const elements = paraNode.elements;
|
|
35407
|
+
const elements = commentDef.elements[0].elements;
|
|
35501
35408
|
elements.unshift(COMMENT_REF);
|
|
35502
35409
|
const paraId = commentDef.attributes["w15:paraId"];
|
|
35503
|
-
|
|
35410
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
35504
35411
|
commentDef.attributes = {
|
|
35505
35412
|
"w:id": commentDef.attributes["w:id"],
|
|
35506
35413
|
"w:author": commentDef.attributes["w:author"],
|
|
@@ -35873,7 +35780,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35873
35780
|
static getStoredSuperdocVersion(docx) {
|
|
35874
35781
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35875
35782
|
}
|
|
35876
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.
|
|
35783
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.7") {
|
|
35877
35784
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35878
35785
|
}
|
|
35879
35786
|
/**
|
|
@@ -36264,7 +36171,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
|
|
|
36264
36171
|
};
|
|
36265
36172
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
36266
36173
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36267
|
-
const relationships = relsData.elements.find((
|
|
36174
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
36268
36175
|
const newDocRels = [];
|
|
36269
36176
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
36270
36177
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -36305,7 +36212,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36305
36212
|
}
|
|
36306
36213
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36307
36214
|
if (params2.relationships.length) {
|
|
36308
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36215
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
36309
36216
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36310
36217
|
declaration: this.initialJSON?.declaration,
|
|
36311
36218
|
elements: [
|
|
@@ -36359,7 +36266,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36359
36266
|
}
|
|
36360
36267
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36361
36268
|
if (params2.relationships.length) {
|
|
36362
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36269
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
36363
36270
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36364
36271
|
declaration: this.initialJSON?.declaration,
|
|
36365
36272
|
elements: [
|
|
@@ -36378,7 +36285,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36378
36285
|
};
|
|
36379
36286
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
36380
36287
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36381
|
-
const relationships = relsData.elements.find((
|
|
36288
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
36382
36289
|
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
36383
36290
|
};
|
|
36384
36291
|
exportProcessMediaFiles_fn = async function(media = {}) {
|
|
@@ -36574,8 +36481,8 @@ function requireJszip_min() {
|
|
|
36574
36481
|
return n2;
|
|
36575
36482
|
}
|
|
36576
36483
|
function n(e2, t2, r22, n2, i2, s22) {
|
|
36577
|
-
var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !==
|
|
36578
|
-
t2 && !r22 || (
|
|
36484
|
+
var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
36485
|
+
t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
|
|
36579
36486
|
var S2 = 0;
|
|
36580
36487
|
t2 && (S2 |= 8), l3 || !_2 && !g || (S2 |= 2048);
|
|
36581
36488
|
var z2 = 0, C2 = 0;
|
|
@@ -36586,9 +36493,9 @@ function requireJszip_min() {
|
|
|
36586
36493
|
return 63 & (e3 || 0);
|
|
36587
36494
|
})(h2.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= 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(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
|
|
36588
36495
|
var E2 = "";
|
|
36589
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(
|
|
36496
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
|
|
36590
36497
|
}
|
|
36591
|
-
var I2 = e("../utils"), i = e("../stream/GenericWorker"),
|
|
36498
|
+
var I2 = e("../utils"), i = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
|
|
36592
36499
|
function s2(e2, t2, r22, n2) {
|
|
36593
36500
|
i.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 = [];
|
|
36594
36501
|
}
|
|
@@ -36606,7 +36513,7 @@ function requireJszip_min() {
|
|
|
36606
36513
|
this.accumulate = false;
|
|
36607
36514
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36608
36515
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36609
|
-
return
|
|
36516
|
+
return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36610
36517
|
})(e2), meta: { percent: 100 } });
|
|
36611
36518
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36612
36519
|
this.currentFile = null;
|
|
@@ -36614,7 +36521,7 @@ function requireJszip_min() {
|
|
|
36614
36521
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36615
36522
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
|
|
36616
36523
|
var s22 = I2.transformTo("string", i2(n3));
|
|
36617
|
-
return
|
|
36524
|
+
return R2.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
36618
36525
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36619
36526
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36620
36527
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -37814,11 +37721,11 @@ function requireJszip_min() {
|
|
|
37814
37721
|
return -1 ^ e2;
|
|
37815
37722
|
};
|
|
37816
37723
|
}, {}], 46: [function(e, t, r2) {
|
|
37817
|
-
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15,
|
|
37818
|
-
function
|
|
37724
|
+
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
|
|
37725
|
+
function R2(e2, t2) {
|
|
37819
37726
|
return e2.msg = n[t2], t2;
|
|
37820
37727
|
}
|
|
37821
|
-
function
|
|
37728
|
+
function T(e2) {
|
|
37822
37729
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37823
37730
|
}
|
|
37824
37731
|
function D2(e2) {
|
|
@@ -37862,7 +37769,7 @@ function requireJszip_min() {
|
|
|
37862
37769
|
i2 += f22;
|
|
37863
37770
|
}
|
|
37864
37771
|
if (0 === e2.strm.avail_in) break;
|
|
37865
|
-
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >=
|
|
37772
|
+
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
|
|
37866
37773
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37867
37774
|
}
|
|
37868
37775
|
function Z(e2, t2) {
|
|
@@ -37871,14 +37778,14 @@ function requireJszip_min() {
|
|
|
37871
37778
|
if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
|
|
37872
37779
|
if (0 === e2.lookahead) break;
|
|
37873
37780
|
}
|
|
37874
|
-
if (r22 = 0, e2.lookahead >=
|
|
37875
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37781
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
|
|
37782
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
37876
37783
|
e2.strstart++;
|
|
37877
37784
|
} 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;
|
|
37878
37785
|
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37879
37786
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37880
37787
|
}
|
|
37881
|
-
return e2.insert = e2.strstart <
|
|
37788
|
+
return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37882
37789
|
}
|
|
37883
37790
|
function W2(e2, t2) {
|
|
37884
37791
|
for (var r22, n2, i2; ; ) {
|
|
@@ -37886,14 +37793,14 @@ function requireJszip_min() {
|
|
|
37886
37793
|
if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
|
|
37887
37794
|
if (0 === e2.lookahead) break;
|
|
37888
37795
|
}
|
|
37889
|
-
if (r22 = 0, e2.lookahead >=
|
|
37890
|
-
for (i2 = e2.strstart + e2.lookahead -
|
|
37891
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37796
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
|
|
37797
|
+
for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
37798
|
+
if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37892
37799
|
} else if (e2.match_available) {
|
|
37893
37800
|
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;
|
|
37894
37801
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37895
37802
|
}
|
|
37896
|
-
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart <
|
|
37803
|
+
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37897
37804
|
}
|
|
37898
37805
|
function M2(e2, t2, r22, n2, i2) {
|
|
37899
37806
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
|
|
@@ -37903,21 +37810,21 @@ function requireJszip_min() {
|
|
|
37903
37810
|
}
|
|
37904
37811
|
function G2(e2) {
|
|
37905
37812
|
var t2;
|
|
37906
|
-
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (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 = l3, u._tr_init(t2), m2) :
|
|
37813
|
+
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (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 = l3, u._tr_init(t2), m2) : R2(e2, _2);
|
|
37907
37814
|
}
|
|
37908
37815
|
function K2(e2) {
|
|
37909
37816
|
var t2 = G2(e2);
|
|
37910
37817
|
return t2 === m2 && (function(e3) {
|
|
37911
|
-
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 =
|
|
37818
|
+
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
37912
37819
|
})(e2.state), t2;
|
|
37913
37820
|
}
|
|
37914
37821
|
function Y2(e2, t2, r22, n2, i2, s22) {
|
|
37915
37822
|
if (!e2) return _2;
|
|
37916
37823
|
var a2 = 1;
|
|
37917
|
-
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return
|
|
37824
|
+
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
|
|
37918
37825
|
8 === n2 && (n2 = 9);
|
|
37919
37826
|
var o2 = new H();
|
|
37920
|
-
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits +
|
|
37827
|
+
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 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);
|
|
37921
37828
|
}
|
|
37922
37829
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37923
37830
|
var r22 = 65535;
|
|
@@ -37931,15 +37838,15 @@ function requireJszip_min() {
|
|
|
37931
37838
|
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;
|
|
37932
37839
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37933
37840
|
}
|
|
37934
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37841
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
37935
37842
|
}), 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) {
|
|
37936
37843
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37937
37844
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37938
37845
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37939
37846
|
}, r2.deflate = function(e2, t2) {
|
|
37940
37847
|
var r22, n2, i2, s22;
|
|
37941
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37942
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37848
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
|
|
37849
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R2(e2, 0 === e2.avail_out ? -5 : _2);
|
|
37943
37850
|
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 = p(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);
|
|
37944
37851
|
else {
|
|
37945
37852
|
var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37973,8 +37880,8 @@ function requireJszip_min() {
|
|
|
37973
37880
|
} else n2.status = 103;
|
|
37974
37881
|
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) {
|
|
37975
37882
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37976
|
-
} else if (0 === e2.avail_in &&
|
|
37977
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37883
|
+
} else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
|
|
37884
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
|
|
37978
37885
|
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l3 && 666 !== n2.status) {
|
|
37979
37886
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37980
37887
|
for (var r3; ; ) {
|
|
@@ -37984,39 +37891,39 @@ function requireJszip_min() {
|
|
|
37984
37891
|
}
|
|
37985
37892
|
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;
|
|
37986
37893
|
}
|
|
37987
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37894
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37988
37895
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37989
37896
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37990
37897
|
if (e3.lookahead <= S2) {
|
|
37991
37898
|
if (j2(e3), e3.lookahead <= S2 && t3 === l3) return A2;
|
|
37992
37899
|
if (0 === e3.lookahead) break;
|
|
37993
37900
|
}
|
|
37994
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37901
|
+
if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
37995
37902
|
s3 = e3.strstart + S2;
|
|
37996
37903
|
do {
|
|
37997
37904
|
} 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);
|
|
37998
37905
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37999
37906
|
}
|
|
38000
|
-
if (e3.match_length >=
|
|
37907
|
+
if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
38001
37908
|
}
|
|
38002
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37909
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
38003
37910
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
38004
|
-
if (o2 !==
|
|
37911
|
+
if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
38005
37912
|
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;
|
|
38006
37913
|
}
|
|
38007
37914
|
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);
|
|
38008
37915
|
}, r2.deflateEnd = function(e2) {
|
|
38009
37916
|
var t2;
|
|
38010
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37917
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R2(e2, _2) : (e2.state = null, t2 === E2 ? R2(e2, -3) : m2) : _2;
|
|
38011
37918
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
38012
37919
|
var r22, n2, i2, s22, a2, o2, h22, u2, l22 = t2.length;
|
|
38013
37920
|
if (!e2 || !e2.state) return _2;
|
|
38014
37921
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
38015
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= 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, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >=
|
|
38016
|
-
for (n2 = r22.strstart, i2 = r22.lookahead - (
|
|
38017
|
-
r22.strstart = n2, r22.lookahead =
|
|
37922
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= 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, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
|
|
37923
|
+
for (n2 = r22.strstart, i2 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
|
|
37924
|
+
r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
|
|
38018
37925
|
}
|
|
38019
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37926
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
|
|
38020
37927
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
38021
37928
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
38022
37929
|
t.exports = function() {
|
|
@@ -38024,7 +37931,7 @@ function requireJszip_min() {
|
|
|
38024
37931
|
};
|
|
38025
37932
|
}, {}], 48: [function(e, t, r2) {
|
|
38026
37933
|
t.exports = function(e2, t2) {
|
|
38027
|
-
var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2,
|
|
37934
|
+
var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
|
|
38028
37935
|
r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
|
|
38029
37936
|
e: do {
|
|
38030
37937
|
p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
|
|
@@ -38062,28 +37969,28 @@ function requireJszip_min() {
|
|
|
38062
37969
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
38063
37970
|
break e;
|
|
38064
37971
|
}
|
|
38065
|
-
if (S2 = c2, (
|
|
38066
|
-
if (
|
|
38067
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
38068
|
-
|
|
37972
|
+
if (S2 = c2, (x = 0) === f2) {
|
|
37973
|
+
if (x += u - y2, y2 < w2) {
|
|
37974
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37975
|
+
x = s2 - k2, S2 = C2;
|
|
38069
37976
|
}
|
|
38070
37977
|
} else if (f2 < y2) {
|
|
38071
|
-
if (
|
|
38072
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
38073
|
-
if (
|
|
38074
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
38075
|
-
|
|
37978
|
+
if (x += u + f2 - y2, (y2 -= f2) < w2) {
|
|
37979
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37980
|
+
if (x = 0, f2 < w2) {
|
|
37981
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37982
|
+
x = s2 - k2, S2 = C2;
|
|
38076
37983
|
}
|
|
38077
37984
|
}
|
|
38078
|
-
} else if (
|
|
38079
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
38080
|
-
|
|
37985
|
+
} else if (x += f2 - y2, y2 < w2) {
|
|
37986
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37987
|
+
x = s2 - k2, S2 = C2;
|
|
38081
37988
|
}
|
|
38082
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
38083
|
-
w2 && (C2[s2++] = S2[
|
|
37989
|
+
for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
|
|
37990
|
+
w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
|
|
38084
37991
|
} else {
|
|
38085
|
-
for (
|
|
38086
|
-
w2 && (C2[s2++] = C2[
|
|
37992
|
+
for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
|
|
37993
|
+
w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
|
|
38087
37994
|
}
|
|
38088
37995
|
break;
|
|
38089
37996
|
}
|
|
@@ -38094,7 +38001,7 @@ function requireJszip_min() {
|
|
|
38094
38001
|
n -= w2 = p >> 3, d2 &= (1 << (p -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p;
|
|
38095
38002
|
};
|
|
38096
38003
|
}, {}], 49: [function(e, t, r2) {
|
|
38097
|
-
var I2 = e("../utils/common"),
|
|
38004
|
+
var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
|
|
38098
38005
|
function L2(e2) {
|
|
38099
38006
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
38100
38007
|
}
|
|
@@ -38125,8 +38032,8 @@ function requireJszip_min() {
|
|
|
38125
38032
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
38126
38033
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
38127
38034
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
38128
|
-
for (
|
|
38129
|
-
|
|
38035
|
+
for (T(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
38036
|
+
T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
38130
38037
|
}
|
|
38131
38038
|
e2.lencode = l3, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
38132
38039
|
}
|
|
@@ -38137,9 +38044,9 @@ function requireJszip_min() {
|
|
|
38137
38044
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
|
|
38138
38045
|
return u(e2, 15);
|
|
38139
38046
|
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
38140
|
-
var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2,
|
|
38047
|
+
var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
38141
38048
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
38142
|
-
12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22,
|
|
38049
|
+
12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x = N2;
|
|
38143
38050
|
e: for (; ; ) switch (r22.mode) {
|
|
38144
38051
|
case P2:
|
|
38145
38052
|
if (0 === r22.wrap) {
|
|
@@ -38310,7 +38217,7 @@ function requireJszip_min() {
|
|
|
38310
38217
|
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l22 -= 3;
|
|
38311
38218
|
}
|
|
38312
38219
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
38313
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
38220
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x = T(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
38314
38221
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
38315
38222
|
break;
|
|
38316
38223
|
}
|
|
@@ -38358,11 +38265,11 @@ function requireJszip_min() {
|
|
|
38358
38265
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
38359
38266
|
break;
|
|
38360
38267
|
}
|
|
38361
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
38268
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x = T(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
38362
38269
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
38363
38270
|
break;
|
|
38364
38271
|
}
|
|
38365
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
38272
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x = T(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x) {
|
|
38366
38273
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
38367
38274
|
break;
|
|
38368
38275
|
}
|
|
@@ -38371,7 +38278,7 @@ function requireJszip_min() {
|
|
|
38371
38278
|
r22.mode = 21;
|
|
38372
38279
|
case 21:
|
|
38373
38280
|
if (6 <= o2 && 258 <= h22) {
|
|
38374
|
-
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22,
|
|
38281
|
+
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R2(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
38375
38282
|
break;
|
|
38376
38283
|
}
|
|
38377
38284
|
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
|
|
@@ -38459,7 +38366,7 @@ function requireJszip_min() {
|
|
|
38459
38366
|
if (0 === o2) break e;
|
|
38460
38367
|
o2--, u2 |= n2[s22++] << l22, l22 += 8;
|
|
38461
38368
|
}
|
|
38462
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) :
|
|
38369
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O2(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
|
|
38463
38370
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
38464
38371
|
break;
|
|
38465
38372
|
}
|
|
@@ -38480,10 +38387,10 @@ function requireJszip_min() {
|
|
|
38480
38387
|
}
|
|
38481
38388
|
r22.mode = 29;
|
|
38482
38389
|
case 29:
|
|
38483
|
-
|
|
38390
|
+
x = 1;
|
|
38484
38391
|
break e;
|
|
38485
38392
|
case 30:
|
|
38486
|
-
|
|
38393
|
+
x = -3;
|
|
38487
38394
|
break e;
|
|
38488
38395
|
case 31:
|
|
38489
38396
|
return -4;
|
|
@@ -38491,7 +38398,7 @@ function requireJszip_min() {
|
|
|
38491
38398
|
default:
|
|
38492
38399
|
return U2;
|
|
38493
38400
|
}
|
|
38494
|
-
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (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, i2, c22, e2.next_out - c22) :
|
|
38401
|
+
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (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, i2, c22, e2.next_out - c22) : O2(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
|
|
38495
38402
|
}, r2.inflateEnd = function(e2) {
|
|
38496
38403
|
if (!e2 || !e2.state) return U2;
|
|
38497
38404
|
var t2 = e2.state;
|
|
@@ -38501,33 +38408,33 @@ function requireJszip_min() {
|
|
|
38501
38408
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
38502
38409
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
38503
38410
|
var r22, n2 = t2.length;
|
|
38504
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
38411
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O2(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
38505
38412
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
38506
38413
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
38507
38414
|
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];
|
|
38508
38415
|
t.exports = function(e2, t2, r22, n, i, s2, a, o) {
|
|
38509
|
-
var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0,
|
|
38510
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
38511
|
-
for (v2 = 0; v2 < n; v2++)
|
|
38512
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
38416
|
+
var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
|
|
38417
|
+
for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
|
|
38418
|
+
for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
|
|
38419
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
|
|
38513
38420
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
|
|
38514
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
38515
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
38421
|
+
for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
|
|
38422
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
|
|
38516
38423
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
38517
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
38424
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
|
|
38518
38425
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
|
|
38519
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
38426
|
+
if (d2 = 0 === e2 ? (A2 = R2 = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38520
38427
|
for (; ; ) {
|
|
38521
|
-
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 =
|
|
38428
|
+
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R2[T + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
|
|
38522
38429
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38523
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
38430
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
|
|
38524
38431
|
if (b2 === w2) break;
|
|
38525
38432
|
b2 = t2[r22 + a[v2]];
|
|
38526
38433
|
}
|
|
38527
38434
|
if (k2 < b2 && (E2 & f2) !== l3) {
|
|
38528
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38529
|
-
if (C2 += 1 <<
|
|
38530
|
-
i[l3 = E2 & f2] = k2 << 24 |
|
|
38435
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
|
|
38436
|
+
if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38437
|
+
i[l3 = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
|
|
38531
38438
|
}
|
|
38532
38439
|
}
|
|
38533
38440
|
return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38539,7 +38446,7 @@ function requireJszip_min() {
|
|
|
38539
38446
|
function n(e2) {
|
|
38540
38447
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38541
38448
|
}
|
|
38542
|
-
var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 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],
|
|
38449
|
+
var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
|
|
38543
38450
|
n(z2);
|
|
38544
38451
|
var C2 = new Array(2 * f2);
|
|
38545
38452
|
n(C2);
|
|
@@ -38549,7 +38456,7 @@ function requireJszip_min() {
|
|
|
38549
38456
|
n(A2);
|
|
38550
38457
|
var I2 = new Array(a);
|
|
38551
38458
|
n(I2);
|
|
38552
|
-
var
|
|
38459
|
+
var O2, B2, R2, T = new Array(f2);
|
|
38553
38460
|
function D2(e2, t2, r22, n2, i2) {
|
|
38554
38461
|
this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;
|
|
38555
38462
|
}
|
|
@@ -38600,7 +38507,7 @@ function requireJszip_min() {
|
|
|
38600
38507
|
}
|
|
38601
38508
|
function K2(e2, t2, r22) {
|
|
38602
38509
|
var n2, i2, s22, a2, o2 = 0;
|
|
38603
|
-
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], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -=
|
|
38510
|
+
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], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T[s22], a2)), o2 < e2.last_lit; ) ;
|
|
38604
38511
|
L2(e2, m2, t2);
|
|
38605
38512
|
}
|
|
38606
38513
|
function Y2(e2, t2) {
|
|
@@ -38634,7 +38541,7 @@ function requireJszip_min() {
|
|
|
38634
38541
|
s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38635
38542
|
}
|
|
38636
38543
|
}
|
|
38637
|
-
n(
|
|
38544
|
+
n(T);
|
|
38638
38545
|
var q2 = false;
|
|
38639
38546
|
function J2(e2, t2, r22, n2) {
|
|
38640
38547
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38645,16 +38552,16 @@ function requireJszip_min() {
|
|
|
38645
38552
|
q2 || ((function() {
|
|
38646
38553
|
var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
|
|
38647
38554
|
for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38648
|
-
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (
|
|
38649
|
-
for (i2 >>= 7; n2 < f2; n2++) for (
|
|
38555
|
+
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
|
|
38556
|
+
for (i2 >>= 7; n2 < f2; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
|
|
38650
38557
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38651
38558
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38652
38559
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38653
38560
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38654
38561
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38655
38562
|
for (Z(z2, l3 + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38656
|
-
|
|
38657
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38563
|
+
O2 = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p);
|
|
38564
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O2), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R2), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
38658
38565
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38659
38566
|
var i2, s22, a2 = 0;
|
|
38660
38567
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
@@ -39730,17 +39637,17 @@ function deepActiveElement(doc2) {
|
|
|
39730
39637
|
elt = elt.shadowRoot.activeElement;
|
|
39731
39638
|
return elt;
|
|
39732
39639
|
}
|
|
39733
|
-
function caretFromPoint(doc2,
|
|
39640
|
+
function caretFromPoint(doc2, x, y2) {
|
|
39734
39641
|
if (doc2.caretPositionFromPoint) {
|
|
39735
39642
|
try {
|
|
39736
|
-
let pos = doc2.caretPositionFromPoint(
|
|
39643
|
+
let pos = doc2.caretPositionFromPoint(x, y2);
|
|
39737
39644
|
if (pos)
|
|
39738
39645
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
39739
39646
|
} catch (_2) {
|
|
39740
39647
|
}
|
|
39741
39648
|
}
|
|
39742
39649
|
if (doc2.caretRangeFromPoint) {
|
|
39743
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
39650
|
+
let range2 = doc2.caretRangeFromPoint(x, y2);
|
|
39744
39651
|
if (range2)
|
|
39745
39652
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
39746
39653
|
}
|
|
@@ -39839,8 +39746,8 @@ function scrollRectIntoView(view, rect, startDOM) {
|
|
|
39839
39746
|
function storeScrollPos(view) {
|
|
39840
39747
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
39841
39748
|
let refDOM, refTop;
|
|
39842
|
-
for (let
|
|
39843
|
-
let dom = view.root.elementFromPoint(
|
|
39749
|
+
for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
39750
|
+
let dom = view.root.elementFromPoint(x, y2);
|
|
39844
39751
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
39845
39752
|
continue;
|
|
39846
39753
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -39942,20 +39849,17 @@ function findOffsetInNode(node, coords) {
|
|
|
39942
39849
|
}
|
|
39943
39850
|
function findOffsetInText(node, coords) {
|
|
39944
39851
|
let len = node.nodeValue.length;
|
|
39945
|
-
let range2 = document.createRange()
|
|
39852
|
+
let range2 = document.createRange();
|
|
39946
39853
|
for (let i = 0; i < len; i++) {
|
|
39947
39854
|
range2.setEnd(node, i + 1);
|
|
39948
39855
|
range2.setStart(node, i);
|
|
39949
39856
|
let rect = singleRect(range2, 1);
|
|
39950
39857
|
if (rect.top == rect.bottom)
|
|
39951
39858
|
continue;
|
|
39952
|
-
if (inRect(coords, rect))
|
|
39953
|
-
|
|
39954
|
-
break;
|
|
39955
|
-
}
|
|
39859
|
+
if (inRect(coords, rect))
|
|
39860
|
+
return { node, offset: i + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0) };
|
|
39956
39861
|
}
|
|
39957
|
-
|
|
39958
|
-
return result || { node, offset: 0 };
|
|
39862
|
+
return { node, offset: 0 };
|
|
39959
39863
|
}
|
|
39960
39864
|
function inRect(coords, rect) {
|
|
39961
39865
|
return coords.left >= rect.left - 1 && coords.left <= rect.right + 1 && coords.top >= rect.top - 1 && coords.top <= rect.bottom + 1;
|
|
@@ -40139,8 +40043,8 @@ function coordsAtPos(view, pos, side) {
|
|
|
40139
40043
|
function flattenV(rect, left2) {
|
|
40140
40044
|
if (rect.width == 0)
|
|
40141
40045
|
return rect;
|
|
40142
|
-
let
|
|
40143
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
40046
|
+
let x = left2 ? rect.left : rect.right;
|
|
40047
|
+
return { top: rect.top, bottom: rect.bottom, left: x, right: x };
|
|
40144
40048
|
}
|
|
40145
40049
|
function flattenH(rect, top2) {
|
|
40146
40050
|
if (rect.height == 0)
|
|
@@ -42702,7 +42606,7 @@ editHandlers.compositionstart = editHandlers.compositionupdate = (view) => {
|
|
|
42702
42606
|
if (!view.composing) {
|
|
42703
42607
|
view.domObserver.flush();
|
|
42704
42608
|
let { state: state2 } = view, $pos = state2.selection.$to;
|
|
42705
|
-
if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false)
|
|
42609
|
+
if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false))) {
|
|
42706
42610
|
view.markCursor = view.state.storedMarks || $pos.marks();
|
|
42707
42611
|
endComposition(view, true);
|
|
42708
42612
|
view.markCursor = null;
|
|
@@ -42730,13 +42634,6 @@ editHandlers.compositionstart = editHandlers.compositionupdate = (view) => {
|
|
|
42730
42634
|
}
|
|
42731
42635
|
scheduleComposeEnd(view, timeoutComposition);
|
|
42732
42636
|
};
|
|
42733
|
-
function selectionBeforeUneditable(view) {
|
|
42734
|
-
let { focusNode, focusOffset } = view.domSelectionRange();
|
|
42735
|
-
if (!focusNode || focusNode.nodeType != 1 || focusOffset >= focusNode.childNodes.length)
|
|
42736
|
-
return false;
|
|
42737
|
-
let next = focusNode.childNodes[focusOffset];
|
|
42738
|
-
return next.nodeType == 1 && next.contentEditable == "false";
|
|
42739
|
-
}
|
|
42740
42637
|
editHandlers.compositionend = (view, event) => {
|
|
42741
42638
|
if (view.composing) {
|
|
42742
42639
|
view.input.composing = false;
|
|
@@ -42940,14 +42837,10 @@ handlers.dragend = (view) => {
|
|
|
42940
42837
|
}, 50);
|
|
42941
42838
|
};
|
|
42942
42839
|
editHandlers.dragover = editHandlers.dragenter = (_2, e) => e.preventDefault();
|
|
42943
|
-
editHandlers.drop = (view,
|
|
42944
|
-
|
|
42945
|
-
|
|
42946
|
-
|
|
42947
|
-
view.dragging = null;
|
|
42948
|
-
}
|
|
42949
|
-
};
|
|
42950
|
-
function handleDrop(view, event, dragging) {
|
|
42840
|
+
editHandlers.drop = (view, _event) => {
|
|
42841
|
+
let event = _event;
|
|
42842
|
+
let dragging = view.dragging;
|
|
42843
|
+
view.dragging = null;
|
|
42951
42844
|
if (!event.dataTransfer)
|
|
42952
42845
|
return;
|
|
42953
42846
|
let eventPos = view.posAtCoords(eventCoords(event));
|
|
@@ -43000,7 +42893,7 @@ function handleDrop(view, event, dragging) {
|
|
|
43000
42893
|
}
|
|
43001
42894
|
view.focus();
|
|
43002
42895
|
view.dispatch(tr.setMeta("uiEvent", "drop"));
|
|
43003
|
-
}
|
|
42896
|
+
};
|
|
43004
42897
|
handlers.focus = (view) => {
|
|
43005
42898
|
view.input.lastFocus = Date.now();
|
|
43006
42899
|
if (!view.focused) {
|
|
@@ -43850,13 +43743,6 @@ class DOMObserver {
|
|
|
43850
43743
|
br.remove();
|
|
43851
43744
|
}
|
|
43852
43745
|
}
|
|
43853
|
-
} else if ((chrome || safari) && added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
43854
|
-
for (let node of added)
|
|
43855
|
-
if (node.nodeName == "BR" && node.parentNode) {
|
|
43856
|
-
let after = node.nextSibling;
|
|
43857
|
-
if (after && after.nodeType == 1 && after.contentEditable == "false")
|
|
43858
|
-
node.parentNode.removeChild(node);
|
|
43859
|
-
}
|
|
43860
43746
|
}
|
|
43861
43747
|
let readSel = null;
|
|
43862
43748
|
if (from2 < 0 && newSel && view.input.lastFocus > Date.now() - 200 && Math.max(view.input.lastTouch, view.input.lastClick.time) < Date.now() - 300 && selectionCollapsed(sel) && (readSel = selectionFromDOM(view)) && readSel.eq(Selection.near(view.state.doc.resolve(0), 1))) {
|
|
@@ -45165,10 +45051,10 @@ const createTimeoutClass = (clearFunction) => class TT {
|
|
|
45165
45051
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
45166
45052
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
45167
45053
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
45168
|
-
const sum0to256 = (
|
|
45169
|
-
const sum1to256 = (
|
|
45170
|
-
const sigma0to256 = (
|
|
45171
|
-
const sigma1to256 = (
|
|
45054
|
+
const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
|
|
45055
|
+
const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
|
|
45056
|
+
const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
|
|
45057
|
+
const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
|
|
45172
45058
|
const K = new Uint32Array([
|
|
45173
45059
|
1116352408,
|
|
45174
45060
|
1899447441,
|
|
@@ -50721,39 +50607,52 @@ const getHighlightColor = ({ activeThreadId, threadId, isInternal, editor }) =>
|
|
|
50721
50607
|
return `${color}${alpha}`;
|
|
50722
50608
|
};
|
|
50723
50609
|
const updateYdocDocxData = async (editor, ydoc) => {
|
|
50724
|
-
|
|
50725
|
-
|
|
50726
|
-
|
|
50727
|
-
|
|
50728
|
-
|
|
50729
|
-
|
|
50730
|
-
|
|
50731
|
-
|
|
50732
|
-
|
|
50733
|
-
|
|
50734
|
-
|
|
50735
|
-
|
|
50736
|
-
|
|
50737
|
-
|
|
50738
|
-
docx
|
|
50739
|
-
|
|
50740
|
-
|
|
50741
|
-
|
|
50742
|
-
|
|
50743
|
-
|
|
50744
|
-
|
|
50745
|
-
|
|
50746
|
-
|
|
50747
|
-
|
|
50748
|
-
|
|
50610
|
+
try {
|
|
50611
|
+
ydoc = ydoc || editor?.options?.ydoc;
|
|
50612
|
+
if (!ydoc) return;
|
|
50613
|
+
if (!editor || editor.isDestroyed) return;
|
|
50614
|
+
const metaMap = ydoc.getMap("meta");
|
|
50615
|
+
const docxValue = metaMap.get("docx");
|
|
50616
|
+
let docx = [];
|
|
50617
|
+
if (Array.isArray(docxValue)) {
|
|
50618
|
+
docx = [...docxValue];
|
|
50619
|
+
} else if (docxValue && typeof docxValue.toArray === "function") {
|
|
50620
|
+
docx = docxValue.toArray();
|
|
50621
|
+
} else if (docxValue && typeof docxValue[Symbol.iterator] === "function") {
|
|
50622
|
+
docx = Array.from(docxValue);
|
|
50623
|
+
}
|
|
50624
|
+
if (!docx.length && Array.isArray(editor.options.content)) {
|
|
50625
|
+
docx = [...editor.options.content];
|
|
50626
|
+
}
|
|
50627
|
+
const newXml = await editor.exportDocx({ getUpdatedDocs: true });
|
|
50628
|
+
if (!newXml || typeof newXml !== "object") return;
|
|
50629
|
+
let hasChanges = false;
|
|
50630
|
+
Object.keys(newXml).forEach((key2) => {
|
|
50631
|
+
const fileIndex = docx.findIndex((item) => item.name === key2);
|
|
50632
|
+
const existingContent = fileIndex > -1 ? docx[fileIndex].content : null;
|
|
50633
|
+
if (existingContent === newXml[key2]) {
|
|
50634
|
+
return;
|
|
50635
|
+
}
|
|
50636
|
+
hasChanges = true;
|
|
50637
|
+
if (fileIndex > -1) {
|
|
50638
|
+
docx.splice(fileIndex, 1);
|
|
50639
|
+
}
|
|
50640
|
+
docx.push({
|
|
50641
|
+
name: key2,
|
|
50642
|
+
content: newXml[key2]
|
|
50643
|
+
});
|
|
50749
50644
|
});
|
|
50750
|
-
|
|
50751
|
-
|
|
50752
|
-
|
|
50753
|
-
|
|
50754
|
-
|
|
50755
|
-
|
|
50756
|
-
|
|
50645
|
+
if (hasChanges || !docxValue) {
|
|
50646
|
+
ydoc.transact(
|
|
50647
|
+
() => {
|
|
50648
|
+
metaMap.set("docx", docx);
|
|
50649
|
+
},
|
|
50650
|
+
{ event: "docx-update", user: editor.options.user }
|
|
50651
|
+
);
|
|
50652
|
+
}
|
|
50653
|
+
} catch (error) {
|
|
50654
|
+
console.warn("[collaboration] Failed to update Ydoc docx data", error);
|
|
50655
|
+
}
|
|
50757
50656
|
};
|
|
50758
50657
|
const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
|
|
50759
50658
|
const applyStyleIsolationClass = (target) => {
|
|
@@ -54190,7 +54089,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
54190
54089
|
{ default: remarkStringify },
|
|
54191
54090
|
{ default: remarkGfm }
|
|
54192
54091
|
] = await Promise.all([
|
|
54193
|
-
import("./index-
|
|
54092
|
+
import("./index-BENzx4z6-DdFuGCwa.es.js"),
|
|
54194
54093
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
54195
54094
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
54196
54095
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -54408,7 +54307,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
54408
54307
|
* @returns {Object | void} Migration results
|
|
54409
54308
|
*/
|
|
54410
54309
|
processCollaborationMigrations() {
|
|
54411
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.34.
|
|
54310
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.34.7");
|
|
54412
54311
|
if (!this.options.ydoc) return;
|
|
54413
54312
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
54414
54313
|
let docVersion = metaMap.get("version");
|
|
@@ -56287,16 +56186,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
|
|
|
56287
56186
|
const { state: state2, dom } = view;
|
|
56288
56187
|
const { selection } = state2;
|
|
56289
56188
|
const containerRect = dom.getBoundingClientRect();
|
|
56290
|
-
let
|
|
56189
|
+
let x, y2;
|
|
56291
56190
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
56292
|
-
|
|
56191
|
+
x = eventLocation.clientX - containerRect.left;
|
|
56293
56192
|
y2 = eventLocation.clientY - containerRect.top;
|
|
56294
56193
|
} else {
|
|
56295
56194
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
56296
|
-
|
|
56195
|
+
x = cursorCoords.left - containerRect.left;
|
|
56297
56196
|
y2 = cursorCoords.top - containerRect.top;
|
|
56298
56197
|
}
|
|
56299
|
-
return { left:
|
|
56198
|
+
return { left: x, top: y2 };
|
|
56300
56199
|
}
|
|
56301
56200
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
56302
56201
|
const SlashMenu = Extension.create({
|
|
@@ -56575,17 +56474,17 @@ class StructuredContentViewBase {
|
|
|
56575
56474
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
56576
56475
|
return;
|
|
56577
56476
|
}
|
|
56578
|
-
let
|
|
56477
|
+
let x = 0;
|
|
56579
56478
|
let y2 = 0;
|
|
56580
56479
|
if (this.dom !== dragHandle) {
|
|
56581
56480
|
const domBox = this.dom.getBoundingClientRect();
|
|
56582
56481
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
56583
56482
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
56584
56483
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
56585
|
-
|
|
56484
|
+
x = handleBox.x - domBox.x + offsetX;
|
|
56586
56485
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
56587
56486
|
}
|
|
56588
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
56487
|
+
event.dataTransfer?.setDragImage(this.dom, x, y2);
|
|
56589
56488
|
const pos = this.getPos();
|
|
56590
56489
|
if (typeof pos !== "number") {
|
|
56591
56490
|
return;
|
|
@@ -64843,17 +64742,17 @@ function parseToRgba(color) {
|
|
|
64843
64742
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
64844
64743
|
if (reducedHexMatch) {
|
|
64845
64744
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
64846
|
-
return [...arr.slice(0, 3).map((
|
|
64745
|
+
return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
64847
64746
|
}
|
|
64848
64747
|
const hexMatch = hexRegex$1.exec(normalizedColor);
|
|
64849
64748
|
if (hexMatch) {
|
|
64850
64749
|
const arr = Array.from(hexMatch).slice(1);
|
|
64851
|
-
return [...arr.slice(0, 3).map((
|
|
64750
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
64852
64751
|
}
|
|
64853
64752
|
const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
|
|
64854
64753
|
if (rgbaMatch) {
|
|
64855
64754
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
64856
|
-
return [...arr.slice(0, 3).map((
|
|
64755
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
|
|
64857
64756
|
}
|
|
64858
64757
|
const hslaMatch = hslaRegex$1.exec(normalizedColor);
|
|
64859
64758
|
if (hslaMatch) {
|
|
@@ -64872,7 +64771,7 @@ function hash$2(str) {
|
|
|
64872
64771
|
}
|
|
64873
64772
|
return (hash2 >>> 0) % 2341;
|
|
64874
64773
|
}
|
|
64875
|
-
const colorToInt = (
|
|
64774
|
+
const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
|
|
64876
64775
|
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, next) => {
|
|
64877
64776
|
const key2 = colorToInt(next.substring(0, 3));
|
|
64878
64777
|
const hex2 = colorToInt(next.substring(3)).toString(16);
|
|
@@ -64936,8 +64835,8 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
64936
64835
|
};
|
|
64937
64836
|
function toHex(color) {
|
|
64938
64837
|
const [r2, g, b2, a] = parseToRgba(color);
|
|
64939
|
-
let hex2 = (
|
|
64940
|
-
const h2 = guard(0, 255,
|
|
64838
|
+
let hex2 = (x) => {
|
|
64839
|
+
const h2 = guard(0, 255, x).toString(16);
|
|
64941
64840
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
64942
64841
|
};
|
|
64943
64842
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
|
|
@@ -67041,10 +66940,10 @@ const Image = Node$1.create({
|
|
|
67041
66940
|
let minX = 0;
|
|
67042
66941
|
let minY = 0;
|
|
67043
66942
|
let maxY = 0;
|
|
67044
|
-
attrs.polygon.forEach(([
|
|
67045
|
-
if (floatRight &&
|
|
67046
|
-
if (
|
|
67047
|
-
if (
|
|
66943
|
+
attrs.polygon.forEach(([x, y2]) => {
|
|
66944
|
+
if (floatRight && x < horizontalOffset) horizontalOffset = x;
|
|
66945
|
+
if (x > maxX) maxX = x;
|
|
66946
|
+
if (x < minX) minX = x;
|
|
67048
66947
|
if (y2 > maxY) maxY = y2;
|
|
67049
66948
|
if (y2 < minY) minY = y2;
|
|
67050
66949
|
});
|
|
@@ -67053,7 +66952,7 @@ const Image = Node$1.create({
|
|
|
67053
66952
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
67054
66953
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
67055
66954
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
67056
|
-
const points = attrs.polygon.map(([
|
|
66955
|
+
const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
67057
66956
|
style2 += `shape-outside: polygon(${points});`;
|
|
67058
66957
|
}
|
|
67059
66958
|
break;
|
|
@@ -70707,13 +70606,13 @@ class ShapeGroupView {
|
|
|
70707
70606
|
createShapeElement(shape) {
|
|
70708
70607
|
const attrs = shape.attrs;
|
|
70709
70608
|
if (!attrs) return null;
|
|
70710
|
-
const
|
|
70609
|
+
const x = attrs.x || 0;
|
|
70711
70610
|
const y2 = attrs.y || 0;
|
|
70712
70611
|
const width = attrs.width || 100;
|
|
70713
70612
|
const height = attrs.height || 100;
|
|
70714
70613
|
const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
70715
70614
|
const transforms = [];
|
|
70716
|
-
transforms.push(`translate(${
|
|
70615
|
+
transforms.push(`translate(${x}, ${y2})`);
|
|
70717
70616
|
if (attrs.rotation !== 0) {
|
|
70718
70617
|
transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
|
|
70719
70618
|
}
|
|
@@ -72440,7 +72339,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
72440
72339
|
}
|
|
72441
72340
|
var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
|
|
72442
72341
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
72443
|
-
var
|
|
72342
|
+
var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
72444
72343
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
72445
72344
|
var width = clientRect2.width / scaleX;
|
|
72446
72345
|
var height = clientRect2.height / scaleY;
|
|
@@ -72448,10 +72347,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
72448
72347
|
width,
|
|
72449
72348
|
height,
|
|
72450
72349
|
top: y2,
|
|
72451
|
-
right:
|
|
72350
|
+
right: x + width,
|
|
72452
72351
|
bottom: y2 + height,
|
|
72453
|
-
left:
|
|
72454
|
-
x
|
|
72352
|
+
left: x,
|
|
72353
|
+
x,
|
|
72455
72354
|
y: y2
|
|
72456
72355
|
};
|
|
72457
72356
|
}
|
|
@@ -72652,25 +72551,25 @@ var unsetSides = {
|
|
|
72652
72551
|
left: "auto"
|
|
72653
72552
|
};
|
|
72654
72553
|
function roundOffsetsByDPR(_ref, win) {
|
|
72655
|
-
var
|
|
72554
|
+
var x = _ref.x, y2 = _ref.y;
|
|
72656
72555
|
var dpr = win.devicePixelRatio || 1;
|
|
72657
72556
|
return {
|
|
72658
|
-
x: round$1(
|
|
72557
|
+
x: round$1(x * dpr) / dpr || 0,
|
|
72659
72558
|
y: round$1(y2 * dpr) / dpr || 0
|
|
72660
72559
|
};
|
|
72661
72560
|
}
|
|
72662
72561
|
function mapToStyles(_ref2) {
|
|
72663
72562
|
var _Object$assign2;
|
|
72664
72563
|
var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
|
72665
|
-
var _offsets$x = offsets.x,
|
|
72564
|
+
var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
72666
72565
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
72667
|
-
x
|
|
72566
|
+
x,
|
|
72668
72567
|
y: y2
|
|
72669
72568
|
}) : {
|
|
72670
|
-
x
|
|
72569
|
+
x,
|
|
72671
72570
|
y: y2
|
|
72672
72571
|
};
|
|
72673
|
-
|
|
72572
|
+
x = _ref3.x;
|
|
72674
72573
|
y2 = _ref3.y;
|
|
72675
72574
|
var hasX = offsets.hasOwnProperty("x");
|
|
72676
72575
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -72704,27 +72603,27 @@ function mapToStyles(_ref2) {
|
|
|
72704
72603
|
// $FlowFixMe[prop-missing]
|
|
72705
72604
|
offsetParent[widthProp]
|
|
72706
72605
|
);
|
|
72707
|
-
|
|
72708
|
-
|
|
72606
|
+
x -= offsetX - popperRect.width;
|
|
72607
|
+
x *= gpuAcceleration ? 1 : -1;
|
|
72709
72608
|
}
|
|
72710
72609
|
}
|
|
72711
72610
|
var commonStyles = Object.assign({
|
|
72712
72611
|
position
|
|
72713
72612
|
}, adaptive && unsetSides);
|
|
72714
72613
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
72715
|
-
x
|
|
72614
|
+
x,
|
|
72716
72615
|
y: y2
|
|
72717
72616
|
}, getWindow$1(popper2)) : {
|
|
72718
|
-
x
|
|
72617
|
+
x,
|
|
72719
72618
|
y: y2
|
|
72720
72619
|
};
|
|
72721
|
-
|
|
72620
|
+
x = _ref4.x;
|
|
72722
72621
|
y2 = _ref4.y;
|
|
72723
72622
|
if (gpuAcceleration) {
|
|
72724
72623
|
var _Object$assign;
|
|
72725
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
72624
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y2 + "px)" : "translate3d(" + x + "px, " + y2 + "px, 0)", _Object$assign));
|
|
72726
72625
|
}
|
|
72727
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
72626
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
72728
72627
|
}
|
|
72729
72628
|
function computeStyles(_ref5) {
|
|
72730
72629
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -72838,21 +72737,21 @@ function getViewportRect$1(element, strategy) {
|
|
|
72838
72737
|
var visualViewport = win.visualViewport;
|
|
72839
72738
|
var width = html.clientWidth;
|
|
72840
72739
|
var height = html.clientHeight;
|
|
72841
|
-
var
|
|
72740
|
+
var x = 0;
|
|
72842
72741
|
var y2 = 0;
|
|
72843
72742
|
if (visualViewport) {
|
|
72844
72743
|
width = visualViewport.width;
|
|
72845
72744
|
height = visualViewport.height;
|
|
72846
72745
|
var layoutViewport = isLayoutViewport();
|
|
72847
72746
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
72848
|
-
|
|
72747
|
+
x = visualViewport.offsetLeft;
|
|
72849
72748
|
y2 = visualViewport.offsetTop;
|
|
72850
72749
|
}
|
|
72851
72750
|
}
|
|
72852
72751
|
return {
|
|
72853
72752
|
width,
|
|
72854
72753
|
height,
|
|
72855
|
-
x:
|
|
72754
|
+
x: x + getWindowScrollBarX$1(element),
|
|
72856
72755
|
y: y2
|
|
72857
72756
|
};
|
|
72858
72757
|
}
|
|
@@ -72863,15 +72762,15 @@ function getDocumentRect$1(element) {
|
|
|
72863
72762
|
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
72864
72763
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
72865
72764
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
72866
|
-
var
|
|
72765
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
72867
72766
|
var y2 = -winScroll.scrollTop;
|
|
72868
72767
|
if (getComputedStyle$2(body || html).direction === "rtl") {
|
|
72869
|
-
|
|
72768
|
+
x += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
72870
72769
|
}
|
|
72871
72770
|
return {
|
|
72872
72771
|
width,
|
|
72873
72772
|
height,
|
|
72874
|
-
x
|
|
72773
|
+
x,
|
|
72875
72774
|
y: y2
|
|
72876
72775
|
};
|
|
72877
72776
|
}
|
|
@@ -73248,9 +73147,9 @@ function offset(_ref2) {
|
|
|
73248
73147
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
73249
73148
|
return acc;
|
|
73250
73149
|
}, {});
|
|
73251
|
-
var _data$state$placement = data[state2.placement],
|
|
73150
|
+
var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
73252
73151
|
if (state2.modifiersData.popperOffsets != null) {
|
|
73253
|
-
state2.modifiersData.popperOffsets.x +=
|
|
73152
|
+
state2.modifiersData.popperOffsets.x += x;
|
|
73254
73153
|
state2.modifiersData.popperOffsets.y += y2;
|
|
73255
73154
|
}
|
|
73256
73155
|
state2.modifiersData[name] = data;
|
|
@@ -75201,7 +75100,7 @@ function getPaddingObject(padding) {
|
|
|
75201
75100
|
}
|
|
75202
75101
|
function rectToClientRect(rect) {
|
|
75203
75102
|
const {
|
|
75204
|
-
x
|
|
75103
|
+
x,
|
|
75205
75104
|
y: y2,
|
|
75206
75105
|
width,
|
|
75207
75106
|
height
|
|
@@ -75210,10 +75109,10 @@ function rectToClientRect(rect) {
|
|
|
75210
75109
|
width,
|
|
75211
75110
|
height,
|
|
75212
75111
|
top: y2,
|
|
75213
|
-
left:
|
|
75214
|
-
right:
|
|
75112
|
+
left: x,
|
|
75113
|
+
right: x + width,
|
|
75215
75114
|
bottom: y2 + height,
|
|
75216
|
-
x
|
|
75115
|
+
x,
|
|
75217
75116
|
y: y2
|
|
75218
75117
|
};
|
|
75219
75118
|
}
|
|
@@ -75287,7 +75186,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
75287
75186
|
strategy
|
|
75288
75187
|
});
|
|
75289
75188
|
let {
|
|
75290
|
-
x
|
|
75189
|
+
x,
|
|
75291
75190
|
y: y2
|
|
75292
75191
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
75293
75192
|
let statefulPlacement = placement;
|
|
@@ -75304,7 +75203,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
75304
75203
|
data,
|
|
75305
75204
|
reset
|
|
75306
75205
|
} = await fn2({
|
|
75307
|
-
x
|
|
75206
|
+
x,
|
|
75308
75207
|
y: y2,
|
|
75309
75208
|
initialPlacement: placement,
|
|
75310
75209
|
placement: statefulPlacement,
|
|
@@ -75317,7 +75216,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
75317
75216
|
floating
|
|
75318
75217
|
}
|
|
75319
75218
|
});
|
|
75320
|
-
|
|
75219
|
+
x = nextX != null ? nextX : x;
|
|
75321
75220
|
y2 = nextY != null ? nextY : y2;
|
|
75322
75221
|
middlewareData = {
|
|
75323
75222
|
...middlewareData,
|
|
@@ -75340,7 +75239,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
75340
75239
|
}) : reset.rects;
|
|
75341
75240
|
}
|
|
75342
75241
|
({
|
|
75343
|
-
x
|
|
75242
|
+
x,
|
|
75344
75243
|
y: y2
|
|
75345
75244
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
75346
75245
|
}
|
|
@@ -75348,7 +75247,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
75348
75247
|
}
|
|
75349
75248
|
}
|
|
75350
75249
|
return {
|
|
75351
|
-
x
|
|
75250
|
+
x,
|
|
75352
75251
|
y: y2,
|
|
75353
75252
|
placement: statefulPlacement,
|
|
75354
75253
|
strategy,
|
|
@@ -75361,7 +75260,7 @@ async function detectOverflow(state2, options) {
|
|
|
75361
75260
|
options = {};
|
|
75362
75261
|
}
|
|
75363
75262
|
const {
|
|
75364
|
-
x
|
|
75263
|
+
x,
|
|
75365
75264
|
y: y2,
|
|
75366
75265
|
platform: platform2,
|
|
75367
75266
|
rects,
|
|
@@ -75385,7 +75284,7 @@ async function detectOverflow(state2, options) {
|
|
|
75385
75284
|
strategy
|
|
75386
75285
|
}));
|
|
75387
75286
|
const rect = elementContext === "floating" ? {
|
|
75388
|
-
x
|
|
75287
|
+
x,
|
|
75389
75288
|
y: y2,
|
|
75390
75289
|
width: rects.floating.width,
|
|
75391
75290
|
height: rects.floating.height
|
|
@@ -75654,16 +75553,16 @@ function getScale(element) {
|
|
|
75654
75553
|
height,
|
|
75655
75554
|
$: $2
|
|
75656
75555
|
} = getCssDimensions(domElement);
|
|
75657
|
-
let
|
|
75556
|
+
let x = ($2 ? round(rect.width) : rect.width) / width;
|
|
75658
75557
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
75659
|
-
if (!
|
|
75660
|
-
|
|
75558
|
+
if (!x || !Number.isFinite(x)) {
|
|
75559
|
+
x = 1;
|
|
75661
75560
|
}
|
|
75662
75561
|
if (!y2 || !Number.isFinite(y2)) {
|
|
75663
75562
|
y2 = 1;
|
|
75664
75563
|
}
|
|
75665
75564
|
return {
|
|
75666
|
-
x
|
|
75565
|
+
x,
|
|
75667
75566
|
y: y2
|
|
75668
75567
|
};
|
|
75669
75568
|
}
|
|
@@ -75707,7 +75606,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
75707
75606
|
}
|
|
75708
75607
|
}
|
|
75709
75608
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
75710
|
-
let
|
|
75609
|
+
let x = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
75711
75610
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
75712
75611
|
let width = clientRect2.width / scale.x;
|
|
75713
75612
|
let height = clientRect2.height / scale.y;
|
|
@@ -75722,11 +75621,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
75722
75621
|
const css = getComputedStyle$1(currentIFrame);
|
|
75723
75622
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
75724
75623
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
75725
|
-
|
|
75624
|
+
x *= iframeScale.x;
|
|
75726
75625
|
y2 *= iframeScale.y;
|
|
75727
75626
|
width *= iframeScale.x;
|
|
75728
75627
|
height *= iframeScale.y;
|
|
75729
|
-
|
|
75628
|
+
x += left2;
|
|
75730
75629
|
y2 += top2;
|
|
75731
75630
|
currentWin = getWindow(currentIFrame);
|
|
75732
75631
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -75735,7 +75634,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
75735
75634
|
return rectToClientRect({
|
|
75736
75635
|
width,
|
|
75737
75636
|
height,
|
|
75738
|
-
x
|
|
75637
|
+
x,
|
|
75739
75638
|
y: y2
|
|
75740
75639
|
});
|
|
75741
75640
|
}
|
|
@@ -75748,10 +75647,10 @@ function getWindowScrollBarX(element, rect) {
|
|
|
75748
75647
|
}
|
|
75749
75648
|
function getHTMLOffset(documentElement, scroll) {
|
|
75750
75649
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
75751
|
-
const
|
|
75650
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
75752
75651
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
75753
75652
|
return {
|
|
75754
|
-
x
|
|
75653
|
+
x,
|
|
75755
75654
|
y: y2
|
|
75756
75655
|
};
|
|
75757
75656
|
}
|
|
@@ -75803,15 +75702,15 @@ function getDocumentRect(element) {
|
|
|
75803
75702
|
const body = element.ownerDocument.body;
|
|
75804
75703
|
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
75805
75704
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
75806
|
-
let
|
|
75705
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
75807
75706
|
const y2 = -scroll.scrollTop;
|
|
75808
75707
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
75809
|
-
|
|
75708
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
75810
75709
|
}
|
|
75811
75710
|
return {
|
|
75812
75711
|
width,
|
|
75813
75712
|
height,
|
|
75814
|
-
x
|
|
75713
|
+
x,
|
|
75815
75714
|
y: y2
|
|
75816
75715
|
};
|
|
75817
75716
|
}
|
|
@@ -75822,14 +75721,14 @@ function getViewportRect(element, strategy) {
|
|
|
75822
75721
|
const visualViewport = win.visualViewport;
|
|
75823
75722
|
let width = html.clientWidth;
|
|
75824
75723
|
let height = html.clientHeight;
|
|
75825
|
-
let
|
|
75724
|
+
let x = 0;
|
|
75826
75725
|
let y2 = 0;
|
|
75827
75726
|
if (visualViewport) {
|
|
75828
75727
|
width = visualViewport.width;
|
|
75829
75728
|
height = visualViewport.height;
|
|
75830
75729
|
const visualViewportBased = isWebKit();
|
|
75831
75730
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
75832
|
-
|
|
75731
|
+
x = visualViewport.offsetLeft;
|
|
75833
75732
|
y2 = visualViewport.offsetTop;
|
|
75834
75733
|
}
|
|
75835
75734
|
}
|
|
@@ -75849,7 +75748,7 @@ function getViewportRect(element, strategy) {
|
|
|
75849
75748
|
return {
|
|
75850
75749
|
width,
|
|
75851
75750
|
height,
|
|
75852
|
-
x
|
|
75751
|
+
x,
|
|
75853
75752
|
y: y2
|
|
75854
75753
|
};
|
|
75855
75754
|
}
|
|
@@ -75861,12 +75760,12 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
75861
75760
|
const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
|
|
75862
75761
|
const width = element.clientWidth * scale.x;
|
|
75863
75762
|
const height = element.clientHeight * scale.y;
|
|
75864
|
-
const
|
|
75763
|
+
const x = left2 * scale.x;
|
|
75865
75764
|
const y2 = top2 * scale.y;
|
|
75866
75765
|
return {
|
|
75867
75766
|
width,
|
|
75868
75767
|
height,
|
|
75869
|
-
x
|
|
75768
|
+
x,
|
|
75870
75769
|
y: y2
|
|
75871
75770
|
};
|
|
75872
75771
|
}
|
|
@@ -75986,10 +75885,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
75986
75885
|
setLeftRTLScrollbarOffset();
|
|
75987
75886
|
}
|
|
75988
75887
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
75989
|
-
const
|
|
75888
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
75990
75889
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
75991
75890
|
return {
|
|
75992
|
-
x
|
|
75891
|
+
x,
|
|
75993
75892
|
y: y2,
|
|
75994
75893
|
width: rect.width,
|
|
75995
75894
|
height: rect.height
|
|
@@ -76868,22 +76767,22 @@ function createFloatingSeparator(separator, editor) {
|
|
|
76868
76767
|
const rect = elements.reference.getBoundingClientRect();
|
|
76869
76768
|
const containerRect = editorElement.getBoundingClientRect();
|
|
76870
76769
|
const scaleFactor = getScaleFactor(editorElement);
|
|
76871
|
-
const
|
|
76770
|
+
const x = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
76872
76771
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
76873
76772
|
const width = Math.round(rect.width / scaleFactor);
|
|
76874
76773
|
const height = Math.round(rect.height / scaleFactor);
|
|
76875
76774
|
return {
|
|
76876
|
-
x
|
|
76775
|
+
x,
|
|
76877
76776
|
y: y2,
|
|
76878
76777
|
data: { width, height }
|
|
76879
76778
|
};
|
|
76880
76779
|
}
|
|
76881
76780
|
}
|
|
76882
76781
|
]
|
|
76883
|
-
}).then(({ x
|
|
76782
|
+
}).then(({ x, y: y2, middlewareData }) => {
|
|
76884
76783
|
Object.assign(floatingSeparator.style, {
|
|
76885
76784
|
top: `${y2}px`,
|
|
76886
|
-
left: `${
|
|
76785
|
+
left: `${x}px`,
|
|
76887
76786
|
width: `${middlewareData.copy.width}px`,
|
|
76888
76787
|
height: `${middlewareData.copy.height}px`,
|
|
76889
76788
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -79942,14 +79841,14 @@ function ensureViewBoundingRect() {
|
|
|
79942
79841
|
}
|
|
79943
79842
|
return viewMeasurer.getBoundingClientRect();
|
|
79944
79843
|
}
|
|
79945
|
-
function getPointRect(
|
|
79844
|
+
function getPointRect(x, y2) {
|
|
79946
79845
|
const viewRect = ensureViewBoundingRect();
|
|
79947
79846
|
return {
|
|
79948
79847
|
top: y2,
|
|
79949
|
-
left:
|
|
79848
|
+
left: x,
|
|
79950
79849
|
height: 0,
|
|
79951
79850
|
width: 0,
|
|
79952
|
-
right: viewRect.width -
|
|
79851
|
+
right: viewRect.width - x,
|
|
79953
79852
|
bottom: viewRect.height - y2
|
|
79954
79853
|
};
|
|
79955
79854
|
}
|
|
@@ -80355,7 +80254,7 @@ const LazyTeleport = defineComponent({
|
|
|
80355
80254
|
};
|
|
80356
80255
|
},
|
|
80357
80256
|
render() {
|
|
80358
|
-
return this.showTeleport ? this.disabled ? getSlot("lazy-teleport", this.$slots) : h(Teleport, {
|
|
80257
|
+
return this.showTeleport ? this.disabled ? getSlot("lazy-teleport", this.$slots) : h$1(Teleport, {
|
|
80359
80258
|
disabled: this.disabled,
|
|
80360
80259
|
to: this.mergedTo
|
|
80361
80260
|
}, getSlot("lazy-teleport", this.$slots)) : null;
|
|
@@ -80787,8 +80686,8 @@ const VFollower = defineComponent({
|
|
|
80787
80686
|
if (follower === null)
|
|
80788
80687
|
return;
|
|
80789
80688
|
const target = VBinder.targetRef;
|
|
80790
|
-
const { x
|
|
80791
|
-
const targetRect =
|
|
80689
|
+
const { x, y: y2, overlap } = props;
|
|
80690
|
+
const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
|
|
80792
80691
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
80793
80692
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
80794
80693
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -80883,18 +80782,18 @@ const VFollower = defineComponent({
|
|
|
80883
80782
|
};
|
|
80884
80783
|
},
|
|
80885
80784
|
render() {
|
|
80886
|
-
return h(LazyTeleport, {
|
|
80785
|
+
return h$1(LazyTeleport, {
|
|
80887
80786
|
show: this.show,
|
|
80888
80787
|
to: this.mergedTo,
|
|
80889
80788
|
disabled: this.teleportDisabled
|
|
80890
80789
|
}, {
|
|
80891
80790
|
default: () => {
|
|
80892
80791
|
var _a2, _b;
|
|
80893
|
-
const vNode = h("div", {
|
|
80792
|
+
const vNode = h$1("div", {
|
|
80894
80793
|
class: ["v-binder-follower-container", this.containerClass],
|
|
80895
80794
|
ref: "offsetContainerRef"
|
|
80896
80795
|
}, [
|
|
80897
|
-
h("div", {
|
|
80796
|
+
h$1("div", {
|
|
80898
80797
|
class: "v-binder-follower-content",
|
|
80899
80798
|
ref: "followerRef"
|
|
80900
80799
|
}, (_b = (_a2 = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a2))
|
|
@@ -80958,8 +80857,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
|
|
|
80958
80857
|
return ResizeObserverSize2;
|
|
80959
80858
|
})();
|
|
80960
80859
|
var DOMRectReadOnly = (function() {
|
|
80961
|
-
function DOMRectReadOnly2(
|
|
80962
|
-
this.x =
|
|
80860
|
+
function DOMRectReadOnly2(x, y2, width, height) {
|
|
80861
|
+
this.x = x;
|
|
80963
80862
|
this.y = y2;
|
|
80964
80863
|
this.width = width;
|
|
80965
80864
|
this.height = height;
|
|
@@ -80970,8 +80869,8 @@ var DOMRectReadOnly = (function() {
|
|
|
80970
80869
|
return freeze(this);
|
|
80971
80870
|
}
|
|
80972
80871
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
80973
|
-
var _a2 = this,
|
|
80974
|
-
return { x
|
|
80872
|
+
var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
80873
|
+
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
80975
80874
|
};
|
|
80976
80875
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
80977
80876
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -81726,8 +81625,8 @@ const FocusTrap = defineComponent({
|
|
|
81726
81625
|
if (this.disabled)
|
|
81727
81626
|
return defaultSlot();
|
|
81728
81627
|
const { active, focusableStyle } = this;
|
|
81729
|
-
return h(Fragment$1, null, [
|
|
81730
|
-
h("div", {
|
|
81628
|
+
return h$1(Fragment$1, null, [
|
|
81629
|
+
h$1("div", {
|
|
81731
81630
|
"aria-hidden": "true",
|
|
81732
81631
|
tabindex: active ? "0" : "-1",
|
|
81733
81632
|
ref: "focusableStartRef",
|
|
@@ -81735,7 +81634,7 @@ const FocusTrap = defineComponent({
|
|
|
81735
81634
|
onFocus: this.handleStartFocus
|
|
81736
81635
|
}),
|
|
81737
81636
|
defaultSlot(),
|
|
81738
|
-
h("div", {
|
|
81637
|
+
h$1("div", {
|
|
81739
81638
|
"aria-hidden": "true",
|
|
81740
81639
|
style: focusableStyle,
|
|
81741
81640
|
ref: "focusableEndRef",
|
|
@@ -83439,11 +83338,11 @@ useTheme.props = {
|
|
|
83439
83338
|
const ChevronRightIcon = defineComponent({
|
|
83440
83339
|
name: "ChevronRight",
|
|
83441
83340
|
render() {
|
|
83442
|
-
return h("svg", {
|
|
83341
|
+
return h$1("svg", {
|
|
83443
83342
|
viewBox: "0 0 16 16",
|
|
83444
83343
|
fill: "none",
|
|
83445
83344
|
xmlns: "http://www.w3.org/2000/svg"
|
|
83446
|
-
}, h("path", {
|
|
83345
|
+
}, h$1("path", {
|
|
83447
83346
|
d: "M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",
|
|
83448
83347
|
fill: "currentColor"
|
|
83449
83348
|
}));
|
|
@@ -84416,16 +84315,16 @@ const Scrollbar = defineComponent({
|
|
|
84416
84315
|
if (!this.scrollable) return (_a2 = $slots.default) === null || _a2 === void 0 ? void 0 : _a2.call($slots);
|
|
84417
84316
|
const triggerIsNone = this.trigger === "none";
|
|
84418
84317
|
const createYRail = (className, style2) => {
|
|
84419
|
-
return h("div", {
|
|
84318
|
+
return h$1("div", {
|
|
84420
84319
|
ref: "yRailRef",
|
|
84421
84320
|
class: [`${mergedClsPrefix}-scrollbar-rail`, `${mergedClsPrefix}-scrollbar-rail--vertical`, `${mergedClsPrefix}-scrollbar-rail--vertical--${yPlacement}`, className],
|
|
84422
84321
|
"data-scrollbar-rail": true,
|
|
84423
84322
|
style: [style2 || "", this.verticalRailStyle],
|
|
84424
84323
|
"aria-hidden": true
|
|
84425
|
-
}, h(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
|
|
84324
|
+
}, h$1(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
|
|
84426
84325
|
name: "fade-in-transition"
|
|
84427
84326
|
}, {
|
|
84428
|
-
default: () => this.needYBar && this.isShowYBar && !this.isIos ? h("div", {
|
|
84327
|
+
default: () => this.needYBar && this.isShowYBar && !this.isIos ? h$1("div", {
|
|
84429
84328
|
class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`,
|
|
84430
84329
|
style: {
|
|
84431
84330
|
height: this.yBarSizePx,
|
|
@@ -84438,24 +84337,24 @@ const Scrollbar = defineComponent({
|
|
|
84438
84337
|
const createChildren = () => {
|
|
84439
84338
|
var _a22, _b;
|
|
84440
84339
|
(_a22 = this.onRender) === null || _a22 === void 0 ? void 0 : _a22.call(this);
|
|
84441
|
-
return h("div", mergeProps(this.$attrs, {
|
|
84340
|
+
return h$1("div", mergeProps(this.$attrs, {
|
|
84442
84341
|
role: "none",
|
|
84443
84342
|
ref: "wrapperRef",
|
|
84444
84343
|
class: [`${mergedClsPrefix}-scrollbar`, this.themeClass, rtlEnabled && `${mergedClsPrefix}-scrollbar--rtl`],
|
|
84445
84344
|
style: this.cssVars,
|
|
84446
84345
|
onMouseenter: triggerDisplayManually ? void 0 : this.handleMouseEnterWrapper,
|
|
84447
84346
|
onMouseleave: triggerDisplayManually ? void 0 : this.handleMouseLeaveWrapper
|
|
84448
|
-
}), [this.container ? (_b = $slots.default) === null || _b === void 0 ? void 0 : _b.call($slots) : h("div", {
|
|
84347
|
+
}), [this.container ? (_b = $slots.default) === null || _b === void 0 ? void 0 : _b.call($slots) : h$1("div", {
|
|
84449
84348
|
role: "none",
|
|
84450
84349
|
ref: "containerRef",
|
|
84451
84350
|
class: [`${mergedClsPrefix}-scrollbar-container`, this.containerClass],
|
|
84452
84351
|
style: this.containerStyle,
|
|
84453
84352
|
onScroll: this.handleScroll,
|
|
84454
84353
|
onWheel: this.onWheel
|
|
84455
|
-
}, h(VResizeObserver, {
|
|
84354
|
+
}, h$1(VResizeObserver, {
|
|
84456
84355
|
onResize: this.handleContentResize
|
|
84457
84356
|
}, {
|
|
84458
|
-
default: () => h("div", {
|
|
84357
|
+
default: () => h$1("div", {
|
|
84459
84358
|
ref: "contentRef",
|
|
84460
84359
|
role: "none",
|
|
84461
84360
|
style: [{
|
|
@@ -84463,16 +84362,16 @@ const Scrollbar = defineComponent({
|
|
|
84463
84362
|
}, this.contentStyle],
|
|
84464
84363
|
class: [`${mergedClsPrefix}-scrollbar-content`, this.contentClass]
|
|
84465
84364
|
}, $slots)
|
|
84466
|
-
})), internalHoistYRail ? null : createYRail(void 0, void 0), xScrollable && h("div", {
|
|
84365
|
+
})), internalHoistYRail ? null : createYRail(void 0, void 0), xScrollable && h$1("div", {
|
|
84467
84366
|
ref: "xRailRef",
|
|
84468
84367
|
class: [`${mergedClsPrefix}-scrollbar-rail`, `${mergedClsPrefix}-scrollbar-rail--horizontal`, `${mergedClsPrefix}-scrollbar-rail--horizontal--${xPlacement}`],
|
|
84469
84368
|
style: this.horizontalRailStyle,
|
|
84470
84369
|
"data-scrollbar-rail": true,
|
|
84471
84370
|
"aria-hidden": true
|
|
84472
|
-
}, h(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
|
|
84371
|
+
}, h$1(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
|
|
84473
84372
|
name: "fade-in-transition"
|
|
84474
84373
|
}, {
|
|
84475
|
-
default: () => this.needXBar && this.isShowXBar && !this.isIos ? h("div", {
|
|
84374
|
+
default: () => this.needXBar && this.isShowXBar && !this.isIos ? h$1("div", {
|
|
84476
84375
|
class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`,
|
|
84477
84376
|
style: {
|
|
84478
84377
|
width: this.xBarSizePx,
|
|
@@ -84483,13 +84382,13 @@ const Scrollbar = defineComponent({
|
|
|
84483
84382
|
}) : null
|
|
84484
84383
|
}))]);
|
|
84485
84384
|
};
|
|
84486
|
-
const scrollbarNode = this.container ? createChildren() : h(VResizeObserver, {
|
|
84385
|
+
const scrollbarNode = this.container ? createChildren() : h$1(VResizeObserver, {
|
|
84487
84386
|
onResize: this.handleContainerResize
|
|
84488
84387
|
}, {
|
|
84489
84388
|
default: createChildren
|
|
84490
84389
|
});
|
|
84491
84390
|
if (internalHoistYRail) {
|
|
84492
|
-
return h(Fragment$1, null, scrollbarNode, createYRail(this.themeClass, this.cssVars));
|
|
84391
|
+
return h$1(Fragment$1, null, scrollbarNode, createYRail(this.themeClass, this.cssVars));
|
|
84493
84392
|
} else {
|
|
84494
84393
|
return scrollbarNode;
|
|
84495
84394
|
}
|
|
@@ -85379,11 +85278,11 @@ function renderArrow({
|
|
|
85379
85278
|
arrowWrapperStyle,
|
|
85380
85279
|
clsPrefix
|
|
85381
85280
|
}) {
|
|
85382
|
-
return h("div", {
|
|
85281
|
+
return h$1("div", {
|
|
85383
85282
|
key: "__popover-arrow__",
|
|
85384
85283
|
style: arrowWrapperStyle,
|
|
85385
85284
|
class: [`${clsPrefix}-popover-arrow-wrapper`, arrowWrapperClass]
|
|
85386
|
-
}, h("div", {
|
|
85285
|
+
}, h$1("div", {
|
|
85387
85286
|
class: [`${clsPrefix}-popover-arrow`, arrowClass],
|
|
85388
85287
|
style: arrowStyle
|
|
85389
85288
|
}));
|
|
@@ -85581,26 +85480,26 @@ const NPopoverBody = defineComponent({
|
|
|
85581
85480
|
const hasHeaderOrFooter = !isSlotEmpty(slots.header) || !isSlotEmpty(slots.footer);
|
|
85582
85481
|
const renderContentInnerNode = () => {
|
|
85583
85482
|
var _a2, _b;
|
|
85584
|
-
const body = hasHeaderOrFooter ? h(Fragment$1, null, resolveWrappedSlot(slots.header, (children) => {
|
|
85585
|
-
return children ? h("div", {
|
|
85483
|
+
const body = hasHeaderOrFooter ? h$1(Fragment$1, null, resolveWrappedSlot(slots.header, (children) => {
|
|
85484
|
+
return children ? h$1("div", {
|
|
85586
85485
|
class: [`${mergedClsPrefix}-popover__header`, props.headerClass],
|
|
85587
85486
|
style: props.headerStyle
|
|
85588
85487
|
}, children) : null;
|
|
85589
85488
|
}), resolveWrappedSlot(slots.default, (children) => {
|
|
85590
|
-
return children ? h("div", {
|
|
85489
|
+
return children ? h$1("div", {
|
|
85591
85490
|
class: [`${mergedClsPrefix}-popover__content`, props.contentClass],
|
|
85592
85491
|
style: props.contentStyle
|
|
85593
85492
|
}, slots) : null;
|
|
85594
85493
|
}), resolveWrappedSlot(slots.footer, (children) => {
|
|
85595
|
-
return children ? h("div", {
|
|
85494
|
+
return children ? h$1("div", {
|
|
85596
85495
|
class: [`${mergedClsPrefix}-popover__footer`, props.footerClass],
|
|
85597
85496
|
style: props.footerStyle
|
|
85598
85497
|
}, children) : null;
|
|
85599
|
-
})) : props.scrollable ? (_a2 = slots.default) === null || _a2 === void 0 ? void 0 : _a2.call(slots) : h("div", {
|
|
85498
|
+
})) : props.scrollable ? (_a2 = slots.default) === null || _a2 === void 0 ? void 0 : _a2.call(slots) : h$1("div", {
|
|
85600
85499
|
class: [`${mergedClsPrefix}-popover__content`, props.contentClass],
|
|
85601
85500
|
style: props.contentStyle
|
|
85602
85501
|
}, slots);
|
|
85603
|
-
const maybeScrollableBody = props.scrollable ? h(XScrollbar, {
|
|
85502
|
+
const maybeScrollableBody = props.scrollable ? h$1(XScrollbar, {
|
|
85604
85503
|
themeOverrides: themeRef.value.peerOverrides.Scrollbar,
|
|
85605
85504
|
theme: themeRef.value.peers.Scrollbar,
|
|
85606
85505
|
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
|
|
@@ -85617,7 +85516,7 @@ const NPopoverBody = defineComponent({
|
|
|
85617
85516
|
}) : null;
|
|
85618
85517
|
return [maybeScrollableBody, arrow2];
|
|
85619
85518
|
};
|
|
85620
|
-
contentNode = h("div", mergeProps({
|
|
85519
|
+
contentNode = h$1("div", mergeProps({
|
|
85621
85520
|
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v2) => `${mergedClsPrefix}-${v2}`), {
|
|
85622
85521
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
85623
85522
|
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
@@ -85631,7 +85530,7 @@ const NPopoverBody = defineComponent({
|
|
|
85631
85530
|
onKeydown: NPopover2.handleKeydown,
|
|
85632
85531
|
onMouseenter: handleMouseEnter,
|
|
85633
85532
|
onMouseleave: handleMouseLeave2
|
|
85634
|
-
}, attrs), internalTrapFocus ? h(FocusTrap, {
|
|
85533
|
+
}, attrs), internalTrapFocus ? h$1(FocusTrap, {
|
|
85635
85534
|
active: props.show,
|
|
85636
85535
|
autoFocus: true
|
|
85637
85536
|
}, {
|
|
@@ -85663,7 +85562,7 @@ const NPopoverBody = defineComponent({
|
|
|
85663
85562
|
};
|
|
85664
85563
|
},
|
|
85665
85564
|
render() {
|
|
85666
|
-
return h(VFollower, {
|
|
85565
|
+
return h$1(VFollower, {
|
|
85667
85566
|
ref: "followerRef",
|
|
85668
85567
|
zIndex: this.zIndex,
|
|
85669
85568
|
show: this.show,
|
|
@@ -85679,7 +85578,7 @@ const NPopoverBody = defineComponent({
|
|
|
85679
85578
|
teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey
|
|
85680
85579
|
}, {
|
|
85681
85580
|
default: () => {
|
|
85682
|
-
return this.animated ? h(Transition, {
|
|
85581
|
+
return this.animated ? h$1(Transition, {
|
|
85683
85582
|
name: "popover-transition",
|
|
85684
85583
|
appear: this.isMounted,
|
|
85685
85584
|
// Don't use watch to enable follower, since the transition may
|
|
@@ -86067,7 +85966,7 @@ const NPopover = defineComponent({
|
|
|
86067
85966
|
triggerVNode = getFirstSlotVNode(slots, "trigger");
|
|
86068
85967
|
if (triggerVNode) {
|
|
86069
85968
|
triggerVNode = cloneVNode(triggerVNode);
|
|
86070
|
-
triggerVNode = triggerVNode.type === Text$2 ? h("span", [triggerVNode]) : triggerVNode;
|
|
85969
|
+
triggerVNode = triggerVNode.type === Text$2 ? h$1("span", [triggerVNode]) : triggerVNode;
|
|
86071
85970
|
const handlers2 = {
|
|
86072
85971
|
onClick: this.handleClick,
|
|
86073
85972
|
onMouseenter: this.handleMouseEnter,
|
|
@@ -86125,7 +86024,7 @@ const NPopover = defineComponent({
|
|
|
86125
86024
|
}
|
|
86126
86025
|
}
|
|
86127
86026
|
}
|
|
86128
|
-
return h(Binder, {
|
|
86027
|
+
return h$1(Binder, {
|
|
86129
86028
|
ref: "binderInstRef",
|
|
86130
86029
|
syncTarget: !popoverInside,
|
|
86131
86030
|
syncTargetWithParent: this.internalSyncTargetWithParent
|
|
@@ -86133,7 +86032,7 @@ const NPopover = defineComponent({
|
|
|
86133
86032
|
default: () => {
|
|
86134
86033
|
void this.mergedShowConsideringDisabledProp;
|
|
86135
86034
|
const mergedShow = this.getMergedShow();
|
|
86136
|
-
return [this.internalTrapFocus && mergedShow ? withDirectives(h("div", {
|
|
86035
|
+
return [this.internalTrapFocus && mergedShow ? withDirectives(h$1("div", {
|
|
86137
86036
|
style: {
|
|
86138
86037
|
position: "fixed",
|
|
86139
86038
|
top: 0,
|
|
@@ -86144,9 +86043,9 @@ const NPopover = defineComponent({
|
|
|
86144
86043
|
}), [[zindexable, {
|
|
86145
86044
|
enabled: mergedShow,
|
|
86146
86045
|
zIndex: this.zIndex
|
|
86147
|
-
}]]) : null, positionManually ? null : h(VTarget, null, {
|
|
86046
|
+
}]]) : null, positionManually ? null : h$1(VTarget, null, {
|
|
86148
86047
|
default: () => triggerVNode
|
|
86149
|
-
}), h(NPopoverBody, keep(this.$props, bodyPropKeys, Object.assign(Object.assign({}, this.$attrs), {
|
|
86048
|
+
}), h$1(NPopoverBody, keep(this.$props, bodyPropKeys, Object.assign(Object.assign({}, this.$attrs), {
|
|
86150
86049
|
showArrow: this.mergedShowArrow,
|
|
86151
86050
|
show: mergedShow
|
|
86152
86051
|
})), {
|
|
@@ -86314,7 +86213,7 @@ const NTooltip = defineComponent({
|
|
|
86314
86213
|
mergedTheme,
|
|
86315
86214
|
internalExtraClass
|
|
86316
86215
|
} = this;
|
|
86317
|
-
return h(NPopover, Object.assign(Object.assign({}, this.$props), {
|
|
86216
|
+
return h$1(NPopover, Object.assign(Object.assign({}, this.$props), {
|
|
86318
86217
|
theme: mergedTheme.peers.Popover,
|
|
86319
86218
|
themeOverrides: mergedTheme.peerOverrides.Popover,
|
|
86320
86219
|
builtinThemeOverrides: this.popoverThemeOverrides,
|
|
@@ -86335,7 +86234,7 @@ const NDropdownDivider = defineComponent({
|
|
|
86335
86234
|
}
|
|
86336
86235
|
},
|
|
86337
86236
|
render() {
|
|
86338
|
-
return h("div", {
|
|
86237
|
+
return h$1("div", {
|
|
86339
86238
|
class: `${this.clsPrefix}-dropdown-divider`
|
|
86340
86239
|
});
|
|
86341
86240
|
}
|
|
@@ -86385,17 +86284,17 @@ const NDropdownGroupHeader = defineComponent({
|
|
|
86385
86284
|
const {
|
|
86386
86285
|
rawNode
|
|
86387
86286
|
} = this.tmNode;
|
|
86388
|
-
const node = h("div", Object.assign({
|
|
86287
|
+
const node = h$1("div", Object.assign({
|
|
86389
86288
|
class: `${clsPrefix}-dropdown-option`
|
|
86390
|
-
}, nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps(rawNode)), h("div", {
|
|
86289
|
+
}, nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps(rawNode)), h$1("div", {
|
|
86391
86290
|
class: `${clsPrefix}-dropdown-option-body ${clsPrefix}-dropdown-option-body--group`
|
|
86392
|
-
}, h("div", {
|
|
86291
|
+
}, h$1("div", {
|
|
86393
86292
|
"data-dropdown-option": true,
|
|
86394
86293
|
class: [`${clsPrefix}-dropdown-option-body__prefix`, showIcon && `${clsPrefix}-dropdown-option-body__prefix--show-icon`]
|
|
86395
|
-
}, render(rawNode.icon)), h("div", {
|
|
86294
|
+
}, render(rawNode.icon)), h$1("div", {
|
|
86396
86295
|
class: `${clsPrefix}-dropdown-option-body__label`,
|
|
86397
86296
|
"data-dropdown-option": true
|
|
86398
|
-
}, renderLabel ? renderLabel(rawNode) : render((_a2 = rawNode.title) !== null && _a2 !== void 0 ? _a2 : rawNode[this.labelField])), h("div", {
|
|
86297
|
+
}, renderLabel ? renderLabel(rawNode) : render((_a2 = rawNode.title) !== null && _a2 !== void 0 ? _a2 : rawNode[this.labelField])), h$1("div", {
|
|
86399
86298
|
class: [`${clsPrefix}-dropdown-option-body__suffix`, hasSubmenu && `${clsPrefix}-dropdown-option-body__suffix--has-submenu`],
|
|
86400
86299
|
"data-dropdown-option": true
|
|
86401
86300
|
})));
|
|
@@ -86525,14 +86424,14 @@ const NIcon = defineComponent({
|
|
|
86525
86424
|
warn("icon", "don't wrap `n-icon` inside `n-icon`");
|
|
86526
86425
|
}
|
|
86527
86426
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
86528
|
-
return h("i", mergeProps(this.$attrs, {
|
|
86427
|
+
return h$1("i", mergeProps(this.$attrs, {
|
|
86529
86428
|
role: "img",
|
|
86530
86429
|
class: [`${mergedClsPrefix}-icon`, themeClass, {
|
|
86531
86430
|
[`${mergedClsPrefix}-icon--depth`]: depth,
|
|
86532
86431
|
[`${mergedClsPrefix}-icon--color-transition`]: depth !== void 0
|
|
86533
86432
|
}],
|
|
86534
86433
|
style: [this.cssVars, this.mergedStyle]
|
|
86535
|
-
}), component ? h(component) : this.$slots);
|
|
86434
|
+
}), component ? h$1(component) : this.$slots);
|
|
86536
86435
|
}
|
|
86537
86436
|
});
|
|
86538
86437
|
function isSubmenuNode(rawNode, childrenField) {
|
|
@@ -86768,7 +86667,7 @@ const NDropdownOption = defineComponent({
|
|
|
86768
86667
|
let submenuVNode = null;
|
|
86769
86668
|
if (mergedShowSubmenu) {
|
|
86770
86669
|
const submenuNodeProps = (_a2 = this.menuProps) === null || _a2 === void 0 ? void 0 : _a2.call(this, rawNode, rawNode.children);
|
|
86771
|
-
submenuVNode = h(NDropdownMenu, Object.assign({}, submenuNodeProps, {
|
|
86670
|
+
submenuVNode = h$1(NDropdownMenu, Object.assign({}, submenuNodeProps, {
|
|
86772
86671
|
clsPrefix,
|
|
86773
86672
|
scrollable: this.scrollable,
|
|
86774
86673
|
tmNodes: this.tmNode.children,
|
|
@@ -86783,33 +86682,33 @@ const NDropdownOption = defineComponent({
|
|
|
86783
86682
|
onClick: this.handleClick
|
|
86784
86683
|
};
|
|
86785
86684
|
const optionNodeProps = nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps(rawNode);
|
|
86786
|
-
const node = h("div", Object.assign({
|
|
86685
|
+
const node = h$1("div", Object.assign({
|
|
86787
86686
|
class: [`${clsPrefix}-dropdown-option`, optionNodeProps === null || optionNodeProps === void 0 ? void 0 : optionNodeProps.class],
|
|
86788
86687
|
"data-dropdown-option": true
|
|
86789
|
-
}, optionNodeProps), h("div", mergeProps(builtinProps, props), [h("div", {
|
|
86688
|
+
}, optionNodeProps), h$1("div", mergeProps(builtinProps, props), [h$1("div", {
|
|
86790
86689
|
class: [`${clsPrefix}-dropdown-option-body__prefix`, siblingHasIcon && `${clsPrefix}-dropdown-option-body__prefix--show-icon`]
|
|
86791
|
-
}, [renderIcon ? renderIcon(rawNode) : render(rawNode.icon)]), h("div", {
|
|
86690
|
+
}, [renderIcon ? renderIcon(rawNode) : render(rawNode.icon)]), h$1("div", {
|
|
86792
86691
|
"data-dropdown-option": true,
|
|
86793
86692
|
class: `${clsPrefix}-dropdown-option-body__label`
|
|
86794
|
-
}, renderLabel ? renderLabel(rawNode) : render((_b = rawNode[this.labelField]) !== null && _b !== void 0 ? _b : rawNode.title)), h("div", {
|
|
86693
|
+
}, renderLabel ? renderLabel(rawNode) : render((_b = rawNode[this.labelField]) !== null && _b !== void 0 ? _b : rawNode.title)), h$1("div", {
|
|
86795
86694
|
"data-dropdown-option": true,
|
|
86796
86695
|
class: [`${clsPrefix}-dropdown-option-body__suffix`, siblingHasSubmenu && `${clsPrefix}-dropdown-option-body__suffix--has-submenu`]
|
|
86797
|
-
}, this.hasSubmenu ? h(NIcon, null, {
|
|
86798
|
-
default: () => h(ChevronRightIcon, null)
|
|
86799
|
-
}) : null)]), this.hasSubmenu ? h(Binder, null, {
|
|
86800
|
-
default: () => [h(VTarget, null, {
|
|
86801
|
-
default: () => h("div", {
|
|
86696
|
+
}, this.hasSubmenu ? h$1(NIcon, null, {
|
|
86697
|
+
default: () => h$1(ChevronRightIcon, null)
|
|
86698
|
+
}) : null)]), this.hasSubmenu ? h$1(Binder, null, {
|
|
86699
|
+
default: () => [h$1(VTarget, null, {
|
|
86700
|
+
default: () => h$1("div", {
|
|
86802
86701
|
class: `${clsPrefix}-dropdown-offset-container`
|
|
86803
|
-
}, h(VFollower, {
|
|
86702
|
+
}, h$1(VFollower, {
|
|
86804
86703
|
show: this.mergedShowSubmenu,
|
|
86805
86704
|
placement: this.placement,
|
|
86806
86705
|
to: scrollable ? this.popoverBody || void 0 : void 0,
|
|
86807
86706
|
teleportDisabled: !scrollable
|
|
86808
86707
|
}, {
|
|
86809
86708
|
default: () => {
|
|
86810
|
-
return h("div", {
|
|
86709
|
+
return h$1("div", {
|
|
86811
86710
|
class: `${clsPrefix}-dropdown-menu-wrapper`
|
|
86812
|
-
}, animated ? h(Transition, {
|
|
86711
|
+
}, animated ? h$1(Transition, {
|
|
86813
86712
|
onBeforeEnter: this.handleSubmenuBeforeEnter,
|
|
86814
86713
|
onAfterEnter: this.handleSubmenuAfterEnter,
|
|
86815
86714
|
name: "fade-in-scale-up-transition",
|
|
@@ -86855,7 +86754,7 @@ const NDropdownGroup = defineComponent({
|
|
|
86855
86754
|
const {
|
|
86856
86755
|
children
|
|
86857
86756
|
} = tmNode;
|
|
86858
|
-
return h(Fragment$1, null, h(NDropdownGroupHeader, {
|
|
86757
|
+
return h$1(Fragment$1, null, h$1(NDropdownGroupHeader, {
|
|
86859
86758
|
clsPrefix,
|
|
86860
86759
|
tmNode,
|
|
86861
86760
|
key: tmNode.key
|
|
@@ -86865,7 +86764,7 @@ const NDropdownGroup = defineComponent({
|
|
|
86865
86764
|
} = child;
|
|
86866
86765
|
if (rawNode.show === false) return null;
|
|
86867
86766
|
if (isDividerNode(rawNode)) {
|
|
86868
|
-
return h(NDropdownDivider, {
|
|
86767
|
+
return h$1(NDropdownDivider, {
|
|
86869
86768
|
clsPrefix,
|
|
86870
86769
|
key: child.key
|
|
86871
86770
|
});
|
|
@@ -86874,7 +86773,7 @@ const NDropdownGroup = defineComponent({
|
|
|
86874
86773
|
warn("dropdown", "`group` node is not allowed to be put in `group` node.");
|
|
86875
86774
|
return null;
|
|
86876
86775
|
}
|
|
86877
|
-
return h(NDropdownOption, {
|
|
86776
|
+
return h$1(NDropdownOption, {
|
|
86878
86777
|
clsPrefix,
|
|
86879
86778
|
tmNode: child,
|
|
86880
86779
|
parentKey,
|
|
@@ -86898,7 +86797,7 @@ const NDropdownRenderOption = defineComponent({
|
|
|
86898
86797
|
props
|
|
86899
86798
|
}
|
|
86900
86799
|
} = this.tmNode;
|
|
86901
|
-
return h("div", props, [render2 === null || render2 === void 0 ? void 0 : render2()]);
|
|
86800
|
+
return h$1("div", props, [render2 === null || render2 === void 0 ? void 0 : render2()]);
|
|
86902
86801
|
}
|
|
86903
86802
|
});
|
|
86904
86803
|
const NDropdownMenu = defineComponent({
|
|
@@ -86979,26 +86878,26 @@ const NDropdownMenu = defineComponent({
|
|
|
86979
86878
|
} = tmNode;
|
|
86980
86879
|
if (rawNode.show === false) return null;
|
|
86981
86880
|
if (isRenderNode(rawNode)) {
|
|
86982
|
-
return h(NDropdownRenderOption, {
|
|
86881
|
+
return h$1(NDropdownRenderOption, {
|
|
86983
86882
|
tmNode,
|
|
86984
86883
|
key: tmNode.key
|
|
86985
86884
|
});
|
|
86986
86885
|
}
|
|
86987
86886
|
if (isDividerNode(rawNode)) {
|
|
86988
|
-
return h(NDropdownDivider, {
|
|
86887
|
+
return h$1(NDropdownDivider, {
|
|
86989
86888
|
clsPrefix,
|
|
86990
86889
|
key: tmNode.key
|
|
86991
86890
|
});
|
|
86992
86891
|
}
|
|
86993
86892
|
if (isGroupNode(rawNode)) {
|
|
86994
|
-
return h(NDropdownGroup, {
|
|
86893
|
+
return h$1(NDropdownGroup, {
|
|
86995
86894
|
clsPrefix,
|
|
86996
86895
|
tmNode,
|
|
86997
86896
|
parentKey,
|
|
86998
86897
|
key: tmNode.key
|
|
86999
86898
|
});
|
|
87000
86899
|
}
|
|
87001
|
-
return h(NDropdownOption, {
|
|
86900
|
+
return h$1(NDropdownOption, {
|
|
87002
86901
|
clsPrefix,
|
|
87003
86902
|
tmNode,
|
|
87004
86903
|
parentKey,
|
|
@@ -87007,10 +86906,10 @@ const NDropdownMenu = defineComponent({
|
|
|
87007
86906
|
scrollable
|
|
87008
86907
|
});
|
|
87009
86908
|
});
|
|
87010
|
-
return h("div", {
|
|
86909
|
+
return h$1("div", {
|
|
87011
86910
|
class: [`${clsPrefix}-dropdown-menu`, scrollable && `${clsPrefix}-dropdown-menu--scrollable`],
|
|
87012
86911
|
ref: "bodyRef"
|
|
87013
|
-
}, scrollable ? h(XScrollbar, {
|
|
86912
|
+
}, scrollable ? h$1(XScrollbar, {
|
|
87014
86913
|
contentClass: `${clsPrefix}-dropdown-menu__content`
|
|
87015
86914
|
}, {
|
|
87016
86915
|
default: () => menuOptionsNode
|
|
@@ -87478,7 +87377,7 @@ const NDropdown = defineComponent({
|
|
|
87478
87377
|
onMouseenter,
|
|
87479
87378
|
onMouseleave
|
|
87480
87379
|
};
|
|
87481
|
-
return h(NDropdownMenu, mergeProps(this.$attrs, dropdownProps2, menuNodeProps));
|
|
87380
|
+
return h$1(NDropdownMenu, mergeProps(this.$attrs, dropdownProps2, menuNodeProps));
|
|
87482
87381
|
};
|
|
87483
87382
|
const {
|
|
87484
87383
|
mergedTheme
|
|
@@ -87492,7 +87391,7 @@ const NDropdown = defineComponent({
|
|
|
87492
87391
|
onUpdateShow: this.doUpdateShow,
|
|
87493
87392
|
"onUpdate:show": void 0
|
|
87494
87393
|
};
|
|
87495
|
-
return h(NPopover, Object.assign({}, keep(this.$props, popoverPropKeys), popoverProps2), {
|
|
87394
|
+
return h$1(NPopover, Object.assign({}, keep(this.$props, popoverPropKeys), popoverProps2), {
|
|
87496
87395
|
trigger: () => {
|
|
87497
87396
|
var _a2, _b;
|
|
87498
87397
|
return (_b = (_a2 = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a2);
|
|
@@ -87634,12 +87533,12 @@ const NSkeleton = defineComponent({
|
|
|
87634
87533
|
mergedClsPrefix,
|
|
87635
87534
|
$attrs
|
|
87636
87535
|
} = this;
|
|
87637
|
-
const child = h("div", mergeProps({
|
|
87536
|
+
const child = h$1("div", mergeProps({
|
|
87638
87537
|
class: `${mergedClsPrefix}-skeleton`,
|
|
87639
87538
|
style: style2
|
|
87640
87539
|
}, $attrs));
|
|
87641
87540
|
if (repeatProp > 1) {
|
|
87642
|
-
return h(Fragment$1, null, repeat(repeatProp, null).map((_2) => [child, "\n"]));
|
|
87541
|
+
return h$1(Fragment$1, null, repeat(repeatProp, null).map((_2) => [child, "\n"]));
|
|
87643
87542
|
}
|
|
87644
87543
|
return child;
|
|
87645
87544
|
}
|
|
@@ -89553,8 +89452,8 @@ const renderColorOptions = (superToolbar, button, customIcons = [], hasNoneIcon
|
|
|
89553
89452
|
superToolbar.emitCommand({ item: button, argument: e });
|
|
89554
89453
|
closeDropdown$1(button);
|
|
89555
89454
|
};
|
|
89556
|
-
return h("div", {}, [
|
|
89557
|
-
h(IconGrid, {
|
|
89455
|
+
return h$1("div", {}, [
|
|
89456
|
+
h$1(IconGrid, {
|
|
89558
89457
|
icons,
|
|
89559
89458
|
customIcons,
|
|
89560
89459
|
activeColor: button.iconColor,
|
|
@@ -90026,8 +89925,8 @@ const makeDefaultItems = ({
|
|
|
90026
89925
|
const handleClose = () => {
|
|
90027
89926
|
closeDropdown(aiButton);
|
|
90028
89927
|
};
|
|
90029
|
-
return h("div", {}, [
|
|
90030
|
-
h(AIWriter, {
|
|
89928
|
+
return h$1("div", {}, [
|
|
89929
|
+
h$1(AIWriter, {
|
|
90031
89930
|
handleClose,
|
|
90032
89931
|
selectedText,
|
|
90033
89932
|
editor: superToolbar.activeEditor,
|
|
@@ -90203,8 +90102,8 @@ const makeDefaultItems = ({
|
|
|
90203
90102
|
const handleSubmit = ({ value }) => {
|
|
90204
90103
|
superToolbar.activeEditor.commands.search(value);
|
|
90205
90104
|
};
|
|
90206
|
-
return h("div", {}, [
|
|
90207
|
-
h(SearchInput, {
|
|
90105
|
+
return h$1("div", {}, [
|
|
90106
|
+
h$1(SearchInput, {
|
|
90208
90107
|
onSubmit: handleSubmit,
|
|
90209
90108
|
searchRef
|
|
90210
90109
|
})
|
|
@@ -90236,8 +90135,8 @@ const makeDefaultItems = ({
|
|
|
90236
90135
|
}
|
|
90237
90136
|
});
|
|
90238
90137
|
function renderLinkDropdown(link2) {
|
|
90239
|
-
return h("div", {}, [
|
|
90240
|
-
h(LinkInput, {
|
|
90138
|
+
return h$1("div", {}, [
|
|
90139
|
+
h$1(LinkInput, {
|
|
90241
90140
|
editor: superToolbar.activeEditor,
|
|
90242
90141
|
closePopover: () => closeDropdown(link2),
|
|
90243
90142
|
goToAnchor: () => {
|
|
@@ -90294,8 +90193,8 @@ const makeDefaultItems = ({
|
|
|
90294
90193
|
superToolbar.emitCommand({ item: tableItem2, argument: e });
|
|
90295
90194
|
closeDropdown(tableItem2);
|
|
90296
90195
|
};
|
|
90297
|
-
return h("div", {}, [
|
|
90298
|
-
h(TableGrid, {
|
|
90196
|
+
return h$1("div", {}, [
|
|
90197
|
+
h$1(TableGrid, {
|
|
90299
90198
|
onSelect: handleSelect
|
|
90300
90199
|
})
|
|
90301
90200
|
]);
|
|
@@ -90422,7 +90321,7 @@ const makeDefaultItems = ({
|
|
|
90422
90321
|
}
|
|
90423
90322
|
];
|
|
90424
90323
|
function renderTableActions(tableActionsItem2) {
|
|
90425
|
-
return h(TableActions, {
|
|
90324
|
+
return h$1(TableActions, {
|
|
90426
90325
|
options: tableActionsOptions2,
|
|
90427
90326
|
onSelect: (event) => {
|
|
90428
90327
|
closeDropdown(tableActionsItem2);
|
|
@@ -90455,8 +90354,8 @@ const makeDefaultItems = ({
|
|
|
90455
90354
|
superToolbar.emitCommand({ item: buttonWithCommand, argument: e });
|
|
90456
90355
|
setAlignmentIcon(alignment2, e);
|
|
90457
90356
|
};
|
|
90458
|
-
return h("div", {}, [
|
|
90459
|
-
h(AlignmentButtons, {
|
|
90357
|
+
return h$1("div", {}, [
|
|
90358
|
+
h$1(AlignmentButtons, {
|
|
90460
90359
|
onSelect: handleSelect
|
|
90461
90360
|
})
|
|
90462
90361
|
]);
|
|
@@ -90732,7 +90631,7 @@ const makeDefaultItems = ({
|
|
|
90732
90631
|
];
|
|
90733
90632
|
function renderDocumentMode(renderDocumentButton) {
|
|
90734
90633
|
const optionsAfterRole = getDocumentOptionsAfterRole(role, documentOptions);
|
|
90735
|
-
return h(DocumentMode, {
|
|
90634
|
+
return h$1(DocumentMode, {
|
|
90736
90635
|
options: optionsAfterRole,
|
|
90737
90636
|
onSelect: (item) => {
|
|
90738
90637
|
closeDropdown(renderDocumentButton);
|
|
@@ -90803,8 +90702,8 @@ const makeDefaultItems = ({
|
|
|
90803
90702
|
superToolbar.emitCommand({ item: itemWithCommand, argument: style2 });
|
|
90804
90703
|
selectedLinkedStyle.value = style2.id;
|
|
90805
90704
|
};
|
|
90806
|
-
return h("div", {}, [
|
|
90807
|
-
h(LinkedStyle, {
|
|
90705
|
+
return h$1("div", {}, [
|
|
90706
|
+
h$1(LinkedStyle, {
|
|
90808
90707
|
editor: superToolbar.activeEditor,
|
|
90809
90708
|
onSelect: handleSelect,
|
|
90810
90709
|
selectedOption: selectedLinkedStyle.value
|
|
@@ -90826,7 +90725,7 @@ const makeDefaultItems = ({
|
|
|
90826
90725
|
});
|
|
90827
90726
|
const renderIcon = (value, selectedValue) => {
|
|
90828
90727
|
if (selectedValue.value.toString() !== value) return;
|
|
90829
|
-
return h("div", { innerHTML: checkIconSvg, class: "dropdown-select-icon" });
|
|
90728
|
+
return h$1("div", { innerHTML: checkIconSvg, class: "dropdown-select-icon" });
|
|
90830
90729
|
};
|
|
90831
90730
|
const lineHeight2 = useToolbarItem({
|
|
90832
90731
|
type: "dropdown",
|