@harbour-enterprises/superdoc 0.14.2 → 0.14.3-next.1
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/{index-Bmg-LdrI.es.js → index-BvK-G6B1.es.js} +2 -2
- package/dist/chunks/{index-D8-yLk4l.cjs → index-CCRVYhTn.cjs} +1 -1
- package/dist/chunks/{index-Bx6NTjUr.cjs → index-CgJ5KVh6.cjs} +2 -2
- package/dist/chunks/{index-q6mHfs8e.es.js → index-oHslWah4.es.js} +1 -1
- package/dist/chunks/{super-editor.es-CVXcyA03.cjs → super-editor.es-BgpArT3t.cjs} +23 -10
- package/dist/chunks/{super-editor.es-uexOEMOI.es.js → super-editor.es-C5YLw3Yj.es.js} +23 -10
- package/dist/chunks/{url-f1i5V486.cjs → url-BG1Z_Z2_.cjs} +1 -1
- package/dist/chunks/{url-CZRpBZ8r.es.js → url-Dvx6wrNT.es.js} +1 -1
- package/dist/chunks/{xml-js-CR_HPgfX.cjs → xml-js-BHJlXtfU.cjs} +120 -148
- package/dist/chunks/{xml-js-DzoGf_HX.es.js → xml-js-DNISVjNF.es.js} +120 -148
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-D4QevHSw.js → converter-Cdd2CGi5.js} +4 -2
- package/dist/super-editor/chunks/{docx-zipper-L44d28km.js → docx-zipper-D4gaNYqk.js} +1 -1
- package/dist/super-editor/chunks/{editor-CUqQDQxM.js → editor-Y_VBuuwt.js} +21 -10
- package/dist/super-editor/chunks/{toolbar--4jgiUTj.js → toolbar-DOBesseJ.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts.map +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/extensions/list-item/ListItemNodeView.d.ts.map +1 -1
- package/dist/super-editor/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +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 +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +24 -11
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-lU0o_RlU.es.js";
|
|
3
|
-
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-
|
|
4
|
-
import { u as url } from "./url-
|
|
3
|
+
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-DNISVjNF.es.js";
|
|
4
|
+
import { u as url } from "./url-Dvx6wrNT.es.js";
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
7
7
|
const e = m[i];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
3
|
const vue = require("./vue-tQYF719J.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-BHJlXtfU.cjs");
|
|
5
|
+
const url = require("./url-BG1Z_Z2_.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-BvK-G6B1.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -22437,9 +22437,11 @@ const handleAnnotationNode = (params2) => {
|
|
|
22437
22437
|
textHighlight: parsedAttrs.fieldTextHighlight
|
|
22438
22438
|
};
|
|
22439
22439
|
attrs = attrsFromJSON;
|
|
22440
|
+
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22440
22441
|
} else {
|
|
22441
22442
|
const attrsFromElements = getAttrsFromElements({ sdtPr, tag, alias });
|
|
22442
22443
|
attrs = attrsFromElements;
|
|
22444
|
+
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22443
22445
|
}
|
|
22444
22446
|
const { attrs: marksAsAttrs, marks } = parseAnnotationMarks(sdtContent);
|
|
22445
22447
|
const allAttrs = { ...attrs, ...marksAsAttrs };
|
|
@@ -24315,7 +24317,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24315
24317
|
return;
|
|
24316
24318
|
}
|
|
24317
24319
|
}
|
|
24318
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.
|
|
24320
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.3-next.1") {
|
|
24319
24321
|
const customLocation = "docProps/custom.xml";
|
|
24320
24322
|
if (!docx[customLocation]) {
|
|
24321
24323
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24791,7 +24793,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24791
24793
|
function generateCustomXml() {
|
|
24792
24794
|
return DEFAULT_CUSTOM_XML;
|
|
24793
24795
|
}
|
|
24794
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.
|
|
24796
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.3-next.1") {
|
|
24795
24797
|
return {
|
|
24796
24798
|
type: "element",
|
|
24797
24799
|
name: "property",
|
|
@@ -42288,7 +42290,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42288
42290
|
* @returns {Object | void} Migration results
|
|
42289
42291
|
*/
|
|
42290
42292
|
processCollaborationMigrations() {
|
|
42291
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.
|
|
42293
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.3-next.1");
|
|
42292
42294
|
if (!this.options.ydoc) return;
|
|
42293
42295
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42294
42296
|
let docVersion = metaMap.get("version");
|
|
@@ -44575,7 +44577,7 @@ init_fn2 = function() {
|
|
|
44575
44577
|
this.contentDOM.className = "sd-editor-list-item-content-dom";
|
|
44576
44578
|
let contentLeft = visibleIndent.left;
|
|
44577
44579
|
if (visibleIndent.left === absoluteLeft) {
|
|
44578
|
-
|
|
44580
|
+
absoluteLeft -= 24;
|
|
44579
44581
|
}
|
|
44580
44582
|
this.contentDOM.style.marginLeft = `${contentLeft}px`;
|
|
44581
44583
|
this.numberingDOM.style.left = `${absoluteLeft}px`;
|
|
@@ -44659,9 +44661,16 @@ function orderedListSync(editor) {
|
|
|
44659
44661
|
if (!shouldProcess) return null;
|
|
44660
44662
|
newState.doc.descendants((node2, pos) => {
|
|
44661
44663
|
if (node2.type.name !== "listItem") return;
|
|
44662
|
-
const { level: attrLvl, numId: attrNumId, styleId
|
|
44664
|
+
const { level: attrLvl, numId: attrNumId, styleId } = node2.attrs;
|
|
44663
44665
|
const level = parseInt(attrLvl);
|
|
44664
44666
|
const numId = parseInt(attrNumId);
|
|
44667
|
+
const {
|
|
44668
|
+
lvlText,
|
|
44669
|
+
customFormat,
|
|
44670
|
+
listNumberingType,
|
|
44671
|
+
start: numberingDefStart
|
|
44672
|
+
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44673
|
+
const start2 = parseInt(numberingDefStart) || 1;
|
|
44665
44674
|
if (!listMap.has(numId)) {
|
|
44666
44675
|
const generatedLevels = {};
|
|
44667
44676
|
const initialPath = docxNumberigHelpers.generateListPath(level, numId, styleId, generatedLevels, docx);
|
|
@@ -44671,6 +44680,15 @@ function orderedListSync(editor) {
|
|
|
44671
44680
|
let currentListLevels = [...listMap.get(numId)];
|
|
44672
44681
|
if (!listInitialized.get(numId)) {
|
|
44673
44682
|
listInitialized.set(numId, true);
|
|
44683
|
+
if (typeof start2 === "number") {
|
|
44684
|
+
while (currentListLevels.length <= level) {
|
|
44685
|
+
currentListLevels.push(0);
|
|
44686
|
+
}
|
|
44687
|
+
currentListLevels[level] = start2;
|
|
44688
|
+
for (let i = level + 1; i < currentListLevels.length; i++) {
|
|
44689
|
+
currentListLevels[i] = 0;
|
|
44690
|
+
}
|
|
44691
|
+
}
|
|
44674
44692
|
} else {
|
|
44675
44693
|
while (currentListLevels.length <= level) {
|
|
44676
44694
|
currentListLevels.push(0);
|
|
@@ -44684,11 +44702,6 @@ function orderedListSync(editor) {
|
|
|
44684
44702
|
currentListLevels = [1];
|
|
44685
44703
|
}
|
|
44686
44704
|
listMap.set(numId, currentListLevels);
|
|
44687
|
-
const {
|
|
44688
|
-
lvlText,
|
|
44689
|
-
customFormat,
|
|
44690
|
-
listNumberingType
|
|
44691
|
-
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44692
44705
|
const updatedAttrs = {
|
|
44693
44706
|
...node2.attrs,
|
|
44694
44707
|
listLevel: [...currentListLevels],
|
|
@@ -22420,9 +22420,11 @@ const handleAnnotationNode = (params2) => {
|
|
|
22420
22420
|
textHighlight: parsedAttrs.fieldTextHighlight
|
|
22421
22421
|
};
|
|
22422
22422
|
attrs = attrsFromJSON;
|
|
22423
|
+
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22423
22424
|
} else {
|
|
22424
22425
|
const attrsFromElements = getAttrsFromElements({ sdtPr, tag, alias });
|
|
22425
22426
|
attrs = attrsFromElements;
|
|
22427
|
+
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22426
22428
|
}
|
|
22427
22429
|
const { attrs: marksAsAttrs, marks } = parseAnnotationMarks(sdtContent);
|
|
22428
22430
|
const allAttrs = { ...attrs, ...marksAsAttrs };
|
|
@@ -24298,7 +24300,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24298
24300
|
return;
|
|
24299
24301
|
}
|
|
24300
24302
|
}
|
|
24301
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.
|
|
24303
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.3-next.1") {
|
|
24302
24304
|
const customLocation = "docProps/custom.xml";
|
|
24303
24305
|
if (!docx[customLocation]) {
|
|
24304
24306
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24774,7 +24776,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24774
24776
|
function generateCustomXml() {
|
|
24775
24777
|
return DEFAULT_CUSTOM_XML;
|
|
24776
24778
|
}
|
|
24777
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.
|
|
24779
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.3-next.1") {
|
|
24778
24780
|
return {
|
|
24779
24781
|
type: "element",
|
|
24780
24782
|
name: "property",
|
|
@@ -42271,7 +42273,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42271
42273
|
* @returns {Object | void} Migration results
|
|
42272
42274
|
*/
|
|
42273
42275
|
processCollaborationMigrations() {
|
|
42274
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.
|
|
42276
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.3-next.1");
|
|
42275
42277
|
if (!this.options.ydoc) return;
|
|
42276
42278
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42277
42279
|
let docVersion = metaMap.get("version");
|
|
@@ -44558,7 +44560,7 @@ init_fn2 = function() {
|
|
|
44558
44560
|
this.contentDOM.className = "sd-editor-list-item-content-dom";
|
|
44559
44561
|
let contentLeft = visibleIndent.left;
|
|
44560
44562
|
if (visibleIndent.left === absoluteLeft) {
|
|
44561
|
-
|
|
44563
|
+
absoluteLeft -= 24;
|
|
44562
44564
|
}
|
|
44563
44565
|
this.contentDOM.style.marginLeft = `${contentLeft}px`;
|
|
44564
44566
|
this.numberingDOM.style.left = `${absoluteLeft}px`;
|
|
@@ -44642,9 +44644,16 @@ function orderedListSync(editor) {
|
|
|
44642
44644
|
if (!shouldProcess) return null;
|
|
44643
44645
|
newState.doc.descendants((node2, pos) => {
|
|
44644
44646
|
if (node2.type.name !== "listItem") return;
|
|
44645
|
-
const { level: attrLvl, numId: attrNumId, styleId
|
|
44647
|
+
const { level: attrLvl, numId: attrNumId, styleId } = node2.attrs;
|
|
44646
44648
|
const level = parseInt(attrLvl);
|
|
44647
44649
|
const numId = parseInt(attrNumId);
|
|
44650
|
+
const {
|
|
44651
|
+
lvlText,
|
|
44652
|
+
customFormat,
|
|
44653
|
+
listNumberingType,
|
|
44654
|
+
start: numberingDefStart
|
|
44655
|
+
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44656
|
+
const start2 = parseInt(numberingDefStart) || 1;
|
|
44648
44657
|
if (!listMap.has(numId)) {
|
|
44649
44658
|
const generatedLevels = {};
|
|
44650
44659
|
const initialPath = docxNumberigHelpers.generateListPath(level, numId, styleId, generatedLevels, docx);
|
|
@@ -44654,6 +44663,15 @@ function orderedListSync(editor) {
|
|
|
44654
44663
|
let currentListLevels = [...listMap.get(numId)];
|
|
44655
44664
|
if (!listInitialized.get(numId)) {
|
|
44656
44665
|
listInitialized.set(numId, true);
|
|
44666
|
+
if (typeof start2 === "number") {
|
|
44667
|
+
while (currentListLevels.length <= level) {
|
|
44668
|
+
currentListLevels.push(0);
|
|
44669
|
+
}
|
|
44670
|
+
currentListLevels[level] = start2;
|
|
44671
|
+
for (let i = level + 1; i < currentListLevels.length; i++) {
|
|
44672
|
+
currentListLevels[i] = 0;
|
|
44673
|
+
}
|
|
44674
|
+
}
|
|
44657
44675
|
} else {
|
|
44658
44676
|
while (currentListLevels.length <= level) {
|
|
44659
44677
|
currentListLevels.push(0);
|
|
@@ -44667,11 +44685,6 @@ function orderedListSync(editor) {
|
|
|
44667
44685
|
currentListLevels = [1];
|
|
44668
44686
|
}
|
|
44669
44687
|
listMap.set(numId, currentListLevels);
|
|
44670
|
-
const {
|
|
44671
|
-
lvlText,
|
|
44672
|
-
customFormat,
|
|
44673
|
-
listNumberingType
|
|
44674
|
-
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44675
44688
|
const updatedAttrs = {
|
|
44676
44689
|
...node2.attrs,
|
|
44677
44690
|
listLevel: [...currentListLevels],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-BHJlXtfU.cjs");
|
|
4
4
|
const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
|
|
5
5
|
var punycode$1 = { exports: {} };
|
|
6
6
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-
|
|
2
|
+
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-DNISVjNF.es.js";
|
|
3
3
|
import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
|
|
4
4
|
var punycode$1 = { exports: {} };
|
|
5
5
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -395,62 +395,55 @@ var eventsExports = events.exports;
|
|
|
395
395
|
const require$$2 = /* @__PURE__ */ jszip.getAugmentedNamespace(jszip.dist);
|
|
396
396
|
var util = {};
|
|
397
397
|
var types = {};
|
|
398
|
-
var shams$1
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
398
|
+
var shams$1 = function hasSymbols() {
|
|
399
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
var obj = {};
|
|
406
|
+
var sym = Symbol("test");
|
|
407
|
+
var symObj = Object(sym);
|
|
408
|
+
if (typeof sym === "string") {
|
|
409
|
+
return false;
|
|
410
|
+
}
|
|
411
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
412
|
+
return false;
|
|
413
|
+
}
|
|
414
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
415
|
+
return false;
|
|
416
|
+
}
|
|
417
|
+
var symVal = 42;
|
|
418
|
+
obj[sym] = symVal;
|
|
419
|
+
for (var _ in obj) {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
423
|
+
return false;
|
|
424
|
+
}
|
|
425
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
429
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
430
|
+
return false;
|
|
431
|
+
}
|
|
432
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
435
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
436
|
+
var descriptor = (
|
|
437
|
+
/** @type {PropertyDescriptor} */
|
|
438
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
439
|
+
);
|
|
440
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
438
441
|
return false;
|
|
439
442
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
);
|
|
445
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
446
|
-
return false;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return true;
|
|
450
|
-
};
|
|
451
|
-
return shams$1;
|
|
452
|
-
}
|
|
453
|
-
var hasSymbols$2 = requireShams();
|
|
443
|
+
}
|
|
444
|
+
return true;
|
|
445
|
+
};
|
|
446
|
+
var hasSymbols$2 = shams$1;
|
|
454
447
|
var shams = function hasToStringTagShams() {
|
|
455
448
|
return hasSymbols$2() && !!Symbol.toStringTag;
|
|
456
449
|
};
|
|
@@ -478,8 +471,8 @@ var sign$1 = function sign(number) {
|
|
|
478
471
|
}
|
|
479
472
|
return number < 0 ? -1 : 1;
|
|
480
473
|
};
|
|
481
|
-
var gOPD$
|
|
482
|
-
var $gOPD$1 = gOPD$
|
|
474
|
+
var gOPD$4 = Object.getOwnPropertyDescriptor;
|
|
475
|
+
var $gOPD$1 = gOPD$4;
|
|
483
476
|
if ($gOPD$1) {
|
|
484
477
|
try {
|
|
485
478
|
$gOPD$1([], "length");
|
|
@@ -503,7 +496,7 @@ function requireHasSymbols() {
|
|
|
503
496
|
if (hasRequiredHasSymbols) return hasSymbols$1;
|
|
504
497
|
hasRequiredHasSymbols = 1;
|
|
505
498
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
506
|
-
var hasSymbolSham =
|
|
499
|
+
var hasSymbolSham = shams$1;
|
|
507
500
|
hasSymbols$1 = function hasNativeSymbols() {
|
|
508
501
|
if (typeof origSymbol !== "function") {
|
|
509
502
|
return false;
|
|
@@ -521,14 +514,7 @@ function requireHasSymbols() {
|
|
|
521
514
|
};
|
|
522
515
|
return hasSymbols$1;
|
|
523
516
|
}
|
|
524
|
-
var Reflect_getPrototypeOf;
|
|
525
|
-
var hasRequiredReflect_getPrototypeOf;
|
|
526
|
-
function requireReflect_getPrototypeOf() {
|
|
527
|
-
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
528
|
-
hasRequiredReflect_getPrototypeOf = 1;
|
|
529
|
-
Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
530
|
-
return Reflect_getPrototypeOf;
|
|
531
|
-
}
|
|
517
|
+
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
532
518
|
var Object_getPrototypeOf;
|
|
533
519
|
var hasRequiredObject_getPrototypeOf;
|
|
534
520
|
function requireObject_getPrototypeOf() {
|
|
@@ -655,57 +641,43 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
655
641
|
}
|
|
656
642
|
return $actualApply(bind$2, $call$1, args);
|
|
657
643
|
};
|
|
658
|
-
var
|
|
659
|
-
var
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
668
|
-
[].__proto__ === Array.prototype;
|
|
669
|
-
} catch (e) {
|
|
670
|
-
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
671
|
-
throw e;
|
|
672
|
-
}
|
|
644
|
+
var callBind$2 = callBindApplyHelpers;
|
|
645
|
+
var gOPD$3 = gopd$1;
|
|
646
|
+
var hasProtoAccessor;
|
|
647
|
+
try {
|
|
648
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
649
|
+
[].__proto__ === Array.prototype;
|
|
650
|
+
} catch (e) {
|
|
651
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
652
|
+
throw e;
|
|
673
653
|
}
|
|
674
|
-
var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
|
|
675
|
-
Object.prototype,
|
|
676
|
-
/** @type {keyof typeof Object.prototype} */
|
|
677
|
-
"__proto__"
|
|
678
|
-
);
|
|
679
|
-
var $Object2 = Object;
|
|
680
|
-
var $getPrototypeOf = $Object2.getPrototypeOf;
|
|
681
|
-
get = desc && typeof desc.get === "function" ? callBind2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
682
|
-
/** @type {import('./get')} */
|
|
683
|
-
function getDunder(value) {
|
|
684
|
-
return $getPrototypeOf(value == null ? value : $Object2(value));
|
|
685
|
-
}
|
|
686
|
-
) : false;
|
|
687
|
-
return get;
|
|
688
|
-
}
|
|
689
|
-
var getProto$3;
|
|
690
|
-
var hasRequiredGetProto;
|
|
691
|
-
function requireGetProto() {
|
|
692
|
-
if (hasRequiredGetProto) return getProto$3;
|
|
693
|
-
hasRequiredGetProto = 1;
|
|
694
|
-
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
695
|
-
var originalGetProto = requireObject_getPrototypeOf();
|
|
696
|
-
var getDunderProto = requireGet();
|
|
697
|
-
getProto$3 = reflectGetProto ? function getProto2(O) {
|
|
698
|
-
return reflectGetProto(O);
|
|
699
|
-
} : originalGetProto ? function getProto2(O) {
|
|
700
|
-
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
701
|
-
throw new TypeError("getProto: not an object");
|
|
702
|
-
}
|
|
703
|
-
return originalGetProto(O);
|
|
704
|
-
} : getDunderProto ? function getProto2(O) {
|
|
705
|
-
return getDunderProto(O);
|
|
706
|
-
} : null;
|
|
707
|
-
return getProto$3;
|
|
708
654
|
}
|
|
655
|
+
var desc = !!hasProtoAccessor && gOPD$3 && gOPD$3(
|
|
656
|
+
Object.prototype,
|
|
657
|
+
/** @type {keyof typeof Object.prototype} */
|
|
658
|
+
"__proto__"
|
|
659
|
+
);
|
|
660
|
+
var $Object$1 = Object;
|
|
661
|
+
var $getPrototypeOf = $Object$1.getPrototypeOf;
|
|
662
|
+
var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
663
|
+
/** @type {import('./get')} */
|
|
664
|
+
function getDunder(value) {
|
|
665
|
+
return $getPrototypeOf(value == null ? value : $Object$1(value));
|
|
666
|
+
}
|
|
667
|
+
) : false;
|
|
668
|
+
var reflectGetProto = Reflect_getPrototypeOf;
|
|
669
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
670
|
+
var getDunderProto = get;
|
|
671
|
+
var getProto$3 = reflectGetProto ? function getProto(O) {
|
|
672
|
+
return reflectGetProto(O);
|
|
673
|
+
} : originalGetProto ? function getProto2(O) {
|
|
674
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
675
|
+
throw new TypeError("getProto: not an object");
|
|
676
|
+
}
|
|
677
|
+
return originalGetProto(O);
|
|
678
|
+
} : getDunderProto ? function getProto3(O) {
|
|
679
|
+
return getDunderProto(O);
|
|
680
|
+
} : null;
|
|
709
681
|
var hasown;
|
|
710
682
|
var hasRequiredHasown;
|
|
711
683
|
function requireHasown() {
|
|
@@ -757,10 +729,10 @@ var ThrowTypeError = $gOPD ? function() {
|
|
|
757
729
|
}
|
|
758
730
|
}
|
|
759
731
|
}() : throwTypeError;
|
|
760
|
-
var
|
|
761
|
-
var getProto$2 =
|
|
732
|
+
var hasSymbols2 = requireHasSymbols()();
|
|
733
|
+
var getProto$2 = getProto$3;
|
|
762
734
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
763
|
-
var $ReflectGPO =
|
|
735
|
+
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
764
736
|
var $apply$1 = requireFunctionApply();
|
|
765
737
|
var $call = requireFunctionCall();
|
|
766
738
|
var needsEval = {};
|
|
@@ -770,7 +742,7 @@ var INTRINSICS = {
|
|
|
770
742
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
771
743
|
"%Array%": Array,
|
|
772
744
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
773
|
-
"%ArrayIteratorPrototype%":
|
|
745
|
+
"%ArrayIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
774
746
|
"%AsyncFromSyncIteratorPrototype%": undefined$1,
|
|
775
747
|
"%AsyncFunction%": needsEval,
|
|
776
748
|
"%AsyncGenerator%": needsEval,
|
|
@@ -802,10 +774,10 @@ var INTRINSICS = {
|
|
|
802
774
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
|
|
803
775
|
"%isFinite%": isFinite,
|
|
804
776
|
"%isNaN%": isNaN,
|
|
805
|
-
"%IteratorPrototype%":
|
|
777
|
+
"%IteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
806
778
|
"%JSON%": typeof JSON === "object" ? JSON : undefined$1,
|
|
807
779
|
"%Map%": typeof Map === "undefined" ? undefined$1 : Map,
|
|
808
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !
|
|
780
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
809
781
|
"%Math%": Math,
|
|
810
782
|
"%Number%": Number,
|
|
811
783
|
"%Object%": $Object,
|
|
@@ -819,11 +791,11 @@ var INTRINSICS = {
|
|
|
819
791
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
820
792
|
"%RegExp%": RegExp,
|
|
821
793
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
822
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !
|
|
794
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
823
795
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
|
|
824
796
|
"%String%": String,
|
|
825
|
-
"%StringIteratorPrototype%":
|
|
826
|
-
"%Symbol%":
|
|
797
|
+
"%StringIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
|
|
798
|
+
"%Symbol%": hasSymbols2 ? Symbol : undefined$1,
|
|
827
799
|
"%SyntaxError%": $SyntaxError$1,
|
|
828
800
|
"%ThrowTypeError%": ThrowTypeError,
|
|
829
801
|
"%TypedArray%": TypedArray,
|
|
@@ -1022,10 +994,10 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1022
994
|
return void 0;
|
|
1023
995
|
}
|
|
1024
996
|
if ($gOPD && i + 1 >= parts.length) {
|
|
1025
|
-
var
|
|
1026
|
-
isOwn = !!
|
|
1027
|
-
if (isOwn && "get" in
|
|
1028
|
-
value =
|
|
997
|
+
var desc2 = $gOPD(value, part);
|
|
998
|
+
isOwn = !!desc2;
|
|
999
|
+
if (isOwn && "get" in desc2 && !("originalValue" in desc2.get)) {
|
|
1000
|
+
value = desc2.get;
|
|
1029
1001
|
} else {
|
|
1030
1002
|
value = value[part];
|
|
1031
1003
|
}
|
|
@@ -1148,7 +1120,7 @@ var callBound$1 = callBound$5;
|
|
|
1148
1120
|
var safeRegexTest = safeRegexTest$1;
|
|
1149
1121
|
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
|
1150
1122
|
var hasToStringTag$2 = shams();
|
|
1151
|
-
var getProto$1 =
|
|
1123
|
+
var getProto$1 = getProto$3;
|
|
1152
1124
|
var toStr$2 = callBound$1("Object.prototype.toString");
|
|
1153
1125
|
var fnToStr$1 = callBound$1("Function.prototype.toString");
|
|
1154
1126
|
var getGeneratorFunc = function() {
|
|
@@ -1400,13 +1372,13 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
|
|
|
1400
1372
|
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
1401
1373
|
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
1402
1374
|
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
1403
|
-
var
|
|
1375
|
+
var desc2 = !!gopd && gopd(obj, property);
|
|
1404
1376
|
if ($defineProperty$1) {
|
|
1405
1377
|
$defineProperty$1(obj, property, {
|
|
1406
|
-
configurable: nonConfigurable === null &&
|
|
1407
|
-
enumerable: nonEnumerable === null &&
|
|
1378
|
+
configurable: nonConfigurable === null && desc2 ? desc2.configurable : !nonConfigurable,
|
|
1379
|
+
enumerable: nonEnumerable === null && desc2 ? desc2.enumerable : !nonEnumerable,
|
|
1408
1380
|
value,
|
|
1409
|
-
writable: nonWritable === null &&
|
|
1381
|
+
writable: nonWritable === null && desc2 ? desc2.writable : !nonWritable
|
|
1410
1382
|
});
|
|
1411
1383
|
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
1412
1384
|
obj[property] = value;
|
|
@@ -1446,11 +1418,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1446
1418
|
var functionLengthIsConfigurable = true;
|
|
1447
1419
|
var functionLengthIsWritable = true;
|
|
1448
1420
|
if ("length" in fn2 && gOPD$1) {
|
|
1449
|
-
var
|
|
1450
|
-
if (
|
|
1421
|
+
var desc2 = gOPD$1(fn2, "length");
|
|
1422
|
+
if (desc2 && !desc2.configurable) {
|
|
1451
1423
|
functionLengthIsConfigurable = false;
|
|
1452
1424
|
}
|
|
1453
|
-
if (
|
|
1425
|
+
if (desc2 && !desc2.writable) {
|
|
1454
1426
|
functionLengthIsWritable = false;
|
|
1455
1427
|
}
|
|
1456
1428
|
}
|
|
@@ -1507,7 +1479,7 @@ var availableTypedArrays2 = availableTypedArrays$1;
|
|
|
1507
1479
|
var callBind = callBindExports;
|
|
1508
1480
|
var callBound = callBound$5;
|
|
1509
1481
|
var gOPD = gopd$1;
|
|
1510
|
-
var
|
|
1482
|
+
var getProto4 = getProto$3;
|
|
1511
1483
|
var $toString = callBound("Object.prototype.toString");
|
|
1512
1484
|
var hasToStringTag = shams();
|
|
1513
1485
|
var g = typeof globalThis === "undefined" ? jszip.commonjsGlobal : globalThis;
|
|
@@ -1522,14 +1494,14 @@ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(ar
|
|
|
1522
1494
|
return -1;
|
|
1523
1495
|
};
|
|
1524
1496
|
var cache = { __proto__: null };
|
|
1525
|
-
if (hasToStringTag && gOPD &&
|
|
1497
|
+
if (hasToStringTag && gOPD && getProto4) {
|
|
1526
1498
|
forEach2(typedArrays, function(typedArray) {
|
|
1527
1499
|
var arr = new g[typedArray]();
|
|
1528
|
-
if (Symbol.toStringTag in arr &&
|
|
1529
|
-
var proto =
|
|
1500
|
+
if (Symbol.toStringTag in arr && getProto4) {
|
|
1501
|
+
var proto = getProto4(arr);
|
|
1530
1502
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1531
1503
|
if (!descriptor && proto) {
|
|
1532
|
-
var superProto =
|
|
1504
|
+
var superProto = getProto4(proto);
|
|
1533
1505
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1534
1506
|
}
|
|
1535
1507
|
cache["$" + typedArray] = callBind(descriptor.get);
|
|
@@ -2122,16 +2094,16 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2122
2094
|
return output;
|
|
2123
2095
|
}
|
|
2124
2096
|
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2125
|
-
var name, str,
|
|
2126
|
-
|
|
2127
|
-
if (
|
|
2128
|
-
if (
|
|
2097
|
+
var name, str, desc2;
|
|
2098
|
+
desc2 = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2099
|
+
if (desc2.get) {
|
|
2100
|
+
if (desc2.set) {
|
|
2129
2101
|
str = ctx.stylize("[Getter/Setter]", "special");
|
|
2130
2102
|
} else {
|
|
2131
2103
|
str = ctx.stylize("[Getter]", "special");
|
|
2132
2104
|
}
|
|
2133
2105
|
} else {
|
|
2134
|
-
if (
|
|
2106
|
+
if (desc2.set) {
|
|
2135
2107
|
str = ctx.stylize("[Setter]", "special");
|
|
2136
2108
|
}
|
|
2137
2109
|
}
|
|
@@ -2139,11 +2111,11 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2139
2111
|
name = "[" + key + "]";
|
|
2140
2112
|
}
|
|
2141
2113
|
if (!str) {
|
|
2142
|
-
if (ctx.seen.indexOf(
|
|
2114
|
+
if (ctx.seen.indexOf(desc2.value) < 0) {
|
|
2143
2115
|
if (isNull(recurseTimes)) {
|
|
2144
|
-
str = formatValue(ctx,
|
|
2116
|
+
str = formatValue(ctx, desc2.value, null);
|
|
2145
2117
|
} else {
|
|
2146
|
-
str = formatValue(ctx,
|
|
2118
|
+
str = formatValue(ctx, desc2.value, recurseTimes - 1);
|
|
2147
2119
|
}
|
|
2148
2120
|
if (str.indexOf("\n") > -1) {
|
|
2149
2121
|
if (array) {
|