@prisma/get-platform 6.19.0-integration-next.13 → 6.19.0-integration-feat-remove-library-engine.2

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.
@@ -35,7 +35,7 @@ __export(vitestContext_exports, {
35
35
  vitestStdoutContext: () => vitestStdoutContext
36
36
  });
37
37
  module.exports = __toCommonJS(vitestContext_exports);
38
- var import_chunk_3UEKS5W6 = require("../chunk-3UEKS5W6.js");
38
+ var import_chunk_OJINGNLI = require("../chunk-OJINGNLI.js");
39
39
  var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
40
40
  var import_node_path = __toESM(require("node:path"));
41
41
  var import_tty = require("tty");
@@ -504,18 +504,18 @@ var require_utils = (0, import_chunk_2ESYSVXG.__commonJS)({
504
504
  var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
505
505
  "../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js"(exports) {
506
506
  "use strict";
507
- var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k, k2) {
508
- if (k2 === void 0) k2 = k;
509
- var desc = Object.getOwnPropertyDescriptor(m2, k);
507
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k2, k22) {
508
+ if (k22 === void 0) k22 = k2;
509
+ var desc = Object.getOwnPropertyDescriptor(m2, k2);
510
510
  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
511
511
  desc = { enumerable: true, get: function() {
512
- return m2[k];
512
+ return m2[k2];
513
513
  } };
514
514
  }
515
- Object.defineProperty(o, k2, desc);
516
- } : function(o, m2, k, k2) {
517
- if (k2 === void 0) k2 = k;
518
- o[k2] = m2[k];
515
+ Object.defineProperty(o, k22, desc);
516
+ } : function(o, m2, k2, k22) {
517
+ if (k22 === void 0) k22 = k2;
518
+ o[k22] = m2[k2];
519
519
  });
520
520
  var __exportStar = exports && exports.__exportStar || function(m2, exports2) {
521
521
  for (var p3 in m2) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3)) __createBinding(exports2, m2, p3);
@@ -579,8 +579,8 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
579
579
  exports.expectTypeOf = expectTypeOf2;
580
580
  }
581
581
  });
582
- var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_3UEKS5W6.require_main)());
583
- var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_3UEKS5W6.require_tempy)());
582
+ var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OJINGNLI.require_main)());
583
+ var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OJINGNLI.require_tempy)());
584
584
  var f = {
585
585
  reset: [0, 0],
586
586
  bold: [1, 22, "\x1B[22m\x1B[1m"],
@@ -636,39 +636,39 @@ function C(n = false) {
636
636
  }
637
637
  function p(n = false) {
638
638
  let e = C(n), i = (r2, t, c, o) => {
639
- let l = "", s2 = 0;
639
+ let l2 = "", s2 = 0;
640
640
  do
641
- l += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
641
+ l2 += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
642
642
  while (~o);
643
- return l + r2.substring(s2);
643
+ return l2 + r2.substring(s2);
644
644
  }, g = (r2, t, c = r2) => {
645
- let o = (l) => {
646
- let s2 = String(l), b = s2.indexOf(t, r2.length);
647
- return ~b ? r2 + i(s2, t, c, b) + t : r2 + s2 + t;
645
+ let o = (l2) => {
646
+ let s2 = String(l2), b2 = s2.indexOf(t, r2.length);
647
+ return ~b2 ? r2 + i(s2, t, c, b2) + t : r2 + s2 + t;
648
648
  };
649
649
  return o.open = r2, o.close = t, o;
650
- }, u2 = {
650
+ }, u3 = {
651
651
  isColorSupported: e
652
652
  }, d = (r2) => `\x1B[${r2}m`;
653
653
  for (let [r2, t] of h)
654
- u2[r2] = e ? g(
654
+ u3[r2] = e ? g(
655
655
  d(t[0]),
656
656
  d(t[1]),
657
657
  t[2]
658
658
  ) : a;
659
- return u2;
659
+ return u3;
660
660
  }
661
661
  var r = process.env.FORCE_TTY !== void 0 || (0, import_tty.isatty)(1);
662
662
  var u = p(r);
663
663
  function _mergeNamespaces(n, m2) {
664
664
  m2.forEach(function(e) {
665
- e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
666
- if (k !== "default" && !(k in n)) {
667
- var d = Object.getOwnPropertyDescriptor(e, k);
668
- Object.defineProperty(n, k, d.get ? d : {
665
+ e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k2) {
666
+ if (k2 !== "default" && !(k2 in n)) {
667
+ var d = Object.getOwnPropertyDescriptor(e, k2);
668
+ Object.defineProperty(n, k2, d.get ? d : {
669
669
  enumerable: true,
670
670
  get: function() {
671
- return e[k];
671
+ return e[k2];
672
672
  }
673
673
  });
674
674
  }
@@ -743,7 +743,7 @@ function printIteratorValues(iterator, config2, indentation, depth, refs, printe
743
743
  function printListItems(list, config2, indentation, depth, refs, printer2) {
744
744
  let result = "";
745
745
  list = list instanceof ArrayBuffer ? new DataView(list) : list;
746
- const isDataView = (l) => l instanceof DataView;
746
+ const isDataView = (l2) => l2 instanceof DataView;
747
747
  const length = isDataView(list) ? list.byteLength : list.length;
748
748
  if (length > 0) {
749
749
  result += config2.spacingOuter;
@@ -1004,8 +1004,8 @@ var plugin$2 = {
1004
1004
  serialize: serialize$2,
1005
1005
  test: test$2
1006
1006
  };
1007
- function getDefaultExportFromCjs(x) {
1008
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1007
+ function getDefaultExportFromCjs(x2) {
1008
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1009
1009
  }
1010
1010
  var reactIs$1 = { exports: {} };
1011
1011
  var reactIs_production = {};
@@ -1217,25 +1217,25 @@ var hasRequiredReactIs_production_min;
1217
1217
  function requireReactIs_production_min() {
1218
1218
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
1219
1219
  hasRequiredReactIs_production_min = 1;
1220
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f3 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2;
1221
- u2 = Symbol.for("react.module.reference");
1222
- function v(a3) {
1220
+ var b2 = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f4 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h4 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l2 = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u3;
1221
+ u3 = Symbol.for("react.module.reference");
1222
+ function v2(a3) {
1223
1223
  if ("object" === typeof a3 && null !== a3) {
1224
1224
  var r2 = a3.$$typeof;
1225
1225
  switch (r2) {
1226
- case b:
1226
+ case b2:
1227
1227
  switch (a3 = a3.type, a3) {
1228
1228
  case d:
1229
- case f3:
1229
+ case f4:
1230
1230
  case e:
1231
1231
  case m2:
1232
1232
  case n:
1233
1233
  return a3;
1234
1234
  default:
1235
1235
  switch (a3 = a3 && a3.$$typeof, a3) {
1236
- case k:
1237
- case h3:
1238
- case l:
1236
+ case k2:
1237
+ case h4:
1238
+ case l2:
1239
1239
  case q:
1240
1240
  case p3:
1241
1241
  case g:
@@ -1249,15 +1249,15 @@ function requireReactIs_production_min() {
1249
1249
  }
1250
1250
  }
1251
1251
  }
1252
- reactIs_production_min.ContextConsumer = h3;
1252
+ reactIs_production_min.ContextConsumer = h4;
1253
1253
  reactIs_production_min.ContextProvider = g;
1254
- reactIs_production_min.Element = b;
1255
- reactIs_production_min.ForwardRef = l;
1254
+ reactIs_production_min.Element = b2;
1255
+ reactIs_production_min.ForwardRef = l2;
1256
1256
  reactIs_production_min.Fragment = d;
1257
1257
  reactIs_production_min.Lazy = q;
1258
1258
  reactIs_production_min.Memo = p3;
1259
1259
  reactIs_production_min.Portal = c;
1260
- reactIs_production_min.Profiler = f3;
1260
+ reactIs_production_min.Profiler = f4;
1261
1261
  reactIs_production_min.StrictMode = e;
1262
1262
  reactIs_production_min.Suspense = m2;
1263
1263
  reactIs_production_min.SuspenseList = n;
@@ -1268,45 +1268,45 @@ function requireReactIs_production_min() {
1268
1268
  return false;
1269
1269
  };
1270
1270
  reactIs_production_min.isContextConsumer = function(a3) {
1271
- return v(a3) === h3;
1271
+ return v2(a3) === h4;
1272
1272
  };
1273
1273
  reactIs_production_min.isContextProvider = function(a3) {
1274
- return v(a3) === g;
1274
+ return v2(a3) === g;
1275
1275
  };
1276
1276
  reactIs_production_min.isElement = function(a3) {
1277
- return "object" === typeof a3 && null !== a3 && a3.$$typeof === b;
1277
+ return "object" === typeof a3 && null !== a3 && a3.$$typeof === b2;
1278
1278
  };
1279
1279
  reactIs_production_min.isForwardRef = function(a3) {
1280
- return v(a3) === l;
1280
+ return v2(a3) === l2;
1281
1281
  };
1282
1282
  reactIs_production_min.isFragment = function(a3) {
1283
- return v(a3) === d;
1283
+ return v2(a3) === d;
1284
1284
  };
1285
1285
  reactIs_production_min.isLazy = function(a3) {
1286
- return v(a3) === q;
1286
+ return v2(a3) === q;
1287
1287
  };
1288
1288
  reactIs_production_min.isMemo = function(a3) {
1289
- return v(a3) === p3;
1289
+ return v2(a3) === p3;
1290
1290
  };
1291
1291
  reactIs_production_min.isPortal = function(a3) {
1292
- return v(a3) === c;
1292
+ return v2(a3) === c;
1293
1293
  };
1294
1294
  reactIs_production_min.isProfiler = function(a3) {
1295
- return v(a3) === f3;
1295
+ return v2(a3) === f4;
1296
1296
  };
1297
1297
  reactIs_production_min.isStrictMode = function(a3) {
1298
- return v(a3) === e;
1298
+ return v2(a3) === e;
1299
1299
  };
1300
1300
  reactIs_production_min.isSuspense = function(a3) {
1301
- return v(a3) === m2;
1301
+ return v2(a3) === m2;
1302
1302
  };
1303
1303
  reactIs_production_min.isSuspenseList = function(a3) {
1304
- return v(a3) === n;
1304
+ return v2(a3) === n;
1305
1305
  };
1306
1306
  reactIs_production_min.isValidElementType = function(a3) {
1307
- return "string" === typeof a3 || "function" === typeof a3 || a3 === d || a3 === f3 || a3 === e || a3 === m2 || a3 === n || a3 === t || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || void 0 !== a3.getModuleId) ? true : false;
1307
+ return "string" === typeof a3 || "function" === typeof a3 || a3 === d || a3 === f4 || a3 === e || a3 === m2 || a3 === n || a3 === t || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g || a3.$$typeof === h4 || a3.$$typeof === l2 || a3.$$typeof === u3 || void 0 !== a3.getModuleId) ? true : false;
1308
1308
  };
1309
- reactIs_production_min.typeOf = v;
1309
+ reactIs_production_min.typeOf = v2;
1310
1310
  return reactIs_production_min;
1311
1311
  }
1312
1312
  var reactIs_development = {};
@@ -1524,7 +1524,7 @@ var reactIsMethods = [
1524
1524
  "isSuspenseList",
1525
1525
  "isValidElementType"
1526
1526
  ];
1527
- var ReactIs = Object.fromEntries(reactIsMethods.map((m2) => [m2, (v) => ReactIs18[m2](v) || ReactIs19[m2](v)]));
1527
+ var ReactIs = Object.fromEntries(reactIsMethods.map((m2) => [m2, (v2) => ReactIs18[m2](v2) || ReactIs19[m2](v2)]));
1528
1528
  function getChildren(arg, children = []) {
1529
1529
  if (Array.isArray(arg)) {
1530
1530
  for (const item of arg) {
@@ -2193,19 +2193,6 @@ function inspectSymbol(value) {
2193
2193
  return value.toString();
2194
2194
  }
2195
2195
  var getPromiseValue = () => "Promise{\u2026}";
2196
- try {
2197
- const { getPromiseDetails, kPending, kRejected } = process.binding("util");
2198
- if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
2199
- getPromiseValue = (value, options) => {
2200
- const [state, innerValue] = getPromiseDetails(value);
2201
- if (state === kPending) {
2202
- return "Promise{<pending>}";
2203
- }
2204
- return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
2205
- };
2206
- }
2207
- } catch (notNode) {
2208
- }
2209
2196
  var promise_default = getPromiseValue;
2210
2197
  function inspectObject(object2, options) {
2211
2198
  const properties = Object.getOwnPropertyNames(object2);
@@ -2367,12 +2354,12 @@ var baseTypesMap = {
2367
2354
  HTMLCollection: inspectNodeCollection,
2368
2355
  NodeList: inspectNodeCollection
2369
2356
  };
2370
- var inspectCustom = (value, options, type3) => {
2357
+ var inspectCustom = (value, options, type3, inspectFn) => {
2371
2358
  if (chaiInspect in value && typeof value[chaiInspect] === "function") {
2372
2359
  return value[chaiInspect](options);
2373
2360
  }
2374
2361
  if (nodeInspect in value && typeof value[nodeInspect] === "function") {
2375
- return value[nodeInspect](options.depth, options);
2362
+ return value[nodeInspect](options.depth, options, inspectFn);
2376
2363
  }
2377
2364
  if ("inspect" in value && typeof value.inspect === "function") {
2378
2365
  return value.inspect(options.depth, options);
@@ -2397,7 +2384,7 @@ function inspect(value, opts = {}) {
2397
2384
  return baseTypesMap[type3](value, options);
2398
2385
  }
2399
2386
  if (customInspect && value) {
2400
- const output = inspectCustom(value, options, type3);
2387
+ const output = inspectCustom(value, options, type3, inspect);
2401
2388
  if (output) {
2402
2389
  if (typeof output === "string")
2403
2390
  return output;
@@ -2470,14 +2457,14 @@ function format2(...args) {
2470
2457
  const len = args.length;
2471
2458
  let i = 1;
2472
2459
  const template = args[0];
2473
- let str = String(template).replace(formatRegExp, (x) => {
2474
- if (x === "%%") {
2460
+ let str = String(template).replace(formatRegExp, (x2) => {
2461
+ if (x2 === "%%") {
2475
2462
  return "%";
2476
2463
  }
2477
2464
  if (i >= len) {
2478
- return x;
2465
+ return x2;
2479
2466
  }
2480
- switch (x) {
2467
+ switch (x2) {
2481
2468
  case "%s": {
2482
2469
  const value = args[i++];
2483
2470
  if (typeof value === "bigint") {
@@ -2535,14 +2522,14 @@ function format2(...args) {
2535
2522
  throw err;
2536
2523
  }
2537
2524
  default:
2538
- return x;
2525
+ return x2;
2539
2526
  }
2540
2527
  });
2541
- for (let x = args[i]; i < len; x = args[++i]) {
2542
- if (x === null || typeof x !== "object") {
2543
- str += ` ${x}`;
2528
+ for (let x2 = args[i]; i < len; x2 = args[++i]) {
2529
+ if (x2 === null || typeof x2 !== "object") {
2530
+ str += ` ${x2}`;
2544
2531
  } else {
2545
- str += ` ${inspect2(x)}`;
2532
+ str += ` ${inspect2(x2)}`;
2546
2533
  }
2547
2534
  }
2548
2535
  return str;
@@ -2575,8 +2562,8 @@ function objDisplay(obj, options = {}) {
2575
2562
  }
2576
2563
  return str;
2577
2564
  }
2578
- function getDefaultExportFromCjs2(x) {
2579
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2565
+ function getDefaultExportFromCjs2(x2) {
2566
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2580
2567
  }
2581
2568
  function createSimpleStackTrace(options) {
2582
2569
  const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
@@ -2634,15 +2621,15 @@ function deepClone(val, options = defaultCloneOptions) {
2634
2621
  return clone(val, seen, options);
2635
2622
  }
2636
2623
  function clone(val, seen, options = defaultCloneOptions) {
2637
- let k, out;
2624
+ let k2, out;
2638
2625
  if (seen.has(val)) {
2639
2626
  return seen.get(val);
2640
2627
  }
2641
2628
  if (Array.isArray(val)) {
2642
- out = Array.from({ length: k = val.length });
2629
+ out = Array.from({ length: k2 = val.length });
2643
2630
  seen.set(val, out);
2644
- while (k--) {
2645
- out[k] = clone(val[k], seen, options);
2631
+ while (k2--) {
2632
+ out[k2] = clone(val[k2], seen, options);
2646
2633
  }
2647
2634
  return out;
2648
2635
  }
@@ -2650,28 +2637,28 @@ function clone(val, seen, options = defaultCloneOptions) {
2650
2637
  out = Object.create(Object.getPrototypeOf(val));
2651
2638
  seen.set(val, out);
2652
2639
  const props = getOwnProperties(val);
2653
- for (const k2 of props) {
2654
- const descriptor = Object.getOwnPropertyDescriptor(val, k2);
2640
+ for (const k3 of props) {
2641
+ const descriptor = Object.getOwnPropertyDescriptor(val, k3);
2655
2642
  if (!descriptor) {
2656
2643
  continue;
2657
2644
  }
2658
- const cloned = clone(val[k2], seen, options);
2645
+ const cloned = clone(val[k3], seen, options);
2659
2646
  if (options.forceWritable) {
2660
- Object.defineProperty(out, k2, {
2647
+ Object.defineProperty(out, k3, {
2661
2648
  enumerable: descriptor.enumerable,
2662
2649
  configurable: true,
2663
2650
  writable: true,
2664
2651
  value: cloned
2665
2652
  });
2666
2653
  } else if ("get" in descriptor) {
2667
- Object.defineProperty(out, k2, {
2654
+ Object.defineProperty(out, k3, {
2668
2655
  ...descriptor,
2669
2656
  get() {
2670
2657
  return cloned;
2671
2658
  }
2672
2659
  });
2673
2660
  } else {
2674
- Object.defineProperty(out, k2, {
2661
+ Object.defineProperty(out, k3, {
2675
2662
  ...descriptor,
2676
2663
  value: cloned
2677
2664
  });
@@ -4056,19 +4043,19 @@ function joinAlignedDiffsNoExpand(diffs, options) {
4056
4043
  let aEnd = 0;
4057
4044
  let bEnd = 0;
4058
4045
  const pushCommonLine = (line) => {
4059
- const j = lines.length;
4060
- lines.push(printCommonLine(line, j === 0 || j === jLast, options));
4046
+ const j2 = lines.length;
4047
+ lines.push(printCommonLine(line, j2 === 0 || j2 === jLast, options));
4061
4048
  aEnd += 1;
4062
4049
  bEnd += 1;
4063
4050
  };
4064
4051
  const pushDeleteLine = (line) => {
4065
- const j = lines.length;
4066
- lines.push(printDeleteLine(line, j === 0 || j === jLast, options));
4052
+ const j2 = lines.length;
4053
+ lines.push(printDeleteLine(line, j2 === 0 || j2 === jLast, options));
4067
4054
  aEnd += 1;
4068
4055
  };
4069
4056
  const pushInsertLine = (line) => {
4070
- const j = lines.length;
4071
- lines.push(printInsertLine(line, j === 0 || j === jLast, options));
4057
+ const j2 = lines.length;
4058
+ lines.push(printInsertLine(line, j2 === 0 || j2 === jLast, options));
4072
4059
  bEnd += 1;
4073
4060
  };
4074
4061
  i = 0;
@@ -4195,20 +4182,20 @@ function isEmptyString(lines) {
4195
4182
  }
4196
4183
  function countChanges(diffs) {
4197
4184
  let a3 = 0;
4198
- let b = 0;
4185
+ let b2 = 0;
4199
4186
  diffs.forEach((diff2) => {
4200
4187
  switch (diff2[0]) {
4201
4188
  case DIFF_DELETE:
4202
4189
  a3 += 1;
4203
4190
  break;
4204
4191
  case DIFF_INSERT:
4205
- b += 1;
4192
+ b2 += 1;
4206
4193
  break;
4207
4194
  }
4208
4195
  });
4209
4196
  return {
4210
4197
  a: a3,
4211
- b
4198
+ b: b2
4212
4199
  };
4213
4200
  }
4214
4201
  function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) {
@@ -4230,9 +4217,9 @@ function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor,
4230
4217
  bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
4231
4218
  }
4232
4219
  const a3 = `${aIndicator} ${aAnnotation}${aRest}`;
4233
- const b = `${bIndicator} ${bAnnotation}${bRest}`;
4220
+ const b2 = `${bIndicator} ${bAnnotation}${bRest}`;
4234
4221
  return `${aColor(a3)}
4235
- ${bColor(b)}
4222
+ ${bColor(b2)}
4236
4223
 
4237
4224
  `;
4238
4225
  }
@@ -4346,25 +4333,25 @@ function getType3(value) {
4346
4333
  function getNewLineSymbol(string2) {
4347
4334
  return string2.includes("\r\n") ? "\r\n" : "\n";
4348
4335
  }
4349
- function diffStrings(a3, b, options) {
4336
+ function diffStrings(a3, b2, options) {
4350
4337
  const truncate3 = (options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? false;
4351
4338
  const truncateThreshold = Math.max(Math.floor((options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? 0), 0);
4352
4339
  let aLength = a3.length;
4353
- let bLength = b.length;
4340
+ let bLength = b2.length;
4354
4341
  if (truncate3) {
4355
4342
  const aMultipleLines = a3.includes("\n");
4356
- const bMultipleLines = b.includes("\n");
4343
+ const bMultipleLines = b2.includes("\n");
4357
4344
  const aNewLineSymbol = getNewLineSymbol(a3);
4358
- const bNewLineSymbol = getNewLineSymbol(b);
4345
+ const bNewLineSymbol = getNewLineSymbol(b2);
4359
4346
  const _a = aMultipleLines ? `${a3.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}
4360
4347
  ` : a3;
4361
- const _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
4362
- ` : b;
4348
+ const _b = bMultipleLines ? `${b2.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
4349
+ ` : b2;
4363
4350
  aLength = _a.length;
4364
4351
  bLength = _b.length;
4365
4352
  }
4366
- const truncated = aLength !== a3.length || bLength !== b.length;
4367
- const isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b[bIndex2];
4353
+ const truncated = aLength !== a3.length || bLength !== b2.length;
4354
+ const isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b2[bIndex2];
4368
4355
  let aIndex = 0;
4369
4356
  let bIndex = 0;
4370
4357
  const diffs = [];
@@ -4373,18 +4360,18 @@ function diffStrings(a3, b, options) {
4373
4360
  diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex, aCommon)));
4374
4361
  }
4375
4362
  if (bIndex !== bCommon) {
4376
- diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon)));
4363
+ diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex, bCommon)));
4377
4364
  }
4378
4365
  aIndex = aCommon + nCommon;
4379
4366
  bIndex = bCommon + nCommon;
4380
- diffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex)));
4367
+ diffs.push(new Diff(DIFF_EQUAL, b2.slice(bCommon, bIndex)));
4381
4368
  };
4382
4369
  diffSequences(aLength, bLength, isCommon, foundSubsequence);
4383
4370
  if (aIndex !== aLength) {
4384
4371
  diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex)));
4385
4372
  }
4386
4373
  if (bIndex !== bLength) {
4387
- diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex)));
4374
+ diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex)));
4388
4375
  }
4389
4376
  return [diffs, truncated];
4390
4377
  }
@@ -4526,22 +4513,22 @@ function hasCommonDiff(diffs, isMultiline) {
4526
4513
  }
4527
4514
  return diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
4528
4515
  }
4529
- function diffStringsUnified(a3, b, options) {
4530
- if (a3 !== b && a3.length !== 0 && b.length !== 0) {
4531
- const isMultiline = a3.includes("\n") || b.includes("\n");
4516
+ function diffStringsUnified(a3, b2, options) {
4517
+ if (a3 !== b2 && a3.length !== 0 && b2.length !== 0) {
4518
+ const isMultiline = a3.includes("\n") || b2.includes("\n");
4532
4519
  const [diffs, truncated] = diffStringsRaw(isMultiline ? `${a3}
4533
- ` : a3, isMultiline ? `${b}
4534
- ` : b, true, options);
4520
+ ` : a3, isMultiline ? `${b2}
4521
+ ` : b2, true, options);
4535
4522
  if (hasCommonDiff(diffs, isMultiline)) {
4536
4523
  const optionsNormalized = normalizeDiffOptions(options);
4537
4524
  const lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);
4538
4525
  return printDiffLines(lines, truncated, optionsNormalized);
4539
4526
  }
4540
4527
  }
4541
- return diffLinesUnified(a3.split("\n"), b.split("\n"), options);
4528
+ return diffLinesUnified(a3.split("\n"), b2.split("\n"), options);
4542
4529
  }
4543
- function diffStringsRaw(a3, b, cleanup, options) {
4544
- const [diffs, truncated] = diffStrings(a3, b, options);
4530
+ function diffStringsRaw(a3, b2, cleanup, options) {
4531
+ const [diffs, truncated] = diffStrings(a3, b2, options);
4545
4532
  if (cleanup) {
4546
4533
  diff_cleanupSemantic(diffs);
4547
4534
  }
@@ -4570,8 +4557,8 @@ var FALLBACK_FORMAT_OPTIONS = {
4570
4557
  maxDepth: 8,
4571
4558
  plugins: PLUGINS2
4572
4559
  };
4573
- function diff(a3, b, options) {
4574
- if (Object.is(a3, b)) {
4560
+ function diff(a3, b2, options) {
4561
+ if (Object.is(a3, b2)) {
4575
4562
  return "";
4576
4563
  }
4577
4564
  const aType = getType3(a3);
@@ -4587,7 +4574,7 @@ function diff(a3, b, options) {
4587
4574
  expectedType = a3.getExpectedType();
4588
4575
  omitDifference = expectedType === "string";
4589
4576
  }
4590
- if (expectedType !== getType3(b)) {
4577
+ if (expectedType !== getType3(b2)) {
4591
4578
  let truncate4 = function(s2) {
4592
4579
  return s2.length <= MAX_LENGTH ? s2 : `${s2.slice(0, MAX_LENGTH)}...`;
4593
4580
  };
@@ -4595,7 +4582,7 @@ function diff(a3, b, options) {
4595
4582
  const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
4596
4583
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
4597
4584
  let aDisplay = format(a3, formatOptions);
4598
- let bDisplay = format(b, formatOptions);
4585
+ let bDisplay = format(b2, formatOptions);
4599
4586
  const MAX_LENGTH = 1e5;
4600
4587
  aDisplay = truncate4(aDisplay);
4601
4588
  bDisplay = truncate4(bDisplay);
@@ -4612,21 +4599,21 @@ ${bDiff}`;
4612
4599
  }
4613
4600
  switch (aType) {
4614
4601
  case "string":
4615
- return diffLinesUnified(a3.split("\n"), b.split("\n"), options);
4602
+ return diffLinesUnified(a3.split("\n"), b2.split("\n"), options);
4616
4603
  case "boolean":
4617
4604
  case "number":
4618
- return comparePrimitive(a3, b, options);
4605
+ return comparePrimitive(a3, b2, options);
4619
4606
  case "map":
4620
- return compareObjects(sortMap(a3), sortMap(b), options);
4607
+ return compareObjects(sortMap(a3), sortMap(b2), options);
4621
4608
  case "set":
4622
- return compareObjects(sortSet(a3), sortSet(b), options);
4609
+ return compareObjects(sortSet(a3), sortSet(b2), options);
4623
4610
  default:
4624
- return compareObjects(a3, b, options);
4611
+ return compareObjects(a3, b2, options);
4625
4612
  }
4626
4613
  }
4627
- function comparePrimitive(a3, b, options) {
4614
+ function comparePrimitive(a3, b2, options) {
4628
4615
  const aFormat = format(a3, FORMAT_OPTIONS);
4629
- const bFormat = format(b, FORMAT_OPTIONS);
4616
+ const bFormat = format(b2, FORMAT_OPTIONS);
4630
4617
  return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split("\n"), bFormat.split("\n"), options);
4631
4618
  }
4632
4619
  function sortMap(map2) {
@@ -4635,19 +4622,19 @@ function sortMap(map2) {
4635
4622
  function sortSet(set3) {
4636
4623
  return new Set(Array.from(set3.values()).sort());
4637
4624
  }
4638
- function compareObjects(a3, b, options) {
4625
+ function compareObjects(a3, b2, options) {
4639
4626
  let difference;
4640
4627
  let hasThrown = false;
4641
4628
  try {
4642
4629
  const formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
4643
- difference = getObjectsDifference(a3, b, formatOptions, options);
4630
+ difference = getObjectsDifference(a3, b2, formatOptions, options);
4644
4631
  } catch {
4645
4632
  hasThrown = true;
4646
4633
  }
4647
4634
  const noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
4648
4635
  if (difference === void 0 || difference === noDiffMessage) {
4649
4636
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
4650
- difference = getObjectsDifference(a3, b, formatOptions, options);
4637
+ difference = getObjectsDifference(a3, b2, formatOptions, options);
4651
4638
  if (difference !== noDiffMessage && !hasThrown) {
4652
4639
  difference = `${getCommonMessage(SIMILAR_MESSAGE, options)}
4653
4640
 
@@ -4665,18 +4652,18 @@ function getFormatOptions(formatOptions, options) {
4665
4652
  maxDepth: maxDepth ?? formatOptions.maxDepth
4666
4653
  };
4667
4654
  }
4668
- function getObjectsDifference(a3, b, formatOptions, options) {
4655
+ function getObjectsDifference(a3, b2, formatOptions, options) {
4669
4656
  const formatOptionsZeroIndent = {
4670
4657
  ...formatOptions,
4671
4658
  indent: 0
4672
4659
  };
4673
4660
  const aCompare = format(a3, formatOptionsZeroIndent);
4674
- const bCompare = format(b, formatOptionsZeroIndent);
4661
+ const bCompare = format(b2, formatOptionsZeroIndent);
4675
4662
  if (aCompare === bCompare) {
4676
4663
  return getCommonMessage(NO_DIFF_MESSAGE, options);
4677
4664
  } else {
4678
4665
  const aDisplay = format(a3, formatOptions);
4679
- const bDisplay = format(b, formatOptions);
4666
+ const bDisplay = format(b2, formatOptions);
4680
4667
  return diffLinesUnified2(aDisplay.split("\n"), bDisplay.split("\n"), aCompare.split("\n"), bCompare.split("\n"), options);
4681
4668
  }
4682
4669
  }
@@ -4771,163 +4758,163 @@ function printExpected(value) {
4771
4758
  function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
4772
4759
  return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? u.inverse(diff2[1]) : diff2[1] : ""), "");
4773
4760
  }
4774
- function assert(condition, message) {
4775
- if (!condition)
4776
- throw new Error(message);
4761
+ function S(e, t) {
4762
+ if (!e)
4763
+ throw new Error(t);
4777
4764
  }
4778
- function isType(type3, value) {
4779
- return typeof value === type3;
4765
+ function f2(e, t) {
4766
+ return typeof t === e;
4780
4767
  }
4781
- function isPromise(value) {
4782
- return value instanceof Promise;
4768
+ function w(e) {
4769
+ return e instanceof Promise;
4783
4770
  }
4784
- function define(obj, key, descriptor) {
4785
- Object.defineProperty(obj, key, descriptor);
4771
+ function u2(e, t, r2) {
4772
+ Object.defineProperty(e, t, r2);
4786
4773
  }
4787
- function defineValue(obj, key, value) {
4788
- define(obj, key, { value, configurable: true, writable: true });
4774
+ function l(e, t, r2) {
4775
+ u2(e, t, { value: r2, configurable: true, writable: true });
4789
4776
  }
4790
- var SYMBOL_STATE = Symbol.for("tinyspy:spy");
4791
- var spies = /* @__PURE__ */ new Set();
4792
- var reset = (state) => {
4793
- state.called = false, state.callCount = 0, state.calls = [], state.results = [], state.resolves = [], state.next = [];
4777
+ var y = Symbol.for("tinyspy:spy");
4778
+ var x = /* @__PURE__ */ new Set();
4779
+ var h2 = (e) => {
4780
+ e.called = false, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
4794
4781
  };
4795
- var defineState = (spy2) => (define(spy2, SYMBOL_STATE, {
4796
- value: { reset: () => reset(spy2[SYMBOL_STATE]) }
4797
- }), spy2[SYMBOL_STATE]);
4798
- var getInternalState = (spy2) => spy2[SYMBOL_STATE] || defineState(spy2);
4799
- function createInternalSpy(cb) {
4800
- assert(
4801
- isType("function", cb) || isType("undefined", cb),
4782
+ var k = (e) => (u2(e, y, {
4783
+ value: { reset: () => h2(e[y]) }
4784
+ }), e[y]);
4785
+ var T = (e) => e[y] || k(e);
4786
+ function R(e) {
4787
+ S(
4788
+ f2("function", e) || f2("undefined", e),
4802
4789
  "cannot spy on a non-function value"
4803
4790
  );
4804
- let fn2 = function(...args) {
4805
- let state2 = getInternalState(fn2);
4806
- state2.called = true, state2.callCount++, state2.calls.push(args);
4807
- let next = state2.next.shift();
4808
- if (next) {
4809
- state2.results.push(next);
4810
- let [type22, result2] = next;
4811
- if (type22 === "ok")
4812
- return result2;
4813
- throw result2;
4814
- }
4815
- let result, type3 = "ok", resultIndex = state2.results.length;
4816
- if (state2.impl)
4791
+ let t = function(...s2) {
4792
+ let n = T(t);
4793
+ n.called = true, n.callCount++, n.calls.push(s2);
4794
+ let d = n.next.shift();
4795
+ if (d) {
4796
+ n.results.push(d);
4797
+ let [a3, i] = d;
4798
+ if (a3 === "ok")
4799
+ return i;
4800
+ throw i;
4801
+ }
4802
+ let o, c = "ok", p3 = n.results.length;
4803
+ if (n.impl)
4817
4804
  try {
4818
- new.target ? result = Reflect.construct(state2.impl, args, new.target) : result = state2.impl.apply(this, args), type3 = "ok";
4819
- } catch (err) {
4820
- throw result = err, type3 = "error", state2.results.push([type3, err]), err;
4821
- }
4822
- let resultTuple = [type3, result];
4823
- return isPromise(result) && result.then(
4824
- (r2) => state2.resolves[resultIndex] = ["ok", r2],
4825
- (e) => state2.resolves[resultIndex] = ["error", e]
4826
- ), state2.results.push(resultTuple), result;
4805
+ new.target ? o = Reflect.construct(n.impl, s2, new.target) : o = n.impl.apply(this, s2), c = "ok";
4806
+ } catch (a3) {
4807
+ throw o = a3, c = "error", n.results.push([c, a3]), a3;
4808
+ }
4809
+ let g = [c, o];
4810
+ return w(o) && o.then(
4811
+ (a3) => n.resolves[p3] = ["ok", a3],
4812
+ (a3) => n.resolves[p3] = ["error", a3]
4813
+ ), n.results.push(g), o;
4827
4814
  };
4828
- defineValue(fn2, "_isMockFunction", true), defineValue(fn2, "length", cb ? cb.length : 0), defineValue(fn2, "name", cb && cb.name || "spy");
4829
- let state = getInternalState(fn2);
4830
- return state.reset(), state.impl = cb, fn2;
4831
- }
4832
- function isMockFunction(obj) {
4833
- return !!obj && obj._isMockFunction === true;
4834
- }
4835
- var getDescriptor = (obj, method) => {
4836
- let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
4837
- if (objDescriptor)
4838
- return [obj, objDescriptor];
4839
- let currentProto = Object.getPrototypeOf(obj);
4840
- for (; currentProto !== null; ) {
4841
- let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
4842
- if (descriptor)
4843
- return [currentProto, descriptor];
4844
- currentProto = Object.getPrototypeOf(currentProto);
4815
+ l(t, "_isMockFunction", true), l(t, "length", e ? e.length : 0), l(t, "name", e && e.name || "spy");
4816
+ let r2 = T(t);
4817
+ return r2.reset(), r2.impl = e, t;
4818
+ }
4819
+ function v(e) {
4820
+ return !!e && e._isMockFunction === true;
4821
+ }
4822
+ var b = (e, t) => {
4823
+ let r2 = Object.getOwnPropertyDescriptor(e, t);
4824
+ if (r2)
4825
+ return [e, r2];
4826
+ let s2 = Object.getPrototypeOf(e);
4827
+ for (; s2 !== null; ) {
4828
+ let n = Object.getOwnPropertyDescriptor(s2, t);
4829
+ if (n)
4830
+ return [s2, n];
4831
+ s2 = Object.getPrototypeOf(s2);
4845
4832
  }
4846
4833
  };
4847
- var setPototype = (fn2, val) => {
4848
- val != null && typeof val == "function" && val.prototype != null && Object.setPrototypeOf(fn2.prototype, val.prototype);
4834
+ var P = (e, t) => {
4835
+ t != null && typeof t == "function" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype);
4849
4836
  };
4850
- function internalSpyOn(obj, methodName, mock) {
4851
- assert(
4852
- !isType("undefined", obj),
4837
+ function M(e, t, r2) {
4838
+ S(
4839
+ !f2("undefined", e),
4853
4840
  "spyOn could not find an object to spy upon"
4854
- ), assert(
4855
- isType("object", obj) || isType("function", obj),
4841
+ ), S(
4842
+ f2("object", e) || f2("function", e),
4856
4843
  "cannot spyOn on a primitive value"
4857
4844
  );
4858
- let [accessName, accessType] = (() => {
4859
- if (!isType("object", methodName))
4860
- return [methodName, "value"];
4861
- if ("getter" in methodName && "setter" in methodName)
4845
+ let [s2, n] = (() => {
4846
+ if (!f2("object", t))
4847
+ return [t, "value"];
4848
+ if ("getter" in t && "setter" in t)
4862
4849
  throw new Error("cannot spy on both getter and setter");
4863
- if ("getter" in methodName)
4864
- return [methodName.getter, "get"];
4865
- if ("setter" in methodName)
4866
- return [methodName.setter, "set"];
4850
+ if ("getter" in t)
4851
+ return [t.getter, "get"];
4852
+ if ("setter" in t)
4853
+ return [t.setter, "set"];
4867
4854
  throw new Error("specify getter or setter to spy on");
4868
- })(), [originalDescriptorObject, originalDescriptor] = getDescriptor(obj, accessName) || [];
4869
- assert(
4870
- originalDescriptor || accessName in obj,
4871
- `${String(accessName)} does not exist`
4855
+ })(), [d, o] = b(e, s2) || [];
4856
+ S(
4857
+ o || s2 in e,
4858
+ `${String(s2)} does not exist`
4872
4859
  );
4873
- let ssr = false;
4874
- accessType === "value" && originalDescriptor && !originalDescriptor.value && originalDescriptor.get && (accessType = "get", ssr = true, mock = originalDescriptor.get());
4875
- let original;
4876
- originalDescriptor ? original = originalDescriptor[accessType] : accessType !== "value" ? original = () => obj[accessName] : original = obj[accessName], original && isSpyFunction(original) && (original = original[SYMBOL_STATE].getOriginal());
4877
- let reassign = (cb) => {
4878
- let { value, ...desc } = originalDescriptor || {
4860
+ let c = false;
4861
+ n === "value" && o && !o.value && o.get && (n = "get", c = true, r2 = o.get());
4862
+ let p3;
4863
+ o ? p3 = o[n] : n !== "value" ? p3 = () => e[s2] : p3 = e[s2], p3 && j(p3) && (p3 = p3[y].getOriginal());
4864
+ let g = (I) => {
4865
+ let { value: F, ...O } = o || {
4879
4866
  configurable: true,
4880
4867
  writable: true
4881
4868
  };
4882
- accessType !== "value" && delete desc.writable, desc[accessType] = cb, define(obj, accessName, desc);
4883
- }, restore = () => {
4884
- originalDescriptorObject !== obj ? Reflect.deleteProperty(obj, accessName) : originalDescriptor && !original ? define(obj, accessName, originalDescriptor) : reassign(original);
4869
+ n !== "value" && delete O.writable, O[n] = I, u2(e, s2, O);
4870
+ }, a3 = () => {
4871
+ d !== e ? Reflect.deleteProperty(e, s2) : o && !p3 ? u2(e, s2, o) : g(p3);
4885
4872
  };
4886
- mock || (mock = original);
4887
- let spy2 = wrap(createInternalSpy(mock), mock);
4888
- accessType === "value" && setPototype(spy2, original);
4889
- let state = spy2[SYMBOL_STATE];
4890
- return defineValue(state, "restore", restore), defineValue(state, "getOriginal", () => ssr ? original() : original), defineValue(state, "willCall", (newCb) => (state.impl = newCb, spy2)), reassign(
4891
- ssr ? () => (setPototype(spy2, mock), spy2) : spy2
4892
- ), spies.add(spy2), spy2;
4893
- }
4894
- var ignoreProperties = /* @__PURE__ */ new Set([
4873
+ r2 || (r2 = p3);
4874
+ let i = E(R(r2), r2);
4875
+ n === "value" && P(i, p3);
4876
+ let m2 = i[y];
4877
+ return l(m2, "restore", a3), l(m2, "getOriginal", () => c ? p3() : p3), l(m2, "willCall", (I) => (m2.impl = I, i)), g(
4878
+ c ? () => (P(i, r2), i) : i
4879
+ ), x.add(i), i;
4880
+ }
4881
+ var K = /* @__PURE__ */ new Set([
4895
4882
  "length",
4896
4883
  "name",
4897
4884
  "prototype"
4898
4885
  ]);
4899
- function getAllProperties(original) {
4900
- let properties = /* @__PURE__ */ new Set(), descriptors2 = {};
4901
- for (; original && original !== Object.prototype && original !== Function.prototype; ) {
4902
- let ownProperties = [
4903
- ...Object.getOwnPropertyNames(original),
4904
- ...Object.getOwnPropertySymbols(original)
4886
+ function D(e) {
4887
+ let t = /* @__PURE__ */ new Set(), r2 = {};
4888
+ for (; e && e !== Object.prototype && e !== Function.prototype; ) {
4889
+ let s2 = [
4890
+ ...Object.getOwnPropertyNames(e),
4891
+ ...Object.getOwnPropertySymbols(e)
4905
4892
  ];
4906
- for (let prop of ownProperties)
4907
- descriptors2[prop] || ignoreProperties.has(prop) || (properties.add(prop), descriptors2[prop] = Object.getOwnPropertyDescriptor(original, prop));
4908
- original = Object.getPrototypeOf(original);
4893
+ for (let n of s2)
4894
+ r2[n] || K.has(n) || (t.add(n), r2[n] = Object.getOwnPropertyDescriptor(e, n));
4895
+ e = Object.getPrototypeOf(e);
4909
4896
  }
4910
4897
  return {
4911
- properties,
4912
- descriptors: descriptors2
4898
+ properties: t,
4899
+ descriptors: r2
4913
4900
  };
4914
4901
  }
4915
- function wrap(mock, original) {
4916
- if (!original || // the original is already a spy, so it has all the properties
4917
- SYMBOL_STATE in original)
4918
- return mock;
4919
- let { properties, descriptors: descriptors2 } = getAllProperties(original);
4920
- for (let key of properties) {
4921
- let descriptor = descriptors2[key];
4922
- getDescriptor(mock, key) || define(mock, key, descriptor);
4902
+ function E(e, t) {
4903
+ if (!t || // the original is already a spy, so it has all the properties
4904
+ y in t)
4905
+ return e;
4906
+ let { properties: r2, descriptors: s2 } = D(t);
4907
+ for (let n of r2) {
4908
+ let d = s2[n];
4909
+ b(e, n) || u2(e, n, d);
4923
4910
  }
4924
- return mock;
4911
+ return e;
4925
4912
  }
4926
- function isSpyFunction(obj) {
4927
- return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE];
4913
+ function j(e) {
4914
+ return v(e) && "getOriginal" in e[y];
4928
4915
  }
4929
4916
  var mocks = /* @__PURE__ */ new Set();
4930
- function isMockFunction2(fn2) {
4917
+ function isMockFunction(fn2) {
4931
4918
  return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
4932
4919
  }
4933
4920
  function spyOn(obj, method, accessType) {
@@ -4937,13 +4924,13 @@ function spyOn(obj, method, accessType) {
4937
4924
  };
4938
4925
  const objMethod = accessType ? { [dictionary[accessType]]: method } : method;
4939
4926
  let state;
4940
- const descriptor = getDescriptor2(obj, method);
4927
+ const descriptor = getDescriptor(obj, method);
4941
4928
  const fn2 = descriptor && descriptor[accessType || "value"];
4942
- if (isMockFunction2(fn2)) {
4929
+ if (isMockFunction(fn2)) {
4943
4930
  state = fn2.mock._state();
4944
4931
  }
4945
4932
  try {
4946
- const stub = internalSpyOn(obj, objMethod);
4933
+ const stub = M(obj, objMethod);
4947
4934
  const spy = enhanceSpy(stub);
4948
4935
  if (state) {
4949
4936
  spy.mock._state(state);
@@ -4965,7 +4952,7 @@ function enhanceSpy(spy) {
4965
4952
  let instances = [];
4966
4953
  let contexts = [];
4967
4954
  let invocations = [];
4968
- const state = getInternalState(spy);
4955
+ const state = T(spy);
4969
4956
  const mockContext = {
4970
4957
  get calls() {
4971
4958
  return state.calls;
@@ -5063,18 +5050,18 @@ function enhanceSpy(spy) {
5063
5050
  implementation = fn2;
5064
5051
  state.willCall(mockCall);
5065
5052
  implementationChangedTemporarily = true;
5066
- const reset2 = () => {
5053
+ const reset = () => {
5067
5054
  implementation = originalImplementation;
5068
5055
  implementationChangedTemporarily = false;
5069
5056
  };
5070
5057
  const result = cb();
5071
5058
  if (typeof result === "object" && result && typeof result.then === "function") {
5072
5059
  return result.then(() => {
5073
- reset2();
5060
+ reset();
5074
5061
  return stub;
5075
5062
  });
5076
5063
  }
5077
- reset2();
5064
+ reset();
5078
5065
  return stub;
5079
5066
  }
5080
5067
  stub.withImplementation = withImplementation;
@@ -5093,14 +5080,14 @@ function enhanceSpy(spy) {
5093
5080
  return stub;
5094
5081
  }
5095
5082
  function fn(implementation) {
5096
- const enhancedSpy = enhanceSpy(internalSpyOn({ spy: implementation || function() {
5083
+ const enhancedSpy = enhanceSpy(M({ spy: implementation || function() {
5097
5084
  } }, "spy"));
5098
5085
  if (implementation) {
5099
5086
  enhancedSpy.mockImplementation(implementation);
5100
5087
  }
5101
5088
  return enhancedSpy;
5102
5089
  }
5103
- function getDescriptor2(obj, method) {
5090
+ function getDescriptor(obj, method) {
5104
5091
  const objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
5105
5092
  if (objDescriptor) {
5106
5093
  return objDescriptor;
@@ -5116,8 +5103,8 @@ function getDescriptor2(obj, method) {
5116
5103
  }
5117
5104
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
5118
5105
  var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
5119
- function isImmutable(v) {
5120
- return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
5106
+ function isImmutable(v2) {
5107
+ return v2 && (v2[IS_COLLECTION_SYMBOL] || v2[IS_RECORD_SYMBOL]);
5121
5108
  }
5122
5109
  var OBJECT_PROTO = Object.getPrototypeOf({});
5123
5110
  function getUnserializableMessage(err) {
@@ -5263,19 +5250,11 @@ Inner error message: ${err === null || err === void 0 ? void 0 : err.message}`))
5263
5250
  }
5264
5251
  }
5265
5252
  var __defProp2 = Object.defineProperty;
5266
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
5267
5253
  var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
5268
- var __commonJS2 = (cb, mod) => function __require() {
5269
- return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5270
- };
5271
5254
  var __export2 = (target, all) => {
5272
5255
  for (var name in all)
5273
5256
  __defProp2(target, name, { get: all[name], enumerable: true });
5274
5257
  };
5275
- var require_util = __commonJS2({
5276
- "(disabled):util"() {
5277
- }
5278
- });
5279
5258
  var utils_exports = {};
5280
5259
  __export2(utils_exports, {
5281
5260
  addChainableMethod: () => addChainableMethod,
@@ -5373,7 +5352,7 @@ function getMessage(errorLike) {
5373
5352
  }
5374
5353
  __name(getMessage, "getMessage");
5375
5354
  function flag(obj, key, value) {
5376
- var flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
5355
+ let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
5377
5356
  if (arguments.length === 3) {
5378
5357
  flags[key] = value;
5379
5358
  } else {
@@ -5382,7 +5361,7 @@ function flag(obj, key, value) {
5382
5361
  }
5383
5362
  __name(flag, "flag");
5384
5363
  function test2(obj, args) {
5385
- var negate = flag(obj, "negate"), expr = args[0];
5364
+ let negate = flag(obj, "negate"), expr = args[0];
5386
5365
  return negate ? !expr : expr;
5387
5366
  }
5388
5367
  __name(test2, "test");
@@ -5436,20 +5415,20 @@ var AssertionError = class _AssertionError extends Error {
5436
5415
  }
5437
5416
  };
5438
5417
  function expectTypes(obj, types) {
5439
- var flagMsg = flag(obj, "message");
5440
- var ssfi = flag(obj, "ssfi");
5418
+ let flagMsg = flag(obj, "message");
5419
+ let ssfi = flag(obj, "ssfi");
5441
5420
  flagMsg = flagMsg ? flagMsg + ": " : "";
5442
5421
  obj = flag(obj, "object");
5443
5422
  types = types.map(function(t) {
5444
5423
  return t.toLowerCase();
5445
5424
  });
5446
5425
  types.sort();
5447
- var str = types.map(function(t, index2) {
5448
- var art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a";
5449
- var or = types.length > 1 && index2 === types.length - 1 ? "or " : "";
5426
+ let str = types.map(function(t, index2) {
5427
+ let art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a";
5428
+ let or = types.length > 1 && index2 === types.length - 1 ? "or " : "";
5450
5429
  return or + art + " " + t;
5451
5430
  }).join(", ");
5452
- var objType = type(obj).toLowerCase();
5431
+ let objType = type(obj).toLowerCase();
5453
5432
  if (!types.some(function(expected) {
5454
5433
  return objType === expected;
5455
5434
  })) {
@@ -5707,10 +5686,8 @@ function mapToEntries2(map2) {
5707
5686
  }
5708
5687
  __name(mapToEntries2, "mapToEntries");
5709
5688
  function inspectMap2(map2, options) {
5710
- const size = map2.size - 1;
5711
- if (size <= 0) {
5689
+ if (map2.size === 0)
5712
5690
  return "Map{}";
5713
- }
5714
5691
  options.truncate -= 7;
5715
5692
  return `Map{ ${inspectList2(mapToEntries2(map2), options, inspectMapEntry2)} }`;
5716
5693
  }
@@ -5792,19 +5769,6 @@ function inspectSymbol2(value) {
5792
5769
  }
5793
5770
  __name(inspectSymbol2, "inspectSymbol");
5794
5771
  var getPromiseValue2 = /* @__PURE__ */ __name(() => "Promise{\u2026}", "getPromiseValue");
5795
- try {
5796
- const { getPromiseDetails, kPending, kRejected } = process.binding("util");
5797
- if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
5798
- getPromiseValue2 = /* @__PURE__ */ __name((value, options) => {
5799
- const [state, innerValue] = getPromiseDetails(value);
5800
- if (state === kPending) {
5801
- return "Promise{<pending>}";
5802
- }
5803
- return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
5804
- }, "getPromiseValue");
5805
- }
5806
- } catch (notNode) {
5807
- }
5808
5772
  var promise_default2 = getPromiseValue2;
5809
5773
  function inspectObject3(object2, options) {
5810
5774
  const properties = Object.getOwnPropertyNames(object2);
@@ -5891,10 +5855,21 @@ function inspectAttribute2([key, value], options) {
5891
5855
  return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
5892
5856
  }
5893
5857
  __name(inspectAttribute2, "inspectAttribute");
5894
- function inspectHTMLCollection(collection, options) {
5895
- return inspectList2(collection, options, inspectHTML2, "\n");
5858
+ function inspectNodeCollection2(collection, options) {
5859
+ return inspectList2(collection, options, inspectNode2, "\n");
5860
+ }
5861
+ __name(inspectNodeCollection2, "inspectNodeCollection");
5862
+ function inspectNode2(node, options) {
5863
+ switch (node.nodeType) {
5864
+ case 1:
5865
+ return inspectHTML2(node, options);
5866
+ case 3:
5867
+ return options.inspect(node.data, options);
5868
+ default:
5869
+ return options.inspect(node, options);
5870
+ }
5896
5871
  }
5897
- __name(inspectHTMLCollection, "inspectHTMLCollection");
5872
+ __name(inspectNode2, "inspectNode");
5898
5873
  function inspectHTML2(element, options) {
5899
5874
  const properties = element.getAttributeNames();
5900
5875
  const name = element.tagName.toLowerCase();
@@ -5909,7 +5884,7 @@ function inspectHTML2(element, options) {
5909
5884
  }
5910
5885
  options.truncate -= propertyContents.length;
5911
5886
  const truncate22 = options.truncate;
5912
- let children = inspectHTMLCollection(element.children, options);
5887
+ let children = inspectNodeCollection2(element.children, options);
5913
5888
  if (children && children.length > truncate22) {
5914
5889
  children = `${truncator2}(${element.children.length})`;
5915
5890
  }
@@ -5918,20 +5893,14 @@ function inspectHTML2(element, options) {
5918
5893
  __name(inspectHTML2, "inspectHTML");
5919
5894
  var symbolsSupported2 = typeof Symbol === "function" && typeof Symbol.for === "function";
5920
5895
  var chaiInspect2 = symbolsSupported2 ? Symbol.for("chai/inspect") : "@@chai/inspect";
5921
- var nodeInspect2 = false;
5922
- try {
5923
- const nodeUtil = require_util();
5924
- nodeInspect2 = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
5925
- } catch (noNodeInspect) {
5926
- nodeInspect2 = false;
5927
- }
5896
+ var nodeInspect2 = Symbol.for("nodejs.util.inspect.custom");
5928
5897
  var constructorMap2 = /* @__PURE__ */ new WeakMap();
5929
5898
  var stringTagMap2 = {};
5930
5899
  var baseTypesMap2 = {
5931
- undefined: (value, options) => options.stylize("undefined", "undefined"),
5932
- null: (value, options) => options.stylize("null", "null"),
5933
- boolean: (value, options) => options.stylize(String(value), "boolean"),
5934
- Boolean: (value, options) => options.stylize(String(value), "boolean"),
5900
+ undefined: /* @__PURE__ */ __name((value, options) => options.stylize("undefined", "undefined"), "undefined"),
5901
+ null: /* @__PURE__ */ __name((value, options) => options.stylize("null", "null"), "null"),
5902
+ boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), "boolean"), "boolean"),
5903
+ Boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), "boolean"), "Boolean"),
5935
5904
  number: inspectNumber2,
5936
5905
  Number: inspectNumber2,
5937
5906
  bigint: inspectBigInt2,
@@ -5950,8 +5919,8 @@ var baseTypesMap2 = {
5950
5919
  RegExp: inspectRegExp2,
5951
5920
  Promise: promise_default2,
5952
5921
  // WeakSet, WeakMap are totally opaque to us
5953
- WeakSet: (value, options) => options.stylize("WeakSet{\u2026}", "special"),
5954
- WeakMap: (value, options) => options.stylize("WeakMap{\u2026}", "special"),
5922
+ WeakSet: /* @__PURE__ */ __name((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
5923
+ WeakMap: /* @__PURE__ */ __name((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
5955
5924
  Arguments: inspectArguments2,
5956
5925
  Int8Array: inspectTypedArray2,
5957
5926
  Uint8Array: inspectTypedArray2,
@@ -5962,18 +5931,18 @@ var baseTypesMap2 = {
5962
5931
  Uint32Array: inspectTypedArray2,
5963
5932
  Float32Array: inspectTypedArray2,
5964
5933
  Float64Array: inspectTypedArray2,
5965
- Generator: () => "",
5966
- DataView: () => "",
5967
- ArrayBuffer: () => "",
5934
+ Generator: /* @__PURE__ */ __name(() => "", "Generator"),
5935
+ DataView: /* @__PURE__ */ __name(() => "", "DataView"),
5936
+ ArrayBuffer: /* @__PURE__ */ __name(() => "", "ArrayBuffer"),
5968
5937
  Error: inspectObject22,
5969
- HTMLCollection: inspectHTMLCollection,
5970
- NodeList: inspectHTMLCollection
5938
+ HTMLCollection: inspectNodeCollection2,
5939
+ NodeList: inspectNodeCollection2
5971
5940
  };
5972
5941
  var inspectCustom2 = /* @__PURE__ */ __name((value, options, type3) => {
5973
5942
  if (chaiInspect2 in value && typeof value[chaiInspect2] === "function") {
5974
5943
  return value[chaiInspect2](options);
5975
5944
  }
5976
- if (nodeInspect2 && nodeInspect2 in value && typeof value[nodeInspect2] === "function") {
5945
+ if (nodeInspect2 in value && typeof value[nodeInspect2] === "function") {
5977
5946
  return value[nodeInspect2](options.depth, options);
5978
5947
  }
5979
5948
  if ("inspect" in value && typeof value.inspect === "function") {
@@ -6133,7 +6102,7 @@ var config = {
6133
6102
  deepEqual: null
6134
6103
  };
6135
6104
  function inspect22(obj, showHidden, depth, colors) {
6136
- var options = {
6105
+ let options = {
6137
6106
  colors,
6138
6107
  depth: typeof depth === "undefined" ? 2 : depth,
6139
6108
  showHidden,
@@ -6143,14 +6112,14 @@ function inspect22(obj, showHidden, depth, colors) {
6143
6112
  }
6144
6113
  __name(inspect22, "inspect");
6145
6114
  function objDisplay2(obj) {
6146
- var str = inspect22(obj), type3 = Object.prototype.toString.call(obj);
6115
+ let str = inspect22(obj), type3 = Object.prototype.toString.call(obj);
6147
6116
  if (config.truncateThreshold && str.length >= config.truncateThreshold) {
6148
6117
  if (type3 === "[object Function]") {
6149
6118
  return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]";
6150
6119
  } else if (type3 === "[object Array]") {
6151
6120
  return "[ Array(" + obj.length + ") ]";
6152
6121
  } else if (type3 === "[object Object]") {
6153
- var keys2 = Object.keys(obj), kstr = keys2.length > 2 ? keys2.splice(0, 2).join(", ") + ", ..." : keys2.join(", ");
6122
+ let keys2 = Object.keys(obj), kstr = keys2.length > 2 ? keys2.splice(0, 2).join(", ") + ", ..." : keys2.join(", ");
6154
6123
  return "{ Object (" + kstr + ") }";
6155
6124
  } else {
6156
6125
  return str;
@@ -6161,9 +6130,13 @@ function objDisplay2(obj) {
6161
6130
  }
6162
6131
  __name(objDisplay2, "objDisplay");
6163
6132
  function getMessage2(obj, args) {
6164
- var negate = flag(obj, "negate"), val = flag(obj, "object"), expected = args[3], actual = getActual(obj, args), msg = negate ? args[2] : args[1], flagMsg = flag(obj, "message");
6165
- if (typeof msg === "function")
6166
- msg = msg();
6133
+ let negate = flag(obj, "negate");
6134
+ let val = flag(obj, "object");
6135
+ let expected = args[3];
6136
+ let actual = getActual(obj, args);
6137
+ let msg = negate ? args[2] : args[1];
6138
+ let flagMsg = flag(obj, "message");
6139
+ if (typeof msg === "function") msg = msg();
6167
6140
  msg = msg || "";
6168
6141
  msg = msg.replace(/#\{this\}/g, function() {
6169
6142
  return objDisplay2(val);
@@ -6176,12 +6149,12 @@ function getMessage2(obj, args) {
6176
6149
  }
6177
6150
  __name(getMessage2, "getMessage");
6178
6151
  function transferFlags(assertion, object2, includeAll) {
6179
- var flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
6152
+ let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
6180
6153
  if (!object2.__flags) {
6181
6154
  object2.__flags = /* @__PURE__ */ Object.create(null);
6182
6155
  }
6183
6156
  includeAll = arguments.length === 3 ? includeAll : true;
6184
- for (var flag3 in flags) {
6157
+ for (let flag3 in flags) {
6185
6158
  if (includeAll || flag3 !== "object" && flag3 !== "ssfi" && flag3 !== "lockSsfi" && flag3 != "message") {
6186
6159
  object2.__flags[flag3] = flags[flag3];
6187
6160
  }
@@ -6569,96 +6542,183 @@ function getPathInfo(obj, path2) {
6569
6542
  return info;
6570
6543
  }
6571
6544
  __name(getPathInfo, "getPathInfo");
6572
- function Assertion(obj, msg, ssfi, lockSsfi) {
6573
- flag(this, "ssfi", ssfi || Assertion);
6574
- flag(this, "lockSsfi", lockSsfi);
6575
- flag(this, "object", obj);
6576
- flag(this, "message", msg);
6577
- flag(this, "eql", config.deepEqual || deep_eql_default);
6578
- return proxify(this);
6579
- }
6580
- __name(Assertion, "Assertion");
6581
- Object.defineProperty(Assertion, "includeStack", {
6582
- get: function() {
6545
+ var Assertion = class _Assertion {
6546
+ static {
6547
+ __name(this, "Assertion");
6548
+ }
6549
+ /** @type {{}} */
6550
+ __flags = {};
6551
+ /**
6552
+ * Creates object for chaining.
6553
+ * `Assertion` objects contain metadata in the form of flags. Three flags can
6554
+ * be assigned during instantiation by passing arguments to this constructor:
6555
+ *
6556
+ * - `object`: This flag contains the target of the assertion. For example, in
6557
+ * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
6558
+ * contain `numKittens` so that the `equal` assertion can reference it when
6559
+ * needed.
6560
+ *
6561
+ * - `message`: This flag contains an optional custom error message to be
6562
+ * prepended to the error message that's generated by the assertion when it
6563
+ * fails.
6564
+ *
6565
+ * - `ssfi`: This flag stands for "start stack function indicator". It
6566
+ * contains a function reference that serves as the starting point for
6567
+ * removing frames from the stack trace of the error that's created by the
6568
+ * assertion when it fails. The goal is to provide a cleaner stack trace to
6569
+ * end users by removing Chai's internal functions. Note that it only works
6570
+ * in environments that support `Error.captureStackTrace`, and only when
6571
+ * `Chai.config.includeStack` hasn't been set to `false`.
6572
+ *
6573
+ * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
6574
+ * should retain its current value, even as assertions are chained off of
6575
+ * this object. This is usually set to `true` when creating a new assertion
6576
+ * from within another assertion. It's also temporarily set to `true` before
6577
+ * an overwritten assertion gets called by the overwriting assertion.
6578
+ *
6579
+ * - `eql`: This flag contains the deepEqual function to be used by the assertion.
6580
+ *
6581
+ * @param {unknown} obj target of the assertion
6582
+ * @param {string} [msg] (optional) custom error message
6583
+ * @param {Function} [ssfi] (optional) starting point for removing stack frames
6584
+ * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked
6585
+ */
6586
+ constructor(obj, msg, ssfi, lockSsfi) {
6587
+ flag(this, "ssfi", ssfi || _Assertion);
6588
+ flag(this, "lockSsfi", lockSsfi);
6589
+ flag(this, "object", obj);
6590
+ flag(this, "message", msg);
6591
+ flag(this, "eql", config.deepEqual || deep_eql_default);
6592
+ return proxify(this);
6593
+ }
6594
+ /** @returns {boolean} */
6595
+ static get includeStack() {
6583
6596
  console.warn(
6584
6597
  "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
6585
6598
  );
6586
6599
  return config.includeStack;
6587
- },
6588
- set: function(value) {
6600
+ }
6601
+ /** @param {boolean} value */
6602
+ static set includeStack(value) {
6589
6603
  console.warn(
6590
6604
  "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
6591
6605
  );
6592
6606
  config.includeStack = value;
6593
6607
  }
6594
- });
6595
- Object.defineProperty(Assertion, "showDiff", {
6596
- get: function() {
6608
+ /** @returns {boolean} */
6609
+ static get showDiff() {
6597
6610
  console.warn(
6598
6611
  "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
6599
6612
  );
6600
6613
  return config.showDiff;
6601
- },
6602
- set: function(value) {
6614
+ }
6615
+ /** @param {boolean} value */
6616
+ static set showDiff(value) {
6603
6617
  console.warn(
6604
6618
  "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
6605
6619
  );
6606
6620
  config.showDiff = value;
6607
6621
  }
6608
- });
6609
- Assertion.addProperty = function(name, fn2) {
6610
- addProperty(this.prototype, name, fn2);
6611
- };
6612
- Assertion.addMethod = function(name, fn2) {
6613
- addMethod(this.prototype, name, fn2);
6614
- };
6615
- Assertion.addChainableMethod = function(name, fn2, chainingBehavior) {
6616
- addChainableMethod(this.prototype, name, fn2, chainingBehavior);
6617
- };
6618
- Assertion.overwriteProperty = function(name, fn2) {
6619
- overwriteProperty(this.prototype, name, fn2);
6620
- };
6621
- Assertion.overwriteMethod = function(name, fn2) {
6622
- overwriteMethod(this.prototype, name, fn2);
6623
- };
6624
- Assertion.overwriteChainableMethod = function(name, fn2, chainingBehavior) {
6625
- overwriteChainableMethod(this.prototype, name, fn2, chainingBehavior);
6626
- };
6627
- Assertion.prototype.assert = function(expr, msg, negateMsg, expected, _actual, showDiff) {
6628
- var ok = test2(this, arguments);
6629
- if (false !== showDiff)
6630
- showDiff = true;
6631
- if (void 0 === expected && void 0 === _actual)
6632
- showDiff = false;
6633
- if (true !== config.showDiff)
6634
- showDiff = false;
6635
- if (!ok) {
6636
- msg = getMessage2(this, arguments);
6637
- var actual = getActual(this, arguments);
6638
- var assertionErrorObjectProperties = {
6639
- actual,
6640
- expected,
6641
- showDiff
6642
- };
6643
- var operator = getOperator(this, arguments);
6644
- if (operator) {
6645
- assertionErrorObjectProperties.operator = operator;
6622
+ /**
6623
+ * @param {string} name
6624
+ * @param {Function} fn
6625
+ */
6626
+ static addProperty(name, fn2) {
6627
+ addProperty(this.prototype, name, fn2);
6628
+ }
6629
+ /**
6630
+ * @param {string} name
6631
+ * @param {Function} fn
6632
+ */
6633
+ static addMethod(name, fn2) {
6634
+ addMethod(this.prototype, name, fn2);
6635
+ }
6636
+ /**
6637
+ * @param {string} name
6638
+ * @param {Function} fn
6639
+ * @param {Function} chainingBehavior
6640
+ */
6641
+ static addChainableMethod(name, fn2, chainingBehavior) {
6642
+ addChainableMethod(this.prototype, name, fn2, chainingBehavior);
6643
+ }
6644
+ /**
6645
+ * @param {string} name
6646
+ * @param {Function} fn
6647
+ */
6648
+ static overwriteProperty(name, fn2) {
6649
+ overwriteProperty(this.prototype, name, fn2);
6650
+ }
6651
+ /**
6652
+ * @param {string} name
6653
+ * @param {Function} fn
6654
+ */
6655
+ static overwriteMethod(name, fn2) {
6656
+ overwriteMethod(this.prototype, name, fn2);
6657
+ }
6658
+ /**
6659
+ * @param {string} name
6660
+ * @param {Function} fn
6661
+ * @param {Function} chainingBehavior
6662
+ */
6663
+ static overwriteChainableMethod(name, fn2, chainingBehavior) {
6664
+ overwriteChainableMethod(this.prototype, name, fn2, chainingBehavior);
6665
+ }
6666
+ /**
6667
+ * ### .assert(expression, message, negateMessage, expected, actual, showDiff)
6668
+ *
6669
+ * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
6670
+ *
6671
+ * @name assert
6672
+ * @param {unknown} _expr to be tested
6673
+ * @param {string | Function} msg or function that returns message to display if expression fails
6674
+ * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails
6675
+ * @param {unknown} expected value (remember to check for negation)
6676
+ * @param {unknown} _actual (optional) will default to `this.obj`
6677
+ * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails
6678
+ * @returns {void}
6679
+ */
6680
+ assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {
6681
+ const ok = test2(this, arguments);
6682
+ if (false !== showDiff) showDiff = true;
6683
+ if (void 0 === expected && void 0 === _actual) showDiff = false;
6684
+ if (true !== config.showDiff) showDiff = false;
6685
+ if (!ok) {
6686
+ msg = getMessage2(this, arguments);
6687
+ const actual = getActual(this, arguments);
6688
+ const assertionErrorObjectProperties = {
6689
+ actual,
6690
+ expected,
6691
+ showDiff
6692
+ };
6693
+ const operator = getOperator(this, arguments);
6694
+ if (operator) {
6695
+ assertionErrorObjectProperties.operator = operator;
6696
+ }
6697
+ throw new AssertionError(
6698
+ msg,
6699
+ assertionErrorObjectProperties,
6700
+ // @ts-expect-error Not sure what to do about these types yet
6701
+ config.includeStack ? this.assert : flag(this, "ssfi")
6702
+ );
6646
6703
  }
6647
- throw new AssertionError(
6648
- msg,
6649
- assertionErrorObjectProperties,
6650
- config.includeStack ? this.assert : flag(this, "ssfi")
6651
- );
6652
6704
  }
6653
- };
6654
- Object.defineProperty(Assertion.prototype, "_obj", {
6655
- get: function() {
6705
+ /**
6706
+ * Quick reference to stored `actual` value for plugin developers.
6707
+ *
6708
+ * @returns {unknown}
6709
+ */
6710
+ get _obj() {
6656
6711
  return flag(this, "object");
6657
- },
6658
- set: function(val) {
6712
+ }
6713
+ /**
6714
+ * Quick reference to stored `actual` value for plugin developers.
6715
+ *
6716
+ * @param {unknown} val
6717
+ */
6718
+ set _obj(val) {
6659
6719
  flag(this, "object", val);
6660
6720
  }
6661
- });
6721
+ };
6662
6722
  function isProxyEnabled() {
6663
6723
  return config.useProxy && typeof Proxy !== "undefined" && typeof Reflect !== "undefined";
6664
6724
  }
@@ -6671,10 +6731,9 @@ function addProperty(ctx, name, getter) {
6671
6731
  if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
6672
6732
  flag(this, "ssfi", propertyGetter);
6673
6733
  }
6674
- var result = getter.call(this);
6675
- if (result !== void 0)
6676
- return result;
6677
- var newAssertion = new Assertion();
6734
+ let result = getter.call(this);
6735
+ if (result !== void 0) return result;
6736
+ let newAssertion = new Assertion();
6678
6737
  transferFlags(this, newAssertion);
6679
6738
  return newAssertion;
6680
6739
  }, "propertyGetter"),
@@ -6685,10 +6744,9 @@ __name(addProperty, "addProperty");
6685
6744
  var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
6686
6745
  }, "length");
6687
6746
  function addLengthGuard(fn2, assertionName, isChainable) {
6688
- if (!fnLengthDesc.configurable)
6689
- return fn2;
6747
+ if (!fnLengthDesc.configurable) return fn2;
6690
6748
  Object.defineProperty(fn2, "length", {
6691
- get: function() {
6749
+ get: /* @__PURE__ */ __name(function() {
6692
6750
  if (isChainable) {
6693
6751
  throw Error(
6694
6752
  "Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.'
@@ -6697,20 +6755,20 @@ function addLengthGuard(fn2, assertionName, isChainable) {
6697
6755
  throw Error(
6698
6756
  "Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".'
6699
6757
  );
6700
- }
6758
+ }, "get")
6701
6759
  });
6702
6760
  return fn2;
6703
6761
  }
6704
6762
  __name(addLengthGuard, "addLengthGuard");
6705
6763
  function getProperties(object2) {
6706
- var result = Object.getOwnPropertyNames(object2);
6764
+ let result = Object.getOwnPropertyNames(object2);
6707
6765
  function addProperty2(property) {
6708
6766
  if (result.indexOf(property) === -1) {
6709
6767
  result.push(property);
6710
6768
  }
6711
6769
  }
6712
6770
  __name(addProperty2, "addProperty");
6713
- var proto = Object.getPrototypeOf(object2);
6771
+ let proto = Object.getPrototypeOf(object2);
6714
6772
  while (proto !== null) {
6715
6773
  Object.getOwnPropertyNames(proto).forEach(addProperty2);
6716
6774
  proto = Object.getPrototypeOf(proto);
@@ -6720,8 +6778,7 @@ function getProperties(object2) {
6720
6778
  __name(getProperties, "getProperties");
6721
6779
  var builtins = ["__flags", "__methods", "_obj", "assert"];
6722
6780
  function proxify(obj, nonChainableMethodName) {
6723
- if (!isProxyEnabled())
6724
- return obj;
6781
+ if (!isProxyEnabled()) return obj;
6725
6782
  return new Proxy(obj, {
6726
6783
  get: /* @__PURE__ */ __name(function proxyGetter(target, property) {
6727
6784
  if (typeof property === "string" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {
@@ -6730,15 +6787,15 @@ function proxify(obj, nonChainableMethodName) {
6730
6787
  "Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".'
6731
6788
  );
6732
6789
  }
6733
- var suggestion = null;
6734
- var suggestionDistance = 4;
6790
+ let suggestion = null;
6791
+ let suggestionDistance = 4;
6735
6792
  getProperties(target).forEach(function(prop) {
6736
6793
  if (
6737
6794
  // we actually mean to check `Object.prototype` here
6738
6795
  // eslint-disable-next-line no-prototype-builtins
6739
6796
  !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1
6740
6797
  ) {
6741
- var dist = stringDistanceCapped(property, prop, suggestionDistance);
6798
+ let dist = stringDistanceCapped(property, prop, suggestionDistance);
6742
6799
  if (dist < suggestionDistance) {
6743
6800
  suggestion = prop;
6744
6801
  suggestionDistance = dist;
@@ -6765,25 +6822,25 @@ function stringDistanceCapped(strA, strB, cap) {
6765
6822
  if (Math.abs(strA.length - strB.length) >= cap) {
6766
6823
  return cap;
6767
6824
  }
6768
- var memo = [];
6825
+ let memo = [];
6769
6826
  for (let i = 0; i <= strA.length; i++) {
6770
6827
  memo[i] = Array(strB.length + 1).fill(0);
6771
6828
  memo[i][0] = i;
6772
6829
  }
6773
- for (let j = 0; j < strB.length; j++) {
6774
- memo[0][j] = j;
6830
+ for (let j2 = 0; j2 < strB.length; j2++) {
6831
+ memo[0][j2] = j2;
6775
6832
  }
6776
6833
  for (let i = 1; i <= strA.length; i++) {
6777
- var ch = strA.charCodeAt(i - 1);
6778
- for (let j = 1; j <= strB.length; j++) {
6779
- if (Math.abs(i - j) >= cap) {
6780
- memo[i][j] = cap;
6834
+ let ch = strA.charCodeAt(i - 1);
6835
+ for (let j2 = 1; j2 <= strB.length; j2++) {
6836
+ if (Math.abs(i - j2) >= cap) {
6837
+ memo[i][j2] = cap;
6781
6838
  continue;
6782
6839
  }
6783
- memo[i][j] = Math.min(
6784
- memo[i - 1][j] + 1,
6785
- memo[i][j - 1] + 1,
6786
- memo[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)
6840
+ memo[i][j2] = Math.min(
6841
+ memo[i - 1][j2] + 1,
6842
+ memo[i][j2 - 1] + 1,
6843
+ memo[i - 1][j2 - 1] + (ch === strB.charCodeAt(j2 - 1) ? 0 : 1)
6787
6844
  );
6788
6845
  }
6789
6846
  }
@@ -6791,14 +6848,13 @@ function stringDistanceCapped(strA, strB, cap) {
6791
6848
  }
6792
6849
  __name(stringDistanceCapped, "stringDistanceCapped");
6793
6850
  function addMethod(ctx, name, method) {
6794
- var methodWrapper = /* @__PURE__ */ __name(function() {
6851
+ let methodWrapper = /* @__PURE__ */ __name(function() {
6795
6852
  if (!flag(this, "lockSsfi")) {
6796
6853
  flag(this, "ssfi", methodWrapper);
6797
6854
  }
6798
- var result = method.apply(this, arguments);
6799
- if (result !== void 0)
6800
- return result;
6801
- var newAssertion = new Assertion();
6855
+ let result = method.apply(this, arguments);
6856
+ if (result !== void 0) return result;
6857
+ let newAssertion = new Assertion();
6802
6858
  transferFlags(this, newAssertion);
6803
6859
  return newAssertion;
6804
6860
  }, "methodWrapper");
@@ -6807,23 +6863,22 @@ function addMethod(ctx, name, method) {
6807
6863
  }
6808
6864
  __name(addMethod, "addMethod");
6809
6865
  function overwriteProperty(ctx, name, getter) {
6810
- var _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name(function() {
6866
+ let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name(function() {
6811
6867
  }, "_super");
6812
- if (_get && "function" === typeof _get.get)
6813
- _super = _get.get;
6868
+ if (_get && "function" === typeof _get.get) _super = _get.get;
6814
6869
  Object.defineProperty(ctx, name, {
6815
6870
  get: /* @__PURE__ */ __name(function overwritingPropertyGetter() {
6816
6871
  if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
6817
6872
  flag(this, "ssfi", overwritingPropertyGetter);
6818
6873
  }
6819
- var origLockSsfi = flag(this, "lockSsfi");
6874
+ let origLockSsfi = flag(this, "lockSsfi");
6820
6875
  flag(this, "lockSsfi", true);
6821
- var result = getter(_super).call(this);
6876
+ let result = getter(_super).call(this);
6822
6877
  flag(this, "lockSsfi", origLockSsfi);
6823
6878
  if (result !== void 0) {
6824
6879
  return result;
6825
6880
  }
6826
- var newAssertion = new Assertion();
6881
+ let newAssertion = new Assertion();
6827
6882
  transferFlags(this, newAssertion);
6828
6883
  return newAssertion;
6829
6884
  }, "overwritingPropertyGetter"),
@@ -6832,23 +6887,22 @@ function overwriteProperty(ctx, name, getter) {
6832
6887
  }
6833
6888
  __name(overwriteProperty, "overwriteProperty");
6834
6889
  function overwriteMethod(ctx, name, method) {
6835
- var _method = ctx[name], _super = /* @__PURE__ */ __name(function() {
6890
+ let _method = ctx[name], _super = /* @__PURE__ */ __name(function() {
6836
6891
  throw new Error(name + " is not a function");
6837
6892
  }, "_super");
6838
- if (_method && "function" === typeof _method)
6839
- _super = _method;
6840
- var overwritingMethodWrapper = /* @__PURE__ */ __name(function() {
6893
+ if (_method && "function" === typeof _method) _super = _method;
6894
+ let overwritingMethodWrapper = /* @__PURE__ */ __name(function() {
6841
6895
  if (!flag(this, "lockSsfi")) {
6842
6896
  flag(this, "ssfi", overwritingMethodWrapper);
6843
6897
  }
6844
- var origLockSsfi = flag(this, "lockSsfi");
6898
+ let origLockSsfi = flag(this, "lockSsfi");
6845
6899
  flag(this, "lockSsfi", true);
6846
- var result = method(_super).apply(this, arguments);
6900
+ let result = method(_super).apply(this, arguments);
6847
6901
  flag(this, "lockSsfi", origLockSsfi);
6848
6902
  if (result !== void 0) {
6849
6903
  return result;
6850
6904
  }
6851
- var newAssertion = new Assertion();
6905
+ let newAssertion = new Assertion();
6852
6906
  transferFlags(this, newAssertion);
6853
6907
  return newAssertion;
6854
6908
  }, "overwritingMethodWrapper");
@@ -6860,9 +6914,8 @@ var canSetPrototype = typeof Object.setPrototypeOf === "function";
6860
6914
  var testFn = /* @__PURE__ */ __name(function() {
6861
6915
  }, "testFn");
6862
6916
  var excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {
6863
- var propDesc = Object.getOwnPropertyDescriptor(testFn, name);
6864
- if (typeof propDesc !== "object")
6865
- return true;
6917
+ let propDesc = Object.getOwnPropertyDescriptor(testFn, name);
6918
+ if (typeof propDesc !== "object") return true;
6866
6919
  return !propDesc.configurable;
6867
6920
  });
6868
6921
  var call = Function.prototype.call;
@@ -6872,7 +6925,7 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
6872
6925
  chainingBehavior = /* @__PURE__ */ __name(function() {
6873
6926
  }, "chainingBehavior");
6874
6927
  }
6875
- var chainableBehavior = {
6928
+ let chainableBehavior = {
6876
6929
  method,
6877
6930
  chainingBehavior
6878
6931
  };
@@ -6883,31 +6936,31 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
6883
6936
  Object.defineProperty(ctx, name, {
6884
6937
  get: /* @__PURE__ */ __name(function chainableMethodGetter() {
6885
6938
  chainableBehavior.chainingBehavior.call(this);
6886
- var chainableMethodWrapper = /* @__PURE__ */ __name(function() {
6939
+ let chainableMethodWrapper = /* @__PURE__ */ __name(function() {
6887
6940
  if (!flag(this, "lockSsfi")) {
6888
6941
  flag(this, "ssfi", chainableMethodWrapper);
6889
6942
  }
6890
- var result = chainableBehavior.method.apply(this, arguments);
6943
+ let result = chainableBehavior.method.apply(this, arguments);
6891
6944
  if (result !== void 0) {
6892
6945
  return result;
6893
6946
  }
6894
- var newAssertion = new Assertion();
6947
+ let newAssertion = new Assertion();
6895
6948
  transferFlags(this, newAssertion);
6896
6949
  return newAssertion;
6897
6950
  }, "chainableMethodWrapper");
6898
6951
  addLengthGuard(chainableMethodWrapper, name, true);
6899
6952
  if (canSetPrototype) {
6900
- var prototype = Object.create(this);
6953
+ let prototype = Object.create(this);
6901
6954
  prototype.call = call;
6902
6955
  prototype.apply = apply;
6903
6956
  Object.setPrototypeOf(chainableMethodWrapper, prototype);
6904
6957
  } else {
6905
- var asserterNames = Object.getOwnPropertyNames(ctx);
6958
+ let asserterNames = Object.getOwnPropertyNames(ctx);
6906
6959
  asserterNames.forEach(function(asserterName) {
6907
6960
  if (excludeNames.indexOf(asserterName) !== -1) {
6908
6961
  return;
6909
6962
  }
6910
- var pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
6963
+ let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
6911
6964
  Object.defineProperty(chainableMethodWrapper, asserterName, pd);
6912
6965
  });
6913
6966
  }
@@ -6919,36 +6972,35 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
6919
6972
  }
6920
6973
  __name(addChainableMethod, "addChainableMethod");
6921
6974
  function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
6922
- var chainableBehavior = ctx.__methods[name];
6923
- var _chainingBehavior = chainableBehavior.chainingBehavior;
6975
+ let chainableBehavior = ctx.__methods[name];
6976
+ let _chainingBehavior = chainableBehavior.chainingBehavior;
6924
6977
  chainableBehavior.chainingBehavior = /* @__PURE__ */ __name(function overwritingChainableMethodGetter() {
6925
- var result = chainingBehavior(_chainingBehavior).call(this);
6978
+ let result = chainingBehavior(_chainingBehavior).call(this);
6926
6979
  if (result !== void 0) {
6927
6980
  return result;
6928
6981
  }
6929
- var newAssertion = new Assertion();
6982
+ let newAssertion = new Assertion();
6930
6983
  transferFlags(this, newAssertion);
6931
6984
  return newAssertion;
6932
6985
  }, "overwritingChainableMethodGetter");
6933
- var _method = chainableBehavior.method;
6986
+ let _method = chainableBehavior.method;
6934
6987
  chainableBehavior.method = /* @__PURE__ */ __name(function overwritingChainableMethodWrapper() {
6935
- var result = method(_method).apply(this, arguments);
6988
+ let result = method(_method).apply(this, arguments);
6936
6989
  if (result !== void 0) {
6937
6990
  return result;
6938
6991
  }
6939
- var newAssertion = new Assertion();
6992
+ let newAssertion = new Assertion();
6940
6993
  transferFlags(this, newAssertion);
6941
6994
  return newAssertion;
6942
6995
  }, "overwritingChainableMethodWrapper");
6943
6996
  }
6944
6997
  __name(overwriteChainableMethod, "overwriteChainableMethod");
6945
- function compareByInspect(a3, b) {
6946
- return inspect22(a3) < inspect22(b) ? -1 : 1;
6998
+ function compareByInspect(a3, b2) {
6999
+ return inspect22(a3) < inspect22(b2) ? -1 : 1;
6947
7000
  }
6948
7001
  __name(compareByInspect, "compareByInspect");
6949
7002
  function getOwnEnumerablePropertySymbols(obj) {
6950
- if (typeof Object.getOwnPropertySymbols !== "function")
6951
- return [];
7003
+ if (typeof Object.getOwnPropertySymbols !== "function") return [];
6952
7004
  return Object.getOwnPropertySymbols(obj).filter(function(sym) {
6953
7005
  return Object.getOwnPropertyDescriptor(obj, sym).enumerable;
6954
7006
  });
@@ -6960,21 +7012,20 @@ function getOwnEnumerableProperties(obj) {
6960
7012
  __name(getOwnEnumerableProperties, "getOwnEnumerableProperties");
6961
7013
  var isNaN22 = Number.isNaN;
6962
7014
  function isObjectType(obj) {
6963
- var objectType = type(obj);
6964
- var objectTypes = ["Array", "Object", "Function"];
7015
+ let objectType = type(obj);
7016
+ let objectTypes = ["Array", "Object", "Function"];
6965
7017
  return objectTypes.indexOf(objectType) !== -1;
6966
7018
  }
6967
7019
  __name(isObjectType, "isObjectType");
6968
7020
  function getOperator(obj, args) {
6969
- var operator = flag(obj, "operator");
6970
- var negate = flag(obj, "negate");
6971
- var expected = args[3];
6972
- var msg = negate ? args[2] : args[1];
7021
+ let operator = flag(obj, "operator");
7022
+ let negate = flag(obj, "negate");
7023
+ let expected = args[3];
7024
+ let msg = negate ? args[2] : args[1];
6973
7025
  if (operator) {
6974
7026
  return operator;
6975
7027
  }
6976
- if (typeof msg === "function")
6977
- msg = msg();
7028
+ if (typeof msg === "function") msg = msg();
6978
7029
  msg = msg || "";
6979
7030
  if (!msg) {
6980
7031
  return void 0;
@@ -6982,7 +7033,7 @@ function getOperator(obj, args) {
6982
7033
  if (/\shave\s/.test(msg)) {
6983
7034
  return void 0;
6984
7035
  }
6985
- var isObject3 = isObjectType(expected);
7036
+ let isObject3 = isObjectType(expected);
6986
7037
  if (/\snot\s/.test(msg)) {
6987
7038
  return isObject3 ? "notDeepStrictEqual" : "notStrictEqual";
6988
7039
  }
@@ -7058,10 +7109,9 @@ var functionTypes = {
7058
7109
  asyncgeneratorfunction: ["asyncgeneratorfunction"]
7059
7110
  };
7060
7111
  function an(type3, msg) {
7061
- if (msg)
7062
- flag2(this, "message", msg);
7112
+ if (msg) flag2(this, "message", msg);
7063
7113
  type3 = type3.toLowerCase();
7064
- var obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type3.charAt(0)) ? "an " : "a ";
7114
+ let obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type3.charAt(0)) ? "an " : "a ";
7065
7115
  const detectedType = type(obj).toLowerCase();
7066
7116
  if (functionTypes["function"].includes(type3)) {
7067
7117
  this.assert(
@@ -7080,8 +7130,8 @@ function an(type3, msg) {
7080
7130
  __name(an, "an");
7081
7131
  Assertion.addChainableMethod("an", an);
7082
7132
  Assertion.addChainableMethod("a", an);
7083
- function SameValueZero(a3, b) {
7084
- return isNaN22(a3) && isNaN22(b) || a3 === b;
7133
+ function SameValueZero(a3, b2) {
7134
+ return isNaN22(a3) && isNaN22(b2) || a3 === b2;
7085
7135
  }
7086
7136
  __name(SameValueZero, "SameValueZero");
7087
7137
  function includeChainingBehavior() {
@@ -7089,11 +7139,10 @@ function includeChainingBehavior() {
7089
7139
  }
7090
7140
  __name(includeChainingBehavior, "includeChainingBehavior");
7091
7141
  function include(val, msg) {
7092
- if (msg)
7093
- flag2(this, "message", msg);
7094
- var obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero;
7142
+ if (msg) flag2(this, "message", msg);
7143
+ let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero;
7095
7144
  flagMsg = flagMsg ? flagMsg + ": " : "";
7096
- var included = false;
7145
+ let included = false;
7097
7146
  switch (objType) {
7098
7147
  case "string":
7099
7148
  included = obj.indexOf(val) !== -1;
@@ -7131,7 +7180,7 @@ function include(val, msg) {
7131
7180
  included = obj.indexOf(val) !== -1;
7132
7181
  }
7133
7182
  break;
7134
- default:
7183
+ default: {
7135
7184
  if (val !== Object(val)) {
7136
7185
  throw new AssertionError(
7137
7186
  flagMsg + "the given combination of arguments (" + objType + " and " + type(val).toLowerCase() + ") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a " + type(val).toLowerCase(),
@@ -7139,9 +7188,11 @@ function include(val, msg) {
7139
7188
  ssfi
7140
7189
  );
7141
7190
  }
7142
- var props = Object.keys(val), firstErr = null, numErrs = 0;
7191
+ let props = Object.keys(val);
7192
+ let firstErr = null;
7193
+ let numErrs = 0;
7143
7194
  props.forEach(function(prop) {
7144
- var propAssertion = new Assertion(obj);
7195
+ let propAssertion = new Assertion(obj);
7145
7196
  transferFlags(this, propAssertion, true);
7146
7197
  flag2(propAssertion, "lockSsfi", true);
7147
7198
  if (!negate || props.length === 1) {
@@ -7154,8 +7205,7 @@ function include(val, msg) {
7154
7205
  if (!check_error_exports.compatibleConstructor(err, AssertionError)) {
7155
7206
  throw err;
7156
7207
  }
7157
- if (firstErr === null)
7158
- firstErr = err;
7208
+ if (firstErr === null) firstErr = err;
7159
7209
  numErrs++;
7160
7210
  }
7161
7211
  }, this);
@@ -7163,6 +7213,7 @@ function include(val, msg) {
7163
7213
  throw firstErr;
7164
7214
  }
7165
7215
  return;
7216
+ }
7166
7217
  }
7167
7218
  this.assert(
7168
7219
  included,
@@ -7246,7 +7297,7 @@ Assertion.addProperty("NaN", function() {
7246
7297
  );
7247
7298
  });
7248
7299
  function assertExist() {
7249
- var val = flag2(this, "object");
7300
+ let val = flag2(this, "object");
7250
7301
  this.assert(
7251
7302
  val !== null && val !== void 0,
7252
7303
  "expected #{this} to exist",
@@ -7257,7 +7308,7 @@ __name(assertExist, "assertExist");
7257
7308
  Assertion.addProperty("exist", assertExist);
7258
7309
  Assertion.addProperty("exists", assertExist);
7259
7310
  Assertion.addProperty("empty", function() {
7260
- var val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount;
7311
+ let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount;
7261
7312
  flagMsg = flagMsg ? flagMsg + ": " : "";
7262
7313
  switch (type(val).toLowerCase()) {
7263
7314
  case "array":
@@ -7275,9 +7326,10 @@ Assertion.addProperty("empty", function() {
7275
7326
  void 0,
7276
7327
  ssfi
7277
7328
  );
7278
- case "function":
7279
- var msg = flagMsg + ".empty was passed a function " + getName(val);
7329
+ case "function": {
7330
+ const msg = flagMsg + ".empty was passed a function " + getName(val);
7280
7331
  throw new AssertionError(msg.trim(), void 0, ssfi);
7332
+ }
7281
7333
  default:
7282
7334
  if (val !== Object(val)) {
7283
7335
  throw new AssertionError(
@@ -7295,7 +7347,7 @@ Assertion.addProperty("empty", function() {
7295
7347
  );
7296
7348
  });
7297
7349
  function checkArguments() {
7298
- var obj = flag2(this, "object"), type3 = type(obj);
7350
+ let obj = flag2(this, "object"), type3 = type(obj);
7299
7351
  this.assert(
7300
7352
  "Arguments" === type3,
7301
7353
  "expected #{this} to be arguments but got " + type3,
@@ -7306,11 +7358,10 @@ __name(checkArguments, "checkArguments");
7306
7358
  Assertion.addProperty("arguments", checkArguments);
7307
7359
  Assertion.addProperty("Arguments", checkArguments);
7308
7360
  function assertEqual(val, msg) {
7309
- if (msg)
7310
- flag2(this, "message", msg);
7311
- var obj = flag2(this, "object");
7361
+ if (msg) flag2(this, "message", msg);
7362
+ let obj = flag2(this, "object");
7312
7363
  if (flag2(this, "deep")) {
7313
- var prevLockSsfi = flag2(this, "lockSsfi");
7364
+ let prevLockSsfi = flag2(this, "lockSsfi");
7314
7365
  flag2(this, "lockSsfi", true);
7315
7366
  this.eql(val);
7316
7367
  flag2(this, "lockSsfi", prevLockSsfi);
@@ -7330,9 +7381,8 @@ Assertion.addMethod("equal", assertEqual);
7330
7381
  Assertion.addMethod("equals", assertEqual);
7331
7382
  Assertion.addMethod("eq", assertEqual);
7332
7383
  function assertEql(obj, msg) {
7333
- if (msg)
7334
- flag2(this, "message", msg);
7335
- var eql = flag2(this, "eql");
7384
+ if (msg) flag2(this, "message", msg);
7385
+ let eql = flag2(this, "eql");
7336
7386
  this.assert(
7337
7387
  eql(obj, flag2(this, "object")),
7338
7388
  "expected #{this} to deeply equal #{exp}",
@@ -7346,9 +7396,8 @@ __name(assertEql, "assertEql");
7346
7396
  Assertion.addMethod("eql", assertEql);
7347
7397
  Assertion.addMethod("eqls", assertEql);
7348
7398
  function assertAbove(n, msg) {
7349
- if (msg)
7350
- flag2(this, "message", msg);
7351
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();
7399
+ if (msg) flag2(this, "message", msg);
7400
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();
7352
7401
  if (doLength && objType !== "map" && objType !== "set") {
7353
7402
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7354
7403
  }
@@ -7365,7 +7414,7 @@ function assertAbove(n, msg) {
7365
7414
  ssfi
7366
7415
  );
7367
7416
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7368
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7417
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7369
7418
  throw new AssertionError(
7370
7419
  msgPrefix + "expected " + printObj + " to be a number or a date",
7371
7420
  void 0,
@@ -7373,7 +7422,7 @@ function assertAbove(n, msg) {
7373
7422
  );
7374
7423
  }
7375
7424
  if (doLength) {
7376
- var descriptor = "length", itemsCount;
7425
+ let descriptor = "length", itemsCount;
7377
7426
  if (objType === "map" || objType === "set") {
7378
7427
  descriptor = "size";
7379
7428
  itemsCount = obj.size;
@@ -7401,9 +7450,8 @@ Assertion.addMethod("above", assertAbove);
7401
7450
  Assertion.addMethod("gt", assertAbove);
7402
7451
  Assertion.addMethod("greaterThan", assertAbove);
7403
7452
  function assertLeast(n, msg) {
7404
- if (msg)
7405
- flag2(this, "message", msg);
7406
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7453
+ if (msg) flag2(this, "message", msg);
7454
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7407
7455
  if (doLength && objType !== "map" && objType !== "set") {
7408
7456
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7409
7457
  }
@@ -7412,7 +7460,7 @@ function assertLeast(n, msg) {
7412
7460
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
7413
7461
  errorMessage = msgPrefix + "the argument to least must be a number";
7414
7462
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7415
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7463
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7416
7464
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7417
7465
  } else {
7418
7466
  shouldThrow = false;
@@ -7421,7 +7469,7 @@ function assertLeast(n, msg) {
7421
7469
  throw new AssertionError(errorMessage, void 0, ssfi);
7422
7470
  }
7423
7471
  if (doLength) {
7424
- var descriptor = "length", itemsCount;
7472
+ let descriptor = "length", itemsCount;
7425
7473
  if (objType === "map" || objType === "set") {
7426
7474
  descriptor = "size";
7427
7475
  itemsCount = obj.size;
@@ -7449,9 +7497,8 @@ Assertion.addMethod("least", assertLeast);
7449
7497
  Assertion.addMethod("gte", assertLeast);
7450
7498
  Assertion.addMethod("greaterThanOrEqual", assertLeast);
7451
7499
  function assertBelow(n, msg) {
7452
- if (msg)
7453
- flag2(this, "message", msg);
7454
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7500
+ if (msg) flag2(this, "message", msg);
7501
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7455
7502
  if (doLength && objType !== "map" && objType !== "set") {
7456
7503
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7457
7504
  }
@@ -7460,7 +7507,7 @@ function assertBelow(n, msg) {
7460
7507
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
7461
7508
  errorMessage = msgPrefix + "the argument to below must be a number";
7462
7509
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7463
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7510
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7464
7511
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7465
7512
  } else {
7466
7513
  shouldThrow = false;
@@ -7469,7 +7516,7 @@ function assertBelow(n, msg) {
7469
7516
  throw new AssertionError(errorMessage, void 0, ssfi);
7470
7517
  }
7471
7518
  if (doLength) {
7472
- var descriptor = "length", itemsCount;
7519
+ let descriptor = "length", itemsCount;
7473
7520
  if (objType === "map" || objType === "set") {
7474
7521
  descriptor = "size";
7475
7522
  itemsCount = obj.size;
@@ -7497,9 +7544,8 @@ Assertion.addMethod("below", assertBelow);
7497
7544
  Assertion.addMethod("lt", assertBelow);
7498
7545
  Assertion.addMethod("lessThan", assertBelow);
7499
7546
  function assertMost(n, msg) {
7500
- if (msg)
7501
- flag2(this, "message", msg);
7502
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7547
+ if (msg) flag2(this, "message", msg);
7548
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7503
7549
  if (doLength && objType !== "map" && objType !== "set") {
7504
7550
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7505
7551
  }
@@ -7508,7 +7554,7 @@ function assertMost(n, msg) {
7508
7554
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
7509
7555
  errorMessage = msgPrefix + "the argument to most must be a number";
7510
7556
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7511
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7557
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7512
7558
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7513
7559
  } else {
7514
7560
  shouldThrow = false;
@@ -7517,7 +7563,7 @@ function assertMost(n, msg) {
7517
7563
  throw new AssertionError(errorMessage, void 0, ssfi);
7518
7564
  }
7519
7565
  if (doLength) {
7520
- var descriptor = "length", itemsCount;
7566
+ let descriptor = "length", itemsCount;
7521
7567
  if (objType === "map" || objType === "set") {
7522
7568
  descriptor = "size";
7523
7569
  itemsCount = obj.size;
@@ -7545,9 +7591,8 @@ Assertion.addMethod("most", assertMost);
7545
7591
  Assertion.addMethod("lte", assertMost);
7546
7592
  Assertion.addMethod("lessThanOrEqual", assertMost);
7547
7593
  Assertion.addMethod("within", function(start, finish, msg) {
7548
- if (msg)
7549
- flag2(this, "message", msg);
7550
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = startType === "date" && finishType === "date" ? start.toISOString() + ".." + finish.toISOString() : start + ".." + finish;
7594
+ if (msg) flag2(this, "message", msg);
7595
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = startType === "date" && finishType === "date" ? start.toISOString() + ".." + finish.toISOString() : start + ".." + finish;
7551
7596
  if (doLength && objType !== "map" && objType !== "set") {
7552
7597
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7553
7598
  }
@@ -7556,7 +7601,7 @@ Assertion.addMethod("within", function(start, finish, msg) {
7556
7601
  } else if ((!isNumeric(start) || !isNumeric(finish)) && (doLength || isNumeric(obj))) {
7557
7602
  errorMessage = msgPrefix + "the arguments to within must be numbers";
7558
7603
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7559
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7604
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7560
7605
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7561
7606
  } else {
7562
7607
  shouldThrow = false;
@@ -7565,7 +7610,7 @@ Assertion.addMethod("within", function(start, finish, msg) {
7565
7610
  throw new AssertionError(errorMessage, void 0, ssfi);
7566
7611
  }
7567
7612
  if (doLength) {
7568
- var descriptor = "length", itemsCount;
7613
+ let descriptor = "length", itemsCount;
7569
7614
  if (objType === "map" || objType === "set") {
7570
7615
  descriptor = "size";
7571
7616
  itemsCount = obj.size;
@@ -7586,13 +7631,13 @@ Assertion.addMethod("within", function(start, finish, msg) {
7586
7631
  }
7587
7632
  });
7588
7633
  function assertInstanceOf(constructor, msg) {
7589
- if (msg)
7590
- flag2(this, "message", msg);
7591
- var target = flag2(this, "object");
7592
- var ssfi = flag2(this, "ssfi");
7593
- var flagMsg = flag2(this, "message");
7634
+ if (msg) flag2(this, "message", msg);
7635
+ let target = flag2(this, "object");
7636
+ let ssfi = flag2(this, "ssfi");
7637
+ let flagMsg = flag2(this, "message");
7638
+ let isInstanceOf;
7594
7639
  try {
7595
- var isInstanceOf = target instanceof constructor;
7640
+ isInstanceOf = target instanceof constructor;
7596
7641
  } catch (err) {
7597
7642
  if (err instanceof TypeError) {
7598
7643
  flagMsg = flagMsg ? flagMsg + ": " : "";
@@ -7604,7 +7649,7 @@ function assertInstanceOf(constructor, msg) {
7604
7649
  }
7605
7650
  throw err;
7606
7651
  }
7607
- var name = getName(constructor);
7652
+ let name = getName(constructor);
7608
7653
  if (name == null) {
7609
7654
  name = "an unnamed constructor";
7610
7655
  }
@@ -7618,9 +7663,8 @@ __name(assertInstanceOf, "assertInstanceOf");
7618
7663
  Assertion.addMethod("instanceof", assertInstanceOf);
7619
7664
  Assertion.addMethod("instanceOf", assertInstanceOf);
7620
7665
  function assertProperty(name, val, msg) {
7621
- if (msg)
7622
- flag2(this, "message", msg);
7623
- var isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name;
7666
+ if (msg) flag2(this, "message", msg);
7667
+ let isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name;
7624
7668
  flagMsg = flagMsg ? flagMsg + ": " : "";
7625
7669
  if (isNested) {
7626
7670
  if (nameType !== "string") {
@@ -7653,22 +7697,16 @@ function assertProperty(name, val, msg) {
7653
7697
  ssfi
7654
7698
  );
7655
7699
  }
7656
- var isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7657
- var descriptor = "";
7658
- if (isDeep)
7659
- descriptor += "deep ";
7660
- if (isOwn)
7661
- descriptor += "own ";
7662
- if (isNested)
7663
- descriptor += "nested ";
7700
+ let isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7701
+ let descriptor = "";
7702
+ if (isDeep) descriptor += "deep ";
7703
+ if (isOwn) descriptor += "own ";
7704
+ if (isNested) descriptor += "nested ";
7664
7705
  descriptor += "property ";
7665
- var hasProperty2;
7666
- if (isOwn)
7667
- hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name);
7668
- else if (isNested)
7669
- hasProperty2 = pathInfo.exists;
7670
- else
7671
- hasProperty2 = hasProperty(obj, name);
7706
+ let hasProperty2;
7707
+ if (isOwn) hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name);
7708
+ else if (isNested) hasProperty2 = pathInfo.exists;
7709
+ else hasProperty2 = hasProperty(obj, name);
7672
7710
  if (!negate || arguments.length === 1) {
7673
7711
  this.assert(
7674
7712
  hasProperty2,
@@ -7701,11 +7739,10 @@ function assertOwnPropertyDescriptor(name, descriptor, msg) {
7701
7739
  msg = descriptor;
7702
7740
  descriptor = null;
7703
7741
  }
7704
- if (msg)
7705
- flag2(this, "message", msg);
7706
- var obj = flag2(this, "object");
7707
- var actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);
7708
- var eql = flag2(this, "eql");
7742
+ if (msg) flag2(this, "message", msg);
7743
+ let obj = flag2(this, "object");
7744
+ let actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);
7745
+ let eql = flag2(this, "eql");
7709
7746
  if (actualDescriptor && descriptor) {
7710
7747
  this.assert(
7711
7748
  eql(descriptor, actualDescriptor),
@@ -7732,9 +7769,8 @@ function assertLengthChain() {
7732
7769
  }
7733
7770
  __name(assertLengthChain, "assertLengthChain");
7734
7771
  function assertLength(n, msg) {
7735
- if (msg)
7736
- flag2(this, "message", msg);
7737
- var obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount;
7772
+ if (msg) flag2(this, "message", msg);
7773
+ let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount;
7738
7774
  switch (objType) {
7739
7775
  case "map":
7740
7776
  case "set":
@@ -7757,9 +7793,8 @@ __name(assertLength, "assertLength");
7757
7793
  Assertion.addChainableMethod("length", assertLength, assertLengthChain);
7758
7794
  Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain);
7759
7795
  function assertMatch(re, msg) {
7760
- if (msg)
7761
- flag2(this, "message", msg);
7762
- var obj = flag2(this, "object");
7796
+ if (msg) flag2(this, "message", msg);
7797
+ let obj = flag2(this, "object");
7763
7798
  this.assert(
7764
7799
  re.exec(obj),
7765
7800
  "expected #{this} to match " + re,
@@ -7770,9 +7805,8 @@ __name(assertMatch, "assertMatch");
7770
7805
  Assertion.addMethod("match", assertMatch);
7771
7806
  Assertion.addMethod("matches", assertMatch);
7772
7807
  Assertion.addMethod("string", function(str, msg) {
7773
- if (msg)
7774
- flag2(this, "message", msg);
7775
- var obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7808
+ if (msg) flag2(this, "message", msg);
7809
+ let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7776
7810
  new Assertion(obj, flagMsg, ssfi, true).is.a("string");
7777
7811
  this.assert(
7778
7812
  ~obj.indexOf(str),
@@ -7781,9 +7815,9 @@ Assertion.addMethod("string", function(str, msg) {
7781
7815
  );
7782
7816
  });
7783
7817
  function assertKeys(keys2) {
7784
- var obj = flag2(this, "object"), objType = type(obj), keysType = type(keys2), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str, deepStr = "", actual, ok = true, flagMsg = flag2(this, "message");
7818
+ let obj = flag2(this, "object"), objType = type(obj), keysType = type(keys2), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str, deepStr = "", actual, ok = true, flagMsg = flag2(this, "message");
7785
7819
  flagMsg = flagMsg ? flagMsg + ": " : "";
7786
- var mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";
7820
+ let mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";
7787
7821
  if (objType === "Map" || objType === "Set") {
7788
7822
  deepStr = isDeep ? "deeply " : "";
7789
7823
  actual = [];
@@ -7817,7 +7851,7 @@ function assertKeys(keys2) {
7817
7851
  if (!keys2.length) {
7818
7852
  throw new AssertionError(flagMsg + "keys required", void 0, ssfi);
7819
7853
  }
7820
- var len = keys2.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys2, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7854
+ let len = keys2.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys2, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7821
7855
  if (!any && !all) {
7822
7856
  all = true;
7823
7857
  }
@@ -7842,7 +7876,7 @@ function assertKeys(keys2) {
7842
7876
  keys2 = keys2.map(function(key) {
7843
7877
  return inspect22(key);
7844
7878
  });
7845
- var last = keys2.pop();
7879
+ let last = keys2.pop();
7846
7880
  if (all) {
7847
7881
  str = keys2.join(", ") + ", and " + last;
7848
7882
  }
@@ -7867,9 +7901,8 @@ __name(assertKeys, "assertKeys");
7867
7901
  Assertion.addMethod("keys", assertKeys);
7868
7902
  Assertion.addMethod("key", assertKeys);
7869
7903
  function assertThrows(errorLike, errMsgMatcher, msg) {
7870
- if (msg)
7871
- flag2(this, "message", msg);
7872
- var obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || false;
7904
+ if (msg) flag2(this, "message", msg);
7905
+ let obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || false;
7873
7906
  new Assertion(obj, flagMsg, ssfi, true).is.a("function");
7874
7907
  if (isRegExp2(errorLike) || typeof errorLike === "string") {
7875
7908
  errMsgMatcher = errorLike;
@@ -7883,12 +7916,12 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7883
7916
  errorWasThrown = true;
7884
7917
  caughtErr = err;
7885
7918
  }
7886
- var everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0;
7887
- var everyArgIsDefined = Boolean(errorLike && errMsgMatcher);
7888
- var errorLikeFail = false;
7889
- var errMsgMatcherFail = false;
7919
+ let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0;
7920
+ let everyArgIsDefined = Boolean(errorLike && errMsgMatcher);
7921
+ let errorLikeFail = false;
7922
+ let errMsgMatcherFail = false;
7890
7923
  if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {
7891
- var errorLikeString = "an error";
7924
+ let errorLikeString = "an error";
7892
7925
  if (errorLike instanceof Error) {
7893
7926
  errorLikeString = "#{exp}";
7894
7927
  } else if (errorLike) {
@@ -7915,7 +7948,7 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7915
7948
  }
7916
7949
  if (errorLike && caughtErr) {
7917
7950
  if (errorLike instanceof Error) {
7918
- var isCompatibleInstance = check_error_exports.compatibleInstance(
7951
+ let isCompatibleInstance = check_error_exports.compatibleInstance(
7919
7952
  caughtErr,
7920
7953
  errorLike
7921
7954
  );
@@ -7933,7 +7966,7 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7933
7966
  }
7934
7967
  }
7935
7968
  }
7936
- var isCompatibleConstructor = check_error_exports.compatibleConstructor(
7969
+ let isCompatibleConstructor = check_error_exports.compatibleConstructor(
7937
7970
  caughtErr,
7938
7971
  errorLike
7939
7972
  );
@@ -7952,11 +7985,11 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7952
7985
  }
7953
7986
  }
7954
7987
  if (caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {
7955
- var placeholder = "including";
7988
+ let placeholder = "including";
7956
7989
  if (isRegExp2(errMsgMatcher)) {
7957
7990
  placeholder = "matching";
7958
7991
  }
7959
- var isCompatibleMessage = check_error_exports.compatibleMessage(
7992
+ let isCompatibleMessage = check_error_exports.compatibleMessage(
7960
7993
  caughtErr,
7961
7994
  errMsgMatcher
7962
7995
  );
@@ -7990,9 +8023,8 @@ Assertion.addMethod("throw", assertThrows);
7990
8023
  Assertion.addMethod("throws", assertThrows);
7991
8024
  Assertion.addMethod("Throw", assertThrows);
7992
8025
  function respondTo(method, msg) {
7993
- if (msg)
7994
- flag2(this, "message", msg);
7995
- var obj = flag2(this, "object"), itself = flag2(this, "itself"), context = "function" === typeof obj && !itself ? obj.prototype[method] : obj[method];
8026
+ if (msg) flag2(this, "message", msg);
8027
+ let obj = flag2(this, "object"), itself = flag2(this, "itself"), context = "function" === typeof obj && !itself ? obj.prototype[method] : obj[method];
7996
8028
  this.assert(
7997
8029
  "function" === typeof context,
7998
8030
  "expected #{this} to respond to " + inspect22(method),
@@ -8006,10 +8038,9 @@ Assertion.addProperty("itself", function() {
8006
8038
  flag2(this, "itself", true);
8007
8039
  });
8008
8040
  function satisfy(matcher, msg) {
8009
- if (msg)
8010
- flag2(this, "message", msg);
8011
- var obj = flag2(this, "object");
8012
- var result = matcher(obj);
8041
+ if (msg) flag2(this, "message", msg);
8042
+ let obj = flag2(this, "object");
8043
+ let result = matcher(obj);
8013
8044
  this.assert(
8014
8045
  result,
8015
8046
  "expected #{this} to satisfy " + objDisplay2(matcher),
@@ -8022,27 +8053,28 @@ __name(satisfy, "satisfy");
8022
8053
  Assertion.addMethod("satisfy", satisfy);
8023
8054
  Assertion.addMethod("satisfies", satisfy);
8024
8055
  function closeTo(expected, delta, msg) {
8025
- if (msg)
8026
- flag2(this, "message", msg);
8027
- var obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8056
+ if (msg) flag2(this, "message", msg);
8057
+ let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8028
8058
  new Assertion(obj, flagMsg, ssfi, true).is.numeric;
8029
8059
  let message = "A `delta` value is required for `closeTo`";
8030
- if (delta == void 0)
8060
+ if (delta == void 0) {
8031
8061
  throw new AssertionError(
8032
8062
  flagMsg ? `${flagMsg}: ${message}` : message,
8033
8063
  void 0,
8034
8064
  ssfi
8035
8065
  );
8066
+ }
8036
8067
  new Assertion(delta, flagMsg, ssfi, true).is.numeric;
8037
8068
  message = "A `expected` value is required for `closeTo`";
8038
- if (expected == void 0)
8069
+ if (expected == void 0) {
8039
8070
  throw new AssertionError(
8040
8071
  flagMsg ? `${flagMsg}: ${message}` : message,
8041
8072
  void 0,
8042
8073
  ssfi
8043
8074
  );
8075
+ }
8044
8076
  new Assertion(expected, flagMsg, ssfi, true).is.numeric;
8045
- const abs = /* @__PURE__ */ __name((x) => x < 0n ? -x : x, "abs");
8077
+ const abs = /* @__PURE__ */ __name((x2) => x2 < 0n ? -x2 : x2, "abs");
8046
8078
  const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
8047
8079
  this.assert(
8048
8080
  strip(abs(obj - expected)) <= delta,
@@ -8057,40 +8089,33 @@ function isSubsetOf(_subset, _superset, cmp, contains, ordered) {
8057
8089
  let superset = Array.from(_superset);
8058
8090
  let subset = Array.from(_subset);
8059
8091
  if (!contains) {
8060
- if (subset.length !== superset.length)
8061
- return false;
8092
+ if (subset.length !== superset.length) return false;
8062
8093
  superset = superset.slice();
8063
8094
  }
8064
8095
  return subset.every(function(elem, idx) {
8065
- if (ordered)
8066
- return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
8096
+ if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
8067
8097
  if (!cmp) {
8068
- var matchIdx = superset.indexOf(elem);
8069
- if (matchIdx === -1)
8070
- return false;
8071
- if (!contains)
8072
- superset.splice(matchIdx, 1);
8098
+ let matchIdx = superset.indexOf(elem);
8099
+ if (matchIdx === -1) return false;
8100
+ if (!contains) superset.splice(matchIdx, 1);
8073
8101
  return true;
8074
8102
  }
8075
- return superset.some(function(elem2, matchIdx2) {
8076
- if (!cmp(elem, elem2))
8077
- return false;
8078
- if (!contains)
8079
- superset.splice(matchIdx2, 1);
8103
+ return superset.some(function(elem2, matchIdx) {
8104
+ if (!cmp(elem, elem2)) return false;
8105
+ if (!contains) superset.splice(matchIdx, 1);
8080
8106
  return true;
8081
8107
  });
8082
8108
  });
8083
8109
  }
8084
8110
  __name(isSubsetOf, "isSubsetOf");
8085
8111
  Assertion.addMethod("members", function(subset, msg) {
8086
- if (msg)
8087
- flag2(this, "message", msg);
8088
- var obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8112
+ if (msg) flag2(this, "message", msg);
8113
+ let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8089
8114
  new Assertion(obj, flagMsg, ssfi, true).to.be.iterable;
8090
8115
  new Assertion(subset, flagMsg, ssfi, true).to.be.iterable;
8091
- var contains = flag2(this, "contains");
8092
- var ordered = flag2(this, "ordered");
8093
- var subject, failMsg, failNegateMsg;
8116
+ let contains = flag2(this, "contains");
8117
+ let ordered = flag2(this, "ordered");
8118
+ let subject, failMsg, failNegateMsg;
8094
8119
  if (contains) {
8095
8120
  subject = ordered ? "an ordered superset" : "a superset";
8096
8121
  failMsg = "expected #{this} to be " + subject + " of #{exp}";
@@ -8100,7 +8125,7 @@ Assertion.addMethod("members", function(subset, msg) {
8100
8125
  failMsg = "expected #{this} to have the same " + subject + " as #{exp}";
8101
8126
  failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}";
8102
8127
  }
8103
- var cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0;
8128
+ let cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0;
8104
8129
  this.assert(
8105
8130
  isSubsetOf(subset, obj, cmp, contains, ordered),
8106
8131
  failMsg,
@@ -8111,9 +8136,8 @@ Assertion.addMethod("members", function(subset, msg) {
8111
8136
  );
8112
8137
  });
8113
8138
  Assertion.addProperty("iterable", function(msg) {
8114
- if (msg)
8115
- flag2(this, "message", msg);
8116
- var obj = flag2(this, "object");
8139
+ if (msg) flag2(this, "message", msg);
8140
+ let obj = flag2(this, "object");
8117
8141
  this.assert(
8118
8142
  obj != void 0 && obj[Symbol.iterator],
8119
8143
  "expected #{this} to be an iterable",
@@ -8122,9 +8146,8 @@ Assertion.addProperty("iterable", function(msg) {
8122
8146
  );
8123
8147
  });
8124
8148
  function oneOf(list, msg) {
8125
- if (msg)
8126
- flag2(this, "message", msg);
8127
- var expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql");
8149
+ if (msg) flag2(this, "message", msg);
8150
+ let expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql");
8128
8151
  new Assertion(list, flagMsg, ssfi, true).to.be.an("array");
8129
8152
  if (contains) {
8130
8153
  this.assert(
@@ -8161,11 +8184,10 @@ function oneOf(list, msg) {
8161
8184
  __name(oneOf, "oneOf");
8162
8185
  Assertion.addMethod("oneOf", oneOf);
8163
8186
  function assertChanges(subject, prop, msg) {
8164
- if (msg)
8165
- flag2(this, "message", msg);
8166
- var fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8187
+ if (msg) flag2(this, "message", msg);
8188
+ let fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8167
8189
  new Assertion(fn2, flagMsg, ssfi, true).is.a("function");
8168
- var initial;
8190
+ let initial;
8169
8191
  if (!prop) {
8170
8192
  new Assertion(subject, flagMsg, ssfi, true).is.a("function");
8171
8193
  initial = subject();
@@ -8174,8 +8196,8 @@ function assertChanges(subject, prop, msg) {
8174
8196
  initial = subject[prop];
8175
8197
  }
8176
8198
  fn2();
8177
- var final = prop === void 0 || prop === null ? subject() : subject[prop];
8178
- var msgObj = prop === void 0 || prop === null ? initial : "." + prop;
8199
+ let final = prop === void 0 || prop === null ? subject() : subject[prop];
8200
+ let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
8179
8201
  flag2(this, "deltaMsgObj", msgObj);
8180
8202
  flag2(this, "initialDeltaValue", initial);
8181
8203
  flag2(this, "finalDeltaValue", final);
@@ -8191,11 +8213,10 @@ __name(assertChanges, "assertChanges");
8191
8213
  Assertion.addMethod("change", assertChanges);
8192
8214
  Assertion.addMethod("changes", assertChanges);
8193
8215
  function assertIncreases(subject, prop, msg) {
8194
- if (msg)
8195
- flag2(this, "message", msg);
8196
- var fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8216
+ if (msg) flag2(this, "message", msg);
8217
+ let fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8197
8218
  new Assertion(fn2, flagMsg, ssfi, true).is.a("function");
8198
- var initial;
8219
+ let initial;
8199
8220
  if (!prop) {
8200
8221
  new Assertion(subject, flagMsg, ssfi, true).is.a("function");
8201
8222
  initial = subject();
@@ -8205,8 +8226,8 @@ function assertIncreases(subject, prop, msg) {
8205
8226
  }
8206
8227
  new Assertion(initial, flagMsg, ssfi, true).is.a("number");
8207
8228
  fn2();
8208
- var final = prop === void 0 || prop === null ? subject() : subject[prop];
8209
- var msgObj = prop === void 0 || prop === null ? initial : "." + prop;
8229
+ let final = prop === void 0 || prop === null ? subject() : subject[prop];
8230
+ let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
8210
8231
  flag2(this, "deltaMsgObj", msgObj);
8211
8232
  flag2(this, "initialDeltaValue", initial);
8212
8233
  flag2(this, "finalDeltaValue", final);
@@ -8222,11 +8243,10 @@ __name(assertIncreases, "assertIncreases");
8222
8243
  Assertion.addMethod("increase", assertIncreases);
8223
8244
  Assertion.addMethod("increases", assertIncreases);
8224
8245
  function assertDecreases(subject, prop, msg) {
8225
- if (msg)
8226
- flag2(this, "message", msg);
8227
- var fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8246
+ if (msg) flag2(this, "message", msg);
8247
+ let fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
8228
8248
  new Assertion(fn2, flagMsg, ssfi, true).is.a("function");
8229
- var initial;
8249
+ let initial;
8230
8250
  if (!prop) {
8231
8251
  new Assertion(subject, flagMsg, ssfi, true).is.a("function");
8232
8252
  initial = subject();
@@ -8236,8 +8256,8 @@ function assertDecreases(subject, prop, msg) {
8236
8256
  }
8237
8257
  new Assertion(initial, flagMsg, ssfi, true).is.a("number");
8238
8258
  fn2();
8239
- var final = prop === void 0 || prop === null ? subject() : subject[prop];
8240
- var msgObj = prop === void 0 || prop === null ? initial : "." + prop;
8259
+ let final = prop === void 0 || prop === null ? subject() : subject[prop];
8260
+ let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
8241
8261
  flag2(this, "deltaMsgObj", msgObj);
8242
8262
  flag2(this, "initialDeltaValue", initial);
8243
8263
  flag2(this, "finalDeltaValue", final);
@@ -8253,14 +8273,13 @@ __name(assertDecreases, "assertDecreases");
8253
8273
  Assertion.addMethod("decrease", assertDecreases);
8254
8274
  Assertion.addMethod("decreases", assertDecreases);
8255
8275
  function assertDelta(delta, msg) {
8256
- if (msg)
8257
- flag2(this, "message", msg);
8258
- var msgObj = flag2(this, "deltaMsgObj");
8259
- var initial = flag2(this, "initialDeltaValue");
8260
- var final = flag2(this, "finalDeltaValue");
8261
- var behavior = flag2(this, "deltaBehavior");
8262
- var realDelta = flag2(this, "realDelta");
8263
- var expression;
8276
+ if (msg) flag2(this, "message", msg);
8277
+ let msgObj = flag2(this, "deltaMsgObj");
8278
+ let initial = flag2(this, "initialDeltaValue");
8279
+ let final = flag2(this, "finalDeltaValue");
8280
+ let behavior = flag2(this, "deltaBehavior");
8281
+ let realDelta = flag2(this, "realDelta");
8282
+ let expression;
8264
8283
  if (behavior === "change") {
8265
8284
  expression = Math.abs(final - initial) === Math.abs(delta);
8266
8285
  } else {
@@ -8275,8 +8294,8 @@ function assertDelta(delta, msg) {
8275
8294
  __name(assertDelta, "assertDelta");
8276
8295
  Assertion.addMethod("by", assertDelta);
8277
8296
  Assertion.addProperty("extensible", function() {
8278
- var obj = flag2(this, "object");
8279
- var isExtensible = obj === Object(obj) && Object.isExtensible(obj);
8297
+ let obj = flag2(this, "object");
8298
+ let isExtensible = obj === Object(obj) && Object.isExtensible(obj);
8280
8299
  this.assert(
8281
8300
  isExtensible,
8282
8301
  "expected #{this} to be extensible",
@@ -8284,8 +8303,8 @@ Assertion.addProperty("extensible", function() {
8284
8303
  );
8285
8304
  });
8286
8305
  Assertion.addProperty("sealed", function() {
8287
- var obj = flag2(this, "object");
8288
- var isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;
8306
+ let obj = flag2(this, "object");
8307
+ let isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;
8289
8308
  this.assert(
8290
8309
  isSealed,
8291
8310
  "expected #{this} to be sealed",
@@ -8293,8 +8312,8 @@ Assertion.addProperty("sealed", function() {
8293
8312
  );
8294
8313
  });
8295
8314
  Assertion.addProperty("frozen", function() {
8296
- var obj = flag2(this, "object");
8297
- var isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;
8315
+ let obj = flag2(this, "object");
8316
+ let isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;
8298
8317
  this.assert(
8299
8318
  isFrozen,
8300
8319
  "expected #{this} to be frozen",
@@ -8302,7 +8321,7 @@ Assertion.addProperty("frozen", function() {
8302
8321
  );
8303
8322
  });
8304
8323
  Assertion.addProperty("finite", function(_msg) {
8305
- var obj = flag2(this, "object");
8324
+ let obj = flag2(this, "object");
8306
8325
  this.assert(
8307
8326
  typeof obj === "number" && isFinite(obj),
8308
8327
  "expected #{this} to be a finite number",
@@ -8340,8 +8359,8 @@ function compareSubset(expected, actual) {
8340
8359
  }
8341
8360
  }
8342
8361
  return Object.keys(expected).every(function(key) {
8343
- var expectedValue = expected[key];
8344
- var actualValue = actual[key];
8362
+ let expectedValue = expected[key];
8363
+ let actualValue = actual[key];
8345
8364
  if (typeof expectedValue === "object" && expectedValue !== null && actualValue !== null) {
8346
8365
  return compareSubset(expectedValue, actualValue);
8347
8366
  }
@@ -8411,7 +8430,7 @@ function loadShould() {
8411
8430
  get: shouldGetter,
8412
8431
  configurable: true
8413
8432
  });
8414
- var should2 = {};
8433
+ let should2 = {};
8415
8434
  should2.fail = function(actual, expected, message, operator) {
8416
8435
  if (arguments.length < 2) {
8417
8436
  message = actual;
@@ -8454,12 +8473,12 @@ function loadShould() {
8454
8473
  __name(loadShould, "loadShould");
8455
8474
  var should = loadShould;
8456
8475
  var Should = loadShould;
8457
- function assert2(express, errmsg) {
8458
- var test22 = new Assertion(null, null, assert2, true);
8476
+ function assert(express, errmsg) {
8477
+ let test22 = new Assertion(null, null, assert, true);
8459
8478
  test22.assert(express, errmsg, "[ negation message unavailable ]");
8460
8479
  }
8461
- __name(assert2, "assert");
8462
- assert2.fail = function(actual, expected, message, operator) {
8480
+ __name(assert, "assert");
8481
+ assert.fail = function(actual, expected, message, operator) {
8463
8482
  if (arguments.length < 2) {
8464
8483
  message = actual;
8465
8484
  actual = void 0;
@@ -8472,17 +8491,17 @@ assert2.fail = function(actual, expected, message, operator) {
8472
8491
  expected,
8473
8492
  operator
8474
8493
  },
8475
- assert2.fail
8494
+ assert.fail
8476
8495
  );
8477
8496
  };
8478
- assert2.isOk = function(val, msg) {
8479
- new Assertion(val, msg, assert2.isOk, true).is.ok;
8497
+ assert.isOk = function(val, msg) {
8498
+ new Assertion(val, msg, assert.isOk, true).is.ok;
8480
8499
  };
8481
- assert2.isNotOk = function(val, msg) {
8482
- new Assertion(val, msg, assert2.isNotOk, true).is.not.ok;
8500
+ assert.isNotOk = function(val, msg) {
8501
+ new Assertion(val, msg, assert.isNotOk, true).is.not.ok;
8483
8502
  };
8484
- assert2.equal = function(act, exp, msg) {
8485
- var test22 = new Assertion(act, msg, assert2.equal, true);
8503
+ assert.equal = function(act, exp, msg) {
8504
+ let test22 = new Assertion(act, msg, assert.equal, true);
8486
8505
  test22.assert(
8487
8506
  exp == flag(test22, "object"),
8488
8507
  "expected #{this} to equal #{exp}",
@@ -8492,8 +8511,8 @@ assert2.equal = function(act, exp, msg) {
8492
8511
  true
8493
8512
  );
8494
8513
  };
8495
- assert2.notEqual = function(act, exp, msg) {
8496
- var test22 = new Assertion(act, msg, assert2.notEqual, true);
8514
+ assert.notEqual = function(act, exp, msg) {
8515
+ let test22 = new Assertion(act, msg, assert.notEqual, true);
8497
8516
  test22.assert(
8498
8517
  exp != flag(test22, "object"),
8499
8518
  "expected #{this} to not equal #{exp}",
@@ -8503,371 +8522,371 @@ assert2.notEqual = function(act, exp, msg) {
8503
8522
  true
8504
8523
  );
8505
8524
  };
8506
- assert2.strictEqual = function(act, exp, msg) {
8507
- new Assertion(act, msg, assert2.strictEqual, true).to.equal(exp);
8525
+ assert.strictEqual = function(act, exp, msg) {
8526
+ new Assertion(act, msg, assert.strictEqual, true).to.equal(exp);
8508
8527
  };
8509
- assert2.notStrictEqual = function(act, exp, msg) {
8510
- new Assertion(act, msg, assert2.notStrictEqual, true).to.not.equal(exp);
8528
+ assert.notStrictEqual = function(act, exp, msg) {
8529
+ new Assertion(act, msg, assert.notStrictEqual, true).to.not.equal(exp);
8511
8530
  };
8512
- assert2.deepEqual = assert2.deepStrictEqual = function(act, exp, msg) {
8513
- new Assertion(act, msg, assert2.deepEqual, true).to.eql(exp);
8531
+ assert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) {
8532
+ new Assertion(act, msg, assert.deepEqual, true).to.eql(exp);
8514
8533
  };
8515
- assert2.notDeepEqual = function(act, exp, msg) {
8516
- new Assertion(act, msg, assert2.notDeepEqual, true).to.not.eql(exp);
8534
+ assert.notDeepEqual = function(act, exp, msg) {
8535
+ new Assertion(act, msg, assert.notDeepEqual, true).to.not.eql(exp);
8517
8536
  };
8518
- assert2.isAbove = function(val, abv, msg) {
8519
- new Assertion(val, msg, assert2.isAbove, true).to.be.above(abv);
8537
+ assert.isAbove = function(val, abv, msg) {
8538
+ new Assertion(val, msg, assert.isAbove, true).to.be.above(abv);
8520
8539
  };
8521
- assert2.isAtLeast = function(val, atlst, msg) {
8522
- new Assertion(val, msg, assert2.isAtLeast, true).to.be.least(atlst);
8540
+ assert.isAtLeast = function(val, atlst, msg) {
8541
+ new Assertion(val, msg, assert.isAtLeast, true).to.be.least(atlst);
8523
8542
  };
8524
- assert2.isBelow = function(val, blw, msg) {
8525
- new Assertion(val, msg, assert2.isBelow, true).to.be.below(blw);
8543
+ assert.isBelow = function(val, blw, msg) {
8544
+ new Assertion(val, msg, assert.isBelow, true).to.be.below(blw);
8526
8545
  };
8527
- assert2.isAtMost = function(val, atmst, msg) {
8528
- new Assertion(val, msg, assert2.isAtMost, true).to.be.most(atmst);
8546
+ assert.isAtMost = function(val, atmst, msg) {
8547
+ new Assertion(val, msg, assert.isAtMost, true).to.be.most(atmst);
8529
8548
  };
8530
- assert2.isTrue = function(val, msg) {
8531
- new Assertion(val, msg, assert2.isTrue, true).is["true"];
8549
+ assert.isTrue = function(val, msg) {
8550
+ new Assertion(val, msg, assert.isTrue, true).is["true"];
8532
8551
  };
8533
- assert2.isNotTrue = function(val, msg) {
8534
- new Assertion(val, msg, assert2.isNotTrue, true).to.not.equal(true);
8552
+ assert.isNotTrue = function(val, msg) {
8553
+ new Assertion(val, msg, assert.isNotTrue, true).to.not.equal(true);
8535
8554
  };
8536
- assert2.isFalse = function(val, msg) {
8537
- new Assertion(val, msg, assert2.isFalse, true).is["false"];
8555
+ assert.isFalse = function(val, msg) {
8556
+ new Assertion(val, msg, assert.isFalse, true).is["false"];
8538
8557
  };
8539
- assert2.isNotFalse = function(val, msg) {
8540
- new Assertion(val, msg, assert2.isNotFalse, true).to.not.equal(false);
8558
+ assert.isNotFalse = function(val, msg) {
8559
+ new Assertion(val, msg, assert.isNotFalse, true).to.not.equal(false);
8541
8560
  };
8542
- assert2.isNull = function(val, msg) {
8543
- new Assertion(val, msg, assert2.isNull, true).to.equal(null);
8561
+ assert.isNull = function(val, msg) {
8562
+ new Assertion(val, msg, assert.isNull, true).to.equal(null);
8544
8563
  };
8545
- assert2.isNotNull = function(val, msg) {
8546
- new Assertion(val, msg, assert2.isNotNull, true).to.not.equal(null);
8564
+ assert.isNotNull = function(val, msg) {
8565
+ new Assertion(val, msg, assert.isNotNull, true).to.not.equal(null);
8547
8566
  };
8548
- assert2.isNaN = function(val, msg) {
8549
- new Assertion(val, msg, assert2.isNaN, true).to.be.NaN;
8567
+ assert.isNaN = function(val, msg) {
8568
+ new Assertion(val, msg, assert.isNaN, true).to.be.NaN;
8550
8569
  };
8551
- assert2.isNotNaN = function(value, message) {
8552
- new Assertion(value, message, assert2.isNotNaN, true).not.to.be.NaN;
8570
+ assert.isNotNaN = function(value, message) {
8571
+ new Assertion(value, message, assert.isNotNaN, true).not.to.be.NaN;
8553
8572
  };
8554
- assert2.exists = function(val, msg) {
8555
- new Assertion(val, msg, assert2.exists, true).to.exist;
8573
+ assert.exists = function(val, msg) {
8574
+ new Assertion(val, msg, assert.exists, true).to.exist;
8556
8575
  };
8557
- assert2.notExists = function(val, msg) {
8558
- new Assertion(val, msg, assert2.notExists, true).to.not.exist;
8576
+ assert.notExists = function(val, msg) {
8577
+ new Assertion(val, msg, assert.notExists, true).to.not.exist;
8559
8578
  };
8560
- assert2.isUndefined = function(val, msg) {
8561
- new Assertion(val, msg, assert2.isUndefined, true).to.equal(void 0);
8579
+ assert.isUndefined = function(val, msg) {
8580
+ new Assertion(val, msg, assert.isUndefined, true).to.equal(void 0);
8562
8581
  };
8563
- assert2.isDefined = function(val, msg) {
8564
- new Assertion(val, msg, assert2.isDefined, true).to.not.equal(void 0);
8582
+ assert.isDefined = function(val, msg) {
8583
+ new Assertion(val, msg, assert.isDefined, true).to.not.equal(void 0);
8565
8584
  };
8566
- assert2.isCallable = function(value, message) {
8567
- new Assertion(value, message, assert2.isCallable, true).is.callable;
8585
+ assert.isCallable = function(value, message) {
8586
+ new Assertion(value, message, assert.isCallable, true).is.callable;
8568
8587
  };
8569
- assert2.isNotCallable = function(value, message) {
8570
- new Assertion(value, message, assert2.isNotCallable, true).is.not.callable;
8588
+ assert.isNotCallable = function(value, message) {
8589
+ new Assertion(value, message, assert.isNotCallable, true).is.not.callable;
8571
8590
  };
8572
- assert2.isObject = function(val, msg) {
8573
- new Assertion(val, msg, assert2.isObject, true).to.be.a("object");
8591
+ assert.isObject = function(val, msg) {
8592
+ new Assertion(val, msg, assert.isObject, true).to.be.a("object");
8574
8593
  };
8575
- assert2.isNotObject = function(val, msg) {
8576
- new Assertion(val, msg, assert2.isNotObject, true).to.not.be.a("object");
8594
+ assert.isNotObject = function(val, msg) {
8595
+ new Assertion(val, msg, assert.isNotObject, true).to.not.be.a("object");
8577
8596
  };
8578
- assert2.isArray = function(val, msg) {
8579
- new Assertion(val, msg, assert2.isArray, true).to.be.an("array");
8597
+ assert.isArray = function(val, msg) {
8598
+ new Assertion(val, msg, assert.isArray, true).to.be.an("array");
8580
8599
  };
8581
- assert2.isNotArray = function(val, msg) {
8582
- new Assertion(val, msg, assert2.isNotArray, true).to.not.be.an("array");
8600
+ assert.isNotArray = function(val, msg) {
8601
+ new Assertion(val, msg, assert.isNotArray, true).to.not.be.an("array");
8583
8602
  };
8584
- assert2.isString = function(val, msg) {
8585
- new Assertion(val, msg, assert2.isString, true).to.be.a("string");
8603
+ assert.isString = function(val, msg) {
8604
+ new Assertion(val, msg, assert.isString, true).to.be.a("string");
8586
8605
  };
8587
- assert2.isNotString = function(val, msg) {
8588
- new Assertion(val, msg, assert2.isNotString, true).to.not.be.a("string");
8606
+ assert.isNotString = function(val, msg) {
8607
+ new Assertion(val, msg, assert.isNotString, true).to.not.be.a("string");
8589
8608
  };
8590
- assert2.isNumber = function(val, msg) {
8591
- new Assertion(val, msg, assert2.isNumber, true).to.be.a("number");
8609
+ assert.isNumber = function(val, msg) {
8610
+ new Assertion(val, msg, assert.isNumber, true).to.be.a("number");
8592
8611
  };
8593
- assert2.isNotNumber = function(val, msg) {
8594
- new Assertion(val, msg, assert2.isNotNumber, true).to.not.be.a("number");
8612
+ assert.isNotNumber = function(val, msg) {
8613
+ new Assertion(val, msg, assert.isNotNumber, true).to.not.be.a("number");
8595
8614
  };
8596
- assert2.isNumeric = function(val, msg) {
8597
- new Assertion(val, msg, assert2.isNumeric, true).is.numeric;
8615
+ assert.isNumeric = function(val, msg) {
8616
+ new Assertion(val, msg, assert.isNumeric, true).is.numeric;
8598
8617
  };
8599
- assert2.isNotNumeric = function(val, msg) {
8600
- new Assertion(val, msg, assert2.isNotNumeric, true).is.not.numeric;
8618
+ assert.isNotNumeric = function(val, msg) {
8619
+ new Assertion(val, msg, assert.isNotNumeric, true).is.not.numeric;
8601
8620
  };
8602
- assert2.isFinite = function(val, msg) {
8603
- new Assertion(val, msg, assert2.isFinite, true).to.be.finite;
8621
+ assert.isFinite = function(val, msg) {
8622
+ new Assertion(val, msg, assert.isFinite, true).to.be.finite;
8604
8623
  };
8605
- assert2.isBoolean = function(val, msg) {
8606
- new Assertion(val, msg, assert2.isBoolean, true).to.be.a("boolean");
8624
+ assert.isBoolean = function(val, msg) {
8625
+ new Assertion(val, msg, assert.isBoolean, true).to.be.a("boolean");
8607
8626
  };
8608
- assert2.isNotBoolean = function(val, msg) {
8609
- new Assertion(val, msg, assert2.isNotBoolean, true).to.not.be.a("boolean");
8627
+ assert.isNotBoolean = function(val, msg) {
8628
+ new Assertion(val, msg, assert.isNotBoolean, true).to.not.be.a("boolean");
8610
8629
  };
8611
- assert2.typeOf = function(val, type3, msg) {
8612
- new Assertion(val, msg, assert2.typeOf, true).to.be.a(type3);
8630
+ assert.typeOf = function(val, type3, msg) {
8631
+ new Assertion(val, msg, assert.typeOf, true).to.be.a(type3);
8613
8632
  };
8614
- assert2.notTypeOf = function(value, type3, message) {
8615
- new Assertion(value, message, assert2.notTypeOf, true).to.not.be.a(type3);
8633
+ assert.notTypeOf = function(value, type3, message) {
8634
+ new Assertion(value, message, assert.notTypeOf, true).to.not.be.a(type3);
8616
8635
  };
8617
- assert2.instanceOf = function(val, type3, msg) {
8618
- new Assertion(val, msg, assert2.instanceOf, true).to.be.instanceOf(type3);
8636
+ assert.instanceOf = function(val, type3, msg) {
8637
+ new Assertion(val, msg, assert.instanceOf, true).to.be.instanceOf(type3);
8619
8638
  };
8620
- assert2.notInstanceOf = function(val, type3, msg) {
8621
- new Assertion(val, msg, assert2.notInstanceOf, true).to.not.be.instanceOf(
8639
+ assert.notInstanceOf = function(val, type3, msg) {
8640
+ new Assertion(val, msg, assert.notInstanceOf, true).to.not.be.instanceOf(
8622
8641
  type3
8623
8642
  );
8624
8643
  };
8625
- assert2.include = function(exp, inc, msg) {
8626
- new Assertion(exp, msg, assert2.include, true).include(inc);
8644
+ assert.include = function(exp, inc, msg) {
8645
+ new Assertion(exp, msg, assert.include, true).include(inc);
8627
8646
  };
8628
- assert2.notInclude = function(exp, inc, msg) {
8629
- new Assertion(exp, msg, assert2.notInclude, true).not.include(inc);
8647
+ assert.notInclude = function(exp, inc, msg) {
8648
+ new Assertion(exp, msg, assert.notInclude, true).not.include(inc);
8630
8649
  };
8631
- assert2.deepInclude = function(exp, inc, msg) {
8632
- new Assertion(exp, msg, assert2.deepInclude, true).deep.include(inc);
8650
+ assert.deepInclude = function(exp, inc, msg) {
8651
+ new Assertion(exp, msg, assert.deepInclude, true).deep.include(inc);
8633
8652
  };
8634
- assert2.notDeepInclude = function(exp, inc, msg) {
8635
- new Assertion(exp, msg, assert2.notDeepInclude, true).not.deep.include(inc);
8653
+ assert.notDeepInclude = function(exp, inc, msg) {
8654
+ new Assertion(exp, msg, assert.notDeepInclude, true).not.deep.include(inc);
8636
8655
  };
8637
- assert2.nestedInclude = function(exp, inc, msg) {
8638
- new Assertion(exp, msg, assert2.nestedInclude, true).nested.include(inc);
8656
+ assert.nestedInclude = function(exp, inc, msg) {
8657
+ new Assertion(exp, msg, assert.nestedInclude, true).nested.include(inc);
8639
8658
  };
8640
- assert2.notNestedInclude = function(exp, inc, msg) {
8641
- new Assertion(exp, msg, assert2.notNestedInclude, true).not.nested.include(
8659
+ assert.notNestedInclude = function(exp, inc, msg) {
8660
+ new Assertion(exp, msg, assert.notNestedInclude, true).not.nested.include(
8642
8661
  inc
8643
8662
  );
8644
8663
  };
8645
- assert2.deepNestedInclude = function(exp, inc, msg) {
8646
- new Assertion(exp, msg, assert2.deepNestedInclude, true).deep.nested.include(
8664
+ assert.deepNestedInclude = function(exp, inc, msg) {
8665
+ new Assertion(exp, msg, assert.deepNestedInclude, true).deep.nested.include(
8647
8666
  inc
8648
8667
  );
8649
8668
  };
8650
- assert2.notDeepNestedInclude = function(exp, inc, msg) {
8669
+ assert.notDeepNestedInclude = function(exp, inc, msg) {
8651
8670
  new Assertion(
8652
8671
  exp,
8653
8672
  msg,
8654
- assert2.notDeepNestedInclude,
8673
+ assert.notDeepNestedInclude,
8655
8674
  true
8656
8675
  ).not.deep.nested.include(inc);
8657
8676
  };
8658
- assert2.ownInclude = function(exp, inc, msg) {
8659
- new Assertion(exp, msg, assert2.ownInclude, true).own.include(inc);
8677
+ assert.ownInclude = function(exp, inc, msg) {
8678
+ new Assertion(exp, msg, assert.ownInclude, true).own.include(inc);
8660
8679
  };
8661
- assert2.notOwnInclude = function(exp, inc, msg) {
8662
- new Assertion(exp, msg, assert2.notOwnInclude, true).not.own.include(inc);
8680
+ assert.notOwnInclude = function(exp, inc, msg) {
8681
+ new Assertion(exp, msg, assert.notOwnInclude, true).not.own.include(inc);
8663
8682
  };
8664
- assert2.deepOwnInclude = function(exp, inc, msg) {
8665
- new Assertion(exp, msg, assert2.deepOwnInclude, true).deep.own.include(inc);
8683
+ assert.deepOwnInclude = function(exp, inc, msg) {
8684
+ new Assertion(exp, msg, assert.deepOwnInclude, true).deep.own.include(inc);
8666
8685
  };
8667
- assert2.notDeepOwnInclude = function(exp, inc, msg) {
8668
- new Assertion(exp, msg, assert2.notDeepOwnInclude, true).not.deep.own.include(
8686
+ assert.notDeepOwnInclude = function(exp, inc, msg) {
8687
+ new Assertion(exp, msg, assert.notDeepOwnInclude, true).not.deep.own.include(
8669
8688
  inc
8670
8689
  );
8671
8690
  };
8672
- assert2.match = function(exp, re, msg) {
8673
- new Assertion(exp, msg, assert2.match, true).to.match(re);
8691
+ assert.match = function(exp, re, msg) {
8692
+ new Assertion(exp, msg, assert.match, true).to.match(re);
8674
8693
  };
8675
- assert2.notMatch = function(exp, re, msg) {
8676
- new Assertion(exp, msg, assert2.notMatch, true).to.not.match(re);
8694
+ assert.notMatch = function(exp, re, msg) {
8695
+ new Assertion(exp, msg, assert.notMatch, true).to.not.match(re);
8677
8696
  };
8678
- assert2.property = function(obj, prop, msg) {
8679
- new Assertion(obj, msg, assert2.property, true).to.have.property(prop);
8697
+ assert.property = function(obj, prop, msg) {
8698
+ new Assertion(obj, msg, assert.property, true).to.have.property(prop);
8680
8699
  };
8681
- assert2.notProperty = function(obj, prop, msg) {
8682
- new Assertion(obj, msg, assert2.notProperty, true).to.not.have.property(prop);
8700
+ assert.notProperty = function(obj, prop, msg) {
8701
+ new Assertion(obj, msg, assert.notProperty, true).to.not.have.property(prop);
8683
8702
  };
8684
- assert2.propertyVal = function(obj, prop, val, msg) {
8685
- new Assertion(obj, msg, assert2.propertyVal, true).to.have.property(prop, val);
8703
+ assert.propertyVal = function(obj, prop, val, msg) {
8704
+ new Assertion(obj, msg, assert.propertyVal, true).to.have.property(prop, val);
8686
8705
  };
8687
- assert2.notPropertyVal = function(obj, prop, val, msg) {
8688
- new Assertion(obj, msg, assert2.notPropertyVal, true).to.not.have.property(
8706
+ assert.notPropertyVal = function(obj, prop, val, msg) {
8707
+ new Assertion(obj, msg, assert.notPropertyVal, true).to.not.have.property(
8689
8708
  prop,
8690
8709
  val
8691
8710
  );
8692
8711
  };
8693
- assert2.deepPropertyVal = function(obj, prop, val, msg) {
8694
- new Assertion(obj, msg, assert2.deepPropertyVal, true).to.have.deep.property(
8712
+ assert.deepPropertyVal = function(obj, prop, val, msg) {
8713
+ new Assertion(obj, msg, assert.deepPropertyVal, true).to.have.deep.property(
8695
8714
  prop,
8696
8715
  val
8697
8716
  );
8698
8717
  };
8699
- assert2.notDeepPropertyVal = function(obj, prop, val, msg) {
8718
+ assert.notDeepPropertyVal = function(obj, prop, val, msg) {
8700
8719
  new Assertion(
8701
8720
  obj,
8702
8721
  msg,
8703
- assert2.notDeepPropertyVal,
8722
+ assert.notDeepPropertyVal,
8704
8723
  true
8705
8724
  ).to.not.have.deep.property(prop, val);
8706
8725
  };
8707
- assert2.ownProperty = function(obj, prop, msg) {
8708
- new Assertion(obj, msg, assert2.ownProperty, true).to.have.own.property(prop);
8726
+ assert.ownProperty = function(obj, prop, msg) {
8727
+ new Assertion(obj, msg, assert.ownProperty, true).to.have.own.property(prop);
8709
8728
  };
8710
- assert2.notOwnProperty = function(obj, prop, msg) {
8711
- new Assertion(obj, msg, assert2.notOwnProperty, true).to.not.have.own.property(
8729
+ assert.notOwnProperty = function(obj, prop, msg) {
8730
+ new Assertion(obj, msg, assert.notOwnProperty, true).to.not.have.own.property(
8712
8731
  prop
8713
8732
  );
8714
8733
  };
8715
- assert2.ownPropertyVal = function(obj, prop, value, msg) {
8716
- new Assertion(obj, msg, assert2.ownPropertyVal, true).to.have.own.property(
8734
+ assert.ownPropertyVal = function(obj, prop, value, msg) {
8735
+ new Assertion(obj, msg, assert.ownPropertyVal, true).to.have.own.property(
8717
8736
  prop,
8718
8737
  value
8719
8738
  );
8720
8739
  };
8721
- assert2.notOwnPropertyVal = function(obj, prop, value, msg) {
8740
+ assert.notOwnPropertyVal = function(obj, prop, value, msg) {
8722
8741
  new Assertion(
8723
8742
  obj,
8724
8743
  msg,
8725
- assert2.notOwnPropertyVal,
8744
+ assert.notOwnPropertyVal,
8726
8745
  true
8727
8746
  ).to.not.have.own.property(prop, value);
8728
8747
  };
8729
- assert2.deepOwnPropertyVal = function(obj, prop, value, msg) {
8748
+ assert.deepOwnPropertyVal = function(obj, prop, value, msg) {
8730
8749
  new Assertion(
8731
8750
  obj,
8732
8751
  msg,
8733
- assert2.deepOwnPropertyVal,
8752
+ assert.deepOwnPropertyVal,
8734
8753
  true
8735
8754
  ).to.have.deep.own.property(prop, value);
8736
8755
  };
8737
- assert2.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
8756
+ assert.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
8738
8757
  new Assertion(
8739
8758
  obj,
8740
8759
  msg,
8741
- assert2.notDeepOwnPropertyVal,
8760
+ assert.notDeepOwnPropertyVal,
8742
8761
  true
8743
8762
  ).to.not.have.deep.own.property(prop, value);
8744
8763
  };
8745
- assert2.nestedProperty = function(obj, prop, msg) {
8746
- new Assertion(obj, msg, assert2.nestedProperty, true).to.have.nested.property(
8764
+ assert.nestedProperty = function(obj, prop, msg) {
8765
+ new Assertion(obj, msg, assert.nestedProperty, true).to.have.nested.property(
8747
8766
  prop
8748
8767
  );
8749
8768
  };
8750
- assert2.notNestedProperty = function(obj, prop, msg) {
8769
+ assert.notNestedProperty = function(obj, prop, msg) {
8751
8770
  new Assertion(
8752
8771
  obj,
8753
8772
  msg,
8754
- assert2.notNestedProperty,
8773
+ assert.notNestedProperty,
8755
8774
  true
8756
8775
  ).to.not.have.nested.property(prop);
8757
8776
  };
8758
- assert2.nestedPropertyVal = function(obj, prop, val, msg) {
8777
+ assert.nestedPropertyVal = function(obj, prop, val, msg) {
8759
8778
  new Assertion(
8760
8779
  obj,
8761
8780
  msg,
8762
- assert2.nestedPropertyVal,
8781
+ assert.nestedPropertyVal,
8763
8782
  true
8764
8783
  ).to.have.nested.property(prop, val);
8765
8784
  };
8766
- assert2.notNestedPropertyVal = function(obj, prop, val, msg) {
8785
+ assert.notNestedPropertyVal = function(obj, prop, val, msg) {
8767
8786
  new Assertion(
8768
8787
  obj,
8769
8788
  msg,
8770
- assert2.notNestedPropertyVal,
8789
+ assert.notNestedPropertyVal,
8771
8790
  true
8772
8791
  ).to.not.have.nested.property(prop, val);
8773
8792
  };
8774
- assert2.deepNestedPropertyVal = function(obj, prop, val, msg) {
8793
+ assert.deepNestedPropertyVal = function(obj, prop, val, msg) {
8775
8794
  new Assertion(
8776
8795
  obj,
8777
8796
  msg,
8778
- assert2.deepNestedPropertyVal,
8797
+ assert.deepNestedPropertyVal,
8779
8798
  true
8780
8799
  ).to.have.deep.nested.property(prop, val);
8781
8800
  };
8782
- assert2.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
8801
+ assert.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
8783
8802
  new Assertion(
8784
8803
  obj,
8785
8804
  msg,
8786
- assert2.notDeepNestedPropertyVal,
8805
+ assert.notDeepNestedPropertyVal,
8787
8806
  true
8788
8807
  ).to.not.have.deep.nested.property(prop, val);
8789
8808
  };
8790
- assert2.lengthOf = function(exp, len, msg) {
8791
- new Assertion(exp, msg, assert2.lengthOf, true).to.have.lengthOf(len);
8809
+ assert.lengthOf = function(exp, len, msg) {
8810
+ new Assertion(exp, msg, assert.lengthOf, true).to.have.lengthOf(len);
8792
8811
  };
8793
- assert2.hasAnyKeys = function(obj, keys2, msg) {
8794
- new Assertion(obj, msg, assert2.hasAnyKeys, true).to.have.any.keys(keys2);
8812
+ assert.hasAnyKeys = function(obj, keys2, msg) {
8813
+ new Assertion(obj, msg, assert.hasAnyKeys, true).to.have.any.keys(keys2);
8795
8814
  };
8796
- assert2.hasAllKeys = function(obj, keys2, msg) {
8797
- new Assertion(obj, msg, assert2.hasAllKeys, true).to.have.all.keys(keys2);
8815
+ assert.hasAllKeys = function(obj, keys2, msg) {
8816
+ new Assertion(obj, msg, assert.hasAllKeys, true).to.have.all.keys(keys2);
8798
8817
  };
8799
- assert2.containsAllKeys = function(obj, keys2, msg) {
8800
- new Assertion(obj, msg, assert2.containsAllKeys, true).to.contain.all.keys(
8818
+ assert.containsAllKeys = function(obj, keys2, msg) {
8819
+ new Assertion(obj, msg, assert.containsAllKeys, true).to.contain.all.keys(
8801
8820
  keys2
8802
8821
  );
8803
8822
  };
8804
- assert2.doesNotHaveAnyKeys = function(obj, keys2, msg) {
8805
- new Assertion(obj, msg, assert2.doesNotHaveAnyKeys, true).to.not.have.any.keys(
8823
+ assert.doesNotHaveAnyKeys = function(obj, keys2, msg) {
8824
+ new Assertion(obj, msg, assert.doesNotHaveAnyKeys, true).to.not.have.any.keys(
8806
8825
  keys2
8807
8826
  );
8808
8827
  };
8809
- assert2.doesNotHaveAllKeys = function(obj, keys2, msg) {
8810
- new Assertion(obj, msg, assert2.doesNotHaveAllKeys, true).to.not.have.all.keys(
8828
+ assert.doesNotHaveAllKeys = function(obj, keys2, msg) {
8829
+ new Assertion(obj, msg, assert.doesNotHaveAllKeys, true).to.not.have.all.keys(
8811
8830
  keys2
8812
8831
  );
8813
8832
  };
8814
- assert2.hasAnyDeepKeys = function(obj, keys2, msg) {
8815
- new Assertion(obj, msg, assert2.hasAnyDeepKeys, true).to.have.any.deep.keys(
8833
+ assert.hasAnyDeepKeys = function(obj, keys2, msg) {
8834
+ new Assertion(obj, msg, assert.hasAnyDeepKeys, true).to.have.any.deep.keys(
8816
8835
  keys2
8817
8836
  );
8818
8837
  };
8819
- assert2.hasAllDeepKeys = function(obj, keys2, msg) {
8820
- new Assertion(obj, msg, assert2.hasAllDeepKeys, true).to.have.all.deep.keys(
8838
+ assert.hasAllDeepKeys = function(obj, keys2, msg) {
8839
+ new Assertion(obj, msg, assert.hasAllDeepKeys, true).to.have.all.deep.keys(
8821
8840
  keys2
8822
8841
  );
8823
8842
  };
8824
- assert2.containsAllDeepKeys = function(obj, keys2, msg) {
8843
+ assert.containsAllDeepKeys = function(obj, keys2, msg) {
8825
8844
  new Assertion(
8826
8845
  obj,
8827
8846
  msg,
8828
- assert2.containsAllDeepKeys,
8847
+ assert.containsAllDeepKeys,
8829
8848
  true
8830
8849
  ).to.contain.all.deep.keys(keys2);
8831
8850
  };
8832
- assert2.doesNotHaveAnyDeepKeys = function(obj, keys2, msg) {
8851
+ assert.doesNotHaveAnyDeepKeys = function(obj, keys2, msg) {
8833
8852
  new Assertion(
8834
8853
  obj,
8835
8854
  msg,
8836
- assert2.doesNotHaveAnyDeepKeys,
8855
+ assert.doesNotHaveAnyDeepKeys,
8837
8856
  true
8838
8857
  ).to.not.have.any.deep.keys(keys2);
8839
8858
  };
8840
- assert2.doesNotHaveAllDeepKeys = function(obj, keys2, msg) {
8859
+ assert.doesNotHaveAllDeepKeys = function(obj, keys2, msg) {
8841
8860
  new Assertion(
8842
8861
  obj,
8843
8862
  msg,
8844
- assert2.doesNotHaveAllDeepKeys,
8863
+ assert.doesNotHaveAllDeepKeys,
8845
8864
  true
8846
8865
  ).to.not.have.all.deep.keys(keys2);
8847
8866
  };
8848
- assert2.throws = function(fn2, errorLike, errMsgMatcher, msg) {
8867
+ assert.throws = function(fn2, errorLike, errMsgMatcher, msg) {
8849
8868
  if ("string" === typeof errorLike || errorLike instanceof RegExp) {
8850
8869
  errMsgMatcher = errorLike;
8851
8870
  errorLike = null;
8852
8871
  }
8853
- var assertErr = new Assertion(fn2, msg, assert2.throws, true).to.throw(
8872
+ let assertErr = new Assertion(fn2, msg, assert.throws, true).to.throw(
8854
8873
  errorLike,
8855
8874
  errMsgMatcher
8856
8875
  );
8857
8876
  return flag(assertErr, "object");
8858
8877
  };
8859
- assert2.doesNotThrow = function(fn2, errorLike, errMsgMatcher, message) {
8878
+ assert.doesNotThrow = function(fn2, errorLike, errMsgMatcher, message) {
8860
8879
  if ("string" === typeof errorLike || errorLike instanceof RegExp) {
8861
8880
  errMsgMatcher = errorLike;
8862
8881
  errorLike = null;
8863
8882
  }
8864
- new Assertion(fn2, message, assert2.doesNotThrow, true).to.not.throw(
8883
+ new Assertion(fn2, message, assert.doesNotThrow, true).to.not.throw(
8865
8884
  errorLike,
8866
8885
  errMsgMatcher
8867
8886
  );
8868
8887
  };
8869
- assert2.operator = function(val, operator, val2, msg) {
8870
- var ok;
8888
+ assert.operator = function(val, operator, val2, msg) {
8889
+ let ok;
8871
8890
  switch (operator) {
8872
8891
  case "==":
8873
8892
  ok = val == val2;
@@ -8898,315 +8917,315 @@ assert2.operator = function(val, operator, val2, msg) {
8898
8917
  throw new AssertionError(
8899
8918
  msg + 'Invalid operator "' + operator + '"',
8900
8919
  void 0,
8901
- assert2.operator
8920
+ assert.operator
8902
8921
  );
8903
8922
  }
8904
- var test22 = new Assertion(ok, msg, assert2.operator, true);
8923
+ let test22 = new Assertion(ok, msg, assert.operator, true);
8905
8924
  test22.assert(
8906
8925
  true === flag(test22, "object"),
8907
8926
  "expected " + inspect22(val) + " to be " + operator + " " + inspect22(val2),
8908
8927
  "expected " + inspect22(val) + " to not be " + operator + " " + inspect22(val2)
8909
8928
  );
8910
8929
  };
8911
- assert2.closeTo = function(act, exp, delta, msg) {
8912
- new Assertion(act, msg, assert2.closeTo, true).to.be.closeTo(exp, delta);
8930
+ assert.closeTo = function(act, exp, delta, msg) {
8931
+ new Assertion(act, msg, assert.closeTo, true).to.be.closeTo(exp, delta);
8913
8932
  };
8914
- assert2.approximately = function(act, exp, delta, msg) {
8915
- new Assertion(act, msg, assert2.approximately, true).to.be.approximately(
8933
+ assert.approximately = function(act, exp, delta, msg) {
8934
+ new Assertion(act, msg, assert.approximately, true).to.be.approximately(
8916
8935
  exp,
8917
8936
  delta
8918
8937
  );
8919
8938
  };
8920
- assert2.sameMembers = function(set1, set22, msg) {
8921
- new Assertion(set1, msg, assert2.sameMembers, true).to.have.same.members(set22);
8939
+ assert.sameMembers = function(set1, set22, msg) {
8940
+ new Assertion(set1, msg, assert.sameMembers, true).to.have.same.members(set22);
8922
8941
  };
8923
- assert2.notSameMembers = function(set1, set22, msg) {
8942
+ assert.notSameMembers = function(set1, set22, msg) {
8924
8943
  new Assertion(
8925
8944
  set1,
8926
8945
  msg,
8927
- assert2.notSameMembers,
8946
+ assert.notSameMembers,
8928
8947
  true
8929
8948
  ).to.not.have.same.members(set22);
8930
8949
  };
8931
- assert2.sameDeepMembers = function(set1, set22, msg) {
8950
+ assert.sameDeepMembers = function(set1, set22, msg) {
8932
8951
  new Assertion(
8933
8952
  set1,
8934
8953
  msg,
8935
- assert2.sameDeepMembers,
8954
+ assert.sameDeepMembers,
8936
8955
  true
8937
8956
  ).to.have.same.deep.members(set22);
8938
8957
  };
8939
- assert2.notSameDeepMembers = function(set1, set22, msg) {
8958
+ assert.notSameDeepMembers = function(set1, set22, msg) {
8940
8959
  new Assertion(
8941
8960
  set1,
8942
8961
  msg,
8943
- assert2.notSameDeepMembers,
8962
+ assert.notSameDeepMembers,
8944
8963
  true
8945
8964
  ).to.not.have.same.deep.members(set22);
8946
8965
  };
8947
- assert2.sameOrderedMembers = function(set1, set22, msg) {
8966
+ assert.sameOrderedMembers = function(set1, set22, msg) {
8948
8967
  new Assertion(
8949
8968
  set1,
8950
8969
  msg,
8951
- assert2.sameOrderedMembers,
8970
+ assert.sameOrderedMembers,
8952
8971
  true
8953
8972
  ).to.have.same.ordered.members(set22);
8954
8973
  };
8955
- assert2.notSameOrderedMembers = function(set1, set22, msg) {
8974
+ assert.notSameOrderedMembers = function(set1, set22, msg) {
8956
8975
  new Assertion(
8957
8976
  set1,
8958
8977
  msg,
8959
- assert2.notSameOrderedMembers,
8978
+ assert.notSameOrderedMembers,
8960
8979
  true
8961
8980
  ).to.not.have.same.ordered.members(set22);
8962
8981
  };
8963
- assert2.sameDeepOrderedMembers = function(set1, set22, msg) {
8982
+ assert.sameDeepOrderedMembers = function(set1, set22, msg) {
8964
8983
  new Assertion(
8965
8984
  set1,
8966
8985
  msg,
8967
- assert2.sameDeepOrderedMembers,
8986
+ assert.sameDeepOrderedMembers,
8968
8987
  true
8969
8988
  ).to.have.same.deep.ordered.members(set22);
8970
8989
  };
8971
- assert2.notSameDeepOrderedMembers = function(set1, set22, msg) {
8990
+ assert.notSameDeepOrderedMembers = function(set1, set22, msg) {
8972
8991
  new Assertion(
8973
8992
  set1,
8974
8993
  msg,
8975
- assert2.notSameDeepOrderedMembers,
8994
+ assert.notSameDeepOrderedMembers,
8976
8995
  true
8977
8996
  ).to.not.have.same.deep.ordered.members(set22);
8978
8997
  };
8979
- assert2.includeMembers = function(superset, subset, msg) {
8980
- new Assertion(superset, msg, assert2.includeMembers, true).to.include.members(
8998
+ assert.includeMembers = function(superset, subset, msg) {
8999
+ new Assertion(superset, msg, assert.includeMembers, true).to.include.members(
8981
9000
  subset
8982
9001
  );
8983
9002
  };
8984
- assert2.notIncludeMembers = function(superset, subset, msg) {
9003
+ assert.notIncludeMembers = function(superset, subset, msg) {
8985
9004
  new Assertion(
8986
9005
  superset,
8987
9006
  msg,
8988
- assert2.notIncludeMembers,
9007
+ assert.notIncludeMembers,
8989
9008
  true
8990
9009
  ).to.not.include.members(subset);
8991
9010
  };
8992
- assert2.includeDeepMembers = function(superset, subset, msg) {
9011
+ assert.includeDeepMembers = function(superset, subset, msg) {
8993
9012
  new Assertion(
8994
9013
  superset,
8995
9014
  msg,
8996
- assert2.includeDeepMembers,
9015
+ assert.includeDeepMembers,
8997
9016
  true
8998
9017
  ).to.include.deep.members(subset);
8999
9018
  };
9000
- assert2.notIncludeDeepMembers = function(superset, subset, msg) {
9019
+ assert.notIncludeDeepMembers = function(superset, subset, msg) {
9001
9020
  new Assertion(
9002
9021
  superset,
9003
9022
  msg,
9004
- assert2.notIncludeDeepMembers,
9023
+ assert.notIncludeDeepMembers,
9005
9024
  true
9006
9025
  ).to.not.include.deep.members(subset);
9007
9026
  };
9008
- assert2.includeOrderedMembers = function(superset, subset, msg) {
9027
+ assert.includeOrderedMembers = function(superset, subset, msg) {
9009
9028
  new Assertion(
9010
9029
  superset,
9011
9030
  msg,
9012
- assert2.includeOrderedMembers,
9031
+ assert.includeOrderedMembers,
9013
9032
  true
9014
9033
  ).to.include.ordered.members(subset);
9015
9034
  };
9016
- assert2.notIncludeOrderedMembers = function(superset, subset, msg) {
9035
+ assert.notIncludeOrderedMembers = function(superset, subset, msg) {
9017
9036
  new Assertion(
9018
9037
  superset,
9019
9038
  msg,
9020
- assert2.notIncludeOrderedMembers,
9039
+ assert.notIncludeOrderedMembers,
9021
9040
  true
9022
9041
  ).to.not.include.ordered.members(subset);
9023
9042
  };
9024
- assert2.includeDeepOrderedMembers = function(superset, subset, msg) {
9043
+ assert.includeDeepOrderedMembers = function(superset, subset, msg) {
9025
9044
  new Assertion(
9026
9045
  superset,
9027
9046
  msg,
9028
- assert2.includeDeepOrderedMembers,
9047
+ assert.includeDeepOrderedMembers,
9029
9048
  true
9030
9049
  ).to.include.deep.ordered.members(subset);
9031
9050
  };
9032
- assert2.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
9051
+ assert.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
9033
9052
  new Assertion(
9034
9053
  superset,
9035
9054
  msg,
9036
- assert2.notIncludeDeepOrderedMembers,
9055
+ assert.notIncludeDeepOrderedMembers,
9037
9056
  true
9038
9057
  ).to.not.include.deep.ordered.members(subset);
9039
9058
  };
9040
- assert2.oneOf = function(inList, list, msg) {
9041
- new Assertion(inList, msg, assert2.oneOf, true).to.be.oneOf(list);
9059
+ assert.oneOf = function(inList, list, msg) {
9060
+ new Assertion(inList, msg, assert.oneOf, true).to.be.oneOf(list);
9042
9061
  };
9043
- assert2.isIterable = function(obj, msg) {
9062
+ assert.isIterable = function(obj, msg) {
9044
9063
  if (obj == void 0 || !obj[Symbol.iterator]) {
9045
9064
  msg = msg ? `${msg} expected ${inspect22(obj)} to be an iterable` : `expected ${inspect22(obj)} to be an iterable`;
9046
- throw new AssertionError(msg, void 0, assert2.isIterable);
9065
+ throw new AssertionError(msg, void 0, assert.isIterable);
9047
9066
  }
9048
9067
  };
9049
- assert2.changes = function(fn2, obj, prop, msg) {
9068
+ assert.changes = function(fn2, obj, prop, msg) {
9050
9069
  if (arguments.length === 3 && typeof obj === "function") {
9051
9070
  msg = prop;
9052
9071
  prop = null;
9053
9072
  }
9054
- new Assertion(fn2, msg, assert2.changes, true).to.change(obj, prop);
9073
+ new Assertion(fn2, msg, assert.changes, true).to.change(obj, prop);
9055
9074
  };
9056
- assert2.changesBy = function(fn2, obj, prop, delta, msg) {
9075
+ assert.changesBy = function(fn2, obj, prop, delta, msg) {
9057
9076
  if (arguments.length === 4 && typeof obj === "function") {
9058
- var tmpMsg = delta;
9077
+ let tmpMsg = delta;
9059
9078
  delta = prop;
9060
9079
  msg = tmpMsg;
9061
9080
  } else if (arguments.length === 3) {
9062
9081
  delta = prop;
9063
9082
  prop = null;
9064
9083
  }
9065
- new Assertion(fn2, msg, assert2.changesBy, true).to.change(obj, prop).by(delta);
9084
+ new Assertion(fn2, msg, assert.changesBy, true).to.change(obj, prop).by(delta);
9066
9085
  };
9067
- assert2.doesNotChange = function(fn2, obj, prop, msg) {
9086
+ assert.doesNotChange = function(fn2, obj, prop, msg) {
9068
9087
  if (arguments.length === 3 && typeof obj === "function") {
9069
9088
  msg = prop;
9070
9089
  prop = null;
9071
9090
  }
9072
- return new Assertion(fn2, msg, assert2.doesNotChange, true).to.not.change(
9091
+ return new Assertion(fn2, msg, assert.doesNotChange, true).to.not.change(
9073
9092
  obj,
9074
9093
  prop
9075
9094
  );
9076
9095
  };
9077
- assert2.changesButNotBy = function(fn2, obj, prop, delta, msg) {
9096
+ assert.changesButNotBy = function(fn2, obj, prop, delta, msg) {
9078
9097
  if (arguments.length === 4 && typeof obj === "function") {
9079
- var tmpMsg = delta;
9098
+ let tmpMsg = delta;
9080
9099
  delta = prop;
9081
9100
  msg = tmpMsg;
9082
9101
  } else if (arguments.length === 3) {
9083
9102
  delta = prop;
9084
9103
  prop = null;
9085
9104
  }
9086
- new Assertion(fn2, msg, assert2.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);
9105
+ new Assertion(fn2, msg, assert.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);
9087
9106
  };
9088
- assert2.increases = function(fn2, obj, prop, msg) {
9107
+ assert.increases = function(fn2, obj, prop, msg) {
9089
9108
  if (arguments.length === 3 && typeof obj === "function") {
9090
9109
  msg = prop;
9091
9110
  prop = null;
9092
9111
  }
9093
- return new Assertion(fn2, msg, assert2.increases, true).to.increase(obj, prop);
9112
+ return new Assertion(fn2, msg, assert.increases, true).to.increase(obj, prop);
9094
9113
  };
9095
- assert2.increasesBy = function(fn2, obj, prop, delta, msg) {
9114
+ assert.increasesBy = function(fn2, obj, prop, delta, msg) {
9096
9115
  if (arguments.length === 4 && typeof obj === "function") {
9097
- var tmpMsg = delta;
9116
+ let tmpMsg = delta;
9098
9117
  delta = prop;
9099
9118
  msg = tmpMsg;
9100
9119
  } else if (arguments.length === 3) {
9101
9120
  delta = prop;
9102
9121
  prop = null;
9103
9122
  }
9104
- new Assertion(fn2, msg, assert2.increasesBy, true).to.increase(obj, prop).by(delta);
9123
+ new Assertion(fn2, msg, assert.increasesBy, true).to.increase(obj, prop).by(delta);
9105
9124
  };
9106
- assert2.doesNotIncrease = function(fn2, obj, prop, msg) {
9125
+ assert.doesNotIncrease = function(fn2, obj, prop, msg) {
9107
9126
  if (arguments.length === 3 && typeof obj === "function") {
9108
9127
  msg = prop;
9109
9128
  prop = null;
9110
9129
  }
9111
- return new Assertion(fn2, msg, assert2.doesNotIncrease, true).to.not.increase(
9130
+ return new Assertion(fn2, msg, assert.doesNotIncrease, true).to.not.increase(
9112
9131
  obj,
9113
9132
  prop
9114
9133
  );
9115
9134
  };
9116
- assert2.increasesButNotBy = function(fn2, obj, prop, delta, msg) {
9135
+ assert.increasesButNotBy = function(fn2, obj, prop, delta, msg) {
9117
9136
  if (arguments.length === 4 && typeof obj === "function") {
9118
- var tmpMsg = delta;
9137
+ let tmpMsg = delta;
9119
9138
  delta = prop;
9120
9139
  msg = tmpMsg;
9121
9140
  } else if (arguments.length === 3) {
9122
9141
  delta = prop;
9123
9142
  prop = null;
9124
9143
  }
9125
- new Assertion(fn2, msg, assert2.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);
9144
+ new Assertion(fn2, msg, assert.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);
9126
9145
  };
9127
- assert2.decreases = function(fn2, obj, prop, msg) {
9146
+ assert.decreases = function(fn2, obj, prop, msg) {
9128
9147
  if (arguments.length === 3 && typeof obj === "function") {
9129
9148
  msg = prop;
9130
9149
  prop = null;
9131
9150
  }
9132
- return new Assertion(fn2, msg, assert2.decreases, true).to.decrease(obj, prop);
9151
+ return new Assertion(fn2, msg, assert.decreases, true).to.decrease(obj, prop);
9133
9152
  };
9134
- assert2.decreasesBy = function(fn2, obj, prop, delta, msg) {
9153
+ assert.decreasesBy = function(fn2, obj, prop, delta, msg) {
9135
9154
  if (arguments.length === 4 && typeof obj === "function") {
9136
- var tmpMsg = delta;
9155
+ let tmpMsg = delta;
9137
9156
  delta = prop;
9138
9157
  msg = tmpMsg;
9139
9158
  } else if (arguments.length === 3) {
9140
9159
  delta = prop;
9141
9160
  prop = null;
9142
9161
  }
9143
- new Assertion(fn2, msg, assert2.decreasesBy, true).to.decrease(obj, prop).by(delta);
9162
+ new Assertion(fn2, msg, assert.decreasesBy, true).to.decrease(obj, prop).by(delta);
9144
9163
  };
9145
- assert2.doesNotDecrease = function(fn2, obj, prop, msg) {
9164
+ assert.doesNotDecrease = function(fn2, obj, prop, msg) {
9146
9165
  if (arguments.length === 3 && typeof obj === "function") {
9147
9166
  msg = prop;
9148
9167
  prop = null;
9149
9168
  }
9150
- return new Assertion(fn2, msg, assert2.doesNotDecrease, true).to.not.decrease(
9169
+ return new Assertion(fn2, msg, assert.doesNotDecrease, true).to.not.decrease(
9151
9170
  obj,
9152
9171
  prop
9153
9172
  );
9154
9173
  };
9155
- assert2.doesNotDecreaseBy = function(fn2, obj, prop, delta, msg) {
9174
+ assert.doesNotDecreaseBy = function(fn2, obj, prop, delta, msg) {
9156
9175
  if (arguments.length === 4 && typeof obj === "function") {
9157
- var tmpMsg = delta;
9176
+ let tmpMsg = delta;
9158
9177
  delta = prop;
9159
9178
  msg = tmpMsg;
9160
9179
  } else if (arguments.length === 3) {
9161
9180
  delta = prop;
9162
9181
  prop = null;
9163
9182
  }
9164
- return new Assertion(fn2, msg, assert2.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);
9183
+ return new Assertion(fn2, msg, assert.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);
9165
9184
  };
9166
- assert2.decreasesButNotBy = function(fn2, obj, prop, delta, msg) {
9185
+ assert.decreasesButNotBy = function(fn2, obj, prop, delta, msg) {
9167
9186
  if (arguments.length === 4 && typeof obj === "function") {
9168
- var tmpMsg = delta;
9187
+ let tmpMsg = delta;
9169
9188
  delta = prop;
9170
9189
  msg = tmpMsg;
9171
9190
  } else if (arguments.length === 3) {
9172
9191
  delta = prop;
9173
9192
  prop = null;
9174
9193
  }
9175
- new Assertion(fn2, msg, assert2.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);
9194
+ new Assertion(fn2, msg, assert.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);
9176
9195
  };
9177
- assert2.ifError = function(val) {
9196
+ assert.ifError = function(val) {
9178
9197
  if (val) {
9179
9198
  throw val;
9180
9199
  }
9181
9200
  };
9182
- assert2.isExtensible = function(obj, msg) {
9183
- new Assertion(obj, msg, assert2.isExtensible, true).to.be.extensible;
9201
+ assert.isExtensible = function(obj, msg) {
9202
+ new Assertion(obj, msg, assert.isExtensible, true).to.be.extensible;
9184
9203
  };
9185
- assert2.isNotExtensible = function(obj, msg) {
9186
- new Assertion(obj, msg, assert2.isNotExtensible, true).to.not.be.extensible;
9204
+ assert.isNotExtensible = function(obj, msg) {
9205
+ new Assertion(obj, msg, assert.isNotExtensible, true).to.not.be.extensible;
9187
9206
  };
9188
- assert2.isSealed = function(obj, msg) {
9189
- new Assertion(obj, msg, assert2.isSealed, true).to.be.sealed;
9207
+ assert.isSealed = function(obj, msg) {
9208
+ new Assertion(obj, msg, assert.isSealed, true).to.be.sealed;
9190
9209
  };
9191
- assert2.isNotSealed = function(obj, msg) {
9192
- new Assertion(obj, msg, assert2.isNotSealed, true).to.not.be.sealed;
9210
+ assert.isNotSealed = function(obj, msg) {
9211
+ new Assertion(obj, msg, assert.isNotSealed, true).to.not.be.sealed;
9193
9212
  };
9194
- assert2.isFrozen = function(obj, msg) {
9195
- new Assertion(obj, msg, assert2.isFrozen, true).to.be.frozen;
9213
+ assert.isFrozen = function(obj, msg) {
9214
+ new Assertion(obj, msg, assert.isFrozen, true).to.be.frozen;
9196
9215
  };
9197
- assert2.isNotFrozen = function(obj, msg) {
9198
- new Assertion(obj, msg, assert2.isNotFrozen, true).to.not.be.frozen;
9216
+ assert.isNotFrozen = function(obj, msg) {
9217
+ new Assertion(obj, msg, assert.isNotFrozen, true).to.not.be.frozen;
9199
9218
  };
9200
- assert2.isEmpty = function(val, msg) {
9201
- new Assertion(val, msg, assert2.isEmpty, true).to.be.empty;
9219
+ assert.isEmpty = function(val, msg) {
9220
+ new Assertion(val, msg, assert.isEmpty, true).to.be.empty;
9202
9221
  };
9203
- assert2.isNotEmpty = function(val, msg) {
9204
- new Assertion(val, msg, assert2.isNotEmpty, true).to.not.be.empty;
9222
+ assert.isNotEmpty = function(val, msg) {
9223
+ new Assertion(val, msg, assert.isNotEmpty, true).to.not.be.empty;
9205
9224
  };
9206
- assert2.containsSubset = function(val, exp, msg) {
9225
+ assert.containsSubset = function(val, exp, msg) {
9207
9226
  new Assertion(val, msg).to.containSubset(exp);
9208
9227
  };
9209
- assert2.doesNotContainSubset = function(val, exp, msg) {
9228
+ assert.doesNotContainSubset = function(val, exp, msg) {
9210
9229
  new Assertion(val, msg).to.not.containSubset(exp);
9211
9230
  };
9212
9231
  var aliases = [
@@ -9227,7 +9246,7 @@ var aliases = [
9227
9246
  ["containsSubset", "containSubset"]
9228
9247
  ];
9229
9248
  for (const [name, as] of aliases) {
9230
- assert2[as] = assert2[name];
9249
+ assert[as] = assert[name];
9231
9250
  }
9232
9251
  var used = [];
9233
9252
  function use(fn2) {
@@ -9237,7 +9256,7 @@ function use(fn2) {
9237
9256
  util: utils_exports,
9238
9257
  config,
9239
9258
  expect,
9240
- assert: assert2,
9259
+ assert,
9241
9260
  Assertion,
9242
9261
  ...should_exports
9243
9262
  };
@@ -9381,71 +9400,71 @@ function addCustomEqualityTesters(newTesters) {
9381
9400
  function getCustomEqualityTesters() {
9382
9401
  return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;
9383
9402
  }
9384
- function equals(a3, b, customTesters, strictCheck) {
9403
+ function equals(a3, b2, customTesters, strictCheck) {
9385
9404
  customTesters = customTesters || [];
9386
- return eq(a3, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
9405
+ return eq(a3, b2, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
9387
9406
  }
9388
9407
  var functionToString = Function.prototype.toString;
9389
9408
  function isAsymmetric(obj) {
9390
9409
  return !!obj && typeof obj === "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch);
9391
9410
  }
9392
- function asymmetricMatch(a3, b) {
9411
+ function asymmetricMatch(a3, b2) {
9393
9412
  const asymmetricA = isAsymmetric(a3);
9394
- const asymmetricB = isAsymmetric(b);
9413
+ const asymmetricB = isAsymmetric(b2);
9395
9414
  if (asymmetricA && asymmetricB) {
9396
9415
  return void 0;
9397
9416
  }
9398
9417
  if (asymmetricA) {
9399
- return a3.asymmetricMatch(b);
9418
+ return a3.asymmetricMatch(b2);
9400
9419
  }
9401
9420
  if (asymmetricB) {
9402
- return b.asymmetricMatch(a3);
9421
+ return b2.asymmetricMatch(a3);
9403
9422
  }
9404
9423
  }
9405
- function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9424
+ function eq(a3, b2, aStack, bStack, customTesters, hasKey2) {
9406
9425
  let result = true;
9407
- const asymmetricResult = asymmetricMatch(a3, b);
9426
+ const asymmetricResult = asymmetricMatch(a3, b2);
9408
9427
  if (asymmetricResult !== void 0) {
9409
9428
  return asymmetricResult;
9410
9429
  }
9411
9430
  const testerContext = { equals };
9412
9431
  for (let i = 0; i < customTesters.length; i++) {
9413
- const customTesterResult = customTesters[i].call(testerContext, a3, b, customTesters);
9432
+ const customTesterResult = customTesters[i].call(testerContext, a3, b2, customTesters);
9414
9433
  if (customTesterResult !== void 0) {
9415
9434
  return customTesterResult;
9416
9435
  }
9417
9436
  }
9418
- if (typeof URL === "function" && a3 instanceof URL && b instanceof URL) {
9419
- return a3.href === b.href;
9437
+ if (typeof URL === "function" && a3 instanceof URL && b2 instanceof URL) {
9438
+ return a3.href === b2.href;
9420
9439
  }
9421
- if (Object.is(a3, b)) {
9440
+ if (Object.is(a3, b2)) {
9422
9441
  return true;
9423
9442
  }
9424
- if (a3 === null || b === null) {
9425
- return a3 === b;
9443
+ if (a3 === null || b2 === null) {
9444
+ return a3 === b2;
9426
9445
  }
9427
9446
  const className = Object.prototype.toString.call(a3);
9428
- if (className !== Object.prototype.toString.call(b)) {
9447
+ if (className !== Object.prototype.toString.call(b2)) {
9429
9448
  return false;
9430
9449
  }
9431
9450
  switch (className) {
9432
9451
  case "[object Boolean]":
9433
9452
  case "[object String]":
9434
9453
  case "[object Number]":
9435
- if (typeof a3 !== typeof b) {
9454
+ if (typeof a3 !== typeof b2) {
9436
9455
  return false;
9437
- } else if (typeof a3 !== "object" && typeof b !== "object") {
9438
- return Object.is(a3, b);
9456
+ } else if (typeof a3 !== "object" && typeof b2 !== "object") {
9457
+ return Object.is(a3, b2);
9439
9458
  } else {
9440
- return Object.is(a3.valueOf(), b.valueOf());
9459
+ return Object.is(a3.valueOf(), b2.valueOf());
9441
9460
  }
9442
9461
  case "[object Date]": {
9443
9462
  const numA = +a3;
9444
- const numB = +b;
9463
+ const numB = +b2;
9445
9464
  return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
9446
9465
  }
9447
9466
  case "[object RegExp]":
9448
- return a3.source === b.source && a3.flags === b.flags;
9467
+ return a3.source === b2.source && a3.flags === b2.flags;
9449
9468
  case "[object Temporal.Instant]":
9450
9469
  case "[object Temporal.ZonedDateTime]":
9451
9470
  case "[object Temporal.PlainDateTime]":
@@ -9453,32 +9472,32 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9453
9472
  case "[object Temporal.PlainTime]":
9454
9473
  case "[object Temporal.PlainYearMonth]":
9455
9474
  case "[object Temporal.PlainMonthDay]":
9456
- return a3.equals(b);
9475
+ return a3.equals(b2);
9457
9476
  case "[object Temporal.Duration]":
9458
- return a3.toString() === b.toString();
9477
+ return a3.toString() === b2.toString();
9459
9478
  }
9460
- if (typeof a3 !== "object" || typeof b !== "object") {
9479
+ if (typeof a3 !== "object" || typeof b2 !== "object") {
9461
9480
  return false;
9462
9481
  }
9463
- if (isDomNode(a3) && isDomNode(b)) {
9464
- return a3.isEqualNode(b);
9482
+ if (isDomNode(a3) && isDomNode(b2)) {
9483
+ return a3.isEqualNode(b2);
9465
9484
  }
9466
9485
  let length = aStack.length;
9467
9486
  while (length--) {
9468
9487
  if (aStack[length] === a3) {
9469
- return bStack[length] === b;
9470
- } else if (bStack[length] === b) {
9488
+ return bStack[length] === b2;
9489
+ } else if (bStack[length] === b2) {
9471
9490
  return false;
9472
9491
  }
9473
9492
  }
9474
9493
  aStack.push(a3);
9475
- bStack.push(b);
9476
- if (className === "[object Array]" && a3.length !== b.length) {
9494
+ bStack.push(b2);
9495
+ if (className === "[object Array]" && a3.length !== b2.length) {
9477
9496
  return false;
9478
9497
  }
9479
- if (a3 instanceof Error && b instanceof Error) {
9498
+ if (a3 instanceof Error && b2 instanceof Error) {
9480
9499
  try {
9481
- return isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2);
9500
+ return isErrorEqual(a3, b2, aStack, bStack, customTesters, hasKey2);
9482
9501
  } finally {
9483
9502
  aStack.pop();
9484
9503
  bStack.pop();
@@ -9487,12 +9506,12 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9487
9506
  const aKeys = keys(a3, hasKey2);
9488
9507
  let key;
9489
9508
  let size = aKeys.length;
9490
- if (keys(b, hasKey2).length !== size) {
9509
+ if (keys(b2, hasKey2).length !== size) {
9491
9510
  return false;
9492
9511
  }
9493
9512
  while (size--) {
9494
9513
  key = aKeys[size];
9495
- result = hasKey2(b, key) && eq(a3[key], b[key], aStack, bStack, customTesters, hasKey2);
9514
+ result = hasKey2(b2, key) && eq(a3[key], b2[key], aStack, bStack, customTesters, hasKey2);
9496
9515
  if (!result) {
9497
9516
  return false;
9498
9517
  }
@@ -9501,15 +9520,15 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9501
9520
  bStack.pop();
9502
9521
  return result;
9503
9522
  }
9504
- function isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2) {
9505
- let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b) && a3.name === b.name && a3.message === b.message;
9506
- if (typeof b.cause !== "undefined") {
9507
- result && (result = eq(a3.cause, b.cause, aStack, bStack, customTesters, hasKey2));
9523
+ function isErrorEqual(a3, b2, aStack, bStack, customTesters, hasKey2) {
9524
+ let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b2) && a3.name === b2.name && a3.message === b2.message;
9525
+ if (typeof b2.cause !== "undefined") {
9526
+ result && (result = eq(a3.cause, b2.cause, aStack, bStack, customTesters, hasKey2));
9508
9527
  }
9509
- if (a3 instanceof AggregateError && b instanceof AggregateError) {
9510
- result && (result = eq(a3.errors, b.errors, aStack, bStack, customTesters, hasKey2));
9528
+ if (a3 instanceof AggregateError && b2 instanceof AggregateError) {
9529
+ result && (result = eq(a3.errors, b2.errors, aStack, bStack, customTesters, hasKey2));
9511
9530
  }
9512
- result && (result = eq({ ...a3 }, { ...b }, aStack, bStack, customTesters, hasKey2));
9531
+ result && (result = eq({ ...a3 }, { ...b2 }, aStack, bStack, customTesters, hasKey2));
9513
9532
  return result;
9514
9533
  }
9515
9534
  function keys(obj, hasKey2) {
@@ -9563,34 +9582,34 @@ var IteratorSymbol = Symbol.iterator;
9563
9582
  function hasIterator(object2) {
9564
9583
  return !!(object2 != null && object2[IteratorSymbol]);
9565
9584
  }
9566
- function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9567
- if (typeof a3 !== "object" || typeof b !== "object" || Array.isArray(a3) || Array.isArray(b) || !hasIterator(a3) || !hasIterator(b)) {
9585
+ function iterableEquality(a3, b2, customTesters = [], aStack = [], bStack = []) {
9586
+ if (typeof a3 !== "object" || typeof b2 !== "object" || Array.isArray(a3) || Array.isArray(b2) || !hasIterator(a3) || !hasIterator(b2)) {
9568
9587
  return void 0;
9569
9588
  }
9570
- if (a3.constructor !== b.constructor) {
9589
+ if (a3.constructor !== b2.constructor) {
9571
9590
  return false;
9572
9591
  }
9573
9592
  let length = aStack.length;
9574
9593
  while (length--) {
9575
9594
  if (aStack[length] === a3) {
9576
- return bStack[length] === b;
9595
+ return bStack[length] === b2;
9577
9596
  }
9578
9597
  }
9579
9598
  aStack.push(a3);
9580
- bStack.push(b);
9599
+ bStack.push(b2);
9581
9600
  const filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];
9582
- function iterableEqualityWithStack(a4, b2) {
9583
- return iterableEquality(a4, b2, [...customTesters], [...aStack], [...bStack]);
9601
+ function iterableEqualityWithStack(a4, b3) {
9602
+ return iterableEquality(a4, b3, [...customTesters], [...aStack], [...bStack]);
9584
9603
  }
9585
9604
  if (a3.size !== void 0) {
9586
- if (a3.size !== b.size) {
9605
+ if (a3.size !== b2.size) {
9587
9606
  return false;
9588
9607
  } else if (isA("Set", a3) || isImmutableUnorderedSet(a3)) {
9589
9608
  let allFound = true;
9590
9609
  for (const aValue of a3) {
9591
- if (!b.has(aValue)) {
9610
+ if (!b2.has(aValue)) {
9592
9611
  let has = false;
9593
- for (const bValue of b) {
9612
+ for (const bValue of b2) {
9594
9613
  const isEqual = equals(aValue, bValue, filteredCustomTesters);
9595
9614
  if (isEqual === true) {
9596
9615
  has = true;
@@ -9608,9 +9627,9 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9608
9627
  } else if (isA("Map", a3) || isImmutableUnorderedKeyed(a3)) {
9609
9628
  let allFound = true;
9610
9629
  for (const aEntry of a3) {
9611
- if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {
9630
+ if (!b2.has(aEntry[0]) || !equals(aEntry[1], b2.get(aEntry[0]), filteredCustomTesters)) {
9612
9631
  let has = false;
9613
- for (const bEntry of b) {
9632
+ for (const bEntry of b2) {
9614
9633
  const matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters);
9615
9634
  let matchedValue = false;
9616
9635
  if (matchedKey === true) {
@@ -9631,7 +9650,7 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9631
9650
  return allFound;
9632
9651
  }
9633
9652
  }
9634
- const bIterator = b[IteratorSymbol]();
9653
+ const bIterator = b2[IteratorSymbol]();
9635
9654
  for (const aValue of a3) {
9636
9655
  const nextB = bIterator.next();
9637
9656
  if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) {
@@ -9643,7 +9662,7 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9643
9662
  }
9644
9663
  if (!isImmutableList(a3) && !isImmutableOrderedKeyed(a3) && !isImmutableOrderedSet(a3) && !isImmutableRecord(a3)) {
9645
9664
  const aEntries = Object.entries(a3);
9646
- const bEntries = Object.entries(b);
9665
+ const bEntries = Object.entries(b2);
9647
9666
  if (!equals(aEntries, bEntries, filteredCustomTesters)) {
9648
9667
  return false;
9649
9668
  }
@@ -9682,22 +9701,22 @@ function subsetEquality(object2, subset, customTesters = []) {
9682
9701
  };
9683
9702
  return subsetEqualityWithContext()(object2, subset);
9684
9703
  }
9685
- function typeEquality(a3, b) {
9686
- if (a3 == null || b == null || a3.constructor === b.constructor) {
9704
+ function typeEquality(a3, b2) {
9705
+ if (a3 == null || b2 == null || a3.constructor === b2.constructor) {
9687
9706
  return void 0;
9688
9707
  }
9689
9708
  return false;
9690
9709
  }
9691
- function arrayBufferEquality(a3, b) {
9710
+ function arrayBufferEquality(a3, b2) {
9692
9711
  let dataViewA = a3;
9693
- let dataViewB = b;
9694
- if (!(a3 instanceof DataView && b instanceof DataView)) {
9695
- if (!(a3 instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) {
9712
+ let dataViewB = b2;
9713
+ if (!(a3 instanceof DataView && b2 instanceof DataView)) {
9714
+ if (!(a3 instanceof ArrayBuffer) || !(b2 instanceof ArrayBuffer)) {
9696
9715
  return void 0;
9697
9716
  }
9698
9717
  try {
9699
9718
  dataViewA = new DataView(a3);
9700
- dataViewB = new DataView(b);
9719
+ dataViewB = new DataView(b2);
9701
9720
  } catch {
9702
9721
  return void 0;
9703
9722
  }
@@ -9712,14 +9731,14 @@ function arrayBufferEquality(a3, b) {
9712
9731
  }
9713
9732
  return true;
9714
9733
  }
9715
- function sparseArrayEquality(a3, b, customTesters = []) {
9716
- if (!Array.isArray(a3) || !Array.isArray(b)) {
9734
+ function sparseArrayEquality(a3, b2, customTesters = []) {
9735
+ if (!Array.isArray(a3) || !Array.isArray(b2)) {
9717
9736
  return void 0;
9718
9737
  }
9719
9738
  const aKeys = Object.keys(a3);
9720
- const bKeys = Object.keys(b);
9739
+ const bKeys = Object.keys(b2);
9721
9740
  const filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);
9722
- return equals(a3, b, filteredCustomTesters, true) && equals(aKeys, bKeys);
9741
+ return equals(a3, b2, filteredCustomTesters, true) && equals(aKeys, bKeys);
9723
9742
  }
9724
9743
  function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") {
9725
9744
  const toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;
@@ -10411,7 +10430,7 @@ var JestChaiExpect = (chai2, utils) => {
10411
10430
  return this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, received, expected, false);
10412
10431
  });
10413
10432
  function assertIsMock(assertion) {
10414
- if (!isMockFunction2(assertion._obj)) {
10433
+ if (!isMockFunction(assertion._obj)) {
10415
10434
  throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);
10416
10435
  }
10417
10436
  }
@@ -10451,8 +10470,8 @@ var JestChaiExpect = (chai2, utils) => {
10451
10470
  throw new AssertionError2(msg);
10452
10471
  }
10453
10472
  });
10454
- function equalsArgumentArray(a3, b) {
10455
- return a3.length === b.length && a3.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));
10473
+ function equalsArgumentArray(a3, b2) {
10474
+ return a3.length === b2.length && a3.every((aItem, i) => equals(aItem, b2[i], [...customTesters, iterableEquality]));
10456
10475
  }
10457
10476
  def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
10458
10477
  const spy = getSpy(this);
@@ -10513,14 +10532,14 @@ var JestChaiExpect = (chai2, utils) => {
10513
10532
  }
10514
10533
  def(["toHaveBeenCalledBefore"], function(resultSpy, failIfNoFirstInvocation = true) {
10515
10534
  const expectSpy = getSpy(this);
10516
- if (!isMockFunction2(resultSpy)) {
10535
+ if (!isMockFunction(resultSpy)) {
10517
10536
  throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
10518
10537
  }
10519
10538
  this.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called before "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called before "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
10520
10539
  });
10521
10540
  def(["toHaveBeenCalledAfter"], function(resultSpy, failIfNoFirstInvocation = true) {
10522
10541
  const expectSpy = getSpy(this);
10523
- if (!isMockFunction2(resultSpy)) {
10542
+ if (!isMockFunction(resultSpy)) {
10524
10543
  throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
10525
10544
  }
10526
10545
  this.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called after "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called after "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
@@ -10754,15 +10773,15 @@ var JestChaiExpect = (chai2, utils) => {
10754
10773
  });
10755
10774
  };
10756
10775
  function ordinalOf(i) {
10757
- const j = i % 10;
10758
- const k = i % 100;
10759
- if (j === 1 && k !== 11) {
10776
+ const j2 = i % 10;
10777
+ const k2 = i % 100;
10778
+ if (j2 === 1 && k2 !== 11) {
10760
10779
  return `${i}st`;
10761
10780
  }
10762
- if (j === 2 && k !== 12) {
10781
+ if (j2 === 2 && k2 !== 12) {
10763
10782
  return `${i}nd`;
10764
10783
  }
10765
- if (j === 3 && k !== 13) {
10784
+ if (j2 === 3 && k2 !== 13) {
10766
10785
  return `${i}rd`;
10767
10786
  }
10768
10787
  return `${i}th`;
@@ -11131,80 +11150,68 @@ function parseSingleV8Stack(raw) {
11131
11150
  };
11132
11151
  }
11133
11152
  var import_js_tokens = (0, import_chunk_2ESYSVXG.__toESM)(require_js_tokens(), 1);
11134
- function stripLiteralJsTokens(code, options) {
11135
- const FILL = options?.fillChar ?? " ";
11136
- const FILL_COMMENT = " ";
11137
- let result = "";
11138
- const filter = options?.filter ?? (() => true);
11139
- const tokens = [];
11140
- for (const token of (0, import_js_tokens.default)(code, { jsx: false })) {
11141
- tokens.push(token);
11142
- if (token.type === "SingleLineComment") {
11143
- result += FILL_COMMENT.repeat(token.value.length);
11144
- continue;
11145
- }
11146
- if (token.type === "MultiLineComment") {
11147
- result += token.value.replace(/[^\n]/g, FILL_COMMENT);
11148
- continue;
11153
+ var FILL_COMMENT = " ";
11154
+ function stripLiteralFromToken(token, fillChar, filter) {
11155
+ if (token.type === "SingleLineComment") {
11156
+ return FILL_COMMENT.repeat(token.value.length);
11157
+ }
11158
+ if (token.type === "MultiLineComment") {
11159
+ return token.value.replace(/[^\n]/g, FILL_COMMENT);
11160
+ }
11161
+ if (token.type === "StringLiteral") {
11162
+ if (!token.closed) {
11163
+ return token.value;
11149
11164
  }
11150
- if (token.type === "StringLiteral") {
11151
- if (!token.closed) {
11152
- result += token.value;
11153
- continue;
11154
- }
11155
- const body = token.value.slice(1, -1);
11156
- if (filter(body)) {
11157
- result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];
11158
- continue;
11159
- }
11165
+ const body = token.value.slice(1, -1);
11166
+ if (filter(body)) {
11167
+ return token.value[0] + fillChar.repeat(body.length) + token.value[token.value.length - 1];
11160
11168
  }
11161
- if (token.type === "NoSubstitutionTemplate") {
11162
- const body = token.value.slice(1, -1);
11163
- if (filter(body)) {
11164
- result += `\`${body.replace(/[^\n]/g, FILL)}\``;
11165
- continue;
11166
- }
11169
+ }
11170
+ if (token.type === "NoSubstitutionTemplate") {
11171
+ const body = token.value.slice(1, -1);
11172
+ if (filter(body)) {
11173
+ return `\`${body.replace(/[^\n]/g, fillChar)}\``;
11167
11174
  }
11168
- if (token.type === "RegularExpressionLiteral") {
11169
- const body = token.value;
11170
- if (filter(body)) {
11171
- result += body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${FILL.repeat($1.length)}/${$2}`);
11172
- continue;
11173
- }
11175
+ }
11176
+ if (token.type === "RegularExpressionLiteral") {
11177
+ const body = token.value;
11178
+ if (filter(body)) {
11179
+ return body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${fillChar.repeat($1.length)}/${$2}`);
11174
11180
  }
11175
- if (token.type === "TemplateHead") {
11176
- const body = token.value.slice(1, -2);
11177
- if (filter(body)) {
11178
- result += `\`${body.replace(/[^\n]/g, FILL)}\${`;
11179
- continue;
11180
- }
11181
+ }
11182
+ if (token.type === "TemplateHead") {
11183
+ const body = token.value.slice(1, -2);
11184
+ if (filter(body)) {
11185
+ return `\`${body.replace(/[^\n]/g, fillChar)}\${`;
11181
11186
  }
11182
- if (token.type === "TemplateTail") {
11183
- const body = token.value.slice(0, -2);
11184
- if (filter(body)) {
11185
- result += `}${body.replace(/[^\n]/g, FILL)}\``;
11186
- continue;
11187
- }
11187
+ }
11188
+ if (token.type === "TemplateTail") {
11189
+ const body = token.value.slice(0, -2);
11190
+ if (filter(body)) {
11191
+ return `}${body.replace(/[^\n]/g, fillChar)}\``;
11188
11192
  }
11189
- if (token.type === "TemplateMiddle") {
11190
- const body = token.value.slice(1, -2);
11191
- if (filter(body)) {
11192
- result += `}${body.replace(/[^\n]/g, FILL)}\${`;
11193
- continue;
11194
- }
11193
+ }
11194
+ if (token.type === "TemplateMiddle") {
11195
+ const body = token.value.slice(1, -2);
11196
+ if (filter(body)) {
11197
+ return `}${body.replace(/[^\n]/g, fillChar)}\${`;
11195
11198
  }
11196
- result += token.value;
11197
11199
  }
11200
+ return token.value;
11201
+ }
11202
+ function optionsWithDefaults(options) {
11198
11203
  return {
11199
- result,
11200
- tokens
11204
+ fillChar: options?.fillChar ?? " ",
11205
+ filter: options?.filter ?? (() => true)
11201
11206
  };
11202
11207
  }
11203
11208
  function stripLiteral(code, options) {
11204
- return stripLiteralDetailed(code, options).result;
11205
- }
11206
- function stripLiteralDetailed(code, options) {
11207
- return stripLiteralJsTokens(code, options);
11209
+ let result = "";
11210
+ const _options = optionsWithDefaults(options);
11211
+ for (const token of (0, import_js_tokens.default)(code, { jsx: false })) {
11212
+ result += stripLiteralFromToken(token, _options.fillChar, _options.filter);
11213
+ }
11214
+ return result;
11208
11215
  }
11209
11216
  var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
11210
11217
  function normalizeWindowsPath2(input = "") {
@@ -11627,7 +11634,7 @@ var test3 = createTest(function(name, optionsOrFn, optionsOrTest) {
11627
11634
  var runner;
11628
11635
  var defaultSuite;
11629
11636
  var currentTestFilepath;
11630
- function assert3(condition, message) {
11637
+ function assert2(condition, message) {
11631
11638
  if (!condition) {
11632
11639
  throw new Error(`Vitest failed to find ${message}. This is a bug in Vitest. Please, open an issue with reproduction.`);
11633
11640
  }
@@ -11636,12 +11643,12 @@ function getTestFilepath() {
11636
11643
  return currentTestFilepath;
11637
11644
  }
11638
11645
  function getRunner() {
11639
- assert3(runner, "the runner");
11646
+ assert2(runner, "the runner");
11640
11647
  return runner;
11641
11648
  }
11642
11649
  function getCurrentSuite() {
11643
11650
  const currentSuite = collectorContext.currentSuite || defaultSuite;
11644
- assert3(currentSuite, "the current suite");
11651
+ assert2(currentSuite, "the current suite");
11645
11652
  return currentSuite;
11646
11653
  }
11647
11654
  function createSuiteHooks() {
@@ -12040,8 +12047,8 @@ function formatTemplateString(cases, args) {
12040
12047
  const res = [];
12041
12048
  for (let i = 0; i < Math.floor(args.length / header.length); i++) {
12042
12049
  const oneCase = {};
12043
- for (let j = 0; j < header.length; j++) {
12044
- oneCase[header[j]] = args[i * header.length + j];
12050
+ for (let j2 = 0; j2 < header.length; j2++) {
12051
+ oneCase[header[j2]] = args[i * header.length + j2];
12045
12052
  }
12046
12053
  res.push(oneCase);
12047
12054
  }
@@ -12312,25 +12319,25 @@ function encodeUint8Array(bytes) {
12312
12319
  for (let i = 0; i < len; i += 3) {
12313
12320
  if (len === i + 1) {
12314
12321
  const a3 = (bytes[i] & 252) >> 2;
12315
- const b = (bytes[i] & 3) << 4;
12322
+ const b2 = (bytes[i] & 3) << 4;
12316
12323
  base64 += table[a3];
12317
- base64 += table[b];
12324
+ base64 += table[b2];
12318
12325
  base64 += "==";
12319
12326
  } else if (len === i + 2) {
12320
12327
  const a3 = (bytes[i] & 252) >> 2;
12321
- const b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
12328
+ const b2 = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
12322
12329
  const c = (bytes[i + 1] & 15) << 2;
12323
12330
  base64 += table[a3];
12324
- base64 += table[b];
12331
+ base64 += table[b2];
12325
12332
  base64 += table[c];
12326
12333
  base64 += "=";
12327
12334
  } else {
12328
12335
  const a3 = (bytes[i] & 252) >> 2;
12329
- const b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
12336
+ const b2 = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
12330
12337
  const c = (bytes[i + 1] & 15) << 2 | (bytes[i + 2] & 192) >> 6;
12331
12338
  const d = bytes[i + 2] & 63;
12332
12339
  base64 += table[a3];
12333
- base64 += table[b];
12340
+ base64 += table[b2];
12334
12341
  base64 += table[c];
12335
12342
  base64 += table[d];
12336
12343
  }
@@ -12437,8 +12444,8 @@ async function waitForImportsToResolve() {
12437
12444
  await waitForImportsToResolve();
12438
12445
  }
12439
12446
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
12440
- function getDefaultExportFromCjs3(x) {
12441
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
12447
+ function getDefaultExportFromCjs3(x2) {
12448
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
12442
12449
  }
12443
12450
  var comma2 = ",".charCodeAt(0);
12444
12451
  var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@@ -12535,8 +12542,8 @@ function decode(mappings) {
12535
12542
  function sort(line) {
12536
12543
  line.sort(sortComparator$1);
12537
12544
  }
12538
- function sortComparator$1(a3, b) {
12539
- return a3[0] - b[0];
12545
+ function sortComparator$1(a3, b2) {
12546
+ return a3[0] - b2[0];
12540
12547
  }
12541
12548
  var schemeRegex = /^[\w+.-]+:\/\//;
12542
12549
  var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
@@ -12750,8 +12757,8 @@ function nextUnsortedSegmentLine(mappings, start) {
12750
12757
  return mappings.length;
12751
12758
  }
12752
12759
  function isSorted(line) {
12753
- for (let j = 1; j < line.length; j++) {
12754
- if (line[j][COLUMN] < line[j - 1][COLUMN]) {
12760
+ for (let j2 = 1; j2 < line.length; j2++) {
12761
+ if (line[j2][COLUMN] < line[j2 - 1][COLUMN]) {
12755
12762
  return false;
12756
12763
  }
12757
12764
  }
@@ -12762,8 +12769,8 @@ function sortSegments(line, owned) {
12762
12769
  line = line.slice();
12763
12770
  return line.sort(sortComparator);
12764
12771
  }
12765
- function sortComparator(a3, b) {
12766
- return a3[COLUMN] - b[COLUMN];
12772
+ function sortComparator(a3, b2) {
12773
+ return a3[COLUMN] - b2[COLUMN];
12767
12774
  }
12768
12775
  var found = false;
12769
12776
  function binarySearch(haystack, needle, low, high) {
@@ -12896,8 +12903,8 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
12896
12903
  return -1;
12897
12904
  return index2;
12898
12905
  }
12899
- function notNullish2(v) {
12900
- return v != null;
12906
+ function notNullish2(v2) {
12907
+ return v2 != null;
12901
12908
  }
12902
12909
  function isPrimitive3(value) {
12903
12910
  return value === null || typeof value !== "function" && typeof value !== "object";
@@ -13112,7 +13119,7 @@ function parseErrorStacktrace(e, options = {}) {
13112
13119
  }
13113
13120
  }
13114
13121
  if (options.frameFilter) {
13115
- stackFrames = stackFrames.filter((f3) => options.frameFilter(e, f3) !== false);
13122
+ stackFrames = stackFrames.filter((f4) => options.frameFilter(e, f4) !== false);
13116
13123
  }
13117
13124
  e.stacks = stackFrames;
13118
13125
  return stackFrames;
@@ -13132,8 +13139,8 @@ try {
13132
13139
  } catch (notNode) {
13133
13140
  }
13134
13141
  var { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = plugins;
13135
- function getDefaultExportFromCjs4(x) {
13136
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
13142
+ function getDefaultExportFromCjs4(x2) {
13143
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
13137
13144
  }
13138
13145
  var jsTokens_12;
13139
13146
  var hasRequiredJsTokens2;
@@ -13581,7 +13588,7 @@ var reservedWords2 = {
13581
13588
  };
13582
13589
  new Set(reservedWords2.keyword);
13583
13590
  new Set(reservedWords2.strict);
13584
- var f2 = {
13591
+ var f3 = {
13585
13592
  reset: [0, 0],
13586
13593
  bold: [1, 22, "\x1B[22m\x1B[1m"],
13587
13594
  dim: [2, 22, "\x1B[22m\x1B[2m"],
@@ -13624,7 +13631,7 @@ var f2 = {
13624
13631
  bgCyanBright: [106, 49],
13625
13632
  bgWhiteBright: [107, 49]
13626
13633
  };
13627
- var h2 = Object.entries(f2);
13634
+ var h3 = Object.entries(f3);
13628
13635
  function a2(n) {
13629
13636
  return String(n);
13630
13637
  }
@@ -13636,27 +13643,27 @@ function C2(n = false) {
13636
13643
  }
13637
13644
  function p2(n = false) {
13638
13645
  let e = C2(n), i = (r2, t, c, o) => {
13639
- let l = "", s2 = 0;
13646
+ let l2 = "", s2 = 0;
13640
13647
  do
13641
- l += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
13648
+ l2 += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
13642
13649
  while (~o);
13643
- return l + r2.substring(s2);
13650
+ return l2 + r2.substring(s2);
13644
13651
  }, g = (r2, t, c = r2) => {
13645
- let o = (l) => {
13646
- let s2 = String(l), b = s2.indexOf(t, r2.length);
13647
- return ~b ? r2 + i(s2, t, c, b) + t : r2 + s2 + t;
13652
+ let o = (l2) => {
13653
+ let s2 = String(l2), b2 = s2.indexOf(t, r2.length);
13654
+ return ~b2 ? r2 + i(s2, t, c, b2) + t : r2 + s2 + t;
13648
13655
  };
13649
13656
  return o.open = r2, o.close = t, o;
13650
- }, u2 = {
13657
+ }, u3 = {
13651
13658
  isColorSupported: e
13652
13659
  }, d = (r2) => `\x1B[${r2}m`;
13653
- for (let [r2, t] of h2)
13654
- u2[r2] = e ? g(
13660
+ for (let [r2, t] of h3)
13661
+ u3[r2] = e ? g(
13655
13662
  d(t[0]),
13656
13663
  d(t[1]),
13657
13664
  t[2]
13658
13665
  ) : a2;
13659
- return u2;
13666
+ return u3;
13660
13667
  }
13661
13668
  p2();
13662
13669
  var lineSplitRE = /\r?\n/;
@@ -13690,7 +13697,7 @@ function offsetToLineNumber(source, offset) {
13690
13697
  return line + 1;
13691
13698
  }
13692
13699
  async function saveInlineSnapshots(environment, snapshots) {
13693
- const MagicString = (await import("../magic-string.es-3WRPFX2A.js")).default;
13700
+ const MagicString = (await import("../magic-string.es-SDTMJBWP.js")).default;
13694
13701
  const files = new Set(snapshots.map((i) => i.file));
13695
13702
  await Promise.all(Array.from(files).map(async (file) => {
13696
13703
  const snaps = snapshots.filter((i) => i.file === file);
@@ -13841,7 +13848,7 @@ var hasRequiredNaturalCompare;
13841
13848
  function requireNaturalCompare() {
13842
13849
  if (hasRequiredNaturalCompare) return naturalCompare$1.exports;
13843
13850
  hasRequiredNaturalCompare = 1;
13844
- var naturalCompare2 = function(a3, b) {
13851
+ var naturalCompare2 = function(a3, b2) {
13845
13852
  var i, codeA, codeB = 1, posA = 0, posB = 0, alphabet = String.alphabet;
13846
13853
  function getCode(str, pos, code) {
13847
13854
  if (code) {
@@ -13851,12 +13858,12 @@ function requireNaturalCompare() {
13851
13858
  code = alphabet && alphabet.indexOf(str.charAt(pos));
13852
13859
  return code > -1 ? code + 76 : (code = str.charCodeAt(pos) || 0, code < 45 || code > 127) ? code : code < 46 ? 65 : code < 48 ? code - 1 : code < 58 ? code + 18 : code < 65 ? code - 11 : code < 91 ? code + 11 : code < 97 ? code - 37 : code < 123 ? code + 5 : code - 63;
13853
13860
  }
13854
- if ((a3 += "") != (b += "")) for (; codeB; ) {
13861
+ if ((a3 += "") != (b2 += "")) for (; codeB; ) {
13855
13862
  codeA = getCode(a3, posA++);
13856
- codeB = getCode(b, posB++);
13863
+ codeB = getCode(b2, posB++);
13857
13864
  if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
13858
13865
  codeA = getCode(a3, posA, posA);
13859
- codeB = getCode(b, posB, posA = i);
13866
+ codeB = getCode(b2, posB, posA = i);
13860
13867
  posB = i;
13861
13868
  }
13862
13869
  if (codeA != codeB) return codeA < codeB ? -1 : 1;
@@ -14047,14 +14054,14 @@ var CounterMap = class extends DefaultMap {
14047
14054
  return this._total;
14048
14055
  }
14049
14056
  let total = 0;
14050
- for (const x of this.values()) {
14051
- total += x;
14057
+ for (const x2 of this.values()) {
14058
+ total += x2;
14052
14059
  }
14053
14060
  return total;
14054
14061
  }
14055
14062
  };
14056
- function isSameStackPosition(x, y) {
14057
- return x.file === y.file && x.column === y.column && x.line === y.line;
14063
+ function isSameStackPosition(x2, y2) {
14064
+ return x2.file === y2.file && x2.column === y2.column && x2.line === y2.line;
14058
14065
  }
14059
14066
  var SnapshotState = class _SnapshotState {
14060
14067
  _counters = new CounterMap();
@@ -14469,7 +14476,7 @@ var SnapshotClient = class {
14469
14476
  var RealDate = Date;
14470
14477
  var now2 = null;
14471
14478
  var MockDate = class _MockDate extends RealDate {
14472
- constructor(y, m2, d, h3, M, s2, ms) {
14479
+ constructor(y2, m2, d, h4, M2, s2, ms) {
14473
14480
  super();
14474
14481
  let date;
14475
14482
  switch (arguments.length) {
@@ -14478,15 +14485,15 @@ var MockDate = class _MockDate extends RealDate {
14478
14485
  else date = new RealDate();
14479
14486
  break;
14480
14487
  case 1:
14481
- date = new RealDate(y);
14488
+ date = new RealDate(y2);
14482
14489
  break;
14483
14490
  default:
14484
14491
  d = typeof d === "undefined" ? 1 : d;
14485
- h3 = h3 || 0;
14486
- M = M || 0;
14492
+ h4 = h4 || 0;
14493
+ M2 = M2 || 0;
14487
14494
  s2 = s2 || 0;
14488
14495
  ms = ms || 0;
14489
- date = new RealDate(y, m2, d, h3, M, s2, ms);
14496
+ date = new RealDate(y2, m2, d, h4, M2, s2, ms);
14490
14497
  break;
14491
14498
  }
14492
14499
  Object.setPrototypeOf(date, _MockDate.prototype);
@@ -14882,11 +14889,11 @@ function createExpect(test5) {
14882
14889
  const expect2 = (value, message) => {
14883
14890
  const { assertionCalls } = getState(expect2);
14884
14891
  setState({ assertionCalls: assertionCalls + 1 }, expect2);
14885
- const assert4 = expect(value, message);
14892
+ const assert3 = expect(value, message);
14886
14893
  const _test2 = test5 || getCurrentTest();
14887
14894
  if (_test2)
14888
- return assert4.withTest(_test2);
14889
- else return assert4;
14895
+ return assert3.withTest(_test2);
14896
+ else return assert3;
14890
14897
  };
14891
14898
  Object.assign(expect2, expect);
14892
14899
  Object.assign(expect2, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);
@@ -14913,7 +14920,7 @@ function createExpect(test5) {
14913
14920
  };
14914
14921
  expect2.poll = createExpectPoll(expect2);
14915
14922
  expect2.unreachable = (message) => {
14916
- assert2.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
14923
+ assert.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
14917
14924
  };
14918
14925
  function assertions(expected) {
14919
14926
  const errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect2.getState().assertionCalls}`);
@@ -15030,10 +15037,10 @@ function requireCalledInOrder() {
15030
15037
  }
15031
15038
  return callMap[spy.id] < spy.callCount;
15032
15039
  }
15033
- function checkAdjacentCalls(callMap, spy, index2, spies2) {
15040
+ function checkAdjacentCalls(callMap, spy, index2, spies) {
15034
15041
  var calledBeforeNext = true;
15035
- if (index2 !== spies2.length - 1) {
15036
- calledBeforeNext = spy.calledBefore(spies2[index2 + 1]);
15042
+ if (index2 !== spies.length - 1) {
15043
+ calledBeforeNext = spy.calledBefore(spies[index2 + 1]);
15037
15044
  }
15038
15045
  if (hasCallsLeft(callMap, spy) && calledBeforeNext) {
15039
15046
  callMap[spy.id] += 1;
@@ -15041,9 +15048,9 @@ function requireCalledInOrder() {
15041
15048
  }
15042
15049
  return false;
15043
15050
  }
15044
- function calledInOrder(spies2) {
15051
+ function calledInOrder(spies) {
15045
15052
  var callMap = {};
15046
- var _spies = arguments.length > 1 ? arguments : spies2;
15053
+ var _spies = arguments.length > 1 ? arguments : spies;
15047
15054
  return every2(_spies, checkAdjacentCalls.bind(null, callMap));
15048
15055
  }
15049
15056
  calledInOrder_1 = calledInOrder;
@@ -15140,15 +15147,15 @@ function requireOrderByFirstCall() {
15140
15147
  hasRequiredOrderByFirstCall = 1;
15141
15148
  var sort2 = requireArray().sort;
15142
15149
  var slice = requireArray().slice;
15143
- function comparator(a3, b) {
15150
+ function comparator(a3, b2) {
15144
15151
  var aCall = a3.getCall(0);
15145
- var bCall = b.getCall(0);
15152
+ var bCall = b2.getCall(0);
15146
15153
  var aId = aCall && aCall.callId || -1;
15147
15154
  var bId = bCall && bCall.callId || -1;
15148
15155
  return aId < bId ? -1 : 1;
15149
15156
  }
15150
- function orderByFirstCall(spies2) {
15151
- return sort2(slice(spies2), comparator);
15157
+ function orderByFirstCall(spies) {
15158
+ return sort2(slice(spies), comparator);
15152
15159
  }
15153
15160
  orderByFirstCall_1 = orderByFirstCall;
15154
15161
  return orderByFirstCall_1;
@@ -15475,11 +15482,11 @@ function requireFakeTimersSrc() {
15475
15482
  return 0;
15476
15483
  }
15477
15484
  const strings = str.split(":");
15478
- const l = strings.length;
15479
- let i = l;
15485
+ const l2 = strings.length;
15486
+ let i = l2;
15480
15487
  let ms = 0;
15481
15488
  let parsed;
15482
- if (l > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
15489
+ if (l2 > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
15483
15490
  throw new Error(
15484
15491
  "tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits"
15485
15492
  );
@@ -15489,7 +15496,7 @@ function requireFakeTimersSrc() {
15489
15496
  if (parsed >= 60) {
15490
15497
  throw new Error(`Invalid time ${str}`);
15491
15498
  }
15492
- ms += parsed * Math.pow(60, l - i - 1);
15499
+ ms += parsed * Math.pow(60, l2 - i - 1);
15493
15500
  }
15494
15501
  return ms * 1e3;
15495
15502
  }
@@ -15728,29 +15735,29 @@ ${job.error.stack.split("\n").slice(matchedLineIndex + 1).join("\n")}`;
15728
15735
  }
15729
15736
  return timer.id;
15730
15737
  }
15731
- function compareTimers(a3, b) {
15732
- if (a3.callAt < b.callAt) {
15738
+ function compareTimers(a3, b2) {
15739
+ if (a3.callAt < b2.callAt) {
15733
15740
  return -1;
15734
15741
  }
15735
- if (a3.callAt > b.callAt) {
15742
+ if (a3.callAt > b2.callAt) {
15736
15743
  return 1;
15737
15744
  }
15738
- if (a3.immediate && !b.immediate) {
15745
+ if (a3.immediate && !b2.immediate) {
15739
15746
  return -1;
15740
15747
  }
15741
- if (!a3.immediate && b.immediate) {
15748
+ if (!a3.immediate && b2.immediate) {
15742
15749
  return 1;
15743
15750
  }
15744
- if (a3.createdAt < b.createdAt) {
15751
+ if (a3.createdAt < b2.createdAt) {
15745
15752
  return -1;
15746
15753
  }
15747
- if (a3.createdAt > b.createdAt) {
15754
+ if (a3.createdAt > b2.createdAt) {
15748
15755
  return 1;
15749
15756
  }
15750
- if (a3.id < b.id) {
15757
+ if (a3.id < b2.id) {
15751
15758
  return -1;
15752
15759
  }
15753
- if (a3.id > b.id) {
15760
+ if (a3.id > b2.id) {
15754
15761
  return 1;
15755
15762
  }
15756
15763
  }
@@ -15861,10 +15868,10 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15861
15868
  }
15862
15869
  }
15863
15870
  function uninstall(clock, config2) {
15864
- let method, i, l;
15871
+ let method, i, l2;
15865
15872
  const installedHrTime = "_hrtime";
15866
15873
  const installedNextTick = "_nextTick";
15867
- for (i = 0, l = clock.methods.length; i < l; i++) {
15874
+ for (i = 0, l2 = clock.methods.length; i < l2; i++) {
15868
15875
  method = clock.methods[i];
15869
15876
  if (method === "hrtime" && _global.process) {
15870
15877
  _global.process.hrtime = clock[installedHrTime];
@@ -15895,14 +15902,14 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15895
15902
  }
15896
15903
  }
15897
15904
  if (clock.timersModuleMethods !== void 0) {
15898
- for (let j = 0; j < clock.timersModuleMethods.length; j++) {
15899
- const entry = clock.timersModuleMethods[j];
15905
+ for (let j2 = 0; j2 < clock.timersModuleMethods.length; j2++) {
15906
+ const entry = clock.timersModuleMethods[j2];
15900
15907
  timersModule[entry.methodName] = entry.original;
15901
15908
  }
15902
15909
  }
15903
15910
  if (clock.timersPromisesModuleMethods !== void 0) {
15904
- for (let j = 0; j < clock.timersPromisesModuleMethods.length; j++) {
15905
- const entry = clock.timersPromisesModuleMethods[j];
15911
+ for (let j2 = 0; j2 < clock.timersPromisesModuleMethods.length; j2++) {
15912
+ const entry = clock.timersPromisesModuleMethods[j2];
15906
15913
  timersPromisesModule[entry.methodName] = entry.original;
15907
15914
  }
15908
15915
  }
@@ -16407,7 +16414,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
16407
16414
  });
16408
16415
  };
16409
16416
  }
16410
- clock.reset = function reset2() {
16417
+ clock.reset = function reset() {
16411
16418
  nanos = 0;
16412
16419
  clock.timers = {};
16413
16420
  clock.jobs = [];
@@ -16478,7 +16485,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
16478
16485
  `non-existent timers and/or objects cannot be faked: '${timer}'`
16479
16486
  );
16480
16487
  }
16481
- let i, l;
16488
+ let i, l2;
16482
16489
  const clock = createClock(config2.now, config2.loopLimit);
16483
16490
  clock.shouldClearNativeTimers = config2.shouldClearNativeTimers;
16484
16491
  clock.uninstall = function() {
@@ -16529,7 +16536,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
16529
16536
  if (_global === globalObject && timersPromisesModule) {
16530
16537
  clock.timersPromisesModuleMethods = [];
16531
16538
  }
16532
- for (i = 0, l = clock.methods.length; i < l; i++) {
16539
+ for (i = 0, l2 = clock.methods.length; i < l2; i++) {
16533
16540
  const nameOfMethodToReplace = clock.methods[i];
16534
16541
  if (!isPresent[nameOfMethodToReplace]) {
16535
16542
  handleMissingTimer(nameOfMethodToReplace);
@@ -17114,7 +17121,7 @@ function createVitest() {
17114
17121
  return item;
17115
17122
  },
17116
17123
  isMockFunction(fn2) {
17117
- return isMockFunction2(fn2);
17124
+ return isMockFunction(fn2);
17118
17125
  },
17119
17126
  clearAllMocks() {
17120
17127
  [...mocks].reverse().forEach((spy) => spy.mockClear());
@@ -17234,7 +17241,7 @@ ${[...generateDirectoryTree(children, indent)].join("\n")}
17234
17241
  c.fs.symlink(import_node_path.default.join(originalCwd, "..", "config"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "config"));
17235
17242
  };
17236
17243
  c.cli = (...input) => {
17237
- return (0, import_chunk_3UEKS5W6.execaNode)(import_node_path.default.join(originalCwd, "../cli/build/index.js"), input, {
17244
+ return (0, import_chunk_OJINGNLI.execaNode)(import_node_path.default.join(originalCwd, "../cli/build/index.js"), input, {
17238
17245
  cwd: c.fs.cwd(),
17239
17246
  stdio: "pipe",
17240
17247
  all: true
@@ -17242,7 +17249,7 @@ ${[...generateDirectoryTree(children, indent)].join("\n")}
17242
17249
  };
17243
17250
  c.printDir = (dir, extensions) => {
17244
17251
  const content = c.fs.list(dir) ?? [];
17245
- content.sort((a3, b) => a3.localeCompare(b));
17252
+ content.sort((a3, b2) => a3.localeCompare(b2));
17246
17253
  return content.filter((name) => extensions.includes(import_node_path.default.extname(name))).map((name) => `${name}:
17247
17254
 
17248
17255
  ${c.fs.read(import_node_path.default.join(dir, name))}`).join("\n\n");
@@ -17368,7 +17375,7 @@ var processExitContext = vitestProcessExitContext;
17368
17375
  * LICENSE file in the root directory of this source tree.
17369
17376
  *)
17370
17377
 
17371
- chai/chai.js:
17378
+ chai/index.js:
17372
17379
  (*!
17373
17380
  * Chai - flag utility
17374
17381
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>