react-relay 16.1.0 → 17.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/ReactRelayContext.js +1 -1
  2. package/ReactRelayFragmentContainer.js.flow +8 -6
  3. package/ReactRelayLocalQueryRenderer.js.flow +4 -1
  4. package/ReactRelayPaginationContainer.js.flow +2 -0
  5. package/ReactRelayQueryRenderer.js.flow +1 -1
  6. package/ReactRelayTypes.js.flow +1 -0
  7. package/buildReactRelayContainer.js.flow +5 -3
  8. package/getRootVariablesForFragments.js.flow +1 -0
  9. package/hooks.js +1 -1
  10. package/hooks.js.flow +1 -1
  11. package/index.js +1 -1
  12. package/index.js.flow +1 -1
  13. package/legacy.js +1 -1
  14. package/lib/ReactRelayFragmentContainer.js +2 -2
  15. package/lib/buildReactRelayContainer.js +3 -3
  16. package/lib/relay-hooks/SuspenseResource.js +7 -4
  17. package/lib/relay-hooks/{FragmentResource.js → legacy/FragmentResource.js} +19 -20
  18. package/lib/relay-hooks/{useBlockingPaginationFragment.js → legacy/useBlockingPaginationFragment.js} +2 -2
  19. package/lib/relay-hooks/{useFragmentNode.js → legacy/useFragmentNode.js} +2 -2
  20. package/lib/relay-hooks/{useRefetchableFragmentNode.js → legacy/useRefetchableFragmentNode.js} +8 -8
  21. package/lib/relay-hooks/{experimental/readFragmentInternal_EXPERIMENTAL.js → readFragmentInternal.js} +7 -5
  22. package/lib/relay-hooks/useFragment.js +3 -13
  23. package/lib/relay-hooks/{experimental/useFragmentInternal_EXPERIMENTAL.js → useFragmentInternal.js} +67 -31
  24. package/lib/relay-hooks/useLazyLoadQueryNode.js +2 -13
  25. package/lib/relay-hooks/usePaginationFragment.js +17 -13
  26. package/lib/relay-hooks/useRefetchableFragment.js +3 -12
  27. package/lib/relay-hooks/{experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js → useRefetchableFragmentInternal.js} +7 -7
  28. package/multi-actor/useRelayActorEnvironment.js.flow +1 -1
  29. package/package.json +2 -2
  30. package/react-relay-hooks.js +2 -2
  31. package/react-relay-hooks.min.js +2 -2
  32. package/react-relay-legacy.js +2 -2
  33. package/react-relay-legacy.min.js +2 -2
  34. package/react-relay.js +2 -2
  35. package/react-relay.min.js +2 -2
  36. package/relay-hooks/EntryPointTypes.flow.js.flow +22 -27
  37. package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +14 -1
  38. package/relay-hooks/NestedRelayEntryPointBuilderUtils.js.flow +5 -11
  39. package/relay-hooks/SuspenseResource.js.flow +11 -8
  40. package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +22 -1
  41. package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +19 -0
  42. package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +22 -0
  43. package/relay-hooks/{FragmentResource.js.flow → legacy/FragmentResource.js.flow} +21 -21
  44. package/relay-hooks/{useBlockingPaginationFragment.js.flow → legacy/useBlockingPaginationFragment.js.flow} +6 -6
  45. package/relay-hooks/{useFragmentNode.js.flow → legacy/useFragmentNode.js.flow} +3 -3
  46. package/relay-hooks/{useRefetchableFragmentNode.js.flow → legacy/useRefetchableFragmentNode.js.flow} +9 -9
  47. package/relay-hooks/loadQuery.js.flow +9 -8
  48. package/relay-hooks/{experimental/readFragmentInternal_EXPERIMENTAL.js.flow → readFragmentInternal.js.flow} +8 -4
  49. package/relay-hooks/useClientQuery.js.flow +1 -1
  50. package/relay-hooks/useEntryPointLoader.js.flow +1 -1
  51. package/relay-hooks/useFetchTrackingRef.js.flow +1 -1
  52. package/relay-hooks/useFragment.js.flow +16 -22
  53. package/relay-hooks/{experimental/useFragmentInternal_EXPERIMENTAL.js.flow → useFragmentInternal.js.flow} +71 -19
  54. package/relay-hooks/useIsMountedRef.js.flow +1 -1
  55. package/relay-hooks/useIsOperationNodeActive.js.flow +1 -1
  56. package/relay-hooks/useIsParentQueryActive.js.flow +5 -2
  57. package/relay-hooks/useLazyLoadQuery.js.flow +3 -2
  58. package/relay-hooks/useLazyLoadQueryNode.js.flow +3 -19
  59. package/relay-hooks/useLoadMoreFunction.js.flow +1 -1
  60. package/relay-hooks/useMemoOperationDescriptor.js.flow +1 -1
  61. package/relay-hooks/useMemoVariables.js.flow +1 -1
  62. package/relay-hooks/useMutation.js.flow +1 -1
  63. package/relay-hooks/usePaginationFragment.js.flow +62 -50
  64. package/relay-hooks/usePreloadedQuery.js.flow +2 -1
  65. package/relay-hooks/useQueryLoader.js.flow +2 -5
  66. package/relay-hooks/useRefetchableFragment.js.flow +7 -37
  67. package/relay-hooks/{experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js.flow → useRefetchableFragmentInternal.js.flow} +11 -11
  68. package/relay-hooks/useRelayEnvironment.js.flow +1 -1
  69. package/relay-hooks/useStaticFragmentNodeWarning.js.flow +3 -1
  70. package/relay-hooks/useSubscribeToInvalidationState.js.flow +1 -1
  71. package/relay-hooks/useSubscription.js.flow +1 -1
  72. package/relay-hooks/useUnsafeRef_DEPRECATED.js.flow +1 -1
  73. package/lib/relay-hooks/HooksImplementation.js +0 -15
  74. package/lib/relay-hooks/experimental/useFragment_EXPERIMENTAL.js +0 -26
  75. package/lib/relay-hooks/experimental/usePaginationFragment_EXPERIMENTAL.js +0 -127
  76. package/lib/relay-hooks/experimental/useRefetchableFragment_EXPERIMENTAL.js +0 -23
  77. package/relay-hooks/HooksImplementation.js.flow +0 -45
  78. package/relay-hooks/experimental/useFragment_EXPERIMENTAL.js.flow +0 -66
  79. package/relay-hooks/experimental/usePaginationFragment_EXPERIMENTAL.js.flow +0 -161
  80. package/relay-hooks/experimental/useRefetchableFragment_EXPERIMENTAL.js.flow +0 -49
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v16.1.0
2
+ * Relay v17.0.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/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(175)),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)((0,o.default)((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)})()));
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)})()));
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Relay v16.1.0
2
+ * Relay v17.0.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- !function(e,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,u,l,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(175)),a=n(r(264)),s=n(r(383)),i=n(r(296)),u=n(r(311)),l=["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,b=v.getDataIDsFromObject,y=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,u.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),l=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,c=_(i,n,t,e,l);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,u=b(t,a),l=b(t,e),c=r.resolver;if(r.prevPropsContext.environment!==s.environment||!f(u,l))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)&&!y(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,l));return d.createElement(e,(0,o.default)((0,o.default)((0,o.default)({},n),this.state.data),{},{ref:r,relay:this.state.relayProp}))},c}(d.Component),(0,u.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),u=i.createOperationDescriptor,l=(i.deepFreeze,i.getRequest),c=s.useLayoutEffect,h=s.useState,p=s.useRef,f=s.useMemo,d={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,i=e.environment,v=e.query,_=e.variables,b=e.render,y=(t=_,r=s.useRef(t),a(r.current,t)||(r.current=t),r.current),m=f((function(){var e=l(v);return u(e,y)}),[v,y]),C=f((function(){return{environment:i}}),[i]),R=p(null),g=h(null)[1],x=p(null),S=f((function(){i.check(m);var e=i.lookup(m.fragment);R.current=e.data;var t=i.retain(m),r=i.subscribe(e,(function(e){R.current=e.data,g(R.current)})),n=!1;return x.current&&x.current(),x.current=function(){n||(n=!0,x.current=null,t.dispose(),r.dispose())},e}),[i,m]);return c((function(){var e=x.current;return function(){e&&e()}}),[S]),s.createElement(n.Provider,{value:C},s.createElement(o.Provider,{value:d},b({props:R.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)),u=n(r(311)),l=n(r(175)),c=["componentRef"],h=["componentRef","__relayContext","__rootIsQueryRenderer"],p=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(89),d=r(416),v=r(426),_=v.getComponentName,b=v.getContainerName,y=r(888),m=r(733),C=r(827).assertRelayContext,R=r(125),g=r(56),x=r(156),S=r(658),q=S.ConnectionInterface,P=S.Observable,F=S.RelayFeatureFlags,D=S.createFragmentSpecResolver,O=S.createOperationDescriptor,I=S.getDataIDsFromObject,E=S.getRequest,A=S.getVariablesFromObject,N=S.isScalarAndEqual,U=(r(446),"forward");function j(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){_(e);var n,f=b(e),v=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),t&&g(!1),t=(0,l.default)((0,l.default)({},a[0]),{},{fragmentName:n}))}return r&&null===t&&g(!1),t||{}}(t),S=r.getConnectionFromProps||function(e){var t=e.path;return t||g(!1),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}}(v),k=r.direction||v.direction;k||g(!1);var Q=r.getFragmentVariables||function(e){var t=e.count;return t||g(!1),function(e,r){return(0,l.default)((0,l.default)({},e),{},(0,u.default)({},t,r))}}(v);return n=function(n){function v(e){var r,o;o=n.call(this,e)||this,(0,u.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,u.default)((0,s.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,u.default)((0,s.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,u.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,j(t),{force:!0}).unsubscribe}})),(0,u.default)((0,s.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=j(t),a=o._getConnectionData();if(!a)return P.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=q.get(),u=(i.END_CURSOR,i.START_CURSOR,{count:e,cursor:a.cursor,totalCount:s});return{dispose:o._fetchPage(u,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,f,t,e,i):o._resolver=D(a,f,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)(v,n);var _=v.prototype;return _.componentDidMount=function(){this._isUnmounted=!1,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},_.componentDidUpdate=function(e,t){!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},_.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,o=C(e.__relayContext),a=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,s=I(t,this.props),i=I(t,e),u=d(t,this.props),l=d(t,e);o.environment===this.state.prevContext.environment&&R(u,l)&&R(s,i)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=D(o,f,t,e,a):this._resolver=D(o,f,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})},_.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},_.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},_._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},_._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},_._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},_._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,a.default)(e,c)),r=(0,l.default)((0,l.default)({},t),this.state.data),n=S(r);if(null==n)return null;var o=q.get(),s=o.EDGES,i=o.PAGE_INFO,u=o.HAS_NEXT_PAGE,h=o.HAS_PREV_PAGE,p=o.END_CURSOR,f=o.START_CURSOR;"object"!=typeof n&&g(!1);var d=n[s],v=n[i];if(null==d||null==v)return null;Array.isArray(d)||g(!1),"object"!=typeof v&&g(!1);var _=k===U?v[u]:v[h],b=k===U?v[p]:v[f];return"boolean"!=typeof _||0!==d.length&&void 0===b?null:{cursor:b,edgeCount:d.length,hasMore:_}},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new m),this._queryFetcher},_._canFetchPage=function(e){return!this._isUnmounted},_._fetchPage=function(e,n,o){var s,i=this,u=C(this.props.__relayContext).environment,c=this.props,p=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,a.default)(c,h)),f=(0,l.default)((0,l.default)({},p),this.state.data),v=d(t,p);s=A(t,p),s=(0,l.default)((0,l.default)((0,l.default)({},v),s),this._refetchVariables);var _=r.getVariables(f,{count:e.count,cursor:e.cursor},s);("object"!=typeof _||null===_)&&g(!1),_=(0,l.default)((0,l.default)({},_),this._refetchVariables),s=(0,l.default)((0,l.default)({},_),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 y=E(r.query),m=O(y,_,b),x=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var S=function(){i._refetchSubscription===x&&(i._refetchSubscription=null,i._isARequestInFlight=!1)};return this._isARequestInFlight=!0,x=this._getQueryFetcher().execute({environment:u,operation:m,preservePreviousReferences:!0}).mergeMap((function(t){return P.create((function(t){!function(t,r){var n=i._resolver.resolve();i._resolver.setVariables(Q(s,e.totalCount),m.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?x:null,x},_._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()},_.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,p));return x.createElement(y.Provider,{value:this.state.contextForChildren},x.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},v}(x.Component),(0,u.default)(n,"displayName",f),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,u=a.isRelayModernEnvironment,l=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),l=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 u(r)?s(r,n).do({error:l,complete:c,unsubscribe:h}):r.execute({operation:n}).do({error:l,complete:c,unsubscribe:h})},t.setOnDataChange=function(e){this._fetchOptions||o(!1),"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,u=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:l||[],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:u})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;u?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){h.unsubscribe()}},u=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||o(!1),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);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 u=this._snapshot;s.forEach((function(e){return e({snapshot:u})}))}},e}();e.exports=l},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)),u=r(888),l=r(733),c=r(239),h=r(125),p=r(156),f=r(658),d=f.createOperationDescriptor,v=(f.deepFreeze,f.getRequest),_={},b={rootIsQueryRenderer:!0},y=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 _[r],n===e.snapshot&&t===e.error?null:{renderProps:m(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,s,u={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;s=C(v(c).params,t.variables),n=_[s]?_[s].queryFetcher:new l}else n=new l;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,o.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:u},g(t,n,u,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:R(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=R(e.props,t),n=r.requestCacheKey,o=r.queryFetcher;return null!=n&&null!=_[n]&&o.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete _[o],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete _[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 _[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 p.createElement(u.Provider,{value:r},p.createElement(c.Provider,{value:b},this.props.render(t)))},t}(p.Component);function m(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 C(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function R(e,t){var r,n=e.query,a=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var s=C(v(n).params,e.variables);r=_[s]?_[s].queryFetcher:new l(a)}else r=new l(a);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},g(e,r,t.retryCallbacks))}function g(e,t,r,n){var o=e.environment,a=e.query,s=e.variables,i=e.cacheConfig,u=o;if(!a)return t.dispose(),{error:null,relayContext:{environment:u},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=v(a),c=d(l,s,i),h={environment:u};if("string"==typeof n&&_[n]){var p=_[n].snapshot;return p?{error:null,relayContext:h,renderProps:m(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(u,c,e.fetchPolicy),b=t.fetch({environment:u,onDataChange:null,operation:c})||f;return n=n||C(l.params,e.variables),_[n]={queryFetcher:t,snapshot:b},b?{error:null,relayContext:h,renderProps:m(null,b,t,r),snapshot:b,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:m(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=y},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)),u=n(r(296)),l=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,b=r(125),y=r(156),m=r(658),C=m.Observable,R=m.createFragmentSpecResolver,g=m.createOperationDescriptor,x=m.getDataIDsFromObject,S=m.getRequest,q=m.getVariablesFromObject,P=m.isScalarAndEqual;function F(e,t){return{environment:e,refetch:t}}r(446),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,l.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,l.default)((0,i.default)(a),"_refetch",(function(e,n,o,i){if(a._isUnmounted)return{dispose:function(){}};var u=_(a.props.__relayContext).environment,l=p(t,a.props),c="function"==typeof e?e(a._getFragmentVariables()):e;c=(0,s.default)((0,s.default)({},l),c);var h=n?(0,s.default)((0,s.default)({},c),n):c,f=i?{force:!!i.force}:void 0;null!=f&&null!=(null==i?void 0:i.metadata)&&(f.metadata=null==i?void 0:i.metadata);var d,v="function"==typeof o?{next:o,error:o}:o||{},b=S(r),y=g(b,c,f);return a.state.localVariables=c,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(u,y,null==i?void 0:i.fetchPolicy)?(a.state.resolver.setVariables(h,y.request.node),a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){v.next&&v.next(),v.complete&&v.complete()})),{dispose:function(){}}):(a._getQueryFetcher().execute({environment:u,operation:y,preservePreviousReferences:!0}).mergeMap((function(e){return a.state.resolver.setVariables(h,y.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===d&&(a._refetchSubscription=null)})).subscribe((0,s.default)((0,s.default)({},v),{},{start:function(e){a._refetchSubscription=d=e,v.start&&v.start(e)}})),{dispose:function(){d&&d.unsubscribe()}})}));var u=_(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;a._refetchSubscription=null;var f=R(u,h,t,e,c);return a.state={data:f.resolve(),localVariables:null,prevProps:e,prevPropsContext:u,contextForChildren:u,relayProp:F(u.environment,a._refetch),resolver:f},a._isUnmounted=!1,a}(0,u.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),u=x(t,e),l=p(t,o),c=p(t,e),f=r.resolver;if(r.prevPropsContext.environment!==a.environment||!b(l,c)||!b(i,u))return{data:(f=R(a,h,t,e,s)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:F(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)&&!P(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 q(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,u=s.contextForChildren;return y.createElement(d.Provider,{value:u},y.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:i})))},f}(y.Component),(0,l.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),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),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1)}}},89:(e,t,r)=>{var n=(0,r(275).default)(r(924)),o=r(74),a=r(426),s=a.getComponentName,i=a.getContainerName,u=r(888),l=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 b(e,t){var r,o=f(u);null==o&&c(!1);var a=f(l);return h.createElement(_,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(r=null==a?void 0:a.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}return _.displayName=a,b.displayName=a,h.forwardRef(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,u,l=e[a],c=t[a],h=o(l,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!==(u=null==h?void 0:h.owner.variables)&&void 0!==u?u:{};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),u=r(427),l=r(658);e.exports={ConnectionHandler:l.ConnectionHandler,QueryRenderer:i,LocalQueryRenderer:a,MutationTypes:l.MutationTypes,RangeOperations:l.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:l.applyOptimisticMutation,commitLocalUpdate:l.commitLocalUpdate,commitMutation:l.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:s.createContainer,createRefetchContainer:u.createContainer,fetchQuery_DEPRECATED:l.fetchQuery_DEPRECATED,graphql:l.graphql,readInlineData:l.readInlineData,requestSubscription:l.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=u},56:e=>{e.exports=l},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)})()));
9
+ !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,u,l,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)),u=n(r(311)),l=["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,b=v.getDataIDsFromObject,y=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,u.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),l=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,c=_(i,n,t,e,l);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,u=b(t,a),l=b(t,e),c=r.resolver;if(r.prevPropsContext.environment!==s.environment||!f(u,l))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)&&!y(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,l));return d.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp}))},c}(d.Component),(0,u.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),u=i.createOperationDescriptor,l=(i.deepFreeze,i.getRequest),c=s.useLayoutEffect,h=s.useState,p=s.useRef,f=s.useMemo,d={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,i=e.environment,v=e.query,_=e.variables,b=e.render,y=(t=_,r=s.useRef(t),a(r.current,t)||(r.current=t),r.current),m=f((function(){var e=l(v);return u(e,y)}),[v,y]),C=f((function(){return{environment:i}}),[i]),R=p(null),g=h(null)[1],x=p(null),S=f((function(){i.check(m);var e=i.lookup(m.fragment);R.current=e.data;var t=i.retain(m),r=i.subscribe(e,(function(e){R.current=e.data,g(R.current)})),n=!1;return x.current&&x.current(),x.current=function(){n||(n=!0,x.current=null,t.dispose(),r.dispose())},e}),[i,m]);return c((function(){var e=x.current;return function(){e&&e()}}),[S]),s.createElement(n.Provider,{value:C},s.createElement(o.Provider,{value:d},b({props:R.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)),u=n(r(311)),l=n(r(175)),c=["componentRef"],h=["componentRef","__relayContext","__rootIsQueryRenderer"],p=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(89),d=r(416),v=r(426),_=v.getComponentName,b=v.getContainerName,y=r(888),m=r(733),C=r(827).assertRelayContext,R=r(125),g=r(56),x=r(156),S=r(658),q=S.ConnectionInterface,P=S.Observable,F=S.RelayFeatureFlags,D=S.createFragmentSpecResolver,O=S.createOperationDescriptor,I=S.getDataIDsFromObject,E=S.getRequest,A=S.getVariablesFromObject,N=S.isScalarAndEqual,U=(r(446),"forward");function j(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){_(e);var n,f=b(e),v=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),t&&g(!1),t=(0,l.default)((0,l.default)({},a[0]),{},{fragmentName:n}))}return r&&null===t&&g(!1),t||{}}(t),S=r.getConnectionFromProps||function(e){var t=e.path;return t||g(!1),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}}(v),k=r.direction||v.direction;k||g(!1);var Q=r.getFragmentVariables||function(e){var t=e.count;return t||g(!1),function(e,r){return(0,l.default)((0,l.default)({},e),{},(0,u.default)({},t,r))}}(v);return n=function(n){function v(e){var r,o;o=n.call(this,e)||this,(0,u.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,u.default)((0,s.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,u.default)((0,s.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,u.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,j(t),{force:!0}).unsubscribe}})),(0,u.default)((0,s.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=j(t),a=o._getConnectionData();if(!a)return P.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=q.get(),u=(i.END_CURSOR,i.START_CURSOR,{count:e,cursor:a.cursor,totalCount:s});return{dispose:o._fetchPage(u,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,f,t,e,i):o._resolver=D(a,f,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)(v,n);var _=v.prototype;return _.componentDidMount=function(){this._isUnmounted=!1,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},_.componentDidUpdate=function(e,t){!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},_.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,o=C(e.__relayContext),a=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,s=I(t,this.props),i=I(t,e),u=d(t,this.props),l=d(t,e);o.environment===this.state.prevContext.environment&&R(u,l)&&R(s,i)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=D(o,f,t,e,a):this._resolver=D(o,f,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})},_.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},_.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},_._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},_._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},_._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},_._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,a.default)(e,c)),r=(0,l.default)((0,l.default)({},t),this.state.data),n=S(r);if(null==n)return null;var o=q.get(),s=o.EDGES,i=o.PAGE_INFO,u=o.HAS_NEXT_PAGE,h=o.HAS_PREV_PAGE,p=o.END_CURSOR,f=o.START_CURSOR;"object"!=typeof n&&g(!1);var d=n[s],v=n[i];if(null==d||null==v)return null;Array.isArray(d)||g(!1),"object"!=typeof v&&g(!1);var _=k===U?v[u]:v[h],b=k===U?v[p]:v[f];return"boolean"!=typeof _||0!==d.length&&void 0===b?null:{cursor:b,edgeCount:d.length,hasMore:_}},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new m),this._queryFetcher},_._canFetchPage=function(e){return!this._isUnmounted},_._fetchPage=function(e,n,o){var s,i=this,u=C(this.props.__relayContext).environment,c=this.props,p=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,a.default)(c,h)),f=(0,l.default)((0,l.default)({},p),this.state.data),v=d(t,p);s=A(t,p),s=(0,l.default)((0,l.default)((0,l.default)({},v),s),this._refetchVariables);var _=r.getVariables(f,{count:e.count,cursor:e.cursor},s);("object"!=typeof _||null===_)&&g(!1),_=(0,l.default)((0,l.default)({},_),this._refetchVariables),s=(0,l.default)((0,l.default)({},_),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 y=E(r.query),m=O(y,_,b),x=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var S=function(){i._refetchSubscription===x&&(i._refetchSubscription=null,i._isARequestInFlight=!1)};return this._isARequestInFlight=!0,x=this._getQueryFetcher().execute({environment:u,operation:m,preservePreviousReferences:!0}).mergeMap((function(t){return P.create((function(t){!function(t,r){var n=i._resolver.resolve();i._resolver.setVariables(Q(s,e.totalCount),m.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?x:null,x},_._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()},_.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,p));return x.createElement(y.Provider,{value:this.state.contextForChildren},x.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},v}(x.Component),(0,u.default)(n,"displayName",f),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,u=a.isRelayModernEnvironment,l=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),l=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 u(r)?s(r,n).do({error:l,complete:c,unsubscribe:h}):r.execute({operation:n}).do({error:l,complete:c,unsubscribe:h})},t.setOnDataChange=function(e){this._fetchOptions||o(!1),"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,u=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:l||[],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:u})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;u?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){h.unsubscribe()}},u=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||o(!1),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);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 u=this._snapshot;s.forEach((function(e){return e({snapshot:u})}))}},e}();e.exports=l},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)),u=r(888),l=r(733),c=r(239),h=r(125),p=r(156),f=r(658),d=f.createOperationDescriptor,v=(f.deepFreeze,f.getRequest),_={},b={rootIsQueryRenderer:!0},y=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 _[r],n===e.snapshot&&t===e.error?null:{renderProps:m(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,s,u={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;s=C(v(c).params,t.variables),n=_[s]?_[s].queryFetcher:new l}else n=new l;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,o.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:u},g(t,n,u,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:R(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=R(e.props,t),n=r.requestCacheKey,o=r.queryFetcher;return null!=n&&null!=_[n]&&o.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete _[o],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete _[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 _[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 p.createElement(u.Provider,{value:r},p.createElement(c.Provider,{value:b},this.props.render(t)))},t}(p.Component);function m(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 C(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function R(e,t){var r,n=e.query,a=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var s=C(v(n).params,e.variables);r=_[s]?_[s].queryFetcher:new l(a)}else r=new l(a);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},g(e,r,t.retryCallbacks))}function g(e,t,r,n){var o=e.environment,a=e.query,s=e.variables,i=e.cacheConfig,u=o;if(!a)return t.dispose(),{error:null,relayContext:{environment:u},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=v(a),c=d(l,s,i),h={environment:u};if("string"==typeof n&&_[n]){var p=_[n].snapshot;return p?{error:null,relayContext:h,renderProps:m(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(u,c,e.fetchPolicy),b=t.fetch({environment:u,onDataChange:null,operation:c})||f;return n=n||C(l.params,e.variables),_[n]={queryFetcher:t,snapshot:b},b?{error:null,relayContext:h,renderProps:m(null,b,t,r),snapshot:b,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:m(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=y},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)),u=n(r(296)),l=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,b=r(125),y=r(156),m=r(658),C=m.Observable,R=m.createFragmentSpecResolver,g=m.createOperationDescriptor,x=m.getDataIDsFromObject,S=m.getRequest,q=m.getVariablesFromObject,P=m.isScalarAndEqual;function F(e,t){return{environment:e,refetch:t}}r(446),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,l.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,l.default)((0,i.default)(a),"_refetch",(function(e,n,o,i){if(a._isUnmounted)return{dispose:function(){}};var u=_(a.props.__relayContext).environment,l=p(t,a.props),c="function"==typeof e?e(a._getFragmentVariables()):e;c=(0,s.default)((0,s.default)({},l),c);var h=n?(0,s.default)((0,s.default)({},c),n):c,f=i?{force:!!i.force}:void 0;null!=f&&null!=(null==i?void 0:i.metadata)&&(f.metadata=null==i?void 0:i.metadata);var d,v="function"==typeof o?{next:o,error:o}:o||{},b=S(r),y=g(b,c,f);return a.state.localVariables=c,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(u,y,null==i?void 0:i.fetchPolicy)?(a.state.resolver.setVariables(h,y.request.node),a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){v.next&&v.next(),v.complete&&v.complete()})),{dispose:function(){}}):(a._getQueryFetcher().execute({environment:u,operation:y,preservePreviousReferences:!0}).mergeMap((function(e){return a.state.resolver.setVariables(h,y.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===d&&(a._refetchSubscription=null)})).subscribe((0,s.default)((0,s.default)({},v),{},{start:function(e){a._refetchSubscription=d=e,v.start&&v.start(e)}})),{dispose:function(){d&&d.unsubscribe()}})}));var u=_(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;a._refetchSubscription=null;var f=R(u,h,t,e,c);return a.state={data:f.resolve(),localVariables:null,prevProps:e,prevPropsContext:u,contextForChildren:u,relayProp:F(u.environment,a._refetch),resolver:f},a._isUnmounted=!1,a}(0,u.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),u=x(t,e),l=p(t,o),c=p(t,e),f=r.resolver;if(r.prevPropsContext.environment!==a.environment||!b(l,c)||!b(i,u))return{data:(f=R(a,h,t,e,s)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:F(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)&&!P(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 q(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,u=s.contextForChildren;return y.createElement(d.Provider,{value:u},y.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:i})))},f}(y.Component),(0,l.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),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),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1)}}},89:(e,t,r)=>{var n=(0,r(275).default)(r(924)),o=r(74),a=r(426),s=a.getComponentName,i=a.getContainerName,u=r(888),l=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 b(e,t){var r,o=f(u);null==o&&c(!1);var a=f(l);return h.createElement(_,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(r=null==a?void 0:a.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}return _.displayName=a,b.displayName=a,h.forwardRef(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,u,l=e[a],c=t[a],h=o(l,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!==(u=null==h?void 0:h.owner.variables)&&void 0!==u?u:{};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),u=r(427),l=r(658);e.exports={ConnectionHandler:l.ConnectionHandler,QueryRenderer:i,LocalQueryRenderer:a,MutationTypes:l.MutationTypes,RangeOperations:l.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:l.applyOptimisticMutation,commitLocalUpdate:l.commitLocalUpdate,commitMutation:l.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:s.createContainer,createRefetchContainer:u.createContainer,fetchQuery_DEPRECATED:l.fetchQuery_DEPRECATED,graphql:l.graphql,readInlineData:l.readInlineData,requestSubscription:l.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=u},56:e=>{e.exports=l},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)})()));