react-relay 14.1.0 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. package/ReactRelayContainerUtils.js.flow +1 -0
  2. package/ReactRelayContext.js +1 -1
  3. package/ReactRelayContext.js.flow +1 -0
  4. package/ReactRelayFragmentContainer.js.flow +6 -2
  5. package/ReactRelayFragmentMockRenderer.js.flow +1 -0
  6. package/ReactRelayLocalQueryRenderer.js.flow +5 -3
  7. package/ReactRelayPaginationContainer.js.flow +21 -12
  8. package/ReactRelayQueryFetcher.js.flow +20 -10
  9. package/ReactRelayQueryRenderer.js.flow +15 -11
  10. package/ReactRelayQueryRendererContext.js.flow +1 -0
  11. package/ReactRelayRefetchContainer.js.flow +9 -5
  12. package/ReactRelayTestMocker.js.flow +3 -1
  13. package/ReactRelayTypes.js.flow +2 -0
  14. package/RelayContext.js.flow +1 -0
  15. package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +2 -1
  16. package/__flowtests__/ReactRelayPaginationContainer-flowtest.js.flow +1 -0
  17. package/__flowtests__/ReactRelayRefetchContainer-flowtest.js.flow +1 -0
  18. package/__flowtests__/RelayModern-flowtest.js.flow +1 -0
  19. package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +1 -0
  20. package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +1 -0
  21. package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +1 -0
  22. package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +1 -0
  23. package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow +3 -1
  24. package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow +3 -1
  25. package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow +4 -2
  26. package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow +3 -1
  27. package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtestQuery.graphql.js.flow +4 -2
  28. package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow +3 -1
  29. package/__flowtests__/__generated__/RelayModernFlowtest_badref.graphql.js.flow +4 -2
  30. package/__flowtests__/__generated__/RelayModernFlowtest_notref.graphql.js.flow +4 -2
  31. package/__flowtests__/__generated__/RelayModernFlowtest_user.graphql.js.flow +3 -1
  32. package/__flowtests__/__generated__/RelayModernFlowtest_users.graphql.js.flow +3 -1
  33. package/assertFragmentMap.js.flow +1 -0
  34. package/buildReactRelayContainer.js.flow +10 -6
  35. package/getRootVariablesForFragments.js.flow +1 -1
  36. package/hooks.js +1 -1
  37. package/hooks.js.flow +4 -0
  38. package/index.js +1 -1
  39. package/index.js.flow +4 -0
  40. package/isRelayEnvironment.js.flow +1 -0
  41. package/jest-react/enqueueTask.js.flow +1 -1
  42. package/jest-react/index.js.flow +1 -1
  43. package/jest-react/internalAct.js.flow +1 -1
  44. package/legacy.js +1 -1
  45. package/legacy.js.flow +1 -0
  46. package/lib/ReactRelayContainerUtils.js +0 -11
  47. package/lib/ReactRelayContext.js +1 -12
  48. package/lib/ReactRelayFragmentContainer.js +23 -122
  49. package/lib/ReactRelayFragmentMockRenderer.js +0 -12
  50. package/lib/ReactRelayLocalQueryRenderer.js +12 -41
  51. package/lib/ReactRelayPaginationContainer.js +45 -341
  52. package/lib/ReactRelayQueryFetcher.js +36 -111
  53. package/lib/ReactRelayQueryRenderer.js +29 -137
  54. package/lib/ReactRelayQueryRendererContext.js +0 -10
  55. package/lib/ReactRelayRefetchContainer.js +33 -166
  56. package/lib/ReactRelayTestMocker.js +18 -128
  57. package/lib/ReactRelayTypes.js +0 -9
  58. package/lib/RelayContext.js +0 -23
  59. package/lib/assertFragmentMap.js +0 -16
  60. package/lib/buildReactRelayContainer.js +7 -41
  61. package/lib/getRootVariablesForFragments.js +2 -19
  62. package/lib/hooks.js +3 -30
  63. package/lib/index.js +3 -39
  64. package/lib/isRelayEnvironment.js +1 -16
  65. package/lib/jest-react/enqueueTask.js +1 -25
  66. package/lib/jest-react/index.js +0 -1
  67. package/lib/jest-react/internalAct.js +2 -51
  68. package/lib/legacy.js +0 -20
  69. package/lib/multi-actor/ActorChange.js +0 -14
  70. package/lib/multi-actor/index.js +0 -10
  71. package/lib/multi-actor/useRelayActorEnvironment.js +2 -16
  72. package/lib/relay-hooks/EntryPointContainer.react.js +7 -23
  73. package/lib/relay-hooks/EntryPointTypes.flow.js +0 -10
  74. package/lib/relay-hooks/FragmentResource.js +130 -280
  75. package/lib/relay-hooks/HooksImplementation.js +0 -14
  76. package/lib/relay-hooks/InternalLogger.js +0 -11
  77. package/lib/relay-hooks/LRUCache.js +0 -39
  78. package/lib/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js +27 -65
  79. package/lib/relay-hooks/MatchContainer.js +9 -111
  80. package/lib/relay-hooks/NestedRelayEntryPointBuilderUtils.js +9 -0
  81. package/lib/relay-hooks/ProfilerContext.js +0 -14
  82. package/lib/relay-hooks/QueryResource.js +14 -149
  83. package/lib/relay-hooks/RelayEnvironmentProvider.js +3 -17
  84. package/lib/relay-hooks/SuspenseResource.js +2 -59
  85. package/lib/relay-hooks/loadEntryPoint.js +10 -45
  86. package/lib/relay-hooks/loadQuery.js +29 -169
  87. package/lib/relay-hooks/preloadQuery_DEPRECATED.js +8 -58
  88. package/lib/relay-hooks/prepareEntryPoint_DEPRECATED.js +6 -24
  89. package/lib/relay-hooks/react-cache/RelayReactCache.js +4 -20
  90. package/lib/relay-hooks/react-cache/getQueryResultOrFetchQuery_REACT_CACHE.js +13 -102
  91. package/lib/relay-hooks/react-cache/readFragmentInternal_REACT_CACHE.js +18 -75
  92. package/lib/relay-hooks/react-cache/useFragmentInternal_REACT_CACHE.js +79 -222
  93. package/lib/relay-hooks/react-cache/useFragment_REACT_CACHE.js +3 -27
  94. package/lib/relay-hooks/react-cache/useLazyLoadQuery_REACT_CACHE.js +11 -33
  95. package/lib/relay-hooks/react-cache/usePaginationFragment_REACT_CACHE.js +62 -85
  96. package/lib/relay-hooks/react-cache/usePreloadedQuery_REACT_CACHE.js +20 -63
  97. package/lib/relay-hooks/react-cache/useRefetchableFragmentInternal_REACT_CACHE.js +53 -179
  98. package/lib/relay-hooks/react-cache/useRefetchableFragment_REACT_CACHE.js +5 -27
  99. package/lib/relay-hooks/useBlockingPaginationFragment.js +58 -121
  100. package/lib/relay-hooks/useClientQuery.js +0 -21
  101. package/lib/relay-hooks/useEntryPointLoader.js +12 -100
  102. package/lib/relay-hooks/useFetchTrackingRef.js +6 -33
  103. package/lib/relay-hooks/useFragment.js +5 -32
  104. package/lib/relay-hooks/useFragmentNode.js +14 -55
  105. package/lib/relay-hooks/useIsMountedRef.js +2 -14
  106. package/lib/relay-hooks/useIsOperationNodeActive.js +6 -29
  107. package/lib/relay-hooks/useIsParentQueryActive.js +1 -15
  108. package/lib/relay-hooks/useLazyLoadQuery.js +2 -23
  109. package/lib/relay-hooks/useLazyLoadQueryNode.js +18 -63
  110. package/lib/relay-hooks/useLoadMoreFunction.js +44 -100
  111. package/lib/relay-hooks/useMemoOperationDescriptor.js +4 -23
  112. package/lib/relay-hooks/useMemoVariables.js +8 -43
  113. package/lib/relay-hooks/useMutation.js +6 -34
  114. package/lib/relay-hooks/usePaginationFragment.js +49 -89
  115. package/lib/relay-hooks/usePreloadedQuery.js +10 -54
  116. package/lib/relay-hooks/useQueryLoader.js +18 -116
  117. package/lib/relay-hooks/useRefetchableFragment.js +4 -30
  118. package/lib/relay-hooks/useRefetchableFragmentNode.js +58 -184
  119. package/lib/relay-hooks/useRelayEnvironment.js +2 -16
  120. package/lib/relay-hooks/useStaticFragmentNodeWarning.js +2 -20
  121. package/lib/relay-hooks/useSubscribeToInvalidationState.js +3 -28
  122. package/lib/relay-hooks/useSubscription.js +3 -22
  123. package/lib/relay-hooks/useUnsafeRef_DEPRECATED.js +12 -0
  124. package/multi-actor/ActorChange.js.flow +1 -1
  125. package/multi-actor/index.js.flow +1 -1
  126. package/multi-actor/useRelayActorEnvironment.js.flow +2 -2
  127. package/package.json +2 -2
  128. package/react-relay-hooks.js +2 -2
  129. package/react-relay-hooks.min.js +2 -2
  130. package/react-relay-legacy.js +2 -2
  131. package/react-relay-legacy.min.js +2 -2
  132. package/react-relay.js +2 -2
  133. package/react-relay.min.js +2 -2
  134. package/relay-hooks/EntryPointContainer.react.js.flow +6 -1
  135. package/relay-hooks/EntryPointTypes.flow.js.flow +23 -20
  136. package/relay-hooks/FragmentResource.js.flow +148 -34
  137. package/relay-hooks/HooksImplementation.js.flow +1 -1
  138. package/relay-hooks/InternalLogger.js.flow +1 -1
  139. package/relay-hooks/LRUCache.js.flow +1 -1
  140. package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +19 -10
  141. package/relay-hooks/MatchContainer.js.flow +1 -1
  142. package/relay-hooks/NestedRelayEntryPointBuilderUtils.js.flow +51 -0
  143. package/relay-hooks/ProfilerContext.js.flow +1 -1
  144. package/relay-hooks/QueryResource.js.flow +25 -5
  145. package/relay-hooks/RelayEnvironmentProvider.js.flow +2 -2
  146. package/relay-hooks/SuspenseResource.js.flow +1 -1
  147. package/relay-hooks/__flowtests__/EntryPointTypes/EntryPointElementConfig-flowtest.js.flow +3 -1
  148. package/relay-hooks/__flowtests__/EntryPointTypes/NestedEntrypoints-flowtest.js.flow +9 -7
  149. package/relay-hooks/__flowtests__/__generated__/useFragmentFlowtest_user.graphql.js.flow +3 -1
  150. package/relay-hooks/__flowtests__/__generated__/useFragmentFlowtest_users.graphql.js.flow +3 -1
  151. package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +40 -33
  152. package/relay-hooks/__flowtests__/useFragment-flowtest.js.flow +1 -1
  153. package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +38 -32
  154. package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +20 -18
  155. package/relay-hooks/__flowtests__/utils.js.flow +13 -2
  156. package/relay-hooks/loadEntryPoint.js.flow +15 -8
  157. package/relay-hooks/loadQuery.js.flow +32 -8
  158. package/relay-hooks/preloadQuery_DEPRECATED.js.flow +5 -6
  159. package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +17 -10
  160. package/relay-hooks/react-cache/RelayReactCache.js.flow +1 -1
  161. package/relay-hooks/react-cache/getQueryResultOrFetchQuery_REACT_CACHE.js.flow +4 -4
  162. package/relay-hooks/react-cache/readFragmentInternal_REACT_CACHE.js.flow +5 -4
  163. package/relay-hooks/react-cache/useFragmentInternal_REACT_CACHE.js.flow +32 -14
  164. package/relay-hooks/react-cache/useFragment_REACT_CACHE.js.flow +4 -10
  165. package/relay-hooks/react-cache/useLazyLoadQuery_REACT_CACHE.js.flow +1 -1
  166. package/relay-hooks/react-cache/usePaginationFragment_REACT_CACHE.js.flow +39 -49
  167. package/relay-hooks/react-cache/usePreloadedQuery_REACT_CACHE.js.flow +1 -2
  168. package/relay-hooks/react-cache/useRefetchableFragmentInternal_REACT_CACHE.js.flow +29 -16
  169. package/relay-hooks/react-cache/useRefetchableFragment_REACT_CACHE.js.flow +17 -33
  170. package/relay-hooks/useBlockingPaginationFragment.js.flow +85 -58
  171. package/relay-hooks/useClientQuery.js.flow +3 -3
  172. package/relay-hooks/useEntryPointLoader.js.flow +10 -6
  173. package/relay-hooks/useFetchTrackingRef.js.flow +5 -4
  174. package/relay-hooks/useFragment.js.flow +2 -2
  175. package/relay-hooks/useFragmentNode.js.flow +7 -6
  176. package/relay-hooks/useIsMountedRef.js.flow +1 -1
  177. package/relay-hooks/useIsOperationNodeActive.js.flow +1 -1
  178. package/relay-hooks/useIsParentQueryActive.js.flow +1 -1
  179. package/relay-hooks/useLazyLoadQuery.js.flow +2 -2
  180. package/relay-hooks/useLazyLoadQueryNode.js.flow +2 -2
  181. package/relay-hooks/useLoadMoreFunction.js.flow +27 -16
  182. package/relay-hooks/useMemoOperationDescriptor.js.flow +3 -3
  183. package/relay-hooks/useMemoVariables.js.flow +13 -29
  184. package/relay-hooks/useMutation.js.flow +30 -13
  185. package/relay-hooks/usePaginationFragment.js.flow +55 -54
  186. package/relay-hooks/usePreloadedQuery.js.flow +47 -22
  187. package/relay-hooks/useQueryLoader.js.flow +78 -21
  188. package/relay-hooks/useRefetchableFragment.js.flow +65 -33
  189. package/relay-hooks/useRefetchableFragmentNode.js.flow +38 -17
  190. package/relay-hooks/useRelayEnvironment.js.flow +2 -2
  191. package/relay-hooks/useStaticFragmentNodeWarning.js.flow +3 -3
  192. package/relay-hooks/useSubscribeToInvalidationState.js.flow +2 -2
  193. package/relay-hooks/useSubscription.js.flow +1 -1
  194. package/relay-hooks/useUnsafeRef_DEPRECATED.js.flow +25 -0
  195. package/lib/readContext.js +0 -27
  196. package/readContext.js.flow +0 -29
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v14.1.0
2
+ * Relay v16.0.0
3
3
  */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual"],t):"object"==typeof exports?exports.ReactRelayHooks=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=t(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"])}(window,(function(e,t,r,n,a,i,o,u,s,l,c){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=26)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(3),a=r(0).useContext,i=r(15);e.exports=function(){var e=a(i);return null==e&&n(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(3),i=r(0),o=r(1),u=o.Observable,s=o.PreloadableQueryRegistry,l=o.RelayFeatureFlags,c=o.ReplaySubject,f=o.__internal.fetchQueryDeduped,d=o.createOperationDescriptor,p=o.getRequest,h=o.getRequestIdentifier,v=r(5),m=null,y=100001;e.exports={loadQuery:function(e,t,r,o,g){var b,_,R,E,P=null===(b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===b||null===(_=b.ReactCurrentDispatcher)||void 0===_?void 0:_.current;v(null==m||P!==m,"Relay: `%s` should not be called inside a React render function.",null!==(R=null==o?void 0:o.__nameForWarning)&&void 0!==R?R:"loadQuery"),y++;var k,C,x,S,w,I,q=null!==(E=null==o?void 0:o.fetchPolicy)&&void 0!==E?E:"store-or-network",D=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),F=!1,A=function(t,r){return F=!0,e.executeWithSource({operation:t,source:r})},N=new c,Q=u.create((function(e){return N.subscribe(e)})),T=null,O=!1,M=function(t){var n;O=!0;var a=new c;if(!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(t,r);n=f(e,i,(function(){return e.getNetwork().execute(t,r,D)}))}else{n=e.getNetwork().execute(t,r,D)}var o=n.subscribe({error:function(e){T=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return C=o,u.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),C()}}))},L=function(t,r){!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(O=!0);var n=f(e,t.request.identifier,r).subscribe({error:function(e){N.error(e)},next:function(e){N.next(e)},complete:function(){N.complete()}});x=n.unsubscribe},U=function(t){var n=d(t,r,D);(k=e.retain(n),"store-only"!==q)&&(("store-or-network"!==q||"available"!==e.check(n).status)&&L(n,(function(){var e=M(t.params);return A(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(I=(S=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",S.name);var j=s.get(I);if(null!=j)U(j);else{var W="store-only"===q?null:M(S),B=s.onLoad(I,(function(t){w();var n=d(t,r,D);k=e.retain(n),null!=W&&L(n,(function(){return A(n,W)}))}));w=B.dispose}}else{var K=p(t);I=null!=(S=K.params).cacheID?S.cacheID:S.id,U(K)}var V=!1,H=!1,G=!1,z=function(){H||(k&&k.dispose(),H=!0)},Y=function(){G||(F?x&&x():C&&C(),w&&w(),G=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){V||(z(),Y(),V=!0)},releaseQuery:z,cancelNetworkRequest:Y,fetchKey:y,id:I,get isDisposed(){return V||H},get networkError(){return T},name:S.name,networkCacheConfig:D,fetchPolicy:q,source:O?Q:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===m&&(m=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(0),a=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t,r){"use strict";var n=r(5),a=null;e.exports={inject:function(e){n(null!==a,"Relay HooksImplementation was injected twice."),a=e},get:function(){return a}}},function(e,t,r){"use strict";var n=r(18).getFragmentResourceForEnvironment,a=r(2),i=r(0),o=i.useEffect,u=i.useRef,s=i.useState,l=r(1).getFragmentIdentifier,c=r(5);e.exports=function(e,t,r){var i=a(),f=n(i),d=u(!1),p=s(0)[1],h=l(e,t),v=f.readWithIdentifier(e,t,h,r),m=u(!0);function y(){!1!==d.current&&!1!==m.current&&p((function(e){return e+1}))}return o((function(){d.current=!0;var e=f.subscribe(v,y);return function(){d.current=!1,e.dispose()}}),[i,h]),null!=t&&(void 0===v.data||Array.isArray(v.data)&&v.data.length>0&&v.data.every((function(e){return void 0===e})))&&c(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),{data:v.data,disableStoreUpdates:function(){m.current=!1},enableStoreUpdates:function(){m.current=!0,f.checkMissedUpdates(v)[0]&&y()}}}},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(4).default,a=n(r(7)),i=n(r(12)),o=r(19),u=r(20),s=r(3),l=r(1).isPromise,c=r(5),f="function"==typeof WeakMap;function d(e){return void 0!==e.request.node.params.metadata.live}function p(e,t,r,n,a){var i=null!=r?r:"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(o,"-").concat(t.request.identifier);return null!=a?"".concat(u,"-").concat(a):u}function h(e,t){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var v=2e5;function m(e,t,r,n,a,i){var o=d(t),s=n,l=a,c=new u((function(e){var r=e.retain(t);return{dispose:function(){o&&null!=l&&l.unsubscribe(),r.dispose(),i(f)}}})),f={cacheIdentifier:e,id:v++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var y=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,i,o){var u=p(this._environment,e,r,n,i);return this.prepareWithIdentifier(u,e,t,r,n,a,o)},t.prepareWithIdentifier=function(e,t,r,n,i,o,u){var s=this._environment,c=null!=n?n:"store-or-network",f=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,h=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,t,r,c,f,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),p=d.temporaryRetain(s);var v=d.getValue();if(l(v))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:h,operation:t,queryAvailability:d.operationAvailability,renderPolicy:f}),v;if(v instanceof Error)throw v;return v},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,null,e,null),o=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){o.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=p(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var i=this._cache.get(e);return null==i&&(i=m(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,i)),i},t._fetchAndSaveQuery=function(e,t,r,n,i,o,u){var l,f,p=this,v=this._environment,y=v.check(t),g=y.status,b="available"===g,_=b||"partial"===i&&"stale"!==g,R=function(){};switch(n){case"store-only":l=!1,f=!0;break;case"store-or-network":l=!b,f=_;break;case"store-and-network":l=!0,f=_;break;case"network-only":default:l=!0,f=!1}if(f){var E=h(t,e),P=m(e,t,y,E,null,this._clearCacheEntry);this._cache.set(e,P)}if(l){var k,C=h(t,e);r.subscribe({start:function(r){k=r;var n=p._cache.get(e);n&&n.setNetworkSubscription(k);var i=null==u?void 0:u.start;i&&i((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){d(t)&&r.unsubscribe()}}))},next:function(){var r=p._getOrCreateCacheEntry(e,t,y,C,k);r.processedPayloadsCount+=1,r.setValue(C),R();var n=null==u?void 0:u.next;null!=n&&n(v.lookup(t.fragment))},error:function(r){var n=p._getOrCreateCacheEntry(e,t,y,r,k);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",t.fragment.node.name,String(r.message)),R(),k=null,n.setNetworkSubscription(null);var a=null==u?void 0:u.error;a&&a(r)},complete:function(){R(),k=null;var t=p._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==u?void 0:u.complete;r&&r()},unsubscribe:null==u?void 0:u.unsubscribe});var x=this._cache.get(e);if(!x){var S=new Promise((function(e){R=e}));S.displayName="Relay("+t.fragment.node.name+")",x=m(e,t,y,S,k,this._clearCacheEntry),this._cache.set(e,x)}}else{var w=null==u?void 0:u.complete;w&&w()}var I=this._cache.get(e);return null==I&&s(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),v.__log({name:"queryresource.fetch",resourceID:I.id,operation:t,profilerContext:o,fetchPolicy:n,renderPolicy:i,queryAvailability:y,shouldFetch:l}),I},e}();function g(e){return new y(e)}var b=f?new WeakMap:new Map;e.exports={createQueryResource:g,getQueryResourceForEnvironment:function(e){var t=b.get(e);if(t)return t;var r=g(e);return b.set(e,r),r},getQueryCacheIdentifier:p}},function(e,t,r){"use strict";var n=r(0).useRef,a=r(5);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(6).loadQuery;e.exports=function e(t,r,a){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var o=r.getPreloadProps(a),u=o.queries,s=o.entryPoints,l=o.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var r=u[e],a=r.environmentProviderOptions,i=r.options,o=r.parameters,s=r.variables,l=t.getEnvironment(a);c[e]=n(l,o,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=s&&Object.keys(s).forEach((function(r){var n=s[r];if(null!=n){var a=n.entryPoint,i=n.entryPointParams;f[r]=e(t,a,i)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=l?l:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(4).default,a=n(r(7)),i=n(r(12)),o=n(r(31)),u=r(19),s=r(13).getQueryResourceForEnvironment,l=r(20),c=r(3),f=r(1),d=f.RelayFeatureFlags,p=f.__internal,h=p.fetchQuery,v=p.getPromiseForActiveRequest,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,b=f.getSelector,_=f.getVariablesFromFragment,R=f.handlePotentialSnapshotErrors,E=f.isPromise,P=f.recycleNodesInto,k="function"==typeof WeakMap,C=Object.freeze([]);function x(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function S(e){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function w(e,t,r){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:x(t),storeEpoch:r}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:x(t),storeEpoch:r}}var I=function(){function e(e){(0,i.default)(this,"_cache",new Map),(0,i.default)(this,"_retainCounts",new Map),this._environment=e}var t=e.prototype;return t.get=function(e){var t,r;return null!==(t=null===(r=this._cache.get(e))||void 0===r?void 0:r[0])&&void 0!==t?t:void 0},t.recordQueryResults=function(e,t){var r=this,n=this._cache.get(e);if(n){var a=n[0],i=n[1];t.forEach((function(e){a.push(e)})),i.temporaryRetain(this._environment)}else{var o=new l((function(){return r._retain(e)}));this._cache.set(e,[t,o]),o.temporaryRetain(this._environment)}},t._retain=function(e){var t,r=this,n=(null!==(t=this._retainCounts.get(e))&&void 0!==t?t:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var t,n=(null!==(t=r._retainCounts.get(e))&&void 0!==t?t:0)-1;n>0?r._retainCounts.set(e,n):(r._retainCounts.delete(e),r._cache.delete(e))}}},e}(),q=function(){function e(e){this._environment=e,this._cache=u.create(1e6),d.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new I(e))}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,y(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var i,u,l,f,p=this,h=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var m=h.getStore().getEpoch();if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||c(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=a?" for key `".concat(a,"`"):"",e.name,typeof t,e.name),0===t.length))return{cacheKey:r,data:C,isMissingData:!1,snapshot:C,storeEpoch:m};var y=this._cache.get(r);if(null!=y){var g;if("pending"===y.kind&&E(y.promise))throw h.__log({name:"suspense.fragment",data:y.result.data,fragment:e,isRelayHooks:!0,isMissingData:y.result.isMissingData,isPromiseCached:!0,pendingOperations:y.pendingOperations}),y.promise;if("done"===y.kind&&y.result.snapshot&&(null===(g=S(y.result.snapshot))||void 0===g||!g.length))return this._handlePotentialSnapshotErrorsInSnapshot(y.result.snapshot),y.result}var _=b(e,t);null==_&&c(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,n,e.name,null==a?"a fragment reference":"the `".concat(a,"`"),n);var R="PluralReaderSelector"===_.kind?_.selectors.map((function(e){return h.lookup(e)})):h.lookup(_),P=w(r,R,m);if(!P.isMissingData)return this._handlePotentialSnapshotErrorsInSnapshot(R),this._cache.set(r,{kind:"done",result:P}),P;var k=null;if(d.ENABLE_CLIENT_EDGES&&!0===(null===(u=e.metadata)||void 0===u?void 0:u.hasClientEdges)&&function(e){var t,r;return Array.isArray(e)?e.some((function(e){var t,r;return(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0})):(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0}(R)){k=[];var x=s(this._environment),I=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(R,(function(r){var n;null===(n=r.missingClientEdges)||void 0===n||n.forEach((function(r){var n,a=r.request,i=r.clientEdgeDestinationID,o=p._performClientEdgeQuery(x,e,t,a,i),u=o.queryResult,s=o.requestDescriptor;I.push(u),null===(n=k)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&c(!1,"Client edge query result cache should exist when ENABLE_CLIENT_EDGES is on."),this._clientEdgeQueryResultsCache.recordQueryResults(r,I)}var q=[];d.ENABLE_CLIENT_EDGES&&k&&(q=k.map((function(e){return v(p._environment,e)})).filter(Boolean));var D="PluralReaderSelector"===_.kind?_.selectors[0].owner:_.owner,F=this._getAndSavePromiseForFragmentRequestInFlight(r,e,D,P),A=null==F?void 0:F.promise,N=null!==(l=null===(f=S(R))||void 0===f?void 0:f.map((function(e){var t=e.liveStateID;return h.getStore().getLiveResolverPromise(t)})))&&void 0!==l?l:[];if(q.length||N.length||E(A)){var Q,T;h.__log({name:"suspense.fragment",data:P.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:P.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(Q=null==F?void 0:F.pendingOperations)&&void 0!==Q?Q:[]),(0,o.default)(null!==(T=k)&&void 0!==T?T:[]))});var O=[];if(q.length>0&&(O=O.concat(q)),N.length>0&&(O=O.concat(N)),O.length>0)throw A&&O.push(A),Promise.all(O);if(A)throw A}return this._handlePotentialSnapshotErrorsInSnapshot(R),w(r,R,m)},t._performClientEdgeQuery=function(e,t,r,n,i){var o=_(t,r),u=(0,a.default)((0,a.default)({},o),{},{id:i}),s=m(n,u,{}),l=h(this._environment,s),c=e.prepare(s,l);return{requestDescriptor:s.request,queryResult:c}},t._handlePotentialSnapshotErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){R(t._environment,e.missingRequiredFields,e.relayResolverErrors)})):R(this._environment,e.missingRequiredFields,e.relayResolverErrors)},t.readSpec=function(e,t,r){var n={};for(var a in e)n[a]=this.read(e[a],t[a],r,a);return n},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var o=this.checkMissedUpdates(e),u=o[0],l=o[1];u&&t();var f=[];if(Array.isArray(i)?(Array.isArray(l)||c(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),l.forEach((function(e,i){f.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();r._updatePluralSnapshot(a,l,e,i,o),t()})))}))):((null==l||Array.isArray(l))&&c(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),f.push(n.subscribe(l,(function(e){var i=n.getStore().getEpoch();r._cache.set(a,{kind:"done",result:w(a,e,i)}),t()})))),d.ENABLE_CLIENT_EDGES){var p,h,v=null!==(p=null===(h=this._clientEdgeQueryResultsCache)||void 0===h?void 0:h.get(a))&&void 0!==p?p:void 0;if(null!=v&&v.length){var m=s(this._environment);v.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),r._cache.delete(a)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,r=e.snapshot;if(!r)return[!1,null];var n;if(n=t.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(r)){var o=!1,u=[];return r.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,s=n.data,l=P(i,s);l!==i&&(n=(0,a.default)((0,a.default)({},n),{},{data:l}),o=!0),u[r]=n})),o&&this._cache.set(i,{kind:"done",result:w(i,u,n)}),[o,u]}var s=t.lookup(r.selector),l=r.data,c=s.data,f=P(l,c),d={data:f,isMissingData:s.isMissingData,missingClientEdges:s.missingClientEdges,missingLiveResolverFields:s.missingLiveResolverFields,seenRecords:s.seenRecords,selector:s.selector,missingRequiredFields:s.missingRequiredFields,relayResolverErrors:s.relayResolverErrors};return f!==l&&this._cache.set(i,{kind:"done",result:w(i,d,n)}),[f!==l,d]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,r,n){var a=this,i=g(this._environment,t,r);if(null==i)return null;var o=i.promise,u=i.pendingOperations,s=o.then((function(){a._cache.delete(e)})).catch((function(t){a._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},t._updatePluralSnapshot=function(e,t,r,n,a){var i,u=this._cache.get(e);if(E(u))D(r.selector.node.name);else{var s=null==u||null===(i=u.result)||void 0===i?void 0:i.snapshot;if(!s||Array.isArray(s)){var l=s?(0,o.default)(s):(0,o.default)(t);l[n]=r,this._cache.set(e,{kind:"done",result:w(e,l,a)})}else D(r.selector.node.name)}},e}();function D(e){c(!1,"Relay: Expected to find cached data for plural fragment `%s` when receiving a subscription. If you're seeing this, this is likely a bug in Relay.",e)}function F(e){return new q(e)}var A=k?new WeakMap:new Map;e.exports={createFragmentResource:F,getFragmentResourceForEnvironment:function(e){var t=A.get(e);if(t)return t;var r=F(e);return A.set(e,r),r}}},function(e,t,r){"use strict";var n=r(3),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(12)),a=r(3),i=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null==t._retainDisposable&&a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),t._retainDisposable.dispose(),t._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(i,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=i},function(e,t,r){"use strict";var n=r(9),a=r(13),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,u=r(22),s=r(11),l=r(2),c=r(0),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=l(),g=f(n),b=o(y),_=p(0),R=_[0],E=_[1],P=u(),k=P.startFetch,C=P.completeFetch,x="".concat(R,"-").concat(null!=v?v:""),S=i(y,t,c,m,x),w=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,t,a,c,m,{start:k,complete:C,error:C},g)})),I=h(!1);d((function(){return function(){I.current=!0}}),[]),d((function(){if(!0===I.current)return I.current=!1,void E((function(e){return e+1}));var e=b.retain(w,g);return function(){e.dispose()}}),[y,S]),d((function(){b.releaseTemporaryRetain(w)}));var q=w.fragmentNode,D=w.fragmentRef;return s(q,D,r).data}},function(e,t,r){"use strict";var n=r(0),a=n.useCallback,i=n.useEffect,o=n.useRef;e.exports=function(){var e=o(null),t=o(!1),r=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),n=a((function(r){e.current=r,t.current=!0}),[]),u=a((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:n,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(33),a=r(0),i=r(1),o=i.createOperationDescriptor,u=i.getRequest,s=a.useMemo;e.exports=function(e,t,r){var a=n(t)[0],i=n(r||{})[0];return s((function(){return o(u(e),a,i)}),[e,a,i])}},function(e,t,r){"use strict";var n,a=(0,r(4).default)(r(7)),i=r(18).getFragmentResourceForEnvironment,o=r(9),u=r(13).getQueryResourceForEnvironment,s=r(11),l=r(8),c=r(25),f=r(2),d=r(3),p=r(0),h=p.useCallback,v=p.useContext,m=p.useReducer,y=r(1),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,_=y.getFragmentIdentifier,R=y.getRefetchMetadata,E=y.getSelector,P=y.getValueAtPath,k=r(5);function C(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n){var a=r(1).Record,i=null==e?void 0:e.id;if(1!==t.length||"node"!==t[0]||null==i)return null;var o=n.getStore().getSource().get(i),u=o&&a.getType(o);return null==u?null:{id:i,typename:u}},checkSameTypeAfterRefetch:function(e,t,n,a){var i=r(1).Record;if(e){var o=t.getStore().getSource().get(e.id),u=o&&i.getType(o);u!==e.typename&&k(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,u,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var i=t[r(1).ID_KEY];null!=i&&i!==e.id&&k(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,n.name,a)}}},e.exports=function(e,t,r){var p=f(),y=R(e,r),x=y.refetchableRequest,S=y.fragmentRefPathInResponse,w=y.identifierField,I=_(e,t),q=m(C,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:I,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=q[0],F=q[1],A=D.fetchPolicy,N=D.mirroredEnvironment,Q=D.mirroredFragmentIdentifier,T=D.onComplete,O=D.refetchEnvironment,M=D.refetchQuery,L=D.renderPolicy,U=null!=O?O:p,j=u(U),W=i(U),B=v(o),K=U!==N||I!==Q,V=c(x),H=V[0],G=V[1],z=V[2],Y=t;if(K)F({type:"reset",environment:U,fragmentIdentifier:I}),z();else if(null!=M&&null!=H){var X;X=n.getInitialIDAndType(M.request.variables,S,U);var J=function(e){T&&T(null!=e?e:null)},Z=null!=H.source?H.source:g(U,M),$=B.wrapPrepareQueryResource((function(){return j.prepare(M,Z,A,L,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,U,e,r),J()}},H.fetchKey,B)})),ee=W.read($.fragmentNode,$.fragmentRef,r).data;null==ee&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),Y=P(ee,S),n.checkSameIDAfterRefetch(X,Y,e,r)}var te=s(e,Y,r),re=te.data,ne=te.disableStoreUpdates,ae=te.enableStoreUpdates;return{fragmentData:re,fragmentRef:Y,refetch:function(e,t,r,n,i,o,u,s,c,f,d){var p=l(),v=null!=s&&null!=n&&"object"==typeof n?n[s]:null;return h((function(n,i){if(!0!==p.current)return k(!1,"Relay: Unexpected call to `refetch` on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",o.name,e),{dispose:function(){}};null==f&&k(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var u,l,h=null==i?void 0:i.__environment,m=null==i?void 0:i.fetchPolicy,y=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,_=E(o,f);if(null==_)u={},l={};else if("PluralReaderSelector"===_.kind){var R,P,C,x;u=null!==(R=null===(P=_.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==R?R:{},l=null!==(C=null===(x=_.selectors[0])||void 0===x?void 0:x.variables)&&void 0!==C?C:{}}else u=_.owner.variables,l=_.variables;var S=(0,a.default)((0,a.default)((0,a.default)({},u),l),n);null==s||n.hasOwnProperty("id")||("string"!=typeof v&&k(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s,v),S.id=v);var w=b(d,S,{force:!0});return c(w.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:w,renderPolicy:y}),{dispose:r}}),[i,t,r,v,c])}(r,F,z,re,I,e,0,w,G,t,x),disableStoreUpdates:ne,enableStoreUpdates:ae}}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(17)),a=r(6),i=a.loadQuery,o=a.useTrackLoadQueryInRender,u=r(8),s=r(2),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h=r(1).getRequest,v={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,a=s();o();var l=u(),h=d(new Set([r])),y=p((function(){return r})),g=y[0],b=y[1],_=p((function(){return r})),R=_[0],E=_[1];r!==R&&(h.current.add(r),E(r),b(r));var P=c((function(){l.current&&(h.current.add(v),b(v))}),[l]),k=c((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(l.current){var o,u=i(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:a,e,t,n);h.current.add(u),b(u)}}),[a,e,b,l]),C=d(!1);return f((function(){return function(){C.current=!0}}),[]),f((function(){if(!0===C.current)return C.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=h.current;if(l.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i===g)break;t.delete(i),"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,l,k,e]),f((function(){return function(){var t,r=(0,n.default)(h.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,P]}},function(e,t,r){"use strict";var n=r(27),a=r(16),i=r(6).loadQuery,o=r(28),u=r(29),s=r(30),l=r(32),c=r(35),f=r(36),d=r(39),p=r(25),h=r(40),v=r(2),m=r(41),y=r(42),g=r(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:o,fetchQuery:g.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:s,useLazyLoadQuery:l,useEntryPointLoader:u,useQueryLoader:p,useMutation:c,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:h,useRelayEnvironment:v,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,t,r){"use strict";var n=r(9),a=r(2),i=r(0),o=r(0),u=o.useContext,s=o.useEffect,l=r(5);e.exports=function(e){var t=e.entryPointReference,r=e.props;l(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var o=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=o(),v=u(n),m=a();return s((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),i.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:c})}},function(e,t,r){"use strict";var n=r(0),a=r(15),i=n.useMemo;e.exports=function(e){var t=e.children,r=e.environment,o=e.getEnvironmentForActor,u=i((function(){return{environment:r,getEnvironmentForActor:o}}),[r,o]);return n.createElement(a.Provider,{value:u},t)}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(17)),a=r(16),i=r(6).useTrackLoadQueryInRender,o=r(8),u=r(0),s=u.useCallback,l=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var u,p,h,v;i();var m=null!==(u=null==r||null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,g=o(),b=c(new Set([m])),_=f(m),R=_[0],E=_[1],P=f(y),k=P[0],C=P[1],x=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),E(e)}}),[E,g]),S=s((function(r){if(g.current){var n=a(e,t,r);b.current.add(n),E(n),C(r)}}),[e,t,E,g]),w=c(!1);return l((function(){return function(){w.current=!0}}),[]),l((function(){if(!0===w.current)return w.current=!1,void("NullEntryPointReference"!==R.kind&&null!=k&&S(k));var e=b.current;if(g.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[R,k,S,g]),l((function(){return function(){var e,t=(0,n.default)(b.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,S,x]}},function(e,t,r){"use strict";var n=r(10),a=r(6).useTrackLoadQueryInRender,i=r(11),o=r(14),u=r(0).useDebugValue,s=r(1).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useFragment(e,t):function(e,t){a();var r=s(e);o(r,"first argument of useFragment()");var n=i(r,t,"useFragment()").data;return u({fragment:r.name,data:n}),n}(e,t)}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(21),i=r(23),o=r(2),u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){n();var s=o(),l=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:u(s,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t,r){"use strict";var n=r(34),a=r(0),i=a.useMemo,o=a.useRef,u=a.useState;e.exports=function(e){var t,r,a=o(0),s=u(e),l=s[0],c=s[1];return n(e,l)||(a.current=(null!==(r=a.current)&&void 0!==r?r:0)+1,c(e)),[i((function(){return e}),[a.current]),null!==(t=a.current)&&void 0!==t?t:0]}},function(e,t){e.exports=c},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(8),i=r(2),o=r(0),u=r(1).commitMutation,s=o.useState,l=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=i(),o=a(),d=c(r),p=c(e),h=c(new Set),v=s(!1),m=v[0],y=v[1],g=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),o.current&&y(h.current.size>0))}),[r,o,e]);l((function(){d.current===r&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=r,p.current=e)}),[r,o,e]);var b=f((function(a){o.current&&y(!0);var i=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;g(i),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;g(i),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;g(i),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return h.current.add(i),i}),[g,t,r,o,e]);return[b,m]}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(10),i=r(37),o=r(24),u=r(14),s=r(0),l=s.useCallback,c=s.useDebugValue,f=s.useState,d=r(1),p=d.getFragment,h=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var t=f(!1),r=t[0],a=t[1],o={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return a(!1)}}));return[u[0],u[1],r,u[2]]}e.exports=function(e,t){var r=a.get();return r?r.usePaginationFragment(e,t):function(e,t){var r=p(e);u(r,"first argument of usePaginationFragment()");var a=v(r,"usePaginationFragment()"),i=a.connectionPathInFragmentData,s=a.paginationRequest,f=a.paginationMetadata,d=a.identifierField,y=o(r,t,"usePaginationFragment()"),g=y.fragmentData,b=y.fragmentRef,_=y.refetch,R=h(r,b),E=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,identifierField:d,paginationMetadata:f,paginationRequest:s}),P=E[0],k=E[1],C=E[2],x=E[3],S=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,identifierField:d,paginationMetadata:f,paginationRequest:s}),w=S[0],I=S[1],q=S[2],D=S[3],F=l((function(e,t){return D(),x(),_(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[D,x,_]);return c({fragment:r.name,data:g,hasNext:I,isLoadingNext:q,hasPrevious:k,isLoadingPrevious:C}),{data:g,loadNext:w,loadPrevious:P,hasNext:I,hasPrevious:k,isLoadingNext:q,isLoadingPrevious:C,refetch:F}}(e,t)}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(22),i=r(8),o=r(38),u=r(2),s=r(3),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useState,p=r(1),h=p.ConnectionInterface,v=p.__internal.fetchQuery,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,b=p.getValueAtPath,_=r(5);e.exports=function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,R=e.fragmentData,E=e.connectionPathInFragmentData,P=e.paginationRequest,k=e.paginationMetadata,C=e.componentDisplayName,x=e.observer,S=e.onReset,w=e.identifierField,I=u(),q=a(),D=q.isFetchingRef,F=q.startFetch,A=q.disposeFetch,N=q.completeFetch,Q=null!=w&&null!=R&&"object"==typeof R?R[w]:null,T=i(),O=d(I),M=O[0],L=O[1],U=d(p),j=U[0],W=U[1],B=o(r,l);(I!==M||p!==j)&&(A(),S(),L(I),W(p));var K=function(e,t,r,n){var a,i,o=h.get(),u=o.EDGES,l=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,v=b(r,n);if(null==v)return{cursor:null,hasMore:!1};"object"!=typeof v&&s(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,u,l,v);var m=v[u],y=v[l];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,u,m),"object"!=typeof y&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,l,y);var g,_="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(i=y[p])&&void 0!==i?i:null;null!==_&&"string"!=typeof _&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,p,_),g="forward"===e?null!=_&&!0===y[c]:null!=_&&!0===y[f];return{cursor:_,hasMore:g}}(t,r,R,E),V=K.cursor,H=K.hasMore;return f((function(){return function(){A()}}),[A]),[c((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==T.current)return _(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,C),{dispose:function(){}};var o=g(r,l);if(!0===D.current||null==R||B)return null==o&&_(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,C,C),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,C);var u=o.owner.variables,c=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),c),p=y(t,e,V,d,(0,n.default)({},f),k);null!=w&&("string"!=typeof Q&&_(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",w,Q),p.id=Q);var h=m(P,p,{force:!0});return v(I,h).subscribe((0,n.default)((0,n.default)({},x),{},{start:function(e){F(e),x.start&&x.start(e)},complete:function(){N(),x.complete&&x.complete(),i&&i(null)},error:function(e){N(),x.error&&x.error(e),i&&i(e)}})),{dispose:A}}),[I,Q,t,V,F,A,N,D,B,R,r.name,l,C]),H,A]}},function(e,t,r){"use strict";var n=r(2),a=r(3),i=r(0),o=r(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,l=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,t){var r=n(),i=f((function(){var n=s(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(r,n.owner))}),[r,e,t]),o=c(null!=i),d=o[0],p=o[1];return l((function(){var e;if(p(null!=i),null!=i){var t=function(){p(!1)};e=i.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[i]),d}},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(21),i=r(23),o=r(2),u=r(3),s=r(0).useDebugValue,l=r(1).__internal,c=l.fetchQueryDeduped,f=l.fetchQuery,d=r(5);e.exports=function(e,t,r){n();var l,p=o(),h=t.fetchKey,v=t.fetchPolicy,m=t.source,y=t.variables,g=t.networkCacheConfig,b=i(e,y,g);if("PreloadedQuery_DEPRECATED"===t.kind)b.request.node.params.name!==t.name&&u(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",b.request.node.params.name,t.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:c(p,b.request.identifier,(function(){return p===t.environment&&null!=m?p.executeWithSource({operation:b,source:m}):p.execute({operation:b})})),fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{d(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var _,R=f(p,b);null!=m&&p===t.environment?_=m.ifEmpty(R):p!==t.environment?(d(!1,"usePreloadedQuery(): usePreloadedQuery was passed a preloaded query that was created with a different environment than the one that is currently in context. In the future, this will become a hard error."),_=R):_=R,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:_,fetchKey:h,fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var E=a(l);return s({query:t.name,variables:t.variables,data:E,fetchKey:h,fetchPolicy:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),E}},function(e,t,r){"use strict";var n=r(10),a=r(24),i=r(14),o=r(0).useDebugValue,u=r(1).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useRefetchableFragment(e,t):function(e,t){var r=u(e);i(r,"first argument of useRefetchableFragment()");var n=a(r,t,"useRefetchableFragment()"),s=n.fragmentData,l=n.refetch;return o({fragment:r.name,data:s}),[s,l]}(e,t)}},function(e,t,r){"use strict";var n=r(2),a=r(0),i=a.useEffect,o=a.useRef;e.exports=function(e,t){var r=n(),a=o(null),u=Array.from(e).sort().join("");return i((function(){var n=r.getStore(),i=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(i,t);return a.current=o,function(){return o.dispose()}}),[u,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},function(e,t,r){"use strict";var n=r(2),a=r(0).useEffect,i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,o=n();a((function(){return r(o,e).dispose}),[o,e,r])}}])}));
4
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual"],t):"object"==typeof exports?exports.ReactRelayHooks=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=t(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"])}(window,(function(e,t,r,n,a,i,o,u,s,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=27)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(16),a=r(3),i=r(0).useContext;e.exports=function(){var e=i(n);return null==e&&a(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(3),i=r(0),o=r(1),u=o.__internal.fetchQueryDeduped,s=o.Observable,l=o.PreloadableQueryRegistry,c=o.RelayFeatureFlags,f=o.ReplaySubject,d=o.createOperationDescriptor,p=o.getRequest,h=o.getRequestIdentifier,v=r(5),m=null,y=100001;e.exports={loadQuery:function(e,t,r,o,g){var b,_,E,R,P=null===(b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===b||null===(_=b.ReactCurrentDispatcher)||void 0===_?void 0:_.current;v(null==m||P!==m,"Relay: `%s` should not be called inside a React render function.",null!==(E=null==o?void 0:o.__nameForWarning)&&void 0!==E?E:"loadQuery"),y++;var k,S,C,x,w,I,D=null!==(R=null==o?void 0:o.fetchPolicy)&&void 0!==R?R:"store-or-network",q=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),A=!1,N=function(t,r){return A=!0,e.executeWithSource({operation:t,source:r})},F=new f,O=s.create((function(e){return F.subscribe(e)})),Q=null,T=!1,L=function(t){var n;T=!0;var a=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(t,r);n=u(e,i,(function(){return e.getNetwork().execute(t,r,q)}))}else{n=e.getNetwork().execute(t,r,q)}var o=n.subscribe({error:function(e){Q=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return S=o,s.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),S()}}))},M=function(t,r){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(T=!0);var n=u(e,t.request.identifier,r).subscribe({error:function(e){F.error(e)},next:function(e){F.next(e)},complete:function(){F.complete()}});C=n.unsubscribe},U=function(t){var n=d(t,r,q);(k=e.retain(n),"store-only"!==D)&&(("store-or-network"!==D||"available"!==e.check(n).status)&&M(n,(function(){var e=L(t.params);return N(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(I=(x=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",x.name);var j=l.get(I);if(null!=j)U(j);else{var B="store-only"===D?null:L(x),K=l.onLoad(I,(function(t){w();var n=d(t,r,q);k=e.retain(n),null!=B&&M(n,(function(){return N(n,B)}))}));w=K.dispose}}else{var W=p(t);I=null!=(x=W.params).cacheID?x.cacheID:x.id,U(W)}var V=!1,H=!1,Y=!1,G=function(){H||(k&&k.dispose(),H=!0)},z=function(){Y||(A?C&&C():S&&S(),w&&w(),Y=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){V||(G(),z(),V=!0)},releaseQuery:G,cancelNetworkRequest:z,fetchKey:y,id:I,get isDisposed(){return V||H},get networkError(){return Q},name:x.name,networkCacheConfig:q,fetchPolicy:D,source:T?O:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===m&&(m=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(0),a=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t,r){"use strict";var n=r(5),a=null;e.exports={inject:function(e){n(null!==a,"Relay HooksImplementation was injected twice."),a=e},get:function(){return a}}},function(e,t,r){"use strict";var n=r(19).getFragmentResourceForEnvironment,a=r(2),i=r(14),o=r(0),u=o.useEffect,s=o.useState,l=r(1),c=l.RelayFeatureFlags,f=l.getFragmentIdentifier,d=r(5);e.exports=function(e,t,r){var o=a(),l=n(o),p=i(!1),h=s(0)[1],v=f(e,t),m=l.readWithIdentifier(e,t,v,r),y=i(!0);function g(){!1!==p.current&&!1!==y.current&&h((function(e){return e+1}))}return u((function(){p.current=!0;var e=l.subscribe(m,g);return function(){p.current=!1,e.dispose()}}),[o,v]),c.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===m.data||Array.isArray(m.data)&&m.data.length>0&&m.data.every((function(e){return void 0===e})))&&d(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),{data:m.data,disableStoreUpdates:function(){y.current=!1},enableStoreUpdates:function(){y.current=!0,l.checkMissedUpdates(m)[0]&&g()}}}},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(4).default,a=n(r(7)),i=n(r(12)),o=r(20),u=r(21),s=r(3),l=r(1).isPromise,c=r(5),f="function"==typeof WeakMap;function d(e){return void 0!==e.request.node.params.metadata.live}function p(e,t,r,n,a){var i=null!=r?r:d(t)?"store-and-network":"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(o,"-").concat(t.request.identifier);return null!=a?"".concat(u,"-").concat(a):u}function h(e,t){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var v=2e5;function m(e,t,r,n,a,i){var o=d(t),s=n,l=a,c=new u((function(e){var r=e.retain(t);return{dispose:function(){o&&null!=l&&l.unsubscribe(),r.dispose(),i(f)}}})),f={cacheIdentifier:e,id:v++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var y=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,i,o){var u=p(this._environment,e,r,n,i);return this.prepareWithIdentifier(u,e,t,r,n,a,o)},t.prepareWithIdentifier=function(e,t,r,n,i,o,u){var s=this._environment,c=null!=n?n:d(t)?"store-and-network":"store-or-network",f=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),p=this._cache.get(e),h=null,v=null!=p;null==p&&(p=this._fetchAndSaveQuery(e,t,r,c,f,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=h&&h.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),h=p.temporaryRetain(s);var m=p.getValue();if(l(m))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:v,operation:t,queryAvailability:p.operationAvailability,renderPolicy:f}),m;if(m instanceof Error)throw m;return m},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,null,e,null),o=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){o.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=p(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var i=this._cache.get(e);return null==i&&(i=m(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,i)),i},t._fetchAndSaveQuery=function(e,t,r,n,i,o,u){var l,f,p=this,v=this._environment,y=v.check(t),g=y.status,b="available"===g,_=b||"partial"===i&&"stale"!==g,E=function(){};switch(n){case"store-only":l=!1,f=!0;break;case"store-or-network":l=!b,f=_;break;case"store-and-network":l=!0,f=_;break;case"network-only":default:l=!0,f=!1}if(f){var R=h(t,e),P=m(e,t,y,R,null,this._clearCacheEntry);this._cache.set(e,P)}if(l){var k,S=h(t,e);r.subscribe({start:function(r){k=r;var n=p._cache.get(e);n&&n.setNetworkSubscription(k);var i=null==u?void 0:u.start;i&&i((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){d(t)&&r.unsubscribe()}}))},next:function(){var r=p._getOrCreateCacheEntry(e,t,y,S,k);r.processedPayloadsCount+=1,r.setValue(S),E();var n=null==u?void 0:u.next;null!=n&&n(v.lookup(t.fragment))},error:function(r){var n=p._getOrCreateCacheEntry(e,t,y,r,k);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",t.fragment.node.name,String(r.message)),E(),k=null,n.setNetworkSubscription(null);var a=null==u?void 0:u.error;a&&a(r)},complete:function(){E(),k=null;var t=p._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==u?void 0:u.complete;r&&r()},unsubscribe:null==u?void 0:u.unsubscribe});var C=this._cache.get(e);if(!C){var x=new Promise((function(e){E=e}));x.displayName="Relay("+t.fragment.node.name+")",C=m(e,t,y,x,k,this._clearCacheEntry),this._cache.set(e,C)}}else{var w=null==u?void 0:u.complete;w&&w()}var I=this._cache.get(e);return null==I&&s(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),v.__log({name:"queryresource.fetch",resourceID:I.id,operation:t,profilerContext:o,fetchPolicy:n,renderPolicy:i,queryAvailability:y,shouldFetch:l}),I},e}();function g(e){return new y(e)}var b=f?new WeakMap:new Map;e.exports={createQueryResource:g,getQueryResourceForEnvironment:function(e){var t=b.get(e);if(t)return t;var r=g(e);return b.set(e,r),r},getQueryCacheIdentifier:p}},function(e,t,r){"use strict";var n=r(0).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},function(e,t,r){"use strict";var n=r(14),a=r(5);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},function(e,t,r){"use strict";var n=r(0),a=r(1).__internal.createRelayContext;e.exports=a(n)},function(e,t,r){"use strict";var n=r(6).loadQuery;e.exports=function e(t,r,a){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var o=r.getPreloadProps(a),u=o.queries,s=o.entryPoints,l=o.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var r=u[e],a=r.environmentProviderOptions,i=r.options,o=r.parameters,s=r.variables,l=t.getEnvironment(a);c[e]=n(l,o,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=s&&Object.keys(s).forEach((function(r){var n=s[r];if(null!=n){var a=n.entryPoint,i=n.entryPointParams;f[r]=e(t,a,i)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=l?l:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(4).default,a=n(r(7)),i=n(r(12)),o=n(r(32)),u=r(20),s=r(13).getQueryResourceForEnvironment,l=r(21),c=r(3),f=r(1),d=f.__internal,p=d.fetchQuery,h=d.getPromiseForActiveRequest,v=f.RelayFeatureFlags,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,b=f.getSelector,_=f.getVariablesFromFragment,E=f.handlePotentialSnapshotErrors,R=f.isPromise,P=f.recycleNodesInto,k="function"==typeof WeakMap,S=Object.freeze([]);function C(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function x(e){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function w(e,t,r){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:C(t),storeEpoch:r}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:C(t),storeEpoch:r}}var I=function(){function e(e){(0,i.default)(this,"_cache",new Map),(0,i.default)(this,"_retainCounts",new Map),this._environment=e}var t=e.prototype;return t.get=function(e){var t,r;return null!==(t=null===(r=this._cache.get(e))||void 0===r?void 0:r[0])&&void 0!==t?t:void 0},t.recordQueryResults=function(e,t){var r=this,n=this._cache.get(e);if(n){var a=n[0],i=n[1];t.forEach((function(e){a.push(e)})),i.temporaryRetain(this._environment)}else{var o=new l((function(){return r._retain(e)}));this._cache.set(e,[t,o]),o.temporaryRetain(this._environment)}},t._retain=function(e){var t,r=this,n=(null!==(t=this._retainCounts.get(e))&&void 0!==t?t:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var t,n=(null!==(t=r._retainCounts.get(e))&&void 0!==t?t:0)-1;n>0?r._retainCounts.set(e,n):(r._retainCounts.delete(e),r._cache.delete(e))}}},e}(),D=function(){function e(e){this._environment=e,this._cache=u.create(1e6),v.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new I(e))}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,y(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var i,u,l,f,d=this,p=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var m=p.getStore().getEpoch();if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||c(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=a?" for key `".concat(a,"`"):"",e.name,typeof t,e.name),0===t.length))return{cacheKey:r,data:S,isMissingData:!1,snapshot:S,storeEpoch:m};var y=this._cache.get(r);if(null!=y){var g;if("pending"===y.kind&&R(y.promise))throw p.__log({name:"suspense.fragment",data:y.result.data,fragment:e,isRelayHooks:!0,isMissingData:y.result.isMissingData,isPromiseCached:!0,pendingOperations:y.pendingOperations}),y.promise;if("done"===y.kind&&y.result.snapshot&&(null===(g=x(y.result.snapshot))||void 0===g||!g.length))return this._throwOrLogErrorsInSnapshot(y.result.snapshot),y.result.isMissingData&&p.__log({name:"fragmentresource.missing_data",data:y.result.data,fragment:e,isRelayHooks:!0,cached:!0}),y.result}var _=b(e,t);null==_&&c(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,n,e.name,null==a?"a fragment reference":"the `".concat(a,"`"),n);var E=null,P=null;if(v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=y&&"missing"===y.kind?(E=y.result,P=y.snapshot):E=w(r,P="PluralReaderSelector"===_.kind?_.selectors.map((function(e){return p.lookup(e)})):p.lookup(_),m),!E.isMissingData)return this._throwOrLogErrorsInSnapshot(P),this._cache.set(r,{kind:"done",result:E}),E;var k=null;if(v.ENABLE_CLIENT_EDGES&&!0===(null===(u=e.metadata)||void 0===u?void 0:u.hasClientEdges)&&function(e){var t,r;return Array.isArray(e)?e.some((function(e){var t,r;return(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0})):(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0}(P)){k=[];var C=s(this._environment),I=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(P,(function(r){var n;null===(n=r.missingClientEdges)||void 0===n||n.forEach((function(r){var n,a=r.request,i=r.clientEdgeDestinationID,o=d._performClientEdgeQuery(C,e,t,a,i),u=o.queryResult,s=o.requestDescriptor;I.push(u),null===(n=k)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&c(!1,"Client edge query result cache should exist when ENABLE_CLIENT_EDGES is on."),this._clientEdgeQueryResultsCache.recordQueryResults(r,I)}var D=[];v.ENABLE_CLIENT_EDGES&&k&&(D=k.map((function(e){return h(d._environment,e)})).filter(Boolean));var q="PluralReaderSelector"===_.kind?_.selectors[0].owner:_.owner,A=this._getAndSavePromiseForFragmentRequestInFlight(r,e,q,E),N=null==A?void 0:A.promise,F=null!==(l=null===(f=x(P))||void 0===f?void 0:f.map((function(e){var t=e.liveStateID;return p.getStore().getLiveResolverPromise(t)})))&&void 0!==l?l:[];if(D.length||F.length||R(N)){var O,Q;p.__log({name:"suspense.fragment",data:E.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:E.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(O=null==A?void 0:A.pendingOperations)&&void 0!==O?O:[]),(0,o.default)(null!==(Q=k)&&void 0!==Q?Q:[]))});var T=[];if(D.length>0&&(T=T.concat(D)),F.length>0&&(T=T.concat(F)),T.length>0)throw N&&T.push(N),Promise.all(T);if(N)throw N}return v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&E.isMissingData&&this._cache.set(r,{kind:"done",result:E}),this._throwOrLogErrorsInSnapshot(P),p.__log({name:"fragmentresource.missing_data",data:E.data,fragment:e,isRelayHooks:!0,cached:!1}),w(r,P,m)},t._performClientEdgeQuery=function(e,t,r,n,i){var o=_(t,r),u=(0,a.default)((0,a.default)({},o),{},{id:i}),s=m(n,u,{}),l=p(this._environment,s),c=e.prepare(s,l);return{requestDescriptor:s.request,queryResult:c}},t._throwOrLogErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){E(t._environment,e.missingRequiredFields,e.relayResolverErrors)})):E(this._environment,e.missingRequiredFields,e.relayResolverErrors)},t.readSpec=function(e,t,r){var n={};for(var a in e)n[a]=this.read(e[a],t[a],r,a);return n},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var o=this.checkMissedUpdates(e),u=o[0],l=o[1];u&&t();var f=[];if(Array.isArray(i)?(Array.isArray(l)||c(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),l.forEach((function(e,i){f.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();r._updatePluralSnapshot(a,l,e,i,o),t()})))}))):((null==l||Array.isArray(l))&&c(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),f.push(n.subscribe(l,(function(e){var i=n.getStore().getEpoch(),o=w(a,e,i);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&o.isMissingData?r._cache.set(a,{kind:"missing",result:o,snapshot:e}):r._cache.set(a,{kind:"done",result:w(a,e,i)}),t()})))),v.ENABLE_CLIENT_EDGES){var d,p,h=null!==(d=null===(p=this._clientEdgeQueryResultsCache)||void 0===p?void 0:p.get(a))&&void 0!==d?d:void 0;if(null!=h&&h.length){var m=s(this._environment);h.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),r._cache.delete(a)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,r=e.snapshot;if(!r)return[!1,null];var n;if(n=t.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(r)){var o=!1,u=[];if(r.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,s=n.data,l=P(i,s);l!==i&&(n=(0,a.default)((0,a.default)({},n),{},{data:l}),o=!0),u[r]=n})),o){var s=w(i,u,n);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&s.isMissingData?this._cache.set(i,{kind:"missing",result:s,snapshot:u}):this._cache.set(i,{kind:"done",result:s})}return[o,u]}var l=t.lookup(r.selector),c=r.data,f=l.data,d=P(c,f),p={data:d,isMissingData:l.isMissingData,missingClientEdges:l.missingClientEdges,missingLiveResolverFields:l.missingLiveResolverFields,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields,relayResolverErrors:l.relayResolverErrors};if(d!==c){var h=w(i,p,n);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&h.isMissingData?this._cache.set(i,{kind:"missing",result:h,snapshot:p}):this._cache.set(i,{kind:"done",result:h})}return[d!==c,p]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,r,n){var a=this,i=g(this._environment,t,r);if(null==i)return null;var o=i.promise,u=i.pendingOperations,s=o.then((function(){a._cache.delete(e)})).catch((function(t){a._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},t._updatePluralSnapshot=function(e,t,r,n,a){var i,u=this._cache.get(e);if(R(u))q(r.selector.node.name);else{var s=null==u||null===(i=u.result)||void 0===i?void 0:i.snapshot;if(!s||Array.isArray(s)){var l=s?(0,o.default)(s):(0,o.default)(t);l[n]=r;var c=w(e,l,a);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(e,{kind:"missing",result:c,snapshot:l}):this._cache.set(e,{kind:"done",result:c})}else q(r.selector.node.name)}},e}();function q(e){c(!1,"Relay: Expected to find cached data for plural fragment `%s` when receiving a subscription. If you're seeing this, this is likely a bug in Relay.",e)}function A(e){return new D(e)}var N=k?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var t=N.get(e);if(t)return t;var r=A(e);return N.set(e,r),r}}},function(e,t,r){"use strict";var n=r(3),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(12)),a=r(3),i=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null==t._retainDisposable&&a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),t._retainDisposable.dispose(),t._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(i,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=i},function(e,t,r){"use strict";var n=r(9),a=r(13),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,u=r(23),s=r(11),l=r(2),c=r(0),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=l(),g=f(n),b=o(y),_=p(0),E=_[0],R=_[1],P=u(),k=P.startFetch,S=P.completeFetch,C="".concat(E,"-").concat(null!=v?v:""),x=i(y,t,c,m,C),w=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(x,t,a,c,m,{start:k,complete:S,error:S},g)})),I=h(!1);d((function(){return function(){I.current=!0}}),[]),d((function(){if(!0===I.current)return I.current=!1,void R((function(e){return e+1}));var e=b.retain(w,g);return function(){e.dispose()}}),[y,x]),d((function(){b.releaseTemporaryRetain(w)}));var D=w.fragmentNode,q=w.fragmentRef;return s(D,q,r).data}},function(e,t,r){"use strict";var n=r(14),a=r(0),i=a.useCallback,o=a.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),a=i((function(r){e.current=r,t.current=!0}),[]),u=i((function(){e.current=null,t.current=!1}),[]);return o((function(){return r}),[r]),{isFetchingRef:t,startFetch:a,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(34),a=r(0),i=r(1),o=i.createOperationDescriptor,u=i.getRequest,s=a.useMemo;e.exports=function(e,t,r){var a=n(t),i=n(r||{});return s((function(){return o(u(e),a,i)}),[e,a,i])}},function(e,t,r){"use strict";var n,a=(0,r(4).default)(r(7)),i=r(19).getFragmentResourceForEnvironment,o=r(9),u=r(13).getQueryResourceForEnvironment,s=r(11),l=r(8),c=r(26),f=r(2),d=r(3),p=r(0),h=p.useCallback,v=p.useContext,m=p.useReducer,y=r(1),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,_=y.getFragmentIdentifier,E=y.getRefetchMetadata,R=y.getSelector,P=y.getValueAtPath,k=r(5);function S(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n,a){var i=r(1).Record,o=null==e?void 0:e[null!=n?n:"id"];if(1!==t.length||"node"!==t[0]||null==o)return null;var u=a.getStore().getSource().get(o),s=null==u?null:i.getType(u);return null==s?null:{id:o,typename:s}},checkSameTypeAfterRefetch:function(e,t,n,a){var i=r(1).Record;if(e){var o=t.getStore().getSource().get(e.id),u=o&&i.getType(o);u!==e.typename&&k(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,u,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var i=t[r(1).ID_KEY];null!=i&&i!==e.id&&k(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,n.name,a)}}},e.exports=function(e,t,r){var p=f(),y=E(e,r),C=y.refetchableRequest,x=y.fragmentRefPathInResponse,w=_(e,t),I=m(S,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:w,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=I[0],q=I[1],A=D.fetchPolicy,N=D.mirroredEnvironment,F=D.mirroredFragmentIdentifier,O=D.onComplete,Q=D.refetchEnvironment,T=D.refetchQuery,L=D.renderPolicy,M=null!=Q?Q:p,U=u(M),j=i(M),B=v(o),K=M!==N||w!==F,W=c(C),V=W[0],H=W[1],Y=W[2],G=t,z=E(e,r).identifierInfo;if(K)q({type:"reset",environment:M,fragmentIdentifier:w}),Y();else if(null!=T&&null!=V){var X;X=n.getInitialIDAndType(T.request.variables,x,null==z?void 0:z.identifierQueryVariableName,M);var J=function(e){O&&O(null!=e?e:null)},Z=null!=V.source?V.source:g(M,T),$=B.wrapPrepareQueryResource((function(){return U.prepare(T,Z,A,L,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,M,e,r),J()}},V.fetchKey,B)})),ee=j.read($.fragmentNode,$.fragmentRef,r).data;null==ee&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),G=P(ee,x),n.checkSameIDAfterRefetch(X,G,e,r)}var te=s(e,G,r),re=te.data,ne=te.disableStoreUpdates,ae=te.enableStoreUpdates;return{fragmentData:re,fragmentRef:G,refetch:function(e,t,r,n,i,o,u,s,c,f,d){var p=l(),v=null!=(null==s?void 0:s.identifierField)&&null!=n&&"object"==typeof n?n[s.identifierField]:null;return h((function(n,i){if(!0!==p.current)return k(!1,"Relay: Unexpected call to `refetch` on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",o.name,e),{dispose:function(){}};null==f&&k(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var u,l,h=null==i?void 0:i.__environment,m=null==i?void 0:i.fetchPolicy,y=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,_=R(o,f);if(null==_)u={},l={};else if("PluralReaderSelector"===_.kind){var E,P,S,C;u=null!==(E=null===(P=_.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==E?E:{},l=null!==(S=null===(C=_.selectors[0])||void 0===C?void 0:C.variables)&&void 0!==S?S:{}}else u=_.owner.variables,l=_.variables;var x=(0,a.default)((0,a.default)((0,a.default)({},u),l),n);null==s||n.hasOwnProperty(s.identifierQueryVariableName)||("string"!=typeof v&&k(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s.identifierField,v),x[s.identifierQueryVariableName]=v);var w=b(d,x,{force:!0});return c(w.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:w,renderPolicy:y}),{dispose:r}}),[i,t,r,v,c])}(r,q,Y,re,w,e,0,z,H,t,C),disableStoreUpdates:ne,enableStoreUpdates:ae}}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(18)),a=r(6),i=a.loadQuery,o=a.useTrackLoadQueryInRender,u=r(8),s=r(2),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h=r(1).getRequest,v={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,a=s();o();var l=u(),h=d(new Set([r])),y=p((function(){return r})),g=y[0],b=y[1],_=p((function(){return r})),E=_[0],R=_[1];r!==E&&(h.current.add(r),R(r),b(r));var P=c((function(){l.current&&(h.current.add(v),b(v))}),[l]),k=c((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(l.current){var o,u=i(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:a,e,t,n);h.current.add(u),b(u)}}),[a,e,b,l]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=h.current;if(l.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i===g)break;t.delete(i),"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,l,k,e]),f((function(){return function(){var t,r=(0,n.default)(h.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,P]}},function(e,t,r){"use strict";var n=r(28),a=r(17),i=r(6).loadQuery,o=r(9),u=r(29),s=r(30),l=r(31),c=r(33),f=r(36),d=r(37),p=r(40),h=r(26),v=r(41),m=r(2),y=r(42),g=r(43),b=r(1);e.exports={ConnectionHandler:b.ConnectionHandler,applyOptimisticMutation:b.applyOptimisticMutation,commitLocalUpdate:b.commitLocalUpdate,commitMutation:b.commitMutation,graphql:b.graphql,readInlineData:b.readInlineData,requestSubscription:b.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:u,ProfilerContext:o,fetchQuery:b.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:l,useLazyLoadQuery:c,useEntryPointLoader:s,useQueryLoader:h,useMutation:f,usePaginationFragment:d,usePreloadedQuery:p,useRefetchableFragment:v,useRelayEnvironment:m,useSubscribeToInvalidationState:y,useSubscription:g}},function(e,t,r){"use strict";var n=r(9),a=r(2),i=r(0),o=r(0),u=o.useContext,s=o.useEffect,l=r(5);e.exports=function(e){var t=e.entryPointReference,r=e.props;l(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var o=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=o(),v=u(n),m=a();return s((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),i.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:c})}},function(e,t,r){"use strict";var n=r(16),a=r(0),i=a.useMemo;e.exports=function(e){var t=e.children,r=e.environment,o=e.getEnvironmentForActor,u=i((function(){return{environment:r,getEnvironmentForActor:o}}),[r,o]);return a.createElement(n.Provider,{value:u},t)}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(18)),a=r(17),i=r(6).useTrackLoadQueryInRender,o=r(8),u=r(0),s=u.useCallback,l=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var u,p,h,v;i();var m=null!==(u=null==r||null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,g=o(),b=c(new Set([m])),_=f(m),E=_[0],R=_[1],P=f(y),k=P[0],S=P[1],C=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),R(e)}}),[R,g]),x=s((function(r){if(g.current){var n=a(e,t,r);b.current.add(n),R(n),S(r)}}),[e,t,R,g]),w=c(!1);return l((function(){return function(){w.current=!0}}),[]),l((function(){if(!0===w.current)return w.current=!1,void("NullEntryPointReference"!==E.kind&&null!=k&&x(k));var e=b.current;if(g.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===E)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[E,k,x,g]),l((function(){return function(){var e,t=(0,n.default)(b.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===E.kind?null:E,x,C]}},function(e,t,r){"use strict";var n=r(10),a=r(6).useTrackLoadQueryInRender,i=r(11),o=r(15),u=r(0).useDebugValue,s=r(1).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useFragment(e,t):function(e,t){a();var r=s(e);o(r,"first argument of useFragment()");var n=i(r,t,"useFragment()").data;return u({fragment:r.name,data:n}),n}(e,t)}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(22),i=r(24),o=r(2),u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){n();var s=o(),l=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:u(s,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t,r){"use strict";var n=r(35),a=r(0).useState;e.exports=function(e){var t=a(e),r=t[0],i=t[1];return n(e,r)?r:(i(e),e)}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(8),i=r(2),o=r(0),u=r(1).commitMutation,s=o.useState,l=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=i(),o=a(),d=c(r),p=c(e),h=c(new Set),v=s(!1),m=v[0],y=v[1],g=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),o.current&&y(h.current.size>0))}),[r,o,e]);l((function(){d.current===r&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=r,p.current=e)}),[r,o,e]);var b=f((function(a){o.current&&y(!0);var i=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;g(i),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;g(i),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;g(i),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return h.current.add(i),i}),[g,t,r,o,e]);return[b,m]}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(10),i=r(38),o=r(25),u=r(15),s=r(0),l=s.useCallback,c=s.useDebugValue,f=s.useState,d=r(1),p=d.getFragment,h=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var t=f(!1),r=t[0],a=t[1],o={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return a(!1)}}));return[u[0],u[1],r,u[2]]}e.exports=function(e,t){var r=a.get();return r?r.usePaginationFragment(e,t):function(e,t){var r=p(e);u(r,"first argument of usePaginationFragment()");var a=v(r,"usePaginationFragment()"),i=a.connectionPathInFragmentData,s=a.paginationRequest,f=a.paginationMetadata,d=o(r,t,"usePaginationFragment()"),y=d.fragmentData,g=d.fragmentRef,b=d.refetch,_=h(r,g),E=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"backward",fragmentData:y,fragmentIdentifier:_,fragmentNode:r,fragmentRef:g,paginationMetadata:f,paginationRequest:s}),R=E[0],P=E[1],k=E[2],S=E[3],C=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"forward",fragmentData:y,fragmentIdentifier:_,fragmentNode:r,fragmentRef:g,paginationMetadata:f,paginationRequest:s}),x=C[0],w=C[1],I=C[2],D=C[3],q=l((function(e,t){return D(),S(),b(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[D,S,b]);return c({fragment:r.name,data:y,hasNext:w,isLoadingNext:I,hasPrevious:P,isLoadingPrevious:k}),{data:y,loadNext:x,loadPrevious:R,hasNext:w,hasPrevious:P,isLoadingNext:I,isLoadingPrevious:k,refetch:q}}(e,t)}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(23),i=r(8),o=r(39),u=r(2),s=r(3),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useState,p=r(1),h=p.__internal.fetchQuery,v=p.ConnectionInterface,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getRefetchMetadata,b=p.getSelector,_=p.getValueAtPath,E=r(5);e.exports=function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,R=e.fragmentData,P=e.connectionPathInFragmentData,k=e.paginationRequest,S=e.paginationMetadata,C=e.componentDisplayName,x=e.observer,w=e.onReset,I=u(),D=a(),q=D.isFetchingRef,A=D.startFetch,N=D.disposeFetch,F=D.completeFetch,O=g(r,C).identifierInfo,Q=null!=(null==O?void 0:O.identifierField)&&null!=R&&"object"==typeof R?R[O.identifierField]:null,T=i(),L=d(I),M=L[0],U=L[1],j=d(p),B=j[0],K=j[1],W=o(r,l);(I!==M||p!==B)&&(N(),w(),U(I),K(p));var V=function(e,t,r,n){var a,i,o=v.get(),u=o.EDGES,l=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,h=_(r,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&s(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,u,l,h);var m=h[u],y=h[l];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,u,m),"object"!=typeof y&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,l,y);var g,b="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(i=y[p])&&void 0!==i?i:null;null!==b&&"string"!=typeof b&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,p,b),g="forward"===e?null!=b&&!0===y[c]:null!=b&&!0===y[f];return{cursor:b,hasMore:g}}(t,r,R,P),H=V.cursor,Y=V.hasMore;return f((function(){return function(){N()}}),[N]),[c((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==T.current)return E(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,C),{dispose:function(){}};var o=b(r,l);if(!0===q.current||null==R||W)return null==o&&E(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,C,C),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,C);var u=o.owner.variables,c=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),c),p=y(t,e,H,d,(0,n.default)({},f),S);null!=O&&("string"!=typeof Q&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",O.identifierField,Q),p[O.identifierQueryVariableName]=Q);var v=m(k,p,{force:!0});return h(I,v).subscribe((0,n.default)((0,n.default)({},x),{},{start:function(e){A(e),x.start&&x.start(e)},complete:function(){F(),x.complete&&x.complete(),i&&i(null)},error:function(e){F(),x.error&&x.error(e),i&&i(e)}})),{dispose:N}}),[I,Q,t,H,A,N,F,q,W,R,r.name,l,C]),Y,N]}},function(e,t,r){"use strict";var n=r(2),a=r(3),i=r(0),o=r(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,l=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,t){var r=n(),i=f((function(){var n=s(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(r,n.owner))}),[r,e,t]),o=c(null!=i),d=o[0],p=o[1];return l((function(){var e;if(p(null!=i),null!=i){var t=function(){p(!1)};e=i.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[i]),d}},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(22),i=r(24),o=r(2),u=r(3),s=r(0).useDebugValue,l=r(1).__internal,c=l.fetchQueryDeduped,f=l.fetchQuery,d=r(5);e.exports=function(e,t,r){n();var l,p=o(),h=t.fetchKey,v=t.fetchPolicy,m=t.source,y=t.variables,g=t.networkCacheConfig,b=i(e,y,g);if("PreloadedQuery_DEPRECATED"===t.kind)b.request.node.params.name!==t.name&&u(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",b.request.node.params.name,t.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:c(p,b.request.identifier,(function(){return p===t.environment&&null!=m?p.executeWithSource({operation:b,source:m}):p.execute({operation:b})})),fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{d(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var _,E=f(p,b);null!=m&&p===t.environment?_=m.ifEmpty(E):p!==t.environment?(d(!1,"usePreloadedQuery(): usePreloadedQuery was passed a preloaded query that was created with a different environment than the one that is currently in context. In the future, this will become a hard error."),_=E):_=E,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:_,fetchKey:h,fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var R=a(l);return s({query:t.name,variables:t.variables,data:R,fetchKey:h,fetchPolicy:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),R}},function(e,t,r){"use strict";var n=r(10),a=r(25),i=r(15),o=r(0).useDebugValue,u=r(1).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useRefetchableFragment(e,t):function(e,t){var r=u(e);i(r,"first argument of useRefetchableFragment()");var n=a(r,t,"useRefetchableFragment()"),s=n.fragmentData,l=n.refetch;return o({fragment:r.name,data:s}),[s,l]}(e,t)}},function(e,t,r){"use strict";var n=r(2),a=r(0),i=a.useEffect,o=a.useRef;e.exports=function(e,t){var r=n(),a=o(null),u=Array.from(e).sort().join("");return i((function(){var n=r.getStore(),i=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(i,t);return a.current=o,function(){return o.dispose()}}),[u,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},function(e,t,r){"use strict";var n=r(2),a=r(0).useEffect,i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,o=n();a((function(){return r(o,e).dispose}),[o,e,r])}}])}));
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Relay v14.1.0
2
+ * Relay v16.0.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=r(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"])}(window,(function(e,r,t,n,i,a,o,u,s,c,l){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=26)}([function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){"use strict";var n=t(3),i=t(0).useContext,a=t(15);e.exports=function(){var e=i(a);return null==e&&n(!1),e.environment}},function(e,r){e.exports=t},function(e,r){e.exports=n},function(e,r){e.exports=i},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(3),a=t(0),o=t(1),u=o.Observable,s=o.PreloadableQueryRegistry,c=o.RelayFeatureFlags,l=o.ReplaySubject,f=o.__internal.fetchQueryDeduped,d=o.createOperationDescriptor,p=o.getRequest,v=o.getRequestIdentifier,h=(t(5),null),m=100001;e.exports={loadQuery:function(e,r,t,o,h){var y,g,_;null===(y=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(g=y.ReactCurrentDispatcher)||void 0===g||g.current,m++;var b,R,E,P,C,S,k=null!==(_=null==o?void 0:o.fetchPolicy)&&void 0!==_?_:"store-or-network",F=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),D=!1,x=function(r,t){return D=!0,e.executeWithSource({operation:r,source:t})},q=new l,w=u.create((function(e){return q.subscribe(e)})),I=null,N=!1,A=function(r){var n;N=!0;var i=new l;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var a="raw-network-request-"+v(r,t);n=f(e,a,(function(){return e.getNetwork().execute(r,t,F)}))}else{n=e.getNetwork().execute(r,t,F)}var o=n.subscribe({error:function(e){I=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return R=o,u.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),R()}}))},Q=function(r,t){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var n=f(e,r.request.identifier,t).subscribe({error:function(e){q.error(e)},next:function(e){q.next(e)},complete:function(){q.complete()}});E=n.unsubscribe},O=function(r){var n=d(r,t,F);(b=e.retain(n),"store-only"!==k)&&(("store-or-network"!==k||"available"!==e.check(n).status)&&Q(n,(function(){var e=A(r.params);return x(n,e)})))};if("PreloadableConcreteRequest"===r.kind){null===(S=(P=r.params).id)&&i(!1);var M=s.get(S);if(null!=M)O(M);else{var T="store-only"===k?null:A(P),L=s.onLoad(S,(function(r){C();var n=d(r,t,F);b=e.retain(n),null!=T&&Q(n,(function(){return x(n,T)}))}));C=L.dispose}}else{var j=p(r);S=null!=(P=j.params).cacheID?P.cacheID:P.id,O(j)}var U=!1,W=!1,B=!1,V=function(){W||(b&&b.dispose(),W=!0)},K=function(){B||(D?E&&E():R&&R(),C&&C(),B=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){U||(V(),K(),U=!0)},releaseQuery:V,cancelNetworkRequest:K,fetchKey:m,id:S,get isDisposed(){return U||W},get networkError(){return I},name:P.name,networkCacheConfig:F,fetchPolicy:k,source:N?w:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===h&&(h=null===(e=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},function(e,r){e.exports=a},function(e,r,t){"use strict";var n=t(0),i=n.useEffect,a=n.useRef;e.exports=function(){var e=a(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,r,t){"use strict";var n=t(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,r,t){"use strict";t(5);var n=null;e.exports={inject:function(e){n=e},get:function(){return n}}},function(e,r,t){"use strict";var n=t(18).getFragmentResourceForEnvironment,i=t(2),a=t(0),o=a.useEffect,u=a.useRef,s=a.useState,c=t(1).getFragmentIdentifier;t(5);e.exports=function(e,r,t){var a=i(),l=n(a),f=u(!1),d=s(0)[1],p=c(e,r),v=l.readWithIdentifier(e,r,p,t),h=u(!0);function m(){!1!==f.current&&!1!==h.current&&d((function(e){return e+1}))}return o((function(){f.current=!0;var e=l.subscribe(v,m);return function(){f.current=!1,e.dispose()}}),[a,p]),{data:v.data,disableStoreUpdates:function(){h.current=!1},enableStoreUpdates:function(){h.current=!0,l.checkMissedUpdates(v)[0]&&m()}}}},function(e,r){e.exports=o},function(e,r,t){"use strict";var n=t(4).default,i=n(t(7)),a=n(t(12)),o=t(19),u=t(20),s=t(3),c=t(1).isPromise,l=(t(5),"function"==typeof WeakMap);function f(e){return void 0!==e.request.node.params.metadata.live}function d(e,r,t,n,i){var a=null!=t?t:"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(a,"-").concat(o,"-").concat(r.request.identifier);return null!=i?"".concat(u,"-").concat(i):u}function p(e,r){var t={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var v=2e5;function h(e,r,t,n,i,a){var o=f(r),s=n,c=i,l=new u((function(e){var t=e.retain(r);return{dispose:function(){o&&null!=c&&c.unsubscribe(),t.dispose(),a(d)}}})),d={cacheIdentifier:e,id:v++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=c&&c.unsubscribe(),c=e},temporaryRetain:function(e){return l.temporaryRetain(e)},permanentRetain:function(e){return l.permanentRetain(e)},releaseTemporaryRetain:function(){l.releaseTemporaryRetain()}};return d}var m=function(){function e(e){var r=this;(0,a.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,i,a,o){var u=d(this._environment,e,t,n,a);return this.prepareWithIdentifier(u,e,r,t,n,i,o)},r.prepareWithIdentifier=function(e,r,t,n,a,o,u){var s=this._environment,l=null!=n?n:"store-or-network",f=null!=a?a:s.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,v=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,r,t,l,f,u,(0,i.default)((0,i.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),p=d.temporaryRetain(s);var h=d.getValue();if(c(h))throw s.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:v,operation:r,queryAvailability:d.operationAvailability,renderPolicy:f}),h;if(h instanceof Error)throw h;return h},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,i=e.operation,a=this._getOrCreateCacheEntry(n,i,null,e,null),o=a.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:a.id}),{dispose:function(){o.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var i=d(this._environment,e,r,t,n);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,t,n,i){var a=this._cache.get(e);return null==a&&(a=h(e,r,t,n,i,this._clearCacheEntry),this._cache.set(e,a)),a},r._fetchAndSaveQuery=function(e,r,t,n,a,o,u){var c,l,d=this,v=this._environment,m=v.check(r),y=m.status,g="available"===y,_=g||"partial"===a&&"stale"!==y,b=function(){};switch(n){case"store-only":c=!1,l=!0;break;case"store-or-network":c=!g,l=_;break;case"store-and-network":c=!0,l=_;break;case"network-only":default:c=!0,l=!1}if(l){var R=p(r,e),E=h(e,r,m,R,null,this._clearCacheEntry);this._cache.set(e,E)}if(c){var P,C=p(r,e);t.subscribe({start:function(t){P=t;var n=d._cache.get(e);n&&n.setNetworkSubscription(P);var a=null==u?void 0:u.start;a&&a((0,i.default)((0,i.default)({},t),{},{unsubscribe:function(){f(r)&&t.unsubscribe()}}))},next:function(){var t=d._getOrCreateCacheEntry(e,r,m,C,P);t.processedPayloadsCount+=1,t.setValue(C),b();var n=null==u?void 0:u.next;null!=n&&n(v.lookup(r.fragment))},error:function(t){var n=d._getOrCreateCacheEntry(e,r,m,t,P);0===n.processedPayloadsCount&&n.setValue(t),b(),P=null,n.setNetworkSubscription(null);var i=null==u?void 0:u.error;i&&i(t)},complete:function(){b(),P=null;var r=d._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==u?void 0:u.complete;t&&t()},unsubscribe:null==u?void 0:u.unsubscribe});var S=this._cache.get(e);if(!S){var k=new Promise((function(e){b=e}));k.displayName="Relay("+r.fragment.node.name+")",S=h(e,r,m,k,P,this._clearCacheEntry),this._cache.set(e,S)}}else{var F=null==u?void 0:u.complete;F&&F()}var D=this._cache.get(e);return null==D&&s(!1),v.__log({name:"queryresource.fetch",resourceID:D.id,operation:r,profilerContext:o,fetchPolicy:n,renderPolicy:a,queryAvailability:m,shouldFetch:c}),D},e}();function y(e){return new m(e)}var g=l?new WeakMap:new Map;e.exports={createQueryResource:y,getQueryResourceForEnvironment:function(e){var r=g.get(e);if(r)return r;var t=y(e);return g.set(e,t),t},getQueryCacheIdentifier:d}},function(e,r,t){"use strict";t(0).useRef,t(5);e.exports=function(e,r){}},function(e,r){e.exports=u},function(e,r,t){"use strict";var n=t(6).loadQuery;e.exports=function e(r,t,i){var a=null;null==t.root.getModuleIfRequired()&&(a=t.root.load());var o=t.getPreloadProps(i),u=o.queries,s=o.entryPoints,c=o.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e],i=t.environmentProviderOptions,a=t.options,o=t.parameters,s=t.variables,c=r.getEnvironment(i);l[e]=n(c,o,s,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)})),null!=s&&Object.keys(s).forEach((function(t){var n=s[t];if(null!=n){var i=n.entryPoint,a=n.entryPointParams;f[t]=e(r,i,a)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=c?c:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw a=null!==(e=a)&&void 0!==e?e:t.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:l,rootModuleID:t.root.getModuleId()}}},function(e,r){e.exports=s},function(e,r,t){"use strict";var n=t(4).default,i=n(t(7)),a=n(t(12)),o=n(t(31)),u=t(19),s=t(13).getQueryResourceForEnvironment,c=t(20),l=t(3),f=t(1),d=f.RelayFeatureFlags,p=f.__internal,v=p.fetchQuery,h=p.getPromiseForActiveRequest,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,_=f.getSelector,b=f.getVariablesFromFragment,R=f.handlePotentialSnapshotErrors,E=f.isPromise,P=f.recycleNodesInto,C="function"==typeof WeakMap,S=Object.freeze([]);function k(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function F(e){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function D(e,r,t){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data})),isMissingData:k(r),storeEpoch:t}:{cacheKey:e,snapshot:r,data:r.data,isMissingData:k(r),storeEpoch:t}}var x=function(){function e(e){(0,a.default)(this,"_cache",new Map),(0,a.default)(this,"_retainCounts",new Map),this._environment=e}var r=e.prototype;return r.get=function(e){var r,t;return null!==(r=null===(t=this._cache.get(e))||void 0===t?void 0:t[0])&&void 0!==r?r:void 0},r.recordQueryResults=function(e,r){var t=this,n=this._cache.get(e);if(n){var i=n[0],a=n[1];r.forEach((function(e){i.push(e)})),a.temporaryRetain(this._environment)}else{var o=new c((function(){return t._retain(e)}));this._cache.set(e,[r,o]),o.temporaryRetain(this._environment)}},r._retain=function(e){var r,t=this,n=(null!==(r=this._retainCounts.get(e))&&void 0!==r?r:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var r,n=(null!==(r=t._retainCounts.get(e))&&void 0!==r?r:0)-1;n>0?t._retainCounts.set(e,n):(t._retainCounts.delete(e),t._cache.delete(e))}}},e}(),q=function(){function e(e){this._environment=e,this._cache=u.create(1e6),d.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new x(e))}var r=e.prototype;return r.read=function(e,r,t,n){return this.readWithIdentifier(e,r,y(e,r),t,n)},r.readWithIdentifier=function(e,r,t,n,i){var a,u,c,f,p=this,v=this._environment;if(null==r)return{cacheKey:t,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var m=v.getStore().getEpoch();if(!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural)&&(Array.isArray(r)||l(!1),0===r.length))return{cacheKey:t,data:S,isMissingData:!1,snapshot:S,storeEpoch:m};var y=this._cache.get(t);if(null!=y){var g;if("pending"===y.kind&&E(y.promise))throw v.__log({name:"suspense.fragment",data:y.result.data,fragment:e,isRelayHooks:!0,isMissingData:y.result.isMissingData,isPromiseCached:!0,pendingOperations:y.pendingOperations}),y.promise;if("done"===y.kind&&y.result.snapshot&&(null===(g=F(y.result.snapshot))||void 0===g||!g.length))return this._handlePotentialSnapshotErrorsInSnapshot(y.result.snapshot),y.result}var b=_(e,r);null==b&&l(!1);var R="PluralReaderSelector"===b.kind?b.selectors.map((function(e){return v.lookup(e)})):v.lookup(b),P=D(t,R,m);if(!P.isMissingData)return this._handlePotentialSnapshotErrorsInSnapshot(R),this._cache.set(t,{kind:"done",result:P}),P;var C=null;if(d.ENABLE_CLIENT_EDGES&&!0===(null===(u=e.metadata)||void 0===u?void 0:u.hasClientEdges)&&function(e){var r,t;return Array.isArray(e)?e.some((function(e){var r,t;return(null!==(r=null===(t=e.missingClientEdges)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0})):(null!==(r=null===(t=e.missingClientEdges)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0}(R)){C=[];var k=s(this._environment),x=[];!function(e,r){Array.isArray(e)?e.forEach(r):r(e)}(R,(function(t){var n;null===(n=t.missingClientEdges)||void 0===n||n.forEach((function(t){var n,i=t.request,a=t.clientEdgeDestinationID,o=p._performClientEdgeQuery(k,e,r,i,a),u=o.queryResult,s=o.requestDescriptor;x.push(u),null===(n=C)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&l(!1),this._clientEdgeQueryResultsCache.recordQueryResults(t,x)}var q=[];d.ENABLE_CLIENT_EDGES&&C&&(q=C.map((function(e){return h(p._environment,e)})).filter(Boolean));var w="PluralReaderSelector"===b.kind?b.selectors[0].owner:b.owner,I=this._getAndSavePromiseForFragmentRequestInFlight(t,e,w,P),N=null==I?void 0:I.promise,A=null!==(c=null===(f=F(R))||void 0===f?void 0:f.map((function(e){var r=e.liveStateID;return v.getStore().getLiveResolverPromise(r)})))&&void 0!==c?c:[];if(q.length||A.length||E(N)){var Q,O;v.__log({name:"suspense.fragment",data:P.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:P.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(Q=null==I?void 0:I.pendingOperations)&&void 0!==Q?Q:[]),(0,o.default)(null!==(O=C)&&void 0!==O?O:[]))});var M=[];if(q.length>0&&(M=M.concat(q)),A.length>0&&(M=M.concat(A)),M.length>0)throw N&&M.push(N),Promise.all(M);if(N)throw N}return this._handlePotentialSnapshotErrorsInSnapshot(R),D(t,R,m)},r._performClientEdgeQuery=function(e,r,t,n,a){var o=b(r,t),u=(0,i.default)((0,i.default)({},o),{},{id:a}),s=m(n,u,{}),c=v(this._environment,s),l=e.prepare(s,c);return{requestDescriptor:s.request,queryResult:l}},r._handlePotentialSnapshotErrorsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){R(r._environment,e.missingRequiredFields,e.relayResolverErrors)})):R(this._environment,e.missingRequiredFields,e.relayResolverErrors)},r.readSpec=function(e,r,t){var n={};for(var i in e)n[i]=this.read(e[i],r[i],t,i);return n},r.subscribe=function(e,r){var t=this,n=this._environment,i=e.cacheKey,a=e.snapshot;if(!a)return{dispose:function(){}};var o=this.checkMissedUpdates(e),u=o[0],c=o[1];u&&r();var f=[];if(Array.isArray(a)?(Array.isArray(c)||l(!1),c.forEach((function(e,a){f.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();t._updatePluralSnapshot(i,c,e,a,o),r()})))}))):((null==c||Array.isArray(c))&&l(!1),f.push(n.subscribe(c,(function(e){var a=n.getStore().getEpoch();t._cache.set(i,{kind:"done",result:D(i,e,a)}),r()})))),d.ENABLE_CLIENT_EDGES){var p,v,h=null!==(p=null===(v=this._clientEdgeQueryResultsCache)||void 0===v?void 0:v.get(i))&&void 0!==p?p:void 0;if(null!=h&&h.length){var m=s(this._environment);h.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),t._cache.delete(i)}}},r.subscribeSpec=function(e,r){var t=this,n=Object.keys(e).map((function(n){return t.subscribe(e[n],r)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},r.checkMissedUpdates=function(e){var r=this._environment,t=e.snapshot;if(!t)return[!1,null];var n;if(n=r.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var a=e.cacheKey;if(Array.isArray(t)){var o=!1,u=[];return t.forEach((function(e,t){var n=r.lookup(e.selector),a=e.data,s=n.data,c=P(a,s);c!==a&&(n=(0,i.default)((0,i.default)({},n),{},{data:c}),o=!0),u[t]=n})),o&&this._cache.set(a,{kind:"done",result:D(a,u,n)}),[o,u]}var s=r.lookup(t.selector),c=t.data,l=s.data,f=P(c,l),d={data:f,isMissingData:s.isMissingData,missingClientEdges:s.missingClientEdges,missingLiveResolverFields:s.missingLiveResolverFields,seenRecords:s.seenRecords,selector:s.selector,missingRequiredFields:s.missingRequiredFields,relayResolverErrors:s.relayResolverErrors};return f!==c&&this._cache.set(a,{kind:"done",result:D(a,d,n)}),[f!==c,d]},r.checkMissedUpdatesSpec=function(e){var r=this;return Object.keys(e).some((function(t){return r.checkMissedUpdates(e[t])[0]}))},r._getAndSavePromiseForFragmentRequestInFlight=function(e,r,t,n){var i=this,a=g(this._environment,r,t);if(null==a)return null;var o=a.promise,u=a.pendingOperations,s=o.then((function(){i._cache.delete(e)})).catch((function(r){i._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},r._updatePluralSnapshot=function(e,r,t,n,i){var a,u=this._cache.get(e);if(E(u))w(t.selector.node.name);else{var s=null==u||null===(a=u.result)||void 0===a?void 0:a.snapshot;if(!s||Array.isArray(s)){var c=s?(0,o.default)(s):(0,o.default)(r);c[n]=t,this._cache.set(e,{kind:"done",result:D(e,c,i)})}else w(t.selector.node.name)}},e}();function w(e){l(!1)}function I(e){return new q(e)}var N=C?new WeakMap:new Map;e.exports={createFragmentResource:I,getFragmentResourceForEnvironment:function(e){var r=N.get(e);if(r)return r;var t=I(e);return N.set(e,t),t}}},function(e,r,t){"use strict";var n=t(3),i=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var t=this._map.keys().next();t.done||this._map.delete(t.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(12)),i=t(3),a=function(){function e(e){var r=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(t){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(t)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&(null==r._retainDisposable&&i(!1),r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,t=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),i=null,a=function(){clearTimeout(i),i=null,t._releaseTemporaryRetain=null,n.dispose()};return i=setTimeout(a,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=t._releaseTemporaryRetain)||void 0===e||e.call(t)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}();e.exports=a},function(e,r,t){"use strict";var n=t(9),i=t(13),a=i.getQueryCacheIdentifier,o=i.getQueryResourceForEnvironment,u=t(22),s=t(11),c=t(2),l=t(0),f=l.useContext,d=l.useEffect,p=l.useState,v=l.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,i=e.fetchObservable,l=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,y=c(),g=f(n),_=o(y),b=p(0),R=b[0],E=b[1],P=u(),C=P.startFetch,S=P.completeFetch,k="".concat(R,"-").concat(null!=h?h:""),F=a(y,r,l,m,k),D=g.wrapPrepareQueryResource((function(){return _.prepareWithIdentifier(F,r,i,l,m,{start:C,complete:S,error:S},g)})),x=v(!1);d((function(){return function(){x.current=!0}}),[]),d((function(){if(!0===x.current)return x.current=!1,void E((function(e){return e+1}));var e=_.retain(D,g);return function(){e.dispose()}}),[y,F]),d((function(){_.releaseTemporaryRetain(D)}));var q=D.fragmentNode,w=D.fragmentRef;return s(q,w,t).data}},function(e,r,t){"use strict";var n=t(0),i=n.useCallback,a=n.useEffect,o=n.useRef;e.exports=function(){var e=o(null),r=o(!1),t=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),n=i((function(t){e.current=t,r.current=!0}),[]),u=i((function(){e.current=null,r.current=!1}),[]);return a((function(){return t}),[t]),{isFetchingRef:r,startFetch:n,disposeFetch:t,completeFetch:u}}},function(e,r,t){"use strict";var n=t(33),i=t(0),a=t(1),o=a.createOperationDescriptor,u=a.getRequest,s=i.useMemo;e.exports=function(e,r,t){var i=n(r)[0],a=n(t||{})[0];return s((function(){return o(u(e),i,a)}),[e,i,a])}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(18).getFragmentResourceForEnvironment,a=t(9),o=t(13).getQueryResourceForEnvironment,u=t(11),s=t(8),c=t(25),l=t(2),f=t(3),d=t(0),p=d.useCallback,v=d.useContext,h=d.useReducer,m=t(1),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,_=m.getFragmentIdentifier,b=m.getRefetchMetadata,R=m.getSelector,E=m.getValueAtPath;t(5);function P(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(t=r.refetchEnvironment)&&void 0!==t?t:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}e.exports=function(e,r,t){var d=l(),m=b(e,t),C=m.refetchableRequest,S=m.fragmentRefPathInResponse,k=m.identifierField,F=_(e,r),D=h(P,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:F,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),x=D[0],q=D[1],w=x.fetchPolicy,I=x.mirroredEnvironment,N=x.mirroredFragmentIdentifier,A=x.onComplete,Q=x.refetchEnvironment,O=x.refetchQuery,M=x.renderPolicy,T=null!=Q?Q:d,L=o(T),j=i(T),U=v(a),W=T!==I||F!==N,B=c(C),V=B[0],K=B[1],H=B[2],G=r;if(W)q({type:"reset",environment:T,fragmentIdentifier:F}),H();else if(null!=O&&null!=V){0;var z=function(e){A&&A(null!=e?e:null)},Y=null!=V.source?V.source:y(T,O),X=U.wrapPrepareQueryResource((function(){return L.prepare(O,Y,w,M,{error:z,complete:function(){z()}},V.fetchKey,U)})),J=j.read(X.fragmentNode,X.fragmentRef,t).data;null==J&&f(!1),G=E(J,S)}var Z=u(e,G,t),$=Z.data,ee=Z.disableStoreUpdates,re=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:G,refetch:function(e,r,t,i,a,o,u,c,l,f,d){var v=s(),h=null!=c&&null!=i&&"object"==typeof i?i[c]:null;return p((function(e,i){if(!0!==v.current)return{dispose:function(){}};var a,u,s=null==i?void 0:i.__environment,p=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,_=R(o,f);if(null==_)a={},u={};else if("PluralReaderSelector"===_.kind){var b,E,P,C;a=null!==(b=null===(E=_.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==b?b:{},u=null!==(P=null===(C=_.selectors[0])||void 0===C?void 0:C.variables)&&void 0!==P?P:{}}else a=_.owner.variables,u=_.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},a),u),e);null==c||e.hasOwnProperty("id")||(S.id=h);var k=g(d,S,{force:!0});return l(k.request.variables,{fetchPolicy:p,__environment:s,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:p,onComplete:y,refetchEnvironment:s,refetchQuery:k,renderPolicy:m}),{dispose:t}}),[a,r,t,h,l])}(0,q,H,$,F,e,0,k,K,r,C),disableStoreUpdates:ee,enableStoreUpdates:re}}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(17)),i=t(6),a=i.loadQuery,o=i.useTrackLoadQueryInRender,u=t(8),s=t(2),c=t(0),l=c.useCallback,f=c.useEffect,d=c.useRef,p=c.useState,v=t(1).getRequest,h={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==v(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:h,i=s();o();var c=u(),v=d(new Set([t])),y=p((function(){return t})),g=y[0],_=y[1],b=p((function(){return t})),R=b[0],E=b[1];t!==R&&(v.current.add(t),E(t),_(t));var P=l((function(){c.current&&(v.current.add(h),_(h))}),[c]),C=l((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(c.current){var o,u=a(null!==(o=null==t?void 0:t.__environment)&&void 0!==o?o:i,e,r,n);v.current.add(u),_(u)}}),[i,e,_,c]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==g.kind&&C(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=v.current;if(c.current){var t,i=(0,n.default)(r);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a===g)break;r.delete(a),"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,c,C,e]),f((function(){return function(){var r,t=(0,n.default)(v.current);try{for(t.s();!(r=t.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,C,P]}},function(e,r,t){"use strict";var n=t(27),i=t(16),a=t(6).loadQuery,o=t(28),u=t(29),s=t(30),c=t(32),l=t(35),f=t(36),d=t(39),p=t(25),v=t(40),h=t(2),m=t(41),y=t(42),g=t(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:o,fetchQuery:g.fetchQuery,loadQuery:a,loadEntryPoint:i,useFragment:s,useLazyLoadQuery:c,useEntryPointLoader:u,useQueryLoader:p,useMutation:l,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:v,useRelayEnvironment:h,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,r,t){"use strict";var n=t(9),i=t(2),a=t(0),o=t(0),u=o.useContext,s=o.useEffect;t(5);e.exports=function(e){var r=e.entryPointReference,t=e.props,o=r.getComponent,c=r.queries,l=r.entryPoints,f=r.extraProps,d=r.rootModuleID,p=o(),v=u(n),h=i();return s((function(){h.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:d})}),[h,v,d]),a.createElement(p,{entryPoints:l,extraProps:f,props:t,queries:c})}},function(e,r,t){"use strict";var n=t(0),i=t(15),a=n.useMemo;e.exports=function(e){var r=e.children,t=e.environment,o=e.getEnvironmentForActor,u=a((function(){return{environment:t,getEnvironmentForActor:o}}),[t,o]);return n.createElement(i.Provider,{value:u},r)}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(17)),i=t(16),a=t(6).useTrackLoadQueryInRender,o=t(8),u=t(0),s=u.useCallback,c=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var u,p,v,h;a();var m=null!==(u=null==t||null===(p=t.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(v=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==v?v:null,g=o(),_=l(new Set([m])),b=f(m),R=b[0],E=b[1],P=f(y),C=P[0],S=P[1],k=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};_.current.add(e),E(e)}}),[E,g]),F=s((function(t){if(g.current){var n=i(e,r,t);_.current.add(n),E(n),S(t)}}),[e,r,E,g]),D=l(!1);return c((function(){return function(){D.current=!0}}),[]),c((function(){if(!0===D.current)return D.current=!1,void("NullEntryPointReference"!==R.kind&&null!=C&&F(C));var e=_.current;if(g.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var i=r.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[R,C,F,g]),c((function(){return function(){var e,r=(0,n.default)(_.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullEntryPointReference"!==t.kind&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,F,k]}},function(e,r,t){"use strict";var n=t(10),i=t(6).useTrackLoadQueryInRender,a=t(11),o=t(14),u=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=n.get();return t?t.useFragment(e,r):function(e,r){i();var t=u(e);return o(t,"first argument of useFragment()"),a(t,r,"useFragment()").data}(e,r)}},function(e,r){e.exports=c},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(21),a=t(23),o=t(2),u=t(1).__internal.fetchQuery;e.exports=function(e,r,t){n();var s=o(),c=a(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:u(s,c),fetchPolicy:null==t?void 0:t.fetchPolicy,query:c,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},function(e,r,t){"use strict";var n=t(34),i=t(0),a=i.useMemo,o=i.useRef,u=i.useState;e.exports=function(e){var r,t,i=o(0),s=u(e),c=s[0],l=s[1];return n(e,c)||(i.current=(null!==(t=i.current)&&void 0!==t?t:0)+1,l(e)),[a((function(){return e}),[i.current]),null!==(r=i.current)&&void 0!==r?r:0]}},function(e,r){e.exports=l},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(8),a=t(2),o=t(0),u=t(1).commitMutation,s=o.useState,c=o.useEffect,l=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=a(),o=i(),d=l(t),p=l(e),v=l(new Set),h=s(!1),m=h[0],y=h[1],g=f((function(r){d.current===t&&p.current===e&&(v.current.delete(r),o.current&&y(v.current.size>0))}),[t,o,e]);c((function(){d.current===t&&p.current===e||(v.current=new Set,o.current&&y(!1),d.current=t,p.current=e)}),[t,o,e]);var _=f((function(i){o.current&&y(!0);var a=r(t,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,r){var t;g(a),null===(t=i.onCompleted)||void 0===t||t.call(i,e,r)},onError:function(e){var r;g(a),null===(r=i.onError)||void 0===r||r.call(i,e)},onUnsubscribe:function(){var e;g(a),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return v.current.add(a),a}),[g,r,t,o,e]);return[_,m]}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(10),a=t(37),o=t(24),u=t(14),s=t(0),c=s.useCallback,l=(s.useDebugValue,s.useState),f=t(1),d=f.getFragment,p=f.getFragmentIdentifier,v=f.getPaginationMetadata;function h(e){var r=l(!1),t=r[0],i=r[1],o={start:function(){return i(!0)},complete:function(){return i(!1)},error:function(){return i(!1)}},u=a((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return i(!1)}}));return[u[0],u[1],t,u[2]]}e.exports=function(e,r){var t=i.get();return t?t.usePaginationFragment(e,r):function(e,r){var t=d(e);u(t,"first argument of usePaginationFragment()");var i=v(t,"usePaginationFragment()"),a=i.connectionPathInFragmentData,s=i.paginationRequest,l=i.paginationMetadata,f=i.identifierField,m=o(t,r,"usePaginationFragment()"),y=m.fragmentData,g=m.fragmentRef,_=m.refetch,b=p(t,g),R=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:a,direction:"backward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,identifierField:f,paginationMetadata:l,paginationRequest:s}),E=R[0],P=R[1],C=R[2],S=R[3],k=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:a,direction:"forward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,identifierField:f,paginationMetadata:l,paginationRequest:s}),F=k[0],D=k[1],x=k[2],q=k[3];return{data:y,loadNext:F,loadPrevious:E,hasNext:D,hasPrevious:P,isLoadingNext:x,isLoadingPrevious:C,refetch:c((function(e,r){return q(),S(),_(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[q,S,_])}}(e,r)}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(22),a=t(8),o=t(38),u=t(2),s=t(3),c=t(0),l=c.useCallback,f=c.useEffect,d=c.useState,p=t(1),v=p.ConnectionInterface,h=p.__internal.fetchQuery,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,_=p.getValueAtPath;t(5);e.exports=function(e){var r=e.direction,t=e.fragmentNode,c=e.fragmentRef,p=e.fragmentIdentifier,b=e.fragmentData,R=e.connectionPathInFragmentData,E=e.paginationRequest,P=e.paginationMetadata,C=e.componentDisplayName,S=e.observer,k=e.onReset,F=e.identifierField,D=u(),x=i(),q=x.isFetchingRef,w=x.startFetch,I=x.disposeFetch,N=x.completeFetch,A=null!=F&&null!=b&&"object"==typeof b?b[F]:null,Q=a(),O=d(D),M=O[0],T=O[1],L=d(p),j=L[0],U=L[1],W=o(t,c);(D!==M||p!==j)&&(I(),k(),T(D),U(p));var B=function(e,r,t,n){var i,a,o=v.get(),u=o.EDGES,c=o.PAGE_INFO,l=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,h=_(t,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&s(!1);var m=h[u],y=h[c];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1),"object"!=typeof y&&s(!1);var g,b="forward"===e?null!==(i=y[d])&&void 0!==i?i:null:null!==(a=y[p])&&void 0!==a?a:null;null!==b&&"string"!=typeof b&&s(!1),g="forward"===e?null!=b&&!0===y[l]:null!=b&&!0===y[f];return{cursor:b,hasMore:g}}(r,0,b,R),V=B.cursor,K=B.hasMore;return f((function(){return function(){I()}}),[I]),[l((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==Q.current)return{dispose:function(){}};var o=g(t,c);if(!0===q.current||null==b||W)return a&&a(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1);var u=o.owner.variables,l=o.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),p=y(r,e,V,d,(0,n.default)({},f),P);null!=F&&(p.id=A);var v=m(E,p,{force:!0});return h(D,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){w(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),a&&a(null)},error:function(e){N(),S.error&&S.error(e),a&&a(e)}})),{dispose:I}}),[D,A,r,V,w,I,N,q,W,b,t.name,c,C]),K,I]}},function(e,r,t){"use strict";var n=t(2),i=t(3),a=t(0),o=t(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,c=a.useEffect,l=a.useState,f=a.useMemo;e.exports=function(e,r){var t=n(),a=f((function(){var n=s(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&i(!1),u(t,n.owner))}),[t,e,r]),o=l(null!=a),d=o[0],p=o[1];return c((function(){var e;if(p(null!=a),null!=a){var r=function(){p(!1)};e=a.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[a]),d}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(21),a=t(23),o=t(2),u=t(3),s=(t(0).useDebugValue,t(1).__internal),c=s.fetchQueryDeduped,l=s.fetchQuery;t(5);e.exports=function(e,r,t){n();var s,f=o(),d=r.fetchKey,p=r.fetchPolicy,v=r.source,h=r.variables,m=r.networkCacheConfig,y=a(e,h,m);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&u(!1),s={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:c(f,y.request.identifier,(function(){return f===r.environment&&null!=v?f.executeWithSource({operation:y,source:v}):f.execute({operation:y})})),fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var g=l(f,y);s={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=v&&f===r.environment?v.ifEmpty(g):(r.environment,g),fetchKey:d,fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return i(s)}},function(e,r,t){"use strict";var n=t(10),i=t(24),a=t(14),o=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=n.get();return t?t.useRefetchableFragment(e,r):function(e,r){var t=o(e);a(t,"first argument of useRefetchableFragment()");var n=i(t,r,"useRefetchableFragment()");return[n.fragmentData,n.refetch]}(e,r)}},function(e,r,t){"use strict";var n=t(2),i=t(0),a=i.useEffect,o=i.useRef;e.exports=function(e,r){var t=n(),i=o(null),u=Array.from(e).sort().join("");return a((function(){var n=t.getStore(),a=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(a,r);return i.current=o,function(){return o.dispose()}}),[u,r,t]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},function(e,r,t){"use strict";var n=t(2),i=t(0).useEffect,a=t(1).requestSubscription;e.exports=function(e,r){var t=null!=r?r:a,o=n();i((function(){return t(o,e).dispose}),[o,e,t])}}])}));
9
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=r(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"])}(window,(function(e,r,t,n,i,a,o,u,s,c){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=27)}([function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){"use strict";var n=t(16),i=t(3),a=t(0).useContext;e.exports=function(){var e=a(n);return null==e&&i(!1),e.environment}},function(e,r){e.exports=t},function(e,r){e.exports=n},function(e,r){e.exports=i},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(3),a=t(0),o=t(1),u=o.__internal.fetchQueryDeduped,s=o.Observable,c=o.PreloadableQueryRegistry,l=o.RelayFeatureFlags,f=o.ReplaySubject,d=o.createOperationDescriptor,v=o.getRequest,p=o.getRequestIdentifier,h=(t(5),null),m=100001;e.exports={loadQuery:function(e,r,t,o,h){var y,g,_;null===(y=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(g=y.ReactCurrentDispatcher)||void 0===g||g.current,m++;var b,E,R,P,C,S,k=null!==(_=null==o?void 0:o.fetchPolicy)&&void 0!==_?_:"store-or-network",D=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),A=!1,F=function(r,t){return A=!0,e.executeWithSource({operation:r,source:t})},N=new f,I=s.create((function(e){return N.subscribe(e)})),w=null,x=!1,q=function(r){var n;x=!0;var i=new f;if(!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var a="raw-network-request-"+p(r,t);n=u(e,a,(function(){return e.getNetwork().execute(r,t,D)}))}else{n=e.getNetwork().execute(r,t,D)}var o=n.subscribe({error:function(e){w=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return E=o,s.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),E()}}))},O=function(r,t){!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(x=!0);var n=u(e,r.request.identifier,t).subscribe({error:function(e){N.error(e)},next:function(e){N.next(e)},complete:function(){N.complete()}});R=n.unsubscribe},Q=function(r){var n=d(r,t,D);(b=e.retain(n),"store-only"!==k)&&(("store-or-network"!==k||"available"!==e.check(n).status)&&O(n,(function(){var e=q(r.params);return F(n,e)})))};if("PreloadableConcreteRequest"===r.kind){null===(S=(P=r.params).id)&&i(!1);var L=c.get(S);if(null!=L)Q(L);else{var T="store-only"===k?null:q(P),M=c.onLoad(S,(function(r){C();var n=d(r,t,D);b=e.retain(n),null!=T&&O(n,(function(){return F(n,T)}))}));C=M.dispose}}else{var U=v(r);S=null!=(P=U.params).cacheID?P.cacheID:P.id,Q(U)}var j=!1,B=!1,K=!1,V=function(){B||(b&&b.dispose(),B=!0)},W=function(){K||(A?R&&R():E&&E(),C&&C(),K=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){j||(V(),W(),j=!0)},releaseQuery:V,cancelNetworkRequest:W,fetchKey:m,id:S,get isDisposed(){return j||B},get networkError(){return w},name:P.name,networkCacheConfig:D,fetchPolicy:k,source:x?I:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===h&&(h=null===(e=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},function(e,r){e.exports=a},function(e,r,t){"use strict";var n=t(0),i=n.useEffect,a=n.useRef;e.exports=function(){var e=a(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,r,t){"use strict";var n=t(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,r,t){"use strict";t(5);var n=null;e.exports={inject:function(e){n=e},get:function(){return n}}},function(e,r,t){"use strict";var n=t(19).getFragmentResourceForEnvironment,i=t(2),a=t(14),o=t(0),u=o.useEffect,s=o.useState,c=t(1),l=c.RelayFeatureFlags,f=c.getFragmentIdentifier;t(5);e.exports=function(e,r,t){var o=i(),c=n(o),d=a(!1),v=s(0)[1],p=f(e,r),h=c.readWithIdentifier(e,r,p,t),m=a(!0);function y(){!1!==d.current&&!1!==m.current&&v((function(e){return e+1}))}return u((function(){d.current=!0;var e=c.subscribe(h,y);return function(){d.current=!1,e.dispose()}}),[o,p]),l.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===h.data||Array.isArray(h.data)&&h.data.length>0&&h.data.every((function(e){return void 0===e}))),{data:h.data,disableStoreUpdates:function(){m.current=!1},enableStoreUpdates:function(){m.current=!0,c.checkMissedUpdates(h)[0]&&y()}}}},function(e,r){e.exports=o},function(e,r,t){"use strict";var n=t(4).default,i=n(t(7)),a=n(t(12)),o=t(20),u=t(21),s=t(3),c=t(1).isPromise,l=(t(5),"function"==typeof WeakMap);function f(e){return void 0!==e.request.node.params.metadata.live}function d(e,r,t,n,i){var a=null!=t?t:f(r)?"store-and-network":"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(a,"-").concat(o,"-").concat(r.request.identifier);return null!=i?"".concat(u,"-").concat(i):u}function v(e,r){var t={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var p=2e5;function h(e,r,t,n,i,a){var o=f(r),s=n,c=i,l=new u((function(e){var t=e.retain(r);return{dispose:function(){o&&null!=c&&c.unsubscribe(),t.dispose(),a(d)}}})),d={cacheIdentifier:e,id:p++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=c&&c.unsubscribe(),c=e},temporaryRetain:function(e){return l.temporaryRetain(e)},permanentRetain:function(e){return l.permanentRetain(e)},releaseTemporaryRetain:function(){l.releaseTemporaryRetain()}};return d}var m=function(){function e(e){var r=this;(0,a.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,i,a,o){var u=d(this._environment,e,t,n,a);return this.prepareWithIdentifier(u,e,r,t,n,i,o)},r.prepareWithIdentifier=function(e,r,t,n,a,o,u){var s=this._environment,l=null!=n?n:f(r)?"store-and-network":"store-or-network",d=null!=a?a:s.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),p=null,h=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,r,t,l,d,u,(0,i.default)((0,i.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),p=v.temporaryRetain(s);var m=v.getValue();if(c(m))throw s.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:h,operation:r,queryAvailability:v.operationAvailability,renderPolicy:d}),m;if(m instanceof Error)throw m;return m},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,i=e.operation,a=this._getOrCreateCacheEntry(n,i,null,e,null),o=a.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:a.id}),{dispose:function(){o.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var i=d(this._environment,e,r,t,n);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,t,n,i){var a=this._cache.get(e);return null==a&&(a=h(e,r,t,n,i,this._clearCacheEntry),this._cache.set(e,a)),a},r._fetchAndSaveQuery=function(e,r,t,n,a,o,u){var c,l,d=this,p=this._environment,m=p.check(r),y=m.status,g="available"===y,_=g||"partial"===a&&"stale"!==y,b=function(){};switch(n){case"store-only":c=!1,l=!0;break;case"store-or-network":c=!g,l=_;break;case"store-and-network":c=!0,l=_;break;case"network-only":default:c=!0,l=!1}if(l){var E=v(r,e),R=h(e,r,m,E,null,this._clearCacheEntry);this._cache.set(e,R)}if(c){var P,C=v(r,e);t.subscribe({start:function(t){P=t;var n=d._cache.get(e);n&&n.setNetworkSubscription(P);var a=null==u?void 0:u.start;a&&a((0,i.default)((0,i.default)({},t),{},{unsubscribe:function(){f(r)&&t.unsubscribe()}}))},next:function(){var t=d._getOrCreateCacheEntry(e,r,m,C,P);t.processedPayloadsCount+=1,t.setValue(C),b();var n=null==u?void 0:u.next;null!=n&&n(p.lookup(r.fragment))},error:function(t){var n=d._getOrCreateCacheEntry(e,r,m,t,P);0===n.processedPayloadsCount&&n.setValue(t),b(),P=null,n.setNetworkSubscription(null);var i=null==u?void 0:u.error;i&&i(t)},complete:function(){b(),P=null;var r=d._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==u?void 0:u.complete;t&&t()},unsubscribe:null==u?void 0:u.unsubscribe});var S=this._cache.get(e);if(!S){var k=new Promise((function(e){b=e}));k.displayName="Relay("+r.fragment.node.name+")",S=h(e,r,m,k,P,this._clearCacheEntry),this._cache.set(e,S)}}else{var D=null==u?void 0:u.complete;D&&D()}var A=this._cache.get(e);return null==A&&s(!1),p.__log({name:"queryresource.fetch",resourceID:A.id,operation:r,profilerContext:o,fetchPolicy:n,renderPolicy:a,queryAvailability:m,shouldFetch:c}),A},e}();function y(e){return new m(e)}var g=l?new WeakMap:new Map;e.exports={createQueryResource:y,getQueryResourceForEnvironment:function(e){var r=g.get(e);if(r)return r;var t=y(e);return g.set(e,t),t},getQueryCacheIdentifier:d}},function(e,r,t){"use strict";var n=t(0).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},function(e,r,t){"use strict";t(14),t(5);e.exports=function(e,r){}},function(e,r,t){"use strict";var n=t(0),i=t(1).__internal.createRelayContext;e.exports=i(n)},function(e,r,t){"use strict";var n=t(6).loadQuery;e.exports=function e(r,t,i){var a=null;null==t.root.getModuleIfRequired()&&(a=t.root.load());var o=t.getPreloadProps(i),u=o.queries,s=o.entryPoints,c=o.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e],i=t.environmentProviderOptions,a=t.options,o=t.parameters,s=t.variables,c=r.getEnvironment(i);l[e]=n(c,o,s,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)})),null!=s&&Object.keys(s).forEach((function(t){var n=s[t];if(null!=n){var i=n.entryPoint,a=n.entryPointParams;f[t]=e(r,i,a)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=c?c:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw a=null!==(e=a)&&void 0!==e?e:t.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:l,rootModuleID:t.root.getModuleId()}}},function(e,r){e.exports=u},function(e,r,t){"use strict";var n=t(4).default,i=n(t(7)),a=n(t(12)),o=n(t(32)),u=t(20),s=t(13).getQueryResourceForEnvironment,c=t(21),l=t(3),f=t(1),d=f.__internal,v=d.fetchQuery,p=d.getPromiseForActiveRequest,h=f.RelayFeatureFlags,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,_=f.getSelector,b=f.getVariablesFromFragment,E=f.handlePotentialSnapshotErrors,R=f.isPromise,P=f.recycleNodesInto,C="function"==typeof WeakMap,S=Object.freeze([]);function k(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function D(e){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function A(e,r,t){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data})),isMissingData:k(r),storeEpoch:t}:{cacheKey:e,snapshot:r,data:r.data,isMissingData:k(r),storeEpoch:t}}var F=function(){function e(e){(0,a.default)(this,"_cache",new Map),(0,a.default)(this,"_retainCounts",new Map),this._environment=e}var r=e.prototype;return r.get=function(e){var r,t;return null!==(r=null===(t=this._cache.get(e))||void 0===t?void 0:t[0])&&void 0!==r?r:void 0},r.recordQueryResults=function(e,r){var t=this,n=this._cache.get(e);if(n){var i=n[0],a=n[1];r.forEach((function(e){i.push(e)})),a.temporaryRetain(this._environment)}else{var o=new c((function(){return t._retain(e)}));this._cache.set(e,[r,o]),o.temporaryRetain(this._environment)}},r._retain=function(e){var r,t=this,n=(null!==(r=this._retainCounts.get(e))&&void 0!==r?r:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var r,n=(null!==(r=t._retainCounts.get(e))&&void 0!==r?r:0)-1;n>0?t._retainCounts.set(e,n):(t._retainCounts.delete(e),t._cache.delete(e))}}},e}(),N=function(){function e(e){this._environment=e,this._cache=u.create(1e6),h.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new F(e))}var r=e.prototype;return r.read=function(e,r,t,n){return this.readWithIdentifier(e,r,y(e,r),t,n)},r.readWithIdentifier=function(e,r,t,n,i){var a,u,c,f,d=this,v=this._environment;if(null==r)return{cacheKey:t,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var m=v.getStore().getEpoch();if(!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural)&&(Array.isArray(r)||l(!1),0===r.length))return{cacheKey:t,data:S,isMissingData:!1,snapshot:S,storeEpoch:m};var y=this._cache.get(t);if(null!=y){var g;if("pending"===y.kind&&R(y.promise))throw v.__log({name:"suspense.fragment",data:y.result.data,fragment:e,isRelayHooks:!0,isMissingData:y.result.isMissingData,isPromiseCached:!0,pendingOperations:y.pendingOperations}),y.promise;if("done"===y.kind&&y.result.snapshot&&(null===(g=D(y.result.snapshot))||void 0===g||!g.length))return this._throwOrLogErrorsInSnapshot(y.result.snapshot),y.result.isMissingData&&v.__log({name:"fragmentresource.missing_data",data:y.result.data,fragment:e,isRelayHooks:!0,cached:!0}),y.result}var b=_(e,r);null==b&&l(!1);var E=null,P=null;if(h.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=y&&"missing"===y.kind?(E=y.result,P=y.snapshot):E=A(t,P="PluralReaderSelector"===b.kind?b.selectors.map((function(e){return v.lookup(e)})):v.lookup(b),m),!E.isMissingData)return this._throwOrLogErrorsInSnapshot(P),this._cache.set(t,{kind:"done",result:E}),E;var C=null;if(h.ENABLE_CLIENT_EDGES&&!0===(null===(u=e.metadata)||void 0===u?void 0:u.hasClientEdges)&&function(e){var r,t;return Array.isArray(e)?e.some((function(e){var r,t;return(null!==(r=null===(t=e.missingClientEdges)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0})):(null!==(r=null===(t=e.missingClientEdges)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0}(P)){C=[];var k=s(this._environment),F=[];!function(e,r){Array.isArray(e)?e.forEach(r):r(e)}(P,(function(t){var n;null===(n=t.missingClientEdges)||void 0===n||n.forEach((function(t){var n,i=t.request,a=t.clientEdgeDestinationID,o=d._performClientEdgeQuery(k,e,r,i,a),u=o.queryResult,s=o.requestDescriptor;F.push(u),null===(n=C)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&l(!1),this._clientEdgeQueryResultsCache.recordQueryResults(t,F)}var N=[];h.ENABLE_CLIENT_EDGES&&C&&(N=C.map((function(e){return p(d._environment,e)})).filter(Boolean));var I="PluralReaderSelector"===b.kind?b.selectors[0].owner:b.owner,w=this._getAndSavePromiseForFragmentRequestInFlight(t,e,I,E),x=null==w?void 0:w.promise,q=null!==(c=null===(f=D(P))||void 0===f?void 0:f.map((function(e){var r=e.liveStateID;return v.getStore().getLiveResolverPromise(r)})))&&void 0!==c?c:[];if(N.length||q.length||R(x)){var O,Q;v.__log({name:"suspense.fragment",data:E.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:E.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(O=null==w?void 0:w.pendingOperations)&&void 0!==O?O:[]),(0,o.default)(null!==(Q=C)&&void 0!==Q?Q:[]))});var L=[];if(N.length>0&&(L=L.concat(N)),q.length>0&&(L=L.concat(q)),L.length>0)throw x&&L.push(x),Promise.all(L);if(x)throw x}return h.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&E.isMissingData&&this._cache.set(t,{kind:"done",result:E}),this._throwOrLogErrorsInSnapshot(P),v.__log({name:"fragmentresource.missing_data",data:E.data,fragment:e,isRelayHooks:!0,cached:!1}),A(t,P,m)},r._performClientEdgeQuery=function(e,r,t,n,a){var o=b(r,t),u=(0,i.default)((0,i.default)({},o),{},{id:a}),s=m(n,u,{}),c=v(this._environment,s),l=e.prepare(s,c);return{requestDescriptor:s.request,queryResult:l}},r._throwOrLogErrorsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){E(r._environment,e.missingRequiredFields,e.relayResolverErrors)})):E(this._environment,e.missingRequiredFields,e.relayResolverErrors)},r.readSpec=function(e,r,t){var n={};for(var i in e)n[i]=this.read(e[i],r[i],t,i);return n},r.subscribe=function(e,r){var t=this,n=this._environment,i=e.cacheKey,a=e.snapshot;if(!a)return{dispose:function(){}};var o=this.checkMissedUpdates(e),u=o[0],c=o[1];u&&r();var f=[];if(Array.isArray(a)?(Array.isArray(c)||l(!1),c.forEach((function(e,a){f.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();t._updatePluralSnapshot(i,c,e,a,o),r()})))}))):((null==c||Array.isArray(c))&&l(!1),f.push(n.subscribe(c,(function(e){var a=n.getStore().getEpoch(),o=A(i,e,a);h.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&o.isMissingData?t._cache.set(i,{kind:"missing",result:o,snapshot:e}):t._cache.set(i,{kind:"done",result:A(i,e,a)}),r()})))),h.ENABLE_CLIENT_EDGES){var d,v,p=null!==(d=null===(v=this._clientEdgeQueryResultsCache)||void 0===v?void 0:v.get(i))&&void 0!==d?d:void 0;if(null!=p&&p.length){var m=s(this._environment);p.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),t._cache.delete(i)}}},r.subscribeSpec=function(e,r){var t=this,n=Object.keys(e).map((function(n){return t.subscribe(e[n],r)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},r.checkMissedUpdates=function(e){var r=this._environment,t=e.snapshot;if(!t)return[!1,null];var n;if(n=r.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var a=e.cacheKey;if(Array.isArray(t)){var o=!1,u=[];if(t.forEach((function(e,t){var n=r.lookup(e.selector),a=e.data,s=n.data,c=P(a,s);c!==a&&(n=(0,i.default)((0,i.default)({},n),{},{data:c}),o=!0),u[t]=n})),o){var s=A(a,u,n);h.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&s.isMissingData?this._cache.set(a,{kind:"missing",result:s,snapshot:u}):this._cache.set(a,{kind:"done",result:s})}return[o,u]}var c=r.lookup(t.selector),l=t.data,f=c.data,d=P(l,f),v={data:d,isMissingData:c.isMissingData,missingClientEdges:c.missingClientEdges,missingLiveResolverFields:c.missingLiveResolverFields,seenRecords:c.seenRecords,selector:c.selector,missingRequiredFields:c.missingRequiredFields,relayResolverErrors:c.relayResolverErrors};if(d!==l){var p=A(a,v,n);h.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&p.isMissingData?this._cache.set(a,{kind:"missing",result:p,snapshot:v}):this._cache.set(a,{kind:"done",result:p})}return[d!==l,v]},r.checkMissedUpdatesSpec=function(e){var r=this;return Object.keys(e).some((function(t){return r.checkMissedUpdates(e[t])[0]}))},r._getAndSavePromiseForFragmentRequestInFlight=function(e,r,t,n){var i=this,a=g(this._environment,r,t);if(null==a)return null;var o=a.promise,u=a.pendingOperations,s=o.then((function(){i._cache.delete(e)})).catch((function(r){i._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},r._updatePluralSnapshot=function(e,r,t,n,i){var a,u=this._cache.get(e);if(R(u))I(t.selector.node.name);else{var s=null==u||null===(a=u.result)||void 0===a?void 0:a.snapshot;if(!s||Array.isArray(s)){var c=s?(0,o.default)(s):(0,o.default)(r);c[n]=t;var l=A(e,c,i);h.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&l.isMissingData?this._cache.set(e,{kind:"missing",result:l,snapshot:c}):this._cache.set(e,{kind:"done",result:l})}else I(t.selector.node.name)}},e}();function I(e){l(!1)}function w(e){return new N(e)}var x=C?new WeakMap:new Map;e.exports={createFragmentResource:w,getFragmentResourceForEnvironment:function(e){var r=x.get(e);if(r)return r;var t=w(e);return x.set(e,t),t}}},function(e,r,t){"use strict";var n=t(3),i=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var t=this._map.keys().next();t.done||this._map.delete(t.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(12)),i=t(3),a=function(){function e(e){var r=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(t){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(t)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&(null==r._retainDisposable&&i(!1),r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,t=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),i=null,a=function(){clearTimeout(i),i=null,t._releaseTemporaryRetain=null,n.dispose()};return i=setTimeout(a,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=t._releaseTemporaryRetain)||void 0===e||e.call(t)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}();e.exports=a},function(e,r,t){"use strict";var n=t(9),i=t(13),a=i.getQueryCacheIdentifier,o=i.getQueryResourceForEnvironment,u=t(23),s=t(11),c=t(2),l=t(0),f=l.useContext,d=l.useEffect,v=l.useState,p=l.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,i=e.fetchObservable,l=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,y=c(),g=f(n),_=o(y),b=v(0),E=b[0],R=b[1],P=u(),C=P.startFetch,S=P.completeFetch,k="".concat(E,"-").concat(null!=h?h:""),D=a(y,r,l,m,k),A=g.wrapPrepareQueryResource((function(){return _.prepareWithIdentifier(D,r,i,l,m,{start:C,complete:S,error:S},g)})),F=p(!1);d((function(){return function(){F.current=!0}}),[]),d((function(){if(!0===F.current)return F.current=!1,void R((function(e){return e+1}));var e=_.retain(A,g);return function(){e.dispose()}}),[y,D]),d((function(){_.releaseTemporaryRetain(A)}));var N=A.fragmentNode,I=A.fragmentRef;return s(N,I,t).data}},function(e,r,t){"use strict";var n=t(14),i=t(0),a=i.useCallback,o=i.useEffect;e.exports=function(){var e=n(null),r=n(!1),t=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),i=a((function(t){e.current=t,r.current=!0}),[]),u=a((function(){e.current=null,r.current=!1}),[]);return o((function(){return t}),[t]),{isFetchingRef:r,startFetch:i,disposeFetch:t,completeFetch:u}}},function(e,r,t){"use strict";var n=t(34),i=t(0),a=t(1),o=a.createOperationDescriptor,u=a.getRequest,s=i.useMemo;e.exports=function(e,r,t){var i=n(r),a=n(t||{});return s((function(){return o(u(e),i,a)}),[e,i,a])}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(19).getFragmentResourceForEnvironment,a=t(9),o=t(13).getQueryResourceForEnvironment,u=t(11),s=t(8),c=t(26),l=t(2),f=t(3),d=t(0),v=d.useCallback,p=d.useContext,h=d.useReducer,m=t(1),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,_=m.getFragmentIdentifier,b=m.getRefetchMetadata,E=m.getSelector,R=m.getValueAtPath;t(5);function P(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(t=r.refetchEnvironment)&&void 0!==t?t:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}e.exports=function(e,r,t){var d=l(),m=b(e,t),C=m.refetchableRequest,S=m.fragmentRefPathInResponse,k=_(e,r),D=h(P,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:k,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),A=D[0],F=D[1],N=A.fetchPolicy,I=A.mirroredEnvironment,w=A.mirroredFragmentIdentifier,x=A.onComplete,q=A.refetchEnvironment,O=A.refetchQuery,Q=A.renderPolicy,L=null!=q?q:d,T=o(L),M=i(L),U=p(a),j=L!==I||k!==w,B=c(C),K=B[0],V=B[1],W=B[2],H=r,Y=b(e,t).identifierInfo;if(j)F({type:"reset",environment:L,fragmentIdentifier:k}),W();else if(null!=O&&null!=K){0;var G=function(e){x&&x(null!=e?e:null)},z=null!=K.source?K.source:y(L,O),X=U.wrapPrepareQueryResource((function(){return T.prepare(O,z,N,Q,{error:G,complete:function(){G()}},K.fetchKey,U)})),J=M.read(X.fragmentNode,X.fragmentRef,t).data;null==J&&f(!1),H=R(J,S)}var Z=u(e,H,t),$=Z.data,ee=Z.disableStoreUpdates,re=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:H,refetch:function(e,r,t,i,a,o,u,c,l,f,d){var p=s(),h=null!=(null==c?void 0:c.identifierField)&&null!=i&&"object"==typeof i?i[c.identifierField]:null;return v((function(e,i){if(!0!==p.current)return{dispose:function(){}};var a,u,s=null==i?void 0:i.__environment,v=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,_=E(o,f);if(null==_)a={},u={};else if("PluralReaderSelector"===_.kind){var b,R,P,C;a=null!==(b=null===(R=_.selectors[0])||void 0===R?void 0:R.owner.variables)&&void 0!==b?b:{},u=null!==(P=null===(C=_.selectors[0])||void 0===C?void 0:C.variables)&&void 0!==P?P:{}}else a=_.owner.variables,u=_.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},a),u),e);null==c||e.hasOwnProperty(c.identifierQueryVariableName)||(S[c.identifierQueryVariableName]=h);var k=g(d,S,{force:!0});return l(k.request.variables,{fetchPolicy:v,__environment:s,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:v,onComplete:y,refetchEnvironment:s,refetchQuery:k,renderPolicy:m}),{dispose:t}}),[a,r,t,h,l])}(0,F,W,$,k,e,0,Y,V,r,C),disableStoreUpdates:ee,enableStoreUpdates:re}}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(18)),i=t(6),a=i.loadQuery,o=i.useTrackLoadQueryInRender,u=t(8),s=t(2),c=t(0),l=c.useCallback,f=c.useEffect,d=c.useRef,v=c.useState,p=t(1).getRequest,h={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:h,i=s();o();var c=u(),p=d(new Set([t])),y=v((function(){return t})),g=y[0],_=y[1],b=v((function(){return t})),E=b[0],R=b[1];t!==E&&(p.current.add(t),R(t),_(t));var P=l((function(){c.current&&(p.current.add(h),_(h))}),[c]),C=l((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(c.current){var o,u=a(null!==(o=null==t?void 0:t.__environment)&&void 0!==o?o:i,e,r,n);p.current.add(u),_(u)}}),[i,e,_,c]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==g.kind&&C(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=p.current;if(c.current){var t,i=(0,n.default)(r);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a===g)break;r.delete(a),"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,c,C,e]),f((function(){return function(){var r,t=(0,n.default)(p.current);try{for(t.s();!(r=t.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,C,P]}},function(e,r,t){"use strict";var n=t(28),i=t(17),a=t(6).loadQuery,o=t(9),u=t(29),s=t(30),c=t(31),l=t(33),f=t(36),d=t(37),v=t(40),p=t(26),h=t(41),m=t(2),y=t(42),g=t(43),_=t(1);e.exports={ConnectionHandler:_.ConnectionHandler,applyOptimisticMutation:_.applyOptimisticMutation,commitLocalUpdate:_.commitLocalUpdate,commitMutation:_.commitMutation,graphql:_.graphql,readInlineData:_.readInlineData,requestSubscription:_.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:u,ProfilerContext:o,fetchQuery:_.fetchQuery,loadQuery:a,loadEntryPoint:i,useFragment:c,useLazyLoadQuery:l,useEntryPointLoader:s,useQueryLoader:p,useMutation:f,usePaginationFragment:d,usePreloadedQuery:v,useRefetchableFragment:h,useRelayEnvironment:m,useSubscribeToInvalidationState:y,useSubscription:g}},function(e,r,t){"use strict";var n=t(9),i=t(2),a=t(0),o=t(0),u=o.useContext,s=o.useEffect;t(5);e.exports=function(e){var r=e.entryPointReference,t=e.props,o=r.getComponent,c=r.queries,l=r.entryPoints,f=r.extraProps,d=r.rootModuleID,v=o(),p=u(n),h=i();return s((function(){h.__log({name:"entrypoint.root.consume",profilerContext:p,rootModuleID:d})}),[h,p,d]),a.createElement(v,{entryPoints:l,extraProps:f,props:t,queries:c})}},function(e,r,t){"use strict";var n=t(16),i=t(0),a=i.useMemo;e.exports=function(e){var r=e.children,t=e.environment,o=e.getEnvironmentForActor,u=a((function(){return{environment:t,getEnvironmentForActor:o}}),[t,o]);return i.createElement(n.Provider,{value:u},r)}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(18)),i=t(17),a=t(6).useTrackLoadQueryInRender,o=t(8),u=t(0),s=u.useCallback,c=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var u,v,p,h;a();var m=null!==(u=null==t||null===(v=t.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointReference)&&void 0!==u?u:d,y=null!==(p=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==p?p:null,g=o(),_=l(new Set([m])),b=f(m),E=b[0],R=b[1],P=f(y),C=P[0],S=P[1],k=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};_.current.add(e),R(e)}}),[R,g]),D=s((function(t){if(g.current){var n=i(e,r,t);_.current.add(n),R(n),S(t)}}),[e,r,R,g]),A=l(!1);return c((function(){return function(){A.current=!0}}),[]),c((function(){if(!0===A.current)return A.current=!1,void("NullEntryPointReference"!==E.kind&&null!=C&&D(C));var e=_.current;if(g.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var i=r.value;if(i===E)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[E,C,D,g]),c((function(){return function(){var e,r=(0,n.default)(_.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullEntryPointReference"!==t.kind&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===E.kind?null:E,D,k]}},function(e,r,t){"use strict";var n=t(10),i=t(6).useTrackLoadQueryInRender,a=t(11),o=t(15),u=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=n.get();return t?t.useFragment(e,r):function(e,r){i();var t=u(e);return o(t,"first argument of useFragment()"),a(t,r,"useFragment()").data}(e,r)}},function(e,r){e.exports=s},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(22),a=t(24),o=t(2),u=t(1).__internal.fetchQuery;e.exports=function(e,r,t){n();var s=o(),c=a(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:u(s,c),fetchPolicy:null==t?void 0:t.fetchPolicy,query:c,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},function(e,r,t){"use strict";var n=t(35),i=t(0).useState;e.exports=function(e){var r=i(e),t=r[0],a=r[1];return n(e,t)?t:(a(e),e)}},function(e,r){e.exports=c},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(8),a=t(2),o=t(0),u=t(1).commitMutation,s=o.useState,c=o.useEffect,l=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=a(),o=i(),d=l(t),v=l(e),p=l(new Set),h=s(!1),m=h[0],y=h[1],g=f((function(r){d.current===t&&v.current===e&&(p.current.delete(r),o.current&&y(p.current.size>0))}),[t,o,e]);c((function(){d.current===t&&v.current===e||(p.current=new Set,o.current&&y(!1),d.current=t,v.current=e)}),[t,o,e]);var _=f((function(i){o.current&&y(!0);var a=r(t,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,r){var t;g(a),null===(t=i.onCompleted)||void 0===t||t.call(i,e,r)},onError:function(e){var r;g(a),null===(r=i.onError)||void 0===r||r.call(i,e)},onUnsubscribe:function(){var e;g(a),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return p.current.add(a),a}),[g,r,t,o,e]);return[_,m]}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(10),a=t(38),o=t(25),u=t(15),s=t(0),c=s.useCallback,l=(s.useDebugValue,s.useState),f=t(1),d=f.getFragment,v=f.getFragmentIdentifier,p=f.getPaginationMetadata;function h(e){var r=l(!1),t=r[0],i=r[1],o={start:function(){return i(!0)},complete:function(){return i(!1)},error:function(){return i(!1)}},u=a((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return i(!1)}}));return[u[0],u[1],t,u[2]]}e.exports=function(e,r){var t=i.get();return t?t.usePaginationFragment(e,r):function(e,r){var t=d(e);u(t,"first argument of usePaginationFragment()");var i=p(t,"usePaginationFragment()"),a=i.connectionPathInFragmentData,s=i.paginationRequest,l=i.paginationMetadata,f=o(t,r,"usePaginationFragment()"),m=f.fragmentData,y=f.fragmentRef,g=f.refetch,_=v(t,y),b=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:a,direction:"backward",fragmentData:m,fragmentIdentifier:_,fragmentNode:t,fragmentRef:y,paginationMetadata:l,paginationRequest:s}),E=b[0],R=b[1],P=b[2],C=b[3],S=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:a,direction:"forward",fragmentData:m,fragmentIdentifier:_,fragmentNode:t,fragmentRef:y,paginationMetadata:l,paginationRequest:s}),k=S[0],D=S[1],A=S[2],F=S[3];return{data:m,loadNext:k,loadPrevious:E,hasNext:D,hasPrevious:R,isLoadingNext:A,isLoadingPrevious:P,refetch:c((function(e,r){return F(),C(),g(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[F,C,g])}}(e,r)}},function(e,r,t){"use strict";var n=(0,t(4).default)(t(7)),i=t(23),a=t(8),o=t(39),u=t(2),s=t(3),c=t(0),l=c.useCallback,f=c.useEffect,d=c.useState,v=t(1),p=v.__internal.fetchQuery,h=v.ConnectionInterface,m=v.createOperationDescriptor,y=v.getPaginationVariables,g=v.getRefetchMetadata,_=v.getSelector,b=v.getValueAtPath;t(5);e.exports=function(e){var r=e.direction,t=e.fragmentNode,c=e.fragmentRef,v=e.fragmentIdentifier,E=e.fragmentData,R=e.connectionPathInFragmentData,P=e.paginationRequest,C=e.paginationMetadata,S=e.componentDisplayName,k=e.observer,D=e.onReset,A=u(),F=i(),N=F.isFetchingRef,I=F.startFetch,w=F.disposeFetch,x=F.completeFetch,q=g(t,S).identifierInfo,O=null!=(null==q?void 0:q.identifierField)&&null!=E&&"object"==typeof E?E[q.identifierField]:null,Q=a(),L=d(A),T=L[0],M=L[1],U=d(v),j=U[0],B=U[1],K=o(t,c);(A!==T||v!==j)&&(w(),D(),M(A),B(v));var V=function(e,r,t,n){var i,a,o=h.get(),u=o.EDGES,c=o.PAGE_INFO,l=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,v=o.START_CURSOR,p=b(t,n);if(null==p)return{cursor:null,hasMore:!1};"object"!=typeof p&&s(!1);var m=p[u],y=p[c];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1),"object"!=typeof y&&s(!1);var g,_="forward"===e?null!==(i=y[d])&&void 0!==i?i:null:null!==(a=y[v])&&void 0!==a?a:null;null!==_&&"string"!=typeof _&&s(!1),g="forward"===e?null!=_&&!0===y[l]:null!=_&&!0===y[f];return{cursor:_,hasMore:g}}(r,0,E,R),W=V.cursor,H=V.hasMore;return f((function(){return function(){w()}}),[w]),[l((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==Q.current)return{dispose:function(){}};var o=_(t,c);if(!0===N.current||null==E||K)return a&&a(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1);var u=o.owner.variables,l=o.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),v=y(r,e,W,d,(0,n.default)({},f),C);null!=q&&(v[q.identifierQueryVariableName]=O);var h=m(P,v,{force:!0});return p(A,h).subscribe((0,n.default)((0,n.default)({},k),{},{start:function(e){I(e),k.start&&k.start(e)},complete:function(){x(),k.complete&&k.complete(),a&&a(null)},error:function(e){x(),k.error&&k.error(e),a&&a(e)}})),{dispose:w}}),[A,O,r,W,I,w,x,N,K,E,t.name,c,S]),H,w]}},function(e,r,t){"use strict";var n=t(2),i=t(3),a=t(0),o=t(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,c=a.useEffect,l=a.useState,f=a.useMemo;e.exports=function(e,r){var t=n(),a=f((function(){var n=s(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&i(!1),u(t,n.owner))}),[t,e,r]),o=l(null!=a),d=o[0],v=o[1];return c((function(){var e;if(v(null!=a),null!=a){var r=function(){v(!1)};e=a.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[a]),d}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(22),a=t(24),o=t(2),u=t(3),s=(t(0).useDebugValue,t(1).__internal),c=s.fetchQueryDeduped,l=s.fetchQuery;t(5);e.exports=function(e,r,t){n();var s,f=o(),d=r.fetchKey,v=r.fetchPolicy,p=r.source,h=r.variables,m=r.networkCacheConfig,y=a(e,h,m);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&u(!1),s={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:c(f,y.request.identifier,(function(){return f===r.environment&&null!=p?f.executeWithSource({operation:y,source:p}):f.execute({operation:y})})),fetchPolicy:v,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var g=l(f,y);s={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=p&&f===r.environment?p.ifEmpty(g):(r.environment,g),fetchKey:d,fetchPolicy:v,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return i(s)}},function(e,r,t){"use strict";var n=t(10),i=t(25),a=t(15),o=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=n.get();return t?t.useRefetchableFragment(e,r):function(e,r){var t=o(e);a(t,"first argument of useRefetchableFragment()");var n=i(t,r,"useRefetchableFragment()");return[n.fragmentData,n.refetch]}(e,r)}},function(e,r,t){"use strict";var n=t(2),i=t(0),a=i.useEffect,o=i.useRef;e.exports=function(e,r){var t=n(),i=o(null),u=Array.from(e).sort().join("");return a((function(){var n=t.getStore(),a=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(a,r);return i.current=o,function(){return o.dispose()}}),[u,r,t]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},function(e,r,t){"use strict";var n=t(2),i=t(0).useEffect,a=t(1).requestSubscription;e.exports=function(e,r){var t=null!=r?r:a,o=n();i((function(){return t(o,e).dispose}),[o,e,t])}}])}));