@sentry/craft 2.23.0 → 2.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/craft +239 -224
  2. package/package.json +1 -1
package/dist/craft CHANGED
@@ -107464,7 +107464,7 @@ var init_storage = __esm({
107464
107464
  }
107465
107465
  });
107466
107466
 
107467
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/util.js
107467
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/util.js
107468
107468
  function getAllMatches(string, regex2) {
107469
107469
  const matches = [];
107470
107470
  let match2 = regex2.exec(string);
@@ -107485,7 +107485,7 @@ function isExist(v8) {
107485
107485
  }
107486
107486
  var nameStartChar, nameChar, nameRegexp, regexName, isName;
107487
107487
  var init_util5 = __esm({
107488
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/util.js"() {
107488
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/util.js"() {
107489
107489
  "use strict";
107490
107490
  init_import_meta_url();
107491
107491
  nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
@@ -107499,7 +107499,7 @@ var init_util5 = __esm({
107499
107499
  }
107500
107500
  });
107501
107501
 
107502
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/validator.js
107502
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/validator.js
107503
107503
  function validate3(xmlData, options) {
107504
107504
  options = Object.assign({}, defaultOptions2, options);
107505
107505
  const tags = [];
@@ -107729,7 +107729,7 @@ function validateAttributeString(attrStr, options) {
107729
107729
  if (!validateAttrName(attrName)) {
107730
107730
  return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i4]));
107731
107731
  }
107732
- if (!attrNames.hasOwnProperty(attrName)) {
107732
+ if (!Object.prototype.hasOwnProperty.call(attrNames, attrName)) {
107733
107733
  attrNames[attrName] = 1;
107734
107734
  } else {
107735
107735
  return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i4]));
@@ -107798,7 +107798,7 @@ function getPositionFromMatch(match2) {
107798
107798
  }
107799
107799
  var defaultOptions2, doubleQuote, singleQuote, validAttrStrRegxp;
107800
107800
  var init_validator = __esm({
107801
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/validator.js"() {
107801
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/validator.js"() {
107802
107802
  "use strict";
107803
107803
  init_import_meta_url();
107804
107804
  init_util5();
@@ -107813,7 +107813,7 @@ var init_validator = __esm({
107813
107813
  }
107814
107814
  });
107815
107815
 
107816
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
107816
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
107817
107817
  function normalizeProcessEntities(value) {
107818
107818
  if (typeof value === "boolean") {
107819
107819
  return {
@@ -107843,7 +107843,7 @@ function normalizeProcessEntities(value) {
107843
107843
  }
107844
107844
  var defaultOptions3, buildOptions;
107845
107845
  var init_OptionsBuilder = __esm({
107846
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
107846
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
107847
107847
  init_import_meta_url();
107848
107848
  defaultOptions3 = {
107849
107849
  preserveOrder: false,
@@ -107888,7 +107888,8 @@ var init_OptionsBuilder = __esm({
107888
107888
  return tagName;
107889
107889
  },
107890
107890
  // skipEmptyListItem: false
107891
- captureMetaData: false
107891
+ captureMetaData: false,
107892
+ maxNestedTags: 100
107892
107893
  };
107893
107894
  buildOptions = function(options) {
107894
107895
  const built = Object.assign({}, defaultOptions3, options);
@@ -107898,10 +107899,10 @@ var init_OptionsBuilder = __esm({
107898
107899
  }
107899
107900
  });
107900
107901
 
107901
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
107902
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
107902
107903
  var METADATA_SYMBOL, XmlNode;
107903
107904
  var init_xmlNode = __esm({
107904
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
107905
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
107905
107906
  "use strict";
107906
107907
  init_import_meta_url();
107907
107908
  if (typeof Symbol !== "function") {
@@ -107913,7 +107914,7 @@ var init_xmlNode = __esm({
107913
107914
  constructor(tagname) {
107914
107915
  this.tagname = tagname;
107915
107916
  this.child = [];
107916
- this[":@"] = {};
107917
+ this[":@"] = /* @__PURE__ */ Object.create(null);
107917
107918
  }
107918
107919
  add(key, val) {
107919
107920
  if (key === "__proto__") key = "#__proto__";
@@ -107938,7 +107939,7 @@ var init_xmlNode = __esm({
107938
107939
  }
107939
107940
  });
107940
107941
 
107941
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
107942
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
107942
107943
  function hasSeq(data2, seq2, i4) {
107943
107944
  for (let j5 = 0; j5 < seq2.length; j5++) {
107944
107945
  if (seq2[j5] !== data2[i4 + j5 + 1]) return false;
@@ -107953,7 +107954,7 @@ function validateEntityName(name2) {
107953
107954
  }
107954
107955
  var DocTypeReader, skipWhitespace;
107955
107956
  var init_DocTypeReader = __esm({
107956
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
107957
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
107957
107958
  init_import_meta_url();
107958
107959
  init_util5();
107959
107960
  DocTypeReader = class {
@@ -107962,7 +107963,7 @@ var init_DocTypeReader = __esm({
107962
107963
  this.options = options;
107963
107964
  }
107964
107965
  readDocType(xmlData, i4) {
107965
- const entities = {};
107966
+ const entities = /* @__PURE__ */ Object.create(null);
107966
107967
  if (xmlData[i4 + 3] === "O" && xmlData[i4 + 4] === "C" && xmlData[i4 + 5] === "T" && xmlData[i4 + 6] === "Y" && xmlData[i4 + 7] === "P" && xmlData[i4 + 8] === "E") {
107967
107968
  i4 = i4 + 9;
107968
107969
  let angleBracketsCount = 1;
@@ -108319,7 +108320,7 @@ var init_strnum = __esm({
108319
108320
  }
108320
108321
  });
108321
108322
 
108322
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/ignoreAttributes.js
108323
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/ignoreAttributes.js
108323
108324
  function getIgnoreAttributesFn(ignoreAttributes) {
108324
108325
  if (typeof ignoreAttributes === "function") {
108325
108326
  return ignoreAttributes;
@@ -108339,12 +108340,12 @@ function getIgnoreAttributesFn(ignoreAttributes) {
108339
108340
  return () => false;
108340
108341
  }
108341
108342
  var init_ignoreAttributes = __esm({
108342
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
108343
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
108343
108344
  init_import_meta_url();
108344
108345
  }
108345
108346
  });
108346
108347
 
108347
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
108348
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
108348
108349
  function addExternalEntities(externalEntities) {
108349
108350
  const entKeys = Object.keys(externalEntities);
108350
108351
  for (let i4 = 0; i4 < entKeys.length; i4++) {
@@ -108606,7 +108607,7 @@ function fromCodePoint2(str2, base, prefix) {
108606
108607
  }
108607
108608
  var OrderedObjParser, attrsRegx, parseXml, replaceEntitiesValue;
108608
108609
  var init_OrderedObjParser = __esm({
108609
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
108610
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
108610
108611
  "use strict";
108611
108612
  init_import_meta_url();
108612
108613
  init_util5();
@@ -108834,6 +108835,9 @@ var init_OrderedObjParser = __esm({
108834
108835
  jPath = jPath.substr(0, jPath.lastIndexOf("."));
108835
108836
  } else {
108836
108837
  const childNode = new XmlNode(tagName);
108838
+ if (this.tagsNodeStack.length > this.options.maxNestedTags) {
108839
+ throw new Error("Maximum nested tags exceeded");
108840
+ }
108837
108841
  this.tagsNodeStack.push(currentNode);
108838
108842
  if (tagName !== tagExp && attrExpPresent) {
108839
108843
  childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
@@ -108909,7 +108913,7 @@ var init_OrderedObjParser = __esm({
108909
108913
  }
108910
108914
  });
108911
108915
 
108912
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/node2json.js
108916
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/node2json.js
108913
108917
  function prettify(node2, options) {
108914
108918
  return compress(node2, options);
108915
108919
  }
@@ -108930,9 +108934,6 @@ function compress(arr, options, jPath) {
108930
108934
  } else if (tagObj[property]) {
108931
108935
  let val = compress(tagObj[property], options, newJpath);
108932
108936
  const isLeaf = isLeafTag(val, options);
108933
- if (tagObj[METADATA_SYMBOL2] !== void 0) {
108934
- val[METADATA_SYMBOL2] = tagObj[METADATA_SYMBOL2];
108935
- }
108936
108937
  if (tagObj[":@"]) {
108937
108938
  assignAttributes(val, tagObj[":@"], newJpath, options);
108938
108939
  } else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
@@ -108941,7 +108942,10 @@ function compress(arr, options, jPath) {
108941
108942
  if (options.alwaysCreateTextNode) val[options.textNodeName] = "";
108942
108943
  else val = "";
108943
108944
  }
108944
- if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {
108945
+ if (tagObj[METADATA_SYMBOL2] !== void 0 && typeof val === "object" && val !== null) {
108946
+ val[METADATA_SYMBOL2] = tagObj[METADATA_SYMBOL2];
108947
+ }
108948
+ if (compressedObj[property] !== void 0 && Object.prototype.hasOwnProperty.call(compressedObj, property)) {
108945
108949
  if (!Array.isArray(compressedObj[property])) {
108946
108950
  compressedObj[property] = [compressedObj[property]];
108947
108951
  }
@@ -108994,7 +108998,7 @@ function isLeafTag(obj, options) {
108994
108998
  }
108995
108999
  var METADATA_SYMBOL2;
108996
109000
  var init_node2json = __esm({
108997
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
109001
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
108998
109002
  "use strict";
108999
109003
  init_import_meta_url();
109000
109004
  init_xmlNode();
@@ -109002,10 +109006,10 @@ var init_node2json = __esm({
109002
109006
  }
109003
109007
  });
109004
109008
 
109005
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
109009
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
109006
109010
  var XMLParser;
109007
109011
  var init_XMLParser = __esm({
109008
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
109012
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
109009
109013
  init_import_meta_url();
109010
109014
  init_OptionsBuilder();
109011
109015
  init_OrderedObjParser();
@@ -109074,9 +109078,9 @@ var init_XMLParser = __esm({
109074
109078
  }
109075
109079
  });
109076
109080
 
109077
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/fxp.js
109081
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/fxp.js
109078
109082
  var init_fxp = __esm({
109079
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/fxp.js"() {
109083
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/src/fxp.js"() {
109080
109084
  "use strict";
109081
109085
  init_import_meta_url();
109082
109086
  init_XMLParser();
@@ -119587,7 +119591,7 @@ function categorizeCommits(rawCommits) {
119587
119591
  if (!raw2.pr && raw2.hash) {
119588
119592
  missing.push(raw2);
119589
119593
  }
119590
- if (!categoryTitle || !raw2.pr) {
119594
+ if (!categoryTitle) {
119591
119595
  leftovers.push({
119592
119596
  author: raw2.author,
119593
119597
  hash: raw2.hash,
@@ -139248,9 +139252,9 @@ var init_awsExpectUnion = __esm({
139248
139252
  }
139249
139253
  });
139250
139254
 
139251
- // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/lib/fxp.cjs
139255
+ // node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/lib/fxp.cjs
139252
139256
  var require_fxp = __commonJS({
139253
- "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/lib/fxp.cjs"(exports2, module2) {
139257
+ "node_modules/.pnpm/fast-xml-parser@5.3.8/node_modules/fast-xml-parser/lib/fxp.cjs"(exports2, module2) {
139254
139258
  init_import_meta_url();
139255
139259
  (() => {
139256
139260
  "use strict";
@@ -139259,7 +139263,7 @@ var require_fxp = __commonJS({
139259
139263
  }, o: (t5, e5) => Object.prototype.hasOwnProperty.call(t5, e5), r: (t5) => {
139260
139264
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t5, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t5, "__esModule", { value: true });
139261
139265
  } }, e4 = {};
139262
- t4.r(e4), t4.d(e4, { XMLBuilder: () => dt, XMLParser: () => it, XMLValidator: () => gt });
139266
+ t4.r(e4), t4.d(e4, { XMLBuilder: () => pt, XMLParser: () => st, XMLValidator: () => xt });
139263
139267
  const n4 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i4 = new RegExp("^[" + n4 + "][" + n4 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
139264
139268
  function s4(t5, e5) {
139265
139269
  const n5 = [];
@@ -139281,90 +139285,90 @@ var require_fxp = __commonJS({
139281
139285
  const n5 = [];
139282
139286
  let i5 = false, s5 = false;
139283
139287
  "\uFEFF" === t5[0] && (t5 = t5.substr(1));
139284
- for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5] && "?" === t5[o5 + 1]) {
139285
- if (o5 += 2, o5 = u6(t5, o5), o5.err) return o5;
139288
+ for (let r5 = 0; r5 < t5.length; r5++) if ("<" === t5[r5] && "?" === t5[r5 + 1]) {
139289
+ if (r5 += 2, r5 = u6(t5, r5), r5.err) return r5;
139286
139290
  } else {
139287
- if ("<" !== t5[o5]) {
139288
- if (l4(t5[o5])) continue;
139289
- return m5("InvalidChar", "char '" + t5[o5] + "' is not expected.", b5(t5, o5));
139291
+ if ("<" !== t5[r5]) {
139292
+ if (l4(t5[r5])) continue;
139293
+ return m5("InvalidChar", "char '" + t5[r5] + "' is not expected.", N2(t5, r5));
139290
139294
  }
139291
139295
  {
139292
- let a5 = o5;
139293
- if (o5++, "!" === t5[o5]) {
139294
- o5 = h4(t5, o5);
139296
+ let o5 = r5;
139297
+ if (r5++, "!" === t5[r5]) {
139298
+ r5 = d5(t5, r5);
139295
139299
  continue;
139296
139300
  }
139297
139301
  {
139298
- let d6 = false;
139299
- "/" === t5[o5] && (d6 = true, o5++);
139300
- let p5 = "";
139301
- for (; o5 < t5.length && ">" !== t5[o5] && " " !== t5[o5] && " " !== t5[o5] && "\n" !== t5[o5] && "\r" !== t5[o5]; o5++) p5 += t5[o5];
139302
- if (p5 = p5.trim(), "/" === p5[p5.length - 1] && (p5 = p5.substring(0, p5.length - 1), o5--), !r4(p5)) {
139302
+ let a5 = false;
139303
+ "/" === t5[r5] && (a5 = true, r5++);
139304
+ let h5 = "";
139305
+ for (; r5 < t5.length && ">" !== t5[r5] && " " !== t5[r5] && " " !== t5[r5] && "\n" !== t5[r5] && "\r" !== t5[r5]; r5++) h5 += t5[r5];
139306
+ if (h5 = h5.trim(), "/" === h5[h5.length - 1] && (h5 = h5.substring(0, h5.length - 1), r5--), !b5(h5)) {
139303
139307
  let e6;
139304
- return e6 = 0 === p5.trim().length ? "Invalid space after '<'." : "Tag '" + p5 + "' is an invalid name.", m5("InvalidTag", e6, b5(t5, o5));
139308
+ return e6 = 0 === h5.trim().length ? "Invalid space after '<'." : "Tag '" + h5 + "' is an invalid name.", m5("InvalidTag", e6, N2(t5, r5));
139305
139309
  }
139306
- const c5 = f4(t5, o5);
139307
- if (false === c5) return m5("InvalidAttr", "Attributes for '" + p5 + "' have open quote.", b5(t5, o5));
139308
- let E4 = c5.value;
139309
- if (o5 = c5.index, "/" === E4[E4.length - 1]) {
139310
- const n6 = o5 - E4.length;
139311
- E4 = E4.substring(0, E4.length - 1);
139312
- const s6 = g4(E4, e5);
139313
- if (true !== s6) return m5(s6.err.code, s6.err.msg, b5(t5, n6 + s6.err.line));
139310
+ const p5 = c4(t5, r5);
139311
+ if (false === p5) return m5("InvalidAttr", "Attributes for '" + h5 + "' have open quote.", N2(t5, r5));
139312
+ let f5 = p5.value;
139313
+ if (r5 = p5.index, "/" === f5[f5.length - 1]) {
139314
+ const n6 = r5 - f5.length;
139315
+ f5 = f5.substring(0, f5.length - 1);
139316
+ const s6 = g4(f5, e5);
139317
+ if (true !== s6) return m5(s6.err.code, s6.err.msg, N2(t5, n6 + s6.err.line));
139314
139318
  i5 = true;
139315
- } else if (d6) {
139316
- if (!c5.tagClosed) return m5("InvalidTag", "Closing tag '" + p5 + "' doesn't have proper closing.", b5(t5, o5));
139317
- if (E4.trim().length > 0) return m5("InvalidTag", "Closing tag '" + p5 + "' can't have attributes or invalid starting.", b5(t5, a5));
139318
- if (0 === n5.length) return m5("InvalidTag", "Closing tag '" + p5 + "' has not been opened.", b5(t5, a5));
139319
+ } else if (a5) {
139320
+ if (!p5.tagClosed) return m5("InvalidTag", "Closing tag '" + h5 + "' doesn't have proper closing.", N2(t5, r5));
139321
+ if (f5.trim().length > 0) return m5("InvalidTag", "Closing tag '" + h5 + "' can't have attributes or invalid starting.", N2(t5, o5));
139322
+ if (0 === n5.length) return m5("InvalidTag", "Closing tag '" + h5 + "' has not been opened.", N2(t5, o5));
139319
139323
  {
139320
139324
  const e6 = n5.pop();
139321
- if (p5 !== e6.tagName) {
139322
- let n6 = b5(t5, e6.tagStartPos);
139323
- return m5("InvalidTag", "Expected closing tag '" + e6.tagName + "' (opened in line " + n6.line + ", col " + n6.col + ") instead of closing tag '" + p5 + "'.", b5(t5, a5));
139325
+ if (h5 !== e6.tagName) {
139326
+ let n6 = N2(t5, e6.tagStartPos);
139327
+ return m5("InvalidTag", "Expected closing tag '" + e6.tagName + "' (opened in line " + n6.line + ", col " + n6.col + ") instead of closing tag '" + h5 + "'.", N2(t5, o5));
139324
139328
  }
139325
139329
  0 == n5.length && (s5 = true);
139326
139330
  }
139327
139331
  } else {
139328
- const r5 = g4(E4, e5);
139329
- if (true !== r5) return m5(r5.err.code, r5.err.msg, b5(t5, o5 - E4.length + r5.err.line));
139330
- if (true === s5) return m5("InvalidXml", "Multiple possible root nodes found.", b5(t5, o5));
139331
- -1 !== e5.unpairedTags.indexOf(p5) || n5.push({ tagName: p5, tagStartPos: a5 }), i5 = true;
139332
+ const a6 = g4(f5, e5);
139333
+ if (true !== a6) return m5(a6.err.code, a6.err.msg, N2(t5, r5 - f5.length + a6.err.line));
139334
+ if (true === s5) return m5("InvalidXml", "Multiple possible root nodes found.", N2(t5, r5));
139335
+ -1 !== e5.unpairedTags.indexOf(h5) || n5.push({ tagName: h5, tagStartPos: o5 }), i5 = true;
139332
139336
  }
139333
- for (o5++; o5 < t5.length; o5++) if ("<" === t5[o5]) {
139334
- if ("!" === t5[o5 + 1]) {
139335
- o5++, o5 = h4(t5, o5);
139337
+ for (r5++; r5 < t5.length; r5++) if ("<" === t5[r5]) {
139338
+ if ("!" === t5[r5 + 1]) {
139339
+ r5++, r5 = d5(t5, r5);
139336
139340
  continue;
139337
139341
  }
139338
- if ("?" !== t5[o5 + 1]) break;
139339
- if (o5 = u6(t5, ++o5), o5.err) return o5;
139340
- } else if ("&" === t5[o5]) {
139341
- const e6 = x5(t5, o5);
139342
- if (-1 == e6) return m5("InvalidChar", "char '&' is not expected.", b5(t5, o5));
139343
- o5 = e6;
139344
- } else if (true === s5 && !l4(t5[o5])) return m5("InvalidXml", "Extra text at the end", b5(t5, o5));
139345
- "<" === t5[o5] && o5--;
139342
+ if ("?" !== t5[r5 + 1]) break;
139343
+ if (r5 = u6(t5, ++r5), r5.err) return r5;
139344
+ } else if ("&" === t5[r5]) {
139345
+ const e6 = x5(t5, r5);
139346
+ if (-1 == e6) return m5("InvalidChar", "char '&' is not expected.", N2(t5, r5));
139347
+ r5 = e6;
139348
+ } else if (true === s5 && !l4(t5[r5])) return m5("InvalidXml", "Extra text at the end", N2(t5, r5));
139349
+ "<" === t5[r5] && r5--;
139346
139350
  }
139347
139351
  }
139348
139352
  }
139349
- return i5 ? 1 == n5.length ? m5("InvalidTag", "Unclosed tag '" + n5[0].tagName + "'.", b5(t5, n5[0].tagStartPos)) : !(n5.length > 0) || m5("InvalidXml", "Invalid '" + JSON.stringify(n5.map(((t6) => t6.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m5("InvalidXml", "Start tag expected.", 1);
139353
+ return i5 ? 1 == n5.length ? m5("InvalidTag", "Unclosed tag '" + n5[0].tagName + "'.", N2(t5, n5[0].tagStartPos)) : !(n5.length > 0) || m5("InvalidXml", "Invalid '" + JSON.stringify(n5.map((t6) => t6.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m5("InvalidXml", "Start tag expected.", 1);
139350
139354
  }
139351
139355
  function l4(t5) {
139352
139356
  return " " === t5 || " " === t5 || "\n" === t5 || "\r" === t5;
139353
139357
  }
139354
139358
  function u6(t5, e5) {
139355
139359
  const n5 = e5;
139356
- for (; e5 < t5.length; e5++) if ("?" != t5[e5] && " " != t5[e5]) ;
139357
- else {
139360
+ for (; e5 < t5.length; e5++) if ("?" == t5[e5] || " " == t5[e5]) {
139358
139361
  const i5 = t5.substr(n5, e5 - n5);
139359
- if (e5 > 5 && "xml" === i5) return m5("InvalidXml", "XML declaration allowed only at the start of the document.", b5(t5, e5));
139362
+ if (e5 > 5 && "xml" === i5) return m5("InvalidXml", "XML declaration allowed only at the start of the document.", N2(t5, e5));
139360
139363
  if ("?" == t5[e5] && ">" == t5[e5 + 1]) {
139361
139364
  e5++;
139362
139365
  break;
139363
139366
  }
139367
+ continue;
139364
139368
  }
139365
139369
  return e5;
139366
139370
  }
139367
- function h4(t5, e5) {
139371
+ function d5(t5, e5) {
139368
139372
  if (t5.length > e5 + 5 && "-" === t5[e5 + 1] && "-" === t5[e5 + 2]) {
139369
139373
  for (e5 += 3; e5 < t5.length; e5++) if ("-" === t5[e5] && "-" === t5[e5 + 1] && ">" === t5[e5 + 2]) {
139370
139374
  e5 += 2;
@@ -139382,11 +139386,11 @@ var require_fxp = __commonJS({
139382
139386
  }
139383
139387
  return e5;
139384
139388
  }
139385
- const d5 = '"', p4 = "'";
139386
- function f4(t5, e5) {
139389
+ const h4 = '"', p4 = "'";
139390
+ function c4(t5, e5) {
139387
139391
  let n5 = "", i5 = "", s5 = false;
139388
139392
  for (; e5 < t5.length; e5++) {
139389
- if (t5[e5] === d5 || t5[e5] === p4) "" === i5 ? i5 = t5[e5] : i5 !== t5[e5] || (i5 = "");
139393
+ if (t5[e5] === h4 || t5[e5] === p4) "" === i5 ? i5 = t5[e5] : i5 !== t5[e5] || (i5 = "");
139390
139394
  else if (">" === t5[e5] && "" === i5) {
139391
139395
  s5 = true;
139392
139396
  break;
@@ -139395,16 +139399,16 @@ var require_fxp = __commonJS({
139395
139399
  }
139396
139400
  return "" === i5 && { value: n5, index: e5, tagClosed: s5 };
139397
139401
  }
139398
- const c4 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
139402
+ const f4 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
139399
139403
  function g4(t5, e5) {
139400
- const n5 = s4(t5, c4), i5 = {};
139404
+ const n5 = s4(t5, f4), i5 = {};
139401
139405
  for (let t6 = 0; t6 < n5.length; t6++) {
139402
- if (0 === n5[t6][1].length) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' has no space in starting.", N2(n5[t6]));
139403
- if (void 0 !== n5[t6][3] && void 0 === n5[t6][4]) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' is without value.", N2(n5[t6]));
139404
- if (void 0 === n5[t6][3] && !e5.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n5[t6][2] + "' is not allowed.", N2(n5[t6]));
139406
+ if (0 === n5[t6][1].length) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' has no space in starting.", y3(n5[t6]));
139407
+ if (void 0 !== n5[t6][3] && void 0 === n5[t6][4]) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' is without value.", y3(n5[t6]));
139408
+ if (void 0 === n5[t6][3] && !e5.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n5[t6][2] + "' is not allowed.", y3(n5[t6]));
139405
139409
  const s5 = n5[t6][2];
139406
- if (!E3(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is an invalid name.", N2(n5[t6]));
139407
- if (i5.hasOwnProperty(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is repeated.", N2(n5[t6]));
139410
+ if (!E3(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is an invalid name.", y3(n5[t6]));
139411
+ if (Object.prototype.hasOwnProperty.call(i5, s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is repeated.", y3(n5[t6]));
139408
139412
  i5[s5] = 1;
139409
139413
  }
139410
139414
  return true;
@@ -139432,49 +139436,52 @@ var require_fxp = __commonJS({
139432
139436
  function E3(t5) {
139433
139437
  return r4(t5);
139434
139438
  }
139435
- function b5(t5, e5) {
139439
+ function b5(t5) {
139440
+ return r4(t5);
139441
+ }
139442
+ function N2(t5, e5) {
139436
139443
  const n5 = t5.substring(0, e5).split(/\r?\n/);
139437
139444
  return { line: n5.length, col: n5[n5.length - 1].length + 1 };
139438
139445
  }
139439
- function N2(t5) {
139446
+ function y3(t5) {
139440
139447
  return t5.startIndex + t5[1].length;
139441
139448
  }
139442
- const y3 = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t5, e5) {
139449
+ const T2 = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t5, e5) {
139443
139450
  return e5;
139444
139451
  }, attributeValueProcessor: function(t5, e5) {
139445
139452
  return e5;
139446
139453
  }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t5, e5, n5) {
139447
139454
  return t5;
139448
- }, captureMetaData: false };
139449
- function T2(t5) {
139450
- return "boolean" == typeof t5 ? { enabled: t5, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t5 && null !== t5 ? { enabled: false !== t5.enabled, maxEntitySize: t5.maxEntitySize ?? 1e4, maxExpansionDepth: t5.maxExpansionDepth ?? 10, maxTotalExpansions: t5.maxTotalExpansions ?? 1e3, maxExpandedLength: t5.maxExpandedLength ?? 1e5, allowedTags: t5.allowedTags ?? null, tagFilter: t5.tagFilter ?? null } : T2(true);
139455
+ }, captureMetaData: false, maxNestedTags: 100 };
139456
+ function w5(t5) {
139457
+ return "boolean" == typeof t5 ? { enabled: t5, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t5 && null !== t5 ? { enabled: false !== t5.enabled, maxEntitySize: t5.maxEntitySize ?? 1e4, maxExpansionDepth: t5.maxExpansionDepth ?? 10, maxTotalExpansions: t5.maxTotalExpansions ?? 1e3, maxExpandedLength: t5.maxExpandedLength ?? 1e5, allowedTags: t5.allowedTags ?? null, tagFilter: t5.tagFilter ?? null } : w5(true);
139451
139458
  }
139452
- const w5 = function(t5) {
139453
- const e5 = Object.assign({}, y3, t5);
139454
- return e5.processEntities = T2(e5.processEntities), e5;
139459
+ const v8 = function(t5) {
139460
+ const e5 = Object.assign({}, T2, t5);
139461
+ return e5.processEntities = w5(e5.processEntities), e5;
139455
139462
  };
139456
- let v8;
139457
- v8 = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
139463
+ let O;
139464
+ O = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
139458
139465
  class I3 {
139459
139466
  constructor(t5) {
139460
- this.tagname = t5, this.child = [], this[":@"] = {};
139467
+ this.tagname = t5, this.child = [], this[":@"] = /* @__PURE__ */ Object.create(null);
139461
139468
  }
139462
139469
  add(t5, e5) {
139463
139470
  "__proto__" === t5 && (t5 = "#__proto__"), this.child.push({ [t5]: e5 });
139464
139471
  }
139465
139472
  addChild(t5, e5) {
139466
- "__proto__" === t5.tagname && (t5.tagname = "#__proto__"), t5[":@"] && Object.keys(t5[":@"]).length > 0 ? this.child.push({ [t5.tagname]: t5.child, ":@": t5[":@"] }) : this.child.push({ [t5.tagname]: t5.child }), void 0 !== e5 && (this.child[this.child.length - 1][v8] = { startIndex: e5 });
139473
+ "__proto__" === t5.tagname && (t5.tagname = "#__proto__"), t5[":@"] && Object.keys(t5[":@"]).length > 0 ? this.child.push({ [t5.tagname]: t5.child, ":@": t5[":@"] }) : this.child.push({ [t5.tagname]: t5.child }), void 0 !== e5 && (this.child[this.child.length - 1][O] = { startIndex: e5 });
139467
139474
  }
139468
139475
  static getMetaDataSymbol() {
139469
- return v8;
139476
+ return O;
139470
139477
  }
139471
139478
  }
139472
- class O {
139479
+ class P2 {
139473
139480
  constructor(t5) {
139474
139481
  this.suppressValidationErr = !t5, this.options = t5;
139475
139482
  }
139476
139483
  readDocType(t5, e5) {
139477
- const n5 = {};
139484
+ const n5 = /* @__PURE__ */ Object.create(null);
139478
139485
  if ("O" !== t5[e5 + 3] || "C" !== t5[e5 + 4] || "T" !== t5[e5 + 5] || "Y" !== t5[e5 + 6] || "P" !== t5[e5 + 7] || "E" !== t5[e5 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
139479
139486
  {
139480
139487
  e5 += 9;
@@ -139483,23 +139490,23 @@ var require_fxp = __commonJS({
139483
139490
  if (r5 ? "-" === t5[e5 - 1] && "-" === t5[e5 - 2] && (r5 = false, i5--) : i5--, 0 === i5) break;
139484
139491
  } else "[" === t5[e5] ? s5 = true : o5 += t5[e5];
139485
139492
  else {
139486
- if (s5 && A2(t5, "!ENTITY", e5)) {
139493
+ if (s5 && S2(t5, "!ENTITY", e5)) {
139487
139494
  let i6, s6;
139488
139495
  if (e5 += 7, [i6, s6, e5] = this.readEntityExp(t5, e5 + 1, this.suppressValidationErr), -1 === s6.indexOf("&")) {
139489
139496
  const t6 = i6.replace(/[.\-+*:]/g, "\\.");
139490
139497
  n5[i6] = { regx: RegExp(`&${t6};`, "g"), val: s6 };
139491
139498
  }
139492
- } else if (s5 && A2(t5, "!ELEMENT", e5)) {
139499
+ } else if (s5 && S2(t5, "!ELEMENT", e5)) {
139493
139500
  e5 += 8;
139494
139501
  const { index: n6 } = this.readElementExp(t5, e5 + 1);
139495
139502
  e5 = n6;
139496
- } else if (s5 && A2(t5, "!ATTLIST", e5)) e5 += 8;
139497
- else if (s5 && A2(t5, "!NOTATION", e5)) {
139503
+ } else if (s5 && S2(t5, "!ATTLIST", e5)) e5 += 8;
139504
+ else if (s5 && S2(t5, "!NOTATION", e5)) {
139498
139505
  e5 += 9;
139499
139506
  const { index: n6 } = this.readNotationExp(t5, e5 + 1, this.suppressValidationErr);
139500
139507
  e5 = n6;
139501
139508
  } else {
139502
- if (!A2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
139509
+ if (!S2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
139503
139510
  r5 = true;
139504
139511
  }
139505
139512
  i5++, o5 = "";
@@ -139509,10 +139516,10 @@ var require_fxp = __commonJS({
139509
139516
  return { entities: n5, i: e5 };
139510
139517
  }
139511
139518
  readEntityExp(t5, e5) {
139512
- e5 = P2(t5, e5);
139519
+ e5 = A2(t5, e5);
139513
139520
  let n5 = "";
139514
139521
  for (; e5 < t5.length && !/\s/.test(t5[e5]) && '"' !== t5[e5] && "'" !== t5[e5]; ) n5 += t5[e5], e5++;
139515
- if (S2(n5), e5 = P2(t5, e5), !this.suppressValidationErr) {
139522
+ if (C3(n5), e5 = A2(t5, e5), !this.suppressValidationErr) {
139516
139523
  if ("SYSTEM" === t5.substring(e5, e5 + 6).toUpperCase()) throw new Error("External entities are not supported");
139517
139524
  if ("%" === t5[e5]) throw new Error("Parameter entities are not supported");
139518
139525
  }
@@ -139521,15 +139528,15 @@ var require_fxp = __commonJS({
139521
139528
  return [n5, i5, --e5];
139522
139529
  }
139523
139530
  readNotationExp(t5, e5) {
139524
- e5 = P2(t5, e5);
139531
+ e5 = A2(t5, e5);
139525
139532
  let n5 = "";
139526
139533
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
139527
- !this.suppressValidationErr && S2(n5), e5 = P2(t5, e5);
139534
+ !this.suppressValidationErr && C3(n5), e5 = A2(t5, e5);
139528
139535
  const i5 = t5.substring(e5, e5 + 6).toUpperCase();
139529
139536
  if (!this.suppressValidationErr && "SYSTEM" !== i5 && "PUBLIC" !== i5) throw new Error(`Expected SYSTEM or PUBLIC, found "${i5}"`);
139530
- e5 += i5.length, e5 = P2(t5, e5);
139537
+ e5 += i5.length, e5 = A2(t5, e5);
139531
139538
  let s5 = null, r5 = null;
139532
- if ("PUBLIC" === i5) [e5, s5] = this.readIdentifierVal(t5, e5, "publicIdentifier"), '"' !== t5[e5 = P2(t5, e5)] && "'" !== t5[e5] || ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"));
139539
+ if ("PUBLIC" === i5) [e5, s5] = this.readIdentifierVal(t5, e5, "publicIdentifier"), '"' !== t5[e5 = A2(t5, e5)] && "'" !== t5[e5] || ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"));
139533
139540
  else if ("SYSTEM" === i5 && ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"), !this.suppressValidationErr && !r5)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
139534
139541
  return { notationName: n5, publicIdentifier: s5, systemIdentifier: r5, index: --e5 };
139535
139542
  }
@@ -139542,13 +139549,13 @@ var require_fxp = __commonJS({
139542
139549
  return [++e5, i5];
139543
139550
  }
139544
139551
  readElementExp(t5, e5) {
139545
- e5 = P2(t5, e5);
139552
+ e5 = A2(t5, e5);
139546
139553
  let n5 = "";
139547
139554
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
139548
139555
  if (!this.suppressValidationErr && !r4(n5)) throw new Error(`Invalid element name: "${n5}"`);
139549
139556
  let i5 = "";
139550
- if ("E" === t5[e5 = P2(t5, e5)] && A2(t5, "MPTY", e5)) e5 += 4;
139551
- else if ("A" === t5[e5] && A2(t5, "NY", e5)) e5 += 2;
139557
+ if ("E" === t5[e5 = A2(t5, e5)] && S2(t5, "MPTY", e5)) e5 += 4;
139558
+ else if ("A" === t5[e5] && S2(t5, "NY", e5)) e5 += 2;
139552
139559
  else if ("(" === t5[e5]) {
139553
139560
  for (e5++; e5 < t5.length && ")" !== t5[e5]; ) i5 += t5[e5], e5++;
139554
139561
  if (")" !== t5[e5]) throw new Error("Unterminated content model");
@@ -139556,24 +139563,24 @@ var require_fxp = __commonJS({
139556
139563
  return { elementName: n5, contentModel: i5.trim(), index: e5 };
139557
139564
  }
139558
139565
  readAttlistExp(t5, e5) {
139559
- e5 = P2(t5, e5);
139566
+ e5 = A2(t5, e5);
139560
139567
  let n5 = "";
139561
139568
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
139562
- S2(n5), e5 = P2(t5, e5);
139569
+ C3(n5), e5 = A2(t5, e5);
139563
139570
  let i5 = "";
139564
139571
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
139565
- if (!S2(i5)) throw new Error(`Invalid attribute name: "${i5}"`);
139566
- e5 = P2(t5, e5);
139572
+ if (!C3(i5)) throw new Error(`Invalid attribute name: "${i5}"`);
139573
+ e5 = A2(t5, e5);
139567
139574
  let s5 = "";
139568
139575
  if ("NOTATION" === t5.substring(e5, e5 + 8).toUpperCase()) {
139569
- if (s5 = "NOTATION", "(" !== t5[e5 = P2(t5, e5 += 8)]) throw new Error(`Expected '(', found "${t5[e5]}"`);
139576
+ if (s5 = "NOTATION", "(" !== t5[e5 = A2(t5, e5 += 8)]) throw new Error(`Expected '(', found "${t5[e5]}"`);
139570
139577
  e5++;
139571
139578
  let n6 = [];
139572
139579
  for (; e5 < t5.length && ")" !== t5[e5]; ) {
139573
139580
  let i6 = "";
139574
139581
  for (; e5 < t5.length && "|" !== t5[e5] && ")" !== t5[e5]; ) i6 += t5[e5], e5++;
139575
- if (i6 = i6.trim(), !S2(i6)) throw new Error(`Invalid notation name: "${i6}"`);
139576
- n6.push(i6), "|" === t5[e5] && (e5++, e5 = P2(t5, e5));
139582
+ if (i6 = i6.trim(), !C3(i6)) throw new Error(`Invalid notation name: "${i6}"`);
139583
+ n6.push(i6), "|" === t5[e5] && (e5++, e5 = A2(t5, e5));
139577
139584
  }
139578
139585
  if (")" !== t5[e5]) throw new Error("Unterminated list of notations");
139579
139586
  e5++, s5 += " (" + n6.join("|") + ")";
@@ -139582,25 +139589,25 @@ var require_fxp = __commonJS({
139582
139589
  const n6 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
139583
139590
  if (!this.suppressValidationErr && !n6.includes(s5.toUpperCase())) throw new Error(`Invalid attribute type: "${s5}"`);
139584
139591
  }
139585
- e5 = P2(t5, e5);
139592
+ e5 = A2(t5, e5);
139586
139593
  let r5 = "";
139587
139594
  return "#REQUIRED" === t5.substring(e5, e5 + 8).toUpperCase() ? (r5 = "#REQUIRED", e5 += 8) : "#IMPLIED" === t5.substring(e5, e5 + 7).toUpperCase() ? (r5 = "#IMPLIED", e5 += 7) : [e5, r5] = this.readIdentifierVal(t5, e5, "ATTLIST"), { elementName: n5, attributeName: i5, attributeType: s5, defaultValue: r5, index: e5 };
139588
139595
  }
139589
139596
  }
139590
- const P2 = (t5, e5) => {
139597
+ const A2 = (t5, e5) => {
139591
139598
  for (; e5 < t5.length && /\s/.test(t5[e5]); ) e5++;
139592
139599
  return e5;
139593
139600
  };
139594
- function A2(t5, e5, n5) {
139601
+ function S2(t5, e5, n5) {
139595
139602
  for (let i5 = 0; i5 < e5.length; i5++) if (e5[i5] !== t5[n5 + i5 + 1]) return false;
139596
139603
  return true;
139597
139604
  }
139598
- function S2(t5) {
139605
+ function C3(t5) {
139599
139606
  if (r4(t5)) return t5;
139600
139607
  throw new Error(`Invalid entity name ${t5}`);
139601
139608
  }
139602
- const C3 = /^[-+]?0x[a-fA-F0-9]+$/, $2 = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, V = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
139603
- const D3 = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
139609
+ const $2 = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, D3 = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
139610
+ const j5 = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
139604
139611
  function L2(t5) {
139605
139612
  return "function" == typeof t5 ? t5 : Array.isArray(t5) ? (e5) => {
139606
139613
  for (const n5 of t5) {
@@ -139611,7 +139618,7 @@ var require_fxp = __commonJS({
139611
139618
  }
139612
139619
  class F3 {
139613
139620
  constructor(t5) {
139614
- if (this.options = t5, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t6, e5) => K2(e5, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t6, e5) => K2(e5, 16, "&#x") } }, this.addExternalEntities = j5, this.parseXml = B3, this.parseTextData = M2, this.resolveNameSpace = _2, this.buildAttributesMap = U2, this.isItStopNode = X2, this.replaceEntitiesValue = Y, this.readStopNodeData = q5, this.saveTextToParentTag = G3, this.addChild = R, this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
139621
+ if (this.options = t5, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t6, e5) => Q2(e5, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t6, e5) => Q2(e5, 16, "&#x") } }, this.addExternalEntities = M2, this.parseXml = R, this.parseTextData = k5, this.resolveNameSpace = _2, this.buildAttributesMap = B3, this.isItStopNode = z3, this.replaceEntitiesValue = G3, this.readStopNodeData = Z2, this.saveTextToParentTag = X2, this.addChild = Y, this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
139615
139622
  this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
139616
139623
  for (let t6 = 0; t6 < this.options.stopNodes.length; t6++) {
139617
139624
  const e5 = this.options.stopNodes[t6];
@@ -139620,18 +139627,18 @@ var require_fxp = __commonJS({
139620
139627
  }
139621
139628
  }
139622
139629
  }
139623
- function j5(t5) {
139630
+ function M2(t5) {
139624
139631
  const e5 = Object.keys(t5);
139625
139632
  for (let n5 = 0; n5 < e5.length; n5++) {
139626
139633
  const i5 = e5[n5], s5 = i5.replace(/[.\-+*:]/g, "\\.");
139627
139634
  this.lastEntities[i5] = { regex: new RegExp("&" + s5 + ";", "g"), val: t5[i5] };
139628
139635
  }
139629
139636
  }
139630
- function M2(t5, e5, n5, i5, s5, r5, o5) {
139637
+ function k5(t5, e5, n5, i5, s5, r5, o5) {
139631
139638
  if (void 0 !== t5 && (this.options.trimValues && !i5 && (t5 = t5.trim()), t5.length > 0)) {
139632
139639
  o5 || (t5 = this.replaceEntitiesValue(t5, e5, n5));
139633
139640
  const i6 = this.options.tagValueProcessor(e5, t5, n5, s5, r5);
139634
- return null == i6 ? t5 : typeof i6 != typeof t5 || i6 !== t5 ? i6 : this.options.trimValues || t5.trim() === t5 ? Z2(t5, this.options.parseTagValue, this.options.numberParseOptions) : t5;
139641
+ return null == i6 ? t5 : typeof i6 != typeof t5 || i6 !== t5 ? i6 : this.options.trimValues || t5.trim() === t5 ? K2(t5, this.options.parseTagValue, this.options.numberParseOptions) : t5;
139635
139642
  }
139636
139643
  }
139637
139644
  function _2(t5) {
@@ -139642,10 +139649,10 @@ var require_fxp = __commonJS({
139642
139649
  }
139643
139650
  return t5;
139644
139651
  }
139645
- const k5 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
139646
- function U2(t5, e5, n5) {
139652
+ const U2 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
139653
+ function B3(t5, e5, n5) {
139647
139654
  if (true !== this.options.ignoreAttributes && "string" == typeof t5) {
139648
- const i5 = s4(t5, k5), r5 = i5.length, o5 = {};
139655
+ const i5 = s4(t5, U2), r5 = i5.length, o5 = {};
139649
139656
  for (let t6 = 0; t6 < r5; t6++) {
139650
139657
  const s5 = this.resolveNameSpace(i5[t6][1]);
139651
139658
  if (this.ignoreAttributesFn(s5, e5)) continue;
@@ -139653,7 +139660,7 @@ var require_fxp = __commonJS({
139653
139660
  if (s5.length) if (this.options.transformAttributeName && (a5 = this.options.transformAttributeName(a5)), "__proto__" === a5 && (a5 = "#__proto__"), void 0 !== r6) {
139654
139661
  this.options.trimValues && (r6 = r6.trim()), r6 = this.replaceEntitiesValue(r6, n5, e5);
139655
139662
  const t7 = this.options.attributeValueProcessor(s5, r6, e5);
139656
- o5[a5] = null == t7 ? r6 : typeof t7 != typeof r6 || t7 !== r6 ? t7 : Z2(r6, this.options.parseAttributeValue, this.options.numberParseOptions);
139663
+ o5[a5] = null == t7 ? r6 : typeof t7 != typeof r6 || t7 !== r6 ? t7 : K2(r6, this.options.parseAttributeValue, this.options.numberParseOptions);
139657
139664
  } else this.options.allowBooleanAttributes && (o5[a5] = true);
139658
139665
  }
139659
139666
  if (!Object.keys(o5).length) return;
@@ -139664,14 +139671,14 @@ var require_fxp = __commonJS({
139664
139671
  return o5;
139665
139672
  }
139666
139673
  }
139667
- const B3 = function(t5) {
139674
+ const R = function(t5) {
139668
139675
  t5 = t5.replace(/\r\n?/g, "\n");
139669
139676
  const e5 = new I3("!xml");
139670
139677
  let n5 = e5, i5 = "", s5 = "";
139671
139678
  this.entityExpansionCount = 0, this.currentExpandedLength = 0;
139672
- const r5 = new O(this.options.processEntities);
139679
+ const r5 = new P2(this.options.processEntities);
139673
139680
  for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5]) if ("/" === t5[o5 + 1]) {
139674
- const e6 = z3(t5, ">", o5, "Closing Tag is not closed.");
139681
+ const e6 = W2(t5, ">", o5, "Closing Tag is not closed.");
139675
139682
  let r6 = t5.substring(o5 + 2, e6).trim();
139676
139683
  if (this.options.removeNSPrefix) {
139677
139684
  const t6 = r6.indexOf(":");
@@ -139683,7 +139690,7 @@ var require_fxp = __commonJS({
139683
139690
  let l5 = 0;
139684
139691
  a5 && -1 !== this.options.unpairedTags.indexOf(a5) ? (l5 = s5.lastIndexOf(".", s5.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l5 = s5.lastIndexOf("."), s5 = s5.substring(0, l5), n5 = this.tagsNodeStack.pop(), i5 = "", o5 = e6;
139685
139692
  } else if ("?" === t5[o5 + 1]) {
139686
- let e6 = W2(t5, o5, false, "?>");
139693
+ let e6 = q5(t5, o5, false, "?>");
139687
139694
  if (!e6) throw new Error("Pi Tag is not closed.");
139688
139695
  if (i5 = this.saveTextToParentTag(i5, n5, s5), this.options.ignoreDeclaration && "?xml" === e6.tagName || this.options.ignorePiTags) ;
139689
139696
  else {
@@ -139692,7 +139699,7 @@ var require_fxp = __commonJS({
139692
139699
  }
139693
139700
  o5 = e6.closeIndex + 1;
139694
139701
  } else if ("!--" === t5.substr(o5 + 1, 3)) {
139695
- const e6 = z3(t5, "-->", o5 + 4, "Comment is not closed.");
139702
+ const e6 = W2(t5, "-->", o5 + 4, "Comment is not closed.");
139696
139703
  if (this.options.commentPropName) {
139697
139704
  const r6 = t5.substring(o5 + 4, e6 - 2);
139698
139705
  i5 = this.saveTextToParentTag(i5, n5, s5), n5.add(this.options.commentPropName, [{ [this.options.textNodeName]: r6 }]);
@@ -139702,14 +139709,14 @@ var require_fxp = __commonJS({
139702
139709
  const e6 = r5.readDocType(t5, o5);
139703
139710
  this.docTypeEntities = e6.entities, o5 = e6.i;
139704
139711
  } else if ("![" === t5.substr(o5 + 1, 2)) {
139705
- const e6 = z3(t5, "]]>", o5, "CDATA is not closed.") - 2, r6 = t5.substring(o5 + 9, e6);
139712
+ const e6 = W2(t5, "]]>", o5, "CDATA is not closed.") - 2, r6 = t5.substring(o5 + 9, e6);
139706
139713
  i5 = this.saveTextToParentTag(i5, n5, s5);
139707
139714
  let a5 = this.parseTextData(r6, n5.tagname, s5, true, false, true, true);
139708
139715
  null == a5 && (a5 = ""), this.options.cdataPropName ? n5.add(this.options.cdataPropName, [{ [this.options.textNodeName]: r6 }]) : n5.add(this.options.textNodeName, a5), o5 = e6 + 2;
139709
139716
  } else {
139710
- let r6 = W2(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
139717
+ let r6 = q5(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
139711
139718
  const l5 = r6.rawTagName;
139712
- let u7 = r6.tagExp, h5 = r6.attrExpPresent, d6 = r6.closeIndex;
139719
+ let u7 = r6.tagExp, d6 = r6.attrExpPresent, h5 = r6.closeIndex;
139713
139720
  if (this.options.transformTagName) {
139714
139721
  const t6 = this.options.transformTagName(a5);
139715
139722
  u7 === a5 && (u7 = t6), a5 = t6;
@@ -139717,18 +139724,18 @@ var require_fxp = __commonJS({
139717
139724
  n5 && i5 && "!xml" !== n5.tagname && (i5 = this.saveTextToParentTag(i5, n5, s5, false));
139718
139725
  const p5 = n5;
139719
139726
  p5 && -1 !== this.options.unpairedTags.indexOf(p5.tagname) && (n5 = this.tagsNodeStack.pop(), s5 = s5.substring(0, s5.lastIndexOf("."))), a5 !== e5.tagname && (s5 += s5 ? "." + a5 : a5);
139720
- const f5 = o5;
139727
+ const c5 = o5;
139721
139728
  if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s5, a5)) {
139722
139729
  let e6 = "";
139723
139730
  if (u7.length > 0 && u7.lastIndexOf("/") === u7.length - 1) "/" === a5[a5.length - 1] ? (a5 = a5.substr(0, a5.length - 1), s5 = s5.substr(0, s5.length - 1), u7 = a5) : u7 = u7.substr(0, u7.length - 1), o5 = r6.closeIndex;
139724
139731
  else if (-1 !== this.options.unpairedTags.indexOf(a5)) o5 = r6.closeIndex;
139725
139732
  else {
139726
- const n6 = this.readStopNodeData(t5, l5, d6 + 1);
139733
+ const n6 = this.readStopNodeData(t5, l5, h5 + 1);
139727
139734
  if (!n6) throw new Error(`Unexpected end of ${l5}`);
139728
139735
  o5 = n6.i, e6 = n6.tagContent;
139729
139736
  }
139730
139737
  const i6 = new I3(a5);
139731
- a5 !== u7 && h5 && (i6[":@"] = this.buildAttributesMap(u7, s5, a5)), e6 && (e6 = this.parseTextData(e6, a5, s5, true, h5, true, true)), s5 = s5.substr(0, s5.lastIndexOf(".")), i6.add(this.options.textNodeName, e6), this.addChild(n5, i6, s5, f5);
139738
+ a5 !== u7 && d6 && (i6[":@"] = this.buildAttributesMap(u7, s5, a5)), e6 && (e6 = this.parseTextData(e6, a5, s5, true, d6, true, true)), s5 = s5.substr(0, s5.lastIndexOf(".")), i6.add(this.options.textNodeName, e6), this.addChild(n5, i6, s5, c5);
139732
139739
  } else {
139733
139740
  if (u7.length > 0 && u7.lastIndexOf("/") === u7.length - 1) {
139734
139741
  if ("/" === a5[a5.length - 1] ? (a5 = a5.substr(0, a5.length - 1), s5 = s5.substr(0, s5.length - 1), u7 = a5) : u7 = u7.substr(0, u7.length - 1), this.options.transformTagName) {
@@ -139736,23 +139743,24 @@ var require_fxp = __commonJS({
139736
139743
  u7 === a5 && (u7 = t7), a5 = t7;
139737
139744
  }
139738
139745
  const t6 = new I3(a5);
139739
- a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, f5), s5 = s5.substr(0, s5.lastIndexOf("."));
139746
+ a5 !== u7 && d6 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, c5), s5 = s5.substr(0, s5.lastIndexOf("."));
139740
139747
  } else {
139741
139748
  const t6 = new I3(a5);
139742
- this.tagsNodeStack.push(n5), a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, f5), n5 = t6;
139749
+ if (this.tagsNodeStack.length > this.options.maxNestedTags) throw new Error("Maximum nested tags exceeded");
139750
+ this.tagsNodeStack.push(n5), a5 !== u7 && d6 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, c5), n5 = t6;
139743
139751
  }
139744
- i5 = "", o5 = d6;
139752
+ i5 = "", o5 = h5;
139745
139753
  }
139746
139754
  }
139747
139755
  else i5 += t5[o5];
139748
139756
  return e5.child;
139749
139757
  };
139750
- function R(t5, e5, n5, i5) {
139758
+ function Y(t5, e5, n5, i5) {
139751
139759
  this.options.captureMetaData || (i5 = void 0);
139752
139760
  const s5 = this.options.updateTag(e5.tagname, n5, e5[":@"]);
139753
139761
  false === s5 || ("string" == typeof s5 ? (e5.tagname = s5, t5.addChild(e5, i5)) : t5.addChild(e5, i5));
139754
139762
  }
139755
- const Y = function(t5, e5, n5) {
139763
+ const G3 = function(t5, e5, n5) {
139756
139764
  if (-1 === t5.indexOf("&")) return t5;
139757
139765
  const i5 = this.options.processEntities;
139758
139766
  if (!i5.enabled) return t5;
@@ -139778,18 +139786,18 @@ var require_fxp = __commonJS({
139778
139786
  }
139779
139787
  return t5.replace(this.ampEntity.regex, this.ampEntity.val);
139780
139788
  };
139781
- function G3(t5, e5, n5, i5) {
139789
+ function X2(t5, e5, n5, i5) {
139782
139790
  return t5 && (void 0 === i5 && (i5 = 0 === e5.child.length), void 0 !== (t5 = this.parseTextData(t5, e5.tagname, n5, false, !!e5[":@"] && 0 !== Object.keys(e5[":@"]).length, i5)) && "" !== t5 && e5.add(this.options.textNodeName, t5), t5 = ""), t5;
139783
139791
  }
139784
- function X2(t5, e5, n5, i5) {
139792
+ function z3(t5, e5, n5, i5) {
139785
139793
  return !(!e5 || !e5.has(i5)) || !(!t5 || !t5.has(n5));
139786
139794
  }
139787
- function z3(t5, e5, n5, i5) {
139795
+ function W2(t5, e5, n5, i5) {
139788
139796
  const s5 = t5.indexOf(e5, n5);
139789
139797
  if (-1 === s5) throw new Error(i5);
139790
139798
  return s5 + e5.length - 1;
139791
139799
  }
139792
- function W2(t5, e5, n5, i5 = ">") {
139800
+ function q5(t5, e5, n5, i5 = ">") {
139793
139801
  const s5 = (function(t6, e6, n6 = ">") {
139794
139802
  let i6, s6 = "";
139795
139803
  for (let r6 = e6; r6 < t6.length; r6++) {
@@ -139808,45 +139816,45 @@ var require_fxp = __commonJS({
139808
139816
  const o5 = s5.index, a5 = r5.search(/\s/);
139809
139817
  let l5 = r5, u7 = true;
139810
139818
  -1 !== a5 && (l5 = r5.substring(0, a5), r5 = r5.substring(a5 + 1).trimStart());
139811
- const h5 = l5;
139819
+ const d6 = l5;
139812
139820
  if (n5) {
139813
139821
  const t6 = l5.indexOf(":");
139814
139822
  -1 !== t6 && (l5 = l5.substr(t6 + 1), u7 = l5 !== s5.data.substr(t6 + 1));
139815
139823
  }
139816
- return { tagName: l5, tagExp: r5, closeIndex: o5, attrExpPresent: u7, rawTagName: h5 };
139824
+ return { tagName: l5, tagExp: r5, closeIndex: o5, attrExpPresent: u7, rawTagName: d6 };
139817
139825
  }
139818
- function q5(t5, e5, n5) {
139826
+ function Z2(t5, e5, n5) {
139819
139827
  const i5 = n5;
139820
139828
  let s5 = 1;
139821
139829
  for (; n5 < t5.length; n5++) if ("<" === t5[n5]) if ("/" === t5[n5 + 1]) {
139822
- const r5 = z3(t5, ">", n5, `${e5} is not closed`);
139830
+ const r5 = W2(t5, ">", n5, `${e5} is not closed`);
139823
139831
  if (t5.substring(n5 + 2, r5).trim() === e5 && (s5--, 0 === s5)) return { tagContent: t5.substring(i5, n5), i: r5 };
139824
139832
  n5 = r5;
139825
- } else if ("?" === t5[n5 + 1]) n5 = z3(t5, "?>", n5 + 1, "StopNode is not closed.");
139826
- else if ("!--" === t5.substr(n5 + 1, 3)) n5 = z3(t5, "-->", n5 + 3, "StopNode is not closed.");
139827
- else if ("![" === t5.substr(n5 + 1, 2)) n5 = z3(t5, "]]>", n5, "StopNode is not closed.") - 2;
139833
+ } else if ("?" === t5[n5 + 1]) n5 = W2(t5, "?>", n5 + 1, "StopNode is not closed.");
139834
+ else if ("!--" === t5.substr(n5 + 1, 3)) n5 = W2(t5, "-->", n5 + 3, "StopNode is not closed.");
139835
+ else if ("![" === t5.substr(n5 + 1, 2)) n5 = W2(t5, "]]>", n5, "StopNode is not closed.") - 2;
139828
139836
  else {
139829
- const i6 = W2(t5, n5, ">");
139837
+ const i6 = q5(t5, n5, ">");
139830
139838
  i6 && ((i6 && i6.tagName) === e5 && "/" !== i6.tagExp[i6.tagExp.length - 1] && s5++, n5 = i6.closeIndex);
139831
139839
  }
139832
139840
  }
139833
- function Z2(t5, e5, n5) {
139841
+ function K2(t5, e5, n5) {
139834
139842
  if (e5 && "string" == typeof t5) {
139835
139843
  const e6 = t5.trim();
139836
139844
  return "true" === e6 || "false" !== e6 && (function(t6, e7 = {}) {
139837
- if (e7 = Object.assign({}, V, e7), !t6 || "string" != typeof t6) return t6;
139845
+ if (e7 = Object.assign({}, D3, e7), !t6 || "string" != typeof t6) return t6;
139838
139846
  let n6 = t6.trim();
139839
139847
  if (void 0 !== e7.skipLike && e7.skipLike.test(n6)) return t6;
139840
139848
  if ("0" === t6) return 0;
139841
- if (e7.hex && C3.test(n6)) return (function(t7) {
139849
+ if (e7.hex && $2.test(n6)) return (function(t7) {
139842
139850
  if (parseInt) return parseInt(t7, 16);
139843
139851
  if (Number.parseInt) return Number.parseInt(t7, 16);
139844
139852
  if (window && window.parseInt) return window.parseInt(t7, 16);
139845
139853
  throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
139846
139854
  })(n6);
139847
- if (-1 !== n6.search(/.+[eE].+/)) return (function(t7, e8, n7) {
139855
+ if (n6.includes("e") || n6.includes("E")) return (function(t7, e8, n7) {
139848
139856
  if (!n7.eNotation) return t7;
139849
- const i6 = e8.match(D3);
139857
+ const i6 = e8.match(j5);
139850
139858
  if (i6) {
139851
139859
  let s5 = i6[1] || "";
139852
139860
  const r5 = -1 === i6[3].indexOf("e") ? "E" : "e", o5 = i6[2], a5 = s5 ? t7[o5.length + 1] === r5 : t7[o5.length] === r5;
@@ -139855,7 +139863,7 @@ var require_fxp = __commonJS({
139855
139863
  return t7;
139856
139864
  })(t6, n6, e7);
139857
139865
  {
139858
- const s5 = $2.exec(n6);
139866
+ const s5 = V.exec(n6);
139859
139867
  if (s5) {
139860
139868
  const r5 = s5[1] || "", o5 = s5[2];
139861
139869
  let a5 = (i5 = s5[3]) && -1 !== i5.indexOf(".") ? ("." === (i5 = i5.replace(/0+$/, "")) ? i5 = "0" : "." === i5[0] ? i5 = "0" + i5 : "." === i5[i5.length - 1] && (i5 = i5.substring(0, i5.length - 1)), i5) : i5;
@@ -139863,7 +139871,7 @@ var require_fxp = __commonJS({
139863
139871
  if (!e7.leadingZeros && (o5.length > 1 || 1 === o5.length && !l5)) return t6;
139864
139872
  {
139865
139873
  const i6 = Number(n6), s6 = String(i6);
139866
- if (0 === i6 || -0 === i6) return i6;
139874
+ if (0 === i6) return i6;
139867
139875
  if (-1 !== s6.search(/[eE]/)) return e7.eNotation ? i6 : t6;
139868
139876
  if (-1 !== n6.indexOf(".")) return "0" === s6 || s6 === a5 || s6 === `${r5}${a5}` ? i6 : t6;
139869
139877
  let l6 = o5 ? a5 : n6;
@@ -139877,40 +139885,40 @@ var require_fxp = __commonJS({
139877
139885
  }
139878
139886
  return void 0 !== t5 ? t5 : "";
139879
139887
  }
139880
- function K2(t5, e5, n5) {
139888
+ function Q2(t5, e5, n5) {
139881
139889
  const i5 = Number.parseInt(t5, e5);
139882
139890
  return i5 >= 0 && i5 <= 1114111 ? String.fromCodePoint(i5) : n5 + t5 + ";";
139883
139891
  }
139884
- const Q2 = I3.getMetaDataSymbol();
139885
- function J3(t5, e5) {
139886
- return H2(t5, e5);
139892
+ const J3 = I3.getMetaDataSymbol();
139893
+ function H2(t5, e5) {
139894
+ return tt(t5, e5);
139887
139895
  }
139888
- function H2(t5, e5, n5) {
139896
+ function tt(t5, e5, n5) {
139889
139897
  let i5;
139890
139898
  const s5 = {};
139891
139899
  for (let r5 = 0; r5 < t5.length; r5++) {
139892
- const o5 = t5[r5], a5 = tt(o5);
139900
+ const o5 = t5[r5], a5 = et(o5);
139893
139901
  let l5 = "";
139894
139902
  if (l5 = void 0 === n5 ? a5 : n5 + "." + a5, a5 === e5.textNodeName) void 0 === i5 ? i5 = o5[a5] : i5 += "" + o5[a5];
139895
139903
  else {
139896
139904
  if (void 0 === a5) continue;
139897
139905
  if (o5[a5]) {
139898
- let t6 = H2(o5[a5], e5, l5);
139899
- const n6 = nt(t6, e5);
139900
- void 0 !== o5[Q2] && (t6[Q2] = o5[Q2]), o5[":@"] ? et(t6, o5[":@"], l5, e5) : 1 !== Object.keys(t6).length || void 0 === t6[e5.textNodeName] || e5.alwaysCreateTextNode ? 0 === Object.keys(t6).length && (e5.alwaysCreateTextNode ? t6[e5.textNodeName] = "" : t6 = "") : t6 = t6[e5.textNodeName], void 0 !== s5[a5] && s5.hasOwnProperty(a5) ? (Array.isArray(s5[a5]) || (s5[a5] = [s5[a5]]), s5[a5].push(t6)) : e5.isArray(a5, l5, n6) ? s5[a5] = [t6] : s5[a5] = t6;
139906
+ let t6 = tt(o5[a5], e5, l5);
139907
+ const n6 = it(t6, e5);
139908
+ o5[":@"] ? nt(t6, o5[":@"], l5, e5) : 1 !== Object.keys(t6).length || void 0 === t6[e5.textNodeName] || e5.alwaysCreateTextNode ? 0 === Object.keys(t6).length && (e5.alwaysCreateTextNode ? t6[e5.textNodeName] = "" : t6 = "") : t6 = t6[e5.textNodeName], void 0 !== o5[J3] && "object" == typeof t6 && null !== t6 && (t6[J3] = o5[J3]), void 0 !== s5[a5] && Object.prototype.hasOwnProperty.call(s5, a5) ? (Array.isArray(s5[a5]) || (s5[a5] = [s5[a5]]), s5[a5].push(t6)) : e5.isArray(a5, l5, n6) ? s5[a5] = [t6] : s5[a5] = t6;
139901
139909
  }
139902
139910
  }
139903
139911
  }
139904
139912
  return "string" == typeof i5 ? i5.length > 0 && (s5[e5.textNodeName] = i5) : void 0 !== i5 && (s5[e5.textNodeName] = i5), s5;
139905
139913
  }
139906
- function tt(t5) {
139914
+ function et(t5) {
139907
139915
  const e5 = Object.keys(t5);
139908
139916
  for (let t6 = 0; t6 < e5.length; t6++) {
139909
139917
  const n5 = e5[t6];
139910
139918
  if (":@" !== n5) return n5;
139911
139919
  }
139912
139920
  }
139913
- function et(t5, e5, n5, i5) {
139921
+ function nt(t5, e5, n5, i5) {
139914
139922
  if (e5) {
139915
139923
  const s5 = Object.keys(e5), r5 = s5.length;
139916
139924
  for (let o5 = 0; o5 < r5; o5++) {
@@ -139919,13 +139927,13 @@ var require_fxp = __commonJS({
139919
139927
  }
139920
139928
  }
139921
139929
  }
139922
- function nt(t5, e5) {
139930
+ function it(t5, e5) {
139923
139931
  const { textNodeName: n5 } = e5, i5 = Object.keys(t5).length;
139924
139932
  return 0 === i5 || !(1 !== i5 || !t5[n5] && "boolean" != typeof t5[n5] && 0 !== t5[n5]);
139925
139933
  }
139926
- class it {
139934
+ class st {
139927
139935
  constructor(t5) {
139928
- this.externalEntities = {}, this.options = w5(t5);
139936
+ this.externalEntities = {}, this.options = v8(t5);
139929
139937
  }
139930
139938
  parse(t5, e5) {
139931
139939
  if ("string" != typeof t5 && t5.toString) t5 = t5.toString();
@@ -139938,7 +139946,7 @@ var require_fxp = __commonJS({
139938
139946
  const n5 = new F3(this.options);
139939
139947
  n5.addExternalEntities(this.externalEntities);
139940
139948
  const i5 = n5.parseXml(t5);
139941
- return this.options.preserveOrder || void 0 === i5 ? i5 : J3(i5, this.options);
139949
+ return this.options.preserveOrder || void 0 === i5 ? i5 : H2(i5, this.options);
139942
139950
  }
139943
139951
  addEntity(t5, e5) {
139944
139952
  if (-1 !== e5.indexOf("&")) throw new Error("Entity value can't have '&'");
@@ -139950,19 +139958,26 @@ var require_fxp = __commonJS({
139950
139958
  return I3.getMetaDataSymbol();
139951
139959
  }
139952
139960
  }
139953
- function st(t5, e5) {
139961
+ function rt(t5, e5) {
139954
139962
  let n5 = "";
139955
- return e5.format && e5.indentBy.length > 0 && (n5 = "\n"), rt(t5, e5, "", n5);
139963
+ return e5.format && e5.indentBy.length > 0 && (n5 = "\n"), ot(t5, e5, "", n5);
139956
139964
  }
139957
- function rt(t5, e5, n5, i5) {
139965
+ function ot(t5, e5, n5, i5) {
139958
139966
  let s5 = "", r5 = false;
139967
+ if (!Array.isArray(t5)) {
139968
+ if (null != t5) {
139969
+ let n6 = t5.toString();
139970
+ return n6 = dt(n6, e5), n6;
139971
+ }
139972
+ return "";
139973
+ }
139959
139974
  for (let o5 = 0; o5 < t5.length; o5++) {
139960
- const a5 = t5[o5], l5 = ot(a5);
139975
+ const a5 = t5[o5], l5 = at(a5);
139961
139976
  if (void 0 === l5) continue;
139962
139977
  let u7 = "";
139963
139978
  if (u7 = 0 === n5.length ? l5 : `${n5}.${l5}`, l5 === e5.textNodeName) {
139964
139979
  let t6 = a5[l5];
139965
- lt(u7, e5) || (t6 = e5.tagValueProcessor(l5, t6), t6 = ut(t6, e5)), r5 && (s5 += i5), s5 += t6, r5 = false;
139980
+ ut(u7, e5) || (t6 = e5.tagValueProcessor(l5, t6), t6 = dt(t6, e5)), r5 && (s5 += i5), s5 += t6, r5 = false;
139966
139981
  continue;
139967
139982
  }
139968
139983
  if (l5 === e5.cdataPropName) {
@@ -139974,40 +139989,40 @@ var require_fxp = __commonJS({
139974
139989
  continue;
139975
139990
  }
139976
139991
  if ("?" === l5[0]) {
139977
- const t6 = at(a5[":@"], e5), n6 = "?xml" === l5 ? "" : i5;
139992
+ const t6 = lt(a5[":@"], e5), n6 = "?xml" === l5 ? "" : i5;
139978
139993
  let o6 = a5[l5][0][e5.textNodeName];
139979
139994
  o6 = 0 !== o6.length ? " " + o6 : "", s5 += n6 + `<${l5}${o6}${t6}?>`, r5 = true;
139980
139995
  continue;
139981
139996
  }
139982
- let h5 = i5;
139983
- "" !== h5 && (h5 += e5.indentBy);
139984
- const d6 = i5 + `<${l5}${at(a5[":@"], e5)}`, p5 = rt(a5[l5], e5, u7, h5);
139985
- -1 !== e5.unpairedTags.indexOf(l5) ? e5.suppressUnpairedNode ? s5 += d6 + ">" : s5 += d6 + "/>" : p5 && 0 !== p5.length || !e5.suppressEmptyNode ? p5 && p5.endsWith(">") ? s5 += d6 + `>${p5}${i5}</${l5}>` : (s5 += d6 + ">", p5 && "" !== i5 && (p5.includes("/>") || p5.includes("</")) ? s5 += i5 + e5.indentBy + p5 + i5 : s5 += p5, s5 += `</${l5}>`) : s5 += d6 + "/>", r5 = true;
139997
+ let d6 = i5;
139998
+ "" !== d6 && (d6 += e5.indentBy);
139999
+ const h5 = i5 + `<${l5}${lt(a5[":@"], e5)}`, p5 = ot(a5[l5], e5, u7, d6);
140000
+ -1 !== e5.unpairedTags.indexOf(l5) ? e5.suppressUnpairedNode ? s5 += h5 + ">" : s5 += h5 + "/>" : p5 && 0 !== p5.length || !e5.suppressEmptyNode ? p5 && p5.endsWith(">") ? s5 += h5 + `>${p5}${i5}</${l5}>` : (s5 += h5 + ">", p5 && "" !== i5 && (p5.includes("/>") || p5.includes("</")) ? s5 += i5 + e5.indentBy + p5 + i5 : s5 += p5, s5 += `</${l5}>`) : s5 += h5 + "/>", r5 = true;
139986
140001
  }
139987
140002
  return s5;
139988
140003
  }
139989
- function ot(t5) {
140004
+ function at(t5) {
139990
140005
  const e5 = Object.keys(t5);
139991
140006
  for (let n5 = 0; n5 < e5.length; n5++) {
139992
140007
  const i5 = e5[n5];
139993
- if (t5.hasOwnProperty(i5) && ":@" !== i5) return i5;
140008
+ if (Object.prototype.hasOwnProperty.call(t5, i5) && ":@" !== i5) return i5;
139994
140009
  }
139995
140010
  }
139996
- function at(t5, e5) {
140011
+ function lt(t5, e5) {
139997
140012
  let n5 = "";
139998
140013
  if (t5 && !e5.ignoreAttributes) for (let i5 in t5) {
139999
- if (!t5.hasOwnProperty(i5)) continue;
140014
+ if (!Object.prototype.hasOwnProperty.call(t5, i5)) continue;
140000
140015
  let s5 = e5.attributeValueProcessor(i5, t5[i5]);
140001
- s5 = ut(s5, e5), true === s5 && e5.suppressBooleanAttributes ? n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}` : n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}="${s5}"`;
140016
+ s5 = dt(s5, e5), true === s5 && e5.suppressBooleanAttributes ? n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}` : n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}="${s5}"`;
140002
140017
  }
140003
140018
  return n5;
140004
140019
  }
140005
- function lt(t5, e5) {
140020
+ function ut(t5, e5) {
140006
140021
  let n5 = (t5 = t5.substr(0, t5.length - e5.textNodeName.length - 1)).substr(t5.lastIndexOf(".") + 1);
140007
140022
  for (let i5 in e5.stopNodes) if (e5.stopNodes[i5] === t5 || e5.stopNodes[i5] === "*." + n5) return true;
140008
140023
  return false;
140009
140024
  }
140010
- function ut(t5, e5) {
140025
+ function dt(t5, e5) {
140011
140026
  if (t5 && t5.length > 0 && e5.processEntities) for (let n5 = 0; n5 < e5.entities.length; n5++) {
140012
140027
  const i5 = e5.entities[n5];
140013
140028
  t5 = t5.replace(i5.regex, i5.val);
@@ -140019,26 +140034,26 @@ var require_fxp = __commonJS({
140019
140034
  }, attributeValueProcessor: function(t5, e5) {
140020
140035
  return e5;
140021
140036
  }, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false };
140022
- function dt(t5) {
140037
+ function pt(t5) {
140023
140038
  this.options = Object.assign({}, ht, t5), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
140024
140039
  return false;
140025
- } : (this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ct), this.processTextOrObjNode = pt, this.options.format ? (this.indentate = ft, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
140040
+ } : (this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = gt), this.processTextOrObjNode = ct, this.options.format ? (this.indentate = ft, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
140026
140041
  return "";
140027
140042
  }, this.tagEndChar = ">", this.newLine = "");
140028
140043
  }
140029
- function pt(t5, e5, n5, i5) {
140044
+ function ct(t5, e5, n5, i5) {
140030
140045
  const s5 = this.j2x(t5, n5 + 1, i5.concat(e5));
140031
140046
  return void 0 !== t5[this.options.textNodeName] && 1 === Object.keys(t5).length ? this.buildTextValNode(t5[this.options.textNodeName], e5, s5.attrStr, n5) : this.buildObjectNode(s5.val, e5, s5.attrStr, n5);
140032
140047
  }
140033
140048
  function ft(t5) {
140034
140049
  return this.options.indentBy.repeat(t5);
140035
140050
  }
140036
- function ct(t5) {
140051
+ function gt(t5) {
140037
140052
  return !(!t5.startsWith(this.options.attributeNamePrefix) || t5 === this.options.textNodeName) && t5.substr(this.attrPrefixLen);
140038
140053
  }
140039
- dt.prototype.build = function(t5) {
140040
- return this.options.preserveOrder ? st(t5, this.options) : (Array.isArray(t5) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t5 = { [this.options.arrayNodeName]: t5 }), this.j2x(t5, 0, []).val);
140041
- }, dt.prototype.j2x = function(t5, e5, n5) {
140054
+ pt.prototype.build = function(t5) {
140055
+ return this.options.preserveOrder ? rt(t5, this.options) : (Array.isArray(t5) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t5 = { [this.options.arrayNodeName]: t5 }), this.j2x(t5, 0, []).val);
140056
+ }, pt.prototype.j2x = function(t5, e5, n5) {
140042
140057
  let i5 = "", s5 = "";
140043
140058
  const r5 = n5.join(".");
140044
140059
  for (let o5 in t5) if (Object.prototype.hasOwnProperty.call(t5, o5)) if (void 0 === t5[o5]) this.isAttribute(o5) && (s5 += "");
@@ -140073,18 +140088,18 @@ var require_fxp = __commonJS({
140073
140088
  for (let s6 = 0; s6 < n6; s6++) i5 += this.buildAttrPairStr(e6[s6], "" + t5[o5][e6[s6]]);
140074
140089
  } else s5 += this.processTextOrObjNode(t5[o5], o5, e5, n5);
140075
140090
  return { attrStr: i5, val: s5 };
140076
- }, dt.prototype.buildAttrPairStr = function(t5, e5) {
140091
+ }, pt.prototype.buildAttrPairStr = function(t5, e5) {
140077
140092
  return e5 = this.options.attributeValueProcessor(t5, "" + e5), e5 = this.replaceEntitiesValue(e5), this.options.suppressBooleanAttributes && "true" === e5 ? " " + t5 : " " + t5 + '="' + e5 + '"';
140078
- }, dt.prototype.buildObjectNode = function(t5, e5, n5, i5) {
140093
+ }, pt.prototype.buildObjectNode = function(t5, e5, n5, i5) {
140079
140094
  if ("" === t5) return "?" === e5[0] ? this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar : this.indentate(i5) + "<" + e5 + n5 + this.closeTag(e5) + this.tagEndChar;
140080
140095
  {
140081
140096
  let s5 = "</" + e5 + this.tagEndChar, r5 = "";
140082
140097
  return "?" === e5[0] && (r5 = "?", s5 = ""), !n5 && "" !== n5 || -1 !== t5.indexOf("<") ? false !== this.options.commentPropName && e5 === this.options.commentPropName && 0 === r5.length ? this.indentate(i5) + `<!--${t5}-->` + this.newLine : this.indentate(i5) + "<" + e5 + n5 + r5 + this.tagEndChar + t5 + this.indentate(i5) + s5 : this.indentate(i5) + "<" + e5 + n5 + r5 + ">" + t5 + s5;
140083
140098
  }
140084
- }, dt.prototype.closeTag = function(t5) {
140099
+ }, pt.prototype.closeTag = function(t5) {
140085
140100
  let e5 = "";
140086
140101
  return -1 !== this.options.unpairedTags.indexOf(t5) ? this.options.suppressUnpairedNode || (e5 = "/") : e5 = this.options.suppressEmptyNode ? "/" : `></${t5}`, e5;
140087
- }, dt.prototype.buildTextValNode = function(t5, e5, n5, i5) {
140102
+ }, pt.prototype.buildTextValNode = function(t5, e5, n5, i5) {
140088
140103
  if (false !== this.options.cdataPropName && e5 === this.options.cdataPropName) return this.indentate(i5) + `<![CDATA[${t5}]]>` + this.newLine;
140089
140104
  if (false !== this.options.commentPropName && e5 === this.options.commentPropName) return this.indentate(i5) + `<!--${t5}-->` + this.newLine;
140090
140105
  if ("?" === e5[0]) return this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar;
@@ -140092,14 +140107,14 @@ var require_fxp = __commonJS({
140092
140107
  let s5 = this.options.tagValueProcessor(e5, t5);
140093
140108
  return s5 = this.replaceEntitiesValue(s5), "" === s5 ? this.indentate(i5) + "<" + e5 + n5 + this.closeTag(e5) + this.tagEndChar : this.indentate(i5) + "<" + e5 + n5 + ">" + s5 + "</" + e5 + this.tagEndChar;
140094
140109
  }
140095
- }, dt.prototype.replaceEntitiesValue = function(t5) {
140110
+ }, pt.prototype.replaceEntitiesValue = function(t5) {
140096
140111
  if (t5 && t5.length > 0 && this.options.processEntities) for (let e5 = 0; e5 < this.options.entities.length; e5++) {
140097
140112
  const n5 = this.options.entities[e5];
140098
140113
  t5 = t5.replace(n5.regex, n5.val);
140099
140114
  }
140100
140115
  return t5;
140101
140116
  };
140102
- const gt = { validate: a4 };
140117
+ const xt = { validate: a4 };
140103
140118
  module2.exports = e4;
140104
140119
  })();
140105
140120
  }
@@ -160172,7 +160187,7 @@ var require_package6 = __commonJS({
160172
160187
  "package.json"(exports2, module2) {
160173
160188
  module2.exports = {
160174
160189
  name: "@sentry/craft",
160175
- version: "2.23.0",
160190
+ version: "2.23.1",
160176
160191
  description: "The universal sentry workflow CLI",
160177
160192
  main: "dist/craft",
160178
160193
  repository: "https://github.com/getsentry/craft",
@@ -160339,7 +160354,7 @@ function getPackage() {
160339
160354
  }
160340
160355
  function getPackageVersion() {
160341
160356
  const { version: version2 } = getPackage();
160342
- const buildInfo = "ce288193e2ac7976b0ffd1d5733527605e6fd63b";
160357
+ const buildInfo = "d4cfac9d25d1fc72c9241e5d22aff559a114e4e9";
160343
160358
  return buildInfo ? `${version2} (${buildInfo})` : version2;
160344
160359
  }
160345
160360
  function semVerToString(s4) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/craft",
3
- "version": "2.23.0",
3
+ "version": "2.23.1",
4
4
  "description": "The universal sentry workflow CLI",
5
5
  "main": "dist/craft",
6
6
  "repository": "https://github.com/getsentry/craft",