@sentry/craft 2.22.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 +388 -286
  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,
@@ -125785,24 +125789,37 @@ var init_workspaces = __esm({
125785
125789
  });
125786
125790
 
125787
125791
  // src/targets/npm.ts
125792
+ function isOidcEnvironment() {
125793
+ return !!(process.env.ACTIONS_ID_TOKEN_REQUEST_URL && process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN || process.env.NPM_ID_TOKEN);
125794
+ }
125788
125795
  async function getLatestVersion(packageName, npmConfig, otp) {
125789
125796
  const args = ["info", packageName, "version"];
125790
125797
  const bin = NPM_BIN;
125791
125798
  try {
125792
- const response = await withTempFile((filePath) => {
125799
+ let response;
125800
+ if (npmConfig.token) {
125801
+ response = await withTempFile((filePath) => {
125802
+ const spawnOptions = {};
125803
+ spawnOptions.env = { ...process.env };
125804
+ if (otp) {
125805
+ spawnOptions.env.NPM_CONFIG_OTP = otp;
125806
+ }
125807
+ spawnOptions.env[NPM_TOKEN_ENV_VAR] = npmConfig.token;
125808
+ spawnOptions.env.npm_config_userconfig = filePath;
125809
+ (0, import_fs14.writeFileSync)(
125810
+ filePath,
125811
+ `//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
125812
+ );
125813
+ return spawnProcess(bin, args, spawnOptions);
125814
+ });
125815
+ } else {
125793
125816
  const spawnOptions = {};
125794
125817
  spawnOptions.env = { ...process.env };
125795
125818
  if (otp) {
125796
125819
  spawnOptions.env.NPM_CONFIG_OTP = otp;
125797
125820
  }
125798
- spawnOptions.env[NPM_TOKEN_ENV_VAR] = npmConfig.token;
125799
- spawnOptions.env.npm_config_userconfig = filePath;
125800
- (0, import_fs14.writeFileSync)(
125801
- filePath,
125802
- `//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
125803
- );
125804
- return spawnProcess(bin, args, spawnOptions);
125805
- });
125821
+ response = await spawnProcess(bin, args, spawnOptions);
125822
+ }
125806
125823
  if (!response) {
125807
125824
  return void 0;
125808
125825
  }
@@ -125842,7 +125859,7 @@ async function getPublishTag(version2, checkPackageName, npmConfig, logger3, otp
125842
125859
  }
125843
125860
  return void 0;
125844
125861
  }
125845
- var import_child_process3, import_fs13, import_path12, import_prompts2, import_fs14, NPM_CONFIG, YARN_CONFIG, NPM_BIN, YARN_BIN, NPM_MIN_MAJOR, NPM_MIN_MINOR, NPM_TOKEN_ENV_VAR, DEFAULT_PACKAGE_REGEX, NpmPackageAccess, NpmTarget;
125862
+ var import_child_process3, import_fs13, import_path12, import_prompts2, import_fs14, NPM_CONFIG, YARN_CONFIG, NPM_BIN, YARN_BIN, NPM_MIN_MAJOR, NPM_MIN_MINOR, NPM_OIDC_MIN_VERSION, NPM_TOKEN_ENV_VAR, DEFAULT_PACKAGE_REGEX, NpmPackageAccess, NpmTarget;
125846
125863
  var init_npm = __esm({
125847
125864
  "src/targets/npm.ts"() {
125848
125865
  "use strict";
@@ -125867,6 +125884,7 @@ var init_npm = __esm({
125867
125884
  YARN_BIN = process.env.YARN_BIN || "yarn";
125868
125885
  NPM_MIN_MAJOR = 5;
125869
125886
  NPM_MIN_MINOR = 6;
125887
+ NPM_OIDC_MIN_VERSION = { major: 11, minor: 5, patch: 1 };
125870
125888
  NPM_TOKEN_ENV_VAR = "NPM_TOKEN";
125871
125889
  DEFAULT_PACKAGE_REGEX = /^.*\d\.\d.*\.tgz$/;
125872
125890
  NpmPackageAccess = /* @__PURE__ */ ((NpmPackageAccess2) => {
@@ -125879,6 +125897,8 @@ var init_npm = __esm({
125879
125897
  name = "npm";
125880
125898
  /** Target options */
125881
125899
  npmConfig;
125900
+ /** Parsed npm version, set during checkRequirements() */
125901
+ npmVersion = null;
125882
125902
  /**
125883
125903
  * Expand an npm target config into multiple targets if workspaces is enabled.
125884
125904
  * This static method is called during config loading to expand workspace targets.
@@ -125968,6 +125988,9 @@ var init_npm = __esm({
125968
125988
  if (config3.checkPackageName) {
125969
125989
  expandedTarget.checkPackageName = config3.checkPackageName;
125970
125990
  }
125991
+ if (config3.oidc) {
125992
+ expandedTarget.oidc = config3.oidc;
125993
+ }
125971
125994
  return expandedTarget;
125972
125995
  });
125973
125996
  }
@@ -126061,26 +126084,34 @@ var init_npm = __esm({
126061
126084
  this.npmConfig = this.getNpmConfig();
126062
126085
  }
126063
126086
  /**
126064
- * Check that NPM executable exists and is not too old
126087
+ * Check that NPM executable exists and is not too old.
126088
+ * Stores the parsed npm version for later OIDC version validation in getNpmConfig().
126065
126089
  */
126066
126090
  checkRequirements() {
126091
+ const config3 = this.config;
126067
126092
  if (hasExecutable(NPM_BIN)) {
126068
126093
  this.logger.debug("Checking that NPM has recent version...");
126069
- const npmVersion = (0, import_child_process3.spawnSync)(NPM_BIN, ["--version"]).stdout.toString().trim();
126070
- const parsedVersion = parseVersion(npmVersion);
126094
+ const npmVersionStr = (0, import_child_process3.spawnSync)(NPM_BIN, ["--version"]).stdout.toString().trim();
126095
+ const parsedVersion = parseVersion(npmVersionStr);
126071
126096
  if (!parsedVersion) {
126072
- reportError(`Cannot parse NPM version: "${npmVersion}"`);
126097
+ reportError(`Cannot parse NPM version: "${npmVersionStr}"`);
126073
126098
  }
126074
- const { major: major2, minor } = parsedVersion || { major: 0, minor: 0 };
126099
+ const { major: major2 = 0, minor = 0 } = parsedVersion ?? {};
126075
126100
  if (major2 < NPM_MIN_MAJOR || major2 === NPM_MIN_MAJOR && minor < NPM_MIN_MINOR) {
126076
126101
  reportError(
126077
- `NPM version is too old: ${npmVersion}. Please update your NodeJS`
126102
+ `NPM version is too old: ${npmVersionStr}. Please update your NodeJS`
126078
126103
  );
126079
126104
  }
126080
- this.logger.debug(`Found NPM version ${npmVersion}`);
126105
+ this.npmVersion = parsedVersion;
126106
+ this.logger.debug(`Found NPM version ${npmVersionStr}`);
126081
126107
  } else if (hasExecutable(YARN_BIN)) {
126082
126108
  const yarnVersion = (0, import_child_process3.spawnSync)(YARN_BIN, ["--version"]).stdout.toString().trim();
126083
126109
  this.logger.debug(`Found Yarn version ${yarnVersion}`);
126110
+ if (config3.oidc) {
126111
+ throw new ConfigurationError(
126112
+ "npm target: OIDC trusted publishing requires npm, but only yarn was found. Install npm >= 11.5.1 to use OIDC."
126113
+ );
126114
+ }
126084
126115
  } else {
126085
126116
  reportError('No "npm" or "yarn" found!');
126086
126117
  }
@@ -126098,17 +126129,69 @@ var init_npm = __esm({
126098
126129
  return otp;
126099
126130
  }
126100
126131
  /**
126101
- * Extracts NPM target options from the raw configuration
126132
+ * Extracts NPM target options from the raw configuration.
126133
+ *
126134
+ * Auth strategy decision table:
126135
+ *
126136
+ * | oidc config | NPM_TOKEN set | OIDC env detected | Result |
126137
+ * |-------------|---------------|-------------------|---------------------|
126138
+ * | true | any | any | Force OIDC |
126139
+ * | unset/false | yes | any | Token auth |
126140
+ * | unset/false | no | yes | Auto-detect OIDC |
126141
+ * | unset/false | no | no | Error (no auth) |
126102
126142
  */
126103
126143
  getNpmConfig() {
126144
+ const config3 = this.config;
126104
126145
  const token = process.env.NPM_TOKEN;
126105
- if (!token) {
126106
- throw new Error("NPM target: NPM_TOKEN not found in the environment");
126146
+ const oidcEnv = isOidcEnvironment();
126147
+ let useOidc = false;
126148
+ if (config3.oidc) {
126149
+ if (!this.npmVersion) {
126150
+ throw new ConfigurationError(
126151
+ "npm target: OIDC trusted publishing requires npm, but only yarn was found. Install npm >= 11.5.1 to use OIDC."
126152
+ );
126153
+ }
126154
+ const { major: major2, minor, patch } = this.npmVersion;
126155
+ if (!versionGreaterOrEqualThan(this.npmVersion, NPM_OIDC_MIN_VERSION)) {
126156
+ const {
126157
+ major: minMaj,
126158
+ minor: minMin,
126159
+ patch: minPat
126160
+ } = NPM_OIDC_MIN_VERSION;
126161
+ throw new ConfigurationError(
126162
+ `npm target: OIDC trusted publishing requires npm >= ${minMaj}.${minMin}.${minPat}, but found ${major2}.${minor}.${patch}. Update npm (or Node.js) to use OIDC.`
126163
+ );
126164
+ }
126165
+ useOidc = true;
126166
+ } else if (!token) {
126167
+ if (oidcEnv) {
126168
+ if (this.npmVersion) {
126169
+ if (versionGreaterOrEqualThan(this.npmVersion, NPM_OIDC_MIN_VERSION)) {
126170
+ this.logger.info(
126171
+ "NPM_TOKEN not set but OIDC environment detected \u2014 using trusted publishing."
126172
+ );
126173
+ useOidc = true;
126174
+ } else {
126175
+ const { major: major2, minor, patch } = this.npmVersion;
126176
+ const {
126177
+ major: minMaj,
126178
+ minor: minMin,
126179
+ patch: minPat
126180
+ } = NPM_OIDC_MIN_VERSION;
126181
+ this.logger.warn(
126182
+ `OIDC environment detected but npm ${major2}.${minor}.${patch} is too old for trusted publishing (requires >= ${minMaj}.${minMin}.${minPat}). Falling through to token-based auth.`
126183
+ );
126184
+ }
126185
+ }
126186
+ }
126187
+ if (!useOidc) {
126188
+ throw new Error("NPM target: NPM_TOKEN not found in the environment");
126189
+ }
126107
126190
  }
126108
- const config3 = this.config;
126109
126191
  const npmConfig = {
126110
- useYarn: !!process.env.USE_YARN || !hasExecutable(NPM_BIN),
126111
- token
126192
+ useYarn: !useOidc && (!!process.env.USE_YARN || !hasExecutable(NPM_BIN)),
126193
+ token: token || void 0,
126194
+ useOidc
126112
126195
  };
126113
126196
  if (config3.access) {
126114
126197
  if (Object.values(NpmPackageAccess).includes(config3.access)) {
@@ -126147,6 +126230,15 @@ var init_npm = __esm({
126147
126230
  if (options.tag) {
126148
126231
  args.push(`--tag=${options.tag}`);
126149
126232
  }
126233
+ args.push(path26);
126234
+ if (this.npmConfig.useOidc) {
126235
+ const spawnOptions = {};
126236
+ spawnOptions.env = { ...process.env };
126237
+ if (options.otp) {
126238
+ spawnOptions.env.NPM_CONFIG_OTP = options.otp;
126239
+ }
126240
+ return spawnProcess(bin, args, spawnOptions, { showStdout: true });
126241
+ }
126150
126242
  return withTempFile((filePath) => {
126151
126243
  const spawnOptions = {};
126152
126244
  spawnOptions.env = { ...process.env };
@@ -126159,7 +126251,6 @@ var init_npm = __esm({
126159
126251
  filePath,
126160
126252
  `//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
126161
126253
  );
126162
- args.push(path26);
126163
126254
  return spawnProcess(bin, args, spawnOptions, {
126164
126255
  showStdout: true
126165
126256
  });
@@ -139161,9 +139252,9 @@ var init_awsExpectUnion = __esm({
139161
139252
  }
139162
139253
  });
139163
139254
 
139164
- // 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
139165
139256
  var require_fxp = __commonJS({
139166
- "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) {
139167
139258
  init_import_meta_url();
139168
139259
  (() => {
139169
139260
  "use strict";
@@ -139172,7 +139263,7 @@ var require_fxp = __commonJS({
139172
139263
  }, o: (t5, e5) => Object.prototype.hasOwnProperty.call(t5, e5), r: (t5) => {
139173
139264
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t5, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t5, "__esModule", { value: true });
139174
139265
  } }, e4 = {};
139175
- 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 });
139176
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]*$");
139177
139268
  function s4(t5, e5) {
139178
139269
  const n5 = [];
@@ -139194,90 +139285,90 @@ var require_fxp = __commonJS({
139194
139285
  const n5 = [];
139195
139286
  let i5 = false, s5 = false;
139196
139287
  "\uFEFF" === t5[0] && (t5 = t5.substr(1));
139197
- for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5] && "?" === t5[o5 + 1]) {
139198
- 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;
139199
139290
  } else {
139200
- if ("<" !== t5[o5]) {
139201
- if (l4(t5[o5])) continue;
139202
- 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));
139203
139294
  }
139204
139295
  {
139205
- let a5 = o5;
139206
- if (o5++, "!" === t5[o5]) {
139207
- o5 = h4(t5, o5);
139296
+ let o5 = r5;
139297
+ if (r5++, "!" === t5[r5]) {
139298
+ r5 = d5(t5, r5);
139208
139299
  continue;
139209
139300
  }
139210
139301
  {
139211
- let d6 = false;
139212
- "/" === t5[o5] && (d6 = true, o5++);
139213
- let p5 = "";
139214
- for (; o5 < t5.length && ">" !== t5[o5] && " " !== t5[o5] && " " !== t5[o5] && "\n" !== t5[o5] && "\r" !== t5[o5]; o5++) p5 += t5[o5];
139215
- 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)) {
139216
139307
  let e6;
139217
- 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));
139218
139309
  }
139219
- const c5 = f4(t5, o5);
139220
- if (false === c5) return m5("InvalidAttr", "Attributes for '" + p5 + "' have open quote.", b5(t5, o5));
139221
- let E4 = c5.value;
139222
- if (o5 = c5.index, "/" === E4[E4.length - 1]) {
139223
- const n6 = o5 - E4.length;
139224
- E4 = E4.substring(0, E4.length - 1);
139225
- const s6 = g4(E4, e5);
139226
- 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));
139227
139318
  i5 = true;
139228
- } else if (d6) {
139229
- if (!c5.tagClosed) return m5("InvalidTag", "Closing tag '" + p5 + "' doesn't have proper closing.", b5(t5, o5));
139230
- if (E4.trim().length > 0) return m5("InvalidTag", "Closing tag '" + p5 + "' can't have attributes or invalid starting.", b5(t5, a5));
139231
- 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));
139232
139323
  {
139233
139324
  const e6 = n5.pop();
139234
- if (p5 !== e6.tagName) {
139235
- let n6 = b5(t5, e6.tagStartPos);
139236
- 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));
139237
139328
  }
139238
139329
  0 == n5.length && (s5 = true);
139239
139330
  }
139240
139331
  } else {
139241
- const r5 = g4(E4, e5);
139242
- if (true !== r5) return m5(r5.err.code, r5.err.msg, b5(t5, o5 - E4.length + r5.err.line));
139243
- if (true === s5) return m5("InvalidXml", "Multiple possible root nodes found.", b5(t5, o5));
139244
- -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;
139245
139336
  }
139246
- for (o5++; o5 < t5.length; o5++) if ("<" === t5[o5]) {
139247
- if ("!" === t5[o5 + 1]) {
139248
- 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);
139249
139340
  continue;
139250
139341
  }
139251
- if ("?" !== t5[o5 + 1]) break;
139252
- if (o5 = u6(t5, ++o5), o5.err) return o5;
139253
- } else if ("&" === t5[o5]) {
139254
- const e6 = x5(t5, o5);
139255
- if (-1 == e6) return m5("InvalidChar", "char '&' is not expected.", b5(t5, o5));
139256
- o5 = e6;
139257
- } else if (true === s5 && !l4(t5[o5])) return m5("InvalidXml", "Extra text at the end", b5(t5, o5));
139258
- "<" === 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--;
139259
139350
  }
139260
139351
  }
139261
139352
  }
139262
- 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);
139263
139354
  }
139264
139355
  function l4(t5) {
139265
139356
  return " " === t5 || " " === t5 || "\n" === t5 || "\r" === t5;
139266
139357
  }
139267
139358
  function u6(t5, e5) {
139268
139359
  const n5 = e5;
139269
- for (; e5 < t5.length; e5++) if ("?" != t5[e5] && " " != t5[e5]) ;
139270
- else {
139360
+ for (; e5 < t5.length; e5++) if ("?" == t5[e5] || " " == t5[e5]) {
139271
139361
  const i5 = t5.substr(n5, e5 - n5);
139272
- 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));
139273
139363
  if ("?" == t5[e5] && ">" == t5[e5 + 1]) {
139274
139364
  e5++;
139275
139365
  break;
139276
139366
  }
139367
+ continue;
139277
139368
  }
139278
139369
  return e5;
139279
139370
  }
139280
- function h4(t5, e5) {
139371
+ function d5(t5, e5) {
139281
139372
  if (t5.length > e5 + 5 && "-" === t5[e5 + 1] && "-" === t5[e5 + 2]) {
139282
139373
  for (e5 += 3; e5 < t5.length; e5++) if ("-" === t5[e5] && "-" === t5[e5 + 1] && ">" === t5[e5 + 2]) {
139283
139374
  e5 += 2;
@@ -139295,11 +139386,11 @@ var require_fxp = __commonJS({
139295
139386
  }
139296
139387
  return e5;
139297
139388
  }
139298
- const d5 = '"', p4 = "'";
139299
- function f4(t5, e5) {
139389
+ const h4 = '"', p4 = "'";
139390
+ function c4(t5, e5) {
139300
139391
  let n5 = "", i5 = "", s5 = false;
139301
139392
  for (; e5 < t5.length; e5++) {
139302
- 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 = "");
139303
139394
  else if (">" === t5[e5] && "" === i5) {
139304
139395
  s5 = true;
139305
139396
  break;
@@ -139308,16 +139399,16 @@ var require_fxp = __commonJS({
139308
139399
  }
139309
139400
  return "" === i5 && { value: n5, index: e5, tagClosed: s5 };
139310
139401
  }
139311
- 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");
139312
139403
  function g4(t5, e5) {
139313
- const n5 = s4(t5, c4), i5 = {};
139404
+ const n5 = s4(t5, f4), i5 = {};
139314
139405
  for (let t6 = 0; t6 < n5.length; t6++) {
139315
- if (0 === n5[t6][1].length) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' has no space in starting.", N2(n5[t6]));
139316
- if (void 0 !== n5[t6][3] && void 0 === n5[t6][4]) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' is without value.", N2(n5[t6]));
139317
- 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]));
139318
139409
  const s5 = n5[t6][2];
139319
- if (!E3(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is an invalid name.", N2(n5[t6]));
139320
- 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]));
139321
139412
  i5[s5] = 1;
139322
139413
  }
139323
139414
  return true;
@@ -139345,49 +139436,52 @@ var require_fxp = __commonJS({
139345
139436
  function E3(t5) {
139346
139437
  return r4(t5);
139347
139438
  }
139348
- function b5(t5, e5) {
139439
+ function b5(t5) {
139440
+ return r4(t5);
139441
+ }
139442
+ function N2(t5, e5) {
139349
139443
  const n5 = t5.substring(0, e5).split(/\r?\n/);
139350
139444
  return { line: n5.length, col: n5[n5.length - 1].length + 1 };
139351
139445
  }
139352
- function N2(t5) {
139446
+ function y3(t5) {
139353
139447
  return t5.startIndex + t5[1].length;
139354
139448
  }
139355
- 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) {
139356
139450
  return e5;
139357
139451
  }, attributeValueProcessor: function(t5, e5) {
139358
139452
  return e5;
139359
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) {
139360
139454
  return t5;
139361
- }, captureMetaData: false };
139362
- function T2(t5) {
139363
- 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);
139364
139458
  }
139365
- const w5 = function(t5) {
139366
- const e5 = Object.assign({}, y3, t5);
139367
- 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;
139368
139462
  };
139369
- let v8;
139370
- v8 = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
139463
+ let O;
139464
+ O = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
139371
139465
  class I3 {
139372
139466
  constructor(t5) {
139373
- this.tagname = t5, this.child = [], this[":@"] = {};
139467
+ this.tagname = t5, this.child = [], this[":@"] = /* @__PURE__ */ Object.create(null);
139374
139468
  }
139375
139469
  add(t5, e5) {
139376
139470
  "__proto__" === t5 && (t5 = "#__proto__"), this.child.push({ [t5]: e5 });
139377
139471
  }
139378
139472
  addChild(t5, e5) {
139379
- "__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 });
139380
139474
  }
139381
139475
  static getMetaDataSymbol() {
139382
- return v8;
139476
+ return O;
139383
139477
  }
139384
139478
  }
139385
- class O {
139479
+ class P2 {
139386
139480
  constructor(t5) {
139387
139481
  this.suppressValidationErr = !t5, this.options = t5;
139388
139482
  }
139389
139483
  readDocType(t5, e5) {
139390
- const n5 = {};
139484
+ const n5 = /* @__PURE__ */ Object.create(null);
139391
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");
139392
139486
  {
139393
139487
  e5 += 9;
@@ -139396,23 +139490,23 @@ var require_fxp = __commonJS({
139396
139490
  if (r5 ? "-" === t5[e5 - 1] && "-" === t5[e5 - 2] && (r5 = false, i5--) : i5--, 0 === i5) break;
139397
139491
  } else "[" === t5[e5] ? s5 = true : o5 += t5[e5];
139398
139492
  else {
139399
- if (s5 && A2(t5, "!ENTITY", e5)) {
139493
+ if (s5 && S2(t5, "!ENTITY", e5)) {
139400
139494
  let i6, s6;
139401
139495
  if (e5 += 7, [i6, s6, e5] = this.readEntityExp(t5, e5 + 1, this.suppressValidationErr), -1 === s6.indexOf("&")) {
139402
139496
  const t6 = i6.replace(/[.\-+*:]/g, "\\.");
139403
139497
  n5[i6] = { regx: RegExp(`&${t6};`, "g"), val: s6 };
139404
139498
  }
139405
- } else if (s5 && A2(t5, "!ELEMENT", e5)) {
139499
+ } else if (s5 && S2(t5, "!ELEMENT", e5)) {
139406
139500
  e5 += 8;
139407
139501
  const { index: n6 } = this.readElementExp(t5, e5 + 1);
139408
139502
  e5 = n6;
139409
- } else if (s5 && A2(t5, "!ATTLIST", e5)) e5 += 8;
139410
- 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)) {
139411
139505
  e5 += 9;
139412
139506
  const { index: n6 } = this.readNotationExp(t5, e5 + 1, this.suppressValidationErr);
139413
139507
  e5 = n6;
139414
139508
  } else {
139415
- if (!A2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
139509
+ if (!S2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
139416
139510
  r5 = true;
139417
139511
  }
139418
139512
  i5++, o5 = "";
@@ -139422,10 +139516,10 @@ var require_fxp = __commonJS({
139422
139516
  return { entities: n5, i: e5 };
139423
139517
  }
139424
139518
  readEntityExp(t5, e5) {
139425
- e5 = P2(t5, e5);
139519
+ e5 = A2(t5, e5);
139426
139520
  let n5 = "";
139427
139521
  for (; e5 < t5.length && !/\s/.test(t5[e5]) && '"' !== t5[e5] && "'" !== t5[e5]; ) n5 += t5[e5], e5++;
139428
- if (S2(n5), e5 = P2(t5, e5), !this.suppressValidationErr) {
139522
+ if (C3(n5), e5 = A2(t5, e5), !this.suppressValidationErr) {
139429
139523
  if ("SYSTEM" === t5.substring(e5, e5 + 6).toUpperCase()) throw new Error("External entities are not supported");
139430
139524
  if ("%" === t5[e5]) throw new Error("Parameter entities are not supported");
139431
139525
  }
@@ -139434,15 +139528,15 @@ var require_fxp = __commonJS({
139434
139528
  return [n5, i5, --e5];
139435
139529
  }
139436
139530
  readNotationExp(t5, e5) {
139437
- e5 = P2(t5, e5);
139531
+ e5 = A2(t5, e5);
139438
139532
  let n5 = "";
139439
139533
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
139440
- !this.suppressValidationErr && S2(n5), e5 = P2(t5, e5);
139534
+ !this.suppressValidationErr && C3(n5), e5 = A2(t5, e5);
139441
139535
  const i5 = t5.substring(e5, e5 + 6).toUpperCase();
139442
139536
  if (!this.suppressValidationErr && "SYSTEM" !== i5 && "PUBLIC" !== i5) throw new Error(`Expected SYSTEM or PUBLIC, found "${i5}"`);
139443
- e5 += i5.length, e5 = P2(t5, e5);
139537
+ e5 += i5.length, e5 = A2(t5, e5);
139444
139538
  let s5 = null, r5 = null;
139445
- 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"));
139446
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");
139447
139541
  return { notationName: n5, publicIdentifier: s5, systemIdentifier: r5, index: --e5 };
139448
139542
  }
@@ -139455,13 +139549,13 @@ var require_fxp = __commonJS({
139455
139549
  return [++e5, i5];
139456
139550
  }
139457
139551
  readElementExp(t5, e5) {
139458
- e5 = P2(t5, e5);
139552
+ e5 = A2(t5, e5);
139459
139553
  let n5 = "";
139460
139554
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
139461
139555
  if (!this.suppressValidationErr && !r4(n5)) throw new Error(`Invalid element name: "${n5}"`);
139462
139556
  let i5 = "";
139463
- if ("E" === t5[e5 = P2(t5, e5)] && A2(t5, "MPTY", e5)) e5 += 4;
139464
- 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;
139465
139559
  else if ("(" === t5[e5]) {
139466
139560
  for (e5++; e5 < t5.length && ")" !== t5[e5]; ) i5 += t5[e5], e5++;
139467
139561
  if (")" !== t5[e5]) throw new Error("Unterminated content model");
@@ -139469,24 +139563,24 @@ var require_fxp = __commonJS({
139469
139563
  return { elementName: n5, contentModel: i5.trim(), index: e5 };
139470
139564
  }
139471
139565
  readAttlistExp(t5, e5) {
139472
- e5 = P2(t5, e5);
139566
+ e5 = A2(t5, e5);
139473
139567
  let n5 = "";
139474
139568
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
139475
- S2(n5), e5 = P2(t5, e5);
139569
+ C3(n5), e5 = A2(t5, e5);
139476
139570
  let i5 = "";
139477
139571
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
139478
- if (!S2(i5)) throw new Error(`Invalid attribute name: "${i5}"`);
139479
- e5 = P2(t5, e5);
139572
+ if (!C3(i5)) throw new Error(`Invalid attribute name: "${i5}"`);
139573
+ e5 = A2(t5, e5);
139480
139574
  let s5 = "";
139481
139575
  if ("NOTATION" === t5.substring(e5, e5 + 8).toUpperCase()) {
139482
- 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]}"`);
139483
139577
  e5++;
139484
139578
  let n6 = [];
139485
139579
  for (; e5 < t5.length && ")" !== t5[e5]; ) {
139486
139580
  let i6 = "";
139487
139581
  for (; e5 < t5.length && "|" !== t5[e5] && ")" !== t5[e5]; ) i6 += t5[e5], e5++;
139488
- if (i6 = i6.trim(), !S2(i6)) throw new Error(`Invalid notation name: "${i6}"`);
139489
- 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));
139490
139584
  }
139491
139585
  if (")" !== t5[e5]) throw new Error("Unterminated list of notations");
139492
139586
  e5++, s5 += " (" + n6.join("|") + ")";
@@ -139495,25 +139589,25 @@ var require_fxp = __commonJS({
139495
139589
  const n6 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
139496
139590
  if (!this.suppressValidationErr && !n6.includes(s5.toUpperCase())) throw new Error(`Invalid attribute type: "${s5}"`);
139497
139591
  }
139498
- e5 = P2(t5, e5);
139592
+ e5 = A2(t5, e5);
139499
139593
  let r5 = "";
139500
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 };
139501
139595
  }
139502
139596
  }
139503
- const P2 = (t5, e5) => {
139597
+ const A2 = (t5, e5) => {
139504
139598
  for (; e5 < t5.length && /\s/.test(t5[e5]); ) e5++;
139505
139599
  return e5;
139506
139600
  };
139507
- function A2(t5, e5, n5) {
139601
+ function S2(t5, e5, n5) {
139508
139602
  for (let i5 = 0; i5 < e5.length; i5++) if (e5[i5] !== t5[n5 + i5 + 1]) return false;
139509
139603
  return true;
139510
139604
  }
139511
- function S2(t5) {
139605
+ function C3(t5) {
139512
139606
  if (r4(t5)) return t5;
139513
139607
  throw new Error(`Invalid entity name ${t5}`);
139514
139608
  }
139515
- const C3 = /^[-+]?0x[a-fA-F0-9]+$/, $2 = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, V = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
139516
- 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+)$/;
139517
139611
  function L2(t5) {
139518
139612
  return "function" == typeof t5 ? t5 : Array.isArray(t5) ? (e5) => {
139519
139613
  for (const n5 of t5) {
@@ -139524,7 +139618,7 @@ var require_fxp = __commonJS({
139524
139618
  }
139525
139619
  class F3 {
139526
139620
  constructor(t5) {
139527
- 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) {
139528
139622
  this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
139529
139623
  for (let t6 = 0; t6 < this.options.stopNodes.length; t6++) {
139530
139624
  const e5 = this.options.stopNodes[t6];
@@ -139533,18 +139627,18 @@ var require_fxp = __commonJS({
139533
139627
  }
139534
139628
  }
139535
139629
  }
139536
- function j5(t5) {
139630
+ function M2(t5) {
139537
139631
  const e5 = Object.keys(t5);
139538
139632
  for (let n5 = 0; n5 < e5.length; n5++) {
139539
139633
  const i5 = e5[n5], s5 = i5.replace(/[.\-+*:]/g, "\\.");
139540
139634
  this.lastEntities[i5] = { regex: new RegExp("&" + s5 + ";", "g"), val: t5[i5] };
139541
139635
  }
139542
139636
  }
139543
- function M2(t5, e5, n5, i5, s5, r5, o5) {
139637
+ function k5(t5, e5, n5, i5, s5, r5, o5) {
139544
139638
  if (void 0 !== t5 && (this.options.trimValues && !i5 && (t5 = t5.trim()), t5.length > 0)) {
139545
139639
  o5 || (t5 = this.replaceEntitiesValue(t5, e5, n5));
139546
139640
  const i6 = this.options.tagValueProcessor(e5, t5, n5, s5, r5);
139547
- 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;
139548
139642
  }
139549
139643
  }
139550
139644
  function _2(t5) {
@@ -139555,10 +139649,10 @@ var require_fxp = __commonJS({
139555
139649
  }
139556
139650
  return t5;
139557
139651
  }
139558
- const k5 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
139559
- function U2(t5, e5, n5) {
139652
+ const U2 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
139653
+ function B3(t5, e5, n5) {
139560
139654
  if (true !== this.options.ignoreAttributes && "string" == typeof t5) {
139561
- const i5 = s4(t5, k5), r5 = i5.length, o5 = {};
139655
+ const i5 = s4(t5, U2), r5 = i5.length, o5 = {};
139562
139656
  for (let t6 = 0; t6 < r5; t6++) {
139563
139657
  const s5 = this.resolveNameSpace(i5[t6][1]);
139564
139658
  if (this.ignoreAttributesFn(s5, e5)) continue;
@@ -139566,7 +139660,7 @@ var require_fxp = __commonJS({
139566
139660
  if (s5.length) if (this.options.transformAttributeName && (a5 = this.options.transformAttributeName(a5)), "__proto__" === a5 && (a5 = "#__proto__"), void 0 !== r6) {
139567
139661
  this.options.trimValues && (r6 = r6.trim()), r6 = this.replaceEntitiesValue(r6, n5, e5);
139568
139662
  const t7 = this.options.attributeValueProcessor(s5, r6, e5);
139569
- 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);
139570
139664
  } else this.options.allowBooleanAttributes && (o5[a5] = true);
139571
139665
  }
139572
139666
  if (!Object.keys(o5).length) return;
@@ -139577,14 +139671,14 @@ var require_fxp = __commonJS({
139577
139671
  return o5;
139578
139672
  }
139579
139673
  }
139580
- const B3 = function(t5) {
139674
+ const R = function(t5) {
139581
139675
  t5 = t5.replace(/\r\n?/g, "\n");
139582
139676
  const e5 = new I3("!xml");
139583
139677
  let n5 = e5, i5 = "", s5 = "";
139584
139678
  this.entityExpansionCount = 0, this.currentExpandedLength = 0;
139585
- const r5 = new O(this.options.processEntities);
139679
+ const r5 = new P2(this.options.processEntities);
139586
139680
  for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5]) if ("/" === t5[o5 + 1]) {
139587
- const e6 = z3(t5, ">", o5, "Closing Tag is not closed.");
139681
+ const e6 = W2(t5, ">", o5, "Closing Tag is not closed.");
139588
139682
  let r6 = t5.substring(o5 + 2, e6).trim();
139589
139683
  if (this.options.removeNSPrefix) {
139590
139684
  const t6 = r6.indexOf(":");
@@ -139596,7 +139690,7 @@ var require_fxp = __commonJS({
139596
139690
  let l5 = 0;
139597
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;
139598
139692
  } else if ("?" === t5[o5 + 1]) {
139599
- let e6 = W2(t5, o5, false, "?>");
139693
+ let e6 = q5(t5, o5, false, "?>");
139600
139694
  if (!e6) throw new Error("Pi Tag is not closed.");
139601
139695
  if (i5 = this.saveTextToParentTag(i5, n5, s5), this.options.ignoreDeclaration && "?xml" === e6.tagName || this.options.ignorePiTags) ;
139602
139696
  else {
@@ -139605,7 +139699,7 @@ var require_fxp = __commonJS({
139605
139699
  }
139606
139700
  o5 = e6.closeIndex + 1;
139607
139701
  } else if ("!--" === t5.substr(o5 + 1, 3)) {
139608
- const e6 = z3(t5, "-->", o5 + 4, "Comment is not closed.");
139702
+ const e6 = W2(t5, "-->", o5 + 4, "Comment is not closed.");
139609
139703
  if (this.options.commentPropName) {
139610
139704
  const r6 = t5.substring(o5 + 4, e6 - 2);
139611
139705
  i5 = this.saveTextToParentTag(i5, n5, s5), n5.add(this.options.commentPropName, [{ [this.options.textNodeName]: r6 }]);
@@ -139615,14 +139709,14 @@ var require_fxp = __commonJS({
139615
139709
  const e6 = r5.readDocType(t5, o5);
139616
139710
  this.docTypeEntities = e6.entities, o5 = e6.i;
139617
139711
  } else if ("![" === t5.substr(o5 + 1, 2)) {
139618
- 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);
139619
139713
  i5 = this.saveTextToParentTag(i5, n5, s5);
139620
139714
  let a5 = this.parseTextData(r6, n5.tagname, s5, true, false, true, true);
139621
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;
139622
139716
  } else {
139623
- let r6 = W2(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
139717
+ let r6 = q5(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
139624
139718
  const l5 = r6.rawTagName;
139625
- let u7 = r6.tagExp, h5 = r6.attrExpPresent, d6 = r6.closeIndex;
139719
+ let u7 = r6.tagExp, d6 = r6.attrExpPresent, h5 = r6.closeIndex;
139626
139720
  if (this.options.transformTagName) {
139627
139721
  const t6 = this.options.transformTagName(a5);
139628
139722
  u7 === a5 && (u7 = t6), a5 = t6;
@@ -139630,18 +139724,18 @@ var require_fxp = __commonJS({
139630
139724
  n5 && i5 && "!xml" !== n5.tagname && (i5 = this.saveTextToParentTag(i5, n5, s5, false));
139631
139725
  const p5 = n5;
139632
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);
139633
- const f5 = o5;
139727
+ const c5 = o5;
139634
139728
  if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s5, a5)) {
139635
139729
  let e6 = "";
139636
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;
139637
139731
  else if (-1 !== this.options.unpairedTags.indexOf(a5)) o5 = r6.closeIndex;
139638
139732
  else {
139639
- const n6 = this.readStopNodeData(t5, l5, d6 + 1);
139733
+ const n6 = this.readStopNodeData(t5, l5, h5 + 1);
139640
139734
  if (!n6) throw new Error(`Unexpected end of ${l5}`);
139641
139735
  o5 = n6.i, e6 = n6.tagContent;
139642
139736
  }
139643
139737
  const i6 = new I3(a5);
139644
- 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);
139645
139739
  } else {
139646
139740
  if (u7.length > 0 && u7.lastIndexOf("/") === u7.length - 1) {
139647
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) {
@@ -139649,23 +139743,24 @@ var require_fxp = __commonJS({
139649
139743
  u7 === a5 && (u7 = t7), a5 = t7;
139650
139744
  }
139651
139745
  const t6 = new I3(a5);
139652
- 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("."));
139653
139747
  } else {
139654
139748
  const t6 = new I3(a5);
139655
- 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;
139656
139751
  }
139657
- i5 = "", o5 = d6;
139752
+ i5 = "", o5 = h5;
139658
139753
  }
139659
139754
  }
139660
139755
  else i5 += t5[o5];
139661
139756
  return e5.child;
139662
139757
  };
139663
- function R(t5, e5, n5, i5) {
139758
+ function Y(t5, e5, n5, i5) {
139664
139759
  this.options.captureMetaData || (i5 = void 0);
139665
139760
  const s5 = this.options.updateTag(e5.tagname, n5, e5[":@"]);
139666
139761
  false === s5 || ("string" == typeof s5 ? (e5.tagname = s5, t5.addChild(e5, i5)) : t5.addChild(e5, i5));
139667
139762
  }
139668
- const Y = function(t5, e5, n5) {
139763
+ const G3 = function(t5, e5, n5) {
139669
139764
  if (-1 === t5.indexOf("&")) return t5;
139670
139765
  const i5 = this.options.processEntities;
139671
139766
  if (!i5.enabled) return t5;
@@ -139691,18 +139786,18 @@ var require_fxp = __commonJS({
139691
139786
  }
139692
139787
  return t5.replace(this.ampEntity.regex, this.ampEntity.val);
139693
139788
  };
139694
- function G3(t5, e5, n5, i5) {
139789
+ function X2(t5, e5, n5, i5) {
139695
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;
139696
139791
  }
139697
- function X2(t5, e5, n5, i5) {
139792
+ function z3(t5, e5, n5, i5) {
139698
139793
  return !(!e5 || !e5.has(i5)) || !(!t5 || !t5.has(n5));
139699
139794
  }
139700
- function z3(t5, e5, n5, i5) {
139795
+ function W2(t5, e5, n5, i5) {
139701
139796
  const s5 = t5.indexOf(e5, n5);
139702
139797
  if (-1 === s5) throw new Error(i5);
139703
139798
  return s5 + e5.length - 1;
139704
139799
  }
139705
- function W2(t5, e5, n5, i5 = ">") {
139800
+ function q5(t5, e5, n5, i5 = ">") {
139706
139801
  const s5 = (function(t6, e6, n6 = ">") {
139707
139802
  let i6, s6 = "";
139708
139803
  for (let r6 = e6; r6 < t6.length; r6++) {
@@ -139721,45 +139816,45 @@ var require_fxp = __commonJS({
139721
139816
  const o5 = s5.index, a5 = r5.search(/\s/);
139722
139817
  let l5 = r5, u7 = true;
139723
139818
  -1 !== a5 && (l5 = r5.substring(0, a5), r5 = r5.substring(a5 + 1).trimStart());
139724
- const h5 = l5;
139819
+ const d6 = l5;
139725
139820
  if (n5) {
139726
139821
  const t6 = l5.indexOf(":");
139727
139822
  -1 !== t6 && (l5 = l5.substr(t6 + 1), u7 = l5 !== s5.data.substr(t6 + 1));
139728
139823
  }
139729
- return { tagName: l5, tagExp: r5, closeIndex: o5, attrExpPresent: u7, rawTagName: h5 };
139824
+ return { tagName: l5, tagExp: r5, closeIndex: o5, attrExpPresent: u7, rawTagName: d6 };
139730
139825
  }
139731
- function q5(t5, e5, n5) {
139826
+ function Z2(t5, e5, n5) {
139732
139827
  const i5 = n5;
139733
139828
  let s5 = 1;
139734
139829
  for (; n5 < t5.length; n5++) if ("<" === t5[n5]) if ("/" === t5[n5 + 1]) {
139735
- const r5 = z3(t5, ">", n5, `${e5} is not closed`);
139830
+ const r5 = W2(t5, ">", n5, `${e5} is not closed`);
139736
139831
  if (t5.substring(n5 + 2, r5).trim() === e5 && (s5--, 0 === s5)) return { tagContent: t5.substring(i5, n5), i: r5 };
139737
139832
  n5 = r5;
139738
- } else if ("?" === t5[n5 + 1]) n5 = z3(t5, "?>", n5 + 1, "StopNode is not closed.");
139739
- else if ("!--" === t5.substr(n5 + 1, 3)) n5 = z3(t5, "-->", n5 + 3, "StopNode is not closed.");
139740
- 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;
139741
139836
  else {
139742
- const i6 = W2(t5, n5, ">");
139837
+ const i6 = q5(t5, n5, ">");
139743
139838
  i6 && ((i6 && i6.tagName) === e5 && "/" !== i6.tagExp[i6.tagExp.length - 1] && s5++, n5 = i6.closeIndex);
139744
139839
  }
139745
139840
  }
139746
- function Z2(t5, e5, n5) {
139841
+ function K2(t5, e5, n5) {
139747
139842
  if (e5 && "string" == typeof t5) {
139748
139843
  const e6 = t5.trim();
139749
139844
  return "true" === e6 || "false" !== e6 && (function(t6, e7 = {}) {
139750
- 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;
139751
139846
  let n6 = t6.trim();
139752
139847
  if (void 0 !== e7.skipLike && e7.skipLike.test(n6)) return t6;
139753
139848
  if ("0" === t6) return 0;
139754
- if (e7.hex && C3.test(n6)) return (function(t7) {
139849
+ if (e7.hex && $2.test(n6)) return (function(t7) {
139755
139850
  if (parseInt) return parseInt(t7, 16);
139756
139851
  if (Number.parseInt) return Number.parseInt(t7, 16);
139757
139852
  if (window && window.parseInt) return window.parseInt(t7, 16);
139758
139853
  throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
139759
139854
  })(n6);
139760
- if (-1 !== n6.search(/.+[eE].+/)) return (function(t7, e8, n7) {
139855
+ if (n6.includes("e") || n6.includes("E")) return (function(t7, e8, n7) {
139761
139856
  if (!n7.eNotation) return t7;
139762
- const i6 = e8.match(D3);
139857
+ const i6 = e8.match(j5);
139763
139858
  if (i6) {
139764
139859
  let s5 = i6[1] || "";
139765
139860
  const r5 = -1 === i6[3].indexOf("e") ? "E" : "e", o5 = i6[2], a5 = s5 ? t7[o5.length + 1] === r5 : t7[o5.length] === r5;
@@ -139768,7 +139863,7 @@ var require_fxp = __commonJS({
139768
139863
  return t7;
139769
139864
  })(t6, n6, e7);
139770
139865
  {
139771
- const s5 = $2.exec(n6);
139866
+ const s5 = V.exec(n6);
139772
139867
  if (s5) {
139773
139868
  const r5 = s5[1] || "", o5 = s5[2];
139774
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;
@@ -139776,7 +139871,7 @@ var require_fxp = __commonJS({
139776
139871
  if (!e7.leadingZeros && (o5.length > 1 || 1 === o5.length && !l5)) return t6;
139777
139872
  {
139778
139873
  const i6 = Number(n6), s6 = String(i6);
139779
- if (0 === i6 || -0 === i6) return i6;
139874
+ if (0 === i6) return i6;
139780
139875
  if (-1 !== s6.search(/[eE]/)) return e7.eNotation ? i6 : t6;
139781
139876
  if (-1 !== n6.indexOf(".")) return "0" === s6 || s6 === a5 || s6 === `${r5}${a5}` ? i6 : t6;
139782
139877
  let l6 = o5 ? a5 : n6;
@@ -139790,40 +139885,40 @@ var require_fxp = __commonJS({
139790
139885
  }
139791
139886
  return void 0 !== t5 ? t5 : "";
139792
139887
  }
139793
- function K2(t5, e5, n5) {
139888
+ function Q2(t5, e5, n5) {
139794
139889
  const i5 = Number.parseInt(t5, e5);
139795
139890
  return i5 >= 0 && i5 <= 1114111 ? String.fromCodePoint(i5) : n5 + t5 + ";";
139796
139891
  }
139797
- const Q2 = I3.getMetaDataSymbol();
139798
- function J3(t5, e5) {
139799
- return H2(t5, e5);
139892
+ const J3 = I3.getMetaDataSymbol();
139893
+ function H2(t5, e5) {
139894
+ return tt(t5, e5);
139800
139895
  }
139801
- function H2(t5, e5, n5) {
139896
+ function tt(t5, e5, n5) {
139802
139897
  let i5;
139803
139898
  const s5 = {};
139804
139899
  for (let r5 = 0; r5 < t5.length; r5++) {
139805
- const o5 = t5[r5], a5 = tt(o5);
139900
+ const o5 = t5[r5], a5 = et(o5);
139806
139901
  let l5 = "";
139807
139902
  if (l5 = void 0 === n5 ? a5 : n5 + "." + a5, a5 === e5.textNodeName) void 0 === i5 ? i5 = o5[a5] : i5 += "" + o5[a5];
139808
139903
  else {
139809
139904
  if (void 0 === a5) continue;
139810
139905
  if (o5[a5]) {
139811
- let t6 = H2(o5[a5], e5, l5);
139812
- const n6 = nt(t6, e5);
139813
- 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;
139814
139909
  }
139815
139910
  }
139816
139911
  }
139817
139912
  return "string" == typeof i5 ? i5.length > 0 && (s5[e5.textNodeName] = i5) : void 0 !== i5 && (s5[e5.textNodeName] = i5), s5;
139818
139913
  }
139819
- function tt(t5) {
139914
+ function et(t5) {
139820
139915
  const e5 = Object.keys(t5);
139821
139916
  for (let t6 = 0; t6 < e5.length; t6++) {
139822
139917
  const n5 = e5[t6];
139823
139918
  if (":@" !== n5) return n5;
139824
139919
  }
139825
139920
  }
139826
- function et(t5, e5, n5, i5) {
139921
+ function nt(t5, e5, n5, i5) {
139827
139922
  if (e5) {
139828
139923
  const s5 = Object.keys(e5), r5 = s5.length;
139829
139924
  for (let o5 = 0; o5 < r5; o5++) {
@@ -139832,13 +139927,13 @@ var require_fxp = __commonJS({
139832
139927
  }
139833
139928
  }
139834
139929
  }
139835
- function nt(t5, e5) {
139930
+ function it(t5, e5) {
139836
139931
  const { textNodeName: n5 } = e5, i5 = Object.keys(t5).length;
139837
139932
  return 0 === i5 || !(1 !== i5 || !t5[n5] && "boolean" != typeof t5[n5] && 0 !== t5[n5]);
139838
139933
  }
139839
- class it {
139934
+ class st {
139840
139935
  constructor(t5) {
139841
- this.externalEntities = {}, this.options = w5(t5);
139936
+ this.externalEntities = {}, this.options = v8(t5);
139842
139937
  }
139843
139938
  parse(t5, e5) {
139844
139939
  if ("string" != typeof t5 && t5.toString) t5 = t5.toString();
@@ -139851,7 +139946,7 @@ var require_fxp = __commonJS({
139851
139946
  const n5 = new F3(this.options);
139852
139947
  n5.addExternalEntities(this.externalEntities);
139853
139948
  const i5 = n5.parseXml(t5);
139854
- 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);
139855
139950
  }
139856
139951
  addEntity(t5, e5) {
139857
139952
  if (-1 !== e5.indexOf("&")) throw new Error("Entity value can't have '&'");
@@ -139863,19 +139958,26 @@ var require_fxp = __commonJS({
139863
139958
  return I3.getMetaDataSymbol();
139864
139959
  }
139865
139960
  }
139866
- function st(t5, e5) {
139961
+ function rt(t5, e5) {
139867
139962
  let n5 = "";
139868
- 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);
139869
139964
  }
139870
- function rt(t5, e5, n5, i5) {
139965
+ function ot(t5, e5, n5, i5) {
139871
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
+ }
139872
139974
  for (let o5 = 0; o5 < t5.length; o5++) {
139873
- const a5 = t5[o5], l5 = ot(a5);
139975
+ const a5 = t5[o5], l5 = at(a5);
139874
139976
  if (void 0 === l5) continue;
139875
139977
  let u7 = "";
139876
139978
  if (u7 = 0 === n5.length ? l5 : `${n5}.${l5}`, l5 === e5.textNodeName) {
139877
139979
  let t6 = a5[l5];
139878
- 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;
139879
139981
  continue;
139880
139982
  }
139881
139983
  if (l5 === e5.cdataPropName) {
@@ -139887,40 +139989,40 @@ var require_fxp = __commonJS({
139887
139989
  continue;
139888
139990
  }
139889
139991
  if ("?" === l5[0]) {
139890
- const t6 = at(a5[":@"], e5), n6 = "?xml" === l5 ? "" : i5;
139992
+ const t6 = lt(a5[":@"], e5), n6 = "?xml" === l5 ? "" : i5;
139891
139993
  let o6 = a5[l5][0][e5.textNodeName];
139892
139994
  o6 = 0 !== o6.length ? " " + o6 : "", s5 += n6 + `<${l5}${o6}${t6}?>`, r5 = true;
139893
139995
  continue;
139894
139996
  }
139895
- let h5 = i5;
139896
- "" !== h5 && (h5 += e5.indentBy);
139897
- const d6 = i5 + `<${l5}${at(a5[":@"], e5)}`, p5 = rt(a5[l5], e5, u7, h5);
139898
- -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;
139899
140001
  }
139900
140002
  return s5;
139901
140003
  }
139902
- function ot(t5) {
140004
+ function at(t5) {
139903
140005
  const e5 = Object.keys(t5);
139904
140006
  for (let n5 = 0; n5 < e5.length; n5++) {
139905
140007
  const i5 = e5[n5];
139906
- if (t5.hasOwnProperty(i5) && ":@" !== i5) return i5;
140008
+ if (Object.prototype.hasOwnProperty.call(t5, i5) && ":@" !== i5) return i5;
139907
140009
  }
139908
140010
  }
139909
- function at(t5, e5) {
140011
+ function lt(t5, e5) {
139910
140012
  let n5 = "";
139911
140013
  if (t5 && !e5.ignoreAttributes) for (let i5 in t5) {
139912
- if (!t5.hasOwnProperty(i5)) continue;
140014
+ if (!Object.prototype.hasOwnProperty.call(t5, i5)) continue;
139913
140015
  let s5 = e5.attributeValueProcessor(i5, t5[i5]);
139914
- 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}"`;
139915
140017
  }
139916
140018
  return n5;
139917
140019
  }
139918
- function lt(t5, e5) {
140020
+ function ut(t5, e5) {
139919
140021
  let n5 = (t5 = t5.substr(0, t5.length - e5.textNodeName.length - 1)).substr(t5.lastIndexOf(".") + 1);
139920
140022
  for (let i5 in e5.stopNodes) if (e5.stopNodes[i5] === t5 || e5.stopNodes[i5] === "*." + n5) return true;
139921
140023
  return false;
139922
140024
  }
139923
- function ut(t5, e5) {
140025
+ function dt(t5, e5) {
139924
140026
  if (t5 && t5.length > 0 && e5.processEntities) for (let n5 = 0; n5 < e5.entities.length; n5++) {
139925
140027
  const i5 = e5.entities[n5];
139926
140028
  t5 = t5.replace(i5.regex, i5.val);
@@ -139932,26 +140034,26 @@ var require_fxp = __commonJS({
139932
140034
  }, attributeValueProcessor: function(t5, e5) {
139933
140035
  return e5;
139934
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 };
139935
- function dt(t5) {
140037
+ function pt(t5) {
139936
140038
  this.options = Object.assign({}, ht, t5), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
139937
140039
  return false;
139938
- } : (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() {
139939
140041
  return "";
139940
140042
  }, this.tagEndChar = ">", this.newLine = "");
139941
140043
  }
139942
- function pt(t5, e5, n5, i5) {
140044
+ function ct(t5, e5, n5, i5) {
139943
140045
  const s5 = this.j2x(t5, n5 + 1, i5.concat(e5));
139944
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);
139945
140047
  }
139946
140048
  function ft(t5) {
139947
140049
  return this.options.indentBy.repeat(t5);
139948
140050
  }
139949
- function ct(t5) {
140051
+ function gt(t5) {
139950
140052
  return !(!t5.startsWith(this.options.attributeNamePrefix) || t5 === this.options.textNodeName) && t5.substr(this.attrPrefixLen);
139951
140053
  }
139952
- dt.prototype.build = function(t5) {
139953
- 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);
139954
- }, 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) {
139955
140057
  let i5 = "", s5 = "";
139956
140058
  const r5 = n5.join(".");
139957
140059
  for (let o5 in t5) if (Object.prototype.hasOwnProperty.call(t5, o5)) if (void 0 === t5[o5]) this.isAttribute(o5) && (s5 += "");
@@ -139986,18 +140088,18 @@ var require_fxp = __commonJS({
139986
140088
  for (let s6 = 0; s6 < n6; s6++) i5 += this.buildAttrPairStr(e6[s6], "" + t5[o5][e6[s6]]);
139987
140089
  } else s5 += this.processTextOrObjNode(t5[o5], o5, e5, n5);
139988
140090
  return { attrStr: i5, val: s5 };
139989
- }, dt.prototype.buildAttrPairStr = function(t5, e5) {
140091
+ }, pt.prototype.buildAttrPairStr = function(t5, e5) {
139990
140092
  return e5 = this.options.attributeValueProcessor(t5, "" + e5), e5 = this.replaceEntitiesValue(e5), this.options.suppressBooleanAttributes && "true" === e5 ? " " + t5 : " " + t5 + '="' + e5 + '"';
139991
- }, dt.prototype.buildObjectNode = function(t5, e5, n5, i5) {
140093
+ }, pt.prototype.buildObjectNode = function(t5, e5, n5, i5) {
139992
140094
  if ("" === t5) return "?" === e5[0] ? this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar : this.indentate(i5) + "<" + e5 + n5 + this.closeTag(e5) + this.tagEndChar;
139993
140095
  {
139994
140096
  let s5 = "</" + e5 + this.tagEndChar, r5 = "";
139995
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;
139996
140098
  }
139997
- }, dt.prototype.closeTag = function(t5) {
140099
+ }, pt.prototype.closeTag = function(t5) {
139998
140100
  let e5 = "";
139999
140101
  return -1 !== this.options.unpairedTags.indexOf(t5) ? this.options.suppressUnpairedNode || (e5 = "/") : e5 = this.options.suppressEmptyNode ? "/" : `></${t5}`, e5;
140000
- }, dt.prototype.buildTextValNode = function(t5, e5, n5, i5) {
140102
+ }, pt.prototype.buildTextValNode = function(t5, e5, n5, i5) {
140001
140103
  if (false !== this.options.cdataPropName && e5 === this.options.cdataPropName) return this.indentate(i5) + `<![CDATA[${t5}]]>` + this.newLine;
140002
140104
  if (false !== this.options.commentPropName && e5 === this.options.commentPropName) return this.indentate(i5) + `<!--${t5}-->` + this.newLine;
140003
140105
  if ("?" === e5[0]) return this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar;
@@ -140005,14 +140107,14 @@ var require_fxp = __commonJS({
140005
140107
  let s5 = this.options.tagValueProcessor(e5, t5);
140006
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;
140007
140109
  }
140008
- }, dt.prototype.replaceEntitiesValue = function(t5) {
140110
+ }, pt.prototype.replaceEntitiesValue = function(t5) {
140009
140111
  if (t5 && t5.length > 0 && this.options.processEntities) for (let e5 = 0; e5 < this.options.entities.length; e5++) {
140010
140112
  const n5 = this.options.entities[e5];
140011
140113
  t5 = t5.replace(n5.regex, n5.val);
140012
140114
  }
140013
140115
  return t5;
140014
140116
  };
140015
- const gt = { validate: a4 };
140117
+ const xt = { validate: a4 };
140016
140118
  module2.exports = e4;
140017
140119
  })();
140018
140120
  }
@@ -160085,7 +160187,7 @@ var require_package6 = __commonJS({
160085
160187
  "package.json"(exports2, module2) {
160086
160188
  module2.exports = {
160087
160189
  name: "@sentry/craft",
160088
- version: "2.22.0",
160190
+ version: "2.23.1",
160089
160191
  description: "The universal sentry workflow CLI",
160090
160192
  main: "dist/craft",
160091
160193
  repository: "https://github.com/getsentry/craft",
@@ -160252,7 +160354,7 @@ function getPackage() {
160252
160354
  }
160253
160355
  function getPackageVersion() {
160254
160356
  const { version: version2 } = getPackage();
160255
- const buildInfo = "1db39410d293a253e6affbe98c8c6f29db6e218d";
160357
+ const buildInfo = "d4cfac9d25d1fc72c9241e5d22aff559a114e4e9";
160256
160358
  return buildInfo ? `${version2} (${buildInfo})` : version2;
160257
160359
  }
160258
160360
  function semVerToString(s4) {
@@ -160662,7 +160764,7 @@ var require_semver2 = __commonJS({
160662
160764
  var { safeRe: re3, t: t4 } = require_re();
160663
160765
  var parseOptions = require_parse_options();
160664
160766
  var { compareIdentifiers } = require_identifiers();
160665
- var SemVer3 = class _SemVer {
160767
+ var SemVer4 = class _SemVer {
160666
160768
  constructor(version2, options) {
160667
160769
  options = parseOptions(options);
160668
160770
  if (version2 instanceof _SemVer) {
@@ -160928,7 +161030,7 @@ var require_semver2 = __commonJS({
160928
161030
  return this;
160929
161031
  }
160930
161032
  };
160931
- module2.exports = SemVer3;
161033
+ module2.exports = SemVer4;
160932
161034
  }
160933
161035
  });
160934
161036
 
@@ -160937,13 +161039,13 @@ var require_parse2 = __commonJS({
160937
161039
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js"(exports2, module2) {
160938
161040
  "use strict";
160939
161041
  init_import_meta_url();
160940
- var SemVer3 = require_semver2();
161042
+ var SemVer4 = require_semver2();
160941
161043
  var parse8 = (version2, options, throwErrors = false) => {
160942
- if (version2 instanceof SemVer3) {
161044
+ if (version2 instanceof SemVer4) {
160943
161045
  return version2;
160944
161046
  }
160945
161047
  try {
160946
- return new SemVer3(version2, options);
161048
+ return new SemVer4(version2, options);
160947
161049
  } catch (er) {
160948
161050
  if (!throwErrors) {
160949
161051
  return null;
@@ -160988,7 +161090,7 @@ var require_inc = __commonJS({
160988
161090
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js"(exports2, module2) {
160989
161091
  "use strict";
160990
161092
  init_import_meta_url();
160991
- var SemVer3 = require_semver2();
161093
+ var SemVer4 = require_semver2();
160992
161094
  var inc2 = (version2, release3, options, identifier, identifierBase) => {
160993
161095
  if (typeof options === "string") {
160994
161096
  identifierBase = identifier;
@@ -160996,8 +161098,8 @@ var require_inc = __commonJS({
160996
161098
  options = void 0;
160997
161099
  }
160998
161100
  try {
160999
- return new SemVer3(
161000
- version2 instanceof SemVer3 ? version2.version : version2,
161101
+ return new SemVer4(
161102
+ version2 instanceof SemVer4 ? version2.version : version2,
161001
161103
  options
161002
161104
  ).inc(release3, identifier, identifierBase).version;
161003
161105
  } catch (er) {
@@ -161058,8 +161160,8 @@ var require_major = __commonJS({
161058
161160
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js"(exports2, module2) {
161059
161161
  "use strict";
161060
161162
  init_import_meta_url();
161061
- var SemVer3 = require_semver2();
161062
- var major2 = (a4, loose) => new SemVer3(a4, loose).major;
161163
+ var SemVer4 = require_semver2();
161164
+ var major2 = (a4, loose) => new SemVer4(a4, loose).major;
161063
161165
  module2.exports = major2;
161064
161166
  }
161065
161167
  });
@@ -161069,8 +161171,8 @@ var require_minor = __commonJS({
161069
161171
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js"(exports2, module2) {
161070
161172
  "use strict";
161071
161173
  init_import_meta_url();
161072
- var SemVer3 = require_semver2();
161073
- var minor = (a4, loose) => new SemVer3(a4, loose).minor;
161174
+ var SemVer4 = require_semver2();
161175
+ var minor = (a4, loose) => new SemVer4(a4, loose).minor;
161074
161176
  module2.exports = minor;
161075
161177
  }
161076
161178
  });
@@ -161080,8 +161182,8 @@ var require_patch = __commonJS({
161080
161182
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js"(exports2, module2) {
161081
161183
  "use strict";
161082
161184
  init_import_meta_url();
161083
- var SemVer3 = require_semver2();
161084
- var patch = (a4, loose) => new SemVer3(a4, loose).patch;
161185
+ var SemVer4 = require_semver2();
161186
+ var patch = (a4, loose) => new SemVer4(a4, loose).patch;
161085
161187
  module2.exports = patch;
161086
161188
  }
161087
161189
  });
@@ -161105,8 +161207,8 @@ var require_compare = __commonJS({
161105
161207
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js"(exports2, module2) {
161106
161208
  "use strict";
161107
161209
  init_import_meta_url();
161108
- var SemVer3 = require_semver2();
161109
- var compare = (a4, b5, loose) => new SemVer3(a4, loose).compare(new SemVer3(b5, loose));
161210
+ var SemVer4 = require_semver2();
161211
+ var compare = (a4, b5, loose) => new SemVer4(a4, loose).compare(new SemVer4(b5, loose));
161110
161212
  module2.exports = compare;
161111
161213
  }
161112
161214
  });
@@ -161138,10 +161240,10 @@ var require_compare_build = __commonJS({
161138
161240
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js"(exports2, module2) {
161139
161241
  "use strict";
161140
161242
  init_import_meta_url();
161141
- var SemVer3 = require_semver2();
161243
+ var SemVer4 = require_semver2();
161142
161244
  var compareBuild = (a4, b5, loose) => {
161143
- const versionA = new SemVer3(a4, loose);
161144
- const versionB = new SemVer3(b5, loose);
161245
+ const versionA = new SemVer4(a4, loose);
161246
+ const versionB = new SemVer4(b5, loose);
161145
161247
  return versionA.compare(versionB) || versionA.compareBuild(versionB);
161146
161248
  };
161147
161249
  module2.exports = compareBuild;
@@ -161292,11 +161394,11 @@ var require_coerce = __commonJS({
161292
161394
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js"(exports2, module2) {
161293
161395
  "use strict";
161294
161396
  init_import_meta_url();
161295
- var SemVer3 = require_semver2();
161397
+ var SemVer4 = require_semver2();
161296
161398
  var parse8 = require_parse2();
161297
161399
  var { safeRe: re3, t: t4 } = require_re();
161298
161400
  var coerce2 = (version2, options) => {
161299
- if (version2 instanceof SemVer3) {
161401
+ if (version2 instanceof SemVer4) {
161300
161402
  return version2;
161301
161403
  }
161302
161404
  if (typeof version2 === "number") {
@@ -161504,7 +161606,7 @@ var require_range = __commonJS({
161504
161606
  }
161505
161607
  if (typeof version2 === "string") {
161506
161608
  try {
161507
- version2 = new SemVer3(version2, this.options);
161609
+ version2 = new SemVer4(version2, this.options);
161508
161610
  } catch (er) {
161509
161611
  return false;
161510
161612
  }
@@ -161523,7 +161625,7 @@ var require_range = __commonJS({
161523
161625
  var parseOptions = require_parse_options();
161524
161626
  var Comparator = require_comparator();
161525
161627
  var debug3 = require_debug();
161526
- var SemVer3 = require_semver2();
161628
+ var SemVer4 = require_semver2();
161527
161629
  var {
161528
161630
  safeRe: re3,
161529
161631
  t: t4,
@@ -161795,7 +161897,7 @@ var require_comparator = __commonJS({
161795
161897
  if (!m5[2]) {
161796
161898
  this.semver = ANY;
161797
161899
  } else {
161798
- this.semver = new SemVer3(m5[2], this.options.loose);
161900
+ this.semver = new SemVer4(m5[2], this.options.loose);
161799
161901
  }
161800
161902
  }
161801
161903
  toString() {
@@ -161808,7 +161910,7 @@ var require_comparator = __commonJS({
161808
161910
  }
161809
161911
  if (typeof version2 === "string") {
161810
161912
  try {
161811
- version2 = new SemVer3(version2, this.options);
161913
+ version2 = new SemVer4(version2, this.options);
161812
161914
  } catch (er) {
161813
161915
  return false;
161814
161916
  }
@@ -161860,7 +161962,7 @@ var require_comparator = __commonJS({
161860
161962
  var { safeRe: re3, t: t4 } = require_re();
161861
161963
  var cmp = require_cmp();
161862
161964
  var debug3 = require_debug();
161863
- var SemVer3 = require_semver2();
161965
+ var SemVer4 = require_semver2();
161864
161966
  var Range = require_range();
161865
161967
  }
161866
161968
  });
@@ -161899,7 +162001,7 @@ var require_max_satisfying = __commonJS({
161899
162001
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
161900
162002
  "use strict";
161901
162003
  init_import_meta_url();
161902
- var SemVer3 = require_semver2();
162004
+ var SemVer4 = require_semver2();
161903
162005
  var Range = require_range();
161904
162006
  var maxSatisfying = (versions, range3, options) => {
161905
162007
  let max = null;
@@ -161914,7 +162016,7 @@ var require_max_satisfying = __commonJS({
161914
162016
  if (rangeObj.test(v8)) {
161915
162017
  if (!max || maxSV.compare(v8) === -1) {
161916
162018
  max = v8;
161917
- maxSV = new SemVer3(max, options);
162019
+ maxSV = new SemVer4(max, options);
161918
162020
  }
161919
162021
  }
161920
162022
  });
@@ -161929,7 +162031,7 @@ var require_min_satisfying = __commonJS({
161929
162031
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
161930
162032
  "use strict";
161931
162033
  init_import_meta_url();
161932
- var SemVer3 = require_semver2();
162034
+ var SemVer4 = require_semver2();
161933
162035
  var Range = require_range();
161934
162036
  var minSatisfying = (versions, range3, options) => {
161935
162037
  let min = null;
@@ -161944,7 +162046,7 @@ var require_min_satisfying = __commonJS({
161944
162046
  if (rangeObj.test(v8)) {
161945
162047
  if (!min || minSV.compare(v8) === 1) {
161946
162048
  min = v8;
161947
- minSV = new SemVer3(min, options);
162049
+ minSV = new SemVer4(min, options);
161948
162050
  }
161949
162051
  }
161950
162052
  });
@@ -161959,16 +162061,16 @@ var require_min_version = __commonJS({
161959
162061
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js"(exports2, module2) {
161960
162062
  "use strict";
161961
162063
  init_import_meta_url();
161962
- var SemVer3 = require_semver2();
162064
+ var SemVer4 = require_semver2();
161963
162065
  var Range = require_range();
161964
162066
  var gt = require_gt();
161965
162067
  var minVersion = (range3, loose) => {
161966
162068
  range3 = new Range(range3, loose);
161967
- let minver = new SemVer3("0.0.0");
162069
+ let minver = new SemVer4("0.0.0");
161968
162070
  if (range3.test(minver)) {
161969
162071
  return minver;
161970
162072
  }
161971
- minver = new SemVer3("0.0.0-0");
162073
+ minver = new SemVer4("0.0.0-0");
161972
162074
  if (range3.test(minver)) {
161973
162075
  return minver;
161974
162076
  }
@@ -161977,7 +162079,7 @@ var require_min_version = __commonJS({
161977
162079
  const comparators = range3.set[i4];
161978
162080
  let setMin = null;
161979
162081
  comparators.forEach((comparator) => {
161980
- const compver = new SemVer3(comparator.semver.version);
162082
+ const compver = new SemVer4(comparator.semver.version);
161981
162083
  switch (comparator.operator) {
161982
162084
  case ">":
161983
162085
  if (compver.prerelease.length === 0) {
@@ -162036,7 +162138,7 @@ var require_outside = __commonJS({
162036
162138
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js"(exports2, module2) {
162037
162139
  "use strict";
162038
162140
  init_import_meta_url();
162039
- var SemVer3 = require_semver2();
162141
+ var SemVer4 = require_semver2();
162040
162142
  var Comparator = require_comparator();
162041
162143
  var { ANY } = Comparator;
162042
162144
  var Range = require_range();
@@ -162046,7 +162148,7 @@ var require_outside = __commonJS({
162046
162148
  var lte2 = require_lte();
162047
162149
  var gte2 = require_gte();
162048
162150
  var outside = (version2, range3, hilo, options) => {
162049
- version2 = new SemVer3(version2, options);
162151
+ version2 = new SemVer4(version2, options);
162050
162152
  range3 = new Range(range3, options);
162051
162153
  let gtfn, ltefn, ltfn, comp, ecomp;
162052
162154
  switch (hilo) {
@@ -162359,7 +162461,7 @@ var require_semver3 = __commonJS({
162359
162461
  init_import_meta_url();
162360
162462
  var internalRe = require_re();
162361
162463
  var constants4 = require_constants2();
162362
- var SemVer3 = require_semver2();
162464
+ var SemVer4 = require_semver2();
162363
162465
  var identifiers = require_identifiers();
162364
162466
  var parse8 = require_parse2();
162365
162467
  var valid = require_valid();
@@ -162436,7 +162538,7 @@ var require_semver3 = __commonJS({
162436
162538
  intersects,
162437
162539
  simplifyRange,
162438
162540
  subset,
162439
- SemVer: SemVer3,
162541
+ SemVer: SemVer4,
162440
162542
  re: internalRe.re,
162441
162543
  src: internalRe.src,
162442
162544
  tokens: internalRe.t,