@vitessce/feature-list 3.9.5 → 4.0.0-test.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/dist/index.js +350 -1316
- package/dist-tsc/FeatureList.d.ts +1 -1
- package/dist-tsc/FeatureList.d.ts.map +1 -1
- package/dist-tsc/FeatureListOptions.d.ts +1 -1
- package/dist-tsc/FeatureListOptions.d.ts.map +1 -1
- package/dist-tsc/FeatureListSubscriber.d.ts +1 -1
- package/dist-tsc/FeatureListSubscriber.d.ts.map +1 -1
- package/dist-tsc/selectable-table/SelectableTable.d.ts +1 -1
- package/dist-tsc/selectable-table/SelectableTable.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
1
|
import * as React from "react";
|
|
5
2
|
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, PureComponent, useEffect, useState, useCallback } from "react";
|
|
6
3
|
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordinationScopes, useGridItemSize, useCoordination, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useReady, useUrls, TitleInfo } from "@vitessce/vit-s";
|
|
4
|
+
import { jsxs, jsx as jsx$1 } from "react/jsx-runtime";
|
|
7
5
|
import * as ReactDOM from "react-dom";
|
|
8
6
|
function getDefaultExportFromCjs(x) {
|
|
9
7
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -817,6 +815,8 @@ const ViewHelpMapping = {
|
|
|
817
815
|
};
|
|
818
816
|
const COMPONENT_COORDINATION_TYPES = {
|
|
819
817
|
[ViewType.NEUROGLANCER]: [
|
|
818
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
819
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
820
820
|
CoordinationType.DATASET,
|
|
821
821
|
CoordinationType.SPATIAL_TARGET_X,
|
|
822
822
|
CoordinationType.SPATIAL_TARGET_Y,
|
|
@@ -838,7 +838,26 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
838
838
|
CoordinationType.OBS_COLOR_ENCODING,
|
|
839
839
|
CoordinationType.EMBEDDING_TYPE,
|
|
840
840
|
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
841
|
-
CoordinationType.TOOLTIPS_VISIBLE
|
|
841
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
842
|
+
CoordinationType.FILE_UID,
|
|
843
|
+
CoordinationType.IMAGE_LAYER,
|
|
844
|
+
CoordinationType.SEGMENTATION_LAYER,
|
|
845
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
846
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
847
|
+
CoordinationType.POINT_LAYER,
|
|
848
|
+
CoordinationType.FEATURE_COLOR,
|
|
849
|
+
CoordinationType.FEATURE_FILTER_MODE,
|
|
850
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
851
|
+
CoordinationType.FEATURE_SELECTION,
|
|
852
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
853
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
854
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
855
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
856
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
857
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
858
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
859
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
860
|
+
CoordinationType.LEGEND_VISIBLE
|
|
842
861
|
],
|
|
843
862
|
[ViewType.SCATTERPLOT]: [
|
|
844
863
|
CoordinationType.DATASET,
|
|
@@ -2264,14 +2283,14 @@ var createCache = function createCache2(options) {
|
|
|
2264
2283
|
cache.sheet.hydrate(nodesToHydrate);
|
|
2265
2284
|
return cache;
|
|
2266
2285
|
};
|
|
2267
|
-
function _extends$
|
|
2268
|
-
return _extends$
|
|
2286
|
+
function _extends$1() {
|
|
2287
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
2269
2288
|
for (var e = 1; e < arguments.length; e++) {
|
|
2270
2289
|
var t = arguments[e];
|
|
2271
2290
|
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
2272
2291
|
}
|
|
2273
2292
|
return n;
|
|
2274
|
-
}, _extends$
|
|
2293
|
+
}, _extends$1.apply(null, arguments);
|
|
2275
2294
|
}
|
|
2276
2295
|
var reactIs$1 = { exports: {} };
|
|
2277
2296
|
var reactIs_development$1 = {};
|
|
@@ -3764,7 +3783,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
3764
3783
|
}
|
|
3765
3784
|
});
|
|
3766
3785
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
3767
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
3786
|
+
var newStyled2 = createStyled(nextTag, _extends$1({}, options, nextOptions, {
|
|
3768
3787
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
3769
3788
|
}));
|
|
3770
3789
|
return newStyled2.apply(void 0, styles);
|
|
@@ -4525,903 +4544,6 @@ function requirePropTypes() {
|
|
|
4525
4544
|
}
|
|
4526
4545
|
var propTypesExports = /* @__PURE__ */ requirePropTypes();
|
|
4527
4546
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
4528
|
-
var jsxRuntime = { exports: {} };
|
|
4529
|
-
var reactJsxRuntime_development = {};
|
|
4530
|
-
var hasRequiredReactJsxRuntime_development;
|
|
4531
|
-
function requireReactJsxRuntime_development() {
|
|
4532
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
4533
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
4534
|
-
/**
|
|
4535
|
-
* @license React
|
|
4536
|
-
* react-jsx-runtime.development.js
|
|
4537
|
-
*
|
|
4538
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4539
|
-
*
|
|
4540
|
-
* This source code is licensed under the MIT license found in the
|
|
4541
|
-
* LICENSE file in the root directory of this source tree.
|
|
4542
|
-
*/
|
|
4543
|
-
{
|
|
4544
|
-
(function() {
|
|
4545
|
-
var React2 = React__default;
|
|
4546
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
4547
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
4548
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
4549
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
4550
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
4551
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
4552
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
4553
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
4554
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
4555
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
4556
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
4557
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
4558
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
4559
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
4560
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
4561
|
-
function getIteratorFn(maybeIterable) {
|
|
4562
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
4563
|
-
return null;
|
|
4564
|
-
}
|
|
4565
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
4566
|
-
if (typeof maybeIterator === "function") {
|
|
4567
|
-
return maybeIterator;
|
|
4568
|
-
}
|
|
4569
|
-
return null;
|
|
4570
|
-
}
|
|
4571
|
-
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
4572
|
-
function error(format) {
|
|
4573
|
-
{
|
|
4574
|
-
{
|
|
4575
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
4576
|
-
args[_key2 - 1] = arguments[_key2];
|
|
4577
|
-
}
|
|
4578
|
-
printWarning("error", format, args);
|
|
4579
|
-
}
|
|
4580
|
-
}
|
|
4581
|
-
}
|
|
4582
|
-
function printWarning(level, format, args) {
|
|
4583
|
-
{
|
|
4584
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
4585
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
4586
|
-
if (stack !== "") {
|
|
4587
|
-
format += "%s";
|
|
4588
|
-
args = args.concat([stack]);
|
|
4589
|
-
}
|
|
4590
|
-
var argsWithFormat = args.map(function(item) {
|
|
4591
|
-
return String(item);
|
|
4592
|
-
});
|
|
4593
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
4594
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
4595
|
-
}
|
|
4596
|
-
}
|
|
4597
|
-
var enableScopeAPI = false;
|
|
4598
|
-
var enableCacheElement = false;
|
|
4599
|
-
var enableTransitionTracing = false;
|
|
4600
|
-
var enableLegacyHidden = false;
|
|
4601
|
-
var enableDebugTracing = false;
|
|
4602
|
-
var REACT_MODULE_REFERENCE;
|
|
4603
|
-
{
|
|
4604
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
4605
|
-
}
|
|
4606
|
-
function isValidElementType(type) {
|
|
4607
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
4608
|
-
return true;
|
|
4609
|
-
}
|
|
4610
|
-
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) {
|
|
4611
|
-
return true;
|
|
4612
|
-
}
|
|
4613
|
-
if (typeof type === "object" && type !== null) {
|
|
4614
|
-
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
|
|
4615
|
-
// types supported by any Flight configuration anywhere since
|
|
4616
|
-
// we don't know which Flight build this will end up being used
|
|
4617
|
-
// with.
|
|
4618
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
4619
|
-
return true;
|
|
4620
|
-
}
|
|
4621
|
-
}
|
|
4622
|
-
return false;
|
|
4623
|
-
}
|
|
4624
|
-
function getWrappedName2(outerType, innerType, wrapperName) {
|
|
4625
|
-
var displayName = outerType.displayName;
|
|
4626
|
-
if (displayName) {
|
|
4627
|
-
return displayName;
|
|
4628
|
-
}
|
|
4629
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
4630
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
4631
|
-
}
|
|
4632
|
-
function getContextName(type) {
|
|
4633
|
-
return type.displayName || "Context";
|
|
4634
|
-
}
|
|
4635
|
-
function getComponentNameFromType(type) {
|
|
4636
|
-
if (type == null) {
|
|
4637
|
-
return null;
|
|
4638
|
-
}
|
|
4639
|
-
{
|
|
4640
|
-
if (typeof type.tag === "number") {
|
|
4641
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
4642
|
-
}
|
|
4643
|
-
}
|
|
4644
|
-
if (typeof type === "function") {
|
|
4645
|
-
return type.displayName || type.name || null;
|
|
4646
|
-
}
|
|
4647
|
-
if (typeof type === "string") {
|
|
4648
|
-
return type;
|
|
4649
|
-
}
|
|
4650
|
-
switch (type) {
|
|
4651
|
-
case REACT_FRAGMENT_TYPE:
|
|
4652
|
-
return "Fragment";
|
|
4653
|
-
case REACT_PORTAL_TYPE:
|
|
4654
|
-
return "Portal";
|
|
4655
|
-
case REACT_PROFILER_TYPE:
|
|
4656
|
-
return "Profiler";
|
|
4657
|
-
case REACT_STRICT_MODE_TYPE:
|
|
4658
|
-
return "StrictMode";
|
|
4659
|
-
case REACT_SUSPENSE_TYPE:
|
|
4660
|
-
return "Suspense";
|
|
4661
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
4662
|
-
return "SuspenseList";
|
|
4663
|
-
}
|
|
4664
|
-
if (typeof type === "object") {
|
|
4665
|
-
switch (type.$$typeof) {
|
|
4666
|
-
case REACT_CONTEXT_TYPE:
|
|
4667
|
-
var context = type;
|
|
4668
|
-
return getContextName(context) + ".Consumer";
|
|
4669
|
-
case REACT_PROVIDER_TYPE:
|
|
4670
|
-
var provider = type;
|
|
4671
|
-
return getContextName(provider._context) + ".Provider";
|
|
4672
|
-
case REACT_FORWARD_REF_TYPE:
|
|
4673
|
-
return getWrappedName2(type, type.render, "ForwardRef");
|
|
4674
|
-
case REACT_MEMO_TYPE:
|
|
4675
|
-
var outerName = type.displayName || null;
|
|
4676
|
-
if (outerName !== null) {
|
|
4677
|
-
return outerName;
|
|
4678
|
-
}
|
|
4679
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
4680
|
-
case REACT_LAZY_TYPE: {
|
|
4681
|
-
var lazyComponent = type;
|
|
4682
|
-
var payload = lazyComponent._payload;
|
|
4683
|
-
var init = lazyComponent._init;
|
|
4684
|
-
try {
|
|
4685
|
-
return getComponentNameFromType(init(payload));
|
|
4686
|
-
} catch (x) {
|
|
4687
|
-
return null;
|
|
4688
|
-
}
|
|
4689
|
-
}
|
|
4690
|
-
}
|
|
4691
|
-
}
|
|
4692
|
-
return null;
|
|
4693
|
-
}
|
|
4694
|
-
var assign2 = Object.assign;
|
|
4695
|
-
var disabledDepth = 0;
|
|
4696
|
-
var prevLog;
|
|
4697
|
-
var prevInfo;
|
|
4698
|
-
var prevWarn;
|
|
4699
|
-
var prevError;
|
|
4700
|
-
var prevGroup;
|
|
4701
|
-
var prevGroupCollapsed;
|
|
4702
|
-
var prevGroupEnd;
|
|
4703
|
-
function disabledLog() {
|
|
4704
|
-
}
|
|
4705
|
-
disabledLog.__reactDisabledLog = true;
|
|
4706
|
-
function disableLogs() {
|
|
4707
|
-
{
|
|
4708
|
-
if (disabledDepth === 0) {
|
|
4709
|
-
prevLog = console.log;
|
|
4710
|
-
prevInfo = console.info;
|
|
4711
|
-
prevWarn = console.warn;
|
|
4712
|
-
prevError = console.error;
|
|
4713
|
-
prevGroup = console.group;
|
|
4714
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
4715
|
-
prevGroupEnd = console.groupEnd;
|
|
4716
|
-
var props = {
|
|
4717
|
-
configurable: true,
|
|
4718
|
-
enumerable: true,
|
|
4719
|
-
value: disabledLog,
|
|
4720
|
-
writable: true
|
|
4721
|
-
};
|
|
4722
|
-
Object.defineProperties(console, {
|
|
4723
|
-
info: props,
|
|
4724
|
-
log: props,
|
|
4725
|
-
warn: props,
|
|
4726
|
-
error: props,
|
|
4727
|
-
group: props,
|
|
4728
|
-
groupCollapsed: props,
|
|
4729
|
-
groupEnd: props
|
|
4730
|
-
});
|
|
4731
|
-
}
|
|
4732
|
-
disabledDepth++;
|
|
4733
|
-
}
|
|
4734
|
-
}
|
|
4735
|
-
function reenableLogs() {
|
|
4736
|
-
{
|
|
4737
|
-
disabledDepth--;
|
|
4738
|
-
if (disabledDepth === 0) {
|
|
4739
|
-
var props = {
|
|
4740
|
-
configurable: true,
|
|
4741
|
-
enumerable: true,
|
|
4742
|
-
writable: true
|
|
4743
|
-
};
|
|
4744
|
-
Object.defineProperties(console, {
|
|
4745
|
-
log: assign2({}, props, {
|
|
4746
|
-
value: prevLog
|
|
4747
|
-
}),
|
|
4748
|
-
info: assign2({}, props, {
|
|
4749
|
-
value: prevInfo
|
|
4750
|
-
}),
|
|
4751
|
-
warn: assign2({}, props, {
|
|
4752
|
-
value: prevWarn
|
|
4753
|
-
}),
|
|
4754
|
-
error: assign2({}, props, {
|
|
4755
|
-
value: prevError
|
|
4756
|
-
}),
|
|
4757
|
-
group: assign2({}, props, {
|
|
4758
|
-
value: prevGroup
|
|
4759
|
-
}),
|
|
4760
|
-
groupCollapsed: assign2({}, props, {
|
|
4761
|
-
value: prevGroupCollapsed
|
|
4762
|
-
}),
|
|
4763
|
-
groupEnd: assign2({}, props, {
|
|
4764
|
-
value: prevGroupEnd
|
|
4765
|
-
})
|
|
4766
|
-
});
|
|
4767
|
-
}
|
|
4768
|
-
if (disabledDepth < 0) {
|
|
4769
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
4770
|
-
}
|
|
4771
|
-
}
|
|
4772
|
-
}
|
|
4773
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
4774
|
-
var prefix2;
|
|
4775
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
4776
|
-
{
|
|
4777
|
-
if (prefix2 === void 0) {
|
|
4778
|
-
try {
|
|
4779
|
-
throw Error();
|
|
4780
|
-
} catch (x) {
|
|
4781
|
-
var match2 = x.stack.trim().match(/\n( *(at )?)/);
|
|
4782
|
-
prefix2 = match2 && match2[1] || "";
|
|
4783
|
-
}
|
|
4784
|
-
}
|
|
4785
|
-
return "\n" + prefix2 + name;
|
|
4786
|
-
}
|
|
4787
|
-
}
|
|
4788
|
-
var reentry = false;
|
|
4789
|
-
var componentFrameCache;
|
|
4790
|
-
{
|
|
4791
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
4792
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
4793
|
-
}
|
|
4794
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
4795
|
-
if (!fn || reentry) {
|
|
4796
|
-
return "";
|
|
4797
|
-
}
|
|
4798
|
-
{
|
|
4799
|
-
var frame = componentFrameCache.get(fn);
|
|
4800
|
-
if (frame !== void 0) {
|
|
4801
|
-
return frame;
|
|
4802
|
-
}
|
|
4803
|
-
}
|
|
4804
|
-
var control;
|
|
4805
|
-
reentry = true;
|
|
4806
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
4807
|
-
Error.prepareStackTrace = void 0;
|
|
4808
|
-
var previousDispatcher;
|
|
4809
|
-
{
|
|
4810
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
4811
|
-
ReactCurrentDispatcher.current = null;
|
|
4812
|
-
disableLogs();
|
|
4813
|
-
}
|
|
4814
|
-
try {
|
|
4815
|
-
if (construct) {
|
|
4816
|
-
var Fake = function() {
|
|
4817
|
-
throw Error();
|
|
4818
|
-
};
|
|
4819
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
4820
|
-
set: function() {
|
|
4821
|
-
throw Error();
|
|
4822
|
-
}
|
|
4823
|
-
});
|
|
4824
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
4825
|
-
try {
|
|
4826
|
-
Reflect.construct(Fake, []);
|
|
4827
|
-
} catch (x) {
|
|
4828
|
-
control = x;
|
|
4829
|
-
}
|
|
4830
|
-
Reflect.construct(fn, [], Fake);
|
|
4831
|
-
} else {
|
|
4832
|
-
try {
|
|
4833
|
-
Fake.call();
|
|
4834
|
-
} catch (x) {
|
|
4835
|
-
control = x;
|
|
4836
|
-
}
|
|
4837
|
-
fn.call(Fake.prototype);
|
|
4838
|
-
}
|
|
4839
|
-
} else {
|
|
4840
|
-
try {
|
|
4841
|
-
throw Error();
|
|
4842
|
-
} catch (x) {
|
|
4843
|
-
control = x;
|
|
4844
|
-
}
|
|
4845
|
-
fn();
|
|
4846
|
-
}
|
|
4847
|
-
} catch (sample) {
|
|
4848
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
4849
|
-
var sampleLines = sample.stack.split("\n");
|
|
4850
|
-
var controlLines = control.stack.split("\n");
|
|
4851
|
-
var s = sampleLines.length - 1;
|
|
4852
|
-
var c = controlLines.length - 1;
|
|
4853
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
4854
|
-
c--;
|
|
4855
|
-
}
|
|
4856
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
4857
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
4858
|
-
if (s !== 1 || c !== 1) {
|
|
4859
|
-
do {
|
|
4860
|
-
s--;
|
|
4861
|
-
c--;
|
|
4862
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
4863
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
4864
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
4865
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
4866
|
-
}
|
|
4867
|
-
{
|
|
4868
|
-
if (typeof fn === "function") {
|
|
4869
|
-
componentFrameCache.set(fn, _frame);
|
|
4870
|
-
}
|
|
4871
|
-
}
|
|
4872
|
-
return _frame;
|
|
4873
|
-
}
|
|
4874
|
-
} while (s >= 1 && c >= 0);
|
|
4875
|
-
}
|
|
4876
|
-
break;
|
|
4877
|
-
}
|
|
4878
|
-
}
|
|
4879
|
-
}
|
|
4880
|
-
} finally {
|
|
4881
|
-
reentry = false;
|
|
4882
|
-
{
|
|
4883
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
4884
|
-
reenableLogs();
|
|
4885
|
-
}
|
|
4886
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
4887
|
-
}
|
|
4888
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
4889
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
4890
|
-
{
|
|
4891
|
-
if (typeof fn === "function") {
|
|
4892
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
4893
|
-
}
|
|
4894
|
-
}
|
|
4895
|
-
return syntheticFrame;
|
|
4896
|
-
}
|
|
4897
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
4898
|
-
{
|
|
4899
|
-
return describeNativeComponentFrame(fn, false);
|
|
4900
|
-
}
|
|
4901
|
-
}
|
|
4902
|
-
function shouldConstruct(Component) {
|
|
4903
|
-
var prototype = Component.prototype;
|
|
4904
|
-
return !!(prototype && prototype.isReactComponent);
|
|
4905
|
-
}
|
|
4906
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
4907
|
-
if (type == null) {
|
|
4908
|
-
return "";
|
|
4909
|
-
}
|
|
4910
|
-
if (typeof type === "function") {
|
|
4911
|
-
{
|
|
4912
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
4913
|
-
}
|
|
4914
|
-
}
|
|
4915
|
-
if (typeof type === "string") {
|
|
4916
|
-
return describeBuiltInComponentFrame(type);
|
|
4917
|
-
}
|
|
4918
|
-
switch (type) {
|
|
4919
|
-
case REACT_SUSPENSE_TYPE:
|
|
4920
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
4921
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
4922
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
4923
|
-
}
|
|
4924
|
-
if (typeof type === "object") {
|
|
4925
|
-
switch (type.$$typeof) {
|
|
4926
|
-
case REACT_FORWARD_REF_TYPE:
|
|
4927
|
-
return describeFunctionComponentFrame(type.render);
|
|
4928
|
-
case REACT_MEMO_TYPE:
|
|
4929
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
4930
|
-
case REACT_LAZY_TYPE: {
|
|
4931
|
-
var lazyComponent = type;
|
|
4932
|
-
var payload = lazyComponent._payload;
|
|
4933
|
-
var init = lazyComponent._init;
|
|
4934
|
-
try {
|
|
4935
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
4936
|
-
} catch (x) {
|
|
4937
|
-
}
|
|
4938
|
-
}
|
|
4939
|
-
}
|
|
4940
|
-
}
|
|
4941
|
-
return "";
|
|
4942
|
-
}
|
|
4943
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
4944
|
-
var loggedTypeFailures = {};
|
|
4945
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
4946
|
-
function setCurrentlyValidatingElement(element) {
|
|
4947
|
-
{
|
|
4948
|
-
if (element) {
|
|
4949
|
-
var owner = element._owner;
|
|
4950
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
4951
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
4952
|
-
} else {
|
|
4953
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
4954
|
-
}
|
|
4955
|
-
}
|
|
4956
|
-
}
|
|
4957
|
-
function checkPropTypes(typeSpecs, values2, location, componentName, element) {
|
|
4958
|
-
{
|
|
4959
|
-
var has2 = Function.call.bind(hasOwnProperty2);
|
|
4960
|
-
for (var typeSpecName in typeSpecs) {
|
|
4961
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
4962
|
-
var error$1 = void 0;
|
|
4963
|
-
try {
|
|
4964
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
4965
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
4966
|
-
err.name = "Invariant Violation";
|
|
4967
|
-
throw err;
|
|
4968
|
-
}
|
|
4969
|
-
error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
4970
|
-
} catch (ex) {
|
|
4971
|
-
error$1 = ex;
|
|
4972
|
-
}
|
|
4973
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
4974
|
-
setCurrentlyValidatingElement(element);
|
|
4975
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
4976
|
-
setCurrentlyValidatingElement(null);
|
|
4977
|
-
}
|
|
4978
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
4979
|
-
loggedTypeFailures[error$1.message] = true;
|
|
4980
|
-
setCurrentlyValidatingElement(element);
|
|
4981
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
4982
|
-
setCurrentlyValidatingElement(null);
|
|
4983
|
-
}
|
|
4984
|
-
}
|
|
4985
|
-
}
|
|
4986
|
-
}
|
|
4987
|
-
}
|
|
4988
|
-
var isArrayImpl = Array.isArray;
|
|
4989
|
-
function isArray2(a) {
|
|
4990
|
-
return isArrayImpl(a);
|
|
4991
|
-
}
|
|
4992
|
-
function typeName(value) {
|
|
4993
|
-
{
|
|
4994
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
4995
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
4996
|
-
return type;
|
|
4997
|
-
}
|
|
4998
|
-
}
|
|
4999
|
-
function willCoercionThrow(value) {
|
|
5000
|
-
{
|
|
5001
|
-
try {
|
|
5002
|
-
testStringCoercion(value);
|
|
5003
|
-
return false;
|
|
5004
|
-
} catch (e) {
|
|
5005
|
-
return true;
|
|
5006
|
-
}
|
|
5007
|
-
}
|
|
5008
|
-
}
|
|
5009
|
-
function testStringCoercion(value) {
|
|
5010
|
-
return "" + value;
|
|
5011
|
-
}
|
|
5012
|
-
function checkKeyStringCoercion(value) {
|
|
5013
|
-
{
|
|
5014
|
-
if (willCoercionThrow(value)) {
|
|
5015
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
5016
|
-
return testStringCoercion(value);
|
|
5017
|
-
}
|
|
5018
|
-
}
|
|
5019
|
-
}
|
|
5020
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
5021
|
-
var RESERVED_PROPS = {
|
|
5022
|
-
key: true,
|
|
5023
|
-
ref: true,
|
|
5024
|
-
__self: true,
|
|
5025
|
-
__source: true
|
|
5026
|
-
};
|
|
5027
|
-
var specialPropKeyWarningShown;
|
|
5028
|
-
var specialPropRefWarningShown;
|
|
5029
|
-
function hasValidRef(config) {
|
|
5030
|
-
{
|
|
5031
|
-
if (hasOwnProperty2.call(config, "ref")) {
|
|
5032
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
5033
|
-
if (getter && getter.isReactWarning) {
|
|
5034
|
-
return false;
|
|
5035
|
-
}
|
|
5036
|
-
}
|
|
5037
|
-
}
|
|
5038
|
-
return config.ref !== void 0;
|
|
5039
|
-
}
|
|
5040
|
-
function hasValidKey(config) {
|
|
5041
|
-
{
|
|
5042
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
5043
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
5044
|
-
if (getter && getter.isReactWarning) {
|
|
5045
|
-
return false;
|
|
5046
|
-
}
|
|
5047
|
-
}
|
|
5048
|
-
}
|
|
5049
|
-
return config.key !== void 0;
|
|
5050
|
-
}
|
|
5051
|
-
function warnIfStringRefCannotBeAutoConverted(config, self2) {
|
|
5052
|
-
{
|
|
5053
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self2) ;
|
|
5054
|
-
}
|
|
5055
|
-
}
|
|
5056
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
5057
|
-
{
|
|
5058
|
-
var warnAboutAccessingKey = function() {
|
|
5059
|
-
if (!specialPropKeyWarningShown) {
|
|
5060
|
-
specialPropKeyWarningShown = true;
|
|
5061
|
-
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
5062
|
-
}
|
|
5063
|
-
};
|
|
5064
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
5065
|
-
Object.defineProperty(props, "key", {
|
|
5066
|
-
get: warnAboutAccessingKey,
|
|
5067
|
-
configurable: true
|
|
5068
|
-
});
|
|
5069
|
-
}
|
|
5070
|
-
}
|
|
5071
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
5072
|
-
{
|
|
5073
|
-
var warnAboutAccessingRef = function() {
|
|
5074
|
-
if (!specialPropRefWarningShown) {
|
|
5075
|
-
specialPropRefWarningShown = true;
|
|
5076
|
-
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
5077
|
-
}
|
|
5078
|
-
};
|
|
5079
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
5080
|
-
Object.defineProperty(props, "ref", {
|
|
5081
|
-
get: warnAboutAccessingRef,
|
|
5082
|
-
configurable: true
|
|
5083
|
-
});
|
|
5084
|
-
}
|
|
5085
|
-
}
|
|
5086
|
-
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
5087
|
-
var element = {
|
|
5088
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
5089
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
5090
|
-
// Built-in properties that belong on the element
|
|
5091
|
-
type,
|
|
5092
|
-
key,
|
|
5093
|
-
ref,
|
|
5094
|
-
props,
|
|
5095
|
-
// Record the component responsible for creating this element.
|
|
5096
|
-
_owner: owner
|
|
5097
|
-
};
|
|
5098
|
-
{
|
|
5099
|
-
element._store = {};
|
|
5100
|
-
Object.defineProperty(element._store, "validated", {
|
|
5101
|
-
configurable: false,
|
|
5102
|
-
enumerable: false,
|
|
5103
|
-
writable: true,
|
|
5104
|
-
value: false
|
|
5105
|
-
});
|
|
5106
|
-
Object.defineProperty(element, "_self", {
|
|
5107
|
-
configurable: false,
|
|
5108
|
-
enumerable: false,
|
|
5109
|
-
writable: false,
|
|
5110
|
-
value: self2
|
|
5111
|
-
});
|
|
5112
|
-
Object.defineProperty(element, "_source", {
|
|
5113
|
-
configurable: false,
|
|
5114
|
-
enumerable: false,
|
|
5115
|
-
writable: false,
|
|
5116
|
-
value: source
|
|
5117
|
-
});
|
|
5118
|
-
if (Object.freeze) {
|
|
5119
|
-
Object.freeze(element.props);
|
|
5120
|
-
Object.freeze(element);
|
|
5121
|
-
}
|
|
5122
|
-
}
|
|
5123
|
-
return element;
|
|
5124
|
-
};
|
|
5125
|
-
function jsxDEV(type, config, maybeKey, source, self2) {
|
|
5126
|
-
{
|
|
5127
|
-
var propName;
|
|
5128
|
-
var props = {};
|
|
5129
|
-
var key = null;
|
|
5130
|
-
var ref = null;
|
|
5131
|
-
if (maybeKey !== void 0) {
|
|
5132
|
-
{
|
|
5133
|
-
checkKeyStringCoercion(maybeKey);
|
|
5134
|
-
}
|
|
5135
|
-
key = "" + maybeKey;
|
|
5136
|
-
}
|
|
5137
|
-
if (hasValidKey(config)) {
|
|
5138
|
-
{
|
|
5139
|
-
checkKeyStringCoercion(config.key);
|
|
5140
|
-
}
|
|
5141
|
-
key = "" + config.key;
|
|
5142
|
-
}
|
|
5143
|
-
if (hasValidRef(config)) {
|
|
5144
|
-
ref = config.ref;
|
|
5145
|
-
warnIfStringRefCannotBeAutoConverted(config, self2);
|
|
5146
|
-
}
|
|
5147
|
-
for (propName in config) {
|
|
5148
|
-
if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
5149
|
-
props[propName] = config[propName];
|
|
5150
|
-
}
|
|
5151
|
-
}
|
|
5152
|
-
if (type && type.defaultProps) {
|
|
5153
|
-
var defaultProps2 = type.defaultProps;
|
|
5154
|
-
for (propName in defaultProps2) {
|
|
5155
|
-
if (props[propName] === void 0) {
|
|
5156
|
-
props[propName] = defaultProps2[propName];
|
|
5157
|
-
}
|
|
5158
|
-
}
|
|
5159
|
-
}
|
|
5160
|
-
if (key || ref) {
|
|
5161
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
5162
|
-
if (key) {
|
|
5163
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
5164
|
-
}
|
|
5165
|
-
if (ref) {
|
|
5166
|
-
defineRefPropWarningGetter(props, displayName);
|
|
5167
|
-
}
|
|
5168
|
-
}
|
|
5169
|
-
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
5170
|
-
}
|
|
5171
|
-
}
|
|
5172
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
5173
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
5174
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
5175
|
-
{
|
|
5176
|
-
if (element) {
|
|
5177
|
-
var owner = element._owner;
|
|
5178
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
5179
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
5180
|
-
} else {
|
|
5181
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
5182
|
-
}
|
|
5183
|
-
}
|
|
5184
|
-
}
|
|
5185
|
-
var propTypesMisspellWarningShown;
|
|
5186
|
-
{
|
|
5187
|
-
propTypesMisspellWarningShown = false;
|
|
5188
|
-
}
|
|
5189
|
-
function isValidElement2(object) {
|
|
5190
|
-
{
|
|
5191
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
5192
|
-
}
|
|
5193
|
-
}
|
|
5194
|
-
function getDeclarationErrorAddendum() {
|
|
5195
|
-
{
|
|
5196
|
-
if (ReactCurrentOwner$1.current) {
|
|
5197
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
5198
|
-
if (name) {
|
|
5199
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
5200
|
-
}
|
|
5201
|
-
}
|
|
5202
|
-
return "";
|
|
5203
|
-
}
|
|
5204
|
-
}
|
|
5205
|
-
function getSourceInfoErrorAddendum(source) {
|
|
5206
|
-
{
|
|
5207
|
-
return "";
|
|
5208
|
-
}
|
|
5209
|
-
}
|
|
5210
|
-
var ownerHasKeyUseWarning = {};
|
|
5211
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
5212
|
-
{
|
|
5213
|
-
var info = getDeclarationErrorAddendum();
|
|
5214
|
-
if (!info) {
|
|
5215
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
5216
|
-
if (parentName) {
|
|
5217
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
5218
|
-
}
|
|
5219
|
-
}
|
|
5220
|
-
return info;
|
|
5221
|
-
}
|
|
5222
|
-
}
|
|
5223
|
-
function validateExplicitKey(element, parentType) {
|
|
5224
|
-
{
|
|
5225
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
5226
|
-
return;
|
|
5227
|
-
}
|
|
5228
|
-
element._store.validated = true;
|
|
5229
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
5230
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
5231
|
-
return;
|
|
5232
|
-
}
|
|
5233
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
5234
|
-
var childOwner = "";
|
|
5235
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
5236
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
5237
|
-
}
|
|
5238
|
-
setCurrentlyValidatingElement$1(element);
|
|
5239
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
5240
|
-
setCurrentlyValidatingElement$1(null);
|
|
5241
|
-
}
|
|
5242
|
-
}
|
|
5243
|
-
function validateChildKeys(node2, parentType) {
|
|
5244
|
-
{
|
|
5245
|
-
if (typeof node2 !== "object") {
|
|
5246
|
-
return;
|
|
5247
|
-
}
|
|
5248
|
-
if (isArray2(node2)) {
|
|
5249
|
-
for (var i = 0; i < node2.length; i++) {
|
|
5250
|
-
var child = node2[i];
|
|
5251
|
-
if (isValidElement2(child)) {
|
|
5252
|
-
validateExplicitKey(child, parentType);
|
|
5253
|
-
}
|
|
5254
|
-
}
|
|
5255
|
-
} else if (isValidElement2(node2)) {
|
|
5256
|
-
if (node2._store) {
|
|
5257
|
-
node2._store.validated = true;
|
|
5258
|
-
}
|
|
5259
|
-
} else if (node2) {
|
|
5260
|
-
var iteratorFn = getIteratorFn(node2);
|
|
5261
|
-
if (typeof iteratorFn === "function") {
|
|
5262
|
-
if (iteratorFn !== node2.entries) {
|
|
5263
|
-
var iterator = iteratorFn.call(node2);
|
|
5264
|
-
var step;
|
|
5265
|
-
while (!(step = iterator.next()).done) {
|
|
5266
|
-
if (isValidElement2(step.value)) {
|
|
5267
|
-
validateExplicitKey(step.value, parentType);
|
|
5268
|
-
}
|
|
5269
|
-
}
|
|
5270
|
-
}
|
|
5271
|
-
}
|
|
5272
|
-
}
|
|
5273
|
-
}
|
|
5274
|
-
}
|
|
5275
|
-
function validatePropTypes(element) {
|
|
5276
|
-
{
|
|
5277
|
-
var type = element.type;
|
|
5278
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
5279
|
-
return;
|
|
5280
|
-
}
|
|
5281
|
-
var propTypes2;
|
|
5282
|
-
if (typeof type === "function") {
|
|
5283
|
-
propTypes2 = type.propTypes;
|
|
5284
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
5285
|
-
// Inner props are checked in the reconciler.
|
|
5286
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
5287
|
-
propTypes2 = type.propTypes;
|
|
5288
|
-
} else {
|
|
5289
|
-
return;
|
|
5290
|
-
}
|
|
5291
|
-
if (propTypes2) {
|
|
5292
|
-
var name = getComponentNameFromType(type);
|
|
5293
|
-
checkPropTypes(propTypes2, element.props, "prop", name, element);
|
|
5294
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
5295
|
-
propTypesMisspellWarningShown = true;
|
|
5296
|
-
var _name = getComponentNameFromType(type);
|
|
5297
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
5298
|
-
}
|
|
5299
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
5300
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
5301
|
-
}
|
|
5302
|
-
}
|
|
5303
|
-
}
|
|
5304
|
-
function validateFragmentProps(fragment) {
|
|
5305
|
-
{
|
|
5306
|
-
var keys2 = Object.keys(fragment.props);
|
|
5307
|
-
for (var i = 0; i < keys2.length; i++) {
|
|
5308
|
-
var key = keys2[i];
|
|
5309
|
-
if (key !== "children" && key !== "key") {
|
|
5310
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
5311
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
5312
|
-
setCurrentlyValidatingElement$1(null);
|
|
5313
|
-
break;
|
|
5314
|
-
}
|
|
5315
|
-
}
|
|
5316
|
-
if (fragment.ref !== null) {
|
|
5317
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
5318
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
5319
|
-
setCurrentlyValidatingElement$1(null);
|
|
5320
|
-
}
|
|
5321
|
-
}
|
|
5322
|
-
}
|
|
5323
|
-
var didWarnAboutKeySpread = {};
|
|
5324
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
5325
|
-
{
|
|
5326
|
-
var validType = isValidElementType(type);
|
|
5327
|
-
if (!validType) {
|
|
5328
|
-
var info = "";
|
|
5329
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
5330
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
5331
|
-
}
|
|
5332
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
5333
|
-
if (sourceInfo) {
|
|
5334
|
-
info += sourceInfo;
|
|
5335
|
-
} else {
|
|
5336
|
-
info += getDeclarationErrorAddendum();
|
|
5337
|
-
}
|
|
5338
|
-
var typeString;
|
|
5339
|
-
if (type === null) {
|
|
5340
|
-
typeString = "null";
|
|
5341
|
-
} else if (isArray2(type)) {
|
|
5342
|
-
typeString = "array";
|
|
5343
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
5344
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
5345
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
5346
|
-
} else {
|
|
5347
|
-
typeString = typeof type;
|
|
5348
|
-
}
|
|
5349
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
5350
|
-
}
|
|
5351
|
-
var element = jsxDEV(type, props, key, source, self2);
|
|
5352
|
-
if (element == null) {
|
|
5353
|
-
return element;
|
|
5354
|
-
}
|
|
5355
|
-
if (validType) {
|
|
5356
|
-
var children2 = props.children;
|
|
5357
|
-
if (children2 !== void 0) {
|
|
5358
|
-
if (isStaticChildren) {
|
|
5359
|
-
if (isArray2(children2)) {
|
|
5360
|
-
for (var i = 0; i < children2.length; i++) {
|
|
5361
|
-
validateChildKeys(children2[i], type);
|
|
5362
|
-
}
|
|
5363
|
-
if (Object.freeze) {
|
|
5364
|
-
Object.freeze(children2);
|
|
5365
|
-
}
|
|
5366
|
-
} else {
|
|
5367
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
5368
|
-
}
|
|
5369
|
-
} else {
|
|
5370
|
-
validateChildKeys(children2, type);
|
|
5371
|
-
}
|
|
5372
|
-
}
|
|
5373
|
-
}
|
|
5374
|
-
{
|
|
5375
|
-
if (hasOwnProperty2.call(props, "key")) {
|
|
5376
|
-
var componentName = getComponentNameFromType(type);
|
|
5377
|
-
var keys2 = Object.keys(props).filter(function(k) {
|
|
5378
|
-
return k !== "key";
|
|
5379
|
-
});
|
|
5380
|
-
var beforeExample = keys2.length > 0 ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
5381
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
5382
|
-
var afterExample = keys2.length > 0 ? "{" + keys2.join(": ..., ") + ": ...}" : "{}";
|
|
5383
|
-
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
5384
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
5385
|
-
}
|
|
5386
|
-
}
|
|
5387
|
-
}
|
|
5388
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
5389
|
-
validateFragmentProps(element);
|
|
5390
|
-
} else {
|
|
5391
|
-
validatePropTypes(element);
|
|
5392
|
-
}
|
|
5393
|
-
return element;
|
|
5394
|
-
}
|
|
5395
|
-
}
|
|
5396
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
5397
|
-
{
|
|
5398
|
-
return jsxWithValidation(type, props, key, true);
|
|
5399
|
-
}
|
|
5400
|
-
}
|
|
5401
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
5402
|
-
{
|
|
5403
|
-
return jsxWithValidation(type, props, key, false);
|
|
5404
|
-
}
|
|
5405
|
-
}
|
|
5406
|
-
var jsx3 = jsxWithValidationDynamic;
|
|
5407
|
-
var jsxs = jsxWithValidationStatic;
|
|
5408
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
5409
|
-
reactJsxRuntime_development.jsx = jsx3;
|
|
5410
|
-
reactJsxRuntime_development.jsxs = jsxs;
|
|
5411
|
-
})();
|
|
5412
|
-
}
|
|
5413
|
-
return reactJsxRuntime_development;
|
|
5414
|
-
}
|
|
5415
|
-
var hasRequiredJsxRuntime;
|
|
5416
|
-
function requireJsxRuntime() {
|
|
5417
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
5418
|
-
hasRequiredJsxRuntime = 1;
|
|
5419
|
-
{
|
|
5420
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
5421
|
-
}
|
|
5422
|
-
return jsxRuntime.exports;
|
|
5423
|
-
}
|
|
5424
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
5425
4547
|
function styled$1(tag, options) {
|
|
5426
4548
|
const stylesFactory = newStyled(tag, options);
|
|
5427
4549
|
{
|
|
@@ -5679,9 +4801,8 @@ function sortContainerQueries(theme, css2) {
|
|
|
5679
4801
|
return css2;
|
|
5680
4802
|
}
|
|
5681
4803
|
const sorted = Object.keys(css2).filter((key) => key.startsWith("@container")).sort((a, b) => {
|
|
5682
|
-
var _a, _b;
|
|
5683
4804
|
const regex = /min-width:\s*([0-9.]+)/;
|
|
5684
|
-
return +(
|
|
4805
|
+
return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
|
|
5685
4806
|
});
|
|
5686
4807
|
if (!sorted.length) {
|
|
5687
4808
|
return css2;
|
|
@@ -5809,8 +4930,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
5809
4930
|
return output;
|
|
5810
4931
|
}
|
|
5811
4932
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
5812
|
-
|
|
5813
|
-
const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key) => {
|
|
4933
|
+
const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {
|
|
5814
4934
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
5815
4935
|
acc[breakpointStyleKey] = {};
|
|
5816
4936
|
return acc;
|
|
@@ -6230,14 +5350,13 @@ const width = style$1({
|
|
|
6230
5350
|
const maxWidth = (props) => {
|
|
6231
5351
|
if (props.maxWidth !== void 0 && props.maxWidth !== null) {
|
|
6232
5352
|
const styleFromPropValue = (propValue) => {
|
|
6233
|
-
|
|
6234
|
-
const breakpoint = ((_c = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c[propValue]) || values$1[propValue];
|
|
5353
|
+
const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values$1[propValue];
|
|
6235
5354
|
if (!breakpoint) {
|
|
6236
5355
|
return {
|
|
6237
5356
|
maxWidth: sizingTransform(propValue)
|
|
6238
5357
|
};
|
|
6239
5358
|
}
|
|
6240
|
-
if (
|
|
5359
|
+
if (props.theme?.breakpoints?.unit !== "px") {
|
|
6241
5360
|
return {
|
|
6242
5361
|
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
6243
5362
|
};
|
|
@@ -6678,10 +5797,9 @@ function unstable_createStyleFunctionSx() {
|
|
|
6678
5797
|
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
6679
5798
|
styleFunctionSx.filterProps = ["sx"];
|
|
6680
5799
|
function applyStyles(key, styles) {
|
|
6681
|
-
var _a;
|
|
6682
5800
|
const theme = this;
|
|
6683
5801
|
if (theme.vars) {
|
|
6684
|
-
if (!
|
|
5802
|
+
if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== "function") {
|
|
6685
5803
|
return {};
|
|
6686
5804
|
}
|
|
6687
5805
|
let selector = theme.getColorSchemeSelector(key);
|
|
@@ -6730,7 +5848,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
6730
5848
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
6731
5849
|
muiTheme.unstable_sxConfig = {
|
|
6732
5850
|
...defaultSxConfig,
|
|
6733
|
-
...other
|
|
5851
|
+
...other?.unstable_sxConfig
|
|
6734
5852
|
};
|
|
6735
5853
|
muiTheme.unstable_sx = function sx(props) {
|
|
6736
5854
|
return styleFunctionSx({
|
|
@@ -6752,12 +5870,11 @@ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
|
|
|
6752
5870
|
return useTheme$2(defaultTheme2);
|
|
6753
5871
|
}
|
|
6754
5872
|
const splitProps = (props) => {
|
|
6755
|
-
var _a;
|
|
6756
5873
|
const result = {
|
|
6757
5874
|
systemProps: {},
|
|
6758
5875
|
otherProps: {}
|
|
6759
5876
|
};
|
|
6760
|
-
const config =
|
|
5877
|
+
const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
|
|
6761
5878
|
Object.keys(props).forEach((prop) => {
|
|
6762
5879
|
if (config[prop]) {
|
|
6763
5880
|
result.systemProps[prop] = props[prop];
|
|
@@ -6924,7 +6041,7 @@ function processStyle(props, style2) {
|
|
|
6924
6041
|
if (Array.isArray(resolvedStyle)) {
|
|
6925
6042
|
return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
|
|
6926
6043
|
}
|
|
6927
|
-
if (Array.isArray(resolvedStyle
|
|
6044
|
+
if (Array.isArray(resolvedStyle?.variants)) {
|
|
6928
6045
|
let rootStyle;
|
|
6929
6046
|
if (resolvedStyle.isProcessed) {
|
|
6930
6047
|
rootStyle = resolvedStyle.style;
|
|
@@ -6937,38 +6054,37 @@ function processStyle(props, style2) {
|
|
|
6937
6054
|
}
|
|
6938
6055
|
return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
|
|
6939
6056
|
}
|
|
6940
|
-
if (resolvedStyle
|
|
6057
|
+
if (resolvedStyle?.isProcessed) {
|
|
6941
6058
|
return resolvedStyle.style;
|
|
6942
6059
|
}
|
|
6943
6060
|
return resolvedStyle;
|
|
6944
6061
|
}
|
|
6945
6062
|
function processStyleVariants(props, variants, results = []) {
|
|
6946
|
-
var _a;
|
|
6947
6063
|
let mergedState;
|
|
6948
6064
|
variantLoop: for (let i = 0; i < variants.length; i += 1) {
|
|
6949
6065
|
const variant = variants[i];
|
|
6950
6066
|
if (typeof variant.props === "function") {
|
|
6951
|
-
mergedState
|
|
6067
|
+
mergedState ??= {
|
|
6952
6068
|
...props,
|
|
6953
6069
|
...props.ownerState,
|
|
6954
6070
|
ownerState: props.ownerState
|
|
6955
|
-
}
|
|
6071
|
+
};
|
|
6956
6072
|
if (!variant.props(mergedState)) {
|
|
6957
6073
|
continue;
|
|
6958
6074
|
}
|
|
6959
6075
|
} else {
|
|
6960
6076
|
for (const key in variant.props) {
|
|
6961
|
-
if (props[key] !== variant.props[key] &&
|
|
6077
|
+
if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
|
|
6962
6078
|
continue variantLoop;
|
|
6963
6079
|
}
|
|
6964
6080
|
}
|
|
6965
6081
|
}
|
|
6966
6082
|
if (typeof variant.style === "function") {
|
|
6967
|
-
mergedState
|
|
6083
|
+
mergedState ??= {
|
|
6968
6084
|
...props,
|
|
6969
6085
|
...props.ownerState,
|
|
6970
6086
|
ownerState: props.ownerState
|
|
6971
|
-
}
|
|
6087
|
+
};
|
|
6972
6088
|
results.push(variant.style(mergedState));
|
|
6973
6089
|
} else {
|
|
6974
6090
|
results.push(variant.style);
|
|
@@ -7041,9 +6157,8 @@ function createStyled2(input = {}) {
|
|
|
7041
6157
|
expressionsHead.push(styleAttachTheme);
|
|
7042
6158
|
if (componentName && overridesResolver) {
|
|
7043
6159
|
expressionsTail.push(function styleThemeOverrides(props) {
|
|
7044
|
-
var _a, _b;
|
|
7045
6160
|
const theme = props.theme;
|
|
7046
|
-
const styleOverrides =
|
|
6161
|
+
const styleOverrides = theme.components?.[componentName]?.styleOverrides;
|
|
7047
6162
|
if (!styleOverrides) {
|
|
7048
6163
|
return null;
|
|
7049
6164
|
}
|
|
@@ -7056,9 +6171,8 @@ function createStyled2(input = {}) {
|
|
|
7056
6171
|
}
|
|
7057
6172
|
if (componentName && !skipVariantsResolver) {
|
|
7058
6173
|
expressionsTail.push(function styleThemeVariants(props) {
|
|
7059
|
-
var _a, _b;
|
|
7060
6174
|
const theme = props.theme;
|
|
7061
|
-
const themeVariants =
|
|
6175
|
+
const themeVariants = theme?.components?.[componentName]?.variants;
|
|
7062
6176
|
if (!themeVariants) {
|
|
7063
6177
|
return null;
|
|
7064
6178
|
}
|
|
@@ -7591,7 +6705,6 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
7591
6705
|
};
|
|
7592
6706
|
}
|
|
7593
6707
|
function defaultGetSelector2(colorScheme, cssObject) {
|
|
7594
|
-
var _a, _b;
|
|
7595
6708
|
let rule = selector;
|
|
7596
6709
|
if (selector === "class") {
|
|
7597
6710
|
rule = ".%s";
|
|
@@ -7599,7 +6712,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
7599
6712
|
if (selector === "data") {
|
|
7600
6713
|
rule = "[data-%s]";
|
|
7601
6714
|
}
|
|
7602
|
-
if (
|
|
6715
|
+
if (selector?.startsWith("data-") && !selector.includes("%s")) {
|
|
7603
6716
|
rule = `[${selector}="%s"]`;
|
|
7604
6717
|
}
|
|
7605
6718
|
if (colorScheme) {
|
|
@@ -7607,7 +6720,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
7607
6720
|
if (theme.defaultColorScheme === colorScheme) {
|
|
7608
6721
|
return ":root";
|
|
7609
6722
|
}
|
|
7610
|
-
const mode =
|
|
6723
|
+
const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;
|
|
7611
6724
|
return {
|
|
7612
6725
|
[`@media (prefers-color-scheme: ${mode})`]: {
|
|
7613
6726
|
":root": cssObject
|
|
@@ -7635,7 +6748,6 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
7635
6748
|
return vars;
|
|
7636
6749
|
};
|
|
7637
6750
|
const generateStyleSheets = () => {
|
|
7638
|
-
var _a, _b;
|
|
7639
6751
|
const stylesheets = [];
|
|
7640
6752
|
const colorScheme = theme.defaultColorScheme || "light";
|
|
7641
6753
|
function insertStyleSheet(key, css2) {
|
|
@@ -7658,7 +6770,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
7658
6770
|
const {
|
|
7659
6771
|
css: css2
|
|
7660
6772
|
} = defaultSchemeVal;
|
|
7661
|
-
const cssColorSheme =
|
|
6773
|
+
const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;
|
|
7662
6774
|
const finalCss = !disableCssColorScheme && cssColorSheme ? {
|
|
7663
6775
|
colorScheme: cssColorSheme,
|
|
7664
6776
|
...css2
|
|
@@ -7672,8 +6784,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
7672
6784
|
Object.entries(other).forEach(([key, {
|
|
7673
6785
|
css: css2
|
|
7674
6786
|
}]) => {
|
|
7675
|
-
|
|
7676
|
-
const cssColorSheme = (_b2 = (_a2 = colorSchemes[key]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode;
|
|
6787
|
+
const cssColorSheme = colorSchemes[key]?.palette?.mode;
|
|
7677
6788
|
const finalCss = !disableCssColorScheme && cssColorSheme ? {
|
|
7678
6789
|
colorScheme: cssColorSheme,
|
|
7679
6790
|
...css2
|
|
@@ -8405,7 +7516,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
8405
7516
|
}
|
|
8406
7517
|
muiTheme.unstable_sxConfig = {
|
|
8407
7518
|
...defaultSxConfig,
|
|
8408
|
-
...other
|
|
7519
|
+
...other?.unstable_sxConfig
|
|
8409
7520
|
};
|
|
8410
7521
|
muiTheme.unstable_sx = function sx(props) {
|
|
8411
7522
|
return styleFunctionSx({
|
|
@@ -8465,9 +7576,8 @@ function createColorScheme(options) {
|
|
|
8465
7576
|
};
|
|
8466
7577
|
}
|
|
8467
7578
|
function shouldSkipGeneratingVar(keys2) {
|
|
8468
|
-
var _a;
|
|
8469
7579
|
return !!keys2[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys2[0].match(/sxConfig$/) || // ends with sxConfig
|
|
8470
|
-
keys2[0] === "palette" && !!
|
|
7580
|
+
keys2[0] === "palette" && !!keys2[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
8471
7581
|
}
|
|
8472
7582
|
const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
|
|
8473
7583
|
const defaultGetSelector = (theme) => (colorScheme, css2) => {
|
|
@@ -8480,7 +7590,7 @@ const defaultGetSelector = (theme) => (colorScheme, css2) => {
|
|
|
8480
7590
|
if (selector === "data") {
|
|
8481
7591
|
rule = "[data-%s]";
|
|
8482
7592
|
}
|
|
8483
|
-
if (
|
|
7593
|
+
if (selector?.startsWith("data-") && !selector.includes("%s")) {
|
|
8484
7594
|
rule = `[${selector}="%s"]`;
|
|
8485
7595
|
}
|
|
8486
7596
|
if (theme.defaultColorScheme === colorScheme) {
|
|
@@ -8580,7 +7690,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
8580
7690
|
...scheme,
|
|
8581
7691
|
palette: {
|
|
8582
7692
|
mode,
|
|
8583
|
-
...scheme
|
|
7693
|
+
...scheme?.palette
|
|
8584
7694
|
}
|
|
8585
7695
|
});
|
|
8586
7696
|
return void 0;
|
|
@@ -8592,7 +7702,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
8592
7702
|
...restTheme,
|
|
8593
7703
|
palette: {
|
|
8594
7704
|
mode,
|
|
8595
|
-
...scheme
|
|
7705
|
+
...scheme?.palette
|
|
8596
7706
|
}
|
|
8597
7707
|
});
|
|
8598
7708
|
colorSchemes[colorScheme] = {
|
|
@@ -8600,9 +7710,9 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
8600
7710
|
palette,
|
|
8601
7711
|
opacity: {
|
|
8602
7712
|
...getOpacity(mode),
|
|
8603
|
-
...scheme
|
|
7713
|
+
...scheme?.opacity
|
|
8604
7714
|
},
|
|
8605
|
-
overlays:
|
|
7715
|
+
overlays: scheme?.overlays || getOverlays(mode)
|
|
8606
7716
|
};
|
|
8607
7717
|
return muiTheme;
|
|
8608
7718
|
}
|
|
@@ -8861,7 +7971,7 @@ function createThemeWithVars(options = {}, ...args) {
|
|
|
8861
7971
|
theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
|
|
8862
7972
|
theme.unstable_sxConfig = {
|
|
8863
7973
|
...defaultSxConfig,
|
|
8864
|
-
...input
|
|
7974
|
+
...input?.unstable_sxConfig
|
|
8865
7975
|
};
|
|
8866
7976
|
theme.unstable_sx = function sx(props) {
|
|
8867
7977
|
return styleFunctionSx({
|
|
@@ -8894,11 +8004,11 @@ function createTheme(options = {}, ...args) {
|
|
|
8894
8004
|
colorSchemes: initialColorSchemes = !palette ? {
|
|
8895
8005
|
light: true
|
|
8896
8006
|
} : void 0,
|
|
8897
|
-
defaultColorScheme: initialDefaultColorScheme = palette
|
|
8007
|
+
defaultColorScheme: initialDefaultColorScheme = palette?.mode,
|
|
8898
8008
|
...rest
|
|
8899
8009
|
} = options;
|
|
8900
8010
|
const defaultColorSchemeInput = initialDefaultColorScheme || "light";
|
|
8901
|
-
const defaultScheme = initialColorSchemes
|
|
8011
|
+
const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
|
|
8902
8012
|
const colorSchemesInput = {
|
|
8903
8013
|
...initialColorSchemes,
|
|
8904
8014
|
...palette ? {
|
|
@@ -9031,97 +8141,91 @@ const SvgIconRoot = styled("svg", {
|
|
|
9031
8141
|
}
|
|
9032
8142
|
})(memoTheme(({
|
|
9033
8143
|
theme
|
|
9034
|
-
}) => {
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
{
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
8144
|
+
}) => ({
|
|
8145
|
+
userSelect: "none",
|
|
8146
|
+
width: "1em",
|
|
8147
|
+
height: "1em",
|
|
8148
|
+
display: "inline-block",
|
|
8149
|
+
flexShrink: 0,
|
|
8150
|
+
transition: theme.transitions?.create?.("fill", {
|
|
8151
|
+
duration: (theme.vars ?? theme).transitions?.duration?.shorter
|
|
8152
|
+
}),
|
|
8153
|
+
variants: [
|
|
8154
|
+
{
|
|
8155
|
+
props: (props) => !props.hasSvgAsChild,
|
|
8156
|
+
style: {
|
|
8157
|
+
// the <svg> will define the property that has `currentColor`
|
|
8158
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
8159
|
+
fill: "currentColor"
|
|
8160
|
+
}
|
|
8161
|
+
},
|
|
8162
|
+
{
|
|
8163
|
+
props: {
|
|
8164
|
+
fontSize: "inherit"
|
|
9053
8165
|
},
|
|
9054
|
-
{
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
8166
|
+
style: {
|
|
8167
|
+
fontSize: "inherit"
|
|
8168
|
+
}
|
|
8169
|
+
},
|
|
8170
|
+
{
|
|
8171
|
+
props: {
|
|
8172
|
+
fontSize: "small"
|
|
9061
8173
|
},
|
|
9062
|
-
{
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
8174
|
+
style: {
|
|
8175
|
+
fontSize: theme.typography?.pxToRem?.(20) || "1.25rem"
|
|
8176
|
+
}
|
|
8177
|
+
},
|
|
8178
|
+
{
|
|
8179
|
+
props: {
|
|
8180
|
+
fontSize: "medium"
|
|
8181
|
+
},
|
|
8182
|
+
style: {
|
|
8183
|
+
fontSize: theme.typography?.pxToRem?.(24) || "1.5rem"
|
|
8184
|
+
}
|
|
8185
|
+
},
|
|
8186
|
+
{
|
|
8187
|
+
props: {
|
|
8188
|
+
fontSize: "large"
|
|
9069
8189
|
},
|
|
9070
|
-
{
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
8190
|
+
style: {
|
|
8191
|
+
fontSize: theme.typography?.pxToRem?.(35) || "2.1875rem"
|
|
8192
|
+
}
|
|
8193
|
+
},
|
|
8194
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
8195
|
+
...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => ({
|
|
8196
|
+
props: {
|
|
8197
|
+
color: color2
|
|
9077
8198
|
},
|
|
9078
|
-
{
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
8199
|
+
style: {
|
|
8200
|
+
color: (theme.vars ?? theme).palette?.[color2]?.main
|
|
8201
|
+
}
|
|
8202
|
+
})),
|
|
8203
|
+
{
|
|
8204
|
+
props: {
|
|
8205
|
+
color: "action"
|
|
9085
8206
|
},
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
style: {
|
|
9094
|
-
color: (_b2 = (_a2 = (theme.vars ?? theme).palette) == null ? void 0 : _a2[color2]) == null ? void 0 : _b2.main
|
|
9095
|
-
}
|
|
9096
|
-
};
|
|
9097
|
-
}),
|
|
9098
|
-
{
|
|
9099
|
-
props: {
|
|
9100
|
-
color: "action"
|
|
9101
|
-
},
|
|
9102
|
-
style: {
|
|
9103
|
-
color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active
|
|
9104
|
-
}
|
|
8207
|
+
style: {
|
|
8208
|
+
color: (theme.vars ?? theme).palette?.action?.active
|
|
8209
|
+
}
|
|
8210
|
+
},
|
|
8211
|
+
{
|
|
8212
|
+
props: {
|
|
8213
|
+
color: "disabled"
|
|
9105
8214
|
},
|
|
9106
|
-
{
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
8215
|
+
style: {
|
|
8216
|
+
color: (theme.vars ?? theme).palette?.action?.disabled
|
|
8217
|
+
}
|
|
8218
|
+
},
|
|
8219
|
+
{
|
|
8220
|
+
props: {
|
|
8221
|
+
color: "inherit"
|
|
9113
8222
|
},
|
|
9114
|
-
{
|
|
9115
|
-
|
|
9116
|
-
color: "inherit"
|
|
9117
|
-
},
|
|
9118
|
-
style: {
|
|
9119
|
-
color: void 0
|
|
9120
|
-
}
|
|
8223
|
+
style: {
|
|
8224
|
+
color: void 0
|
|
9121
8225
|
}
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
}));
|
|
8226
|
+
}
|
|
8227
|
+
]
|
|
8228
|
+
})));
|
|
9125
8229
|
const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
|
|
9126
8230
|
const props = useDefaultProps({
|
|
9127
8231
|
props: inProps,
|
|
@@ -9155,7 +8259,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
|
|
|
9155
8259
|
more.viewBox = viewBox;
|
|
9156
8260
|
}
|
|
9157
8261
|
const classes = useUtilityClasses$6(ownerState);
|
|
9158
|
-
return /* @__PURE__ */
|
|
8262
|
+
return /* @__PURE__ */ jsxs(SvgIconRoot, {
|
|
9159
8263
|
as: component,
|
|
9160
8264
|
className: clsx$1(classes.root, className),
|
|
9161
8265
|
focusable: "false",
|
|
@@ -9167,7 +8271,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
|
|
|
9167
8271
|
...other,
|
|
9168
8272
|
...hasSvgAsChild && children2.props,
|
|
9169
8273
|
ownerState,
|
|
9170
|
-
children: [hasSvgAsChild ? children2.props.children : children2, titleAccess ? /* @__PURE__ */
|
|
8274
|
+
children: [hasSvgAsChild ? children2.props.children : children2, titleAccess ? /* @__PURE__ */ jsx$1("title", {
|
|
9171
8275
|
children: titleAccess
|
|
9172
8276
|
}) : null]
|
|
9173
8277
|
});
|
|
@@ -9247,7 +8351,7 @@ SvgIcon.propTypes = {
|
|
|
9247
8351
|
SvgIcon.muiName = "SvgIcon";
|
|
9248
8352
|
function createSvgIcon(path, displayName) {
|
|
9249
8353
|
function Component(props, ref) {
|
|
9250
|
-
return /* @__PURE__ */
|
|
8354
|
+
return /* @__PURE__ */ jsx$1(SvgIcon, {
|
|
9251
8355
|
"data-testid": `${displayName}Icon`,
|
|
9252
8356
|
ref,
|
|
9253
8357
|
...props,
|
|
@@ -9331,7 +8435,7 @@ function useForkRef$1(...refs) {
|
|
|
9331
8435
|
};
|
|
9332
8436
|
});
|
|
9333
8437
|
return () => {
|
|
9334
|
-
cleanups.forEach((refCleanup) => refCleanup
|
|
8438
|
+
cleanups.forEach((refCleanup) => refCleanup?.());
|
|
9335
8439
|
};
|
|
9336
8440
|
}, refs);
|
|
9337
8441
|
return React.useMemo(() => {
|
|
@@ -9376,7 +8480,7 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
|
9376
8480
|
...ownerState,
|
|
9377
8481
|
...defaultSlotPropsValue
|
|
9378
8482
|
}) : externalSlotProps;
|
|
9379
|
-
const className2 = clsx$1(ownerState
|
|
8483
|
+
const className2 = clsx$1(ownerState?.className, defaultSlotPropsValue?.className, externalSlotPropsValue?.className);
|
|
9380
8484
|
const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
|
|
9381
8485
|
return {
|
|
9382
8486
|
...defaultSlotPropsValue,
|
|
@@ -9385,13 +8489,13 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
|
9385
8489
|
...!!className2 && {
|
|
9386
8490
|
className: className2
|
|
9387
8491
|
},
|
|
9388
|
-
...
|
|
8492
|
+
...defaultSlotPropsValue?.style && externalSlotPropsValue?.style && {
|
|
9389
8493
|
style: {
|
|
9390
8494
|
...defaultSlotPropsValue.style,
|
|
9391
8495
|
...externalSlotPropsValue.style
|
|
9392
8496
|
}
|
|
9393
8497
|
},
|
|
9394
|
-
...
|
|
8498
|
+
...defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && {
|
|
9395
8499
|
sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
|
|
9396
8500
|
}
|
|
9397
8501
|
};
|
|
@@ -9399,7 +8503,7 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
|
9399
8503
|
}
|
|
9400
8504
|
const typedDefaultSlotProps = defaultSlotProps;
|
|
9401
8505
|
const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
|
|
9402
|
-
const className = clsx$1(typedDefaultSlotProps
|
|
8506
|
+
const className = clsx$1(typedDefaultSlotProps?.className, externalSlotProps?.className);
|
|
9403
8507
|
return {
|
|
9404
8508
|
...defaultSlotProps,
|
|
9405
8509
|
...externalSlotProps,
|
|
@@ -9407,13 +8511,13 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
|
|
|
9407
8511
|
...!!className && {
|
|
9408
8512
|
className
|
|
9409
8513
|
},
|
|
9410
|
-
...
|
|
8514
|
+
...typedDefaultSlotProps?.style && externalSlotProps?.style && {
|
|
9411
8515
|
style: {
|
|
9412
8516
|
...typedDefaultSlotProps.style,
|
|
9413
8517
|
...externalSlotProps.style
|
|
9414
8518
|
}
|
|
9415
8519
|
},
|
|
9416
|
-
...
|
|
8520
|
+
...typedDefaultSlotProps?.sx && externalSlotProps?.sx && {
|
|
9417
8521
|
sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
|
|
9418
8522
|
}
|
|
9419
8523
|
};
|
|
@@ -9423,16 +8527,7 @@ function chainPropTypes(propType1, propType2) {
|
|
|
9423
8527
|
return propType1(...args) || propType2(...args);
|
|
9424
8528
|
};
|
|
9425
8529
|
}
|
|
9426
|
-
function
|
|
9427
|
-
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
9428
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
9429
|
-
var t = arguments[e];
|
|
9430
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
9431
|
-
}
|
|
9432
|
-
return n;
|
|
9433
|
-
}, _extends$1.apply(null, arguments);
|
|
9434
|
-
}
|
|
9435
|
-
function _objectWithoutPropertiesLoose$1(r2, e) {
|
|
8530
|
+
function _objectWithoutPropertiesLoose(r2, e) {
|
|
9436
8531
|
if (null == r2) return {};
|
|
9437
8532
|
var t = {};
|
|
9438
8533
|
for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
|
|
@@ -9441,16 +8536,16 @@ function _objectWithoutPropertiesLoose$1(r2, e) {
|
|
|
9441
8536
|
}
|
|
9442
8537
|
return t;
|
|
9443
8538
|
}
|
|
9444
|
-
function _setPrototypeOf
|
|
9445
|
-
return _setPrototypeOf
|
|
8539
|
+
function _setPrototypeOf(t, e) {
|
|
8540
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
9446
8541
|
return t2.__proto__ = e2, t2;
|
|
9447
|
-
}, _setPrototypeOf
|
|
8542
|
+
}, _setPrototypeOf(t, e);
|
|
9448
8543
|
}
|
|
9449
8544
|
function _inheritsLoose(t, o) {
|
|
9450
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf
|
|
8545
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
9451
8546
|
}
|
|
9452
8547
|
const TransitionGroupContext = React__default.createContext(null);
|
|
9453
|
-
function _assertThisInitialized
|
|
8548
|
+
function _assertThisInitialized(e) {
|
|
9454
8549
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9455
8550
|
return e;
|
|
9456
8551
|
}
|
|
@@ -9562,7 +8657,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
9562
8657
|
function TransitionGroup2(props, context) {
|
|
9563
8658
|
var _this;
|
|
9564
8659
|
_this = _React$Component.call(this, props, context) || this;
|
|
9565
|
-
var handleExited = _this.handleExited.bind(_assertThisInitialized
|
|
8660
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
9566
8661
|
_this.state = {
|
|
9567
8662
|
contextValue: {
|
|
9568
8663
|
isMounting: true
|
|
@@ -9608,7 +8703,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
9608
8703
|
}
|
|
9609
8704
|
};
|
|
9610
8705
|
_proto.render = function render() {
|
|
9611
|
-
var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose
|
|
8706
|
+
var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
|
9612
8707
|
var contextValue = this.state.contextValue;
|
|
9613
8708
|
var children2 = values(this.state.children).map(childFactory2);
|
|
9614
8709
|
delete props.appear;
|
|
@@ -9692,21 +8787,10 @@ function useOnMount(fn) {
|
|
|
9692
8787
|
React.useEffect(fn, EMPTY$1);
|
|
9693
8788
|
}
|
|
9694
8789
|
class Timeout {
|
|
9695
|
-
constructor() {
|
|
9696
|
-
__publicField(this, "currentId", null);
|
|
9697
|
-
__publicField(this, "clear", () => {
|
|
9698
|
-
if (this.currentId !== null) {
|
|
9699
|
-
clearTimeout(this.currentId);
|
|
9700
|
-
this.currentId = null;
|
|
9701
|
-
}
|
|
9702
|
-
});
|
|
9703
|
-
__publicField(this, "disposeEffect", () => {
|
|
9704
|
-
return this.clear;
|
|
9705
|
-
});
|
|
9706
|
-
}
|
|
9707
8790
|
static create() {
|
|
9708
8791
|
return new Timeout();
|
|
9709
8792
|
}
|
|
8793
|
+
currentId = null;
|
|
9710
8794
|
/**
|
|
9711
8795
|
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
9712
8796
|
*/
|
|
@@ -9717,6 +8801,15 @@ class Timeout {
|
|
|
9717
8801
|
fn();
|
|
9718
8802
|
}, delay);
|
|
9719
8803
|
}
|
|
8804
|
+
clear = () => {
|
|
8805
|
+
if (this.currentId !== null) {
|
|
8806
|
+
clearTimeout(this.currentId);
|
|
8807
|
+
this.currentId = null;
|
|
8808
|
+
}
|
|
8809
|
+
};
|
|
8810
|
+
disposeEffect = () => {
|
|
8811
|
+
return this.clear;
|
|
8812
|
+
};
|
|
9720
8813
|
}
|
|
9721
8814
|
function useTimeout() {
|
|
9722
8815
|
const timeout = useLazyRef(Timeout.create).current;
|
|
@@ -9799,11 +8892,11 @@ function mergeSlotProps(parameters) {
|
|
|
9799
8892
|
className
|
|
9800
8893
|
} = parameters;
|
|
9801
8894
|
if (!getSlotProps) {
|
|
9802
|
-
const joinedClasses2 = clsx$1(additionalProps
|
|
8895
|
+
const joinedClasses2 = clsx$1(additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);
|
|
9803
8896
|
const mergedStyle2 = {
|
|
9804
|
-
...additionalProps
|
|
9805
|
-
...externalForwardedProps
|
|
9806
|
-
...externalSlotProps
|
|
8897
|
+
...additionalProps?.style,
|
|
8898
|
+
...externalForwardedProps?.style,
|
|
8899
|
+
...externalSlotProps?.style
|
|
9807
8900
|
};
|
|
9808
8901
|
const props2 = {
|
|
9809
8902
|
...additionalProps,
|
|
@@ -9828,12 +8921,12 @@ function mergeSlotProps(parameters) {
|
|
|
9828
8921
|
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
|
9829
8922
|
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
|
9830
8923
|
const internalSlotProps = getSlotProps(eventHandlers);
|
|
9831
|
-
const joinedClasses = clsx$1(internalSlotProps
|
|
8924
|
+
const joinedClasses = clsx$1(internalSlotProps?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);
|
|
9832
8925
|
const mergedStyle = {
|
|
9833
|
-
...internalSlotProps
|
|
9834
|
-
...additionalProps
|
|
9835
|
-
...externalForwardedProps
|
|
9836
|
-
...externalSlotProps
|
|
8926
|
+
...internalSlotProps?.style,
|
|
8927
|
+
...additionalProps?.style,
|
|
8928
|
+
...externalForwardedProps?.style,
|
|
8929
|
+
...externalSlotProps?.style
|
|
9837
8930
|
};
|
|
9838
8931
|
const props = {
|
|
9839
8932
|
...internalSlotProps,
|
|
@@ -9886,7 +8979,7 @@ function useSlot(name, parameters) {
|
|
|
9886
8979
|
externalForwardedProps: name === "root" ? other : void 0,
|
|
9887
8980
|
externalSlotProps: resolvedComponentsProps
|
|
9888
8981
|
});
|
|
9889
|
-
const ref = useForkRef$1(internalRef, resolvedComponentsProps
|
|
8982
|
+
const ref = useForkRef$1(internalRef, resolvedComponentsProps?.ref, parameters.ref);
|
|
9890
8983
|
const LeafComponent = name === "root" ? slotComponent || rootComponent : slotComponent;
|
|
9891
8984
|
const props = appendOwnerState(elementType, {
|
|
9892
8985
|
...name === "root" && !rootComponent && !slots[name] && internalForwardedProps,
|
|
@@ -9914,23 +9007,6 @@ function isFocusVisible(element) {
|
|
|
9914
9007
|
return false;
|
|
9915
9008
|
}
|
|
9916
9009
|
class LazyRipple {
|
|
9917
|
-
constructor() {
|
|
9918
|
-
__publicField(this, "mountEffect", () => {
|
|
9919
|
-
if (this.shouldMount && !this.didMount) {
|
|
9920
|
-
if (this.ref.current !== null) {
|
|
9921
|
-
this.didMount = true;
|
|
9922
|
-
this.mounted.resolve();
|
|
9923
|
-
}
|
|
9924
|
-
}
|
|
9925
|
-
});
|
|
9926
|
-
this.ref = {
|
|
9927
|
-
current: null
|
|
9928
|
-
};
|
|
9929
|
-
this.mounted = null;
|
|
9930
|
-
this.didMount = false;
|
|
9931
|
-
this.shouldMount = false;
|
|
9932
|
-
this.setShouldMount = null;
|
|
9933
|
-
}
|
|
9934
9010
|
/** React ref to the ripple instance */
|
|
9935
9011
|
/** If the ripple component should be mounted */
|
|
9936
9012
|
/** Promise that resolves when the ripple component is mounted */
|
|
@@ -9947,6 +9023,15 @@ class LazyRipple {
|
|
|
9947
9023
|
React.useEffect(ripple.mountEffect, [shouldMount]);
|
|
9948
9024
|
return ripple;
|
|
9949
9025
|
}
|
|
9026
|
+
constructor() {
|
|
9027
|
+
this.ref = {
|
|
9028
|
+
current: null
|
|
9029
|
+
};
|
|
9030
|
+
this.mounted = null;
|
|
9031
|
+
this.didMount = false;
|
|
9032
|
+
this.shouldMount = false;
|
|
9033
|
+
this.setShouldMount = null;
|
|
9034
|
+
}
|
|
9950
9035
|
mount() {
|
|
9951
9036
|
if (!this.mounted) {
|
|
9952
9037
|
this.mounted = createControlledPromise();
|
|
@@ -9955,24 +9040,23 @@ class LazyRipple {
|
|
|
9955
9040
|
}
|
|
9956
9041
|
return this.mounted;
|
|
9957
9042
|
}
|
|
9043
|
+
mountEffect = () => {
|
|
9044
|
+
if (this.shouldMount && !this.didMount) {
|
|
9045
|
+
if (this.ref.current !== null) {
|
|
9046
|
+
this.didMount = true;
|
|
9047
|
+
this.mounted.resolve();
|
|
9048
|
+
}
|
|
9049
|
+
}
|
|
9050
|
+
};
|
|
9958
9051
|
/* Ripple API */
|
|
9959
9052
|
start(...args) {
|
|
9960
|
-
this.mount().then(() =>
|
|
9961
|
-
var _a;
|
|
9962
|
-
return (_a = this.ref.current) == null ? void 0 : _a.start(...args);
|
|
9963
|
-
});
|
|
9053
|
+
this.mount().then(() => this.ref.current?.start(...args));
|
|
9964
9054
|
}
|
|
9965
9055
|
stop(...args) {
|
|
9966
|
-
this.mount().then(() =>
|
|
9967
|
-
var _a;
|
|
9968
|
-
return (_a = this.ref.current) == null ? void 0 : _a.stop(...args);
|
|
9969
|
-
});
|
|
9056
|
+
this.mount().then(() => this.ref.current?.stop(...args));
|
|
9970
9057
|
}
|
|
9971
9058
|
pulsate(...args) {
|
|
9972
|
-
this.mount().then(() =>
|
|
9973
|
-
var _a;
|
|
9974
|
-
return (_a = this.ref.current) == null ? void 0 : _a.pulsate(...args);
|
|
9975
|
-
});
|
|
9059
|
+
this.mount().then(() => this.ref.current?.pulsate(...args));
|
|
9976
9060
|
}
|
|
9977
9061
|
}
|
|
9978
9062
|
function useLazyRipple() {
|
|
@@ -10022,10 +9106,10 @@ function Ripple(props) {
|
|
|
10022
9106
|
}
|
|
10023
9107
|
return void 0;
|
|
10024
9108
|
}, [onExited, inProp, timeout]);
|
|
10025
|
-
return /* @__PURE__ */
|
|
9109
|
+
return /* @__PURE__ */ jsx$1("span", {
|
|
10026
9110
|
className: rippleClassName,
|
|
10027
9111
|
style: rippleStyles,
|
|
10028
|
-
children: /* @__PURE__ */
|
|
9112
|
+
children: /* @__PURE__ */ jsx$1("span", {
|
|
10029
9113
|
className: childClassName
|
|
10030
9114
|
})
|
|
10031
9115
|
});
|
|
@@ -10202,7 +9286,7 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
|
|
|
10202
9286
|
rippleSize,
|
|
10203
9287
|
cb
|
|
10204
9288
|
} = params;
|
|
10205
|
-
setRipples((oldRipples) => [...oldRipples, /* @__PURE__ */
|
|
9289
|
+
setRipples((oldRipples) => [...oldRipples, /* @__PURE__ */ jsx$1(TouchRippleRipple, {
|
|
10206
9290
|
classes: {
|
|
10207
9291
|
ripple: clsx$1(classes.ripple, touchRippleClasses.ripple),
|
|
10208
9292
|
rippleVisible: clsx$1(classes.rippleVisible, touchRippleClasses.rippleVisible),
|
|
@@ -10228,11 +9312,11 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
|
|
|
10228
9312
|
fakeElement = false
|
|
10229
9313
|
// For test purposes
|
|
10230
9314
|
} = options;
|
|
10231
|
-
if (
|
|
9315
|
+
if (event?.type === "mousedown" && ignoringMouseDown.current) {
|
|
10232
9316
|
ignoringMouseDown.current = false;
|
|
10233
9317
|
return;
|
|
10234
9318
|
}
|
|
10235
|
-
if (
|
|
9319
|
+
if (event?.type === "touchstart") {
|
|
10236
9320
|
ignoringMouseDown.current = true;
|
|
10237
9321
|
}
|
|
10238
9322
|
const element = fakeElement ? null : container.current;
|
|
@@ -10266,7 +9350,7 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
|
|
|
10266
9350
|
const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;
|
|
10267
9351
|
rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);
|
|
10268
9352
|
}
|
|
10269
|
-
if (event
|
|
9353
|
+
if (event?.touches) {
|
|
10270
9354
|
if (startTimerCommit.current === null) {
|
|
10271
9355
|
startTimerCommit.current = () => {
|
|
10272
9356
|
startCommit({
|
|
@@ -10301,7 +9385,7 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
|
|
|
10301
9385
|
}, [start]);
|
|
10302
9386
|
const stop = React.useCallback((event, cb) => {
|
|
10303
9387
|
startTimer.clear();
|
|
10304
|
-
if (
|
|
9388
|
+
if (event?.type === "touchend" && startTimerCommit.current) {
|
|
10305
9389
|
startTimerCommit.current();
|
|
10306
9390
|
startTimerCommit.current = null;
|
|
10307
9391
|
startTimer.start(0, () => {
|
|
@@ -10323,11 +9407,11 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
|
|
|
10323
9407
|
start,
|
|
10324
9408
|
stop
|
|
10325
9409
|
}), [pulsate, start, stop]);
|
|
10326
|
-
return /* @__PURE__ */
|
|
9410
|
+
return /* @__PURE__ */ jsx$1(TouchRippleRoot, {
|
|
10327
9411
|
className: clsx$1(touchRippleClasses.root, classes.root, className),
|
|
10328
9412
|
ref: container,
|
|
10329
9413
|
...other,
|
|
10330
|
-
children: /* @__PURE__ */
|
|
9414
|
+
children: /* @__PURE__ */ jsx$1(TransitionGroup, {
|
|
10331
9415
|
component: null,
|
|
10332
9416
|
exit: true,
|
|
10333
9417
|
children: ripples
|
|
@@ -10570,7 +9654,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
|
|
|
10570
9654
|
focusVisible
|
|
10571
9655
|
};
|
|
10572
9656
|
const classes = useUtilityClasses$5(ownerState);
|
|
10573
|
-
return /* @__PURE__ */
|
|
9657
|
+
return /* @__PURE__ */ jsxs(ButtonBaseRoot, {
|
|
10574
9658
|
as: ComponentProp,
|
|
10575
9659
|
className: clsx$1(classes.root, className),
|
|
10576
9660
|
ownerState,
|
|
@@ -10592,7 +9676,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
|
|
|
10592
9676
|
type,
|
|
10593
9677
|
...buttonProps,
|
|
10594
9678
|
...other,
|
|
10595
|
-
children: [children2, enableTouchRipple ? /* @__PURE__ */
|
|
9679
|
+
children: [children2, enableTouchRipple ? /* @__PURE__ */ jsx$1(TouchRipple, {
|
|
10596
9680
|
ref: handleRippleRef,
|
|
10597
9681
|
center: centerRipple,
|
|
10598
9682
|
...TouchRippleProps
|
|
@@ -10797,11 +9881,10 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
|
|
|
10797
9881
|
return null;
|
|
10798
9882
|
}
|
|
10799
9883
|
function getReactElementRef(element) {
|
|
10800
|
-
var _a;
|
|
10801
9884
|
if (parseInt(React.version, 10) >= 19) {
|
|
10802
|
-
return
|
|
9885
|
+
return element?.props?.ref || null;
|
|
10803
9886
|
}
|
|
10804
|
-
return
|
|
9887
|
+
return element?.ref || null;
|
|
10805
9888
|
}
|
|
10806
9889
|
function getContainer(container) {
|
|
10807
9890
|
return typeof container === "function" ? container() : container;
|
|
@@ -11037,13 +10120,11 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
|
|
|
11037
10120
|
getSlotProps: (handlers) => ({
|
|
11038
10121
|
...handlers,
|
|
11039
10122
|
onFocus: (event) => {
|
|
11040
|
-
|
|
11041
|
-
(_a = handlers.onFocus) == null ? void 0 : _a.call(handlers, event);
|
|
10123
|
+
handlers.onFocus?.(event);
|
|
11042
10124
|
handleFocus(event);
|
|
11043
10125
|
},
|
|
11044
10126
|
onBlur: (event) => {
|
|
11045
|
-
|
|
11046
|
-
(_a = handlers.onBlur) == null ? void 0 : _a.call(handlers, event);
|
|
10127
|
+
handlers.onBlur?.(event);
|
|
11047
10128
|
handleBlur(event);
|
|
11048
10129
|
}
|
|
11049
10130
|
}),
|
|
@@ -11064,8 +10145,7 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
|
|
|
11064
10145
|
getSlotProps: (handlers) => ({
|
|
11065
10146
|
...handlers,
|
|
11066
10147
|
onChange: (event) => {
|
|
11067
|
-
|
|
11068
|
-
(_a = handlers.onChange) == null ? void 0 : _a.call(handlers, event);
|
|
10148
|
+
handlers.onChange?.(event);
|
|
11069
10149
|
handleInputChange(event);
|
|
11070
10150
|
}
|
|
11071
10151
|
}),
|
|
@@ -11086,9 +10166,9 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
|
|
|
11086
10166
|
}
|
|
11087
10167
|
}
|
|
11088
10168
|
});
|
|
11089
|
-
return /* @__PURE__ */
|
|
10169
|
+
return /* @__PURE__ */ jsxs(RootSlot, {
|
|
11090
10170
|
...rootSlotProps,
|
|
11091
|
-
children: [/* @__PURE__ */
|
|
10171
|
+
children: [/* @__PURE__ */ jsx$1(InputSlot, {
|
|
11092
10172
|
...inputSlotProps
|
|
11093
10173
|
}), checked ? checkedIcon : icon]
|
|
11094
10174
|
});
|
|
@@ -11212,13 +10292,13 @@ SwitchBase.propTypes = {
|
|
|
11212
10292
|
*/
|
|
11213
10293
|
value: PropTypes.any
|
|
11214
10294
|
};
|
|
11215
|
-
const CheckBoxOutlineBlankIcon = createSvgIcon(/* @__PURE__ */
|
|
10295
|
+
const CheckBoxOutlineBlankIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
11216
10296
|
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
11217
10297
|
}), "CheckBoxOutlineBlank");
|
|
11218
|
-
const CheckBoxIcon = createSvgIcon(/* @__PURE__ */
|
|
10298
|
+
const CheckBoxIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
11219
10299
|
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
11220
10300
|
}), "CheckBox");
|
|
11221
|
-
const IndeterminateCheckBoxIcon = createSvgIcon(/* @__PURE__ */
|
|
10301
|
+
const IndeterminateCheckBoxIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
11222
10302
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
11223
10303
|
}), "IndeterminateCheckBox");
|
|
11224
10304
|
function getCheckboxUtilityClass(slot) {
|
|
@@ -11303,9 +10383,9 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
11303
10383
|
}
|
|
11304
10384
|
}]
|
|
11305
10385
|
})));
|
|
11306
|
-
const defaultCheckedIcon = /* @__PURE__ */
|
|
11307
|
-
const defaultIcon = /* @__PURE__ */
|
|
11308
|
-
const defaultIndeterminateIcon = /* @__PURE__ */
|
|
10386
|
+
const defaultCheckedIcon = /* @__PURE__ */ jsx$1(CheckBoxIcon, {});
|
|
10387
|
+
const defaultIcon = /* @__PURE__ */ jsx$1(CheckBoxOutlineBlankIcon, {});
|
|
10388
|
+
const defaultIndeterminateIcon = /* @__PURE__ */ jsx$1(IndeterminateCheckBoxIcon, {});
|
|
11309
10389
|
const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, ref) {
|
|
11310
10390
|
const props = useDefaultProps({
|
|
11311
10391
|
props: inProps,
|
|
@@ -11364,7 +10444,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
|
|
|
11364
10444
|
}
|
|
11365
10445
|
}
|
|
11366
10446
|
});
|
|
11367
|
-
return /* @__PURE__ */
|
|
10447
|
+
return /* @__PURE__ */ jsx$1(RootSlot, {
|
|
11368
10448
|
...rootSlotProps,
|
|
11369
10449
|
classes
|
|
11370
10450
|
});
|
|
@@ -11524,72 +10604,69 @@ const TypographyRoot = styled("span", {
|
|
|
11524
10604
|
}
|
|
11525
10605
|
})(memoTheme(({
|
|
11526
10606
|
theme
|
|
11527
|
-
}) => {
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
}]
|
|
11591
|
-
};
|
|
11592
|
-
}));
|
|
10607
|
+
}) => ({
|
|
10608
|
+
margin: 0,
|
|
10609
|
+
variants: [{
|
|
10610
|
+
props: {
|
|
10611
|
+
variant: "inherit"
|
|
10612
|
+
},
|
|
10613
|
+
style: {
|
|
10614
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
10615
|
+
font: "inherit",
|
|
10616
|
+
lineHeight: "inherit",
|
|
10617
|
+
letterSpacing: "inherit"
|
|
10618
|
+
}
|
|
10619
|
+
}, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
|
|
10620
|
+
props: {
|
|
10621
|
+
variant
|
|
10622
|
+
},
|
|
10623
|
+
style: value
|
|
10624
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
10625
|
+
props: {
|
|
10626
|
+
color: color2
|
|
10627
|
+
},
|
|
10628
|
+
style: {
|
|
10629
|
+
color: (theme.vars || theme).palette[color2].main
|
|
10630
|
+
}
|
|
10631
|
+
})), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
|
|
10632
|
+
props: {
|
|
10633
|
+
color: `text${capitalize(color2)}`
|
|
10634
|
+
},
|
|
10635
|
+
style: {
|
|
10636
|
+
color: (theme.vars || theme).palette.text[color2]
|
|
10637
|
+
}
|
|
10638
|
+
})), {
|
|
10639
|
+
props: ({
|
|
10640
|
+
ownerState
|
|
10641
|
+
}) => ownerState.align !== "inherit",
|
|
10642
|
+
style: {
|
|
10643
|
+
textAlign: "var(--Typography-textAlign)"
|
|
10644
|
+
}
|
|
10645
|
+
}, {
|
|
10646
|
+
props: ({
|
|
10647
|
+
ownerState
|
|
10648
|
+
}) => ownerState.noWrap,
|
|
10649
|
+
style: {
|
|
10650
|
+
overflow: "hidden",
|
|
10651
|
+
textOverflow: "ellipsis",
|
|
10652
|
+
whiteSpace: "nowrap"
|
|
10653
|
+
}
|
|
10654
|
+
}, {
|
|
10655
|
+
props: ({
|
|
10656
|
+
ownerState
|
|
10657
|
+
}) => ownerState.gutterBottom,
|
|
10658
|
+
style: {
|
|
10659
|
+
marginBottom: "0.35em"
|
|
10660
|
+
}
|
|
10661
|
+
}, {
|
|
10662
|
+
props: ({
|
|
10663
|
+
ownerState
|
|
10664
|
+
}) => ownerState.paragraph,
|
|
10665
|
+
style: {
|
|
10666
|
+
marginBottom: 16
|
|
10667
|
+
}
|
|
10668
|
+
}]
|
|
10669
|
+
})));
|
|
11593
10670
|
const defaultVariantMapping = {
|
|
11594
10671
|
h1: "h1",
|
|
11595
10672
|
h2: "h2",
|
|
@@ -11643,7 +10720,7 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
|
|
|
11643
10720
|
};
|
|
11644
10721
|
const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
11645
10722
|
const classes = useUtilityClasses$2(ownerState);
|
|
11646
|
-
return /* @__PURE__ */
|
|
10723
|
+
return /* @__PURE__ */ jsx$1(TypographyRoot, {
|
|
11647
10724
|
as: Component,
|
|
11648
10725
|
ref,
|
|
11649
10726
|
className: clsx$1(classes.root, className),
|
|
@@ -11934,7 +11011,7 @@ const TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(inProps,
|
|
|
11934
11011
|
if (sortDirection) {
|
|
11935
11012
|
ariaSort = sortDirection === "asc" ? "ascending" : "descending";
|
|
11936
11013
|
}
|
|
11937
|
-
return /* @__PURE__ */
|
|
11014
|
+
return /* @__PURE__ */ jsx$1(TableCellRoot, {
|
|
11938
11015
|
as: component,
|
|
11939
11016
|
ref,
|
|
11940
11017
|
className: clsx$1(classes.root, className),
|
|
@@ -12069,7 +11146,7 @@ const TableRow = /* @__PURE__ */ React.forwardRef(function TableRow2(inProps, re
|
|
|
12069
11146
|
footer: tablelvl2 && tablelvl2.variant === "footer"
|
|
12070
11147
|
};
|
|
12071
11148
|
const classes = useUtilityClasses(ownerState);
|
|
12072
|
-
return /* @__PURE__ */
|
|
11149
|
+
return /* @__PURE__ */ jsx$1(TableRowRoot, {
|
|
12073
11150
|
as: component,
|
|
12074
11151
|
ref,
|
|
12075
11152
|
className: clsx$1(classes.root, className),
|
|
@@ -12115,6 +11192,28 @@ TableRow.propTypes = {
|
|
|
12115
11192
|
*/
|
|
12116
11193
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
12117
11194
|
};
|
|
11195
|
+
function _typeof(o) {
|
|
11196
|
+
"@babel/helpers - typeof";
|
|
11197
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
11198
|
+
return typeof o2;
|
|
11199
|
+
} : function(o2) {
|
|
11200
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
11201
|
+
}, _typeof(o);
|
|
11202
|
+
}
|
|
11203
|
+
function toPrimitive(t, r2) {
|
|
11204
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
11205
|
+
var e = t[Symbol.toPrimitive];
|
|
11206
|
+
if (void 0 !== e) {
|
|
11207
|
+
var i = e.call(t, r2);
|
|
11208
|
+
if ("object" != _typeof(i)) return i;
|
|
11209
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
11210
|
+
}
|
|
11211
|
+
return ("string" === r2 ? String : Number)(t);
|
|
11212
|
+
}
|
|
11213
|
+
function toPropertyKey(t) {
|
|
11214
|
+
var i = toPrimitive(t, "string");
|
|
11215
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
11216
|
+
}
|
|
12118
11217
|
/**!
|
|
12119
11218
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
12120
11219
|
* @version 1.16.1
|
|
@@ -13807,7 +12906,7 @@ React.forwardRef((props, ref) => {
|
|
|
13807
12906
|
onExited: handleExited
|
|
13808
12907
|
};
|
|
13809
12908
|
}
|
|
13810
|
-
return
|
|
12909
|
+
return jsx$1(Portal, { disablePortal, container, children: jsx$1("div", { ref: handleRef, role: "tooltip", ...other, style: {
|
|
13811
12910
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
13812
12911
|
position: "fixed",
|
|
13813
12912
|
// Fix Popper.js display issue
|
|
@@ -13957,11 +13056,11 @@ function createListComponent(_ref) {
|
|
|
13957
13056
|
function List2(props) {
|
|
13958
13057
|
var _this;
|
|
13959
13058
|
_this = _PureComponent.call(this, props) || this;
|
|
13960
|
-
_this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized
|
|
13059
|
+
_this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
|
|
13961
13060
|
_this._outerRef = void 0;
|
|
13962
13061
|
_this._resetIsScrollingTimeoutId = null;
|
|
13963
13062
|
_this.state = {
|
|
13964
|
-
instance: _assertThisInitialized
|
|
13063
|
+
instance: _assertThisInitialized(_this),
|
|
13965
13064
|
isScrolling: false,
|
|
13966
13065
|
scrollDirection: "forward",
|
|
13967
13066
|
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
@@ -14450,7 +13549,7 @@ makeStyles()(() => ({
|
|
|
14450
13549
|
const OuterElementContext = React__default.createContext({});
|
|
14451
13550
|
const OuterElementType = React__default.forwardRef((props, ref) => {
|
|
14452
13551
|
const outerProps = React__default.useContext(OuterElementContext);
|
|
14453
|
-
return
|
|
13552
|
+
return jsx$1("div", { ref, ...props, ...outerProps });
|
|
14454
13553
|
});
|
|
14455
13554
|
function ListRow(props) {
|
|
14456
13555
|
const { data, index, style: style2 } = props;
|
|
@@ -14461,7 +13560,7 @@ function ListRow(props) {
|
|
|
14461
13560
|
};
|
|
14462
13561
|
const [props0, option, getItemLabel] = dataSet;
|
|
14463
13562
|
const { key, ...optionProps } = props0;
|
|
14464
|
-
return
|
|
13563
|
+
return jsx$1(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
|
|
14465
13564
|
}
|
|
14466
13565
|
function useResetCache(itemCount) {
|
|
14467
13566
|
const ref = useRef(null);
|
|
@@ -14477,33 +13576,11 @@ React__default.forwardRef((props, ref) => {
|
|
|
14477
13576
|
const items = children2;
|
|
14478
13577
|
const itemCount = items.length;
|
|
14479
13578
|
const gridRef = useResetCache(itemCount);
|
|
14480
|
-
return
|
|
13579
|
+
return jsx$1("div", { ref, children: jsx$1(OuterElementContext.Provider, { value: other, children: jsx$1(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
|
|
14481
13580
|
});
|
|
14482
13581
|
function _classCallCheck(a, n) {
|
|
14483
13582
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
14484
13583
|
}
|
|
14485
|
-
function _typeof(o) {
|
|
14486
|
-
"@babel/helpers - typeof";
|
|
14487
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
14488
|
-
return typeof o2;
|
|
14489
|
-
} : function(o2) {
|
|
14490
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
14491
|
-
}, _typeof(o);
|
|
14492
|
-
}
|
|
14493
|
-
function toPrimitive(t, r2) {
|
|
14494
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
14495
|
-
var e = t[Symbol.toPrimitive];
|
|
14496
|
-
if (void 0 !== e) {
|
|
14497
|
-
var i = e.call(t, r2);
|
|
14498
|
-
if ("object" != _typeof(i)) return i;
|
|
14499
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14500
|
-
}
|
|
14501
|
-
return ("string" === r2 ? String : Number)(t);
|
|
14502
|
-
}
|
|
14503
|
-
function toPropertyKey(t) {
|
|
14504
|
-
var i = toPrimitive(t, "string");
|
|
14505
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
14506
|
-
}
|
|
14507
13584
|
function _defineProperties(e, r2) {
|
|
14508
13585
|
for (var t = 0; t < r2.length; t++) {
|
|
14509
13586
|
var o = r2[t];
|
|
@@ -14515,10 +13592,6 @@ function _createClass(e, r2, t) {
|
|
|
14515
13592
|
writable: false
|
|
14516
13593
|
}), e;
|
|
14517
13594
|
}
|
|
14518
|
-
function _assertThisInitialized(e) {
|
|
14519
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14520
|
-
return e;
|
|
14521
|
-
}
|
|
14522
13595
|
function _possibleConstructorReturn(t, e) {
|
|
14523
13596
|
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
14524
13597
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -14529,11 +13602,6 @@ function _getPrototypeOf(t) {
|
|
|
14529
13602
|
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
14530
13603
|
}, _getPrototypeOf(t);
|
|
14531
13604
|
}
|
|
14532
|
-
function _setPrototypeOf(t, e) {
|
|
14533
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
14534
|
-
return t2.__proto__ = e2, t2;
|
|
14535
|
-
}, _setPrototypeOf(t, e);
|
|
14536
|
-
}
|
|
14537
13605
|
function _inherits(t, e) {
|
|
14538
13606
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
14539
13607
|
t.prototype = Object.create(e && e.prototype, {
|
|
@@ -15916,8 +14984,8 @@ var Collection = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
15916
14984
|
}, {
|
|
15917
14985
|
key: "render",
|
|
15918
14986
|
value: function render() {
|
|
15919
|
-
var props = _extends$
|
|
15920
|
-
return /* @__PURE__ */ React.createElement(CollectionView, _extends$
|
|
14987
|
+
var props = _extends$1({}, (_objectDestructuringEmpty(this.props), this.props));
|
|
14988
|
+
return /* @__PURE__ */ React.createElement(CollectionView, _extends$1({
|
|
15921
14989
|
cellLayoutManager: this,
|
|
15922
14990
|
isScrollingChange: this._isScrollingChange,
|
|
15923
14991
|
ref: this._setCollectionViewRef
|
|
@@ -16181,15 +15249,6 @@ function calculateSizeAndPositionDataAndUpdateScrollOffset(_ref) {
|
|
|
16181
15249
|
}
|
|
16182
15250
|
}
|
|
16183
15251
|
}
|
|
16184
|
-
function _objectWithoutPropertiesLoose(r2, e) {
|
|
16185
|
-
if (null == r2) return {};
|
|
16186
|
-
var t = {};
|
|
16187
|
-
for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
|
|
16188
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
16189
|
-
t[n] = r2[n];
|
|
16190
|
-
}
|
|
16191
|
-
return t;
|
|
16192
|
-
}
|
|
16193
15252
|
function _objectWithoutProperties(e, t) {
|
|
16194
15253
|
if (null == e) return {};
|
|
16195
15254
|
var o, r2, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -17210,7 +16269,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
17210
16269
|
gridStyle.overflowY = totalRowsHeight + horizontalScrollBarSize <= height2 ? "hidden" : "auto";
|
|
17211
16270
|
var childrenToDisplay = this._childrenToDisplay;
|
|
17212
16271
|
var showNoContentRenderer = childrenToDisplay.length === 0 && height2 > 0 && width2 > 0;
|
|
17213
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
16272
|
+
return /* @__PURE__ */ React.createElement("div", _extends$1({
|
|
17214
16273
|
ref: this._setScrollingContainerRef
|
|
17215
16274
|
}, containerProps, {
|
|
17216
16275
|
"aria-label": this.props["aria-label"],
|
|
@@ -18128,7 +17187,7 @@ var List = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
18128
17187
|
value: function render() {
|
|
18129
17188
|
var _this$props = this.props, className = _this$props.className, noRowsRenderer3 = _this$props.noRowsRenderer, scrollToIndex = _this$props.scrollToIndex, width2 = _this$props.width;
|
|
18130
17189
|
var classNames = clsx("ReactVirtualized__List", className);
|
|
18131
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
17190
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$1({}, this.props, {
|
|
18132
17191
|
autoContainerWidth: true,
|
|
18133
17192
|
cellRenderer: this._cellRenderer,
|
|
18134
17193
|
className: classNames,
|
|
@@ -19623,7 +18682,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
19623
18682
|
return null;
|
|
19624
18683
|
}
|
|
19625
18684
|
var additionalRowCount = showVerticalScrollbar ? 1 : 0, height2 = this._getBottomGridHeight(props), width2 = this._getLeftGridWidth(props), scrollbarSize2 = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, gridWidth = hideBottomLeftGridScrollbar ? width2 + scrollbarSize2 : width2;
|
|
19626
|
-
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
18685
|
+
var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
|
|
19627
18686
|
cellRenderer: this._cellRendererBottomLeftGrid,
|
|
19628
18687
|
className: this.props.classNameBottomLeftGrid,
|
|
19629
18688
|
columnCount: fixedColumnCount,
|
|
@@ -19653,7 +18712,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
19653
18712
|
key: "_renderBottomRightGrid",
|
|
19654
18713
|
value: function _renderBottomRightGrid(props) {
|
|
19655
18714
|
var columnCount = props.columnCount, fixedColumnCount = props.fixedColumnCount, fixedRowCount = props.fixedRowCount, rowCount = props.rowCount, scrollToColumn = props.scrollToColumn, scrollToRow = props.scrollToRow;
|
|
19656
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
18715
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
|
|
19657
18716
|
cellRenderer: this._cellRendererBottomRightGrid,
|
|
19658
18717
|
className: this.props.classNameBottomRightGrid,
|
|
19659
18718
|
columnCount: Math.max(0, columnCount - fixedColumnCount),
|
|
@@ -19678,7 +18737,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
19678
18737
|
if (!fixedColumnCount || !fixedRowCount) {
|
|
19679
18738
|
return null;
|
|
19680
18739
|
}
|
|
19681
|
-
return /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
18740
|
+
return /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
|
|
19682
18741
|
className: this.props.classNameTopLeftGrid,
|
|
19683
18742
|
columnCount: fixedColumnCount,
|
|
19684
18743
|
height: this._getTopGridHeight(props),
|
|
@@ -19705,7 +18764,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
19705
18764
|
left: 0
|
|
19706
18765
|
});
|
|
19707
18766
|
}
|
|
19708
|
-
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
18767
|
+
var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
|
|
19709
18768
|
cellRenderer: this._cellRendererTopRightGrid,
|
|
19710
18769
|
className: this.props.classNameTopRightGrid,
|
|
19711
18770
|
columnCount: Math.max(0, columnCount - fixedColumnCount) + additionalColumnCount,
|
|
@@ -19980,7 +19039,7 @@ function defaultRowRenderer(_ref) {
|
|
|
19980
19039
|
};
|
|
19981
19040
|
}
|
|
19982
19041
|
}
|
|
19983
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
19042
|
+
return /* @__PURE__ */ React.createElement("div", _extends$1({}, a11yProps, {
|
|
19984
19043
|
className,
|
|
19985
19044
|
key,
|
|
19986
19045
|
role: "row",
|
|
@@ -20263,7 +19322,7 @@ var Table = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
20263
19322
|
paddingRight: scrollbarWidth,
|
|
20264
19323
|
width: width2
|
|
20265
19324
|
}, rowStyleObject)
|
|
20266
|
-
}), /* @__PURE__ */ React.createElement(Grid, _extends$
|
|
19325
|
+
}), /* @__PURE__ */ React.createElement(Grid, _extends$1({}, this.props, {
|
|
20267
19326
|
elementRef: this._setGridElementRef,
|
|
20268
19327
|
"aria-readonly": null,
|
|
20269
19328
|
autoContainerWidth: true,
|
|
@@ -21330,8 +20389,8 @@ function stubFalse() {
|
|
|
21330
20389
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
21331
20390
|
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
21332
20391
|
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
21333
|
-
var
|
|
21334
|
-
var nativeIsBuffer =
|
|
20392
|
+
var Buffer = moduleExports$1 ? root.Buffer : void 0;
|
|
20393
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
21335
20394
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
21336
20395
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag$1 = "[object WeakMap]";
|
|
21337
20396
|
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
@@ -22241,10 +21300,7 @@ function FeatureList(props) {
|
|
|
22241
21300
|
const { classes } = useStyles$1();
|
|
22242
21301
|
const [searchTerm, setSearchTerm] = useState("");
|
|
22243
21302
|
const selectableTableSortKey = featureListSortKey === "featureIndex" ? "key" : "name";
|
|
22244
|
-
const searchResults = useMemo(() => geneList.filter((gene) =>
|
|
22245
|
-
var _a, _b;
|
|
22246
|
-
return gene.toLowerCase().includes(searchTerm.toLowerCase()) || ((_a = featureLabelsMap == null ? void 0 : featureLabelsMap.get(gene)) == null ? void 0 : _a.toLowerCase().includes(searchTerm.toLowerCase())) || ((_b = featureLabelsMap == null ? void 0 : featureLabelsMap.get(cleanFeatureId(gene))) == null ? void 0 : _b.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
22247
|
-
}), [geneList, searchTerm, featureLabelsMap]);
|
|
21303
|
+
const searchResults = useMemo(() => geneList.filter((gene) => gene.toLowerCase().includes(searchTerm.toLowerCase()) || featureLabelsMap?.get(gene)?.toLowerCase().includes(searchTerm.toLowerCase()) || featureLabelsMap?.get(cleanFeatureId(gene))?.toLowerCase().includes(searchTerm.toLowerCase())), [geneList, searchTerm, featureLabelsMap]);
|
|
22248
21304
|
function onChange(selection) {
|
|
22249
21305
|
if (setGeneSelection && selection) {
|
|
22250
21306
|
const selectedHiddenKeys = (geneSelection || []).filter(
|
|
@@ -22266,7 +21322,7 @@ function FeatureList(props) {
|
|
|
22266
21322
|
const preSortedData = searchResults.filter((gene) => geneFilter ? geneFilter.includes(gene) : true).map(
|
|
22267
21323
|
(gene) => ({
|
|
22268
21324
|
key: gene,
|
|
22269
|
-
name:
|
|
21325
|
+
name: featureLabelsMap?.get(gene) || featureLabelsMap?.get(cleanFeatureId(gene)) || gene,
|
|
22270
21326
|
value: geneSelection ? geneSelection.includes(gene) : false
|
|
22271
21327
|
})
|
|
22272
21328
|
);
|
|
@@ -22326,6 +21382,8 @@ function FeatureList(props) {
|
|
|
22326
21382
|
}
|
|
22327
21383
|
)) : null;
|
|
22328
21384
|
}
|
|
21385
|
+
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
|
|
21386
|
+
};
|
|
22329
21387
|
const $b5e257d569688ac6$var$defaultContext = {
|
|
22330
21388
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
22331
21389
|
current: 0
|
|
@@ -22338,7 +21396,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
|
22338
21396
|
let ctx = useContext($b5e257d569688ac6$var$SSRContext);
|
|
22339
21397
|
let ref = useRef(null);
|
|
22340
21398
|
if (ref.current === null && !isDisabled) {
|
|
22341
|
-
var
|
|
21399
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
22342
21400
|
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = React__default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
22343
21401
|
if (currentOwner) {
|
|
22344
21402
|
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
@@ -22358,7 +21416,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
|
22358
21416
|
}
|
|
22359
21417
|
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
22360
21418
|
let ctx = useContext($b5e257d569688ac6$var$SSRContext);
|
|
22361
|
-
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
21419
|
+
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && true) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
22362
21420
|
let counter2 = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
22363
21421
|
let prefix2 = `react-aria${ctx.prefix}`;
|
|
22364
21422
|
return defaultId || `${prefix2}-${counter2}`;
|
|
@@ -22384,67 +21442,43 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
22384
21442
|
if (typeof React__default["useSyncExternalStore"] === "function") return React__default["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
22385
21443
|
return useContext($b5e257d569688ac6$var$IsSSRContext);
|
|
22386
21444
|
}
|
|
22387
|
-
|
|
22388
|
-
|
|
22389
|
-
let $bdb11010cef70236$var$
|
|
21445
|
+
let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
21446
|
+
let $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map();
|
|
21447
|
+
let $bdb11010cef70236$var$registry;
|
|
21448
|
+
if (typeof FinalizationRegistry !== "undefined") $bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
|
|
21449
|
+
$bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
|
|
21450
|
+
});
|
|
22390
21451
|
function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
22391
21452
|
let [value, setValue] = useState(defaultId);
|
|
22392
21453
|
let nextId = useRef(null);
|
|
22393
21454
|
let res = $b5e257d569688ac6$export$619500959fc48b26(value);
|
|
22394
|
-
let
|
|
22395
|
-
|
|
22396
|
-
|
|
22397
|
-
|
|
21455
|
+
let cleanupRef = useRef(null);
|
|
21456
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.register(cleanupRef, res);
|
|
21457
|
+
if ($bdb11010cef70236$var$canUseDOM) {
|
|
21458
|
+
const cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
|
|
21459
|
+
if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);
|
|
21460
|
+
else $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
|
|
21461
|
+
nextId
|
|
21462
|
+
]);
|
|
21463
|
+
}
|
|
22398
21464
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
22399
21465
|
let r2 = res;
|
|
22400
21466
|
return () => {
|
|
22401
|
-
$bdb11010cef70236$var$
|
|
21467
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);
|
|
21468
|
+
$bdb11010cef70236$export$d41a04c74483c6ef.delete(r2);
|
|
22402
21469
|
};
|
|
22403
21470
|
}, [
|
|
22404
21471
|
res
|
|
22405
21472
|
]);
|
|
22406
21473
|
useEffect(() => {
|
|
22407
21474
|
let newId = nextId.current;
|
|
22408
|
-
if (newId)
|
|
22409
|
-
|
|
22410
|
-
|
|
22411
|
-
}
|
|
21475
|
+
if (newId) setValue(newId);
|
|
21476
|
+
return () => {
|
|
21477
|
+
if (newId) nextId.current = null;
|
|
21478
|
+
};
|
|
22412
21479
|
});
|
|
22413
21480
|
return res;
|
|
22414
21481
|
}
|
|
22415
|
-
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
22416
|
-
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
22417
|
-
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
22418
|
-
if (typeof window === "undefined") return;
|
|
22419
|
-
let onTransitionStart = (e) => {
|
|
22420
|
-
let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
22421
|
-
if (!transitions) {
|
|
22422
|
-
transitions = /* @__PURE__ */ new Set();
|
|
22423
|
-
$bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
|
|
22424
|
-
e.target.addEventListener("transitioncancel", onTransitionEnd);
|
|
22425
|
-
}
|
|
22426
|
-
transitions.add(e.propertyName);
|
|
22427
|
-
};
|
|
22428
|
-
let onTransitionEnd = (e) => {
|
|
22429
|
-
let properties2 = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
22430
|
-
if (!properties2) return;
|
|
22431
|
-
properties2.delete(e.propertyName);
|
|
22432
|
-
if (properties2.size === 0) {
|
|
22433
|
-
e.target.removeEventListener("transitioncancel", onTransitionEnd);
|
|
22434
|
-
$bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
|
|
22435
|
-
}
|
|
22436
|
-
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
|
|
22437
|
-
for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks) cb();
|
|
22438
|
-
$bbed8b41f857bcc0$var$transitionCallbacks.clear();
|
|
22439
|
-
}
|
|
22440
|
-
};
|
|
22441
|
-
document.body.addEventListener("transitionrun", onTransitionStart);
|
|
22442
|
-
document.body.addEventListener("transitionend", onTransitionEnd);
|
|
22443
|
-
}
|
|
22444
|
-
if (typeof document !== "undefined") {
|
|
22445
|
-
if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
|
|
22446
|
-
else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
|
22447
|
-
}
|
|
22448
21482
|
function FeatureListOptions(props) {
|
|
22449
21483
|
const {
|
|
22450
21484
|
children: children2,
|