ueberdb2 5.0.23 → 5.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1065 -178
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -55161,7 +55161,7 @@ function requireProxyFromEnv () {
55161
55161
 
55162
55162
  proxyFromEnv.getProxyForUrl = getProxyForUrl;
55163
55163
  return proxyFromEnv;
55164
- }var followRedirects = {exports: {}};var src$2 = {exports: {}};var browser$1 = {exports: {}};/**
55164
+ }var followRedirects = {exports: {}};var src$3 = {exports: {}};var browser$2 = {exports: {}};/**
55165
55165
  * Helpers.
55166
55166
  */
55167
55167
 
@@ -55330,12 +55330,12 @@ function requireMs () {
55330
55330
  return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
55331
55331
  }
55332
55332
  return ms;
55333
- }var common$3;
55334
- var hasRequiredCommon$3;
55333
+ }var common$4;
55334
+ var hasRequiredCommon$4;
55335
55335
 
55336
- function requireCommon$3 () {
55337
- if (hasRequiredCommon$3) return common$3;
55338
- hasRequiredCommon$3 = 1;
55336
+ function requireCommon$4 () {
55337
+ if (hasRequiredCommon$4) return common$4;
55338
+ hasRequiredCommon$4 = 1;
55339
55339
 
55340
55340
  /**
55341
55341
  * This is the common logic for both the Node.js and web browser
@@ -55582,13 +55582,13 @@ function requireCommon$3 () {
55582
55582
  return createDebug;
55583
55583
  }
55584
55584
 
55585
- common$3 = setup;
55586
- return common$3;
55587
- }var hasRequiredBrowser$1;
55585
+ common$4 = setup;
55586
+ return common$4;
55587
+ }var hasRequiredBrowser$2;
55588
55588
 
55589
- function requireBrowser$1 () {
55590
- if (hasRequiredBrowser$1) return browser$1.exports;
55591
- hasRequiredBrowser$1 = 1;
55589
+ function requireBrowser$2 () {
55590
+ if (hasRequiredBrowser$2) return browser$2.exports;
55591
+ hasRequiredBrowser$2 = 1;
55592
55592
  (function (module, exports) {
55593
55593
 
55594
55594
  function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
@@ -55755,7 +55755,7 @@ function requireBrowser$1 () {
55755
55755
  }
55756
55756
  }
55757
55757
 
55758
- module.exports = requireCommon$3()(exports);
55758
+ module.exports = requireCommon$4()(exports);
55759
55759
  var formatters = module.exports.formatters;
55760
55760
  /**
55761
55761
  * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
@@ -55768,9 +55768,9 @@ function requireBrowser$1 () {
55768
55768
  return '[UnexpectedJSONParseError]: ' + error.message;
55769
55769
  }
55770
55770
  };
55771
- } (browser$1, browser$1.exports));
55772
- return browser$1.exports;
55773
- }var node$2 = {exports: {}};var hasFlag;
55771
+ } (browser$2, browser$2.exports));
55772
+ return browser$2.exports;
55773
+ }var node$3 = {exports: {}};var hasFlag;
55774
55774
  var hasRequiredHasFlag;
55775
55775
 
55776
55776
  function requireHasFlag () {
@@ -55925,11 +55925,11 @@ function requireSupportsColor () {
55925
55925
  stderr: translateLevel(supportsColor(true, tty.isatty(2)))
55926
55926
  };
55927
55927
  return supportsColor_1;
55928
- }var hasRequiredNode$2;
55928
+ }var hasRequiredNode$3;
55929
55929
 
55930
- function requireNode$2 () {
55931
- if (hasRequiredNode$2) return node$2.exports;
55932
- hasRequiredNode$2 = 1;
55930
+ function requireNode$3 () {
55931
+ if (hasRequiredNode$3) return node$3.exports;
55932
+ hasRequiredNode$3 = 1;
55933
55933
  (function (module, exports) {
55934
55934
 
55935
55935
  /**
@@ -56084,7 +56084,7 @@ function requireNode$2 () {
56084
56084
  }
56085
56085
  }
56086
56086
 
56087
- module.exports = requireCommon$3()(exports);
56087
+ module.exports = requireCommon$4()(exports);
56088
56088
  var formatters = module.exports.formatters;
56089
56089
  /**
56090
56090
  * Map %o to `util.inspect()`, all on a single line.
@@ -56106,24 +56106,24 @@ function requireNode$2 () {
56106
56106
  this.inspectOpts.colors = this.useColors;
56107
56107
  return util.inspect(v, this.inspectOpts);
56108
56108
  };
56109
- } (node$2, node$2.exports));
56110
- return node$2.exports;
56111
- }var hasRequiredSrc$2;
56109
+ } (node$3, node$3.exports));
56110
+ return node$3.exports;
56111
+ }var hasRequiredSrc$3;
56112
56112
 
56113
- function requireSrc$2 () {
56114
- if (hasRequiredSrc$2) return src$2.exports;
56115
- hasRequiredSrc$2 = 1;
56113
+ function requireSrc$3 () {
56114
+ if (hasRequiredSrc$3) return src$3.exports;
56115
+ hasRequiredSrc$3 = 1;
56116
56116
 
56117
56117
  /**
56118
56118
  * Detect Electron renderer / nwjs process, which is node, but we should
56119
56119
  * treat as a browser.
56120
56120
  */
56121
56121
  if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
56122
- src$2.exports = requireBrowser$1();
56122
+ src$3.exports = requireBrowser$2();
56123
56123
  } else {
56124
- src$2.exports = requireNode$2();
56124
+ src$3.exports = requireNode$3();
56125
56125
  }
56126
- return src$2.exports;
56126
+ return src$3.exports;
56127
56127
  }var debug_1$1;
56128
56128
  var hasRequiredDebug$3;
56129
56129
 
@@ -56136,7 +56136,7 @@ function requireDebug$3 () {
56136
56136
  if (!debug) {
56137
56137
  try {
56138
56138
  /* eslint global-require: off */
56139
- debug = requireSrc$2()("follow-redirects");
56139
+ debug = requireSrc$3()("follow-redirects");
56140
56140
  }
56141
56141
  catch (error) { /* */ }
56142
56142
  if (typeof debug !== "function") {
@@ -63999,12 +63999,12 @@ class Dirty_db extends AbstractDatabase {
63999
63999
  if (callback)
64000
64000
  callback();
64001
64001
  }
64002
- }var dist$d = {};var src$1 = {};var src = {exports: {}};var browser = {exports: {}};var common$2;
64003
- var hasRequiredCommon$2;
64002
+ }var dist$d = {};var src$2 = {};var src$1 = {exports: {}};var browser$1 = {exports: {}};var common$3;
64003
+ var hasRequiredCommon$3;
64004
64004
 
64005
- function requireCommon$2 () {
64006
- if (hasRequiredCommon$2) return common$2;
64007
- hasRequiredCommon$2 = 1;
64005
+ function requireCommon$3 () {
64006
+ if (hasRequiredCommon$3) return common$3;
64007
+ hasRequiredCommon$3 = 1;
64008
64008
  /**
64009
64009
  * This is the common logic for both the Node.js and web browser
64010
64010
  * implementations of `debug()`.
@@ -64295,15 +64295,15 @@ function requireCommon$2 () {
64295
64295
  return createDebug;
64296
64296
  }
64297
64297
 
64298
- common$2 = setup;
64299
- return common$2;
64298
+ common$3 = setup;
64299
+ return common$3;
64300
64300
  }/* eslint-env browser */
64301
64301
 
64302
- var hasRequiredBrowser;
64302
+ var hasRequiredBrowser$1;
64303
64303
 
64304
- function requireBrowser () {
64305
- if (hasRequiredBrowser) return browser.exports;
64306
- hasRequiredBrowser = 1;
64304
+ function requireBrowser$1 () {
64305
+ if (hasRequiredBrowser$1) return browser$1.exports;
64306
+ hasRequiredBrowser$1 = 1;
64307
64307
  (function (module, exports) {
64308
64308
  /**
64309
64309
  * This is the web browser implementation of `debug()`.
@@ -64560,7 +64560,7 @@ function requireBrowser () {
64560
64560
  }
64561
64561
  }
64562
64562
 
64563
- module.exports = requireCommon$2()(exports);
64563
+ module.exports = requireCommon$3()(exports);
64564
64564
 
64565
64565
  const {formatters} = module.exports;
64566
64566
 
@@ -64575,17 +64575,17 @@ function requireBrowser () {
64575
64575
  return '[UnexpectedJSONParseError]: ' + error.message;
64576
64576
  }
64577
64577
  };
64578
- } (browser, browser.exports));
64579
- return browser.exports;
64580
- }var node$1 = {exports: {}};/**
64578
+ } (browser$1, browser$1.exports));
64579
+ return browser$1.exports;
64580
+ }var node$2 = {exports: {}};/**
64581
64581
  * Module dependencies.
64582
64582
  */
64583
64583
 
64584
- var hasRequiredNode$1;
64584
+ var hasRequiredNode$2;
64585
64585
 
64586
- function requireNode$1 () {
64587
- if (hasRequiredNode$1) return node$1.exports;
64588
- hasRequiredNode$1 = 1;
64586
+ function requireNode$2 () {
64587
+ if (hasRequiredNode$2) return node$2.exports;
64588
+ hasRequiredNode$2 = 1;
64589
64589
  (function (module, exports) {
64590
64590
  const tty = require$$0$j;
64591
64591
  const util = require$$0$7;
@@ -64822,7 +64822,7 @@ function requireNode$1 () {
64822
64822
  }
64823
64823
  }
64824
64824
 
64825
- module.exports = requireCommon$2()(exports);
64825
+ module.exports = requireCommon$3()(exports);
64826
64826
 
64827
64827
  const {formatters} = module.exports;
64828
64828
 
@@ -64846,36 +64846,36 @@ function requireNode$1 () {
64846
64846
  this.inspectOpts.colors = this.useColors;
64847
64847
  return util.inspect(v, this.inspectOpts);
64848
64848
  };
64849
- } (node$1, node$1.exports));
64850
- return node$1.exports;
64849
+ } (node$2, node$2.exports));
64850
+ return node$2.exports;
64851
64851
  }/**
64852
64852
  * Detect Electron renderer / nwjs process, which is node, but we should
64853
64853
  * treat as a browser.
64854
64854
  */
64855
64855
 
64856
- var hasRequiredSrc$1;
64856
+ var hasRequiredSrc$2;
64857
64857
 
64858
- function requireSrc$1 () {
64859
- if (hasRequiredSrc$1) return src.exports;
64860
- hasRequiredSrc$1 = 1;
64858
+ function requireSrc$2 () {
64859
+ if (hasRequiredSrc$2) return src$1.exports;
64860
+ hasRequiredSrc$2 = 1;
64861
64861
  if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
64862
- src.exports = requireBrowser();
64862
+ src$1.exports = requireBrowser$1();
64863
64863
  } else {
64864
- src.exports = requireNode$1();
64864
+ src$1.exports = requireNode$2();
64865
64865
  }
64866
- return src.exports;
64867
- }var hasRequiredSrc;
64866
+ return src$1.exports;
64867
+ }var hasRequiredSrc$1;
64868
64868
 
64869
- function requireSrc () {
64870
- if (hasRequiredSrc) return src$1;
64871
- hasRequiredSrc = 1;
64869
+ function requireSrc$1 () {
64870
+ if (hasRequiredSrc$1) return src$2;
64871
+ hasRequiredSrc$1 = 1;
64872
64872
  (function (exports) {
64873
- var __importDefault = (src$1 && src$1.__importDefault) || function (mod) {
64873
+ var __importDefault = (src$2 && src$2.__importDefault) || function (mod) {
64874
64874
  return (mod && mod.__esModule) ? mod : { "default": mod };
64875
64875
  };
64876
64876
  Object.defineProperty(exports, "__esModule", { value: true });
64877
64877
  const fs_1 = require$$0$f;
64878
- const debug_1 = __importDefault(requireSrc$1());
64878
+ const debug_1 = __importDefault(requireSrc$2());
64879
64879
  const log = debug_1.default('@kwsites/file-exists');
64880
64880
  function check(path, isFile, isDirectory) {
64881
64881
  log(`checking %s`, path);
@@ -64924,8 +64924,8 @@ function requireSrc () {
64924
64924
  */
64925
64925
  exports.READABLE = exports.FILE + exports.FOLDER;
64926
64926
 
64927
- } (src$1));
64928
- return src$1;
64927
+ } (src$2));
64928
+ return src$2;
64929
64929
  }var hasRequiredDist$d;
64930
64930
 
64931
64931
  function requireDist$d () {
@@ -64936,11 +64936,11 @@ function requireDist$d () {
64936
64936
  for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
64937
64937
  }
64938
64938
  Object.defineProperty(exports, "__esModule", { value: true });
64939
- __export(requireSrc());
64939
+ __export(requireSrc$1());
64940
64940
 
64941
64941
  } (dist$d));
64942
64942
  return dist$d;
64943
- }var distExports$2 = requireDist$d();var srcExports = requireSrc$1();
64943
+ }var distExports$2 = requireDist$d();var srcExports = requireSrc$2();
64944
64944
  var debug$2 = /*@__PURE__*/getDefaultExportFromCjs(srcExports);var dist$c = {};var hasRequiredDist$c;
64945
64945
 
64946
64946
  function requireDist$c () {
@@ -65113,7 +65113,7 @@ function last(input, offset = 0) {
65113
65113
  }
65114
65114
  }
65115
65115
  function isArrayLike$1(input) {
65116
- return !!(input && typeof input.length === "number");
65116
+ return filterHasLength(input);
65117
65117
  }
65118
65118
  function toLinesWithContent(input = "", trimmed2 = true, separator = "\n") {
65119
65119
  return input.split(separator).reduce((output, line) => {
@@ -65166,14 +65166,16 @@ function asCamelCase(str) {
65166
65166
  });
65167
65167
  }
65168
65168
  function asStringArray(source) {
65169
- return asArray(source).map(String);
65169
+ return asArray(source).map((item) => {
65170
+ return item instanceof String ? item : String(item);
65171
+ });
65170
65172
  }
65171
65173
  function asNumber(source, onNaN = 0) {
65172
65174
  if (source == null) {
65173
65175
  return onNaN;
65174
65176
  }
65175
65177
  const num = parseInt(source, 10);
65176
- return isNaN(num) ? onNaN : num;
65178
+ return Number.isNaN(num) ? onNaN : num;
65177
65179
  }
65178
65180
  function prefixedArray(input, prefix) {
65179
65181
  const output = [];
@@ -65186,10 +65188,13 @@ function bufferToString(input) {
65186
65188
  return (Array.isArray(input) ? require$$5$3.Buffer.concat(input) : input).toString("utf-8");
65187
65189
  }
65188
65190
  function pick(source, properties) {
65189
- return Object.assign(
65190
- {},
65191
- ...properties.map((property) => property in source ? { [property]: source[property] } : {})
65192
- );
65191
+ const out = {};
65192
+ properties.forEach((key) => {
65193
+ if (source[key] !== void 0) {
65194
+ out[key] = source[key];
65195
+ }
65196
+ });
65197
+ return out;
65193
65198
  }
65194
65199
  function delay$2(duration = 0) {
65195
65200
  return new Promise((done) => setTimeout(done, duration));
@@ -65203,6 +65208,7 @@ function orVoid(input) {
65203
65208
  var NULL, NOOP, objectToString$1;
65204
65209
  var init_util = __esm({
65205
65210
  "src/lib/utils/util.ts"() {
65211
+ init_argument_filters();
65206
65212
  NULL = "\0";
65207
65213
  NOOP = () => {
65208
65214
  };
@@ -65227,20 +65233,20 @@ function filterPlainObject(input) {
65227
65233
  function filterFunction(input) {
65228
65234
  return typeof input === "function";
65229
65235
  }
65230
- var filterArray$1, filterString, filterStringArray, filterStringOrStringArray, filterHasLength;
65236
+ var filterArray$1, filterNumber, filterString, filterStringOrStringArray, filterHasLength;
65231
65237
  var init_argument_filters = __esm({
65232
65238
  "src/lib/utils/argument-filters.ts"() {
65233
- init_util();
65234
65239
  init_pathspec();
65240
+ init_util();
65235
65241
  filterArray$1 = (input) => {
65236
65242
  return Array.isArray(input);
65237
65243
  };
65244
+ filterNumber = (input) => {
65245
+ return typeof input === "number";
65246
+ };
65238
65247
  filterString = (input) => {
65239
65248
  return typeof input === "string";
65240
65249
  };
65241
- filterStringArray = (input) => {
65242
- return Array.isArray(input) && input.every(filterString);
65243
- };
65244
65250
  filterStringOrStringArray = (input) => {
65245
65251
  return filterString(input) || Array.isArray(input) && input.every(filterString);
65246
65252
  };
@@ -65248,7 +65254,7 @@ var init_argument_filters = __esm({
65248
65254
  if (input == null || "number|boolean|function".includes(typeof input)) {
65249
65255
  return false;
65250
65256
  }
65251
- return Array.isArray(input) || typeof input === "string" || typeof input.length === "number";
65257
+ return typeof input.length === "number";
65252
65258
  };
65253
65259
  }
65254
65260
  });
@@ -65284,12 +65290,16 @@ var init_git_output_streams = __esm({
65284
65290
  });
65285
65291
 
65286
65292
  // src/lib/utils/line-parser.ts
65293
+ function useMatchesDefault() {
65294
+ throw new Error(`LineParser:useMatches not implemented`);
65295
+ }
65287
65296
  var LineParser, RemoteLineParser;
65288
65297
  var init_line_parser = __esm({
65289
65298
  "src/lib/utils/line-parser.ts"() {
65290
65299
  LineParser = class {
65291
65300
  constructor(regExp, useMatches) {
65292
65301
  this.matches = [];
65302
+ this.useMatches = useMatchesDefault;
65293
65303
  this.parse = (line, target) => {
65294
65304
  this.resetMatches();
65295
65305
  if (!this._regExp.every((reg, index) => this.addMatch(reg, index, line(index)))) {
@@ -65302,10 +65312,6 @@ var init_line_parser = __esm({
65302
65312
  this.useMatches = useMatches;
65303
65313
  }
65304
65314
  }
65305
- // @ts-ignore
65306
- useMatches(target, match) {
65307
- throw new Error(`LineParser:useMatches not implemented`);
65308
- }
65309
65315
  resetMatches() {
65310
65316
  this.matches.length = 0;
65311
65317
  }
@@ -65397,7 +65403,7 @@ function getTrailingOptions(args, initialPrimitive = 0, objectOnly = false) {
65397
65403
  }
65398
65404
  function trailingArrayArgument(args) {
65399
65405
  const hasTrailingCallback = typeof last(args) === "function";
65400
- return filterType(last(args, hasTrailingCallback ? 1 : 0), filterArray$1, []);
65406
+ return asStringArray(filterType(last(args, hasTrailingCallback ? 1 : 0), filterArray$1, []));
65401
65407
  }
65402
65408
  function trailingOptionsArgument(args) {
65403
65409
  const hasTrailingCallback = filterFunction(last(args));
@@ -65462,10 +65468,10 @@ __export$1(utils_exports, {
65462
65468
  filterArray: () => filterArray$1,
65463
65469
  filterFunction: () => filterFunction,
65464
65470
  filterHasLength: () => filterHasLength,
65471
+ filterNumber: () => filterNumber,
65465
65472
  filterPlainObject: () => filterPlainObject,
65466
65473
  filterPrimitives: () => filterPrimitives,
65467
65474
  filterString: () => filterString,
65468
- filterStringArray: () => filterStringArray,
65469
65475
  filterStringOrStringArray: () => filterStringOrStringArray,
65470
65476
  filterType: () => filterType,
65471
65477
  first: () => first,
@@ -65823,7 +65829,7 @@ var init_ConfigList = __esm({
65823
65829
  }
65824
65830
  addValue(file, key, value) {
65825
65831
  const values = this.addFile(file);
65826
- if (!values.hasOwnProperty(key)) {
65832
+ if (!Object.hasOwn(values, key)) {
65827
65833
  values[key] = value;
65828
65834
  } else if (Array.isArray(values[key])) {
65829
65835
  values[key].push(value);
@@ -65838,7 +65844,7 @@ var init_ConfigList = __esm({
65838
65844
 
65839
65845
  // src/lib/tasks/config.ts
65840
65846
  function asConfigScope(scope, fallback) {
65841
- if (typeof scope === "string" && GitConfigScope.hasOwnProperty(scope)) {
65847
+ if (typeof scope === "string" && Object.hasOwn(GitConfigScope, scope)) {
65842
65848
  return scope;
65843
65849
  }
65844
65850
  return fallback;
@@ -66054,11 +66060,12 @@ function getResetMode(mode) {
66054
66060
  return;
66055
66061
  }
66056
66062
  function isValidResetMode(mode) {
66057
- return ResetModes.includes(mode);
66063
+ return typeof mode === "string" && validResetModes.includes(mode);
66058
66064
  }
66059
- var ResetMode, ResetModes;
66065
+ var ResetMode, validResetModes;
66060
66066
  var init_reset = __esm({
66061
66067
  "src/lib/tasks/reset.ts"() {
66068
+ init_utils();
66062
66069
  init_task();
66063
66070
  ResetMode = /* @__PURE__ */ ((ResetMode2) => {
66064
66071
  ResetMode2["MIXED"] = "mixed";
@@ -66068,7 +66075,7 @@ var init_reset = __esm({
66068
66075
  ResetMode2["KEEP"] = "keep";
66069
66076
  return ResetMode2;
66070
66077
  })(ResetMode || {});
66071
- ResetModes = Array.from(Object.values(ResetMode));
66078
+ validResetModes = asStringArray(Object.values(ResetMode));
66072
66079
  }
66073
66080
  });
66074
66081
  function createLog() {
@@ -66584,7 +66591,7 @@ var init_count_objects = __esm({
66584
66591
  /([a-z-]+): (\d+)$/,
66585
66592
  (result, [key, value]) => {
66586
66593
  const property = asCamelCase(key);
66587
- if (result.hasOwnProperty(property)) {
66594
+ if (Object.hasOwn(result, property)) {
66588
66595
  result[property] = asNumber(value);
66589
66596
  }
66590
66597
  }
@@ -66675,7 +66682,10 @@ function commit_default() {
66675
66682
  const task = rejectDeprecatedSignatures(message) || commitTask(
66676
66683
  asArray(message),
66677
66684
  asArray(filterType(rest[0], filterStringOrStringArray, [])),
66678
- [...filterType(rest[1], filterArray$1, []), ...getTrailingOptions(arguments, 0, true)]
66685
+ [
66686
+ ...asStringArray(filterType(rest[1], filterArray$1, [])),
66687
+ ...getTrailingOptions(arguments, 0, true)
66688
+ ]
66679
66689
  );
66680
66690
  return this._runTask(task, next);
66681
66691
  }
@@ -67091,7 +67101,7 @@ function log_default() {
67091
67101
  const next = trailingFunctionArgument(arguments);
67092
67102
  const options = parseLogOptions(
67093
67103
  trailingOptionsArgument(arguments),
67094
- filterType(arguments[0], filterArray$1)
67104
+ asStringArray(filterType(arguments[0], filterArray$1, []))
67095
67105
  );
67096
67106
  const task = rejectDeprecatedSignatures(...rest) || validateLogFormatConfig(options.commands) || createLogTask(options);
67097
67107
  return this._runTask(task, next);
@@ -67723,18 +67733,19 @@ var init_StatusSummary = __esm({
67723
67733
  const behindReg = /behind (\d+)/;
67724
67734
  const currentReg = /^(.+?(?=(?:\.{3}|\s|$)))/;
67725
67735
  const trackingReg = /\.{3}(\S*)/;
67726
- const onEmptyBranchReg = /\son\s([\S]+)$/;
67727
- let regexResult;
67728
- regexResult = aheadReg.exec(line);
67736
+ const onEmptyBranchReg = /\son\s(\S+?)(?=\.{3}|$)/;
67737
+ let regexResult = aheadReg.exec(line);
67729
67738
  result.ahead = regexResult && +regexResult[1] || 0;
67730
67739
  regexResult = behindReg.exec(line);
67731
67740
  result.behind = regexResult && +regexResult[1] || 0;
67732
67741
  regexResult = currentReg.exec(line);
67733
- result.current = regexResult && regexResult[1];
67742
+ result.current = filterType(regexResult?.[1], filterString, null);
67734
67743
  regexResult = trackingReg.exec(line);
67735
- result.tracking = regexResult && regexResult[1];
67744
+ result.tracking = filterType(regexResult?.[1], filterString, null);
67736
67745
  regexResult = onEmptyBranchReg.exec(line);
67737
- result.current = regexResult && regexResult[1] || result.current;
67746
+ if (regexResult) {
67747
+ result.current = filterType(regexResult?.[1], filterString, result.current);
67748
+ }
67738
67749
  result.detached = /\(no branch\)/.test(line);
67739
67750
  }
67740
67751
  ]
@@ -68160,10 +68171,14 @@ var init_BranchSummary = __esm({
68160
68171
  function branchStatus(input) {
68161
68172
  return input ? input.charAt(0) : "";
68162
68173
  }
68163
- function parseBranchSummary(stdOut) {
68164
- return parseStringResponse(new BranchSummaryResult(), parsers9, stdOut);
68174
+ function parseBranchSummary(stdOut, currentOnly = false) {
68175
+ return parseStringResponse(
68176
+ new BranchSummaryResult(),
68177
+ currentOnly ? [currentBranchParser] : parsers9,
68178
+ stdOut
68179
+ );
68165
68180
  }
68166
- var parsers9;
68181
+ var parsers9, currentBranchParser;
68167
68182
  var init_parse_branch = __esm({
68168
68183
  "src/lib/parsers/parse-branch.ts"() {
68169
68184
  init_BranchSummary();
@@ -68182,6 +68197,9 @@ var init_parse_branch = __esm({
68182
68197
  }
68183
68198
  )
68184
68199
  ];
68200
+ currentBranchParser = new LineParser(/^(\S+)$/s, (result, [name]) => {
68201
+ result.push("*" /* CURRENT */, false, name, "", "");
68202
+ });
68185
68203
  }
68186
68204
  });
68187
68205
 
@@ -68200,6 +68218,7 @@ function containsDeleteBranchCommand(commands) {
68200
68218
  }
68201
68219
  function branchTask(customArgs) {
68202
68220
  const isDelete = containsDeleteBranchCommand(customArgs);
68221
+ const isCurrentOnly = customArgs.includes("--show-current");
68203
68222
  const commands = ["branch", ...customArgs];
68204
68223
  if (commands.length === 1) {
68205
68224
  commands.push("-a");
@@ -68214,16 +68233,17 @@ function branchTask(customArgs) {
68214
68233
  if (isDelete) {
68215
68234
  return parseBranchDeletions(stdOut, stdErr).all[0];
68216
68235
  }
68217
- return parseBranchSummary(stdOut);
68236
+ return parseBranchSummary(stdOut, isCurrentOnly);
68218
68237
  }
68219
68238
  };
68220
68239
  }
68221
68240
  function branchLocalTask() {
68222
- const parser4 = parseBranchSummary;
68223
68241
  return {
68224
68242
  format: "utf-8",
68225
68243
  commands: ["branch", "-v"],
68226
- parser: parser4
68244
+ parser(stdOut) {
68245
+ return parseBranchSummary(stdOut);
68246
+ }
68227
68247
  };
68228
68248
  }
68229
68249
  function deleteBranchesTask(branches, forceDelete = false) {
@@ -68268,13 +68288,15 @@ var init_branch = __esm({
68268
68288
  init_utils();
68269
68289
  }
68270
68290
  });
68271
-
68272
- // src/lib/responses/CheckIgnore.ts
68291
+ function toPath(input) {
68292
+ const path$1 = input.trim().replace(/^["']|["']$/g, "");
68293
+ return path$1 && path.normalize(path$1);
68294
+ }
68273
68295
  var parseCheckIgnore;
68274
68296
  var init_CheckIgnore = __esm({
68275
68297
  "src/lib/responses/CheckIgnore.ts"() {
68276
68298
  parseCheckIgnore = (text) => {
68277
- return text.split(/\n/g).map((line) => line.trim()).filter((file) => !!file);
68299
+ return text.split(/\n/g).map(toPath).filter(Boolean);
68278
68300
  };
68279
68301
  }
68280
68302
  });
@@ -68489,7 +68511,7 @@ function parseGetRemotes(text) {
68489
68511
  function parseGetRemotesVerbose(text) {
68490
68512
  const remotes = {};
68491
68513
  forEach(text, ([name, url, purpose]) => {
68492
- if (!remotes.hasOwnProperty(name)) {
68514
+ if (!Object.hasOwn(remotes, name)) {
68493
68515
  remotes[name] = {
68494
68516
  name,
68495
68517
  refs: { fetch: "", push: "" }
@@ -68617,8 +68639,8 @@ var init_sub_module = __esm({
68617
68639
 
68618
68640
  // src/lib/responses/TagList.ts
68619
68641
  function singleSorted(a, b) {
68620
- const aIsNum = isNaN(a);
68621
- const bIsNum = isNaN(b);
68642
+ const aIsNum = Number.isNaN(a);
68643
+ const bIsNum = Number.isNaN(b);
68622
68644
  if (aIsNum !== bIsNum) {
68623
68645
  return aIsNum ? 1 : -1;
68624
68646
  }
@@ -70807,7 +70829,7 @@ function requireSerializer$2 () {
70807
70829
  Object.defineProperty(Serializer, "__esModule", { value: true });
70808
70830
  const tslib_1 = require$$0$5;
70809
70831
  const node_querystring_1 = require$$1$6;
70810
- const debug_1 = tslib_1.__importDefault(requireSrc$1());
70832
+ const debug_1 = tslib_1.__importDefault(requireSrc$2());
70811
70833
  const secure_json_parse_1 = tslib_1.__importDefault(requireSecureJsonParse());
70812
70834
  const errors_1 = requireErrors$b();
70813
70835
  const symbols_1 = requireSymbols$5();
@@ -74989,7 +75011,7 @@ function requireTransport$1 () {
74989
75011
  Transport.generateRequestId = generateRequestId;
74990
75012
  Transport.lowerCaseHeaders = lowerCaseHeaders;
74991
75013
  const tslib_1 = require$$0$5;
74992
- const debug_1 = tslib_1.__importDefault(requireSrc$1());
75014
+ const debug_1 = tslib_1.__importDefault(requireSrc$2());
74993
75015
  const node_os_1 = tslib_1.__importDefault(require$$1$7);
74994
75016
  const node_zlib_1 = tslib_1.__importDefault(require$$3$3);
74995
75017
  const node_buffer_1 = tslib_1.__importDefault(require$$5$3);
@@ -75906,7 +75928,7 @@ function requireHttpConnection () {
75906
75928
  const hpagent_1 = tslib_1.__importDefault(requireHpagent());
75907
75929
  const node_http_1 = tslib_1.__importDefault(require$$2$6);
75908
75930
  const node_https_1 = tslib_1.__importDefault(require$$3$4);
75909
- const debug_1 = tslib_1.__importDefault(requireSrc$1());
75931
+ const debug_1 = tslib_1.__importDefault(requireSrc$2());
75910
75932
  const node_buffer_1 = tslib_1.__importDefault(require$$5$3);
75911
75933
  const BaseConnection_1 = tslib_1.__importStar(requireBaseConnection());
75912
75934
  const symbols_1 = requireSymbols$5();
@@ -103124,7 +103146,7 @@ function requireUndiciConnection () {
103124
103146
  Object.defineProperty(UndiciConnection, "__esModule", { value: true });
103125
103147
  const tslib_1 = require$$0$5;
103126
103148
  /* eslint-disable @typescript-eslint/restrict-template-expressions */
103127
- const debug_1 = tslib_1.__importDefault(requireSrc$1());
103149
+ const debug_1 = tslib_1.__importDefault(requireSrc$2());
103128
103150
  const node_buffer_1 = tslib_1.__importDefault(require$$5$3);
103129
103151
  const BaseConnection_1 = tslib_1.__importStar(requireBaseConnection());
103130
103152
  const undici_1 = requireUndici();
@@ -103389,7 +103411,7 @@ function requireBaseConnectionPool () {
103389
103411
  BaseConnectionPool.defaultNodeFilter = defaultNodeFilter;
103390
103412
  const tslib_1 = require$$0$5;
103391
103413
  const node_url_1 = require$$1$9;
103392
- const debug_1 = tslib_1.__importDefault(requireSrc$1());
103414
+ const debug_1 = tslib_1.__importDefault(requireSrc$2());
103393
103415
  const Diagnostic_1 = tslib_1.__importDefault(requireDiagnostic());
103394
103416
  const symbols_1 = requireSymbols$5();
103395
103417
  const connection_1 = requireConnection$6();
@@ -103852,7 +103874,7 @@ function requireClusterConnectionPool () {
103852
103874
  const tslib_1 = require$$0$5;
103853
103875
  const BaseConnectionPool_1 = tslib_1.__importStar(requireBaseConnectionPool());
103854
103876
  const node_assert_1 = tslib_1.__importDefault(require$$0$m);
103855
- const debug_1 = tslib_1.__importDefault(requireSrc$1());
103877
+ const debug_1 = tslib_1.__importDefault(requireSrc$2());
103856
103878
  const connection_1 = requireConnection$6();
103857
103879
  const debug = (0, debug_1.default)('elasticsearch');
103858
103880
  let ClusterConnectionPool$1=class ClusterConnectionPool extends BaseConnectionPool_1.default {
@@ -150353,24 +150375,24 @@ function requireRead_preference () {
150353
150375
 
150354
150376
  } (read_preference));
150355
150377
  return read_preference;
150356
- }var server_selection = {};var common$1 = {};var hasRequiredCommon$1;
150378
+ }var server_selection = {};var common$2 = {};var hasRequiredCommon$2;
150357
150379
 
150358
- function requireCommon$1 () {
150359
- if (hasRequiredCommon$1) return common$1;
150360
- hasRequiredCommon$1 = 1;
150361
- Object.defineProperty(common$1, "__esModule", { value: true });
150362
- common$1.ServerType = common$1.TopologyType = common$1.STATE_CONNECTED = common$1.STATE_CONNECTING = common$1.STATE_CLOSED = common$1.STATE_CLOSING = void 0;
150363
- common$1._advanceClusterTime = _advanceClusterTime;
150380
+ function requireCommon$2 () {
150381
+ if (hasRequiredCommon$2) return common$2;
150382
+ hasRequiredCommon$2 = 1;
150383
+ Object.defineProperty(common$2, "__esModule", { value: true });
150384
+ common$2.ServerType = common$2.TopologyType = common$2.STATE_CONNECTED = common$2.STATE_CONNECTING = common$2.STATE_CLOSED = common$2.STATE_CLOSING = void 0;
150385
+ common$2._advanceClusterTime = _advanceClusterTime;
150364
150386
  // shared state names
150365
- common$1.STATE_CLOSING = 'closing';
150366
- common$1.STATE_CLOSED = 'closed';
150367
- common$1.STATE_CONNECTING = 'connecting';
150368
- common$1.STATE_CONNECTED = 'connected';
150387
+ common$2.STATE_CLOSING = 'closing';
150388
+ common$2.STATE_CLOSED = 'closed';
150389
+ common$2.STATE_CONNECTING = 'connecting';
150390
+ common$2.STATE_CONNECTED = 'connected';
150369
150391
  /**
150370
150392
  * An enumeration of topology types we know about
150371
150393
  * @public
150372
150394
  */
150373
- common$1.TopologyType = Object.freeze({
150395
+ common$2.TopologyType = Object.freeze({
150374
150396
  Single: 'Single',
150375
150397
  ReplicaSetNoPrimary: 'ReplicaSetNoPrimary',
150376
150398
  ReplicaSetWithPrimary: 'ReplicaSetWithPrimary',
@@ -150382,7 +150404,7 @@ function requireCommon$1 () {
150382
150404
  * An enumeration of server types we know about
150383
150405
  * @public
150384
150406
  */
150385
- common$1.ServerType = Object.freeze({
150407
+ common$2.ServerType = Object.freeze({
150386
150408
  Standalone: 'Standalone',
150387
150409
  Mongos: 'Mongos',
150388
150410
  PossiblePrimary: 'PossiblePrimary',
@@ -150406,7 +150428,7 @@ function requireCommon$1 () {
150406
150428
  }
150407
150429
  }
150408
150430
 
150409
- return common$1;
150431
+ return common$2;
150410
150432
  }var hasRequiredServer_selection;
150411
150433
 
150412
150434
  function requireServer_selection () {
@@ -150421,7 +150443,7 @@ function requireServer_selection () {
150421
150443
  exports.readPreferenceServerSelector = readPreferenceServerSelector;
150422
150444
  const error_1 = requireError$3();
150423
150445
  const read_preference_1 = requireRead_preference();
150424
- const common_1 = requireCommon$1();
150446
+ const common_1 = requireCommon$2();
150425
150447
  // max staleness constants
150426
150448
  const IDLE_WRITE_PERIOD = 10000;
150427
150449
  const SMALLEST_MAX_STALENESS_SECONDS = 90;
@@ -151652,7 +151674,7 @@ function requireUtils$b () {
151652
151674
  const error_1 = requireError$3();
151653
151675
  const read_concern_1 = requireRead_concern();
151654
151676
  const read_preference_1 = requireRead_preference();
151655
- const common_1 = requireCommon$1();
151677
+ const common_1 = requireCommon$2();
151656
151678
  const write_concern_1 = requireWrite_concern();
151657
151679
  exports.ByteUtils = {
151658
151680
  toLocalBufferType(buffer) {
@@ -154007,7 +154029,7 @@ function requireAdmin () {
154007
154029
  admin.Admin = Admin;
154008
154030
 
154009
154031
  return admin;
154010
- }var ordered = {};var common = {};var _delete = {};var hasRequired_delete;
154032
+ }var ordered = {};var common$1 = {};var _delete = {};var hasRequired_delete;
154011
154033
 
154012
154034
  function require_delete () {
154013
154035
  if (hasRequired_delete) return _delete;
@@ -154498,11 +154520,11 @@ function requireUpdate$1 () {
154498
154520
  ]);
154499
154521
 
154500
154522
  return update$1;
154501
- }var hasRequiredCommon;
154523
+ }var hasRequiredCommon$1;
154502
154524
 
154503
- function requireCommon () {
154504
- if (hasRequiredCommon) return common;
154505
- hasRequiredCommon = 1;
154525
+ function requireCommon$1 () {
154526
+ if (hasRequiredCommon$1) return common$1;
154527
+ hasRequiredCommon$1 = 1;
154506
154528
  (function (exports) {
154507
154529
  Object.defineProperty(exports, "__esModule", { value: true });
154508
154530
  exports.BulkOperationBase = exports.FindOperators = exports.MongoBulkWriteError = exports.WriteError = exports.WriteConcernError = exports.BulkWriteResult = exports.Batch = exports.BatchType = void 0;
@@ -155340,8 +155362,8 @@ function requireCommon () {
155340
155362
  return currentOp;
155341
155363
  }
155342
155364
 
155343
- } (common));
155344
- return common;
155365
+ } (common$1));
155366
+ return common$1;
155345
155367
  }var hasRequiredOrdered;
155346
155368
 
155347
155369
  function requireOrdered () {
@@ -155351,7 +155373,7 @@ function requireOrdered () {
155351
155373
  ordered.OrderedBulkOperation = void 0;
155352
155374
  const BSON = requireBson();
155353
155375
  const error_1 = requireError$3();
155354
- const common_1 = requireCommon();
155376
+ const common_1 = requireCommon$1();
155355
155377
  /** @public */
155356
155378
  class OrderedBulkOperation extends common_1.BulkOperationBase {
155357
155379
  /** @internal */
@@ -155423,7 +155445,7 @@ function requireUnordered () {
155423
155445
  unordered.UnorderedBulkOperation = void 0;
155424
155446
  const BSON = requireBson();
155425
155447
  const error_1 = requireError$3();
155426
- const common_1 = requireCommon();
155448
+ const common_1 = requireCommon$1();
155427
155449
  /** @public */
155428
155450
  class UnorderedBulkOperation extends common_1.BulkOperationBase {
155429
155451
  /** @internal */
@@ -213543,7 +213565,7 @@ function requireServer_description () {
213543
213565
  const bson_1 = requireBson();
213544
213566
  const error_1 = requireError$3();
213545
213567
  const utils_1 = requireUtils$b();
213546
- const common_1 = requireCommon$1();
213568
+ const common_1 = requireCommon$2();
213547
213569
  const WRITABLE_SERVER_TYPES = new Set([
213548
213570
  common_1.ServerType.RSPrimary,
213549
213571
  common_1.ServerType.Standalone,
@@ -213751,7 +213773,7 @@ function requireTopology_description () {
213751
213773
  const WIRE_CONSTANTS = requireConstants$6();
213752
213774
  const error_1 = requireError$3();
213753
213775
  const utils_1 = requireUtils$b();
213754
- const common_1 = requireCommon$1();
213776
+ const common_1 = requireCommon$2();
213755
213777
  const server_description_1 = requireServer_description();
213756
213778
  // constants related to compatibility checks
213757
213779
  const MIN_SUPPORTED_SERVER_VERSION = WIRE_CONSTANTS.MIN_SUPPORTED_SERVER_VERSION;
@@ -214138,7 +214160,7 @@ function requireShared$1 () {
214138
214160
  shared$1.isSharded = isSharded;
214139
214161
  const error_1 = requireError$3();
214140
214162
  const read_preference_1 = requireRead_preference();
214141
- const common_1 = requireCommon$1();
214163
+ const common_1 = requireCommon$2();
214142
214164
  const topology_description_1 = requireTopology_description();
214143
214165
  function getReadPreference(options) {
214144
214166
  // Default to command version of the readPreference.
@@ -214342,7 +214364,7 @@ function requireSessions () {
214342
214364
  const read_concern_1 = requireRead_concern();
214343
214365
  const read_preference_1 = requireRead_preference();
214344
214366
  const resource_management_1 = requireResource_management();
214345
- const common_1 = requireCommon$1();
214367
+ const common_1 = requireCommon$2();
214346
214368
  const timeout_1 = requireTimeout();
214347
214369
  const transactions_1 = requireTransactions();
214348
214370
  const utils_1 = requireUtils$b();
@@ -215399,7 +215421,7 @@ function requireStream_description () {
215399
215421
  Object.defineProperty(stream_description, "__esModule", { value: true });
215400
215422
  stream_description.StreamDescription = void 0;
215401
215423
  const bson_1 = requireBson();
215402
- const common_1 = requireCommon$1();
215424
+ const common_1 = requireCommon$2();
215403
215425
  const server_description_1 = requireServer_description();
215404
215426
  const RESPONSE_FIELDS = [
215405
215427
  'minWireVersion',
@@ -215599,7 +215621,7 @@ function requireConnection$5 () {
215599
215621
  const mongo_logger_1 = requireMongo_logger();
215600
215622
  const mongo_types_1 = requireMongo_types();
215601
215623
  const read_preference_1 = requireRead_preference();
215602
- const common_1 = requireCommon$1();
215624
+ const common_1 = requireCommon$2();
215603
215625
  const sessions_1 = requireSessions();
215604
215626
  const timeout_1 = requireTimeout();
215605
215627
  const utils_1 = requireUtils$b();
@@ -217574,7 +217596,7 @@ function requireServer$1 () {
217574
217596
  const transactions_1 = requireTransactions();
217575
217597
  const utils_1 = requireUtils$b();
217576
217598
  const write_concern_1 = requireWrite_concern();
217577
- const common_1 = requireCommon$1();
217599
+ const common_1 = requireCommon$2();
217578
217600
  const monitor_1 = requireMonitor();
217579
217601
  const server_description_1 = requireServer_description();
217580
217602
  const server_selection_1 = requireServer_selection();
@@ -217971,7 +217993,7 @@ function requireMonitor () {
217971
217993
  const mongo_logger_1 = requireMongo_logger();
217972
217994
  const mongo_types_1 = requireMongo_types();
217973
217995
  const utils_1 = requireUtils$b();
217974
- const common_1 = requireCommon$1();
217996
+ const common_1 = requireCommon$2();
217975
217997
  const events_1 = requireEvents();
217976
217998
  const server_1 = requireServer$1();
217977
217999
  const STATE_IDLE = 'idle';
@@ -222098,13 +222120,13 @@ function requireCodePointsData () {
222098
222120
  codePointsData.default = (0, zlib_1.gunzipSync)(Buffer.from('H4sIAAAAAAACA+3dTYgcaRkA4LemO9Mhxm0FITnE9Cwr4jHgwgZ22B6YywqCJ0HQg5CL4sGTuOjCtGSF4CkHEW856MlTQHD3EJnWkU0Owh5VxE3LHlYQdNxd2U6mU59UV/d09fw4M2EySSXPAzNdP1/9fX/99bzVNZEN4jisRDulVFnQmLxm1aXF9Id/2/xMxNJ4XZlg576yuYlGt9gupV6xoFf8jhu9YvulVrFlp5XSx+lfvYhORGPXvqIRWSxERKtIm8bKFd10WNfKDS5Fo9jJWrq2+M2IlW+8uHgl/+BsROfPF4v5L7148Ur68Sha6dqZpYiVVy8tvLCWXo80Sf/lS89dGX2wHGvpzoXVn75/YWH5wmqe8uika82ViJXTy83Ve2k5Urozm38wm4/ls6t5uT6yfsTSJ7J3T0VKt8c5ExEXI8aFkH729c3eT+7EC6ca8cVULZUiYacX0R5PNWNxlh9L1y90q5kyzrpyy+9WcvOV6URntqw7La9sNVstXyczWVaWYbaaTYqzOHpr7pyiNT3/YzKuT63Z/FqKZlFTiuXtFM2vVOtIq7jiyKJbWZaOWD0euz0yoV2Z7kY0xq2x0YhfzVpmM5px9nTEH7JZ0ot5u39p0ma75Z472/s/H+2yr2inYyuq7fMvJivH2rM72N/Z3lyL31F2b1ya1P0zn816k2KP6JU9UzseucdQH5YqVeH/lFajSN2udg+TLJ9rksNxlvV2lki19rXKI43TPLejFu4ov7k3nMbhyhfY3Xb37f8BAGCf0eMTOH5szf154KmnNgKcnLb+Fzi2AfXktbN7fJelwTAiO/W5uQ2KINXRYu+znqo/WTAdLadURHmy3qciazd3bra4T3w16/f7t7Ms9U5gfJu10955sx1r3vmhBAAAAAAAgId20J1iZbDowNvIjuH427Gr5l/eiC+8OplZON8sVjx/qr9y+Pj+YRItT+NqAM+kkZs3AAAAAID6yfx1FwCAI97/dCh1/ub6SA0AAAAAAAAAgNoT/wcAAAAAAACA+hP/BwAAAAAAAID6E/8HAAAAAAAAgPoT/wcAAAAAAACA+hP/BwAAAAAAAID6E/8HAAAAAAAAgPoT/wcAAAAAAACA+hP/BwAAAAAAAID6E/8HAAAAAAAAgPoT/wcAAAAAAACA+hutp5SiQpYAAAAAAAAAQO2MIpZiT804flnAE2fhwjOeAZXr76kOAAAAAAAA8FjNf4N/l0NE3U/vuVQskLpSd4/Yh2xu9xTu0tFeeNYsLI2f/VMdNxTzj6Je9E/+6pp6Nn3awW3A54goe4Bss6v+PGsjQGMAAAAAAOBp5XEgwH6e7J7rwEQHRb/XvAMAAAAAAAA8yzoDeQDwVGjIAgAAAAAAAACoPfF/AAAAAAAAAKg/8X8AAAAAAAAAqD/xfwAAAAAAAACoP/F/AAAAAAAAAKg/8X8AAAAAAAAAqD/xfwAAAAAAAACoP/F/AAAAAAAAAKg/8X8AAAAAAAAAqD/xfwAAAAAAAACoP/F/AAAAAAAAAKg/8X8AAAAAAAAAqL/GSkSkClkCAAAAAAAAALXTSAAAAAAAAABA3Y1kAQAAAAAAAADUX8RSXZ9dsHC9+M8Fg2Ex/em1lAZpEBGttcrVjZqLEa+k0XpKw9mG4zWx4ukPUMhkAQAAAAAAABzBqbSe3//rXOS9HxGdo4TqR2XkutCdBu+LaPZw/lBbO7cbHnh2C7N7AIo4evEznllqLqWUp/LnYOtpM2bnOH66wI1+9GO4sOuISwv/TOlumu56FDv3NZhc4mR9v7zYIrafr40j/Cccvj9Xns3t3mu99E7qxUv3bqS0/ouNH/08++RGemfQ+nsx/5uNXsQPGulynPvv3ZTW37zd+1ovrqaYpP/122X6Xpx779Z3zr/3YOPKW1lkaRDf31pPaf3j/msRsVGkL+d/f+/m4sJsPm1cfSsr16e8m9Ldj/KsnyIuR3nXw83Is3EhxLd/2V773ks3m/cj/THKUummdP9qKhIOImuOU0Xjwb3y+oqt735rpTetVbF9n8R4x9crRfO77TKqVOZpDclv5bfK18lMnk+q0K18UpxF/RrGXE0Zxtqx3tWSj+vxbL4XaasfKb0dRbtLW73JsfPGg177H+OmGKlfvS1msllt7JEJm9XOJqXR+Fkfo1H66uy5H1v3Xx5+uJmGLw9jro2u7Loj4PnuR6+f+e3d261+eazNhzrL7X83MohoHpS4PddV8ki1it61//pw1g7z6p1U/26Nm2llST57B5rUvuG0XqSU/rPd7jYrqWcbd+beJQ77BgPMDwn37/8BAGCf0eMTOH4cPlufv9VGgJOzqf8Fjm1APXkd7B7f5dF57GPMaWy/MTvjvNvtXj6h8W2+GXvnzXaseeeHEgAAAAAAAB7aQXeKlcGiadBoEOeLb2dtpGOL2MyOtf391a3P/zD96c3JzIP3t4oV797vrh8+vn+YRL5bBuj/AQAAAABqJvfHXQAAHkX82zfXAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACeAgkAAAAAAAAAqLuRLAAAAAAAAACA2hv9D1iu/VAYaAYA', 'base64'));
222099
222121
 
222100
222122
  return codePointsData;
222101
- }var node;
222102
- var hasRequiredNode;
222123
+ }var node$1;
222124
+ var hasRequiredNode$1;
222103
222125
 
222104
- function requireNode () {
222105
- if (hasRequiredNode) return node;
222106
- hasRequiredNode = 1;
222107
- var __importDefault = (node && node.__importDefault) || function (mod) {
222126
+ function requireNode$1 () {
222127
+ if (hasRequiredNode$1) return node$1;
222128
+ hasRequiredNode$1 = 1;
222129
+ var __importDefault = (node$1 && node$1.__importDefault) || function (mod) {
222108
222130
  return (mod && mod.__esModule) ? mod : { "default": mod };
222109
222131
  };
222110
222132
  const index_1 = __importDefault(requireDist$b());
@@ -222116,9 +222138,9 @@ function requireNode () {
222116
222138
  }
222117
222139
  saslprep.saslprep = saslprep;
222118
222140
  saslprep.default = saslprep;
222119
- node = saslprep;
222141
+ node$1 = saslprep;
222120
222142
 
222121
- return node;
222143
+ return node$1;
222122
222144
  }var hasRequiredScram;
222123
222145
 
222124
222146
  function requireScram () {
@@ -222126,7 +222148,7 @@ function requireScram () {
222126
222148
  hasRequiredScram = 1;
222127
222149
  Object.defineProperty(scram, "__esModule", { value: true });
222128
222150
  scram.ScramSHA256 = scram.ScramSHA1 = void 0;
222129
- const saslprep_1 = requireNode();
222151
+ const saslprep_1 = requireNode$1();
222130
222152
  const crypto = require$$0$b;
222131
222153
  const bson_1 = requireBson();
222132
222154
  const error_1 = requireError$3();
@@ -223521,7 +223543,7 @@ function requireTopology () {
223521
223543
  const read_preference_1 = requireRead_preference();
223522
223544
  const timeout_1 = requireTimeout();
223523
223545
  const utils_1 = requireUtils$b();
223524
- const common_1 = requireCommon$1();
223546
+ const common_1 = requireCommon$2();
223525
223547
  const events_1 = requireEvents();
223526
223548
  const server_1 = requireServer$1();
223527
223549
  const server_description_1 = requireServer_description();
@@ -229278,7 +229300,7 @@ function requireLib$9 () {
229278
229300
  Object.defineProperty(exports, "ObjectId", { enumerable: true, get: function () { return bson_2.ObjectId; } });
229279
229301
  Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return bson_2.Timestamp; } });
229280
229302
  Object.defineProperty(exports, "UUID", { enumerable: true, get: function () { return bson_2.UUID; } });
229281
- var common_1 = requireCommon();
229303
+ var common_1 = requireCommon$1();
229282
229304
  Object.defineProperty(exports, "MongoBulkWriteError", { enumerable: true, get: function () { return common_1.MongoBulkWriteError; } });
229283
229305
  var client_encryption_1 = requireClient_encryption();
229284
229306
  Object.defineProperty(exports, "ClientEncryption", { enumerable: true, get: function () { return client_encryption_1.ClientEncryption; } });
@@ -229330,7 +229352,7 @@ function requireLib$9 () {
229330
229352
  var resource_management_1 = requireResource_management();
229331
229353
  Object.defineProperty(exports, "configureExplicitResourceManagement", { enumerable: true, get: function () { return resource_management_1.configureExplicitResourceManagement; } });
229332
229354
  // enums
229333
- var common_2 = requireCommon();
229355
+ var common_2 = requireCommon$1();
229334
229356
  Object.defineProperty(exports, "BatchType", { enumerable: true, get: function () { return common_2.BatchType; } });
229335
229357
  var auto_encrypter_1 = requireAuto_encrypter();
229336
229358
  Object.defineProperty(exports, "AutoEncryptionLoggerLevel", { enumerable: true, get: function () { return auto_encrypter_1.AutoEncryptionLoggerLevel; } });
@@ -229360,7 +229382,7 @@ function requireLib$9 () {
229360
229382
  Object.defineProperty(exports, "ReadConcernLevel", { enumerable: true, get: function () { return read_concern_1.ReadConcernLevel; } });
229361
229383
  var read_preference_1 = requireRead_preference();
229362
229384
  Object.defineProperty(exports, "ReadPreferenceMode", { enumerable: true, get: function () { return read_preference_1.ReadPreferenceMode; } });
229363
- var common_3 = requireCommon$1();
229385
+ var common_3 = requireCommon$2();
229364
229386
  Object.defineProperty(exports, "ServerType", { enumerable: true, get: function () { return common_3.ServerType; } });
229365
229387
  Object.defineProperty(exports, "TopologyType", { enumerable: true, get: function () { return common_3.TopologyType; } });
229366
229388
  var read_concern_2 = requireRead_concern();
@@ -235488,7 +235510,872 @@ var index = {
235488
235510
  wrapSync: asyncify,
235489
235511
  during: whilst$1,
235490
235512
  doDuring: doWhilst$1
235491
- };var tedious$1 = {exports: {}};var base = {exports: {}};var lib$9 = {};var connectionString = {};var hasRequiredConnectionString;
235513
+ };var tedious$1 = {exports: {}};var base = {exports: {}};var src = {exports: {}};var browser = {exports: {}};var common;
235514
+ var hasRequiredCommon;
235515
+
235516
+ function requireCommon () {
235517
+ if (hasRequiredCommon) return common;
235518
+ hasRequiredCommon = 1;
235519
+ /**
235520
+ * This is the common logic for both the Node.js and web browser
235521
+ * implementations of `debug()`.
235522
+ */
235523
+
235524
+ function setup(env) {
235525
+ createDebug.debug = createDebug;
235526
+ createDebug.default = createDebug;
235527
+ createDebug.coerce = coerce;
235528
+ createDebug.disable = disable;
235529
+ createDebug.enable = enable;
235530
+ createDebug.enabled = enabled;
235531
+ createDebug.humanize = requireMs();
235532
+ createDebug.destroy = destroy;
235533
+
235534
+ Object.keys(env).forEach(key => {
235535
+ createDebug[key] = env[key];
235536
+ });
235537
+
235538
+ /**
235539
+ * The currently active debug mode names, and names to skip.
235540
+ */
235541
+
235542
+ createDebug.names = [];
235543
+ createDebug.skips = [];
235544
+
235545
+ /**
235546
+ * Map of special "%n" handling functions, for the debug "format" argument.
235547
+ *
235548
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
235549
+ */
235550
+ createDebug.formatters = {};
235551
+
235552
+ /**
235553
+ * Selects a color for a debug namespace
235554
+ * @param {String} namespace The namespace string for the debug instance to be colored
235555
+ * @return {Number|String} An ANSI color code for the given namespace
235556
+ * @api private
235557
+ */
235558
+ function selectColor(namespace) {
235559
+ let hash = 0;
235560
+
235561
+ for (let i = 0; i < namespace.length; i++) {
235562
+ hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
235563
+ hash |= 0; // Convert to 32bit integer
235564
+ }
235565
+
235566
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
235567
+ }
235568
+ createDebug.selectColor = selectColor;
235569
+
235570
+ /**
235571
+ * Create a debugger with the given `namespace`.
235572
+ *
235573
+ * @param {String} namespace
235574
+ * @return {Function}
235575
+ * @api public
235576
+ */
235577
+ function createDebug(namespace) {
235578
+ let prevTime;
235579
+ let enableOverride = null;
235580
+ let namespacesCache;
235581
+ let enabledCache;
235582
+
235583
+ function debug(...args) {
235584
+ // Disabled?
235585
+ if (!debug.enabled) {
235586
+ return;
235587
+ }
235588
+
235589
+ const self = debug;
235590
+
235591
+ // Set `diff` timestamp
235592
+ const curr = Number(new Date());
235593
+ const ms = curr - (prevTime || curr);
235594
+ self.diff = ms;
235595
+ self.prev = prevTime;
235596
+ self.curr = curr;
235597
+ prevTime = curr;
235598
+
235599
+ args[0] = createDebug.coerce(args[0]);
235600
+
235601
+ if (typeof args[0] !== 'string') {
235602
+ // Anything else let's inspect with %O
235603
+ args.unshift('%O');
235604
+ }
235605
+
235606
+ // Apply any `formatters` transformations
235607
+ let index = 0;
235608
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
235609
+ // If we encounter an escaped % then don't increase the array index
235610
+ if (match === '%%') {
235611
+ return '%';
235612
+ }
235613
+ index++;
235614
+ const formatter = createDebug.formatters[format];
235615
+ if (typeof formatter === 'function') {
235616
+ const val = args[index];
235617
+ match = formatter.call(self, val);
235618
+
235619
+ // Now we need to remove `args[index]` since it's inlined in the `format`
235620
+ args.splice(index, 1);
235621
+ index--;
235622
+ }
235623
+ return match;
235624
+ });
235625
+
235626
+ // Apply env-specific formatting (colors, etc.)
235627
+ createDebug.formatArgs.call(self, args);
235628
+
235629
+ const logFn = self.log || createDebug.log;
235630
+ logFn.apply(self, args);
235631
+ }
235632
+
235633
+ debug.namespace = namespace;
235634
+ debug.useColors = createDebug.useColors();
235635
+ debug.color = createDebug.selectColor(namespace);
235636
+ debug.extend = extend;
235637
+ debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
235638
+
235639
+ Object.defineProperty(debug, 'enabled', {
235640
+ enumerable: true,
235641
+ configurable: false,
235642
+ get: () => {
235643
+ if (enableOverride !== null) {
235644
+ return enableOverride;
235645
+ }
235646
+ if (namespacesCache !== createDebug.namespaces) {
235647
+ namespacesCache = createDebug.namespaces;
235648
+ enabledCache = createDebug.enabled(namespace);
235649
+ }
235650
+
235651
+ return enabledCache;
235652
+ },
235653
+ set: v => {
235654
+ enableOverride = v;
235655
+ }
235656
+ });
235657
+
235658
+ // Env-specific initialization logic for debug instances
235659
+ if (typeof createDebug.init === 'function') {
235660
+ createDebug.init(debug);
235661
+ }
235662
+
235663
+ return debug;
235664
+ }
235665
+
235666
+ function extend(namespace, delimiter) {
235667
+ const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
235668
+ newDebug.log = this.log;
235669
+ return newDebug;
235670
+ }
235671
+
235672
+ /**
235673
+ * Enables a debug mode by namespaces. This can include modes
235674
+ * separated by a colon and wildcards.
235675
+ *
235676
+ * @param {String} namespaces
235677
+ * @api public
235678
+ */
235679
+ function enable(namespaces) {
235680
+ createDebug.save(namespaces);
235681
+ createDebug.namespaces = namespaces;
235682
+
235683
+ createDebug.names = [];
235684
+ createDebug.skips = [];
235685
+
235686
+ const split = (typeof namespaces === 'string' ? namespaces : '')
235687
+ .trim()
235688
+ .replace(/\s+/g, ',')
235689
+ .split(',')
235690
+ .filter(Boolean);
235691
+
235692
+ for (const ns of split) {
235693
+ if (ns[0] === '-') {
235694
+ createDebug.skips.push(ns.slice(1));
235695
+ } else {
235696
+ createDebug.names.push(ns);
235697
+ }
235698
+ }
235699
+ }
235700
+
235701
+ /**
235702
+ * Checks if the given string matches a namespace template, honoring
235703
+ * asterisks as wildcards.
235704
+ *
235705
+ * @param {String} search
235706
+ * @param {String} template
235707
+ * @return {Boolean}
235708
+ */
235709
+ function matchesTemplate(search, template) {
235710
+ let searchIndex = 0;
235711
+ let templateIndex = 0;
235712
+ let starIndex = -1;
235713
+ let matchIndex = 0;
235714
+
235715
+ while (searchIndex < search.length) {
235716
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
235717
+ // Match character or proceed with wildcard
235718
+ if (template[templateIndex] === '*') {
235719
+ starIndex = templateIndex;
235720
+ matchIndex = searchIndex;
235721
+ templateIndex++; // Skip the '*'
235722
+ } else {
235723
+ searchIndex++;
235724
+ templateIndex++;
235725
+ }
235726
+ } else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
235727
+ // Backtrack to the last '*' and try to match more characters
235728
+ templateIndex = starIndex + 1;
235729
+ matchIndex++;
235730
+ searchIndex = matchIndex;
235731
+ } else {
235732
+ return false; // No match
235733
+ }
235734
+ }
235735
+
235736
+ // Handle trailing '*' in template
235737
+ while (templateIndex < template.length && template[templateIndex] === '*') {
235738
+ templateIndex++;
235739
+ }
235740
+
235741
+ return templateIndex === template.length;
235742
+ }
235743
+
235744
+ /**
235745
+ * Disable debug output.
235746
+ *
235747
+ * @return {String} namespaces
235748
+ * @api public
235749
+ */
235750
+ function disable() {
235751
+ const namespaces = [
235752
+ ...createDebug.names,
235753
+ ...createDebug.skips.map(namespace => '-' + namespace)
235754
+ ].join(',');
235755
+ createDebug.enable('');
235756
+ return namespaces;
235757
+ }
235758
+
235759
+ /**
235760
+ * Returns true if the given mode name is enabled, false otherwise.
235761
+ *
235762
+ * @param {String} name
235763
+ * @return {Boolean}
235764
+ * @api public
235765
+ */
235766
+ function enabled(name) {
235767
+ for (const skip of createDebug.skips) {
235768
+ if (matchesTemplate(name, skip)) {
235769
+ return false;
235770
+ }
235771
+ }
235772
+
235773
+ for (const ns of createDebug.names) {
235774
+ if (matchesTemplate(name, ns)) {
235775
+ return true;
235776
+ }
235777
+ }
235778
+
235779
+ return false;
235780
+ }
235781
+
235782
+ /**
235783
+ * Coerce `val`.
235784
+ *
235785
+ * @param {Mixed} val
235786
+ * @return {Mixed}
235787
+ * @api private
235788
+ */
235789
+ function coerce(val) {
235790
+ if (val instanceof Error) {
235791
+ return val.stack || val.message;
235792
+ }
235793
+ return val;
235794
+ }
235795
+
235796
+ /**
235797
+ * XXX DO NOT USE. This is a temporary stub function.
235798
+ * XXX It WILL be removed in the next major release.
235799
+ */
235800
+ function destroy() {
235801
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
235802
+ }
235803
+
235804
+ createDebug.enable(createDebug.load());
235805
+
235806
+ return createDebug;
235807
+ }
235808
+
235809
+ common = setup;
235810
+ return common;
235811
+ }/* eslint-env browser */
235812
+
235813
+ var hasRequiredBrowser;
235814
+
235815
+ function requireBrowser () {
235816
+ if (hasRequiredBrowser) return browser.exports;
235817
+ hasRequiredBrowser = 1;
235818
+ (function (module, exports) {
235819
+ /**
235820
+ * This is the web browser implementation of `debug()`.
235821
+ */
235822
+
235823
+ exports.formatArgs = formatArgs;
235824
+ exports.save = save;
235825
+ exports.load = load;
235826
+ exports.useColors = useColors;
235827
+ exports.storage = localstorage();
235828
+ exports.destroy = (() => {
235829
+ let warned = false;
235830
+
235831
+ return () => {
235832
+ if (!warned) {
235833
+ warned = true;
235834
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
235835
+ }
235836
+ };
235837
+ })();
235838
+
235839
+ /**
235840
+ * Colors.
235841
+ */
235842
+
235843
+ exports.colors = [
235844
+ '#0000CC',
235845
+ '#0000FF',
235846
+ '#0033CC',
235847
+ '#0033FF',
235848
+ '#0066CC',
235849
+ '#0066FF',
235850
+ '#0099CC',
235851
+ '#0099FF',
235852
+ '#00CC00',
235853
+ '#00CC33',
235854
+ '#00CC66',
235855
+ '#00CC99',
235856
+ '#00CCCC',
235857
+ '#00CCFF',
235858
+ '#3300CC',
235859
+ '#3300FF',
235860
+ '#3333CC',
235861
+ '#3333FF',
235862
+ '#3366CC',
235863
+ '#3366FF',
235864
+ '#3399CC',
235865
+ '#3399FF',
235866
+ '#33CC00',
235867
+ '#33CC33',
235868
+ '#33CC66',
235869
+ '#33CC99',
235870
+ '#33CCCC',
235871
+ '#33CCFF',
235872
+ '#6600CC',
235873
+ '#6600FF',
235874
+ '#6633CC',
235875
+ '#6633FF',
235876
+ '#66CC00',
235877
+ '#66CC33',
235878
+ '#9900CC',
235879
+ '#9900FF',
235880
+ '#9933CC',
235881
+ '#9933FF',
235882
+ '#99CC00',
235883
+ '#99CC33',
235884
+ '#CC0000',
235885
+ '#CC0033',
235886
+ '#CC0066',
235887
+ '#CC0099',
235888
+ '#CC00CC',
235889
+ '#CC00FF',
235890
+ '#CC3300',
235891
+ '#CC3333',
235892
+ '#CC3366',
235893
+ '#CC3399',
235894
+ '#CC33CC',
235895
+ '#CC33FF',
235896
+ '#CC6600',
235897
+ '#CC6633',
235898
+ '#CC9900',
235899
+ '#CC9933',
235900
+ '#CCCC00',
235901
+ '#CCCC33',
235902
+ '#FF0000',
235903
+ '#FF0033',
235904
+ '#FF0066',
235905
+ '#FF0099',
235906
+ '#FF00CC',
235907
+ '#FF00FF',
235908
+ '#FF3300',
235909
+ '#FF3333',
235910
+ '#FF3366',
235911
+ '#FF3399',
235912
+ '#FF33CC',
235913
+ '#FF33FF',
235914
+ '#FF6600',
235915
+ '#FF6633',
235916
+ '#FF9900',
235917
+ '#FF9933',
235918
+ '#FFCC00',
235919
+ '#FFCC33'
235920
+ ];
235921
+
235922
+ /**
235923
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
235924
+ * and the Firebug extension (any Firefox version) are known
235925
+ * to support "%c" CSS customizations.
235926
+ *
235927
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
235928
+ */
235929
+
235930
+ // eslint-disable-next-line complexity
235931
+ function useColors() {
235932
+ // NB: In an Electron preload script, document will be defined but not fully
235933
+ // initialized. Since we know we're in Chrome, we'll just detect this case
235934
+ // explicitly
235935
+ if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
235936
+ return true;
235937
+ }
235938
+
235939
+ // Internet Explorer and Edge do not support colors.
235940
+ if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
235941
+ return false;
235942
+ }
235943
+
235944
+ let m;
235945
+
235946
+ // Is webkit? http://stackoverflow.com/a/16459606/376773
235947
+ // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
235948
+ // eslint-disable-next-line no-return-assign
235949
+ return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
235950
+ // Is firebug? http://stackoverflow.com/a/398120/376773
235951
+ (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
235952
+ // Is firefox >= v31?
235953
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
235954
+ (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
235955
+ // Double check webkit in userAgent just in case we are in a worker
235956
+ (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
235957
+ }
235958
+
235959
+ /**
235960
+ * Colorize log arguments if enabled.
235961
+ *
235962
+ * @api public
235963
+ */
235964
+
235965
+ function formatArgs(args) {
235966
+ args[0] = (this.useColors ? '%c' : '') +
235967
+ this.namespace +
235968
+ (this.useColors ? ' %c' : ' ') +
235969
+ args[0] +
235970
+ (this.useColors ? '%c ' : ' ') +
235971
+ '+' + module.exports.humanize(this.diff);
235972
+
235973
+ if (!this.useColors) {
235974
+ return;
235975
+ }
235976
+
235977
+ const c = 'color: ' + this.color;
235978
+ args.splice(1, 0, c, 'color: inherit');
235979
+
235980
+ // The final "%c" is somewhat tricky, because there could be other
235981
+ // arguments passed either before or after the %c, so we need to
235982
+ // figure out the correct index to insert the CSS into
235983
+ let index = 0;
235984
+ let lastC = 0;
235985
+ args[0].replace(/%[a-zA-Z%]/g, match => {
235986
+ if (match === '%%') {
235987
+ return;
235988
+ }
235989
+ index++;
235990
+ if (match === '%c') {
235991
+ // We only are interested in the *last* %c
235992
+ // (the user may have provided their own)
235993
+ lastC = index;
235994
+ }
235995
+ });
235996
+
235997
+ args.splice(lastC, 0, c);
235998
+ }
235999
+
236000
+ /**
236001
+ * Invokes `console.debug()` when available.
236002
+ * No-op when `console.debug` is not a "function".
236003
+ * If `console.debug` is not available, falls back
236004
+ * to `console.log`.
236005
+ *
236006
+ * @api public
236007
+ */
236008
+ exports.log = console.debug || console.log || (() => {});
236009
+
236010
+ /**
236011
+ * Save `namespaces`.
236012
+ *
236013
+ * @param {String} namespaces
236014
+ * @api private
236015
+ */
236016
+ function save(namespaces) {
236017
+ try {
236018
+ if (namespaces) {
236019
+ exports.storage.setItem('debug', namespaces);
236020
+ } else {
236021
+ exports.storage.removeItem('debug');
236022
+ }
236023
+ } catch (error) {
236024
+ // Swallow
236025
+ // XXX (@Qix-) should we be logging these?
236026
+ }
236027
+ }
236028
+
236029
+ /**
236030
+ * Load `namespaces`.
236031
+ *
236032
+ * @return {String} returns the previously persisted debug modes
236033
+ * @api private
236034
+ */
236035
+ function load() {
236036
+ let r;
236037
+ try {
236038
+ r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
236039
+ } catch (error) {
236040
+ // Swallow
236041
+ // XXX (@Qix-) should we be logging these?
236042
+ }
236043
+
236044
+ // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
236045
+ if (!r && typeof process !== 'undefined' && 'env' in process) {
236046
+ r = process.env.DEBUG;
236047
+ }
236048
+
236049
+ return r;
236050
+ }
236051
+
236052
+ /**
236053
+ * Localstorage attempts to return the localstorage.
236054
+ *
236055
+ * This is necessary because safari throws
236056
+ * when a user disables cookies/localstorage
236057
+ * and you attempt to access it.
236058
+ *
236059
+ * @return {LocalStorage}
236060
+ * @api private
236061
+ */
236062
+
236063
+ function localstorage() {
236064
+ try {
236065
+ // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
236066
+ // The Browser also has localStorage in the global context.
236067
+ return localStorage;
236068
+ } catch (error) {
236069
+ // Swallow
236070
+ // XXX (@Qix-) should we be logging these?
236071
+ }
236072
+ }
236073
+
236074
+ module.exports = requireCommon()(exports);
236075
+
236076
+ const {formatters} = module.exports;
236077
+
236078
+ /**
236079
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
236080
+ */
236081
+
236082
+ formatters.j = function (v) {
236083
+ try {
236084
+ return JSON.stringify(v);
236085
+ } catch (error) {
236086
+ return '[UnexpectedJSONParseError]: ' + error.message;
236087
+ }
236088
+ };
236089
+ } (browser, browser.exports));
236090
+ return browser.exports;
236091
+ }var node = {exports: {}};/**
236092
+ * Module dependencies.
236093
+ */
236094
+
236095
+ var hasRequiredNode;
236096
+
236097
+ function requireNode () {
236098
+ if (hasRequiredNode) return node.exports;
236099
+ hasRequiredNode = 1;
236100
+ (function (module, exports) {
236101
+ const tty = require$$0$j;
236102
+ const util = require$$0$7;
236103
+
236104
+ /**
236105
+ * This is the Node.js implementation of `debug()`.
236106
+ */
236107
+
236108
+ exports.init = init;
236109
+ exports.log = log;
236110
+ exports.formatArgs = formatArgs;
236111
+ exports.save = save;
236112
+ exports.load = load;
236113
+ exports.useColors = useColors;
236114
+ exports.destroy = util.deprecate(
236115
+ () => {},
236116
+ 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
236117
+ );
236118
+
236119
+ /**
236120
+ * Colors.
236121
+ */
236122
+
236123
+ exports.colors = [6, 2, 3, 4, 5, 1];
236124
+
236125
+ try {
236126
+ // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
236127
+ // eslint-disable-next-line import/no-extraneous-dependencies
236128
+ const supportsColor = requireSupportsColor();
236129
+
236130
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
236131
+ exports.colors = [
236132
+ 20,
236133
+ 21,
236134
+ 26,
236135
+ 27,
236136
+ 32,
236137
+ 33,
236138
+ 38,
236139
+ 39,
236140
+ 40,
236141
+ 41,
236142
+ 42,
236143
+ 43,
236144
+ 44,
236145
+ 45,
236146
+ 56,
236147
+ 57,
236148
+ 62,
236149
+ 63,
236150
+ 68,
236151
+ 69,
236152
+ 74,
236153
+ 75,
236154
+ 76,
236155
+ 77,
236156
+ 78,
236157
+ 79,
236158
+ 80,
236159
+ 81,
236160
+ 92,
236161
+ 93,
236162
+ 98,
236163
+ 99,
236164
+ 112,
236165
+ 113,
236166
+ 128,
236167
+ 129,
236168
+ 134,
236169
+ 135,
236170
+ 148,
236171
+ 149,
236172
+ 160,
236173
+ 161,
236174
+ 162,
236175
+ 163,
236176
+ 164,
236177
+ 165,
236178
+ 166,
236179
+ 167,
236180
+ 168,
236181
+ 169,
236182
+ 170,
236183
+ 171,
236184
+ 172,
236185
+ 173,
236186
+ 178,
236187
+ 179,
236188
+ 184,
236189
+ 185,
236190
+ 196,
236191
+ 197,
236192
+ 198,
236193
+ 199,
236194
+ 200,
236195
+ 201,
236196
+ 202,
236197
+ 203,
236198
+ 204,
236199
+ 205,
236200
+ 206,
236201
+ 207,
236202
+ 208,
236203
+ 209,
236204
+ 214,
236205
+ 215,
236206
+ 220,
236207
+ 221
236208
+ ];
236209
+ }
236210
+ } catch (error) {
236211
+ // Swallow - we only care if `supports-color` is available; it doesn't have to be.
236212
+ }
236213
+
236214
+ /**
236215
+ * Build up the default `inspectOpts` object from the environment variables.
236216
+ *
236217
+ * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
236218
+ */
236219
+
236220
+ exports.inspectOpts = Object.keys(process.env).filter(key => {
236221
+ return /^debug_/i.test(key);
236222
+ }).reduce((obj, key) => {
236223
+ // Camel-case
236224
+ const prop = key
236225
+ .substring(6)
236226
+ .toLowerCase()
236227
+ .replace(/_([a-z])/g, (_, k) => {
236228
+ return k.toUpperCase();
236229
+ });
236230
+
236231
+ // Coerce string value into JS value
236232
+ let val = process.env[key];
236233
+ if (/^(yes|on|true|enabled)$/i.test(val)) {
236234
+ val = true;
236235
+ } else if (/^(no|off|false|disabled)$/i.test(val)) {
236236
+ val = false;
236237
+ } else if (val === 'null') {
236238
+ val = null;
236239
+ } else {
236240
+ val = Number(val);
236241
+ }
236242
+
236243
+ obj[prop] = val;
236244
+ return obj;
236245
+ }, {});
236246
+
236247
+ /**
236248
+ * Is stdout a TTY? Colored output is enabled when `true`.
236249
+ */
236250
+
236251
+ function useColors() {
236252
+ return 'colors' in exports.inspectOpts ?
236253
+ Boolean(exports.inspectOpts.colors) :
236254
+ tty.isatty(process.stderr.fd);
236255
+ }
236256
+
236257
+ /**
236258
+ * Adds ANSI color escape codes if enabled.
236259
+ *
236260
+ * @api public
236261
+ */
236262
+
236263
+ function formatArgs(args) {
236264
+ const {namespace: name, useColors} = this;
236265
+
236266
+ if (useColors) {
236267
+ const c = this.color;
236268
+ const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
236269
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
236270
+
236271
+ args[0] = prefix + args[0].split('\n').join('\n' + prefix);
236272
+ args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
236273
+ } else {
236274
+ args[0] = getDate() + name + ' ' + args[0];
236275
+ }
236276
+ }
236277
+
236278
+ function getDate() {
236279
+ if (exports.inspectOpts.hideDate) {
236280
+ return '';
236281
+ }
236282
+ return new Date().toISOString() + ' ';
236283
+ }
236284
+
236285
+ /**
236286
+ * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
236287
+ */
236288
+
236289
+ function log(...args) {
236290
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
236291
+ }
236292
+
236293
+ /**
236294
+ * Save `namespaces`.
236295
+ *
236296
+ * @param {String} namespaces
236297
+ * @api private
236298
+ */
236299
+ function save(namespaces) {
236300
+ if (namespaces) {
236301
+ process.env.DEBUG = namespaces;
236302
+ } else {
236303
+ // If you set a process.env field to null or undefined, it gets cast to the
236304
+ // string 'null' or 'undefined'. Just delete instead.
236305
+ delete process.env.DEBUG;
236306
+ }
236307
+ }
236308
+
236309
+ /**
236310
+ * Load `namespaces`.
236311
+ *
236312
+ * @return {String} returns the previously persisted debug modes
236313
+ * @api private
236314
+ */
236315
+
236316
+ function load() {
236317
+ return process.env.DEBUG;
236318
+ }
236319
+
236320
+ /**
236321
+ * Init logic for `debug` instances.
236322
+ *
236323
+ * Create a new `inspectOpts` object in case `useColors` is set
236324
+ * differently for a particular `debug` instance.
236325
+ */
236326
+
236327
+ function init(debug) {
236328
+ debug.inspectOpts = {};
236329
+
236330
+ const keys = Object.keys(exports.inspectOpts);
236331
+ for (let i = 0; i < keys.length; i++) {
236332
+ debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
236333
+ }
236334
+ }
236335
+
236336
+ module.exports = requireCommon()(exports);
236337
+
236338
+ const {formatters} = module.exports;
236339
+
236340
+ /**
236341
+ * Map %o to `util.inspect()`, all on a single line.
236342
+ */
236343
+
236344
+ formatters.o = function (v) {
236345
+ this.inspectOpts.colors = this.useColors;
236346
+ return util.inspect(v, this.inspectOpts)
236347
+ .split('\n')
236348
+ .map(str => str.trim())
236349
+ .join(' ');
236350
+ };
236351
+
236352
+ /**
236353
+ * Map %O to `util.inspect()`, allowing multiple lines if needed.
236354
+ */
236355
+
236356
+ formatters.O = function (v) {
236357
+ this.inspectOpts.colors = this.useColors;
236358
+ return util.inspect(v, this.inspectOpts);
236359
+ };
236360
+ } (node, node.exports));
236361
+ return node.exports;
236362
+ }/**
236363
+ * Detect Electron renderer / nwjs process, which is node, but we should
236364
+ * treat as a browser.
236365
+ */
236366
+
236367
+ var hasRequiredSrc;
236368
+
236369
+ function requireSrc () {
236370
+ if (hasRequiredSrc) return src.exports;
236371
+ hasRequiredSrc = 1;
236372
+ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
236373
+ src.exports = requireBrowser();
236374
+ } else {
236375
+ src.exports = requireNode();
236376
+ }
236377
+ return src.exports;
236378
+ }var lib$9 = {};var connectionString = {};var hasRequiredConnectionString;
235492
236379
 
235493
236380
  function requireConnectionString () {
235494
236381
  if (hasRequiredConnectionString) return connectionString;
@@ -237732,7 +238619,7 @@ function requireConnectionPool$1 () {
237732
238619
  hasRequiredConnectionPool$1 = 1;
237733
238620
 
237734
238621
  const { EventEmitter } = require$$0$k;
237735
- const debug = requireSrc$1()('mssql:base');
238622
+ const debug = requireSrc()('mssql:base');
237736
238623
  const { parseSqlConnectionString } = requireLib$8();
237737
238624
  const tarn = requireTarn();
237738
238625
  const { IDS } = requireUtils$8();
@@ -238580,7 +239467,7 @@ function requirePreparedStatement () {
238580
239467
  if (hasRequiredPreparedStatement) return preparedStatement;
238581
239468
  hasRequiredPreparedStatement = 1;
238582
239469
 
238583
- const debug = requireSrc$1()('mssql:base');
239470
+ const debug = requireSrc()('mssql:base');
238584
239471
  const { EventEmitter } = require$$0$k;
238585
239472
  const { IDS, objectHasProperty } = requireUtils$8();
238586
239473
  const globalConnection = requireGlobalConnection();
@@ -238970,7 +239857,7 @@ function requireRequest$2 () {
238970
239857
  if (hasRequiredRequest$2) return request$2;
238971
239858
  hasRequiredRequest$2 = 1;
238972
239859
 
238973
- const debug = requireSrc$1()('mssql:base');
239860
+ const debug = requireSrc()('mssql:base');
238974
239861
  const { EventEmitter } = require$$0$k;
238975
239862
  const { Readable } = require$$0$l;
238976
239863
  const { IDS, objectHasProperty } = requireUtils$8();
@@ -239633,7 +240520,7 @@ function requireTransaction$2 () {
239633
240520
  if (hasRequiredTransaction$2) return transaction$2;
239634
240521
  hasRequiredTransaction$2 = 1;
239635
240522
 
239636
- const debug = requireSrc$1()('mssql:base');
240523
+ const debug = requireSrc()('mssql:base');
239637
240524
  const { EventEmitter } = require$$0$k;
239638
240525
  const { IDS } = requireUtils$8();
239639
240526
  const globalConnection = requireGlobalConnection();
@@ -275192,7 +276079,7 @@ function requireParseProxyResponse () {
275192
276079
  };
275193
276080
  Object.defineProperty(parseProxyResponse, "__esModule", { value: true });
275194
276081
  parseProxyResponse.parseProxyResponse = void 0;
275195
- const debug_1 = __importDefault(requireSrc$1());
276082
+ const debug_1 = __importDefault(requireSrc$2());
275196
276083
  const debug = (0, debug_1.default)('https-proxy-agent:parse-proxy-response');
275197
276084
  function parseProxyResponse$1(socket) {
275198
276085
  return new Promise((resolve, reject) => {
@@ -275324,7 +276211,7 @@ function requireDist$9 () {
275324
276211
  const net = __importStar(require$$0$9);
275325
276212
  const tls = __importStar(require$$1$2);
275326
276213
  const assert_1 = __importDefault(require$$4$2);
275327
- const debug_1 = __importDefault(requireSrc$1());
276214
+ const debug_1 = __importDefault(requireSrc$2());
275328
276215
  const agent_base_1 = requireDist$a();
275329
276216
  const url_1 = require$$0$h;
275330
276217
  const parse_proxy_response_1 = requireParseProxyResponse();
@@ -275508,7 +276395,7 @@ function requireDist$8 () {
275508
276395
  dist$8.HttpProxyAgent = void 0;
275509
276396
  const net = __importStar(require$$0$9);
275510
276397
  const tls = __importStar(require$$1$2);
275511
- const debug_1 = __importDefault(requireSrc$1());
276398
+ const debug_1 = __importDefault(requireSrc$2());
275512
276399
  const events_1 = require$$0$8;
275513
276400
  const agent_base_1 = requireDist$a();
275514
276401
  const url_1 = require$$0$h;
@@ -328671,7 +329558,7 @@ function requireConnectionPool () {
328671
329558
  hasRequiredConnectionPool = 1;
328672
329559
 
328673
329560
  const tds = requireTedious$1();
328674
- const debug = requireSrc$1()('mssql:tedi');
329561
+ const debug = requireSrc()('mssql:tedi');
328675
329562
  const BaseConnectionPool = requireConnectionPool$1();
328676
329563
  const { IDS } = requireUtils$8();
328677
329564
  const shared = requireShared();
@@ -328830,7 +329717,7 @@ function requireTransaction () {
328830
329717
  if (hasRequiredTransaction) return transaction;
328831
329718
  hasRequiredTransaction = 1;
328832
329719
 
328833
- const debug = requireSrc$1()('mssql:tedi');
329720
+ const debug = requireSrc()('mssql:tedi');
328834
329721
  const BaseTransaction = requireTransaction$2();
328835
329722
  const { IDS } = requireUtils$8();
328836
329723
  const TransactionError = requireTransactionError();
@@ -329259,7 +330146,7 @@ function requireRequest () {
329259
330146
  hasRequiredRequest = 1;
329260
330147
 
329261
330148
  const tds = requireTedious$1();
329262
- const debug = requireSrc$1()('mssql:tedi');
330149
+ const debug = requireSrc()('mssql:tedi');
329263
330150
  const BaseRequest = requireRequest$2();
329264
330151
  const RequestError = requireRequestError();
329265
330152
  const { IDS, objectHasProperty } = requireUtils$8();