PluginProbe
Gutenberg / 23.7.2
Gutenberg v23.7.2
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / build / scripts / vendors / react-19.js

react-19.js in Gutenberg 23.7.2, at build/scripts/vendors/react-19.js

1,088 lines 50.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var React = (() => {
2 function __wpWarnCompat(key) {var w = __wpWarnCompat.warned || (__wpWarnCompat.warned = {});if (w[key]) return;w[key] = true;var messages = {"legacy-element":"A React element created by an older React runtime (React 17/18) was detected and is handled by a compatibility patch. This usually means a bundled package ships its own React; align it with React 19.","inert":"An empty-string `inert` attribute was used. React 19 treats `inert` as a boolean, so the value was coerced to `true` by a compatibility patch. Pass `inert={true}` instead."};if (typeof console !== "undefined" && console.warn) {console.warn("[wordpress-react-19] " + messages[key]);}}
3
4 var __defProp = Object.defineProperty;
5 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6 var __getOwnPropNames = Object.getOwnPropertyNames;
7 var __hasOwnProp = Object.prototype.hasOwnProperty;
8 var __esm = (fn, res) => function __init() {
9 return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10 };
11 var __commonJS = (cb, mod) => function __require() {
12 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13 };
14 var __export = (target, all) => {
15 for (var name in all)
16 __defProp(target, name, { get: all[name], enumerable: true });
17 };
18 var __copyProps = (to, from, except, desc) => {
19 if (from && typeof from === "object" || typeof from === "function") {
20 for (let key of __getOwnPropNames(from))
21 if (!__hasOwnProp.call(to, key) && key !== except)
22 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23 }
24 return to;
25 };
26 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
28 // ../react-19/warn-compat.js
29 var warn_compat_exports = {};
30 __export(warn_compat_exports, {
31 warnCompat: () => warnCompat
32 });
33 function warnCompat(key, message) {
34 if (warned.has(key)) {
35 return;
36 }
37 warned.add(key);
38 if (typeof console !== "undefined" && console.warn) {
39 console.warn(`${PREFIX} ${message}`);
40 }
41 }
42 var PREFIX, warned;
43 var init_warn_compat = __esm({
44 "../react-19/warn-compat.js"() {
45 PREFIX = "[wordpress-react-19]";
46 warned = /* @__PURE__ */ new Set();
47 }
48 });
49
50 // ../react-19/node_modules/react/cjs/react.development.js
51 var require_react_development = __commonJS({
52 "../react-19/node_modules/react/cjs/react.development.js"(exports, module) {
53 "use strict";
54 (function() {
55 function defineDeprecationWarning(methodName, info) {
56 Object.defineProperty(Component.prototype, methodName, {
57 get: function() {
58 console.warn(
59 "%s(...) is deprecated in plain JavaScript React classes. %s",
60 info[0],
61 info[1]
62 );
63 }
64 });
65 }
66 function getIteratorFn(maybeIterable) {
67 if (null === maybeIterable || "object" !== typeof maybeIterable)
68 return null;
69 maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
70 return "function" === typeof maybeIterable ? maybeIterable : null;
71 }
72 function warnNoop(publicInstance, callerName) {
73 publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
74 var warningKey = publicInstance + "." + callerName;
75 didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
76 "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
77 callerName,
78 publicInstance
79 ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
80 }
81 function Component(props, context, updater) {
82 this.props = props;
83 this.context = context;
84 this.refs = emptyObject;
85 this.updater = updater || ReactNoopUpdateQueue;
86 }
87 function ComponentDummy() {
88 }
89 function PureComponent(props, context, updater) {
90 this.props = props;
91 this.context = context;
92 this.refs = emptyObject;
93 this.updater = updater || ReactNoopUpdateQueue;
94 }
95 function noop() {
96 }
97 function testStringCoercion(value) {
98 return "" + value;
99 }
100 function checkKeyStringCoercion(value) {
101 try {
102 testStringCoercion(value);
103 var JSCompiler_inline_result = false;
104 } catch (e) {
105 JSCompiler_inline_result = true;
106 }
107 if (JSCompiler_inline_result) {
108 JSCompiler_inline_result = console;
109 var JSCompiler_temp_const = JSCompiler_inline_result.error;
110 var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
111 JSCompiler_temp_const.call(
112 JSCompiler_inline_result,
113 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
114 JSCompiler_inline_result$jscomp$0
115 );
116 return testStringCoercion(value);
117 }
118 }
119 function getComponentNameFromType(type) {
120 if (null == type) return null;
121 if ("function" === typeof type)
122 return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
123 if ("string" === typeof type) return type;
124 switch (type) {
125 case REACT_FRAGMENT_TYPE:
126 return "Fragment";
127 case REACT_PROFILER_TYPE:
128 return "Profiler";
129 case REACT_STRICT_MODE_TYPE:
130 return "StrictMode";
131 case REACT_SUSPENSE_TYPE:
132 return "Suspense";
133 case REACT_SUSPENSE_LIST_TYPE:
134 return "SuspenseList";
135 case REACT_ACTIVITY_TYPE:
136 return "Activity";
137 }
138 if ("object" === typeof type)
139 switch ("number" === typeof type.tag && console.error(
140 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
141 ), type.$$typeof) {
142 case REACT_PORTAL_TYPE:
143 return "Portal";
144 case REACT_CONTEXT_TYPE:
145 return type.displayName || "Context";
146 case REACT_CONSUMER_TYPE:
147 return (type._context.displayName || "Context") + ".Consumer";
148 case REACT_FORWARD_REF_TYPE:
149 var innerType = type.render;
150 type = type.displayName;
151 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
152 return type;
153 case REACT_MEMO_TYPE:
154 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
155 case REACT_LAZY_TYPE:
156 innerType = type._payload;
157 type = type._init;
158 try {
159 return getComponentNameFromType(type(innerType));
160 } catch (x) {
161 }
162 }
163 return null;
164 }
165 function getTaskName(type) {
166 if (type === REACT_FRAGMENT_TYPE) return "<>";
167 if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
168 return "<...>";
169 try {
170 var name = getComponentNameFromType(type);
171 return name ? "<" + name + ">" : "<...>";
172 } catch (x) {
173 return "<...>";
174 }
175 }
176 function getOwner() {
177 var dispatcher = ReactSharedInternals.A;
178 return null === dispatcher ? null : dispatcher.getOwner();
179 }
180 function UnknownOwner() {
181 return Error("react-stack-top-frame");
182 }
183 function hasValidKey(config) {
184 if (hasOwnProperty.call(config, "key")) {
185 var getter = Object.getOwnPropertyDescriptor(config, "key").get;
186 if (getter && getter.isReactWarning) return false;
187 }
188 return void 0 !== config.key;
189 }
190 function defineKeyPropWarningGetter(props, displayName) {
191 function warnAboutAccessingKey() {
192 specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
193 "%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)",
194 displayName
195 ));
196 }
197 warnAboutAccessingKey.isReactWarning = true;
198 Object.defineProperty(props, "key", {
199 get: warnAboutAccessingKey,
200 configurable: true
201 });
202 }
203 function elementRefGetterWithDeprecationWarning() {
204 var componentName = getComponentNameFromType(this.type);
205 didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
206 "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."
207 ));
208 componentName = this.props.ref;
209 return void 0 !== componentName ? componentName : null;
210 }
211 function ReactElement(type, key, props, owner, debugStack, debugTask) {
212 var refProp = props.ref;
213 type = {
214 $$typeof: REACT_ELEMENT_TYPE,
215 type,
216 key,
217 props,
218 _owner: owner
219 };
220 null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
221 enumerable: false,
222 get: elementRefGetterWithDeprecationWarning
223 }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
224 type._store = {};
225 Object.defineProperty(type._store, "validated", {
226 configurable: false,
227 enumerable: false,
228 writable: true,
229 value: 0
230 });
231 Object.defineProperty(type, "_debugInfo", {
232 configurable: false,
233 enumerable: false,
234 writable: true,
235 value: null
236 });
237 Object.defineProperty(type, "_debugStack", {
238 configurable: false,
239 enumerable: false,
240 writable: true,
241 value: debugStack
242 });
243 Object.defineProperty(type, "_debugTask", {
244 configurable: false,
245 enumerable: false,
246 writable: true,
247 value: debugTask
248 });
249 Object.freeze && (Object.freeze(type.props), Object.freeze(type));
250 return type;
251 }
252 function cloneAndReplaceKey(oldElement, newKey) {
253 newKey = ReactElement(
254 oldElement.type,
255 newKey,
256 oldElement.props,
257 oldElement._owner,
258 oldElement._debugStack,
259 oldElement._debugTask
260 );
261 oldElement._store && (newKey._store.validated = oldElement._store.validated);
262 return newKey;
263 }
264 function validateChildKeys(node) {
265 isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
266 }
267 function isValidElement(object) {
268 return "object" === typeof object && null !== object && (object.$$typeof === REACT_ELEMENT_TYPE || (object.$$typeof === REACT_LEGACY_ELEMENT_TYPE && (__wpWarnCompat("legacy-element"), true)));
269 }
270 function escape(key) {
271 var escaperLookup = { "=": "=0", ":": "=2" };
272 return "$" + key.replace(/[=:]/g, function(match) {
273 return escaperLookup[match];
274 });
275 }
276 function getElementKey(element, index) {
277 return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
278 }
279 function resolveThenable(thenable) {
280 switch (thenable.status) {
281 case "fulfilled":
282 return thenable.value;
283 case "rejected":
284 throw thenable.reason;
285 default:
286 switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
287 function(fulfilledValue) {
288 "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
289 },
290 function(error) {
291 "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
292 }
293 )), thenable.status) {
294 case "fulfilled":
295 return thenable.value;
296 case "rejected":
297 throw thenable.reason;
298 }
299 }
300 throw thenable;
301 }
302 function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
303 var type = typeof children;
304 if ("undefined" === type || "boolean" === type) children = null;
305 var invokeCallback = false;
306 if (null === children) invokeCallback = true;
307 else
308 switch (type) {
309 case "bigint":
310 case "string":
311 case "number":
312 invokeCallback = true;
313 break;
314 case "object":
315 switch (children.$$typeof) {
316 case REACT_LEGACY_ELEMENT_TYPE: __wpWarnCompat("legacy-element"); case REACT_ELEMENT_TYPE:
317 case REACT_PORTAL_TYPE:
318 invokeCallback = true;
319 break;
320 case REACT_LAZY_TYPE:
321 return invokeCallback = children._init, mapIntoArray(
322 invokeCallback(children._payload),
323 array,
324 escapedPrefix,
325 nameSoFar,
326 callback
327 );
328 }
329 }
330 if (invokeCallback) {
331 invokeCallback = children;
332 callback = callback(invokeCallback);
333 var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
334 isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
335 return c;
336 })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
337 callback,
338 escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
339 userProvidedKeyEscapeRegex,
340 "$&/"
341 ) + "/") + childKey
342 ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
343 return 1;
344 }
345 invokeCallback = 0;
346 childKey = "" === nameSoFar ? "." : nameSoFar + ":";
347 if (isArrayImpl(children))
348 for (var i = 0; i < children.length; i++)
349 nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
350 nameSoFar,
351 array,
352 escapedPrefix,
353 type,
354 callback
355 );
356 else if (i = getIteratorFn(children), "function" === typeof i)
357 for (i === children.entries && (didWarnAboutMaps || console.warn(
358 "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
359 ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
360 nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
361 nameSoFar,
362 array,
363 escapedPrefix,
364 type,
365 callback
366 );
367 else if ("object" === type) {
368 if ("function" === typeof children.then)
369 return mapIntoArray(
370 resolveThenable(children),
371 array,
372 escapedPrefix,
373 nameSoFar,
374 callback
375 );
376 array = String(children);
377 throw Error(
378 "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
379 );
380 }
381 return invokeCallback;
382 }
383 function mapChildren(children, func, context) {
384 if (null == children) return children;
385 var result = [], count = 0;
386 mapIntoArray(children, result, "", "", function(child) {
387 return func.call(context, child, count++);
388 });
389 return result;
390 }
391 function lazyInitializer(payload) {
392 if (-1 === payload._status) {
393 var ioInfo = payload._ioInfo;
394 null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
395 ioInfo = payload._result;
396 var thenable = ioInfo();
397 thenable.then(
398 function(moduleObject) {
399 if (0 === payload._status || -1 === payload._status) {
400 payload._status = 1;
401 payload._result = moduleObject;
402 var _ioInfo = payload._ioInfo;
403 null != _ioInfo && (_ioInfo.end = performance.now());
404 void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
405 }
406 },
407 function(error) {
408 if (0 === payload._status || -1 === payload._status) {
409 payload._status = 2;
410 payload._result = error;
411 var _ioInfo2 = payload._ioInfo;
412 null != _ioInfo2 && (_ioInfo2.end = performance.now());
413 void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
414 }
415 }
416 );
417 ioInfo = payload._ioInfo;
418 if (null != ioInfo) {
419 ioInfo.value = thenable;
420 var displayName = thenable.displayName;
421 "string" === typeof displayName && (ioInfo.name = displayName);
422 }
423 -1 === payload._status && (payload._status = 0, payload._result = thenable);
424 }
425 if (1 === payload._status)
426 return ioInfo = payload._result, void 0 === ioInfo && console.error(
427 "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
428 ioInfo
429 ), "default" in ioInfo || console.error(
430 "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
431 ioInfo
432 ), ioInfo.default;
433 throw payload._result;
434 }
435 function resolveDispatcher() {
436 var dispatcher = ReactSharedInternals.H;
437 null === dispatcher && console.error(
438 "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
439 );
440 return dispatcher;
441 }
442 function releaseAsyncTransition() {
443 ReactSharedInternals.asyncTransitions--;
444 }
445 function enqueueTask(task) {
446 if (null === enqueueTaskImpl)
447 try {
448 var requireString = ("require" + Math.random()).slice(0, 7);
449 enqueueTaskImpl = (module && module[requireString]).call(
450 module,
451 "timers"
452 ).setImmediate;
453 } catch (_err) {
454 enqueueTaskImpl = function(callback) {
455 false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
456 "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
457 ));
458 var channel = new MessageChannel();
459 channel.port1.onmessage = callback;
460 channel.port2.postMessage(void 0);
461 };
462 }
463 return enqueueTaskImpl(task);
464 }
465 function aggregateErrors(errors) {
466 return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
467 }
468 function popActScope(prevActQueue, prevActScopeDepth) {
469 prevActScopeDepth !== actScopeDepth - 1 && console.error(
470 "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
471 );
472 actScopeDepth = prevActScopeDepth;
473 }
474 function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
475 var queue = ReactSharedInternals.actQueue;
476 if (null !== queue)
477 if (0 !== queue.length)
478 try {
479 flushActQueue(queue);
480 enqueueTask(function() {
481 return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
482 });
483 return;
484 } catch (error) {
485 ReactSharedInternals.thrownErrors.push(error);
486 }
487 else ReactSharedInternals.actQueue = null;
488 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
489 }
490 function flushActQueue(queue) {
491 if (!isFlushing) {
492 isFlushing = true;
493 var i = 0;
494 try {
495 for (; i < queue.length; i++) {
496 var callback = queue[i];
497 do {
498 ReactSharedInternals.didUsePromise = false;
499 var continuation = callback(false);
500 if (null !== continuation) {
501 if (ReactSharedInternals.didUsePromise) {
502 queue[i] = callback;
503 queue.splice(0, i);
504 return;
505 }
506 callback = continuation;
507 } else break;
508 } while (1);
509 }
510 queue.length = 0;
511 } catch (error) {
512 queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
513 } finally {
514 isFlushing = false;
515 }
516 }
517 }
518 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
519 var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
520 isMounted: function() {
521 return false;
522 },
523 enqueueForceUpdate: function(publicInstance) {
524 warnNoop(publicInstance, "forceUpdate");
525 },
526 enqueueReplaceState: function(publicInstance) {
527 warnNoop(publicInstance, "replaceState");
528 },
529 enqueueSetState: function(publicInstance) {
530 warnNoop(publicInstance, "setState");
531 }
532 }, assign = Object.assign, emptyObject = {};
533 Object.freeze(emptyObject);
534 Component.prototype.isReactComponent = {};
535 Component.prototype.setState = function(partialState, callback) {
536 if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
537 throw Error(
538 "takes an object of state variables to update or a function which returns an object of state variables."
539 );
540 this.updater.enqueueSetState(this, partialState, callback, "setState");
541 };
542 Component.prototype.forceUpdate = function(callback) {
543 this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
544 };
545 var deprecatedAPIs = {
546 isMounted: [
547 "isMounted",
548 "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
549 ],
550 replaceState: [
551 "replaceState",
552 "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
553 ]
554 };
555 for (fnName in deprecatedAPIs)
556 deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
557 ComponentDummy.prototype = Component.prototype;
558 deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
559 deprecatedAPIs.constructor = PureComponent;
560 assign(deprecatedAPIs, Component.prototype);
561 deprecatedAPIs.isPureReactComponent = true;
562 var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
563 H: null,
564 A: null,
565 T: null,
566 S: null,
567 actQueue: null,
568 asyncTransitions: 0,
569 isBatchingLegacy: false,
570 didScheduleLegacyUpdate: false,
571 didUsePromise: false,
572 thrownErrors: [],
573 getCurrentStack: null,
574 recentlyCreatedOwnerStacks: 0
575 }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
576 return null;
577 };
578 deprecatedAPIs = {
579 react_stack_bottom_frame: function(callStackForError) {
580 return callStackForError();
581 }
582 };
583 var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
584 var didWarnAboutElementRef = {};
585 var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
586 deprecatedAPIs,
587 UnknownOwner
588 )();
589 var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
590 var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
591 if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
592 var event = new window.ErrorEvent("error", {
593 bubbles: true,
594 cancelable: true,
595 message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
596 error
597 });
598 if (!window.dispatchEvent(event)) return;
599 } else if ("object" === typeof process && "function" === typeof process.emit) {
600 process.emit("uncaughtException", error);
601 return;
602 }
603 console.error(error);
604 }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
605 queueMicrotask(function() {
606 return queueMicrotask(callback);
607 });
608 } : enqueueTask;
609 deprecatedAPIs = Object.freeze({
610 __proto__: null,
611 c: function(size) {
612 return resolveDispatcher().useMemoCache(size);
613 }
614 });
615 var fnName = {
616 map: mapChildren,
617 forEach: function(children, forEachFunc, forEachContext) {
618 mapChildren(
619 children,
620 function() {
621 forEachFunc.apply(this, arguments);
622 },
623 forEachContext
624 );
625 },
626 count: function(children) {
627 var n = 0;
628 mapChildren(children, function() {
629 n++;
630 });
631 return n;
632 },
633 toArray: function(children) {
634 return mapChildren(children, function(child) {
635 return child;
636 }) || [];
637 },
638 only: function(children) {
639 if (!isValidElement(children))
640 throw Error(
641 "React.Children.only expected to receive a single React element child."
642 );
643 return children;
644 }
645 };
646 exports.Activity = REACT_ACTIVITY_TYPE;
647 exports.Children = fnName;
648 exports.Component = Component;
649 exports.Fragment = REACT_FRAGMENT_TYPE;
650 exports.Profiler = REACT_PROFILER_TYPE;
651 exports.PureComponent = PureComponent;
652 exports.StrictMode = REACT_STRICT_MODE_TYPE;
653 exports.Suspense = REACT_SUSPENSE_TYPE;
654 exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
655 exports.__COMPILER_RUNTIME = deprecatedAPIs;
656 exports.act = function(callback) {
657 var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
658 actScopeDepth++;
659 var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
660 try {
661 var result = callback();
662 } catch (error) {
663 ReactSharedInternals.thrownErrors.push(error);
664 }
665 if (0 < ReactSharedInternals.thrownErrors.length)
666 throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
667 if (null !== result && "object" === typeof result && "function" === typeof result.then) {
668 var thenable = result;
669 queueSeveralMicrotasks(function() {
670 didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
671 "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
672 ));
673 });
674 return {
675 then: function(resolve, reject) {
676 didAwaitActCall = true;
677 thenable.then(
678 function(returnValue) {
679 popActScope(prevActQueue, prevActScopeDepth);
680 if (0 === prevActScopeDepth) {
681 try {
682 flushActQueue(queue), enqueueTask(function() {
683 return recursivelyFlushAsyncActWork(
684 returnValue,
685 resolve,
686 reject
687 );
688 });
689 } catch (error$0) {
690 ReactSharedInternals.thrownErrors.push(error$0);
691 }
692 if (0 < ReactSharedInternals.thrownErrors.length) {
693 var _thrownError = aggregateErrors(
694 ReactSharedInternals.thrownErrors
695 );
696 ReactSharedInternals.thrownErrors.length = 0;
697 reject(_thrownError);
698 }
699 } else resolve(returnValue);
700 },
701 function(error) {
702 popActScope(prevActQueue, prevActScopeDepth);
703 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
704 ReactSharedInternals.thrownErrors
705 ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
706 }
707 );
708 }
709 };
710 }
711 var returnValue$jscomp$0 = result;
712 popActScope(prevActQueue, prevActScopeDepth);
713 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
714 didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
715 "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
716 ));
717 }), ReactSharedInternals.actQueue = null);
718 if (0 < ReactSharedInternals.thrownErrors.length)
719 throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
720 return {
721 then: function(resolve, reject) {
722 didAwaitActCall = true;
723 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
724 return recursivelyFlushAsyncActWork(
725 returnValue$jscomp$0,
726 resolve,
727 reject
728 );
729 })) : resolve(returnValue$jscomp$0);
730 }
731 };
732 };
733 exports.cache = function(fn) {
734 return function() {
735 return fn.apply(null, arguments);
736 };
737 };
738 exports.cacheSignal = function() {
739 return null;
740 };
741 exports.captureOwnerStack = function() {
742 var getCurrentStack = ReactSharedInternals.getCurrentStack;
743 return null === getCurrentStack ? null : getCurrentStack();
744 };
745 exports.cloneElement = function(element, config, children) {
746 if (null === element || void 0 === element)
747 throw Error(
748 "The argument must be a React element, but you passed " + element + "."
749 );
750 var props = assign({}, element.props), key = element.key, owner = element._owner;
751 if (null != config) {
752 var JSCompiler_inline_result;
753 a: {
754 if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
755 config,
756 "ref"
757 ).get) && JSCompiler_inline_result.isReactWarning) {
758 JSCompiler_inline_result = false;
759 break a;
760 }
761 JSCompiler_inline_result = void 0 !== config.ref;
762 }
763 JSCompiler_inline_result && (owner = getOwner());
764 hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
765 for (propName in config)
766 !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
767 }
768 var propName = arguments.length - 2;
769 if (1 === propName) props.children = children;
770 else if (1 < propName) {
771 JSCompiler_inline_result = Array(propName);
772 for (var i = 0; i < propName; i++)
773 JSCompiler_inline_result[i] = arguments[i + 2];
774 props.children = JSCompiler_inline_result;
775 }
776 props = ReactElement(
777 element.type,
778 key,
779 props,
780 owner,
781 element._debugStack,
782 element._debugTask
783 );
784 for (key = 2; key < arguments.length; key++)
785 validateChildKeys(arguments[key]);
786 return props;
787 };
788 exports.createContext = function(defaultValue) {
789 defaultValue = {
790 $$typeof: REACT_CONTEXT_TYPE,
791 _currentValue: defaultValue,
792 _currentValue2: defaultValue,
793 _threadCount: 0,
794 Provider: null,
795 Consumer: null
796 };
797 defaultValue.Provider = defaultValue;
798 defaultValue.Consumer = {
799 $$typeof: REACT_CONSUMER_TYPE,
800 _context: defaultValue
801 };
802 defaultValue._currentRenderer = null;
803 defaultValue._currentRenderer2 = null;
804 return defaultValue;
805 };
806 exports.createElement = function(type, config, children) {
807 for (var i = 2; i < arguments.length; i++)
808 validateChildKeys(arguments[i]);
809 i = {};
810 var key = null;
811 if (null != config)
812 for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
813 "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
814 )), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
815 hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
816 var childrenLength = arguments.length - 2;
817 if (1 === childrenLength) i.children = children;
818 else if (1 < childrenLength) {
819 for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
820 childArray[_i] = arguments[_i + 2];
821 Object.freeze && Object.freeze(childArray);
822 i.children = childArray;
823 }
824 if (type && type.defaultProps)
825 for (propName in childrenLength = type.defaultProps, childrenLength)
826 void 0 === i[propName] && (i[propName] = childrenLength[propName]);
827 key && defineKeyPropWarningGetter(
828 i,
829 "function" === typeof type ? type.displayName || type.name || "Unknown" : type
830 );
831 var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
832 return ReactElement(
833 type,
834 key,
835 i,
836 getOwner(),
837 propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
838 propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
839 );
840 };
841 exports.createRef = function() {
842 var refObject = { current: null };
843 Object.seal(refObject);
844 return refObject;
845 };
846 exports.forwardRef = function(render) {
847 null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
848 "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
849 ) : "function" !== typeof render ? console.error(
850 "forwardRef requires a render function but was given %s.",
851 null === render ? "null" : typeof render
852 ) : 0 !== render.length && 2 !== render.length && console.error(
853 "forwardRef render functions accept exactly two parameters: props and ref. %s",
854 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
855 );
856 null != render && null != render.defaultProps && console.error(
857 "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
858 );
859 var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
860 Object.defineProperty(elementType, "displayName", {
861 enumerable: false,
862 configurable: true,
863 get: function() {
864 return ownName;
865 },
866 set: function(name) {
867 ownName = name;
868 render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
869 }
870 });
871 return elementType;
872 };
873 exports.isValidElement = isValidElement;
874 exports.lazy = function(ctor) {
875 ctor = { _status: -1, _result: ctor };
876 var lazyType = {
877 $$typeof: REACT_LAZY_TYPE,
878 _payload: ctor,
879 _init: lazyInitializer
880 }, ioInfo = {
881 name: "lazy",
882 start: -1,
883 end: -1,
884 value: null,
885 owner: null,
886 debugStack: Error("react-stack-top-frame"),
887 debugTask: console.createTask ? console.createTask("lazy()") : null
888 };
889 ctor._ioInfo = ioInfo;
890 lazyType._debugInfo = [{ awaited: ioInfo }];
891 return lazyType;
892 };
893 exports.memo = function(type, compare) {
894 null == type && console.error(
895 "memo: The first argument must be a component. Instead received: %s",
896 null === type ? "null" : typeof type
897 );
898 compare = {
899 $$typeof: REACT_MEMO_TYPE,
900 type,
901 compare: void 0 === compare ? null : compare
902 };
903 var ownName;
904 Object.defineProperty(compare, "displayName", {
905 enumerable: false,
906 configurable: true,
907 get: function() {
908 return ownName;
909 },
910 set: function(name) {
911 ownName = name;
912 type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
913 }
914 });
915 return compare;
916 };
917 exports.startTransition = function(scope) {
918 var prevTransition = ReactSharedInternals.T, currentTransition = {};
919 currentTransition._updatedFibers = /* @__PURE__ */ new Set();
920 ReactSharedInternals.T = currentTransition;
921 try {
922 var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
923 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
924 "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
925 } catch (error) {
926 reportGlobalError(error);
927 } finally {
928 null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
929 "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
930 )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
931 "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
932 ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
933 }
934 };
935 exports.unstable_useCacheRefresh = function() {
936 return resolveDispatcher().useCacheRefresh();
937 };
938 exports.use = function(usable) {
939 return resolveDispatcher().use(usable);
940 };
941 exports.useActionState = function(action, initialState, permalink) {
942 return resolveDispatcher().useActionState(
943 action,
944 initialState,
945 permalink
946 );
947 };
948 exports.useCallback = function(callback, deps) {
949 return resolveDispatcher().useCallback(callback, deps);
950 };
951 exports.useContext = function(Context) {
952 var dispatcher = resolveDispatcher();
953 Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
954 "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
955 );
956 return dispatcher.useContext(Context);
957 };
958 exports.useDebugValue = function(value, formatterFn) {
959 return resolveDispatcher().useDebugValue(value, formatterFn);
960 };
961 exports.useDeferredValue = function(value, initialValue) {
962 return resolveDispatcher().useDeferredValue(value, initialValue);
963 };
964 exports.useEffect = function(create, deps) {
965 null == create && console.warn(
966 "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
967 );
968 return resolveDispatcher().useEffect(create, deps);
969 };
970 exports.useEffectEvent = function(callback) {
971 return resolveDispatcher().useEffectEvent(callback);
972 };
973 exports.useId = function() {
974 return resolveDispatcher().useId();
975 };
976 exports.useImperativeHandle = function(ref, create, deps) {
977 return resolveDispatcher().useImperativeHandle(ref, create, deps);
978 };
979 exports.useInsertionEffect = function(create, deps) {
980 null == create && console.warn(
981 "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
982 );
983 return resolveDispatcher().useInsertionEffect(create, deps);
984 };
985 exports.useLayoutEffect = function(create, deps) {
986 null == create && console.warn(
987 "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
988 );
989 return resolveDispatcher().useLayoutEffect(create, deps);
990 };
991 exports.useMemo = function(create, deps) {
992 return resolveDispatcher().useMemo(create, deps);
993 };
994 exports.useOptimistic = function(passthrough, reducer) {
995 return resolveDispatcher().useOptimistic(passthrough, reducer);
996 };
997 exports.useReducer = function(reducer, initialArg, init) {
998 return resolveDispatcher().useReducer(reducer, initialArg, init);
999 };
1000 exports.useRef = function(initialValue) {
1001 return resolveDispatcher().useRef(initialValue);
1002 };
1003 exports.useState = function(initialState) {
1004 return resolveDispatcher().useState(initialState);
1005 };
1006 exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1007 return resolveDispatcher().useSyncExternalStore(
1008 subscribe,
1009 getSnapshot,
1010 getServerSnapshot
1011 );
1012 };
1013 exports.useTransition = function() {
1014 return resolveDispatcher().useTransition();
1015 };
1016 exports.version = "19.2.7";
1017 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1018 })();
1019 }
1020 });
1021
1022 // ../react-19/node_modules/react/index.js
1023 var require_react = __commonJS({
1024 "../react-19/node_modules/react/index.js"(exports, module) {
1025 "use strict";
1026 if (false) {
1027 module.exports = null;
1028 } else {
1029 module.exports = require_react_development();
1030 }
1031 }
1032 });
1033
1034 // ../react-19/react.js
1035 var require_react2 = __commonJS({
1036 "../react-19/react.js"(exports, module) {
1037 var { warnCompat: warnCompat2 } = (init_warn_compat(), __toCommonJS(warn_compat_exports));
1038 var SECRET_INTERNALS_KEY = "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED";
1039 var secretInternals = {
1040 ReactCurrentOwner: { current: null },
1041 ReactCurrentDispatcher: { current: null },
1042 ReactDebugCurrentFrame: {
1043 setExtraStackFrame() {
1044 warnCompat2(
1045 "react-secret-internals-setExtraStackFrame",
1046 `\`${SECRET_INTERNALS_KEY}.ReactDebugCurrentFrame.setExtraStackFrame\` was removed in React 19 and is a no-op compatibility shim.`
1047 );
1048 },
1049 getStackAddendum() {
1050 warnCompat2(
1051 "react-secret-internals-getStackAddendum",
1052 `\`${SECRET_INTERNALS_KEY}.ReactDebugCurrentFrame.getStackAddendum\` was removed in React 19 and is a no-op compatibility shim.`
1053 );
1054 return "";
1055 }
1056 }
1057 };
1058 var react = { ...require_react() };
1059 Object.defineProperty(react, SECRET_INTERNALS_KEY, {
1060 enumerable: true,
1061 configurable: true,
1062 get() {
1063 warnCompat2(
1064 "react-secret-internals",
1065 `Accessing \`${SECRET_INTERNALS_KEY}\` was removed in React 19 and is provided by a compatibility shim.`
1066 );
1067 return secretInternals;
1068 }
1069 });
1070 module.exports = react;
1071 }
1072 });
1073 return require_react2();
1074 })();
1075 /*! Bundled license information:
1076
1077 react/cjs/react.development.js:
1078 (**
1079 * @license React
1080 * react.development.js
1081 *
1082 * Copyright (c) Meta Platforms, Inc. and affiliates.
1083 *
1084 * This source code is licensed under the MIT license found in the
1085 * LICENSE file in the root directory of this source tree.
1086 *)
1087 */
1088