relay-runtime 9.0.0 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/handlers/RelayDefaultHandlerProvider.js.flow +47 -0
- package/handlers/connection/ConnectionHandler.js.flow +549 -0
- package/handlers/connection/ConnectionInterface.js.flow +92 -0
- package/handlers/connection/MutationHandlers.js.flow +199 -0
- package/index.js +1 -1
- package/index.js.flow +335 -0
- package/lib/handlers/RelayDefaultHandlerProvider.js +20 -0
- package/lib/handlers/connection/ConnectionHandler.js +1 -3
- package/lib/handlers/connection/MutationHandlers.js +212 -0
- package/lib/index.js +14 -2
- package/lib/mutations/RelayDeclarativeMutationConfig.js +22 -45
- package/lib/mutations/RelayRecordProxy.js +1 -3
- package/lib/mutations/RelayRecordSourceMutator.js +1 -3
- package/lib/mutations/RelayRecordSourceProxy.js +1 -3
- package/lib/mutations/RelayRecordSourceSelectorProxy.js +1 -3
- package/lib/mutations/commitMutation.js +2 -3
- package/lib/mutations/validateMutation.js +40 -9
- package/lib/network/RelayObservable.js +9 -9
- package/lib/network/RelayQueryResponseCache.js +8 -6
- package/lib/query/GraphQLTag.js +2 -1
- package/lib/query/PreloadableQueryRegistry.js +70 -0
- package/lib/query/fetchQuery.js +2 -3
- package/lib/query/fetchQueryInternal.js +5 -14
- package/lib/store/DataChecker.js +200 -71
- package/lib/store/RelayConcreteVariables.js +6 -2
- package/lib/store/RelayModernEnvironment.js +124 -65
- package/lib/store/RelayModernFragmentSpecResolver.js +19 -14
- package/lib/store/RelayModernOperationDescriptor.js +6 -5
- package/lib/store/RelayModernQueryExecutor.js +122 -73
- package/lib/store/RelayModernRecord.js +14 -9
- package/lib/store/RelayModernSelector.js +6 -2
- package/lib/store/RelayModernStore.js +281 -131
- package/lib/store/RelayOperationTracker.js +35 -78
- package/lib/store/RelayOptimisticRecordSource.js +7 -5
- package/lib/store/RelayPublishQueue.js +2 -4
- package/lib/store/RelayReader.js +304 -52
- package/lib/store/RelayRecordSource.js +1 -3
- package/lib/store/RelayRecordSourceMapImpl.js +13 -18
- package/lib/store/RelayReferenceMarker.js +125 -14
- package/lib/store/RelayResponseNormalizer.js +261 -66
- package/lib/store/RelayStoreReactFlightUtils.js +47 -0
- package/lib/store/RelayStoreUtils.js +1 -0
- package/lib/store/StoreInspector.js +8 -8
- package/lib/store/TypeID.js +28 -0
- package/lib/store/cloneRelayScalarHandleSourceField.js +44 -0
- package/lib/store/defaultRequiredFieldLogger.js +18 -0
- package/lib/store/normalizeRelayPayload.js +6 -2
- package/lib/store/readInlineData.js +1 -1
- package/lib/subscription/requestSubscription.js +4 -3
- package/lib/util/NormalizationNode.js +1 -5
- package/lib/util/RelayConcreteNode.js +11 -6
- package/lib/util/RelayError.js +39 -9
- package/lib/util/RelayFeatureFlags.js +6 -3
- package/lib/util/RelayReplaySubject.js +3 -3
- package/lib/util/createPayloadFor3DField.js +7 -2
- package/lib/util/getFragmentIdentifier.js +12 -3
- package/lib/util/getOperation.js +33 -0
- package/lib/util/getRequestIdentifier.js +2 -2
- package/lib/util/isEmptyObject.js +25 -0
- package/lib/util/recycleNodesInto.js +6 -7
- package/lib/util/reportMissingRequiredFields.js +48 -0
- package/mutations/RelayDeclarativeMutationConfig.js.flow +380 -0
- package/mutations/RelayRecordProxy.js.flow +165 -0
- package/mutations/RelayRecordSourceMutator.js.flow +238 -0
- package/mutations/RelayRecordSourceProxy.js.flow +164 -0
- package/mutations/RelayRecordSourceSelectorProxy.js.flow +119 -0
- package/mutations/applyOptimisticMutation.js.flow +76 -0
- package/mutations/commitLocalUpdate.js.flow +24 -0
- package/mutations/commitMutation.js.flow +181 -0
- package/mutations/validateMutation.js.flow +242 -0
- package/network/ConvertToExecuteFunction.js.flow +49 -0
- package/network/RelayNetwork.js.flow +84 -0
- package/network/RelayNetworkTypes.js.flow +145 -0
- package/network/RelayObservable.js.flow +634 -0
- package/network/RelayQueryResponseCache.js.flow +111 -0
- package/package.json +2 -2
- package/query/GraphQLTag.js.flow +168 -0
- package/query/PreloadableQueryRegistry.js.flow +65 -0
- package/query/fetchQuery.js.flow +47 -0
- package/query/fetchQueryInternal.js.flow +343 -0
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/ClientID.js.flow +43 -0
- package/store/DataChecker.js.flow +568 -0
- package/store/RelayConcreteVariables.js.flow +96 -0
- package/store/RelayModernEnvironment.js.flow +571 -0
- package/store/RelayModernFragmentSpecResolver.js.flow +438 -0
- package/store/RelayModernOperationDescriptor.js.flow +92 -0
- package/store/RelayModernQueryExecutor.js.flow +1345 -0
- package/store/RelayModernRecord.js.flow +403 -0
- package/store/RelayModernSelector.js.flow +455 -0
- package/store/RelayModernStore.js.flow +858 -0
- package/store/RelayOperationTracker.js.flow +164 -0
- package/store/RelayOptimisticRecordSource.js.flow +119 -0
- package/store/RelayPublishQueue.js.flow +401 -0
- package/store/RelayReader.js.flow +638 -0
- package/store/RelayRecordSource.js.flow +29 -0
- package/store/RelayRecordSourceMapImpl.js.flow +87 -0
- package/store/RelayRecordState.js.flow +37 -0
- package/store/RelayReferenceMarker.js.flow +324 -0
- package/store/RelayResponseNormalizer.js.flow +791 -0
- package/store/RelayStoreReactFlightUtils.js.flow +64 -0
- package/store/RelayStoreTypes.js.flow +958 -0
- package/store/RelayStoreUtils.js.flow +219 -0
- package/store/StoreInspector.js.flow +171 -0
- package/store/TypeID.js.flow +28 -0
- package/store/ViewerPattern.js.flow +26 -0
- package/store/cloneRelayHandleSourceField.js.flow +66 -0
- package/store/cloneRelayScalarHandleSourceField.js.flow +62 -0
- package/store/createFragmentSpecResolver.js.flow +55 -0
- package/store/createRelayContext.js.flow +44 -0
- package/store/defaultGetDataID.js.flow +27 -0
- package/store/defaultRequiredFieldLogger.js.flow +23 -0
- package/store/hasOverlappingIDs.js.flow +34 -0
- package/store/isRelayModernEnvironment.js.flow +27 -0
- package/store/normalizeRelayPayload.js.flow +51 -0
- package/store/readInlineData.js.flow +75 -0
- package/subscription/requestSubscription.js.flow +103 -0
- package/util/JSResourceTypes.flow.js.flow +20 -0
- package/util/NormalizationNode.js.flow +213 -0
- package/util/ReaderNode.js.flow +227 -0
- package/util/RelayConcreteNode.js.flow +99 -0
- package/util/RelayDefaultHandleKey.js.flow +17 -0
- package/util/RelayError.js.flow +62 -0
- package/util/RelayFeatureFlags.js.flow +37 -0
- package/util/RelayProfiler.js.flow +284 -0
- package/util/RelayReplaySubject.js.flow +135 -0
- package/util/RelayRuntimeTypes.js.flow +72 -0
- package/util/createPayloadFor3DField.js.flow +43 -0
- package/util/deepFreeze.js.flow +36 -0
- package/util/generateID.js.flow +21 -0
- package/util/getFragmentIdentifier.js.flow +76 -0
- package/util/getOperation.js.flow +40 -0
- package/util/getRelayHandleKey.js.flow +41 -0
- package/util/getRequestIdentifier.js.flow +42 -0
- package/util/isEmptyObject.js.flow +25 -0
- package/util/isPromise.js.flow +21 -0
- package/util/isScalarAndEqual.js.flow +26 -0
- package/util/recycleNodesInto.js.flow +87 -0
- package/util/reportMissingRequiredFields.js.flow +51 -0
- package/util/resolveImmediate.js.flow +30 -0
- package/util/stableCopy.js.flow +35 -0
package/relay-runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relay
|
|
2
|
+
* Relay v10.1.0
|
|
3
3
|
*/
|
|
4
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/ErrorUtils")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","@babel/runtime/helpers/defineProperty","fbjs/lib/ErrorUtils"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/ErrorUtils")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/ErrorUtils"])}(window,(function(e,t,r,n,i,o,a,s){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=43)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(3)(r(13)),i=r(7),o=r(21),a=r(0),s=r(9),u=i.VARIABLE,l=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function f(e,t){if(e.kind===u)return function(e,t){return t.hasOwnProperty(e)||a(!1,"getVariableValue(): Undefined variable `%s`.",e),s(t[e])}(e.variableName,t);if(e.kind===l)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=f(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(f(e,t))})),n}}function p(e,t){var r={};return e.forEach((function(e){r[e.name]=f(e,t)})),r}function h(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,o=t[n];if(null!=o)r.push(n+":"+(null!==(i=JSON.stringify(o))&&void 0!==i?i:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var _={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",formatStorageKey:h,getArgumentValue:f,getArgumentValues:p,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,a=e.key,s=e.name,u=e.args,l=e.filters,c=o(i,a,s),d=null;return u&&l&&0!==u.length&&0!==l.length&&(d=u.filter((function(e){return l.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,n.default)(d)):[r]),null===d?c:h(c,p(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?h(n,p(r,t)):n},getStableStorageKey:function(e,t){return h(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=_},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=0;e.exports={generateClientID:function(e,t,r){var n=e+":"+t;return null!=r&&(n+=":"+r),0!==n.indexOf("client:")&&(n="client:"+n),n},generateUniqueClientID:function(){return"".concat("client:","local:").concat(n++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(3)(r(5)),i=r(18),o=r(14),a=r(0),s=r(2),u=r(4).isClientID,l=r(1),c=l.ID_KEY,d=l.REF_KEY,f=l.REFS_KEY,p=l.TYPENAME_KEY,h=l.INVALIDATED_AT_KEY;function _(e){return e[c]}function v(e){return e[p]}e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==c&&r!==p&&(t[r]=e[r])},create:function(e,t){var r={};return r[c]=e,r[p]=t,r},freeze:function(e){o(e)},getDataID:_,getInvalidationEpoch:function(e){if(null==e)return null;var t=e[h];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[d]||a(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.",e[c],t,JSON.stringify(r)),r[d])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[f])||a(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.",e[c],t,JSON.stringify(r)),r[f])},getType:v,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(d)||r.hasOwnProperty(f))&&a(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[c],t,r.hasOwnProperty(d)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,i=_(e),o=_(t);s(i===o,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",i,o);var a=null!==(r=v(e))&&void 0!==r?r:null,l=null!==(n=v(t))&&void 0!==n?n:null;return s(u(o)||a===l,"RelayModernRecord: Invalid record merge, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,p,a,l),Object.assign({},e,t)},setValue:function(e,t,r){var n=_(e);if(t===c)s(n===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",n,r);else if(t===p){var i,o,a=null!==(i=v(e))&&void 0!==i?i:null,l=null!==(o=r)&&void 0!==o?o:null;s(u(_(e))||a===l,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",n,p,a,l)}e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[d]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[f]=r,e[t]=n},update:function(e,t){var r,o,a=_(e),l=_(t);s(a===l,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",a,l);var c=null!==(r=v(e))&&void 0!==r?r:null,d=null!==(o=v(t))&&void 0!==o?o:null;s(u(l)||c===d,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",a,p,c,d);for(var f=null,h=Object.keys(t),g=0;g<h.length;g++){var m=h[g];!f&&i(e[m],t[m])||((f=null!==f?f:(0,n.default)({},e))[m]=t[m])}return null!==f?f:e}}},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",VARIABLE:"Variable"}},function(e,t,r){"use strict";var n=r(7),i=r(0),o=r(2);function a(e){var t=e;return"function"==typeof t?(t=t(),o(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===t.kind?t.name:t.operation.name)):t.default&&(t=t.default),t}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function u(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function l(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function c(e){var t=a(e);return s(t)||i(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:c,getPaginationFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return u(t)||i(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getInlineDataFragment:function(e){var t=a(e);return l(t)||i(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(t)),t},graphql:function(e){i(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`.")},isFragment:s,isRequest:u,isInlineDataFragment:l}},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},i=0;i<r.length;i++)n[r[i]]=e(t[r[i]]);return n}},function(e,t,r){"use strict";var n=r(29),i=function(e,t){},o=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(e));this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?a(e):n(e)?s(e):u(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}}))},t.concat=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},t.do=function(t){var r=this;return e.create((function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},t.finally=function(t){var r=this;return e.create((function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}}))},t.ifEmpty=function(t){var r=this;return e.create((function(e){var n=!1,i=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():i=t.subscribe(e)}});return function(){i.unsubscribe()}}))},t.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,t){var r,n=!1,o=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function a(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=o({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{a()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;var u=o({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),a();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{a()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{a()}}}});try{r=e(u)}catch(e){u.error(e,!0)}if(void 0!==r&&"function"!=typeof r&&(!r||"function"!=typeof r.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(r));n&&a();return s}(this._source,e)},t.map=function(t){var r=this;return e.create((function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}}))},t.mergeMap=function(t){var r=this;return e.create((function(n){var i=[];function o(e){this._sub=e,i.push(e)}function a(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:o,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:o,next:n.next,error:n.error,complete:a})}catch(e){n.error(e,!0)}},error:n.error,complete:a}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;if("number"!=typeof t||t<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+t);return e.create((function(e){var n,i;return function o(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(o,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},t.toPromise=function(){var e=this;return new Promise((function(t,r){var n;e.subscribe({start:function(e){n=e},next:function(e){t(e),n.unsubscribe()},error:r,complete:t})}))},e}();function a(e){return e instanceof o?e:o.create((function(t){return e.subscribe(t)}))}function s(e){return o.create((function(t){e.then((function(e){t.next(e),t.complete()}),t.error)}))}function u(e){return o.create((function(t){t.next(e),t.complete()}))}o.onUnhandledError((function(e,t){"function"==typeof fail?fail(String(e)):t?setTimeout((function(){throw e})):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)})),e.exports=o},function(e,t,r){"use strict";var n=r(18),i=r(0),o=r(2),a=r(22).getFragmentVariables,s=r(1),u=s.FRAGMENT_OWNER_KEY,l=s.FRAGMENTS_KEY,c=s.ID_KEY;function d(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c],n=t[l],s=t[u];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof s&&null!==s){var d=s,f=n[e.name];return y(e,r,a(e,d.variables,f),d)}var p=JSON.stringify(t);return p.length>499&&(p=p.substr(0,498)+"…"),o(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,p,e.name),null}function f(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?d(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),f(e,t)):(Array.isArray(t)&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),d(e,t))}function h(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),function(e,t){var r=null;return t.forEach((function(t){var n=null!=t?_(e,t):null;null!=n&&(r=r||[]).push(n)})),r}(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),_(e,t))}function _(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c];return"string"==typeof r?r:(o(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(t),e.name,e.name),null)}function v(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),m(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),g(e,t)||{})}function g(e,t){var r=d(e,t);return r?r.variables:null}function m(e,t){var r={};return t.forEach((function(t,n){if(null!=t){var i=g(e,t);null!=i&&Object.assign(r,i)}})),r}function y(e,t,r,n){return{kind:"SingularReaderSelector",dataID:t,node:e,variables:r,owner:n}}e.exports={areEqualSelectors:function(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&n(e.variables,t.variables)},createReaderSelector:y,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:h,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=t[n];r[n]=h(i,o)}return r},getSingularSelector:d,getPluralSelector:f,getSelector:p,getSelectorsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=t[n];r[n]=p(i,o)}return r},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=v(e[n],t[n]);Object.assign(r,i)}return r}}},function(e,t,r){"use strict";var n=r(14),i=r(36),o=r(22).getOperationVariables,a=r(11),s=a.createNormalizationSelector,u=a.createReaderSelector,l=r(1).ROOT_ID;function c(e,t){var r={identifier:i(e.params,t),node:e,variables:t};return n(t),Object.freeze(e),Object.freeze(r),r}e.exports={createOperationDescriptor:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,n=e.operation,i=o(n,t),a=c(e,i),d={fragment:u(e.fragment,r,i,a),request:a,root:s(n,r,i)};return Object.freeze(d.fragment),Object.freeze(d.root),Object.freeze(d),d},createRequestDescriptor:c}},function(e,t){e.exports=i},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t}},function(e,t,r){"use strict";var n=r(47),i=function(){function e(t){return e.create(t)}return e.create=function(e){return new n(e)},e}();e.exports=i},function(e,t,r){"use strict";var n=r(20),i=r(2),o=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),a=Object.freeze({APPEND:"append",PREPEND:"prepend"});function s(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:o,RangeOperations:a,convert:function(e,t,r,o){var a=r?[r]:[],u=o?[o]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=s(t);if(!n)return null;return function(e,t){var i=e.getRootField(n);if(i){var o=i.getValue(r);(Array.isArray(o)?o:[o]).forEach((function(t){t&&"string"==typeof t&&e.delete(t)}))}}}(e,t);r&&(a.push(r),u.push(r));break;case"RANGE_ADD":var o=function(e,t){var r=e.parentID,o=e.connectionInfo,a=e.edgeName;if(!r)return i(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_ADD to work you must include a parentID"),null;var u=s(t);if(!o||!u)return null;return function(e,t){var s=e.get(r);if(s){var l=e.getRootField(u);if(l){var c=l.getLinkedRecord(a),d=!0,f=!1,p=void 0;try{for(var h,_=o[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;if(c){var g=n.getConnection(s,v.key,v.filters);if(g){var m=n.buildConnectionEdge(e,g,c);if(m)switch(v.rangeBehavior){case"append":n.insertEdgeAfter(g,m);break;case"prepend":n.insertEdgeBefore(g,m);break;default:i(!1,"RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` will not work as expected in RelayModern, supported range behaviors are 'append', 'prepend'.",v.rangeBehavior)}}}}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}}}}}(e,t);o&&(a.push(o),u.push(o));break;case"RANGE_DELETE":var l=function(e,t){var r=e.parentID,o=e.connectionKeys,a=e.pathToConnection,u=e.deletedIDFieldName;if(!r)return i(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE to work you must include a parentID"),null;var l=s(t);if(!l)return null;return function(e,t){if(t){var s=[],c=t[l];if(c&&Array.isArray(u)){var d=!0,f=!1,p=void 0;try{for(var h,_=u[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;c&&"object"==typeof c&&(c=c[v])}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}Array.isArray(c)?c.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&s.push(e.id)})):c&&c.id&&"string"==typeof c.id&&s.push(c.id)}else c&&"string"==typeof u&&"object"==typeof c&&("string"==typeof(c=c[u])?s.push(c):Array.isArray(c)&&c.forEach((function(e){"string"==typeof e&&s.push(e)})));!function(e,t,r,o,a){i(null!=t,"RelayDeclarativeMutationConfig: RANGE_DELETE must provide a connectionKeys");var s=o.get(e);if(!s)return;if(r.length<2)return void i(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection must include at least parent and connection");for(var u=s,l=1;l<r.length-1;l++)u&&(u=u.getLinkedRecord(r[l]));if(!t||!u)return void i(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection is incorrect. Unable to find connection with parentID: %s and path: %s",e,r.toString());var c=!0,d=!1,f=void 0;try{for(var p,h=function(){var e=p.value,t=n.getConnection(u,e.key,e.filters);t&&a.forEach((function(e){n.deleteNode(t,e)}))},_=t[Symbol.iterator]();!(c=(p=_.next()).done);c=!0)h()}catch(e){d=!0,f=e}finally{try{c||null==_.return||_.return()}finally{if(d)throw f}}}(r,o,a,e,s)}}}(e,t);l&&(a.push(l),u.push(l))}})),{optimisticUpdater:function(e,t){a.forEach((function(r){r(e,t)}))},updater:function(e,t){u.forEach((function(r){r(e,t)}))}}}}},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!1,ENABLE_RELAY_CONTAINERS_SUSPENSE:!0,ENABLE_UNIQUE_MUTATION_ROOT:!0}},function(e,t){e.exports=o},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";var n=r(25),i=r(21),o=r(0),a=r(2),s=r(4).generateClientID,u="__connection_next_edge_index";function l(e,t,r){if(null==r)return r;var i=n.get().EDGES,a=t.getValue(u);"number"!=typeof a&&o(!1,"ConnectionHandler: Expected %s to be a number, got `%s`.",u,a);var l=s(t.getDataID(),i,a),c=e.create(l,r.getType());return c.copyFieldsFrom(r),t.setValue(a+1,u),c}function c(e,t,r){for(var i=n.get().NODE,o=0;o<e.length;o++){var a=e[o];if(a){var s=a.getLinkedRecord(i),u=s&&s.getDataID();if(u){if(r.has(u))continue;r.add(u)}t.push(a)}}}e.exports={buildConnectionEdge:l,createEdge:function(e,t,r,i){var o=n.get().NODE,a=s(t.getDataID(),r.getDataID()),u=e.get(a);return u||(u=e.create(a,i)),u.setLinkedRecord(r,o),u},deleteNode:function(e,t){var r=n.get(),i=r.EDGES,o=r.NODE,a=e.getLinkedRecords(i);if(a){for(var s,u=0;u<a.length;u++){var l=a[u],c=l&&l.getLinkedRecord(o);null!=c&&c.getDataID()===t?void 0===s&&(s=a.slice(0,u)):void 0!==s&&s.push(l)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i("connection",t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var i=n.get(),o=i.CURSOR,a=i.EDGES,s=e.getLinkedRecords(a);if(s){var u;if(null==r)u=s.concat(t);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];if(u.push(d),null!=d)r===d.getValue(o)&&(u.push(t),l=!0)}l||u.push(t)}e.setLinkedRecords(u,a)}else e.setLinkedRecords([t],a)},insertEdgeBefore:function(e,t,r){var i=n.get(),o=i.CURSOR,a=i.EDGES,s=e.getLinkedRecords(a);if(s){var u;if(null==r)u=[t].concat(s);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];if(null!=d)r===d.getValue(o)&&(u.push(t),l=!0);u.push(d)}l||u.unshift(t)}e.setLinkedRecords(u,a)}else e.setLinkedRecords([t],a)},update:function(e,t){var r,i=e.get(t.dataID);if(i){var o=n.get(),d=o.EDGES,f=o.END_CURSOR,p=o.HAS_NEXT_PAGE,h=o.HAS_PREV_PAGE,_=o.PAGE_INFO,v=o.PAGE_INFO_TYPE,g=o.START_CURSOR,m=i.getLinkedRecord(t.fieldKey),y=m&&m.getLinkedRecord(_);if(m){var b=s(i.getDataID(),t.handleKey),E=i.getLinkedRecord(t.handleKey),R=null!==(r=E)&&void 0!==r?r:e.get(b),D=R&&R.getLinkedRecord(_);if(R){null==E&&i.setLinkedRecord(R,t.handleKey);var S=R,I=m.getLinkedRecords(d);I&&(I=I.map((function(t){return l(e,S,t)})));var k=S.getLinkedRecords(d),O=S.getLinkedRecord(_);S.copyFieldsFrom(m),k&&S.setLinkedRecords(k,d),O&&S.setLinkedRecord(O,_);var x=[],N=t.args;if(k&&I)if(null!=N.after){if(!D||N.after!==D.getValue(f))return void a(!1,"Relay: Unexpected after cursor `%s`, edges must be fetched from the end of the list (`%s`).",N.after,D&&D.getValue(f));var T=new Set;c(k,x,T),c(I,x,T)}else if(null!=N.before){if(!D||N.before!==D.getValue(g))return void a(!1,"Relay: Unexpected before cursor `%s`, edges must be fetched from the beginning of the list (`%s`).",N.before,D&&D.getValue(g));var P=new Set;c(I,x,P),c(k,x,P)}else x=I;else x=I||k;if(null!=x&&x!==k&&S.setLinkedRecords(x,d),D&&y)if(null==N.after&&null==N.before)D.copyFieldsFrom(y);else if(null!=N.before||null==N.after&&N.last){D.setValue(!!y.getValue(h),h);var w=y.getValue(g);"string"==typeof w&&D.setValue(w,g)}else if(null!=N.after||null==N.before&&N.first){D.setValue(!!y.getValue(p),p);var A=y.getValue(f);"string"==typeof A&&D.setValue(A,f)}}else{var L=e.create(b,m.getType());L.setValue(0,u),L.copyFieldsFrom(m);var M=m.getLinkedRecords(d);M&&(M=M.map((function(t){return l(e,L,t)})),L.setLinkedRecords(M,d)),i.setLinkedRecord(L,t.handleKey),(D=e.create(s(L.getDataID(),_),v)).setValue(!1,p),D.setValue(!1,h),D.setValue(null,f),D.setValue(null,g),y&&D.copyFieldsFrom(y),L.setLinkedRecord(D,_)}}else i.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(0),i=r(26).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(3)(r(5)),i=r(0);e.exports={getFragmentVariables:function(e,t,r){var o;return e.argumentDefinitions.forEach((function(a){if(!r.hasOwnProperty(a.name))switch(o=o||(0,n.default)({},r),a.kind){case"LocalArgument":o[a.name]=a.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(a.name)){o[a.name]=void 0;break}o[a.name]=t[a.name];break;default:i(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",a.kind,e.name)}})),o||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach((function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n})),r}}},function(e,t,r){"use strict";function n(){}var i={"*":[]},o={"*":[]},a={},s={stop:n},u={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=u.instrument(t[r],e[r]))},instrument:function(e,t){i.hasOwnProperty(e)||(i[e]=[]);var r=i["*"],n=i[e],o=[],s=[],u=function i(){var a=s[s.length-1];a[0]?(a[0]--,r[a[0]](e,i)):a[1]?(a[1]--,n[a[1]](e,i)):a[2]?(a[2]--,o[a[2]](e,i)):a[5]=t.apply(a[3],a[4])},c=function(){var e;if(0===n.length&&0===o.length&&0===r.length)e=t.apply(this,arguments);else{s.push([r.length,n.length,o.length,this,arguments,a]),u();var i=s.pop();if((e=i[5])===a)throw new Error("RelayProfiler: Handler did not invoke original function.")}return e};return c.attachHandler=function(e){o.push(e)},c.detachHandler=function(e){l(o,e)},c.displayName="(instrumented "+e+")",c},attachAggregateHandler:function(e,t){i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t)},detachAggregateHandler:function(e,t){i.hasOwnProperty(e)&&l(i[e],t)},profile:function(e,t){var r=o["*"].length>0,n=o.hasOwnProperty(e);if(n||r){for(var i,a=n&&r?o[e].concat(o["*"]):n?o[e]:o["*"],u=a.length-1;u>=0;u--){var l=(0,a[u])(e,t);(i=i||[]).unshift(l)}return{stop:function(e){i&&i.forEach((function(t){return t(e)}))}}}return s},attachProfileHandler:function(e,t){o.hasOwnProperty(e)||(o[e]=[]),o[e].push(t)},detachProfileHandler:function(e,t){o.hasOwnProperty(e)&&l(o[e],t)}};function l(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}e.exports=u},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},i={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},o={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return n.hasOwnProperty(e.name)}};e.exports=o},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";var n=r(20),i=r(0);e.exports=function(e){switch(e){case"connection":return n}i(!1,"RelayDefaultHandlerProvider: No handler provided for `%s`.",e)}},function(e,t,r){"use strict";function n(e,t,r){var n=new Error(r);return n.name=t,n.type=e,n.framesToPop=2,n}e.exports={create:function(e,t){return n("error",e,t)},createWarning:function(e,t){return n("warn",e,t)}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";var n=r(0),i=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r=new Set,n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value,l=this._ownersToPendingOperations.get(u);null!=l?l.has(e)||(l.add(e),r.add(u)):(this._ownersToPendingOperations.set(u,new Set([e])),r.add(u))}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}if(0!==r.size){var c=this._pendingOperationsToOwners.get(e)||new Set,d=!0,f=!1,p=void 0;try{for(var h,_=r[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;this._resolveOwnerResolvers(v),c.add(v)}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}this._pendingOperationsToOwners.set(e,c)}}},t.complete=function(e){var t=this._pendingOperationsToOwners.get(e);if(null!=t){var r=new Set,n=new Set,i=!0,o=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value,c=this._ownersToPendingOperations.get(l);c&&(c.delete(e),c.size>0?n.add(l):r.add(l))}}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}var d=!0,f=!1,p=void 0;try{for(var h,_=r[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;this._resolveOwnerResolvers(v),this._ownersToPendingOperations.delete(v)}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}var g=!0,m=!1,y=void 0;try{for(var b,E=n[Symbol.iterator]();!(g=(b=E.next()).done);g=!0){var R=b.value;this._resolveOwnerResolvers(R)}}catch(e){m=!0,y=e}finally{try{g||null==E.return||E.return()}finally{if(m)throw y}}this._pendingOperationsToOwners.delete(e)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPromise.get(e);null!=t&&t.resolve(),this._ownersToPromise.delete(e)},t.getPromiseForPendingOperationsAffectingOwner=function(e){if(!this._ownersToPendingOperations.has(e))return null;var t,r=this._ownersToPromise.get(e);if(null!=r)return r.promise;var i=new Promise((function(e){t=e}));return null==t&&n(!1,"RelayOperationTracker: Expected resolver to be defined. If youare seeing this, it is likely a bug in Relay."),this._ownersToPromise.set(e,{promise:i,resolve:t}),i},e}();e.exports=i},function(e,t,r){"use strict";var n=r(6),i=r(0),o=r(7),a=o.CLIENT_EXTENSION,s=o.CONDITION,u=o.DEFER,l=o.FRAGMENT_SPREAD,c=o.INLINE_DATA_FRAGMENT_SPREAD,d=o.INLINE_FRAGMENT,f=o.LINKED_FIELD,p=o.MODULE_IMPORT,h=o.SCALAR_FIELD,_=o.STREAM,v=r(1),g=v.FRAGMENTS_KEY,m=v.FRAGMENT_OWNER_KEY,y=v.FRAGMENT_PROP_NAME_KEY,b=v.ID_KEY,E=v.MODULE_COMPONENT_KEY,R=v.getArgumentValues,D=v.getStorageKey,S=v.getModuleComponentKey;var I=function(){function e(e,t){this._isMissingData=!1,this._owner=t.owner,this._recordSource=e,this._seenRecords={},this._selector=t,this._variables=t.variables}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID;return{data:this._traverse(t,r,null),isMissingData:this._isMissingData,seenRecords:this._seenRecords,selector:this._selector}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i),i},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||i(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t,r){for(var o=0;o<e.length;o++){var v=e[o];switch(v.kind){case h:this._readScalar(v,t,r);break;case f:v.plural?this._readPluralLink(v,t,r):this._readLink(v,t,r);break;case s:this._getVariableValue(v.condition)===v.passingValue&&this._traverseSelections(v.selections,t,r);break;case d:var g=n.getType(t);null!=g&&g===v.type&&this._traverseSelections(v.selections,t,r);break;case l:this._createFragmentPointer(v,t,r);break;case p:this._readModuleImport(v,t,r);break;case c:this._createInlineDataFragmentPointer(v,t,r);break;case u:case a:var m=this._isMissingData;this._traverseSelections(v.selections,t,r),this._isMissingData=m;break;case _:this._traverseSelections(v.selections,t,r);break;default:i(!1,"RelayReader(): Unexpected ast kind `%s`.",v.kind)}}},t._readScalar=function(e,t,r){var i,o=null!==(i=e.alias)&&void 0!==i?i:e.name,a=D(e,this._variables),s=n.getValue(t,a);void 0===s&&(this._isMissingData=!0),r[o]=s},t._readLink=function(e,t,r){var o,a=null!==(o=e.alias)&&void 0!==o?o:e.name,s=D(e,this._variables),u=n.getLinkedRecordID(t,s);if(null==u)return r[a]=u,void(void 0===u&&(this._isMissingData=!0));var l=r[a];null!=l&&"object"!=typeof l&&i(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",a,n.getDataID(t),l),r[a]=this._traverse(e,u,l)},t._readPluralLink=function(e,t,r){var o,a=this,s=null!==(o=e.alias)&&void 0!==o?o:e.name,u=D(e,this._variables),l=n.getLinkedRecordIDs(t,u);if(null==l)return r[s]=l,void(void 0===l&&(this._isMissingData=!0));var c=r[s];null==c||Array.isArray(c)||i(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",s,n.getDataID(t),c);var d=c||[];l.forEach((function(r,o){if(null==r)return void 0===r&&(a._isMissingData=!0),void(d[o]=r);var u=d[o];null!=u&&"object"!=typeof u&&i(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,n.getDataID(t),u),d[o]=a._traverse(e,r,u)})),r[s]=d},t._readModuleImport=function(e,t,r){var i=S(e.documentName),o=n.getValue(t,i);null!=o?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[y]=e.fragmentPropName,r[E]=o):void 0===o&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var o=r[g];null==o&&(o=r[g]={}),("object"!=typeof o||null==o)&&i(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",o),null==r[b]&&(r[b]=n.getDataID(t)),o[e.name]=e.args?R(e.args,this._variables):{},r[m]=this._owner},t._createInlineDataFragmentPointer=function(e,t,r){var o=r[g];null==o&&(o=r[g]={}),("object"!=typeof o||null==o)&&i(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",o),null==r[b]&&(r[b]=n.getDataID(t));var a={};this._traverseSelections(e.selections,t,a),o[e.name]=a},e}();e.exports={read:function(e,t){return new I(e,t).read()}}},function(e,t,r){"use strict";var n=r(6),i=r(0),o=r(19).EXISTENT,a=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);if(void 0===r){if(null==t)return t;var i=n.clone(t);return n.freeze(i),i}if(null===r)return null;if(null!=t){var o=n.update(t,r);return o!==t&&n.freeze(o),o}var a=n.clone(r);return n.freeze(a),a},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),t=n.create(e,n.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),o=this._base.get(e);r||o||i(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e);var a=this._getSinkRecord(t);o&&n.copyFields(o,a),r&&n.copyFields(r,a)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===o||this._sink.getStatus(e)===o)&&i(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e);var r=n.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return n.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var o=n.getValue(i,t);if(void 0!==o)return o}else if(null===i)return null}},t.setValue=function(e,t,r){var i=this._getSinkRecord(e);n.setValue(i,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var o=n.getLinkedRecordID(i,t);if(void 0!==o)return o}else if(null===i)return null}},t.setLinkedRecordID=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordID(i,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var o=n.getLinkedRecordIDs(i,t);if(void 0!==o)return o}else if(null===i)return null}},t.setLinkedRecordIDs=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordIDs(i,t,r)},e}();e.exports=a},function(e,t,r){"use strict";var n=r(6),i=r(51),o=r(0),a=r(19),s=a.EXISTENT,u=a.NONEXISTENT,l=r(1),c=l.ROOT_ID,d=l.ROOT_TYPE,f=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach((function(t){var i=e.getStatus(t);if(i===s){var o=e.get(t);o&&(r.__mutator.getStatus(t)!==s&&r.create(t,n.getType(o)),r.__mutator.copyFieldsFromRecord(o,t))}else i===u&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||o(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||o(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===c&&o(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===s?new i(this,this.__mutator,e):t===u?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(c);return e||(e=this.create(c,d)),e&&e.getType()===d||o(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record, %s.",null==e?"no root record found":"found a root record of type `".concat(e.getType(),"`")),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},e}();e.exports=f},function(e,t,r){"use strict";var n=r(35),i=n.VIEWER_ID,o=n.VIEWER_TYPE;e.exports=function(e,t){return t===o&&null==e.id?i:e.id}},function(e,t,r){"use strict";var n=(0,r(4).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var n=r(0),i=r(9);e.exports=function(e,t){var r=null!=e.id?e.id:e.text;return null==r&&n(!1,"getRequestIdentifier: Expected request `%s` to have either a valid `id` or `text` property",e.name),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(18),i=r(0),o=r(7).LINKED_FIELD,a=r(1).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===o&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===o||i(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var u=a(e,r);return{kind:"LinkedField",alias:s.alias,name:u,storageKey:u,args:null,concreteType:s.concreteType,plural:s.plural,selections:s.selections}}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r||"object"!=typeof t||!t||"object"!=typeof r||!r)return r;var n=!1,i=Array.isArray(t)?t:null,o=Array.isArray(r)?r:null;if(i&&o)n=o.reduce((function(t,r,n){var a=e(i[n],r);return a!==o[n]&&(Object.isFrozen(o)||(o[n]=a)),t&&a===i[n]}),!0)&&i.length===o.length;else if(!i&&!o){var a=t,s=r,u=Object.keys(a),l=Object.keys(s);n=l.reduce((function(t,r){var n=e(a[r],s[r]);return n!==s[r]&&(Object.isFrozen(s)||(s[r]=n)),t&&n===a[r]}),!0)&&u.length===l.length}return n?t:r}},function(e,t,r){"use strict";var n=r(3)(r(40)),i=r(10),o=r(0),a=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),(0,n.default)(this,"_subscription",null),this._observable=i.create((function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var i=r[n];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,o(!1,"RelayReplaySubject: Unknown event kind `%s`.",i.kind)}}return function(){e._sinks.delete(t)}}))}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(t){return t.error(e)})))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(t){return t.next(e)})))},t.subscribe=function(e){return this._subscription=this._observable.subscribe(e),this._subscription},t.unsubscribe=function(){this._subscription&&this._subscription.unsubscribe()},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=a},function(e,t){e.exports=a},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t,r){"use strict";var n=r(10),i=r(39),o=r(0),a="function"==typeof WeakMap?new WeakMap:new Map;function s(e,t,r){return n.create((function(a){var s=l(e),u=t.identifier,d=s.get(u);return d||r().finally((function(){return s.delete(u)})).subscribe({start:function(e){d={identifier:u,subject:new i,subjectForInFlightStatus:new i,subscription:e},s.set(u,d)},next:function(e){var t=c(s,u);t.subject.next(e),t.subjectForInFlightStatus.next(e)},error:function(e){var t=c(s,u);t.subject.error(e),t.subjectForInFlightStatus.error(e)},complete:function(){var e=c(s,u);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var t=c(s,u);t.subject.unsubscribe(),t.subjectForInFlightStatus.unsubscribe()}}),null==d&&o(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously"),function(e,t){return n.create((function(r){var n=t.subject.subscribe(r);return function(){n.unsubscribe();var r=e.get(t.identifier);if(r){var i=r.subscription;null!=i&&0===r.subject.getObserverCount()&&(i.unsubscribe(),e.delete(t.identifier))}}}))}(s,d).subscribe(a)}))}function u(e,t,r){return n.create((function(t){var n=r.subjectForInFlightStatus.subscribe({error:t.error,next:function(n){e.isRequestActive(r.identifier)?t.next():t.complete()},complete:t.complete,unsubscribe:t.complete});return function(){n.unsubscribe()}}))}function l(e){var t=a.get(e);if(null!=t)return t;var r=new Map;return a.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&o(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),r}e.exports={fetchQuery:function(e,t,r){return s(e,t.request,(function(){return e.execute({operation:t,cacheConfig:null==r?void 0:r.networkCacheConfig})}))},fetchQueryDeduped:s,getPromiseForActiveRequest:function(e,t){var r=l(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?new Promise((function(t,r){var i=!1;u(e,0,n).subscribe({complete:t,error:r,next:function(e){i&&t(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,t){var r=l(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?u(e,0,n):null},isRequestActive:function(e,t){var r=l(e).get(t.identifier);return null!=r&&e.isRequestActive(r.identifier)}}},function(e,t,r){"use strict";var n=r(20),i=r(25),o=r(8),a=r(7),s=r(22),u=r(16),l=r(26),c=r(27),d=r(28),f=r(17),p=r(44),h=r(12),_=r(6),v=r(11),g=r(55),m=r(61),y=r(10),b=r(30),E=r(23),R=r(63),D=r(15),S=r(39),I=r(1),k=r(35),O=r(64),x=r(65),N=r(66),T=r(68),P=r(70),w=r(71),A=r(14),L=r(72),M=r(42),F=r(73),C=r(21),j=r(36),U=r(29),V=r(24),q=r(41),K=r(74),z=r(38),G=r(75),Q=r(9),Y=r(4),H=Y.generateClientID,B=Y.generateUniqueClientID,W=Y.isClientID,J="function"!=typeof Map?"Map":null,X="function"!=typeof Set?"Set":null,$="function"!=typeof Promise?"Promise":null,Z="function"!=typeof Object.assign?"Object.assign":null;if(J||X||$||Z)throw new Error("relay-runtime requires ".concat([J,X,$,Z].filter(Boolean).join(", and ")," to exist. ")+"Use a polyfill to provide these for older browsers.");e.exports={Environment:p,Network:m,Observable:y,QueryResponseCache:R,RecordSource:D,Record:_,ReplaySubject:S,Store:g,areEqualSelectors:v.areEqualSelectors,createFragmentSpecResolver:T,createNormalizationSelector:v.createNormalizationSelector,createOperationDescriptor:h.createOperationDescriptor,createReaderSelector:v.createReaderSelector,createRequestDescriptor:h.createRequestDescriptor,getDataIDsFromFragment:v.getDataIDsFromFragment,getDataIDsFromObject:v.getDataIDsFromObject,getFragment:o.getFragment,getInlineDataFragment:o.getInlineDataFragment,getModuleComponentKey:I.getModuleComponentKey,getModuleOperationKey:I.getModuleOperationKey,getPaginationFragment:o.getPaginationFragment,getPluralSelector:v.getPluralSelector,getRefetchableFragment:o.getRefetchableFragment,getRequest:o.getRequest,getRequestIdentifier:j,getSelector:v.getSelector,getSelectorsFromObject:v.getSelectorsFromObject,getSingularSelector:v.getSingularSelector,getStorageKey:I.getStorageKey,getVariablesFromFragment:v.getVariablesFromFragment,getVariablesFromObject:v.getVariablesFromObject,getVariablesFromPluralFragment:v.getVariablesFromPluralFragment,getVariablesFromSingularFragment:v.getVariablesFromSingularFragment,graphql:o.graphql,readInlineData:K,MutationTypes:u.MutationTypes,RangeOperations:u.RangeOperations,DefaultHandlerProvider:c,ConnectionHandler:n,VIEWER_ID:k.VIEWER_ID,VIEWER_TYPE:k.VIEWER_TYPE,applyOptimisticMutation:O,commitLocalUpdate:x,commitMutation:N,fetchQuery:L,isRelayModernEnvironment:V,requestSubscription:G,ConnectionInterface:i,RelayProfiler:E,createPayloadFor3DField:P,RelayConcreteNode:a,RelayError:d,RelayFeatureFlags:f,DEFAULT_HANDLE_KEY:l.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:I.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:I.FRAGMENT_OWNER_KEY,ID_KEY:I.ID_KEY,REF_KEY:I.REF_KEY,REFS_KEY:I.REFS_KEY,ROOT_ID:I.ROOT_ID,ROOT_TYPE:I.ROOT_TYPE,TYPENAME_KEY:I.TYPENAME_KEY,deepFreeze:A,generateClientID:H,generateUniqueClientID:B,getRelayHandleKey:C,isClientID:W,isPromise:U,isScalarAndEqual:q,recycleNodesInto:z,stableCopy:Q,getFragmentIdentifier:F,__internal:{OperationTracker:b,createRelayContext:w,getOperationVariables:s.getOperationVariables,fetchQuery:M.fetchQuery,fetchQueryDeduped:M.fetchQueryDeduped,getPromiseForActiveRequest:M.getPromiseForActiveRequest,getObservableForActiveRequest:M.getObservableForActiveRequest,isRequestActive:M.isRequestActive}}},function(e,t,r){"use strict";(function(t){var n=r(27),i=r(17),o=r(46),a=r(10),s=r(30),u=r(49),l=r(15),c=r(34),d=r(53),f=r(0),p=function(){function e(e){var o,a,l,d,p,_=this;this.configName=e.configName;var v=e.handlerProvider?e.handlerProvider:n,g=e.operationLoader;null!=g&&("object"!=typeof g||"function"!=typeof g.get||"function"!=typeof g.load)&&f(!1,"RelayModernEnvironment: Expected `operationLoader` to be an object with get() and load() functions, got `%s`.",g),this.__log=null!==(o=e.log)&&void 0!==o?o:h,this._defaultRenderPolicy=(null!==(a=e.UNSTABLE_defaultRenderPolicy)&&void 0!==a?a:!0===i.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=g,this._operationExecutions=new Map,this._network=e.network,this._getDataID=null!==(l=e.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==l?l:c,this._publishQueue=new u(e.store,v,this._getDataID),this._scheduler=null!==(d=e.scheduler)&&void 0!==d?d:null,this._store=e.store,this.options=e.options,this.__setNet=function(e){return _._network=e};var m=r(54).inspect;this.DEBUG_inspect=function(e){return m(_,e)};var y=void 0!==t?t:"undefined"!=typeof window?window:void 0,b=y&&y.__RELAY_DEVTOOLS_HOOK__;b&&b.registerEnvironment(this),this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(p=e.operationTracker)&&void 0!==p?p:new s}var p=e.prototype;return p.getStore=function(){return this._store},p.getNetwork=function(){return this._network},p.getOperationTracker=function(){return this._operationTracker},p.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},p.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},p.applyUpdate=function(e){var t=this;return this._publishQueue.applyUpdate(e),this._publishQueue.run(),{dispose:function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}}},p.revertUpdate=function(e){this._publishQueue.revertUpdate(e),this._publishQueue.run()},p.replaceUpdate=function(e,t){this._publishQueue.revertUpdate(e),this._publishQueue.applyUpdate(t),this._publishQueue.run()},p.applyMutation=function(e){var t=this,r=a.create((function(r){var n=a.create((function(e){})),i=o.execute({operation:e.operation,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:e,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:r,source:n,store:t._store,updater:null,operationTracker:t._operationTracker,getDataID:t._getDataID});return function(){return i.cancel()}})).subscribe({});return{dispose:function(){return r.unsubscribe()}}},p.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},p.commitPayload=function(e,t){var r=this;a.create((function(n){var i=o.execute({operation:e,operationExecutions:r._operationExecutions,operationLoader:r._operationLoader,optimisticConfig:null,publishQueue:r._publishQueue,scheduler:null,sink:n,source:a.from({data:t}),store:r._store,updater:null,operationTracker:r._operationTracker,getDataID:r._getDataID,isClientPayload:!0});return function(){return i.cancel()}})).subscribe({})},p.commitUpdate=function(e){this._publishQueue.commitUpdate(e),this._publishQueue.run()},p.lookup=function(e){return this._store.lookup(e)},p.subscribe=function(e,t){return this._store.subscribe(e,t)},p.retain=function(e){return this._store.retain(e)},p._checkSelectorAndHandleMissingFields=function(e,t){var r=l.create(),n=this._store.check(e,{target:r,handlers:t});return r.size()>0&&(this._publishQueue.commitSource(r),this._publishQueue.run()),n},p.execute=function(e){var t=this,r=e.operation,n=e.cacheConfig,i=e.updater,s=this.__createLogObserver(r.request.node.params,r.request.variables),u=s[0],l=s[1];return a.create((function(e){var a=t._network.execute(r.request.node.params,r.request.variables,n||{},null,l),s=o.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:a,store:t._store,updater:i,operationTracker:t._operationTracker,getDataID:t._getDataID});return function(){return s.cancel()}})).do(u)},p.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,i=e.optimisticUpdater,s=e.updater,u=e.uploadables,l=this.__createLogObserver(r.request.node.params,r.request.variables),c=l[0],d=l[1];return a.create((function(e){var a;(n||i)&&(a={operation:r,response:n,updater:i});var l=t._network.execute(r.request.node.params,r.request.variables,{force:!0},u,d),c=o.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:a,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:l,store:t._store,updater:s,operationTracker:t._operationTracker,getDataID:t._getDataID});return function(){return c.cancel()}})).do(c)},p.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return a.create((function(e){var i=o.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:n,store:t._store,getDataID:t._getDataID});return function(){return i.cancel()}}))},p.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},p.__createLogObserver=function(e,t){var r=d(),n=this.__log;return[{start:function(i){n({name:"execute.start",transactionID:r,params:e,variables:t})},next:function(e){n({name:"execute.next",transactionID:r,response:e})},error:function(e){n({name:"execute.error",transactionID:r,error:e})},complete:function(){n({name:"execute.complete",transactionID:r})},unsubscribe:function(){n({name:"execute.unsubscribe",transactionID:r})}},function(e){n({name:"execute.info",transactionID:r,info:e})}]},e}();function h(){}p.prototype["@@RelayModernEnvironment"]=!0,e.exports=p}).call(this,r(45))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(3),i=n(r(5)),o=n(r(13)),a=r(28),s=r(6),u=r(10),l=r(15),c=r(48),d=r(0),f=r(9),p=r(2),h=r(4).generateClientID,_=r(11).createNormalizationSelector,v=r(1),g=v.ROOT_TYPE,m=v.TYPENAME_KEY,y=v.getStorageKey;var b=function(){function e(e){var t=this,r=e.operation,n=e.operationExecutions,i=e.operationLoader,o=e.optimisticConfig,a=e.publishQueue,s=e.scheduler,u=e.sink,l=e.source,c=e.store,d=e.updater,f=e.operationTracker,p=e.getDataID,h=e.isClientPayload;this._getDataID=p,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=r,this._operationExecutions=n,this._operationLoader=i,this._operationTracker=f,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._publishQueue=a,this._scheduler=s,this._sink=u,this._source=new Map,this._state="started",this._store=c,this._subscriptions=new Map,this._updater=d,this._isClientPayload=!0===h;var _=this._nextSubscriptionId++;l.subscribe({complete:function(){return t._complete(_)},error:function(e){return t._error(e)},next:function(e){try{t._next(_,e)}catch(e){u.error(e)}},start:function(e){return t._start(_,e)}}),null!=o&&this._processOptimisticResponse(null!=o.response?{data:o.response}:null,o.updater)}var t=e.prototype;return t.cancel=function(){var e=this;if("completed"!==this._state){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),0!==this._subscriptions.size&&(this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions.clear());var t=this._optimisticUpdates;null!==t&&(this._optimisticUpdates=null,t.forEach((function(t){return e._publishQueue.revertUpdate(t)})),this._publishQueue.run()),this._incrementalResults.clear(),this._completeOperationTracker()}},t._updateActiveState=function(){var e;switch(this._state){case"started":case"loading_incremental":e="active";break;case"completed":e="inactive";break;case"loading_final":e=this._pendingModulePayloadsCount>0?"active":"inactive";break;default:this._state,d(!1,"RelayModernQueryExecutor: invalid executor state.")}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;u.create((function(t){var n=r.schedule((function(){try{e(),t.complete()}catch(e){t.error(e)}}));return function(){return r.cancel(n)}})).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e){this.cancel(),this._sink.error(e)},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this;this._schedule((function(){r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking()}))},t._handleErrorResponse=function(e){var t=this;return e.map((function(e){if(null==e.data){var r=e.errors?e.errors.map((function(e){return e.message})).join("\n"):"(No errors)",n=a.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+r+"\n\nSee the error `source` property for more information.");throw n.source={errors:e.errors,operation:t._operation.request.node,variables:t._operation.request.variables},n}return e}))},t._handleOptimisticResponses=function(e){var t;if(e.length>1)return e.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic)}))&&d(!1,"Optimistic responses cannot be batched."),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&d(!1,"RelayModernQueryExecutor: optimistic payload received after server payload."),!!n&&(this._processOptimisticResponse(r,null),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){var t=this._handleErrorResponse(Array.isArray(e)?e:[e]);if(!this._handleOptimisticResponses(t)){var r=function(e){var t=[],r=[];return e.forEach((function(e){if(null!=e.path||null!=e.label){var n=e.label,i=e.path;null!=n&&null!=i||d(!1,"RelayModernQueryExecutor: invalid incremental payload, expected `path` and `label` to either both be null/undefined, or `path` to be an `Array<string | number>` and `label` to be a `string`."),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(t),n=r[0],i=r[1];if(n.length>0){var o=this._processResponses(n),a=this._publishQueue.run(this._operation);this._updateOperationTracker(a),this._processPayloadFollowups(o)}if(i.length>0){var s=this._processIncrementalResponses(i),u=this._publishQueue.run();this._updateOperationTracker(u),this._processPayloadFollowups(s)}this._sink.next(e)}}},t._processOptimisticResponse=function(e,t){var r=this;if(null!==this._optimisticUpdates&&d(!1,"environment.execute: only support one optimistic response per execute."),null!=e||null!=t){var n=[];if(e){var i=E(e,this._operation.root,g,{getDataID:this._getDataID,path:[],request:this._operation.request});R(i),n.push({operation:this._operation,payload:i,updater:t}),this._processOptimisticFollowups(i,n)}else t&&n.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,moduleImportPayloads:null,source:l.create(),isFinal:!1},updater:t});this._optimisticUpdates=n,n.forEach((function(e){return r._publishQueue.applyUpdate(e)})),this._publishQueue.run()}},t._processOptimisticFollowups=function(e,t){if(e.moduleImportPayloads&&e.moduleImportPayloads.length){var r=e.moduleImportPayloads,n=this._operationLoader;n||d(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`.");var i=!0,a=!1,s=void 0;try{for(var u,l=r[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=n.get(c.operationReference);if(null==f)this._processAsyncOptimisticModuleImport(n,c);else{var p=this._processOptimisticModuleImport(f,c);t.push.apply(t,(0,o.default)(p))}}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}}},t._normalizeModuleImport=function(e,t){var r=_(t,e.dataID,e.variables);return E({data:e.data},r,e.typeName,{getDataID:this._getDataID,path:e.path,request:this._operation.request})},t._processOptimisticModuleImport=function(e,t){var r=[],n=this._normalizeModuleImport(t,e);return R(n),r.push({operation:this._operation,payload:n,updater:null}),this._processOptimisticFollowups(n,r),r},t._processAsyncOptimisticModuleImport=function(e,t){var r=this;e.load(t.operationReference).then((function(e){if(null!=e&&"started"===r._state){var n,i=r._processOptimisticModuleImport(e,t);if(i.forEach((function(e){return r._publishQueue.applyUpdate(e)})),null==r._optimisticUpdates)p(!1,"RelayModernQueryExecutor: Unexpected ModuleImport optimisitc update in operation %s."+r._operation.request.node.params.name);else(n=r._optimisticUpdates).push.apply(n,(0,o.default)(i)),r._publishQueue.run()}}))},t._processResponses=function(e){var t=this;return null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach((function(e){return t._publishQueue.revertUpdate(e)})),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map((function(e){var r=E(e,t._operation.root,g,{getDataID:t._getDataID,path:[],request:t._operation.request});return t._publishQueue.commitPayload(t._operation,r,t._updater),r}))},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach((function(e){var r=e.incrementalPlaceholders,n=e.moduleImportPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),n&&0!==n.length){var o=t._operationLoader;o||d(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`."),n.forEach((function(e){t._processModuleImportPayload(e,o)}))}if(r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach((function(r){t._processIncrementalPlaceholder(e,r)})),t._isClientPayload||"loading_final"===t._state)){p(t._isClientPayload,"RelayModernEnvironment: Operation `%s` contains @defer/@stream directives but was executed in non-streaming mode. See https://fburl.com/relay-incremental-delivery-non-streaming-warning.",t._operation.request.node.params.name);var a=[];if(r.forEach((function(e){"defer"===e.kind&&a.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),a.length>0){var s=t._publishQueue.run();t._updateOperationTracker(s),t._processPayloadFollowups(a)}}}))},t._maybeCompleteSubscriptionOperationTracking=function(){"subscription"===this._operation.request.node.params.operationKind&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n)this._schedule((function(){r._handleModuleImportPayload(e,n),r._maybeCompleteSubscriptionOperationTracking()}));else{var i=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var o=function(){r._pendingModulePayloadsCount--,r._maybeCompleteSubscriptionOperationTracking()};u.from(new Promise((function(r,n){t.load(e.operationReference).then(r,n)}))).map((function(t){null!=t&&r._schedule((function(){r._handleModuleImportPayload(e,t)}))})).subscribe({complete:function(){r._complete(i),o()},error:function(e){r._error(e),o()},start:function(e){return r._start(i,e)}})}},t._handleModuleImportPayload=function(e,t){var r=this._normalizeModuleImport(e,t);this._publishQueue.commitPayload(this._operation,r);var n=this._publishQueue.run();this._updateOperationTracker(n),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,n=this,i=t.label,o=t.path.map(String).join("."),a=this._incrementalResults.get(i);null==a&&(a=new Map,this._incrementalResults.set(i,a));var u,l=a.get(o),c=null!=l&&"response"===l.kind?l.responses:null;a.set(o,{kind:"placeholder",placeholder:t}),"stream"===t.kind?u=t.parentID:"defer"===t.kind?u=t.selector.dataID:d(!1,"Unsupported incremental placeholder kind `%s`.",t.kind);var p,_,v=e.source.get(u),g=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=h(e.dataID,e.fieldKey);return(e.dataID===u||t===u)}));null==v&&d(!1,"RelayModernEnvironment: Expected record `%s` to exist.",u);var m=this._source.get(u);if(null!=m){p=s.update(m.record,v);var y=new Map,b=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(f(t)))&&void 0!==r?r:"");y.set(n,e)};m.fieldPayloads.forEach(b),g.forEach(b),_=Array.from(y.values())}else p=v,_=g;this._source.set(u,{record:p,fieldPayloads:_}),null!=c&&this._schedule((function(){var e=n._processIncrementalResponses(c),t=n._publishQueue.run();n._updateOperationTracker(t),n._processPayloadFollowups(e)}))},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var n=e.label,i=e.path,o=e.response,a=t._incrementalResults.get(n);if(null==a&&(a=new Map,t._incrementalResults.set(n,a)),-1!==n.indexOf("$defer$")){var s=i.map(String).join("."),u=a.get(s);if(null==u)return u={kind:"response",responses:[e]},void a.set(s,u);if("response"===u.kind)return void u.responses.push(e);var l=u.placeholder;"defer"!==l.kind&&d(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @defer, was `@%s`.",s,n,l.kind),r.push(t._processDeferResponse(n,i,l,o))}else{var c=i.slice(0,-2).map(String).join("."),f=a.get(c);if(null==f)return f={kind:"response",responses:[e]},void a.set(c,f);if("response"===f.kind)return void f.responses.push(e);var p=f.placeholder;"stream"!==p.kind&&d(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @stream, was `@%s`.",c,n,p.kind),r.push(t._processStreamResponse(n,i,p,o))}})),r},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,o=E(n,r.selector,r.typeName,{getDataID:this._getDataID,path:r.path,request:this._operation.request});this._publishQueue.commitPayload(this._operation,o);var a=this._source.get(i);null==a&&d(!1,"RelayModernEnvironment: Expected the parent record `%s` for @defer data to exist.",i);var s=a.fieldPayloads;if(0!==s.length){var u,c={errors:null,fieldPayloads:s,incrementalPlaceholders:null,moduleImportPayloads:null,source:l.create(),isFinal:!0===(null===(u=n.extensions)||void 0===u?void 0:u.is_final)};this._publishQueue.commitPayload(this._operation,c)}return o},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,a=r.node,s=r.variables,u=a.selections[0];(null==u||"LinkedField"!==u.kind||!0!==u.plural)&&d(!1,"RelayModernEnvironment: Expected @stream to be used on a plural field.");var c=this._normalizeStreamItem(n,i,u,s,t,r.path),f=c.fieldPayloads,p=c.itemID,h=c.itemIndex,_=c.prevIDs,v=c.relayPayload,g=c.storageKey;if(this._publishQueue.commitPayload(this._operation,v,(function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(g);if(null!=r&&r.length===_.length&&!r.some((function(e,t){return _[t]!==(e&&e.getDataID())}))){var n=(0,o.default)(r);n[h]=e.get(p),t.setLinkedRecords(n,g)}}})),0!==f.length){var m={errors:null,fieldPayloads:f,incrementalPlaceholders:null,moduleImportPayloads:null,source:l.create(),isFinal:!1};this._publishQueue.commitPayload(this._operation,m)}return v},t._normalizeStreamItem=function(e,t,r,n,i,a){var u,l,c,f=e.data;"object"!=typeof f&&d(!1,"RelayModernEnvironment: Expected the GraphQL @stream payload `data` value to be an object.");var p=null!==(u=r.alias)&&void 0!==u?u:r.name,v=y(r,n),g=this._source.get(t);null==g&&d(!1,"RelayModernEnvironment: Expected the parent record `%s` for @stream data to exist.",t);var b=g.record,R=g.fieldPayloads,D=s.getLinkedRecordIDs(b,v);null==D&&d(!1,"RelayModernEnvironment: Expected record `%s` to have fetched field `%s` with @stream.",t,r.name);var S=i[i.length-1],I=parseInt(S,10);I===S&&I>=0||d(!1,"RelayModernEnvironment: Expected path for @stream to end in a positive integer index, got `%s`",S);var k=null!==(l=r.concreteType)&&void 0!==l?l:f[m];"string"!=typeof k&&d(!1,"RelayModernEnvironment: Expected @stream field `%s` to have a __typename.",r.name);var O=(null!==(c=this._getDataID(f,k))&&void 0!==c?c:D&&D[I])||h(t,v,I);"string"!=typeof O&&d(!1,"RelayModernEnvironment: Expected id of elements of field `%s` to be strings.",v);var x=_(r,O,n),N=s.clone(b),T=(0,o.default)(D);return T[I]=O,s.setLinkedRecordIDs(N,v,T),this._source.set(t,{record:N,fieldPayloads:R}),{fieldPayloads:R,itemID:O,itemIndex:I,prevIDs:D,relayPayload:E(e,x,k,{getDataID:this._getDataID,path:[].concat((0,o.default)(a),[p,String(I)]),request:this._operation.request}),storageKey:v}},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation.request)},e}();function E(e,t,r,n){var o,a=e.data,u=e.errors,d=l.create(),f=s.create(t.dataID,r);d.set(t.dataID,f);var p=c.normalize(d,t,a,n);return(0,i.default)({},p,{errors:u,isFinal:!0===(null===(o=e.extensions)||void 0===o?void 0:o.is_final)})}function R(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&d(!1,"RelayModernQueryExecutor: optimistic responses cannot be returned for operations that use incremental data delivery (@defer, @stream, and @stream_connection).")}e.exports={execute:function(e){return new b(e)}}},function(e,t,r){"use strict";var n=r(19),i=n.EXISTENT,o=n.NONEXISTENT,a=n.UNKNOWN,s=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?o:i:a},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,o=this._records[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value,s=a[0],u=a[1];e[s]=u}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return e},e}();e.exports=s},function(e,t,r){"use strict";var n=r(3)(r(13)),i=r(6),o=r(23),a=r(0),s=r(2),u=r(7),l=u.CONDITION,c=u.CLIENT_EXTENSION,d=u.DEFER,f=u.INLINE_FRAGMENT,p=u.LINKED_FIELD,h=u.LINKED_HANDLE,_=u.MODULE_IMPORT,v=u.SCALAR_FIELD,g=u.SCALAR_HANDLE,m=u.STREAM,y=r(4),b=y.generateClientID,E=y.isClientID,R=r(11).createNormalizationSelector,D=r(1),S=D.getArgumentValues,I=D.getHandleStorageKey,k=D.getModuleComponentKey,O=D.getModuleOperationKey,x=D.getStorageKey,N=D.TYPENAME_KEY;var T=function(){function e(e,t,r){this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._incrementalPlaceholders=[],this._isClientExtension=!1,this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._request=r.request,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||a(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._traverseSelections(e,n,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,moduleImportPayloads:this._moduleImportPayloads,source:this._recordSource,isFinal:!1}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||a(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[N];return null==t&&a(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var o=e.selections[n];switch(o.kind){case v:case p:this._normalizeField(e,o,t,r);break;case l:this._getVariableValue(o.condition)===o.passingValue&&this._traverseSelections(o,t,r);break;case f:i.getType(t)===o.type&&this._traverseSelections(o,t,r);break;case h:case g:var s=o.args?S(o.args,this._variables):{},u=x(o,this._variables),y=I(o,this._variables);this._handleFieldPayloads.push({args:s,dataID:i.getDataID(t),fieldKey:u,handle:o.handle,handleKey:y});break;case _:this._normalizeModuleImport(e,o,t,r);break;case d:this._normalizeDefer(o,t,r);break;case m:this._normalizeStream(o,t,r);break;case c:var b=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(o,t,r),this._isClientExtension=b;break;default:a(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",o.kind)}}},t._normalizeDefer=function(e,t,r){var o=null===e.if||this._getVariableValue(e.if);s("boolean"==typeof o,"RelayResponseNormalizer: Expected value for @defer `if` argument to be a boolean, got `%s`.",o),!1===o?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,n.default)(this._path),selector:R(e,i.getDataID(t),this._variables),typeName:i.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var o=null===e.if||this._getVariableValue(e.if);s("boolean"==typeof o,"RelayResponseNormalizer: Expected value for @stream `if` argument to be a boolean, got `%s`.",o),!0===o&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,n.default)(this._path),parentID:i.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,o){var s,u;"object"==typeof o&&o||a(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var l=i.getType(r),c=k(t.documentName),d=o[c];i.setValue(r,c,null!==(s=d)&&void 0!==s?s:null);var f=O(t.documentName),p=o[f];i.setValue(r,f,null!==(u=p)&&void 0!==u?u:null),null!=p&&this._moduleImportPayloads.push({data:o,dataID:i.getDataID(r),operationReference:p,path:(0,n.default)(this._path),typeName:l,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||a(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var o=t.alias||t.name,u=x(t,this._variables),l=n[o];if(null==l)return void 0===l?void s(!!(this._isClientExtension||e.kind===p&&null==e.concreteType)||Object.prototype.hasOwnProperty.call(n,o),"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",o,u):void i.setValue(r,u,null);t.kind===v?i.setValue(r,u,l):t.kind===p?(this._path.push(o),t.plural?this._normalizePluralLink(t,r,u,l):this._normalizeLink(t,r,u,l),this._path.pop()):a(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeLink=function(e,t,r,n){var o;"object"==typeof n&&n||a(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var s=this._getDataId(n,null!==(o=e.concreteType)&&void 0!==o?o:this._getRecordType(n))||i.getLinkedRecordID(t,r)||b(i.getDataID(t),r);"string"!=typeof s&&a(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),i.setLinkedRecordID(t,r,s);var u=this._recordSource.get(s);if(u)this._validateRecordType(u,e,n);else{var l=e.concreteType||this._getRecordType(n);u=i.create(s,l),this._recordSource.set(s,u)}this._traverseSelections(e,u,n)},t._normalizePluralLink=function(e,t,r,n){var o=this;Array.isArray(n)||a(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var s=i.getLinkedRecordIDs(t,r),u=[];n.forEach((function(n,l){var c;if(null!=n){o._path.push(String(l)),"object"!=typeof n&&a(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var d=o._getDataId(n,null!==(c=e.concreteType)&&void 0!==c?c:o._getRecordType(n))||s&&s[l]||b(i.getDataID(t),r,l);"string"!=typeof d&&a(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),u.push(d);var f=o._recordSource.get(d);if(f)o._validateRecordType(f,e,n);else{var p=e.concreteType||o._getRecordType(n);f=i.create(d,p),o._recordSource.set(d,f)}o._traverseSelections(e,f,n),o._path.pop()}else u.push(n)})),i.setLinkedRecordIDs(t,r,u)},t._validateRecordType=function(e,t,r){var n,o=null!==(n=t.concreteType)&&void 0!==n?n:this._getRecordType(r);s(E(i.getDataID(e))||i.getType(e)===o,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be consistent, but the record was assigned conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i.getDataID(e),N,i.getType(e),o)},e}(),P=o.instrument("RelayResponseNormalizer.normalize",(function(e,t,r,n){var i=t.dataID,o=t.node,a=t.variables;return new T(e,a,n).normalizeResponse(o,i,r)}));e.exports={normalize:P}},function(e,t,r){"use strict";var n=r(50),i=r(31),o=r(15),a=r(32),s=r(33),u=r(52),l=r(0),c=r(2),d=function(){function e(e,t,r){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&l(!1,"RelayPublishQueue: Cannot apply the same update function more than once concurrently."),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){c(!0!==this._isRunning,"A store update was detected within another store update. Please make sure new store updates aren’t being executed within an updater function for a different update."),this._isRunning=!0,this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var t=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._isRunning=!1,this._store.notify(e,t)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,o=r.source,c=r.fieldPayloads,d=new a(this._store.getSource(),o),p=new s(d,this._getDataID);if(c&&c.length&&c.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||l(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),r.update(p,e)})),i){var h=n.fragment;null==h&&l(!1,"RelayModernEnvironment: Expected a selector to be provided with updater function."),i(new u(d,p,h),f(o,h))}var _=p.getIDsMarkedForInvalidation();return this._store.publish(o,_),p.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach((function(r){if("payload"===r.kind){var i=e._publishSourceFromPayload(r);t=t||i}else if("source"===r.kind){var u=r.source;e._store.publish(u)}else{var l=r.updater,c=o.create(),d=new a(e._store.getSource(),c),f=new s(d,e._getDataID);n.applyWithGuard(l,null,[f],null,"RelayPublishQueue:commitData"),t=t||f.isStoreMarkedForInvalidation();var p=f.getIDsMarkedForInvalidation();e._store.publish(c,p)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=o.create(),r=new a(this._store.getSource(),t),i=new s(r,this._getDataID,this._handlerProvider),l=function(e){if(e.storeUpdater){var t=e.storeUpdater;n.applyWithGuard(t,null,[i],null,"RelayPublishQueue:applyUpdates")}else{var o,a=e.operation,s=e.payload,l=e.updater,c=s.source,d=s.fieldPayloads,p=new u(r,i,a.fragment);c&&(i.publishSource(c,d),o=f(c,a.fragment)),l&&n.applyWithGuard(l,null,[p,o],null,"RelayPublishQueue:applyUpdates")}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(l),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach((function(t){l(t),e._appliedOptimisticUpdates.add(t)})),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();function f(e,t){var n=i.read(e,t).data,o=r(14);return n&&o(n),n}e.exports=d},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(0),i=r(4).generateClientID,o=r(1).getStableStorageKey,a=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=o(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e));var i=o(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=o(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var a=o(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,a,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var a,s=o(e,r),u=i(this.getDataID(),s);n=null!==(a=this._source.get(u))&&void 0!==a?a:this._source.create(u,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=o(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var i=o(t,r),a=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,i,a),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=a},function(e,t,r){"use strict";var n=r(0),i=r(1),o=i.getStorageKey,a=i.ROOT_TYPE,s=function(){function e(e,t,r){this.__mutator=e,this.__recordSource=t,this._readSelector=r}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,a)),e},t._getRootField=function(e,t,r){var i=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t}));return i&&"LinkedField"===i.kind||n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Cannot find root field `%s`, no such field is defined on GraphQL document `%s`.",t,e.node.name),i.plural!==r&&n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Expected root field `%s` to be %s.",t,r?"plural":"singular"),i},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=o(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=o(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(r)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},e}();e.exports=s},function(e,t,r){"use strict";var n=1e5;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(3),i=n(r(5)),o=n(r(13)),a=function(){},s=!1,u=function(){var e={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"},t={style:"rgb(136, 19, 145)"},r={style:"color: #777"},n=function(e){return["span",{style:"font-style: italic"},e.__typename,["span",r,' {id: "',e.__id,'", …}']]},i=function(e){return null!=e&&"string"==typeof e.__id},a=function(e,t){this.key=e,this.value=t},s=function(t){var r=Object.keys(t).map((function(e){return["li",{},["object",{object:new a(e,t[e])}]]}));return["ol",e].concat((0,o.default)(r))};return[{header:function(e){return i(e)?n(e):null},hasBody:function(e){return!0},body:function(e){return s(e)}},{header:function(e){if(e instanceof a){var o=i(e.value)?n(e.value):null==(s=e.value)?["span",r,"undefined"]:["object",{object:s,config:u}];return["span",t,e.key,": ",o]}var s,u;return null},hasBody:function(e){return i(e.value)},body:function(e){return s(e.value)}}]};a=function(e,t){var r,n;return s||(s=!0,null==window.devtoolsFormatters&&(window.devtoolsFormatters=[]),Array.isArray(window.devtoolsFormatters)&&(console.info('Make sure to select "Enable custom formatters" in the Chrome Developer Tools settings, tab "Preferences" under the "Console" section.'),(n=window.devtoolsFormatters).push.apply(n,(0,o.default)(u())))),function e(t,r){var n=t.get(r);return null==n?n:new Proxy((0,i.default)({},n),{get:function(r,n){var i=r[n];if(null==i)return i;if("object"==typeof i){if("string"==typeof i.__ref)return e(t,i.__ref);if(Array.isArray(i.__refs))return i.__refs.map((function(r){return e(t,r)}))}return i}})}(e.getStore().getSource(),null!==(r=t)&&void 0!==r?r:"client:root")},e.exports={inspect:a}},function(e,t,r){"use strict";var n=r(56),i=r(6),o=r(57),a=r(23),s=r(31),u=r(58),l=r(1),c=r(14),d=r(34),f=r(59),p=r(0),h=r(38),_=r(60),v=r(1),g=v.ROOT_ID,m=v.ROOT_TYPE,y=function(){function e(e,t){for(var r,n,o,a,s=e.getRecordIDs(),u=0;u<s.length;u++){var l=e.get(s[u]);l&&i.freeze(l)}this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:0,this._gcScheduler=null!==(n=null==t?void 0:t.gcScheduler)&&void 0!==n?n:_,this._getDataID=null!==(o=null==t?void 0:t.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==o?o:d,this._globalInvalidationEpoch=null,this._hasScheduledGC=!1,this._index=0,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this._operationLoader=null!==(a=null==t?void 0:t.operationLoader)&&void 0!==a?a:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._subscriptions=new Set,this._updatedRecordIDs={},function(e){if(!e.has(g)){var t=i.create(g,m);e.set(g,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.check=function(e,t){var r,i,o,a=e.root,s=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource,u=this._globalInvalidationEpoch,l=this._roots.get(e.request.identifier),c=null!=l?l.epoch:null;if(null!=u&&(null==c||c<=u))return{status:"stale"};var d=null!==(i=null==t?void 0:t.target)&&void 0!==i?i:s,f=null!==(o=null==t?void 0:t.handlers)&&void 0!==o?o:[];return function(e,t,r){var n,i=e.mostRecentlyInvalidatedAt,o=e.status;if("number"==typeof i&&(null==t||i>t))return{status:"stale"};return"missing"===o?{status:"missing"}:{status:"available",fetchTime:null!==(n=r)&&void 0!==n?n:null}}(n.check(s,d,a,f,this._operationLoader,this._getDataID),c,null==l?void 0:l.fetchTime)},t.retain=function(e){var t=this,r=e.request.identifier,n=this._roots.get(r);return null!=n?n.refCount+=1:this._roots.set(r,{operation:e,refCount:0,epoch:null,fetchTime:null}),{dispose:function(){if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var e=t._releaseBuffer.shift(),n=t._roots.get(e);if(null==n)return;n.refCount>0?n.refCount-=1:(t._roots.delete(e),t._scheduleGC())}}}},t.lookup=function(e){var t=this.getSource(),r=s.read(t,e);return c(r),r},t.notify=function(e,t){var r=this;this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch);var n=this.getSource(),i=[];if(this._subscriptions.forEach((function(e){var t=r._updateSubscription(n,e);null!=t&&i.push(t)})),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),this._updatedRecordIDs={},this._invalidatedRecordIDs.clear(),null!=e){var o,a=e.request.identifier,s=this._roots.get(a);if(null!=s)s.epoch=this._currentWriteEpoch,s.fetchTime=null!==(o=s.fetchTime)&&void 0!==o?o:Date.now()}return i},t.publish=function(e,t){var r;!function(e,t,r,n,o,a){n&&n.forEach((function(n){var o,s=e.get(n),u=t.get(n);null!==u&&((o=null!=s?i.clone(s):null!=u?i.clone(u):null)&&(i.setValue(o,l.INVALIDATED_AT_KEY,r),a.add(n),e.set(n,o)))}));for(var s=t.getRecordIDs(),u=0;u<s.length;u++){var c=s[u],d=t.get(c),f=e.get(c);if(d&&i.freeze(d),d&&f){var p=i.update(f,d);p!==f&&(i.freeze(p),o[c]=!0,e.set(c,p))}else null===d?(e.delete(c),null!==f&&(o[c]=!0)):d&&(e.set(c,d),o[c]=!0)}}(null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs)},t.subscribe=function(e,t){var r=this,n={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e._scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e,t){var r=t.backup,n=t.callback,i=t.snapshot,o=t.stale,a=f(i.seenRecords,this._updatedRecordIDs);if(o||a){var u=a||!r?s.read(e,i.selector):r;return u={data:h(i.data,u.data),isMissingData:u.isMissingData,seenRecords:u.seenRecords,selector:u.selector},c(u),t.snapshot=u,t.stale=!1,u.data!==i.data?(n(u),i.selector.owner):void 0}},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach((function(e){var n,o=t.getSource().get(e);r.set(e,null!==(n=i.getInvalidationEpoch(o))&&void 0!==n?n:null)})),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n=!0,i=!1,o=void 0;try{for(var a,s=e.dataIDs[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(t.get(u)!==r.get(u))return!0}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(n),{dispose:function(){r._invalidationSubscriptions.delete(n)}}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,i=e.invalidationState.dataIDs;(t||i.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&n()},t.snapshot=function(){var e=this;null!=this._optimisticSource&&p(!1,"RelayModernStore: Unexpected call to snapshot() while a previous snapshot exists."),this._subscriptions.forEach((function(t){if(t.stale){var r=t.snapshot,n=s.read(e.getSource(),r.selector),i=h(r.data,n.data);n.data=i,t.backup=n}else t.backup=t.snapshot})),this._optimisticSource=o.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&p(!1,"RelayModernStore: Unexpected call to restore(), expected a snapshot to exist (make sure to call snapshot())."),this._optimisticSource=null,this._subscriptions.forEach((function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,seenRecords:t.seenRecords,selector:t.selector}):e.stale=!0}))},t._scheduleGC=function(){var e=this;this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._hasScheduledGC||(this._hasScheduledGC=!0,this._gcScheduler((function(){e.__gc(),e._hasScheduledGC=!1})))},t.__gc=function(){var e=this;if(null==this._optimisticSource){var t=new Set;if(this._roots.forEach((function(r){var n=r.operation.root;u.mark(e._recordSource,n,t,e._operationLoader)})),0===t.size)this._recordSource.clear();else for(var r=this._recordSource.getRecordIDs(),n=0;n<r.length;n++){var i=r[n];t.has(i)||this._recordSource.remove(i)}}},e}();a.instrumentMethods(y.prototype,{lookup:"RelayModernStore.prototype.lookup",notify:"RelayModernStore.prototype.notify",publish:"RelayModernStore.prototype.publish",__gc:"RelayModernStore.prototype.__gc"}),e.exports=y},function(e,t,r){"use strict";var n=r(7),i=r(6),o=r(32),a=r(33),s=r(1),u=r(37),l=r(0),c=r(4).isClientID,d=r(19),f=d.EXISTENT,p=d.UNKNOWN,h=n.CONDITION,_=n.CLIENT_EXTENSION,v=n.DEFER,g=n.FRAGMENT_SPREAD,m=n.INLINE_FRAGMENT,y=n.LINKED_FIELD,b=n.LINKED_HANDLE,E=n.MODULE_IMPORT,R=n.SCALAR_FIELD,D=n.SCALAR_HANDLE,S=n.STREAM,I=s.getModuleOperationKey,k=s.getStorageKey,O=s.getArgumentValues;var x=function(){function e(e,t,r,n,i,s){var u,l=new o(e,t);this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=l,this._operationLoader=null!==(u=i)&&void 0!==u?u:null,this._recordSourceProxy=new a(l,s),this._recordWasMissing=!1,this._source=e,this._variables=r}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||l(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?O(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!c(t)){var r=this._getDataForHandlers(e,t),n=r.args,i=r.record,o=!0,a=!1,s=void 0;try{for(var u,l=this._handlers[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var d=u.value;if("scalar"===d.kind){var f=d.handle(e,i,n,this._recordSourceProxy);if(void 0!==f)return f}}}catch(e){a=!0,s=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,i=r.record,o=!0,a=!1,s=void 0;try{for(var u,l=this._handlers[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value;if("linked"===c.kind){var d=c.handle(e,i,n,this._recordSourceProxy);if(null!=d&&this._mutator.getStatus(d)===f)return d}}}catch(e){a=!0,s=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r=this,n=this._getDataForHandlers(e,t),i=n.args,o=n.record,a=!0,s=!1,u=void 0;try{for(var l,c=this._handlers[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var d=l.value;if("pluralLinked"===d.kind){var p=d.handle(e,o,i,this._recordSourceProxy);if(null!=p)if(p.every((function(e){return null!=e&&r._mutator.getStatus(e)===f})))return p}}}catch(e){s=!0,u=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw u}}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===p&&this._handleMissing(),r===f){var n=this._source.get(t),o=i.getInvalidationEpoch(n);null!=o&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,o):o),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case R:r._checkScalar(n,t);break;case y:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case h:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case m:var i=r._mutator.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t);break;case b:var o=u(n,e,r._variables);o.plural?r._checkPluralLink(o,t):r._checkLink(o,t);break;case E:r._checkModuleImport(n,t);break;case v:case S:r._traverseSelections(n.selections,t);break;case D:case g:l(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind);break;case _:var a=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=a;break;default:l(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&l(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var n=I(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var o=r.get(i);null!=o?this._traverse(o,t):this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=k(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=k(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&null!=(n=this._handleMissingLinkField(e,t))&&this._mutator.setLinkedRecordID(t,r,n),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=k(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&null!=(i=this._handleMissingPluralLinkField(e,t))&&this._mutator.setLinkedRecordIDs(t,n,i),i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},e}();e.exports={check:function(e,t,r,n,i,o){var a=r.dataID,s=r.node,u=r.variables;return new x(e,t,u,n,i,o).check(s,a)}}},function(e,t,r){"use strict";var n=r(3)(r(5)),i=r(15),o=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),a=function(){function e(e){this._base=e,this._sink=i.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==o:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===o?void 0:t}return this._base.get(e)},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=i.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,o)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=(0,n.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var n=e.get(r);void 0===n?delete t[r]:t[r]=n})),t},e}();e.exports={create:function(e){return new a(e)}}},function(e,t,r){"use strict";var n=r(7),i=r(6),o=r(1),a=r(37),s=r(0),u=n.CONDITION,l=n.CLIENT_EXTENSION,c=n.DEFER,d=n.FRAGMENT_SPREAD,f=n.INLINE_FRAGMENT,p=n.LINKED_FIELD,h=n.MODULE_IMPORT,_=n.LINKED_HANDLE,v=n.SCALAR_FIELD,g=n.SCALAR_HANDLE,m=n.STREAM,y=o.getStorageKey,b=o.getModuleOperationKey;var E=function(){function e(e,t,r,n){var i;this._operationLoader=null!==(i=n)&&void 0!==i?i:null,this._recordSource=e,this._references=r,this._variables=t}var t=e.prototype;return t.mark=function(e,t){this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||s(!1,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case p:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case u:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case f:var o=i.getType(t);null!=o&&o===n.type&&r._traverseSelections(n.selections,t);break;case d:s(!1,"RelayReferenceMarker(): Unexpected fragment spread `...%s`, expected all fragments to be inlined.",n.name);case _:var y=a(n,e,r._variables);y.plural?r._traversePluralLink(y,t):r._traverseLink(y,t);break;case c:case m:r._traverseSelections(n.selections,t);break;case v:case g:break;case h:r._traverseModuleImport(n,t);break;case l:r._traverseSelections(n.selections,t);break;default:s(!1,"RelayReferenceMarker: Unknown AST node `%s`.",n)}}))},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&s(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`.");var n=b(e.documentName),o=i.getValue(t,n);if(null!=o){var a=r.get(o);null!=a&&this._traverseSelections(a.selections,t)}},t._traverseLink=function(e,t){var r=y(e,this._variables),n=i.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=y(e,this._variables),o=i.getLinkedRecordIDs(t,n);null!=o&&o.forEach((function(t){null!=t&&r._traverse(e,t)}))},e}();e.exports={mark:function(e,t,r,n){var i=t.dataID,o=t.node,a=t.variables;new E(e,a,r,n).mark(o,i)}}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){for(var r in e)if(n.call(e,r)&&n.call(t,r))return!0;return!1}},function(e,t,r){"use strict";var n=Promise.resolve();function i(e){setTimeout((function(){throw e}),0)}e.exports=function(e){n.then(e).catch(i)}},function(e,t,r){"use strict";var n=r(0),i=r(62).convertFetch;e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,o,a,s){if("subscription"===e.operationKind)return t||n(!1,"RelayNetwork: This network layer does not support Subscriptions. To use Subscriptions, provide a custom network layer."),a&&n(!1,"RelayNetwork: Cannot provide uploadables while subscribing."),t(e,i,o);var u=o.poll;return null!=u?(a&&n(!1,"RelayNetwork: Cannot provide uploadables while polling."),r(e,i,{force:!0}).poll(u)):r(e,i,o,a,s)}}}}},function(e,t,r){"use strict";var n=r(10);e.exports={convertFetch:function(e){return function(t,r,i,o,a){var s=e(t,r,i,o,a);return s instanceof Error?n.create((function(e){return e.error(s)})):n.from(s)}}}},function(e,t,r){"use strict";var n=r(3)(r(5)),i=r(0),o=r(9),a=function(){function e(e){var t=e.size,r=e.ttl;t>0||i(!1,"RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.",t),r>0||i(!1,"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",r),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,i=s(e,t);this._responses.forEach((function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=Date.now()||r._responses.delete(t)}));var o=this._responses.get(i);return null!=o?(0,n.default)({},o.payload,{extensions:(0,n.default)({},o.payload.extensions,{cacheTimestamp:o.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),i=s(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var o=this._responses.keys().next();o.done||this._responses.delete(o.value)}},e}();function s(e,t){return JSON.stringify(o({queryID:e,variables:t}))}e.exports=a},function(e,t,r){"use strict";var n=r(16),i=r(0),o=r(24),a=r(8).getRequest,s=r(12).createOperationDescriptor;e.exports=function(e,t){o(e)||i(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=a(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");var u=t.optimisticUpdater,l=t.configs,c=t.optimisticResponse,d=t.variables,f=s(r,d);return l&&(u=n.convert(l,r,u).optimisticUpdater),e.applyMutation({operation:f,response:c,updater:u})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(3)(r(13)),i=r(16),o=r(17),a=r(0),s=r(24),u=r(67),l=r(2),c=r(8).getRequest,d=r(4).generateUniqueClientID,f=r(12).createOperationDescriptor;e.exports=function(e,t){s(e)||a(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=c(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw new Error("commitMutation: Expected mutation to be of type request");var p=t.optimisticResponse,h=t.optimisticUpdater,_=t.updater,v=t.configs,g=t.onError,m=t.onUnsubscribe,y=t.variables,b=t.uploadables,E=f(r,y,o.ENABLE_UNIQUE_MUTATION_ROOT?d():void 0);if("function"==typeof p&&(p=p(),l(!1,"commitMutation: Expected `optimisticResponse` to be an object, received a function.")),p instanceof Object&&u(p,r,y),v){var R=i.convert(v,r,h,_);h=R.optimisticUpdater,_=R.updater}var D=[];return{dispose:e.executeMutation({operation:E,optimisticResponse:p,optimisticUpdater:h,updater:_,uploadables:b}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&D.push.apply(D,(0,n.default)(e.errors))})):e.errors&&D.push.apply(D,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(E.fragment).data,0!==D.length?D:null)},error:g,unsubscribe:m}).unsubscribe}}},function(e,t,r){"use strict";var n=r(3)(r(5)),i=r(2),o=function(){},a=function(e,t,r){var n=t;e.split(".").forEach((function(e,t,i){null==n[e]&&(n[e]={}),r&&t===i.length-1&&(n[e]="<scalar>"),n=n[e]}))};o=function(e,t,r){var n=t.operation.name,o={path:"ROOT",visitedPaths:new Set,variables:r||{},missingDiff:{},extraDiff:{}};s(e,t.operation.selections,o),c(e,o),i(null==o.missingDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please define fields for all of\n%s",n,JSON.stringify(o.missingDiff.ROOT,null,2)),i(null==o.extraDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please remove all fields of\n%s",n,JSON.stringify(o.extraDiff.ROOT,null,2))};var s=function(e,t,r){t.forEach((function(t){return u(e,t,r)}))},u=function e(t,r,n){switch(r.kind){case"Condition":return void s(t,r.selections,n);case"ScalarField":case"LinkedField":return l(t,r,n);case"InlineFragment":var i=r.type;return void r.selections.forEach((function(r){t.__typename===i&&e(t,r,n)}));case"ClientExtension":case"ModuleImport":case"LinkedHandle":case"ScalarHandle":case"Defer":case"Stream":default:return}},l=function(e,t,r){var i=t.alias||t.name,o="".concat(r.path,".").concat(i);switch(r.visitedPaths.add(o),t.kind){case"ScalarField":return void(!1===e.hasOwnProperty(i)&&a(o,r.missingDiff,!0));case"LinkedField":var u=t.selections;if(null===e[i]||Object.hasOwnProperty(i)&&void 0===e[i])return;return t.plural?Array.isArray(e[i])?void e[i].forEach((function(e){null!==e&&s(e,u,(0,n.default)({},r,{path:o}))})):void a(o,r.missingDiff):e[i]instanceof Object?void s(e[i],u,(0,n.default)({},r,{path:o})):void a(o,r.missingDiff)}},c=function e(t,r){Array.isArray(t)?t.forEach((function(t){t instanceof Object&&e(t,r)})):Object.keys(t).forEach((function(i){var o=t[i],s="".concat(r.path,".").concat(i);r.visitedPaths.has(s)?o instanceof Object&&e(o,(0,n.default)({},r,{path:s})):a(s,r.extraDiff)}))};e.exports=o},function(e,t,r){"use strict";var n=r(69),i=r(2);e.exports=function(e,t,r,o,a){return Object.keys(r).forEach((function(e){var r=o[e];i(void 0!==r,"createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",e,t)})),new n(e,r,o,a)}},function(e,t,r){"use strict";var n=r(3),i=n(r(5)),o=n(r(40)),a=r(17),s=r(18),u=r(0),l=r(41),c=r(2),d=r(42).getPromiseForActiveRequest,f=r(12).createRequestDescriptor,p=r(11),h=p.areEqualSelectors,_=p.createReaderSelector,v=p.getSelectorsFromObject,g=function(){function e(e,t,r,n){var i=this;(0,o.default)(this,"_onChange",(function(){i._stale=!0,"function"==typeof i._callback&&i._callback()})),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&b(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],o=t[r];if(n){var a=n.resolve();(e||a!==o)&&((e=e||(0,i.default)({},t))[r]=a)}else{var s=this._props[r],u=void 0!==s?s:null;!e&&l(u,o)||((e=e||(0,i.default)({},t))[r]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=v(this._fragments,e);for(var r in this._props={},t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):"PluralReaderSelector"===n.kind?null==i?i=new y(this._context.environment,n,this._onChange):(i instanceof y||u(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.",r),i.setSelector(n)):null==i?i=new m(this._context.environment,n,this._onChange):(i instanceof m||u(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.",r),i.setSelector(n)),this._props[r]=e[r],this._resolvers[r]=i}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),m=function(){function e(e,t,r){var n=this;(0,o.default)(this,"_onChange",(function(e){n._data=e.data,n._isMissingData=e.isMissingData,n._callback()}));var i=e.lookup(t);this._callback=r,this._data=i.data,this._isMissingData=i.isMissingData,this._environment=e,this._selector=t,this._subscription=e.subscribe(i,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===a.ENABLE_RELAY_CONTAINERS_SUSPENSE&&!0===this._isMissingData){var e,t=null!==(e=d(this._environment,this._selector.owner))&&void 0!==e?e:this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);if(null!=t)throw c(!1,"Relay: Relay Container for fragment `%s` suspended. When using features such as @defer or @module, use `useFragment` instead of a Relay Container.",this._selector.node.name),t}return this._data},t.setSelector=function(e){if(null==this._subscription||!h(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=t.data,this._isMissingData=t.isMissingData,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!s(e,this._selector.variables)){var r=f(t,e),n=_(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),y=function(){function e(e,t,r){var n=this;(0,o.default)(this,"_onChange",(function(e){n._stale=!0,n._callback()})),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelector(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(b)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],i=this._resolvers[r].resolve();(e||i!==n)&&(e=e||t.slice(0,r)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelector=function(e){for(var t=e.selectors;this._resolvers.length>t.length;){this._resolvers.pop().dispose()}for(var r=0;r<t.length;r++)r<this._resolvers.length?this._resolvers[r].setSelector(t[r]):this._resolvers[r]=new m(this._environment,t[r],this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach((function(r){return r.setVariables(e,t)})),this._stale=!0},e}();function b(e){e&&e.dispose()}e.exports=g},function(e,t,r){"use strict";var n=r(3)(r(5)),i=r(1),o=i.getModuleComponentKey,a=i.getModuleOperationKey;e.exports=function(e,t,r,i){var s=(0,n.default)({},i);return s[o(e)]=r,s[a(e)]=t,s}},function(e,t,r){"use strict";var n,i,o=r(0);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&o(!1,"[createRelayContext]: You passing a different instance of React",e.version),n}},function(e,t,r){"use strict";var n=r(12).createOperationDescriptor,i=r(8).getRequest;e.exports=function(e,t,r,o){var a=i(t);if("query"!==a.params.operationKind)throw new Error("fetchQuery: Expected query operation");var s=n(a,r);return e.execute({operation:s,cacheConfig:o}).map((function(){return e.lookup(s.fragment).data})).toPromise()}},function(e,t,r){"use strict";var n=r(9),i=r(11),o=i.getDataIDsFromFragment,a=i.getVariablesFromFragment,s=i.getSelector;e.exports=function(e,t){var r,i=s(e,t),u=null==i?"null":"SingularReaderSelector"===i.kind?i.owner.identifier:"["+i.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",l=a(e,t),c=o(e,t);return u+"/"+e.name+"/"+JSON.stringify(n(l))+"/"+(null!==(r=JSON.stringify(c))&&void 0!==r?r:"missing")}},function(e,t,r){"use strict";var n=r(0),i=r(8).getInlineDataFragment,o=r(1).FRAGMENTS_KEY;e.exports=function(e,t){var r,a=i(e);if(null==t)return t;"object"!=typeof t&&n(!1,"readInlineData(): Expected an object, got `%s`.",typeof t);var s=null===(r=t[o])||void 0===r?void 0:r[a.name];return null==s&&n(!1,"readInlineData(): Expected fragment `%s` to be spread in the parent fragment.",a.name),s}},function(e,t,r){"use strict";var n=r(16),i=r(2),o=r(8).getRequest,a=r(12).createOperationDescriptor;e.exports=function(e,t){var r=o(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var s=t.configs,u=t.onCompleted,l=t.onError,c=t.onNext,d=t.variables,f=a(r,d);i(!(t.updater&&s),"requestSubscription: Expected only one of `updater` and `configs` to be provided");var p=(s?n.convert(s,r,null,t.updater):t).updater;return{dispose:e.execute({operation:f,updater:p}).map((function(){return e.lookup(f.fragment).data})).subscribe({next:c,error:l,complete:u}).unsubscribe}}}])}));
|
|
4
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/ErrorUtils")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual","@babel/runtime/helpers/toConsumableArray","fbjs/lib/ErrorUtils"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/ErrorUtils")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/ErrorUtils"])}(window,(function(e,t,r,n,i,a,o){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=48)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(2)(r(15)),i=r(5),a=r(23),o=r(0),s=r(11),l=i.VARIABLE,u=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function f(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||o(!1,"getVariableValue(): Undefined variable `%s`.",e),s(t[e])}(e.variableName,t);if(e.kind===u)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=f(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(f(e,t))})),n}}function p(e,t){var r={};return e.forEach((function(e){r[e.name]=f(e,t)})),r}function h(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,a=t[n];if(null!=a)r.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var _={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"__isWithinUnmatchedTypeRefinement",formatStorageKey:h,getArgumentValue:f,getArgumentValues:p,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,o=e.key,s=e.name,l=e.args,u=e.filters,c=a(i,o,s),d=null;return l&&u&&0!==l.length&&0!==u.length&&(d=l.filter((function(e){return u.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,n.default)(d)):[r]),null===d?c:h(c,p(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?h(n,p(r,t)):n},getStableStorageKey:function(e,t){return h(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=_},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FLIGHT_FIELD:"FlightField",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",VARIABLE:"Variable"}},function(e,t,r){"use strict";var n=r(2)(r(4));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 a(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,n.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 o=r(10),s=r(16),l=r(0),u=r(3),c=r(7).isClientID,d=r(1),f=d.ID_KEY,p=d.REF_KEY,h=d.REFS_KEY,_=d.TYPENAME_KEY,g=d.INVALIDATED_AT_KEY,v=d.ROOT_ID;function y(e){return e[f]}function m(e){return e[_]}e.exports={clone:function(e){return a({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==f&&r!==_&&(t[r]=e[r])},create:function(e,t){var r={};return r[f]=e,r[_]=t,r},freeze:function(e){s(e)},getDataID:y,getInvalidationEpoch:function(e){if(null==e)return null;var t=e[g];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[p]||l(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.",e[f],t,JSON.stringify(r)),r[p])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[h])||l(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.",e[f],t,JSON.stringify(r)),r[h])},getType:m,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(p)||r.hasOwnProperty(h))&&l(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[f],t,r.hasOwnProperty(p)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,i=y(e),a=y(t);u(i===a,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",i,a);var o=null!==(r=m(e))&&void 0!==r?r:null,s=null!==(n=m(t))&&void 0!==n?n:null;return u(c(a)&&a!==v||o===s,"RelayModernRecord: Invalid record merge, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,_,o,s),Object.assign({},e,t)},setValue:function(e,t,r){var n=y(e);if(t===f)u(n===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",n,r);else if(t===_){var i,a=null!==(i=m(e))&&void 0!==i?i:null,o=null!=r?r:null;u(c(y(e))&&y(e)!==v||a===o,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",n,_,a,o)}e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[p]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[h]=r,e[t]=n},update:function(e,t){var r,n,i=y(e),s=y(t);u(i===s,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",i,s);var l=null!==(r=m(e))&&void 0!==r?r:null,d=null!==(n=m(t))&&void 0!==n?n:null;u(c(s)&&s!==v||l===d,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,_,l,d);for(var f=null,p=Object.keys(t),h=0;h<p.length;h++){var g=p[h];!f&&o(e[g],t[g])||((f=null!==f?f:a({},e))[g]=t[g])}return null!==f?f:e}}},function(e,t,r){"use strict";var n=0;e.exports={generateClientID:function(e,t,r){var n=e+":"+t;return null!=r&&(n+=":"+r),0!==n.indexOf("client:")&&(n="client:"+n),n},generateUniqueClientID:function(){return"".concat("client:","local:").concat(n++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!1,ENABLE_RELAY_CONTAINERS_SUSPENSE:!1,ENABLE_PRECISE_TYPE_REFINEMENT:!1,ENABLE_REACT_FLIGHT_COMPONENT_FIELD:!1,ENABLE_REQUIRED_DIRECTIVES:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1}},function(e,t,r){"use strict";var n=r(5),i=r(0),a=r(3);function o(e){var t=e;return"function"==typeof t?(t=t(),a(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===t.kind?t.name:t.operation.name)):t.default&&(t=t.default),t}function s(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function l(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function u(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function c(e){var t=o(e);return s(t)||i(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:c,getNode:o,getPaginationFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=o(e);return l(t)||i(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getInlineDataFragment:function(e){var t=o(e);return u(t)||i(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(t)),t},graphql:function(e){i(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:s,isRequest:l,isInlineDataFragment:u}},function(e,t){e.exports=i},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},i=0;i<r.length;i++)n[r[i]]=e(t[r[i]]);return n}},function(e,t,r){"use strict";var n=r(33),i=function(e,t){},a=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(e));this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?o(e):n(e)?s(e):l(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}}))},t.concat=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},t.do=function(t){var r=this;return e.create((function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},t.finally=function(t){var r=this;return e.create((function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}}))},t.ifEmpty=function(t){var r=this;return e.create((function(e){var n=!1,i=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():i=t.subscribe(e)}});return function(){i.unsubscribe()}}))},t.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;var l=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(l)}catch(e){l.error(e,!0)}if(void 0!==r&&"function"!=typeof r&&(!r||"function"!=typeof r.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(r));n&&o();return s}(this._source,e)},t.map=function(t){var r=this;return e.create((function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}}))},t.mergeMap=function(t){var r=this;return e.create((function(n){var i=[];function a(e){this._sub=e,i.push(e)}function o(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;if("number"!=typeof t||t<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+t);return e.create((function(e){var n,i;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},t.toPromise=function(){var e=this;return new Promise((function(t,r){var n=!1;e.subscribe({next:function(e){n||(n=!0,t(e))},error:r,complete:t})}))},e}();function o(e){return e instanceof a?e:a.create((function(t){return e.subscribe(t)}))}function s(e){return a.create((function(t){e.then((function(e){t.next(e),t.complete()}),t.error)}))}function l(e){return a.create((function(t){t.next(e),t.complete()}))}a.onUnhandledError((function(e,t){"function"==typeof fail?fail(String(e)):t?setTimeout((function(){throw e})):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)})),e.exports=a},function(e,t,r){"use strict";var n=r(10),i=r(0),a=r(3),o=r(24).getFragmentVariables,s=r(1),l=s.FRAGMENT_OWNER_KEY,u=s.FRAGMENTS_KEY,c=s.ID_KEY,d=s.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT;function f(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c],n=t[u],s=t[l],f=!0===t[d];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof s&&null!==s){var p=s,h=n[e.name];return b(e,r,o(e,p.variables,h),p,f)}var _=JSON.stringify(t);return _.length>499&&(_=_.substr(0,498)+"…"),a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,_,e.name),null}function p(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?f(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function h(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),p(e,t)):(Array.isArray(t)&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),f(e,t))}function _(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),function(e,t){var r=null;return t.forEach((function(t){var n=null!=t?g(e,t):null;null!=n&&(r=r||[]).push(n)})),r}(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),g(e,t))}function g(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c];return"string"==typeof r?r:(a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(t),e.name,e.name),null)}function v(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),m(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),y(e,t)||{})}function y(e,t){var r=f(e,t);return r?r.variables:null}function m(e,t){var r={};return t.forEach((function(t,n){if(null!=t){var i=y(e,t);null!=i&&Object.assign(r,i)}})),r}function b(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,node:e,variables:r,owner:n}}e.exports={areEqualSelectors:function(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&n(e.variables,t.variables)},createReaderSelector:b,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:_,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=_(i,a)}return r},getSingularSelector:f,getPluralSelector:p,getSelector:h,getSelectorsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=h(i,a)}return r},getVariablesFromSingularFragment:y,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=v(e[n],t[n]);Object.assign(r,i)}return r}}},function(e,t,r){"use strict";var n=r(16),i=r(40),a=r(24).getOperationVariables,o=r(13),s=o.createNormalizationSelector,l=o.createReaderSelector,u=r(1).ROOT_ID;function c(e,t,r){var a={identifier:i(e.params,t),node:e,variables:t,cacheConfig:r};return n(t),Object.freeze(e),Object.freeze(a),a}e.exports={createOperationDescriptor:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,i=e.operation,o=a(i,t),d=c(e,o,r),f={fragment:l(e.fragment,n,o,d),request:d,root:s(i,n,o)};return Object.freeze(f.fragment),Object.freeze(f.root),Object.freeze(f),f},createRequestDescriptor:c}},function(e,t){e.exports=a},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t}},function(e,t,r){"use strict";var n=r(53),i=function(){function e(t){return e.create(t)}return e.create=function(e){return new n(e)},e}();e.exports=i},function(e,t,r){"use strict";var n=r(0),i=r(6).getType;e.exports={REACT_FLIGHT_QUERIES_STORAGE_KEY:"queries",REACT_FLIGHT_TREE_STORAGE_KEY:"tree",REACT_FLIGHT_TYPE_NAME:"ReactFlightComponent",getReactFlightClientResponse:function(e){"ReactFlightComponent"!==i(e)&&n(!1,"getReactFlightClientResponse(): Expected a ReactFlightComponentRecord, got %s.",e);var t=e.tree;return null!=t?t:null},refineToReactFlightPayloadData:function(e){return null!=e&&"object"==typeof e&&Array.isArray(e.tree)&&Array.isArray(e.queries)?e:null}}},function(e,t,r){"use strict";var n=r(28),i=r(23),a=r(0),o=r(3),s=r(7).generateClientID,l="__connection_next_edge_index";function u(e,t,r){if(null==r)return r;var i=n.get().EDGES,o=t.getValue(l);"number"!=typeof o&&a(!1,"ConnectionHandler: Expected %s to be a number, got `%s`.",l,o);var u=s(t.getDataID(),i,o),c=e.create(u,r.getType());return c.copyFieldsFrom(r),t.setValue(o+1,l),c}function c(e,t,r){for(var i=n.get().NODE,a=0;a<e.length;a++){var o=e[a];if(o){var s=o.getLinkedRecord(i),l=s&&s.getDataID();if(l){if(r.has(l))continue;r.add(l)}t.push(o)}}}e.exports={buildConnectionEdge:u,createEdge:function(e,t,r,i){var a=n.get().NODE,o=s(t.getDataID(),r.getDataID()),l=e.get(o);return l||(l=e.create(o,i)),l.setLinkedRecord(r,a),l},deleteNode:function(e,t){var r=n.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var s,l=0;l<o.length;l++){var u=o[l],c=u&&u.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=o.slice(0,l)):void 0!==s&&s.push(u)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i("connection",t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var l;if(null==r)l=s.concat(t);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];if(l.push(d),null!=d)r===d.getValue(a)&&(l.push(t),u=!0)}u||l.push(t)}e.setLinkedRecords(l,o)}else e.setLinkedRecords([t],o)},insertEdgeBefore:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var l;if(null==r)l=[t].concat(s);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];if(null!=d)r===d.getValue(a)&&(l.push(t),u=!0);l.push(d)}u||l.unshift(t)}e.setLinkedRecords(l,o)}else e.setLinkedRecords([t],o)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),a=i.EDGES,d=i.END_CURSOR,f=i.HAS_NEXT_PAGE,p=i.HAS_PREV_PAGE,h=i.PAGE_INFO,_=i.PAGE_INFO_TYPE,g=i.START_CURSOR,v=r.getLinkedRecord(t.fieldKey),y=v&&v.getLinkedRecord(h);if(v){var m=s(r.getDataID(),t.handleKey),b=r.getLinkedRecord(t.handleKey),E=null!=b?b:e.get(m),R=E&&E.getLinkedRecord(h);if(E){null==b&&r.setLinkedRecord(E,t.handleKey);var D=E,I=v.getLinkedRecords(a);I&&(I=I.map((function(t){return u(e,D,t)})));var S=D.getLinkedRecords(a),O=D.getLinkedRecord(h);D.copyFieldsFrom(v),S&&D.setLinkedRecords(S,a),O&&D.setLinkedRecord(O,h);var k=[],T=t.args;if(S&&I)if(null!=T.after){if(!R||T.after!==R.getValue(d))return void o(!1,"Relay: Unexpected after cursor `%s`, edges must be fetched from the end of the list (`%s`).",T.after,R&&R.getValue(d));var P=new Set;c(S,k,P),c(I,k,P)}else if(null!=T.before){if(!R||T.before!==R.getValue(g))return void o(!1,"Relay: Unexpected before cursor `%s`, edges must be fetched from the beginning of the list (`%s`).",T.before,R&&R.getValue(g));var F=new Set;c(I,k,F),c(S,k,F)}else k=I;else k=I||S;if(null!=k&&k!==S&&D.setLinkedRecords(k,a),R&&y)if(null==T.after&&null==T.before)R.copyFieldsFrom(y);else if(null!=T.before||null==T.after&&T.last){R.setValue(!!y.getValue(p),p);var A=y.getValue(g);"string"==typeof A&&R.setValue(A,g)}else if(null!=T.after||null==T.before&&T.first){R.setValue(!!y.getValue(f),f);var w=y.getValue(d);"string"==typeof w&&R.setValue(w,d)}}else{var N=e.create(m,v.getType());N.setValue(0,l),N.copyFieldsFrom(v);var x=v.getLinkedRecords(a);x&&(x=x.map((function(t){return u(e,N,t)})),N.setLinkedRecords(x,a)),r.setLinkedRecord(N,t.handleKey),(R=e.create(s(N.getDataID(),h),_)).setValue(!1,f),R.setValue(!1,p),R.setValue(null,d),R.setValue(null,g),y&&R.copyFieldsFrom(y),N.setLinkedRecord(R,h)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function i(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 a=r(19),o=r(3),s=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),l=Object.freeze({APPEND:"append",PREPEND:"prepend"});function u(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:s,RangeOperations:l,convert:function(e,t,r,i){var s=r?[r]:[],l=i?[i]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=u(t);if(!n)return null;return function(e,t){var i=e.getRootField(n);if(i){var a=i.getValue(r);(Array.isArray(a)?a:[a]).forEach((function(t){t&&"string"==typeof t&&e.delete(t)}))}}}(e,t);r&&(s.push(r),l.push(r));break;case"RANGE_ADD":var i=function(e,t){var r=e.parentID,i=e.connectionInfo,s=e.edgeName;if(!r)return o(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_ADD to work you must include a parentID"),null;var l=u(t);if(!i||!l)return null;return function(e,t){var u=e.get(r);if(u){var c=e.getRootField(l);if(c){var d,f=c.getLinkedRecord(s),p=n(i);try{for(p.s();!(d=p.n()).done;){var h=d.value;if(f){var _=a.getConnection(u,h.key,h.filters);if(_){var g=a.buildConnectionEdge(e,_,f);if(g)switch(h.rangeBehavior){case"append":a.insertEdgeAfter(_,g);break;case"prepend":a.insertEdgeBefore(_,g);break;default:o(!1,"RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` will not work as expected in RelayModern, supported range behaviors are 'append', 'prepend'.",h.rangeBehavior)}}}}}catch(e){p.e(e)}finally{p.f()}}}}}(e,t);i&&(s.push(i),l.push(i));break;case"RANGE_DELETE":var c=function(e,t){var r=e.parentID,i=e.connectionKeys,s=e.pathToConnection,l=e.deletedIDFieldName;if(!r)return o(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE to work you must include a parentID"),null;var c=u(t);if(!c)return null;return function(e,t){if(t){var u=[],d=t[c];if(d&&Array.isArray(l)){var f,p=n(l);try{for(p.s();!(f=p.n()).done;){var h=f.value;d&&"object"==typeof d&&(d=d[h])}}catch(e){p.e(e)}finally{p.f()}Array.isArray(d)?d.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&u.push(e.id)})):d&&d.id&&"string"==typeof d.id&&u.push(d.id)}else d&&"string"==typeof l&&"object"==typeof d&&("string"==typeof(d=d[l])?u.push(d):Array.isArray(d)&&d.forEach((function(e){"string"==typeof e&&u.push(e)})));!function(e,t,r,i,s){o(null!=t,"RelayDeclarativeMutationConfig: RANGE_DELETE must provide a connectionKeys");var l=i.get(e);if(!l)return;if(r.length<2)return void o(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection must include at least parent and connection");for(var u=l,c=1;c<r.length-1;c++)u&&(u=u.getLinkedRecord(r[c]));if(!t||!u)return void o(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection is incorrect. Unable to find connection with parentID: %s and path: %s",e,r.toString());var d,f=n(t);try{var p=function(){var e=d.value,t=a.getConnection(u,e.key,e.filters);t&&s.forEach((function(e){a.deleteNode(t,e)}))};for(f.s();!(d=f.n()).done;)p()}catch(e){f.e(e)}finally{f.f()}}(r,i,s,e,u)}}}(e,t);c&&(s.push(c),l.push(c))}})),{optimisticUpdater:function(e,t){s.forEach((function(r){r(e,t)}))},updater:function(e,t){l.forEach((function(r){r(e,t)}))}}}}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";e.exports={generateTypeID:function(e){return"client:__type:"+e},isTypeID:function(e){return 0===e.indexOf("client:__type:")},TYPE_SCHEMA_TYPE:"__TypeSchema"}},function(e,t,r){"use strict";var n=r(0),i=r(29).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(2)(r(4));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 a=r(0);e.exports={getFragmentVariables:function(e,t,r){var o;return e.argumentDefinitions.forEach((function(s){if(!r.hasOwnProperty(s.name))switch(o=o||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,n.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}({},r),s.kind){case"LocalArgument":o[s.name]=s.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(s.name)){o[s.name]=void 0;break}o[s.name]=t[s.name];break;default:a(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",s.kind,e.name)}})),o||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach((function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n})),r}}},function(e,t,r){"use strict";function n(){}var i={"*":[]},a={"*":[]},o={},s={stop:n},l={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=l.instrument(t[r],e[r]))},instrument:function(e,t){i.hasOwnProperty(e)||(i[e]=[]);var r=i["*"],n=i[e],a=[],s=[],l=function i(){var o=s[s.length-1];o[0]?(o[0]--,r[o[0]](e,i)):o[1]?(o[1]--,n[o[1]](e,i)):o[2]?(o[2]--,a[o[2]](e,i)):o[5]=t.apply(o[3],o[4])},c=function(){var e;if(0===n.length&&0===a.length&&0===r.length)e=t.apply(this,arguments);else{s.push([r.length,n.length,a.length,this,arguments,o]),l();var i=s.pop();if((e=i[5])===o)throw new Error("RelayProfiler: Handler did not invoke original function.")}return e};return c.attachHandler=function(e){a.push(e)},c.detachHandler=function(e){u(a,e)},c.displayName="(instrumented "+e+")",c},attachAggregateHandler:function(e,t){i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t)},detachAggregateHandler:function(e,t){i.hasOwnProperty(e)&&u(i[e],t)},profile:function(e,t){var r=a["*"].length>0,n=a.hasOwnProperty(e);if(n||r){for(var i,o=n&&r?a[e].concat(a["*"]):n?a[e]:a["*"],l=o.length-1;l>=0;l--){var u=(0,o[l])(e,t);(i=i||[]).unshift(u)}return{stop:function(e){i&&i.forEach((function(t){return t(e)}))}}}return s},attachProfileHandler:function(e,t){a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t)},detachProfileHandler:function(e,t){a.hasOwnProperty(e)&&u(a[e],t)}};function u(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}e.exports=l},function(e,t,r){"use strict";var n=r(5),i=n.REQUEST,a=n.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case i:return e.operation;case a:default:return e}}},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},i={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},a={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return n.hasOwnProperty(e.name)}};e.exports=a},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function i(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 a=r(19),o=r(0),s=r(3),l={update:function(e,t){var r=e.get(t.dataID);if(null!=r){var n=r.getValue(t.fieldKey);"string"==typeof n?e.delete(n):Array.isArray(n)&&n.forEach((function(t){"string"==typeof t&&e.delete(t)}))}}},u={update:function(e,t){var r=e.get(t.dataID);if(null!=r){var i=t.handleArgs.connections;null==i&&o(!1,"MutationHandlers: Expected connection IDs to be specified.");var l=r.getValue(t.fieldKey);(Array.isArray(l)?l:[l]).forEach((function(t){if("string"==typeof t){var r,o=n(i);try{for(o.s();!(r=o.n()).done;){var l=r.value,u=e.get(l);null!=u?a.deleteNode(u,t):s(!1,"[Relay][Mutation] The connection with id '".concat(l,"' doesn't exist."))}}catch(e){o.e(e)}finally{o.f()}}}))}}},c={update:h(a.insertEdgeAfter)},d={update:h(a.insertEdgeBefore)},f={update:_(a.insertEdgeAfter)},p={update:_(a.insertEdgeBefore)};function h(e){return function(t,r){var i=t.get(r.dataID);if(null!=i){var l=r.handleArgs.connections;null==l&&o(!1,"MutationHandlers: Expected connection IDs to be specified.");var u,c=i.getLinkedRecord(r.fieldKey,r.args),d=n(l);try{for(d.s();!(u=d.n()).done;){var f=u.value,p=t.get(f);if(null!=p){var h=a.buildConnectionEdge(t,p,c);null==h&&o(!1,"MutationHandlers: Failed to build the edge."),e(p,h)}else s(!1,"[Relay][Mutation] The connection with id '".concat(f,"' doesn't exist."))}}catch(e){d.e(e)}finally{d.f()}}}}function _(e){return function(t,r){var i,l=t.get(r.dataID);if(null!=l){var u,c,d=r.handleArgs,f=d.connections,p=d.edgeTypeName;null==f&&o(!1,"MutationHandlers: Expected connection IDs to be specified."),null==p&&o(!1,"MutationHandlers: Expected edge typename to be specified.");try{u=l.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!u)try{c=l.getLinkedRecords(r.fieldKey,r.args)}catch(e){}null==u&&null==c&&o(!1,"MutationHandlers: Expected target node to exist.");var h,_=n(null!==(i=c)&&void 0!==i?i:[u]);try{for(_.s();!(h=_.n()).done;){var g=h.value;if(null!=g){var v,y=n(f);try{for(y.s();!(v=y.n()).done;){var m=v.value,b=t.get(m);if(null!=b){var E=a.createEdge(t,b,g,p);null==E&&o(!1,"MutationHandlers: Failed to build the edge."),e(b,E)}else s(!1,"[Relay][Mutation] The connection with id '".concat(m,"' doesn't exist."))}}catch(e){y.e(e)}finally{y.f()}}}}catch(e){_.e(e)}finally{_.f()}}}}e.exports={AppendEdgeHandler:c,DeleteRecordHandler:l,PrependEdgeHandler:d,AppendNodeHandler:f,PrependNodeHandler:p,DeleteEdgeHandler:u}},function(e,t,r){"use strict";var n=r(19),i=r(30),a=r(0);e.exports=function(e){switch(e){case"connection":return n;case"deleteRecord":return i.DeleteRecordHandler;case"deleteEdge":return i.DeleteEdgeHandler;case"appendEdge":return i.AppendEdgeHandler;case"prependEdge":return i.PrependEdgeHandler;case"appendNode":return i.AppendNodeHandler;case"prependNode":return i.PrependNodeHandler}a(!1,"RelayDefaultHandlerProvider: No handler provided for `%s`.",e)}},function(e,t,r){"use strict";function n(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),a=3;a<n;a++)i[a-3]=arguments[a];var o=0,s=r.replace(/%s/g,(function(){return String(i[o++])})),l=new Error(s),u=Object.assign(l,{name:t,messageFormat:r,messageParams:i,type:e,taalOpcodes:[2,2]});if(void 0===u.stack)try{throw u}catch(e){}return u}e.exports={create:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["error",e,t].concat(i))},createWarning:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["warn",e,t].concat(i))}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function i(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 a=r(0),o=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r,i=new Set,a=n(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=this._ownersToPendingOperations.get(o);null!=s?s.has(e)||(s.add(e),i.add(o)):(this._ownersToPendingOperations.set(o,new Set([e])),i.add(o))}}catch(e){a.e(e)}finally{a.f()}if(0!==i.size){var l,u=this._pendingOperationsToOwners.get(e)||new Set,c=n(i);try{for(c.s();!(l=c.n()).done;){var d=l.value;this._resolveOwnerResolvers(d),u.add(d)}}catch(e){c.e(e)}finally{c.f()}this._pendingOperationsToOwners.set(e,u)}}},t.complete=function(e){var t=this._pendingOperationsToOwners.get(e);if(null!=t){var r,i=new Set,a=new Set,o=n(t);try{for(o.s();!(r=o.n()).done;){var s=r.value,l=this._ownersToPendingOperations.get(s);l&&(l.delete(e),l.size>0?a.add(s):i.add(s))}}catch(e){o.e(e)}finally{o.f()}var u,c=n(i);try{for(c.s();!(u=c.n()).done;){var d=u.value;this._resolveOwnerResolvers(d),this._ownersToPendingOperations.delete(d)}}catch(e){c.e(e)}finally{c.f()}var f,p=n(a);try{for(p.s();!(f=p.n()).done;){var h=f.value;this._resolveOwnerResolvers(h)}}catch(e){p.e(e)}finally{p.f()}this._pendingOperationsToOwners.delete(e)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPromise.get(e);null!=t&&t.resolve(),this._ownersToPromise.delete(e)},t.getPromiseForPendingOperationsAffectingOwner=function(e){if(!this._ownersToPendingOperations.has(e))return null;var t,r=this._ownersToPromise.get(e);if(null!=r)return r.promise;var n=new Promise((function(e){t=e}));return null==t&&a(!1,"RelayOperationTracker: Expected resolver to be defined. If youare seeing this, it is likely a bug in Relay."),this._ownersToPromise.set(e,{promise:n,resolve:t}),n},e}();e.exports=o},function(e,t,r){"use strict";var n=r(8),i=r(6),a=r(0),o=r(5),s=o.CLIENT_EXTENSION,l=o.CONDITION,u=o.DEFER,c=o.FLIGHT_FIELD,d=o.FRAGMENT_SPREAD,f=o.INLINE_DATA_FRAGMENT_SPREAD,p=o.INLINE_FRAGMENT,h=o.LINKED_FIELD,_=o.MODULE_IMPORT,g=o.REQUIRED_FIELD,v=o.SCALAR_FIELD,y=o.STREAM,m=r(18).getReactFlightClientResponse,b=r(1),E=b.FRAGMENTS_KEY,R=b.FRAGMENT_OWNER_KEY,D=b.FRAGMENT_PROP_NAME_KEY,I=b.ID_KEY,S=b.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,O=b.MODULE_COMPONENT_KEY,k=b.ROOT_ID,T=b.getArgumentValues,P=b.getStorageKey,F=b.getModuleComponentKey,A=r(22).generateTypeID;var w=function(){function e(e,t){this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords={},this._selector=t,this._variables=t.variables}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID,a=e.isWithinUnmatchedTypeRefinement,o=t.abstractKey,s=this._recordSource.get(r),l=!a;l&&null==o&&null!=s&&(i.getType(s)!==t.type&&r!==k&&(l=!1));if(l&&null!=o&&null!=s&&n.ENABLE_PRECISE_TYPE_REFINEMENT){var u=i.getType(s),c=A(u),d=this._recordSource.get(c),f=null!=d?i.getValue(d,o):null;!1===f?l=!1:null==f&&(this._isMissingData=!0)}return this._isWithinUnmatchedTypeRefinement=!l,{data:this._traverse(t,r,null),isMissingData:this._isMissingData&&l,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i)?i:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||a(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t,r){var n;if("THROW"!==(null===(n=this._missingRequiredFields)||void 0===n?void 0:n.action)){var i=this._selector.node.name;switch(t){case"THROW":return void(this._missingRequiredFields={action:t,field:{path:e,owner:i}});case"LOG":return null==this._missingRequiredFields&&(this._missingRequiredFields={action:t,fields:[]}),void this._missingRequiredFields.fields.push({path:e,owner:i})}}},t._traverseSelections=function(e,t,r){for(var o=0;o<e.length;o++){var m=e[o];switch(m.kind){case g:if(n.ENABLE_REQUIRED_DIRECTIVES||a(!1,'RelayReader(): Encountered a `@required` directive at path "%s" in `%s` without the `ENABLE_REQUIRED_DIRECTIVES` feature flag enabled.',m.path,this._selector.node.name),null==this._readRequiredField(m,t,r)){var b=m.action;return"NONE"!==b&&this._maybeReportUnexpectedNull(m.path,b,t),!1}break;case v:this._readScalar(m,t,r);break;case h:m.plural?this._readPluralLink(m,t,r):this._readLink(m,t,r);break;case l:if(this._getVariableValue(m.condition)===m.passingValue)if(!this._traverseSelections(m.selections,t,r))return!1;break;case p:var E=m.abstractKey;if(null==E){var R=i.getType(t);if(null!=R&&R===m.type)if(!this._traverseSelections(m.selections,t,r))return!1}else if(n.ENABLE_PRECISE_TYPE_REFINEMENT){var D=this._isMissingData,I=this._isWithinUnmatchedTypeRefinement,S=i.getType(t),O=A(S),k=this._recordSource.get(O),T=null!=k?i.getValue(k,E):null;this._isWithinUnmatchedTypeRefinement=I||!1===T,this._traverseSelections(m.selections,t,r),this._isWithinUnmatchedTypeRefinement=I,!1===T?this._isMissingData=D:null==T&&(this._isMissingData=!0)}else this._traverseSelections(m.selections,t,r);break;case d:this._createFragmentPointer(m,t,r);break;case _:this._readModuleImport(m,t,r);break;case f:this._createInlineDataFragmentPointer(m,t,r);break;case u:case s:var P=this._isMissingData,F=this._traverseSelections(m.selections,t,r);if(this._isMissingData=P,!F)return!1;break;case y:if(!this._traverseSelections(m.selections,t,r))return!1;break;case c:if(!n.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(m,t,r);break;default:a(!1,"RelayReader(): Unexpected ast kind `%s`.",m.kind)}}return!0},t._readRequiredField=function(e,t,r){switch(e.field.kind){case v:return this._readScalar(e.field,t,r);case h:return e.field.plural?this._readPluralLink(e.field,t,r):this._readLink(e.field,t,r);default:e.field.kind,a(!1,"RelayReader(): Unexpected ast kind `%s`.",e.kind)}},t._readFlightField=function(e,t,r){var n,a=null!==(n=e.alias)&&void 0!==n?n:e.name,o=P(e,this._variables),s=i.getLinkedRecordID(t,o);if(null==s)return r[a]=s,void 0===s&&(this._isMissingData=!0),s;var l=this._recordSource.get(s);if(this._seenRecords[s]=l,null==l)return r[a]=l,void 0===l&&(this._isMissingData=!0),l;var u=m(l);return r[a]=u,u},t._readScalar=function(e,t,r){var n,a=null!==(n=e.alias)&&void 0!==n?n:e.name,o=P(e,this._variables),s=i.getValue(t,o);return void 0===s&&(this._isMissingData=!0),r[a]=s,s},t._readLink=function(e,t,r){var n,o=null!==(n=e.alias)&&void 0!==n?n:e.name,s=P(e,this._variables),l=i.getLinkedRecordID(t,s);if(null==l)return r[o]=l,void 0===l&&(this._isMissingData=!0),l;var u=r[o];null!=u&&"object"!=typeof u&&a(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",o,i.getDataID(t),u);var c=this._traverse(e,l,u);return r[o]=c,c},t._readPluralLink=function(e,t,r){var n,o=this,s=null!==(n=e.alias)&&void 0!==n?n:e.name,l=P(e,this._variables),u=i.getLinkedRecordIDs(t,l);if(null==u)return r[s]=u,void 0===u&&(this._isMissingData=!0),u;var c=r[s];null==c||Array.isArray(c)||a(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",s,i.getDataID(t),c);var d=c||[];return u.forEach((function(r,n){if(null==r)return void 0===r&&(o._isMissingData=!0),void(d[n]=r);var l=d[n];null!=l&&"object"!=typeof l&&a(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,i.getDataID(t),l),d[n]=o._traverse(e,r,l)})),r[s]=d,d},t._readModuleImport=function(e,t,r){var n=F(e.documentName),a=i.getValue(t,n);null!=a?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[D]=e.fragmentPropName,r[O]=a):void 0===a&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var o=r[E];null==o&&(o=r[E]={}),("object"!=typeof o||null==o)&&a(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",o),null==r[I]&&(r[I]=i.getDataID(t)),o[e.name]=e.args?T(e.args,this._variables):{},r[R]=this._owner,n.ENABLE_PRECISE_TYPE_REFINEMENT&&(r[S]=this._isWithinUnmatchedTypeRefinement)},t._createInlineDataFragmentPointer=function(e,t,r){var n=r[E];null==n&&(n=r[E]={}),("object"!=typeof n||null==n)&&a(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",n),null==r[I]&&(r[I]=i.getDataID(t));var o={};this._traverseSelections(e.selections,t,o),n[e.name]=o},e}();e.exports={read:function(e,t){return new w(e,t).read()}}},function(e,t,r){"use strict";var n=r(6),i=r(0),a=r(21).EXISTENT,o=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);if(void 0===r){if(null==t)return t;var i=n.clone(t);return n.freeze(i),i}if(null===r)return null;if(null!=t){var a=n.update(t,r);return a!==t&&n.freeze(a),a}var o=n.clone(r);return n.freeze(o),o},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),t=n.create(e,n.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),a=this._base.get(e);r||a||i(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e);var o=this._getSinkRecord(t);a&&n.copyFields(a,o),r&&n.copyFields(r,o)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===a||this._sink.getStatus(e)===a)&&i(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e);var r=n.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return n.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getValue(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setValue=function(e,t,r){var i=this._getSinkRecord(e);n.setValue(i,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordID(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordID=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordID(i,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordIDs(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordIDs=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordIDs(i,t,r)},e}();e.exports=o},function(e,t,r){"use strict";var n=r(6),i=r(57),a=r(0),o=r(21),s=o.EXISTENT,l=o.NONEXISTENT,u=r(1),c=u.ROOT_ID,d=u.ROOT_TYPE,f=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach((function(t){var i=e.getStatus(t);if(i===s){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==s&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else i===l&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||a(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||a(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===c&&a(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===s?new i(this,this.__mutator,e):t===l?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(c);return e||(e=this.create(c,d)),e&&e.getType()===d||a(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record, %s.",null==e?"no root record found":"found a root record of type `".concat(e.getType(),"`")),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},e}();e.exports=f},function(e,t,r){"use strict";var n=r(39),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},function(e,t,r){"use strict";var n=(0,r(7).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var n=r(0),i=r(11);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null==r&&n(!1,"getRequestIdentifier: Expected request `%s` to have either a valid `id` or `cacheID` property",e.name),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(10),i=r(0),a=r(5).LINKED_FIELD,o=r(1).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=o(e,r);return{kind:"LinkedField",alias:s.alias,name:l,storageKey:l,args:null,concreteType:s.concreteType,plural:s.plural,selections:s.selections}}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t in e)if(n.call(e,t))return!1;return!0}},function(e,t,r){"use strict";var n="undefined"!=typeof WeakSet,i="undefined"!=typeof WeakMap;e.exports=function e(t,r){if(t===r||"object"!=typeof t||t instanceof Set||t instanceof Map||n&&t instanceof WeakSet||i&&t instanceof WeakMap||!t||"object"!=typeof r||r instanceof Set||r instanceof Map||n&&r instanceof WeakSet||i&&r instanceof WeakMap||!r)return r;var a=!1,o=Array.isArray(t)?t:null,s=Array.isArray(r)?r:null;if(o&&s)a=s.reduce((function(t,r,n){var i=e(o[n],r);return i!==s[n]&&(Object.isFrozen(s)||(s[n]=i)),t&&i===o[n]}),!0)&&o.length===s.length;else if(!o&&!s){var l=t,u=r,c=Object.keys(l),d=Object.keys(u);a=d.reduce((function(t,r){var n=e(l[r],u[r]);return n!==u[r]&&(Object.isFrozen(u)||(u[r]=n)),t&&n===l[r]}),!0)&&c.length===d.length}return a?t:r}},function(e,t,r){"use strict";var n=r(2)(r(4)),i=r(12),a=r(0),o=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),(0,n.default)(this,"_subscription",null),this._observable=i.create((function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var i=r[n];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,a(!1,"RelayReplaySubject: Unknown event kind `%s`.",i.kind)}}return function(){e._sinks.delete(t)}}))}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(t){return t.error(e)})))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(t){return t.next(e)})))},t.subscribe=function(e){return this._subscription=this._observable.subscribe(e),this._subscription},t.unsubscribe=function(){this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t,r){"use strict";e.exports=function(e,t){switch(t.action){case"THROW":var r=t.field,n=r.path,i=r.owner;throw e.requiredFieldLogger({kind:"missing_field.throw",owner:i,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(i,"'."));case"LOG":t.fields.forEach((function(t){var r=t.path,n=t.owner;e.requiredFieldLogger({kind:"missing_field.log",owner:n,fieldPath:r})}));break;default:t.action}}},function(e,t,r){"use strict";var n=r(12),i=r(44),a=r(0),o="function"==typeof WeakMap?new WeakMap:new Map;function s(e,t,r){return n.create((function(o){var s=u(e),l=s.get(t);return l||r().finally((function(){return s.delete(t)})).subscribe({start:function(e){l={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e},s.set(t,l)},next:function(e){var r=c(s,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(s,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(s,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(s,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==l&&a(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously"),function(e,t){return n.create((function(r){var n=t.subject.subscribe(r);return function(){n.unsubscribe();var r=e.get(t.identifier);if(r){var i=r.subscription;null!=i&&0===r.subject.getObserverCount()&&(i.unsubscribe(),e.delete(t.identifier))}}}))}(s,l).subscribe(o)}))}function l(e,t,r){return n.create((function(t){var n=r.subjectForInFlightStatus.subscribe({error:t.error,next:function(n){e.isRequestActive(r.identifier)?t.next():t.complete()},complete:t.complete,unsubscribe:t.complete});return function(){n.unsubscribe()}}))}function u(e){var t=o.get(e);if(null!=t)return t;var r=new Map;return o.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&a(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),r}e.exports={fetchQuery:function(e,t){return s(e,t.request.identifier,(function(){return e.execute({operation:t})}))},fetchQueryDeduped:s,getPromiseForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?new Promise((function(t,r){var i=!1;l(e,0,n).subscribe({complete:t,error:r,next:function(e){i&&t(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?l(e,0,n):null}}},function(e,t,r){"use strict";var n=r(19),i=r(28),a=r(9),o=r(30),s=r(49),l=r(5),u=r(24),c=r(20),d=r(29),f=r(31),p=r(32),h=r(8),_=r(50),g=r(14),v=r(6),y=r(13),m=r(62),b=r(69),E=r(12),R=r(34),D=r(25),I=r(71),S=r(17),O=r(44),k=r(1),T=r(39),P=r(72),F=r(73),A=r(74),w=r(76),N=r(78),x=r(79),M=r(16),L=r(80),j=r(47),C=r(81),U=r(23),q=r(40),V=r(33),K=r(27),z=r(45),G=r(82),H=r(43),Y=r(46),Q=r(83),B=r(11),W=r(7),J=W.generateClientID,X=W.generateUniqueClientID,$=W.isClientID,Z="function"!=typeof Map?"Map":null,ee="function"!=typeof Set?"Set":null,te="function"!=typeof Promise?"Promise":null,re="function"!=typeof Object.assign?"Object.assign":null;if(Z||ee||te||re)throw new Error("relay-runtime requires ".concat([Z,ee,te,re].filter(Boolean).join(", and ")," to exist. ")+"Use a polyfill to provide these for older browsers.");e.exports={Environment:_,Network:b,Observable:E,QueryResponseCache:I,RecordSource:S,Record:v,ReplaySubject:O,Store:m,areEqualSelectors:y.areEqualSelectors,createFragmentSpecResolver:w,createNormalizationSelector:y.createNormalizationSelector,createOperationDescriptor:g.createOperationDescriptor,createReaderSelector:y.createReaderSelector,createRequestDescriptor:g.createRequestDescriptor,getDataIDsFromFragment:y.getDataIDsFromFragment,getDataIDsFromObject:y.getDataIDsFromObject,getNode:a.getNode,getFragment:a.getFragment,getInlineDataFragment:a.getInlineDataFragment,getModuleComponentKey:k.getModuleComponentKey,getModuleOperationKey:k.getModuleOperationKey,getPaginationFragment:a.getPaginationFragment,getPluralSelector:y.getPluralSelector,getRefetchableFragment:a.getRefetchableFragment,getRequest:a.getRequest,getRequestIdentifier:q,getSelector:y.getSelector,getSelectorsFromObject:y.getSelectorsFromObject,getSingularSelector:y.getSingularSelector,getStorageKey:k.getStorageKey,getVariablesFromFragment:y.getVariablesFromFragment,getVariablesFromObject:y.getVariablesFromObject,getVariablesFromPluralFragment:y.getVariablesFromPluralFragment,getVariablesFromSingularFragment:y.getVariablesFromSingularFragment,reportMissingRequiredFields:Y,graphql:a.graphql,isFragment:a.isFragment,isInlineDataFragment:a.isInlineDataFragment,isRequest:a.isRequest,readInlineData:G,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:f,ConnectionHandler:n,MutationHandlers:o,VIEWER_ID:T.VIEWER_ID,VIEWER_TYPE:T.VIEWER_TYPE,applyOptimisticMutation:P,commitLocalUpdate:F,commitMutation:A,fetchQuery:L,isRelayModernEnvironment:K,requestSubscription:Q,ConnectionInterface:i,PreloadableQueryRegistry:s,RelayProfiler:D,createPayloadFor3DField:N,RelayConcreteNode:l,RelayError:p,RelayFeatureFlags:h,DEFAULT_HANDLE_KEY:d.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:k.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:k.FRAGMENT_OWNER_KEY,ID_KEY:k.ID_KEY,REF_KEY:k.REF_KEY,REFS_KEY:k.REFS_KEY,ROOT_ID:k.ROOT_ID,ROOT_TYPE:k.ROOT_TYPE,TYPENAME_KEY:k.TYPENAME_KEY,deepFreeze:M,generateClientID:J,generateUniqueClientID:X,getRelayHandleKey:U,isClientID:$,isPromise:V,isScalarAndEqual:z,recycleNodesInto:H,stableCopy:B,getFragmentIdentifier:C,__internal:{OperationTracker:R,createRelayContext:x,getOperationVariables:u.getOperationVariables,fetchQuery:j.fetchQuery,fetchQueryDeduped:j.fetchQueryDeduped,getPromiseForActiveRequest:j.getPromiseForActiveRequest,getObservableForActiveRequest:j.getObservableForActiveRequest}}},function(e,t,r){"use strict";var n=new(function(){function e(){this._preloadableQueries=new Map,this._callbacks=new Map}var t=e.prototype;return t.set=function(e,t){this._preloadableQueries.set(e,t);var r=this._callbacks.get(e);null!=r&&r.forEach((function(e){try{e(t)}catch(e){setTimeout((function(){throw e}),0)}}))},t.get=function(e){return this._preloadableQueries.get(e)},t.onLoad=function(e,t){var r,n=null!==(r=this._callbacks.get(e))&&void 0!==r?r:new Set;n.add(t);return this._callbacks.set(e,n),{dispose:function(){n.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=n},function(e,t,r){"use strict";(function(t){var n=r(2)(r(4));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 a(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,n.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 o=r(31),s=r(8),l=r(52),u=r(12),c=r(34),d=r(55),f=r(17),p=r(38),h=r(59),_=r(60),g=r(0),v=function(){function e(e){var n,i,a,l,u,f,_,v=this;this.configName=e.configName;var m=e.handlerProvider?e.handlerProvider:o;this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var b=e.operationLoader,E=e.reactFlightPayloadDeserializer;null!=b&&("object"!=typeof b||"function"!=typeof b.get||"function"!=typeof b.load)&&g(!1,"RelayModernEnvironment: Expected `operationLoader` to be an object with get() and load() functions, got `%s`.",b),null!=E&&"function"!=typeof E&&g(!1,"RelayModernEnvironment: Expected `reactFlightPayloadDeserializer` to be a function, got `%s`.",E),this.__log=null!==(n=e.log)&&void 0!==n?n:y,this.requiredFieldLogger=null!==(i=e.requiredFieldLogger)&&void 0!==i?i:h,this._defaultRenderPolicy=(null!==(a=e.UNSTABLE_defaultRenderPolicy)&&void 0!==a?a:!0===s.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=b,this._operationExecutions=new Map,this._network=e.network,this._getDataID=null!==(l=e.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==l?l:p,this._publishQueue=new d(e.store,m,this._getDataID),this._scheduler=null!==(u=e.scheduler)&&void 0!==u?u:null,this._store=e.store,this.options=e.options,this._isServer=null!==(f=e.isServer)&&void 0!==f&&f,this.__setNet=function(e){return v._network=e};var R=r(61).inspect;this.DEBUG_inspect=function(e){return R(v,e)};var D=void 0!==t?t:"undefined"!=typeof window?window:void 0,I=D&&D.__RELAY_DEVTOOLS_HOOK__;I&&I.registerEnvironment(this),this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(_=e.operationTracker)&&void 0!==_?_:new c,this._reactFlightPayloadDeserializer=E}var n=e.prototype;return n.getStore=function(){return this._store},n.getNetwork=function(){return this._network},n.getOperationTracker=function(){return this._operationTracker},n.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},n.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},n.applyUpdate=function(e){var t=this;return this._scheduleUpdates((function(){t._publishQueue.applyUpdate(e),t._publishQueue.run()})),{dispose:function(){t._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))}}},n.revertUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))},n.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates((function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()}))},n.applyMutation=function(e){var t=this,r=u.create((function(r){var n=u.create((function(e){})),i=l.execute({operation:e.operation,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:e,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:r,source:n,store:t._store,updater:null,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({});return{dispose:function(){return r.unsubscribe()}}},n.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},n.commitPayload=function(e,t){var r=this;u.create((function(n){var i=l.execute({operation:e,operationExecutions:r._operationExecutions,operationLoader:r._operationLoader,optimisticConfig:null,publishQueue:r._publishQueue,reactFlightPayloadDeserializer:r._reactFlightPayloadDeserializer,scheduler:r._scheduler,sink:n,source:u.from({data:t}),store:r._store,updater:null,operationTracker:r._operationTracker,getDataID:r._getDataID,isClientPayload:!0,treatMissingFieldsAsNull:r._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({})},n.commitUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()}))},n.lookup=function(e){return this._store.lookup(e)},n.subscribe=function(e,t){return this._store.subscribe(e,t)},n.retain=function(e){return this._store.retain(e)},n.isServer=function(){return this._isServer},n._checkSelectorAndHandleMissingFields=function(e,t){var r=this,n=f.create(),i=this._store.check(e,{target:n,handlers:t});return n.size()>0&&this._scheduleUpdates((function(){r._publishQueue.commitSource(n),r._publishQueue.run()})),i},n._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},n.execute=function(e){var t=this,r=e.operation,n=e.updater,i=this.__createLogObserver(r.request.node.params,r.request.variables),a=i[0],o=i[1];return u.create((function(e){var i=t._network.execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null,o).do(a),s=l.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:i,store:t._store,updater:n,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return s.cancel()}}))},n.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,i=e.optimisticUpdater,o=e.updater,s=e.uploadables,c=this.__createLogObserver(r.request.node.params,r.request.variables),d=c[0],f=c[1];return u.create((function(e){var u;(n||i)&&(u={operation:r,response:n,updater:i});var c=t._network.execute(r.request.node.params,r.request.variables,a(a({},r.request.cacheConfig),{},{force:!0}),s,f).do(d),p=l.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:u,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:c,store:t._store,updater:o,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return p.cancel()}}))},n.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return u.create((function(e){var i=l.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:n,store:t._store,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}}))},n.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},n.__createLogObserver=function(e,t){var r=_(),n=this.__log;return[{start:function(i){n({name:"execute.start",transactionID:r,params:e,variables:t})},next:function(e){n({name:"execute.next",transactionID:r,response:e})},error:function(e){n({name:"execute.error",transactionID:r,error:e})},complete:function(){n({name:"execute.complete",transactionID:r})},unsubscribe:function(){n({name:"execute.unsubscribe",transactionID:r})}},function(e){n({name:"execute.info",transactionID:r,info:e})}]},e}();function y(){}v.prototype["@@RelayModernEnvironment"]=!0,e.exports=v}).call(this,r(51))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(2),i=n(r(4)),a=n(r(15));function o(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 s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 a,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function u(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 c=r(32),d=r(6),f=r(12),p=r(17),h=r(54),_=r(26),g=r(0),v=r(11),y=r(3),m=r(7).generateClientID,b=r(13).createNormalizationSelector,E=r(1),R=E.ROOT_TYPE,D=E.TYPENAME_KEY,I=E.getStorageKey;var S=function(){function e(e){var t=this,r=e.operation,n=e.operationExecutions,i=e.operationLoader,a=e.optimisticConfig,o=e.publishQueue,s=e.scheduler,l=e.sink,u=e.source,c=e.store,d=e.updater,f=e.operationTracker,p=e.treatMissingFieldsAsNull,h=e.getDataID,_=e.isClientPayload,g=e.reactFlightPayloadDeserializer;this._getDataID=h,this._treatMissingFieldsAsNull=p,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=r,this._operationExecutions=n,this._operationLoader=i,this._operationTracker=f,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._publishQueue=o,this._scheduler=s,this._sink=l,this._source=new Map,this._state="started",this._store=c,this._subscriptions=new Map,this._updater=d,this._isClientPayload=!0===_,this._reactFlightPayloadDeserializer=g;var v=this._nextSubscriptionId++;u.subscribe({complete:function(){return t._complete(v)},error:function(e){return t._error(e)},next:function(e){try{t._next(v,e)}catch(e){l.error(e)}},start:function(e){return t._start(v,e)}}),null!=a&&this._processOptimisticResponse(null!=a.response?{data:a.response}:null,a.updater,!1)}var t=e.prototype;return t.cancel=function(){var e=this;if("completed"!==this._state){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),0!==this._subscriptions.size&&(this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions.clear());var t=this._optimisticUpdates;null!==t&&(this._optimisticUpdates=null,t.forEach((function(t){return e._publishQueue.revertUpdate(t)})),this._publishQueue.run()),this._incrementalResults.clear(),this._completeOperationTracker(),this._retainDisposable&&(this._retainDisposable.dispose(),this._retainDisposable=null)}},t._updateActiveState=function(){var e;switch(this._state){case"started":case"loading_incremental":e="active";break;case"completed":e="inactive";break;case"loading_final":e=this._pendingModulePayloadsCount>0?"active":"inactive";break;default:this._state,g(!1,"RelayModernQueryExecutor: invalid executor state.")}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;f.create((function(t){var n=r.schedule((function(){try{e(),t.complete()}catch(e){t.error(e)}}));return function(){return r.cancel(n)}})).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e){this.cancel(),this._sink.error(e)},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this;this._schedule((function(){r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking()}))},t._handleErrorResponse=function(e){var t=this,r=[];return e.forEach((function(e){if(null!==e.data||null==e.extensions||e.hasOwnProperty("errors")){if(null==e.data){var n=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,i=n?n.map((function(e){return e.message})).join("\n"):"(No errors)",a=c.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+i+"\n\nSee the error `source` property for more information.");throw a.source={errors:n,operation:t._operation.request.node,variables:t._operation.request.variables},a.stack,a}var o=e;r.push(o)}})),r},t._handleOptimisticResponses=function(e){var t;if(e.length>1)return e.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic)}))&&g(!1,"Optimistic responses cannot be batched."),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&g(!1,"RelayModernQueryExecutor: optimistic payload received after server payload."),!!n&&(this._processOptimisticResponse(r,null,this._treatMissingFieldsAsNull),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){var t=Array.isArray(e)?e:[e],r=this._handleErrorResponse(t);if(0===r.length)return t.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.is_final)}))&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),void this._sink.next(e);if(!this._handleOptimisticResponses(r)){var n=function(e){var t=[],r=[];return e.forEach((function(e){if(null!=e.path||null!=e.label){var n=e.label,i=e.path;null!=n&&null!=i||g(!1,"RelayModernQueryExecutor: invalid incremental payload, expected `path` and `label` to either both be null/undefined, or `path` to be an `Array<string | number>` and `label` to be a `string`."),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(r),i=n[0],a=n[1];if(i.length>0){var o=this._processResponses(i),s=this._publishQueue.run(this._operation);this._updateOperationTracker(s),this._processPayloadFollowups(o),this._incrementalPayloadsPending&&!this._retainDisposable&&(this._retainDisposable=this._store.retain(this._operation))}if(a.length>0){var l=this._processIncrementalResponses(a),u=this._publishQueue.run();this._updateOperationTracker(u),this._processPayloadFollowups(l)}this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&g(!1,"environment.execute: only support one optimistic response per execute."),null!=e||null!=t){var i=[];if(e){var a=O(e,this._operation.root,R,{getDataID:this._getDataID,path:[],reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:r});k(a),i.push({operation:this._operation,payload:a,updater:t}),this._processOptimisticFollowups(a,i)}else t&&i.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,moduleImportPayloads:null,source:p.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach((function(e){return n._publishQueue.applyUpdate(e)})),this._publishQueue.run()}},t._processOptimisticFollowups=function(e,t){if(e.moduleImportPayloads&&e.moduleImportPayloads.length){var r=e.moduleImportPayloads,n=this._operationLoader;n||g(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`.");var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var s=i.value,u=n.get(s.operationReference);if(null==u)this._processAsyncOptimisticModuleImport(n,s);else{var c=this._processOptimisticModuleImport(u,s);t.push.apply(t,(0,a.default)(c))}}}catch(e){o.e(e)}finally{o.f()}}},t._normalizeModuleImport=function(e,t){var r=b(t,e.dataID,e.variables);return O({data:e.data},r,e.typeName,{getDataID:this._getDataID,path:e.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull})},t._processOptimisticModuleImport=function(e,t){var r=_(e),n=[],i=this._normalizeModuleImport(t,r);return k(i),n.push({operation:this._operation,payload:i,updater:null}),this._processOptimisticFollowups(i,n),n},t._processAsyncOptimisticModuleImport=function(e,t){var r=this;e.load(t.operationReference).then((function(e){if(null!=e&&"started"===r._state){var n,i=r._processOptimisticModuleImport(e,t);if(i.forEach((function(e){return r._publishQueue.applyUpdate(e)})),null==r._optimisticUpdates)y(!1,"RelayModernQueryExecutor: Unexpected ModuleImport optimistic update in operation %s."+r._operation.request.node.params.name);else(n=r._optimisticUpdates).push.apply(n,(0,a.default)(i)),r._publishQueue.run()}}))},t._processResponses=function(e){var t=this;return null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach((function(e){return t._publishQueue.revertUpdate(e)})),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map((function(e){var r=O(e,t._operation.root,R,{getDataID:t._getDataID,path:[],reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return t._publishQueue.commitPayload(t._operation,r,t._updater),r}))},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach((function(e){var r=e.incrementalPlaceholders,n=e.moduleImportPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),n&&0!==n.length){var a=t._operationLoader;a||g(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`."),n.forEach((function(e){t._processModuleImportPayload(e,a)}))}if(r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach((function(r){t._processIncrementalPlaceholder(e,r)})),t._isClientPayload||"loading_final"===t._state)){y(t._isClientPayload,"RelayModernEnvironment: Operation `%s` contains @defer/@stream directives but was executed in non-streaming mode. See https://fburl.com/relay-incremental-delivery-non-streaming-warning.",t._operation.request.node.params.name);var o=[];if(r.forEach((function(e){"defer"===e.kind&&o.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),o.length>0){var s=t._publishQueue.run();t._updateOperationTracker(s),t._processPayloadFollowups(o)}}}))},t._maybeCompleteSubscriptionOperationTracking=function(){"subscription"===this._operation.request.node.params.operationKind&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n){var i=_(n);this._handleModuleImportPayload(e,i),this._maybeCompleteSubscriptionOperationTracking()}else{var a=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var o=function(){r._pendingModulePayloadsCount--,r._maybeCompleteSubscriptionOperationTracking()};f.from(new Promise((function(r,n){t.load(e.operationReference).then(r,n)}))).map((function(t){null!=t&&r._schedule((function(){r._handleModuleImportPayload(e,_(t))}))})).subscribe({complete:function(){r._complete(a),o()},error:function(e){r._error(e),o()},start:function(e){return r._start(a,e)}})}},t._handleModuleImportPayload=function(e,t){var r=this._normalizeModuleImport(e,t);this._publishQueue.commitPayload(this._operation,r);var n=this._publishQueue.run();this._updateOperationTracker(n),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,n=t.label,i=t.path.map(String).join("."),a=this._incrementalResults.get(n);null==a&&(a=new Map,this._incrementalResults.set(n,a));var o,s=a.get(i),l=null!=s&&"response"===s.kind?s.responses:null;a.set(i,{kind:"placeholder",placeholder:t}),"stream"===t.kind?o=t.parentID:"defer"===t.kind?o=t.selector.dataID:g(!1,"Unsupported incremental placeholder kind `%s`.",t.kind);var u,c,f=e.source.get(o),p=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=m(e.dataID,e.fieldKey);return e.dataID===o||t===o}));null==f&&g(!1,"RelayModernEnvironment: Expected record `%s` to exist.",o);var h=this._source.get(o);if(null!=h){u=d.update(h.record,f);var _=new Map,y=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(v(t)))&&void 0!==r?r:"");_.set(n,e)};h.fieldPayloads.forEach(y),p.forEach(y),c=Array.from(_.values())}else u=f,c=p;if(this._source.set(o,{record:u,fieldPayloads:c}),null!=l){var b=this._processIncrementalResponses(l),E=this._publishQueue.run();this._updateOperationTracker(E),this._processPayloadFollowups(b)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var n=e.label,i=e.path,a=e.response,o=t._incrementalResults.get(n);if(null==o&&(o=new Map,t._incrementalResults.set(n,o)),-1!==n.indexOf("$defer$")){var s=i.map(String).join("."),l=o.get(s);if(null==l)return l={kind:"response",responses:[e]},void o.set(s,l);if("response"===l.kind)return void l.responses.push(e);var u=l.placeholder;"defer"!==u.kind&&g(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @defer, was `@%s`.",s,n,u.kind),r.push(t._processDeferResponse(n,i,u,a))}else{var c=i.slice(0,-2).map(String).join("."),d=o.get(c);if(null==d)return d={kind:"response",responses:[e]},void o.set(c,d);if("response"===d.kind)return void d.responses.push(e);var f=d.placeholder;"stream"!==f.kind&&g(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @stream, was `@%s`.",c,n,f.kind),r.push(t._processStreamResponse(n,i,f,a))}})),r},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,a=O(n,r.selector,r.typeName,{getDataID:this._getDataID,path:r.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull});this._publishQueue.commitPayload(this._operation,a);var o=this._source.get(i);null==o&&g(!1,"RelayModernEnvironment: Expected the parent record `%s` for @defer data to exist.",i);var s=o.fieldPayloads;if(0!==s.length){var l,u={errors:null,fieldPayloads:s,incrementalPlaceholders:null,moduleImportPayloads:null,source:p.create(),isFinal:!0===(null===(l=n.extensions)||void 0===l?void 0:l.is_final)};this._publishQueue.commitPayload(this._operation,u)}return a},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,o=r.node,s=r.variables,l=o.selections[0];(null==l||"LinkedField"!==l.kind||!0!==l.plural)&&g(!1,"RelayModernEnvironment: Expected @stream to be used on a plural field.");var u=this._normalizeStreamItem(n,i,l,s,t,r.path),c=u.fieldPayloads,d=u.itemID,f=u.itemIndex,h=u.prevIDs,_=u.relayPayload,v=u.storageKey;if(this._publishQueue.commitPayload(this._operation,_,(function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(v);if(null!=r&&r.length===h.length&&!r.some((function(e,t){return h[t]!==(e&&e.getDataID())}))){var n=(0,a.default)(r);n[f]=e.get(d),t.setLinkedRecords(n,v)}}})),0!==c.length){var y={errors:null,fieldPayloads:c,incrementalPlaceholders:null,moduleImportPayloads:null,source:p.create(),isFinal:!1};this._publishQueue.commitPayload(this._operation,y)}return _},t._normalizeStreamItem=function(e,t,r,n,i,o){var s,l,u,c=e.data;"object"!=typeof c&&g(!1,"RelayModernEnvironment: Expected the GraphQL @stream payload `data` value to be an object.");var f=null!==(s=r.alias)&&void 0!==s?s:r.name,p=I(r,n),h=this._source.get(t);null==h&&g(!1,"RelayModernEnvironment: Expected the parent record `%s` for @stream data to exist.",t);var _=h.record,v=h.fieldPayloads,y=d.getLinkedRecordIDs(_,p);null==y&&g(!1,"RelayModernEnvironment: Expected record `%s` to have fetched field `%s` with @stream.",t,r.name);var E=i[i.length-1],R=parseInt(E,10);R===E&&R>=0||g(!1,"RelayModernEnvironment: Expected path for @stream to end in a positive integer index, got `%s`",E);var S=null!==(l=r.concreteType)&&void 0!==l?l:c[D];"string"!=typeof S&&g(!1,"RelayModernEnvironment: Expected @stream field `%s` to have a __typename.",r.name);var k=(null!==(u=this._getDataID(c,S))&&void 0!==u?u:y&&y[R])||m(t,p,R);"string"!=typeof k&&g(!1,"RelayModernEnvironment: Expected id of elements of field `%s` to be strings.",p);var T=b(r,k,n),P=d.clone(_),F=(0,a.default)(y);return F[R]=k,d.setLinkedRecordIDs(P,p,F),this._source.set(t,{record:P,fieldPayloads:v}),{fieldPayloads:v,itemID:k,itemIndex:R,prevIDs:y,relayPayload:O(e,T,S,{getDataID:this._getDataID,path:[].concat((0,a.default)(o),[f,String(R)]),reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull}),storageKey:p}},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation.request)},e}();function O(e,t,r,n){var i,a=e.data,o=e.errors,l=p.create(),u=d.create(t.dataID,r);return l.set(t.dataID,u),s(s({},h.normalize(l,t,a,n)),{},{errors:o,isFinal:!0===(null===(i=e.extensions)||void 0===i?void 0:i.is_final)})}function k(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&g(!1,"RelayModernQueryExecutor: optimistic responses cannot be returned for operations that use incremental data delivery (@defer, @stream, and @stream_connection).")}e.exports={execute:function(e){return new S(e)}}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function i(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 a=r(21),o=a.EXISTENT,s=a.NONEXISTENT,l=a.UNKNOWN,u=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?s:o:l},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},r=n(this._records);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i[0],o=i[1];t[a]=o}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=u},function(e,t,r){"use strict";var n=r(2)(r(15));function i(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)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),s=r(6),l=r(25),u=r(10),c=r(0),d=r(3),f=r(5),p=f.CONDITION,h=f.CLIENT_EXTENSION,_=f.DEFER,g=f.FLIGHT_FIELD,v=f.INLINE_FRAGMENT,y=f.LINKED_FIELD,m=f.LINKED_HANDLE,b=f.MODULE_IMPORT,E=f.SCALAR_FIELD,R=f.SCALAR_HANDLE,D=f.STREAM,I=f.TYPE_DISCRIMINATOR,S=r(7),O=S.generateClientID,k=S.isClientID,T=r(13).createNormalizationSelector,P=r(18),F=P.refineToReactFlightPayloadData,A=P.REACT_FLIGHT_QUERIES_STORAGE_KEY,w=P.REACT_FLIGHT_TREE_STORAGE_KEY,N=P.REACT_FLIGHT_TYPE_NAME,x=r(1),M=x.getArgumentValues,L=x.getHandleStorageKey,j=x.getModuleComponentKey,C=x.getModuleOperationKey,U=x.getStorageKey,q=x.TYPENAME_KEY,V=x.ROOT_ID,K=x.ROOT_TYPE,z=r(22),G=z.generateTypeID,H=z.TYPE_SCHEMA_TYPE;var Y=function(){function e(e,t,r){this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._variables=t,this._reactFlightPayloadDeserializer=r.reactFlightPayloadDeserializer}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||c(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._traverseSelections(e,n,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,moduleImportPayloads:this._moduleImportPayloads,source:this._recordSource,isFinal:!1}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||c(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[q];return null==t&&c(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var i=e.selections[n];switch(i.kind){case E:case y:this._normalizeField(e,i,t,r);break;case p:this._getVariableValue(i.condition)===i.passingValue&&this._traverseSelections(i,t,r);break;case v:var a=i.abstractKey;if(null==a)s.getType(t)===i.type&&this._traverseSelections(i,t,r);else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var l=r.hasOwnProperty(a),u=s.getType(t),d=G(u),f=this._recordSource.get(d);null==f&&(f=s.create(d,H),this._recordSource.set(d,f)),s.setValue(f,a,l),l&&this._traverseSelections(i,t,r)}else{var S=r.hasOwnProperty(a),O=this._isUnmatchedAbstractType;this._isUnmatchedAbstractType=this._isUnmatchedAbstractType||!S,this._traverseSelections(i,t,r),this._isUnmatchedAbstractType=O}break;case I:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var k=i.abstractKey,T=r.hasOwnProperty(k),P=s.getType(t),F=G(P),A=this._recordSource.get(F);null==A&&(A=s.create(F,H),this._recordSource.set(F,A)),s.setValue(A,k,T)}break;case m:case R:var w=i.args?M(i.args,this._variables):{},N=U(i,this._variables),x=L(i,this._variables);this._handleFieldPayloads.push({args:w,dataID:s.getDataID(t),fieldKey:N,handle:i.handle,handleKey:x,handleArgs:i.handleArgs?M(i.handleArgs,this._variables):{}});break;case b:this._normalizeModuleImport(e,i,t,r);break;case _:this._normalizeDefer(i,t,r);break;case D:this._normalizeStream(i,t,r);break;case h:var j=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(i,t,r),this._isClientExtension=j;break;case g:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,i,t,r);break;default:c(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",i.kind)}}},t._normalizeDefer=function(e,t,r){var i=null===e.if||this._getVariableValue(e.if);d("boolean"==typeof i,"RelayResponseNormalizer: Expected value for @defer `if` argument to be a boolean, got `%s`.",i),!1===i?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,n.default)(this._path),selector:T(e,s.getDataID(t),this._variables),typeName:s.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var i=null===e.if||this._getVariableValue(e.if);d("boolean"==typeof i,"RelayResponseNormalizer: Expected value for @stream `if` argument to be a boolean, got `%s`.",i),!0===i&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,n.default)(this._path),parentID:s.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,i){"object"==typeof i&&i||c(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var a=s.getType(r),o=j(t.documentName),l=i[o];s.setValue(r,o,null!=l?l:null);var u=C(t.documentName),d=i[u];s.setValue(r,u,null!=d?d:null),null!=d&&this._moduleImportPayloads.push({data:i,dataID:s.getDataID(r),operationReference:d,path:(0,n.default)(this._path),typeName:a,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||c(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var i=t.alias||t.name,a=U(t,this._variables),o=n[i];if(null==o){if(void 0===o){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void d(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",i,a)}return t.kind===E&&this._validateConflictingFieldsWithIdenticalId(r,a,o),void s.setValue(r,a,null)}t.kind===E?(this._validateConflictingFieldsWithIdenticalId(r,a,o),s.setValue(r,a,o)):t.kind===y?(this._path.push(i),t.plural?this._normalizePluralLink(t,r,a,o):this._normalizeLink(t,r,a,o),this._path.pop()):c(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeFlightField=function(e,t,r,n){var a=t.alias||t.name,o=U(t,this._variables),l=n[a];if(null!=l){var u=F(l);null==u&&c(!1,"RelayResponseNormalizer(): Expected React Flight payload data to be an object with `tree` and `queries` properties, got `%s`.",l),"function"!=typeof this._reactFlightPayloadDeserializer&&c(!1,"RelayResponseNormalizer: Expected reactFlightPayloadDeserializer to be a function, got `%s`.",this._reactFlightPayloadDeserializer);var d=this._reactFlightPayloadDeserializer(u.tree),f=O(s.getDataID(r),U(t,this._variables)),p=this._recordSource.get(f);null==p&&(p=s.create(f,N),this._recordSource.set(f,p)),s.setValue(p,w,d);var h,_=[],g=i(u.queries);try{for(g.s();!(h=g.n()).done;){var v=h.value;null!=v.response.data&&this._moduleImportPayloads.push({data:v.response.data,dataID:V,operationReference:v.module,path:[],typeName:K,variables:v.variables}),_.push({module:v.module,variables:v.variables})}}catch(e){g.e(e)}finally{g.f()}s.setValue(p,A,_),s.setLinkedRecordID(r,o,f)}else s.setValue(r,o,null)},t._normalizeLink=function(e,t,r,n){var i;"object"==typeof n&&n||c(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var a=this._getDataId(n,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(n))||s.getLinkedRecordID(t,r)||O(s.getDataID(t),r);"string"!=typeof a&&c(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),this._validateConflictingLinkedFieldsWithIdenticalId(t,s.getLinkedRecordID(t,r),a,r),s.setLinkedRecordID(t,r,a);var o=this._recordSource.get(a);if(o)this._validateRecordType(o,e,n);else{var l=e.concreteType||this._getRecordType(n);o=s.create(a,l),this._recordSource.set(a,o)}this._traverseSelections(e,o,n)},t._normalizePluralLink=function(e,t,r,n){var i=this;Array.isArray(n)||c(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var a=s.getLinkedRecordIDs(t,r),o=[];n.forEach((function(n,l){var u;if(null!=n){i._path.push(String(l)),"object"!=typeof n&&c(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var d=i._getDataId(n,null!==(u=e.concreteType)&&void 0!==u?u:i._getRecordType(n))||a&&a[l]||O(s.getDataID(t),r,l);"string"!=typeof d&&c(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),o.push(d);var f=i._recordSource.get(d);if(f)i._validateRecordType(f,e,n);else{var p=e.concreteType||i._getRecordType(n);f=s.create(d,p),i._recordSource.set(d,f)}a&&i._validateConflictingLinkedFieldsWithIdenticalId(t,a[l],d,r),i._traverseSelections(e,f,n),i._path.pop()}else o.push(n)})),s.setLinkedRecordIDs(t,r,o)},t._validateRecordType=function(e,t,r){var n,i=null!==(n=t.concreteType)&&void 0!==n?n:this._getRecordType(r),a=s.getDataID(e);d(k(a)&&a!==V||s.getType(e)===i,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be consistent, but the record was assigned conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",a,q,s.getType(e),i)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){var n=s.getDataID(e),i=s.getValue(e,t);d(t===q||void 0===i||u(i,r),"RelayResponseNormalizer: Invalid record. The record contains two instances of the same id: `%s` with conflicting field, %s and its values: %s and %s. If two fields are different but share the same id, one field will overwrite the other.",n,t,i,r)},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,n){d(void 0===t||t===r,"RelayResponseNormalizer: Invalid record. The record contains references to the conflicting field, %s and its id values: %s and %s. We need to make sure that the record the field points to remains consistent or one field will overwrite the other.",n,t,r)},e}(),Q=l.instrument("RelayResponseNormalizer.normalize",(function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;return new Y(e,o,n).normalizeResponse(a,i,r)}));e.exports={normalize:Q}},function(e,t,r){"use strict";var n=r(56),i=r(35),a=r(17),o=r(36),s=r(37),l=r(58),u=r(0),c=r(3),d=function(){function e(e,t,r){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&u(!1,"RelayPublishQueue: Cannot apply the same update function more than once concurrently."),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){c(!0!==this._isRunning,"A store update was detected within another store update. Please make sure new store updates aren't being executed within an updater function for a different update."),this._isRunning=!0,this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var t=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._isRunning=!1,this._store.notify(e,t)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,a=r.source,c=r.fieldPayloads,d=new o(this._store.getSource(),a),p=new s(d,this._getDataID);if(c&&c.length&&c.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||u(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),r.update(p,e)})),i){var h=n.fragment;null==h&&u(!1,"RelayModernEnvironment: Expected a selector to be provided with updater function."),i(new l(d,p,h),f(a,h))}var _=p.getIDsMarkedForInvalidation();return this._store.publish(a,_),p.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach((function(r){if("payload"===r.kind){var i=e._publishSourceFromPayload(r);t=t||i}else if("source"===r.kind){var l=r.source;e._store.publish(l)}else{var u=r.updater,c=a.create(),d=new o(e._store.getSource(),c),f=new s(d,e._getDataID);n.applyWithGuard(u,null,[f],null,"RelayPublishQueue:commitData"),t=t||f.isStoreMarkedForInvalidation();var p=f.getIDsMarkedForInvalidation();e._store.publish(c,p)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=a.create(),r=new o(this._store.getSource(),t),i=new s(r,this._getDataID,this._handlerProvider),u=function(e){if(e.storeUpdater){var t=e.storeUpdater;n.applyWithGuard(t,null,[i],null,"RelayPublishQueue:applyUpdates")}else{var a,o=e.operation,s=e.payload,u=e.updater,c=s.source,d=s.fieldPayloads,p=new l(r,i,o.fragment);c&&(i.publishSource(c,d),a=f(c,o.fragment)),u&&n.applyWithGuard(u,null,[p,a],null,"RelayPublishQueue:applyUpdates")}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(u),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach((function(t){u(t),e._appliedOptimisticUpdates.add(t)})),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();function f(e,t){var n=i.read(e,t).data,a=r(16);return n&&a(n),n}e.exports=d},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(7).generateClientID,a=r(1).getStableStorageKey,o=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e));var i=a(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var o=a(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var o,s=a(e,r),l=i(this.getDataID(),s);n=null!==(o=this._source.get(l))&&void 0!==o?o:this._source.create(l,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var i=a(t,r),o=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(1),a=i.getStorageKey,o=i.ROOT_TYPE,s=function(){function e(e,t,r){this.__mutator=e,this.__recordSource=t,this._readSelector=r}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,o)),e},t._getRootField=function(e,t,r){var i=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t}));return i&&"LinkedField"===i.kind||n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Cannot find root field `%s`, no such field is defined on GraphQL document `%s`.",t,e.node.name),i.plural!==r&&n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Expected root field `%s` to be %s.",t,r?"plural":"singular"),i},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(r)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},e}();e.exports=s},function(e,t,r){"use strict";e.exports=function(e){if("missing_field.log"===e.kind)throw new Error("Relay Environment Configuration Error (dev only): `@required(action: LOG)` requires that the Relay Environment be configured with a `requiredFieldLogger`.")}},function(e,t,r){"use strict";var n=1e5;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(2),i=n(r(4)),a=n(r(15));function o(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 s=function(){},l=!1,u=function(){var e={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"},t={style:"rgb(136, 19, 145)"},r={style:"color: #777"},n=function(e){return["span",{style:"font-style: italic"},e.__typename,["span",r,' {id: "',e.__id,'", …}']]},i=function(e){return null!=e&&"string"==typeof e.__id},o=function(e,t){this.key=e,this.value=t},s=function(t){var r=Object.keys(t).map((function(e){return["li",{},["object",{object:new o(e,t[e])}]]}));return["ol",e].concat((0,a.default)(r))};return[{header:function(e){return i(e)?n(e):null},hasBody:function(e){return!0},body:function(e){return s(e)}},{header:function(e){if(e instanceof o){var a=i(e.value)?n(e.value):null==(s=e.value)?["span",r,"undefined"]:["object",{object:s,config:l}];return["span",t,e.key,": ",a]}var s,l;return null},hasBody:function(e){return i(e.value)},body:function(e){return s(e.value)}}]},c=function e(t,r){var n=t.get(r);return null==n?n:new Proxy(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n),{get:function(r,n){var i=r[n];if(null==i)return i;if("object"==typeof i){if("string"==typeof i.__ref)return e(t,i.__ref);if(Array.isArray(i.__refs))return i.__refs.map((function(r){return e(t,r)}))}return i}})};s=function(e,t){var r;return l||(l=!0,null==window.devtoolsFormatters&&(window.devtoolsFormatters=[]),Array.isArray(window.devtoolsFormatters)&&(console.info('Make sure to select "Enable custom formatters" in the Chrome Developer Tools settings, tab "Preferences" under the "Console" section.'),(r=window.devtoolsFormatters).push.apply(r,(0,a.default)(u())))),c(e.getStore().getSource(),null!=t?t:"client:root")},e.exports={inspect:s}},function(e,t,r){"use strict";var n=r(2)(r(4));function i(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)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(63),s=r(6),l=r(65),u=r(25),c=r(35),d=r(66),f=r(18),p=r(1),h=r(16),_=r(38),g=r(67),v=r(0),y=r(42),m=r(43),b=r(68),E=r(1),R=E.ROOT_ID,D=E.ROOT_TYPE,I=function(){function e(e,t){var r,i,a,o,l,u=this;(0,n.default)(this,"_gcStep",(function(){u._gcRun&&(u._gcRun.next().done?u._gcRun=null:u._gcScheduler(u._gcStep))}));for(var c=e.getRecordIDs(),d=0;d<c.length;d++){var f=e.get(c[d]);f&&s.freeze(f)}this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:0,this._gcRun=null,this._gcScheduler=null!==(i=null==t?void 0:t.gcScheduler)&&void 0!==i?i:b,this._getDataID=null!==(a=null==t?void 0:t.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==a?a:_,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(o=null==t?void 0:t.log)&&void 0!==o?o:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(l=null==t?void 0:t.operationLoader)&&void 0!==l?l:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._subscriptions=new Set,this._updatedRecordIDs={},function(e){if(!e.has(R)){var t=s.create(R,D);e.set(R,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.check=function(e,t){var r,n,i,a=e.root,s=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource,l=this._globalInvalidationEpoch,u=this._roots.get(e.request.identifier),c=null!=u?u.epoch:null;if(null!=l&&(null==c||c<=l))return{status:"stale"};var d=null!==(n=null==t?void 0:t.target)&&void 0!==n?n:s,f=null!==(i=null==t?void 0:t.handlers)&&void 0!==i?i:[];return function(e,t,r,n){var i=e.mostRecentlyInvalidatedAt,a=e.status;if("number"==typeof i&&(null==t||i>t))return{status:"stale"};if("missing"===a)return{status:"missing"};if(null!=r&&null!=n){if(r<=Date.now()-n)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(o.check(s,d,a,f,this._operationLoader,this._getDataID),c,null==u?void 0:u.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,n=!1,i=this._roots.get(r);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter((function(e){return e!==r}))),i.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!n){n=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var i=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=i&&e.fetchTime<=Date.now()-i)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var a=t._releaseBuffer.shift();t._roots.delete(a),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource(),r=c.read(t,e);return h(r),r},t.notify=function(e,t){var r=this,n=this.__log;null!=n&&n({name:"store.notify.start"}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch);var i=this.getSource(),a=[],o=!y(this._updatedRecordIDs);if(this._subscriptions.forEach((function(e){var t=r._updateSubscription(i,e,o);null!=t&&a.push(t)})),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),null!=n&&n({name:"store.notify.complete",updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs={},this._invalidatedRecordIDs.clear(),null!=e){var s=e.request.identifier,l=this._roots.get(s);if(null!=l)l.epoch=this._currentWriteEpoch,l.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var u={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(s),this._roots.set(s,u)}}return a},t.publish=function(e,t){var r,n=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource;!function(e,t,r,n,i,a){n&&n.forEach((function(n){var i,o=e.get(n),l=t.get(n);null!==l&&((i=null!=o?s.clone(o):null!=l?s.clone(l):null)&&(s.setValue(i,p.INVALIDATED_AT_KEY,r),a.add(n),e.set(n,i)))}));for(var o=t.getRecordIDs(),l=0;l<o.length;l++){var u=o[l],c=t.get(u),d=e.get(u);if(c&&s.freeze(c),c&&d){var h=s.getType(d)===f.REACT_FLIGHT_TYPE_NAME?c:s.update(d,c);h!==d&&(s.freeze(h),i[u]=!0,e.set(u,h))}else null===c?(e.delete(u),null!==d&&(i[u]=!0)):c&&(e.set(u,c),i[u]=!0)}}(n,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var i=this.__log;null!=i&&i({name:"store.publish",source:e,optimistic:n===this._optimisticSource})},t.subscribe=function(e,t){var r=this,n={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e,t,r){var n=t.backup,i=t.callback,a=t.snapshot,o=t.stale,s=r&&g(a.seenRecords,this._updatedRecordIDs);if(o||s){var l=s||!n?c.read(e,a.selector):n;return l={data:m(a.data,l.data),isMissingData:l.isMissingData,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields},h(l),t.snapshot=l,t.stale=!1,l.data!==a.data?(i(l),a.selector.owner):void 0}},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach((function(e){var n,i=t.getSource().get(e);r.set(e,null!==(n=s.getInvalidationEpoch(i))&&void 0!==n?n:null)})),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n,a=i(e.dataIDs);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t.get(o)!==r.get(o))return!0}}catch(e){a.e(e)}finally{a.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(n),{dispose:function(){r._invalidationSubscriptions.delete(n)}}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,i=e.invalidationState.dataIDs;(t||i.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&n()},t.snapshot=function(){var e=this;null!=this._optimisticSource&&v(!1,"RelayModernStore: Unexpected call to snapshot() while a previous snapshot exists.");var t=this.__log;null!=t&&t({name:"store.snapshot"}),this._subscriptions.forEach((function(t){if(t.stale){var r=t.snapshot,n=c.read(e.getSource(),r.selector),i=m(r.data,n.data);n.data=i,t.backup=n}else t.backup=t.snapshot})),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=l.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&v(!1,"RelayModernStore: Unexpected call to restore(), expected a snapshot to exist (make sure to call snapshot()).");var e=this.__log;null!=e&&e({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._subscriptions.forEach((function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields}):e.stale=!0}))},t.scheduleGC=function(){this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){e:for(;;){var e,t=this._currentWriteEpoch,r=new Set,n=i(this._roots.values());try{for(n.s();!(e=n.n()).done;){var a=e.value.operation.root;if(d.mark(this._recordSource,a,r,this._operationLoader),yield,t!==this._currentWriteEpoch)continue e}}catch(e){n.e(e)}finally{n.f()}var o=this.__log;if(null!=o&&o({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var s=this._recordSource.getRecordIDs(),l=0;l<s.length;l++){var u=s[l];r.has(u)||this._recordSource.remove(u)}return}},e}();u.instrumentMethods(I.prototype,{lookup:"RelayModernStore.prototype.lookup"}),e.exports=I},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function i(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 a=r(5),o=r(8),s=r(6),l=r(36),u=r(37),c=r(18),d=r(1),f=r(41),p=r(64),h=r(26),_=r(0),g=r(7).isClientID,v=r(21),y=v.EXISTENT,m=v.UNKNOWN,b=r(22).generateTypeID,E=a.CONDITION,R=a.CLIENT_EXTENSION,D=a.DEFER,I=a.FLIGHT_FIELD,S=a.FRAGMENT_SPREAD,O=a.INLINE_FRAGMENT,k=a.LINKED_FIELD,T=a.LINKED_HANDLE,P=a.MODULE_IMPORT,F=a.SCALAR_FIELD,A=a.SCALAR_HANDLE,w=a.STREAM,N=a.TYPE_DISCRIMINATOR,x=d.ROOT_ID,M=d.getModuleOperationKey,L=d.getStorageKey,j=d.getArgumentValues;var C=function(){function e(e,t,r,n,i,a){var o=new l(e,t);this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=o,this._operationLoader=null!=i?i:null,this._recordSourceProxy=new u(o,a),this._recordWasMissing=!1,this._source=e,this._variables=r}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||_(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?j(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!g(t)){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=n(this._handlers);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("scalar"===l.kind){var u=l.handle(e,o,a,this._recordSourceProxy);if(void 0!==u)return u}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=n(this._handlers);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("linked"===l.kind){var u=l.handle(e,o,a,this._recordSourceProxy);if(void 0!==u&&(null===u||this._mutator.getStatus(u)===y))return u}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,a=this._getDataForHandlers(e,t),o=a.args,s=a.record,l=n(this._handlers);try{for(l.s();!(r=l.n()).done;){var u=r.value;if("pluralLinked"===u.kind){var c=u.handle(e,s,o,this._recordSourceProxy);if(null!=c){if(c.every((function(e){return null!=e&&i._mutator.getStatus(e)===y})))return c}else if(null===c)return null}}}catch(e){l.e(e)}finally{l.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===m&&this._handleMissing(),r===y){var n=this._source.get(t),i=s.getInvalidationEpoch(n);null!=i&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,i):i),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case F:r._checkScalar(n,t);break;case k:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case E:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case O:var i=n.abstractKey;if(null==i)r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t);else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var a=r._mutator.getType(t);null==a&&_(!1,"DataChecker: Expected record `%s` to have a known type",t);var s=b(a),l=r._mutator.getValue(s,i);!0===l?r._traverseSelections(n.selections,t):null==l&&r._handleMissing()}else r._traverseSelections(n.selections,t);break;case T:var u=f(n,e,r._variables);u.plural?r._checkPluralLink(u,t):r._checkLink(u,t);break;case A:var c=p(n,e,r._variables);r._checkScalar(c,t);break;case P:r._checkModuleImport(n,t);break;case D:case w:r._traverseSelections(n.selections,t);break;case S:_(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind);break;case R:var d=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=d;break;case N:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var h=n.abstractKey,g=r._mutator.getType(t);null==g&&_(!1,"DataChecker: Expected record `%s` to have a known type",t);var v=b(g);null==r._mutator.getValue(v,h)&&r._handleMissing()}break;case I:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(n,t);break;default:_(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&_(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var n=M(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var a=r.get(i);if(null!=a){var o=h(a);this._traverse(o,t)}else this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=L(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=L(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&(null!=(n=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,n):null===n&&this._mutator.setValue(t,r,null)),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=L(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&(null!=(i=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,n,i):null===i&&this._mutator.setValue(t,n,null)),i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._checkFlightField=function(e,t){var r=L(e,this._variables),i=this._mutator.getLinkedRecordID(t,r);if(null==i)return void 0===i?void this._handleMissing():void 0;var a=this._mutator.getValue(i,c.REACT_FLIGHT_TREE_STORAGE_KEY),o=this._mutator.getValue(i,c.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(null!=a&&Array.isArray(o)){var s=this._operationLoader;null===s&&_(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight.");var l,u=this._variables,d=n(o);try{for(d.s();!(l=d.n()).done;){var f=l.value;this._variables=f.variables;var p=s.get(f.module);if(null!=p){var g=h(p);this._traverseSelections(g.selections,x)}else this._handleMissing()}}catch(e){d.e(e)}finally{d.f()}this._variables=u}else this._handleMissing()},e}();e.exports={check:function(e,t,r,n,i,a){var o=r.dataID,s=r.node,l=r.variables;return new C(e,t,l,n,i,a).check(s,o)}}},function(e,t,r){"use strict";var n=r(10),i=r(0),a=r(5).SCALAR_FIELD,o=r(1).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1,"cloneRelayScalarHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=o(e,r);return{kind:"ScalarField",alias:s.alias,name:l,storageKey:l,args:null}}},function(e,t,r){"use strict";var n=r(2)(r(4));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 a=r(17),o=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),s=function(){function e(e){this._base=e,this._sink=a.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==o:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===o?void 0:t}return this._base.get(e)},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=a.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,o)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=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,n.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}({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var n=e.get(r);void 0===n?delete t[r]:t[r]=n})),t},e}();e.exports={create:function(e){return new s(e)}}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function i(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 a=r(5),o=r(8),s=r(6),l=r(18),u=r(1),c=r(41),d=r(26),f=r(0),p=r(22).generateTypeID,h=a.CONDITION,_=a.CLIENT_EXTENSION,g=a.DEFER,v=a.FLIGHT_FIELD,y=a.FRAGMENT_SPREAD,m=a.INLINE_FRAGMENT,b=a.LINKED_FIELD,E=a.MODULE_IMPORT,R=a.LINKED_HANDLE,D=a.SCALAR_FIELD,I=a.SCALAR_HANDLE,S=a.STREAM,O=a.TYPE_DISCRIMINATOR,k=u.ROOT_ID,T=u.getStorageKey,P=u.getModuleOperationKey;var F=function(){function e(e,t,r,n){this._operationLoader=null!=n?n:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t}var t=e.prototype;return t.mark=function(e,t){"Operation"!==e.kind&&"SplitOperation"!==e.kind||(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||f(!1,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case b:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case h:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case m:if(null==n.abstractKey){var i=s.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t)}else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var a=s.getType(t),l=p(a);r._references.add(l),r._traverseSelections(n.selections,t)}else r._traverseSelections(n.selections,t);break;case y:f(!1,"RelayReferenceMarker(): Unexpected fragment spread `...%s`, expected all fragments to be inlined.",n.name);case R:var u=c(n,e,r._variables);u.plural?r._traversePluralLink(u,t):r._traverseLink(u,t);break;case g:case S:r._traverseSelections(n.selections,t);break;case D:case I:break;case O:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var d=s.getType(t),k=p(d);r._references.add(k)}break;case E:r._traverseModuleImport(n,t);break;case _:r._traverseSelections(n.selections,t);break;case v:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(n,t);break;default:f(!1,"RelayReferenceMarker: Unknown AST node `%s`.",n)}}))},t._traverseModuleImport=function(e,t){var r,n=this._operationLoader;null===n&&f(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`. Could not load fragment `%s` in operation `%s`.",e.fragmentName,null!==(r=this._operationName)&&void 0!==r?r:"(unknown)");var i=P(e.documentName),a=s.getValue(t,i);if(null!=a){var o=n.get(a);if(null!=o){var l=d(o).selections;this._traverseSelections(l,t)}}},t._traverseLink=function(e,t){var r=T(e,this._variables),n=s.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=T(e,this._variables),i=s.getLinkedRecordIDs(t,n);null!=i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._traverseFlightField=function(e,t){var r=T(e,this._variables),i=s.getLinkedRecordID(t,r);if(null!=i){this._references.add(i);var a=this._recordSource.get(i);if(null!=a){var o=s.getValue(a,l.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(Array.isArray(o)){var u=this._operationLoader;null===u&&f(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight");var c,p=this._variables,h=n(o);try{for(h.s();!(c=h.n()).done;){var _=c.value;this._variables=_.variables;var g=_.module,v=u.get(g);if(null!=v){var y=d(v);this._traverse(y,k)}}}catch(e){h.e(e)}finally{h.f()}this._variables=p}}}},e}();e.exports={mark:function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;new F(e,o,r,n).mark(a,i)}}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){for(var r in e)if(n.call(e,r)&&n.call(t,r))return!0;return!1}},function(e,t,r){"use strict";var n=Promise.resolve();function i(e){setTimeout((function(){throw e}),0)}e.exports=function(e){n.then(e).catch(i)}},function(e,t,r){"use strict";var n=r(0),i=r(70).convertFetch;e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,a,o,s){if("subscription"===e.operationKind)return t||n(!1,"RelayNetwork: This network layer does not support Subscriptions. To use Subscriptions, provide a custom network layer."),o&&n(!1,"RelayNetwork: Cannot provide uploadables while subscribing."),t(e,i,a);var l=a.poll;return null!=l?(o&&n(!1,"RelayNetwork: Cannot provide uploadables while polling."),r(e,i,{force:!0}).poll(l)):r(e,i,a,o,s)}}}}},function(e,t,r){"use strict";var n=r(12);e.exports={convertFetch:function(e){return function(t,r,i,a,o){var s=e(t,r,i,a,o);return s instanceof Error?n.create((function(e){return e.error(s)})):n.from(s)}}}},function(e,t,r){"use strict";var n=r(2)(r(4));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 a(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,n.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 o=r(0),s=r(11),l=function(){function e(e){var t=e.size,r=e.ttl;t>0||o(!1,"RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.",t),r>0||o(!1,"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",r),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,n=u(e,t);this._responses.forEach((function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=Date.now()||r._responses.delete(t)}));var i=this._responses.get(n);return null!=i?a(a({},i.payload),{},{extensions:a(a({},i.payload.extensions),{},{cacheTimestamp:i.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),i=u(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function u(e,t){return JSON.stringify(s({queryID:e,variables:t}))}e.exports=l},function(e,t,r){"use strict";var n=r(20),i=r(0),a=r(27),o=r(9).getRequest,s=r(14).createOperationDescriptor;e.exports=function(e,t){a(e)||i(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=o(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");var l=t.optimisticUpdater,u=t.configs,c=t.optimisticResponse,d=t.variables,f=s(r,d);return u&&(l=n.convert(u,r,l).optimisticUpdater),e.applyMutation({operation:f,response:c,updater:l})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(2)(r(15)),i=r(20),a=r(0),o=r(27),s=r(75),l=r(3),u=r(9).getRequest,c=r(7).generateUniqueClientID,d=r(14).createOperationDescriptor;e.exports=function(e,t){o(e)||a(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=u(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw new Error("commitMutation: Expected mutation to be of type request");var f=t.optimisticResponse,p=t.optimisticUpdater,h=t.updater,_=t.configs,g=t.cacheConfig,v=t.onError,y=t.onUnsubscribe,m=t.variables,b=t.uploadables,E=d(r,m,g,c());if("function"==typeof f&&(f=f(),l(!1,"commitMutation: Expected `optimisticResponse` to be an object, received a function.")),f instanceof Object&&s(f,r,m),_){var R=i.convert(_,r,p,h);p=R.optimisticUpdater,h=R.updater}var D=[];return{dispose:e.executeMutation({operation:E,optimisticResponse:f,optimisticUpdater:p,updater:h,uploadables:b}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&D.push.apply(D,(0,n.default)(e.errors))})):e.errors&&D.push.apply(D,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(E.fragment).data,0!==D.length?D:null)},error:v,unsubscribe:y}).unsubscribe}}},function(e,t,r){"use strict";var n=r(2)(r(4));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 a(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,n.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 o=r(3),s=Object.prototype.hasOwnProperty,l=function(){},u=function(e,t,r){var n=t;e.split(".").forEach((function(e,t,i){null==n[e]&&(n[e]={}),r&&t===i.length-1&&(n[e]="<scalar>"),n=n[e]}))};l=function(e,t,r){var n=t.operation.name,i={path:"ROOT",visitedPaths:new Set,variables:r||{},missingDiff:{},extraDiff:{},moduleImportPaths:new Set};c(e,t.operation.selections,i),h(e,i),o(null==i.missingDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please define fields for all of\n%s",n,JSON.stringify(i.missingDiff.ROOT,null,2)),o(null==i.extraDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please remove all fields of\n%s",n,JSON.stringify(i.extraDiff.ROOT,null,2))};var c=function(e,t,r){t.forEach((function(t){return d(e,t,r)}))},d=function e(t,r,n){switch(r.kind){case"Condition":return void c(t,r.selections,n);case"ScalarField":case"LinkedField":case"FlightField":return p(t,r,n);case"InlineFragment":var i=r.type,a=null==r.abstractKey;return void r.selections.forEach((function(r){a&&t.__typename!==i||e(t,r,n)}));case"ClientExtension":return void r.selections.forEach((function(r){e(t,r,n)}));case"ModuleImport":return f(n);case"LinkedHandle":case"ScalarHandle":case"Defer":case"Stream":case"TypeDiscriminator":default:return}},f=function(e){e.moduleImportPaths.add(e.path)},p=function(e,t,r){var n=t.alias||t.name,i="".concat(r.path,".").concat(n);switch(r.visitedPaths.add(i),t.kind){case"ScalarField":return void(!1===s.call(e,n)&&u(i,r.missingDiff,!0));case"LinkedField":var o=t.selections;if(null===e[n]||s.call(e,n)&&void 0===e[n])return;return t.plural?Array.isArray(e[n])?void e[n].forEach((function(e){null!==e&&c(e,o,a(a({},r),{},{path:i}))})):void u(i,r.missingDiff):e[n]instanceof Object?void c(e[n],o,a(a({},r),{},{path:i})):void u(i,r.missingDiff);case"FlightField":if(null===e[n]||s.call(e,n)&&void 0===e[n])return;throw new Error("validateMutation: Flight fields are not compatible with optimistic updates, as React does not have the component code necessary to process new data on the client. Instead, you should update your code to require a full refetch of the Flight field so your UI can be updated.")}},h=function e(t,r){Array.isArray(t)?t.forEach((function(t){t instanceof Object&&e(t,r)})):Object.keys(t).forEach((function(n){var i=t[n],o="".concat(r.path,".").concat(n);r.moduleImportPaths.has(o)||(r.visitedPaths.has(o)?i instanceof Object&&e(i,a(a({},r),{},{path:o})):u(o,r.extraDiff))}))};e.exports=l},function(e,t,r){"use strict";var n=r(77),i=r(3);e.exports=function(e,t,r,a,o){return Object.keys(r).forEach((function(e){var r=a[e];i(void 0!==r,"createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",e,t)})),new n(e,r,a,o)}},function(e,t,r){"use strict";var n=r(2)(r(4));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 a(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,n.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 o=r(8),s=r(10),l=r(0),u=r(45),c=r(46),d=r(3),f=r(47).getPromiseForActiveRequest,p=r(14).createRequestDescriptor,h=r(13),_=h.areEqualSelectors,g=h.createReaderSelector,v=h.getSelectorsFromObject,y=function(){function e(e,t,r,i){var a=this;(0,n.default)(this,"_onChange",(function(){a._stale=!0,"function"==typeof a._callback&&a._callback()})),this._callback=i,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&E(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],i=t[r];if(n){var o=n.resolve();(e||o!==i)&&((e=e||a({},t))[r]=o)}else{var s=this._props[r],l=void 0!==s?s:null;!e&&u(l,i)||((e=e||a({},t))[r]=l)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=v(this._fragments,e);for(var r in this._props={},t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):"PluralReaderSelector"===n.kind?null==i?i=new b(this._context.environment,n,this._onChange):(i instanceof b||l(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.",r),i.setSelector(n)):null==i?i=new m(this._context.environment,n,this._onChange):(i instanceof m||l(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.",r),i.setSelector(n)),this._props[r]=e[r],this._resolvers[r]=i}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),m=function(){function e(e,t,r){var i=this;(0,n.default)(this,"_onChange",(function(e){i._data=e.data,i._isMissingData=e.isMissingData,i._missingRequiredFields=e.missingRequiredFields,i._callback()}));var a=e.lookup(t);this._callback=r,this._data=a.data,this._isMissingData=a.isMissingData,this._missingRequiredFields=a.missingRequiredFields,this._environment=e,this._selector=t,this._subscription=e.subscribe(a,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===o.ENABLE_RELAY_CONTAINERS_SUSPENSE&&!0===this._isMissingData){var e,t=null!==(e=f(this._environment,this._selector.owner))&&void 0!==e?e:this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);if(null!=t)throw d(!1,"Relay: Relay Container for fragment `%s` suspended. When using features such as @defer or @module, use `useFragment` instead of a Relay Container.",this._selector.node.name),t}return null!=this._missingRequiredFields&&c(this._environment,this._missingRequiredFields),this._data},t.setSelector=function(e){if(null==this._subscription||!_(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=t.data,this._isMissingData=t.isMissingData,this._missingRequiredFields=t.missingRequiredFields,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!s(e,this._selector.variables)){var r=p(t,e),n=g(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),b=function(){function e(e,t,r){var i=this;(0,n.default)(this,"_onChange",(function(e){i._stale=!0,i._callback()})),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelector(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(E)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],i=this._resolvers[r].resolve();(e||i!==n)&&(e=e||t.slice(0,r)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelector=function(e){for(var t=e.selectors;this._resolvers.length>t.length;){this._resolvers.pop().dispose()}for(var r=0;r<t.length;r++)r<this._resolvers.length?this._resolvers[r].setSelector(t[r]):this._resolvers[r]=new m(this._environment,t[r],this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach((function(r){return r.setVariables(e,t)})),this._stale=!0},e}();function E(e){e&&e.dispose()}e.exports=y},function(e,t,r){"use strict";var n=r(2)(r(4));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 a=r(1),o=a.getModuleComponentKey,s=a.getModuleOperationKey;e.exports=function(e,t,r,a){var l=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,n.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}({},a);return l[o(e)]=r,l[s(e)]=t,l}},function(e,t,r){"use strict";var n,i,a=r(0);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1,"[createRelayContext]: You passing a different instance of React",e.version),n}},function(e,t,r){"use strict";var n=r(14).createOperationDescriptor,i=r(9).getRequest;e.exports=function(e,t,r,a){var o=i(t);if("query"!==o.params.operationKind)throw new Error("fetchQuery: Expected query operation");var s=n(o,r,a);return e.execute({operation:s}).map((function(){return e.lookup(s.fragment).data})).toPromise()}},function(e,t,r){"use strict";var n=r(8),i=r(42),a=r(11),o=r(13),s=o.getDataIDsFromFragment,l=o.getVariablesFromFragment,u=o.getSelector;e.exports=function(e,t){var r,o=u(e,t),c=null==o?"null":"SingularReaderSelector"===o.kind?o.owner.identifier:"["+o.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",d=l(e,t),f=s(e,t);return n.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION?c+"/"+e.name+"/"+(null==d||i(d)?"{}":JSON.stringify(a(d)))+"/"+(void 0===f?"missing":null==f?"null":Array.isArray(f)?"["+f.join(",")+"]":f):c+"/"+e.name+"/"+JSON.stringify(a(d))+"/"+(null!==(r=JSON.stringify(f))&&void 0!==r?r:"missing")}},function(e,t,r){"use strict";var n=r(0),i=r(9).getInlineDataFragment,a=r(1).FRAGMENTS_KEY;e.exports=function(e,t){var r,o=i(e);if(null==t)return t;"object"!=typeof t&&n(!1,"readInlineData(): Expected an object, got `%s`.",typeof t);var s=null===(r=t[a])||void 0===r?void 0:r[o.name];return null==s&&n(!1,"readInlineData(): Expected fragment `%s` to be spread in the parent fragment.",o.name),s}},function(e,t,r){"use strict";var n=r(20),i=r(3),a=r(9).getRequest,o=r(14).createOperationDescriptor;e.exports=function(e,t){var r=a(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var s=t.configs,l=t.onCompleted,u=t.onError,c=t.onNext,d=t.variables,f=t.cacheConfig,p=o(r,d,f);i(!(t.updater&&s),"requestSubscription: Expected only one of `updater` and `configs` to be provided");var h=(s?n.convert(s,r,null,t.updater):t).updater;return{dispose:e.execute({operation:p,updater:h}).map((function(){return e.lookup(p.fragment).data})).subscribe({next:c,error:u,complete:l}).unsubscribe}}}])}));
|