@expo/cli 1.0.0-canary-20250404-3c3b5fd → 1.0.0-canary-20250701-6a945c5

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 (182) hide show
  1. package/README.md +33 -24
  2. package/build/bin/cli +1 -1
  3. package/build/metro-require/require.js +6 -4
  4. package/build/src/api/user/actions.js +25 -11
  5. package/build/src/api/user/actions.js.map +1 -1
  6. package/build/src/customize/templates.js +15 -1
  7. package/build/src/customize/templates.js.map +1 -1
  8. package/build/src/export/exportApp.js +26 -14
  9. package/build/src/export/exportApp.js.map +1 -1
  10. package/build/src/export/exportAsync.js +6 -0
  11. package/build/src/export/exportAsync.js.map +1 -1
  12. package/build/src/export/exportHermes.js +2 -2
  13. package/build/src/export/exportHermes.js.map +1 -1
  14. package/build/src/export/persistMetroAssets.js.map +1 -1
  15. package/build/src/install/checkPackages.js +22 -4
  16. package/build/src/install/checkPackages.js.map +1 -1
  17. package/build/src/install/index.js +3 -1
  18. package/build/src/install/index.js.map +1 -1
  19. package/build/src/install/resolveOptions.js +7 -2
  20. package/build/src/install/resolveOptions.js.map +1 -1
  21. package/build/src/install/utils/checkPackagesCompatibility.js +1 -1
  22. package/build/src/install/utils/checkPackagesCompatibility.js.map +1 -1
  23. package/build/src/lint/ESlintPrerequisite.js +32 -48
  24. package/build/src/lint/ESlintPrerequisite.js.map +1 -1
  25. package/build/src/lint/index.js +45 -47
  26. package/build/src/lint/index.js.map +1 -1
  27. package/build/src/lint/lintAsync.js +150 -4
  28. package/build/src/lint/lintAsync.js.map +1 -1
  29. package/build/src/lint/resolveOptions.js +115 -0
  30. package/build/src/lint/resolveOptions.js.map +1 -0
  31. package/build/src/prebuild/renameTemplateAppName.js +4 -1
  32. package/build/src/prebuild/renameTemplateAppName.js.map +1 -1
  33. package/build/src/prebuild/resolveTemplate.js +4 -4
  34. package/build/src/prebuild/resolveTemplate.js.map +1 -1
  35. package/build/src/prebuild/updatePackageJson.js +19 -9
  36. package/build/src/prebuild/updatePackageJson.js.map +1 -1
  37. package/build/src/run/android/resolveOptions.js +13 -1
  38. package/build/src/run/android/resolveOptions.js.map +1 -1
  39. package/build/src/run/android/runAndroidAsync.js +39 -17
  40. package/build/src/run/android/runAndroidAsync.js.map +1 -1
  41. package/build/src/run/ios/XcodeBuild.js +3 -3
  42. package/build/src/run/ios/XcodeBuild.js.map +1 -1
  43. package/build/src/run/ios/options/resolveOptions.js +13 -1
  44. package/build/src/run/ios/options/resolveOptions.js.map +1 -1
  45. package/build/src/run/ios/runIosAsync.js +38 -7
  46. package/build/src/run/ios/runIosAsync.js.map +1 -1
  47. package/build/src/start/doctor/SecurityBinPrerequisite.js +1 -1
  48. package/build/src/start/doctor/SecurityBinPrerequisite.js.map +1 -1
  49. package/build/src/start/doctor/apple/XcodePrerequisite.js +1 -1
  50. package/build/src/start/doctor/apple/XcodePrerequisite.js.map +1 -1
  51. package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js +1 -1
  52. package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js.map +1 -1
  53. package/build/src/start/doctor/dependencies/resolvePackages.js +1 -1
  54. package/build/src/start/doctor/dependencies/resolvePackages.js.map +1 -1
  55. package/build/src/start/doctor/ngrok/ExternalModule.js +1 -1
  56. package/build/src/start/doctor/ngrok/ExternalModule.js.map +1 -1
  57. package/build/src/start/index.js +1 -1
  58. package/build/src/start/index.js.map +1 -1
  59. package/build/src/start/platforms/PlatformManager.js +1 -1
  60. package/build/src/start/platforms/PlatformManager.js.map +1 -1
  61. package/build/src/start/platforms/android/AndroidPlatformManager.js +1 -1
  62. package/build/src/start/platforms/android/AndroidPlatformManager.js.map +1 -1
  63. package/build/src/start/platforms/android/getDevices.js +1 -1
  64. package/build/src/start/platforms/android/getDevices.js.map +1 -1
  65. package/build/src/start/platforms/ios/AppleDeviceManager.js +1 -1
  66. package/build/src/start/platforms/ios/AppleDeviceManager.js.map +1 -1
  67. package/build/src/start/platforms/ios/xcrun.js +1 -1
  68. package/build/src/start/platforms/ios/xcrun.js.map +1 -1
  69. package/build/src/start/project/dotExpo.js +5 -0
  70. package/build/src/start/project/dotExpo.js.map +1 -1
  71. package/build/src/start/resolveOptions.js +3 -0
  72. package/build/src/start/resolveOptions.js.map +1 -1
  73. package/build/src/start/server/metro/MetroBundlerDevServer.js +38 -26
  74. package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
  75. package/build/src/start/server/metro/MetroTerminalReporter.js +29 -2
  76. package/build/src/start/server/metro/MetroTerminalReporter.js.map +1 -1
  77. package/build/src/start/server/metro/createExpoFallbackResolver.js +6 -4
  78. package/build/src/start/server/metro/createExpoFallbackResolver.js.map +1 -1
  79. package/build/src/start/server/metro/createJResolver.js +2 -2
  80. package/build/src/start/server/metro/createJResolver.js.map +1 -1
  81. package/build/src/start/server/metro/createServerComponentsMiddleware.js +16 -5
  82. package/build/src/start/server/metro/createServerComponentsMiddleware.js.map +1 -1
  83. package/build/src/start/server/metro/debugging/createDebugMiddleware.js +19 -19
  84. package/build/src/start/server/metro/debugging/createDebugMiddleware.js.map +1 -1
  85. package/build/src/start/server/metro/externals.js +1 -1
  86. package/build/src/start/server/metro/externals.js.map +1 -1
  87. package/build/src/start/server/metro/instantiateMetro.js +13 -8
  88. package/build/src/start/server/metro/instantiateMetro.js.map +1 -1
  89. package/build/src/start/server/metro/log-box/LogBoxSymbolication.js +21 -2
  90. package/build/src/start/server/metro/log-box/LogBoxSymbolication.js.map +1 -1
  91. package/build/src/start/server/metro/log-box/formatProjectFilePath.js +15 -12
  92. package/build/src/start/server/metro/log-box/formatProjectFilePath.js.map +1 -1
  93. package/build/src/start/server/metro/metroErrorInterface.js +19 -8
  94. package/build/src/start/server/metro/metroErrorInterface.js.map +1 -1
  95. package/build/src/start/server/metro/runServer-fork.js +1 -1
  96. package/build/src/start/server/metro/runServer-fork.js.map +1 -1
  97. package/build/src/start/server/metro/withMetroMultiPlatform.js +7 -12
  98. package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
  99. package/build/src/start/server/middleware/CorsMiddleware.js +1 -1
  100. package/build/src/start/server/middleware/CorsMiddleware.js.map +1 -1
  101. package/build/src/start/server/middleware/ManifestMiddleware.js +4 -8
  102. package/build/src/start/server/middleware/ManifestMiddleware.js.map +1 -1
  103. package/build/src/start/server/middleware/inspector/JsInspector.js +2 -25
  104. package/build/src/start/server/middleware/inspector/JsInspector.js.map +1 -1
  105. package/build/src/start/server/middleware/metroOptions.js +2 -26
  106. package/build/src/start/server/middleware/metroOptions.js.map +1 -1
  107. package/build/src/utils/build-cache-providers/helpers.js +61 -0
  108. package/build/src/utils/build-cache-providers/helpers.js.map +1 -0
  109. package/build/src/utils/build-cache-providers/index.js +283 -0
  110. package/build/src/utils/build-cache-providers/index.js.map +1 -0
  111. package/build/src/utils/codesigning.js +14 -2
  112. package/build/src/utils/codesigning.js.map +1 -1
  113. package/build/src/utils/exit.js +0 -1
  114. package/build/src/utils/exit.js.map +1 -1
  115. package/build/src/utils/ip.js +7 -104
  116. package/build/src/utils/ip.js.map +1 -1
  117. package/build/src/utils/modifyConfigAsync.js +1 -1
  118. package/build/src/utils/modifyConfigAsync.js.map +1 -1
  119. package/build/src/utils/resolveArgs.js +8 -0
  120. package/build/src/utils/resolveArgs.js.map +1 -1
  121. package/build/src/utils/scheme.js +1 -1
  122. package/build/src/utils/scheme.js.map +1 -1
  123. package/build/src/utils/telemetry/clients/FetchClient.js +2 -2
  124. package/build/src/utils/telemetry/clients/FetchClient.js.map +1 -1
  125. package/build/src/utils/telemetry/utils/context.js +1 -1
  126. package/build/src/utils/tsconfig/evaluateTsConfig.js +7 -2
  127. package/build/src/utils/tsconfig/evaluateTsConfig.js.map +1 -1
  128. package/build/src/utils/variadic.js +63 -6
  129. package/build/src/utils/variadic.js.map +1 -1
  130. package/package.json +20 -20
  131. package/static/canary/react-is/cjs/react-is.development.js +118 -185
  132. package/static/canary/react-is/cjs/react-is.production.js +2 -2
  133. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +16582 -26565
  134. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +3495 -3357
  135. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js +3929 -3801
  136. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16869 -27032
  137. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3535 -3428
  138. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4198 -4095
  139. package/static/canary/scheduler/cjs/scheduler-unstable_mock.development.js +387 -684
  140. package/static/canary/scheduler/cjs/scheduler-unstable_mock.production.js +0 -9
  141. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.development.js +137 -195
  142. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -5
  143. package/static/canary/scheduler/cjs/scheduler.development.js +339 -600
  144. package/static/canary/scheduler/cjs/scheduler.native.development.js +324 -512
  145. package/static/canary/scheduler/cjs/scheduler.native.production.js +6 -5
  146. package/static/canary/scheduler/cjs/scheduler.production.js +16 -17
  147. package/static/canary-full/react/cjs/react-compiler-runtime.development.js +13 -68
  148. package/static/canary-full/react/cjs/react-jsx-dev-runtime.development.js +317 -1251
  149. package/static/canary-full/react/cjs/react-jsx-dev-runtime.react-server.development.js +353 -1286
  150. package/static/canary-full/react/cjs/react-jsx-runtime.development.js +326 -1279
  151. package/static/canary-full/react/cjs/react-jsx-runtime.react-server.development.js +353 -1286
  152. package/static/canary-full/react/cjs/react.development.js +1204 -2771
  153. package/static/canary-full/react/cjs/react.production.js +25 -20
  154. package/static/canary-full/react/cjs/react.react-server.development.js +783 -2162
  155. package/static/canary-full/react/cjs/react.react-server.production.js +13 -63
  156. package/static/canary-full/react/package.json +1 -1
  157. package/static/canary-full/react-dom/cjs/react-dom-client.development.js +24847 -37099
  158. package/static/canary-full/react-dom/cjs/react-dom-client.production.js +8261 -7475
  159. package/static/canary-full/react-dom/cjs/react-dom-profiling.development.js +25252 -37571
  160. package/static/canary-full/react-dom/cjs/react-dom-profiling.profiling.js +9442 -8662
  161. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.development.js +8944 -11568
  162. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.production.js +1378 -944
  163. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.development.js +8944 -11568
  164. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.production.js +1386 -954
  165. package/static/canary-full/react-dom/cjs/react-dom-server.browser.development.js +9344 -11600
  166. package/static/canary-full/react-dom/cjs/react-dom-server.browser.production.js +1545 -954
  167. package/static/canary-full/react-dom/cjs/react-dom-server.bun.development.js +8286 -11064
  168. package/static/canary-full/react-dom/cjs/react-dom-server.bun.production.js +1437 -976
  169. package/static/canary-full/react-dom/cjs/react-dom-server.edge.development.js +9356 -11609
  170. package/static/canary-full/react-dom/cjs/react-dom-server.edge.production.js +1542 -970
  171. package/static/canary-full/react-dom/cjs/react-dom-server.node.development.js +9227 -11571
  172. package/static/canary-full/react-dom/cjs/react-dom-server.node.production.js +1787 -1183
  173. package/static/canary-full/react-dom/cjs/react-dom-test-utils.development.js +13 -59
  174. package/static/canary-full/react-dom/cjs/react-dom.development.js +402 -604
  175. package/static/canary-full/react-dom/cjs/react-dom.production.js +4 -3
  176. package/static/canary-full/react-dom/cjs/react-dom.react-server.development.js +322 -382
  177. package/static/canary-full/react-dom/cjs/react-dom.react-server.production.js +6 -7
  178. package/static/canary-full/react-dom/package.json +5 -5
  179. package/static/canary-full/react-dom/static.browser.js +1 -0
  180. package/static/canary-full/react-dom/static.edge.js +1 -0
  181. package/static/canary-full/react-dom/static.node.js +1 -0
  182. package/static/template/eslint.config.js +10 -0
@@ -8,393 +8,333 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- 'use strict';
12
-
13
- if (process.env.NODE_ENV !== "production") {
14
- (function() {
15
- 'use strict';
16
-
17
- var React = require('react');
18
-
19
- var ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
20
- React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
21
-
22
- if (!ReactSharedInternalsServer) {
23
- throw new Error('The "react" package in this environment is not configured correctly. ' + 'The "react-server" condition must be enabled in any environment that ' + 'runs React Server Components.');
24
- }
25
-
26
- function error(format) {
27
- {
28
- {
29
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
30
- args[_key2 - 1] = arguments[_key2];
31
- }
32
-
33
- printWarning('error', format, args);
34
- }
35
- }
36
- }
37
-
38
- function printWarning(level, format, args) {
39
- // When changing this logic, you might want to also
40
- // update consoleWithStackDev.www.js as well.
41
- {
42
- var stack = ReactSharedInternalsServer.getStackAddendum();
43
-
44
- if (stack !== '') {
45
- format += '%s';
46
- args = args.concat([stack]);
47
- } // eslint-disable-next-line react-internal/safe-string-coercion
48
-
49
-
50
- var argsWithFormat = args.map(function (item) {
51
- return String(item);
52
- }); // Careful: RN currently depends on this prefix
53
-
54
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
55
- // breaks IE9: https://github.com/facebook/react/issues/13610
56
- // eslint-disable-next-line react-internal/no-production-logging
57
-
58
- Function.prototype.apply.call(console[level], console, argsWithFormat);
59
- }
60
- }
61
-
62
- var NoLane =
63
- /* */
64
- 0;
65
-
66
- var NoEventPriority = NoLane;
67
-
68
- function noop() {}
69
-
70
- function requestFormReset(element) {
71
- throw new Error('Invalid form element. requestFormReset must be passed a form that was ' + 'rendered by React.');
72
- }
73
-
74
- var DefaultDispatcher = {
75
- f
76
- /* flushSyncWork */
77
- : noop,
78
- r
79
- /* requestFormReset */
80
- : requestFormReset,
81
- D
82
- /* prefetchDNS */
83
- : noop,
84
- C
85
- /* preconnect */
86
- : noop,
87
- L
88
- /* preload */
89
- : noop,
90
- m
91
- /* preloadModule */
92
- : noop,
93
- X
94
- /* preinitScript */
95
- : noop,
96
- S
97
- /* preinitStyle */
98
- : noop,
99
- M
100
- /* preinitModuleScript */
101
- : noop
102
- };
103
- var Internals = {
104
- d
105
- /* ReactDOMCurrentDispatcher */
106
- : DefaultDispatcher,
107
- p
108
- /* currentUpdatePriority */
109
- : NoEventPriority,
110
- findDOMNode: null
111
- };
112
-
113
- {
114
- if (typeof Map !== 'function' || // $FlowFixMe[prop-missing] Flow incorrectly thinks Map has no prototype
115
- Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowFixMe[prop-missing] Flow incorrectly thinks Set has no prototype
116
- Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
117
- error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
118
- }
119
- }
120
-
121
- var ReactDOMSharedInternals = Internals;
122
-
123
- function getCrossOriginString(input) {
124
- if (typeof input === 'string') {
125
- return input === 'use-credentials' ? input : '';
126
- }
127
-
128
- return undefined;
129
- }
130
- function getCrossOriginStringAs(as, input) {
131
- if (as === 'font') {
132
- return '';
133
- }
134
-
135
- if (typeof input === 'string') {
136
- return input === 'use-credentials' ? input : '';
137
- }
138
-
139
- return undefined;
140
- }
141
-
142
- function prefetchDNS(href) {
143
- {
144
- if (typeof href !== 'string' || !href) {
145
- error('ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
146
- } else if (arguments.length > 1) {
147
- var options = arguments[1];
148
-
149
- if (typeof options === 'object' && options.hasOwnProperty('crossOrigin')) {
150
- 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));
151
- } else {
152
- 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));
153
- }
11
+ "use strict";
12
+ "production" !== process.env.NODE_ENV &&
13
+ (function () {
14
+ function noop() {}
15
+ function getCrossOriginStringAs(as, input) {
16
+ if ("font" === as) return "";
17
+ if ("string" === typeof input)
18
+ return "use-credentials" === input ? input : "";
154
19
  }
155
- }
156
-
157
- if (typeof href === 'string') {
158
- ReactDOMSharedInternals.d
159
- /* ReactDOMCurrentDispatcher */
160
- .D(
161
- /* prefetchDNS */
162
- href);
163
- } // We don't error because preconnect needs to be resilient to being called in a variety of scopes
164
- // and the runtime may not be capable of responding. The function is optimistic and not critical
165
- // so we favor silent bailout over warning or erroring.
166
-
167
- }
168
- function preconnect(href, options) {
169
- {
170
- if (typeof href !== 'string' || !href) {
171
- error('ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
172
- } else if (options != null && typeof options !== 'object') {
173
- 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));
174
- } else if (options != null && typeof options.crossOrigin !== 'string') {
175
- 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));
20
+ function getValueDescriptorExpectingObjectForWarning(thing) {
21
+ return null === thing
22
+ ? "`null`"
23
+ : void 0 === thing
24
+ ? "`undefined`"
25
+ : "" === thing
26
+ ? "an empty string"
27
+ : 'something with type "' + typeof thing + '"';
176
28
  }
177
- }
178
-
179
- if (typeof href === 'string') {
180
- var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null;
181
- ReactDOMSharedInternals.d
182
- /* ReactDOMCurrentDispatcher */
183
- .C(
184
- /* preconnect */
185
- href, crossOrigin);
186
- } // We don't error because preconnect needs to be resilient to being called in a variety of scopes
187
- // and the runtime may not be capable of responding. The function is optimistic and not critical
188
- // so we favor silent bailout over warning or erroring.
189
-
190
- }
191
- function preload(href, options) {
192
- {
193
- var encountered = '';
194
-
195
- if (typeof href !== 'string' || !href) {
196
- encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
197
- }
198
-
199
- if (options == null || typeof options !== 'object') {
200
- encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
201
- } else if (typeof options.as !== 'string' || !options.as) {
202
- encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".";
29
+ function getValueDescriptorExpectingEnumForWarning(thing) {
30
+ return null === thing
31
+ ? "`null`"
32
+ : void 0 === thing
33
+ ? "`undefined`"
34
+ : "" === thing
35
+ ? "an empty string"
36
+ : "string" === typeof thing
37
+ ? JSON.stringify(thing)
38
+ : "number" === typeof thing
39
+ ? "`" + thing + "`"
40
+ : 'something with type "' + typeof thing + '"';
203
41
  }
204
-
205
- if (encountered) {
206
- 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);
207
- }
208
- }
209
-
210
- if (typeof href === 'string' && // We check existence because we cannot enforce this function is actually called with the stated type
211
- typeof options === 'object' && options !== null && typeof options.as === 'string') {
212
- var as = options.as;
213
- var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
214
- ReactDOMSharedInternals.d
215
- /* ReactDOMCurrentDispatcher */
216
- .L(
217
- /* preload */
218
- href, as, {
219
- crossOrigin: crossOrigin,
220
- integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
221
- nonce: typeof options.nonce === 'string' ? options.nonce : undefined,
222
- type: typeof options.type === 'string' ? options.type : undefined,
223
- fetchPriority: typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined,
224
- referrerPolicy: typeof options.referrerPolicy === 'string' ? options.referrerPolicy : undefined,
225
- imageSrcSet: typeof options.imageSrcSet === 'string' ? options.imageSrcSet : undefined,
226
- imageSizes: typeof options.imageSizes === 'string' ? options.imageSizes : undefined,
227
- media: typeof options.media === 'string' ? options.media : undefined
228
- });
229
- } // We don't error because preload needs to be resilient to being called in a variety of scopes
230
- // and the runtime may not be capable of responding. The function is optimistic and not critical
231
- // so we favor silent bailout over warning or erroring.
232
-
233
- }
234
- function preloadModule(href, options) {
235
- {
236
- var encountered = '';
237
-
238
- if (typeof href !== 'string' || !href) {
239
- encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
240
- }
241
-
242
- if (options !== undefined && typeof options !== 'object') {
243
- encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
244
- } else if (options && 'as' in options && typeof options.as !== 'string') {
245
- encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".";
246
- }
247
-
248
- if (encountered) {
249
- 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);
250
- }
251
- }
252
-
253
- if (typeof href === 'string') {
254
- if (options) {
255
- var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
256
- ReactDOMSharedInternals.d
257
- /* ReactDOMCurrentDispatcher */
258
- .m(
259
- /* preloadModule */
260
- href, {
261
- as: typeof options.as === 'string' && options.as !== 'script' ? options.as : undefined,
262
- crossOrigin: crossOrigin,
263
- integrity: typeof options.integrity === 'string' ? options.integrity : undefined
264
- });
265
- } else {
266
- ReactDOMSharedInternals.d
267
- /* ReactDOMCurrentDispatcher */
268
- .m(
269
- /* preloadModule */
270
- href);
271
- }
272
- } // We don't error because preload needs to be resilient to being called in a variety of scopes
273
- // and the runtime may not be capable of responding. The function is optimistic and not critical
274
- // so we favor silent bailout over warning or erroring.
275
-
276
- }
277
- function preinit(href, options) {
278
- {
279
- if (typeof href !== 'string' || !href) {
280
- error('ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.', getValueDescriptorExpectingObjectForWarning(href));
281
- } else if (options == null || typeof options !== 'object') {
282
- 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));
283
- } else if (options.as !== 'style' && options.as !== 'script') {
284
- 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));
285
- }
286
- }
287
-
288
- if (typeof href === 'string' && options && typeof options.as === 'string') {
289
- var as = options.as;
290
- var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
291
- var integrity = typeof options.integrity === 'string' ? options.integrity : undefined;
292
- var fetchPriority = typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined;
293
-
294
- if (as === 'style') {
295
- ReactDOMSharedInternals.d
296
- /* ReactDOMCurrentDispatcher */
297
- .S(
298
- /* preinitStyle */
299
- href, typeof options.precedence === 'string' ? options.precedence : undefined, {
300
- crossOrigin: crossOrigin,
301
- integrity: integrity,
302
- fetchPriority: fetchPriority
303
- });
304
- } else if (as === 'script') {
305
- ReactDOMSharedInternals.d
306
- /* ReactDOMCurrentDispatcher */
307
- .X(
308
- /* preinitScript */
309
- href, {
310
- crossOrigin: crossOrigin,
311
- integrity: integrity,
312
- fetchPriority: fetchPriority,
313
- nonce: typeof options.nonce === 'string' ? options.nonce : undefined
314
- });
315
- }
316
- } // We don't error because preinit needs to be resilient to being called in a variety of scopes
317
- // and the runtime may not be capable of responding. The function is optimistic and not critical
318
- // so we favor silent bailout over warning or erroring.
319
-
320
- }
321
- function preinitModule(href, options) {
322
- {
323
- var encountered = '';
324
-
325
- if (typeof href !== 'string' || !href) {
326
- encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".";
327
- }
328
-
329
- if (options !== undefined && typeof options !== 'object') {
330
- encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + ".";
331
- } else if (options && 'as' in options && options.as !== 'script') {
332
- encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".";
333
- }
334
-
335
- if (encountered) {
336
- 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);
337
- } else {
338
- var as = options && typeof options.as === 'string' ? options.as : 'script';
339
-
340
- switch (as) {
341
- case 'script':
342
- {
343
- break;
344
- }
345
- // We have an invalid as type and need to warn
346
-
347
- default:
348
- {
349
- var typeOfAs = getValueDescriptorExpectingEnumForWarning(as);
350
-
351
- 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);
352
- }
42
+ var React = require("react"),
43
+ Internals = {
44
+ d: {
45
+ f: noop,
46
+ r: function () {
47
+ throw Error(
48
+ "Invalid form element. requestFormReset must be passed a form that was rendered by React."
49
+ );
50
+ },
51
+ D: noop,
52
+ C: noop,
53
+ L: noop,
54
+ m: noop,
55
+ X: noop,
56
+ S: noop,
57
+ M: noop
58
+ },
59
+ p: 0,
60
+ findDOMNode: null
61
+ };
62
+ if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
63
+ throw Error(
64
+ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
65
+ );
66
+ ("function" === typeof Map &&
67
+ null != Map.prototype &&
68
+ "function" === typeof Map.prototype.forEach &&
69
+ "function" === typeof Set &&
70
+ null != Set.prototype &&
71
+ "function" === typeof Set.prototype.clear &&
72
+ "function" === typeof Set.prototype.forEach) ||
73
+ console.error(
74
+ "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
75
+ );
76
+ exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
77
+ Internals;
78
+ exports.preconnect = function (href, options) {
79
+ "string" === typeof href && href
80
+ ? null != options && "object" !== typeof options
81
+ ? console.error(
82
+ "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.",
83
+ getValueDescriptorExpectingEnumForWarning(options)
84
+ )
85
+ : null != options &&
86
+ "string" !== typeof options.crossOrigin &&
87
+ console.error(
88
+ "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.",
89
+ getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
90
+ )
91
+ : console.error(
92
+ "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
93
+ getValueDescriptorExpectingObjectForWarning(href)
94
+ );
95
+ "string" === typeof href &&
96
+ (options
97
+ ? ((options = options.crossOrigin),
98
+ (options =
99
+ "string" === typeof options
100
+ ? "use-credentials" === options
101
+ ? options
102
+ : ""
103
+ : void 0))
104
+ : (options = null),
105
+ Internals.d.C(href, options));
106
+ };
107
+ exports.prefetchDNS = function (href) {
108
+ if ("string" !== typeof href || !href)
109
+ console.error(
110
+ "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
111
+ getValueDescriptorExpectingObjectForWarning(href)
112
+ );
113
+ else if (1 < arguments.length) {
114
+ var options = arguments[1];
115
+ "object" === typeof options && options.hasOwnProperty("crossOrigin")
116
+ ? console.error(
117
+ "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`.",
118
+ getValueDescriptorExpectingEnumForWarning(options)
119
+ )
120
+ : console.error(
121
+ "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`.",
122
+ getValueDescriptorExpectingEnumForWarning(options)
123
+ );
353
124
  }
354
- }
355
- }
356
-
357
- if (typeof href === 'string') {
358
- if (typeof options === 'object' && options !== null) {
359
- if (options.as == null || options.as === 'script') {
360
- var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
361
- ReactDOMSharedInternals.d
362
- /* ReactDOMCurrentDispatcher */
363
- .M(
364
- /* preinitModuleScript */
365
- href, {
125
+ "string" === typeof href && Internals.d.D(href);
126
+ };
127
+ exports.preinit = function (href, options) {
128
+ "string" === typeof href && href
129
+ ? null == options || "object" !== typeof options
130
+ ? console.error(
131
+ "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.",
132
+ getValueDescriptorExpectingEnumForWarning(options)
133
+ )
134
+ : "style" !== options.as &&
135
+ "script" !== options.as &&
136
+ console.error(
137
+ '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".',
138
+ getValueDescriptorExpectingEnumForWarning(options.as)
139
+ )
140
+ : console.error(
141
+ "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
142
+ getValueDescriptorExpectingObjectForWarning(href)
143
+ );
144
+ if (
145
+ "string" === typeof href &&
146
+ options &&
147
+ "string" === typeof options.as
148
+ ) {
149
+ var as = options.as,
150
+ crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
151
+ integrity =
152
+ "string" === typeof options.integrity ? options.integrity : void 0,
153
+ fetchPriority =
154
+ "string" === typeof options.fetchPriority
155
+ ? options.fetchPriority
156
+ : void 0;
157
+ "style" === as
158
+ ? Internals.d.S(
159
+ href,
160
+ "string" === typeof options.precedence
161
+ ? options.precedence
162
+ : void 0,
163
+ {
164
+ crossOrigin: crossOrigin,
165
+ integrity: integrity,
166
+ fetchPriority: fetchPriority
167
+ }
168
+ )
169
+ : "script" === as &&
170
+ Internals.d.X(href, {
171
+ crossOrigin: crossOrigin,
172
+ integrity: integrity,
173
+ fetchPriority: fetchPriority,
174
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
175
+ });
176
+ }
177
+ };
178
+ exports.preinitModule = function (href, options) {
179
+ var encountered = "";
180
+ ("string" === typeof href && href) ||
181
+ (encountered +=
182
+ " The `href` argument encountered was " +
183
+ getValueDescriptorExpectingObjectForWarning(href) +
184
+ ".");
185
+ void 0 !== options && "object" !== typeof options
186
+ ? (encountered +=
187
+ " The `options` argument encountered was " +
188
+ getValueDescriptorExpectingObjectForWarning(options) +
189
+ ".")
190
+ : options &&
191
+ "as" in options &&
192
+ "script" !== options.as &&
193
+ (encountered +=
194
+ " The `as` option encountered was " +
195
+ getValueDescriptorExpectingEnumForWarning(options.as) +
196
+ ".");
197
+ if (encountered)
198
+ console.error(
199
+ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
200
+ encountered
201
+ );
202
+ else
203
+ switch (
204
+ ((encountered =
205
+ options && "string" === typeof options.as ? options.as : "script"),
206
+ encountered)
207
+ ) {
208
+ case "script":
209
+ break;
210
+ default:
211
+ (encountered =
212
+ getValueDescriptorExpectingEnumForWarning(encountered)),
213
+ console.error(
214
+ '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)',
215
+ encountered,
216
+ href
217
+ );
218
+ }
219
+ if ("string" === typeof href)
220
+ if ("object" === typeof options && null !== options) {
221
+ if (null == options.as || "script" === options.as)
222
+ (encountered = getCrossOriginStringAs(
223
+ options.as,
224
+ options.crossOrigin
225
+ )),
226
+ Internals.d.M(href, {
227
+ crossOrigin: encountered,
228
+ integrity:
229
+ "string" === typeof options.integrity
230
+ ? options.integrity
231
+ : void 0,
232
+ nonce:
233
+ "string" === typeof options.nonce ? options.nonce : void 0
234
+ });
235
+ } else null == options && Internals.d.M(href);
236
+ };
237
+ exports.preload = function (href, options) {
238
+ var encountered = "";
239
+ ("string" === typeof href && href) ||
240
+ (encountered +=
241
+ " The `href` argument encountered was " +
242
+ getValueDescriptorExpectingObjectForWarning(href) +
243
+ ".");
244
+ null == options || "object" !== typeof options
245
+ ? (encountered +=
246
+ " The `options` argument encountered was " +
247
+ getValueDescriptorExpectingObjectForWarning(options) +
248
+ ".")
249
+ : ("string" === typeof options.as && options.as) ||
250
+ (encountered +=
251
+ " The `as` option encountered was " +
252
+ getValueDescriptorExpectingObjectForWarning(options.as) +
253
+ ".");
254
+ encountered &&
255
+ console.error(
256
+ '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',
257
+ encountered
258
+ );
259
+ if (
260
+ "string" === typeof href &&
261
+ "object" === typeof options &&
262
+ null !== options &&
263
+ "string" === typeof options.as
264
+ ) {
265
+ encountered = options.as;
266
+ var crossOrigin = getCrossOriginStringAs(
267
+ encountered,
268
+ options.crossOrigin
269
+ );
270
+ Internals.d.L(href, encountered, {
366
271
  crossOrigin: crossOrigin,
367
- integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
368
- nonce: typeof options.nonce === 'string' ? options.nonce : undefined
272
+ integrity:
273
+ "string" === typeof options.integrity ? options.integrity : void 0,
274
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0,
275
+ type: "string" === typeof options.type ? options.type : void 0,
276
+ fetchPriority:
277
+ "string" === typeof options.fetchPriority
278
+ ? options.fetchPriority
279
+ : void 0,
280
+ referrerPolicy:
281
+ "string" === typeof options.referrerPolicy
282
+ ? options.referrerPolicy
283
+ : void 0,
284
+ imageSrcSet:
285
+ "string" === typeof options.imageSrcSet
286
+ ? options.imageSrcSet
287
+ : void 0,
288
+ imageSizes:
289
+ "string" === typeof options.imageSizes
290
+ ? options.imageSizes
291
+ : void 0,
292
+ media: "string" === typeof options.media ? options.media : void 0
369
293
  });
370
294
  }
371
- } else if (options == null) {
372
- ReactDOMSharedInternals.d
373
- /* ReactDOMCurrentDispatcher */
374
- .M(
375
- /* preinitModuleScript */
376
- href);
377
- }
378
- } // We don't error because preinit needs to be resilient to being called in a variety of scopes
379
- // and the runtime may not be capable of responding. The function is optimistic and not critical
380
- // so we favor silent bailout over warning or erroring.
381
-
382
- }
383
-
384
- function getValueDescriptorExpectingObjectForWarning(thing) {
385
- return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : "something with type \"" + typeof thing + "\"";
386
- }
387
-
388
- function getValueDescriptorExpectingEnumForWarning(thing) {
389
- 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 + "\"";
390
- }
391
-
392
- exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
393
- exports.preconnect = preconnect;
394
- exports.prefetchDNS = prefetchDNS;
395
- exports.preinit = preinit;
396
- exports.preinitModule = preinitModule;
397
- exports.preload = preload;
398
- exports.preloadModule = preloadModule;
295
+ };
296
+ exports.preloadModule = function (href, options) {
297
+ var encountered = "";
298
+ ("string" === typeof href && href) ||
299
+ (encountered +=
300
+ " The `href` argument encountered was " +
301
+ getValueDescriptorExpectingObjectForWarning(href) +
302
+ ".");
303
+ void 0 !== options && "object" !== typeof options
304
+ ? (encountered +=
305
+ " The `options` argument encountered was " +
306
+ getValueDescriptorExpectingObjectForWarning(options) +
307
+ ".")
308
+ : options &&
309
+ "as" in options &&
310
+ "string" !== typeof options.as &&
311
+ (encountered +=
312
+ " The `as` option encountered was " +
313
+ getValueDescriptorExpectingObjectForWarning(options.as) +
314
+ ".");
315
+ encountered &&
316
+ console.error(
317
+ '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',
318
+ encountered
319
+ );
320
+ "string" === typeof href &&
321
+ (options
322
+ ? ((encountered = getCrossOriginStringAs(
323
+ options.as,
324
+ options.crossOrigin
325
+ )),
326
+ Internals.d.m(href, {
327
+ as:
328
+ "string" === typeof options.as && "script" !== options.as
329
+ ? options.as
330
+ : void 0,
331
+ crossOrigin: encountered,
332
+ integrity:
333
+ "string" === typeof options.integrity
334
+ ? options.integrity
335
+ : void 0
336
+ }))
337
+ : Internals.d.m(href));
338
+ };
339
+ exports.version = "19.2.0-canary-5252281c-20250408";
399
340
  })();
400
- }