@shopify/hydrogen-react 0.0.0-next-022e862 → 0.0.0-next-c23a62a

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 (230) hide show
  1. package/dist/dev/CartProvider.js +20 -20
  2. package/dist/dev/CartProvider.js.map +1 -1
  3. package/dist/dev/Metafield.js +8 -2
  4. package/dist/dev/Metafield.js.map +1 -1
  5. package/dist/dev/Metafield.mjs +6 -0
  6. package/dist/dev/Metafield.mjs.map +1 -1
  7. package/dist/dev/ModelViewer.js +4 -4
  8. package/dist/dev/ModelViewer.js.map +1 -1
  9. package/dist/dev/ProductProvider.js +14 -14
  10. package/dist/dev/ProductProvider.js.map +1 -1
  11. package/dist/dev/ShopifyProvider.js +4 -4
  12. package/dist/dev/ShopifyProvider.js.map +1 -1
  13. package/dist/dev/Video.js +2 -2
  14. package/dist/dev/_virtual/index.js +5 -0
  15. package/dist/dev/_virtual/index.js.map +1 -0
  16. package/dist/dev/_virtual/index.mjs +5 -0
  17. package/dist/dev/_virtual/index.mjs.map +1 -0
  18. package/dist/dev/_virtual/index2.js +5 -0
  19. package/dist/dev/_virtual/index2.js.map +1 -0
  20. package/dist/dev/_virtual/index2.mjs +5 -0
  21. package/dist/dev/_virtual/index2.mjs.map +1 -0
  22. package/dist/dev/_virtual/use-sync-external-store-shim.development.js +5 -0
  23. package/dist/dev/_virtual/use-sync-external-store-shim.development.js.map +1 -0
  24. package/dist/dev/_virtual/use-sync-external-store-shim.development.mjs +5 -0
  25. package/dist/dev/_virtual/use-sync-external-store-shim.development.mjs.map +1 -0
  26. package/dist/dev/_virtual/use-sync-external-store-shim.production.min.js +5 -0
  27. package/dist/dev/_virtual/use-sync-external-store-shim.production.min.js.map +1 -0
  28. package/dist/dev/_virtual/use-sync-external-store-shim.production.min.mjs +5 -0
  29. package/dist/dev/_virtual/use-sync-external-store-shim.production.min.mjs.map +1 -0
  30. package/dist/dev/_virtual/with-selector.development.js +5 -0
  31. package/dist/dev/_virtual/with-selector.development.js.map +1 -0
  32. package/dist/dev/_virtual/with-selector.development.mjs +5 -0
  33. package/dist/dev/_virtual/with-selector.development.mjs.map +1 -0
  34. package/dist/dev/_virtual/with-selector.js +5 -0
  35. package/dist/dev/_virtual/with-selector.js.map +1 -0
  36. package/dist/dev/_virtual/with-selector.mjs +5 -0
  37. package/dist/dev/_virtual/with-selector.mjs.map +1 -0
  38. package/dist/dev/_virtual/with-selector.production.min.js +5 -0
  39. package/dist/dev/_virtual/with-selector.production.min.js.map +1 -0
  40. package/dist/dev/_virtual/with-selector.production.min.mjs +5 -0
  41. package/dist/dev/_virtual/with-selector.production.min.mjs.map +1 -0
  42. package/dist/dev/cart-hooks.js +4 -4
  43. package/dist/dev/cart-hooks.js.map +1 -1
  44. package/dist/dev/cart-hooks.mjs +3 -3
  45. package/dist/dev/cart-hooks.mjs.map +1 -1
  46. package/dist/dev/index.js +2 -0
  47. package/dist/dev/index.js.map +1 -1
  48. package/dist/dev/index.mjs +2 -0
  49. package/dist/dev/index.mjs.map +1 -1
  50. package/dist/dev/load-script.js +3 -3
  51. package/dist/dev/load-script.js.map +1 -1
  52. package/dist/dev/metafield-parser.js +105 -0
  53. package/dist/dev/metafield-parser.js.map +1 -0
  54. package/dist/dev/metafield-parser.mjs +105 -0
  55. package/dist/dev/metafield-parser.mjs.map +1 -0
  56. package/dist/dev/node_modules/@xstate/fsm/es/index.js +158 -0
  57. package/dist/dev/node_modules/@xstate/fsm/es/index.js.map +1 -0
  58. package/dist/dev/node_modules/@xstate/fsm/es/index.mjs +159 -0
  59. package/dist/dev/node_modules/@xstate/fsm/es/index.mjs.map +1 -0
  60. package/dist/dev/node_modules/@xstate/react/es/fsm.js +94 -0
  61. package/dist/dev/node_modules/@xstate/react/es/fsm.js.map +1 -0
  62. package/dist/dev/node_modules/@xstate/react/es/fsm.mjs +94 -0
  63. package/dist/dev/node_modules/@xstate/react/es/fsm.mjs.map +1 -0
  64. package/dist/dev/node_modules/@xstate/react/es/useConstant.js +30 -0
  65. package/dist/dev/node_modules/@xstate/react/es/useConstant.js.map +1 -0
  66. package/dist/dev/node_modules/@xstate/react/es/useConstant.mjs +12 -0
  67. package/dist/dev/node_modules/@xstate/react/es/useConstant.mjs.map +1 -0
  68. package/dist/dev/node_modules/ts-expect/dist/index.js +13 -0
  69. package/dist/dev/node_modules/ts-expect/dist/index.js.map +1 -0
  70. package/dist/dev/node_modules/ts-expect/dist/index.mjs +15 -0
  71. package/dist/dev/node_modules/ts-expect/dist/index.mjs.map +1 -0
  72. package/dist/dev/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
  73. package/dist/dev/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js.map +1 -0
  74. package/dist/dev/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.mjs +6 -0
  75. package/dist/dev/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.mjs.map +1 -0
  76. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +107 -0
  77. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -0
  78. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +105 -0
  79. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -0
  80. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +74 -0
  81. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js.map +1 -0
  82. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +72 -0
  83. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +1 -0
  84. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +138 -0
  85. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
  86. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +136 -0
  87. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -0
  88. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +60 -0
  89. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js.map +1 -0
  90. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +58 -0
  91. package/dist/dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +1 -0
  92. package/dist/dev/node_modules/use-sync-external-store/shim/index.js +21 -0
  93. package/dist/dev/node_modules/use-sync-external-store/shim/index.js.map +1 -0
  94. package/dist/dev/node_modules/use-sync-external-store/shim/index.mjs +21 -0
  95. package/dist/dev/node_modules/use-sync-external-store/shim/index.mjs.map +1 -0
  96. package/dist/dev/node_modules/use-sync-external-store/shim/with-selector.js +12 -0
  97. package/dist/dev/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -0
  98. package/dist/dev/node_modules/use-sync-external-store/shim/with-selector.mjs +11 -0
  99. package/dist/dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -0
  100. package/dist/dev/node_modules/worktop/cookie/index.js +27 -0
  101. package/dist/dev/node_modules/worktop/cookie/index.js.map +1 -0
  102. package/dist/dev/node_modules/worktop/cookie/index.mjs +27 -0
  103. package/dist/dev/node_modules/worktop/cookie/index.mjs.map +1 -0
  104. package/dist/dev/useCartAPIStateMachine.js +12 -12
  105. package/dist/dev/useCartAPIStateMachine.js.map +1 -1
  106. package/dist/dev/useCartAPIStateMachine.mjs +8 -8
  107. package/dist/dev/useCartAPIStateMachine.mjs.map +1 -1
  108. package/dist/dev/useCartActions.js +11 -11
  109. package/dist/dev/useCartActions.js.map +1 -1
  110. package/dist/dev/useMoney.js +5 -5
  111. package/dist/dev/useMoney.js.map +1 -1
  112. package/dist/prod/CartProvider.js +20 -20
  113. package/dist/prod/CartProvider.js.map +1 -1
  114. package/dist/prod/Metafield.js +2 -2
  115. package/dist/prod/Metafield.js.map +1 -1
  116. package/dist/prod/Metafield.mjs.map +1 -1
  117. package/dist/prod/ModelViewer.js +4 -4
  118. package/dist/prod/ModelViewer.js.map +1 -1
  119. package/dist/prod/ProductProvider.js +14 -14
  120. package/dist/prod/ProductProvider.js.map +1 -1
  121. package/dist/prod/ShopifyProvider.js +4 -4
  122. package/dist/prod/ShopifyProvider.js.map +1 -1
  123. package/dist/prod/Video.js +2 -2
  124. package/dist/prod/_virtual/index.js +5 -0
  125. package/dist/prod/_virtual/index.js.map +1 -0
  126. package/dist/prod/_virtual/index.mjs +5 -0
  127. package/dist/prod/_virtual/index.mjs.map +1 -0
  128. package/dist/prod/_virtual/index2.js +5 -0
  129. package/dist/prod/_virtual/index2.js.map +1 -0
  130. package/dist/prod/_virtual/index2.mjs +5 -0
  131. package/dist/prod/_virtual/index2.mjs.map +1 -0
  132. package/dist/prod/_virtual/use-sync-external-store-shim.development.js +5 -0
  133. package/dist/prod/_virtual/use-sync-external-store-shim.development.js.map +1 -0
  134. package/dist/prod/_virtual/use-sync-external-store-shim.development.mjs +5 -0
  135. package/dist/prod/_virtual/use-sync-external-store-shim.development.mjs.map +1 -0
  136. package/dist/prod/_virtual/use-sync-external-store-shim.production.min.js +5 -0
  137. package/dist/prod/_virtual/use-sync-external-store-shim.production.min.js.map +1 -0
  138. package/dist/prod/_virtual/use-sync-external-store-shim.production.min.mjs +5 -0
  139. package/dist/prod/_virtual/use-sync-external-store-shim.production.min.mjs.map +1 -0
  140. package/dist/prod/_virtual/with-selector.development.js +5 -0
  141. package/dist/prod/_virtual/with-selector.development.js.map +1 -0
  142. package/dist/prod/_virtual/with-selector.development.mjs +5 -0
  143. package/dist/prod/_virtual/with-selector.development.mjs.map +1 -0
  144. package/dist/prod/_virtual/with-selector.js +5 -0
  145. package/dist/prod/_virtual/with-selector.js.map +1 -0
  146. package/dist/prod/_virtual/with-selector.mjs +5 -0
  147. package/dist/prod/_virtual/with-selector.mjs.map +1 -0
  148. package/dist/prod/_virtual/with-selector.production.min.js +5 -0
  149. package/dist/prod/_virtual/with-selector.production.min.js.map +1 -0
  150. package/dist/prod/_virtual/with-selector.production.min.mjs +5 -0
  151. package/dist/prod/_virtual/with-selector.production.min.mjs.map +1 -0
  152. package/dist/prod/cart-hooks.js +4 -4
  153. package/dist/prod/cart-hooks.js.map +1 -1
  154. package/dist/prod/cart-hooks.mjs +3 -3
  155. package/dist/prod/cart-hooks.mjs.map +1 -1
  156. package/dist/prod/index.js +2 -0
  157. package/dist/prod/index.js.map +1 -1
  158. package/dist/prod/index.mjs +2 -0
  159. package/dist/prod/index.mjs.map +1 -1
  160. package/dist/prod/load-script.js +3 -3
  161. package/dist/prod/load-script.js.map +1 -1
  162. package/dist/prod/metafield-parser.js +116 -0
  163. package/dist/prod/metafield-parser.js.map +1 -0
  164. package/dist/prod/metafield-parser.mjs +116 -0
  165. package/dist/prod/metafield-parser.mjs.map +1 -0
  166. package/dist/prod/node_modules/@xstate/fsm/es/index.js +158 -0
  167. package/dist/prod/node_modules/@xstate/fsm/es/index.js.map +1 -0
  168. package/dist/prod/node_modules/@xstate/fsm/es/index.mjs +159 -0
  169. package/dist/prod/node_modules/@xstate/fsm/es/index.mjs.map +1 -0
  170. package/dist/prod/node_modules/@xstate/react/es/fsm.js +94 -0
  171. package/dist/prod/node_modules/@xstate/react/es/fsm.js.map +1 -0
  172. package/dist/prod/node_modules/@xstate/react/es/fsm.mjs +94 -0
  173. package/dist/prod/node_modules/@xstate/react/es/fsm.mjs.map +1 -0
  174. package/dist/prod/node_modules/@xstate/react/es/useConstant.js +30 -0
  175. package/dist/prod/node_modules/@xstate/react/es/useConstant.js.map +1 -0
  176. package/dist/prod/node_modules/@xstate/react/es/useConstant.mjs +12 -0
  177. package/dist/prod/node_modules/@xstate/react/es/useConstant.mjs.map +1 -0
  178. package/dist/prod/node_modules/ts-expect/dist/index.js +13 -0
  179. package/dist/prod/node_modules/ts-expect/dist/index.js.map +1 -0
  180. package/dist/prod/node_modules/ts-expect/dist/index.mjs +15 -0
  181. package/dist/prod/node_modules/ts-expect/dist/index.mjs.map +1 -0
  182. package/dist/prod/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
  183. package/dist/prod/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js.map +1 -0
  184. package/dist/prod/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.mjs +6 -0
  185. package/dist/prod/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.mjs.map +1 -0
  186. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +107 -0
  187. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -0
  188. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +105 -0
  189. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -0
  190. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +74 -0
  191. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js.map +1 -0
  192. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +72 -0
  193. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +1 -0
  194. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +138 -0
  195. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
  196. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +136 -0
  197. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -0
  198. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +60 -0
  199. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js.map +1 -0
  200. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +58 -0
  201. package/dist/prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +1 -0
  202. package/dist/prod/node_modules/use-sync-external-store/shim/index.js +21 -0
  203. package/dist/prod/node_modules/use-sync-external-store/shim/index.js.map +1 -0
  204. package/dist/prod/node_modules/use-sync-external-store/shim/index.mjs +21 -0
  205. package/dist/prod/node_modules/use-sync-external-store/shim/index.mjs.map +1 -0
  206. package/dist/prod/node_modules/use-sync-external-store/shim/with-selector.js +12 -0
  207. package/dist/prod/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -0
  208. package/dist/prod/node_modules/use-sync-external-store/shim/with-selector.mjs +11 -0
  209. package/dist/prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -0
  210. package/dist/prod/node_modules/worktop/cookie/index.js +27 -0
  211. package/dist/prod/node_modules/worktop/cookie/index.js.map +1 -0
  212. package/dist/prod/node_modules/worktop/cookie/index.mjs +27 -0
  213. package/dist/prod/node_modules/worktop/cookie/index.mjs.map +1 -0
  214. package/dist/prod/useCartAPIStateMachine.js +12 -12
  215. package/dist/prod/useCartAPIStateMachine.js.map +1 -1
  216. package/dist/prod/useCartAPIStateMachine.mjs +8 -8
  217. package/dist/prod/useCartAPIStateMachine.mjs.map +1 -1
  218. package/dist/prod/useCartActions.js +11 -11
  219. package/dist/prod/useCartActions.js.map +1 -1
  220. package/dist/prod/useMoney.js +5 -5
  221. package/dist/prod/useMoney.js.map +1 -1
  222. package/dist/types/Metafield.d.ts +3 -0
  223. package/dist/types/index.d.cts +1 -0
  224. package/dist/types/index.d.ts +1 -0
  225. package/dist/types/metafield-parser.d.ts +222 -0
  226. package/dist/umd/hydrogen-react.dev.js +114 -0
  227. package/dist/umd/hydrogen-react.dev.js.map +1 -1
  228. package/dist/umd/hydrogen-react.prod.js +17 -17
  229. package/dist/umd/hydrogen-react.prod.js.map +1 -1
  230. package/package.json +2 -1
@@ -0,0 +1,12 @@
1
+ import * as require$$0 from "react";
2
+ function useConstant(fn) {
3
+ var ref = require$$0.useRef();
4
+ if (!ref.current) {
5
+ ref.current = { v: fn() };
6
+ }
7
+ return ref.current.v;
8
+ }
9
+ export {
10
+ useConstant as default
11
+ };
12
+ //# sourceMappingURL=useConstant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConstant.mjs","sources":["../../../../../../../../node_modules/@xstate/react/es/useConstant.js"],"sourcesContent":["import * as React from 'react';\nexport default function useConstant(fn) {\n var ref = React.useRef();\n if (!ref.current) {\n ref.current = { v: fn() };\n }\n return ref.current.v;\n}\n"],"names":["React"],"mappings":";AACe,SAAS,YAAY,IAAI;AACpC,MAAI,MAAMA,WAAM;AAChB,MAAI,CAAC,IAAI,SAAS;AACd,QAAI,UAAU,EAAE,GAAG,GAAI,EAAA;AAAA,EAC1B;AACD,SAAO,IAAI,QAAQ;AACvB;"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index = require("../../../_virtual/index.js");
4
+ Object.defineProperty(index.__exports, "__esModule", { value: true });
5
+ index.__exports.expectNever = exports.expectType = index.__exports.expectType = void 0;
6
+ const expectType = (value) => void 0;
7
+ exports.expectType = index.__exports.expectType = expectType;
8
+ const expectNever = (value) => {
9
+ throw new TypeError("Unexpected value: " + value);
10
+ };
11
+ index.__exports.expectNever = expectNever;
12
+ exports.default = index.__exports;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/ts-expect/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.expectNever = exports.expectType = void 0;\n/**\n * Asserts the `value` type is assignable to the generic `Type`.\n *\n * ```ts\n * expectType<number>(123);\n * expectType<boolean>(true);\n * ```\n */\nconst expectType = (value) => void 0;\nexports.expectType = expectType;\n/**\n * Asserts the `value` type is `never`, i.e. this function should never be called.\n * If it is called at runtime, it will throw a `TypeError`. The return type is\n * `never` to support returning in exhaustive type checks.\n *\n * ```ts\n * return expectNever(value);\n * ```\n */\nconst expectNever = (value) => {\n throw new TypeError(\"Unexpected value: \" + value);\n};\nexports.expectNever = expectNever;\n//# sourceMappingURL=index.js.map"],"names":["dist","expectType_1"],"mappings":";;;AACA,OAAO,eAAeA,MAAAA,WAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5DA,MAAA,UAAA,cAAsBC,QAAA,aAAAD,gBAAA,aAAqB;AAS3C,MAAM,aAAa,CAAC,UAAU;AACZC,QAAAA,aAAAD,MAAAA,UAAA,aAAG;AAUrB,MAAM,cAAc,CAAC,UAAU;AAC3B,QAAM,IAAI,UAAU,uBAAuB,KAAK;AACpD;AACmBA,MAAA,UAAA,cAAG;;"}
@@ -0,0 +1,15 @@
1
+ import { __exports as dist } from "../../../_virtual/index.mjs";
2
+ import { __exports } from "../../../_virtual/index.mjs";
3
+ Object.defineProperty(dist, "__esModule", { value: true });
4
+ dist.expectNever = expectType_1 = dist.expectType = void 0;
5
+ const expectType = (value) => void 0;
6
+ var expectType_1 = dist.expectType = expectType;
7
+ const expectNever = (value) => {
8
+ throw new TypeError("Unexpected value: " + value);
9
+ };
10
+ dist.expectNever = expectNever;
11
+ export {
12
+ __exports as default,
13
+ expectType_1 as expectType
14
+ };
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../node_modules/ts-expect/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.expectNever = exports.expectType = void 0;\n/**\n * Asserts the `value` type is assignable to the generic `Type`.\n *\n * ```ts\n * expectType<number>(123);\n * expectType<boolean>(true);\n * ```\n */\nconst expectType = (value) => void 0;\nexports.expectType = expectType;\n/**\n * Asserts the `value` type is `never`, i.e. this function should never be called.\n * If it is called at runtime, it will throw a `TypeError`. The return type is\n * `never` to support returning in exhaustive type checks.\n *\n * ```ts\n * return expectNever(value);\n * ```\n */\nconst expectNever = (value) => {\n throw new TypeError(\"Unexpected value: \" + value);\n};\nexports.expectNever = expectNever;\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AACA,OAAO,eAAe,MAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,KAAA,cAAsB,eAAA,KAAA,aAAqB;AAS3C,MAAM,aAAa,CAAC,UAAU;AACZ,IAAA,eAAA,KAAA,aAAG;AAUrB,MAAM,cAAc,CAAC,UAAU;AAC3B,QAAM,IAAI,UAAU,uBAAuB,KAAK;AACpD;AACmB,KAAA,cAAG;"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ const require$$0 = require("react");
3
+ var index = require$$0.useLayoutEffect;
4
+ module.exports = index;
5
+ //# sourceMappingURL=use-isomorphic-layout-effect.browser.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-isomorphic-layout-effect.browser.esm.js","sources":["../../../../../../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js"],"sourcesContent":["import { useLayoutEffect } from 'react';\n\nvar index = useLayoutEffect ;\n\nexport default index;\n"],"names":["useLayoutEffect"],"mappings":";;AAEG,IAAC,QAASA,WAAe;;"}
@@ -0,0 +1,6 @@
1
+ import { useLayoutEffect } from "react";
2
+ var index = useLayoutEffect;
3
+ export {
4
+ index as default
5
+ };
6
+ //# sourceMappingURL=use-isomorphic-layout-effect.browser.esm.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-isomorphic-layout-effect.browser.esm.mjs","sources":["../../../../../../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js"],"sourcesContent":["import { useLayoutEffect } from 'react';\n\nvar index = useLayoutEffect ;\n\nexport default index;\n"],"names":[],"mappings":";AAEG,IAAC,QAAS;"}
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const withSelector_development = require("../../../../_virtual/with-selector.development.js");
4
+ const require$$0 = require("react");
5
+ const index = require("../../shim/index.js");
6
+ const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
7
+ const require$$0__default = /* @__PURE__ */ _interopDefaultLegacy(require$$0);
8
+ /**
9
+ * @license React
10
+ * use-sync-external-store-shim/with-selector.development.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ var hasRequiredWithSelector_development;
18
+ function requireWithSelector_development() {
19
+ if (hasRequiredWithSelector_development)
20
+ return withSelector_development.__exports;
21
+ hasRequiredWithSelector_development = 1;
22
+ if (process.env.NODE_ENV !== "production") {
23
+ (function() {
24
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
25
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
26
+ }
27
+ var React = require$$0__default.default;
28
+ var shim = index.__require();
29
+ function is(x, y) {
30
+ return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
31
+ }
32
+ var objectIs = typeof Object.is === "function" ? Object.is : is;
33
+ var useSyncExternalStore = shim.useSyncExternalStore;
34
+ var useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
35
+ function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
36
+ var instRef = useRef(null);
37
+ var inst;
38
+ if (instRef.current === null) {
39
+ inst = {
40
+ hasValue: false,
41
+ value: null
42
+ };
43
+ instRef.current = inst;
44
+ } else {
45
+ inst = instRef.current;
46
+ }
47
+ var _useMemo = useMemo(function() {
48
+ var hasMemo = false;
49
+ var memoizedSnapshot;
50
+ var memoizedSelection;
51
+ var memoizedSelector = function(nextSnapshot) {
52
+ if (!hasMemo) {
53
+ hasMemo = true;
54
+ memoizedSnapshot = nextSnapshot;
55
+ var _nextSelection = selector(nextSnapshot);
56
+ if (isEqual !== void 0) {
57
+ if (inst.hasValue) {
58
+ var currentSelection = inst.value;
59
+ if (isEqual(currentSelection, _nextSelection)) {
60
+ memoizedSelection = currentSelection;
61
+ return currentSelection;
62
+ }
63
+ }
64
+ }
65
+ memoizedSelection = _nextSelection;
66
+ return _nextSelection;
67
+ }
68
+ var prevSnapshot = memoizedSnapshot;
69
+ var prevSelection = memoizedSelection;
70
+ if (objectIs(prevSnapshot, nextSnapshot)) {
71
+ return prevSelection;
72
+ }
73
+ var nextSelection = selector(nextSnapshot);
74
+ if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
75
+ return prevSelection;
76
+ }
77
+ memoizedSnapshot = nextSnapshot;
78
+ memoizedSelection = nextSelection;
79
+ return nextSelection;
80
+ };
81
+ var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
82
+ var getSnapshotWithSelector = function() {
83
+ return memoizedSelector(getSnapshot());
84
+ };
85
+ var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
86
+ return memoizedSelector(maybeGetServerSnapshot());
87
+ };
88
+ return [getSnapshotWithSelector, getServerSnapshotWithSelector];
89
+ }, [getSnapshot, getServerSnapshot, selector, isEqual]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
90
+ var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
91
+ useEffect(function() {
92
+ inst.hasValue = true;
93
+ inst.value = value;
94
+ }, [value]);
95
+ useDebugValue(value);
96
+ return value;
97
+ }
98
+ withSelector_development.__exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
99
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
100
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
101
+ }
102
+ })();
103
+ }
104
+ return withSelector_development.__exports;
105
+ }
106
+ exports.__require = requireWithSelector_development;
107
+ //# sourceMappingURL=with-selector.development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-selector.development.js","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var React = require('react');\nvar shim = require('use-sync-external-store/shim');\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\nvar useSyncExternalStore = shim.useSyncExternalStore;\n\n// for CommonJS interop.\n\nvar useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.\n\nfunction useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {\n // Use this to track the rendered snapshot.\n var instRef = useRef(null);\n var inst;\n\n if (instRef.current === null) {\n inst = {\n hasValue: false,\n value: null\n };\n instRef.current = inst;\n } else {\n inst = instRef.current;\n }\n\n var _useMemo = useMemo(function () {\n // Track the memoized state using closure variables that are local to this\n // memoized instance of a getSnapshot function. Intentionally not using a\n // useRef hook, because that state would be shared across all concurrent\n // copies of the hook/component.\n var hasMemo = false;\n var memoizedSnapshot;\n var memoizedSelection;\n\n var memoizedSelector = function (nextSnapshot) {\n if (!hasMemo) {\n // The first time the hook is called, there is no memoized result.\n hasMemo = true;\n memoizedSnapshot = nextSnapshot;\n\n var _nextSelection = selector(nextSnapshot);\n\n if (isEqual !== undefined) {\n // Even if the selector has changed, the currently rendered selection\n // may be equal to the new selection. We should attempt to reuse the\n // current value if possible, to preserve downstream memoizations.\n if (inst.hasValue) {\n var currentSelection = inst.value;\n\n if (isEqual(currentSelection, _nextSelection)) {\n memoizedSelection = currentSelection;\n return currentSelection;\n }\n }\n }\n\n memoizedSelection = _nextSelection;\n return _nextSelection;\n } // We may be able to reuse the previous invocation's result.\n\n\n // We may be able to reuse the previous invocation's result.\n var prevSnapshot = memoizedSnapshot;\n var prevSelection = memoizedSelection;\n\n if (objectIs(prevSnapshot, nextSnapshot)) {\n // The snapshot is the same as last time. Reuse the previous selection.\n return prevSelection;\n } // The snapshot has changed, so we need to compute a new selection.\n\n\n // The snapshot has changed, so we need to compute a new selection.\n var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n\n // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {\n return prevSelection;\n }\n\n memoizedSnapshot = nextSnapshot;\n memoizedSelection = nextSelection;\n return nextSelection;\n }; // Assigning this to a constant so that Flow knows it can't change.\n\n\n // Assigning this to a constant so that Flow knows it can't change.\n var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;\n\n var getSnapshotWithSelector = function () {\n return memoizedSelector(getSnapshot());\n };\n\n var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n };\n return [getSnapshotWithSelector, getServerSnapshotWithSelector];\n }, [getSnapshot, getServerSnapshot, selector, isEqual]),\n getSelection = _useMemo[0],\n getServerSelection = _useMemo[1];\n\n var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);\n useEffect(function () {\n inst.hasValue = true;\n inst.value = value;\n }, [value]);\n useDebugValue(value);\n return value;\n}\n\nexports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n"],"names":["require$$0","require$$1","withSelector_development"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAYA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,KAAC,WAAW;AAKd,UACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,gCACpC,YACF;AACA,uCAA+B,4BAA4B,IAAI,MAAK,CAAE;AAAA,MACvE;AACS,UAAI,QAAQA,oBAAAA;AACtB,UAAI,OAAOC,MAAAA;AAMX,eAAS,GAAG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AAY,OAAO;AAEtE,cAAI,0BAA0B,WAAY;AACxC,mBAAO,iBAAiB,YAAW,CAAE;AAAA,UAC3C;AAEI,cAAI,gCAAgC,2BAA2B,OAAO,SAAY,WAAY;AAC5F,mBAAO,iBAAiB,uBAAsB,CAAE;AAAA,UACtD;AACI,iBAAO,CAAC,yBAAyB,6BAA6B;AAAA,QAC/D,GAAE,CAAC,aAAa,mBAAmB,UAAU,OAAO,CAAC,GAClD,eAAe,SAAS,IACxB,qBAAqB,SAAS;AAElC,YAAI,QAAQ,qBAAqB,WAAW,cAAc,kBAAkB;AAC5E,kBAAU,WAAY;AACpB,eAAK,WAAW;AAChB,eAAK,QAAQ;AAAA,QACjB,GAAK,CAAC,KAAK,CAAC;AACV,sBAAc,KAAK;AACnB,eAAO;AAAA,MACR;AAEuCC,+BAAA,UAAA,mCAAG;AAE3C,UACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,+BACpC,YACF;AACA,uCAA+B,2BAA2B,IAAI,MAAK,CAAE;AAAA,MACtE;AAAA,IAED;EACA;;;;"}
@@ -0,0 +1,105 @@
1
+ import { __exports as withSelector_development } from "../../../../_virtual/with-selector.development.mjs";
2
+ import require$$0__default from "react";
3
+ import { __require as requireShim } from "../../shim/index.mjs";
4
+ /**
5
+ * @license React
6
+ * use-sync-external-store-shim/with-selector.development.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var hasRequiredWithSelector_development;
14
+ function requireWithSelector_development() {
15
+ if (hasRequiredWithSelector_development)
16
+ return withSelector_development;
17
+ hasRequiredWithSelector_development = 1;
18
+ if (process.env.NODE_ENV !== "production") {
19
+ (function() {
20
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
21
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
22
+ }
23
+ var React = require$$0__default;
24
+ var shim = requireShim();
25
+ function is(x, y) {
26
+ return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
27
+ }
28
+ var objectIs = typeof Object.is === "function" ? Object.is : is;
29
+ var useSyncExternalStore = shim.useSyncExternalStore;
30
+ var useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
31
+ function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
32
+ var instRef = useRef(null);
33
+ var inst;
34
+ if (instRef.current === null) {
35
+ inst = {
36
+ hasValue: false,
37
+ value: null
38
+ };
39
+ instRef.current = inst;
40
+ } else {
41
+ inst = instRef.current;
42
+ }
43
+ var _useMemo = useMemo(function() {
44
+ var hasMemo = false;
45
+ var memoizedSnapshot;
46
+ var memoizedSelection;
47
+ var memoizedSelector = function(nextSnapshot) {
48
+ if (!hasMemo) {
49
+ hasMemo = true;
50
+ memoizedSnapshot = nextSnapshot;
51
+ var _nextSelection = selector(nextSnapshot);
52
+ if (isEqual !== void 0) {
53
+ if (inst.hasValue) {
54
+ var currentSelection = inst.value;
55
+ if (isEqual(currentSelection, _nextSelection)) {
56
+ memoizedSelection = currentSelection;
57
+ return currentSelection;
58
+ }
59
+ }
60
+ }
61
+ memoizedSelection = _nextSelection;
62
+ return _nextSelection;
63
+ }
64
+ var prevSnapshot = memoizedSnapshot;
65
+ var prevSelection = memoizedSelection;
66
+ if (objectIs(prevSnapshot, nextSnapshot)) {
67
+ return prevSelection;
68
+ }
69
+ var nextSelection = selector(nextSnapshot);
70
+ if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
71
+ return prevSelection;
72
+ }
73
+ memoizedSnapshot = nextSnapshot;
74
+ memoizedSelection = nextSelection;
75
+ return nextSelection;
76
+ };
77
+ var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
78
+ var getSnapshotWithSelector = function() {
79
+ return memoizedSelector(getSnapshot());
80
+ };
81
+ var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
82
+ return memoizedSelector(maybeGetServerSnapshot());
83
+ };
84
+ return [getSnapshotWithSelector, getServerSnapshotWithSelector];
85
+ }, [getSnapshot, getServerSnapshot, selector, isEqual]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
86
+ var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
87
+ useEffect(function() {
88
+ inst.hasValue = true;
89
+ inst.value = value;
90
+ }, [value]);
91
+ useDebugValue(value);
92
+ return value;
93
+ }
94
+ withSelector_development.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
95
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
96
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
97
+ }
98
+ })();
99
+ }
100
+ return withSelector_development;
101
+ }
102
+ export {
103
+ requireWithSelector_development as __require
104
+ };
105
+ //# sourceMappingURL=with-selector.development.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-selector.development.mjs","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var React = require('react');\nvar shim = require('use-sync-external-store/shim');\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\nvar useSyncExternalStore = shim.useSyncExternalStore;\n\n// for CommonJS interop.\n\nvar useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.\n\nfunction useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {\n // Use this to track the rendered snapshot.\n var instRef = useRef(null);\n var inst;\n\n if (instRef.current === null) {\n inst = {\n hasValue: false,\n value: null\n };\n instRef.current = inst;\n } else {\n inst = instRef.current;\n }\n\n var _useMemo = useMemo(function () {\n // Track the memoized state using closure variables that are local to this\n // memoized instance of a getSnapshot function. Intentionally not using a\n // useRef hook, because that state would be shared across all concurrent\n // copies of the hook/component.\n var hasMemo = false;\n var memoizedSnapshot;\n var memoizedSelection;\n\n var memoizedSelector = function (nextSnapshot) {\n if (!hasMemo) {\n // The first time the hook is called, there is no memoized result.\n hasMemo = true;\n memoizedSnapshot = nextSnapshot;\n\n var _nextSelection = selector(nextSnapshot);\n\n if (isEqual !== undefined) {\n // Even if the selector has changed, the currently rendered selection\n // may be equal to the new selection. We should attempt to reuse the\n // current value if possible, to preserve downstream memoizations.\n if (inst.hasValue) {\n var currentSelection = inst.value;\n\n if (isEqual(currentSelection, _nextSelection)) {\n memoizedSelection = currentSelection;\n return currentSelection;\n }\n }\n }\n\n memoizedSelection = _nextSelection;\n return _nextSelection;\n } // We may be able to reuse the previous invocation's result.\n\n\n // We may be able to reuse the previous invocation's result.\n var prevSnapshot = memoizedSnapshot;\n var prevSelection = memoizedSelection;\n\n if (objectIs(prevSnapshot, nextSnapshot)) {\n // The snapshot is the same as last time. Reuse the previous selection.\n return prevSelection;\n } // The snapshot has changed, so we need to compute a new selection.\n\n\n // The snapshot has changed, so we need to compute a new selection.\n var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n\n // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {\n return prevSelection;\n }\n\n memoizedSnapshot = nextSnapshot;\n memoizedSelection = nextSelection;\n return nextSelection;\n }; // Assigning this to a constant so that Flow knows it can't change.\n\n\n // Assigning this to a constant so that Flow knows it can't change.\n var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;\n\n var getSnapshotWithSelector = function () {\n return memoizedSelector(getSnapshot());\n };\n\n var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n };\n return [getSnapshotWithSelector, getServerSnapshotWithSelector];\n }, [getSnapshot, getServerSnapshot, selector, isEqual]),\n getSelection = _useMemo[0],\n getServerSelection = _useMemo[1];\n\n var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);\n useEffect(function () {\n inst.hasValue = true;\n inst.value = value;\n }, [value]);\n useDebugValue(value);\n return value;\n}\n\nexports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n"],"names":["require$$0","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gB;AAEpB,gBAAI,SAAS,cAAc,YAAY,GAAG;AAExC,qBAAO;AAAA,YACR;AAID,gBAAI,gBAAgB,SAAS,YAAY;AASzC,gBAAI,YAAY,UAAa,QAAQ,eAAe,aAAa,GAAG;AAClE,qBAAO;AAAA,YACR;AAED,+BAAmB;AACnB,gCAAoB;AACpB,mBAAO;AAAA,UACb;AAII,cAAI,yBAAyB,sBAAsB,SAAY,OAAO;AAEtE,cAAI,0BAA0B,WAAY;AACxC,mBAAO,iBAAiB,YAAW,CAAE;AAAA,UAC3C;AAEI,cAAI,gCAAgC,2BAA2B,OAAO,SAAY,WAAY;AAC5F,mBAAO,iBAAiB,uBAAsB,CAAE;AAAA,UACtD;AACI,iBAAO,CAAC,yBAAyB,6BAA6B;AAAA,QAC/D,GAAE,CAAC,aAAa,mBAAmB,UAAU,OAAO,CAAC,GAClD,eAAe,SAAS,IACxB,qBAAqB,SAAS;AAElC,YAAI,QAAQ,qBAAqB,WAAW,cAAc,kBAAkB;AAC5E,kBAAU,WAAY;AACpB,eAAK,WAAW;AAChB,eAAK,QAAQ;AAAA,QACjB,GAAK,CAAC,KAAK,CAAC;AACV,sBAAc,KAAK;AACnB,eAAO;AAAA,MACR;AAEuC,+BAAA,mCAAG;AAE3C,UACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,+BACpC,YACF;AACA,uCAA+B,2BAA2B,IAAI,MAAK,CAAE;AAAA,MACtE;AAAA,IAED;EACA;;;"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const withSelector_production_min = require("../../../../_virtual/with-selector.production.min.js");
4
+ const require$$0 = require("react");
5
+ const index = require("../../shim/index.js");
6
+ const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
7
+ const require$$0__default = /* @__PURE__ */ _interopDefaultLegacy(require$$0);
8
+ /**
9
+ * @license React
10
+ * use-sync-external-store-shim/with-selector.production.min.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ var hasRequiredWithSelector_production_min;
18
+ function requireWithSelector_production_min() {
19
+ if (hasRequiredWithSelector_production_min)
20
+ return withSelector_production_min.__exports;
21
+ hasRequiredWithSelector_production_min = 1;
22
+ var h = require$$0__default.default, n = index.__require();
23
+ function p(a, b) {
24
+ return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
25
+ }
26
+ var q = "function" === typeof Object.is ? Object.is : p, r = n.useSyncExternalStore, t = h.useRef, u = h.useEffect, v = h.useMemo, w = h.useDebugValue;
27
+ withSelector_production_min.__exports.useSyncExternalStoreWithSelector = function(a, b, e, l, g) {
28
+ var c = t(null);
29
+ if (null === c.current) {
30
+ var f = { hasValue: false, value: null };
31
+ c.current = f;
32
+ } else
33
+ f = c.current;
34
+ c = v(function() {
35
+ function a2(a3) {
36
+ if (!c2) {
37
+ c2 = true;
38
+ d2 = a3;
39
+ a3 = l(a3);
40
+ if (void 0 !== g && f.hasValue) {
41
+ var b2 = f.value;
42
+ if (g(b2, a3))
43
+ return k = b2;
44
+ }
45
+ return k = a3;
46
+ }
47
+ b2 = k;
48
+ if (q(d2, a3))
49
+ return b2;
50
+ var e2 = l(a3);
51
+ if (void 0 !== g && g(b2, e2))
52
+ return b2;
53
+ d2 = a3;
54
+ return k = e2;
55
+ }
56
+ var c2 = false, d2, k, m = void 0 === e ? null : e;
57
+ return [function() {
58
+ return a2(b());
59
+ }, null === m ? void 0 : function() {
60
+ return a2(m());
61
+ }];
62
+ }, [b, e, l, g]);
63
+ var d = r(a, c[0], c[1]);
64
+ u(function() {
65
+ f.hasValue = true;
66
+ f.value = d;
67
+ }, [d]);
68
+ w(d);
69
+ return d;
70
+ };
71
+ return withSelector_production_min.__exports;
72
+ }
73
+ exports.__require = requireWithSelector_production_min;
74
+ //# sourceMappingURL=with-selector.production.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-selector.production.min.js","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var h=require(\"react\"),n=require(\"use-sync-external-store/shim\");function p(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var q=\"function\"===typeof Object.is?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;\nexports.useSyncExternalStoreWithSelector=function(a,b,e,l,g){var c=t(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=v(function(){function a(a){if(!c){c=!0;d=a;a=l(a);if(void 0!==g&&f.hasValue){var b=f.value;if(g(b,a))return k=b}return k=a}b=k;if(q(d,a))return b;var e=l(a);if(void 0!==g&&g(b,e))return b;d=a;return k=e}var c=!1,d,k,m=void 0===e?null:e;return[function(){return a(b())},null===m?void 0:function(){return a(m())}]},[b,e,l,g]);var d=r(a,c[0],c[1]);\nu(function(){f.hasValue=!0;f.value=d},[d]);w(d);return d};\n"],"names":["require$$0","require$$1","withSelector_production_min","a","c","d","b","e"],"mappings":";;;;;;;;;;;;;;;;;;;;;AASa,MAAI,IAAEA,oBAAAA,SAAiB,IAAEC,gBAAuC;AAAC,WAAS,EAAE,GAAE,GAAE;AAAC,WAAO,MAAI,MAAI,MAAI,KAAG,IAAE,MAAI,IAAE,MAAI,MAAI,KAAG,MAAI;AAAA,EAAC;AAAC,MAAI,IAAE,eAAa,OAAO,OAAO,KAAG,OAAO,KAAG,GAAE,IAAE,EAAE,sBAAqB,IAAE,EAAE,QAAO,IAAE,EAAE,WAAU,IAAE,EAAE,SAAQ,IAAE,EAAE;AAC/PC,8BAAA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../../_virtual/with-selector.production.min.mjs";
2
+ import require$$0__default from "react";
3
+ import { __require as requireShim } from "../../shim/index.mjs";
4
+ /**
5
+ * @license React
6
+ * use-sync-external-store-shim/with-selector.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var hasRequiredWithSelector_production_min;
14
+ function requireWithSelector_production_min() {
15
+ if (hasRequiredWithSelector_production_min)
16
+ return withSelector_production_min;
17
+ hasRequiredWithSelector_production_min = 1;
18
+ var h = require$$0__default, n = requireShim();
19
+ function p(a, b) {
20
+ return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
21
+ }
22
+ var q = "function" === typeof Object.is ? Object.is : p, r = n.useSyncExternalStore, t = h.useRef, u = h.useEffect, v = h.useMemo, w = h.useDebugValue;
23
+ withSelector_production_min.useSyncExternalStoreWithSelector = function(a, b, e, l, g) {
24
+ var c = t(null);
25
+ if (null === c.current) {
26
+ var f = { hasValue: false, value: null };
27
+ c.current = f;
28
+ } else
29
+ f = c.current;
30
+ c = v(function() {
31
+ function a2(a3) {
32
+ if (!c2) {
33
+ c2 = true;
34
+ d2 = a3;
35
+ a3 = l(a3);
36
+ if (void 0 !== g && f.hasValue) {
37
+ var b2 = f.value;
38
+ if (g(b2, a3))
39
+ return k = b2;
40
+ }
41
+ return k = a3;
42
+ }
43
+ b2 = k;
44
+ if (q(d2, a3))
45
+ return b2;
46
+ var e2 = l(a3);
47
+ if (void 0 !== g && g(b2, e2))
48
+ return b2;
49
+ d2 = a3;
50
+ return k = e2;
51
+ }
52
+ var c2 = false, d2, k, m = void 0 === e ? null : e;
53
+ return [function() {
54
+ return a2(b());
55
+ }, null === m ? void 0 : function() {
56
+ return a2(m());
57
+ }];
58
+ }, [b, e, l, g]);
59
+ var d = r(a, c[0], c[1]);
60
+ u(function() {
61
+ f.hasValue = true;
62
+ f.value = d;
63
+ }, [d]);
64
+ w(d);
65
+ return d;
66
+ };
67
+ return withSelector_production_min;
68
+ }
69
+ export {
70
+ requireWithSelector_production_min as __require
71
+ };
72
+ //# sourceMappingURL=with-selector.production.min.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-selector.production.min.mjs","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var h=require(\"react\"),n=require(\"use-sync-external-store/shim\");function p(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var q=\"function\"===typeof Object.is?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;\nexports.useSyncExternalStoreWithSelector=function(a,b,e,l,g){var c=t(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=v(function(){function a(a){if(!c){c=!0;d=a;a=l(a);if(void 0!==g&&f.hasValue){var b=f.value;if(g(b,a))return k=b}return k=a}b=k;if(q(d,a))return b;var e=l(a);if(void 0!==g&&g(b,e))return b;d=a;return k=e}var c=!1,d,k,m=void 0===e?null:e;return[function(){return a(b())},null===m?void 0:function(){return a(m())}]},[b,e,l,g]);var d=r(a,c[0],c[1]);\nu(function(){f.hasValue=!0;f.value=d},[d]);w(d);return d};\n"],"names":["require$$0","require$$1","a","c","d","b","e"],"mappings":";;;;;;;;;;;;;;;;;AASa,MAAI,IAAEA,qBAAiB,IAAEC,YAAuC;AAAC,WAAS,EAAE,GAAE,GAAE;AAAC,WAAO,MAAI,MAAI,MAAI,KAAG,IAAE,MAAI,IAAE,MAAI,MAAI,KAAG,MAAI;AAAA,EAAC;AAAC,MAAI,IAAE,eAAa,OAAO,OAAO,KAAG,OAAO,KAAG,GAAE,IAAE,E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AE,CAAC;AAAE,WAAO;AAAA,EAAC;;;"}
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const useSyncExternalStoreShim_development = require("../../../_virtual/use-sync-external-store-shim.development.js");
4
+ const require$$0 = require("react");
5
+ const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
6
+ const require$$0__default = /* @__PURE__ */ _interopDefaultLegacy(require$$0);
7
+ /**
8
+ * @license React
9
+ * use-sync-external-store-shim.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var hasRequiredUseSyncExternalStoreShim_development;
17
+ function requireUseSyncExternalStoreShim_development() {
18
+ if (hasRequiredUseSyncExternalStoreShim_development)
19
+ return useSyncExternalStoreShim_development.__exports;
20
+ hasRequiredUseSyncExternalStoreShim_development = 1;
21
+ if (process.env.NODE_ENV !== "production") {
22
+ (function() {
23
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
24
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
25
+ }
26
+ var React = require$$0__default.default;
27
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
28
+ function error(format) {
29
+ {
30
+ {
31
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
32
+ args[_key2 - 1] = arguments[_key2];
33
+ }
34
+ printWarning("error", format, args);
35
+ }
36
+ }
37
+ }
38
+ function printWarning(level, format, args) {
39
+ {
40
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
41
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
42
+ if (stack !== "") {
43
+ format += "%s";
44
+ args = args.concat([stack]);
45
+ }
46
+ var argsWithFormat = args.map(function(item) {
47
+ return String(item);
48
+ });
49
+ argsWithFormat.unshift("Warning: " + format);
50
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
51
+ }
52
+ }
53
+ function is(x, y) {
54
+ return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
55
+ }
56
+ var objectIs = typeof Object.is === "function" ? Object.is : is;
57
+ var useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue;
58
+ var didWarnOld18Alpha = false;
59
+ var didWarnUncachedGetSnapshot = false;
60
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
61
+ {
62
+ if (!didWarnOld18Alpha) {
63
+ if (React.startTransition !== void 0) {
64
+ didWarnOld18Alpha = true;
65
+ error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
66
+ }
67
+ }
68
+ }
69
+ var value = getSnapshot();
70
+ {
71
+ if (!didWarnUncachedGetSnapshot) {
72
+ var cachedValue = getSnapshot();
73
+ if (!objectIs(value, cachedValue)) {
74
+ error("The result of getSnapshot should be cached to avoid an infinite loop");
75
+ didWarnUncachedGetSnapshot = true;
76
+ }
77
+ }
78
+ }
79
+ var _useState = useState({
80
+ inst: {
81
+ value,
82
+ getSnapshot
83
+ }
84
+ }), inst = _useState[0].inst, forceUpdate = _useState[1];
85
+ useLayoutEffect(function() {
86
+ inst.value = value;
87
+ inst.getSnapshot = getSnapshot;
88
+ if (checkIfSnapshotChanged(inst)) {
89
+ forceUpdate({
90
+ inst
91
+ });
92
+ }
93
+ }, [subscribe, value, getSnapshot]);
94
+ useEffect(function() {
95
+ if (checkIfSnapshotChanged(inst)) {
96
+ forceUpdate({
97
+ inst
98
+ });
99
+ }
100
+ var handleStoreChange = function() {
101
+ if (checkIfSnapshotChanged(inst)) {
102
+ forceUpdate({
103
+ inst
104
+ });
105
+ }
106
+ };
107
+ return subscribe(handleStoreChange);
108
+ }, [subscribe]);
109
+ useDebugValue(value);
110
+ return value;
111
+ }
112
+ function checkIfSnapshotChanged(inst) {
113
+ var latestGetSnapshot = inst.getSnapshot;
114
+ var prevValue = inst.value;
115
+ try {
116
+ var nextValue = latestGetSnapshot();
117
+ return !objectIs(prevValue, nextValue);
118
+ } catch (error2) {
119
+ return true;
120
+ }
121
+ }
122
+ function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
123
+ return getSnapshot();
124
+ }
125
+ var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
126
+ var isServerEnvironment = !canUseDOM;
127
+ var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
128
+ var useSyncExternalStore$2 = React.useSyncExternalStore !== void 0 ? React.useSyncExternalStore : shim;
129
+ useSyncExternalStoreShim_development.__exports.useSyncExternalStore = useSyncExternalStore$2;
130
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
131
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
132
+ }
133
+ })();
134
+ }
135
+ return useSyncExternalStoreShim_development.__exports;
136
+ }
137
+ exports.__require = requireUseSyncExternalStoreShim_development;
138
+ //# sourceMappingURL=use-sync-external-store-shim.development.js.map