react-relay 16.2.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContainerUtils.js.flow +2 -2
- package/ReactRelayContext.js +1 -1
- package/ReactRelayContext.js.flow +1 -1
- package/ReactRelayFragmentContainer.js.flow +10 -8
- package/ReactRelayLocalQueryRenderer.js.flow +4 -1
- package/ReactRelayPaginationContainer.js.flow +4 -2
- package/ReactRelayQueryRenderer.js.flow +2 -2
- package/ReactRelayQueryRendererContext.js.flow +1 -1
- package/ReactRelayRefetchContainer.js.flow +2 -2
- package/ReactRelayTypes.js.flow +45 -18
- package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +2 -2
- package/buildReactRelayContainer.js.flow +10 -8
- package/getRootVariablesForFragments.js.flow +1 -0
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/lib/ReactRelayFragmentContainer.js +2 -2
- package/lib/buildReactRelayContainer.js +3 -3
- package/lib/relay-hooks/legacy/FragmentResource.js +14 -16
- package/lib/relay-hooks/loadEntryPoint.js +8 -5
- package/lib/relay-hooks/loadQuery.js +2 -14
- package/lib/relay-hooks/{experimental/readFragmentInternal_EXPERIMENTAL.js → readFragmentInternal.js} +7 -5
- package/lib/relay-hooks/useEntryPointLoader.js +5 -8
- package/lib/relay-hooks/useFragment.js +7 -20
- package/lib/relay-hooks/useFragmentInternal.js +13 -0
- package/lib/relay-hooks/{experimental/useFragmentInternal_EXPERIMENTAL.js → useFragmentInternal_CURRENT.js} +12 -18
- package/lib/relay-hooks/useFragmentInternal_EXPERIMENTAL.js +520 -0
- package/lib/relay-hooks/useLazyLoadQuery.js +2 -5
- package/lib/relay-hooks/useLazyLoadQueryNode.js +2 -13
- package/lib/relay-hooks/usePaginationFragment.js +17 -13
- package/lib/relay-hooks/usePreloadedQuery.js +6 -9
- package/lib/relay-hooks/useQueryLoader.js +1 -3
- package/lib/relay-hooks/useRefetchableFragment.js +3 -12
- package/lib/relay-hooks/{experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js → useRefetchableFragmentInternal.js} +7 -7
- package/multi-actor/ActorChange.js.flow +1 -1
- package/multi-actor/useRelayActorEnvironment.js.flow +1 -1
- package/package.json +3 -3
- package/react-relay-hooks.js +2 -2
- package/react-relay-hooks.min.js +2 -2
- package/react-relay-legacy.js +2 -2
- package/react-relay-legacy.min.js +2 -2
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/relay-hooks/EntryPointTypes.flow.js.flow +49 -25
- package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +22 -5
- package/relay-hooks/MatchContainer.js.flow +1 -1
- package/relay-hooks/ProfilerContext.js.flow +1 -1
- package/relay-hooks/__flowtests__/EntryPointTypes/ExtractQueryTypes-flowtest.js.flow +43 -0
- package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +21 -0
- package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +19 -0
- package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +22 -0
- package/relay-hooks/legacy/FragmentResource.js.flow +13 -16
- package/relay-hooks/legacy/useBlockingPaginationFragment.js.flow +2 -2
- package/relay-hooks/legacy/useFragmentNode.js.flow +1 -1
- package/relay-hooks/legacy/useRefetchableFragmentNode.js.flow +2 -2
- package/relay-hooks/loadEntryPoint.js.flow +10 -4
- package/relay-hooks/loadQuery.js.flow +10 -33
- package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +4 -1
- package/relay-hooks/{experimental/readFragmentInternal_EXPERIMENTAL.js.flow → readFragmentInternal.js.flow} +6 -4
- package/relay-hooks/useClientQuery.js.flow +1 -1
- package/relay-hooks/useEntryPointLoader.js.flow +4 -5
- package/relay-hooks/useFetchTrackingRef.js.flow +1 -1
- package/relay-hooks/useFragment.js.flow +8 -25
- package/relay-hooks/useFragmentInternal.js.flow +45 -0
- package/relay-hooks/{experimental/useFragmentInternal_EXPERIMENTAL.js.flow → useFragmentInternal_CURRENT.js.flow} +14 -5
- package/relay-hooks/useFragmentInternal_EXPERIMENTAL.js.flow +764 -0
- package/relay-hooks/useIsMountedRef.js.flow +1 -1
- package/relay-hooks/useIsOperationNodeActive.js.flow +1 -1
- package/relay-hooks/useIsParentQueryActive.js.flow +5 -2
- package/relay-hooks/useLazyLoadQuery.js.flow +3 -7
- package/relay-hooks/useLazyLoadQueryNode.js.flow +3 -19
- package/relay-hooks/useLoadMoreFunction.js.flow +1 -1
- package/relay-hooks/useMemoOperationDescriptor.js.flow +1 -1
- package/relay-hooks/useMemoVariables.js.flow +1 -1
- package/relay-hooks/useMutation.js.flow +1 -1
- package/relay-hooks/usePaginationFragment.js.flow +62 -50
- package/relay-hooks/usePreloadedQuery.js.flow +2 -6
- package/relay-hooks/useQueryLoader.js.flow +3 -7
- package/relay-hooks/useRefetchableFragment.js.flow +7 -37
- package/relay-hooks/{experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js.flow → useRefetchableFragmentInternal.js.flow} +11 -11
- package/relay-hooks/useRelayEnvironment.js.flow +1 -1
- package/relay-hooks/useStaticFragmentNodeWarning.js.flow +3 -1
- package/relay-hooks/useSubscribeToInvalidationState.js.flow +1 -1
- package/relay-hooks/useSubscription.js.flow +1 -1
- package/relay-hooks/useUnsafeRef_DEPRECATED.js.flow +1 -1
- package/lib/relay-hooks/HooksImplementation.js +0 -15
- package/lib/relay-hooks/experimental/useFragment_EXPERIMENTAL.js +0 -26
- package/lib/relay-hooks/experimental/usePaginationFragment_EXPERIMENTAL.js +0 -127
- package/lib/relay-hooks/experimental/useRefetchableFragment_EXPERIMENTAL.js +0 -23
- package/relay-hooks/HooksImplementation.js.flow +0 -45
- package/relay-hooks/experimental/useFragment_EXPERIMENTAL.js.flow +0 -72
- package/relay-hooks/experimental/usePaginationFragment_EXPERIMENTAL.js.flow +0 -161
- package/relay-hooks/experimental/useRefetchableFragment_EXPERIMENTAL.js.flow +0 -49
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
4
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
5
|
-
var HooksImplementation = require('./HooksImplementation');
|
6
|
-
var useRefetchableFragmentNode = require('./legacy/useRefetchableFragmentNode');
|
7
5
|
var useLoadMoreFunction = require('./useLoadMoreFunction');
|
6
|
+
var useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal');
|
7
|
+
var useRelayEnvironment = require('./useRelayEnvironment');
|
8
8
|
var useStaticFragmentNodeWarning = require('./useStaticFragmentNodeWarning');
|
9
9
|
var _require = require('react'),
|
10
10
|
useCallback = _require.useCallback,
|
@@ -14,7 +14,7 @@ var _require2 = require('relay-runtime'),
|
|
14
14
|
getFragment = _require2.getFragment,
|
15
15
|
getFragmentIdentifier = _require2.getFragmentIdentifier,
|
16
16
|
getPaginationMetadata = _require2.getPaginationMetadata;
|
17
|
-
function
|
17
|
+
function usePaginationFragment(fragmentInput, parentFragmentRef) {
|
18
18
|
var fragmentNode = getFragment(fragmentInput);
|
19
19
|
useStaticFragmentNodeWarning(fragmentNode, 'first argument of usePaginationFragment()');
|
20
20
|
var componentDisplayName = 'usePaginationFragment()';
|
@@ -22,7 +22,7 @@ function usePaginationFragment_LEGACY(fragmentInput, parentFragmentRef) {
|
|
22
22
|
connectionPathInFragmentData = _getPaginationMetadat.connectionPathInFragmentData,
|
23
23
|
paginationRequest = _getPaginationMetadat.paginationRequest,
|
24
24
|
paginationMetadata = _getPaginationMetadat.paginationMetadata;
|
25
|
-
var _useRefetchableFragme =
|
25
|
+
var _useRefetchableFragme = useRefetchableFragmentInternal(fragmentNode, parentFragmentRef, componentDisplayName),
|
26
26
|
fragmentData = _useRefetchableFragme.fragmentData,
|
27
27
|
fragmentRef = _useRefetchableFragme.fragmentRef,
|
28
28
|
refetch = _useRefetchableFragme.refetch;
|
@@ -86,9 +86,21 @@ function usePaginationFragment_LEGACY(fragmentInput, parentFragmentRef) {
|
|
86
86
|
};
|
87
87
|
}
|
88
88
|
function useLoadMore(args) {
|
89
|
+
var environment = useRelayEnvironment();
|
89
90
|
var _useState = useState(false),
|
90
91
|
isLoadingMore = _useState[0],
|
91
|
-
|
92
|
+
reallySetIsLoadingMore = _useState[1];
|
93
|
+
var setIsLoadingMore = function setIsLoadingMore(value) {
|
94
|
+
var _environment$getSched;
|
95
|
+
var schedule = (_environment$getSched = environment.getScheduler()) === null || _environment$getSched === void 0 ? void 0 : _environment$getSched.schedule;
|
96
|
+
if (schedule) {
|
97
|
+
schedule(function () {
|
98
|
+
reallySetIsLoadingMore(value);
|
99
|
+
});
|
100
|
+
} else {
|
101
|
+
reallySetIsLoadingMore(value);
|
102
|
+
}
|
103
|
+
};
|
92
104
|
var observer = {
|
93
105
|
start: function start() {
|
94
106
|
return setIsLoadingMore(true);
|
@@ -112,12 +124,4 @@ function useLoadMore(args) {
|
|
112
124
|
disposeFetch = _useLoadMoreFunction[2];
|
113
125
|
return [loadMore, hasMore, isLoadingMore, disposeFetch];
|
114
126
|
}
|
115
|
-
function usePaginationFragment(fragmentInput, parentFragmentRef) {
|
116
|
-
var impl = HooksImplementation.get();
|
117
|
-
if (impl) {
|
118
|
-
return impl.usePaginationFragment(fragmentInput, parentFragmentRef);
|
119
|
-
} else {
|
120
|
-
return usePaginationFragment_LEGACY(fragmentInput, parentFragmentRef);
|
121
|
-
}
|
122
|
-
}
|
123
127
|
module.exports = usePaginationFragment;
|
@@ -1,20 +1,17 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var _require = require('./loadQuery'),
|
4
|
-
useTrackLoadQueryInRender = _require.useTrackLoadQueryInRender;
|
5
3
|
var useLazyLoadQueryNode = require('./useLazyLoadQueryNode');
|
6
4
|
var useMemoOperationDescriptor = require('./useMemoOperationDescriptor');
|
7
5
|
var useRelayEnvironment = require('./useRelayEnvironment');
|
8
6
|
var invariant = require('invariant');
|
9
|
-
var
|
10
|
-
useDebugValue =
|
11
|
-
var
|
12
|
-
|
13
|
-
fetchQueryDeduped =
|
14
|
-
fetchQuery =
|
7
|
+
var _require = require('react'),
|
8
|
+
useDebugValue = _require.useDebugValue;
|
9
|
+
var _require2 = require('relay-runtime'),
|
10
|
+
_require2$__internal = _require2.__internal,
|
11
|
+
fetchQueryDeduped = _require2$__internal.fetchQueryDeduped,
|
12
|
+
fetchQuery = _require2$__internal.fetchQuery;
|
15
13
|
var warning = require("fbjs/lib/warning");
|
16
14
|
function usePreloadedQuery(gqlQuery, preloadedQuery, options) {
|
17
|
-
useTrackLoadQueryInRender();
|
18
15
|
var environment = useRelayEnvironment();
|
19
16
|
var fetchKey = preloadedQuery.fetchKey,
|
20
17
|
fetchPolicy = preloadedQuery.fetchPolicy,
|
@@ -3,8 +3,7 @@
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
4
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
5
5
|
var _require = require('./loadQuery'),
|
6
|
-
loadQuery = _require.loadQuery
|
7
|
-
useTrackLoadQueryInRender = _require.useTrackLoadQueryInRender;
|
6
|
+
loadQuery = _require.loadQuery;
|
8
7
|
var useIsMountedRef = require('./useIsMountedRef');
|
9
8
|
var useRelayEnvironment = require('./useRelayEnvironment');
|
10
9
|
var _require2 = require('react'),
|
@@ -27,7 +26,6 @@ function requestIsLiveQuery(preloadableRequest) {
|
|
27
26
|
function useQueryLoader(preloadableRequest, initialQueryReference) {
|
28
27
|
var initialQueryReferenceInternal = initialQueryReference !== null && initialQueryReference !== void 0 ? initialQueryReference : initialNullQueryReferenceState;
|
29
28
|
var environment = useRelayEnvironment();
|
30
|
-
useTrackLoadQueryInRender();
|
31
29
|
var isMountedRef = useIsMountedRef();
|
32
30
|
var undisposedQueryReferencesRef = useRef(new Set([initialQueryReferenceInternal]));
|
33
31
|
var _useState = useState(function () {
|
@@ -1,16 +1,15 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var
|
4
|
-
var useRefetchableFragmentNode = require('./legacy/useRefetchableFragmentNode');
|
3
|
+
var useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal');
|
5
4
|
var useStaticFragmentNodeWarning = require('./useStaticFragmentNodeWarning');
|
6
5
|
var _require = require('react'),
|
7
6
|
useDebugValue = _require.useDebugValue;
|
8
7
|
var _require2 = require('relay-runtime'),
|
9
8
|
getFragment = _require2.getFragment;
|
10
|
-
function
|
9
|
+
function useRefetchableFragment(fragmentInput, fragmentRef) {
|
11
10
|
var fragmentNode = getFragment(fragmentInput);
|
12
11
|
useStaticFragmentNodeWarning(fragmentNode, 'first argument of useRefetchableFragment()');
|
13
|
-
var _useRefetchableFragme =
|
12
|
+
var _useRefetchableFragme = useRefetchableFragmentInternal(fragmentNode, fragmentRef, 'useRefetchableFragment()'),
|
14
13
|
fragmentData = _useRefetchableFragme.fragmentData,
|
15
14
|
refetch = _useRefetchableFragme.refetch;
|
16
15
|
if (process.env.NODE_ENV !== "production") {
|
@@ -21,12 +20,4 @@ function useRefetchableFragment_LEGACY(fragmentInput, fragmentRef) {
|
|
21
20
|
}
|
22
21
|
return [fragmentData, refetch];
|
23
22
|
}
|
24
|
-
function useRefetchableFragment(fragmentInput, parentFragmentRef) {
|
25
|
-
var impl = HooksImplementation.get();
|
26
|
-
if (impl) {
|
27
|
-
return impl.useRefetchableFragment(fragmentInput, parentFragmentRef);
|
28
|
-
} else {
|
29
|
-
return useRefetchableFragment_LEGACY(fragmentInput, parentFragmentRef);
|
30
|
-
}
|
31
|
-
}
|
32
23
|
module.exports = useRefetchableFragment;
|
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
4
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
5
|
-
var ProfilerContext = require('
|
6
|
-
var _require = require('
|
5
|
+
var ProfilerContext = require('./ProfilerContext');
|
6
|
+
var _require = require('./QueryResource'),
|
7
7
|
getQueryResourceForEnvironment = _require.getQueryResourceForEnvironment;
|
8
|
-
var
|
9
|
-
var
|
10
|
-
var
|
11
|
-
var
|
12
|
-
var
|
8
|
+
var readFragmentInternal = require('./readFragmentInternal');
|
9
|
+
var useFragmentInternal = require('./useFragmentInternal');
|
10
|
+
var useIsMountedRef = require('./useIsMountedRef');
|
11
|
+
var useQueryLoader = require('./useQueryLoader');
|
12
|
+
var useRelayEnvironment = require('./useRelayEnvironment');
|
13
13
|
var invariant = require('invariant');
|
14
14
|
var _require2 = require('react'),
|
15
15
|
useCallback = _require2.useCallback,
|
@@ -32,7 +32,7 @@ type ActorChangeProps<TFragmentRef> = {
|
|
32
32
|
|
33
33
|
function ActorChange<TFragmentRef>(
|
34
34
|
props: ActorChangeProps<TFragmentRef>,
|
35
|
-
): React.
|
35
|
+
): React.MixedElement {
|
36
36
|
const actorEnvironment = useRelayActorEnvironment(
|
37
37
|
props.actorChangePoint.__viewer,
|
38
38
|
);
|
@@ -20,7 +20,7 @@ const ReactRelayContext = require('./../ReactRelayContext');
|
|
20
20
|
const invariant = require('invariant');
|
21
21
|
const {useContext} = require('react');
|
22
22
|
|
23
|
-
|
23
|
+
hook useRelayActorEnvironment(
|
24
24
|
actorIdentifier: ActorIdentifier,
|
25
25
|
): IActorEnvironment {
|
26
26
|
const context = useContext(ReactRelayContext);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-relay",
|
3
3
|
"description": "A framework for building GraphQL-driven React applications.",
|
4
|
-
"version": "
|
4
|
+
"version": "18.0.0",
|
5
5
|
"keywords": [
|
6
6
|
"graphql",
|
7
7
|
"relay",
|
@@ -16,11 +16,11 @@
|
|
16
16
|
"directory": "packages/react-relay"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
|
-
"@babel/runtime": "^7.
|
19
|
+
"@babel/runtime": "^7.25.0",
|
20
20
|
"fbjs": "^3.0.2",
|
21
21
|
"invariant": "^2.2.4",
|
22
22
|
"nullthrows": "^1.1.1",
|
23
|
-
"relay-runtime": "
|
23
|
+
"relay-runtime": "18.0.0"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
26
26
|
"react": "^16.9.0 || ^17 || ^18"
|
package/react-relay-hooks.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
|
-
* Relay
|
2
|
+
* Relay v18.0.0
|
3
3
|
*/
|
4
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelayHooks=r(e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,r,t,n,a,i,o,u,s,l)=>(()=>{"use strict";var c={888:(e,r,t)=>{var n=t(156),a=t(658).__internal.createRelayContext;e.exports=a(n)},651:(e,r,t)=>{var n=t(158),a=t(828),i=t(428).loadQuery,o=t(187),u=t(696),s=t(529),l=t(242),c=t(899),f=t(115),d=t(951),p=t(617),h=t(876),v=t(874),m=t(750),y=t(50),g=t(746),_=t(658);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: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}},158:(e,r,t)=>{var n=t(187),a=t(750),i=t(156),o=t(156),u=o.useContext,s=o.useEffect,l=t(446);e.exports=function(e){var r=e.entryPointReference,t=e.props;l(!1===r.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=r.getComponent,c=r.queries,f=r.entryPoints,d=r.extraProps,p=r.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:t,queries:c})}},914:(e,r,t)=>{var n=t(446),a=null;e.exports={inject:function(e){n(null===a,"Relay HooksImplementation was injected twice."),a=e},get:function(){return a}}},93:(e,r,t)=>{var n=t(56),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 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 a(e)}}},187:(e,r,t)=>{var n=t(156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},269:(e,r,t)=>{var n=t(275).default,a=n(t(175)),i=n(t(311)),o=t(93),u=t(637),s=t(56),l=t(658).isPromise,c=t(446),f="store-or-network",d="store-and-network",p="function"==typeof WeakMap;function h(e){return void 0!==e.request.node.params.metadata.live}function v(e,r,t,n,a){var i=null!=t?t:h(r)?d:f,o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(o,"-").concat(r.request.identifier);return null!=a?"".concat(u,"-").concat(a):u}function m(e,r){var t={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var y=2e5;function g(e,r,t,n,a,i){var o=h(r),s=n,l=a,c=new u((function(e){var t=e.retain(r);return{dispose:function(){o&&null!=l&&l.unsubscribe(),t.dispose(),i(f)}}})),f={cacheIdentifier:e,id:y++,processedPayloadsCount:0,operationAvailability:t,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 _=function(){function e(e){var r=this;(0,i.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,a,i,o){var u=v(this._environment,e,t,n,i);return this.prepareWithIdentifier(u,e,r,t,n,a,o)},r.prepareWithIdentifier=function(e,r,t,n,i,o,u){var s=this._environment,c=null!=n?n:h(r)?d:f,p=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,y=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,r,t,c,p,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),m=v.temporaryRetain(s);var g=v.getValue();if(l(g))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:y,operation:r,queryAvailability:v.operationAvailability,renderPolicy:p}),g;if(g instanceof Error)throw g;return g},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,null,e,null),o=i.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:i.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 a=v(this._environment,e,r,t,n);return this._cache.get(a)},r._getOrCreateCacheEntry=function(e,r,t,n,a){var i=this._cache.get(e);return null==i&&(i=g(e,r,t,n,a,this._clearCacheEntry),this._cache.set(e,i)),i},r._fetchAndSaveQuery=function(e,r,t,n,i,o,u){var l,f,d=this,p=this._environment,v=p.check(r),y=v.status,_="available"===y,b=_||"partial"===i&&"stale"!==y,R=function(){};switch(n){case"store-only":l=!1,f=!0;break;case"store-or-network":l=!_,f=b;break;case"store-and-network":l=!0,f=b;break;default:l=!0,f=!1}if(f){var E=m(r,e),P=g(e,r,v,E,null,this._clearCacheEntry);this._cache.set(e,P)}if(l){var k,C=m(r,e);t.subscribe({start:function(t){k=t;var n=d._cache.get(e);n&&n.setNetworkSubscription(k);var i=null==u?void 0:u.start;i&&i((0,a.default)((0,a.default)({},t),{},{unsubscribe:function(){h(r)&&t.unsubscribe()}}))},next:function(){var t=d._getOrCreateCacheEntry(e,r,v,C,k);t.processedPayloadsCount+=1,t.setValue(C),R();var n=null==u?void 0:u.next;null!=n&&n(p.lookup(r.fragment))},error:function(t){var n=d._getOrCreateCacheEntry(e,r,v,t,k);0===n.processedPayloadsCount?n.setValue(t):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",r.fragment.node.name,String(t.message)),R(),k=null,n.setNetworkSubscription(null);var a=null==u?void 0:u.error;a&&a(t)},complete:function(){R(),k=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 x=new Promise((function(e){R=e}));x.displayName="Relay("+r.fragment.node.name+")",S=g(e,r,v,x,k,this._clearCacheEntry),this._cache.set(e,S)}}else{var I=null==u?void 0:u.complete;I&&I()}var w=this._cache.get(e);return null==w&&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."),p.__log({name:"queryresource.fetch",resourceID:w.id,operation:r,profilerContext:o,fetchPolicy:n,renderPolicy:i,queryAvailability:v,shouldFetch:l}),w},e}();function b(e){return new _(e)}var R=p?new WeakMap:new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var r=R.get(e);if(r)return r;var t=b(e);return R.set(e,t),t},getQueryCacheIdentifier:v}},696:(e,r,t)=>{var n=t(888),a=t(156),i=a.useMemo;e.exports=function(e){var r=e.children,t=e.environment,o=e.getEnvironmentForActor,u=i((function(){return{environment:t,getEnvironmentForActor:o}}),[t,o]);return a.createElement(n.Provider,{value:u},r)}},637:(e,r,t)=>{var n=(0,t(275).default)(t(311)),a=t(446),i=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?(r._retainDisposable.dispose(),r._retainDisposable=null):a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."))}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,t=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,t._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(i,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=i,{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=i},726:(e,r,t)=>{var n=t(275).default,a=n(t(175)),i=n(t(311)),o=n(t(642)),u=t(93),s=t(269).getQueryResourceForEnvironment,l=t(637),c=t(56),f=t(658),d=f.__internal,p=d.fetchQuery,h=d.getPromiseForActiveRequest,v=f.RelayFeatureFlags,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,_=f.getSelector,b=f.getVariablesFromFragment,R=f.handlePotentialSnapshotErrors,E=f.isPromise,P=f.recycleNodesInto,k="function"==typeof WeakMap,C=Object.freeze([]);function S(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 I(e,r,t){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data})),isMissingData:S(r),storeEpoch:t}:{cacheKey:e,snapshot:r,data:r.data,isMissingData:S(r),storeEpoch:t}}var w=function(){function e(e){(0,i.default)(this,"_cache",new Map),(0,i.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 a=n[0],i=n[1];r.forEach((function(e){a.push(e)})),i.temporaryRetain(this._environment)}else{var o=new l((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}(),D=function(){function e(e){this._environment=e,this._cache=u.create(1e6),v.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new w(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,a){var i,u,l,f,d=this,p=this._environment;if(null==r)return{cacheKey:t,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(r)||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 r,e.name),0===r.length))return{cacheKey:t,data:C,isMissingData:!1,snapshot:C,storeEpoch:m};var y=this._cache.get(t);if(null!=y){var g;if("pending"===y.kind&&E(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,r);null==b&&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=null,P=null;if(v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=y&&"missing"===y.kind?(R=y.result,P=y.snapshot):R=I(t,P="PluralReaderSelector"===b.kind?b.selectors.map((function(e){return p.lookup(e)})):p.lookup(b),m),!R.isMissingData)return this._throwOrLogErrorsInSnapshot(P),this._cache.set(t,{kind:"done",result:R}),R;var k=null;if(v.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)){k=[];var S=s(this._environment),w=[];!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,a=t.request,i=t.clientEdgeDestinationID,o=d._performClientEdgeQuery(S,e,r,a,i),u=o.queryResult,s=o.requestDescriptor;w.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(t,w)}var D=[];v.ENABLE_CLIENT_EDGES&&k&&(D=k.map((function(e){return h(d._environment,e)})).filter(Boolean));var q="PluralReaderSelector"===b.kind?b.selectors[0].owner:b.owner,A=this._getAndSavePromiseForFragmentRequestInFlight(t,e,q,R),F=null==A?void 0:A.promise,N=null!==(l=null===(f=x(P))||void 0===f?void 0:f.map((function(e){var r=e.liveStateID;return p.getStore().getLiveResolverPromise(r)})))&&void 0!==l?l:[];if(D.length||N.length||E(F)){var Q,T;p.__log({name:"suspense.fragment",data:R.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:R.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(Q=null==A?void 0:A.pendingOperations)&&void 0!==Q?Q:[]),(0,o.default)(null!==(T=k)&&void 0!==T?T:[]))});var O=[];if(D.length>0&&(O=O.concat(D)),N.length>0&&(O=O.concat(N)),O.length>0)throw F&&O.push(F),Promise.all(O);if(F)throw F}return v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&R.isMissingData&&this._cache.set(t,{kind:"done",result:R}),this._throwOrLogErrorsInSnapshot(P),p.__log({name:"fragmentresource.missing_data",data:R.data,fragment:e,isRelayHooks:!0,cached:!1}),I(t,P,m)},r._performClientEdgeQuery=function(e,r,t,n,i){var o=b(r,t),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}},r._throwOrLogErrorsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){R(r._environment,e.missingRequiredFields,e.relayResolverErrors,e.errorResponseFields)})):R(this._environment,e.missingRequiredFields,e.relayResolverErrors,e.errorResponseFields)},r.readSpec=function(e,r,t){var n={};for(var a in e)n[a]=this.read(e[a],r[a],t,a);return n},r.subscribe=function(e,r){var t=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&&r();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();t._updatePluralSnapshot(a,l,e,i,o),r()})))}))):((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=I(a,e,i);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&o.isMissingData?t._cache.set(a,{kind:"missing",result:o,snapshot:e}):t._cache.set(a,{kind:"done",result:I(a,e,i)}),r()})))),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()})),t._cache.delete(a)}}},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,t=this._environment,n=e.snapshot;if(!n)return[!1,null];if(r=t.getStore().getEpoch(),e.storeEpoch===r)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(n)){var o=!1,u=[];if(n.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=I(i,u,r);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(n.selector),c=n.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,errorResponseFields:l.errorResponseFields};if(d!==c){var h=I(i,p,r);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]},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 a=this,i=g(this._environment,r,t);if(null==i)return null;var o=i.promise,u=i.pendingOperations,s=o.then((function(){a._cache.delete(e)})).catch((function(r){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}},r._updatePluralSnapshot=function(e,r,t,n,a){var i,u=this._cache.get(e);if(E(u))q(t.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)(r);l[n]=t;var c=I(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(t.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 F=k?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var r=F.get(e);if(r)return r;var t=A(e);return F.set(e,t),t}}},421:(e,r,t)=>{var n=t(750),a=t(813),i=t(726).getFragmentResourceForEnvironment,o=t(156),u=o.useEffect,s=o.useState,l=t(658),c=l.RelayFeatureFlags,f=l.getFragmentIdentifier,d=t(446);e.exports=function(e,r,t){var o=n(),l=i(o),p=a(!1),h=s(0)[1],v=f(e,r),m=l.readWithIdentifier(e,r,v,t),y=a(!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!=r&&(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,t,t),{data:m.data,disableStoreUpdates:function(){y.current=!1},enableStoreUpdates:function(){y.current=!0,l.checkMissedUpdates(m)[0]&&g()}}}},514:(e,r,t)=>{var n,a=(0,t(275).default)(t(175)),i=t(187),o=t(269).getQueryResourceForEnvironment,u=t(743),s=t(876),l=t(750),c=t(726).getFragmentResourceForEnvironment,f=t(421),d=t(56),p=t(156),h=p.useCallback,v=p.useContext,m=p.useReducer,y=t(658),g=y.__internal.fetchQuery,_=y.createOperationDescriptor,b=y.getFragmentIdentifier,R=y.getRefetchMetadata,E=y.getSelector,P=y.getValueAtPath,k=t(446);function C(e,r){switch(r.type){case"refetch":var t;return(0,a.default)((0,a.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")}}n={getInitialIDAndType:function(e,r,n,a){var i=t(658).Record,o=null==e?void 0:e[null!=n?n:"id"];if(1!==r.length||"node"!==r[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,r,n,a){var i=t(658).Record;if(e){var o=r.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,r,n,a){if(null!=e){var i=r[t(658).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,r,t){var p=l(),y=R(e,t),S=y.refetchableRequest,x=y.fragmentRefPathInResponse,I=b(e,r),w=m(C,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:I,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=w[0],q=w[1],A=D.fetchPolicy,F=D.mirroredEnvironment,N=D.mirroredFragmentIdentifier,Q=D.onComplete,T=D.refetchEnvironment,O=D.refetchQuery,L=D.renderPolicy,M=null!=T?T:p,U=o(M),j=c(M),B=v(i),K=M!==F||I!==N,W=s(S),V=W[0],H=W[1],Y=W[2],G=r,z=R(e,t).identifierInfo;if(K)q({type:"reset",environment:M,fragmentIdentifier:I}),Y();else if(null!=O&&null!=V){var X;X=n.getInitialIDAndType(O.request.variables,x,null==z?void 0:z.identifierQueryVariableName,M);var J=function(e){Q&&Q(null!=e?e:null)},Z=null!=V.source?V.source:g(M,O),$=B.wrapPrepareQueryResource((function(){return U.prepare(O,Z,A,L,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,M,e,t),J()}},V.fetchKey,B)})),ee=j.read($.fragmentNode,$.fragmentRef,t).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,t)}var re=f(e,G,t),te=re.data,ne=re.disableStoreUpdates,ae=re.enableStoreUpdates,ie=function(e,r,t,n,i,o,s,l,c,f,d){var p=u(),v=null!=(null==l?void 0:l.identifierField)&&null!=n&&"object"==typeof n?n[l.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,s,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,b=E(o,f);if(null==b)u={},s={};else if("PluralReaderSelector"===b.kind){var R,P,C,S;u=null!==(R=null===(P=b.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==R?R:{},s=null!==(C=null===(S=b.selectors[0])||void 0===S?void 0:S.variables)&&void 0!==C?C:{}}else u=b.owner.variables,s=b.variables;var x=(0,a.default)((0,a.default)((0,a.default)({},u),s),n);null==l||n.hasOwnProperty(l.identifierQueryVariableName)||("string"!=typeof v&&k(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",l.identifierField,v),x[l.identifierQueryVariableName]=v);var I=_(d,x,{force:!0});return c(I.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:I,renderPolicy:y}),{dispose:t}}),[i,r,t,v,c])}(t,q,Y,te,I,e,0,z,H,r,S);return{fragmentData:te,fragmentRef:G,refetch:ie,disableStoreUpdates:ne,enableStoreUpdates:ae}}},828:(e,r,t)=>{var n=t(428).loadQuery;e.exports=function e(r,t,a){var i=null;null==t.root.getModuleIfRequired()&&(i=t.root.load());var o=t.getPreloadProps(a),u=o.queries,s=o.entryPoints,l=o.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e],a=t.environmentProviderOptions,i=t.options,o=t.parameters,s=t.variables,l=r.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(t){var n=s[t];if(null!=n){var a=n.entryPoint,i=n.entryPointParams;f[t]=e(r,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,r=t.root.getModuleIfRequired();if(null==r)throw i=null!==(e=i)&&void 0!==e?e:t.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:t.root.getModuleId()}}},428:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(56),i=t(156),o=t(658),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=t(446),m=null,y=100001;e.exports={loadQuery:function(e,r,t,o,g){var _,b,R,E,P=null===(_=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===_||null===(b=_.ReactCurrentDispatcher)||void 0===b?void 0:b.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,S,x,I,w,D=null!==(E=null==o?void 0:o.fetchPolicy)&&void 0!==E?E:"store-or-network",q=(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,Q=s.create((function(e){return N.subscribe(e)})),T=null,O=!1,L=function(r){var n;O=!0;var a=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(r,t);n=u(e,i,(function(){return e.getNetwork().execute(r,t,q)}))}else n=e.getNetwork().execute(r,t,q);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,s.create((function(e){var r=a.subscribe(e);return function(){r.unsubscribe(),C()}}))},M=function(r,t){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(O=!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()}});S=n.unsubscribe},U=function(r){var n=d(r,t,q);k=e.retain(n),"store-only"!==D&&("store-or-network"!==D||"available"!==e.check(n).status)&&M(n,(function(){var e=L(r.params);return F(n,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(w=(x=r.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",x.name);var j=l.get(w);if(null!=j)U(j);else{var B="store-only"===D?null:L(x),K=l.onLoad(w,(function(r){I();var n=d(r,t,q);k=e.retain(n),null!=B&&M(n,(function(){return F(n,B)}))}));I=K.dispose}}else{var W=p(r);w=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?S&&S():C&&C(),I&&I(),Y=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){V||(G(),z(),V=!0)},releaseQuery:G,cancelNetworkRequest:z,fetchKey:y,id:w,get isDisposed(){return V||H},get networkError(){return T},name:x.name,networkCacheConfig:q,fetchPolicy:D,source:O?Q:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===m&&(m=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},529:(e,r,t)=>{var n=(0,t(275).default)(t(765)),a=t(828),i=t(428).useTrackLoadQueryInRender,o=t(743),u=t(156),s=u.useCallback,l=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var u,p,h,v;i();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!==(h=null==t||null===(v=t.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,g=o(),_=c(new Set([m])),b=f(m),R=b[0],E=b[1],P=f(y),k=P[0],C=P[1],S=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};_.current.add(e),E(e)}}),[E,g]),x=s((function(t){if(g.current){var n=a(e,r,t);_.current.add(n),E(n),C(t)}}),[e,r,E,g]),I=c(!1);return l((function(){return function(){I.current=!0}}),[]),l((function(){if(!0===I.current)return I.current=!1,void("NullEntryPointReference"!==R.kind&&null!=k&&x(k));var e=_.current;if(g.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var a=r.value;if(a===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[R,k,x,g]),l((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,x,S]}},863:(e,r,t)=>{var n=t(813),a=t(156),i=a.useCallback,o=a.useEffect;e.exports=function(){var e=n(null),r=n(!1),t=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),a=i((function(t){e.current=t,r.current=!0}),[]),u=i((function(){e.current=null,r.current=!1}),[]);return o((function(){return t}),[t]),{isFetchingRef:r,startFetch:a,disposeFetch:t,completeFetch:u}}},242:(e,r,t)=>{var n=t(914),a=t(421),i=t(428).useTrackLoadQueryInRender,o=t(224),u=t(156).useDebugValue,s=t(658).getFragment;e.exports=function(e,r){var t=n.get();return t?t.useFragment(e,r):function(e,r){i();var t=s(e);o(t,"first argument of useFragment()");var n=a(t,r,"useFragment()").data;return u({fragment:t.name,data:n}),n}(e,r)}},743:(e,r,t)=>{var n=t(156),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}},233:(e,r,t)=>{var n=t(750),a=t(56),i=t(156),o=t(658),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,l=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,r){var t=n(),i=f((function(){var n=s(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(t,n.owner))}),[t,e,r]),o=c(null!=i),d=o[0],p=o[1];return l((function(){var e;if(p(null!=i),null!=i){var r=function(){p(!1)};e=i.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[i]),d}},899:(e,r,t)=>{var n=t(428).useTrackLoadQueryInRender,a=t(734),i=t(61),o=t(750),u=t(658).__internal.fetchQuery;e.exports=function(e,r,t){n();var s=o(),l=i(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:u(s,l),fetchPolicy:null==t?void 0:t.fetchPolicy,query:l,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},734:(e,r,t)=>{var n=t(914),a=t(421),i=t(187),o=t(269),u=o.getQueryCacheIdentifier,s=o.getQueryResourceForEnvironment,l=t(863),c=t(750),f=t(156),d=f.useContext,p=f.useEffect,h=f.useState,v=f.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,o=e.fetchObservable,f=e.fetchPolicy,m=e.fetchKey,y=e.renderPolicy,g=c(),_=d(i),b=s(g),R=h(0),E=R[0],P=R[1],k=l(),C=k.startFetch,S=k.completeFetch,x="".concat(E,"-").concat(null!=m?m:""),I=u(g,r,f,y,x),w=_.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(I,r,o,f,y,{start:C,complete:S,error:S},_)})),D=v(!1);return p((function(){return function(){D.current=!0}}),[]),p((function(){if(!0===D.current)return D.current=!1,void P((function(e){return e+1}));var e=b.retain(w,_);return function(){e.dispose()}}),[g,I]),p((function(){b.releaseTemporaryRetain(w)})),function(e,r,t){var i=n.get();return i&&i.useFragment__internal?i.useFragment__internal(e,r,t):a(e,r,t).data}(w.fragmentNode,w.fragmentRef,t)}},601:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(863),i=t(743),o=t(233),u=t(750),s=t(56),l=t(156),c=l.useCallback,f=l.useEffect,d=l.useState,p=t(658),h=p.__internal.fetchQuery,v=p.ConnectionInterface,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getRefetchMetadata,_=p.getSelector,b=p.getValueAtPath,R=t(446);e.exports=function(e){var r=e.direction,t=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,E=e.fragmentData,P=e.connectionPathInFragmentData,k=e.paginationRequest,C=e.paginationMetadata,S=e.componentDisplayName,x=e.observer,I=e.onReset,w=u(),D=a(),q=D.isFetchingRef,A=D.startFetch,F=D.disposeFetch,N=D.completeFetch,Q=g(t,S).identifierInfo,T=null!=(null==Q?void 0:Q.identifierField)&&null!=E&&"object"==typeof E?E[Q.identifierField]:null,O=i(),L=d(w),M=L[0],U=L[1],j=d(p),B=j[0],K=j[1],W=o(t,l);(w!==M||p!==B)&&(F(),I(),U(w),K(p));var V=function(e,r,t,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=b(t,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`.",r.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`.",r.name,u,m),"object"!=typeof y&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",r.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;return null!==g&&"string"!=typeof g&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",r.name,p,g),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(r,t,E,P),H=V.cursor,Y=V.hasMore;return f((function(){return function(){F()}}),[F]),[c((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==O.current)return R(!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.",t.name,S),{dispose:function(){}};var o=_(t,l);if(!0===q.current||null==E||W)return null==o&&R(!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.",t.name,S,S),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.",t.name,S);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(r,e,H,d,(0,n.default)({},f),C);null!=Q&&("string"!=typeof T&&R(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",Q.identifierField,T),p[Q.identifierQueryVariableName]=T);var v=m(k,p,{force:!0});return h(w,v).subscribe((0,n.default)((0,n.default)({},x),{},{start:function(e){A(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:F}}),[w,T,r,H,A,F,N,q,W,E,t.name,l,S]),Y,F]}},61:(e,r,t)=>{var n=t(925),a=t(156),i=t(658),o=i.createOperationDescriptor,u=i.getRequest,s=a.useMemo;e.exports=function(e,r,t){var a=n(r),i=n(t||{});return s((function(){return o(u(e),a,i)}),[e,a,i])}},925:(e,r,t)=>{var n=t(125),a=t(156).useState;e.exports=function(e){var r=a(e),t=r[0],i=r[1];return n(e,t)?t:(i(e),e)}},115:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(743),i=t(750),o=t(156),u=t(658).commitMutation,s=o.useState,l=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=i(),o=a(),d=c(t),p=c(e),h=c(new Set),v=s(!1),m=v[0],y=v[1],g=f((function(r){d.current===t&&p.current===e&&(h.current.delete(r),o.current&&y(h.current.size>0))}),[t,o,e]);return l((function(){d.current===t&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=t,p.current=e)}),[t,o,e]),[f((function(a){o.current&&y(!0);var i=r(t,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,r){var t;g(i),null===(t=a.onCompleted)||void 0===t||t.call(a,e,r)},onError:function(e){var r;g(i),null===(r=a.onError)||void 0===r||r.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,r,t,o,e]),m]}},951:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(914),i=t(514),o=t(601),u=t(224),s=t(156),l=s.useCallback,c=s.useDebugValue,f=s.useState,d=t(658),p=d.getFragment,h=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var r=f(!1),t=r[0],a=r[1],i={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},u=o((0,n.default)((0,n.default)({},e),{},{observer:i,onReset:function(){return a(!1)}}));return[u[0],u[1],t,u[2]]}e.exports=function(e,r){var t=a.get();return t?t.usePaginationFragment(e,r):function(e,r){var t=p(e);u(t,"first argument of usePaginationFragment()");var a="usePaginationFragment()",o=v(t,a),s=o.connectionPathInFragmentData,f=o.paginationRequest,d=o.paginationMetadata,y=i(t,r,a),g=y.fragmentData,_=y.fragmentRef,b=y.refetch,R=h(t,_),E=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:t,fragmentRef:_,paginationMetadata:d,paginationRequest:f}),P=E[0],k=E[1],C=E[2],S=E[3],x=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:t,fragmentRef:_,paginationMetadata:d,paginationRequest:f}),I=x[0],w=x[1],D=x[2],q=x[3],A=l((function(e,r){return q(),S(),b(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[q,S,b]);return c({fragment:t.name,data:g,hasNext:w,isLoadingNext:D,hasPrevious:k,isLoadingPrevious:C}),{data:g,loadNext:I,loadPrevious:P,hasNext:w,hasPrevious:k,isLoadingNext:D,isLoadingPrevious:C,refetch:A}}(e,r)}},617:(e,r,t)=>{var n=t(428).useTrackLoadQueryInRender,a=t(734),i=t(61),o=t(750),u=t(56),s=t(156).useDebugValue,l=t(658).__internal,c=l.fetchQueryDeduped,f=l.fetchQuery,d=t(446);e.exports=function(e,r,t){n();var l,p=o(),h=r.fetchKey,v=r.fetchPolicy,m=r.source,y=r.variables,g=r.networkCacheConfig,_=i(e,y,g);if("PreloadedQuery_DEPRECATED"===r.kind)_.request.node.params.name!==r.name&&u(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",_.request.node.params.name,r.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:c(p,_.request.identifier,(function(){return p===r.environment&&null!=m?p.executeWithSource({operation:_,source:m}):p.execute({operation:_})})),fetchPolicy:v,query:_,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{d(!1===r.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 b,R=f(p,_);null!=m&&p===r.environment?b=m.ifEmpty(R):p!==r.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."),b=R):b=R,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:h,fetchPolicy:v,query:_,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}var E=a(l);return s({query:r.name,variables:r.variables,data:E,fetchKey:h,fetchPolicy:v,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}),E}},876:(e,r,t)=>{var n=(0,t(275).default)(t(765)),a=t(428),i=a.loadQuery,o=a.useTrackLoadQueryInRender,u=t(743),s=t(750),l=t(156),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h=t(658).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,r){var t=null!=r?r:v,a=s();o();var l=u(),h=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&&(h.current.add(t),E(t),_(t));var P=c((function(){l.current&&(h.current.add(v),_(v))}),[l]),k=c((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(l.current){var o,u=i(null!==(o=null==t?void 0:t.__environment)&&void 0!==o?o:a,e,r,n);h.current.add(u),_(u)}}),[a,e,_,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 r=h.current;if(l.current){var t,a=(0,n.default)(r);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(i===g)break;r.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 r,t=(0,n.default)(h.current);try{for(t.s();!(r=t.n()).done;){var a=r.value;"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,P]}},874:(e,r,t)=>{var n=t(914),a=t(514),i=t(224),o=t(156).useDebugValue,u=t(658).getFragment;e.exports=function(e,r){var t=n.get();return t?t.useRefetchableFragment(e,r):function(e,r){var t=u(e);i(t,"first argument of useRefetchableFragment()");var n=a(t,r,"useRefetchableFragment()"),s=n.fragmentData,l=n.refetch;return o({fragment:t.name,data:s}),[s,l]}(e,r)}},750:(e,r,t)=>{var n=t(888),a=t(56),i=t(156).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}},224:(e,r,t)=>{var n=t(813),a=t(446);e.exports=function(e,r){var t=n(e.name);a(t.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.",r)}},50:(e,r,t)=>{var n=t(750),a=t(156),i=a.useEffect,o=a.useRef;e.exports=function(e,r){var t=n(),a=o(null),u=Array.from(e).sort().join("");return i((function(){var n=t.getStore(),i=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(i,r);return a.current=o,function(){return o.dispose()}}),[u,r,t]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},746:(e,r,t)=>{var n=t(750),a=t(156).useEffect,i=t(658).requestSubscription;e.exports=function(e,r){var t=null!=r?r:i,o=n();a((function(){return t(o,e).dispose}),[o,e,t])}},813:(e,r,t)=>{var n=t(156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},765:r=>{r.exports=e},311:e=>{e.exports=r},275:e=>{e.exports=t},175:e=>{e.exports=n},642:e=>{e.exports=a},125:e=>{e.exports=i},446:e=>{e.exports=o},56:e=>{e.exports=u},156:e=>{e.exports=s},658:e=>{e.exports=l}},f={};return function e(r){var t=f[r];if(void 0!==t)return t.exports;var n=f[r]={exports:{}};return c[r](n,n.exports,e),n.exports}(651)})()));
|
4
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelayHooks=r(e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,r,n,t,a,i,o,l,s,u)=>(()=>{"use strict";var c={888:(e,r,n)=>{var t=n(156),a=n(658).__internal.createRelayContext;e.exports=a(t)},651:(e,r,n)=>{var t=n(158),a=n(828),i=n(428).loadQuery,o=n(187),l=n(696),s=n(529),u=n(242),c=n(899),f=n(115),d=n(951),p=n(617),v=n(876),h=n(874),m=n(750),g=n(50),y=n(746),b=n(658);e.exports={ConnectionHandler:b.ConnectionHandler,applyOptimisticMutation:b.applyOptimisticMutation,commitLocalUpdate:b.commitLocalUpdate,commitMutation:b.commitMutation,graphql:b.graphql,readInlineData:b.readInlineData,requestSubscription:b.requestSubscription,EntryPointContainer:t,RelayEnvironmentProvider:l,ProfilerContext:o,fetchQuery:b.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:u,useLazyLoadQuery:c,useEntryPointLoader:s,useQueryLoader:v,useMutation:f,usePaginationFragment:d,usePreloadedQuery:p,useRefetchableFragment:h,useRelayEnvironment:m,useSubscribeToInvalidationState:g,useSubscription:y}},158:(e,r,n)=>{var t=n(187),a=n(750),i=n(156),o=n(156),l=o.useContext,s=o.useEffect,u=n(446);e.exports=function(e){var r=e.entryPointReference,n=e.props;u(!1===r.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=r.getComponent,c=r.queries,f=r.entryPoints,d=r.extraProps,p=r.rootModuleID,v=o(),h=l(t),m=a();return s((function(){m.__log({name:"entrypoint.root.consume",profilerContext:h,rootModuleID:p})}),[m,h,p]),i.createElement(v,{entryPoints:f,extraProps:d,props:n,queries:c})}},93:(e,r,n)=>{var t=n(56),a=function(){function e(e){this._capacity=e,this._capacity>0||t(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),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 n=this._map.keys().next();n.done||this._map.delete(n.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 a(e)}}},187:(e,r,n)=>{var t=n(156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=t},269:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(311)),o=n(93),l=n(637),s=n(56),u=n(658).isPromise,c=n(446),f="store-or-network",d="store-and-network",p="function"==typeof WeakMap;function v(e){return void 0!==e.request.node.params.metadata.live}function h(e,r,n,t,a){var i=null!=n?n:v(r)?d:f,o=null!=t?t:e.UNSTABLE_getDefaultRenderPolicy(),l="".concat(i,"-").concat(o,"-").concat(r.request.identifier);return null!=a?"".concat(l,"-").concat(a):l}function m(e,r){var n={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var g=2e5;function y(e,r,n,t,a,i){var o=v(r),s=t,u=a,c=new l((function(e){var n=e.retain(r);return{dispose:function(){o&&null!=u&&u.unsubscribe(),n.dispose(),i(f)}}})),f={cacheIdentifier:e,id:g++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=u&&u.unsubscribe(),u=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var b=function(){function e(e){var r=this;(0,i.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,n,t,a,i,o){var l=h(this._environment,e,n,t,i);return this.prepareWithIdentifier(l,e,r,n,t,a,o)},r.prepareWithIdentifier=function(e,r,n,t,i,o,l){var s=this._environment,c=null!=t?t:v(r)?d:f,p=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),h=this._cache.get(e),m=null,g=null!=h;null==h&&(h=this._fetchAndSaveQuery(e,r,n,c,p,l,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),m=h.temporaryRetain(s);var y=h.getValue();if(u(y))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:g,operation:r,queryAvailability:h.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},r.retain=function(e,r){var n=this._environment,t=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(t,a,null,e,null),o=i.permanentRetain(n);return n.__log({name:"queryresource.retain",profilerContext:r,resourceID:i.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,n,t){var a=h(this._environment,e,r,n,t);return this._cache.get(a)},r._getOrCreateCacheEntry=function(e,r,n,t,a){var i=this._cache.get(e);return null==i&&(i=y(e,r,n,t,a,this._clearCacheEntry),this._cache.set(e,i)),i},r._fetchAndSaveQuery=function(e,r,n,t,i,o,l){var u,f,d=this,p=this._environment,h=p.check(r),g=h.status,b="available"===g,R=b||"partial"===i&&"stale"!==g,E=function(){};switch(t){case"store-only":u=!1,f=!0;break;case"store-or-network":u=!b,f=R;break;case"store-and-network":u=!0,f=R;break;default:u=!0,f=!1}if(f){var _=m(r,e),k=y(e,r,h,_,null,this._clearCacheEntry);this._cache.set(e,k)}if(u){var P,F=m(r,e);n.subscribe({start:function(n){P=n;var t=d._cache.get(e);t&&t.setNetworkSubscription(P);var i=null==l?void 0:l.start;i&&i((0,a.default)((0,a.default)({},n),{},{unsubscribe:function(){v(r)&&n.unsubscribe()}}))},next:function(){var n=d._getOrCreateCacheEntry(e,r,h,F,P);n.processedPayloadsCount+=1,n.setValue(F),E();var t=null==l?void 0:l.next;null!=t&&t(p.lookup(r.fragment))},error:function(n){var t=d._getOrCreateCacheEntry(e,r,h,n,P);0===t.processedPayloadsCount?t.setValue(n):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",r.fragment.node.name,String(n.message)),E(),P=null,t.setNetworkSubscription(null);var a=null==l?void 0:l.error;a&&a(n)},complete:function(){E(),P=null;var r=d._cache.get(e);r&&r.setNetworkSubscription(null);var n=null==l?void 0:l.complete;n&&n()},unsubscribe:null==l?void 0:l.unsubscribe});var C=this._cache.get(e);if(!C){var x=new Promise((function(e){E=e}));x.displayName="Relay("+r.fragment.node.name+")",C=y(e,r,h,x,P,this._clearCacheEntry),this._cache.set(e,C)}}else{var w=null==l?void 0:l.complete;w&&w()}var S=this._cache.get(e);return null==S&&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."),p.__log({name:"queryresource.fetch",resourceID:S.id,operation:r,profilerContext:o,fetchPolicy:t,renderPolicy:i,queryAvailability:h,shouldFetch:u}),S},e}();function R(e){return new b(e)}var E=p?new WeakMap:new Map;e.exports={createQueryResource:R,getQueryResourceForEnvironment:function(e){var r=E.get(e);if(r)return r;var n=R(e);return E.set(e,n),n},getQueryCacheIdentifier:h}},696:(e,r,n)=>{var t=n(888),a=n(156),i=a.useMemo;e.exports=function(e){var r=e.children,n=e.environment,o=e.getEnvironmentForActor,l=i((function(){return{environment:n,getEnvironmentForActor:o}}),[n,o]);return a.createElement(t.Provider,{value:l},r)}},637:(e,r,n)=>{var t=(0,n(275).default)(n(311)),a=n(446),i=function(){function e(e){var r=this;(0,t.default)(this,"_retainCount",0),(0,t.default)(this,"_retainDisposable",null),(0,t.default)(this,"_releaseTemporaryRetain",null),this._retain=function(n){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(n)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&(null!=r._retainDisposable?(r._retainDisposable.dispose(),r._retainDisposable=null):a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."))}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,n=this;if(e.isServer())return{dispose:function(){}};var t=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,n._releaseTemporaryRetain=null,t.dispose()};return a=setTimeout(i,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=n._releaseTemporaryRetain)||void 0===e||e.call(n)}}},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=i},828:(e,r,n)=>{var t=n(428).loadQuery;e.exports=function e(r,n,a){var i=null;null==n.root.getModuleIfRequired()&&(i=n.root.load());var o=n.getPreloadProps(a),l=o.queries,s=o.entryPoints,u=o.extraProps,c={},f={};null!=l&&Object.keys(l).forEach((function(e){var n=l[e];if(null!=n){var a=n.environmentProviderOptions,i=n.options,o=n.parameters,s=n.variables,u=r.getEnvironment(a);c[e]=t(u,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(n){var t=s[n];if(null!=t){var a=t.entryPoint,i=t.entryPointParams;f[n]=e(r,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!=u?u:null,getComponent:function(){var e,r=n.root.getModuleIfRequired();if(null==r)throw i=null!==(e=i)&&void 0!==e?e:n.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:n.root.getModuleId()}}},428:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(56),i=n(658),o=i.__internal.fetchQueryDeduped,l=i.Observable,s=i.PreloadableQueryRegistry,u=i.RelayFeatureFlags,c=i.ReplaySubject,f=i.createOperationDescriptor,d=i.getRequest,p=i.getRequestIdentifier,v=100001;e.exports={loadQuery:function(e,r,n,i,h){var m;v++;var g,y,b,R,E,_,k=null!==(m=null==i?void 0:i.fetchPolicy)&&void 0!==m?m:"store-or-network",P=(0,t.default)((0,t.default)({},null==i?void 0:i.networkCacheConfig),{},{force:!0}),F=!1,C=function(r,n){return F=!0,e.executeWithSource({operation:r,source:n})},x=new c,w=l.create((function(e){return x.subscribe(e)})),S=null,q=!1,D=function(r){var t;q=!0;var a=new c;if(!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+p(r,n);t=o(e,i,(function(){return e.getNetwork().execute(r,n,P)}))}else t=e.getNetwork().execute(r,n,P);var s=t.subscribe({error:function(e){S=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return y=s,l.create((function(e){var r=a.subscribe(e);return function(){r.unsubscribe(),y()}}))},I=function(r,n){!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(q=!0);var t=o(e,r.request.identifier,n).subscribe({error:function(e){x.error(e)},next:function(e){x.next(e)},complete:function(){x.complete()}});b=t.unsubscribe},A=function(r){var t=f(r,n,P);g=e.retain(t),"store-only"!==k&&("store-or-network"!==k||"available"!==e.check(t).status)&&I(t,(function(){var e=D(r.params);return C(t,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(_=(R=r.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",R.name);var N=s.get(_);if(null!=N)A(N);else{var Q="store-only"===k?null:D(R),O=s.onLoad(_,(function(r){E();var t=f(r,n,P);g=e.retain(t),null!=Q&&I(t,(function(){return C(t,Q)}))}));E=O.dispose}}else{var T=d(r);_=null!=(R=T.params).cacheID?R.cacheID:R.id,A(T)}var M=!1,L=!1,U=!1,j=function(){L||(g&&g.dispose(),L=!0)},V=function(){U||(F?b&&b():y&&y(),E&&E(),U=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){M||(j(),V(),M=!0)},releaseQuery:j,cancelNetworkRequest:V,fetchKey:v,id:_,get isDisposed(){return M||L},get networkError(){return S},name:R.name,networkCacheConfig:P,fetchPolicy:k,source:q?w:void 0,variables:n}}}},74:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(765)),o=n(269).getQueryResourceForEnvironment,l=n(56),s=n(658),u=s.__internal.fetchQuery,c=s.RelayFeatureFlags,f=s.createOperationDescriptor,d=s.getPendingOperationsForFragment,p=s.getSelector,v=s.getVariablesFromFragment,h=s.handlePotentialSnapshotErrors,m=n(446);function g(e,r,n,t,i){var l=v(r,n),s=(0,a.default)((0,a.default)({},l),{},{id:t.clientEdgeDestinationID}),c=f(t.request,s,null==i?void 0:i.networkCacheConfig);return o(e).prepare(c,u(e,c),null==i?void 0:i.fetchPolicy)}e.exports=function(e,r,n,t,a,o){var s,u,f=p(r,n),v=!0===(null==r||null===(s=r.metadata)||void 0===s?void 0:s.plural);v?null==n||Array.isArray(n)||l(!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!=o?" for key `".concat(o,"`"):"",r.name,typeof n,r.name):Array.isArray(n)&&l(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",null!=o?" for key `".concat(o,"`"):"",r.name,typeof n,r.name),null==n||v&&Array.isArray(n)&&0===n.length||null!=f||l(!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.)",r.name,r.name,t,r.name,null==o?"a fragment reference":"the `".concat(o,"`"),t);var y,b=function(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?0===r.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}(e,f),R=null;if(!0===(null===(u=r.metadata)||void 0===u?void 0:u.hasClientEdges)){var E=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingClientEdges);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(b);if(null!=E&&E.length){R=[];var _,k=(0,i.default)(E);try{for(k.s();!(_=k.n()).done;){var P=_.value;R.push(g(e,r,n,P,a))}}catch(e){k.e(e)}finally{k.f()}}}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(b)){null==f&&l(!1,"refinement, see invariants above");var F="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,C=d(e,r,F);if(C)throw C.promise;!function(e,r){var n,t;if("singular"===r.kind)h(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var a,o=(0,i.default)(r.snapshots);try{for(o.s();!(a=o.n()).done;){var l,s,u=a.value;h(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(l=null===(s=u.selector.node.metadata)||void 0===s?void 0:s.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(e,b)}return y="bailout"===b.kind?v?[]:null:"singular"===b.kind?b.snapshot.data:b.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD,null!=n&&(void 0===y||Array.isArray(y)&&y.length>0&&y.every((function(e){return void 0===e})))&&m(!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.",r.name,t,t),{data:y,clientEdgeQueries:R}}},529:(e,r,n)=>{var t=(0,n(275).default)(n(765)),a=n(828),i=n(743),o=n(156),l=o.useCallback,s=o.useEffect,u=o.useRef,c=o.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,r,n){var o,d,p,v,h=null!==(o=null==n||null===(d=n.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==o?o:f,m=null!==(p=null==n||null===(v=n.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==p?p:null,g=i(),y=u(new Set([h])),b=c(h),R=b[0],E=b[1],_=c(m),k=_[0],P=_[1],F=l((function(){if(g.current){var e={kind:"NullEntryPointReference"};y.current.add(e),E(e)}}),[E,g]),C=l((function(n){if(g.current){var t=a(e,r,n);y.current.add(t),E(t),P(n)}}),[e,r,E,g]),x=u(!1);return s((function(){return function(){x.current=!0}}),[]),s((function(){if(!0===x.current)return x.current=!1,void("NullEntryPointReference"!==R.kind&&null!=k&&C(k));var e=y.current;if(g.current){var r,n=(0,t.default)(e);try{for(n.s();!(r=n.n()).done;){var a=r.value;if(a===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){n.e(e)}finally{n.f()}}}),[R,k,C,g]),s((function(){return function(){var e,r=(0,t.default)(y.current);try{for(r.s();!(e=r.n()).done;){var n=e.value;"NullEntryPointReference"!==n.kind&&n.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,C,F]}},863:(e,r,n)=>{var t=n(813),a=n(156),i=a.useCallback,o=a.useEffect;e.exports=function(){var e=t(null),r=t(!1),n=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),a=i((function(n){e.current=n,r.current=!0}),[]),l=i((function(){e.current=null,r.current=!1}),[]);return o((function(){return n}),[n]),{isFetchingRef:r,startFetch:a,disposeFetch:n,completeFetch:l}}},242:(e,r,n)=>{var t=n(337),a=n(224),i=n(156).useDebugValue,o=n(658).getFragment;e.exports=function(e,r){var n=o(e);a(n,"first argument of useFragment()");var l=t(n,r,"useFragment()");return i({fragment:n.name,data:l}),l}},337:(e,r,n)=>{var t=n(275).default,a=t(n(179)),i=t(n(931)),o=n(658);e.exports=function(e,r,n,t){return o.RelayFeatureFlags.ENABLE_USE_FRAGMENT_EXPERIMENTAL?(0,i.default)(e,r,n,t):(0,a.default)(e,r,n,t)}},179:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(765)),o=t(n(642)),l=n(269).getQueryResourceForEnvironment,s=n(750),u=n(56),c=n(156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,v=c.useRef,h=c.useState,m=n(658),g=m.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,R=m.RelayFeatureFlags,E=m.areEqualSelectors,_=m.createOperationDescriptor,k=m.getPendingOperationsForFragment,P=m.getSelector,F=m.getVariablesFromFragment,C=m.handlePotentialSnapshotErrors,x=m.recycleNodesInto,w=n(446);function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),a=x(r.snapshot.data,t.data),i={data:a,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,errorResponseFields:t.errorResponseFields};return[a!==r.snapshot.data,{kind:"singular",snapshot:i,epoch:n}]}for(var o=!1,l=[],s=0;s<r.snapshots.length;s++){var c=r.snapshots[s],f=e.lookup(c.selector),d=x(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(p)}return l.length!==r.snapshots.length&&u(!1,"Expected same number of snapshots"),[o,{kind:"plural",snapshots:l,epoch:n}]}function q(e,r,n,t,i){var o=F(r,n),s=(0,a.default)((0,a.default)({},o),{},{id:t.clientEdgeDestinationID}),u=_(t.request,s,null==i?void 0:i.networkCacheConfig);return[l(e).prepare(u,y(e,u),null==i?void 0:i.fetchPolicy),b(e,u.request)]}function D(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}e.exports=function(e,r,n,t){var a,c,m=p((function(){return P(e,r)}),[e,r]),g=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);g?null==r||Array.isArray(r)||u(!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.",e.name,typeof r,e.name):Array.isArray(r)&&u(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",e.name,typeof r,e.name),null==r||g&&Array.isArray(r)&&0===r.length||null!=m||u(!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,n);var y=s(),b=h((function(){return D(y,m)})),_=b[0],F=b[1],x=_,I=h(x),A=I[0],N=I[1],Q=A,O=h(m),T=O[0],M=O[1],L=h(y),U=L[0],j=L[1];if(!E(m,T)||y!==U){M(m),j(y);var V=D(y,m);F(V),N(V),x=V,Q=V}var B=v(!1);if(d((function(){B.current=m}),[m]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var G=p((function(){var n,a=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingClientEdges);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(x),o=[];if(null!=a&&a.length){n=[];var l,s=(0,i.default)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=q(y,e,r,u,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){s.e(e)}finally{s.f()}}return[n,o]}),[x,y,e,r,t]),W=G[0],K=G[1];if(K.length)throw Promise.all(K);d((function(){var e=l(y);if(null!=W&&W.length){var r,n=[],t=(0,i.default)(W);try{for(t.s();!(r=t.n()).done;){var a=r.value;n.push(e.retain(a))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[y,W])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(x)){var H=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingLiveResolverFields);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(x);if(null!=H&&H.length>0)throw Promise.all(H.map((function(e){var r=e.liveStateID;return y.getStore().getLiveResolverPromise(r)})));if(R.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==U||!B.current||!E(B.current,m)){null==m&&u(!1,"refinement, see invariants above");var z="PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner,Y=k(y,e,z);if(Y)throw Y.promise}}!function(e,r){var n,t;if("singular"===r.kind)C(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var a,o=(0,i.default)(r.snapshots);try{for(o.s();!(a=o.n()).done;){var l,s,u=a.value;C(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(l=null===(s=u.selector.node.metadata)||void 0===s?void 0:s.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(y,x);var X,J=v(!1);if(d((function(){var e=Q,r=S(y,Q);if(null!==r){var n=r[0],t=r[1];n&&F(t),e=t}return function(e,r,n,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var a=e.subscribe(r.snapshot,(function(r){n((function(n){if("singular"!==n.kind||n.snapshot.selector!==r.selector){var a=S(e,n);if(null!=a){var i=a[0],o=a[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:i}),t.current=i,i?o:n}return n}return t.current=!0,{kind:"singular",snapshot:r,epoch:e.getStore().getEpoch()}}))}));return function(){a.dispose()}}var l=r.snapshots.map((function(r,a){return e.subscribe(r,(function(r){n((function(n){var i;if("plural"!==n.kind||(null===(i=n.snapshots[a])||void 0===i?void 0:i.selector)!==r.selector){var l=S(e,n);if(null!=l){var s=l[0],u=l[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),t.current=t.current||s,s?u:n}return n}var c=(0,o.default)(n.snapshots);return c[a]=r,t.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,r=(0,i.default)(l);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}(y,e,F,J)}),[y,Q]),J.current){var Z=S(y,x);if(null!=Z){var $=Z[0],ee=Z[1];$&&(F(ee),x=ee)}J.current=!1}if(g){var re=null==r;X=p((function(){return"bailout"===x.kind?re?null:[]:("plural"!==x.kind&&u(!1,"Expected state to be plural because fragment is plural"),x.snapshots.map((function(e){return e.data})))}),[x,re])}else"bailout"===x.kind?X=null:("singular"!==x.kind&&u(!1,"Expected state to be singular because fragment is singular"),X=x.snapshot.data);return R.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===X||Array.isArray(X)&&X.length>0&&X.every((function(e){return void 0===e})))&&w(!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,n,n),f({fragment:e.name,data:X}),X}},931:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(765)),o=t(n(642)),l=n(269).getQueryResourceForEnvironment,s=n(750),u=n(56),c=n(156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,v=c.useRef,h=c.useState,m=n(658),g=m.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,R=m.RelayFeatureFlags,E=m.areEqualSelectors,_=m.createOperationDescriptor,k=m.getPendingOperationsForFragment,P=m.getSelector,F=m.getVariablesFromFragment,C=m.handlePotentialSnapshotErrors,x=m.recycleNodesInto,w=n(446);function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),a=x(r.snapshot.data,t.data),i={data:a,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,errorResponseFields:t.errorResponseFields};return[a!==r.snapshot.data,{kind:"singular",snapshot:i,epoch:n,selector:r.selector,environment:r.environment}]}for(var o=!1,l=[],s=0;s<r.snapshots.length;s++){var c=r.snapshots[s],f=e.lookup(c.selector),d=x(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(p)}return l.length!==r.snapshots.length&&u(!1,"Expected same number of snapshots"),[o,{kind:"plural",snapshots:l,epoch:n,selector:r.selector,environment:r.environment}]}function q(e,r,n,t,i){var o=F(r,n),s=(0,a.default)((0,a.default)({},o),{},{id:t.clientEdgeDestinationID}),u=_(t.request,s,null==i?void 0:i.networkCacheConfig);return[l(e).prepare(u,y(e,u),null==i?void 0:i.fetchPolicy),b(e,u.request)]}function D(e,r,n,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var a=e.subscribe(r.snapshot,(function(a){n((function(n){var i=null;if("singular"!==n.kind||n.snapshot.selector!==a.selector||n.environment!==e){var o=S(n.environment,n);if(null!=o){var l=o[0],s=o[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),i=l?s:n}else i=n}else i={kind:"singular",snapshot:a,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment};return t.current="singular"===i.kind?i.epoch:null,i}))}));return function(){a.dispose()}}var l=r.snapshots.map((function(a,i){return e.subscribe(a,(function(a){n((function(n){var l,s=null;if("plural"!==n.kind||(null===(l=n.snapshots[i])||void 0===l?void 0:l.selector)!==a.selector||n.environment!==e){var u=S(n.environment,n);if(null!=u){var c=u[0],f=u[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:c}),s=c?f:n}else s=n}else{var d=(0,o.default)(n.snapshots);d[i]=a,s={kind:"plural",snapshots:d,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment}}return t.current="plural"===s.kind?s.epoch:null,s}))}))}));return function(){var e,r=(0,i.default)(l);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}function I(e,r){return null==r?{kind:"bailout",environment:e}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch(),selector:r,environment:e}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch(),selector:r,environment:e}}e.exports=function(e,r,n,t){var a,o,c=p((function(){return P(e,r)}),[e,r]),m=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);m?null==r||Array.isArray(r)||u(!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.",e.name,typeof r,e.name):Array.isArray(r)&&u(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",e.name,typeof r,e.name),null==r||m&&Array.isArray(r)&&0===r.length||null!=c||u(!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,n);var g=s(),y=h((function(){return I(g,c)})),b=y[0],_=y[1],F=b,x=F.environment;if(!E(c,F.selector)||g!==F.environment){var A=I(g,c);_(A),F=A}var N=v(!1);if(d((function(){N.current=c}),[c]),!0===(null===(o=e.metadata)||void 0===o?void 0:o.hasClientEdges)){var Q=p((function(){var n,a=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingClientEdges);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(F),o=[];if(null!=a&&a.length){n=[];var l,s=(0,i.default)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=q(g,e,r,u,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){s.e(e)}finally{s.f()}}return[n,o]}),[F,g,e,r,t]),O=Q[0],T=Q[1];if(T.length)throw Promise.all(T);d((function(){var e=l(g);if(null!=O&&O.length){var r,n=[],t=(0,i.default)(O);try{for(t.s();!(r=t.n()).done;){var a=r.value;n.push(e.retain(a))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[g,O])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(F)){var M=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingLiveResolverFields);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(F);if(null!=M&&M.length>0)throw Promise.all(M.map((function(e){var r=e.liveStateID;return g.getStore().getLiveResolverPromise(r)})));if(R.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==x||!N.current||!E(N.current,c)){null==c&&u(!1,"refinement, see invariants above");var L="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,U=k(g,e,L);if(U)throw U.promise}}!function(e,r){var n,t;if("singular"===r.kind)C(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var a,o=(0,i.default)(r.snapshots);try{for(o.s();!(a=o.n()).done;){var l,s,u=a.value;C(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(l=null===(s=u.selector.node.metadata)||void 0===s?void 0:s.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(g,F);var j,V=v(null),B=v(null);if(d((function(){var e=B.current;if(null!=e){if(F.environment===e.environment&&F.selector===e.selector)return;e.dispose()}if("bailout"!==F.kind){var r=F,n=S(F.environment,F);if(null!==n){var t=n[0],a=n[1];if(t)return void _(a);r=a}var i=D(F.environment,r,_,V);B.current={dispose:i,selector:F.selector,environment:F.environment}}}),[F]),d((function(){if(null==B.current&&"bailout"!==F.kind){var e=D(F.environment,F,_,V);B.current={dispose:e,selector:F.selector,environment:F.environment}}return function(){var e;null===(e=B.current)||void 0===e||e.dispose(),B.current=null}}),[]),null!==V.current&&V.current!==F.epoch){var G=S(g,F);if(null!=G){var W=G[0],K=G[1];W&&(_(K),F=K)}}if(V.current=null,m){var H=null==r;j=p((function(){return"bailout"===F.kind?H?null:[]:("plural"!==F.kind&&u(!1,"Expected state to be plural because fragment is plural"),F.snapshots.map((function(e){return e.data})))}),[F,H])}else"bailout"===F.kind?j=null:("singular"!==F.kind&&u(!1,"Expected state to be singular because fragment is singular"),j=F.snapshot.data);return R.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===j||Array.isArray(j)&&j.length>0&&j.every((function(e){return void 0===e})))&&w(!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,n,n),f({fragment:e.name,data:j}),j}},743:(e,r,n)=>{var t=n(156),a=t.useEffect,i=t.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},233:(e,r,n)=>{var t=n(750),a=n(56),i=n(156),o=n(658),l=o.__internal.getObservableForActiveRequest,s=o.getSelector,u=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,r){var n=t(),i=f((function(){var t=s(e,r);return null==t?null:("SingularReaderSelector"!==t.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),l(n,t.owner))}),[n,e,r]),o=c(null!=i),d=o[0],p=o[1];return u((function(){var e;if(p(null!=i),null!=i){var r=function(){p(!1)};e=i.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[i]),d}},899:(e,r,n)=>{var t=n(734),a=n(61),i=n(750),o=n(658).__internal.fetchQuery;e.exports=function(e,r,n){var l=i(),s=a(e,r,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0});return t({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchObservable:o(l,s),fetchPolicy:null==n?void 0:n.fetchPolicy,query:s,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy})}},734:(e,r,n)=>{var t=n(187),a=n(269),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,l=n(863),s=n(337),u=n(750),c=n(156),f=c.useContext,d=c.useEffect,p=c.useState,v=c.useRef;e.exports=function(e){var r=e.query,n=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,g=u(),y=f(t),b=o(g),R=p(0),E=R[0],_=R[1],k=l(),P=k.startFetch,F=k.completeFetch,C="".concat(E,"-").concat(null!=h?h:""),x=i(g,r,c,m,C),w=y.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(x,r,a,c,m,{start:P,complete:F,error:F},y)})),S=v(!1);d((function(){return function(){S.current=!0}}),[]),d((function(){if(!0===S.current)return S.current=!1,void _((function(e){return e+1}));var e=b.retain(w,y);return function(){e.dispose()}}),[g,x]),d((function(){b.releaseTemporaryRetain(w)}));var q=w.fragmentNode,D=w.fragmentRef;return s(q,D,n)}},601:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(863),i=n(743),o=n(233),l=n(750),s=n(56),u=n(156),c=u.useCallback,f=u.useEffect,d=u.useState,p=n(658),v=p.__internal.fetchQuery,h=p.ConnectionInterface,m=p.createOperationDescriptor,g=p.getPaginationVariables,y=p.getRefetchMetadata,b=p.getSelector,R=p.getValueAtPath,E=n(446);e.exports=function(e){var r=e.direction,n=e.fragmentNode,u=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,k=e.connectionPathInFragmentData,P=e.paginationRequest,F=e.paginationMetadata,C=e.componentDisplayName,x=e.observer,w=e.onReset,S=l(),q=a(),D=q.isFetchingRef,I=q.startFetch,A=q.disposeFetch,N=q.completeFetch,Q=y(n,C).identifierInfo,O=null!=(null==Q?void 0:Q.identifierField)&&null!=_&&"object"==typeof _?_[Q.identifierField]:null,T=i(),M=d(S),L=M[0],U=M[1],j=d(p),V=j[0],B=j[1],G=o(n,u);(S!==L||p!==V)&&(A(),w(),U(S),B(p));var W=function(e,r,n,t){var a,i,o=h.get(),l=o.EDGES,u=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,v=R(n,t);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`.",r.name,l,u,v);var m=v[l],g=v[u];if(null==m||null==g)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`.",r.name,l,m),"object"!=typeof g&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",r.name,u,g);var y="forward"===e?null!==(a=g[d])&&void 0!==a?a:null:null!==(i=g[p])&&void 0!==i?i:null;return null!==y&&"string"!=typeof y&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",r.name,p,y),{cursor:y,hasMore:"forward"===e?null!=y&&!0===g[c]:null!=y&&!0===g[f]}}(r,n,_,k),K=W.cursor,H=W.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 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.",n.name,C),{dispose:function(){}};var o=b(n,u);if(!0===D.current||null==_||G)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.",n.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.",n.name,C);var l=o.owner.variables,c=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,t.default)((0,t.default)({},l),c),p=g(r,e,K,d,(0,t.default)({},f),F);null!=Q&&("string"!=typeof O&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",Q.identifierField,O),p[Q.identifierQueryVariableName]=O);var h=m(P,p,{force:!0});return v(S,h).subscribe((0,t.default)((0,t.default)({},x),{},{start:function(e){I(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}}),[S,O,r,K,I,A,N,D,G,_,n.name,u,C]),H,A]}},61:(e,r,n)=>{var t=n(925),a=n(156),i=n(658),o=i.createOperationDescriptor,l=i.getRequest,s=a.useMemo;e.exports=function(e,r,n){var a=t(r),i=t(n||{});return s((function(){return o(l(e),a,i)}),[e,a,i])}},925:(e,r,n)=>{var t=n(125),a=n(156).useState;e.exports=function(e){var r=a(e),n=r[0],i=r[1];return t(e,n)?n:(i(e),e)}},115:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(743),i=n(750),o=n(156),l=n(658).commitMutation,s=o.useState,u=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=i(),o=a(),d=c(n),p=c(e),v=c(new Set),h=s(!1),m=h[0],g=h[1],y=f((function(r){d.current===n&&p.current===e&&(v.current.delete(r),o.current&&g(v.current.size>0))}),[n,o,e]);return u((function(){d.current===n&&p.current===e||(v.current=new Set,o.current&&g(!1),d.current=n,p.current=e)}),[n,o,e]),[f((function(a){o.current&&g(!0);var i=r(n,(0,t.default)((0,t.default)({},a),{},{mutation:e,onCompleted:function(e,r){var n;y(i),null===(n=a.onCompleted)||void 0===n||n.call(a,e,r)},onError:function(e){var r;y(i),null===(r=a.onError)||void 0===r||r.call(a,e)},onUnsubscribe:function(){var e;y(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 v.current.add(i),i}),[y,r,n,o,e]),m]}},951:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(601),i=n(915),o=n(750),l=n(224),s=n(156),u=s.useCallback,c=s.useDebugValue,f=s.useState,d=n(658),p=d.getFragment,v=d.getFragmentIdentifier,h=d.getPaginationMetadata;function m(e){var r=o(),n=f(!1),i=n[0],l=n[1],s=function(e){var n,t=null===(n=r.getScheduler())||void 0===n?void 0:n.schedule;t?t((function(){l(e)})):l(e)},u={start:function(){return s(!0)},complete:function(){return s(!1)},error:function(){return s(!1)}},c=a((0,t.default)((0,t.default)({},e),{},{observer:u,onReset:function(){return s(!1)}}));return[c[0],c[1],i,c[2]]}e.exports=function(e,r){var n=p(e);l(n,"first argument of usePaginationFragment()");var a="usePaginationFragment()",o=h(n,a),s=o.connectionPathInFragmentData,f=o.paginationRequest,d=o.paginationMetadata,g=i(n,r,a),y=g.fragmentData,b=g.fragmentRef,R=g.refetch,E=v(n,b),_=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"backward",fragmentData:y,fragmentIdentifier:E,fragmentNode:n,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),k=_[0],P=_[1],F=_[2],C=_[3],x=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"forward",fragmentData:y,fragmentIdentifier:E,fragmentNode:n,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),w=x[0],S=x[1],q=x[2],D=x[3],I=u((function(e,r){return D(),C(),R(e,(0,t.default)((0,t.default)({},r),{},{__environment:void 0}))}),[D,C,R]);return c({fragment:n.name,data:y,hasNext:S,isLoadingNext:q,hasPrevious:P,isLoadingPrevious:F}),{data:y,loadNext:w,loadPrevious:k,hasNext:S,hasPrevious:P,isLoadingNext:q,isLoadingPrevious:F,refetch:I}}},617:(e,r,n)=>{var t=n(734),a=n(61),i=n(750),o=n(56),l=n(156).useDebugValue,s=n(658).__internal,u=s.fetchQueryDeduped,c=s.fetchQuery,f=n(446);e.exports=function(e,r,n){var s,d=i(),p=r.fetchKey,v=r.fetchPolicy,h=r.source,m=r.variables,g=r.networkCacheConfig,y=a(e,m,g);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&o(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",y.request.node.params.name,r.name),s={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:u(d,y.request.identifier,(function(){return d===r.environment&&null!=h?d.executeWithSource({operation:y,source:h}):d.execute({operation:y})})),fetchPolicy:v,query:y,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy};else{f(!1===r.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 b,R=c(d,y);null!=h&&d===r.environment?b=h.ifEmpty(R):d!==r.environment?(f(!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."),b=R):b=R,s={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:p,fetchPolicy:v,query:y,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}var E=t(s);return l({query:r.name,variables:r.variables,data:E,fetchKey:p,fetchPolicy:v,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}),E}},876:(e,r,n)=>{var t=(0,n(275).default)(n(765)),a=n(428).loadQuery,i=n(743),o=n(750),l=n(156),s=l.useCallback,u=l.useEffect,c=l.useRef,f=l.useState,d=n(658).getRequest,p={kind:"NullQueryReference"};function v(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==d(e).params.metadata.live}e.exports=function(e,r){var n=null!=r?r:p,l=o(),d=i(),h=c(new Set([n])),m=f((function(){return n})),g=m[0],y=m[1],b=f((function(){return n})),R=b[0],E=b[1];n!==R&&(h.current.add(n),E(n),y(n));var _=s((function(){d.current&&(h.current.add(p),y(p))}),[d]),k=s((function(r,n){var t=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(d.current){var i,o=a(null!==(i=null==n?void 0:n.__environment)&&void 0!==i?i:l,e,r,t);h.current.add(o),y(o)}}),[l,e,y,d]),P=c(!1);return u((function(){return function(){P.current=!0}}),[]),u((function(){if(!0===P.current)return P.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=h.current;if(d.current){var n,a=(0,t.default)(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i===g)break;r.delete(i),"NullQueryReference"!==i.kind&&(v(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,d,k,e]),u((function(){return function(){var r,n=(0,t.default)(h.current);try{for(n.s();!(r=n.n()).done;){var a=r.value;"NullQueryReference"!==a.kind&&(v(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,_]}},874:(e,r,n)=>{var t=n(915),a=n(224),i=n(156).useDebugValue,o=n(658).getFragment;e.exports=function(e,r){var n=o(e);a(n,"first argument of useRefetchableFragment()");var l=t(n,r,"useRefetchableFragment()"),s=l.fragmentData,u=l.refetch;return i({fragment:n.name,data:s}),[s,u]}},915:(e,r,n)=>{var t,a=(0,n(275).default)(n(175)),i=n(187),o=n(269).getQueryResourceForEnvironment,l=n(74),s=n(337),u=n(743),c=n(876),f=n(750),d=n(56),p=n(156),v=p.useCallback,h=p.useContext,m=p.useReducer,g=n(658),y=g.__internal.fetchQuery,b=g.createOperationDescriptor,R=g.getFragmentIdentifier,E=g.getRefetchMetadata,_=g.getSelector,k=g.getValueAtPath,P=n(446);function F(e,r){switch(r.type){case"refetch":var n;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(n=r.refetchEnvironment)&&void 0!==n?n: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")}}t={getInitialIDAndType:function(e,r,t,a){var i=n(658).Record,o=null==e?void 0:e[null!=t?t:"id"];if(1!==r.length||"node"!==r[0]||null==o)return null;var l=a.getStore().getSource().get(o),s=null==l?null:i.getType(l);return null==s?null:{id:o,typename:s}},checkSameTypeAfterRefetch:function(e,r,t,a){var i=n(658).Record;if(e){var o=r.getStore().getSource().get(e.id),l=o&&i.getType(o);l!==e.typename&&P(!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,l,t.name,a)}},checkSameIDAfterRefetch:function(e,r,t,a){if(null!=e){var i=r[n(658).ID_KEY];null!=i&&i!==e.id&&P(!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,t.name,a)}}},e.exports=function(e,r,n){var p=f(),g=E(e,n),C=g.refetchableRequest,x=g.fragmentRefPathInResponse,w=g.identifierInfo,S=R(e,r),q=m(F,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:S,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=q[0],I=q[1],A=D.fetchPolicy,N=D.mirroredEnvironment,Q=D.mirroredFragmentIdentifier,O=D.onComplete,T=D.refetchEnvironment,M=D.refetchQuery,L=D.renderPolicy,U=null!=T?T:p,j=o(U),V=h(i),B=U!==N||S!==Q,G=c(C),W=G[0],K=G[1],H=G[2],z=r;if(B)I({type:"reset",environment:U,fragmentIdentifier:S}),H();else if(null!=M&&null!=W){var Y;Y=t.getInitialIDAndType(M.request.variables,x,null==w?void 0:w.identifierQueryVariableName,U);var X=function(e){O&&O(null!=e?e:null)},J=null!=W.source?W.source:y(U,M),Z=V.wrapPrepareQueryResource((function(){return j.prepare(M,J,A,L,{error:X,complete:function(){t.checkSameTypeAfterRefetch(Y,U,e,n),X()}},W.fetchKey,V)})),$=l(U,Z.fragmentNode,Z.fragmentRef,n).data;null==$&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),z=k($,x),t.checkSameIDAfterRefetch(Y,z,e,n)}var ee=s(e,z,n),re=function(e,r,n,t,i,o,l,s,c,f,d){var p=u(),h=null!=(null==s?void 0:s.identifierField)&&null!=t&&"object"==typeof t?t[s.identifierField]:null;return v((function(t,i){if(!0!==p.current)return P(!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&&P(!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 l,u,v=null==i?void 0:i.__environment,m=null==i?void 0:i.fetchPolicy,g=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,R=_(o,f);if(null==R)l={},u={};else if("PluralReaderSelector"===R.kind){var E,k,F,C;l=null!==(E=null===(k=R.selectors[0])||void 0===k?void 0:k.owner.variables)&&void 0!==E?E:{},u=null!==(F=null===(C=R.selectors[0])||void 0===C?void 0:C.variables)&&void 0!==F?F:{}}else l=R.owner.variables,u=R.variables;var x=(0,a.default)((0,a.default)((0,a.default)({},l),u),t);null==s||t.hasOwnProperty(s.identifierQueryVariableName)||("string"!=typeof h&&P(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s.identifierField,h),x[s.identifierQueryVariableName]=h);var w=b(d,x,{force:!0});return c(w.request.variables,{fetchPolicy:m,__environment:v,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:m,onComplete:y,refetchEnvironment:v,refetchQuery:w,renderPolicy:g}),{dispose:n}}),[i,r,n,h,c])}(n,I,H,ee,S,e,0,w,K,r,C);return{fragmentData:ee,fragmentRef:z,refetch:re}}},750:(e,r,n)=>{var t=n(888),a=n(56),i=n(156).useContext;e.exports=function(){var e=i(t);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}},224:(e,r,n)=>{var t=n(813),a=n(446);e.exports=function(e,r){var n=t(e.name);a(n.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.",r)}},50:(e,r,n)=>{var t=n(750),a=n(156),i=a.useEffect,o=a.useRef;e.exports=function(e,r){var n=t(),a=o(null),l=Array.from(e).sort().join("");return i((function(){var t=n.getStore(),i=t.lookupInvalidationState(e),o=t.subscribeToInvalidationState(i,r);return a.current=o,function(){return o.dispose()}}),[l,r,n]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},746:(e,r,n)=>{var t=n(750),a=n(156).useEffect,i=n(658).requestSubscription;e.exports=function(e,r){var n=null!=r?r:i,o=t();a((function(){return n(o,e).dispose}),[o,e,n])}},813:(e,r,n)=>{var t=n(156).useMemo;e.exports=function(e){return t((function(){return{current:e}}),[])}},765:r=>{r.exports=e},311:e=>{e.exports=r},275:e=>{e.exports=n},175:e=>{e.exports=t},642:e=>{e.exports=a},125:e=>{e.exports=i},446:e=>{e.exports=o},56:e=>{e.exports=l},156:e=>{e.exports=s},658:e=>{e.exports=u}},f={};return function e(r){var n=f[r];if(void 0!==n)return n.exports;var t=f[r]={exports:{}};return c[r](t,t.exports,e),t.exports}(651)})()));
|