Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-dom

Package Overview
Dependencies
Maintainers
5
Versions
2074
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dom - npm Package Compare versions

Comparing version 18.3.0-canary-16d053d59-20230506 to 18.3.0-canary-178c267a4e-20241218

cjs/react-dom-server-legacy.browser.production.js

332

cjs/react-dom-server-rendering-stub.development.js

@@ -17,4 +17,45 @@ /**

var ReactVersion = '18.3.0-canary-16d053d59-20230506';
var React = require('react');
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function error(format) {
{
{
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
}
}
}
function printWarning(level, format, args) {
// When changing this logic, you might want to also
// update consoleWithStackDev.www.js as well.
{
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
var stack = ReactDebugCurrentFrame.getStackAddendum();
if (stack !== '') {
format += '%s';
args = args.concat([stack]);
} // eslint-disable-next-line react-internal/safe-string-coercion
var argsWithFormat = args.map(function (item) {
return String(item);
}); // Careful: RN currently depends on this prefix
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
// breaks IE9: https://github.com/facebook/react/issues/13610
// eslint-disable-next-line react-internal/no-production-logging
Function.prototype.apply.call(console[level], console, argsWithFormat);
}
}
var ReactVersion = '18.3.0-canary-178c267a4e-20241218';
var Internals = {

@@ -28,9 +69,34 @@ usingClientEntryPoint: false,

function getCrossOriginString(input) {
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
function getCrossOriginStringAs(as, input) {
if (as === 'font') {
return '';
}
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
var Dispatcher = Internals.Dispatcher;
function prefetchDNS(href) {
var passedOptionArg;
{
if (typeof href !== 'string' || !href) {
error('ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
} else if (arguments.length > 1) {
var options = arguments[1];
{
if (arguments[1] !== undefined) {
passedOptionArg = arguments[1];
if (typeof options === 'object' && options.hasOwnProperty('crossOrigin')) {
error('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`.', getValueDescriptorExpectingEnumForWarning(options));
} else {
error('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`.', getValueDescriptorExpectingEnumForWarning(options));
}
}

@@ -41,14 +107,4 @@ }

if (dispatcher) {
{
if (passedOptionArg !== undefined) {
// prefetchDNS will warn if you pass reserved options arg. We pass it along in Dev only to
// elicit the warning. In prod we do not forward since it is not a part of the interface.
// @TODO move all arg validation into this file. It needs to be universal anyway so may as well lock down the interace here and
// let the rest of the codebase trust the types
dispatcher.prefetchDNS(href, passedOptionArg);
} else {
dispatcher.prefetchDNS(href);
}
}
if (dispatcher && typeof href === 'string') {
dispatcher.prefetchDNS(href);
} // We don't error because preconnect needs to be resilient to being called in a variety of scopes

@@ -60,6 +116,17 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

function preconnect(href, options) {
{
if (typeof href !== 'string' || !href) {
error('ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
} else if (options != null && typeof options !== 'object') {
error('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.', getValueDescriptorExpectingEnumForWarning(options));
} else if (options != null && typeof options.crossOrigin !== 'string') {
error('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.', getValueDescriptorExpectingObjectForWarning(options.crossOrigin));
}
}
var dispatcher = Dispatcher.current;
if (dispatcher) {
dispatcher.preconnect(href, options);
if (dispatcher && typeof href === 'string') {
var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null;
dispatcher.preconnect(href, crossOrigin);
} // We don't error because preconnect needs to be resilient to being called in a variety of scopes

@@ -71,6 +138,36 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

function preload(href, options) {
{
var encountered = '';
if (typeof href !== 'string' || !href) {
encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
}
if (options == null || typeof options !== 'object') {
encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
} else if (typeof options.as !== 'string' || !options.as) {
encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".";
}
if (encountered) {
error('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', encountered);
}
}
var dispatcher = Dispatcher.current;
if (dispatcher) {
dispatcher.preload(href, options);
if (dispatcher && typeof href === 'string' && // We check existence because we cannot enforce this function is actually called with the stated type
typeof options === 'object' && options !== null && typeof options.as === 'string') {
var as = options.as;
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
dispatcher.preload(href, as, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined,
type: typeof options.type === 'string' ? options.type : undefined,
fetchPriority: typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined,
referrerPolicy: typeof options.referrerPolicy === 'string' ? options.referrerPolicy : undefined,
imageSrcSet: typeof options.imageSrcSet === 'string' ? options.imageSrcSet : undefined,
imageSizes: typeof options.imageSizes === 'string' ? options.imageSizes : undefined
});
} // We don't error because preload needs to be resilient to being called in a variety of scopes

@@ -81,7 +178,72 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

}
function preloadModule(href, options) {
{
var encountered = '';
if (typeof href !== 'string' || !href) {
encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
}
if (options !== undefined && typeof options !== 'object') {
encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
} else if (options && 'as' in options && typeof options.as !== 'string') {
encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".";
}
if (encountered) {
error('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', encountered);
}
}
var dispatcher = Dispatcher.current;
if (dispatcher && typeof href === 'string') {
if (options) {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preloadModule(href, {
as: typeof options.as === 'string' && options.as !== 'script' ? options.as : undefined,
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined
});
} else {
dispatcher.preloadModule(href);
}
} // We don't error because preload needs to be resilient to being called in a variety of scopes
// and the runtime may not be capable of responding. The function is optimistic and not critical
// so we favor silent bailout over warning or erroring.
}
function preinit(href, options) {
{
if (typeof href !== 'string' || !href) {
error('ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
} else if (options == null || typeof options !== 'object') {
error('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.', getValueDescriptorExpectingEnumForWarning(options));
} else if (options.as !== 'style' && options.as !== 'script') {
error('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".', getValueDescriptorExpectingEnumForWarning(options.as));
}
}
var dispatcher = Dispatcher.current;
if (dispatcher) {
dispatcher.preinit(href, options);
if (dispatcher && typeof href === 'string' && options && typeof options.as === 'string') {
var as = options.as;
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
var integrity = typeof options.integrity === 'string' ? options.integrity : undefined;
var fetchPriority = typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined;
if (as === 'style') {
dispatcher.preinitStyle(href, typeof options.precedence === 'string' ? options.precedence : undefined, {
crossOrigin: crossOrigin,
integrity: integrity,
fetchPriority: fetchPriority
});
} else if (as === 'script') {
dispatcher.preinitScript(href, {
crossOrigin: crossOrigin,
integrity: integrity,
fetchPriority: fetchPriority,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} // We don't error because preinit needs to be resilient to being called in a variety of scopes

@@ -92,9 +254,101 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

}
function preinitModule(href, options) {
{
var encountered = '';
if (typeof href !== 'string' || !href) {
encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
}
if (options !== undefined && typeof options !== 'object') {
encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
} else if (options && 'as' in options && options.as !== 'script') {
encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".";
}
if (encountered) {
error('ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s', encountered);
} else {
var as = options && typeof options.as === 'string' ? options.as : 'script';
switch (as) {
case 'script':
{
break;
}
// We have an invalid as type and need to warn
default:
{
var typeOfAs = getValueDescriptorExpectingEnumForWarning(as);
error('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)', typeOfAs, href);
}
}
}
}
var dispatcher = Dispatcher.current;
if (dispatcher && typeof href === 'string') {
if (typeof options === 'object' && options !== null) {
if (options.as == null || options.as === 'script') {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} else if (options == null) {
dispatcher.preinitModuleScript(href);
}
} // We don't error because preinit needs to be resilient to being called in a variety of scopes
// and the runtime may not be capable of responding. The function is optimistic and not critical
// so we favor silent bailout over warning or erroring.
}
function getValueDescriptorExpectingObjectForWarning(thing) {
return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : "something with type \"" + typeof thing + "\"";
}
function getValueDescriptorExpectingEnumForWarning(thing) {
return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : typeof thing === 'string' ? JSON.stringify(thing) : typeof thing === 'number' ? '`' + thing + '`' : "something with type \"" + typeof thing + "\"";
}
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; // Since the "not pending" value is always the same, we can reuse the
function resolveDispatcher() {
// Copied from react/src/ReactHooks.js. It's the same thing but in a
// different package.
var dispatcher = ReactCurrentDispatcher.current;
{
if (dispatcher === null) {
error('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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
}
} // Will result in a null access error if accessed outside render phase. We
// intentionally don't throw our own error because this is in a hot path.
// Also helps ensure this is inlined.
return dispatcher;
}
function useFormStatus() {
{
throw new Error('Not implemented.');
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] We know this exists because of the feature check above.
return dispatcher.useHostTransitionStatus();
}
}
function useFormState(action, initialState, permalink) {
{
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] This is unstable, thus optional
return dispatcher.useFormState(action, initialState, permalink);
}
}
function createPortal() {

@@ -105,7 +359,30 @@ throw new Error('createPortal was called on the server. Portals are not currently' + ' supported on the server. Update your program to conditionally call' + ' createPortal on the client only.');

throw new Error('flushSync was called on the server. This is likely caused by a' + ' function being called during render or in module scope that was' + ' intended to be called from an effect or event handler. Update your' + ' to not call flushSync no the server.');
} // on the server we just call the callback because there is
// not update mechanism. Really this should not be called on the
// server but since the semantics are generally clear enough we
// can provide this trivial implementation.
function batchedUpdates(fn, a) {
return fn(a);
}
function experimental_useFormStatus() {
{
error('useFormStatus is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormStatus();
}
function experimental_useFormState(action, initialState, permalink) {
{
error('useFormState is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormState(action, initialState, permalink);
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = createPortal;
exports.experimental_useFormStatus = useFormStatus;
exports.experimental_useFormState = experimental_useFormState;
exports.experimental_useFormStatus = experimental_useFormStatus;
exports.flushSync = flushSync;

@@ -115,5 +392,10 @@ exports.preconnect = preconnect;

exports.preinit = preinit;
exports.preinitModule = preinitModule;
exports.preload = preload;
exports.preloadModule = preloadModule;
exports.unstable_batchedUpdates = batchedUpdates;
exports.useFormState = useFormState;
exports.useFormStatus = useFormStatus;
exports.version = ReactVersion;
})();
}

30

cjs/react-dom-server-rendering-stub.production.min.js

@@ -1,11 +0,19 @@

/**
* @license React
* react-dom-server-rendering-stub.production.min.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';var d={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function e(c){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+c,a=1;a<arguments.length;a++)b+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+c+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=d.Dispatcher;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d;
exports.createPortal=function(){throw Error(e(448));};exports.experimental_useFormStatus=function(){throw Error(e(248));};exports.flushSync=function(){throw Error(e(449));};exports.preconnect=function(c,b){var a=f.current;a&&a.preconnect(c,b)};exports.prefetchDNS=function(c){var b=f.current;b&&b.prefetchDNS(c)};exports.preinit=function(c,b){var a=f.current;a&&a.preinit(c,b)};exports.preload=function(c,b){var a=f.current;a&&a.preload(c,b)};exports.version="18.3.0-canary-16d053d59-20230506";
/*
React
react-dom-server-rendering-stub.production.min.js
Copyright (c) Meta Platforms, Inc. and affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
'use strict';var e=require("react"),f={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function h(b){var a="https://react.dev/errors/"+b;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
function k(b,a){if("font"===b)return"";if("string"===typeof a)return"use-credentials"===a?a:""}var l=f.Dispatcher,m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function n(){return m.current.useHostTransitionStatus()}function r(b,a,c){return m.current.useFormState(b,a,c)}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f;exports.createPortal=function(){throw Error(h(448));};exports.experimental_useFormState=function(b,a,c){return r(b,a,c)};
exports.experimental_useFormStatus=function(){return n()};exports.flushSync=function(){throw Error(h(449));};exports.preconnect=function(b,a){var c=l.current;c&&"string"===typeof b&&(a?(a=a.crossOrigin,a="string"===typeof a?"use-credentials"===a?a:"":void 0):a=null,c.preconnect(b,a))};exports.prefetchDNS=function(b){var a=l.current;a&&"string"===typeof b&&a.prefetchDNS(b)};
exports.preinit=function(b,a){var c=l.current;if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var d=a.as,g=k(d,a.crossOrigin),p="string"===typeof a.integrity?a.integrity:void 0,q="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===d?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:g,integrity:p,fetchPriority:q}):"script"===d&&c.preinitScript(b,{crossOrigin:g,integrity:p,fetchPriority:q,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};
exports.preinitModule=function(b,a){var c=l.current;if(c&&"string"===typeof b)if("object"===typeof a&&null!==a){if(null==a.as||"script"===a.as){var d=k(a.as,a.crossOrigin);c.preinitModuleScript(b,{crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0})}}else null==a&&c.preinitModuleScript(b)};
exports.preload=function(b,a){var c=l.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var d=a.as,g=k(d,a.crossOrigin);c.preload(b,d,{crossOrigin:g,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===
typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};exports.preloadModule=function(b,a){var c=l.current;if(c&&"string"===typeof b)if(a){var d=k(a.as,a.crossOrigin);c.preloadModule(b,{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};exports.unstable_batchedUpdates=function(b,a){return b(a)};exports.useFormState=r;exports.useFormStatus=n;
exports.version="18.3.0-canary-178c267a4e-20241218";
//# sourceMappingURL=react-dom-server-rendering-stub.production.min.js.map

@@ -1145,5 +1145,7 @@ /**

var enqueueStateRestore = EventInternals[3];
var restoreStateIfNeeded = EventInternals[4];
var act = React.unstable_act;
var restoreStateIfNeeded = EventInternals[4]; // TODO: Add a warning if this API is accessed with advice to switch to
// importing directly from the React package instead.
var act = React.act;
function Event(suffix) {}

@@ -1171,3 +1173,3 @@

while (true) {
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent || (node.tag === HostHoistable ) || (node.tag === HostSingleton )) {
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent || (node.tag === HostHoistable ) || node.tag === HostSingleton) {
var publicInst = node.stateNode;

@@ -1227,3 +1229,3 @@

throw new Error(methodName + "(...): the first argument must be a React class instance. " + ("Instead received: " + received + "."));
throw new Error("The first argument must be a React class instance. " + ("Instead received: " + received + "."));
}

@@ -1288,3 +1290,3 @@ /**

function findAllInRenderedTree(inst, test) {
validateClassInstance(inst, 'findAllInRenderedTree');
validateClassInstance(inst);

@@ -1306,3 +1308,3 @@ if (!inst) {

function scryRenderedDOMComponentsWithClass(root, classNames) {
validateClassInstance(root, 'scryRenderedDOMComponentsWithClass');
validateClassInstance(root);
return findAllInRenderedTree(root, function (inst) {

@@ -1344,3 +1346,3 @@ if (isDOMComponent(inst)) {

function findRenderedDOMComponentWithClass(root, className) {
validateClassInstance(root, 'findRenderedDOMComponentWithClass');
validateClassInstance(root);
var all = scryRenderedDOMComponentsWithClass(root, className);

@@ -1362,3 +1364,3 @@

function scryRenderedDOMComponentsWithTag(root, tagName) {
validateClassInstance(root, 'scryRenderedDOMComponentsWithTag');
validateClassInstance(root);
return findAllInRenderedTree(root, function (inst) {

@@ -1377,3 +1379,3 @@ return isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase();

function findRenderedDOMComponentWithTag(root, tagName) {
validateClassInstance(root, 'findRenderedDOMComponentWithTag');
validateClassInstance(root);
var all = scryRenderedDOMComponentsWithTag(root, tagName);

@@ -1394,3 +1396,3 @@

function scryRenderedComponentsWithType(root, componentType) {
validateClassInstance(root, 'scryRenderedComponentsWithType');
validateClassInstance(root);
return findAllInRenderedTree(root, function (inst) {

@@ -1409,3 +1411,3 @@ return isCompositeComponentWithType(inst, componentType);

function findRenderedComponentWithType(root, componentType) {
validateClassInstance(root, 'findRenderedComponentWithType');
validateClassInstance(root);
var all = scryRenderedComponentsWithType(root, componentType);

@@ -1531,3 +1533,3 @@

// do the portal feature.
} while (inst && inst.tag !== HostComponent && (inst.tag !== HostSingleton));
} while (inst && inst.tag !== HostComponent && inst.tag !== HostSingleton);

@@ -1534,0 +1536,0 @@ if (inst) {

@@ -1,10 +0,10 @@

/**
* @license React
* react-dom-test-utils.production.min.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
React
react-dom-test-utils.production.min.js
Copyright (c) Meta Platforms, Inc. and affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
'use strict';var k=require("react"),l=require("react-dom");function m(a){var c=a,b=a;if(a.alternate)for(;c.return;)c=c.return;else{a=c;do c=a,0!==(c.flags&4098)&&(b=c.return),a=c.return;while(a)}return 3===c.tag?b:null}function n(a){if(m(a)!==a)throw Error("Unable to find node on an unmounted component.");}

@@ -23,9 +23,7 @@ function p(a){var c=a.alternate;if(!c){c=m(a);if(null===c)throw Error("Unable to find node on an unmounted component.");return c!==a?null:a}for(var b=a,d=c;;){var f=b.return;if(null===f)break;var g=f.alternate;if(null===g){d=f.return;if(null!==d){b=d;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===b)return n(f),a;if(g===d)return n(f),c;g=g.sibling}throw Error("Unable to find node on an unmounted component.");}if(b.return!==d.return)b=f,d=g;else{for(var e=!1,h=f.child;h;){if(h===b){e=

var ma=r({},F,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0});w(ma);function na(a,c,b){var d=Array.prototype.slice.call(arguments,3);try{c.apply(b,d)}catch(f){this.onError(f)}}var I=!1,J=null,K=!1,L=null,oa={onError:function(a){I=!0;J=a}};function pa(a,c,b,d,f,g,e,h,A){I=!1;J=null;na.apply(oa,arguments)}
function qa(a,c,b,d,f,g,e,h,A){pa.apply(this,arguments);if(I){if(I){var q=J;I=!1;J=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");K||(K=!0,L=q)}}var M=Array.isArray,N=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ra=N[0],sa=N[1],ta=N[2],ua=N[3],va=N[4],wa=k.unstable_act;function xa(){}
function qa(a,c,b,d,f,g,e,h,A){pa.apply(this,arguments);if(I){if(I){var q=J;I=!1;J=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");K||(K=!0,L=q)}}var M=Array.isArray,N=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ra=N[0],sa=N[1],ta=N[2],ua=N[3],va=N[4],wa=k.act;function xa(){}
function ya(a,c){if(!a)return[];a=p(a);if(!a)return[];for(var b=a,d=[];;){if(5===b.tag||6===b.tag||1===b.tag||0===b.tag||26===b.tag||27===b.tag){var f=b.stateNode;c(f)&&d.push(f)}if(b.child)b.child.return=b,b=b.child;else{if(b===a)return d;for(;!b.sibling;){if(!b.return||b.return===a)return d;b=b.return}b.sibling.return=b.return;b=b.sibling}}}
function O(a,c){if(a&&!a._reactInternals){var b=String(a);a=M(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b;throw Error(c+"(...): the first argument must be a React class instance. Instead received: "+(a+"."));}}function P(a){return!(!a||1!==a.nodeType||!a.tagName)}function Q(a){return P(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState}
function R(a,c){return Q(a)?a._reactInternals.type===c:!1}function S(a,c){O(a,"findAllInRenderedTree");return a?ya(a._reactInternals,c):[]}
function T(a,c){O(a,"scryRenderedDOMComponentsWithClass");return S(a,function(b){if(P(b)){var d=b.className;"string"!==typeof d&&(d=b.getAttribute("class")||"");var f=d.split(/\s+/);if(!M(c)){if(void 0===c)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");c=c.split(/\s+/)}return c.every(function(g){return-1!==f.indexOf(g)})}return!1})}
function U(a,c){O(a,"scryRenderedDOMComponentsWithTag");return S(a,function(b){return P(b)&&b.tagName.toUpperCase()===c.toUpperCase()})}function V(a,c){O(a,"scryRenderedComponentsWithType");return S(a,function(b){return R(b,c)})}function W(a,c,b){var d=a.type||"unknown-event";a.currentTarget=sa(b);qa(d,c,void 0,a);a.currentTarget=null}
function X(a,c,b){for(var d=[];a;){d.push(a);do a=a.return;while(a&&5!==a.tag&&27!==a.tag);a=a?a:null}for(a=d.length;0<a--;)c(d[a],"captured",b);for(a=0;a<d.length;a++)c(d[a],"bubbled",b)}
function O(a){if(a&&!a._reactInternals){var c=String(a);a=M(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error("The first argument must be a React class instance. Instead received: "+(a+"."));}}function P(a){return!(!a||1!==a.nodeType||!a.tagName)}function Q(a){return P(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState}function R(a,c){return Q(a)?a._reactInternals.type===c:!1}
function S(a,c){O(a);return a?ya(a._reactInternals,c):[]}function T(a,c){O(a);return S(a,function(b){if(P(b)){var d=b.className;"string"!==typeof d&&(d=b.getAttribute("class")||"");var f=d.split(/\s+/);if(!M(c)){if(void 0===c)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");c=c.split(/\s+/)}return c.every(function(g){return-1!==f.indexOf(g)})}return!1})}
function U(a,c){O(a);return S(a,function(b){return P(b)&&b.tagName.toUpperCase()===c.toUpperCase()})}function V(a,c){O(a);return S(a,function(b){return R(b,c)})}function W(a,c,b){var d=a.type||"unknown-event";a.currentTarget=sa(b);qa(d,c,void 0,a);a.currentTarget=null}function X(a,c,b){for(var d=[];a;){d.push(a);do a=a.return;while(a&&5!==a.tag&&27!==a.tag);a=a?a:null}for(a=d.length;0<a--;)c(d[a],"captured",b);for(a=0;a<d.length;a++)c(d[a],"bubbled",b)}
function Y(a,c){var b=a.stateNode;if(!b)return null;var d=ta(b);if(!d)return null;b=d[c];a:switch(c){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(b&&"function"!==typeof b)throw Error("Expected `"+

@@ -38,5 +36,7 @@ c+"` listener to be a function, instead got a value of `"+typeof b+"` type.");return b}function za(a,c,b){a&&b&&b._reactName&&(c=Y(a,b._reactName))&&(null==b._dispatchListeners&&(b._dispatchListeners=[]),null==b._dispatchInstances&&(b._dispatchInstances=[]),b._dispatchListeners.push(c),b._dispatchInstances.push(a))}

"blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(a){Z[a]=Ca(a)});
exports.Simulate=Z;exports.act=wa;exports.findAllInRenderedTree=S;exports.findRenderedComponentWithType=function(a,c){O(a,"findRenderedComponentWithType");a=V(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+c);return a[0]};exports.findRenderedDOMComponentWithClass=function(a,c){O(a,"findRenderedDOMComponentWithClass");a=T(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+c);return a[0]};
exports.findRenderedDOMComponentWithTag=function(a,c){O(a,"findRenderedDOMComponentWithTag");a=U(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+c);return a[0]};exports.isCompositeComponent=Q;exports.isCompositeComponentWithType=R;exports.isDOMComponent=P;exports.isDOMComponentElement=function(a){return!!(a&&k.isValidElement(a)&&a.tagName)};exports.isElement=function(a){return k.isValidElement(a)};
exports.isElementOfType=function(a,c){return k.isValidElement(a)&&a.type===c};exports.mockComponent=function(a,c){c=c||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(c,null,this.props.children)});return this};exports.nativeTouchData=function(a,c){return{touches:[{pageX:a,pageY:c}]}};exports.renderIntoDocument=function(a){var c=document.createElement("div");return l.render(a,c)};exports.scryRenderedComponentsWithType=V;
exports.scryRenderedDOMComponentsWithClass=T;exports.scryRenderedDOMComponentsWithTag=U;exports.traverseTwoPhase=X;
exports.Simulate=Z;exports.act=wa;exports.findAllInRenderedTree=S;exports.findRenderedComponentWithType=function(a,c){O(a);a=V(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+c);return a[0]};exports.findRenderedDOMComponentWithClass=function(a,c){O(a);a=T(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+c);return a[0]};
exports.findRenderedDOMComponentWithTag=function(a,c){O(a);a=U(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+c);return a[0]};exports.isCompositeComponent=Q;exports.isCompositeComponentWithType=R;exports.isDOMComponent=P;exports.isDOMComponentElement=function(a){return!!(a&&k.isValidElement(a)&&a.tagName)};exports.isElement=function(a){return k.isValidElement(a)};exports.isElementOfType=function(a,c){return k.isValidElement(a)&&a.type===c};
exports.mockComponent=function(a,c){c=c||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(c,null,this.props.children)});return this};exports.nativeTouchData=function(a,c){return{touches:[{pageX:a,pageY:c}]}};exports.renderIntoDocument=function(a){var c=document.createElement("div");return l.render(a,c)};exports.scryRenderedComponentsWithType=V;exports.scryRenderedDOMComponentsWithClass=T;exports.scryRenderedDOMComponentsWithTag=U;
exports.traverseTwoPhase=X;
//# sourceMappingURL=react-dom-test-utils.production.min.js.map
{
"name": "react-dom",
"version": "18.3.0-canary-16d053d59-20230506",
"version": "18.3.0-canary-178c267a4e-20241218",
"description": "React package for working with the DOM.",

@@ -21,6 +21,6 @@ "main": "index.js",

"loose-envify": "^1.1.0",
"scheduler": "0.24.0-canary-16d053d59-20230506"
"scheduler": "0.24.0-canary-178c267a4e-20241218"
},
"peerDependencies": {
"react": "18.3.0-canary-16d053d59-20230506"
"react": "18.3.0-canary-178c267a4e-20241218"
},

@@ -38,5 +38,10 @@ "files": [

"server.bun.js",
"static.js",
"static.browser.js",
"static.edge.js",
"static.node.js",
"server-rendering-stub.js",
"test-utils.js",
"unstable_server-external-runtime.js",
"react-dom.react-server.js",
"cjs/",

@@ -46,7 +51,9 @@ "umd/"

"exports": {
".": "./index.js",
".": {
"react-server": "./react-dom.react-server.js",
"default": "./index.js"
},
"./client": "./client.js",
"./server": {
"workerd": "./server.edge.js",
"edge-light": "./server.edge.js",
"bun": "./server.bun.js",

@@ -56,2 +63,4 @@ "deno": "./server.browser.js",

"browser": "./server.browser.js",
"node": "./server.node.js",
"edge-light": "./server.edge.js",
"default": "./server.node.js"

@@ -63,2 +72,14 @@ },

"./server.node": "./server.node.js",
"./static": {
"workerd": "./static.edge.js",
"deno": "./static.browser.js",
"worker": "./static.browser.js",
"browser": "./static.browser.js",
"node": "./static.node.js",
"edge-light": "./static.edge.js",
"default": "./static.node.js"
},
"./static.browser": "./static.browser.js",
"./static.edge": "./static.edge.js",
"./static.node": "./static.node.js",
"./server-rendering-stub": "./server-rendering-stub.js",

@@ -71,3 +92,4 @@ "./profiling": "./profiling.js",

"browser": {
"./server.js": "./server.browser.js"
"./server.js": "./server.browser.js",
"./static.js": "./static.browser.js"
},

@@ -74,0 +96,0 @@ "browserify": {

@@ -18,1 +18,4 @@ 'use strict';

exports.renderToReadableStream = s.renderToReadableStream;
if (s.resume) {
exports.resume = s.resume;
}

@@ -15,2 +15,5 @@ 'use strict';

exports.renderToReadableStream = b.renderToReadableStream;
if (b.resume) {
exports.resume = b.resume;
}
exports.renderToNodeStream = b.renderToNodeStream;

@@ -17,0 +20,0 @@ exports.renderToStaticNodeStream = b.renderToStaticNodeStream;

@@ -19,1 +19,4 @@ 'use strict';

exports.renderToStaticMarkup = l.renderToStaticMarkup;
if (b.resume) {
exports.resume = b.resume;
}

@@ -18,1 +18,4 @@ 'use strict';

exports.renderToPipeableStream = s.renderToPipeableStream;
if (s.resumeToPipeableStream) {
exports.resumeToPipeableStream = s.resumeToPipeableStream;
}

@@ -10,10 +10,50 @@ /**

*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactDOMServerRenderingStub = {}));
})(this, (function (exports) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactDOMServerRenderingStub = {}, global.React));
})(this, (function (exports, React) { 'use strict';
var ReactVersion = '18.3.0-canary-16d053d59-20230506';
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function error(format) {
{
{
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
printWarning('error', format, args);
}
}
}
function printWarning(level, format, args) {
// When changing this logic, you might want to also
// update consoleWithStackDev.www.js as well.
{
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
var stack = ReactDebugCurrentFrame.getStackAddendum();
if (stack !== '') {
format += '%s';
args = args.concat([stack]);
} // eslint-disable-next-line react-internal/safe-string-coercion
var argsWithFormat = args.map(function (item) {
return String(item);
}); // Careful: RN currently depends on this prefix
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
// breaks IE9: https://github.com/facebook/react/issues/13610
// eslint-disable-next-line react-internal/no-production-logging
Function.prototype.apply.call(console[level], console, argsWithFormat);
}
}
var ReactVersion = '18.3.0-canary-178c267a4e-20241218';
var Internals = {

@@ -27,9 +67,34 @@ usingClientEntryPoint: false,

function getCrossOriginString(input) {
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
function getCrossOriginStringAs(as, input) {
if (as === 'font') {
return '';
}
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
var Dispatcher = Internals.Dispatcher;
function prefetchDNS(href) {
var passedOptionArg;
{
if (typeof href !== 'string' || !href) {
error('ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
} else if (arguments.length > 1) {
var options = arguments[1];
{
if (arguments[1] !== undefined) {
passedOptionArg = arguments[1];
if (typeof options === 'object' && options.hasOwnProperty('crossOrigin')) {
error('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`.', getValueDescriptorExpectingEnumForWarning(options));
} else {
error('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`.', getValueDescriptorExpectingEnumForWarning(options));
}
}

@@ -40,14 +105,4 @@ }

if (dispatcher) {
{
if (passedOptionArg !== undefined) {
// prefetchDNS will warn if you pass reserved options arg. We pass it along in Dev only to
// elicit the warning. In prod we do not forward since it is not a part of the interface.
// @TODO move all arg validation into this file. It needs to be universal anyway so may as well lock down the interace here and
// let the rest of the codebase trust the types
dispatcher.prefetchDNS(href, passedOptionArg);
} else {
dispatcher.prefetchDNS(href);
}
}
if (dispatcher && typeof href === 'string') {
dispatcher.prefetchDNS(href);
} // We don't error because preconnect needs to be resilient to being called in a variety of scopes

@@ -59,6 +114,17 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

function preconnect(href, options) {
{
if (typeof href !== 'string' || !href) {
error('ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
} else if (options != null && typeof options !== 'object') {
error('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.', getValueDescriptorExpectingEnumForWarning(options));
} else if (options != null && typeof options.crossOrigin !== 'string') {
error('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.', getValueDescriptorExpectingObjectForWarning(options.crossOrigin));
}
}
var dispatcher = Dispatcher.current;
if (dispatcher) {
dispatcher.preconnect(href, options);
if (dispatcher && typeof href === 'string') {
var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null;
dispatcher.preconnect(href, crossOrigin);
} // We don't error because preconnect needs to be resilient to being called in a variety of scopes

@@ -70,6 +136,36 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

function preload(href, options) {
{
var encountered = '';
if (typeof href !== 'string' || !href) {
encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
}
if (options == null || typeof options !== 'object') {
encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
} else if (typeof options.as !== 'string' || !options.as) {
encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".";
}
if (encountered) {
error('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', encountered);
}
}
var dispatcher = Dispatcher.current;
if (dispatcher) {
dispatcher.preload(href, options);
if (dispatcher && typeof href === 'string' && // We check existence because we cannot enforce this function is actually called with the stated type
typeof options === 'object' && options !== null && typeof options.as === 'string') {
var as = options.as;
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
dispatcher.preload(href, as, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined,
type: typeof options.type === 'string' ? options.type : undefined,
fetchPriority: typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined,
referrerPolicy: typeof options.referrerPolicy === 'string' ? options.referrerPolicy : undefined,
imageSrcSet: typeof options.imageSrcSet === 'string' ? options.imageSrcSet : undefined,
imageSizes: typeof options.imageSizes === 'string' ? options.imageSizes : undefined
});
} // We don't error because preload needs to be resilient to being called in a variety of scopes

@@ -80,7 +176,72 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

}
function preloadModule(href, options) {
{
var encountered = '';
if (typeof href !== 'string' || !href) {
encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
}
if (options !== undefined && typeof options !== 'object') {
encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
} else if (options && 'as' in options && typeof options.as !== 'string') {
encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".";
}
if (encountered) {
error('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', encountered);
}
}
var dispatcher = Dispatcher.current;
if (dispatcher && typeof href === 'string') {
if (options) {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preloadModule(href, {
as: typeof options.as === 'string' && options.as !== 'script' ? options.as : undefined,
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined
});
} else {
dispatcher.preloadModule(href);
}
} // We don't error because preload needs to be resilient to being called in a variety of scopes
// and the runtime may not be capable of responding. The function is optimistic and not critical
// so we favor silent bailout over warning or erroring.
}
function preinit(href, options) {
{
if (typeof href !== 'string' || !href) {
error('ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
} else if (options == null || typeof options !== 'object') {
error('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.', getValueDescriptorExpectingEnumForWarning(options));
} else if (options.as !== 'style' && options.as !== 'script') {
error('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".', getValueDescriptorExpectingEnumForWarning(options.as));
}
}
var dispatcher = Dispatcher.current;
if (dispatcher) {
dispatcher.preinit(href, options);
if (dispatcher && typeof href === 'string' && options && typeof options.as === 'string') {
var as = options.as;
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
var integrity = typeof options.integrity === 'string' ? options.integrity : undefined;
var fetchPriority = typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined;
if (as === 'style') {
dispatcher.preinitStyle(href, typeof options.precedence === 'string' ? options.precedence : undefined, {
crossOrigin: crossOrigin,
integrity: integrity,
fetchPriority: fetchPriority
});
} else if (as === 'script') {
dispatcher.preinitScript(href, {
crossOrigin: crossOrigin,
integrity: integrity,
fetchPriority: fetchPriority,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} // We don't error because preinit needs to be resilient to being called in a variety of scopes

@@ -91,9 +252,101 @@ // and the runtime may not be capable of responding. The function is optimistic and not critical

}
function preinitModule(href, options) {
{
var encountered = '';
if (typeof href !== 'string' || !href) {
encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
}
if (options !== undefined && typeof options !== 'object') {
encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
} else if (options && 'as' in options && options.as !== 'script') {
encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".";
}
if (encountered) {
error('ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s', encountered);
} else {
var as = options && typeof options.as === 'string' ? options.as : 'script';
switch (as) {
case 'script':
{
break;
}
// We have an invalid as type and need to warn
default:
{
var typeOfAs = getValueDescriptorExpectingEnumForWarning(as);
error('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)', typeOfAs, href);
}
}
}
}
var dispatcher = Dispatcher.current;
if (dispatcher && typeof href === 'string') {
if (typeof options === 'object' && options !== null) {
if (options.as == null || options.as === 'script') {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} else if (options == null) {
dispatcher.preinitModuleScript(href);
}
} // We don't error because preinit needs to be resilient to being called in a variety of scopes
// and the runtime may not be capable of responding. The function is optimistic and not critical
// so we favor silent bailout over warning or erroring.
}
function getValueDescriptorExpectingObjectForWarning(thing) {
return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : "something with type \"" + typeof thing + "\"";
}
function getValueDescriptorExpectingEnumForWarning(thing) {
return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : typeof thing === 'string' ? JSON.stringify(thing) : typeof thing === 'number' ? '`' + thing + '`' : "something with type \"" + typeof thing + "\"";
}
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; // Since the "not pending" value is always the same, we can reuse the
function resolveDispatcher() {
// Copied from react/src/ReactHooks.js. It's the same thing but in a
// different package.
var dispatcher = ReactCurrentDispatcher.current;
{
if (dispatcher === null) {
error('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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
}
} // Will result in a null access error if accessed outside render phase. We
// intentionally don't throw our own error because this is in a hot path.
// Also helps ensure this is inlined.
return dispatcher;
}
function useFormStatus() {
{
throw new Error('Not implemented.');
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] We know this exists because of the feature check above.
return dispatcher.useHostTransitionStatus();
}
}
function useFormState(action, initialState, permalink) {
{
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] This is unstable, thus optional
return dispatcher.useFormState(action, initialState, permalink);
}
}
function createPortal() {

@@ -104,7 +357,30 @@ throw new Error('createPortal was called on the server. Portals are not currently' + ' supported on the server. Update your program to conditionally call' + ' createPortal on the client only.');

throw new Error('flushSync was called on the server. This is likely caused by a' + ' function being called during render or in module scope that was' + ' intended to be called from an effect or event handler. Update your' + ' to not call flushSync no the server.');
} // on the server we just call the callback because there is
// not update mechanism. Really this should not be called on the
// server but since the semantics are generally clear enough we
// can provide this trivial implementation.
function batchedUpdates(fn, a) {
return fn(a);
}
function experimental_useFormStatus() {
{
error('useFormStatus is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormStatus();
}
function experimental_useFormState(action, initialState, permalink) {
{
error('useFormState is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormState(action, initialState, permalink);
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = createPortal;
exports.experimental_useFormStatus = useFormStatus;
exports.experimental_useFormState = experimental_useFormState;
exports.experimental_useFormStatus = experimental_useFormStatus;
exports.flushSync = flushSync;

@@ -114,5 +390,10 @@ exports.preconnect = preconnect;

exports.preinit = preinit;
exports.preinitModule = preinitModule;
exports.preload = preload;
exports.preloadModule = preloadModule;
exports.unstable_batchedUpdates = batchedUpdates;
exports.useFormState = useFormState;
exports.useFormStatus = useFormStatus;
exports.version = ReactVersion;
}));

@@ -10,5 +10,9 @@ /**

*/
(function(){'use strict';(function(a,e){"object"===typeof exports&&"undefined"!==typeof module?e(exports):"function"===typeof define&&define.amd?define(["exports"],e):(a="undefined"!==typeof globalThis?globalThis:a||self,e(a.ReactDOMServerRenderingStub={}))})(this,function(a){function e(d){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+d,b=1;b<arguments.length;b++)c+="&args[]="+encodeURIComponent(arguments[b]);return"Minified React error #"+d+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
var g={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}},f=g.Dispatcher;a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g;a.createPortal=function(){throw Error(e(448));};a.experimental_useFormStatus=function(){throw Error(e(248));};a.flushSync=function(){throw Error(e(449));};a.preconnect=function(d,c){var b=f.current;b&&b.preconnect(d,c)};a.prefetchDNS=function(d){var c=f.current;c&&c.prefetchDNS(d)};a.preinit=function(d,c){var b=f.current;b&&b.preinit(d,c)};a.preload=function(d,
c){var b=f.current;b&&b.preload(d,c)};a.version="18.3.0-canary-16d053d59-20230506"});
})();
'use strict';(function(){(function(d,g){"object"===typeof exports&&"undefined"!==typeof module?g(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],g):(d="undefined"!==typeof globalThis?globalThis:d||self,g(d.ReactDOMServerRenderingStub={},d.React))})(this,function(d,g){function l(b){var a="https://react.dev/errors/"+b;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+
b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(b,a){if("font"===b)return"";if("string"===typeof a)return"use-credentials"===a?a:""}function m(){return n.current.useHostTransitionStatus()}function p(b,a,c){return n.current.useFormState(b,a,c)}var q={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}},f=q.Dispatcher,n=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=
q;d.createPortal=function(){throw Error(l(448));};d.experimental_useFormState=function(b,a,c){return p(b,a,c)};d.experimental_useFormStatus=function(){return m()};d.flushSync=function(){throw Error(l(449));};d.preconnect=function(b,a){var c=f.current;c&&"string"===typeof b&&(a?(a=a.crossOrigin,a="string"===typeof a?"use-credentials"===a?a:"":void 0):a=null,c.preconnect(b,a))};d.prefetchDNS=function(b){var a=f.current;a&&"string"===typeof b&&a.prefetchDNS(b)};d.preinit=function(b,a){var c=f.current;
if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var e=a.as,k=h(e,a.crossOrigin),r="string"===typeof a.integrity?a.integrity:void 0,t="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===e?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:k,integrity:r,fetchPriority:t}):"script"===e&&c.preinitScript(b,{crossOrigin:k,integrity:r,fetchPriority:t,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};d.preinitModule=function(b,a){var c=f.current;if(c&&"string"===
typeof b)if("object"===typeof a&&null!==a){if(null==a.as||"script"===a.as){var e=h(a.as,a.crossOrigin);c.preinitModuleScript(b,{crossOrigin:e,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0})}}else null==a&&c.preinitModuleScript(b)};d.preload=function(b,a){var c=f.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var e=a.as,k=h(e,a.crossOrigin);c.preload(b,e,{crossOrigin:k,integrity:"string"===typeof a.integrity?
a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};d.preloadModule=function(b,a){var c=f.current;if(c&&"string"===typeof b)if(a){var e=h(a.as,a.crossOrigin);c.preloadModule(b,
{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:e,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};d.unstable_batchedUpdates=function(b,a){return b(a)};d.useFormState=p;d.useFormStatus=m;d.version="18.3.0-canary-178c267a4e-20241218"})})();

@@ -10,2 +10,3 @@ /**

*/
(function (global, factory) {

@@ -1142,5 +1143,7 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) :

var enqueueStateRestore = EventInternals[3];
var restoreStateIfNeeded = EventInternals[4];
var act = React.unstable_act;
var restoreStateIfNeeded = EventInternals[4]; // TODO: Add a warning if this API is accessed with advice to switch to
// importing directly from the React package instead.
var act = React.act;
function Event(suffix) {}

@@ -1168,3 +1171,3 @@

while (true) {
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent || (node.tag === HostHoistable ) || (node.tag === HostSingleton )) {
if (node.tag === HostComponent || node.tag === HostText || node.tag === ClassComponent || node.tag === FunctionComponent || (node.tag === HostHoistable ) || node.tag === HostSingleton) {
var publicInst = node.stateNode;

@@ -1224,3 +1227,3 @@

throw new Error(methodName + "(...): the first argument must be a React class instance. " + ("Instead received: " + received + "."));
throw new Error("The first argument must be a React class instance. " + ("Instead received: " + received + "."));
}

@@ -1285,3 +1288,3 @@ /**

function findAllInRenderedTree(inst, test) {
validateClassInstance(inst, 'findAllInRenderedTree');
validateClassInstance(inst);

@@ -1303,3 +1306,3 @@ if (!inst) {

function scryRenderedDOMComponentsWithClass(root, classNames) {
validateClassInstance(root, 'scryRenderedDOMComponentsWithClass');
validateClassInstance(root);
return findAllInRenderedTree(root, function (inst) {

@@ -1341,3 +1344,3 @@ if (isDOMComponent(inst)) {

function findRenderedDOMComponentWithClass(root, className) {
validateClassInstance(root, 'findRenderedDOMComponentWithClass');
validateClassInstance(root);
var all = scryRenderedDOMComponentsWithClass(root, className);

@@ -1359,3 +1362,3 @@

function scryRenderedDOMComponentsWithTag(root, tagName) {
validateClassInstance(root, 'scryRenderedDOMComponentsWithTag');
validateClassInstance(root);
return findAllInRenderedTree(root, function (inst) {

@@ -1374,3 +1377,3 @@ return isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase();

function findRenderedDOMComponentWithTag(root, tagName) {
validateClassInstance(root, 'findRenderedDOMComponentWithTag');
validateClassInstance(root);
var all = scryRenderedDOMComponentsWithTag(root, tagName);

@@ -1391,3 +1394,3 @@

function scryRenderedComponentsWithType(root, componentType) {
validateClassInstance(root, 'scryRenderedComponentsWithType');
validateClassInstance(root);
return findAllInRenderedTree(root, function (inst) {

@@ -1406,3 +1409,3 @@ return isCompositeComponentWithType(inst, componentType);

function findRenderedComponentWithType(root, componentType) {
validateClassInstance(root, 'findRenderedComponentWithType');
validateClassInstance(root);
var all = scryRenderedComponentsWithType(root, componentType);

@@ -1528,3 +1531,3 @@

// do the portal feature.
} while (inst && inst.tag !== HostComponent && (inst.tag !== HostSingleton));
} while (inst && inst.tag !== HostComponent && inst.tag !== HostSingleton);

@@ -1531,0 +1534,0 @@ if (inst) {

@@ -10,12 +10,13 @@ /**

*/
(function(){'use strict';(function(k,q){"object"===typeof exports&&"undefined"!==typeof module?q(exports,require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react","react-dom"],q):(k="undefined"!==typeof globalThis?globalThis:k||self,q(k.ReactTestUtils={},k.React,k.ReactDOM))})(this,function(k,q,E){function M(a){var c=a,b=a;if(a.alternate)for(;c.return;)c=c.return;else{a=c;do c=a,0!==(c.flags&4098)&&(b=c.return),a=c.return;while(a)}return 3===c.tag?b:null}function N(a){if(M(a)!==
a)throw Error("Unable to find node on an unmounted component.");}function X(a){var c=a.alternate;if(!c){c=M(a);if(null===c)throw Error("Unable to find node on an unmounted component.");return c!==a?null:a}for(var b=a,d=c;;){var f=b.return;if(null===f)break;var g=f.alternate;if(null===g){d=f.return;if(null!==d){b=d;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===b)return N(f),a;if(g===d)return N(f),c;g=g.sibling}throw Error("Unable to find node on an unmounted component.");}if(b.return!==
d.return)b=f,d=g;else{for(var e=!1,h=f.child;h;){if(h===b){e=!0;b=f;d=g;break}if(h===d){e=!0;d=f;b=g;break}h=h.sibling}if(!e){for(h=g.child;h;){if(h===b){e=!0;b=g;d=f;break}if(h===d){e=!0;d=g;b=f;break}h=h.sibling}if(!e)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");}}if(b.alternate!==d)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
'use strict';(function(){(function(k,q){"object"===typeof exports&&"undefined"!==typeof module?q(exports,require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react","react-dom"],q):(k="undefined"!==typeof globalThis?globalThis:k||self,q(k.ReactTestUtils={},k.React,k.ReactDOM))})(this,function(k,q,E){function M(a){var c=a,b=a;if(a.alternate)for(;c.return;)c=c.return;else{a=c;do c=a,0!==(c.flags&4098)&&(b=c.return),a=c.return;while(a)}return 3===c.tag?b:null}
function N(a){if(M(a)!==a)throw Error("Unable to find node on an unmounted component.");}function X(a){var c=a.alternate;if(!c){c=M(a);if(null===c)throw Error("Unable to find node on an unmounted component.");return c!==a?null:a}for(var b=a,d=c;;){var f=b.return;if(null===f)break;var g=f.alternate;if(null===g){d=f.return;if(null!==d){b=d;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===b)return N(f),a;if(g===d)return N(f),c;g=g.sibling}throw Error("Unable to find node on an unmounted component.");
}if(b.return!==d.return)b=f,d=g;else{for(var e=!1,h=f.child;h;){if(h===b){e=!0;b=f;d=g;break}if(h===d){e=!0;d=f;b=g;break}h=h.sibling}if(!e){for(h=g.child;h;){if(h===b){e=!0;b=g;d=f;break}if(h===d){e=!0;d=g;b=f;break}h=h.sibling}if(!e)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");}}if(b.alternate!==d)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
}if(3!==b.tag)throw Error("Unable to find node on an unmounted component.");return b.stateNode.current===b?a:c}function F(a){var c=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===c&&(a=13)):a=c;10===a&&(a=13);return 32<=a||13===a?a:0}function y(){return!0}function O(){return!1}function n(a){function c(b,d,f,g,e){this._reactName=b;this._targetInst=f;this.type=d;this.nativeEvent=g;this.target=e;this.currentTarget=null;for(var h in a)a.hasOwnProperty(h)&&(b=a[h],this[h]=b?b(g):g[h]);this.isDefaultPrevented=
(null!=g.defaultPrevented?g.defaultPrevented:!1===g.returnValue)?y:O;this.isPropagationStopped=O;return this}l(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var b=this.nativeEvent;b&&(b.preventDefault?b.preventDefault():"unknown"!==typeof b.returnValue&&(b.returnValue=!1),this.isDefaultPrevented=y)},stopPropagation:function(){var b=this.nativeEvent;b&&(b.stopPropagation?b.stopPropagation():"unknown"!==typeof b.cancelBubble&&(b.cancelBubble=!0),this.isPropagationStopped=y)},persist:function(){},
isPersistent:y});return c}function Y(a){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(a):(a=Z[a])?!!c[a]:!1}function G(a){return Y}function aa(a,c,b){var d=Array.prototype.slice.call(arguments,3);try{c.apply(b,d)}catch(f){this.onError(f)}}function ba(a,c,b,d,f,g,e,h,z){w=!1;A=null;aa.apply(ca,arguments)}function da(a,c,b,d,f,g,e,h,z){ba.apply(this,arguments);if(w){if(w){var v=A;w=!1;A=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
B||(B=!0,H=v)}}function ea(a){}function fa(a,c){if(!a)return[];a=X(a);if(!a)return[];for(var b=a,d=[];;){if(5===b.tag||6===b.tag||1===b.tag||0===b.tag||26===b.tag||27===b.tag){var f=b.stateNode;c(f)&&d.push(f)}if(b.child)b.child.return=b,b=b.child;else{if(b===a)return d;for(;!b.sibling;){if(!b.return||b.return===a)return d;b=b.return}b.sibling.return=b.return;b=b.sibling}}}function t(a,c){if(a&&!a._reactInternals){var b=String(a);a=I(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===
b?"object with keys {"+Object.keys(a).join(", ")+"}":b;throw Error(c+"(...): the first argument must be a React class instance. Instead received: "+(a+"."));}}function C(a){return!(!a||1!==a.nodeType||!a.tagName)}function J(a){return C(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState}function P(a,c){return J(a)?a._reactInternals.type===c:!1}function D(a,c){t(a,"findAllInRenderedTree");return a?fa(a._reactInternals,c):[]}function Q(a,c){t(a,"scryRenderedDOMComponentsWithClass");
return D(a,function(b){if(C(b)){var d=b.className;"string"!==typeof d&&(d=b.getAttribute("class")||"");var f=d.split(/\s+/);if(!I(c)){if(void 0===c)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");c=c.split(/\s+/)}return c.every(function(g){return-1!==f.indexOf(g)})}return!1})}function R(a,c){t(a,"scryRenderedDOMComponentsWithTag");return D(a,function(b){return C(b)&&b.tagName.toUpperCase()===c.toUpperCase()})}function S(a,c){t(a,"scryRenderedComponentsWithType");
return D(a,function(b){return P(b,c)})}function T(a,c,b){var d=a.type||"unknown-event";a.currentTarget=ha(b);da(d,c,void 0,a);a.currentTarget=null}function U(a,c,b){for(var d=[];a;){d.push(a);do a=a.return;while(a&&5!==a.tag&&27!==a.tag);a=a?a:null}for(a=d.length;0<a--;)c(d[a],"captured",b);for(a=0;a<d.length;a++)c(d[a],"bubbled",b)}function V(a,c){var b=a.stateNode;if(!b)return null;var d=ia(b);if(!d)return null;b=d[c];a:switch(c){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=
B||(B=!0,H=v)}}function ea(a){}function fa(a,c){if(!a)return[];a=X(a);if(!a)return[];for(var b=a,d=[];;){if(5===b.tag||6===b.tag||1===b.tag||0===b.tag||26===b.tag||27===b.tag){var f=b.stateNode;c(f)&&d.push(f)}if(b.child)b.child.return=b,b=b.child;else{if(b===a)return d;for(;!b.sibling;){if(!b.return||b.return===a)return d;b=b.return}b.sibling.return=b.return;b=b.sibling}}}function t(a,c){if(a&&!a._reactInternals)throw c=String(a),a=I(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===
c?"object with keys {"+Object.keys(a).join(", ")+"}":c,Error("The first argument must be a React class instance. Instead received: "+(a+"."));}function C(a){return!(!a||1!==a.nodeType||!a.tagName)}function J(a){return C(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState}function P(a,c){return J(a)?a._reactInternals.type===c:!1}function D(a,c){t(a);return a?fa(a._reactInternals,c):[]}function Q(a,c){t(a);return D(a,function(b){if(C(b)){var d=b.className;"string"!==typeof d&&
(d=b.getAttribute("class")||"");var f=d.split(/\s+/);if(!I(c)){if(void 0===c)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");c=c.split(/\s+/)}return c.every(function(g){return-1!==f.indexOf(g)})}return!1})}function R(a,c){t(a);return D(a,function(b){return C(b)&&b.tagName.toUpperCase()===c.toUpperCase()})}function S(a,c){t(a);return D(a,function(b){return P(b,c)})}function T(a,c,b){var d=a.type||"unknown-event";a.currentTarget=ha(b);da(d,c,void 0,
a);a.currentTarget=null}function U(a,c,b){for(var d=[];a;){d.push(a);do a=a.return;while(a&&5!==a.tag&&27!==a.tag);a=a?a:null}for(a=d.length;0<a--;)c(d[a],"captured",b);for(a=0;a<d.length;a++)c(d[a],"bubbled",b)}function V(a,c){var b=a.stateNode;if(!b)return null;var d=ia(b);if(!d)return null;b=d[c];a:switch(c){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=
!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(b&&"function"!==typeof b)throw Error("Expected `"+c+"` listener to be a function, instead got a value of `"+typeof b+"` type.");return b}function ja(a,c,b){a&&b&&b._reactName&&(c=V(a,b._reactName))&&(null==b._dispatchListeners&&(b._dispatchListeners=[]),null==b._dispatchInstances&&(b._dispatchInstances=[]),b._dispatchListeners.push(c),b._dispatchInstances.push(a))}function ka(a,

@@ -30,6 +31,5 @@ c,b){var d=b._reactName;"captured"===c&&(d+="Capture");if(c=V(a,d))null==b._dispatchListeners&&(b._dispatchListeners=[]),null==b._dispatchInstances&&(b._dispatchInstances=[]),b._dispatchListeners.push(c),b._dispatchInstances.push(a)}function la(a){return function(c,b){if(q.isValidElement(c))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");

isPrimary:0});n(p);u=l({},u,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:G});n(u);r=l({},r,{propertyName:0,elapsedTime:0,pseudoElement:0});n(r);m=l({},m,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0});n(m);var w=!1,A=null,B=!1,H=null,ca={onError:function(a){w=!0;A=a}},I=Array.isArray;
m=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var ma=m[0],ha=m[1],ia=m[2],pa=m[3],qa=m[4];m=q.unstable_act;var W={},oa=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]),ta="blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ");
(function(){ta.forEach(function(a){W[a]=la(a)})})();k.Simulate=W;k.act=m;k.findAllInRenderedTree=D;k.findRenderedComponentWithType=function(a,c){t(a,"findRenderedComponentWithType");a=S(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+c);return a[0]};k.findRenderedDOMComponentWithClass=function(a,c){t(a,"findRenderedDOMComponentWithClass");a=Q(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+
c);return a[0]};k.findRenderedDOMComponentWithTag=function(a,c){t(a,"findRenderedDOMComponentWithTag");a=R(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+c);return a[0]};k.isCompositeComponent=J;k.isCompositeComponentWithType=P;k.isDOMComponent=C;k.isDOMComponentElement=function(a){return!!(a&&q.isValidElement(a)&&a.tagName)};k.isElement=function(a){return q.isValidElement(a)};k.isElementOfType=function(a,c){return q.isValidElement(a)&&a.type===c};
k.mockComponent=function(a,c){c=c||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return q.createElement(c,null,this.props.children)});return this};k.nativeTouchData=function(a,c){return{touches:[{pageX:a,pageY:c}]}};k.renderIntoDocument=function(a){var c=document.createElement("div");return E.render(a,c)};k.scryRenderedComponentsWithType=S;k.scryRenderedDOMComponentsWithClass=Q;k.scryRenderedDOMComponentsWithTag=R;k.traverseTwoPhase=U});
})();
m=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;var ma=m[0],ha=m[1],ia=m[2],pa=m[3],qa=m[4];m=q.act;var W={},oa=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]),ta="blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ");
(function(){ta.forEach(function(a){W[a]=la(a)})})();k.Simulate=W;k.act=m;k.findAllInRenderedTree=D;k.findRenderedComponentWithType=function(a,c){t(a);a=S(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+c);return a[0]};k.findRenderedDOMComponentWithClass=function(a,c){t(a);a=Q(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+c);return a[0]};k.findRenderedDOMComponentWithTag=function(a,c){t(a);
a=R(a,c);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+c);return a[0]};k.isCompositeComponent=J;k.isCompositeComponentWithType=P;k.isDOMComponent=C;k.isDOMComponentElement=function(a){return!!(a&&q.isValidElement(a)&&a.tagName)};k.isElement=function(a){return q.isValidElement(a)};k.isElementOfType=function(a,c){return q.isValidElement(a)&&a.type===c};k.mockComponent=function(a,c){c=c||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return q.createElement(c,
null,this.props.children)});return this};k.nativeTouchData=function(a,c){return{touches:[{pageX:a,pageY:c}]}};k.renderIntoDocument=function(a){var c=document.createElement("div");return E.render(a,c)};k.scryRenderedComponentsWithType=S;k.scryRenderedDOMComponentsWithClass=Q;k.scryRenderedDOMComponentsWithTag=R;k.traverseTwoPhase=U})})();

@@ -1,6 +0,7 @@

(function(){function p(c,a,e){a=document.getElementById(a);a.parentNode.removeChild(a);var b=document.getElementById(c);if(b){c=b.previousSibling;if(e)c.data="$!",b.setAttribute("data-dgst",e);else{e=c.parentNode;b=c.nextSibling;var h=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$!"!==d||h++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;a.firstChild;)e.insertBefore(a.firstChild,b);c.data="$"}c._reactRetry&&c._reactRetry()}}function B(c,a,
e){for(var b=new Map,h=document,d,g,q=h.querySelectorAll("link[data-precedence],style[data-precedence]"),w=[],r=0;g=q[r++];)"not all"===g.getAttribute("media")?w.push(g):("LINK"===g.tagName&&v.set(g.getAttribute("href"),g),b.set(g.dataset.precedence,d=g));g=0;q=[];var t,f;for(r=!0;;){if(r){var n=e[g++];if(!n){r=!1;g=0;continue}var k=!1,u=0;var l=n[u++];if(f=v.get(l)){var m=f._p;k=!0}else{f=h.createElement("link");f.href=l;f.rel="stylesheet";for(f.dataset.precedence=t=n[u++];m=n[u++];)f.setAttribute(m,
n[u++]);m=f._p=new Promise(function(C,D){f.onload=C;f.onerror=D});v.set(l,f)}l=f.getAttribute("media");!m||"l"===m.s||l&&!window.matchMedia(l).matches||q.push(m);if(k)continue}else{f=w[g++];if(!f)break;t=f.getAttribute("data-precedence");f.removeAttribute("media")}k=b.get(t)||d;k===d&&(d=f);b.set(t,f);k?k.parentNode.insertBefore(f,k.nextSibling):(k=h.head,k.insertBefore(f,k.firstChild))}Promise.all(q).then(p.bind(null,c,a,""),p.bind(null,c,a,"Resource failed to load"))}function x(c){c=c.querySelectorAll("template");
for(var a=0;a<c.length;a++)y(c[a])}function z(c){function a(b){for(var h=0;h<b.length;h++)for(var d=b[h].addedNodes,g=0;g<d.length;g++)d[g].parentNode&&y(d[g])}var e=new MutationObserver(a);e.observe(c,{childList:!0});window.addEventListener("DOMContentLoaded",function(){a(e.takeRecords());e.disconnect()})}function y(c){if(1===c.nodeType&&c.dataset){var a=c.dataset;if(null!=a.rxi){var e=a.dgst,b=a.msg,h=a.stck,d=document.getElementById(a.bid);d&&(a=d.previousSibling,a.data="$!",d=d.dataset,e&&(d.dgst=
e),b&&(d.msg=b),h&&(d.stck=h),a._reactRetry&&a._reactRetry());c.remove()}else if(null!=a.rri)B(a.bid,a.sid,JSON.parse(a.sty)),c.remove();else if(null!=a.rci)p(a.bid,a.sid),c.remove();else if(null!=a.rsi){e=a.pid;b=document.getElementById(a.sid);e=document.getElementById(e);for(b.parentNode.removeChild(b);b.firstChild;)e.parentNode.insertBefore(b.firstChild,e);e.parentNode.removeChild(e);c.remove()}}}var v=new Map;window.$RC||(window.$RC=p,window.$RM=new Map);if(null!=document.body)"loading"===document.readyState&&
z(document.body),x(document.body);else{var A=new MutationObserver(function(){null!=document.body&&("loading"===document.readyState&&z(document.body),x(document.body),A.disconnect())});A.observe(document.documentElement,{childList:!0})}})();
(function(){function p(b,a,d){a=document.getElementById(a);a.parentNode.removeChild(a);var c=document.getElementById(b);if(c){b=c.previousSibling;if(d)b.data="$!",c.setAttribute("data-dgst",d);else{d=b.parentNode;c=b.nextSibling;var f=0;do{if(c&&8===c.nodeType){var e=c.data;if("/$"===e)if(0===f)break;else f--;else"$"!==e&&"$?"!==e&&"$!"!==e||f++}e=c.nextSibling;d.removeChild(c);c=e}while(c);for(;a.firstChild;)d.insertBefore(a.firstChild,c);b.data="$"}b._reactRetry&&b._reactRetry()}}function B(b,a,
d){for(var c=new Map,f=document,e,h,q=f.querySelectorAll("link[data-precedence],style[data-precedence]"),w=[],r=0;h=q[r++];)"not all"===h.getAttribute("media")?w.push(h):("LINK"===h.tagName&&v.set(h.getAttribute("href"),h),c.set(h.dataset.precedence,e=h));h=0;q=[];var t,g;for(r=!0;;){if(r){var n=d[h++];if(!n){r=!1;h=0;continue}var k=!1,u=0;var l=n[u++];if(g=v.get(l)){var m=g._p;k=!0}else{g=f.createElement("link");g.href=l;g.rel="stylesheet";for(g.dataset.precedence=t=n[u++];m=n[u++];)g.setAttribute(m,
n[u++]);m=g._p=new Promise(function(C,D){g.onload=C;g.onerror=D});v.set(l,g)}l=g.getAttribute("media");!m||"l"===m.s||l&&!window.matchMedia(l).matches||q.push(m);if(k)continue}else{g=w[h++];if(!g)break;t=g.getAttribute("data-precedence");g.removeAttribute("media")}k=c.get(t)||e;k===e&&(e=g);c.set(t,g);k?k.parentNode.insertBefore(g,k.nextSibling):(k=f.head,k.insertBefore(g,k.firstChild))}Promise.all(q).then(p.bind(null,b,a,""),p.bind(null,b,a,"Resource failed to load"))}function x(b){b=b.querySelectorAll("template");
for(var a=0;a<b.length;a++)y(b[a])}function z(b){function a(c){for(var f=0;f<c.length;f++)for(var e=c[f].addedNodes,h=0;h<e.length;h++)e[h].parentNode&&y(e[h])}var d=new MutationObserver(a);d.observe(b,{childList:!0});window.addEventListener("DOMContentLoaded",function(){a(d.takeRecords());d.disconnect()})}function y(b){if(1===b.nodeType&&b.dataset){var a=b.dataset;if(null!=a.rxi){var d=a.dgst,c=a.msg,f=a.stck,e=document.getElementById(a.bid);e&&(a=e.previousSibling,a.data="$!",e=e.dataset,d&&(e.dgst=
d),c&&(e.msg=c),f&&(e.stck=f),a._reactRetry&&a._reactRetry());b.remove()}else if(null!=a.rri)B(a.bid,a.sid,JSON.parse(a.sty)),b.remove();else if(null!=a.rci)p(a.bid,a.sid),b.remove();else if(null!=a.rsi){d=a.pid;c=document.getElementById(a.sid);d=document.getElementById(d);for(c.parentNode.removeChild(c);c.firstChild;)d.parentNode.insertBefore(c.firstChild,d);d.parentNode.removeChild(d);b.remove()}}}var v=new Map;(function(){addEventListener("submit",function(b){if(!b.defaultPrevented){var a=b.target,
d=b.submitter,c=a.action,f=d;if(d){var e=d.getAttribute("formAction");null!=e&&(c=e,f=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===c&&(b.preventDefault(),f?(b=document.createElement("input"),b.name=f.name,b.value=f.value,f.parentNode.insertBefore(b,f),f=new FormData(a),b.parentNode.removeChild(b)):f=new FormData(a),b=a.ownerDocument||a,(b.$$reactFormReplay=b.$$reactFormReplay||[]).push(a,d,f))}})})();window.$RC||(window.$RC=p,window.$RM=new Map);if(null!=document.body)"loading"===
document.readyState&&z(document.body),x(document.body);else{var A=new MutationObserver(function(){null!=document.body&&("loading"===document.readyState&&z(document.body),x(document.body),A.disconnect())});A.observe(document.documentElement,{childList:!0})}})();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc