UNPKG

40.5 kBJavaScriptView Raw
1/**
2 * Relay v0.0.0-experimental-a1a40b68
3 */
4!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("relay-runtime"),require("react"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread"),require("fbjs/lib/warning"),require("scheduler"),require("fbjs/lib/ExecutionEnvironment"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/defineProperty"),require("relay-runtime/lib/util/RelayReplaySubject"),require("relay-runtime/lib/util/getRequestIdentifier"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/mapObject"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["relay-runtime","react","fbjs/lib/invariant","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread","fbjs/lib/warning","scheduler","fbjs/lib/ExecutionEnvironment","react-relay/ReactRelayContext","@babel/runtime/helpers/defineProperty","relay-runtime/lib/util/RelayReplaySubject","relay-runtime/lib/util/getRequestIdentifier","@babel/runtime/helpers/extends","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/mapObject","fbjs/lib/areEqual"],t):"object"==typeof exports?exports.ReactRelayHooks=t(require("relay-runtime"),require("react"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread"),require("fbjs/lib/warning"),require("scheduler"),require("fbjs/lib/ExecutionEnvironment"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/defineProperty"),require("relay-runtime/lib/util/RelayReplaySubject"),require("relay-runtime/lib/util/getRequestIdentifier"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/mapObject"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=t(e["relay-runtime"],e.react,e["fbjs/lib/invariant"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread"],e["fbjs/lib/warning"],e.scheduler,e["fbjs/lib/ExecutionEnvironment"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/defineProperty"],e["relay-runtime/lib/util/RelayReplaySubject"],e["relay-runtime/lib/util/getRequestIdentifier"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/mapObject"],e["fbjs/lib/areEqual"])}(window,function(e,t,n,r,a,i,o,u,s,l,c,f,d,p,m,h,g){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=n(16),a=n(2),i=n(1).useContext;e.exports=function(){var e=i(r);return null==e&&a(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent of ancestor your compontent."),e.environment}},function(e,t){e.exports=a},function(e,t){e.exports=i},function(e,t,n){"use strict";var r=n(6),a=n(1).useRef;e.exports=function(e,t){var n=a(e.name);r(n.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},function(e,t,n){"use strict";var r=n(1).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=r},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=n(1),a=r.useCallback,i=r.useEffect,o=r.useRef;e.exports=function(){var e=o(null),t=o(!1),n=a(function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1},[]),r=a(function(r){n(),e.current=r,t.current=!0},[n]),u=a(function(){e.current=null,t.current=!1},[]);return i(function(){return n},[n]),{isFetchingRef:t,startFetch:r,disposeFetch:n,completeFetch:u}}},function(e,t,n){"use strict";var r,a=n(3)(n(5)),i=n(8),o=n(9),u=n(18),s=n(21),l=n(2),c=n(10),f=n(12),d=n(22),p=n(25),m=n(4),h=n(6),g=n(23).getFragmentResourceForEnvironment,y=n(26).getQueryResourceForEnvironment,v=n(1),b=v.useCallback,R=v.useContext,P=v.useEffect,x=v.useMemo,_=v.useReducer,E=v.useRef,k=n(0),w=k.__internal.fetchQuery,q=k.createOperationDescriptor,I=k.getFragmentIdentifier,S=k.getSelector;function F(e,t){switch(t.type){case"refetch":var n;return(0,a.default)({},e,{refetchVariables:t.refetchVariables,fetchPolicy:t.fetchPolicy,renderPolicy:t.renderPolicy,onComplete:t.onComplete,refetchEnvironment:t.environment,mirroredEnvironment:null!==(n=t.environment)&&void 0!==n?n:e.mirroredEnvironment});case"reset":return{fetchPolicy:void 0,renderPolicy:void 0,onComplete:void 0,refetchVariables:null,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}r={getInitialIDAndType:function(e,t,r){var a=n(0).Record,i=null==e?void 0:e.id;if(1!==t.length||"node"!==t[0]||null==i)return null;var o=r.getStore().getSource().get(i),u=o&&a.getType(o);return null==u?null:{id:i,typename:u}},checkSameTypeAfterRefetch:function(e,t,r,a){var i=n(0).Record;if(e){var o=t.getStore().getSource().get(e.id),u=o&&i.getType(o);u!==e.typename&&h(!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,r.name,a)}},checkSameIDAfterRefetch:function(e,t,r,a){if(null!=e){var i=t[n(0).ID_KEY];null!=i&&i!==e.id&&h(!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,r.name,a)}}},e.exports=function(e,t,n){var v,k,C=m(),j=u(e,n),M=j.refetchableRequest,D=j.fragmentRefPathInResponse,A=I(e,t),N=_(F,{fetchPolicy:void 0,renderPolicy:void 0,onComplete:void 0,refetchVariables:null,refetchEnvironment:null,mirroredEnvironment:C,mirroredFragmentIdentifier:A}),O=N[0],U=N[1],T=c(),K=T.startFetch,L=T.disposeFetch,Q=T.completeFetch,V=E(0),W=O.refetchVariables,z=O.refetchEnvironment,B=O.fetchPolicy,G=O.renderPolicy,H=O.onComplete,Y=O.mirroredEnvironment,J=O.mirroredFragmentIdentifier,X=null!==(v=z)&&void 0!==v?v:C,Z=y(X),$=R(i),ee=X!==Y||A!==J,te=p(W)[0],ne=x(function(){return null!=te?q(M,te):null},[te,M]),re=t;if(ee)U({type:"reset",environment:X,fragmentIdentifier:A});else if(null!=ne){var ae,ie;ie=r.getInitialIDAndType(te,D,X);var oe=function(e,t,n,r,a,i,o,u){var s=o.start,c=o.complete,f=y(e),d=g(e),p=u.wrapPrepareQueryResource(function(){return f.prepare(t,w(e,t,{networkCacheConfig:{force:!0}}),n,r,{start:s,error:c,complete:c},a)}),m=d.read(p.fragmentNode,p.fragmentRef,i).data;return null==m&&l(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),[p,m]}(X,ne,B,G,null!==(ae=V.current)&&void 0!==ae?ae:0,n,{start:K,complete:function(t){var a;Q(),H&&H(null!==(a=t)&&void 0!==a?a:null),t||r.checkSameTypeAfterRefetch(ie,X,e,n)}},$),ue=oe[0],se=oe[1];k=ue,re=s(se,D),r.checkSameIDAfterRefetch(ie,re,e,n)}var le=f(e,re,n),ce=le.data,fe=le.disableStoreUpdates,de=le.enableStoreUpdates;return P(function(){var e=null!=k?Z.retain(k):null;return function(){e&&e.dispose()}},[Z,A,ne]),{fragmentData:ce,fragmentRef:re,refetch:function(e,t,n,r,i,u,s,l,c){var f=d(),p=null==i?void 0:i.id;return b(function(n,i){var d;if(!0!==f.current)return h(!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.",e.name,c),{dispose:function(){}};o.unstable_getCurrentPriorityLevel()<o.unstable_NormalPriority&&h(!1,"Relay: Unexpected call to `refetch` at a priority higher than expected on fragment `%s` in `%s`. It looks like you tried to call `refetch` under a high priority update, but updates that can cause the component to suspend should be scheduled at normal priority. Make sure you are calling `refetch` inside `startTransition()` from the `useSuspenseTransition()` hook.",e.name,c),null==t&&h(!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`.",e.name,c,c),u.current=(null!==(d=u.current)&&void 0!==d?d:0)+1;var m,g,y=null==i?void 0:i.__environment,v=null==i?void 0:i.fetchPolicy,b=null==i?void 0:i.renderPolicy_UNSTABLE,R=null==i?void 0:i.onComplete,P=S(e,t);if(null==P)m={},g={};else if("PluralReaderSelector"===P.kind){var x,_,E,k;m=null!==(x=null===(_=P.selectors[0])||void 0===_?void 0:_.owner.variables)&&void 0!==x?x:{},g=null!==(E=null===(k=P.selectors[0])||void 0===k?void 0:k.variables)&&void 0!==E?E:{}}else m=P.owner.variables,g=P.variables;var w=(0,a.default)({},m,g,n);return r.includes("node")&&!n.hasOwnProperty("id")&&("string"!=typeof p&&h(!1,"Relay: Expected result to have a string `id` in order to refetch, got `%s`.",p),w.id=p),s({type:"refetch",refetchVariables:w,fetchPolicy:v,renderPolicy:b,onComplete:R,environment:y}),{dispose:l}},[n,p,s,l])}(e,t,A,D,ce,V,U,L,n),disableStoreUpdates:fe,enableStoreUpdates:de}}},function(e,t,n){"use strict";var r=n(4),a=n(6),i=n(23).getFragmentResourceForEnvironment,o=n(1),u=o.useEffect,s=o.useRef,l=o.useState,c=n(0).getFragmentIdentifier;function f(e){var t=l(e),n=t[0],r=t[1],a=n!==e;return a&&r(e),a}e.exports=function(e,t,n){var o=r(),d=i(o),p=s(!1),m=l(0)[1],h=c(e,t),g=s(0),y=s(0),v=f(o),b=f(h);(v||b)&&(y.current++,g.current++);var R=d.readWithIdentifier(e,t,h,n),P=s(!0);function x(){!1!==p.current&&!1!==P.current&&(y.current++,m(function(e){return e+1}))}return u(function(){p.current=!0;var e=d.subscribe(R,x);return function(){p.current=!1,e.dispose()}},[g.current]),null!=t&&null==R.data&&a(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,n,n),{data:R.data,disableStoreUpdates:function(){P.current=!1},enableStoreUpdates:function(){P.current=!0,d.checkMissedUpdates(R)[0]&&x()},shouldUpdateGeneration:y.current}}},function(e,t,n){"use strict";var r=n(14);e.exports=function e(t,n,a){var i,o=null;null==n.root.getModuleIfRequired()&&(o=n.root.load());var u=n.getPreloadProps(a),s=u.queries,l=u.entryPoints,c=u.extraProps,f={},d={};null!=s&&Object.keys(s).forEach(function(e){var n=s[e],a=n.environmentProviderOptions,i=n.options,o=n.parameters,u=n.variables,l=t.getEnvironment(a);f[e]=r(l,o,u,i,a)});null!=l&&Object.keys(l).forEach(function(n){var r=l[n];if(null!=r){var a=r.entryPoint,i=r.entryPointParams;d[n]=e(t,a,i)}});return{entryPoints:d,extraProps:null!==(i=c)&&void 0!==i?i:null,getComponent:function(){var e,t=n.root.getModuleIfRequired();if(null==t)throw o=null!==(e=o)&&void 0!==e?e:n.root.load();return t},queries:f}}},function(e,t,n){"use strict";var r=n(15),a=n(32),i=n(33),o=n(2),u=n(0),s=u.createOperationDescriptor,l=u.Environment,c=u.getRequest,f=u.Observable,d=3e4,p="function"==typeof WeakMap,m="store-or-network",h=p?new WeakMap:new Map;function g(e,t){var n=e.get(t.cacheKey);null!=n&&n===t&&("network"===n.kind&&n.subscription.unsubscribe(),e.delete(n.cacheKey))}e.exports=function(e,t,n,u,p){e instanceof l||o(!1,"preloadQuery(): Expected a RelayModernEnvironment");var y=h.get(e);null==y&&(y=new Map,h.set(e,y));var v=y,b=function(e,t,n,o,u){var l,f,p;if("function"==typeof n.getModuleIfRequired){var h=n;f=h.params,p=h.getModuleIfRequired()}else p=c(n),f=p.params;var y,v=e.getNetwork(),b=null!==(l=null==u?void 0:u.fetchPolicy)&&void 0!==l?l:m,R=null==u?void 0:u.fetchKey,P="".concat(i(f,o)).concat(null!=R?"-".concat(R):""),x=t.get(P);if(b!==m||null==p||"cache"!==(null==x?void 0:x.kind)&&!e.check(s(p,o).root))if(null==x||"network"!==x.kind){var _=e.__createLogObserver(f,o),E=_[0],k=_[1],w=v.execute(f,o,{},null,k),q=new a;y={cacheKey:P,fetchKey:R,fetchPolicy:b,kind:"network",name:f.name,subject:q,subscription:w.finally(function(){r.canUseDOM&&setTimeout(function(){null!=y&&g(t,y)},d)}).do(E).subscribe({complete:function(){q.complete()},error:function(e){q.error(e)},next:function(e){q.next(e)}})}}else y=x;else y=x&&"cache"===x.kind?x:{cacheKey:P,fetchKey:R,fetchPolicy:b,kind:"cache",name:f.name},r.canUseDOM&&null==x&&setTimeout(function(){null!=y&&g(t,y)},d);return t.set(P,y),y}(e,v,t,n,u),R="network"===b.kind?f.create(function(e){var t=b.subject.subscribe(e);return function(){t.unsubscribe(),g(v,b)}}):null;return{environment:e,environmentProviderOptions:p,fetchKey:b.fetchKey,fetchPolicy:b.fetchPolicy,name:b.name,source:R,variables:n}}},function(e,t){e.exports=u},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=n(18),a=n(2);e.exports=function(e,t){var n,i,o=r(e,t),u=o.refetchableRequest,s=o.fragmentRefPathInResponse,l=o.refetchMetadata.connection;null==l&&a(!1,"Relay: getPaginationMetadata(): Expected fragment `%s` to include a connection when using `%s`. Did you forget to add a @connection directive to the connection field in the fragment?",t,e.name);var c=l.path,f=(null!==(n=null===(i=e.metadata)||void 0===i?void 0:i.connection)&&void 0!==n?n:[])[0];return null==f&&a(!1,"Relay: getPaginationMetadata(): Expected fragment `%s` to include a connection when using `%s`. Did you forget to add a @connection directive to the connection field in the fragment?",t,e.name),{connectionPathInFragmentData:c,fragmentRefPathInResponse:s,paginationRequest:u,paginationMetadata:l,stream:!0===f.stream}}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n,a;!0===(null===(n=e.metadata)||void 0===n?void 0:n.plural)&&r(!1,"Relay: getRefetchMetadata(): Expected fragment `%s` not to be plural when using `%s`. Remove `@relay(plural: true)` from fragment `%s` in order to use it with `%s`.",e.name,t,e.name,t);var i=null===(a=e.metadata)||void 0===a?void 0:a.refetch;null==i&&r(!1,"Relay: getRefetchMetadata(): Expected fragment `%s` to be refetchable when using `%s`. Did you forget to add a @refetchable directive to the fragment?",t,e.name);var o=i.operation.default?i.operation.default:i.operation,u=i.fragmentPathInResult;return"string"==typeof o&&r(!1,"Relay: getRefetchMetadata(): Expected refetch query to be an operation and not a string when using `%s`. If you're seeing this, this is likely a bug in Relay.",t),{refetchableRequest:o,fragmentRefPathInResponse:u,refetchMetadata:i}}},function(e,t,n){"use strict";var r=n(3)(n(5)),a=n(9),i=n(40),o=n(21),u=n(2),s=n(10),l=n(22),c=n(4),f=n(6),d=n(1),p=d.useCallback,m=d.useEffect,h=d.useState,g=n(0),y=g.ConnectionInterface,v=g.__internal,b=v.fetchQuery,R=v.hasRequestInFlight,P=g.createOperationDescriptor,x=g.getSelector;e.exports=function(e){var t=e.direction,n=e.fragmentNode,d=e.fragmentRef,g=e.fragmentIdentifier,v=e.fragmentData,_=e.connectionPathInFragmentData,E=e.fragmentRefPathInResponse,k=e.paginationRequest,w=e.paginationMetadata,q=e.componentDisplayName,I=e.observer,S=e.onReset,F=c(),C=s(),j=C.isFetchingRef,M=C.startFetch,D=C.disposeFetch,A=C.completeFetch,N=null==v?void 0:v.id,O=l(),U=h(F),T=U[0],K=U[1],L=h(g),Q=L[0],V=L[1];(F!==T||g!==Q)&&(D(),S(),K(F),V(g));var W=function(e,t,n,r){var a,i,s=y.get(),l=s.EDGES,c=s.PAGE_INFO,f=s.HAS_NEXT_PAGE,d=s.HAS_PREV_PAGE,p=s.END_CURSOR,m=s.START_CURSOR,h=o(n,r);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&u(!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,l,c,h);var g=h[l],v=h[c];if(null==g||null==v)return{cursor:null,hasMore:!1};Array.isArray(g)||u(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,l,g),"object"!=typeof v&&u(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,c,v);var b,R="forward"===e?null!==(a=v[p])&&void 0!==a?a:null:null!==(i=v[m])&&void 0!==i?i:null;return null!==R&&"string"!=typeof R&&u(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,m,R),b="forward"===e?null!=R&&!0===v[f]:null!=R&&!0===v[d],{cursor:R,hasMore:b}}(t,n,v,_),z=W.cursor,B=W.hasMore;return m(function(){return function(){D()}},[D]),[p(function(e,o){var s=null==o?void 0:o.onComplete;if(!0!==O.current)return f(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",n.name,q),{dispose:function(){}};var l=x(n,d),c=null!=l&&"PluralReaderSelector"!==l.kind&&R(F,l.owner);if(!0===j.current||null==v||c)return null==l&&f(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",n.name,q,q),s&&a.unstable_next(function(){return s(null)}),{dispose:function(){}};(null==l||"PluralReaderSelector"===l.kind)&&u(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",n.name,q);var p=l.owner.variables,m=l.variables,h=(0,r.default)({},p,m),g=i(t,e,z,h,w);E.includes("node")&&("string"!=typeof N&&f(!1,"Relay: Expected result to have a string `id` in order to refetch/paginate, got `%s`.",N),g.id=N);var y=P(k,g);return b(F,y,{networkCacheConfig:{force:!0}}).subscribe((0,r.default)({},I,{start:function(e){M(e),I.start&&I.start(e)},complete:function(){A(),I.complete&&I.complete(),s&&s(null)},error:function(e){A(),I.error&&I.error(e),s&&s(e)}})),{dispose:D}},[F,N,t,z,M,D,A,j,v,n.name,d,q]),B,D]}},function(e,t){e.exports=l},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n=e,a=!0,i=!1,o=void 0;try{for(var u,s=t[Symbol.iterator]();!(a=(u=s.next()).done);a=!0){var l=u.value;if(null==n)return null;"number"==typeof l?(Array.isArray(n)||r(!1,"Relay: Expected an array when extracting value at path. If you're seeing this, this is likely a bug in Relay."),n=n[l]):(("object"!=typeof n||Array.isArray(n))&&r(!1,"Relay: Expected an object when extracting value at path. If you're seeing this, this is likely a bug in Relay."),n=n[l])}}catch(e){i=!0,o=e}finally{try{a||null==s.return||s.return()}finally{if(i)throw o}}return n}},function(e,t,n){"use strict";var r=n(1),a=r.useEffect,i=r.useRef;e.exports=function(){var e=i(!0);return a(function(){return function(){e.current=!1}},[]),e}},function(e,t,n){"use strict";var r=n(3),a=r(n(5)),i=r(n(41)),o=n(24),u=n(2),s=n(42),l=n(6),c=n(0),f=c.__internal.getPromiseForRequestInFlight,d=c.getFragmentIdentifier,p=c.getSelector,m=c.isPromise,h=c.recycleNodesInto,g=1e6;function y(e,t){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map(function(e){return e.data})}:{cacheKey:e,snapshot:t,data:t.data}}var v=function(){function e(e){this._environment=e,this._cache=o.create(g)}var t=e.prototype;return t.read=function(e,t,n,r){return this.readWithIdentifier(e,t,d(e,t),n,r)},t.readWithIdentifier=function(e,t,n,r,a){var i,o,s=this._environment;if(null==t)return{cacheKey:n,data:null,snapshot:null};if(!0===(null==e?void 0: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:n,data:[],snapshot:[]};var c=this._cache.get(n);if(null!=c){if(m(c)||c instanceof Error)throw c;return y(n,c)}var f=p(e,t);null==f&&u(!1,"Relay: Expected to have received a valid fragment reference for fragment `%s` declared in `%s`. Make sure that `%s`'s parent is passing the right fragment reference prop.",e.name,r,r);var d="PluralReaderSelector"===f.kind?f.selectors.map(function(e){return s.lookup(e)}):s.lookup(f),h="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,g=null!==(o=h.node.params.name)&&void 0!==o?o:"Unknown Parent Query";if(!function(e){return Array.isArray(e)?e.some(function(e){return e.isMissingData}):e.isMissingData}(d))return this._cache.set(n,d),y(n,d);var v=this._getAndSavePromiseForFragmentRequestInFlight(n,h);if(null!=v)throw v;return l(!1,"Relay: Tried reading fragment `%s` declared in `%s`, but it has missing data and its parent query `%s` is not being fetched.\nThis might be fixed by by re-running the Relay Compiler. Otherwise, make sure of the following:\n* You are correctly fetching `%s` if you are using a \"store-only\" `fetchPolicy`.\n* Other queries aren't accidentally fetching and overwriting the data for this fragment.\n* Any related mutations or subscriptions are fetching all of the data for this fragment.\n* Any related store updaters aren't accidentally deleting data for this fragment.",e.name,r,g,g),y(n,d)},t.readSpec=function(e,t,n){var r=this;return s(e,function(e,a){var i=t[a];return r.read(e,i,n,a)})},t.subscribe=function(e,t){var n=this,r=this._environment,a=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var o=this.checkMissedUpdates(e),s=o[0],l=o[1];s&&t();var c=[];return Array.isArray(i)?(Array.isArray(l)||u(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),l.forEach(function(e,i){c.push(r.subscribe(e,function(e){n._updatePluralSnapshot(a,e,i),t()}))})):((null==l||Array.isArray(l))&&u(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),c.push(r.subscribe(l,function(e){n._cache.set(a,e),t()}))),{dispose:function(){c.map(function(e){return e.dispose()}),n._cache.delete(a)}}},t.subscribeSpec=function(e,t){var n=this,r=Object.keys(e).map(function(r){return n.subscribe(e[r],t)});return{dispose:function(){r.forEach(function(e){e.dispose()})}}},t.checkMissedUpdates=function(e){var t=this._environment,n=e.cacheKey,r=e.snapshot;if(!r)return[!1,null];var i=!1;if(Array.isArray(r)){var o=[];return r.forEach(function(e,n){var r=t.lookup(e.selector),u=e.data,s=r.data,l=h(u,s);l!==u&&(r=(0,a.default)({},r,{data:l}),i=!0),o[n]=r}),i&&this._cache.set(n,o),[i,o]}var u=t.lookup(r.selector),s=r.data,l=u.data,c=h(s,l);return c!==s&&(u=(0,a.default)({},u,{data:c}),this._cache.set(n,u),i=!0),[i,u]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some(function(n){return t.checkMissedUpdates(e[n])[0]})},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t){var n,r=this,a=this._environment,i=null!==(n=f(a,t))&&void 0!==n?n:function(e,t){return e.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(t)}(a,t);if(!i)return null;var o=i.then(function(){r._cache.delete(e)}).catch(function(t){r._cache.set(e,t)});return this._cache.set(e,o),o.displayName="Relay("+t.node.params.name+")",o},t._updatePluralSnapshot=function(e,t,n){var r=this._cache.get(e);Array.isArray(r)||u(!1,"Relay: Expected to find cached data for plural fragment when recieving a subscription. If you're seeing this, this is likely a bug in Relay.");var a=(0,i.default)(r);a[n]=t,this._cache.set(e,a)},e}();function b(e){return new v(e)}var R=new Map;e.exports={createFragmentResource:b,getFragmentResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var n=b(e);return R.set(e,n),n}}},function(e,t,n){"use strict";var r=n(2),a=function(){function e(e){this._capacity=e,this._capacity>0||r(!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 n=this._map.keys().next();n.done||this._map.delete(n.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,n){"use strict";var r=n(1),a=n(43),i=r.useMemo,o=r.useRef,u=r.useState;e.exports=function(e){var t,n,r=o(0),s=u(e),l=s[0],c=s[1];return a(e,l)||(r.current=(null!==(n=r.current)&&void 0!==n?n:0)+1,c(e)),[i(function(){return e},[r.current]),null!==(t=r.current)&&void 0!==t?t:0]}},function(e,t,n){"use strict";var r=n(3),a=r(n(5)),i=r(n(20)),o=n(15),u=n(24),s=n(2),l=n(0),c=l.isPromise,f=l.RelayFeatureFlags,d=1e3,p=!0===f.ENABLE_PARTIAL_RENDERING_DEFAULT?"partial":"full",m=3e4;function h(e,t,n){return"".concat(t,"-").concat(n,"-").concat(e.request.identifier)}function g(e,t){var n={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheKey:t,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}function y(e,t,n,r,a){var i=n,u=0,l=!1,c=null,f=null,d=r,p=function(e){return 1===++u&&(c=e.retain(t.root)),{dispose:function(){0===(u=Math.max(0,u-1))&&(null==c&&s(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),c.dispose(),c=null),a(h)}}},h={cacheKey:e,getValue:function(){return i},setValue:function(e){i=e},getRetainCount:function(){return u},getNetworkSubscription:function(){return d},setNetworkSubscription:function(e){null!=d&&d.unsubscribe(),d=e},temporaryRetain:function(e){if(!o.canUseDOM)return{dispose:function(){}};if(!0===l)return{dispose:function(){}};var t=p(e),n=null,r=function(){clearTimeout(n),n=null,f=null,t.dispose()};return n=setTimeout(r,m),null!=f&&f(),f=r,{dispose:function(){!0!==l&&f&&f()}}},permanentRetain:function(e){var t=p(e);return null!=f&&(f(),f=null),l=!0,{dispose:function(){t.dispose(),u<=0&&null!=d&&d.unsubscribe(),l=!1}}}};return h}var v=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",function(e){e.getRetainCount()<=0&&t._cache.delete(e.cacheKey)}),this._environment=e,this._cache=u.create(d)}var t=e.prototype;return t.prepare=function(e,t,n,r,i,o){var u,s,l=this._environment,f=null!==(u=n)&&void 0!==u?u:"store-or-network",d=null!==(s=r)&&void 0!==s?s:p,m=h(e,f,d);null!=o&&(m+="-".concat(o));var g=this._cache.get(m),y=null;null==g&&(g=this._fetchAndSaveQuery(m,e,t,f,d,(0,a.default)({},i,{unsubscribe:function(e){null!=y&&y.dispose();var t=null==i?void 0:i.unsubscribe;t&&t(e)}}))),y=g.temporaryRetain(l);var v=g.getValue();if(c(v)||v instanceof Error)throw v;return v},t.retain=function(e){var t=this._environment,n=e.cacheKey,r=e.operation,a=this._getOrCreateCacheEntry(n,r,e,null).permanentRetain(t);return{dispose:function(){a.dispose()}}},t.getCacheEntry=function(e,t,n){var r,a=h(e,t,null!==(r=n)&&void 0!==r?r:p);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,n,r){var a=this._cache.get(e);return null==a&&(a=y(e,t,n,r,this._clearCacheEntry),this._cache.set(e,a)),a},t._fetchAndSaveQuery=function(e,t,n,r,a,i){var o,u,l=this,c=this._environment,f=c.check(t.root),d=f||"partial"===a,p=function(){};switch(r){case"store-only":o=!1,u=!0;break;case"store-or-network":o=!f,u=d;break;case"store-and-network":o=!0,u=d;break;case"network-only":default:o=!0,u=!1}if(u){var m=g(t,e),h=y(e,t,m,null,this._clearCacheEntry);this._cache.set(e,h)}if(c.__log({name:"queryresource.fetch",operation:t,fetchPolicy:r,renderPolicy:a,hasFullQuery:f,shouldFetch:o}),o){var v,b=g(t,e);n.subscribe({start:function(t){v=t;var n=l._cache.get(e);n&&n.setNetworkSubscription(v);var r=null==i?void 0:i.start;r&&r(t)},next:function(){var n=c.lookup(t.fragment);l._getOrCreateCacheEntry(e,t,b,v).setValue(b),p();var r=null==i?void 0:i.next;r&&r(n)},error:function(n){var r=l._getOrCreateCacheEntry(e,t,n,v);r.setValue(n),p(),v=null,r.setNetworkSubscription(null);var a=null==i?void 0:i.error;a&&a(n)},complete:function(){p(),v=null;var t=l._cache.get(e);t&&t.setNetworkSubscription(null);var n=null==i?void 0:i.complete;n&&n()},unsubscribe:null==i?void 0:i.unsubscribe});var R=this._cache.get(e);if(!R){var P=new Promise(function(e){p=e});P.displayName="Relay("+t.fragment.node.name+")",R=y(e,t,P,v,this._clearCacheEntry),this._cache.set(e,R)}}else{var x=null==i?void 0:i.complete;x&&x()}var _=this._cache.get(e);return null==_&&s(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),_},e}();function b(e){return new v(e)}var R=new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var n=b(e);return R.set(e,n),n}}},function(e,t,n){"use strict";var r=n(8),a=n(1),i=n(10),o=n(12),u=n(4),s=n(26).getQueryResourceForEnvironment,l=n(0).__internal.fetchQuery,c=a.useContext,f=a.useEffect;e.exports=function(e){var t,n=u(),a=c(r),d=s(n),p=e.query,m=e.componentDisplayName,h=e.fetchKey,g=e.fetchPolicy,y=e.renderPolicy,v=null!==(t=e.fetchObservable)&&void 0!==t?t:l(n,p,{networkCacheConfig:e.networkCacheConfig}),b=i(),R=b.startFetch,P=b.completeFetch,x=a.wrapPrepareQueryResource(function(){return d.prepare(p,v,g,y,{start:R,complete:P,error:P},h)});f(function(){var e=d.retain(x);return function(){e.dispose()}},[n,p]);var _=x.fragmentNode,E=x.fragmentRef;return o(_,E,m).data}},function(e,t,n){"use strict";var r=n(1),a=n(25),i=n(0),o=i.createOperationDescriptor,u=i.getRequest,s=r.useMemo;e.exports=function(e,t){var n=a(t)[0];return s(function(){return o(u(e),n)},[e,n])}},function(e,t,n){"use strict";var r=n(30),a=n(31),i=n(34),o=n(8),u=n(36),s=n(37),l=n(14),c=n(13),f=n(38),d=n(44),p=n(45),m=n(46),h=n(47),g=n(48),y=n(4),v=n(0).graphql;e.exports={EntryPointContainer:r,LazyLoadEntryPointContainer:a,MatchContainer:i,ProfilerContext:o,RelayEnvironmentProvider:u,fetchQuery:s,preloadQuery:l,prepareEntryPoint:c,graphql:v,useBlockingPaginationFragment:f,useFragment:d,useLazyLoadQuery:p,usePaginationFragment:m,usePreloadedQuery:h,useRefetchableFragment:g,useRelayEnvironment:y}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e){var t=e.entryPointReference,n=e.props,a=t.getComponent,i=t.queries,o=t.entryPoints,u=t.extraProps,s=a();return r.createElement(s,{entryPoints:o,extraProps:u,props:n,queries:i})}},function(e,t,n){"use strict";var r=n(1),a=n(13),i=n(4),o=n(1).useMemo,u=n(0).stableCopy;e.exports=function(e){var t,n,s=e.entryPoint,l=e.entryPointParams,c=e.props,f=e.environmentProvider,d=i(),p=s.getPreloadProps,m=(t=l,null!==(n=JSON.stringify(u(t)))&&void 0!==n?n:"null"),h=o(function(){var e;return a(null!==(e=f)&&void 0!==e?e:{getEnvironment:function(){return d}},s,l)},[d,f,p,m]),g=h.getComponent,y=h.queries,v=h.entryPoints,b=h.extraProps,R=o(function(){return g()},[g]);return r.createElement(R,{entryPoints:v,extraProps:b,props:c,queries:y})}},function(e,t){e.exports=c},function(e,t){e.exports=f},function(e,t,n){"use strict";var r=n(3)(n(35)),a=n(1),i=a.useMemo;e.exports=function(e){var t,n=e.fallback,o=e.loader,u=e.match,s=e.props;if(null!=u&&"object"!=typeof u)throw new Error("MatchContainer: Expected `match` value to be an object or null/undefined.");var l=null!==(t=u)&&void 0!==t?t:{},c=l.__id,f=l.__fragments,d=l.__fragmentOwner,p=l.__fragmentPropName,m=l.__module_component;if(null!=d&&"object"!=typeof d||null!=p&&"string"!=typeof p||null!=f&&"object"!=typeof f||null!=c&&"string"!=typeof c)throw new Error("MatchContainer: Invalid 'match' value, expected an object that has a '...SomeFragment' spread.");var h,g=null!=m?o(m):null,y=i(function(){if(null!=p&&null!=c&&null!=f){var e={};return e[p]={__id:c,__fragments:f,__fragmentOwner:d},e}return null},[c,f,d,p]);return null!=g&&null!=y?a.createElement(g,(0,r.default)({},s,y)):null!==(h=n)&&void 0!==h?h:null}},function(e,t){e.exports=d},function(e,t,n){"use strict";var r=n(1),a=n(16),i=r.useMemo;e.exports=function(e){var t=e.children,n=e.environment,o=i(function(){return{environment:n}},[n]);return r.createElement(a.Provider,{value:o},t)}},function(e,t,n){"use strict";var r=n(2),a=n(0),i=a.__internal,o=a.createOperationDescriptor,u=a.getRequest;e.exports=function(e,t,n,a){var s=u(t);"query"!==s.params.operationKind&&r(!1,"fetchQuery: Expected query operation");var l=o(s,n);return i.fetchQuery(e,l,a).map(function(){return e.lookup(l.fragment).data})}},function(e,t,n){"use strict";var r=n(3),a=r(n(39)),i=r(n(5)),o=n(9),u=n(17),s=n(2),l=n(19),c=n(11),f=n(7),d=n(6),p=n(1),m=p.useCallback,h=p.useEffect,g=p.useRef,y=p.useState,v=n(0),b=v.getFragment,R=v.getFragmentIdentifier;function P(e){var t=e.disableStoreUpdates,n=e.enableStoreUpdates,r=(0,a.default)(e,["disableStoreUpdates","enableStoreUpdates"]),u=y(null),s=u[0],c=u[1],f=g(null),p=g(null),v=function(){null!=p.current&&(p.current(),p.current=null)},b={complete:v,start:function(){t();var e=new Promise(function(e){p.current=function(){f.current=null,e()}});f.current=e,c(e)},next:v,error:v},R=l((0,i.default)({},r,{observer:b,onReset:function(){v()}})),P=R[0],x=R[1],_=R[2];if(null!=s&&s===f.current)throw s;return h(function(){s!==f.current&&n()},[s]),[m(function(){o.unstable_getCurrentPriorityLevel()<o.unstable_NormalPriority&&d(!1,"Relay: Unexpected call to `%s` at a priority higher than expected on fragment `%s` in `%s`. It looks like you tried to call `refetch` under a high priority update, but updates that can cause the component to suspend should be scheduled at normal priority. Make sure you are calling `refetch` inside `startTransition()` from the `useSuspenseTransition()` hook.","forward"===e.direction?"loadNext":"loadPrevious",e.fragmentNode.name,e.componentDisplayName);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return P.apply(void 0,n)},[P,e.componentDisplayName,e.direction,e.fragmentNode.name]),x,_]}e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"useBlockingPaginationFragment()",r=b(e);f(r,"first argument of ".concat(n));var a=u(r,n),o=a.connectionPathInFragmentData,l=a.fragmentRefPathInResponse,d=a.paginationRequest,p=a.paginationMetadata;!1!==a.stream&&s(!1,"Relay: @stream_connection is not compatible with `useBlockingPaginationFragment`. Use `useStreamingPaginationFragment` instead.");var h=c(r,t,n),g=h.fragmentData,y=h.fragmentRef,v=h.refetch,x=h.disableStoreUpdates,_=h.enableStoreUpdates,E=R(r,y),k=P({direction:"backward",fragmentNode:r,fragmentRef:y,fragmentIdentifier:E,fragmentData:g,connectionPathInFragmentData:o,fragmentRefPathInResponse:l,paginationRequest:d,paginationMetadata:p,disableStoreUpdates:x,enableStoreUpdates:_,componentDisplayName:n}),w=k[0],q=k[1],I=k[2],S=P({direction:"forward",fragmentNode:r,fragmentRef:y,fragmentIdentifier:E,fragmentData:g,connectionPathInFragmentData:o,fragmentRefPathInResponse:l,paginationRequest:d,paginationMetadata:p,disableStoreUpdates:x,enableStoreUpdates:_,componentDisplayName:n}),F=S[0],C=S[1],j=S[2];return{data:g,loadNext:F,loadPrevious:w,hasNext:C,hasPrevious:q,refetch:m(function(e,t){return j(),I(),v(e,(0,i.default)({},t,{__environment:void 0}))},[j,I,v])}}},function(e,t){e.exports=p},function(e,t,n){"use strict";var r=n(3),a=r(n(20)),i=r(n(5)),o=n(2);e.exports=function(e,t,n,r,u){var s,l=u.backward,c=u.forward;if("backward"===e){var f;(null==l||null==l.count||null==l.cursor)&&o(!1,"Relay: Expected backward pagination metadata to be avialable. If you're seeing this, this is likely a bug in Relay.");var d=(0,i.default)({},r,(f={},(0,a.default)(f,l.cursor,n),(0,a.default)(f,l.count,t),f));return c&&c.cursor&&(d[c.cursor]=null),c&&c.count&&(d[c.count]=null),d}(null==c||null==c.count||null==c.cursor)&&o(!1,"Relay: Expected forward pagination metadata to be avialable. If you're seeing this, this is likely a bug in Relay.");var p=(0,i.default)({},r,(s={},(0,a.default)(s,c.cursor,n),(0,a.default)(s,c.count,t),s));return l&&l.cursor&&(p[l.cursor]=null),l&&l.count&&(p[l.count]=null),p}},function(e,t){e.exports=m},function(e,t){e.exports=h},function(e,t){e.exports=g},function(e,t,n){"use strict";var r=n(12),a=n(7),i=n(0).getFragment;e.exports=function(e,t){var n=i(e);return a(n,"first argument of useFragment()"),r(n,t,"useFragment()").data}},function(e,t,n){"use strict";var r=n(27),a=n(28);e.exports=function(e,t,n){var i=a(e,t);return r({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchPolicy:null==n?void 0:n.fetchPolicy,networkCacheConfig:null==n?void 0:n.networkCacheConfig,query:i,renderPolicy:null==n?void 0:n.renderPolicy_UNSTABLE})}},function(e,t,n){"use strict";var r=n(3)(n(5)),a=n(17),i=n(19),o=n(11),u=n(7),s=n(1),l=s.useCallback,c=s.useState,f=n(0),d=f.getFragment,p=f.getFragmentIdentifier;function m(e){var t=c(!1),n=t[0],a=t[1],o={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},u=i((0,r.default)({},e,{observer:o,onReset:function(){return a(!1)}}));return[u[0],u[1],n,u[2]]}e.exports=function(e,t){var n=d(e);u(n,"first argument of useLegacyPaginationFragment()");var i=a(n,"useLegacyPaginationFragment()"),s=i.connectionPathInFragmentData,c=i.fragmentRefPathInResponse,f=i.paginationRequest,h=i.paginationMetadata,g=o(n,t,"useLegacyPaginationFragment()"),y=g.fragmentData,v=g.fragmentRef,b=g.refetch,R=p(n,v),P=m({direction:"backward",fragmentNode:n,fragmentRef:v,fragmentIdentifier:R,fragmentData:y,connectionPathInFragmentData:s,fragmentRefPathInResponse:c,paginationRequest:f,paginationMetadata:h,componentDisplayName:"useLegacyPaginationFragment()"}),x=P[0],_=P[1],E=P[2],k=P[3],w=m({direction:"forward",fragmentNode:n,fragmentRef:v,fragmentIdentifier:R,fragmentData:y,connectionPathInFragmentData:s,fragmentRefPathInResponse:c,paginationRequest:f,paginationMetadata:h,componentDisplayName:"useLegacyPaginationFragment()"}),q=w[0],I=w[1],S=w[2],F=w[3];return{data:y,loadNext:q,loadPrevious:x,hasNext:I,hasPrevious:_,isLoadingNext:S,isLoadingPrevious:E,refetch:l(function(e,t){return F(),k(),b(e,(0,r.default)({},t,{__environment:void 0}))},[F,k,b])}}},function(e,t,n){"use strict";var r=n(2),a=n(27),i=n(28),o=n(4),u=n(0).__internal.fetchQueryDeduped;e.exports=function(e,t){var n=o(),s=t.fetchPolicy,l=t.fetchKey,c=t.source,f=t.variables,d=i(e,f);return d.request.node.params.name!==t.name&&r(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",d.request.node.params.name,t.name),a({componentDisplayName:"usePreloadedQuery()",fetchKey:l,fetchObservable:u(n,d.request,function(){return n===t.environment&&null!=c?n.executeWithSource({operation:d,source:c}):n.execute({operation:d})}),fetchPolicy:s,query:d})}},function(e,t,n){"use strict";var r=n(11),a=n(7),i=n(0).getFragment;e.exports=function(e,t){var n=i(e);a(n,"first argument of useRefetchableFragment()");var o=r(n,t,"useRefetchableFragment()");return[o.fragmentData,o.refetch]}}])});
\No newline at end of file