@shopify/hydrogen 0.12.0 → 0.13.2

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 (264) hide show
  1. package/CHANGELOG.md +331 -27
  2. package/dist/esnext/client.d.ts +2 -0
  3. package/dist/esnext/client.js +2 -0
  4. package/dist/esnext/components/CartLineProvider/context.d.ts +10 -10
  5. package/dist/esnext/components/CartProvider/CartProvider.client.d.ts +1 -1
  6. package/dist/esnext/components/CartProvider/CartProvider.client.js +2 -1
  7. package/dist/esnext/components/CartProvider/cart-queries.d.ts +9 -0
  8. package/dist/esnext/components/CartProvider/cart-queries.js +876 -0
  9. package/dist/esnext/components/CartProvider/graphql/CartAttributesUpdateMutation.d.ts +1 -1
  10. package/dist/esnext/components/CartProvider/graphql/CartBuyerIdentityUpdateMutation.d.ts +1 -1
  11. package/dist/esnext/components/CartProvider/graphql/CartCreateMutation.d.ts +1 -1
  12. package/dist/esnext/components/CartProvider/graphql/CartDiscountCodesUpdateMutation.d.ts +1 -1
  13. package/dist/esnext/components/CartProvider/graphql/CartFragment.d.ts +1 -1
  14. package/dist/esnext/components/CartProvider/graphql/CartLineAddMutation.d.ts +1 -1
  15. package/dist/esnext/components/CartProvider/graphql/CartLineRemoveMutation.d.ts +1 -1
  16. package/dist/esnext/components/CartProvider/graphql/CartLineUpdateMutation.d.ts +1 -1
  17. package/dist/esnext/components/CartProvider/graphql/CartNoteUpdateMutation.d.ts +1 -1
  18. package/dist/esnext/components/CartProvider/graphql/CartQuery.d.ts +1 -1
  19. package/dist/esnext/components/CartProvider/hooks.d.ts +1 -1
  20. package/dist/esnext/components/CartProvider/hooks.js +4 -1
  21. package/dist/esnext/components/CartProvider/types.d.ts +1 -1
  22. package/dist/esnext/components/ExternalVideo/ExternalVideo.d.ts +6 -5
  23. package/dist/esnext/components/ExternalVideo/ExternalVideo.js +5 -2
  24. package/dist/esnext/components/Image/Image.d.ts +14 -12
  25. package/dist/esnext/components/Image/Image.js +17 -14
  26. package/dist/esnext/components/Link/Link.client.d.ts +4 -5
  27. package/dist/esnext/components/Link/Link.client.js +5 -4
  28. package/dist/esnext/components/LocalizationProvider/LocalizationClientProvider.client.js +1 -3
  29. package/dist/esnext/components/LocalizationProvider/LocalizationContext.client.d.ts +0 -1
  30. package/dist/esnext/components/LocalizationProvider/LocalizationProvider.server.d.ts +2 -2
  31. package/dist/esnext/components/LocalizationProvider/LocalizationProvider.server.js +15 -4
  32. package/dist/esnext/components/LocalizationProvider/LocalizationQuery.d.ts +1 -8
  33. package/dist/esnext/components/LocalizationProvider/index.d.ts +0 -1
  34. package/dist/esnext/components/LocalizationProvider/index.js +0 -1
  35. package/dist/esnext/components/MediaFile/MediaFile.d.ts +4 -3
  36. package/dist/esnext/components/Metafield/Metafield.client.d.ts +2 -2
  37. package/dist/esnext/components/Metafield/Metafield.client.js +8 -5
  38. package/dist/esnext/components/Metafield/types.d.ts +1 -1
  39. package/dist/esnext/components/ModelViewer/ModelViewer.client.d.ts +57 -56
  40. package/dist/esnext/components/ModelViewer/ModelViewer.client.js +10 -4
  41. package/dist/esnext/components/Money/Money.client.d.ts +5 -4
  42. package/dist/esnext/components/Money/Money.client.js +1 -1
  43. package/dist/esnext/components/ProductDescription/ProductDescription.client.d.ts +9 -4
  44. package/dist/esnext/components/ProductDescription/ProductDescription.client.js +4 -3
  45. package/dist/esnext/components/ProductMetafield/ProductMetafield.client.js +3 -3
  46. package/dist/esnext/components/ProductPrice/ProductPrice.client.js +2 -2
  47. package/dist/esnext/components/ProductProvider/ProductProvider.client.d.ts +3 -2
  48. package/dist/esnext/components/ProductProvider/ProductProvider.client.js +1 -0
  49. package/dist/esnext/components/ProductProvider/context.d.ts +23 -14
  50. package/dist/esnext/components/Seo/CollectionSeo.client.d.ts +3 -2
  51. package/dist/esnext/components/Seo/CollectionSeo.client.js +2 -2
  52. package/dist/esnext/components/Seo/DefaultPageSeo.client.d.ts +3 -2
  53. package/dist/esnext/components/Seo/DescriptionSeo.client.d.ts +2 -2
  54. package/dist/esnext/components/Seo/HomePageSeo.client.d.ts +1 -1
  55. package/dist/esnext/components/Seo/ImageSeo.client.d.ts +3 -2
  56. package/dist/esnext/components/Seo/ImageSeo.client.js +1 -1
  57. package/dist/esnext/components/Seo/PageSeo.client.d.ts +3 -2
  58. package/dist/esnext/components/Seo/ProductSeo.client.d.ts +3 -3
  59. package/dist/esnext/components/Seo/ProductSeo.client.js +10 -5
  60. package/dist/esnext/components/Seo/Seo.client.d.ts +10 -7
  61. package/dist/esnext/components/Seo/TitleSeo.client.d.ts +3 -4
  62. package/dist/esnext/components/Seo/TwitterSeo.client.d.ts +1 -1
  63. package/dist/esnext/components/Seo/seo-types.d.ts +17 -0
  64. package/dist/esnext/components/{ExternalVideo/ExternalVideoFragment.js → Seo/seo-types.js} +0 -0
  65. package/dist/esnext/components/UnitPrice/UnitPrice.client.d.ts +7 -6
  66. package/dist/esnext/components/UnitPrice/UnitPrice.client.js +1 -1
  67. package/dist/esnext/components/Video/Video.d.ts +5 -4
  68. package/dist/esnext/components/Video/Video.js +10 -2
  69. package/dist/esnext/components/index.d.ts +0 -3
  70. package/dist/esnext/components/index.js +0 -3
  71. package/dist/esnext/entry-client.js +9 -4
  72. package/dist/esnext/entry-server.d.ts +1 -0
  73. package/dist/esnext/entry-server.js +101 -88
  74. package/dist/esnext/foundation/FileRoutes/FileRoutes.server.d.ts +22 -0
  75. package/dist/esnext/foundation/{Router/FileRoutes.js → FileRoutes/FileRoutes.server.js} +20 -10
  76. package/dist/esnext/foundation/Redirect/Redirect.client.d.ts +5 -0
  77. package/dist/esnext/foundation/Redirect/Redirect.client.js +14 -0
  78. package/dist/esnext/foundation/Route/Route.server.d.ts +12 -0
  79. package/dist/esnext/foundation/Route/Route.server.js +33 -0
  80. package/dist/esnext/foundation/Router/{Router.d.ts → BrowserRouter.client.d.ts} +3 -2
  81. package/dist/esnext/foundation/Router/{Router.js → BrowserRouter.client.js} +7 -5
  82. package/dist/esnext/foundation/Router/Router.server.d.ts +5 -3
  83. package/dist/esnext/foundation/Router/Router.server.js +7 -22
  84. package/dist/esnext/foundation/ServerRequestProvider/ServerRequestProvider.js +19 -24
  85. package/dist/esnext/foundation/ShopifyProvider/index.d.ts +0 -1
  86. package/dist/esnext/foundation/ShopifyProvider/index.js +0 -1
  87. package/dist/esnext/foundation/index.d.ts +0 -1
  88. package/dist/esnext/foundation/index.js +0 -1
  89. package/dist/esnext/{hooks → foundation}/useNavigate/useNavigate.d.ts +6 -3
  90. package/dist/esnext/{hooks → foundation}/useNavigate/useNavigate.js +4 -1
  91. package/dist/esnext/foundation/useQuery/hooks.d.ts +5 -4
  92. package/dist/esnext/foundation/useQuery/hooks.js +13 -4
  93. package/dist/esnext/foundation/useRouteParams/RouteParamsProvider.client.d.ts +9 -0
  94. package/dist/esnext/foundation/useRouteParams/RouteParamsProvider.client.js +7 -0
  95. package/dist/esnext/foundation/useRouteParams/useRouteParams.d.ts +4 -0
  96. package/dist/esnext/foundation/useRouteParams/useRouteParams.js +9 -0
  97. package/dist/esnext/foundation/useUrl/useUrl.js +1 -1
  98. package/dist/esnext/framework/Hydration/ServerComponentRequest.server.d.ts +13 -0
  99. package/dist/esnext/framework/Hydration/ServerComponentRequest.server.js +28 -7
  100. package/dist/esnext/framework/Hydration/ServerComponentResponse.server.d.ts +4 -1
  101. package/dist/esnext/framework/Hydration/ServerComponentResponse.server.js +5 -0
  102. package/dist/esnext/framework/cache/in-memory.d.ts +1 -0
  103. package/dist/esnext/framework/cache/in-memory.js +15 -5
  104. package/dist/esnext/framework/middleware.js +25 -3
  105. package/dist/esnext/framework/plugin.js +6 -1
  106. package/dist/esnext/framework/plugins/vite-plugin-css-modules-rsc.d.ts +2 -0
  107. package/dist/esnext/framework/plugins/vite-plugin-css-modules-rsc.js +28 -0
  108. package/dist/esnext/framework/plugins/vite-plugin-hydrogen-config.js +61 -75
  109. package/dist/esnext/framework/plugins/vite-plugin-platform-entry.js +1 -1
  110. package/dist/esnext/hooks/index.d.ts +0 -1
  111. package/dist/esnext/hooks/index.js +0 -1
  112. package/dist/esnext/hooks/useCartLine/useCartLine.d.ts +10 -10
  113. package/dist/esnext/hooks/useCountry/useCountry.d.ts +4 -4
  114. package/dist/esnext/hooks/useMoney/hooks.d.ts +3 -3
  115. package/dist/esnext/hooks/useMoney/hooks.js +2 -2
  116. package/dist/esnext/hooks/useParsedMetafields/useParsedMetafields.d.ts +17 -2
  117. package/dist/esnext/hooks/useParsedMetafields/useParsedMetafields.js +7 -3
  118. package/dist/esnext/hooks/useProduct/useProduct.d.ts +34 -96
  119. package/dist/esnext/hooks/useProductOptions/helpers.d.ts +6 -4
  120. package/dist/esnext/hooks/useProductOptions/helpers.js +13 -6
  121. package/dist/esnext/hooks/useProductOptions/types.d.ts +15 -35
  122. package/dist/esnext/hooks/useProductOptions/useProductOptions.d.ts +6 -5
  123. package/dist/esnext/hooks/useProductOptions/useProductOptions.js +13 -3
  124. package/dist/esnext/hooks/useShopQuery/hooks.js +68 -15
  125. package/dist/esnext/index.d.ts +7 -5
  126. package/dist/esnext/index.js +7 -5
  127. package/dist/esnext/platforms/node.d.ts +2 -3
  128. package/dist/esnext/platforms/node.js +5 -3
  129. package/dist/esnext/platforms/worker-event.d.ts +0 -8
  130. package/dist/esnext/platforms/worker-event.js +2 -23
  131. package/dist/esnext/platforms/worker.d.ts +14 -0
  132. package/dist/esnext/platforms/worker.js +25 -0
  133. package/dist/esnext/{graphql/types/types.d.ts → storefront-api-types.d.ts} +389 -32
  134. package/dist/esnext/{graphql/types/types.js → storefront-api-types.js} +326 -30
  135. package/dist/esnext/streaming.server.d.ts +9 -5
  136. package/dist/esnext/streaming.server.js +2 -18
  137. package/dist/esnext/types.d.ts +1 -16
  138. package/dist/esnext/utilities/apiRoutes.d.ts +5 -1
  139. package/dist/esnext/utilities/apiRoutes.js +5 -4
  140. package/dist/esnext/utilities/devtools.d.ts +11 -0
  141. package/dist/esnext/utilities/devtools.js +11 -0
  142. package/dist/esnext/utilities/fetch.d.ts +7 -1
  143. package/dist/esnext/utilities/fetch.js +9 -10
  144. package/dist/esnext/utilities/flattenConnection/flattenConnection.d.ts +3 -2
  145. package/dist/esnext/utilities/flattenConnection/flattenConnection.js +6 -2
  146. package/dist/esnext/utilities/graphql-tracker.d.ts +17 -0
  147. package/dist/esnext/utilities/graphql-tracker.js +119 -0
  148. package/dist/esnext/utilities/image_size.d.ts +5 -4
  149. package/dist/esnext/utilities/log/log-query-timeline.d.ts +1 -1
  150. package/dist/esnext/utilities/log/log-query-timeline.js +1 -2
  151. package/dist/esnext/utilities/log/log.d.ts +1 -0
  152. package/dist/esnext/utilities/log/utils.js +3 -0
  153. package/dist/esnext/utilities/parseMetafieldValue/parseMetafieldValue.d.ts +3 -2
  154. package/dist/esnext/version.d.ts +1 -1
  155. package/dist/esnext/version.js +1 -1
  156. package/dist/node/entry-server.d.ts +1 -0
  157. package/dist/node/entry-server.js +106 -89
  158. package/dist/node/foundation/Redirect/Redirect.client.d.ts +5 -0
  159. package/dist/node/foundation/Redirect/Redirect.client.js +17 -0
  160. package/dist/node/foundation/Router/BrowserRouter.client.d.ts +13 -0
  161. package/dist/node/foundation/Router/BrowserRouter.client.js +77 -0
  162. package/dist/node/foundation/ServerRequestProvider/ServerRequestProvider.js +24 -25
  163. package/dist/node/foundation/ServerRequestProvider/index.js +5 -1
  164. package/dist/node/foundation/ServerStateProvider/ServerStateProvider.js +5 -1
  165. package/dist/node/foundation/ssr-interop.d.ts +29 -0
  166. package/dist/node/foundation/ssr-interop.js +39 -0
  167. package/dist/node/foundation/useNavigate/useNavigate.d.ts +13 -0
  168. package/dist/node/foundation/useNavigate/useNavigate.js +18 -0
  169. package/dist/node/foundation/useServerState/index.d.ts +1 -0
  170. package/dist/node/foundation/useServerState/index.js +5 -0
  171. package/dist/node/foundation/useServerState/use-server-state.d.ts +16 -0
  172. package/dist/node/foundation/useServerState/use-server-state.js +24 -0
  173. package/dist/node/framework/Hydration/ServerComponentRequest.server.d.ts +13 -0
  174. package/dist/node/framework/Hydration/ServerComponentRequest.server.js +28 -7
  175. package/dist/node/framework/Hydration/ServerComponentResponse.server.d.ts +4 -1
  176. package/dist/node/framework/Hydration/ServerComponentResponse.server.js +8 -0
  177. package/dist/node/framework/cache/in-memory.d.ts +1 -0
  178. package/dist/node/framework/cache/in-memory.js +15 -5
  179. package/dist/node/framework/middleware.js +30 -4
  180. package/dist/node/framework/plugin.js +11 -2
  181. package/dist/node/framework/plugins/vite-plugin-css-modules-rsc.d.ts +2 -0
  182. package/dist/node/framework/plugins/vite-plugin-css-modules-rsc.js +31 -0
  183. package/dist/node/framework/plugins/vite-plugin-hydrogen-config.js +61 -75
  184. package/dist/node/framework/plugins/vite-plugin-platform-entry.js +1 -1
  185. package/dist/node/{graphql/types/types.d.ts → storefront-api-types.d.ts} +389 -32
  186. package/dist/node/{graphql/types/types.js → storefront-api-types.js} +327 -31
  187. package/dist/node/streaming.server.d.ts +9 -5
  188. package/dist/node/streaming.server.js +2 -18
  189. package/dist/node/types.d.ts +1 -16
  190. package/dist/node/utilities/apiRoutes.d.ts +5 -1
  191. package/dist/node/utilities/apiRoutes.js +5 -4
  192. package/dist/node/utilities/fetch.d.ts +7 -1
  193. package/dist/node/utilities/fetch.js +9 -10
  194. package/dist/node/utilities/log/log-query-timeline.d.ts +1 -1
  195. package/dist/node/utilities/log/log-query-timeline.js +1 -2
  196. package/dist/node/utilities/log/log.d.ts +1 -0
  197. package/dist/node/utilities/log/utils.js +3 -0
  198. package/dist/node/utilities/web-api-polyfill.js +5 -1
  199. package/dist/node/version.d.ts +1 -1
  200. package/dist/node/version.js +1 -1
  201. package/package.json +9 -12
  202. package/vendor/react-server-dom-vite/cjs/react-server-dom-vite-plugin.js +43 -104
  203. package/vendor/react-server-dom-vite/cjs/react-server-dom-vite-writer.browser.development.server.js +1566 -848
  204. package/vendor/react-server-dom-vite/cjs/react-server-dom-vite-writer.browser.production.min.server.js +36 -421
  205. package/vendor/react-server-dom-vite/cjs/react-server-dom-vite-writer.node.development.server.js +1523 -864
  206. package/vendor/react-server-dom-vite/cjs/react-server-dom-vite-writer.node.production.min.server.js +35 -437
  207. package/vendor/react-server-dom-vite/cjs/react-server-dom-vite.development.js +507 -517
  208. package/vendor/react-server-dom-vite/cjs/react-server-dom-vite.production.min.js +10 -246
  209. package/vendor/react-server-dom-vite/esm/react-server-dom-vite-client-proxy.js +16 -23
  210. package/vendor/react-server-dom-vite/esm/react-server-dom-vite-plugin.js +47 -108
  211. package/vendor/react-server-dom-vite/esm/react-server-dom-vite-writer.browser.server.js +1033 -306
  212. package/vendor/react-server-dom-vite/esm/react-server-dom-vite-writer.node.server.js +965 -293
  213. package/vendor/react-server-dom-vite/esm/react-server-dom-vite.js +98 -108
  214. package/vendor/react-server-dom-vite/package.json +0 -2
  215. package/dist/esnext/components/ExternalVideo/ExternalVideoFragment.d.ts +0 -8
  216. package/dist/esnext/components/Image/ImageFragment.d.ts +0 -8
  217. package/dist/esnext/components/Image/ImageFragment.js +0 -1
  218. package/dist/esnext/components/MediaFile/MediaFileFragment.d.ts +0 -36
  219. package/dist/esnext/components/MediaFile/MediaFileFragment.js +0 -1
  220. package/dist/esnext/components/Metafield/MetafieldFragment.d.ts +0 -22
  221. package/dist/esnext/components/Metafield/MetafieldFragment.js +0 -1
  222. package/dist/esnext/components/ModelViewer/Model3DFragment.d.ts +0 -15
  223. package/dist/esnext/components/ModelViewer/Model3DFragment.js +0 -1
  224. package/dist/esnext/components/Money/MoneyFragment.d.ts +0 -8
  225. package/dist/esnext/components/Money/MoneyFragment.js +0 -1
  226. package/dist/esnext/components/ProductProvider/ProductProviderFragment.d.ts +0 -247
  227. package/dist/esnext/components/ProductProvider/ProductProviderFragment.js +0 -1
  228. package/dist/esnext/components/ProductProvider/types.d.ts +0 -19
  229. package/dist/esnext/components/ProductProvider/types.js +0 -1
  230. package/dist/esnext/components/RawHtml/RawHtml.d.ts +0 -17
  231. package/dist/esnext/components/RawHtml/RawHtml.js +0 -21
  232. package/dist/esnext/components/RawHtml/index.d.ts +0 -1
  233. package/dist/esnext/components/RawHtml/index.js +0 -1
  234. package/dist/esnext/components/Seo/SeoFragment.d.ts +0 -66
  235. package/dist/esnext/components/Seo/SeoFragment.js +0 -1
  236. package/dist/esnext/components/Seo/types.d.ts +0 -15
  237. package/dist/esnext/components/Seo/types.js +0 -1
  238. package/dist/esnext/components/UnitPrice/UnitPriceFragment.d.ts +0 -15
  239. package/dist/esnext/components/UnitPrice/UnitPriceFragment.js +0 -1
  240. package/dist/esnext/components/Video/VideoFragment.d.ts +0 -15
  241. package/dist/esnext/components/Video/VideoFragment.js +0 -1
  242. package/dist/esnext/foundation/Router/FileRoutes.d.ts +0 -18
  243. package/dist/esnext/foundation/Router/Route.server.d.ts +0 -9
  244. package/dist/esnext/foundation/Router/Route.server.js +0 -6
  245. package/dist/esnext/foundation/Router/useParams.d.ts +0 -1
  246. package/dist/esnext/foundation/Router/useParams.js +0 -5
  247. package/dist/esnext/fragments.d.ts +0 -20
  248. package/dist/esnext/fragments.js +0 -10
  249. package/dist/esnext/graphql/graphql-constants.d.ts +0 -1756
  250. package/dist/esnext/graphql/graphql-constants.js +0 -3447
  251. package/dist/esnext/hooks/useAvailableCountries/index.d.ts +0 -1
  252. package/dist/esnext/hooks/useAvailableCountries/index.js +0 -1
  253. package/dist/esnext/hooks/useAvailableCountries/useAvailableCountries.d.ts +0 -11
  254. package/dist/esnext/hooks/useAvailableCountries/useAvailableCountries.js +0 -17
  255. package/dist/esnext/hooks/useNavigate/index.d.ts +0 -1
  256. package/dist/esnext/hooks/useNavigate/index.js +0 -1
  257. package/dist/esnext/hooks/useProductOptions/SellingPlanFragment.d.ts +0 -31
  258. package/dist/esnext/hooks/useProductOptions/SellingPlanFragment.js +0 -1
  259. package/dist/esnext/hooks/useProductOptions/SellingPlanGroupsFragment.d.ts +0 -46
  260. package/dist/esnext/hooks/useProductOptions/SellingPlanGroupsFragment.js +0 -1
  261. package/dist/esnext/hooks/useProductOptions/VariantFragment.d.ts +0 -106
  262. package/dist/esnext/hooks/useProductOptions/VariantFragment.js +0 -1
  263. package/fragments.d.ts +0 -1
  264. package/fragments.js +0 -1
@@ -7,440 +7,38 @@
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- 'use strict';
11
- var h = require('react'),
12
- n = JSON.stringify,
13
- q = Symbol.for('react.module.reference'),
14
- r = 60103,
15
- t = 60107,
16
- u = 60112,
17
- v = 60115,
18
- w = 60116;
19
- if ('function' === typeof Symbol && Symbol.for) {
20
- var x = Symbol.for;
21
- r = x('react.element');
22
- t = x('react.fragment');
23
- u = x('react.forward_ref');
24
- v = x('react.memo');
25
- w = x('react.lazy');
26
- }
27
- var y = Array.isArray,
28
- z =
29
- h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
30
- function A(a) {
31
- console.error(a);
32
- }
33
- function D(a, c, d) {
34
- var b = [],
35
- e = {
36
- status: 0,
37
- fatalError: null,
38
- destination: null,
39
- bundlerConfig: c,
40
- cache: new Map(),
41
- nextChunkId: 0,
42
- pendingChunks: 0,
43
- pingedSegments: b,
44
- completedModuleChunks: [],
45
- completedJSONChunks: [],
46
- completedErrorChunks: [],
47
- writtenSymbols: new Map(),
48
- writtenModules: new Map(),
49
- onError: void 0 === d ? A : d,
50
- toJSON: function (a, b) {
51
- return E(e, this, a, b);
52
- },
53
- };
54
- e.pendingChunks++;
55
- a = F(e, a);
56
- b.push(a);
57
- return e;
58
- }
59
- function G(a, c, d, b) {
60
- if (null !== d && void 0 !== d)
61
- throw Error(
62
- 'Refs cannot be used in server components, nor passed to client components.'
63
- );
64
- if ('function' === typeof a) return a(b);
65
- if ('string' === typeof a) return [r, a, c, b];
66
- if ('symbol' === typeof a) return a === t ? b.children : [r, a, c, b];
67
- if (null != a && 'object' === typeof a) {
68
- if ((a.$$typeof_rsc || a.$$typeof) === q) return [r, a, c, b];
69
- switch (a.$$typeof) {
70
- case u:
71
- return (a = a.render), a(b, void 0);
72
- case v:
73
- return G(a.type, c, d, b);
74
- }
75
- }
76
- throw Error('Unsupported server component type: ' + H(a));
77
- }
78
- function I(a, c) {
79
- var d = a.pingedSegments;
80
- d.push(c);
81
- 1 === d.length &&
82
- setImmediate(function () {
83
- return J(a);
84
- });
85
- }
86
- function F(a, c) {
87
- var d = {
88
- id: a.nextChunkId++,
89
- model: c,
90
- ping: function () {
91
- return I(a, d);
92
- },
93
- };
94
- return d;
95
- }
96
- function K(a) {
97
- return Object.prototype.toString
98
- .call(a)
99
- .replace(/^\[object (.*)\]$/, function (a, d) {
100
- return d;
101
- });
102
- }
103
- function L(a) {
104
- var c = JSON.stringify(a);
105
- return '"' + a + '"' === c ? a : c;
106
- }
107
- function H(a) {
108
- switch (typeof a) {
109
- case 'string':
110
- return JSON.stringify(10 >= a.length ? a : a.substr(0, 10) + '...');
111
- case 'object':
112
- if (y(a)) return '[...]';
113
- a = K(a);
114
- return 'Object' === a ? '{...}' : a;
115
- case 'function':
116
- return 'function';
117
- default:
118
- return String(a);
119
- }
120
- }
121
- function N(a, c) {
122
- if (y(a)) {
123
- for (var d = '[', b = 0; b < a.length; b++) {
124
- 0 < b && (d += ', ');
125
- if (6 < b) {
126
- d += '...';
127
- break;
128
- }
129
- var e = a[b];
130
- d =
131
- '' + b === c && 'object' === typeof e && null !== e
132
- ? d + N(e)
133
- : d + H(e);
134
- }
135
- return d + ']';
136
- }
137
- d = '{';
138
- b = Object.keys(a);
139
- for (e = 0; e < b.length; e++) {
140
- 0 < e && (d += ', ');
141
- if (6 < e) {
142
- d += '...';
143
- break;
144
- }
145
- var f = b[e];
146
- d += L(f) + ': ';
147
- var k = a[f];
148
- d = f === c && 'object' === typeof k && null !== k ? d + N(k) : d + H(k);
149
- }
150
- return d + '}';
151
- }
152
- function E(a, c, d, b) {
153
- switch (b) {
154
- case r:
155
- return '$';
156
- case w:
157
- throw Error('React Lazy Components are not yet supported on the server.');
158
- }
159
- for (; 'object' === typeof b && null !== b && b.$$typeof === r; ) {
160
- var e = b;
161
- try {
162
- b = G(e.type, e.key, e.ref, e.props);
163
- } catch (m) {
164
- if ('object' === typeof m && null !== m && 'function' === typeof m.then)
165
- return (
166
- a.pendingChunks++,
167
- (a = F(a, b)),
168
- (c = a.ping),
169
- m.then(c, c),
170
- '@' + a.id.toString(16)
171
- );
172
- O(a, m);
173
- a.pendingChunks++;
174
- c = a.nextChunkId++;
175
- P(a, c, m);
176
- return '@' + c.toString(16);
177
- }
178
- }
179
- if (null === b) return null;
180
- if ('object' === typeof b) {
181
- if ((b.$$typeof_rsc || b.$$typeof) === q) {
182
- e = b.filepath + '#' + b.name;
183
- var f = a.writtenModules,
184
- k = f.get(e);
185
- if (void 0 !== k)
186
- return c[0] === r && '1' === d
187
- ? '@' + k.toString(16)
188
- : '$' + k.toString(16);
189
- try {
190
- var l = {id: b.filepath, name: b.name};
191
- a.pendingChunks++;
192
- var g = a.nextChunkId++,
193
- B = n(l);
194
- var C = 'M' + g.toString(16) + ':' + B + '\n';
195
- a.completedModuleChunks.push(C);
196
- f.set(e, g);
197
- return c[0] === r && '1' === d
198
- ? '@' + g.toString(16)
199
- : '$' + g.toString(16);
200
- } catch (m) {
201
- return (
202
- a.pendingChunks++,
203
- (c = a.nextChunkId++),
204
- P(a, c, m),
205
- '$' + c.toString(16)
206
- );
207
- }
208
- }
209
- return b;
210
- }
211
- if ('string' === typeof b)
212
- return (a = '$' === b[0] || '@' === b[0] ? '$' + b : b), a;
213
- if (
214
- 'boolean' === typeof b ||
215
- 'number' === typeof b ||
216
- 'undefined' === typeof b
217
- )
218
- return b;
219
- if ('function' === typeof b) {
220
- if (/^on[A-Z]/.test(d))
221
- throw Error(
222
- 'Event handlers cannot be passed to client component props. Remove ' +
223
- (L(d) +
224
- ' from these props if possible: ' +
225
- N(c) +
226
- '\nIf you need interactivity, consider converting part of this to a client component.')
227
- );
228
- throw Error(
229
- "Functions cannot be passed directly to client components because they're not serializable. Remove " +
230
- (L(d) +
231
- ' (' +
232
- (b.displayName || b.name || 'function') +
233
- ') from this object, or avoid the entire object: ' +
234
- N(c))
235
- );
236
- }
237
- if ('symbol' === typeof b) {
238
- l = a.writtenSymbols;
239
- g = l.get(b);
240
- if (void 0 !== g) return '$' + g.toString(16);
241
- g = b.description;
242
- if (Symbol.for(g) !== b)
243
- throw Error(
244
- 'Only global symbols received from Symbol.for(...) can be passed to client components. The symbol Symbol.for(' +
245
- (b.description + ') cannot be found among global symbols. Remove ') +
246
- (L(d) + ' from this object, or avoid the entire object: ' + N(c))
247
- );
248
- a.pendingChunks++;
249
- c = a.nextChunkId++;
250
- d = n(g);
251
- d = 'S' + c.toString(16) + ':' + d + '\n';
252
- a.completedModuleChunks.push(d);
253
- l.set(b, c);
254
- return '$' + c.toString(16);
255
- }
256
- if ('bigint' === typeof b)
257
- throw Error(
258
- 'BigInt (' +
259
- b +
260
- ') is not yet supported in client component props. Remove ' +
261
- (L(d) + ' from this object or use a plain number instead: ' + N(c))
262
- );
263
- throw Error(
264
- 'Type ' +
265
- typeof b +
266
- ' is not supported in client component props. Remove ' +
267
- (L(d) + ' from this object, or avoid the entire object: ' + N(c))
268
- );
269
- }
270
- function O(a, c) {
271
- a = a.onError;
272
- a(c);
273
- }
274
- function Q(a, c) {
275
- null !== a.destination
276
- ? ((a.status = 2), a.destination.destroy(c))
277
- : ((a.status = 1), (a.fatalError = c));
278
- }
279
- function P(a, c, d) {
280
- var b = '';
281
- try {
282
- if (d instanceof Error) {
283
- var e = String(d.message);
284
- b = String(d.stack);
285
- } else e = 'Error: ' + d;
286
- } catch (f) {
287
- e = 'An error occurred but serializing the error message failed.';
288
- }
289
- d = {message: e, stack: b};
290
- c = 'E' + c.toString(16) + ':' + n(d) + '\n';
291
- a.completedErrorChunks.push(c);
292
- }
293
- function J(a) {
294
- var c = z.current,
295
- d = R;
296
- z.current = S;
297
- R = a.cache;
298
- try {
299
- var b = a.pingedSegments;
300
- a.pingedSegments = [];
301
- for (var e = 0; e < b.length; e++) {
302
- var f = b[e];
303
- var k = a;
304
- try {
305
- for (
306
- var l = f.model;
307
- 'object' === typeof l && null !== l && l.$$typeof === r;
308
-
309
- ) {
310
- var g = l;
311
- f.model = l;
312
- l = G(g.type, g.key, g.ref, g.props);
313
- }
314
- var B = f.id,
315
- C = n(l, k.toJSON);
316
- var m = 'J' + B.toString(16) + ':' + C + '\n';
317
- k.completedJSONChunks.push(m);
318
- } catch (p) {
319
- if (
320
- 'object' === typeof p &&
321
- null !== p &&
322
- 'function' === typeof p.then
323
- ) {
324
- var M = f.ping;
325
- p.then(M, M);
326
- } else O(k, p), P(k, f.id, p);
327
- }
328
- }
329
- null !== a.destination && T(a, a.destination);
330
- } catch (p) {
331
- O(a, p), Q(a, p);
332
- } finally {
333
- (z.current = c), (R = d);
334
- }
335
- }
336
- function T(a, c) {
337
- 'function' === typeof c.cork && c.cork();
338
- try {
339
- for (var d = a.completedModuleChunks, b = 0; b < d.length; b++)
340
- if ((a.pendingChunks--, !c.write(d[b]))) {
341
- a.destination = null;
342
- b++;
343
- break;
344
- }
345
- d.splice(0, b);
346
- var e = a.completedJSONChunks;
347
- for (b = 0; b < e.length; b++)
348
- if ((a.pendingChunks--, !c.write(e[b]))) {
349
- a.destination = null;
350
- b++;
351
- break;
352
- }
353
- e.splice(0, b);
354
- var f = a.completedErrorChunks;
355
- for (b = 0; b < f.length; b++)
356
- if ((a.pendingChunks--, !c.write(f[b]))) {
357
- a.destination = null;
358
- b++;
359
- break;
360
- }
361
- f.splice(0, b);
362
- } finally {
363
- 'function' === typeof c.uncork && c.uncork();
364
- }
365
- 'function' === typeof c.flush && c.flush();
366
- 0 === a.pendingChunks && c.end();
367
- }
368
- function U(a) {
369
- setImmediate(function () {
370
- return J(a);
371
- });
372
- }
373
- function V(a, c) {
374
- if (1 === a.status) (a.status = 2), c.destroy(a.fatalError);
375
- else if (2 !== a.status) {
376
- a.destination = c;
377
- try {
378
- T(a, c);
379
- } catch (d) {
380
- O(a, d), Q(a, d);
381
- }
382
- }
383
- }
384
- function W() {
385
- throw Error('This Hook is not supported in Server Components.');
386
- }
387
- function X() {
388
- if (!R)
389
- throw Error('Refreshing the cache is not supported in Server Components.');
390
- }
391
- var R = null,
392
- S = {
393
- useMemo: function (a) {
394
- return a();
395
- },
396
- useCallback: function (a) {
397
- return a;
398
- },
399
- useDebugValue: function () {},
400
- useDeferredValue: W,
401
- useTransition: W,
402
- getCacheForType: function (a) {
403
- if (!R)
404
- throw Error('Reading the cache is only supported while rendering.');
405
- var c = R.get(a);
406
- void 0 === c && ((c = a()), R.set(a, c));
407
- return c;
408
- },
409
- readContext: W,
410
- useContext: W,
411
- useReducer: W,
412
- useRef: W,
413
- useState: W,
414
- useInsertionEffect: W,
415
- useLayoutEffect: W,
416
- useImperativeHandle: W,
417
- useEffect: W,
418
- useId: W,
419
- useMutableSource: W,
420
- useSyncExternalStore: W,
421
- useCacheRefresh: function () {
422
- return X;
423
- },
424
- };
425
- function Y(a, c) {
426
- return function () {
427
- return V(c, a);
428
- };
429
- }
430
- exports.renderToPipeableStream = function (a, c) {
431
- var d = D(a, {}, c ? c.onError : void 0),
432
- b = !1;
433
- U(d);
434
- return {
435
- pipe: function (a) {
436
- if (b)
437
- throw Error(
438
- 'React currently only supports piping to one writable stream.'
439
- );
440
- b = !0;
441
- V(d, a);
442
- a.on('drain', Y(a, d));
443
- return a;
444
- },
445
- };
446
- };
10
+ 'use strict';var e=require("react");function h(a){return Buffer.from(a,"utf8")}var m=JSON.stringify,p=Symbol.for("react.module.reference"),r=Symbol.for("react.element"),aa=Symbol.for("react.fragment"),u=Symbol.for("react.provider"),ba=Symbol.for("react.forward_ref"),ca=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.for("react.default_value");
11
+ function x(a,b,d,c,f,g,k){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=k}var y="children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ");y.push("innerText","textContent");y.forEach(function(a){new x(a,0,!1,a,null,!1,!1)});
12
+ [["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new x(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new x(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new x(a,2,!1,a,null,!1,!1)});
13
+ "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new x(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new x(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new x(a,4,!1,a,null,!1,!1)});
14
+ ["cols","rows","size","span"].forEach(function(a){new x(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new x(a,5,!1,a.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function A(a){return a[1].toUpperCase()}
15
+ "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(z,
16
+ A);new x(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(z,A);new x(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(z,A);new x(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new x(a,1,!1,a.toLowerCase(),null,!1,!1)});
17
+ new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){new x(a,1,!1,a.toLowerCase(),null,!0,!0)});
18
+ var B={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
19
+ fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ea=["Webkit","ms","Moz","O"];Object.keys(B).forEach(function(a){ea.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);B[b]=B[a]})});var C=Array.isArray;h("<script>");h("\x3c/script>");h('<script src="');h('<script type="module" src="');h('" async="">\x3c/script>');h("\x3c!-- --\x3e");h(' style="');h(":");h(";");h(" ");h('="');h('"');h('=""');h(">");
20
+ h("/>");h(' selected=""');h("\n");h("<!DOCTYPE html>");h("</");h(">");h('<template id="');h('"></template>');h("\x3c!--$--\x3e");h('\x3c!--$?--\x3e<template id="');h('"></template>');h("\x3c!--$!--\x3e");h("\x3c!--/$--\x3e");h('<div hidden id="');h('">');h("</div>");h('<svg aria-hidden="true" style="display:none" id="');h('">');h("</svg>");h('<math aria-hidden="true" style="display:none" id="');h('">');h("</math>");h('<table hidden id="');h('">');h("</table>");h('<table hidden><tbody id="');h('">');
21
+ h("</tbody></table>");h('<table hidden><tr id="');h('">');h("</tr></table>");h('<table hidden><colgroup id="');h('">');h("</colgroup></table>");h('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("');h('$RS("');h('","');h('")\x3c/script>');h('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("');
22
+ h('$RC("');h('","');h('")\x3c/script>');h('function $RX(a){if(a=document.getElementById(a))a=a.previousSibling,a.data="$!",a._reactRetry&&a._reactRetry()};$RX("');h('$RX("');h('")\x3c/script>');var D=null;
23
+ function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function F(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&F(a)}
24
+ function G(a){var b=a.parent;null!==b&&G(b);a.context._currentValue=a.value}function H(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):H(a,b)}function I(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):I(a,d);b.context._currentValue=b.value}
25
+ function J(a){var b=D;b!==a&&(null===b?G(a):null===a?F(b):b.depth===a.depth?E(b,a):b.depth>a.depth?H(b,a):I(b,a),D=a)}function M(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}function N(a){return a._currentValue}
26
+ var ha={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:O,useTransition:O,getCacheForType:function(a){if(!P)throw Error("Reading the cache is only supported while rendering.");var b=P.get(a);void 0===b&&(b=a(),P.set(a,b));return b},readContext:N,useContext:N,useReducer:O,useRef:O,useState:O,useInsertionEffect:O,useLayoutEffect:O,useImperativeHandle:O,useEffect:O,useId:O,useMutableSource:O,useSyncExternalStore:O,useCacheRefresh:function(){return fa}};
27
+ function O(){throw Error("This Hook is not supported in Server Components.");}function fa(){if(!P)throw Error("Refreshing the cache is not supported in Server Components.");}var P=null,Q=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Q.ContextRegistry,S=Q.ReactCurrentDispatcher;function ia(a){console.error(a)}
28
+ function ja(a,b,d,c){var f=[],g={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,pingedSegments:f,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,onError:void 0===d?ia:d,toJSON:function(a,b){return ka(g,this,a,b)}};g.pendingChunks++;b=la(c);a=T(g,a,b);f.push(a);return g}var ma={};
29
+ function U(a,b,d,c){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in server components, nor passed to client components.");if("function"===typeof a)return a(c);if("string"===typeof a)return[r,a,b,c];if("symbol"===typeof a)return a===aa?c.children:[r,a,b,c];if(null!=a&&"object"===typeof a){if((a.$$typeof_rsc||a.$$typeof)===p)return[r,a,b,c];switch(a.$$typeof){case v:var f=a._init;a=f(a._payload);return U(a,b,d,c);case ba:return b=a.render,b(c,void 0);case ca:return U(a.type,b,d,c);case u:return M(a._context,
30
+ c.value),[r,a,b,{value:c.value,children:c.children,__pop:ma}]}}throw Error("Unsupported server component type: "+V(a));}function na(a,b){var d=a.pingedSegments;d.push(b);1===d.length&&setImmediate(function(){return oa(a)})}function T(a,b,d){var c={id:a.nextChunkId++,model:b,context:d,ping:function(){return na(a,c)}};return c}function pa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function W(a){var b=JSON.stringify(a);return'"'+a+'"'===b?a:b}
31
+ function V(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(C(a))return"[...]";a=pa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
32
+ function X(a,b){if(C(a)){for(var d="[",c=0;c<a.length;c++){0<c&&(d+=", ");if(6<c){d+="...";break}var f=a[c];d=""+c===b&&"object"===typeof f&&null!==f?d+X(f):d+V(f)}return d+"]"}d="{";c=Object.keys(a);for(f=0;f<c.length;f++){0<f&&(d+=", ");if(6<f){d+="...";break}var g=c[f];d+=W(g)+": ";var k=a[g];d=g===b&&"object"===typeof k&&null!==k?d+X(k):d+V(k)}return d+"}"}
33
+ function ka(a,b,d,c){switch(c){case r:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===r||c.$$typeof===v);)try{switch(c.$$typeof){case r:var f=c;c=U(f.type,f.key,f.ref,f.props);break;case v:var g=c._init;c=g(c._payload)}}catch(q){if("object"===typeof q&&null!==q&&"function"===typeof q.then)return a.pendingChunks++,a=T(a,c,D),d=a.ping,q.then(d,d),"@"+a.id.toString(16);Y(a,q);a.pendingChunks++;d=a.nextChunkId++;Z(a,d,q);return"@"+d.toString(16)}if(null===c)return null;if("object"===typeof c){if((c.$$typeof_rsc||
34
+ c.$$typeof)===p){f=c.filepath+"#"+c.name;g=a.writtenModules;var k=g.get(f);if(void 0!==k)return b[0]===r&&"1"===d?"@"+k.toString(16):"$"+k.toString(16);try{var n={id:c.filepath,name:c.name};a.pendingChunks++;var l=a.nextChunkId++,K=m(n);var L="M"+l.toString(16)+":"+K+"\n";a.completedModuleChunks.push(L);g.set(f,l);return b[0]===r&&"1"===d?"@"+l.toString(16):"$"+l.toString(16)}catch(q){return a.pendingChunks++,d=a.nextChunkId++,Z(a,d,q),"$"+d.toString(16)}}else{if(c.$$typeof===u)return b=c._context._globalName,
35
+ c=a.writtenProviders,d=c.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,c.set(b,d),b="P"+d.toString(16)+":"+b+"\n",a.completedJSONChunks.push(b)),"$"+d.toString(16);if(c===ma){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=d===w?a.context._defaultValue:d;D=a.parent;return}}return c}if("string"===typeof c)return a="$"===c[0]||"@"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c||"undefined"===
36
+ typeof c)return c;if("function"===typeof c){if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to client component props. Remove "+(W(d)+" from these props if possible: "+X(b)+"\nIf you need interactivity, consider converting part of this to a client component."));throw Error("Functions cannot be passed directly to client components because they're not serializable. Remove "+(W(d)+" ("+(c.displayName||c.name||"function")+") from this object, or avoid the entire object: "+X(b)));}if("symbol"===
37
+ typeof c){n=a.writtenSymbols;l=n.get(c);if(void 0!==l)return"$"+l.toString(16);l=c.description;if(Symbol.for(l)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to client components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols. Remove ")+(W(d)+" from this object, or avoid the entire object: "+X(b)));a.pendingChunks++;d=a.nextChunkId++;b=m(l);b="S"+d.toString(16)+":"+b+"\n";a.completedModuleChunks.push(b);n.set(c,d);return"$"+d.toString(16)}if("bigint"===
38
+ typeof c)throw Error("BigInt ("+c+") is not yet supported in client component props. Remove "+(W(d)+" from this object or use a plain number instead: "+X(b)));throw Error("Type "+typeof c+" is not supported in client component props. Remove "+(W(d)+" from this object, or avoid the entire object: "+X(b)));}function Y(a,b){a=a.onError;a(b)}function qa(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
39
+ function Z(a,b,d){var c="";try{if(d instanceof Error){var f=String(d.message);c=String(d.stack)}else f="Error: "+d}catch(g){f="An error occurred but serializing the error message failed."}d={message:f,stack:c};b="E"+b.toString(16)+":"+m(d)+"\n";a.completedErrorChunks.push(b)}
40
+ function oa(a){var b=S.current,d=P;S.current=ha;P=a.cache;try{var c=a.pingedSegments;a.pingedSegments=[];for(var f=0;f<c.length;f++){var g=c[f];var k=a;J(g.context);try{for(var n=g.model;"object"===typeof n&&null!==n&&n.$$typeof===r;){var l=n;g.model=n;n=U(l.type,l.key,l.ref,l.props)}var K=g.id,L=m(n,k.toJSON);var q="J"+K.toString(16)+":"+L+"\n";k.completedJSONChunks.push(q)}catch(t){if("object"===typeof t&&null!==t&&"function"===typeof t.then){var da=g.ping;t.then(da,da)}else Y(k,t),Z(k,g.id,t)}}null!==
41
+ a.destination&&ra(a,a.destination)}catch(t){Y(a,t),qa(a,t)}finally{S.current=b,P=d}}
42
+ function ra(a,b){"function"===typeof b.cork&&b.cork();try{for(var d=a.completedModuleChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!b.write(d[c])){a.destination=null;c++;break}d.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!b.write(f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!b.write(g[c])){a.destination=null;c++;break}g.splice(0,c)}finally{"function"===typeof b.uncork&&b.uncork()}"function"===
43
+ typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function sa(a){setImmediate(function(){return oa(a)})}function ta(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{ra(a,b)}catch(d){Y(a,d),qa(a,d)}}}function la(a){if(a){var b=D;J(null);for(var d=0;d<a.length;d++){var c=a[d],f=c[0];c=c[1];R[f]||(R[f]=e.createServerContext(f,w));M(R[f],c)}a=D;J(b);return a}return null}function ua(a,b){return function(){return ta(b,a)}}
44
+ exports.renderToPipeableStream=function(a,b,d){var c=ja(a,{},b?b.onError:void 0,d),f=!1;sa(c);return{pipe:function(a){if(f)throw Error("React currently only supports piping to one writable stream.");f=!0;ta(c,a);a.on("drain",ua(a,c));return a}}};