@expo/cli 54.1.0-canary-20251015-a6a1272 → 54.1.0-canary-20251023-4c86f95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/build/bin/cli +1 -1
  2. package/build/src/export/embed/exportEmbedAsync.js +43 -3
  3. package/build/src/export/embed/exportEmbedAsync.js.map +1 -1
  4. package/build/src/export/embed/resolveOptions.js.map +1 -1
  5. package/build/src/export/index.js +2 -1
  6. package/build/src/export/index.js.map +1 -1
  7. package/build/src/export/resolveOptions.js +1 -1
  8. package/build/src/export/resolveOptions.js.map +1 -1
  9. package/build/src/start/server/metro/MetroBundlerDevServer.js +29 -9
  10. package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
  11. package/build/src/start/server/metro/MetroTerminalReporter.js +2 -4
  12. package/build/src/start/server/metro/MetroTerminalReporter.js.map +1 -1
  13. package/build/src/start/server/metro/createServerRouteMiddleware.js.map +1 -1
  14. package/build/src/start/server/metro/externals.js +0 -11
  15. package/build/src/start/server/metro/externals.js.map +1 -1
  16. package/build/src/start/server/metro/fetchRouterManifest.js +1 -1
  17. package/build/src/start/server/metro/fetchRouterManifest.js.map +1 -1
  18. package/build/src/start/server/metro/getCssModulesFromBundler.js.map +1 -1
  19. package/build/src/start/server/metro/instantiateMetro.js +14 -10
  20. package/build/src/start/server/metro/instantiateMetro.js.map +1 -1
  21. package/build/src/start/server/metro/log-box/LogBoxLog.js +11 -7
  22. package/build/src/start/server/metro/log-box/LogBoxLog.js.map +1 -1
  23. package/build/src/start/server/metro/log-box/LogBoxSymbolication.js.map +1 -1
  24. package/build/src/start/server/metro/metroErrorInterface.js +14 -43
  25. package/build/src/start/server/metro/metroErrorInterface.js.map +1 -1
  26. package/build/src/start/server/metro/withMetroMultiPlatform.js +55 -43
  27. package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
  28. package/build/src/start/server/middleware/metroOptions.js.map +1 -1
  29. package/build/src/start/server/serverLogLikeMetro.js +1 -1
  30. package/build/src/start/server/serverLogLikeMetro.js.map +1 -1
  31. package/build/src/utils/env.js +6 -0
  32. package/build/src/utils/env.js.map +1 -1
  33. package/build/src/utils/telemetry/clients/FetchClient.js +1 -1
  34. package/build/src/utils/telemetry/utils/context.js +1 -1
  35. package/package.json +20 -18
  36. package/static/canary/react-is/cjs/react-is.development.js +0 -133
  37. package/static/canary/react-is/cjs/react-is.production.js +0 -130
  38. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +0 -16820
  39. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +0 -10552
  40. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js +0 -11255
  41. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +0 -17064
  42. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +0 -10742
  43. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +0 -11450
  44. package/static/canary/scheduler/cjs/scheduler-unstable_mock.development.js +0 -414
  45. package/static/canary/scheduler/cjs/scheduler-unstable_mock.production.js +0 -406
  46. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -150
  47. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -140
  48. package/static/canary/scheduler/cjs/scheduler.development.js +0 -364
  49. package/static/canary/scheduler/cjs/scheduler.native.development.js +0 -350
  50. package/static/canary/scheduler/cjs/scheduler.native.production.js +0 -330
  51. package/static/canary/scheduler/cjs/scheduler.production.js +0 -340
  52. package/static/canary-full/node_modules/react/LICENSE +0 -21
  53. package/static/canary-full/node_modules/react/README.md +0 -37
  54. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.development.js +0 -24
  55. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
  56. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.profiling.js +0 -16
  57. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -349
  58. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.production.js +0 -14
  59. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js +0 -14
  60. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.react-server.development.js +0 -385
  61. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.react-server.production.js +0 -40
  62. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.development.js +0 -358
  63. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.production.js +0 -34
  64. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.profiling.js +0 -34
  65. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.react-server.development.js +0 -385
  66. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.react-server.production.js +0 -40
  67. package/static/canary-full/node_modules/react/cjs/react.development.js +0 -1250
  68. package/static/canary-full/node_modules/react/cjs/react.production.js +0 -544
  69. package/static/canary-full/node_modules/react/cjs/react.react-server.development.js +0 -815
  70. package/static/canary-full/node_modules/react/cjs/react.react-server.production.js +0 -429
  71. package/static/canary-full/node_modules/react/compiler-runtime.js +0 -14
  72. package/static/canary-full/node_modules/react/index.js +0 -7
  73. package/static/canary-full/node_modules/react/jsx-dev-runtime.js +0 -7
  74. package/static/canary-full/node_modules/react/jsx-dev-runtime.react-server.js +0 -7
  75. package/static/canary-full/node_modules/react/jsx-runtime.js +0 -7
  76. package/static/canary-full/node_modules/react/jsx-runtime.react-server.js +0 -7
  77. package/static/canary-full/node_modules/react/package.json +0 -51
  78. package/static/canary-full/node_modules/react/react.react-server.js +0 -7
  79. package/static/canary-full/node_modules/react-dom/LICENSE +0 -21
  80. package/static/canary-full/node_modules/react-dom/README.md +0 -60
  81. package/static/canary-full/node_modules/react-dom/cjs/react-dom-client.development.js +0 -25089
  82. package/static/canary-full/node_modules/react-dom/cjs/react-dom-client.production.js +0 -15426
  83. package/static/canary-full/node_modules/react-dom/cjs/react-dom-profiling.development.js +0 -25476
  84. package/static/canary-full/node_modules/react-dom/cjs/react-dom-profiling.profiling.js +0 -16296
  85. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -9035
  86. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -5892
  87. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -9035
  88. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +0 -5972
  89. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -9424
  90. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -6384
  91. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.bun.development.js +0 -8739
  92. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.bun.production.js +0 -5967
  93. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.edge.development.js +0 -9443
  94. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.edge.production.js +0 -6477
  95. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -9317
  96. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.node.production.js +0 -6372
  97. package/static/canary-full/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -24
  98. package/static/canary-full/node_modules/react-dom/cjs/react-dom-test-utils.production.js +0 -21
  99. package/static/canary-full/node_modules/react-dom/cjs/react-dom.development.js +0 -424
  100. package/static/canary-full/node_modules/react-dom/cjs/react-dom.production.js +0 -210
  101. package/static/canary-full/node_modules/react-dom/cjs/react-dom.react-server.development.js +0 -340
  102. package/static/canary-full/node_modules/react-dom/cjs/react-dom.react-server.production.js +0 -152
  103. package/static/canary-full/node_modules/react-dom/client.js +0 -38
  104. package/static/canary-full/node_modules/react-dom/client.react-server.js +0 -5
  105. package/static/canary-full/node_modules/react-dom/index.js +0 -38
  106. package/static/canary-full/node_modules/react-dom/package.json +0 -117
  107. package/static/canary-full/node_modules/react-dom/profiling.js +0 -38
  108. package/static/canary-full/node_modules/react-dom/profiling.react-server.js +0 -5
  109. package/static/canary-full/node_modules/react-dom/react-dom.react-server.js +0 -7
  110. package/static/canary-full/node_modules/react-dom/server.browser.js +0 -18
  111. package/static/canary-full/node_modules/react-dom/server.bun.js +0 -19
  112. package/static/canary-full/node_modules/react-dom/server.edge.js +0 -19
  113. package/static/canary-full/node_modules/react-dom/server.js +0 -3
  114. package/static/canary-full/node_modules/react-dom/server.node.js +0 -18
  115. package/static/canary-full/node_modules/react-dom/server.react-server.js +0 -5
  116. package/static/canary-full/node_modules/react-dom/static.browser.js +0 -12
  117. package/static/canary-full/node_modules/react-dom/static.edge.js +0 -12
  118. package/static/canary-full/node_modules/react-dom/static.js +0 -3
  119. package/static/canary-full/node_modules/react-dom/static.node.js +0 -12
  120. package/static/canary-full/node_modules/react-dom/static.react-server.js +0 -5
  121. package/static/canary-full/node_modules/react-dom/test-utils.js +0 -7
@@ -1,544 +0,0 @@
1
- /**
2
- * @license React
3
- * react.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
-
11
- "use strict";
12
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
13
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
14
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
15
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
16
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
17
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
18
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
19
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
20
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
21
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
22
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
23
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
24
- function getIteratorFn(maybeIterable) {
25
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
26
- maybeIterable =
27
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
28
- maybeIterable["@@iterator"];
29
- return "function" === typeof maybeIterable ? maybeIterable : null;
30
- }
31
- var ReactNoopUpdateQueue = {
32
- isMounted: function () {
33
- return !1;
34
- },
35
- enqueueForceUpdate: function () {},
36
- enqueueReplaceState: function () {},
37
- enqueueSetState: function () {}
38
- },
39
- assign = Object.assign,
40
- emptyObject = {};
41
- function Component(props, context, updater) {
42
- this.props = props;
43
- this.context = context;
44
- this.refs = emptyObject;
45
- this.updater = updater || ReactNoopUpdateQueue;
46
- }
47
- Component.prototype.isReactComponent = {};
48
- Component.prototype.setState = function (partialState, callback) {
49
- if (
50
- "object" !== typeof partialState &&
51
- "function" !== typeof partialState &&
52
- null != partialState
53
- )
54
- throw Error(
55
- "takes an object of state variables to update or a function which returns an object of state variables."
56
- );
57
- this.updater.enqueueSetState(this, partialState, callback, "setState");
58
- };
59
- Component.prototype.forceUpdate = function (callback) {
60
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
61
- };
62
- function ComponentDummy() {}
63
- ComponentDummy.prototype = Component.prototype;
64
- function PureComponent(props, context, updater) {
65
- this.props = props;
66
- this.context = context;
67
- this.refs = emptyObject;
68
- this.updater = updater || ReactNoopUpdateQueue;
69
- }
70
- var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
71
- pureComponentPrototype.constructor = PureComponent;
72
- assign(pureComponentPrototype, Component.prototype);
73
- pureComponentPrototype.isPureReactComponent = !0;
74
- var isArrayImpl = Array.isArray,
75
- ReactSharedInternals = { H: null, A: null, T: null, S: null },
76
- hasOwnProperty = Object.prototype.hasOwnProperty;
77
- function ReactElement(type, key, self, source, owner, props) {
78
- self = props.ref;
79
- return {
80
- $$typeof: REACT_ELEMENT_TYPE,
81
- type: type,
82
- key: key,
83
- ref: void 0 !== self ? self : null,
84
- props: props
85
- };
86
- }
87
- function cloneAndReplaceKey(oldElement, newKey) {
88
- return ReactElement(
89
- oldElement.type,
90
- newKey,
91
- void 0,
92
- void 0,
93
- void 0,
94
- oldElement.props
95
- );
96
- }
97
- function isValidElement(object) {
98
- return (
99
- "object" === typeof object &&
100
- null !== object &&
101
- object.$$typeof === REACT_ELEMENT_TYPE
102
- );
103
- }
104
- function escape(key) {
105
- var escaperLookup = { "=": "=0", ":": "=2" };
106
- return (
107
- "$" +
108
- key.replace(/[=:]/g, function (match) {
109
- return escaperLookup[match];
110
- })
111
- );
112
- }
113
- var userProvidedKeyEscapeRegex = /\/+/g;
114
- function getElementKey(element, index) {
115
- return "object" === typeof element && null !== element && null != element.key
116
- ? escape("" + element.key)
117
- : index.toString(36);
118
- }
119
- function noop$1() {}
120
- function resolveThenable(thenable) {
121
- switch (thenable.status) {
122
- case "fulfilled":
123
- return thenable.value;
124
- case "rejected":
125
- throw thenable.reason;
126
- default:
127
- switch (
128
- ("string" === typeof thenable.status
129
- ? thenable.then(noop$1, noop$1)
130
- : ((thenable.status = "pending"),
131
- thenable.then(
132
- function (fulfilledValue) {
133
- "pending" === thenable.status &&
134
- ((thenable.status = "fulfilled"),
135
- (thenable.value = fulfilledValue));
136
- },
137
- function (error) {
138
- "pending" === thenable.status &&
139
- ((thenable.status = "rejected"), (thenable.reason = error));
140
- }
141
- )),
142
- thenable.status)
143
- ) {
144
- case "fulfilled":
145
- return thenable.value;
146
- case "rejected":
147
- throw thenable.reason;
148
- }
149
- }
150
- throw thenable;
151
- }
152
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
153
- var type = typeof children;
154
- if ("undefined" === type || "boolean" === type) children = null;
155
- var invokeCallback = !1;
156
- if (null === children) invokeCallback = !0;
157
- else
158
- switch (type) {
159
- case "bigint":
160
- case "string":
161
- case "number":
162
- invokeCallback = !0;
163
- break;
164
- case "object":
165
- switch (children.$$typeof) {
166
- case REACT_ELEMENT_TYPE:
167
- case REACT_PORTAL_TYPE:
168
- invokeCallback = !0;
169
- break;
170
- case REACT_LAZY_TYPE:
171
- return (
172
- (invokeCallback = children._init),
173
- mapIntoArray(
174
- invokeCallback(children._payload),
175
- array,
176
- escapedPrefix,
177
- nameSoFar,
178
- callback
179
- )
180
- );
181
- }
182
- }
183
- if (invokeCallback)
184
- return (
185
- (callback = callback(children)),
186
- (invokeCallback =
187
- "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
188
- isArrayImpl(callback)
189
- ? ((escapedPrefix = ""),
190
- null != invokeCallback &&
191
- (escapedPrefix =
192
- invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
193
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
194
- return c;
195
- }))
196
- : null != callback &&
197
- (isValidElement(callback) &&
198
- (callback = cloneAndReplaceKey(
199
- callback,
200
- escapedPrefix +
201
- (null == callback.key ||
202
- (children && children.key === callback.key)
203
- ? ""
204
- : ("" + callback.key).replace(
205
- userProvidedKeyEscapeRegex,
206
- "$&/"
207
- ) + "/") +
208
- invokeCallback
209
- )),
210
- array.push(callback)),
211
- 1
212
- );
213
- invokeCallback = 0;
214
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
215
- if (isArrayImpl(children))
216
- for (var i = 0; i < children.length; i++)
217
- (nameSoFar = children[i]),
218
- (type = nextNamePrefix + getElementKey(nameSoFar, i)),
219
- (invokeCallback += mapIntoArray(
220
- nameSoFar,
221
- array,
222
- escapedPrefix,
223
- type,
224
- callback
225
- ));
226
- else if (((i = getIteratorFn(children)), "function" === typeof i))
227
- for (
228
- children = i.call(children), i = 0;
229
- !(nameSoFar = children.next()).done;
230
-
231
- )
232
- (nameSoFar = nameSoFar.value),
233
- (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
234
- (invokeCallback += mapIntoArray(
235
- nameSoFar,
236
- array,
237
- escapedPrefix,
238
- type,
239
- callback
240
- ));
241
- else if ("object" === type) {
242
- if ("function" === typeof children.then)
243
- return mapIntoArray(
244
- resolveThenable(children),
245
- array,
246
- escapedPrefix,
247
- nameSoFar,
248
- callback
249
- );
250
- array = String(children);
251
- throw Error(
252
- "Objects are not valid as a React child (found: " +
253
- ("[object Object]" === array
254
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
255
- : array) +
256
- "). If you meant to render a collection of children, use an array instead."
257
- );
258
- }
259
- return invokeCallback;
260
- }
261
- function mapChildren(children, func, context) {
262
- if (null == children) return children;
263
- var result = [],
264
- count = 0;
265
- mapIntoArray(children, result, "", "", function (child) {
266
- return func.call(context, child, count++);
267
- });
268
- return result;
269
- }
270
- function lazyInitializer(payload) {
271
- if (-1 === payload._status) {
272
- var ctor = payload._result;
273
- ctor = ctor();
274
- ctor.then(
275
- function (moduleObject) {
276
- if (0 === payload._status || -1 === payload._status)
277
- (payload._status = 1), (payload._result = moduleObject);
278
- },
279
- function (error) {
280
- if (0 === payload._status || -1 === payload._status)
281
- (payload._status = 2), (payload._result = error);
282
- }
283
- );
284
- -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
285
- }
286
- if (1 === payload._status) return payload._result.default;
287
- throw payload._result;
288
- }
289
- var reportGlobalError =
290
- "function" === typeof reportError
291
- ? reportError
292
- : function (error) {
293
- if (
294
- "object" === typeof window &&
295
- "function" === typeof window.ErrorEvent
296
- ) {
297
- var event = new window.ErrorEvent("error", {
298
- bubbles: !0,
299
- cancelable: !0,
300
- message:
301
- "object" === typeof error &&
302
- null !== error &&
303
- "string" === typeof error.message
304
- ? String(error.message)
305
- : String(error),
306
- error: error
307
- });
308
- if (!window.dispatchEvent(event)) return;
309
- } else if (
310
- "object" === typeof process &&
311
- "function" === typeof process.emit
312
- ) {
313
- process.emit("uncaughtException", error);
314
- return;
315
- }
316
- console.error(error);
317
- };
318
- function noop() {}
319
- exports.Children = {
320
- map: mapChildren,
321
- forEach: function (children, forEachFunc, forEachContext) {
322
- mapChildren(
323
- children,
324
- function () {
325
- forEachFunc.apply(this, arguments);
326
- },
327
- forEachContext
328
- );
329
- },
330
- count: function (children) {
331
- var n = 0;
332
- mapChildren(children, function () {
333
- n++;
334
- });
335
- return n;
336
- },
337
- toArray: function (children) {
338
- return (
339
- mapChildren(children, function (child) {
340
- return child;
341
- }) || []
342
- );
343
- },
344
- only: function (children) {
345
- if (!isValidElement(children))
346
- throw Error(
347
- "React.Children.only expected to receive a single React element child."
348
- );
349
- return children;
350
- }
351
- };
352
- exports.Component = Component;
353
- exports.Fragment = REACT_FRAGMENT_TYPE;
354
- exports.Profiler = REACT_PROFILER_TYPE;
355
- exports.PureComponent = PureComponent;
356
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
357
- exports.Suspense = REACT_SUSPENSE_TYPE;
358
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
359
- ReactSharedInternals;
360
- exports.__COMPILER_RUNTIME = {
361
- __proto__: null,
362
- c: function (size) {
363
- return ReactSharedInternals.H.useMemoCache(size);
364
- }
365
- };
366
- exports.cache = function (fn) {
367
- return function () {
368
- return fn.apply(null, arguments);
369
- };
370
- };
371
- exports.cloneElement = function (element, config, children) {
372
- if (null === element || void 0 === element)
373
- throw Error(
374
- "The argument must be a React element, but you passed " + element + "."
375
- );
376
- var props = assign({}, element.props),
377
- key = element.key,
378
- owner = void 0;
379
- if (null != config)
380
- for (propName in (void 0 !== config.ref && (owner = void 0),
381
- void 0 !== config.key && (key = "" + config.key),
382
- config))
383
- !hasOwnProperty.call(config, propName) ||
384
- "key" === propName ||
385
- "__self" === propName ||
386
- "__source" === propName ||
387
- ("ref" === propName && void 0 === config.ref) ||
388
- (props[propName] = config[propName]);
389
- var propName = arguments.length - 2;
390
- if (1 === propName) props.children = children;
391
- else if (1 < propName) {
392
- for (var childArray = Array(propName), i = 0; i < propName; i++)
393
- childArray[i] = arguments[i + 2];
394
- props.children = childArray;
395
- }
396
- return ReactElement(element.type, key, void 0, void 0, owner, props);
397
- };
398
- exports.createContext = function (defaultValue) {
399
- defaultValue = {
400
- $$typeof: REACT_CONTEXT_TYPE,
401
- _currentValue: defaultValue,
402
- _currentValue2: defaultValue,
403
- _threadCount: 0,
404
- Provider: null,
405
- Consumer: null
406
- };
407
- defaultValue.Provider = defaultValue;
408
- defaultValue.Consumer = {
409
- $$typeof: REACT_CONSUMER_TYPE,
410
- _context: defaultValue
411
- };
412
- return defaultValue;
413
- };
414
- exports.createElement = function (type, config, children) {
415
- var propName,
416
- props = {},
417
- key = null;
418
- if (null != config)
419
- for (propName in (void 0 !== config.key && (key = "" + config.key), config))
420
- hasOwnProperty.call(config, propName) &&
421
- "key" !== propName &&
422
- "__self" !== propName &&
423
- "__source" !== propName &&
424
- (props[propName] = config[propName]);
425
- var childrenLength = arguments.length - 2;
426
- if (1 === childrenLength) props.children = children;
427
- else if (1 < childrenLength) {
428
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
429
- childArray[i] = arguments[i + 2];
430
- props.children = childArray;
431
- }
432
- if (type && type.defaultProps)
433
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
434
- void 0 === props[propName] &&
435
- (props[propName] = childrenLength[propName]);
436
- return ReactElement(type, key, void 0, void 0, null, props);
437
- };
438
- exports.createRef = function () {
439
- return { current: null };
440
- };
441
- exports.forwardRef = function (render) {
442
- return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
443
- };
444
- exports.isValidElement = isValidElement;
445
- exports.lazy = function (ctor) {
446
- return {
447
- $$typeof: REACT_LAZY_TYPE,
448
- _payload: { _status: -1, _result: ctor },
449
- _init: lazyInitializer
450
- };
451
- };
452
- exports.memo = function (type, compare) {
453
- return {
454
- $$typeof: REACT_MEMO_TYPE,
455
- type: type,
456
- compare: void 0 === compare ? null : compare
457
- };
458
- };
459
- exports.startTransition = function (scope) {
460
- var prevTransition = ReactSharedInternals.T,
461
- currentTransition = {};
462
- ReactSharedInternals.T = currentTransition;
463
- try {
464
- var returnValue = scope(),
465
- onStartTransitionFinish = ReactSharedInternals.S;
466
- null !== onStartTransitionFinish &&
467
- onStartTransitionFinish(currentTransition, returnValue);
468
- "object" === typeof returnValue &&
469
- null !== returnValue &&
470
- "function" === typeof returnValue.then &&
471
- returnValue.then(noop, reportGlobalError);
472
- } catch (error) {
473
- reportGlobalError(error);
474
- } finally {
475
- null !== prevTransition &&
476
- null !== currentTransition.types &&
477
- (prevTransition.types = currentTransition.types),
478
- (ReactSharedInternals.T = prevTransition);
479
- }
480
- };
481
- exports.unstable_useCacheRefresh = function () {
482
- return ReactSharedInternals.H.useCacheRefresh();
483
- };
484
- exports.use = function (usable) {
485
- return ReactSharedInternals.H.use(usable);
486
- };
487
- exports.useActionState = function (action, initialState, permalink) {
488
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
489
- };
490
- exports.useCallback = function (callback, deps) {
491
- return ReactSharedInternals.H.useCallback(callback, deps);
492
- };
493
- exports.useContext = function (Context) {
494
- return ReactSharedInternals.H.useContext(Context);
495
- };
496
- exports.useDebugValue = function () {};
497
- exports.useDeferredValue = function (value, initialValue) {
498
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
499
- };
500
- exports.useEffect = function (create, deps) {
501
- return ReactSharedInternals.H.useEffect(create, deps);
502
- };
503
- exports.useId = function () {
504
- return ReactSharedInternals.H.useId();
505
- };
506
- exports.useImperativeHandle = function (ref, create, deps) {
507
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
508
- };
509
- exports.useInsertionEffect = function (create, deps) {
510
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
511
- };
512
- exports.useLayoutEffect = function (create, deps) {
513
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
514
- };
515
- exports.useMemo = function (create, deps) {
516
- return ReactSharedInternals.H.useMemo(create, deps);
517
- };
518
- exports.useOptimistic = function (passthrough, reducer) {
519
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
520
- };
521
- exports.useReducer = function (reducer, initialArg, init) {
522
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
523
- };
524
- exports.useRef = function (initialValue) {
525
- return ReactSharedInternals.H.useRef(initialValue);
526
- };
527
- exports.useState = function (initialState) {
528
- return ReactSharedInternals.H.useState(initialState);
529
- };
530
- exports.useSyncExternalStore = function (
531
- subscribe,
532
- getSnapshot,
533
- getServerSnapshot
534
- ) {
535
- return ReactSharedInternals.H.useSyncExternalStore(
536
- subscribe,
537
- getSnapshot,
538
- getServerSnapshot
539
- );
540
- };
541
- exports.useTransition = function () {
542
- return ReactSharedInternals.H.useTransition();
543
- };
544
- exports.version = "19.2.0-canary-5252281c-20250408";