react-relay 18.0.0 → 18.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContext.js +1 -1
- package/ReactRelayFragmentContainer.js.flow +2 -5
- package/buildReactRelayContainer.js.flow +1 -0
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/index.js.flow +3 -0
- package/legacy.js +1 -1
- package/lib/index.js +2 -0
- package/lib/relay-hooks/getConnectionState.js +47 -0
- package/lib/relay-hooks/legacy/FragmentResource.js +3 -8
- package/lib/relay-hooks/loadQuery.js +5 -14
- package/lib/relay-hooks/readFragmentInternal.js +2 -4
- package/lib/relay-hooks/useFragmentInternal.js +1 -1
- package/lib/relay-hooks/useFragmentInternal_CURRENT.js +3 -10
- package/lib/relay-hooks/useFragmentInternal_EXPERIMENTAL.js +6 -28
- package/lib/relay-hooks/useLoadMoreFunction.js +10 -43
- package/lib/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js +130 -0
- package/lib/relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL.js +227 -0
- package/lib/relay-hooks/useQueryLoader.js +8 -0
- package/lib/relay-hooks/useQueryLoader_EXPERIMENTAL.js +120 -0
- package/package.json +2 -2
- package/react-relay-hooks.js +2 -2
- package/react-relay-hooks.min.js +2 -2
- package/react-relay-legacy.js +1 -1
- package/react-relay-legacy.min.js +1 -1
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/relay-hooks/EntryPointTypes.flow.js.flow +2 -2
- package/relay-hooks/MatchContainer.js.flow +1 -1
- package/relay-hooks/getConnectionState.js.flow +97 -0
- package/relay-hooks/legacy/FragmentResource.js.flow +4 -16
- package/relay-hooks/loadQuery.js.flow +30 -38
- package/relay-hooks/readFragmentInternal.js.flow +1 -10
- package/relay-hooks/useFragmentInternal.js.flow +1 -1
- package/relay-hooks/useFragmentInternal_CURRENT.js.flow +7 -22
- package/relay-hooks/useFragmentInternal_EXPERIMENTAL.js.flow +8 -56
- package/relay-hooks/useLoadMoreFunction.js.flow +14 -80
- package/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js.flow +280 -0
- package/relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL.js.flow +433 -0
- package/relay-hooks/useQueryLoader.js.flow +27 -3
- package/relay-hooks/useQueryLoader_EXPERIMENTAL.js.flow +253 -0
package/react-relay-legacy.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
|
-
* Relay v18.
|
2
|
+
* Relay v18.2.0
|
3
3
|
*/
|
4
4
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],t):"object"==typeof exports?exports.ReactRelayLegacy=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelayLegacy=t(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,t,r,n,o,a,s,i,l,u,c,h)=>(()=>{"use strict";var p={426:e=>{function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},888:(e,t,r)=>{var n=r(156),o=r(658).__internal.createRelayContext;e.exports=o(n)},362:(e,t,r)=>{var n=r(275).default,o=n(r(924)),a=n(r(264)),s=n(r(383)),i=n(r(296)),l=n(r(311)),u=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(89),h=r(426).getContainerName,p=r(827).assertRelayContext,f=r(125),d=r(156),v=r(658),_=v.createFragmentSpecResolver,y=v.getDataIDsFromObject,b=v.isScalarAndEqual;function m(e,t){var r,n=h(e);return r=function(r){function c(e){var o,a;a=r.call(this,e)||this,(0,l.default)((0,s.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:C(t.relayProp.environment)}:null}))}));var i=p(e.__relayContext),u=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,c=_(i,n,t,e,u);return a.state={data:c.resolve(),prevProps:e,prevPropsContext:i,relayProp:C(i.environment),resolver:c},a}(0,i.default)(c,r),c.getDerivedStateFromProps=function(e,r){var o,a=r.prevProps,s=p(e.__relayContext),i=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,l=y(t,a),u=y(t,e),c=r.resolver;if(r.prevPropsContext.environment!==s.environment||!f(l,u))return{data:(c=_(s,n,t,e,i)).resolve(),prevPropsContext:s,prevProps:e,relayProp:C(s.environment),resolver:c};c.setProps(e);var h=c.resolve();return h!==r.data?{data:h,prevProps:e,prevPropsContext:s,relayProp:C(s.environment)}:null};var h=c.prototype;return h.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},h.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},h.componentWillUnmount=function(){this.state.resolver.dispose()},h.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!b(e[a],this.props[a]))return!0}return!1},h._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},h._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},h.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,u));return d.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp}))},c}(d.Component),(0,l.default)(r,"displayName",n),r}function C(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,m)}}},428:(e,t,r)=>{var n=r(888),o=r(239),a=r(125),s=r(156),i=r(658),l=i.createOperationDescriptor,u=i.deepFreeze,c=i.getRequest,h=s.useLayoutEffect,p=s.useState,f=s.useRef,d=s.useMemo,v={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,i=e.environment,_=e.query,y=e.variables,b=e.render,m=(t=y,r=s.useRef(t),a(r.current,t)||(u(t),r.current=t),r.current),C=d((function(){var e=c(_);return l(e,m)}),[_,m]),R=d((function(){return{environment:i}}),[i]),g=f(null),x=p(null)[1],P=f(null),S=d((function(){i.check(C);var e=i.lookup(C.fragment);g.current=e.data;var t=i.retain(C),r=i.subscribe(e,(function(e){g.current=e.data,x(g.current)})),n=!1;return P.current&&P.current(),P.current=function(){n||(n=!0,P.current=null,t.dispose(),r.dispose())},e}),[i,C]);return h((function(){var e=P.current;return function(){e&&e()}}),[S]),s.createElement(n.Provider,{value:R},s.createElement(o.Provider,{value:v},b({props:g.current})))}},540:(e,t,r)=>{var n=r(275).default,o=n(r(924)),a=n(r(264)),s=n(r(383)),i=n(r(296)),l=n(r(311)),u=n(r(175)),c=["componentRef"],h=["componentRef","__relayContext","__rootIsQueryRenderer"],p=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(89),d=r(416),v=r(426),_=v.getComponentName,y=v.getContainerName,b=r(888),m=r(733),C=r(827).assertRelayContext,R=r(125),g=r(56),x=r(156),P=r(658),S=P.ConnectionInterface,q=P.Observable,F=P.RelayFeatureFlags,D=P.createFragmentSpecResolver,O=P.createOperationDescriptor,E=P.getDataIDsFromObject,I=P.getRequest,A=P.getVariablesFromObject,N=P.isScalarAndEqual,U=r(446),j="forward";function k(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=_(e),v=y(e),P=function(e){var t=null,r=!1;for(var n in e){var o=e[n],a=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(r=!0),a&&(1!==a.length&&g(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",n,a.length),t&&g(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,u.default)((0,u.default)({},a[0]),{},{fragmentName:n}))}return r&&null===t&&g(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),w=r.getConnectionFromProps||function(e){var t=e.path;return t||g(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(r){for(var n=r[e.fragmentName],o=0;o<t.length;o++){if(!n||"object"!=typeof n)return null;n=n[t[o]]}return n}}(P),Q=r.direction||P.direction;Q||g(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var M=r.getFragmentVariables||function(e){var t=e.count;return t||g(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,r){return(0,u.default)((0,u.default)({},e),{},(0,l.default)({},t,r))}}(P);return n=function(n){function _(e){var r,o;o=n.call(this,e)||this,(0,l.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,l.default)((0,s.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,l.default)((0,s.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,l.default)((0,s.default)(o),"_refetchConnection",(function(e,t,r){if(!o._canFetchPage("refetchConnection"))return{dispose:function(){}};o._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:o._fetchPage(n,k(t),{force:!0}).unsubscribe}})),(0,l.default)((0,s.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=k(t),a=o._getConnectionData();if(!a)return q.create((function(e){return e.complete()})).subscribe(n),null;var s=a.edgeCount+e;if(r&&r.force)return o._refetchConnection(s,t);var i=S.get(),l=i.END_CURSOR,u=i.START_CURSOR,c=a.cursor;U(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",Q===j?l:u,c);var h={count:e,cursor:c,totalCount:s};return{dispose:o._fetchPage(h,n,r).unsubscribe}}));var a=C(e.__relayContext),i=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?o._resolver=D(a,v,t,e,i):o._resolver=D(a,v,t,e,i,o._handleFragmentDataUpdate),o.state={data:o._resolver.resolve(),prevContext:a,contextForChildren:a,relayProp:o._buildRelayProp(a),resolverGeneration:0},o._isUnmounted=!1,o._hasFetched=!1,o}(0,i.default)(_,n);var y=_.prototype;return y.componentDidMount=function(){this._isUnmounted=!1,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},y.componentDidUpdate=function(e,t){!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},y.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,o=C(e.__relayContext),a=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,s=E(t,this.props),i=E(t,e),l=d(t,this.props),u=d(t,e);o.environment===this.state.prevContext.environment&&R(l,u)&&R(s,i)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=D(o,v,t,e,a):this._resolver=D(o,v,t,e,a,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:o,contextForChildren:o,relayProp:n._buildRelayProp(o),resolverGeneration:e.resolverGeneration+1}})));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},y.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},y.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!N(e[a],this.props[a]))return!0}return!1},y._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},y._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},y._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},y._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,a.default)(e,c)),r=(0,u.default)((0,u.default)({},t),this.state.data),n=w(r);if(null==n)return null;var o=S.get(),s=o.EDGES,i=o.PAGE_INFO,l=o.HAS_NEXT_PAGE,h=o.HAS_PREV_PAGE,p=o.END_CURSOR,d=o.START_CURSOR;"object"!=typeof n&&g(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",f,s,i,n);var v=n[s],_=n[i];if(null==v||null==_)return null;Array.isArray(v)||g(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",f,s,v),"object"!=typeof _&&g(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",f,i,_);var y=Q===j?_[l]:_[h],b=Q===j?_[p]:_[d];return"boolean"!=typeof y||0!==v.length&&void 0===b?(U(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",i,f,Q===j?l:h,y,Q===j?p:d,b),null):{cursor:b,edgeCount:v.length,hasMore:y}},y._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new m),this._queryFetcher},y._canFetchPage=function(e){return!this._isUnmounted||(U(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,v,e),!1)},y._fetchPage=function(e,n,o){var s,i=this,l=C(this.props.__relayContext).environment,c=this.props,p=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,a.default)(c,h)),v=(0,u.default)((0,u.default)({},p),this.state.data),_=d(t,p);s=A(t,p),s=(0,u.default)((0,u.default)((0,u.default)({},_),s),this._refetchVariables);var y=r.getVariables(v,{count:e.count,cursor:e.cursor},s);("object"!=typeof y||null===y)&&g(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",y,f),y=(0,u.default)((0,u.default)({},y),this._refetchVariables),s=(0,u.default)((0,u.default)({},y),s);var b=o?{force:!!o.force}:void 0;null!=b&&null!=(null==o?void 0:o.metadata)&&(b.metadata=null==o?void 0:o.metadata);var m=I(r.query),x=O(m,y,b),P=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var S=function(){i._refetchSubscription===P&&(i._refetchSubscription=null,i._isARequestInFlight=!1)};return this._isARequestInFlight=!0,P=this._getQueryFetcher().execute({environment:l,operation:x,preservePreviousReferences:!0}).mergeMap((function(t){return q.create((function(t){!function(t,r){var n=i._resolver.resolve();i._resolver.setVariables(M(s,e.totalCount),x.request.node);var o=i._resolver.resolve();R(n,o)?r():i.setState({data:o,contextForChildren:{environment:i.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:S,complete:S,unsubscribe:S}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?P:null,P},y._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},y.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,p));return x.createElement(b.Provider,{value:this.state.contextForChildren},x.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},_}(x.Component),(0,l.default)(n,"displayName",v),n}(e,t,r)}))}}},733:(e,t,r)=>{var n=(0,r(275).default)(r(311)),o=r(56),a=r(658),s=a.__internal.fetchQuery,i=a.createOperationDescriptor,l=a.isRelayModernEnvironment,u=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,o=e.preservePreviousReferences,a=void 0!==o&&o,i=r.retain(n),u=function(){t._selectionReferences=t._selectionReferences.concat(i)},c=function(){a||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(i)},h=function(){t._selectionReferences=t._selectionReferences.concat(i)};return l(r)?s(r,n).do({error:u,complete:c,unsubscribe:h}):r.execute({operation:n}).do({error:u,complete:c,unsubscribe:h})},t.setOnDataChange=function(e){this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,o=e.environment,a=e.operation,s=e.onDataChange,l=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:u||[],operation:a},s&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(s)&&this._fetchOptions.onDataChangeCallbacks.push(s);var c=t?i(a.request.node,a.request.variables,t):a,h=this.execute({environment:o,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:l})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;l?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){h.unsubscribe()}},l=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var n=this._fetchOptions,a=n.environment,s=n.onDataChangeCallbacks,i=n.operation;if(!this._snapshot&&(this._snapshot=a.lookup(i.fragment),this._rootSubscription=a.subscribe(this._snapshot,(function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach((function(t){return t({snapshot:e})}))}})),this._snapshot&&r&&Array.isArray(s))){var l=this._snapshot;s.forEach((function(e){return e({snapshot:l})}))}},e}();e.exports=u},701:(e,t,r)=>{var n=r(275).default,o=n(r(175)),a=n(r(383)),s=n(r(296)),i=n(r(311)),l=r(888),u=r(733),c=r(239),h=r(125),p=r(156),f=r(658),d=f.createOperationDescriptor,v=f.deepFreeze,_=f.getRequest,y={},b={rootIsQueryRenderer:!0},m=function(e){function t(t){var r;r=e.call(this,t)||this,(0,i.default)((0,a.default)(r),"_handleDataChange",(function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState((function(e){var r=e.requestCacheKey;return r&&delete y[r],n===e.snapshot&&t===e.error?null:{renderProps:C(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,s,l={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;s=R(_(c).params,t.variables),n=y[s]?y[s].queryFetcher:new u}else n=new u;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,o.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:l},x(t,n,l,s)),r}(0,s.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&h(t.prevPropsVariables,e.variables)?null:g(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=g(e.props,t),n=r.requestCacheKey,o=r.queryFetcher;return null!=n&&null!=y[n]&&o.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete y[o],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete y[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,o=r.requestCacheKey;o&&(delete y[o],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return v(t),p.createElement(l.Provider,{value:r},p.createElement(c.Provider,{value:b},this.props.render(t)))},t}(p.Component);function C(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var o=r.retry(t);o&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:o}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function R(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function g(e,t){var r,n=e.query,a=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var s=R(_(n).params,e.variables);r=y[s]?y[s].queryFetcher:new u(a)}else r=new u(a);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},x(e,r,t.retryCallbacks))}function x(e,t,r,n){var o=e.environment,a=e.query,s=e.variables,i=e.cacheConfig,l=o;if(!a)return t.dispose(),{error:null,relayContext:{environment:l},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var u=_(a),c=d(u,s,i),h={environment:l};if("string"==typeof n&&y[n]){var p=y[n].snapshot;return p?{error:null,relayContext:h,renderProps:C(null,p,t,r),snapshot:p,requestCacheKey:n}:{error:null,relayContext:h,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var f=t.lookupInStore(l,c,e.fetchPolicy),v=t.fetch({environment:l,onDataChange:null,operation:c})||f;return n=n||R(u.params,e.variables),y[n]={queryFetcher:t,snapshot:v},v?{error:null,relayContext:h,renderProps:C(null,v,t,r),snapshot:v,requestCacheKey:n}:{error:null,relayContext:h,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:h,renderProps:C(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=m},239:(e,t,r)=>{var n=r(156);e.exports=n.createContext({rootIsQueryRenderer:!1})},427:(e,t,r)=>{var n=r(275).default,o=n(r(924)),a=n(r(264)),s=n(r(175)),i=n(r(383)),l=n(r(296)),u=n(r(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],h=r(89),p=r(416),f=r(426).getContainerName,d=r(888),v=r(733),_=r(827).assertRelayContext,y=r(125),b=r(156),m=r(658),C=m.Observable,R=m.createFragmentSpecResolver,g=m.createOperationDescriptor,x=m.getDataIDsFromObject,P=m.getRequest,S=m.getVariablesFromObject,q=m.isScalarAndEqual,F=r(446);function D(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return h(e,t,(function(e,t){return function(e,t,r){var n,h=f(e);return n=function(n){function f(e){var o,a;a=n.call(this,e)||this,(0,u.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,u.default)((0,i.default)(a),"_refetch",(function(e,n,o,i){if(a._isUnmounted)return F(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",h),{dispose:function(){}};var l=_(a.props.__relayContext).environment,u=p(t,a.props),c="function"==typeof e?e(a._getFragmentVariables()):e;c=(0,s.default)((0,s.default)({},u),c);var f=n?(0,s.default)((0,s.default)({},c),n):c,d=i?{force:!!i.force}:void 0;null!=d&&null!=(null==i?void 0:i.metadata)&&(d.metadata=null==i?void 0:i.metadata);var v,y="function"==typeof o?{next:o,error:o}:o||{},b=P(r),m=g(b,c,d);return a.state.localVariables=c,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(l,m,null==i?void 0:i.fetchPolicy)?(a.state.resolver.setVariables(f,m.request.node),a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){y.next&&y.next(),y.complete&&y.complete()})),{dispose:function(){}}):(a._getQueryFetcher().execute({environment:l,operation:m,preservePreviousReferences:!0}).mergeMap((function(e){return a.state.resolver.setVariables(f,m.request.node),C.create((function(e){return a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){a._refetchSubscription===v&&(a._refetchSubscription=null)})).subscribe((0,s.default)((0,s.default)({},y),{},{start:function(e){a._refetchSubscription=v=e,y.start&&y.start(e)}})),{dispose:function(){v&&v.unsubscribe()}})}));var l=_(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;a._refetchSubscription=null;var f=R(l,h,t,e,c);return a.state={data:f.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:D(l.environment,a._refetch),resolver:f},a._isUnmounted=!1,a}(0,l.default)(f,n);var m=f.prototype;return m.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},m.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,a=_(e.__relayContext),s=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,i=x(t,o),l=x(t,e),u=p(t,o),c=p(t,e),f=r.resolver;if(r.prevPropsContext.environment!==a.environment||!y(u,c)||!y(i,l))return{data:(f=R(a,h,t,e,s)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:D(a.environment,r.relayProp.refetch),resolver:f};r.localVariables||f.setProps(e);var d=f.resolve();return d!==r.data?{data:d,prevProps:e}:null},m.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},m.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!q(e[a],this.props[a]))return!0}return!1},m._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},m._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},m._getFragmentVariables=function(){return S(t,this.props)},m._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},m.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,c)),s=this.state,i=s.relayProp,l=s.contextForChildren;return b.createElement(d.Provider,{value:l},b.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:i})))},f}(b.Component),(0,u.default)(n,"displayName",h),n}(e,t,r)}))}}},827:(e,t,r)=>{var n=r(645),o=r(56);function a(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return a(e)||o(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:a}},74:(e,t,r)=>{var n=r(56);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,o)}}},89:(e,t,r)=>{var n=(0,r(275).default)(r(924)),o=r(74),a=r(426),s=a.getComponentName,i=a.getContainerName,l=r(888),u=r(239),c=r(56),h=r(156),p=r(658).getFragment,f=h.useContext;e.exports=function(e,t,r){var a=i(e);o(s(e),t);var d={};for(var v in t)d[v]=p(t[v]);var _=r(e,d);function y(e,t){var r,o=f(l);null==o&&c(!1,"`%s` tried to render a context that was not valid this means that `%s` was rendered outside of a query renderer.",a,a);var s=f(u);return h.createElement(_,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(r=null==s?void 0:s.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}_.displayName=a,y.displayName=a;var b=h.forwardRef(y);return b.__ComponentClass=e,b.displayName=a,b}},416:(e,t,r)=>{var n=(0,r(275).default)(r(175)),o=r(658).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(a){var s,i,l,u=e[a],c=t[a],h=o(u,c),p=null!=h&&"PluralReaderSelector"===h.kind?null!==(s=null===(i=h.selectors[0])||void 0===i?void 0:i.owner.variables)&&void 0!==s?s:{}:null!==(l=null==h?void 0:h.owner.variables)&&void 0!==l?l:{};r=(0,n.default)((0,n.default)({},r),p)})),r}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},314:(e,t,r)=>{var n=r(888),o=r(362),a=r(428),s=r(540),i=r(701),l=r(427),u=r(658);e.exports={ConnectionHandler:u.ConnectionHandler,QueryRenderer:i,LocalQueryRenderer:a,MutationTypes:u.MutationTypes,RangeOperations:u.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:u.applyOptimisticMutation,commitLocalUpdate:u.commitLocalUpdate,commitMutation:u.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:s.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:u.fetchQuery_DEPRECATED,graphql:u.graphql,readInlineData:u.readInlineData,requestSubscription:u.requestSubscription}},383:t=>{t.exports=e},311:e=>{e.exports=t},924:e=>{e.exports=r},296:e=>{e.exports=n},275:e=>{e.exports=o},175:e=>{e.exports=a},264:e=>{e.exports=s},125:e=>{e.exports=i},446:e=>{e.exports=l},56:e=>{e.exports=u},156:e=>{e.exports=c},658:e=>{e.exports=h}},f={};return function e(t){var r=f[t];if(void 0!==r)return r.exports;var n=f[t]={exports:{}};return p[t](n,n.exports,e),n.exports}(314)})()));
|
package/react-relay.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
|
-
* Relay v18.
|
2
|
+
* Relay v18.2.0
|
3
3
|
*/
|
4
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),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/assertThisInitialized","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],t):"object"==typeof exports?exports.ReactRelay=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelay=t(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,t,r,n,a,o,i,s,l,u,c,f,d,p)=>(()=>{"use strict";var h={7426:e=>{function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},9888:(e,t,r)=>{var n=r(8156),a=r(6658).__internal.createRelayContext;e.exports=a(n)},7362:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),l=n(r(311)),u=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(3089),f=r(7426).getContainerName,d=r(8827).assertRelayContext,p=r(9125),h=r(8156),v=r(6658),m=v.createFragmentSpecResolver,y=v.getDataIDsFromObject,g=v.isScalarAndEqual;function b(e,t){var r,n=f(e);return r=function(r){function c(e){var a,o;o=r.call(this,e)||this,(0,l.default)((0,i.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:_(t.relayProp.environment)}:null}))}));var s=d(e.__relayContext),u=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,c=m(s,n,t,e,u);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:_(s.environment),resolver:c},o}(0,s.default)(c,r),c.getDerivedStateFromProps=function(e,r){var a,o=r.prevProps,i=d(e.__relayContext),s=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,l=y(t,o),u=y(t,e),c=r.resolver;if(r.prevPropsContext.environment!==i.environment||!p(l,u))return{data:(c=m(i,n,t,e,s)).resolve(),prevPropsContext:i,prevProps:e,relayProp:_(i.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==r.data?{data:f,prevProps:e,prevPropsContext:i,relayProp:_(i.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!g(e[o],this.props[o]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},f.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,u));return h.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp}))},c}(h.Component),(0,l.default)(r,"displayName",n),r}function _(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,b)}}},1428:(e,t,r)=>{var n=r(9888),a=r(7239),o=r(9125),i=r(8156),s=r(6658),l=s.createOperationDescriptor,u=s.deepFreeze,c=s.getRequest,f=i.useLayoutEffect,d=i.useState,p=i.useRef,h=i.useMemo,v={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,s=e.environment,m=e.query,y=e.variables,g=e.render,b=(t=y,r=i.useRef(t),o(r.current,t)||(u(t),r.current=t),r.current),_=h((function(){var e=c(m);return l(e,b)}),[m,b]),R=h((function(){return{environment:s}}),[s]),C=p(null),E=d(null)[1],P=p(null),x=h((function(){s.check(_);var e=s.lookup(_.fragment);C.current=e.data;var t=s.retain(_),r=s.subscribe(e,(function(e){C.current=e.data,E(C.current)})),n=!1;return P.current&&P.current(),P.current=function(){n||(n=!0,P.current=null,t.dispose(),r.dispose())},e}),[s,_]);return f((function(){var e=P.current;return function(){e&&e()}}),[x]),i.createElement(n.Provider,{value:R},i.createElement(a.Provider,{value:v},g({props:C.current})))}},3540:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),l=n(r(311)),u=n(r(6175)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],p=r(3089),h=r(8416),v=r(7426),m=v.getComponentName,y=v.getContainerName,g=r(9888),b=r(733),_=r(8827).assertRelayContext,R=r(9125),C=r(5056),E=r(8156),P=r(6658),x=P.ConnectionInterface,F=P.Observable,S=P.RelayFeatureFlags,k=P.createFragmentSpecResolver,q=P.createOperationDescriptor,D=P.getDataIDsFromObject,w=P.getRequest,I=P.getVariablesFromObject,A=P.isScalarAndEqual,O=r(4446),N="forward";function Q(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return p(e,t,(function(e,t){return function(e,t,r){var n,p=m(e),v=y(e),P=function(e){var t=null,r=!1;for(var n in e){var a=e[n],o=a.metadata&&a.metadata.connection;void 0!==a.metadata&&(r=!0),o&&(1!==o.length&&C(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",n,o.length),t&&C(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,u.default)((0,u.default)({},o[0]),{},{fragmentName:n}))}return r&&null===t&&C(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),T=r.getConnectionFromProps||function(e){var t=e.path;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(r){for(var n=r[e.fragmentName],a=0;a<t.length;a++){if(!n||"object"!=typeof n)return null;n=n[t[a]]}return n}}(P),M=r.direction||P.direction;M||C(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var U=r.getFragmentVariables||function(e){var t=e.count;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,r){return(0,u.default)((0,u.default)({},e),{},(0,l.default)({},t,r))}}(P);return n=function(n){function m(e){var r,a;a=n.call(this,e)||this,(0,l.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){a.setState({data:a._resolver.resolve()})})),(0,l.default)((0,i.default)(a),"_hasMore",(function(){var e=a._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,l.default)((0,i.default)(a),"_isLoading",(function(){return!!a._refetchSubscription})),(0,l.default)((0,i.default)(a),"_refetchConnection",(function(e,t,r){if(!a._canFetchPage("refetchConnection"))return{dispose:function(){}};a._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:a._fetchPage(n,Q(t),{force:!0}).unsubscribe}})),(0,l.default)((0,i.default)(a),"_loadMore",(function(e,t,r){if(!a._canFetchPage("loadMore"))return{dispose:function(){}};var n=Q(t),o=a._getConnectionData();if(!o)return F.create((function(e){return e.complete()})).subscribe(n),null;var i=o.edgeCount+e;if(r&&r.force)return a._refetchConnection(i,t);var s=x.get(),l=s.END_CURSOR,u=s.START_CURSOR,c=o.cursor;O(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",M===N?l:u,c);var f={count:e,cursor:c,totalCount:i};return{dispose:a._fetchPage(f,n,r).unsubscribe}}));var o=_(e.__relayContext),s=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return a._isARequestInFlight=!1,a._refetchSubscription=null,a._refetchVariables=null,!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?a._resolver=k(o,v,t,e,s):a._resolver=k(o,v,t,e,s,a._handleFragmentDataUpdate),a.state={data:a._resolver.resolve(),prevContext:o,contextForChildren:o,relayProp:a._buildRelayProp(o),resolverGeneration:0},a._isUnmounted=!1,a._hasFetched=!1,a}(0,s.default)(m,n);var y=m.prototype;return y.componentDidMount=function(){this._isUnmounted=!1,!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},y.componentDidUpdate=function(e,t){!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},y.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,a=_(e.__relayContext),o=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,i=D(t,this.props),s=D(t,e),l=h(t,this.props),u=h(t,e);a.environment===this.state.prevContext.environment&&R(l,u)&&R(i,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=k(a,v,t,e,o):this._resolver=k(a,v,t,e,o,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:a,contextForChildren:a,relayProp:n._buildRelayProp(a),resolverGeneration:e.resolverGeneration+1}})));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},y.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},y.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!A(e[o],this.props[o]))return!0}return!1},y._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},y._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},y._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},y._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,o.default)(e,c)),r=(0,u.default)((0,u.default)({},t),this.state.data),n=T(r);if(null==n)return null;var a=x.get(),i=a.EDGES,s=a.PAGE_INFO,l=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,h=a.START_CURSOR;"object"!=typeof n&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",p,i,s,n);var v=n[i],m=n[s];if(null==v||null==m)return null;Array.isArray(v)||C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",p,i,v),"object"!=typeof m&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",p,s,m);var y=M===N?m[l]:m[f],g=M===N?m[d]:m[h];return"boolean"!=typeof y||0!==v.length&&void 0===g?(O(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",s,p,M===N?l:f,y,M===N?d:h,g),null):{cursor:g,edgeCount:v.length,hasMore:y}},y._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new b),this._queryFetcher},y._canFetchPage=function(e){return!this._isUnmounted||(O(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,v,e),!1)},y._fetchPage=function(e,n,a){var i,s=this,l=_(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,o.default)(c,f)),v=(0,u.default)((0,u.default)({},d),this.state.data),m=h(t,d);i=I(t,d),i=(0,u.default)((0,u.default)((0,u.default)({},m),i),this._refetchVariables);var y=r.getVariables(v,{count:e.count,cursor:e.cursor},i);("object"!=typeof y||null===y)&&C(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",y,p),y=(0,u.default)((0,u.default)({},y),this._refetchVariables),i=(0,u.default)((0,u.default)({},y),i);var g=a?{force:!!a.force}:void 0;null!=g&&null!=(null==a?void 0:a.metadata)&&(g.metadata=null==a?void 0:a.metadata);var b=w(r.query),E=q(b,y,g),P=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var x=function(){s._refetchSubscription===P&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,P=this._getQueryFetcher().execute({environment:l,operation:E,preservePreviousReferences:!0}).mergeMap((function(t){return F.create((function(t){!function(t,r){var n=s._resolver.resolve();s._resolver.setVariables(U(i,e.totalCount),E.request.node);var a=s._resolver.resolve();R(n,a)?r():s.setState({data:a,contextForChildren:{environment:s.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:x,complete:x,unsubscribe:x}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?P:null,P},y._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},y.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,d));return E.createElement(g.Provider,{value:this.state.contextForChildren},E.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},m}(E.Component),(0,l.default)(n,"displayName",v),n}(e,t,r)}))}}},733:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(5056),o=r(6658),i=o.__internal.fetchQuery,s=o.createOperationDescriptor,l=o.isRelayModernEnvironment,u=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,a=e.preservePreviousReferences,o=void 0!==a&&a,s=r.retain(n),u=function(){t._selectionReferences=t._selectionReferences.concat(s)},c=function(){o||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},f=function(){t._selectionReferences=t._selectionReferences.concat(s)};return l(r)?i(r,n).do({error:u,complete:c,unsubscribe:f}):r.execute({operation:n}).do({error:u,complete:c,unsubscribe:f})},t.setOnDataChange=function(e){this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,a=e.environment,o=e.operation,i=e.onDataChange,l=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:a,onDataChangeCallbacks:u||[],operation:o},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=t?s(o.request.node,o.request.variables,t):o,f=this.execute({environment:a,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:l})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;l?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},l=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var n=this._fetchOptions,o=n.environment,i=n.onDataChangeCallbacks,s=n.operation;if(!this._snapshot&&(this._snapshot=o.lookup(s.fragment),this._rootSubscription=o.subscribe(this._snapshot,(function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach((function(t){return t({snapshot:e})}))}})),this._snapshot&&r&&Array.isArray(i))){var l=this._snapshot;i.forEach((function(e){return e({snapshot:l})}))}},e}();e.exports=u},3701:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5383)),i=n(r(8296)),s=n(r(311)),l=r(9888),u=r(733),c=r(7239),f=r(9125),d=r(8156),p=r(6658),h=p.createOperationDescriptor,v=p.deepFreeze,m=p.getRequest,y={},g={rootIsQueryRenderer:!0},b=function(e){function t(t){var r;r=e.call(this,t)||this,(0,s.default)((0,o.default)(r),"_handleDataChange",(function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState((function(e){var r=e.requestCacheKey;return r&&delete y[r],n===e.snapshot&&t===e.error?null:{renderProps:_(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,i,l={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;i=R(m(c).params,t.variables),n=y[i]?y[i].queryFetcher:new u}else n=new u;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,a.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:l},E(t,n,l,i)),r}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&f(t.prevPropsVariables,e.variables)?null:C(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=C(e.props,t),n=r.requestCacheKey,a=r.queryFetcher;return null!=n&&null!=y[n]&&a.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,a=t.requestCacheKey;a&&delete y[a],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete y[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,a=r.requestCacheKey;a&&(delete y[a],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return v(t),d.createElement(l.Provider,{value:r},d.createElement(c.Provider,{value:g},this.props.render(t)))},t}(d.Component);function _(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var a=r.retry(t);a&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:a}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function R(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function C(e,t){var r,n=e.query,o=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var i=R(m(n).params,e.variables);r=y[i]?y[i].queryFetcher:new u(o)}else r=new u(o);return(0,a.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},E(e,r,t.retryCallbacks))}function E(e,t,r,n){var a=e.environment,o=e.query,i=e.variables,s=e.cacheConfig,l=a;if(!o)return t.dispose(),{error:null,relayContext:{environment:l},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var u=m(o),c=h(u,i,s),f={environment:l};if("string"==typeof n&&y[n]){var d=y[n].snapshot;return d?{error:null,relayContext:f,renderProps:_(null,d,t,r),snapshot:d,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var p=t.lookupInStore(l,c,e.fetchPolicy),v=t.fetch({environment:l,onDataChange:null,operation:c})||p;return n=n||R(u.params,e.variables),y[n]={queryFetcher:t,snapshot:v},v?{error:null,relayContext:f,renderProps:_(null,v,t,r),snapshot:v,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:_(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=b},7239:(e,t,r)=>{var n=r(8156);e.exports=n.createContext({rootIsQueryRenderer:!1})},2427:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(6175)),s=n(r(5383)),l=n(r(8296)),u=n(r(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(3089),d=r(8416),p=r(7426).getContainerName,h=r(9888),v=r(733),m=r(8827).assertRelayContext,y=r(9125),g=r(8156),b=r(6658),_=b.Observable,R=b.createFragmentSpecResolver,C=b.createOperationDescriptor,E=b.getDataIDsFromObject,P=b.getRequest,x=b.getVariablesFromObject,F=b.isScalarAndEqual,S=r(4446);function k(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=p(e);return n=function(n){function p(e){var a,o;o=n.call(this,e)||this,(0,u.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,u.default)((0,s.default)(o),"_refetch",(function(e,n,a,s){if(o._isUnmounted)return S(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",f),{dispose:function(){}};var l=m(o.props.__relayContext).environment,u=d(t,o.props),c="function"==typeof e?e(o._getFragmentVariables()):e;c=(0,i.default)((0,i.default)({},u),c);var p=n?(0,i.default)((0,i.default)({},c),n):c,h=s?{force:!!s.force}:void 0;null!=h&&null!=(null==s?void 0:s.metadata)&&(h.metadata=null==s?void 0:s.metadata);var v,y="function"==typeof a?{next:a,error:a}:a||{},g=P(r),b=C(g,c,h);return o.state.localVariables=c,o._refetchSubscription&&o._refetchSubscription.unsubscribe(),null!=o._getQueryFetcher().lookupInStore(l,b,null==s?void 0:s.fetchPolicy)?(o.state.resolver.setVariables(p,b.request.node),o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){y.next&&y.next(),y.complete&&y.complete()})),{dispose:function(){}}):(o._getQueryFetcher().execute({environment:l,operation:b,preservePreviousReferences:!0}).mergeMap((function(e){return o.state.resolver.setVariables(p,b.request.node),_.create((function(e){return o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){o._refetchSubscription===v&&(o._refetchSubscription=null)})).subscribe((0,i.default)((0,i.default)({},y),{},{start:function(e){o._refetchSubscription=v=e,y.start&&y.start(e)}})),{dispose:function(){v&&v.unsubscribe()}})}));var l=m(e.__relayContext),c=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a;o._refetchSubscription=null;var p=R(l,f,t,e,c);return o.state={data:p.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:k(l.environment,o._refetch),resolver:p},o._isUnmounted=!1,o}(0,l.default)(p,n);var b=p.prototype;return b.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},b.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},p.getDerivedStateFromProps=function(e,r){var n,a=r.prevProps,o=m(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=E(t,a),l=E(t,e),u=d(t,a),c=d(t,e),p=r.resolver;if(r.prevPropsContext.environment!==o.environment||!y(u,c)||!y(s,l))return{data:(p=R(o,f,t,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:k(o.environment,r.relayProp.refetch),resolver:p};r.localVariables||p.setProps(e);var h=p.resolve();return h!==r.data?{data:h,prevProps:e}:null},b.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},b.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!F(e[o],this.props[o]))return!0}return!1},b._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},b._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},b._getFragmentVariables=function(){return x(t,this.props)},b._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},b.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,c)),i=this.state,s=i.relayProp,l=i.contextForChildren;return g.createElement(h.Provider,{value:l},g.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:s})))},p}(g.Component),(0,u.default)(n,"displayName",f),n}(e,t,r)}))}}},8827:(e,t,r)=>{var n=r(645),a=r(5056);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return o(e)||a(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:o}},7074:(e,t,r)=>{var n=r(5056);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var a=t[r];(!a||"object"!=typeof a&&"function"!=typeof a)&&n(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,a)}}},3089:(e,t,r)=>{var n=(0,r(5275).default)(r(4924)),a=r(7074),o=r(7426),i=o.getComponentName,s=o.getContainerName,l=r(9888),u=r(7239),c=r(5056),f=r(8156),d=r(6658).getFragment,p=f.useContext;e.exports=function(e,t,r){var o=s(e);a(i(e),t);var h={};for(var v in t)h[v]=d(t[v]);var m=r(e,h);function y(e,t){var r,a=p(l);null==a&&c(!1,"`%s` tried to render a context that was not valid this means that `%s` was rendered outside of a query renderer.",o,o);var i=p(u);return f.createElement(m,(0,n.default)({},e,{__relayContext:a,__rootIsQueryRenderer:null!==(r=null==i?void 0:i.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}m.displayName=o,y.displayName=o;var g=f.forwardRef(y);return g.__ComponentClass=e,g.displayName=o,g}},8416:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(6658).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(o){var i,s,l,u=e[o],c=t[o],f=a(u,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(i=null===(s=f.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==i?i:{}:null!==(l=null==f?void 0:f.owner.variables)&&void 0!==l?l:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},5265:(e,t,r)=>{var n=r(9888),a=r(7362),o=r(1428),i=r(3540),s=r(3701),l=r(2427),u=r(3158),c=r(9828),f=r(428).loadQuery,d=r(3187),p=r(9696),h=r(5083),v=r(529),m=r(6242),y=r(3899),g=r(3115),b=r(951),_=r(4617),R=r(8876),C=r(8874),E=r(2750),P=r(8050),x=r(5746),F=r(6658);e.exports={ConnectionHandler:F.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:o,MutationTypes:F.MutationTypes,RangeOperations:F.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:F.applyOptimisticMutation,commitLocalUpdate:F.commitLocalUpdate,commitMutation:F.commitMutation,createFragmentContainer:a.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:F.fetchQuery_DEPRECATED,graphql:F.graphql,readInlineData:F.readInlineData,requestSubscription:F.requestSubscription,EntryPointContainer:u,RelayEnvironmentProvider:p,ProfilerContext:d,fetchQuery:F.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:h,useFragment:m,useLazyLoadQuery:y,useEntryPointLoader:v,useQueryLoader:R,useMutation:g,usePaginationFragment:b,usePreloadedQuery:_,useRefetchableFragment:C,useRelayEnvironment:E,useSubscribeToInvalidationState:P,useSubscription:x}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},3158:(e,t,r)=>{var n=r(3187),a=r(2750),o=r(8156),i=r(8156),s=i.useContext,l=i.useEffect,u=r(4446);e.exports=function(e){var t=e.entryPointReference,r=e.props;u(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var i=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=i(),v=s(n),m=a();return l((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),o.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:c})}},5093:(e,t,r)=>{var n=r(5056),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},3187:(e,t,r)=>{var n=r(8156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},1269:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(311)),i=r(5093),s=r(1637),l=r(5056),u=r(6658).isPromise,c=r(4446),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,t,r,n,a){var o=null!=r?r:h(t)?d:f,i=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(o,"-").concat(i,"-").concat(t.request.identifier);return null!=a?"".concat(s,"-").concat(a):s}function m(e,t){var r={__id:e.fragment.dataID,__fragments:(0,o.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var y=2e5;function g(e,t,r,n,a,o){var i=h(t),l=n,u=a,c=new s((function(e){var r=e.retain(t);return{dispose:function(){i&&null!=u&&u.unsubscribe(),r.dispose(),o(f)}}})),f={cacheIdentifier:e,id:y++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return l},setValue:function(e){l=e},setNetworkSubscription:function(e){i&&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 t=this;(0,o.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=i.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,o,i){var s=v(this._environment,e,r,n,o);return this.prepareWithIdentifier(s,e,t,r,n,a,i)},t.prepareWithIdentifier=function(e,t,r,n,o,i,s){var l=this._environment,c=null!=n?n:h(t)?d:f,p=null!=o?o:l.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,y=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,t,r,c,p,s,(0,a.default)((0,a.default)({},i),{},{unsubscribe:function(e){null!=m&&m.dispose();var t=null==i?void 0:i.unsubscribe;t&&t(e)}}))),m=v.temporaryRetain(l);var g=v.getValue();if(u(g))throw l.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:y,operation:t,queryAvailability:v.operationAvailability,renderPolicy:p}),g;if(g instanceof Error)throw g;return g},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,o=this._getOrCreateCacheEntry(n,a,null,e,null),i=o.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:o.id}),{dispose:function(){i.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=v(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var o=this._cache.get(e);return null==o&&(o=g(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,o)),o},t._fetchAndSaveQuery=function(e,t,r,n,o,i,s){var u,f,d=this,p=this._environment,v=p.check(t),y=v.status,b="available"===y,_=b||"partial"===o&&"stale"!==y,R=function(){};switch(n){case"store-only":u=!1,f=!0;break;case"store-or-network":u=!b,f=_;break;case"store-and-network":u=!0,f=_;break;default:u=!0,f=!1}if(f){var C=m(t,e),E=g(e,t,v,C,null,this._clearCacheEntry);this._cache.set(e,E)}if(u){var P,x=m(t,e);r.subscribe({start:function(r){P=r;var n=d._cache.get(e);n&&n.setNetworkSubscription(P);var o=null==s?void 0:s.start;o&&o((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){h(t)&&r.unsubscribe()}}))},next:function(){var r=d._getOrCreateCacheEntry(e,t,v,x,P);r.processedPayloadsCount+=1,r.setValue(x),R();var n=null==s?void 0:s.next;null!=n&&n(p.lookup(t.fragment))},error:function(r){var n=d._getOrCreateCacheEntry(e,t,v,r,P);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",t.fragment.node.name,String(r.message)),R(),P=null,n.setNetworkSubscription(null);var a=null==s?void 0:s.error;a&&a(r)},complete:function(){R(),P=null;var t=d._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var F=this._cache.get(e);if(!F){var S=new Promise((function(e){R=e}));S.displayName="Relay("+t.fragment.node.name+")",F=g(e,t,v,S,P,this._clearCacheEntry),this._cache.set(e,F)}}else{var k=null==s?void 0:s.complete;k&&k()}var q=this._cache.get(e);return null==q&&l(!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:q.id,operation:t,profilerContext:i,fetchPolicy:n,renderPolicy:o,queryAvailability:v,shouldFetch:u}),q},e}();function _(e){return new b(e)}var R=p?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var r=_(e);return R.set(e,r),r},getQueryCacheIdentifier:v}},9696:(e,t,r)=>{var n=r(9888),a=r(8156),o=a.useMemo;e.exports=function(e){var t=e.children,r=e.environment,i=e.getEnvironmentForActor,s=o((function(){return{environment:r,getEnvironmentForActor:i}}),[r,i]);return a.createElement(n.Provider,{value:s},t)}},1637:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(4446),o=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null!=t._retainDisposable?(t._retainDisposable.dispose(),t._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 t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,o=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(o,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=o,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=o},9828:(e,t,r)=>{var n=r(428).loadQuery;e.exports=function e(t,r,a){var o=null;null==r.root.getModuleIfRequired()&&(o=r.root.load());var i=r.getPreloadProps(a),s=i.queries,l=i.entryPoints,u=i.extraProps,c={},f={};null!=s&&Object.keys(s).forEach((function(e){var r=s[e];if(null!=r){var a=r.environmentProviderOptions,o=r.options,i=r.parameters,l=r.variables,u=t.getEnvironment(a);c[e]=n(u,i,l,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)}})),null!=l&&Object.keys(l).forEach((function(r){var n=l[r];if(null!=n){var a=n.entryPoint,o=n.entryPointParams;f[r]=e(t,a,o)}}));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,t=r.root.getModuleIfRequired();if(null==t)throw o=null!==(e=o)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},428:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5056),o=r(6658),i=o.__internal.fetchQueryDeduped,s=o.Observable,l=o.PreloadableQueryRegistry,u=o.RelayFeatureFlags,c=o.ReplaySubject,f=o.createOperationDescriptor,d=o.getRequest,p=o.getRequestIdentifier,h=100001;e.exports={loadQuery:function(e,t,r,o,v){var m;h++;var y,g,b,_,R,C,E=null!==(m=null==o?void 0:o.fetchPolicy)&&void 0!==m?m:"store-or-network",P=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),x=!1,F=function(t,r){return x=!0,e.executeWithSource({operation:t,source:r})},S=new c,k=s.create((function(e){return S.subscribe(e)})),q=null,D=!1,w=function(t){var n;D=!0;var a=new c;if(!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+p(t,r);n=i(e,o,(function(){return e.getNetwork().execute(t,r,P)}))}else n=e.getNetwork().execute(t,r,P);var l=n.subscribe({error:function(e){q=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return g=l,s.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),g()}}))},I=function(t,r){!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(D=!0);var n=i(e,t.request.identifier,r).subscribe({error:function(e){S.error(e)},next:function(e){S.next(e)},complete:function(){S.complete()}});b=n.unsubscribe},A=function(t){var n=f(t,r,P);y=e.retain(n),"store-only"!==E&&("store-or-network"!==E||"available"!==e.check(n).status)&&I(n,(function(){var e=w(t.params);return F(n,e)}))};if("PreloadableConcreteRequest"===t.kind){null===(C=(_=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",_.name);var O=l.get(C);if(null!=O)A(O);else{var N="store-only"===E?null:w(_),Q=l.onLoad(C,(function(t){R();var n=f(t,r,P);y=e.retain(n),null!=N&&I(n,(function(){return F(n,N)}))}));R=Q.dispose}}else{var T=d(t);C=null!=(_=T.params).cacheID?_.cacheID:_.id,A(T)}var M=!1,U=!1,L=!1,j=function(){U||(y&&y.dispose(),U=!0)},V=function(){L||(x?b&&b():g&&g(),R&&R(),L=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){M||(j(),V(),M=!0)},releaseQuery:j,cancelNetworkRequest:V,fetchKey:h,id:C,get isDisposed(){return M||U},get networkError(){return q},name:_.name,networkCacheConfig:P,fetchPolicy:E,source:D?k:void 0,variables:r}}}},9175:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=r(1269).getQueryResourceForEnvironment,s=r(5056),l=r(6658),u=l.__internal.fetchQuery,c=l.RelayFeatureFlags,f=l.createOperationDescriptor,d=l.getPendingOperationsForFragment,p=l.getSelector,h=l.getVariablesFromFragment,v=l.handlePotentialSnapshotErrors,m=r(4446);function y(e,t,r,n,o){var s=h(t,r),l=(0,a.default)((0,a.default)({},s),{},{id:n.clientEdgeDestinationID}),c=f(n.request,l,null==o?void 0:o.networkCacheConfig);return i(e).prepare(c,u(e,c),null==o?void 0:o.fetchPolicy)}e.exports=function(e,t,r,n,a,i){var l,u,f=p(t,r),h=!0===(null==t||null===(l=t.metadata)||void 0===l?void 0:l.plural);h?null==r||Array.isArray(r)||s(!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!=i?" for key `".concat(i,"`"):"",t.name,typeof r,t.name):Array.isArray(r)&&s(!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!=i?" for key `".concat(i,"`"):"",t.name,typeof r,t.name),null==r||h&&Array.isArray(r)&&0===r.length||null!=f||s(!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.)",t.name,t.name,n,t.name,null==i?"a fragment reference":"the `".concat(i,"`"),n);var g,b=function(e,t){return null==t?{kind:"bailout"}:"PluralReaderSelector"===t.kind?0===t.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch()}}(e,f),_=null;if(!0===(null===(u=t.metadata)||void 0===u?void 0:u.hasClientEdges)){var R=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(b);if(null!=R&&R.length){_=[];var C,E=(0,o.default)(R);try{for(E.s();!(C=E.n()).done;){var P=C.value;_.push(y(e,t,r,P,a))}}catch(e){E.e(e)}finally{E.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&&s(!1,"refinement, see invariants above");var x="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,F=d(e,t,x);if(F)throw F.promise;!function(e,t){var r,n;if("singular"===t.kind)v(e,t.snapshot.missingRequiredFields,t.snapshot.relayResolverErrors,t.snapshot.errorResponseFields,null!==(r=null===(n=t.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==r&&r);else if("plural"===t.kind){var a,i=(0,o.default)(t.snapshots);try{for(i.s();!(a=i.n()).done;){var s,l,u=a.value;v(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(e,b)}return g="bailout"===b.kind?h?[]:null:"singular"===b.kind?b.snapshot.data:b.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===g||Array.isArray(g)&&g.length>0&&g.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.",t.name,n,n),{data:g,clientEdgeQueries:_}}},5083:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(3899);e.exports=function(e,t,r){return a(e,t,(0,n.default)((0,n.default)({},r),{},{fetchPolicy:"store-only"}))}},529:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(9828),o=r(1743),i=r(8156),s=i.useCallback,l=i.useEffect,u=i.useRef,c=i.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var i,d,p,h,v=null!==(i=null==r||null===(d=r.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==i?i:f,m=null!==(p=null==r||null===(h=r.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==p?p:null,y=o(),g=u(new Set([v])),b=c(v),_=b[0],R=b[1],C=c(m),E=C[0],P=C[1],x=s((function(){if(y.current){var e={kind:"NullEntryPointReference"};g.current.add(e),R(e)}}),[R,y]),F=s((function(r){if(y.current){var n=a(e,t,r);g.current.add(n),R(n),P(r)}}),[e,t,R,y]),S=u(!1);return l((function(){return function(){S.current=!0}}),[]),l((function(){if(!0===S.current)return S.current=!1,void("NullEntryPointReference"!==_.kind&&null!=E&&F(E));var e=g.current;if(y.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===_)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[_,E,F,y]),l((function(){return function(){var e,t=(0,n.default)(g.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===_.kind?null:_,F,x]}},7863:(e,t,r)=>{var n=r(5813),a=r(8156),o=a.useCallback,i=a.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=o((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),a=o((function(r){e.current=r,t.current=!0}),[]),s=o((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:a,disposeFetch:r,completeFetch:s}}},6242:(e,t,r)=>{var n=r(6337),a=r(275),o=r(8156).useDebugValue,i=r(6658).getFragment;e.exports=function(e,t){var r=i(e);a(r,"first argument of useFragment()");var s=n(r,t,"useFragment()");return o({fragment:r.name,data:s}),s}},6337:(e,t,r)=>{var n=r(5275).default,a=n(r(1179)),o=n(r(5931)),i=r(6658);e.exports=function(e,t,r,n){return i.RelayFeatureFlags.ENABLE_USE_FRAGMENT_EXPERIMENTAL?(0,o.default)(e,t,r,n):(0,a.default)(e,t,r,n)}},1179:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=n(r(642)),s=r(1269).getQueryResourceForEnvironment,l=r(2750),u=r(5056),c=r(8156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,h=c.useRef,v=c.useState,m=r(6658),y=m.__internal,g=y.fetchQuery,b=y.getPromiseForActiveRequest,_=m.RelayFeatureFlags,R=m.areEqualSelectors,C=m.createOperationDescriptor,E=m.getPendingOperationsForFragment,P=m.getSelector,x=m.getVariablesFromFragment,F=m.handlePotentialSnapshotErrors,S=m.recycleNodesInto,k=r(4446);function q(e,t){if("bailout"===t.kind)return null;var r=e.getStore().getEpoch();if(r===t.epoch)return null;if("singular"===t.kind){var n=e.lookup(t.snapshot.selector),a=S(t.snapshot.data,n.data),o={data:a,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,missingRequiredFields:n.missingRequiredFields,relayResolverErrors:n.relayResolverErrors,errorResponseFields:n.errorResponseFields};return[a!==t.snapshot.data,{kind:"singular",snapshot:o,epoch:r}]}for(var i=!1,s=[],l=0;l<t.snapshots.length;l++){var c=t.snapshots[l],f=e.lookup(c.selector),d=S(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&&(i=!0),s.push(p)}return s.length!==t.snapshots.length&&u(!1,"Expected same number of snapshots"),[i,{kind:"plural",snapshots:s,epoch:r}]}function D(e,t,r,n,o){var i=x(t,r),l=(0,a.default)((0,a.default)({},i),{},{id:n.clientEdgeDestinationID}),u=C(n.request,l,null==o?void 0:o.networkCacheConfig);return[s(e).prepare(u,g(e,u),null==o?void 0:o.fetchPolicy),b(e,u.request)]}function w(e,t){return null==t?{kind:"bailout"}:"PluralReaderSelector"===t.kind?{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch()}}e.exports=function(e,t,r,n){var a,c,m=p((function(){return P(e,t)}),[e,t]),y=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);y?null==t||Array.isArray(t)||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 t,e.name):Array.isArray(t)&&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 t,e.name),null==t||y&&Array.isArray(t)&&0===t.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,r,e.name,r);var g=l(),b=v((function(){return w(g,m)})),C=b[0],x=b[1],S=C,I=v(S),A=I[0],O=I[1],N=A,Q=v(m),T=Q[0],M=Q[1],U=v(g),L=U[0],j=U[1];if(!R(m,T)||g!==L){M(m),j(g);var V=w(g,m);x(V),O(V),S=V,N=V}var H=h(!1);if(d((function(){H.current=m}),[m]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var B=p((function(){var r,a=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(S),i=[];if(null!=a&&a.length){r=[];var s,l=(0,o.default)(a);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=D(g,e,t,u,n),f=c[0],d=c[1];r.push(f),null!=d&&i.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[r,i]}),[S,g,e,t,n]),K=B[0],G=B[1];if(G.length)throw Promise.all(G);d((function(){var e=s(g);if(null!=K&&K.length){var t,r=[],n=(0,o.default)(K);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.push(e.retain(a))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,t=r;e<t.length;e++)t[e].dispose()}}}),[g,K])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(S)){var W=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingLiveResolverFields)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingLiveResolverFields){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingLiveResolverFields);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(S);if(null!=W&&W.length>0)throw Promise.all(W.map((function(e){var t=e.liveStateID;return g.getStore().getLiveResolverPromise(t)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==L||!H.current||!R(H.current,m)){null==m&&u(!1,"refinement, see invariants above");var z="PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner,Y=E(g,e,z);if(Y)throw Y.promise}}!function(e,t){var r,n;if("singular"===t.kind)F(e,t.snapshot.missingRequiredFields,t.snapshot.relayResolverErrors,t.snapshot.errorResponseFields,null!==(r=null===(n=t.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==r&&r);else if("plural"===t.kind){var a,i=(0,o.default)(t.snapshots);try{for(i.s();!(a=i.n()).done;){var s,l,u=a.value;F(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(g,S);var X,J=h(!1);if(d((function(){var e=N,t=q(g,N);if(null!==t){var r=t[0],n=t[1];r&&x(n),e=n}return function(e,t,r,n){if("bailout"===t.kind)return function(){};if("singular"===t.kind){var a=e.subscribe(t.snapshot,(function(t){r((function(r){if("singular"!==r.kind||r.snapshot.selector!==t.selector){var a=q(e,r);if(null!=a){var o=a[0],i=a[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:o}),n.current=o,o?i:r}return r}return n.current=!0,{kind:"singular",snapshot:t,epoch:e.getStore().getEpoch()}}))}));return function(){a.dispose()}}var s=t.snapshots.map((function(t,a){return e.subscribe(t,(function(t){r((function(r){var o;if("plural"!==r.kind||(null===(o=r.snapshots[a])||void 0===o?void 0:o.selector)!==t.selector){var s=q(e,r);if(null!=s){var l=s[0],u=s[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),n.current=n.current||l,l?u:r}return r}var c=(0,i.default)(r.snapshots);return c[a]=t,n.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,t=(0,o.default)(s);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}}}(g,e,x,J)}),[g,N]),J.current){var Z=q(g,S);if(null!=Z){var $=Z[0],ee=Z[1];$&&(x(ee),S=ee)}J.current=!1}if(y){var te=null==t;X=p((function(){return"bailout"===S.kind?te?null:[]:("plural"!==S.kind&&u(!1,"Expected state to be plural because fragment is plural"),S.snapshots.map((function(e){return e.data})))}),[S,te])}else"bailout"===S.kind?X=null:("singular"!==S.kind&&u(!1,"Expected state to be singular because fragment is singular"),X=S.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===X||Array.isArray(X)&&X.length>0&&X.every((function(e){return void 0===e})))&&k(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),f({fragment:e.name,data:X}),X}},5931:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=n(r(642)),s=r(1269).getQueryResourceForEnvironment,l=r(2750),u=r(5056),c=r(8156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,h=c.useRef,v=c.useState,m=r(6658),y=m.__internal,g=y.fetchQuery,b=y.getPromiseForActiveRequest,_=m.RelayFeatureFlags,R=m.areEqualSelectors,C=m.createOperationDescriptor,E=m.getPendingOperationsForFragment,P=m.getSelector,x=m.getVariablesFromFragment,F=m.handlePotentialSnapshotErrors,S=m.recycleNodesInto,k=r(4446);function q(e,t){if("bailout"===t.kind)return null;var r=e.getStore().getEpoch();if(r===t.epoch)return null;if("singular"===t.kind){var n=e.lookup(t.snapshot.selector),a=S(t.snapshot.data,n.data),o={data:a,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,missingRequiredFields:n.missingRequiredFields,relayResolverErrors:n.relayResolverErrors,errorResponseFields:n.errorResponseFields};return[a!==t.snapshot.data,{kind:"singular",snapshot:o,epoch:r,selector:t.selector,environment:t.environment}]}for(var i=!1,s=[],l=0;l<t.snapshots.length;l++){var c=t.snapshots[l],f=e.lookup(c.selector),d=S(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&&(i=!0),s.push(p)}return s.length!==t.snapshots.length&&u(!1,"Expected same number of snapshots"),[i,{kind:"plural",snapshots:s,epoch:r,selector:t.selector,environment:t.environment}]}function D(e,t,r,n,o){var i=x(t,r),l=(0,a.default)((0,a.default)({},i),{},{id:n.clientEdgeDestinationID}),u=C(n.request,l,null==o?void 0:o.networkCacheConfig);return[s(e).prepare(u,g(e,u),null==o?void 0:o.fetchPolicy),b(e,u.request)]}function w(e,t,r,n){if("bailout"===t.kind)return function(){};if("singular"===t.kind){var a=e.subscribe(t.snapshot,(function(a){r((function(r){var o=null;if("singular"!==r.kind||r.snapshot.selector!==a.selector||r.environment!==e){var i=q(r.environment,r);if(null!=i){var s=i[0],l=i[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),o=s?l:r}else o=r}else o={kind:"singular",snapshot:a,epoch:e.getStore().getEpoch(),selector:t.selector,environment:t.environment};return n.current="singular"===o.kind?o.epoch:null,o}))}));return function(){a.dispose()}}var s=t.snapshots.map((function(a,o){return e.subscribe(a,(function(a){r((function(r){var s,l=null;if("plural"!==r.kind||(null===(s=r.snapshots[o])||void 0===s?void 0:s.selector)!==a.selector||r.environment!==e){var u=q(r.environment,r);if(null!=u){var c=u[0],f=u[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:c}),l=c?f:r}else l=r}else{var d=(0,i.default)(r.snapshots);d[o]=a,l={kind:"plural",snapshots:d,epoch:e.getStore().getEpoch(),selector:t.selector,environment:t.environment}}return n.current="plural"===l.kind?l.epoch:null,l}))}))}));return function(){var e,t=(0,o.default)(s);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}}}function I(e,t){return null==t?{kind:"bailout",environment:e}:"PluralReaderSelector"===t.kind?{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch(),selector:t,environment:e}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch(),selector:t,environment:e}}e.exports=function(e,t,r,n){var a,i,c=p((function(){return P(e,t)}),[e,t]),m=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);m?null==t||Array.isArray(t)||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 t,e.name):Array.isArray(t)&&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 t,e.name),null==t||m&&Array.isArray(t)&&0===t.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,r,e.name,r);var y=l(),g=v((function(){return I(y,c)})),b=g[0],C=g[1],x=b,S=x.environment;if(!R(c,x.selector)||y!==x.environment){var A=I(y,c);C(A),x=A}var O=h(!1);if(d((function(){O.current=c}),[c]),!0===(null===(i=e.metadata)||void 0===i?void 0:i.hasClientEdges)){var N=p((function(){var r,a=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(x),i=[];if(null!=a&&a.length){r=[];var s,l=(0,o.default)(a);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=D(y,e,t,u,n),f=c[0],d=c[1];r.push(f),null!=d&&i.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[r,i]}),[x,y,e,t,n]),Q=N[0],T=N[1];if(T.length)throw Promise.all(T);d((function(){var e=s(y);if(null!=Q&&Q.length){var t,r=[],n=(0,o.default)(Q);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.push(e.retain(a))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,t=r;e<t.length;e++)t[e].dispose()}}}),[y,Q])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(x)){var M=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingLiveResolverFields)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingLiveResolverFields){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingLiveResolverFields);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(x);if(null!=M&&M.length>0)throw Promise.all(M.map((function(e){var t=e.liveStateID;return y.getStore().getLiveResolverPromise(t)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==S||!O.current||!R(O.current,c)){null==c&&u(!1,"refinement, see invariants above");var U="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,L=E(y,e,U);if(L)throw L.promise}}!function(e,t){var r,n;if("singular"===t.kind)F(e,t.snapshot.missingRequiredFields,t.snapshot.relayResolverErrors,t.snapshot.errorResponseFields,null!==(r=null===(n=t.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==r&&r);else if("plural"===t.kind){var a,i=(0,o.default)(t.snapshots);try{for(i.s();!(a=i.n()).done;){var s,l,u=a.value;F(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(y,x);var j,V=h(null),H=h(null);if(d((function(){var e=H.current;if(null!=e){if(x.environment===e.environment&&x.selector===e.selector)return;e.dispose()}if("bailout"!==x.kind){var t=x,r=q(x.environment,x);if(null!==r){var n=r[0],a=r[1];if(n)return void C(a);t=a}var o=w(x.environment,t,C,V);H.current={dispose:o,selector:x.selector,environment:x.environment}}}),[x]),d((function(){if(null==H.current&&"bailout"!==x.kind){var e=w(x.environment,x,C,V);H.current={dispose:e,selector:x.selector,environment:x.environment}}return function(){var e;null===(e=H.current)||void 0===e||e.dispose(),H.current=null}}),[]),null!==V.current&&V.current!==x.epoch){var B=q(y,x);if(null!=B){var K=B[0],G=B[1];K&&(C(G),x=G)}}if(V.current=null,m){var W=null==t;j=p((function(){return"bailout"===x.kind?W?null:[]:("plural"!==x.kind&&u(!1,"Expected state to be plural because fragment is plural"),x.snapshots.map((function(e){return e.data})))}),[x,W])}else"bailout"===x.kind?j=null:("singular"!==x.kind&&u(!1,"Expected state to be singular because fragment is singular"),j=x.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===j||Array.isArray(j)&&j.length>0&&j.every((function(e){return void 0===e})))&&k(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),f({fragment:e.name,data:j}),j}},1743:(e,t,r)=>{var n=r(8156),a=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},5233:(e,t,r)=>{var n=r(2750),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.getObservableForActiveRequest,l=i.getSelector,u=o.useEffect,c=o.useState,f=o.useMemo;e.exports=function(e,t){var r=n(),o=f((function(){var n=l(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),s(r,n.owner))}),[r,e,t]),i=c(null!=o),d=i[0],p=i[1];return u((function(){var e;if(p(null!=o),null!=o){var t=function(){p(!1)};e=o.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[o]),d}},3899:(e,t,r)=>{var n=r(4734),a=r(1061),o=r(2750),i=r(6658).__internal.fetchQuery;e.exports=function(e,t,r){var s=o(),l=a(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:i(s,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},4734:(e,t,r)=>{var n=r(3187),a=r(1269),o=a.getQueryCacheIdentifier,i=a.getQueryResourceForEnvironment,s=r(7863),l=r(6337),u=r(2750),c=r(8156),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=u(),g=f(n),b=i(y),_=p(0),R=_[0],C=_[1],E=s(),P=E.startFetch,x=E.completeFetch,F="".concat(R,"-").concat(null!=v?v:""),S=o(y,t,c,m,F),k=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,t,a,c,m,{start:P,complete:x,error:x},g)})),q=h(!1);d((function(){return function(){q.current=!0}}),[]),d((function(){if(!0===q.current)return q.current=!1,void C((function(e){return e+1}));var e=b.retain(k,g);return function(){e.dispose()}}),[y,S]),d((function(){b.releaseTemporaryRetain(k)}));var D=k.fragmentNode,w=k.fragmentRef;return l(D,w,r)}},9601:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(7863),o=r(1743),i=r(5233),s=r(2750),l=r(5056),u=r(8156),c=u.useCallback,f=u.useEffect,d=u.useState,p=r(6658),h=p.__internal.fetchQuery,v=p.ConnectionInterface,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getRefetchMetadata,b=p.getSelector,_=p.getValueAtPath,R=r(4446);e.exports=function(e){var t=e.direction,r=e.fragmentNode,u=e.fragmentRef,p=e.fragmentIdentifier,C=e.fragmentData,E=e.connectionPathInFragmentData,P=e.paginationRequest,x=e.paginationMetadata,F=e.componentDisplayName,S=e.observer,k=e.onReset,q=s(),D=a(),w=D.isFetchingRef,I=D.startFetch,A=D.disposeFetch,O=D.completeFetch,N=g(r,F).identifierInfo,Q=null!=(null==N?void 0:N.identifierField)&&null!=C&&"object"==typeof C?C[N.identifierField]:null,T=o(),M=d(q),U=M[0],L=M[1],j=d(p),V=j[0],H=j[1],B=i(r,u);(q!==U||p!==V)&&(A(),k(),L(q),H(p));var K=function(e,t,r,n){var a,o,i=v.get(),s=i.EDGES,u=i.PAGE_INFO,c=i.HAS_NEXT_PAGE,f=i.HAS_PREV_PAGE,d=i.END_CURSOR,p=i.START_CURSOR,h=_(r,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&l(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,s,u,h);var m=h[s],y=h[u];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||l(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,s,m),"object"!=typeof y&&l(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,u,y);var g="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(o=y[p])&&void 0!==o?o:null;return null!==g&&"string"!=typeof g&&l(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,p,g),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(t,r,C,E),G=K.cursor,W=K.hasMore;return f((function(){return function(){A()}}),[A]),[c((function(e,a){var o=null==a?void 0:a.onComplete;if(!0!==T.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.",r.name,F),{dispose:function(){}};var i=b(r,u);if(!0===w.current||null==C||B)return null==i&&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.",r.name,F,F),o&&o(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&l(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,F);var s=i.owner.variables,c=i.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),c),p=y(t,e,G,d,(0,n.default)({},f),x);null!=N&&("string"!=typeof Q&&R(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",N.identifierField,Q),p[N.identifierQueryVariableName]=Q);var v=m(P,p,{force:!0});return h(q,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){I(e),S.start&&S.start(e)},complete:function(){O(),S.complete&&S.complete(),o&&o(null)},error:function(e){O(),S.error&&S.error(e),o&&o(e)}})),{dispose:A}}),[q,Q,t,G,I,A,O,w,B,C,r.name,u,F]),W,A]}},1061:(e,t,r)=>{var n=r(6925),a=r(8156),o=r(6658),i=o.createOperationDescriptor,s=o.getRequest,l=a.useMemo;e.exports=function(e,t,r){var a=n(t),o=n(r||{});return l((function(){return i(s(e),a,o)}),[e,a,o])}},6925:(e,t,r)=>{var n=r(9125),a=r(8156).useState;e.exports=function(e){var t=a(e),r=t[0],o=t[1];return n(e,r)?r:(o(e),e)}},3115:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(1743),o=r(2750),i=r(8156),s=r(6658).commitMutation,l=i.useState,u=i.useEffect,c=i.useRef,f=i.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=o(),i=a(),d=c(r),p=c(e),h=c(new Set),v=l(!1),m=v[0],y=v[1],g=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),i.current&&y(h.current.size>0))}),[r,i,e]);return u((function(){d.current===r&&p.current===e||(h.current=new Set,i.current&&y(!1),d.current=r,p.current=e)}),[r,i,e]),[f((function(a){i.current&&y(!0);var o=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;g(o),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;g(o),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;g(o),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(o),o}),[g,t,r,i,e]),m]}},951:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(9601),o=r(3915),i=r(2750),s=r(275),l=r(8156),u=l.useCallback,c=l.useDebugValue,f=l.useState,d=r(6658),p=d.getFragment,h=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var t=i(),r=f(!1),o=r[0],s=r[1],l=function(e){var r,n=null===(r=t.getScheduler())||void 0===r?void 0:r.schedule;n?n((function(){s(e)})):s(e)},u={start:function(){return l(!0)},complete:function(){return l(!1)},error:function(){return l(!1)}},c=a((0,n.default)((0,n.default)({},e),{},{observer:u,onReset:function(){return l(!1)}}));return[c[0],c[1],o,c[2]]}e.exports=function(e,t){var r=p(e);s(r,"first argument of usePaginationFragment()");var a="usePaginationFragment()",i=v(r,a),l=i.connectionPathInFragmentData,f=i.paginationRequest,d=i.paginationMetadata,y=o(r,t,a),g=y.fragmentData,b=y.fragmentRef,_=y.refetch,R=h(r,b),C=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),E=C[0],P=C[1],x=C[2],F=C[3],S=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),k=S[0],q=S[1],D=S[2],w=S[3],I=u((function(e,t){return w(),F(),_(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[w,F,_]);return c({fragment:r.name,data:g,hasNext:q,isLoadingNext:D,hasPrevious:P,isLoadingPrevious:x}),{data:g,loadNext:k,loadPrevious:E,hasNext:q,hasPrevious:P,isLoadingNext:D,isLoadingPrevious:x,refetch:I}}},4617:(e,t,r)=>{var n=r(4734),a=r(1061),o=r(2750),i=r(5056),s=r(8156).useDebugValue,l=r(6658).__internal,u=l.fetchQueryDeduped,c=l.fetchQuery,f=r(4446);e.exports=function(e,t,r){var l,d=o(),p=t.fetchKey,h=t.fetchPolicy,v=t.source,m=t.variables,y=t.networkCacheConfig,g=a(e,m,y);if("PreloadedQuery_DEPRECATED"===t.kind)g.request.node.params.name!==t.name&&i(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",g.request.node.params.name,t.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:u(d,g.request.identifier,(function(){return d===t.environment&&null!=v?d.executeWithSource({operation:g,source:v}):d.execute({operation:g})})),fetchPolicy:h,query:g,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{f(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var b,_=c(d,g);null!=v&&d===t.environment?b=v.ifEmpty(_):d!==t.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=_):b=_,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:p,fetchPolicy:h,query:g,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var R=n(l);return s({query:t.name,variables:t.variables,data:R,fetchKey:p,fetchPolicy:h,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),R}},8876:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(428).loadQuery,o=r(1743),i=r(2750),s=r(8156),l=s.useCallback,u=s.useEffect,c=s.useRef,f=s.useState,d=r(6658).getRequest,p={kind:"NullQueryReference"};function h(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==d(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:p,s=i(),d=o(),v=c(new Set([r])),m=f((function(){return r})),y=m[0],g=m[1],b=f((function(){return r})),_=b[0],R=b[1];r!==_&&(v.current.add(r),R(r),g(r));var C=l((function(){d.current&&(v.current.add(p),g(p))}),[d]),E=l((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(d.current){var o,i=a(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:s,e,t,n);v.current.add(i),g(i)}}),[s,e,g,d]),P=c(!1);return u((function(){return function(){P.current=!0}}),[]),u((function(){if(!0===P.current)return P.current=!1,void("NullQueryReference"!==y.kind&&E(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig}));var t=v.current;if(d.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o===y)break;t.delete(o),"NullQueryReference"!==o.kind&&(h(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[y,d,E,e]),u((function(){return function(){var t,r=(0,n.default)(v.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(h(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===y.kind?null:y,E,C]}},8874:(e,t,r)=>{var n=r(3915),a=r(275),o=r(8156).useDebugValue,i=r(6658).getFragment;e.exports=function(e,t){var r=i(e);a(r,"first argument of useRefetchableFragment()");var s=n(r,t,"useRefetchableFragment()"),l=s.fragmentData,u=s.refetch;return o({fragment:r.name,data:l}),[l,u]}},3915:(e,t,r)=>{var n,a=(0,r(5275).default)(r(6175)),o=r(3187),i=r(1269).getQueryResourceForEnvironment,s=r(9175),l=r(6337),u=r(1743),c=r(8876),f=r(2750),d=r(5056),p=r(8156),h=p.useCallback,v=p.useContext,m=p.useReducer,y=r(6658),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,_=y.getFragmentIdentifier,R=y.getRefetchMetadata,C=y.getSelector,E=y.getValueAtPath,P=r(4446);function x(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n,a){var o=r(6658).Record,i=null==e?void 0:e[null!=n?n:"id"];if(1!==t.length||"node"!==t[0]||null==i)return null;var s=a.getStore().getSource().get(i),l=null==s?null:o.getType(s);return null==l?null:{id:i,typename:l}},checkSameTypeAfterRefetch:function(e,t,n,a){var o=r(6658).Record;if(e){var i=t.getStore().getSource().get(e.id),s=i&&o.getType(i);s!==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,s,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var o=t[r(6658).ID_KEY];null!=o&&o!==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.",o,e.id,n.name,a)}}},e.exports=function(e,t,r){var p=f(),y=R(e,r),F=y.refetchableRequest,S=y.fragmentRefPathInResponse,k=y.identifierInfo,q=_(e,t),D=m(x,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:q,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),w=D[0],I=D[1],A=w.fetchPolicy,O=w.mirroredEnvironment,N=w.mirroredFragmentIdentifier,Q=w.onComplete,T=w.refetchEnvironment,M=w.refetchQuery,U=w.renderPolicy,L=null!=T?T:p,j=i(L),V=v(o),H=L!==O||q!==N,B=c(F),K=B[0],G=B[1],W=B[2],z=t;if(H)I({type:"reset",environment:L,fragmentIdentifier:q}),W();else if(null!=M&&null!=K){var Y;Y=n.getInitialIDAndType(M.request.variables,S,null==k?void 0:k.identifierQueryVariableName,L);var X=function(e){Q&&Q(null!=e?e:null)},J=null!=K.source?K.source:g(L,M),Z=V.wrapPrepareQueryResource((function(){return j.prepare(M,J,A,U,{error:X,complete:function(){n.checkSameTypeAfterRefetch(Y,L,e,r),X()}},K.fetchKey,V)})),$=s(L,Z.fragmentNode,Z.fragmentRef,r).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=E($,S),n.checkSameIDAfterRefetch(Y,z,e,r)}var ee=l(e,z,r),te=function(e,t,r,n,o,i,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,o){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.",i.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`.",i.name,e,e);var s,u,h=null==o?void 0:o.__environment,m=null==o?void 0:o.fetchPolicy,y=null==o?void 0:o.UNSTABLE_renderPolicy,g=null==o?void 0:o.onComplete,_=C(i,f);if(null==_)s={},u={};else if("PluralReaderSelector"===_.kind){var R,E,x,F;s=null!==(R=null===(E=_.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==R?R:{},u=null!==(x=null===(F=_.selectors[0])||void 0===F?void 0:F.variables)&&void 0!==x?x:{}}else s=_.owner.variables,u=_.variables;var S=(0,a.default)((0,a.default)((0,a.default)({},s),u),n);null==l||n.hasOwnProperty(l.identifierQueryVariableName)||("string"!=typeof v&&P(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",l.identifierField,v),S[l.identifierQueryVariableName]=v);var k=b(d,S,{force:!0});return c(k.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:k,renderPolicy:y}),{dispose:r}}),[o,t,r,v,c])}(r,I,W,ee,q,e,0,k,G,t,F);return{fragmentData:ee,fragmentRef:z,refetch:te}}},2750:(e,t,r)=>{var n=r(9888),a=r(5056),o=r(8156).useContext;e.exports=function(){var e=o(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}},275:(e,t,r)=>{var n=r(5813),a=r(4446);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},8050:(e,t,r)=>{var n=r(2750),a=r(8156),o=a.useEffect,i=a.useRef;e.exports=function(e,t){var r=n(),a=i(null),s=Array.from(e).sort().join("");return o((function(){var n=r.getStore(),o=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(o,t);return a.current=i,function(){return i.dispose()}}),[s,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},5746:(e,t,r)=>{var n=r(2750),a=r(8156).useEffect,o=r(6658).requestSubscription;e.exports=function(e,t){var r=null!=t?t:o,i=n();a((function(){return r(i,e).dispose}),[i,e,r])}},5813:(e,t,r)=>{var n=r(8156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},5383:t=>{t.exports=e},5765:e=>{e.exports=t},311:e=>{e.exports=r},4924:e=>{e.exports=n},8296:e=>{e.exports=a},5275:e=>{e.exports=o},6175:e=>{e.exports=i},5264:e=>{e.exports=s},642:e=>{e.exports=l},9125:e=>{e.exports=u},4446:e=>{e.exports=c},5056:e=>{e.exports=f},8156:e=>{e.exports=d},6658:e=>{e.exports=p}},v={};return function e(t){var r=v[t];if(void 0!==r)return r.exports;var n=v[t]={exports:{}};return h[t](n,n.exports,e),n.exports}(5265)})()));
|
4
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),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/assertThisInitialized","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],t):"object"==typeof exports?exports.ReactRelay=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelay=t(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,t,r,n,a,o,i,s,l,u,c,f,d,p)=>(()=>{"use strict";var h={7426:e=>{function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},9888:(e,t,r)=>{var n=r(8156),a=r(6658).__internal.createRelayContext;e.exports=a(n)},7362:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),l=n(r(311)),u=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(3089),f=r(7426).getContainerName,d=r(8827).assertRelayContext,p=r(9125),h=r(8156),v=r(6658),m=v.createFragmentSpecResolver,g=v.getDataIDsFromObject,y=v.isScalarAndEqual;function b(e,t){var r,n=f(e);return r=function(r){function c(e){var a,o;o=r.call(this,e)||this,(0,l.default)((0,i.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:_(t.relayProp.environment)}:null}))}));var s=d(e.__relayContext),u=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,c=m(s,n,t,e,u);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:_(s.environment),resolver:c},o}(0,s.default)(c,r),c.getDerivedStateFromProps=function(e,r){var a,o=r.prevProps,i=d(e.__relayContext),s=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,l=g(t,o),u=g(t,e),c=r.resolver;if(r.prevPropsContext.environment!==i.environment||!p(l,u))return{data:(c=m(i,n,t,e,s)).resolve(),prevPropsContext:i,prevProps:e,relayProp:_(i.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==r.data?{data:f,prevProps:e,prevPropsContext:i,relayProp:_(i.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!y(e[o],this.props[o]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},f.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,u));return h.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp}))},c}(h.Component),(0,l.default)(r,"displayName",n),r}function _(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,b)}}},1428:(e,t,r)=>{var n=r(9888),a=r(7239),o=r(9125),i=r(8156),s=r(6658),l=s.createOperationDescriptor,u=s.deepFreeze,c=s.getRequest,f=i.useLayoutEffect,d=i.useState,p=i.useRef,h=i.useMemo,v={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,s=e.environment,m=e.query,g=e.variables,y=e.render,b=(t=g,r=i.useRef(t),o(r.current,t)||(u(t),r.current=t),r.current),_=h((function(){var e=c(m);return l(e,b)}),[m,b]),R=h((function(){return{environment:s}}),[s]),C=p(null),P=d(null)[1],E=p(null),x=h((function(){s.check(_);var e=s.lookup(_.fragment);C.current=e.data;var t=s.retain(_),r=s.subscribe(e,(function(e){C.current=e.data,P(C.current)})),n=!1;return E.current&&E.current(),E.current=function(){n||(n=!0,E.current=null,t.dispose(),r.dispose())},e}),[s,_]);return f((function(){var e=E.current;return function(){e&&e()}}),[x]),i.createElement(n.Provider,{value:R},i.createElement(a.Provider,{value:v},y({props:C.current})))}},3540:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),l=n(r(311)),u=n(r(6175)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],p=r(3089),h=r(8416),v=r(7426),m=v.getComponentName,g=v.getContainerName,y=r(9888),b=r(733),_=r(8827).assertRelayContext,R=r(9125),C=r(5056),P=r(8156),E=r(6658),x=E.ConnectionInterface,k=E.Observable,S=E.RelayFeatureFlags,F=E.createFragmentSpecResolver,I=E.createOperationDescriptor,q=E.getDataIDsFromObject,D=E.getRequest,w=E.getVariablesFromObject,A=E.isScalarAndEqual,N=r(4446),O="forward";function Q(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return p(e,t,(function(e,t){return function(e,t,r){var n,p=m(e),v=g(e),E=function(e){var t=null,r=!1;for(var n in e){var a=e[n],o=a.metadata&&a.metadata.connection;void 0!==a.metadata&&(r=!0),o&&(1!==o.length&&C(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",n,o.length),t&&C(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,u.default)((0,u.default)({},o[0]),{},{fragmentName:n}))}return r&&null===t&&C(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),T=r.getConnectionFromProps||function(e){var t=e.path;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(r){for(var n=r[e.fragmentName],a=0;a<t.length;a++){if(!n||"object"!=typeof n)return null;n=n[t[a]]}return n}}(E),M=r.direction||E.direction;M||C(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var L=r.getFragmentVariables||function(e){var t=e.count;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,r){return(0,u.default)((0,u.default)({},e),{},(0,l.default)({},t,r))}}(E);return n=function(n){function m(e){var r,a;a=n.call(this,e)||this,(0,l.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){a.setState({data:a._resolver.resolve()})})),(0,l.default)((0,i.default)(a),"_hasMore",(function(){var e=a._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,l.default)((0,i.default)(a),"_isLoading",(function(){return!!a._refetchSubscription})),(0,l.default)((0,i.default)(a),"_refetchConnection",(function(e,t,r){if(!a._canFetchPage("refetchConnection"))return{dispose:function(){}};a._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:a._fetchPage(n,Q(t),{force:!0}).unsubscribe}})),(0,l.default)((0,i.default)(a),"_loadMore",(function(e,t,r){if(!a._canFetchPage("loadMore"))return{dispose:function(){}};var n=Q(t),o=a._getConnectionData();if(!o)return k.create((function(e){return e.complete()})).subscribe(n),null;var i=o.edgeCount+e;if(r&&r.force)return a._refetchConnection(i,t);var s=x.get(),l=s.END_CURSOR,u=s.START_CURSOR,c=o.cursor;N(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",M===O?l:u,c);var f={count:e,cursor:c,totalCount:i};return{dispose:a._fetchPage(f,n,r).unsubscribe}}));var o=_(e.__relayContext),s=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return a._isARequestInFlight=!1,a._refetchSubscription=null,a._refetchVariables=null,!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?a._resolver=F(o,v,t,e,s):a._resolver=F(o,v,t,e,s,a._handleFragmentDataUpdate),a.state={data:a._resolver.resolve(),prevContext:o,contextForChildren:o,relayProp:a._buildRelayProp(o),resolverGeneration:0},a._isUnmounted=!1,a._hasFetched=!1,a}(0,s.default)(m,n);var g=m.prototype;return g.componentDidMount=function(){this._isUnmounted=!1,!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},g.componentDidUpdate=function(e,t){!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},g.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,a=_(e.__relayContext),o=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,i=q(t,this.props),s=q(t,e),l=h(t,this.props),u=h(t,e);a.environment===this.state.prevContext.environment&&R(l,u)&&R(i,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=F(a,v,t,e,o):this._resolver=F(a,v,t,e,o,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:a,contextForChildren:a,relayProp:n._buildRelayProp(a),resolverGeneration:e.resolverGeneration+1}})));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},g.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},g.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!A(e[o],this.props[o]))return!0}return!1},g._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},g._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},g._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},g._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,o.default)(e,c)),r=(0,u.default)((0,u.default)({},t),this.state.data),n=T(r);if(null==n)return null;var a=x.get(),i=a.EDGES,s=a.PAGE_INFO,l=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,h=a.START_CURSOR;"object"!=typeof n&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",p,i,s,n);var v=n[i],m=n[s];if(null==v||null==m)return null;Array.isArray(v)||C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",p,i,v),"object"!=typeof m&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",p,s,m);var g=M===O?m[l]:m[f],y=M===O?m[d]:m[h];return"boolean"!=typeof g||0!==v.length&&void 0===y?(N(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",s,p,M===O?l:f,g,M===O?d:h,y),null):{cursor:y,edgeCount:v.length,hasMore:g}},g._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new b),this._queryFetcher},g._canFetchPage=function(e){return!this._isUnmounted||(N(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,v,e),!1)},g._fetchPage=function(e,n,a){var i,s=this,l=_(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,o.default)(c,f)),v=(0,u.default)((0,u.default)({},d),this.state.data),m=h(t,d);i=w(t,d),i=(0,u.default)((0,u.default)((0,u.default)({},m),i),this._refetchVariables);var g=r.getVariables(v,{count:e.count,cursor:e.cursor},i);("object"!=typeof g||null===g)&&C(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",g,p),g=(0,u.default)((0,u.default)({},g),this._refetchVariables),i=(0,u.default)((0,u.default)({},g),i);var y=a?{force:!!a.force}:void 0;null!=y&&null!=(null==a?void 0:a.metadata)&&(y.metadata=null==a?void 0:a.metadata);var b=D(r.query),P=I(b,g,y),E=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var x=function(){s._refetchSubscription===E&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,E=this._getQueryFetcher().execute({environment:l,operation:P,preservePreviousReferences:!0}).mergeMap((function(t){return k.create((function(t){!function(t,r){var n=s._resolver.resolve();s._resolver.setVariables(L(i,e.totalCount),P.request.node);var a=s._resolver.resolve();R(n,a)?r():s.setState({data:a,contextForChildren:{environment:s.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:x,complete:x,unsubscribe:x}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?E:null,E},g._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},g.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,d));return P.createElement(y.Provider,{value:this.state.contextForChildren},P.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},m}(P.Component),(0,l.default)(n,"displayName",v),n}(e,t,r)}))}}},733:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(5056),o=r(6658),i=o.__internal.fetchQuery,s=o.createOperationDescriptor,l=o.isRelayModernEnvironment,u=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,a=e.preservePreviousReferences,o=void 0!==a&&a,s=r.retain(n),u=function(){t._selectionReferences=t._selectionReferences.concat(s)},c=function(){o||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},f=function(){t._selectionReferences=t._selectionReferences.concat(s)};return l(r)?i(r,n).do({error:u,complete:c,unsubscribe:f}):r.execute({operation:n}).do({error:u,complete:c,unsubscribe:f})},t.setOnDataChange=function(e){this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,a=e.environment,o=e.operation,i=e.onDataChange,l=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:a,onDataChangeCallbacks:u||[],operation:o},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=t?s(o.request.node,o.request.variables,t):o,f=this.execute({environment:a,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:l})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;l?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},l=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var n=this._fetchOptions,o=n.environment,i=n.onDataChangeCallbacks,s=n.operation;if(!this._snapshot&&(this._snapshot=o.lookup(s.fragment),this._rootSubscription=o.subscribe(this._snapshot,(function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach((function(t){return t({snapshot:e})}))}})),this._snapshot&&r&&Array.isArray(i))){var l=this._snapshot;i.forEach((function(e){return e({snapshot:l})}))}},e}();e.exports=u},3701:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5383)),i=n(r(8296)),s=n(r(311)),l=r(9888),u=r(733),c=r(7239),f=r(9125),d=r(8156),p=r(6658),h=p.createOperationDescriptor,v=p.deepFreeze,m=p.getRequest,g={},y={rootIsQueryRenderer:!0},b=function(e){function t(t){var r;r=e.call(this,t)||this,(0,s.default)((0,o.default)(r),"_handleDataChange",(function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState((function(e){var r=e.requestCacheKey;return r&&delete g[r],n===e.snapshot&&t===e.error?null:{renderProps:_(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,i,l={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;i=R(m(c).params,t.variables),n=g[i]?g[i].queryFetcher:new u}else n=new u;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,a.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:l},P(t,n,l,i)),r}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&f(t.prevPropsVariables,e.variables)?null:C(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=C(e.props,t),n=r.requestCacheKey,a=r.queryFetcher;return null!=n&&null!=g[n]&&a.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,a=t.requestCacheKey;a&&delete g[a],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete g[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,a=r.requestCacheKey;a&&(delete g[a],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return v(t),d.createElement(l.Provider,{value:r},d.createElement(c.Provider,{value:y},this.props.render(t)))},t}(d.Component);function _(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var a=r.retry(t);a&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:a}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function R(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function C(e,t){var r,n=e.query,o=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var i=R(m(n).params,e.variables);r=g[i]?g[i].queryFetcher:new u(o)}else r=new u(o);return(0,a.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},P(e,r,t.retryCallbacks))}function P(e,t,r,n){var a=e.environment,o=e.query,i=e.variables,s=e.cacheConfig,l=a;if(!o)return t.dispose(),{error:null,relayContext:{environment:l},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var u=m(o),c=h(u,i,s),f={environment:l};if("string"==typeof n&&g[n]){var d=g[n].snapshot;return d?{error:null,relayContext:f,renderProps:_(null,d,t,r),snapshot:d,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var p=t.lookupInStore(l,c,e.fetchPolicy),v=t.fetch({environment:l,onDataChange:null,operation:c})||p;return n=n||R(u.params,e.variables),g[n]={queryFetcher:t,snapshot:v},v?{error:null,relayContext:f,renderProps:_(null,v,t,r),snapshot:v,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:_(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=b},7239:(e,t,r)=>{var n=r(8156);e.exports=n.createContext({rootIsQueryRenderer:!1})},2427:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(6175)),s=n(r(5383)),l=n(r(8296)),u=n(r(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(3089),d=r(8416),p=r(7426).getContainerName,h=r(9888),v=r(733),m=r(8827).assertRelayContext,g=r(9125),y=r(8156),b=r(6658),_=b.Observable,R=b.createFragmentSpecResolver,C=b.createOperationDescriptor,P=b.getDataIDsFromObject,E=b.getRequest,x=b.getVariablesFromObject,k=b.isScalarAndEqual,S=r(4446);function F(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=p(e);return n=function(n){function p(e){var a,o;o=n.call(this,e)||this,(0,u.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,u.default)((0,s.default)(o),"_refetch",(function(e,n,a,s){if(o._isUnmounted)return S(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",f),{dispose:function(){}};var l=m(o.props.__relayContext).environment,u=d(t,o.props),c="function"==typeof e?e(o._getFragmentVariables()):e;c=(0,i.default)((0,i.default)({},u),c);var p=n?(0,i.default)((0,i.default)({},c),n):c,h=s?{force:!!s.force}:void 0;null!=h&&null!=(null==s?void 0:s.metadata)&&(h.metadata=null==s?void 0:s.metadata);var v,g="function"==typeof a?{next:a,error:a}:a||{},y=E(r),b=C(y,c,h);return o.state.localVariables=c,o._refetchSubscription&&o._refetchSubscription.unsubscribe(),null!=o._getQueryFetcher().lookupInStore(l,b,null==s?void 0:s.fetchPolicy)?(o.state.resolver.setVariables(p,b.request.node),o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){g.next&&g.next(),g.complete&&g.complete()})),{dispose:function(){}}):(o._getQueryFetcher().execute({environment:l,operation:b,preservePreviousReferences:!0}).mergeMap((function(e){return o.state.resolver.setVariables(p,b.request.node),_.create((function(e){return o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){o._refetchSubscription===v&&(o._refetchSubscription=null)})).subscribe((0,i.default)((0,i.default)({},g),{},{start:function(e){o._refetchSubscription=v=e,g.start&&g.start(e)}})),{dispose:function(){v&&v.unsubscribe()}})}));var l=m(e.__relayContext),c=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a;o._refetchSubscription=null;var p=R(l,f,t,e,c);return o.state={data:p.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:F(l.environment,o._refetch),resolver:p},o._isUnmounted=!1,o}(0,l.default)(p,n);var b=p.prototype;return b.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},b.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},p.getDerivedStateFromProps=function(e,r){var n,a=r.prevProps,o=m(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=P(t,a),l=P(t,e),u=d(t,a),c=d(t,e),p=r.resolver;if(r.prevPropsContext.environment!==o.environment||!g(u,c)||!g(s,l))return{data:(p=R(o,f,t,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:F(o.environment,r.relayProp.refetch),resolver:p};r.localVariables||p.setProps(e);var h=p.resolve();return h!==r.data?{data:h,prevProps:e}:null},b.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},b.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!k(e[o],this.props[o]))return!0}return!1},b._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},b._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},b._getFragmentVariables=function(){return x(t,this.props)},b._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},b.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,c)),i=this.state,s=i.relayProp,l=i.contextForChildren;return y.createElement(h.Provider,{value:l},y.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:s})))},p}(y.Component),(0,u.default)(n,"displayName",f),n}(e,t,r)}))}}},8827:(e,t,r)=>{var n=r(645),a=r(5056);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return o(e)||a(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:o}},7074:(e,t,r)=>{var n=r(5056);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var a=t[r];(!a||"object"!=typeof a&&"function"!=typeof a)&&n(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,a)}}},3089:(e,t,r)=>{var n=(0,r(5275).default)(r(4924)),a=r(7074),o=r(7426),i=o.getComponentName,s=o.getContainerName,l=r(9888),u=r(7239),c=r(5056),f=r(8156),d=r(6658).getFragment,p=f.useContext;e.exports=function(e,t,r){var o=s(e);a(i(e),t);var h={};for(var v in t)h[v]=d(t[v]);var m=r(e,h);function g(e,t){var r,a=p(l);null==a&&c(!1,"`%s` tried to render a context that was not valid this means that `%s` was rendered outside of a query renderer.",o,o);var i=p(u);return f.createElement(m,(0,n.default)({},e,{__relayContext:a,__rootIsQueryRenderer:null!==(r=null==i?void 0:i.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}m.displayName=o,g.displayName=o;var y=f.forwardRef(g);return y.__ComponentClass=e,y.displayName=o,y}},8416:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(6658).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(o){var i,s,l,u=e[o],c=t[o],f=a(u,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(i=null===(s=f.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==i?i:{}:null!==(l=null==f?void 0:f.owner.variables)&&void 0!==l?l:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},5265:(e,t,r)=>{var n=r(9888),a=r(7362),o=r(1428),i=r(3540),s=r(3701),l=r(2427),u=r(3158),c=r(9828),f=r(428).loadQuery,d=r(3187),p=r(9696),h=r(5083),v=r(529),m=r(6242),g=r(3899),y=r(3115),b=r(951),_=r(2745),R=r(4617),C=r(8876),P=r(8874),E=r(2750),x=r(8050),k=r(5746),S=r(6658);e.exports={ConnectionHandler:S.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:o,MutationTypes:S.MutationTypes,RangeOperations:S.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:S.applyOptimisticMutation,commitLocalUpdate:S.commitLocalUpdate,commitMutation:S.commitMutation,createFragmentContainer:a.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:S.fetchQuery_DEPRECATED,graphql:S.graphql,readInlineData:S.readInlineData,requestSubscription:S.requestSubscription,EntryPointContainer:u,RelayEnvironmentProvider:p,ProfilerContext:d,fetchQuery:S.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:h,useFragment:m,useLazyLoadQuery:g,useEntryPointLoader:v,useQueryLoader:C,useMutation:y,usePaginationFragment:b,usePreloadedQuery:R,useRefetchableFragment:P,usePrefetchableForwardPaginationFragment_EXPERIMENTAL:_,useRelayEnvironment:E,useSubscribeToInvalidationState:x,useSubscription:k}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},3158:(e,t,r)=>{var n=r(3187),a=r(2750),o=r(8156),i=r(8156),s=i.useContext,l=i.useEffect,u=r(4446);e.exports=function(e){var t=e.entryPointReference,r=e.props;u(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var i=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=i(),v=s(n),m=a();return l((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),o.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:c})}},5093:(e,t,r)=>{var n=r(5056),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},3187:(e,t,r)=>{var n=r(8156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},1269:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(311)),i=r(5093),s=r(1637),l=r(5056),u=r(6658).isPromise,c=r(4446),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,t,r,n,a){var o=null!=r?r:h(t)?d:f,i=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(o,"-").concat(i,"-").concat(t.request.identifier);return null!=a?"".concat(s,"-").concat(a):s}function m(e,t){var r={__id:e.fragment.dataID,__fragments:(0,o.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var g=2e5;function y(e,t,r,n,a,o){var i=h(t),l=n,u=a,c=new s((function(e){var r=e.retain(t);return{dispose:function(){i&&null!=u&&u.unsubscribe(),r.dispose(),o(f)}}})),f={cacheIdentifier:e,id:g++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return l},setValue:function(e){l=e},setNetworkSubscription:function(e){i&&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 t=this;(0,o.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=i.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,o,i){var s=v(this._environment,e,r,n,o);return this.prepareWithIdentifier(s,e,t,r,n,a,i)},t.prepareWithIdentifier=function(e,t,r,n,o,i,s){var l=this._environment,c=null!=n?n:h(t)?d:f,p=null!=o?o:l.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,g=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,t,r,c,p,s,(0,a.default)((0,a.default)({},i),{},{unsubscribe:function(e){null!=m&&m.dispose();var t=null==i?void 0:i.unsubscribe;t&&t(e)}}))),m=v.temporaryRetain(l);var y=v.getValue();if(u(y))throw l.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:g,operation:t,queryAvailability:v.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,o=this._getOrCreateCacheEntry(n,a,null,e,null),i=o.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:o.id}),{dispose:function(){i.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=v(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var o=this._cache.get(e);return null==o&&(o=y(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,o)),o},t._fetchAndSaveQuery=function(e,t,r,n,o,i,s){var u,f,d=this,p=this._environment,v=p.check(t),g=v.status,b="available"===g,_=b||"partial"===o&&"stale"!==g,R=function(){};switch(n){case"store-only":u=!1,f=!0;break;case"store-or-network":u=!b,f=_;break;case"store-and-network":u=!0,f=_;break;default:u=!0,f=!1}if(f){var C=m(t,e),P=y(e,t,v,C,null,this._clearCacheEntry);this._cache.set(e,P)}if(u){var E,x=m(t,e);r.subscribe({start:function(r){E=r;var n=d._cache.get(e);n&&n.setNetworkSubscription(E);var o=null==s?void 0:s.start;o&&o((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){h(t)&&r.unsubscribe()}}))},next:function(){var r=d._getOrCreateCacheEntry(e,t,v,x,E);r.processedPayloadsCount+=1,r.setValue(x),R();var n=null==s?void 0:s.next;null!=n&&n(p.lookup(t.fragment))},error:function(r){var n=d._getOrCreateCacheEntry(e,t,v,r,E);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",t.fragment.node.name,String(r.message)),R(),E=null,n.setNetworkSubscription(null);var a=null==s?void 0:s.error;a&&a(r)},complete:function(){R(),E=null;var t=d._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var k=this._cache.get(e);if(!k){var S=new Promise((function(e){R=e}));S.displayName="Relay("+t.fragment.node.name+")",k=y(e,t,v,S,E,this._clearCacheEntry),this._cache.set(e,k)}}else{var F=null==s?void 0:s.complete;F&&F()}var I=this._cache.get(e);return null==I&&l(!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:I.id,operation:t,profilerContext:i,fetchPolicy:n,renderPolicy:o,queryAvailability:v,shouldFetch:u}),I},e}();function _(e){return new b(e)}var R=p?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var r=_(e);return R.set(e,r),r},getQueryCacheIdentifier:v}},9696:(e,t,r)=>{var n=r(9888),a=r(8156),o=a.useMemo;e.exports=function(e){var t=e.children,r=e.environment,i=e.getEnvironmentForActor,s=o((function(){return{environment:r,getEnvironmentForActor:i}}),[r,i]);return a.createElement(n.Provider,{value:s},t)}},1637:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(4446),o=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null!=t._retainDisposable?(t._retainDisposable.dispose(),t._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 t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,o=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(o,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=o,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=o},3062:(e,t,r)=>{var n=r(5056),a=r(6658),o=a.ConnectionInterface,i=a.getValueAtPath;e.exports=function(e,t,r,a){var s,l,u=o.get(),c=u.EDGES,f=u.PAGE_INFO,d=u.HAS_NEXT_PAGE,p=u.HAS_PREV_PAGE,h=u.END_CURSOR,v=u.START_CURSOR,m=i(r,a);if(null==m)return{cursor:null,hasMore:!1};"object"!=typeof m&&n(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,c,f,m);var g=m[c],y=m[f];if(null==g||null==y)return{cursor:null,hasMore:!1};Array.isArray(g)||n(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,c,g),"object"!=typeof y&&n(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,f,y);var b="forward"===e?null!==(s=y[h])&&void 0!==s?s:null:null!==(l=y[v])&&void 0!==l?l:null;return null!==b&&"string"!=typeof b&&n(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,v,b),{cursor:b,hasMore:"forward"===e?null!=b&&!0===y[d]:null!=b&&!0===y[p]}}},9828:(e,t,r)=>{var n=r(428).loadQuery;e.exports=function e(t,r,a){var o=null;null==r.root.getModuleIfRequired()&&(o=r.root.load());var i=r.getPreloadProps(a),s=i.queries,l=i.entryPoints,u=i.extraProps,c={},f={};null!=s&&Object.keys(s).forEach((function(e){var r=s[e];if(null!=r){var a=r.environmentProviderOptions,o=r.options,i=r.parameters,l=r.variables,u=t.getEnvironment(a);c[e]=n(u,i,l,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)}})),null!=l&&Object.keys(l).forEach((function(r){var n=l[r];if(null!=n){var a=n.entryPoint,o=n.entryPointParams;f[r]=e(t,a,o)}}));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,t=r.root.getModuleIfRequired();if(null==t)throw o=null!==(e=o)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},428:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5056),o=r(6658),i=o.__internal.fetchQueryDeduped,s=o.Observable,l=o.PreloadableQueryRegistry,u=o.ReplaySubject,c=o.createOperationDescriptor,f=o.getRequest,d=o.getRequestIdentifier,p=100001;e.exports={loadQuery:function(e,t,r,o,h){var v;p++;var m,g,y,b,_,R,C=null!==(v=null==o?void 0:o.fetchPolicy)&&void 0!==v?v:"store-or-network",P=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),E=!1,x=function(t,r){return E=!0,e.executeWithSource({operation:t,source:r})},k=new u,S=s.create((function(e){return k.subscribe(e)})),F=null,I=!1,q=function(t){I=!0;var n=new u,a="raw-network-request-"+d(t,r),o=i(e,a,(function(){return e.getNetwork().execute(t,r,P)})).subscribe({error:function(e){F=e,n.error(e)},next:function(e){n.next(e)},complete:function(){n.complete()}}).unsubscribe;return g=o,s.create((function(e){var t=n.subscribe(e);return function(){t.unsubscribe(),g()}}))},D=function(t,r){I=!0;var n=i(e,t.request.identifier,r).subscribe({error:function(e){k.error(e)},next:function(e){k.next(e)},complete:function(){k.complete()}});y=n.unsubscribe},w=function(t){var n=c(t,r,P);m=e.retain(n),"store-only"!==C&&("store-or-network"!==C||"available"!==e.check(n).status)&&D(n,(function(){var e=q(t.params);return x(n,e)}))};if("PreloadableConcreteRequest"===t.kind){null===(R=(b=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",b.name);var A=l.get(R);if(null!=A)w(A);else{var N="store-only"===C?null:q(b),O=l.onLoad(R,(function(t){_();var n=c(t,r,P);m=e.retain(n),null!=N&&D(n,(function(){return x(n,N)}))}));_=O.dispose}}else{var Q=f(t);R=null!=(b=Q.params).cacheID?b.cacheID:b.id,w(Q)}var T=!1,M=!1,L=!1,U=function(){M||(m&&m.dispose(),M=!0)},j=function(){L||(E?y&&y():g&&g(),_&&_(),L=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){T||(U(),j(),T=!0)},releaseQuery:U,cancelNetworkRequest:j,fetchKey:p,id:R,get isDisposed(){return T||M},get networkError(){return F},name:b.name,networkCacheConfig:P,fetchPolicy:C,source:I?S:void 0,variables:r}}}},9175:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=r(1269).getQueryResourceForEnvironment,s=r(5056),l=r(6658),u=l.__internal.fetchQuery,c=l.RelayFeatureFlags,f=l.createOperationDescriptor,d=l.getPendingOperationsForFragment,p=l.getSelector,h=l.getVariablesFromFragment,v=l.handlePotentialSnapshotErrors,m=r(4446);function g(e,t,r,n,o){var s=h(t,r),l=(0,a.default)((0,a.default)({},s),{},{id:n.clientEdgeDestinationID}),c=f(n.request,l,null==o?void 0:o.networkCacheConfig);return i(e).prepare(c,u(e,c),null==o?void 0:o.fetchPolicy)}e.exports=function(e,t,r,n,a,i){var l,u,f=p(t,r),h=!0===(null==t||null===(l=t.metadata)||void 0===l?void 0:l.plural);h?null==r||Array.isArray(r)||s(!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!=i?" for key `".concat(i,"`"):"",t.name,typeof r,t.name):Array.isArray(r)&&s(!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!=i?" for key `".concat(i,"`"):"",t.name,typeof r,t.name),null==r||h&&Array.isArray(r)&&0===r.length||null!=f||s(!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.)",t.name,t.name,n,t.name,null==i?"a fragment reference":"the `".concat(i,"`"),n);var y,b=function(e,t){return null==t?{kind:"bailout"}:"PluralReaderSelector"===t.kind?0===t.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch()}}(e,f),_=null;if(!0===(null===(u=t.metadata)||void 0===u?void 0:u.hasClientEdges)){var R=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(b);if(null!=R&&R.length){_=[];var C,P=(0,o.default)(R);try{for(P.s();!(C=P.n()).done;){var E=C.value;_.push(g(e,t,r,E,a))}}catch(e){P.e(e)}finally{P.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&&s(!1,"refinement, see invariants above");var x="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,k=d(e,t,x);if(k)throw k.promise;!function(e,t){if("singular"===t.kind)v(e,t.snapshot.errorResponseFields);else if("plural"===t.kind){var r,n=(0,o.default)(t.snapshots);try{for(n.s();!(r=n.n()).done;){var a=r.value;v(e,a.errorResponseFields)}}catch(e){n.e(e)}finally{n.f()}}}(e,b)}return y="bailout"===b.kind?h?[]:null:"singular"===b.kind?b.snapshot.data:b.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(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.",t.name,n,n),{data:y,clientEdgeQueries:_}}},5083:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(3899);e.exports=function(e,t,r){return a(e,t,(0,n.default)((0,n.default)({},r),{},{fetchPolicy:"store-only"}))}},529:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(9828),o=r(1743),i=r(8156),s=i.useCallback,l=i.useEffect,u=i.useRef,c=i.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var i,d,p,h,v=null!==(i=null==r||null===(d=r.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==i?i:f,m=null!==(p=null==r||null===(h=r.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==p?p:null,g=o(),y=u(new Set([v])),b=c(v),_=b[0],R=b[1],C=c(m),P=C[0],E=C[1],x=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};y.current.add(e),R(e)}}),[R,g]),k=s((function(r){if(g.current){var n=a(e,t,r);y.current.add(n),R(n),E(r)}}),[e,t,R,g]),S=u(!1);return l((function(){return function(){S.current=!0}}),[]),l((function(){if(!0===S.current)return S.current=!1,void("NullEntryPointReference"!==_.kind&&null!=P&&k(P));var e=y.current;if(g.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===_)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[_,P,k,g]),l((function(){return function(){var e,t=(0,n.default)(y.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===_.kind?null:_,k,x]}},7863:(e,t,r)=>{var n=r(5813),a=r(8156),o=a.useCallback,i=a.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=o((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),a=o((function(r){e.current=r,t.current=!0}),[]),s=o((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:a,disposeFetch:r,completeFetch:s}}},6242:(e,t,r)=>{var n=r(6337),a=r(275),o=r(8156).useDebugValue,i=r(6658).getFragment;e.exports=function(e,t){var r=i(e);a(r,"first argument of useFragment()");var s=n(r,t,"useFragment()");return o({fragment:r.name,data:s}),s}},6337:(e,t,r)=>{var n=r(5275).default,a=n(r(1179)),o=n(r(5931)),i=r(6658);e.exports=function(e,t,r,n){return i.RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY?(0,o.default)(e,t,r,n):(0,a.default)(e,t,r,n)}},1179:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=n(r(642)),s=r(1269).getQueryResourceForEnvironment,l=r(2750),u=r(5056),c=r(8156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,h=c.useRef,v=c.useState,m=r(6658),g=m.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,_=m.RelayFeatureFlags,R=m.areEqualSelectors,C=m.createOperationDescriptor,P=m.getPendingOperationsForFragment,E=m.getSelector,x=m.getVariablesFromFragment,k=m.handlePotentialSnapshotErrors,S=m.recycleNodesInto,F=r(4446);function I(e,t){if("bailout"===t.kind)return null;var r=e.getStore().getEpoch();if(r===t.epoch)return null;if("singular"===t.kind){var n=e.lookup(t.snapshot.selector),a=S(t.snapshot.data,n.data),o={data:a,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,errorResponseFields:n.errorResponseFields};return[a!==t.snapshot.data,{kind:"singular",snapshot:o,epoch:r}]}for(var i=!1,s=[],l=0;l<t.snapshots.length;l++){var c=t.snapshots[l],f=e.lookup(c.selector),d=S(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,errorResponseFields:f.errorResponseFields};d!==c.data&&(i=!0),s.push(p)}return s.length!==t.snapshots.length&&u(!1,"Expected same number of snapshots"),[i,{kind:"plural",snapshots:s,epoch:r}]}function q(e,t,r,n,o){var i=x(t,r),l=(0,a.default)((0,a.default)({},i),{},{id:n.clientEdgeDestinationID}),u=C(n.request,l,null==o?void 0:o.networkCacheConfig);return[s(e).prepare(u,y(e,u),null==o?void 0:o.fetchPolicy),b(e,u.request)]}function D(e,t){return null==t?{kind:"bailout"}:"PluralReaderSelector"===t.kind?{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch()}}e.exports=function(e,t,r,n){var a,c,m=p((function(){return E(e,t)}),[e,t]),g=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);g?null==t||Array.isArray(t)||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 t,e.name):Array.isArray(t)&&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 t,e.name),null==t||g&&Array.isArray(t)&&0===t.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,r,e.name,r);var y=l(),b=v((function(){return D(y,m)})),C=b[0],x=b[1],S=C,w=v(S),A=w[0],N=w[1],O=A,Q=v(m),T=Q[0],M=Q[1],L=v(y),U=L[0],j=L[1];if(!R(m,T)||y!==U){M(m),j(y);var V=D(y,m);x(V),N(V),S=V,O=V}var B=h(!1);if(d((function(){B.current=m}),[m]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var H=p((function(){var r,a=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(S),i=[];if(null!=a&&a.length){r=[];var s,l=(0,o.default)(a);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=q(y,e,t,u,n),f=c[0],d=c[1];r.push(f),null!=d&&i.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[r,i]}),[S,y,e,t,n]),K=H[0],W=H[1];if(W.length)throw Promise.all(W);d((function(){var e=s(y);if(null!=K&&K.length){var t,r=[],n=(0,o.default)(K);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.push(e.retain(a))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,t=r;e<t.length;e++)t[e].dispose()}}}),[y,K])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(S)){var G=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingLiveResolverFields)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingLiveResolverFields){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingLiveResolverFields);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(S);if(null!=G&&G.length>0)throw Promise.all(G.map((function(e){return y.getStore().getLiveResolverPromise(e)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==U||!B.current||!R(B.current,m)){null==m&&u(!1,"refinement, see invariants above");var z="PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner,Y=P(y,e,z);if(Y)throw Y.promise}}!function(e,t){if("singular"===t.kind)k(e,t.snapshot.errorResponseFields);else if("plural"===t.kind){var r,n=(0,o.default)(t.snapshots);try{for(n.s();!(r=n.n()).done;){var a=r.value;k(e,a.errorResponseFields)}}catch(e){n.e(e)}finally{n.f()}}}(y,S);var X,J=h(!1);if(d((function(){var e=O,t=I(y,O);if(null!==t){var r=t[0],n=t[1];r&&x(n),e=n}return function(e,t,r,n){if("bailout"===t.kind)return function(){};if("singular"===t.kind){var a=e.subscribe(t.snapshot,(function(t){r((function(r){if("singular"!==r.kind||r.snapshot.selector!==t.selector){var a=I(e,r);if(null!=a){var o=a[0],i=a[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:o}),n.current=o,o?i:r}return r}return n.current=!0,{kind:"singular",snapshot:t,epoch:e.getStore().getEpoch()}}))}));return function(){a.dispose()}}var s=t.snapshots.map((function(t,a){return e.subscribe(t,(function(t){r((function(r){var o;if("plural"!==r.kind||(null===(o=r.snapshots[a])||void 0===o?void 0:o.selector)!==t.selector){var s=I(e,r);if(null!=s){var l=s[0],u=s[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),n.current=n.current||l,l?u:r}return r}var c=(0,i.default)(r.snapshots);return c[a]=t,n.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,t=(0,o.default)(s);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}}}(y,e,x,J)}),[y,O]),J.current){var Z=I(y,S);if(null!=Z){var $=Z[0],ee=Z[1];$&&(x(ee),S=ee)}J.current=!1}if(g){var te=null==t;X=p((function(){return"bailout"===S.kind?te?null:[]:("plural"!==S.kind&&u(!1,"Expected state to be plural because fragment is plural"),S.snapshots.map((function(e){return e.data})))}),[S,te])}else"bailout"===S.kind?X=null:("singular"!==S.kind&&u(!1,"Expected state to be singular because fragment is singular"),X=S.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===X||Array.isArray(X)&&X.length>0&&X.every((function(e){return void 0===e})))&&F(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),f({fragment:e.name,data:X}),X}},5931:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=n(r(642)),s=r(1269).getQueryResourceForEnvironment,l=r(2750),u=r(5056),c=r(8156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,h=c.useRef,v=c.useState,m=r(6658),g=m.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,_=m.RelayFeatureFlags,R=m.areEqualSelectors,C=m.createOperationDescriptor,P=m.getPendingOperationsForFragment,E=m.getSelector,x=m.getVariablesFromFragment,k=m.handlePotentialSnapshotErrors,S=m.recycleNodesInto,F=r(4446);function I(e,t){if("bailout"===t.kind)return null;var r=e.getStore().getEpoch();if(r===t.epoch)return null;if("singular"===t.kind){var n=e.lookup(t.snapshot.selector),a=S(t.snapshot.data,n.data),o={data:a,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,errorResponseFields:n.errorResponseFields};return[a!==t.snapshot.data,{kind:"singular",snapshot:o,epoch:r,selector:t.selector,environment:t.environment}]}for(var i=!1,s=[],l=0;l<t.snapshots.length;l++){var c=t.snapshots[l],f=e.lookup(c.selector),d=S(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,errorResponseFields:f.errorResponseFields};d!==c.data&&(i=!0),s.push(p)}return s.length!==t.snapshots.length&&u(!1,"Expected same number of snapshots"),[i,{kind:"plural",snapshots:s,epoch:r,selector:t.selector,environment:t.environment}]}function q(e,t,r,n,o){var i=x(t,r),l=(0,a.default)((0,a.default)({},i),{},{id:n.clientEdgeDestinationID}),u=C(n.request,l,null==o?void 0:o.networkCacheConfig);return[s(e).prepare(u,y(e,u),null==o?void 0:o.fetchPolicy),b(e,u.request)]}function D(e,t,r){if("bailout"===t.kind)return function(){};if("singular"===t.kind){var n=e.subscribe(t.snapshot,(function(n){r((function(r){var a=null;if("singular"!==r.kind||r.snapshot.selector!==n.selector||r.environment!==e){var o=I(r.environment,r);if(null!=o){var i=o[0],s=o[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:i}),a=i?s:r}else a=r}else a={kind:"singular",snapshot:n,epoch:e.getStore().getEpoch(),selector:t.selector,environment:t.environment};return a}))}));return function(){n.dispose()}}var a=t.snapshots.map((function(n,a){return e.subscribe(n,(function(n){r((function(r){var o,s=null;if("plural"!==r.kind||(null===(o=r.snapshots[a])||void 0===o?void 0:o.selector)!==n.selector||r.environment!==e){var l=I(r.environment,r);if(null!=l){var u=l[0],c=l[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:u}),s=u?c:r}else s=r}else{var f=(0,i.default)(r.snapshots);f[a]=n,s={kind:"plural",snapshots:f,epoch:e.getStore().getEpoch(),selector:t.selector,environment:t.environment}}return s}))}))}));return function(){var e,t=(0,o.default)(a);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}}}function w(e,t){return null==t?{kind:"bailout",environment:e}:"PluralReaderSelector"===t.kind?{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch(),selector:t,environment:e}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch(),selector:t,environment:e}}e.exports=function(e,t,r,n){var a,i,c=p((function(){return E(e,t)}),[e,t]),m=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);m?null==t||Array.isArray(t)||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 t,e.name):Array.isArray(t)&&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 t,e.name),null==t||m&&Array.isArray(t)&&0===t.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,r,e.name,r);var g=l(),y=v((function(){return w(g,c)})),b=y[0],C=y[1],x=b,S=x.environment;if(!R(c,x.selector)||g!==x.environment){var A=w(g,c);C(A),x=A}var N=h(!1);if(d((function(){N.current=c}),[c]),!0===(null===(i=e.metadata)||void 0===i?void 0:i.hasClientEdges)){var O=p((function(){var r,a=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(x),i=[];if(null!=a&&a.length){r=[];var s,l=(0,o.default)(a);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=q(g,e,t,u,n),f=c[0],d=c[1];r.push(f),null!=d&&i.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[r,i]}),[x,g,e,t,n]),Q=O[0],T=O[1];if(T.length)throw Promise.all(T);d((function(){var e=s(g);if(null!=Q&&Q.length){var t,r=[],n=(0,o.default)(Q);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.push(e.retain(a))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,t=r;e<t.length;e++)t[e].dispose()}}}),[g,Q])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(x)){var M=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingLiveResolverFields)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingLiveResolverFields){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingLiveResolverFields);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(x);if(null!=M&&M.length>0)throw Promise.all(M.map((function(e){return g.getStore().getLiveResolverPromise(e)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==S||!N.current||!R(N.current,c)){null==c&&u(!1,"refinement, see invariants above");var L="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,U=P(g,e,L);if(U)throw U.promise}}!function(e,t){if("singular"===t.kind)k(e,t.snapshot.errorResponseFields);else if("plural"===t.kind){var r,n=(0,o.default)(t.snapshots);try{for(n.s();!(r=n.n()).done;){var a=r.value;k(e,a.errorResponseFields)}}catch(e){n.e(e)}finally{n.f()}}}(g,x);var j,V=h(null);if(d((function(){var e=V.current;if(null!=e){if(x.environment===e.environment&&x.selector===e.selector)return;e.dispose()}if("bailout"!==x.kind){var t=x,r=I(x.environment,x);if(null!==r){var n=r[0],a=r[1];if(n)return void C(a);t=a}var o=D(x.environment,t,C);V.current={dispose:o,selector:x.selector,environment:x.environment}}}),[x]),d((function(){if(null==V.current&&"bailout"!==x.kind){var e=D(x.environment,x,C);V.current={dispose:e,selector:x.selector,environment:x.environment}}return function(){var e;null===(e=V.current)||void 0===e||e.dispose(),V.current=null}}),[]),m){var B=null==t;j=p((function(){return"bailout"===x.kind?B?null:[]:("plural"!==x.kind&&u(!1,"Expected state to be plural because fragment is plural"),x.snapshots.map((function(e){return e.data})))}),[x,B])}else"bailout"===x.kind?j=null:("singular"!==x.kind&&u(!1,"Expected state to be singular because fragment is singular"),j=x.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===j||Array.isArray(j)&&j.length>0&&j.every((function(e){return void 0===e})))&&F(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),f({fragment:e.name,data:j}),j}},1743:(e,t,r)=>{var n=r(8156),a=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},5233:(e,t,r)=>{var n=r(2750),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.getObservableForActiveRequest,l=i.getSelector,u=o.useEffect,c=o.useState,f=o.useMemo;e.exports=function(e,t){var r=n(),o=f((function(){var n=l(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),s(r,n.owner))}),[r,e,t]),i=c(null!=o),d=i[0],p=i[1];return u((function(){var e;if(p(null!=o),null!=o){var t=function(){p(!1)};e=o.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[o]),d}},3899:(e,t,r)=>{var n=r(4734),a=r(1061),o=r(2750),i=r(6658).__internal.fetchQuery;e.exports=function(e,t,r){var s=o(),l=a(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:i(s,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},4734:(e,t,r)=>{var n=r(3187),a=r(1269),o=a.getQueryCacheIdentifier,i=a.getQueryResourceForEnvironment,s=r(7863),l=r(6337),u=r(2750),c=r(8156),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,g=u(),y=f(n),b=i(g),_=p(0),R=_[0],C=_[1],P=s(),E=P.startFetch,x=P.completeFetch,k="".concat(R,"-").concat(null!=v?v:""),S=o(g,t,c,m,k),F=y.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,t,a,c,m,{start:E,complete:x,error:x},y)})),I=h(!1);d((function(){return function(){I.current=!0}}),[]),d((function(){if(!0===I.current)return I.current=!1,void C((function(e){return e+1}));var e=b.retain(F,y);return function(){e.dispose()}}),[g,S]),d((function(){b.releaseTemporaryRetain(F)}));var q=F.fragmentNode,D=F.fragmentRef;return l(q,D,r)}},9601:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(3062),o=r(7863),i=r(1743),s=r(5233),l=r(4607),u=r(2750),c=r(5056),f=r(8156),d=f.useCallback,p=f.useEffect,h=f.useState,v=r(6658),m=v.__internal.fetchQuery,g=v.RelayFeatureFlags,y=v.createOperationDescriptor,b=v.getPaginationVariables,_=v.getRefetchMetadata,R=v.getSelector,C=r(4446);e.exports=function(e){return g.ENABLE_ACTIVITY_COMPATIBILITY?l(e):function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,f=e.fragmentIdentifier,v=e.fragmentData,g=e.connectionPathInFragmentData,P=e.paginationRequest,E=e.paginationMetadata,x=e.componentDisplayName,k=e.observer,S=e.onReset,F=u(),I=o(),q=I.isFetchingRef,D=I.startFetch,w=I.disposeFetch,A=I.completeFetch,N=_(r,x).identifierInfo,O=null!=(null==N?void 0:N.identifierField)&&null!=v&&"object"==typeof v?v[N.identifierField]:null,Q=i(),T=h(F),M=T[0],L=T[1],U=h(f),j=U[0],V=U[1],B=s(r,l);F===M&&f===j||(w(),S(),L(F),V(f));var H=a(t,r,v,g),K=H.cursor,W=H.hasMore;return p((function(){return function(){w()}}),[w]),[d((function(e,a){var o=null==a?void 0:a.onComplete;if(!0!==Q.current)return C(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,x),{dispose:function(){}};var i=R(r,l);if(!0===q.current||null==v||B)return null==i&&C(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,x,x),o&&o(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&c(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,x);var s=i.owner.variables,u=i.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),u),p=b(t,e,K,d,(0,n.default)({},f),E);null!=N&&("string"!=typeof O&&C(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",N.identifierField,O),p[N.identifierQueryVariableName]=O);var h=y(P,p,{force:!0});return m(F,h).subscribe((0,n.default)((0,n.default)({},k),{},{start:function(e){D(e),k.start&&k.start(e)},complete:function(){A(),k.complete&&k.complete(),o&&o(null)},error:function(e){A(),k.error&&k.error(e),o&&o(e)}})),{dispose:w}}),[F,O,t,K,D,w,A,q,B,v,r.name,l,x]),W,w]}(e)}},4607:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(3062),o=r(1743),i=r(5233),s=r(2750),l=r(5056),u=r(8156),c=u.useCallback,f=u.useRef,d=u.useState,p=r(6658),h=p.__internal.fetchQuery,v=p.createOperationDescriptor,m=p.getPaginationVariables,g=p.getRefetchMetadata,y=p.getSelector,b=r(4446);e.exports=function(e){var t=e.direction,r=e.fragmentNode,u=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,R=e.connectionPathInFragmentData,C=e.paginationRequest,P=e.paginationMetadata,E=e.componentDisplayName,x=e.observer,k=e.onReset,S=s(),F=g(r,E).identifierInfo,I=null!=(null==F?void 0:F.identifierField)&&null!=_&&"object"==typeof _?_[F.identifierField]:null,q=f({kind:"none"}),D=d(S),w=D[0],A=D[1],N=d(p),O=N[0],Q=N[1],T=i(r,u),M=c((function(){"fetching"===q.current.kind&&q.current.subscription.unsubscribe(),q.current={kind:"none"}}),[]);(S!==w||p!==O)&&(M(),k(),A(S),Q(p));var L=a(t,r,_,R),U=L.cursor,j=L.hasMore,V=o();return[c((function(e,a){var o=null==a?void 0:a.onComplete;if(!0!==V.current)return b(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,E),{dispose:function(){}};var i=y(r,u);if("fetching"===q.current.kind||null==_||T)return null==i&&b(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,E,E),o&&o(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&l(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,E);var s=i.owner.variables,c=i.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),c),p=m(t,e,U,d,(0,n.default)({},f),P);null!=F&&("string"!=typeof I&&b(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",F.identifierField,I),p[F.identifierQueryVariableName]=I);var g=v(C,p,{force:!0});return h(S,g).subscribe((0,n.default)((0,n.default)({},x),{},{start:function(e){q.current={kind:"fetching",subscription:e},x.start&&x.start(e)},complete:function(){q.current={kind:"none"},x.complete&&x.complete(),o&&o(null)},error:function(e){q.current={kind:"none"},x.complete&&x.complete(),o&&o(e)}})),{dispose:function(){}}}),[S,I,t,U,T,_,r.name,u,E]),j,M]}},1061:(e,t,r)=>{var n=r(6925),a=r(8156),o=r(6658),i=o.createOperationDescriptor,s=o.getRequest,l=a.useMemo;e.exports=function(e,t,r){var a=n(t),o=n(r||{});return l((function(){return i(s(e),a,o)}),[e,a,o])}},6925:(e,t,r)=>{var n=r(9125),a=r(8156).useState;e.exports=function(e){var t=a(e),r=t[0],o=t[1];return n(e,r)?r:(o(e),e)}},3115:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(1743),o=r(2750),i=r(8156),s=r(6658).commitMutation,l=i.useState,u=i.useEffect,c=i.useRef,f=i.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=o(),i=a(),d=c(r),p=c(e),h=c(new Set),v=l(!1),m=v[0],g=v[1],y=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),i.current&&g(h.current.size>0))}),[r,i,e]);return u((function(){d.current===r&&p.current===e||(h.current=new Set,i.current&&g(!1),d.current=r,p.current=e)}),[r,i,e]),[f((function(a){i.current&&g(!0);var o=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;y(o),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;y(o),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;y(o),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(o),o}),[y,t,r,i,e]),m]}},951:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(9601),o=r(3915),i=r(2750),s=r(275),l=r(8156),u=l.useCallback,c=l.useDebugValue,f=l.useState,d=r(6658),p=d.getFragment,h=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var t=i(),r=f(!1),o=r[0],s=r[1],l=function(e){var r,n=null===(r=t.getScheduler())||void 0===r?void 0:r.schedule;n?n((function(){s(e)})):s(e)},u={start:function(){return l(!0)},complete:function(){return l(!1)},error:function(){return l(!1)}},c=a((0,n.default)((0,n.default)({},e),{},{observer:u,onReset:function(){return l(!1)}}));return[c[0],c[1],o,c[2]]}e.exports=function(e,t){var r=p(e);s(r,"first argument of usePaginationFragment()");var a="usePaginationFragment()",i=v(r,a),l=i.connectionPathInFragmentData,f=i.paginationRequest,d=i.paginationMetadata,g=o(r,t,a),y=g.fragmentData,b=g.fragmentRef,_=g.refetch,R=h(r,b),C=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"backward",fragmentData:y,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),P=C[0],E=C[1],x=C[2],k=C[3],S=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"forward",fragmentData:y,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),F=S[0],I=S[1],q=S[2],D=S[3],w=u((function(e,t){return D(),k(),_(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[D,k,_]);return c({fragment:r.name,data:y,hasNext:I,isLoadingNext:q,hasPrevious:E,isLoadingPrevious:x}),{data:y,loadNext:F,loadPrevious:P,hasNext:I,hasPrevious:E,isLoadingNext:q,isLoadingPrevious:x,refetch:w}}},2745:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(6242),o=r(9601),i=r(3915),s=r(2750),l=r(275),u=r(5056),c=r(8156),f=c.useCallback,d=c.useDebugValue,p=c.useEffect,h=c.useLayoutEffect,v=c.useMemo,m=c.useRef,g=c.useState,y=r(6658),b=y.getFragment,_=y.getFragmentIdentifier,R=y.getPaginationMetadata,C=r(6658),P=C.ConnectionInterface,E=C.getSelector,x=C.getValueAtPath;e.exports=function(e,t,r,c,y){var C,k,S=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,F=b(e);l(F,"first argument of usePrefetchableForwardPaginationFragment_EXPERIMENTAL()");var I="usePrefetchableForwardPaginationFragment_EXPERIMENTAL()",q=R(F,I),D=q.connectionPathInFragmentData,w=q.paginationRequest,A=q.paginationMetadata,N=i(F,t,I),O=N.fragmentData,Q=N.fragmentRef,T=N.refetch,M=_(F,Q),L=v((function(){var e=x(O,D);return null==e?null:e[P.get().EDGES]}),[D,O]),U=null==L?-1:L.length,j=g(null!=c?c:U),V=j[0],B=j[1],H=V;-1===V&&-1!==U&&B(H=null!=c?c:U);var K=s(),W=g(!1),G=W[0],z=W[1],Y=g(!1),X=Y[0],J=Y[1],Z=m(0),$=f((function(e){var t,r=null===(t=K.getScheduler())||void 0===t?void 0:t.schedule;r?r((function(){z(e)})):z(e)}),[K]),ee=m(!1),te=v((function(){return{start:function(){ee.current=!0,z(!0)},complete:function(){ee.current=!1,$(!1)},error:function(){ee.current=!1,$(!1)}}}),[$]),re=f((function(){if(!X){var e,t=null===(e=K.getScheduler())||void 0===e?void 0:e.schedule;t?t((function(){B(-1)})):B(-1)}ee.current=!1,$(!1)}),[K,X,$]),ne=o({componentDisplayName:I,connectionPathInFragmentData:D,direction:"forward",fragmentData:O,fragmentIdentifier:M,fragmentNode:F,fragmentRef:Q,paginationMetadata:A,paginationRequest:w,observer:te,onReset:re}),ae=ne[0],oe=ne[1],ie=ne[2];h((function(){Z.current=U-H}),[H,U]);var se=null==y?void 0:y.UNSTABLE_extraVariables,le=null==y?void 0:y.onComplete,ue=f((function(e,t){(!ee.current||Z.current>=0)&&(Z.current-=e,B((function(t){return t+e})),!ee.current&&Z.current<0&&ae(Math.max(S,Math.min(e,r-Z.current)),null!=t?t:{onComplete:le,UNSTABLE_extraVariables:"function"==typeof se?se({hasNext:oe,data:O,getServerEdges:function(){var e=E(ce,L);return null==e?[]:("PluralReaderSelector"!==e.kind&&u(!1,"Expected a plural selector"),e.selectors.map((function(e){return K.lookup(e).data})))}}):se}))}),[r,ae,S,L,O,se,le]),ce=null===(C=e.metadata)||void 0===C||null===(k=C.refetch)||void 0===k?void 0:k.edgesFragment;null==ce&&u(!1,"usePrefetchableForwardPaginationFragment_EXPERIMENTAL: Expected the edge fragment to be defined, please make sure you have added `prefetchable_pagination: true` to `@connection`"),p((function(){if(!ee.current&&!G&&!X&&oe&&(U-H<r||H>U)){var e=le;ae(Math.max(r-Math.max(U-H,0),H-U,S),{onComplete:e,UNSTABLE_extraVariables:"function"==typeof se?se({hasNext:oe,data:O,getServerEdges:function(){var e=E(ce,L);return null==e?[]:("PluralReaderSelector"!==e.kind&&u(!1,"Expected a plural selector"),e.selectors.map((function(e){return K.lookup(e).data})))}}):se})}}),[oe,r,X,ae,H,se,le,U,L,G,S,K,ce]);var fe=Math.min(H,U),de=v((function(){var e;return null!==(e=null==L?void 0:L.slice(0,fe))&&void 0!==e?e:[]}),[L,fe]),pe=a(ce,de),he=f((function(e,t){return ie(),J(!0),T(e,(0,n.default)((0,n.default)({},t),{},{onComplete:function(e){var r,n,a=null===(r=K.getScheduler())||void 0===r?void 0:r.schedule;a?a((function(){J(!1),B(-1)})):(J(!1),B(-1)),null==t||null===(n=t.onComplete)||void 0===n||n.call(t,e)},__environment:void 0}))}),[ie,K,T]);return d({fragment:F.name,data:O,hasNext:oe,isLoadingNext:G}),{edges:pe,data:O,loadNext:ue,hasNext:oe||U>H,isLoadingNext:G&&H>U,refetch:he}}},4617:(e,t,r)=>{var n=r(4734),a=r(1061),o=r(2750),i=r(5056),s=r(8156).useDebugValue,l=r(6658).__internal,u=l.fetchQueryDeduped,c=l.fetchQuery,f=r(4446);e.exports=function(e,t,r){var l,d=o(),p=t.fetchKey,h=t.fetchPolicy,v=t.source,m=t.variables,g=t.networkCacheConfig,y=a(e,m,g);if("PreloadedQuery_DEPRECATED"===t.kind)y.request.node.params.name!==t.name&&i(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",y.request.node.params.name,t.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:u(d,y.request.identifier,(function(){return d===t.environment&&null!=v?d.executeWithSource({operation:y,source:v}):d.execute({operation:y})})),fetchPolicy:h,query:y,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{f(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var b,_=c(d,y);null!=v&&d===t.environment?b=v.ifEmpty(_):d!==t.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=_):b=_,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:p,fetchPolicy:h,query:y,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var R=n(l);return s({query:t.name,variables:t.variables,data:R,fetchKey:p,fetchPolicy:h,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),R}},8876:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(428).loadQuery,o=r(1743),i=r(2657),s=r(2750),l=r(8156),u=l.useCallback,c=l.useEffect,f=l.useRef,d=l.useState,p=r(6658),h=p.RelayFeatureFlags,v=p.getRequest,m={kind:"NullQueryReference"};function g(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==v(e).params.metadata.live}e.exports=function(e,t){return h.ENABLE_ACTIVITY_COMPATIBILITY?i(e,t):function(e,t){var r=null!=t?t:m,i=s(),l=o(),p=f(new Set([r])),h=d((function(){return r})),v=h[0],y=h[1],b=d((function(){return r})),_=b[0],R=b[1];r!==_&&(p.current.add(r),R(r),y(r));var C=u((function(){l.current&&(p.current.add(m),y(m))}),[l]),P=u((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(l.current){var o,s=a(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:i,e,t,n);p.current.add(s),y(s)}}),[i,e,y,l]),E=f(!1);return c((function(){return function(){E.current=!0}}),[]),c((function(){if(!0===E.current)return E.current=!1,void("NullQueryReference"!==v.kind&&P(v.variables,{fetchPolicy:v.fetchPolicy,networkCacheConfig:v.networkCacheConfig}));var t=p.current;if(l.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o===v)break;t.delete(o),"NullQueryReference"!==o.kind&&(g(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[v,l,P,e]),c((function(){return function(){var t,r=(0,n.default)(p.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(g(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===v.kind?null:v,P,C]}(e,t)}},2657:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(428).loadQuery,o=r(1743),i=r(2750),s=r(8156),l=s.useCallback,u=s.useEffect,c=s.useInsertionEffect,f=s.useRef,d=s.useState,p=r(6658).getRequest,h={kind:"NullQueryReference"};function v(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:h,s=i(),p=o(),m=f(null);null==m.current&&(m.current=new Set([r]));var g,y=d((function(){return r})),b=y[0],_=y[1],R=d((function(){return r})),C=R[0],P=R[1];r!==C&&(null===(g=m.current)||void 0===g||g.add(r),P(r),_(r));var E=l((function(){var e;p.current&&(null===(e=m.current)||void 0===e||e.add(h),_(h))}),[p]),x=l((function(t,r){var n,o;if(p.current){var i=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r,l=a(null!==(n=null==r?void 0:r.__environment)&&void 0!==n?n:s,e,t,i);null===(o=m.current)||void 0===o||o.add(l),_(l)}}),[s,e,_,p]),k=l((function(e,t){var r,a,o=null!==(r=m.current)&&void 0!==r?r:new Set,i=(0,n.default)(o);try{for(i.s();!(a=i.n()).done;){var s=a.value;s!==t&&"NullQueryReference"!==s.kind&&(v(e)?s.dispose&&s.dispose():s.releaseQuery&&s.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}),[]),S=f(null);return u((function(){return k(e,b),null!=S.current&&(clearTimeout(S.current),S.current=null),function(){S.current=setTimeout((function(){k(e,null)}),3e5)}}),[e,b]),c((function(){return function(){S.current&&clearTimeout(S.current),S.current=null,k(e,null)}}),[e]),["NullQueryReference"===b.kind?null:b,x,E]}},8874:(e,t,r)=>{var n=r(3915),a=r(275),o=r(8156).useDebugValue,i=r(6658).getFragment;e.exports=function(e,t){var r=i(e);a(r,"first argument of useRefetchableFragment()");var s=n(r,t,"useRefetchableFragment()"),l=s.fragmentData,u=s.refetch;return o({fragment:r.name,data:l}),[l,u]}},3915:(e,t,r)=>{var n,a=(0,r(5275).default)(r(6175)),o=r(3187),i=r(1269).getQueryResourceForEnvironment,s=r(9175),l=r(6337),u=r(1743),c=r(8876),f=r(2750),d=r(5056),p=r(8156),h=p.useCallback,v=p.useContext,m=p.useReducer,g=r(6658),y=g.__internal.fetchQuery,b=g.createOperationDescriptor,_=g.getFragmentIdentifier,R=g.getRefetchMetadata,C=g.getSelector,P=g.getValueAtPath,E=r(4446);function x(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n,a){var o=r(6658).Record,i=null==e?void 0:e[null!=n?n:"id"];if(1!==t.length||"node"!==t[0]||null==i)return null;var s=a.getStore().getSource().get(i),l=null==s?null:o.getType(s);return null==l?null:{id:i,typename:l}},checkSameTypeAfterRefetch:function(e,t,n,a){var o=r(6658).Record;if(e){var i=t.getStore().getSource().get(e.id),s=i&&o.getType(i);s!==e.typename&&E(!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,s,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var o=t[r(6658).ID_KEY];null!=o&&o!==e.id&&E(!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.",o,e.id,n.name,a)}}},e.exports=function(e,t,r){var p=f(),g=R(e,r),k=g.refetchableRequest,S=g.fragmentRefPathInResponse,F=g.identifierInfo,I=_(e,t),q=m(x,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:I,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=q[0],w=q[1],A=D.fetchPolicy,N=D.mirroredEnvironment,O=D.mirroredFragmentIdentifier,Q=D.onComplete,T=D.refetchEnvironment,M=D.refetchQuery,L=D.renderPolicy,U=null!=T?T:p,j=i(U),V=v(o),B=U!==N||I!==O,H=c(k),K=H[0],W=H[1],G=H[2],z=t;if(B)w({type:"reset",environment:U,fragmentIdentifier:I}),G();else if(null!=M&&null!=K){var Y;Y=n.getInitialIDAndType(M.request.variables,S,null==F?void 0:F.identifierQueryVariableName,U);var X=function(e){Q&&Q(null!=e?e:null)},J=null!=K.source?K.source:y(U,M),Z=V.wrapPrepareQueryResource((function(){return j.prepare(M,J,A,L,{error:X,complete:function(){n.checkSameTypeAfterRefetch(Y,U,e,r),X()}},K.fetchKey,V)})),$=s(U,Z.fragmentNode,Z.fragmentRef,r).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=P($,S),n.checkSameIDAfterRefetch(Y,z,e,r)}var ee=l(e,z,r),te=function(e,t,r,n,o,i,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,o){if(!0!==p.current)return E(!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.",i.name,e),{dispose:function(){}};null==f&&E(!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`.",i.name,e,e);var s,u,h=null==o?void 0:o.__environment,m=null==o?void 0:o.fetchPolicy,g=null==o?void 0:o.UNSTABLE_renderPolicy,y=null==o?void 0:o.onComplete,_=C(i,f);if(null==_)s={},u={};else if("PluralReaderSelector"===_.kind){var R,P,x,k;s=null!==(R=null===(P=_.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==R?R:{},u=null!==(x=null===(k=_.selectors[0])||void 0===k?void 0:k.variables)&&void 0!==x?x:{}}else s=_.owner.variables,u=_.variables;var S=(0,a.default)((0,a.default)((0,a.default)({},s),u),n);null==l||n.hasOwnProperty(l.identifierQueryVariableName)||("string"!=typeof v&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",l.identifierField,v),S[l.identifierQueryVariableName]=v);var F=b(d,S,{force:!0});return c(F.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:y,refetchEnvironment:h,refetchQuery:F,renderPolicy:g}),{dispose:r}}),[o,t,r,v,c])}(r,w,G,ee,I,e,0,F,W,t,k);return{fragmentData:ee,fragmentRef:z,refetch:te}}},2750:(e,t,r)=>{var n=r(9888),a=r(5056),o=r(8156).useContext;e.exports=function(){var e=o(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}},275:(e,t,r)=>{var n=r(5813),a=r(4446);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},8050:(e,t,r)=>{var n=r(2750),a=r(8156),o=a.useEffect,i=a.useRef;e.exports=function(e,t){var r=n(),a=i(null),s=Array.from(e).sort().join("");return o((function(){var n=r.getStore(),o=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(o,t);return a.current=i,function(){return i.dispose()}}),[s,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},5746:(e,t,r)=>{var n=r(2750),a=r(8156).useEffect,o=r(6658).requestSubscription;e.exports=function(e,t){var r=null!=t?t:o,i=n();a((function(){return r(i,e).dispose}),[i,e,r])}},5813:(e,t,r)=>{var n=r(8156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},5383:t=>{t.exports=e},5765:e=>{e.exports=t},311:e=>{e.exports=r},4924:e=>{e.exports=n},8296:e=>{e.exports=a},5275:e=>{e.exports=o},6175:e=>{e.exports=i},5264:e=>{e.exports=s},642:e=>{e.exports=l},9125:e=>{e.exports=u},4446:e=>{e.exports=c},5056:e=>{e.exports=f},8156:e=>{e.exports=d},6658:e=>{e.exports=p}},v={};return function e(t){var r=v[t];if(void 0!==r)return r.exports;var n=v[t]={exports:{}};return h[t](n,n.exports,e),n.exports}(5265)})()));
|