snyk 1.979.0 → 1.982.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.
@@ -161501,11 +161501,11 @@ async function streamToString(stream, streamSize, encoding = "utf8") {
161501
161501
  const chunks = [];
161502
161502
  return new Promise((resolve, reject) => {
161503
161503
  stream.on("end", () => {
161504
- resolve(chunks.join(""));
161504
+ resolve(Buffer.concat(chunks).toString(encoding));
161505
161505
  });
161506
161506
  stream.on("error", (error) => reject(error));
161507
161507
  stream.on("data", (chunk) => {
161508
- chunks.push(chunk.toString(encoding));
161508
+ chunks.push(chunk);
161509
161509
  });
161510
161510
  });
161511
161511
  }
@@ -181326,7 +181326,7 @@ module.exports.setGracefulCleanup = setGracefulCleanup;
181326
181326
 
181327
181327
  Object.defineProperty(exports, "__esModule", ({ value: true }));
181328
181328
  exports.findArchives = exports.isArchive = exports.createDepGraphFromArchives = exports.createDepGraphFromArchive = void 0;
181329
- const tslib_1 = __webpack_require__(70655);
181329
+ const tslib_1 = __webpack_require__(90999);
181330
181330
  const dep_graph_1 = __webpack_require__(71479);
181331
181331
  const path = __webpack_require__(85622);
181332
181332
  const crypto = __webpack_require__(76417);
@@ -181367,7 +181367,9 @@ function getDependencies(paths) {
181367
181367
  }
181368
181368
  catch (err) {
181369
181369
  // log error and continue with other paths
181370
- console.error(`Failed to get maven dependency for '${p}'.`, err.message);
181370
+ if (err instanceof Error) {
181371
+ console.error(`Failed to get maven dependency for '${p}'.`, err.message);
181372
+ }
181371
181373
  }
181372
181374
  }
181373
181375
  return dependencies;
@@ -181381,7 +181383,10 @@ function createDepGraphFromArchive(root, targetPath) {
181381
181383
  catch (err) {
181382
181384
  const msg = `There was a problem generating a dep-graph for '${targetPath}'.`;
181383
181385
  debug(msg, err);
181384
- throw new Error(msg + ' ' + err.message);
181386
+ if (err instanceof Error) {
181387
+ throw new Error(msg + ' ' + err.message);
181388
+ }
181389
+ throw new Error(msg);
181385
181390
  }
181386
181391
  });
181387
181392
  }
@@ -181415,7 +181420,10 @@ function createDepGraphFromArchives(root, archivePaths) {
181415
181420
  catch (err) {
181416
181421
  const msg = `Detected supported file(s) in '${root}', but there was a problem generating a dep-graph.`;
181417
181422
  debug(msg, err);
181418
- throw new Error(msg + ' ' + err.message);
181423
+ if (err instanceof Error) {
181424
+ throw new Error(msg + ' ' + err.message);
181425
+ }
181426
+ throw new Error(msg);
181419
181427
  }
181420
181428
  });
181421
181429
  }
@@ -181499,6 +181507,7 @@ function formatGenericPluginError(error, mavenCommand, mvnArgs) {
181499
181507
  'on this project.\n\n' +
181500
181508
  (mavenCommand.indexOf('mvnw') >= 0 ? mvnwCommandTipMessage : '') +
181501
181509
  'If the problem persists, collect the output of `' +
181510
+ 'DEBUG=* ' +
181502
181511
  fullCommand +
181503
181512
  '` and contact support@snyk.io\n');
181504
181513
  }
@@ -181514,7 +181523,7 @@ exports.formatGenericPluginError = formatGenericPluginError;
181514
181523
 
181515
181524
  Object.defineProperty(exports, "__esModule", ({ value: true }));
181516
181525
  exports.buildArgs = exports.inspect = exports.getCommand = exports.debug = void 0;
181517
- const tslib_1 = __webpack_require__(70655);
181526
+ const tslib_1 = __webpack_require__(90999);
181518
181527
  const javaCallGraphBuilder = __webpack_require__(16623);
181519
181528
  const os = __webpack_require__(12087);
181520
181529
  const fs = __webpack_require__(35747);
@@ -181527,7 +181536,7 @@ const debugModule = __webpack_require__(15158);
181527
181536
  const WRAPPERS = ['mvnw', 'mvnw.cmd'];
181528
181537
  // To enable debugging output, use `snyk -d`
181529
181538
  let logger = null;
181530
- function debug(s) {
181539
+ function debug(...messages) {
181531
181540
  if (logger === null) {
181532
181541
  // Lazy init: Snyk CLI needs to process the CLI argument "-d" first.
181533
181542
  // TODO(BST-648): more robust handling of the debug settings
@@ -181536,7 +181545,7 @@ function debug(s) {
181536
181545
  }
181537
181546
  logger = debugModule('snyk-mvn-plugin');
181538
181547
  }
181539
- logger(s);
181548
+ messages.forEach((m) => logger(m));
181540
181549
  }
181541
181550
  exports.debug = debug;
181542
181551
  function getCommand(root, targetFile) {
@@ -181599,9 +181608,9 @@ function inspect(root, targetFile, options) {
181599
181608
  if (!options) {
181600
181609
  options = { dev: false, scanAllUnmanaged: false };
181601
181610
  }
181602
- if (targetPath && archive_1.isArchive(targetPath)) {
181611
+ if (targetPath && (0, archive_1.isArchive)(targetPath)) {
181603
181612
  debug(`Creating dep-graph from ${targetPath}`);
181604
- const depGraph = yield archive_1.createDepGraphFromArchive(root, targetPath);
181613
+ const depGraph = yield (0, archive_1.createDepGraphFromArchive)(root, targetPath);
181605
181614
  return {
181606
181615
  plugin: {
181607
181616
  name: 'bundled:maven',
@@ -181614,10 +181623,10 @@ function inspect(root, targetFile, options) {
181614
181623
  }
181615
181624
  if (options.scanAllUnmanaged) {
181616
181625
  const recursive = !!options.allProjects;
181617
- const archives = archive_1.findArchives(root, recursive);
181626
+ const archives = (0, archive_1.findArchives)(root, recursive);
181618
181627
  if (archives.length > 0) {
181619
181628
  debug(`Creating dep-graph from archives in ${root}`);
181620
- const depGraph = yield archive_1.createDepGraphFromArchives(root, archives);
181629
+ const depGraph = yield (0, archive_1.createDepGraphFromArchives)(root, archives);
181621
181630
  return {
181622
181631
  plugin: {
181623
181632
  name: 'bundled:maven',
@@ -181645,14 +181654,15 @@ function inspect(root, targetFile, options) {
181645
181654
  const versionResult = yield subProcess.execute(`${mavenCommand} --version`, [], {
181646
181655
  cwd: mvnWorkingDirectory,
181647
181656
  });
181648
- const parseResult = parse_mvn_1.parseTree(result, options.dev);
181649
- const { javaVersion, mavenVersion } = parse_mvn_1.parseVersions(versionResult);
181657
+ const parseResult = (0, parse_mvn_1.parseTree)(result, options.dev);
181658
+ const { javaVersion, mavenVersion } = (0, parse_mvn_1.parseVersions)(versionResult);
181650
181659
  let callGraph;
181651
181660
  let maybeCallGraphMetrics = {};
181652
181661
  if (options.reachableVulns) {
181653
181662
  // NOTE[muscar] We get the timeout in seconds, and the call graph builder
181654
181663
  // wants it in milliseconds
181655
- const timeout = (options === null || options === void 0 ? void 0 : options.callGraphBuilderTimeout) ? (options === null || options === void 0 ? void 0 : options.callGraphBuilderTimeout) * 1000
181664
+ const timeout = (options === null || options === void 0 ? void 0 : options.callGraphBuilderTimeout)
181665
+ ? (options === null || options === void 0 ? void 0 : options.callGraphBuilderTimeout) * 1000
181656
181666
  : undefined;
181657
181667
  callGraph = yield getCallGraph(targetPath, timeout, // expects ms
181658
181668
  options.args);
@@ -181676,11 +181686,14 @@ function inspect(root, targetFile, options) {
181676
181686
  callGraph,
181677
181687
  };
181678
181688
  }
181679
- catch (error) {
181689
+ catch (err) {
181680
181690
  if (result)
181681
181691
  debug(`>>> Output from mvn: ${result}`);
181682
- error.message = error_format_1.formatGenericPluginError(error, mavenCommand, mvnArgs);
181683
- throw error;
181692
+ if (err instanceof Error) {
181693
+ const msg = (0, error_format_1.formatGenericPluginError)(err, mavenCommand, mvnArgs);
181694
+ throw new Error(msg);
181695
+ }
181696
+ throw err;
181684
181697
  }
181685
181698
  });
181686
181699
  }
@@ -181691,7 +181704,7 @@ function buildArgs(rootPath, executionPath, targetFile, mavenArgs) {
181691
181704
  'dependency:tree',
181692
181705
  '-DoutputType=dot',
181693
181706
  '--batch-mode',
181694
- '--non-recursive',
181707
+ '--non-recursive', // do not include sub modules these are handled by separate scans using --all-projects
181695
181708
  ];
181696
181709
  if (targetFile) {
181697
181710
  // if we are where we can execute - we preserve the original path;
@@ -181717,8 +181730,9 @@ function getCallGraph(targetPath, timeout, customMavenArgs) {
181717
181730
  debug('got call graph successfully');
181718
181731
  return callGraph;
181719
181732
  }
181720
- catch (e) {
181721
- debug('call graph error: ' + e);
181733
+ catch (err) {
181734
+ debug('call graph error: ' + err);
181735
+ const e = err;
181722
181736
  return {
181723
181737
  message: e.message,
181724
181738
  innerError: e.innerError || e,
@@ -181903,14 +181917,22 @@ function execute(command, args, options) {
181903
181917
  stderr = stderr + data;
181904
181918
  });
181905
181919
  proc.on('error', (err) => {
181906
- index_1.debug(`Child process errored with: ${err.message}`);
181920
+ (0, index_1.debug)(`Child process errored with: ${err.message}`);
181907
181921
  });
181908
181922
  proc.on('exit', (code) => {
181909
- index_1.debug(`Child process exited with code: ${code}`);
181923
+ (0, index_1.debug)(`Child process exited with code: ${code}`);
181910
181924
  });
181911
181925
  proc.on('close', (code) => {
181912
181926
  if (code !== 0) {
181913
- return reject(new Error(stderr || stdout));
181927
+ (0, index_1.debug)(`Child process failed with exit code: ${code}`, '----------------', 'STDERR:', stderr, '----------------', 'STDOUT:', stdout, '----------------');
181928
+ const stdErrMessage = stderr ? `\nSTDERR:\n${stderr}` : '';
181929
+ const stdOutMessage = stdout ? `\nSTDOUT:\n${stdout}` : '';
181930
+ const debugSuggestion = process.env.DEBUG
181931
+ ? ''
181932
+ : `\nRun in debug mode (-d) to see STDERR and STDOUT.`;
181933
+ return reject(new Error(`Child process failed with exit code: ${code}.` +
181934
+ debugSuggestion +
181935
+ (stdErrMessage || stdOutMessage)));
181914
181936
  }
181915
181937
  resolve(stdout || stderr);
181916
181938
  });
@@ -181919,6 +181941,290 @@ function execute(command, args, options) {
181919
181941
  exports.execute = execute;
181920
181942
  //# sourceMappingURL=sub-process.js.map
181921
181943
 
181944
+ /***/ }),
181945
+
181946
+ /***/ 90999:
181947
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
181948
+
181949
+ "use strict";
181950
+ __webpack_require__.r(__webpack_exports__);
181951
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
181952
+ /* harmony export */ "__extends": () => (/* binding */ __extends),
181953
+ /* harmony export */ "__assign": () => (/* binding */ __assign),
181954
+ /* harmony export */ "__rest": () => (/* binding */ __rest),
181955
+ /* harmony export */ "__decorate": () => (/* binding */ __decorate),
181956
+ /* harmony export */ "__param": () => (/* binding */ __param),
181957
+ /* harmony export */ "__metadata": () => (/* binding */ __metadata),
181958
+ /* harmony export */ "__awaiter": () => (/* binding */ __awaiter),
181959
+ /* harmony export */ "__generator": () => (/* binding */ __generator),
181960
+ /* harmony export */ "__createBinding": () => (/* binding */ __createBinding),
181961
+ /* harmony export */ "__exportStar": () => (/* binding */ __exportStar),
181962
+ /* harmony export */ "__values": () => (/* binding */ __values),
181963
+ /* harmony export */ "__read": () => (/* binding */ __read),
181964
+ /* harmony export */ "__spread": () => (/* binding */ __spread),
181965
+ /* harmony export */ "__spreadArrays": () => (/* binding */ __spreadArrays),
181966
+ /* harmony export */ "__spreadArray": () => (/* binding */ __spreadArray),
181967
+ /* harmony export */ "__await": () => (/* binding */ __await),
181968
+ /* harmony export */ "__asyncGenerator": () => (/* binding */ __asyncGenerator),
181969
+ /* harmony export */ "__asyncDelegator": () => (/* binding */ __asyncDelegator),
181970
+ /* harmony export */ "__asyncValues": () => (/* binding */ __asyncValues),
181971
+ /* harmony export */ "__makeTemplateObject": () => (/* binding */ __makeTemplateObject),
181972
+ /* harmony export */ "__importStar": () => (/* binding */ __importStar),
181973
+ /* harmony export */ "__importDefault": () => (/* binding */ __importDefault),
181974
+ /* harmony export */ "__classPrivateFieldGet": () => (/* binding */ __classPrivateFieldGet),
181975
+ /* harmony export */ "__classPrivateFieldSet": () => (/* binding */ __classPrivateFieldSet),
181976
+ /* harmony export */ "__classPrivateFieldIn": () => (/* binding */ __classPrivateFieldIn)
181977
+ /* harmony export */ });
181978
+ /******************************************************************************
181979
+ Copyright (c) Microsoft Corporation.
181980
+
181981
+ Permission to use, copy, modify, and/or distribute this software for any
181982
+ purpose with or without fee is hereby granted.
181983
+
181984
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
181985
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
181986
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
181987
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
181988
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
181989
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
181990
+ PERFORMANCE OF THIS SOFTWARE.
181991
+ ***************************************************************************** */
181992
+ /* global Reflect, Promise */
181993
+
181994
+ var extendStatics = function(d, b) {
181995
+ extendStatics = Object.setPrototypeOf ||
181996
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
181997
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
181998
+ return extendStatics(d, b);
181999
+ };
182000
+
182001
+ function __extends(d, b) {
182002
+ if (typeof b !== "function" && b !== null)
182003
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
182004
+ extendStatics(d, b);
182005
+ function __() { this.constructor = d; }
182006
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
182007
+ }
182008
+
182009
+ var __assign = function() {
182010
+ __assign = Object.assign || function __assign(t) {
182011
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
182012
+ s = arguments[i];
182013
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
182014
+ }
182015
+ return t;
182016
+ }
182017
+ return __assign.apply(this, arguments);
182018
+ }
182019
+
182020
+ function __rest(s, e) {
182021
+ var t = {};
182022
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
182023
+ t[p] = s[p];
182024
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
182025
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
182026
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
182027
+ t[p[i]] = s[p[i]];
182028
+ }
182029
+ return t;
182030
+ }
182031
+
182032
+ function __decorate(decorators, target, key, desc) {
182033
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
182034
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
182035
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
182036
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
182037
+ }
182038
+
182039
+ function __param(paramIndex, decorator) {
182040
+ return function (target, key) { decorator(target, key, paramIndex); }
182041
+ }
182042
+
182043
+ function __metadata(metadataKey, metadataValue) {
182044
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
182045
+ }
182046
+
182047
+ function __awaiter(thisArg, _arguments, P, generator) {
182048
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
182049
+ return new (P || (P = Promise))(function (resolve, reject) {
182050
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
182051
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
182052
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
182053
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
182054
+ });
182055
+ }
182056
+
182057
+ function __generator(thisArg, body) {
182058
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
182059
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
182060
+ function verb(n) { return function (v) { return step([n, v]); }; }
182061
+ function step(op) {
182062
+ if (f) throw new TypeError("Generator is already executing.");
182063
+ while (_) try {
182064
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
182065
+ if (y = 0, t) op = [op[0] & 2, t.value];
182066
+ switch (op[0]) {
182067
+ case 0: case 1: t = op; break;
182068
+ case 4: _.label++; return { value: op[1], done: false };
182069
+ case 5: _.label++; y = op[1]; op = [0]; continue;
182070
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
182071
+ default:
182072
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
182073
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
182074
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
182075
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
182076
+ if (t[2]) _.ops.pop();
182077
+ _.trys.pop(); continue;
182078
+ }
182079
+ op = body.call(thisArg, _);
182080
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
182081
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
182082
+ }
182083
+ }
182084
+
182085
+ var __createBinding = Object.create ? (function(o, m, k, k2) {
182086
+ if (k2 === undefined) k2 = k;
182087
+ var desc = Object.getOwnPropertyDescriptor(m, k);
182088
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
182089
+ desc = { enumerable: true, get: function() { return m[k]; } };
182090
+ }
182091
+ Object.defineProperty(o, k2, desc);
182092
+ }) : (function(o, m, k, k2) {
182093
+ if (k2 === undefined) k2 = k;
182094
+ o[k2] = m[k];
182095
+ });
182096
+
182097
+ function __exportStar(m, o) {
182098
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
182099
+ }
182100
+
182101
+ function __values(o) {
182102
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
182103
+ if (m) return m.call(o);
182104
+ if (o && typeof o.length === "number") return {
182105
+ next: function () {
182106
+ if (o && i >= o.length) o = void 0;
182107
+ return { value: o && o[i++], done: !o };
182108
+ }
182109
+ };
182110
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
182111
+ }
182112
+
182113
+ function __read(o, n) {
182114
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
182115
+ if (!m) return o;
182116
+ var i = m.call(o), r, ar = [], e;
182117
+ try {
182118
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
182119
+ }
182120
+ catch (error) { e = { error: error }; }
182121
+ finally {
182122
+ try {
182123
+ if (r && !r.done && (m = i["return"])) m.call(i);
182124
+ }
182125
+ finally { if (e) throw e.error; }
182126
+ }
182127
+ return ar;
182128
+ }
182129
+
182130
+ /** @deprecated */
182131
+ function __spread() {
182132
+ for (var ar = [], i = 0; i < arguments.length; i++)
182133
+ ar = ar.concat(__read(arguments[i]));
182134
+ return ar;
182135
+ }
182136
+
182137
+ /** @deprecated */
182138
+ function __spreadArrays() {
182139
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
182140
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
182141
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
182142
+ r[k] = a[j];
182143
+ return r;
182144
+ }
182145
+
182146
+ function __spreadArray(to, from, pack) {
182147
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
182148
+ if (ar || !(i in from)) {
182149
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
182150
+ ar[i] = from[i];
182151
+ }
182152
+ }
182153
+ return to.concat(ar || Array.prototype.slice.call(from));
182154
+ }
182155
+
182156
+ function __await(v) {
182157
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
182158
+ }
182159
+
182160
+ function __asyncGenerator(thisArg, _arguments, generator) {
182161
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
182162
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
182163
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
182164
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
182165
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
182166
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
182167
+ function fulfill(value) { resume("next", value); }
182168
+ function reject(value) { resume("throw", value); }
182169
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
182170
+ }
182171
+
182172
+ function __asyncDelegator(o) {
182173
+ var i, p;
182174
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
182175
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
182176
+ }
182177
+
182178
+ function __asyncValues(o) {
182179
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
182180
+ var m = o[Symbol.asyncIterator], i;
182181
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
182182
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
182183
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
182184
+ }
182185
+
182186
+ function __makeTemplateObject(cooked, raw) {
182187
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
182188
+ return cooked;
182189
+ };
182190
+
182191
+ var __setModuleDefault = Object.create ? (function(o, v) {
182192
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
182193
+ }) : function(o, v) {
182194
+ o["default"] = v;
182195
+ };
182196
+
182197
+ function __importStar(mod) {
182198
+ if (mod && mod.__esModule) return mod;
182199
+ var result = {};
182200
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
182201
+ __setModuleDefault(result, mod);
182202
+ return result;
182203
+ }
182204
+
182205
+ function __importDefault(mod) {
182206
+ return (mod && mod.__esModule) ? mod : { default: mod };
182207
+ }
182208
+
182209
+ function __classPrivateFieldGet(receiver, state, kind, f) {
182210
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
182211
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
182212
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
182213
+ }
182214
+
182215
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
182216
+ if (kind === "m") throw new TypeError("Private method is not writable");
182217
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
182218
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
182219
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
182220
+ }
182221
+
182222
+ function __classPrivateFieldIn(state, receiver) {
182223
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
182224
+ return typeof state === "function" ? receiver === state : state.has(receiver);
182225
+ }
182226
+
182227
+
181922
182228
  /***/ }),
181923
182229
 
181924
182230
  /***/ 80333: