@harbour-enterprises/superdoc 0.13.2-rev6 → 0.13.2-rev7
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-B0t3i_io.cjs → index-B4J7wgs6.cjs} +1 -1
- package/dist/chunks/{index-Bk160jQ2.cjs → index-Cdsq63Xq.cjs} +2 -2
- package/dist/chunks/{index-D_HUrFWV.es.js → index-Diu6UKHt.es.js} +2 -2
- package/dist/chunks/{index-KzH9VKHh.es.js → index-Hr3Um-Bg.es.js} +1 -1
- package/dist/chunks/{super-editor.es-Dc89JIQn.es.js → super-editor.es-C25JkSnI.es.js} +27 -10
- package/dist/chunks/{super-editor.es-BTxObl3D.cjs → super-editor.es-Djlcx6Si.cjs} +27 -10
- package/dist/chunks/{url-CWyTQ-Xy.cjs → url-BIzg4y2i.cjs} +1 -1
- package/dist/chunks/{url-DsBQArCl.es.js → url-CHayXMZH.es.js} +1 -1
- package/dist/chunks/{xml-js-Bu1ZZzmb.cjs → xml-js-BjqmFOSP.cjs} +100 -79
- package/dist/chunks/{xml-js-CdiD26MJ.es.js → xml-js-CfClL-1b.es.js} +100 -79
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DZFBaVFd.js → converter-Fwt4-8Pg.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-dbI_Pbue.js → docx-zipper-BOV7cSCY.js} +1 -1
- package/dist/super-editor/chunks/{editor-Bz5BbOEe.js → editor-CR0_l9jt.js} +30 -10
- package/dist/super-editor/chunks/{toolbar-C07jc7pa.js → toolbar-D38Br8cP.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/setImageNodeSelection.d.ts +2 -0
- package/dist/super-editor/core/helpers/setImageNodeSelection.d.ts.map +1 -0
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/image/imageHelpers/startImageUpload.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination.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 +28 -11
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-BTAcmbVg.cjs");
|
|
3
3
|
const vue = require("./vue-HIY1g7dm.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-BjqmFOSP.cjs");
|
|
5
|
+
const url = require("./url-BIzg4y2i.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-DckFs3A7.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-Bi1uWinj.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-CfClL-1b.es.js";
|
|
4
|
+
import { u as url } from "./url-CHayXMZH.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,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-DckFs3A7.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-Diu6UKHt.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -23972,7 +23972,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23972
23972
|
return;
|
|
23973
23973
|
}
|
|
23974
23974
|
}
|
|
23975
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-
|
|
23975
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-rev7") {
|
|
23976
23976
|
const customLocation = "docProps/custom.xml";
|
|
23977
23977
|
if (!docx[customLocation]) {
|
|
23978
23978
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24439,7 +24439,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24439
24439
|
function generateCustomXml() {
|
|
24440
24440
|
return DEFAULT_CUSTOM_XML;
|
|
24441
24441
|
}
|
|
24442
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-
|
|
24442
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-rev7") {
|
|
24443
24443
|
return {
|
|
24444
24444
|
type: "element",
|
|
24445
24445
|
name: "property",
|
|
@@ -26972,7 +26972,7 @@ var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "rea
|
|
|
26972
26972
|
var __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
26973
26973
|
var __privateSet = (obj, member, value, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value), value);
|
|
26974
26974
|
var __privateMethod$1 = (obj, member, method) => (__accessCheck$1(obj, member, "access private method"), method);
|
|
26975
|
-
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
26975
|
+
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
26976
26976
|
function getMarksFromSelection(state2) {
|
|
26977
26977
|
const { from: from2, to, empty: empty2 } = state2.selection;
|
|
26978
26978
|
const marks = [];
|
|
@@ -40609,6 +40609,16 @@ const setWordSelection = (view, pos) => {
|
|
|
40609
40609
|
const tr = state2.tr.setSelection(TextSelection.create(state2.doc, word.from, word.to));
|
|
40610
40610
|
dispatch(tr);
|
|
40611
40611
|
};
|
|
40612
|
+
const setImageNodeSelection = (view, pos) => {
|
|
40613
|
+
const { doc: doc2 } = view.state;
|
|
40614
|
+
const node2 = doc2.nodeAt(pos);
|
|
40615
|
+
if (node2 && node2.type.name === "image") {
|
|
40616
|
+
const tr = view.state.tr.setSelection(NodeSelection.create(doc2, pos));
|
|
40617
|
+
view.dispatch(tr);
|
|
40618
|
+
return true;
|
|
40619
|
+
}
|
|
40620
|
+
return false;
|
|
40621
|
+
};
|
|
40612
40622
|
const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
40613
40623
|
/**
|
|
40614
40624
|
* Create a new Editor instance
|
|
@@ -41308,7 +41318,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41308
41318
|
* @returns {Object | void} Migration results
|
|
41309
41319
|
*/
|
|
41310
41320
|
processCollaborationMigrations() {
|
|
41311
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-
|
|
41321
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev7");
|
|
41312
41322
|
if (!this.options.ydoc) return;
|
|
41313
41323
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41314
41324
|
let docVersion = metaMap.get("version");
|
|
@@ -41678,6 +41688,7 @@ createView_fn = function(element) {
|
|
|
41678
41688
|
...this.options.editorProps,
|
|
41679
41689
|
dispatchTransaction: __privateMethod$1(this, _Editor_instances, dispatchTransaction_fn).bind(this),
|
|
41680
41690
|
state: EditorState.create(state2),
|
|
41691
|
+
handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
|
|
41681
41692
|
handleDoubleClick: async (view, pos, event) => {
|
|
41682
41693
|
if (this.options.documentMode !== "editing") return;
|
|
41683
41694
|
const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
|
|
@@ -41801,6 +41812,11 @@ dispatchTransaction_fn = function(transaction) {
|
|
|
41801
41812
|
transaction
|
|
41802
41813
|
});
|
|
41803
41814
|
};
|
|
41815
|
+
handleNodeSelection_fn = function(view, pos) {
|
|
41816
|
+
if (this.options.isHeaderOrFooter) {
|
|
41817
|
+
return setImageNodeSelection(view, pos);
|
|
41818
|
+
}
|
|
41819
|
+
};
|
|
41804
41820
|
prepareDocumentForImport_fn = function(doc2) {
|
|
41805
41821
|
const newState = EditorState.create({
|
|
41806
41822
|
schema: this.schema,
|
|
@@ -49063,12 +49079,16 @@ const startImageUpload = async ({ editor, view, file }) => {
|
|
|
49063
49079
|
}
|
|
49064
49080
|
let id = {};
|
|
49065
49081
|
let { tr, schema } = view.state;
|
|
49066
|
-
|
|
49082
|
+
let { selection } = tr;
|
|
49083
|
+
if (editor.options.isHeaderOrFooter) {
|
|
49084
|
+
selection = editor.options.lastSelection;
|
|
49085
|
+
}
|
|
49086
|
+
if (!selection.empty && !editor.options.isHeaderOrFooter) {
|
|
49067
49087
|
tr.deleteSelection();
|
|
49068
49088
|
}
|
|
49069
49089
|
let imageMeta = {
|
|
49070
49090
|
type: "add",
|
|
49071
|
-
pos:
|
|
49091
|
+
pos: selection.from,
|
|
49072
49092
|
id
|
|
49073
49093
|
};
|
|
49074
49094
|
tr.setMeta(ImagePlaceholderPluginKey, imageMeta);
|
|
@@ -54368,10 +54388,7 @@ const Pagination = Extension.create({
|
|
|
54368
54388
|
const imagePluginTransaction = tr.getMeta(ImagePlaceholderPluginKey);
|
|
54369
54389
|
if (imagePluginTransaction) {
|
|
54370
54390
|
if (imagePluginTransaction.type === "remove") {
|
|
54371
|
-
|
|
54372
|
-
const domImage = editor.view.domAtPos(imagePos).node.querySelector("img");
|
|
54373
|
-
if (domImage.complete) onImageLoad(editor);
|
|
54374
|
-
else domImage.onload = () => onImageLoad(editor);
|
|
54391
|
+
onImageLoad(editor);
|
|
54375
54392
|
}
|
|
54376
54393
|
return { ...oldState };
|
|
54377
54394
|
}
|
|
@@ -23989,7 +23989,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23989
23989
|
return;
|
|
23990
23990
|
}
|
|
23991
23991
|
}
|
|
23992
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-
|
|
23992
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-rev7") {
|
|
23993
23993
|
const customLocation = "docProps/custom.xml";
|
|
23994
23994
|
if (!docx[customLocation]) {
|
|
23995
23995
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24456,7 +24456,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24456
24456
|
function generateCustomXml() {
|
|
24457
24457
|
return DEFAULT_CUSTOM_XML;
|
|
24458
24458
|
}
|
|
24459
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-
|
|
24459
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-rev7") {
|
|
24460
24460
|
return {
|
|
24461
24461
|
type: "element",
|
|
24462
24462
|
name: "property",
|
|
@@ -26989,7 +26989,7 @@ var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "rea
|
|
|
26989
26989
|
var __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
26990
26990
|
var __privateSet = (obj, member, value, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value), value);
|
|
26991
26991
|
var __privateMethod$1 = (obj, member, method) => (__accessCheck$1(obj, member, "access private method"), method);
|
|
26992
|
-
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
26992
|
+
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
26993
26993
|
function getMarksFromSelection(state2) {
|
|
26994
26994
|
const { from: from2, to, empty: empty2 } = state2.selection;
|
|
26995
26995
|
const marks = [];
|
|
@@ -40626,6 +40626,16 @@ const setWordSelection = (view, pos) => {
|
|
|
40626
40626
|
const tr = state2.tr.setSelection(TextSelection.create(state2.doc, word.from, word.to));
|
|
40627
40627
|
dispatch(tr);
|
|
40628
40628
|
};
|
|
40629
|
+
const setImageNodeSelection = (view, pos) => {
|
|
40630
|
+
const { doc: doc2 } = view.state;
|
|
40631
|
+
const node2 = doc2.nodeAt(pos);
|
|
40632
|
+
if (node2 && node2.type.name === "image") {
|
|
40633
|
+
const tr = view.state.tr.setSelection(NodeSelection.create(doc2, pos));
|
|
40634
|
+
view.dispatch(tr);
|
|
40635
|
+
return true;
|
|
40636
|
+
}
|
|
40637
|
+
return false;
|
|
40638
|
+
};
|
|
40629
40639
|
const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
40630
40640
|
/**
|
|
40631
40641
|
* Create a new Editor instance
|
|
@@ -41325,7 +41335,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41325
41335
|
* @returns {Object | void} Migration results
|
|
41326
41336
|
*/
|
|
41327
41337
|
processCollaborationMigrations() {
|
|
41328
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-
|
|
41338
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev7");
|
|
41329
41339
|
if (!this.options.ydoc) return;
|
|
41330
41340
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41331
41341
|
let docVersion = metaMap.get("version");
|
|
@@ -41695,6 +41705,7 @@ createView_fn = function(element) {
|
|
|
41695
41705
|
...this.options.editorProps,
|
|
41696
41706
|
dispatchTransaction: __privateMethod$1(this, _Editor_instances, dispatchTransaction_fn).bind(this),
|
|
41697
41707
|
state: EditorState.create(state2),
|
|
41708
|
+
handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
|
|
41698
41709
|
handleDoubleClick: async (view, pos, event) => {
|
|
41699
41710
|
if (this.options.documentMode !== "editing") return;
|
|
41700
41711
|
const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
|
|
@@ -41818,6 +41829,11 @@ dispatchTransaction_fn = function(transaction) {
|
|
|
41818
41829
|
transaction
|
|
41819
41830
|
});
|
|
41820
41831
|
};
|
|
41832
|
+
handleNodeSelection_fn = function(view, pos) {
|
|
41833
|
+
if (this.options.isHeaderOrFooter) {
|
|
41834
|
+
return setImageNodeSelection(view, pos);
|
|
41835
|
+
}
|
|
41836
|
+
};
|
|
41821
41837
|
prepareDocumentForImport_fn = function(doc2) {
|
|
41822
41838
|
const newState = EditorState.create({
|
|
41823
41839
|
schema: this.schema,
|
|
@@ -49080,12 +49096,16 @@ const startImageUpload = async ({ editor, view, file }) => {
|
|
|
49080
49096
|
}
|
|
49081
49097
|
let id = {};
|
|
49082
49098
|
let { tr, schema } = view.state;
|
|
49083
|
-
|
|
49099
|
+
let { selection } = tr;
|
|
49100
|
+
if (editor.options.isHeaderOrFooter) {
|
|
49101
|
+
selection = editor.options.lastSelection;
|
|
49102
|
+
}
|
|
49103
|
+
if (!selection.empty && !editor.options.isHeaderOrFooter) {
|
|
49084
49104
|
tr.deleteSelection();
|
|
49085
49105
|
}
|
|
49086
49106
|
let imageMeta = {
|
|
49087
49107
|
type: "add",
|
|
49088
|
-
pos:
|
|
49108
|
+
pos: selection.from,
|
|
49089
49109
|
id
|
|
49090
49110
|
};
|
|
49091
49111
|
tr.setMeta(ImagePlaceholderPluginKey, imageMeta);
|
|
@@ -54385,10 +54405,7 @@ const Pagination = Extension.create({
|
|
|
54385
54405
|
const imagePluginTransaction = tr.getMeta(ImagePlaceholderPluginKey);
|
|
54386
54406
|
if (imagePluginTransaction) {
|
|
54387
54407
|
if (imagePluginTransaction.type === "remove") {
|
|
54388
|
-
|
|
54389
|
-
const domImage = editor.view.domAtPos(imagePos).node.querySelector("img");
|
|
54390
|
-
if (domImage.complete) onImageLoad(editor);
|
|
54391
|
-
else domImage.onload = () => onImageLoad(editor);
|
|
54408
|
+
onImageLoad(editor);
|
|
54392
54409
|
}
|
|
54393
54410
|
return { ...oldState };
|
|
54394
54411
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-BTAcmbVg.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-BjqmFOSP.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-DckFs3A7.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-CfClL-1b.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 */
|
|
@@ -457,7 +457,7 @@ var type = TypeError;
|
|
|
457
457
|
var uri = URIError;
|
|
458
458
|
var abs$1 = Math.abs;
|
|
459
459
|
var floor$1 = Math.floor;
|
|
460
|
-
var max$
|
|
460
|
+
var max$1 = Math.max;
|
|
461
461
|
var min$1 = Math.min;
|
|
462
462
|
var pow$1 = Math.pow;
|
|
463
463
|
var round$1 = Math.round;
|
|
@@ -517,78 +517,99 @@ function requireHasSymbols() {
|
|
|
517
517
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
518
518
|
var $Object$2 = esObjectAtoms;
|
|
519
519
|
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
520
|
-
var
|
|
521
|
-
var
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
var
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
arr
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
var
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
arr
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
var
|
|
542
|
-
|
|
543
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
544
|
-
str += arr[i];
|
|
545
|
-
if (i + 1 < arr.length) {
|
|
546
|
-
str += joiner;
|
|
520
|
+
var implementation;
|
|
521
|
+
var hasRequiredImplementation;
|
|
522
|
+
function requireImplementation() {
|
|
523
|
+
if (hasRequiredImplementation) return implementation;
|
|
524
|
+
hasRequiredImplementation = 1;
|
|
525
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
526
|
+
var toStr2 = Object.prototype.toString;
|
|
527
|
+
var max2 = Math.max;
|
|
528
|
+
var funcType = "[object Function]";
|
|
529
|
+
var concatty = function concatty2(a, b) {
|
|
530
|
+
var arr = [];
|
|
531
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
532
|
+
arr[i] = a[i];
|
|
533
|
+
}
|
|
534
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
535
|
+
arr[j + a.length] = b[j];
|
|
536
|
+
}
|
|
537
|
+
return arr;
|
|
538
|
+
};
|
|
539
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
540
|
+
var arr = [];
|
|
541
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
542
|
+
arr[j] = arrLike[i];
|
|
547
543
|
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
var args = slicy(arguments, 1);
|
|
557
|
-
var bound;
|
|
558
|
-
var binder = function() {
|
|
559
|
-
if (this instanceof bound) {
|
|
560
|
-
var result = target.apply(
|
|
561
|
-
this,
|
|
562
|
-
concatty(args, arguments)
|
|
563
|
-
);
|
|
564
|
-
if (Object(result) === result) {
|
|
565
|
-
return result;
|
|
544
|
+
return arr;
|
|
545
|
+
};
|
|
546
|
+
var joiny = function(arr, joiner) {
|
|
547
|
+
var str = "";
|
|
548
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
549
|
+
str += arr[i];
|
|
550
|
+
if (i + 1 < arr.length) {
|
|
551
|
+
str += joiner;
|
|
566
552
|
}
|
|
567
|
-
return this;
|
|
568
553
|
}
|
|
569
|
-
return
|
|
570
|
-
that,
|
|
571
|
-
concatty(args, arguments)
|
|
572
|
-
);
|
|
554
|
+
return str;
|
|
573
555
|
};
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
var
|
|
556
|
+
implementation = function bind2(that) {
|
|
557
|
+
var target = this;
|
|
558
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
559
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
560
|
+
}
|
|
561
|
+
var args = slicy(arguments, 1);
|
|
562
|
+
var bound;
|
|
563
|
+
var binder = function() {
|
|
564
|
+
if (this instanceof bound) {
|
|
565
|
+
var result = target.apply(
|
|
566
|
+
this,
|
|
567
|
+
concatty(args, arguments)
|
|
568
|
+
);
|
|
569
|
+
if (Object(result) === result) {
|
|
570
|
+
return result;
|
|
571
|
+
}
|
|
572
|
+
return this;
|
|
573
|
+
}
|
|
574
|
+
return target.apply(
|
|
575
|
+
that,
|
|
576
|
+
concatty(args, arguments)
|
|
577
|
+
);
|
|
582
578
|
};
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
|
|
579
|
+
var boundLength = max2(0, target.length - args.length);
|
|
580
|
+
var boundArgs = [];
|
|
581
|
+
for (var i = 0; i < boundLength; i++) {
|
|
582
|
+
boundArgs[i] = "$" + i;
|
|
583
|
+
}
|
|
584
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
585
|
+
if (target.prototype) {
|
|
586
|
+
var Empty = function Empty2() {
|
|
587
|
+
};
|
|
588
|
+
Empty.prototype = target.prototype;
|
|
589
|
+
bound.prototype = new Empty();
|
|
590
|
+
Empty.prototype = null;
|
|
591
|
+
}
|
|
592
|
+
return bound;
|
|
593
|
+
};
|
|
594
|
+
return implementation;
|
|
595
|
+
}
|
|
596
|
+
var functionBind;
|
|
597
|
+
var hasRequiredFunctionBind;
|
|
598
|
+
function requireFunctionBind() {
|
|
599
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
600
|
+
hasRequiredFunctionBind = 1;
|
|
601
|
+
var implementation2 = requireImplementation();
|
|
602
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
603
|
+
return functionBind;
|
|
604
|
+
}
|
|
605
|
+
var functionCall;
|
|
606
|
+
var hasRequiredFunctionCall;
|
|
607
|
+
function requireFunctionCall() {
|
|
608
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
609
|
+
hasRequiredFunctionCall = 1;
|
|
610
|
+
functionCall = Function.prototype.call;
|
|
611
|
+
return functionCall;
|
|
612
|
+
}
|
|
592
613
|
var functionApply;
|
|
593
614
|
var hasRequiredFunctionApply;
|
|
594
615
|
function requireFunctionApply() {
|
|
@@ -598,14 +619,14 @@ function requireFunctionApply() {
|
|
|
598
619
|
return functionApply;
|
|
599
620
|
}
|
|
600
621
|
var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
601
|
-
var bind$3 =
|
|
622
|
+
var bind$3 = requireFunctionBind();
|
|
602
623
|
var $apply$2 = requireFunctionApply();
|
|
603
|
-
var $call$2 =
|
|
624
|
+
var $call$2 = requireFunctionCall();
|
|
604
625
|
var $reflectApply = reflectApply$1;
|
|
605
626
|
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
606
|
-
var bind$2 =
|
|
627
|
+
var bind$2 = requireFunctionBind();
|
|
607
628
|
var $TypeError$4 = type;
|
|
608
|
-
var $call$1 =
|
|
629
|
+
var $call$1 = requireFunctionCall();
|
|
609
630
|
var $actualApply = actualApply$1;
|
|
610
631
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
611
632
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -657,8 +678,8 @@ function requireHasown() {
|
|
|
657
678
|
hasRequiredHasown = 1;
|
|
658
679
|
var call = Function.prototype.call;
|
|
659
680
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
660
|
-
var
|
|
661
|
-
hasown =
|
|
681
|
+
var bind2 = requireFunctionBind();
|
|
682
|
+
hasown = bind2.call(call, $hasOwn);
|
|
662
683
|
return hasown;
|
|
663
684
|
}
|
|
664
685
|
var undefined$1;
|
|
@@ -672,7 +693,7 @@ var $TypeError$3 = type;
|
|
|
672
693
|
var $URIError = uri;
|
|
673
694
|
var abs = abs$1;
|
|
674
695
|
var floor = floor$1;
|
|
675
|
-
var max = max$
|
|
696
|
+
var max = max$1;
|
|
676
697
|
var min = min$1;
|
|
677
698
|
var pow = pow$1;
|
|
678
699
|
var round = round$1;
|
|
@@ -706,7 +727,7 @@ var getProto$2 = getProto$3;
|
|
|
706
727
|
var $ObjectGPO = Object_getPrototypeOf;
|
|
707
728
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
708
729
|
var $apply$1 = requireFunctionApply();
|
|
709
|
-
var $call =
|
|
730
|
+
var $call = requireFunctionCall();
|
|
710
731
|
var needsEval = {};
|
|
711
732
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
712
733
|
var INTRINSICS = {
|
|
@@ -877,7 +898,7 @@ var LEGACY_ALIASES = {
|
|
|
877
898
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
878
899
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
879
900
|
};
|
|
880
|
-
var bind$1 =
|
|
901
|
+
var bind$1 = requireFunctionBind();
|
|
881
902
|
var hasOwn$1 = requireHasown();
|
|
882
903
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
883
904
|
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
@@ -1419,11 +1440,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1419
1440
|
}
|
|
1420
1441
|
return fn2;
|
|
1421
1442
|
};
|
|
1422
|
-
var
|
|
1443
|
+
var bind = requireFunctionBind();
|
|
1423
1444
|
var $apply = requireFunctionApply();
|
|
1424
1445
|
var actualApply = actualApply$1;
|
|
1425
1446
|
var applyBind = function applyBind2() {
|
|
1426
|
-
return actualApply(
|
|
1447
|
+
return actualApply(bind, $apply, arguments);
|
|
1427
1448
|
};
|
|
1428
1449
|
(function(module2) {
|
|
1429
1450
|
var setFunctionLength$1 = setFunctionLength;
|