react-relay 18.0.0 → 18.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/ReactRelayContext.js +1 -1
  2. package/ReactRelayFragmentContainer.js.flow +2 -5
  3. package/buildReactRelayContainer.js.flow +1 -0
  4. package/hooks.js +1 -1
  5. package/index.js +1 -1
  6. package/index.js.flow +3 -0
  7. package/legacy.js +1 -1
  8. package/lib/index.js +2 -0
  9. package/lib/relay-hooks/getConnectionState.js +47 -0
  10. package/lib/relay-hooks/legacy/FragmentResource.js +3 -8
  11. package/lib/relay-hooks/loadQuery.js +5 -14
  12. package/lib/relay-hooks/readFragmentInternal.js +2 -4
  13. package/lib/relay-hooks/useFragmentInternal.js +1 -1
  14. package/lib/relay-hooks/useFragmentInternal_CURRENT.js +3 -10
  15. package/lib/relay-hooks/useFragmentInternal_EXPERIMENTAL.js +6 -28
  16. package/lib/relay-hooks/useLoadMoreFunction.js +10 -43
  17. package/lib/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js +130 -0
  18. package/lib/relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL.js +227 -0
  19. package/lib/relay-hooks/useQueryLoader.js +8 -0
  20. package/lib/relay-hooks/useQueryLoader_EXPERIMENTAL.js +120 -0
  21. package/package.json +2 -2
  22. package/react-relay-hooks.js +2 -2
  23. package/react-relay-hooks.min.js +2 -2
  24. package/react-relay-legacy.js +1 -1
  25. package/react-relay-legacy.min.js +1 -1
  26. package/react-relay.js +2 -2
  27. package/react-relay.min.js +2 -2
  28. package/relay-hooks/EntryPointTypes.flow.js.flow +2 -2
  29. package/relay-hooks/MatchContainer.js.flow +1 -1
  30. package/relay-hooks/getConnectionState.js.flow +97 -0
  31. package/relay-hooks/legacy/FragmentResource.js.flow +4 -16
  32. package/relay-hooks/loadQuery.js.flow +30 -38
  33. package/relay-hooks/readFragmentInternal.js.flow +1 -10
  34. package/relay-hooks/useFragmentInternal.js.flow +1 -1
  35. package/relay-hooks/useFragmentInternal_CURRENT.js.flow +7 -22
  36. package/relay-hooks/useFragmentInternal_EXPERIMENTAL.js.flow +8 -56
  37. package/relay-hooks/useLoadMoreFunction.js.flow +14 -80
  38. package/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js.flow +280 -0
  39. package/relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL.js.flow +433 -0
  40. package/relay-hooks/useQueryLoader.js.flow +27 -3
  41. package/relay-hooks/useQueryLoader_EXPERIMENTAL.js.flow +253 -0
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Relay v18.0.0
2
+ * Relay v18.2.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],r):"object"==typeof exports?exports.ReactRelay=r(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelay=r(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,r,t,n,o,a,i,s,l,u,c,f,d,p)=>(()=>{"use strict";var h={7426:e=>{function r(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:r,getContainerName:function(e){return"Relay("+r(e)+")"}}},9888:(e,r,t)=>{var n=t(8156),o=t(6658).__internal.createRelayContext;e.exports=o(n)},7362:(e,r,t)=>{var n=t(5275).default,o=n(t(4924)),a=n(t(5264)),i=n(t(5383)),s=n(t(8296)),l=n(t(311)),u=["componentRef","__relayContext","__rootIsQueryRenderer"],c=t(3089),f=t(7426).getContainerName,d=t(8827).assertRelayContext,p=t(9125),h=t(8156),v=t(6658),m=v.createFragmentSpecResolver,y=v.getDataIDsFromObject,g=v.isScalarAndEqual;function _(e,r){var t,n=f(e);return t=function(t){function c(e){var o,a;a=t.call(this,e)||this,(0,l.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(r){return e===r.resolver?{data:r.resolver.resolve(),relayProp:b(r.relayProp.environment)}:null}))}));var s=d(e.__relayContext),u=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,c=m(s,n,r,e,u);return a.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:b(s.environment),resolver:c},a}(0,s.default)(c,t),c.getDerivedStateFromProps=function(e,t){var o,a=t.prevProps,i=d(e.__relayContext),s=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,l=y(r,a),u=y(r,e),c=t.resolver;if(t.prevPropsContext.environment!==i.environment||!p(l,u))return{data:(c=m(i,n,r,e,s)).resolve(),prevPropsContext:i,prevProps:e,relayProp:b(i.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==t.data?{data:f,prevProps:e,prevPropsContext:i,relayProp:b(i.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,r){this.state.resolver!==r.resolver?(r.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.shouldComponentUpdate=function(e,t){if(t.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(t.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!r.hasOwnProperty(a)&&!g(e[a],this.props[a]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver.resolve();r!==t&&this.setState({data:t})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver,n=t.resolve();t.setCallback(this.props,this._handleFragmentDataUpdate),r!==n&&this.setState({data:n})},f.render=function(){var r=this.props,t=r.componentRef,n=(r.__relayContext,r.__rootIsQueryRenderer,(0,a.default)(r,u));return h.createElement(e,(0,o.default)({},n,this.state.data,{ref:t,relay:this.state.relayProp}))},c}(h.Component),(0,l.default)(t,"displayName",n),t}function b(e){return{environment:e}}e.exports={createContainer:function(e,r){return c(e,r,_)}}},1428:(e,r,t)=>{var n=t(9888),o=t(7239),a=t(9125),i=t(8156),s=t(6658),l=s.createOperationDescriptor,u=(s.deepFreeze,s.getRequest),c=i.useLayoutEffect,f=i.useState,d=i.useRef,p=i.useMemo,h={rootIsQueryRenderer:!0};e.exports=function(e){var r,t,s=e.environment,v=e.query,m=e.variables,y=e.render,g=(r=m,t=i.useRef(r),a(t.current,r)||(t.current=r),t.current),_=p((function(){var e=u(v);return l(e,g)}),[v,g]),b=p((function(){return{environment:s}}),[s]),R=d(null),C=f(null)[1],P=d(null),E=p((function(){s.check(_);var e=s.lookup(_.fragment);R.current=e.data;var r=s.retain(_),t=s.subscribe(e,(function(e){R.current=e.data,C(R.current)})),n=!1;return P.current&&P.current(),P.current=function(){n||(n=!0,P.current=null,r.dispose(),t.dispose())},e}),[s,_]);return c((function(){var e=P.current;return function(){e&&e()}}),[E]),i.createElement(n.Provider,{value:b},i.createElement(o.Provider,{value:h},y({props:R.current})))}},3540:(e,r,t)=>{var n=t(5275).default,o=n(t(4924)),a=n(t(5264)),i=n(t(5383)),s=n(t(8296)),l=n(t(311)),u=n(t(6175)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],p=t(3089),h=t(8416),v=t(7426),m=v.getComponentName,y=v.getContainerName,g=t(9888),_=t(733),b=t(8827).assertRelayContext,R=t(9125),C=t(5056),P=t(8156),E=t(6658),F=E.ConnectionInterface,S=E.Observable,k=E.RelayFeatureFlags,x=E.createFragmentSpecResolver,q=E.createOperationDescriptor,D=E.getDataIDsFromObject,I=E.getRequest,O=E.getVariablesFromObject,A=E.isScalarAndEqual,N=(t(4446),"forward");function w(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(r){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,r,t){return p(e,r,(function(e,r){return function(e,r,t){m(e);var n,p=y(e),v=function(e){var r=null,t=!1;for(var n in e){var o=e[n],a=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(t=!0),a&&(1!==a.length&&C(!1),r&&C(!1),r=(0,u.default)((0,u.default)({},a[0]),{},{fragmentName:n}))}return t&&null===r&&C(!1),r||{}}(r),E=t.getConnectionFromProps||function(e){var r=e.path;return r||C(!1),function(t){for(var n=t[e.fragmentName],o=0;o<r.length;o++){if(!n||"object"!=typeof n)return null;n=n[r[o]]}return n}}(v),Q=t.direction||v.direction;Q||C(!1);var M=t.getFragmentVariables||function(e){var r=e.count;return r||C(!1),function(e,t){return(0,u.default)((0,u.default)({},e),{},(0,l.default)({},r,t))}}(v);return n=function(n){function v(e){var t,o;o=n.call(this,e)||this,(0,l.default)((0,i.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,l.default)((0,i.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,l.default)((0,i.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,l.default)((0,i.default)(o),"_refetchConnection",(function(e,r,t){if(!o._canFetchPage("refetchConnection"))return{dispose:function(){}};o._refetchVariables=t;var n={count:e,cursor:null,totalCount:e};return{dispose:o._fetchPage(n,w(r),{force:!0}).unsubscribe}})),(0,l.default)((0,i.default)(o),"_loadMore",(function(e,r,t){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=w(r),a=o._getConnectionData();if(!a)return S.create((function(e){return e.complete()})).subscribe(n),null;var i=a.edgeCount+e;if(t&&t.force)return o._refetchConnection(i,r);var s=F.get(),l=(s.END_CURSOR,s.START_CURSOR,{count:e,cursor:a.cursor,totalCount:i});return{dispose:o._fetchPage(l,n,t).unsubscribe}}));var a=b(e.__relayContext),s=null!==(t=e.__rootIsQueryRenderer)&&void 0!==t&&t;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?o._resolver=x(a,p,r,e,s):o._resolver=x(a,p,r,e,s,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,s.default)(v,n);var m=v.prototype;return m.componentDidMount=function(){this._isUnmounted=!1,!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},m.componentDidUpdate=function(e,r){!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(r.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},m.UNSAFE_componentWillReceiveProps=function(e){var t,n=this,o=b(e.__relayContext),a=null!==(t=e.__rootIsQueryRenderer)&&void 0!==t&&t,i=D(r,this.props),s=D(r,e),l=h(r,this.props),u=h(r,e);o.environment===this.state.prevContext.environment&&R(l,u)&&R(i,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=x(o,p,r,e,a):this._resolver=x(o,p,r,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})},m.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},m.shouldComponentUpdate=function(e,t){if(t.data!==this.state.data||t.relayProp!==this.state.relayProp||t.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(t.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!r.hasOwnProperty(a)&&!A(e[a],this.props[a]))return!0}return!1},m._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},m._rerenderIfStoreHasChanged=function(){var e=this.state.data,r=this._resolver.resolve();e!==r&&this.setState({data:r})},m._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,r=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==r&&this.setState({data:r})},m._getConnectionData=function(){var e=this.props,r=(e.componentRef,(0,a.default)(e,c)),t=(0,u.default)((0,u.default)({},r),this.state.data),n=E(t);if(null==n)return null;var o=F.get(),i=o.EDGES,s=o.PAGE_INFO,l=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR;"object"!=typeof n&&C(!1);var h=n[i],v=n[s];if(null==h||null==v)return null;Array.isArray(h)||C(!1),"object"!=typeof v&&C(!1);var m=Q===N?v[l]:v[f],y=Q===N?v[d]:v[p];return"boolean"!=typeof m||0!==h.length&&void 0===y?null:{cursor:y,edgeCount:h.length,hasMore:m}},m._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new _),this._queryFetcher},m._canFetchPage=function(e){return!this._isUnmounted},m._fetchPage=function(e,n,o){var i,s=this,l=b(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,a.default)(c,f)),p=(0,u.default)((0,u.default)({},d),this.state.data),v=h(r,d);i=O(r,d),i=(0,u.default)((0,u.default)((0,u.default)({},v),i),this._refetchVariables);var m=t.getVariables(p,{count:e.count,cursor:e.cursor},i);("object"!=typeof m||null===m)&&C(!1),m=(0,u.default)((0,u.default)({},m),this._refetchVariables),i=(0,u.default)((0,u.default)({},m),i);var y=o?{force:!!o.force}:void 0;null!=y&&null!=(null==o?void 0:o.metadata)&&(y.metadata=null==o?void 0:o.metadata);var g=I(t.query),_=q(g,m,y),P=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var E=function(){s._refetchSubscription===P&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,P=this._getQueryFetcher().execute({environment:l,operation:_,preservePreviousReferences:!0}).mergeMap((function(r){return S.create((function(r){!function(r,t){var n=s._resolver.resolve();s._resolver.setVariables(M(i,e.totalCount),_.request.node);var o=s._resolver.resolve();R(n,o)?t():s.setState({data:o,contextForChildren:{environment:s.props.__relayContext.environment}},t)}(0,(function(){r.next(),r.complete()}))}))})).do({error:E,complete:E,unsubscribe:E}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?P:null,P},m._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()},m.render=function(){var r=this.props,t=r.componentRef,n=(r.__relayContext,r.__rootIsQueryRenderer,(0,a.default)(r,d));return P.createElement(g.Provider,{value:this.state.contextForChildren},P.createElement(e,(0,o.default)({},n,this.state.data,{ref:t,relay:this.state.relayProp})))},v}(P.Component),(0,l.default)(n,"displayName",p),n}(e,r,t)}))}}},733:(e,r,t)=>{var n=(0,t(5275).default)(t(311)),o=t(5056),a=t(6658),i=a.__internal.fetchQuery,s=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 r=e.prototype;return r.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},r.lookupInStore=function(e,r,t){return"store-and-network"!==t&&"store-or-network"!==t||"available"!==e.check(r).status?null:(this._retainCachedOperation(e,r),e.lookup(r.fragment))},r.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},r.execute=function(e){var r=this,t=e.environment,n=e.operation,o=e.preservePreviousReferences,a=void 0!==o&&o,s=t.retain(n),u=function(){r._selectionReferences=r._selectionReferences.concat(s)},c=function(){a||r.disposeSelectionReferences(),r._selectionReferences=r._selectionReferences.concat(s)},f=function(){r._selectionReferences=r._selectionReferences.concat(s)};return l(t)?i(t,n).do({error:u,complete:c,unsubscribe:f}):t.execute({operation:n}).do({error:u,complete:c,unsubscribe:f})},r.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})))},r.fetch=function(e,r){var t,n=this,o=e.environment,a=e.operation,i=e.onDataChange,l=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:u||[],operation:a},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=r?s(a.request.node,a.request.variables,r):a,f=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 r=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;l?r&&r.forEach((function(r){r({error:e})})):t=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},l=!0,t)throw t;return this._snapshot},r.retry=function(e){return this._fetchOptions||o(!1),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},r.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},r.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},r._retainCachedOperation=function(e,r){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(r)},r._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},r.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},r._onQueryDataAvailable=function(e){var r=this,t=e.notifyFirstResult;this._fetchOptions||o(!1);var n=this._fetchOptions,a=n.environment,i=n.onDataChangeCallbacks,s=n.operation;if(!this._snapshot&&(this._snapshot=a.lookup(s.fragment),this._rootSubscription=a.subscribe(this._snapshot,(function(e){if(null!=r._fetchOptions){var t=r._fetchOptions.onDataChangeCallbacks;Array.isArray(t)&&t.forEach((function(r){return r({snapshot:e})}))}})),this._snapshot&&t&&Array.isArray(i))){var l=this._snapshot;i.forEach((function(e){return e({snapshot:l})}))}},e}();e.exports=u},3701:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5383)),i=n(t(8296)),s=n(t(311)),l=t(9888),u=t(733),c=t(7239),f=t(9125),d=t(8156),p=t(6658),h=p.createOperationDescriptor,v=(p.deepFreeze,p.getRequest),m={},y={rootIsQueryRenderer:!0},g=function(e){function r(r){var t;t=e.call(this,r)||this,(0,s.default)((0,a.default)(t),"_handleDataChange",(function(e){var r=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;t.setState((function(e){var t=e.requestCacheKey;return t&&delete m[t],n===e.snapshot&&r===e.error?null:{renderProps:_(r,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,i,l={handleDataChange:null,handleRetryAfterError:null};if(r.query){var c=r.query;i=b(v(c).params,r.variables),n=m[i]?m[i].queryFetcher:new u}else n=new u;return t._maybeHiddenOrFastRefresh=!1,t.state=(0,o.default)({prevPropsEnvironment:r.environment,prevPropsVariables:r.variables,prevQuery:r.query,queryFetcher:n,retryCallbacks:l},C(r,n,l,i)),t}(0,i.default)(r,e),r.getDerivedStateFromProps=function(e,r){return r.prevQuery===e.query&&r.prevPropsEnvironment===e.environment&&f(r.prevPropsVariables,e.variables)?null:R(e,r)};var t=r.prototype;return t.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(r){var t=R(e.props,r),n=t.requestCacheKey,o=t.queryFetcher;return null!=n&&null!=m[n]&&o.setOnDataChange(e._handleDataChange),t}));var r=this.state,t=r.retryCallbacks,n=r.queryFetcher,o=r.requestCacheKey;o&&delete m[o],t.handleDataChange=this._handleDataChange,t.handleRetryAfterError=function(r){return e.setState((function(e){var r=e.requestCacheKey;return r&&delete m[r],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},t.componentDidUpdate=function(e,r){var t=this.state,n=t.queryFetcher,o=t.requestCacheKey;o&&(delete m[o],delete this.state.requestCacheKey),this.props.query&&n!==r.queryFetcher&&n.setOnDataChange(this._handleDataChange)},t.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},t.shouldComponentUpdate=function(e,r){return e.render!==this.props.render||r.renderProps!==this.state.renderProps},t.render=function(){var e=this.state,r=e.renderProps,t=e.relayContext;return d.createElement(l.Provider,{value:t},d.createElement(c.Provider,{value:y},this.props.render(r)))},r}(d.Component);function _(e,r,t,n){return{error:e||null,props:r?r.data:null,retry:function(r){var o=t.retry(r);o&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:o}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function b(e,r){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:r})}function R(e,r){var t,n=e.query,a=r.queryFetcher.getSelectionReferences();if(r.queryFetcher.disposeRequest(),n){var i=b(v(n).params,e.variables);t=m[i]?m[i].queryFetcher:new u(a)}else t=new u(a);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:t},C(e,t,r.retryCallbacks))}function C(e,r,t,n){var o=e.environment,a=e.query,i=e.variables,s=e.cacheConfig,l=o;if(!a)return r.dispose(),{error:null,relayContext:{environment:l},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var u=v(a),c=h(u,i,s),f={environment:l};if("string"==typeof n&&m[n]){var d=m[n].snapshot;return d?{error:null,relayContext:f,renderProps:_(null,d,r,t),snapshot:d,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var p=r.lookupInStore(l,c,e.fetchPolicy),y=r.fetch({environment:l,onDataChange:null,operation:c})||p;return n=n||b(u.params,e.variables),m[n]={queryFetcher:r,snapshot:y},y?{error:null,relayContext:f,renderProps:_(null,y,r,t),snapshot:y,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:_(e,null,r,t),snapshot:null,requestCacheKey:n}}}e.exports=g},7239:(e,r,t)=>{var n=t(8156);e.exports=n.createContext({rootIsQueryRenderer:!1})},2427:(e,r,t)=>{var n=t(5275).default,o=n(t(4924)),a=n(t(5264)),i=n(t(6175)),s=n(t(5383)),l=n(t(8296)),u=n(t(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=t(3089),d=t(8416),p=t(7426).getContainerName,h=t(9888),v=t(733),m=t(8827).assertRelayContext,y=t(9125),g=t(8156),_=t(6658),b=_.Observable,R=_.createFragmentSpecResolver,C=_.createOperationDescriptor,P=_.getDataIDsFromObject,E=_.getRequest,F=_.getVariablesFromObject,S=_.isScalarAndEqual;function k(e,r){return{environment:e,refetch:r}}t(4446),e.exports={createContainer:function(e,r,t){return f(e,r,(function(e,r){return function(e,r,t){var n,f=p(e);return n=function(n){function p(e){var o,a;a=n.call(this,e)||this,(0,u.default)((0,s.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(r){return e===r.resolver?{data:r.resolver.resolve()}:null}))})),(0,u.default)((0,s.default)(a),"_refetch",(function(e,n,o,s){if(a._isUnmounted)return{dispose:function(){}};var l=m(a.props.__relayContext).environment,u=d(r,a.props),c="function"==typeof e?e(a._getFragmentVariables()):e;c=(0,i.default)((0,i.default)({},u),c);var f=n?(0,i.default)((0,i.default)({},c),n):c,p=s?{force:!!s.force}:void 0;null!=p&&null!=(null==s?void 0:s.metadata)&&(p.metadata=null==s?void 0:s.metadata);var h,v="function"==typeof o?{next:o,error:o}:o||{},y=E(t),g=C(y,c,p);return a.state.localVariables=c,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(l,g,null==s?void 0:s.fetchPolicy)?(a.state.resolver.setVariables(f,g.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:l,operation:g,preservePreviousReferences:!0}).mergeMap((function(e){return a.state.resolver.setVariables(f,g.request.node),b.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===h&&(a._refetchSubscription=null)})).subscribe((0,i.default)((0,i.default)({},v),{},{start:function(e){a._refetchSubscription=h=e,v.start&&v.start(e)}})),{dispose:function(){h&&h.unsubscribe()}})}));var l=m(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;a._refetchSubscription=null;var p=R(l,f,r,e,c);return a.state={data:p.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:k(l.environment,a._refetch),resolver:p},a._isUnmounted=!1,a}(0,l.default)(p,n);var _=p.prototype;return _.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},_.componentDidUpdate=function(e,r){this.state.resolver!==r.resolver?(r.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},p.getDerivedStateFromProps=function(e,t){var n,o=t.prevProps,a=m(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=P(r,o),l=P(r,e),u=d(r,o),c=d(r,e),p=t.resolver;if(t.prevPropsContext.environment!==a.environment||!y(u,c)||!y(s,l))return{data:(p=R(a,f,r,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:k(a.environment,t.relayProp.refetch),resolver:p};t.localVariables||p.setProps(e);var h=p.resolve();return h!==t.data?{data:h,prevProps:e}:null},_.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},_.shouldComponentUpdate=function(e,t){if(t.data!==this.state.data||t.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!==t.prevPropsContext.environment)return!0}else if(!r.hasOwnProperty(a)&&!S(e[a],this.props[a]))return!0}return!1},_._rerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver.resolve();r!==t&&this.setState({data:t})},_._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver,n=t.resolve();t.setCallback(this.props,this._handleFragmentDataUpdate),r!==n&&this.setState({data:n})},_._getFragmentVariables=function(){return F(r,this.props)},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},_.render=function(){var r=this.props,t=r.componentRef,n=(r.__relayContext,r.__rootIsQueryRenderer,(0,a.default)(r,c)),i=this.state,s=i.relayProp,l=i.contextForChildren;return g.createElement(h.Provider,{value:l},g.createElement(e,(0,o.default)({},n,this.state.data,{ref:t,relay:s})))},p}(g.Component),(0,u.default)(n,"displayName",f),n}(e,r,t)}))}}},8827:(e,r,t)=>{var n=t(645),o=t(5056);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}},7074:(e,r,t)=>{var n=t(5056);e.exports=function(e,r){for(var t in r&&"object"==typeof r||n(!1),r)if(r.hasOwnProperty(t)){var o=r[t];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1)}}},3089:(e,r,t)=>{var n=(0,t(5275).default)(t(4924)),o=t(7074),a=t(7426),i=a.getComponentName,s=a.getContainerName,l=t(9888),u=t(7239),c=t(5056),f=t(8156),d=t(6658).getFragment,p=f.useContext;e.exports=function(e,r,t){var a=s(e);o(i(e),r);var h={};for(var v in r)h[v]=d(r[v]);var m=t(e,h);function y(e,r){var t,o=p(l);null==o&&c(!1);var a=p(u);return f.createElement(m,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(t=null==a?void 0:a.rootIsQueryRenderer)&&void 0!==t&&t,componentRef:e.componentRef||r}))}return m.displayName=a,y.displayName=a,f.forwardRef(y)}},8416:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(6658).getSelector;e.exports=function(e,r){var t={};return Object.keys(e).forEach((function(a){var i,s,l,u=e[a],c=r[a],f=o(u,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(i=null===(s=f.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==i?i:{}:null!==(l=null==f?void 0:f.owner.variables)&&void 0!==l?l:{};t=(0,n.default)((0,n.default)({},t),d)})),t}},5265:(e,r,t)=>{var n=t(9888),o=t(7362),a=t(1428),i=t(3540),s=t(3701),l=t(2427),u=t(3158),c=t(9828),f=t(428).loadQuery,d=t(3187),p=t(9696),h=t(5083),v=t(529),m=t(6242),y=t(3899),g=t(3115),_=t(951),b=t(4617),R=t(8876),C=t(8874),P=t(2750),E=t(8050),F=t(5746),S=t(6658);e.exports={ConnectionHandler:S.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:a,MutationTypes:S.MutationTypes,RangeOperations:S.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:S.applyOptimisticMutation,commitLocalUpdate:S.commitLocalUpdate,commitMutation:S.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:S.fetchQuery_DEPRECATED,graphql:S.graphql,readInlineData:S.readInlineData,requestSubscription:S.requestSubscription,EntryPointContainer:u,RelayEnvironmentProvider:p,ProfilerContext:d,fetchQuery:S.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:h,useFragment:m,useLazyLoadQuery:y,useEntryPointLoader:v,useQueryLoader:R,useMutation:g,usePaginationFragment:_,usePreloadedQuery:b,useRefetchableFragment:C,useRelayEnvironment:P,useSubscribeToInvalidationState:E,useSubscription:F}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},3158:(e,r,t)=>{var n=t(3187),o=t(2750),a=t(8156),i=t(8156),s=i.useContext,l=i.useEffect;t(4446),e.exports=function(e){var r=e.entryPointReference,t=e.props,i=r.getComponent,u=r.queries,c=r.entryPoints,f=r.extraProps,d=r.rootModuleID,p=i(),h=s(n),v=o();return l((function(){v.__log({name:"entrypoint.root.consume",profilerContext:h,rootModuleID:d})}),[v,h,d]),a.createElement(p,{entryPoints:c,extraProps:f,props:t,queries:u})}},5093:(e,r,t)=>{var n=t(5056),o=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var t=this._map.keys().next();t.done||this._map.delete(t.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new o(e)}}},3187:(e,r,t)=>{var n=t(8156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},1269:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(311)),i=t(5093),s=t(1637),l=t(5056),u=t(6658).isPromise,c=(t(4446),"store-or-network"),f="store-and-network",d="function"==typeof WeakMap;function p(e){return void 0!==e.request.node.params.metadata.live}function h(e,r,t,n,o){var a=null!=t?t:p(r)?f:c,i=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(a,"-").concat(i,"-").concat(r.request.identifier);return null!=o?"".concat(s,"-").concat(o):s}function v(e,r){var t={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var m=2e5;function y(e,r,t,n,o,a){var i=p(r),l=n,u=o,c=new s((function(e){var t=e.retain(r);return{dispose:function(){i&&null!=u&&u.unsubscribe(),t.dispose(),a(f)}}})),f={cacheIdentifier:e,id:m++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return l},setValue:function(e){l=e},setNetworkSubscription:function(e){i&&null!=u&&u.unsubscribe(),u=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var g=function(){function e(e){var r=this;(0,a.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=i.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,o,a,i){var s=h(this._environment,e,t,n,a);return this.prepareWithIdentifier(s,e,r,t,n,o,i)},r.prepareWithIdentifier=function(e,r,t,n,a,i,s){var l=this._environment,d=null!=n?n:p(r)?f:c,h=null!=a?a:l.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,y=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,r,t,d,h,s,(0,o.default)((0,o.default)({},i),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==i?void 0:i.unsubscribe;r&&r(e)}}))),m=v.temporaryRetain(l);var g=v.getValue();if(u(g))throw l.__log({name:"suspense.query",fetchPolicy:d,isPromiseCached:y,operation:r,queryAvailability:v.operationAvailability,renderPolicy:h}),g;if(g instanceof Error)throw g;return g},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,o=e.operation,a=this._getOrCreateCacheEntry(n,o,null,e,null),i=a.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:a.id}),{dispose:function(){i.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var o=h(this._environment,e,r,t,n);return this._cache.get(o)},r._getOrCreateCacheEntry=function(e,r,t,n,o){var a=this._cache.get(e);return null==a&&(a=y(e,r,t,n,o,this._clearCacheEntry),this._cache.set(e,a)),a},r._fetchAndSaveQuery=function(e,r,t,n,a,i,s){var u,c,f=this,d=this._environment,h=d.check(r),m=h.status,g="available"===m,_=g||"partial"===a&&"stale"!==m,b=function(){};switch(n){case"store-only":u=!1,c=!0;break;case"store-or-network":u=!g,c=_;break;case"store-and-network":u=!0,c=_;break;default:u=!0,c=!1}if(c){var R=v(r,e),C=y(e,r,h,R,null,this._clearCacheEntry);this._cache.set(e,C)}if(u){var P,E=v(r,e);t.subscribe({start:function(t){P=t;var n=f._cache.get(e);n&&n.setNetworkSubscription(P);var a=null==s?void 0:s.start;a&&a((0,o.default)((0,o.default)({},t),{},{unsubscribe:function(){p(r)&&t.unsubscribe()}}))},next:function(){var t=f._getOrCreateCacheEntry(e,r,h,E,P);t.processedPayloadsCount+=1,t.setValue(E),b();var n=null==s?void 0:s.next;null!=n&&n(d.lookup(r.fragment))},error:function(t){var n=f._getOrCreateCacheEntry(e,r,h,t,P);0===n.processedPayloadsCount&&n.setValue(t),b(),P=null,n.setNetworkSubscription(null);var o=null==s?void 0:s.error;o&&o(t)},complete:function(){b(),P=null;var r=f._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==s?void 0:s.complete;t&&t()},unsubscribe:null==s?void 0:s.unsubscribe});var F=this._cache.get(e);if(!F){var S=new Promise((function(e){b=e}));S.displayName="Relay("+r.fragment.node.name+")",F=y(e,r,h,S,P,this._clearCacheEntry),this._cache.set(e,F)}}else{var k=null==s?void 0:s.complete;k&&k()}var x=this._cache.get(e);return null==x&&l(!1),d.__log({name:"queryresource.fetch",resourceID:x.id,operation:r,profilerContext:i,fetchPolicy:n,renderPolicy:a,queryAvailability:h,shouldFetch:u}),x},e}();function _(e){return new g(e)}var b=d?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var r=b.get(e);if(r)return r;var t=_(e);return b.set(e,t),t},getQueryCacheIdentifier:h}},9696:(e,r,t)=>{var n=t(9888),o=t(8156),a=o.useMemo;e.exports=function(e){var r=e.children,t=e.environment,i=e.getEnvironmentForActor,s=a((function(){return{environment:t,getEnvironmentForActor:i}}),[t,i]);return o.createElement(n.Provider,{value:s},r)}},1637:(e,r,t)=>{var n=(0,t(5275).default)(t(311)),o=(t(4446),function(){function e(e){var r=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(t){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(t)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&null!=r._retainDisposable&&(r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,t=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),o=null,a=function(){clearTimeout(o),o=null,t._releaseTemporaryRetain=null,n.dispose()};return o=setTimeout(a,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=t._releaseTemporaryRetain)||void 0===e||e.call(t)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}());e.exports=o},9828:(e,r,t)=>{var n=t(428).loadQuery;e.exports=function e(r,t,o){var a=null;null==t.root.getModuleIfRequired()&&(a=t.root.load());var i=t.getPreloadProps(o),s=i.queries,l=i.entryPoints,u=i.extraProps,c={},f={};null!=s&&Object.keys(s).forEach((function(e){var t=s[e];if(null!=t){var o=t.environmentProviderOptions,a=t.options,i=t.parameters,l=t.variables,u=r.getEnvironment(o);c[e]=n(u,i,l,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},o)}})),null!=l&&Object.keys(l).forEach((function(t){var n=l[t];if(null!=n){var o=n.entryPoint,a=n.entryPointParams;f[t]=e(r,o,a)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=u?u:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw a=null!==(e=a)&&void 0!==e?e:t.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:t.root.getModuleId()}}},428:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(5056),a=t(6658),i=a.__internal.fetchQueryDeduped,s=a.Observable,l=a.PreloadableQueryRegistry,u=a.RelayFeatureFlags,c=a.ReplaySubject,f=a.createOperationDescriptor,d=a.getRequest,p=a.getRequestIdentifier,h=100001;e.exports={loadQuery:function(e,r,t,a,v){var m;h++;var y,g,_,b,R,C,P=null!==(m=null==a?void 0:a.fetchPolicy)&&void 0!==m?m:"store-or-network",E=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),F=!1,S=function(r,t){return F=!0,e.executeWithSource({operation:r,source:t})},k=new c,x=s.create((function(e){return k.subscribe(e)})),q=null,D=!1,I=function(r){var n;D=!0;var o=new c;if(!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var a="raw-network-request-"+p(r,t);n=i(e,a,(function(){return e.getNetwork().execute(r,t,E)}))}else n=e.getNetwork().execute(r,t,E);var l=n.subscribe({error:function(e){q=e,o.error(e)},next:function(e){o.next(e)},complete:function(){o.complete()}}).unsubscribe;return g=l,s.create((function(e){var r=o.subscribe(e);return function(){r.unsubscribe(),g()}}))},O=function(r,t){!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(D=!0);var n=i(e,r.request.identifier,t).subscribe({error:function(e){k.error(e)},next:function(e){k.next(e)},complete:function(){k.complete()}});_=n.unsubscribe},A=function(r){var n=f(r,t,E);y=e.retain(n),"store-only"!==P&&("store-or-network"!==P||"available"!==e.check(n).status)&&O(n,(function(){var e=I(r.params);return S(n,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(C=(b=r.params).id)&&o(!1);var N=l.get(C);if(null!=N)A(N);else{var w="store-only"===P?null:I(b),Q=l.onLoad(C,(function(r){R();var n=f(r,t,E);y=e.retain(n),null!=w&&O(n,(function(){return S(n,w)}))}));R=Q.dispose}}else{var M=d(r);C=null!=(b=M.params).cacheID?b.cacheID:b.id,A(M)}var T=!1,L=!1,U=!1,j=function(){L||(y&&y.dispose(),L=!0)},V=function(){U||(F?_&&_():g&&g(),R&&R(),U=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){T||(j(),V(),T=!0)},releaseQuery:j,cancelNetworkRequest:V,fetchKey:h,id:C,get isDisposed(){return T||L},get networkError(){return q},name:b.name,networkCacheConfig:E,fetchPolicy:P,source:D?x:void 0,variables:t}}}},9175:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5765)),i=t(1269).getQueryResourceForEnvironment,s=t(5056),l=t(6658),u=l.__internal.fetchQuery,c=l.RelayFeatureFlags,f=l.createOperationDescriptor,d=l.getPendingOperationsForFragment,p=l.getSelector,h=l.getVariablesFromFragment,v=l.handlePotentialSnapshotErrors;function m(e,r,t,n,a){var s=h(r,t),l=(0,o.default)((0,o.default)({},s),{},{id:n.clientEdgeDestinationID}),c=f(n.request,l,null==a?void 0:a.networkCacheConfig);return i(e).prepare(c,u(e,c),null==a?void 0:a.fetchPolicy)}t(4446),e.exports=function(e,r,t,n,o,i){var l,u,f=p(r,t),h=!0===(null==r||null===(l=r.metadata)||void 0===l?void 0:l.plural);h?null==t||Array.isArray(t)||s(!1):Array.isArray(t)&&s(!1),null==t||h&&Array.isArray(t)&&0===t.length||null!=f||s(!1);var y,g=function(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?0===r.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}(e,f),_=null;if(!0===(null===(u=r.metadata)||void 0===u?void 0:u.hasClientEdges)){var b=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,a.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(g);if(null!=b&&b.length){_=[];var R,C=(0,a.default)(b);try{for(C.s();!(R=C.n()).done;){var P=R.value;_.push(m(e,r,t,P,o))}}catch(e){C.e(e)}finally{C.f()}}}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(g)){null==f&&s(!1);var E="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,F=d(e,r,E);if(F)throw F.promise;!function(e,r){var t,n;if("singular"===r.kind)v(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(t=null===(n=r.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==t&&t);else if("plural"===r.kind){var o,i=(0,a.default)(r.snapshots);try{for(i.s();!(o=i.n()).done;){var s,l,u=o.value;v(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(e,g)}return y="bailout"===g.kind?h?[]:null:"singular"===g.kind?g.snapshot.data:g.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD&&null!=t&&(void 0===y||Array.isArray(y)&&y.length>0&&y.every((function(e){return void 0===e}))),{data:y,clientEdgeQueries:_}}},5083:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(3899);e.exports=function(e,r,t){return o(e,r,(0,n.default)((0,n.default)({},t),{},{fetchPolicy:"store-only"}))}},529:(e,r,t)=>{var n=(0,t(5275).default)(t(5765)),o=t(9828),a=t(1743),i=t(8156),s=i.useCallback,l=i.useEffect,u=i.useRef,c=i.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var i,d,p,h,v=null!==(i=null==t||null===(d=t.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==i?i:f,m=null!==(p=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==p?p:null,y=a(),g=u(new Set([v])),_=c(v),b=_[0],R=_[1],C=c(m),P=C[0],E=C[1],F=s((function(){if(y.current){var e={kind:"NullEntryPointReference"};g.current.add(e),R(e)}}),[R,y]),S=s((function(t){if(y.current){var n=o(e,r,t);g.current.add(n),R(n),E(t)}}),[e,r,R,y]),k=u(!1);return l((function(){return function(){k.current=!0}}),[]),l((function(){if(!0===k.current)return k.current=!1,void("NullEntryPointReference"!==b.kind&&null!=P&&S(P));var e=g.current;if(y.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var o=r.value;if(o===b)break;e.delete(o),"NullEntryPointReference"!==o.kind&&o.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[b,P,S,y]),l((function(){return function(){var e,r=(0,n.default)(g.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullEntryPointReference"!==t.kind&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===b.kind?null:b,S,F]}},7863:(e,r,t)=>{var n=t(5813),o=t(8156),a=o.useCallback,i=o.useEffect;e.exports=function(){var e=n(null),r=n(!1),t=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),o=a((function(t){e.current=t,r.current=!0}),[]),s=a((function(){e.current=null,r.current=!1}),[]);return i((function(){return t}),[t]),{isFetchingRef:r,startFetch:o,disposeFetch:t,completeFetch:s}}},6242:(e,r,t)=>{var n=t(6337),o=t(275),a=(t(8156).useDebugValue,t(6658).getFragment);e.exports=function(e,r){var t=a(e);return o(t,"first argument of useFragment()"),n(t,r,"useFragment()")}},6337:(e,r,t)=>{var n=t(5275).default,o=n(t(1179)),a=n(t(5931)),i=t(6658);e.exports=function(e,r,t,n){return i.RelayFeatureFlags.ENABLE_USE_FRAGMENT_EXPERIMENTAL?(0,a.default)(e,r,t,n):(0,o.default)(e,r,t,n)}},1179:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5765)),i=n(t(642)),s=t(1269).getQueryResourceForEnvironment,l=t(2750),u=t(5056),c=t(8156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,p=c.useRef,h=c.useState,v=t(6658),m=v.__internal,y=m.fetchQuery,g=m.getPromiseForActiveRequest,_=v.RelayFeatureFlags,b=v.areEqualSelectors,R=v.createOperationDescriptor,C=v.getPendingOperationsForFragment,P=v.getSelector,E=v.getVariablesFromFragment,F=v.handlePotentialSnapshotErrors,S=v.recycleNodesInto;function k(e,r){if("bailout"===r.kind)return null;var t=e.getStore().getEpoch();if(t===r.epoch)return null;if("singular"===r.kind){var n=e.lookup(r.snapshot.selector),o=S(r.snapshot.data,n.data),a={data:o,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,missingRequiredFields:n.missingRequiredFields,relayResolverErrors:n.relayResolverErrors,errorResponseFields:n.errorResponseFields};return[o!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:t}]}for(var i=!1,s=[],l=0;l<r.snapshots.length;l++){var c=r.snapshots[l],f=e.lookup(c.selector),d=S(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(i=!0),s.push(p)}return s.length!==r.snapshots.length&&u(!1),[i,{kind:"plural",snapshots:s,epoch:t}]}function x(e,r,t,n,a){var i=E(r,t),l=(0,o.default)((0,o.default)({},i),{},{id:n.clientEdgeDestinationID}),u=R(n.request,l,null==a?void 0:a.networkCacheConfig);return[s(e).prepare(u,y(e,u),null==a?void 0:a.fetchPolicy),g(e,u.request)]}function q(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}t(4446),e.exports=function(e,r,t,n){var o,c,v=d((function(){return P(e,r)}),[e,r]),m=!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural);m?null==r||Array.isArray(r)||u(!1):Array.isArray(r)&&u(!1),null==r||m&&Array.isArray(r)&&0===r.length||null!=v||u(!1);var y=l(),g=h((function(){return q(y,v)})),R=g[0],E=g[1],S=R,D=h(S),I=D[0],O=D[1],A=I,N=h(v),w=N[0],Q=N[1],M=h(y),T=M[0],L=M[1];if(!b(v,w)||y!==T){Q(v),L(y);var U=q(y,v);E(U),O(U),S=U,A=U}var j=p(!1);if(f((function(){j.current=v}),[v]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var V=d((function(){var t,o=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,a.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(S),i=[];if(null!=o&&o.length){t=[];var s,l=(0,a.default)(o);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=x(y,e,r,u,n),f=c[0],d=c[1];t.push(f),null!=d&&i.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[t,i]}),[S,y,e,r,n]),H=V[0],B=V[1];if(B.length)throw Promise.all(B);f((function(){var e=s(y);if(null!=H&&H.length){var r,t=[],n=(0,a.default)(H);try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push(e.retain(o))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,r=t;e<r.length;e++)r[e].dispose()}}}),[y,H])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(S)){var G=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingLiveResolverFields){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,a.default)(i.missingLiveResolverFields);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(S);if(null!=G&&G.length>0)throw Promise.all(G.map((function(e){var r=e.liveStateID;return y.getStore().getLiveResolverPromise(r)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==T||!j.current||!b(j.current,v)){null==v&&u(!1);var K="PluralReaderSelector"===v.kind?v.selectors[0].owner:v.owner,W=C(y,e,K);if(W)throw W.promise}}!function(e,r){var t,n;if("singular"===r.kind)F(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(t=null===(n=r.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==t&&t);else if("plural"===r.kind){var o,i=(0,a.default)(r.snapshots);try{for(i.s();!(o=i.n()).done;){var s,l,u=o.value;F(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(y,S);var z,Y=p(!1);if(f((function(){var e=A,r=k(y,A);if(null!==r){var t=r[0],n=r[1];t&&E(n),e=n}return function(e,r,t,n){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var o=e.subscribe(r.snapshot,(function(r){t((function(t){if("singular"!==t.kind||t.snapshot.selector!==r.selector){var o=k(e,t);if(null!=o){var a=o[0],i=o[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:a}),n.current=a,a?i:t}return t}return n.current=!0,{kind:"singular",snapshot:r,epoch:e.getStore().getEpoch()}}))}));return function(){o.dispose()}}var s=r.snapshots.map((function(r,o){return e.subscribe(r,(function(r){t((function(t){var a;if("plural"!==t.kind||(null===(a=t.snapshots[o])||void 0===a?void 0:a.selector)!==r.selector){var s=k(e,t);if(null!=s){var l=s[0],u=s[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),n.current=n.current||l,l?u:t}return t}var c=(0,i.default)(t.snapshots);return c[o]=r,n.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,r=(0,a.default)(s);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}(y,e,E,Y)}),[y,A]),Y.current){var X=k(y,S);if(null!=X){var J=X[0],Z=X[1];J&&(E(Z),S=Z)}Y.current=!1}if(m){var $=null==r;z=d((function(){return"bailout"===S.kind?$?null:[]:("plural"!==S.kind&&u(!1),S.snapshots.map((function(e){return e.data})))}),[S,$])}else"bailout"===S.kind?z=null:("singular"!==S.kind&&u(!1),z=S.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===z||Array.isArray(z)&&z.length>0&&z.every((function(e){return void 0===e}))),z}},5931:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5765)),i=n(t(642)),s=t(1269).getQueryResourceForEnvironment,l=t(2750),u=t(5056),c=t(8156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,p=c.useRef,h=c.useState,v=t(6658),m=v.__internal,y=m.fetchQuery,g=m.getPromiseForActiveRequest,_=v.RelayFeatureFlags,b=v.areEqualSelectors,R=v.createOperationDescriptor,C=v.getPendingOperationsForFragment,P=v.getSelector,E=v.getVariablesFromFragment,F=v.handlePotentialSnapshotErrors,S=v.recycleNodesInto;function k(e,r){if("bailout"===r.kind)return null;var t=e.getStore().getEpoch();if(t===r.epoch)return null;if("singular"===r.kind){var n=e.lookup(r.snapshot.selector),o=S(r.snapshot.data,n.data),a={data:o,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,missingRequiredFields:n.missingRequiredFields,relayResolverErrors:n.relayResolverErrors,errorResponseFields:n.errorResponseFields};return[o!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:t,selector:r.selector,environment:r.environment}]}for(var i=!1,s=[],l=0;l<r.snapshots.length;l++){var c=r.snapshots[l],f=e.lookup(c.selector),d=S(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(i=!0),s.push(p)}return s.length!==r.snapshots.length&&u(!1),[i,{kind:"plural",snapshots:s,epoch:t,selector:r.selector,environment:r.environment}]}function x(e,r,t,n,a){var i=E(r,t),l=(0,o.default)((0,o.default)({},i),{},{id:n.clientEdgeDestinationID}),u=R(n.request,l,null==a?void 0:a.networkCacheConfig);return[s(e).prepare(u,y(e,u),null==a?void 0:a.fetchPolicy),g(e,u.request)]}function q(e,r,t,n){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var o=e.subscribe(r.snapshot,(function(o){t((function(t){var a=null;if("singular"!==t.kind||t.snapshot.selector!==o.selector||t.environment!==e){var i=k(t.environment,t);if(null!=i){var s=i[0],l=i[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),a=s?l:t}else a=t}else a={kind:"singular",snapshot:o,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment};return n.current="singular"===a.kind?a.epoch:null,a}))}));return function(){o.dispose()}}var s=r.snapshots.map((function(o,a){return e.subscribe(o,(function(o){t((function(t){var s,l=null;if("plural"!==t.kind||(null===(s=t.snapshots[a])||void 0===s?void 0:s.selector)!==o.selector||t.environment!==e){var u=k(t.environment,t);if(null!=u){var c=u[0],f=u[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:c}),l=c?f:t}else l=t}else{var d=(0,i.default)(t.snapshots);d[a]=o,l={kind:"plural",snapshots:d,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment}}return n.current="plural"===l.kind?l.epoch:null,l}))}))}));return function(){var e,r=(0,a.default)(s);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}function D(e,r){return null==r?{kind:"bailout",environment:e}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch(),selector:r,environment:e}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch(),selector:r,environment:e}}t(4446),e.exports=function(e,r,t,n){var o,i,c=d((function(){return P(e,r)}),[e,r]),v=!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural);v?null==r||Array.isArray(r)||u(!1):Array.isArray(r)&&u(!1),null==r||v&&Array.isArray(r)&&0===r.length||null!=c||u(!1);var m=l(),y=h((function(){return D(m,c)})),g=y[0],R=y[1],E=g,S=E.environment;if(!b(c,E.selector)||m!==E.environment){var I=D(m,c);R(I),E=I}var O=p(!1);if(f((function(){O.current=c}),[c]),!0===(null===(i=e.metadata)||void 0===i?void 0:i.hasClientEdges)){var A=d((function(){var t,o=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,a.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(E),i=[];if(null!=o&&o.length){t=[];var s,l=(0,a.default)(o);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=x(m,e,r,u,n),f=c[0],d=c[1];t.push(f),null!=d&&i.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[t,i]}),[E,m,e,r,n]),N=A[0],w=A[1];if(w.length)throw Promise.all(w);f((function(){var e=s(m);if(null!=N&&N.length){var r,t=[],n=(0,a.default)(N);try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push(e.retain(o))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,r=t;e<r.length;e++)r[e].dispose()}}}),[m,N])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(E)){var Q=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingLiveResolverFields){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,a.default)(i.missingLiveResolverFields);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(E);if(null!=Q&&Q.length>0)throw Promise.all(Q.map((function(e){var r=e.liveStateID;return m.getStore().getLiveResolverPromise(r)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||m!==S||!O.current||!b(O.current,c)){null==c&&u(!1);var M="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,T=C(m,e,M);if(T)throw T.promise}}!function(e,r){var t,n;if("singular"===r.kind)F(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(t=null===(n=r.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==t&&t);else if("plural"===r.kind){var o,i=(0,a.default)(r.snapshots);try{for(i.s();!(o=i.n()).done;){var s,l,u=o.value;F(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(m,E);var L,U=p(null),j=p(null);if(f((function(){var e=j.current;if(null!=e){if(E.environment===e.environment&&E.selector===e.selector)return;e.dispose()}if("bailout"!==E.kind){var r=E,t=k(E.environment,E);if(null!==t){var n=t[0],o=t[1];if(n)return void R(o);r=o}var a=q(E.environment,r,R,U);j.current={dispose:a,selector:E.selector,environment:E.environment}}}),[E]),f((function(){if(null==j.current&&"bailout"!==E.kind){var e=q(E.environment,E,R,U);j.current={dispose:e,selector:E.selector,environment:E.environment}}return function(){var e;null===(e=j.current)||void 0===e||e.dispose(),j.current=null}}),[]),null!==U.current&&U.current!==E.epoch){var V=k(m,E);if(null!=V){var H=V[0],B=V[1];H&&(R(B),E=B)}}if(U.current=null,v){var G=null==r;L=d((function(){return"bailout"===E.kind?G?null:[]:("plural"!==E.kind&&u(!1),E.snapshots.map((function(e){return e.data})))}),[E,G])}else"bailout"===E.kind?L=null:("singular"!==E.kind&&u(!1),L=E.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===L||Array.isArray(L)&&L.length>0&&L.every((function(e){return void 0===e}))),L}},1743:(e,r,t)=>{var n=t(8156),o=n.useEffect,a=n.useRef;e.exports=function(){var e=a(!0);return o((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},5233:(e,r,t)=>{var n=t(2750),o=t(5056),a=t(8156),i=t(6658),s=i.__internal.getObservableForActiveRequest,l=i.getSelector,u=a.useEffect,c=a.useState,f=a.useMemo;e.exports=function(e,r){var t=n(),a=f((function(){var n=l(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&o(!1),s(t,n.owner))}),[t,e,r]),i=c(null!=a),d=i[0],p=i[1];return u((function(){var e;if(p(null!=a),null!=a){var r=function(){p(!1)};e=a.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[a]),d}},3899:(e,r,t)=>{var n=t(4734),o=t(1061),a=t(2750),i=t(6658).__internal.fetchQuery;e.exports=function(e,r,t){var s=a(),l=o(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:i(s,l),fetchPolicy:null==t?void 0:t.fetchPolicy,query:l,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},4734:(e,r,t)=>{var n=t(3187),o=t(1269),a=o.getQueryCacheIdentifier,i=o.getQueryResourceForEnvironment,s=t(7863),l=t(6337),u=t(2750),c=t(8156),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,o=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=u(),g=f(n),_=i(y),b=p(0),R=b[0],C=b[1],P=s(),E=P.startFetch,F=P.completeFetch,S="".concat(R,"-").concat(null!=v?v:""),k=a(y,r,c,m,S),x=g.wrapPrepareQueryResource((function(){return _.prepareWithIdentifier(k,r,o,c,m,{start:E,complete:F,error:F},g)})),q=h(!1);d((function(){return function(){q.current=!0}}),[]),d((function(){if(!0===q.current)return q.current=!1,void C((function(e){return e+1}));var e=_.retain(x,g);return function(){e.dispose()}}),[y,k]),d((function(){_.releaseTemporaryRetain(x)}));var D=x.fragmentNode,I=x.fragmentRef;return l(D,I,t)}},9601:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(7863),a=t(1743),i=t(5233),s=t(2750),l=t(5056),u=t(8156),c=u.useCallback,f=u.useEffect,d=u.useState,p=t(6658),h=p.__internal.fetchQuery,v=p.ConnectionInterface,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getRefetchMetadata,_=p.getSelector,b=p.getValueAtPath;t(4446),e.exports=function(e){var r=e.direction,t=e.fragmentNode,u=e.fragmentRef,p=e.fragmentIdentifier,R=e.fragmentData,C=e.connectionPathInFragmentData,P=e.paginationRequest,E=e.paginationMetadata,F=e.componentDisplayName,S=e.observer,k=e.onReset,x=s(),q=o(),D=q.isFetchingRef,I=q.startFetch,O=q.disposeFetch,A=q.completeFetch,N=g(t,F).identifierInfo,w=null!=(null==N?void 0:N.identifierField)&&null!=R&&"object"==typeof R?R[N.identifierField]:null,Q=a(),M=d(x),T=M[0],L=M[1],U=d(p),j=U[0],V=U[1],H=i(t,u);(x!==T||p!==j)&&(O(),k(),L(x),V(p));var B=function(e,r,t,n){var o,a,i=v.get(),s=i.EDGES,u=i.PAGE_INFO,c=i.HAS_NEXT_PAGE,f=i.HAS_PREV_PAGE,d=i.END_CURSOR,p=i.START_CURSOR,h=b(t,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&l(!1);var m=h[s],y=h[u];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||l(!1),"object"!=typeof y&&l(!1);var g="forward"===e?null!==(o=y[d])&&void 0!==o?o:null:null!==(a=y[p])&&void 0!==a?a:null;return null!==g&&"string"!=typeof g&&l(!1),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(r,0,R,C),G=B.cursor,K=B.hasMore;return f((function(){return function(){O()}}),[O]),[c((function(e,o){var a=null==o?void 0:o.onComplete;if(!0!==Q.current)return{dispose:function(){}};var i=_(t,u);if(!0===D.current||null==R||H)return a&&a(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&l(!1);var s=i.owner.variables,c=i.variables,f=null==o?void 0:o.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),c),p=y(r,e,G,d,(0,n.default)({},f),E);null!=N&&(p[N.identifierQueryVariableName]=w);var v=m(P,p,{force:!0});return h(x,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){I(e),S.start&&S.start(e)},complete:function(){A(),S.complete&&S.complete(),a&&a(null)},error:function(e){A(),S.error&&S.error(e),a&&a(e)}})),{dispose:O}}),[x,w,r,G,I,O,A,D,H,R,t.name,u,F]),K,O]}},1061:(e,r,t)=>{var n=t(6925),o=t(8156),a=t(6658),i=a.createOperationDescriptor,s=a.getRequest,l=o.useMemo;e.exports=function(e,r,t){var o=n(r),a=n(t||{});return l((function(){return i(s(e),o,a)}),[e,o,a])}},6925:(e,r,t)=>{var n=t(9125),o=t(8156).useState;e.exports=function(e){var r=o(e),t=r[0],a=r[1];return n(e,t)?t:(a(e),e)}},3115:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(1743),a=t(2750),i=t(8156),s=t(6658).commitMutation,l=i.useState,u=i.useEffect,c=i.useRef,f=i.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,t=a(),i=o(),d=c(t),p=c(e),h=c(new Set),v=l(!1),m=v[0],y=v[1],g=f((function(r){d.current===t&&p.current===e&&(h.current.delete(r),i.current&&y(h.current.size>0))}),[t,i,e]);return u((function(){d.current===t&&p.current===e||(h.current=new Set,i.current&&y(!1),d.current=t,p.current=e)}),[t,i,e]),[f((function(o){i.current&&y(!0);var a=r(t,(0,n.default)((0,n.default)({},o),{},{mutation:e,onCompleted:function(e,r){var t;g(a),null===(t=o.onCompleted)||void 0===t||t.call(o,e,r)},onError:function(e){var r;g(a),null===(r=o.onError)||void 0===r||r.call(o,e)},onUnsubscribe:function(){var e;g(a),null===(e=o.onUnsubscribe)||void 0===e||e.call(o)},onNext:function(){var e;null===(e=o.onNext)||void 0===e||e.call(o)}}));return h.current.add(a),a}),[g,r,t,i,e]),m]}},951:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(9601),a=t(3915),i=t(2750),s=t(275),l=t(8156),u=l.useCallback,c=(l.useDebugValue,l.useState),f=t(6658),d=f.getFragment,p=f.getFragmentIdentifier,h=f.getPaginationMetadata;function v(e){var r=i(),t=c(!1),a=t[0],s=t[1],l=function(e){var t,n=null===(t=r.getScheduler())||void 0===t?void 0:t.schedule;n?n((function(){s(e)})):s(e)},u={start:function(){return l(!0)},complete:function(){return l(!1)},error:function(){return l(!1)}},f=o((0,n.default)((0,n.default)({},e),{},{observer:u,onReset:function(){return l(!1)}}));return[f[0],f[1],a,f[2]]}e.exports=function(e,r){var t=d(e);s(t,"first argument of usePaginationFragment()");var o="usePaginationFragment()",i=h(t,o),l=i.connectionPathInFragmentData,c=i.paginationRequest,f=i.paginationMetadata,m=a(t,r,o),y=m.fragmentData,g=m.fragmentRef,_=m.refetch,b=p(t,g),R=v({componentDisplayName:o,connectionPathInFragmentData:l,direction:"backward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,paginationMetadata:f,paginationRequest:c}),C=R[0],P=R[1],E=R[2],F=R[3],S=v({componentDisplayName:o,connectionPathInFragmentData:l,direction:"forward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,paginationMetadata:f,paginationRequest:c}),k=S[0],x=S[1],q=S[2],D=S[3];return{data:y,loadNext:k,loadPrevious:C,hasNext:x,hasPrevious:P,isLoadingNext:q,isLoadingPrevious:E,refetch:u((function(e,r){return D(),F(),_(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[D,F,_])}}},4617:(e,r,t)=>{var n=t(4734),o=t(1061),a=t(2750),i=t(5056),s=(t(8156).useDebugValue,t(6658).__internal),l=s.fetchQueryDeduped,u=s.fetchQuery;t(4446),e.exports=function(e,r,t){var s,c=a(),f=r.fetchKey,d=r.fetchPolicy,p=r.source,h=r.variables,v=r.networkCacheConfig,m=o(e,h,v);if("PreloadedQuery_DEPRECATED"===r.kind)m.request.node.params.name!==r.name&&i(!1),s={componentDisplayName:"usePreloadedQuery()",fetchKey:f,fetchObservable:l(c,m.request.identifier,(function(){return c===r.environment&&null!=p?c.executeWithSource({operation:m,source:p}):c.execute({operation:m})})),fetchPolicy:d,query:m,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var y=u(c,m);s={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=p&&c===r.environment?p.ifEmpty(y):(r.environment,y),fetchKey:f,fetchPolicy:d,query:m,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return n(s)}},8876:(e,r,t)=>{var n=(0,t(5275).default)(t(5765)),o=t(428).loadQuery,a=t(1743),i=t(2750),s=t(8156),l=s.useCallback,u=s.useEffect,c=s.useRef,f=s.useState,d=t(6658).getRequest,p={kind:"NullQueryReference"};function h(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==d(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:p,s=i(),d=a(),v=c(new Set([t])),m=f((function(){return t})),y=m[0],g=m[1],_=f((function(){return t})),b=_[0],R=_[1];t!==b&&(v.current.add(t),R(t),g(t));var C=l((function(){d.current&&(v.current.add(p),g(p))}),[d]),P=l((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(d.current){var a,i=o(null!==(a=null==t?void 0:t.__environment)&&void 0!==a?a:s,e,r,n);v.current.add(i),g(i)}}),[s,e,g,d]),E=c(!1);return u((function(){return function(){E.current=!0}}),[]),u((function(){if(!0===E.current)return E.current=!1,void("NullQueryReference"!==y.kind&&P(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig}));var r=v.current;if(d.current){var t,o=(0,n.default)(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(a===y)break;r.delete(a),"NullQueryReference"!==a.kind&&(h(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){o.e(e)}finally{o.f()}}}),[y,d,P,e]),u((function(){return function(){var r,t=(0,n.default)(v.current);try{for(t.s();!(r=t.n()).done;){var o=r.value;"NullQueryReference"!==o.kind&&(h(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===y.kind?null:y,P,C]}},8874:(e,r,t)=>{var n=t(3915),o=t(275),a=(t(8156).useDebugValue,t(6658).getFragment);e.exports=function(e,r){var t=a(e);o(t,"first argument of useRefetchableFragment()");var i=n(t,r,"useRefetchableFragment()");return[i.fragmentData,i.refetch]}},3915:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(3187),a=t(1269).getQueryResourceForEnvironment,i=t(9175),s=t(6337),l=t(1743),u=t(8876),c=t(2750),f=t(5056),d=t(8156),p=d.useCallback,h=d.useContext,v=d.useReducer,m=t(6658),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,_=m.getFragmentIdentifier,b=m.getRefetchMetadata,R=m.getSelector,C=m.getValueAtPath;function P(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(t=r.refetchEnvironment)&&void 0!==t?t:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}t(4446),e.exports=function(e,r,t){var d=c(),m=b(e,t),E=m.refetchableRequest,F=m.fragmentRefPathInResponse,S=m.identifierInfo,k=_(e,r),x=v(P,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:k,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),q=x[0],D=x[1],I=q.fetchPolicy,O=q.mirroredEnvironment,A=q.mirroredFragmentIdentifier,N=q.onComplete,w=q.refetchEnvironment,Q=q.refetchQuery,M=q.renderPolicy,T=null!=w?w:d,L=a(T),U=h(o),j=T!==O||k!==A,V=u(E),H=V[0],B=V[1],G=V[2],K=r;if(j)D({type:"reset",environment:T,fragmentIdentifier:k}),G();else if(null!=Q&&null!=H){var W=function(e){N&&N(null!=e?e:null)},z=null!=H.source?H.source:y(T,Q),Y=U.wrapPrepareQueryResource((function(){return L.prepare(Q,z,I,M,{error:W,complete:function(){W()}},H.fetchKey,U)})),X=i(T,Y.fragmentNode,Y.fragmentRef,t).data;null==X&&f(!1),K=C(X,F)}var J=s(e,K,t),Z=function(e,r,t,o,a,i,s,u,c,f,d){var h=l(),v=null!=(null==u?void 0:u.identifierField)&&null!=o&&"object"==typeof o?o[u.identifierField]:null;return p((function(e,o){if(!0!==h.current)return{dispose:function(){}};var a,s,l=null==o?void 0:o.__environment,p=null==o?void 0:o.fetchPolicy,m=null==o?void 0:o.UNSTABLE_renderPolicy,y=null==o?void 0:o.onComplete,_=R(i,f);if(null==_)a={},s={};else if("PluralReaderSelector"===_.kind){var b,C,P,E;a=null!==(b=null===(C=_.selectors[0])||void 0===C?void 0:C.owner.variables)&&void 0!==b?b:{},s=null!==(P=null===(E=_.selectors[0])||void 0===E?void 0:E.variables)&&void 0!==P?P:{}}else a=_.owner.variables,s=_.variables;var F=(0,n.default)((0,n.default)((0,n.default)({},a),s),e);null==u||e.hasOwnProperty(u.identifierQueryVariableName)||(F[u.identifierQueryVariableName]=v);var S=g(d,F,{force:!0});return c(S.request.variables,{fetchPolicy:p,__environment:l,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:p,onComplete:y,refetchEnvironment:l,refetchQuery:S,renderPolicy:m}),{dispose:t}}),[a,r,t,v,c])}(0,D,G,J,k,e,0,S,B,r,E);return{fragmentData:J,fragmentRef:K,refetch:Z}}},2750:(e,r,t)=>{var n=t(9888),o=t(5056),a=t(8156).useContext;e.exports=function(){var e=a(n);return null==e&&o(!1),e.environment}},275:(e,r,t)=>{t(5813),t(4446),e.exports=function(e,r){}},8050:(e,r,t)=>{var n=t(2750),o=t(8156),a=o.useEffect,i=o.useRef;e.exports=function(e,r){var t=n(),o=i(null),s=Array.from(e).sort().join("");return a((function(){var n=t.getStore(),a=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(a,r);return o.current=i,function(){return i.dispose()}}),[s,r,t]),{dispose:function(){null!=o.current&&o.current.dispose()}}}},5746:(e,r,t)=>{var n=t(2750),o=t(8156).useEffect,a=t(6658).requestSubscription;e.exports=function(e,r){var t=null!=r?r:a,i=n();o((function(){return t(i,e).dispose}),[i,e,t])}},5813:(e,r,t)=>{var n=t(8156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},5383:r=>{r.exports=e},5765:e=>{e.exports=r},311:e=>{e.exports=t},4924:e=>{e.exports=n},8296:e=>{e.exports=o},5275:e=>{e.exports=a},6175:e=>{e.exports=i},5264:e=>{e.exports=s},642:e=>{e.exports=l},9125:e=>{e.exports=u},4446:e=>{e.exports=c},5056:e=>{e.exports=f},8156:e=>{e.exports=d},6658:e=>{e.exports=p}},v={};return function e(r){var t=v[r];if(void 0!==t)return t.exports;var n=v[r]={exports:{}};return h[r](n,n.exports,e),n.exports}(5265)})()));
9
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],r):"object"==typeof exports?exports.ReactRelay=r(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelay=r(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,r,t,n,o,a,i,u,s,l,c,f,d,p)=>(()=>{"use strict";var h={7426:e=>{function r(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:r,getContainerName:function(e){return"Relay("+r(e)+")"}}},9888:(e,r,t)=>{var n=t(8156),o=t(6658).__internal.createRelayContext;e.exports=o(n)},7362:(e,r,t)=>{var n=t(5275).default,o=n(t(4924)),a=n(t(5264)),i=n(t(5383)),u=n(t(8296)),s=n(t(311)),l=["componentRef","__relayContext","__rootIsQueryRenderer"],c=t(3089),f=t(7426).getContainerName,d=t(8827).assertRelayContext,p=t(9125),h=t(8156),v=t(6658),m=v.createFragmentSpecResolver,y=v.getDataIDsFromObject,g=v.isScalarAndEqual;function _(e,r){var t,n=f(e);return t=function(t){function c(e){var o,a;a=t.call(this,e)||this,(0,s.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(r){return e===r.resolver?{data:r.resolver.resolve(),relayProp:b(r.relayProp.environment)}:null}))}));var u=d(e.__relayContext),l=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,c=m(u,n,r,e,l);return a.state={data:c.resolve(),prevProps:e,prevPropsContext:u,relayProp:b(u.environment),resolver:c},a}(0,u.default)(c,t),c.getDerivedStateFromProps=function(e,t){var o,a=t.prevProps,i=d(e.__relayContext),u=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,s=y(r,a),l=y(r,e),c=t.resolver;if(t.prevPropsContext.environment!==i.environment||!p(s,l))return{data:(c=m(i,n,r,e,u)).resolve(),prevPropsContext:i,prevProps:e,relayProp:b(i.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==t.data?{data:f,prevProps:e,prevPropsContext:i,relayProp:b(i.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,r){this.state.resolver!==r.resolver?(r.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.shouldComponentUpdate=function(e,t){if(t.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(t.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!r.hasOwnProperty(a)&&!g(e[a],this.props[a]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver.resolve();r!==t&&this.setState({data:t})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver,n=t.resolve();t.setCallback(this.props,this._handleFragmentDataUpdate),r!==n&&this.setState({data:n})},f.render=function(){var r=this.props,t=r.componentRef,n=(r.__relayContext,r.__rootIsQueryRenderer,(0,a.default)(r,l));return h.createElement(e,(0,o.default)({},n,this.state.data,{ref:t,relay:this.state.relayProp}))},c}(h.Component),(0,s.default)(t,"displayName",n),t}function b(e){return{environment:e}}e.exports={createContainer:function(e,r){return c(e,r,_)}}},1428:(e,r,t)=>{var n=t(9888),o=t(7239),a=t(9125),i=t(8156),u=t(6658),s=u.createOperationDescriptor,l=(u.deepFreeze,u.getRequest),c=i.useLayoutEffect,f=i.useState,d=i.useRef,p=i.useMemo,h={rootIsQueryRenderer:!0};e.exports=function(e){var r,t,u=e.environment,v=e.query,m=e.variables,y=e.render,g=(r=m,t=i.useRef(r),a(t.current,r)||(t.current=r),t.current),_=p((function(){var e=l(v);return s(e,g)}),[v,g]),b=p((function(){return{environment:u}}),[u]),R=d(null),C=f(null)[1],P=d(null),E=p((function(){u.check(_);var e=u.lookup(_.fragment);R.current=e.data;var r=u.retain(_),t=u.subscribe(e,(function(e){R.current=e.data,C(R.current)})),n=!1;return P.current&&P.current(),P.current=function(){n||(n=!0,P.current=null,r.dispose(),t.dispose())},e}),[u,_]);return c((function(){var e=P.current;return function(){e&&e()}}),[E]),i.createElement(n.Provider,{value:b},i.createElement(o.Provider,{value:h},y({props:R.current})))}},3540:(e,r,t)=>{var n=t(5275).default,o=n(t(4924)),a=n(t(5264)),i=n(t(5383)),u=n(t(8296)),s=n(t(311)),l=n(t(6175)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],p=t(3089),h=t(8416),v=t(7426),m=v.getComponentName,y=v.getContainerName,g=t(9888),_=t(733),b=t(8827).assertRelayContext,R=t(9125),C=t(5056),P=t(8156),E=t(6658),S=E.ConnectionInterface,F=E.Observable,k=E.RelayFeatureFlags,x=E.createFragmentSpecResolver,D=E.createOperationDescriptor,q=E.getDataIDsFromObject,I=E.getRequest,N=E.getVariablesFromObject,A=E.isScalarAndEqual,O=(t(4446),"forward");function w(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(r){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,r,t){return p(e,r,(function(e,r){return function(e,r,t){m(e);var n,p=y(e),v=function(e){var r=null,t=!1;for(var n in e){var o=e[n],a=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(t=!0),a&&(1!==a.length&&C(!1),r&&C(!1),r=(0,l.default)((0,l.default)({},a[0]),{},{fragmentName:n}))}return t&&null===r&&C(!1),r||{}}(r),E=t.getConnectionFromProps||function(e){var r=e.path;return r||C(!1),function(t){for(var n=t[e.fragmentName],o=0;o<r.length;o++){if(!n||"object"!=typeof n)return null;n=n[r[o]]}return n}}(v),Q=t.direction||v.direction;Q||C(!1);var M=t.getFragmentVariables||function(e){var r=e.count;return r||C(!1),function(e,t){return(0,l.default)((0,l.default)({},e),{},(0,s.default)({},r,t))}}(v);return n=function(n){function v(e){var t,o;o=n.call(this,e)||this,(0,s.default)((0,i.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,s.default)((0,i.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,s.default)((0,i.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,s.default)((0,i.default)(o),"_refetchConnection",(function(e,r,t){if(!o._canFetchPage("refetchConnection"))return{dispose:function(){}};o._refetchVariables=t;var n={count:e,cursor:null,totalCount:e};return{dispose:o._fetchPage(n,w(r),{force:!0}).unsubscribe}})),(0,s.default)((0,i.default)(o),"_loadMore",(function(e,r,t){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=w(r),a=o._getConnectionData();if(!a)return F.create((function(e){return e.complete()})).subscribe(n),null;var i=a.edgeCount+e;if(t&&t.force)return o._refetchConnection(i,r);var u=S.get(),s=(u.END_CURSOR,u.START_CURSOR,{count:e,cursor:a.cursor,totalCount:i});return{dispose:o._fetchPage(s,n,t).unsubscribe}}));var a=b(e.__relayContext),u=null!==(t=e.__rootIsQueryRenderer)&&void 0!==t&&t;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?o._resolver=x(a,p,r,e,u):o._resolver=x(a,p,r,e,u,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,u.default)(v,n);var m=v.prototype;return m.componentDidMount=function(){this._isUnmounted=!1,!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},m.componentDidUpdate=function(e,r){!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(r.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},m.UNSAFE_componentWillReceiveProps=function(e){var t,n=this,o=b(e.__relayContext),a=null!==(t=e.__rootIsQueryRenderer)&&void 0!==t&&t,i=q(r,this.props),u=q(r,e),s=h(r,this.props),l=h(r,e);o.environment===this.state.prevContext.environment&&R(s,l)&&R(i,u)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===k.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=x(o,p,r,e,a):this._resolver=x(o,p,r,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})},m.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},m.shouldComponentUpdate=function(e,t){if(t.data!==this.state.data||t.relayProp!==this.state.relayProp||t.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(t.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!r.hasOwnProperty(a)&&!A(e[a],this.props[a]))return!0}return!1},m._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},m._rerenderIfStoreHasChanged=function(){var e=this.state.data,r=this._resolver.resolve();e!==r&&this.setState({data:r})},m._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,r=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==r&&this.setState({data:r})},m._getConnectionData=function(){var e=this.props,r=(e.componentRef,(0,a.default)(e,c)),t=(0,l.default)((0,l.default)({},r),this.state.data),n=E(t);if(null==n)return null;var o=S.get(),i=o.EDGES,u=o.PAGE_INFO,s=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR;"object"!=typeof n&&C(!1);var h=n[i],v=n[u];if(null==h||null==v)return null;Array.isArray(h)||C(!1),"object"!=typeof v&&C(!1);var m=Q===O?v[s]:v[f],y=Q===O?v[d]:v[p];return"boolean"!=typeof m||0!==h.length&&void 0===y?null:{cursor:y,edgeCount:h.length,hasMore:m}},m._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new _),this._queryFetcher},m._canFetchPage=function(e){return!this._isUnmounted},m._fetchPage=function(e,n,o){var i,u=this,s=b(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,a.default)(c,f)),p=(0,l.default)((0,l.default)({},d),this.state.data),v=h(r,d);i=N(r,d),i=(0,l.default)((0,l.default)((0,l.default)({},v),i),this._refetchVariables);var m=t.getVariables(p,{count:e.count,cursor:e.cursor},i);("object"!=typeof m||null===m)&&C(!1),m=(0,l.default)((0,l.default)({},m),this._refetchVariables),i=(0,l.default)((0,l.default)({},m),i);var y=o?{force:!!o.force}:void 0;null!=y&&null!=(null==o?void 0:o.metadata)&&(y.metadata=null==o?void 0:o.metadata);var g=I(t.query),_=D(g,m,y),P=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var E=function(){u._refetchSubscription===P&&(u._refetchSubscription=null,u._isARequestInFlight=!1)};return this._isARequestInFlight=!0,P=this._getQueryFetcher().execute({environment:s,operation:_,preservePreviousReferences:!0}).mergeMap((function(r){return F.create((function(r){!function(r,t){var n=u._resolver.resolve();u._resolver.setVariables(M(i,e.totalCount),_.request.node);var o=u._resolver.resolve();R(n,o)?t():u.setState({data:o,contextForChildren:{environment:u.props.__relayContext.environment}},t)}(0,(function(){r.next(),r.complete()}))}))})).do({error:E,complete:E,unsubscribe:E}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?P:null,P},m._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()},m.render=function(){var r=this.props,t=r.componentRef,n=(r.__relayContext,r.__rootIsQueryRenderer,(0,a.default)(r,d));return P.createElement(g.Provider,{value:this.state.contextForChildren},P.createElement(e,(0,o.default)({},n,this.state.data,{ref:t,relay:this.state.relayProp})))},v}(P.Component),(0,s.default)(n,"displayName",p),n}(e,r,t)}))}}},733:(e,r,t)=>{var n=(0,t(5275).default)(t(311)),o=t(5056),a=t(6658),i=a.__internal.fetchQuery,u=a.createOperationDescriptor,s=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 r=e.prototype;return r.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},r.lookupInStore=function(e,r,t){return"store-and-network"!==t&&"store-or-network"!==t||"available"!==e.check(r).status?null:(this._retainCachedOperation(e,r),e.lookup(r.fragment))},r.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},r.execute=function(e){var r=this,t=e.environment,n=e.operation,o=e.preservePreviousReferences,a=void 0!==o&&o,u=t.retain(n),l=function(){r._selectionReferences=r._selectionReferences.concat(u)},c=function(){a||r.disposeSelectionReferences(),r._selectionReferences=r._selectionReferences.concat(u)},f=function(){r._selectionReferences=r._selectionReferences.concat(u)};return s(t)?i(t,n).do({error:l,complete:c,unsubscribe:f}):t.execute({operation:n}).do({error:l,complete:c,unsubscribe:f})},r.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})))},r.fetch=function(e,r){var t,n=this,o=e.environment,a=e.operation,i=e.onDataChange,s=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:l||[],operation:a},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=r?u(a.request.node,a.request.variables,r):a,f=this.execute({environment:o,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:s})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var r=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;s?r&&r.forEach((function(r){r({error:e})})):t=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},s=!0,t)throw t;return this._snapshot},r.retry=function(e){return this._fetchOptions||o(!1),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},r.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},r.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},r._retainCachedOperation=function(e,r){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(r)},r._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},r.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},r._onQueryDataAvailable=function(e){var r=this,t=e.notifyFirstResult;this._fetchOptions||o(!1);var n=this._fetchOptions,a=n.environment,i=n.onDataChangeCallbacks,u=n.operation;if(!this._snapshot&&(this._snapshot=a.lookup(u.fragment),this._rootSubscription=a.subscribe(this._snapshot,(function(e){if(null!=r._fetchOptions){var t=r._fetchOptions.onDataChangeCallbacks;Array.isArray(t)&&t.forEach((function(r){return r({snapshot:e})}))}})),this._snapshot&&t&&Array.isArray(i))){var s=this._snapshot;i.forEach((function(e){return e({snapshot:s})}))}},e}();e.exports=l},3701:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5383)),i=n(t(8296)),u=n(t(311)),s=t(9888),l=t(733),c=t(7239),f=t(9125),d=t(8156),p=t(6658),h=p.createOperationDescriptor,v=(p.deepFreeze,p.getRequest),m={},y={rootIsQueryRenderer:!0},g=function(e){function r(r){var t;t=e.call(this,r)||this,(0,u.default)((0,a.default)(t),"_handleDataChange",(function(e){var r=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;t.setState((function(e){var t=e.requestCacheKey;return t&&delete m[t],n===e.snapshot&&r===e.error?null:{renderProps:_(r,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,i,s={handleDataChange:null,handleRetryAfterError:null};if(r.query){var c=r.query;i=b(v(c).params,r.variables),n=m[i]?m[i].queryFetcher:new l}else n=new l;return t._maybeHiddenOrFastRefresh=!1,t.state=(0,o.default)({prevPropsEnvironment:r.environment,prevPropsVariables:r.variables,prevQuery:r.query,queryFetcher:n,retryCallbacks:s},C(r,n,s,i)),t}(0,i.default)(r,e),r.getDerivedStateFromProps=function(e,r){return r.prevQuery===e.query&&r.prevPropsEnvironment===e.environment&&f(r.prevPropsVariables,e.variables)?null:R(e,r)};var t=r.prototype;return t.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(r){var t=R(e.props,r),n=t.requestCacheKey,o=t.queryFetcher;return null!=n&&null!=m[n]&&o.setOnDataChange(e._handleDataChange),t}));var r=this.state,t=r.retryCallbacks,n=r.queryFetcher,o=r.requestCacheKey;o&&delete m[o],t.handleDataChange=this._handleDataChange,t.handleRetryAfterError=function(r){return e.setState((function(e){var r=e.requestCacheKey;return r&&delete m[r],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},t.componentDidUpdate=function(e,r){var t=this.state,n=t.queryFetcher,o=t.requestCacheKey;o&&(delete m[o],delete this.state.requestCacheKey),this.props.query&&n!==r.queryFetcher&&n.setOnDataChange(this._handleDataChange)},t.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},t.shouldComponentUpdate=function(e,r){return e.render!==this.props.render||r.renderProps!==this.state.renderProps},t.render=function(){var e=this.state,r=e.renderProps,t=e.relayContext;return d.createElement(s.Provider,{value:t},d.createElement(c.Provider,{value:y},this.props.render(r)))},r}(d.Component);function _(e,r,t,n){return{error:e||null,props:r?r.data:null,retry:function(r){var o=t.retry(r);o&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:o}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function b(e,r){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:r})}function R(e,r){var t,n=e.query,a=r.queryFetcher.getSelectionReferences();if(r.queryFetcher.disposeRequest(),n){var i=b(v(n).params,e.variables);t=m[i]?m[i].queryFetcher:new l(a)}else t=new l(a);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:t},C(e,t,r.retryCallbacks))}function C(e,r,t,n){var o=e.environment,a=e.query,i=e.variables,u=e.cacheConfig,s=o;if(!a)return r.dispose(),{error:null,relayContext:{environment:s},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=v(a),c=h(l,i,u),f={environment:s};if("string"==typeof n&&m[n]){var d=m[n].snapshot;return d?{error:null,relayContext:f,renderProps:_(null,d,r,t),snapshot:d,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var p=r.lookupInStore(s,c,e.fetchPolicy),y=r.fetch({environment:s,onDataChange:null,operation:c})||p;return n=n||b(l.params,e.variables),m[n]={queryFetcher:r,snapshot:y},y?{error:null,relayContext:f,renderProps:_(null,y,r,t),snapshot:y,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:_(e,null,r,t),snapshot:null,requestCacheKey:n}}}e.exports=g},7239:(e,r,t)=>{var n=t(8156);e.exports=n.createContext({rootIsQueryRenderer:!1})},2427:(e,r,t)=>{var n=t(5275).default,o=n(t(4924)),a=n(t(5264)),i=n(t(6175)),u=n(t(5383)),s=n(t(8296)),l=n(t(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=t(3089),d=t(8416),p=t(7426).getContainerName,h=t(9888),v=t(733),m=t(8827).assertRelayContext,y=t(9125),g=t(8156),_=t(6658),b=_.Observable,R=_.createFragmentSpecResolver,C=_.createOperationDescriptor,P=_.getDataIDsFromObject,E=_.getRequest,S=_.getVariablesFromObject,F=_.isScalarAndEqual;function k(e,r){return{environment:e,refetch:r}}t(4446),e.exports={createContainer:function(e,r,t){return f(e,r,(function(e,r){return function(e,r,t){var n,f=p(e);return n=function(n){function p(e){var o,a;a=n.call(this,e)||this,(0,l.default)((0,u.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(r){return e===r.resolver?{data:r.resolver.resolve()}:null}))})),(0,l.default)((0,u.default)(a),"_refetch",(function(e,n,o,u){if(a._isUnmounted)return{dispose:function(){}};var s=m(a.props.__relayContext).environment,l=d(r,a.props),c="function"==typeof e?e(a._getFragmentVariables()):e;c=(0,i.default)((0,i.default)({},l),c);var f=n?(0,i.default)((0,i.default)({},c),n):c,p=u?{force:!!u.force}:void 0;null!=p&&null!=(null==u?void 0:u.metadata)&&(p.metadata=null==u?void 0:u.metadata);var h,v="function"==typeof o?{next:o,error:o}:o||{},y=E(t),g=C(y,c,p);return a.state.localVariables=c,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(s,g,null==u?void 0:u.fetchPolicy)?(a.state.resolver.setVariables(f,g.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:s,operation:g,preservePreviousReferences:!0}).mergeMap((function(e){return a.state.resolver.setVariables(f,g.request.node),b.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===h&&(a._refetchSubscription=null)})).subscribe((0,i.default)((0,i.default)({},v),{},{start:function(e){a._refetchSubscription=h=e,v.start&&v.start(e)}})),{dispose:function(){h&&h.unsubscribe()}})}));var s=m(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;a._refetchSubscription=null;var p=R(s,f,r,e,c);return a.state={data:p.resolve(),localVariables:null,prevProps:e,prevPropsContext:s,contextForChildren:s,relayProp:k(s.environment,a._refetch),resolver:p},a._isUnmounted=!1,a}(0,s.default)(p,n);var _=p.prototype;return _.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},_.componentDidUpdate=function(e,r){this.state.resolver!==r.resolver?(r.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},p.getDerivedStateFromProps=function(e,t){var n,o=t.prevProps,a=m(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,u=P(r,o),s=P(r,e),l=d(r,o),c=d(r,e),p=t.resolver;if(t.prevPropsContext.environment!==a.environment||!y(l,c)||!y(u,s))return{data:(p=R(a,f,r,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:k(a.environment,t.relayProp.refetch),resolver:p};t.localVariables||p.setProps(e);var h=p.resolve();return h!==t.data?{data:h,prevProps:e}:null},_.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},_.shouldComponentUpdate=function(e,t){if(t.data!==this.state.data||t.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!==t.prevPropsContext.environment)return!0}else if(!r.hasOwnProperty(a)&&!F(e[a],this.props[a]))return!0}return!1},_._rerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver.resolve();r!==t&&this.setState({data:t})},_._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,r=e.data,t=e.resolver,n=t.resolve();t.setCallback(this.props,this._handleFragmentDataUpdate),r!==n&&this.setState({data:n})},_._getFragmentVariables=function(){return S(r,this.props)},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},_.render=function(){var r=this.props,t=r.componentRef,n=(r.__relayContext,r.__rootIsQueryRenderer,(0,a.default)(r,c)),i=this.state,u=i.relayProp,s=i.contextForChildren;return g.createElement(h.Provider,{value:s},g.createElement(e,(0,o.default)({},n,this.state.data,{ref:t,relay:u})))},p}(g.Component),(0,l.default)(n,"displayName",f),n}(e,r,t)}))}}},8827:(e,r,t)=>{var n=t(645),o=t(5056);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}},7074:(e,r,t)=>{var n=t(5056);e.exports=function(e,r){for(var t in r&&"object"==typeof r||n(!1),r)if(r.hasOwnProperty(t)){var o=r[t];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1)}}},3089:(e,r,t)=>{var n=(0,t(5275).default)(t(4924)),o=t(7074),a=t(7426),i=a.getComponentName,u=a.getContainerName,s=t(9888),l=t(7239),c=t(5056),f=t(8156),d=t(6658).getFragment,p=f.useContext;e.exports=function(e,r,t){var a=u(e);o(i(e),r);var h={};for(var v in r)h[v]=d(r[v]);var m=t(e,h);function y(e,r){var t,o=p(s);null==o&&c(!1);var a=p(l);return f.createElement(m,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(t=null==a?void 0:a.rootIsQueryRenderer)&&void 0!==t&&t,componentRef:e.componentRef||r}))}return m.displayName=a,y.displayName=a,f.forwardRef(y)}},8416:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(6658).getSelector;e.exports=function(e,r){var t={};return Object.keys(e).forEach((function(a){var i,u,s,l=e[a],c=r[a],f=o(l,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(i=null===(u=f.selectors[0])||void 0===u?void 0:u.owner.variables)&&void 0!==i?i:{}:null!==(s=null==f?void 0:f.owner.variables)&&void 0!==s?s:{};t=(0,n.default)((0,n.default)({},t),d)})),t}},5265:(e,r,t)=>{var n=t(9888),o=t(7362),a=t(1428),i=t(3540),u=t(3701),s=t(2427),l=t(3158),c=t(9828),f=t(428).loadQuery,d=t(3187),p=t(9696),h=t(5083),v=t(529),m=t(6242),y=t(3899),g=t(3115),_=t(951),b=t(2745),R=t(4617),C=t(8876),P=t(8874),E=t(2750),S=t(8050),F=t(5746),k=t(6658);e.exports={ConnectionHandler:k.ConnectionHandler,QueryRenderer:u,LocalQueryRenderer:a,MutationTypes:k.MutationTypes,RangeOperations:k.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:k.applyOptimisticMutation,commitLocalUpdate:k.commitLocalUpdate,commitMutation:k.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:s.createContainer,fetchQuery_DEPRECATED:k.fetchQuery_DEPRECATED,graphql:k.graphql,readInlineData:k.readInlineData,requestSubscription:k.requestSubscription,EntryPointContainer:l,RelayEnvironmentProvider:p,ProfilerContext:d,fetchQuery:k.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:h,useFragment:m,useLazyLoadQuery:y,useEntryPointLoader:v,useQueryLoader:C,useMutation:g,usePaginationFragment:_,usePreloadedQuery:R,useRefetchableFragment:P,usePrefetchableForwardPaginationFragment_EXPERIMENTAL:b,useRelayEnvironment:E,useSubscribeToInvalidationState:S,useSubscription:F}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},3158:(e,r,t)=>{var n=t(3187),o=t(2750),a=t(8156),i=t(8156),u=i.useContext,s=i.useEffect;t(4446),e.exports=function(e){var r=e.entryPointReference,t=e.props,i=r.getComponent,l=r.queries,c=r.entryPoints,f=r.extraProps,d=r.rootModuleID,p=i(),h=u(n),v=o();return s((function(){v.__log({name:"entrypoint.root.consume",profilerContext:h,rootModuleID:d})}),[v,h,d]),a.createElement(p,{entryPoints:c,extraProps:f,props:t,queries:l})}},5093:(e,r,t)=>{var n=t(5056),o=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var t=this._map.keys().next();t.done||this._map.delete(t.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new o(e)}}},3187:(e,r,t)=>{var n=t(8156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},1269:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(311)),i=t(5093),u=t(1637),s=t(5056),l=t(6658).isPromise,c=(t(4446),"store-or-network"),f="store-and-network",d="function"==typeof WeakMap;function p(e){return void 0!==e.request.node.params.metadata.live}function h(e,r,t,n,o){var a=null!=t?t:p(r)?f:c,i=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(a,"-").concat(i,"-").concat(r.request.identifier);return null!=o?"".concat(u,"-").concat(o):u}function v(e,r){var t={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var m=2e5;function y(e,r,t,n,o,a){var i=p(r),s=n,l=o,c=new u((function(e){var t=e.retain(r);return{dispose:function(){i&&null!=l&&l.unsubscribe(),t.dispose(),a(f)}}})),f={cacheIdentifier:e,id:m++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){i&&null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var g=function(){function e(e){var r=this;(0,a.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=i.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,o,a,i){var u=h(this._environment,e,t,n,a);return this.prepareWithIdentifier(u,e,r,t,n,o,i)},r.prepareWithIdentifier=function(e,r,t,n,a,i,u){var s=this._environment,d=null!=n?n:p(r)?f:c,h=null!=a?a:s.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,y=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,r,t,d,h,u,(0,o.default)((0,o.default)({},i),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==i?void 0:i.unsubscribe;r&&r(e)}}))),m=v.temporaryRetain(s);var g=v.getValue();if(l(g))throw s.__log({name:"suspense.query",fetchPolicy:d,isPromiseCached:y,operation:r,queryAvailability:v.operationAvailability,renderPolicy:h}),g;if(g instanceof Error)throw g;return g},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,o=e.operation,a=this._getOrCreateCacheEntry(n,o,null,e,null),i=a.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:a.id}),{dispose:function(){i.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var o=h(this._environment,e,r,t,n);return this._cache.get(o)},r._getOrCreateCacheEntry=function(e,r,t,n,o){var a=this._cache.get(e);return null==a&&(a=y(e,r,t,n,o,this._clearCacheEntry),this._cache.set(e,a)),a},r._fetchAndSaveQuery=function(e,r,t,n,a,i,u){var l,c,f=this,d=this._environment,h=d.check(r),m=h.status,g="available"===m,_=g||"partial"===a&&"stale"!==m,b=function(){};switch(n){case"store-only":l=!1,c=!0;break;case"store-or-network":l=!g,c=_;break;case"store-and-network":l=!0,c=_;break;default:l=!0,c=!1}if(c){var R=v(r,e),C=y(e,r,h,R,null,this._clearCacheEntry);this._cache.set(e,C)}if(l){var P,E=v(r,e);t.subscribe({start:function(t){P=t;var n=f._cache.get(e);n&&n.setNetworkSubscription(P);var a=null==u?void 0:u.start;a&&a((0,o.default)((0,o.default)({},t),{},{unsubscribe:function(){p(r)&&t.unsubscribe()}}))},next:function(){var t=f._getOrCreateCacheEntry(e,r,h,E,P);t.processedPayloadsCount+=1,t.setValue(E),b();var n=null==u?void 0:u.next;null!=n&&n(d.lookup(r.fragment))},error:function(t){var n=f._getOrCreateCacheEntry(e,r,h,t,P);0===n.processedPayloadsCount&&n.setValue(t),b(),P=null,n.setNetworkSubscription(null);var o=null==u?void 0:u.error;o&&o(t)},complete:function(){b(),P=null;var r=f._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==u?void 0:u.complete;t&&t()},unsubscribe:null==u?void 0:u.unsubscribe});var S=this._cache.get(e);if(!S){var F=new Promise((function(e){b=e}));F.displayName="Relay("+r.fragment.node.name+")",S=y(e,r,h,F,P,this._clearCacheEntry),this._cache.set(e,S)}}else{var k=null==u?void 0:u.complete;k&&k()}var x=this._cache.get(e);return null==x&&s(!1),d.__log({name:"queryresource.fetch",resourceID:x.id,operation:r,profilerContext:i,fetchPolicy:n,renderPolicy:a,queryAvailability:h,shouldFetch:l}),x},e}();function _(e){return new g(e)}var b=d?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var r=b.get(e);if(r)return r;var t=_(e);return b.set(e,t),t},getQueryCacheIdentifier:h}},9696:(e,r,t)=>{var n=t(9888),o=t(8156),a=o.useMemo;e.exports=function(e){var r=e.children,t=e.environment,i=e.getEnvironmentForActor,u=a((function(){return{environment:t,getEnvironmentForActor:i}}),[t,i]);return o.createElement(n.Provider,{value:u},r)}},1637:(e,r,t)=>{var n=(0,t(5275).default)(t(311)),o=(t(4446),function(){function e(e){var r=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(t){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(t)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&null!=r._retainDisposable&&(r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,t=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),o=null,a=function(){clearTimeout(o),o=null,t._releaseTemporaryRetain=null,n.dispose()};return o=setTimeout(a,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=t._releaseTemporaryRetain)||void 0===e||e.call(t)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}());e.exports=o},3062:(e,r,t)=>{var n=t(5056),o=t(6658),a=o.ConnectionInterface,i=o.getValueAtPath;e.exports=function(e,r,t,o){var u,s,l=a.get(),c=l.EDGES,f=l.PAGE_INFO,d=l.HAS_NEXT_PAGE,p=l.HAS_PREV_PAGE,h=l.END_CURSOR,v=l.START_CURSOR,m=i(t,o);if(null==m)return{cursor:null,hasMore:!1};"object"!=typeof m&&n(!1);var y=m[c],g=m[f];if(null==y||null==g)return{cursor:null,hasMore:!1};Array.isArray(y)||n(!1),"object"!=typeof g&&n(!1);var _="forward"===e?null!==(u=g[h])&&void 0!==u?u:null:null!==(s=g[v])&&void 0!==s?s:null;return null!==_&&"string"!=typeof _&&n(!1),{cursor:_,hasMore:"forward"===e?null!=_&&!0===g[d]:null!=_&&!0===g[p]}}},9828:(e,r,t)=>{var n=t(428).loadQuery;e.exports=function e(r,t,o){var a=null;null==t.root.getModuleIfRequired()&&(a=t.root.load());var i=t.getPreloadProps(o),u=i.queries,s=i.entryPoints,l=i.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e];if(null!=t){var o=t.environmentProviderOptions,a=t.options,i=t.parameters,s=t.variables,l=r.getEnvironment(o);c[e]=n(l,i,s,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},o)}})),null!=s&&Object.keys(s).forEach((function(t){var n=s[t];if(null!=n){var o=n.entryPoint,a=n.entryPointParams;f[t]=e(r,o,a)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=l?l:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw a=null!==(e=a)&&void 0!==e?e:t.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:t.root.getModuleId()}}},428:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(5056),a=t(6658),i=a.__internal.fetchQueryDeduped,u=a.Observable,s=a.PreloadableQueryRegistry,l=a.ReplaySubject,c=a.createOperationDescriptor,f=a.getRequest,d=a.getRequestIdentifier,p=100001;e.exports={loadQuery:function(e,r,t,a,h){var v;p++;var m,y,g,_,b,R,C=null!==(v=null==a?void 0:a.fetchPolicy)&&void 0!==v?v:"store-or-network",P=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),E=!1,S=function(r,t){return E=!0,e.executeWithSource({operation:r,source:t})},F=new l,k=u.create((function(e){return F.subscribe(e)})),x=null,D=!1,q=function(r){D=!0;var n=new l,o="raw-network-request-"+d(r,t),a=i(e,o,(function(){return e.getNetwork().execute(r,t,P)})).subscribe({error:function(e){x=e,n.error(e)},next:function(e){n.next(e)},complete:function(){n.complete()}}).unsubscribe;return y=a,u.create((function(e){var r=n.subscribe(e);return function(){r.unsubscribe(),y()}}))},I=function(r,t){D=!0;var n=i(e,r.request.identifier,t).subscribe({error:function(e){F.error(e)},next:function(e){F.next(e)},complete:function(){F.complete()}});g=n.unsubscribe},N=function(r){var n=c(r,t,P);m=e.retain(n),"store-only"!==C&&("store-or-network"!==C||"available"!==e.check(n).status)&&I(n,(function(){var e=q(r.params);return S(n,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(R=(_=r.params).id)&&o(!1);var A=s.get(R);if(null!=A)N(A);else{var O="store-only"===C?null:q(_),w=s.onLoad(R,(function(r){b();var n=c(r,t,P);m=e.retain(n),null!=O&&I(n,(function(){return S(n,O)}))}));b=w.dispose}}else{var Q=f(r);R=null!=(_=Q.params).cacheID?_.cacheID:_.id,N(Q)}var M=!1,T=!1,L=!1,U=function(){T||(m&&m.dispose(),T=!0)},V=function(){L||(E?g&&g():y&&y(),b&&b(),L=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){M||(U(),V(),M=!0)},releaseQuery:U,cancelNetworkRequest:V,fetchKey:p,id:R,get isDisposed(){return M||T},get networkError(){return x},name:_.name,networkCacheConfig:P,fetchPolicy:C,source:D?k:void 0,variables:t}}}},9175:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5765)),i=t(1269).getQueryResourceForEnvironment,u=t(5056),s=t(6658),l=s.__internal.fetchQuery,c=s.RelayFeatureFlags,f=s.createOperationDescriptor,d=s.getPendingOperationsForFragment,p=s.getSelector,h=s.getVariablesFromFragment,v=s.handlePotentialSnapshotErrors;function m(e,r,t,n,a){var u=h(r,t),s=(0,o.default)((0,o.default)({},u),{},{id:n.clientEdgeDestinationID}),c=f(n.request,s,null==a?void 0:a.networkCacheConfig);return i(e).prepare(c,l(e,c),null==a?void 0:a.fetchPolicy)}t(4446),e.exports=function(e,r,t,n,o,i){var s,l,f=p(r,t),h=!0===(null==r||null===(s=r.metadata)||void 0===s?void 0:s.plural);h?null==t||Array.isArray(t)||u(!1):Array.isArray(t)&&u(!1),null==t||h&&Array.isArray(t)&&0===t.length||null!=f||u(!1);var y,g=function(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?0===r.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}(e,f),_=null;if(!0===(null===(l=r.metadata)||void 0===l?void 0:l.hasClientEdges)){var b=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingClientEdges){var u;n=null!==(u=n)&&void 0!==u?u:[];var s,l=(0,a.default)(i.missingClientEdges);try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push(c)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(g);if(null!=b&&b.length){_=[];var R,C=(0,a.default)(b);try{for(C.s();!(R=C.n()).done;){var P=R.value;_.push(m(e,r,t,P,o))}}catch(e){C.e(e)}finally{C.f()}}}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(g)){null==f&&u(!1);var E="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,S=d(e,r,E);if(S)throw S.promise;!function(e,r){if("singular"===r.kind)v(e,r.snapshot.errorResponseFields);else if("plural"===r.kind){var t,n=(0,a.default)(r.snapshots);try{for(n.s();!(t=n.n()).done;){var o=t.value;v(e,o.errorResponseFields)}}catch(e){n.e(e)}finally{n.f()}}}(e,g)}return y="bailout"===g.kind?h?[]:null:"singular"===g.kind?g.snapshot.data:g.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD&&null!=t&&(void 0===y||Array.isArray(y)&&y.length>0&&y.every((function(e){return void 0===e}))),{data:y,clientEdgeQueries:_}}},5083:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(3899);e.exports=function(e,r,t){return o(e,r,(0,n.default)((0,n.default)({},t),{},{fetchPolicy:"store-only"}))}},529:(e,r,t)=>{var n=(0,t(5275).default)(t(5765)),o=t(9828),a=t(1743),i=t(8156),u=i.useCallback,s=i.useEffect,l=i.useRef,c=i.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var i,d,p,h,v=null!==(i=null==t||null===(d=t.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==i?i:f,m=null!==(p=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==p?p:null,y=a(),g=l(new Set([v])),_=c(v),b=_[0],R=_[1],C=c(m),P=C[0],E=C[1],S=u((function(){if(y.current){var e={kind:"NullEntryPointReference"};g.current.add(e),R(e)}}),[R,y]),F=u((function(t){if(y.current){var n=o(e,r,t);g.current.add(n),R(n),E(t)}}),[e,r,R,y]),k=l(!1);return s((function(){return function(){k.current=!0}}),[]),s((function(){if(!0===k.current)return k.current=!1,void("NullEntryPointReference"!==b.kind&&null!=P&&F(P));var e=g.current;if(y.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var o=r.value;if(o===b)break;e.delete(o),"NullEntryPointReference"!==o.kind&&o.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[b,P,F,y]),s((function(){return function(){var e,r=(0,n.default)(g.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullEntryPointReference"!==t.kind&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===b.kind?null:b,F,S]}},7863:(e,r,t)=>{var n=t(5813),o=t(8156),a=o.useCallback,i=o.useEffect;e.exports=function(){var e=n(null),r=n(!1),t=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),o=a((function(t){e.current=t,r.current=!0}),[]),u=a((function(){e.current=null,r.current=!1}),[]);return i((function(){return t}),[t]),{isFetchingRef:r,startFetch:o,disposeFetch:t,completeFetch:u}}},6242:(e,r,t)=>{var n=t(6337),o=t(275),a=(t(8156).useDebugValue,t(6658).getFragment);e.exports=function(e,r){var t=a(e);return o(t,"first argument of useFragment()"),n(t,r,"useFragment()")}},6337:(e,r,t)=>{var n=t(5275).default,o=n(t(1179)),a=n(t(5931)),i=t(6658);e.exports=function(e,r,t,n){return i.RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY?(0,a.default)(e,r,t,n):(0,o.default)(e,r,t,n)}},1179:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5765)),i=n(t(642)),u=t(1269).getQueryResourceForEnvironment,s=t(2750),l=t(5056),c=t(8156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,p=c.useRef,h=c.useState,v=t(6658),m=v.__internal,y=m.fetchQuery,g=m.getPromiseForActiveRequest,_=v.RelayFeatureFlags,b=v.areEqualSelectors,R=v.createOperationDescriptor,C=v.getPendingOperationsForFragment,P=v.getSelector,E=v.getVariablesFromFragment,S=v.handlePotentialSnapshotErrors,F=v.recycleNodesInto;function k(e,r){if("bailout"===r.kind)return null;var t=e.getStore().getEpoch();if(t===r.epoch)return null;if("singular"===r.kind){var n=e.lookup(r.snapshot.selector),o=F(r.snapshot.data,n.data),a={data:o,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,errorResponseFields:n.errorResponseFields};return[o!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:t}]}for(var i=!1,u=[],s=0;s<r.snapshots.length;s++){var c=r.snapshots[s],f=e.lookup(c.selector),d=F(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,errorResponseFields:f.errorResponseFields};d!==c.data&&(i=!0),u.push(p)}return u.length!==r.snapshots.length&&l(!1),[i,{kind:"plural",snapshots:u,epoch:t}]}function x(e,r,t,n,a){var i=E(r,t),s=(0,o.default)((0,o.default)({},i),{},{id:n.clientEdgeDestinationID}),l=R(n.request,s,null==a?void 0:a.networkCacheConfig);return[u(e).prepare(l,y(e,l),null==a?void 0:a.fetchPolicy),g(e,l.request)]}function D(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}t(4446),e.exports=function(e,r,t,n){var o,c,v=d((function(){return P(e,r)}),[e,r]),m=!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural);m?null==r||Array.isArray(r)||l(!1):Array.isArray(r)&&l(!1),null==r||m&&Array.isArray(r)&&0===r.length||null!=v||l(!1);var y=s(),g=h((function(){return D(y,v)})),R=g[0],E=g[1],F=R,q=h(F),I=q[0],N=q[1],A=I,O=h(v),w=O[0],Q=O[1],M=h(y),T=M[0],L=M[1];if(!b(v,w)||y!==T){Q(v),L(y);var U=D(y,v);E(U),N(U),F=U,A=U}var V=p(!1);if(f((function(){V.current=v}),[v]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var j=d((function(){var t,o=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingClientEdges){var u;n=null!==(u=n)&&void 0!==u?u:[];var s,l=(0,a.default)(i.missingClientEdges);try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push(c)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(F),i=[];if(null!=o&&o.length){t=[];var u,s=(0,a.default)(o);try{for(s.s();!(u=s.n()).done;){var l=u.value,c=x(y,e,r,l,n),f=c[0],d=c[1];t.push(f),null!=d&&i.push(d)}}catch(e){s.e(e)}finally{s.f()}}return[t,i]}),[F,y,e,r,n]),B=j[0],H=j[1];if(H.length)throw Promise.all(H);f((function(){var e=u(y);if(null!=B&&B.length){var r,t=[],n=(0,a.default)(B);try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push(e.retain(o))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,r=t;e<r.length;e++)r[e].dispose()}}}),[y,B])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(F)){var K=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingLiveResolverFields){var u;n=null!==(u=n)&&void 0!==u?u:[];var s,l=(0,a.default)(i.missingLiveResolverFields);try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push(c)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(F);if(null!=K&&K.length>0)throw Promise.all(K.map((function(e){return y.getStore().getLiveResolverPromise(e)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==T||!V.current||!b(V.current,v)){null==v&&l(!1);var G="PluralReaderSelector"===v.kind?v.selectors[0].owner:v.owner,W=C(y,e,G);if(W)throw W.promise}}!function(e,r){if("singular"===r.kind)S(e,r.snapshot.errorResponseFields);else if("plural"===r.kind){var t,n=(0,a.default)(r.snapshots);try{for(n.s();!(t=n.n()).done;){var o=t.value;S(e,o.errorResponseFields)}}catch(e){n.e(e)}finally{n.f()}}}(y,F);var z,Y=p(!1);if(f((function(){var e=A,r=k(y,A);if(null!==r){var t=r[0],n=r[1];t&&E(n),e=n}return function(e,r,t,n){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var o=e.subscribe(r.snapshot,(function(r){t((function(t){if("singular"!==t.kind||t.snapshot.selector!==r.selector){var o=k(e,t);if(null!=o){var a=o[0],i=o[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:a}),n.current=a,a?i:t}return t}return n.current=!0,{kind:"singular",snapshot:r,epoch:e.getStore().getEpoch()}}))}));return function(){o.dispose()}}var u=r.snapshots.map((function(r,o){return e.subscribe(r,(function(r){t((function(t){var a;if("plural"!==t.kind||(null===(a=t.snapshots[o])||void 0===a?void 0:a.selector)!==r.selector){var u=k(e,t);if(null!=u){var s=u[0],l=u[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),n.current=n.current||s,s?l:t}return t}var c=(0,i.default)(t.snapshots);return c[o]=r,n.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,r=(0,a.default)(u);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}(y,e,E,Y)}),[y,A]),Y.current){var X=k(y,F);if(null!=X){var J=X[0],Z=X[1];J&&(E(Z),F=Z)}Y.current=!1}if(m){var $=null==r;z=d((function(){return"bailout"===F.kind?$?null:[]:("plural"!==F.kind&&l(!1),F.snapshots.map((function(e){return e.data})))}),[F,$])}else"bailout"===F.kind?z=null:("singular"!==F.kind&&l(!1),z=F.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===z||Array.isArray(z)&&z.length>0&&z.every((function(e){return void 0===e}))),z}},5931:(e,r,t)=>{var n=t(5275).default,o=n(t(6175)),a=n(t(5765)),i=n(t(642)),u=t(1269).getQueryResourceForEnvironment,s=t(2750),l=t(5056),c=t(8156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,p=c.useRef,h=c.useState,v=t(6658),m=v.__internal,y=m.fetchQuery,g=m.getPromiseForActiveRequest,_=v.RelayFeatureFlags,b=v.areEqualSelectors,R=v.createOperationDescriptor,C=v.getPendingOperationsForFragment,P=v.getSelector,E=v.getVariablesFromFragment,S=v.handlePotentialSnapshotErrors,F=v.recycleNodesInto;function k(e,r){if("bailout"===r.kind)return null;var t=e.getStore().getEpoch();if(t===r.epoch)return null;if("singular"===r.kind){var n=e.lookup(r.snapshot.selector),o=F(r.snapshot.data,n.data),a={data:o,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,errorResponseFields:n.errorResponseFields};return[o!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:t,selector:r.selector,environment:r.environment}]}for(var i=!1,u=[],s=0;s<r.snapshots.length;s++){var c=r.snapshots[s],f=e.lookup(c.selector),d=F(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,errorResponseFields:f.errorResponseFields};d!==c.data&&(i=!0),u.push(p)}return u.length!==r.snapshots.length&&l(!1),[i,{kind:"plural",snapshots:u,epoch:t,selector:r.selector,environment:r.environment}]}function x(e,r,t,n,a){var i=E(r,t),s=(0,o.default)((0,o.default)({},i),{},{id:n.clientEdgeDestinationID}),l=R(n.request,s,null==a?void 0:a.networkCacheConfig);return[u(e).prepare(l,y(e,l),null==a?void 0:a.fetchPolicy),g(e,l.request)]}function D(e,r,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var n=e.subscribe(r.snapshot,(function(n){t((function(t){var o=null;if("singular"!==t.kind||t.snapshot.selector!==n.selector||t.environment!==e){var a=k(t.environment,t);if(null!=a){var i=a[0],u=a[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:i}),o=i?u:t}else o=t}else o={kind:"singular",snapshot:n,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment};return o}))}));return function(){n.dispose()}}var o=r.snapshots.map((function(n,o){return e.subscribe(n,(function(n){t((function(t){var a,u=null;if("plural"!==t.kind||(null===(a=t.snapshots[o])||void 0===a?void 0:a.selector)!==n.selector||t.environment!==e){var s=k(t.environment,t);if(null!=s){var l=s[0],c=s[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),u=l?c:t}else u=t}else{var f=(0,i.default)(t.snapshots);f[o]=n,u={kind:"plural",snapshots:f,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment}}return u}))}))}));return function(){var e,r=(0,a.default)(o);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}function q(e,r){return null==r?{kind:"bailout",environment:e}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch(),selector:r,environment:e}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch(),selector:r,environment:e}}t(4446),e.exports=function(e,r,t,n){var o,i,c=d((function(){return P(e,r)}),[e,r]),v=!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural);v?null==r||Array.isArray(r)||l(!1):Array.isArray(r)&&l(!1),null==r||v&&Array.isArray(r)&&0===r.length||null!=c||l(!1);var m=s(),y=h((function(){return q(m,c)})),g=y[0],R=y[1],E=g,F=E.environment;if(!b(c,E.selector)||m!==E.environment){var I=q(m,c);R(I),E=I}var N=p(!1);if(f((function(){N.current=c}),[c]),!0===(null===(i=e.metadata)||void 0===i?void 0:i.hasClientEdges)){var A=d((function(){var t,o=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingClientEdges){var u;n=null!==(u=n)&&void 0!==u?u:[];var s,l=(0,a.default)(i.missingClientEdges);try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push(c)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(E),i=[];if(null!=o&&o.length){t=[];var u,s=(0,a.default)(o);try{for(s.s();!(u=s.n()).done;){var l=u.value,c=x(m,e,r,l,n),f=c[0],d=c[1];t.push(f),null!=d&&i.push(d)}}catch(e){s.e(e)}finally{s.f()}}return[t,i]}),[E,m,e,r,n]),O=A[0],w=A[1];if(w.length)throw Promise.all(w);f((function(){var e=u(m);if(null!=O&&O.length){var r,t=[],n=(0,a.default)(O);try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push(e.retain(o))}}catch(e){n.e(e)}finally{n.f()}return function(){for(var e=0,r=t;e<r.length;e++)r[e].dispose()}}}),[m,O])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(E)){var Q=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var t,n=null,o=(0,a.default)(e.snapshots);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i.missingLiveResolverFields){var u;n=null!==(u=n)&&void 0!==u?u:[];var s,l=(0,a.default)(i.missingLiveResolverFields);try{for(l.s();!(s=l.n()).done;){var c=s.value;n.push(c)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}return n}(E);if(null!=Q&&Q.length>0)throw Promise.all(Q.map((function(e){return m.getStore().getLiveResolverPromise(e)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||m!==F||!N.current||!b(N.current,c)){null==c&&l(!1);var M="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,T=C(m,e,M);if(T)throw T.promise}}!function(e,r){if("singular"===r.kind)S(e,r.snapshot.errorResponseFields);else if("plural"===r.kind){var t,n=(0,a.default)(r.snapshots);try{for(n.s();!(t=n.n()).done;){var o=t.value;S(e,o.errorResponseFields)}}catch(e){n.e(e)}finally{n.f()}}}(m,E);var L,U=p(null);if(f((function(){var e=U.current;if(null!=e){if(E.environment===e.environment&&E.selector===e.selector)return;e.dispose()}if("bailout"!==E.kind){var r=E,t=k(E.environment,E);if(null!==t){var n=t[0],o=t[1];if(n)return void R(o);r=o}var a=D(E.environment,r,R);U.current={dispose:a,selector:E.selector,environment:E.environment}}}),[E]),f((function(){if(null==U.current&&"bailout"!==E.kind){var e=D(E.environment,E,R);U.current={dispose:e,selector:E.selector,environment:E.environment}}return function(){var e;null===(e=U.current)||void 0===e||e.dispose(),U.current=null}}),[]),v){var V=null==r;L=d((function(){return"bailout"===E.kind?V?null:[]:("plural"!==E.kind&&l(!1),E.snapshots.map((function(e){return e.data})))}),[E,V])}else"bailout"===E.kind?L=null:("singular"!==E.kind&&l(!1),L=E.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===L||Array.isArray(L)&&L.length>0&&L.every((function(e){return void 0===e}))),L}},1743:(e,r,t)=>{var n=t(8156),o=n.useEffect,a=n.useRef;e.exports=function(){var e=a(!0);return o((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},5233:(e,r,t)=>{var n=t(2750),o=t(5056),a=t(8156),i=t(6658),u=i.__internal.getObservableForActiveRequest,s=i.getSelector,l=a.useEffect,c=a.useState,f=a.useMemo;e.exports=function(e,r){var t=n(),a=f((function(){var n=s(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&o(!1),u(t,n.owner))}),[t,e,r]),i=c(null!=a),d=i[0],p=i[1];return l((function(){var e;if(p(null!=a),null!=a){var r=function(){p(!1)};e=a.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[a]),d}},3899:(e,r,t)=>{var n=t(4734),o=t(1061),a=t(2750),i=t(6658).__internal.fetchQuery;e.exports=function(e,r,t){var u=a(),s=o(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:i(u,s),fetchPolicy:null==t?void 0:t.fetchPolicy,query:s,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},4734:(e,r,t)=>{var n=t(3187),o=t(1269),a=o.getQueryCacheIdentifier,i=o.getQueryResourceForEnvironment,u=t(7863),s=t(6337),l=t(2750),c=t(8156),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,o=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=l(),g=f(n),_=i(y),b=p(0),R=b[0],C=b[1],P=u(),E=P.startFetch,S=P.completeFetch,F="".concat(R,"-").concat(null!=v?v:""),k=a(y,r,c,m,F),x=g.wrapPrepareQueryResource((function(){return _.prepareWithIdentifier(k,r,o,c,m,{start:E,complete:S,error:S},g)})),D=h(!1);d((function(){return function(){D.current=!0}}),[]),d((function(){if(!0===D.current)return D.current=!1,void C((function(e){return e+1}));var e=_.retain(x,g);return function(){e.dispose()}}),[y,k]),d((function(){_.releaseTemporaryRetain(x)}));var q=x.fragmentNode,I=x.fragmentRef;return s(q,I,t)}},9601:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(3062),a=t(7863),i=t(1743),u=t(5233),s=t(4607),l=t(2750),c=t(5056),f=t(8156),d=f.useCallback,p=f.useEffect,h=f.useState,v=t(6658),m=v.__internal.fetchQuery,y=v.RelayFeatureFlags,g=v.createOperationDescriptor,_=v.getPaginationVariables,b=v.getRefetchMetadata,R=v.getSelector;t(4446),e.exports=function(e){return y.ENABLE_ACTIVITY_COMPATIBILITY?s(e):function(e){var r=e.direction,t=e.fragmentNode,s=e.fragmentRef,f=e.fragmentIdentifier,v=e.fragmentData,y=e.connectionPathInFragmentData,C=e.paginationRequest,P=e.paginationMetadata,E=e.componentDisplayName,S=e.observer,F=e.onReset,k=l(),x=a(),D=x.isFetchingRef,q=x.startFetch,I=x.disposeFetch,N=x.completeFetch,A=b(t,E).identifierInfo,O=null!=(null==A?void 0:A.identifierField)&&null!=v&&"object"==typeof v?v[A.identifierField]:null,w=i(),Q=h(k),M=Q[0],T=Q[1],L=h(f),U=L[0],V=L[1],j=u(t,s);k===M&&f===U||(I(),F(),T(k),V(f));var B=o(r,t,v,y),H=B.cursor,K=B.hasMore;return p((function(){return function(){I()}}),[I]),[d((function(e,o){var a=null==o?void 0:o.onComplete;if(!0!==w.current)return{dispose:function(){}};var i=R(t,s);if(!0===D.current||null==v||j)return a&&a(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&c(!1);var u=i.owner.variables,l=i.variables,f=null==o?void 0:o.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),p=_(r,e,H,d,(0,n.default)({},f),P);null!=A&&(p[A.identifierQueryVariableName]=O);var h=g(C,p,{force:!0});return m(k,h).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){q(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),a&&a(null)},error:function(e){N(),S.error&&S.error(e),a&&a(e)}})),{dispose:I}}),[k,O,r,H,q,I,N,D,j,v,t.name,s,E]),K,I]}(e)}},4607:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(3062),a=t(1743),i=t(5233),u=t(2750),s=t(5056),l=t(8156),c=l.useCallback,f=l.useRef,d=l.useState,p=t(6658),h=p.__internal.fetchQuery,v=p.createOperationDescriptor,m=p.getPaginationVariables,y=p.getRefetchMetadata,g=p.getSelector;t(4446),e.exports=function(e){var r=e.direction,t=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,b=e.connectionPathInFragmentData,R=e.paginationRequest,C=e.paginationMetadata,P=e.componentDisplayName,E=e.observer,S=e.onReset,F=u(),k=y(t,P).identifierInfo,x=null!=(null==k?void 0:k.identifierField)&&null!=_&&"object"==typeof _?_[k.identifierField]:null,D=f({kind:"none"}),q=d(F),I=q[0],N=q[1],A=d(p),O=A[0],w=A[1],Q=i(t,l),M=c((function(){"fetching"===D.current.kind&&D.current.subscription.unsubscribe(),D.current={kind:"none"}}),[]);(F!==I||p!==O)&&(M(),S(),N(F),w(p));var T=o(r,t,_,b),L=T.cursor,U=T.hasMore,V=a();return[c((function(e,o){var a=null==o?void 0:o.onComplete;if(!0!==V.current)return{dispose:function(){}};var i=g(t,l);if("fetching"===D.current.kind||null==_||Q)return a&&a(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&s(!1);var u=i.owner.variables,c=i.variables,f=null==o?void 0:o.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),c),p=m(r,e,L,d,(0,n.default)({},f),C);null!=k&&(p[k.identifierQueryVariableName]=x);var y=v(R,p,{force:!0});return h(F,y).subscribe((0,n.default)((0,n.default)({},E),{},{start:function(e){D.current={kind:"fetching",subscription:e},E.start&&E.start(e)},complete:function(){D.current={kind:"none"},E.complete&&E.complete(),a&&a(null)},error:function(e){D.current={kind:"none"},E.complete&&E.complete(),a&&a(e)}})),{dispose:function(){}}}),[F,x,r,L,Q,_,t.name,l,P]),U,M]}},1061:(e,r,t)=>{var n=t(6925),o=t(8156),a=t(6658),i=a.createOperationDescriptor,u=a.getRequest,s=o.useMemo;e.exports=function(e,r,t){var o=n(r),a=n(t||{});return s((function(){return i(u(e),o,a)}),[e,o,a])}},6925:(e,r,t)=>{var n=t(9125),o=t(8156).useState;e.exports=function(e){var r=o(e),t=r[0],a=r[1];return n(e,t)?t:(a(e),e)}},3115:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(1743),a=t(2750),i=t(8156),u=t(6658).commitMutation,s=i.useState,l=i.useEffect,c=i.useRef,f=i.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=a(),i=o(),d=c(t),p=c(e),h=c(new Set),v=s(!1),m=v[0],y=v[1],g=f((function(r){d.current===t&&p.current===e&&(h.current.delete(r),i.current&&y(h.current.size>0))}),[t,i,e]);return l((function(){d.current===t&&p.current===e||(h.current=new Set,i.current&&y(!1),d.current=t,p.current=e)}),[t,i,e]),[f((function(o){i.current&&y(!0);var a=r(t,(0,n.default)((0,n.default)({},o),{},{mutation:e,onCompleted:function(e,r){var t;g(a),null===(t=o.onCompleted)||void 0===t||t.call(o,e,r)},onError:function(e){var r;g(a),null===(r=o.onError)||void 0===r||r.call(o,e)},onUnsubscribe:function(){var e;g(a),null===(e=o.onUnsubscribe)||void 0===e||e.call(o)},onNext:function(){var e;null===(e=o.onNext)||void 0===e||e.call(o)}}));return h.current.add(a),a}),[g,r,t,i,e]),m]}},951:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(9601),a=t(3915),i=t(2750),u=t(275),s=t(8156),l=s.useCallback,c=(s.useDebugValue,s.useState),f=t(6658),d=f.getFragment,p=f.getFragmentIdentifier,h=f.getPaginationMetadata;function v(e){var r=i(),t=c(!1),a=t[0],u=t[1],s=function(e){var t,n=null===(t=r.getScheduler())||void 0===t?void 0:t.schedule;n?n((function(){u(e)})):u(e)},l={start:function(){return s(!0)},complete:function(){return s(!1)},error:function(){return s(!1)}},f=o((0,n.default)((0,n.default)({},e),{},{observer:l,onReset:function(){return s(!1)}}));return[f[0],f[1],a,f[2]]}e.exports=function(e,r){var t=d(e);u(t,"first argument of usePaginationFragment()");var o="usePaginationFragment()",i=h(t,o),s=i.connectionPathInFragmentData,c=i.paginationRequest,f=i.paginationMetadata,m=a(t,r,o),y=m.fragmentData,g=m.fragmentRef,_=m.refetch,b=p(t,g),R=v({componentDisplayName:o,connectionPathInFragmentData:s,direction:"backward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,paginationMetadata:f,paginationRequest:c}),C=R[0],P=R[1],E=R[2],S=R[3],F=v({componentDisplayName:o,connectionPathInFragmentData:s,direction:"forward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,paginationMetadata:f,paginationRequest:c}),k=F[0],x=F[1],D=F[2],q=F[3];return{data:y,loadNext:k,loadPrevious:C,hasNext:x,hasPrevious:P,isLoadingNext:D,isLoadingPrevious:E,refetch:l((function(e,r){return q(),S(),_(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[q,S,_])}}},2745:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(6242),a=t(9601),i=t(3915),u=t(2750),s=t(275),l=t(5056),c=t(8156),f=c.useCallback,d=(c.useDebugValue,c.useEffect),p=c.useLayoutEffect,h=c.useMemo,v=c.useRef,m=c.useState,y=t(6658),g=y.getFragment,_=y.getFragmentIdentifier,b=y.getPaginationMetadata,R=t(6658),C=R.ConnectionInterface,P=R.getSelector,E=R.getValueAtPath;e.exports=function(e,r,t,c,y){var R,S,F=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,k=g(e);s(k,"first argument of usePrefetchableForwardPaginationFragment_EXPERIMENTAL()");var x="usePrefetchableForwardPaginationFragment_EXPERIMENTAL()",D=b(k,x),q=D.connectionPathInFragmentData,I=D.paginationRequest,N=D.paginationMetadata,A=i(k,r,x),O=A.fragmentData,w=A.fragmentRef,Q=A.refetch,M=_(k,w),T=h((function(){var e=E(O,q);return null==e?null:e[C.get().EDGES]}),[q,O]),L=null==T?-1:T.length,U=m(null!=c?c:L),V=U[0],j=U[1],B=V;-1===V&&-1!==L&&j(B=null!=c?c:L);var H=u(),K=m(!1),G=K[0],W=K[1],z=m(!1),Y=z[0],X=z[1],J=v(0),Z=f((function(e){var r,t=null===(r=H.getScheduler())||void 0===r?void 0:r.schedule;t?t((function(){W(e)})):W(e)}),[H]),$=v(!1),ee=h((function(){return{start:function(){$.current=!0,W(!0)},complete:function(){$.current=!1,Z(!1)},error:function(){$.current=!1,Z(!1)}}}),[Z]),re=f((function(){if(!Y){var e,r=null===(e=H.getScheduler())||void 0===e?void 0:e.schedule;r?r((function(){j(-1)})):j(-1)}$.current=!1,Z(!1)}),[H,Y,Z]),te=a({componentDisplayName:x,connectionPathInFragmentData:q,direction:"forward",fragmentData:O,fragmentIdentifier:M,fragmentNode:k,fragmentRef:w,paginationMetadata:N,paginationRequest:I,observer:ee,onReset:re}),ne=te[0],oe=te[1],ae=te[2];p((function(){J.current=L-B}),[B,L]);var ie=null==y?void 0:y.UNSTABLE_extraVariables,ue=null==y?void 0:y.onComplete,se=f((function(e,r){(!$.current||J.current>=0)&&(J.current-=e,j((function(r){return r+e})),!$.current&&J.current<0&&ne(Math.max(F,Math.min(e,t-J.current)),null!=r?r:{onComplete:ue,UNSTABLE_extraVariables:"function"==typeof ie?ie({hasNext:oe,data:O,getServerEdges:function(){var e=P(le,T);return null==e?[]:("PluralReaderSelector"!==e.kind&&l(!1),e.selectors.map((function(e){return H.lookup(e).data})))}}):ie}))}),[t,ne,F,T,O,ie,ue]),le=null===(R=e.metadata)||void 0===R||null===(S=R.refetch)||void 0===S?void 0:S.edgesFragment;null==le&&l(!1),d((function(){if(!$.current&&!G&&!Y&&oe&&(L-B<t||B>L)){var e=ue;ne(Math.max(t-Math.max(L-B,0),B-L,F),{onComplete:e,UNSTABLE_extraVariables:"function"==typeof ie?ie({hasNext:oe,data:O,getServerEdges:function(){var e=P(le,T);return null==e?[]:("PluralReaderSelector"!==e.kind&&l(!1),e.selectors.map((function(e){return H.lookup(e).data})))}}):ie})}}),[oe,t,Y,ne,B,ie,ue,L,T,G,F,H,le]);var ce=Math.min(B,L),fe=h((function(){var e;return null!==(e=null==T?void 0:T.slice(0,ce))&&void 0!==e?e:[]}),[T,ce]),de=o(le,fe),pe=f((function(e,r){return ae(),X(!0),Q(e,(0,n.default)((0,n.default)({},r),{},{onComplete:function(e){var t,n,o=null===(t=H.getScheduler())||void 0===t?void 0:t.schedule;o?o((function(){X(!1),j(-1)})):(X(!1),j(-1)),null==r||null===(n=r.onComplete)||void 0===n||n.call(r,e)},__environment:void 0}))}),[ae,H,Q]);return{edges:de,data:O,loadNext:se,hasNext:oe||L>B,isLoadingNext:G&&B>L,refetch:pe}}},4617:(e,r,t)=>{var n=t(4734),o=t(1061),a=t(2750),i=t(5056),u=(t(8156).useDebugValue,t(6658).__internal),s=u.fetchQueryDeduped,l=u.fetchQuery;t(4446),e.exports=function(e,r,t){var u,c=a(),f=r.fetchKey,d=r.fetchPolicy,p=r.source,h=r.variables,v=r.networkCacheConfig,m=o(e,h,v);if("PreloadedQuery_DEPRECATED"===r.kind)m.request.node.params.name!==r.name&&i(!1),u={componentDisplayName:"usePreloadedQuery()",fetchKey:f,fetchObservable:s(c,m.request.identifier,(function(){return c===r.environment&&null!=p?c.executeWithSource({operation:m,source:p}):c.execute({operation:m})})),fetchPolicy:d,query:m,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var y=l(c,m);u={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=p&&c===r.environment?p.ifEmpty(y):(r.environment,y),fetchKey:f,fetchPolicy:d,query:m,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return n(u)}},8876:(e,r,t)=>{var n=(0,t(5275).default)(t(5765)),o=t(428).loadQuery,a=t(1743),i=t(2657),u=t(2750),s=t(8156),l=s.useCallback,c=s.useEffect,f=s.useRef,d=s.useState,p=t(6658),h=p.RelayFeatureFlags,v=p.getRequest,m={kind:"NullQueryReference"};function y(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==v(e).params.metadata.live}e.exports=function(e,r){return h.ENABLE_ACTIVITY_COMPATIBILITY?i(e,r):function(e,r){var t=null!=r?r:m,i=u(),s=a(),p=f(new Set([t])),h=d((function(){return t})),v=h[0],g=h[1],_=d((function(){return t})),b=_[0],R=_[1];t!==b&&(p.current.add(t),R(t),g(t));var C=l((function(){s.current&&(p.current.add(m),g(m))}),[s]),P=l((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(s.current){var a,u=o(null!==(a=null==t?void 0:t.__environment)&&void 0!==a?a:i,e,r,n);p.current.add(u),g(u)}}),[i,e,g,s]),E=f(!1);return c((function(){return function(){E.current=!0}}),[]),c((function(){if(!0===E.current)return E.current=!1,void("NullQueryReference"!==v.kind&&P(v.variables,{fetchPolicy:v.fetchPolicy,networkCacheConfig:v.networkCacheConfig}));var r=p.current;if(s.current){var t,o=(0,n.default)(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(a===v)break;r.delete(a),"NullQueryReference"!==a.kind&&(y(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){o.e(e)}finally{o.f()}}}),[v,s,P,e]),c((function(){return function(){var r,t=(0,n.default)(p.current);try{for(t.s();!(r=t.n()).done;){var o=r.value;"NullQueryReference"!==o.kind&&(y(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===v.kind?null:v,P,C]}(e,r)}},2657:(e,r,t)=>{var n=(0,t(5275).default)(t(5765)),o=t(428).loadQuery,a=t(1743),i=t(2750),u=t(8156),s=u.useCallback,l=u.useEffect,c=u.useInsertionEffect,f=u.useRef,d=u.useState,p=t(6658).getRequest,h={kind:"NullQueryReference"};function v(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:h,u=i(),p=a(),m=f(null);null==m.current&&(m.current=new Set([t]));var y,g=d((function(){return t})),_=g[0],b=g[1],R=d((function(){return t})),C=R[0],P=R[1];t!==C&&(null===(y=m.current)||void 0===y||y.add(t),P(t),b(t));var E=s((function(){var e;p.current&&(null===(e=m.current)||void 0===e||e.add(h),b(h))}),[p]),S=s((function(r,t){var n,a;if(p.current){var i=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t,s=o(null!==(n=null==t?void 0:t.__environment)&&void 0!==n?n:u,e,r,i);null===(a=m.current)||void 0===a||a.add(s),b(s)}}),[u,e,b,p]),F=s((function(e,r){var t,o,a=null!==(t=m.current)&&void 0!==t?t:new Set,i=(0,n.default)(a);try{for(i.s();!(o=i.n()).done;){var u=o.value;u!==r&&"NullQueryReference"!==u.kind&&(v(e)?u.dispose&&u.dispose():u.releaseQuery&&u.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}),[]),k=f(null);return l((function(){return F(e,_),null!=k.current&&(clearTimeout(k.current),k.current=null),function(){k.current=setTimeout((function(){F(e,null)}),3e5)}}),[e,_]),c((function(){return function(){k.current&&clearTimeout(k.current),k.current=null,F(e,null)}}),[e]),["NullQueryReference"===_.kind?null:_,S,E]}},8874:(e,r,t)=>{var n=t(3915),o=t(275),a=(t(8156).useDebugValue,t(6658).getFragment);e.exports=function(e,r){var t=a(e);o(t,"first argument of useRefetchableFragment()");var i=n(t,r,"useRefetchableFragment()");return[i.fragmentData,i.refetch]}},3915:(e,r,t)=>{var n=(0,t(5275).default)(t(6175)),o=t(3187),a=t(1269).getQueryResourceForEnvironment,i=t(9175),u=t(6337),s=t(1743),l=t(8876),c=t(2750),f=t(5056),d=t(8156),p=d.useCallback,h=d.useContext,v=d.useReducer,m=t(6658),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,_=m.getFragmentIdentifier,b=m.getRefetchMetadata,R=m.getSelector,C=m.getValueAtPath;function P(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(t=r.refetchEnvironment)&&void 0!==t?t:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}t(4446),e.exports=function(e,r,t){var d=c(),m=b(e,t),E=m.refetchableRequest,S=m.fragmentRefPathInResponse,F=m.identifierInfo,k=_(e,r),x=v(P,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:k,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=x[0],q=x[1],I=D.fetchPolicy,N=D.mirroredEnvironment,A=D.mirroredFragmentIdentifier,O=D.onComplete,w=D.refetchEnvironment,Q=D.refetchQuery,M=D.renderPolicy,T=null!=w?w:d,L=a(T),U=h(o),V=T!==N||k!==A,j=l(E),B=j[0],H=j[1],K=j[2],G=r;if(V)q({type:"reset",environment:T,fragmentIdentifier:k}),K();else if(null!=Q&&null!=B){var W=function(e){O&&O(null!=e?e:null)},z=null!=B.source?B.source:y(T,Q),Y=U.wrapPrepareQueryResource((function(){return L.prepare(Q,z,I,M,{error:W,complete:function(){W()}},B.fetchKey,U)})),X=i(T,Y.fragmentNode,Y.fragmentRef,t).data;null==X&&f(!1),G=C(X,S)}var J=u(e,G,t),Z=function(e,r,t,o,a,i,u,l,c,f,d){var h=s(),v=null!=(null==l?void 0:l.identifierField)&&null!=o&&"object"==typeof o?o[l.identifierField]:null;return p((function(e,o){if(!0!==h.current)return{dispose:function(){}};var a,u,s=null==o?void 0:o.__environment,p=null==o?void 0:o.fetchPolicy,m=null==o?void 0:o.UNSTABLE_renderPolicy,y=null==o?void 0:o.onComplete,_=R(i,f);if(null==_)a={},u={};else if("PluralReaderSelector"===_.kind){var b,C,P,E;a=null!==(b=null===(C=_.selectors[0])||void 0===C?void 0:C.owner.variables)&&void 0!==b?b:{},u=null!==(P=null===(E=_.selectors[0])||void 0===E?void 0:E.variables)&&void 0!==P?P:{}}else a=_.owner.variables,u=_.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},a),u),e);null==l||e.hasOwnProperty(l.identifierQueryVariableName)||(S[l.identifierQueryVariableName]=v);var F=g(d,S,{force:!0});return c(F.request.variables,{fetchPolicy:p,__environment:s,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:p,onComplete:y,refetchEnvironment:s,refetchQuery:F,renderPolicy:m}),{dispose:t}}),[a,r,t,v,c])}(0,q,K,J,k,e,0,F,H,r,E);return{fragmentData:J,fragmentRef:G,refetch:Z}}},2750:(e,r,t)=>{var n=t(9888),o=t(5056),a=t(8156).useContext;e.exports=function(){var e=a(n);return null==e&&o(!1),e.environment}},275:(e,r,t)=>{t(5813),t(4446),e.exports=function(e,r){}},8050:(e,r,t)=>{var n=t(2750),o=t(8156),a=o.useEffect,i=o.useRef;e.exports=function(e,r){var t=n(),o=i(null),u=Array.from(e).sort().join("");return a((function(){var n=t.getStore(),a=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(a,r);return o.current=i,function(){return i.dispose()}}),[u,r,t]),{dispose:function(){null!=o.current&&o.current.dispose()}}}},5746:(e,r,t)=>{var n=t(2750),o=t(8156).useEffect,a=t(6658).requestSubscription;e.exports=function(e,r){var t=null!=r?r:a,i=n();o((function(){return t(i,e).dispose}),[i,e,t])}},5813:(e,r,t)=>{var n=t(8156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},5383:r=>{r.exports=e},5765:e=>{e.exports=r},311:e=>{e.exports=t},4924:e=>{e.exports=n},8296:e=>{e.exports=o},5275:e=>{e.exports=a},6175:e=>{e.exports=i},5264:e=>{e.exports=u},642:e=>{e.exports=s},9125:e=>{e.exports=l},4446:e=>{e.exports=c},5056:e=>{e.exports=f},8156:e=>{e.exports=d},6658:e=>{e.exports=p}},v={};return function e(r){var t=v[r];if(void 0!==t)return t.exports;var n=v[r]={exports:{}};return h[r](n,n.exports,e),n.exports}(5265)})()));
@@ -14,7 +14,7 @@
14
14
  /* eslint-disable no-unused-vars */
15
15
 
16
16
  import type {JSResourceReference} from 'JSResourceReference';
17
- import type {AbstractComponent, ElementConfig} from 'react';
17
+ import type {ComponentType, ElementConfig} from 'react';
18
18
  import type {
19
19
  CacheConfig,
20
20
  FetchPolicy,
@@ -178,7 +178,7 @@ export type EntryPointComponent<
178
178
  TPreloadedEntryPoints = {},
179
179
  TRuntimeProps = {},
180
180
  TExtraProps = null,
181
- > = AbstractComponent<
181
+ > = ComponentType<
182
182
  EntryPointProps<
183
183
  TPreloadedQueries,
184
184
  TPreloadedEntryPoints,
@@ -95,7 +95,7 @@ export type MatchPointer = {
95
95
 
96
96
  export type MatchContainerProps<TProps: {...}, TFallback: React.Node> = {
97
97
  +fallback?: ?TFallback,
98
- +loader: (module: mixed) => React.AbstractComponent<TProps>,
98
+ +loader: (module: mixed) => React.ComponentType<TProps>,
99
99
  +match: ?MatchPointer | ?TypenameOnlyPointer,
100
100
  +props?: TProps,
101
101
  };
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @format
9
+ * @oncall relay
10
+ */
11
+
12
+ 'use strict';
13
+
14
+ import type {Direction, ReaderFragment} from 'relay-runtime';
15
+
16
+ const invariant = require('invariant');
17
+ const {ConnectionInterface, getValueAtPath} = require('relay-runtime');
18
+
19
+ function getConnectionState(
20
+ direction: Direction,
21
+ fragmentNode: ReaderFragment,
22
+ fragmentData: mixed,
23
+ connectionPathInFragmentData: $ReadOnlyArray<string | number>,
24
+ ): {
25
+ cursor: ?string,
26
+ hasMore: boolean,
27
+ } {
28
+ const {
29
+ EDGES,
30
+ PAGE_INFO,
31
+ HAS_NEXT_PAGE,
32
+ HAS_PREV_PAGE,
33
+ END_CURSOR,
34
+ START_CURSOR,
35
+ } = ConnectionInterface.get();
36
+ const connection = getValueAtPath(fragmentData, connectionPathInFragmentData);
37
+ if (connection == null) {
38
+ return {cursor: null, hasMore: false};
39
+ }
40
+
41
+ invariant(
42
+ typeof connection === 'object',
43
+ 'Relay: Expected connection in fragment `%s` to have been `null`, or ' +
44
+ 'a plain object with %s and %s properties. Instead got `%s`.',
45
+ fragmentNode.name,
46
+ EDGES,
47
+ PAGE_INFO,
48
+ connection,
49
+ );
50
+
51
+ const edges = connection[EDGES];
52
+ const pageInfo = connection[PAGE_INFO];
53
+ if (edges == null || pageInfo == null) {
54
+ return {cursor: null, hasMore: false};
55
+ }
56
+
57
+ invariant(
58
+ Array.isArray(edges),
59
+ 'Relay: Expected connection in fragment `%s` to have a plural `%s` field. ' +
60
+ 'Instead got `%s`.',
61
+ fragmentNode.name,
62
+ EDGES,
63
+ edges,
64
+ );
65
+ invariant(
66
+ typeof pageInfo === 'object',
67
+ 'Relay: Expected connection in fragment `%s` to have a `%s` field. ' +
68
+ 'Instead got `%s`.',
69
+ fragmentNode.name,
70
+ PAGE_INFO,
71
+ pageInfo,
72
+ );
73
+
74
+ const cursor =
75
+ direction === 'forward'
76
+ ? pageInfo[END_CURSOR] ?? null
77
+ : pageInfo[START_CURSOR] ?? null;
78
+ invariant(
79
+ cursor === null || typeof cursor === 'string',
80
+ 'Relay: Expected page info for connection in fragment `%s` to have a ' +
81
+ 'valid `%s`. Instead got `%s`.',
82
+ fragmentNode.name,
83
+ START_CURSOR,
84
+ cursor,
85
+ );
86
+
87
+ let hasMore;
88
+ if (direction === 'forward') {
89
+ hasMore = cursor != null && pageInfo[HAS_NEXT_PAGE] === true;
90
+ } else {
91
+ hasMore = cursor != null && pageInfo[HAS_PREV_PAGE] === true;
92
+ }
93
+
94
+ return {cursor, hasMore};
95
+ }
96
+
97
+ module.exports = getConnectionState;
@@ -22,7 +22,6 @@ import type {
22
22
  RequestDescriptor,
23
23
  Snapshot,
24
24
  } from 'relay-runtime';
25
- import type {MissingLiveResolverField} from 'relay-runtime/store/RelayStoreTypes';
26
25
 
27
26
  const LRUCache = require('../LRUCache');
28
27
  const {getQueryResourceForEnvironment} = require('../QueryResource');
@@ -98,7 +97,7 @@ function hasMissingClientEdges(snapshot: SingularOrPluralSnapshot): boolean {
98
97
 
99
98
  function missingLiveResolverFields(
100
99
  snapshot: SingularOrPluralSnapshot,
101
- ): ?$ReadOnlyArray<MissingLiveResolverField> {
100
+ ): ?$ReadOnlyArray<DataID> {
102
101
  if (Array.isArray(snapshot)) {
103
102
  return snapshot
104
103
  .map(s => s.missingLiveResolverFields)
@@ -449,10 +448,10 @@ class FragmentResourceImpl {
449
448
  );
450
449
  const parentQueryPromiseResultPromise = parentQueryPromiseResult?.promise; // for refinement
451
450
  const missingResolverFieldPromises =
452
- missingLiveResolverFields(snapshot)?.map(({liveStateID}) => {
451
+ missingLiveResolverFields(snapshot)?.map(liveStateID => {
453
452
  const store = environment.getStore();
454
453
 
455
- // $FlowFixMe[prop-missing] This is expected to be a LiveResolverStore
454
+ // $FlowFixMe[prop-missing] This is expected to be a RelayModernStore
456
455
  return store.getLiveResolverPromise(liveStateID);
457
456
  }) ?? [];
458
457
 
@@ -559,21 +558,12 @@ class FragmentResourceImpl {
559
558
  _throwOrLogErrorsInSnapshot(snapshot: SingularOrPluralSnapshot) {
560
559
  if (Array.isArray(snapshot)) {
561
560
  snapshot.forEach(s => {
562
- handlePotentialSnapshotErrors(
563
- this._environment,
564
- s.missingRequiredFields,
565
- s.relayResolverErrors,
566
- s.errorResponseFields,
567
- s.selector.node.metadata?.throwOnFieldError ?? false,
568
- );
561
+ handlePotentialSnapshotErrors(this._environment, s.errorResponseFields);
569
562
  });
570
563
  } else {
571
564
  handlePotentialSnapshotErrors(
572
565
  this._environment,
573
- snapshot.missingRequiredFields,
574
- snapshot.relayResolverErrors,
575
566
  snapshot.errorResponseFields,
576
- snapshot.selector.node.metadata?.throwOnFieldError ?? false,
577
567
  );
578
568
  }
579
569
  }
@@ -773,8 +763,6 @@ class FragmentResourceImpl {
773
763
  missingLiveResolverFields: currentSnapshot.missingLiveResolverFields,
774
764
  seenRecords: currentSnapshot.seenRecords,
775
765
  selector: currentSnapshot.selector,
776
- missingRequiredFields: currentSnapshot.missingRequiredFields,
777
- relayResolverErrors: currentSnapshot.relayResolverErrors,
778
766
  errorResponseFields: currentSnapshot.errorResponseFields,
779
767
  };
780
768
  if (updatedData !== renderData) {