@rockcarver/frodo-cli 3.0.9 → 3.0.10-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.cjs CHANGED
@@ -3696,7 +3696,7 @@ var require_debug8 = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
3696
3696
  });
3697
3697
 
3698
3698
  // node_modules/cli-table3/src/utils.js
3699
- var require_utils9 = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
3699
+ var require_utils7 = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
3700
3700
  "node_modules/cli-table3/src/utils.js"(exports2, module2) {
3701
3701
  "use strict";
3702
3702
  _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
@@ -4686,7 +4686,7 @@ var require_cell = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
4686
4686
  "use strict";
4687
4687
  _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
4688
4688
  var { info: info2, debug: debug3 } = require_debug8();
4689
- var utils = require_utils9();
4689
+ var utils = require_utils7();
4690
4690
  var Cell = class _Cell {
4691
4691
  /**
4692
4692
  * A representation of a cell within the table.
@@ -5301,7 +5301,7 @@ var require_table = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
5301
5301
  "use strict";
5302
5302
  _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
5303
5303
  var debug3 = require_debug8();
5304
- var utils = require_utils9();
5304
+ var utils = require_utils7();
5305
5305
  var tableLayout = require_layout_manager();
5306
5306
  var Table3 = class extends Array {
5307
5307
  constructor(opts) {
@@ -6183,7 +6183,7 @@ var require_extendStringPrototype = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
6183
6183
  });
6184
6184
 
6185
6185
  // node_modules/colors/lib/index.js
6186
- var require_lib9 = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
6186
+ var require_lib7 = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
6187
6187
  "node_modules/colors/lib/index.js"(exports2, module2) {
6188
6188
  "use strict";
6189
6189
  _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
@@ -47776,8 +47776,23 @@ var require_utils3 = __commonJS2({
47776
47776
  "node_modules/qs/lib/utils.js"(exports2, module2) {
47777
47777
  "use strict";
47778
47778
  var formats = require_formats();
47779
+ var getSideChannel = require_side_channel();
47779
47780
  var has = Object.prototype.hasOwnProperty;
47780
47781
  var isArray14 = Array.isArray;
47782
+ var overflowChannel = getSideChannel();
47783
+ var markOverflow = function markOverflow2(obj, maxIndex) {
47784
+ overflowChannel.set(obj, maxIndex);
47785
+ return obj;
47786
+ };
47787
+ var isOverflow = function isOverflow2(obj) {
47788
+ return overflowChannel.has(obj);
47789
+ };
47790
+ var getMaxIndex = function getMaxIndex2(obj) {
47791
+ return overflowChannel.get(obj);
47792
+ };
47793
+ var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
47794
+ overflowChannel.set(obj, maxIndex);
47795
+ };
47781
47796
  var hexTable = (function() {
47782
47797
  var array = [];
47783
47798
  for (var i2 = 0; i2 < 256; ++i2) {
@@ -47817,7 +47832,11 @@ var require_utils3 = __commonJS2({
47817
47832
  if (isArray14(target)) {
47818
47833
  target.push(source);
47819
47834
  } else if (target && typeof target === "object") {
47820
- if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
47835
+ if (isOverflow(target)) {
47836
+ var newIndex = getMaxIndex(target) + 1;
47837
+ target[newIndex] = source;
47838
+ setMaxIndex(target, newIndex);
47839
+ } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
47821
47840
  target[source] = true;
47822
47841
  }
47823
47842
  } else {
@@ -47826,6 +47845,15 @@ var require_utils3 = __commonJS2({
47826
47845
  return target;
47827
47846
  }
47828
47847
  if (!target || typeof target !== "object") {
47848
+ if (isOverflow(source)) {
47849
+ var sourceKeys = Object.keys(source);
47850
+ var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
47851
+ for (var m2 = 0; m2 < sourceKeys.length; m2++) {
47852
+ var oldKey = parseInt(sourceKeys[m2], 10);
47853
+ result[oldKey + 1] = source[sourceKeys[m2]];
47854
+ }
47855
+ return markOverflow(result, getMaxIndex(source) + 1);
47856
+ }
47829
47857
  return [target].concat(source);
47830
47858
  }
47831
47859
  var mergeTarget = target;
@@ -47948,8 +47976,18 @@ var require_utils3 = __commonJS2({
47948
47976
  }
47949
47977
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
47950
47978
  };
47951
- var combine = function combine2(a, b) {
47952
- return [].concat(a, b);
47979
+ var combine = function combine2(a, b, arrayLimit, plainObjects) {
47980
+ if (isOverflow(a)) {
47981
+ var newIndex = getMaxIndex(a) + 1;
47982
+ a[newIndex] = b;
47983
+ setMaxIndex(a, newIndex);
47984
+ return a;
47985
+ }
47986
+ var result = [].concat(a, b);
47987
+ if (result.length > arrayLimit) {
47988
+ return markOverflow(arrayToObject2(result, { plainObjects }), result.length - 1);
47989
+ }
47990
+ return result;
47953
47991
  };
47954
47992
  var maybeMap = function maybeMap2(val, fn) {
47955
47993
  if (isArray14(val)) {
@@ -47969,6 +48007,7 @@ var require_utils3 = __commonJS2({
47969
48007
  decode: decode2,
47970
48008
  encode: encode4,
47971
48009
  isBuffer: isBuffer3,
48010
+ isOverflow,
47972
48011
  isRegExp: isRegExp2,
47973
48012
  maybeMap,
47974
48013
  merge: merge2
@@ -48343,16 +48382,18 @@ var require_parse = __commonJS2({
48343
48382
  val = options.strictNullHandling ? null : "";
48344
48383
  } else {
48345
48384
  key = options.decoder(part.slice(0, pos), defaults2.decoder, charset, "key");
48346
- val = utils.maybeMap(
48347
- parseArrayValue(
48348
- part.slice(pos + 1),
48349
- options,
48350
- isArray14(obj[key]) ? obj[key].length : 0
48351
- ),
48352
- function(encodedVal) {
48353
- return options.decoder(encodedVal, defaults2.decoder, charset, "value");
48354
- }
48355
- );
48385
+ if (key !== null) {
48386
+ val = utils.maybeMap(
48387
+ parseArrayValue(
48388
+ part.slice(pos + 1),
48389
+ options,
48390
+ isArray14(obj[key]) ? obj[key].length : 0
48391
+ ),
48392
+ function(encodedVal) {
48393
+ return options.decoder(encodedVal, defaults2.decoder, charset, "value");
48394
+ }
48395
+ );
48396
+ }
48356
48397
  }
48357
48398
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
48358
48399
  val = interpretNumericEntities(String(val));
@@ -48360,11 +48401,18 @@ var require_parse = __commonJS2({
48360
48401
  if (part.indexOf("[]=") > -1) {
48361
48402
  val = isArray14(val) ? [val] : val;
48362
48403
  }
48363
- var existing = has.call(obj, key);
48364
- if (existing && options.duplicates === "combine") {
48365
- obj[key] = utils.combine(obj[key], val);
48366
- } else if (!existing || options.duplicates === "last") {
48367
- obj[key] = val;
48404
+ if (key !== null) {
48405
+ var existing = has.call(obj, key);
48406
+ if (existing && options.duplicates === "combine") {
48407
+ obj[key] = utils.combine(
48408
+ obj[key],
48409
+ val,
48410
+ options.arrayLimit,
48411
+ options.plainObjects
48412
+ );
48413
+ } else if (!existing || options.duplicates === "last") {
48414
+ obj[key] = val;
48415
+ }
48368
48416
  }
48369
48417
  }
48370
48418
  return obj;
@@ -48380,7 +48428,16 @@ var require_parse = __commonJS2({
48380
48428
  var obj;
48381
48429
  var root4 = chain[i2];
48382
48430
  if (root4 === "[]" && options.parseArrays) {
48383
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf);
48431
+ if (utils.isOverflow(leaf)) {
48432
+ obj = leaf;
48433
+ } else {
48434
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine(
48435
+ [],
48436
+ leaf,
48437
+ options.arrayLimit,
48438
+ options.plainObjects
48439
+ );
48440
+ }
48384
48441
  } else {
48385
48442
  obj = options.plainObjects ? { __proto__: null } : {};
48386
48443
  var cleanRoot = root4.charAt(0) === "[" && root4.charAt(root4.length - 1) === "]" ? root4.slice(1, -1) : root4;
@@ -48399,14 +48456,19 @@ var require_parse = __commonJS2({
48399
48456
  }
48400
48457
  return leaf;
48401
48458
  };
48402
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
48403
- if (!givenKey) {
48404
- return;
48405
- }
48459
+ var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) {
48406
48460
  var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
48461
+ if (options.depth <= 0) {
48462
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
48463
+ if (!options.allowPrototypes) {
48464
+ return;
48465
+ }
48466
+ }
48467
+ return [key];
48468
+ }
48407
48469
  var brackets = /(\[[^[\]]*])/;
48408
48470
  var child = /(\[[^[\]]*])/g;
48409
- var segment = options.depth > 0 && brackets.exec(key);
48471
+ var segment = brackets.exec(key);
48410
48472
  var parent = segment ? key.slice(0, segment.index) : key;
48411
48473
  var keys13 = [];
48412
48474
  if (parent) {
@@ -48418,9 +48480,10 @@ var require_parse = __commonJS2({
48418
48480
  keys13.push(parent);
48419
48481
  }
48420
48482
  var i2 = 0;
48421
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i2 < options.depth) {
48483
+ while ((segment = child.exec(key)) !== null && i2 < options.depth) {
48422
48484
  i2 += 1;
48423
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
48485
+ var segmentContent = segment[1].slice(1, -1);
48486
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
48424
48487
  if (!options.allowPrototypes) {
48425
48488
  return;
48426
48489
  }
@@ -48433,6 +48496,16 @@ var require_parse = __commonJS2({
48433
48496
  }
48434
48497
  keys13.push("[" + key.slice(segment.index) + "]");
48435
48498
  }
48499
+ return keys13;
48500
+ };
48501
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
48502
+ if (!givenKey) {
48503
+ return;
48504
+ }
48505
+ var keys13 = splitKeyIntoSegments(givenKey, options);
48506
+ if (!keys13) {
48507
+ return;
48508
+ }
48436
48509
  return parseObject(keys13, val, options, valuesParsed);
48437
48510
  };
48438
48511
  var normalizeParseOptions = function normalizeParseOptions2(opts) {
@@ -53571,7 +53644,7 @@ var require_setprototypeof = __commonJS2({
53571
53644
  }
53572
53645
  });
53573
53646
  var require_codes = __commonJS2({
53574
- "node_modules/statuses/codes.json"(exports2, module2) {
53647
+ "node_modules/body-parser/node_modules/statuses/codes.json"(exports2, module2) {
53575
53648
  module2.exports = {
53576
53649
  "100": "Continue",
53577
53650
  "101": "Switching Protocols",
@@ -53640,7 +53713,7 @@ var require_codes = __commonJS2({
53640
53713
  }
53641
53714
  });
53642
53715
  var require_statuses = __commonJS2({
53643
- "node_modules/statuses/index.js"(exports2, module2) {
53716
+ "node_modules/body-parser/node_modules/statuses/index.js"(exports2, module2) {
53644
53717
  "use strict";
53645
53718
  var codes = require_codes();
53646
53719
  module2.exports = status;
@@ -53764,7 +53837,7 @@ var require_toidentifier = __commonJS2({
53764
53837
  }
53765
53838
  });
53766
53839
  var require_http_errors = __commonJS2({
53767
- "node_modules/http-errors/index.js"(exports2, module2) {
53840
+ "node_modules/body-parser/node_modules/http-errors/index.js"(exports2, module2) {
53768
53841
  "use strict";
53769
53842
  var deprecate = require_depd()("http-errors");
53770
53843
  var setPrototypeOf = require_setprototypeof();
@@ -53921,7 +53994,7 @@ var require_http_errors = __commonJS2({
53921
53994
  });
53922
53995
  }
53923
53996
  function toClassName(name) {
53924
- return name.substr(-5) !== "Error" ? name + "Error" : name;
53997
+ return name.slice(-5) === "Error" ? name : name + "Error";
53925
53998
  }
53926
53999
  }
53927
54000
  });
@@ -54429,6 +54502,306 @@ var require_destroy = __commonJS2({
54429
54502
  }
54430
54503
  }
54431
54504
  });
54505
+ var require_codes2 = __commonJS2({
54506
+ "node_modules/raw-body/node_modules/statuses/codes.json"(exports2, module2) {
54507
+ module2.exports = {
54508
+ "100": "Continue",
54509
+ "101": "Switching Protocols",
54510
+ "102": "Processing",
54511
+ "103": "Early Hints",
54512
+ "200": "OK",
54513
+ "201": "Created",
54514
+ "202": "Accepted",
54515
+ "203": "Non-Authoritative Information",
54516
+ "204": "No Content",
54517
+ "205": "Reset Content",
54518
+ "206": "Partial Content",
54519
+ "207": "Multi-Status",
54520
+ "208": "Already Reported",
54521
+ "226": "IM Used",
54522
+ "300": "Multiple Choices",
54523
+ "301": "Moved Permanently",
54524
+ "302": "Found",
54525
+ "303": "See Other",
54526
+ "304": "Not Modified",
54527
+ "305": "Use Proxy",
54528
+ "307": "Temporary Redirect",
54529
+ "308": "Permanent Redirect",
54530
+ "400": "Bad Request",
54531
+ "401": "Unauthorized",
54532
+ "402": "Payment Required",
54533
+ "403": "Forbidden",
54534
+ "404": "Not Found",
54535
+ "405": "Method Not Allowed",
54536
+ "406": "Not Acceptable",
54537
+ "407": "Proxy Authentication Required",
54538
+ "408": "Request Timeout",
54539
+ "409": "Conflict",
54540
+ "410": "Gone",
54541
+ "411": "Length Required",
54542
+ "412": "Precondition Failed",
54543
+ "413": "Payload Too Large",
54544
+ "414": "URI Too Long",
54545
+ "415": "Unsupported Media Type",
54546
+ "416": "Range Not Satisfiable",
54547
+ "417": "Expectation Failed",
54548
+ "418": "I'm a Teapot",
54549
+ "421": "Misdirected Request",
54550
+ "422": "Unprocessable Entity",
54551
+ "423": "Locked",
54552
+ "424": "Failed Dependency",
54553
+ "425": "Too Early",
54554
+ "426": "Upgrade Required",
54555
+ "428": "Precondition Required",
54556
+ "429": "Too Many Requests",
54557
+ "431": "Request Header Fields Too Large",
54558
+ "451": "Unavailable For Legal Reasons",
54559
+ "500": "Internal Server Error",
54560
+ "501": "Not Implemented",
54561
+ "502": "Bad Gateway",
54562
+ "503": "Service Unavailable",
54563
+ "504": "Gateway Timeout",
54564
+ "505": "HTTP Version Not Supported",
54565
+ "506": "Variant Also Negotiates",
54566
+ "507": "Insufficient Storage",
54567
+ "508": "Loop Detected",
54568
+ "509": "Bandwidth Limit Exceeded",
54569
+ "510": "Not Extended",
54570
+ "511": "Network Authentication Required"
54571
+ };
54572
+ }
54573
+ });
54574
+ var require_statuses2 = __commonJS2({
54575
+ "node_modules/raw-body/node_modules/statuses/index.js"(exports2, module2) {
54576
+ "use strict";
54577
+ var codes = require_codes2();
54578
+ module2.exports = status;
54579
+ status.message = codes;
54580
+ status.code = createMessageToStatusCodeMap(codes);
54581
+ status.codes = createStatusCodeList(codes);
54582
+ status.redirect = {
54583
+ 300: true,
54584
+ 301: true,
54585
+ 302: true,
54586
+ 303: true,
54587
+ 305: true,
54588
+ 307: true,
54589
+ 308: true
54590
+ };
54591
+ status.empty = {
54592
+ 204: true,
54593
+ 205: true,
54594
+ 304: true
54595
+ };
54596
+ status.retry = {
54597
+ 502: true,
54598
+ 503: true,
54599
+ 504: true
54600
+ };
54601
+ function createMessageToStatusCodeMap(codes2) {
54602
+ var map4 = {};
54603
+ Object.keys(codes2).forEach(function forEachCode(code) {
54604
+ var message = codes2[code];
54605
+ var status2 = Number(code);
54606
+ map4[message.toLowerCase()] = status2;
54607
+ });
54608
+ return map4;
54609
+ }
54610
+ function createStatusCodeList(codes2) {
54611
+ return Object.keys(codes2).map(function mapCode(code) {
54612
+ return Number(code);
54613
+ });
54614
+ }
54615
+ function getStatusCode(message) {
54616
+ var msg = message.toLowerCase();
54617
+ if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
54618
+ throw new Error('invalid status message: "' + message + '"');
54619
+ }
54620
+ return status.code[msg];
54621
+ }
54622
+ function getStatusMessage(code) {
54623
+ if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
54624
+ throw new Error("invalid status code: " + code);
54625
+ }
54626
+ return status.message[code];
54627
+ }
54628
+ function status(code) {
54629
+ if (typeof code === "number") {
54630
+ return getStatusMessage(code);
54631
+ }
54632
+ if (typeof code !== "string") {
54633
+ throw new TypeError("code must be a number or string");
54634
+ }
54635
+ var n = parseInt(code, 10);
54636
+ if (!isNaN(n)) {
54637
+ return getStatusMessage(n);
54638
+ }
54639
+ return getStatusCode(code);
54640
+ }
54641
+ }
54642
+ });
54643
+ var require_http_errors2 = __commonJS2({
54644
+ "node_modules/raw-body/node_modules/http-errors/index.js"(exports2, module2) {
54645
+ "use strict";
54646
+ var deprecate = require_depd()("http-errors");
54647
+ var setPrototypeOf = require_setprototypeof();
54648
+ var statuses = require_statuses2();
54649
+ var inherits2 = require_inherits();
54650
+ var toIdentifier = require_toidentifier();
54651
+ module2.exports = createError;
54652
+ module2.exports.HttpError = createHttpErrorConstructor();
54653
+ module2.exports.isHttpError = createIsHttpErrorFunction(module2.exports.HttpError);
54654
+ populateConstructorExports(module2.exports, statuses.codes, module2.exports.HttpError);
54655
+ function codeClass(status) {
54656
+ return Number(String(status).charAt(0) + "00");
54657
+ }
54658
+ function createError() {
54659
+ var err;
54660
+ var msg;
54661
+ var status = 500;
54662
+ var props = {};
54663
+ for (var i2 = 0; i2 < arguments.length; i2++) {
54664
+ var arg = arguments[i2];
54665
+ var type = typeof arg;
54666
+ if (type === "object" && arg instanceof Error) {
54667
+ err = arg;
54668
+ status = err.status || err.statusCode || status;
54669
+ } else if (type === "number" && i2 === 0) {
54670
+ status = arg;
54671
+ } else if (type === "string") {
54672
+ msg = arg;
54673
+ } else if (type === "object") {
54674
+ props = arg;
54675
+ } else {
54676
+ throw new TypeError("argument #" + (i2 + 1) + " unsupported type " + type);
54677
+ }
54678
+ }
54679
+ if (typeof status === "number" && (status < 400 || status >= 600)) {
54680
+ deprecate("non-error status code; use only 4xx or 5xx status codes");
54681
+ }
54682
+ if (typeof status !== "number" || !statuses.message[status] && (status < 400 || status >= 600)) {
54683
+ status = 500;
54684
+ }
54685
+ var HttpError = createError[status] || createError[codeClass(status)];
54686
+ if (!err) {
54687
+ err = HttpError ? new HttpError(msg) : new Error(msg || statuses.message[status]);
54688
+ Error.captureStackTrace(err, createError);
54689
+ }
54690
+ if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
54691
+ err.expose = status < 500;
54692
+ err.status = err.statusCode = status;
54693
+ }
54694
+ for (var key in props) {
54695
+ if (key !== "status" && key !== "statusCode") {
54696
+ err[key] = props[key];
54697
+ }
54698
+ }
54699
+ return err;
54700
+ }
54701
+ function createHttpErrorConstructor() {
54702
+ function HttpError() {
54703
+ throw new TypeError("cannot construct abstract class");
54704
+ }
54705
+ inherits2(HttpError, Error);
54706
+ return HttpError;
54707
+ }
54708
+ function createClientErrorConstructor(HttpError, name, code) {
54709
+ var className = toClassName(name);
54710
+ function ClientError(message) {
54711
+ var msg = message != null ? message : statuses.message[code];
54712
+ var err = new Error(msg);
54713
+ Error.captureStackTrace(err, ClientError);
54714
+ setPrototypeOf(err, ClientError.prototype);
54715
+ Object.defineProperty(err, "message", {
54716
+ enumerable: true,
54717
+ configurable: true,
54718
+ value: msg,
54719
+ writable: true
54720
+ });
54721
+ Object.defineProperty(err, "name", {
54722
+ enumerable: false,
54723
+ configurable: true,
54724
+ value: className,
54725
+ writable: true
54726
+ });
54727
+ return err;
54728
+ }
54729
+ inherits2(ClientError, HttpError);
54730
+ nameFunc(ClientError, className);
54731
+ ClientError.prototype.status = code;
54732
+ ClientError.prototype.statusCode = code;
54733
+ ClientError.prototype.expose = true;
54734
+ return ClientError;
54735
+ }
54736
+ function createIsHttpErrorFunction(HttpError) {
54737
+ return function isHttpError(val) {
54738
+ if (!val || typeof val !== "object") {
54739
+ return false;
54740
+ }
54741
+ if (val instanceof HttpError) {
54742
+ return true;
54743
+ }
54744
+ return val instanceof Error && typeof val.expose === "boolean" && typeof val.statusCode === "number" && val.status === val.statusCode;
54745
+ };
54746
+ }
54747
+ function createServerErrorConstructor(HttpError, name, code) {
54748
+ var className = toClassName(name);
54749
+ function ServerError(message) {
54750
+ var msg = message != null ? message : statuses.message[code];
54751
+ var err = new Error(msg);
54752
+ Error.captureStackTrace(err, ServerError);
54753
+ setPrototypeOf(err, ServerError.prototype);
54754
+ Object.defineProperty(err, "message", {
54755
+ enumerable: true,
54756
+ configurable: true,
54757
+ value: msg,
54758
+ writable: true
54759
+ });
54760
+ Object.defineProperty(err, "name", {
54761
+ enumerable: false,
54762
+ configurable: true,
54763
+ value: className,
54764
+ writable: true
54765
+ });
54766
+ return err;
54767
+ }
54768
+ inherits2(ServerError, HttpError);
54769
+ nameFunc(ServerError, className);
54770
+ ServerError.prototype.status = code;
54771
+ ServerError.prototype.statusCode = code;
54772
+ ServerError.prototype.expose = false;
54773
+ return ServerError;
54774
+ }
54775
+ function nameFunc(func, name) {
54776
+ var desc = Object.getOwnPropertyDescriptor(func, "name");
54777
+ if (desc && desc.configurable) {
54778
+ desc.value = name;
54779
+ Object.defineProperty(func, "name", desc);
54780
+ }
54781
+ }
54782
+ function populateConstructorExports(exports3, codes, HttpError) {
54783
+ codes.forEach(function forEachCode(code) {
54784
+ var CodeError;
54785
+ var name = toIdentifier(statuses.message[code]);
54786
+ switch (codeClass(code)) {
54787
+ case 400:
54788
+ CodeError = createClientErrorConstructor(HttpError, name, code);
54789
+ break;
54790
+ case 500:
54791
+ CodeError = createServerErrorConstructor(HttpError, name, code);
54792
+ break;
54793
+ }
54794
+ if (CodeError) {
54795
+ exports3[code] = CodeError;
54796
+ exports3[name] = CodeError;
54797
+ }
54798
+ });
54799
+ }
54800
+ function toClassName(name) {
54801
+ return name.slice(-5) === "Error" ? name : name + "Error";
54802
+ }
54803
+ }
54804
+ });
54432
54805
  var require_safer = __commonJS2({
54433
54806
  "node_modules/safer-buffer/safer.js"(exports2, module2) {
54434
54807
  "use strict";
@@ -57854,7 +58227,7 @@ var require_raw_body = __commonJS2({
57854
58227
  "use strict";
57855
58228
  var asyncHooks = tryRequireAsyncHooks();
57856
58229
  var bytes = require_bytes();
57857
- var createError = require_http_errors();
58230
+ var createError = require_http_errors2();
57858
58231
  var iconv = require_lib4();
57859
58232
  var unpipe = require_unpipe();
57860
58233
  module2.exports = getRawBody;
@@ -58739,749 +59112,6 @@ var require_text = __commonJS2({
58739
59112
  }
58740
59113
  }
58741
59114
  });
58742
- var require_formats2 = __commonJS2({
58743
- "node_modules/body-parser/node_modules/qs/lib/formats.js"(exports2, module2) {
58744
- "use strict";
58745
- var replace = String.prototype.replace;
58746
- var percentTwenties = /%20/g;
58747
- var Format = {
58748
- RFC1738: "RFC1738",
58749
- RFC3986: "RFC3986"
58750
- };
58751
- module2.exports = {
58752
- "default": Format.RFC3986,
58753
- formatters: {
58754
- RFC1738: function(value) {
58755
- return replace.call(value, percentTwenties, "+");
58756
- },
58757
- RFC3986: function(value) {
58758
- return String(value);
58759
- }
58760
- },
58761
- RFC1738: Format.RFC1738,
58762
- RFC3986: Format.RFC3986
58763
- };
58764
- }
58765
- });
58766
- var require_utils6 = __commonJS2({
58767
- "node_modules/body-parser/node_modules/qs/lib/utils.js"(exports2, module2) {
58768
- "use strict";
58769
- var formats = require_formats2();
58770
- var has = Object.prototype.hasOwnProperty;
58771
- var isArray14 = Array.isArray;
58772
- var hexTable = (function() {
58773
- var array = [];
58774
- for (var i2 = 0; i2 < 256; ++i2) {
58775
- array.push("%" + ((i2 < 16 ? "0" : "") + i2.toString(16)).toUpperCase());
58776
- }
58777
- return array;
58778
- })();
58779
- var compactQueue = function compactQueue2(queue5) {
58780
- while (queue5.length > 1) {
58781
- var item = queue5.pop();
58782
- var obj = item.obj[item.prop];
58783
- if (isArray14(obj)) {
58784
- var compacted = [];
58785
- for (var j2 = 0; j2 < obj.length; ++j2) {
58786
- if (typeof obj[j2] !== "undefined") {
58787
- compacted.push(obj[j2]);
58788
- }
58789
- }
58790
- item.obj[item.prop] = compacted;
58791
- }
58792
- }
58793
- };
58794
- var arrayToObject2 = function arrayToObject3(source, options) {
58795
- var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
58796
- for (var i2 = 0; i2 < source.length; ++i2) {
58797
- if (typeof source[i2] !== "undefined") {
58798
- obj[i2] = source[i2];
58799
- }
58800
- }
58801
- return obj;
58802
- };
58803
- var merge2 = function merge3(target, source, options) {
58804
- if (!source) {
58805
- return target;
58806
- }
58807
- if (typeof source !== "object") {
58808
- if (isArray14(target)) {
58809
- target.push(source);
58810
- } else if (target && typeof target === "object") {
58811
- if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
58812
- target[source] = true;
58813
- }
58814
- } else {
58815
- return [target, source];
58816
- }
58817
- return target;
58818
- }
58819
- if (!target || typeof target !== "object") {
58820
- return [target].concat(source);
58821
- }
58822
- var mergeTarget = target;
58823
- if (isArray14(target) && !isArray14(source)) {
58824
- mergeTarget = arrayToObject2(target, options);
58825
- }
58826
- if (isArray14(target) && isArray14(source)) {
58827
- source.forEach(function(item, i2) {
58828
- if (has.call(target, i2)) {
58829
- var targetItem = target[i2];
58830
- if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
58831
- target[i2] = merge3(targetItem, item, options);
58832
- } else {
58833
- target.push(item);
58834
- }
58835
- } else {
58836
- target[i2] = item;
58837
- }
58838
- });
58839
- return target;
58840
- }
58841
- return Object.keys(source).reduce(function(acc, key) {
58842
- var value = source[key];
58843
- if (has.call(acc, key)) {
58844
- acc[key] = merge3(acc[key], value, options);
58845
- } else {
58846
- acc[key] = value;
58847
- }
58848
- return acc;
58849
- }, mergeTarget);
58850
- };
58851
- var assign6 = function assignSingleSource(target, source) {
58852
- return Object.keys(source).reduce(function(acc, key) {
58853
- acc[key] = source[key];
58854
- return acc;
58855
- }, target);
58856
- };
58857
- var decode2 = function(str, decoder, charset) {
58858
- var strWithoutPlus = str.replace(/\+/g, " ");
58859
- if (charset === "iso-8859-1") {
58860
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
58861
- }
58862
- try {
58863
- return decodeURIComponent(strWithoutPlus);
58864
- } catch (e) {
58865
- return strWithoutPlus;
58866
- }
58867
- };
58868
- var limit = 1024;
58869
- var encode4 = function encode5(str, defaultEncoder, charset, kind, format) {
58870
- if (str.length === 0) {
58871
- return str;
58872
- }
58873
- var string = str;
58874
- if (typeof str === "symbol") {
58875
- string = Symbol.prototype.toString.call(str);
58876
- } else if (typeof str !== "string") {
58877
- string = String(str);
58878
- }
58879
- if (charset === "iso-8859-1") {
58880
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
58881
- return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
58882
- });
58883
- }
58884
- var out = "";
58885
- for (var j2 = 0; j2 < string.length; j2 += limit) {
58886
- var segment = string.length >= limit ? string.slice(j2, j2 + limit) : string;
58887
- var arr = [];
58888
- for (var i2 = 0; i2 < segment.length; ++i2) {
58889
- var c = segment.charCodeAt(i2);
58890
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
58891
- arr[arr.length] = segment.charAt(i2);
58892
- continue;
58893
- }
58894
- if (c < 128) {
58895
- arr[arr.length] = hexTable[c];
58896
- continue;
58897
- }
58898
- if (c < 2048) {
58899
- arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
58900
- continue;
58901
- }
58902
- if (c < 55296 || c >= 57344) {
58903
- arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
58904
- continue;
58905
- }
58906
- i2 += 1;
58907
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i2) & 1023);
58908
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
58909
- }
58910
- out += arr.join("");
58911
- }
58912
- return out;
58913
- };
58914
- var compact = function compact2(value) {
58915
- var queue5 = [{ obj: { o: value }, prop: "o" }];
58916
- var refs = [];
58917
- for (var i2 = 0; i2 < queue5.length; ++i2) {
58918
- var item = queue5[i2];
58919
- var obj = item.obj[item.prop];
58920
- var keys13 = Object.keys(obj);
58921
- for (var j2 = 0; j2 < keys13.length; ++j2) {
58922
- var key = keys13[j2];
58923
- var val = obj[key];
58924
- if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
58925
- queue5.push({ obj, prop: key });
58926
- refs.push(val);
58927
- }
58928
- }
58929
- }
58930
- compactQueue(queue5);
58931
- return value;
58932
- };
58933
- var isRegExp2 = function isRegExp3(obj) {
58934
- return Object.prototype.toString.call(obj) === "[object RegExp]";
58935
- };
58936
- var isBuffer3 = function isBuffer4(obj) {
58937
- if (!obj || typeof obj !== "object") {
58938
- return false;
58939
- }
58940
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
58941
- };
58942
- var combine = function combine2(a, b) {
58943
- return [].concat(a, b);
58944
- };
58945
- var maybeMap = function maybeMap2(val, fn) {
58946
- if (isArray14(val)) {
58947
- var mapped = [];
58948
- for (var i2 = 0; i2 < val.length; i2 += 1) {
58949
- mapped.push(fn(val[i2]));
58950
- }
58951
- return mapped;
58952
- }
58953
- return fn(val);
58954
- };
58955
- module2.exports = {
58956
- arrayToObject: arrayToObject2,
58957
- assign: assign6,
58958
- combine,
58959
- compact,
58960
- decode: decode2,
58961
- encode: encode4,
58962
- isBuffer: isBuffer3,
58963
- isRegExp: isRegExp2,
58964
- maybeMap,
58965
- merge: merge2
58966
- };
58967
- }
58968
- });
58969
- var require_stringify2 = __commonJS2({
58970
- "node_modules/body-parser/node_modules/qs/lib/stringify.js"(exports2, module2) {
58971
- "use strict";
58972
- var getSideChannel = require_side_channel();
58973
- var utils = require_utils6();
58974
- var formats = require_formats2();
58975
- var has = Object.prototype.hasOwnProperty;
58976
- var arrayPrefixGenerators = {
58977
- brackets: function brackets(prefix) {
58978
- return prefix + "[]";
58979
- },
58980
- comma: "comma",
58981
- indices: function indices(prefix, key) {
58982
- return prefix + "[" + key + "]";
58983
- },
58984
- repeat: function repeat(prefix) {
58985
- return prefix;
58986
- }
58987
- };
58988
- var isArray14 = Array.isArray;
58989
- var push = Array.prototype.push;
58990
- var pushToArray = function(arr, valueOrArray) {
58991
- push.apply(arr, isArray14(valueOrArray) ? valueOrArray : [valueOrArray]);
58992
- };
58993
- var toISO = Date.prototype.toISOString;
58994
- var defaultFormat = formats["default"];
58995
- var defaults2 = {
58996
- addQueryPrefix: false,
58997
- allowDots: false,
58998
- allowEmptyArrays: false,
58999
- arrayFormat: "indices",
59000
- charset: "utf-8",
59001
- charsetSentinel: false,
59002
- delimiter: "&",
59003
- encode: true,
59004
- encodeDotInKeys: false,
59005
- encoder: utils.encode,
59006
- encodeValuesOnly: false,
59007
- format: defaultFormat,
59008
- formatter: formats.formatters[defaultFormat],
59009
- // deprecated
59010
- indices: false,
59011
- serializeDate: function serializeDate(date) {
59012
- return toISO.call(date);
59013
- },
59014
- skipNulls: false,
59015
- strictNullHandling: false
59016
- };
59017
- var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
59018
- return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
59019
- };
59020
- var sentinel = {};
59021
- var stringify15 = function stringify16(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter2, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
59022
- var obj = object;
59023
- var tmpSc = sideChannel;
59024
- var step2 = 0;
59025
- var findFlag = false;
59026
- while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
59027
- var pos = tmpSc.get(object);
59028
- step2 += 1;
59029
- if (typeof pos !== "undefined") {
59030
- if (pos === step2) {
59031
- throw new RangeError("Cyclic object value");
59032
- } else {
59033
- findFlag = true;
59034
- }
59035
- }
59036
- if (typeof tmpSc.get(sentinel) === "undefined") {
59037
- step2 = 0;
59038
- }
59039
- }
59040
- if (typeof filter2 === "function") {
59041
- obj = filter2(prefix, obj);
59042
- } else if (obj instanceof Date) {
59043
- obj = serializeDate(obj);
59044
- } else if (generateArrayPrefix === "comma" && isArray14(obj)) {
59045
- obj = utils.maybeMap(obj, function(value2) {
59046
- if (value2 instanceof Date) {
59047
- return serializeDate(value2);
59048
- }
59049
- return value2;
59050
- });
59051
- }
59052
- if (obj === null) {
59053
- if (strictNullHandling) {
59054
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults2.encoder, charset, "key", format) : prefix;
59055
- }
59056
- obj = "";
59057
- }
59058
- if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
59059
- if (encoder) {
59060
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults2.encoder, charset, "key", format);
59061
- return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults2.encoder, charset, "value", format))];
59062
- }
59063
- return [formatter(prefix) + "=" + formatter(String(obj))];
59064
- }
59065
- var values3 = [];
59066
- if (typeof obj === "undefined") {
59067
- return values3;
59068
- }
59069
- var objKeys;
59070
- if (generateArrayPrefix === "comma" && isArray14(obj)) {
59071
- if (encodeValuesOnly && encoder) {
59072
- obj = utils.maybeMap(obj, encoder);
59073
- }
59074
- objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
59075
- } else if (isArray14(filter2)) {
59076
- objKeys = filter2;
59077
- } else {
59078
- var keys13 = Object.keys(obj);
59079
- objKeys = sort ? keys13.sort(sort) : keys13;
59080
- }
59081
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
59082
- var adjustedPrefix = commaRoundTrip && isArray14(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
59083
- if (allowEmptyArrays && isArray14(obj) && obj.length === 0) {
59084
- return adjustedPrefix + "[]";
59085
- }
59086
- for (var j2 = 0; j2 < objKeys.length; ++j2) {
59087
- var key = objKeys[j2];
59088
- var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
59089
- if (skipNulls && value === null) {
59090
- continue;
59091
- }
59092
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
59093
- var keyPrefix = isArray14(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
59094
- sideChannel.set(object, step2);
59095
- var valueSideChannel = getSideChannel();
59096
- valueSideChannel.set(sentinel, sideChannel);
59097
- pushToArray(values3, stringify16(
59098
- value,
59099
- keyPrefix,
59100
- generateArrayPrefix,
59101
- commaRoundTrip,
59102
- allowEmptyArrays,
59103
- strictNullHandling,
59104
- skipNulls,
59105
- encodeDotInKeys,
59106
- generateArrayPrefix === "comma" && encodeValuesOnly && isArray14(obj) ? null : encoder,
59107
- filter2,
59108
- sort,
59109
- allowDots,
59110
- serializeDate,
59111
- format,
59112
- formatter,
59113
- encodeValuesOnly,
59114
- charset,
59115
- valueSideChannel
59116
- ));
59117
- }
59118
- return values3;
59119
- };
59120
- var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
59121
- if (!opts) {
59122
- return defaults2;
59123
- }
59124
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
59125
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
59126
- }
59127
- if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
59128
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
59129
- }
59130
- if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
59131
- throw new TypeError("Encoder has to be a function.");
59132
- }
59133
- var charset = opts.charset || defaults2.charset;
59134
- if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
59135
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
59136
- }
59137
- var format = formats["default"];
59138
- if (typeof opts.format !== "undefined") {
59139
- if (!has.call(formats.formatters, opts.format)) {
59140
- throw new TypeError("Unknown format option provided.");
59141
- }
59142
- format = opts.format;
59143
- }
59144
- var formatter = formats.formatters[format];
59145
- var filter2 = defaults2.filter;
59146
- if (typeof opts.filter === "function" || isArray14(opts.filter)) {
59147
- filter2 = opts.filter;
59148
- }
59149
- var arrayFormat2;
59150
- if (opts.arrayFormat in arrayPrefixGenerators) {
59151
- arrayFormat2 = opts.arrayFormat;
59152
- } else if ("indices" in opts) {
59153
- arrayFormat2 = opts.indices ? "indices" : "repeat";
59154
- } else {
59155
- arrayFormat2 = defaults2.arrayFormat;
59156
- }
59157
- if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
59158
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
59159
- }
59160
- var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults2.allowDots : !!opts.allowDots;
59161
- return {
59162
- addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults2.addQueryPrefix,
59163
- allowDots,
59164
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults2.allowEmptyArrays,
59165
- arrayFormat: arrayFormat2,
59166
- charset,
59167
- charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults2.charsetSentinel,
59168
- commaRoundTrip: opts.commaRoundTrip,
59169
- delimiter: typeof opts.delimiter === "undefined" ? defaults2.delimiter : opts.delimiter,
59170
- encode: typeof opts.encode === "boolean" ? opts.encode : defaults2.encode,
59171
- encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults2.encodeDotInKeys,
59172
- encoder: typeof opts.encoder === "function" ? opts.encoder : defaults2.encoder,
59173
- encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults2.encodeValuesOnly,
59174
- filter: filter2,
59175
- format,
59176
- formatter,
59177
- serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults2.serializeDate,
59178
- skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults2.skipNulls,
59179
- sort: typeof opts.sort === "function" ? opts.sort : null,
59180
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults2.strictNullHandling
59181
- };
59182
- };
59183
- module2.exports = function(object, opts) {
59184
- var obj = object;
59185
- var options = normalizeStringifyOptions(opts);
59186
- var objKeys;
59187
- var filter2;
59188
- if (typeof options.filter === "function") {
59189
- filter2 = options.filter;
59190
- obj = filter2("", obj);
59191
- } else if (isArray14(options.filter)) {
59192
- filter2 = options.filter;
59193
- objKeys = filter2;
59194
- }
59195
- var keys13 = [];
59196
- if (typeof obj !== "object" || obj === null) {
59197
- return "";
59198
- }
59199
- var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
59200
- var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
59201
- if (!objKeys) {
59202
- objKeys = Object.keys(obj);
59203
- }
59204
- if (options.sort) {
59205
- objKeys.sort(options.sort);
59206
- }
59207
- var sideChannel = getSideChannel();
59208
- for (var i2 = 0; i2 < objKeys.length; ++i2) {
59209
- var key = objKeys[i2];
59210
- if (options.skipNulls && obj[key] === null) {
59211
- continue;
59212
- }
59213
- pushToArray(keys13, stringify15(
59214
- obj[key],
59215
- key,
59216
- generateArrayPrefix,
59217
- commaRoundTrip,
59218
- options.allowEmptyArrays,
59219
- options.strictNullHandling,
59220
- options.skipNulls,
59221
- options.encodeDotInKeys,
59222
- options.encode ? options.encoder : null,
59223
- options.filter,
59224
- options.sort,
59225
- options.allowDots,
59226
- options.serializeDate,
59227
- options.format,
59228
- options.formatter,
59229
- options.encodeValuesOnly,
59230
- options.charset,
59231
- sideChannel
59232
- ));
59233
- }
59234
- var joined = keys13.join(options.delimiter);
59235
- var prefix = options.addQueryPrefix === true ? "?" : "";
59236
- if (options.charsetSentinel) {
59237
- if (options.charset === "iso-8859-1") {
59238
- prefix += "utf8=%26%2310003%3B&";
59239
- } else {
59240
- prefix += "utf8=%E2%9C%93&";
59241
- }
59242
- }
59243
- return joined.length > 0 ? prefix + joined : "";
59244
- };
59245
- }
59246
- });
59247
- var require_parse2 = __commonJS2({
59248
- "node_modules/body-parser/node_modules/qs/lib/parse.js"(exports2, module2) {
59249
- "use strict";
59250
- var utils = require_utils6();
59251
- var has = Object.prototype.hasOwnProperty;
59252
- var isArray14 = Array.isArray;
59253
- var defaults2 = {
59254
- allowDots: false,
59255
- allowEmptyArrays: false,
59256
- allowPrototypes: false,
59257
- allowSparse: false,
59258
- arrayLimit: 20,
59259
- charset: "utf-8",
59260
- charsetSentinel: false,
59261
- comma: false,
59262
- decodeDotInKeys: false,
59263
- decoder: utils.decode,
59264
- delimiter: "&",
59265
- depth: 5,
59266
- duplicates: "combine",
59267
- ignoreQueryPrefix: false,
59268
- interpretNumericEntities: false,
59269
- parameterLimit: 1e3,
59270
- parseArrays: true,
59271
- plainObjects: false,
59272
- strictDepth: false,
59273
- strictNullHandling: false
59274
- };
59275
- var interpretNumericEntities = function(str) {
59276
- return str.replace(/&#(\d+);/g, function($0, numberStr) {
59277
- return String.fromCharCode(parseInt(numberStr, 10));
59278
- });
59279
- };
59280
- var parseArrayValue = function(val, options) {
59281
- if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
59282
- return val.split(",");
59283
- }
59284
- return val;
59285
- };
59286
- var isoSentinel = "utf8=%26%2310003%3B";
59287
- var charsetSentinel = "utf8=%E2%9C%93";
59288
- var parseValues = function parseQueryStringValues(str, options) {
59289
- var obj = { __proto__: null };
59290
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
59291
- cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
59292
- var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
59293
- var parts = cleanStr.split(options.delimiter, limit);
59294
- var skipIndex = -1;
59295
- var i2;
59296
- var charset = options.charset;
59297
- if (options.charsetSentinel) {
59298
- for (i2 = 0; i2 < parts.length; ++i2) {
59299
- if (parts[i2].indexOf("utf8=") === 0) {
59300
- if (parts[i2] === charsetSentinel) {
59301
- charset = "utf-8";
59302
- } else if (parts[i2] === isoSentinel) {
59303
- charset = "iso-8859-1";
59304
- }
59305
- skipIndex = i2;
59306
- i2 = parts.length;
59307
- }
59308
- }
59309
- }
59310
- for (i2 = 0; i2 < parts.length; ++i2) {
59311
- if (i2 === skipIndex) {
59312
- continue;
59313
- }
59314
- var part = parts[i2];
59315
- var bracketEqualsPos = part.indexOf("]=");
59316
- var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
59317
- var key, val;
59318
- if (pos === -1) {
59319
- key = options.decoder(part, defaults2.decoder, charset, "key");
59320
- val = options.strictNullHandling ? null : "";
59321
- } else {
59322
- key = options.decoder(part.slice(0, pos), defaults2.decoder, charset, "key");
59323
- val = utils.maybeMap(
59324
- parseArrayValue(part.slice(pos + 1), options),
59325
- function(encodedVal) {
59326
- return options.decoder(encodedVal, defaults2.decoder, charset, "value");
59327
- }
59328
- );
59329
- }
59330
- if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
59331
- val = interpretNumericEntities(val);
59332
- }
59333
- if (part.indexOf("[]=") > -1) {
59334
- val = isArray14(val) ? [val] : val;
59335
- }
59336
- var existing = has.call(obj, key);
59337
- if (existing && options.duplicates === "combine") {
59338
- obj[key] = utils.combine(obj[key], val);
59339
- } else if (!existing || options.duplicates === "last") {
59340
- obj[key] = val;
59341
- }
59342
- }
59343
- return obj;
59344
- };
59345
- var parseObject = function(chain, val, options, valuesParsed) {
59346
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
59347
- for (var i2 = chain.length - 1; i2 >= 0; --i2) {
59348
- var obj;
59349
- var root4 = chain[i2];
59350
- if (root4 === "[]" && options.parseArrays) {
59351
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : [].concat(leaf);
59352
- } else {
59353
- obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
59354
- var cleanRoot = root4.charAt(0) === "[" && root4.charAt(root4.length - 1) === "]" ? root4.slice(1, -1) : root4;
59355
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
59356
- var index2 = parseInt(decodedRoot, 10);
59357
- if (!options.parseArrays && decodedRoot === "") {
59358
- obj = { 0: leaf };
59359
- } else if (!isNaN(index2) && root4 !== decodedRoot && String(index2) === decodedRoot && index2 >= 0 && (options.parseArrays && index2 <= options.arrayLimit)) {
59360
- obj = [];
59361
- obj[index2] = leaf;
59362
- } else if (decodedRoot !== "__proto__") {
59363
- obj[decodedRoot] = leaf;
59364
- }
59365
- }
59366
- leaf = obj;
59367
- }
59368
- return leaf;
59369
- };
59370
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
59371
- if (!givenKey) {
59372
- return;
59373
- }
59374
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
59375
- var brackets = /(\[[^[\]]*])/;
59376
- var child = /(\[[^[\]]*])/g;
59377
- var segment = options.depth > 0 && brackets.exec(key);
59378
- var parent = segment ? key.slice(0, segment.index) : key;
59379
- var keys13 = [];
59380
- if (parent) {
59381
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
59382
- if (!options.allowPrototypes) {
59383
- return;
59384
- }
59385
- }
59386
- keys13.push(parent);
59387
- }
59388
- var i2 = 0;
59389
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i2 < options.depth) {
59390
- i2 += 1;
59391
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
59392
- if (!options.allowPrototypes) {
59393
- return;
59394
- }
59395
- }
59396
- keys13.push(segment[1]);
59397
- }
59398
- if (segment) {
59399
- if (options.strictDepth === true) {
59400
- throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
59401
- }
59402
- keys13.push("[" + key.slice(segment.index) + "]");
59403
- }
59404
- return parseObject(keys13, val, options, valuesParsed);
59405
- };
59406
- var normalizeParseOptions = function normalizeParseOptions2(opts) {
59407
- if (!opts) {
59408
- return defaults2;
59409
- }
59410
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
59411
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
59412
- }
59413
- if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
59414
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
59415
- }
59416
- if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
59417
- throw new TypeError("Decoder has to be a function.");
59418
- }
59419
- if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
59420
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
59421
- }
59422
- var charset = typeof opts.charset === "undefined" ? defaults2.charset : opts.charset;
59423
- var duplicates = typeof opts.duplicates === "undefined" ? defaults2.duplicates : opts.duplicates;
59424
- if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
59425
- throw new TypeError("The duplicates option must be either combine, first, or last");
59426
- }
59427
- var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults2.allowDots : !!opts.allowDots;
59428
- return {
59429
- allowDots,
59430
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults2.allowEmptyArrays,
59431
- allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults2.allowPrototypes,
59432
- allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults2.allowSparse,
59433
- arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults2.arrayLimit,
59434
- charset,
59435
- charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults2.charsetSentinel,
59436
- comma: typeof opts.comma === "boolean" ? opts.comma : defaults2.comma,
59437
- decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults2.decodeDotInKeys,
59438
- decoder: typeof opts.decoder === "function" ? opts.decoder : defaults2.decoder,
59439
- delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults2.delimiter,
59440
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
59441
- depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults2.depth,
59442
- duplicates,
59443
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
59444
- interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults2.interpretNumericEntities,
59445
- parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults2.parameterLimit,
59446
- parseArrays: opts.parseArrays !== false,
59447
- plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults2.plainObjects,
59448
- strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults2.strictDepth,
59449
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults2.strictNullHandling
59450
- };
59451
- };
59452
- module2.exports = function(str, opts) {
59453
- var options = normalizeParseOptions(opts);
59454
- if (str === "" || str === null || typeof str === "undefined") {
59455
- return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
59456
- }
59457
- var tempObj = typeof str === "string" ? parseValues(str, options) : str;
59458
- var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
59459
- var keys13 = Object.keys(tempObj);
59460
- for (var i2 = 0; i2 < keys13.length; ++i2) {
59461
- var key = keys13[i2];
59462
- var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
59463
- obj = utils.merge(obj, newObj, options);
59464
- }
59465
- if (options.allowSparse === true) {
59466
- return obj;
59467
- }
59468
- return utils.compact(obj);
59469
- };
59470
- }
59471
- });
59472
- var require_lib5 = __commonJS2({
59473
- "node_modules/body-parser/node_modules/qs/lib/index.js"(exports2, module2) {
59474
- "use strict";
59475
- var stringify15 = require_stringify2();
59476
- var parse7 = require_parse2();
59477
- var formats = require_formats2();
59478
- module2.exports = {
59479
- formats,
59480
- parse: parse7,
59481
- stringify: stringify15
59482
- };
59483
- }
59484
- });
59485
59115
  var require_urlencoded = __commonJS2({
59486
59116
  "node_modules/body-parser/lib/types/urlencoded.js"(exports2, module2) {
59487
59117
  "use strict";
@@ -59504,7 +59134,6 @@ var require_urlencoded = __commonJS2({
59504
59134
  var limit = typeof opts.limit !== "number" ? bytes.parse(opts.limit || "100kb") : opts.limit;
59505
59135
  var type = opts.type || "application/x-www-form-urlencoded";
59506
59136
  var verify = opts.verify || false;
59507
- var depth = typeof opts.depth !== "number" ? Number(opts.depth || 32) : opts.depth;
59508
59137
  if (verify !== false && typeof verify !== "function") {
59509
59138
  throw new TypeError("option verify must be function");
59510
59139
  }
@@ -59545,14 +59174,13 @@ var require_urlencoded = __commonJS2({
59545
59174
  encoding: charset,
59546
59175
  inflate,
59547
59176
  limit,
59548
- verify,
59549
- depth
59177
+ verify
59550
59178
  });
59551
59179
  };
59552
59180
  }
59553
59181
  function extendedparser(options) {
59554
59182
  var parameterLimit = options.parameterLimit !== void 0 ? options.parameterLimit : 1e3;
59555
- var depth = typeof options.depth !== "number" ? Number(options.depth || 32) : options.depth;
59183
+ var depth = options.depth !== void 0 ? options.depth : 32;
59556
59184
  var parse7 = parser("qs");
59557
59185
  if (isNaN(parameterLimit) || parameterLimit < 1) {
59558
59186
  throw new TypeError("option parameterLimit must be a positive number");
@@ -59618,7 +59246,7 @@ var require_urlencoded = __commonJS2({
59618
59246
  }
59619
59247
  switch (name) {
59620
59248
  case "qs":
59621
- mod = require_lib5();
59249
+ mod = require_lib();
59622
59250
  break;
59623
59251
  case "querystring":
59624
59252
  mod = __require2("querystring");
@@ -60314,6 +59942,144 @@ var require_parseurl = __commonJS2({
60314
59942
  }
60315
59943
  }
60316
59944
  });
59945
+ var require_codes3 = __commonJS2({
59946
+ "node_modules/statuses/codes.json"(exports2, module2) {
59947
+ module2.exports = {
59948
+ "100": "Continue",
59949
+ "101": "Switching Protocols",
59950
+ "102": "Processing",
59951
+ "103": "Early Hints",
59952
+ "200": "OK",
59953
+ "201": "Created",
59954
+ "202": "Accepted",
59955
+ "203": "Non-Authoritative Information",
59956
+ "204": "No Content",
59957
+ "205": "Reset Content",
59958
+ "206": "Partial Content",
59959
+ "207": "Multi-Status",
59960
+ "208": "Already Reported",
59961
+ "226": "IM Used",
59962
+ "300": "Multiple Choices",
59963
+ "301": "Moved Permanently",
59964
+ "302": "Found",
59965
+ "303": "See Other",
59966
+ "304": "Not Modified",
59967
+ "305": "Use Proxy",
59968
+ "307": "Temporary Redirect",
59969
+ "308": "Permanent Redirect",
59970
+ "400": "Bad Request",
59971
+ "401": "Unauthorized",
59972
+ "402": "Payment Required",
59973
+ "403": "Forbidden",
59974
+ "404": "Not Found",
59975
+ "405": "Method Not Allowed",
59976
+ "406": "Not Acceptable",
59977
+ "407": "Proxy Authentication Required",
59978
+ "408": "Request Timeout",
59979
+ "409": "Conflict",
59980
+ "410": "Gone",
59981
+ "411": "Length Required",
59982
+ "412": "Precondition Failed",
59983
+ "413": "Payload Too Large",
59984
+ "414": "URI Too Long",
59985
+ "415": "Unsupported Media Type",
59986
+ "416": "Range Not Satisfiable",
59987
+ "417": "Expectation Failed",
59988
+ "418": "I'm a Teapot",
59989
+ "421": "Misdirected Request",
59990
+ "422": "Unprocessable Entity",
59991
+ "423": "Locked",
59992
+ "424": "Failed Dependency",
59993
+ "425": "Too Early",
59994
+ "426": "Upgrade Required",
59995
+ "428": "Precondition Required",
59996
+ "429": "Too Many Requests",
59997
+ "431": "Request Header Fields Too Large",
59998
+ "451": "Unavailable For Legal Reasons",
59999
+ "500": "Internal Server Error",
60000
+ "501": "Not Implemented",
60001
+ "502": "Bad Gateway",
60002
+ "503": "Service Unavailable",
60003
+ "504": "Gateway Timeout",
60004
+ "505": "HTTP Version Not Supported",
60005
+ "506": "Variant Also Negotiates",
60006
+ "507": "Insufficient Storage",
60007
+ "508": "Loop Detected",
60008
+ "509": "Bandwidth Limit Exceeded",
60009
+ "510": "Not Extended",
60010
+ "511": "Network Authentication Required"
60011
+ };
60012
+ }
60013
+ });
60014
+ var require_statuses3 = __commonJS2({
60015
+ "node_modules/statuses/index.js"(exports2, module2) {
60016
+ "use strict";
60017
+ var codes = require_codes3();
60018
+ module2.exports = status;
60019
+ status.message = codes;
60020
+ status.code = createMessageToStatusCodeMap(codes);
60021
+ status.codes = createStatusCodeList(codes);
60022
+ status.redirect = {
60023
+ 300: true,
60024
+ 301: true,
60025
+ 302: true,
60026
+ 303: true,
60027
+ 305: true,
60028
+ 307: true,
60029
+ 308: true
60030
+ };
60031
+ status.empty = {
60032
+ 204: true,
60033
+ 205: true,
60034
+ 304: true
60035
+ };
60036
+ status.retry = {
60037
+ 502: true,
60038
+ 503: true,
60039
+ 504: true
60040
+ };
60041
+ function createMessageToStatusCodeMap(codes2) {
60042
+ var map4 = {};
60043
+ Object.keys(codes2).forEach(function forEachCode(code) {
60044
+ var message = codes2[code];
60045
+ var status2 = Number(code);
60046
+ map4[message.toLowerCase()] = status2;
60047
+ });
60048
+ return map4;
60049
+ }
60050
+ function createStatusCodeList(codes2) {
60051
+ return Object.keys(codes2).map(function mapCode(code) {
60052
+ return Number(code);
60053
+ });
60054
+ }
60055
+ function getStatusCode(message) {
60056
+ var msg = message.toLowerCase();
60057
+ if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
60058
+ throw new Error('invalid status message: "' + message + '"');
60059
+ }
60060
+ return status.code[msg];
60061
+ }
60062
+ function getStatusMessage(code) {
60063
+ if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
60064
+ throw new Error("invalid status code: " + code);
60065
+ }
60066
+ return status.message[code];
60067
+ }
60068
+ function status(code) {
60069
+ if (typeof code === "number") {
60070
+ return getStatusMessage(code);
60071
+ }
60072
+ if (typeof code !== "string") {
60073
+ throw new TypeError("code must be a number or string");
60074
+ }
60075
+ var n = parseInt(code, 10);
60076
+ if (!isNaN(n)) {
60077
+ return getStatusMessage(n);
60078
+ }
60079
+ return getStatusCode(code);
60080
+ }
60081
+ }
60082
+ });
60317
60083
  var require_finalhandler = __commonJS2({
60318
60084
  "node_modules/finalhandler/index.js"(exports2, module2) {
60319
60085
  "use strict";
@@ -60322,7 +60088,7 @@ var require_finalhandler = __commonJS2({
60322
60088
  var escapeHtml = require_escape_html();
60323
60089
  var onFinished = require_on_finished2();
60324
60090
  var parseUrl3 = require_parseurl();
60325
- var statuses = require_statuses();
60091
+ var statuses = require_statuses3();
60326
60092
  var unpipe = require_unpipe();
60327
60093
  var DOUBLE_SPACE_REGEXP = /\x20{2}/g;
60328
60094
  var NEWLINE_REGEXP = /\n/g;
@@ -61678,755 +61444,12 @@ var require_init = __commonJS2({
61678
61444
  };
61679
61445
  }
61680
61446
  });
61681
- var require_formats3 = __commonJS2({
61682
- "node_modules/express/node_modules/qs/lib/formats.js"(exports2, module2) {
61683
- "use strict";
61684
- var replace = String.prototype.replace;
61685
- var percentTwenties = /%20/g;
61686
- var Format = {
61687
- RFC1738: "RFC1738",
61688
- RFC3986: "RFC3986"
61689
- };
61690
- module2.exports = {
61691
- "default": Format.RFC3986,
61692
- formatters: {
61693
- RFC1738: function(value) {
61694
- return replace.call(value, percentTwenties, "+");
61695
- },
61696
- RFC3986: function(value) {
61697
- return String(value);
61698
- }
61699
- },
61700
- RFC1738: Format.RFC1738,
61701
- RFC3986: Format.RFC3986
61702
- };
61703
- }
61704
- });
61705
- var require_utils7 = __commonJS2({
61706
- "node_modules/express/node_modules/qs/lib/utils.js"(exports2, module2) {
61707
- "use strict";
61708
- var formats = require_formats3();
61709
- var has = Object.prototype.hasOwnProperty;
61710
- var isArray14 = Array.isArray;
61711
- var hexTable = (function() {
61712
- var array = [];
61713
- for (var i2 = 0; i2 < 256; ++i2) {
61714
- array.push("%" + ((i2 < 16 ? "0" : "") + i2.toString(16)).toUpperCase());
61715
- }
61716
- return array;
61717
- })();
61718
- var compactQueue = function compactQueue2(queue5) {
61719
- while (queue5.length > 1) {
61720
- var item = queue5.pop();
61721
- var obj = item.obj[item.prop];
61722
- if (isArray14(obj)) {
61723
- var compacted = [];
61724
- for (var j2 = 0; j2 < obj.length; ++j2) {
61725
- if (typeof obj[j2] !== "undefined") {
61726
- compacted.push(obj[j2]);
61727
- }
61728
- }
61729
- item.obj[item.prop] = compacted;
61730
- }
61731
- }
61732
- };
61733
- var arrayToObject2 = function arrayToObject3(source, options) {
61734
- var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
61735
- for (var i2 = 0; i2 < source.length; ++i2) {
61736
- if (typeof source[i2] !== "undefined") {
61737
- obj[i2] = source[i2];
61738
- }
61739
- }
61740
- return obj;
61741
- };
61742
- var merge2 = function merge3(target, source, options) {
61743
- if (!source) {
61744
- return target;
61745
- }
61746
- if (typeof source !== "object") {
61747
- if (isArray14(target)) {
61748
- target.push(source);
61749
- } else if (target && typeof target === "object") {
61750
- if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
61751
- target[source] = true;
61752
- }
61753
- } else {
61754
- return [target, source];
61755
- }
61756
- return target;
61757
- }
61758
- if (!target || typeof target !== "object") {
61759
- return [target].concat(source);
61760
- }
61761
- var mergeTarget = target;
61762
- if (isArray14(target) && !isArray14(source)) {
61763
- mergeTarget = arrayToObject2(target, options);
61764
- }
61765
- if (isArray14(target) && isArray14(source)) {
61766
- source.forEach(function(item, i2) {
61767
- if (has.call(target, i2)) {
61768
- var targetItem = target[i2];
61769
- if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
61770
- target[i2] = merge3(targetItem, item, options);
61771
- } else {
61772
- target.push(item);
61773
- }
61774
- } else {
61775
- target[i2] = item;
61776
- }
61777
- });
61778
- return target;
61779
- }
61780
- return Object.keys(source).reduce(function(acc, key) {
61781
- var value = source[key];
61782
- if (has.call(acc, key)) {
61783
- acc[key] = merge3(acc[key], value, options);
61784
- } else {
61785
- acc[key] = value;
61786
- }
61787
- return acc;
61788
- }, mergeTarget);
61789
- };
61790
- var assign6 = function assignSingleSource(target, source) {
61791
- return Object.keys(source).reduce(function(acc, key) {
61792
- acc[key] = source[key];
61793
- return acc;
61794
- }, target);
61795
- };
61796
- var decode2 = function(str, decoder, charset) {
61797
- var strWithoutPlus = str.replace(/\+/g, " ");
61798
- if (charset === "iso-8859-1") {
61799
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
61800
- }
61801
- try {
61802
- return decodeURIComponent(strWithoutPlus);
61803
- } catch (e) {
61804
- return strWithoutPlus;
61805
- }
61806
- };
61807
- var limit = 1024;
61808
- var encode4 = function encode5(str, defaultEncoder, charset, kind, format) {
61809
- if (str.length === 0) {
61810
- return str;
61811
- }
61812
- var string = str;
61813
- if (typeof str === "symbol") {
61814
- string = Symbol.prototype.toString.call(str);
61815
- } else if (typeof str !== "string") {
61816
- string = String(str);
61817
- }
61818
- if (charset === "iso-8859-1") {
61819
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
61820
- return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
61821
- });
61822
- }
61823
- var out = "";
61824
- for (var j2 = 0; j2 < string.length; j2 += limit) {
61825
- var segment = string.length >= limit ? string.slice(j2, j2 + limit) : string;
61826
- var arr = [];
61827
- for (var i2 = 0; i2 < segment.length; ++i2) {
61828
- var c = segment.charCodeAt(i2);
61829
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
61830
- arr[arr.length] = segment.charAt(i2);
61831
- continue;
61832
- }
61833
- if (c < 128) {
61834
- arr[arr.length] = hexTable[c];
61835
- continue;
61836
- }
61837
- if (c < 2048) {
61838
- arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
61839
- continue;
61840
- }
61841
- if (c < 55296 || c >= 57344) {
61842
- arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
61843
- continue;
61844
- }
61845
- i2 += 1;
61846
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i2) & 1023);
61847
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
61848
- }
61849
- out += arr.join("");
61850
- }
61851
- return out;
61852
- };
61853
- var compact = function compact2(value) {
61854
- var queue5 = [{ obj: { o: value }, prop: "o" }];
61855
- var refs = [];
61856
- for (var i2 = 0; i2 < queue5.length; ++i2) {
61857
- var item = queue5[i2];
61858
- var obj = item.obj[item.prop];
61859
- var keys13 = Object.keys(obj);
61860
- for (var j2 = 0; j2 < keys13.length; ++j2) {
61861
- var key = keys13[j2];
61862
- var val = obj[key];
61863
- if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
61864
- queue5.push({ obj, prop: key });
61865
- refs.push(val);
61866
- }
61867
- }
61868
- }
61869
- compactQueue(queue5);
61870
- return value;
61871
- };
61872
- var isRegExp2 = function isRegExp3(obj) {
61873
- return Object.prototype.toString.call(obj) === "[object RegExp]";
61874
- };
61875
- var isBuffer3 = function isBuffer4(obj) {
61876
- if (!obj || typeof obj !== "object") {
61877
- return false;
61878
- }
61879
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
61880
- };
61881
- var combine = function combine2(a, b) {
61882
- return [].concat(a, b);
61883
- };
61884
- var maybeMap = function maybeMap2(val, fn) {
61885
- if (isArray14(val)) {
61886
- var mapped = [];
61887
- for (var i2 = 0; i2 < val.length; i2 += 1) {
61888
- mapped.push(fn(val[i2]));
61889
- }
61890
- return mapped;
61891
- }
61892
- return fn(val);
61893
- };
61894
- module2.exports = {
61895
- arrayToObject: arrayToObject2,
61896
- assign: assign6,
61897
- combine,
61898
- compact,
61899
- decode: decode2,
61900
- encode: encode4,
61901
- isBuffer: isBuffer3,
61902
- isRegExp: isRegExp2,
61903
- maybeMap,
61904
- merge: merge2
61905
- };
61906
- }
61907
- });
61908
- var require_stringify3 = __commonJS2({
61909
- "node_modules/express/node_modules/qs/lib/stringify.js"(exports2, module2) {
61910
- "use strict";
61911
- var getSideChannel = require_side_channel();
61912
- var utils = require_utils7();
61913
- var formats = require_formats3();
61914
- var has = Object.prototype.hasOwnProperty;
61915
- var arrayPrefixGenerators = {
61916
- brackets: function brackets(prefix) {
61917
- return prefix + "[]";
61918
- },
61919
- comma: "comma",
61920
- indices: function indices(prefix, key) {
61921
- return prefix + "[" + key + "]";
61922
- },
61923
- repeat: function repeat(prefix) {
61924
- return prefix;
61925
- }
61926
- };
61927
- var isArray14 = Array.isArray;
61928
- var push = Array.prototype.push;
61929
- var pushToArray = function(arr, valueOrArray) {
61930
- push.apply(arr, isArray14(valueOrArray) ? valueOrArray : [valueOrArray]);
61931
- };
61932
- var toISO = Date.prototype.toISOString;
61933
- var defaultFormat = formats["default"];
61934
- var defaults2 = {
61935
- addQueryPrefix: false,
61936
- allowDots: false,
61937
- allowEmptyArrays: false,
61938
- arrayFormat: "indices",
61939
- charset: "utf-8",
61940
- charsetSentinel: false,
61941
- delimiter: "&",
61942
- encode: true,
61943
- encodeDotInKeys: false,
61944
- encoder: utils.encode,
61945
- encodeValuesOnly: false,
61946
- format: defaultFormat,
61947
- formatter: formats.formatters[defaultFormat],
61948
- // deprecated
61949
- indices: false,
61950
- serializeDate: function serializeDate(date) {
61951
- return toISO.call(date);
61952
- },
61953
- skipNulls: false,
61954
- strictNullHandling: false
61955
- };
61956
- var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
61957
- return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
61958
- };
61959
- var sentinel = {};
61960
- var stringify15 = function stringify16(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter2, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
61961
- var obj = object;
61962
- var tmpSc = sideChannel;
61963
- var step2 = 0;
61964
- var findFlag = false;
61965
- while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
61966
- var pos = tmpSc.get(object);
61967
- step2 += 1;
61968
- if (typeof pos !== "undefined") {
61969
- if (pos === step2) {
61970
- throw new RangeError("Cyclic object value");
61971
- } else {
61972
- findFlag = true;
61973
- }
61974
- }
61975
- if (typeof tmpSc.get(sentinel) === "undefined") {
61976
- step2 = 0;
61977
- }
61978
- }
61979
- if (typeof filter2 === "function") {
61980
- obj = filter2(prefix, obj);
61981
- } else if (obj instanceof Date) {
61982
- obj = serializeDate(obj);
61983
- } else if (generateArrayPrefix === "comma" && isArray14(obj)) {
61984
- obj = utils.maybeMap(obj, function(value2) {
61985
- if (value2 instanceof Date) {
61986
- return serializeDate(value2);
61987
- }
61988
- return value2;
61989
- });
61990
- }
61991
- if (obj === null) {
61992
- if (strictNullHandling) {
61993
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults2.encoder, charset, "key", format) : prefix;
61994
- }
61995
- obj = "";
61996
- }
61997
- if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
61998
- if (encoder) {
61999
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults2.encoder, charset, "key", format);
62000
- return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults2.encoder, charset, "value", format))];
62001
- }
62002
- return [formatter(prefix) + "=" + formatter(String(obj))];
62003
- }
62004
- var values3 = [];
62005
- if (typeof obj === "undefined") {
62006
- return values3;
62007
- }
62008
- var objKeys;
62009
- if (generateArrayPrefix === "comma" && isArray14(obj)) {
62010
- if (encodeValuesOnly && encoder) {
62011
- obj = utils.maybeMap(obj, encoder);
62012
- }
62013
- objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
62014
- } else if (isArray14(filter2)) {
62015
- objKeys = filter2;
62016
- } else {
62017
- var keys13 = Object.keys(obj);
62018
- objKeys = sort ? keys13.sort(sort) : keys13;
62019
- }
62020
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
62021
- var adjustedPrefix = commaRoundTrip && isArray14(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
62022
- if (allowEmptyArrays && isArray14(obj) && obj.length === 0) {
62023
- return adjustedPrefix + "[]";
62024
- }
62025
- for (var j2 = 0; j2 < objKeys.length; ++j2) {
62026
- var key = objKeys[j2];
62027
- var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
62028
- if (skipNulls && value === null) {
62029
- continue;
62030
- }
62031
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
62032
- var keyPrefix = isArray14(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
62033
- sideChannel.set(object, step2);
62034
- var valueSideChannel = getSideChannel();
62035
- valueSideChannel.set(sentinel, sideChannel);
62036
- pushToArray(values3, stringify16(
62037
- value,
62038
- keyPrefix,
62039
- generateArrayPrefix,
62040
- commaRoundTrip,
62041
- allowEmptyArrays,
62042
- strictNullHandling,
62043
- skipNulls,
62044
- encodeDotInKeys,
62045
- generateArrayPrefix === "comma" && encodeValuesOnly && isArray14(obj) ? null : encoder,
62046
- filter2,
62047
- sort,
62048
- allowDots,
62049
- serializeDate,
62050
- format,
62051
- formatter,
62052
- encodeValuesOnly,
62053
- charset,
62054
- valueSideChannel
62055
- ));
62056
- }
62057
- return values3;
62058
- };
62059
- var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
62060
- if (!opts) {
62061
- return defaults2;
62062
- }
62063
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
62064
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
62065
- }
62066
- if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
62067
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
62068
- }
62069
- if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
62070
- throw new TypeError("Encoder has to be a function.");
62071
- }
62072
- var charset = opts.charset || defaults2.charset;
62073
- if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
62074
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
62075
- }
62076
- var format = formats["default"];
62077
- if (typeof opts.format !== "undefined") {
62078
- if (!has.call(formats.formatters, opts.format)) {
62079
- throw new TypeError("Unknown format option provided.");
62080
- }
62081
- format = opts.format;
62082
- }
62083
- var formatter = formats.formatters[format];
62084
- var filter2 = defaults2.filter;
62085
- if (typeof opts.filter === "function" || isArray14(opts.filter)) {
62086
- filter2 = opts.filter;
62087
- }
62088
- var arrayFormat2;
62089
- if (opts.arrayFormat in arrayPrefixGenerators) {
62090
- arrayFormat2 = opts.arrayFormat;
62091
- } else if ("indices" in opts) {
62092
- arrayFormat2 = opts.indices ? "indices" : "repeat";
62093
- } else {
62094
- arrayFormat2 = defaults2.arrayFormat;
62095
- }
62096
- if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
62097
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
62098
- }
62099
- var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults2.allowDots : !!opts.allowDots;
62100
- return {
62101
- addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults2.addQueryPrefix,
62102
- allowDots,
62103
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults2.allowEmptyArrays,
62104
- arrayFormat: arrayFormat2,
62105
- charset,
62106
- charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults2.charsetSentinel,
62107
- commaRoundTrip: opts.commaRoundTrip,
62108
- delimiter: typeof opts.delimiter === "undefined" ? defaults2.delimiter : opts.delimiter,
62109
- encode: typeof opts.encode === "boolean" ? opts.encode : defaults2.encode,
62110
- encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults2.encodeDotInKeys,
62111
- encoder: typeof opts.encoder === "function" ? opts.encoder : defaults2.encoder,
62112
- encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults2.encodeValuesOnly,
62113
- filter: filter2,
62114
- format,
62115
- formatter,
62116
- serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults2.serializeDate,
62117
- skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults2.skipNulls,
62118
- sort: typeof opts.sort === "function" ? opts.sort : null,
62119
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults2.strictNullHandling
62120
- };
62121
- };
62122
- module2.exports = function(object, opts) {
62123
- var obj = object;
62124
- var options = normalizeStringifyOptions(opts);
62125
- var objKeys;
62126
- var filter2;
62127
- if (typeof options.filter === "function") {
62128
- filter2 = options.filter;
62129
- obj = filter2("", obj);
62130
- } else if (isArray14(options.filter)) {
62131
- filter2 = options.filter;
62132
- objKeys = filter2;
62133
- }
62134
- var keys13 = [];
62135
- if (typeof obj !== "object" || obj === null) {
62136
- return "";
62137
- }
62138
- var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
62139
- var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
62140
- if (!objKeys) {
62141
- objKeys = Object.keys(obj);
62142
- }
62143
- if (options.sort) {
62144
- objKeys.sort(options.sort);
62145
- }
62146
- var sideChannel = getSideChannel();
62147
- for (var i2 = 0; i2 < objKeys.length; ++i2) {
62148
- var key = objKeys[i2];
62149
- if (options.skipNulls && obj[key] === null) {
62150
- continue;
62151
- }
62152
- pushToArray(keys13, stringify15(
62153
- obj[key],
62154
- key,
62155
- generateArrayPrefix,
62156
- commaRoundTrip,
62157
- options.allowEmptyArrays,
62158
- options.strictNullHandling,
62159
- options.skipNulls,
62160
- options.encodeDotInKeys,
62161
- options.encode ? options.encoder : null,
62162
- options.filter,
62163
- options.sort,
62164
- options.allowDots,
62165
- options.serializeDate,
62166
- options.format,
62167
- options.formatter,
62168
- options.encodeValuesOnly,
62169
- options.charset,
62170
- sideChannel
62171
- ));
62172
- }
62173
- var joined = keys13.join(options.delimiter);
62174
- var prefix = options.addQueryPrefix === true ? "?" : "";
62175
- if (options.charsetSentinel) {
62176
- if (options.charset === "iso-8859-1") {
62177
- prefix += "utf8=%26%2310003%3B&";
62178
- } else {
62179
- prefix += "utf8=%E2%9C%93&";
62180
- }
62181
- }
62182
- return joined.length > 0 ? prefix + joined : "";
62183
- };
62184
- }
62185
- });
62186
- var require_parse3 = __commonJS2({
62187
- "node_modules/express/node_modules/qs/lib/parse.js"(exports2, module2) {
62188
- "use strict";
62189
- var utils = require_utils7();
62190
- var has = Object.prototype.hasOwnProperty;
62191
- var isArray14 = Array.isArray;
62192
- var defaults2 = {
62193
- allowDots: false,
62194
- allowEmptyArrays: false,
62195
- allowPrototypes: false,
62196
- allowSparse: false,
62197
- arrayLimit: 20,
62198
- charset: "utf-8",
62199
- charsetSentinel: false,
62200
- comma: false,
62201
- decodeDotInKeys: false,
62202
- decoder: utils.decode,
62203
- delimiter: "&",
62204
- depth: 5,
62205
- duplicates: "combine",
62206
- ignoreQueryPrefix: false,
62207
- interpretNumericEntities: false,
62208
- parameterLimit: 1e3,
62209
- parseArrays: true,
62210
- plainObjects: false,
62211
- strictDepth: false,
62212
- strictNullHandling: false
62213
- };
62214
- var interpretNumericEntities = function(str) {
62215
- return str.replace(/&#(\d+);/g, function($0, numberStr) {
62216
- return String.fromCharCode(parseInt(numberStr, 10));
62217
- });
62218
- };
62219
- var parseArrayValue = function(val, options) {
62220
- if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
62221
- return val.split(",");
62222
- }
62223
- return val;
62224
- };
62225
- var isoSentinel = "utf8=%26%2310003%3B";
62226
- var charsetSentinel = "utf8=%E2%9C%93";
62227
- var parseValues = function parseQueryStringValues(str, options) {
62228
- var obj = { __proto__: null };
62229
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
62230
- cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
62231
- var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
62232
- var parts = cleanStr.split(options.delimiter, limit);
62233
- var skipIndex = -1;
62234
- var i2;
62235
- var charset = options.charset;
62236
- if (options.charsetSentinel) {
62237
- for (i2 = 0; i2 < parts.length; ++i2) {
62238
- if (parts[i2].indexOf("utf8=") === 0) {
62239
- if (parts[i2] === charsetSentinel) {
62240
- charset = "utf-8";
62241
- } else if (parts[i2] === isoSentinel) {
62242
- charset = "iso-8859-1";
62243
- }
62244
- skipIndex = i2;
62245
- i2 = parts.length;
62246
- }
62247
- }
62248
- }
62249
- for (i2 = 0; i2 < parts.length; ++i2) {
62250
- if (i2 === skipIndex) {
62251
- continue;
62252
- }
62253
- var part = parts[i2];
62254
- var bracketEqualsPos = part.indexOf("]=");
62255
- var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
62256
- var key, val;
62257
- if (pos === -1) {
62258
- key = options.decoder(part, defaults2.decoder, charset, "key");
62259
- val = options.strictNullHandling ? null : "";
62260
- } else {
62261
- key = options.decoder(part.slice(0, pos), defaults2.decoder, charset, "key");
62262
- val = utils.maybeMap(
62263
- parseArrayValue(part.slice(pos + 1), options),
62264
- function(encodedVal) {
62265
- return options.decoder(encodedVal, defaults2.decoder, charset, "value");
62266
- }
62267
- );
62268
- }
62269
- if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
62270
- val = interpretNumericEntities(val);
62271
- }
62272
- if (part.indexOf("[]=") > -1) {
62273
- val = isArray14(val) ? [val] : val;
62274
- }
62275
- var existing = has.call(obj, key);
62276
- if (existing && options.duplicates === "combine") {
62277
- obj[key] = utils.combine(obj[key], val);
62278
- } else if (!existing || options.duplicates === "last") {
62279
- obj[key] = val;
62280
- }
62281
- }
62282
- return obj;
62283
- };
62284
- var parseObject = function(chain, val, options, valuesParsed) {
62285
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
62286
- for (var i2 = chain.length - 1; i2 >= 0; --i2) {
62287
- var obj;
62288
- var root4 = chain[i2];
62289
- if (root4 === "[]" && options.parseArrays) {
62290
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : [].concat(leaf);
62291
- } else {
62292
- obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
62293
- var cleanRoot = root4.charAt(0) === "[" && root4.charAt(root4.length - 1) === "]" ? root4.slice(1, -1) : root4;
62294
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
62295
- var index2 = parseInt(decodedRoot, 10);
62296
- if (!options.parseArrays && decodedRoot === "") {
62297
- obj = { 0: leaf };
62298
- } else if (!isNaN(index2) && root4 !== decodedRoot && String(index2) === decodedRoot && index2 >= 0 && (options.parseArrays && index2 <= options.arrayLimit)) {
62299
- obj = [];
62300
- obj[index2] = leaf;
62301
- } else if (decodedRoot !== "__proto__") {
62302
- obj[decodedRoot] = leaf;
62303
- }
62304
- }
62305
- leaf = obj;
62306
- }
62307
- return leaf;
62308
- };
62309
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
62310
- if (!givenKey) {
62311
- return;
62312
- }
62313
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
62314
- var brackets = /(\[[^[\]]*])/;
62315
- var child = /(\[[^[\]]*])/g;
62316
- var segment = options.depth > 0 && brackets.exec(key);
62317
- var parent = segment ? key.slice(0, segment.index) : key;
62318
- var keys13 = [];
62319
- if (parent) {
62320
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
62321
- if (!options.allowPrototypes) {
62322
- return;
62323
- }
62324
- }
62325
- keys13.push(parent);
62326
- }
62327
- var i2 = 0;
62328
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i2 < options.depth) {
62329
- i2 += 1;
62330
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
62331
- if (!options.allowPrototypes) {
62332
- return;
62333
- }
62334
- }
62335
- keys13.push(segment[1]);
62336
- }
62337
- if (segment) {
62338
- if (options.strictDepth === true) {
62339
- throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
62340
- }
62341
- keys13.push("[" + key.slice(segment.index) + "]");
62342
- }
62343
- return parseObject(keys13, val, options, valuesParsed);
62344
- };
62345
- var normalizeParseOptions = function normalizeParseOptions2(opts) {
62346
- if (!opts) {
62347
- return defaults2;
62348
- }
62349
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
62350
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
62351
- }
62352
- if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
62353
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
62354
- }
62355
- if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
62356
- throw new TypeError("Decoder has to be a function.");
62357
- }
62358
- if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
62359
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
62360
- }
62361
- var charset = typeof opts.charset === "undefined" ? defaults2.charset : opts.charset;
62362
- var duplicates = typeof opts.duplicates === "undefined" ? defaults2.duplicates : opts.duplicates;
62363
- if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
62364
- throw new TypeError("The duplicates option must be either combine, first, or last");
62365
- }
62366
- var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults2.allowDots : !!opts.allowDots;
62367
- return {
62368
- allowDots,
62369
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults2.allowEmptyArrays,
62370
- allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults2.allowPrototypes,
62371
- allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults2.allowSparse,
62372
- arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults2.arrayLimit,
62373
- charset,
62374
- charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults2.charsetSentinel,
62375
- comma: typeof opts.comma === "boolean" ? opts.comma : defaults2.comma,
62376
- decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults2.decodeDotInKeys,
62377
- decoder: typeof opts.decoder === "function" ? opts.decoder : defaults2.decoder,
62378
- delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults2.delimiter,
62379
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
62380
- depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults2.depth,
62381
- duplicates,
62382
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
62383
- interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults2.interpretNumericEntities,
62384
- parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults2.parameterLimit,
62385
- parseArrays: opts.parseArrays !== false,
62386
- plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults2.plainObjects,
62387
- strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults2.strictDepth,
62388
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults2.strictNullHandling
62389
- };
62390
- };
62391
- module2.exports = function(str, opts) {
62392
- var options = normalizeParseOptions(opts);
62393
- if (str === "" || str === null || typeof str === "undefined") {
62394
- return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
62395
- }
62396
- var tempObj = typeof str === "string" ? parseValues(str, options) : str;
62397
- var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
62398
- var keys13 = Object.keys(tempObj);
62399
- for (var i2 = 0; i2 < keys13.length; ++i2) {
62400
- var key = keys13[i2];
62401
- var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
62402
- obj = utils.merge(obj, newObj, options);
62403
- }
62404
- if (options.allowSparse === true) {
62405
- return obj;
62406
- }
62407
- return utils.compact(obj);
62408
- };
62409
- }
62410
- });
62411
- var require_lib6 = __commonJS2({
62412
- "node_modules/express/node_modules/qs/lib/index.js"(exports2, module2) {
62413
- "use strict";
62414
- var stringify15 = require_stringify3();
62415
- var parse7 = require_parse3();
62416
- var formats = require_formats3();
62417
- module2.exports = {
62418
- formats,
62419
- parse: parse7,
62420
- stringify: stringify15
62421
- };
62422
- }
62423
- });
62424
61447
  var require_query = __commonJS2({
62425
61448
  "node_modules/express/lib/middleware/query.js"(exports2, module2) {
62426
61449
  "use strict";
62427
61450
  var merge2 = require_utils_merge();
62428
61451
  var parseUrl3 = require_parseurl();
62429
- var qs3 = require_lib6();
61452
+ var qs3 = require_lib();
62430
61453
  module2.exports = function query(options) {
62431
61454
  var opts = merge2({}, options);
62432
61455
  var queryparse = qs3.parse;
@@ -62743,6 +61766,168 @@ var require_content_disposition = __commonJS2({
62743
61766
  }
62744
61767
  }
62745
61768
  });
61769
+ var require_http_errors3 = __commonJS2({
61770
+ "node_modules/http-errors/index.js"(exports2, module2) {
61771
+ "use strict";
61772
+ var deprecate = require_depd()("http-errors");
61773
+ var setPrototypeOf = require_setprototypeof();
61774
+ var statuses = require_statuses3();
61775
+ var inherits2 = require_inherits();
61776
+ var toIdentifier = require_toidentifier();
61777
+ module2.exports = createError;
61778
+ module2.exports.HttpError = createHttpErrorConstructor();
61779
+ module2.exports.isHttpError = createIsHttpErrorFunction(module2.exports.HttpError);
61780
+ populateConstructorExports(module2.exports, statuses.codes, module2.exports.HttpError);
61781
+ function codeClass(status) {
61782
+ return Number(String(status).charAt(0) + "00");
61783
+ }
61784
+ function createError() {
61785
+ var err;
61786
+ var msg;
61787
+ var status = 500;
61788
+ var props = {};
61789
+ for (var i2 = 0; i2 < arguments.length; i2++) {
61790
+ var arg = arguments[i2];
61791
+ var type = typeof arg;
61792
+ if (type === "object" && arg instanceof Error) {
61793
+ err = arg;
61794
+ status = err.status || err.statusCode || status;
61795
+ } else if (type === "number" && i2 === 0) {
61796
+ status = arg;
61797
+ } else if (type === "string") {
61798
+ msg = arg;
61799
+ } else if (type === "object") {
61800
+ props = arg;
61801
+ } else {
61802
+ throw new TypeError("argument #" + (i2 + 1) + " unsupported type " + type);
61803
+ }
61804
+ }
61805
+ if (typeof status === "number" && (status < 400 || status >= 600)) {
61806
+ deprecate("non-error status code; use only 4xx or 5xx status codes");
61807
+ }
61808
+ if (typeof status !== "number" || !statuses.message[status] && (status < 400 || status >= 600)) {
61809
+ status = 500;
61810
+ }
61811
+ var HttpError = createError[status] || createError[codeClass(status)];
61812
+ if (!err) {
61813
+ err = HttpError ? new HttpError(msg) : new Error(msg || statuses.message[status]);
61814
+ Error.captureStackTrace(err, createError);
61815
+ }
61816
+ if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
61817
+ err.expose = status < 500;
61818
+ err.status = err.statusCode = status;
61819
+ }
61820
+ for (var key in props) {
61821
+ if (key !== "status" && key !== "statusCode") {
61822
+ err[key] = props[key];
61823
+ }
61824
+ }
61825
+ return err;
61826
+ }
61827
+ function createHttpErrorConstructor() {
61828
+ function HttpError() {
61829
+ throw new TypeError("cannot construct abstract class");
61830
+ }
61831
+ inherits2(HttpError, Error);
61832
+ return HttpError;
61833
+ }
61834
+ function createClientErrorConstructor(HttpError, name, code) {
61835
+ var className = toClassName(name);
61836
+ function ClientError(message) {
61837
+ var msg = message != null ? message : statuses.message[code];
61838
+ var err = new Error(msg);
61839
+ Error.captureStackTrace(err, ClientError);
61840
+ setPrototypeOf(err, ClientError.prototype);
61841
+ Object.defineProperty(err, "message", {
61842
+ enumerable: true,
61843
+ configurable: true,
61844
+ value: msg,
61845
+ writable: true
61846
+ });
61847
+ Object.defineProperty(err, "name", {
61848
+ enumerable: false,
61849
+ configurable: true,
61850
+ value: className,
61851
+ writable: true
61852
+ });
61853
+ return err;
61854
+ }
61855
+ inherits2(ClientError, HttpError);
61856
+ nameFunc(ClientError, className);
61857
+ ClientError.prototype.status = code;
61858
+ ClientError.prototype.statusCode = code;
61859
+ ClientError.prototype.expose = true;
61860
+ return ClientError;
61861
+ }
61862
+ function createIsHttpErrorFunction(HttpError) {
61863
+ return function isHttpError(val) {
61864
+ if (!val || typeof val !== "object") {
61865
+ return false;
61866
+ }
61867
+ if (val instanceof HttpError) {
61868
+ return true;
61869
+ }
61870
+ return val instanceof Error && typeof val.expose === "boolean" && typeof val.statusCode === "number" && val.status === val.statusCode;
61871
+ };
61872
+ }
61873
+ function createServerErrorConstructor(HttpError, name, code) {
61874
+ var className = toClassName(name);
61875
+ function ServerError(message) {
61876
+ var msg = message != null ? message : statuses.message[code];
61877
+ var err = new Error(msg);
61878
+ Error.captureStackTrace(err, ServerError);
61879
+ setPrototypeOf(err, ServerError.prototype);
61880
+ Object.defineProperty(err, "message", {
61881
+ enumerable: true,
61882
+ configurable: true,
61883
+ value: msg,
61884
+ writable: true
61885
+ });
61886
+ Object.defineProperty(err, "name", {
61887
+ enumerable: false,
61888
+ configurable: true,
61889
+ value: className,
61890
+ writable: true
61891
+ });
61892
+ return err;
61893
+ }
61894
+ inherits2(ServerError, HttpError);
61895
+ nameFunc(ServerError, className);
61896
+ ServerError.prototype.status = code;
61897
+ ServerError.prototype.statusCode = code;
61898
+ ServerError.prototype.expose = false;
61899
+ return ServerError;
61900
+ }
61901
+ function nameFunc(func, name) {
61902
+ var desc = Object.getOwnPropertyDescriptor(func, "name");
61903
+ if (desc && desc.configurable) {
61904
+ desc.value = name;
61905
+ Object.defineProperty(func, "name", desc);
61906
+ }
61907
+ }
61908
+ function populateConstructorExports(exports3, codes, HttpError) {
61909
+ codes.forEach(function forEachCode(code) {
61910
+ var CodeError;
61911
+ var name = toIdentifier(statuses.message[code]);
61912
+ switch (codeClass(code)) {
61913
+ case 400:
61914
+ CodeError = createClientErrorConstructor(HttpError, name, code);
61915
+ break;
61916
+ case 500:
61917
+ CodeError = createServerErrorConstructor(HttpError, name, code);
61918
+ break;
61919
+ }
61920
+ if (CodeError) {
61921
+ exports3[code] = CodeError;
61922
+ exports3[name] = CodeError;
61923
+ }
61924
+ });
61925
+ }
61926
+ function toClassName(name) {
61927
+ return name.substr(-5) !== "Error" ? name + "Error" : name;
61928
+ }
61929
+ }
61930
+ });
62746
61931
  var require_ms6 = __commonJS2({
62747
61932
  "node_modules/send/node_modules/debug/node_modules/ms/index.js"(exports2, module2) {
62748
61933
  "use strict";
@@ -63425,7 +62610,7 @@ var require_range_parser = __commonJS2({
63425
62610
  var require_send = __commonJS2({
63426
62611
  "node_modules/send/index.js"(exports2, module2) {
63427
62612
  "use strict";
63428
- var createError = require_http_errors();
62613
+ var createError = require_http_errors3();
63429
62614
  var debug22 = require_src6()("send");
63430
62615
  var deprecate = require_depd()("send");
63431
62616
  var destroy = require_destroy();
@@ -63439,7 +62624,7 @@ var require_send = __commonJS2({
63439
62624
  var onFinished = require_on_finished2();
63440
62625
  var parseRange = require_range_parser();
63441
62626
  var path52 = __require2("path");
63442
- var statuses = require_statuses();
62627
+ var statuses = require_statuses3();
63443
62628
  var Stream = __require2("stream");
63444
62629
  var util542 = __require2("util");
63445
62630
  var extname2 = path52.extname;
@@ -64788,7 +63973,7 @@ var require_proxy_addr = __commonJS2({
64788
63973
  }
64789
63974
  }
64790
63975
  });
64791
- var require_utils8 = __commonJS2({
63976
+ var require_utils6 = __commonJS2({
64792
63977
  "node_modules/express/lib/utils.js"(exports2) {
64793
63978
  "use strict";
64794
63979
  var Buffer3 = require_safe_buffer2().Buffer;
@@ -64799,7 +63984,7 @@ var require_utils8 = __commonJS2({
64799
63984
  var mime = require_send().mime;
64800
63985
  var etag = require_etag();
64801
63986
  var proxyaddr = require_proxy_addr();
64802
- var qs3 = require_lib6();
63987
+ var qs3 = require_lib();
64803
63988
  var querystring = __require2("querystring");
64804
63989
  exports2.etag = createETagGenerator({ weak: false });
64805
63990
  exports2.wetag = createETagGenerator({ weak: true });
@@ -64934,9 +64119,9 @@ var require_application = __commonJS2({
64934
64119
  var debug22 = require_src5()("express:application");
64935
64120
  var View = require_view();
64936
64121
  var http3 = __require2("http");
64937
- var compileETag = require_utils8().compileETag;
64938
- var compileQueryParser = require_utils8().compileQueryParser;
64939
- var compileTrust = require_utils8().compileTrust;
64122
+ var compileETag = require_utils6().compileETag;
64123
+ var compileQueryParser = require_utils6().compileQueryParser;
64124
+ var compileTrust = require_utils6().compileTrust;
64940
64125
  var deprecate = require_depd()("express");
64941
64126
  var flatten = require_array_flatten();
64942
64127
  var merge2 = require_utils_merge();
@@ -66113,20 +65298,20 @@ var require_response = __commonJS2({
66113
65298
  "use strict";
66114
65299
  var Buffer3 = require_safe_buffer2().Buffer;
66115
65300
  var contentDisposition = require_content_disposition();
66116
- var createError = require_http_errors();
65301
+ var createError = require_http_errors3();
66117
65302
  var deprecate = require_depd()("express");
66118
65303
  var encodeUrl = require_encodeurl();
66119
65304
  var escapeHtml = require_escape_html();
66120
65305
  var http3 = __require2("http");
66121
- var isAbsolute2 = require_utils8().isAbsolute;
65306
+ var isAbsolute2 = require_utils6().isAbsolute;
66122
65307
  var onFinished = require_on_finished2();
66123
65308
  var path52 = __require2("path");
66124
- var statuses = require_statuses();
65309
+ var statuses = require_statuses3();
66125
65310
  var merge2 = require_utils_merge();
66126
65311
  var sign = require_cookie_signature().sign;
66127
- var normalizeType = require_utils8().normalizeType;
66128
- var normalizeTypes = require_utils8().normalizeTypes;
66129
- var setCharset = require_utils8().setCharset;
65312
+ var normalizeType = require_utils6().normalizeType;
65313
+ var normalizeTypes = require_utils6().normalizeTypes;
65314
+ var setCharset = require_utils6().setCharset;
66130
65315
  var cookie = require_cookie();
66131
65316
  var send = require_send();
66132
65317
  var extname2 = path52.extname;
@@ -66824,7 +66009,7 @@ var require_express2 = __commonJS2({
66824
66009
  module2.exports = require_express();
66825
66010
  }
66826
66011
  });
66827
- var require_lib7 = __commonJS2({
66012
+ var require_lib5 = __commonJS2({
66828
66013
  "node_modules/http-graceful-shutdown/lib/index.js"(exports2, module2) {
66829
66014
  "use strict";
66830
66015
  var debug22 = require_src()("http-graceful-shutdown");
@@ -68147,7 +67332,7 @@ var require_intercepted_request_router = __commonJS2({
68147
67332
  module2.exports = { InterceptedRequestRouter };
68148
67333
  }
68149
67334
  });
68150
- var require_stringify4 = __commonJS2({
67335
+ var require_stringify2 = __commonJS2({
68151
67336
  "node_modules/json-stringify-safe/stringify.js"(exports2, module2) {
68152
67337
  "use strict";
68153
67338
  exports2 = module2.exports = stringify15;
@@ -68236,7 +67421,7 @@ var require_match_body = __commonJS2({
68236
67421
  var require_interceptor = __commonJS2({
68237
67422
  "node_modules/nock/lib/interceptor.js"(exports2, module2) {
68238
67423
  "use strict";
68239
- var stringify15 = require_stringify4();
67424
+ var stringify15 = require_stringify2();
68240
67425
  var querystring = __require2("querystring");
68241
67426
  var { URL: URL6, URLSearchParams: URLSearchParams2 } = __require2("url");
68242
67427
  var common2 = require_common4();
@@ -74164,7 +73349,7 @@ var require_util4 = __commonJS2({
74164
73349
  parts.push("<?>");
74165
73350
  }
74166
73351
  break;
74167
- // FIXME: do proper formating for numbers, etc
73352
+ // FIXME: do proper formatting for numbers, etc
74168
73353
  //case 'f':
74169
73354
  //case 'd':
74170
73355
  case "%":
@@ -75610,6 +74795,7 @@ var require_asn1 = __commonJS2({
75610
74795
  GENERALIZEDTIME: 24,
75611
74796
  BMPSTRING: 30
75612
74797
  };
74798
+ asn1.maxDepth = 256;
75613
74799
  asn1.create = function(tagClass, type, constructed, value, options) {
75614
74800
  if (forge.util.isArray(value)) {
75615
74801
  var tmp = [];
@@ -75751,6 +74937,9 @@ var require_asn1 = __commonJS2({
75751
74937
  if (!("decodeBitStrings" in options)) {
75752
74938
  options.decodeBitStrings = true;
75753
74939
  }
74940
+ if (!("maxDepth" in options)) {
74941
+ options.maxDepth = asn1.maxDepth;
74942
+ }
75754
74943
  if (typeof bytes === "string") {
75755
74944
  bytes = forge.util.createBuffer(bytes);
75756
74945
  }
@@ -75765,6 +74954,9 @@ var require_asn1 = __commonJS2({
75765
74954
  return value;
75766
74955
  };
75767
74956
  function _fromDer(bytes, remaining, depth, options) {
74957
+ if (depth >= options.maxDepth) {
74958
+ throw new Error("ASN.1 parsing error: Max depth exceeded.");
74959
+ }
75768
74960
  var start;
75769
74961
  _checkBufferLength(bytes, remaining, 2);
75770
74962
  var b1 = bytes.getByte();
@@ -75940,6 +75132,9 @@ var require_asn1 = __commonJS2({
75940
75132
  last = true;
75941
75133
  valueBytes = [];
75942
75134
  value = parseInt(values3[i2], 10);
75135
+ if (value > 4294967295) {
75136
+ throw new Error("OID value too large; max is 32-bits.");
75137
+ }
75943
75138
  do {
75944
75139
  b = value & 127;
75945
75140
  value = value >>> 7;
@@ -75964,8 +75159,11 @@ var require_asn1 = __commonJS2({
75964
75159
  oid = Math.floor(b / 40) + "." + b % 40;
75965
75160
  var value = 0;
75966
75161
  while (bytes.length() > 0) {
75162
+ if (value > 70368744177663) {
75163
+ throw new Error("OID value too large; max is 53-bits.");
75164
+ }
75967
75165
  b = bytes.getByte();
75968
- value = value << 7;
75166
+ value = value * 128;
75969
75167
  if (b & 128) {
75970
75168
  value += b & 127;
75971
75169
  } else {
@@ -76126,19 +75324,40 @@ var require_asn1 = __commonJS2({
76126
75324
  if (v.value && forge.util.isArray(v.value)) {
76127
75325
  var j2 = 0;
76128
75326
  for (var i2 = 0; rval && i2 < v.value.length; ++i2) {
76129
- rval = v.value[i2].optional || false;
76130
- if (obj.value[j2]) {
76131
- rval = asn1.validate(obj.value[j2], v.value[i2], capture, errors);
76132
- if (rval) {
76133
- ++j2;
76134
- } else if (v.value[i2].optional) {
75327
+ var schemaItem = v.value[i2];
75328
+ rval = !!schemaItem.optional;
75329
+ var objChild = obj.value[j2];
75330
+ if (!objChild) {
75331
+ if (!schemaItem.optional) {
75332
+ rval = false;
75333
+ if (errors) {
75334
+ errors.push("[" + v.name + '] Missing required element. Expected tag class "' + schemaItem.tagClass + '", type "' + schemaItem.type + '"');
75335
+ }
75336
+ }
75337
+ continue;
75338
+ }
75339
+ var schemaHasTag = typeof schemaItem.tagClass !== "undefined" && typeof schemaItem.type !== "undefined";
75340
+ if (schemaHasTag && (objChild.tagClass !== schemaItem.tagClass || objChild.type !== schemaItem.type)) {
75341
+ if (schemaItem.optional) {
76135
75342
  rval = true;
75343
+ continue;
75344
+ } else {
75345
+ rval = false;
75346
+ if (errors) {
75347
+ errors.push("[" + v.name + "] Tag mismatch. Expected (" + schemaItem.tagClass + "," + schemaItem.type + "), got (" + objChild.tagClass + "," + objChild.type + ")");
75348
+ }
75349
+ break;
76136
75350
  }
76137
75351
  }
76138
- if (!rval && errors) {
76139
- errors.push(
76140
- "[" + v.name + '] Tag class "' + v.tagClass + '", type "' + v.type + '" expected value length "' + v.value.length + '", got "' + obj.value.length + '"'
76141
- );
75352
+ var childRval = asn1.validate(objChild, schemaItem, capture, errors);
75353
+ if (childRval) {
75354
+ ++j2;
75355
+ rval = true;
75356
+ } else if (schemaItem.optional) {
75357
+ rval = true;
75358
+ } else {
75359
+ rval = false;
75360
+ break;
76142
75361
  }
76143
75362
  }
76144
75363
  }
@@ -79874,7 +79093,7 @@ var require_rsa = __commonJS2({
79874
79093
  constructed: false,
79875
79094
  capture: "algorithmIdentifier"
79876
79095
  }, {
79877
- // NULL paramters
79096
+ // NULL parameters
79878
79097
  name: "DigestInfo.DigestAlgorithm.parameters",
79879
79098
  tagClass: asn1.Class.UNIVERSAL,
79880
79099
  type: asn1.Type.NULL,
@@ -80387,7 +79606,7 @@ var require_rsa = __commonJS2({
80387
79606
  if (oid === forge.oids.md2 || oid === forge.oids.md5) {
80388
79607
  if (!("parameters" in capture)) {
80389
79608
  throw new Error(
80390
- "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters."
79609
+ "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters."
80391
79610
  );
80392
79611
  }
80393
79612
  }
@@ -85286,6 +84505,7 @@ var require_pkcs12 = __commonJS2({
85286
84505
  capture: "macAlgorithm"
85287
84506
  }, {
85288
84507
  name: "PFX.macData.mac.digestAlgorithm.parameters",
84508
+ optional: true,
85289
84509
  tagClass: asn1.Class.UNIVERSAL,
85290
84510
  captureAsn1: "macAlgorithmParameters"
85291
84511
  }]
@@ -85564,6 +84784,8 @@ var require_pkcs12 = __commonJS2({
85564
84784
  if (macValue.getBytes() !== capture.macDigest) {
85565
84785
  throw new Error("PKCS#12 MAC could not be verified. Invalid password?");
85566
84786
  }
84787
+ } else if (Array.isArray(obj.value) && obj.value.length > 2) {
84788
+ throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");
85567
84789
  }
85568
84790
  _decodeAuthenticatedSafe(pfx, data2.value, strict, password2);
85569
84791
  return pfx;
@@ -101725,7 +100947,7 @@ var require_json3 = __commonJS2({
101725
100947
  module2.exports = parseJSON;
101726
100948
  }
101727
100949
  });
101728
- var require_parse4 = __commonJS2({
100950
+ var require_parse2 = __commonJS2({
101729
100951
  "node_modules/node-jose/lib/parse/index.js"(exports2, module2) {
101730
100952
  "use strict";
101731
100953
  var compact = require_compact();
@@ -101745,7 +100967,7 @@ var require_parse4 = __commonJS2({
101745
100967
  parse7.json = json;
101746
100968
  }
101747
100969
  });
101748
- var require_lib8 = __commonJS2({
100970
+ var require_lib6 = __commonJS2({
101749
100971
  "node_modules/node-jose/lib/index.js"(exports2, module2) {
101750
100972
  "use strict";
101751
100973
  if (typeof Promise === "undefined") {
@@ -101767,7 +100989,7 @@ var require_lib8 = __commonJS2({
101767
100989
  JWK: require_jwk(),
101768
100990
  JWS,
101769
100991
  util: require_util5(),
101770
- parse: require_parse4(),
100992
+ parse: require_parse2(),
101771
100993
  canYouSee: JWS.createVerify
101772
100994
  };
101773
100995
  }
@@ -105611,7 +104833,7 @@ function stringify(obj) {
105611
104833
  }
105612
104834
  var package_default = {
105613
104835
  name: "@rockcarver/frodo-lib",
105614
- version: "3.3.3",
104836
+ version: "3.3.4",
105615
104837
  type: "commonjs",
105616
104838
  main: "./dist/index.js",
105617
104839
  module: "./dist/index.mjs",
@@ -117374,7 +116596,7 @@ var import_fs_extra = __toESM2(require_lib2());
117374
116596
  var import_cors = __toESM2(require_lib3());
117375
116597
  var import_morgan = __toESM2(require_morgan());
117376
116598
  var import_express = __toESM2(require_express2());
117377
- var import_http_graceful_shutdown = __toESM2(require_lib7());
116599
+ var import_http_graceful_shutdown = __toESM2(require_lib5());
117378
116600
  var import_body_parser = __toESM2(require_body_parser());
117379
116601
  var import_nocache = __toESM2(require_nocache());
117380
116602
  var API = class {
@@ -123373,6 +122595,7 @@ function generateIdmApi({
123373
122595
  "User-Agent": userAgent,
123374
122596
  "X-ForgeRock-TransactionId": transactionId,
123375
122597
  "Content-Type": "application/json",
122598
+ ...state2.getAuthenticationHeaderOverrides(),
123376
122599
  // only add authorization header if we have a bearer token
123377
122600
  ...state2.getBearerToken() && {
123378
122601
  Authorization: `Bearer ${state2.getBearerToken()}`
@@ -123399,6 +122622,7 @@ function generateLogKeysApi({
123399
122622
  const headers2 = {
123400
122623
  "User-Agent": userAgent,
123401
122624
  "Content-Type": "application/json",
122625
+ ...state2.getAuthenticationHeaderOverrides(),
123402
122626
  // only add authorization header if we have a bearer token
123403
122627
  ...state2.getBearerToken() && {
123404
122628
  Authorization: `Bearer ${state2.getBearerToken()}`
@@ -123476,6 +122700,7 @@ function generateEnvApi({
123476
122700
  const headers2 = {
123477
122701
  "User-Agent": userAgent,
123478
122702
  "Content-Type": "application/json",
122703
+ ...state2.getAuthenticationHeaderOverrides(),
123479
122704
  // only add API version if we have it
123480
122705
  ...resource.apiVersion && { "Accept-API-Version": resource.apiVersion },
123481
122706
  // only add authorization header if we have a bearer token
@@ -123508,6 +122733,7 @@ function generateGovernanceApi({
123508
122733
  const headers2 = {
123509
122734
  "User-Agent": userAgent,
123510
122735
  "Content-Type": "application/json",
122736
+ ...state2.getAuthenticationHeaderOverrides(),
123511
122737
  // only add API version if we have it
123512
122738
  ...resource.apiVersion && { "Accept-API-Version": resource.apiVersion },
123513
122739
  // only add authorization header if we have a bearer token
@@ -128714,7 +127940,7 @@ async function importOAuth2Clients({
128714
127940
  }
128715
127941
  return response;
128716
127942
  }
128717
- var import_node_jose = __toESM2(require_lib8());
127943
+ var import_node_jose = __toESM2(require_lib6());
128718
127944
  var JoseOps_default = (_state) => {
128719
127945
  return {
128720
127946
  async createJwkRsa() {
@@ -131087,7 +130313,7 @@ async function addAdminStaticUserMapping({
131087
130313
  needsAdminMapping = false;
131088
130314
  addRoles = adminRoles.filter((role) => {
131089
130315
  let add4 = false;
131090
- if (!mapping.roles.includes(role)) {
130316
+ if (!mapping.roles || !mapping.roles.includes(role)) {
131091
130317
  add4 = true;
131092
130318
  }
131093
130319
  return add4;
@@ -131128,7 +130354,7 @@ async function addAdminStaticUserMapping({
131128
130354
  }
131129
130355
  } catch (error2) {
131130
130356
  throw new FrodoError(
131131
- `Error adding admin static user mapping to ${name}`,
130357
+ `Error adding admin static user mapping to ${name} - ${error2.stack}`,
131132
130358
  error2
131133
130359
  );
131134
130360
  }
@@ -155214,7 +154440,7 @@ _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
155214
154440
  _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
155215
154441
  var import_cli_progress = _chunkHEKQUNOBcjs.__toESM.call(void 0, require_cli_progress(), 1);
155216
154442
  var import_cli_table3 = _chunkHEKQUNOBcjs.__toESM.call(void 0, require_cli_table3(), 1);
155217
- var import_colors = _chunkHEKQUNOBcjs.__toESM.call(void 0, require_lib9(), 1);
154443
+ var import_colors = _chunkHEKQUNOBcjs.__toESM.call(void 0, require_lib7(), 1);
155218
154444
  var import_nanospinner = _chunkHEKQUNOBcjs.__toESM.call(void 0, require_dist12(), 1);
155219
154445
 
155220
154446
  // node_modules/uuid/dist/esm/index.js
@@ -181262,7 +180488,7 @@ function setup199() {
181262
180488
 
181263
180489
  // src/utils/Version.ts
181264
180490
  _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
181265
- var import_colors2 = _chunkHEKQUNOBcjs.__toESM.call(void 0, require_lib9(), 1);
180491
+ var import_colors2 = _chunkHEKQUNOBcjs.__toESM.call(void 0, require_lib7(), 1);
181266
180492
 
181267
180493
  // node_modules/compare-versions/lib/esm/index.js
181268
180494
  _chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
@@ -181334,7 +180560,7 @@ var compareVersions = (v12, v2) => {
181334
180560
  // package.json
181335
180561
  var package_default2 = {
181336
180562
  name: "@rockcarver/frodo-cli",
181337
- version: "3.0.9",
180563
+ version: "3.0.10-0",
181338
180564
  type: "module",
181339
180565
  description: "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
181340
180566
  keywords: [
@@ -181449,7 +180675,7 @@ var package_default2 = {
181449
180675
  ]
181450
180676
  },
181451
180677
  devDependencies: {
181452
- "@rockcarver/frodo-lib": "3.3.3",
180678
+ "@rockcarver/frodo-lib": "3.3.4",
181453
180679
  "@types/colors": "^1.2.1",
181454
180680
  "@types/fs-extra": "^11.0.1",
181455
180681
  "@types/jest": "^29.2.3",
@@ -181784,6 +181010,8 @@ var { initTokenCache: initTokenCache2 } = frodo.cache;
181784
181010
  * MIT Licensed
181785
181011
  *)
181786
181012
 
181013
+ statuses/index.js:
181014
+ statuses/index.js:
181787
181015
  statuses/index.js:
181788
181016
  (*!
181789
181017
  * statuses
@@ -181799,6 +181027,8 @@ var { initTokenCache: initTokenCache2 } = frodo.cache;
181799
181027
  * MIT Licensed
181800
181028
  *)
181801
181029
 
181030
+ http-errors/index.js:
181031
+ http-errors/index.js:
181802
181032
  http-errors/index.js:
181803
181033
  (*!
181804
181034
  * http-errors