vxrn 1.27.1 → 2.0.0-beta.45.1

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 (456) hide show
  1. package/dist/cli.mjs +212 -261
  2. package/dist/cli.mjs.map +1 -1
  3. package/dist/cli.native.js +216 -265
  4. package/dist/cli.native.js.map +1 -1
  5. package/dist/config/getAdditionalViteConfig.mjs +33 -62
  6. package/dist/config/getAdditionalViteConfig.mjs.map +1 -1
  7. package/dist/config/getAdditionalViteConfig.native.js +33 -62
  8. package/dist/config/getAdditionalViteConfig.native.js.map +1 -1
  9. package/dist/config/getBaseViteConfigOnly.mjs +84 -77
  10. package/dist/config/getBaseViteConfigOnly.mjs.map +1 -1
  11. package/dist/config/getBaseViteConfigOnly.native.js +86 -79
  12. package/dist/config/getBaseViteConfigOnly.native.js.map +1 -1
  13. package/dist/config/getBaseViteConfigWithPlugins.mjs +6 -4
  14. package/dist/config/getBaseViteConfigWithPlugins.mjs.map +1 -1
  15. package/dist/config/getBaseViteConfigWithPlugins.native.js +6 -4
  16. package/dist/config/getBaseViteConfigWithPlugins.native.js.map +1 -1
  17. package/dist/config/getBaseVitePlugins.mjs +102 -130
  18. package/dist/config/getBaseVitePlugins.mjs.map +1 -1
  19. package/dist/config/getBaseVitePlugins.native.js +123 -152
  20. package/dist/config/getBaseVitePlugins.native.js.map +1 -1
  21. package/dist/config/getNonCliModeOnlyVitePlugins.mjs +3 -3
  22. package/dist/config/getNonCliModeOnlyVitePlugins.mjs.map +1 -1
  23. package/dist/config/getNonCliModeOnlyVitePlugins.native.js +3 -1
  24. package/dist/config/getNonCliModeOnlyVitePlugins.native.js.map +1 -1
  25. package/dist/config/getOptimizeDeps.mjs +138 -42
  26. package/dist/config/getOptimizeDeps.mjs.map +1 -1
  27. package/dist/config/getOptimizeDeps.native.js +138 -42
  28. package/dist/config/getOptimizeDeps.native.js.map +1 -1
  29. package/dist/config/getOptionsFilled.mjs +48 -52
  30. package/dist/config/getOptionsFilled.mjs.map +1 -1
  31. package/dist/config/getOptionsFilled.native.js +51 -55
  32. package/dist/config/getOptionsFilled.native.js.map +1 -1
  33. package/dist/config/getReactNativePlugins.mjs +23 -15
  34. package/dist/config/getReactNativePlugins.mjs.map +1 -1
  35. package/dist/config/getReactNativePlugins.native.js +25 -16
  36. package/dist/config/getReactNativePlugins.native.js.map +1 -1
  37. package/dist/config/getServerOptionsFilled.mjs +33 -35
  38. package/dist/config/getServerOptionsFilled.mjs.map +1 -1
  39. package/dist/config/getServerOptionsFilled.native.js +35 -38
  40. package/dist/config/getServerOptionsFilled.native.js.map +1 -1
  41. package/dist/config/getViteServerConfig.mjs +34 -45
  42. package/dist/config/getViteServerConfig.mjs.map +1 -1
  43. package/dist/config/getViteServerConfig.native.js +35 -46
  44. package/dist/config/getViteServerConfig.native.js.map +1 -1
  45. package/dist/config/mergeUserConfig.mjs +50 -28
  46. package/dist/config/mergeUserConfig.mjs.map +1 -1
  47. package/dist/config/mergeUserConfig.native.js +60 -38
  48. package/dist/config/mergeUserConfig.native.js.map +1 -1
  49. package/dist/constants/defaults.mjs +29 -12
  50. package/dist/constants/defaults.mjs.map +1 -1
  51. package/dist/constants/defaults.native.js +29 -12
  52. package/dist/constants/defaults.native.js.map +1 -1
  53. package/dist/constants.mjs +41 -6
  54. package/dist/constants.mjs.map +1 -1
  55. package/dist/constants.native.js +41 -6
  56. package/dist/constants.native.js.map +1 -1
  57. package/dist/exports/build.mjs +218 -270
  58. package/dist/exports/build.mjs.map +1 -1
  59. package/dist/exports/build.native.js +226 -283
  60. package/dist/exports/build.native.js.map +1 -1
  61. package/dist/exports/clean.mjs +71 -78
  62. package/dist/exports/clean.mjs.map +1 -1
  63. package/dist/exports/clean.native.js +76 -90
  64. package/dist/exports/clean.native.js.map +1 -1
  65. package/dist/exports/createServer.mjs +43 -46
  66. package/dist/exports/createServer.mjs.map +1 -1
  67. package/dist/exports/createServer.native.js +45 -48
  68. package/dist/exports/createServer.native.js.map +1 -1
  69. package/dist/exports/dev.mjs +177 -201
  70. package/dist/exports/dev.mjs.map +1 -1
  71. package/dist/exports/dev.native.js +191 -215
  72. package/dist/exports/dev.native.js.map +1 -1
  73. package/dist/exports/loadEnv.mjs +51 -48
  74. package/dist/exports/loadEnv.mjs.map +1 -1
  75. package/dist/exports/loadEnv.native.js +59 -57
  76. package/dist/exports/loadEnv.native.js.map +1 -1
  77. package/dist/exports/patch.mjs +9 -7
  78. package/dist/exports/patch.mjs.map +1 -1
  79. package/dist/exports/patch.native.js +9 -7
  80. package/dist/exports/patch.native.js.map +1 -1
  81. package/dist/exports/prebuild.mjs +177 -157
  82. package/dist/exports/prebuild.mjs.map +1 -1
  83. package/dist/exports/prebuild.native.js +197 -160
  84. package/dist/exports/prebuild.native.js.map +1 -1
  85. package/dist/exports/prebuildWithoutExpo.mjs +46 -44
  86. package/dist/exports/prebuildWithoutExpo.mjs.map +1 -1
  87. package/dist/exports/prebuildWithoutExpo.native.js +48 -46
  88. package/dist/exports/prebuildWithoutExpo.native.js.map +1 -1
  89. package/dist/exports/runAndroid.mjs +9 -10
  90. package/dist/exports/runAndroid.mjs.map +1 -1
  91. package/dist/exports/runAndroid.native.js +10 -11
  92. package/dist/exports/runAndroid.native.js.map +1 -1
  93. package/dist/exports/runIos.mjs +9 -10
  94. package/dist/exports/runIos.mjs.map +1 -1
  95. package/dist/exports/runIos.native.js +10 -11
  96. package/dist/exports/runIos.native.js.map +1 -1
  97. package/dist/exports/serve.mjs +23 -31
  98. package/dist/exports/serve.mjs.map +1 -1
  99. package/dist/exports/serve.native.js +26 -34
  100. package/dist/exports/serve.native.js.map +1 -1
  101. package/dist/exports/serveStaticAssets.mjs +109 -113
  102. package/dist/exports/serveStaticAssets.mjs.map +1 -1
  103. package/dist/exports/serveStaticAssets.native.js +180 -192
  104. package/dist/exports/serveStaticAssets.native.js.map +1 -1
  105. package/dist/index.js +25 -14
  106. package/dist/index.mjs +25 -14
  107. package/dist/index.native.js +25 -14
  108. package/dist/patches/builtInDepPatches.mjs +346 -435
  109. package/dist/patches/builtInDepPatches.mjs.map +1 -1
  110. package/dist/patches/builtInDepPatches.native.js +349 -438
  111. package/dist/patches/builtInDepPatches.native.js.map +1 -1
  112. package/dist/plugins/applyBuiltInPatchesPlugin.mjs +11 -11
  113. package/dist/plugins/applyBuiltInPatchesPlugin.mjs.map +1 -1
  114. package/dist/plugins/applyBuiltInPatchesPlugin.native.js +11 -11
  115. package/dist/plugins/applyBuiltInPatchesPlugin.native.js.map +1 -1
  116. package/dist/plugins/autoDepOptimizePlugin.mjs +87 -90
  117. package/dist/plugins/autoDepOptimizePlugin.mjs.map +1 -1
  118. package/dist/plugins/autoDepOptimizePlugin.native.js +99 -102
  119. package/dist/plugins/autoDepOptimizePlugin.native.js.map +1 -1
  120. package/dist/plugins/clientInjectPlugin.mjs +13 -11
  121. package/dist/plugins/clientInjectPlugin.mjs.map +1 -1
  122. package/dist/plugins/clientInjectPlugin.native.js +13 -11
  123. package/dist/plugins/clientInjectPlugin.native.js.map +1 -1
  124. package/dist/plugins/defaultDepOptimizePlugin.mjs +15 -23
  125. package/dist/plugins/defaultDepOptimizePlugin.mjs.map +1 -1
  126. package/dist/plugins/defaultDepOptimizePlugin.native.js +15 -23
  127. package/dist/plugins/defaultDepOptimizePlugin.native.js.map +1 -1
  128. package/dist/plugins/expoManifestRequestHandlerPlugin.mjs +163 -179
  129. package/dist/plugins/expoManifestRequestHandlerPlugin.mjs.map +1 -1
  130. package/dist/plugins/expoManifestRequestHandlerPlugin.native.js +169 -191
  131. package/dist/plugins/expoManifestRequestHandlerPlugin.native.js.map +1 -1
  132. package/dist/plugins/getResolvedConfigSubset.mjs +6 -5
  133. package/dist/plugins/getResolvedConfigSubset.mjs.map +1 -1
  134. package/dist/plugins/getResolvedConfigSubset.native.js +6 -5
  135. package/dist/plugins/getResolvedConfigSubset.native.js.map +1 -1
  136. package/dist/plugins/reactNativeCommonJsPlugin.mjs +210 -178
  137. package/dist/plugins/reactNativeCommonJsPlugin.mjs.map +1 -1
  138. package/dist/plugins/reactNativeCommonJsPlugin.native.js +283 -259
  139. package/dist/plugins/reactNativeCommonJsPlugin.native.js.map +1 -1
  140. package/dist/plugins/reactNativeDevAssetPlugin.mjs +72 -83
  141. package/dist/plugins/reactNativeDevAssetPlugin.mjs.map +1 -1
  142. package/dist/plugins/reactNativeDevAssetPlugin.native.js +75 -92
  143. package/dist/plugins/reactNativeDevAssetPlugin.native.js.map +1 -1
  144. package/dist/plugins/reactNativeDevServer.mjs +283 -328
  145. package/dist/plugins/reactNativeDevServer.mjs.map +1 -1
  146. package/dist/plugins/reactNativeDevServer.native.js +332 -391
  147. package/dist/plugins/reactNativeDevServer.native.js.map +1 -1
  148. package/dist/plugins/rnCodegenPlugin.mjs +13 -12
  149. package/dist/plugins/rnCodegenPlugin.mjs.map +1 -1
  150. package/dist/plugins/rnCodegenPlugin.native.js +13 -12
  151. package/dist/plugins/rnCodegenPlugin.native.js.map +1 -1
  152. package/dist/plugins/rollupRemoveUnusedImports.mjs +8 -7
  153. package/dist/plugins/rollupRemoveUnusedImports.mjs.map +1 -1
  154. package/dist/plugins/rollupRemoveUnusedImports.native.js +8 -7
  155. package/dist/plugins/rollupRemoveUnusedImports.native.js.map +1 -1
  156. package/dist/plugins/workletImportsPlugin.mjs +127 -132
  157. package/dist/plugins/workletImportsPlugin.mjs.map +1 -1
  158. package/dist/plugins/workletImportsPlugin.native.js +192 -203
  159. package/dist/plugins/workletImportsPlugin.native.js.map +1 -1
  160. package/dist/rn-commands/bundle/buildBundle.mjs +45 -79
  161. package/dist/rn-commands/bundle/buildBundle.mjs.map +1 -1
  162. package/dist/rn-commands/bundle/buildBundle.native.js +45 -85
  163. package/dist/rn-commands/bundle/buildBundle.native.js.map +1 -1
  164. package/dist/runtime/hmr-client.mjs +133 -140
  165. package/dist/runtime/hmr-client.mjs.map +1 -1
  166. package/dist/runtime/hmr-client.native.js +223 -222
  167. package/dist/runtime/hmr-client.native.js.map +1 -1
  168. package/dist/runtime/hmr-runtime.mjs +192 -194
  169. package/dist/runtime/hmr-runtime.mjs.map +1 -1
  170. package/dist/runtime/hmr-runtime.native.js +424 -411
  171. package/dist/runtime/hmr-runtime.native.js.map +1 -1
  172. package/dist/runtime/hmr-types.mjs +0 -2
  173. package/dist/runtime/hmr-types.native.js +0 -2
  174. package/dist/runtime/native-prelude.mjs +2 -1
  175. package/dist/runtime/native-prelude.mjs.map +1 -1
  176. package/dist/runtime/native-prelude.native.js +2 -1
  177. package/dist/runtime/native-prelude.native.js.map +1 -1
  178. package/dist/runtime/react-refresh-utils.mjs +23 -22
  179. package/dist/runtime/react-refresh-utils.mjs.map +1 -1
  180. package/dist/runtime/react-refresh-utils.native.js +23 -27
  181. package/dist/runtime/react-refresh-utils.native.js.map +1 -1
  182. package/dist/serve/node.mjs +49 -49
  183. package/dist/serve/node.mjs.map +1 -1
  184. package/dist/serve/node.native.js +92 -96
  185. package/dist/serve/node.native.js.map +1 -1
  186. package/dist/types.mjs +0 -2
  187. package/dist/types.native.js +0 -2
  188. package/dist/user-interface/index.mjs +245 -262
  189. package/dist/user-interface/index.mjs.map +1 -1
  190. package/dist/user-interface/index.native.js +274 -298
  191. package/dist/user-interface/index.native.js.map +1 -1
  192. package/dist/utils/assert.mjs +7 -6
  193. package/dist/utils/assert.mjs.map +1 -1
  194. package/dist/utils/assert.native.js +7 -18
  195. package/dist/utils/assert.native.js.map +1 -1
  196. package/dist/utils/bindKeypressInput.mjs +36 -38
  197. package/dist/utils/bindKeypressInput.mjs.map +1 -1
  198. package/dist/utils/bindKeypressInput.native.js +36 -38
  199. package/dist/utils/bindKeypressInput.native.js.map +1 -1
  200. package/dist/utils/coerceToArray.mjs +2 -1
  201. package/dist/utils/coerceToArray.mjs.map +1 -1
  202. package/dist/utils/coerceToArray.native.js +2 -1
  203. package/dist/utils/coerceToArray.native.js.map +1 -1
  204. package/dist/utils/connectedNativeClients.mjs +3 -2
  205. package/dist/utils/connectedNativeClients.mjs.map +1 -1
  206. package/dist/utils/connectedNativeClients.native.js +3 -2
  207. package/dist/utils/connectedNativeClients.native.js.map +1 -1
  208. package/dist/utils/createNativeDevEngine.mjs +992 -966
  209. package/dist/utils/createNativeDevEngine.mjs.map +1 -1
  210. package/dist/utils/createNativeDevEngine.native.js +1184 -1179
  211. package/dist/utils/createNativeDevEngine.native.js.map +1 -1
  212. package/dist/utils/dispose.mjs +4 -3
  213. package/dist/utils/dispose.mjs.map +1 -1
  214. package/dist/utils/dispose.native.js +6 -5
  215. package/dist/utils/dispose.native.js.map +1 -1
  216. package/dist/utils/environmentUtils.mjs +5 -4
  217. package/dist/utils/environmentUtils.mjs.map +1 -1
  218. package/dist/utils/environmentUtils.native.js +5 -4
  219. package/dist/utils/environmentUtils.native.js.map +1 -1
  220. package/dist/utils/execSync.mjs +7 -5
  221. package/dist/utils/execSync.mjs.map +1 -1
  222. package/dist/utils/execSync.native.js +8 -6
  223. package/dist/utils/execSync.native.js.map +1 -1
  224. package/dist/utils/expoRun.mjs +27 -35
  225. package/dist/utils/expoRun.mjs.map +1 -1
  226. package/dist/utils/expoRun.native.js +27 -35
  227. package/dist/utils/expoRun.native.js.map +1 -1
  228. package/dist/utils/filterViteServerResolvedUrls.mjs +24 -22
  229. package/dist/utils/filterViteServerResolvedUrls.mjs.map +1 -1
  230. package/dist/utils/filterViteServerResolvedUrls.native.js +61 -63
  231. package/dist/utils/filterViteServerResolvedUrls.native.js.map +1 -1
  232. package/dist/utils/getBoundPort.mjs +6 -5
  233. package/dist/utils/getBoundPort.mjs.map +1 -1
  234. package/dist/utils/getBoundPort.native.js +8 -12
  235. package/dist/utils/getBoundPort.native.js.map +1 -1
  236. package/dist/utils/getCacheDir.mjs +3 -1
  237. package/dist/utils/getCacheDir.mjs.map +1 -1
  238. package/dist/utils/getCacheDir.native.js +3 -1
  239. package/dist/utils/getCacheDir.native.js.map +1 -1
  240. package/dist/utils/getServerEntry.mjs +6 -4
  241. package/dist/utils/getServerEntry.mjs.map +1 -1
  242. package/dist/utils/getServerEntry.native.js +8 -11
  243. package/dist/utils/getServerEntry.native.js.map +1 -1
  244. package/dist/utils/getVitePath.mjs +42 -42
  245. package/dist/utils/getVitePath.mjs.map +1 -1
  246. package/dist/utils/getVitePath.native.js +43 -41
  247. package/dist/utils/getVitePath.native.js.map +1 -1
  248. package/dist/utils/globDir.mjs +7 -11
  249. package/dist/utils/globDir.mjs.map +1 -1
  250. package/dist/utils/globDir.native.js +10 -14
  251. package/dist/utils/globDir.native.js.map +1 -1
  252. package/dist/utils/isWithin.mjs +4 -2
  253. package/dist/utils/isWithin.mjs.map +1 -1
  254. package/dist/utils/isWithin.native.js +4 -2
  255. package/dist/utils/isWithin.native.js.map +1 -1
  256. package/dist/utils/patches.mjs +233 -255
  257. package/dist/utils/patches.mjs.map +1 -1
  258. package/dist/utils/patches.native.js +415 -460
  259. package/dist/utils/patches.native.js.map +1 -1
  260. package/dist/utils/printServerUrls.mjs +9 -7
  261. package/dist/utils/printServerUrls.mjs.map +1 -1
  262. package/dist/utils/printServerUrls.native.js +48 -51
  263. package/dist/utils/printServerUrls.native.js.map +1 -1
  264. package/dist/utils/removeUndefined.mjs +8 -7
  265. package/dist/utils/removeUndefined.mjs.map +1 -1
  266. package/dist/utils/removeUndefined.native.js +8 -7
  267. package/dist/utils/removeUndefined.native.js.map +1 -1
  268. package/dist/utils/scanDepsToOptimize.mjs +194 -161
  269. package/dist/utils/scanDepsToOptimize.mjs.map +1 -1
  270. package/dist/utils/scanDepsToOptimize.native.js +227 -197
  271. package/dist/utils/scanDepsToOptimize.native.js.map +1 -1
  272. package/dist/utils/state.mjs +18 -18
  273. package/dist/utils/state.mjs.map +1 -1
  274. package/dist/utils/state.native.js +18 -18
  275. package/dist/utils/state.native.js.map +1 -1
  276. package/dist/utils/symbolicateNativeStack.mjs +54 -54
  277. package/dist/utils/symbolicateNativeStack.mjs.map +1 -1
  278. package/dist/utils/symbolicateNativeStack.native.js +58 -58
  279. package/dist/utils/symbolicateNativeStack.native.js.map +1 -1
  280. package/dist/utils/uniq.mjs +2 -1
  281. package/dist/utils/uniq.mjs.map +1 -1
  282. package/dist/utils/uniq.native.js +2 -1
  283. package/dist/utils/uniq.native.js.map +1 -1
  284. package/dist/utils/utils.mjs +19 -19
  285. package/dist/utils/utils.mjs.map +1 -1
  286. package/dist/utils/utils.native.js +38 -40
  287. package/dist/utils/utils.native.js.map +1 -1
  288. package/dist/vendor/debugger-app/index.mjs +0 -2
  289. package/dist/vendor/debugger-app/index.native.js +0 -2
  290. package/dist/vendor/debugger-app/src/debuggerWorker.mjs +0 -2
  291. package/dist/vendor/debugger-app/src/debuggerWorker.native.js +0 -2
  292. package/dist/vendor/debugger-app/src/index.mjs +0 -2
  293. package/dist/vendor/debugger-app/src/index.native.js +0 -2
  294. package/dist/vxrn-vite-plugin.mjs +34 -33
  295. package/dist/vxrn-vite-plugin.mjs.map +1 -1
  296. package/dist/vxrn-vite-plugin.native.js +35 -34
  297. package/dist/vxrn-vite-plugin.native.js.map +1 -1
  298. package/expo-plugin.cjs +12 -6
  299. package/package.json +12 -13
  300. package/src/config/getBaseViteConfigOnly.ts +6 -0
  301. package/src/exports/prebuild.ts +40 -12
  302. package/src/patches/builtInDepPatches.ts +24 -48
  303. package/src/utils/createNativeDevEngine.test.ts +1 -1
  304. package/src/utils/createNativeDevEngine.ts +15 -9
  305. package/src/utils/scanDepsToOptimize.ts +0 -3
  306. package/types/config/getBaseViteConfigOnly.d.ts.map +1 -1
  307. package/types/config/getOptimizeDeps.d.ts.map +1 -1
  308. package/types/config/getOptionsFilled.d.ts +15 -15
  309. package/types/config/getOptionsFilled.d.ts.map +1 -1
  310. package/types/exports/build.d.ts +11 -11
  311. package/types/exports/build.d.ts.map +1 -1
  312. package/types/exports/clean.d.ts +1 -1
  313. package/types/exports/clean.d.ts.map +1 -1
  314. package/types/exports/createServer.d.ts.map +1 -1
  315. package/types/exports/dev.d.ts.map +1 -1
  316. package/types/exports/patch.d.ts.map +1 -1
  317. package/types/exports/prebuild.d.ts +3 -3
  318. package/types/exports/prebuild.d.ts.map +1 -1
  319. package/types/exports/prebuildWithoutExpo.d.ts +1 -1
  320. package/types/exports/prebuildWithoutExpo.d.ts.map +1 -1
  321. package/types/exports/runAndroid.d.ts.map +1 -1
  322. package/types/exports/runIos.d.ts.map +1 -1
  323. package/types/exports/serve.d.ts.map +1 -1
  324. package/types/patches/builtInDepPatches.d.ts.map +1 -1
  325. package/types/plugins/autoDepOptimizePlugin.d.ts.map +1 -1
  326. package/types/plugins/rollupRemoveUnusedImports.d.ts.map +1 -1
  327. package/types/runtime/hmr-client.d.ts.map +1 -1
  328. package/types/runtime/hmr-runtime.d.ts.map +1 -1
  329. package/types/runtime/hmr-types.d.ts.map +1 -1
  330. package/types/utils/createNativeDevEngine.d.ts +1 -1
  331. package/types/utils/createNativeDevEngine.d.ts.map +1 -1
  332. package/types/utils/execSync.d.ts.map +1 -1
  333. package/types/utils/getServerEntry.d.ts.map +1 -1
  334. package/types/utils/scanDepsToOptimize.d.ts.map +1 -1
  335. package/types/vxrn-vite-plugin.d.ts.map +1 -1
  336. package/dist/config/getOptimizeDeps.test.mjs +0 -20
  337. package/dist/config/getOptimizeDeps.test.mjs.map +0 -1
  338. package/dist/config/getOptimizeDeps.test.native.js +0 -39
  339. package/dist/config/getOptimizeDeps.test.native.js.map +0 -1
  340. package/dist/config/getServerOptionsFilled.test.mjs +0 -20
  341. package/dist/config/getServerOptionsFilled.test.mjs.map +0 -1
  342. package/dist/config/getServerOptionsFilled.test.native.js +0 -20
  343. package/dist/config/getServerOptionsFilled.test.native.js.map +0 -1
  344. package/dist/config/getViteServerConfig.test.mjs +0 -26
  345. package/dist/config/getViteServerConfig.test.mjs.map +0 -1
  346. package/dist/config/getViteServerConfig.test.native.js +0 -26
  347. package/dist/config/getViteServerConfig.test.native.js.map +0 -1
  348. package/dist/config/mergeUserConfig.test.mjs +0 -108
  349. package/dist/config/mergeUserConfig.test.mjs.map +0 -1
  350. package/dist/config/mergeUserConfig.test.native.js +0 -108
  351. package/dist/config/mergeUserConfig.test.native.js.map +0 -1
  352. package/dist/exports/clean.test.mjs +0 -81
  353. package/dist/exports/clean.test.mjs.map +0 -1
  354. package/dist/exports/clean.test.native.js +0 -88
  355. package/dist/exports/clean.test.native.js.map +0 -1
  356. package/dist/exports/loadEnv.test.mjs +0 -65
  357. package/dist/exports/loadEnv.test.mjs.map +0 -1
  358. package/dist/exports/loadEnv.test.native.js +0 -65
  359. package/dist/exports/loadEnv.test.native.js.map +0 -1
  360. package/dist/index.js.map +0 -1
  361. package/dist/index.mjs.map +0 -1
  362. package/dist/index.native.js.map +0 -1
  363. package/dist/plugins/autoDepOptimizePlugin.test.mjs +0 -31
  364. package/dist/plugins/autoDepOptimizePlugin.test.mjs.map +0 -1
  365. package/dist/plugins/autoDepOptimizePlugin.test.native.js +0 -39
  366. package/dist/plugins/autoDepOptimizePlugin.test.native.js.map +0 -1
  367. package/dist/plugins/resolveIdScan.test.mjs +0 -31
  368. package/dist/plugins/resolveIdScan.test.mjs.map +0 -1
  369. package/dist/plugins/resolveIdScan.test.native.js +0 -38
  370. package/dist/plugins/resolveIdScan.test.native.js.map +0 -1
  371. package/dist/plugins/rnCodegenPlugin.test.mjs +0 -239
  372. package/dist/plugins/rnCodegenPlugin.test.mjs.map +0 -1
  373. package/dist/plugins/rnCodegenPlugin.test.native.js +0 -242
  374. package/dist/plugins/rnCodegenPlugin.test.native.js.map +0 -1
  375. package/dist/plugins/serverExtensions.test.mjs +0 -106
  376. package/dist/plugins/serverExtensions.test.mjs.map +0 -1
  377. package/dist/plugins/serverExtensions.test.native.js +0 -117
  378. package/dist/plugins/serverExtensions.test.native.js.map +0 -1
  379. package/dist/runtime/hmr-types.mjs.map +0 -1
  380. package/dist/runtime/hmr-types.native.js.map +0 -1
  381. package/dist/serve/node.test.mjs +0 -60
  382. package/dist/serve/node.test.mjs.map +0 -1
  383. package/dist/serve/node.test.native.js +0 -72
  384. package/dist/serve/node.test.native.js.map +0 -1
  385. package/dist/types.mjs.map +0 -1
  386. package/dist/types.native.js.map +0 -1
  387. package/dist/utils/bindKeypressInput.test.mjs +0 -48
  388. package/dist/utils/bindKeypressInput.test.mjs.map +0 -1
  389. package/dist/utils/bindKeypressInput.test.native.js +0 -48
  390. package/dist/utils/bindKeypressInput.test.native.js.map +0 -1
  391. package/dist/utils/createNativeDevEngine.test.mjs +0 -1788
  392. package/dist/utils/createNativeDevEngine.test.mjs.map +0 -1
  393. package/dist/utils/createNativeDevEngine.test.native.js +0 -1942
  394. package/dist/utils/createNativeDevEngine.test.native.js.map +0 -1
  395. package/dist/utils/createNativeDevEngineFailure.test.mjs +0 -44
  396. package/dist/utils/createNativeDevEngineFailure.test.mjs.map +0 -1
  397. package/dist/utils/createNativeDevEngineFailure.test.native.js +0 -54
  398. package/dist/utils/createNativeDevEngineFailure.test.native.js.map +0 -1
  399. package/dist/utils/getBoundPort.test.mjs +0 -71
  400. package/dist/utils/getBoundPort.test.mjs.map +0 -1
  401. package/dist/utils/getBoundPort.test.native.js +0 -82
  402. package/dist/utils/getBoundPort.test.native.js.map +0 -1
  403. package/dist/utils/imageSizePatch.test.mjs +0 -29
  404. package/dist/utils/imageSizePatch.test.mjs.map +0 -1
  405. package/dist/utils/imageSizePatch.test.native.js +0 -30
  406. package/dist/utils/imageSizePatch.test.native.js.map +0 -1
  407. package/dist/utils/patches.test.mjs +0 -242
  408. package/dist/utils/patches.test.mjs.map +0 -1
  409. package/dist/utils/patches.test.native.js +0 -271
  410. package/dist/utils/patches.test.native.js.map +0 -1
  411. package/dist/utils/symbolicateNativeStack.test.mjs +0 -96
  412. package/dist/utils/symbolicateNativeStack.test.mjs.map +0 -1
  413. package/dist/utils/symbolicateNativeStack.test.native.js +0 -96
  414. package/dist/utils/symbolicateNativeStack.test.native.js.map +0 -1
  415. package/dist/vendor/debugger-app/index.mjs.map +0 -1
  416. package/dist/vendor/debugger-app/index.native.js.map +0 -1
  417. package/dist/vendor/debugger-app/src/debuggerWorker.mjs.map +0 -1
  418. package/dist/vendor/debugger-app/src/debuggerWorker.native.js.map +0 -1
  419. package/dist/vendor/debugger-app/src/index.mjs.map +0 -1
  420. package/dist/vendor/debugger-app/src/index.native.js.map +0 -1
  421. package/types/config/getOptimizeDeps.test.d.ts +0 -2
  422. package/types/config/getOptimizeDeps.test.d.ts.map +0 -1
  423. package/types/config/getServerOptionsFilled.test.d.ts +0 -2
  424. package/types/config/getServerOptionsFilled.test.d.ts.map +0 -1
  425. package/types/config/getViteServerConfig.test.d.ts +0 -2
  426. package/types/config/getViteServerConfig.test.d.ts.map +0 -1
  427. package/types/config/mergeUserConfig.test.d.ts +0 -2
  428. package/types/config/mergeUserConfig.test.d.ts.map +0 -1
  429. package/types/exports/clean.test.d.ts +0 -2
  430. package/types/exports/clean.test.d.ts.map +0 -1
  431. package/types/exports/loadEnv.test.d.ts +0 -2
  432. package/types/exports/loadEnv.test.d.ts.map +0 -1
  433. package/types/plugins/autoDepOptimizePlugin.test.d.ts +0 -2
  434. package/types/plugins/autoDepOptimizePlugin.test.d.ts.map +0 -1
  435. package/types/plugins/resolveIdScan.test.d.ts +0 -2
  436. package/types/plugins/resolveIdScan.test.d.ts.map +0 -1
  437. package/types/plugins/rnCodegenPlugin.test.d.ts +0 -2
  438. package/types/plugins/rnCodegenPlugin.test.d.ts.map +0 -1
  439. package/types/plugins/serverExtensions.test.d.ts +0 -2
  440. package/types/plugins/serverExtensions.test.d.ts.map +0 -1
  441. package/types/serve/node.test.d.ts +0 -2
  442. package/types/serve/node.test.d.ts.map +0 -1
  443. package/types/utils/bindKeypressInput.test.d.ts +0 -2
  444. package/types/utils/bindKeypressInput.test.d.ts.map +0 -1
  445. package/types/utils/createNativeDevEngine.test.d.ts +0 -2
  446. package/types/utils/createNativeDevEngine.test.d.ts.map +0 -1
  447. package/types/utils/createNativeDevEngineFailure.test.d.ts +0 -2
  448. package/types/utils/createNativeDevEngineFailure.test.d.ts.map +0 -1
  449. package/types/utils/getBoundPort.test.d.ts +0 -2
  450. package/types/utils/getBoundPort.test.d.ts.map +0 -1
  451. package/types/utils/imageSizePatch.test.d.ts +0 -2
  452. package/types/utils/imageSizePatch.test.d.ts.map +0 -1
  453. package/types/utils/patches.test.d.ts +0 -2
  454. package/types/utils/patches.test.d.ts.map +0 -1
  455. package/types/utils/symbolicateNativeStack.test.d.ts +0 -2
  456. package/types/utils/symbolicateNativeStack.test.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["enqueueUpdate","isReactRefreshBoundary","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","o","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","create","_set_prototype_of","call","_type_of","p","p2","Symbol","result","Boolean","valueOf","_","BaseDevRuntime","DevRuntime","SimpleEmitter","SimpleEmitter1","Map","on","event","fn","listeners","has","set","Set","get","add","off","_this_listeners_get","delete","emit","payload","forEach","ModuleHotContext","ModuleHotContext1","moduleId","socketHolder","removeListeners","acceptCallbacks","globalThis","__ReactRefresh","accept","_len","arguments","Array","_key","push","deps","Error","invalidate","send","JSON","stringify","type","listener"],"sources":["../../src/runtime/hmr-runtime.ts"],"sourcesContent":[null],"mappings":"AAiBA,SAASA,aAAA,EAAeC,sBAAA,QAA8B;AAgBtD,SAAIC,wBAAiBA,CAAAC,IAAA;EAKrB,IAAMA,IAAA,UAAc;IACV,UAAYC,cAAA,4DAA+B;EAEnD;EACE,OAAKD,IAAA;AACL;AAAiC,SACnCE,YAAAC,KAAA,EAAAC,OAAA,EAAAC,IAAA;EAEAD,OAAI,GAAAE,iBAA6B,CAAAF,OAAA;EAC/B,OAAKG,4BAAsB,CAAOJ,KAAE,EAAAK,4BAAA,KAAAC,OAAA,C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S,IAAA,CAAO,YAAQ;QAGf,OAAOrF,KAAA,CAAA2E,YAAA,CAAAT,GAAA,CAAAR,KAAA,EAAAmC,QAAA;MACT;IACA;EACF,GAEA","ignoreList":[]}
1
+ {"version":3,"file":"hmr-runtime.native.js","names":[],"sources":["runtime/hmr-runtime.native.js"],"sourcesContent":["import { enqueueUpdate, isReactRefreshBoundary } from \"./react-refresh-utils\";\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o2) {\n return o2.__proto__ || Object.getPrototypeOf(o2);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o2, p2) {\n o2.__proto__ = p2;\n return o2;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch (_) {\n }\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nvar BaseDevRuntime = DevRuntime;\nvar SimpleEmitter = /* @__PURE__ */ (function() {\n \"use strict\";\n function SimpleEmitter1() {\n _class_call_check(this, SimpleEmitter1);\n _define_property(this, \"listeners\", /* @__PURE__ */ new Map());\n }\n _create_class(SimpleEmitter1, [\n {\n key: \"on\",\n value: function on(event, fn) {\n if (!this.listeners.has(event)) this.listeners.set(event, /* @__PURE__ */ new Set());\n this.listeners.get(event).add(fn);\n }\n },\n {\n key: \"off\",\n value: function off(event, fn) {\n var _this_listeners_get;\n (_this_listeners_get = this.listeners.get(event)) === null || _this_listeners_get === void 0 ? void 0 : _this_listeners_get.delete(fn);\n }\n },\n {\n key: \"emit\",\n value: function emit(event, payload) {\n var _this_listeners_get;\n (_this_listeners_get = this.listeners.get(event)) === null || _this_listeners_get === void 0 ? void 0 : _this_listeners_get.forEach(function(fn) {\n return fn(payload);\n });\n }\n }\n ]);\n return SimpleEmitter1;\n})();\nvar ModuleHotContext = /* @__PURE__ */ (function() {\n \"use strict\";\n function ModuleHotContext1(moduleId, socketHolder) {\n _class_call_check(this, ModuleHotContext1);\n _define_property(this, \"moduleId\", void 0);\n _define_property(this, \"socketHolder\", void 0);\n _define_property(this, \"removeListeners\", void 0);\n _define_property(this, \"acceptCallbacks\", void 0);\n this.moduleId = moduleId;\n this.socketHolder = socketHolder;\n this.removeListeners = [];\n this.acceptCallbacks = [];\n }\n _create_class(ModuleHotContext1, [\n {\n key: \"refresh\",\n get: function get() {\n return globalThis.__ReactRefresh;\n }\n },\n {\n key: \"refreshUtils\",\n get: function get() {\n return {\n isReactRefreshBoundary,\n enqueueUpdate\n };\n }\n },\n {\n key: \"accept\",\n value: function accept() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (args.length === 1) {\n this.acceptCallbacks.push({\n deps: [\n this.moduleId\n ],\n fn: args[0]\n });\n } else if (args.length === 0) {\n } else {\n throw new Error(\"Invalid arguments for `import.meta.hot.accept`\");\n }\n }\n },\n {\n key: \"invalidate\",\n value: function invalidate() {\n this.socketHolder.send(JSON.stringify({\n type: \"hmr:invalidate\",\n moduleId: this.moduleId\n }));\n }\n },\n {\n key: \"on\",\n value: function on(event, listener) {\n var _this = this;\n this.socketHolder.on(event, listener);\n this.removeListeners.push(function() {\n return _this.socketHolder.off(event, listener);\n });\n }\n },\n {\n key: \"off\",\n value: function off(event, listener) {\n this.socketHolder.off(event, listener);\n }\n },\n {\n key: \"send\",\n value: function send(type, payload) {\n this.socketHolder.send(JSON.stringify({\n type,\n payload\n }));\n }\n },\n {\n key: \"cleanup\",\n value: function cleanup() {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = this.removeListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var removeListener = _step.value;\n removeListener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n this.removeListeners.length = 0;\n }\n }\n ]);\n return ModuleHotContext1;\n})();\nvar SocketHolder = /* @__PURE__ */ (function() {\n \"use strict\";\n function SocketHolder1() {\n _class_call_check(this, SocketHolder1);\n _define_property(this, \"queuedMessages\", []);\n _define_property(this, \"emitter\", new SimpleEmitter());\n _define_property(this, \"_socket\", null);\n _define_property(this, \"_origin\", null);\n }\n _create_class(SocketHolder1, [\n {\n key: \"socket\",\n get: function get() {\n return this._socket;\n }\n },\n {\n key: \"origin\",\n get: function get() {\n return this._origin;\n }\n },\n {\n key: \"setup\",\n value: function setup(socket, origin) {\n var _this = this;\n this._socket = socket;\n this._origin = origin;\n if (socket.readyState !== WebSocket.OPEN) {\n socket.addEventListener(\"open\", function() {\n return _this.flushQueuedMessages();\n }, {\n once: true\n });\n } else {\n this.flushQueuedMessages();\n }\n }\n },\n {\n key: \"on\",\n value: function on(event, listener) {\n this.emitter.on(event, listener);\n }\n },\n {\n key: \"off\",\n value: function off(event, listener) {\n this.emitter.off(event, listener);\n }\n },\n {\n key: \"emit\",\n value: function emit(event, payload) {\n this.emitter.emit(event, payload);\n }\n },\n {\n key: \"send\",\n value: function send(message) {\n if (this._socket == null || this._socket.readyState !== WebSocket.OPEN) {\n this.queuedMessages.push(message);\n return;\n }\n this.flushQueuedMessages();\n this._socket.send(message);\n }\n },\n {\n key: \"flushQueuedMessages\",\n value: function flushQueuedMessages() {\n if (this._socket == null) return;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = this.queuedMessages[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var message = _step.value;\n this._socket.send(message);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n this.queuedMessages.length = 0;\n }\n },\n {\n key: \"close\",\n value: function close() {\n var _this__socket;\n (_this__socket = this._socket) === null || _this__socket === void 0 ? void 0 : _this__socket.close();\n }\n }\n ]);\n return SocketHolder1;\n})();\nvar ReactNativeDevRuntime = /* @__PURE__ */ (function(BaseDevRuntime1) {\n \"use strict\";\n _inherits(ReactNativeDevRuntime1, BaseDevRuntime1);\n function ReactNativeDevRuntime1() {\n _class_call_check(this, ReactNativeDevRuntime1);\n var _this;\n var socketHolder = new SocketHolder();\n var messenger = {\n send: function(message) {\n return socketHolder.send(JSON.stringify(message));\n }\n };\n var clientId = `rn-${Date.now()}-${Math.random().toString(36).slice(2)}`;\n _this = _call_super(this, ReactNativeDevRuntime1, [\n messenger,\n clientId\n ]), _define_property(_this, \"socketHolder\", void 0), _define_property(_this, \"moduleHotContexts\", /* @__PURE__ */ new Map()), _define_property(_this, \"moduleHotContextsToBeUpdated\", /* @__PURE__ */ new Map());\n _this.socketHolder = socketHolder;\n return _this;\n }\n _create_class(ReactNativeDevRuntime1, [\n {\n key: \"createModuleHotContext\",\n value: function createModuleHotContext(moduleId) {\n var hotContext = new ModuleHotContext(moduleId, this.socketHolder);\n if (this.moduleHotContexts.has(moduleId)) {\n this.moduleHotContextsToBeUpdated.set(moduleId, hotContext);\n } else {\n this.moduleHotContexts.set(moduleId, hotContext);\n }\n return hotContext;\n }\n },\n {\n key: \"applyUpdates\",\n value: function applyUpdates(boundaries) {\n var _this = this;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n var _this1, _loop = function() {\n var [moduleId] = _step.value;\n var hotContext = _this1.moduleHotContexts.get(moduleId);\n if (hotContext) {\n hotContext.acceptCallbacks.filter(function(cb) {\n cb.fn(_this.modules[moduleId].exports);\n });\n hotContext.cleanup();\n }\n };\n for (var _iterator = boundaries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _this1 = this, _loop();\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n this.moduleHotContextsToBeUpdated.forEach(function(hotContext, moduleId) {\n _this.moduleHotContexts.set(moduleId, hotContext);\n });\n this.moduleHotContextsToBeUpdated.clear();\n }\n },\n {\n key: \"setup\",\n value: function setup(socket, origin) {\n var _this = this;\n if (this.socketHolder.socket != null) {\n console.warn(\"[vxrn HMR]: runtime already setup\");\n return;\n }\n this.socketHolder.setup(socket, origin);\n socket.addEventListener(\"message\", function(event) {\n var message = JSON.parse(event.data);\n if (isCustomHMRMessage(message)) {\n var _globalThis___VXRN_CUSTOM_HMR_HANDLER__, _globalThis;\n _this.socketHolder.emit(message.type, message.payload);\n (_globalThis___VXRN_CUSTOM_HMR_HANDLER__ = (_globalThis = globalThis).__VXRN_CUSTOM_HMR_HANDLER__) === null || _globalThis___VXRN_CUSTOM_HMR_HANDLER__ === void 0 ? void 0 : _globalThis___VXRN_CUSTOM_HMR_HANDLER__.call(_globalThis, socket, message);\n return;\n }\n switch (message.type) {\n case \"hmr:update\":\n _this.evaluate(message.code);\n break;\n case \"hmr:reload\":\n _this.reload();\n break;\n }\n });\n }\n },\n {\n key: \"evaluate\",\n value: function evaluate(code, sourceURL) {\n if (globalThis.globalEvalWithSourceUrl) {\n globalThis.globalEvalWithSourceUrl(code, sourceURL);\n } else {\n eval(code);\n }\n }\n },\n {\n key: \"reload\",\n value: function reload() {\n var moduleName = \"DevSettings\";\n (globalThis.__turboModuleProxy ? globalThis.__turboModuleProxy(moduleName) : globalThis.nativeModuleProxy[moduleName]).reload();\n }\n }\n ]);\n return ReactNativeDevRuntime1;\n})(BaseDevRuntime);\nfunction isCustomHMRMessage(message) {\n if (typeof message !== \"object\" || message == null) return false;\n if (\"type\" in message && typeof message.type === \"string\" && message.type.startsWith(\"hmr:\")) {\n return false;\n }\n return true;\n}\nglobalThis.__rolldown_runtime__ = new ReactN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,sBAAsB"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=hmr-types.mjs.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=hmr-types.native.js.map
@@ -1,5 +1,5 @@
1
1
  function getNativePrelude(options) {
2
- return `
2
+ return `
3
3
  var __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();
4
4
 
5
5
  var global = typeof globalThis !== 'undefined' ? globalThis
@@ -97,5 +97,6 @@ var $RefreshSig$ = function() { return function(v) { return v; }; };
97
97
  ` : ""}
98
98
  `.trim();
99
99
  }
100
+
100
101
  export { getNativePrelude };
101
102
  //# sourceMappingURL=native-prelude.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["getNativePrelude","options","dev","JSON","stringify","platform","serverUrl","trim"],"sources":["native-prelude.mjs"],"sourcesContent":["function getNativePrelude(options) {\n\treturn `\nvar __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();\n\nvar global = typeof globalThis !== 'undefined' ? globalThis\n : typeof global !== 'undefined' ? global\n : typeof window !== 'undefined' ? window\n : this;\n\nglobalThis.global = global;\nglobalThis.__DEV__ = ${options.dev};\n\n// react native polyfills\nglobal.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__ = false;\nglobal.Event = global.Event || function() { return this; };\nglobal.dispatchEvent = global.dispatchEvent || function() {};\nglobal.window = global.window || global;\nglobal.self = global.self || global;\nglobal.navigator = global.navigator || { product: 'ReactNative', userAgent: '' };\nglobal.performance = global.performance || { now: function() { return Date.now(); } };\n\n// hermes can expose addEventListener without the matching removal API. browser\n// libraries use addEventListener as their capability check, then crash during\n// cleanup. keep the incomplete host API from advertising browser event support.\nif (typeof global.addEventListener === 'function' && typeof global.removeEventListener !== 'function') {\n global.addEventListener = undefined;\n}\n\n// ErrorUtils - used by RN's error handling system\nif (!global.ErrorUtils) {\n var _handler = null;\n global.ErrorUtils = {\n setGlobalHandler: function(h) { _handler = h; },\n getGlobalHandler: function() { return _handler; },\n reportFatalError: function(e) { if (_handler) _handler(e, true); else throw e; },\n reportError: function(e) { if (_handler) _handler(e, false); },\n applyWithGuard: function(fn, ctx, args) { try { return fn.apply(ctx, args); } catch(e) { this.reportError(e); } },\n };\n}\n\nif (typeof process === 'undefined') {\n globalThis.process = { env: {} };\n}\nprocess.env.NODE_ENV = ${JSON.stringify(options.dev ? \"development\" : \"production\")};\nprocess.env.EXPO_OS = ${JSON.stringify(options.platform)};\nprocess.env.TAMAGUI_TARGET = 'native';\n${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : \"\"}\n\n// polyfill setImmediate (used by react-native internals)\nif (typeof globalThis.setImmediate === 'undefined') {\n globalThis.setImmediate = function(fn) { return setTimeout(fn, 0); };\n globalThis.clearImmediate = function(id) { clearTimeout(id); };\n}\n\n// polyfill URLSearchParams early (before whatwg-fetch checks for it)\n// RN's polyfillGlobal sets this up later but some modules check at import time\nif (typeof globalThis.URLSearchParams === 'undefined') {\n // minimal URLSearchParams polyfill - will be overridden by RN's proper one\n globalThis.URLSearchParams = function URLSearchParams(init) {\n this._params = {};\n if (typeof init === 'string') {\n init.replace(/^\\\\?/, '').split('&').forEach(function(p) {\n var kv = p.split('=');\n if (kv[0]) this._params[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1] || '');\n }.bind(this));\n }\n };\n globalThis.URLSearchParams.prototype.get = function(k) { return this._params[k] || null; };\n globalThis.URLSearchParams.prototype.toString = function() {\n return Object.keys(this._params).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(this._params[k]); }.bind(this)).join('&');\n };\n}\n\n// ensure console exists before any library prelude touches it in release bundles\nglobalThis.console = globalThis.console || {};\nvar console = globalThis.console;\nconsole.log = console.log || function() {};\nconsole.info = console.info || function() {};\nconsole.warn = console.warn || function() {};\nconsole.error = console.error || function() {};\nconsole.debug = console.debug || function() {};\nconsole.trace = console.trace || function() {};\n\n// reanimated compat - these console methods must exist to avoid EXC_BAD_ACCESS crash\nconsole.assert = console.assert || function() {};\nconsole.clear = console.clear || function() {};\nconsole.dir = console.dir || function() {};\nconsole.dirxml = console.dirxml || function() {};\nconsole.profile = console.profile || function() {};\nconsole.profileEnd = console.profileEnd || function() {};\nconsole.table = console.table || function() {};\n\n// react refresh stubs (overridden by react-refresh plugin in dev)\n${options.dev ? `\nvar $RefreshReg$ = function() {};\nvar $RefreshSig$ = function() { return function(v) { return v; }; };\n` : \"\"}\n`.trim();\n}\n\nexport { getNativePrelude };"],"mappings":"AAAA,SAASA,gBAAgBA,CAACC,OAAO,EAAE;EAClC,OAAO;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuBA,OAAO,CAACC,GAAG;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyBC,IAAI,CAACC,SAAS,CAACH,OAAO,CAACC,GAAG,GAAG,aAAa,GAAG,YAAY,CAAC;AACnF,wBAAwBC,IAAI,CAACC,SAAS,CAACH,OAAO,CAACI,QAAQ,CAAC;AACxD;AACA,EAAEJ,OAAO,CAACK,SAAS,GAAG,gCAAgCH,IAAI,CAACC,SAAS,CAACH,OAAO,CAACK,SAAS,CAAC,GAAG,GAAG,EAAE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAEL,OAAO,CAACC,GAAG,GAAG;AAChB;AACA;AACA,CAAC,GAAG,EAAE;AACN,CAAC,CAACK,IAAI,CAAC,CAAC;AACR;AAEA,SAASP,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"native-prelude.js","names":[],"sources":["runtime/native-prelude.js"],"sourcesContent":["function getNativePrelude(options) {\n\treturn `\nvar __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();\n\nvar global = typeof globalThis !== 'undefined' ? globalThis\n : typeof global !== 'undefined' ? global\n : typeof window !== 'undefined' ? window\n : this;\n\nglobalThis.global = global;\nglobalThis.__DEV__ = ${options.dev};\n\n// react native polyfills\nglobal.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__ = false;\nglobal.Event = global.Event || function() { return this; };\nglobal.dispatchEvent = global.dispatchEvent || function() {};\nglobal.window = global.window || global;\nglobal.self = global.self || global;\nglobal.navigator = global.navigator || { product: 'ReactNative', userAgent: '' };\nglobal.performance = global.performance || { now: function() { return Date.now(); } };\n\n// hermes can expose addEventListener without the matching removal API. browser\n// libraries use addEventListener as their capability check, then crash during\n// cleanup. keep the incomplete host API from advertising browser event support.\nif (typeof global.addEventListener === 'function' && typeof global.removeEventListener !== 'function') {\n global.addEventListener = undefined;\n}\n\n// ErrorUtils - used by RN's error handling system\nif (!global.ErrorUtils) {\n var _handler = null;\n global.ErrorUtils = {\n setGlobalHandler: function(h) { _handler = h; },\n getGlobalHandler: function() { return _handler; },\n reportFatalError: function(e) { if (_handler) _handler(e, true); else throw e; },\n reportError: function(e) { if (_handler) _handler(e, false); },\n applyWithGuard: function(fn, ctx, args) { try { return fn.apply(ctx, args); } catch(e) { this.reportError(e); } },\n };\n}\n\nif (typeof process === 'undefined') {\n globalThis.process = { env: {} };\n}\nprocess.env.NODE_ENV = ${JSON.stringify(options.dev ? \"development\" : \"production\")};\nprocess.env.EXPO_OS = ${JSON.stringify(options.platform)};\nprocess.env.TAMAGUI_TARGET = 'native';\n${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : \"\"}\n\n// polyfill setImmediate (used by react-native internals)\nif (typeof globalThis.setImmediate === 'undefined') {\n globalThis.setImmediate = function(fn) { return setTimeout(fn, 0); };\n globalThis.clearImmediate = function(id) { clearTimeout(id); };\n}\n\n// polyfill URLSearchParams early (before whatwg-fetch checks for it)\n// RN's polyfillGlobal sets this up later but some modules check at import time\nif (typeof globalThis.URLSearchParams === 'undefined') {\n // minimal URLSearchParams polyfill - will be overridden by RN's proper one\n globalThis.URLSearchParams = function URLSearchParams(init) {\n this._params = {};\n if (typeof init === 'string') {\n init.replace(/^\\\\?/, '').split('&').forEach(function(p) {\n var kv = p.split('=');\n if (kv[0]) this._params[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1] || '');\n }.bind(this));\n }\n };\n globalThis.URLSearchParams.prototype.get = function(k) { return this._params[k] || null; };\n globalThis.URLSearchParams.prototype.toString = function() {\n return Object.keys(this._params).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(this._params[k]); }.bind(this)).join('&');\n };\n}\n\n// ensure console exists before any library prelude touches it in release bundles\nglobalThis.console = globalThis.console || {};\nvar console = globalThis.console;\nconsole.log = console.log || function() {};\nconsole.info = console.info || function() {};\nconsole.warn = console.warn || function() {};\nconsole.error = console.error || function() {};\nconsole.debug = console.debug || function() {};\nconsole.trace = console.trace || function() {};\n\n// reanimated compat - these console methods must exist to avoid EXC_BAD_ACCESS crash\nconsole.assert = console.assert || function() {};\nconsole.clear = console.clear || function() {};\nconsole.dir = console.dir || function() {};\nconsole.dirxml = console.dirxml || function() {};\nconsole.profile = console.profile || function() {};\nconsole.profileEnd = console.profileEnd || function() {};\nconsole.table = console.table || function() {};\n\n// react refresh stubs (overridden by react-refresh plugin in dev)\n${options.dev ? `\nvar $RefreshReg$ = function() {};\nvar $RefreshSig$ = function() { return function(v) { return v; }; };\n` : \"\"}\n`.trim();\n}\n\nexport { getNativePrelude };"],"mappings":";AAAA,SAAS,iBAAiB,SAAS;CAClC,OAAO;;;;;;;;;uBASe,QAAQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiCV,KAAK,UAAU,QAAQ,MAAM,gBAAgB,YAAY,EAAE;wBAC5D,KAAK,UAAU,QAAQ,QAAQ,EAAE;;EAEvD,QAAQ,YAAY,gCAAgC,KAAK,UAAU,QAAQ,SAAS,EAAE,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C9F,QAAQ,MAAM;;;IAGZ,GAAG;EACL,KAAK;AACP"}
@@ -1,5 +1,5 @@
1
1
  function getNativePrelude(options) {
2
- return `
2
+ return `
3
3
  var __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();
4
4
 
5
5
  var global = typeof globalThis !== 'undefined' ? globalThis
@@ -97,5 +97,6 @@ var $RefreshSig$ = function() { return function(v) { return v; }; };
97
97
  ` : ""}
98
98
  `.trim();
99
99
  }
100
+
100
101
  export { getNativePrelude };
101
102
  //# sourceMappingURL=native-prelude.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getNativePrelude","options","dev","JSON","stringify","platform","serverUrl","trim"],"sources":["native-prelude.native.js"],"sourcesContent":["function getNativePrelude(options) {\n\treturn `\nvar __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();\n\nvar global = typeof globalThis !== 'undefined' ? globalThis\n : typeof global !== 'undefined' ? global\n : typeof window !== 'undefined' ? window\n : this;\n\nglobalThis.global = global;\nglobalThis.__DEV__ = ${options.dev};\n\n// react native polyfills\nglobal.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__ = false;\nglobal.Event = global.Event || function() { return this; };\nglobal.dispatchEvent = global.dispatchEvent || function() {};\nglobal.window = global.window || global;\nglobal.self = global.self || global;\nglobal.navigator = global.navigator || { product: 'ReactNative', userAgent: '' };\nglobal.performance = global.performance || { now: function() { return Date.now(); } };\n\n// hermes can expose addEventListener without the matching removal API. browser\n// libraries use addEventListener as their capability check, then crash during\n// cleanup. keep the incomplete host API from advertising browser event support.\nif (typeof global.addEventListener === 'function' && typeof global.removeEventListener !== 'function') {\n global.addEventListener = undefined;\n}\n\n// ErrorUtils - used by RN's error handling system\nif (!global.ErrorUtils) {\n var _handler = null;\n global.ErrorUtils = {\n setGlobalHandler: function(h) { _handler = h; },\n getGlobalHandler: function() { return _handler; },\n reportFatalError: function(e) { if (_handler) _handler(e, true); else throw e; },\n reportError: function(e) { if (_handler) _handler(e, false); },\n applyWithGuard: function(fn, ctx, args) { try { return fn.apply(ctx, args); } catch(e) { this.reportError(e); } },\n };\n}\n\nif (typeof process === 'undefined') {\n globalThis.process = { env: {} };\n}\nprocess.env.NODE_ENV = ${JSON.stringify(options.dev ? \"development\" : \"production\")};\nprocess.env.EXPO_OS = ${JSON.stringify(options.platform)};\nprocess.env.TAMAGUI_TARGET = 'native';\n${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : \"\"}\n\n// polyfill setImmediate (used by react-native internals)\nif (typeof globalThis.setImmediate === 'undefined') {\n globalThis.setImmediate = function(fn) { return setTimeout(fn, 0); };\n globalThis.clearImmediate = function(id) { clearTimeout(id); };\n}\n\n// polyfill URLSearchParams early (before whatwg-fetch checks for it)\n// RN's polyfillGlobal sets this up later but some modules check at import time\nif (typeof globalThis.URLSearchParams === 'undefined') {\n // minimal URLSearchParams polyfill - will be overridden by RN's proper one\n globalThis.URLSearchParams = function URLSearchParams(init) {\n this._params = {};\n if (typeof init === 'string') {\n init.replace(/^\\\\?/, '').split('&').forEach(function(p) {\n var kv = p.split('=');\n if (kv[0]) this._params[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1] || '');\n }.bind(this));\n }\n };\n globalThis.URLSearchParams.prototype.get = function(k) { return this._params[k] || null; };\n globalThis.URLSearchParams.prototype.toString = function() {\n return Object.keys(this._params).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(this._params[k]); }.bind(this)).join('&');\n };\n}\n\n// ensure console exists before any library prelude touches it in release bundles\nglobalThis.console = globalThis.console || {};\nvar console = globalThis.console;\nconsole.log = console.log || function() {};\nconsole.info = console.info || function() {};\nconsole.warn = console.warn || function() {};\nconsole.error = console.error || function() {};\nconsole.debug = console.debug || function() {};\nconsole.trace = console.trace || function() {};\n\n// reanimated compat - these console methods must exist to avoid EXC_BAD_ACCESS crash\nconsole.assert = console.assert || function() {};\nconsole.clear = console.clear || function() {};\nconsole.dir = console.dir || function() {};\nconsole.dirxml = console.dirxml || function() {};\nconsole.profile = console.profile || function() {};\nconsole.profileEnd = console.profileEnd || function() {};\nconsole.table = console.table || function() {};\n\n// react refresh stubs (overridden by react-refresh plugin in dev)\n${options.dev ? `\nvar $RefreshReg$ = function() {};\nvar $RefreshSig$ = function() { return function(v) { return v; }; };\n` : \"\"}\n`.trim();\n}\n\nexport { getNativePrelude };"],"mappings":"AAAA,SAASA,gBAAgBA,CAACC,OAAO,EAAE;EAClC,OAAO;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuBA,OAAO,CAACC,GAAG;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyBC,IAAI,CAACC,SAAS,CAACH,OAAO,CAACC,GAAG,GAAG,aAAa,GAAG,YAAY,CAAC;AACnF,wBAAwBC,IAAI,CAACC,SAAS,CAACH,OAAO,CAACI,QAAQ,CAAC;AACxD;AACA,EAAEJ,OAAO,CAACK,SAAS,GAAG,gCAAgCH,IAAI,CAACC,SAAS,CAACH,OAAO,CAACK,SAAS,CAAC,GAAG,GAAG,EAAE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAEL,OAAO,CAACC,GAAG,GAAG;AAChB;AACA;AACA,CAAC,GAAG,EAAE;AACN,CAAC,CAACK,IAAI,CAAC,CAAC;AACR;AAEA,SAASP,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"native-prelude.native.js","names":[],"sources":["runtime/native-prelude.native.js"],"sourcesContent":["function getNativePrelude(options) {\n\treturn `\nvar __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();\n\nvar global = typeof globalThis !== 'undefined' ? globalThis\n : typeof global !== 'undefined' ? global\n : typeof window !== 'undefined' ? window\n : this;\n\nglobalThis.global = global;\nglobalThis.__DEV__ = ${options.dev};\n\n// react native polyfills\nglobal.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__ = false;\nglobal.Event = global.Event || function() { return this; };\nglobal.dispatchEvent = global.dispatchEvent || function() {};\nglobal.window = global.window || global;\nglobal.self = global.self || global;\nglobal.navigator = global.navigator || { product: 'ReactNative', userAgent: '' };\nglobal.performance = global.performance || { now: function() { return Date.now(); } };\n\n// hermes can expose addEventListener without the matching removal API. browser\n// libraries use addEventListener as their capability check, then crash during\n// cleanup. keep the incomplete host API from advertising browser event support.\nif (typeof global.addEventListener === 'function' && typeof global.removeEventListener !== 'function') {\n global.addEventListener = undefined;\n}\n\n// ErrorUtils - used by RN's error handling system\nif (!global.ErrorUtils) {\n var _handler = null;\n global.ErrorUtils = {\n setGlobalHandler: function(h) { _handler = h; },\n getGlobalHandler: function() { return _handler; },\n reportFatalError: function(e) { if (_handler) _handler(e, true); else throw e; },\n reportError: function(e) { if (_handler) _handler(e, false); },\n applyWithGuard: function(fn, ctx, args) { try { return fn.apply(ctx, args); } catch(e) { this.reportError(e); } },\n };\n}\n\nif (typeof process === 'undefined') {\n globalThis.process = { env: {} };\n}\nprocess.env.NODE_ENV = ${JSON.stringify(options.dev ? \"development\" : \"production\")};\nprocess.env.EXPO_OS = ${JSON.stringify(options.platform)};\nprocess.env.TAMAGUI_TARGET = 'native';\n${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : \"\"}\n\n// polyfill setImmediate (used by react-native internals)\nif (typeof globalThis.setImmediate === 'undefined') {\n globalThis.setImmediate = function(fn) { return setTimeout(fn, 0); };\n globalThis.clearImmediate = function(id) { clearTimeout(id); };\n}\n\n// polyfill URLSearchParams early (before whatwg-fetch checks for it)\n// RN's polyfillGlobal sets this up later but some modules check at import time\nif (typeof globalThis.URLSearchParams === 'undefined') {\n // minimal URLSearchParams polyfill - will be overridden by RN's proper one\n globalThis.URLSearchParams = function URLSearchParams(init) {\n this._params = {};\n if (typeof init === 'string') {\n init.replace(/^\\\\?/, '').split('&').forEach(function(p) {\n var kv = p.split('=');\n if (kv[0]) this._params[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1] || '');\n }.bind(this));\n }\n };\n globalThis.URLSearchParams.prototype.get = function(k) { return this._params[k] || null; };\n globalThis.URLSearchParams.prototype.toString = function() {\n return Object.keys(this._params).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(this._params[k]); }.bind(this)).join('&');\n };\n}\n\n// ensure console exists before any library prelude touches it in release bundles\nglobalThis.console = globalThis.console || {};\nvar console = globalThis.console;\nconsole.log = console.log || function() {};\nconsole.info = console.info || function() {};\nconsole.warn = console.warn || function() {};\nconsole.error = console.error || function() {};\nconsole.debug = console.debug || function() {};\nconsole.trace = console.trace || function() {};\n\n// reanimated compat - these console methods must exist to avoid EXC_BAD_ACCESS crash\nconsole.assert = console.assert || function() {};\nconsole.clear = console.clear || function() {};\nconsole.dir = console.dir || function() {};\nconsole.dirxml = console.dirxml || function() {};\nconsole.profile = console.profile || function() {};\nconsole.profileEnd = console.profileEnd || function() {};\nconsole.table = console.table || function() {};\n\n// react refresh stubs (overridden by react-refresh plugin in dev)\n${options.dev ? `\nvar $RefreshReg$ = function() {};\nvar $RefreshSig$ = function() { return function(v) { return v; }; };\n` : \"\"}\n`.trim();\n}\n\nexport { getNativePrelude };"],"mappings":";AAAA,SAAS,iBAAiB,SAAS;CAClC,OAAO;;;;;;;;;uBASe,QAAQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiCV,KAAK,UAAU,QAAQ,MAAM,gBAAgB,YAAY,EAAE;wBAC5D,KAAK,UAAU,QAAQ,QAAQ,EAAE;;EAEvD,QAAQ,YAAY,gCAAgC,KAAK,UAAU,QAAQ,SAAS,EAAE,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C9F,QAAQ,MAAM;;;IAGZ,GAAG;EACL,KAAK;AACP"}
@@ -1,29 +1,30 @@
1
1
  function isReactRefreshBoundary(moduleExports) {
2
- if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {
3
- return true;
4
- }
5
- if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== "object") {
6
- return false;
7
- }
8
- var hasExports = false;
9
- var areAllExportsComponents = true;
10
- for (var key in moduleExports) {
11
- hasExports = true;
12
- if (key === "__esModule") continue;
13
- var exportValue = moduleExports[key];
14
- if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {
15
- areAllExportsComponents = false;
16
- }
17
- }
18
- return hasExports && areAllExportsComponents;
2
+ if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {
3
+ return true;
4
+ }
5
+ if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== "object") {
6
+ return false;
7
+ }
8
+ var hasExports = false;
9
+ var areAllExportsComponents = true;
10
+ for (var key in moduleExports) {
11
+ hasExports = true;
12
+ if (key === "__esModule") continue;
13
+ var exportValue = moduleExports[key];
14
+ if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {
15
+ areAllExportsComponents = false;
16
+ }
17
+ }
18
+ return hasExports && areAllExportsComponents;
19
19
  }
20
20
  let timer = null;
21
21
  function enqueueUpdate() {
22
- if (timer) return;
23
- timer = setTimeout(() => {
24
- globalThis.__ReactRefresh.performReactRefresh();
25
- timer = null;
26
- }, 50);
22
+ if (timer) return;
23
+ timer = setTimeout(() => {
24
+ globalThis.__ReactRefresh.performReactRefresh();
25
+ timer = null;
26
+ }, 50);
27
27
  }
28
+
28
29
  export { enqueueUpdate, isReactRefreshBoundary };
29
30
  //# sourceMappingURL=react-refresh-utils.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["isReactRefreshBoundary","moduleExports","globalThis","__ReactRefresh","isLikelyComponentType","hasExports","areAllExportsComponents","key","exportValue","timer","enqueueUpdate","setTimeout","performReactRefresh"],"sources":["../../src/runtime/react-refresh-utils.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,uBAAuBC,aAAA,EAAwC;EAC7E,IAAIC,UAAA,CAAWC,cAAA,CAAeC,qBAAA,CAAsBH,aAAa,GAAG;IAClE,OAAO;EACT;EAEA,IACEA,aAAA,KAAkB,UAClBA,aAAA,KAAkB,QAClB,OAAOA,aAAA,KAAkB,UACzB;IACA,OAAO;EACT;EAEA,IAAII,UAAA,GAAa;EACjB,IAAIC,uBAAA,GAA0B;EAC9B,SAASC,GAAA,IAAON,aAAA,EAAe;IAC7BI,UAAA,GAAa;IACb,IAAIE,GAAA,KAAQ,cAAc;IAC1B,IAAIC,WAAA,GAAcP,aAAA,CAAcM,GAAG;IACnC,IAAI,CAACL,UAAA,CAAWC,cAAA,CAAeC,qBAAA,CAAsBI,WAAW,GAAG;MACjEF,uBAAA,GAA0B;IAC5B;EACF;EAEA,OAAOD,UAAA,IAAcC,uBAAA;AACvB;AAEA,IAAIG,KAAA,GAA8C;AAE3C,SAASC,cAAA,EAAgB;EAC9B,IAAID,KAAA,EAAO;EACXA,KAAA,GAAQE,UAAA,CAAW,MAAM;IACvBT,UAAA,CAAWC,cAAA,CAAeS,mBAAA,CAAoB;IAC9CH,KAAA,GAAQ;EACV,GAAG,EAAE;AACP","ignoreList":[]}
1
+ {"version":3,"file":"react-refresh-utils.js","names":[],"sources":["runtime/react-refresh-utils.js"],"sourcesContent":["function isReactRefreshBoundary(moduleExports) {\n if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {\n return true;\n }\n if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== \"object\") {\n return false;\n }\n var hasExports = false;\n var areAllExportsComponents = true;\n for (var key in moduleExports) {\n hasExports = true;\n if (key === \"__esModule\") continue;\n var exportValue = moduleExports[key];\n if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {\n areAllExportsComponents = false;\n }\n }\n return hasExports && areAllExportsComponents;\n}\nlet timer = null;\nfunction enqueueUpdate() {\n if (timer) return;\n timer = setTimeout(() => {\n globalThis.__ReactRefresh.performReactRefresh();\n timer = null;\n }, 50);\n}\nexport {\n enqueueUpdate,\n isReactRefreshBoundary\n};\n//# sourceMappingURL=react-refresh-utils.js.map\n"],"mappings":";AAAA,SAAS,uBAAuB,eAAe;CAC7C,IAAI,WAAW,eAAe,sBAAsB,aAAa,GAAG;EAClE,OAAO;CACT;CACA,IAAI,kBAAkB,KAAK,KAAK,kBAAkB,QAAQ,OAAO,kBAAkB,UAAU;EAC3F,OAAO;CACT;CACA,IAAI,aAAa;CACjB,IAAI,0BAA0B;CAC9B,KAAK,IAAI,OAAO,eAAe;EAC7B,aAAa;EACb,IAAI,QAAQ,cAAc;EAC1B,IAAI,cAAc,cAAc;EAChC,IAAI,CAAC,WAAW,eAAe,sBAAsB,WAAW,GAAG;GACjE,0BAA0B;EAC5B;CACF;CACA,OAAO,cAAc;AACvB;AACA,IAAI,QAAQ;AACZ,SAAS,gBAAgB;CACvB,IAAI,OAAO;CACX,QAAQ,iBAAiB;EACvB,WAAW,eAAe,oBAAoB;EAC9C,QAAQ;CACV,GAAG,EAAE;AACP"}
@@ -1,34 +1,30 @@
1
- function _type_of(obj) {
2
- "@swc/helpers - typeof";
3
-
4
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
- }
6
1
  function isReactRefreshBoundary(moduleExports) {
7
- if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {
8
- return true;
9
- }
10
- if (moduleExports === void 0 || moduleExports === null || (typeof moduleExports === "undefined" ? "undefined" : _type_of(moduleExports)) !== "object") {
11
- return false;
12
- }
13
- var hasExports = false;
14
- var areAllExportsComponents = true;
15
- for (var key in moduleExports) {
16
- hasExports = true;
17
- if (key === "__esModule") continue;
18
- var exportValue = moduleExports[key];
19
- if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {
20
- areAllExportsComponents = false;
21
- }
22
- }
23
- return hasExports && areAllExportsComponents;
2
+ if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {
3
+ return true;
4
+ }
5
+ if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== "object") {
6
+ return false;
7
+ }
8
+ var hasExports = false;
9
+ var areAllExportsComponents = true;
10
+ for (var key in moduleExports) {
11
+ hasExports = true;
12
+ if (key === "__esModule") continue;
13
+ var exportValue = moduleExports[key];
14
+ if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {
15
+ areAllExportsComponents = false;
16
+ }
17
+ }
18
+ return hasExports && areAllExportsComponents;
24
19
  }
25
20
  var timer = null;
26
21
  function enqueueUpdate() {
27
- if (timer) return;
28
- timer = setTimeout(function () {
29
- globalThis.__ReactRefresh.performReactRefresh();
30
- timer = null;
31
- }, 50);
22
+ if (timer) return;
23
+ timer = setTimeout(function() {
24
+ globalThis.__ReactRefresh.performReactRefresh();
25
+ timer = null;
26
+ }, 50);
32
27
  }
28
+
33
29
  export { enqueueUpdate, isReactRefreshBoundary };
34
30
  //# sourceMappingURL=react-refresh-utils.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_type_of","obj","Symbol","constructor","isReactRefreshBoundary","moduleExports","globalThis","__ReactRefresh","isLikelyComponentType","hasExports","areAllExportsComponents","key","exportValue","timer","enqueueUpdate","setTimeout"],"sources":["../../src/runtime/react-refresh-utils.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,SAAAC,GAAA;EACd,uBAAe;;EACb,OAAAA,GAAO,WAAAC,MAAA,oBAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAAA;AAGT,SACEG,sBAAkBA,CAAAC,aAClB;EAGA,IAAAC,UAAO,CAAAC,cAAA,CAAAC,qBAAA,CAAAH,aAAA;IACT;EAEA;EACA,IAAIA,aAAA,eAA0BA,aAAA,qBAAAA,aAAA,iCAAAL,QAAA,CAAAK,aAAA;IAC9B,OAAS;EACP;EACA,IAAAI,UAAY;EACZ,IAAAC,uBAAkB,OAAc;EAChC,SAAKC,GAAA,IAAAN,aAAW;IACdI,UAAA;IACF,IAAAE,GAAA;IACF,IAAAC,WAAA,GAAAP,aAAA,CAAAM,GAAA;IAEA,KAAOL,UAAA,CAAAC,cAAc,CAAAC,qBAAA,CAAAI,WAAA;MACvBF,uBAAA;IAEI;EAEG;EACL,OAAID,UAAO,IAAAC,uBAAA;AACX;AACE,IAAAG,KAAA,OAAW;AACX,SAAAC,aAAQA,CAAA;EACV,IAAGD,KAAE;EACPA,KAAA,GAAAE,UAAA","ignoreList":[]}
1
+ {"version":3,"file":"react-refresh-utils.native.js","names":[],"sources":["runtime/react-refresh-utils.native.js"],"sourcesContent":["function isReactRefreshBoundary(moduleExports) {\n if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {\n return true;\n }\n if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== \"object\") {\n return false;\n }\n var hasExports = false;\n var areAllExportsComponents = true;\n for (var key in moduleExports) {\n hasExports = true;\n if (key === \"__esModule\") continue;\n var exportValue = moduleExports[key];\n if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {\n areAllExportsComponents = false;\n }\n }\n return hasExports && areAllExportsComponents;\n}\nvar timer = null;\nfunction enqueueUpdate() {\n if (timer) return;\n timer = setTimeout(function() {\n globalThis.__ReactRefresh.performReactRefresh();\n timer = null;\n }, 50);\n}\nexport {\n enqueueUpdate,\n isReactRefreshBoundary\n};\n//# sourceMappingURL=react-refresh-utils.js.map\n"],"mappings":";AAAA,SAAS,uBAAuB,eAAe;CAC7C,IAAI,WAAW,eAAe,sBAAsB,aAAa,GAAG;EAClE,OAAO;CACT;CACA,IAAI,kBAAkB,KAAK,KAAK,kBAAkB,QAAQ,OAAO,kBAAkB,UAAU;EAC3F,OAAO;CACT;CACA,IAAI,aAAa;CACjB,IAAI,0BAA0B;CAC9B,KAAK,IAAI,OAAO,eAAe;EAC7B,aAAa;EACb,IAAI,QAAQ,cAAc;EAC1B,IAAI,cAAc,cAAc;EAChC,IAAI,CAAC,WAAW,eAAe,sBAAsB,WAAW,GAAG;GACjE,0BAA0B;EAC5B;CACF;CACA,OAAO,cAAc;AACvB;AACA,IAAI,QAAQ;AACZ,SAAS,gBAAgB;CACvB,IAAI,OAAO;CACX,QAAQ,WAAW,WAAW;EAC5B,WAAW,eAAe,oBAAoB;EAC9C,QAAQ;CACV,GAAG,EAAE;AACP"}
@@ -2,61 +2,61 @@ import { createServer } from "node:http";
2
2
  import { networkInterfaces, platform } from "node:os";
3
3
  import { getRequestListener } from "@hono/node-server";
4
4
  import colors from "picocolors";
5
+
5
6
  function getNetworkAddress() {
6
- for (const addresses of Object.values(networkInterfaces())) {
7
- for (const addr of addresses || []) {
8
- if (addr.family === "IPv4" && !addr.internal) {
9
- return addr.address;
10
- }
11
- }
12
- }
7
+ for (const addresses of Object.values(networkInterfaces())) {
8
+ for (const addr of addresses || []) {
9
+ if (addr.family === "IPv4" && !addr.internal) {
10
+ return addr.address;
11
+ }
12
+ }
13
+ }
13
14
  }
14
15
  const isBun = typeof process.versions.bun !== "undefined";
15
16
  const canReusePort = !["win32", "darwin"].includes(platform()) && (isBun || (() => {
16
- const [major, minor] = process.versions.node.split(".").map(Number);
17
- return major > 22 || major === 22 && minor >= 12 || major >= 23;
17
+ const [major, minor] = process.versions.node.split(".").map(Number);
18
+ return major > 22 || major === 22 && minor >= 12 || major >= 23;
18
19
  })());
19
20
  async function honoServeNode(app, options) {
20
- const port = options.port ?? 3e3;
21
- const host = options.host ?? "0.0.0.0";
22
- const listener = getRequestListener((request, env) => {
23
- request.headers.delete("x-vxrn-peer-address");
24
- const address = env.incoming.socket.remoteAddress;
25
- if (address) request.headers.set("x-vxrn-peer-address", address);
26
- return app.fetch(request, env);
27
- });
28
- const server = createServer(listener);
29
- server.listen({
30
- port,
31
- host,
32
- ...(canReusePort && process.env.ONE_CLUSTER_WORKER === "1" ? {
33
- reusePort: true
34
- } : {})
35
- });
36
- const colorUrl = url => colors.cyan(url.replace(/:(\d+)\//, (_, port2) => `:${colors.bold(port2)}/`));
37
- const displayHost = host === "0.0.0.0" ? "localhost" : host;
38
- const localUrl = `http://${displayHost}:${port}/`;
39
- console.info();
40
- console.info(` ${colors.green("\u279C")} ${colors.bold("Local")}: ${colorUrl(localUrl)}`);
41
- if (host === "0.0.0.0") {
42
- const networkHost = getNetworkAddress();
43
- if (networkHost) {
44
- const networkUrl = `http://${networkHost}:${port}/`;
45
- console.info(` ${colors.green("\u279C")} ${colors.bold("Network")}: ${colorUrl(networkUrl)}`);
46
- }
47
- }
48
- console.info();
49
- const shutdown = () => server.close();
50
- process.once("SIGINT", shutdown);
51
- process.once("SIGTERM", shutdown);
52
- await new Promise((res, rej) => {
53
- server.once("error", rej);
54
- server.on("close", () => {
55
- process.off("SIGINT", shutdown);
56
- process.off("SIGTERM", shutdown);
57
- res();
58
- });
59
- });
21
+ const port = options.port ?? 3e3;
22
+ const host = options.host ?? "0.0.0.0";
23
+ const listener = getRequestListener((request, env) => {
24
+ request.headers.delete("x-vxrn-peer-address");
25
+ const address = env.incoming.socket.remoteAddress;
26
+ if (address) request.headers.set("x-vxrn-peer-address", address);
27
+ return app.fetch(request, env);
28
+ });
29
+ const server = createServer(listener);
30
+ server.listen({
31
+ port,
32
+ host,
33
+ ...canReusePort && process.env.ONE_CLUSTER_WORKER === "1" ? { reusePort: true } : {}
34
+ });
35
+ const colorUrl = (url) => colors.cyan(url.replace(/:(\d+)\//, (_, port2) => `:${colors.bold(port2)}/`));
36
+ const displayHost = host === "0.0.0.0" ? "localhost" : host;
37
+ const localUrl = `http://${displayHost}:${port}/`;
38
+ console.info();
39
+ console.info(` ${colors.green("➜")} ${colors.bold("Local")}: ${colorUrl(localUrl)}`);
40
+ if (host === "0.0.0.0") {
41
+ const networkHost = getNetworkAddress();
42
+ if (networkHost) {
43
+ const networkUrl = `http://${networkHost}:${port}/`;
44
+ console.info(` ${colors.green("➜")} ${colors.bold("Network")}: ${colorUrl(networkUrl)}`);
45
+ }
46
+ }
47
+ console.info();
48
+ const shutdown = () => server.close();
49
+ process.once("SIGINT", shutdown);
50
+ process.once("SIGTERM", shutdown);
51
+ await new Promise((res, rej) => {
52
+ server.once("error", rej);
53
+ server.on("close", () => {
54
+ process.off("SIGINT", shutdown);
55
+ process.off("SIGTERM", shutdown);
56
+ res();
57
+ });
58
+ });
60
59
  }
60
+
61
61
  export { canReusePort, honoServeNode };
62
62
  //# sourceMappingURL=node.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["createServer","networkInterfaces","platform","getRequestListener","colors","getNetworkAddress","addresses","Object","values","addr","family","internal","address","isBun","process","versions","bun","canReusePort","includes","major","minor","node","split","map","Number","honoServeNode","app","options","port","host","listener","request","env","headers","delete","incoming","socket","remoteAddress","set","fetch","server","listen","ONE_CLUSTER_WORKER","reusePort","colorUrl","url","cyan","replace","_","port2","bold","displayHost","localUrl","console","info","green","networkHost","networkUrl","shutdown","close","once","Promise","res","rej","on","off"],"sources":["../../src/serve/node.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,YAAA,QAAoB;AAC7B,SAASC,iBAAA,EAAmBC,QAAA,QAAgB;AAC5C,SAASC,kBAAA,QAA0B;AAEnC,OAAOC,MAAA,MAAY;AAGnB,SAASC,kBAAA,EAAwC;EAC/C,WAAWC,SAAA,IAAaC,MAAA,CAAOC,MAAA,CAAOP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CvB,MAAA,CAAOoB,IAAA,CAAK,SAASG,GAAG;IACxBvB,MAAA,CAAOwB,EAAA,CAAG,SAAS,MAAM;MACvBlD,OAAA,CAAQmD,GAAA,CAAI,UAAUP,QAAQ;MAC9B5C,OAAA,CAAQmD,GAAA,CAAI,WAAWP,QAAQ;MAC/BI,GAAA,CAAI;IACN,CAAC;EACH,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"file":"node.js","names":[],"sources":["serve/node.js"],"sourcesContent":["import { createServer } from \"node:http\";\nimport { networkInterfaces, platform } from \"node:os\";\nimport { getRequestListener } from \"@hono/node-server\";\nimport colors from \"picocolors\";\nfunction getNetworkAddress() {\n for (const addresses of Object.values(networkInterfaces())) {\n for (const addr of addresses || []) {\n if (addr.family === \"IPv4\" && !addr.internal) {\n return addr.address;\n }\n }\n }\n}\nconst isBun = typeof process.versions.bun !== \"undefined\";\nconst canReusePort = ![\"win32\", \"darwin\"].includes(platform()) && (isBun || (() => {\n const [major, minor] = process.versions.node.split(\".\").map(Number);\n return major > 22 || major === 22 && minor >= 12 || major >= 23;\n})());\nasync function honoServeNode(app, options) {\n const port = options.port ?? 3e3;\n const host = options.host ?? \"0.0.0.0\";\n const listener = getRequestListener((request, env) => {\n request.headers.delete(\"x-vxrn-peer-address\");\n const address = env.incoming.socket.remoteAddress;\n if (address) request.headers.set(\"x-vxrn-peer-address\", address);\n return app.fetch(request, env);\n });\n const server = createServer(listener);\n server.listen({\n port,\n host,\n ...canReusePort && process.env.ONE_CLUSTER_WORKER === \"1\" ? { reusePort: true } : {}\n });\n const colorUrl = (url) => colors.cyan(url.replace(/:(\\d+)\\//, (_, port2) => `:${colors.bold(port2)}/`));\n const displayHost = host === \"0.0.0.0\" ? \"localhost\" : host;\n const localUrl = `http://${displayHost}:${port}/`;\n console.info();\n console.info(` ${colors.green(\"\\u279C\")} ${colors.bold(\"Local\")}: ${colorUrl(localUrl)}`);\n if (host === \"0.0.0.0\") {\n const networkHost = getNetworkAddress();\n if (networkHost) {\n const networkUrl = `http://${networkHost}:${port}/`;\n console.info(\n ` ${colors.green(\"\\u279C\")} ${colors.bold(\"Network\")}: ${colorUrl(networkUrl)}`\n );\n }\n }\n console.info();\n const shutdown = () => server.close();\n process.once(\"SIGINT\", shutdown);\n process.once(\"SIGTERM\", shutdown);\n await new Promise((res, rej) => {\n server.once(\"error\", rej);\n server.on(\"close\", () => {\n process.off(\"SIGINT\", shutdown);\n process.off(\"SIGTERM\", shutdown);\n res();\n });\n });\n}\nexport {\n canReusePort,\n honoServeNode\n};\n//# sourceMappingURL=node.js.map\n"],"mappings":";;;;;;AAIA,SAAS,oBAAoB;CAC3B,KAAK,MAAM,aAAa,OAAO,OAAO,kBAAkB,CAAC,GAAG;EAC1D,KAAK,MAAM,QAAQ,aAAa,CAAC,GAAG;GAClC,IAAI,KAAK,WAAW,UAAU,CAAC,KAAK,UAAU;IAC5C,OAAO,KAAK;GACd;EACF;CACF;AACF;AACA,MAAM,QAAQ,OAAO,QAAQ,SAAS,QAAQ;AAC9C,MAAM,eAAe,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,gBAAgB;CACjF,MAAM,CAAC,OAAO,SAAS,QAAQ,SAAS,KAAK,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM;CAClE,OAAO,QAAQ,MAAM,UAAU,MAAM,SAAS,MAAM,SAAS;AAC/D,EAAC,CAAE;AACH,eAAe,cAAc,KAAK,SAAS;CACzC,MAAM,OAAO,QAAQ,QAAQ;CAC7B,MAAM,OAAO,QAAQ,QAAQ;CAC7B,MAAM,WAAW,oBAAoB,SAAS,QAAQ;EACpD,QAAQ,QAAQ,OAAO,qBAAqB;EAC5C,MAAM,UAAU,IAAI,SAAS,OAAO;EACpC,IAAI,SAAS,QAAQ,QAAQ,IAAI,uBAAuB,OAAO;EAC/D,OAAO,IAAI,MAAM,SAAS,GAAG;CAC/B,CAAC;CACD,MAAM,SAAS,aAAa,QAAQ;CACpC,OAAO,O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