@nibssplc/cams-sdk-react 0.0.1-beta.16 → 0.0.1-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -39,6 +39,29 @@ PERFORMANCE OF THIS SOFTWARE.
39
39
  /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
40
40
 
41
41
 
42
+ var __assign = function() {
43
+ __assign = Object.assign || function __assign(t) {
44
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
45
+ s = arguments[i];
46
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
47
+ }
48
+ return t;
49
+ };
50
+ return __assign.apply(this, arguments);
51
+ };
52
+
53
+ function __rest(s, e) {
54
+ var t = {};
55
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
+ t[p] = s[p];
57
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
+ t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ }
64
+
42
65
  function __awaiter(thisArg, _arguments, P, generator) {
43
66
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
44
67
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -16830,26 +16853,47 @@ function useCAMSMSALAuth(options) {
16830
16853
 
16831
16854
  var jsxRuntime = {exports: {}};
16832
16855
 
16833
- var reactJsxRuntime_production_min = {};
16856
+ var reactJsxRuntime_production = {};
16834
16857
 
16835
16858
  /**
16836
16859
  * @license React
16837
- * react-jsx-runtime.production.min.js
16860
+ * react-jsx-runtime.production.js
16838
16861
  *
16839
- * Copyright (c) Facebook, Inc. and its affiliates.
16862
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
16840
16863
  *
16841
16864
  * This source code is licensed under the MIT license found in the
16842
16865
  * LICENSE file in the root directory of this source tree.
16843
16866
  */
16844
16867
 
16845
- var hasRequiredReactJsxRuntime_production_min;
16846
-
16847
- function requireReactJsxRuntime_production_min () {
16848
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
16849
- hasRequiredReactJsxRuntime_production_min = 1;
16850
- var f=React__default,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
16851
- function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
16852
- return reactJsxRuntime_production_min;
16868
+ var hasRequiredReactJsxRuntime_production;
16869
+
16870
+ function requireReactJsxRuntime_production () {
16871
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
16872
+ hasRequiredReactJsxRuntime_production = 1;
16873
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
16874
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
16875
+ function jsxProd(type, config, maybeKey) {
16876
+ var key = null;
16877
+ void 0 !== maybeKey && (key = "" + maybeKey);
16878
+ void 0 !== config.key && (key = "" + config.key);
16879
+ if ("key" in config) {
16880
+ maybeKey = {};
16881
+ for (var propName in config)
16882
+ "key" !== propName && (maybeKey[propName] = config[propName]);
16883
+ } else maybeKey = config;
16884
+ config = maybeKey.ref;
16885
+ return {
16886
+ $$typeof: REACT_ELEMENT_TYPE,
16887
+ type: type,
16888
+ key: key,
16889
+ ref: void 0 !== config ? config : null,
16890
+ props: maybeKey
16891
+ };
16892
+ }
16893
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
16894
+ reactJsxRuntime_production.jsx = jsxProd;
16895
+ reactJsxRuntime_production.jsxs = jsxProd;
16896
+ return reactJsxRuntime_production;
16853
16897
  }
16854
16898
 
16855
16899
  var reactJsxRuntime_development = {};
@@ -16858,7 +16902,7 @@ var reactJsxRuntime_development = {};
16858
16902
  * @license React
16859
16903
  * react-jsx-runtime.development.js
16860
16904
  *
16861
- * Copyright (c) Facebook, Inc. and its affiliates.
16905
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
16862
16906
  *
16863
16907
  * This source code is licensed under the MIT license found in the
16864
16908
  * LICENSE file in the root directory of this source tree.
@@ -16869,1334 +16913,383 @@ var hasRequiredReactJsxRuntime_development;
16869
16913
  function requireReactJsxRuntime_development () {
16870
16914
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
16871
16915
  hasRequiredReactJsxRuntime_development = 1;
16872
-
16873
- if (process.env.NODE_ENV !== "production") {
16874
- (function() {
16875
-
16876
- var React = React__default;
16877
-
16878
- // ATTENTION
16879
- // When adding new symbols to this file,
16880
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
16881
- // The Symbol used to tag the ReactElement-like types.
16882
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
16883
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
16884
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
16885
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
16886
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
16887
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
16888
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
16889
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
16890
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
16891
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
16892
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
16893
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
16894
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
16895
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
16896
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
16897
- function getIteratorFn(maybeIterable) {
16898
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
16899
- return null;
16900
- }
16901
-
16902
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
16903
-
16904
- if (typeof maybeIterator === 'function') {
16905
- return maybeIterator;
16906
- }
16907
-
16908
- return null;
16909
- }
16910
-
16911
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
16912
-
16913
- function error(format) {
16914
- {
16915
- {
16916
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
16917
- args[_key2 - 1] = arguments[_key2];
16916
+ "production" !== process.env.NODE_ENV &&
16917
+ (function () {
16918
+ function getComponentNameFromType(type) {
16919
+ if (null == type) return null;
16920
+ if ("function" === typeof type)
16921
+ return type.$$typeof === REACT_CLIENT_REFERENCE
16922
+ ? null
16923
+ : type.displayName || type.name || null;
16924
+ if ("string" === typeof type) return type;
16925
+ switch (type) {
16926
+ case REACT_FRAGMENT_TYPE:
16927
+ return "Fragment";
16928
+ case REACT_PROFILER_TYPE:
16929
+ return "Profiler";
16930
+ case REACT_STRICT_MODE_TYPE:
16931
+ return "StrictMode";
16932
+ case REACT_SUSPENSE_TYPE:
16933
+ return "Suspense";
16934
+ case REACT_SUSPENSE_LIST_TYPE:
16935
+ return "SuspenseList";
16936
+ case REACT_ACTIVITY_TYPE:
16937
+ return "Activity";
16918
16938
  }
16919
-
16920
- printWarning('error', format, args);
16921
- }
16922
- }
16923
- }
16924
-
16925
- function printWarning(level, format, args) {
16926
- // When changing this logic, you might want to also
16927
- // update consoleWithStackDev.www.js as well.
16928
- {
16929
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
16930
- var stack = ReactDebugCurrentFrame.getStackAddendum();
16931
-
16932
- if (stack !== '') {
16933
- format += '%s';
16934
- args = args.concat([stack]);
16935
- } // eslint-disable-next-line react-internal/safe-string-coercion
16936
-
16937
-
16938
- var argsWithFormat = args.map(function (item) {
16939
- return String(item);
16940
- }); // Careful: RN currently depends on this prefix
16941
-
16942
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
16943
- // breaks IE9: https://github.com/facebook/react/issues/13610
16944
- // eslint-disable-next-line react-internal/no-production-logging
16945
-
16946
- Function.prototype.apply.call(console[level], console, argsWithFormat);
16947
- }
16948
- }
16949
-
16950
- // -----------------------------------------------------------------------------
16951
-
16952
- var enableScopeAPI = false; // Experimental Create Event Handle API.
16953
- var enableCacheElement = false;
16954
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
16955
-
16956
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
16957
- // stuff. Intended to enable React core members to more easily debug scheduling
16958
- // issues in DEV builds.
16959
-
16960
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
16961
-
16962
- var REACT_MODULE_REFERENCE;
16963
-
16964
- {
16965
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
16966
- }
16967
-
16968
- function isValidElementType(type) {
16969
- if (typeof type === 'string' || typeof type === 'function') {
16970
- return true;
16971
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
16972
-
16973
-
16974
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
16975
- return true;
16976
- }
16977
-
16978
- if (typeof type === 'object' && type !== null) {
16979
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
16980
- // types supported by any Flight configuration anywhere since
16981
- // we don't know which Flight build this will end up being used
16982
- // with.
16983
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
16984
- return true;
16985
- }
16986
- }
16987
-
16988
- return false;
16989
- }
16990
-
16991
- function getWrappedName(outerType, innerType, wrapperName) {
16992
- var displayName = outerType.displayName;
16993
-
16994
- if (displayName) {
16995
- return displayName;
16996
- }
16997
-
16998
- var functionName = innerType.displayName || innerType.name || '';
16999
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
17000
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
17001
-
17002
-
17003
- function getContextName(type) {
17004
- return type.displayName || 'Context';
17005
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
17006
-
17007
-
17008
- function getComponentNameFromType(type) {
17009
- if (type == null) {
17010
- // Host root, text node or just invalid type.
17011
- return null;
17012
- }
17013
-
17014
- {
17015
- if (typeof type.tag === 'number') {
17016
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
17017
- }
17018
- }
17019
-
17020
- if (typeof type === 'function') {
17021
- return type.displayName || type.name || null;
17022
- }
17023
-
17024
- if (typeof type === 'string') {
17025
- return type;
17026
- }
17027
-
17028
- switch (type) {
17029
- case REACT_FRAGMENT_TYPE:
17030
- return 'Fragment';
17031
-
17032
- case REACT_PORTAL_TYPE:
17033
- return 'Portal';
17034
-
17035
- case REACT_PROFILER_TYPE:
17036
- return 'Profiler';
17037
-
17038
- case REACT_STRICT_MODE_TYPE:
17039
- return 'StrictMode';
17040
-
17041
- case REACT_SUSPENSE_TYPE:
17042
- return 'Suspense';
17043
-
17044
- case REACT_SUSPENSE_LIST_TYPE:
17045
- return 'SuspenseList';
17046
-
17047
- }
17048
-
17049
- if (typeof type === 'object') {
17050
- switch (type.$$typeof) {
17051
- case REACT_CONTEXT_TYPE:
17052
- var context = type;
17053
- return getContextName(context) + '.Consumer';
17054
-
17055
- case REACT_PROVIDER_TYPE:
17056
- var provider = type;
17057
- return getContextName(provider._context) + '.Provider';
17058
-
17059
- case REACT_FORWARD_REF_TYPE:
17060
- return getWrappedName(type, type.render, 'ForwardRef');
17061
-
17062
- case REACT_MEMO_TYPE:
17063
- var outerName = type.displayName || null;
17064
-
17065
- if (outerName !== null) {
17066
- return outerName;
17067
- }
17068
-
17069
- return getComponentNameFromType(type.type) || 'Memo';
17070
-
17071
- case REACT_LAZY_TYPE:
17072
- {
17073
- var lazyComponent = type;
17074
- var payload = lazyComponent._payload;
17075
- var init = lazyComponent._init;
17076
-
17077
- try {
17078
- return getComponentNameFromType(init(payload));
17079
- } catch (x) {
17080
- return null;
17081
- }
16939
+ if ("object" === typeof type)
16940
+ switch (
16941
+ ("number" === typeof type.tag &&
16942
+ console.error(
16943
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
16944
+ ),
16945
+ type.$$typeof)
16946
+ ) {
16947
+ case REACT_PORTAL_TYPE:
16948
+ return "Portal";
16949
+ case REACT_CONTEXT_TYPE:
16950
+ return (type.displayName || "Context") + ".Provider";
16951
+ case REACT_CONSUMER_TYPE:
16952
+ return (type._context.displayName || "Context") + ".Consumer";
16953
+ case REACT_FORWARD_REF_TYPE:
16954
+ var innerType = type.render;
16955
+ type = type.displayName;
16956
+ type ||
16957
+ ((type = innerType.displayName || innerType.name || ""),
16958
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
16959
+ return type;
16960
+ case REACT_MEMO_TYPE:
16961
+ return (
16962
+ (innerType = type.displayName || null),
16963
+ null !== innerType
16964
+ ? innerType
16965
+ : getComponentNameFromType(type.type) || "Memo"
16966
+ );
16967
+ case REACT_LAZY_TYPE:
16968
+ innerType = type._payload;
16969
+ type = type._init;
16970
+ try {
16971
+ return getComponentNameFromType(type(innerType));
16972
+ } catch (x) {}
17082
16973
  }
17083
-
17084
- // eslint-disable-next-line no-fallthrough
17085
- }
17086
- }
17087
-
17088
- return null;
17089
- }
17090
-
17091
- var assign = Object.assign;
17092
-
17093
- // Helpers to patch console.logs to avoid logging during side-effect free
17094
- // replaying on render function. This currently only patches the object
17095
- // lazily which won't cover if the log function was extracted eagerly.
17096
- // We could also eagerly patch the method.
17097
- var disabledDepth = 0;
17098
- var prevLog;
17099
- var prevInfo;
17100
- var prevWarn;
17101
- var prevError;
17102
- var prevGroup;
17103
- var prevGroupCollapsed;
17104
- var prevGroupEnd;
17105
-
17106
- function disabledLog() {}
17107
-
17108
- disabledLog.__reactDisabledLog = true;
17109
- function disableLogs() {
17110
- {
17111
- if (disabledDepth === 0) {
17112
- /* eslint-disable react-internal/no-production-logging */
17113
- prevLog = console.log;
17114
- prevInfo = console.info;
17115
- prevWarn = console.warn;
17116
- prevError = console.error;
17117
- prevGroup = console.group;
17118
- prevGroupCollapsed = console.groupCollapsed;
17119
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
17120
-
17121
- var props = {
17122
- configurable: true,
17123
- enumerable: true,
17124
- value: disabledLog,
17125
- writable: true
17126
- }; // $FlowFixMe Flow thinks console is immutable.
17127
-
17128
- Object.defineProperties(console, {
17129
- info: props,
17130
- log: props,
17131
- warn: props,
17132
- error: props,
17133
- group: props,
17134
- groupCollapsed: props,
17135
- groupEnd: props
17136
- });
17137
- /* eslint-enable react-internal/no-production-logging */
16974
+ return null;
17138
16975
  }
17139
-
17140
- disabledDepth++;
17141
- }
17142
- }
17143
- function reenableLogs() {
17144
- {
17145
- disabledDepth--;
17146
-
17147
- if (disabledDepth === 0) {
17148
- /* eslint-disable react-internal/no-production-logging */
17149
- var props = {
17150
- configurable: true,
17151
- enumerable: true,
17152
- writable: true
17153
- }; // $FlowFixMe Flow thinks console is immutable.
17154
-
17155
- Object.defineProperties(console, {
17156
- log: assign({}, props, {
17157
- value: prevLog
17158
- }),
17159
- info: assign({}, props, {
17160
- value: prevInfo
17161
- }),
17162
- warn: assign({}, props, {
17163
- value: prevWarn
17164
- }),
17165
- error: assign({}, props, {
17166
- value: prevError
17167
- }),
17168
- group: assign({}, props, {
17169
- value: prevGroup
17170
- }),
17171
- groupCollapsed: assign({}, props, {
17172
- value: prevGroupCollapsed
17173
- }),
17174
- groupEnd: assign({}, props, {
17175
- value: prevGroupEnd
17176
- })
17177
- });
17178
- /* eslint-enable react-internal/no-production-logging */
17179
- }
17180
-
17181
- if (disabledDepth < 0) {
17182
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
16976
+ function testStringCoercion(value) {
16977
+ return "" + value;
17183
16978
  }
17184
- }
17185
- }
17186
-
17187
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
17188
- var prefix;
17189
- function describeBuiltInComponentFrame(name, source, ownerFn) {
17190
- {
17191
- if (prefix === undefined) {
17192
- // Extract the VM specific prefix used by each line.
16979
+ function checkKeyStringCoercion(value) {
17193
16980
  try {
17194
- throw Error();
17195
- } catch (x) {
17196
- var match = x.stack.trim().match(/\n( *(at )?)/);
17197
- prefix = match && match[1] || '';
16981
+ testStringCoercion(value);
16982
+ var JSCompiler_inline_result = !1;
16983
+ } catch (e) {
16984
+ JSCompiler_inline_result = true;
17198
16985
  }
17199
- } // We use the prefix to ensure our stacks line up with native stack frames.
17200
-
17201
-
17202
- return '\n' + prefix + name;
17203
- }
17204
- }
17205
- var reentry = false;
17206
- var componentFrameCache;
17207
-
17208
- {
17209
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
17210
- componentFrameCache = new PossiblyWeakMap();
17211
- }
17212
-
17213
- function describeNativeComponentFrame(fn, construct) {
17214
- // If something asked for a stack inside a fake render, it should get ignored.
17215
- if ( !fn || reentry) {
17216
- return '';
17217
- }
17218
-
17219
- {
17220
- var frame = componentFrameCache.get(fn);
17221
-
17222
- if (frame !== undefined) {
17223
- return frame;
17224
- }
17225
- }
17226
-
17227
- var control;
17228
- reentry = true;
17229
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
17230
-
17231
- Error.prepareStackTrace = undefined;
17232
- var previousDispatcher;
17233
-
17234
- {
17235
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
17236
- // for warnings.
17237
-
17238
- ReactCurrentDispatcher.current = null;
17239
- disableLogs();
17240
- }
17241
-
17242
- try {
17243
- // This should throw.
17244
- if (construct) {
17245
- // Something should be setting the props in the constructor.
17246
- var Fake = function () {
17247
- throw Error();
17248
- }; // $FlowFixMe
17249
-
17250
-
17251
- Object.defineProperty(Fake.prototype, 'props', {
17252
- set: function () {
17253
- // We use a throwing setter instead of frozen or non-writable props
17254
- // because that won't throw in a non-strict mode function.
17255
- throw Error();
17256
- }
17257
- });
17258
-
17259
- if (typeof Reflect === 'object' && Reflect.construct) {
17260
- // We construct a different control for this case to include any extra
17261
- // frames added by the construct call.
17262
- try {
17263
- Reflect.construct(Fake, []);
17264
- } catch (x) {
17265
- control = x;
17266
- }
17267
-
17268
- Reflect.construct(fn, [], Fake);
17269
- } else {
17270
- try {
17271
- Fake.call();
17272
- } catch (x) {
17273
- control = x;
17274
- }
17275
-
17276
- fn.call(Fake.prototype);
16986
+ if (JSCompiler_inline_result) {
16987
+ JSCompiler_inline_result = console;
16988
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
16989
+ var JSCompiler_inline_result$jscomp$0 =
16990
+ ("function" === typeof Symbol &&
16991
+ Symbol.toStringTag &&
16992
+ value[Symbol.toStringTag]) ||
16993
+ value.constructor.name ||
16994
+ "Object";
16995
+ JSCompiler_temp_const.call(
16996
+ JSCompiler_inline_result,
16997
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
16998
+ JSCompiler_inline_result$jscomp$0
16999
+ );
17000
+ return testStringCoercion(value);
17277
17001
  }
17278
- } else {
17002
+ }
17003
+ function getTaskName(type) {
17004
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
17005
+ if (
17006
+ "object" === typeof type &&
17007
+ null !== type &&
17008
+ type.$$typeof === REACT_LAZY_TYPE
17009
+ )
17010
+ return "<...>";
17279
17011
  try {
17280
- throw Error();
17012
+ var name = getComponentNameFromType(type);
17013
+ return name ? "<" + name + ">" : "<...>";
17281
17014
  } catch (x) {
17282
- control = x;
17283
- }
17284
-
17285
- fn();
17286
- }
17287
- } catch (sample) {
17288
- // This is inlined manually because closure doesn't do it for us.
17289
- if (sample && control && typeof sample.stack === 'string') {
17290
- // This extracts the first frame from the sample that isn't also in the control.
17291
- // Skipping one frame that we assume is the frame that calls the two.
17292
- var sampleLines = sample.stack.split('\n');
17293
- var controlLines = control.stack.split('\n');
17294
- var s = sampleLines.length - 1;
17295
- var c = controlLines.length - 1;
17296
-
17297
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
17298
- // We expect at least one stack frame to be shared.
17299
- // Typically this will be the root most one. However, stack frames may be
17300
- // cut off due to maximum stack limits. In this case, one maybe cut off
17301
- // earlier than the other. We assume that the sample is longer or the same
17302
- // and there for cut off earlier. So we should find the root most frame in
17303
- // the sample somewhere in the control.
17304
- c--;
17305
- }
17306
-
17307
- for (; s >= 1 && c >= 0; s--, c--) {
17308
- // Next we find the first one that isn't the same which should be the
17309
- // frame that called our sample function and the control.
17310
- if (sampleLines[s] !== controlLines[c]) {
17311
- // In V8, the first line is describing the message but other VMs don't.
17312
- // If we're about to return the first line, and the control is also on the same
17313
- // line, that's a pretty good indicator that our sample threw at same line as
17314
- // the control. I.e. before we entered the sample frame. So we ignore this result.
17315
- // This can happen if you passed a class to function component, or non-function.
17316
- if (s !== 1 || c !== 1) {
17317
- do {
17318
- s--;
17319
- c--; // We may still have similar intermediate frames from the construct call.
17320
- // The next one that isn't the same should be our match though.
17321
-
17322
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
17323
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
17324
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
17325
- // but we have a user-provided "displayName"
17326
- // splice it in to make the stack more readable.
17327
-
17328
-
17329
- if (fn.displayName && _frame.includes('<anonymous>')) {
17330
- _frame = _frame.replace('<anonymous>', fn.displayName);
17331
- }
17332
-
17333
- {
17334
- if (typeof fn === 'function') {
17335
- componentFrameCache.set(fn, _frame);
17336
- }
17337
- } // Return the line we found.
17338
-
17339
-
17340
- return _frame;
17341
- }
17342
- } while (s >= 1 && c >= 0);
17343
- }
17344
-
17345
- break;
17346
- }
17015
+ return "<...>";
17347
17016
  }
17348
17017
  }
17349
- } finally {
17350
- reentry = false;
17351
-
17352
- {
17353
- ReactCurrentDispatcher.current = previousDispatcher;
17354
- reenableLogs();
17018
+ function getOwner() {
17019
+ var dispatcher = ReactSharedInternals.A;
17020
+ return null === dispatcher ? null : dispatcher.getOwner();
17355
17021
  }
17356
-
17357
- Error.prepareStackTrace = previousPrepareStackTrace;
17358
- } // Fallback to just using the name if we couldn't make it throw.
17359
-
17360
-
17361
- var name = fn ? fn.displayName || fn.name : '';
17362
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
17363
-
17364
- {
17365
- if (typeof fn === 'function') {
17366
- componentFrameCache.set(fn, syntheticFrame);
17022
+ function UnknownOwner() {
17023
+ return Error("react-stack-top-frame");
17367
17024
  }
17368
- }
17369
-
17370
- return syntheticFrame;
17371
- }
17372
- function describeFunctionComponentFrame(fn, source, ownerFn) {
17373
- {
17374
- return describeNativeComponentFrame(fn, false);
17375
- }
17376
- }
17377
-
17378
- function shouldConstruct(Component) {
17379
- var prototype = Component.prototype;
17380
- return !!(prototype && prototype.isReactComponent);
17381
- }
17382
-
17383
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
17384
-
17385
- if (type == null) {
17386
- return '';
17387
- }
17388
-
17389
- if (typeof type === 'function') {
17390
- {
17391
- return describeNativeComponentFrame(type, shouldConstruct(type));
17392
- }
17393
- }
17394
-
17395
- if (typeof type === 'string') {
17396
- return describeBuiltInComponentFrame(type);
17397
- }
17398
-
17399
- switch (type) {
17400
- case REACT_SUSPENSE_TYPE:
17401
- return describeBuiltInComponentFrame('Suspense');
17402
-
17403
- case REACT_SUSPENSE_LIST_TYPE:
17404
- return describeBuiltInComponentFrame('SuspenseList');
17405
- }
17406
-
17407
- if (typeof type === 'object') {
17408
- switch (type.$$typeof) {
17409
- case REACT_FORWARD_REF_TYPE:
17410
- return describeFunctionComponentFrame(type.render);
17411
-
17412
- case REACT_MEMO_TYPE:
17413
- // Memo may contain any component type so we recursively resolve it.
17414
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
17415
-
17416
- case REACT_LAZY_TYPE:
17417
- {
17418
- var lazyComponent = type;
17419
- var payload = lazyComponent._payload;
17420
- var init = lazyComponent._init;
17421
-
17422
- try {
17423
- // Lazy may contain any component type so we recursively resolve it.
17424
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
17425
- } catch (x) {}
17426
- }
17427
- }
17428
- }
17429
-
17430
- return '';
17431
- }
17432
-
17433
- var hasOwnProperty = Object.prototype.hasOwnProperty;
17434
-
17435
- var loggedTypeFailures = {};
17436
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
17437
-
17438
- function setCurrentlyValidatingElement(element) {
17439
- {
17440
- if (element) {
17441
- var owner = element._owner;
17442
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
17443
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
17444
- } else {
17445
- ReactDebugCurrentFrame.setExtraStackFrame(null);
17025
+ function hasValidKey(config) {
17026
+ if (hasOwnProperty.call(config, "key")) {
17027
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
17028
+ if (getter && getter.isReactWarning) return false;
17029
+ }
17030
+ return void 0 !== config.key;
17446
17031
  }
17447
- }
17448
- }
17449
-
17450
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
17451
- {
17452
- // $FlowFixMe This is okay but Flow doesn't know it.
17453
- var has = Function.call.bind(hasOwnProperty);
17454
-
17455
- for (var typeSpecName in typeSpecs) {
17456
- if (has(typeSpecs, typeSpecName)) {
17457
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
17458
- // fail the render phase where it didn't fail before. So we log it.
17459
- // After these have been cleaned up, we'll let them throw.
17460
-
17461
- try {
17462
- // This is intentionally an invariant that gets caught. It's the same
17463
- // behavior as without this statement except with a better message.
17464
- if (typeof typeSpecs[typeSpecName] !== 'function') {
17465
- // eslint-disable-next-line react-internal/prod-error-codes
17466
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
17467
- err.name = 'Invariant Violation';
17468
- throw err;
17469
- }
17470
-
17471
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
17472
- } catch (ex) {
17473
- error$1 = ex;
17474
- }
17475
-
17476
- if (error$1 && !(error$1 instanceof Error)) {
17477
- setCurrentlyValidatingElement(element);
17478
-
17479
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
17480
-
17481
- setCurrentlyValidatingElement(null);
17482
- }
17483
-
17484
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
17485
- // Only monitor this failure once because there tends to be a lot of the
17486
- // same error.
17487
- loggedTypeFailures[error$1.message] = true;
17488
- setCurrentlyValidatingElement(element);
17489
-
17490
- error('Failed %s type: %s', location, error$1.message);
17491
-
17492
- setCurrentlyValidatingElement(null);
17493
- }
17032
+ function defineKeyPropWarningGetter(props, displayName) {
17033
+ function warnAboutAccessingKey() {
17034
+ specialPropKeyWarningShown ||
17035
+ ((specialPropKeyWarningShown = true),
17036
+ console.error(
17037
+ "%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)",
17038
+ displayName
17039
+ ));
17494
17040
  }
17041
+ warnAboutAccessingKey.isReactWarning = true;
17042
+ Object.defineProperty(props, "key", {
17043
+ get: warnAboutAccessingKey,
17044
+ configurable: true
17045
+ });
17495
17046
  }
17496
- }
17497
- }
17498
-
17499
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
17500
-
17501
- function isArray(a) {
17502
- return isArrayImpl(a);
17503
- }
17504
-
17505
- /*
17506
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
17507
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
17508
- *
17509
- * The functions in this module will throw an easier-to-understand,
17510
- * easier-to-debug exception with a clear errors message message explaining the
17511
- * problem. (Instead of a confusing exception thrown inside the implementation
17512
- * of the `value` object).
17513
- */
17514
- // $FlowFixMe only called in DEV, so void return is not possible.
17515
- function typeName(value) {
17516
- {
17517
- // toStringTag is needed for namespaced types like Temporal.Instant
17518
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
17519
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
17520
- return type;
17521
- }
17522
- } // $FlowFixMe only called in DEV, so void return is not possible.
17523
-
17524
-
17525
- function willCoercionThrow(value) {
17526
- {
17527
- try {
17528
- testStringCoercion(value);
17529
- return false;
17530
- } catch (e) {
17531
- return true;
17047
+ function elementRefGetterWithDeprecationWarning() {
17048
+ var componentName = getComponentNameFromType(this.type);
17049
+ didWarnAboutElementRef[componentName] ||
17050
+ ((didWarnAboutElementRef[componentName] = true),
17051
+ console.error(
17052
+ "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."
17053
+ ));
17054
+ componentName = this.props.ref;
17055
+ return void 0 !== componentName ? componentName : null;
17532
17056
  }
17533
- }
17534
- }
17535
-
17536
- function testStringCoercion(value) {
17537
- // If you ended up here by following an exception call stack, here's what's
17538
- // happened: you supplied an object or symbol value to React (as a prop, key,
17539
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
17540
- // coerce it to a string using `'' + value`, an exception was thrown.
17541
- //
17542
- // The most common types that will cause this exception are `Symbol` instances
17543
- // and Temporal objects like `Temporal.Instant`. But any object that has a
17544
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
17545
- // exception. (Library authors do this to prevent users from using built-in
17546
- // numeric operators like `+` or comparison operators like `>=` because custom
17547
- // methods are needed to perform accurate arithmetic or comparison.)
17548
- //
17549
- // To fix the problem, coerce this object or symbol value to a string before
17550
- // passing it to React. The most reliable way is usually `String(value)`.
17551
- //
17552
- // To find which value is throwing, check the browser or debugger console.
17553
- // Before this exception was thrown, there should be `console.error` output
17554
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
17555
- // problem and how that type was used: key, atrribute, input value prop, etc.
17556
- // In most cases, this console output also shows the component and its
17557
- // ancestor components where the exception happened.
17558
- //
17559
- // eslint-disable-next-line react-internal/safe-string-coercion
17560
- return '' + value;
17561
- }
17562
- function checkKeyStringCoercion(value) {
17563
- {
17564
- if (willCoercionThrow(value)) {
17565
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
17566
-
17567
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
17057
+ function ReactElement(
17058
+ type,
17059
+ key,
17060
+ self,
17061
+ source,
17062
+ owner,
17063
+ props,
17064
+ debugStack,
17065
+ debugTask
17066
+ ) {
17067
+ self = props.ref;
17068
+ type = {
17069
+ $$typeof: REACT_ELEMENT_TYPE,
17070
+ type: type,
17071
+ key: key,
17072
+ props: props,
17073
+ _owner: owner
17074
+ };
17075
+ null !== (void 0 !== self ? self : null)
17076
+ ? Object.defineProperty(type, "ref", {
17077
+ enumerable: false,
17078
+ get: elementRefGetterWithDeprecationWarning
17079
+ })
17080
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
17081
+ type._store = {};
17082
+ Object.defineProperty(type._store, "validated", {
17083
+ configurable: false,
17084
+ enumerable: false,
17085
+ writable: true,
17086
+ value: 0
17087
+ });
17088
+ Object.defineProperty(type, "_debugInfo", {
17089
+ configurable: false,
17090
+ enumerable: false,
17091
+ writable: true,
17092
+ value: null
17093
+ });
17094
+ Object.defineProperty(type, "_debugStack", {
17095
+ configurable: false,
17096
+ enumerable: false,
17097
+ writable: true,
17098
+ value: debugStack
17099
+ });
17100
+ Object.defineProperty(type, "_debugTask", {
17101
+ configurable: false,
17102
+ enumerable: false,
17103
+ writable: true,
17104
+ value: debugTask
17105
+ });
17106
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
17107
+ return type;
17568
17108
  }
17569
- }
17570
- }
17571
-
17572
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
17573
- var RESERVED_PROPS = {
17574
- key: true,
17575
- ref: true,
17576
- __self: true,
17577
- __source: true
17578
- };
17579
- var specialPropKeyWarningShown;
17580
- var specialPropRefWarningShown;
17581
-
17582
- function hasValidRef(config) {
17583
- {
17584
- if (hasOwnProperty.call(config, 'ref')) {
17585
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
17586
-
17587
- if (getter && getter.isReactWarning) {
17588
- return false;
17109
+ function jsxDEVImpl(
17110
+ type,
17111
+ config,
17112
+ maybeKey,
17113
+ isStaticChildren,
17114
+ source,
17115
+ self,
17116
+ debugStack,
17117
+ debugTask
17118
+ ) {
17119
+ var children = config.children;
17120
+ if (void 0 !== children)
17121
+ if (isStaticChildren)
17122
+ if (isArrayImpl(children)) {
17123
+ for (
17124
+ isStaticChildren = 0;
17125
+ isStaticChildren < children.length;
17126
+ isStaticChildren++
17127
+ )
17128
+ validateChildKeys(children[isStaticChildren]);
17129
+ Object.freeze && Object.freeze(children);
17130
+ } else
17131
+ console.error(
17132
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
17133
+ );
17134
+ else validateChildKeys(children);
17135
+ if (hasOwnProperty.call(config, "key")) {
17136
+ children = getComponentNameFromType(type);
17137
+ var keys = Object.keys(config).filter(function (k) {
17138
+ return "key" !== k;
17139
+ });
17140
+ isStaticChildren =
17141
+ 0 < keys.length
17142
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
17143
+ : "{key: someKey}";
17144
+ didWarnAboutKeySpread[children + isStaticChildren] ||
17145
+ ((keys =
17146
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
17147
+ console.error(
17148
+ '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} />',
17149
+ isStaticChildren,
17150
+ children,
17151
+ keys,
17152
+ children
17153
+ ),
17154
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
17589
17155
  }
17156
+ children = null;
17157
+ void 0 !== maybeKey &&
17158
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
17159
+ hasValidKey(config) &&
17160
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
17161
+ if ("key" in config) {
17162
+ maybeKey = {};
17163
+ for (var propName in config)
17164
+ "key" !== propName && (maybeKey[propName] = config[propName]);
17165
+ } else maybeKey = config;
17166
+ children &&
17167
+ defineKeyPropWarningGetter(
17168
+ maybeKey,
17169
+ "function" === typeof type
17170
+ ? type.displayName || type.name || "Unknown"
17171
+ : type
17172
+ );
17173
+ return ReactElement(
17174
+ type,
17175
+ children,
17176
+ self,
17177
+ source,
17178
+ getOwner(),
17179
+ maybeKey,
17180
+ debugStack,
17181
+ debugTask
17182
+ );
17590
17183
  }
17591
- }
17592
-
17593
- return config.ref !== undefined;
17594
- }
17595
-
17596
- function hasValidKey(config) {
17597
- {
17598
- if (hasOwnProperty.call(config, 'key')) {
17599
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
17600
-
17601
- if (getter && getter.isReactWarning) {
17602
- return false;
17603
- }
17184
+ function validateChildKeys(node) {
17185
+ "object" === typeof node &&
17186
+ null !== node &&
17187
+ node.$$typeof === REACT_ELEMENT_TYPE &&
17188
+ node._store &&
17189
+ (node._store.validated = 1);
17604
17190
  }
17605
- }
17606
-
17607
- return config.key !== undefined;
17608
- }
17609
-
17610
- function warnIfStringRefCannotBeAutoConverted(config, self) {
17611
- {
17612
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
17613
- }
17614
- }
17615
-
17616
- function defineKeyPropWarningGetter(props, displayName) {
17617
- {
17618
- var warnAboutAccessingKey = function () {
17619
- if (!specialPropKeyWarningShown) {
17620
- specialPropKeyWarningShown = true;
17621
-
17622
- error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
17191
+ var React = React__default,
17192
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
17193
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
17194
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
17195
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
17196
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
17197
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
17198
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
17199
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
17200
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
17201
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
17202
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
17203
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
17204
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
17205
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
17206
+ ReactSharedInternals =
17207
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
17208
+ hasOwnProperty = Object.prototype.hasOwnProperty,
17209
+ isArrayImpl = Array.isArray,
17210
+ createTask = console.createTask
17211
+ ? console.createTask
17212
+ : function () {
17213
+ return null;
17214
+ };
17215
+ React = {
17216
+ react_stack_bottom_frame: function (callStackForError) {
17217
+ return callStackForError();
17623
17218
  }
17624
17219
  };
17625
-
17626
- warnAboutAccessingKey.isReactWarning = true;
17627
- Object.defineProperty(props, 'key', {
17628
- get: warnAboutAccessingKey,
17629
- configurable: true
17630
- });
17631
- }
17632
- }
17633
-
17634
- function defineRefPropWarningGetter(props, displayName) {
17635
- {
17636
- var warnAboutAccessingRef = function () {
17637
- if (!specialPropRefWarningShown) {
17638
- specialPropRefWarningShown = true;
17639
-
17640
- error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
17641
- }
17220
+ var specialPropKeyWarningShown;
17221
+ var didWarnAboutElementRef = {};
17222
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
17223
+ React,
17224
+ UnknownOwner
17225
+ )();
17226
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
17227
+ var didWarnAboutKeySpread = {};
17228
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
17229
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
17230
+ var trackActualOwner =
17231
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
17232
+ return jsxDEVImpl(
17233
+ type,
17234
+ config,
17235
+ maybeKey,
17236
+ false,
17237
+ source,
17238
+ self,
17239
+ trackActualOwner
17240
+ ? Error("react-stack-top-frame")
17241
+ : unknownOwnerDebugStack,
17242
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
17243
+ );
17244
+ };
17245
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
17246
+ var trackActualOwner =
17247
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
17248
+ return jsxDEVImpl(
17249
+ type,
17250
+ config,
17251
+ maybeKey,
17252
+ true,
17253
+ source,
17254
+ self,
17255
+ trackActualOwner
17256
+ ? Error("react-stack-top-frame")
17257
+ : unknownOwnerDebugStack,
17258
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
17259
+ );
17642
17260
  };
17643
-
17644
- warnAboutAccessingRef.isReactWarning = true;
17645
- Object.defineProperty(props, 'ref', {
17646
- get: warnAboutAccessingRef,
17647
- configurable: true
17648
- });
17649
- }
17650
- }
17651
- /**
17652
- * Factory method to create a new React element. This no longer adheres to
17653
- * the class pattern, so do not use new to call it. Also, instanceof check
17654
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
17655
- * if something is a React Element.
17656
- *
17657
- * @param {*} type
17658
- * @param {*} props
17659
- * @param {*} key
17660
- * @param {string|object} ref
17661
- * @param {*} owner
17662
- * @param {*} self A *temporary* helper to detect places where `this` is
17663
- * different from the `owner` when React.createElement is called, so that we
17664
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
17665
- * functions, and as long as `this` and owner are the same, there will be no
17666
- * change in behavior.
17667
- * @param {*} source An annotation object (added by a transpiler or otherwise)
17668
- * indicating filename, line number, and/or other information.
17669
- * @internal
17670
- */
17671
-
17672
-
17673
- var ReactElement = function (type, key, ref, self, source, owner, props) {
17674
- var element = {
17675
- // This tag allows us to uniquely identify this as a React Element
17676
- $$typeof: REACT_ELEMENT_TYPE,
17677
- // Built-in properties that belong on the element
17678
- type: type,
17679
- key: key,
17680
- ref: ref,
17681
- props: props,
17682
- // Record the component responsible for creating this element.
17683
- _owner: owner
17684
- };
17685
-
17686
- {
17687
- // The validation flag is currently mutative. We put it on
17688
- // an external backing store so that we can freeze the whole object.
17689
- // This can be replaced with a WeakMap once they are implemented in
17690
- // commonly used development environments.
17691
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
17692
- // the validation flag non-enumerable (where possible, which should
17693
- // include every environment we run tests in), so the test framework
17694
- // ignores it.
17695
-
17696
- Object.defineProperty(element._store, 'validated', {
17697
- configurable: false,
17698
- enumerable: false,
17699
- writable: true,
17700
- value: false
17701
- }); // self and source are DEV only properties.
17702
-
17703
- Object.defineProperty(element, '_self', {
17704
- configurable: false,
17705
- enumerable: false,
17706
- writable: false,
17707
- value: self
17708
- }); // Two elements created in two different places should be considered
17709
- // equal for testing purposes and therefore we hide it from enumeration.
17710
-
17711
- Object.defineProperty(element, '_source', {
17712
- configurable: false,
17713
- enumerable: false,
17714
- writable: false,
17715
- value: source
17716
- });
17717
-
17718
- if (Object.freeze) {
17719
- Object.freeze(element.props);
17720
- Object.freeze(element);
17721
- }
17722
- }
17723
-
17724
- return element;
17725
- };
17726
- /**
17727
- * https://github.com/reactjs/rfcs/pull/107
17728
- * @param {*} type
17729
- * @param {object} props
17730
- * @param {string} key
17731
- */
17732
-
17733
- function jsxDEV(type, config, maybeKey, source, self) {
17734
- {
17735
- var propName; // Reserved names are extracted
17736
-
17737
- var props = {};
17738
- var key = null;
17739
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
17740
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
17741
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
17742
- // but as an intermediary step, we will use jsxDEV for everything except
17743
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
17744
- // key is explicitly declared to be undefined or not.
17745
-
17746
- if (maybeKey !== undefined) {
17747
- {
17748
- checkKeyStringCoercion(maybeKey);
17749
- }
17750
-
17751
- key = '' + maybeKey;
17752
- }
17753
-
17754
- if (hasValidKey(config)) {
17755
- {
17756
- checkKeyStringCoercion(config.key);
17757
- }
17758
-
17759
- key = '' + config.key;
17760
- }
17761
-
17762
- if (hasValidRef(config)) {
17763
- ref = config.ref;
17764
- warnIfStringRefCannotBeAutoConverted(config, self);
17765
- } // Remaining properties are added to a new props object
17766
-
17767
-
17768
- for (propName in config) {
17769
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
17770
- props[propName] = config[propName];
17771
- }
17772
- } // Resolve default props
17773
-
17774
-
17775
- if (type && type.defaultProps) {
17776
- var defaultProps = type.defaultProps;
17777
-
17778
- for (propName in defaultProps) {
17779
- if (props[propName] === undefined) {
17780
- props[propName] = defaultProps[propName];
17781
- }
17782
- }
17783
- }
17784
-
17785
- if (key || ref) {
17786
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
17787
-
17788
- if (key) {
17789
- defineKeyPropWarningGetter(props, displayName);
17790
- }
17791
-
17792
- if (ref) {
17793
- defineRefPropWarningGetter(props, displayName);
17794
- }
17795
- }
17796
-
17797
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
17798
- }
17799
- }
17800
-
17801
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
17802
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
17803
-
17804
- function setCurrentlyValidatingElement$1(element) {
17805
- {
17806
- if (element) {
17807
- var owner = element._owner;
17808
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
17809
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
17810
- } else {
17811
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
17812
- }
17813
- }
17814
- }
17815
-
17816
- var propTypesMisspellWarningShown;
17817
-
17818
- {
17819
- propTypesMisspellWarningShown = false;
17820
- }
17821
- /**
17822
- * Verifies the object is a ReactElement.
17823
- * See https://reactjs.org/docs/react-api.html#isvalidelement
17824
- * @param {?object} object
17825
- * @return {boolean} True if `object` is a ReactElement.
17826
- * @final
17827
- */
17828
-
17829
-
17830
- function isValidElement(object) {
17831
- {
17832
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
17833
- }
17834
- }
17835
-
17836
- function getDeclarationErrorAddendum() {
17837
- {
17838
- if (ReactCurrentOwner$1.current) {
17839
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
17840
-
17841
- if (name) {
17842
- return '\n\nCheck the render method of `' + name + '`.';
17843
- }
17844
- }
17845
-
17846
- return '';
17847
- }
17848
- }
17849
-
17850
- function getSourceInfoErrorAddendum(source) {
17851
- {
17852
-
17853
- return '';
17854
- }
17855
- }
17856
- /**
17857
- * Warn if there's no key explicitly set on dynamic arrays of children or
17858
- * object keys are not valid. This allows us to keep track of children between
17859
- * updates.
17860
- */
17861
-
17862
-
17863
- var ownerHasKeyUseWarning = {};
17864
-
17865
- function getCurrentComponentErrorInfo(parentType) {
17866
- {
17867
- var info = getDeclarationErrorAddendum();
17868
-
17869
- if (!info) {
17870
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
17871
-
17872
- if (parentName) {
17873
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
17874
- }
17875
- }
17876
-
17877
- return info;
17878
- }
17879
- }
17880
- /**
17881
- * Warn if the element doesn't have an explicit key assigned to it.
17882
- * This element is in an array. The array could grow and shrink or be
17883
- * reordered. All children that haven't already been validated are required to
17884
- * have a "key" property assigned to it. Error statuses are cached so a warning
17885
- * will only be shown once.
17886
- *
17887
- * @internal
17888
- * @param {ReactElement} element Element that requires a key.
17889
- * @param {*} parentType element's parent's type.
17890
- */
17891
-
17892
-
17893
- function validateExplicitKey(element, parentType) {
17894
- {
17895
- if (!element._store || element._store.validated || element.key != null) {
17896
- return;
17897
- }
17898
-
17899
- element._store.validated = true;
17900
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
17901
-
17902
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
17903
- return;
17904
- }
17905
-
17906
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
17907
- // property, it may be the creator of the child that's responsible for
17908
- // assigning it a key.
17909
-
17910
- var childOwner = '';
17911
-
17912
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
17913
- // Give the component that originally created this child.
17914
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
17915
- }
17916
-
17917
- setCurrentlyValidatingElement$1(element);
17918
-
17919
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
17920
-
17921
- setCurrentlyValidatingElement$1(null);
17922
- }
17923
- }
17924
- /**
17925
- * Ensure that every element either is passed in a static location, in an
17926
- * array with an explicit keys property defined, or in an object literal
17927
- * with valid key property.
17928
- *
17929
- * @internal
17930
- * @param {ReactNode} node Statically passed child of any type.
17931
- * @param {*} parentType node's parent's type.
17932
- */
17933
-
17934
-
17935
- function validateChildKeys(node, parentType) {
17936
- {
17937
- if (typeof node !== 'object') {
17938
- return;
17939
- }
17940
-
17941
- if (isArray(node)) {
17942
- for (var i = 0; i < node.length; i++) {
17943
- var child = node[i];
17944
-
17945
- if (isValidElement(child)) {
17946
- validateExplicitKey(child, parentType);
17947
- }
17948
- }
17949
- } else if (isValidElement(node)) {
17950
- // This element was passed in a valid location.
17951
- if (node._store) {
17952
- node._store.validated = true;
17953
- }
17954
- } else if (node) {
17955
- var iteratorFn = getIteratorFn(node);
17956
-
17957
- if (typeof iteratorFn === 'function') {
17958
- // Entry iterators used to provide implicit keys,
17959
- // but now we print a separate warning for them later.
17960
- if (iteratorFn !== node.entries) {
17961
- var iterator = iteratorFn.call(node);
17962
- var step;
17963
-
17964
- while (!(step = iterator.next()).done) {
17965
- if (isValidElement(step.value)) {
17966
- validateExplicitKey(step.value, parentType);
17967
- }
17968
- }
17969
- }
17970
- }
17971
- }
17972
- }
17973
- }
17974
- /**
17975
- * Given an element, validate that its props follow the propTypes definition,
17976
- * provided by the type.
17977
- *
17978
- * @param {ReactElement} element
17979
- */
17980
-
17981
-
17982
- function validatePropTypes(element) {
17983
- {
17984
- var type = element.type;
17985
-
17986
- if (type === null || type === undefined || typeof type === 'string') {
17987
- return;
17988
- }
17989
-
17990
- var propTypes;
17991
-
17992
- if (typeof type === 'function') {
17993
- propTypes = type.propTypes;
17994
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
17995
- // Inner props are checked in the reconciler.
17996
- type.$$typeof === REACT_MEMO_TYPE)) {
17997
- propTypes = type.propTypes;
17998
- } else {
17999
- return;
18000
- }
18001
-
18002
- if (propTypes) {
18003
- // Intentionally inside to avoid triggering lazy initializers:
18004
- var name = getComponentNameFromType(type);
18005
- checkPropTypes(propTypes, element.props, 'prop', name, element);
18006
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
18007
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
18008
-
18009
- var _name = getComponentNameFromType(type);
18010
-
18011
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
18012
- }
18013
-
18014
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
18015
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
18016
- }
18017
- }
18018
- }
18019
- /**
18020
- * Given a fragment, validate that it can only be provided with fragment props
18021
- * @param {ReactElement} fragment
18022
- */
18023
-
18024
-
18025
- function validateFragmentProps(fragment) {
18026
- {
18027
- var keys = Object.keys(fragment.props);
18028
-
18029
- for (var i = 0; i < keys.length; i++) {
18030
- var key = keys[i];
18031
-
18032
- if (key !== 'children' && key !== 'key') {
18033
- setCurrentlyValidatingElement$1(fragment);
18034
-
18035
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
18036
-
18037
- setCurrentlyValidatingElement$1(null);
18038
- break;
18039
- }
18040
- }
18041
-
18042
- if (fragment.ref !== null) {
18043
- setCurrentlyValidatingElement$1(fragment);
18044
-
18045
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
18046
-
18047
- setCurrentlyValidatingElement$1(null);
18048
- }
18049
- }
18050
- }
18051
-
18052
- var didWarnAboutKeySpread = {};
18053
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
18054
- {
18055
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
18056
- // succeed and there will likely be errors in render.
18057
-
18058
- if (!validType) {
18059
- var info = '';
18060
-
18061
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
18062
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
18063
- }
18064
-
18065
- var sourceInfo = getSourceInfoErrorAddendum();
18066
-
18067
- if (sourceInfo) {
18068
- info += sourceInfo;
18069
- } else {
18070
- info += getDeclarationErrorAddendum();
18071
- }
18072
-
18073
- var typeString;
18074
-
18075
- if (type === null) {
18076
- typeString = 'null';
18077
- } else if (isArray(type)) {
18078
- typeString = 'array';
18079
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
18080
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
18081
- info = ' Did you accidentally export a JSX literal instead of a component?';
18082
- } else {
18083
- typeString = typeof type;
18084
- }
18085
-
18086
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
18087
- }
18088
-
18089
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
18090
- // TODO: Drop this when these are no longer allowed as the type argument.
18091
-
18092
- if (element == null) {
18093
- return element;
18094
- } // Skip key warning if the type isn't valid since our key validation logic
18095
- // doesn't expect a non-string/function type and can throw confusing errors.
18096
- // We don't want exception behavior to differ between dev and prod.
18097
- // (Rendering will throw with a helpful message and as soon as the type is
18098
- // fixed, the key warnings will appear.)
18099
-
18100
-
18101
- if (validType) {
18102
- var children = props.children;
18103
-
18104
- if (children !== undefined) {
18105
- if (isStaticChildren) {
18106
- if (isArray(children)) {
18107
- for (var i = 0; i < children.length; i++) {
18108
- validateChildKeys(children[i], type);
18109
- }
18110
-
18111
- if (Object.freeze) {
18112
- Object.freeze(children);
18113
- }
18114
- } else {
18115
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
18116
- }
18117
- } else {
18118
- validateChildKeys(children, type);
18119
- }
18120
- }
18121
- }
18122
-
18123
- {
18124
- if (hasOwnProperty.call(props, 'key')) {
18125
- var componentName = getComponentNameFromType(type);
18126
- var keys = Object.keys(props).filter(function (k) {
18127
- return k !== 'key';
18128
- });
18129
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
18130
-
18131
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
18132
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
18133
-
18134
- error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
18135
-
18136
- didWarnAboutKeySpread[componentName + beforeExample] = true;
18137
- }
18138
- }
18139
- }
18140
-
18141
- if (type === REACT_FRAGMENT_TYPE) {
18142
- validateFragmentProps(element);
18143
- } else {
18144
- validatePropTypes(element);
18145
- }
18146
-
18147
- return element;
18148
- }
18149
- } // These two functions exist to still get child warnings in dev
18150
- // even with the prod transform. This means that jsxDEV is purely
18151
- // opt-in behavior for better messages but that we won't stop
18152
- // giving you warnings if you use production apis.
18153
-
18154
- function jsxWithValidationStatic(type, props, key) {
18155
- {
18156
- return jsxWithValidation(type, props, key, true);
18157
- }
18158
- }
18159
- function jsxWithValidationDynamic(type, props, key) {
18160
- {
18161
- return jsxWithValidation(type, props, key, false);
18162
- }
18163
- }
18164
-
18165
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
18166
- // for now we can ship identical prod functions
18167
-
18168
- var jsxs = jsxWithValidationStatic ;
18169
-
18170
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
18171
- reactJsxRuntime_development.jsx = jsx;
18172
- reactJsxRuntime_development.jsxs = jsxs;
18173
17261
  })();
18174
- }
18175
17262
  return reactJsxRuntime_development;
18176
17263
  }
18177
17264
 
18178
17265
  if (process.env.NODE_ENV === 'production') {
18179
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
17266
+ jsxRuntime.exports = requireReactJsxRuntime_production();
18180
17267
  } else {
18181
17268
  jsxRuntime.exports = requireReactJsxRuntime_development();
18182
17269
  }
18183
17270
 
18184
17271
  var jsxRuntimeExports = jsxRuntime.exports;
18185
17272
 
17273
+ var CAMSContext = React__default.createContext(null);
18186
17274
  function CAMSProvider(_a) {
18187
- var children = _a.children;
18188
- if (typeof window === 'undefined') {
17275
+ var children = _a.children, defaultConfig = _a.defaultConfig, authOptions = __rest(_a, ["children", "defaultConfig"]);
17276
+ var _b = React__default.useState(false), mounted = _b[0], setMounted = _b[1];
17277
+ var auth = useCAMSAuth(authOptions);
17278
+ React__default.useEffect(function () {
17279
+ setMounted(true);
17280
+ }, []);
17281
+ var value = React__default.useMemo(function () { return (__assign(__assign({}, auth), { defaultConfig: defaultConfig })); }, [auth, defaultConfig]);
17282
+ if (!mounted) {
18189
17283
  return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children });
18190
17284
  }
18191
- var ClientProvider = require('./CAMSProvider.client').CAMSProvider;
18192
- return jsxRuntimeExports.jsx(ClientProvider, { children: children });
17285
+ return (jsxRuntimeExports.jsx(CAMSContext.Provider, { value: value, children: children }));
18193
17286
  }
18194
17287
  function useCAMSContext() {
18195
- if (typeof window === 'undefined') {
18196
- throw new Error('useCAMSContext can only be used on the client side');
17288
+ var context = React__default.useContext(CAMSContext);
17289
+ if (!context) {
17290
+ throw new Error('useCAMSContext must be used within a CAMSProvider');
18197
17291
  }
18198
- var useClientContext = require('./CAMSProvider.client').useCAMSContext;
18199
- return useClientContext();
17292
+ return context;
18200
17293
  }
18201
17294
 
18202
17295
  function ProtectedRoute(_a) {