UNPKG

55.9 kBJavaScriptView Raw
1/**
2 * Relay v0.0.0-experimental-7f19cb58
3 */
4!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/warning"),require("scheduler"),require("react-relay/ReactRelayContext"),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(["react","relay-runtime","fbjs/lib/invariant","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/defineProperty","fbjs/lib/warning","scheduler","react-relay/ReactRelayContext","@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("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/warning"),require("scheduler"),require("react-relay/ReactRelayContext"),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.react,e["relay-runtime"],e["fbjs/lib/invariant"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/warning"],e.scheduler,e["react-relay/ReactRelayContext"],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,r,n,a,o,i,u,c,l,s,f,d){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=27)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(15),a=r(2),o=r(0).useContext;e.exports=function(){var e=o(n);return null==e&&a(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var o=r(0),i=r(2),u=r(1),c=u.PreloadableQueryRegistry,l=u.ReplaySubject,s=u.createOperationDescriptor,f=u.getRequest,d=u.Observable,p=null;e.exports={loadQuery:function(e,t,r,u,y){var h,m,v,b=null===(h=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===h||null===(m=h.ReactCurrentDispatcher)||void 0===m?void 0:m.current;null!=p&&b===p&&i(!1,"Relay: `loadQuery` (or `loadEntryPoint`) should not be called inside a React render function.");var g,P,O,R,w,j,_=null!==(v=null==u?void 0:u.fetchPolicy)&&void 0!==v?v:"store-or-network",E=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},null==u?void 0:u.networkCacheConfig,{force:!0}),x=!1,k=function(t){x=!0;var n=e.getNetwork().execute(t,r,E),a=new l;return n.subscribe({error:function(e){a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}),d.create((function(e){return a.subscribe(e)}))},S=new l,D=d.create((function(e){return S.subscribe(e)})),q=function(t,r){P=e.retain(t);var n=e.executeWithSource({operation:t,source:r}).subscribe({error:function(e){S.error(e)},next:function(e){S.next(e)},complete:function(){S.complete()}});g=n.unsubscribe},C=function(t){var n=s(t,r);if("store-or-network"!==_||"available"!==e.check(n).status){var a=k(t.params);q(n,a)}};if("PreloadableConcreteRequest"===t.kind){null===(j=(O=t.params).id)&&i(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",O.name);var I=c.get(j);if(null!=I)C(I);else{var F=k(O),A=c.onLoad(j,(function(e){clearTimeout(R),w();var t=s(e,r);q(t,F)}));w=A.dispose,R=setTimeout((function(){w();var e=null==u?void 0:u.onQueryAstLoadTimeout;e&&e(),S.complete()}),15e3)}}else{var N=f(t);null===(j=(O=N.params).id)&&i(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",O.name),C(N)}return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:y,dispose:function(){g&&g(),P&&P.dispose(),w&&w(),null!=R&&clearTimeout(R)},id:j,name:O.name,networkCacheConfig:E,fetchPolicy:_,source:x?D:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===p&&(p=null===(e=o.__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,r){"use strict";var n=r(0),a=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t,r){"use strict";var n=r(6),a=r(0).useRef;e.exports=function(e,t){var r=a(e.name);n(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,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(0),a=n.useCallback,o=n.useEffect,i=n.useRef;e.exports=function(){var e=i(null),t=i(!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 o((function(){return r}),[r]),{isFetchingRef:t,startFetch:n,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var i,u=r(10),c=r(11),l=r(18),s=r(20),f=r(2),d=r(12),p=r(14),y=r(8),h=r(23),m=r(4),v=r(6),b=r(21).getFragmentResourceForEnvironment,g=r(24).getQueryResourceForEnvironment,P=r(0),O=P.useCallback,R=P.useContext,w=P.useEffect,j=P.useMemo,_=P.useReducer,E=r(1),x=E.__internal.fetchQuery,k=E.createOperationDescriptor,S=E.getFragmentIdentifier,D=E.getSelector;function q(e,t){switch(t.type){case"refetch":var r;return o({},e,{refetchVariables:t.refetchVariables,refetchGeneration:e.refetchGeneration+1,fetchPolicy:t.fetchPolicy,renderPolicy:t.renderPolicy,onComplete:t.onComplete,refetchEnvironment:t.environment,mirroredEnvironment:null!==(r=t.environment)&&void 0!==r?r:e.mirroredEnvironment});case"reset":return{fetchPolicy:void 0,renderPolicy:void 0,onComplete:void 0,refetchVariables:null,refetchGeneration:0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}i={getInitialIDAndType:function(e,t,n){var a=r(1).Record,o=null==e?void 0:e.id;if(1!==t.length||"node"!==t[0]||null==o)return null;var i=n.getStore().getSource().get(o),u=i&&a.getType(i);return null==u?null:{id:o,typename:u}},checkSameTypeAfterRefetch:function(e,t,n,a){var o=r(1).Record;if(e){var i=t.getStore().getSource().get(e.id),u=i&&o.getType(i);u!==e.typename&&v(!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 o=t[r(1).ID_KEY];null!=o&&o!==e.id&&v(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",o,e.id,n.name,a)}}},e.exports=function(e,t,r){var n,a=m(),P=l(e,r),E=P.refetchableRequest,C=P.fragmentRefPathInResponse,I=P.identifierField,F=S(e,t),A=_(q,{fetchPolicy:void 0,renderPolicy:void 0,onComplete:void 0,refetchVariables:null,refetchGeneration:0,refetchEnvironment:null,mirroredEnvironment:a,mirroredFragmentIdentifier:F}),N=A[0],T=A[1],M=d(),U=M.startFetch,Q=M.disposeFetch,L=M.completeFetch,V=N.refetchVariables,K=N.refetchGeneration,B=N.refetchEnvironment,W=N.fetchPolicy,G=N.renderPolicy,z=N.onComplete,H=N.mirroredEnvironment,Y=N.mirroredFragmentIdentifier,$=null!=B?B:a,X=g($),J=R(u),Z=$!==H||F!==Y,ee=h(V)[0],te=j((function(){return null!=ee?k(E,ee):null}),[ee,E]),re=t;if(Z)T({type:"reset",environment:$,fragmentIdentifier:F});else if(null!=te){var ne;ne=i.getInitialIDAndType(ee,C,$);var ae=function(e,t,r,n,a,o,i,u){var c=i.start,l=i.complete,s=g(e),d=b(e),p=u.wrapPrepareQueryResource((function(){return s.prepare(t,x(e,t,{networkCacheConfig:{force:!0}}),r,n,{start:c,error:l,complete:l},a)})),y=d.read(p.fragmentNode,p.fragmentRef,o).data;return null==y&&f(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),[p,y]}($,te,W,G,K,r,{start:U,complete:function(t){L(),z&&z(null!=t?t:null),t||i.checkSameTypeAfterRefetch(ne,$,e,r)}},J),oe=ae[0],ie=ae[1];n=oe,re=s(ie,C),i.checkSameIDAfterRefetch(ne,re,e,r)}var ue=p(e,re,r),ce=ue.data,le=ue.disableStoreUpdates,se=ue.enableStoreUpdates;return w((function(){var e=null!=n?X.retain(n,J):null;return function(){e&&e.dispose()}}),[X,F,te,K]),{fragmentData:ce,fragmentRef:re,refetch:function(e,t,r,n,a,i,u,l,s){var f=y(),d=null!=s&&null!=a&&"object"==typeof a?a[s]:null;return O((function(r,n){if(!0!==f.current)return v(!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,l),{dispose:function(){}};c.unstable_getCurrentPriorityLevel()<c.unstable_NormalPriority&&v(!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,l),null==t&&v(!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,l,l);var a,p,y=null==n?void 0:n.__environment,h=null==n?void 0:n.fetchPolicy,m=null==n?void 0:n.UNSTABLE_renderPolicy,b=null==n?void 0:n.onComplete,g=D(e,t);if(null==g)a={},p={};else if("PluralReaderSelector"===g.kind){var P,O,R,w;a=null!==(P=null===(O=g.selectors[0])||void 0===O?void 0:O.owner.variables)&&void 0!==P?P:{},p=null!==(R=null===(w=g.selectors[0])||void 0===w?void 0:w.variables)&&void 0!==R?R:{}}else a=g.owner.variables,p=g.variables;var j=o({},a,{},p,{},r);return null==s||r.hasOwnProperty("id")||("string"!=typeof d&&v(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s,d),j.id=d),i({type:"refetch",refetchVariables:j,fetchPolicy:h,renderPolicy:m,onComplete:b,environment:y}),{dispose:u}}),[r,i,u,d])}(e,t,F,0,ce,T,Q,r,I),disableStoreUpdates:le,enableStoreUpdates:se}}},function(e,t,r){"use strict";var n=r(4),a=r(6),o=r(21).getFragmentResourceForEnvironment,i=r(0),u=i.useEffect,c=i.useRef,l=i.useState,s=r(1).getFragmentIdentifier;function f(e){var t=l(e),r=t[0],n=t[1],a=r!==e;return a&&n(e),a}e.exports=function(e,t,r){var i=n(),d=o(i),p=c(!1),y=l(0)[1],h=s(e,t),m=c(0),v=c(0),b=f(i),g=f(h);(b||g)&&(v.current++,m.current++);var P=d.readWithIdentifier(e,t,h,r),O=c(!0);function R(){!1!==p.current&&!1!==O.current&&(v.current++,y((function(e){return e+1})))}return u((function(){p.current=!0;var e=d.subscribe(P,R);return function(){p.current=!1,e.dispose()}}),[m.current]),null!=t&&null==P.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,r,r),{data:P.data,disableStoreUpdates:function(){O.current=!1},enableStoreUpdates:function(){O.current=!0,d.checkMissedUpdates(P)[0]&&R()},shouldUpdateGeneration:v.current}}},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(7).loadQuery;e.exports=function e(t,r,a){var o=null;null==r.root.getModuleIfRequired()&&(o=r.root.load());var i=r.getPreloadProps(a),u=i.queries,c=i.entryPoints,l=i.extraProps,s={},f={};return null!=u&&Object.keys(u).forEach((function(e){var r=u[e],a=r.environmentProviderOptions,o=r.options,i=r.parameters,c=r.variables,l=t.getEnvironment(a);s[e]=n(l,i,c,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig},a)})),null!=c&&Object.keys(c).forEach((function(r){var n=c[r];if(null!=n){var a=n.entryPoint,o=n.entryPointParams;f[r]=e(t,a,o)}})),{dispose:function(){null!=s&&Object.values(s).forEach((function(e){(0,e.dispose)()}))},entryPoints:f,extraProps:null!=l?l:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw o=null!==(e=o)&&void 0!==e?e:r.root.load();return t},queries:s}}},function(e,t,r){"use strict";var n=r(18),a=r(2);e.exports=function(e,t){var r,o,i=n(e,t),u=i.refetchableRequest,c=i.refetchMetadata,l=c.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 s=l.path,f=(null!==(r=null===(o=e.metadata)||void 0===o?void 0:o.connection)&&void 0!==r?r:[])[0];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);var d=c.identifierField;return null!=d&&"string"!=typeof d&&a(!1,"Relay: getRefetchMetadata(): Expected `identifierField` to be a string."),{connectionPathInFragmentData:s,identifierField:d,paginationRequest:u,paginationMetadata:l,stream:!0===f.stream}}},function(e,t,r){"use strict";var n=r(2);e.exports=function(e,t){var r,a;!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)&&n(!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 o=null===(a=e.metadata)||void 0===a?void 0:a.refetch;null==o&&n(!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 i=o.operation.default?o.operation.default:o.operation,u=o.fragmentPathInResult;"string"==typeof i&&n(!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);var c=o.identifierField;return null!=c&&"string"!=typeof c&&n(!1,"Relay: getRefetchMetadata(): Expected `identifierField` to be a string."),{fragmentRefPathInResponse:u,identifierField:c,refetchableRequest:i,refetchMetadata:o}}},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var i=r(11),u=r(35),c=r(20),l=r(2),s=r(12),f=r(8),d=r(36),p=r(4),y=r(6),h=r(0),m=h.useCallback,v=h.useEffect,b=h.useState,g=r(1),P=g.ConnectionInterface,O=g.__internal.fetchQuery,R=g.createOperationDescriptor,w=g.getSelector;e.exports=function(e){var t=e.direction,r=e.fragmentNode,n=e.fragmentRef,a=e.fragmentIdentifier,h=e.fragmentData,g=e.connectionPathInFragmentData,j=e.paginationRequest,_=e.paginationMetadata,E=e.componentDisplayName,x=e.observer,k=e.onReset,S=e.identifierField,D=p(),q=s(),C=q.isFetchingRef,I=q.startFetch,F=q.disposeFetch,A=q.completeFetch,N=null!=S&&null!=h&&"object"==typeof h?h[S]:null,T=f(),M=b(D),U=M[0],Q=M[1],L=b(a),V=L[0],K=L[1],B=d(r,n);(D!==U||a!==V)&&(F(),k(),Q(D),K(a));var W=function(e,t,r,n){var a,o,i=P.get(),u=i.EDGES,s=i.PAGE_INFO,f=i.HAS_NEXT_PAGE,d=i.HAS_PREV_PAGE,p=i.END_CURSOR,y=i.START_CURSOR,h=c(r,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&l(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,u,s,h);var m=h[u],v=h[s];if(null==m||null==v)return{cursor:null,hasMore:!1};Array.isArray(m)||l(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,u,m),"object"!=typeof v&&l(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,s,v);var b,g="forward"===e?null!==(a=v[p])&&void 0!==a?a:null:null!==(o=v[y])&&void 0!==o?o:null;null!==g&&"string"!=typeof g&&l(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,y,g),b="forward"===e?null!=g&&!0===v[f]:null!=g&&!0===v[d];return{cursor:g,hasMore:b}}(t,r,h,g),G=W.cursor,z=W.hasMore;return v((function(){return function(){F()}}),[F]),[m((function(e,a){var c=null==a?void 0:a.onComplete;if(!0!==T.current)return y(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,E),{dispose:function(){}};var s=w(r,n);if(!0===C.current||null==h||B)return null==s&&y(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,E,E),c&&i.unstable_next((function(){return c(null)})),{dispose:function(){}};(null==s||"PluralReaderSelector"===s.kind)&&l(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,E);var f=s.owner.variables,d=s.variables,p=null==a?void 0:a.UNSTABLE_extraVariables,m=o({},f,{},d),v=u(t,e,G,m,o({},p),_);null!=S&&("string"!=typeof N&&y(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",S,N),v.id=N);var b=R(j,v);return O(D,b,{networkCacheConfig:{force:!0}}).subscribe(o({},x,{start:function(e){I(e),x.start&&x.start(e)},complete:function(){A(),x.complete&&x.complete(),c&&c(null)},error:function(e){A(),x.error&&x.error(e),c&&c(e)}})),{dispose:F}}),[D,N,t,G,I,F,A,C,B,h,r.name,n,E]),z,F]}},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(2);e.exports=function(e,t){var r,a=e,i=n(t);try{for(i.s();!(r=i.n()).done;){var u=r.value;if(null==a)return null;"number"==typeof u?(Array.isArray(a)||o(!1,"Relay: Expected an array when extracting value at path. If you're seeing this, this is likely a bug in Relay."),a=a[u]):(("object"!=typeof a||Array.isArray(a))&&o(!1,"Relay: Expected an object when extracting value at path. If you're seeing this, this is likely a bug in Relay."),a=a[u])}}catch(e){i.e(e)}finally{i.f()}return a}},function(e,t,r){"use strict";var n=r(3),a=n(r(5)),o=n(r(37));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var u=r(22),c=r(2),l=r(38),s=r(6),f=r(1),d=f.__internal.getPromiseForActiveRequest,p=f.getFragmentIdentifier,y=f.getSelector,h=f.isPromise,m=f.recycleNodesInto,v="function"==typeof WeakMap;function b(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 g=function(){function e(e){this._environment=e,this._cache=u.create(1e6)}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,p(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var o,i,u=this._environment;if(null==t)return{cacheKey:r,data:null,snapshot:null};if(!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural)&&(Array.isArray(t)||c(!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:[],snapshot:[]};var l=this._cache.get(r);if(null!=l){if(h(l)||l instanceof Error)throw l;if(l.snapshot)return l}var f=y(e,t);null==f&&c(!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 d="PluralReaderSelector"===f.kind?f.selectors.map((function(e){return u.lookup(e)})):u.lookup(f),p="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,m=null!==(i=p.node.params.name)&&void 0!==i?i:"Unknown Parent Query";if(!function(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}(d)){var v=b(r,d);return this._cache.set(r,v),v}var g=this._getAndSavePromiseForFragmentRequestInFlight(r,p);if(null!=g)throw g;return s(!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,n,m,m),b(r,d)},t.readSpec=function(e,t,r){var n=this;return l(e,(function(e,a){var o=t[a];return n.read(e,o,r,a)}))},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,o=e.snapshot;if(!o)return{dispose:function(){}};var i=this.checkMissedUpdates(e),u=i[0],l=i[1];u&&t();var s=[];return Array.isArray(o)?(Array.isArray(l)||c(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),l.forEach((function(e,o){s.push(n.subscribe(e,(function(e){r._updatePluralSnapshot(a,l,e,o),t()})))}))):((null==l||Array.isArray(l))&&c(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),s.push(n.subscribe(l,(function(e){r._cache.set(a,b(a,e)),t()})))),{dispose:function(){s.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.cacheKey,n=e.snapshot;if(!n)return[!1,null];var o=!1;if(Array.isArray(n)){var u=[];return n.forEach((function(e,r){var n=t.lookup(e.selector),c=e.data,l=n.data,s=m(c,l);s!==c&&(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,a.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n,{data:s}),o=!0),u[r]=n})),o&&this._cache.set(r,b(r,u)),[o,u]}var c=t.lookup(n.selector),l=n.data,s=c.data,f=m(l,s);return c={data:f,isMissingData:c.isMissingData,seenRecords:c.seenRecords,selector:c.selector},f!==l&&(this._cache.set(r,b(r,c)),o=!0),[o,c]},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){var r,n=this,a=this._environment,o=null!==(r=d(a,t))&&void 0!==r?r:function(e,t){return e.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(t)}(a,t);if(!o)return null;var i=o.then((function(){n._cache.delete(e)})).catch((function(t){n._cache.set(e,t)}));return this._cache.set(e,i),i.displayName="Relay("+t.node.params.name+")",i},t._updatePluralSnapshot=function(e,t,r,n){var a=this._cache.get(e);if(h(a)||a instanceof Error)P(r.selector.node.name);else{var i=null==a?void 0:a.snapshot;if(!i||Array.isArray(i)){var u=i?(0,o.default)(i):(0,o.default)(t);u[n]=r,this._cache.set(e,b(e,u))}else P(r.selector.node.name)}},e}();function P(e){c(!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 O(e){return new g(e)}var R=v?new WeakMap:new Map;e.exports={createFragmentResource:O,getFragmentResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var r=O(e);return R.set(e,r),r}}},function(e,t,r){"use strict";var n=r(2),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(0),a=r(39),o=n.useMemo,i=n.useRef,u=n.useState;e.exports=function(e){var t,r,n=i(0),c=u(e),l=c[0],s=c[1];return a(e,l)||(n.current=(null!==(r=n.current)&&void 0!==r?r:0)+1,s(e)),[o((function(){return e}),[n.current]),null!==(t=n.current)&&void 0!==t?t:0]}},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var o=r(22),i=r(2),u=r(1).isPromise,c="function"==typeof WeakMap;function l(e,t,r){return"".concat(t,"-").concat(r,"-").concat(e.request.identifier)}function s(e,t){var r={__id:e.fragment.dataID,__fragments:(0,n.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheKey:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var f=2e5;function d(e,t,r,n,a){var o=r,u=0,c=!1,l=null,s=null,d=n,p=function(e){return 1===++u&&(l=e.retain(t)),{dispose:function(){0===(u=Math.max(0,u-1))&&(null==l&&i(!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),a(y)}}},y={cacheKey:e,id:f++,getValue:function(){return o},setValue:function(e){o=e},getRetainCount:function(){return u},getNetworkSubscription:function(){return d},setNetworkSubscription:function(e){null!=d&&d.unsubscribe(),d=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};if(!0===c)return{dispose:function(){}};var t=p(e),r=null,n=function(){clearTimeout(r),r=null,s=null,t.dispose()};return r=setTimeout(n,3e4),null!=s&&s(),s=n,{dispose:function(){!0!==c&&s&&s()}}},permanentRetain:function(e){var t=p(e);return null!=s&&(s(),s=null),c=!0,{dispose:function(){t.dispose(),u<=0&&null!=d&&d.unsubscribe(),c=!1}}}};return y}var p=function(){function e(e){var t=this;(0,n.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&t._cache.delete(e.cacheKey)})),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,o,i,c,s){var f=this._environment,d=null!=r?r:"store-or-network",p=null!=o?o:f.UNSTABLE_getDefaultRenderPolicy(),y=l(e,d,p);null!=c&&(y+="-".concat(c));var h=this._cache.get(y),m=null;null==h&&(h=this._fetchAndSaveQuery(y,e,t,d,p,s,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},i,{unsubscribe:function(e){null!=m&&m.dispose();var t=null==i?void 0:i.unsubscribe;t&&t(e)}}))),m=h.temporaryRetain(f);var v=h.getValue();if(u(v)||v instanceof Error)throw v;return v},t.retain=function(e,t){var r=this._environment,n=e.cacheKey,a=e.operation,o=this._getOrCreateCacheEntry(n,a,e,null),i=o.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:o.id}),{dispose:function(){i.dispose()}}},t.getCacheEntry=function(e,t,r){var n=this._environment,a=l(e,t,null!=r?r:n.UNSTABLE_getDefaultRenderPolicy());return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n){var a=this._cache.get(e);return null==a&&(a=d(e,t,r,n,this._clearCacheEntry),this._cache.set(e,a)),a},t._fetchAndSaveQuery=function(e,t,r,n,a,o,u){var c,l,f=this,p=this._environment,y=p.check(t),h=y.status,m="available"===h,v=m||"partial"===a&&"stale"!==h,b=function(){};switch(n){case"store-only":c=!1,l=!0;break;case"store-or-network":c=!m,l=v;break;case"store-and-network":c=!0,l=v;break;case"network-only":default:c=!0,l=!1}if(l){var g=s(t,e),P=d(e,t,g,null,this._clearCacheEntry);this._cache.set(e,P)}if(c){var O,R=s(t,e);r.subscribe({start:function(t){O=t;var r=f._cache.get(e);r&&r.setNetworkSubscription(O);var n=null==u?void 0:u.start;n&&n(t)},next:function(){var r=p.lookup(t.fragment);f._getOrCreateCacheEntry(e,t,R,O).setValue(R),b();var n=null==u?void 0:u.next;n&&n(r)},error:function(r){var n=f._getOrCreateCacheEntry(e,t,r,O);n.setValue(r),b(),O=null,n.setNetworkSubscription(null);var a=null==u?void 0:u.error;a&&a(r)},complete:function(){b(),O=null;var t=f._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==u?void 0:u.complete;r&&r()},unsubscribe:null==u?void 0:u.unsubscribe});var w=this._cache.get(e);if(!w){var j=new Promise((function(e){b=e}));j.displayName="Relay("+t.fragment.node.name+")",w=d(e,t,j,O,this._clearCacheEntry),this._cache.set(e,w)}}else{var _=null==u?void 0:u.complete;_&&_()}var E=this._cache.get(e);return null==E&&i(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),p.__log({name:"queryresource.fetch",resourceID:E.id,operation:t,profilerContext:o,fetchPolicy:n,renderPolicy:a,queryAvailability:y,shouldFetch:c}),E},e}();function y(e){return new p(e)}var h=c?new WeakMap:new Map;e.exports={createQueryResource:y,getQueryResourceForEnvironment:function(e){var t=h.get(e);if(t)return t;var r=y(e);return h.set(e,r),r}}},function(e,t,r){"use strict";var n=r(10),a=r(0),o=r(12),i=r(14),u=r(4),c=r(24).getQueryResourceForEnvironment,l=r(1).__internal.fetchQuery,s=a.useContext,f=a.useEffect,d=a.useState,p=a.useRef;e.exports=function(e){var t,r,a,y,h=u(),m=s(n),v=c(h),b=e.query,g=e.componentDisplayName,P=e.fetchKey,O=e.fetchPolicy,R=e.renderPolicy,w=null!==(t=e.fetchObservable)&&void 0!==t?t:l(h,b,{networkCacheConfig:null!==(r=e.networkCacheConfig)&&void 0!==r?r:{force:!0}}),j=o(),_=j.startFetch,E=j.completeFetch,x=m.wrapPrepareQueryResource((function(){return v.prepare(b,w,O,R,{start:_,complete:E,error:E},P,m)})),k=d(0);a=k[1],y=p(!1),f((function(){return function(){y.current=!0}}),[]),f((function(){if(y&&y.current)return y.current=!1,void(a&&a((function(e){return e+1})));var e=v.retain(x,m);return function(){e.dispose()}}),[h,b]);var S=x.fragmentNode,D=x.fragmentRef;return i(S,D,g).data}},function(e,t,r){"use strict";var n=r(0),a=r(23),o=r(1),i=o.createOperationDescriptor,u=o.getRequest,c=n.useMemo;e.exports=function(e,t){var r=a(t)[0];return c((function(){return i(u(e),r)}),[e,r])}},function(e,t,r){"use strict";var n=r(28),a=r(29),o=r(10),i=r(31),u=r(32),c=r(7),l=r(16),s=r(33),f=r(40),d=r(41),p=r(42),y=r(43),h=r(44),m=r(45),v=r(46),b=r(47),g=r(4),P=r(48),O=r(49),R=r(1).graphql;e.exports={EntryPointContainer:n,MatchContainer:a,ProfilerContext:o,RelayEnvironmentProvider:i,fetchQuery:u,loadEntryPoint:l,loadQuery:c,graphql:R,useBlockingPaginationFragment:s,useEntryPointLoader:f,useFragment:d,useLazyLoadQuery:p,useMutation:y,usePaginationFragment:h,usePreloadedQuery:m,useQueryLoader:v,useRefetchableFragment:b,useRelayEnvironment:g,useSubscribeToInvalidationState:P,useSubscription:O}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){var t=e.entryPointReference,r=e.props,a=t.getComponent,o=t.queries,i=t.entryPoints,u=t.extraProps,c=a();return n.createElement(c,{entryPoints:i,extraProps:u,props:r,queries:o})}},function(e,t,r){"use strict";var n=r(3)(r(30)),a=r(0),o=a.useMemo;e.exports=function(e){var t,r=e.fallback,i=e.loader,u=e.match,c=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:{},s=l.__id,f=l.__fragments,d=l.__fragmentOwner,p=l.__fragmentPropName,y=l.__module_component;if(null!=d&&"object"!=typeof d||null!=p&&"string"!=typeof p||null!=f&&"object"!=typeof f||null!=s&&"string"!=typeof s)throw new Error("MatchContainer: Invalid 'match' value, expected an object that has a '...SomeFragment' spread.");var h=null!=y?i(y):null,m=o((function(){if(null!=p&&null!=s&&null!=f){var e={};return e[p]={__id:s,__fragments:f,__fragmentOwner:d},e}return null}),[s,f,d,p]);return null!=h&&null!=m?a.createElement(h,(0,n.default)({},c,m)):null!=r?r:null}},function(e,t){e.exports=c},function(e,t,r){"use strict";var n=r(0),a=r(15),o=n.useMemo;e.exports=function(e){var t=e.children,r=e.environment,i=o((function(){return{environment:r}}),[r]);return n.createElement(a.Provider,{value:i},t)}},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var o=r(2),i=r(1),u=i.__internal,c=i.createOperationDescriptor,l=i.getRequest,s=i.Observable;function f(e,t,r){return u.fetchQuery(e,t,{networkCacheConfig:r}).map((function(){return e.lookup(t.fragment).data}))}e.exports=function(e,t,r,i){var u,d=l(t);"query"!==d.params.operationKind&&o(!1,"fetchQuery: Expected query operation");var p=c(d,r),y=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({force:!0},null==i?void 0:i.networkCacheConfig),h=null!==(u=null==i?void 0:i.fetchPolicy)&&void 0!==u?u:"network-only";switch(h){case"network-only":return f(e,p,y);case"store-or-network":return"available"===e.check(p).status?s.from(e.lookup(p.fragment).data):f(e,p,y);default:throw new Error("fetchQuery: Invalid fetchPolicy "+h)}}},function(e,t,r){"use strict";var n=r(3),a=n(r(34)),o=n(r(5));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c=r(11),l=r(17),s=r(2),f=r(19),d=r(13),p=r(9),y=r(6),h=r(0),m=h.useCallback,v=h.useEffect,b=h.useRef,g=h.useState,P=r(1),O=P.getFragment,R=P.getFragmentIdentifier;function w(e){var t=e.disableStoreUpdates,r=e.enableStoreUpdates,n=(0,a.default)(e,["disableStoreUpdates","enableStoreUpdates"]),o=g(null),i=o[0],l=o[1],s=b(null),d=b(null),p=function(){null!=d.current&&(d.current(),d.current=null)},h=f(u({},n,{observer:{complete:p,start:function(){t();var e=new Promise((function(e){d.current=function(){s.current=null,e()}}));s.current=e,l(e)},next:p,error:p},onReset:function(){p()}})),P=h[0],O=h[1],R=h[2];if(null!=i&&i===s.current)throw i;return v((function(){i!==s.current&&r()}),[i]),[m((function(){c.unstable_getCurrentPriorityLevel()<c.unstable_NormalPriority&&y(!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,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return P.apply(void 0,r)}),[P,e.componentDisplayName,e.direction,e.fragmentNode.name]),O,R]}e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"useBlockingPaginationFragment()",n=O(e);p(n,"first argument of ".concat(r));var a=l(n,r),o=a.connectionPathInFragmentData,i=a.identifierField,c=a.paginationRequest,f=a.paginationMetadata,y=a.stream;!1!==y&&s(!1,"Relay: @stream_connection is not compatible with `useBlockingPaginationFragment`. Use `useStreamingPaginationFragment` instead.");var h=d(n,t,r),v=h.fragmentData,b=h.fragmentRef,g=h.refetch,P=h.disableStoreUpdates,j=h.enableStoreUpdates,_=R(n,b),E=w({componentDisplayName:r,connectionPathInFragmentData:o,direction:"backward",disableStoreUpdates:P,enableStoreUpdates:j,fragmentData:v,fragmentIdentifier:_,fragmentNode:n,fragmentRef:b,identifierField:i,paginationMetadata:f,paginationRequest:c}),x=E[0],k=E[1],S=E[2],D=w({componentDisplayName:r,connectionPathInFragmentData:o,direction:"forward",disableStoreUpdates:P,enableStoreUpdates:j,fragmentData:v,fragmentIdentifier:_,fragmentNode:n,fragmentRef:b,identifierField:i,paginationMetadata:f,paginationRequest:c}),q=D[0],C=D[1],I=D[2],F=m((function(e,t){return I(),S(),g(e,u({},t,{__environment:void 0}))}),[I,S,g]);return{data:v,loadNext:q,loadPrevious:x,hasNext:C,hasPrevious:k,refetch:F}}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var i=r(2),u=r(6);e.exports=function(e,t,r,a,c,l){var s,f=l.backward,d=l.forward;if("backward"===e){var p;(null==f||null==f.count||null==f.cursor)&&i(!1,"Relay: Expected backward pagination metadata to be available. If you're seeing this, this is likely a bug in Relay."),u(!c.hasOwnProperty(f.cursor),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain cursor variable `%s`. This variable is automatically determined by Relay.",f.cursor),u(!c.hasOwnProperty(f.count),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain count variable `%s`. This variable is automatically determined by Relay.",f.count);var y=o({},a,{},c,(p={},(0,n.default)(p,f.cursor,r),(0,n.default)(p,f.count,t),p));return d&&d.cursor&&(y[d.cursor]=null),d&&d.count&&(y[d.count]=null),y}(null==d||null==d.count||null==d.cursor)&&i(!1,"Relay: Expected forward pagination metadata to be available. If you're seeing this, this is likely a bug in Relay."),u(!c.hasOwnProperty(d.cursor),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain cursor variable `%s`. This variable is automatically determined by Relay.",d.cursor),u(!c.hasOwnProperty(d.count),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain count variable `%s`. This variable is automatically determined by Relay.",d.count);var h=o({},a,{},c,(s={},(0,n.default)(s,d.cursor,r),(0,n.default)(s,d.count,t),s));return f&&f.cursor&&(h[f.cursor]=null),f&&f.count&&(h[f.count]=null),h}},function(e,t,r){"use strict";var n=r(0),a=r(2),o=r(4),i=r(1),u=i.__internal.getObservableForActiveRequest,c=i.getSelector,l=n.useEffect,s=n.useState,f=n.useMemo;e.exports=function(e,t){var r=o(),n=f((function(){var n=c(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(r,n.owner))}),[r,e,t]),i=s(null!=n),d=i[0],p=i[1];return l((function(){var e;if(p(null!=n),null!=n){var t=function(){p(!1)};e=n.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[n]),d}},function(e,t){e.exports=s},function(e,t){e.exports=f},function(e,t){e.exports=d},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(16),i=r(8),u=r(7).useTrackLoadQueryInRender,c=r(0),l=c.useCallback,s=c.useEffect,f=c.useRef,d=c.useState,p={kind:"NullEntryPointReference"};e.exports=function(e,t){u();var r=i(),a=f(new Set([p])),c=d(p),y=c[0],h=c[1],m=l((function(){if(r.current){var e={kind:"NullEntryPointReference"};a.current.add(e),h(e)}}),[h,r]);s((function(){var e=a.current;if(r.current){var t,o=n(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i===y)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){o.e(e)}finally{o.f()}}}),[y,r]),s((function(){return function(){var e,t=n(a.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()}}}),[]);var v=l((function(n){if(r.current){var i=o(e,t,n);a.current.add(i),h(i)}}),[e,t,h,r]);return["NullEntryPointReference"===y.kind?null:y,v,m]}},function(e,t,r){"use strict";var n=r(14),a=r(9),o=r(7).useTrackLoadQueryInRender,i=r(0).useDebugValue,u=r(1).getFragment;e.exports=function(e,t){o();var r=u(e);a(r,"first argument of useFragment()");var c=n(r,t,"useFragment()").data;return i({fragment:r.name,data:c}),c}},function(e,t,r){"use strict";var n=r(25),a=r(26),o=r(7).useTrackLoadQueryInRender;e.exports=function(e,t,r){o();var i=a(e,t);return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchPolicy:null==r?void 0:r.fetchPolicy,networkCacheConfig:null==r?void 0:r.networkCacheConfig,query:i,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var i=r(0),u=r(4),c=r(1).commitMutation,l=i.useState,s=i.useEffect,f=i.useRef,d=i.useCallback,p=r(8);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,r=u(),n=p(),a=f(r),i=f(e),y=f(new Set),h=l(!1),m=h[0],v=h[1],b=d((function(t){a.current===r&&i.current===e&&(y.current.delete(t),n.current&&v(y.current.size>0))}),[r,n,e]);s((function(){a.current===r&&i.current===e||(y.current=new Set,n.current&&v(!1),a.current=r,i.current=e)}),[r,n,e]);var g=d((function(a){var i=t(r,o({},a,{mutation:e,onCompleted:function(e,t){b(i),a.onCompleted&&a.onCompleted(e,t)},onError:function(e){b(i),a.onError&&a.onError(e)},onUnsubscribe:function(){b(i),a.onUnsubscribe&&a.onUnsubscribe()}}));return y.current.add(i),n.current&&v(!0),i}),[b,t,r,n,e]);return[g,m]}},function(e,t,r){"use strict";var n=r(3)(r(5));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var i=r(17),u=r(19),c=r(13),l=r(9),s=r(0),f=s.useCallback,d=s.useDebugValue,p=s.useState,y=r(1),h=y.getFragment,m=y.getFragmentIdentifier;function v(e){var t=p(!1),r=t[0],n=t[1],a=u(o({},e,{observer:{start:function(){return n(!0)},complete:function(){return n(!1)},error:function(){return n(!1)}},onReset:function(){return n(!1)}}));return[a[0],a[1],r,a[2]]}e.exports=function(e,t){var r=h(e);l(r,"first argument of usePaginationFragment()");var n=i(r,"usePaginationFragment()"),a=n.connectionPathInFragmentData,u=n.paginationRequest,s=n.paginationMetadata,p=n.identifierField,y=c(r,t,"usePaginationFragment()"),b=y.fragmentData,g=y.fragmentRef,P=y.refetch,O=m(r,g),R=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:a,direction:"backward",fragmentData:b,fragmentIdentifier:O,fragmentNode:r,fragmentRef:g,identifierField:p,paginationMetadata:s,paginationRequest:u}),w=R[0],j=R[1],_=R[2],E=R[3],x=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:a,direction:"forward",fragmentData:b,fragmentIdentifier:O,fragmentNode:r,fragmentRef:g,identifierField:p,paginationMetadata:s,paginationRequest:u}),k=x[0],S=x[1],D=x[2],q=x[3],C=f((function(e,t){return q(),E(),P(e,o({},t,{__environment:void 0}))}),[q,E,P]);return d({fragment:r.name,data:b,hasNext:S,isLoadingNext:D,hasPrevious:j,isLoadingPrevious:_}),{data:b,loadNext:k,loadPrevious:w,hasNext:S,hasPrevious:j,isLoadingNext:D,isLoadingPrevious:_,refetch:C}}},function(e,t,r){"use strict";var n=r(2),a=r(25),o=r(26),i=r(4),u=r(6),c=r(7).useTrackLoadQueryInRender,l=r(0).useDebugValue,s=r(1),f=s.__internal.fetchQueryDeduped,d=s.Observable;e.exports=function(e,t,r){c();var s,p=i(),y=t.fetchPolicy,h=t.source,m=t.variables,v=o(e,m);if("PreloadedQuery_DEPRECATED"===t.kind){var b=t.fetchKey;v.request.node.params.name!==t.name&&n(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",v.request.node.params.name,t.name),s={componentDisplayName:"usePreloadedQuery()",fetchKey:b,fetchObservable:f(p,v.request.identifier,(function(){return p===t.environment&&null!=h?p.executeWithSource({operation:v,source:h}):p.execute({operation:v})})),fetchPolicy:y,query:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}else{s={componentDisplayName:"usePreloadedQuery()",fetchObservable:f(p,v.request.identifier,(function(){return h&&p===t.environment?h.ifEmpty(d.create((function(e){return p.execute({operation:v}).subscribe(e)}))):(u(!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."),p.execute({operation:v}))})),fetchPolicy:y,query:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var g=a(s);return l({query:t.name,variables:t.variables,data:g,fetchKey:"PreloadedQuery_DEPRECATED"===t.kind?t.fetchKey:void 0,fetchPolicy:y,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),g}},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(8),i=r(4),u=r(7),c=u.loadQuery,l=u.useTrackLoadQueryInRender,s=r(0),f=s.useCallback,d=s.useEffect,p=s.useRef,y=s.useState,h={kind:"NullQueryReference"};e.exports=function(e){var t=i();l();var r=o(),a=p(new Set([h])),u=y(h),s=u[0],m=u[1],v=f((function(){if(r.current){var e={kind:"NullQueryReference"};a.current.add(e),m(e)}}),[m,r]);d((function(){var e=a.current;if(r.current){var t,o=n(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(i===s)break;e.delete(i),"NullQueryReference"!==i.kind&&i.dispose()}}catch(e){o.e(e)}finally{o.f()}}}),[s,r]),d((function(){return function(){var e,t=n(a.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullQueryReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]);var b=f((function(n,o){if(r.current){var i=c(t,e,n,o);a.current.add(i),m(i)}}),[t,e,m,r]);return["NullQueryReference"===s.kind?null:s,b,v]}},function(e,t,r){"use strict";var n=r(13),a=r(9),o=r(0).useDebugValue,i=r(1).getFragment;e.exports=function(e,t){var r=i(e);a(r,"first argument of useRefetchableFragment()");var u=n(r,t,"useRefetchableFragment()"),c=u.fragmentData,l=u.refetch;return o({fragment:r.name,data:c}),[c,l]}},function(e,t,r){"use strict";var n=r(4),a=r(0),o=a.useEffect,i=a.useRef;e.exports=function(e,t){var r=n(),a=i(null),u=Array.from(e).sort().join("");return o((function(){var n=r.getStore(),o=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(o,t);return a.current=i,function(){return i.dispose()}}),[u,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},function(e,t,r){"use strict";var n=r(0),a=r(4),o=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:o,i=a();n.useEffect((function(){return o(i,e).dispose}),[i,e,r])}}])}));
\No newline at end of file