@rstest/core 0.9.0 → 0.9.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.
Files changed (54) hide show
  1. package/LICENSE.md +2 -2
  2. package/dist/{0~89.js → 0~8843.js} +49 -33
  3. package/dist/{0~1472.js → 0~browserLoader.js} +5 -5
  4. package/dist/{0~7882.js → 0~browser~1.js} +46 -47
  5. package/dist/{0~8426.js → 0~checkThresholds.js} +2 -2
  6. package/dist/{0~130.js → 0~console.js} +15 -17
  7. package/dist/0~dist.js +1014 -0
  8. package/dist/{0~7583.js → 0~esm.js} +68 -70
  9. package/dist/{0~4403.js → 0~generate.js} +5 -6
  10. package/dist/{0~4809.js → 0~happyDom.js} +2 -2
  11. package/dist/{0~3346.js → 0~interop.js} +0 -1
  12. package/dist/{0~62.js → 0~jsdom.js} +2 -2
  13. package/dist/{0~262.js → 0~lib.js} +4 -1
  14. package/dist/{0~9634.js → 0~listTests.js} +14 -23
  15. package/dist/{0~6923.js → 0~loadEsModule.js} +16 -8
  16. package/dist/{0~5835.js → 0~loadModule.js} +27 -14
  17. package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
  18. package/dist/{0~2255.js → 0~plugin.js} +2 -4
  19. package/dist/{0~6588.js → 0~restart.js} +7 -11
  20. package/dist/{0~2173.js → 0~runTests.js} +27 -19
  21. package/dist/{487.js → 1255.js} +22 -15
  22. package/dist/{6151.js → 1949.js} +3027 -36
  23. package/dist/{6973.js → 255.js} +7 -8
  24. package/dist/{9131.js → 3145.js} +220 -486
  25. package/dist/{1157.js → 4411.js} +35 -35
  26. package/dist/{4484.js → 5040.js} +1 -2
  27. package/dist/{3160.js → 6830.js} +396 -93
  28. package/dist/7011.js +1 -1
  29. package/dist/{1294.js → 7552.js} +28 -22
  30. package/dist/{5734.js → 7704.js} +6 -5
  31. package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
  32. package/dist/browser-runtime/{389.js → 723.js} +3059 -80
  33. package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
  34. package/dist/browser-runtime/index.js +1 -1
  35. package/dist/browser-runtime/rslib-runtime.js +11 -3
  36. package/dist/browser.js +9 -7
  37. package/dist/globalSetupWorker.js +4 -13
  38. package/dist/index.d.ts +3 -0
  39. package/dist/index.js +2 -2
  40. package/dist/mockRuntimeCode.js +15 -9
  41. package/dist/rslib-runtime.js +5 -8
  42. package/dist/worker.js +23 -46
  43. package/package.json +12 -10
  44. package/dist/0~1240.js +0 -951
  45. package/dist/0~1981.js +0 -2
  46. package/dist/3160.js.LICENSE.txt +0 -21
  47. package/dist/4881.js +0 -2
  48. package/dist/6198.js +0 -2
  49. package/dist/721.js +0 -8
  50. /package/dist/{0~7583.js.LICENSE.txt → 0~esm.js.LICENSE.txt} +0 -0
  51. /package/dist/{0~3062.js → 0~utils.js} +0 -0
  52. /package/dist/{6151.js.LICENSE.txt → 1949.js.LICENSE.txt} +0 -0
  53. /package/dist/{4597.js → 1983.js} +0 -0
  54. /package/dist/{1294.js.LICENSE.txt → 7552.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- /*! For license information please see 389.js.LICENSE.txt */
1
+ /*! LICENSE: 723.js.LICENSE.txt */
2
2
  import { __webpack_require__ } from "./rslib-runtime.js";
3
3
  __webpack_require__.add({
4
4
  "../../node_modules/.pnpm/@jest+diff-sequences@30.0.1/node_modules/@jest/diff-sequences/build/index.js" (module) {
@@ -1655,9 +1655,9 @@ __webpack_require__.add({
1655
1655
  };
1656
1656
  }
1657
1657
  const defaultImplementation = withGlobal(globalObject);
1658
- defaultImplementation.timers;
1659
- defaultImplementation.createClock;
1660
- defaultImplementation.install;
1658
+ exports.timers = defaultImplementation.timers;
1659
+ exports.createClock = defaultImplementation.createClock;
1660
+ exports.install = defaultImplementation.install;
1661
1661
  exports.withGlobal = withGlobal;
1662
1662
  },
1663
1663
  "../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js" (module, __unused_rspack_exports, __webpack_require__) {
@@ -1914,8 +1914,7 @@ __webpack_require__.add({
1914
1914
  get: assembleStyles
1915
1915
  });
1916
1916
  },
1917
- "../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js" (module, exports, __webpack_require__) {
1918
- __webpack_require__.r(exports);
1917
+ "../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js" (module, __unused_rspack_exports, __webpack_require__) {
1919
1918
  module = __webpack_require__.nmd(module);
1920
1919
  const ANSI_BACKGROUND_OFFSET = 10;
1921
1920
  const wrapAnsi256 = (offset = 0)=>(code)=>`\u001B[${38 + offset};5;${code}m`;
@@ -3693,7 +3692,7 @@ __webpack_require__.add({
3693
3692
  returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
3694
3693
  endIndex = index + substringLength;
3695
3694
  index = string.indexOf(substring, endIndex);
3696
- }while (-1 !== index);
3695
+ }while (-1 !== index)
3697
3696
  returnValue += string.substr(endIndex);
3698
3697
  return returnValue;
3699
3698
  };
@@ -3705,7 +3704,7 @@ __webpack_require__.add({
3705
3704
  returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
3706
3705
  endIndex = index + 1;
3707
3706
  index = string.indexOf('\n', endIndex);
3708
- }while (-1 !== index);
3707
+ }while (-1 !== index)
3709
3708
  returnValue += string.substr(endIndex);
3710
3709
  return returnValue;
3711
3710
  };
@@ -7615,7 +7614,7 @@ __webpack_require__.add({
7615
7614
  exports.test = exports.serialize = exports["default"] = void 0;
7616
7615
  var _collections = __nested_rspack_require_5506_5525__("./src/collections.ts");
7617
7616
  var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
7618
- const asymmetricMatcher = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('jest.asymmetricMatcher') : 0x1357a5;
7617
+ const asymmetricMatcher = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('jest.asymmetricMatcher') : 0x13_57_a5;
7619
7618
  const SPACE = ' ';
7620
7619
  const serialize = (val, config, indentation, depth, refs, printer)=>{
7621
7620
  const stringedValue = val.toString();
@@ -7879,7 +7878,7 @@ __webpack_require__.add({
7879
7878
  exports.test = exports.serialize = exports["default"] = void 0;
7880
7879
  var _markup = __nested_rspack_require_20800_20819__("./src/plugins/lib/markup.ts");
7881
7880
  var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
7882
- const testSymbol = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('react.test.json') : 0xea71357;
7881
+ const testSymbol = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('react.test.json') : 0xe_a7_13_57;
7883
7882
  const getPropKeys = (object)=>{
7884
7883
  const { props } = object;
7885
7884
  return props ? Object.keys(props).filter((key)=>void 0 !== props[key]).sort() : [];
@@ -9815,7 +9814,7 @@ function chunk_BVHSVHOK_p(n = !1) {
9815
9814
  let e = chunk_BVHSVHOK_C(n), i = (r, t, c, o)=>{
9816
9815
  let l = "", s = 0;
9817
9816
  do l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
9818
- while (~o);
9817
+ while (~o)
9819
9818
  return l + r.substring(s);
9820
9819
  }, g = (r, t, c = r)=>{
9821
9820
  let o = (l)=>{
@@ -17877,16 +17876,25 @@ const JestExtend = (chai, utils)=>{
17877
17876
  use(JestExtendPlugin(chai, expect, expects));
17878
17877
  });
17879
17878
  };
17880
- const browser = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
17881
- const browser_0 = __webpack_require__("../../node_modules/.pnpm/os-browserify@0.3.0/node_modules/os-browserify/browser.js");
17879
+ const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
17880
+ const process_browser = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
17881
+ const browser = __webpack_require__("../../node_modules/.pnpm/os-browserify@0.3.0/node_modules/os-browserify/browser.js");
17882
17882
  const tty_browserify = __webpack_require__("../../node_modules/.pnpm/tty-browserify@0.0.1/node_modules/tty-browserify/index.js");
17883
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : browser.argv) {
17883
+ const createStyler = (style)=>(text)=>(0, util_util.styleText)(style, String(text));
17884
+ const bold = createStyler('bold');
17885
+ const red = createStyler('red');
17886
+ const green = createStyler('green');
17887
+ const yellow = createStyler('yellow');
17888
+ const magenta = createStyler('magenta');
17889
+ const cyan = createStyler('cyan');
17890
+ const gray = createStyler('gray');
17891
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process_browser.argv) {
17884
17892
  const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
17885
17893
  const position = argv.indexOf(prefix + flag);
17886
17894
  const terminatorPosition = argv.indexOf('--');
17887
17895
  return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
17888
17896
  }
17889
- const { env: env } = browser;
17897
+ const { env: env } = process_browser;
17890
17898
  let flagForceColor;
17891
17899
  if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) flagForceColor = 0;
17892
17900
  else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) flagForceColor = 1;
@@ -17926,8 +17934,8 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
17926
17934
  if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
17927
17935
  const min = forceColor || 0;
17928
17936
  if ('dumb' === env.TERM) return min;
17929
- if ('win32' === browser.platform) {
17930
- const osRelease = browser_0.release().split('.');
17937
+ if ('win32' === process_browser.platform) {
17938
+ const osRelease = browser.release().split('.');
17931
17939
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
17932
17940
  return 1;
17933
17941
  }
@@ -17986,24 +17994,6 @@ let errorStackRegExp = /at [^\r\n]{0,200}:\d+:\d+[\s\)]*$/;
17986
17994
  let anonymousErrorStackRegExp = /at [^\r\n]{0,200}\(<anonymous>\)$/;
17987
17995
  let indexErrorStackRegExp = /at [^\r\n]{0,200}\(index\s\d+\)$/;
17988
17996
  let isErrorStackMessage = (message)=>errorStackRegExp.test(message) || anonymousErrorStackRegExp.test(message) || indexErrorStackRegExp.test(message);
17989
- let formatter = (open, close, replace = open)=>colorLevel >= 2 ? (input)=>{
17990
- let string = '' + input;
17991
- let index = string.indexOf(close, open.length);
17992
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
17993
- } : String;
17994
- let replaceClose = (string, close, replace, index)=>{
17995
- let start = string.substring(0, index) + replace;
17996
- let end = string.substring(index + close.length);
17997
- let nextIndex = end.indexOf(close);
17998
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
17999
- };
18000
- const bold = formatter('\x1b[1m', '\x1b[22m', '\x1b[22m\x1b[1m');
18001
- const red = formatter('\x1b[31m', '\x1b[39m');
18002
- const green = formatter('\x1b[32m', '\x1b[39m');
18003
- const yellow = formatter('\x1b[33m', '\x1b[39m');
18004
- const magenta = formatter('\x1b[35m', '\x1b[39m');
18005
- const cyan = formatter('\x1b[36m', '\x1b[39m');
18006
- const gray = formatter('\x1b[90m', '\x1b[39m');
18007
17997
  let startColor = [
18008
17998
  189,
18009
17999
  255,
@@ -18185,22 +18175,3015 @@ const castArray = (arr)=>{
18185
18175
  const getTaskNames = (test)=>(test.parentNames || []).concat(test.name).filter(Boolean);
18186
18176
  const getTaskNameWithPrefix = (test, delimiter = ">")=>getTaskNames(test).join(delimiter ? ` ${delimiter} ` : ' ');
18187
18177
  void 0 !== helper_process && helper_process.versions?.deno;
18188
- const build_0 = __webpack_require__("../../node_modules/.pnpm/jest-diff@30.2.0/node_modules/jest-diff/build/index.js");
18189
- build_0.DIFF_DELETE;
18190
- build_0.DIFF_EQUAL;
18191
- build_0.DIFF_INSERT;
18192
- build_0.Diff;
18193
- const build_diff = build_0.diff;
18194
- build_0.diffLinesRaw;
18195
- build_0.diffLinesUnified;
18196
- build_0.diffLinesUnified2;
18197
- build_0.diffStringsRaw;
18198
- build_0.diffStringsUnified;
18199
- const build_1 = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.2.0/node_modules/pretty-format/build/index.js");
18200
- build_1.DEFAULT_OPTIONS;
18201
- const build_format = build_1.format;
18202
- const build_plugins = build_1.plugins;
18203
- build_1["default"];
18178
+ var node_modules_chai_Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
18179
+ var chai_defProp = Object.defineProperty;
18180
+ var __defNormalProp = (obj, key, value)=>key in obj ? chai_defProp(obj, key, {
18181
+ enumerable: true,
18182
+ configurable: true,
18183
+ writable: true,
18184
+ value
18185
+ }) : obj[key] = value;
18186
+ var chai_name = (target, value)=>chai_defProp(target, "name", {
18187
+ value,
18188
+ configurable: true
18189
+ });
18190
+ var chai_export = (target, all)=>{
18191
+ for(var name in all)chai_defProp(target, name, {
18192
+ get: all[name],
18193
+ enumerable: true
18194
+ });
18195
+ };
18196
+ var __publicField = (obj, key, value)=>__defNormalProp(obj, "symbol" != typeof key ? key + "" : key, value);
18197
+ var chai_utils_exports = {};
18198
+ chai_export(chai_utils_exports, {
18199
+ addChainableMethod: ()=>chai_addChainableMethod,
18200
+ addLengthGuard: ()=>chai_addLengthGuard,
18201
+ addMethod: ()=>node_modules_chai_addMethod,
18202
+ addProperty: ()=>chai_addProperty,
18203
+ checkError: ()=>chai_check_error_exports,
18204
+ compareByInspect: ()=>chai_compareByInspect,
18205
+ eql: ()=>chai_deep_eql_default,
18206
+ events: ()=>events,
18207
+ expectTypes: ()=>chai_expectTypes,
18208
+ flag: ()=>node_modules_chai_flag,
18209
+ getActual: ()=>chai_getActual,
18210
+ getMessage: ()=>chai_getMessage2,
18211
+ getName: ()=>chai_getName,
18212
+ getOperator: ()=>chai_getOperator,
18213
+ getOwnEnumerableProperties: ()=>chai_getOwnEnumerableProperties,
18214
+ getOwnEnumerablePropertySymbols: ()=>chai_getOwnEnumerablePropertySymbols,
18215
+ getPathInfo: ()=>chai_getPathInfo,
18216
+ hasProperty: ()=>chai_hasProperty,
18217
+ inspect: ()=>chai_inspect2,
18218
+ isNaN: ()=>chai_isNaN2,
18219
+ isNumeric: ()=>chai_isNumeric,
18220
+ isProxyEnabled: ()=>chai_isProxyEnabled,
18221
+ isRegExp: ()=>chai_isRegExp2,
18222
+ objDisplay: ()=>node_modules_chai_objDisplay,
18223
+ overwriteChainableMethod: ()=>chai_overwriteChainableMethod,
18224
+ overwriteMethod: ()=>chai_overwriteMethod,
18225
+ overwriteProperty: ()=>chai_overwriteProperty,
18226
+ proxify: ()=>chai_proxify,
18227
+ test: ()=>node_modules_chai_test,
18228
+ transferFlags: ()=>chai_transferFlags,
18229
+ type: ()=>node_modules_chai_type
18230
+ });
18231
+ var chai_check_error_exports = {};
18232
+ chai_export(chai_check_error_exports, {
18233
+ compatibleConstructor: ()=>chai_compatibleConstructor,
18234
+ compatibleInstance: ()=>chai_compatibleInstance,
18235
+ compatibleMessage: ()=>chai_compatibleMessage,
18236
+ getConstructorName: ()=>node_modules_chai_getConstructorName,
18237
+ getMessage: ()=>chai_getMessage
18238
+ });
18239
+ function chai_isErrorInstance(obj) {
18240
+ return obj instanceof Error || "[object Error]" === Object.prototype.toString.call(obj);
18241
+ }
18242
+ chai_name(chai_isErrorInstance, "isErrorInstance");
18243
+ function chai_isRegExp(obj) {
18244
+ return "[object RegExp]" === Object.prototype.toString.call(obj);
18245
+ }
18246
+ chai_name(chai_isRegExp, "isRegExp");
18247
+ function chai_compatibleInstance(thrown, errorLike) {
18248
+ return chai_isErrorInstance(errorLike) && thrown === errorLike;
18249
+ }
18250
+ chai_name(chai_compatibleInstance, "compatibleInstance");
18251
+ function chai_compatibleConstructor(thrown, errorLike) {
18252
+ if (chai_isErrorInstance(errorLike)) return thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor;
18253
+ if (("object" == typeof errorLike || "function" == typeof errorLike) && errorLike.prototype) return thrown.constructor === errorLike || thrown instanceof errorLike;
18254
+ return false;
18255
+ }
18256
+ chai_name(chai_compatibleConstructor, "compatibleConstructor");
18257
+ function chai_compatibleMessage(thrown, errMatcher) {
18258
+ const comparisonString = "string" == typeof thrown ? thrown : thrown.message;
18259
+ if (chai_isRegExp(errMatcher)) return errMatcher.test(comparisonString);
18260
+ if ("string" == typeof errMatcher) return -1 !== comparisonString.indexOf(errMatcher);
18261
+ return false;
18262
+ }
18263
+ chai_name(chai_compatibleMessage, "compatibleMessage");
18264
+ function node_modules_chai_getConstructorName(errorLike) {
18265
+ let constructorName = errorLike;
18266
+ if (chai_isErrorInstance(errorLike)) constructorName = errorLike.constructor.name;
18267
+ else if ("function" == typeof errorLike) {
18268
+ constructorName = errorLike.name;
18269
+ if ("" === constructorName) {
18270
+ const newConstructorName = new errorLike().name;
18271
+ constructorName = newConstructorName || constructorName;
18272
+ }
18273
+ }
18274
+ return constructorName;
18275
+ }
18276
+ chai_name(node_modules_chai_getConstructorName, "getConstructorName");
18277
+ function chai_getMessage(errorLike) {
18278
+ let msg = "";
18279
+ if (errorLike && errorLike.message) msg = errorLike.message;
18280
+ else if ("string" == typeof errorLike) msg = errorLike;
18281
+ return msg;
18282
+ }
18283
+ chai_name(chai_getMessage, "getMessage");
18284
+ function node_modules_chai_flag(obj, key, value) {
18285
+ let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
18286
+ if (3 !== arguments.length) return flags[key];
18287
+ flags[key] = value;
18288
+ }
18289
+ chai_name(node_modules_chai_flag, "flag");
18290
+ function node_modules_chai_test(obj, args) {
18291
+ let negate = node_modules_chai_flag(obj, "negate"), expr = args[0];
18292
+ return negate ? !expr : expr;
18293
+ }
18294
+ chai_name(node_modules_chai_test, "test");
18295
+ function node_modules_chai_type(obj) {
18296
+ if (void 0 === obj) return "undefined";
18297
+ if (null === obj) return "null";
18298
+ const stringTag = obj[Symbol.toStringTag];
18299
+ if ("string" == typeof stringTag) return stringTag;
18300
+ const type3 = Object.prototype.toString.call(obj).slice(8, -1);
18301
+ return type3;
18302
+ }
18303
+ chai_name(node_modules_chai_type, "type");
18304
+ var chai_canElideFrames = "captureStackTrace" in Error;
18305
+ var node_modules_chai_AssertionError = class _AssertionError extends Error {
18306
+ constructor(message = "Unspecified AssertionError", props, ssf){
18307
+ super(message);
18308
+ __publicField(this, "message");
18309
+ this.message = message;
18310
+ if (chai_canElideFrames) Error.captureStackTrace(this, ssf || _AssertionError);
18311
+ for(const key in props)if (!(key in this)) this[key] = props[key];
18312
+ }
18313
+ get name() {
18314
+ return "AssertionError";
18315
+ }
18316
+ get ok() {
18317
+ return false;
18318
+ }
18319
+ toJSON(stack) {
18320
+ return {
18321
+ ...this,
18322
+ name: this.name,
18323
+ message: this.message,
18324
+ ok: false,
18325
+ stack: false !== stack ? this.stack : void 0
18326
+ };
18327
+ }
18328
+ };
18329
+ chai_name(node_modules_chai_AssertionError, "AssertionError");
18330
+ var chai_6_2_2_node_modules_chai_AssertionError = node_modules_chai_AssertionError;
18331
+ function chai_expectTypes(obj, types) {
18332
+ let flagMsg = node_modules_chai_flag(obj, "message");
18333
+ let ssfi = node_modules_chai_flag(obj, "ssfi");
18334
+ flagMsg = flagMsg ? flagMsg + ": " : "";
18335
+ obj = node_modules_chai_flag(obj, "object");
18336
+ types = types.map(function(t) {
18337
+ return t.toLowerCase();
18338
+ });
18339
+ types.sort();
18340
+ let str = types.map(function(t, index) {
18341
+ let art = ~[
18342
+ "a",
18343
+ "e",
18344
+ "i",
18345
+ "o",
18346
+ "u"
18347
+ ].indexOf(t.charAt(0)) ? "an" : "a";
18348
+ let or = types.length > 1 && index === types.length - 1 ? "or " : "";
18349
+ return or + art + " " + t;
18350
+ }).join(", ");
18351
+ let objType = node_modules_chai_type(obj).toLowerCase();
18352
+ if (!types.some(function(expected) {
18353
+ return objType === expected;
18354
+ })) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "object tested must be " + str + ", but " + objType + " given", void 0, ssfi);
18355
+ }
18356
+ chai_name(chai_expectTypes, "expectTypes");
18357
+ function chai_getActual(obj, args) {
18358
+ return args.length > 4 ? args[4] : obj._obj;
18359
+ }
18360
+ chai_name(chai_getActual, "getActual");
18361
+ var node_modules_chai_ansiColors = {
18362
+ bold: [
18363
+ "1",
18364
+ "22"
18365
+ ],
18366
+ dim: [
18367
+ "2",
18368
+ "22"
18369
+ ],
18370
+ italic: [
18371
+ "3",
18372
+ "23"
18373
+ ],
18374
+ underline: [
18375
+ "4",
18376
+ "24"
18377
+ ],
18378
+ inverse: [
18379
+ "7",
18380
+ "27"
18381
+ ],
18382
+ hidden: [
18383
+ "8",
18384
+ "28"
18385
+ ],
18386
+ strike: [
18387
+ "9",
18388
+ "29"
18389
+ ],
18390
+ black: [
18391
+ "30",
18392
+ "39"
18393
+ ],
18394
+ red: [
18395
+ "31",
18396
+ "39"
18397
+ ],
18398
+ green: [
18399
+ "32",
18400
+ "39"
18401
+ ],
18402
+ yellow: [
18403
+ "33",
18404
+ "39"
18405
+ ],
18406
+ blue: [
18407
+ "34",
18408
+ "39"
18409
+ ],
18410
+ magenta: [
18411
+ "35",
18412
+ "39"
18413
+ ],
18414
+ cyan: [
18415
+ "36",
18416
+ "39"
18417
+ ],
18418
+ white: [
18419
+ "37",
18420
+ "39"
18421
+ ],
18422
+ brightblack: [
18423
+ "30;1",
18424
+ "39"
18425
+ ],
18426
+ brightred: [
18427
+ "31;1",
18428
+ "39"
18429
+ ],
18430
+ brightgreen: [
18431
+ "32;1",
18432
+ "39"
18433
+ ],
18434
+ brightyellow: [
18435
+ "33;1",
18436
+ "39"
18437
+ ],
18438
+ brightblue: [
18439
+ "34;1",
18440
+ "39"
18441
+ ],
18442
+ brightmagenta: [
18443
+ "35;1",
18444
+ "39"
18445
+ ],
18446
+ brightcyan: [
18447
+ "36;1",
18448
+ "39"
18449
+ ],
18450
+ brightwhite: [
18451
+ "37;1",
18452
+ "39"
18453
+ ],
18454
+ grey: [
18455
+ "90",
18456
+ "39"
18457
+ ]
18458
+ };
18459
+ var node_modules_chai_styles = {
18460
+ special: "cyan",
18461
+ number: "yellow",
18462
+ bigint: "yellow",
18463
+ boolean: "yellow",
18464
+ undefined: "grey",
18465
+ null: "bold",
18466
+ string: "green",
18467
+ symbol: "green",
18468
+ date: "magenta",
18469
+ regexp: "red"
18470
+ };
18471
+ var node_modules_chai_truncator = "\u2026";
18472
+ function node_modules_chai_colorise(value, styleType) {
18473
+ const color = node_modules_chai_ansiColors[node_modules_chai_styles[styleType]] || node_modules_chai_ansiColors[styleType] || "";
18474
+ if (!color) return String(value);
18475
+ return `\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`;
18476
+ }
18477
+ chai_name(node_modules_chai_colorise, "colorise");
18478
+ function node_modules_chai_normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = 1 / 0, breakLength = 1 / 0, seen = [], truncate: truncate2 = 1 / 0, stylize = String } = {}, inspect3) {
18479
+ const options = {
18480
+ showHidden: Boolean(showHidden),
18481
+ depth: Number(depth),
18482
+ colors: Boolean(colors),
18483
+ customInspect: Boolean(customInspect),
18484
+ showProxy: Boolean(showProxy),
18485
+ maxArrayLength: Number(maxArrayLength),
18486
+ breakLength: Number(breakLength),
18487
+ truncate: Number(truncate2),
18488
+ seen,
18489
+ inspect: inspect3,
18490
+ stylize
18491
+ };
18492
+ if (options.colors) options.stylize = node_modules_chai_colorise;
18493
+ return options;
18494
+ }
18495
+ chai_name(node_modules_chai_normaliseOptions, "normaliseOptions");
18496
+ function node_modules_chai_isHighSurrogate(char) {
18497
+ return char >= "\uD800" && char <= "\uDBFF";
18498
+ }
18499
+ chai_name(node_modules_chai_isHighSurrogate, "isHighSurrogate");
18500
+ function node_modules_chai_truncate(string, length, tail = node_modules_chai_truncator) {
18501
+ string = String(string);
18502
+ const tailLength = tail.length;
18503
+ const stringLength = string.length;
18504
+ if (tailLength > length && stringLength > tailLength) return tail;
18505
+ if (stringLength > length && stringLength > tailLength) {
18506
+ let end = length - tailLength;
18507
+ if (end > 0 && node_modules_chai_isHighSurrogate(string[end - 1])) end -= 1;
18508
+ return `${string.slice(0, end)}${tail}`;
18509
+ }
18510
+ return string;
18511
+ }
18512
+ chai_name(node_modules_chai_truncate, "truncate");
18513
+ function node_modules_chai_inspectList(list, options, inspectItem, separator = ", ") {
18514
+ inspectItem = inspectItem || options.inspect;
18515
+ const size = list.length;
18516
+ if (0 === size) return "";
18517
+ const originalLength = options.truncate;
18518
+ let output = "";
18519
+ let peek = "";
18520
+ let truncated = "";
18521
+ for(let i = 0; i < size; i += 1){
18522
+ const last = i + 1 === list.length;
18523
+ const secondToLast = i + 2 === list.length;
18524
+ truncated = `${node_modules_chai_truncator}(${list.length - i})`;
18525
+ const value = list[i];
18526
+ options.truncate = originalLength - output.length - (last ? 0 : separator.length);
18527
+ const string = peek || inspectItem(value, options) + (last ? "" : separator);
18528
+ const nextLength = output.length + string.length;
18529
+ const truncatedLength = nextLength + truncated.length;
18530
+ if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) break;
18531
+ if (!last && !secondToLast && truncatedLength > originalLength) break;
18532
+ peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);
18533
+ if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) break;
18534
+ output += string;
18535
+ if (!last && !secondToLast && nextLength + peek.length >= originalLength) {
18536
+ truncated = `${node_modules_chai_truncator}(${list.length - i - 1})`;
18537
+ break;
18538
+ }
18539
+ truncated = "";
18540
+ }
18541
+ return `${output}${truncated}`;
18542
+ }
18543
+ chai_name(node_modules_chai_inspectList, "inspectList");
18544
+ function node_modules_chai_quoteComplexKey(key) {
18545
+ if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) return key;
18546
+ return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
18547
+ }
18548
+ chai_name(node_modules_chai_quoteComplexKey, "quoteComplexKey");
18549
+ function node_modules_chai_inspectProperty([key, value], options) {
18550
+ options.truncate -= 2;
18551
+ if ("string" == typeof key) key = node_modules_chai_quoteComplexKey(key);
18552
+ else if ("number" != typeof key) key = `[${options.inspect(key, options)}]`;
18553
+ options.truncate -= key.length;
18554
+ value = options.inspect(value, options);
18555
+ return `${key}: ${value}`;
18556
+ }
18557
+ chai_name(node_modules_chai_inspectProperty, "inspectProperty");
18558
+ function node_modules_chai_inspectArray(array, options) {
18559
+ const nonIndexProperties = Object.keys(array).slice(array.length);
18560
+ if (!array.length && !nonIndexProperties.length) return "[]";
18561
+ options.truncate -= 4;
18562
+ const listContents = node_modules_chai_inspectList(array, options);
18563
+ options.truncate -= listContents.length;
18564
+ let propertyContents = "";
18565
+ if (nonIndexProperties.length) propertyContents = node_modules_chai_inspectList(nonIndexProperties.map((key)=>[
18566
+ key,
18567
+ array[key]
18568
+ ]), options, node_modules_chai_inspectProperty);
18569
+ return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
18570
+ }
18571
+ chai_name(node_modules_chai_inspectArray, "inspectArray");
18572
+ var node_modules_chai_getArrayName = /* @__PURE__ */ chai_name((array)=>{
18573
+ if ("function" == typeof node_modules_chai_Buffer && array instanceof node_modules_chai_Buffer) return "Buffer";
18574
+ if (array[Symbol.toStringTag]) return array[Symbol.toStringTag];
18575
+ return array.constructor.name;
18576
+ }, "getArrayName");
18577
+ function node_modules_chai_inspectTypedArray(array, options) {
18578
+ const name = node_modules_chai_getArrayName(array);
18579
+ options.truncate -= name.length + 4;
18580
+ const nonIndexProperties = Object.keys(array).slice(array.length);
18581
+ if (!array.length && !nonIndexProperties.length) return `${name}[]`;
18582
+ let output = "";
18583
+ for(let i = 0; i < array.length; i++){
18584
+ const string = `${options.stylize(node_modules_chai_truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
18585
+ options.truncate -= string.length;
18586
+ if (array[i] !== array.length && options.truncate <= 3) {
18587
+ output += `${node_modules_chai_truncator}(${array.length - array[i] + 1})`;
18588
+ break;
18589
+ }
18590
+ output += string;
18591
+ }
18592
+ let propertyContents = "";
18593
+ if (nonIndexProperties.length) propertyContents = node_modules_chai_inspectList(nonIndexProperties.map((key)=>[
18594
+ key,
18595
+ array[key]
18596
+ ]), options, node_modules_chai_inspectProperty);
18597
+ return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
18598
+ }
18599
+ chai_name(node_modules_chai_inspectTypedArray, "inspectTypedArray");
18600
+ function node_modules_chai_inspectDate(dateObject, options) {
18601
+ const stringRepresentation = dateObject.toJSON();
18602
+ if (null === stringRepresentation) return "Invalid Date";
18603
+ const split = stringRepresentation.split("T");
18604
+ const date = split[0];
18605
+ return options.stylize(`${date}T${node_modules_chai_truncate(split[1], options.truncate - date.length - 1)}`, "date");
18606
+ }
18607
+ chai_name(node_modules_chai_inspectDate, "inspectDate");
18608
+ function node_modules_chai_inspectFunction(func, options) {
18609
+ const functionType = func[Symbol.toStringTag] || "Function";
18610
+ const name = func.name;
18611
+ if (!name) return options.stylize(`[${functionType}]`, "special");
18612
+ return options.stylize(`[${functionType} ${node_modules_chai_truncate(name, options.truncate - 11)}]`, "special");
18613
+ }
18614
+ chai_name(node_modules_chai_inspectFunction, "inspectFunction");
18615
+ function node_modules_chai_inspectMapEntry([key, value], options) {
18616
+ options.truncate -= 4;
18617
+ key = options.inspect(key, options);
18618
+ options.truncate -= key.length;
18619
+ value = options.inspect(value, options);
18620
+ return `${key} => ${value}`;
18621
+ }
18622
+ chai_name(node_modules_chai_inspectMapEntry, "inspectMapEntry");
18623
+ function node_modules_chai_mapToEntries(map) {
18624
+ const entries = [];
18625
+ map.forEach((value, key)=>{
18626
+ entries.push([
18627
+ key,
18628
+ value
18629
+ ]);
18630
+ });
18631
+ return entries;
18632
+ }
18633
+ chai_name(node_modules_chai_mapToEntries, "mapToEntries");
18634
+ function node_modules_chai_inspectMap(map, options) {
18635
+ if (0 === map.size) return "Map{}";
18636
+ options.truncate -= 7;
18637
+ return `Map{ ${node_modules_chai_inspectList(node_modules_chai_mapToEntries(map), options, node_modules_chai_inspectMapEntry)} }`;
18638
+ }
18639
+ chai_name(node_modules_chai_inspectMap, "inspectMap");
18640
+ var node_modules_chai_isNaN = Number.isNaN || ((i)=>i !== i);
18641
+ function node_modules_chai_inspectNumber(number, options) {
18642
+ if (node_modules_chai_isNaN(number)) return options.stylize("NaN", "number");
18643
+ if (number === 1 / 0) return options.stylize("Infinity", "number");
18644
+ if (number === -1 / 0) return options.stylize("-Infinity", "number");
18645
+ if (0 === number) return options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number");
18646
+ return options.stylize(node_modules_chai_truncate(String(number), options.truncate), "number");
18647
+ }
18648
+ chai_name(node_modules_chai_inspectNumber, "inspectNumber");
18649
+ function node_modules_chai_inspectBigInt(number, options) {
18650
+ let nums = node_modules_chai_truncate(number.toString(), options.truncate - 1);
18651
+ if (nums !== node_modules_chai_truncator) nums += "n";
18652
+ return options.stylize(nums, "bigint");
18653
+ }
18654
+ chai_name(node_modules_chai_inspectBigInt, "inspectBigInt");
18655
+ function node_modules_chai_inspectRegExp(value, options) {
18656
+ const flags = value.toString().split("/")[2];
18657
+ const sourceLength = options.truncate - (2 + flags.length);
18658
+ const source = value.source;
18659
+ return options.stylize(`/${node_modules_chai_truncate(source, sourceLength)}/${flags}`, "regexp");
18660
+ }
18661
+ chai_name(node_modules_chai_inspectRegExp, "inspectRegExp");
18662
+ function node_modules_chai_arrayFromSet(set2) {
18663
+ const values = [];
18664
+ set2.forEach((value)=>{
18665
+ values.push(value);
18666
+ });
18667
+ return values;
18668
+ }
18669
+ chai_name(node_modules_chai_arrayFromSet, "arrayFromSet");
18670
+ function node_modules_chai_inspectSet(set2, options) {
18671
+ if (0 === set2.size) return "Set{}";
18672
+ options.truncate -= 7;
18673
+ return `Set{ ${node_modules_chai_inspectList(node_modules_chai_arrayFromSet(set2), options)} }`;
18674
+ }
18675
+ chai_name(node_modules_chai_inspectSet, "inspectSet");
18676
+ var node_modules_chai_stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
18677
+ var node_modules_chai_escapeCharacters = {
18678
+ "\b": "\\b",
18679
+ " ": "\\t",
18680
+ "\n": "\\n",
18681
+ "\f": "\\f",
18682
+ "\r": "\\r",
18683
+ "'": "\\'",
18684
+ "\\": "\\\\"
18685
+ };
18686
+ var node_modules_chai_hex = 16;
18687
+ var node_modules_chai_unicodeLength = 4;
18688
+ function node_modules_chai_escape(char) {
18689
+ return node_modules_chai_escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(node_modules_chai_hex)}`.slice(-node_modules_chai_unicodeLength)}`;
18690
+ }
18691
+ chai_name(node_modules_chai_escape, "escape");
18692
+ function node_modules_chai_inspectString(string, options) {
18693
+ if (node_modules_chai_stringEscapeChars.test(string)) string = string.replace(node_modules_chai_stringEscapeChars, node_modules_chai_escape);
18694
+ return options.stylize(`'${node_modules_chai_truncate(string, options.truncate - 2)}'`, "string");
18695
+ }
18696
+ chai_name(node_modules_chai_inspectString, "inspectString");
18697
+ function node_modules_chai_inspectSymbol(value) {
18698
+ if ("description" in Symbol.prototype) return value.description ? `Symbol(${value.description})` : "Symbol()";
18699
+ return value.toString();
18700
+ }
18701
+ chai_name(node_modules_chai_inspectSymbol, "inspectSymbol");
18702
+ var node_modules_chai_getPromiseValue = /* @__PURE__ */ chai_name(()=>"Promise{\u2026}", "getPromiseValue");
18703
+ var chai_promise_default = node_modules_chai_getPromiseValue;
18704
+ function node_modules_chai_inspectObject(object, options) {
18705
+ const properties = Object.getOwnPropertyNames(object);
18706
+ const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
18707
+ if (0 === properties.length && 0 === symbols.length) return "{}";
18708
+ options.truncate -= 4;
18709
+ options.seen = options.seen || [];
18710
+ if (options.seen.includes(object)) return "[Circular]";
18711
+ options.seen.push(object);
18712
+ const propertyContents = node_modules_chai_inspectList(properties.map((key)=>[
18713
+ key,
18714
+ object[key]
18715
+ ]), options, node_modules_chai_inspectProperty);
18716
+ const symbolContents = node_modules_chai_inspectList(symbols.map((key)=>[
18717
+ key,
18718
+ object[key]
18719
+ ]), options, node_modules_chai_inspectProperty);
18720
+ options.seen.pop();
18721
+ let sep = "";
18722
+ if (propertyContents && symbolContents) sep = ", ";
18723
+ return `{ ${propertyContents}${sep}${symbolContents} }`;
18724
+ }
18725
+ chai_name(node_modules_chai_inspectObject, "inspectObject");
18726
+ var node_modules_chai_toStringTag = "u" > typeof Symbol && Symbol.toStringTag ? Symbol.toStringTag : false;
18727
+ function node_modules_chai_inspectClass(value, options) {
18728
+ let name = "";
18729
+ if (node_modules_chai_toStringTag && node_modules_chai_toStringTag in value) name = value[node_modules_chai_toStringTag];
18730
+ name = name || value.constructor.name;
18731
+ if (!name || "_class" === name) name = "<Anonymous Class>";
18732
+ options.truncate -= name.length;
18733
+ return `${name}${node_modules_chai_inspectObject(value, options)}`;
18734
+ }
18735
+ chai_name(node_modules_chai_inspectClass, "inspectClass");
18736
+ function node_modules_chai_inspectArguments(args, options) {
18737
+ if (0 === args.length) return "Arguments[]";
18738
+ options.truncate -= 13;
18739
+ return `Arguments[ ${node_modules_chai_inspectList(args, options)} ]`;
18740
+ }
18741
+ chai_name(node_modules_chai_inspectArguments, "inspectArguments");
18742
+ var node_modules_chai_errorKeys = [
18743
+ "stack",
18744
+ "line",
18745
+ "column",
18746
+ "name",
18747
+ "message",
18748
+ "fileName",
18749
+ "lineNumber",
18750
+ "columnNumber",
18751
+ "number",
18752
+ "description",
18753
+ "cause"
18754
+ ];
18755
+ function chai_inspectObject2(error, options) {
18756
+ const properties = Object.getOwnPropertyNames(error).filter((key)=>-1 === node_modules_chai_errorKeys.indexOf(key));
18757
+ const name = error.name;
18758
+ options.truncate -= name.length;
18759
+ let message = "";
18760
+ if ("string" == typeof error.message) message = node_modules_chai_truncate(error.message, options.truncate);
18761
+ else properties.unshift("message");
18762
+ message = message ? `: ${message}` : "";
18763
+ options.truncate -= message.length + 5;
18764
+ options.seen = options.seen || [];
18765
+ if (options.seen.includes(error)) return "[Circular]";
18766
+ options.seen.push(error);
18767
+ const propertyContents = node_modules_chai_inspectList(properties.map((key)=>[
18768
+ key,
18769
+ error[key]
18770
+ ]), options, node_modules_chai_inspectProperty);
18771
+ return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
18772
+ }
18773
+ chai_name(chai_inspectObject2, "inspectObject");
18774
+ function node_modules_chai_inspectAttribute([key, value], options) {
18775
+ options.truncate -= 3;
18776
+ if (!value) return `${options.stylize(String(key), "yellow")}`;
18777
+ return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
18778
+ }
18779
+ chai_name(node_modules_chai_inspectAttribute, "inspectAttribute");
18780
+ function node_modules_chai_inspectNodeCollection(collection, options) {
18781
+ return node_modules_chai_inspectList(collection, options, node_modules_chai_inspectNode, "\n");
18782
+ }
18783
+ chai_name(node_modules_chai_inspectNodeCollection, "inspectNodeCollection");
18784
+ function node_modules_chai_inspectNode(node, options) {
18785
+ switch(node.nodeType){
18786
+ case 1:
18787
+ return node_modules_chai_inspectHTML(node, options);
18788
+ case 3:
18789
+ return options.inspect(node.data, options);
18790
+ default:
18791
+ return options.inspect(node, options);
18792
+ }
18793
+ }
18794
+ chai_name(node_modules_chai_inspectNode, "inspectNode");
18795
+ function node_modules_chai_inspectHTML(element, options) {
18796
+ const properties = element.getAttributeNames();
18797
+ const name = element.tagName.toLowerCase();
18798
+ const head = options.stylize(`<${name}`, "special");
18799
+ const headClose = options.stylize(">", "special");
18800
+ const tail = options.stylize(`</${name}>`, "special");
18801
+ options.truncate -= 2 * name.length + 5;
18802
+ let propertyContents = "";
18803
+ if (properties.length > 0) {
18804
+ propertyContents += " ";
18805
+ propertyContents += node_modules_chai_inspectList(properties.map((key)=>[
18806
+ key,
18807
+ element.getAttribute(key)
18808
+ ]), options, node_modules_chai_inspectAttribute, " ");
18809
+ }
18810
+ options.truncate -= propertyContents.length;
18811
+ const truncate2 = options.truncate;
18812
+ let children = node_modules_chai_inspectNodeCollection(element.children, options);
18813
+ if (children && children.length > truncate2) children = `${node_modules_chai_truncator}(${element.children.length})`;
18814
+ return `${head}${propertyContents}${headClose}${children}${tail}`;
18815
+ }
18816
+ chai_name(node_modules_chai_inspectHTML, "inspectHTML");
18817
+ var node_modules_chai_symbolsSupported = "function" == typeof Symbol && "function" == typeof Symbol.for;
18818
+ var node_modules_chai_chaiInspect = node_modules_chai_symbolsSupported ? /* @__PURE__ */ Symbol.for("chai/inspect") : "@@chai/inspect";
18819
+ var node_modules_chai_nodeInspect = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
18820
+ var node_modules_chai_constructorMap = /* @__PURE__ */ new WeakMap();
18821
+ var node_modules_chai_stringTagMap = {};
18822
+ var node_modules_chai_baseTypesMap = {
18823
+ undefined: /* @__PURE__ */ chai_name((value, options)=>options.stylize("undefined", "undefined"), "undefined"),
18824
+ null: /* @__PURE__ */ chai_name((value, options)=>options.stylize("null", "null"), "null"),
18825
+ boolean: /* @__PURE__ */ chai_name((value, options)=>options.stylize(String(value), "boolean"), "boolean"),
18826
+ Boolean: /* @__PURE__ */ chai_name((value, options)=>options.stylize(String(value), "boolean"), "Boolean"),
18827
+ number: node_modules_chai_inspectNumber,
18828
+ Number: node_modules_chai_inspectNumber,
18829
+ bigint: node_modules_chai_inspectBigInt,
18830
+ BigInt: node_modules_chai_inspectBigInt,
18831
+ string: node_modules_chai_inspectString,
18832
+ String: node_modules_chai_inspectString,
18833
+ function: node_modules_chai_inspectFunction,
18834
+ Function: node_modules_chai_inspectFunction,
18835
+ symbol: node_modules_chai_inspectSymbol,
18836
+ Symbol: node_modules_chai_inspectSymbol,
18837
+ Array: node_modules_chai_inspectArray,
18838
+ Date: node_modules_chai_inspectDate,
18839
+ Map: node_modules_chai_inspectMap,
18840
+ Set: node_modules_chai_inspectSet,
18841
+ RegExp: node_modules_chai_inspectRegExp,
18842
+ Promise: chai_promise_default,
18843
+ WeakSet: /* @__PURE__ */ chai_name((value, options)=>options.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
18844
+ WeakMap: /* @__PURE__ */ chai_name((value, options)=>options.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
18845
+ Arguments: node_modules_chai_inspectArguments,
18846
+ Int8Array: node_modules_chai_inspectTypedArray,
18847
+ Uint8Array: node_modules_chai_inspectTypedArray,
18848
+ Uint8ClampedArray: node_modules_chai_inspectTypedArray,
18849
+ Int16Array: node_modules_chai_inspectTypedArray,
18850
+ Uint16Array: node_modules_chai_inspectTypedArray,
18851
+ Int32Array: node_modules_chai_inspectTypedArray,
18852
+ Uint32Array: node_modules_chai_inspectTypedArray,
18853
+ Float32Array: node_modules_chai_inspectTypedArray,
18854
+ Float64Array: node_modules_chai_inspectTypedArray,
18855
+ Generator: /* @__PURE__ */ chai_name(()=>"", "Generator"),
18856
+ DataView: /* @__PURE__ */ chai_name(()=>"", "DataView"),
18857
+ ArrayBuffer: /* @__PURE__ */ chai_name(()=>"", "ArrayBuffer"),
18858
+ Error: chai_inspectObject2,
18859
+ HTMLCollection: node_modules_chai_inspectNodeCollection,
18860
+ NodeList: node_modules_chai_inspectNodeCollection
18861
+ };
18862
+ var node_modules_chai_inspectCustom = /* @__PURE__ */ chai_name((value, options, type3, inspectFn)=>{
18863
+ if (node_modules_chai_chaiInspect in value && "function" == typeof value[node_modules_chai_chaiInspect]) return value[node_modules_chai_chaiInspect](options);
18864
+ if (node_modules_chai_nodeInspect in value && "function" == typeof value[node_modules_chai_nodeInspect]) return value[node_modules_chai_nodeInspect](options.depth, options, inspectFn);
18865
+ if ("inspect" in value && "function" == typeof value.inspect) return value.inspect(options.depth, options);
18866
+ if ("constructor" in value && node_modules_chai_constructorMap.has(value.constructor)) return node_modules_chai_constructorMap.get(value.constructor)(value, options);
18867
+ if (node_modules_chai_stringTagMap[type3]) return node_modules_chai_stringTagMap[type3](value, options);
18868
+ return "";
18869
+ }, "inspectCustom");
18870
+ var node_modules_chai_toString = Object.prototype.toString;
18871
+ function node_modules_chai_inspect(value, opts = {}) {
18872
+ const options = node_modules_chai_normaliseOptions(opts, node_modules_chai_inspect);
18873
+ const { customInspect } = options;
18874
+ let type3 = null === value ? "null" : typeof value;
18875
+ if ("object" === type3) type3 = node_modules_chai_toString.call(value).slice(8, -1);
18876
+ if (type3 in node_modules_chai_baseTypesMap) return node_modules_chai_baseTypesMap[type3](value, options);
18877
+ if (customInspect && value) {
18878
+ const output = node_modules_chai_inspectCustom(value, options, type3, node_modules_chai_inspect);
18879
+ if (output) {
18880
+ if ("string" == typeof output) return output;
18881
+ return node_modules_chai_inspect(output, options);
18882
+ }
18883
+ }
18884
+ const proto = value ? Object.getPrototypeOf(value) : false;
18885
+ if (proto === Object.prototype || null === proto) return node_modules_chai_inspectObject(value, options);
18886
+ if (value && "function" == typeof HTMLElement && value instanceof HTMLElement) return node_modules_chai_inspectHTML(value, options);
18887
+ if ("constructor" in value) {
18888
+ if (value.constructor !== Object) return node_modules_chai_inspectClass(value, options);
18889
+ return node_modules_chai_inspectObject(value, options);
18890
+ }
18891
+ if (value === Object(value)) return node_modules_chai_inspectObject(value, options);
18892
+ return options.stylize(String(value), type3);
18893
+ }
18894
+ chai_name(node_modules_chai_inspect, "inspect");
18895
+ var node_modules_chai_config = {
18896
+ includeStack: false,
18897
+ showDiff: true,
18898
+ truncateThreshold: 40,
18899
+ useProxy: true,
18900
+ proxyExcludedKeys: [
18901
+ "then",
18902
+ "catch",
18903
+ "inspect",
18904
+ "toJSON"
18905
+ ],
18906
+ deepEqual: null
18907
+ };
18908
+ function chai_inspect2(obj, showHidden, depth, colors) {
18909
+ let options = {
18910
+ colors,
18911
+ depth: void 0 === depth ? 2 : depth,
18912
+ showHidden,
18913
+ truncate: node_modules_chai_config.truncateThreshold ? node_modules_chai_config.truncateThreshold : 1 / 0
18914
+ };
18915
+ return node_modules_chai_inspect(obj, options);
18916
+ }
18917
+ chai_name(chai_inspect2, "inspect");
18918
+ function node_modules_chai_objDisplay(obj) {
18919
+ let str = chai_inspect2(obj), type3 = Object.prototype.toString.call(obj);
18920
+ if (!node_modules_chai_config.truncateThreshold || !(str.length >= node_modules_chai_config.truncateThreshold)) return str;
18921
+ if ("[object Function]" === type3) return obj.name && "" !== obj.name ? "[Function: " + obj.name + "]" : "[Function]";
18922
+ if ("[object Array]" === type3) return "[ Array(" + obj.length + ") ]";
18923
+ {
18924
+ if ("[object Object]" !== type3) return str;
18925
+ let keys = Object.keys(obj), kstr = keys.length > 2 ? keys.splice(0, 2).join(", ") + ", ..." : keys.join(", ");
18926
+ return "{ Object (" + kstr + ") }";
18927
+ }
18928
+ }
18929
+ chai_name(node_modules_chai_objDisplay, "objDisplay");
18930
+ function chai_getMessage2(obj, args) {
18931
+ let negate = node_modules_chai_flag(obj, "negate");
18932
+ let val = node_modules_chai_flag(obj, "object");
18933
+ let expected = args[3];
18934
+ let actual = chai_getActual(obj, args);
18935
+ let msg = negate ? args[2] : args[1];
18936
+ let flagMsg = node_modules_chai_flag(obj, "message");
18937
+ if ("function" == typeof msg) msg = msg();
18938
+ msg = msg || "";
18939
+ msg = msg.replace(/#\{this\}/g, function() {
18940
+ return node_modules_chai_objDisplay(val);
18941
+ }).replace(/#\{act\}/g, function() {
18942
+ return node_modules_chai_objDisplay(actual);
18943
+ }).replace(/#\{exp\}/g, function() {
18944
+ return node_modules_chai_objDisplay(expected);
18945
+ });
18946
+ return flagMsg ? flagMsg + ": " + msg : msg;
18947
+ }
18948
+ chai_name(chai_getMessage2, "getMessage");
18949
+ function chai_transferFlags(assertion, object, includeAll) {
18950
+ let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
18951
+ if (!object.__flags) object.__flags = /* @__PURE__ */ Object.create(null);
18952
+ includeAll = 3 === arguments.length ? includeAll : true;
18953
+ for(let flag3 in flags)if (includeAll || "object" !== flag3 && "ssfi" !== flag3 && "lockSsfi" !== flag3 && "message" != flag3) object.__flags[flag3] = flags[flag3];
18954
+ }
18955
+ chai_name(chai_transferFlags, "transferFlags");
18956
+ function chai_type2(obj) {
18957
+ if (void 0 === obj) return "undefined";
18958
+ if (null === obj) return "null";
18959
+ const stringTag = obj[Symbol.toStringTag];
18960
+ if ("string" == typeof stringTag) return stringTag;
18961
+ const sliceStart = 8;
18962
+ const sliceEnd = -1;
18963
+ return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd);
18964
+ }
18965
+ chai_name(chai_type2, "type");
18966
+ function chai_FakeMap() {
18967
+ this._key = "chai/deep-eql__" + Math.random() + Date.now();
18968
+ }
18969
+ chai_name(chai_FakeMap, "FakeMap");
18970
+ chai_FakeMap.prototype = {
18971
+ get: /* @__PURE__ */ chai_name(function get(key) {
18972
+ return key[this._key];
18973
+ }, "get"),
18974
+ set: /* @__PURE__ */ chai_name(function set(key, value) {
18975
+ if (Object.isExtensible(key)) Object.defineProperty(key, this._key, {
18976
+ value,
18977
+ configurable: true
18978
+ });
18979
+ }, "set")
18980
+ };
18981
+ var chai_MemoizeMap = "function" == typeof WeakMap ? WeakMap : chai_FakeMap;
18982
+ function chai_memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {
18983
+ if (!memoizeMap || node_modules_chai_isPrimitive(leftHandOperand) || node_modules_chai_isPrimitive(rightHandOperand)) return null;
18984
+ var leftHandMap = memoizeMap.get(leftHandOperand);
18985
+ if (leftHandMap) {
18986
+ var result = leftHandMap.get(rightHandOperand);
18987
+ if ("boolean" == typeof result) return result;
18988
+ }
18989
+ return null;
18990
+ }
18991
+ chai_name(chai_memoizeCompare, "memoizeCompare");
18992
+ function chai_memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
18993
+ if (!memoizeMap || node_modules_chai_isPrimitive(leftHandOperand) || node_modules_chai_isPrimitive(rightHandOperand)) return;
18994
+ var leftHandMap = memoizeMap.get(leftHandOperand);
18995
+ if (leftHandMap) leftHandMap.set(rightHandOperand, result);
18996
+ else {
18997
+ leftHandMap = new chai_MemoizeMap();
18998
+ leftHandMap.set(rightHandOperand, result);
18999
+ memoizeMap.set(leftHandOperand, leftHandMap);
19000
+ }
19001
+ }
19002
+ chai_name(chai_memoizeSet, "memoizeSet");
19003
+ var chai_deep_eql_default = chai_deepEqual;
19004
+ function chai_deepEqual(leftHandOperand, rightHandOperand, options) {
19005
+ if (options && options.comparator) return chai_extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
19006
+ var simpleResult = chai_simpleEqual(leftHandOperand, rightHandOperand);
19007
+ if (null !== simpleResult) return simpleResult;
19008
+ return chai_extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
19009
+ }
19010
+ chai_name(chai_deepEqual, "deepEqual");
19011
+ function chai_simpleEqual(leftHandOperand, rightHandOperand) {
19012
+ if (leftHandOperand === rightHandOperand) return 0 !== leftHandOperand || 1 / leftHandOperand === 1 / rightHandOperand;
19013
+ if (leftHandOperand !== leftHandOperand && rightHandOperand !== rightHandOperand) return true;
19014
+ if (node_modules_chai_isPrimitive(leftHandOperand) || node_modules_chai_isPrimitive(rightHandOperand)) return false;
19015
+ return null;
19016
+ }
19017
+ chai_name(chai_simpleEqual, "simpleEqual");
19018
+ function chai_extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
19019
+ options = options || {};
19020
+ options.memoize = false === options.memoize ? false : options.memoize || new chai_MemoizeMap();
19021
+ var comparator = options && options.comparator;
19022
+ var memoizeResultLeft = chai_memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);
19023
+ if (null !== memoizeResultLeft) return memoizeResultLeft;
19024
+ var memoizeResultRight = chai_memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);
19025
+ if (null !== memoizeResultRight) return memoizeResultRight;
19026
+ if (comparator) {
19027
+ var comparatorResult = comparator(leftHandOperand, rightHandOperand);
19028
+ if (false === comparatorResult || true === comparatorResult) {
19029
+ chai_memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult);
19030
+ return comparatorResult;
19031
+ }
19032
+ var simpleResult = chai_simpleEqual(leftHandOperand, rightHandOperand);
19033
+ if (null !== simpleResult) return simpleResult;
19034
+ }
19035
+ var leftHandType = chai_type2(leftHandOperand);
19036
+ if (leftHandType !== chai_type2(rightHandOperand)) {
19037
+ chai_memoizeSet(leftHandOperand, rightHandOperand, options.memoize, false);
19038
+ return false;
19039
+ }
19040
+ chai_memoizeSet(leftHandOperand, rightHandOperand, options.memoize, true);
19041
+ var result = chai_extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);
19042
+ chai_memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);
19043
+ return result;
19044
+ }
19045
+ chai_name(chai_extensiveDeepEqual, "extensiveDeepEqual");
19046
+ function chai_extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {
19047
+ switch(leftHandType){
19048
+ case "String":
19049
+ case "Number":
19050
+ case "Boolean":
19051
+ case "Date":
19052
+ return chai_deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());
19053
+ case "Promise":
19054
+ case "Symbol":
19055
+ case "function":
19056
+ case "WeakMap":
19057
+ case "WeakSet":
19058
+ return leftHandOperand === rightHandOperand;
19059
+ case "Error":
19060
+ return chai_keysEqual(leftHandOperand, rightHandOperand, [
19061
+ "name",
19062
+ "message",
19063
+ "code"
19064
+ ], options);
19065
+ case "Arguments":
19066
+ case "Int8Array":
19067
+ case "Uint8Array":
19068
+ case "Uint8ClampedArray":
19069
+ case "Int16Array":
19070
+ case "Uint16Array":
19071
+ case "Int32Array":
19072
+ case "Uint32Array":
19073
+ case "Float32Array":
19074
+ case "Float64Array":
19075
+ case "Array":
19076
+ return chai_iterableEqual(leftHandOperand, rightHandOperand, options);
19077
+ case "RegExp":
19078
+ return chai_regexpEqual(leftHandOperand, rightHandOperand);
19079
+ case "Generator":
19080
+ return chai_generatorEqual(leftHandOperand, rightHandOperand, options);
19081
+ case "DataView":
19082
+ return chai_iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);
19083
+ case "ArrayBuffer":
19084
+ return chai_iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);
19085
+ case "Set":
19086
+ return chai_entriesEqual(leftHandOperand, rightHandOperand, options);
19087
+ case "Map":
19088
+ return chai_entriesEqual(leftHandOperand, rightHandOperand, options);
19089
+ case "Temporal.PlainDate":
19090
+ case "Temporal.PlainTime":
19091
+ case "Temporal.PlainDateTime":
19092
+ case "Temporal.Instant":
19093
+ case "Temporal.ZonedDateTime":
19094
+ case "Temporal.PlainYearMonth":
19095
+ case "Temporal.PlainMonthDay":
19096
+ return leftHandOperand.equals(rightHandOperand);
19097
+ case "Temporal.Duration":
19098
+ return leftHandOperand.total("nanoseconds") === rightHandOperand.total("nanoseconds");
19099
+ case "Temporal.TimeZone":
19100
+ case "Temporal.Calendar":
19101
+ return leftHandOperand.toString() === rightHandOperand.toString();
19102
+ default:
19103
+ return chai_objectEqual(leftHandOperand, rightHandOperand, options);
19104
+ }
19105
+ }
19106
+ chai_name(chai_extensiveDeepEqualByType, "extensiveDeepEqualByType");
19107
+ function chai_regexpEqual(leftHandOperand, rightHandOperand) {
19108
+ return leftHandOperand.toString() === rightHandOperand.toString();
19109
+ }
19110
+ chai_name(chai_regexpEqual, "regexpEqual");
19111
+ function chai_entriesEqual(leftHandOperand, rightHandOperand, options) {
19112
+ try {
19113
+ if (leftHandOperand.size !== rightHandOperand.size) return false;
19114
+ if (0 === leftHandOperand.size) return true;
19115
+ } catch (sizeError) {
19116
+ return false;
19117
+ }
19118
+ var leftHandItems = [];
19119
+ var rightHandItems = [];
19120
+ leftHandOperand.forEach(/* @__PURE__ */ chai_name(function gatherEntries(key, value) {
19121
+ leftHandItems.push([
19122
+ key,
19123
+ value
19124
+ ]);
19125
+ }, "gatherEntries"));
19126
+ rightHandOperand.forEach(/* @__PURE__ */ chai_name(function gatherEntries(key, value) {
19127
+ rightHandItems.push([
19128
+ key,
19129
+ value
19130
+ ]);
19131
+ }, "gatherEntries"));
19132
+ return chai_iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);
19133
+ }
19134
+ chai_name(chai_entriesEqual, "entriesEqual");
19135
+ function chai_iterableEqual(leftHandOperand, rightHandOperand, options) {
19136
+ var length = leftHandOperand.length;
19137
+ if (length !== rightHandOperand.length) return false;
19138
+ if (0 === length) return true;
19139
+ var index = -1;
19140
+ while(++index < length)if (false === chai_deepEqual(leftHandOperand[index], rightHandOperand[index], options)) return false;
19141
+ return true;
19142
+ }
19143
+ chai_name(chai_iterableEqual, "iterableEqual");
19144
+ function chai_generatorEqual(leftHandOperand, rightHandOperand, options) {
19145
+ return chai_iterableEqual(chai_getGeneratorEntries(leftHandOperand), chai_getGeneratorEntries(rightHandOperand), options);
19146
+ }
19147
+ chai_name(chai_generatorEqual, "generatorEqual");
19148
+ function chai_hasIteratorFunction(target) {
19149
+ return "u" > typeof Symbol && "object" == typeof target && void 0 !== Symbol.iterator && "function" == typeof target[Symbol.iterator];
19150
+ }
19151
+ chai_name(chai_hasIteratorFunction, "hasIteratorFunction");
19152
+ function chai_getIteratorEntries(target) {
19153
+ if (chai_hasIteratorFunction(target)) try {
19154
+ return chai_getGeneratorEntries(target[Symbol.iterator]());
19155
+ } catch (iteratorError) {}
19156
+ return [];
19157
+ }
19158
+ chai_name(chai_getIteratorEntries, "getIteratorEntries");
19159
+ function chai_getGeneratorEntries(generator) {
19160
+ var generatorResult = generator.next();
19161
+ var accumulator = [
19162
+ generatorResult.value
19163
+ ];
19164
+ while(false === generatorResult.done){
19165
+ generatorResult = generator.next();
19166
+ accumulator.push(generatorResult.value);
19167
+ }
19168
+ return accumulator;
19169
+ }
19170
+ chai_name(chai_getGeneratorEntries, "getGeneratorEntries");
19171
+ function chai_getEnumerableKeys(target) {
19172
+ var keys = [];
19173
+ for(var key in target)keys.push(key);
19174
+ return keys;
19175
+ }
19176
+ chai_name(chai_getEnumerableKeys, "getEnumerableKeys");
19177
+ function chai_getEnumerableSymbols(target) {
19178
+ var keys = [];
19179
+ var allKeys = Object.getOwnPropertySymbols(target);
19180
+ for(var i = 0; i < allKeys.length; i += 1){
19181
+ var key = allKeys[i];
19182
+ if (Object.getOwnPropertyDescriptor(target, key).enumerable) keys.push(key);
19183
+ }
19184
+ return keys;
19185
+ }
19186
+ chai_name(chai_getEnumerableSymbols, "getEnumerableSymbols");
19187
+ function chai_keysEqual(leftHandOperand, rightHandOperand, keys, options) {
19188
+ var length = keys.length;
19189
+ if (0 === length) return true;
19190
+ for(var i = 0; i < length; i += 1)if (false === chai_deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options)) return false;
19191
+ return true;
19192
+ }
19193
+ chai_name(chai_keysEqual, "keysEqual");
19194
+ function chai_objectEqual(leftHandOperand, rightHandOperand, options) {
19195
+ var leftHandKeys = chai_getEnumerableKeys(leftHandOperand);
19196
+ var rightHandKeys = chai_getEnumerableKeys(rightHandOperand);
19197
+ var leftHandSymbols = chai_getEnumerableSymbols(leftHandOperand);
19198
+ var rightHandSymbols = chai_getEnumerableSymbols(rightHandOperand);
19199
+ leftHandKeys = leftHandKeys.concat(leftHandSymbols);
19200
+ rightHandKeys = rightHandKeys.concat(rightHandSymbols);
19201
+ if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {
19202
+ if (false === chai_iterableEqual(chai_mapSymbols(leftHandKeys).sort(), chai_mapSymbols(rightHandKeys).sort())) return false;
19203
+ return chai_keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);
19204
+ }
19205
+ var leftHandEntries = chai_getIteratorEntries(leftHandOperand);
19206
+ var rightHandEntries = chai_getIteratorEntries(rightHandOperand);
19207
+ if (leftHandEntries.length && leftHandEntries.length === rightHandEntries.length) {
19208
+ leftHandEntries.sort();
19209
+ rightHandEntries.sort();
19210
+ return chai_iterableEqual(leftHandEntries, rightHandEntries, options);
19211
+ }
19212
+ if (0 === leftHandKeys.length && 0 === leftHandEntries.length && 0 === rightHandKeys.length && 0 === rightHandEntries.length) return true;
19213
+ return false;
19214
+ }
19215
+ chai_name(chai_objectEqual, "objectEqual");
19216
+ function node_modules_chai_isPrimitive(value) {
19217
+ return null === value || "object" != typeof value;
19218
+ }
19219
+ chai_name(node_modules_chai_isPrimitive, "isPrimitive");
19220
+ function chai_mapSymbols(arr) {
19221
+ return arr.map(/* @__PURE__ */ chai_name(function mapSymbol(entry) {
19222
+ if ("symbol" == typeof entry) return entry.toString();
19223
+ return entry;
19224
+ }, "mapSymbol"));
19225
+ }
19226
+ chai_name(chai_mapSymbols, "mapSymbols");
19227
+ function chai_hasProperty(obj, name) {
19228
+ if (null == obj) return false;
19229
+ return name in Object(obj);
19230
+ }
19231
+ chai_name(chai_hasProperty, "hasProperty");
19232
+ function chai_parsePath(path) {
19233
+ const str = path.replace(/([^\\])\[/g, "$1.[");
19234
+ const parts = str.match(/(\\\.|[^.]+?)+/g);
19235
+ return parts.map((value)=>{
19236
+ if ("constructor" === value || "__proto__" === value || "prototype" === value) return {};
19237
+ const regexp = /^\[(\d+)\]$/;
19238
+ const mArr = regexp.exec(value);
19239
+ let parsed = null;
19240
+ parsed = mArr ? {
19241
+ i: parseFloat(mArr[1])
19242
+ } : {
19243
+ p: value.replace(/\\([.[\]])/g, "$1")
19244
+ };
19245
+ return parsed;
19246
+ });
19247
+ }
19248
+ chai_name(chai_parsePath, "parsePath");
19249
+ function chai_internalGetPathValue(obj, parsed, pathDepth) {
19250
+ let temporaryValue = obj;
19251
+ let res = null;
19252
+ pathDepth = void 0 === pathDepth ? parsed.length : pathDepth;
19253
+ for(let i = 0; i < pathDepth; i++){
19254
+ const part = parsed[i];
19255
+ if (temporaryValue) {
19256
+ temporaryValue = void 0 === part.p ? temporaryValue[part.i] : temporaryValue[part.p];
19257
+ if (i === pathDepth - 1) res = temporaryValue;
19258
+ }
19259
+ }
19260
+ return res;
19261
+ }
19262
+ chai_name(chai_internalGetPathValue, "internalGetPathValue");
19263
+ function chai_getPathInfo(obj, path) {
19264
+ const parsed = chai_parsePath(path);
19265
+ const last = parsed[parsed.length - 1];
19266
+ const info = {
19267
+ parent: parsed.length > 1 ? chai_internalGetPathValue(obj, parsed, parsed.length - 1) : obj,
19268
+ name: last.p || last.i,
19269
+ value: chai_internalGetPathValue(obj, parsed)
19270
+ };
19271
+ info.exists = chai_hasProperty(info.parent, info.name);
19272
+ return info;
19273
+ }
19274
+ chai_name(chai_getPathInfo, "getPathInfo");
19275
+ var chai_Assertion = class _Assertion {
19276
+ constructor(obj, msg, ssfi, lockSsfi){
19277
+ __publicField(this, "__flags", {});
19278
+ node_modules_chai_flag(this, "ssfi", ssfi || _Assertion);
19279
+ node_modules_chai_flag(this, "lockSsfi", lockSsfi);
19280
+ node_modules_chai_flag(this, "object", obj);
19281
+ node_modules_chai_flag(this, "message", msg);
19282
+ node_modules_chai_flag(this, "eql", node_modules_chai_config.deepEqual || chai_deep_eql_default);
19283
+ return chai_proxify(this);
19284
+ }
19285
+ static get includeStack() {
19286
+ console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");
19287
+ return node_modules_chai_config.includeStack;
19288
+ }
19289
+ static set includeStack(value) {
19290
+ console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");
19291
+ node_modules_chai_config.includeStack = value;
19292
+ }
19293
+ static get showDiff() {
19294
+ console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");
19295
+ return node_modules_chai_config.showDiff;
19296
+ }
19297
+ static set showDiff(value) {
19298
+ console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");
19299
+ node_modules_chai_config.showDiff = value;
19300
+ }
19301
+ static addProperty(name, fn) {
19302
+ chai_addProperty(this.prototype, name, fn);
19303
+ }
19304
+ static addMethod(name, fn) {
19305
+ node_modules_chai_addMethod(this.prototype, name, fn);
19306
+ }
19307
+ static addChainableMethod(name, fn, chainingBehavior) {
19308
+ chai_addChainableMethod(this.prototype, name, fn, chainingBehavior);
19309
+ }
19310
+ static overwriteProperty(name, fn) {
19311
+ chai_overwriteProperty(this.prototype, name, fn);
19312
+ }
19313
+ static overwriteMethod(name, fn) {
19314
+ chai_overwriteMethod(this.prototype, name, fn);
19315
+ }
19316
+ static overwriteChainableMethod(name, fn, chainingBehavior) {
19317
+ chai_overwriteChainableMethod(this.prototype, name, fn, chainingBehavior);
19318
+ }
19319
+ assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {
19320
+ const ok = node_modules_chai_test(this, arguments);
19321
+ if (false !== showDiff) showDiff = true;
19322
+ if (void 0 === expected && void 0 === _actual) showDiff = false;
19323
+ if (true !== node_modules_chai_config.showDiff) showDiff = false;
19324
+ if (!ok) {
19325
+ msg = chai_getMessage2(this, arguments);
19326
+ const actual = chai_getActual(this, arguments);
19327
+ const assertionErrorObjectProperties = {
19328
+ actual,
19329
+ expected,
19330
+ showDiff
19331
+ };
19332
+ const operator = chai_getOperator(this, arguments);
19333
+ if (operator) assertionErrorObjectProperties.operator = operator;
19334
+ throw new chai_6_2_2_node_modules_chai_AssertionError(msg, assertionErrorObjectProperties, node_modules_chai_config.includeStack ? this.assert : node_modules_chai_flag(this, "ssfi"));
19335
+ }
19336
+ }
19337
+ get _obj() {
19338
+ return node_modules_chai_flag(this, "object");
19339
+ }
19340
+ set _obj(val) {
19341
+ node_modules_chai_flag(this, "object", val);
19342
+ }
19343
+ };
19344
+ chai_name(chai_Assertion, "Assertion");
19345
+ var node_modules_chai_Assertion = chai_Assertion;
19346
+ var events = new EventTarget();
19347
+ var chai_PluginEvent = class extends Event {
19348
+ constructor(type3, name, fn){
19349
+ super(type3);
19350
+ this.name = String(name);
19351
+ this.fn = fn;
19352
+ }
19353
+ };
19354
+ chai_name(chai_PluginEvent, "PluginEvent");
19355
+ var PluginEvent = chai_PluginEvent;
19356
+ function chai_isProxyEnabled() {
19357
+ return node_modules_chai_config.useProxy && "u" > typeof Proxy && "u" > typeof Reflect;
19358
+ }
19359
+ chai_name(chai_isProxyEnabled, "isProxyEnabled");
19360
+ function chai_addProperty(ctx, name, getter) {
19361
+ getter = void 0 === getter ? function() {} : getter;
19362
+ Object.defineProperty(ctx, name, {
19363
+ get: /* @__PURE__ */ chai_name(function propertyGetter() {
19364
+ if (!chai_isProxyEnabled() && !node_modules_chai_flag(this, "lockSsfi")) node_modules_chai_flag(this, "ssfi", propertyGetter);
19365
+ let result = getter.call(this);
19366
+ if (void 0 !== result) return result;
19367
+ let newAssertion = new node_modules_chai_Assertion();
19368
+ chai_transferFlags(this, newAssertion);
19369
+ return newAssertion;
19370
+ }, "propertyGetter"),
19371
+ configurable: true
19372
+ });
19373
+ events.dispatchEvent(new PluginEvent("addProperty", name, getter));
19374
+ }
19375
+ chai_name(chai_addProperty, "addProperty");
19376
+ var chai_fnLengthDesc = Object.getOwnPropertyDescriptor(function() {}, "length");
19377
+ function chai_addLengthGuard(fn, assertionName, isChainable) {
19378
+ if (!chai_fnLengthDesc.configurable) return fn;
19379
+ Object.defineProperty(fn, "length", {
19380
+ get: /* @__PURE__ */ chai_name(function() {
19381
+ if (isChainable) throw Error("Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.');
19382
+ throw Error("Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".');
19383
+ }, "get")
19384
+ });
19385
+ return fn;
19386
+ }
19387
+ chai_name(chai_addLengthGuard, "addLengthGuard");
19388
+ function chai_getProperties(object) {
19389
+ let result = Object.getOwnPropertyNames(object);
19390
+ function addProperty2(property) {
19391
+ if (-1 === result.indexOf(property)) result.push(property);
19392
+ }
19393
+ chai_name(addProperty2, "addProperty");
19394
+ let proto = Object.getPrototypeOf(object);
19395
+ while(null !== proto){
19396
+ Object.getOwnPropertyNames(proto).forEach(addProperty2);
19397
+ proto = Object.getPrototypeOf(proto);
19398
+ }
19399
+ return result;
19400
+ }
19401
+ chai_name(chai_getProperties, "getProperties");
19402
+ var chai_builtins = [
19403
+ "__flags",
19404
+ "__methods",
19405
+ "_obj",
19406
+ "assert"
19407
+ ];
19408
+ function chai_proxify(obj, nonChainableMethodName) {
19409
+ if (!chai_isProxyEnabled()) return obj;
19410
+ return new Proxy(obj, {
19411
+ get: /* @__PURE__ */ chai_name(function proxyGetter(target, property) {
19412
+ if ("string" == typeof property && -1 === node_modules_chai_config.proxyExcludedKeys.indexOf(property) && !Reflect.has(target, property)) {
19413
+ if (nonChainableMethodName) throw Error("Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".');
19414
+ let suggestion = null;
19415
+ let suggestionDistance = 4;
19416
+ chai_getProperties(target).forEach(function(prop) {
19417
+ if (!Object.prototype.hasOwnProperty(prop) && -1 === chai_builtins.indexOf(prop)) {
19418
+ let dist = chai_stringDistanceCapped(property, prop, suggestionDistance);
19419
+ if (dist < suggestionDistance) {
19420
+ suggestion = prop;
19421
+ suggestionDistance = dist;
19422
+ }
19423
+ }
19424
+ });
19425
+ if (null !== suggestion) throw Error("Invalid Chai property: " + property + '. Did you mean "' + suggestion + '"?');
19426
+ throw Error("Invalid Chai property: " + property);
19427
+ }
19428
+ if (-1 === chai_builtins.indexOf(property) && !node_modules_chai_flag(target, "lockSsfi")) node_modules_chai_flag(target, "ssfi", proxyGetter);
19429
+ return Reflect.get(target, property);
19430
+ }, "proxyGetter")
19431
+ });
19432
+ }
19433
+ chai_name(chai_proxify, "proxify");
19434
+ function chai_stringDistanceCapped(strA, strB, cap) {
19435
+ if (Math.abs(strA.length - strB.length) >= cap) return cap;
19436
+ let memo = [];
19437
+ for(let i = 0; i <= strA.length; i++){
19438
+ memo[i] = Array(strB.length + 1).fill(0);
19439
+ memo[i][0] = i;
19440
+ }
19441
+ for(let j = 0; j < strB.length; j++)memo[0][j] = j;
19442
+ for(let i = 1; i <= strA.length; i++){
19443
+ let ch = strA.charCodeAt(i - 1);
19444
+ for(let j = 1; j <= strB.length; j++){
19445
+ if (Math.abs(i - j) >= cap) {
19446
+ memo[i][j] = cap;
19447
+ continue;
19448
+ }
19449
+ memo[i][j] = Math.min(memo[i - 1][j] + 1, memo[i][j - 1] + 1, memo[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1));
19450
+ }
19451
+ }
19452
+ return memo[strA.length][strB.length];
19453
+ }
19454
+ chai_name(chai_stringDistanceCapped, "stringDistanceCapped");
19455
+ function node_modules_chai_addMethod(ctx, name, method) {
19456
+ let methodWrapper = /* @__PURE__ */ chai_name(function() {
19457
+ if (!node_modules_chai_flag(this, "lockSsfi")) node_modules_chai_flag(this, "ssfi", methodWrapper);
19458
+ let result = method.apply(this, arguments);
19459
+ if (void 0 !== result) return result;
19460
+ let newAssertion = new node_modules_chai_Assertion();
19461
+ chai_transferFlags(this, newAssertion);
19462
+ return newAssertion;
19463
+ }, "methodWrapper");
19464
+ chai_addLengthGuard(methodWrapper, name, false);
19465
+ ctx[name] = chai_proxify(methodWrapper, name);
19466
+ events.dispatchEvent(new PluginEvent("addMethod", name, method));
19467
+ }
19468
+ chai_name(node_modules_chai_addMethod, "addMethod");
19469
+ function chai_overwriteProperty(ctx, name, getter) {
19470
+ let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ chai_name(function() {}, "_super");
19471
+ if (_get && "function" == typeof _get.get) _super = _get.get;
19472
+ Object.defineProperty(ctx, name, {
19473
+ get: /* @__PURE__ */ chai_name(function overwritingPropertyGetter() {
19474
+ if (!chai_isProxyEnabled() && !node_modules_chai_flag(this, "lockSsfi")) node_modules_chai_flag(this, "ssfi", overwritingPropertyGetter);
19475
+ let origLockSsfi = node_modules_chai_flag(this, "lockSsfi");
19476
+ node_modules_chai_flag(this, "lockSsfi", true);
19477
+ let result = getter(_super).call(this);
19478
+ node_modules_chai_flag(this, "lockSsfi", origLockSsfi);
19479
+ if (void 0 !== result) return result;
19480
+ let newAssertion = new node_modules_chai_Assertion();
19481
+ chai_transferFlags(this, newAssertion);
19482
+ return newAssertion;
19483
+ }, "overwritingPropertyGetter"),
19484
+ configurable: true
19485
+ });
19486
+ }
19487
+ chai_name(chai_overwriteProperty, "overwriteProperty");
19488
+ function chai_overwriteMethod(ctx, name, method) {
19489
+ let _method = ctx[name], _super = /* @__PURE__ */ chai_name(function() {
19490
+ throw new Error(name + " is not a function");
19491
+ }, "_super");
19492
+ if (_method && "function" == typeof _method) _super = _method;
19493
+ let overwritingMethodWrapper = /* @__PURE__ */ chai_name(function() {
19494
+ if (!node_modules_chai_flag(this, "lockSsfi")) node_modules_chai_flag(this, "ssfi", overwritingMethodWrapper);
19495
+ let origLockSsfi = node_modules_chai_flag(this, "lockSsfi");
19496
+ node_modules_chai_flag(this, "lockSsfi", true);
19497
+ let result = method(_super).apply(this, arguments);
19498
+ node_modules_chai_flag(this, "lockSsfi", origLockSsfi);
19499
+ if (void 0 !== result) return result;
19500
+ let newAssertion = new node_modules_chai_Assertion();
19501
+ chai_transferFlags(this, newAssertion);
19502
+ return newAssertion;
19503
+ }, "overwritingMethodWrapper");
19504
+ chai_addLengthGuard(overwritingMethodWrapper, name, false);
19505
+ ctx[name] = chai_proxify(overwritingMethodWrapper, name);
19506
+ }
19507
+ chai_name(chai_overwriteMethod, "overwriteMethod");
19508
+ var chai_canSetPrototype = "function" == typeof Object.setPrototypeOf;
19509
+ var node_modules_chai_testFn = /* @__PURE__ */ chai_name(function() {}, "testFn");
19510
+ var chai_excludeNames = Object.getOwnPropertyNames(node_modules_chai_testFn).filter(function(name) {
19511
+ let propDesc = Object.getOwnPropertyDescriptor(node_modules_chai_testFn, name);
19512
+ if ("object" != typeof propDesc) return true;
19513
+ return !propDesc.configurable;
19514
+ });
19515
+ var chai_call = Function.prototype.call;
19516
+ var chai_apply = Function.prototype.apply;
19517
+ var chai_PluginAddChainableMethodEvent = class extends PluginEvent {
19518
+ constructor(type3, name, fn, chainingBehavior){
19519
+ super(type3, name, fn);
19520
+ this.chainingBehavior = chainingBehavior;
19521
+ }
19522
+ };
19523
+ chai_name(chai_PluginAddChainableMethodEvent, "PluginAddChainableMethodEvent");
19524
+ var PluginAddChainableMethodEvent = chai_PluginAddChainableMethodEvent;
19525
+ function chai_addChainableMethod(ctx, name, method, chainingBehavior) {
19526
+ if ("function" != typeof chainingBehavior) chainingBehavior = /* @__PURE__ */ chai_name(function() {}, "chainingBehavior");
19527
+ let chainableBehavior = {
19528
+ method,
19529
+ chainingBehavior
19530
+ };
19531
+ if (!ctx.__methods) ctx.__methods = {};
19532
+ ctx.__methods[name] = chainableBehavior;
19533
+ Object.defineProperty(ctx, name, {
19534
+ get: /* @__PURE__ */ chai_name(function chainableMethodGetter() {
19535
+ chainableBehavior.chainingBehavior.call(this);
19536
+ let chainableMethodWrapper = /* @__PURE__ */ chai_name(function() {
19537
+ if (!node_modules_chai_flag(this, "lockSsfi")) node_modules_chai_flag(this, "ssfi", chainableMethodWrapper);
19538
+ let result = chainableBehavior.method.apply(this, arguments);
19539
+ if (void 0 !== result) return result;
19540
+ let newAssertion = new node_modules_chai_Assertion();
19541
+ chai_transferFlags(this, newAssertion);
19542
+ return newAssertion;
19543
+ }, "chainableMethodWrapper");
19544
+ chai_addLengthGuard(chainableMethodWrapper, name, true);
19545
+ if (chai_canSetPrototype) {
19546
+ let prototype = Object.create(this);
19547
+ prototype.call = chai_call;
19548
+ prototype.apply = chai_apply;
19549
+ Object.setPrototypeOf(chainableMethodWrapper, prototype);
19550
+ } else {
19551
+ let asserterNames = Object.getOwnPropertyNames(ctx);
19552
+ asserterNames.forEach(function(asserterName) {
19553
+ if (-1 !== chai_excludeNames.indexOf(asserterName)) return;
19554
+ let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
19555
+ Object.defineProperty(chainableMethodWrapper, asserterName, pd);
19556
+ });
19557
+ }
19558
+ chai_transferFlags(this, chainableMethodWrapper);
19559
+ return chai_proxify(chainableMethodWrapper);
19560
+ }, "chainableMethodGetter"),
19561
+ configurable: true
19562
+ });
19563
+ events.dispatchEvent(new PluginAddChainableMethodEvent("addChainableMethod", name, method, chainingBehavior));
19564
+ }
19565
+ chai_name(chai_addChainableMethod, "addChainableMethod");
19566
+ function chai_overwriteChainableMethod(ctx, name, method, chainingBehavior) {
19567
+ let chainableBehavior = ctx.__methods[name];
19568
+ let _chainingBehavior = chainableBehavior.chainingBehavior;
19569
+ chainableBehavior.chainingBehavior = /* @__PURE__ */ chai_name(function overwritingChainableMethodGetter() {
19570
+ let result = chainingBehavior(_chainingBehavior).call(this);
19571
+ if (void 0 !== result) return result;
19572
+ let newAssertion = new node_modules_chai_Assertion();
19573
+ chai_transferFlags(this, newAssertion);
19574
+ return newAssertion;
19575
+ }, "overwritingChainableMethodGetter");
19576
+ let _method = chainableBehavior.method;
19577
+ chainableBehavior.method = /* @__PURE__ */ chai_name(function overwritingChainableMethodWrapper() {
19578
+ let result = method(_method).apply(this, arguments);
19579
+ if (void 0 !== result) return result;
19580
+ let newAssertion = new node_modules_chai_Assertion();
19581
+ chai_transferFlags(this, newAssertion);
19582
+ return newAssertion;
19583
+ }, "overwritingChainableMethodWrapper");
19584
+ }
19585
+ chai_name(chai_overwriteChainableMethod, "overwriteChainableMethod");
19586
+ function chai_compareByInspect(a, b) {
19587
+ return chai_inspect2(a) < chai_inspect2(b) ? -1 : 1;
19588
+ }
19589
+ chai_name(chai_compareByInspect, "compareByInspect");
19590
+ function chai_getOwnEnumerablePropertySymbols(obj) {
19591
+ if ("function" != typeof Object.getOwnPropertySymbols) return [];
19592
+ return Object.getOwnPropertySymbols(obj).filter(function(sym) {
19593
+ return Object.getOwnPropertyDescriptor(obj, sym).enumerable;
19594
+ });
19595
+ }
19596
+ chai_name(chai_getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols");
19597
+ function chai_getOwnEnumerableProperties(obj) {
19598
+ return Object.keys(obj).concat(chai_getOwnEnumerablePropertySymbols(obj));
19599
+ }
19600
+ chai_name(chai_getOwnEnumerableProperties, "getOwnEnumerableProperties");
19601
+ var chai_isNaN2 = Number.isNaN;
19602
+ function chai_isObjectType(obj) {
19603
+ let objectType = node_modules_chai_type(obj);
19604
+ let objectTypes = [
19605
+ "Array",
19606
+ "Object",
19607
+ "Function"
19608
+ ];
19609
+ return -1 !== objectTypes.indexOf(objectType);
19610
+ }
19611
+ chai_name(chai_isObjectType, "isObjectType");
19612
+ function chai_getOperator(obj, args) {
19613
+ let operator = node_modules_chai_flag(obj, "operator");
19614
+ let negate = node_modules_chai_flag(obj, "negate");
19615
+ let expected = args[3];
19616
+ let msg = negate ? args[2] : args[1];
19617
+ if (operator) return operator;
19618
+ if ("function" == typeof msg) msg = msg();
19619
+ msg = msg || "";
19620
+ if (!msg) return;
19621
+ if (/\shave\s/.test(msg)) return;
19622
+ let isObject = chai_isObjectType(expected);
19623
+ if (/\snot\s/.test(msg)) return isObject ? "notDeepStrictEqual" : "notStrictEqual";
19624
+ return isObject ? "deepStrictEqual" : "strictEqual";
19625
+ }
19626
+ chai_name(chai_getOperator, "getOperator");
19627
+ function chai_getName(fn) {
19628
+ return fn.name;
19629
+ }
19630
+ chai_name(chai_getName, "getName");
19631
+ function chai_isRegExp2(obj) {
19632
+ return "[object RegExp]" === Object.prototype.toString.call(obj);
19633
+ }
19634
+ chai_name(chai_isRegExp2, "isRegExp");
19635
+ function chai_isNumeric(obj) {
19636
+ return [
19637
+ "Number",
19638
+ "BigInt"
19639
+ ].includes(node_modules_chai_type(obj));
19640
+ }
19641
+ chai_name(chai_isNumeric, "isNumeric");
19642
+ var { flag: chai_flag2 } = chai_utils_exports;
19643
+ [
19644
+ "to",
19645
+ "be",
19646
+ "been",
19647
+ "is",
19648
+ "and",
19649
+ "has",
19650
+ "have",
19651
+ "with",
19652
+ "that",
19653
+ "which",
19654
+ "at",
19655
+ "of",
19656
+ "same",
19657
+ "but",
19658
+ "does",
19659
+ "still",
19660
+ "also"
19661
+ ].forEach(function(chain) {
19662
+ node_modules_chai_Assertion.addProperty(chain);
19663
+ });
19664
+ node_modules_chai_Assertion.addProperty("not", function() {
19665
+ chai_flag2(this, "negate", true);
19666
+ });
19667
+ node_modules_chai_Assertion.addProperty("deep", function() {
19668
+ chai_flag2(this, "deep", true);
19669
+ });
19670
+ node_modules_chai_Assertion.addProperty("nested", function() {
19671
+ chai_flag2(this, "nested", true);
19672
+ });
19673
+ node_modules_chai_Assertion.addProperty("own", function() {
19674
+ chai_flag2(this, "own", true);
19675
+ });
19676
+ node_modules_chai_Assertion.addProperty("ordered", function() {
19677
+ chai_flag2(this, "ordered", true);
19678
+ });
19679
+ node_modules_chai_Assertion.addProperty("any", function() {
19680
+ chai_flag2(this, "any", true);
19681
+ chai_flag2(this, "all", false);
19682
+ });
19683
+ node_modules_chai_Assertion.addProperty("all", function() {
19684
+ chai_flag2(this, "all", true);
19685
+ chai_flag2(this, "any", false);
19686
+ });
19687
+ var chai_functionTypes = {
19688
+ function: [
19689
+ "function",
19690
+ "asyncfunction",
19691
+ "generatorfunction",
19692
+ "asyncgeneratorfunction"
19693
+ ],
19694
+ asyncfunction: [
19695
+ "asyncfunction",
19696
+ "asyncgeneratorfunction"
19697
+ ],
19698
+ generatorfunction: [
19699
+ "generatorfunction",
19700
+ "asyncgeneratorfunction"
19701
+ ],
19702
+ asyncgeneratorfunction: [
19703
+ "asyncgeneratorfunction"
19704
+ ]
19705
+ };
19706
+ function chai_an(type3, msg) {
19707
+ if (msg) chai_flag2(this, "message", msg);
19708
+ type3 = type3.toLowerCase();
19709
+ let obj = chai_flag2(this, "object"), article = ~[
19710
+ "a",
19711
+ "e",
19712
+ "i",
19713
+ "o",
19714
+ "u"
19715
+ ].indexOf(type3.charAt(0)) ? "an " : "a ";
19716
+ const detectedType = node_modules_chai_type(obj).toLowerCase();
19717
+ if (chai_functionTypes["function"].includes(type3)) this.assert(chai_functionTypes[type3].includes(detectedType), "expected #{this} to be " + article + type3, "expected #{this} not to be " + article + type3);
19718
+ else this.assert(type3 === detectedType, "expected #{this} to be " + article + type3, "expected #{this} not to be " + article + type3);
19719
+ }
19720
+ chai_name(chai_an, "an");
19721
+ node_modules_chai_Assertion.addChainableMethod("an", chai_an);
19722
+ node_modules_chai_Assertion.addChainableMethod("a", chai_an);
19723
+ function chai_SameValueZero(a, b) {
19724
+ return chai_isNaN2(a) && chai_isNaN2(b) || a === b;
19725
+ }
19726
+ chai_name(chai_SameValueZero, "SameValueZero");
19727
+ function chai_includeChainingBehavior() {
19728
+ chai_flag2(this, "contains", true);
19729
+ }
19730
+ chai_name(chai_includeChainingBehavior, "includeChainingBehavior");
19731
+ function chai_include(val, msg) {
19732
+ if (msg) chai_flag2(this, "message", msg);
19733
+ let obj = chai_flag2(this, "object"), objType = node_modules_chai_type(obj).toLowerCase(), flagMsg = chai_flag2(this, "message"), negate = chai_flag2(this, "negate"), ssfi = chai_flag2(this, "ssfi"), isDeep = chai_flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? chai_flag2(this, "eql") : chai_SameValueZero;
19734
+ flagMsg = flagMsg ? flagMsg + ": " : "";
19735
+ let included = false;
19736
+ switch(objType){
19737
+ case "string":
19738
+ included = -1 !== obj.indexOf(val);
19739
+ break;
19740
+ case "weakset":
19741
+ if (isDeep) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "unable to use .deep.include with WeakSet", void 0, ssfi);
19742
+ included = obj.has(val);
19743
+ break;
19744
+ case "map":
19745
+ obj.forEach(function(item) {
19746
+ included = included || isEql(item, val);
19747
+ });
19748
+ break;
19749
+ case "set":
19750
+ if (isDeep) obj.forEach(function(item) {
19751
+ included = included || isEql(item, val);
19752
+ });
19753
+ else included = obj.has(val);
19754
+ break;
19755
+ case "array":
19756
+ included = isDeep ? obj.some(function(item) {
19757
+ return isEql(item, val);
19758
+ }) : -1 !== obj.indexOf(val);
19759
+ break;
19760
+ default:
19761
+ {
19762
+ if (val !== Object(val)) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "the given combination of arguments (" + objType + " and " + node_modules_chai_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 " + node_modules_chai_type(val).toLowerCase(), void 0, ssfi);
19763
+ let props = Object.keys(val);
19764
+ let firstErr = null;
19765
+ let numErrs = 0;
19766
+ props.forEach(function(prop) {
19767
+ let propAssertion = new node_modules_chai_Assertion(obj);
19768
+ chai_transferFlags(this, propAssertion, true);
19769
+ chai_flag2(propAssertion, "lockSsfi", true);
19770
+ if (!negate || 1 === props.length) return void propAssertion.property(prop, val[prop]);
19771
+ try {
19772
+ propAssertion.property(prop, val[prop]);
19773
+ } catch (err) {
19774
+ if (!chai_check_error_exports.compatibleConstructor(err, chai_6_2_2_node_modules_chai_AssertionError)) throw err;
19775
+ if (null === firstErr) firstErr = err;
19776
+ numErrs++;
19777
+ }
19778
+ }, this);
19779
+ if (negate && props.length > 1 && numErrs === props.length) throw firstErr;
19780
+ return;
19781
+ }
19782
+ }
19783
+ this.assert(included, "expected #{this} to " + descriptor + "include " + chai_inspect2(val), "expected #{this} to not " + descriptor + "include " + chai_inspect2(val));
19784
+ }
19785
+ chai_name(chai_include, "include");
19786
+ node_modules_chai_Assertion.addChainableMethod("include", chai_include, chai_includeChainingBehavior);
19787
+ node_modules_chai_Assertion.addChainableMethod("contain", chai_include, chai_includeChainingBehavior);
19788
+ node_modules_chai_Assertion.addChainableMethod("contains", chai_include, chai_includeChainingBehavior);
19789
+ node_modules_chai_Assertion.addChainableMethod("includes", chai_include, chai_includeChainingBehavior);
19790
+ node_modules_chai_Assertion.addProperty("ok", function() {
19791
+ this.assert(chai_flag2(this, "object"), "expected #{this} to be truthy", "expected #{this} to be falsy");
19792
+ });
19793
+ node_modules_chai_Assertion.addProperty("true", function() {
19794
+ this.assert(true === chai_flag2(this, "object"), "expected #{this} to be true", "expected #{this} to be false", !chai_flag2(this, "negate"));
19795
+ });
19796
+ node_modules_chai_Assertion.addProperty("numeric", function() {
19797
+ const object = chai_flag2(this, "object");
19798
+ this.assert([
19799
+ "Number",
19800
+ "BigInt"
19801
+ ].includes(node_modules_chai_type(object)), "expected #{this} to be numeric", "expected #{this} to not be numeric", !chai_flag2(this, "negate"));
19802
+ });
19803
+ node_modules_chai_Assertion.addProperty("callable", function() {
19804
+ const val = chai_flag2(this, "object");
19805
+ const ssfi = chai_flag2(this, "ssfi");
19806
+ const message = chai_flag2(this, "message");
19807
+ const msg = message ? `${message}: ` : "";
19808
+ const negate = chai_flag2(this, "negate");
19809
+ const assertionMessage = negate ? `${msg}expected ${chai_inspect2(val)} not to be a callable function` : `${msg}expected ${chai_inspect2(val)} to be a callable function`;
19810
+ const isCallable = [
19811
+ "Function",
19812
+ "AsyncFunction",
19813
+ "GeneratorFunction",
19814
+ "AsyncGeneratorFunction"
19815
+ ].includes(node_modules_chai_type(val));
19816
+ if (isCallable && negate || !isCallable && !negate) throw new chai_6_2_2_node_modules_chai_AssertionError(assertionMessage, void 0, ssfi);
19817
+ });
19818
+ node_modules_chai_Assertion.addProperty("false", function() {
19819
+ this.assert(false === chai_flag2(this, "object"), "expected #{this} to be false", "expected #{this} to be true", !!chai_flag2(this, "negate"));
19820
+ });
19821
+ node_modules_chai_Assertion.addProperty("null", function() {
19822
+ this.assert(null === chai_flag2(this, "object"), "expected #{this} to be null", "expected #{this} not to be null");
19823
+ });
19824
+ node_modules_chai_Assertion.addProperty("undefined", function() {
19825
+ this.assert(void 0 === chai_flag2(this, "object"), "expected #{this} to be undefined", "expected #{this} not to be undefined");
19826
+ });
19827
+ node_modules_chai_Assertion.addProperty("NaN", function() {
19828
+ this.assert(chai_isNaN2(chai_flag2(this, "object")), "expected #{this} to be NaN", "expected #{this} not to be NaN");
19829
+ });
19830
+ function chai_assertExist() {
19831
+ let val = chai_flag2(this, "object");
19832
+ this.assert(null != val, "expected #{this} to exist", "expected #{this} to not exist");
19833
+ }
19834
+ chai_name(chai_assertExist, "assertExist");
19835
+ node_modules_chai_Assertion.addProperty("exist", chai_assertExist);
19836
+ node_modules_chai_Assertion.addProperty("exists", chai_assertExist);
19837
+ node_modules_chai_Assertion.addProperty("empty", function() {
19838
+ let val = chai_flag2(this, "object"), ssfi = chai_flag2(this, "ssfi"), flagMsg = chai_flag2(this, "message"), itemsCount;
19839
+ flagMsg = flagMsg ? flagMsg + ": " : "";
19840
+ switch(node_modules_chai_type(val).toLowerCase()){
19841
+ case "array":
19842
+ case "string":
19843
+ itemsCount = val.length;
19844
+ break;
19845
+ case "map":
19846
+ case "set":
19847
+ itemsCount = val.size;
19848
+ break;
19849
+ case "weakmap":
19850
+ case "weakset":
19851
+ throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + ".empty was passed a weak collection", void 0, ssfi);
19852
+ case "function":
19853
+ {
19854
+ const msg = flagMsg + ".empty was passed a function " + chai_getName(val);
19855
+ throw new chai_6_2_2_node_modules_chai_AssertionError(msg.trim(), void 0, ssfi);
19856
+ }
19857
+ default:
19858
+ if (val !== Object(val)) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + ".empty was passed non-string primitive " + chai_inspect2(val), void 0, ssfi);
19859
+ itemsCount = Object.keys(val).length;
19860
+ }
19861
+ this.assert(0 === itemsCount, "expected #{this} to be empty", "expected #{this} not to be empty");
19862
+ });
19863
+ function chai_checkArguments() {
19864
+ let obj = chai_flag2(this, "object"), type3 = node_modules_chai_type(obj);
19865
+ this.assert("Arguments" === type3, "expected #{this} to be arguments but got " + type3, "expected #{this} to not be arguments");
19866
+ }
19867
+ chai_name(chai_checkArguments, "checkArguments");
19868
+ node_modules_chai_Assertion.addProperty("arguments", chai_checkArguments);
19869
+ node_modules_chai_Assertion.addProperty("Arguments", chai_checkArguments);
19870
+ function chai_assertEqual(val, msg) {
19871
+ if (msg) chai_flag2(this, "message", msg);
19872
+ let obj = chai_flag2(this, "object");
19873
+ if (chai_flag2(this, "deep")) {
19874
+ let prevLockSsfi = chai_flag2(this, "lockSsfi");
19875
+ chai_flag2(this, "lockSsfi", true);
19876
+ this.eql(val);
19877
+ chai_flag2(this, "lockSsfi", prevLockSsfi);
19878
+ } else this.assert(val === obj, "expected #{this} to equal #{exp}", "expected #{this} to not equal #{exp}", val, this._obj, true);
19879
+ }
19880
+ chai_name(chai_assertEqual, "assertEqual");
19881
+ node_modules_chai_Assertion.addMethod("equal", chai_assertEqual);
19882
+ node_modules_chai_Assertion.addMethod("equals", chai_assertEqual);
19883
+ node_modules_chai_Assertion.addMethod("eq", chai_assertEqual);
19884
+ function chai_assertEql(obj, msg) {
19885
+ if (msg) chai_flag2(this, "message", msg);
19886
+ let eql = chai_flag2(this, "eql");
19887
+ this.assert(eql(obj, chai_flag2(this, "object")), "expected #{this} to deeply equal #{exp}", "expected #{this} to not deeply equal #{exp}", obj, this._obj, true);
19888
+ }
19889
+ chai_name(chai_assertEql, "assertEql");
19890
+ node_modules_chai_Assertion.addMethod("eql", chai_assertEql);
19891
+ node_modules_chai_Assertion.addMethod("eqls", chai_assertEql);
19892
+ function chai_assertAbove(n, msg) {
19893
+ if (msg) chai_flag2(this, "message", msg);
19894
+ let obj = chai_flag2(this, "object"), doLength = chai_flag2(this, "doLength"), flagMsg = chai_flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = chai_flag2(this, "ssfi"), objType = node_modules_chai_type(obj).toLowerCase(), nType = node_modules_chai_type(n).toLowerCase();
19895
+ if (doLength && "map" !== objType && "set" !== objType) new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
19896
+ if (doLength || "date" !== objType || "date" === nType) {
19897
+ if (!chai_isNumeric(n) && (doLength || chai_isNumeric(obj))) throw new chai_6_2_2_node_modules_chai_AssertionError(msgPrefix + "the argument to above must be a number", void 0, ssfi);
19898
+ else if (!doLength && "date" !== objType && !chai_isNumeric(obj)) {
19899
+ let printObj = "string" === objType ? "'" + obj + "'" : obj;
19900
+ throw new chai_6_2_2_node_modules_chai_AssertionError(msgPrefix + "expected " + printObj + " to be a number or a date", void 0, ssfi);
19901
+ }
19902
+ } else throw new chai_6_2_2_node_modules_chai_AssertionError(msgPrefix + "the argument to above must be a date", void 0, ssfi);
19903
+ if (doLength) {
19904
+ let descriptor = "length", itemsCount;
19905
+ if ("map" === objType || "set" === objType) {
19906
+ descriptor = "size";
19907
+ itemsCount = obj.size;
19908
+ } else itemsCount = obj.length;
19909
+ this.assert(itemsCount > n, "expected #{this} to have a " + descriptor + " above #{exp} but got #{act}", "expected #{this} to not have a " + descriptor + " above #{exp}", n, itemsCount);
19910
+ } else this.assert(obj > n, "expected #{this} to be above #{exp}", "expected #{this} to be at most #{exp}", n);
19911
+ }
19912
+ chai_name(chai_assertAbove, "assertAbove");
19913
+ node_modules_chai_Assertion.addMethod("above", chai_assertAbove);
19914
+ node_modules_chai_Assertion.addMethod("gt", chai_assertAbove);
19915
+ node_modules_chai_Assertion.addMethod("greaterThan", chai_assertAbove);
19916
+ function chai_assertLeast(n, msg) {
19917
+ if (msg) chai_flag2(this, "message", msg);
19918
+ let obj = chai_flag2(this, "object"), doLength = chai_flag2(this, "doLength"), flagMsg = chai_flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = chai_flag2(this, "ssfi"), objType = node_modules_chai_type(obj).toLowerCase(), nType = node_modules_chai_type(n).toLowerCase(), errorMessage, shouldThrow = true;
19919
+ if (doLength && "map" !== objType && "set" !== objType) new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
19920
+ if (doLength || "date" !== objType || "date" === nType) if (!chai_isNumeric(n) && (doLength || chai_isNumeric(obj))) errorMessage = msgPrefix + "the argument to least must be a number";
19921
+ else if (doLength || "date" === objType || chai_isNumeric(obj)) shouldThrow = false;
19922
+ else {
19923
+ let printObj = "string" === objType ? "'" + obj + "'" : obj;
19924
+ errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
19925
+ }
19926
+ else errorMessage = msgPrefix + "the argument to least must be a date";
19927
+ if (shouldThrow) throw new chai_6_2_2_node_modules_chai_AssertionError(errorMessage, void 0, ssfi);
19928
+ if (doLength) {
19929
+ let descriptor = "length", itemsCount;
19930
+ if ("map" === objType || "set" === objType) {
19931
+ descriptor = "size";
19932
+ itemsCount = obj.size;
19933
+ } else itemsCount = obj.length;
19934
+ this.assert(itemsCount >= n, "expected #{this} to have a " + descriptor + " at least #{exp} but got #{act}", "expected #{this} to have a " + descriptor + " below #{exp}", n, itemsCount);
19935
+ } else this.assert(obj >= n, "expected #{this} to be at least #{exp}", "expected #{this} to be below #{exp}", n);
19936
+ }
19937
+ chai_name(chai_assertLeast, "assertLeast");
19938
+ node_modules_chai_Assertion.addMethod("least", chai_assertLeast);
19939
+ node_modules_chai_Assertion.addMethod("gte", chai_assertLeast);
19940
+ node_modules_chai_Assertion.addMethod("greaterThanOrEqual", chai_assertLeast);
19941
+ function chai_assertBelow(n, msg) {
19942
+ if (msg) chai_flag2(this, "message", msg);
19943
+ let obj = chai_flag2(this, "object"), doLength = chai_flag2(this, "doLength"), flagMsg = chai_flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = chai_flag2(this, "ssfi"), objType = node_modules_chai_type(obj).toLowerCase(), nType = node_modules_chai_type(n).toLowerCase(), errorMessage, shouldThrow = true;
19944
+ if (doLength && "map" !== objType && "set" !== objType) new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
19945
+ if (doLength || "date" !== objType || "date" === nType) if (!chai_isNumeric(n) && (doLength || chai_isNumeric(obj))) errorMessage = msgPrefix + "the argument to below must be a number";
19946
+ else if (doLength || "date" === objType || chai_isNumeric(obj)) shouldThrow = false;
19947
+ else {
19948
+ let printObj = "string" === objType ? "'" + obj + "'" : obj;
19949
+ errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
19950
+ }
19951
+ else errorMessage = msgPrefix + "the argument to below must be a date";
19952
+ if (shouldThrow) throw new chai_6_2_2_node_modules_chai_AssertionError(errorMessage, void 0, ssfi);
19953
+ if (doLength) {
19954
+ let descriptor = "length", itemsCount;
19955
+ if ("map" === objType || "set" === objType) {
19956
+ descriptor = "size";
19957
+ itemsCount = obj.size;
19958
+ } else itemsCount = obj.length;
19959
+ this.assert(itemsCount < n, "expected #{this} to have a " + descriptor + " below #{exp} but got #{act}", "expected #{this} to not have a " + descriptor + " below #{exp}", n, itemsCount);
19960
+ } else this.assert(obj < n, "expected #{this} to be below #{exp}", "expected #{this} to be at least #{exp}", n);
19961
+ }
19962
+ chai_name(chai_assertBelow, "assertBelow");
19963
+ node_modules_chai_Assertion.addMethod("below", chai_assertBelow);
19964
+ node_modules_chai_Assertion.addMethod("lt", chai_assertBelow);
19965
+ node_modules_chai_Assertion.addMethod("lessThan", chai_assertBelow);
19966
+ function chai_assertMost(n, msg) {
19967
+ if (msg) chai_flag2(this, "message", msg);
19968
+ let obj = chai_flag2(this, "object"), doLength = chai_flag2(this, "doLength"), flagMsg = chai_flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = chai_flag2(this, "ssfi"), objType = node_modules_chai_type(obj).toLowerCase(), nType = node_modules_chai_type(n).toLowerCase(), errorMessage, shouldThrow = true;
19969
+ if (doLength && "map" !== objType && "set" !== objType) new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
19970
+ if (doLength || "date" !== objType || "date" === nType) if (!chai_isNumeric(n) && (doLength || chai_isNumeric(obj))) errorMessage = msgPrefix + "the argument to most must be a number";
19971
+ else if (doLength || "date" === objType || chai_isNumeric(obj)) shouldThrow = false;
19972
+ else {
19973
+ let printObj = "string" === objType ? "'" + obj + "'" : obj;
19974
+ errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
19975
+ }
19976
+ else errorMessage = msgPrefix + "the argument to most must be a date";
19977
+ if (shouldThrow) throw new chai_6_2_2_node_modules_chai_AssertionError(errorMessage, void 0, ssfi);
19978
+ if (doLength) {
19979
+ let descriptor = "length", itemsCount;
19980
+ if ("map" === objType || "set" === objType) {
19981
+ descriptor = "size";
19982
+ itemsCount = obj.size;
19983
+ } else itemsCount = obj.length;
19984
+ this.assert(itemsCount <= n, "expected #{this} to have a " + descriptor + " at most #{exp} but got #{act}", "expected #{this} to have a " + descriptor + " above #{exp}", n, itemsCount);
19985
+ } else this.assert(obj <= n, "expected #{this} to be at most #{exp}", "expected #{this} to be above #{exp}", n);
19986
+ }
19987
+ chai_name(chai_assertMost, "assertMost");
19988
+ node_modules_chai_Assertion.addMethod("most", chai_assertMost);
19989
+ node_modules_chai_Assertion.addMethod("lte", chai_assertMost);
19990
+ node_modules_chai_Assertion.addMethod("lessThanOrEqual", chai_assertMost);
19991
+ node_modules_chai_Assertion.addMethod("within", function(start, finish, msg) {
19992
+ if (msg) chai_flag2(this, "message", msg);
19993
+ let obj = chai_flag2(this, "object"), doLength = chai_flag2(this, "doLength"), flagMsg = chai_flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = chai_flag2(this, "ssfi"), objType = node_modules_chai_type(obj).toLowerCase(), startType = node_modules_chai_type(start).toLowerCase(), finishType = node_modules_chai_type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = "date" === startType && "date" === finishType ? start.toISOString() + ".." + finish.toISOString() : start + ".." + finish;
19994
+ if (doLength && "map" !== objType && "set" !== objType) new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
19995
+ if (doLength || "date" !== objType || "date" === startType && "date" === finishType) if ((!chai_isNumeric(start) || !chai_isNumeric(finish)) && (doLength || chai_isNumeric(obj))) errorMessage = msgPrefix + "the arguments to within must be numbers";
19996
+ else if (doLength || "date" === objType || chai_isNumeric(obj)) shouldThrow = false;
19997
+ else {
19998
+ let printObj = "string" === objType ? "'" + obj + "'" : obj;
19999
+ errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
20000
+ }
20001
+ else errorMessage = msgPrefix + "the arguments to within must be dates";
20002
+ if (shouldThrow) throw new chai_6_2_2_node_modules_chai_AssertionError(errorMessage, void 0, ssfi);
20003
+ if (doLength) {
20004
+ let descriptor = "length", itemsCount;
20005
+ if ("map" === objType || "set" === objType) {
20006
+ descriptor = "size";
20007
+ itemsCount = obj.size;
20008
+ } else itemsCount = obj.length;
20009
+ this.assert(itemsCount >= start && itemsCount <= finish, "expected #{this} to have a " + descriptor + " within " + range, "expected #{this} to not have a " + descriptor + " within " + range);
20010
+ } else this.assert(obj >= start && obj <= finish, "expected #{this} to be within " + range, "expected #{this} to not be within " + range);
20011
+ });
20012
+ function chai_assertInstanceOf(constructor, msg) {
20013
+ if (msg) chai_flag2(this, "message", msg);
20014
+ let target = chai_flag2(this, "object");
20015
+ let ssfi = chai_flag2(this, "ssfi");
20016
+ let flagMsg = chai_flag2(this, "message");
20017
+ let isInstanceOf;
20018
+ try {
20019
+ isInstanceOf = target instanceof constructor;
20020
+ } catch (err) {
20021
+ if (err instanceof TypeError) {
20022
+ flagMsg = flagMsg ? flagMsg + ": " : "";
20023
+ throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "The instanceof assertion needs a constructor but " + node_modules_chai_type(constructor) + " was given.", void 0, ssfi);
20024
+ }
20025
+ throw err;
20026
+ }
20027
+ let name = chai_getName(constructor);
20028
+ if (null == name) name = "an unnamed constructor";
20029
+ this.assert(isInstanceOf, "expected #{this} to be an instance of " + name, "expected #{this} to not be an instance of " + name);
20030
+ }
20031
+ chai_name(chai_assertInstanceOf, "assertInstanceOf");
20032
+ node_modules_chai_Assertion.addMethod("instanceof", chai_assertInstanceOf);
20033
+ node_modules_chai_Assertion.addMethod("instanceOf", chai_assertInstanceOf);
20034
+ function chai_assertProperty(name, val, msg) {
20035
+ if (msg) chai_flag2(this, "message", msg);
20036
+ let isNested = chai_flag2(this, "nested"), isOwn = chai_flag2(this, "own"), flagMsg = chai_flag2(this, "message"), obj = chai_flag2(this, "object"), ssfi = chai_flag2(this, "ssfi"), nameType = typeof name;
20037
+ flagMsg = flagMsg ? flagMsg + ": " : "";
20038
+ if (isNested) {
20039
+ if ("string" !== nameType) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "the argument to property must be a string when using nested syntax", void 0, ssfi);
20040
+ } else if ("string" !== nameType && "number" !== nameType && "symbol" !== nameType) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "the argument to property must be a string, number, or symbol", void 0, ssfi);
20041
+ if (isNested && isOwn) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + 'The "nested" and "own" flags cannot be combined.', void 0, ssfi);
20042
+ if (null == obj) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "Target cannot be null or undefined.", void 0, ssfi);
20043
+ let isDeep = chai_flag2(this, "deep"), negate = chai_flag2(this, "negate"), pathInfo = isNested ? chai_getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? chai_flag2(this, "eql") : (val1, val2)=>val1 === val2;
20044
+ let descriptor = "";
20045
+ if (isDeep) descriptor += "deep ";
20046
+ if (isOwn) descriptor += "own ";
20047
+ if (isNested) descriptor += "nested ";
20048
+ descriptor += "property ";
20049
+ let hasProperty2;
20050
+ hasProperty2 = isOwn ? Object.prototype.hasOwnProperty.call(obj, name) : isNested ? pathInfo.exists : chai_hasProperty(obj, name);
20051
+ if (!negate || 1 === arguments.length) this.assert(hasProperty2, "expected #{this} to have " + descriptor + chai_inspect2(name), "expected #{this} to not have " + descriptor + chai_inspect2(name));
20052
+ if (arguments.length > 1) this.assert(hasProperty2 && isEql(val, value), "expected #{this} to have " + descriptor + chai_inspect2(name) + " of #{exp}, but got #{act}", "expected #{this} to not have " + descriptor + chai_inspect2(name) + " of #{act}", val, value);
20053
+ chai_flag2(this, "object", value);
20054
+ }
20055
+ chai_name(chai_assertProperty, "assertProperty");
20056
+ node_modules_chai_Assertion.addMethod("property", chai_assertProperty);
20057
+ function chai_assertOwnProperty(_name, _value, _msg) {
20058
+ chai_flag2(this, "own", true);
20059
+ chai_assertProperty.apply(this, arguments);
20060
+ }
20061
+ chai_name(chai_assertOwnProperty, "assertOwnProperty");
20062
+ node_modules_chai_Assertion.addMethod("ownProperty", chai_assertOwnProperty);
20063
+ node_modules_chai_Assertion.addMethod("haveOwnProperty", chai_assertOwnProperty);
20064
+ function chai_assertOwnPropertyDescriptor(name, descriptor, msg) {
20065
+ if ("string" == typeof descriptor) {
20066
+ msg = descriptor;
20067
+ descriptor = null;
20068
+ }
20069
+ if (msg) chai_flag2(this, "message", msg);
20070
+ let obj = chai_flag2(this, "object");
20071
+ let actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);
20072
+ let eql = chai_flag2(this, "eql");
20073
+ if (actualDescriptor && descriptor) this.assert(eql(descriptor, actualDescriptor), "expected the own property descriptor for " + chai_inspect2(name) + " on #{this} to match " + chai_inspect2(descriptor) + ", got " + chai_inspect2(actualDescriptor), "expected the own property descriptor for " + chai_inspect2(name) + " on #{this} to not match " + chai_inspect2(descriptor), descriptor, actualDescriptor, true);
20074
+ else this.assert(actualDescriptor, "expected #{this} to have an own property descriptor for " + chai_inspect2(name), "expected #{this} to not have an own property descriptor for " + chai_inspect2(name));
20075
+ chai_flag2(this, "object", actualDescriptor);
20076
+ }
20077
+ chai_name(chai_assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor");
20078
+ node_modules_chai_Assertion.addMethod("ownPropertyDescriptor", chai_assertOwnPropertyDescriptor);
20079
+ node_modules_chai_Assertion.addMethod("haveOwnPropertyDescriptor", chai_assertOwnPropertyDescriptor);
20080
+ function chai_assertLengthChain() {
20081
+ chai_flag2(this, "doLength", true);
20082
+ }
20083
+ chai_name(chai_assertLengthChain, "assertLengthChain");
20084
+ function chai_assertLength(n, msg) {
20085
+ if (msg) chai_flag2(this, "message", msg);
20086
+ let obj = chai_flag2(this, "object"), objType = node_modules_chai_type(obj).toLowerCase(), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi"), descriptor = "length", itemsCount;
20087
+ switch(objType){
20088
+ case "map":
20089
+ case "set":
20090
+ descriptor = "size";
20091
+ itemsCount = obj.size;
20092
+ break;
20093
+ default:
20094
+ new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
20095
+ itemsCount = obj.length;
20096
+ }
20097
+ this.assert(itemsCount == n, "expected #{this} to have a " + descriptor + " of #{exp} but got #{act}", "expected #{this} to not have a " + descriptor + " of #{act}", n, itemsCount);
20098
+ }
20099
+ chai_name(chai_assertLength, "assertLength");
20100
+ node_modules_chai_Assertion.addChainableMethod("length", chai_assertLength, chai_assertLengthChain);
20101
+ node_modules_chai_Assertion.addChainableMethod("lengthOf", chai_assertLength, chai_assertLengthChain);
20102
+ function chai_assertMatch(re, msg) {
20103
+ if (msg) chai_flag2(this, "message", msg);
20104
+ let obj = chai_flag2(this, "object");
20105
+ this.assert(re.exec(obj), "expected #{this} to match " + re, "expected #{this} not to match " + re);
20106
+ }
20107
+ chai_name(chai_assertMatch, "assertMatch");
20108
+ node_modules_chai_Assertion.addMethod("match", chai_assertMatch);
20109
+ node_modules_chai_Assertion.addMethod("matches", chai_assertMatch);
20110
+ node_modules_chai_Assertion.addMethod("string", function(str, msg) {
20111
+ if (msg) chai_flag2(this, "message", msg);
20112
+ let obj = chai_flag2(this, "object"), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi");
20113
+ new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).is.a("string");
20114
+ this.assert(~obj.indexOf(str), "expected #{this} to contain " + chai_inspect2(str), "expected #{this} to not contain " + chai_inspect2(str));
20115
+ });
20116
+ function chai_assertKeys(keys) {
20117
+ let obj = chai_flag2(this, "object"), objType = node_modules_chai_type(obj), keysType = node_modules_chai_type(keys), ssfi = chai_flag2(this, "ssfi"), isDeep = chai_flag2(this, "deep"), str, deepStr = "", actual, ok = true, flagMsg = chai_flag2(this, "message");
20118
+ flagMsg = flagMsg ? flagMsg + ": " : "";
20119
+ 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";
20120
+ if ("Map" === objType || "Set" === objType) {
20121
+ deepStr = isDeep ? "deeply " : "";
20122
+ actual = [];
20123
+ obj.forEach(function(val, key) {
20124
+ actual.push(key);
20125
+ });
20126
+ if ("Array" !== keysType) keys = Array.prototype.slice.call(arguments);
20127
+ } else {
20128
+ actual = chai_getOwnEnumerableProperties(obj);
20129
+ switch(keysType){
20130
+ case "Array":
20131
+ if (arguments.length > 1) throw new chai_6_2_2_node_modules_chai_AssertionError(mixedArgsMsg, void 0, ssfi);
20132
+ break;
20133
+ case "Object":
20134
+ if (arguments.length > 1) throw new chai_6_2_2_node_modules_chai_AssertionError(mixedArgsMsg, void 0, ssfi);
20135
+ keys = Object.keys(keys);
20136
+ break;
20137
+ default:
20138
+ keys = Array.prototype.slice.call(arguments);
20139
+ }
20140
+ keys = keys.map(function(val) {
20141
+ return "symbol" == typeof val ? val : String(val);
20142
+ });
20143
+ }
20144
+ if (!keys.length) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg + "keys required", void 0, ssfi);
20145
+ let len = keys.length, any = chai_flag2(this, "any"), all = chai_flag2(this, "all"), expected = keys, isEql = isDeep ? chai_flag2(this, "eql") : (val1, val2)=>val1 === val2;
20146
+ if (!any && !all) all = true;
20147
+ if (any) ok = expected.some(function(expectedKey) {
20148
+ return actual.some(function(actualKey) {
20149
+ return isEql(expectedKey, actualKey);
20150
+ });
20151
+ });
20152
+ if (all) {
20153
+ ok = expected.every(function(expectedKey) {
20154
+ return actual.some(function(actualKey) {
20155
+ return isEql(expectedKey, actualKey);
20156
+ });
20157
+ });
20158
+ if (!chai_flag2(this, "contains")) ok = ok && keys.length == actual.length;
20159
+ }
20160
+ if (len > 1) {
20161
+ keys = keys.map(function(key) {
20162
+ return chai_inspect2(key);
20163
+ });
20164
+ let last = keys.pop();
20165
+ if (all) str = keys.join(", ") + ", and " + last;
20166
+ if (any) str = keys.join(", ") + ", or " + last;
20167
+ } else str = chai_inspect2(keys[0]);
20168
+ str = (len > 1 ? "keys " : "key ") + str;
20169
+ str = (chai_flag2(this, "contains") ? "contain " : "have ") + str;
20170
+ this.assert(ok, "expected #{this} to " + deepStr + str, "expected #{this} to not " + deepStr + str, expected.slice(0).sort(chai_compareByInspect), actual.sort(chai_compareByInspect), true);
20171
+ }
20172
+ chai_name(chai_assertKeys, "assertKeys");
20173
+ node_modules_chai_Assertion.addMethod("keys", chai_assertKeys);
20174
+ node_modules_chai_Assertion.addMethod("key", chai_assertKeys);
20175
+ function chai_assertThrows(errorLike, errMsgMatcher, msg) {
20176
+ if (msg) chai_flag2(this, "message", msg);
20177
+ let obj = chai_flag2(this, "object"), ssfi = chai_flag2(this, "ssfi"), flagMsg = chai_flag2(this, "message"), negate = chai_flag2(this, "negate") || false;
20178
+ new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).is.a("function");
20179
+ if (chai_isRegExp2(errorLike) || "string" == typeof errorLike) {
20180
+ errMsgMatcher = errorLike;
20181
+ errorLike = null;
20182
+ }
20183
+ let caughtErr;
20184
+ let errorWasThrown = false;
20185
+ try {
20186
+ obj();
20187
+ } catch (err) {
20188
+ errorWasThrown = true;
20189
+ caughtErr = err;
20190
+ }
20191
+ let everyArgIsUndefined = void 0 === errorLike && void 0 === errMsgMatcher;
20192
+ let everyArgIsDefined = Boolean(errorLike && errMsgMatcher);
20193
+ let errorLikeFail = false;
20194
+ let errMsgMatcherFail = false;
20195
+ if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {
20196
+ let errorLikeString = "an error";
20197
+ if (errorLike instanceof Error) errorLikeString = "#{exp}";
20198
+ else if (errorLike) errorLikeString = chai_check_error_exports.getConstructorName(errorLike);
20199
+ let actual = caughtErr;
20200
+ if (caughtErr instanceof Error) actual = caughtErr.toString();
20201
+ else if ("string" == typeof caughtErr) actual = caughtErr;
20202
+ else if (caughtErr && ("object" == typeof caughtErr || "function" == typeof caughtErr)) try {
20203
+ actual = chai_check_error_exports.getConstructorName(caughtErr);
20204
+ } catch (_err) {}
20205
+ this.assert(errorWasThrown, "expected #{this} to throw " + errorLikeString, "expected #{this} to not throw an error but #{act} was thrown", errorLike && errorLike.toString(), actual);
20206
+ }
20207
+ if (errorLike && caughtErr) {
20208
+ if (errorLike instanceof Error) {
20209
+ let isCompatibleInstance = chai_check_error_exports.compatibleInstance(caughtErr, errorLike);
20210
+ if (isCompatibleInstance === negate) if (everyArgIsDefined && negate) errorLikeFail = true;
20211
+ else this.assert(negate, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (caughtErr && !negate ? " but #{act} was thrown" : ""), errorLike.toString(), caughtErr.toString());
20212
+ }
20213
+ let isCompatibleConstructor = chai_check_error_exports.compatibleConstructor(caughtErr, errorLike);
20214
+ if (isCompatibleConstructor === negate) if (everyArgIsDefined && negate) errorLikeFail = true;
20215
+ else this.assert(negate, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), errorLike instanceof Error ? errorLike.toString() : errorLike && chai_check_error_exports.getConstructorName(errorLike), caughtErr instanceof Error ? caughtErr.toString() : caughtErr && chai_check_error_exports.getConstructorName(caughtErr));
20216
+ }
20217
+ if (caughtErr && null != errMsgMatcher) {
20218
+ let placeholder = "including";
20219
+ if (chai_isRegExp2(errMsgMatcher)) placeholder = "matching";
20220
+ let isCompatibleMessage = chai_check_error_exports.compatibleMessage(caughtErr, errMsgMatcher);
20221
+ if (isCompatibleMessage === negate) if (everyArgIsDefined && negate) errMsgMatcherFail = true;
20222
+ else this.assert(negate, "expected #{this} to throw error " + placeholder + " #{exp} but got #{act}", "expected #{this} to throw error not " + placeholder + " #{exp}", errMsgMatcher, chai_check_error_exports.getMessage(caughtErr));
20223
+ }
20224
+ if (errorLikeFail && errMsgMatcherFail) this.assert(negate, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), errorLike instanceof Error ? errorLike.toString() : errorLike && chai_check_error_exports.getConstructorName(errorLike), caughtErr instanceof Error ? caughtErr.toString() : caughtErr && chai_check_error_exports.getConstructorName(caughtErr));
20225
+ chai_flag2(this, "object", caughtErr);
20226
+ }
20227
+ chai_name(chai_assertThrows, "assertThrows");
20228
+ node_modules_chai_Assertion.addMethod("throw", chai_assertThrows);
20229
+ node_modules_chai_Assertion.addMethod("throws", chai_assertThrows);
20230
+ node_modules_chai_Assertion.addMethod("Throw", chai_assertThrows);
20231
+ function chai_respondTo(method, msg) {
20232
+ if (msg) chai_flag2(this, "message", msg);
20233
+ let obj = chai_flag2(this, "object"), itself = chai_flag2(this, "itself"), context = "function" != typeof obj || itself ? obj[method] : obj.prototype[method];
20234
+ this.assert("function" == typeof context, "expected #{this} to respond to " + chai_inspect2(method), "expected #{this} to not respond to " + chai_inspect2(method));
20235
+ }
20236
+ chai_name(chai_respondTo, "respondTo");
20237
+ node_modules_chai_Assertion.addMethod("respondTo", chai_respondTo);
20238
+ node_modules_chai_Assertion.addMethod("respondsTo", chai_respondTo);
20239
+ node_modules_chai_Assertion.addProperty("itself", function() {
20240
+ chai_flag2(this, "itself", true);
20241
+ });
20242
+ function chai_satisfy(matcher, msg) {
20243
+ if (msg) chai_flag2(this, "message", msg);
20244
+ let obj = chai_flag2(this, "object");
20245
+ let result = matcher(obj);
20246
+ this.assert(result, "expected #{this} to satisfy " + node_modules_chai_objDisplay(matcher), "expected #{this} to not satisfy" + node_modules_chai_objDisplay(matcher), !chai_flag2(this, "negate"), result);
20247
+ }
20248
+ chai_name(chai_satisfy, "satisfy");
20249
+ node_modules_chai_Assertion.addMethod("satisfy", chai_satisfy);
20250
+ node_modules_chai_Assertion.addMethod("satisfies", chai_satisfy);
20251
+ function chai_closeTo(expected, delta, msg) {
20252
+ if (msg) chai_flag2(this, "message", msg);
20253
+ let obj = chai_flag2(this, "object"), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi");
20254
+ new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).is.numeric;
20255
+ let message = "A `delta` value is required for `closeTo`";
20256
+ if (void 0 == delta) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg ? `${flagMsg}: ${message}` : message, void 0, ssfi);
20257
+ new node_modules_chai_Assertion(delta, flagMsg, ssfi, true).is.numeric;
20258
+ message = "A `expected` value is required for `closeTo`";
20259
+ if (void 0 == expected) throw new chai_6_2_2_node_modules_chai_AssertionError(flagMsg ? `${flagMsg}: ${message}` : message, void 0, ssfi);
20260
+ new node_modules_chai_Assertion(expected, flagMsg, ssfi, true).is.numeric;
20261
+ const abs = /* @__PURE__ */ chai_name((x)=>x < 0 ? -x : x, "abs");
20262
+ const strip = /* @__PURE__ */ chai_name((number)=>parseFloat(parseFloat(number).toPrecision(12)), "strip");
20263
+ this.assert(strip(abs(obj - expected)) <= delta, "expected #{this} to be close to " + expected + " +/- " + delta, "expected #{this} not to be close to " + expected + " +/- " + delta);
20264
+ }
20265
+ chai_name(chai_closeTo, "closeTo");
20266
+ node_modules_chai_Assertion.addMethod("closeTo", chai_closeTo);
20267
+ node_modules_chai_Assertion.addMethod("approximately", chai_closeTo);
20268
+ function chai_isSubsetOf(_subset, _superset, cmp, contains, ordered) {
20269
+ let superset = Array.from(_superset);
20270
+ let subset = Array.from(_subset);
20271
+ if (!contains) {
20272
+ if (subset.length !== superset.length) return false;
20273
+ superset = superset.slice();
20274
+ }
20275
+ return subset.every(function(elem, idx) {
20276
+ if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
20277
+ if (!cmp) {
20278
+ let matchIdx = superset.indexOf(elem);
20279
+ if (-1 === matchIdx) return false;
20280
+ if (!contains) superset.splice(matchIdx, 1);
20281
+ return true;
20282
+ }
20283
+ return superset.some(function(elem2, matchIdx) {
20284
+ if (!cmp(elem, elem2)) return false;
20285
+ if (!contains) superset.splice(matchIdx, 1);
20286
+ return true;
20287
+ });
20288
+ });
20289
+ }
20290
+ chai_name(chai_isSubsetOf, "isSubsetOf");
20291
+ node_modules_chai_Assertion.addMethod("members", function(subset, msg) {
20292
+ if (msg) chai_flag2(this, "message", msg);
20293
+ let obj = chai_flag2(this, "object"), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi");
20294
+ new node_modules_chai_Assertion(obj, flagMsg, ssfi, true).to.be.iterable;
20295
+ new node_modules_chai_Assertion(subset, flagMsg, ssfi, true).to.be.iterable;
20296
+ let contains = chai_flag2(this, "contains");
20297
+ let ordered = chai_flag2(this, "ordered");
20298
+ let subject, failMsg, failNegateMsg;
20299
+ if (contains) {
20300
+ subject = ordered ? "an ordered superset" : "a superset";
20301
+ failMsg = "expected #{this} to be " + subject + " of #{exp}";
20302
+ failNegateMsg = "expected #{this} to not be " + subject + " of #{exp}";
20303
+ } else {
20304
+ subject = ordered ? "ordered members" : "members";
20305
+ failMsg = "expected #{this} to have the same " + subject + " as #{exp}";
20306
+ failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}";
20307
+ }
20308
+ let cmp = chai_flag2(this, "deep") ? chai_flag2(this, "eql") : void 0;
20309
+ this.assert(chai_isSubsetOf(subset, obj, cmp, contains, ordered), failMsg, failNegateMsg, subset, obj, true);
20310
+ });
20311
+ node_modules_chai_Assertion.addProperty("iterable", function(msg) {
20312
+ if (msg) chai_flag2(this, "message", msg);
20313
+ let obj = chai_flag2(this, "object");
20314
+ this.assert(void 0 != obj && obj[Symbol.iterator], "expected #{this} to be an iterable", "expected #{this} to not be an iterable", obj);
20315
+ });
20316
+ function chai_oneOf(list, msg) {
20317
+ if (msg) chai_flag2(this, "message", msg);
20318
+ let expected = chai_flag2(this, "object"), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi"), contains = chai_flag2(this, "contains"), isDeep = chai_flag2(this, "deep"), eql = chai_flag2(this, "eql");
20319
+ new node_modules_chai_Assertion(list, flagMsg, ssfi, true).to.be.an("array");
20320
+ if (contains) this.assert(list.some(function(possibility) {
20321
+ return expected.indexOf(possibility) > -1;
20322
+ }), "expected #{this} to contain one of #{exp}", "expected #{this} to not contain one of #{exp}", list, expected);
20323
+ else if (isDeep) this.assert(list.some(function(possibility) {
20324
+ return eql(expected, possibility);
20325
+ }), "expected #{this} to deeply equal one of #{exp}", "expected #{this} to deeply equal one of #{exp}", list, expected);
20326
+ else this.assert(list.indexOf(expected) > -1, "expected #{this} to be one of #{exp}", "expected #{this} to not be one of #{exp}", list, expected);
20327
+ }
20328
+ chai_name(chai_oneOf, "oneOf");
20329
+ node_modules_chai_Assertion.addMethod("oneOf", chai_oneOf);
20330
+ function chai_assertChanges(subject, prop, msg) {
20331
+ if (msg) chai_flag2(this, "message", msg);
20332
+ let fn = chai_flag2(this, "object"), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi");
20333
+ new node_modules_chai_Assertion(fn, flagMsg, ssfi, true).is.a("function");
20334
+ let initial;
20335
+ if (prop) {
20336
+ new node_modules_chai_Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);
20337
+ initial = subject[prop];
20338
+ } else {
20339
+ new node_modules_chai_Assertion(subject, flagMsg, ssfi, true).is.a("function");
20340
+ initial = subject();
20341
+ }
20342
+ fn();
20343
+ let final = null == prop ? subject() : subject[prop];
20344
+ let msgObj = null == prop ? initial : "." + prop;
20345
+ chai_flag2(this, "deltaMsgObj", msgObj);
20346
+ chai_flag2(this, "initialDeltaValue", initial);
20347
+ chai_flag2(this, "finalDeltaValue", final);
20348
+ chai_flag2(this, "deltaBehavior", "change");
20349
+ chai_flag2(this, "realDelta", final !== initial);
20350
+ this.assert(initial !== final, "expected " + msgObj + " to change", "expected " + msgObj + " to not change");
20351
+ }
20352
+ chai_name(chai_assertChanges, "assertChanges");
20353
+ node_modules_chai_Assertion.addMethod("change", chai_assertChanges);
20354
+ node_modules_chai_Assertion.addMethod("changes", chai_assertChanges);
20355
+ function chai_assertIncreases(subject, prop, msg) {
20356
+ if (msg) chai_flag2(this, "message", msg);
20357
+ let fn = chai_flag2(this, "object"), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi");
20358
+ new node_modules_chai_Assertion(fn, flagMsg, ssfi, true).is.a("function");
20359
+ let initial;
20360
+ if (prop) {
20361
+ new node_modules_chai_Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);
20362
+ initial = subject[prop];
20363
+ } else {
20364
+ new node_modules_chai_Assertion(subject, flagMsg, ssfi, true).is.a("function");
20365
+ initial = subject();
20366
+ }
20367
+ new node_modules_chai_Assertion(initial, flagMsg, ssfi, true).is.a("number");
20368
+ fn();
20369
+ let final = null == prop ? subject() : subject[prop];
20370
+ let msgObj = null == prop ? initial : "." + prop;
20371
+ chai_flag2(this, "deltaMsgObj", msgObj);
20372
+ chai_flag2(this, "initialDeltaValue", initial);
20373
+ chai_flag2(this, "finalDeltaValue", final);
20374
+ chai_flag2(this, "deltaBehavior", "increase");
20375
+ chai_flag2(this, "realDelta", final - initial);
20376
+ this.assert(final - initial > 0, "expected " + msgObj + " to increase", "expected " + msgObj + " to not increase");
20377
+ }
20378
+ chai_name(chai_assertIncreases, "assertIncreases");
20379
+ node_modules_chai_Assertion.addMethod("increase", chai_assertIncreases);
20380
+ node_modules_chai_Assertion.addMethod("increases", chai_assertIncreases);
20381
+ function chai_assertDecreases(subject, prop, msg) {
20382
+ if (msg) chai_flag2(this, "message", msg);
20383
+ let fn = chai_flag2(this, "object"), flagMsg = chai_flag2(this, "message"), ssfi = chai_flag2(this, "ssfi");
20384
+ new node_modules_chai_Assertion(fn, flagMsg, ssfi, true).is.a("function");
20385
+ let initial;
20386
+ if (prop) {
20387
+ new node_modules_chai_Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);
20388
+ initial = subject[prop];
20389
+ } else {
20390
+ new node_modules_chai_Assertion(subject, flagMsg, ssfi, true).is.a("function");
20391
+ initial = subject();
20392
+ }
20393
+ new node_modules_chai_Assertion(initial, flagMsg, ssfi, true).is.a("number");
20394
+ fn();
20395
+ let final = null == prop ? subject() : subject[prop];
20396
+ let msgObj = null == prop ? initial : "." + prop;
20397
+ chai_flag2(this, "deltaMsgObj", msgObj);
20398
+ chai_flag2(this, "initialDeltaValue", initial);
20399
+ chai_flag2(this, "finalDeltaValue", final);
20400
+ chai_flag2(this, "deltaBehavior", "decrease");
20401
+ chai_flag2(this, "realDelta", initial - final);
20402
+ this.assert(final - initial < 0, "expected " + msgObj + " to decrease", "expected " + msgObj + " to not decrease");
20403
+ }
20404
+ chai_name(chai_assertDecreases, "assertDecreases");
20405
+ node_modules_chai_Assertion.addMethod("decrease", chai_assertDecreases);
20406
+ node_modules_chai_Assertion.addMethod("decreases", chai_assertDecreases);
20407
+ function chai_assertDelta(delta, msg) {
20408
+ if (msg) chai_flag2(this, "message", msg);
20409
+ let msgObj = chai_flag2(this, "deltaMsgObj");
20410
+ let initial = chai_flag2(this, "initialDeltaValue");
20411
+ let final = chai_flag2(this, "finalDeltaValue");
20412
+ let behavior = chai_flag2(this, "deltaBehavior");
20413
+ let realDelta = chai_flag2(this, "realDelta");
20414
+ let expression;
20415
+ expression = "change" === behavior ? Math.abs(final - initial) === Math.abs(delta) : realDelta === Math.abs(delta);
20416
+ this.assert(expression, "expected " + msgObj + " to " + behavior + " by " + delta, "expected " + msgObj + " to not " + behavior + " by " + delta);
20417
+ }
20418
+ chai_name(chai_assertDelta, "assertDelta");
20419
+ node_modules_chai_Assertion.addMethod("by", chai_assertDelta);
20420
+ node_modules_chai_Assertion.addProperty("extensible", function() {
20421
+ let obj = chai_flag2(this, "object");
20422
+ let isExtensible = obj === Object(obj) && Object.isExtensible(obj);
20423
+ this.assert(isExtensible, "expected #{this} to be extensible", "expected #{this} to not be extensible");
20424
+ });
20425
+ node_modules_chai_Assertion.addProperty("sealed", function() {
20426
+ let obj = chai_flag2(this, "object");
20427
+ let isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;
20428
+ this.assert(isSealed, "expected #{this} to be sealed", "expected #{this} to not be sealed");
20429
+ });
20430
+ node_modules_chai_Assertion.addProperty("frozen", function() {
20431
+ let obj = chai_flag2(this, "object");
20432
+ let isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;
20433
+ this.assert(isFrozen, "expected #{this} to be frozen", "expected #{this} to not be frozen");
20434
+ });
20435
+ node_modules_chai_Assertion.addProperty("finite", function(_msg) {
20436
+ let obj = chai_flag2(this, "object");
20437
+ this.assert("number" == typeof obj && isFinite(obj), "expected #{this} to be a finite number", "expected #{this} to not be a finite number");
20438
+ });
20439
+ function chai_compareSubset(expected, actual) {
20440
+ if (expected === actual) return true;
20441
+ if (typeof actual !== typeof expected) return false;
20442
+ if ("object" != typeof expected || null === expected) return expected === actual;
20443
+ if (!actual) return false;
20444
+ if (Array.isArray(expected)) {
20445
+ if (!Array.isArray(actual)) return false;
20446
+ return expected.every(function(exp) {
20447
+ return actual.some(function(act) {
20448
+ return chai_compareSubset(exp, act);
20449
+ });
20450
+ });
20451
+ }
20452
+ if (expected instanceof Date) if (actual instanceof Date) return expected.getTime() === actual.getTime();
20453
+ else return false;
20454
+ return Object.keys(expected).every(function(key) {
20455
+ let expectedValue = expected[key];
20456
+ let actualValue = actual[key];
20457
+ if ("object" == typeof expectedValue && null !== expectedValue && null !== actualValue) return chai_compareSubset(expectedValue, actualValue);
20458
+ if ("function" == typeof expectedValue) return expectedValue(actualValue);
20459
+ return actualValue === expectedValue;
20460
+ });
20461
+ }
20462
+ chai_name(chai_compareSubset, "compareSubset");
20463
+ node_modules_chai_Assertion.addMethod("containSubset", function(expected) {
20464
+ const actual = node_modules_chai_flag(this, "object");
20465
+ const showDiff = node_modules_chai_config.showDiff;
20466
+ this.assert(chai_compareSubset(expected, actual), "expected #{act} to contain subset #{exp}", "expected #{act} to not contain subset #{exp}", expected, actual, showDiff);
20467
+ });
20468
+ function node_modules_chai_expect(val, message) {
20469
+ return new node_modules_chai_Assertion(val, message);
20470
+ }
20471
+ chai_name(node_modules_chai_expect, "expect");
20472
+ node_modules_chai_expect.fail = function(actual, expected, message, operator) {
20473
+ if (arguments.length < 2) {
20474
+ message = actual;
20475
+ actual = void 0;
20476
+ }
20477
+ message = message || "expect.fail()";
20478
+ throw new chai_6_2_2_node_modules_chai_AssertionError(message, {
20479
+ actual,
20480
+ expected,
20481
+ operator
20482
+ }, node_modules_chai_expect.fail);
20483
+ };
20484
+ var chai_should_exports = {};
20485
+ chai_export(chai_should_exports, {
20486
+ Should: ()=>chai_Should,
20487
+ should: ()=>chai_should
20488
+ });
20489
+ function chai_loadShould() {
20490
+ function shouldGetter() {
20491
+ if (this instanceof String || this instanceof Number || this instanceof Boolean || "function" == typeof Symbol && this instanceof Symbol || "function" == typeof BigInt && this instanceof BigInt) return new node_modules_chai_Assertion(this.valueOf(), null, shouldGetter);
20492
+ return new node_modules_chai_Assertion(this, null, shouldGetter);
20493
+ }
20494
+ chai_name(shouldGetter, "shouldGetter");
20495
+ function shouldSetter(value) {
20496
+ Object.defineProperty(this, "should", {
20497
+ value,
20498
+ enumerable: true,
20499
+ configurable: true,
20500
+ writable: true
20501
+ });
20502
+ }
20503
+ chai_name(shouldSetter, "shouldSetter");
20504
+ Object.defineProperty(Object.prototype, "should", {
20505
+ set: shouldSetter,
20506
+ get: shouldGetter,
20507
+ configurable: true
20508
+ });
20509
+ let should2 = {};
20510
+ should2.fail = function(actual, expected, message, operator) {
20511
+ if (arguments.length < 2) {
20512
+ message = actual;
20513
+ actual = void 0;
20514
+ }
20515
+ message = message || "should.fail()";
20516
+ throw new chai_6_2_2_node_modules_chai_AssertionError(message, {
20517
+ actual,
20518
+ expected,
20519
+ operator
20520
+ }, should2.fail);
20521
+ };
20522
+ should2.equal = function(actual, expected, message) {
20523
+ new node_modules_chai_Assertion(actual, message).to.equal(expected);
20524
+ };
20525
+ should2.Throw = function(fn, errt, errs, msg) {
20526
+ new node_modules_chai_Assertion(fn, msg).to.Throw(errt, errs);
20527
+ };
20528
+ should2.exist = function(val, msg) {
20529
+ new node_modules_chai_Assertion(val, msg).to.exist;
20530
+ };
20531
+ should2.not = {};
20532
+ should2.not.equal = function(actual, expected, msg) {
20533
+ new node_modules_chai_Assertion(actual, msg).to.not.equal(expected);
20534
+ };
20535
+ should2.not.Throw = function(fn, errt, errs, msg) {
20536
+ new node_modules_chai_Assertion(fn, msg).to.not.Throw(errt, errs);
20537
+ };
20538
+ should2.not.exist = function(val, msg) {
20539
+ new node_modules_chai_Assertion(val, msg).to.not.exist;
20540
+ };
20541
+ should2["throw"] = should2["Throw"];
20542
+ should2.not["throw"] = should2.not["Throw"];
20543
+ return should2;
20544
+ }
20545
+ chai_name(chai_loadShould, "loadShould");
20546
+ var chai_should = chai_loadShould;
20547
+ var chai_Should = chai_loadShould;
20548
+ function node_modules_chai_assert(express, errmsg) {
20549
+ let test2 = new node_modules_chai_Assertion(null, null, node_modules_chai_assert, true);
20550
+ test2.assert(express, errmsg, "[ negation message unavailable ]");
20551
+ }
20552
+ chai_name(node_modules_chai_assert, "assert");
20553
+ node_modules_chai_assert.fail = function(actual, expected, message, operator) {
20554
+ if (arguments.length < 2) {
20555
+ message = actual;
20556
+ actual = void 0;
20557
+ }
20558
+ message = message || "assert.fail()";
20559
+ throw new chai_6_2_2_node_modules_chai_AssertionError(message, {
20560
+ actual,
20561
+ expected,
20562
+ operator
20563
+ }, node_modules_chai_assert.fail);
20564
+ };
20565
+ node_modules_chai_assert.isOk = function(val, msg) {
20566
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isOk, true).is.ok;
20567
+ };
20568
+ node_modules_chai_assert.isNotOk = function(val, msg) {
20569
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotOk, true).is.not.ok;
20570
+ };
20571
+ node_modules_chai_assert.equal = function(act, exp, msg) {
20572
+ let test2 = new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.equal, true);
20573
+ test2.assert(exp == node_modules_chai_flag(test2, "object"), "expected #{this} to equal #{exp}", "expected #{this} to not equal #{act}", exp, act, true);
20574
+ };
20575
+ node_modules_chai_assert.notEqual = function(act, exp, msg) {
20576
+ let test2 = new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.notEqual, true);
20577
+ test2.assert(exp != node_modules_chai_flag(test2, "object"), "expected #{this} to not equal #{exp}", "expected #{this} to equal #{act}", exp, act, true);
20578
+ };
20579
+ node_modules_chai_assert.strictEqual = function(act, exp, msg) {
20580
+ new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.strictEqual, true).to.equal(exp);
20581
+ };
20582
+ node_modules_chai_assert.notStrictEqual = function(act, exp, msg) {
20583
+ new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.notStrictEqual, true).to.not.equal(exp);
20584
+ };
20585
+ node_modules_chai_assert.deepEqual = node_modules_chai_assert.deepStrictEqual = function(act, exp, msg) {
20586
+ new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.deepEqual, true).to.eql(exp);
20587
+ };
20588
+ node_modules_chai_assert.notDeepEqual = function(act, exp, msg) {
20589
+ new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.notDeepEqual, true).to.not.eql(exp);
20590
+ };
20591
+ node_modules_chai_assert.isAbove = function(val, abv, msg) {
20592
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isAbove, true).to.be.above(abv);
20593
+ };
20594
+ node_modules_chai_assert.isAtLeast = function(val, atlst, msg) {
20595
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isAtLeast, true).to.be.least(atlst);
20596
+ };
20597
+ node_modules_chai_assert.isBelow = function(val, blw, msg) {
20598
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isBelow, true).to.be.below(blw);
20599
+ };
20600
+ node_modules_chai_assert.isAtMost = function(val, atmst, msg) {
20601
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isAtMost, true).to.be.most(atmst);
20602
+ };
20603
+ node_modules_chai_assert.isTrue = function(val, msg) {
20604
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isTrue, true).is["true"];
20605
+ };
20606
+ node_modules_chai_assert.isNotTrue = function(val, msg) {
20607
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotTrue, true).to.not.equal(true);
20608
+ };
20609
+ node_modules_chai_assert.isFalse = function(val, msg) {
20610
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isFalse, true).is["false"];
20611
+ };
20612
+ node_modules_chai_assert.isNotFalse = function(val, msg) {
20613
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotFalse, true).to.not.equal(false);
20614
+ };
20615
+ node_modules_chai_assert.isNull = function(val, msg) {
20616
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNull, true).to.equal(null);
20617
+ };
20618
+ node_modules_chai_assert.isNotNull = function(val, msg) {
20619
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotNull, true).to.not.equal(null);
20620
+ };
20621
+ node_modules_chai_assert.isNaN = function(val, msg) {
20622
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNaN, true).to.be.NaN;
20623
+ };
20624
+ node_modules_chai_assert.isNotNaN = function(value, message) {
20625
+ new node_modules_chai_Assertion(value, message, node_modules_chai_assert.isNotNaN, true).not.to.be.NaN;
20626
+ };
20627
+ node_modules_chai_assert.exists = function(val, msg) {
20628
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.exists, true).to.exist;
20629
+ };
20630
+ node_modules_chai_assert.notExists = function(val, msg) {
20631
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.notExists, true).to.not.exist;
20632
+ };
20633
+ node_modules_chai_assert.isUndefined = function(val, msg) {
20634
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isUndefined, true).to.equal(void 0);
20635
+ };
20636
+ node_modules_chai_assert.isDefined = function(val, msg) {
20637
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isDefined, true).to.not.equal(void 0);
20638
+ };
20639
+ node_modules_chai_assert.isCallable = function(value, message) {
20640
+ new node_modules_chai_Assertion(value, message, node_modules_chai_assert.isCallable, true).is.callable;
20641
+ };
20642
+ node_modules_chai_assert.isNotCallable = function(value, message) {
20643
+ new node_modules_chai_Assertion(value, message, node_modules_chai_assert.isNotCallable, true).is.not.callable;
20644
+ };
20645
+ node_modules_chai_assert.isObject = function(val, msg) {
20646
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isObject, true).to.be.a("object");
20647
+ };
20648
+ node_modules_chai_assert.isNotObject = function(val, msg) {
20649
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotObject, true).to.not.be.a("object");
20650
+ };
20651
+ node_modules_chai_assert.isArray = function(val, msg) {
20652
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isArray, true).to.be.an("array");
20653
+ };
20654
+ node_modules_chai_assert.isNotArray = function(val, msg) {
20655
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotArray, true).to.not.be.an("array");
20656
+ };
20657
+ node_modules_chai_assert.isString = function(val, msg) {
20658
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isString, true).to.be.a("string");
20659
+ };
20660
+ node_modules_chai_assert.isNotString = function(val, msg) {
20661
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotString, true).to.not.be.a("string");
20662
+ };
20663
+ node_modules_chai_assert.isNumber = function(val, msg) {
20664
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNumber, true).to.be.a("number");
20665
+ };
20666
+ node_modules_chai_assert.isNotNumber = function(val, msg) {
20667
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotNumber, true).to.not.be.a("number");
20668
+ };
20669
+ node_modules_chai_assert.isNumeric = function(val, msg) {
20670
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNumeric, true).is.numeric;
20671
+ };
20672
+ node_modules_chai_assert.isNotNumeric = function(val, msg) {
20673
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotNumeric, true).is.not.numeric;
20674
+ };
20675
+ node_modules_chai_assert.isFinite = function(val, msg) {
20676
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isFinite, true).to.be.finite;
20677
+ };
20678
+ node_modules_chai_assert.isBoolean = function(val, msg) {
20679
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isBoolean, true).to.be.a("boolean");
20680
+ };
20681
+ node_modules_chai_assert.isNotBoolean = function(val, msg) {
20682
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotBoolean, true).to.not.be.a("boolean");
20683
+ };
20684
+ node_modules_chai_assert.typeOf = function(val, type3, msg) {
20685
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.typeOf, true).to.be.a(type3);
20686
+ };
20687
+ node_modules_chai_assert.notTypeOf = function(value, type3, message) {
20688
+ new node_modules_chai_Assertion(value, message, node_modules_chai_assert.notTypeOf, true).to.not.be.a(type3);
20689
+ };
20690
+ node_modules_chai_assert.instanceOf = function(val, type3, msg) {
20691
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.instanceOf, true).to.be.instanceOf(type3);
20692
+ };
20693
+ node_modules_chai_assert.notInstanceOf = function(val, type3, msg) {
20694
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.notInstanceOf, true).to.not.be.instanceOf(type3);
20695
+ };
20696
+ node_modules_chai_assert.include = function(exp, inc, msg) {
20697
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.include, true).include(inc);
20698
+ };
20699
+ node_modules_chai_assert.notInclude = function(exp, inc, msg) {
20700
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.notInclude, true).not.include(inc);
20701
+ };
20702
+ node_modules_chai_assert.deepInclude = function(exp, inc, msg) {
20703
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.deepInclude, true).deep.include(inc);
20704
+ };
20705
+ node_modules_chai_assert.notDeepInclude = function(exp, inc, msg) {
20706
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.notDeepInclude, true).not.deep.include(inc);
20707
+ };
20708
+ node_modules_chai_assert.nestedInclude = function(exp, inc, msg) {
20709
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.nestedInclude, true).nested.include(inc);
20710
+ };
20711
+ node_modules_chai_assert.notNestedInclude = function(exp, inc, msg) {
20712
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.notNestedInclude, true).not.nested.include(inc);
20713
+ };
20714
+ node_modules_chai_assert.deepNestedInclude = function(exp, inc, msg) {
20715
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.deepNestedInclude, true).deep.nested.include(inc);
20716
+ };
20717
+ node_modules_chai_assert.notDeepNestedInclude = function(exp, inc, msg) {
20718
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.notDeepNestedInclude, true).not.deep.nested.include(inc);
20719
+ };
20720
+ node_modules_chai_assert.ownInclude = function(exp, inc, msg) {
20721
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.ownInclude, true).own.include(inc);
20722
+ };
20723
+ node_modules_chai_assert.notOwnInclude = function(exp, inc, msg) {
20724
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.notOwnInclude, true).not.own.include(inc);
20725
+ };
20726
+ node_modules_chai_assert.deepOwnInclude = function(exp, inc, msg) {
20727
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.deepOwnInclude, true).deep.own.include(inc);
20728
+ };
20729
+ node_modules_chai_assert.notDeepOwnInclude = function(exp, inc, msg) {
20730
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.notDeepOwnInclude, true).not.deep.own.include(inc);
20731
+ };
20732
+ node_modules_chai_assert.match = function(exp, re, msg) {
20733
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.match, true).to.match(re);
20734
+ };
20735
+ node_modules_chai_assert.notMatch = function(exp, re, msg) {
20736
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.notMatch, true).to.not.match(re);
20737
+ };
20738
+ node_modules_chai_assert.property = function(obj, prop, msg) {
20739
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.property, true).to.have.property(prop);
20740
+ };
20741
+ node_modules_chai_assert.notProperty = function(obj, prop, msg) {
20742
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notProperty, true).to.not.have.property(prop);
20743
+ };
20744
+ node_modules_chai_assert.propertyVal = function(obj, prop, val, msg) {
20745
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.propertyVal, true).to.have.property(prop, val);
20746
+ };
20747
+ node_modules_chai_assert.notPropertyVal = function(obj, prop, val, msg) {
20748
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notPropertyVal, true).to.not.have.property(prop, val);
20749
+ };
20750
+ node_modules_chai_assert.deepPropertyVal = function(obj, prop, val, msg) {
20751
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.deepPropertyVal, true).to.have.deep.property(prop, val);
20752
+ };
20753
+ node_modules_chai_assert.notDeepPropertyVal = function(obj, prop, val, msg) {
20754
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notDeepPropertyVal, true).to.not.have.deep.property(prop, val);
20755
+ };
20756
+ node_modules_chai_assert.ownProperty = function(obj, prop, msg) {
20757
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.ownProperty, true).to.have.own.property(prop);
20758
+ };
20759
+ node_modules_chai_assert.notOwnProperty = function(obj, prop, msg) {
20760
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notOwnProperty, true).to.not.have.own.property(prop);
20761
+ };
20762
+ node_modules_chai_assert.ownPropertyVal = function(obj, prop, value, msg) {
20763
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.ownPropertyVal, true).to.have.own.property(prop, value);
20764
+ };
20765
+ node_modules_chai_assert.notOwnPropertyVal = function(obj, prop, value, msg) {
20766
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notOwnPropertyVal, true).to.not.have.own.property(prop, value);
20767
+ };
20768
+ node_modules_chai_assert.deepOwnPropertyVal = function(obj, prop, value, msg) {
20769
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.deepOwnPropertyVal, true).to.have.deep.own.property(prop, value);
20770
+ };
20771
+ node_modules_chai_assert.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
20772
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notDeepOwnPropertyVal, true).to.not.have.deep.own.property(prop, value);
20773
+ };
20774
+ node_modules_chai_assert.nestedProperty = function(obj, prop, msg) {
20775
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.nestedProperty, true).to.have.nested.property(prop);
20776
+ };
20777
+ node_modules_chai_assert.notNestedProperty = function(obj, prop, msg) {
20778
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notNestedProperty, true).to.not.have.nested.property(prop);
20779
+ };
20780
+ node_modules_chai_assert.nestedPropertyVal = function(obj, prop, val, msg) {
20781
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.nestedPropertyVal, true).to.have.nested.property(prop, val);
20782
+ };
20783
+ node_modules_chai_assert.notNestedPropertyVal = function(obj, prop, val, msg) {
20784
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notNestedPropertyVal, true).to.not.have.nested.property(prop, val);
20785
+ };
20786
+ node_modules_chai_assert.deepNestedPropertyVal = function(obj, prop, val, msg) {
20787
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.deepNestedPropertyVal, true).to.have.deep.nested.property(prop, val);
20788
+ };
20789
+ node_modules_chai_assert.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
20790
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.notDeepNestedPropertyVal, true).to.not.have.deep.nested.property(prop, val);
20791
+ };
20792
+ node_modules_chai_assert.lengthOf = function(exp, len, msg) {
20793
+ new node_modules_chai_Assertion(exp, msg, node_modules_chai_assert.lengthOf, true).to.have.lengthOf(len);
20794
+ };
20795
+ node_modules_chai_assert.hasAnyKeys = function(obj, keys, msg) {
20796
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.hasAnyKeys, true).to.have.any.keys(keys);
20797
+ };
20798
+ node_modules_chai_assert.hasAllKeys = function(obj, keys, msg) {
20799
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.hasAllKeys, true).to.have.all.keys(keys);
20800
+ };
20801
+ node_modules_chai_assert.containsAllKeys = function(obj, keys, msg) {
20802
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.containsAllKeys, true).to.contain.all.keys(keys);
20803
+ };
20804
+ node_modules_chai_assert.doesNotHaveAnyKeys = function(obj, keys, msg) {
20805
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.doesNotHaveAnyKeys, true).to.not.have.any.keys(keys);
20806
+ };
20807
+ node_modules_chai_assert.doesNotHaveAllKeys = function(obj, keys, msg) {
20808
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.doesNotHaveAllKeys, true).to.not.have.all.keys(keys);
20809
+ };
20810
+ node_modules_chai_assert.hasAnyDeepKeys = function(obj, keys, msg) {
20811
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.hasAnyDeepKeys, true).to.have.any.deep.keys(keys);
20812
+ };
20813
+ node_modules_chai_assert.hasAllDeepKeys = function(obj, keys, msg) {
20814
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.hasAllDeepKeys, true).to.have.all.deep.keys(keys);
20815
+ };
20816
+ node_modules_chai_assert.containsAllDeepKeys = function(obj, keys, msg) {
20817
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.containsAllDeepKeys, true).to.contain.all.deep.keys(keys);
20818
+ };
20819
+ node_modules_chai_assert.doesNotHaveAnyDeepKeys = function(obj, keys, msg) {
20820
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.doesNotHaveAnyDeepKeys, true).to.not.have.any.deep.keys(keys);
20821
+ };
20822
+ node_modules_chai_assert.doesNotHaveAllDeepKeys = function(obj, keys, msg) {
20823
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.doesNotHaveAllDeepKeys, true).to.not.have.all.deep.keys(keys);
20824
+ };
20825
+ node_modules_chai_assert.throws = function(fn, errorLike, errMsgMatcher, msg) {
20826
+ if ("string" == typeof errorLike || errorLike instanceof RegExp) {
20827
+ errMsgMatcher = errorLike;
20828
+ errorLike = null;
20829
+ }
20830
+ let assertErr = new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.throws, true).to.throw(errorLike, errMsgMatcher);
20831
+ return node_modules_chai_flag(assertErr, "object");
20832
+ };
20833
+ node_modules_chai_assert.doesNotThrow = function(fn, errorLike, errMsgMatcher, message) {
20834
+ if ("string" == typeof errorLike || errorLike instanceof RegExp) {
20835
+ errMsgMatcher = errorLike;
20836
+ errorLike = null;
20837
+ }
20838
+ new node_modules_chai_Assertion(fn, message, node_modules_chai_assert.doesNotThrow, true).to.not.throw(errorLike, errMsgMatcher);
20839
+ };
20840
+ node_modules_chai_assert.operator = function(val, operator, val2, msg) {
20841
+ let ok;
20842
+ switch(operator){
20843
+ case "==":
20844
+ ok = val == val2;
20845
+ break;
20846
+ case "===":
20847
+ ok = val === val2;
20848
+ break;
20849
+ case ">":
20850
+ ok = val > val2;
20851
+ break;
20852
+ case ">=":
20853
+ ok = val >= val2;
20854
+ break;
20855
+ case "<":
20856
+ ok = val < val2;
20857
+ break;
20858
+ case "<=":
20859
+ ok = val <= val2;
20860
+ break;
20861
+ case "!=":
20862
+ ok = val != val2;
20863
+ break;
20864
+ case "!==":
20865
+ ok = val !== val2;
20866
+ break;
20867
+ default:
20868
+ msg = msg ? msg + ": " : msg;
20869
+ throw new chai_6_2_2_node_modules_chai_AssertionError(msg + 'Invalid operator "' + operator + '"', void 0, node_modules_chai_assert.operator);
20870
+ }
20871
+ let test2 = new node_modules_chai_Assertion(ok, msg, node_modules_chai_assert.operator, true);
20872
+ test2.assert(true === node_modules_chai_flag(test2, "object"), "expected " + chai_inspect2(val) + " to be " + operator + " " + chai_inspect2(val2), "expected " + chai_inspect2(val) + " to not be " + operator + " " + chai_inspect2(val2));
20873
+ };
20874
+ node_modules_chai_assert.closeTo = function(act, exp, delta, msg) {
20875
+ new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.closeTo, true).to.be.closeTo(exp, delta);
20876
+ };
20877
+ node_modules_chai_assert.approximately = function(act, exp, delta, msg) {
20878
+ new node_modules_chai_Assertion(act, msg, node_modules_chai_assert.approximately, true).to.be.approximately(exp, delta);
20879
+ };
20880
+ node_modules_chai_assert.sameMembers = function(set1, set2, msg) {
20881
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.sameMembers, true).to.have.same.members(set2);
20882
+ };
20883
+ node_modules_chai_assert.notSameMembers = function(set1, set2, msg) {
20884
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.notSameMembers, true).to.not.have.same.members(set2);
20885
+ };
20886
+ node_modules_chai_assert.sameDeepMembers = function(set1, set2, msg) {
20887
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.sameDeepMembers, true).to.have.same.deep.members(set2);
20888
+ };
20889
+ node_modules_chai_assert.notSameDeepMembers = function(set1, set2, msg) {
20890
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.notSameDeepMembers, true).to.not.have.same.deep.members(set2);
20891
+ };
20892
+ node_modules_chai_assert.sameOrderedMembers = function(set1, set2, msg) {
20893
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.sameOrderedMembers, true).to.have.same.ordered.members(set2);
20894
+ };
20895
+ node_modules_chai_assert.notSameOrderedMembers = function(set1, set2, msg) {
20896
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.notSameOrderedMembers, true).to.not.have.same.ordered.members(set2);
20897
+ };
20898
+ node_modules_chai_assert.sameDeepOrderedMembers = function(set1, set2, msg) {
20899
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.sameDeepOrderedMembers, true).to.have.same.deep.ordered.members(set2);
20900
+ };
20901
+ node_modules_chai_assert.notSameDeepOrderedMembers = function(set1, set2, msg) {
20902
+ new node_modules_chai_Assertion(set1, msg, node_modules_chai_assert.notSameDeepOrderedMembers, true).to.not.have.same.deep.ordered.members(set2);
20903
+ };
20904
+ node_modules_chai_assert.includeMembers = function(superset, subset, msg) {
20905
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.includeMembers, true).to.include.members(subset);
20906
+ };
20907
+ node_modules_chai_assert.notIncludeMembers = function(superset, subset, msg) {
20908
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.notIncludeMembers, true).to.not.include.members(subset);
20909
+ };
20910
+ node_modules_chai_assert.includeDeepMembers = function(superset, subset, msg) {
20911
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.includeDeepMembers, true).to.include.deep.members(subset);
20912
+ };
20913
+ node_modules_chai_assert.notIncludeDeepMembers = function(superset, subset, msg) {
20914
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.notIncludeDeepMembers, true).to.not.include.deep.members(subset);
20915
+ };
20916
+ node_modules_chai_assert.includeOrderedMembers = function(superset, subset, msg) {
20917
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.includeOrderedMembers, true).to.include.ordered.members(subset);
20918
+ };
20919
+ node_modules_chai_assert.notIncludeOrderedMembers = function(superset, subset, msg) {
20920
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.notIncludeOrderedMembers, true).to.not.include.ordered.members(subset);
20921
+ };
20922
+ node_modules_chai_assert.includeDeepOrderedMembers = function(superset, subset, msg) {
20923
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.includeDeepOrderedMembers, true).to.include.deep.ordered.members(subset);
20924
+ };
20925
+ node_modules_chai_assert.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
20926
+ new node_modules_chai_Assertion(superset, msg, node_modules_chai_assert.notIncludeDeepOrderedMembers, true).to.not.include.deep.ordered.members(subset);
20927
+ };
20928
+ node_modules_chai_assert.oneOf = function(inList, list, msg) {
20929
+ new node_modules_chai_Assertion(inList, msg, node_modules_chai_assert.oneOf, true).to.be.oneOf(list);
20930
+ };
20931
+ node_modules_chai_assert.isIterable = function(obj, msg) {
20932
+ if (void 0 == obj || !obj[Symbol.iterator]) {
20933
+ msg = msg ? `${msg} expected ${chai_inspect2(obj)} to be an iterable` : `expected ${chai_inspect2(obj)} to be an iterable`;
20934
+ throw new chai_6_2_2_node_modules_chai_AssertionError(msg, void 0, node_modules_chai_assert.isIterable);
20935
+ }
20936
+ };
20937
+ node_modules_chai_assert.changes = function(fn, obj, prop, msg) {
20938
+ if (3 === arguments.length && "function" == typeof obj) {
20939
+ msg = prop;
20940
+ prop = null;
20941
+ }
20942
+ new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.changes, true).to.change(obj, prop);
20943
+ };
20944
+ node_modules_chai_assert.changesBy = function(fn, obj, prop, delta, msg) {
20945
+ if (4 === arguments.length && "function" == typeof obj) {
20946
+ let tmpMsg = delta;
20947
+ delta = prop;
20948
+ msg = tmpMsg;
20949
+ } else if (3 === arguments.length) {
20950
+ delta = prop;
20951
+ prop = null;
20952
+ }
20953
+ new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.changesBy, true).to.change(obj, prop).by(delta);
20954
+ };
20955
+ node_modules_chai_assert.doesNotChange = function(fn, obj, prop, msg) {
20956
+ if (3 === arguments.length && "function" == typeof obj) {
20957
+ msg = prop;
20958
+ prop = null;
20959
+ }
20960
+ return new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.doesNotChange, true).to.not.change(obj, prop);
20961
+ };
20962
+ node_modules_chai_assert.changesButNotBy = function(fn, obj, prop, delta, msg) {
20963
+ if (4 === arguments.length && "function" == typeof obj) {
20964
+ let tmpMsg = delta;
20965
+ delta = prop;
20966
+ msg = tmpMsg;
20967
+ } else if (3 === arguments.length) {
20968
+ delta = prop;
20969
+ prop = null;
20970
+ }
20971
+ new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);
20972
+ };
20973
+ node_modules_chai_assert.increases = function(fn, obj, prop, msg) {
20974
+ if (3 === arguments.length && "function" == typeof obj) {
20975
+ msg = prop;
20976
+ prop = null;
20977
+ }
20978
+ return new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.increases, true).to.increase(obj, prop);
20979
+ };
20980
+ node_modules_chai_assert.increasesBy = function(fn, obj, prop, delta, msg) {
20981
+ if (4 === arguments.length && "function" == typeof obj) {
20982
+ let tmpMsg = delta;
20983
+ delta = prop;
20984
+ msg = tmpMsg;
20985
+ } else if (3 === arguments.length) {
20986
+ delta = prop;
20987
+ prop = null;
20988
+ }
20989
+ new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.increasesBy, true).to.increase(obj, prop).by(delta);
20990
+ };
20991
+ node_modules_chai_assert.doesNotIncrease = function(fn, obj, prop, msg) {
20992
+ if (3 === arguments.length && "function" == typeof obj) {
20993
+ msg = prop;
20994
+ prop = null;
20995
+ }
20996
+ return new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.doesNotIncrease, true).to.not.increase(obj, prop);
20997
+ };
20998
+ node_modules_chai_assert.increasesButNotBy = function(fn, obj, prop, delta, msg) {
20999
+ if (4 === arguments.length && "function" == typeof obj) {
21000
+ let tmpMsg = delta;
21001
+ delta = prop;
21002
+ msg = tmpMsg;
21003
+ } else if (3 === arguments.length) {
21004
+ delta = prop;
21005
+ prop = null;
21006
+ }
21007
+ new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);
21008
+ };
21009
+ node_modules_chai_assert.decreases = function(fn, obj, prop, msg) {
21010
+ if (3 === arguments.length && "function" == typeof obj) {
21011
+ msg = prop;
21012
+ prop = null;
21013
+ }
21014
+ return new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.decreases, true).to.decrease(obj, prop);
21015
+ };
21016
+ node_modules_chai_assert.decreasesBy = function(fn, obj, prop, delta, msg) {
21017
+ if (4 === arguments.length && "function" == typeof obj) {
21018
+ let tmpMsg = delta;
21019
+ delta = prop;
21020
+ msg = tmpMsg;
21021
+ } else if (3 === arguments.length) {
21022
+ delta = prop;
21023
+ prop = null;
21024
+ }
21025
+ new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.decreasesBy, true).to.decrease(obj, prop).by(delta);
21026
+ };
21027
+ node_modules_chai_assert.doesNotDecrease = function(fn, obj, prop, msg) {
21028
+ if (3 === arguments.length && "function" == typeof obj) {
21029
+ msg = prop;
21030
+ prop = null;
21031
+ }
21032
+ return new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.doesNotDecrease, true).to.not.decrease(obj, prop);
21033
+ };
21034
+ node_modules_chai_assert.doesNotDecreaseBy = function(fn, obj, prop, delta, msg) {
21035
+ if (4 === arguments.length && "function" == typeof obj) {
21036
+ let tmpMsg = delta;
21037
+ delta = prop;
21038
+ msg = tmpMsg;
21039
+ } else if (3 === arguments.length) {
21040
+ delta = prop;
21041
+ prop = null;
21042
+ }
21043
+ return new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);
21044
+ };
21045
+ node_modules_chai_assert.decreasesButNotBy = function(fn, obj, prop, delta, msg) {
21046
+ if (4 === arguments.length && "function" == typeof obj) {
21047
+ let tmpMsg = delta;
21048
+ delta = prop;
21049
+ msg = tmpMsg;
21050
+ } else if (3 === arguments.length) {
21051
+ delta = prop;
21052
+ prop = null;
21053
+ }
21054
+ new node_modules_chai_Assertion(fn, msg, node_modules_chai_assert.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);
21055
+ };
21056
+ node_modules_chai_assert.ifError = function(val) {
21057
+ if (val) throw val;
21058
+ };
21059
+ node_modules_chai_assert.isExtensible = function(obj, msg) {
21060
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.isExtensible, true).to.be.extensible;
21061
+ };
21062
+ node_modules_chai_assert.isNotExtensible = function(obj, msg) {
21063
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.isNotExtensible, true).to.not.be.extensible;
21064
+ };
21065
+ node_modules_chai_assert.isSealed = function(obj, msg) {
21066
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.isSealed, true).to.be.sealed;
21067
+ };
21068
+ node_modules_chai_assert.isNotSealed = function(obj, msg) {
21069
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.isNotSealed, true).to.not.be.sealed;
21070
+ };
21071
+ node_modules_chai_assert.isFrozen = function(obj, msg) {
21072
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.isFrozen, true).to.be.frozen;
21073
+ };
21074
+ node_modules_chai_assert.isNotFrozen = function(obj, msg) {
21075
+ new node_modules_chai_Assertion(obj, msg, node_modules_chai_assert.isNotFrozen, true).to.not.be.frozen;
21076
+ };
21077
+ node_modules_chai_assert.isEmpty = function(val, msg) {
21078
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isEmpty, true).to.be.empty;
21079
+ };
21080
+ node_modules_chai_assert.isNotEmpty = function(val, msg) {
21081
+ new node_modules_chai_Assertion(val, msg, node_modules_chai_assert.isNotEmpty, true).to.not.be.empty;
21082
+ };
21083
+ node_modules_chai_assert.containsSubset = function(val, exp, msg) {
21084
+ new node_modules_chai_Assertion(val, msg).to.containSubset(exp);
21085
+ };
21086
+ node_modules_chai_assert.doesNotContainSubset = function(val, exp, msg) {
21087
+ new node_modules_chai_Assertion(val, msg).to.not.containSubset(exp);
21088
+ };
21089
+ var chai_aliases = [
21090
+ [
21091
+ "isOk",
21092
+ "ok"
21093
+ ],
21094
+ [
21095
+ "isNotOk",
21096
+ "notOk"
21097
+ ],
21098
+ [
21099
+ "throws",
21100
+ "throw"
21101
+ ],
21102
+ [
21103
+ "throws",
21104
+ "Throw"
21105
+ ],
21106
+ [
21107
+ "isExtensible",
21108
+ "extensible"
21109
+ ],
21110
+ [
21111
+ "isNotExtensible",
21112
+ "notExtensible"
21113
+ ],
21114
+ [
21115
+ "isSealed",
21116
+ "sealed"
21117
+ ],
21118
+ [
21119
+ "isNotSealed",
21120
+ "notSealed"
21121
+ ],
21122
+ [
21123
+ "isFrozen",
21124
+ "frozen"
21125
+ ],
21126
+ [
21127
+ "isNotFrozen",
21128
+ "notFrozen"
21129
+ ],
21130
+ [
21131
+ "isEmpty",
21132
+ "empty"
21133
+ ],
21134
+ [
21135
+ "isNotEmpty",
21136
+ "notEmpty"
21137
+ ],
21138
+ [
21139
+ "isCallable",
21140
+ "isFunction"
21141
+ ],
21142
+ [
21143
+ "isNotCallable",
21144
+ "isNotFunction"
21145
+ ],
21146
+ [
21147
+ "containsSubset",
21148
+ "containSubset"
21149
+ ]
21150
+ ];
21151
+ for (const [name, as] of chai_aliases)node_modules_chai_assert[as] = node_modules_chai_assert[name];
21152
+ var chai_used = [];
21153
+ function chai_use(fn) {
21154
+ const exports = {
21155
+ use: chai_use,
21156
+ AssertionError: chai_6_2_2_node_modules_chai_AssertionError,
21157
+ util: chai_utils_exports,
21158
+ config: node_modules_chai_config,
21159
+ expect: node_modules_chai_expect,
21160
+ assert: node_modules_chai_assert,
21161
+ Assertion: node_modules_chai_Assertion,
21162
+ ...chai_should_exports
21163
+ };
21164
+ if (!~chai_used.indexOf(fn)) {
21165
+ fn(exports, chai_utils_exports);
21166
+ chai_used.push(fn);
21167
+ }
21168
+ return exports;
21169
+ }
21170
+ chai_name(chai_use, "use");
21171
+ const jest_diff_build = __webpack_require__("../../node_modules/.pnpm/jest-diff@30.2.0/node_modules/jest-diff/build/index.js");
21172
+ jest_diff_build.DIFF_DELETE;
21173
+ jest_diff_build.DIFF_EQUAL;
21174
+ jest_diff_build.DIFF_INSERT;
21175
+ jest_diff_build.Diff;
21176
+ const build_diff = jest_diff_build.diff;
21177
+ jest_diff_build.diffLinesRaw;
21178
+ jest_diff_build.diffLinesUnified;
21179
+ jest_diff_build.diffLinesUnified2;
21180
+ jest_diff_build.diffStringsRaw;
21181
+ jest_diff_build.diffStringsUnified;
21182
+ const pretty_format_build_0 = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.2.0/node_modules/pretty-format/build/index.js");
21183
+ pretty_format_build_0.DEFAULT_OPTIONS;
21184
+ const build_format = pretty_format_build_0.format;
21185
+ const build_plugins = pretty_format_build_0.plugins;
21186
+ pretty_format_build_0["default"];
18204
21187
  __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
18205
21188
  const REAL_TIMERS = {};
18206
21189
  const setRealTimers = ()=>{
@@ -18315,12 +21298,12 @@ function createExpectPoll(expect) {
18315
21298
  poll: true
18316
21299
  });
18317
21300
  fn = fn.bind(assertion);
18318
- const test = utils_exports.flag(assertion, 'vitest-test');
21301
+ const test = chai_utils_exports.flag(assertion, 'vitest-test');
18319
21302
  if (!test) throw new Error('expect.poll() must be called inside a test');
18320
21303
  const proxy = new Proxy(assertion, {
18321
21304
  get (target, key, receiver) {
18322
21305
  const assertionFunction = Reflect.get(target, key, receiver);
18323
- if ('function' != typeof assertionFunction) return assertionFunction instanceof Assertion ? proxy : assertionFunction;
21306
+ if ('function' != typeof assertionFunction) return assertionFunction instanceof node_modules_chai_Assertion ? proxy : assertionFunction;
18324
21307
  if ('assert' === key) return assertionFunction;
18325
21308
  if ('string' == typeof key && unsupported.includes(key)) throw new SyntaxError(`expect.poll() is not supported in combination with .${key}(). Use rstest.waitFor() if your assertion condition is unstable.`);
18326
21309
  return function(...args) {
@@ -18331,20 +21314,20 @@ function createExpectPoll(expect) {
18331
21314
  let lastError;
18332
21315
  const check = async ()=>{
18333
21316
  try {
18334
- utils_exports.flag(assertion, '_name', key);
21317
+ chai_utils_exports.flag(assertion, '_name', key);
18335
21318
  const obj = await fn();
18336
- utils_exports.flag(assertion, 'object', obj);
21319
+ chai_utils_exports.flag(assertion, 'object', obj);
18337
21320
  resolve(await assertionFunction.call(assertion, ...args));
18338
21321
  clearTimeout(intervalId);
18339
21322
  clearTimeout(timeoutId);
18340
21323
  } catch (err) {
18341
21324
  lastError = err;
18342
- if (!utils_exports.flag(assertion, '_isLastPollAttempt')) intervalId = getRealTimers().setTimeout(check, interval);
21325
+ if (!chai_utils_exports.flag(assertion, '_isLastPollAttempt')) intervalId = getRealTimers().setTimeout(check, interval);
18343
21326
  }
18344
21327
  };
18345
21328
  timeoutId = getRealTimers().setTimeout(()=>{
18346
21329
  clearTimeout(intervalId);
18347
- utils_exports.flag(assertion, '_isLastPollAttempt', true);
21330
+ chai_utils_exports.flag(assertion, '_isLastPollAttempt', true);
18348
21331
  const rejectWithCause = (cause)=>{
18349
21332
  reject(copyStackTrace(new Error(`Matcher did not succeed in ${timeout}ms`, {
18350
21333
  cause
@@ -18358,8 +21341,8 @@ function createExpectPoll(expect) {
18358
21341
  test.onFinished ??= [];
18359
21342
  test.onFinished.push(()=>{
18360
21343
  if (!awaited) {
18361
- const negated = utils_exports.flag(assertion, 'negate') ? 'not.' : '';
18362
- const name = utils_exports.flag(assertion, '_poll.element') ? 'element(locator)' : 'poll(assertion)';
21344
+ const negated = chai_utils_exports.flag(assertion, 'negate') ? 'not.' : '';
21345
+ const name = chai_utils_exports.flag(assertion, '_poll.element') ? 'element(locator)' : 'poll(assertion)';
18363
21346
  const assertionString = `expect.${name}.${negated}${String(key)}()`;
18364
21347
  const error = new Error(`${assertionString} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${assertionString}\n`);
18365
21348
  throw copyStackTrace(error, STACK_TRACE_ERROR);
@@ -18511,7 +21494,7 @@ function decodeInteger(reader, relative) {
18511
21494
  integer = charToInt[c];
18512
21495
  value |= (31 & integer) << shift;
18513
21496
  shift += 5;
18514
- }while (32 & integer);
21497
+ }while (32 & integer)
18515
21498
  const shouldNegate = 1 & value;
18516
21499
  value >>>= 1;
18517
21500
  if (shouldNegate) value = -2147483648 | -value;
@@ -18586,7 +21569,7 @@ function decode(mappings) {
18586
21569
  if (!sorted) sort(line);
18587
21570
  decoded.push(line);
18588
21571
  reader.pos = semi + 1;
18589
- }while (reader.pos <= length);
21572
+ }while (reader.pos <= length)
18590
21573
  return decoded;
18591
21574
  }
18592
21575
  function sort(line) {
@@ -19708,7 +22691,7 @@ function dist_p(n = false) {
19708
22691
  let e = dist_C(n), i = (r, t, c, o)=>{
19709
22692
  let l = "", s = 0;
19710
22693
  do l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
19711
- while (~o);
22694
+ while (~o)
19712
22695
  return l + r.substring(s);
19713
22696
  }, g = (r, t, c = r)=>{
19714
22697
  let o = (l)=>{
@@ -19746,11 +22729,7 @@ function offsetToLineNumber(source, offset) {
19746
22729
  return line + 1;
19747
22730
  }
19748
22731
  async function saveInlineSnapshots(environment, snapshots) {
19749
- const MagicString = (await import("./2~907.js").then((mod)=>({
19750
- Bundle: mod.Bundle,
19751
- SourceMap: mod.SourceMap,
19752
- default: mod.MagicString
19753
- }))).default;
22732
+ const MagicString = (await import("./2~magic-string.es.js").then((m)=>m.magic_string_es_namespaceObject)).default;
19754
22733
  const files = new Set(snapshots.map((i)=>i.file));
19755
22734
  await Promise.all(Array.from(files).map(async (file)=>{
19756
22735
  const snaps = snapshots.filter((i)=>i.file === file);
@@ -20626,24 +23605,24 @@ const SnapshotPlugin = (workerState)=>{
20626
23605
  };
20627
23606
  };
20628
23607
  function setupChaiConfig(config) {
20629
- Object.assign(chai_config, config);
23608
+ Object.assign(node_modules_chai_config, config);
20630
23609
  }
20631
23610
  function createExpect({ getCurrentTest, workerState }) {
20632
- use(JestExtend);
20633
- use(JestChaiExpect);
20634
- use(SnapshotPlugin(workerState));
20635
- use(JestAsymmetricMatchers);
23611
+ chai_use(JestExtend);
23612
+ chai_use(JestChaiExpect);
23613
+ chai_use(SnapshotPlugin(workerState));
23614
+ chai_use(JestAsymmetricMatchers);
20636
23615
  const expect = (value, message)=>{
20637
23616
  const { assertionCalls } = getState(expect);
20638
23617
  setState({
20639
23618
  assertionCalls: assertionCalls + 1
20640
23619
  }, expect);
20641
- const assert = chai_expect(value, message);
23620
+ const assert = node_modules_chai_expect(value, message);
20642
23621
  const _test = getCurrentTest();
20643
23622
  if (_test) return assert.withTest(_test);
20644
23623
  return assert;
20645
23624
  };
20646
- Object.assign(expect, chai_expect);
23625
+ Object.assign(expect, node_modules_chai_expect);
20647
23626
  Object.assign(expect, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);
20648
23627
  expect.getState = ()=>getState(expect);
20649
23628
  expect.setState = (state)=>setState(state, expect);
@@ -20659,7 +23638,7 @@ function createExpect({ getCurrentTest, workerState }) {
20659
23638
  return workerState.testPath;
20660
23639
  }
20661
23640
  }, expect);
20662
- expect.extend = (matchers)=>chai_expect.extend(expect, matchers);
23641
+ expect.extend = (matchers)=>node_modules_chai_expect.extend(expect, matchers);
20663
23642
  expect.addEqualityTesters = (customTesters)=>addCustomEqualityTesters(customTesters);
20664
23643
  expect.soft = (...args)=>expect(...args).withContext({
20665
23644
  soft: true
@@ -20669,7 +23648,7 @@ function createExpect({ getCurrentTest, workerState }) {
20669
23648
  throw new Error("expect.element() is only available in browser mode. Enable browser mode in config and import @rstest/browser to install the browser expect adapter.");
20670
23649
  };
20671
23650
  expect.unreachable = (message)=>{
20672
- chai_assert.fail(`expected ${message ? `"${message}" ` : ''}not to be reached`);
23651
+ node_modules_chai_assert.fail(`expected ${message ? `"${message}" ` : ''}not to be reached`);
20673
23652
  };
20674
23653
  function assertions(expected) {
20675
23654
  const errorGen = ()=>new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);
@@ -20687,8 +23666,8 @@ function createExpect({ getCurrentTest, workerState }) {
20687
23666
  isExpectingAssertionsError: error
20688
23667
  });
20689
23668
  }
20690
- utils_exports.addMethod(expect, 'assertions', assertions);
20691
- utils_exports.addMethod(expect, 'hasAssertions', hasAssertions);
23669
+ chai_utils_exports.addMethod(expect, 'assertions', assertions);
23670
+ chai_utils_exports.addMethod(expect, 'hasAssertions', hasAssertions);
20692
23671
  expect.extend(customMatchers);
20693
23672
  return expect;
20694
23673
  }
@@ -21242,7 +24221,7 @@ class TestRunner {
21242
24221
  errors: 'fail' === currentResult.status && result && result.errors ? result.errors.concat(...currentResult.errors || []) : currentResult.errors
21243
24222
  };
21244
24223
  retryCount++;
21245
- }while (retryCount <= retry && 'fail' === result.status);
24224
+ }while (retryCount <= retry && 'fail' === result.status)
21246
24225
  result.duration = RealDate.now() - start;
21247
24226
  result.retryCount = retryCount - 1;
21248
24227
  result.heap = state.runtimeConfig.logHeapUsage ? runner_process.memoryUsage().heapUsed : void 0;
@@ -22691,7 +25670,7 @@ const createRstestRuntime = async (workerState)=>{
22691
25670
  api: {
22692
25671
  ...runnerAPI,
22693
25672
  expect,
22694
- assert: chai_assert,
25673
+ assert: node_modules_chai_assert,
22695
25674
  rstest,
22696
25675
  rs: rstest
22697
25676
  }