react-relay 0.0.0-main-2f563f49 → 0.0.0-main-c20f3146
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContext.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/lib/relay-hooks/useRefetchableFragmentNode.js +1 -1
- package/package.json +2 -2
- package/react-relay-hooks.js +2 -2
- package/react-relay-hooks.min.js +2 -2
- package/react-relay-legacy.js +1 -1
- package/react-relay-legacy.min.js +1 -1
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/relay-hooks/useRefetchableFragmentNode.js.flow +1 -1
package/ReactRelayContext.js
CHANGED
package/hooks.js
CHANGED
package/index.js
CHANGED
package/legacy.js
CHANGED
@@ -310,7 +310,7 @@ function useRefetchFunction(componentDisplayName, dispatch, disposeQuery, fragme
|
|
310
310
|
// - fragmentNode and parentFragmentRef are also captured by including
|
311
311
|
// fragmentIdentifier
|
312
312
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
313
|
-
[fragmentIdentifier, dispatch, disposeQuery, identifierValue]);
|
313
|
+
[fragmentIdentifier, dispatch, disposeQuery, identifierValue, loadQuery]);
|
314
314
|
}
|
315
315
|
|
316
316
|
var debugFunctions;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-relay",
|
3
3
|
"description": "A framework for building GraphQL-driven React applications.",
|
4
|
-
"version": "0.0.0-main-
|
4
|
+
"version": "0.0.0-main-c20f3146",
|
5
5
|
"keywords": [
|
6
6
|
"graphql",
|
7
7
|
"relay",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"fbjs": "^3.0.0",
|
17
17
|
"invariant": "^2.2.4",
|
18
18
|
"nullthrows": "^1.1.1",
|
19
|
-
"relay-runtime": "0.0.0-main-
|
19
|
+
"relay-runtime": "0.0.0-main-c20f3146"
|
20
20
|
},
|
21
21
|
"peerDependencies": {
|
22
22
|
"react": "^16.9.0 || ^17"
|
package/react-relay-hooks.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
|
-
* Relay v0.0.0-main-
|
2
|
+
* Relay v0.0.0-main-c20f3146
|
3
3
|
*/
|
4
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual"],t):"object"==typeof exports?exports.ReactRelayHooks=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=t(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"])}(window,(function(e,t,r,n,a,i,o,u,s,c,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=23)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(3),a=r(0).useContext,i=r(12);e.exports=function(){var e=a(i);return null==e&&n(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(3),i=r(0),o=r(1),u=o.Observable,s=o.PreloadableQueryRegistry,c=o.RelayFeatureFlags,l=o.ReplaySubject,f=o.__internal.fetchQueryDeduped,d=o.createOperationDescriptor,p=o.getRequest,h=o.getRequestIdentifier,m=r(5),v=null,y=100001;e.exports={loadQuery:function(e,t,r,o,g){var b,R,_,P,E=null===(b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===b||null===(R=b.ReactCurrentDispatcher)||void 0===R?void 0:R.current;m(null==v||E!==v,"Relay: `%s` should not be called inside a React render function.",null!==(_=null==o?void 0:o.__nameForWarning)&&void 0!==_?_:"loadQuery"),y++;var k,x,S,q,w,C,I=null!==(P=null==o?void 0:o.fetchPolicy)&&void 0!==P?P:"store-or-network",F=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),D=!1,A=function(t,r){return D=!0,e.executeWithSource({operation:t,source:r})},N=new l,Q=u.create((function(e){return N.subscribe(e)})),O=null,M=!1,T=function(t){var n;M=!0;var a=new l;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(t,r);n=f(e,i,(function(){return e.getNetwork().execute(t,r,F)}))}else{n=e.getNetwork().execute(t,r,F)}var o=n.subscribe({error:function(e){O=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return x=o,u.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),x()}}))},U=function(t,r){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(M=!0);var n=f(e,t.request.identifier,r).subscribe({error:function(e){N.error(e)},next:function(e){N.next(e)},complete:function(){N.complete()}});S=n.unsubscribe},L=function(t){var n=d(t,r,F);(k=e.retain(n),"store-only"!==I)&&(("store-or-network"!==I||"available"!==e.check(n).status)&&U(n,(function(){var e=T(t.params);return A(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(C=(q=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",q.name);var j=s.get(C);if(null!=j)L(j);else{var W="store-only"===I?null:T(q),K=s.onLoad(C,(function(t){w();var n=d(t,r,F);k=e.retain(n),null!=W&&U(n,(function(){return A(n,W)}))}));w=K.dispose}}else{var V=p(t);C=null!=(q=V.params).cacheID?q.cacheID:q.id,L(V)}var B=!1,H=!1,z=!1,Y=function(){H||(k&&k.dispose(),H=!0)},G=function(){z||(D?S&&S():x&&x(),w&&w(),z=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){B||(Y(),G(),B=!0)},releaseQuery:Y,cancelNetworkRequest:G,fetchKey:y,id:C,get isDisposed(){return B||H},get networkError(){return O},name:q.name,networkCacheConfig:F,fetchPolicy:I,source:M?Q:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===v&&(v=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(0),a=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t,r){"use strict";var n=r(15).getFragmentResourceForEnvironment,a=r(2),i=r(0),o=i.useEffect,u=i.useRef,s=i.useState,c=r(1).getFragmentIdentifier,l=r(5);e.exports=function(e,t,r){var i=a(),f=n(i),d=u(!1),p=s(0)[1],h=c(e,t),m=f.readWithIdentifier(e,t,h,r),v=u(!0);function y(){!1!==d.current&&!1!==v.current&&p((function(e){return e+1}))}return o((function(){d.current=!0;var e=f.subscribe(m,y);return function(){d.current=!1,e.dispose()}}),[i,h]),null!=t&&(void 0===m.data||Array.isArray(m.data)&&m.data.length>0&&m.data.every((function(e){return void 0===e})))&&l(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),{data:m.data,disableStoreUpdates:function(){v.current=!1},enableStoreUpdates:function(){v.current=!0,f.checkMissedUpdates(m)[0]&&y()}}}},function(e,t,r){"use strict";var n=r(0).useRef,a=r(5);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(6).loadQuery;e.exports=function e(t,r,a){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var o=r.getPreloadProps(a),u=o.queries,s=o.entryPoints,c=o.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var r=u[e],a=r.environmentProviderOptions,i=r.options,o=r.parameters,s=r.variables,c=t.getEnvironment(a);l[e]=n(c,o,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=s&&Object.keys(s).forEach((function(r){var n=s[r];if(null!=n){var a=n.entryPoint,i=n.entryPointParams;f[r]=e(t,a,i)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=c?c:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return t},get isDisposed(){return d},queries:l,rootModuleID:r.root.getModuleId()}}},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(4),a=n(r(7)),i=n(r(28)),o=r(16),u=r(3),s=r(1),c=s.getFragmentIdentifier,l=s.getPendingOperationsForFragment,f=s.getSelector,d=s.isPromise,p=s.recycleNodesInto,h=s.reportMissingRequiredFields,m="function"==typeof WeakMap,v=Object.freeze([]);function y(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function g(e,t,r){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:y(t),storeEpoch:r}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:y(t),storeEpoch:r}}var b=function(){function e(e){this._environment=e,this._cache=o.create(1e6)}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,c(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var i,o=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var s=o.getStore().getEpoch();if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||u(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=a?" for key `".concat(a,"`"):"",e.name,typeof t,e.name),0===t.length))return{cacheKey:r,data:v,isMissingData:!1,snapshot:v,storeEpoch:s};var c=this._cache.get(r);if(null!=c){if("pending"===c.kind&&d(c.promise))throw o.__log({name:"suspense.fragment",data:c.result.data,fragment:e,isRelayHooks:!0,isMissingData:c.result.isMissingData,isPromiseCached:!0,pendingOperations:c.pendingOperations}),c.promise;if("done"===c.kind&&c.result.snapshot)return this._reportMissingRequiredFieldsInSnapshot(c.result.snapshot),c.result}var l=f(e,t);null==l&&u(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,n,e.name,null==a?"a fragment reference":"the `".concat(a,"`"),n);var p="PluralReaderSelector"===l.kind?l.selectors.map((function(e){return o.lookup(e)})):o.lookup(l),h=g(r,p,s);if(!h.isMissingData)return this._reportMissingRequiredFieldsInSnapshot(p),this._cache.set(r,{kind:"done",result:h}),h;var m="PluralReaderSelector"===l.kind?l.selectors[0].owner:l.owner,y=this._getAndSavePromiseForFragmentRequestInFlight(r,e,m,h);if(null!=y&&d(y.promise))throw o.__log({name:"suspense.fragment",data:h.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:h.isMissingData,pendingOperations:y.pendingOperations}),y.promise;return this._reportMissingRequiredFieldsInSnapshot(p),g(r,p,s)},t._reportMissingRequiredFieldsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&h(t._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&h(this._environment,e.missingRequiredFields)},t.readSpec=function(e,t,r){var n={};for(var a in e)n[a]=this.read(e[a],t[a],r,a);return n},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var o=this.checkMissedUpdates(e),s=o[0],c=o[1];s&&t();var l=[];return Array.isArray(i)?(Array.isArray(c)||u(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),c.forEach((function(e,i){l.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();r._updatePluralSnapshot(a,c,e,i,o),t()})))}))):((null==c||Array.isArray(c))&&u(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),l.push(n.subscribe(c,(function(e){var i=n.getStore().getEpoch();r._cache.set(a,{kind:"done",result:g(a,e,i)}),t()})))),{dispose:function(){l.map((function(e){return e.dispose()})),r._cache.delete(a)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,r=e.snapshot;if(!r)return[!1,null];var n;if(n=t.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(r)){var o=!1,u=[];return r.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,s=n.data,c=p(i,s);c!==i&&(n=(0,a.default)((0,a.default)({},n),{},{data:c}),o=!0),u[r]=n})),o&&this._cache.set(i,{kind:"done",result:g(i,u,n)}),[o,u]}var s=t.lookup(r.selector),c=r.data,l=s.data,f=p(c,l),d={data:f,isMissingData:s.isMissingData,seenRecords:s.seenRecords,selector:s.selector,missingRequiredFields:s.missingRequiredFields};return f!==c&&this._cache.set(i,{kind:"done",result:g(i,d,n)}),[f!==c,d]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,r,n){var a=this,i=l(this._environment,t,r);if(null==i)return null;var o=i.promise,u=i.pendingOperations,s=o.then((function(){a._cache.delete(e)})).catch((function(t){a._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},t._updatePluralSnapshot=function(e,t,r,n,a){var o,u=this._cache.get(e);if(d(u))R(r.selector.node.name);else{var s=null==u||null===(o=u.result)||void 0===o?void 0:o.snapshot;if(!s||Array.isArray(s)){var c=s?(0,i.default)(s):(0,i.default)(t);c[n]=r,this._cache.set(e,{kind:"done",result:g(e,c,a)})}else R(r.selector.node.name)}},e}();function R(e){u(!1,"Relay: Expected to find cached data for plural fragment `%s` when receiving a subscription. If you're seeing this, this is likely a bug in Relay.",e)}function _(e){return new b(e)}var P=m?new WeakMap:new Map;e.exports={createFragmentResource:_,getFragmentResourceForEnvironment:function(e){var t=P.get(e);if(t)return t;var r=_(e);return P.set(e,r),r}}},function(e,t,r){"use strict";var n=r(3),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},function(e,t,r){"use strict";var n=r(9),a=r(18),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,u=r(19),s=r(10),c=r(2),l=r(0),f=l.useContext,d=l.useEffect,p=l.useState,h=l.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,l=e.fetchPolicy,m=e.fetchKey,v=e.renderPolicy,y=c(),g=f(n),b=o(y),R=p(0),_=R[0],P=R[1],E=u(),k=E.startFetch,x=E.completeFetch,S="".concat(_,"-").concat(null!=m?m:""),q=i(y,t,l,v,S),w=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(q,t,a,l,v,{start:k,complete:x,error:x},g)})),C=h(!1);d((function(){return function(){C.current=!0}}),[]),d((function(){if(!0===C.current)return C.current=!1,void P((function(e){return e+1}));var e=b.retain(w,g);return function(){e.dispose()}}),[y,q]),d((function(){b.releaseTemporaryRetain(w)}));var I=w.fragmentNode,F=w.fragmentRef;return s(I,F,r).data}},function(e,t,r){"use strict";var n=r(4),a=n(r(7)),i=n(r(30)),o=r(16),u=r(3),s=r(1).isPromise,c=r(5),l="function"==typeof WeakMap;function f(e){return void 0!==e.request.node.params.metadata.live}function d(e,t,r,n,a){var i=null!=r?r:"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(o,"-").concat(t.request.identifier);return null!=a?"".concat(u,"-").concat(a):u}function p(e,t){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var h=2e5;function m(e,t,r,n,a,i){var o=f(t),s=n,c=0,l=null,d=null,p=a,m=function(e){return 1===++c&&(l=e.retain(t)),{dispose:function(){0===(c=Math.max(0,c-1))&&(null==l&&u(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),l.dispose(),l=null),i(v)}}},v={cacheIdentifier:e,id:h++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return s},setValue:function(e){s=e},getRetainCount:function(){return c},getNetworkSubscription:function(){return p},setNetworkSubscription:function(e){o&&null!=p&&p.unsubscribe(),p=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var t=m(e),r=null,n=function(){clearTimeout(r),r=null,d=null,t.dispose(),o&&c<=0&&null!=p&&p.unsubscribe()};return r=setTimeout(n,3e5),null!=d&&d(),d=n,{dispose:function(){d&&d()}}},permanentRetain:function(e){var t=m(e);return null!=d&&(d(),d=null),{dispose:function(){t.dispose(),o&&c<=0&&null!=p&&p.unsubscribe()}}},releaseTemporaryRetain:function(){null!=d&&(d(),d=null)}};return v}var v=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,i,o){var u=d(this._environment,e,r,n,i);return this.prepareWithIdentifier(u,e,t,r,n,a,o)},t.prepareWithIdentifier=function(e,t,r,n,i,o,u){var c=this._environment,l=null!=n?n:"store-or-network",f=null!=i?i:c.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,h=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,t,r,l,f,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),p=d.temporaryRetain(c);var m=d.getValue();if(s(m))throw c.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:h,operation:t,queryAvailability:d.operationAvailability,renderPolicy:f}),m;if(m instanceof Error)throw m;return m},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,null,e,null),o=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){o.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=d(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var i=this._cache.get(e);return null==i&&(i=m(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,i)),i},t._fetchAndSaveQuery=function(e,t,r,n,i,o,s){var l,d,h=this,v=this._environment,y=v.check(t),g=y.status,b="available"===g,R=b||"partial"===i&&"stale"!==g,_=function(){};switch(n){case"store-only":l=!1,d=!0;break;case"store-or-network":l=!b,d=R;break;case"store-and-network":l=!0,d=R;break;case"network-only":default:l=!0,d=!1}if(d){var P=p(t,e),E=m(e,t,y,P,null,this._clearCacheEntry);this._cache.set(e,E)}if(l){var k,x=p(t,e);r.subscribe({start:function(r){k=r;var n=h._cache.get(e);n&&n.setNetworkSubscription(k);var i=null==s?void 0:s.start;i&&i((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){f(t)&&r.unsubscribe()}}))},next:function(){var r=h._getOrCreateCacheEntry(e,t,y,x,k);r.processedPayloadsCount+=1,r.setValue(x),_();var n=null==s?void 0:s.next;null!=n&&n(v.lookup(t.fragment))},error:function(r){var n=h._getOrCreateCacheEntry(e,t,y,r,k);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%` returned an error: `%`:`%`.",t.fragment.node.name,r.message,r.stack),_(),k=null,n.setNetworkSubscription(null);var a=null==s?void 0:s.error;a&&a(r)},complete:function(){_(),k=null;var t=h._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var S=this._cache.get(e);if(!S){var q=new Promise((function(e){_=e}));q.displayName="Relay("+t.fragment.node.name+")",S=m(e,t,y,q,k,this._clearCacheEntry),this._cache.set(e,S)}}else{var w=null==s?void 0:s.complete;w&&w()}var C=this._cache.get(e);return null==C&&u(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),v.__log({name:"queryresource.fetch",resourceID:C.id,operation:t,profilerContext:o,fetchPolicy:n,renderPolicy:i,queryAvailability:y,shouldFetch:l}),C},e}();function y(e){return new v(e)}var g=l?new WeakMap:new Map;e.exports={createQueryResource:y,getQueryResourceForEnvironment:function(e){var t=g.get(e);if(t)return t;var r=y(e);return g.set(e,r),r},getQueryCacheIdentifier:d}},function(e,t,r){"use strict";var n=r(0),a=n.useCallback,i=n.useEffect,o=n.useRef;e.exports=function(){var e=o(null),t=o(!1),r=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),n=a((function(r){e.current=r,t.current=!0}),[]),u=a((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:n,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(31),a=r(0),i=r(1),o=i.createOperationDescriptor,u=i.getRequest,s=a.useMemo;e.exports=function(e,t,r){var a=n(t)[0],i=n(r||{})[0];return s((function(){return o(u(e),a,i)}),[e,a,i])}},function(e,t,r){"use strict";var n,a=r(4)(r(7)),i=r(15).getFragmentResourceForEnvironment,o=r(9),u=r(18).getQueryResourceForEnvironment,s=r(10),c=r(8),l=r(22),f=r(2),d=r(3),p=r(0),h=p.useCallback,m=p.useContext,v=p.useReducer,y=r(1),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,R=y.getFragmentIdentifier,_=y.getRefetchMetadata,P=y.getSelector,E=y.getValueAtPath,k=r(5);function x(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n){var a=r(1).Record,i=null==e?void 0:e.id;if(1!==t.length||"node"!==t[0]||null==i)return null;var o=n.getStore().getSource().get(i),u=o&&a.getType(o);return null==u?null:{id:i,typename:u}},checkSameTypeAfterRefetch:function(e,t,n,a){var i=r(1).Record;if(e){var o=t.getStore().getSource().get(e.id),u=o&&i.getType(o);u!==e.typename&&k(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,u,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var i=t[r(1).ID_KEY];null!=i&&i!==e.id&&k(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,n.name,a)}}},e.exports=function(e,t,r){var p=f(),y=_(e,r),S=y.refetchableRequest,q=y.fragmentRefPathInResponse,w=y.identifierField,C=R(e,t),I=v(x,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:C,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),F=I[0],D=I[1],A=F.fetchPolicy,N=F.mirroredEnvironment,Q=F.mirroredFragmentIdentifier,O=F.onComplete,M=F.refetchEnvironment,T=F.refetchQuery,U=F.renderPolicy,L=null!=M?M:p,j=u(L),W=i(L),K=m(o),V=L!==N||C!==Q,B=l(S),H=B[0],z=B[1],Y=B[2],G=t;if(V)D({type:"reset",environment:L,fragmentIdentifier:C}),Y();else if(null!=T&&null!=H){var X;X=n.getInitialIDAndType(T.request.variables,q,L);var J=function(e){O&&O(null!=e?e:null)},Z=null!=H.source?H.source:g(L,T),$=K.wrapPrepareQueryResource((function(){return j.prepare(T,Z,A,U,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,L,e,r),J()}},H.fetchKey,K)})),ee=W.read($.fragmentNode,$.fragmentRef,r).data;null==ee&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),G=E(ee,q),n.checkSameIDAfterRefetch(X,G,e,r)}var te=s(e,G,r),re=te.data,ne=te.disableStoreUpdates,ae=te.enableStoreUpdates;return{fragmentData:re,fragmentRef:G,refetch:function(e,t,r,n,i,o,u,s,l,f,d){var p=c(),m=null!=s&&null!=n&&"object"==typeof n?n[s]:null;return h((function(n,i){if(!0!==p.current)return k(!1,"Relay: Unexpected call to `refetch` on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",o.name,e),{dispose:function(){}};null==f&&k(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var u,c,h=null==i?void 0:i.__environment,v=null==i?void 0:i.fetchPolicy,y=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,R=P(o,f);if(null==R)u={},c={};else if("PluralReaderSelector"===R.kind){var _,E,x,S;u=null!==(_=null===(E=R.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==_?_:{},c=null!==(x=null===(S=R.selectors[0])||void 0===S?void 0:S.variables)&&void 0!==x?x:{}}else u=R.owner.variables,c=R.variables;var q=(0,a.default)((0,a.default)((0,a.default)({},u),c),n);null==s||n.hasOwnProperty("id")||("string"!=typeof m&&k(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s,m),q.id=m);var w=b(d,q,{force:!0});return l(w.request.variables,{fetchPolicy:v,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:v,onComplete:g,refetchEnvironment:h,refetchQuery:w,renderPolicy:y}),{dispose:r}}),[i,t,r,m])}(r,D,Y,re,C,e,0,w,z,t,S),disableStoreUpdates:ne,enableStoreUpdates:ae}}},function(e,t,r){"use strict";var n=r(4)(r(14)),a=r(6),i=a.loadQuery,o=a.useTrackLoadQueryInRender,u=r(8),s=r(2),c=r(0),l=c.useCallback,f=c.useEffect,d=c.useRef,p=c.useState,h=r(1).getRequest,m={kind:"NullQueryReference"};function v(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:m,a=s();o();var c=u(),h=d(new Set([r])),y=p((function(){return r})),g=y[0],b=y[1],R=p((function(){return r})),_=R[0],P=R[1];r!==_&&(h.current.add(r),P(r),b(r));var E=l((function(){c.current&&(h.current.add(m),b(m))}),[c]),k=l((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(c.current){var o,u=i(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:a,e,t,n);h.current.add(u),b(u)}}),[a,e,b,c]),x=d(!1);return f((function(){return function(){x.current=!0}}),[]),f((function(){if(!0===x.current)return x.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=h.current;if(c.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i===g)break;t.delete(i),"NullQueryReference"!==i.kind&&(v(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,c,k,e]),f((function(){return function(){var t,r=(0,n.default)(h.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(v(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,E]}},function(e,t,r){"use strict";var n=r(24),a=r(13),i=r(6).loadQuery,o=r(25),u=r(26),s=r(27),c=r(29),l=r(33),f=r(34),d=r(37),p=r(22),h=r(38),m=r(2),v=r(39),y=r(40),g=r(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:o,fetchQuery:g.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:s,useLazyLoadQuery:c,useEntryPointLoader:u,useQueryLoader:p,useMutation:l,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:h,useRelayEnvironment:m,useSubscribeToInvalidationState:v,useSubscription:y}},function(e,t,r){"use strict";var n=r(9),a=r(2),i=r(0),o=r(0),u=o.useContext,s=o.useEffect,c=r(5);e.exports=function(e){var t=e.entryPointReference,r=e.props;c(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var o=t.getComponent,l=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=o(),m=u(n),v=a();return s((function(){v.__log({name:"entrypoint.root.consume",profilerContext:m,rootModuleID:p})}),[v,m,p]),i.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:l})}},function(e,t,r){"use strict";var n=r(0),a=r(12),i=n.useMemo;e.exports=function(e){var t=e.children,r=e.environment,o=e.getEnvironmentForActor,u=i((function(){return{environment:r,getEnvironmentForActor:o}}),[r,o]);return n.createElement(a.Provider,{value:u},t)}},function(e,t,r){"use strict";var n=r(4)(r(14)),a=r(13),i=r(6).useTrackLoadQueryInRender,o=r(8),u=r(0),s=u.useCallback,c=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var u,p,h,m;i();var v=null!==(u=null==r||null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==r||null===(m=r.TEST_ONLY__initialEntryPointData)||void 0===m?void 0:m.entryPointParams)&&void 0!==h?h:null,g=o(),b=l(new Set([v])),R=f(v),_=R[0],P=R[1],E=f(y),k=E[0],x=E[1],S=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),P(e)}}),[P,g]),q=s((function(r){if(g.current){var n=a(e,t,r);b.current.add(n),P(n),x(r)}}),[e,t,P,g]),w=l(!1);return c((function(){return function(){w.current=!0}}),[]),c((function(){if(!0===w.current)return w.current=!1,void("NullEntryPointReference"!==_.kind&&null!=k&&q(k));var e=b.current;if(g.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===_)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[_,k,q,g]),c((function(){return function(){var e,t=(0,n.default)(b.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===_.kind?null:_,q,S]}},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(10),i=r(11),o=r(0).useDebugValue,u=r(1).getFragment;e.exports=function(e,t){n();var r=u(e);i(r,"first argument of useFragment()");var s=a(r,t,"useFragment()").data;return o({fragment:r.name,data:s}),s}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(17),i=r(20),o=r(2),u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){n();var s=o(),c=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:u(s,c),fetchPolicy:null==r?void 0:r.fetchPolicy,query:c,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t){e.exports=c},function(e,t,r){"use strict";var n=r(32),a=r(0),i=a.useMemo,o=a.useRef,u=a.useState;e.exports=function(e){var t,r,a=o(0),s=u(e),c=s[0],l=s[1];return n(e,c)||(a.current=(null!==(r=a.current)&&void 0!==r?r:0)+1,l(e)),[i((function(){return e}),[a.current]),null!==(t=a.current)&&void 0!==t?t:0]}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(8),i=r(2),o=r(0),u=r(1).commitMutation,s=o.useState,c=o.useEffect,l=o.useRef,f=o.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=i(),o=a(),d=l(r),p=l(e),h=l(new Set),m=s(!1),v=m[0],y=m[1],g=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),o.current&&y(h.current.size>0))}),[r,o,e]);c((function(){d.current===r&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=r,p.current=e)}),[r,o,e]);var b=f((function(a){var i=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){g(i),a.onCompleted&&a.onCompleted(e,t)},onError:function(e){g(i),a.onError&&a.onError(e)},onUnsubscribe:function(){g(i),a.onUnsubscribe&&a.onUnsubscribe()}}));return h.current.add(i),o.current&&y(!0),i}),[g,t,r,o,e]);return[b,v]}},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(35),i=r(21),o=r(11),u=r(0),s=u.useCallback,c=u.useDebugValue,l=u.useState,f=r(1),d=f.getFragment,p=f.getFragmentIdentifier,h=f.getPaginationMetadata;function m(e){var t=l(!1),r=t[0],i=t[1],o={start:function(){return i(!0)},complete:function(){return i(!1)},error:function(){return i(!1)}},u=a((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return i(!1)}}));return[u[0],u[1],r,u[2]]}e.exports=function(e,t){var r=d(e);o(r,"first argument of usePaginationFragment()");var a=h(r,"usePaginationFragment()"),u=a.connectionPathInFragmentData,l=a.paginationRequest,f=a.paginationMetadata,v=a.identifierField,y=i(r,t,"usePaginationFragment()"),g=y.fragmentData,b=y.fragmentRef,R=y.refetch,_=p(r,b),P=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"backward",fragmentData:g,fragmentIdentifier:_,fragmentNode:r,fragmentRef:b,identifierField:v,paginationMetadata:f,paginationRequest:l}),E=P[0],k=P[1],x=P[2],S=P[3],q=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"forward",fragmentData:g,fragmentIdentifier:_,fragmentNode:r,fragmentRef:b,identifierField:v,paginationMetadata:f,paginationRequest:l}),w=q[0],C=q[1],I=q[2],F=q[3],D=s((function(e,t){return F(),S(),R(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[F,S,R]);return c({fragment:r.name,data:g,hasNext:C,isLoadingNext:I,hasPrevious:k,isLoadingPrevious:x}),{data:g,loadNext:w,loadPrevious:E,hasNext:C,hasPrevious:k,isLoadingNext:I,isLoadingPrevious:x,refetch:D}}},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(19),i=r(8),o=r(36),u=r(2),s=r(3),c=r(0),l=c.useCallback,f=c.useEffect,d=c.useState,p=r(1),h=p.ConnectionInterface,m=p.__internal.fetchQuery,v=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,b=p.getValueAtPath,R=r(5);e.exports=function(e){var t=e.direction,r=e.fragmentNode,c=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,P=e.connectionPathInFragmentData,E=e.paginationRequest,k=e.paginationMetadata,x=e.componentDisplayName,S=e.observer,q=e.onReset,w=e.identifierField,C=u(),I=a(),F=I.isFetchingRef,D=I.startFetch,A=I.disposeFetch,N=I.completeFetch,Q=null!=w&&null!=_&&"object"==typeof _?_[w]:null,O=i(),M=d(C),T=M[0],U=M[1],L=d(p),j=L[0],W=L[1],K=o(r,c);(C!==T||p!==j)&&(A(),q(),U(C),W(p));var V=function(e,t,r,n){var a,i,o=h.get(),u=o.EDGES,c=o.PAGE_INFO,l=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,m=b(r,n);if(null==m)return{cursor:null,hasMore:!1};"object"!=typeof m&&s(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,u,c,m);var v=m[u],y=m[c];if(null==v||null==y)return{cursor:null,hasMore:!1};Array.isArray(v)||s(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,u,v),"object"!=typeof y&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,c,y);var g,R="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(i=y[p])&&void 0!==i?i:null;null!==R&&"string"!=typeof R&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,p,R),g="forward"===e?null!=R&&!0===y[l]:null!=R&&!0===y[f];return{cursor:R,hasMore:g}}(t,r,_,P),B=V.cursor,H=V.hasMore;return f((function(){return function(){A()}}),[A]),[l((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==O.current)return R(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,x),{dispose:function(){}};var o=g(r,c);if(!0===F.current||null==_||K)return null==o&&R(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,x,x),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,x);var u=o.owner.variables,l=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),p=y(t,e,B,d,(0,n.default)({},f),k);null!=w&&("string"!=typeof Q&&R(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",w,Q),p.id=Q);var h=v(E,p,{force:!0});return m(C,h).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){D(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),i&&i(null)},error:function(e){N(),S.error&&S.error(e),i&&i(e)}})),{dispose:A}}),[C,Q,t,B,D,A,N,F,K,_,r.name,c,x]),H,A]}},function(e,t,r){"use strict";var n=r(2),a=r(3),i=r(0),o=r(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,c=i.useEffect,l=i.useState,f=i.useMemo;e.exports=function(e,t){var r=n(),i=f((function(){var n=s(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(r,n.owner))}),[r,e,t]),o=l(null!=i),d=o[0],p=o[1];return c((function(){var e;if(p(null!=i),null!=i){var t=function(){p(!1)};e=i.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[i]),d}},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(17),i=r(20),o=r(2),u=r(3),s=r(0).useDebugValue,c=r(1).__internal,l=c.fetchQueryDeduped,f=c.fetchQuery,d=r(5);e.exports=function(e,t,r){n();var c,p=o(),h=t.fetchKey,m=t.fetchPolicy,v=t.source,y=t.variables,g=t.networkCacheConfig,b=i(e,y,g);if("PreloadedQuery_DEPRECATED"===t.kind)b.request.node.params.name!==t.name&&u(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",b.request.node.params.name,t.name),c={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:l(p,b.request.identifier,(function(){return p===t.environment&&null!=v?p.executeWithSource({operation:b,source:v}):p.execute({operation:b})})),fetchPolicy:m,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{d(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var R,_=f(p,b);null!=v&&p===t.environment?R=v.ifEmpty(_):p!==t.environment?(d(!1,"usePreloadedQuery(): usePreloadedQuery was passed a preloaded query that was created with a different environment than the one that is currently in context. In the future, this will become a hard error."),R=_):R=_,c={componentDisplayName:"usePreloadedQuery()",fetchObservable:R,fetchKey:h,fetchPolicy:m,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var P=a(c);return s({query:t.name,variables:t.variables,data:P,fetchKey:h,fetchPolicy:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),P}},function(e,t,r){"use strict";var n=r(21),a=r(11),i=r(0).useDebugValue,o=r(1).getFragment;e.exports=function(e,t){var r=o(e);a(r,"first argument of useRefetchableFragment()");var u=n(r,t,"useRefetchableFragment()"),s=u.fragmentData,c=u.refetch;return i({fragment:r.name,data:s}),[s,c]}},function(e,t,r){"use strict";var n=r(2),a=r(0),i=a.useEffect,o=a.useRef;e.exports=function(e,t){var r=n(),a=o(null),u=Array.from(e).sort().join("");return i((function(){var n=r.getStore(),i=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(i,t);return a.current=o,function(){return o.dispose()}}),[u,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},function(e,t,r){"use strict";var n=r(2),a=r(0).useEffect,i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,o=n();a((function(){return r(o,e).dispose}),[o,e,r])}}])}));
|
4
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual"],t):"object"==typeof exports?exports.ReactRelayHooks=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=t(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"])}(window,(function(e,t,r,n,a,i,o,u,s,c,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=23)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(3),a=r(0).useContext,i=r(12);e.exports=function(){var e=a(i);return null==e&&n(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(3),i=r(0),o=r(1),u=o.Observable,s=o.PreloadableQueryRegistry,c=o.RelayFeatureFlags,l=o.ReplaySubject,f=o.__internal.fetchQueryDeduped,d=o.createOperationDescriptor,p=o.getRequest,h=o.getRequestIdentifier,m=r(5),v=null,y=100001;e.exports={loadQuery:function(e,t,r,o,g){var b,R,_,P,E=null===(b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===b||null===(R=b.ReactCurrentDispatcher)||void 0===R?void 0:R.current;m(null==v||E!==v,"Relay: `%s` should not be called inside a React render function.",null!==(_=null==o?void 0:o.__nameForWarning)&&void 0!==_?_:"loadQuery"),y++;var k,x,S,q,w,C,I=null!==(P=null==o?void 0:o.fetchPolicy)&&void 0!==P?P:"store-or-network",F=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),D=!1,A=function(t,r){return D=!0,e.executeWithSource({operation:t,source:r})},N=new l,Q=u.create((function(e){return N.subscribe(e)})),O=null,M=!1,T=function(t){var n;M=!0;var a=new l;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(t,r);n=f(e,i,(function(){return e.getNetwork().execute(t,r,F)}))}else{n=e.getNetwork().execute(t,r,F)}var o=n.subscribe({error:function(e){O=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return x=o,u.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),x()}}))},U=function(t,r){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(M=!0);var n=f(e,t.request.identifier,r).subscribe({error:function(e){N.error(e)},next:function(e){N.next(e)},complete:function(){N.complete()}});S=n.unsubscribe},L=function(t){var n=d(t,r,F);(k=e.retain(n),"store-only"!==I)&&(("store-or-network"!==I||"available"!==e.check(n).status)&&U(n,(function(){var e=T(t.params);return A(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(C=(q=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",q.name);var j=s.get(C);if(null!=j)L(j);else{var W="store-only"===I?null:T(q),K=s.onLoad(C,(function(t){w();var n=d(t,r,F);k=e.retain(n),null!=W&&U(n,(function(){return A(n,W)}))}));w=K.dispose}}else{var V=p(t);C=null!=(q=V.params).cacheID?q.cacheID:q.id,L(V)}var B=!1,H=!1,z=!1,Y=function(){H||(k&&k.dispose(),H=!0)},G=function(){z||(D?S&&S():x&&x(),w&&w(),z=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){B||(Y(),G(),B=!0)},releaseQuery:Y,cancelNetworkRequest:G,fetchKey:y,id:C,get isDisposed(){return B||H},get networkError(){return O},name:q.name,networkCacheConfig:F,fetchPolicy:I,source:M?Q:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===v&&(v=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(0),a=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t,r){"use strict";var n=r(15).getFragmentResourceForEnvironment,a=r(2),i=r(0),o=i.useEffect,u=i.useRef,s=i.useState,c=r(1).getFragmentIdentifier,l=r(5);e.exports=function(e,t,r){var i=a(),f=n(i),d=u(!1),p=s(0)[1],h=c(e,t),m=f.readWithIdentifier(e,t,h,r),v=u(!0);function y(){!1!==d.current&&!1!==v.current&&p((function(e){return e+1}))}return o((function(){d.current=!0;var e=f.subscribe(m,y);return function(){d.current=!1,e.dispose()}}),[i,h]),null!=t&&(void 0===m.data||Array.isArray(m.data)&&m.data.length>0&&m.data.every((function(e){return void 0===e})))&&l(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),{data:m.data,disableStoreUpdates:function(){v.current=!1},enableStoreUpdates:function(){v.current=!0,f.checkMissedUpdates(m)[0]&&y()}}}},function(e,t,r){"use strict";var n=r(0).useRef,a=r(5);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(6).loadQuery;e.exports=function e(t,r,a){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var o=r.getPreloadProps(a),u=o.queries,s=o.entryPoints,c=o.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var r=u[e],a=r.environmentProviderOptions,i=r.options,o=r.parameters,s=r.variables,c=t.getEnvironment(a);l[e]=n(c,o,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=s&&Object.keys(s).forEach((function(r){var n=s[r];if(null!=n){var a=n.entryPoint,i=n.entryPointParams;f[r]=e(t,a,i)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=c?c:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return t},get isDisposed(){return d},queries:l,rootModuleID:r.root.getModuleId()}}},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(4),a=n(r(7)),i=n(r(28)),o=r(16),u=r(3),s=r(1),c=s.getFragmentIdentifier,l=s.getPendingOperationsForFragment,f=s.getSelector,d=s.isPromise,p=s.recycleNodesInto,h=s.reportMissingRequiredFields,m="function"==typeof WeakMap,v=Object.freeze([]);function y(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function g(e,t,r){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:y(t),storeEpoch:r}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:y(t),storeEpoch:r}}var b=function(){function e(e){this._environment=e,this._cache=o.create(1e6)}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,c(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var i,o=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var s=o.getStore().getEpoch();if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||u(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=a?" for key `".concat(a,"`"):"",e.name,typeof t,e.name),0===t.length))return{cacheKey:r,data:v,isMissingData:!1,snapshot:v,storeEpoch:s};var c=this._cache.get(r);if(null!=c){if("pending"===c.kind&&d(c.promise))throw o.__log({name:"suspense.fragment",data:c.result.data,fragment:e,isRelayHooks:!0,isMissingData:c.result.isMissingData,isPromiseCached:!0,pendingOperations:c.pendingOperations}),c.promise;if("done"===c.kind&&c.result.snapshot)return this._reportMissingRequiredFieldsInSnapshot(c.result.snapshot),c.result}var l=f(e,t);null==l&&u(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,n,e.name,null==a?"a fragment reference":"the `".concat(a,"`"),n);var p="PluralReaderSelector"===l.kind?l.selectors.map((function(e){return o.lookup(e)})):o.lookup(l),h=g(r,p,s);if(!h.isMissingData)return this._reportMissingRequiredFieldsInSnapshot(p),this._cache.set(r,{kind:"done",result:h}),h;var m="PluralReaderSelector"===l.kind?l.selectors[0].owner:l.owner,y=this._getAndSavePromiseForFragmentRequestInFlight(r,e,m,h);if(null!=y&&d(y.promise))throw o.__log({name:"suspense.fragment",data:h.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:h.isMissingData,pendingOperations:y.pendingOperations}),y.promise;return this._reportMissingRequiredFieldsInSnapshot(p),g(r,p,s)},t._reportMissingRequiredFieldsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&h(t._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&h(this._environment,e.missingRequiredFields)},t.readSpec=function(e,t,r){var n={};for(var a in e)n[a]=this.read(e[a],t[a],r,a);return n},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var o=this.checkMissedUpdates(e),s=o[0],c=o[1];s&&t();var l=[];return Array.isArray(i)?(Array.isArray(c)||u(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),c.forEach((function(e,i){l.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();r._updatePluralSnapshot(a,c,e,i,o),t()})))}))):((null==c||Array.isArray(c))&&u(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),l.push(n.subscribe(c,(function(e){var i=n.getStore().getEpoch();r._cache.set(a,{kind:"done",result:g(a,e,i)}),t()})))),{dispose:function(){l.map((function(e){return e.dispose()})),r._cache.delete(a)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,r=e.snapshot;if(!r)return[!1,null];var n;if(n=t.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(r)){var o=!1,u=[];return r.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,s=n.data,c=p(i,s);c!==i&&(n=(0,a.default)((0,a.default)({},n),{},{data:c}),o=!0),u[r]=n})),o&&this._cache.set(i,{kind:"done",result:g(i,u,n)}),[o,u]}var s=t.lookup(r.selector),c=r.data,l=s.data,f=p(c,l),d={data:f,isMissingData:s.isMissingData,seenRecords:s.seenRecords,selector:s.selector,missingRequiredFields:s.missingRequiredFields};return f!==c&&this._cache.set(i,{kind:"done",result:g(i,d,n)}),[f!==c,d]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,r,n){var a=this,i=l(this._environment,t,r);if(null==i)return null;var o=i.promise,u=i.pendingOperations,s=o.then((function(){a._cache.delete(e)})).catch((function(t){a._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},t._updatePluralSnapshot=function(e,t,r,n,a){var o,u=this._cache.get(e);if(d(u))R(r.selector.node.name);else{var s=null==u||null===(o=u.result)||void 0===o?void 0:o.snapshot;if(!s||Array.isArray(s)){var c=s?(0,i.default)(s):(0,i.default)(t);c[n]=r,this._cache.set(e,{kind:"done",result:g(e,c,a)})}else R(r.selector.node.name)}},e}();function R(e){u(!1,"Relay: Expected to find cached data for plural fragment `%s` when receiving a subscription. If you're seeing this, this is likely a bug in Relay.",e)}function _(e){return new b(e)}var P=m?new WeakMap:new Map;e.exports={createFragmentResource:_,getFragmentResourceForEnvironment:function(e){var t=P.get(e);if(t)return t;var r=_(e);return P.set(e,r),r}}},function(e,t,r){"use strict";var n=r(3),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},function(e,t,r){"use strict";var n=r(9),a=r(18),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,u=r(19),s=r(10),c=r(2),l=r(0),f=l.useContext,d=l.useEffect,p=l.useState,h=l.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,l=e.fetchPolicy,m=e.fetchKey,v=e.renderPolicy,y=c(),g=f(n),b=o(y),R=p(0),_=R[0],P=R[1],E=u(),k=E.startFetch,x=E.completeFetch,S="".concat(_,"-").concat(null!=m?m:""),q=i(y,t,l,v,S),w=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(q,t,a,l,v,{start:k,complete:x,error:x},g)})),C=h(!1);d((function(){return function(){C.current=!0}}),[]),d((function(){if(!0===C.current)return C.current=!1,void P((function(e){return e+1}));var e=b.retain(w,g);return function(){e.dispose()}}),[y,q]),d((function(){b.releaseTemporaryRetain(w)}));var I=w.fragmentNode,F=w.fragmentRef;return s(I,F,r).data}},function(e,t,r){"use strict";var n=r(4),a=n(r(7)),i=n(r(30)),o=r(16),u=r(3),s=r(1).isPromise,c=r(5),l="function"==typeof WeakMap;function f(e){return void 0!==e.request.node.params.metadata.live}function d(e,t,r,n,a){var i=null!=r?r:"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(o,"-").concat(t.request.identifier);return null!=a?"".concat(u,"-").concat(a):u}function p(e,t){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var h=2e5;function m(e,t,r,n,a,i){var o=f(t),s=n,c=0,l=null,d=null,p=a,m=function(e){return 1===++c&&(l=e.retain(t)),{dispose:function(){0===(c=Math.max(0,c-1))&&(null==l&&u(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),l.dispose(),l=null),i(v)}}},v={cacheIdentifier:e,id:h++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return s},setValue:function(e){s=e},getRetainCount:function(){return c},getNetworkSubscription:function(){return p},setNetworkSubscription:function(e){o&&null!=p&&p.unsubscribe(),p=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var t=m(e),r=null,n=function(){clearTimeout(r),r=null,d=null,t.dispose(),o&&c<=0&&null!=p&&p.unsubscribe()};return r=setTimeout(n,3e5),null!=d&&d(),d=n,{dispose:function(){d&&d()}}},permanentRetain:function(e){var t=m(e);return null!=d&&(d(),d=null),{dispose:function(){t.dispose(),o&&c<=0&&null!=p&&p.unsubscribe()}}},releaseTemporaryRetain:function(){null!=d&&(d(),d=null)}};return v}var v=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,i,o){var u=d(this._environment,e,r,n,i);return this.prepareWithIdentifier(u,e,t,r,n,a,o)},t.prepareWithIdentifier=function(e,t,r,n,i,o,u){var c=this._environment,l=null!=n?n:"store-or-network",f=null!=i?i:c.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,h=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,t,r,l,f,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),p=d.temporaryRetain(c);var m=d.getValue();if(s(m))throw c.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:h,operation:t,queryAvailability:d.operationAvailability,renderPolicy:f}),m;if(m instanceof Error)throw m;return m},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,null,e,null),o=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){o.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=d(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var i=this._cache.get(e);return null==i&&(i=m(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,i)),i},t._fetchAndSaveQuery=function(e,t,r,n,i,o,s){var l,d,h=this,v=this._environment,y=v.check(t),g=y.status,b="available"===g,R=b||"partial"===i&&"stale"!==g,_=function(){};switch(n){case"store-only":l=!1,d=!0;break;case"store-or-network":l=!b,d=R;break;case"store-and-network":l=!0,d=R;break;case"network-only":default:l=!0,d=!1}if(d){var P=p(t,e),E=m(e,t,y,P,null,this._clearCacheEntry);this._cache.set(e,E)}if(l){var k,x=p(t,e);r.subscribe({start:function(r){k=r;var n=h._cache.get(e);n&&n.setNetworkSubscription(k);var i=null==s?void 0:s.start;i&&i((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){f(t)&&r.unsubscribe()}}))},next:function(){var r=h._getOrCreateCacheEntry(e,t,y,x,k);r.processedPayloadsCount+=1,r.setValue(x),_();var n=null==s?void 0:s.next;null!=n&&n(v.lookup(t.fragment))},error:function(r){var n=h._getOrCreateCacheEntry(e,t,y,r,k);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%` returned an error: `%`:`%`.",t.fragment.node.name,r.message,r.stack),_(),k=null,n.setNetworkSubscription(null);var a=null==s?void 0:s.error;a&&a(r)},complete:function(){_(),k=null;var t=h._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var S=this._cache.get(e);if(!S){var q=new Promise((function(e){_=e}));q.displayName="Relay("+t.fragment.node.name+")",S=m(e,t,y,q,k,this._clearCacheEntry),this._cache.set(e,S)}}else{var w=null==s?void 0:s.complete;w&&w()}var C=this._cache.get(e);return null==C&&u(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),v.__log({name:"queryresource.fetch",resourceID:C.id,operation:t,profilerContext:o,fetchPolicy:n,renderPolicy:i,queryAvailability:y,shouldFetch:l}),C},e}();function y(e){return new v(e)}var g=l?new WeakMap:new Map;e.exports={createQueryResource:y,getQueryResourceForEnvironment:function(e){var t=g.get(e);if(t)return t;var r=y(e);return g.set(e,r),r},getQueryCacheIdentifier:d}},function(e,t,r){"use strict";var n=r(0),a=n.useCallback,i=n.useEffect,o=n.useRef;e.exports=function(){var e=o(null),t=o(!1),r=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),n=a((function(r){e.current=r,t.current=!0}),[]),u=a((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:n,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(31),a=r(0),i=r(1),o=i.createOperationDescriptor,u=i.getRequest,s=a.useMemo;e.exports=function(e,t,r){var a=n(t)[0],i=n(r||{})[0];return s((function(){return o(u(e),a,i)}),[e,a,i])}},function(e,t,r){"use strict";var n,a=r(4)(r(7)),i=r(15).getFragmentResourceForEnvironment,o=r(9),u=r(18).getQueryResourceForEnvironment,s=r(10),c=r(8),l=r(22),f=r(2),d=r(3),p=r(0),h=p.useCallback,m=p.useContext,v=p.useReducer,y=r(1),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,R=y.getFragmentIdentifier,_=y.getRefetchMetadata,P=y.getSelector,E=y.getValueAtPath,k=r(5);function x(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n){var a=r(1).Record,i=null==e?void 0:e.id;if(1!==t.length||"node"!==t[0]||null==i)return null;var o=n.getStore().getSource().get(i),u=o&&a.getType(o);return null==u?null:{id:i,typename:u}},checkSameTypeAfterRefetch:function(e,t,n,a){var i=r(1).Record;if(e){var o=t.getStore().getSource().get(e.id),u=o&&i.getType(o);u!==e.typename&&k(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,u,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var i=t[r(1).ID_KEY];null!=i&&i!==e.id&&k(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,n.name,a)}}},e.exports=function(e,t,r){var p=f(),y=_(e,r),S=y.refetchableRequest,q=y.fragmentRefPathInResponse,w=y.identifierField,C=R(e,t),I=v(x,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:C,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),F=I[0],D=I[1],A=F.fetchPolicy,N=F.mirroredEnvironment,Q=F.mirroredFragmentIdentifier,O=F.onComplete,M=F.refetchEnvironment,T=F.refetchQuery,U=F.renderPolicy,L=null!=M?M:p,j=u(L),W=i(L),K=m(o),V=L!==N||C!==Q,B=l(S),H=B[0],z=B[1],Y=B[2],G=t;if(V)D({type:"reset",environment:L,fragmentIdentifier:C}),Y();else if(null!=T&&null!=H){var X;X=n.getInitialIDAndType(T.request.variables,q,L);var J=function(e){O&&O(null!=e?e:null)},Z=null!=H.source?H.source:g(L,T),$=K.wrapPrepareQueryResource((function(){return j.prepare(T,Z,A,U,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,L,e,r),J()}},H.fetchKey,K)})),ee=W.read($.fragmentNode,$.fragmentRef,r).data;null==ee&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),G=E(ee,q),n.checkSameIDAfterRefetch(X,G,e,r)}var te=s(e,G,r),re=te.data,ne=te.disableStoreUpdates,ae=te.enableStoreUpdates;return{fragmentData:re,fragmentRef:G,refetch:function(e,t,r,n,i,o,u,s,l,f,d){var p=c(),m=null!=s&&null!=n&&"object"==typeof n?n[s]:null;return h((function(n,i){if(!0!==p.current)return k(!1,"Relay: Unexpected call to `refetch` on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",o.name,e),{dispose:function(){}};null==f&&k(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var u,c,h=null==i?void 0:i.__environment,v=null==i?void 0:i.fetchPolicy,y=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,R=P(o,f);if(null==R)u={},c={};else if("PluralReaderSelector"===R.kind){var _,E,x,S;u=null!==(_=null===(E=R.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==_?_:{},c=null!==(x=null===(S=R.selectors[0])||void 0===S?void 0:S.variables)&&void 0!==x?x:{}}else u=R.owner.variables,c=R.variables;var q=(0,a.default)((0,a.default)((0,a.default)({},u),c),n);null==s||n.hasOwnProperty("id")||("string"!=typeof m&&k(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s,m),q.id=m);var w=b(d,q,{force:!0});return l(w.request.variables,{fetchPolicy:v,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:v,onComplete:g,refetchEnvironment:h,refetchQuery:w,renderPolicy:y}),{dispose:r}}),[i,t,r,m,l])}(r,D,Y,re,C,e,0,w,z,t,S),disableStoreUpdates:ne,enableStoreUpdates:ae}}},function(e,t,r){"use strict";var n=r(4)(r(14)),a=r(6),i=a.loadQuery,o=a.useTrackLoadQueryInRender,u=r(8),s=r(2),c=r(0),l=c.useCallback,f=c.useEffect,d=c.useRef,p=c.useState,h=r(1).getRequest,m={kind:"NullQueryReference"};function v(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:m,a=s();o();var c=u(),h=d(new Set([r])),y=p((function(){return r})),g=y[0],b=y[1],R=p((function(){return r})),_=R[0],P=R[1];r!==_&&(h.current.add(r),P(r),b(r));var E=l((function(){c.current&&(h.current.add(m),b(m))}),[c]),k=l((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(c.current){var o,u=i(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:a,e,t,n);h.current.add(u),b(u)}}),[a,e,b,c]),x=d(!1);return f((function(){return function(){x.current=!0}}),[]),f((function(){if(!0===x.current)return x.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=h.current;if(c.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i===g)break;t.delete(i),"NullQueryReference"!==i.kind&&(v(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,c,k,e]),f((function(){return function(){var t,r=(0,n.default)(h.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(v(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,E]}},function(e,t,r){"use strict";var n=r(24),a=r(13),i=r(6).loadQuery,o=r(25),u=r(26),s=r(27),c=r(29),l=r(33),f=r(34),d=r(37),p=r(22),h=r(38),m=r(2),v=r(39),y=r(40),g=r(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:o,fetchQuery:g.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:s,useLazyLoadQuery:c,useEntryPointLoader:u,useQueryLoader:p,useMutation:l,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:h,useRelayEnvironment:m,useSubscribeToInvalidationState:v,useSubscription:y}},function(e,t,r){"use strict";var n=r(9),a=r(2),i=r(0),o=r(0),u=o.useContext,s=o.useEffect,c=r(5);e.exports=function(e){var t=e.entryPointReference,r=e.props;c(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var o=t.getComponent,l=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=o(),m=u(n),v=a();return s((function(){v.__log({name:"entrypoint.root.consume",profilerContext:m,rootModuleID:p})}),[v,m,p]),i.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:l})}},function(e,t,r){"use strict";var n=r(0),a=r(12),i=n.useMemo;e.exports=function(e){var t=e.children,r=e.environment,o=e.getEnvironmentForActor,u=i((function(){return{environment:r,getEnvironmentForActor:o}}),[r,o]);return n.createElement(a.Provider,{value:u},t)}},function(e,t,r){"use strict";var n=r(4)(r(14)),a=r(13),i=r(6).useTrackLoadQueryInRender,o=r(8),u=r(0),s=u.useCallback,c=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var u,p,h,m;i();var v=null!==(u=null==r||null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==r||null===(m=r.TEST_ONLY__initialEntryPointData)||void 0===m?void 0:m.entryPointParams)&&void 0!==h?h:null,g=o(),b=l(new Set([v])),R=f(v),_=R[0],P=R[1],E=f(y),k=E[0],x=E[1],S=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),P(e)}}),[P,g]),q=s((function(r){if(g.current){var n=a(e,t,r);b.current.add(n),P(n),x(r)}}),[e,t,P,g]),w=l(!1);return c((function(){return function(){w.current=!0}}),[]),c((function(){if(!0===w.current)return w.current=!1,void("NullEntryPointReference"!==_.kind&&null!=k&&q(k));var e=b.current;if(g.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===_)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[_,k,q,g]),c((function(){return function(){var e,t=(0,n.default)(b.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===_.kind?null:_,q,S]}},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(10),i=r(11),o=r(0).useDebugValue,u=r(1).getFragment;e.exports=function(e,t){n();var r=u(e);i(r,"first argument of useFragment()");var s=a(r,t,"useFragment()").data;return o({fragment:r.name,data:s}),s}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(17),i=r(20),o=r(2),u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){n();var s=o(),c=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:u(s,c),fetchPolicy:null==r?void 0:r.fetchPolicy,query:c,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t){e.exports=c},function(e,t,r){"use strict";var n=r(32),a=r(0),i=a.useMemo,o=a.useRef,u=a.useState;e.exports=function(e){var t,r,a=o(0),s=u(e),c=s[0],l=s[1];return n(e,c)||(a.current=(null!==(r=a.current)&&void 0!==r?r:0)+1,l(e)),[i((function(){return e}),[a.current]),null!==(t=a.current)&&void 0!==t?t:0]}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(8),i=r(2),o=r(0),u=r(1).commitMutation,s=o.useState,c=o.useEffect,l=o.useRef,f=o.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=i(),o=a(),d=l(r),p=l(e),h=l(new Set),m=s(!1),v=m[0],y=m[1],g=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),o.current&&y(h.current.size>0))}),[r,o,e]);c((function(){d.current===r&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=r,p.current=e)}),[r,o,e]);var b=f((function(a){var i=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){g(i),a.onCompleted&&a.onCompleted(e,t)},onError:function(e){g(i),a.onError&&a.onError(e)},onUnsubscribe:function(){g(i),a.onUnsubscribe&&a.onUnsubscribe()}}));return h.current.add(i),o.current&&y(!0),i}),[g,t,r,o,e]);return[b,v]}},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(35),i=r(21),o=r(11),u=r(0),s=u.useCallback,c=u.useDebugValue,l=u.useState,f=r(1),d=f.getFragment,p=f.getFragmentIdentifier,h=f.getPaginationMetadata;function m(e){var t=l(!1),r=t[0],i=t[1],o={start:function(){return i(!0)},complete:function(){return i(!1)},error:function(){return i(!1)}},u=a((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return i(!1)}}));return[u[0],u[1],r,u[2]]}e.exports=function(e,t){var r=d(e);o(r,"first argument of usePaginationFragment()");var a=h(r,"usePaginationFragment()"),u=a.connectionPathInFragmentData,l=a.paginationRequest,f=a.paginationMetadata,v=a.identifierField,y=i(r,t,"usePaginationFragment()"),g=y.fragmentData,b=y.fragmentRef,R=y.refetch,_=p(r,b),P=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"backward",fragmentData:g,fragmentIdentifier:_,fragmentNode:r,fragmentRef:b,identifierField:v,paginationMetadata:f,paginationRequest:l}),E=P[0],k=P[1],x=P[2],S=P[3],q=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"forward",fragmentData:g,fragmentIdentifier:_,fragmentNode:r,fragmentRef:b,identifierField:v,paginationMetadata:f,paginationRequest:l}),w=q[0],C=q[1],I=q[2],F=q[3],D=s((function(e,t){return F(),S(),R(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[F,S,R]);return c({fragment:r.name,data:g,hasNext:C,isLoadingNext:I,hasPrevious:k,isLoadingPrevious:x}),{data:g,loadNext:w,loadPrevious:E,hasNext:C,hasPrevious:k,isLoadingNext:I,isLoadingPrevious:x,refetch:D}}},function(e,t,r){"use strict";var n=r(4)(r(7)),a=r(19),i=r(8),o=r(36),u=r(2),s=r(3),c=r(0),l=c.useCallback,f=c.useEffect,d=c.useState,p=r(1),h=p.ConnectionInterface,m=p.__internal.fetchQuery,v=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,b=p.getValueAtPath,R=r(5);e.exports=function(e){var t=e.direction,r=e.fragmentNode,c=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,P=e.connectionPathInFragmentData,E=e.paginationRequest,k=e.paginationMetadata,x=e.componentDisplayName,S=e.observer,q=e.onReset,w=e.identifierField,C=u(),I=a(),F=I.isFetchingRef,D=I.startFetch,A=I.disposeFetch,N=I.completeFetch,Q=null!=w&&null!=_&&"object"==typeof _?_[w]:null,O=i(),M=d(C),T=M[0],U=M[1],L=d(p),j=L[0],W=L[1],K=o(r,c);(C!==T||p!==j)&&(A(),q(),U(C),W(p));var V=function(e,t,r,n){var a,i,o=h.get(),u=o.EDGES,c=o.PAGE_INFO,l=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,m=b(r,n);if(null==m)return{cursor:null,hasMore:!1};"object"!=typeof m&&s(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,u,c,m);var v=m[u],y=m[c];if(null==v||null==y)return{cursor:null,hasMore:!1};Array.isArray(v)||s(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,u,v),"object"!=typeof y&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,c,y);var g,R="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(i=y[p])&&void 0!==i?i:null;null!==R&&"string"!=typeof R&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,p,R),g="forward"===e?null!=R&&!0===y[l]:null!=R&&!0===y[f];return{cursor:R,hasMore:g}}(t,r,_,P),B=V.cursor,H=V.hasMore;return f((function(){return function(){A()}}),[A]),[l((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==O.current)return R(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,x),{dispose:function(){}};var o=g(r,c);if(!0===F.current||null==_||K)return null==o&&R(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,x,x),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,x);var u=o.owner.variables,l=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),p=y(t,e,B,d,(0,n.default)({},f),k);null!=w&&("string"!=typeof Q&&R(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",w,Q),p.id=Q);var h=v(E,p,{force:!0});return m(C,h).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){D(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),i&&i(null)},error:function(e){N(),S.error&&S.error(e),i&&i(e)}})),{dispose:A}}),[C,Q,t,B,D,A,N,F,K,_,r.name,c,x]),H,A]}},function(e,t,r){"use strict";var n=r(2),a=r(3),i=r(0),o=r(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,c=i.useEffect,l=i.useState,f=i.useMemo;e.exports=function(e,t){var r=n(),i=f((function(){var n=s(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(r,n.owner))}),[r,e,t]),o=l(null!=i),d=o[0],p=o[1];return c((function(){var e;if(p(null!=i),null!=i){var t=function(){p(!1)};e=i.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[i]),d}},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(17),i=r(20),o=r(2),u=r(3),s=r(0).useDebugValue,c=r(1).__internal,l=c.fetchQueryDeduped,f=c.fetchQuery,d=r(5);e.exports=function(e,t,r){n();var c,p=o(),h=t.fetchKey,m=t.fetchPolicy,v=t.source,y=t.variables,g=t.networkCacheConfig,b=i(e,y,g);if("PreloadedQuery_DEPRECATED"===t.kind)b.request.node.params.name!==t.name&&u(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",b.request.node.params.name,t.name),c={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:l(p,b.request.identifier,(function(){return p===t.environment&&null!=v?p.executeWithSource({operation:b,source:v}):p.execute({operation:b})})),fetchPolicy:m,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{d(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var R,_=f(p,b);null!=v&&p===t.environment?R=v.ifEmpty(_):p!==t.environment?(d(!1,"usePreloadedQuery(): usePreloadedQuery was passed a preloaded query that was created with a different environment than the one that is currently in context. In the future, this will become a hard error."),R=_):R=_,c={componentDisplayName:"usePreloadedQuery()",fetchObservable:R,fetchKey:h,fetchPolicy:m,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var P=a(c);return s({query:t.name,variables:t.variables,data:P,fetchKey:h,fetchPolicy:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),P}},function(e,t,r){"use strict";var n=r(21),a=r(11),i=r(0).useDebugValue,o=r(1).getFragment;e.exports=function(e,t){var r=o(e);a(r,"first argument of useRefetchableFragment()");var u=n(r,t,"useRefetchableFragment()"),s=u.fragmentData,c=u.refetch;return i({fragment:r.name,data:s}),[s,c]}},function(e,t,r){"use strict";var n=r(2),a=r(0),i=a.useEffect,o=a.useRef;e.exports=function(e,t){var r=n(),a=o(null),u=Array.from(e).sort().join("");return i((function(){var n=r.getStore(),i=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(i,t);return a.current=o,function(){return o.dispose()}}),[u,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},function(e,t,r){"use strict";var n=r(2),a=r(0).useEffect,i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,o=n();a((function(){return r(o,e).dispose}),[o,e,r])}}])}));
|
package/react-relay-hooks.min.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* Relay v0.0.0-main-
|
2
|
+
* Relay v0.0.0-main-c20f3146
|
3
3
|
*
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
5
5
|
*
|
6
6
|
* This source code is licensed under the MIT license found in the
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
8
8
|
*/
|
9
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=r(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"])}(window,(function(e,r,t,n,i,o,a,u,c,s,l){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=23)}([function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){"use strict";var n=t(3),i=t(0).useContext,o=t(12);e.exports=function(){var e=i(o);return null==e&&n(!1),e.environment}},function(e,r){e.exports=t},function(e,r){e.exports=n},function(e,r){e.exports=i},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(3),o=t(0),a=t(1),u=a.Observable,c=a.PreloadableQueryRegistry,s=a.RelayFeatureFlags,l=a.ReplaySubject,f=a.__internal.fetchQueryDeduped,d=a.createOperationDescriptor,p=a.getRequest,v=a.getRequestIdentifier,h=(t(5),null),m=100001;e.exports={loadQuery:function(e,r,t,a,h){var y,g,b;null===(y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(g=y.ReactCurrentDispatcher)||void 0===g||g.current,m++;var _,R,P,E,k,S,C=null!==(b=null==a?void 0:a.fetchPolicy)&&void 0!==b?b:"store-or-network",F=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),q=!1,x=function(r,t){return q=!0,e.executeWithSource({operation:r,source:t})},w=new l,D=u.create((function(e){return w.subscribe(e)})),I=null,N=!1,O=function(r){var n;N=!0;var i=new l;if(!0===s.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+v(r,t);n=f(e,o,(function(){return e.getNetwork().execute(r,t,F)}))}else{n=e.getNetwork().execute(r,t,F)}var a=n.subscribe({error:function(e){I=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return R=a,u.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),R()}}))},M=function(r,t){!0===s.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var n=f(e,r.request.identifier,t).subscribe({error:function(e){w.error(e)},next:function(e){w.next(e)},complete:function(){w.complete()}});P=n.unsubscribe},Q=function(r){var n=d(r,t,F);(_=e.retain(n),"store-only"!==C)&&(("store-or-network"!==C||"available"!==e.check(n).status)&&M(n,(function(){var e=O(r.params);return x(n,e)})))};if("PreloadableConcreteRequest"===r.kind){null===(S=(E=r.params).id)&&i(!1);var A=c.get(S);if(null!=A)Q(A);else{var T="store-only"===C?null:O(E),L=c.onLoad(S,(function(r){k();var n=d(r,t,F);_=e.retain(n),null!=T&&M(n,(function(){return x(n,T)}))}));k=L.dispose}}else{var U=p(r);S=null!=(E=U.params).cacheID?E.cacheID:E.id,Q(U)}var j=!1,W=!1,K=!1,V=function(){W||(_&&_.dispose(),W=!0)},H=function(){K||(q?P&&P():R&&R(),k&&k(),K=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){j||(V(),H(),j=!0)},releaseQuery:V,cancelNetworkRequest:H,fetchKey:m,id:S,get isDisposed(){return j||W},get networkError(){return I},name:E.name,networkCacheConfig:F,fetchPolicy:C,source:N?D:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===h&&(h=null===(e=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},function(e,r){e.exports=o},function(e,r,t){"use strict";var n=t(0),i=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,r,t){"use strict";var n=t(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,r,t){"use strict";var n=t(15).getFragmentResourceForEnvironment,i=t(2),o=t(0),a=o.useEffect,u=o.useRef,c=o.useState,s=t(1).getFragmentIdentifier;t(5);e.exports=function(e,r,t){var o=i(),l=n(o),f=u(!1),d=c(0)[1],p=s(e,r),v=l.readWithIdentifier(e,r,p,t),h=u(!0);function m(){!1!==f.current&&!1!==h.current&&d((function(e){return e+1}))}return a((function(){f.current=!0;var e=l.subscribe(v,m);return function(){f.current=!1,e.dispose()}}),[o,p]),{data:v.data,disableStoreUpdates:function(){h.current=!1},enableStoreUpdates:function(){h.current=!0,l.checkMissedUpdates(v)[0]&&m()}}}},function(e,r,t){"use strict";t(0).useRef,t(5);e.exports=function(e,r){}},function(e,r){e.exports=a},function(e,r,t){"use strict";var n=t(6).loadQuery;e.exports=function e(r,t,i){var o=null;null==t.root.getModuleIfRequired()&&(o=t.root.load());var a=t.getPreloadProps(i),u=a.queries,c=a.entryPoints,s=a.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e],i=t.environmentProviderOptions,o=t.options,a=t.parameters,c=t.variables,s=r.getEnvironment(i);l[e]=n(s,a,c,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)})),null!=c&&Object.keys(c).forEach((function(t){var n=c[t];if(null!=n){var i=n.entryPoint,o=n.entryPointParams;f[t]=e(r,i,o)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=s?s:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw o=null!==(e=o)&&void 0!==e?e:t.root.load();return r},get isDisposed(){return d},queries:l,rootModuleID:t.root.getModuleId()}}},function(e,r){e.exports=u},function(e,r,t){"use strict";var n=t(4),i=n(t(7)),o=n(t(28)),a=t(16),u=t(3),c=t(1),s=c.getFragmentIdentifier,l=c.getPendingOperationsForFragment,f=c.getSelector,d=c.isPromise,p=c.recycleNodesInto,v=c.reportMissingRequiredFields,h="function"==typeof WeakMap,m=Object.freeze([]);function y(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function g(e,r,t){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data})),isMissingData:y(r),storeEpoch:t}:{cacheKey:e,snapshot:r,data:r.data,isMissingData:y(r),storeEpoch:t}}var b=function(){function e(e){this._environment=e,this._cache=a.create(1e6)}var r=e.prototype;return r.read=function(e,r,t,n){return this.readWithIdentifier(e,r,s(e,r),t,n)},r.readWithIdentifier=function(e,r,t,n,i){var o,a=this._environment;if(null==r)return{cacheKey:t,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var c=a.getStore().getEpoch();if(!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural)&&(Array.isArray(r)||u(!1),0===r.length))return{cacheKey:t,data:m,isMissingData:!1,snapshot:m,storeEpoch:c};var s=this._cache.get(t);if(null!=s){if("pending"===s.kind&&d(s.promise))throw a.__log({name:"suspense.fragment",data:s.result.data,fragment:e,isRelayHooks:!0,isMissingData:s.result.isMissingData,isPromiseCached:!0,pendingOperations:s.pendingOperations}),s.promise;if("done"===s.kind&&s.result.snapshot)return this._reportMissingRequiredFieldsInSnapshot(s.result.snapshot),s.result}var l=f(e,r);null==l&&u(!1);var p="PluralReaderSelector"===l.kind?l.selectors.map((function(e){return a.lookup(e)})):a.lookup(l),v=g(t,p,c);if(!v.isMissingData)return this._reportMissingRequiredFieldsInSnapshot(p),this._cache.set(t,{kind:"done",result:v}),v;var h="PluralReaderSelector"===l.kind?l.selectors[0].owner:l.owner,y=this._getAndSavePromiseForFragmentRequestInFlight(t,e,h,v);if(null!=y&&d(y.promise))throw a.__log({name:"suspense.fragment",data:v.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:v.isMissingData,pendingOperations:y.pendingOperations}),y.promise;return this._reportMissingRequiredFieldsInSnapshot(p),g(t,p,c)},r._reportMissingRequiredFieldsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&v(r._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&v(this._environment,e.missingRequiredFields)},r.readSpec=function(e,r,t){var n={};for(var i in e)n[i]=this.read(e[i],r[i],t,i);return n},r.subscribe=function(e,r){var t=this,n=this._environment,i=e.cacheKey,o=e.snapshot;if(!o)return{dispose:function(){}};var a=this.checkMissedUpdates(e),c=a[0],s=a[1];c&&r();var l=[];return Array.isArray(o)?(Array.isArray(s)||u(!1),s.forEach((function(e,o){l.push(n.subscribe(e,(function(e){var a=n.getStore().getEpoch();t._updatePluralSnapshot(i,s,e,o,a),r()})))}))):((null==s||Array.isArray(s))&&u(!1),l.push(n.subscribe(s,(function(e){var o=n.getStore().getEpoch();t._cache.set(i,{kind:"done",result:g(i,e,o)}),r()})))),{dispose:function(){l.map((function(e){return e.dispose()})),t._cache.delete(i)}}},r.subscribeSpec=function(e,r){var t=this,n=Object.keys(e).map((function(n){return t.subscribe(e[n],r)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},r.checkMissedUpdates=function(e){var r=this._environment,t=e.snapshot;if(!t)return[!1,null];var n;if(n=r.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var o=e.cacheKey;if(Array.isArray(t)){var a=!1,u=[];return t.forEach((function(e,t){var n=r.lookup(e.selector),o=e.data,c=n.data,s=p(o,c);s!==o&&(n=(0,i.default)((0,i.default)({},n),{},{data:s}),a=!0),u[t]=n})),a&&this._cache.set(o,{kind:"done",result:g(o,u,n)}),[a,u]}var c=r.lookup(t.selector),s=t.data,l=c.data,f=p(s,l),d={data:f,isMissingData:c.isMissingData,seenRecords:c.seenRecords,selector:c.selector,missingRequiredFields:c.missingRequiredFields};return f!==s&&this._cache.set(o,{kind:"done",result:g(o,d,n)}),[f!==s,d]},r.checkMissedUpdatesSpec=function(e){var r=this;return Object.keys(e).some((function(t){return r.checkMissedUpdates(e[t])[0]}))},r._getAndSavePromiseForFragmentRequestInFlight=function(e,r,t,n){var i=this,o=l(this._environment,r,t);if(null==o)return null;var a=o.promise,u=o.pendingOperations,c=a.then((function(){i._cache.delete(e)})).catch((function(r){i._cache.delete(e)}));return c.displayName=a.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:c,result:n}),{promise:c,pendingOperations:u}},r._updatePluralSnapshot=function(e,r,t,n,i){var a,u=this._cache.get(e);if(d(u))_(t.selector.node.name);else{var c=null==u||null===(a=u.result)||void 0===a?void 0:a.snapshot;if(!c||Array.isArray(c)){var s=c?(0,o.default)(c):(0,o.default)(r);s[n]=t,this._cache.set(e,{kind:"done",result:g(e,s,i)})}else _(t.selector.node.name)}},e}();function _(e){u(!1)}function R(e){return new b(e)}var P=h?new WeakMap:new Map;e.exports={createFragmentResource:R,getFragmentResourceForEnvironment:function(e){var r=P.get(e);if(r)return r;var t=R(e);return P.set(e,t),t}}},function(e,r,t){"use strict";var n=t(3),i=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var t=this._map.keys().next();t.done||this._map.delete(t.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},function(e,r,t){"use strict";var n=t(9),i=t(18),o=i.getQueryCacheIdentifier,a=i.getQueryResourceForEnvironment,u=t(19),c=t(10),s=t(2),l=t(0),f=l.useContext,d=l.useEffect,p=l.useState,v=l.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,i=e.fetchObservable,l=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,y=s(),g=f(n),b=a(y),_=p(0),R=_[0],P=_[1],E=u(),k=E.startFetch,S=E.completeFetch,C="".concat(R,"-").concat(null!=h?h:""),F=o(y,r,l,m,C),q=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(F,r,i,l,m,{start:k,complete:S,error:S},g)})),x=v(!1);d((function(){return function(){x.current=!0}}),[]),d((function(){if(!0===x.current)return x.current=!1,void P((function(e){return e+1}));var e=b.retain(q,g);return function(){e.dispose()}}),[y,F]),d((function(){b.releaseTemporaryRetain(q)}));var w=q.fragmentNode,D=q.fragmentRef;return c(w,D,t).data}},function(e,r,t){"use strict";var n=t(4),i=n(t(7)),o=n(t(30)),a=t(16),u=t(3),c=t(1).isPromise,s=(t(5),"function"==typeof WeakMap);function l(e){return void 0!==e.request.node.params.metadata.live}function f(e,r,t,n,i){var o=null!=t?t:"store-or-network",a=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(o,"-").concat(a,"-").concat(r.request.identifier);return null!=i?"".concat(u,"-").concat(i):u}function d(e,r){var t={__id:e.fragment.dataID,__fragments:(0,o.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var p=2e5;function v(e,r,t,n,i,o){var a=l(r),c=n,s=0,f=null,d=null,v=i,h=function(e){return 1===++s&&(f=e.retain(r)),{dispose:function(){0===(s=Math.max(0,s-1))&&(null==f&&u(!1),f.dispose(),f=null),o(m)}}},m={cacheIdentifier:e,id:p++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return c},setValue:function(e){c=e},getRetainCount:function(){return s},getNetworkSubscription:function(){return v},setNetworkSubscription:function(e){a&&null!=v&&v.unsubscribe(),v=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var r=h(e),t=null,n=function(){clearTimeout(t),t=null,d=null,r.dispose(),a&&s<=0&&null!=v&&v.unsubscribe()};return t=setTimeout(n,3e5),null!=d&&d(),d=n,{dispose:function(){d&&d()}}},permanentRetain:function(e){var r=h(e);return null!=d&&(d(),d=null),{dispose:function(){r.dispose(),a&&s<=0&&null!=v&&v.unsubscribe()}}},releaseTemporaryRetain:function(){null!=d&&(d(),d=null)}};return m}var h=function(){function e(e){var r=this;(0,o.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=a.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,i,o,a){var u=f(this._environment,e,t,n,o);return this.prepareWithIdentifier(u,e,r,t,n,i,a)},r.prepareWithIdentifier=function(e,r,t,n,o,a,u){var s=this._environment,l=null!=n?n:"store-or-network",f=null!=o?o:s.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,v=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,r,t,l,f,u,(0,i.default)((0,i.default)({},a),{},{unsubscribe:function(e){null!=p&&p.dispose();var r=null==a?void 0:a.unsubscribe;r&&r(e)}}))),p=d.temporaryRetain(s);var h=d.getValue();if(c(h))throw s.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:v,operation:r,queryAvailability:d.operationAvailability,renderPolicy:f}),h;if(h instanceof Error)throw h;return h},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,i=e.operation,o=this._getOrCreateCacheEntry(n,i,null,e,null),a=o.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:o.id}),{dispose:function(){a.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var i=f(this._environment,e,r,t,n);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,t,n,i){var o=this._cache.get(e);return null==o&&(o=v(e,r,t,n,i,this._clearCacheEntry),this._cache.set(e,o)),o},r._fetchAndSaveQuery=function(e,r,t,n,o,a,c){var s,f,p=this,h=this._environment,m=h.check(r),y=m.status,g="available"===y,b=g||"partial"===o&&"stale"!==y,_=function(){};switch(n){case"store-only":s=!1,f=!0;break;case"store-or-network":s=!g,f=b;break;case"store-and-network":s=!0,f=b;break;case"network-only":default:s=!0,f=!1}if(f){var R=d(r,e),P=v(e,r,m,R,null,this._clearCacheEntry);this._cache.set(e,P)}if(s){var E,k=d(r,e);t.subscribe({start:function(t){E=t;var n=p._cache.get(e);n&&n.setNetworkSubscription(E);var o=null==c?void 0:c.start;o&&o((0,i.default)((0,i.default)({},t),{},{unsubscribe:function(){l(r)&&t.unsubscribe()}}))},next:function(){var t=p._getOrCreateCacheEntry(e,r,m,k,E);t.processedPayloadsCount+=1,t.setValue(k),_();var n=null==c?void 0:c.next;null!=n&&n(h.lookup(r.fragment))},error:function(t){var n=p._getOrCreateCacheEntry(e,r,m,t,E);0===n.processedPayloadsCount&&n.setValue(t),_(),E=null,n.setNetworkSubscription(null);var i=null==c?void 0:c.error;i&&i(t)},complete:function(){_(),E=null;var r=p._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==c?void 0:c.complete;t&&t()},unsubscribe:null==c?void 0:c.unsubscribe});var S=this._cache.get(e);if(!S){var C=new Promise((function(e){_=e}));C.displayName="Relay("+r.fragment.node.name+")",S=v(e,r,m,C,E,this._clearCacheEntry),this._cache.set(e,S)}}else{var F=null==c?void 0:c.complete;F&&F()}var q=this._cache.get(e);return null==q&&u(!1),h.__log({name:"queryresource.fetch",resourceID:q.id,operation:r,profilerContext:a,fetchPolicy:n,renderPolicy:o,queryAvailability:m,shouldFetch:s}),q},e}();function m(e){return new h(e)}var y=s?new WeakMap:new Map;e.exports={createQueryResource:m,getQueryResourceForEnvironment:function(e){var r=y.get(e);if(r)return r;var t=m(e);return y.set(e,t),t},getQueryCacheIdentifier:f}},function(e,r,t){"use strict";var n=t(0),i=n.useCallback,o=n.useEffect,a=n.useRef;e.exports=function(){var e=a(null),r=a(!1),t=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),n=i((function(t){e.current=t,r.current=!0}),[]),u=i((function(){e.current=null,r.current=!1}),[]);return o((function(){return t}),[t]),{isFetchingRef:r,startFetch:n,disposeFetch:t,completeFetch:u}}},function(e,r,t){"use strict";var n=t(31),i=t(0),o=t(1),a=o.createOperationDescriptor,u=o.getRequest,c=i.useMemo;e.exports=function(e,r,t){var i=n(r)[0],o=n(t||{})[0];return c((function(){return a(u(e),i,o)}),[e,i,o])}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(15).getFragmentResourceForEnvironment,o=t(9),a=t(18).getQueryResourceForEnvironment,u=t(10),c=t(8),s=t(22),l=t(2),f=t(3),d=t(0),p=d.useCallback,v=d.useContext,h=d.useReducer,m=t(1),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,b=m.getFragmentIdentifier,_=m.getRefetchMetadata,R=m.getSelector,P=m.getValueAtPath;t(5);function E(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(t=r.refetchEnvironment)&&void 0!==t?t:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}e.exports=function(e,r,t){var d=l(),m=_(e,t),k=m.refetchableRequest,S=m.fragmentRefPathInResponse,C=m.identifierField,F=b(e,r),q=h(E,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:F,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),x=q[0],w=q[1],D=x.fetchPolicy,I=x.mirroredEnvironment,N=x.mirroredFragmentIdentifier,O=x.onComplete,M=x.refetchEnvironment,Q=x.refetchQuery,A=x.renderPolicy,T=null!=M?M:d,L=a(T),U=i(T),j=v(o),W=T!==I||F!==N,K=s(k),V=K[0],H=K[1],B=K[2],z=r;if(W)w({type:"reset",environment:T,fragmentIdentifier:F}),B();else if(null!=Q&&null!=V){0;var Y=function(e){O&&O(null!=e?e:null)},G=null!=V.source?V.source:y(T,Q),X=j.wrapPrepareQueryResource((function(){return L.prepare(Q,G,D,A,{error:Y,complete:function(){Y()}},V.fetchKey,j)})),J=U.read(X.fragmentNode,X.fragmentRef,t).data;null==J&&f(!1),z=P(J,S)}var Z=u(e,z,t),$=Z.data,ee=Z.disableStoreUpdates,re=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:z,refetch:function(e,r,t,i,o,a,u,s,l,f,d){var v=c(),h=null!=s&&null!=i&&"object"==typeof i?i[s]:null;return p((function(e,i){if(!0!==v.current)return{dispose:function(){}};var o,u,c=null==i?void 0:i.__environment,p=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,b=R(a,f);if(null==b)o={},u={};else if("PluralReaderSelector"===b.kind){var _,P,E,k;o=null!==(_=null===(P=b.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==_?_:{},u=null!==(E=null===(k=b.selectors[0])||void 0===k?void 0:k.variables)&&void 0!==E?E:{}}else o=b.owner.variables,u=b.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},o),u),e);null==s||e.hasOwnProperty("id")||(S.id=h);var C=g(d,S,{force:!0});return l(C.request.variables,{fetchPolicy:p,__environment:c,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:p,onComplete:y,refetchEnvironment:c,refetchQuery:C,renderPolicy:m}),{dispose:t}}),[o,r,t,h])}(0,w,B,$,F,e,0,C,H,r,k),disableStoreUpdates:ee,enableStoreUpdates:re}}},function(e,r,t){"use strict";var n=t(4)(t(14)),i=t(6),o=i.loadQuery,a=i.useTrackLoadQueryInRender,u=t(8),c=t(2),s=t(0),l=s.useCallback,f=s.useEffect,d=s.useRef,p=s.useState,v=t(1).getRequest,h={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==v(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:h,i=c();a();var s=u(),v=d(new Set([t])),y=p((function(){return t})),g=y[0],b=y[1],_=p((function(){return t})),R=_[0],P=_[1];t!==R&&(v.current.add(t),P(t),b(t));var E=l((function(){s.current&&(v.current.add(h),b(h))}),[s]),k=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);v.current.add(u),b(u)}}),[i,e,b,s]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=v.current;if(s.current){var t,i=(0,n.default)(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o===g)break;r.delete(o),"NullQueryReference"!==o.kind&&(m(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,s,k,e]),f((function(){return function(){var r,t=(0,n.default)(v.current);try{for(t.s();!(r=t.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,E]}},function(e,r,t){"use strict";var n=t(24),i=t(13),o=t(6).loadQuery,a=t(25),u=t(26),c=t(27),s=t(29),l=t(33),f=t(34),d=t(37),p=t(22),v=t(38),h=t(2),m=t(39),y=t(40),g=t(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:a,fetchQuery:g.fetchQuery,loadQuery:o,loadEntryPoint:i,useFragment:c,useLazyLoadQuery:s,useEntryPointLoader:u,useQueryLoader:p,useMutation:l,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:v,useRelayEnvironment:h,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,r,t){"use strict";var n=t(9),i=t(2),o=t(0),a=t(0),u=a.useContext,c=a.useEffect;t(5);e.exports=function(e){var r=e.entryPointReference,t=e.props,a=r.getComponent,s=r.queries,l=r.entryPoints,f=r.extraProps,d=r.rootModuleID,p=a(),v=u(n),h=i();return c((function(){h.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:d})}),[h,v,d]),o.createElement(p,{entryPoints:l,extraProps:f,props:t,queries:s})}},function(e,r,t){"use strict";var n=t(0),i=t(12),o=n.useMemo;e.exports=function(e){var r=e.children,t=e.environment,a=e.getEnvironmentForActor,u=o((function(){return{environment:t,getEnvironmentForActor:a}}),[t,a]);return n.createElement(i.Provider,{value:u},r)}},function(e,r,t){"use strict";var n=t(4)(t(14)),i=t(13),o=t(6).useTrackLoadQueryInRender,a=t(8),u=t(0),c=u.useCallback,s=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var u,p,v,h;o();var m=null!==(u=null==t||null===(p=t.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(v=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==v?v:null,g=a(),b=l(new Set([m])),_=f(m),R=_[0],P=_[1],E=f(y),k=E[0],S=E[1],C=c((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),P(e)}}),[P,g]),F=c((function(t){if(g.current){var n=i(e,r,t);b.current.add(n),P(n),S(t)}}),[e,r,P,g]),q=l(!1);return s((function(){return function(){q.current=!0}}),[]),s((function(){if(!0===q.current)return q.current=!1,void("NullEntryPointReference"!==R.kind&&null!=k&&F(k));var e=b.current;if(g.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var i=r.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[R,k,F,g]),s((function(){return function(){var e,r=(0,n.default)(b.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullEntryPointReference"!==t.kind&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,F,C]}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(10),o=t(11),a=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){n();var t=a(e);return o(t,"first argument of useFragment()"),i(t,r,"useFragment()").data}},function(e,r){e.exports=c},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(17),o=t(20),a=t(2),u=t(1).__internal.fetchQuery;e.exports=function(e,r,t){n();var c=a(),s=o(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:u(c,s),fetchPolicy:null==t?void 0:t.fetchPolicy,query:s,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},function(e,r){e.exports=s},function(e,r,t){"use strict";var n=t(32),i=t(0),o=i.useMemo,a=i.useRef,u=i.useState;e.exports=function(e){var r,t,i=a(0),c=u(e),s=c[0],l=c[1];return n(e,s)||(i.current=(null!==(t=i.current)&&void 0!==t?t:0)+1,l(e)),[o((function(){return e}),[i.current]),null!==(r=i.current)&&void 0!==r?r:0]}},function(e,r){e.exports=l},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(8),o=t(2),a=t(0),u=t(1).commitMutation,c=a.useState,s=a.useEffect,l=a.useRef,f=a.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=o(),a=i(),d=l(t),p=l(e),v=l(new Set),h=c(!1),m=h[0],y=h[1],g=f((function(r){d.current===t&&p.current===e&&(v.current.delete(r),a.current&&y(v.current.size>0))}),[t,a,e]);s((function(){d.current===t&&p.current===e||(v.current=new Set,a.current&&y(!1),d.current=t,p.current=e)}),[t,a,e]);var b=f((function(i){var o=r(t,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,r){g(o),i.onCompleted&&i.onCompleted(e,r)},onError:function(e){g(o),i.onError&&i.onError(e)},onUnsubscribe:function(){g(o),i.onUnsubscribe&&i.onUnsubscribe()}}));return v.current.add(o),a.current&&y(!0),o}),[g,r,t,a,e]);return[b,m]}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(35),o=t(21),a=t(11),u=t(0),c=u.useCallback,s=(u.useDebugValue,u.useState),l=t(1),f=l.getFragment,d=l.getFragmentIdentifier,p=l.getPaginationMetadata;function v(e){var r=s(!1),t=r[0],o=r[1],a={start:function(){return o(!0)},complete:function(){return o(!1)},error:function(){return o(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:a,onReset:function(){return o(!1)}}));return[u[0],u[1],t,u[2]]}e.exports=function(e,r){var t=f(e);a(t,"first argument of usePaginationFragment()");var i=p(t,"usePaginationFragment()"),u=i.connectionPathInFragmentData,s=i.paginationRequest,l=i.paginationMetadata,h=i.identifierField,m=o(t,r,"usePaginationFragment()"),y=m.fragmentData,g=m.fragmentRef,b=m.refetch,_=d(t,g),R=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"backward",fragmentData:y,fragmentIdentifier:_,fragmentNode:t,fragmentRef:g,identifierField:h,paginationMetadata:l,paginationRequest:s}),P=R[0],E=R[1],k=R[2],S=R[3],C=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"forward",fragmentData:y,fragmentIdentifier:_,fragmentNode:t,fragmentRef:g,identifierField:h,paginationMetadata:l,paginationRequest:s}),F=C[0],q=C[1],x=C[2],w=C[3];return{data:y,loadNext:F,loadPrevious:P,hasNext:q,hasPrevious:E,isLoadingNext:x,isLoadingPrevious:k,refetch:c((function(e,r){return w(),S(),b(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[w,S,b])}}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(19),o=t(8),a=t(36),u=t(2),c=t(3),s=t(0),l=s.useCallback,f=s.useEffect,d=s.useState,p=t(1),v=p.ConnectionInterface,h=p.__internal.fetchQuery,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,b=p.getValueAtPath;t(5);e.exports=function(e){var r=e.direction,t=e.fragmentNode,s=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,R=e.connectionPathInFragmentData,P=e.paginationRequest,E=e.paginationMetadata,k=e.componentDisplayName,S=e.observer,C=e.onReset,F=e.identifierField,q=u(),x=i(),w=x.isFetchingRef,D=x.startFetch,I=x.disposeFetch,N=x.completeFetch,O=null!=F&&null!=_&&"object"==typeof _?_[F]:null,M=o(),Q=d(q),A=Q[0],T=Q[1],L=d(p),U=L[0],j=L[1],W=a(t,s);(q!==A||p!==U)&&(I(),C(),T(q),j(p));var K=function(e,r,t,n){var i,o,a=v.get(),u=a.EDGES,s=a.PAGE_INFO,l=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,p=a.START_CURSOR,h=b(t,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&c(!1);var m=h[u],y=h[s];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||c(!1),"object"!=typeof y&&c(!1);var g,_="forward"===e?null!==(i=y[d])&&void 0!==i?i:null:null!==(o=y[p])&&void 0!==o?o:null;null!==_&&"string"!=typeof _&&c(!1),g="forward"===e?null!=_&&!0===y[l]:null!=_&&!0===y[f];return{cursor:_,hasMore:g}}(r,0,_,R),V=K.cursor,H=K.hasMore;return f((function(){return function(){I()}}),[I]),[l((function(e,i){var o=null==i?void 0:i.onComplete;if(!0!==M.current)return{dispose:function(){}};var a=g(t,s);if(!0===w.current||null==_||W)return o&&o(null),{dispose:function(){}};(null==a||"PluralReaderSelector"===a.kind)&&c(!1);var u=a.owner.variables,l=a.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),p=y(r,e,V,d,(0,n.default)({},f),E);null!=F&&(p.id=O);var v=m(P,p,{force:!0});return h(q,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){D(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),o&&o(null)},error:function(e){N(),S.error&&S.error(e),o&&o(e)}})),{dispose:I}}),[q,O,r,V,D,I,N,w,W,_,t.name,s,k]),H,I]}},function(e,r,t){"use strict";var n=t(2),i=t(3),o=t(0),a=t(1),u=a.__internal.getObservableForActiveRequest,c=a.getSelector,s=o.useEffect,l=o.useState,f=o.useMemo;e.exports=function(e,r){var t=n(),o=f((function(){var n=c(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&i(!1),u(t,n.owner))}),[t,e,r]),a=l(null!=o),d=a[0],p=a[1];return s((function(){var e;if(p(null!=o),null!=o){var r=function(){p(!1)};e=o.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[o]),d}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(17),o=t(20),a=t(2),u=t(3),c=(t(0).useDebugValue,t(1).__internal),s=c.fetchQueryDeduped,l=c.fetchQuery;t(5);e.exports=function(e,r,t){n();var c,f=a(),d=r.fetchKey,p=r.fetchPolicy,v=r.source,h=r.variables,m=r.networkCacheConfig,y=o(e,h,m);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&u(!1),c={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:s(f,y.request.identifier,(function(){return f===r.environment&&null!=v?f.executeWithSource({operation:y,source:v}):f.execute({operation:y})})),fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var g=l(f,y);c={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=v&&f===r.environment?v.ifEmpty(g):(r.environment,g),fetchKey:d,fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return i(c)}},function(e,r,t){"use strict";var n=t(21),i=t(11),o=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=o(e);i(t,"first argument of useRefetchableFragment()");var a=n(t,r,"useRefetchableFragment()");return[a.fragmentData,a.refetch]}},function(e,r,t){"use strict";var n=t(2),i=t(0),o=i.useEffect,a=i.useRef;e.exports=function(e,r){var t=n(),i=a(null),u=Array.from(e).sort().join("");return o((function(){var n=t.getStore(),o=n.lookupInvalidationState(e),a=n.subscribeToInvalidationState(o,r);return i.current=a,function(){return a.dispose()}}),[u,r,t]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},function(e,r,t){"use strict";var n=t(2),i=t(0).useEffect,o=t(1).requestSubscription;e.exports=function(e,r){var t=null!=r?r:o,a=n();i((function(){return t(a,e).dispose}),[a,e,t])}}])}));
|
9
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=r(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"])}(window,(function(e,r,t,n,i,o,a,u,c,s,l){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=23)}([function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){"use strict";var n=t(3),i=t(0).useContext,o=t(12);e.exports=function(){var e=i(o);return null==e&&n(!1),e.environment}},function(e,r){e.exports=t},function(e,r){e.exports=n},function(e,r){e.exports=i},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(3),o=t(0),a=t(1),u=a.Observable,c=a.PreloadableQueryRegistry,s=a.RelayFeatureFlags,l=a.ReplaySubject,f=a.__internal.fetchQueryDeduped,d=a.createOperationDescriptor,p=a.getRequest,v=a.getRequestIdentifier,h=(t(5),null),m=100001;e.exports={loadQuery:function(e,r,t,a,h){var y,g,b;null===(y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(g=y.ReactCurrentDispatcher)||void 0===g||g.current,m++;var _,R,P,E,k,S,C=null!==(b=null==a?void 0:a.fetchPolicy)&&void 0!==b?b:"store-or-network",F=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),q=!1,x=function(r,t){return q=!0,e.executeWithSource({operation:r,source:t})},w=new l,D=u.create((function(e){return w.subscribe(e)})),I=null,N=!1,O=function(r){var n;N=!0;var i=new l;if(!0===s.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+v(r,t);n=f(e,o,(function(){return e.getNetwork().execute(r,t,F)}))}else{n=e.getNetwork().execute(r,t,F)}var a=n.subscribe({error:function(e){I=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return R=a,u.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),R()}}))},M=function(r,t){!0===s.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var n=f(e,r.request.identifier,t).subscribe({error:function(e){w.error(e)},next:function(e){w.next(e)},complete:function(){w.complete()}});P=n.unsubscribe},Q=function(r){var n=d(r,t,F);(_=e.retain(n),"store-only"!==C)&&(("store-or-network"!==C||"available"!==e.check(n).status)&&M(n,(function(){var e=O(r.params);return x(n,e)})))};if("PreloadableConcreteRequest"===r.kind){null===(S=(E=r.params).id)&&i(!1);var A=c.get(S);if(null!=A)Q(A);else{var T="store-only"===C?null:O(E),L=c.onLoad(S,(function(r){k();var n=d(r,t,F);_=e.retain(n),null!=T&&M(n,(function(){return x(n,T)}))}));k=L.dispose}}else{var U=p(r);S=null!=(E=U.params).cacheID?E.cacheID:E.id,Q(U)}var j=!1,W=!1,K=!1,V=function(){W||(_&&_.dispose(),W=!0)},H=function(){K||(q?P&&P():R&&R(),k&&k(),K=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){j||(V(),H(),j=!0)},releaseQuery:V,cancelNetworkRequest:H,fetchKey:m,id:S,get isDisposed(){return j||W},get networkError(){return I},name:E.name,networkCacheConfig:F,fetchPolicy:C,source:N?D:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===h&&(h=null===(e=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},function(e,r){e.exports=o},function(e,r,t){"use strict";var n=t(0),i=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,r,t){"use strict";var n=t(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,r,t){"use strict";var n=t(15).getFragmentResourceForEnvironment,i=t(2),o=t(0),a=o.useEffect,u=o.useRef,c=o.useState,s=t(1).getFragmentIdentifier;t(5);e.exports=function(e,r,t){var o=i(),l=n(o),f=u(!1),d=c(0)[1],p=s(e,r),v=l.readWithIdentifier(e,r,p,t),h=u(!0);function m(){!1!==f.current&&!1!==h.current&&d((function(e){return e+1}))}return a((function(){f.current=!0;var e=l.subscribe(v,m);return function(){f.current=!1,e.dispose()}}),[o,p]),{data:v.data,disableStoreUpdates:function(){h.current=!1},enableStoreUpdates:function(){h.current=!0,l.checkMissedUpdates(v)[0]&&m()}}}},function(e,r,t){"use strict";t(0).useRef,t(5);e.exports=function(e,r){}},function(e,r){e.exports=a},function(e,r,t){"use strict";var n=t(6).loadQuery;e.exports=function e(r,t,i){var o=null;null==t.root.getModuleIfRequired()&&(o=t.root.load());var a=t.getPreloadProps(i),u=a.queries,c=a.entryPoints,s=a.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e],i=t.environmentProviderOptions,o=t.options,a=t.parameters,c=t.variables,s=r.getEnvironment(i);l[e]=n(s,a,c,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)})),null!=c&&Object.keys(c).forEach((function(t){var n=c[t];if(null!=n){var i=n.entryPoint,o=n.entryPointParams;f[t]=e(r,i,o)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=s?s:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw o=null!==(e=o)&&void 0!==e?e:t.root.load();return r},get isDisposed(){return d},queries:l,rootModuleID:t.root.getModuleId()}}},function(e,r){e.exports=u},function(e,r,t){"use strict";var n=t(4),i=n(t(7)),o=n(t(28)),a=t(16),u=t(3),c=t(1),s=c.getFragmentIdentifier,l=c.getPendingOperationsForFragment,f=c.getSelector,d=c.isPromise,p=c.recycleNodesInto,v=c.reportMissingRequiredFields,h="function"==typeof WeakMap,m=Object.freeze([]);function y(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function g(e,r,t){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data})),isMissingData:y(r),storeEpoch:t}:{cacheKey:e,snapshot:r,data:r.data,isMissingData:y(r),storeEpoch:t}}var b=function(){function e(e){this._environment=e,this._cache=a.create(1e6)}var r=e.prototype;return r.read=function(e,r,t,n){return this.readWithIdentifier(e,r,s(e,r),t,n)},r.readWithIdentifier=function(e,r,t,n,i){var o,a=this._environment;if(null==r)return{cacheKey:t,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var c=a.getStore().getEpoch();if(!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural)&&(Array.isArray(r)||u(!1),0===r.length))return{cacheKey:t,data:m,isMissingData:!1,snapshot:m,storeEpoch:c};var s=this._cache.get(t);if(null!=s){if("pending"===s.kind&&d(s.promise))throw a.__log({name:"suspense.fragment",data:s.result.data,fragment:e,isRelayHooks:!0,isMissingData:s.result.isMissingData,isPromiseCached:!0,pendingOperations:s.pendingOperations}),s.promise;if("done"===s.kind&&s.result.snapshot)return this._reportMissingRequiredFieldsInSnapshot(s.result.snapshot),s.result}var l=f(e,r);null==l&&u(!1);var p="PluralReaderSelector"===l.kind?l.selectors.map((function(e){return a.lookup(e)})):a.lookup(l),v=g(t,p,c);if(!v.isMissingData)return this._reportMissingRequiredFieldsInSnapshot(p),this._cache.set(t,{kind:"done",result:v}),v;var h="PluralReaderSelector"===l.kind?l.selectors[0].owner:l.owner,y=this._getAndSavePromiseForFragmentRequestInFlight(t,e,h,v);if(null!=y&&d(y.promise))throw a.__log({name:"suspense.fragment",data:v.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:v.isMissingData,pendingOperations:y.pendingOperations}),y.promise;return this._reportMissingRequiredFieldsInSnapshot(p),g(t,p,c)},r._reportMissingRequiredFieldsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&v(r._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&v(this._environment,e.missingRequiredFields)},r.readSpec=function(e,r,t){var n={};for(var i in e)n[i]=this.read(e[i],r[i],t,i);return n},r.subscribe=function(e,r){var t=this,n=this._environment,i=e.cacheKey,o=e.snapshot;if(!o)return{dispose:function(){}};var a=this.checkMissedUpdates(e),c=a[0],s=a[1];c&&r();var l=[];return Array.isArray(o)?(Array.isArray(s)||u(!1),s.forEach((function(e,o){l.push(n.subscribe(e,(function(e){var a=n.getStore().getEpoch();t._updatePluralSnapshot(i,s,e,o,a),r()})))}))):((null==s||Array.isArray(s))&&u(!1),l.push(n.subscribe(s,(function(e){var o=n.getStore().getEpoch();t._cache.set(i,{kind:"done",result:g(i,e,o)}),r()})))),{dispose:function(){l.map((function(e){return e.dispose()})),t._cache.delete(i)}}},r.subscribeSpec=function(e,r){var t=this,n=Object.keys(e).map((function(n){return t.subscribe(e[n],r)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},r.checkMissedUpdates=function(e){var r=this._environment,t=e.snapshot;if(!t)return[!1,null];var n;if(n=r.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var o=e.cacheKey;if(Array.isArray(t)){var a=!1,u=[];return t.forEach((function(e,t){var n=r.lookup(e.selector),o=e.data,c=n.data,s=p(o,c);s!==o&&(n=(0,i.default)((0,i.default)({},n),{},{data:s}),a=!0),u[t]=n})),a&&this._cache.set(o,{kind:"done",result:g(o,u,n)}),[a,u]}var c=r.lookup(t.selector),s=t.data,l=c.data,f=p(s,l),d={data:f,isMissingData:c.isMissingData,seenRecords:c.seenRecords,selector:c.selector,missingRequiredFields:c.missingRequiredFields};return f!==s&&this._cache.set(o,{kind:"done",result:g(o,d,n)}),[f!==s,d]},r.checkMissedUpdatesSpec=function(e){var r=this;return Object.keys(e).some((function(t){return r.checkMissedUpdates(e[t])[0]}))},r._getAndSavePromiseForFragmentRequestInFlight=function(e,r,t,n){var i=this,o=l(this._environment,r,t);if(null==o)return null;var a=o.promise,u=o.pendingOperations,c=a.then((function(){i._cache.delete(e)})).catch((function(r){i._cache.delete(e)}));return c.displayName=a.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:c,result:n}),{promise:c,pendingOperations:u}},r._updatePluralSnapshot=function(e,r,t,n,i){var a,u=this._cache.get(e);if(d(u))_(t.selector.node.name);else{var c=null==u||null===(a=u.result)||void 0===a?void 0:a.snapshot;if(!c||Array.isArray(c)){var s=c?(0,o.default)(c):(0,o.default)(r);s[n]=t,this._cache.set(e,{kind:"done",result:g(e,s,i)})}else _(t.selector.node.name)}},e}();function _(e){u(!1)}function R(e){return new b(e)}var P=h?new WeakMap:new Map;e.exports={createFragmentResource:R,getFragmentResourceForEnvironment:function(e){var r=P.get(e);if(r)return r;var t=R(e);return P.set(e,t),t}}},function(e,r,t){"use strict";var n=t(3),i=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var t=this._map.keys().next();t.done||this._map.delete(t.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},function(e,r,t){"use strict";var n=t(9),i=t(18),o=i.getQueryCacheIdentifier,a=i.getQueryResourceForEnvironment,u=t(19),c=t(10),s=t(2),l=t(0),f=l.useContext,d=l.useEffect,p=l.useState,v=l.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,i=e.fetchObservable,l=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,y=s(),g=f(n),b=a(y),_=p(0),R=_[0],P=_[1],E=u(),k=E.startFetch,S=E.completeFetch,C="".concat(R,"-").concat(null!=h?h:""),F=o(y,r,l,m,C),q=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(F,r,i,l,m,{start:k,complete:S,error:S},g)})),x=v(!1);d((function(){return function(){x.current=!0}}),[]),d((function(){if(!0===x.current)return x.current=!1,void P((function(e){return e+1}));var e=b.retain(q,g);return function(){e.dispose()}}),[y,F]),d((function(){b.releaseTemporaryRetain(q)}));var w=q.fragmentNode,D=q.fragmentRef;return c(w,D,t).data}},function(e,r,t){"use strict";var n=t(4),i=n(t(7)),o=n(t(30)),a=t(16),u=t(3),c=t(1).isPromise,s=(t(5),"function"==typeof WeakMap);function l(e){return void 0!==e.request.node.params.metadata.live}function f(e,r,t,n,i){var o=null!=t?t:"store-or-network",a=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(o,"-").concat(a,"-").concat(r.request.identifier);return null!=i?"".concat(u,"-").concat(i):u}function d(e,r){var t={__id:e.fragment.dataID,__fragments:(0,o.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var p=2e5;function v(e,r,t,n,i,o){var a=l(r),c=n,s=0,f=null,d=null,v=i,h=function(e){return 1===++s&&(f=e.retain(r)),{dispose:function(){0===(s=Math.max(0,s-1))&&(null==f&&u(!1),f.dispose(),f=null),o(m)}}},m={cacheIdentifier:e,id:p++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return c},setValue:function(e){c=e},getRetainCount:function(){return s},getNetworkSubscription:function(){return v},setNetworkSubscription:function(e){a&&null!=v&&v.unsubscribe(),v=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var r=h(e),t=null,n=function(){clearTimeout(t),t=null,d=null,r.dispose(),a&&s<=0&&null!=v&&v.unsubscribe()};return t=setTimeout(n,3e5),null!=d&&d(),d=n,{dispose:function(){d&&d()}}},permanentRetain:function(e){var r=h(e);return null!=d&&(d(),d=null),{dispose:function(){r.dispose(),a&&s<=0&&null!=v&&v.unsubscribe()}}},releaseTemporaryRetain:function(){null!=d&&(d(),d=null)}};return m}var h=function(){function e(e){var r=this;(0,o.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=a.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,i,o,a){var u=f(this._environment,e,t,n,o);return this.prepareWithIdentifier(u,e,r,t,n,i,a)},r.prepareWithIdentifier=function(e,r,t,n,o,a,u){var s=this._environment,l=null!=n?n:"store-or-network",f=null!=o?o:s.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,v=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,r,t,l,f,u,(0,i.default)((0,i.default)({},a),{},{unsubscribe:function(e){null!=p&&p.dispose();var r=null==a?void 0:a.unsubscribe;r&&r(e)}}))),p=d.temporaryRetain(s);var h=d.getValue();if(c(h))throw s.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:v,operation:r,queryAvailability:d.operationAvailability,renderPolicy:f}),h;if(h instanceof Error)throw h;return h},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,i=e.operation,o=this._getOrCreateCacheEntry(n,i,null,e,null),a=o.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:o.id}),{dispose:function(){a.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var i=f(this._environment,e,r,t,n);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,t,n,i){var o=this._cache.get(e);return null==o&&(o=v(e,r,t,n,i,this._clearCacheEntry),this._cache.set(e,o)),o},r._fetchAndSaveQuery=function(e,r,t,n,o,a,c){var s,f,p=this,h=this._environment,m=h.check(r),y=m.status,g="available"===y,b=g||"partial"===o&&"stale"!==y,_=function(){};switch(n){case"store-only":s=!1,f=!0;break;case"store-or-network":s=!g,f=b;break;case"store-and-network":s=!0,f=b;break;case"network-only":default:s=!0,f=!1}if(f){var R=d(r,e),P=v(e,r,m,R,null,this._clearCacheEntry);this._cache.set(e,P)}if(s){var E,k=d(r,e);t.subscribe({start:function(t){E=t;var n=p._cache.get(e);n&&n.setNetworkSubscription(E);var o=null==c?void 0:c.start;o&&o((0,i.default)((0,i.default)({},t),{},{unsubscribe:function(){l(r)&&t.unsubscribe()}}))},next:function(){var t=p._getOrCreateCacheEntry(e,r,m,k,E);t.processedPayloadsCount+=1,t.setValue(k),_();var n=null==c?void 0:c.next;null!=n&&n(h.lookup(r.fragment))},error:function(t){var n=p._getOrCreateCacheEntry(e,r,m,t,E);0===n.processedPayloadsCount&&n.setValue(t),_(),E=null,n.setNetworkSubscription(null);var i=null==c?void 0:c.error;i&&i(t)},complete:function(){_(),E=null;var r=p._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==c?void 0:c.complete;t&&t()},unsubscribe:null==c?void 0:c.unsubscribe});var S=this._cache.get(e);if(!S){var C=new Promise((function(e){_=e}));C.displayName="Relay("+r.fragment.node.name+")",S=v(e,r,m,C,E,this._clearCacheEntry),this._cache.set(e,S)}}else{var F=null==c?void 0:c.complete;F&&F()}var q=this._cache.get(e);return null==q&&u(!1),h.__log({name:"queryresource.fetch",resourceID:q.id,operation:r,profilerContext:a,fetchPolicy:n,renderPolicy:o,queryAvailability:m,shouldFetch:s}),q},e}();function m(e){return new h(e)}var y=s?new WeakMap:new Map;e.exports={createQueryResource:m,getQueryResourceForEnvironment:function(e){var r=y.get(e);if(r)return r;var t=m(e);return y.set(e,t),t},getQueryCacheIdentifier:f}},function(e,r,t){"use strict";var n=t(0),i=n.useCallback,o=n.useEffect,a=n.useRef;e.exports=function(){var e=a(null),r=a(!1),t=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),n=i((function(t){e.current=t,r.current=!0}),[]),u=i((function(){e.current=null,r.current=!1}),[]);return o((function(){return t}),[t]),{isFetchingRef:r,startFetch:n,disposeFetch:t,completeFetch:u}}},function(e,r,t){"use strict";var n=t(31),i=t(0),o=t(1),a=o.createOperationDescriptor,u=o.getRequest,c=i.useMemo;e.exports=function(e,r,t){var i=n(r)[0],o=n(t||{})[0];return c((function(){return a(u(e),i,o)}),[e,i,o])}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(15).getFragmentResourceForEnvironment,o=t(9),a=t(18).getQueryResourceForEnvironment,u=t(10),c=t(8),s=t(22),l=t(2),f=t(3),d=t(0),p=d.useCallback,v=d.useContext,h=d.useReducer,m=t(1),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,b=m.getFragmentIdentifier,_=m.getRefetchMetadata,R=m.getSelector,P=m.getValueAtPath;t(5);function E(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(t=r.refetchEnvironment)&&void 0!==t?t:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}e.exports=function(e,r,t){var d=l(),m=_(e,t),k=m.refetchableRequest,S=m.fragmentRefPathInResponse,C=m.identifierField,F=b(e,r),q=h(E,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:F,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),x=q[0],w=q[1],D=x.fetchPolicy,I=x.mirroredEnvironment,N=x.mirroredFragmentIdentifier,O=x.onComplete,M=x.refetchEnvironment,Q=x.refetchQuery,A=x.renderPolicy,T=null!=M?M:d,L=a(T),U=i(T),j=v(o),W=T!==I||F!==N,K=s(k),V=K[0],H=K[1],B=K[2],z=r;if(W)w({type:"reset",environment:T,fragmentIdentifier:F}),B();else if(null!=Q&&null!=V){0;var Y=function(e){O&&O(null!=e?e:null)},G=null!=V.source?V.source:y(T,Q),X=j.wrapPrepareQueryResource((function(){return L.prepare(Q,G,D,A,{error:Y,complete:function(){Y()}},V.fetchKey,j)})),J=U.read(X.fragmentNode,X.fragmentRef,t).data;null==J&&f(!1),z=P(J,S)}var Z=u(e,z,t),$=Z.data,ee=Z.disableStoreUpdates,re=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:z,refetch:function(e,r,t,i,o,a,u,s,l,f,d){var v=c(),h=null!=s&&null!=i&&"object"==typeof i?i[s]:null;return p((function(e,i){if(!0!==v.current)return{dispose:function(){}};var o,u,c=null==i?void 0:i.__environment,p=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,b=R(a,f);if(null==b)o={},u={};else if("PluralReaderSelector"===b.kind){var _,P,E,k;o=null!==(_=null===(P=b.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==_?_:{},u=null!==(E=null===(k=b.selectors[0])||void 0===k?void 0:k.variables)&&void 0!==E?E:{}}else o=b.owner.variables,u=b.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},o),u),e);null==s||e.hasOwnProperty("id")||(S.id=h);var C=g(d,S,{force:!0});return l(C.request.variables,{fetchPolicy:p,__environment:c,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:p,onComplete:y,refetchEnvironment:c,refetchQuery:C,renderPolicy:m}),{dispose:t}}),[o,r,t,h,l])}(0,w,B,$,F,e,0,C,H,r,k),disableStoreUpdates:ee,enableStoreUpdates:re}}},function(e,r,t){"use strict";var n=t(4)(t(14)),i=t(6),o=i.loadQuery,a=i.useTrackLoadQueryInRender,u=t(8),c=t(2),s=t(0),l=s.useCallback,f=s.useEffect,d=s.useRef,p=s.useState,v=t(1).getRequest,h={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==v(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:h,i=c();a();var s=u(),v=d(new Set([t])),y=p((function(){return t})),g=y[0],b=y[1],_=p((function(){return t})),R=_[0],P=_[1];t!==R&&(v.current.add(t),P(t),b(t));var E=l((function(){s.current&&(v.current.add(h),b(h))}),[s]),k=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);v.current.add(u),b(u)}}),[i,e,b,s]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=v.current;if(s.current){var t,i=(0,n.default)(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o===g)break;r.delete(o),"NullQueryReference"!==o.kind&&(m(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,s,k,e]),f((function(){return function(){var r,t=(0,n.default)(v.current);try{for(t.s();!(r=t.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,E]}},function(e,r,t){"use strict";var n=t(24),i=t(13),o=t(6).loadQuery,a=t(25),u=t(26),c=t(27),s=t(29),l=t(33),f=t(34),d=t(37),p=t(22),v=t(38),h=t(2),m=t(39),y=t(40),g=t(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:a,fetchQuery:g.fetchQuery,loadQuery:o,loadEntryPoint:i,useFragment:c,useLazyLoadQuery:s,useEntryPointLoader:u,useQueryLoader:p,useMutation:l,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:v,useRelayEnvironment:h,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,r,t){"use strict";var n=t(9),i=t(2),o=t(0),a=t(0),u=a.useContext,c=a.useEffect;t(5);e.exports=function(e){var r=e.entryPointReference,t=e.props,a=r.getComponent,s=r.queries,l=r.entryPoints,f=r.extraProps,d=r.rootModuleID,p=a(),v=u(n),h=i();return c((function(){h.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:d})}),[h,v,d]),o.createElement(p,{entryPoints:l,extraProps:f,props:t,queries:s})}},function(e,r,t){"use strict";var n=t(0),i=t(12),o=n.useMemo;e.exports=function(e){var r=e.children,t=e.environment,a=e.getEnvironmentForActor,u=o((function(){return{environment:t,getEnvironmentForActor:a}}),[t,a]);return n.createElement(i.Provider,{value:u},r)}},function(e,r,t){"use strict";var n=t(4)(t(14)),i=t(13),o=t(6).useTrackLoadQueryInRender,a=t(8),u=t(0),c=u.useCallback,s=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var u,p,v,h;o();var m=null!==(u=null==t||null===(p=t.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(v=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==v?v:null,g=a(),b=l(new Set([m])),_=f(m),R=_[0],P=_[1],E=f(y),k=E[0],S=E[1],C=c((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),P(e)}}),[P,g]),F=c((function(t){if(g.current){var n=i(e,r,t);b.current.add(n),P(n),S(t)}}),[e,r,P,g]),q=l(!1);return s((function(){return function(){q.current=!0}}),[]),s((function(){if(!0===q.current)return q.current=!1,void("NullEntryPointReference"!==R.kind&&null!=k&&F(k));var e=b.current;if(g.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var i=r.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[R,k,F,g]),s((function(){return function(){var e,r=(0,n.default)(b.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullEntryPointReference"!==t.kind&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,F,C]}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(10),o=t(11),a=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){n();var t=a(e);return o(t,"first argument of useFragment()"),i(t,r,"useFragment()").data}},function(e,r){e.exports=c},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(17),o=t(20),a=t(2),u=t(1).__internal.fetchQuery;e.exports=function(e,r,t){n();var c=a(),s=o(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:u(c,s),fetchPolicy:null==t?void 0:t.fetchPolicy,query:s,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},function(e,r){e.exports=s},function(e,r,t){"use strict";var n=t(32),i=t(0),o=i.useMemo,a=i.useRef,u=i.useState;e.exports=function(e){var r,t,i=a(0),c=u(e),s=c[0],l=c[1];return n(e,s)||(i.current=(null!==(t=i.current)&&void 0!==t?t:0)+1,l(e)),[o((function(){return e}),[i.current]),null!==(r=i.current)&&void 0!==r?r:0]}},function(e,r){e.exports=l},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(8),o=t(2),a=t(0),u=t(1).commitMutation,c=a.useState,s=a.useEffect,l=a.useRef,f=a.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=o(),a=i(),d=l(t),p=l(e),v=l(new Set),h=c(!1),m=h[0],y=h[1],g=f((function(r){d.current===t&&p.current===e&&(v.current.delete(r),a.current&&y(v.current.size>0))}),[t,a,e]);s((function(){d.current===t&&p.current===e||(v.current=new Set,a.current&&y(!1),d.current=t,p.current=e)}),[t,a,e]);var b=f((function(i){var o=r(t,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,r){g(o),i.onCompleted&&i.onCompleted(e,r)},onError:function(e){g(o),i.onError&&i.onError(e)},onUnsubscribe:function(){g(o),i.onUnsubscribe&&i.onUnsubscribe()}}));return v.current.add(o),a.current&&y(!0),o}),[g,r,t,a,e]);return[b,m]}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(35),o=t(21),a=t(11),u=t(0),c=u.useCallback,s=(u.useDebugValue,u.useState),l=t(1),f=l.getFragment,d=l.getFragmentIdentifier,p=l.getPaginationMetadata;function v(e){var r=s(!1),t=r[0],o=r[1],a={start:function(){return o(!0)},complete:function(){return o(!1)},error:function(){return o(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:a,onReset:function(){return o(!1)}}));return[u[0],u[1],t,u[2]]}e.exports=function(e,r){var t=f(e);a(t,"first argument of usePaginationFragment()");var i=p(t,"usePaginationFragment()"),u=i.connectionPathInFragmentData,s=i.paginationRequest,l=i.paginationMetadata,h=i.identifierField,m=o(t,r,"usePaginationFragment()"),y=m.fragmentData,g=m.fragmentRef,b=m.refetch,_=d(t,g),R=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"backward",fragmentData:y,fragmentIdentifier:_,fragmentNode:t,fragmentRef:g,identifierField:h,paginationMetadata:l,paginationRequest:s}),P=R[0],E=R[1],k=R[2],S=R[3],C=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"forward",fragmentData:y,fragmentIdentifier:_,fragmentNode:t,fragmentRef:g,identifierField:h,paginationMetadata:l,paginationRequest:s}),F=C[0],q=C[1],x=C[2],w=C[3];return{data:y,loadNext:F,loadPrevious:P,hasNext:q,hasPrevious:E,isLoadingNext:x,isLoadingPrevious:k,refetch:c((function(e,r){return w(),S(),b(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[w,S,b])}}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(19),o=t(8),a=t(36),u=t(2),c=t(3),s=t(0),l=s.useCallback,f=s.useEffect,d=s.useState,p=t(1),v=p.ConnectionInterface,h=p.__internal.fetchQuery,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,b=p.getValueAtPath;t(5);e.exports=function(e){var r=e.direction,t=e.fragmentNode,s=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,R=e.connectionPathInFragmentData,P=e.paginationRequest,E=e.paginationMetadata,k=e.componentDisplayName,S=e.observer,C=e.onReset,F=e.identifierField,q=u(),x=i(),w=x.isFetchingRef,D=x.startFetch,I=x.disposeFetch,N=x.completeFetch,O=null!=F&&null!=_&&"object"==typeof _?_[F]:null,M=o(),Q=d(q),A=Q[0],T=Q[1],L=d(p),U=L[0],j=L[1],W=a(t,s);(q!==A||p!==U)&&(I(),C(),T(q),j(p));var K=function(e,r,t,n){var i,o,a=v.get(),u=a.EDGES,s=a.PAGE_INFO,l=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,p=a.START_CURSOR,h=b(t,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&c(!1);var m=h[u],y=h[s];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||c(!1),"object"!=typeof y&&c(!1);var g,_="forward"===e?null!==(i=y[d])&&void 0!==i?i:null:null!==(o=y[p])&&void 0!==o?o:null;null!==_&&"string"!=typeof _&&c(!1),g="forward"===e?null!=_&&!0===y[l]:null!=_&&!0===y[f];return{cursor:_,hasMore:g}}(r,0,_,R),V=K.cursor,H=K.hasMore;return f((function(){return function(){I()}}),[I]),[l((function(e,i){var o=null==i?void 0:i.onComplete;if(!0!==M.current)return{dispose:function(){}};var a=g(t,s);if(!0===w.current||null==_||W)return o&&o(null),{dispose:function(){}};(null==a||"PluralReaderSelector"===a.kind)&&c(!1);var u=a.owner.variables,l=a.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),p=y(r,e,V,d,(0,n.default)({},f),E);null!=F&&(p.id=O);var v=m(P,p,{force:!0});return h(q,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){D(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),o&&o(null)},error:function(e){N(),S.error&&S.error(e),o&&o(e)}})),{dispose:I}}),[q,O,r,V,D,I,N,w,W,_,t.name,s,k]),H,I]}},function(e,r,t){"use strict";var n=t(2),i=t(3),o=t(0),a=t(1),u=a.__internal.getObservableForActiveRequest,c=a.getSelector,s=o.useEffect,l=o.useState,f=o.useMemo;e.exports=function(e,r){var t=n(),o=f((function(){var n=c(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&i(!1),u(t,n.owner))}),[t,e,r]),a=l(null!=o),d=a[0],p=a[1];return s((function(){var e;if(p(null!=o),null!=o){var r=function(){p(!1)};e=o.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[o]),d}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(17),o=t(20),a=t(2),u=t(3),c=(t(0).useDebugValue,t(1).__internal),s=c.fetchQueryDeduped,l=c.fetchQuery;t(5);e.exports=function(e,r,t){n();var c,f=a(),d=r.fetchKey,p=r.fetchPolicy,v=r.source,h=r.variables,m=r.networkCacheConfig,y=o(e,h,m);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&u(!1),c={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:s(f,y.request.identifier,(function(){return f===r.environment&&null!=v?f.executeWithSource({operation:y,source:v}):f.execute({operation:y})})),fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var g=l(f,y);c={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=v&&f===r.environment?v.ifEmpty(g):(r.environment,g),fetchKey:d,fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return i(c)}},function(e,r,t){"use strict";var n=t(21),i=t(11),o=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=o(e);i(t,"first argument of useRefetchableFragment()");var a=n(t,r,"useRefetchableFragment()");return[a.fragmentData,a.refetch]}},function(e,r,t){"use strict";var n=t(2),i=t(0),o=i.useEffect,a=i.useRef;e.exports=function(e,r){var t=n(),i=a(null),u=Array.from(e).sort().join("");return o((function(){var n=t.getStore(),o=n.lookupInvalidationState(e),a=n.subscribeToInvalidationState(o,r);return i.current=a,function(){return a.dispose()}}),[u,r,t]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},function(e,r,t){"use strict";var n=t(2),i=t(0).useEffect,o=t(1).requestSubscription;e.exports=function(e,r){var t=null!=r?r:o,a=n();i((function(){return t(a,e).dispose}),[a,e,t])}}])}));
|
package/react-relay-legacy.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
|
-
* Relay v0.0.0-main-
|
2
|
+
* Relay v0.0.0-main-c20f3146
|
3
3
|
*/
|
4
4
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("relay-runtime"),require("react"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("invariant"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/extends"),require("fbjs/lib/warning")):"function"==typeof define&&define.amd?define(["relay-runtime","react","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","invariant","fbjs/lib/areEqual","@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/extends","fbjs/lib/warning"],t):"object"==typeof exports?exports.ReactRelayLegacy=t(require("relay-runtime"),require("react"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("invariant"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/extends"),require("fbjs/lib/warning")):e.ReactRelayLegacy=t(e["relay-runtime"],e.react,e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e.invariant,e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/extends"],e["fbjs/lib/warning"])}(window,(function(e,t,r,n,o,a,s,i,u,l,c,h){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=19)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=r(1),o=r(0).__internal.createRelayContext;e.exports=o(n)},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t){e.exports=i},function(e,t){e.exports=u},function(e,t,r){"use strict";function n(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:n,getContainerName:function(e){return"Relay("+n(e)+")"}}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(2)(r(13)),o=r(21),a=r(10),s=a.getComponentName,i=a.getContainerName,u=r(3),l=r(14),c=r(22),h=r(6),f=r(1),p=r(0).getFragment;e.exports=function(e,t,r){var a=i(e);o(s(e),t);var d={};for(var v in t)d[v]=p(t[v]);var _=r(e,d);function y(e,t){var r,o=c(u);null==o&&h(!1,"`%s` tried to render a context that was not valid this means that `%s` was rendered outside of a query renderer.",a,a);var s=c(l);return f.createElement(_,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(r=null==s?void 0:s.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}_.displayName=a,y.displayName=a;var b=f.forwardRef(y);return b.__ComponentClass=e,b.displayName=a,b}},function(e,t){e.exports=c},function(e,t,r){"use strict";var n=r(1);e.exports=n.createContext({rootIsQueryRenderer:!1})},function(e,t,r){"use strict";var n=r(23),o=r(6);function a(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return a(e)||o(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:a}},function(e,t,r){"use strict";var n=r(2)(r(5)),o=r(6),a=r(0),s=a.__internal.fetchQuery,i=a.createOperationDescriptor,u=a.isRelayModernEnvironment,l=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_callOnDataChangeWhenSet",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.execute=function(e){var t=this,r=e.environment,n=e.operation,o=e.preservePreviousReferences,a=void 0!==o&&o,i=r.retain(n),l=function(){t._selectionReferences=t._selectionReferences.concat(i)},c=function(){a||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(i)},h=function(){t._selectionReferences=t._selectionReferences.concat(i)};return u(r)?s(r,n).do({error:l,complete:c,unsubscribe:h}):r.execute({operation:n}).do({error:l,complete:c,unsubscribe:h})},t.setOnDataChange=function(e){this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._callOnDataChangeWhenSet&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,o=e.environment,a=e.operation,s=e.onDataChange,u=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:l||[],operation:a},s&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(s)&&this._fetchOptions.onDataChangeCallbacks.push(s);var c=t?i(a.request.node,a.request.variables,t):a,h=this.execute({environment:o,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._callOnDataChangeWhenSet=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:u})},error:function(e){n._callOnDataChangeWhenSet=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;u?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){h.unsubscribe()}},u=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var n=this._fetchOptions,a=n.environment,s=n.onDataChangeCallbacks,i=n.operation;if(!this._snapshot&&(this._snapshot=a.lookup(i.fragment),this._rootSubscription=a.subscribe(this._snapshot,(function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach((function(t){return t({snapshot:e})}))}})),this._snapshot&&r&&Array.isArray(s))){var u=this._snapshot;s.forEach((function(e){return e({snapshot:u})}))}},e}();e.exports=l},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(0).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(a){var s,i,u,l=e[a],c=t[a],h=o(l,c),f=null!=h&&"PluralReaderSelector"===h.kind?null!==(s=null===(i=h.selectors[0])||void 0===i?void 0:i.owner.variables)&&void 0!==s?s:{}:null!==(u=null==h?void 0:h.owner.variables)&&void 0!==u?u:{};r=(0,n.default)((0,n.default)({},r),f)})),r}},function(e,t){e.exports=h},function(e,t,r){"use strict";var n=r(3),o=r(20),a=r(24),s=r(25),i=r(26),u=r(27),l=r(0);e.exports={ConnectionHandler:l.ConnectionHandler,QueryRenderer:i,LocalQueryRenderer:a,MutationTypes:l.MutationTypes,RangeOperations:l.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:l.applyOptimisticMutation,commitLocalUpdate:l.commitLocalUpdate,commitMutation:l.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:s.createContainer,createRefetchContainer:u.createContainer,fetchQuery_DEPRECATED:l.fetchQuery_DEPRECATED,graphql:l.graphql,readInlineData:l.readInlineData,requestSubscription:l.requestSubscription}},function(e,t,r){"use strict";var n=r(2),o=n(r(4)),a=n(r(11)),s=n(r(8)),i=n(r(9)),u=n(r(5)),l=r(12),c=r(10).getContainerName,h=r(15).assertRelayContext,f=r(7),p=r(1),d=r(0),v=d.createFragmentSpecResolver,_=d.getDataIDsFromObject,y=d.isScalarAndEqual;function b(e,t){var r,n,l=c(e);return n=r=function(r){function n(e){var n,o;o=r.call(this,e)||this,(0,u.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:m(t.relayProp.environment)}:null}))}));var a=h(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,c=v(a,l,t,e,i);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:a,relayProp:m(a.environment),resolver:c},o}(0,i.default)(n,r),n.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,a=h(e.__relayContext),s=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,i=_(t,o),u=_(t,e),c=r.resolver;if(r.prevPropsContext.environment!==a.environment||!f(i,u))return{data:(c=v(a,l,t,e,s)).resolve(),prevPropsContext:a,prevProps:e,relayProp:m(a.environment),resolver:c};c.setProps(e);var p=c.resolve();return p!==r.data?{data:p,prevProps:e,prevPropsContext:a,relayProp:m(a.environment)}:null};var c=n.prototype;return c.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},c.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},c.componentWillUnmount=function(){this.state.resolver.dispose()},c.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!y(e[a],this.props[a]))return!0}return!1},c._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},c._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},c.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"]));return p.createElement(e,(0,o.default)((0,o.default)((0,o.default)({},n),this.state.data),{},{ref:r,relay:this.state.relayProp}))},n}(p.Component),(0,u.default)(r,"displayName",l),n}function m(e){return{environment:e}}e.exports={createContainer:function(e,t){return l(e,t,b)}}},function(e,t,r){"use strict";var n=r(6);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,o)}}},function(e,t,r){"use strict";var n=r(1).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=n.ReactCurrentDispatcher,a=n.ReactCurrentOwner;e.exports=function(e){return(null!=o?o.current:a.currentDispatcher).readContext(e)}},function(e,t,r){"use strict";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}},function(e,t,r){"use strict";var n=r(3),o=r(14),a=r(7),s=r(1),i=r(0),u=i.createOperationDescriptor,l=i.deepFreeze,c=i.getRequest,h=s.useLayoutEffect,f=s.useState,p=s.useRef,d=s.useMemo,v={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,i=e.environment,_=e.query,y=e.variables,b=e.render,m=(t=y,r=s.useRef(t),a(r.current,t)||(l(t),r.current=t),r.current),C=d((function(){var e=c(_);return u(e,m)}),[_,m]),R=d((function(){return{environment:i}}),[i]),g=p(null),x=f(null)[1],S=p(null),P=d((function(){i.check(C);var e=i.lookup(C.fragment);g.current=e.data;var t=i.retain(C),r=i.subscribe(e,(function(e){g.current=e.data,x(g.current)})),n=!1;return S.current&&S.current(),S.current=function(){n||(n=!0,S.current=null,t.dispose(),r.dispose())},e}),[i,C]);return h((function(){var e=S.current;return function(){e&&e()}}),[P]),s.createElement(n.Provider,{value:R},s.createElement(o.Provider,{value:v},b({props:g.current})))}},function(e,t,r){"use strict";var n=r(2),o=n(r(13)),a=n(r(11)),s=n(r(8)),i=n(r(9)),u=n(r(5)),l=n(r(4)),c=r(12),h=r(17),f=r(10),p=f.getComponentName,d=f.getContainerName,v=r(3),_=r(16),y=r(15).assertRelayContext,b=r(7),m=r(6),C=r(1),R=r(0),g=R.ConnectionInterface,x=R.Observable,S=R.RelayFeatureFlags,P=R.createFragmentSpecResolver,q=R.createOperationDescriptor,F=R.getDataIDsFromObject,O=R.getRequest,D=R.getVariablesFromObject,E=R.isScalarAndEqual,I=r(18);function A(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}function N(e,t,r){var n,c,f=p(e),R=d(e),N=function(e){var t=null,r=!1;for(var n in e){var o=e[n],a=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(r=!0),a&&(1!==a.length&&m(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",n,a.length),t&&m(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,l.default)((0,l.default)({},a[0]),{},{fragmentName:n}))}return r&&null===t&&m(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),j=r.getConnectionFromProps||function(e){var t=e.path;return t||m(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(r){for(var n=r[e.fragmentName],o=0;o<t.length;o++){if(!n||"object"!=typeof n)return null;n=n[t[o]]}return n}}(N),U=r.direction||N.direction;U||m(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var w=r.getFragmentVariables||function(e){var t=e.count;return t||m(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,r){return(0,l.default)((0,l.default)({},e),{},(0,u.default)({},t,r))}}(N);return c=n=function(n){function c(e){var r,o;o=n.call(this,e)||this,(0,u.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,u.default)((0,s.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,u.default)((0,s.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,u.default)((0,s.default)(o),"_refetchConnection",(function(e,t,r){if(!o._canFetchPage("refetchConnection"))return{dispose:function(){}};o._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:o._fetchPage(n,A(t),{force:!0}).unsubscribe}})),(0,u.default)((0,s.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=A(t),a=o._getConnectionData();if(!a)return x.create((function(e){return e.complete()})).subscribe(n),null;var s=a.edgeCount+e;if(r&&r.force)return o._refetchConnection(s,t);var i=g.get(),u=i.END_CURSOR,l=i.START_CURSOR,c=a.cursor;I(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)","forward"===U?u:l,c);var h={count:e,cursor:c,totalCount:s};return{dispose:o._fetchPage(h,n,r).unsubscribe}}));var a=y(e.__relayContext),i=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?o._resolver=P(a,R,t,e,i):o._resolver=P(a,R,t,e,i,o._handleFragmentDataUpdate),o.state={data:o._resolver.resolve(),prevContext:a,contextForChildren:a,relayProp:o._buildRelayProp(a),resolverGeneration:0},o._isUnmounted=!1,o._hasFetched=!1,o}(0,i.default)(c,n);var p=c.prototype;return p.componentDidMount=function(){this._isUnmounted=!1,!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},p.componentDidUpdate=function(e,t){!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},p.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,o=y(e.__relayContext),a=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,s=F(t,this.props),i=F(t,e),u=h(t,this.props),l=h(t,e);o.environment===this.state.prevContext.environment&&b(u,l)&&b(s,i)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=P(o,R,t,e,a):this._resolver=P(o,R,t,e,a,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:o,contextForChildren:o,relayProp:n._buildRelayProp(o),resolverGeneration:e.resolverGeneration+1}})));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},p.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},p.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!E(e[a],this.props[a]))return!0}return!1},p._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},p._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},p._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},p._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,a.default)(e,["componentRef"])),r=(0,l.default)((0,l.default)({},t),this.state.data),n=j(r);if(null==n)return null;var o=g.get(),s=o.EDGES,i=o.PAGE_INFO,u=o.HAS_NEXT_PAGE,c=o.HAS_PREV_PAGE,h=o.END_CURSOR,p=o.START_CURSOR;"object"!=typeof n&&m(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",f,s,i,n);var d=n[s],v=n[i];if(null==d||null==v)return null;Array.isArray(d)||m(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",f,s,d),"object"!=typeof v&&m(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",f,i,v);var _="forward"===U?v[u]:v[c],y="forward"===U?v[h]:v[p];return"boolean"!=typeof _||0!==d.length&&void 0===y?(I(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",i,f,"forward"===U?u:c,_,"forward"===U?h:p,y),null):{cursor:y,edgeCount:d.length,hasMore:_}},p._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new _),this._queryFetcher},p._canFetchPage=function(e){return!this._isUnmounted||(I(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,R,e),!1)},p._fetchPage=function(e,n,o){var s,i=this,u=y(this.props.__relayContext).environment,c=this.props,p=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,a.default)(c,["componentRef","__relayContext","__rootIsQueryRenderer"])),d=(0,l.default)((0,l.default)({},p),this.state.data),v=h(t,p);s=D(t,p),s=(0,l.default)((0,l.default)((0,l.default)({},v),s),this._refetchVariables);var _=r.getVariables(d,{count:e.count,cursor:e.cursor},s);("object"!=typeof _||null===_)&&m(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",_,f),_=(0,l.default)((0,l.default)({},_),this._refetchVariables),s=(0,l.default)((0,l.default)({},_),s);var C=o?{force:!!o.force}:void 0;null!=C&&null!=(null==o?void 0:o.metadata)&&(C.metadata=null==o?void 0:o.metadata);var R=O(r.query),g=q(R,_,C),S=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var P=function(){i._refetchSubscription===S&&(i._refetchSubscription=null,i._isARequestInFlight=!1)};return this._isARequestInFlight=!0,S=this._getQueryFetcher().execute({environment:u,operation:g,preservePreviousReferences:!0}).mergeMap((function(t){return x.create((function(t){!function(t,r){var n=i._resolver.resolve();i._resolver.setVariables(w(s,e.totalCount),g.request.node);var o=i._resolver.resolve();b(n,o)?r():i.setState({data:o,contextForChildren:{environment:i.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:P,complete:P,unsubscribe:P}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?S:null,S},p._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()},p.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"]));return C.createElement(v.Provider,{value:this.state.contextForChildren},C.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},c}(C.Component),(0,u.default)(n,"displayName",R),c}e.exports={createContainer:function(e,t,r){return c(e,t,(function(e,t){return N(e,t,r)}))}}},function(e,t,r){"use strict";var n=r(2),o=n(r(4)),a=n(r(8)),s=n(r(9)),i=n(r(5)),u=r(3),l=r(16),c=r(14),h=r(7),f=r(1),p=r(0),d=p.RelayFeatureFlags,v=p.createOperationDescriptor,_=p.deepFreeze,y=p.getRequest,b={},m={rootIsQueryRenderer:!0},C=function(e){function t(t){var r;r=e.call(this,t)||this,(0,i.default)((0,a.default)(r),"_handleDataChange",(function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState((function(e){var r=e.requestCacheKey;return r&&delete b[r],n===e.snapshot&&t===e.error?null:{renderProps:R(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,s,u={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;s=g(y(c).params,t.variables),n=b[s]?b[s].queryFetcher:new l}else n=new l;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,o.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:u},S(t,n,u,s)),r}(0,s.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&h(t.prevPropsVariables,e.variables)?null:x(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===d.ENABLE_QUERY_RENDERER_OFFSCREEN_SUPPORT&&!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){return x(e.props,t)}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete b[o],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete b[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,o=r.requestCacheKey;o&&(delete b[o],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return _(t),f.createElement(u.Provider,{value:r},f.createElement(c.Provider,{value:m},this.props.render(t)))},t}(f.Component);function R(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var o=r.retry(t);o&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:o}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function g(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function x(e,t){var r,n=e.query,a=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var s=g(y(n).params,e.variables);r=b[s]?b[s].queryFetcher:new l(a)}else r=new l(a);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},S(e,r,t.retryCallbacks))}function S(e,t,r,n){var o=e.environment,a=e.query,s=e.variables,i=e.cacheConfig,u=o;if(!a)return t.dispose(),{error:null,relayContext:{environment:u},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=y(a),c=v(l,s,i),h={environment:u};if("string"==typeof n&&b[n]){var f=b[n].snapshot;return f?{error:null,relayContext:h,renderProps:R(null,f,t,r),snapshot:f,requestCacheKey:n}:{error:null,relayContext:h,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var p=t.lookupInStore(u,c,e.fetchPolicy),d=t.fetch({environment:u,onDataChange:null,operation:c})||p;return n=n||g(l.params,e.variables),b[n]={queryFetcher:t,snapshot:d},d?{error:null,relayContext:h,renderProps:R(null,d,t,r),snapshot:d,requestCacheKey:n}:{error:null,relayContext:h,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:h,renderProps:R(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=C},function(e,t,r){"use strict";var n=r(2),o=n(r(13)),a=n(r(11)),s=n(r(4)),i=n(r(8)),u=n(r(9)),l=n(r(5)),c=r(12),h=r(17),f=r(10).getContainerName,p=r(3),d=r(16),v=r(15).assertRelayContext,_=r(7),y=r(1),b=r(0),m=b.Observable,C=b.createFragmentSpecResolver,R=b.createOperationDescriptor,g=b.getDataIDsFromObject,x=b.getRequest,S=b.getVariablesFromObject,P=b.isScalarAndEqual,q=r(18);function F(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return c(e,t,(function(e,t){return function(e,t,r){var n,c,b=f(e);return c=n=function(n){function c(e){var o,a;a=n.call(this,e)||this,(0,l.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,l.default)((0,i.default)(a),"_refetch",(function(e,n,o,i){if(a._isUnmounted)return q(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",b),{dispose:function(){}};var u=v(a.props.__relayContext).environment,l=h(t,a.props),c="function"==typeof e?e(a._getFragmentVariables()):e;c=(0,s.default)((0,s.default)({},l),c);var f=n?(0,s.default)((0,s.default)({},c),n):c,p=i?{force:!!i.force}:void 0;null!=p&&null!=(null==i?void 0:i.metadata)&&(p.metadata=null==i?void 0:i.metadata);var d,_="function"==typeof o?{next:o,error:o}:o||{},y=x(r),C=R(y,c,p);return a.state.localVariables=c,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(u,C,null==i?void 0:i.fetchPolicy)?(a.state.resolver.setVariables(f,C.request.node),a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){_.next&&_.next(),_.complete&&_.complete()})),{dispose:function(){}}):(a._getQueryFetcher().execute({environment:u,operation:C,preservePreviousReferences:!0}).mergeMap((function(e){return a.state.resolver.setVariables(f,C.request.node),m.create((function(e){return a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){a._refetchSubscription===d&&(a._refetchSubscription=null)})).subscribe((0,s.default)((0,s.default)({},_),{},{start:function(e){a._refetchSubscription=d=e,_.start&&_.start(e)}})),{dispose:function(){d&&d.unsubscribe()}})}));var u=v(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;a._refetchSubscription=null;var f=C(u,b,t,e,c);return a.state={data:f.resolve(),localVariables:null,prevProps:e,prevPropsContext:u,contextForChildren:u,relayProp:F(u.environment,a._refetch),resolver:f},a._isUnmounted=!1,a}(0,u.default)(c,n);var f=c.prototype;return f.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},c.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,a=v(e.__relayContext),s=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,i=g(t,o),u=g(t,e),l=h(t,o),c=h(t,e),f=r.resolver;if(r.prevPropsContext.environment!==a.environment||!_(l,c)||!_(i,u))return{data:(f=C(a,b,t,e,s)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:F(a.environment,r.relayProp.refetch),resolver:f};r.localVariables||f.setProps(e);var p=f.resolve();return p!==r.data?{data:p,prevProps:e}:null},f.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},f.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!P(e[a],this.props[a]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},f._getFragmentVariables=function(){return S(t,this.props)},f._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new d),this._queryFetcher},f.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"])),s=this.state,i=s.relayProp,u=s.contextForChildren;return y.createElement(p.Provider,{value:u},y.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:i})))},c}(y.Component),(0,l.default)(n,"displayName",b),c}(e,t,r)}))}}}])}));
|