@daryasidorovich/modsen-datepicker 1.0.8 → 1.0.9

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