@coana-tech/cli 14.8.5 → 14.8.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.
Files changed (2) hide show
  1. package/cli.mjs +4538 -88
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -147941,6 +147941,4449 @@ var require_boolbase = __commonJS({
147941
147941
  }
147942
147942
  });
147943
147943
 
147944
+ // ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/defaults.js
147945
+ var require_defaults2 = __commonJS({
147946
+ "../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/defaults.js"(exports2) {
147947
+ (function() {
147948
+ exports2.defaults = {
147949
+ "0.1": {
147950
+ explicitCharkey: false,
147951
+ trim: true,
147952
+ normalize: true,
147953
+ normalizeTags: false,
147954
+ attrkey: "@",
147955
+ charkey: "#",
147956
+ explicitArray: false,
147957
+ ignoreAttrs: false,
147958
+ mergeAttrs: false,
147959
+ explicitRoot: false,
147960
+ validator: null,
147961
+ xmlns: false,
147962
+ explicitChildren: false,
147963
+ childkey: "@@",
147964
+ charsAsChildren: false,
147965
+ includeWhiteChars: false,
147966
+ async: false,
147967
+ strict: true,
147968
+ attrNameProcessors: null,
147969
+ attrValueProcessors: null,
147970
+ tagNameProcessors: null,
147971
+ valueProcessors: null,
147972
+ emptyTag: ""
147973
+ },
147974
+ "0.2": {
147975
+ explicitCharkey: false,
147976
+ trim: false,
147977
+ normalize: false,
147978
+ normalizeTags: false,
147979
+ attrkey: "$",
147980
+ charkey: "_",
147981
+ explicitArray: true,
147982
+ ignoreAttrs: false,
147983
+ mergeAttrs: false,
147984
+ explicitRoot: true,
147985
+ validator: null,
147986
+ xmlns: false,
147987
+ explicitChildren: false,
147988
+ preserveChildrenOrder: false,
147989
+ childkey: "$$",
147990
+ charsAsChildren: false,
147991
+ includeWhiteChars: false,
147992
+ async: false,
147993
+ strict: true,
147994
+ attrNameProcessors: null,
147995
+ attrValueProcessors: null,
147996
+ tagNameProcessors: null,
147997
+ valueProcessors: null,
147998
+ rootName: "root",
147999
+ xmldec: {
148000
+ "version": "1.0",
148001
+ "encoding": "UTF-8",
148002
+ "standalone": true
148003
+ },
148004
+ doctype: null,
148005
+ renderOpts: {
148006
+ "pretty": true,
148007
+ "indent": " ",
148008
+ "newline": "\n"
148009
+ },
148010
+ headless: false,
148011
+ chunkSize: 1e4,
148012
+ emptyTag: "",
148013
+ cdata: false
148014
+ }
148015
+ };
148016
+ }).call(exports2);
148017
+ }
148018
+ });
148019
+
148020
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/Utility.js
148021
+ var require_Utility = __commonJS({
148022
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/Utility.js"(exports2, module2) {
148023
+ (function() {
148024
+ var assign, getValue, isArray2, isEmpty, isFunction2, isObject2, isPlainObject2, slice2 = [].slice, hasProp = {}.hasOwnProperty;
148025
+ assign = function() {
148026
+ var i7, key, len, source, sources, target;
148027
+ target = arguments[0], sources = 2 <= arguments.length ? slice2.call(arguments, 1) : [];
148028
+ if (isFunction2(Object.assign)) {
148029
+ Object.assign.apply(null, arguments);
148030
+ } else {
148031
+ for (i7 = 0, len = sources.length; i7 < len; i7++) {
148032
+ source = sources[i7];
148033
+ if (source != null) {
148034
+ for (key in source) {
148035
+ if (!hasProp.call(source, key)) continue;
148036
+ target[key] = source[key];
148037
+ }
148038
+ }
148039
+ }
148040
+ }
148041
+ return target;
148042
+ };
148043
+ isFunction2 = function(val3) {
148044
+ return !!val3 && Object.prototype.toString.call(val3) === "[object Function]";
148045
+ };
148046
+ isObject2 = function(val3) {
148047
+ var ref;
148048
+ return !!val3 && ((ref = typeof val3) === "function" || ref === "object");
148049
+ };
148050
+ isArray2 = function(val3) {
148051
+ if (isFunction2(Array.isArray)) {
148052
+ return Array.isArray(val3);
148053
+ } else {
148054
+ return Object.prototype.toString.call(val3) === "[object Array]";
148055
+ }
148056
+ };
148057
+ isEmpty = function(val3) {
148058
+ var key;
148059
+ if (isArray2(val3)) {
148060
+ return !val3.length;
148061
+ } else {
148062
+ for (key in val3) {
148063
+ if (!hasProp.call(val3, key)) continue;
148064
+ return false;
148065
+ }
148066
+ return true;
148067
+ }
148068
+ };
148069
+ isPlainObject2 = function(val3) {
148070
+ var ctor, proto;
148071
+ return isObject2(val3) && (proto = Object.getPrototypeOf(val3)) && (ctor = proto.constructor) && typeof ctor === "function" && ctor instanceof ctor && Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object);
148072
+ };
148073
+ getValue = function(obj) {
148074
+ if (isFunction2(obj.valueOf)) {
148075
+ return obj.valueOf();
148076
+ } else {
148077
+ return obj;
148078
+ }
148079
+ };
148080
+ module2.exports.assign = assign;
148081
+ module2.exports.isFunction = isFunction2;
148082
+ module2.exports.isObject = isObject2;
148083
+ module2.exports.isArray = isArray2;
148084
+ module2.exports.isEmpty = isEmpty;
148085
+ module2.exports.isPlainObject = isPlainObject2;
148086
+ module2.exports.getValue = getValue;
148087
+ }).call(exports2);
148088
+ }
148089
+ });
148090
+
148091
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js
148092
+ var require_XMLDOMImplementation = __commonJS({
148093
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js"(exports2, module2) {
148094
+ (function() {
148095
+ var XMLDOMImplementation;
148096
+ module2.exports = XMLDOMImplementation = function() {
148097
+ function XMLDOMImplementation2() {
148098
+ }
148099
+ XMLDOMImplementation2.prototype.hasFeature = function(feature, version3) {
148100
+ return true;
148101
+ };
148102
+ XMLDOMImplementation2.prototype.createDocumentType = function(qualifiedName, publicId, systemId) {
148103
+ throw new Error("This DOM method is not implemented.");
148104
+ };
148105
+ XMLDOMImplementation2.prototype.createDocument = function(namespaceURI, qualifiedName, doctype) {
148106
+ throw new Error("This DOM method is not implemented.");
148107
+ };
148108
+ XMLDOMImplementation2.prototype.createHTMLDocument = function(title) {
148109
+ throw new Error("This DOM method is not implemented.");
148110
+ };
148111
+ XMLDOMImplementation2.prototype.getFeature = function(feature, version3) {
148112
+ throw new Error("This DOM method is not implemented.");
148113
+ };
148114
+ return XMLDOMImplementation2;
148115
+ }();
148116
+ }).call(exports2);
148117
+ }
148118
+ });
148119
+
148120
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js
148121
+ var require_XMLDOMErrorHandler = __commonJS({
148122
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js"(exports2, module2) {
148123
+ (function() {
148124
+ var XMLDOMErrorHandler;
148125
+ module2.exports = XMLDOMErrorHandler = function() {
148126
+ function XMLDOMErrorHandler2() {
148127
+ }
148128
+ XMLDOMErrorHandler2.prototype.handleError = function(error) {
148129
+ throw new Error(error);
148130
+ };
148131
+ return XMLDOMErrorHandler2;
148132
+ }();
148133
+ }).call(exports2);
148134
+ }
148135
+ });
148136
+
148137
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js
148138
+ var require_XMLDOMStringList = __commonJS({
148139
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js"(exports2, module2) {
148140
+ (function() {
148141
+ var XMLDOMStringList;
148142
+ module2.exports = XMLDOMStringList = function() {
148143
+ function XMLDOMStringList2(arr) {
148144
+ this.arr = arr || [];
148145
+ }
148146
+ Object.defineProperty(XMLDOMStringList2.prototype, "length", {
148147
+ get: function() {
148148
+ return this.arr.length;
148149
+ }
148150
+ });
148151
+ XMLDOMStringList2.prototype.item = function(index2) {
148152
+ return this.arr[index2] || null;
148153
+ };
148154
+ XMLDOMStringList2.prototype.contains = function(str) {
148155
+ return this.arr.indexOf(str) !== -1;
148156
+ };
148157
+ return XMLDOMStringList2;
148158
+ }();
148159
+ }).call(exports2);
148160
+ }
148161
+ });
148162
+
148163
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js
148164
+ var require_XMLDOMConfiguration = __commonJS({
148165
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js"(exports2, module2) {
148166
+ (function() {
148167
+ var XMLDOMConfiguration, XMLDOMErrorHandler, XMLDOMStringList;
148168
+ XMLDOMErrorHandler = require_XMLDOMErrorHandler();
148169
+ XMLDOMStringList = require_XMLDOMStringList();
148170
+ module2.exports = XMLDOMConfiguration = function() {
148171
+ function XMLDOMConfiguration2() {
148172
+ var clonedSelf;
148173
+ this.defaultParams = {
148174
+ "canonical-form": false,
148175
+ "cdata-sections": false,
148176
+ "comments": false,
148177
+ "datatype-normalization": false,
148178
+ "element-content-whitespace": true,
148179
+ "entities": true,
148180
+ "error-handler": new XMLDOMErrorHandler(),
148181
+ "infoset": true,
148182
+ "validate-if-schema": false,
148183
+ "namespaces": true,
148184
+ "namespace-declarations": true,
148185
+ "normalize-characters": false,
148186
+ "schema-location": "",
148187
+ "schema-type": "",
148188
+ "split-cdata-sections": true,
148189
+ "validate": false,
148190
+ "well-formed": true
148191
+ };
148192
+ this.params = clonedSelf = Object.create(this.defaultParams);
148193
+ }
148194
+ Object.defineProperty(XMLDOMConfiguration2.prototype, "parameterNames", {
148195
+ get: function() {
148196
+ return new XMLDOMStringList(Object.keys(this.defaultParams));
148197
+ }
148198
+ });
148199
+ XMLDOMConfiguration2.prototype.getParameter = function(name) {
148200
+ if (this.params.hasOwnProperty(name)) {
148201
+ return this.params[name];
148202
+ } else {
148203
+ return null;
148204
+ }
148205
+ };
148206
+ XMLDOMConfiguration2.prototype.canSetParameter = function(name, value) {
148207
+ return true;
148208
+ };
148209
+ XMLDOMConfiguration2.prototype.setParameter = function(name, value) {
148210
+ if (value != null) {
148211
+ return this.params[name] = value;
148212
+ } else {
148213
+ return delete this.params[name];
148214
+ }
148215
+ };
148216
+ return XMLDOMConfiguration2;
148217
+ }();
148218
+ }).call(exports2);
148219
+ }
148220
+ });
148221
+
148222
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/NodeType.js
148223
+ var require_NodeType = __commonJS({
148224
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/NodeType.js"(exports2, module2) {
148225
+ (function() {
148226
+ module2.exports = {
148227
+ Element: 1,
148228
+ Attribute: 2,
148229
+ Text: 3,
148230
+ CData: 4,
148231
+ EntityReference: 5,
148232
+ EntityDeclaration: 6,
148233
+ ProcessingInstruction: 7,
148234
+ Comment: 8,
148235
+ Document: 9,
148236
+ DocType: 10,
148237
+ DocumentFragment: 11,
148238
+ NotationDeclaration: 12,
148239
+ Declaration: 201,
148240
+ Raw: 202,
148241
+ AttributeDeclaration: 203,
148242
+ ElementDeclaration: 204,
148243
+ Dummy: 205
148244
+ };
148245
+ }).call(exports2);
148246
+ }
148247
+ });
148248
+
148249
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLAttribute.js
148250
+ var require_XMLAttribute = __commonJS({
148251
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLAttribute.js"(exports2, module2) {
148252
+ (function() {
148253
+ var NodeType, XMLAttribute, XMLNode;
148254
+ NodeType = require_NodeType();
148255
+ XMLNode = require_XMLNode();
148256
+ module2.exports = XMLAttribute = function() {
148257
+ function XMLAttribute2(parent2, name, value) {
148258
+ this.parent = parent2;
148259
+ if (this.parent) {
148260
+ this.options = this.parent.options;
148261
+ this.stringify = this.parent.stringify;
148262
+ }
148263
+ if (name == null) {
148264
+ throw new Error("Missing attribute name. " + this.debugInfo(name));
148265
+ }
148266
+ this.name = this.stringify.name(name);
148267
+ this.value = this.stringify.attValue(value);
148268
+ this.type = NodeType.Attribute;
148269
+ this.isId = false;
148270
+ this.schemaTypeInfo = null;
148271
+ }
148272
+ Object.defineProperty(XMLAttribute2.prototype, "nodeType", {
148273
+ get: function() {
148274
+ return this.type;
148275
+ }
148276
+ });
148277
+ Object.defineProperty(XMLAttribute2.prototype, "ownerElement", {
148278
+ get: function() {
148279
+ return this.parent;
148280
+ }
148281
+ });
148282
+ Object.defineProperty(XMLAttribute2.prototype, "textContent", {
148283
+ get: function() {
148284
+ return this.value;
148285
+ },
148286
+ set: function(value) {
148287
+ return this.value = value || "";
148288
+ }
148289
+ });
148290
+ Object.defineProperty(XMLAttribute2.prototype, "namespaceURI", {
148291
+ get: function() {
148292
+ return "";
148293
+ }
148294
+ });
148295
+ Object.defineProperty(XMLAttribute2.prototype, "prefix", {
148296
+ get: function() {
148297
+ return "";
148298
+ }
148299
+ });
148300
+ Object.defineProperty(XMLAttribute2.prototype, "localName", {
148301
+ get: function() {
148302
+ return this.name;
148303
+ }
148304
+ });
148305
+ Object.defineProperty(XMLAttribute2.prototype, "specified", {
148306
+ get: function() {
148307
+ return true;
148308
+ }
148309
+ });
148310
+ XMLAttribute2.prototype.clone = function() {
148311
+ return Object.create(this);
148312
+ };
148313
+ XMLAttribute2.prototype.toString = function(options) {
148314
+ return this.options.writer.attribute(this, this.options.writer.filterOptions(options));
148315
+ };
148316
+ XMLAttribute2.prototype.debugInfo = function(name) {
148317
+ name = name || this.name;
148318
+ if (name == null) {
148319
+ return "parent: <" + this.parent.name + ">";
148320
+ } else {
148321
+ return "attribute: {" + name + "}, parent: <" + this.parent.name + ">";
148322
+ }
148323
+ };
148324
+ XMLAttribute2.prototype.isEqualNode = function(node) {
148325
+ if (node.namespaceURI !== this.namespaceURI) {
148326
+ return false;
148327
+ }
148328
+ if (node.prefix !== this.prefix) {
148329
+ return false;
148330
+ }
148331
+ if (node.localName !== this.localName) {
148332
+ return false;
148333
+ }
148334
+ if (node.value !== this.value) {
148335
+ return false;
148336
+ }
148337
+ return true;
148338
+ };
148339
+ return XMLAttribute2;
148340
+ }();
148341
+ }).call(exports2);
148342
+ }
148343
+ });
148344
+
148345
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js
148346
+ var require_XMLNamedNodeMap = __commonJS({
148347
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js"(exports2, module2) {
148348
+ (function() {
148349
+ var XMLNamedNodeMap;
148350
+ module2.exports = XMLNamedNodeMap = function() {
148351
+ function XMLNamedNodeMap2(nodes) {
148352
+ this.nodes = nodes;
148353
+ }
148354
+ Object.defineProperty(XMLNamedNodeMap2.prototype, "length", {
148355
+ get: function() {
148356
+ return Object.keys(this.nodes).length || 0;
148357
+ }
148358
+ });
148359
+ XMLNamedNodeMap2.prototype.clone = function() {
148360
+ return this.nodes = null;
148361
+ };
148362
+ XMLNamedNodeMap2.prototype.getNamedItem = function(name) {
148363
+ return this.nodes[name];
148364
+ };
148365
+ XMLNamedNodeMap2.prototype.setNamedItem = function(node) {
148366
+ var oldNode;
148367
+ oldNode = this.nodes[node.nodeName];
148368
+ this.nodes[node.nodeName] = node;
148369
+ return oldNode || null;
148370
+ };
148371
+ XMLNamedNodeMap2.prototype.removeNamedItem = function(name) {
148372
+ var oldNode;
148373
+ oldNode = this.nodes[name];
148374
+ delete this.nodes[name];
148375
+ return oldNode || null;
148376
+ };
148377
+ XMLNamedNodeMap2.prototype.item = function(index2) {
148378
+ return this.nodes[Object.keys(this.nodes)[index2]] || null;
148379
+ };
148380
+ XMLNamedNodeMap2.prototype.getNamedItemNS = function(namespaceURI, localName) {
148381
+ throw new Error("This DOM method is not implemented.");
148382
+ };
148383
+ XMLNamedNodeMap2.prototype.setNamedItemNS = function(node) {
148384
+ throw new Error("This DOM method is not implemented.");
148385
+ };
148386
+ XMLNamedNodeMap2.prototype.removeNamedItemNS = function(namespaceURI, localName) {
148387
+ throw new Error("This DOM method is not implemented.");
148388
+ };
148389
+ return XMLNamedNodeMap2;
148390
+ }();
148391
+ }).call(exports2);
148392
+ }
148393
+ });
148394
+
148395
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLElement.js
148396
+ var require_XMLElement = __commonJS({
148397
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLElement.js"(exports2, module2) {
148398
+ (function() {
148399
+ var NodeType, XMLAttribute, XMLElement, XMLNamedNodeMap, XMLNode, getValue, isFunction2, isObject2, ref, extend2 = function(child, parent2) {
148400
+ for (var key in parent2) {
148401
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
148402
+ }
148403
+ function ctor() {
148404
+ this.constructor = child;
148405
+ }
148406
+ ctor.prototype = parent2.prototype;
148407
+ child.prototype = new ctor();
148408
+ child.__super__ = parent2.prototype;
148409
+ return child;
148410
+ }, hasProp = {}.hasOwnProperty;
148411
+ ref = require_Utility(), isObject2 = ref.isObject, isFunction2 = ref.isFunction, getValue = ref.getValue;
148412
+ XMLNode = require_XMLNode();
148413
+ NodeType = require_NodeType();
148414
+ XMLAttribute = require_XMLAttribute();
148415
+ XMLNamedNodeMap = require_XMLNamedNodeMap();
148416
+ module2.exports = XMLElement = function(superClass) {
148417
+ extend2(XMLElement2, superClass);
148418
+ function XMLElement2(parent2, name, attributes2) {
148419
+ var child, j, len, ref1;
148420
+ XMLElement2.__super__.constructor.call(this, parent2);
148421
+ if (name == null) {
148422
+ throw new Error("Missing element name. " + this.debugInfo());
148423
+ }
148424
+ this.name = this.stringify.name(name);
148425
+ this.type = NodeType.Element;
148426
+ this.attribs = {};
148427
+ this.schemaTypeInfo = null;
148428
+ if (attributes2 != null) {
148429
+ this.attribute(attributes2);
148430
+ }
148431
+ if (parent2.type === NodeType.Document) {
148432
+ this.isRoot = true;
148433
+ this.documentObject = parent2;
148434
+ parent2.rootObject = this;
148435
+ if (parent2.children) {
148436
+ ref1 = parent2.children;
148437
+ for (j = 0, len = ref1.length; j < len; j++) {
148438
+ child = ref1[j];
148439
+ if (child.type === NodeType.DocType) {
148440
+ child.name = this.name;
148441
+ break;
148442
+ }
148443
+ }
148444
+ }
148445
+ }
148446
+ }
148447
+ Object.defineProperty(XMLElement2.prototype, "tagName", {
148448
+ get: function() {
148449
+ return this.name;
148450
+ }
148451
+ });
148452
+ Object.defineProperty(XMLElement2.prototype, "namespaceURI", {
148453
+ get: function() {
148454
+ return "";
148455
+ }
148456
+ });
148457
+ Object.defineProperty(XMLElement2.prototype, "prefix", {
148458
+ get: function() {
148459
+ return "";
148460
+ }
148461
+ });
148462
+ Object.defineProperty(XMLElement2.prototype, "localName", {
148463
+ get: function() {
148464
+ return this.name;
148465
+ }
148466
+ });
148467
+ Object.defineProperty(XMLElement2.prototype, "id", {
148468
+ get: function() {
148469
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148470
+ }
148471
+ });
148472
+ Object.defineProperty(XMLElement2.prototype, "className", {
148473
+ get: function() {
148474
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148475
+ }
148476
+ });
148477
+ Object.defineProperty(XMLElement2.prototype, "classList", {
148478
+ get: function() {
148479
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148480
+ }
148481
+ });
148482
+ Object.defineProperty(XMLElement2.prototype, "attributes", {
148483
+ get: function() {
148484
+ if (!this.attributeMap || !this.attributeMap.nodes) {
148485
+ this.attributeMap = new XMLNamedNodeMap(this.attribs);
148486
+ }
148487
+ return this.attributeMap;
148488
+ }
148489
+ });
148490
+ XMLElement2.prototype.clone = function() {
148491
+ var att, attName, clonedSelf, ref1;
148492
+ clonedSelf = Object.create(this);
148493
+ if (clonedSelf.isRoot) {
148494
+ clonedSelf.documentObject = null;
148495
+ }
148496
+ clonedSelf.attribs = {};
148497
+ ref1 = this.attribs;
148498
+ for (attName in ref1) {
148499
+ if (!hasProp.call(ref1, attName)) continue;
148500
+ att = ref1[attName];
148501
+ clonedSelf.attribs[attName] = att.clone();
148502
+ }
148503
+ clonedSelf.children = [];
148504
+ this.children.forEach(function(child) {
148505
+ var clonedChild;
148506
+ clonedChild = child.clone();
148507
+ clonedChild.parent = clonedSelf;
148508
+ return clonedSelf.children.push(clonedChild);
148509
+ });
148510
+ return clonedSelf;
148511
+ };
148512
+ XMLElement2.prototype.attribute = function(name, value) {
148513
+ var attName, attValue;
148514
+ if (name != null) {
148515
+ name = getValue(name);
148516
+ }
148517
+ if (isObject2(name)) {
148518
+ for (attName in name) {
148519
+ if (!hasProp.call(name, attName)) continue;
148520
+ attValue = name[attName];
148521
+ this.attribute(attName, attValue);
148522
+ }
148523
+ } else {
148524
+ if (isFunction2(value)) {
148525
+ value = value.apply();
148526
+ }
148527
+ if (this.options.keepNullAttributes && value == null) {
148528
+ this.attribs[name] = new XMLAttribute(this, name, "");
148529
+ } else if (value != null) {
148530
+ this.attribs[name] = new XMLAttribute(this, name, value);
148531
+ }
148532
+ }
148533
+ return this;
148534
+ };
148535
+ XMLElement2.prototype.removeAttribute = function(name) {
148536
+ var attName, j, len;
148537
+ if (name == null) {
148538
+ throw new Error("Missing attribute name. " + this.debugInfo());
148539
+ }
148540
+ name = getValue(name);
148541
+ if (Array.isArray(name)) {
148542
+ for (j = 0, len = name.length; j < len; j++) {
148543
+ attName = name[j];
148544
+ delete this.attribs[attName];
148545
+ }
148546
+ } else {
148547
+ delete this.attribs[name];
148548
+ }
148549
+ return this;
148550
+ };
148551
+ XMLElement2.prototype.toString = function(options) {
148552
+ return this.options.writer.element(this, this.options.writer.filterOptions(options));
148553
+ };
148554
+ XMLElement2.prototype.att = function(name, value) {
148555
+ return this.attribute(name, value);
148556
+ };
148557
+ XMLElement2.prototype.a = function(name, value) {
148558
+ return this.attribute(name, value);
148559
+ };
148560
+ XMLElement2.prototype.getAttribute = function(name) {
148561
+ if (this.attribs.hasOwnProperty(name)) {
148562
+ return this.attribs[name].value;
148563
+ } else {
148564
+ return null;
148565
+ }
148566
+ };
148567
+ XMLElement2.prototype.setAttribute = function(name, value) {
148568
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148569
+ };
148570
+ XMLElement2.prototype.getAttributeNode = function(name) {
148571
+ if (this.attribs.hasOwnProperty(name)) {
148572
+ return this.attribs[name];
148573
+ } else {
148574
+ return null;
148575
+ }
148576
+ };
148577
+ XMLElement2.prototype.setAttributeNode = function(newAttr) {
148578
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148579
+ };
148580
+ XMLElement2.prototype.removeAttributeNode = function(oldAttr) {
148581
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148582
+ };
148583
+ XMLElement2.prototype.getElementsByTagName = function(name) {
148584
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148585
+ };
148586
+ XMLElement2.prototype.getAttributeNS = function(namespaceURI, localName) {
148587
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148588
+ };
148589
+ XMLElement2.prototype.setAttributeNS = function(namespaceURI, qualifiedName, value) {
148590
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148591
+ };
148592
+ XMLElement2.prototype.removeAttributeNS = function(namespaceURI, localName) {
148593
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148594
+ };
148595
+ XMLElement2.prototype.getAttributeNodeNS = function(namespaceURI, localName) {
148596
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148597
+ };
148598
+ XMLElement2.prototype.setAttributeNodeNS = function(newAttr) {
148599
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148600
+ };
148601
+ XMLElement2.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {
148602
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148603
+ };
148604
+ XMLElement2.prototype.hasAttribute = function(name) {
148605
+ return this.attribs.hasOwnProperty(name);
148606
+ };
148607
+ XMLElement2.prototype.hasAttributeNS = function(namespaceURI, localName) {
148608
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148609
+ };
148610
+ XMLElement2.prototype.setIdAttribute = function(name, isId) {
148611
+ if (this.attribs.hasOwnProperty(name)) {
148612
+ return this.attribs[name].isId;
148613
+ } else {
148614
+ return isId;
148615
+ }
148616
+ };
148617
+ XMLElement2.prototype.setIdAttributeNS = function(namespaceURI, localName, isId) {
148618
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148619
+ };
148620
+ XMLElement2.prototype.setIdAttributeNode = function(idAttr, isId) {
148621
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148622
+ };
148623
+ XMLElement2.prototype.getElementsByTagName = function(tagname) {
148624
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148625
+ };
148626
+ XMLElement2.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {
148627
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148628
+ };
148629
+ XMLElement2.prototype.getElementsByClassName = function(classNames) {
148630
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148631
+ };
148632
+ XMLElement2.prototype.isEqualNode = function(node) {
148633
+ var i7, j, ref1;
148634
+ if (!XMLElement2.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {
148635
+ return false;
148636
+ }
148637
+ if (node.namespaceURI !== this.namespaceURI) {
148638
+ return false;
148639
+ }
148640
+ if (node.prefix !== this.prefix) {
148641
+ return false;
148642
+ }
148643
+ if (node.localName !== this.localName) {
148644
+ return false;
148645
+ }
148646
+ if (node.attribs.length !== this.attribs.length) {
148647
+ return false;
148648
+ }
148649
+ for (i7 = j = 0, ref1 = this.attribs.length - 1; 0 <= ref1 ? j <= ref1 : j >= ref1; i7 = 0 <= ref1 ? ++j : --j) {
148650
+ if (!this.attribs[i7].isEqualNode(node.attribs[i7])) {
148651
+ return false;
148652
+ }
148653
+ }
148654
+ return true;
148655
+ };
148656
+ return XMLElement2;
148657
+ }(XMLNode);
148658
+ }).call(exports2);
148659
+ }
148660
+ });
148661
+
148662
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCharacterData.js
148663
+ var require_XMLCharacterData = __commonJS({
148664
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCharacterData.js"(exports2, module2) {
148665
+ (function() {
148666
+ var XMLCharacterData, XMLNode, extend2 = function(child, parent2) {
148667
+ for (var key in parent2) {
148668
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
148669
+ }
148670
+ function ctor() {
148671
+ this.constructor = child;
148672
+ }
148673
+ ctor.prototype = parent2.prototype;
148674
+ child.prototype = new ctor();
148675
+ child.__super__ = parent2.prototype;
148676
+ return child;
148677
+ }, hasProp = {}.hasOwnProperty;
148678
+ XMLNode = require_XMLNode();
148679
+ module2.exports = XMLCharacterData = function(superClass) {
148680
+ extend2(XMLCharacterData2, superClass);
148681
+ function XMLCharacterData2(parent2) {
148682
+ XMLCharacterData2.__super__.constructor.call(this, parent2);
148683
+ this.value = "";
148684
+ }
148685
+ Object.defineProperty(XMLCharacterData2.prototype, "data", {
148686
+ get: function() {
148687
+ return this.value;
148688
+ },
148689
+ set: function(value) {
148690
+ return this.value = value || "";
148691
+ }
148692
+ });
148693
+ Object.defineProperty(XMLCharacterData2.prototype, "length", {
148694
+ get: function() {
148695
+ return this.value.length;
148696
+ }
148697
+ });
148698
+ Object.defineProperty(XMLCharacterData2.prototype, "textContent", {
148699
+ get: function() {
148700
+ return this.value;
148701
+ },
148702
+ set: function(value) {
148703
+ return this.value = value || "";
148704
+ }
148705
+ });
148706
+ XMLCharacterData2.prototype.clone = function() {
148707
+ return Object.create(this);
148708
+ };
148709
+ XMLCharacterData2.prototype.substringData = function(offset, count) {
148710
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148711
+ };
148712
+ XMLCharacterData2.prototype.appendData = function(arg) {
148713
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148714
+ };
148715
+ XMLCharacterData2.prototype.insertData = function(offset, arg) {
148716
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148717
+ };
148718
+ XMLCharacterData2.prototype.deleteData = function(offset, count) {
148719
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148720
+ };
148721
+ XMLCharacterData2.prototype.replaceData = function(offset, count, arg) {
148722
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
148723
+ };
148724
+ XMLCharacterData2.prototype.isEqualNode = function(node) {
148725
+ if (!XMLCharacterData2.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {
148726
+ return false;
148727
+ }
148728
+ if (node.data !== this.data) {
148729
+ return false;
148730
+ }
148731
+ return true;
148732
+ };
148733
+ return XMLCharacterData2;
148734
+ }(XMLNode);
148735
+ }).call(exports2);
148736
+ }
148737
+ });
148738
+
148739
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCData.js
148740
+ var require_XMLCData = __commonJS({
148741
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCData.js"(exports2, module2) {
148742
+ (function() {
148743
+ var NodeType, XMLCData, XMLCharacterData, extend2 = function(child, parent2) {
148744
+ for (var key in parent2) {
148745
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
148746
+ }
148747
+ function ctor() {
148748
+ this.constructor = child;
148749
+ }
148750
+ ctor.prototype = parent2.prototype;
148751
+ child.prototype = new ctor();
148752
+ child.__super__ = parent2.prototype;
148753
+ return child;
148754
+ }, hasProp = {}.hasOwnProperty;
148755
+ NodeType = require_NodeType();
148756
+ XMLCharacterData = require_XMLCharacterData();
148757
+ module2.exports = XMLCData = function(superClass) {
148758
+ extend2(XMLCData2, superClass);
148759
+ function XMLCData2(parent2, text3) {
148760
+ XMLCData2.__super__.constructor.call(this, parent2);
148761
+ if (text3 == null) {
148762
+ throw new Error("Missing CDATA text. " + this.debugInfo());
148763
+ }
148764
+ this.name = "#cdata-section";
148765
+ this.type = NodeType.CData;
148766
+ this.value = this.stringify.cdata(text3);
148767
+ }
148768
+ XMLCData2.prototype.clone = function() {
148769
+ return Object.create(this);
148770
+ };
148771
+ XMLCData2.prototype.toString = function(options) {
148772
+ return this.options.writer.cdata(this, this.options.writer.filterOptions(options));
148773
+ };
148774
+ return XMLCData2;
148775
+ }(XMLCharacterData);
148776
+ }).call(exports2);
148777
+ }
148778
+ });
148779
+
148780
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLComment.js
148781
+ var require_XMLComment = __commonJS({
148782
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLComment.js"(exports2, module2) {
148783
+ (function() {
148784
+ var NodeType, XMLCharacterData, XMLComment, extend2 = function(child, parent2) {
148785
+ for (var key in parent2) {
148786
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
148787
+ }
148788
+ function ctor() {
148789
+ this.constructor = child;
148790
+ }
148791
+ ctor.prototype = parent2.prototype;
148792
+ child.prototype = new ctor();
148793
+ child.__super__ = parent2.prototype;
148794
+ return child;
148795
+ }, hasProp = {}.hasOwnProperty;
148796
+ NodeType = require_NodeType();
148797
+ XMLCharacterData = require_XMLCharacterData();
148798
+ module2.exports = XMLComment = function(superClass) {
148799
+ extend2(XMLComment2, superClass);
148800
+ function XMLComment2(parent2, text3) {
148801
+ XMLComment2.__super__.constructor.call(this, parent2);
148802
+ if (text3 == null) {
148803
+ throw new Error("Missing comment text. " + this.debugInfo());
148804
+ }
148805
+ this.name = "#comment";
148806
+ this.type = NodeType.Comment;
148807
+ this.value = this.stringify.comment(text3);
148808
+ }
148809
+ XMLComment2.prototype.clone = function() {
148810
+ return Object.create(this);
148811
+ };
148812
+ XMLComment2.prototype.toString = function(options) {
148813
+ return this.options.writer.comment(this, this.options.writer.filterOptions(options));
148814
+ };
148815
+ return XMLComment2;
148816
+ }(XMLCharacterData);
148817
+ }).call(exports2);
148818
+ }
148819
+ });
148820
+
148821
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDeclaration.js
148822
+ var require_XMLDeclaration = __commonJS({
148823
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDeclaration.js"(exports2, module2) {
148824
+ (function() {
148825
+ var NodeType, XMLDeclaration, XMLNode, isObject2, extend2 = function(child, parent2) {
148826
+ for (var key in parent2) {
148827
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
148828
+ }
148829
+ function ctor() {
148830
+ this.constructor = child;
148831
+ }
148832
+ ctor.prototype = parent2.prototype;
148833
+ child.prototype = new ctor();
148834
+ child.__super__ = parent2.prototype;
148835
+ return child;
148836
+ }, hasProp = {}.hasOwnProperty;
148837
+ isObject2 = require_Utility().isObject;
148838
+ XMLNode = require_XMLNode();
148839
+ NodeType = require_NodeType();
148840
+ module2.exports = XMLDeclaration = function(superClass) {
148841
+ extend2(XMLDeclaration2, superClass);
148842
+ function XMLDeclaration2(parent2, version3, encoding, standalone) {
148843
+ var ref;
148844
+ XMLDeclaration2.__super__.constructor.call(this, parent2);
148845
+ if (isObject2(version3)) {
148846
+ ref = version3, version3 = ref.version, encoding = ref.encoding, standalone = ref.standalone;
148847
+ }
148848
+ if (!version3) {
148849
+ version3 = "1.0";
148850
+ }
148851
+ this.type = NodeType.Declaration;
148852
+ this.version = this.stringify.xmlVersion(version3);
148853
+ if (encoding != null) {
148854
+ this.encoding = this.stringify.xmlEncoding(encoding);
148855
+ }
148856
+ if (standalone != null) {
148857
+ this.standalone = this.stringify.xmlStandalone(standalone);
148858
+ }
148859
+ }
148860
+ XMLDeclaration2.prototype.toString = function(options) {
148861
+ return this.options.writer.declaration(this, this.options.writer.filterOptions(options));
148862
+ };
148863
+ return XMLDeclaration2;
148864
+ }(XMLNode);
148865
+ }).call(exports2);
148866
+ }
148867
+ });
148868
+
148869
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js
148870
+ var require_XMLDTDAttList = __commonJS({
148871
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js"(exports2, module2) {
148872
+ (function() {
148873
+ var NodeType, XMLDTDAttList, XMLNode, extend2 = function(child, parent2) {
148874
+ for (var key in parent2) {
148875
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
148876
+ }
148877
+ function ctor() {
148878
+ this.constructor = child;
148879
+ }
148880
+ ctor.prototype = parent2.prototype;
148881
+ child.prototype = new ctor();
148882
+ child.__super__ = parent2.prototype;
148883
+ return child;
148884
+ }, hasProp = {}.hasOwnProperty;
148885
+ XMLNode = require_XMLNode();
148886
+ NodeType = require_NodeType();
148887
+ module2.exports = XMLDTDAttList = function(superClass) {
148888
+ extend2(XMLDTDAttList2, superClass);
148889
+ function XMLDTDAttList2(parent2, elementName, attributeName, attributeType, defaultValueType, defaultValue) {
148890
+ XMLDTDAttList2.__super__.constructor.call(this, parent2);
148891
+ if (elementName == null) {
148892
+ throw new Error("Missing DTD element name. " + this.debugInfo());
148893
+ }
148894
+ if (attributeName == null) {
148895
+ throw new Error("Missing DTD attribute name. " + this.debugInfo(elementName));
148896
+ }
148897
+ if (!attributeType) {
148898
+ throw new Error("Missing DTD attribute type. " + this.debugInfo(elementName));
148899
+ }
148900
+ if (!defaultValueType) {
148901
+ throw new Error("Missing DTD attribute default. " + this.debugInfo(elementName));
148902
+ }
148903
+ if (defaultValueType.indexOf("#") !== 0) {
148904
+ defaultValueType = "#" + defaultValueType;
148905
+ }
148906
+ if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) {
148907
+ throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. " + this.debugInfo(elementName));
148908
+ }
148909
+ if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) {
148910
+ throw new Error("Default value only applies to #FIXED or #DEFAULT. " + this.debugInfo(elementName));
148911
+ }
148912
+ this.elementName = this.stringify.name(elementName);
148913
+ this.type = NodeType.AttributeDeclaration;
148914
+ this.attributeName = this.stringify.name(attributeName);
148915
+ this.attributeType = this.stringify.dtdAttType(attributeType);
148916
+ if (defaultValue) {
148917
+ this.defaultValue = this.stringify.dtdAttDefault(defaultValue);
148918
+ }
148919
+ this.defaultValueType = defaultValueType;
148920
+ }
148921
+ XMLDTDAttList2.prototype.toString = function(options) {
148922
+ return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(options));
148923
+ };
148924
+ return XMLDTDAttList2;
148925
+ }(XMLNode);
148926
+ }).call(exports2);
148927
+ }
148928
+ });
148929
+
148930
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js
148931
+ var require_XMLDTDEntity = __commonJS({
148932
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js"(exports2, module2) {
148933
+ (function() {
148934
+ var NodeType, XMLDTDEntity, XMLNode, isObject2, extend2 = function(child, parent2) {
148935
+ for (var key in parent2) {
148936
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
148937
+ }
148938
+ function ctor() {
148939
+ this.constructor = child;
148940
+ }
148941
+ ctor.prototype = parent2.prototype;
148942
+ child.prototype = new ctor();
148943
+ child.__super__ = parent2.prototype;
148944
+ return child;
148945
+ }, hasProp = {}.hasOwnProperty;
148946
+ isObject2 = require_Utility().isObject;
148947
+ XMLNode = require_XMLNode();
148948
+ NodeType = require_NodeType();
148949
+ module2.exports = XMLDTDEntity = function(superClass) {
148950
+ extend2(XMLDTDEntity2, superClass);
148951
+ function XMLDTDEntity2(parent2, pe, name, value) {
148952
+ XMLDTDEntity2.__super__.constructor.call(this, parent2);
148953
+ if (name == null) {
148954
+ throw new Error("Missing DTD entity name. " + this.debugInfo(name));
148955
+ }
148956
+ if (value == null) {
148957
+ throw new Error("Missing DTD entity value. " + this.debugInfo(name));
148958
+ }
148959
+ this.pe = !!pe;
148960
+ this.name = this.stringify.name(name);
148961
+ this.type = NodeType.EntityDeclaration;
148962
+ if (!isObject2(value)) {
148963
+ this.value = this.stringify.dtdEntityValue(value);
148964
+ this.internal = true;
148965
+ } else {
148966
+ if (!value.pubID && !value.sysID) {
148967
+ throw new Error("Public and/or system identifiers are required for an external entity. " + this.debugInfo(name));
148968
+ }
148969
+ if (value.pubID && !value.sysID) {
148970
+ throw new Error("System identifier is required for a public external entity. " + this.debugInfo(name));
148971
+ }
148972
+ this.internal = false;
148973
+ if (value.pubID != null) {
148974
+ this.pubID = this.stringify.dtdPubID(value.pubID);
148975
+ }
148976
+ if (value.sysID != null) {
148977
+ this.sysID = this.stringify.dtdSysID(value.sysID);
148978
+ }
148979
+ if (value.nData != null) {
148980
+ this.nData = this.stringify.dtdNData(value.nData);
148981
+ }
148982
+ if (this.pe && this.nData) {
148983
+ throw new Error("Notation declaration is not allowed in a parameter entity. " + this.debugInfo(name));
148984
+ }
148985
+ }
148986
+ }
148987
+ Object.defineProperty(XMLDTDEntity2.prototype, "publicId", {
148988
+ get: function() {
148989
+ return this.pubID;
148990
+ }
148991
+ });
148992
+ Object.defineProperty(XMLDTDEntity2.prototype, "systemId", {
148993
+ get: function() {
148994
+ return this.sysID;
148995
+ }
148996
+ });
148997
+ Object.defineProperty(XMLDTDEntity2.prototype, "notationName", {
148998
+ get: function() {
148999
+ return this.nData || null;
149000
+ }
149001
+ });
149002
+ Object.defineProperty(XMLDTDEntity2.prototype, "inputEncoding", {
149003
+ get: function() {
149004
+ return null;
149005
+ }
149006
+ });
149007
+ Object.defineProperty(XMLDTDEntity2.prototype, "xmlEncoding", {
149008
+ get: function() {
149009
+ return null;
149010
+ }
149011
+ });
149012
+ Object.defineProperty(XMLDTDEntity2.prototype, "xmlVersion", {
149013
+ get: function() {
149014
+ return null;
149015
+ }
149016
+ });
149017
+ XMLDTDEntity2.prototype.toString = function(options) {
149018
+ return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(options));
149019
+ };
149020
+ return XMLDTDEntity2;
149021
+ }(XMLNode);
149022
+ }).call(exports2);
149023
+ }
149024
+ });
149025
+
149026
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDElement.js
149027
+ var require_XMLDTDElement = __commonJS({
149028
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDElement.js"(exports2, module2) {
149029
+ (function() {
149030
+ var NodeType, XMLDTDElement, XMLNode, extend2 = function(child, parent2) {
149031
+ for (var key in parent2) {
149032
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
149033
+ }
149034
+ function ctor() {
149035
+ this.constructor = child;
149036
+ }
149037
+ ctor.prototype = parent2.prototype;
149038
+ child.prototype = new ctor();
149039
+ child.__super__ = parent2.prototype;
149040
+ return child;
149041
+ }, hasProp = {}.hasOwnProperty;
149042
+ XMLNode = require_XMLNode();
149043
+ NodeType = require_NodeType();
149044
+ module2.exports = XMLDTDElement = function(superClass) {
149045
+ extend2(XMLDTDElement2, superClass);
149046
+ function XMLDTDElement2(parent2, name, value) {
149047
+ XMLDTDElement2.__super__.constructor.call(this, parent2);
149048
+ if (name == null) {
149049
+ throw new Error("Missing DTD element name. " + this.debugInfo());
149050
+ }
149051
+ if (!value) {
149052
+ value = "(#PCDATA)";
149053
+ }
149054
+ if (Array.isArray(value)) {
149055
+ value = "(" + value.join(",") + ")";
149056
+ }
149057
+ this.name = this.stringify.name(name);
149058
+ this.type = NodeType.ElementDeclaration;
149059
+ this.value = this.stringify.dtdElementValue(value);
149060
+ }
149061
+ XMLDTDElement2.prototype.toString = function(options) {
149062
+ return this.options.writer.dtdElement(this, this.options.writer.filterOptions(options));
149063
+ };
149064
+ return XMLDTDElement2;
149065
+ }(XMLNode);
149066
+ }).call(exports2);
149067
+ }
149068
+ });
149069
+
149070
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js
149071
+ var require_XMLDTDNotation = __commonJS({
149072
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js"(exports2, module2) {
149073
+ (function() {
149074
+ var NodeType, XMLDTDNotation, XMLNode, extend2 = function(child, parent2) {
149075
+ for (var key in parent2) {
149076
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
149077
+ }
149078
+ function ctor() {
149079
+ this.constructor = child;
149080
+ }
149081
+ ctor.prototype = parent2.prototype;
149082
+ child.prototype = new ctor();
149083
+ child.__super__ = parent2.prototype;
149084
+ return child;
149085
+ }, hasProp = {}.hasOwnProperty;
149086
+ XMLNode = require_XMLNode();
149087
+ NodeType = require_NodeType();
149088
+ module2.exports = XMLDTDNotation = function(superClass) {
149089
+ extend2(XMLDTDNotation2, superClass);
149090
+ function XMLDTDNotation2(parent2, name, value) {
149091
+ XMLDTDNotation2.__super__.constructor.call(this, parent2);
149092
+ if (name == null) {
149093
+ throw new Error("Missing DTD notation name. " + this.debugInfo(name));
149094
+ }
149095
+ if (!value.pubID && !value.sysID) {
149096
+ throw new Error("Public or system identifiers are required for an external entity. " + this.debugInfo(name));
149097
+ }
149098
+ this.name = this.stringify.name(name);
149099
+ this.type = NodeType.NotationDeclaration;
149100
+ if (value.pubID != null) {
149101
+ this.pubID = this.stringify.dtdPubID(value.pubID);
149102
+ }
149103
+ if (value.sysID != null) {
149104
+ this.sysID = this.stringify.dtdSysID(value.sysID);
149105
+ }
149106
+ }
149107
+ Object.defineProperty(XMLDTDNotation2.prototype, "publicId", {
149108
+ get: function() {
149109
+ return this.pubID;
149110
+ }
149111
+ });
149112
+ Object.defineProperty(XMLDTDNotation2.prototype, "systemId", {
149113
+ get: function() {
149114
+ return this.sysID;
149115
+ }
149116
+ });
149117
+ XMLDTDNotation2.prototype.toString = function(options) {
149118
+ return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(options));
149119
+ };
149120
+ return XMLDTDNotation2;
149121
+ }(XMLNode);
149122
+ }).call(exports2);
149123
+ }
149124
+ });
149125
+
149126
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocType.js
149127
+ var require_XMLDocType = __commonJS({
149128
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocType.js"(exports2, module2) {
149129
+ (function() {
149130
+ var NodeType, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDocType, XMLNamedNodeMap, XMLNode, isObject2, extend2 = function(child, parent2) {
149131
+ for (var key in parent2) {
149132
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
149133
+ }
149134
+ function ctor() {
149135
+ this.constructor = child;
149136
+ }
149137
+ ctor.prototype = parent2.prototype;
149138
+ child.prototype = new ctor();
149139
+ child.__super__ = parent2.prototype;
149140
+ return child;
149141
+ }, hasProp = {}.hasOwnProperty;
149142
+ isObject2 = require_Utility().isObject;
149143
+ XMLNode = require_XMLNode();
149144
+ NodeType = require_NodeType();
149145
+ XMLDTDAttList = require_XMLDTDAttList();
149146
+ XMLDTDEntity = require_XMLDTDEntity();
149147
+ XMLDTDElement = require_XMLDTDElement();
149148
+ XMLDTDNotation = require_XMLDTDNotation();
149149
+ XMLNamedNodeMap = require_XMLNamedNodeMap();
149150
+ module2.exports = XMLDocType = function(superClass) {
149151
+ extend2(XMLDocType2, superClass);
149152
+ function XMLDocType2(parent2, pubID, sysID) {
149153
+ var child, i7, len, ref, ref1, ref2;
149154
+ XMLDocType2.__super__.constructor.call(this, parent2);
149155
+ this.type = NodeType.DocType;
149156
+ if (parent2.children) {
149157
+ ref = parent2.children;
149158
+ for (i7 = 0, len = ref.length; i7 < len; i7++) {
149159
+ child = ref[i7];
149160
+ if (child.type === NodeType.Element) {
149161
+ this.name = child.name;
149162
+ break;
149163
+ }
149164
+ }
149165
+ }
149166
+ this.documentObject = parent2;
149167
+ if (isObject2(pubID)) {
149168
+ ref1 = pubID, pubID = ref1.pubID, sysID = ref1.sysID;
149169
+ }
149170
+ if (sysID == null) {
149171
+ ref2 = [pubID, sysID], sysID = ref2[0], pubID = ref2[1];
149172
+ }
149173
+ if (pubID != null) {
149174
+ this.pubID = this.stringify.dtdPubID(pubID);
149175
+ }
149176
+ if (sysID != null) {
149177
+ this.sysID = this.stringify.dtdSysID(sysID);
149178
+ }
149179
+ }
149180
+ Object.defineProperty(XMLDocType2.prototype, "entities", {
149181
+ get: function() {
149182
+ var child, i7, len, nodes, ref;
149183
+ nodes = {};
149184
+ ref = this.children;
149185
+ for (i7 = 0, len = ref.length; i7 < len; i7++) {
149186
+ child = ref[i7];
149187
+ if (child.type === NodeType.EntityDeclaration && !child.pe) {
149188
+ nodes[child.name] = child;
149189
+ }
149190
+ }
149191
+ return new XMLNamedNodeMap(nodes);
149192
+ }
149193
+ });
149194
+ Object.defineProperty(XMLDocType2.prototype, "notations", {
149195
+ get: function() {
149196
+ var child, i7, len, nodes, ref;
149197
+ nodes = {};
149198
+ ref = this.children;
149199
+ for (i7 = 0, len = ref.length; i7 < len; i7++) {
149200
+ child = ref[i7];
149201
+ if (child.type === NodeType.NotationDeclaration) {
149202
+ nodes[child.name] = child;
149203
+ }
149204
+ }
149205
+ return new XMLNamedNodeMap(nodes);
149206
+ }
149207
+ });
149208
+ Object.defineProperty(XMLDocType2.prototype, "publicId", {
149209
+ get: function() {
149210
+ return this.pubID;
149211
+ }
149212
+ });
149213
+ Object.defineProperty(XMLDocType2.prototype, "systemId", {
149214
+ get: function() {
149215
+ return this.sysID;
149216
+ }
149217
+ });
149218
+ Object.defineProperty(XMLDocType2.prototype, "internalSubset", {
149219
+ get: function() {
149220
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
149221
+ }
149222
+ });
149223
+ XMLDocType2.prototype.element = function(name, value) {
149224
+ var child;
149225
+ child = new XMLDTDElement(this, name, value);
149226
+ this.children.push(child);
149227
+ return this;
149228
+ };
149229
+ XMLDocType2.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
149230
+ var child;
149231
+ child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
149232
+ this.children.push(child);
149233
+ return this;
149234
+ };
149235
+ XMLDocType2.prototype.entity = function(name, value) {
149236
+ var child;
149237
+ child = new XMLDTDEntity(this, false, name, value);
149238
+ this.children.push(child);
149239
+ return this;
149240
+ };
149241
+ XMLDocType2.prototype.pEntity = function(name, value) {
149242
+ var child;
149243
+ child = new XMLDTDEntity(this, true, name, value);
149244
+ this.children.push(child);
149245
+ return this;
149246
+ };
149247
+ XMLDocType2.prototype.notation = function(name, value) {
149248
+ var child;
149249
+ child = new XMLDTDNotation(this, name, value);
149250
+ this.children.push(child);
149251
+ return this;
149252
+ };
149253
+ XMLDocType2.prototype.toString = function(options) {
149254
+ return this.options.writer.docType(this, this.options.writer.filterOptions(options));
149255
+ };
149256
+ XMLDocType2.prototype.ele = function(name, value) {
149257
+ return this.element(name, value);
149258
+ };
149259
+ XMLDocType2.prototype.att = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
149260
+ return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue);
149261
+ };
149262
+ XMLDocType2.prototype.ent = function(name, value) {
149263
+ return this.entity(name, value);
149264
+ };
149265
+ XMLDocType2.prototype.pent = function(name, value) {
149266
+ return this.pEntity(name, value);
149267
+ };
149268
+ XMLDocType2.prototype.not = function(name, value) {
149269
+ return this.notation(name, value);
149270
+ };
149271
+ XMLDocType2.prototype.up = function() {
149272
+ return this.root() || this.documentObject;
149273
+ };
149274
+ XMLDocType2.prototype.isEqualNode = function(node) {
149275
+ if (!XMLDocType2.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {
149276
+ return false;
149277
+ }
149278
+ if (node.name !== this.name) {
149279
+ return false;
149280
+ }
149281
+ if (node.publicId !== this.publicId) {
149282
+ return false;
149283
+ }
149284
+ if (node.systemId !== this.systemId) {
149285
+ return false;
149286
+ }
149287
+ return true;
149288
+ };
149289
+ return XMLDocType2;
149290
+ }(XMLNode);
149291
+ }).call(exports2);
149292
+ }
149293
+ });
149294
+
149295
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLRaw.js
149296
+ var require_XMLRaw = __commonJS({
149297
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLRaw.js"(exports2, module2) {
149298
+ (function() {
149299
+ var NodeType, XMLNode, XMLRaw, extend2 = function(child, parent2) {
149300
+ for (var key in parent2) {
149301
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
149302
+ }
149303
+ function ctor() {
149304
+ this.constructor = child;
149305
+ }
149306
+ ctor.prototype = parent2.prototype;
149307
+ child.prototype = new ctor();
149308
+ child.__super__ = parent2.prototype;
149309
+ return child;
149310
+ }, hasProp = {}.hasOwnProperty;
149311
+ NodeType = require_NodeType();
149312
+ XMLNode = require_XMLNode();
149313
+ module2.exports = XMLRaw = function(superClass) {
149314
+ extend2(XMLRaw2, superClass);
149315
+ function XMLRaw2(parent2, text3) {
149316
+ XMLRaw2.__super__.constructor.call(this, parent2);
149317
+ if (text3 == null) {
149318
+ throw new Error("Missing raw text. " + this.debugInfo());
149319
+ }
149320
+ this.type = NodeType.Raw;
149321
+ this.value = this.stringify.raw(text3);
149322
+ }
149323
+ XMLRaw2.prototype.clone = function() {
149324
+ return Object.create(this);
149325
+ };
149326
+ XMLRaw2.prototype.toString = function(options) {
149327
+ return this.options.writer.raw(this, this.options.writer.filterOptions(options));
149328
+ };
149329
+ return XMLRaw2;
149330
+ }(XMLNode);
149331
+ }).call(exports2);
149332
+ }
149333
+ });
149334
+
149335
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLText.js
149336
+ var require_XMLText = __commonJS({
149337
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLText.js"(exports2, module2) {
149338
+ (function() {
149339
+ var NodeType, XMLCharacterData, XMLText, extend2 = function(child, parent2) {
149340
+ for (var key in parent2) {
149341
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
149342
+ }
149343
+ function ctor() {
149344
+ this.constructor = child;
149345
+ }
149346
+ ctor.prototype = parent2.prototype;
149347
+ child.prototype = new ctor();
149348
+ child.__super__ = parent2.prototype;
149349
+ return child;
149350
+ }, hasProp = {}.hasOwnProperty;
149351
+ NodeType = require_NodeType();
149352
+ XMLCharacterData = require_XMLCharacterData();
149353
+ module2.exports = XMLText = function(superClass) {
149354
+ extend2(XMLText2, superClass);
149355
+ function XMLText2(parent2, text3) {
149356
+ XMLText2.__super__.constructor.call(this, parent2);
149357
+ if (text3 == null) {
149358
+ throw new Error("Missing element text. " + this.debugInfo());
149359
+ }
149360
+ this.name = "#text";
149361
+ this.type = NodeType.Text;
149362
+ this.value = this.stringify.text(text3);
149363
+ }
149364
+ Object.defineProperty(XMLText2.prototype, "isElementContentWhitespace", {
149365
+ get: function() {
149366
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
149367
+ }
149368
+ });
149369
+ Object.defineProperty(XMLText2.prototype, "wholeText", {
149370
+ get: function() {
149371
+ var next2, prev2, str;
149372
+ str = "";
149373
+ prev2 = this.previousSibling;
149374
+ while (prev2) {
149375
+ str = prev2.data + str;
149376
+ prev2 = prev2.previousSibling;
149377
+ }
149378
+ str += this.data;
149379
+ next2 = this.nextSibling;
149380
+ while (next2) {
149381
+ str = str + next2.data;
149382
+ next2 = next2.nextSibling;
149383
+ }
149384
+ return str;
149385
+ }
149386
+ });
149387
+ XMLText2.prototype.clone = function() {
149388
+ return Object.create(this);
149389
+ };
149390
+ XMLText2.prototype.toString = function(options) {
149391
+ return this.options.writer.text(this, this.options.writer.filterOptions(options));
149392
+ };
149393
+ XMLText2.prototype.splitText = function(offset) {
149394
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
149395
+ };
149396
+ XMLText2.prototype.replaceWholeText = function(content) {
149397
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
149398
+ };
149399
+ return XMLText2;
149400
+ }(XMLCharacterData);
149401
+ }).call(exports2);
149402
+ }
149403
+ });
149404
+
149405
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js
149406
+ var require_XMLProcessingInstruction = __commonJS({
149407
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js"(exports2, module2) {
149408
+ (function() {
149409
+ var NodeType, XMLCharacterData, XMLProcessingInstruction, extend2 = function(child, parent2) {
149410
+ for (var key in parent2) {
149411
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
149412
+ }
149413
+ function ctor() {
149414
+ this.constructor = child;
149415
+ }
149416
+ ctor.prototype = parent2.prototype;
149417
+ child.prototype = new ctor();
149418
+ child.__super__ = parent2.prototype;
149419
+ return child;
149420
+ }, hasProp = {}.hasOwnProperty;
149421
+ NodeType = require_NodeType();
149422
+ XMLCharacterData = require_XMLCharacterData();
149423
+ module2.exports = XMLProcessingInstruction = function(superClass) {
149424
+ extend2(XMLProcessingInstruction2, superClass);
149425
+ function XMLProcessingInstruction2(parent2, target, value) {
149426
+ XMLProcessingInstruction2.__super__.constructor.call(this, parent2);
149427
+ if (target == null) {
149428
+ throw new Error("Missing instruction target. " + this.debugInfo());
149429
+ }
149430
+ this.type = NodeType.ProcessingInstruction;
149431
+ this.target = this.stringify.insTarget(target);
149432
+ this.name = this.target;
149433
+ if (value) {
149434
+ this.value = this.stringify.insValue(value);
149435
+ }
149436
+ }
149437
+ XMLProcessingInstruction2.prototype.clone = function() {
149438
+ return Object.create(this);
149439
+ };
149440
+ XMLProcessingInstruction2.prototype.toString = function(options) {
149441
+ return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options));
149442
+ };
149443
+ XMLProcessingInstruction2.prototype.isEqualNode = function(node) {
149444
+ if (!XMLProcessingInstruction2.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {
149445
+ return false;
149446
+ }
149447
+ if (node.target !== this.target) {
149448
+ return false;
149449
+ }
149450
+ return true;
149451
+ };
149452
+ return XMLProcessingInstruction2;
149453
+ }(XMLCharacterData);
149454
+ }).call(exports2);
149455
+ }
149456
+ });
149457
+
149458
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDummy.js
149459
+ var require_XMLDummy = __commonJS({
149460
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDummy.js"(exports2, module2) {
149461
+ (function() {
149462
+ var NodeType, XMLDummy, XMLNode, extend2 = function(child, parent2) {
149463
+ for (var key in parent2) {
149464
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
149465
+ }
149466
+ function ctor() {
149467
+ this.constructor = child;
149468
+ }
149469
+ ctor.prototype = parent2.prototype;
149470
+ child.prototype = new ctor();
149471
+ child.__super__ = parent2.prototype;
149472
+ return child;
149473
+ }, hasProp = {}.hasOwnProperty;
149474
+ XMLNode = require_XMLNode();
149475
+ NodeType = require_NodeType();
149476
+ module2.exports = XMLDummy = function(superClass) {
149477
+ extend2(XMLDummy2, superClass);
149478
+ function XMLDummy2(parent2) {
149479
+ XMLDummy2.__super__.constructor.call(this, parent2);
149480
+ this.type = NodeType.Dummy;
149481
+ }
149482
+ XMLDummy2.prototype.clone = function() {
149483
+ return Object.create(this);
149484
+ };
149485
+ XMLDummy2.prototype.toString = function(options) {
149486
+ return "";
149487
+ };
149488
+ return XMLDummy2;
149489
+ }(XMLNode);
149490
+ }).call(exports2);
149491
+ }
149492
+ });
149493
+
149494
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNodeList.js
149495
+ var require_XMLNodeList = __commonJS({
149496
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNodeList.js"(exports2, module2) {
149497
+ (function() {
149498
+ var XMLNodeList;
149499
+ module2.exports = XMLNodeList = function() {
149500
+ function XMLNodeList2(nodes) {
149501
+ this.nodes = nodes;
149502
+ }
149503
+ Object.defineProperty(XMLNodeList2.prototype, "length", {
149504
+ get: function() {
149505
+ return this.nodes.length || 0;
149506
+ }
149507
+ });
149508
+ XMLNodeList2.prototype.clone = function() {
149509
+ return this.nodes = null;
149510
+ };
149511
+ XMLNodeList2.prototype.item = function(index2) {
149512
+ return this.nodes[index2] || null;
149513
+ };
149514
+ return XMLNodeList2;
149515
+ }();
149516
+ }).call(exports2);
149517
+ }
149518
+ });
149519
+
149520
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/DocumentPosition.js
149521
+ var require_DocumentPosition = __commonJS({
149522
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/DocumentPosition.js"(exports2, module2) {
149523
+ (function() {
149524
+ module2.exports = {
149525
+ Disconnected: 1,
149526
+ Preceding: 2,
149527
+ Following: 4,
149528
+ Contains: 8,
149529
+ ContainedBy: 16,
149530
+ ImplementationSpecific: 32
149531
+ };
149532
+ }).call(exports2);
149533
+ }
149534
+ });
149535
+
149536
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNode.js
149537
+ var require_XMLNode = __commonJS({
149538
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNode.js"(exports2, module2) {
149539
+ (function() {
149540
+ var DocumentPosition2, NodeType, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNamedNodeMap, XMLNode, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty, isFunction2, isObject2, ref1, hasProp = {}.hasOwnProperty;
149541
+ ref1 = require_Utility(), isObject2 = ref1.isObject, isFunction2 = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue;
149542
+ XMLElement = null;
149543
+ XMLCData = null;
149544
+ XMLComment = null;
149545
+ XMLDeclaration = null;
149546
+ XMLDocType = null;
149547
+ XMLRaw = null;
149548
+ XMLText = null;
149549
+ XMLProcessingInstruction = null;
149550
+ XMLDummy = null;
149551
+ NodeType = null;
149552
+ XMLNodeList = null;
149553
+ XMLNamedNodeMap = null;
149554
+ DocumentPosition2 = null;
149555
+ module2.exports = XMLNode = function() {
149556
+ function XMLNode2(parent1) {
149557
+ this.parent = parent1;
149558
+ if (this.parent) {
149559
+ this.options = this.parent.options;
149560
+ this.stringify = this.parent.stringify;
149561
+ }
149562
+ this.value = null;
149563
+ this.children = [];
149564
+ this.baseURI = null;
149565
+ if (!XMLElement) {
149566
+ XMLElement = require_XMLElement();
149567
+ XMLCData = require_XMLCData();
149568
+ XMLComment = require_XMLComment();
149569
+ XMLDeclaration = require_XMLDeclaration();
149570
+ XMLDocType = require_XMLDocType();
149571
+ XMLRaw = require_XMLRaw();
149572
+ XMLText = require_XMLText();
149573
+ XMLProcessingInstruction = require_XMLProcessingInstruction();
149574
+ XMLDummy = require_XMLDummy();
149575
+ NodeType = require_NodeType();
149576
+ XMLNodeList = require_XMLNodeList();
149577
+ XMLNamedNodeMap = require_XMLNamedNodeMap();
149578
+ DocumentPosition2 = require_DocumentPosition();
149579
+ }
149580
+ }
149581
+ Object.defineProperty(XMLNode2.prototype, "nodeName", {
149582
+ get: function() {
149583
+ return this.name;
149584
+ }
149585
+ });
149586
+ Object.defineProperty(XMLNode2.prototype, "nodeType", {
149587
+ get: function() {
149588
+ return this.type;
149589
+ }
149590
+ });
149591
+ Object.defineProperty(XMLNode2.prototype, "nodeValue", {
149592
+ get: function() {
149593
+ return this.value;
149594
+ }
149595
+ });
149596
+ Object.defineProperty(XMLNode2.prototype, "parentNode", {
149597
+ get: function() {
149598
+ return this.parent;
149599
+ }
149600
+ });
149601
+ Object.defineProperty(XMLNode2.prototype, "childNodes", {
149602
+ get: function() {
149603
+ if (!this.childNodeList || !this.childNodeList.nodes) {
149604
+ this.childNodeList = new XMLNodeList(this.children);
149605
+ }
149606
+ return this.childNodeList;
149607
+ }
149608
+ });
149609
+ Object.defineProperty(XMLNode2.prototype, "firstChild", {
149610
+ get: function() {
149611
+ return this.children[0] || null;
149612
+ }
149613
+ });
149614
+ Object.defineProperty(XMLNode2.prototype, "lastChild", {
149615
+ get: function() {
149616
+ return this.children[this.children.length - 1] || null;
149617
+ }
149618
+ });
149619
+ Object.defineProperty(XMLNode2.prototype, "previousSibling", {
149620
+ get: function() {
149621
+ var i7;
149622
+ i7 = this.parent.children.indexOf(this);
149623
+ return this.parent.children[i7 - 1] || null;
149624
+ }
149625
+ });
149626
+ Object.defineProperty(XMLNode2.prototype, "nextSibling", {
149627
+ get: function() {
149628
+ var i7;
149629
+ i7 = this.parent.children.indexOf(this);
149630
+ return this.parent.children[i7 + 1] || null;
149631
+ }
149632
+ });
149633
+ Object.defineProperty(XMLNode2.prototype, "ownerDocument", {
149634
+ get: function() {
149635
+ return this.document() || null;
149636
+ }
149637
+ });
149638
+ Object.defineProperty(XMLNode2.prototype, "textContent", {
149639
+ get: function() {
149640
+ var child, j, len, ref2, str;
149641
+ if (this.nodeType === NodeType.Element || this.nodeType === NodeType.DocumentFragment) {
149642
+ str = "";
149643
+ ref2 = this.children;
149644
+ for (j = 0, len = ref2.length; j < len; j++) {
149645
+ child = ref2[j];
149646
+ if (child.textContent) {
149647
+ str += child.textContent;
149648
+ }
149649
+ }
149650
+ return str;
149651
+ } else {
149652
+ return null;
149653
+ }
149654
+ },
149655
+ set: function(value) {
149656
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
149657
+ }
149658
+ });
149659
+ XMLNode2.prototype.setParent = function(parent2) {
149660
+ var child, j, len, ref2, results;
149661
+ this.parent = parent2;
149662
+ if (parent2) {
149663
+ this.options = parent2.options;
149664
+ this.stringify = parent2.stringify;
149665
+ }
149666
+ ref2 = this.children;
149667
+ results = [];
149668
+ for (j = 0, len = ref2.length; j < len; j++) {
149669
+ child = ref2[j];
149670
+ results.push(child.setParent(this));
149671
+ }
149672
+ return results;
149673
+ };
149674
+ XMLNode2.prototype.element = function(name, attributes2, text3) {
149675
+ var childNode, item, j, k, key, lastChild, len, len1, ref2, ref3, val3;
149676
+ lastChild = null;
149677
+ if (attributes2 === null && text3 == null) {
149678
+ ref2 = [{}, null], attributes2 = ref2[0], text3 = ref2[1];
149679
+ }
149680
+ if (attributes2 == null) {
149681
+ attributes2 = {};
149682
+ }
149683
+ attributes2 = getValue(attributes2);
149684
+ if (!isObject2(attributes2)) {
149685
+ ref3 = [attributes2, text3], text3 = ref3[0], attributes2 = ref3[1];
149686
+ }
149687
+ if (name != null) {
149688
+ name = getValue(name);
149689
+ }
149690
+ if (Array.isArray(name)) {
149691
+ for (j = 0, len = name.length; j < len; j++) {
149692
+ item = name[j];
149693
+ lastChild = this.element(item);
149694
+ }
149695
+ } else if (isFunction2(name)) {
149696
+ lastChild = this.element(name.apply());
149697
+ } else if (isObject2(name)) {
149698
+ for (key in name) {
149699
+ if (!hasProp.call(name, key)) continue;
149700
+ val3 = name[key];
149701
+ if (isFunction2(val3)) {
149702
+ val3 = val3.apply();
149703
+ }
149704
+ if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) {
149705
+ lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val3);
149706
+ } else if (!this.options.separateArrayItems && Array.isArray(val3) && isEmpty(val3)) {
149707
+ lastChild = this.dummy();
149708
+ } else if (isObject2(val3) && isEmpty(val3)) {
149709
+ lastChild = this.element(key);
149710
+ } else if (!this.options.keepNullNodes && val3 == null) {
149711
+ lastChild = this.dummy();
149712
+ } else if (!this.options.separateArrayItems && Array.isArray(val3)) {
149713
+ for (k = 0, len1 = val3.length; k < len1; k++) {
149714
+ item = val3[k];
149715
+ childNode = {};
149716
+ childNode[key] = item;
149717
+ lastChild = this.element(childNode);
149718
+ }
149719
+ } else if (isObject2(val3)) {
149720
+ if (!this.options.ignoreDecorators && this.stringify.convertTextKey && key.indexOf(this.stringify.convertTextKey) === 0) {
149721
+ lastChild = this.element(val3);
149722
+ } else {
149723
+ lastChild = this.element(key);
149724
+ lastChild.element(val3);
149725
+ }
149726
+ } else {
149727
+ lastChild = this.element(key, val3);
149728
+ }
149729
+ }
149730
+ } else if (!this.options.keepNullNodes && text3 === null) {
149731
+ lastChild = this.dummy();
149732
+ } else {
149733
+ if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) {
149734
+ lastChild = this.text(text3);
149735
+ } else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) {
149736
+ lastChild = this.cdata(text3);
149737
+ } else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) {
149738
+ lastChild = this.comment(text3);
149739
+ } else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) {
149740
+ lastChild = this.raw(text3);
149741
+ } else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && name.indexOf(this.stringify.convertPIKey) === 0) {
149742
+ lastChild = this.instruction(name.substr(this.stringify.convertPIKey.length), text3);
149743
+ } else {
149744
+ lastChild = this.node(name, attributes2, text3);
149745
+ }
149746
+ }
149747
+ if (lastChild == null) {
149748
+ throw new Error("Could not create any elements with: " + name + ". " + this.debugInfo());
149749
+ }
149750
+ return lastChild;
149751
+ };
149752
+ XMLNode2.prototype.insertBefore = function(name, attributes2, text3) {
149753
+ var child, i7, newChild, refChild, removed;
149754
+ if (name != null ? name.type : void 0) {
149755
+ newChild = name;
149756
+ refChild = attributes2;
149757
+ newChild.setParent(this);
149758
+ if (refChild) {
149759
+ i7 = children.indexOf(refChild);
149760
+ removed = children.splice(i7);
149761
+ children.push(newChild);
149762
+ Array.prototype.push.apply(children, removed);
149763
+ } else {
149764
+ children.push(newChild);
149765
+ }
149766
+ return newChild;
149767
+ } else {
149768
+ if (this.isRoot) {
149769
+ throw new Error("Cannot insert elements at root level. " + this.debugInfo(name));
149770
+ }
149771
+ i7 = this.parent.children.indexOf(this);
149772
+ removed = this.parent.children.splice(i7);
149773
+ child = this.parent.element(name, attributes2, text3);
149774
+ Array.prototype.push.apply(this.parent.children, removed);
149775
+ return child;
149776
+ }
149777
+ };
149778
+ XMLNode2.prototype.insertAfter = function(name, attributes2, text3) {
149779
+ var child, i7, removed;
149780
+ if (this.isRoot) {
149781
+ throw new Error("Cannot insert elements at root level. " + this.debugInfo(name));
149782
+ }
149783
+ i7 = this.parent.children.indexOf(this);
149784
+ removed = this.parent.children.splice(i7 + 1);
149785
+ child = this.parent.element(name, attributes2, text3);
149786
+ Array.prototype.push.apply(this.parent.children, removed);
149787
+ return child;
149788
+ };
149789
+ XMLNode2.prototype.remove = function() {
149790
+ var i7, ref2;
149791
+ if (this.isRoot) {
149792
+ throw new Error("Cannot remove the root element. " + this.debugInfo());
149793
+ }
149794
+ i7 = this.parent.children.indexOf(this);
149795
+ [].splice.apply(this.parent.children, [i7, i7 - i7 + 1].concat(ref2 = [])), ref2;
149796
+ return this.parent;
149797
+ };
149798
+ XMLNode2.prototype.node = function(name, attributes2, text3) {
149799
+ var child, ref2;
149800
+ if (name != null) {
149801
+ name = getValue(name);
149802
+ }
149803
+ attributes2 || (attributes2 = {});
149804
+ attributes2 = getValue(attributes2);
149805
+ if (!isObject2(attributes2)) {
149806
+ ref2 = [attributes2, text3], text3 = ref2[0], attributes2 = ref2[1];
149807
+ }
149808
+ child = new XMLElement(this, name, attributes2);
149809
+ if (text3 != null) {
149810
+ child.text(text3);
149811
+ }
149812
+ this.children.push(child);
149813
+ return child;
149814
+ };
149815
+ XMLNode2.prototype.text = function(value) {
149816
+ var child;
149817
+ if (isObject2(value)) {
149818
+ this.element(value);
149819
+ }
149820
+ child = new XMLText(this, value);
149821
+ this.children.push(child);
149822
+ return this;
149823
+ };
149824
+ XMLNode2.prototype.cdata = function(value) {
149825
+ var child;
149826
+ child = new XMLCData(this, value);
149827
+ this.children.push(child);
149828
+ return this;
149829
+ };
149830
+ XMLNode2.prototype.comment = function(value) {
149831
+ var child;
149832
+ child = new XMLComment(this, value);
149833
+ this.children.push(child);
149834
+ return this;
149835
+ };
149836
+ XMLNode2.prototype.commentBefore = function(value) {
149837
+ var child, i7, removed;
149838
+ i7 = this.parent.children.indexOf(this);
149839
+ removed = this.parent.children.splice(i7);
149840
+ child = this.parent.comment(value);
149841
+ Array.prototype.push.apply(this.parent.children, removed);
149842
+ return this;
149843
+ };
149844
+ XMLNode2.prototype.commentAfter = function(value) {
149845
+ var child, i7, removed;
149846
+ i7 = this.parent.children.indexOf(this);
149847
+ removed = this.parent.children.splice(i7 + 1);
149848
+ child = this.parent.comment(value);
149849
+ Array.prototype.push.apply(this.parent.children, removed);
149850
+ return this;
149851
+ };
149852
+ XMLNode2.prototype.raw = function(value) {
149853
+ var child;
149854
+ child = new XMLRaw(this, value);
149855
+ this.children.push(child);
149856
+ return this;
149857
+ };
149858
+ XMLNode2.prototype.dummy = function() {
149859
+ var child;
149860
+ child = new XMLDummy(this);
149861
+ return child;
149862
+ };
149863
+ XMLNode2.prototype.instruction = function(target, value) {
149864
+ var insTarget, insValue, instruction, j, len;
149865
+ if (target != null) {
149866
+ target = getValue(target);
149867
+ }
149868
+ if (value != null) {
149869
+ value = getValue(value);
149870
+ }
149871
+ if (Array.isArray(target)) {
149872
+ for (j = 0, len = target.length; j < len; j++) {
149873
+ insTarget = target[j];
149874
+ this.instruction(insTarget);
149875
+ }
149876
+ } else if (isObject2(target)) {
149877
+ for (insTarget in target) {
149878
+ if (!hasProp.call(target, insTarget)) continue;
149879
+ insValue = target[insTarget];
149880
+ this.instruction(insTarget, insValue);
149881
+ }
149882
+ } else {
149883
+ if (isFunction2(value)) {
149884
+ value = value.apply();
149885
+ }
149886
+ instruction = new XMLProcessingInstruction(this, target, value);
149887
+ this.children.push(instruction);
149888
+ }
149889
+ return this;
149890
+ };
149891
+ XMLNode2.prototype.instructionBefore = function(target, value) {
149892
+ var child, i7, removed;
149893
+ i7 = this.parent.children.indexOf(this);
149894
+ removed = this.parent.children.splice(i7);
149895
+ child = this.parent.instruction(target, value);
149896
+ Array.prototype.push.apply(this.parent.children, removed);
149897
+ return this;
149898
+ };
149899
+ XMLNode2.prototype.instructionAfter = function(target, value) {
149900
+ var child, i7, removed;
149901
+ i7 = this.parent.children.indexOf(this);
149902
+ removed = this.parent.children.splice(i7 + 1);
149903
+ child = this.parent.instruction(target, value);
149904
+ Array.prototype.push.apply(this.parent.children, removed);
149905
+ return this;
149906
+ };
149907
+ XMLNode2.prototype.declaration = function(version3, encoding, standalone) {
149908
+ var doc, xmldec;
149909
+ doc = this.document();
149910
+ xmldec = new XMLDeclaration(doc, version3, encoding, standalone);
149911
+ if (doc.children.length === 0) {
149912
+ doc.children.unshift(xmldec);
149913
+ } else if (doc.children[0].type === NodeType.Declaration) {
149914
+ doc.children[0] = xmldec;
149915
+ } else {
149916
+ doc.children.unshift(xmldec);
149917
+ }
149918
+ return doc.root() || doc;
149919
+ };
149920
+ XMLNode2.prototype.dtd = function(pubID, sysID) {
149921
+ var child, doc, doctype, i7, j, k, len, len1, ref2, ref3;
149922
+ doc = this.document();
149923
+ doctype = new XMLDocType(doc, pubID, sysID);
149924
+ ref2 = doc.children;
149925
+ for (i7 = j = 0, len = ref2.length; j < len; i7 = ++j) {
149926
+ child = ref2[i7];
149927
+ if (child.type === NodeType.DocType) {
149928
+ doc.children[i7] = doctype;
149929
+ return doctype;
149930
+ }
149931
+ }
149932
+ ref3 = doc.children;
149933
+ for (i7 = k = 0, len1 = ref3.length; k < len1; i7 = ++k) {
149934
+ child = ref3[i7];
149935
+ if (child.isRoot) {
149936
+ doc.children.splice(i7, 0, doctype);
149937
+ return doctype;
149938
+ }
149939
+ }
149940
+ doc.children.push(doctype);
149941
+ return doctype;
149942
+ };
149943
+ XMLNode2.prototype.up = function() {
149944
+ if (this.isRoot) {
149945
+ throw new Error("The root node has no parent. Use doc() if you need to get the document object.");
149946
+ }
149947
+ return this.parent;
149948
+ };
149949
+ XMLNode2.prototype.root = function() {
149950
+ var node;
149951
+ node = this;
149952
+ while (node) {
149953
+ if (node.type === NodeType.Document) {
149954
+ return node.rootObject;
149955
+ } else if (node.isRoot) {
149956
+ return node;
149957
+ } else {
149958
+ node = node.parent;
149959
+ }
149960
+ }
149961
+ };
149962
+ XMLNode2.prototype.document = function() {
149963
+ var node;
149964
+ node = this;
149965
+ while (node) {
149966
+ if (node.type === NodeType.Document) {
149967
+ return node;
149968
+ } else {
149969
+ node = node.parent;
149970
+ }
149971
+ }
149972
+ };
149973
+ XMLNode2.prototype.end = function(options) {
149974
+ return this.document().end(options);
149975
+ };
149976
+ XMLNode2.prototype.prev = function() {
149977
+ var i7;
149978
+ i7 = this.parent.children.indexOf(this);
149979
+ if (i7 < 1) {
149980
+ throw new Error("Already at the first node. " + this.debugInfo());
149981
+ }
149982
+ return this.parent.children[i7 - 1];
149983
+ };
149984
+ XMLNode2.prototype.next = function() {
149985
+ var i7;
149986
+ i7 = this.parent.children.indexOf(this);
149987
+ if (i7 === -1 || i7 === this.parent.children.length - 1) {
149988
+ throw new Error("Already at the last node. " + this.debugInfo());
149989
+ }
149990
+ return this.parent.children[i7 + 1];
149991
+ };
149992
+ XMLNode2.prototype.importDocument = function(doc) {
149993
+ var clonedRoot;
149994
+ clonedRoot = doc.root().clone();
149995
+ clonedRoot.parent = this;
149996
+ clonedRoot.isRoot = false;
149997
+ this.children.push(clonedRoot);
149998
+ return this;
149999
+ };
150000
+ XMLNode2.prototype.debugInfo = function(name) {
150001
+ var ref2, ref3;
150002
+ name = name || this.name;
150003
+ if (name == null && !((ref2 = this.parent) != null ? ref2.name : void 0)) {
150004
+ return "";
150005
+ } else if (name == null) {
150006
+ return "parent: <" + this.parent.name + ">";
150007
+ } else if (!((ref3 = this.parent) != null ? ref3.name : void 0)) {
150008
+ return "node: <" + name + ">";
150009
+ } else {
150010
+ return "node: <" + name + ">, parent: <" + this.parent.name + ">";
150011
+ }
150012
+ };
150013
+ XMLNode2.prototype.ele = function(name, attributes2, text3) {
150014
+ return this.element(name, attributes2, text3);
150015
+ };
150016
+ XMLNode2.prototype.nod = function(name, attributes2, text3) {
150017
+ return this.node(name, attributes2, text3);
150018
+ };
150019
+ XMLNode2.prototype.txt = function(value) {
150020
+ return this.text(value);
150021
+ };
150022
+ XMLNode2.prototype.dat = function(value) {
150023
+ return this.cdata(value);
150024
+ };
150025
+ XMLNode2.prototype.com = function(value) {
150026
+ return this.comment(value);
150027
+ };
150028
+ XMLNode2.prototype.ins = function(target, value) {
150029
+ return this.instruction(target, value);
150030
+ };
150031
+ XMLNode2.prototype.doc = function() {
150032
+ return this.document();
150033
+ };
150034
+ XMLNode2.prototype.dec = function(version3, encoding, standalone) {
150035
+ return this.declaration(version3, encoding, standalone);
150036
+ };
150037
+ XMLNode2.prototype.e = function(name, attributes2, text3) {
150038
+ return this.element(name, attributes2, text3);
150039
+ };
150040
+ XMLNode2.prototype.n = function(name, attributes2, text3) {
150041
+ return this.node(name, attributes2, text3);
150042
+ };
150043
+ XMLNode2.prototype.t = function(value) {
150044
+ return this.text(value);
150045
+ };
150046
+ XMLNode2.prototype.d = function(value) {
150047
+ return this.cdata(value);
150048
+ };
150049
+ XMLNode2.prototype.c = function(value) {
150050
+ return this.comment(value);
150051
+ };
150052
+ XMLNode2.prototype.r = function(value) {
150053
+ return this.raw(value);
150054
+ };
150055
+ XMLNode2.prototype.i = function(target, value) {
150056
+ return this.instruction(target, value);
150057
+ };
150058
+ XMLNode2.prototype.u = function() {
150059
+ return this.up();
150060
+ };
150061
+ XMLNode2.prototype.importXMLBuilder = function(doc) {
150062
+ return this.importDocument(doc);
150063
+ };
150064
+ XMLNode2.prototype.replaceChild = function(newChild, oldChild) {
150065
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150066
+ };
150067
+ XMLNode2.prototype.removeChild = function(oldChild) {
150068
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150069
+ };
150070
+ XMLNode2.prototype.appendChild = function(newChild) {
150071
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150072
+ };
150073
+ XMLNode2.prototype.hasChildNodes = function() {
150074
+ return this.children.length !== 0;
150075
+ };
150076
+ XMLNode2.prototype.cloneNode = function(deep) {
150077
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150078
+ };
150079
+ XMLNode2.prototype.normalize = function() {
150080
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150081
+ };
150082
+ XMLNode2.prototype.isSupported = function(feature, version3) {
150083
+ return true;
150084
+ };
150085
+ XMLNode2.prototype.hasAttributes = function() {
150086
+ return this.attribs.length !== 0;
150087
+ };
150088
+ XMLNode2.prototype.compareDocumentPosition = function(other) {
150089
+ var ref, res;
150090
+ ref = this;
150091
+ if (ref === other) {
150092
+ return 0;
150093
+ } else if (this.document() !== other.document()) {
150094
+ res = DocumentPosition2.Disconnected | DocumentPosition2.ImplementationSpecific;
150095
+ if (Math.random() < 0.5) {
150096
+ res |= DocumentPosition2.Preceding;
150097
+ } else {
150098
+ res |= DocumentPosition2.Following;
150099
+ }
150100
+ return res;
150101
+ } else if (ref.isAncestor(other)) {
150102
+ return DocumentPosition2.Contains | DocumentPosition2.Preceding;
150103
+ } else if (ref.isDescendant(other)) {
150104
+ return DocumentPosition2.Contains | DocumentPosition2.Following;
150105
+ } else if (ref.isPreceding(other)) {
150106
+ return DocumentPosition2.Preceding;
150107
+ } else {
150108
+ return DocumentPosition2.Following;
150109
+ }
150110
+ };
150111
+ XMLNode2.prototype.isSameNode = function(other) {
150112
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150113
+ };
150114
+ XMLNode2.prototype.lookupPrefix = function(namespaceURI) {
150115
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150116
+ };
150117
+ XMLNode2.prototype.isDefaultNamespace = function(namespaceURI) {
150118
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150119
+ };
150120
+ XMLNode2.prototype.lookupNamespaceURI = function(prefix) {
150121
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150122
+ };
150123
+ XMLNode2.prototype.isEqualNode = function(node) {
150124
+ var i7, j, ref2;
150125
+ if (node.nodeType !== this.nodeType) {
150126
+ return false;
150127
+ }
150128
+ if (node.children.length !== this.children.length) {
150129
+ return false;
150130
+ }
150131
+ for (i7 = j = 0, ref2 = this.children.length - 1; 0 <= ref2 ? j <= ref2 : j >= ref2; i7 = 0 <= ref2 ? ++j : --j) {
150132
+ if (!this.children[i7].isEqualNode(node.children[i7])) {
150133
+ return false;
150134
+ }
150135
+ }
150136
+ return true;
150137
+ };
150138
+ XMLNode2.prototype.getFeature = function(feature, version3) {
150139
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150140
+ };
150141
+ XMLNode2.prototype.setUserData = function(key, data2, handler) {
150142
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150143
+ };
150144
+ XMLNode2.prototype.getUserData = function(key) {
150145
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
150146
+ };
150147
+ XMLNode2.prototype.contains = function(other) {
150148
+ if (!other) {
150149
+ return false;
150150
+ }
150151
+ return other === this || this.isDescendant(other);
150152
+ };
150153
+ XMLNode2.prototype.isDescendant = function(node) {
150154
+ var child, isDescendantChild, j, len, ref2;
150155
+ ref2 = this.children;
150156
+ for (j = 0, len = ref2.length; j < len; j++) {
150157
+ child = ref2[j];
150158
+ if (node === child) {
150159
+ return true;
150160
+ }
150161
+ isDescendantChild = child.isDescendant(node);
150162
+ if (isDescendantChild) {
150163
+ return true;
150164
+ }
150165
+ }
150166
+ return false;
150167
+ };
150168
+ XMLNode2.prototype.isAncestor = function(node) {
150169
+ return node.isDescendant(this);
150170
+ };
150171
+ XMLNode2.prototype.isPreceding = function(node) {
150172
+ var nodePos, thisPos;
150173
+ nodePos = this.treePosition(node);
150174
+ thisPos = this.treePosition(this);
150175
+ if (nodePos === -1 || thisPos === -1) {
150176
+ return false;
150177
+ } else {
150178
+ return nodePos < thisPos;
150179
+ }
150180
+ };
150181
+ XMLNode2.prototype.isFollowing = function(node) {
150182
+ var nodePos, thisPos;
150183
+ nodePos = this.treePosition(node);
150184
+ thisPos = this.treePosition(this);
150185
+ if (nodePos === -1 || thisPos === -1) {
150186
+ return false;
150187
+ } else {
150188
+ return nodePos > thisPos;
150189
+ }
150190
+ };
150191
+ XMLNode2.prototype.treePosition = function(node) {
150192
+ var found, pos;
150193
+ pos = 0;
150194
+ found = false;
150195
+ this.foreachTreeNode(this.document(), function(childNode) {
150196
+ pos++;
150197
+ if (!found && childNode === node) {
150198
+ return found = true;
150199
+ }
150200
+ });
150201
+ if (found) {
150202
+ return pos;
150203
+ } else {
150204
+ return -1;
150205
+ }
150206
+ };
150207
+ XMLNode2.prototype.foreachTreeNode = function(node, func) {
150208
+ var child, j, len, ref2, res;
150209
+ node || (node = this.document());
150210
+ ref2 = node.children;
150211
+ for (j = 0, len = ref2.length; j < len; j++) {
150212
+ child = ref2[j];
150213
+ if (res = func(child)) {
150214
+ return res;
150215
+ } else {
150216
+ res = this.foreachTreeNode(child, func);
150217
+ if (res) {
150218
+ return res;
150219
+ }
150220
+ }
150221
+ }
150222
+ };
150223
+ return XMLNode2;
150224
+ }();
150225
+ }).call(exports2);
150226
+ }
150227
+ });
150228
+
150229
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringifier.js
150230
+ var require_XMLStringifier = __commonJS({
150231
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringifier.js"(exports2, module2) {
150232
+ (function() {
150233
+ var XMLStringifier, bind2 = function(fn2, me) {
150234
+ return function() {
150235
+ return fn2.apply(me, arguments);
150236
+ };
150237
+ }, hasProp = {}.hasOwnProperty;
150238
+ module2.exports = XMLStringifier = function() {
150239
+ function XMLStringifier2(options) {
150240
+ this.assertLegalName = bind2(this.assertLegalName, this);
150241
+ this.assertLegalChar = bind2(this.assertLegalChar, this);
150242
+ var key, ref, value;
150243
+ options || (options = {});
150244
+ this.options = options;
150245
+ if (!this.options.version) {
150246
+ this.options.version = "1.0";
150247
+ }
150248
+ ref = options.stringify || {};
150249
+ for (key in ref) {
150250
+ if (!hasProp.call(ref, key)) continue;
150251
+ value = ref[key];
150252
+ this[key] = value;
150253
+ }
150254
+ }
150255
+ XMLStringifier2.prototype.name = function(val3) {
150256
+ if (this.options.noValidation) {
150257
+ return val3;
150258
+ }
150259
+ return this.assertLegalName("" + val3 || "");
150260
+ };
150261
+ XMLStringifier2.prototype.text = function(val3) {
150262
+ if (this.options.noValidation) {
150263
+ return val3;
150264
+ }
150265
+ return this.assertLegalChar(this.textEscape("" + val3 || ""));
150266
+ };
150267
+ XMLStringifier2.prototype.cdata = function(val3) {
150268
+ if (this.options.noValidation) {
150269
+ return val3;
150270
+ }
150271
+ val3 = "" + val3 || "";
150272
+ val3 = val3.replace("]]>", "]]]]><![CDATA[>");
150273
+ return this.assertLegalChar(val3);
150274
+ };
150275
+ XMLStringifier2.prototype.comment = function(val3) {
150276
+ if (this.options.noValidation) {
150277
+ return val3;
150278
+ }
150279
+ val3 = "" + val3 || "";
150280
+ if (val3.match(/--/)) {
150281
+ throw new Error("Comment text cannot contain double-hypen: " + val3);
150282
+ }
150283
+ return this.assertLegalChar(val3);
150284
+ };
150285
+ XMLStringifier2.prototype.raw = function(val3) {
150286
+ if (this.options.noValidation) {
150287
+ return val3;
150288
+ }
150289
+ return "" + val3 || "";
150290
+ };
150291
+ XMLStringifier2.prototype.attValue = function(val3) {
150292
+ if (this.options.noValidation) {
150293
+ return val3;
150294
+ }
150295
+ return this.assertLegalChar(this.attEscape(val3 = "" + val3 || ""));
150296
+ };
150297
+ XMLStringifier2.prototype.insTarget = function(val3) {
150298
+ if (this.options.noValidation) {
150299
+ return val3;
150300
+ }
150301
+ return this.assertLegalChar("" + val3 || "");
150302
+ };
150303
+ XMLStringifier2.prototype.insValue = function(val3) {
150304
+ if (this.options.noValidation) {
150305
+ return val3;
150306
+ }
150307
+ val3 = "" + val3 || "";
150308
+ if (val3.match(/\?>/)) {
150309
+ throw new Error("Invalid processing instruction value: " + val3);
150310
+ }
150311
+ return this.assertLegalChar(val3);
150312
+ };
150313
+ XMLStringifier2.prototype.xmlVersion = function(val3) {
150314
+ if (this.options.noValidation) {
150315
+ return val3;
150316
+ }
150317
+ val3 = "" + val3 || "";
150318
+ if (!val3.match(/1\.[0-9]+/)) {
150319
+ throw new Error("Invalid version number: " + val3);
150320
+ }
150321
+ return val3;
150322
+ };
150323
+ XMLStringifier2.prototype.xmlEncoding = function(val3) {
150324
+ if (this.options.noValidation) {
150325
+ return val3;
150326
+ }
150327
+ val3 = "" + val3 || "";
150328
+ if (!val3.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)) {
150329
+ throw new Error("Invalid encoding: " + val3);
150330
+ }
150331
+ return this.assertLegalChar(val3);
150332
+ };
150333
+ XMLStringifier2.prototype.xmlStandalone = function(val3) {
150334
+ if (this.options.noValidation) {
150335
+ return val3;
150336
+ }
150337
+ if (val3) {
150338
+ return "yes";
150339
+ } else {
150340
+ return "no";
150341
+ }
150342
+ };
150343
+ XMLStringifier2.prototype.dtdPubID = function(val3) {
150344
+ if (this.options.noValidation) {
150345
+ return val3;
150346
+ }
150347
+ return this.assertLegalChar("" + val3 || "");
150348
+ };
150349
+ XMLStringifier2.prototype.dtdSysID = function(val3) {
150350
+ if (this.options.noValidation) {
150351
+ return val3;
150352
+ }
150353
+ return this.assertLegalChar("" + val3 || "");
150354
+ };
150355
+ XMLStringifier2.prototype.dtdElementValue = function(val3) {
150356
+ if (this.options.noValidation) {
150357
+ return val3;
150358
+ }
150359
+ return this.assertLegalChar("" + val3 || "");
150360
+ };
150361
+ XMLStringifier2.prototype.dtdAttType = function(val3) {
150362
+ if (this.options.noValidation) {
150363
+ return val3;
150364
+ }
150365
+ return this.assertLegalChar("" + val3 || "");
150366
+ };
150367
+ XMLStringifier2.prototype.dtdAttDefault = function(val3) {
150368
+ if (this.options.noValidation) {
150369
+ return val3;
150370
+ }
150371
+ return this.assertLegalChar("" + val3 || "");
150372
+ };
150373
+ XMLStringifier2.prototype.dtdEntityValue = function(val3) {
150374
+ if (this.options.noValidation) {
150375
+ return val3;
150376
+ }
150377
+ return this.assertLegalChar("" + val3 || "");
150378
+ };
150379
+ XMLStringifier2.prototype.dtdNData = function(val3) {
150380
+ if (this.options.noValidation) {
150381
+ return val3;
150382
+ }
150383
+ return this.assertLegalChar("" + val3 || "");
150384
+ };
150385
+ XMLStringifier2.prototype.convertAttKey = "@";
150386
+ XMLStringifier2.prototype.convertPIKey = "?";
150387
+ XMLStringifier2.prototype.convertTextKey = "#text";
150388
+ XMLStringifier2.prototype.convertCDataKey = "#cdata";
150389
+ XMLStringifier2.prototype.convertCommentKey = "#comment";
150390
+ XMLStringifier2.prototype.convertRawKey = "#raw";
150391
+ XMLStringifier2.prototype.assertLegalChar = function(str) {
150392
+ var regex, res;
150393
+ if (this.options.noValidation) {
150394
+ return str;
150395
+ }
150396
+ regex = "";
150397
+ if (this.options.version === "1.0") {
150398
+ regex = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
150399
+ if (res = str.match(regex)) {
150400
+ throw new Error("Invalid character in string: " + str + " at index " + res.index);
150401
+ }
150402
+ } else if (this.options.version === "1.1") {
150403
+ regex = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
150404
+ if (res = str.match(regex)) {
150405
+ throw new Error("Invalid character in string: " + str + " at index " + res.index);
150406
+ }
150407
+ }
150408
+ return str;
150409
+ };
150410
+ XMLStringifier2.prototype.assertLegalName = function(str) {
150411
+ var regex;
150412
+ if (this.options.noValidation) {
150413
+ return str;
150414
+ }
150415
+ this.assertLegalChar(str);
150416
+ regex = /^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
150417
+ if (!str.match(regex)) {
150418
+ throw new Error("Invalid character in name");
150419
+ }
150420
+ return str;
150421
+ };
150422
+ XMLStringifier2.prototype.textEscape = function(str) {
150423
+ var ampregex;
150424
+ if (this.options.noValidation) {
150425
+ return str;
150426
+ }
150427
+ ampregex = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g;
150428
+ return str.replace(ampregex, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#xD;");
150429
+ };
150430
+ XMLStringifier2.prototype.attEscape = function(str) {
150431
+ var ampregex;
150432
+ if (this.options.noValidation) {
150433
+ return str;
150434
+ }
150435
+ ampregex = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g;
150436
+ return str.replace(ampregex, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;");
150437
+ };
150438
+ return XMLStringifier2;
150439
+ }();
150440
+ }).call(exports2);
150441
+ }
150442
+ });
150443
+
150444
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/WriterState.js
150445
+ var require_WriterState = __commonJS({
150446
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/WriterState.js"(exports2, module2) {
150447
+ (function() {
150448
+ module2.exports = {
150449
+ None: 0,
150450
+ OpenTag: 1,
150451
+ InsideTag: 2,
150452
+ CloseTag: 3
150453
+ };
150454
+ }).call(exports2);
150455
+ }
150456
+ });
150457
+
150458
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLWriterBase.js
150459
+ var require_XMLWriterBase = __commonJS({
150460
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLWriterBase.js"(exports2, module2) {
150461
+ (function() {
150462
+ var NodeType, WriterState, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLText, XMLWriterBase, assign, hasProp = {}.hasOwnProperty;
150463
+ assign = require_Utility().assign;
150464
+ NodeType = require_NodeType();
150465
+ XMLDeclaration = require_XMLDeclaration();
150466
+ XMLDocType = require_XMLDocType();
150467
+ XMLCData = require_XMLCData();
150468
+ XMLComment = require_XMLComment();
150469
+ XMLElement = require_XMLElement();
150470
+ XMLRaw = require_XMLRaw();
150471
+ XMLText = require_XMLText();
150472
+ XMLProcessingInstruction = require_XMLProcessingInstruction();
150473
+ XMLDummy = require_XMLDummy();
150474
+ XMLDTDAttList = require_XMLDTDAttList();
150475
+ XMLDTDElement = require_XMLDTDElement();
150476
+ XMLDTDEntity = require_XMLDTDEntity();
150477
+ XMLDTDNotation = require_XMLDTDNotation();
150478
+ WriterState = require_WriterState();
150479
+ module2.exports = XMLWriterBase = function() {
150480
+ function XMLWriterBase2(options) {
150481
+ var key, ref, value;
150482
+ options || (options = {});
150483
+ this.options = options;
150484
+ ref = options.writer || {};
150485
+ for (key in ref) {
150486
+ if (!hasProp.call(ref, key)) continue;
150487
+ value = ref[key];
150488
+ this["_" + key] = this[key];
150489
+ this[key] = value;
150490
+ }
150491
+ }
150492
+ XMLWriterBase2.prototype.filterOptions = function(options) {
150493
+ var filteredOptions, ref, ref1, ref2, ref3, ref4, ref5, ref6;
150494
+ options || (options = {});
150495
+ options = assign({}, this.options, options);
150496
+ filteredOptions = {
150497
+ writer: this
150498
+ };
150499
+ filteredOptions.pretty = options.pretty || false;
150500
+ filteredOptions.allowEmpty = options.allowEmpty || false;
150501
+ filteredOptions.indent = (ref = options.indent) != null ? ref : " ";
150502
+ filteredOptions.newline = (ref1 = options.newline) != null ? ref1 : "\n";
150503
+ filteredOptions.offset = (ref2 = options.offset) != null ? ref2 : 0;
150504
+ filteredOptions.dontPrettyTextNodes = (ref3 = (ref4 = options.dontPrettyTextNodes) != null ? ref4 : options.dontprettytextnodes) != null ? ref3 : 0;
150505
+ filteredOptions.spaceBeforeSlash = (ref5 = (ref6 = options.spaceBeforeSlash) != null ? ref6 : options.spacebeforeslash) != null ? ref5 : "";
150506
+ if (filteredOptions.spaceBeforeSlash === true) {
150507
+ filteredOptions.spaceBeforeSlash = " ";
150508
+ }
150509
+ filteredOptions.suppressPrettyCount = 0;
150510
+ filteredOptions.user = {};
150511
+ filteredOptions.state = WriterState.None;
150512
+ return filteredOptions;
150513
+ };
150514
+ XMLWriterBase2.prototype.indent = function(node, options, level) {
150515
+ var indentLevel;
150516
+ if (!options.pretty || options.suppressPrettyCount) {
150517
+ return "";
150518
+ } else if (options.pretty) {
150519
+ indentLevel = (level || 0) + options.offset + 1;
150520
+ if (indentLevel > 0) {
150521
+ return new Array(indentLevel).join(options.indent);
150522
+ }
150523
+ }
150524
+ return "";
150525
+ };
150526
+ XMLWriterBase2.prototype.endline = function(node, options, level) {
150527
+ if (!options.pretty || options.suppressPrettyCount) {
150528
+ return "";
150529
+ } else {
150530
+ return options.newline;
150531
+ }
150532
+ };
150533
+ XMLWriterBase2.prototype.attribute = function(att, options, level) {
150534
+ var r2;
150535
+ this.openAttribute(att, options, level);
150536
+ r2 = " " + att.name + '="' + att.value + '"';
150537
+ this.closeAttribute(att, options, level);
150538
+ return r2;
150539
+ };
150540
+ XMLWriterBase2.prototype.cdata = function(node, options, level) {
150541
+ var r2;
150542
+ this.openNode(node, options, level);
150543
+ options.state = WriterState.OpenTag;
150544
+ r2 = this.indent(node, options, level) + "<![CDATA[";
150545
+ options.state = WriterState.InsideTag;
150546
+ r2 += node.value;
150547
+ options.state = WriterState.CloseTag;
150548
+ r2 += "]]>" + this.endline(node, options, level);
150549
+ options.state = WriterState.None;
150550
+ this.closeNode(node, options, level);
150551
+ return r2;
150552
+ };
150553
+ XMLWriterBase2.prototype.comment = function(node, options, level) {
150554
+ var r2;
150555
+ this.openNode(node, options, level);
150556
+ options.state = WriterState.OpenTag;
150557
+ r2 = this.indent(node, options, level) + "<!-- ";
150558
+ options.state = WriterState.InsideTag;
150559
+ r2 += node.value;
150560
+ options.state = WriterState.CloseTag;
150561
+ r2 += " -->" + this.endline(node, options, level);
150562
+ options.state = WriterState.None;
150563
+ this.closeNode(node, options, level);
150564
+ return r2;
150565
+ };
150566
+ XMLWriterBase2.prototype.declaration = function(node, options, level) {
150567
+ var r2;
150568
+ this.openNode(node, options, level);
150569
+ options.state = WriterState.OpenTag;
150570
+ r2 = this.indent(node, options, level) + "<?xml";
150571
+ options.state = WriterState.InsideTag;
150572
+ r2 += ' version="' + node.version + '"';
150573
+ if (node.encoding != null) {
150574
+ r2 += ' encoding="' + node.encoding + '"';
150575
+ }
150576
+ if (node.standalone != null) {
150577
+ r2 += ' standalone="' + node.standalone + '"';
150578
+ }
150579
+ options.state = WriterState.CloseTag;
150580
+ r2 += options.spaceBeforeSlash + "?>";
150581
+ r2 += this.endline(node, options, level);
150582
+ options.state = WriterState.None;
150583
+ this.closeNode(node, options, level);
150584
+ return r2;
150585
+ };
150586
+ XMLWriterBase2.prototype.docType = function(node, options, level) {
150587
+ var child, i7, len, r2, ref;
150588
+ level || (level = 0);
150589
+ this.openNode(node, options, level);
150590
+ options.state = WriterState.OpenTag;
150591
+ r2 = this.indent(node, options, level);
150592
+ r2 += "<!DOCTYPE " + node.root().name;
150593
+ if (node.pubID && node.sysID) {
150594
+ r2 += ' PUBLIC "' + node.pubID + '" "' + node.sysID + '"';
150595
+ } else if (node.sysID) {
150596
+ r2 += ' SYSTEM "' + node.sysID + '"';
150597
+ }
150598
+ if (node.children.length > 0) {
150599
+ r2 += " [";
150600
+ r2 += this.endline(node, options, level);
150601
+ options.state = WriterState.InsideTag;
150602
+ ref = node.children;
150603
+ for (i7 = 0, len = ref.length; i7 < len; i7++) {
150604
+ child = ref[i7];
150605
+ r2 += this.writeChildNode(child, options, level + 1);
150606
+ }
150607
+ options.state = WriterState.CloseTag;
150608
+ r2 += "]";
150609
+ }
150610
+ options.state = WriterState.CloseTag;
150611
+ r2 += options.spaceBeforeSlash + ">";
150612
+ r2 += this.endline(node, options, level);
150613
+ options.state = WriterState.None;
150614
+ this.closeNode(node, options, level);
150615
+ return r2;
150616
+ };
150617
+ XMLWriterBase2.prototype.element = function(node, options, level) {
150618
+ var att, child, childNodeCount, firstChildNode, i7, j, len, len1, name, prettySuppressed, r2, ref, ref1, ref2;
150619
+ level || (level = 0);
150620
+ prettySuppressed = false;
150621
+ r2 = "";
150622
+ this.openNode(node, options, level);
150623
+ options.state = WriterState.OpenTag;
150624
+ r2 += this.indent(node, options, level) + "<" + node.name;
150625
+ ref = node.attribs;
150626
+ for (name in ref) {
150627
+ if (!hasProp.call(ref, name)) continue;
150628
+ att = ref[name];
150629
+ r2 += this.attribute(att, options, level);
150630
+ }
150631
+ childNodeCount = node.children.length;
150632
+ firstChildNode = childNodeCount === 0 ? null : node.children[0];
150633
+ if (childNodeCount === 0 || node.children.every(function(e) {
150634
+ return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === "";
150635
+ })) {
150636
+ if (options.allowEmpty) {
150637
+ r2 += ">";
150638
+ options.state = WriterState.CloseTag;
150639
+ r2 += "</" + node.name + ">" + this.endline(node, options, level);
150640
+ } else {
150641
+ options.state = WriterState.CloseTag;
150642
+ r2 += options.spaceBeforeSlash + "/>" + this.endline(node, options, level);
150643
+ }
150644
+ } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && firstChildNode.value != null) {
150645
+ r2 += ">";
150646
+ options.state = WriterState.InsideTag;
150647
+ options.suppressPrettyCount++;
150648
+ prettySuppressed = true;
150649
+ r2 += this.writeChildNode(firstChildNode, options, level + 1);
150650
+ options.suppressPrettyCount--;
150651
+ prettySuppressed = false;
150652
+ options.state = WriterState.CloseTag;
150653
+ r2 += "</" + node.name + ">" + this.endline(node, options, level);
150654
+ } else {
150655
+ if (options.dontPrettyTextNodes) {
150656
+ ref1 = node.children;
150657
+ for (i7 = 0, len = ref1.length; i7 < len; i7++) {
150658
+ child = ref1[i7];
150659
+ if ((child.type === NodeType.Text || child.type === NodeType.Raw) && child.value != null) {
150660
+ options.suppressPrettyCount++;
150661
+ prettySuppressed = true;
150662
+ break;
150663
+ }
150664
+ }
150665
+ }
150666
+ r2 += ">" + this.endline(node, options, level);
150667
+ options.state = WriterState.InsideTag;
150668
+ ref2 = node.children;
150669
+ for (j = 0, len1 = ref2.length; j < len1; j++) {
150670
+ child = ref2[j];
150671
+ r2 += this.writeChildNode(child, options, level + 1);
150672
+ }
150673
+ options.state = WriterState.CloseTag;
150674
+ r2 += this.indent(node, options, level) + "</" + node.name + ">";
150675
+ if (prettySuppressed) {
150676
+ options.suppressPrettyCount--;
150677
+ }
150678
+ r2 += this.endline(node, options, level);
150679
+ options.state = WriterState.None;
150680
+ }
150681
+ this.closeNode(node, options, level);
150682
+ return r2;
150683
+ };
150684
+ XMLWriterBase2.prototype.writeChildNode = function(node, options, level) {
150685
+ switch (node.type) {
150686
+ case NodeType.CData:
150687
+ return this.cdata(node, options, level);
150688
+ case NodeType.Comment:
150689
+ return this.comment(node, options, level);
150690
+ case NodeType.Element:
150691
+ return this.element(node, options, level);
150692
+ case NodeType.Raw:
150693
+ return this.raw(node, options, level);
150694
+ case NodeType.Text:
150695
+ return this.text(node, options, level);
150696
+ case NodeType.ProcessingInstruction:
150697
+ return this.processingInstruction(node, options, level);
150698
+ case NodeType.Dummy:
150699
+ return "";
150700
+ case NodeType.Declaration:
150701
+ return this.declaration(node, options, level);
150702
+ case NodeType.DocType:
150703
+ return this.docType(node, options, level);
150704
+ case NodeType.AttributeDeclaration:
150705
+ return this.dtdAttList(node, options, level);
150706
+ case NodeType.ElementDeclaration:
150707
+ return this.dtdElement(node, options, level);
150708
+ case NodeType.EntityDeclaration:
150709
+ return this.dtdEntity(node, options, level);
150710
+ case NodeType.NotationDeclaration:
150711
+ return this.dtdNotation(node, options, level);
150712
+ default:
150713
+ throw new Error("Unknown XML node type: " + node.constructor.name);
150714
+ }
150715
+ };
150716
+ XMLWriterBase2.prototype.processingInstruction = function(node, options, level) {
150717
+ var r2;
150718
+ this.openNode(node, options, level);
150719
+ options.state = WriterState.OpenTag;
150720
+ r2 = this.indent(node, options, level) + "<?";
150721
+ options.state = WriterState.InsideTag;
150722
+ r2 += node.target;
150723
+ if (node.value) {
150724
+ r2 += " " + node.value;
150725
+ }
150726
+ options.state = WriterState.CloseTag;
150727
+ r2 += options.spaceBeforeSlash + "?>";
150728
+ r2 += this.endline(node, options, level);
150729
+ options.state = WriterState.None;
150730
+ this.closeNode(node, options, level);
150731
+ return r2;
150732
+ };
150733
+ XMLWriterBase2.prototype.raw = function(node, options, level) {
150734
+ var r2;
150735
+ this.openNode(node, options, level);
150736
+ options.state = WriterState.OpenTag;
150737
+ r2 = this.indent(node, options, level);
150738
+ options.state = WriterState.InsideTag;
150739
+ r2 += node.value;
150740
+ options.state = WriterState.CloseTag;
150741
+ r2 += this.endline(node, options, level);
150742
+ options.state = WriterState.None;
150743
+ this.closeNode(node, options, level);
150744
+ return r2;
150745
+ };
150746
+ XMLWriterBase2.prototype.text = function(node, options, level) {
150747
+ var r2;
150748
+ this.openNode(node, options, level);
150749
+ options.state = WriterState.OpenTag;
150750
+ r2 = this.indent(node, options, level);
150751
+ options.state = WriterState.InsideTag;
150752
+ r2 += node.value;
150753
+ options.state = WriterState.CloseTag;
150754
+ r2 += this.endline(node, options, level);
150755
+ options.state = WriterState.None;
150756
+ this.closeNode(node, options, level);
150757
+ return r2;
150758
+ };
150759
+ XMLWriterBase2.prototype.dtdAttList = function(node, options, level) {
150760
+ var r2;
150761
+ this.openNode(node, options, level);
150762
+ options.state = WriterState.OpenTag;
150763
+ r2 = this.indent(node, options, level) + "<!ATTLIST";
150764
+ options.state = WriterState.InsideTag;
150765
+ r2 += " " + node.elementName + " " + node.attributeName + " " + node.attributeType;
150766
+ if (node.defaultValueType !== "#DEFAULT") {
150767
+ r2 += " " + node.defaultValueType;
150768
+ }
150769
+ if (node.defaultValue) {
150770
+ r2 += ' "' + node.defaultValue + '"';
150771
+ }
150772
+ options.state = WriterState.CloseTag;
150773
+ r2 += options.spaceBeforeSlash + ">" + this.endline(node, options, level);
150774
+ options.state = WriterState.None;
150775
+ this.closeNode(node, options, level);
150776
+ return r2;
150777
+ };
150778
+ XMLWriterBase2.prototype.dtdElement = function(node, options, level) {
150779
+ var r2;
150780
+ this.openNode(node, options, level);
150781
+ options.state = WriterState.OpenTag;
150782
+ r2 = this.indent(node, options, level) + "<!ELEMENT";
150783
+ options.state = WriterState.InsideTag;
150784
+ r2 += " " + node.name + " " + node.value;
150785
+ options.state = WriterState.CloseTag;
150786
+ r2 += options.spaceBeforeSlash + ">" + this.endline(node, options, level);
150787
+ options.state = WriterState.None;
150788
+ this.closeNode(node, options, level);
150789
+ return r2;
150790
+ };
150791
+ XMLWriterBase2.prototype.dtdEntity = function(node, options, level) {
150792
+ var r2;
150793
+ this.openNode(node, options, level);
150794
+ options.state = WriterState.OpenTag;
150795
+ r2 = this.indent(node, options, level) + "<!ENTITY";
150796
+ options.state = WriterState.InsideTag;
150797
+ if (node.pe) {
150798
+ r2 += " %";
150799
+ }
150800
+ r2 += " " + node.name;
150801
+ if (node.value) {
150802
+ r2 += ' "' + node.value + '"';
150803
+ } else {
150804
+ if (node.pubID && node.sysID) {
150805
+ r2 += ' PUBLIC "' + node.pubID + '" "' + node.sysID + '"';
150806
+ } else if (node.sysID) {
150807
+ r2 += ' SYSTEM "' + node.sysID + '"';
150808
+ }
150809
+ if (node.nData) {
150810
+ r2 += " NDATA " + node.nData;
150811
+ }
150812
+ }
150813
+ options.state = WriterState.CloseTag;
150814
+ r2 += options.spaceBeforeSlash + ">" + this.endline(node, options, level);
150815
+ options.state = WriterState.None;
150816
+ this.closeNode(node, options, level);
150817
+ return r2;
150818
+ };
150819
+ XMLWriterBase2.prototype.dtdNotation = function(node, options, level) {
150820
+ var r2;
150821
+ this.openNode(node, options, level);
150822
+ options.state = WriterState.OpenTag;
150823
+ r2 = this.indent(node, options, level) + "<!NOTATION";
150824
+ options.state = WriterState.InsideTag;
150825
+ r2 += " " + node.name;
150826
+ if (node.pubID && node.sysID) {
150827
+ r2 += ' PUBLIC "' + node.pubID + '" "' + node.sysID + '"';
150828
+ } else if (node.pubID) {
150829
+ r2 += ' PUBLIC "' + node.pubID + '"';
150830
+ } else if (node.sysID) {
150831
+ r2 += ' SYSTEM "' + node.sysID + '"';
150832
+ }
150833
+ options.state = WriterState.CloseTag;
150834
+ r2 += options.spaceBeforeSlash + ">" + this.endline(node, options, level);
150835
+ options.state = WriterState.None;
150836
+ this.closeNode(node, options, level);
150837
+ return r2;
150838
+ };
150839
+ XMLWriterBase2.prototype.openNode = function(node, options, level) {
150840
+ };
150841
+ XMLWriterBase2.prototype.closeNode = function(node, options, level) {
150842
+ };
150843
+ XMLWriterBase2.prototype.openAttribute = function(att, options, level) {
150844
+ };
150845
+ XMLWriterBase2.prototype.closeAttribute = function(att, options, level) {
150846
+ };
150847
+ return XMLWriterBase2;
150848
+ }();
150849
+ }).call(exports2);
150850
+ }
150851
+ });
150852
+
150853
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringWriter.js
150854
+ var require_XMLStringWriter = __commonJS({
150855
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringWriter.js"(exports2, module2) {
150856
+ (function() {
150857
+ var XMLStringWriter, XMLWriterBase, extend2 = function(child, parent2) {
150858
+ for (var key in parent2) {
150859
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
150860
+ }
150861
+ function ctor() {
150862
+ this.constructor = child;
150863
+ }
150864
+ ctor.prototype = parent2.prototype;
150865
+ child.prototype = new ctor();
150866
+ child.__super__ = parent2.prototype;
150867
+ return child;
150868
+ }, hasProp = {}.hasOwnProperty;
150869
+ XMLWriterBase = require_XMLWriterBase();
150870
+ module2.exports = XMLStringWriter = function(superClass) {
150871
+ extend2(XMLStringWriter2, superClass);
150872
+ function XMLStringWriter2(options) {
150873
+ XMLStringWriter2.__super__.constructor.call(this, options);
150874
+ }
150875
+ XMLStringWriter2.prototype.document = function(doc, options) {
150876
+ var child, i7, len, r2, ref;
150877
+ options = this.filterOptions(options);
150878
+ r2 = "";
150879
+ ref = doc.children;
150880
+ for (i7 = 0, len = ref.length; i7 < len; i7++) {
150881
+ child = ref[i7];
150882
+ r2 += this.writeChildNode(child, options, 0);
150883
+ }
150884
+ if (options.pretty && r2.slice(-options.newline.length) === options.newline) {
150885
+ r2 = r2.slice(0, -options.newline.length);
150886
+ }
150887
+ return r2;
150888
+ };
150889
+ return XMLStringWriter2;
150890
+ }(XMLWriterBase);
150891
+ }).call(exports2);
150892
+ }
150893
+ });
150894
+
150895
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocument.js
150896
+ var require_XMLDocument = __commonJS({
150897
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocument.js"(exports2, module2) {
150898
+ (function() {
150899
+ var NodeType, XMLDOMConfiguration, XMLDOMImplementation, XMLDocument, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject2, extend2 = function(child, parent2) {
150900
+ for (var key in parent2) {
150901
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
150902
+ }
150903
+ function ctor() {
150904
+ this.constructor = child;
150905
+ }
150906
+ ctor.prototype = parent2.prototype;
150907
+ child.prototype = new ctor();
150908
+ child.__super__ = parent2.prototype;
150909
+ return child;
150910
+ }, hasProp = {}.hasOwnProperty;
150911
+ isPlainObject2 = require_Utility().isPlainObject;
150912
+ XMLDOMImplementation = require_XMLDOMImplementation();
150913
+ XMLDOMConfiguration = require_XMLDOMConfiguration();
150914
+ XMLNode = require_XMLNode();
150915
+ NodeType = require_NodeType();
150916
+ XMLStringifier = require_XMLStringifier();
150917
+ XMLStringWriter = require_XMLStringWriter();
150918
+ module2.exports = XMLDocument = function(superClass) {
150919
+ extend2(XMLDocument2, superClass);
150920
+ function XMLDocument2(options) {
150921
+ XMLDocument2.__super__.constructor.call(this, null);
150922
+ this.name = "#document";
150923
+ this.type = NodeType.Document;
150924
+ this.documentURI = null;
150925
+ this.domConfig = new XMLDOMConfiguration();
150926
+ options || (options = {});
150927
+ if (!options.writer) {
150928
+ options.writer = new XMLStringWriter();
150929
+ }
150930
+ this.options = options;
150931
+ this.stringify = new XMLStringifier(options);
150932
+ }
150933
+ Object.defineProperty(XMLDocument2.prototype, "implementation", {
150934
+ value: new XMLDOMImplementation()
150935
+ });
150936
+ Object.defineProperty(XMLDocument2.prototype, "doctype", {
150937
+ get: function() {
150938
+ var child, i7, len, ref;
150939
+ ref = this.children;
150940
+ for (i7 = 0, len = ref.length; i7 < len; i7++) {
150941
+ child = ref[i7];
150942
+ if (child.type === NodeType.DocType) {
150943
+ return child;
150944
+ }
150945
+ }
150946
+ return null;
150947
+ }
150948
+ });
150949
+ Object.defineProperty(XMLDocument2.prototype, "documentElement", {
150950
+ get: function() {
150951
+ return this.rootObject || null;
150952
+ }
150953
+ });
150954
+ Object.defineProperty(XMLDocument2.prototype, "inputEncoding", {
150955
+ get: function() {
150956
+ return null;
150957
+ }
150958
+ });
150959
+ Object.defineProperty(XMLDocument2.prototype, "strictErrorChecking", {
150960
+ get: function() {
150961
+ return false;
150962
+ }
150963
+ });
150964
+ Object.defineProperty(XMLDocument2.prototype, "xmlEncoding", {
150965
+ get: function() {
150966
+ if (this.children.length !== 0 && this.children[0].type === NodeType.Declaration) {
150967
+ return this.children[0].encoding;
150968
+ } else {
150969
+ return null;
150970
+ }
150971
+ }
150972
+ });
150973
+ Object.defineProperty(XMLDocument2.prototype, "xmlStandalone", {
150974
+ get: function() {
150975
+ if (this.children.length !== 0 && this.children[0].type === NodeType.Declaration) {
150976
+ return this.children[0].standalone === "yes";
150977
+ } else {
150978
+ return false;
150979
+ }
150980
+ }
150981
+ });
150982
+ Object.defineProperty(XMLDocument2.prototype, "xmlVersion", {
150983
+ get: function() {
150984
+ if (this.children.length !== 0 && this.children[0].type === NodeType.Declaration) {
150985
+ return this.children[0].version;
150986
+ } else {
150987
+ return "1.0";
150988
+ }
150989
+ }
150990
+ });
150991
+ Object.defineProperty(XMLDocument2.prototype, "URL", {
150992
+ get: function() {
150993
+ return this.documentURI;
150994
+ }
150995
+ });
150996
+ Object.defineProperty(XMLDocument2.prototype, "origin", {
150997
+ get: function() {
150998
+ return null;
150999
+ }
151000
+ });
151001
+ Object.defineProperty(XMLDocument2.prototype, "compatMode", {
151002
+ get: function() {
151003
+ return null;
151004
+ }
151005
+ });
151006
+ Object.defineProperty(XMLDocument2.prototype, "characterSet", {
151007
+ get: function() {
151008
+ return null;
151009
+ }
151010
+ });
151011
+ Object.defineProperty(XMLDocument2.prototype, "contentType", {
151012
+ get: function() {
151013
+ return null;
151014
+ }
151015
+ });
151016
+ XMLDocument2.prototype.end = function(writer) {
151017
+ var writerOptions;
151018
+ writerOptions = {};
151019
+ if (!writer) {
151020
+ writer = this.options.writer;
151021
+ } else if (isPlainObject2(writer)) {
151022
+ writerOptions = writer;
151023
+ writer = this.options.writer;
151024
+ }
151025
+ return writer.document(this, writer.filterOptions(writerOptions));
151026
+ };
151027
+ XMLDocument2.prototype.toString = function(options) {
151028
+ return this.options.writer.document(this, this.options.writer.filterOptions(options));
151029
+ };
151030
+ XMLDocument2.prototype.createElement = function(tagName) {
151031
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151032
+ };
151033
+ XMLDocument2.prototype.createDocumentFragment = function() {
151034
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151035
+ };
151036
+ XMLDocument2.prototype.createTextNode = function(data2) {
151037
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151038
+ };
151039
+ XMLDocument2.prototype.createComment = function(data2) {
151040
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151041
+ };
151042
+ XMLDocument2.prototype.createCDATASection = function(data2) {
151043
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151044
+ };
151045
+ XMLDocument2.prototype.createProcessingInstruction = function(target, data2) {
151046
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151047
+ };
151048
+ XMLDocument2.prototype.createAttribute = function(name) {
151049
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151050
+ };
151051
+ XMLDocument2.prototype.createEntityReference = function(name) {
151052
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151053
+ };
151054
+ XMLDocument2.prototype.getElementsByTagName = function(tagname) {
151055
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151056
+ };
151057
+ XMLDocument2.prototype.importNode = function(importedNode, deep) {
151058
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151059
+ };
151060
+ XMLDocument2.prototype.createElementNS = function(namespaceURI, qualifiedName) {
151061
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151062
+ };
151063
+ XMLDocument2.prototype.createAttributeNS = function(namespaceURI, qualifiedName) {
151064
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151065
+ };
151066
+ XMLDocument2.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {
151067
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151068
+ };
151069
+ XMLDocument2.prototype.getElementById = function(elementId) {
151070
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151071
+ };
151072
+ XMLDocument2.prototype.adoptNode = function(source) {
151073
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151074
+ };
151075
+ XMLDocument2.prototype.normalizeDocument = function() {
151076
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151077
+ };
151078
+ XMLDocument2.prototype.renameNode = function(node, namespaceURI, qualifiedName) {
151079
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151080
+ };
151081
+ XMLDocument2.prototype.getElementsByClassName = function(classNames) {
151082
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151083
+ };
151084
+ XMLDocument2.prototype.createEvent = function(eventInterface) {
151085
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151086
+ };
151087
+ XMLDocument2.prototype.createRange = function() {
151088
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151089
+ };
151090
+ XMLDocument2.prototype.createNodeIterator = function(root3, whatToShow, filter6) {
151091
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151092
+ };
151093
+ XMLDocument2.prototype.createTreeWalker = function(root3, whatToShow, filter6) {
151094
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
151095
+ };
151096
+ return XMLDocument2;
151097
+ }(XMLNode);
151098
+ }).call(exports2);
151099
+ }
151100
+ });
151101
+
151102
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js
151103
+ var require_XMLDocumentCB = __commonJS({
151104
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js"(exports2, module2) {
151105
+ (function() {
151106
+ var NodeType, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction2, isObject2, isPlainObject2, ref, hasProp = {}.hasOwnProperty;
151107
+ ref = require_Utility(), isObject2 = ref.isObject, isFunction2 = ref.isFunction, isPlainObject2 = ref.isPlainObject, getValue = ref.getValue;
151108
+ NodeType = require_NodeType();
151109
+ XMLDocument = require_XMLDocument();
151110
+ XMLElement = require_XMLElement();
151111
+ XMLCData = require_XMLCData();
151112
+ XMLComment = require_XMLComment();
151113
+ XMLRaw = require_XMLRaw();
151114
+ XMLText = require_XMLText();
151115
+ XMLProcessingInstruction = require_XMLProcessingInstruction();
151116
+ XMLDeclaration = require_XMLDeclaration();
151117
+ XMLDocType = require_XMLDocType();
151118
+ XMLDTDAttList = require_XMLDTDAttList();
151119
+ XMLDTDEntity = require_XMLDTDEntity();
151120
+ XMLDTDElement = require_XMLDTDElement();
151121
+ XMLDTDNotation = require_XMLDTDNotation();
151122
+ XMLAttribute = require_XMLAttribute();
151123
+ XMLStringifier = require_XMLStringifier();
151124
+ XMLStringWriter = require_XMLStringWriter();
151125
+ WriterState = require_WriterState();
151126
+ module2.exports = XMLDocumentCB = function() {
151127
+ function XMLDocumentCB2(options, onData, onEnd) {
151128
+ var writerOptions;
151129
+ this.name = "?xml";
151130
+ this.type = NodeType.Document;
151131
+ options || (options = {});
151132
+ writerOptions = {};
151133
+ if (!options.writer) {
151134
+ options.writer = new XMLStringWriter();
151135
+ } else if (isPlainObject2(options.writer)) {
151136
+ writerOptions = options.writer;
151137
+ options.writer = new XMLStringWriter();
151138
+ }
151139
+ this.options = options;
151140
+ this.writer = options.writer;
151141
+ this.writerOptions = this.writer.filterOptions(writerOptions);
151142
+ this.stringify = new XMLStringifier(options);
151143
+ this.onDataCallback = onData || function() {
151144
+ };
151145
+ this.onEndCallback = onEnd || function() {
151146
+ };
151147
+ this.currentNode = null;
151148
+ this.currentLevel = -1;
151149
+ this.openTags = {};
151150
+ this.documentStarted = false;
151151
+ this.documentCompleted = false;
151152
+ this.root = null;
151153
+ }
151154
+ XMLDocumentCB2.prototype.createChildNode = function(node) {
151155
+ var att, attName, attributes2, child, i7, len, ref1, ref2;
151156
+ switch (node.type) {
151157
+ case NodeType.CData:
151158
+ this.cdata(node.value);
151159
+ break;
151160
+ case NodeType.Comment:
151161
+ this.comment(node.value);
151162
+ break;
151163
+ case NodeType.Element:
151164
+ attributes2 = {};
151165
+ ref1 = node.attribs;
151166
+ for (attName in ref1) {
151167
+ if (!hasProp.call(ref1, attName)) continue;
151168
+ att = ref1[attName];
151169
+ attributes2[attName] = att.value;
151170
+ }
151171
+ this.node(node.name, attributes2);
151172
+ break;
151173
+ case NodeType.Dummy:
151174
+ this.dummy();
151175
+ break;
151176
+ case NodeType.Raw:
151177
+ this.raw(node.value);
151178
+ break;
151179
+ case NodeType.Text:
151180
+ this.text(node.value);
151181
+ break;
151182
+ case NodeType.ProcessingInstruction:
151183
+ this.instruction(node.target, node.value);
151184
+ break;
151185
+ default:
151186
+ throw new Error("This XML node type is not supported in a JS object: " + node.constructor.name);
151187
+ }
151188
+ ref2 = node.children;
151189
+ for (i7 = 0, len = ref2.length; i7 < len; i7++) {
151190
+ child = ref2[i7];
151191
+ this.createChildNode(child);
151192
+ if (child.type === NodeType.Element) {
151193
+ this.up();
151194
+ }
151195
+ }
151196
+ return this;
151197
+ };
151198
+ XMLDocumentCB2.prototype.dummy = function() {
151199
+ return this;
151200
+ };
151201
+ XMLDocumentCB2.prototype.node = function(name, attributes2, text3) {
151202
+ var ref1;
151203
+ if (name == null) {
151204
+ throw new Error("Missing node name.");
151205
+ }
151206
+ if (this.root && this.currentLevel === -1) {
151207
+ throw new Error("Document can only have one root node. " + this.debugInfo(name));
151208
+ }
151209
+ this.openCurrent();
151210
+ name = getValue(name);
151211
+ if (attributes2 == null) {
151212
+ attributes2 = {};
151213
+ }
151214
+ attributes2 = getValue(attributes2);
151215
+ if (!isObject2(attributes2)) {
151216
+ ref1 = [attributes2, text3], text3 = ref1[0], attributes2 = ref1[1];
151217
+ }
151218
+ this.currentNode = new XMLElement(this, name, attributes2);
151219
+ this.currentNode.children = false;
151220
+ this.currentLevel++;
151221
+ this.openTags[this.currentLevel] = this.currentNode;
151222
+ if (text3 != null) {
151223
+ this.text(text3);
151224
+ }
151225
+ return this;
151226
+ };
151227
+ XMLDocumentCB2.prototype.element = function(name, attributes2, text3) {
151228
+ var child, i7, len, oldValidationFlag, ref1, root3;
151229
+ if (this.currentNode && this.currentNode.type === NodeType.DocType) {
151230
+ this.dtdElement.apply(this, arguments);
151231
+ } else {
151232
+ if (Array.isArray(name) || isObject2(name) || isFunction2(name)) {
151233
+ oldValidationFlag = this.options.noValidation;
151234
+ this.options.noValidation = true;
151235
+ root3 = new XMLDocument(this.options).element("TEMP_ROOT");
151236
+ root3.element(name);
151237
+ this.options.noValidation = oldValidationFlag;
151238
+ ref1 = root3.children;
151239
+ for (i7 = 0, len = ref1.length; i7 < len; i7++) {
151240
+ child = ref1[i7];
151241
+ this.createChildNode(child);
151242
+ if (child.type === NodeType.Element) {
151243
+ this.up();
151244
+ }
151245
+ }
151246
+ } else {
151247
+ this.node(name, attributes2, text3);
151248
+ }
151249
+ }
151250
+ return this;
151251
+ };
151252
+ XMLDocumentCB2.prototype.attribute = function(name, value) {
151253
+ var attName, attValue;
151254
+ if (!this.currentNode || this.currentNode.children) {
151255
+ throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(name));
151256
+ }
151257
+ if (name != null) {
151258
+ name = getValue(name);
151259
+ }
151260
+ if (isObject2(name)) {
151261
+ for (attName in name) {
151262
+ if (!hasProp.call(name, attName)) continue;
151263
+ attValue = name[attName];
151264
+ this.attribute(attName, attValue);
151265
+ }
151266
+ } else {
151267
+ if (isFunction2(value)) {
151268
+ value = value.apply();
151269
+ }
151270
+ if (this.options.keepNullAttributes && value == null) {
151271
+ this.currentNode.attribs[name] = new XMLAttribute(this, name, "");
151272
+ } else if (value != null) {
151273
+ this.currentNode.attribs[name] = new XMLAttribute(this, name, value);
151274
+ }
151275
+ }
151276
+ return this;
151277
+ };
151278
+ XMLDocumentCB2.prototype.text = function(value) {
151279
+ var node;
151280
+ this.openCurrent();
151281
+ node = new XMLText(this, value);
151282
+ this.onData(this.writer.text(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151283
+ return this;
151284
+ };
151285
+ XMLDocumentCB2.prototype.cdata = function(value) {
151286
+ var node;
151287
+ this.openCurrent();
151288
+ node = new XMLCData(this, value);
151289
+ this.onData(this.writer.cdata(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151290
+ return this;
151291
+ };
151292
+ XMLDocumentCB2.prototype.comment = function(value) {
151293
+ var node;
151294
+ this.openCurrent();
151295
+ node = new XMLComment(this, value);
151296
+ this.onData(this.writer.comment(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151297
+ return this;
151298
+ };
151299
+ XMLDocumentCB2.prototype.raw = function(value) {
151300
+ var node;
151301
+ this.openCurrent();
151302
+ node = new XMLRaw(this, value);
151303
+ this.onData(this.writer.raw(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151304
+ return this;
151305
+ };
151306
+ XMLDocumentCB2.prototype.instruction = function(target, value) {
151307
+ var i7, insTarget, insValue, len, node;
151308
+ this.openCurrent();
151309
+ if (target != null) {
151310
+ target = getValue(target);
151311
+ }
151312
+ if (value != null) {
151313
+ value = getValue(value);
151314
+ }
151315
+ if (Array.isArray(target)) {
151316
+ for (i7 = 0, len = target.length; i7 < len; i7++) {
151317
+ insTarget = target[i7];
151318
+ this.instruction(insTarget);
151319
+ }
151320
+ } else if (isObject2(target)) {
151321
+ for (insTarget in target) {
151322
+ if (!hasProp.call(target, insTarget)) continue;
151323
+ insValue = target[insTarget];
151324
+ this.instruction(insTarget, insValue);
151325
+ }
151326
+ } else {
151327
+ if (isFunction2(value)) {
151328
+ value = value.apply();
151329
+ }
151330
+ node = new XMLProcessingInstruction(this, target, value);
151331
+ this.onData(this.writer.processingInstruction(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151332
+ }
151333
+ return this;
151334
+ };
151335
+ XMLDocumentCB2.prototype.declaration = function(version3, encoding, standalone) {
151336
+ var node;
151337
+ this.openCurrent();
151338
+ if (this.documentStarted) {
151339
+ throw new Error("declaration() must be the first node.");
151340
+ }
151341
+ node = new XMLDeclaration(this, version3, encoding, standalone);
151342
+ this.onData(this.writer.declaration(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151343
+ return this;
151344
+ };
151345
+ XMLDocumentCB2.prototype.doctype = function(root3, pubID, sysID) {
151346
+ this.openCurrent();
151347
+ if (root3 == null) {
151348
+ throw new Error("Missing root node name.");
151349
+ }
151350
+ if (this.root) {
151351
+ throw new Error("dtd() must come before the root node.");
151352
+ }
151353
+ this.currentNode = new XMLDocType(this, pubID, sysID);
151354
+ this.currentNode.rootNodeName = root3;
151355
+ this.currentNode.children = false;
151356
+ this.currentLevel++;
151357
+ this.openTags[this.currentLevel] = this.currentNode;
151358
+ return this;
151359
+ };
151360
+ XMLDocumentCB2.prototype.dtdElement = function(name, value) {
151361
+ var node;
151362
+ this.openCurrent();
151363
+ node = new XMLDTDElement(this, name, value);
151364
+ this.onData(this.writer.dtdElement(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151365
+ return this;
151366
+ };
151367
+ XMLDocumentCB2.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
151368
+ var node;
151369
+ this.openCurrent();
151370
+ node = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
151371
+ this.onData(this.writer.dtdAttList(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151372
+ return this;
151373
+ };
151374
+ XMLDocumentCB2.prototype.entity = function(name, value) {
151375
+ var node;
151376
+ this.openCurrent();
151377
+ node = new XMLDTDEntity(this, false, name, value);
151378
+ this.onData(this.writer.dtdEntity(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151379
+ return this;
151380
+ };
151381
+ XMLDocumentCB2.prototype.pEntity = function(name, value) {
151382
+ var node;
151383
+ this.openCurrent();
151384
+ node = new XMLDTDEntity(this, true, name, value);
151385
+ this.onData(this.writer.dtdEntity(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151386
+ return this;
151387
+ };
151388
+ XMLDocumentCB2.prototype.notation = function(name, value) {
151389
+ var node;
151390
+ this.openCurrent();
151391
+ node = new XMLDTDNotation(this, name, value);
151392
+ this.onData(this.writer.dtdNotation(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
151393
+ return this;
151394
+ };
151395
+ XMLDocumentCB2.prototype.up = function() {
151396
+ if (this.currentLevel < 0) {
151397
+ throw new Error("The document node has no parent.");
151398
+ }
151399
+ if (this.currentNode) {
151400
+ if (this.currentNode.children) {
151401
+ this.closeNode(this.currentNode);
151402
+ } else {
151403
+ this.openNode(this.currentNode);
151404
+ }
151405
+ this.currentNode = null;
151406
+ } else {
151407
+ this.closeNode(this.openTags[this.currentLevel]);
151408
+ }
151409
+ delete this.openTags[this.currentLevel];
151410
+ this.currentLevel--;
151411
+ return this;
151412
+ };
151413
+ XMLDocumentCB2.prototype.end = function() {
151414
+ while (this.currentLevel >= 0) {
151415
+ this.up();
151416
+ }
151417
+ return this.onEnd();
151418
+ };
151419
+ XMLDocumentCB2.prototype.openCurrent = function() {
151420
+ if (this.currentNode) {
151421
+ this.currentNode.children = true;
151422
+ return this.openNode(this.currentNode);
151423
+ }
151424
+ };
151425
+ XMLDocumentCB2.prototype.openNode = function(node) {
151426
+ var att, chunk, name, ref1;
151427
+ if (!node.isOpen) {
151428
+ if (!this.root && this.currentLevel === 0 && node.type === NodeType.Element) {
151429
+ this.root = node;
151430
+ }
151431
+ chunk = "";
151432
+ if (node.type === NodeType.Element) {
151433
+ this.writerOptions.state = WriterState.OpenTag;
151434
+ chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + "<" + node.name;
151435
+ ref1 = node.attribs;
151436
+ for (name in ref1) {
151437
+ if (!hasProp.call(ref1, name)) continue;
151438
+ att = ref1[name];
151439
+ chunk += this.writer.attribute(att, this.writerOptions, this.currentLevel);
151440
+ }
151441
+ chunk += (node.children ? ">" : "/>") + this.writer.endline(node, this.writerOptions, this.currentLevel);
151442
+ this.writerOptions.state = WriterState.InsideTag;
151443
+ } else {
151444
+ this.writerOptions.state = WriterState.OpenTag;
151445
+ chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + "<!DOCTYPE " + node.rootNodeName;
151446
+ if (node.pubID && node.sysID) {
151447
+ chunk += ' PUBLIC "' + node.pubID + '" "' + node.sysID + '"';
151448
+ } else if (node.sysID) {
151449
+ chunk += ' SYSTEM "' + node.sysID + '"';
151450
+ }
151451
+ if (node.children) {
151452
+ chunk += " [";
151453
+ this.writerOptions.state = WriterState.InsideTag;
151454
+ } else {
151455
+ this.writerOptions.state = WriterState.CloseTag;
151456
+ chunk += ">";
151457
+ }
151458
+ chunk += this.writer.endline(node, this.writerOptions, this.currentLevel);
151459
+ }
151460
+ this.onData(chunk, this.currentLevel);
151461
+ return node.isOpen = true;
151462
+ }
151463
+ };
151464
+ XMLDocumentCB2.prototype.closeNode = function(node) {
151465
+ var chunk;
151466
+ if (!node.isClosed) {
151467
+ chunk = "";
151468
+ this.writerOptions.state = WriterState.CloseTag;
151469
+ if (node.type === NodeType.Element) {
151470
+ chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + "</" + node.name + ">" + this.writer.endline(node, this.writerOptions, this.currentLevel);
151471
+ } else {
151472
+ chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + "]>" + this.writer.endline(node, this.writerOptions, this.currentLevel);
151473
+ }
151474
+ this.writerOptions.state = WriterState.None;
151475
+ this.onData(chunk, this.currentLevel);
151476
+ return node.isClosed = true;
151477
+ }
151478
+ };
151479
+ XMLDocumentCB2.prototype.onData = function(chunk, level) {
151480
+ this.documentStarted = true;
151481
+ return this.onDataCallback(chunk, level + 1);
151482
+ };
151483
+ XMLDocumentCB2.prototype.onEnd = function() {
151484
+ this.documentCompleted = true;
151485
+ return this.onEndCallback();
151486
+ };
151487
+ XMLDocumentCB2.prototype.debugInfo = function(name) {
151488
+ if (name == null) {
151489
+ return "";
151490
+ } else {
151491
+ return "node: <" + name + ">";
151492
+ }
151493
+ };
151494
+ XMLDocumentCB2.prototype.ele = function() {
151495
+ return this.element.apply(this, arguments);
151496
+ };
151497
+ XMLDocumentCB2.prototype.nod = function(name, attributes2, text3) {
151498
+ return this.node(name, attributes2, text3);
151499
+ };
151500
+ XMLDocumentCB2.prototype.txt = function(value) {
151501
+ return this.text(value);
151502
+ };
151503
+ XMLDocumentCB2.prototype.dat = function(value) {
151504
+ return this.cdata(value);
151505
+ };
151506
+ XMLDocumentCB2.prototype.com = function(value) {
151507
+ return this.comment(value);
151508
+ };
151509
+ XMLDocumentCB2.prototype.ins = function(target, value) {
151510
+ return this.instruction(target, value);
151511
+ };
151512
+ XMLDocumentCB2.prototype.dec = function(version3, encoding, standalone) {
151513
+ return this.declaration(version3, encoding, standalone);
151514
+ };
151515
+ XMLDocumentCB2.prototype.dtd = function(root3, pubID, sysID) {
151516
+ return this.doctype(root3, pubID, sysID);
151517
+ };
151518
+ XMLDocumentCB2.prototype.e = function(name, attributes2, text3) {
151519
+ return this.element(name, attributes2, text3);
151520
+ };
151521
+ XMLDocumentCB2.prototype.n = function(name, attributes2, text3) {
151522
+ return this.node(name, attributes2, text3);
151523
+ };
151524
+ XMLDocumentCB2.prototype.t = function(value) {
151525
+ return this.text(value);
151526
+ };
151527
+ XMLDocumentCB2.prototype.d = function(value) {
151528
+ return this.cdata(value);
151529
+ };
151530
+ XMLDocumentCB2.prototype.c = function(value) {
151531
+ return this.comment(value);
151532
+ };
151533
+ XMLDocumentCB2.prototype.r = function(value) {
151534
+ return this.raw(value);
151535
+ };
151536
+ XMLDocumentCB2.prototype.i = function(target, value) {
151537
+ return this.instruction(target, value);
151538
+ };
151539
+ XMLDocumentCB2.prototype.att = function() {
151540
+ if (this.currentNode && this.currentNode.type === NodeType.DocType) {
151541
+ return this.attList.apply(this, arguments);
151542
+ } else {
151543
+ return this.attribute.apply(this, arguments);
151544
+ }
151545
+ };
151546
+ XMLDocumentCB2.prototype.a = function() {
151547
+ if (this.currentNode && this.currentNode.type === NodeType.DocType) {
151548
+ return this.attList.apply(this, arguments);
151549
+ } else {
151550
+ return this.attribute.apply(this, arguments);
151551
+ }
151552
+ };
151553
+ XMLDocumentCB2.prototype.ent = function(name, value) {
151554
+ return this.entity(name, value);
151555
+ };
151556
+ XMLDocumentCB2.prototype.pent = function(name, value) {
151557
+ return this.pEntity(name, value);
151558
+ };
151559
+ XMLDocumentCB2.prototype.not = function(name, value) {
151560
+ return this.notation(name, value);
151561
+ };
151562
+ return XMLDocumentCB2;
151563
+ }();
151564
+ }).call(exports2);
151565
+ }
151566
+ });
151567
+
151568
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js
151569
+ var require_XMLStreamWriter = __commonJS({
151570
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js"(exports2, module2) {
151571
+ (function() {
151572
+ var NodeType, WriterState, XMLStreamWriter, XMLWriterBase, extend2 = function(child, parent2) {
151573
+ for (var key in parent2) {
151574
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
151575
+ }
151576
+ function ctor() {
151577
+ this.constructor = child;
151578
+ }
151579
+ ctor.prototype = parent2.prototype;
151580
+ child.prototype = new ctor();
151581
+ child.__super__ = parent2.prototype;
151582
+ return child;
151583
+ }, hasProp = {}.hasOwnProperty;
151584
+ NodeType = require_NodeType();
151585
+ XMLWriterBase = require_XMLWriterBase();
151586
+ WriterState = require_WriterState();
151587
+ module2.exports = XMLStreamWriter = function(superClass) {
151588
+ extend2(XMLStreamWriter2, superClass);
151589
+ function XMLStreamWriter2(stream5, options) {
151590
+ this.stream = stream5;
151591
+ XMLStreamWriter2.__super__.constructor.call(this, options);
151592
+ }
151593
+ XMLStreamWriter2.prototype.endline = function(node, options, level) {
151594
+ if (node.isLastRootNode && options.state === WriterState.CloseTag) {
151595
+ return "";
151596
+ } else {
151597
+ return XMLStreamWriter2.__super__.endline.call(this, node, options, level);
151598
+ }
151599
+ };
151600
+ XMLStreamWriter2.prototype.document = function(doc, options) {
151601
+ var child, i7, j, k, len, len1, ref, ref1, results;
151602
+ ref = doc.children;
151603
+ for (i7 = j = 0, len = ref.length; j < len; i7 = ++j) {
151604
+ child = ref[i7];
151605
+ child.isLastRootNode = i7 === doc.children.length - 1;
151606
+ }
151607
+ options = this.filterOptions(options);
151608
+ ref1 = doc.children;
151609
+ results = [];
151610
+ for (k = 0, len1 = ref1.length; k < len1; k++) {
151611
+ child = ref1[k];
151612
+ results.push(this.writeChildNode(child, options, 0));
151613
+ }
151614
+ return results;
151615
+ };
151616
+ XMLStreamWriter2.prototype.attribute = function(att, options, level) {
151617
+ return this.stream.write(XMLStreamWriter2.__super__.attribute.call(this, att, options, level));
151618
+ };
151619
+ XMLStreamWriter2.prototype.cdata = function(node, options, level) {
151620
+ return this.stream.write(XMLStreamWriter2.__super__.cdata.call(this, node, options, level));
151621
+ };
151622
+ XMLStreamWriter2.prototype.comment = function(node, options, level) {
151623
+ return this.stream.write(XMLStreamWriter2.__super__.comment.call(this, node, options, level));
151624
+ };
151625
+ XMLStreamWriter2.prototype.declaration = function(node, options, level) {
151626
+ return this.stream.write(XMLStreamWriter2.__super__.declaration.call(this, node, options, level));
151627
+ };
151628
+ XMLStreamWriter2.prototype.docType = function(node, options, level) {
151629
+ var child, j, len, ref;
151630
+ level || (level = 0);
151631
+ this.openNode(node, options, level);
151632
+ options.state = WriterState.OpenTag;
151633
+ this.stream.write(this.indent(node, options, level));
151634
+ this.stream.write("<!DOCTYPE " + node.root().name);
151635
+ if (node.pubID && node.sysID) {
151636
+ this.stream.write(' PUBLIC "' + node.pubID + '" "' + node.sysID + '"');
151637
+ } else if (node.sysID) {
151638
+ this.stream.write(' SYSTEM "' + node.sysID + '"');
151639
+ }
151640
+ if (node.children.length > 0) {
151641
+ this.stream.write(" [");
151642
+ this.stream.write(this.endline(node, options, level));
151643
+ options.state = WriterState.InsideTag;
151644
+ ref = node.children;
151645
+ for (j = 0, len = ref.length; j < len; j++) {
151646
+ child = ref[j];
151647
+ this.writeChildNode(child, options, level + 1);
151648
+ }
151649
+ options.state = WriterState.CloseTag;
151650
+ this.stream.write("]");
151651
+ }
151652
+ options.state = WriterState.CloseTag;
151653
+ this.stream.write(options.spaceBeforeSlash + ">");
151654
+ this.stream.write(this.endline(node, options, level));
151655
+ options.state = WriterState.None;
151656
+ return this.closeNode(node, options, level);
151657
+ };
151658
+ XMLStreamWriter2.prototype.element = function(node, options, level) {
151659
+ var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1;
151660
+ level || (level = 0);
151661
+ this.openNode(node, options, level);
151662
+ options.state = WriterState.OpenTag;
151663
+ this.stream.write(this.indent(node, options, level) + "<" + node.name);
151664
+ ref = node.attribs;
151665
+ for (name in ref) {
151666
+ if (!hasProp.call(ref, name)) continue;
151667
+ att = ref[name];
151668
+ this.attribute(att, options, level);
151669
+ }
151670
+ childNodeCount = node.children.length;
151671
+ firstChildNode = childNodeCount === 0 ? null : node.children[0];
151672
+ if (childNodeCount === 0 || node.children.every(function(e) {
151673
+ return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === "";
151674
+ })) {
151675
+ if (options.allowEmpty) {
151676
+ this.stream.write(">");
151677
+ options.state = WriterState.CloseTag;
151678
+ this.stream.write("</" + node.name + ">");
151679
+ } else {
151680
+ options.state = WriterState.CloseTag;
151681
+ this.stream.write(options.spaceBeforeSlash + "/>");
151682
+ }
151683
+ } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && firstChildNode.value != null) {
151684
+ this.stream.write(">");
151685
+ options.state = WriterState.InsideTag;
151686
+ options.suppressPrettyCount++;
151687
+ prettySuppressed = true;
151688
+ this.writeChildNode(firstChildNode, options, level + 1);
151689
+ options.suppressPrettyCount--;
151690
+ prettySuppressed = false;
151691
+ options.state = WriterState.CloseTag;
151692
+ this.stream.write("</" + node.name + ">");
151693
+ } else {
151694
+ this.stream.write(">" + this.endline(node, options, level));
151695
+ options.state = WriterState.InsideTag;
151696
+ ref1 = node.children;
151697
+ for (j = 0, len = ref1.length; j < len; j++) {
151698
+ child = ref1[j];
151699
+ this.writeChildNode(child, options, level + 1);
151700
+ }
151701
+ options.state = WriterState.CloseTag;
151702
+ this.stream.write(this.indent(node, options, level) + "</" + node.name + ">");
151703
+ }
151704
+ this.stream.write(this.endline(node, options, level));
151705
+ options.state = WriterState.None;
151706
+ return this.closeNode(node, options, level);
151707
+ };
151708
+ XMLStreamWriter2.prototype.processingInstruction = function(node, options, level) {
151709
+ return this.stream.write(XMLStreamWriter2.__super__.processingInstruction.call(this, node, options, level));
151710
+ };
151711
+ XMLStreamWriter2.prototype.raw = function(node, options, level) {
151712
+ return this.stream.write(XMLStreamWriter2.__super__.raw.call(this, node, options, level));
151713
+ };
151714
+ XMLStreamWriter2.prototype.text = function(node, options, level) {
151715
+ return this.stream.write(XMLStreamWriter2.__super__.text.call(this, node, options, level));
151716
+ };
151717
+ XMLStreamWriter2.prototype.dtdAttList = function(node, options, level) {
151718
+ return this.stream.write(XMLStreamWriter2.__super__.dtdAttList.call(this, node, options, level));
151719
+ };
151720
+ XMLStreamWriter2.prototype.dtdElement = function(node, options, level) {
151721
+ return this.stream.write(XMLStreamWriter2.__super__.dtdElement.call(this, node, options, level));
151722
+ };
151723
+ XMLStreamWriter2.prototype.dtdEntity = function(node, options, level) {
151724
+ return this.stream.write(XMLStreamWriter2.__super__.dtdEntity.call(this, node, options, level));
151725
+ };
151726
+ XMLStreamWriter2.prototype.dtdNotation = function(node, options, level) {
151727
+ return this.stream.write(XMLStreamWriter2.__super__.dtdNotation.call(this, node, options, level));
151728
+ };
151729
+ return XMLStreamWriter2;
151730
+ }(XMLWriterBase);
151731
+ }).call(exports2);
151732
+ }
151733
+ });
151734
+
151735
+ // ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/index.js
151736
+ var require_lib22 = __commonJS({
151737
+ "../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/index.js"(exports2, module2) {
151738
+ (function() {
151739
+ var NodeType, WriterState, XMLDOMImplementation, XMLDocument, XMLDocumentCB, XMLStreamWriter, XMLStringWriter, assign, isFunction2, ref;
151740
+ ref = require_Utility(), assign = ref.assign, isFunction2 = ref.isFunction;
151741
+ XMLDOMImplementation = require_XMLDOMImplementation();
151742
+ XMLDocument = require_XMLDocument();
151743
+ XMLDocumentCB = require_XMLDocumentCB();
151744
+ XMLStringWriter = require_XMLStringWriter();
151745
+ XMLStreamWriter = require_XMLStreamWriter();
151746
+ NodeType = require_NodeType();
151747
+ WriterState = require_WriterState();
151748
+ module2.exports.create = function(name, xmldec, doctype, options) {
151749
+ var doc, root3;
151750
+ if (name == null) {
151751
+ throw new Error("Root element needs a name.");
151752
+ }
151753
+ options = assign({}, xmldec, doctype, options);
151754
+ doc = new XMLDocument(options);
151755
+ root3 = doc.element(name);
151756
+ if (!options.headless) {
151757
+ doc.declaration(options);
151758
+ if (options.pubID != null || options.sysID != null) {
151759
+ doc.dtd(options);
151760
+ }
151761
+ }
151762
+ return root3;
151763
+ };
151764
+ module2.exports.begin = function(options, onData, onEnd) {
151765
+ var ref1;
151766
+ if (isFunction2(options)) {
151767
+ ref1 = [options, onData], onData = ref1[0], onEnd = ref1[1];
151768
+ options = {};
151769
+ }
151770
+ if (onData) {
151771
+ return new XMLDocumentCB(options, onData, onEnd);
151772
+ } else {
151773
+ return new XMLDocument(options);
151774
+ }
151775
+ };
151776
+ module2.exports.stringWriter = function(options) {
151777
+ return new XMLStringWriter(options);
151778
+ };
151779
+ module2.exports.streamWriter = function(stream5, options) {
151780
+ return new XMLStreamWriter(stream5, options);
151781
+ };
151782
+ module2.exports.implementation = new XMLDOMImplementation();
151783
+ module2.exports.nodeType = NodeType;
151784
+ module2.exports.writerState = WriterState;
151785
+ }).call(exports2);
151786
+ }
151787
+ });
151788
+
151789
+ // ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/builder.js
151790
+ var require_builder = __commonJS({
151791
+ "../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/builder.js"(exports2) {
151792
+ (function() {
151793
+ "use strict";
151794
+ var builder, defaults3, escapeCDATA, requiresCDATA, wrapCDATA, hasProp = {}.hasOwnProperty;
151795
+ builder = require_lib22();
151796
+ defaults3 = require_defaults2().defaults;
151797
+ requiresCDATA = function(entry) {
151798
+ return typeof entry === "string" && (entry.indexOf("&") >= 0 || entry.indexOf(">") >= 0 || entry.indexOf("<") >= 0);
151799
+ };
151800
+ wrapCDATA = function(entry) {
151801
+ return "<![CDATA[" + escapeCDATA(entry) + "]]>";
151802
+ };
151803
+ escapeCDATA = function(entry) {
151804
+ return entry.replace("]]>", "]]]]><![CDATA[>");
151805
+ };
151806
+ exports2.Builder = function() {
151807
+ function Builder(opts) {
151808
+ var key, ref, value;
151809
+ this.options = {};
151810
+ ref = defaults3["0.2"];
151811
+ for (key in ref) {
151812
+ if (!hasProp.call(ref, key)) continue;
151813
+ value = ref[key];
151814
+ this.options[key] = value;
151815
+ }
151816
+ for (key in opts) {
151817
+ if (!hasProp.call(opts, key)) continue;
151818
+ value = opts[key];
151819
+ this.options[key] = value;
151820
+ }
151821
+ }
151822
+ Builder.prototype.buildObject = function(rootObj) {
151823
+ var attrkey, charkey, render3, rootElement, rootName;
151824
+ attrkey = this.options.attrkey;
151825
+ charkey = this.options.charkey;
151826
+ if (Object.keys(rootObj).length === 1 && this.options.rootName === defaults3["0.2"].rootName) {
151827
+ rootName = Object.keys(rootObj)[0];
151828
+ rootObj = rootObj[rootName];
151829
+ } else {
151830
+ rootName = this.options.rootName;
151831
+ }
151832
+ render3 = /* @__PURE__ */ function(_this) {
151833
+ return function(element, obj) {
151834
+ var attr2, child, entry, index2, key, value;
151835
+ if (typeof obj !== "object") {
151836
+ if (_this.options.cdata && requiresCDATA(obj)) {
151837
+ element.raw(wrapCDATA(obj));
151838
+ } else {
151839
+ element.txt(obj);
151840
+ }
151841
+ } else if (Array.isArray(obj)) {
151842
+ for (index2 in obj) {
151843
+ if (!hasProp.call(obj, index2)) continue;
151844
+ child = obj[index2];
151845
+ for (key in child) {
151846
+ entry = child[key];
151847
+ element = render3(element.ele(key), entry).up();
151848
+ }
151849
+ }
151850
+ } else {
151851
+ for (key in obj) {
151852
+ if (!hasProp.call(obj, key)) continue;
151853
+ child = obj[key];
151854
+ if (key === attrkey) {
151855
+ if (typeof child === "object") {
151856
+ for (attr2 in child) {
151857
+ value = child[attr2];
151858
+ element = element.att(attr2, value);
151859
+ }
151860
+ }
151861
+ } else if (key === charkey) {
151862
+ if (_this.options.cdata && requiresCDATA(child)) {
151863
+ element = element.raw(wrapCDATA(child));
151864
+ } else {
151865
+ element = element.txt(child);
151866
+ }
151867
+ } else if (Array.isArray(child)) {
151868
+ for (index2 in child) {
151869
+ if (!hasProp.call(child, index2)) continue;
151870
+ entry = child[index2];
151871
+ if (typeof entry === "string") {
151872
+ if (_this.options.cdata && requiresCDATA(entry)) {
151873
+ element = element.ele(key).raw(wrapCDATA(entry)).up();
151874
+ } else {
151875
+ element = element.ele(key, entry).up();
151876
+ }
151877
+ } else {
151878
+ element = render3(element.ele(key), entry).up();
151879
+ }
151880
+ }
151881
+ } else if (typeof child === "object") {
151882
+ element = render3(element.ele(key), child).up();
151883
+ } else {
151884
+ if (typeof child === "string" && _this.options.cdata && requiresCDATA(child)) {
151885
+ element = element.ele(key).raw(wrapCDATA(child)).up();
151886
+ } else {
151887
+ if (child == null) {
151888
+ child = "";
151889
+ }
151890
+ element = element.ele(key, child.toString()).up();
151891
+ }
151892
+ }
151893
+ }
151894
+ }
151895
+ return element;
151896
+ };
151897
+ }(this);
151898
+ rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, {
151899
+ headless: this.options.headless,
151900
+ allowSurrogateChars: this.options.allowSurrogateChars
151901
+ });
151902
+ return render3(rootElement, rootObj).end(this.options.renderOpts);
151903
+ };
151904
+ return Builder;
151905
+ }();
151906
+ }).call(exports2);
151907
+ }
151908
+ });
151909
+
151910
+ // ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/bom.js
151911
+ var require_bom = __commonJS({
151912
+ "../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/bom.js"(exports2) {
151913
+ (function() {
151914
+ "use strict";
151915
+ exports2.stripBOM = function(str) {
151916
+ if (str[0] === "\uFEFF") {
151917
+ return str.substring(1);
151918
+ } else {
151919
+ return str;
151920
+ }
151921
+ };
151922
+ }).call(exports2);
151923
+ }
151924
+ });
151925
+
151926
+ // ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/processors.js
151927
+ var require_processors = __commonJS({
151928
+ "../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/processors.js"(exports2) {
151929
+ (function() {
151930
+ "use strict";
151931
+ var prefixMatch;
151932
+ prefixMatch = new RegExp(/(?!xmlns)^.*:/);
151933
+ exports2.normalize = function(str) {
151934
+ return str.toLowerCase();
151935
+ };
151936
+ exports2.firstCharLowerCase = function(str) {
151937
+ return str.charAt(0).toLowerCase() + str.slice(1);
151938
+ };
151939
+ exports2.stripPrefix = function(str) {
151940
+ return str.replace(prefixMatch, "");
151941
+ };
151942
+ exports2.parseNumbers = function(str) {
151943
+ if (!isNaN(str)) {
151944
+ str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str);
151945
+ }
151946
+ return str;
151947
+ };
151948
+ exports2.parseBooleans = function(str) {
151949
+ if (/^(?:true|false)$/i.test(str)) {
151950
+ str = str.toLowerCase() === "true";
151951
+ }
151952
+ return str;
151953
+ };
151954
+ }).call(exports2);
151955
+ }
151956
+ });
151957
+
151958
+ // ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/parser.js
151959
+ var require_parser3 = __commonJS({
151960
+ "../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/parser.js"(exports2) {
151961
+ (function() {
151962
+ "use strict";
151963
+ var bom, defaults3, defineProperty, events, isEmpty, processItem, processors, sax, setImmediate2, bind2 = function(fn2, me) {
151964
+ return function() {
151965
+ return fn2.apply(me, arguments);
151966
+ };
151967
+ }, extend2 = function(child, parent2) {
151968
+ for (var key in parent2) {
151969
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
151970
+ }
151971
+ function ctor() {
151972
+ this.constructor = child;
151973
+ }
151974
+ ctor.prototype = parent2.prototype;
151975
+ child.prototype = new ctor();
151976
+ child.__super__ = parent2.prototype;
151977
+ return child;
151978
+ }, hasProp = {}.hasOwnProperty;
151979
+ sax = require_sax();
151980
+ events = __require("events");
151981
+ bom = require_bom();
151982
+ processors = require_processors();
151983
+ setImmediate2 = __require("timers").setImmediate;
151984
+ defaults3 = require_defaults2().defaults;
151985
+ isEmpty = function(thing) {
151986
+ return typeof thing === "object" && thing != null && Object.keys(thing).length === 0;
151987
+ };
151988
+ processItem = function(processors2, item, key) {
151989
+ var i7, len, process2;
151990
+ for (i7 = 0, len = processors2.length; i7 < len; i7++) {
151991
+ process2 = processors2[i7];
151992
+ item = process2(item, key);
151993
+ }
151994
+ return item;
151995
+ };
151996
+ defineProperty = function(obj, key, value) {
151997
+ var descriptor;
151998
+ descriptor = /* @__PURE__ */ Object.create(null);
151999
+ descriptor.value = value;
152000
+ descriptor.writable = true;
152001
+ descriptor.enumerable = true;
152002
+ descriptor.configurable = true;
152003
+ return Object.defineProperty(obj, key, descriptor);
152004
+ };
152005
+ exports2.Parser = function(superClass) {
152006
+ extend2(Parser4, superClass);
152007
+ function Parser4(opts) {
152008
+ this.parseStringPromise = bind2(this.parseStringPromise, this);
152009
+ this.parseString = bind2(this.parseString, this);
152010
+ this.reset = bind2(this.reset, this);
152011
+ this.assignOrPush = bind2(this.assignOrPush, this);
152012
+ this.processAsync = bind2(this.processAsync, this);
152013
+ var key, ref, value;
152014
+ if (!(this instanceof exports2.Parser)) {
152015
+ return new exports2.Parser(opts);
152016
+ }
152017
+ this.options = {};
152018
+ ref = defaults3["0.2"];
152019
+ for (key in ref) {
152020
+ if (!hasProp.call(ref, key)) continue;
152021
+ value = ref[key];
152022
+ this.options[key] = value;
152023
+ }
152024
+ for (key in opts) {
152025
+ if (!hasProp.call(opts, key)) continue;
152026
+ value = opts[key];
152027
+ this.options[key] = value;
152028
+ }
152029
+ if (this.options.xmlns) {
152030
+ this.options.xmlnskey = this.options.attrkey + "ns";
152031
+ }
152032
+ if (this.options.normalizeTags) {
152033
+ if (!this.options.tagNameProcessors) {
152034
+ this.options.tagNameProcessors = [];
152035
+ }
152036
+ this.options.tagNameProcessors.unshift(processors.normalize);
152037
+ }
152038
+ this.reset();
152039
+ }
152040
+ Parser4.prototype.processAsync = function() {
152041
+ var chunk, err;
152042
+ try {
152043
+ if (this.remaining.length <= this.options.chunkSize) {
152044
+ chunk = this.remaining;
152045
+ this.remaining = "";
152046
+ this.saxParser = this.saxParser.write(chunk);
152047
+ return this.saxParser.close();
152048
+ } else {
152049
+ chunk = this.remaining.substr(0, this.options.chunkSize);
152050
+ this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length);
152051
+ this.saxParser = this.saxParser.write(chunk);
152052
+ return setImmediate2(this.processAsync);
152053
+ }
152054
+ } catch (error1) {
152055
+ err = error1;
152056
+ if (!this.saxParser.errThrown) {
152057
+ this.saxParser.errThrown = true;
152058
+ return this.emit(err);
152059
+ }
152060
+ }
152061
+ };
152062
+ Parser4.prototype.assignOrPush = function(obj, key, newValue) {
152063
+ if (!(key in obj)) {
152064
+ if (!this.options.explicitArray) {
152065
+ return defineProperty(obj, key, newValue);
152066
+ } else {
152067
+ return defineProperty(obj, key, [newValue]);
152068
+ }
152069
+ } else {
152070
+ if (!(obj[key] instanceof Array)) {
152071
+ defineProperty(obj, key, [obj[key]]);
152072
+ }
152073
+ return obj[key].push(newValue);
152074
+ }
152075
+ };
152076
+ Parser4.prototype.reset = function() {
152077
+ var attrkey, charkey, ontext, stack2;
152078
+ this.removeAllListeners();
152079
+ this.saxParser = sax.parser(this.options.strict, {
152080
+ trim: false,
152081
+ normalize: false,
152082
+ xmlns: this.options.xmlns
152083
+ });
152084
+ this.saxParser.errThrown = false;
152085
+ this.saxParser.onerror = /* @__PURE__ */ function(_this) {
152086
+ return function(error) {
152087
+ _this.saxParser.resume();
152088
+ if (!_this.saxParser.errThrown) {
152089
+ _this.saxParser.errThrown = true;
152090
+ return _this.emit("error", error);
152091
+ }
152092
+ };
152093
+ }(this);
152094
+ this.saxParser.onend = /* @__PURE__ */ function(_this) {
152095
+ return function() {
152096
+ if (!_this.saxParser.ended) {
152097
+ _this.saxParser.ended = true;
152098
+ return _this.emit("end", _this.resultObject);
152099
+ }
152100
+ };
152101
+ }(this);
152102
+ this.saxParser.ended = false;
152103
+ this.EXPLICIT_CHARKEY = this.options.explicitCharkey;
152104
+ this.resultObject = null;
152105
+ stack2 = [];
152106
+ attrkey = this.options.attrkey;
152107
+ charkey = this.options.charkey;
152108
+ this.saxParser.onopentag = /* @__PURE__ */ function(_this) {
152109
+ return function(node) {
152110
+ var key, newValue, obj, processedKey, ref;
152111
+ obj = {};
152112
+ obj[charkey] = "";
152113
+ if (!_this.options.ignoreAttrs) {
152114
+ ref = node.attributes;
152115
+ for (key in ref) {
152116
+ if (!hasProp.call(ref, key)) continue;
152117
+ if (!(attrkey in obj) && !_this.options.mergeAttrs) {
152118
+ obj[attrkey] = {};
152119
+ }
152120
+ newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key];
152121
+ processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key;
152122
+ if (_this.options.mergeAttrs) {
152123
+ _this.assignOrPush(obj, processedKey, newValue);
152124
+ } else {
152125
+ defineProperty(obj[attrkey], processedKey, newValue);
152126
+ }
152127
+ }
152128
+ }
152129
+ obj["#name"] = _this.options.tagNameProcessors ? processItem(_this.options.tagNameProcessors, node.name) : node.name;
152130
+ if (_this.options.xmlns) {
152131
+ obj[_this.options.xmlnskey] = {
152132
+ uri: node.uri,
152133
+ local: node.local
152134
+ };
152135
+ }
152136
+ return stack2.push(obj);
152137
+ };
152138
+ }(this);
152139
+ this.saxParser.onclosetag = /* @__PURE__ */ function(_this) {
152140
+ return function() {
152141
+ var cdata, emptyStr, key, node, nodeName, obj, objClone, old, s4, xpath;
152142
+ obj = stack2.pop();
152143
+ nodeName = obj["#name"];
152144
+ if (!_this.options.explicitChildren || !_this.options.preserveChildrenOrder) {
152145
+ delete obj["#name"];
152146
+ }
152147
+ if (obj.cdata === true) {
152148
+ cdata = obj.cdata;
152149
+ delete obj.cdata;
152150
+ }
152151
+ s4 = stack2[stack2.length - 1];
152152
+ if (obj[charkey].match(/^\s*$/) && !cdata) {
152153
+ emptyStr = obj[charkey];
152154
+ delete obj[charkey];
152155
+ } else {
152156
+ if (_this.options.trim) {
152157
+ obj[charkey] = obj[charkey].trim();
152158
+ }
152159
+ if (_this.options.normalize) {
152160
+ obj[charkey] = obj[charkey].replace(/\s{2,}/g, " ").trim();
152161
+ }
152162
+ obj[charkey] = _this.options.valueProcessors ? processItem(_this.options.valueProcessors, obj[charkey], nodeName) : obj[charkey];
152163
+ if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {
152164
+ obj = obj[charkey];
152165
+ }
152166
+ }
152167
+ if (isEmpty(obj)) {
152168
+ if (typeof _this.options.emptyTag === "function") {
152169
+ obj = _this.options.emptyTag();
152170
+ } else {
152171
+ obj = _this.options.emptyTag !== "" ? _this.options.emptyTag : emptyStr;
152172
+ }
152173
+ }
152174
+ if (_this.options.validator != null) {
152175
+ xpath = "/" + function() {
152176
+ var i7, len, results;
152177
+ results = [];
152178
+ for (i7 = 0, len = stack2.length; i7 < len; i7++) {
152179
+ node = stack2[i7];
152180
+ results.push(node["#name"]);
152181
+ }
152182
+ return results;
152183
+ }().concat(nodeName).join("/");
152184
+ (function() {
152185
+ var err;
152186
+ try {
152187
+ return obj = _this.options.validator(xpath, s4 && s4[nodeName], obj);
152188
+ } catch (error1) {
152189
+ err = error1;
152190
+ return _this.emit("error", err);
152191
+ }
152192
+ })();
152193
+ }
152194
+ if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === "object") {
152195
+ if (!_this.options.preserveChildrenOrder) {
152196
+ node = {};
152197
+ if (_this.options.attrkey in obj) {
152198
+ node[_this.options.attrkey] = obj[_this.options.attrkey];
152199
+ delete obj[_this.options.attrkey];
152200
+ }
152201
+ if (!_this.options.charsAsChildren && _this.options.charkey in obj) {
152202
+ node[_this.options.charkey] = obj[_this.options.charkey];
152203
+ delete obj[_this.options.charkey];
152204
+ }
152205
+ if (Object.getOwnPropertyNames(obj).length > 0) {
152206
+ node[_this.options.childkey] = obj;
152207
+ }
152208
+ obj = node;
152209
+ } else if (s4) {
152210
+ s4[_this.options.childkey] = s4[_this.options.childkey] || [];
152211
+ objClone = {};
152212
+ for (key in obj) {
152213
+ if (!hasProp.call(obj, key)) continue;
152214
+ defineProperty(objClone, key, obj[key]);
152215
+ }
152216
+ s4[_this.options.childkey].push(objClone);
152217
+ delete obj["#name"];
152218
+ if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {
152219
+ obj = obj[charkey];
152220
+ }
152221
+ }
152222
+ }
152223
+ if (stack2.length > 0) {
152224
+ return _this.assignOrPush(s4, nodeName, obj);
152225
+ } else {
152226
+ if (_this.options.explicitRoot) {
152227
+ old = obj;
152228
+ obj = {};
152229
+ defineProperty(obj, nodeName, old);
152230
+ }
152231
+ _this.resultObject = obj;
152232
+ _this.saxParser.ended = true;
152233
+ return _this.emit("end", _this.resultObject);
152234
+ }
152235
+ };
152236
+ }(this);
152237
+ ontext = /* @__PURE__ */ function(_this) {
152238
+ return function(text3) {
152239
+ var charChild, s4;
152240
+ s4 = stack2[stack2.length - 1];
152241
+ if (s4) {
152242
+ s4[charkey] += text3;
152243
+ if (_this.options.explicitChildren && _this.options.preserveChildrenOrder && _this.options.charsAsChildren && (_this.options.includeWhiteChars || text3.replace(/\\n/g, "").trim() !== "")) {
152244
+ s4[_this.options.childkey] = s4[_this.options.childkey] || [];
152245
+ charChild = {
152246
+ "#name": "__text__"
152247
+ };
152248
+ charChild[charkey] = text3;
152249
+ if (_this.options.normalize) {
152250
+ charChild[charkey] = charChild[charkey].replace(/\s{2,}/g, " ").trim();
152251
+ }
152252
+ s4[_this.options.childkey].push(charChild);
152253
+ }
152254
+ return s4;
152255
+ }
152256
+ };
152257
+ }(this);
152258
+ this.saxParser.ontext = ontext;
152259
+ return this.saxParser.oncdata = /* @__PURE__ */ function(_this) {
152260
+ return function(text3) {
152261
+ var s4;
152262
+ s4 = ontext(text3);
152263
+ if (s4) {
152264
+ return s4.cdata = true;
152265
+ }
152266
+ };
152267
+ }(this);
152268
+ };
152269
+ Parser4.prototype.parseString = function(str, cb) {
152270
+ var err;
152271
+ if (cb != null && typeof cb === "function") {
152272
+ this.on("end", function(result) {
152273
+ this.reset();
152274
+ return cb(null, result);
152275
+ });
152276
+ this.on("error", function(err2) {
152277
+ this.reset();
152278
+ return cb(err2);
152279
+ });
152280
+ }
152281
+ try {
152282
+ str = str.toString();
152283
+ if (str.trim() === "") {
152284
+ this.emit("end", null);
152285
+ return true;
152286
+ }
152287
+ str = bom.stripBOM(str);
152288
+ if (this.options.async) {
152289
+ this.remaining = str;
152290
+ setImmediate2(this.processAsync);
152291
+ return this.saxParser;
152292
+ }
152293
+ return this.saxParser.write(str).close();
152294
+ } catch (error1) {
152295
+ err = error1;
152296
+ if (!(this.saxParser.errThrown || this.saxParser.ended)) {
152297
+ this.emit("error", err);
152298
+ return this.saxParser.errThrown = true;
152299
+ } else if (this.saxParser.ended) {
152300
+ throw err;
152301
+ }
152302
+ }
152303
+ };
152304
+ Parser4.prototype.parseStringPromise = function(str) {
152305
+ return new Promise(/* @__PURE__ */ function(_this) {
152306
+ return function(resolve28, reject) {
152307
+ return _this.parseString(str, function(err, value) {
152308
+ if (err) {
152309
+ return reject(err);
152310
+ } else {
152311
+ return resolve28(value);
152312
+ }
152313
+ });
152314
+ };
152315
+ }(this));
152316
+ };
152317
+ return Parser4;
152318
+ }(events);
152319
+ exports2.parseString = function(str, a2, b) {
152320
+ var cb, options, parser;
152321
+ if (b != null) {
152322
+ if (typeof b === "function") {
152323
+ cb = b;
152324
+ }
152325
+ if (typeof a2 === "object") {
152326
+ options = a2;
152327
+ }
152328
+ } else {
152329
+ if (typeof a2 === "function") {
152330
+ cb = a2;
152331
+ }
152332
+ options = {};
152333
+ }
152334
+ parser = new exports2.Parser(options);
152335
+ return parser.parseString(str, cb);
152336
+ };
152337
+ exports2.parseStringPromise = function(str, a2) {
152338
+ var options, parser;
152339
+ if (typeof a2 === "object") {
152340
+ options = a2;
152341
+ }
152342
+ parser = new exports2.Parser(options);
152343
+ return parser.parseStringPromise(str);
152344
+ };
152345
+ }).call(exports2);
152346
+ }
152347
+ });
152348
+
152349
+ // ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/xml2js.js
152350
+ var require_xml2js2 = __commonJS({
152351
+ "../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/xml2js.js"(exports2) {
152352
+ (function() {
152353
+ "use strict";
152354
+ var builder, defaults3, parser, processors, extend2 = function(child, parent2) {
152355
+ for (var key in parent2) {
152356
+ if (hasProp.call(parent2, key)) child[key] = parent2[key];
152357
+ }
152358
+ function ctor() {
152359
+ this.constructor = child;
152360
+ }
152361
+ ctor.prototype = parent2.prototype;
152362
+ child.prototype = new ctor();
152363
+ child.__super__ = parent2.prototype;
152364
+ return child;
152365
+ }, hasProp = {}.hasOwnProperty;
152366
+ defaults3 = require_defaults2();
152367
+ builder = require_builder();
152368
+ parser = require_parser3();
152369
+ processors = require_processors();
152370
+ exports2.defaults = defaults3.defaults;
152371
+ exports2.processors = processors;
152372
+ exports2.ValidationError = function(superClass) {
152373
+ extend2(ValidationError, superClass);
152374
+ function ValidationError(message2) {
152375
+ this.message = message2;
152376
+ }
152377
+ return ValidationError;
152378
+ }(Error);
152379
+ exports2.Builder = builder.Builder;
152380
+ exports2.Parser = parser.Parser;
152381
+ exports2.parseString = parser.parseString;
152382
+ exports2.parseStringPromise = parser.parseStringPromise;
152383
+ }).call(exports2);
152384
+ }
152385
+ });
152386
+
147944
152387
  // ../../node_modules/.pnpm/@octokit+plugin-paginate-graphql@4.0.1_@octokit+core@5.2.0/node_modules/@octokit/plugin-paginate-graphql/dist-node/index.js
147945
152388
  var require_dist_node11 = __commonJS({
147946
152389
  "../../node_modules/.pnpm/@octokit+plugin-paginate-graphql@4.0.1_@octokit+core@5.2.0/node_modules/@octokit/plugin-paginate-graphql/dist-node/index.js"(exports2, module2) {
@@ -172579,14 +177022,14 @@ var PathBase = class {
172579
177022
  *
172580
177023
  * @internal
172581
177024
  */
172582
- constructor(name, type = UNKNOWN, root3, roots, nocase, children2, opts) {
177025
+ constructor(name, type = UNKNOWN, root3, roots, nocase, children3, opts) {
172583
177026
  this.name = name;
172584
177027
  this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
172585
177028
  this.#type = type & TYPEMASK;
172586
177029
  this.nocase = nocase;
172587
177030
  this.roots = roots;
172588
177031
  this.root = root3 || this;
172589
- this.#children = children2;
177032
+ this.#children = children3;
172590
177033
  this.#fullpath = opts.fullpath;
172591
177034
  this.#relative = opts.relative;
172592
177035
  this.#relativePosix = opts.relativePosix;
@@ -172648,10 +177091,10 @@ var PathBase = class {
172648
177091
  if (cached) {
172649
177092
  return cached;
172650
177093
  }
172651
- const children2 = Object.assign([], { provisional: 0 });
172652
- this.#children.set(this, children2);
177094
+ const children3 = Object.assign([], { provisional: 0 });
177095
+ this.#children.set(this, children3);
172653
177096
  this.#type &= ~READDIR_CALLED;
172654
- return children2;
177097
+ return children3;
172655
177098
  }
172656
177099
  /**
172657
177100
  * Resolves a path portion and returns or creates the child Path.
@@ -172673,9 +177116,9 @@ var PathBase = class {
172673
177116
  if (pathPart === "..") {
172674
177117
  return this.parent || this;
172675
177118
  }
172676
- const children2 = this.children();
177119
+ const children3 = this.children();
172677
177120
  const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
172678
- for (const p3 of children2) {
177121
+ for (const p3 of children3) {
172679
177122
  if (p3.#matchName === name) {
172680
177123
  return p3;
172681
177124
  }
@@ -172690,7 +177133,7 @@ var PathBase = class {
172690
177133
  if (!this.canReaddir()) {
172691
177134
  pchild.#type |= ENOENT;
172692
177135
  }
172693
- children2.push(pchild);
177136
+ children3.push(pchild);
172694
177137
  return pchild;
172695
177138
  }
172696
177139
  /**
@@ -172874,8 +177317,8 @@ var PathBase = class {
172874
177317
  * readdir() has been called recently enough to still be valid.
172875
177318
  */
172876
177319
  readdirCached() {
172877
- const children2 = this.children();
172878
- return children2.slice(0, children2.provisional);
177320
+ const children3 = this.children();
177321
+ return children3.slice(0, children3.provisional);
172879
177322
  }
172880
177323
  /**
172881
177324
  * Return true if it's worth trying to readlink. Ie, we don't (yet) have
@@ -172976,10 +177419,10 @@ var PathBase = class {
172976
177419
  return void 0;
172977
177420
  }
172978
177421
  }
172979
- #readdirSuccess(children2) {
177422
+ #readdirSuccess(children3) {
172980
177423
  this.#type |= READDIR_CALLED;
172981
- for (let p3 = children2.provisional; p3 < children2.length; p3++) {
172982
- const c2 = children2[p3];
177424
+ for (let p3 = children3.provisional; p3 < children3.length; p3++) {
177425
+ const c2 = children3[p3];
172983
177426
  if (c2)
172984
177427
  c2.#markENOENT();
172985
177428
  }
@@ -172991,9 +177434,9 @@ var PathBase = class {
172991
177434
  this.#markChildrenENOENT();
172992
177435
  }
172993
177436
  #markChildrenENOENT() {
172994
- const children2 = this.children();
172995
- children2.provisional = 0;
172996
- for (const p3 of children2) {
177437
+ const children3 = this.children();
177438
+ children3.provisional = 0;
177439
+ for (const p3 of children3) {
172997
177440
  p3.#markENOENT();
172998
177441
  }
172999
177442
  }
@@ -173146,11 +177589,11 @@ var PathBase = class {
173146
177589
  }
173147
177590
  #onReaddirCB = [];
173148
177591
  #readdirCBInFlight = false;
173149
- #callOnReaddirCB(children2) {
177592
+ #callOnReaddirCB(children3) {
173150
177593
  this.#readdirCBInFlight = false;
173151
177594
  const cbs = this.#onReaddirCB.slice();
173152
177595
  this.#onReaddirCB.length = 0;
173153
- cbs.forEach((cb) => cb(null, children2));
177596
+ cbs.forEach((cb) => cb(null, children3));
173154
177597
  }
173155
177598
  /**
173156
177599
  * Standard node-style callback interface to get list of directory entries.
@@ -173176,9 +177619,9 @@ var PathBase = class {
173176
177619
  queueMicrotask(() => cb(null, []));
173177
177620
  return;
173178
177621
  }
173179
- const children2 = this.children();
177622
+ const children3 = this.children();
173180
177623
  if (this.calledReaddir()) {
173181
- const c2 = children2.slice(0, children2.provisional);
177624
+ const c2 = children3.slice(0, children3.provisional);
173182
177625
  if (allowZalgo)
173183
177626
  cb(null, c2);
173184
177627
  else
@@ -173194,14 +177637,14 @@ var PathBase = class {
173194
177637
  this.#fs.readdir(fullpath, { withFileTypes: true }, (er, entries) => {
173195
177638
  if (er) {
173196
177639
  this.#readdirFail(er.code);
173197
- children2.provisional = 0;
177640
+ children3.provisional = 0;
173198
177641
  } else {
173199
177642
  for (const e of entries) {
173200
- this.#readdirAddChild(e, children2);
177643
+ this.#readdirAddChild(e, children3);
173201
177644
  }
173202
- this.#readdirSuccess(children2);
177645
+ this.#readdirSuccess(children3);
173203
177646
  }
173204
- this.#callOnReaddirCB(children2.slice(0, children2.provisional));
177647
+ this.#callOnReaddirCB(children3.slice(0, children3.provisional));
173205
177648
  return;
173206
177649
  });
173207
177650
  }
@@ -173219,9 +177662,9 @@ var PathBase = class {
173219
177662
  if (!this.canReaddir()) {
173220
177663
  return [];
173221
177664
  }
173222
- const children2 = this.children();
177665
+ const children3 = this.children();
173223
177666
  if (this.calledReaddir()) {
173224
- return children2.slice(0, children2.provisional);
177667
+ return children3.slice(0, children3.provisional);
173225
177668
  }
173226
177669
  const fullpath = this.fullpath();
173227
177670
  if (this.#asyncReaddirInFlight) {
@@ -173234,17 +177677,17 @@ var PathBase = class {
173234
177677
  for (const e of await this.#fs.promises.readdir(fullpath, {
173235
177678
  withFileTypes: true
173236
177679
  })) {
173237
- this.#readdirAddChild(e, children2);
177680
+ this.#readdirAddChild(e, children3);
173238
177681
  }
173239
- this.#readdirSuccess(children2);
177682
+ this.#readdirSuccess(children3);
173240
177683
  } catch (er) {
173241
177684
  this.#readdirFail(er.code);
173242
- children2.provisional = 0;
177685
+ children3.provisional = 0;
173243
177686
  }
173244
177687
  this.#asyncReaddirInFlight = void 0;
173245
177688
  resolve28();
173246
177689
  }
173247
- return children2.slice(0, children2.provisional);
177690
+ return children3.slice(0, children3.provisional);
173248
177691
  }
173249
177692
  /**
173250
177693
  * synchronous {@link PathBase.readdir}
@@ -173253,23 +177696,23 @@ var PathBase = class {
173253
177696
  if (!this.canReaddir()) {
173254
177697
  return [];
173255
177698
  }
173256
- const children2 = this.children();
177699
+ const children3 = this.children();
173257
177700
  if (this.calledReaddir()) {
173258
- return children2.slice(0, children2.provisional);
177701
+ return children3.slice(0, children3.provisional);
173259
177702
  }
173260
177703
  const fullpath = this.fullpath();
173261
177704
  try {
173262
177705
  for (const e of this.#fs.readdirSync(fullpath, {
173263
177706
  withFileTypes: true
173264
177707
  })) {
173265
- this.#readdirAddChild(e, children2);
177708
+ this.#readdirAddChild(e, children3);
173266
177709
  }
173267
- this.#readdirSuccess(children2);
177710
+ this.#readdirSuccess(children3);
173268
177711
  } catch (er) {
173269
177712
  this.#readdirFail(er.code);
173270
- children2.provisional = 0;
177713
+ children3.provisional = 0;
173271
177714
  }
173272
- return children2.slice(0, children2.provisional);
177715
+ return children3.slice(0, children3.provisional);
173273
177716
  }
173274
177717
  canReaddir() {
173275
177718
  if (this.#type & ENOCHILD)
@@ -173363,8 +177806,8 @@ var PathWin32 = class _PathWin32 extends PathBase {
173363
177806
  *
173364
177807
  * @internal
173365
177808
  */
173366
- constructor(name, type = UNKNOWN, root3, roots, nocase, children2, opts) {
173367
- super(name, type, root3, roots, nocase, children2, opts);
177809
+ constructor(name, type = UNKNOWN, root3, roots, nocase, children3, opts) {
177810
+ super(name, type, root3, roots, nocase, children3, opts);
173368
177811
  }
173369
177812
  /**
173370
177813
  * @internal
@@ -173416,8 +177859,8 @@ var PathPosix = class _PathPosix extends PathBase {
173416
177859
  *
173417
177860
  * @internal
173418
177861
  */
173419
- constructor(name, type = UNKNOWN, root3, roots, nocase, children2, opts) {
173420
- super(name, type, root3, roots, nocase, children2, opts);
177862
+ constructor(name, type = UNKNOWN, root3, roots, nocase, children3, opts) {
177863
+ super(name, type, root3, roots, nocase, children3, opts);
173421
177864
  }
173422
177865
  /**
173423
177866
  * @internal
@@ -174287,13 +178730,13 @@ var Ignore = class {
174287
178730
  }
174288
178731
  const p3 = new Pattern(parsed, globParts, 0, this.platform);
174289
178732
  const m2 = new Minimatch(p3.globString(), this.mmopts);
174290
- const children2 = globParts[globParts.length - 1] === "**";
178733
+ const children3 = globParts[globParts.length - 1] === "**";
174291
178734
  const absolute = p3.isAbsolute();
174292
178735
  if (absolute)
174293
178736
  this.absolute.push(m2);
174294
178737
  else
174295
178738
  this.relative.push(m2);
174296
- if (children2) {
178739
+ if (children3) {
174297
178740
  if (absolute)
174298
178741
  this.absoluteChildren.push(m2);
174299
178742
  else
@@ -174781,8 +179224,8 @@ var GlobUtil = class {
174781
179224
  continue;
174782
179225
  }
174783
179226
  tasks++;
174784
- const children2 = t4.readdirSync();
174785
- this.walkCB3Sync(t4, children2, processor, next2);
179227
+ const children3 = t4.readdirSync();
179228
+ this.walkCB3Sync(t4, children3, processor, next2);
174786
179229
  }
174787
179230
  next2();
174788
179231
  }
@@ -180068,8 +184511,8 @@ function augmentWithParentsMap(d2) {
180068
184511
  }
180069
184512
  function computeParentsMap(d2) {
180070
184513
  const parentsMap = /* @__PURE__ */ new Map();
180071
- const addToMap = (children2, id) => {
180072
- children2?.forEach((dep) => {
184514
+ const addToMap = (children3, id) => {
184515
+ children3?.forEach((dep) => {
180073
184516
  if (!parentsMap.has(dep)) parentsMap.set(dep, []);
180074
184517
  parentsMap.get(dep).push(id);
180075
184518
  });
@@ -180414,9 +184857,9 @@ var NodeWithChildren = class extends Node {
180414
184857
  /**
180415
184858
  * @param children Children of the node. Only certain node types can have children.
180416
184859
  */
180417
- constructor(children2) {
184860
+ constructor(children3) {
180418
184861
  super();
180419
- this.children = children2;
184862
+ this.children = children3;
180420
184863
  }
180421
184864
  // Aliases
180422
184865
  /** First child of the node. */
@@ -180435,8 +184878,8 @@ var NodeWithChildren = class extends Node {
180435
184878
  get childNodes() {
180436
184879
  return this.children;
180437
184880
  }
180438
- set childNodes(children2) {
180439
- this.children = children2;
184881
+ set childNodes(children3) {
184882
+ this.children = children3;
180440
184883
  }
180441
184884
  };
180442
184885
  var CDATA2 = class extends NodeWithChildren {
@@ -180463,8 +184906,8 @@ var Element2 = class extends NodeWithChildren {
180463
184906
  * @param attribs Object mapping attribute names to attribute values.
180464
184907
  * @param children Children of the node.
180465
184908
  */
180466
- constructor(name, attribs, children2 = [], type = name === "script" ? ElementType.Script : name === "style" ? ElementType.Style : ElementType.Tag) {
180467
- super(children2);
184909
+ constructor(name, attribs, children3 = [], type = name === "script" ? ElementType.Script : name === "style" ? ElementType.Style : ElementType.Tag) {
184910
+ super(children3);
180468
184911
  this.name = name;
180469
184912
  this.attribs = attribs;
180470
184913
  this.type = type;
@@ -180523,9 +184966,9 @@ function cloneNode(node, recursive = false) {
180523
184966
  } else if (isComment(node)) {
180524
184967
  result = new Comment2(node.data);
180525
184968
  } else if (isTag2(node)) {
180526
- const children2 = recursive ? cloneChildren(node.children) : [];
180527
- const clone2 = new Element2(node.name, { ...node.attribs }, children2);
180528
- children2.forEach((child) => child.parent = clone2);
184969
+ const children3 = recursive ? cloneChildren(node.children) : [];
184970
+ const clone2 = new Element2(node.name, { ...node.attribs }, children3);
184971
+ children3.forEach((child) => child.parent = clone2);
180529
184972
  if (node.namespace != null) {
180530
184973
  clone2.namespace = node.namespace;
180531
184974
  }
@@ -180537,14 +184980,14 @@ function cloneNode(node, recursive = false) {
180537
184980
  }
180538
184981
  result = clone2;
180539
184982
  } else if (isCDATA(node)) {
180540
- const children2 = recursive ? cloneChildren(node.children) : [];
180541
- const clone2 = new CDATA2(children2);
180542
- children2.forEach((child) => child.parent = clone2);
184983
+ const children3 = recursive ? cloneChildren(node.children) : [];
184984
+ const clone2 = new CDATA2(children3);
184985
+ children3.forEach((child) => child.parent = clone2);
180543
184986
  result = clone2;
180544
184987
  } else if (isDocument(node)) {
180545
- const children2 = recursive ? cloneChildren(node.children) : [];
180546
- const clone2 = new Document(children2);
180547
- children2.forEach((child) => child.parent = clone2);
184988
+ const children3 = recursive ? cloneChildren(node.children) : [];
184989
+ const clone2 = new Document(children3);
184990
+ children3.forEach((child) => child.parent = clone2);
180548
184991
  if (node["x-mode"]) {
180549
184992
  clone2["x-mode"] = node["x-mode"];
180550
184993
  }
@@ -180568,12 +185011,12 @@ function cloneNode(node, recursive = false) {
180568
185011
  return result;
180569
185012
  }
180570
185013
  function cloneChildren(childs) {
180571
- const children2 = childs.map((child) => cloneNode(child, true));
180572
- for (let i7 = 1; i7 < children2.length; i7++) {
180573
- children2[i7].prev = children2[i7 - 1];
180574
- children2[i7 - 1].next = children2[i7];
185014
+ const children3 = childs.map((child) => cloneNode(child, true));
185015
+ for (let i7 = 1; i7 < children3.length; i7++) {
185016
+ children3[i7].prev = children3[i7 - 1];
185017
+ children3[i7 - 1].next = children3[i7];
180575
185018
  }
180576
- return children2;
185019
+ return children3;
180577
185020
  }
180578
185021
 
180579
185022
  // ../../node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.js
@@ -181876,19 +186319,19 @@ function getAtomFeed(feedRoot) {
181876
186319
  type: "atom",
181877
186320
  items: getElementsByTagName("entry", childs).map((item) => {
181878
186321
  var _a3;
181879
- const { children: children2 } = item;
181880
- const entry = { media: getMediaElements(children2) };
181881
- addConditionally(entry, "id", "id", children2);
181882
- addConditionally(entry, "title", "title", children2);
181883
- const href2 = (_a3 = getOneElement("link", children2)) === null || _a3 === void 0 ? void 0 : _a3.attribs["href"];
186322
+ const { children: children3 } = item;
186323
+ const entry = { media: getMediaElements(children3) };
186324
+ addConditionally(entry, "id", "id", children3);
186325
+ addConditionally(entry, "title", "title", children3);
186326
+ const href2 = (_a3 = getOneElement("link", children3)) === null || _a3 === void 0 ? void 0 : _a3.attribs["href"];
181884
186327
  if (href2) {
181885
186328
  entry.link = href2;
181886
186329
  }
181887
- const description = fetch2("summary", children2) || fetch2("content", children2);
186330
+ const description = fetch2("summary", children3) || fetch2("content", children3);
181888
186331
  if (description) {
181889
186332
  entry.description = description;
181890
186333
  }
181891
- const pubDate = fetch2("updated", children2);
186334
+ const pubDate = fetch2("updated", children3);
181892
186335
  if (pubDate) {
181893
186336
  entry.pubDate = new Date(pubDate);
181894
186337
  }
@@ -181916,13 +186359,13 @@ function getRssFeed(feedRoot) {
181916
186359
  type: feedRoot.name.substr(0, 3),
181917
186360
  id: "",
181918
186361
  items: getElementsByTagName("item", feedRoot.children).map((item) => {
181919
- const { children: children2 } = item;
181920
- const entry = { media: getMediaElements(children2) };
181921
- addConditionally(entry, "id", "guid", children2);
181922
- addConditionally(entry, "title", "title", children2);
181923
- addConditionally(entry, "link", "link", children2);
181924
- addConditionally(entry, "description", "description", children2);
181925
- const pubDate = fetch2("pubDate", children2) || fetch2("dc:date", children2);
186362
+ const { children: children3 } = item;
186363
+ const entry = { media: getMediaElements(children3) };
186364
+ addConditionally(entry, "id", "guid", children3);
186365
+ addConditionally(entry, "title", "title", children3);
186366
+ addConditionally(entry, "link", "link", children3);
186367
+ addConditionally(entry, "description", "description", children3);
186368
+ const pubDate = fetch2("pubDate", children3) || fetch2("dc:date", children3);
181926
186369
  if (pubDate)
181927
186370
  entry.pubDate = new Date(pubDate);
181928
186371
  return entry;
@@ -182504,7 +186947,7 @@ var traversing_exports = {};
182504
186947
  __export(traversing_exports, {
182505
186948
  add: () => add,
182506
186949
  addBack: () => addBack,
182507
- children: () => children,
186950
+ children: () => children2,
182508
186951
  closest: () => closest,
182509
186952
  contents: () => contents,
182510
186953
  each: () => each,
@@ -183843,7 +188286,7 @@ var prevAll = _matcher((elem) => {
183843
188286
  }, _removeDuplicates);
183844
188287
  var prevUntil = _matchUntil((el) => prevElementSibling(el), _removeDuplicates);
183845
188288
  var siblings = _matcher((elem) => getSiblings(elem).filter((el) => isTag2(el) && el !== elem), uniqueSort);
183846
- var children = _matcher((elem) => getChildren(elem).filter(isTag2), _removeDuplicates);
188289
+ var children2 = _matcher((elem) => getChildren(elem).filter(isTag2), _removeDuplicates);
183847
188290
  function contents() {
183848
188291
  const elems = this.toArray().reduce((newElems, elem) => hasChildren(elem) ? newElems.concat(elem.children) : newElems, []);
183849
188292
  return this._make(elems);
@@ -184104,11 +188547,11 @@ function prependTo(target) {
184104
188547
  prependTarget.prepend(this);
184105
188548
  return this;
184106
188549
  }
184107
- var append3 = _insert((dom, children2, parent2) => {
184108
- uniqueSplice(children2, children2.length, 0, dom, parent2);
188550
+ var append3 = _insert((dom, children3, parent2) => {
188551
+ uniqueSplice(children3, children3.length, 0, dom, parent2);
184109
188552
  });
184110
- var prepend2 = _insert((dom, children2, parent2) => {
184111
- uniqueSplice(children2, 0, 0, dom, parent2);
188553
+ var prepend2 = _insert((dom, children3, parent2) => {
188554
+ uniqueSplice(children3, 0, 0, dom, parent2);
184112
188555
  });
184113
188556
  function _wrap(insert) {
184114
188557
  return function(wrapper) {
@@ -193714,6 +198157,7 @@ var { root: root2 } = static_exports;
193714
198157
 
193715
198158
  // ../utils/src/maven-utils.ts
193716
198159
  var import_lodash14 = __toESM(require_lodash(), 1);
198160
+ var import_xml2js = __toESM(require_xml2js2(), 1);
193717
198161
  import { existsSync as existsSync12, readdirSync as readdirSync5, statSync as statSync4 } from "fs";
193718
198162
  import { join as join16, resolve as resolve26 } from "path";
193719
198163
  var { memoize: memoize3 } = import_lodash14.default;
@@ -193727,8 +198171,14 @@ var MAVEN_PUBLIC_REPOSITORIES = [
193727
198171
  "https://nexus.bedatadriven.com/content/groups/public"
193728
198172
  ];
193729
198173
  var memoizedParseShellArgs = memoize3(parseShellArgs);
198174
+ function getUrlForProject(repository, groupId, artifactId) {
198175
+ return `${repository}/${groupId.replaceAll(".", "/")}/${artifactId}`;
198176
+ }
198177
+ function getUrlForPackage(repository, groupId, artifactId, version3) {
198178
+ return `${getUrlForProject(repository, groupId, artifactId)}/${version3}`;
198179
+ }
193730
198180
  function getUrlForArtifact(repository, groupId, artifactId, type, classifier, version3) {
193731
- return `${repository}/${groupId.replaceAll(".", "/")}/${artifactId}/${version3}/${artifactId}-${version3}${classifier ? `-${classifier}` : ""}.${type ?? "jar"}`;
198181
+ return `${getUrlForPackage(repository, groupId, artifactId, version3)}/${artifactId}-${version3}${classifier ? `-${classifier}` : ""}.${type ?? "jar"}`;
193732
198182
  }
193733
198183
 
193734
198184
  // ../security-auditor/security-auditor-api/src/vulnerability-patterns-helper/get-interesting-urls-for-vulnerability.ts
@@ -195033,7 +199483,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
195033
199483
  }
195034
199484
 
195035
199485
  // dist/version.js
195036
- var version2 = "14.8.5";
199486
+ var version2 = "14.8.7";
195037
199487
 
195038
199488
  // dist/cli-core.js
195039
199489
  var { omit, partition, pick } = import_lodash15.default;