@daryasidorovich/modsen-datepicker 1.0.8 → 1.0.10
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.cjs +54 -3234
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -3234
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
package/dist/index.cjs
CHANGED
|
@@ -59,7 +59,19 @@ function requireReactJsxRuntime_production () {
|
|
|
59
59
|
return reactJsxRuntime_production;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var hasRequiredJsxRuntime;
|
|
63
|
+
|
|
64
|
+
function requireJsxRuntime () {
|
|
65
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
66
|
+
hasRequiredJsxRuntime = 1;
|
|
67
|
+
|
|
68
|
+
{
|
|
69
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
70
|
+
}
|
|
71
|
+
return jsxRuntime.exports;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
63
75
|
|
|
64
76
|
var react = {exports: {}};
|
|
65
77
|
|
|
@@ -614,1691 +626,18 @@ function requireReact_production () {
|
|
|
614
626
|
return react_production;
|
|
615
627
|
}
|
|
616
628
|
|
|
617
|
-
var react_development = {exports: {}};
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* @license React
|
|
621
|
-
* react.development.js
|
|
622
|
-
*
|
|
623
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
624
|
-
*
|
|
625
|
-
* This source code is licensed under the MIT license found in the
|
|
626
|
-
* LICENSE file in the root directory of this source tree.
|
|
627
|
-
*/
|
|
628
|
-
react_development.exports;
|
|
629
|
-
|
|
630
|
-
var hasRequiredReact_development;
|
|
631
|
-
|
|
632
|
-
function requireReact_development () {
|
|
633
|
-
if (hasRequiredReact_development) return react_development.exports;
|
|
634
|
-
hasRequiredReact_development = 1;
|
|
635
|
-
(function (module, exports) {
|
|
636
|
-
"production" !== process.env.NODE_ENV &&
|
|
637
|
-
(function () {
|
|
638
|
-
function defineDeprecationWarning(methodName, info) {
|
|
639
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
640
|
-
get: function () {
|
|
641
|
-
console.warn(
|
|
642
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
643
|
-
info[0],
|
|
644
|
-
info[1]
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
function getIteratorFn(maybeIterable) {
|
|
650
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
651
|
-
return null;
|
|
652
|
-
maybeIterable =
|
|
653
|
-
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
654
|
-
maybeIterable["@@iterator"];
|
|
655
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
656
|
-
}
|
|
657
|
-
function warnNoop(publicInstance, callerName) {
|
|
658
|
-
publicInstance =
|
|
659
|
-
((publicInstance = publicInstance.constructor) &&
|
|
660
|
-
(publicInstance.displayName || publicInstance.name)) ||
|
|
661
|
-
"ReactClass";
|
|
662
|
-
var warningKey = publicInstance + "." + callerName;
|
|
663
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] ||
|
|
664
|
-
(console.error(
|
|
665
|
-
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
666
|
-
callerName,
|
|
667
|
-
publicInstance
|
|
668
|
-
),
|
|
669
|
-
(didWarnStateUpdateForUnmountedComponent[warningKey] = true));
|
|
670
|
-
}
|
|
671
|
-
function Component(props, context, updater) {
|
|
672
|
-
this.props = props;
|
|
673
|
-
this.context = context;
|
|
674
|
-
this.refs = emptyObject;
|
|
675
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
676
|
-
}
|
|
677
|
-
function ComponentDummy() {}
|
|
678
|
-
function PureComponent(props, context, updater) {
|
|
679
|
-
this.props = props;
|
|
680
|
-
this.context = context;
|
|
681
|
-
this.refs = emptyObject;
|
|
682
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
683
|
-
}
|
|
684
|
-
function noop() {}
|
|
685
|
-
function testStringCoercion(value) {
|
|
686
|
-
return "" + value;
|
|
687
|
-
}
|
|
688
|
-
function checkKeyStringCoercion(value) {
|
|
689
|
-
try {
|
|
690
|
-
testStringCoercion(value);
|
|
691
|
-
var JSCompiler_inline_result = !1;
|
|
692
|
-
} catch (e) {
|
|
693
|
-
JSCompiler_inline_result = true;
|
|
694
|
-
}
|
|
695
|
-
if (JSCompiler_inline_result) {
|
|
696
|
-
JSCompiler_inline_result = console;
|
|
697
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
698
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
699
|
-
("function" === typeof Symbol &&
|
|
700
|
-
Symbol.toStringTag &&
|
|
701
|
-
value[Symbol.toStringTag]) ||
|
|
702
|
-
value.constructor.name ||
|
|
703
|
-
"Object";
|
|
704
|
-
JSCompiler_temp_const.call(
|
|
705
|
-
JSCompiler_inline_result,
|
|
706
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
707
|
-
JSCompiler_inline_result$jscomp$0
|
|
708
|
-
);
|
|
709
|
-
return testStringCoercion(value);
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
function getComponentNameFromType(type) {
|
|
713
|
-
if (null == type) return null;
|
|
714
|
-
if ("function" === typeof type)
|
|
715
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
716
|
-
? null
|
|
717
|
-
: type.displayName || type.name || null;
|
|
718
|
-
if ("string" === typeof type) return type;
|
|
719
|
-
switch (type) {
|
|
720
|
-
case REACT_FRAGMENT_TYPE:
|
|
721
|
-
return "Fragment";
|
|
722
|
-
case REACT_PROFILER_TYPE:
|
|
723
|
-
return "Profiler";
|
|
724
|
-
case REACT_STRICT_MODE_TYPE:
|
|
725
|
-
return "StrictMode";
|
|
726
|
-
case REACT_SUSPENSE_TYPE:
|
|
727
|
-
return "Suspense";
|
|
728
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
729
|
-
return "SuspenseList";
|
|
730
|
-
case REACT_ACTIVITY_TYPE:
|
|
731
|
-
return "Activity";
|
|
732
|
-
}
|
|
733
|
-
if ("object" === typeof type)
|
|
734
|
-
switch (
|
|
735
|
-
("number" === typeof type.tag &&
|
|
736
|
-
console.error(
|
|
737
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
738
|
-
),
|
|
739
|
-
type.$$typeof)
|
|
740
|
-
) {
|
|
741
|
-
case REACT_PORTAL_TYPE:
|
|
742
|
-
return "Portal";
|
|
743
|
-
case REACT_CONTEXT_TYPE:
|
|
744
|
-
return type.displayName || "Context";
|
|
745
|
-
case REACT_CONSUMER_TYPE:
|
|
746
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
747
|
-
case REACT_FORWARD_REF_TYPE:
|
|
748
|
-
var innerType = type.render;
|
|
749
|
-
type = type.displayName;
|
|
750
|
-
type ||
|
|
751
|
-
((type = innerType.displayName || innerType.name || ""),
|
|
752
|
-
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
753
|
-
return type;
|
|
754
|
-
case REACT_MEMO_TYPE:
|
|
755
|
-
return (
|
|
756
|
-
(innerType = type.displayName || null),
|
|
757
|
-
null !== innerType
|
|
758
|
-
? innerType
|
|
759
|
-
: getComponentNameFromType(type.type) || "Memo"
|
|
760
|
-
);
|
|
761
|
-
case REACT_LAZY_TYPE:
|
|
762
|
-
innerType = type._payload;
|
|
763
|
-
type = type._init;
|
|
764
|
-
try {
|
|
765
|
-
return getComponentNameFromType(type(innerType));
|
|
766
|
-
} catch (x) {}
|
|
767
|
-
}
|
|
768
|
-
return null;
|
|
769
|
-
}
|
|
770
|
-
function getTaskName(type) {
|
|
771
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
772
|
-
if (
|
|
773
|
-
"object" === typeof type &&
|
|
774
|
-
null !== type &&
|
|
775
|
-
type.$$typeof === REACT_LAZY_TYPE
|
|
776
|
-
)
|
|
777
|
-
return "<...>";
|
|
778
|
-
try {
|
|
779
|
-
var name = getComponentNameFromType(type);
|
|
780
|
-
return name ? "<" + name + ">" : "<...>";
|
|
781
|
-
} catch (x) {
|
|
782
|
-
return "<...>";
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
function getOwner() {
|
|
786
|
-
var dispatcher = ReactSharedInternals.A;
|
|
787
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
788
|
-
}
|
|
789
|
-
function UnknownOwner() {
|
|
790
|
-
return Error("react-stack-top-frame");
|
|
791
|
-
}
|
|
792
|
-
function hasValidKey(config) {
|
|
793
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
794
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
795
|
-
if (getter && getter.isReactWarning) return false;
|
|
796
|
-
}
|
|
797
|
-
return void 0 !== config.key;
|
|
798
|
-
}
|
|
799
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
800
|
-
function warnAboutAccessingKey() {
|
|
801
|
-
specialPropKeyWarningShown ||
|
|
802
|
-
((specialPropKeyWarningShown = true),
|
|
803
|
-
console.error(
|
|
804
|
-
"%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://react.dev/link/special-props)",
|
|
805
|
-
displayName
|
|
806
|
-
));
|
|
807
|
-
}
|
|
808
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
809
|
-
Object.defineProperty(props, "key", {
|
|
810
|
-
get: warnAboutAccessingKey,
|
|
811
|
-
configurable: true
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
815
|
-
var componentName = getComponentNameFromType(this.type);
|
|
816
|
-
didWarnAboutElementRef[componentName] ||
|
|
817
|
-
((didWarnAboutElementRef[componentName] = true),
|
|
818
|
-
console.error(
|
|
819
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
820
|
-
));
|
|
821
|
-
componentName = this.props.ref;
|
|
822
|
-
return void 0 !== componentName ? componentName : null;
|
|
823
|
-
}
|
|
824
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
825
|
-
var refProp = props.ref;
|
|
826
|
-
type = {
|
|
827
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
828
|
-
type: type,
|
|
829
|
-
key: key,
|
|
830
|
-
props: props,
|
|
831
|
-
_owner: owner
|
|
832
|
-
};
|
|
833
|
-
null !== (void 0 !== refProp ? refProp : null)
|
|
834
|
-
? Object.defineProperty(type, "ref", {
|
|
835
|
-
enumerable: false,
|
|
836
|
-
get: elementRefGetterWithDeprecationWarning
|
|
837
|
-
})
|
|
838
|
-
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
839
|
-
type._store = {};
|
|
840
|
-
Object.defineProperty(type._store, "validated", {
|
|
841
|
-
configurable: false,
|
|
842
|
-
enumerable: false,
|
|
843
|
-
writable: true,
|
|
844
|
-
value: 0
|
|
845
|
-
});
|
|
846
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
847
|
-
configurable: false,
|
|
848
|
-
enumerable: false,
|
|
849
|
-
writable: true,
|
|
850
|
-
value: null
|
|
851
|
-
});
|
|
852
|
-
Object.defineProperty(type, "_debugStack", {
|
|
853
|
-
configurable: false,
|
|
854
|
-
enumerable: false,
|
|
855
|
-
writable: true,
|
|
856
|
-
value: debugStack
|
|
857
|
-
});
|
|
858
|
-
Object.defineProperty(type, "_debugTask", {
|
|
859
|
-
configurable: false,
|
|
860
|
-
enumerable: false,
|
|
861
|
-
writable: true,
|
|
862
|
-
value: debugTask
|
|
863
|
-
});
|
|
864
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
865
|
-
return type;
|
|
866
|
-
}
|
|
867
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
868
|
-
newKey = ReactElement(
|
|
869
|
-
oldElement.type,
|
|
870
|
-
newKey,
|
|
871
|
-
oldElement.props,
|
|
872
|
-
oldElement._owner,
|
|
873
|
-
oldElement._debugStack,
|
|
874
|
-
oldElement._debugTask
|
|
875
|
-
);
|
|
876
|
-
oldElement._store &&
|
|
877
|
-
(newKey._store.validated = oldElement._store.validated);
|
|
878
|
-
return newKey;
|
|
879
|
-
}
|
|
880
|
-
function validateChildKeys(node) {
|
|
881
|
-
isValidElement(node)
|
|
882
|
-
? node._store && (node._store.validated = 1)
|
|
883
|
-
: "object" === typeof node &&
|
|
884
|
-
null !== node &&
|
|
885
|
-
node.$$typeof === REACT_LAZY_TYPE &&
|
|
886
|
-
("fulfilled" === node._payload.status
|
|
887
|
-
? isValidElement(node._payload.value) &&
|
|
888
|
-
node._payload.value._store &&
|
|
889
|
-
(node._payload.value._store.validated = 1)
|
|
890
|
-
: node._store && (node._store.validated = 1));
|
|
891
|
-
}
|
|
892
|
-
function isValidElement(object) {
|
|
893
|
-
return (
|
|
894
|
-
"object" === typeof object &&
|
|
895
|
-
null !== object &&
|
|
896
|
-
object.$$typeof === REACT_ELEMENT_TYPE
|
|
897
|
-
);
|
|
898
|
-
}
|
|
899
|
-
function escape(key) {
|
|
900
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
901
|
-
return (
|
|
902
|
-
"$" +
|
|
903
|
-
key.replace(/[=:]/g, function (match) {
|
|
904
|
-
return escaperLookup[match];
|
|
905
|
-
})
|
|
906
|
-
);
|
|
907
|
-
}
|
|
908
|
-
function getElementKey(element, index) {
|
|
909
|
-
return "object" === typeof element &&
|
|
910
|
-
null !== element &&
|
|
911
|
-
null != element.key
|
|
912
|
-
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
|
913
|
-
: index.toString(36);
|
|
914
|
-
}
|
|
915
|
-
function resolveThenable(thenable) {
|
|
916
|
-
switch (thenable.status) {
|
|
917
|
-
case "fulfilled":
|
|
918
|
-
return thenable.value;
|
|
919
|
-
case "rejected":
|
|
920
|
-
throw thenable.reason;
|
|
921
|
-
default:
|
|
922
|
-
switch (
|
|
923
|
-
("string" === typeof thenable.status
|
|
924
|
-
? thenable.then(noop, noop)
|
|
925
|
-
: ((thenable.status = "pending"),
|
|
926
|
-
thenable.then(
|
|
927
|
-
function (fulfilledValue) {
|
|
928
|
-
"pending" === thenable.status &&
|
|
929
|
-
((thenable.status = "fulfilled"),
|
|
930
|
-
(thenable.value = fulfilledValue));
|
|
931
|
-
},
|
|
932
|
-
function (error) {
|
|
933
|
-
"pending" === thenable.status &&
|
|
934
|
-
((thenable.status = "rejected"),
|
|
935
|
-
(thenable.reason = error));
|
|
936
|
-
}
|
|
937
|
-
)),
|
|
938
|
-
thenable.status)
|
|
939
|
-
) {
|
|
940
|
-
case "fulfilled":
|
|
941
|
-
return thenable.value;
|
|
942
|
-
case "rejected":
|
|
943
|
-
throw thenable.reason;
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
throw thenable;
|
|
947
|
-
}
|
|
948
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
949
|
-
var type = typeof children;
|
|
950
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
951
|
-
var invokeCallback = false;
|
|
952
|
-
if (null === children) invokeCallback = true;
|
|
953
|
-
else
|
|
954
|
-
switch (type) {
|
|
955
|
-
case "bigint":
|
|
956
|
-
case "string":
|
|
957
|
-
case "number":
|
|
958
|
-
invokeCallback = true;
|
|
959
|
-
break;
|
|
960
|
-
case "object":
|
|
961
|
-
switch (children.$$typeof) {
|
|
962
|
-
case REACT_ELEMENT_TYPE:
|
|
963
|
-
case REACT_PORTAL_TYPE:
|
|
964
|
-
invokeCallback = true;
|
|
965
|
-
break;
|
|
966
|
-
case REACT_LAZY_TYPE:
|
|
967
|
-
return (
|
|
968
|
-
(invokeCallback = children._init),
|
|
969
|
-
mapIntoArray(
|
|
970
|
-
invokeCallback(children._payload),
|
|
971
|
-
array,
|
|
972
|
-
escapedPrefix,
|
|
973
|
-
nameSoFar,
|
|
974
|
-
callback
|
|
975
|
-
)
|
|
976
|
-
);
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
if (invokeCallback) {
|
|
980
|
-
invokeCallback = children;
|
|
981
|
-
callback = callback(invokeCallback);
|
|
982
|
-
var childKey =
|
|
983
|
-
"" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
984
|
-
isArrayImpl(callback)
|
|
985
|
-
? ((escapedPrefix = ""),
|
|
986
|
-
null != childKey &&
|
|
987
|
-
(escapedPrefix =
|
|
988
|
-
childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
989
|
-
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
990
|
-
return c;
|
|
991
|
-
}))
|
|
992
|
-
: null != callback &&
|
|
993
|
-
(isValidElement(callback) &&
|
|
994
|
-
(null != callback.key &&
|
|
995
|
-
((invokeCallback && invokeCallback.key === callback.key) ||
|
|
996
|
-
checkKeyStringCoercion(callback.key)),
|
|
997
|
-
(escapedPrefix = cloneAndReplaceKey(
|
|
998
|
-
callback,
|
|
999
|
-
escapedPrefix +
|
|
1000
|
-
(null == callback.key ||
|
|
1001
|
-
(invokeCallback && invokeCallback.key === callback.key)
|
|
1002
|
-
? ""
|
|
1003
|
-
: ("" + callback.key).replace(
|
|
1004
|
-
userProvidedKeyEscapeRegex,
|
|
1005
|
-
"$&/"
|
|
1006
|
-
) + "/") +
|
|
1007
|
-
childKey
|
|
1008
|
-
)),
|
|
1009
|
-
"" !== nameSoFar &&
|
|
1010
|
-
null != invokeCallback &&
|
|
1011
|
-
isValidElement(invokeCallback) &&
|
|
1012
|
-
null == invokeCallback.key &&
|
|
1013
|
-
invokeCallback._store &&
|
|
1014
|
-
!invokeCallback._store.validated &&
|
|
1015
|
-
(escapedPrefix._store.validated = 2),
|
|
1016
|
-
(callback = escapedPrefix)),
|
|
1017
|
-
array.push(callback));
|
|
1018
|
-
return 1;
|
|
1019
|
-
}
|
|
1020
|
-
invokeCallback = 0;
|
|
1021
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
1022
|
-
if (isArrayImpl(children))
|
|
1023
|
-
for (var i = 0; i < children.length; i++)
|
|
1024
|
-
(nameSoFar = children[i]),
|
|
1025
|
-
(type = childKey + getElementKey(nameSoFar, i)),
|
|
1026
|
-
(invokeCallback += mapIntoArray(
|
|
1027
|
-
nameSoFar,
|
|
1028
|
-
array,
|
|
1029
|
-
escapedPrefix,
|
|
1030
|
-
type,
|
|
1031
|
-
callback
|
|
1032
|
-
));
|
|
1033
|
-
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
1034
|
-
for (
|
|
1035
|
-
i === children.entries &&
|
|
1036
|
-
(didWarnAboutMaps ||
|
|
1037
|
-
console.warn(
|
|
1038
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1039
|
-
),
|
|
1040
|
-
(didWarnAboutMaps = true)),
|
|
1041
|
-
children = i.call(children),
|
|
1042
|
-
i = 0;
|
|
1043
|
-
!(nameSoFar = children.next()).done;
|
|
1044
|
-
|
|
1045
|
-
)
|
|
1046
|
-
(nameSoFar = nameSoFar.value),
|
|
1047
|
-
(type = childKey + getElementKey(nameSoFar, i++)),
|
|
1048
|
-
(invokeCallback += mapIntoArray(
|
|
1049
|
-
nameSoFar,
|
|
1050
|
-
array,
|
|
1051
|
-
escapedPrefix,
|
|
1052
|
-
type,
|
|
1053
|
-
callback
|
|
1054
|
-
));
|
|
1055
|
-
else if ("object" === type) {
|
|
1056
|
-
if ("function" === typeof children.then)
|
|
1057
|
-
return mapIntoArray(
|
|
1058
|
-
resolveThenable(children),
|
|
1059
|
-
array,
|
|
1060
|
-
escapedPrefix,
|
|
1061
|
-
nameSoFar,
|
|
1062
|
-
callback
|
|
1063
|
-
);
|
|
1064
|
-
array = String(children);
|
|
1065
|
-
throw Error(
|
|
1066
|
-
"Objects are not valid as a React child (found: " +
|
|
1067
|
-
("[object Object]" === array
|
|
1068
|
-
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
1069
|
-
: array) +
|
|
1070
|
-
"). If you meant to render a collection of children, use an array instead."
|
|
1071
|
-
);
|
|
1072
|
-
}
|
|
1073
|
-
return invokeCallback;
|
|
1074
|
-
}
|
|
1075
|
-
function mapChildren(children, func, context) {
|
|
1076
|
-
if (null == children) return children;
|
|
1077
|
-
var result = [],
|
|
1078
|
-
count = 0;
|
|
1079
|
-
mapIntoArray(children, result, "", "", function (child) {
|
|
1080
|
-
return func.call(context, child, count++);
|
|
1081
|
-
});
|
|
1082
|
-
return result;
|
|
1083
|
-
}
|
|
1084
|
-
function lazyInitializer(payload) {
|
|
1085
|
-
if (-1 === payload._status) {
|
|
1086
|
-
var ioInfo = payload._ioInfo;
|
|
1087
|
-
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
1088
|
-
ioInfo = payload._result;
|
|
1089
|
-
var thenable = ioInfo();
|
|
1090
|
-
thenable.then(
|
|
1091
|
-
function (moduleObject) {
|
|
1092
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
1093
|
-
payload._status = 1;
|
|
1094
|
-
payload._result = moduleObject;
|
|
1095
|
-
var _ioInfo = payload._ioInfo;
|
|
1096
|
-
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
1097
|
-
void 0 === thenable.status &&
|
|
1098
|
-
((thenable.status = "fulfilled"),
|
|
1099
|
-
(thenable.value = moduleObject));
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
function (error) {
|
|
1103
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
1104
|
-
payload._status = 2;
|
|
1105
|
-
payload._result = error;
|
|
1106
|
-
var _ioInfo2 = payload._ioInfo;
|
|
1107
|
-
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
1108
|
-
void 0 === thenable.status &&
|
|
1109
|
-
((thenable.status = "rejected"), (thenable.reason = error));
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
);
|
|
1113
|
-
ioInfo = payload._ioInfo;
|
|
1114
|
-
if (null != ioInfo) {
|
|
1115
|
-
ioInfo.value = thenable;
|
|
1116
|
-
var displayName = thenable.displayName;
|
|
1117
|
-
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
1118
|
-
}
|
|
1119
|
-
-1 === payload._status &&
|
|
1120
|
-
((payload._status = 0), (payload._result = thenable));
|
|
1121
|
-
}
|
|
1122
|
-
if (1 === payload._status)
|
|
1123
|
-
return (
|
|
1124
|
-
(ioInfo = payload._result),
|
|
1125
|
-
void 0 === ioInfo &&
|
|
1126
|
-
console.error(
|
|
1127
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
1128
|
-
ioInfo
|
|
1129
|
-
),
|
|
1130
|
-
"default" in ioInfo ||
|
|
1131
|
-
console.error(
|
|
1132
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
1133
|
-
ioInfo
|
|
1134
|
-
),
|
|
1135
|
-
ioInfo.default
|
|
1136
|
-
);
|
|
1137
|
-
throw payload._result;
|
|
1138
|
-
}
|
|
1139
|
-
function resolveDispatcher() {
|
|
1140
|
-
var dispatcher = ReactSharedInternals.H;
|
|
1141
|
-
null === dispatcher &&
|
|
1142
|
-
console.error(
|
|
1143
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
1144
|
-
);
|
|
1145
|
-
return dispatcher;
|
|
1146
|
-
}
|
|
1147
|
-
function releaseAsyncTransition() {
|
|
1148
|
-
ReactSharedInternals.asyncTransitions--;
|
|
1149
|
-
}
|
|
1150
|
-
function enqueueTask(task) {
|
|
1151
|
-
if (null === enqueueTaskImpl)
|
|
1152
|
-
try {
|
|
1153
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1154
|
-
enqueueTaskImpl = (module && module[requireString]).call(
|
|
1155
|
-
module,
|
|
1156
|
-
"timers"
|
|
1157
|
-
).setImmediate;
|
|
1158
|
-
} catch (_err) {
|
|
1159
|
-
enqueueTaskImpl = function (callback) {
|
|
1160
|
-
false === didWarnAboutMessageChannel &&
|
|
1161
|
-
((didWarnAboutMessageChannel = true),
|
|
1162
|
-
"undefined" === typeof MessageChannel &&
|
|
1163
|
-
console.error(
|
|
1164
|
-
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
1165
|
-
));
|
|
1166
|
-
var channel = new MessageChannel();
|
|
1167
|
-
channel.port1.onmessage = callback;
|
|
1168
|
-
channel.port2.postMessage(void 0);
|
|
1169
|
-
};
|
|
1170
|
-
}
|
|
1171
|
-
return enqueueTaskImpl(task);
|
|
1172
|
-
}
|
|
1173
|
-
function aggregateErrors(errors) {
|
|
1174
|
-
return 1 < errors.length && "function" === typeof AggregateError
|
|
1175
|
-
? new AggregateError(errors)
|
|
1176
|
-
: errors[0];
|
|
1177
|
-
}
|
|
1178
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
1179
|
-
prevActScopeDepth !== actScopeDepth - 1 &&
|
|
1180
|
-
console.error(
|
|
1181
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1182
|
-
);
|
|
1183
|
-
actScopeDepth = prevActScopeDepth;
|
|
1184
|
-
}
|
|
1185
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
1186
|
-
var queue = ReactSharedInternals.actQueue;
|
|
1187
|
-
if (null !== queue)
|
|
1188
|
-
if (0 !== queue.length)
|
|
1189
|
-
try {
|
|
1190
|
-
flushActQueue(queue);
|
|
1191
|
-
enqueueTask(function () {
|
|
1192
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
1193
|
-
});
|
|
1194
|
-
return;
|
|
1195
|
-
} catch (error) {
|
|
1196
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1197
|
-
}
|
|
1198
|
-
else ReactSharedInternals.actQueue = null;
|
|
1199
|
-
0 < ReactSharedInternals.thrownErrors.length
|
|
1200
|
-
? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
1201
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1202
|
-
reject(queue))
|
|
1203
|
-
: resolve(returnValue);
|
|
1204
|
-
}
|
|
1205
|
-
function flushActQueue(queue) {
|
|
1206
|
-
if (!isFlushing) {
|
|
1207
|
-
isFlushing = true;
|
|
1208
|
-
var i = 0;
|
|
1209
|
-
try {
|
|
1210
|
-
for (; i < queue.length; i++) {
|
|
1211
|
-
var callback = queue[i];
|
|
1212
|
-
do {
|
|
1213
|
-
ReactSharedInternals.didUsePromise = !1;
|
|
1214
|
-
var continuation = callback(!1);
|
|
1215
|
-
if (null !== continuation) {
|
|
1216
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
1217
|
-
queue[i] = callback;
|
|
1218
|
-
queue.splice(0, i);
|
|
1219
|
-
return;
|
|
1220
|
-
}
|
|
1221
|
-
callback = continuation;
|
|
1222
|
-
} else break;
|
|
1223
|
-
} while (1);
|
|
1224
|
-
}
|
|
1225
|
-
queue.length = 0;
|
|
1226
|
-
} catch (error) {
|
|
1227
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
1228
|
-
} finally {
|
|
1229
|
-
isFlushing = false;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
1234
|
-
"function" ===
|
|
1235
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
1236
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1237
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
1238
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
1239
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
1240
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
1241
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
1242
|
-
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
1243
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
1244
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
1245
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
1246
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
1247
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
1248
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
1249
|
-
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
1250
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
1251
|
-
didWarnStateUpdateForUnmountedComponent = {},
|
|
1252
|
-
ReactNoopUpdateQueue = {
|
|
1253
|
-
isMounted: function () {
|
|
1254
|
-
return false;
|
|
1255
|
-
},
|
|
1256
|
-
enqueueForceUpdate: function (publicInstance) {
|
|
1257
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
1258
|
-
},
|
|
1259
|
-
enqueueReplaceState: function (publicInstance) {
|
|
1260
|
-
warnNoop(publicInstance, "replaceState");
|
|
1261
|
-
},
|
|
1262
|
-
enqueueSetState: function (publicInstance) {
|
|
1263
|
-
warnNoop(publicInstance, "setState");
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
assign = Object.assign,
|
|
1267
|
-
emptyObject = {};
|
|
1268
|
-
Object.freeze(emptyObject);
|
|
1269
|
-
Component.prototype.isReactComponent = {};
|
|
1270
|
-
Component.prototype.setState = function (partialState, callback) {
|
|
1271
|
-
if (
|
|
1272
|
-
"object" !== typeof partialState &&
|
|
1273
|
-
"function" !== typeof partialState &&
|
|
1274
|
-
null != partialState
|
|
1275
|
-
)
|
|
1276
|
-
throw Error(
|
|
1277
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1278
|
-
);
|
|
1279
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1280
|
-
};
|
|
1281
|
-
Component.prototype.forceUpdate = function (callback) {
|
|
1282
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1283
|
-
};
|
|
1284
|
-
var deprecatedAPIs = {
|
|
1285
|
-
isMounted: [
|
|
1286
|
-
"isMounted",
|
|
1287
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1288
|
-
],
|
|
1289
|
-
replaceState: [
|
|
1290
|
-
"replaceState",
|
|
1291
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1292
|
-
]
|
|
1293
|
-
};
|
|
1294
|
-
for (fnName in deprecatedAPIs)
|
|
1295
|
-
deprecatedAPIs.hasOwnProperty(fnName) &&
|
|
1296
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1297
|
-
ComponentDummy.prototype = Component.prototype;
|
|
1298
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1299
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
1300
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
1301
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
1302
|
-
var isArrayImpl = Array.isArray,
|
|
1303
|
-
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
1304
|
-
ReactSharedInternals = {
|
|
1305
|
-
H: null,
|
|
1306
|
-
A: null,
|
|
1307
|
-
T: null,
|
|
1308
|
-
S: null,
|
|
1309
|
-
actQueue: null,
|
|
1310
|
-
asyncTransitions: 0,
|
|
1311
|
-
isBatchingLegacy: false,
|
|
1312
|
-
didScheduleLegacyUpdate: false,
|
|
1313
|
-
didUsePromise: false,
|
|
1314
|
-
thrownErrors: [],
|
|
1315
|
-
getCurrentStack: null,
|
|
1316
|
-
recentlyCreatedOwnerStacks: 0
|
|
1317
|
-
},
|
|
1318
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
1319
|
-
createTask = console.createTask
|
|
1320
|
-
? console.createTask
|
|
1321
|
-
: function () {
|
|
1322
|
-
return null;
|
|
1323
|
-
};
|
|
1324
|
-
deprecatedAPIs = {
|
|
1325
|
-
react_stack_bottom_frame: function (callStackForError) {
|
|
1326
|
-
return callStackForError();
|
|
1327
|
-
}
|
|
1328
|
-
};
|
|
1329
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1330
|
-
var didWarnAboutElementRef = {};
|
|
1331
|
-
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
1332
|
-
deprecatedAPIs,
|
|
1333
|
-
UnknownOwner
|
|
1334
|
-
)();
|
|
1335
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1336
|
-
var didWarnAboutMaps = false,
|
|
1337
|
-
userProvidedKeyEscapeRegex = /\/+/g,
|
|
1338
|
-
reportGlobalError =
|
|
1339
|
-
"function" === typeof reportError
|
|
1340
|
-
? reportError
|
|
1341
|
-
: function (error) {
|
|
1342
|
-
if (
|
|
1343
|
-
"object" === typeof window &&
|
|
1344
|
-
"function" === typeof window.ErrorEvent
|
|
1345
|
-
) {
|
|
1346
|
-
var event = new window.ErrorEvent("error", {
|
|
1347
|
-
bubbles: true,
|
|
1348
|
-
cancelable: true,
|
|
1349
|
-
message:
|
|
1350
|
-
"object" === typeof error &&
|
|
1351
|
-
null !== error &&
|
|
1352
|
-
"string" === typeof error.message
|
|
1353
|
-
? String(error.message)
|
|
1354
|
-
: String(error),
|
|
1355
|
-
error: error
|
|
1356
|
-
});
|
|
1357
|
-
if (!window.dispatchEvent(event)) return;
|
|
1358
|
-
} else if (
|
|
1359
|
-
"object" === typeof process &&
|
|
1360
|
-
"function" === typeof process.emit
|
|
1361
|
-
) {
|
|
1362
|
-
process.emit("uncaughtException", error);
|
|
1363
|
-
return;
|
|
1364
|
-
}
|
|
1365
|
-
console.error(error);
|
|
1366
|
-
},
|
|
1367
|
-
didWarnAboutMessageChannel = false,
|
|
1368
|
-
enqueueTaskImpl = null,
|
|
1369
|
-
actScopeDepth = 0,
|
|
1370
|
-
didWarnNoAwaitAct = false,
|
|
1371
|
-
isFlushing = false,
|
|
1372
|
-
queueSeveralMicrotasks =
|
|
1373
|
-
"function" === typeof queueMicrotask
|
|
1374
|
-
? function (callback) {
|
|
1375
|
-
queueMicrotask(function () {
|
|
1376
|
-
return queueMicrotask(callback);
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
: enqueueTask;
|
|
1380
|
-
deprecatedAPIs = Object.freeze({
|
|
1381
|
-
__proto__: null,
|
|
1382
|
-
c: function (size) {
|
|
1383
|
-
return resolveDispatcher().useMemoCache(size);
|
|
1384
|
-
}
|
|
1385
|
-
});
|
|
1386
|
-
var fnName = {
|
|
1387
|
-
map: mapChildren,
|
|
1388
|
-
forEach: function (children, forEachFunc, forEachContext) {
|
|
1389
|
-
mapChildren(
|
|
1390
|
-
children,
|
|
1391
|
-
function () {
|
|
1392
|
-
forEachFunc.apply(this, arguments);
|
|
1393
|
-
},
|
|
1394
|
-
forEachContext
|
|
1395
|
-
);
|
|
1396
|
-
},
|
|
1397
|
-
count: function (children) {
|
|
1398
|
-
var n = 0;
|
|
1399
|
-
mapChildren(children, function () {
|
|
1400
|
-
n++;
|
|
1401
|
-
});
|
|
1402
|
-
return n;
|
|
1403
|
-
},
|
|
1404
|
-
toArray: function (children) {
|
|
1405
|
-
return (
|
|
1406
|
-
mapChildren(children, function (child) {
|
|
1407
|
-
return child;
|
|
1408
|
-
}) || []
|
|
1409
|
-
);
|
|
1410
|
-
},
|
|
1411
|
-
only: function (children) {
|
|
1412
|
-
if (!isValidElement(children))
|
|
1413
|
-
throw Error(
|
|
1414
|
-
"React.Children.only expected to receive a single React element child."
|
|
1415
|
-
);
|
|
1416
|
-
return children;
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
1420
|
-
exports.Children = fnName;
|
|
1421
|
-
exports.Component = Component;
|
|
1422
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1423
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1424
|
-
exports.PureComponent = PureComponent;
|
|
1425
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1426
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1427
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
1428
|
-
ReactSharedInternals;
|
|
1429
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1430
|
-
exports.act = function (callback) {
|
|
1431
|
-
var prevActQueue = ReactSharedInternals.actQueue,
|
|
1432
|
-
prevActScopeDepth = actScopeDepth;
|
|
1433
|
-
actScopeDepth++;
|
|
1434
|
-
var queue = (ReactSharedInternals.actQueue =
|
|
1435
|
-
null !== prevActQueue ? prevActQueue : []),
|
|
1436
|
-
didAwaitActCall = false;
|
|
1437
|
-
try {
|
|
1438
|
-
var result = callback();
|
|
1439
|
-
} catch (error) {
|
|
1440
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1441
|
-
}
|
|
1442
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1443
|
-
throw (
|
|
1444
|
-
(popActScope(prevActQueue, prevActScopeDepth),
|
|
1445
|
-
(callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
1446
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1447
|
-
callback)
|
|
1448
|
-
);
|
|
1449
|
-
if (
|
|
1450
|
-
null !== result &&
|
|
1451
|
-
"object" === typeof result &&
|
|
1452
|
-
"function" === typeof result.then
|
|
1453
|
-
) {
|
|
1454
|
-
var thenable = result;
|
|
1455
|
-
queueSeveralMicrotasks(function () {
|
|
1456
|
-
didAwaitActCall ||
|
|
1457
|
-
didWarnNoAwaitAct ||
|
|
1458
|
-
((didWarnNoAwaitAct = true),
|
|
1459
|
-
console.error(
|
|
1460
|
-
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1461
|
-
));
|
|
1462
|
-
});
|
|
1463
|
-
return {
|
|
1464
|
-
then: function (resolve, reject) {
|
|
1465
|
-
didAwaitActCall = true;
|
|
1466
|
-
thenable.then(
|
|
1467
|
-
function (returnValue) {
|
|
1468
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1469
|
-
if (0 === prevActScopeDepth) {
|
|
1470
|
-
try {
|
|
1471
|
-
flushActQueue(queue),
|
|
1472
|
-
enqueueTask(function () {
|
|
1473
|
-
return recursivelyFlushAsyncActWork(
|
|
1474
|
-
returnValue,
|
|
1475
|
-
resolve,
|
|
1476
|
-
reject
|
|
1477
|
-
);
|
|
1478
|
-
});
|
|
1479
|
-
} catch (error$0) {
|
|
1480
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1481
|
-
}
|
|
1482
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1483
|
-
var _thrownError = aggregateErrors(
|
|
1484
|
-
ReactSharedInternals.thrownErrors
|
|
1485
|
-
);
|
|
1486
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
1487
|
-
reject(_thrownError);
|
|
1488
|
-
}
|
|
1489
|
-
} else resolve(returnValue);
|
|
1490
|
-
},
|
|
1491
|
-
function (error) {
|
|
1492
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1493
|
-
0 < ReactSharedInternals.thrownErrors.length
|
|
1494
|
-
? ((error = aggregateErrors(
|
|
1495
|
-
ReactSharedInternals.thrownErrors
|
|
1496
|
-
)),
|
|
1497
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1498
|
-
reject(error))
|
|
1499
|
-
: reject(error);
|
|
1500
|
-
}
|
|
1501
|
-
);
|
|
1502
|
-
}
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
var returnValue$jscomp$0 = result;
|
|
1506
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1507
|
-
0 === prevActScopeDepth &&
|
|
1508
|
-
(flushActQueue(queue),
|
|
1509
|
-
0 !== queue.length &&
|
|
1510
|
-
queueSeveralMicrotasks(function () {
|
|
1511
|
-
didAwaitActCall ||
|
|
1512
|
-
didWarnNoAwaitAct ||
|
|
1513
|
-
((didWarnNoAwaitAct = true),
|
|
1514
|
-
console.error(
|
|
1515
|
-
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1516
|
-
));
|
|
1517
|
-
}),
|
|
1518
|
-
(ReactSharedInternals.actQueue = null));
|
|
1519
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1520
|
-
throw (
|
|
1521
|
-
((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
1522
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1523
|
-
callback)
|
|
1524
|
-
);
|
|
1525
|
-
return {
|
|
1526
|
-
then: function (resolve, reject) {
|
|
1527
|
-
didAwaitActCall = true;
|
|
1528
|
-
0 === prevActScopeDepth
|
|
1529
|
-
? ((ReactSharedInternals.actQueue = queue),
|
|
1530
|
-
enqueueTask(function () {
|
|
1531
|
-
return recursivelyFlushAsyncActWork(
|
|
1532
|
-
returnValue$jscomp$0,
|
|
1533
|
-
resolve,
|
|
1534
|
-
reject
|
|
1535
|
-
);
|
|
1536
|
-
}))
|
|
1537
|
-
: resolve(returnValue$jscomp$0);
|
|
1538
|
-
}
|
|
1539
|
-
};
|
|
1540
|
-
};
|
|
1541
|
-
exports.cache = function (fn) {
|
|
1542
|
-
return function () {
|
|
1543
|
-
return fn.apply(null, arguments);
|
|
1544
|
-
};
|
|
1545
|
-
};
|
|
1546
|
-
exports.cacheSignal = function () {
|
|
1547
|
-
return null;
|
|
1548
|
-
};
|
|
1549
|
-
exports.captureOwnerStack = function () {
|
|
1550
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1551
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1552
|
-
};
|
|
1553
|
-
exports.cloneElement = function (element, config, children) {
|
|
1554
|
-
if (null === element || void 0 === element)
|
|
1555
|
-
throw Error(
|
|
1556
|
-
"The argument must be a React element, but you passed " +
|
|
1557
|
-
element +
|
|
1558
|
-
"."
|
|
1559
|
-
);
|
|
1560
|
-
var props = assign({}, element.props),
|
|
1561
|
-
key = element.key,
|
|
1562
|
-
owner = element._owner;
|
|
1563
|
-
if (null != config) {
|
|
1564
|
-
var JSCompiler_inline_result;
|
|
1565
|
-
a: {
|
|
1566
|
-
if (
|
|
1567
|
-
hasOwnProperty.call(config, "ref") &&
|
|
1568
|
-
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1569
|
-
config,
|
|
1570
|
-
"ref"
|
|
1571
|
-
).get) &&
|
|
1572
|
-
JSCompiler_inline_result.isReactWarning
|
|
1573
|
-
) {
|
|
1574
|
-
JSCompiler_inline_result = false;
|
|
1575
|
-
break a;
|
|
1576
|
-
}
|
|
1577
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1578
|
-
}
|
|
1579
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1580
|
-
hasValidKey(config) &&
|
|
1581
|
-
(checkKeyStringCoercion(config.key), (key = "" + config.key));
|
|
1582
|
-
for (propName in config)
|
|
1583
|
-
!hasOwnProperty.call(config, propName) ||
|
|
1584
|
-
"key" === propName ||
|
|
1585
|
-
"__self" === propName ||
|
|
1586
|
-
"__source" === propName ||
|
|
1587
|
-
("ref" === propName && void 0 === config.ref) ||
|
|
1588
|
-
(props[propName] = config[propName]);
|
|
1589
|
-
}
|
|
1590
|
-
var propName = arguments.length - 2;
|
|
1591
|
-
if (1 === propName) props.children = children;
|
|
1592
|
-
else if (1 < propName) {
|
|
1593
|
-
JSCompiler_inline_result = Array(propName);
|
|
1594
|
-
for (var i = 0; i < propName; i++)
|
|
1595
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1596
|
-
props.children = JSCompiler_inline_result;
|
|
1597
|
-
}
|
|
1598
|
-
props = ReactElement(
|
|
1599
|
-
element.type,
|
|
1600
|
-
key,
|
|
1601
|
-
props,
|
|
1602
|
-
owner,
|
|
1603
|
-
element._debugStack,
|
|
1604
|
-
element._debugTask
|
|
1605
|
-
);
|
|
1606
|
-
for (key = 2; key < arguments.length; key++)
|
|
1607
|
-
validateChildKeys(arguments[key]);
|
|
1608
|
-
return props;
|
|
1609
|
-
};
|
|
1610
|
-
exports.createContext = function (defaultValue) {
|
|
1611
|
-
defaultValue = {
|
|
1612
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1613
|
-
_currentValue: defaultValue,
|
|
1614
|
-
_currentValue2: defaultValue,
|
|
1615
|
-
_threadCount: 0,
|
|
1616
|
-
Provider: null,
|
|
1617
|
-
Consumer: null
|
|
1618
|
-
};
|
|
1619
|
-
defaultValue.Provider = defaultValue;
|
|
1620
|
-
defaultValue.Consumer = {
|
|
1621
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1622
|
-
_context: defaultValue
|
|
1623
|
-
};
|
|
1624
|
-
defaultValue._currentRenderer = null;
|
|
1625
|
-
defaultValue._currentRenderer2 = null;
|
|
1626
|
-
return defaultValue;
|
|
1627
|
-
};
|
|
1628
|
-
exports.createElement = function (type, config, children) {
|
|
1629
|
-
for (var i = 2; i < arguments.length; i++)
|
|
1630
|
-
validateChildKeys(arguments[i]);
|
|
1631
|
-
i = {};
|
|
1632
|
-
var key = null;
|
|
1633
|
-
if (null != config)
|
|
1634
|
-
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
1635
|
-
!("__self" in config) ||
|
|
1636
|
-
"key" in config ||
|
|
1637
|
-
((didWarnAboutOldJSXRuntime = true),
|
|
1638
|
-
console.warn(
|
|
1639
|
-
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1640
|
-
)),
|
|
1641
|
-
hasValidKey(config) &&
|
|
1642
|
-
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
|
|
1643
|
-
config))
|
|
1644
|
-
hasOwnProperty.call(config, propName) &&
|
|
1645
|
-
"key" !== propName &&
|
|
1646
|
-
"__self" !== propName &&
|
|
1647
|
-
"__source" !== propName &&
|
|
1648
|
-
(i[propName] = config[propName]);
|
|
1649
|
-
var childrenLength = arguments.length - 2;
|
|
1650
|
-
if (1 === childrenLength) i.children = children;
|
|
1651
|
-
else if (1 < childrenLength) {
|
|
1652
|
-
for (
|
|
1653
|
-
var childArray = Array(childrenLength), _i = 0;
|
|
1654
|
-
_i < childrenLength;
|
|
1655
|
-
_i++
|
|
1656
|
-
)
|
|
1657
|
-
childArray[_i] = arguments[_i + 2];
|
|
1658
|
-
Object.freeze && Object.freeze(childArray);
|
|
1659
|
-
i.children = childArray;
|
|
1660
|
-
}
|
|
1661
|
-
if (type && type.defaultProps)
|
|
1662
|
-
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
1663
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1664
|
-
key &&
|
|
1665
|
-
defineKeyPropWarningGetter(
|
|
1666
|
-
i,
|
|
1667
|
-
"function" === typeof type
|
|
1668
|
-
? type.displayName || type.name || "Unknown"
|
|
1669
|
-
: type
|
|
1670
|
-
);
|
|
1671
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1672
|
-
return ReactElement(
|
|
1673
|
-
type,
|
|
1674
|
-
key,
|
|
1675
|
-
i,
|
|
1676
|
-
getOwner(),
|
|
1677
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1678
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1679
|
-
);
|
|
1680
|
-
};
|
|
1681
|
-
exports.createRef = function () {
|
|
1682
|
-
var refObject = { current: null };
|
|
1683
|
-
Object.seal(refObject);
|
|
1684
|
-
return refObject;
|
|
1685
|
-
};
|
|
1686
|
-
exports.forwardRef = function (render) {
|
|
1687
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE
|
|
1688
|
-
? console.error(
|
|
1689
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1690
|
-
)
|
|
1691
|
-
: "function" !== typeof render
|
|
1692
|
-
? console.error(
|
|
1693
|
-
"forwardRef requires a render function but was given %s.",
|
|
1694
|
-
null === render ? "null" : typeof render
|
|
1695
|
-
)
|
|
1696
|
-
: 0 !== render.length &&
|
|
1697
|
-
2 !== render.length &&
|
|
1698
|
-
console.error(
|
|
1699
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1700
|
-
1 === render.length
|
|
1701
|
-
? "Did you forget to use the ref parameter?"
|
|
1702
|
-
: "Any additional parameter will be undefined."
|
|
1703
|
-
);
|
|
1704
|
-
null != render &&
|
|
1705
|
-
null != render.defaultProps &&
|
|
1706
|
-
console.error(
|
|
1707
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1708
|
-
);
|
|
1709
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
|
|
1710
|
-
ownName;
|
|
1711
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1712
|
-
enumerable: false,
|
|
1713
|
-
configurable: true,
|
|
1714
|
-
get: function () {
|
|
1715
|
-
return ownName;
|
|
1716
|
-
},
|
|
1717
|
-
set: function (name) {
|
|
1718
|
-
ownName = name;
|
|
1719
|
-
render.name ||
|
|
1720
|
-
render.displayName ||
|
|
1721
|
-
(Object.defineProperty(render, "name", { value: name }),
|
|
1722
|
-
(render.displayName = name));
|
|
1723
|
-
}
|
|
1724
|
-
});
|
|
1725
|
-
return elementType;
|
|
1726
|
-
};
|
|
1727
|
-
exports.isValidElement = isValidElement;
|
|
1728
|
-
exports.lazy = function (ctor) {
|
|
1729
|
-
ctor = { _status: -1, _result: ctor };
|
|
1730
|
-
var lazyType = {
|
|
1731
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1732
|
-
_payload: ctor,
|
|
1733
|
-
_init: lazyInitializer
|
|
1734
|
-
},
|
|
1735
|
-
ioInfo = {
|
|
1736
|
-
name: "lazy",
|
|
1737
|
-
start: -1,
|
|
1738
|
-
end: -1,
|
|
1739
|
-
value: null,
|
|
1740
|
-
owner: null,
|
|
1741
|
-
debugStack: Error("react-stack-top-frame"),
|
|
1742
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1743
|
-
};
|
|
1744
|
-
ctor._ioInfo = ioInfo;
|
|
1745
|
-
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1746
|
-
return lazyType;
|
|
1747
|
-
};
|
|
1748
|
-
exports.memo = function (type, compare) {
|
|
1749
|
-
null == type &&
|
|
1750
|
-
console.error(
|
|
1751
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1752
|
-
null === type ? "null" : typeof type
|
|
1753
|
-
);
|
|
1754
|
-
compare = {
|
|
1755
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1756
|
-
type: type,
|
|
1757
|
-
compare: void 0 === compare ? null : compare
|
|
1758
|
-
};
|
|
1759
|
-
var ownName;
|
|
1760
|
-
Object.defineProperty(compare, "displayName", {
|
|
1761
|
-
enumerable: false,
|
|
1762
|
-
configurable: true,
|
|
1763
|
-
get: function () {
|
|
1764
|
-
return ownName;
|
|
1765
|
-
},
|
|
1766
|
-
set: function (name) {
|
|
1767
|
-
ownName = name;
|
|
1768
|
-
type.name ||
|
|
1769
|
-
type.displayName ||
|
|
1770
|
-
(Object.defineProperty(type, "name", { value: name }),
|
|
1771
|
-
(type.displayName = name));
|
|
1772
|
-
}
|
|
1773
|
-
});
|
|
1774
|
-
return compare;
|
|
1775
|
-
};
|
|
1776
|
-
exports.startTransition = function (scope) {
|
|
1777
|
-
var prevTransition = ReactSharedInternals.T,
|
|
1778
|
-
currentTransition = {};
|
|
1779
|
-
currentTransition._updatedFibers = new Set();
|
|
1780
|
-
ReactSharedInternals.T = currentTransition;
|
|
1781
|
-
try {
|
|
1782
|
-
var returnValue = scope(),
|
|
1783
|
-
onStartTransitionFinish = ReactSharedInternals.S;
|
|
1784
|
-
null !== onStartTransitionFinish &&
|
|
1785
|
-
onStartTransitionFinish(currentTransition, returnValue);
|
|
1786
|
-
"object" === typeof returnValue &&
|
|
1787
|
-
null !== returnValue &&
|
|
1788
|
-
"function" === typeof returnValue.then &&
|
|
1789
|
-
(ReactSharedInternals.asyncTransitions++,
|
|
1790
|
-
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
|
|
1791
|
-
returnValue.then(noop, reportGlobalError));
|
|
1792
|
-
} catch (error) {
|
|
1793
|
-
reportGlobalError(error);
|
|
1794
|
-
} finally {
|
|
1795
|
-
null === prevTransition &&
|
|
1796
|
-
currentTransition._updatedFibers &&
|
|
1797
|
-
((scope = currentTransition._updatedFibers.size),
|
|
1798
|
-
currentTransition._updatedFibers.clear(),
|
|
1799
|
-
10 < scope &&
|
|
1800
|
-
console.warn(
|
|
1801
|
-
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1802
|
-
)),
|
|
1803
|
-
null !== prevTransition &&
|
|
1804
|
-
null !== currentTransition.types &&
|
|
1805
|
-
(null !== prevTransition.types &&
|
|
1806
|
-
prevTransition.types !== currentTransition.types &&
|
|
1807
|
-
console.error(
|
|
1808
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1809
|
-
),
|
|
1810
|
-
(prevTransition.types = currentTransition.types)),
|
|
1811
|
-
(ReactSharedInternals.T = prevTransition);
|
|
1812
|
-
}
|
|
1813
|
-
};
|
|
1814
|
-
exports.unstable_useCacheRefresh = function () {
|
|
1815
|
-
return resolveDispatcher().useCacheRefresh();
|
|
1816
|
-
};
|
|
1817
|
-
exports.use = function (usable) {
|
|
1818
|
-
return resolveDispatcher().use(usable);
|
|
1819
|
-
};
|
|
1820
|
-
exports.useActionState = function (action, initialState, permalink) {
|
|
1821
|
-
return resolveDispatcher().useActionState(
|
|
1822
|
-
action,
|
|
1823
|
-
initialState,
|
|
1824
|
-
permalink
|
|
1825
|
-
);
|
|
1826
|
-
};
|
|
1827
|
-
exports.useCallback = function (callback, deps) {
|
|
1828
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1829
|
-
};
|
|
1830
|
-
exports.useContext = function (Context) {
|
|
1831
|
-
var dispatcher = resolveDispatcher();
|
|
1832
|
-
Context.$$typeof === REACT_CONSUMER_TYPE &&
|
|
1833
|
-
console.error(
|
|
1834
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1835
|
-
);
|
|
1836
|
-
return dispatcher.useContext(Context);
|
|
1837
|
-
};
|
|
1838
|
-
exports.useDebugValue = function (value, formatterFn) {
|
|
1839
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1840
|
-
};
|
|
1841
|
-
exports.useDeferredValue = function (value, initialValue) {
|
|
1842
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1843
|
-
};
|
|
1844
|
-
exports.useEffect = function (create, deps) {
|
|
1845
|
-
null == create &&
|
|
1846
|
-
console.warn(
|
|
1847
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1848
|
-
);
|
|
1849
|
-
return resolveDispatcher().useEffect(create, deps);
|
|
1850
|
-
};
|
|
1851
|
-
exports.useEffectEvent = function (callback) {
|
|
1852
|
-
return resolveDispatcher().useEffectEvent(callback);
|
|
1853
|
-
};
|
|
1854
|
-
exports.useId = function () {
|
|
1855
|
-
return resolveDispatcher().useId();
|
|
1856
|
-
};
|
|
1857
|
-
exports.useImperativeHandle = function (ref, create, deps) {
|
|
1858
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1859
|
-
};
|
|
1860
|
-
exports.useInsertionEffect = function (create, deps) {
|
|
1861
|
-
null == create &&
|
|
1862
|
-
console.warn(
|
|
1863
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1864
|
-
);
|
|
1865
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1866
|
-
};
|
|
1867
|
-
exports.useLayoutEffect = function (create, deps) {
|
|
1868
|
-
null == create &&
|
|
1869
|
-
console.warn(
|
|
1870
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1871
|
-
);
|
|
1872
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1873
|
-
};
|
|
1874
|
-
exports.useMemo = function (create, deps) {
|
|
1875
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1876
|
-
};
|
|
1877
|
-
exports.useOptimistic = function (passthrough, reducer) {
|
|
1878
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1879
|
-
};
|
|
1880
|
-
exports.useReducer = function (reducer, initialArg, init) {
|
|
1881
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1882
|
-
};
|
|
1883
|
-
exports.useRef = function (initialValue) {
|
|
1884
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1885
|
-
};
|
|
1886
|
-
exports.useState = function (initialState) {
|
|
1887
|
-
return resolveDispatcher().useState(initialState);
|
|
1888
|
-
};
|
|
1889
|
-
exports.useSyncExternalStore = function (
|
|
1890
|
-
subscribe,
|
|
1891
|
-
getSnapshot,
|
|
1892
|
-
getServerSnapshot
|
|
1893
|
-
) {
|
|
1894
|
-
return resolveDispatcher().useSyncExternalStore(
|
|
1895
|
-
subscribe,
|
|
1896
|
-
getSnapshot,
|
|
1897
|
-
getServerSnapshot
|
|
1898
|
-
);
|
|
1899
|
-
};
|
|
1900
|
-
exports.useTransition = function () {
|
|
1901
|
-
return resolveDispatcher().useTransition();
|
|
1902
|
-
};
|
|
1903
|
-
exports.version = "19.2.8";
|
|
1904
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
1905
|
-
"function" ===
|
|
1906
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
1907
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1908
|
-
})();
|
|
1909
|
-
} (react_development, react_development.exports));
|
|
1910
|
-
return react_development.exports;
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
629
|
var hasRequiredReact;
|
|
1914
630
|
|
|
1915
631
|
function requireReact () {
|
|
1916
632
|
if (hasRequiredReact) return react.exports;
|
|
1917
633
|
hasRequiredReact = 1;
|
|
1918
634
|
|
|
1919
|
-
|
|
635
|
+
{
|
|
1920
636
|
react.exports = requireReact_production();
|
|
1921
|
-
} else {
|
|
1922
|
-
react.exports = requireReact_development();
|
|
1923
637
|
}
|
|
1924
638
|
return react.exports;
|
|
1925
639
|
}
|
|
1926
640
|
|
|
1927
|
-
/**
|
|
1928
|
-
* @license React
|
|
1929
|
-
* react-jsx-runtime.development.js
|
|
1930
|
-
*
|
|
1931
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1932
|
-
*
|
|
1933
|
-
* This source code is licensed under the MIT license found in the
|
|
1934
|
-
* LICENSE file in the root directory of this source tree.
|
|
1935
|
-
*/
|
|
1936
|
-
|
|
1937
|
-
var hasRequiredReactJsxRuntime_development;
|
|
1938
|
-
|
|
1939
|
-
function requireReactJsxRuntime_development () {
|
|
1940
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
1941
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
1942
|
-
"production" !== process.env.NODE_ENV &&
|
|
1943
|
-
(function () {
|
|
1944
|
-
function getComponentNameFromType(type) {
|
|
1945
|
-
if (null == type) return null;
|
|
1946
|
-
if ("function" === typeof type)
|
|
1947
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
1948
|
-
? null
|
|
1949
|
-
: type.displayName || type.name || null;
|
|
1950
|
-
if ("string" === typeof type) return type;
|
|
1951
|
-
switch (type) {
|
|
1952
|
-
case REACT_FRAGMENT_TYPE:
|
|
1953
|
-
return "Fragment";
|
|
1954
|
-
case REACT_PROFILER_TYPE:
|
|
1955
|
-
return "Profiler";
|
|
1956
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1957
|
-
return "StrictMode";
|
|
1958
|
-
case REACT_SUSPENSE_TYPE:
|
|
1959
|
-
return "Suspense";
|
|
1960
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1961
|
-
return "SuspenseList";
|
|
1962
|
-
case REACT_ACTIVITY_TYPE:
|
|
1963
|
-
return "Activity";
|
|
1964
|
-
}
|
|
1965
|
-
if ("object" === typeof type)
|
|
1966
|
-
switch (
|
|
1967
|
-
("number" === typeof type.tag &&
|
|
1968
|
-
console.error(
|
|
1969
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1970
|
-
),
|
|
1971
|
-
type.$$typeof)
|
|
1972
|
-
) {
|
|
1973
|
-
case REACT_PORTAL_TYPE:
|
|
1974
|
-
return "Portal";
|
|
1975
|
-
case REACT_CONTEXT_TYPE:
|
|
1976
|
-
return type.displayName || "Context";
|
|
1977
|
-
case REACT_CONSUMER_TYPE:
|
|
1978
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1979
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1980
|
-
var innerType = type.render;
|
|
1981
|
-
type = type.displayName;
|
|
1982
|
-
type ||
|
|
1983
|
-
((type = innerType.displayName || innerType.name || ""),
|
|
1984
|
-
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
1985
|
-
return type;
|
|
1986
|
-
case REACT_MEMO_TYPE:
|
|
1987
|
-
return (
|
|
1988
|
-
(innerType = type.displayName || null),
|
|
1989
|
-
null !== innerType
|
|
1990
|
-
? innerType
|
|
1991
|
-
: getComponentNameFromType(type.type) || "Memo"
|
|
1992
|
-
);
|
|
1993
|
-
case REACT_LAZY_TYPE:
|
|
1994
|
-
innerType = type._payload;
|
|
1995
|
-
type = type._init;
|
|
1996
|
-
try {
|
|
1997
|
-
return getComponentNameFromType(type(innerType));
|
|
1998
|
-
} catch (x) {}
|
|
1999
|
-
}
|
|
2000
|
-
return null;
|
|
2001
|
-
}
|
|
2002
|
-
function testStringCoercion(value) {
|
|
2003
|
-
return "" + value;
|
|
2004
|
-
}
|
|
2005
|
-
function checkKeyStringCoercion(value) {
|
|
2006
|
-
try {
|
|
2007
|
-
testStringCoercion(value);
|
|
2008
|
-
var JSCompiler_inline_result = !1;
|
|
2009
|
-
} catch (e) {
|
|
2010
|
-
JSCompiler_inline_result = true;
|
|
2011
|
-
}
|
|
2012
|
-
if (JSCompiler_inline_result) {
|
|
2013
|
-
JSCompiler_inline_result = console;
|
|
2014
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
2015
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
2016
|
-
("function" === typeof Symbol &&
|
|
2017
|
-
Symbol.toStringTag &&
|
|
2018
|
-
value[Symbol.toStringTag]) ||
|
|
2019
|
-
value.constructor.name ||
|
|
2020
|
-
"Object";
|
|
2021
|
-
JSCompiler_temp_const.call(
|
|
2022
|
-
JSCompiler_inline_result,
|
|
2023
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2024
|
-
JSCompiler_inline_result$jscomp$0
|
|
2025
|
-
);
|
|
2026
|
-
return testStringCoercion(value);
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
function getTaskName(type) {
|
|
2030
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
2031
|
-
if (
|
|
2032
|
-
"object" === typeof type &&
|
|
2033
|
-
null !== type &&
|
|
2034
|
-
type.$$typeof === REACT_LAZY_TYPE
|
|
2035
|
-
)
|
|
2036
|
-
return "<...>";
|
|
2037
|
-
try {
|
|
2038
|
-
var name = getComponentNameFromType(type);
|
|
2039
|
-
return name ? "<" + name + ">" : "<...>";
|
|
2040
|
-
} catch (x) {
|
|
2041
|
-
return "<...>";
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
2044
|
-
function getOwner() {
|
|
2045
|
-
var dispatcher = ReactSharedInternals.A;
|
|
2046
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
2047
|
-
}
|
|
2048
|
-
function UnknownOwner() {
|
|
2049
|
-
return Error("react-stack-top-frame");
|
|
2050
|
-
}
|
|
2051
|
-
function hasValidKey(config) {
|
|
2052
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
2053
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2054
|
-
if (getter && getter.isReactWarning) return false;
|
|
2055
|
-
}
|
|
2056
|
-
return void 0 !== config.key;
|
|
2057
|
-
}
|
|
2058
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
2059
|
-
function warnAboutAccessingKey() {
|
|
2060
|
-
specialPropKeyWarningShown ||
|
|
2061
|
-
((specialPropKeyWarningShown = true),
|
|
2062
|
-
console.error(
|
|
2063
|
-
"%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://react.dev/link/special-props)",
|
|
2064
|
-
displayName
|
|
2065
|
-
));
|
|
2066
|
-
}
|
|
2067
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
2068
|
-
Object.defineProperty(props, "key", {
|
|
2069
|
-
get: warnAboutAccessingKey,
|
|
2070
|
-
configurable: true
|
|
2071
|
-
});
|
|
2072
|
-
}
|
|
2073
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
2074
|
-
var componentName = getComponentNameFromType(this.type);
|
|
2075
|
-
didWarnAboutElementRef[componentName] ||
|
|
2076
|
-
((didWarnAboutElementRef[componentName] = true),
|
|
2077
|
-
console.error(
|
|
2078
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2079
|
-
));
|
|
2080
|
-
componentName = this.props.ref;
|
|
2081
|
-
return void 0 !== componentName ? componentName : null;
|
|
2082
|
-
}
|
|
2083
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
2084
|
-
var refProp = props.ref;
|
|
2085
|
-
type = {
|
|
2086
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
2087
|
-
type: type,
|
|
2088
|
-
key: key,
|
|
2089
|
-
props: props,
|
|
2090
|
-
_owner: owner
|
|
2091
|
-
};
|
|
2092
|
-
null !== (void 0 !== refProp ? refProp : null)
|
|
2093
|
-
? Object.defineProperty(type, "ref", {
|
|
2094
|
-
enumerable: false,
|
|
2095
|
-
get: elementRefGetterWithDeprecationWarning
|
|
2096
|
-
})
|
|
2097
|
-
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
2098
|
-
type._store = {};
|
|
2099
|
-
Object.defineProperty(type._store, "validated", {
|
|
2100
|
-
configurable: false,
|
|
2101
|
-
enumerable: false,
|
|
2102
|
-
writable: true,
|
|
2103
|
-
value: 0
|
|
2104
|
-
});
|
|
2105
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
2106
|
-
configurable: false,
|
|
2107
|
-
enumerable: false,
|
|
2108
|
-
writable: true,
|
|
2109
|
-
value: null
|
|
2110
|
-
});
|
|
2111
|
-
Object.defineProperty(type, "_debugStack", {
|
|
2112
|
-
configurable: false,
|
|
2113
|
-
enumerable: false,
|
|
2114
|
-
writable: true,
|
|
2115
|
-
value: debugStack
|
|
2116
|
-
});
|
|
2117
|
-
Object.defineProperty(type, "_debugTask", {
|
|
2118
|
-
configurable: false,
|
|
2119
|
-
enumerable: false,
|
|
2120
|
-
writable: true,
|
|
2121
|
-
value: debugTask
|
|
2122
|
-
});
|
|
2123
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
2124
|
-
return type;
|
|
2125
|
-
}
|
|
2126
|
-
function jsxDEVImpl(
|
|
2127
|
-
type,
|
|
2128
|
-
config,
|
|
2129
|
-
maybeKey,
|
|
2130
|
-
isStaticChildren,
|
|
2131
|
-
debugStack,
|
|
2132
|
-
debugTask
|
|
2133
|
-
) {
|
|
2134
|
-
var children = config.children;
|
|
2135
|
-
if (void 0 !== children)
|
|
2136
|
-
if (isStaticChildren)
|
|
2137
|
-
if (isArrayImpl(children)) {
|
|
2138
|
-
for (
|
|
2139
|
-
isStaticChildren = 0;
|
|
2140
|
-
isStaticChildren < children.length;
|
|
2141
|
-
isStaticChildren++
|
|
2142
|
-
)
|
|
2143
|
-
validateChildKeys(children[isStaticChildren]);
|
|
2144
|
-
Object.freeze && Object.freeze(children);
|
|
2145
|
-
} else
|
|
2146
|
-
console.error(
|
|
2147
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
2148
|
-
);
|
|
2149
|
-
else validateChildKeys(children);
|
|
2150
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
2151
|
-
children = getComponentNameFromType(type);
|
|
2152
|
-
var keys = Object.keys(config).filter(function (k) {
|
|
2153
|
-
return "key" !== k;
|
|
2154
|
-
});
|
|
2155
|
-
isStaticChildren =
|
|
2156
|
-
0 < keys.length
|
|
2157
|
-
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
|
2158
|
-
: "{key: someKey}";
|
|
2159
|
-
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
2160
|
-
((keys =
|
|
2161
|
-
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
2162
|
-
console.error(
|
|
2163
|
-
'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} />',
|
|
2164
|
-
isStaticChildren,
|
|
2165
|
-
children,
|
|
2166
|
-
keys,
|
|
2167
|
-
children
|
|
2168
|
-
),
|
|
2169
|
-
(didWarnAboutKeySpread[children + isStaticChildren] = true));
|
|
2170
|
-
}
|
|
2171
|
-
children = null;
|
|
2172
|
-
void 0 !== maybeKey &&
|
|
2173
|
-
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
2174
|
-
hasValidKey(config) &&
|
|
2175
|
-
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
2176
|
-
if ("key" in config) {
|
|
2177
|
-
maybeKey = {};
|
|
2178
|
-
for (var propName in config)
|
|
2179
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
2180
|
-
} else maybeKey = config;
|
|
2181
|
-
children &&
|
|
2182
|
-
defineKeyPropWarningGetter(
|
|
2183
|
-
maybeKey,
|
|
2184
|
-
"function" === typeof type
|
|
2185
|
-
? type.displayName || type.name || "Unknown"
|
|
2186
|
-
: type
|
|
2187
|
-
);
|
|
2188
|
-
return ReactElement(
|
|
2189
|
-
type,
|
|
2190
|
-
children,
|
|
2191
|
-
maybeKey,
|
|
2192
|
-
getOwner(),
|
|
2193
|
-
debugStack,
|
|
2194
|
-
debugTask
|
|
2195
|
-
);
|
|
2196
|
-
}
|
|
2197
|
-
function validateChildKeys(node) {
|
|
2198
|
-
isValidElement(node)
|
|
2199
|
-
? node._store && (node._store.validated = 1)
|
|
2200
|
-
: "object" === typeof node &&
|
|
2201
|
-
null !== node &&
|
|
2202
|
-
node.$$typeof === REACT_LAZY_TYPE &&
|
|
2203
|
-
("fulfilled" === node._payload.status
|
|
2204
|
-
? isValidElement(node._payload.value) &&
|
|
2205
|
-
node._payload.value._store &&
|
|
2206
|
-
(node._payload.value._store.validated = 1)
|
|
2207
|
-
: node._store && (node._store.validated = 1));
|
|
2208
|
-
}
|
|
2209
|
-
function isValidElement(object) {
|
|
2210
|
-
return (
|
|
2211
|
-
"object" === typeof object &&
|
|
2212
|
-
null !== object &&
|
|
2213
|
-
object.$$typeof === REACT_ELEMENT_TYPE
|
|
2214
|
-
);
|
|
2215
|
-
}
|
|
2216
|
-
var React = requireReact(),
|
|
2217
|
-
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
2218
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
2219
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
2220
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
2221
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
2222
|
-
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
2223
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
2224
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
2225
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
2226
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
2227
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
2228
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
2229
|
-
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
2230
|
-
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
2231
|
-
ReactSharedInternals =
|
|
2232
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
2233
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
2234
|
-
isArrayImpl = Array.isArray,
|
|
2235
|
-
createTask = console.createTask
|
|
2236
|
-
? console.createTask
|
|
2237
|
-
: function () {
|
|
2238
|
-
return null;
|
|
2239
|
-
};
|
|
2240
|
-
React = {
|
|
2241
|
-
react_stack_bottom_frame: function (callStackForError) {
|
|
2242
|
-
return callStackForError();
|
|
2243
|
-
}
|
|
2244
|
-
};
|
|
2245
|
-
var specialPropKeyWarningShown;
|
|
2246
|
-
var didWarnAboutElementRef = {};
|
|
2247
|
-
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
|
2248
|
-
React,
|
|
2249
|
-
UnknownOwner
|
|
2250
|
-
)();
|
|
2251
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
2252
|
-
var didWarnAboutKeySpread = {};
|
|
2253
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
2254
|
-
reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
|
|
2255
|
-
var trackActualOwner =
|
|
2256
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
2257
|
-
return jsxDEVImpl(
|
|
2258
|
-
type,
|
|
2259
|
-
config,
|
|
2260
|
-
maybeKey,
|
|
2261
|
-
false,
|
|
2262
|
-
trackActualOwner
|
|
2263
|
-
? Error("react-stack-top-frame")
|
|
2264
|
-
: unknownOwnerDebugStack,
|
|
2265
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
2266
|
-
);
|
|
2267
|
-
};
|
|
2268
|
-
reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
|
|
2269
|
-
var trackActualOwner =
|
|
2270
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
2271
|
-
return jsxDEVImpl(
|
|
2272
|
-
type,
|
|
2273
|
-
config,
|
|
2274
|
-
maybeKey,
|
|
2275
|
-
true,
|
|
2276
|
-
trackActualOwner
|
|
2277
|
-
? Error("react-stack-top-frame")
|
|
2278
|
-
: unknownOwnerDebugStack,
|
|
2279
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
2280
|
-
);
|
|
2281
|
-
};
|
|
2282
|
-
})();
|
|
2283
|
-
return reactJsxRuntime_development;
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
var hasRequiredJsxRuntime;
|
|
2287
|
-
|
|
2288
|
-
function requireJsxRuntime () {
|
|
2289
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
2290
|
-
hasRequiredJsxRuntime = 1;
|
|
2291
|
-
|
|
2292
|
-
if (process.env.NODE_ENV === 'production') {
|
|
2293
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
2294
|
-
} else {
|
|
2295
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
2296
|
-
}
|
|
2297
|
-
return jsxRuntime.exports;
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
2301
|
-
|
|
2302
641
|
var reactExports = requireReact();
|
|
2303
642
|
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
2304
643
|
|
|
@@ -2823,8 +1162,8 @@ function withMinMax(calendar, minDate, maxDate) {
|
|
|
2823
1162
|
return calendar;
|
|
2824
1163
|
}
|
|
2825
1164
|
|
|
2826
|
-
const HOLIDAY_API_URL =
|
|
2827
|
-
const API_KEY =
|
|
1165
|
+
const HOLIDAY_API_URL = undefined.STORYBOOK_HOLIDAY_API_URL;
|
|
1166
|
+
const API_KEY = undefined.STORYBOOK_HOLIDAY_API_KEY;
|
|
2828
1167
|
const getHolidays = async (year = new Date().getFullYear(), signal) => {
|
|
2829
1168
|
try {
|
|
2830
1169
|
let holidayDates;
|
|
@@ -2911,40 +1250,6 @@ const CalendarGridWithoutTasks = ({ children, ...props }) => {
|
|
|
2911
1250
|
return (jsxRuntimeExports.jsxs("div", { className: css$b.calendar, children: [weeks.map((weekDays) => (jsxRuntimeExports.jsx(Week, { weekDays: weekDays, selectedDate: calendar.selectedDate, getIsDisabled: calendar.getIsDisabled, getIsCurrentMonth: calendar.getIsCurrentMonth, getIsHoliday: calendar.getIsHoliday, rangeStart: calendar.rangeStart, rangeEnd: calendar.rangeEnd, ...props }, weekDays[0].toISOString()))), error && jsxRuntimeExports.jsx("p", { className: css$b.errorMessage, children: error }), loading && jsxRuntimeExports.jsx("div", { children: "Loading..." }), children] }));
|
|
2912
1251
|
};
|
|
2913
1252
|
|
|
2914
|
-
var _path$5;
|
|
2915
|
-
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
2916
|
-
var SvgDelete = function SvgDelete(props) {
|
|
2917
|
-
return /*#__PURE__*/reactExports.createElement("svg", _extends$5({
|
|
2918
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2919
|
-
width: 14,
|
|
2920
|
-
height: 14,
|
|
2921
|
-
fill: "none"
|
|
2922
|
-
}, props), _path$5 || (_path$5 = /*#__PURE__*/reactExports.createElement("path", {
|
|
2923
|
-
stroke: "currentColor",
|
|
2924
|
-
strokeLinecap: "round",
|
|
2925
|
-
strokeLinejoin: "round",
|
|
2926
|
-
strokeWidth: 1.167,
|
|
2927
|
-
d: "m12.583.583-12 12M.583.583l12 12"
|
|
2928
|
-
})));
|
|
2929
|
-
};
|
|
2930
|
-
|
|
2931
|
-
var _path$4;
|
|
2932
|
-
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
2933
|
-
var SvgEdit = function SvgEdit(props) {
|
|
2934
|
-
return /*#__PURE__*/reactExports.createElement("svg", _extends$4({
|
|
2935
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2936
|
-
width: 24,
|
|
2937
|
-
height: 24,
|
|
2938
|
-
fill: "none"
|
|
2939
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/reactExports.createElement("path", {
|
|
2940
|
-
stroke: "currentColor",
|
|
2941
|
-
strokeLinecap: "round",
|
|
2942
|
-
strokeLinejoin: "round",
|
|
2943
|
-
strokeWidth: 1.167,
|
|
2944
|
-
d: "M21.174 6.812a2.819 2.819 0 1 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"
|
|
2945
|
-
})));
|
|
2946
|
-
};
|
|
2947
|
-
|
|
2948
1253
|
const useModal = (options = {}) => {
|
|
2949
1254
|
const { initial = false, onOpen, onClose } = options;
|
|
2950
1255
|
const [isOpen, setIsOpen] = reactExports.useState(initial);
|
|
@@ -2980,6 +1285,40 @@ const useModal = (options = {}) => {
|
|
|
2980
1285
|
return { isOpen, open, close, toggle, setOpen };
|
|
2981
1286
|
};
|
|
2982
1287
|
|
|
1288
|
+
var _path$5;
|
|
1289
|
+
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
1290
|
+
var SvgDelete = function SvgDelete(props) {
|
|
1291
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$5({
|
|
1292
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1293
|
+
width: 14,
|
|
1294
|
+
height: 14,
|
|
1295
|
+
fill: "none"
|
|
1296
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/reactExports.createElement("path", {
|
|
1297
|
+
stroke: "currentColor",
|
|
1298
|
+
strokeLinecap: "round",
|
|
1299
|
+
strokeLinejoin: "round",
|
|
1300
|
+
strokeWidth: 1.167,
|
|
1301
|
+
d: "m12.583.583-12 12M.583.583l12 12"
|
|
1302
|
+
})));
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
var _path$4;
|
|
1306
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
1307
|
+
var SvgEdit = function SvgEdit(props) {
|
|
1308
|
+
return /*#__PURE__*/reactExports.createElement("svg", _extends$4({
|
|
1309
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1310
|
+
width: 24,
|
|
1311
|
+
height: 24,
|
|
1312
|
+
fill: "none"
|
|
1313
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/reactExports.createElement("path", {
|
|
1314
|
+
stroke: "currentColor",
|
|
1315
|
+
strokeLinecap: "round",
|
|
1316
|
+
strokeLinejoin: "round",
|
|
1317
|
+
strokeWidth: 1.167,
|
|
1318
|
+
d: "M21.174 6.812a2.819 2.819 0 1 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"
|
|
1319
|
+
})));
|
|
1320
|
+
};
|
|
1321
|
+
|
|
2983
1322
|
var reactDom = {exports: {}};
|
|
2984
1323
|
|
|
2985
1324
|
var reactDom_production = {};
|
|
@@ -3201,439 +1540,6 @@ function requireReactDom_production () {
|
|
|
3201
1540
|
return reactDom_production;
|
|
3202
1541
|
}
|
|
3203
1542
|
|
|
3204
|
-
var reactDom_development = {};
|
|
3205
|
-
|
|
3206
|
-
/**
|
|
3207
|
-
* @license React
|
|
3208
|
-
* react-dom.development.js
|
|
3209
|
-
*
|
|
3210
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3211
|
-
*
|
|
3212
|
-
* This source code is licensed under the MIT license found in the
|
|
3213
|
-
* LICENSE file in the root directory of this source tree.
|
|
3214
|
-
*/
|
|
3215
|
-
|
|
3216
|
-
var hasRequiredReactDom_development;
|
|
3217
|
-
|
|
3218
|
-
function requireReactDom_development () {
|
|
3219
|
-
if (hasRequiredReactDom_development) return reactDom_development;
|
|
3220
|
-
hasRequiredReactDom_development = 1;
|
|
3221
|
-
"production" !== process.env.NODE_ENV &&
|
|
3222
|
-
(function () {
|
|
3223
|
-
function noop() {}
|
|
3224
|
-
function testStringCoercion(value) {
|
|
3225
|
-
return "" + value;
|
|
3226
|
-
}
|
|
3227
|
-
function createPortal$1(children, containerInfo, implementation) {
|
|
3228
|
-
var key =
|
|
3229
|
-
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
3230
|
-
try {
|
|
3231
|
-
testStringCoercion(key);
|
|
3232
|
-
var JSCompiler_inline_result = !1;
|
|
3233
|
-
} catch (e) {
|
|
3234
|
-
JSCompiler_inline_result = true;
|
|
3235
|
-
}
|
|
3236
|
-
JSCompiler_inline_result &&
|
|
3237
|
-
(console.error(
|
|
3238
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
3239
|
-
("function" === typeof Symbol &&
|
|
3240
|
-
Symbol.toStringTag &&
|
|
3241
|
-
key[Symbol.toStringTag]) ||
|
|
3242
|
-
key.constructor.name ||
|
|
3243
|
-
"Object"
|
|
3244
|
-
),
|
|
3245
|
-
testStringCoercion(key));
|
|
3246
|
-
return {
|
|
3247
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
3248
|
-
key: null == key ? null : "" + key,
|
|
3249
|
-
children: children,
|
|
3250
|
-
containerInfo: containerInfo,
|
|
3251
|
-
implementation: implementation
|
|
3252
|
-
};
|
|
3253
|
-
}
|
|
3254
|
-
function getCrossOriginStringAs(as, input) {
|
|
3255
|
-
if ("font" === as) return "";
|
|
3256
|
-
if ("string" === typeof input)
|
|
3257
|
-
return "use-credentials" === input ? input : "";
|
|
3258
|
-
}
|
|
3259
|
-
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
3260
|
-
return null === thing
|
|
3261
|
-
? "`null`"
|
|
3262
|
-
: void 0 === thing
|
|
3263
|
-
? "`undefined`"
|
|
3264
|
-
: "" === thing
|
|
3265
|
-
? "an empty string"
|
|
3266
|
-
: 'something with type "' + typeof thing + '"';
|
|
3267
|
-
}
|
|
3268
|
-
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
3269
|
-
return null === thing
|
|
3270
|
-
? "`null`"
|
|
3271
|
-
: void 0 === thing
|
|
3272
|
-
? "`undefined`"
|
|
3273
|
-
: "" === thing
|
|
3274
|
-
? "an empty string"
|
|
3275
|
-
: "string" === typeof thing
|
|
3276
|
-
? JSON.stringify(thing)
|
|
3277
|
-
: "number" === typeof thing
|
|
3278
|
-
? "`" + thing + "`"
|
|
3279
|
-
: 'something with type "' + typeof thing + '"';
|
|
3280
|
-
}
|
|
3281
|
-
function resolveDispatcher() {
|
|
3282
|
-
var dispatcher = ReactSharedInternals.H;
|
|
3283
|
-
null === dispatcher &&
|
|
3284
|
-
console.error(
|
|
3285
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
3286
|
-
);
|
|
3287
|
-
return dispatcher;
|
|
3288
|
-
}
|
|
3289
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
3290
|
-
"function" ===
|
|
3291
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
3292
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3293
|
-
var React = requireReact(),
|
|
3294
|
-
Internals = {
|
|
3295
|
-
d: {
|
|
3296
|
-
f: noop,
|
|
3297
|
-
r: function () {
|
|
3298
|
-
throw Error(
|
|
3299
|
-
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
3300
|
-
);
|
|
3301
|
-
},
|
|
3302
|
-
D: noop,
|
|
3303
|
-
C: noop,
|
|
3304
|
-
L: noop,
|
|
3305
|
-
m: noop,
|
|
3306
|
-
X: noop,
|
|
3307
|
-
S: noop,
|
|
3308
|
-
M: noop
|
|
3309
|
-
},
|
|
3310
|
-
p: 0,
|
|
3311
|
-
findDOMNode: null
|
|
3312
|
-
},
|
|
3313
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
3314
|
-
ReactSharedInternals =
|
|
3315
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
3316
|
-
("function" === typeof Map &&
|
|
3317
|
-
null != Map.prototype &&
|
|
3318
|
-
"function" === typeof Map.prototype.forEach &&
|
|
3319
|
-
"function" === typeof Set &&
|
|
3320
|
-
null != Set.prototype &&
|
|
3321
|
-
"function" === typeof Set.prototype.clear &&
|
|
3322
|
-
"function" === typeof Set.prototype.forEach) ||
|
|
3323
|
-
console.error(
|
|
3324
|
-
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
3325
|
-
);
|
|
3326
|
-
reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
3327
|
-
Internals;
|
|
3328
|
-
reactDom_development.createPortal = function (children, container) {
|
|
3329
|
-
var key =
|
|
3330
|
-
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
3331
|
-
if (
|
|
3332
|
-
!container ||
|
|
3333
|
-
(1 !== container.nodeType &&
|
|
3334
|
-
9 !== container.nodeType &&
|
|
3335
|
-
11 !== container.nodeType)
|
|
3336
|
-
)
|
|
3337
|
-
throw Error("Target container is not a DOM element.");
|
|
3338
|
-
return createPortal$1(children, container, null, key);
|
|
3339
|
-
};
|
|
3340
|
-
reactDom_development.flushSync = function (fn) {
|
|
3341
|
-
var previousTransition = ReactSharedInternals.T,
|
|
3342
|
-
previousUpdatePriority = Internals.p;
|
|
3343
|
-
try {
|
|
3344
|
-
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
|
|
3345
|
-
return fn();
|
|
3346
|
-
} finally {
|
|
3347
|
-
(ReactSharedInternals.T = previousTransition),
|
|
3348
|
-
(Internals.p = previousUpdatePriority),
|
|
3349
|
-
Internals.d.f() &&
|
|
3350
|
-
console.error(
|
|
3351
|
-
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
3352
|
-
);
|
|
3353
|
-
}
|
|
3354
|
-
};
|
|
3355
|
-
reactDom_development.preconnect = function (href, options) {
|
|
3356
|
-
"string" === typeof href && href
|
|
3357
|
-
? null != options && "object" !== typeof options
|
|
3358
|
-
? console.error(
|
|
3359
|
-
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
3360
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
3361
|
-
)
|
|
3362
|
-
: null != options &&
|
|
3363
|
-
"string" !== typeof options.crossOrigin &&
|
|
3364
|
-
console.error(
|
|
3365
|
-
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
3366
|
-
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
3367
|
-
)
|
|
3368
|
-
: console.error(
|
|
3369
|
-
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
3370
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
3371
|
-
);
|
|
3372
|
-
"string" === typeof href &&
|
|
3373
|
-
(options
|
|
3374
|
-
? ((options = options.crossOrigin),
|
|
3375
|
-
(options =
|
|
3376
|
-
"string" === typeof options
|
|
3377
|
-
? "use-credentials" === options
|
|
3378
|
-
? options
|
|
3379
|
-
: ""
|
|
3380
|
-
: void 0))
|
|
3381
|
-
: (options = null),
|
|
3382
|
-
Internals.d.C(href, options));
|
|
3383
|
-
};
|
|
3384
|
-
reactDom_development.prefetchDNS = function (href) {
|
|
3385
|
-
if ("string" !== typeof href || !href)
|
|
3386
|
-
console.error(
|
|
3387
|
-
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
3388
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
3389
|
-
);
|
|
3390
|
-
else if (1 < arguments.length) {
|
|
3391
|
-
var options = arguments[1];
|
|
3392
|
-
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
|
3393
|
-
? console.error(
|
|
3394
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
3395
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
3396
|
-
)
|
|
3397
|
-
: console.error(
|
|
3398
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
3399
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
3400
|
-
);
|
|
3401
|
-
}
|
|
3402
|
-
"string" === typeof href && Internals.d.D(href);
|
|
3403
|
-
};
|
|
3404
|
-
reactDom_development.preinit = function (href, options) {
|
|
3405
|
-
"string" === typeof href && href
|
|
3406
|
-
? null == options || "object" !== typeof options
|
|
3407
|
-
? console.error(
|
|
3408
|
-
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
3409
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
3410
|
-
)
|
|
3411
|
-
: "style" !== options.as &&
|
|
3412
|
-
"script" !== options.as &&
|
|
3413
|
-
console.error(
|
|
3414
|
-
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
3415
|
-
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
3416
|
-
)
|
|
3417
|
-
: console.error(
|
|
3418
|
-
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
3419
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
3420
|
-
);
|
|
3421
|
-
if (
|
|
3422
|
-
"string" === typeof href &&
|
|
3423
|
-
options &&
|
|
3424
|
-
"string" === typeof options.as
|
|
3425
|
-
) {
|
|
3426
|
-
var as = options.as,
|
|
3427
|
-
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|
3428
|
-
integrity =
|
|
3429
|
-
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
3430
|
-
fetchPriority =
|
|
3431
|
-
"string" === typeof options.fetchPriority
|
|
3432
|
-
? options.fetchPriority
|
|
3433
|
-
: void 0;
|
|
3434
|
-
"style" === as
|
|
3435
|
-
? Internals.d.S(
|
|
3436
|
-
href,
|
|
3437
|
-
"string" === typeof options.precedence
|
|
3438
|
-
? options.precedence
|
|
3439
|
-
: void 0,
|
|
3440
|
-
{
|
|
3441
|
-
crossOrigin: crossOrigin,
|
|
3442
|
-
integrity: integrity,
|
|
3443
|
-
fetchPriority: fetchPriority
|
|
3444
|
-
}
|
|
3445
|
-
)
|
|
3446
|
-
: "script" === as &&
|
|
3447
|
-
Internals.d.X(href, {
|
|
3448
|
-
crossOrigin: crossOrigin,
|
|
3449
|
-
integrity: integrity,
|
|
3450
|
-
fetchPriority: fetchPriority,
|
|
3451
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
3452
|
-
});
|
|
3453
|
-
}
|
|
3454
|
-
};
|
|
3455
|
-
reactDom_development.preinitModule = function (href, options) {
|
|
3456
|
-
var encountered = "";
|
|
3457
|
-
("string" === typeof href && href) ||
|
|
3458
|
-
(encountered +=
|
|
3459
|
-
" The `href` argument encountered was " +
|
|
3460
|
-
getValueDescriptorExpectingObjectForWarning(href) +
|
|
3461
|
-
".");
|
|
3462
|
-
void 0 !== options && "object" !== typeof options
|
|
3463
|
-
? (encountered +=
|
|
3464
|
-
" The `options` argument encountered was " +
|
|
3465
|
-
getValueDescriptorExpectingObjectForWarning(options) +
|
|
3466
|
-
".")
|
|
3467
|
-
: options &&
|
|
3468
|
-
"as" in options &&
|
|
3469
|
-
"script" !== options.as &&
|
|
3470
|
-
(encountered +=
|
|
3471
|
-
" The `as` option encountered was " +
|
|
3472
|
-
getValueDescriptorExpectingEnumForWarning(options.as) +
|
|
3473
|
-
".");
|
|
3474
|
-
if (encountered)
|
|
3475
|
-
console.error(
|
|
3476
|
-
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
3477
|
-
encountered
|
|
3478
|
-
);
|
|
3479
|
-
else
|
|
3480
|
-
switch (
|
|
3481
|
-
((encountered =
|
|
3482
|
-
options && "string" === typeof options.as ? options.as : "script"),
|
|
3483
|
-
encountered)
|
|
3484
|
-
) {
|
|
3485
|
-
case "script":
|
|
3486
|
-
break;
|
|
3487
|
-
default:
|
|
3488
|
-
(encountered =
|
|
3489
|
-
getValueDescriptorExpectingEnumForWarning(encountered)),
|
|
3490
|
-
console.error(
|
|
3491
|
-
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
3492
|
-
encountered,
|
|
3493
|
-
href
|
|
3494
|
-
);
|
|
3495
|
-
}
|
|
3496
|
-
if ("string" === typeof href)
|
|
3497
|
-
if ("object" === typeof options && null !== options) {
|
|
3498
|
-
if (null == options.as || "script" === options.as)
|
|
3499
|
-
(encountered = getCrossOriginStringAs(
|
|
3500
|
-
options.as,
|
|
3501
|
-
options.crossOrigin
|
|
3502
|
-
)),
|
|
3503
|
-
Internals.d.M(href, {
|
|
3504
|
-
crossOrigin: encountered,
|
|
3505
|
-
integrity:
|
|
3506
|
-
"string" === typeof options.integrity
|
|
3507
|
-
? options.integrity
|
|
3508
|
-
: void 0,
|
|
3509
|
-
nonce:
|
|
3510
|
-
"string" === typeof options.nonce ? options.nonce : void 0
|
|
3511
|
-
});
|
|
3512
|
-
} else null == options && Internals.d.M(href);
|
|
3513
|
-
};
|
|
3514
|
-
reactDom_development.preload = function (href, options) {
|
|
3515
|
-
var encountered = "";
|
|
3516
|
-
("string" === typeof href && href) ||
|
|
3517
|
-
(encountered +=
|
|
3518
|
-
" The `href` argument encountered was " +
|
|
3519
|
-
getValueDescriptorExpectingObjectForWarning(href) +
|
|
3520
|
-
".");
|
|
3521
|
-
null == options || "object" !== typeof options
|
|
3522
|
-
? (encountered +=
|
|
3523
|
-
" The `options` argument encountered was " +
|
|
3524
|
-
getValueDescriptorExpectingObjectForWarning(options) +
|
|
3525
|
-
".")
|
|
3526
|
-
: ("string" === typeof options.as && options.as) ||
|
|
3527
|
-
(encountered +=
|
|
3528
|
-
" The `as` option encountered was " +
|
|
3529
|
-
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
3530
|
-
".");
|
|
3531
|
-
encountered &&
|
|
3532
|
-
console.error(
|
|
3533
|
-
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
3534
|
-
encountered
|
|
3535
|
-
);
|
|
3536
|
-
if (
|
|
3537
|
-
"string" === typeof href &&
|
|
3538
|
-
"object" === typeof options &&
|
|
3539
|
-
null !== options &&
|
|
3540
|
-
"string" === typeof options.as
|
|
3541
|
-
) {
|
|
3542
|
-
encountered = options.as;
|
|
3543
|
-
var crossOrigin = getCrossOriginStringAs(
|
|
3544
|
-
encountered,
|
|
3545
|
-
options.crossOrigin
|
|
3546
|
-
);
|
|
3547
|
-
Internals.d.L(href, encountered, {
|
|
3548
|
-
crossOrigin: crossOrigin,
|
|
3549
|
-
integrity:
|
|
3550
|
-
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
3551
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
3552
|
-
type: "string" === typeof options.type ? options.type : void 0,
|
|
3553
|
-
fetchPriority:
|
|
3554
|
-
"string" === typeof options.fetchPriority
|
|
3555
|
-
? options.fetchPriority
|
|
3556
|
-
: void 0,
|
|
3557
|
-
referrerPolicy:
|
|
3558
|
-
"string" === typeof options.referrerPolicy
|
|
3559
|
-
? options.referrerPolicy
|
|
3560
|
-
: void 0,
|
|
3561
|
-
imageSrcSet:
|
|
3562
|
-
"string" === typeof options.imageSrcSet
|
|
3563
|
-
? options.imageSrcSet
|
|
3564
|
-
: void 0,
|
|
3565
|
-
imageSizes:
|
|
3566
|
-
"string" === typeof options.imageSizes
|
|
3567
|
-
? options.imageSizes
|
|
3568
|
-
: void 0,
|
|
3569
|
-
media: "string" === typeof options.media ? options.media : void 0
|
|
3570
|
-
});
|
|
3571
|
-
}
|
|
3572
|
-
};
|
|
3573
|
-
reactDom_development.preloadModule = function (href, options) {
|
|
3574
|
-
var encountered = "";
|
|
3575
|
-
("string" === typeof href && href) ||
|
|
3576
|
-
(encountered +=
|
|
3577
|
-
" The `href` argument encountered was " +
|
|
3578
|
-
getValueDescriptorExpectingObjectForWarning(href) +
|
|
3579
|
-
".");
|
|
3580
|
-
void 0 !== options && "object" !== typeof options
|
|
3581
|
-
? (encountered +=
|
|
3582
|
-
" The `options` argument encountered was " +
|
|
3583
|
-
getValueDescriptorExpectingObjectForWarning(options) +
|
|
3584
|
-
".")
|
|
3585
|
-
: options &&
|
|
3586
|
-
"as" in options &&
|
|
3587
|
-
"string" !== typeof options.as &&
|
|
3588
|
-
(encountered +=
|
|
3589
|
-
" The `as` option encountered was " +
|
|
3590
|
-
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
3591
|
-
".");
|
|
3592
|
-
encountered &&
|
|
3593
|
-
console.error(
|
|
3594
|
-
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
3595
|
-
encountered
|
|
3596
|
-
);
|
|
3597
|
-
"string" === typeof href &&
|
|
3598
|
-
(options
|
|
3599
|
-
? ((encountered = getCrossOriginStringAs(
|
|
3600
|
-
options.as,
|
|
3601
|
-
options.crossOrigin
|
|
3602
|
-
)),
|
|
3603
|
-
Internals.d.m(href, {
|
|
3604
|
-
as:
|
|
3605
|
-
"string" === typeof options.as && "script" !== options.as
|
|
3606
|
-
? options.as
|
|
3607
|
-
: void 0,
|
|
3608
|
-
crossOrigin: encountered,
|
|
3609
|
-
integrity:
|
|
3610
|
-
"string" === typeof options.integrity
|
|
3611
|
-
? options.integrity
|
|
3612
|
-
: void 0
|
|
3613
|
-
}))
|
|
3614
|
-
: Internals.d.m(href));
|
|
3615
|
-
};
|
|
3616
|
-
reactDom_development.requestFormReset = function (form) {
|
|
3617
|
-
Internals.d.r(form);
|
|
3618
|
-
};
|
|
3619
|
-
reactDom_development.unstable_batchedUpdates = function (fn, a) {
|
|
3620
|
-
return fn(a);
|
|
3621
|
-
};
|
|
3622
|
-
reactDom_development.useFormState = function (action, initialState, permalink) {
|
|
3623
|
-
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
3624
|
-
};
|
|
3625
|
-
reactDom_development.useFormStatus = function () {
|
|
3626
|
-
return resolveDispatcher().useHostTransitionStatus();
|
|
3627
|
-
};
|
|
3628
|
-
reactDom_development.version = "19.2.8";
|
|
3629
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
3630
|
-
"function" ===
|
|
3631
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
3632
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3633
|
-
})();
|
|
3634
|
-
return reactDom_development;
|
|
3635
|
-
}
|
|
3636
|
-
|
|
3637
1543
|
var hasRequiredReactDom;
|
|
3638
1544
|
|
|
3639
1545
|
function requireReactDom () {
|
|
@@ -3648,16 +1554,6 @@ function requireReactDom () {
|
|
|
3648
1554
|
) {
|
|
3649
1555
|
return;
|
|
3650
1556
|
}
|
|
3651
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3652
|
-
// This branch is unreachable because this function is only called
|
|
3653
|
-
// in production, but the condition is true only in development.
|
|
3654
|
-
// Therefore if the branch is still here, dead code elimination wasn't
|
|
3655
|
-
// properly applied.
|
|
3656
|
-
// Don't change the message. React DevTools relies on it. Also make sure
|
|
3657
|
-
// this message doesn't occur elsewhere in this function, or it will cause
|
|
3658
|
-
// a false positive.
|
|
3659
|
-
throw new Error('^_^');
|
|
3660
|
-
}
|
|
3661
1557
|
try {
|
|
3662
1558
|
// Verify that the code above has been dead code eliminated (DCE'd).
|
|
3663
1559
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
@@ -3668,13 +1564,11 @@ function requireReactDom () {
|
|
|
3668
1564
|
}
|
|
3669
1565
|
}
|
|
3670
1566
|
|
|
3671
|
-
|
|
1567
|
+
{
|
|
3672
1568
|
// DCE check should happen before ReactDOM bundle executes so that
|
|
3673
1569
|
// DevTools can report bad minification during injection.
|
|
3674
1570
|
checkDCE();
|
|
3675
1571
|
reactDom.exports = requireReactDom_production();
|
|
3676
|
-
} else {
|
|
3677
|
-
reactDom.exports = requireReactDom_development();
|
|
3678
1572
|
}
|
|
3679
1573
|
return reactDom.exports;
|
|
3680
1574
|
}
|
|
@@ -4418,7 +2312,7 @@ function extractFormValues(fieldsState, formValues) {
|
|
|
4418
2312
|
const hasOwn = (value, key) => value !== null &&
|
|
4419
2313
|
isObjectType(value) &&
|
|
4420
2314
|
Object.prototype.hasOwnProperty.call(value, key);
|
|
4421
|
-
var has
|
|
2315
|
+
var has = (object, path) => {
|
|
4422
2316
|
if (!path) {
|
|
4423
2317
|
return false;
|
|
4424
2318
|
}
|
|
@@ -5341,7 +3235,7 @@ function createFormControl(props = {}) {
|
|
|
5341
3235
|
...updatedFormValues,
|
|
5342
3236
|
};
|
|
5343
3237
|
for (const fieldName of _names.mount) {
|
|
5344
|
-
if (has
|
|
3238
|
+
if (has(updatedFormValues, fieldName)) {
|
|
5345
3239
|
_setValue(fieldName, get(updatedFormValues, fieldName), options, true, true);
|
|
5346
3240
|
}
|
|
5347
3241
|
}
|
|
@@ -15654,334 +13548,6 @@ try {
|
|
|
15654
13548
|
|
|
15655
13549
|
var propTypes = {exports: {}};
|
|
15656
13550
|
|
|
15657
|
-
var reactIs = {exports: {}};
|
|
15658
|
-
|
|
15659
|
-
var reactIs_production_min = {};
|
|
15660
|
-
|
|
15661
|
-
/** @license React v16.13.1
|
|
15662
|
-
* react-is.production.min.js
|
|
15663
|
-
*
|
|
15664
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15665
|
-
*
|
|
15666
|
-
* This source code is licensed under the MIT license found in the
|
|
15667
|
-
* LICENSE file in the root directory of this source tree.
|
|
15668
|
-
*/
|
|
15669
|
-
|
|
15670
|
-
var hasRequiredReactIs_production_min;
|
|
15671
|
-
|
|
15672
|
-
function requireReactIs_production_min () {
|
|
15673
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
15674
|
-
hasRequiredReactIs_production_min = 1;
|
|
15675
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
15676
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
15677
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
15678
|
-
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
15679
|
-
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
15680
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
15681
|
-
return reactIs_production_min;
|
|
15682
|
-
}
|
|
15683
|
-
|
|
15684
|
-
var reactIs_development = {};
|
|
15685
|
-
|
|
15686
|
-
/** @license React v16.13.1
|
|
15687
|
-
* react-is.development.js
|
|
15688
|
-
*
|
|
15689
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15690
|
-
*
|
|
15691
|
-
* This source code is licensed under the MIT license found in the
|
|
15692
|
-
* LICENSE file in the root directory of this source tree.
|
|
15693
|
-
*/
|
|
15694
|
-
|
|
15695
|
-
var hasRequiredReactIs_development;
|
|
15696
|
-
|
|
15697
|
-
function requireReactIs_development () {
|
|
15698
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
15699
|
-
hasRequiredReactIs_development = 1;
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15704
|
-
(function() {
|
|
15705
|
-
|
|
15706
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
15707
|
-
// nor polyfill, then a plain number is used for performance.
|
|
15708
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
15709
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
15710
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
15711
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
15712
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
15713
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
15714
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
15715
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
15716
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
15717
|
-
|
|
15718
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
15719
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
15720
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
15721
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
15722
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
15723
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
15724
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
15725
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
15726
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
15727
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
15728
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
15729
|
-
|
|
15730
|
-
function isValidElementType(type) {
|
|
15731
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
15732
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
15733
|
-
}
|
|
15734
|
-
|
|
15735
|
-
function typeOf(object) {
|
|
15736
|
-
if (typeof object === 'object' && object !== null) {
|
|
15737
|
-
var $$typeof = object.$$typeof;
|
|
15738
|
-
|
|
15739
|
-
switch ($$typeof) {
|
|
15740
|
-
case REACT_ELEMENT_TYPE:
|
|
15741
|
-
var type = object.type;
|
|
15742
|
-
|
|
15743
|
-
switch (type) {
|
|
15744
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
15745
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
15746
|
-
case REACT_FRAGMENT_TYPE:
|
|
15747
|
-
case REACT_PROFILER_TYPE:
|
|
15748
|
-
case REACT_STRICT_MODE_TYPE:
|
|
15749
|
-
case REACT_SUSPENSE_TYPE:
|
|
15750
|
-
return type;
|
|
15751
|
-
|
|
15752
|
-
default:
|
|
15753
|
-
var $$typeofType = type && type.$$typeof;
|
|
15754
|
-
|
|
15755
|
-
switch ($$typeofType) {
|
|
15756
|
-
case REACT_CONTEXT_TYPE:
|
|
15757
|
-
case REACT_FORWARD_REF_TYPE:
|
|
15758
|
-
case REACT_LAZY_TYPE:
|
|
15759
|
-
case REACT_MEMO_TYPE:
|
|
15760
|
-
case REACT_PROVIDER_TYPE:
|
|
15761
|
-
return $$typeofType;
|
|
15762
|
-
|
|
15763
|
-
default:
|
|
15764
|
-
return $$typeof;
|
|
15765
|
-
}
|
|
15766
|
-
|
|
15767
|
-
}
|
|
15768
|
-
|
|
15769
|
-
case REACT_PORTAL_TYPE:
|
|
15770
|
-
return $$typeof;
|
|
15771
|
-
}
|
|
15772
|
-
}
|
|
15773
|
-
|
|
15774
|
-
return undefined;
|
|
15775
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
15776
|
-
|
|
15777
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
15778
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
15779
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
15780
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
15781
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
15782
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
15783
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
15784
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
15785
|
-
var Memo = REACT_MEMO_TYPE;
|
|
15786
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
15787
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
15788
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
15789
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
15790
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
15791
|
-
|
|
15792
|
-
function isAsyncMode(object) {
|
|
15793
|
-
{
|
|
15794
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
15795
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
15796
|
-
|
|
15797
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
15798
|
-
}
|
|
15799
|
-
}
|
|
15800
|
-
|
|
15801
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
15802
|
-
}
|
|
15803
|
-
function isConcurrentMode(object) {
|
|
15804
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
15805
|
-
}
|
|
15806
|
-
function isContextConsumer(object) {
|
|
15807
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
15808
|
-
}
|
|
15809
|
-
function isContextProvider(object) {
|
|
15810
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
15811
|
-
}
|
|
15812
|
-
function isElement(object) {
|
|
15813
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
15814
|
-
}
|
|
15815
|
-
function isForwardRef(object) {
|
|
15816
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
15817
|
-
}
|
|
15818
|
-
function isFragment(object) {
|
|
15819
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
15820
|
-
}
|
|
15821
|
-
function isLazy(object) {
|
|
15822
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
15823
|
-
}
|
|
15824
|
-
function isMemo(object) {
|
|
15825
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
15826
|
-
}
|
|
15827
|
-
function isPortal(object) {
|
|
15828
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
15829
|
-
}
|
|
15830
|
-
function isProfiler(object) {
|
|
15831
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
15832
|
-
}
|
|
15833
|
-
function isStrictMode(object) {
|
|
15834
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
15835
|
-
}
|
|
15836
|
-
function isSuspense(object) {
|
|
15837
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
15838
|
-
}
|
|
15839
|
-
|
|
15840
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
15841
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
15842
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
15843
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
15844
|
-
reactIs_development.Element = Element;
|
|
15845
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
15846
|
-
reactIs_development.Fragment = Fragment;
|
|
15847
|
-
reactIs_development.Lazy = Lazy;
|
|
15848
|
-
reactIs_development.Memo = Memo;
|
|
15849
|
-
reactIs_development.Portal = Portal;
|
|
15850
|
-
reactIs_development.Profiler = Profiler;
|
|
15851
|
-
reactIs_development.StrictMode = StrictMode;
|
|
15852
|
-
reactIs_development.Suspense = Suspense;
|
|
15853
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
15854
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
15855
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
15856
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
15857
|
-
reactIs_development.isElement = isElement;
|
|
15858
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
15859
|
-
reactIs_development.isFragment = isFragment;
|
|
15860
|
-
reactIs_development.isLazy = isLazy;
|
|
15861
|
-
reactIs_development.isMemo = isMemo;
|
|
15862
|
-
reactIs_development.isPortal = isPortal;
|
|
15863
|
-
reactIs_development.isProfiler = isProfiler;
|
|
15864
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
15865
|
-
reactIs_development.isSuspense = isSuspense;
|
|
15866
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
15867
|
-
reactIs_development.typeOf = typeOf;
|
|
15868
|
-
})();
|
|
15869
|
-
}
|
|
15870
|
-
return reactIs_development;
|
|
15871
|
-
}
|
|
15872
|
-
|
|
15873
|
-
var hasRequiredReactIs;
|
|
15874
|
-
|
|
15875
|
-
function requireReactIs () {
|
|
15876
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
15877
|
-
hasRequiredReactIs = 1;
|
|
15878
|
-
|
|
15879
|
-
if (process.env.NODE_ENV === 'production') {
|
|
15880
|
-
reactIs.exports = requireReactIs_production_min();
|
|
15881
|
-
} else {
|
|
15882
|
-
reactIs.exports = requireReactIs_development();
|
|
15883
|
-
}
|
|
15884
|
-
return reactIs.exports;
|
|
15885
|
-
}
|
|
15886
|
-
|
|
15887
|
-
/*
|
|
15888
|
-
object-assign
|
|
15889
|
-
(c) Sindre Sorhus
|
|
15890
|
-
@license MIT
|
|
15891
|
-
*/
|
|
15892
|
-
|
|
15893
|
-
var objectAssign;
|
|
15894
|
-
var hasRequiredObjectAssign;
|
|
15895
|
-
|
|
15896
|
-
function requireObjectAssign () {
|
|
15897
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
15898
|
-
hasRequiredObjectAssign = 1;
|
|
15899
|
-
/* eslint-disable no-unused-vars */
|
|
15900
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
15901
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
15902
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
15903
|
-
|
|
15904
|
-
function toObject(val) {
|
|
15905
|
-
if (val === null || val === undefined) {
|
|
15906
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
15907
|
-
}
|
|
15908
|
-
|
|
15909
|
-
return Object(val);
|
|
15910
|
-
}
|
|
15911
|
-
|
|
15912
|
-
function shouldUseNative() {
|
|
15913
|
-
try {
|
|
15914
|
-
if (!Object.assign) {
|
|
15915
|
-
return false;
|
|
15916
|
-
}
|
|
15917
|
-
|
|
15918
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
15919
|
-
|
|
15920
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
15921
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
15922
|
-
test1[5] = 'de';
|
|
15923
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
15924
|
-
return false;
|
|
15925
|
-
}
|
|
15926
|
-
|
|
15927
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
15928
|
-
var test2 = {};
|
|
15929
|
-
for (var i = 0; i < 10; i++) {
|
|
15930
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
15931
|
-
}
|
|
15932
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
15933
|
-
return test2[n];
|
|
15934
|
-
});
|
|
15935
|
-
if (order2.join('') !== '0123456789') {
|
|
15936
|
-
return false;
|
|
15937
|
-
}
|
|
15938
|
-
|
|
15939
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
15940
|
-
var test3 = {};
|
|
15941
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
15942
|
-
test3[letter] = letter;
|
|
15943
|
-
});
|
|
15944
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
15945
|
-
'abcdefghijklmnopqrst') {
|
|
15946
|
-
return false;
|
|
15947
|
-
}
|
|
15948
|
-
|
|
15949
|
-
return true;
|
|
15950
|
-
} catch (err) {
|
|
15951
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
15952
|
-
return false;
|
|
15953
|
-
}
|
|
15954
|
-
}
|
|
15955
|
-
|
|
15956
|
-
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
15957
|
-
var from;
|
|
15958
|
-
var to = toObject(target);
|
|
15959
|
-
var symbols;
|
|
15960
|
-
|
|
15961
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
15962
|
-
from = Object(arguments[s]);
|
|
15963
|
-
|
|
15964
|
-
for (var key in from) {
|
|
15965
|
-
if (hasOwnProperty.call(from, key)) {
|
|
15966
|
-
to[key] = from[key];
|
|
15967
|
-
}
|
|
15968
|
-
}
|
|
15969
|
-
|
|
15970
|
-
if (getOwnPropertySymbols) {
|
|
15971
|
-
symbols = getOwnPropertySymbols(from);
|
|
15972
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
15973
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
15974
|
-
to[symbols[i]] = from[symbols[i]];
|
|
15975
|
-
}
|
|
15976
|
-
}
|
|
15977
|
-
}
|
|
15978
|
-
}
|
|
15979
|
-
|
|
15980
|
-
return to;
|
|
15981
|
-
};
|
|
15982
|
-
return objectAssign;
|
|
15983
|
-
}
|
|
15984
|
-
|
|
15985
13551
|
/**
|
|
15986
13552
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
15987
13553
|
*
|
|
@@ -16002,745 +13568,6 @@ function requireReactPropTypesSecret () {
|
|
|
16002
13568
|
return ReactPropTypesSecret_1;
|
|
16003
13569
|
}
|
|
16004
13570
|
|
|
16005
|
-
var has;
|
|
16006
|
-
var hasRequiredHas;
|
|
16007
|
-
|
|
16008
|
-
function requireHas () {
|
|
16009
|
-
if (hasRequiredHas) return has;
|
|
16010
|
-
hasRequiredHas = 1;
|
|
16011
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
16012
|
-
return has;
|
|
16013
|
-
}
|
|
16014
|
-
|
|
16015
|
-
/**
|
|
16016
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
16017
|
-
*
|
|
16018
|
-
* This source code is licensed under the MIT license found in the
|
|
16019
|
-
* LICENSE file in the root directory of this source tree.
|
|
16020
|
-
*/
|
|
16021
|
-
|
|
16022
|
-
var checkPropTypes_1;
|
|
16023
|
-
var hasRequiredCheckPropTypes;
|
|
16024
|
-
|
|
16025
|
-
function requireCheckPropTypes () {
|
|
16026
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
16027
|
-
hasRequiredCheckPropTypes = 1;
|
|
16028
|
-
|
|
16029
|
-
var printWarning = function() {};
|
|
16030
|
-
|
|
16031
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16032
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
|
|
16033
|
-
var loggedTypeFailures = {};
|
|
16034
|
-
var has = /*@__PURE__*/ requireHas();
|
|
16035
|
-
|
|
16036
|
-
printWarning = function(text) {
|
|
16037
|
-
var message = 'Warning: ' + text;
|
|
16038
|
-
if (typeof console !== 'undefined') {
|
|
16039
|
-
console.error(message);
|
|
16040
|
-
}
|
|
16041
|
-
try {
|
|
16042
|
-
// --- Welcome to debugging React ---
|
|
16043
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
16044
|
-
// to find the callsite that caused this warning to fire.
|
|
16045
|
-
throw new Error(message);
|
|
16046
|
-
} catch (x) { /**/ }
|
|
16047
|
-
};
|
|
16048
|
-
}
|
|
16049
|
-
|
|
16050
|
-
/**
|
|
16051
|
-
* Assert that the values match with the type specs.
|
|
16052
|
-
* Error messages are memorized and will only be shown once.
|
|
16053
|
-
*
|
|
16054
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
16055
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
16056
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
16057
|
-
* @param {string} componentName Name of the component for error messages.
|
|
16058
|
-
* @param {?Function} getStack Returns the component stack.
|
|
16059
|
-
* @private
|
|
16060
|
-
*/
|
|
16061
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
16062
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16063
|
-
for (var typeSpecName in typeSpecs) {
|
|
16064
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
16065
|
-
var error;
|
|
16066
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
16067
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
16068
|
-
// After these have been cleaned up, we'll let them throw.
|
|
16069
|
-
try {
|
|
16070
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
16071
|
-
// behavior as without this statement except with a better message.
|
|
16072
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
16073
|
-
var err = Error(
|
|
16074
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
16075
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
16076
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
16077
|
-
);
|
|
16078
|
-
err.name = 'Invariant Violation';
|
|
16079
|
-
throw err;
|
|
16080
|
-
}
|
|
16081
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
16082
|
-
} catch (ex) {
|
|
16083
|
-
error = ex;
|
|
16084
|
-
}
|
|
16085
|
-
if (error && !(error instanceof Error)) {
|
|
16086
|
-
printWarning(
|
|
16087
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
16088
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
16089
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
16090
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
16091
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
16092
|
-
'shape all require an argument).'
|
|
16093
|
-
);
|
|
16094
|
-
}
|
|
16095
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
16096
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
16097
|
-
// same error.
|
|
16098
|
-
loggedTypeFailures[error.message] = true;
|
|
16099
|
-
|
|
16100
|
-
var stack = getStack ? getStack() : '';
|
|
16101
|
-
|
|
16102
|
-
printWarning(
|
|
16103
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
16104
|
-
);
|
|
16105
|
-
}
|
|
16106
|
-
}
|
|
16107
|
-
}
|
|
16108
|
-
}
|
|
16109
|
-
}
|
|
16110
|
-
|
|
16111
|
-
/**
|
|
16112
|
-
* Resets warning cache when testing.
|
|
16113
|
-
*
|
|
16114
|
-
* @private
|
|
16115
|
-
*/
|
|
16116
|
-
checkPropTypes.resetWarningCache = function() {
|
|
16117
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16118
|
-
loggedTypeFailures = {};
|
|
16119
|
-
}
|
|
16120
|
-
};
|
|
16121
|
-
|
|
16122
|
-
checkPropTypes_1 = checkPropTypes;
|
|
16123
|
-
return checkPropTypes_1;
|
|
16124
|
-
}
|
|
16125
|
-
|
|
16126
|
-
/**
|
|
16127
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
16128
|
-
*
|
|
16129
|
-
* This source code is licensed under the MIT license found in the
|
|
16130
|
-
* LICENSE file in the root directory of this source tree.
|
|
16131
|
-
*/
|
|
16132
|
-
|
|
16133
|
-
var factoryWithTypeCheckers;
|
|
16134
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
16135
|
-
|
|
16136
|
-
function requireFactoryWithTypeCheckers () {
|
|
16137
|
-
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
16138
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
16139
|
-
|
|
16140
|
-
var ReactIs = requireReactIs();
|
|
16141
|
-
var assign = requireObjectAssign();
|
|
16142
|
-
|
|
16143
|
-
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
|
|
16144
|
-
var has = /*@__PURE__*/ requireHas();
|
|
16145
|
-
var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes();
|
|
16146
|
-
|
|
16147
|
-
var printWarning = function() {};
|
|
16148
|
-
|
|
16149
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16150
|
-
printWarning = function(text) {
|
|
16151
|
-
var message = 'Warning: ' + text;
|
|
16152
|
-
if (typeof console !== 'undefined') {
|
|
16153
|
-
console.error(message);
|
|
16154
|
-
}
|
|
16155
|
-
try {
|
|
16156
|
-
// --- Welcome to debugging React ---
|
|
16157
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
16158
|
-
// to find the callsite that caused this warning to fire.
|
|
16159
|
-
throw new Error(message);
|
|
16160
|
-
} catch (x) {}
|
|
16161
|
-
};
|
|
16162
|
-
}
|
|
16163
|
-
|
|
16164
|
-
function emptyFunctionThatReturnsNull() {
|
|
16165
|
-
return null;
|
|
16166
|
-
}
|
|
16167
|
-
|
|
16168
|
-
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
16169
|
-
/* global Symbol */
|
|
16170
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
16171
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
16172
|
-
|
|
16173
|
-
/**
|
|
16174
|
-
* Returns the iterator method function contained on the iterable object.
|
|
16175
|
-
*
|
|
16176
|
-
* Be sure to invoke the function with the iterable as context:
|
|
16177
|
-
*
|
|
16178
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
16179
|
-
* if (iteratorFn) {
|
|
16180
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
16181
|
-
* ...
|
|
16182
|
-
* }
|
|
16183
|
-
*
|
|
16184
|
-
* @param {?object} maybeIterable
|
|
16185
|
-
* @return {?function}
|
|
16186
|
-
*/
|
|
16187
|
-
function getIteratorFn(maybeIterable) {
|
|
16188
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
16189
|
-
if (typeof iteratorFn === 'function') {
|
|
16190
|
-
return iteratorFn;
|
|
16191
|
-
}
|
|
16192
|
-
}
|
|
16193
|
-
|
|
16194
|
-
/**
|
|
16195
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
16196
|
-
* supplied to React components. Example usage:
|
|
16197
|
-
*
|
|
16198
|
-
* var Props = require('ReactPropTypes');
|
|
16199
|
-
* var MyArticle = React.createClass({
|
|
16200
|
-
* propTypes: {
|
|
16201
|
-
* // An optional string prop named "description".
|
|
16202
|
-
* description: Props.string,
|
|
16203
|
-
*
|
|
16204
|
-
* // A required enum prop named "category".
|
|
16205
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
16206
|
-
*
|
|
16207
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
16208
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
16209
|
-
* },
|
|
16210
|
-
* render: function() { ... }
|
|
16211
|
-
* });
|
|
16212
|
-
*
|
|
16213
|
-
* A more formal specification of how these methods are used:
|
|
16214
|
-
*
|
|
16215
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
16216
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
16217
|
-
*
|
|
16218
|
-
* Each and every declaration produces a function with the same signature. This
|
|
16219
|
-
* allows the creation of custom validation functions. For example:
|
|
16220
|
-
*
|
|
16221
|
-
* var MyLink = React.createClass({
|
|
16222
|
-
* propTypes: {
|
|
16223
|
-
* // An optional string or URI prop named "href".
|
|
16224
|
-
* href: function(props, propName, componentName) {
|
|
16225
|
-
* var propValue = props[propName];
|
|
16226
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
16227
|
-
* !(propValue instanceof URI)) {
|
|
16228
|
-
* return new Error(
|
|
16229
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
16230
|
-
* componentName
|
|
16231
|
-
* );
|
|
16232
|
-
* }
|
|
16233
|
-
* }
|
|
16234
|
-
* },
|
|
16235
|
-
* render: function() {...}
|
|
16236
|
-
* });
|
|
16237
|
-
*
|
|
16238
|
-
* @internal
|
|
16239
|
-
*/
|
|
16240
|
-
|
|
16241
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
16242
|
-
|
|
16243
|
-
// Important!
|
|
16244
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
16245
|
-
var ReactPropTypes = {
|
|
16246
|
-
array: createPrimitiveTypeChecker('array'),
|
|
16247
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
16248
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
16249
|
-
func: createPrimitiveTypeChecker('function'),
|
|
16250
|
-
number: createPrimitiveTypeChecker('number'),
|
|
16251
|
-
object: createPrimitiveTypeChecker('object'),
|
|
16252
|
-
string: createPrimitiveTypeChecker('string'),
|
|
16253
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
16254
|
-
|
|
16255
|
-
any: createAnyTypeChecker(),
|
|
16256
|
-
arrayOf: createArrayOfTypeChecker,
|
|
16257
|
-
element: createElementTypeChecker(),
|
|
16258
|
-
elementType: createElementTypeTypeChecker(),
|
|
16259
|
-
instanceOf: createInstanceTypeChecker,
|
|
16260
|
-
node: createNodeChecker(),
|
|
16261
|
-
objectOf: createObjectOfTypeChecker,
|
|
16262
|
-
oneOf: createEnumTypeChecker,
|
|
16263
|
-
oneOfType: createUnionTypeChecker,
|
|
16264
|
-
shape: createShapeTypeChecker,
|
|
16265
|
-
exact: createStrictShapeTypeChecker,
|
|
16266
|
-
};
|
|
16267
|
-
|
|
16268
|
-
/**
|
|
16269
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
16270
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
16271
|
-
*/
|
|
16272
|
-
/*eslint-disable no-self-compare*/
|
|
16273
|
-
function is(x, y) {
|
|
16274
|
-
// SameValue algorithm
|
|
16275
|
-
if (x === y) {
|
|
16276
|
-
// Steps 1-5, 7-10
|
|
16277
|
-
// Steps 6.b-6.e: +0 != -0
|
|
16278
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
16279
|
-
} else {
|
|
16280
|
-
// Step 6.a: NaN == NaN
|
|
16281
|
-
return x !== x && y !== y;
|
|
16282
|
-
}
|
|
16283
|
-
}
|
|
16284
|
-
/*eslint-enable no-self-compare*/
|
|
16285
|
-
|
|
16286
|
-
/**
|
|
16287
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
16288
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
16289
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
16290
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
16291
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
16292
|
-
*/
|
|
16293
|
-
function PropTypeError(message, data) {
|
|
16294
|
-
this.message = message;
|
|
16295
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
16296
|
-
this.stack = '';
|
|
16297
|
-
}
|
|
16298
|
-
// Make `instanceof Error` still work for returned errors.
|
|
16299
|
-
PropTypeError.prototype = Error.prototype;
|
|
16300
|
-
|
|
16301
|
-
function createChainableTypeChecker(validate) {
|
|
16302
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16303
|
-
var manualPropTypeCallCache = {};
|
|
16304
|
-
var manualPropTypeWarningCount = 0;
|
|
16305
|
-
}
|
|
16306
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
16307
|
-
componentName = componentName || ANONYMOUS;
|
|
16308
|
-
propFullName = propFullName || propName;
|
|
16309
|
-
|
|
16310
|
-
if (secret !== ReactPropTypesSecret) {
|
|
16311
|
-
if (throwOnDirectAccess) {
|
|
16312
|
-
// New behavior only for users of `prop-types` package
|
|
16313
|
-
var err = new Error(
|
|
16314
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
16315
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
16316
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
16317
|
-
);
|
|
16318
|
-
err.name = 'Invariant Violation';
|
|
16319
|
-
throw err;
|
|
16320
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
16321
|
-
// Old behavior for people using React.PropTypes
|
|
16322
|
-
var cacheKey = componentName + ':' + propName;
|
|
16323
|
-
if (
|
|
16324
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
16325
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
16326
|
-
manualPropTypeWarningCount < 3
|
|
16327
|
-
) {
|
|
16328
|
-
printWarning(
|
|
16329
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
16330
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
16331
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
16332
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
16333
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
16334
|
-
);
|
|
16335
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
16336
|
-
manualPropTypeWarningCount++;
|
|
16337
|
-
}
|
|
16338
|
-
}
|
|
16339
|
-
}
|
|
16340
|
-
if (props[propName] == null) {
|
|
16341
|
-
if (isRequired) {
|
|
16342
|
-
if (props[propName] === null) {
|
|
16343
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
16344
|
-
}
|
|
16345
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
16346
|
-
}
|
|
16347
|
-
return null;
|
|
16348
|
-
} else {
|
|
16349
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
16350
|
-
}
|
|
16351
|
-
}
|
|
16352
|
-
|
|
16353
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
16354
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
16355
|
-
|
|
16356
|
-
return chainedCheckType;
|
|
16357
|
-
}
|
|
16358
|
-
|
|
16359
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
16360
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
16361
|
-
var propValue = props[propName];
|
|
16362
|
-
var propType = getPropType(propValue);
|
|
16363
|
-
if (propType !== expectedType) {
|
|
16364
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
16365
|
-
// check, but we can offer a more precise error message here rather than
|
|
16366
|
-
// 'of type `object`'.
|
|
16367
|
-
var preciseType = getPreciseType(propValue);
|
|
16368
|
-
|
|
16369
|
-
return new PropTypeError(
|
|
16370
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
16371
|
-
{expectedType: expectedType}
|
|
16372
|
-
);
|
|
16373
|
-
}
|
|
16374
|
-
return null;
|
|
16375
|
-
}
|
|
16376
|
-
return createChainableTypeChecker(validate);
|
|
16377
|
-
}
|
|
16378
|
-
|
|
16379
|
-
function createAnyTypeChecker() {
|
|
16380
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
16381
|
-
}
|
|
16382
|
-
|
|
16383
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
16384
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16385
|
-
if (typeof typeChecker !== 'function') {
|
|
16386
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
16387
|
-
}
|
|
16388
|
-
var propValue = props[propName];
|
|
16389
|
-
if (!Array.isArray(propValue)) {
|
|
16390
|
-
var propType = getPropType(propValue);
|
|
16391
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
16392
|
-
}
|
|
16393
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
16394
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
16395
|
-
if (error instanceof Error) {
|
|
16396
|
-
return error;
|
|
16397
|
-
}
|
|
16398
|
-
}
|
|
16399
|
-
return null;
|
|
16400
|
-
}
|
|
16401
|
-
return createChainableTypeChecker(validate);
|
|
16402
|
-
}
|
|
16403
|
-
|
|
16404
|
-
function createElementTypeChecker() {
|
|
16405
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16406
|
-
var propValue = props[propName];
|
|
16407
|
-
if (!isValidElement(propValue)) {
|
|
16408
|
-
var propType = getPropType(propValue);
|
|
16409
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
16410
|
-
}
|
|
16411
|
-
return null;
|
|
16412
|
-
}
|
|
16413
|
-
return createChainableTypeChecker(validate);
|
|
16414
|
-
}
|
|
16415
|
-
|
|
16416
|
-
function createElementTypeTypeChecker() {
|
|
16417
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16418
|
-
var propValue = props[propName];
|
|
16419
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
16420
|
-
var propType = getPropType(propValue);
|
|
16421
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
16422
|
-
}
|
|
16423
|
-
return null;
|
|
16424
|
-
}
|
|
16425
|
-
return createChainableTypeChecker(validate);
|
|
16426
|
-
}
|
|
16427
|
-
|
|
16428
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
16429
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16430
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
16431
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
16432
|
-
var actualClassName = getClassName(props[propName]);
|
|
16433
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
16434
|
-
}
|
|
16435
|
-
return null;
|
|
16436
|
-
}
|
|
16437
|
-
return createChainableTypeChecker(validate);
|
|
16438
|
-
}
|
|
16439
|
-
|
|
16440
|
-
function createEnumTypeChecker(expectedValues) {
|
|
16441
|
-
if (!Array.isArray(expectedValues)) {
|
|
16442
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16443
|
-
if (arguments.length > 1) {
|
|
16444
|
-
printWarning(
|
|
16445
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
16446
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
16447
|
-
);
|
|
16448
|
-
} else {
|
|
16449
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
16450
|
-
}
|
|
16451
|
-
}
|
|
16452
|
-
return emptyFunctionThatReturnsNull;
|
|
16453
|
-
}
|
|
16454
|
-
|
|
16455
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16456
|
-
var propValue = props[propName];
|
|
16457
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
16458
|
-
if (is(propValue, expectedValues[i])) {
|
|
16459
|
-
return null;
|
|
16460
|
-
}
|
|
16461
|
-
}
|
|
16462
|
-
|
|
16463
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
16464
|
-
var type = getPreciseType(value);
|
|
16465
|
-
if (type === 'symbol') {
|
|
16466
|
-
return String(value);
|
|
16467
|
-
}
|
|
16468
|
-
return value;
|
|
16469
|
-
});
|
|
16470
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
16471
|
-
}
|
|
16472
|
-
return createChainableTypeChecker(validate);
|
|
16473
|
-
}
|
|
16474
|
-
|
|
16475
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
16476
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16477
|
-
if (typeof typeChecker !== 'function') {
|
|
16478
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
16479
|
-
}
|
|
16480
|
-
var propValue = props[propName];
|
|
16481
|
-
var propType = getPropType(propValue);
|
|
16482
|
-
if (propType !== 'object') {
|
|
16483
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
16484
|
-
}
|
|
16485
|
-
for (var key in propValue) {
|
|
16486
|
-
if (has(propValue, key)) {
|
|
16487
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
16488
|
-
if (error instanceof Error) {
|
|
16489
|
-
return error;
|
|
16490
|
-
}
|
|
16491
|
-
}
|
|
16492
|
-
}
|
|
16493
|
-
return null;
|
|
16494
|
-
}
|
|
16495
|
-
return createChainableTypeChecker(validate);
|
|
16496
|
-
}
|
|
16497
|
-
|
|
16498
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
16499
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
16500
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
16501
|
-
return emptyFunctionThatReturnsNull;
|
|
16502
|
-
}
|
|
16503
|
-
|
|
16504
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
16505
|
-
var checker = arrayOfTypeCheckers[i];
|
|
16506
|
-
if (typeof checker !== 'function') {
|
|
16507
|
-
printWarning(
|
|
16508
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
16509
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
16510
|
-
);
|
|
16511
|
-
return emptyFunctionThatReturnsNull;
|
|
16512
|
-
}
|
|
16513
|
-
}
|
|
16514
|
-
|
|
16515
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16516
|
-
var expectedTypes = [];
|
|
16517
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
16518
|
-
var checker = arrayOfTypeCheckers[i];
|
|
16519
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
16520
|
-
if (checkerResult == null) {
|
|
16521
|
-
return null;
|
|
16522
|
-
}
|
|
16523
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
16524
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
16525
|
-
}
|
|
16526
|
-
}
|
|
16527
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
16528
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
16529
|
-
}
|
|
16530
|
-
return createChainableTypeChecker(validate);
|
|
16531
|
-
}
|
|
16532
|
-
|
|
16533
|
-
function createNodeChecker() {
|
|
16534
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16535
|
-
if (!isNode(props[propName])) {
|
|
16536
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
16537
|
-
}
|
|
16538
|
-
return null;
|
|
16539
|
-
}
|
|
16540
|
-
return createChainableTypeChecker(validate);
|
|
16541
|
-
}
|
|
16542
|
-
|
|
16543
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
16544
|
-
return new PropTypeError(
|
|
16545
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
16546
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
16547
|
-
);
|
|
16548
|
-
}
|
|
16549
|
-
|
|
16550
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
16551
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16552
|
-
var propValue = props[propName];
|
|
16553
|
-
var propType = getPropType(propValue);
|
|
16554
|
-
if (propType !== 'object') {
|
|
16555
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
16556
|
-
}
|
|
16557
|
-
for (var key in shapeTypes) {
|
|
16558
|
-
var checker = shapeTypes[key];
|
|
16559
|
-
if (typeof checker !== 'function') {
|
|
16560
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
16561
|
-
}
|
|
16562
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
16563
|
-
if (error) {
|
|
16564
|
-
return error;
|
|
16565
|
-
}
|
|
16566
|
-
}
|
|
16567
|
-
return null;
|
|
16568
|
-
}
|
|
16569
|
-
return createChainableTypeChecker(validate);
|
|
16570
|
-
}
|
|
16571
|
-
|
|
16572
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
16573
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
16574
|
-
var propValue = props[propName];
|
|
16575
|
-
var propType = getPropType(propValue);
|
|
16576
|
-
if (propType !== 'object') {
|
|
16577
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
16578
|
-
}
|
|
16579
|
-
// We need to check all keys in case some are required but missing from props.
|
|
16580
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
16581
|
-
for (var key in allKeys) {
|
|
16582
|
-
var checker = shapeTypes[key];
|
|
16583
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
16584
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
16585
|
-
}
|
|
16586
|
-
if (!checker) {
|
|
16587
|
-
return new PropTypeError(
|
|
16588
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
16589
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
16590
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
16591
|
-
);
|
|
16592
|
-
}
|
|
16593
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
16594
|
-
if (error) {
|
|
16595
|
-
return error;
|
|
16596
|
-
}
|
|
16597
|
-
}
|
|
16598
|
-
return null;
|
|
16599
|
-
}
|
|
16600
|
-
|
|
16601
|
-
return createChainableTypeChecker(validate);
|
|
16602
|
-
}
|
|
16603
|
-
|
|
16604
|
-
function isNode(propValue) {
|
|
16605
|
-
switch (typeof propValue) {
|
|
16606
|
-
case 'number':
|
|
16607
|
-
case 'string':
|
|
16608
|
-
case 'undefined':
|
|
16609
|
-
return true;
|
|
16610
|
-
case 'boolean':
|
|
16611
|
-
return !propValue;
|
|
16612
|
-
case 'object':
|
|
16613
|
-
if (Array.isArray(propValue)) {
|
|
16614
|
-
return propValue.every(isNode);
|
|
16615
|
-
}
|
|
16616
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
16617
|
-
return true;
|
|
16618
|
-
}
|
|
16619
|
-
|
|
16620
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
16621
|
-
if (iteratorFn) {
|
|
16622
|
-
var iterator = iteratorFn.call(propValue);
|
|
16623
|
-
var step;
|
|
16624
|
-
if (iteratorFn !== propValue.entries) {
|
|
16625
|
-
while (!(step = iterator.next()).done) {
|
|
16626
|
-
if (!isNode(step.value)) {
|
|
16627
|
-
return false;
|
|
16628
|
-
}
|
|
16629
|
-
}
|
|
16630
|
-
} else {
|
|
16631
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
16632
|
-
while (!(step = iterator.next()).done) {
|
|
16633
|
-
var entry = step.value;
|
|
16634
|
-
if (entry) {
|
|
16635
|
-
if (!isNode(entry[1])) {
|
|
16636
|
-
return false;
|
|
16637
|
-
}
|
|
16638
|
-
}
|
|
16639
|
-
}
|
|
16640
|
-
}
|
|
16641
|
-
} else {
|
|
16642
|
-
return false;
|
|
16643
|
-
}
|
|
16644
|
-
|
|
16645
|
-
return true;
|
|
16646
|
-
default:
|
|
16647
|
-
return false;
|
|
16648
|
-
}
|
|
16649
|
-
}
|
|
16650
|
-
|
|
16651
|
-
function isSymbol(propType, propValue) {
|
|
16652
|
-
// Native Symbol.
|
|
16653
|
-
if (propType === 'symbol') {
|
|
16654
|
-
return true;
|
|
16655
|
-
}
|
|
16656
|
-
|
|
16657
|
-
// falsy value can't be a Symbol
|
|
16658
|
-
if (!propValue) {
|
|
16659
|
-
return false;
|
|
16660
|
-
}
|
|
16661
|
-
|
|
16662
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
16663
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
16664
|
-
return true;
|
|
16665
|
-
}
|
|
16666
|
-
|
|
16667
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
16668
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
16669
|
-
return true;
|
|
16670
|
-
}
|
|
16671
|
-
|
|
16672
|
-
return false;
|
|
16673
|
-
}
|
|
16674
|
-
|
|
16675
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
16676
|
-
function getPropType(propValue) {
|
|
16677
|
-
var propType = typeof propValue;
|
|
16678
|
-
if (Array.isArray(propValue)) {
|
|
16679
|
-
return 'array';
|
|
16680
|
-
}
|
|
16681
|
-
if (propValue instanceof RegExp) {
|
|
16682
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
16683
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
16684
|
-
// passes PropTypes.object.
|
|
16685
|
-
return 'object';
|
|
16686
|
-
}
|
|
16687
|
-
if (isSymbol(propType, propValue)) {
|
|
16688
|
-
return 'symbol';
|
|
16689
|
-
}
|
|
16690
|
-
return propType;
|
|
16691
|
-
}
|
|
16692
|
-
|
|
16693
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
16694
|
-
// See `createPrimitiveTypeChecker`.
|
|
16695
|
-
function getPreciseType(propValue) {
|
|
16696
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
16697
|
-
return '' + propValue;
|
|
16698
|
-
}
|
|
16699
|
-
var propType = getPropType(propValue);
|
|
16700
|
-
if (propType === 'object') {
|
|
16701
|
-
if (propValue instanceof Date) {
|
|
16702
|
-
return 'date';
|
|
16703
|
-
} else if (propValue instanceof RegExp) {
|
|
16704
|
-
return 'regexp';
|
|
16705
|
-
}
|
|
16706
|
-
}
|
|
16707
|
-
return propType;
|
|
16708
|
-
}
|
|
16709
|
-
|
|
16710
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
16711
|
-
// For example, "undefined" or "of type array"
|
|
16712
|
-
function getPostfixForTypeWarning(value) {
|
|
16713
|
-
var type = getPreciseType(value);
|
|
16714
|
-
switch (type) {
|
|
16715
|
-
case 'array':
|
|
16716
|
-
case 'object':
|
|
16717
|
-
return 'an ' + type;
|
|
16718
|
-
case 'boolean':
|
|
16719
|
-
case 'date':
|
|
16720
|
-
case 'regexp':
|
|
16721
|
-
return 'a ' + type;
|
|
16722
|
-
default:
|
|
16723
|
-
return type;
|
|
16724
|
-
}
|
|
16725
|
-
}
|
|
16726
|
-
|
|
16727
|
-
// Returns class name of the object, if any.
|
|
16728
|
-
function getClassName(propValue) {
|
|
16729
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
16730
|
-
return ANONYMOUS;
|
|
16731
|
-
}
|
|
16732
|
-
return propValue.constructor.name;
|
|
16733
|
-
}
|
|
16734
|
-
|
|
16735
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
16736
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
16737
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
16738
|
-
|
|
16739
|
-
return ReactPropTypes;
|
|
16740
|
-
};
|
|
16741
|
-
return factoryWithTypeCheckers;
|
|
16742
|
-
}
|
|
16743
|
-
|
|
16744
13571
|
/**
|
|
16745
13572
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
16746
13573
|
*
|
|
@@ -16824,14 +13651,7 @@ var hasRequiredPropTypes;
|
|
|
16824
13651
|
function requirePropTypes () {
|
|
16825
13652
|
if (hasRequiredPropTypes) return propTypes.exports;
|
|
16826
13653
|
hasRequiredPropTypes = 1;
|
|
16827
|
-
|
|
16828
|
-
var ReactIs = requireReactIs();
|
|
16829
|
-
|
|
16830
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
16831
|
-
// http://fb.me/prop-types-in-prod
|
|
16832
|
-
var throwOnDirectAccess = true;
|
|
16833
|
-
propTypes.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
16834
|
-
} else {
|
|
13654
|
+
{
|
|
16835
13655
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
16836
13656
|
// http://fb.me/prop-types-in-prod
|
|
16837
13657
|
propTypes.exports = /*@__PURE__*/ requireFactoryWithThrowingShims()();
|