@noma.to/qwik-testing-library 1.2.0 → 1.3.1

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 (104) hide show
  1. package/README.md +4 -3
  2. package/lib/lib/mock.qwik.cjs +3 -3
  3. package/lib/lib/mock.qwik.mjs +1 -1
  4. package/lib/lib/qwik-testing-library.qwik.cjs +2 -2
  5. package/lib/lib/qwik-testing-library.qwik.mjs +3 -3
  6. package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.qwik.cjs +89 -0
  7. package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.qwik.mjs +89 -0
  8. package/lib/node_modules/.pnpm/{@vitest_expect@2.1.1 → @vitest_expect@3.0.5}/node_modules/@vitest/expect/dist/index.qwik.cjs +321 -97
  9. package/lib/node_modules/.pnpm/{@vitest_expect@2.1.1 → @vitest_expect@3.0.5}/node_modules/@vitest/expect/dist/index.qwik.mjs +318 -94
  10. package/lib/node_modules/.pnpm/{@vitest_pretty-format@2.1.1 → @vitest_pretty-format@3.0.5}/node_modules/@vitest/pretty-format/dist/index.qwik.cjs +312 -15
  11. package/lib/node_modules/.pnpm/{@vitest_pretty-format@2.1.1 → @vitest_pretty-format@3.0.5}/node_modules/@vitest/pretty-format/dist/index.qwik.mjs +317 -20
  12. package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/chunk-tasks.qwik.cjs +2 -2
  13. package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/chunk-tasks.qwik.mjs +2 -2
  14. package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/index.qwik.cjs +161 -69
  15. package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/index.qwik.mjs +158 -66
  16. package/lib/node_modules/.pnpm/{@vitest_snapshot@2.1.1 → @vitest_snapshot@3.0.5}/node_modules/@vitest/snapshot/dist/index.qwik.cjs +976 -538
  17. package/lib/node_modules/.pnpm/{@vitest_snapshot@2.1.1 → @vitest_snapshot@3.0.5}/node_modules/@vitest/snapshot/dist/index.qwik.mjs +976 -538
  18. package/lib/node_modules/.pnpm/{@vitest_spy@2.1.1 → @vitest_spy@3.0.5}/node_modules/@vitest/spy/dist/index.qwik.cjs +20 -3
  19. package/lib/node_modules/.pnpm/{@vitest_spy@2.1.1 → @vitest_spy@3.0.5}/node_modules/@vitest/spy/dist/index.qwik.mjs +20 -3
  20. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/chunk-display.qwik.cjs → @vitest_utils@3.0.5/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.cjs} +7 -3
  21. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/chunk-display.qwik.mjs → @vitest_utils@3.0.5/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.mjs} +7 -3
  22. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/diff.qwik.cjs +491 -467
  23. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/diff.qwik.mjs +491 -467
  24. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/error.qwik.cjs +6 -6
  25. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/error.qwik.mjs +3 -3
  26. package/lib/node_modules/.pnpm/@vitest_utils@3.0.5/node_modules/@vitest/utils/dist/index.qwik.cjs +474 -0
  27. package/lib/node_modules/.pnpm/@vitest_utils@3.0.5/node_modules/@vitest/utils/dist/index.qwik.mjs +474 -0
  28. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/source-map.qwik.cjs +20 -20
  29. package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/source-map.qwik.mjs +20 -20
  30. package/lib/node_modules/.pnpm/{chai@5.1.1 → chai@5.1.2}/node_modules/chai/chai.qwik.cjs +71 -39
  31. package/lib/node_modules/.pnpm/{chai@5.1.1 → chai@5.1.2}/node_modules/chai/chai.qwik.mjs +71 -39
  32. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/error.qwik.cjs +7 -1
  33. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/error.qwik.mjs +7 -1
  34. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/index.qwik.mjs +6 -6
  35. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/map.qwik.cjs +1 -3
  36. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/map.qwik.mjs +1 -3
  37. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/object.qwik.cjs +1 -1
  38. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/object.qwik.mjs +1 -1
  39. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/string.qwik.cjs +1 -2
  40. package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/string.qwik.mjs +1 -2
  41. package/lib/node_modules/.pnpm/{magic-string@0.30.11 → magic-string@0.30.17}/node_modules/magic-string/dist/magic-string.es.qwik.cjs +44 -33
  42. package/lib/node_modules/.pnpm/{magic-string@0.30.11 → magic-string@0.30.17}/node_modules/magic-string/dist/magic-string.es.qwik.mjs +44 -33
  43. package/lib/node_modules/.pnpm/{pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.qwik.cjs → pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.qwik.cjs} +2 -2
  44. package/lib/node_modules/.pnpm/{pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.qwik.mjs → pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.qwik.mjs} +2 -2
  45. package/lib/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.cjs +4 -0
  46. package/lib/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.mjs +5 -0
  47. package/lib/node_modules/.pnpm/vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.cjs +66 -0
  48. package/lib/node_modules/.pnpm/vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.mjs +66 -0
  49. package/lib/node_modules/.pnpm/vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.CjhMlMwf.qwik.cjs +2977 -0
  50. package/lib/node_modules/.pnpm/vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.CjhMlMwf.qwik.mjs +2977 -0
  51. package/package.json +13 -13
  52. package/lib/_virtual/_commonjsHelpers.qwik.cjs +0 -4
  53. package/lib/_virtual/_commonjsHelpers.qwik.mjs +0 -4
  54. package/lib/_virtual/sourcemap-codec.umd.qwik.cjs +0 -4
  55. package/lib/_virtual/sourcemap-codec.umd.qwik.mjs +0 -4
  56. package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.qwik.cjs +0 -425
  57. package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.qwik.mjs +0 -425
  58. package/lib/node_modules/.pnpm/@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/index.qwik.cjs +0 -81
  59. package/lib/node_modules/.pnpm/@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/index.qwik.mjs +0 -81
  60. package/lib/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/browser.qwik.cjs +0 -7
  61. package/lib/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/browser.qwik.mjs +0 -8
  62. package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/base.BlXpj3e_.qwik.cjs +0 -6
  63. package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/base.BlXpj3e_.qwik.mjs +0 -6
  64. package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/utils.Ck2hJTRs.qwik.cjs +0 -16
  65. package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/utils.Ck2hJTRs.qwik.mjs +0 -16
  66. package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/vi.D6IHiKAI.qwik.cjs +0 -2556
  67. package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/vi.D6IHiKAI.qwik.mjs +0 -2556
  68. /package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/helpers.qwik.cjs +0 -0
  69. /package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/helpers.qwik.mjs +0 -0
  70. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/arguments.qwik.cjs +0 -0
  71. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/arguments.qwik.mjs +0 -0
  72. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/array.qwik.cjs +0 -0
  73. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/array.qwik.mjs +0 -0
  74. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/bigint.qwik.cjs +0 -0
  75. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/bigint.qwik.mjs +0 -0
  76. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/class.qwik.cjs +0 -0
  77. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/class.qwik.mjs +0 -0
  78. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/date.qwik.cjs +0 -0
  79. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/date.qwik.mjs +0 -0
  80. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/function.qwik.cjs +0 -0
  81. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/function.qwik.mjs +0 -0
  82. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/helpers.qwik.cjs +0 -0
  83. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/helpers.qwik.mjs +0 -0
  84. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/html.qwik.cjs +0 -0
  85. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/html.qwik.mjs +0 -0
  86. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/index.qwik.cjs +0 -0
  87. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/number.qwik.cjs +0 -0
  88. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/number.qwik.mjs +0 -0
  89. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/promise.qwik.cjs +0 -0
  90. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/promise.qwik.mjs +0 -0
  91. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/regexp.qwik.cjs +0 -0
  92. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/regexp.qwik.mjs +0 -0
  93. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/set.qwik.cjs +0 -0
  94. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/set.qwik.mjs +0 -0
  95. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/symbol.qwik.cjs +0 -0
  96. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/symbol.qwik.mjs +0 -0
  97. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/typedarray.qwik.cjs +0 -0
  98. /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.3}/node_modules/loupe/lib/typedarray.qwik.mjs +0 -0
  99. /package/lib/node_modules/.pnpm/{tinyrainbow@1.2.0 → tinyrainbow@2.0.0}/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.qwik.cjs +0 -0
  100. /package/lib/node_modules/.pnpm/{tinyrainbow@1.2.0 → tinyrainbow@2.0.0}/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.qwik.mjs +0 -0
  101. /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.cjs +0 -0
  102. /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.mjs +0 -0
  103. /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.cjs +0 -0
  104. /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.mjs +0 -0
@@ -1,6 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const browser = require("../../../../../tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/browser.qwik.cjs");
3
+ const browser = require("../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.cjs");
4
+ function _mergeNamespaces$1(n, m) {
5
+ m.forEach(function(e) {
6
+ e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
7
+ if (k !== "default" && !(k in n)) {
8
+ var d = Object.getOwnPropertyDescriptor(e, k);
9
+ Object.defineProperty(n, k, d.get ? d : {
10
+ enumerable: true,
11
+ get: function() {
12
+ return e[k];
13
+ }
14
+ });
15
+ }
16
+ });
17
+ });
18
+ return Object.freeze(n);
19
+ }
4
20
  function getKeysOfEnumerableProperties(object, compareKeys) {
5
21
  const rawKeys = Object.keys(object);
6
22
  const keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
@@ -458,6 +474,229 @@ const serialize$2 = (val, config, indentation, depth, refs, printer2) => {
458
474
  };
459
475
  const test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);
460
476
  const plugin$2 = { serialize: serialize$2, test: test$2 };
477
+ function getDefaultExportFromCjs(x) {
478
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
479
+ }
480
+ var reactIs$1 = { exports: {} };
481
+ var reactIs_production = {};
482
+ /**
483
+ * @license React
484
+ * react-is.production.js
485
+ *
486
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
487
+ *
488
+ * This source code is licensed under the MIT license found in the
489
+ * LICENSE file in the root directory of this source tree.
490
+ */
491
+ var hasRequiredReactIs_production;
492
+ function requireReactIs_production() {
493
+ if (hasRequiredReactIs_production) return reactIs_production;
494
+ hasRequiredReactIs_production = 1;
495
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
496
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
497
+ function typeOf(object) {
498
+ if ("object" === typeof object && null !== object) {
499
+ var $$typeof = object.$$typeof;
500
+ switch ($$typeof) {
501
+ case REACT_ELEMENT_TYPE:
502
+ switch (object = object.type, object) {
503
+ case REACT_FRAGMENT_TYPE:
504
+ case REACT_PROFILER_TYPE:
505
+ case REACT_STRICT_MODE_TYPE:
506
+ case REACT_SUSPENSE_TYPE:
507
+ case REACT_SUSPENSE_LIST_TYPE:
508
+ return object;
509
+ default:
510
+ switch (object = object && object.$$typeof, object) {
511
+ case REACT_CONTEXT_TYPE:
512
+ case REACT_FORWARD_REF_TYPE:
513
+ case REACT_LAZY_TYPE:
514
+ case REACT_MEMO_TYPE:
515
+ return object;
516
+ case REACT_CONSUMER_TYPE:
517
+ return object;
518
+ default:
519
+ return $$typeof;
520
+ }
521
+ }
522
+ case REACT_PORTAL_TYPE:
523
+ return $$typeof;
524
+ }
525
+ }
526
+ }
527
+ reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
528
+ reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
529
+ reactIs_production.Element = REACT_ELEMENT_TYPE;
530
+ reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
531
+ reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
532
+ reactIs_production.Lazy = REACT_LAZY_TYPE;
533
+ reactIs_production.Memo = REACT_MEMO_TYPE;
534
+ reactIs_production.Portal = REACT_PORTAL_TYPE;
535
+ reactIs_production.Profiler = REACT_PROFILER_TYPE;
536
+ reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
537
+ reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
538
+ reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
539
+ reactIs_production.isContextConsumer = function(object) {
540
+ return typeOf(object) === REACT_CONSUMER_TYPE;
541
+ };
542
+ reactIs_production.isContextProvider = function(object) {
543
+ return typeOf(object) === REACT_CONTEXT_TYPE;
544
+ };
545
+ reactIs_production.isElement = function(object) {
546
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
547
+ };
548
+ reactIs_production.isForwardRef = function(object) {
549
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
550
+ };
551
+ reactIs_production.isFragment = function(object) {
552
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
553
+ };
554
+ reactIs_production.isLazy = function(object) {
555
+ return typeOf(object) === REACT_LAZY_TYPE;
556
+ };
557
+ reactIs_production.isMemo = function(object) {
558
+ return typeOf(object) === REACT_MEMO_TYPE;
559
+ };
560
+ reactIs_production.isPortal = function(object) {
561
+ return typeOf(object) === REACT_PORTAL_TYPE;
562
+ };
563
+ reactIs_production.isProfiler = function(object) {
564
+ return typeOf(object) === REACT_PROFILER_TYPE;
565
+ };
566
+ reactIs_production.isStrictMode = function(object) {
567
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
568
+ };
569
+ reactIs_production.isSuspense = function(object) {
570
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
571
+ };
572
+ reactIs_production.isSuspenseList = function(object) {
573
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
574
+ };
575
+ reactIs_production.isValidElementType = function(type) {
576
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
577
+ };
578
+ reactIs_production.typeOf = typeOf;
579
+ return reactIs_production;
580
+ }
581
+ var reactIs_development$1 = {};
582
+ /**
583
+ * @license React
584
+ * react-is.development.js
585
+ *
586
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
587
+ *
588
+ * This source code is licensed under the MIT license found in the
589
+ * LICENSE file in the root directory of this source tree.
590
+ */
591
+ var hasRequiredReactIs_development$1;
592
+ function requireReactIs_development$1() {
593
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
594
+ hasRequiredReactIs_development$1 = 1;
595
+ "production" !== process.env.NODE_ENV && function() {
596
+ function typeOf(object) {
597
+ if ("object" === typeof object && null !== object) {
598
+ var $$typeof = object.$$typeof;
599
+ switch ($$typeof) {
600
+ case REACT_ELEMENT_TYPE:
601
+ switch (object = object.type, object) {
602
+ case REACT_FRAGMENT_TYPE:
603
+ case REACT_PROFILER_TYPE:
604
+ case REACT_STRICT_MODE_TYPE:
605
+ case REACT_SUSPENSE_TYPE:
606
+ case REACT_SUSPENSE_LIST_TYPE:
607
+ return object;
608
+ default:
609
+ switch (object = object && object.$$typeof, object) {
610
+ case REACT_CONTEXT_TYPE:
611
+ case REACT_FORWARD_REF_TYPE:
612
+ case REACT_LAZY_TYPE:
613
+ case REACT_MEMO_TYPE:
614
+ return object;
615
+ case REACT_CONSUMER_TYPE:
616
+ return object;
617
+ default:
618
+ return $$typeof;
619
+ }
620
+ }
621
+ case REACT_PORTAL_TYPE:
622
+ return $$typeof;
623
+ }
624
+ }
625
+ }
626
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
627
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
628
+ reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
629
+ reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;
630
+ reactIs_development$1.Element = REACT_ELEMENT_TYPE;
631
+ reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;
632
+ reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;
633
+ reactIs_development$1.Lazy = REACT_LAZY_TYPE;
634
+ reactIs_development$1.Memo = REACT_MEMO_TYPE;
635
+ reactIs_development$1.Portal = REACT_PORTAL_TYPE;
636
+ reactIs_development$1.Profiler = REACT_PROFILER_TYPE;
637
+ reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;
638
+ reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;
639
+ reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
640
+ reactIs_development$1.isContextConsumer = function(object) {
641
+ return typeOf(object) === REACT_CONSUMER_TYPE;
642
+ };
643
+ reactIs_development$1.isContextProvider = function(object) {
644
+ return typeOf(object) === REACT_CONTEXT_TYPE;
645
+ };
646
+ reactIs_development$1.isElement = function(object) {
647
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
648
+ };
649
+ reactIs_development$1.isForwardRef = function(object) {
650
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
651
+ };
652
+ reactIs_development$1.isFragment = function(object) {
653
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
654
+ };
655
+ reactIs_development$1.isLazy = function(object) {
656
+ return typeOf(object) === REACT_LAZY_TYPE;
657
+ };
658
+ reactIs_development$1.isMemo = function(object) {
659
+ return typeOf(object) === REACT_MEMO_TYPE;
660
+ };
661
+ reactIs_development$1.isPortal = function(object) {
662
+ return typeOf(object) === REACT_PORTAL_TYPE;
663
+ };
664
+ reactIs_development$1.isProfiler = function(object) {
665
+ return typeOf(object) === REACT_PROFILER_TYPE;
666
+ };
667
+ reactIs_development$1.isStrictMode = function(object) {
668
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
669
+ };
670
+ reactIs_development$1.isSuspense = function(object) {
671
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
672
+ };
673
+ reactIs_development$1.isSuspenseList = function(object) {
674
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
675
+ };
676
+ reactIs_development$1.isValidElementType = function(type) {
677
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
678
+ };
679
+ reactIs_development$1.typeOf = typeOf;
680
+ }();
681
+ return reactIs_development$1;
682
+ }
683
+ var hasRequiredReactIs$1;
684
+ function requireReactIs$1() {
685
+ if (hasRequiredReactIs$1) return reactIs$1.exports;
686
+ hasRequiredReactIs$1 = 1;
687
+ if (process.env.NODE_ENV === "production") {
688
+ reactIs$1.exports = requireReactIs_production();
689
+ } else {
690
+ reactIs$1.exports = requireReactIs_development$1();
691
+ }
692
+ return reactIs$1.exports;
693
+ }
694
+ var reactIsExports$1 = /* @__PURE__ */ requireReactIs$1();
695
+ var index$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports$1);
696
+ var ReactIs19 = /* @__PURE__ */ _mergeNamespaces$1({
697
+ __proto__: null,
698
+ default: index$1
699
+ }, [reactIsExports$1]);
461
700
  var reactIs = { exports: {} };
462
701
  var reactIs_production_min = {};
463
702
  /**
@@ -755,12 +994,43 @@ function requireReactIs_development() {
755
994
  }
756
995
  return reactIs_development;
757
996
  }
758
- if (process.env.NODE_ENV === "production") {
759
- reactIs.exports = requireReactIs_production_min();
760
- } else {
761
- reactIs.exports = requireReactIs_development();
997
+ var hasRequiredReactIs;
998
+ function requireReactIs() {
999
+ if (hasRequiredReactIs) return reactIs.exports;
1000
+ hasRequiredReactIs = 1;
1001
+ if (process.env.NODE_ENV === "production") {
1002
+ reactIs.exports = requireReactIs_production_min();
1003
+ } else {
1004
+ reactIs.exports = requireReactIs_development();
1005
+ }
1006
+ return reactIs.exports;
762
1007
  }
763
- var reactIsExports = reactIs.exports;
1008
+ var reactIsExports = requireReactIs();
1009
+ var index = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports);
1010
+ var ReactIs18 = /* @__PURE__ */ _mergeNamespaces$1({
1011
+ __proto__: null,
1012
+ default: index
1013
+ }, [reactIsExports]);
1014
+ const reactIsMethods = [
1015
+ "isAsyncMode",
1016
+ "isConcurrentMode",
1017
+ "isContextConsumer",
1018
+ "isContextProvider",
1019
+ "isElement",
1020
+ "isForwardRef",
1021
+ "isFragment",
1022
+ "isLazy",
1023
+ "isMemo",
1024
+ "isPortal",
1025
+ "isProfiler",
1026
+ "isStrictMode",
1027
+ "isSuspense",
1028
+ "isSuspenseList",
1029
+ "isValidElementType"
1030
+ ];
1031
+ const ReactIs = Object.fromEntries(
1032
+ reactIsMethods.map((m) => [m, (v) => ReactIs18[m](v) || ReactIs19[m](v)])
1033
+ );
764
1034
  function getChildren(arg, children = []) {
765
1035
  if (Array.isArray(arg)) {
766
1036
  for (const item of arg) {
@@ -779,27 +1049,27 @@ function getType(element) {
779
1049
  if (typeof type === "function") {
780
1050
  return type.displayName || type.name || "Unknown";
781
1051
  }
782
- if (reactIsExports.isFragment(element)) {
1052
+ if (ReactIs.isFragment(element)) {
783
1053
  return "React.Fragment";
784
1054
  }
785
- if (reactIsExports.isSuspense(element)) {
1055
+ if (ReactIs.isSuspense(element)) {
786
1056
  return "React.Suspense";
787
1057
  }
788
1058
  if (typeof type === "object" && type !== null) {
789
- if (reactIsExports.isContextProvider(element)) {
1059
+ if (ReactIs.isContextProvider(element)) {
790
1060
  return "Context.Provider";
791
1061
  }
792
- if (reactIsExports.isContextConsumer(element)) {
1062
+ if (ReactIs.isContextConsumer(element)) {
793
1063
  return "Context.Consumer";
794
1064
  }
795
- if (reactIsExports.isForwardRef(element)) {
1065
+ if (ReactIs.isForwardRef(element)) {
796
1066
  if (type.displayName) {
797
1067
  return type.displayName;
798
1068
  }
799
1069
  const functionName = type.render.displayName || type.render.name || "";
800
1070
  return functionName === "" ? "ForwardRef" : `ForwardRef(${functionName})`;
801
1071
  }
802
- if (reactIsExports.isMemo(element)) {
1072
+ if (ReactIs.isMemo(element)) {
803
1073
  const functionName = type.displayName || type.type.displayName || type.type.name || "";
804
1074
  return functionName === "" ? "Memo" : `Memo(${functionName})`;
805
1075
  }
@@ -832,7 +1102,7 @@ const serialize$1 = (element, config, indentation, depth, refs, printer2) => ++d
832
1102
  config,
833
1103
  indentation
834
1104
  );
835
- const test$1 = (val) => val != null && reactIsExports.isElement(val);
1105
+ const test$1 = (val) => val != null && ReactIs.isElement(val);
836
1106
  const plugin$1 = { serialize: serialize$1, test: test$1 };
837
1107
  const testSymbol = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
838
1108
  function getPropKeys(object) {
@@ -1017,6 +1287,32 @@ function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSO
1017
1287
  printer
1018
1288
  )}}`;
1019
1289
  }
1290
+ const ErrorPlugin = {
1291
+ test: (val) => val && val instanceof Error,
1292
+ serialize(val, config, indentation, depth, refs, printer2) {
1293
+ if (refs.includes(val)) {
1294
+ return "[Circular]";
1295
+ }
1296
+ refs = [...refs, val];
1297
+ const hitMaxDepth = ++depth > config.maxDepth;
1298
+ const { message, cause, ...rest } = val;
1299
+ const entries = {
1300
+ message,
1301
+ ...typeof cause !== "undefined" ? { cause } : {},
1302
+ ...val instanceof AggregateError ? { errors: val.errors } : {},
1303
+ ...rest
1304
+ };
1305
+ const name = val.name !== "Error" ? val.name : getConstructorName(val);
1306
+ return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(
1307
+ Object.entries(entries).values(),
1308
+ config,
1309
+ indentation,
1310
+ depth,
1311
+ refs,
1312
+ printer2
1313
+ )}}`;
1314
+ }
1315
+ };
1020
1316
  function isNewPlugin(plugin2) {
1021
1317
  return plugin2.serialize != null;
1022
1318
  }
@@ -1121,7 +1417,7 @@ function validateOptions(options) {
1121
1417
  function getColorsHighlight() {
1122
1418
  return DEFAULT_THEME_KEYS.reduce((colors, key) => {
1123
1419
  const value = DEFAULT_THEME[key];
1124
- const color = value && browser.default[value];
1420
+ const color = value && browser[value];
1125
1421
  if (color && typeof color.close === "string" && typeof color.open === "string") {
1126
1422
  colors[key] = color;
1127
1423
  } else {
@@ -1195,7 +1491,8 @@ const plugins = {
1195
1491
  DOMElement: plugin$3,
1196
1492
  Immutable: plugin$2,
1197
1493
  ReactElement: plugin$1,
1198
- ReactTestComponent: plugin
1494
+ ReactTestComponent: plugin,
1495
+ Error: ErrorPlugin
1199
1496
  };
1200
1497
  exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
1201
1498
  exports.format = format;