one 1.1.298 → 1.1.300

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/dist/cjs/cleanUrl.js +1 -1
  2. package/dist/cjs/cleanUrl.js.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +1 -1
  4. package/dist/cjs/cleanUrl.native.js.map +1 -1
  5. package/dist/cjs/cli/runAndroid.js +34 -0
  6. package/dist/cjs/cli/runAndroid.js.map +6 -0
  7. package/dist/cjs/cli/runAndroid.native.js +39 -0
  8. package/dist/cjs/cli/runAndroid.native.js.map +6 -0
  9. package/dist/cjs/cli/runIos.js +34 -0
  10. package/dist/cjs/cli/runIos.js.map +6 -0
  11. package/dist/cjs/cli/runIos.native.js +39 -0
  12. package/dist/cjs/cli/runIos.native.js.map +6 -0
  13. package/dist/cjs/cli.js +23 -1
  14. package/dist/cjs/cli.js.map +1 -1
  15. package/dist/cjs/cli.native.js +25 -1
  16. package/dist/cjs/cli.native.js.map +2 -2
  17. package/dist/cjs/createHandleRequest.js +2 -2
  18. package/dist/cjs/createHandleRequest.js.map +1 -1
  19. package/dist/cjs/createHandleRequest.native.js +2 -2
  20. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  21. package/dist/cjs/vite/createFileSystemRouter.js +1 -1
  22. package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
  23. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  24. package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
  25. package/dist/cjs/vite/replaceLoader.js +7 -1
  26. package/dist/cjs/vite/replaceLoader.js.map +1 -1
  27. package/dist/cjs/vite/replaceLoader.native.js +7 -1
  28. package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
  29. package/dist/esm/Root.native.js +110 -104
  30. package/dist/esm/Root.native.js.map +6 -1
  31. package/dist/esm/Route.native.js +12 -10
  32. package/dist/esm/Route.native.js.map +6 -1
  33. package/dist/esm/cleanUrl.js +1 -1
  34. package/dist/esm/cleanUrl.js.map +1 -1
  35. package/dist/esm/cleanUrl.mjs +1 -1
  36. package/dist/esm/cleanUrl.mjs.map +1 -1
  37. package/dist/esm/cleanUrl.native.js +13 -14
  38. package/dist/esm/cleanUrl.native.js.map +6 -1
  39. package/dist/esm/cli/label-process.native.js +5 -4
  40. package/dist/esm/cli/label-process.native.js.map +6 -1
  41. package/dist/esm/cli/main.native.js +8 -13
  42. package/dist/esm/cli/main.native.js.map +6 -1
  43. package/dist/esm/cli/prebuild.native.js +5 -5
  44. package/dist/esm/cli/prebuild.native.js.map +6 -1
  45. package/dist/esm/cli/run.native.js +21 -28
  46. package/dist/esm/cli/run.native.js.map +6 -1
  47. package/dist/esm/cli/runAndroid.js +10 -0
  48. package/dist/esm/cli/runAndroid.js.map +6 -0
  49. package/dist/esm/cli/runAndroid.mjs +10 -0
  50. package/dist/esm/cli/runAndroid.mjs.map +1 -0
  51. package/dist/esm/cli/runAndroid.native.js +10 -0
  52. package/dist/esm/cli/runAndroid.native.js.map +6 -0
  53. package/dist/esm/cli/runIos.js +10 -0
  54. package/dist/esm/cli/runIos.js.map +6 -0
  55. package/dist/esm/cli/runIos.mjs +10 -0
  56. package/dist/esm/cli/runIos.mjs.map +1 -0
  57. package/dist/esm/cli/runIos.native.js +10 -0
  58. package/dist/esm/cli/runIos.native.js.map +6 -0
  59. package/dist/esm/cli.js +23 -1
  60. package/dist/esm/cli.js.map +1 -1
  61. package/dist/esm/cli.mjs +33 -1
  62. package/dist/esm/cli.mjs.map +1 -1
  63. package/dist/esm/cli.native.js +143 -148
  64. package/dist/esm/cli.native.js.map +6 -1
  65. package/dist/esm/clientLoaderResolver.native.js +9 -6
  66. package/dist/esm/clientLoaderResolver.native.js.map +6 -1
  67. package/dist/esm/config.native.js +12 -11
  68. package/dist/esm/config.native.js.map +6 -1
  69. package/dist/esm/constants.native.js +7 -5
  70. package/dist/esm/constants.native.js.map +6 -1
  71. package/dist/esm/createApp.native.js +13 -9
  72. package/dist/esm/createApp.native.js.map +6 -1
  73. package/dist/esm/createHandleRequest.js +2 -2
  74. package/dist/esm/createHandleRequest.js.map +1 -1
  75. package/dist/esm/createHandleRequest.mjs +2 -2
  76. package/dist/esm/createHandleRequest.mjs.map +1 -1
  77. package/dist/esm/createHandleRequest.native.js +57 -66
  78. package/dist/esm/createHandleRequest.native.js.map +6 -1
  79. package/dist/esm/createRoute.native.js +16 -16
  80. package/dist/esm/createRoute.native.js.map +6 -1
  81. package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
  82. package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
  83. package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
  84. package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
  85. package/dist/esm/fork/NavigationContainer.native.js +24 -31
  86. package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
  87. package/dist/esm/fork/createMemoryHistory.native.js +99 -115
  88. package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
  89. package/dist/esm/fork/extractPathFromURL.native.js +16 -15
  90. package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
  91. package/dist/esm/fork/findFocusedRoute.native.js +6 -5
  92. package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
  93. package/dist/esm/fork/getPathFromState.native.js +127 -140
  94. package/dist/esm/fork/getPathFromState.native.js.map +6 -1
  95. package/dist/esm/fork/getStateFromPath.native.js +292 -288
  96. package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
  97. package/dist/esm/fork/useLinking.native.js +70 -61
  98. package/dist/esm/fork/useLinking.native.js.map +6 -1
  99. package/dist/esm/fork/validatePathConfig.native.js +15 -9
  100. package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
  101. package/dist/esm/getLinkingConfig.native.js +11 -6
  102. package/dist/esm/getLinkingConfig.native.js.map +6 -1
  103. package/dist/esm/getReactNavigationConfig.native.js +28 -20
  104. package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
  105. package/dist/esm/getRoutes.native.js +249 -229
  106. package/dist/esm/getRoutes.native.js.map +6 -1
  107. package/dist/esm/getURL.native.js +4 -4
  108. package/dist/esm/getURL.native.js.map +6 -1
  109. package/dist/esm/head/Head.android.js +5 -3
  110. package/dist/esm/head/Head.android.js.map +6 -1
  111. package/dist/esm/head/Head.ios.js +144 -132
  112. package/dist/esm/head/Head.ios.js.map +6 -1
  113. package/dist/esm/head/Head.native.js +7 -7
  114. package/dist/esm/head/Head.native.js.map +6 -1
  115. package/dist/esm/head/HeadModule.native.js +6 -6
  116. package/dist/esm/head/HeadModule.native.js.map +6 -1
  117. package/dist/esm/head/index.native.js +2 -2
  118. package/dist/esm/head/index.native.js.map +6 -1
  119. package/dist/esm/head/types.native.js +1 -2
  120. package/dist/esm/head/types.native.js.map +6 -1
  121. package/dist/esm/head/url.native.js +10 -8
  122. package/dist/esm/head/url.native.js.map +6 -1
  123. package/dist/esm/hooks.native.js +53 -34
  124. package/dist/esm/hooks.native.js.map +6 -1
  125. package/dist/esm/imperative-api.native.js +9 -6
  126. package/dist/esm/imperative-api.native.js.map +6 -1
  127. package/dist/esm/import-mode/index.android.js +4 -3
  128. package/dist/esm/import-mode/index.android.js.map +6 -1
  129. package/dist/esm/import-mode/index.ios.js +4 -3
  130. package/dist/esm/import-mode/index.ios.js.map +6 -1
  131. package/dist/esm/import-mode/index.native.js +3 -1
  132. package/dist/esm/import-mode/index.native.js.map +6 -1
  133. package/dist/esm/index.native.js +65 -27
  134. package/dist/esm/index.native.js.map +6 -1
  135. package/dist/esm/interfaces/router.native.js +4 -2
  136. package/dist/esm/interfaces/router.native.js.map +6 -1
  137. package/dist/esm/layouts/Drawer.native.js +7 -6
  138. package/dist/esm/layouts/Drawer.native.js.map +6 -1
  139. package/dist/esm/layouts/Stack.native.js +7 -6
  140. package/dist/esm/layouts/Stack.native.js.map +6 -1
  141. package/dist/esm/layouts/Tabs.native.js +42 -39
  142. package/dist/esm/layouts/Tabs.native.js.map +6 -1
  143. package/dist/esm/layouts/withLayoutContext.native.js +51 -48
  144. package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
  145. package/dist/esm/link/Link.native.js +62 -53
  146. package/dist/esm/link/Link.native.js.map +6 -1
  147. package/dist/esm/link/Redirect.native.js +8 -9
  148. package/dist/esm/link/Redirect.native.js.map +6 -1
  149. package/dist/esm/link/href.native.js +28 -27
  150. package/dist/esm/link/href.native.js.map +6 -1
  151. package/dist/esm/link/linking.native.js +51 -40
  152. package/dist/esm/link/linking.native.js.map +6 -1
  153. package/dist/esm/link/path.native.js +28 -19
  154. package/dist/esm/link/path.native.js.map +6 -1
  155. package/dist/esm/link/useLinkTo.native.js +22 -20
  156. package/dist/esm/link/useLinkTo.native.js.map +6 -1
  157. package/dist/esm/link/useLoadedNavigation.native.js +30 -23
  158. package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
  159. package/dist/esm/matchers.native.js +16 -3
  160. package/dist/esm/matchers.native.js.map +6 -1
  161. package/dist/esm/platform.native.js +4 -2
  162. package/dist/esm/platform.native.js.map +6 -1
  163. package/dist/esm/polyfills-mobile.native.js +4 -5
  164. package/dist/esm/polyfills-mobile.native.js.map +6 -1
  165. package/dist/esm/polyfills-server.native.js +1 -1
  166. package/dist/esm/polyfills-server.native.js.map +6 -1
  167. package/dist/esm/render.native.js +3 -1
  168. package/dist/esm/render.native.js.map +6 -1
  169. package/dist/esm/router/RouterStore.native.js +1 -2
  170. package/dist/esm/router/RouterStore.native.js.map +6 -1
  171. package/dist/esm/router/constants.native.js +4 -2
  172. package/dist/esm/router/constants.native.js.map +6 -1
  173. package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
  174. package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
  175. package/dist/esm/router/lastAction.native.js +10 -9
  176. package/dist/esm/router/lastAction.native.js.map +6 -1
  177. package/dist/esm/router/router.native.js +135 -114
  178. package/dist/esm/router/router.native.js.map +6 -1
  179. package/dist/esm/router/serverLocationContext.native.js +4 -2
  180. package/dist/esm/router/serverLocationContext.native.js.map +6 -1
  181. package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
  182. package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
  183. package/dist/esm/serve.native.js +77 -104
  184. package/dist/esm/serve.native.js.map +6 -1
  185. package/dist/esm/server/createRoutesManifest.native.js +14 -11
  186. package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
  187. package/dist/esm/server/getServerManifest.native.js +61 -67
  188. package/dist/esm/server/getServerManifest.native.js.map +6 -1
  189. package/dist/esm/server-render.native.js +9 -10
  190. package/dist/esm/server-render.native.js.map +6 -1
  191. package/dist/esm/sortRoutes.native.js +27 -17
  192. package/dist/esm/sortRoutes.native.js.map +6 -1
  193. package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
  194. package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
  195. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
  196. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
  197. package/dist/esm/types.native.js +1 -2
  198. package/dist/esm/types.native.js.map +6 -1
  199. package/dist/esm/useFocusEffect.native.js +25 -22
  200. package/dist/esm/useFocusEffect.native.js.map +6 -1
  201. package/dist/esm/useLoader.native.js +50 -50
  202. package/dist/esm/useLoader.native.js.map +6 -1
  203. package/dist/esm/useNavigation.native.js +23 -19
  204. package/dist/esm/useNavigation.native.js.map +6 -1
  205. package/dist/esm/useScreens.native.js +143 -160
  206. package/dist/esm/useScreens.native.js.map +6 -1
  207. package/dist/esm/useViteRoutes.native.js +25 -28
  208. package/dist/esm/useViteRoutes.native.js.map +6 -1
  209. package/dist/esm/utils/assertIsReady.native.js +6 -3
  210. package/dist/esm/utils/assertIsReady.native.js.map +6 -1
  211. package/dist/esm/utils/dynamicImport.native.js +5 -3
  212. package/dist/esm/utils/dynamicImport.native.js.map +6 -1
  213. package/dist/esm/utils/existsAsync.native.js +6 -4
  214. package/dist/esm/utils/existsAsync.native.js.map +6 -1
  215. package/dist/esm/utils/getPageExport.native.js +12 -11
  216. package/dist/esm/utils/getPageExport.native.js.map +6 -1
  217. package/dist/esm/utils/globDir.native.js +5 -3
  218. package/dist/esm/utils/globDir.native.js.map +6 -1
  219. package/dist/esm/utils/hashString.native.js +4 -2
  220. package/dist/esm/utils/hashString.native.js.map +6 -1
  221. package/dist/esm/utils/isResponse.native.js +4 -2
  222. package/dist/esm/utils/isResponse.native.js.map +6 -1
  223. package/dist/esm/utils/isStatus.native.js +4 -2
  224. package/dist/esm/utils/isStatus.native.js.map +6 -1
  225. package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
  226. package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
  227. package/dist/esm/utils/rand.native.js +5 -3
  228. package/dist/esm/utils/rand.native.js.map +6 -1
  229. package/dist/esm/utils/redirect.native.js +7 -5
  230. package/dist/esm/utils/redirect.native.js.map +6 -1
  231. package/dist/esm/utils/removeSearch.native.js +4 -2
  232. package/dist/esm/utils/removeSearch.native.js.map +6 -1
  233. package/dist/esm/utils/removeUndefined.native.js +6 -3
  234. package/dist/esm/utils/removeUndefined.native.js.map +6 -1
  235. package/dist/esm/utils/requireResolve.native.js +4 -2
  236. package/dist/esm/utils/requireResolve.native.js.map +6 -1
  237. package/dist/esm/utils/url.native.js +6 -2
  238. package/dist/esm/utils/url.native.js.map +6 -1
  239. package/dist/esm/utils/weakKey.native.js +11 -10
  240. package/dist/esm/utils/weakKey.native.js.map +6 -1
  241. package/dist/esm/utils/weakMemo.native.js +8 -8
  242. package/dist/esm/utils/weakMemo.native.js.map +6 -1
  243. package/dist/esm/views/EmptyRoute.native.js +5 -3
  244. package/dist/esm/views/EmptyRoute.native.js.map +6 -1
  245. package/dist/esm/views/ErrorBoundary.native.js +5 -8
  246. package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
  247. package/dist/esm/views/LoadProgressBar.native.js +58 -57
  248. package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
  249. package/dist/esm/views/Navigator.native.js +54 -71
  250. package/dist/esm/views/Navigator.native.js.map +6 -1
  251. package/dist/esm/views/PreloadLinks.native.js +3 -1
  252. package/dist/esm/views/PreloadLinks.native.js.map +6 -1
  253. package/dist/esm/views/RootErrorBoundary.native.js +39 -29
  254. package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
  255. package/dist/esm/views/Screen.native.js +12 -12
  256. package/dist/esm/views/Screen.native.js.map +6 -1
  257. package/dist/esm/views/ScrollRestoration.native.js +27 -27
  258. package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
  259. package/dist/esm/views/Try.native.js +40 -37
  260. package/dist/esm/views/Try.native.js.map +6 -1
  261. package/dist/esm/vite/build.native.js +260 -295
  262. package/dist/esm/vite/build.native.js.map +6 -1
  263. package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
  264. package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
  265. package/dist/esm/vite/constants.native.js +6 -4
  266. package/dist/esm/vite/constants.native.js.map +6 -1
  267. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  268. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  269. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  270. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  271. package/dist/esm/vite/createFileSystemRouter.native.js +100 -131
  272. package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
  273. package/dist/esm/vite/customNodeExternals.native.js +9 -10
  274. package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
  275. package/dist/esm/vite/ensureTsConfig.native.js +7 -5
  276. package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
  277. package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
  278. package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
  279. package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
  280. package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
  281. package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
  282. package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
  283. package/dist/esm/vite/getManifest.native.js +6 -4
  284. package/dist/esm/vite/getManifest.native.js.map +6 -1
  285. package/dist/esm/vite/headers.native.js +11 -5
  286. package/dist/esm/vite/headers.native.js.map +6 -1
  287. package/dist/esm/vite/loadEnv.native.js +7 -6
  288. package/dist/esm/vite/loadEnv.native.js.map +6 -1
  289. package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
  290. package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
  291. package/dist/esm/vite/one.native.js +142 -127
  292. package/dist/esm/vite/one.native.js.map +6 -1
  293. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
  294. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
  295. package/dist/esm/vite/replaceLoader.js +7 -1
  296. package/dist/esm/vite/replaceLoader.js.map +1 -1
  297. package/dist/esm/vite/replaceLoader.mjs +5 -1
  298. package/dist/esm/vite/replaceLoader.mjs.map +1 -1
  299. package/dist/esm/vite/replaceLoader.native.js +13 -10
  300. package/dist/esm/vite/replaceLoader.native.js.map +6 -1
  301. package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
  302. package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
  303. package/dist/esm/vite/server.native.js +5 -4
  304. package/dist/esm/vite/server.native.js.map +6 -1
  305. package/dist/esm/vite/types.native.js +1 -2
  306. package/dist/esm/vite/types.native.js.map +6 -1
  307. package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
  308. package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
  309. package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
  310. package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
  311. package/dist/esm/vite.native.js +19 -10
  312. package/dist/esm/vite.native.js.map +6 -1
  313. package/dist/esm/zero/getQueryKey.native.js +5 -3
  314. package/dist/esm/zero/getQueryKey.native.js.map +6 -1
  315. package/dist/esm/zero/isZeroQuery.native.js +4 -2
  316. package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
  317. package/dist/esm/zero/resolveQuery.native.js +9 -8
  318. package/dist/esm/zero/resolveQuery.native.js.map +6 -1
  319. package/dist/esm/zero/subscribeToQuery.native.js +5 -3
  320. package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
  321. package/dist/esm/zero/types.native.js +1 -2
  322. package/dist/esm/zero/types.native.js.map +6 -1
  323. package/dist/esm/zero/useQuery.native.js +12 -12
  324. package/dist/esm/zero/useQuery.native.js.map +6 -1
  325. package/dist/esm/zero/useQueryZero.native.js +24 -20
  326. package/dist/esm/zero/useQueryZero.native.js.map +6 -1
  327. package/dist/esm/zero.native.js +9 -5
  328. package/dist/esm/zero.native.js.map +6 -1
  329. package/package.json +7 -7
  330. package/src/cleanUrl.ts +1 -1
  331. package/src/cli/runAndroid.ts +6 -0
  332. package/src/cli/runIos.ts +6 -0
  333. package/src/cli.ts +27 -1
  334. package/src/createHandleRequest.ts +7 -0
  335. package/src/vite/createFileSystemRouter.tsx +1 -2
  336. package/src/vite/replaceLoader.ts +7 -1
  337. package/types/cli/runAndroid.d.ts +2 -0
  338. package/types/cli/runAndroid.d.ts.map +1 -0
  339. package/types/cli/runIos.d.ts +2 -0
  340. package/types/cli/runIos.d.ts.map +1 -0
  341. package/types/createHandleRequest.d.ts.map +1 -1
  342. package/types/vite/createFileSystemRouter.d.ts.map +1 -1
  343. package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1,14 +1,15 @@
1
- var getPageExport = function (exported) {
2
- return exported.default ||
3
- // because HMR fails with default exports, allow exporting something else
1
+ var getPageExport = function(exported) {
2
+ return exported.default || // because HMR fails with default exports, allow exporting something else
4
3
  // we just find the first non-loader export for now...
5
- function () {
6
- var keys = Object.keys(exported),
7
- nonLoader = keys.find(function (x) {
8
- return x !== "loader" && x[0].toUpperCase() === x[0];
9
- });
10
- if (nonLoader) return exported[nonLoader];
4
+ function() {
5
+ var keys = Object.keys(exported), nonLoader = keys.find(function(x) {
6
+ return x !== "loader" && x[0].toUpperCase() === x[0];
7
+ });
8
+ if (nonLoader)
9
+ return exported[nonLoader];
11
10
  }();
12
11
  };
13
- export { getPageExport };
14
- //# sourceMappingURL=getPageExport.native.js.map
12
+ export {
13
+ getPageExport
14
+ };
15
+ //# sourceMappingURL=getPageExport.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["getPageExport","exported","default","keys","Object","nonLoader","find","x","toUpperCase"],"sources":["../../../src/utils/getPageExport.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,aAAM,YAAAA,CAAiBC,QAE1B;EAAS,OAAAA,QAAA,CAAAC,OAAA;EAAA;EAGR;EAEC,YAAM;IACN,IAAIC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,QAAA;MAAAI,SAAA,GAAAF,IAAA,CAAAG,IAAA,WAAAC,CAAA;QACF,OAAOA,CAAA,aAAS,IAASA,CAAA,IAAAC,WAAA,OAAAD,CAAA;MAE1B","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/getPageExport.ts"],
4
+ "mappings": "AAAO,IAAMA,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA,GACnBI,YAAYF,KAAKG,KAAK,SAACC,GAAAA;aAAMA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;;AAC9E,QAAIF;AACF,aAAOJ,SAASI,SAAAA;EAEpB,EAAA;AAEJ;",
5
+ "names": ["getPageExport", "exported", "default", "keys", "Object", "nonLoader", "find", "x", "toUpperCase"]
6
+ }
@@ -2,12 +2,14 @@ import Glob from "fast-glob";
2
2
  function globDir(cwd) {
3
3
  return Glob.sync("**/*.@(ts|tsx|js|jsx)", {
4
4
  cwd
5
- }).map(function (p) {
5
+ }).map(function(p) {
6
6
  return "./" + normalizePaths(p);
7
7
  });
8
8
  }
9
9
  function normalizePaths(p) {
10
10
  return p.replace(/\\/g, "/");
11
11
  }
12
- export { globDir };
13
- //# sourceMappingURL=globDir.native.js.map
12
+ export {
13
+ globDir
14
+ };
15
+ //# sourceMappingURL=globDir.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["Glob","globDir","cwd","sync","map","p","normalizePaths"],"sources":["../../../src/utils/globDir.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,IAAA,MAAU;AAGV,SAASC,QAAQC,GAAA,EAAa;EACnC,OAAOF,IAAA,CAAKG,IAAA,CAAK,yBAAyB;IACxCD;EACF,CAAC,EAAEE,GAAA,CAAI,UAAOC,CAAA;IAChB,cAAAC,cAAA,CAAAD,CAAA;EAEA;AACE;AACF,SAAAC,eAAAD,CAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/globDir.ts"],
4
+ "mappings": "AAAA,OAAOA,UAAU;AAGV,SAASC,QAAQC,KAAW;AACjC,SAAOF,KAAKG,KAAK,yBAAyB;IACxCD;EACF,CAAA,EAAGE,IAAI,SAACC,GAAAA;WAAM,OAAOC,eAAeD,CAAAA;;AACtC;AAEA,SAASC,eAAeD,GAAS;AAC/B,SAAOA,EAAEE,QAAQ,OAAO,GAAA;AAC1B;",
5
+ "names": ["Glob", "globDir", "cwd", "sync", "map", "p", "normalizePaths", "replace"]
6
+ }
@@ -2,5 +2,7 @@ import xxh from "xxhashjs";
2
2
  function hashString(str) {
3
3
  return xxh.h64(0).update(str).digest().toString(36);
4
4
  }
5
- export { hashString };
6
- //# sourceMappingURL=hashString.native.js.map
5
+ export {
6
+ hashString
7
+ };
8
+ //# sourceMappingURL=hashString.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["xxh","hashString","str","h64","update","digest","toString"],"sources":["../../../src/utils/hashString.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,GAAA,MAAS;AAET,SAASC,WAAWC,GAAA,EAAqB;EAC9C,OAAOF,GAAA,CAAIG,GAAA,CAAI,CAAC,EAAEC,MAAA,CAAOF,GAAG,EAAEG,MAAA,CAAO,EAAEC,QAAA,CAAS,EAAE;AACpD","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/hashString.ts"],
4
+ "mappings": "AAAA,OAAOA,SAAS;AAET,SAASC,WAAWC,KAAW;AACpC,SAAOF,IAAIG,IAAI,CAAA,EAAGC,OAAOF,GAAAA,EAAKG,OAAM,EAAGC,SAAS,EAAA;AAClD;",
5
+ "names": ["xxh", "hashString", "str", "h64", "update", "digest", "toString"]
6
+ }
@@ -1,5 +1,7 @@
1
1
  function isResponse(res) {
2
2
  return res instanceof Response || typeof res.status == "number" && "body" in res && typeof res.ok == "boolean";
3
3
  }
4
- export { isResponse };
5
- //# sourceMappingURL=isResponse.native.js.map
4
+ export {
5
+ isResponse
6
+ };
7
+ //# sourceMappingURL=isResponse.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["isResponse","res","Response","status","ok"],"sources":["../../../src/utils/isResponse.ts"],"sourcesContent":[null],"mappings":"AACO,SAASA,WAAWC,GAAA,EAA2B;EACpD,OACEA,GAAA,YAAeC,QAAA,IACd,OAAOD,GAAA,CAAIE,MAAA,IAAW,YAAY,UAAUF,GAAA,IAAO,OAAOA,GAAA,CAAIG,EAAA,IAAO;AAE1E","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/isResponse.ts"],
4
+ "mappings": "AACO,SAASA,WAAWC,KAAQ;AACjC,SACEA,eAAeC,YACd,OAAOD,IAAIE,UAAW,YAAY,UAAUF,OAAO,OAAOA,IAAIG,MAAO;AAE1E;",
5
+ "names": ["isResponse", "res", "Response", "status", "ok"]
6
+ }
@@ -1,5 +1,7 @@
1
1
  function isStatusRedirect(status) {
2
2
  return status > 300 && status < 309;
3
3
  }
4
- export { isStatusRedirect };
5
- //# sourceMappingURL=isStatus.native.js.map
4
+ export {
5
+ isStatusRedirect
6
+ };
7
+ //# sourceMappingURL=isStatus.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["isStatusRedirect","status"],"sources":["../../../src/utils/isStatus.ts"],"sourcesContent":[null],"mappings":"AAEO,SAASA,iBAAiBC,MAAA,EAA8C;EAC7E,OAAOA,MAAA,GAAS,OAAOA,MAAA,GAAS;AAClC","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/isStatus.ts"],
4
+ "mappings": "AAEO,SAASA,iBAAiBC,QAAc;AAC7C,SAAOA,SAAS,OAAOA,SAAS;AAClC;",
5
+ "names": ["isStatusRedirect", "status"]
6
+ }
@@ -1,14 +1,14 @@
1
1
  function promiseWithResolvers() {
2
- var a,
3
- b,
4
- c = new Promise(function (resolve, reject) {
5
- a = resolve, b = reject;
6
- });
2
+ var a, b, c = new Promise(function(resolve, reject) {
3
+ a = resolve, b = reject;
4
+ });
7
5
  return {
8
6
  resolve: a,
9
7
  reject: b,
10
8
  promise: c
11
9
  };
12
10
  }
13
- export { promiseWithResolvers };
14
- //# sourceMappingURL=promiseWithResolvers.native.js.map
11
+ export {
12
+ promiseWithResolvers
13
+ };
14
+ //# sourceMappingURL=promiseWithResolvers.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["promiseWithResolvers","a","b","c","Promise","resolve","reject"],"sources":["../../../src/utils/promiseWithResolvers.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,qBAAA,EAA0B;EACxC,IAAIC,CAAA;IACAC,CAAA;IACAC,CAAA,GAAI,IAAIC,OAAA,CAAW,UAACC,OAAS,EAAAC,MAAW;MAC1CL,CAAA,GAAII,OAAA,EACJH,CAAA,GAAII,MAAA;IACN,CAAC;EACD,OAAO;IACTD,OAAA,EAAAJ,CAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/promiseWithResolvers.ts"],
4
+ "mappings": "AAAO,SAASA,uBAAAA;AACd,MAAIC,GACAC,GACAC,IAAI,IAAIC,QAAW,SAACC,SAASC,QAAAA;AAC/BL,QAAII,SACJH,IAAII;EACN,CAAA;AACA,SAAO;IAAED,SAASJ;IAAGK,QAAQJ;IAAGK,SAASJ;EAAE;AAC7C;",
5
+ "names": ["promiseWithResolvers", "a", "b", "c", "Promise", "resolve", "reject", "promise"]
6
+ }
@@ -1,5 +1,7 @@
1
- var rand = function () {
1
+ var rand = function() {
2
2
  return `${Math.round(Math.random() * 1e8)}`;
3
3
  };
4
- export { rand };
5
- //# sourceMappingURL=rand.native.js.map
4
+ export {
5
+ rand
6
+ };
7
+ //# sourceMappingURL=rand.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["rand"],"sources":["../../../src/utils/rand.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAAA,IAAM,YAAAA,CAAA,EAAgB","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/rand.ts"],
4
+ "mappings": "AAAO,IAAMA,OAAO,WAAA;SAAM,GAAGC,KAAKC,MAAMD,KAAKE,OAAM,IAAK,GAAA,CAAA;;",
5
+ "names": ["rand", "Math", "round", "random"]
6
+ }
@@ -1,11 +1,13 @@
1
- import { getURL } from "../getURL.native.js";
2
- import { router } from "../imperative-api.native.js";
3
- var redirect = function (path, status) {
1
+ import { getURL } from "../getURL";
2
+ import { router } from "../imperative-api";
3
+ var redirect = function(path, status) {
4
4
  if (process.env.VITE_ENVIRONMENT === "client") {
5
5
  router.navigate(path);
6
6
  return;
7
7
  }
8
8
  return Response.redirect(path[0] === "/" ? `${getURL()}${path}` : path, status);
9
9
  };
10
- export { redirect };
11
- //# sourceMappingURL=redirect.native.js.map
10
+ export {
11
+ redirect
12
+ };
13
+ //# sourceMappingURL=redirect.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["getURL","router","redirect","path","status","process","env","VITE_ENVIRONMENT","navigate","Response"],"sources":["../../../src/utils/redirect.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,MAAA,QAAc;AACvB,SAASC,MAAA,QAAc;AAEhB,IAAAC,QAAM,YAAAA,CAA0BC,IAAA,EAAAC,MAAoB;EACzD,IAAIC,OAAA,CAAQC,GAAA,CAAIC,gBAAA,KAAqB,UAAU;IAC7CN,MAAA,CAAOO,QAAA,CAASL,IAAI;IACpB;EACF;EAEA,OAAOM,QAAA,CAASP,QAAA,CAASC,IAAA,CAAK,CAAC,MAAM,MAAM,GAAGH,MAAA,CAAO,CAAC,GAAGG,IAAI,KAAKA,IAAA,EAAMC,MAAM;AAChF","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/redirect.ts"],
4
+ "mappings": "AAAA,SAASA,cAAc;AACvB,SAASC,cAAc;AAEhB,IAAMC,WAAW,SAACC,MAAcC,QAAAA;AACrC,MAAIC,QAAQC,IAAIC,qBAAqB,UAAU;AAC7CN,WAAOO,SAASL,IAAAA;AAChB;EACF;AAEA,SAAOM,SAASP,SAASC,KAAK,CAAA,MAAO,MAAM,GAAGH,OAAAA,CAAAA,GAAWG,IAAAA,KAASA,MAAMC,MAAAA;AAC1E;",
5
+ "names": ["getURL", "router", "redirect", "path", "status", "process", "env", "VITE_ENVIRONMENT", "navigate", "Response"]
6
+ }
@@ -1,5 +1,7 @@
1
1
  function removeSearch(url) {
2
2
  return url.replace(/\#.*/, "");
3
3
  }
4
- export { removeSearch };
5
- //# sourceMappingURL=removeSearch.native.js.map
4
+ export {
5
+ removeSearch
6
+ };
7
+ //# sourceMappingURL=removeSearch.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["removeSearch","url","replace"],"sources":["../../../src/utils/removeSearch.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,aAAaC,GAAA,EAAa;EACxC,OAAOA,GAAA,CAAIC,OAAA,CAAQ,QAAQ,EAAE;AAC/B","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/removeSearch.ts"],
4
+ "mappings": "AAAO,SAASA,aAAaC,KAAW;AACtC,SAAOA,IAAIC,QAAQ,QAAQ,EAAA;AAC7B;",
5
+ "names": ["removeSearch", "url", "replace"]
6
+ }
@@ -1,7 +1,10 @@
1
1
  function removeUndefined(obj) {
2
2
  var result = {};
3
- for (var key in obj) obj[key] !== void 0 && (result[key] = obj[key]);
3
+ for (var key in obj)
4
+ obj[key] !== void 0 && (result[key] = obj[key]);
4
5
  return result;
5
6
  }
6
- export { removeUndefined };
7
- //# sourceMappingURL=removeUndefined.native.js.map
7
+ export {
8
+ removeUndefined
9
+ };
10
+ //# sourceMappingURL=removeUndefined.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["removeUndefined","obj","result","key"],"sources":["../../../src/utils/removeUndefined.ts"],"sourcesContent":[null],"mappings":"AAIO,SAASA,gBAAkCC,GAAA,EAA4B;EAC5E,IAAAC,MAAM,KAAS;EAEf,SAAAC,GAAW,IAAAF,GAAO,EACZA,GAAA,CAAIE,GAAG,MAAM,WAEfD,MAAA,CAAOC,GAAG,IAAIF,GAAA,CAAIE,GAAG;EAIzB,OAAOD,MAAA;AACT","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/removeUndefined.ts"],
4
+ "mappings": "AAIO,SAASA,gBAAkCC,KAAM;AACtD,MAAMC,SAAS,CAAC;AAEhB,WAAWC,OAAOF;AAChB,IAAIA,IAAIE,GAAAA,MAASC,WAEfF,OAAOC,GAAAA,IAAOF,IAAIE,GAAAA;AAItB,SAAOD;AACT;",
5
+ "names": ["removeUndefined", "obj", "result", "key", "undefined"]
6
+ }
@@ -3,5 +3,7 @@ var require2 = createRequire(import.meta.url);
3
3
  function requireResolve(name) {
4
4
  return typeof import.meta.resolve > "u" ? require2.resolve(name) : import.meta.resolve(name).replace("file://", "");
5
5
  }
6
- export { requireResolve };
7
- //# sourceMappingURL=requireResolve.native.js.map
6
+ export {
7
+ requireResolve
8
+ };
9
+ //# sourceMappingURL=requireResolve.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["createRequire","require2","import","meta","url","requireResolve","name","resolve","replace"],"sources":["../../../src/utils/requireResolve.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAE9B,IAAAC,QAAM,GAAAD,aAAU,CAAAE,MAAc,CAAAC,IAAA,CAAAC,GAAY;AAEnC,SAASC,eAAeC,IAAA,EAAc;EAC3C,OAAI,OAAOJ,MAAA,CAAAC,IAAA,CAAYI,OAAA,GAAY,MAC1BN,QAAA,CAAQM,OAAA,CAAQD,IAAI,IAEtBJ,MAAA,CAAAC,IAAA,CAAYI,OAAA,CAAQD,IAAI,EAAEE,OAAA,CAAQ,WAAW,EAAE;AACxD","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/requireResolve.ts"],
4
+ "mappings": "AAAA,SAASA,qBAAqB;AAE9B,IAAMC,WAAUD,cAAc,YAAYE,GAAG;AAEtC,SAASC,eAAeC,MAAY;AACzC,SAAI,OAAO,YAAYC,UAAY,MAC1BJ,SAAQI,QAAQD,IAAAA,IAElB,YAAYC,QAAQD,IAAAA,EAAME,QAAQ,WAAW,EAAA;AACtD;",
5
+ "names": ["createRequire", "require", "url", "requireResolve", "name", "resolve", "replace"]
6
+ }
@@ -7,5 +7,9 @@ function isWellKnownUri(href) {
7
7
  function shouldLinkExternally(href) {
8
8
  return !/^[./]/.test(href) && (hasUrlProtocolPrefix(href) || isWellKnownUri(href));
9
9
  }
10
- export { hasUrlProtocolPrefix, isWellKnownUri, shouldLinkExternally };
11
- //# sourceMappingURL=url.native.js.map
10
+ export {
11
+ hasUrlProtocolPrefix,
12
+ isWellKnownUri,
13
+ shouldLinkExternally
14
+ };
15
+ //# sourceMappingURL=url.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["hasUrlProtocolPrefix","href","test","isWellKnownUri","shouldLinkExternally"],"sources":["../../../src/utils/url.ts"],"sourcesContent":[null],"mappings":"AAIO,SAASA,qBAAqBC,IAAA,EAAuB;EAC1D,OAAO,oBAAoBC,IAAA,CAAKD,IAAI;AACtC;AAEO,SAASE,eAAeF,IAAA,EAAuB;EAIpD,OAAO,0EAA0EC,IAAA,CAAKD,IAAI;AAC5F;AAEO,SAASG,qBAAqBH,IAAA,EAAuB;EAE1D,OAAO,CAAC,QAAQC,IAAA,CAAKD,IAAI,MAAMD,oBAAA,CAAqBC,IAAI,KAAKE,cAAA,CAAeF,IAAI;AAClF","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/url.ts"],
4
+ "mappings": "AAIO,SAASA,qBAAqBC,MAAY;AAC/C,SAAO,oBAAoBC,KAAKD,IAAAA;AAClC;AAEO,SAASE,eAAeF,MAAY;AAIzC,SAAO,0EAA0EC,KAAKD,IAAAA;AACxF;AAEO,SAASG,qBAAqBH,MAAY;AAE/C,SAAO,CAAC,QAAQC,KAAKD,IAAAA,MAAUD,qBAAqBC,IAAAA,KAASE,eAAeF,IAAAA;AAC9E;",
5
+ "names": ["hasUrlProtocolPrefix", "href", "test", "isWellKnownUri", "shouldLinkExternally"]
6
+ }
@@ -1,10 +1,11 @@
1
- var w = /* @__PURE__ */new WeakMap(),
2
- weakKey = function (item) {
3
- var _w_get;
4
- return (_w_get = w.get(item)) !== null && _w_get !== void 0 ? _w_get : function () {
5
- var k = `${Math.random()}`;
6
- return w.set(item, k), k;
7
- }();
8
- };
9
- export { weakKey };
10
- //# sourceMappingURL=weakKey.native.js.map
1
+ var w = /* @__PURE__ */ new WeakMap(), weakKey = function(item) {
2
+ var _w_get;
3
+ return (_w_get = w.get(item)) !== null && _w_get !== void 0 ? _w_get : function() {
4
+ var k = `${Math.random()}`;
5
+ return w.set(item, k), k;
6
+ }();
7
+ };
8
+ export {
9
+ weakKey
10
+ };
11
+ //# sourceMappingURL=weakKey.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["w","WeakMap","weakKey","item","_w_get","get","k","Math","random"],"sources":["../../../src/utils/weakKey.ts"],"sourcesContent":[null],"mappings":"AAAA,IAAAA,CAAA,GAAM,eAAI,IAAAC,OAAI;EAAqBC,OACtB,YAAAA,CAAWC,IAEpB,EAAE;IAEA,IAAAC,MAAU;IACV,QAAAA,MAAM,GAAAJ,CAAA,CAAMK,GAAC,CACNF,IAAA,eAAAC,MAAA,cAAAA,MAAA;MACN,IAAAE,CAAA,MAAAC,IAAA,CAAAC,MAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/weakKey.ts"],
4
+ "mappings": "AAAA,IAAMA,IAAI,oBAAIC,QAAAA,GACDC,UAAU,SAACC,MAAAA;MAEpBH;AADF,UACEA,SAAAA,EAAEI,IAAID,IAAAA,OAAAA,QAANH,WAAAA,SAAAA,SACC,WAAA;AACC,QAAMK,IAAI,GAAGC,KAAKC,OAAM,CAAA;AACxBP,aAAEQ,IAAIL,MAAME,CAAAA,GACLA;EACT,EAAA;AAEJ;",
5
+ "names": ["w", "WeakMap", "weakKey", "item", "get", "k", "Math", "random", "set"]
6
+ }
@@ -1,10 +1,7 @@
1
- var cache = /* @__PURE__ */new WeakMap();
1
+ var cache = /* @__PURE__ */ new WeakMap();
2
2
  function weakMemoObject(obj) {
3
3
  if (!cache.has(obj)) {
4
- var memoizedObj = {},
5
- _iteratorNormalCompletion = !0,
6
- _didIteratorError = !1,
7
- _iteratorError = void 0;
4
+ var memoizedObj = {}, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
8
5
  try {
9
6
  for (var _iterator = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
10
7
  var key = _step.value;
@@ -16,12 +13,15 @@ function weakMemoObject(obj) {
16
13
  try {
17
14
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
18
15
  } finally {
19
- if (_didIteratorError) throw _iteratorError;
16
+ if (_didIteratorError)
17
+ throw _iteratorError;
20
18
  }
21
19
  }
22
20
  cache.set(obj, memoizedObj);
23
21
  }
24
22
  return cache.get(obj);
25
23
  }
26
- export { weakMemoObject };
27
- //# sourceMappingURL=weakMemo.native.js.map
24
+ export {
25
+ weakMemoObject
26
+ };
27
+ //# sourceMappingURL=weakMemo.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["cache","WeakMap","weakMemoObject","obj","has","memoizedObj","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Object","keys","Symbol","iterator","_step","next","done","key","value","set","get","err"],"sources":["../../../src/utils/weakMemo.ts"],"sourcesContent":[null],"mappings":"AAAA,IAAAA,KAAM,kBAAQ,IAAAC,OAAI;AAEX,SAASC,eAAeC,GAAA,EAAU;EACvC,IAAI,CAACH,KAAA,CAAMI,GAAA,CAAID,GAAG,GAAG;IACnB,IAAAE,WAAM,KAAc;MAACC,yBAAA;MAAAC,iBAAA;MAAAC,cAAA;IACrB;MACO,SAAMC,SAAY,GAAAC,MACrB,CAAAC,IAAM,CAAIR,GAAA,CAAI,CAAAS,MAAM,CAAAC,QAAQ,CAE9B,IAAAC,KAAA,IAAYR,yBAAyB,IAAAQ,KAAA,GAAAL,SAAA,CAAAM,IAAA,IAAAC,IAAA,GAAAV,yBAAA;QAEvC,IAAMW,GAAI,GAAAH,KAAK,CAAAI,KAAA;QACjBlB,KAAA,CAAAI,GAAA,CAAAD,GAAA,CAAAc,GAAA,MAAAjB,KAAA,CAAAmB,GAAA,CAAAhB,GAAA,CAAAc,GAAA,GAAAd,GAAA,CAAAc,GAAA,IAAAZ,WAAA,CAAAY,GAAA,IAAAjB,KAAA,CAAAoB,GAAA,CAAAjB,GAAA,CAAAc,GAAA;MACA;IACF,SAAAI,GAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/weakMemo.ts"],
4
+ "mappings": "AAAA,IAAMA,QAAQ,oBAAIC,QAAAA;AAEX,SAASC,eAAeC,KAAQ;AACrC,MAAI,CAACH,MAAMI,IAAID,GAAAA,GAAM;AACnB,QAAME,cAAc,CAAC,GAChB,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,eAAK,YAAaC,OAAOC,KAAKJ,GAAAA,EAAAA,OAAAA,QAAAA,EAAAA,GAAzB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAA+B;AAA/B,YAAMK,MAAN,MAAA;AACH,QAAKR,MAAMI,IAAID,IAAIK,GAAAA,CAAI,KACrBR,MAAMS,IAAIN,IAAIK,GAAAA,GAAML,IAAIK,GAAAA,CAAI,GAE9BH,YAAYG,GAAAA,IAAOR,MAAMU,IAAIP,IAAIK,GAAAA,CAAI;MACvC;;AALK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;AAMLR,UAAMS,IAAIN,KAAKE,WAAAA;EACjB;AACA,SAAOL,MAAMU,IAAIP,GAAAA;AACnB;",
5
+ "names": ["cache", "WeakMap", "weakMemoObject", "obj", "has", "memoizedObj", "Object", "keys", "key", "set", "get"]
6
+ }
@@ -1,8 +1,10 @@
1
1
  import "react";
2
- import { useRouteNode } from "../Route.native.js";
2
+ import { useRouteNode } from "../Route";
3
3
  function EmptyRoute() {
4
4
  var route = useRouteNode();
5
5
  return null;
6
6
  }
7
- export { EmptyRoute };
8
- //# sourceMappingURL=EmptyRoute.native.js.map
7
+ export {
8
+ EmptyRoute
9
+ };
10
+ //# sourceMappingURL=EmptyRoute.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["useRouteNode","EmptyRoute","route"],"sources":["../../../src/views/EmptyRoute.tsx"],"sourcesContent":[null],"mappings":"AAEA,cAAS;AAIF,SAASA,YAAA,QAAa;AAC3B,SAAMC,UAAQA,CAAA;EAEd,IAAAC,KAAO,GAAAF,YAAA;EAQT","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/views/Users/n8/one/packages/one/src/views/EmptyRoute.tsx"],
4
+ "mappings": "AAAA,OAAkB;AAElB,SAASA,oBAAoB;AAItB,SAASC,aAAAA;AACd,MAAMC,QAAQF,aAAAA;AAEd,SAAO;AAQT;",
5
+ "names": ["useRouteNode", "EmptyRoute", "route"]
6
+ }
@@ -3,13 +3,10 @@ import React from "react";
3
3
  import { View } from "react-native";
4
4
  import { SafeAreaView } from "react-native-safe-area-context";
5
5
  function ErrorBoundary(param) {
6
- var {
7
- error,
8
- retry
9
- } = param,
10
- inTabBar = React.useContext(BottomTabBarHeightContext),
11
- Wrapper = inTabBar ? View : SafeAreaView;
6
+ var { error, retry } = param, inTabBar = React.useContext(BottomTabBarHeightContext), Wrapper = inTabBar ? View : SafeAreaView;
12
7
  return console.error("error", error), null;
13
8
  }
14
- export { ErrorBoundary };
15
- //# sourceMappingURL=ErrorBoundary.native.js.map
9
+ export {
10
+ ErrorBoundary
11
+ };
12
+ //# sourceMappingURL=ErrorBoundary.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["BottomTabBarHeightContext","React","View","SafeAreaView","ErrorBoundary","param","error","retry","inTabBar","useContext","Wrapper","console"],"sources":["../../../src/views/ErrorBoundary.tsx"],"sourcesContent":[null],"mappings":"AAGA,SAASA,yBAAA,QAAiC;AAC1C,OAAOC,KAAA,MAAW;AAClB,SAASC,IAAA,QAAY;AACrB,SAASC,YAAA,QAAoB;AAqCtB,SAASC,cAAcC,KAAE;EAG9B;MAAMC,KAAA;MAAAC;IADW,IAAMF,KAAA;IAAAG,QAAW,GAAAP,KAAA,CAAAQ,UAAA,CAAyBT,yBACzB;IAAAU,OAAA,GAAAF,QAAA,GAAAN,IAAA,GAAAC,YAAA;EAElC,OAAAQ,OAAA,CAAQL,KAAA,CAAM,SAASA,KAAK,GAErB;AAkDT","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/views/Users/n8/one/packages/one/src/views/ErrorBoundary.tsx"],
4
+ "mappings": "AAGA,SAASA,iCAAiC;AAC1C,OAAOC,WAAW;AAClB,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAqCtB,SAASC,cAAc,OAAoC;MAApC,EAAEC,OAAOC,MAAK,IAAd,OAEtBC,WAAWN,MAAMO,WAAWR,yBAAAA,GAC5BS,UAAUF,WAAWL,OAAOC;AAElCO,iBAAQL,MAAM,SAASA,KAAAA,GAEhB;AAkDT;",
5
+ "names": ["BottomTabBarHeightContext", "React", "View", "SafeAreaView", "ErrorBoundary", "error", "retry", "inTabBar", "useContext", "Wrapper", "console"]
6
+ }
@@ -1,69 +1,70 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import { View } from "react-native";
4
- import { router } from "../imperative-api.native.js";
5
- var LoadProgressBar = function (param) {
6
- var {
7
- startDelay = 500,
8
- finishDelay = 50,
9
- initialPercent = 20,
10
- updateInterval = 300,
11
- sporadicness = 3,
12
- ...props
13
- } = param,
14
- [loaded, setLoaded] = useState(0),
15
- [width, setWidth] = useState(0);
16
- return useEffect(function () {
17
- var loadInterval,
18
- dispose = router.onLoadState(function (state) {
19
- switch (clearTimeout(loadInterval), state) {
20
- case "loading":
21
- {
22
- loadInterval = setTimeout(function () {
23
- setLoaded(initialPercent);
24
- var intervalCount = 0;
25
- loadInterval = setInterval(function () {
26
- intervalCount++, intervalCount % sporadicness !== 0 && setLoaded(function (prev) {
27
- var increment = (100 - prev) * (prev > 80 ? 0.05 : 0.1) * Math.random();
28
- return Math.min(prev + increment, 100);
29
- });
30
- }, updateInterval);
31
- }, startDelay);
32
- break;
33
- }
34
- case "loaded":
35
- {
36
- setLoaded(100), clearInterval(loadInterval), setTimeout(function () {
37
- setLoaded(0);
38
- }, finishDelay);
39
- break;
40
- }
4
+ import { router } from "../imperative-api";
5
+ var LoadProgressBar = function(param) {
6
+ var { startDelay = 500, finishDelay = 50, initialPercent = 20, updateInterval = 300, sporadicness = 3, ...props } = param, [loaded, setLoaded] = useState(0), [width, setWidth] = useState(0);
7
+ return useEffect(function() {
8
+ var loadInterval, dispose = router.onLoadState(function(state) {
9
+ switch (clearTimeout(loadInterval), state) {
10
+ case "loading": {
11
+ loadInterval = setTimeout(function() {
12
+ setLoaded(initialPercent);
13
+ var intervalCount = 0;
14
+ loadInterval = setInterval(function() {
15
+ intervalCount++, intervalCount % sporadicness !== 0 && setLoaded(function(prev) {
16
+ var increment = (100 - prev) * (prev > 80 ? 0.05 : 0.1) * Math.random();
17
+ return Math.min(prev + increment, 100);
18
+ });
19
+ }, updateInterval);
20
+ }, startDelay);
21
+ break;
41
22
  }
42
- });
43
- return function () {
23
+ case "loaded": {
24
+ setLoaded(100), clearInterval(loadInterval), setTimeout(function() {
25
+ setLoaded(0);
26
+ }, finishDelay);
27
+ break;
28
+ }
29
+ }
30
+ });
31
+ return function() {
44
32
  dispose(), clearInterval(loadInterval);
45
33
  };
46
- }, [finishDelay, initialPercent, sporadicness, startDelay, updateInterval]), /* @__PURE__ */_jsx(View, {
34
+ }, [
35
+ finishDelay,
36
+ initialPercent,
37
+ sporadicness,
38
+ startDelay,
39
+ updateInterval
40
+ ]), /* @__PURE__ */ _jsx(View, {
47
41
  ...props,
48
- onLayout: function (e) {
42
+ onLayout: function(e) {
49
43
  var _props_onLayout;
50
44
  setWidth(e.nativeEvent.layout.width), (_props_onLayout = props.onLayout) === null || _props_onLayout === void 0 || _props_onLayout.call(props, e);
51
45
  },
52
- style: [{
53
- display: loaded === 0 ? "none" : "flex",
54
- height: 1,
55
- position: "absolute",
56
- top: 0,
57
- left: 0,
58
- right: 0,
59
- backgroundColor: "rgba(60, 100, 200, 0.65)",
60
- width: "100%",
61
- transform: [{
62
- translateX: -(1 - loaded * 0.01) * width
63
- }],
64
- zIndex: Number.MAX_SAFE_INTEGER
65
- }, props.style]
46
+ style: [
47
+ {
48
+ display: loaded === 0 ? "none" : "flex",
49
+ height: 1,
50
+ position: "absolute",
51
+ top: 0,
52
+ left: 0,
53
+ right: 0,
54
+ backgroundColor: "rgba(60, 100, 200, 0.65)",
55
+ width: "100%",
56
+ transform: [
57
+ {
58
+ translateX: -(1 - loaded * 0.01) * width
59
+ }
60
+ ],
61
+ zIndex: Number.MAX_SAFE_INTEGER
62
+ },
63
+ props.style
64
+ ]
66
65
  });
67
66
  };
68
- export { LoadProgressBar };
69
- //# sourceMappingURL=LoadProgressBar.native.js.map
67
+ export {
68
+ LoadProgressBar
69
+ };
70
+ //# sourceMappingURL=LoadProgressBar.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["jsx","_jsx","useEffect","useState","View","router","LoadProgressBar","param","startDelay","finishDelay","initialPercent","updateInterval","sporadicness","props","loaded","setLoaded","width","setWidth","loadInterval","dispose","onLoadState","state","clearTimeout","setTimeout","intervalCount","setInterval","prev","increment","Math","random","min","clearInterval","onLayout","e","_props_onLayout","nativeEvent","layout","call","style","display","height","position","top","left","right","backgroundColor","transform","translateX","zIndex","Number","MAX_SAFE_INTEGER"],"sources":["../../../src/views/LoadProgressBar.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAW,2BAAgB;AACpC,SAASC,SAAA,EAAAC,QAA4B;AACrC,SAASC,IAAA,sBAAc;AAgFnB,SAAAC,MAAA;AA3DG,IAAAC,eAAM,YAAAA,CAAmBC,KAAA;EAC9B;MAAAC,UAAa;MAAAC,WAAA;MAAAC,cAAA;MAAAC,cAAA;MAAAC,YAAA;MAAA,GAAAC;IAAA,IAAAN,KAAA;IAAA,CAAAO,MAAA,EAAAC,SAAA,IAAAZ,QAAA;IAAA,CAAAa,KAAA,EAAAC,QAAA,IAAAd,QAAA;EACb,OAAAD,SAAc;IACd,IAAAgB,YAAiB;MAAAC,OAAA,GAAAd,MAAA,CAAAe,WAAA,WAAAC,KAAA;QACjB,QAAAC,YAAiB,CAAAJ,YAAA,GAAAG,KAAA;UACjB,cAAe;YAAA;cACZH,YAAA,GAAAK,UAAA;gBACuBR,SAAA,CAAAL,cAAA;gBACnB,IAAAc,aAAiB,GAAI;gBAG5BN,YAAU,GAAMO,WAAA;kBACVD,aAAA,IAAAA,aAAA,GAAAZ,YAAA,UAAAG,SAAA,WAAAW,IAAA;oBAEE,IAAUC,SAAO,UAAYD,IAAC,KAAAA,IAAU,sBAAAE,IAAA,CAAAC,MAAA;oBAC5C,OAAAD,IAAa,CAAAE,GAAA,CAAAJ,IAAA,GAAYC,SAEjB,EAAO;kBACR;gBACH,GAAAhB,cAAe;cACb,GAAAH,UAAU;cAGV;YAEA;UAGE,aAFA;YAAA;cAOEO,SAAA,IAAM,GAAAgB,aAAa,CAAAb,YAAe,GAAAK,UAAY,aAAc;gBAC5DR,SAAA,EAAO;cAA8B,GAAAN,WACtC;cAAA;YACc;QAEnB;MAAA;IACF,OAEA,YAAK;MACHU,OAAA,IAAAY,aACA,CAAAb,YAAc;IAEZ;EAAW,IAEbT,WAAA,EAAAC,cACF,EAAAE,YACF,EACFJ,UAAC,EAEDG,cAAa,CACX,kBACAV,IAAA,CAAAG,IAAc;IAChB,GAAAS,KAAA;IACFmB,QAAI,WAAAA,CAAaC,CAAA;MAGd,IAAAC,eAAA;MAAAjB,QAAA,CAAAgB,CAAA,CAAAE,WAAA,CAAAC,MAAA,CAAApB,KAAA,IAAAkB,eAAA,GAAArB,KAAA,CAAAmB,QAAA,cAAAE,eAAA,eAAAA,eAAA,CAAAG,IAAA,CAAAxB,KAAA,EAAAoB,CAAA;IAAA;IACKK,KACJ,GACE;MAEFC,OAAA,EAAAzB,MAAA;MACA0B,MAAO;MACLC,QAAA;MAAAC,GACE;MAAiCC,IACjC;MAAQC,KACR;MAAUC,eACL;MAAA7B,KACL,QAAM;MAAA8B,SACC,GACP;QACAC,UAAO,QAAAjC,MAAA,WAAAE;MACP,EAAwD;MAE1DgC,MAAA,EAAAC,MAAA,CAAAC;IAAA,GAEFrC,KAAA,CAAAyB,KAAA;EACF;AAEJ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/views/Users/n8/one/packages/one/src/views/LoadProgressBar.tsx"],
4
+ "mappings": ";AAAA,SAASA,WAAWC,gBAAgB;AACpC,SAASC,YAA4B;AACrC,SAASC,cAAc;AAqBhB,IAAMC,kBAAkB,SAAA,OAAA;MAAC,EAC9BC,aAAa,KACbC,cAAc,IACdC,iBAAiB,IACjBC,iBAAiB,KACjBC,eAAe,GACf,GAAGC,MAAAA,IACkB,OACf,CAACC,QAAQC,SAAAA,IAAaX,SAAS,CAAA,GAC/B,CAACY,OAAOC,QAAAA,IAAYb,SAAS,CAAA;AAEnCD,mBAAU,WAAA;AACR,QAAIe,cAEEC,UAAUb,OAAOc,YAAY,SAACC,OAAAA;AAGlC,cAFAC,aAAaJ,YAAAA,GAELG,OAAAA;QACN,KAAK,WAAW;AACdH,yBAAeK,WAAW,WAAA;AACxBR,sBAAUL,cAAAA;AAGV,gBAAIc,gBAAgB;AAEpBN,2BAAeO,YAAY,WAAA;AAGzB,cAFAD,iBAEIA,gBAAgBZ,iBAAiB,KAIrCG,UAAU,SAACW,MAAAA;AACT,oBAAMC,aAAa,MAAMD,SAASA,OAAO,KAAK,OAAO,OAAOE,KAAKC,OAAM;AACvE,uBAAOD,KAAKE,IAAIJ,OAAOC,WAAW,GAAA;cACpC,CAAA;YACF,GAAGhB,cAAAA;UACL,GAAGH,UAAAA;AACH;QACF;QAEA,KAAK,UAAU;AACbO,oBAAU,GAAA,GACVgB,cAAcb,YAAAA,GACdK,WAAW,WAAA;AACTR,sBAAU,CAAA;UACZ,GAAGN,WAAAA;AACH;QACF;MACF;IACF,CAAA;AAEA,WAAO,WAAA;AACLU,cAAAA,GACAY,cAAcb,YAAAA;IAChB;EACF,GAAG;IAACT;IAAaC;IAAgBE;IAAcJ;IAAYG;GAAe,GAGxE,qBAACN,MAAAA;IACE,GAAGQ;IACJmB,UAAU,SAACC,GAAAA;UAETpB;AADAI,eAASgB,EAAEC,YAAYC,OAAOnB,KAAK,IACnCH,kBAAAA,MAAMmB,cAAQ,QAAdnB,oBAAAA,UAAAA,gBAAAA,KAAAA,OAAiBoB,CAAAA;IACnB;IACAG,OAAO;MACL;QACEC,SAASvB,WAAW,IAAI,SAAS;QACjCwB,QAAQ;QACRC,UAAU;QACVC,KAAK;QACLC,MAAM;QACNC,OAAO;QACPC,iBAAiB;QACjB3B,OAAO;QACP4B,WAAW;UAAC;YAAEC,YAAY,EAAE,IAAI/B,SAAS,QAAQE;UAAM;;QACvD8B,QAAQC,OAAOC;MACjB;MACAnC,MAAMuB;;;AAId;",
5
+ "names": ["useEffect", "useState", "View", "router", "LoadProgressBar", "startDelay", "finishDelay", "initialPercent", "updateInterval", "sporadicness", "props", "loaded", "setLoaded", "width", "setWidth", "loadInterval", "dispose", "onLoadState", "state", "clearTimeout", "setTimeout", "intervalCount", "setInterval", "prev", "increment", "Math", "random", "min", "clearInterval", "onLayout", "e", "nativeEvent", "layout", "style", "display", "height", "position", "top", "left", "right", "backgroundColor", "transform", "translateX", "zIndex", "Number", "MAX_SAFE_INTEGER"]
6
+ }