@depup/vitest 5.0.2-depup.0 → 5.0.3-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +28 -0
- package/README.md +6 -4
- package/browser/context.d.ts +7 -1
- package/browser/context.js +5 -5
- package/changes.json +11 -3
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +10 -10
- package/dist/chunks/{base.5tQXSzMP.js → base.DhkQeZwd.js} +14 -14
- package/dist/chunks/{browser.d.g5Thl309.d.ts → browser.d.3cffPS1V.d.ts} +3 -3
- package/dist/chunks/{cac.BLbEtnDd.js → cac.DfDGTQ9W.js} +9 -9
- package/dist/chunks/{cli-api.DL4Bd7Vh.js → cli-api.C4x4GGip.js} +5 -5
- package/dist/chunks/{config.d.CU_b-wJj.d.ts → config.d.BxjInJat.d.ts} +13 -15
- package/dist/chunks/{console.B09ye7y0.js → console.RBA5x-0t.js} +3 -2
- package/dist/chunks/{coverage.AipniaqB.js → coverage.S6Dao4g-.js} +1 -1
- package/dist/chunks/{coverage.CX7NN5s7.js → coverage._yXj5zeb.js} +1 -1
- package/dist/chunks/{creator.2VTnpYzN.js → creator.203NYCo3.js} +12 -12
- package/dist/chunks/{display.pkpxlVcY.js → display.CXBnkt9a.js} +1 -1
- package/dist/chunks/{doctor.BCXa6-1R.js → doctor.CpHPRoza.js} +2 -2
- package/dist/chunks/{environment.d.C6xYahWA.d.ts → environment.d.DAj1Vt__.d.ts} +1 -1
- package/dist/chunks/{globals.Brdv9iOs.js → globals.9QtHn8Sr.js} +9 -9
- package/dist/chunks/{index.DGdajAO2.js → index.C4tKZ0yW.js} +14 -11
- package/dist/chunks/{index.C-uw7tH9.js → index.DpLw24bj.js} +168 -78
- package/dist/chunks/{index.M2dsQ_UQ.js → index.cx-_w29y.js} +551 -179
- package/dist/chunks/{index.BgwtGYxD.js → index.ggMXe2IF.js} +5 -5
- package/dist/chunks/{index.hTNFpC24.js → index.k8L_ZRzq.js} +20 -5
- package/dist/chunks/{init-forks.CdGu3HUy.js → init-forks.hzLs7kMZ.js} +1 -1
- package/dist/chunks/{init-threads.2f_lsHNK.js → init-threads.COb0VD5D.js} +1 -1
- package/dist/chunks/{init.IsjtLXKe.js → init.D0qF-GGk.js} +4 -5
- package/dist/chunks/{native.CF4uT5hY.js → native.CBlba4VV.js} +2 -2
- package/dist/chunks/{nativeModuleMocker.DwRB4F9R.js → nativeModuleMocker.CXSh3m91.js} +2 -2
- package/dist/chunks/{nativeModuleRunner.J0QLzNtK.js → nativeModuleRunner.jwZPY3dg.js} +1 -1
- package/dist/chunks/{node.CfQ_OGWr.js → node.BzimPqT5.js} +1 -1
- package/dist/chunks/{pathe.M-eThtNZ.DwEga6ro.js → pathe.M-eThtNZ.CknpM8Or.js} +1 -1
- package/dist/chunks/{plugin.d.My_z-jmU.d.ts → plugin.d.BsjqSb4-.d.ts} +26 -20
- package/dist/chunks/{plugins.Cigb0uSy.js → plugins.D2ut1V9b.js} +1 -1
- package/dist/chunks/{resolver.NpfwMKt9.js → resolver.fbW9AUvG.js} +1 -1
- package/dist/chunks/{rpc.CJVl3hZH.js → rpc.BTmCtPly.js} +3 -2
- package/dist/chunks/{rpc.d.DA9Utv4e.d.ts → rpc.d.BPFHl-HE.d.ts} +1 -1
- package/dist/chunks/{run.C5UmxDPh.js → run.BTlFXlnv.js} +29 -19
- package/dist/chunks/{setup-common.Ct8rQvjH.js → setup-common.BglbuAHD.js} +3 -3
- package/dist/chunks/{source-map.BH0bbrs9.js → source-map.DUxvo12T.js} +4 -8
- package/dist/chunks/{source-map.d.YqWNcp4e.d.ts → source-map.d.BLHtC2OB.d.ts} +1 -1
- package/dist/chunks/{spy.KLHgXex_.js → spy.DgMTfhrK.js} +18 -16
- package/dist/chunks/{task-utils.d.BZm4GSQD.d.ts → task-utils.d.C-IeGxLU.d.ts} +1 -1
- package/dist/chunks/{utils.CJ0JImL8.js → utils.RcGwuOc_.js} +2 -2
- package/dist/chunks/{vm.KI2AYADz.js → vm.vTyZj_02.js} +8 -8
- package/dist/chunks/{worker.d.MLmnzOJE.d.ts → worker.d.Bt2A2mmi.d.ts} +3 -3
- package/dist/cli.js +2 -2
- package/dist/config.d.ts +9 -9
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/module-evaluator.d.ts +3 -2
- package/dist/module-evaluator.js +8 -5
- package/dist/node.d.ts +9 -9
- package/dist/node.js +14 -14
- package/dist/runtime.d.ts +6 -6
- package/dist/runtime.js +4 -4
- package/dist/spy.js +1 -1
- package/dist/task-utils.js +2 -1
- package/dist/worker.d.ts +4 -4
- package/dist/worker.js +17 -17
- package/dist/workers/forks.js +18 -18
- package/dist/workers/runVmTests.js +14 -14
- package/dist/workers/threads.js +18 -18
- package/dist/workers/vmForks.js +12 -12
- package/dist/workers/vmThreads.js +12 -12
- package/globals.d.ts +19 -19
- package/index.cjs +3 -3
- package/optional-runtime-types.d.ts +1 -1
- package/optional-types.d.ts +1 -1
- package/package.json +33 -20
- package/suppress-warnings.cjs +1 -1
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { y } from './tinyrainbow.Ht9iggcq.js';
|
|
2
2
|
|
|
3
|
-
function _mergeNamespaces
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
return Object.freeze(n);
|
|
3
|
+
function _mergeNamespaces(n, m) {
|
|
4
|
+
m.forEach(function (e) {
|
|
5
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
+
if (k !== 'default' && !(k in n)) {
|
|
7
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return e[k]; }
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
return Object.freeze(n);
|
|
18
16
|
}
|
|
17
|
+
|
|
19
18
|
function getKeysOfEnumerableProperties(object, compareKeys) {
|
|
20
19
|
const rawKeys = Object.keys(object);
|
|
21
20
|
const keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
|
|
@@ -141,6 +140,7 @@ const keyStrRegExp = /^[a-z_]\w*$/i;
|
|
|
141
140
|
function isUnquotableKey(key) {
|
|
142
141
|
return typeof key === "string" && key !== "__proto__" && keyStrRegExp.test(key);
|
|
143
142
|
}
|
|
143
|
+
|
|
144
144
|
const asymmetricMatcher = typeof Symbol === "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621;
|
|
145
145
|
const SPACE$2 = " ";
|
|
146
146
|
const serialize$5 = (val, config, indentation, depth, refs, printer) => {
|
|
@@ -163,6 +163,7 @@ const plugin$5 = {
|
|
|
163
163
|
serialize: serialize$5,
|
|
164
164
|
test: test$5
|
|
165
165
|
};
|
|
166
|
+
|
|
166
167
|
const SPACE$1 = " ";
|
|
167
168
|
const OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]);
|
|
168
169
|
const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
|
|
@@ -185,6 +186,7 @@ const plugin$4 = {
|
|
|
185
186
|
serialize: serialize$4,
|
|
186
187
|
test: test$4
|
|
187
188
|
};
|
|
189
|
+
|
|
188
190
|
/**
|
|
189
191
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
190
192
|
*
|
|
@@ -194,6 +196,7 @@ const plugin$4 = {
|
|
|
194
196
|
function escapeHTML(str) {
|
|
195
197
|
return str.replaceAll("<", "<").replaceAll(">", ">");
|
|
196
198
|
}
|
|
199
|
+
|
|
197
200
|
// Return empty string if keys is empty.
|
|
198
201
|
function printProps(keys, props, config, indentation, depth, refs, printer) {
|
|
199
202
|
const indentationNext = indentation + config.indent;
|
|
@@ -238,6 +241,7 @@ function printElementAsLeaf(type, config) {
|
|
|
238
241
|
const tagColor = config.colors.tag;
|
|
239
242
|
return `${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`;
|
|
240
243
|
}
|
|
244
|
+
|
|
241
245
|
const ELEMENT_NODE = 1;
|
|
242
246
|
const TEXT_NODE = 3;
|
|
243
247
|
const COMMENT_NODE = 8;
|
|
@@ -305,6 +309,7 @@ const plugin$3 = {
|
|
|
305
309
|
serialize: serialize$3,
|
|
306
310
|
test: test$3
|
|
307
311
|
};
|
|
312
|
+
|
|
308
313
|
// SENTINEL constants are from https://github.com/immutable-js/immutable-js
|
|
309
314
|
const IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
310
315
|
const IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -373,48 +378,75 @@ const plugin$2 = {
|
|
|
373
378
|
serialize: serialize$2,
|
|
374
379
|
test: test$2
|
|
375
380
|
};
|
|
381
|
+
|
|
382
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
376
383
|
function getDefaultExportFromCjs(x) {
|
|
377
384
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
378
385
|
}
|
|
379
|
-
|
|
386
|
+
|
|
387
|
+
var reactIs$1 = {exports: {}};
|
|
388
|
+
|
|
380
389
|
var reactIs_production = {};
|
|
390
|
+
|
|
381
391
|
/**
|
|
382
|
-
* @license React
|
|
383
|
-
* react-is.production.js
|
|
384
|
-
*
|
|
385
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
386
|
-
*
|
|
387
|
-
* This source code is licensed under the MIT license found in the
|
|
388
|
-
* LICENSE file in the root directory of this source tree.
|
|
389
|
-
*/
|
|
392
|
+
* @license React
|
|
393
|
+
* react-is.production.js
|
|
394
|
+
*
|
|
395
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the MIT license found in the
|
|
398
|
+
* LICENSE file in the root directory of this source tree.
|
|
399
|
+
*/
|
|
400
|
+
|
|
390
401
|
var hasRequiredReactIs_production;
|
|
391
|
-
|
|
402
|
+
|
|
403
|
+
function requireReactIs_production () {
|
|
392
404
|
if (hasRequiredReactIs_production) return reactIs_production;
|
|
393
405
|
hasRequiredReactIs_production = 1;
|
|
394
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
406
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
407
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
408
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
409
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
410
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
411
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
412
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
413
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
414
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
415
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
416
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
417
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
418
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
419
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
395
420
|
function typeOf(object) {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
421
|
+
if ("object" === typeof object && null !== object) {
|
|
422
|
+
var $$typeof = object.$$typeof;
|
|
423
|
+
switch ($$typeof) {
|
|
424
|
+
case REACT_ELEMENT_TYPE:
|
|
425
|
+
switch (((object = object.type), object)) {
|
|
426
|
+
case REACT_FRAGMENT_TYPE:
|
|
427
|
+
case REACT_PROFILER_TYPE:
|
|
428
|
+
case REACT_STRICT_MODE_TYPE:
|
|
429
|
+
case REACT_SUSPENSE_TYPE:
|
|
430
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
431
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
432
|
+
return object;
|
|
433
|
+
default:
|
|
434
|
+
switch (((object = object && object.$$typeof), object)) {
|
|
435
|
+
case REACT_CONTEXT_TYPE:
|
|
436
|
+
case REACT_FORWARD_REF_TYPE:
|
|
437
|
+
case REACT_LAZY_TYPE:
|
|
438
|
+
case REACT_MEMO_TYPE:
|
|
439
|
+
return object;
|
|
440
|
+
case REACT_CONSUMER_TYPE:
|
|
441
|
+
return object;
|
|
442
|
+
default:
|
|
443
|
+
return $$typeof;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
case REACT_PORTAL_TYPE:
|
|
447
|
+
return $$typeof;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
418
450
|
}
|
|
419
451
|
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
420
452
|
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
|
@@ -428,172 +460,511 @@ function requireReactIs_production() {
|
|
|
428
460
|
reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
429
461
|
reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
430
462
|
reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
431
|
-
reactIs_production.isContextConsumer = function(object) {
|
|
432
|
-
|
|
463
|
+
reactIs_production.isContextConsumer = function (object) {
|
|
464
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
433
465
|
};
|
|
434
|
-
reactIs_production.isContextProvider = function(object) {
|
|
435
|
-
|
|
466
|
+
reactIs_production.isContextProvider = function (object) {
|
|
467
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
436
468
|
};
|
|
437
|
-
reactIs_production.isElement = function(object) {
|
|
438
|
-
|
|
469
|
+
reactIs_production.isElement = function (object) {
|
|
470
|
+
return (
|
|
471
|
+
"object" === typeof object &&
|
|
472
|
+
null !== object &&
|
|
473
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
|
474
|
+
);
|
|
439
475
|
};
|
|
440
|
-
reactIs_production.isForwardRef = function(object) {
|
|
441
|
-
|
|
476
|
+
reactIs_production.isForwardRef = function (object) {
|
|
477
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
442
478
|
};
|
|
443
|
-
reactIs_production.isFragment = function(object) {
|
|
444
|
-
|
|
479
|
+
reactIs_production.isFragment = function (object) {
|
|
480
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
445
481
|
};
|
|
446
|
-
reactIs_production.isLazy = function(object) {
|
|
447
|
-
|
|
482
|
+
reactIs_production.isLazy = function (object) {
|
|
483
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
448
484
|
};
|
|
449
|
-
reactIs_production.isMemo = function(object) {
|
|
450
|
-
|
|
485
|
+
reactIs_production.isMemo = function (object) {
|
|
486
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
451
487
|
};
|
|
452
|
-
reactIs_production.isPortal = function(object) {
|
|
453
|
-
|
|
488
|
+
reactIs_production.isPortal = function (object) {
|
|
489
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
454
490
|
};
|
|
455
|
-
reactIs_production.isProfiler = function(object) {
|
|
456
|
-
|
|
491
|
+
reactIs_production.isProfiler = function (object) {
|
|
492
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
457
493
|
};
|
|
458
|
-
reactIs_production.isStrictMode = function(object) {
|
|
459
|
-
|
|
494
|
+
reactIs_production.isStrictMode = function (object) {
|
|
495
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
460
496
|
};
|
|
461
|
-
reactIs_production.isSuspense = function(object) {
|
|
462
|
-
|
|
497
|
+
reactIs_production.isSuspense = function (object) {
|
|
498
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
463
499
|
};
|
|
464
|
-
reactIs_production.isSuspenseList = function(object) {
|
|
465
|
-
|
|
500
|
+
reactIs_production.isSuspenseList = function (object) {
|
|
501
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
466
502
|
};
|
|
467
|
-
reactIs_production.isValidElementType = function(type) {
|
|
468
|
-
|
|
503
|
+
reactIs_production.isValidElementType = function (type) {
|
|
504
|
+
return "string" === typeof type ||
|
|
505
|
+
"function" === typeof type ||
|
|
506
|
+
type === REACT_FRAGMENT_TYPE ||
|
|
507
|
+
type === REACT_PROFILER_TYPE ||
|
|
508
|
+
type === REACT_STRICT_MODE_TYPE ||
|
|
509
|
+
type === REACT_SUSPENSE_TYPE ||
|
|
510
|
+
type === REACT_SUSPENSE_LIST_TYPE ||
|
|
511
|
+
("object" === typeof type &&
|
|
512
|
+
null !== type &&
|
|
513
|
+
(type.$$typeof === REACT_LAZY_TYPE ||
|
|
514
|
+
type.$$typeof === REACT_MEMO_TYPE ||
|
|
515
|
+
type.$$typeof === REACT_CONTEXT_TYPE ||
|
|
516
|
+
type.$$typeof === REACT_CONSUMER_TYPE ||
|
|
517
|
+
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
518
|
+
type.$$typeof === REACT_CLIENT_REFERENCE ||
|
|
519
|
+
void 0 !== type.getModuleId))
|
|
520
|
+
? true
|
|
521
|
+
: false;
|
|
469
522
|
};
|
|
470
523
|
reactIs_production.typeOf = typeOf;
|
|
471
524
|
return reactIs_production;
|
|
472
525
|
}
|
|
526
|
+
|
|
527
|
+
var reactIs_development$1 = {};
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @license React
|
|
531
|
+
* react-is.development.js
|
|
532
|
+
*
|
|
533
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
534
|
+
*
|
|
535
|
+
* This source code is licensed under the MIT license found in the
|
|
536
|
+
* LICENSE file in the root directory of this source tree.
|
|
537
|
+
*/
|
|
538
|
+
|
|
539
|
+
var hasRequiredReactIs_development$1;
|
|
540
|
+
|
|
541
|
+
function requireReactIs_development$1 () {
|
|
542
|
+
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
543
|
+
hasRequiredReactIs_development$1 = 1;
|
|
544
|
+
"production" !== process.env.NODE_ENV &&
|
|
545
|
+
(function () {
|
|
546
|
+
function typeOf(object) {
|
|
547
|
+
if ("object" === typeof object && null !== object) {
|
|
548
|
+
var $$typeof = object.$$typeof;
|
|
549
|
+
switch ($$typeof) {
|
|
550
|
+
case REACT_ELEMENT_TYPE:
|
|
551
|
+
switch (((object = object.type), object)) {
|
|
552
|
+
case REACT_FRAGMENT_TYPE:
|
|
553
|
+
case REACT_PROFILER_TYPE:
|
|
554
|
+
case REACT_STRICT_MODE_TYPE:
|
|
555
|
+
case REACT_SUSPENSE_TYPE:
|
|
556
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
557
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
558
|
+
return object;
|
|
559
|
+
default:
|
|
560
|
+
switch (((object = object && object.$$typeof), object)) {
|
|
561
|
+
case REACT_CONTEXT_TYPE:
|
|
562
|
+
case REACT_FORWARD_REF_TYPE:
|
|
563
|
+
case REACT_LAZY_TYPE:
|
|
564
|
+
case REACT_MEMO_TYPE:
|
|
565
|
+
return object;
|
|
566
|
+
case REACT_CONSUMER_TYPE:
|
|
567
|
+
return object;
|
|
568
|
+
default:
|
|
569
|
+
return $$typeof;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
case REACT_PORTAL_TYPE:
|
|
573
|
+
return $$typeof;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
578
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
579
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
580
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
581
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
582
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
583
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
584
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
585
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
586
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
587
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
588
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
589
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
590
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
591
|
+
reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
592
|
+
reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;
|
|
593
|
+
reactIs_development$1.Element = REACT_ELEMENT_TYPE;
|
|
594
|
+
reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
595
|
+
reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;
|
|
596
|
+
reactIs_development$1.Lazy = REACT_LAZY_TYPE;
|
|
597
|
+
reactIs_development$1.Memo = REACT_MEMO_TYPE;
|
|
598
|
+
reactIs_development$1.Portal = REACT_PORTAL_TYPE;
|
|
599
|
+
reactIs_development$1.Profiler = REACT_PROFILER_TYPE;
|
|
600
|
+
reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
601
|
+
reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;
|
|
602
|
+
reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
603
|
+
reactIs_development$1.isContextConsumer = function (object) {
|
|
604
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
605
|
+
};
|
|
606
|
+
reactIs_development$1.isContextProvider = function (object) {
|
|
607
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
608
|
+
};
|
|
609
|
+
reactIs_development$1.isElement = function (object) {
|
|
610
|
+
return (
|
|
611
|
+
"object" === typeof object &&
|
|
612
|
+
null !== object &&
|
|
613
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
|
614
|
+
);
|
|
615
|
+
};
|
|
616
|
+
reactIs_development$1.isForwardRef = function (object) {
|
|
617
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
618
|
+
};
|
|
619
|
+
reactIs_development$1.isFragment = function (object) {
|
|
620
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
621
|
+
};
|
|
622
|
+
reactIs_development$1.isLazy = function (object) {
|
|
623
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
624
|
+
};
|
|
625
|
+
reactIs_development$1.isMemo = function (object) {
|
|
626
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
627
|
+
};
|
|
628
|
+
reactIs_development$1.isPortal = function (object) {
|
|
629
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
630
|
+
};
|
|
631
|
+
reactIs_development$1.isProfiler = function (object) {
|
|
632
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
633
|
+
};
|
|
634
|
+
reactIs_development$1.isStrictMode = function (object) {
|
|
635
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
636
|
+
};
|
|
637
|
+
reactIs_development$1.isSuspense = function (object) {
|
|
638
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
639
|
+
};
|
|
640
|
+
reactIs_development$1.isSuspenseList = function (object) {
|
|
641
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
642
|
+
};
|
|
643
|
+
reactIs_development$1.isValidElementType = function (type) {
|
|
644
|
+
return "string" === typeof type ||
|
|
645
|
+
"function" === typeof type ||
|
|
646
|
+
type === REACT_FRAGMENT_TYPE ||
|
|
647
|
+
type === REACT_PROFILER_TYPE ||
|
|
648
|
+
type === REACT_STRICT_MODE_TYPE ||
|
|
649
|
+
type === REACT_SUSPENSE_TYPE ||
|
|
650
|
+
type === REACT_SUSPENSE_LIST_TYPE ||
|
|
651
|
+
("object" === typeof type &&
|
|
652
|
+
null !== type &&
|
|
653
|
+
(type.$$typeof === REACT_LAZY_TYPE ||
|
|
654
|
+
type.$$typeof === REACT_MEMO_TYPE ||
|
|
655
|
+
type.$$typeof === REACT_CONTEXT_TYPE ||
|
|
656
|
+
type.$$typeof === REACT_CONSUMER_TYPE ||
|
|
657
|
+
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
658
|
+
type.$$typeof === REACT_CLIENT_REFERENCE ||
|
|
659
|
+
void 0 !== type.getModuleId))
|
|
660
|
+
? true
|
|
661
|
+
: false;
|
|
662
|
+
};
|
|
663
|
+
reactIs_development$1.typeOf = typeOf;
|
|
664
|
+
})();
|
|
665
|
+
return reactIs_development$1;
|
|
666
|
+
}
|
|
667
|
+
|
|
473
668
|
var hasRequiredReactIs$1;
|
|
474
|
-
|
|
669
|
+
|
|
670
|
+
function requireReactIs$1 () {
|
|
475
671
|
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
476
672
|
hasRequiredReactIs$1 = 1;
|
|
477
|
-
|
|
673
|
+
|
|
674
|
+
if (process.env.NODE_ENV === 'production') {
|
|
675
|
+
reactIs$1.exports = requireReactIs_production();
|
|
676
|
+
} else {
|
|
677
|
+
reactIs$1.exports = requireReactIs_development$1();
|
|
678
|
+
}
|
|
478
679
|
return reactIs$1.exports;
|
|
479
680
|
}
|
|
681
|
+
|
|
480
682
|
var reactIsExports$1 = requireReactIs$1();
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
|
|
683
|
+
var index$1 = /*@__PURE__*/getDefaultExportFromCjs(reactIsExports$1);
|
|
684
|
+
|
|
685
|
+
var ReactIs19 = /*#__PURE__*/_mergeNamespaces({
|
|
686
|
+
__proto__: null,
|
|
687
|
+
default: index$1
|
|
484
688
|
}, [reactIsExports$1]);
|
|
485
|
-
|
|
689
|
+
|
|
690
|
+
var reactIs = {exports: {}};
|
|
691
|
+
|
|
486
692
|
var reactIs_production_min = {};
|
|
693
|
+
|
|
487
694
|
/**
|
|
488
|
-
* @license React
|
|
489
|
-
* react-is.production.min.js
|
|
490
|
-
*
|
|
491
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
492
|
-
*
|
|
493
|
-
* This source code is licensed under the MIT license found in the
|
|
494
|
-
* LICENSE file in the root directory of this source tree.
|
|
495
|
-
*/
|
|
695
|
+
* @license React
|
|
696
|
+
* react-is.production.min.js
|
|
697
|
+
*
|
|
698
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
699
|
+
*
|
|
700
|
+
* This source code is licensed under the MIT license found in the
|
|
701
|
+
* LICENSE file in the root directory of this source tree.
|
|
702
|
+
*/
|
|
703
|
+
|
|
496
704
|
var hasRequiredReactIs_production_min;
|
|
497
|
-
|
|
705
|
+
|
|
706
|
+
function requireReactIs_production_min () {
|
|
498
707
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
499
708
|
hasRequiredReactIs_production_min = 1;
|
|
500
|
-
|
|
501
|
-
function v(a) {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
case b: switch (a = a.type, a) {
|
|
506
|
-
case d:
|
|
507
|
-
case f:
|
|
508
|
-
case e:
|
|
509
|
-
case m:
|
|
510
|
-
case n: return a;
|
|
511
|
-
default: switch (a = a && a.$$typeof, a) {
|
|
512
|
-
case k:
|
|
513
|
-
case h:
|
|
514
|
-
case l:
|
|
515
|
-
case q:
|
|
516
|
-
case p:
|
|
517
|
-
case g: return a;
|
|
518
|
-
default: return r;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
case c: return r;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
reactIs_production_min.ContextConsumer = h;
|
|
526
|
-
reactIs_production_min.ContextProvider = g;
|
|
527
|
-
reactIs_production_min.Element = b;
|
|
528
|
-
reactIs_production_min.ForwardRef = l;
|
|
529
|
-
reactIs_production_min.Fragment = d;
|
|
530
|
-
reactIs_production_min.Lazy = q;
|
|
531
|
-
reactIs_production_min.Memo = p;
|
|
532
|
-
reactIs_production_min.Portal = c;
|
|
533
|
-
reactIs_production_min.Profiler = f;
|
|
534
|
-
reactIs_production_min.StrictMode = e;
|
|
535
|
-
reactIs_production_min.Suspense = m;
|
|
536
|
-
reactIs_production_min.SuspenseList = n;
|
|
537
|
-
reactIs_production_min.isAsyncMode = function() {
|
|
538
|
-
return false;
|
|
539
|
-
};
|
|
540
|
-
reactIs_production_min.isConcurrentMode = function() {
|
|
541
|
-
return false;
|
|
542
|
-
};
|
|
543
|
-
reactIs_production_min.isContextConsumer = function(a) {
|
|
544
|
-
return v(a) === h;
|
|
545
|
-
};
|
|
546
|
-
reactIs_production_min.isContextProvider = function(a) {
|
|
547
|
-
return v(a) === g;
|
|
548
|
-
};
|
|
549
|
-
reactIs_production_min.isElement = function(a) {
|
|
550
|
-
return "object" === typeof a && null !== a && a.$$typeof === b;
|
|
551
|
-
};
|
|
552
|
-
reactIs_production_min.isForwardRef = function(a) {
|
|
553
|
-
return v(a) === l;
|
|
554
|
-
};
|
|
555
|
-
reactIs_production_min.isFragment = function(a) {
|
|
556
|
-
return v(a) === d;
|
|
557
|
-
};
|
|
558
|
-
reactIs_production_min.isLazy = function(a) {
|
|
559
|
-
return v(a) === q;
|
|
560
|
-
};
|
|
561
|
-
reactIs_production_min.isMemo = function(a) {
|
|
562
|
-
return v(a) === p;
|
|
563
|
-
};
|
|
564
|
-
reactIs_production_min.isPortal = function(a) {
|
|
565
|
-
return v(a) === c;
|
|
566
|
-
};
|
|
567
|
-
reactIs_production_min.isProfiler = function(a) {
|
|
568
|
-
return v(a) === f;
|
|
569
|
-
};
|
|
570
|
-
reactIs_production_min.isStrictMode = function(a) {
|
|
571
|
-
return v(a) === e;
|
|
572
|
-
};
|
|
573
|
-
reactIs_production_min.isSuspense = function(a) {
|
|
574
|
-
return v(a) === m;
|
|
575
|
-
};
|
|
576
|
-
reactIs_production_min.isSuspenseList = function(a) {
|
|
577
|
-
return v(a) === n;
|
|
578
|
-
};
|
|
579
|
-
reactIs_production_min.isValidElementType = function(a) {
|
|
580
|
-
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
|
|
581
|
-
};
|
|
582
|
-
reactIs_production_min.typeOf = v;
|
|
709
|
+
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
|
710
|
+
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
711
|
+
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return false};reactIs_production_min.isConcurrentMode=function(){return false};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
712
|
+
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
713
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?true:false};reactIs_production_min.typeOf=v;
|
|
583
714
|
return reactIs_production_min;
|
|
584
715
|
}
|
|
716
|
+
|
|
717
|
+
var reactIs_development = {};
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* @license React
|
|
721
|
+
* react-is.development.js
|
|
722
|
+
*
|
|
723
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
724
|
+
*
|
|
725
|
+
* This source code is licensed under the MIT license found in the
|
|
726
|
+
* LICENSE file in the root directory of this source tree.
|
|
727
|
+
*/
|
|
728
|
+
|
|
729
|
+
var hasRequiredReactIs_development;
|
|
730
|
+
|
|
731
|
+
function requireReactIs_development () {
|
|
732
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
733
|
+
hasRequiredReactIs_development = 1;
|
|
734
|
+
|
|
735
|
+
if (process.env.NODE_ENV !== "production") {
|
|
736
|
+
(function() {
|
|
737
|
+
|
|
738
|
+
// ATTENTION
|
|
739
|
+
// When adding new symbols to this file,
|
|
740
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
741
|
+
// The Symbol used to tag the ReactElement-like types.
|
|
742
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
743
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
744
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
745
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
746
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
747
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
748
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
749
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
750
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
751
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
752
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
753
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
754
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
755
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
756
|
+
|
|
757
|
+
// -----------------------------------------------------------------------------
|
|
758
|
+
|
|
759
|
+
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
760
|
+
var enableCacheElement = false;
|
|
761
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
762
|
+
|
|
763
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
764
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
765
|
+
// issues in DEV builds.
|
|
766
|
+
|
|
767
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
768
|
+
|
|
769
|
+
var REACT_MODULE_REFERENCE;
|
|
770
|
+
|
|
771
|
+
{
|
|
772
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
function isValidElementType(type) {
|
|
776
|
+
if (typeof type === 'string' || typeof type === 'function') {
|
|
777
|
+
return true;
|
|
778
|
+
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
782
|
+
return true;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
if (typeof type === 'object' && type !== null) {
|
|
786
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
787
|
+
// types supported by any Flight configuration anywhere since
|
|
788
|
+
// we don't know which Flight build this will end up being used
|
|
789
|
+
// with.
|
|
790
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
791
|
+
return true;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
return false;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
function typeOf(object) {
|
|
799
|
+
if (typeof object === 'object' && object !== null) {
|
|
800
|
+
var $$typeof = object.$$typeof;
|
|
801
|
+
|
|
802
|
+
switch ($$typeof) {
|
|
803
|
+
case REACT_ELEMENT_TYPE:
|
|
804
|
+
var type = object.type;
|
|
805
|
+
|
|
806
|
+
switch (type) {
|
|
807
|
+
case REACT_FRAGMENT_TYPE:
|
|
808
|
+
case REACT_PROFILER_TYPE:
|
|
809
|
+
case REACT_STRICT_MODE_TYPE:
|
|
810
|
+
case REACT_SUSPENSE_TYPE:
|
|
811
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
812
|
+
return type;
|
|
813
|
+
|
|
814
|
+
default:
|
|
815
|
+
var $$typeofType = type && type.$$typeof;
|
|
816
|
+
|
|
817
|
+
switch ($$typeofType) {
|
|
818
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
819
|
+
case REACT_CONTEXT_TYPE:
|
|
820
|
+
case REACT_FORWARD_REF_TYPE:
|
|
821
|
+
case REACT_LAZY_TYPE:
|
|
822
|
+
case REACT_MEMO_TYPE:
|
|
823
|
+
case REACT_PROVIDER_TYPE:
|
|
824
|
+
return $$typeofType;
|
|
825
|
+
|
|
826
|
+
default:
|
|
827
|
+
return $$typeof;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
case REACT_PORTAL_TYPE:
|
|
833
|
+
return $$typeof;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
return undefined;
|
|
838
|
+
}
|
|
839
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
840
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
841
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
842
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
843
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
844
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
845
|
+
var Memo = REACT_MEMO_TYPE;
|
|
846
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
847
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
848
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
849
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
850
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
851
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
852
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
853
|
+
|
|
854
|
+
function isAsyncMode(object) {
|
|
855
|
+
{
|
|
856
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
857
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
858
|
+
|
|
859
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
return false;
|
|
864
|
+
}
|
|
865
|
+
function isConcurrentMode(object) {
|
|
866
|
+
{
|
|
867
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
868
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
869
|
+
|
|
870
|
+
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
return false;
|
|
875
|
+
}
|
|
876
|
+
function isContextConsumer(object) {
|
|
877
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
878
|
+
}
|
|
879
|
+
function isContextProvider(object) {
|
|
880
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
881
|
+
}
|
|
882
|
+
function isElement(object) {
|
|
883
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
884
|
+
}
|
|
885
|
+
function isForwardRef(object) {
|
|
886
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
887
|
+
}
|
|
888
|
+
function isFragment(object) {
|
|
889
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
890
|
+
}
|
|
891
|
+
function isLazy(object) {
|
|
892
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
893
|
+
}
|
|
894
|
+
function isMemo(object) {
|
|
895
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
896
|
+
}
|
|
897
|
+
function isPortal(object) {
|
|
898
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
899
|
+
}
|
|
900
|
+
function isProfiler(object) {
|
|
901
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
902
|
+
}
|
|
903
|
+
function isStrictMode(object) {
|
|
904
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
905
|
+
}
|
|
906
|
+
function isSuspense(object) {
|
|
907
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
908
|
+
}
|
|
909
|
+
function isSuspenseList(object) {
|
|
910
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
914
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
915
|
+
reactIs_development.Element = Element;
|
|
916
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
917
|
+
reactIs_development.Fragment = Fragment;
|
|
918
|
+
reactIs_development.Lazy = Lazy;
|
|
919
|
+
reactIs_development.Memo = Memo;
|
|
920
|
+
reactIs_development.Portal = Portal;
|
|
921
|
+
reactIs_development.Profiler = Profiler;
|
|
922
|
+
reactIs_development.StrictMode = StrictMode;
|
|
923
|
+
reactIs_development.Suspense = Suspense;
|
|
924
|
+
reactIs_development.SuspenseList = SuspenseList;
|
|
925
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
926
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
927
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
928
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
929
|
+
reactIs_development.isElement = isElement;
|
|
930
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
931
|
+
reactIs_development.isFragment = isFragment;
|
|
932
|
+
reactIs_development.isLazy = isLazy;
|
|
933
|
+
reactIs_development.isMemo = isMemo;
|
|
934
|
+
reactIs_development.isPortal = isPortal;
|
|
935
|
+
reactIs_development.isProfiler = isProfiler;
|
|
936
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
937
|
+
reactIs_development.isSuspense = isSuspense;
|
|
938
|
+
reactIs_development.isSuspenseList = isSuspenseList;
|
|
939
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
940
|
+
reactIs_development.typeOf = typeOf;
|
|
941
|
+
})();
|
|
942
|
+
}
|
|
943
|
+
return reactIs_development;
|
|
944
|
+
}
|
|
945
|
+
|
|
585
946
|
var hasRequiredReactIs;
|
|
586
|
-
|
|
947
|
+
|
|
948
|
+
function requireReactIs () {
|
|
587
949
|
if (hasRequiredReactIs) return reactIs.exports;
|
|
588
950
|
hasRequiredReactIs = 1;
|
|
589
|
-
|
|
951
|
+
|
|
952
|
+
if (process.env.NODE_ENV === 'production') {
|
|
953
|
+
reactIs.exports = requireReactIs_production_min();
|
|
954
|
+
} else {
|
|
955
|
+
reactIs.exports = requireReactIs_development();
|
|
956
|
+
}
|
|
590
957
|
return reactIs.exports;
|
|
591
958
|
}
|
|
959
|
+
|
|
592
960
|
var reactIsExports = requireReactIs();
|
|
593
|
-
var
|
|
594
|
-
|
|
595
|
-
|
|
961
|
+
var index = /*@__PURE__*/getDefaultExportFromCjs(reactIsExports);
|
|
962
|
+
|
|
963
|
+
var ReactIs18 = /*#__PURE__*/_mergeNamespaces({
|
|
964
|
+
__proto__: null,
|
|
965
|
+
default: index
|
|
596
966
|
}, [reactIsExports]);
|
|
967
|
+
|
|
597
968
|
const ReactIs = Object.fromEntries([
|
|
598
969
|
"isAsyncMode",
|
|
599
970
|
"isConcurrentMode",
|
|
@@ -649,6 +1020,7 @@ const plugin$1 = {
|
|
|
649
1020
|
serialize: serialize$1,
|
|
650
1021
|
test: test$1
|
|
651
1022
|
};
|
|
1023
|
+
|
|
652
1024
|
const testSymbol = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
653
1025
|
function getPropKeys(object) {
|
|
654
1026
|
const { props } = object;
|
|
@@ -660,6 +1032,7 @@ const plugin = {
|
|
|
660
1032
|
serialize,
|
|
661
1033
|
test
|
|
662
1034
|
};
|
|
1035
|
+
|
|
663
1036
|
const toString = Object.prototype.toString;
|
|
664
1037
|
const toISOString = Date.prototype.toISOString;
|
|
665
1038
|
const errorToString = Error.prototype.toString;
|
|
@@ -675,7 +1048,6 @@ function getConstructorName(val) {
|
|
|
675
1048
|
function isWindow(val) {
|
|
676
1049
|
return typeof window !== "undefined" && val === window;
|
|
677
1050
|
}
|
|
678
|
-
// eslint-disable-next-line regexp/no-super-linear-backtracking
|
|
679
1051
|
const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
|
|
680
1052
|
const NEWLINE_REGEXP = /\n/g;
|
|
681
1053
|
class PrettyFormatPluginError extends Error {
|
|
@@ -941,4 +1313,4 @@ const plugins = {
|
|
|
941
1313
|
Error: ErrorPlugin
|
|
942
1314
|
};
|
|
943
1315
|
|
|
944
|
-
export { createDOMElementFilter as c, format as f, plugins as p };
|
|
1316
|
+
export { commonjsGlobal as a, createDOMElementFilter as c, format as f, getDefaultExportFromCjs as g, plugins as p };
|