{"version":3,"file":"relay-lJdI0QGB.js","sources":["../../../../node_modules/relay-runtime/lib/util/RelayConcreteNode.js","../../../../node_modules/invariant/browser.js","../../../../node_modules/fbjs/lib/emptyFunction.js","../../../../node_modules/relay-runtime/lib/query/GraphQLTag.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/arrayLikeToArray.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js","../../../../node_modules/relay-runtime/lib/util/handlePotentialSnapshotErrors.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/defineProperty.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectSpread2.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/iterableToArray.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/nonIterableSpread.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/toConsumableArray.js","../../../../node_modules/relay-runtime/lib/util/RelayDefaultHandleKey.js","../../../../node_modules/relay-runtime/lib/util/getRelayHandleKey.js","../../../../node_modules/relay-runtime/lib/util/stableCopy.js","../../../../node_modules/relay-runtime/lib/store/RelayStoreUtils.js","../../../../node_modules/relay-runtime/lib/store/RelayConcreteVariables.js","../../../../node_modules/fbjs/lib/areEqual.js","../../../../node_modules/relay-runtime/lib/store/RelayModernSelector.js","../../../../node_modules/relay-runtime/lib/store/ResolverFragments.js","../../../../node_modules/relay-runtime/lib/store/live-resolvers/resolverDataInjector.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/asyncToGenerator.js","../../../../node_modules/relay-runtime/lib/util/isPromise.js","../../../../node_modules/relay-runtime/lib/network/RelayObservable.js","../../../../node_modules/relay-runtime/lib/util/RelayReplaySubject.js","../../../../node_modules/relay-runtime/lib/query/fetchQueryInternal.js","../../../../node_modules/relay-runtime/lib/util/getPendingOperationsForFragment.js","../../../../node_modules/relay-runtime/lib/store/observeFragmentExperimental.js","../../../../node_modules/relay-runtime/lib/store/waitForFragmentExperimental.js","../../../../node_modules/relay-runtime/lib/experimental.js","../../../../node_modules/relay-runtime/lib/util/RelayFeatureFlags.js","../../../../node_modules/relay-runtime/lib/util/StringInterner.js","../../../../node_modules/relay-runtime/lib/store/ClientID.js","../../../../node_modules/relay-runtime/lib/handlers/connection/ConnectionInterface.js","../../../../node_modules/relay-runtime/lib/handlers/connection/ConnectionHandler.js","../../../../node_modules/relay-runtime/lib/handlers/connection/MutationHandlers.js","../../../../node_modules/relay-runtime/lib/handlers/RelayDefaultHandlerProvider.js","../../../../node_modules/relay-runtime/lib/store/isRelayModernEnvironment.js","../../../../node_modules/relay-runtime/lib/util/deepFreeze.js","../../../../node_modules/relay-runtime/lib/util/getRequestIdentifier.js","../../../../node_modules/relay-runtime/lib/store/RelayModernOperationDescriptor.js","../../../../node_modules/relay-runtime/lib/mutations/RelayDeclarativeMutationConfig.js","../../../../node_modules/relay-runtime/lib/mutations/applyOptimisticMutation.js","../../../../node_modules/relay-runtime/lib/mutations/commitLocalUpdate.js","../../../../node_modules/relay-runtime/lib/mutations/validateMutation.js","../../../../node_modules/relay-runtime/lib/mutations/commitMutation.js","../../../../node_modules/relay-runtime/lib/util/withProvidedVariables.js","../../../../node_modules/relay-runtime/lib/network/ConvertToExecuteFunction.js","../../../../node_modules/relay-runtime/lib/network/RelayNetwork.js","../../../../node_modules/relay-runtime/lib/network/RelayQueryResponseCache.js","../../../../node_modules/relay-runtime/lib/query/fetchQuery.js","../../../../node_modules/relay-runtime/lib/query/fetchQuery_DEPRECATED.js","../../../../node_modules/relay-runtime/lib/query/PreloadableQueryRegistry.js","../../../../node_modules/relay-runtime/lib/util/isScalarAndEqual.js","../../../../node_modules/relay-runtime/lib/util/recycleNodesInto.js","../../../../node_modules/relay-runtime/lib/store/RelayModernFragmentSpecResolver.js","../../../../node_modules/relay-runtime/lib/store/createFragmentSpecResolver.js","../../../../node_modules/relay-runtime/lib/store/createRelayContext.js","../../../../node_modules/relay-runtime/lib/store/live-resolvers/LiveResolverSuspenseSentinel.js","../../../../node_modules/relay-runtime/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/relay-runtime/lib/store/RelayModernRecord.js","../../../../node_modules/relay-runtime/lib/store/RelayRecordState.js","../../../../node_modules/relay-runtime/lib/store/RelayRecordSource.js","../../../../node_modules/relay-runtime/lib/multi-actor-environment/ActorIdentifier.js","../../../../node_modules/relay-runtime/lib/multi-actor-environment/ActorUtils.js","../../../../node_modules/relay-runtime/lib/store/RelayErrorTrie.js","../../../../node_modules/relay-runtime/lib/store/TypeID.js","../../../../node_modules/relay-runtime/lib/store/RelayResponseNormalizer.js","../../../../node_modules/relay-runtime/lib/store/normalizeResponse.js","../../../../node_modules/relay-runtime/lib/store/readInlineData.js","../../../../node_modules/relay-runtime/lib/util/generateID.js","../../../../node_modules/relay-runtime/lib/network/wrapNetworkWithLogObserver.js","../../../../node_modules/relay-runtime/lib/store/RelayOperationTracker.js","../../../../node_modules/relay-runtime/lib/util/registerEnvironmentWithDevTools.js","../../../../node_modules/relay-runtime/lib/store/ViewerPattern.js","../../../../node_modules/relay-runtime/lib/store/defaultGetDataID.js","../../../../node_modules/relay-runtime/lib/store/defaultRelayFieldLogger.js","../../../../node_modules/relay-runtime/lib/util/getOperation.js","../../../../node_modules/relay-runtime/lib/util/RelayError.js","../../../../node_modules/relay-runtime/lib/util/withStartAndDuration.js","../../../../node_modules/relay-runtime/lib/store/OperationExecutor.js","../../../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceMutator.js","../../../../node_modules/relay-runtime/lib/mutations/createUpdatableProxy.js","../../../../node_modules/relay-runtime/lib/mutations/readUpdatableFragment.js","../../../../node_modules/relay-runtime/lib/mutations/readUpdatableQuery.js","../../../../node_modules/relay-runtime/lib/mutations/RelayRecordProxy.js","../../../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceProxy.js","../../../../node_modules/relay-runtime/lib/mutations/RelayRecordSourceSelectorProxy.js","../../../../node_modules/relay-runtime/lib/store/ResolverCache.js","../../../../node_modules/relay-runtime/lib/store/RelayReader.js","../../../../node_modules/relay-runtime/lib/store/RelayPublishQueue.js","../../../../node_modules/relay-runtime/lib/store/RelayModernEnvironment.js","../../../../node_modules/relay-runtime/lib/util/resolveImmediate.js","../../../../node_modules/relay-runtime/lib/store/cloneRelayHandleSourceField.js","../../../../node_modules/relay-runtime/lib/store/cloneRelayScalarHandleSourceField.js","../../../../node_modules/relay-runtime/lib/store/DataChecker.js","../../../../node_modules/relay-runtime/lib/util/shallowFreeze.js","../../../../node_modules/relay-runtime/lib/store/live-resolvers/getOutputTypeRecordIDs.js","../../../../node_modules/relay-runtime/lib/store/live-resolvers/isLiveStateValue.js","../../../../node_modules/relay-runtime/lib/store/live-resolvers/LiveResolverCache.js","../../../../node_modules/relay-runtime/lib/store/RelayOptimisticRecordSource.js","../../../../node_modules/relay-runtime/lib/store/RelayReferenceMarker.js","../../../../node_modules/relay-runtime/lib/store/hasOverlappingIDs.js","../../../../node_modules/relay-runtime/lib/store/hasSignificantOverlappingIDs.js","../../../../node_modules/relay-runtime/lib/store/RelayStoreSubscriptions.js","../../../../node_modules/relay-runtime/lib/store/RelayModernStore.js","../../../../node_modules/relay-runtime/lib/subscription/requestSubscription.js","../../../../node_modules/relay-runtime/lib/util/createPayloadFor3DField.js","../../../../node_modules/relay-runtime/lib/util/isEmptyObject.js","../../../../node_modules/relay-runtime/lib/util/getFragmentIdentifier.js","../../../../node_modules/relay-runtime/lib/util/getRefetchMetadata.js","../../../../node_modules/relay-runtime/lib/util/getPaginationMetadata.js","../../../../node_modules/relay-runtime/lib/util/getPaginationVariables.js","../../../../node_modules/relay-runtime/lib/util/getValueAtPath.js","../../../../node_modules/relay-runtime/lib/util/RelayProfiler.js","../../../../node_modules/relay-runtime/lib/index.js","../../../../node_modules/relay-runtime/index.js","../../../../node_modules/react-relay/lib/ReactRelayContext.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/assertThisInitialized.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/setPrototypeOf.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/inheritsLoose.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/defineProperty.js","../../../../node_modules/react-relay/lib/assertFragmentMap.js","../../../../node_modules/react-relay/lib/ReactRelayContainerUtils.js","../../../../node_modules/react-relay/lib/ReactRelayQueryRendererContext.js","../../../../node_modules/react-relay/lib/buildReactRelayContainer.js","../../../../node_modules/react-relay/lib/isRelayEnvironment.js","../../../../node_modules/react-relay/lib/RelayContext.js","../../../../node_modules/react-relay/lib/ReactRelayFragmentContainer.js","../../../../node_modules/react-relay/lib/ReactRelayLocalQueryRenderer.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/objectSpread2.js","../../../../node_modules/react-relay/lib/getRootVariablesForFragments.js","../../../../node_modules/react-relay/lib/ReactRelayQueryFetcher.js","../../../../node_modules/react-relay/lib/ReactRelayPaginationContainer.js","../../../../node_modules/react-relay/lib/ReactRelayQueryRenderer.js","../../../../node_modules/react-relay/lib/ReactRelayRefetchContainer.js","../../../../node_modules/react-relay/lib/relay-hooks/ProfilerContext.js","../../../../node_modules/react-relay/lib/relay-hooks/useRelayEnvironment.js","../../../../node_modules/react-relay/lib/relay-hooks/EntryPointContainer.react.js","../../../../node_modules/react-relay/lib/relay-hooks/loadQuery.js","../../../../node_modules/react-relay/lib/relay-hooks/loadEntryPoint.js","../../../../node_modules/react-relay/lib/relay-hooks/RelayEnvironmentProvider.js","../../../../node_modules/react-relay/lib/relay-hooks/LRUCache.js","../../../../node_modules/react-relay/lib/relay-hooks/SuspenseResource.js","../../../../node_modules/react-relay/lib/relay-hooks/QueryResource.js","../../../../node_modules/react-relay/lib/relay-hooks/useUnsafeRef_DEPRECATED.js","../../../../node_modules/react-relay/lib/relay-hooks/useFetchTrackingRef.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/arrayLikeToArray.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/iterableToArray.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/nonIterableSpread.js","../../../../node_modules/react-relay/node_modules/@babel/runtime/helpers/toConsumableArray.js","../../../../node_modules/react-relay/lib/relay-hooks/useFragmentInternal_CURRENT.js","../../../../node_modules/react-relay/lib/relay-hooks/useFragmentInternal_EXPERIMENTAL.js","../../../../node_modules/react-relay/lib/relay-hooks/useFragmentInternal.js","../../../../node_modules/react-relay/lib/relay-hooks/useLazyLoadQueryNode.js","../../../../node_modules/react-relay/lib/relay-hooks/useMemoVariables.js","../../../../node_modules/react-relay/lib/relay-hooks/useMemoOperationDescriptor.js","../../../../node_modules/react-relay/lib/relay-hooks/useLazyLoadQuery.js","../../../../node_modules/react-relay/lib/relay-hooks/useClientQuery.js","../../../../node_modules/react-relay/lib/relay-hooks/useIsMountedRef.js","../../../../node_modules/react-relay/lib/relay-hooks/useEntryPointLoader.js","../../../../node_modules/react-relay/lib/relay-hooks/useFragment.js","../../../../node_modules/react-relay/lib/relay-hooks/useMutation.js","../../../../node_modules/react-relay/lib/relay-hooks/getConnectionState.js","../../../../node_modules/react-relay/lib/relay-hooks/useIsOperationNodeActive.js","../../../../node_modules/react-relay/lib/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js","../../../../node_modules/react-relay/lib/relay-hooks/useLoadMoreFunction.js","../../../../node_modules/react-relay/lib/relay-hooks/readFragmentInternal.js","../../../../node_modules/react-relay/lib/relay-hooks/useQueryLoader_EXPERIMENTAL.js","../../../../node_modules/react-relay/lib/relay-hooks/useQueryLoader.js","../../../../node_modules/react-relay/lib/relay-hooks/useRefetchableFragmentInternal.js","../../../../node_modules/react-relay/lib/relay-hooks/usePaginationFragment.js","../../../../node_modules/react-relay/lib/relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL.js","../../../../node_modules/react-relay/lib/relay-hooks/usePreloadedQuery.js","../../../../node_modules/react-relay/lib/relay-hooks/useRefetchableFragment.js","../../../../node_modules/react-relay/lib/relay-hooks/useSubscribeToInvalidationState.js","../../../../node_modules/react-relay/lib/relay-hooks/useSubscription.js","../../../../node_modules/react-relay/lib/index.js","../../../../node_modules/react-relay/index.js"],"sourcesContent":["'use strict';\n\nvar RelayConcreteNode = {\n ACTOR_CHANGE: 'ActorChange',\n CATCH_FIELD: 'CatchField',\n CONDITION: 'Condition',\n CLIENT_COMPONENT: 'ClientComponent',\n CLIENT_EDGE_TO_SERVER_OBJECT: 'ClientEdgeToServerObject',\n CLIENT_EDGE_TO_CLIENT_OBJECT: 'ClientEdgeToClientObject',\n CLIENT_EXTENSION: 'ClientExtension',\n DEFER: 'Defer',\n CONNECTION: 'Connection',\n FRAGMENT: 'Fragment',\n FRAGMENT_SPREAD: 'FragmentSpread',\n INLINE_DATA_FRAGMENT_SPREAD: 'InlineDataFragmentSpread',\n INLINE_DATA_FRAGMENT: 'InlineDataFragment',\n INLINE_FRAGMENT: 'InlineFragment',\n LINKED_FIELD: 'LinkedField',\n LINKED_HANDLE: 'LinkedHandle',\n LITERAL: 'Literal',\n LIST_VALUE: 'ListValue',\n LOCAL_ARGUMENT: 'LocalArgument',\n MODULE_IMPORT: 'ModuleImport',\n ALIASED_FRAGMENT_SPREAD: 'AliasedFragmentSpread',\n ALIASED_INLINE_FRAGMENT_SPREAD: 'AliasedInlineFragmentSpread',\n RELAY_RESOLVER: 'RelayResolver',\n RELAY_LIVE_RESOLVER: 'RelayLiveResolver',\n REQUIRED_FIELD: 'RequiredField',\n OBJECT_VALUE: 'ObjectValue',\n OPERATION: 'Operation',\n REQUEST: 'Request',\n ROOT_ARGUMENT: 'RootArgument',\n SCALAR_FIELD: 'ScalarField',\n SCALAR_HANDLE: 'ScalarHandle',\n SPLIT_OPERATION: 'SplitOperation',\n STREAM: 'Stream',\n TYPE_DISCRIMINATOR: 'TypeDiscriminator',\n UPDATABLE_QUERY: 'UpdatableQuery',\n VARIABLE: 'Variable'\n};\nmodule.exports = RelayConcreteNode;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\n\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","'use strict';\n\nvar RelayConcreteNode = require('../util/RelayConcreteNode');\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nfunction graphql(strings) {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, '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.') : invariant(false) : void 0;\n}\nfunction getNode(taggedNode) {\n var node = taggedNode;\n if (typeof node === 'function') {\n node = node();\n process.env.NODE_ENV !== \"production\" ? warning(false, 'RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.', node.kind === 'Fragment' ? node.name : node.operation.name) : void 0;\n } else if (node[\"default\"]) {\n node = node[\"default\"];\n }\n return node;\n}\nfunction isFragment(node) {\n var fragment = getNode(node);\n return typeof fragment === 'object' && fragment !== null && fragment.kind === RelayConcreteNode.FRAGMENT;\n}\nfunction isRequest(node) {\n var request = getNode(node);\n return typeof request === 'object' && request !== null && request.kind === RelayConcreteNode.REQUEST;\n}\nfunction isUpdatableQuery(node) {\n var updatableQuery = getNode(node);\n return typeof updatableQuery === 'object' && updatableQuery !== null && updatableQuery.kind === RelayConcreteNode.UPDATABLE_QUERY;\n}\nfunction isInlineDataFragment(node) {\n var fragment = getNode(node);\n return typeof fragment === 'object' && fragment !== null && fragment.kind === RelayConcreteNode.INLINE_DATA_FRAGMENT;\n}\nfunction getFragment(taggedNode) {\n var fragment = getNode(taggedNode);\n !isFragment(fragment) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'GraphQLTag: Expected a fragment, got `%s`.', JSON.stringify(fragment)) : invariant(false) : void 0;\n return fragment;\n}\nfunction getPaginationFragment(taggedNode) {\n var _fragment$metadata;\n var fragment = getFragment(taggedNode);\n var refetch = (_fragment$metadata = fragment.metadata) === null || _fragment$metadata === void 0 ? void 0 : _fragment$metadata.refetch;\n var connection = refetch === null || refetch === void 0 ? void 0 : refetch.connection;\n if (refetch === null || typeof refetch !== 'object' || connection === null || typeof connection !== 'object') {\n return null;\n }\n return fragment;\n}\nfunction getRefetchableFragment(taggedNode) {\n var _fragment$metadata2;\n var fragment = getFragment(taggedNode);\n var refetch = (_fragment$metadata2 = fragment.metadata) === null || _fragment$metadata2 === void 0 ? void 0 : _fragment$metadata2.refetch;\n if (refetch === null || typeof refetch !== 'object') {\n return null;\n }\n return fragment;\n}\nfunction getRequest(taggedNode) {\n var request = getNode(taggedNode);\n !isRequest(request) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'GraphQLTag: Expected a request, got `%s`.', JSON.stringify(request)) : invariant(false) : void 0;\n return request;\n}\nfunction getUpdatableQuery(taggedNode) {\n var updatableQuery = getNode(taggedNode);\n !isUpdatableQuery(updatableQuery) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'GraphQLTag: Expected a request, got `%s`.', JSON.stringify(updatableQuery)) : invariant(false) : void 0;\n return updatableQuery;\n}\nfunction getInlineDataFragment(taggedNode) {\n var fragment = getNode(taggedNode);\n !isInlineDataFragment(fragment) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'GraphQLTag: Expected an inline data fragment, got `%s`.', JSON.stringify(fragment)) : invariant(false) : void 0;\n return fragment;\n}\nmodule.exports = {\n getFragment: getFragment,\n getNode: getNode,\n getPaginationFragment: getPaginationFragment,\n getRefetchableFragment: getRefetchableFragment,\n getRequest: getRequest,\n getUpdatableQuery: getUpdatableQuery,\n getInlineDataFragment: getInlineDataFragment,\n graphql: graphql,\n isFragment: isFragment,\n isRequest: isRequest,\n isUpdatableQuery: isUpdatableQuery,\n isInlineDataFragment: isInlineDataFragment\n};","function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nfunction _createForOfIteratorHelper(r, e) {\n var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (!t) {\n if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) {\n t && (r = t);\n var _n = 0,\n F = function F() {};\n return {\n s: F,\n n: function n() {\n return _n >= r.length ? {\n done: !0\n } : {\n done: !1,\n value: r[_n++]\n };\n },\n e: function e(r) {\n throw r;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var o,\n a = !0,\n u = !1;\n return {\n s: function s() {\n t = t.call(r);\n },\n n: function n() {\n var r = t.next();\n return a = r.done, r;\n },\n e: function e(r) {\n u = !0, o = r;\n },\n f: function f() {\n try {\n a || null == t[\"return\"] || t[\"return\"]();\n } finally {\n if (u) throw o;\n }\n }\n };\n}\nmodule.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar invariant = require('invariant');\nfunction handleFieldErrors(environment, errorResponseFields) {\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(errorResponseFields),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var fieldError = _step.value;\n environment.relayFieldLogger(fieldError);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(errorResponseFields),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _fieldError = _step2.value;\n if (eventShouldThrow(_fieldError)) {\n switch (_fieldError.kind) {\n case 'relay_resolver.error':\n throw new Error(\"Relay: Resolver error at path '\".concat(_fieldError.fieldPath, \"' in '\").concat(_fieldError.owner, \"'.\"));\n case 'relay_field_payload.error':\n throw new Error(\"Relay: Unexpected response payload - check server logs for details.\");\n case 'missing_expected_data.throw':\n throw new Error(\"Relay: Missing expected data at path '\".concat(_fieldError.fieldPath, \"' in '\").concat(_fieldError.owner, \"'.\"));\n case 'missing_required_field.throw':\n throw new Error(\"Relay: Missing @required value at path '\".concat(_fieldError.fieldPath, \"' in '\").concat(_fieldError.owner, \"'.\"));\n case 'missing_required_field.log':\n case 'missing_expected_data.log':\n break;\n default:\n _fieldError.kind;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Unexpected event kind: %s', _fieldError.kind) : invariant(false) : void 0;\n }\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n}\nfunction eventShouldThrow(event) {\n switch (event.kind) {\n case 'relay_resolver.error':\n case 'relay_field_payload.error':\n return event.shouldThrow && !event.handled;\n case 'missing_expected_data.throw':\n case 'missing_required_field.throw':\n return !event.handled;\n case 'missing_required_field.log':\n case 'missing_expected_data.log':\n return false;\n default:\n event.kind;\n throw new Error('Relay: Unexpected event kind');\n }\n}\nfunction handlePotentialSnapshotErrors(environment, errorResponseFields) {\n if (errorResponseFields != null) {\n handleFieldErrors(environment, errorResponseFields);\n }\n}\nmodule.exports = {\n handlePotentialSnapshotErrors: handlePotentialSnapshotErrors,\n eventShouldThrow: eventShouldThrow\n};","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var defineProperty = require(\"./defineProperty.js\");\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nmodule.exports = _objectSpread2, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nmodule.exports = {\n DEFAULT_HANDLE_KEY: ''\n};","'use strict';\n\nvar _require = require('./RelayDefaultHandleKey'),\n DEFAULT_HANDLE_KEY = _require.DEFAULT_HANDLE_KEY;\nvar invariant = require('invariant');\nfunction getRelayHandleKey(handleName, key, fieldName) {\n if (key && key !== DEFAULT_HANDLE_KEY) {\n return \"__\".concat(key, \"_\").concat(handleName);\n }\n !(fieldName != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided') : invariant(false) : void 0;\n return \"__\".concat(fieldName, \"_\").concat(handleName);\n}\nmodule.exports = getRelayHandleKey;","'use strict';\n\nfunction stableCopy(value) {\n if (!value || typeof value !== 'object') {\n return value;\n }\n if (Array.isArray(value)) {\n return value.map(stableCopy);\n }\n var keys = Object.keys(value).sort();\n var stable = {};\n for (var i = 0; i < keys.length; i++) {\n stable[keys[i]] = stableCopy(value[keys[i]]);\n }\n return stable;\n}\nfunction hasCycle(value) {\n var parents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Set();\n if (!value || typeof value !== 'object') {\n return false;\n }\n if (parents.has(value)) {\n return true;\n }\n var newParents = new Set(parents);\n newParents.add(value);\n var children = Array.isArray(value) ? value : Object.values(value);\n return children.some(function (v) {\n return hasCycle(v, newParents);\n });\n}\nmodule.exports = {\n stableCopy: stableCopy,\n hasCycle: hasCycle\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar getRelayHandleKey = require('../util/getRelayHandleKey');\nvar RelayConcreteNode = require('../util/RelayConcreteNode');\nvar _require = require('../util/stableCopy'),\n stableCopy = _require.stableCopy;\nvar invariant = require('invariant');\nvar VARIABLE = RelayConcreteNode.VARIABLE,\n LITERAL = RelayConcreteNode.LITERAL,\n OBJECT_VALUE = RelayConcreteNode.OBJECT_VALUE,\n LIST_VALUE = RelayConcreteNode.LIST_VALUE;\nvar ERRORS_KEY = '__errors';\nvar MODULE_COMPONENT_KEY_PREFIX = '__module_component_';\nvar MODULE_OPERATION_KEY_PREFIX = '__module_operation_';\nfunction getArgumentValue(arg, variables) {\n if (arg.kind === VARIABLE) {\n return getStableVariableValue(arg.variableName, variables);\n } else if (arg.kind === LITERAL) {\n return arg.value;\n } else if (arg.kind === OBJECT_VALUE) {\n var value = {};\n arg.fields.forEach(function (field) {\n value[field.name] = getArgumentValue(field, variables);\n });\n return value;\n } else if (arg.kind === LIST_VALUE) {\n var _value = [];\n arg.items.forEach(function (item) {\n item != null ? _value.push(getArgumentValue(item, variables)) : null;\n });\n return _value;\n }\n}\nfunction getArgumentValues(args, variables, isWithinUnmatchedTypeRefinement) {\n var values = {};\n if (isWithinUnmatchedTypeRefinement) {\n values[RelayStoreUtils.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT] = true;\n }\n if (args) {\n args.forEach(function (arg) {\n values[arg.name] = getArgumentValue(arg, variables);\n });\n }\n return values;\n}\nfunction getHandleStorageKey(handleField, variables) {\n var dynamicKey = handleField.dynamicKey,\n handle = handleField.handle,\n key = handleField.key,\n name = handleField.name,\n args = handleField.args,\n filters = handleField.filters;\n var handleName = getRelayHandleKey(handle, key, name);\n var filterArgs = null;\n if (args && filters && args.length !== 0 && filters.length !== 0) {\n filterArgs = args.filter(function (arg) {\n return filters.indexOf(arg.name) > -1;\n });\n }\n if (dynamicKey) {\n filterArgs = filterArgs != null ? [dynamicKey].concat((0, _toConsumableArray2[\"default\"])(filterArgs)) : [dynamicKey];\n }\n if (filterArgs === null) {\n return handleName;\n } else {\n return formatStorageKey(handleName, getArgumentValues(filterArgs, variables));\n }\n}\nfunction getStorageKey(field, variables) {\n if (field.storageKey) {\n return field.storageKey;\n }\n var args = getArguments(field);\n var name = field.name;\n return args && args.length !== 0 ? formatStorageKey(name, getArgumentValues(args, variables)) : name;\n}\nfunction getArguments(field) {\n if (field.kind === 'RelayResolver' || field.kind === 'RelayLiveResolver') {\n var _field$fragment2;\n if (field.args == null) {\n var _field$fragment;\n return (_field$fragment = field.fragment) === null || _field$fragment === void 0 ? void 0 : _field$fragment.args;\n }\n if (((_field$fragment2 = field.fragment) === null || _field$fragment2 === void 0 ? void 0 : _field$fragment2.args) == null) {\n return field.args;\n }\n return field.args.concat(field.fragment.args);\n }\n var args = typeof field.args === 'undefined' ? undefined : field.args;\n return args;\n}\nfunction getStableStorageKey(name, args) {\n return formatStorageKey(name, stableCopy(args));\n}\nfunction formatStorageKey(name, argValues) {\n if (!argValues) {\n return name;\n }\n var values = [];\n for (var argName in argValues) {\n if (argValues.hasOwnProperty(argName)) {\n var value = argValues[argName];\n if (value != null) {\n var _JSON$stringify;\n values.push(argName + ':' + ((_JSON$stringify = JSON.stringify(value)) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : 'undefined'));\n }\n }\n }\n return values.length === 0 ? name : name + \"(\".concat(values.join(','), \")\");\n}\nfunction getStableVariableValue(name, variables) {\n !variables.hasOwnProperty(name) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'getVariableValue(): Undefined variable `%s`.', name) : invariant(false) : void 0;\n return stableCopy(variables[name]);\n}\nfunction getModuleComponentKey(documentName) {\n return \"\".concat(MODULE_COMPONENT_KEY_PREFIX).concat(documentName);\n}\nfunction getModuleOperationKey(documentName) {\n return \"\".concat(MODULE_OPERATION_KEY_PREFIX).concat(documentName);\n}\nvar RelayStoreUtils = {\n ACTOR_IDENTIFIER_KEY: '__actorIdentifier',\n CLIENT_EDGE_TRAVERSAL_PATH: '__clientEdgeTraversalPath',\n FRAGMENTS_KEY: '__fragments',\n FRAGMENT_OWNER_KEY: '__fragmentOwner',\n FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT: '$isWithinUnmatchedTypeRefinement',\n FRAGMENT_PROP_NAME_KEY: '__fragmentPropName',\n MODULE_COMPONENT_KEY: '__module_component',\n ERRORS_KEY: ERRORS_KEY,\n ID_KEY: '__id',\n REF_KEY: '__ref',\n REFS_KEY: '__refs',\n ROOT_ID: 'client:root',\n ROOT_TYPE: '__Root',\n TYPENAME_KEY: '__typename',\n INVALIDATED_AT_KEY: '__invalidated_at',\n RELAY_RESOLVER_VALUE_KEY: '__resolverValue',\n RELAY_RESOLVER_INVALIDATION_KEY: '__resolverValueMayBeInvalid',\n RELAY_RESOLVER_SNAPSHOT_KEY: '__resolverSnapshot',\n RELAY_RESOLVER_ERROR_KEY: '__resolverError',\n RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS: '__resolverOutputTypeRecordIDs',\n formatStorageKey: formatStorageKey,\n getArgumentValue: getArgumentValue,\n getArgumentValues: getArgumentValues,\n getHandleStorageKey: getHandleStorageKey,\n getStorageKey: getStorageKey,\n getStableStorageKey: getStableStorageKey,\n getModuleComponentKey: getModuleComponentKey,\n getModuleOperationKey: getModuleOperationKey\n};\nmodule.exports = RelayStoreUtils;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _require = require('./RelayStoreUtils'),\n getArgumentValues = _require.getArgumentValues;\nvar invariant = require('invariant');\nfunction getFragmentVariables(fragment, rootVariables, argumentVariables) {\n if (fragment.argumentDefinitions == null) {\n return argumentVariables;\n }\n var variables;\n fragment.argumentDefinitions.forEach(function (definition) {\n if (argumentVariables.hasOwnProperty(definition.name)) {\n return;\n }\n variables = variables || (0, _objectSpread2[\"default\"])({}, argumentVariables);\n switch (definition.kind) {\n case 'LocalArgument':\n variables[definition.name] = definition.defaultValue;\n break;\n case 'RootArgument':\n if (!rootVariables.hasOwnProperty(definition.name)) {\n variables[definition.name] = undefined;\n break;\n }\n variables[definition.name] = rootVariables[definition.name];\n break;\n default:\n definition;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.', definition.kind, fragment.name) : invariant(false) : void 0;\n }\n });\n return variables || argumentVariables;\n}\nfunction getOperationVariables(operation, providedVariables, variables) {\n var operationVariables = {};\n operation.argumentDefinitions.forEach(function (def) {\n var value = def.defaultValue;\n if (variables[def.name] != null) {\n value = variables[def.name];\n }\n operationVariables[def.name] = value;\n });\n if (providedVariables != null) {\n Object.keys(providedVariables).forEach(function (varName) {\n operationVariables[varName] = providedVariables[varName].get();\n });\n }\n return operationVariables;\n}\nfunction getLocalVariables(currentVariables, argumentDefinitions, args) {\n if (argumentDefinitions == null) {\n return currentVariables;\n }\n var nextVariables = (0, _objectSpread2[\"default\"])({}, currentVariables);\n var nextArgs = args ? getArgumentValues(args, currentVariables) : {};\n argumentDefinitions.forEach(function (def) {\n var _nextArgs$def$name;\n var value = (_nextArgs$def$name = nextArgs[def.name]) !== null && _nextArgs$def$name !== void 0 ? _nextArgs$def$name : def.defaultValue;\n nextVariables[def.name] = value;\n });\n return nextVariables;\n}\nmodule.exports = {\n getLocalVariables: getLocalVariables,\n getFragmentVariables: getFragmentVariables,\n getOperationVariables: getOperationVariables\n};","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nvar aStackPool = [];\nvar bStackPool = [];\n/**\n * Checks if two values are equal. Values may be primitives, arrays, or objects.\n * Returns true if both arguments have the same keys and values.\n *\n * @see http://underscorejs.org\n * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.\n * @license MIT\n */\n\nfunction areEqual(a, b) {\n var aStack = aStackPool.length ? aStackPool.pop() : [];\n var bStack = bStackPool.length ? bStackPool.pop() : [];\n var result = eq(a, b, aStack, bStack);\n aStack.length = 0;\n bStack.length = 0;\n aStackPool.push(aStack);\n bStackPool.push(bStack);\n return result;\n}\n\nfunction eq(a, b, aStack, bStack) {\n if (a === b) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n return a !== 0 || 1 / a == 1 / b;\n }\n\n if (a == null || b == null) {\n // a or b can be `null` or `undefined`\n return false;\n }\n\n if (typeof a != 'object' || typeof b != 'object') {\n return false;\n }\n\n var objToStr = Object.prototype.toString;\n var className = objToStr.call(a);\n\n if (className != objToStr.call(b)) {\n return false;\n }\n\n switch (className) {\n case '[object String]':\n return a == String(b);\n\n case '[object Number]':\n return isNaN(a) || isNaN(b) ? false : a == Number(b);\n\n case '[object Date]':\n case '[object Boolean]':\n return +a == +b;\n\n case '[object RegExp]':\n return a.source == b.source && a.global == b.global && a.multiline == b.multiline && a.ignoreCase == b.ignoreCase;\n } // Assume equality for cyclic structures.\n\n\n var length = aStack.length;\n\n while (length--) {\n if (aStack[length] == a) {\n return bStack[length] == b;\n }\n }\n\n aStack.push(a);\n bStack.push(b);\n var size = 0; // Recursively compare objects and arrays.\n\n if (className === '[object Array]') {\n size = a.length;\n\n if (size !== b.length) {\n return false;\n } // Deep compare the contents, ignoring non-numeric properties.\n\n\n while (size--) {\n if (!eq(a[size], b[size], aStack, bStack)) {\n return false;\n }\n }\n } else {\n if (a.constructor !== b.constructor) {\n return false;\n }\n\n if (a.hasOwnProperty('valueOf') && b.hasOwnProperty('valueOf')) {\n return a.valueOf() == b.valueOf();\n }\n\n var keys = Object.keys(a);\n\n if (keys.length != Object.keys(b).length) {\n return false;\n }\n\n for (var i = 0; i < keys.length; i++) {\n if (!eq(a[keys[i]], b[keys[i]], aStack, bStack)) {\n return false;\n }\n }\n }\n\n aStack.pop();\n bStack.pop();\n return true;\n}\n\nmodule.exports = areEqual;","'use strict';\n\nvar _require = require('./RelayConcreteVariables'),\n getFragmentVariables = _require.getFragmentVariables;\nvar _require2 = require('./RelayStoreUtils'),\n CLIENT_EDGE_TRAVERSAL_PATH = _require2.CLIENT_EDGE_TRAVERSAL_PATH,\n FRAGMENT_OWNER_KEY = _require2.FRAGMENT_OWNER_KEY,\n FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT = _require2.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,\n FRAGMENTS_KEY = _require2.FRAGMENTS_KEY,\n ID_KEY = _require2.ID_KEY;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nfunction getSingularSelector(fragment, item) {\n !(typeof item === 'object' && item !== null && !Array.isArray(item)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an object, got ' + '`%s`.', fragment.name, JSON.stringify(item)) : invariant(false) : void 0;\n var dataID = item[ID_KEY];\n var fragments = item[FRAGMENTS_KEY];\n var mixedOwner = item[FRAGMENT_OWNER_KEY];\n var mixedClientEdgeTraversalPath = item[CLIENT_EDGE_TRAVERSAL_PATH];\n if (typeof dataID === 'string' && typeof fragments === 'object' && fragments !== null && typeof fragments[fragment.name] === 'object' && fragments[fragment.name] !== null && typeof mixedOwner === 'object' && mixedOwner !== null && (mixedClientEdgeTraversalPath == null || Array.isArray(mixedClientEdgeTraversalPath))) {\n var owner = mixedOwner;\n var clientEdgeTraversalPath = mixedClientEdgeTraversalPath;\n var argumentVariables = fragments[fragment.name];\n var fragmentVariables = getFragmentVariables(fragment, owner.variables, argumentVariables);\n var isWithinUnmatchedTypeRefinement = argumentVariables[FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT] === true;\n return createReaderSelector(fragment, dataID, fragmentVariables, owner, isWithinUnmatchedTypeRefinement, clientEdgeTraversalPath);\n }\n if (process.env.NODE_ENV !== \"production\") {\n var stringifiedItem = JSON.stringify(item);\n if (stringifiedItem.length > 499) {\n stringifiedItem = stringifiedItem.substr(0, 498) + \"\\u2026\";\n }\n process.env.NODE_ENV !== \"production\" ? warning(false, '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)`.', fragment.name, stringifiedItem, fragment.name) : void 0;\n }\n return null;\n}\nfunction getPluralSelector(fragment, items) {\n var selectors = null;\n items.forEach(function (item, ii) {\n var selector = item != null ? getSingularSelector(fragment, item) : null;\n if (selector != null) {\n selectors = selectors || [];\n selectors.push(selector);\n }\n });\n if (selectors == null) {\n return null;\n } else {\n return {\n kind: 'PluralReaderSelector',\n selectors: selectors\n };\n }\n}\nfunction getSelector(fragment, item) {\n if (item == null) {\n return item;\n } else if (fragment.metadata && fragment.metadata.plural === true) {\n !Array.isArray(item) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '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.', fragment.name, JSON.stringify(item), fragment.name) : invariant(false) : void 0;\n return getPluralSelector(fragment, item);\n } else {\n !!Array.isArray(item) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '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.', fragment.name, JSON.stringify(item), fragment.name) : invariant(false) : void 0;\n return getSingularSelector(fragment, item);\n }\n}\nfunction getSelectorsFromObject(fragments, object) {\n var selectors = {};\n for (var key in fragments) {\n if (fragments.hasOwnProperty(key)) {\n var fragment = fragments[key];\n var item = object[key];\n selectors[key] = getSelector(fragment, item);\n }\n }\n return selectors;\n}\nfunction getDataIDsFromObject(fragments, object) {\n var ids = {};\n for (var key in fragments) {\n if (fragments.hasOwnProperty(key)) {\n var fragment = fragments[key];\n var item = object[key];\n ids[key] = getDataIDsFromFragment(fragment, item);\n }\n }\n return ids;\n}\nfunction getDataIDsFromFragment(fragment, item) {\n if (item == null) {\n return item;\n } else if (fragment.metadata && fragment.metadata.plural === true) {\n !Array.isArray(item) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '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.', fragment.name, JSON.stringify(item), fragment.name) : invariant(false) : void 0;\n return getDataIDs(fragment, item);\n } else {\n !!Array.isArray(item) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '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.', fragment.name, JSON.stringify(item), fragment.name) : invariant(false) : void 0;\n return getDataID(fragment, item);\n }\n}\nfunction getDataIDs(fragment, items) {\n var ids = null;\n items.forEach(function (item) {\n var id = item != null ? getDataID(fragment, item) : null;\n if (id != null) {\n ids = ids || [];\n ids.push(id);\n }\n });\n return ids;\n}\nfunction getDataID(fragment, item) {\n !(typeof item === 'object' && item !== null && !Array.isArray(item)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernSelector: Expected value for fragment `%s` to be an object, got ' + '`%s`.', fragment.name, JSON.stringify(item)) : invariant(false) : void 0;\n var dataID = item[ID_KEY];\n if (typeof dataID === 'string') {\n return dataID;\n }\n process.env.NODE_ENV !== \"production\" ? warning(false, '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.\", fragment.name, JSON.stringify(item), fragment.name, fragment.name) : void 0;\n return null;\n}\nfunction getVariablesFromObject(fragments, object) {\n var variables = {};\n for (var key in fragments) {\n if (fragments.hasOwnProperty(key)) {\n var fragment = fragments[key];\n var item = object[key];\n var itemVariables = getVariablesFromFragment(fragment, item);\n Object.assign(variables, itemVariables);\n }\n }\n return variables;\n}\nfunction getVariablesFromFragment(fragment, item) {\n var _fragment$metadata;\n if (item == null) {\n return {};\n } else if (((_fragment$metadata = fragment.metadata) === null || _fragment$metadata === void 0 ? void 0 : _fragment$metadata.plural) === true) {\n !Array.isArray(item) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '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.', fragment.name, JSON.stringify(item), fragment.name) : invariant(false) : void 0;\n return getVariablesFromPluralFragment(fragment, item);\n } else {\n !!Array.isArray(item) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '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.', fragment.name, JSON.stringify(item), fragment.name) : invariant(false) : void 0;\n return getVariablesFromSingularFragment(fragment, item) || {};\n }\n}\nfunction getVariablesFromSingularFragment(fragment, item) {\n var selector = getSingularSelector(fragment, item);\n if (!selector) {\n return null;\n }\n return selector.variables;\n}\nfunction getVariablesFromPluralFragment(fragment, items) {\n var variables = {};\n items.forEach(function (value, ii) {\n if (value != null) {\n var itemVariables = getVariablesFromSingularFragment(fragment, value);\n if (itemVariables != null) {\n Object.assign(variables, itemVariables);\n }\n }\n });\n return variables;\n}\nfunction areEqualSingularSelectors(thisSelector, thatSelector) {\n return thisSelector.dataID === thatSelector.dataID && thisSelector.node === thatSelector.node && areEqual(thisSelector.variables, thatSelector.variables) && areEqualOwners(thisSelector.owner, thatSelector.owner) && thisSelector.isWithinUnmatchedTypeRefinement === thatSelector.isWithinUnmatchedTypeRefinement && areEqualClientEdgeTraversalPaths(thisSelector.clientEdgeTraversalPath, thatSelector.clientEdgeTraversalPath);\n}\nfunction areEqualOwners(thisOwner, thatOwner) {\n if (thisOwner === thatOwner) {\n return true;\n } else {\n return thisOwner.identifier === thatOwner.identifier && areEqual(thisOwner.cacheConfig, thatOwner.cacheConfig);\n }\n}\nfunction areEqualClientEdgeTraversalPaths(thisPath, thatPath) {\n if (thisPath === thatPath) {\n return true;\n }\n if (thisPath == null || thatPath == null || thisPath.length !== thatPath.length) {\n return false;\n }\n var idx = thisPath.length;\n while (idx--) {\n var a = thisPath[idx];\n var b = thatPath[idx];\n if (a === b) {\n continue;\n }\n if (a == null || b == null || a.clientEdgeDestinationID !== b.clientEdgeDestinationID || a.readerClientEdge !== b.readerClientEdge) {\n return false;\n }\n }\n return true;\n}\nfunction areEqualSelectors(a, b) {\n if (a === b) {\n return true;\n } else if (a == null) {\n return b == null;\n } else if (b == null) {\n return a == null;\n } else if (a.kind === 'SingularReaderSelector' && b.kind === 'SingularReaderSelector') {\n return areEqualSingularSelectors(a, b);\n } else if (a.kind === 'PluralReaderSelector' && b.kind === 'PluralReaderSelector') {\n return a.selectors.length === b.selectors.length && a.selectors.every(function (s, i) {\n return areEqualSingularSelectors(s, b.selectors[i]);\n });\n } else {\n return false;\n }\n}\nfunction createReaderSelector(fragment, dataID, variables, request) {\n var isWithinUnmatchedTypeRefinement = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var clientEdgeTraversalPath = arguments.length > 5 ? arguments[5] : undefined;\n return {\n kind: 'SingularReaderSelector',\n dataID: dataID,\n isWithinUnmatchedTypeRefinement: isWithinUnmatchedTypeRefinement,\n clientEdgeTraversalPath: clientEdgeTraversalPath !== null && clientEdgeTraversalPath !== void 0 ? clientEdgeTraversalPath : null,\n node: fragment,\n variables: variables,\n owner: request\n };\n}\nfunction createNormalizationSelector(node, dataID, variables) {\n return {\n dataID: dataID,\n node: node,\n variables: variables\n };\n}\nmodule.exports = {\n areEqualSelectors: areEqualSelectors,\n createReaderSelector: createReaderSelector,\n createNormalizationSelector: createNormalizationSelector,\n getDataIDsFromFragment: getDataIDsFromFragment,\n getDataIDsFromObject: getDataIDsFromObject,\n getSingularSelector: getSingularSelector,\n getPluralSelector: getPluralSelector,\n getSelector: getSelector,\n getSelectorsFromObject: getSelectorsFromObject,\n getVariablesFromSingularFragment: getVariablesFromSingularFragment,\n getVariablesFromPluralFragment: getVariablesFromPluralFragment,\n getVariablesFromFragment: getVariablesFromFragment,\n getVariablesFromObject: getVariablesFromObject\n};","'use strict';\n\nvar _require = require('../query/GraphQLTag'),\n getFragment = _require.getFragment;\nvar _require2 = require('../util/handlePotentialSnapshotErrors'),\n eventShouldThrow = _require2.eventShouldThrow;\nvar _require3 = require('./RelayModernSelector'),\n getSelector = _require3.getSelector;\nvar invariant = require('invariant');\nvar contextStack = [];\nfunction withResolverContext(context, cb) {\n contextStack.push(context);\n try {\n return cb();\n } finally {\n contextStack.pop();\n }\n}\nfunction readFragment(fragmentInput, fragmentKey) {\n if (!contextStack.length) {\n throw new Error('readFragment should be called only from within a Relay Resolver function.');\n }\n var context = contextStack[contextStack.length - 1];\n var fragmentNode = getFragment(fragmentInput);\n var fragmentSelector = getSelector(fragmentNode, fragmentKey);\n !(fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Expected a selector for the fragment of the resolver \".concat(fragmentNode.name, \", but got null.\")) : invariant(false) : void 0;\n !(fragmentSelector.kind === 'SingularReaderSelector') ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Expected a singular reader selector for the fragment of the resolver \".concat(fragmentNode.name, \", but it was plural.\")) : invariant(false) : void 0;\n var _context$getDataForRe = context.getDataForResolverFragment(fragmentSelector, fragmentKey),\n data = _context$getDataForRe.data,\n isMissingData = _context$getDataForRe.isMissingData,\n errorResponseFields = _context$getDataForRe.errorResponseFields;\n if (isMissingData || errorResponseFields != null && errorResponseFields.some(eventShouldThrow)) {\n throw RESOLVER_FRAGMENT_ERRORED_SENTINEL;\n }\n return data;\n}\nvar RESOLVER_FRAGMENT_ERRORED_SENTINEL = {};\nmodule.exports = {\n readFragment: readFragment,\n withResolverContext: withResolverContext,\n RESOLVER_FRAGMENT_ERRORED_SENTINEL: RESOLVER_FRAGMENT_ERRORED_SENTINEL\n};","'use strict';\n\nvar _require = require('../ResolverFragments'),\n readFragment = _require.readFragment;\nvar invariant = require('invariant');\nfunction resolverDataInjector(fragment, _resolverFn, fieldName, isRequiredField) {\n var resolverFn = _resolverFn;\n return function (fragmentKey, args) {\n var data = readFragment(fragment, fragmentKey);\n if (fieldName != null) {\n if (data == null) {\n if (isRequiredField === true) {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected required resolver field `%s` in fragment `%s` to be present. But resolvers fragment data is null/undefined.', fieldName, fragment.name) : invariant(false) : void 0;\n } else {\n return resolverFn(null, args);\n }\n }\n if (fieldName in data) {\n if (isRequiredField === true) {\n !(data[fieldName] != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected required resolver field `%s` in fragment `%s` to be non-null.', fieldName, fragment.name) : invariant(false) : void 0;\n }\n return resolverFn(data[fieldName], args);\n } else {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Missing field `%s` in fragment `%s` in resolver response.', fieldName, fragment.name) : invariant(false) : void 0;\n }\n } else {\n return resolverFn(data, args);\n }\n };\n}\nmodule.exports = resolverDataInjector;","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nfunction isPromise(p) {\n return p != null && typeof p === 'object' && typeof p.then === 'function';\n}\nmodule.exports = isPromise;","'use strict';\n\nvar isPromise = require('../util/isPromise');\nvar hostReportError = swallowError;\nvar RelayObservable = /*#__PURE__*/function () {\n RelayObservable.create = function create(source) {\n return new RelayObservable(source);\n };\n function RelayObservable(source) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!source || typeof source !== 'function') {\n throw new Error('Source must be a Function: ' + String(source));\n }\n }\n this._source = source;\n }\n RelayObservable.onUnhandledError = function onUnhandledError(callback) {\n hostReportError = callback;\n };\n RelayObservable.from = function from(obj) {\n return isObservable(obj) ? fromObservable(obj) : isPromise(obj) ? fromPromise(obj) : fromValue(obj);\n };\n var _proto = RelayObservable.prototype;\n _proto[\"catch\"] = function _catch(fn) {\n var _this = this;\n return RelayObservable.create(function (sink) {\n var subscription;\n _this.subscribe({\n start: function start(sub) {\n subscription = sub;\n },\n next: sink.next,\n complete: sink.complete,\n error: function error(_error2) {\n try {\n fn(_error2).subscribe({\n start: function start(sub) {\n subscription = sub;\n },\n next: sink.next,\n complete: sink.complete,\n error: sink.error\n });\n } catch (error2) {\n sink.error(error2, true);\n }\n }\n });\n return function () {\n return subscription.unsubscribe();\n };\n });\n };\n _proto.concat = function concat(next) {\n var _this2 = this;\n return RelayObservable.create(function (sink) {\n var current;\n _this2.subscribe({\n start: function start(subscription) {\n current = subscription;\n },\n next: sink.next,\n error: sink.error,\n complete: function complete() {\n current = next.subscribe(sink);\n }\n });\n return function () {\n current && current.unsubscribe();\n };\n });\n };\n _proto[\"do\"] = function _do(observer) {\n var _this3 = this;\n return RelayObservable.create(function (sink) {\n var both = function both(action) {\n return function () {\n try {\n observer[action] && observer[action].apply(observer, arguments);\n } catch (error) {\n hostReportError(error, true);\n }\n sink[action] && sink[action].apply(sink, arguments);\n };\n };\n return _this3.subscribe({\n start: both('start'),\n next: both('next'),\n error: both('error'),\n complete: both('complete'),\n unsubscribe: both('unsubscribe')\n });\n });\n };\n _proto[\"finally\"] = function _finally(fn) {\n var _this4 = this;\n return RelayObservable.create(function (sink) {\n var subscription = _this4.subscribe(sink);\n return function () {\n subscription.unsubscribe();\n fn();\n };\n });\n };\n _proto.ifEmpty = function ifEmpty(alternate) {\n var _this5 = this;\n return RelayObservable.create(function (sink) {\n var hasValue = false;\n var current;\n current = _this5.subscribe({\n next: function next(value) {\n hasValue = true;\n sink.next(value);\n },\n error: sink.error,\n complete: function complete() {\n if (hasValue) {\n sink.complete();\n } else {\n current = alternate.subscribe(sink);\n }\n }\n });\n return function () {\n current && current.unsubscribe();\n };\n });\n };\n _proto.subscribe = function subscribe(observer) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!observer || typeof observer !== 'object') {\n throw new Error('Observer must be an Object with callbacks: ' + String(observer));\n }\n }\n return _subscribe(this._source, observer);\n };\n _proto.map = function map(fn) {\n var _this6 = this;\n return RelayObservable.create(function (sink) {\n var subscription = _this6.subscribe({\n complete: sink.complete,\n error: sink.error,\n next: function next(value) {\n try {\n var mapValue = fn(value);\n sink.next(mapValue);\n } catch (error) {\n sink.error(error, true);\n }\n }\n });\n return function () {\n subscription.unsubscribe();\n };\n });\n };\n _proto.mergeMap = function mergeMap(fn) {\n var _this7 = this;\n return RelayObservable.create(function (sink) {\n var subscriptions = [];\n function start(subscription) {\n this._sub = subscription;\n subscriptions.push(subscription);\n }\n function complete() {\n subscriptions.splice(subscriptions.indexOf(this._sub), 1);\n if (subscriptions.length === 0) {\n sink.complete();\n }\n }\n _this7.subscribe({\n start: start,\n next: function next(value) {\n try {\n if (!sink.closed) {\n RelayObservable.from(fn(value)).subscribe({\n start: start,\n next: sink.next,\n error: sink.error,\n complete: complete\n });\n }\n } catch (error) {\n sink.error(error, true);\n }\n },\n error: sink.error,\n complete: complete\n });\n return function () {\n subscriptions.forEach(function (sub) {\n return sub.unsubscribe();\n });\n subscriptions.length = 0;\n };\n });\n };\n _proto.poll = function poll(pollInterval) {\n var _this8 = this;\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof pollInterval !== 'number' || pollInterval <= 0) {\n throw new Error('RelayObservable: Expected pollInterval to be positive, got: ' + pollInterval);\n }\n }\n return RelayObservable.create(function (sink) {\n var subscription;\n var timeout;\n var poll = function poll() {\n subscription = _this8.subscribe({\n next: sink.next,\n error: sink.error,\n complete: function complete() {\n timeout = setTimeout(poll, pollInterval);\n }\n });\n };\n poll();\n return function () {\n clearTimeout(timeout);\n subscription.unsubscribe();\n };\n });\n };\n _proto.toPromise = function toPromise() {\n var _this9 = this;\n return new Promise(function (resolve, reject) {\n var resolved = false;\n _this9.subscribe({\n next: function next(val) {\n if (!resolved) {\n resolved = true;\n resolve(val);\n }\n },\n error: reject,\n complete: resolve\n });\n });\n };\n return RelayObservable;\n}();\nfunction isObservable(obj) {\n return typeof obj === 'object' && obj !== null && typeof obj.subscribe === 'function';\n}\nfunction fromObservable(obj) {\n return obj instanceof RelayObservable ? obj : RelayObservable.create(function (sink) {\n return obj.subscribe(sink);\n });\n}\nfunction fromPromise(promise) {\n return RelayObservable.create(function (sink) {\n promise.then(function (value) {\n sink.next(value);\n sink.complete();\n }, sink.error);\n });\n}\nfunction fromValue(value) {\n return RelayObservable.create(function (sink) {\n sink.next(value);\n sink.complete();\n });\n}\nfunction _subscribe(source, observer) {\n var closed = false;\n var cleanup;\n var withClosed = function withClosed(obj) {\n return Object.defineProperty(obj, 'closed', {\n get: function get() {\n return closed;\n }\n });\n };\n function doCleanup() {\n if (cleanup) {\n if (cleanup.unsubscribe) {\n cleanup.unsubscribe();\n } else {\n try {\n cleanup();\n } catch (error) {\n hostReportError(error, true);\n }\n }\n cleanup = undefined;\n }\n }\n var subscription = withClosed({\n unsubscribe: function unsubscribe() {\n if (!closed) {\n closed = true;\n try {\n observer.unsubscribe && observer.unsubscribe(subscription);\n } catch (error) {\n hostReportError(error, true);\n } finally {\n doCleanup();\n }\n }\n }\n });\n try {\n observer.start && observer.start(subscription);\n } catch (error) {\n hostReportError(error, true);\n }\n if (closed) {\n return subscription;\n }\n var sink = withClosed({\n next: function next(value) {\n if (!closed && observer.next) {\n try {\n observer.next(value);\n } catch (error) {\n hostReportError(error, true);\n }\n }\n },\n error: function error(_error3, isUncaughtThrownError) {\n if (closed || !observer.error) {\n closed = true;\n hostReportError(_error3, isUncaughtThrownError || false);\n doCleanup();\n } else {\n closed = true;\n try {\n observer.error(_error3);\n } catch (error2) {\n hostReportError(error2, true);\n } finally {\n doCleanup();\n }\n }\n },\n complete: function complete() {\n if (!closed) {\n closed = true;\n try {\n observer.complete && observer.complete();\n } catch (error) {\n hostReportError(error, true);\n } finally {\n doCleanup();\n }\n }\n }\n });\n try {\n cleanup = source(sink);\n } catch (error) {\n sink.error(error, true);\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (cleanup !== undefined && typeof cleanup !== 'function' && (!cleanup || typeof cleanup.unsubscribe !== 'function')) {\n throw new Error('Returned cleanup function which cannot be called: ' + String(cleanup));\n }\n }\n if (closed) {\n doCleanup();\n }\n return subscription;\n}\nfunction swallowError(_error, _isUncaughtThrownError) {}\nif (process.env.NODE_ENV !== \"production\") {\n RelayObservable.onUnhandledError(function (error, isUncaughtThrownError) {\n if (typeof fail === 'function') {\n fail(String(error));\n } else if (isUncaughtThrownError) {\n setTimeout(function () {\n throw error;\n });\n } else if (typeof console !== 'undefined') {\n console.error('RelayObservable: Unhandled Error', error);\n }\n });\n}\nmodule.exports = RelayObservable;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar RelayObservable = require('../network/RelayObservable');\nvar invariant = require('invariant');\nvar RelayReplaySubject = /*#__PURE__*/function () {\n function RelayReplaySubject() {\n var _this = this;\n (0, _defineProperty2[\"default\"])(this, \"_complete\", false);\n (0, _defineProperty2[\"default\"])(this, \"_events\", []);\n (0, _defineProperty2[\"default\"])(this, \"_sinks\", new Set());\n (0, _defineProperty2[\"default\"])(this, \"_subscription\", []);\n this._observable = RelayObservable.create(function (sink) {\n _this._sinks.add(sink);\n var events = _this._events;\n for (var i = 0; i < events.length; i++) {\n if (sink.closed) {\n break;\n }\n var event = events[i];\n switch (event.kind) {\n case 'complete':\n sink.complete();\n break;\n case 'error':\n sink.error(event.error);\n break;\n case 'next':\n sink.next(event.data);\n break;\n default:\n event.kind;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReplaySubject: Unknown event kind `%s`.', event.kind) : invariant(false) : void 0;\n }\n }\n return function () {\n _this._sinks[\"delete\"](sink);\n };\n });\n }\n var _proto = RelayReplaySubject.prototype;\n _proto.complete = function complete() {\n if (this._complete === true) {\n return;\n }\n this._complete = true;\n this._events.push({\n kind: 'complete'\n });\n this._sinks.forEach(function (sink) {\n return sink.complete();\n });\n };\n _proto.error = function error(_error) {\n if (this._complete === true) {\n return;\n }\n this._complete = true;\n this._events.push({\n kind: 'error',\n error: _error\n });\n this._sinks.forEach(function (sink) {\n return sink.error(_error);\n });\n };\n _proto.next = function next(data) {\n if (this._complete === true) {\n return;\n }\n this._events.push({\n kind: 'next',\n data: data\n });\n this._sinks.forEach(function (sink) {\n return sink.next(data);\n });\n };\n _proto.subscribe = function subscribe(observer) {\n var subscription = this._observable.subscribe(observer);\n this._subscription.push(subscription);\n return subscription;\n };\n _proto.unsubscribe = function unsubscribe() {\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(this._subscription),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var subscription = _step.value;\n subscription.unsubscribe();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n this._subscription = [];\n };\n _proto.getObserverCount = function getObserverCount() {\n return this._sinks.size;\n };\n return RelayReplaySubject;\n}();\nmodule.exports = RelayReplaySubject;","'use strict';\n\nvar Observable = require('../network/RelayObservable');\nvar RelayReplaySubject = require('../util/RelayReplaySubject');\nvar invariant = require('invariant');\nvar WEAKMAP_SUPPORTED = typeof WeakMap === 'function';\nvar requestCachesByEnvironment = WEAKMAP_SUPPORTED ? new WeakMap() : new Map();\nfunction fetchQuery(environment, operation) {\n return fetchQueryDeduped(environment, operation.request.identifier, function () {\n return environment.execute({\n operation: operation\n });\n });\n}\nfunction fetchQueryDeduped(environment, identifier, fetchFn) {\n return Observable.create(function (sink) {\n var requestCache = getRequestCache(environment);\n var cachedRequest = requestCache.get(identifier);\n if (!cachedRequest) {\n fetchFn()[\"finally\"](function () {\n return requestCache[\"delete\"](identifier);\n }).subscribe({\n start: function start(subscription) {\n cachedRequest = {\n identifier: identifier,\n subject: new RelayReplaySubject(),\n subjectForInFlightStatus: new RelayReplaySubject(),\n subscription: subscription,\n promise: null\n };\n requestCache.set(identifier, cachedRequest);\n },\n next: function next(response) {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.next(response);\n cachedReq.subjectForInFlightStatus.next(response);\n },\n error: function error(_error) {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.error(_error);\n cachedReq.subjectForInFlightStatus.error(_error);\n },\n complete: function complete() {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.complete();\n cachedReq.subjectForInFlightStatus.complete();\n },\n unsubscribe: function unsubscribe(subscription) {\n var cachedReq = getCachedRequest(requestCache, identifier);\n cachedReq.subject.unsubscribe();\n cachedReq.subjectForInFlightStatus.unsubscribe();\n }\n });\n }\n !(cachedRequest != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be ' + 'called synchronously') : invariant(false) : void 0;\n return getObservableForCachedRequest(requestCache, cachedRequest).subscribe(sink);\n });\n}\nfunction getObservableForCachedRequest(requestCache, cachedRequest) {\n return Observable.create(function (sink) {\n var subscription = cachedRequest.subject.subscribe(sink);\n return function () {\n subscription.unsubscribe();\n var cachedRequestInstance = requestCache.get(cachedRequest.identifier);\n if (cachedRequestInstance) {\n var requestSubscription = cachedRequestInstance.subscription;\n if (requestSubscription != null && cachedRequestInstance.subject.getObserverCount() === 0) {\n requestSubscription.unsubscribe();\n requestCache[\"delete\"](cachedRequest.identifier);\n }\n }\n };\n });\n}\nfunction getActiveStatusObservableForCachedRequest(environment, requestCache, cachedRequest) {\n return Observable.create(function (sink) {\n var subscription = cachedRequest.subjectForInFlightStatus.subscribe({\n error: sink.error,\n next: function next(response) {\n if (!environment.isRequestActive(cachedRequest.identifier)) {\n sink.complete();\n return;\n }\n sink.next();\n },\n complete: sink.complete,\n unsubscribe: sink.complete\n });\n return function () {\n subscription.unsubscribe();\n };\n });\n}\nfunction getPromiseForActiveRequest(environment, request) {\n var requestCache = getRequestCache(environment);\n var cachedRequest = requestCache.get(request.identifier);\n if (!cachedRequest) {\n return null;\n }\n if (!environment.isRequestActive(cachedRequest.identifier)) {\n return null;\n }\n var promise = new Promise(function (resolve, reject) {\n var resolveOnNext = false;\n getActiveStatusObservableForCachedRequest(environment, requestCache, cachedRequest).subscribe({\n complete: resolve,\n error: reject,\n next: function next(response) {\n if (resolveOnNext) {\n resolve(response);\n }\n }\n });\n resolveOnNext = true;\n });\n return promise;\n}\nfunction getObservableForActiveRequest(environment, request) {\n var requestCache = getRequestCache(environment);\n var cachedRequest = requestCache.get(request.identifier);\n if (!cachedRequest) {\n return null;\n }\n if (!environment.isRequestActive(cachedRequest.identifier)) {\n return null;\n }\n return getActiveStatusObservableForCachedRequest(environment, requestCache, cachedRequest);\n}\nfunction getRequestCache(environment) {\n var cached = requestCachesByEnvironment.get(environment);\n if (cached != null) {\n return cached;\n }\n var requestCache = new Map();\n requestCachesByEnvironment.set(environment, requestCache);\n return requestCache;\n}\nfunction getCachedRequest(requestCache, identifier) {\n var cached = requestCache.get(identifier);\n !(cached != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[fetchQueryInternal] getCachedRequest: Expected request to be cached') : invariant(false) : void 0;\n return cached;\n}\nmodule.exports = {\n fetchQuery: fetchQuery,\n fetchQueryDeduped: fetchQueryDeduped,\n getPromiseForActiveRequest: getPromiseForActiveRequest,\n getObservableForActiveRequest: getObservableForActiveRequest\n};","'use strict';\n\nvar _require = require('../query/fetchQueryInternal'),\n getPromiseForActiveRequest = _require.getPromiseForActiveRequest;\nfunction getPendingOperationsForFragment(environment, fragmentNode, fragmentOwner) {\n var _pendingOperations$ma, _pendingOperations;\n var pendingOperations = [];\n var promise = getPromiseForActiveRequest(environment, fragmentOwner);\n if (promise != null) {\n pendingOperations = [fragmentOwner];\n } else {\n var _result$pendingOperat, _result$promise;\n var operationTracker = environment.getOperationTracker();\n var result = operationTracker.getPendingOperationsAffectingOwner(fragmentOwner);\n pendingOperations = (_result$pendingOperat = result === null || result === void 0 ? void 0 : result.pendingOperations) !== null && _result$pendingOperat !== void 0 ? _result$pendingOperat : [];\n promise = (_result$promise = result === null || result === void 0 ? void 0 : result.promise) !== null && _result$promise !== void 0 ? _result$promise : null;\n }\n if (!promise) {\n return null;\n }\n var pendingOperationName = (_pendingOperations$ma = (_pendingOperations = pendingOperations) === null || _pendingOperations === void 0 ? void 0 : _pendingOperations.map(function (op) {\n return op.node.params.name;\n }).join(',')) !== null && _pendingOperations$ma !== void 0 ? _pendingOperations$ma : null;\n if (pendingOperationName == null || pendingOperationName.length === 0) {\n pendingOperationName = 'Unknown pending operation';\n }\n var fragmentName = fragmentNode.name;\n var promiseDisplayName = pendingOperationName === fragmentName ? \"Relay(\".concat(pendingOperationName, \")\") : \"Relay(\".concat(pendingOperationName, \":\").concat(fragmentName, \")\");\n promise.displayName = promiseDisplayName;\n environment.__log({\n name: 'pendingoperation.found',\n fragment: fragmentNode,\n fragmentOwner: fragmentOwner,\n pendingOperations: pendingOperations\n });\n return {\n promise: promise,\n pendingOperations: pendingOperations\n };\n}\nmodule.exports = getPendingOperationsForFragment;","\"use strict\";\n\nvar _asyncToGenerator = require(\"@babel/runtime/helpers/asyncToGenerator\").default;\nvar Observable = require('../network/RelayObservable');\nvar _require = require('../query/GraphQLTag'),\n getFragment = _require.getFragment;\nvar getPendingOperationsForFragment = require('../util/getPendingOperationsForFragment');\nvar _require2 = require('../util/handlePotentialSnapshotErrors'),\n handlePotentialSnapshotErrors = _require2.handlePotentialSnapshotErrors;\nvar _require3 = require('./RelayModernSelector'),\n getSelector = _require3.getSelector;\nvar invariant = require('invariant');\nfunction waitForFragmentData(_x, _x2, _x3) {\n return _waitForFragmentData.apply(this, arguments);\n}\nfunction _waitForFragmentData() {\n _waitForFragmentData = _asyncToGenerator(function* (environment, fragment, fragmentRef) {\n var subscription;\n try {\n var _subscription;\n var data = yield new Promise(function (resolve, reject) {\n subscription = observeFragment(environment, fragment, fragmentRef).subscribe({\n next: function next(val) {\n if (val.state === 'ok') {\n resolve(val.value);\n } else if (val.state === 'error') {\n reject(val.error);\n }\n }\n });\n });\n (_subscription = subscription) === null || _subscription === void 0 ? void 0 : _subscription.unsubscribe();\n return data;\n } catch (e) {\n var _subscription2;\n (_subscription2 = subscription) === null || _subscription2 === void 0 ? void 0 : _subscription2.unsubscribe();\n throw e;\n }\n });\n return _waitForFragmentData.apply(this, arguments);\n}\nfunction observeFragment(environment, fragment, fragmentRef) {\n var _fragmentNode$metadat;\n var fragmentNode = getFragment(fragment);\n var fragmentSelector = getSelector(fragmentNode, fragmentRef);\n !(((_fragmentNode$metadat = fragmentNode.metadata) === null || _fragmentNode$metadat === void 0 ? void 0 : _fragmentNode$metadat.hasClientEdges) == null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Client edges aren't supported yet.\") : invariant(false) : void 0;\n !(fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected a selector, got null.') : invariant(false) : void 0;\n switch (fragmentSelector.kind) {\n case 'SingularReaderSelector':\n return observeSelector(environment, fragment, fragmentSelector);\n case 'PluralReaderSelector':\n {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Plural fragments are not supported') : invariant(false) : void 0;\n }\n }\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unsupported fragment selector kind') : invariant(false) : void 0;\n}\nfunction observeSelector(environment, fragmentNode, fragmentSelector) {\n var snapshot = environment.lookup(fragmentSelector);\n return Observable.create(function (sink) {\n sink.next(snapshotToFragmentState(environment, fragmentNode, fragmentSelector.owner, snapshot));\n var subscription = environment.subscribe(snapshot, function (nextSnapshot) {\n sink.next(snapshotToFragmentState(environment, fragmentNode, fragmentSelector.owner, nextSnapshot));\n });\n return function () {\n return subscription.dispose();\n };\n });\n}\nfunction snapshotToFragmentState(environment, fragmentNode, owner, snapshot) {\n var missingLiveResolverFields = snapshot.missingLiveResolverFields != null && snapshot.missingLiveResolverFields.length > 0;\n var missingClientEdges = snapshot.missingClientEdges != null && snapshot.missingClientEdges.length > 0;\n if (missingLiveResolverFields || missingClientEdges) {\n return {\n state: 'loading'\n };\n }\n if (snapshot.isMissingData) {\n var pendingOperations = getPendingOperationsForFragment(environment, fragmentNode, owner);\n if (pendingOperations != null) {\n return {\n state: 'loading'\n };\n }\n }\n try {\n handlePotentialSnapshotErrors(environment, snapshot.errorResponseFields);\n } catch (error) {\n return {\n error: error,\n state: 'error'\n };\n }\n !(snapshot.data != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected data to be non-null.') : invariant(false) : void 0;\n return {\n state: 'ok',\n value: snapshot.data\n };\n}\nmodule.exports = {\n observeFragment: observeFragment,\n waitForFragmentData: waitForFragmentData\n};","\"use strict\";\n\nvar _asyncToGenerator = require(\"@babel/runtime/helpers/asyncToGenerator\").default;\nvar _require = require('./observeFragmentExperimental'),\n observeFragment = _require.observeFragment;\nfunction waitForFragmentData(_x, _x2, _x3) {\n return _waitForFragmentData.apply(this, arguments);\n}\nfunction _waitForFragmentData() {\n _waitForFragmentData = _asyncToGenerator(function* (environment, fragment, fragmentRef) {\n var subscription;\n try {\n var _subscription;\n var data = yield new Promise(function (resolve, reject) {\n subscription = observeFragment(environment, fragment, fragmentRef).subscribe({\n next: function next(val) {\n if (val.state === 'ok') {\n resolve(val.value);\n } else if (val.state === 'error') {\n reject(val.error);\n }\n }\n });\n });\n (_subscription = subscription) === null || _subscription === void 0 ? void 0 : _subscription.unsubscribe();\n return data;\n } catch (e) {\n var _subscription2;\n (_subscription2 = subscription) === null || _subscription2 === void 0 ? void 0 : _subscription2.unsubscribe();\n throw e;\n }\n });\n return _waitForFragmentData.apply(this, arguments);\n}\nmodule.exports = {\n waitForFragmentData: waitForFragmentData\n};","'use strict';\n\nvar resolverDataInjector = require('./store/live-resolvers/resolverDataInjector');\nvar _require = require('./store/observeFragmentExperimental'),\n observeFragment = _require.observeFragment;\nvar _require2 = require('./store/waitForFragmentExperimental'),\n waitForFragmentData = _require2.waitForFragmentData;\nfunction isValueResult(input) {\n return input.ok === true;\n}\nfunction isErrorResult(input) {\n return input.ok === false;\n}\nmodule.exports = {\n resolverDataInjector: resolverDataInjector,\n isValueResult: isValueResult,\n isErrorResult: isErrorResult,\n observeFragment: observeFragment,\n waitForFragmentData: waitForFragmentData\n};","'use strict';\n\nvar RelayFeatureFlags = {\n ENABLE_VARIABLE_CONNECTION_KEY: false,\n ENABLE_RELAY_RESOLVERS: false,\n ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION: false,\n ENABLE_FRIENDLY_QUERY_NAME_GQL_URL: false,\n ENABLE_DO_NOT_WRAP_LIVE_QUERY: false,\n ENABLE_NOTIFY_SUBSCRIPTION: false,\n BATCH_ASYNC_MODULE_UPDATES_FN: null,\n ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT: false,\n MAX_DATA_ID_LENGTH: null,\n STRING_INTERN_LEVEL: 0,\n LOG_MISSING_RECORDS_IN_PROD: false,\n ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS: false,\n ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION: false,\n ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES: false,\n ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE: false,\n PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION: false,\n MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD: false,\n ENABLE_CYLE_DETECTION_IN_VARIABLES: false,\n ENABLE_ACTIVITY_COMPATIBILITY: false,\n ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX: true\n};\nmodule.exports = RelayFeatureFlags;","'use strict';\n\nvar internTable = new Map();\nvar nextIndex = 1;\nvar digits = initDigitTable();\nvar INTERN_PREFIX = '\\t';\nvar ESCAPE_PREFIX = '\\v';\nfunction initDigitTable() {\n var digits = new Set();\n for (var i = 0; i < 10; ++i) {\n digits.add(i.toString());\n }\n return digits;\n}\nfunction escape(str) {\n if (str[0] === INTERN_PREFIX && digits.has(str[1]) || str[0] === ESCAPE_PREFIX) {\n return ESCAPE_PREFIX + str;\n }\n return str;\n}\nfunction intern(str, limit) {\n if (limit == null || str.length < limit) {\n return escape(str);\n }\n var internedString = internTable.get(str);\n if (internedString != null) {\n return internedString;\n }\n internedString = INTERN_PREFIX + nextIndex++;\n internTable.set(str, internedString);\n return internedString;\n}\nmodule.exports = {\n intern: intern\n};","'use strict';\n\nvar RelayFeatureFlags = require('../util/RelayFeatureFlags');\nvar _require = require('../util/StringInterner'),\n intern = _require.intern;\nvar PREFIX = 'client:';\nfunction generateClientID(id, storageKey, index) {\n var internedId = RelayFeatureFlags.STRING_INTERN_LEVEL <= 0 ? id : intern(id, RelayFeatureFlags.MAX_DATA_ID_LENGTH);\n var key = internedId + ':' + storageKey;\n if (index != null) {\n key += ':' + index;\n }\n if (key.indexOf(PREFIX) !== 0) {\n key = PREFIX + key;\n }\n return key;\n}\nfunction isClientID(id) {\n return id.indexOf(PREFIX) === 0;\n}\nvar localID = 0;\nfunction generateUniqueClientID() {\n return \"\".concat(PREFIX, \"local:\").concat(localID++);\n}\nfunction generateClientObjectClientID(typename, localId, index) {\n var key = \"\".concat(PREFIX).concat(typename, \":\").concat(localId);\n if (index != null) {\n key += ':' + index;\n }\n return key;\n}\nmodule.exports = {\n generateClientID: generateClientID,\n generateClientObjectClientID: generateClientObjectClientID,\n generateUniqueClientID: generateUniqueClientID,\n isClientID: isClientID\n};","'use strict';\n\nvar CONNECTION_CALLS = {\n after: true,\n before: true,\n find: true,\n first: true,\n last: true,\n surrounds: true\n};\nvar config = {\n CURSOR: 'cursor',\n EDGES: 'edges',\n END_CURSOR: 'endCursor',\n HAS_NEXT_PAGE: 'hasNextPage',\n HAS_PREV_PAGE: 'hasPreviousPage',\n NODE: 'node',\n PAGE_INFO_TYPE: 'PageInfo',\n PAGE_INFO: 'pageInfo',\n START_CURSOR: 'startCursor'\n};\nvar ConnectionInterface = {\n inject: function inject(newConfig) {\n config = newConfig;\n },\n get: function get() {\n return config;\n },\n isConnectionCall: function isConnectionCall(call) {\n return CONNECTION_CALLS.hasOwnProperty(call.name);\n }\n};\nmodule.exports = ConnectionInterface;","'use strict';\n\nvar _require = require('../../store/ClientID'),\n generateClientID = _require.generateClientID;\nvar _require2 = require('../../store/RelayStoreUtils'),\n getStableStorageKey = _require2.getStableStorageKey;\nvar getRelayHandleKey = require('../../util/getRelayHandleKey');\nvar ConnectionInterface = require('./ConnectionInterface');\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nvar CONNECTION = 'connection';\nvar NEXT_EDGE_INDEX = '__connection_next_edge_index';\nfunction update(store, payload) {\n var record = store.get(payload.dataID);\n if (!record) {\n return;\n }\n var _ConnectionInterface$ = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$.EDGES,\n END_CURSOR = _ConnectionInterface$.END_CURSOR,\n HAS_NEXT_PAGE = _ConnectionInterface$.HAS_NEXT_PAGE,\n HAS_PREV_PAGE = _ConnectionInterface$.HAS_PREV_PAGE,\n PAGE_INFO = _ConnectionInterface$.PAGE_INFO,\n PAGE_INFO_TYPE = _ConnectionInterface$.PAGE_INFO_TYPE,\n START_CURSOR = _ConnectionInterface$.START_CURSOR;\n var serverConnection = record.getLinkedRecord(payload.fieldKey);\n var serverPageInfo = serverConnection && serverConnection.getLinkedRecord(PAGE_INFO);\n if (!serverConnection) {\n record.setValue(null, payload.handleKey, undefined, record.getErrors(payload.fieldKey));\n return;\n }\n var clientConnectionID = generateClientID(record.getDataID(), payload.handleKey);\n var clientConnectionField = record.getLinkedRecord(payload.handleKey);\n var clientConnection = clientConnectionField !== null && clientConnectionField !== void 0 ? clientConnectionField : store.get(clientConnectionID);\n var clientPageInfo = clientConnection && clientConnection.getLinkedRecord(PAGE_INFO);\n if (!clientConnection) {\n var connection = store.create(clientConnectionID, serverConnection.getType());\n connection.setValue(0, NEXT_EDGE_INDEX);\n connection.copyFieldsFrom(serverConnection);\n var serverEdges = serverConnection.getLinkedRecords(EDGES);\n if (serverEdges) {\n serverEdges = serverEdges.map(function (edge) {\n return buildConnectionEdge(store, connection, edge);\n });\n connection.setLinkedRecords(serverEdges, EDGES);\n }\n record.setLinkedRecord(connection, payload.handleKey);\n clientPageInfo = store.create(generateClientID(connection.getDataID(), PAGE_INFO), PAGE_INFO_TYPE);\n clientPageInfo.setValue(false, HAS_NEXT_PAGE);\n clientPageInfo.setValue(false, HAS_PREV_PAGE);\n clientPageInfo.setValue(null, END_CURSOR);\n clientPageInfo.setValue(null, START_CURSOR);\n if (serverPageInfo) {\n clientPageInfo.copyFieldsFrom(serverPageInfo);\n }\n connection.setLinkedRecord(clientPageInfo, PAGE_INFO);\n } else {\n if (clientConnectionField == null) {\n record.setLinkedRecord(clientConnection, payload.handleKey);\n }\n var _connection = clientConnection;\n var _serverEdges = serverConnection.getLinkedRecords(EDGES);\n if (_serverEdges) {\n _serverEdges = _serverEdges.map(function (edge) {\n return buildConnectionEdge(store, _connection, edge);\n });\n }\n var prevEdges = _connection.getLinkedRecords(EDGES);\n var prevPageInfo = _connection.getLinkedRecord(PAGE_INFO);\n _connection.copyFieldsFrom(serverConnection);\n if (prevEdges) {\n _connection.setLinkedRecords(prevEdges, EDGES);\n }\n if (prevPageInfo) {\n _connection.setLinkedRecord(prevPageInfo, PAGE_INFO);\n }\n var nextEdges = [];\n var args = payload.args;\n if (prevEdges && _serverEdges) {\n if (args.after != null) {\n var _clientPageInfo;\n var clientEndCursor = (_clientPageInfo = clientPageInfo) === null || _clientPageInfo === void 0 ? void 0 : _clientPageInfo.getValue(END_CURSOR);\n var serverEndCursor = serverPageInfo === null || serverPageInfo === void 0 ? void 0 : serverPageInfo.getValue(END_CURSOR);\n var isAddingEdgesAfterCurrentPage = clientPageInfo && args.after === clientEndCursor;\n var isFillingOutCurrentPage = clientPageInfo && clientEndCursor === serverEndCursor;\n if (isAddingEdgesAfterCurrentPage || isFillingOutCurrentPage) {\n var nodeIDs = new Set();\n mergeEdges(prevEdges, nextEdges, nodeIDs);\n mergeEdges(_serverEdges, nextEdges, nodeIDs);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected after cursor `%s`, edges must ' + 'be fetched from the end of the list (`%s`).', args.after, clientPageInfo && clientPageInfo.getValue(END_CURSOR)) : void 0;\n return;\n }\n } else if (args.before != null) {\n if (clientPageInfo && args.before === clientPageInfo.getValue(START_CURSOR)) {\n var _nodeIDs = new Set();\n mergeEdges(_serverEdges, nextEdges, _nodeIDs);\n mergeEdges(prevEdges, nextEdges, _nodeIDs);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected before cursor `%s`, edges must ' + 'be fetched from the beginning of the list (`%s`).', args.before, clientPageInfo && clientPageInfo.getValue(START_CURSOR)) : void 0;\n return;\n }\n } else {\n nextEdges = _serverEdges;\n }\n } else if (_serverEdges) {\n nextEdges = _serverEdges;\n } else {\n nextEdges = prevEdges;\n }\n if (nextEdges != null && nextEdges !== prevEdges) {\n _connection.setLinkedRecords(nextEdges, EDGES);\n }\n if (clientPageInfo && serverPageInfo) {\n if (args.after == null && args.before == null) {\n clientPageInfo.copyFieldsFrom(serverPageInfo);\n } else if (args.before != null || args.after == null && args.last) {\n clientPageInfo.setValue(!!serverPageInfo.getValue(HAS_PREV_PAGE), HAS_PREV_PAGE);\n var startCursor = serverPageInfo.getValue(START_CURSOR);\n if (typeof startCursor === 'string') {\n clientPageInfo.setValue(startCursor, START_CURSOR);\n }\n } else if (args.after != null || args.before == null && args.first) {\n clientPageInfo.setValue(!!serverPageInfo.getValue(HAS_NEXT_PAGE), HAS_NEXT_PAGE);\n var endCursor = serverPageInfo.getValue(END_CURSOR);\n if (typeof endCursor === 'string') {\n clientPageInfo.setValue(endCursor, END_CURSOR);\n }\n }\n }\n }\n}\nfunction getConnection(record, key, filters) {\n var handleKey = getRelayHandleKey(CONNECTION, key, null);\n return record.getLinkedRecord(handleKey, filters);\n}\nfunction getConnectionID(recordID, key, filters) {\n var handleKey = getRelayHandleKey(CONNECTION, key, null);\n var storageKey = getStableStorageKey(handleKey, filters);\n return generateClientID(recordID, storageKey);\n}\nfunction insertEdgeAfter(record, newEdge, cursor) {\n var _ConnectionInterface$2 = ConnectionInterface.get(),\n CURSOR = _ConnectionInterface$2.CURSOR,\n EDGES = _ConnectionInterface$2.EDGES;\n var edges = record.getLinkedRecords(EDGES);\n if (!edges) {\n record.setLinkedRecords([newEdge], EDGES);\n return;\n }\n var nextEdges;\n if (cursor == null) {\n nextEdges = edges.concat(newEdge);\n } else {\n nextEdges = [];\n var foundCursor = false;\n for (var ii = 0; ii < edges.length; ii++) {\n var edge = edges[ii];\n nextEdges.push(edge);\n if (edge == null) {\n continue;\n }\n var edgeCursor = edge.getValue(CURSOR);\n if (cursor === edgeCursor) {\n nextEdges.push(newEdge);\n foundCursor = true;\n }\n }\n if (!foundCursor) {\n nextEdges.push(newEdge);\n }\n }\n record.setLinkedRecords(nextEdges, EDGES);\n}\nfunction createEdge(store, record, node, edgeType) {\n var _ConnectionInterface$3 = ConnectionInterface.get(),\n NODE = _ConnectionInterface$3.NODE;\n var edgeID = generateClientID(record.getDataID(), node.getDataID());\n var edge = store.get(edgeID);\n if (!edge) {\n edge = store.create(edgeID, edgeType);\n }\n edge.setLinkedRecord(node, NODE);\n if (edge.getValue('cursor') == null) {\n edge.setValue(null, 'cursor');\n }\n return edge;\n}\nfunction insertEdgeBefore(record, newEdge, cursor) {\n var _ConnectionInterface$4 = ConnectionInterface.get(),\n CURSOR = _ConnectionInterface$4.CURSOR,\n EDGES = _ConnectionInterface$4.EDGES;\n var edges = record.getLinkedRecords(EDGES);\n if (!edges) {\n record.setLinkedRecords([newEdge], EDGES);\n return;\n }\n var nextEdges;\n if (cursor == null) {\n nextEdges = [newEdge].concat(edges);\n } else {\n nextEdges = [];\n var foundCursor = false;\n for (var ii = 0; ii < edges.length; ii++) {\n var edge = edges[ii];\n if (edge != null) {\n var edgeCursor = edge.getValue(CURSOR);\n if (cursor === edgeCursor) {\n nextEdges.push(newEdge);\n foundCursor = true;\n }\n }\n nextEdges.push(edge);\n }\n if (!foundCursor) {\n nextEdges.unshift(newEdge);\n }\n }\n record.setLinkedRecords(nextEdges, EDGES);\n}\nfunction deleteNode(record, nodeID) {\n var _ConnectionInterface$5 = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$5.EDGES,\n NODE = _ConnectionInterface$5.NODE;\n var edges = record.getLinkedRecords(EDGES);\n if (!edges) {\n return;\n }\n var nextEdges;\n for (var ii = 0; ii < edges.length; ii++) {\n var edge = edges[ii];\n var node = edge && edge.getLinkedRecord(NODE);\n if (node != null && node.getDataID() === nodeID) {\n if (nextEdges === undefined) {\n nextEdges = edges.slice(0, ii);\n }\n } else if (nextEdges !== undefined) {\n nextEdges.push(edge);\n }\n }\n if (nextEdges !== undefined) {\n record.setLinkedRecords(nextEdges, EDGES);\n }\n}\nfunction buildConnectionEdge(store, connection, edge) {\n if (edge == null) {\n return edge;\n }\n var _ConnectionInterface$6 = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$6.EDGES;\n var edgeIndex = connection.getValue(NEXT_EDGE_INDEX);\n !(typeof edgeIndex === 'number') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ConnectionHandler: Expected %s to be a number, got `%s`.', NEXT_EDGE_INDEX, edgeIndex) : invariant(false) : void 0;\n var edgeID = generateClientID(connection.getDataID(), EDGES, edgeIndex);\n var connectionEdge = store.create(edgeID, edge.getType());\n connectionEdge.copyFieldsFrom(edge);\n if (connectionEdge.getValue('cursor') == null) {\n connectionEdge.setValue(null, 'cursor');\n }\n connection.setValue(edgeIndex + 1, NEXT_EDGE_INDEX);\n return connectionEdge;\n}\nfunction mergeEdges(sourceEdges, targetEdges, nodeIDs) {\n var _ConnectionInterface$7 = ConnectionInterface.get(),\n NODE = _ConnectionInterface$7.NODE;\n for (var ii = 0; ii < sourceEdges.length; ii++) {\n var edge = sourceEdges[ii];\n if (!edge) {\n continue;\n }\n var node = edge.getLinkedRecord(NODE);\n var nodeID = node && node.getDataID();\n if (nodeID) {\n if (nodeIDs.has(nodeID)) {\n continue;\n }\n nodeIDs.add(nodeID);\n }\n targetEdges.push(edge);\n }\n}\nmodule.exports = {\n buildConnectionEdge: buildConnectionEdge,\n createEdge: createEdge,\n deleteNode: deleteNode,\n getConnection: getConnection,\n getConnectionID: getConnectionID,\n insertEdgeAfter: insertEdgeAfter,\n insertEdgeBefore: insertEdgeBefore,\n update: update\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar ConnectionHandler = require('./ConnectionHandler');\nvar ConnectionInterface = require('./ConnectionInterface');\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nvar DeleteRecordHandler = {\n update: function update(store, payload) {\n var record = store.get(payload.dataID);\n if (record != null) {\n var idOrIds = record.getValue(payload.fieldKey);\n if (typeof idOrIds === 'string') {\n store[\"delete\"](idOrIds);\n } else if (Array.isArray(idOrIds)) {\n idOrIds.forEach(function (id) {\n if (typeof id === 'string') {\n store[\"delete\"](id);\n }\n });\n }\n }\n }\n};\nvar DeleteEdgeHandler = {\n update: function update(store, payload) {\n var record = store.get(payload.dataID);\n if (record == null) {\n return;\n }\n var connections = payload.handleArgs.connections;\n !(connections != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'MutationHandlers: Expected connection IDs to be specified.') : invariant(false) : void 0;\n var idOrIds = record.getValue(payload.fieldKey);\n var idList = Array.isArray(idOrIds) ? idOrIds : [idOrIds];\n idList.forEach(function (id) {\n if (typeof id === 'string') {\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(connections),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var connectionID = _step.value;\n var connection = store.get(connectionID);\n if (connection == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[Relay] The connection with id `%s` doesn't exist.\", connectionID) : void 0;\n continue;\n }\n ConnectionHandler.deleteNode(connection, id);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n });\n }\n};\nvar AppendEdgeHandler = {\n update: edgeUpdater(ConnectionHandler.insertEdgeAfter)\n};\nvar PrependEdgeHandler = {\n update: edgeUpdater(ConnectionHandler.insertEdgeBefore)\n};\nvar AppendNodeHandler = {\n update: nodeUpdater(ConnectionHandler.insertEdgeAfter)\n};\nvar PrependNodeHandler = {\n update: nodeUpdater(ConnectionHandler.insertEdgeBefore)\n};\nfunction edgeUpdater(insertFn) {\n return function (store, payload) {\n var _serverEdges;\n var record = store.get(payload.dataID);\n if (record == null) {\n return;\n }\n var connections = payload.handleArgs.connections;\n !(connections != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'MutationHandlers: Expected connection IDs to be specified.') : invariant(false) : void 0;\n var singleServerEdge, serverEdges;\n try {\n singleServerEdge = record.getLinkedRecord(payload.fieldKey);\n } catch (_unused) {}\n if (!singleServerEdge) {\n try {\n serverEdges = record.getLinkedRecords(payload.fieldKey);\n } catch (_unused2) {}\n }\n if (singleServerEdge == null && serverEdges == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'MutationHandlers: Expected the server edge to be non-null.') : void 0;\n return;\n }\n var _ConnectionInterface$ = ConnectionInterface.get(),\n NODE = _ConnectionInterface$.NODE,\n EDGES = _ConnectionInterface$.EDGES;\n var serverEdgeList = (_serverEdges = serverEdges) !== null && _serverEdges !== void 0 ? _serverEdges : [singleServerEdge];\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(serverEdgeList),\n _step2;\n try {\n var _loop = function _loop() {\n var serverEdge = _step2.value;\n if (serverEdge == null) {\n return \"continue\";\n }\n var serverNode = serverEdge.getLinkedRecord('node');\n if (!serverNode) {\n return \"continue\";\n }\n var serverNodeId = serverNode.getDataID();\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(connections),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var connectionID = _step3.value;\n var connection = store.get(connectionID);\n if (connection == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[Relay] The connection with id `%s` doesn't exist.\", connectionID) : void 0;\n continue;\n }\n var nodeAlreadyExistsInConnection = (_connection$getLinked = connection.getLinkedRecords(EDGES)) === null || _connection$getLinked === void 0 ? void 0 : _connection$getLinked.some(function (edge) {\n var _edge$getLinkedRecord;\n return (edge === null || edge === void 0 ? void 0 : (_edge$getLinkedRecord = edge.getLinkedRecord(NODE)) === null || _edge$getLinkedRecord === void 0 ? void 0 : _edge$getLinkedRecord.getDataID()) === serverNodeId;\n });\n if (nodeAlreadyExistsInConnection) {\n continue;\n }\n var clientEdge = ConnectionHandler.buildConnectionEdge(store, connection, serverEdge);\n !(clientEdge != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'MutationHandlers: Failed to build the edge.') : invariant(false) : void 0;\n insertFn(connection, clientEdge);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n };\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _connection$getLinked;\n var _ret = _loop();\n if (_ret === \"continue\") continue;\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n };\n}\nfunction nodeUpdater(insertFn) {\n return function (store, payload) {\n var _serverNodes;\n var record = store.get(payload.dataID);\n if (record == null) {\n return;\n }\n var _payload$handleArgs = payload.handleArgs,\n connections = _payload$handleArgs.connections,\n edgeTypeName = _payload$handleArgs.edgeTypeName;\n !(connections != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'MutationHandlers: Expected connection IDs to be specified.') : invariant(false) : void 0;\n !(edgeTypeName != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'MutationHandlers: Expected edge typename to be specified.') : invariant(false) : void 0;\n var singleServerNode;\n var serverNodes;\n try {\n singleServerNode = record.getLinkedRecord(payload.fieldKey);\n } catch (_unused3) {}\n if (!singleServerNode) {\n try {\n serverNodes = record.getLinkedRecords(payload.fieldKey);\n } catch (_unused4) {}\n }\n if (singleServerNode == null && serverNodes == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'MutationHandlers: Expected target node to exist.') : void 0;\n return;\n }\n var _ConnectionInterface$2 = ConnectionInterface.get(),\n NODE = _ConnectionInterface$2.NODE,\n EDGES = _ConnectionInterface$2.EDGES;\n var serverNodeList = (_serverNodes = serverNodes) !== null && _serverNodes !== void 0 ? _serverNodes : [singleServerNode];\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(serverNodeList),\n _step4;\n try {\n var _loop2 = function _loop2() {\n var serverNode = _step4.value;\n if (serverNode == null) {\n return \"continue\";\n }\n var serverNodeId = serverNode.getDataID();\n var _iterator5 = (0, _createForOfIteratorHelper2[\"default\"])(connections),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var connectionID = _step5.value;\n var connection = store.get(connectionID);\n if (connection == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[Relay] The connection with id `%s` doesn't exist.\", connectionID) : void 0;\n continue;\n }\n var nodeAlreadyExistsInConnection = (_connection$getLinked2 = connection.getLinkedRecords(EDGES)) === null || _connection$getLinked2 === void 0 ? void 0 : _connection$getLinked2.some(function (edge) {\n var _edge$getLinkedRecord2;\n return (edge === null || edge === void 0 ? void 0 : (_edge$getLinkedRecord2 = edge.getLinkedRecord(NODE)) === null || _edge$getLinkedRecord2 === void 0 ? void 0 : _edge$getLinkedRecord2.getDataID()) === serverNodeId;\n });\n if (nodeAlreadyExistsInConnection) {\n continue;\n }\n var clientEdge = ConnectionHandler.createEdge(store, connection, serverNode, edgeTypeName);\n !(clientEdge != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'MutationHandlers: Failed to build the edge.') : invariant(false) : void 0;\n insertFn(connection, clientEdge);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n };\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _connection$getLinked2;\n var _ret2 = _loop2();\n if (_ret2 === \"continue\") continue;\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n };\n}\nmodule.exports = {\n AppendEdgeHandler: AppendEdgeHandler,\n DeleteRecordHandler: DeleteRecordHandler,\n PrependEdgeHandler: PrependEdgeHandler,\n AppendNodeHandler: AppendNodeHandler,\n PrependNodeHandler: PrependNodeHandler,\n DeleteEdgeHandler: DeleteEdgeHandler\n};","'use strict';\n\nvar ConnectionHandler = require('./connection/ConnectionHandler');\nvar MutationHandlers = require('./connection/MutationHandlers');\nvar invariant = require('invariant');\nfunction RelayDefaultHandlerProvider(handle) {\n switch (handle) {\n case 'connection':\n return ConnectionHandler;\n case 'deleteRecord':\n return MutationHandlers.DeleteRecordHandler;\n case 'deleteEdge':\n return MutationHandlers.DeleteEdgeHandler;\n case 'appendEdge':\n return MutationHandlers.AppendEdgeHandler;\n case 'prependEdge':\n return MutationHandlers.PrependEdgeHandler;\n case 'appendNode':\n return MutationHandlers.AppendNodeHandler;\n case 'prependNode':\n return MutationHandlers.PrependNodeHandler;\n }\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayDefaultHandlerProvider: No handler provided for `%s`.', handle) : invariant(false) : void 0;\n}\nmodule.exports = RelayDefaultHandlerProvider;","'use strict';\n\nfunction isRelayModernEnvironment(environment) {\n return Boolean(environment && environment['@@RelayModernEnvironment']);\n}\nmodule.exports = isRelayModernEnvironment;","'use strict';\n\nfunction deepFreeze(object) {\n if (!shouldBeFrozen(object)) {\n return object;\n }\n Object.freeze(object);\n Object.getOwnPropertyNames(object).forEach(function (name) {\n var property = object[name];\n if (property && typeof property === 'object' && !Object.isFrozen(property)) {\n deepFreeze(property);\n }\n });\n return object;\n}\nfunction shouldBeFrozen(value) {\n return value != null && (Array.isArray(value) || typeof value === 'object' && value.constructor === Object);\n}\nmodule.exports = deepFreeze;","'use strict';\n\nvar _require = require('./stableCopy'),\n stableCopy = _require.stableCopy;\nvar invariant = require('invariant');\nfunction getRequestIdentifier(parameters, variables) {\n var requestID = parameters.cacheID != null ? parameters.cacheID : parameters.id;\n !(requestID != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'getRequestIdentifier: Expected request `%s` to have either a ' + 'valid `id` or `cacheID` property', parameters.name) : invariant(false) : void 0;\n return requestID + JSON.stringify(stableCopy(variables));\n}\nmodule.exports = getRequestIdentifier;","'use strict';\n\nvar deepFreeze = require('../util/deepFreeze');\nvar getRequestIdentifier = require('../util/getRequestIdentifier');\nvar RelayFeatureFlags = require('../util/RelayFeatureFlags');\nvar _require = require('../util/stableCopy'),\n hasCycle = _require.hasCycle;\nvar _require2 = require('./RelayConcreteVariables'),\n getOperationVariables = _require2.getOperationVariables;\nvar _require3 = require('./RelayModernSelector'),\n createNormalizationSelector = _require3.createNormalizationSelector,\n createReaderSelector = _require3.createReaderSelector;\nvar _require4 = require('./RelayStoreUtils'),\n ROOT_ID = _require4.ROOT_ID;\nvar invariant = require('invariant');\nfunction createOperationDescriptor(request, variables, cacheConfig) {\n var dataID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ROOT_ID;\n var operation = request.operation;\n var operationVariables = getOperationVariables(operation, request.params.providedVariables, variables);\n if (RelayFeatureFlags.ENABLE_CYLE_DETECTION_IN_VARIABLES) {\n !!hasCycle(operationVariables) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cycle detected in variables passed to operation `%s`.', request.operation.name) : invariant(false) : void 0;\n }\n var requestDescriptor = createRequestDescriptor(request, operationVariables, cacheConfig);\n var operationDescriptor = {\n fragment: createReaderSelector(request.fragment, dataID, operationVariables, requestDescriptor),\n request: requestDescriptor,\n root: createNormalizationSelector(operation, dataID, operationVariables)\n };\n if (process.env.NODE_ENV !== \"production\") {\n Object.freeze(operationDescriptor.fragment);\n Object.freeze(operationDescriptor.root);\n Object.freeze(operationDescriptor);\n }\n return operationDescriptor;\n}\nfunction createRequestDescriptor(request, variables, cacheConfig) {\n var requestDescriptor = {\n identifier: getRequestIdentifier(request.params, variables),\n node: request,\n variables: variables,\n cacheConfig: cacheConfig\n };\n if (process.env.NODE_ENV !== \"production\") {\n deepFreeze(variables);\n Object.freeze(request);\n Object.freeze(requestDescriptor);\n }\n return requestDescriptor;\n}\nmodule.exports = {\n createOperationDescriptor: createOperationDescriptor,\n createRequestDescriptor: createRequestDescriptor\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar ConnectionHandler = require('../handlers/connection/ConnectionHandler');\nvar warning = require(\"fbjs/lib/warning\");\nvar MutationTypes = Object.freeze({\n RANGE_ADD: 'RANGE_ADD',\n RANGE_DELETE: 'RANGE_DELETE',\n NODE_DELETE: 'NODE_DELETE'\n});\nvar RangeOperations = Object.freeze({\n APPEND: 'append',\n PREPEND: 'prepend'\n});\nfunction convert(configs, request, optimisticUpdater, updater) {\n var configOptimisticUpdates = optimisticUpdater ? [optimisticUpdater] : [];\n var configUpdates = updater ? [updater] : [];\n configs.forEach(function (config) {\n switch (config.type) {\n case 'NODE_DELETE':\n var nodeDeleteResult = nodeDelete(config, request);\n if (nodeDeleteResult) {\n configOptimisticUpdates.push(nodeDeleteResult);\n configUpdates.push(nodeDeleteResult);\n }\n break;\n case 'RANGE_ADD':\n var rangeAddResult = rangeAdd(config, request);\n if (rangeAddResult) {\n configOptimisticUpdates.push(rangeAddResult);\n configUpdates.push(rangeAddResult);\n }\n break;\n case 'RANGE_DELETE':\n var rangeDeleteResult = rangeDelete(config, request);\n if (rangeDeleteResult) {\n configOptimisticUpdates.push(rangeDeleteResult);\n configUpdates.push(rangeDeleteResult);\n }\n break;\n }\n });\n return {\n optimisticUpdater: function optimisticUpdater(store, data) {\n configOptimisticUpdates.forEach(function (eachOptimisticUpdater) {\n eachOptimisticUpdater(store, data);\n });\n },\n updater: function updater(store, data) {\n configUpdates.forEach(function (eachUpdater) {\n eachUpdater(store, data);\n });\n }\n };\n}\nfunction nodeDelete(config, request) {\n var deletedIDFieldName = config.deletedIDFieldName;\n var rootField = getRootField(request);\n if (!rootField) {\n return null;\n }\n return function (store, data) {\n var payload = store.getRootField(rootField);\n if (!payload) {\n return;\n }\n var deleteID = payload.getValue(deletedIDFieldName);\n var deleteIDs = Array.isArray(deleteID) ? deleteID : [deleteID];\n deleteIDs.forEach(function (id) {\n if (id && typeof id === 'string') {\n store[\"delete\"](id);\n }\n });\n };\n}\nfunction rangeAdd(config, request) {\n var parentID = config.parentID,\n connectionInfo = config.connectionInfo,\n edgeName = config.edgeName;\n if (!parentID) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'RelayDeclarativeMutationConfig: For mutation config RANGE_ADD ' + 'to work you must include a parentID') : void 0;\n return null;\n }\n var rootField = getRootField(request);\n if (!connectionInfo || !rootField) {\n return null;\n }\n return function (store, data) {\n var parent = store.get(parentID);\n if (!parent) {\n return;\n }\n var payload = store.getRootField(rootField);\n if (!payload) {\n return;\n }\n var serverEdge = payload.getLinkedRecord(edgeName);\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(connectionInfo),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var info = _step.value;\n if (!serverEdge) {\n continue;\n }\n var connection = ConnectionHandler.getConnection(parent, info.key, info.filters);\n if (!connection) {\n continue;\n }\n var clientEdge = ConnectionHandler.buildConnectionEdge(store, connection, serverEdge);\n if (!clientEdge) {\n continue;\n }\n switch (info.rangeBehavior) {\n case 'append':\n ConnectionHandler.insertEdgeAfter(connection, clientEdge);\n break;\n case 'prepend':\n ConnectionHandler.insertEdgeBefore(connection, clientEdge);\n break;\n default:\n process.env.NODE_ENV !== \"production\" ? warning(false, 'RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` ' + 'will not work as expected in RelayModern, supported range ' + \"behaviors are 'append', 'prepend'.\", info.rangeBehavior) : void 0;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n };\n}\nfunction rangeDelete(config, request) {\n var parentID = config.parentID,\n connectionKeys = config.connectionKeys,\n pathToConnection = config.pathToConnection,\n deletedIDFieldName = config.deletedIDFieldName;\n if (!parentID) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE ' + 'to work you must include a parentID') : void 0;\n return null;\n }\n var rootField = getRootField(request);\n if (!rootField) {\n return null;\n }\n return function (store, data) {\n if (!data) {\n return;\n }\n var deleteIDs = [];\n var deletedIDField = data[rootField];\n if (deletedIDField && Array.isArray(deletedIDFieldName)) {\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(deletedIDFieldName),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var eachField = _step2.value;\n if (deletedIDField && typeof deletedIDField === 'object') {\n deletedIDField = deletedIDField[eachField];\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (Array.isArray(deletedIDField)) {\n deletedIDField.forEach(function (idObject) {\n if (idObject && idObject.id && typeof idObject === 'object' && typeof idObject.id === 'string') {\n deleteIDs.push(idObject.id);\n }\n });\n } else if (deletedIDField && deletedIDField.id && typeof deletedIDField.id === 'string') {\n deleteIDs.push(deletedIDField.id);\n }\n } else if (deletedIDField && typeof deletedIDFieldName === 'string' && typeof deletedIDField === 'object') {\n deletedIDField = deletedIDField[deletedIDFieldName];\n if (typeof deletedIDField === 'string') {\n deleteIDs.push(deletedIDField);\n } else if (Array.isArray(deletedIDField)) {\n deletedIDField.forEach(function (id) {\n if (typeof id === 'string') {\n deleteIDs.push(id);\n }\n });\n }\n }\n deleteNode(parentID, connectionKeys, pathToConnection, store, deleteIDs);\n };\n}\nfunction deleteNode(parentID, connectionKeys, pathToConnection, store, deleteIDs) {\n process.env.NODE_ENV !== \"production\" ? warning(connectionKeys != null, 'RelayDeclarativeMutationConfig: RANGE_DELETE must provide a ' + 'connectionKeys') : void 0;\n var parent = store.get(parentID);\n if (!parent) {\n return;\n }\n if (pathToConnection.length < 2) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'RelayDeclarativeMutationConfig: RANGE_DELETE ' + 'pathToConnection must include at least parent and connection') : void 0;\n return;\n }\n var recordProxy = parent;\n for (var i = 1; i < pathToConnection.length - 1; i++) {\n if (recordProxy) {\n recordProxy = recordProxy.getLinkedRecord(pathToConnection[i]);\n }\n }\n if (!connectionKeys || !recordProxy) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'RelayDeclarativeMutationConfig: RANGE_DELETE ' + 'pathToConnection is incorrect. Unable to find connection with ' + 'parentID: %s and path: %s', parentID, pathToConnection.toString()) : void 0;\n return;\n }\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(connectionKeys),\n _step3;\n try {\n var _loop = function _loop() {\n var key = _step3.value;\n var connection = ConnectionHandler.getConnection(recordProxy, key.key, key.filters);\n if (connection) {\n deleteIDs.forEach(function (deleteID) {\n ConnectionHandler.deleteNode(connection, deleteID);\n });\n }\n };\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n _loop();\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n}\nfunction getRootField(request) {\n if (request.fragment.selections && request.fragment.selections.length > 0 && request.fragment.selections[0].kind === 'LinkedField') {\n return request.fragment.selections[0].name;\n }\n return null;\n}\nmodule.exports = {\n MutationTypes: MutationTypes,\n RangeOperations: RangeOperations,\n convert: convert\n};","'use strict';\n\nvar _require = require('../query/GraphQLTag'),\n getRequest = _require.getRequest;\nvar isRelayModernEnvironment = require('../store/isRelayModernEnvironment');\nvar _require2 = require('../store/RelayModernOperationDescriptor'),\n createOperationDescriptor = _require2.createOperationDescriptor;\nvar RelayDeclarativeMutationConfig = require('./RelayDeclarativeMutationConfig');\nvar invariant = require('invariant');\nfunction applyOptimisticMutation(environment, config) {\n !isRelayModernEnvironment(environment) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'commitMutation: expected `environment` to be an instance of ' + '`RelayModernEnvironment`.') : invariant(false) : void 0;\n var mutation = getRequest(config.mutation);\n if (mutation.params.operationKind !== 'mutation') {\n throw new Error('commitMutation: Expected mutation operation');\n }\n var optimisticUpdater = config.optimisticUpdater;\n var configs = config.configs,\n optimisticResponse = config.optimisticResponse,\n variables = config.variables;\n var operation = createOperationDescriptor(mutation, variables);\n if (configs) {\n var _RelayDeclarativeMuta = RelayDeclarativeMutationConfig.convert(configs, mutation, optimisticUpdater);\n optimisticUpdater = _RelayDeclarativeMuta.optimisticUpdater;\n }\n return environment.applyMutation({\n operation: operation,\n response: optimisticResponse,\n updater: optimisticUpdater\n });\n}\nmodule.exports = applyOptimisticMutation;","'use strict';\n\nfunction commitLocalUpdate(environment, updater) {\n environment.commitUpdate(updater);\n}\nmodule.exports = commitLocalUpdate;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar warning = require(\"fbjs/lib/warning\");\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar validateMutation = function validateMutation() {};\nif (process.env.NODE_ENV !== \"production\") {\n var addFieldToDiff = function addFieldToDiff(path, diff, isScalar) {\n var deepLoc = diff;\n path.split('.').forEach(function (key, index, arr) {\n if (deepLoc[key] == null) {\n deepLoc[key] = {};\n }\n if (isScalar && index === arr.length - 1) {\n deepLoc[key] = '';\n }\n deepLoc = deepLoc[key];\n });\n };\n validateMutation = function validateMutation(optimisticResponse, mutation, variables) {\n var operationName = mutation.operation.name;\n var context = {\n path: 'ROOT',\n visitedPaths: new Set(),\n variables: variables || {},\n missingDiff: {},\n extraDiff: {},\n moduleImportPaths: new Set()\n };\n validateSelections(optimisticResponse, mutation.operation.selections, context);\n validateOptimisticResponse(optimisticResponse, context);\n process.env.NODE_ENV !== \"production\" ? warning(context.missingDiff.ROOT == null, 'Expected `optimisticResponse` to match structure of server response for mutation `%s`, please define fields for all of\\n%s', operationName, JSON.stringify(context.missingDiff.ROOT, null, 2)) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(context.extraDiff.ROOT == null, 'Expected `optimisticResponse` to match structure of server response for mutation `%s`, please remove all fields of\\n%s', operationName, JSON.stringify(context.extraDiff.ROOT, null, 2)) : void 0;\n };\n var validateSelections = function validateSelections(optimisticResponse, selections, context) {\n selections.forEach(function (selection) {\n return validateSelection(optimisticResponse, selection, context);\n });\n };\n var validateSelection = function validateSelection(optimisticResponse, selection, context) {\n switch (selection.kind) {\n case 'Condition':\n validateSelections(optimisticResponse, selection.selections, context);\n return;\n case 'ClientComponent':\n case 'FragmentSpread':\n validateSelections(optimisticResponse, selection.fragment.selections, context);\n return;\n case 'ScalarField':\n case 'LinkedField':\n return validateField(optimisticResponse, selection, context);\n case 'ActorChange':\n return validateField(optimisticResponse, selection.linkedField, context);\n case 'InlineFragment':\n var type = selection.type;\n var isConcreteType = selection.abstractKey == null;\n validateAbstractKey(context, selection.abstractKey);\n selection.selections.forEach(function (subselection) {\n if (isConcreteType && optimisticResponse.__typename !== type) {\n return;\n }\n validateSelection(optimisticResponse, subselection, context);\n });\n return;\n case 'ClientExtension':\n selection.selections.forEach(function (subselection) {\n validateSelection(optimisticResponse, subselection, context);\n });\n return;\n case 'ModuleImport':\n return validateModuleImport(context);\n case 'TypeDiscriminator':\n return validateAbstractKey(context, selection.abstractKey);\n case 'RelayResolver':\n case 'RelayLiveResolver':\n case 'ClientEdgeToClientObject':\n case 'LinkedHandle':\n case 'ScalarHandle':\n case 'Defer':\n case 'Stream':\n {\n return;\n }\n default:\n selection;\n return;\n }\n };\n var validateModuleImport = function validateModuleImport(context) {\n context.moduleImportPaths.add(context.path);\n };\n var validateAbstractKey = function validateAbstractKey(context, abstractKey) {\n if (abstractKey != null) {\n var path = \"\".concat(context.path, \".\").concat(abstractKey);\n context.visitedPaths.add(path);\n }\n };\n var validateField = function validateField(optimisticResponse, field, context) {\n var fieldName = field.alias || field.name;\n var path = \"\".concat(context.path, \".\").concat(fieldName);\n context.visitedPaths.add(path);\n switch (field.kind) {\n case 'ScalarField':\n if (hasOwnProperty.call(optimisticResponse, fieldName) === false) {\n addFieldToDiff(path, context.missingDiff, true);\n }\n return;\n case 'LinkedField':\n var selections = field.selections;\n if (optimisticResponse[fieldName] === null || hasOwnProperty.call(optimisticResponse, fieldName) && optimisticResponse[fieldName] === undefined) {\n return;\n }\n if (field.plural) {\n if (Array.isArray(optimisticResponse[fieldName])) {\n optimisticResponse[fieldName].forEach(function (r) {\n if (r !== null) {\n validateSelections(r, selections, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, context), {}, {\n path: path\n }));\n }\n });\n return;\n } else {\n addFieldToDiff(path, context.missingDiff);\n return;\n }\n } else {\n if (optimisticResponse[fieldName] instanceof Object) {\n validateSelections(optimisticResponse[fieldName], selections, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, context), {}, {\n path: path\n }));\n return;\n } else {\n addFieldToDiff(path, context.missingDiff);\n return;\n }\n }\n }\n };\n var validateOptimisticResponse = function validateOptimisticResponse(optimisticResponse, context) {\n if (Array.isArray(optimisticResponse)) {\n optimisticResponse.forEach(function (r) {\n if (r instanceof Object) {\n validateOptimisticResponse(r, context);\n }\n });\n return;\n }\n Object.keys(optimisticResponse).forEach(function (key) {\n var value = optimisticResponse[key];\n var path = \"\".concat(context.path, \".\").concat(key);\n if (context.moduleImportPaths.has(path)) {\n return;\n }\n if (!context.visitedPaths.has(path)) {\n addFieldToDiff(path, context.extraDiff);\n return;\n }\n if (value instanceof Object) {\n validateOptimisticResponse(value, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, context), {}, {\n path: path\n }));\n }\n });\n };\n}\nmodule.exports = validateMutation;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar _require = require('../query/GraphQLTag'),\n getRequest = _require.getRequest;\nvar _require2 = require('../store/ClientID'),\n generateUniqueClientID = _require2.generateUniqueClientID;\nvar isRelayModernEnvironment = require('../store/isRelayModernEnvironment');\nvar _require3 = require('../store/RelayModernOperationDescriptor'),\n createOperationDescriptor = _require3.createOperationDescriptor;\nvar RelayDeclarativeMutationConfig = require('./RelayDeclarativeMutationConfig');\nvar validateMutation = require('./validateMutation');\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nfunction commitMutation(environment, config) {\n !isRelayModernEnvironment(environment) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'commitMutation: expected `environment` to be an instance of ' + '`RelayModernEnvironment`.') : invariant(false) : void 0;\n var mutation = getRequest(config.mutation);\n if (mutation.params.operationKind !== 'mutation') {\n throw new Error('commitMutation: Expected mutation operation');\n }\n if (mutation.kind !== 'Request') {\n throw new Error('commitMutation: Expected mutation to be of type request');\n }\n var optimisticResponse = config.optimisticResponse,\n optimisticUpdater = config.optimisticUpdater,\n updater = config.updater;\n var configs = config.configs,\n cacheConfig = config.cacheConfig,\n onError = config.onError,\n onUnsubscribe = config.onUnsubscribe,\n variables = config.variables,\n uploadables = config.uploadables;\n var operation = createOperationDescriptor(mutation, variables, cacheConfig, generateUniqueClientID());\n if (typeof optimisticResponse === 'function') {\n optimisticResponse = optimisticResponse();\n process.env.NODE_ENV !== \"production\" ? warning(false, 'commitMutation: Expected `optimisticResponse` to be an object, ' + 'received a function.') : void 0;\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (optimisticResponse instanceof Object) {\n validateMutation(optimisticResponse, mutation, variables);\n }\n }\n if (configs) {\n var _RelayDeclarativeMuta = RelayDeclarativeMutationConfig.convert(configs, mutation, optimisticUpdater, updater);\n optimisticUpdater = _RelayDeclarativeMuta.optimisticUpdater;\n updater = _RelayDeclarativeMuta.updater;\n }\n var errors = [];\n var subscription = environment.executeMutation({\n operation: operation,\n optimisticResponse: optimisticResponse,\n optimisticUpdater: optimisticUpdater,\n updater: updater,\n uploadables: uploadables\n }).subscribe({\n next: function next(payload) {\n var _config$onNext;\n if (Array.isArray(payload)) {\n payload.forEach(function (item) {\n if (item.errors) {\n errors.push.apply(errors, (0, _toConsumableArray2[\"default\"])(item.errors));\n }\n });\n } else {\n if (payload.errors) {\n errors.push.apply(errors, (0, _toConsumableArray2[\"default\"])(payload.errors));\n }\n }\n (_config$onNext = config.onNext) === null || _config$onNext === void 0 ? void 0 : _config$onNext.call(config);\n },\n complete: function complete() {\n var onCompleted = config.onCompleted;\n if (onCompleted) {\n var snapshot = environment.lookup(operation.fragment);\n onCompleted(snapshot.data, errors.length !== 0 ? errors : null);\n }\n },\n error: onError,\n unsubscribe: onUnsubscribe\n });\n return {\n dispose: subscription.unsubscribe\n };\n}\nmodule.exports = commitMutation;","'use strict';\n\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar warning = require(\"fbjs/lib/warning\");\nvar WEAKMAP_SUPPORTED = typeof WeakMap === 'function';\nvar debugCache = WEAKMAP_SUPPORTED ? new WeakMap() : new Map();\nfunction withProvidedVariables(userSuppliedVariables, providedVariables) {\n if (providedVariables != null) {\n var operationVariables = {};\n Object.assign(operationVariables, userSuppliedVariables);\n Object.keys(providedVariables).forEach(function (varName) {\n var providerFunction = providedVariables[varName].get;\n var providerResult = providerFunction();\n if (!debugCache.has(providerFunction)) {\n debugCache.set(providerFunction, providerResult);\n operationVariables[varName] = providerResult;\n } else {\n var cachedResult = debugCache.get(providerFunction);\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(areEqual(providerResult, cachedResult), 'Relay: Expected function `%s` for provider `%s` to be a pure function, ' + 'but got conflicting return values `%s` and `%s`', providerFunction.name, varName, providerResult, cachedResult) : void 0;\n }\n operationVariables[varName] = cachedResult;\n }\n });\n return operationVariables;\n } else {\n return userSuppliedVariables;\n }\n}\nwithProvidedVariables.tests_only_resetDebugCache = process.env.NODE_ENV !== \"production\" ? function () {\n debugCache = WEAKMAP_SUPPORTED ? new WeakMap() : new Map();\n} : undefined;\nmodule.exports = withProvidedVariables;","'use strict';\n\nvar RelayObservable = require('./RelayObservable');\nfunction convertFetch(fn) {\n return function fetch(request, variables, cacheConfig, uploadables, logRequestInfo) {\n var result = fn(request, variables, cacheConfig, uploadables, logRequestInfo);\n if (result instanceof Error) {\n return RelayObservable.create(function (sink) {\n return sink.error(result);\n });\n }\n return RelayObservable.from(result);\n };\n}\nmodule.exports = {\n convertFetch: convertFetch\n};","'use strict';\n\nvar withProvidedVariables = require('../util/withProvidedVariables');\nvar _require = require('./ConvertToExecuteFunction'),\n convertFetch = _require.convertFetch;\nvar invariant = require('invariant');\nfunction create(fetchFn, subscribe) {\n var observeFetch = convertFetch(fetchFn);\n function execute(request, variables, cacheConfig, uploadables, logRequestInfo) {\n var operationVariables = withProvidedVariables(variables, request.providedVariables);\n if (request.operationKind === 'subscription') {\n !subscribe ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayNetwork: This network layer does not support Subscriptions. ' + 'To use Subscriptions, provide a custom network layer.') : invariant(false) : void 0;\n !!uploadables ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayNetwork: Cannot provide uploadables while subscribing.') : invariant(false) : void 0;\n return subscribe(request, operationVariables, cacheConfig);\n }\n var pollInterval = cacheConfig.poll;\n if (pollInterval != null) {\n !!uploadables ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayNetwork: Cannot provide uploadables while polling.') : invariant(false) : void 0;\n return observeFetch(request, operationVariables, {\n force: true\n }).poll(pollInterval);\n }\n return observeFetch(request, operationVariables, cacheConfig, uploadables, logRequestInfo);\n }\n return {\n execute: execute\n };\n}\nmodule.exports = {\n create: create\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _require = require('../util/stableCopy'),\n stableCopy = _require.stableCopy;\nvar invariant = require('invariant');\nvar RelayQueryResponseCache = /*#__PURE__*/function () {\n function RelayQueryResponseCache(_ref) {\n var size = _ref.size,\n ttl = _ref.ttl;\n !(size > 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayQueryResponseCache: Expected the max cache size to be > 0, got ' + '`%s`.', size) : invariant(false) : void 0;\n !(ttl > 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.', ttl) : invariant(false) : void 0;\n this._responses = new Map();\n this._size = size;\n this._ttl = ttl;\n }\n var _proto = RelayQueryResponseCache.prototype;\n _proto.clear = function clear() {\n this._responses.clear();\n };\n _proto.get = function get(queryID, variables) {\n var _this = this;\n var cacheKey = getCacheKey(queryID, variables);\n this._responses.forEach(function (response, key) {\n if (!isCurrent(response.fetchTime, _this._ttl)) {\n _this._responses[\"delete\"](key);\n }\n });\n var response = this._responses.get(cacheKey);\n if (response == null) {\n return null;\n }\n if (Array.isArray(response.payload)) {\n return response.payload.map(function (payload) {\n return (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, payload), {}, {\n extensions: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, payload.extensions), {}, {\n cacheTimestamp: response.fetchTime\n })\n });\n });\n }\n return (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, response.payload), {}, {\n extensions: (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, response.payload.extensions), {}, {\n cacheTimestamp: response.fetchTime\n })\n });\n };\n _proto.set = function set(queryID, variables, payload) {\n var fetchTime = Date.now();\n var cacheKey = getCacheKey(queryID, variables);\n this._responses[\"delete\"](cacheKey);\n this._responses.set(cacheKey, {\n fetchTime: fetchTime,\n payload: payload\n });\n if (this._responses.size > this._size) {\n var firstKey = this._responses.keys().next();\n if (!firstKey.done) {\n this._responses[\"delete\"](firstKey.value);\n }\n }\n };\n return RelayQueryResponseCache;\n}();\nfunction getCacheKey(queryID, variables) {\n return JSON.stringify(stableCopy({\n queryID: queryID,\n variables: variables\n }));\n}\nfunction isCurrent(fetchTime, ttl) {\n return fetchTime + ttl >= Date.now();\n}\nmodule.exports = RelayQueryResponseCache;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar RelayObservable = require('../network/RelayObservable');\nvar _require = require('../store/RelayModernOperationDescriptor'),\n createOperationDescriptor = _require.createOperationDescriptor;\nvar _require2 = require('../util/handlePotentialSnapshotErrors'),\n handlePotentialSnapshotErrors = _require2.handlePotentialSnapshotErrors;\nvar fetchQueryInternal = require('./fetchQueryInternal');\nvar _require3 = require('./GraphQLTag'),\n getRequest = _require3.getRequest;\nvar invariant = require('invariant');\nfunction fetchQuery(environment, query, variables, options) {\n var _options$fetchPolicy;\n var queryNode = getRequest(query);\n !(queryNode.params.operationKind === 'query') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'fetchQuery: Expected query operation') : invariant(false) : void 0;\n var networkCacheConfig = (0, _objectSpread2[\"default\"])({\n force: true\n }, options === null || options === void 0 ? void 0 : options.networkCacheConfig);\n var operation = createOperationDescriptor(queryNode, variables, networkCacheConfig);\n var fetchPolicy = (_options$fetchPolicy = options === null || options === void 0 ? void 0 : options.fetchPolicy) !== null && _options$fetchPolicy !== void 0 ? _options$fetchPolicy : 'network-only';\n function readData(snapshot) {\n handlePotentialSnapshotErrors(environment, snapshot.errorResponseFields);\n return snapshot.data;\n }\n switch (fetchPolicy) {\n case 'network-only':\n {\n return getNetworkObservable(environment, operation).map(readData);\n }\n case 'store-or-network':\n {\n if (environment.check(operation).status === 'available') {\n return RelayObservable.from(environment.lookup(operation.fragment)).map(readData);\n }\n return getNetworkObservable(environment, operation).map(readData);\n }\n default:\n fetchPolicy;\n throw new Error('fetchQuery: Invalid fetchPolicy ' + fetchPolicy);\n }\n}\nfunction getNetworkObservable(environment, operation) {\n return fetchQueryInternal.fetchQuery(environment, operation).map(function () {\n return environment.lookup(operation.fragment);\n });\n}\nmodule.exports = fetchQuery;","'use strict';\n\nvar _require = require('../store/RelayModernOperationDescriptor'),\n createOperationDescriptor = _require.createOperationDescriptor;\nvar _require2 = require('./GraphQLTag'),\n getRequest = _require2.getRequest;\nfunction fetchQuery_DEPRECATED(environment, taggedNode, variables, cacheConfig) {\n var query = getRequest(taggedNode);\n if (query.params.operationKind !== 'query') {\n throw new Error('fetchQuery: Expected query operation');\n }\n var operation = createOperationDescriptor(query, variables, cacheConfig);\n return environment.execute({\n operation: operation\n }).map(function () {\n return environment.lookup(operation.fragment).data;\n }).toPromise();\n}\nmodule.exports = fetchQuery_DEPRECATED;","'use strict';\n\nvar PreloadableQueryRegistry = /*#__PURE__*/function () {\n function PreloadableQueryRegistry() {\n this._preloadableQueries = new Map();\n this._callbacks = new Map();\n }\n var _proto = PreloadableQueryRegistry.prototype;\n _proto.set = function set(key, value) {\n this._preloadableQueries.set(key, value);\n var callbacks = this._callbacks.get(key);\n if (callbacks != null) {\n callbacks.forEach(function (cb) {\n try {\n cb(value);\n } catch (e) {\n setTimeout(function () {\n throw e;\n }, 0);\n }\n });\n }\n };\n _proto.get = function get(key) {\n return this._preloadableQueries.get(key);\n };\n _proto.onLoad = function onLoad(key, callback) {\n var _this$_callbacks$get;\n var callbacks = (_this$_callbacks$get = this._callbacks.get(key)) !== null && _this$_callbacks$get !== void 0 ? _this$_callbacks$get : new Set();\n callbacks.add(callback);\n var dispose = function dispose() {\n callbacks[\"delete\"](callback);\n };\n this._callbacks.set(key, callbacks);\n return {\n dispose: dispose\n };\n };\n _proto.clear = function clear() {\n this._preloadableQueries.clear();\n };\n return PreloadableQueryRegistry;\n}();\nvar preloadableQueryRegistry = new PreloadableQueryRegistry();\nmodule.exports = preloadableQueryRegistry;","'use strict';\n\nfunction isScalarAndEqual(valueA, valueB) {\n return valueA === valueB && (valueA === null || typeof valueA !== 'object');\n}\nmodule.exports = isScalarAndEqual;","'use strict';\n\nfunction recycleNodesInto(prevData, nextData) {\n return recycleNodesIntoImpl(prevData, nextData, true);\n}\nfunction recycleNodesIntoImpl(prevData, nextData, canMutate) {\n if (prevData === nextData || typeof prevData !== 'object' || !prevData || prevData.constructor !== Object && !Array.isArray(prevData) || typeof nextData !== 'object' || !nextData || nextData.constructor !== Object && !Array.isArray(nextData)) {\n return nextData;\n }\n var canRecycle = false;\n var prevArray = Array.isArray(prevData) ? prevData : null;\n var nextArray = Array.isArray(nextData) ? nextData : null;\n if (prevArray && nextArray) {\n var canMutateNext = canMutate && !Object.isFrozen(nextArray);\n canRecycle = nextArray.reduce(function (wasEqual, nextItem, ii) {\n var prevValue = prevArray[ii];\n var nextValue = recycleNodesIntoImpl(prevValue, nextItem, canMutateNext);\n if (nextValue !== nextArray[ii] && canMutateNext) {\n nextArray[ii] = nextValue;\n }\n return wasEqual && nextValue === prevArray[ii];\n }, true) && prevArray.length === nextArray.length;\n } else if (!prevArray && !nextArray) {\n var prevObject = prevData;\n var nextObject = nextData;\n var prevKeys = Object.keys(prevObject);\n var nextKeys = Object.keys(nextObject);\n var _canMutateNext = canMutate && !Object.isFrozen(nextObject);\n canRecycle = nextKeys.reduce(function (wasEqual, key) {\n var prevValue = prevObject[key];\n var nextValue = recycleNodesIntoImpl(prevValue, nextObject[key], _canMutateNext);\n if (nextValue !== nextObject[key] && _canMutateNext) {\n nextObject[key] = nextValue;\n }\n return wasEqual && nextValue === prevObject[key];\n }, true) && prevKeys.length === nextKeys.length;\n }\n return canRecycle ? prevData : nextData;\n}\nmodule.exports = recycleNodesInto;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar getPendingOperationsForFragment = require('../util/getPendingOperationsForFragment');\nvar _require = require('../util/handlePotentialSnapshotErrors'),\n handlePotentialSnapshotErrors = _require.handlePotentialSnapshotErrors;\nvar isScalarAndEqual = require('../util/isScalarAndEqual');\nvar recycleNodesInto = require('../util/recycleNodesInto');\nvar RelayFeatureFlags = require('../util/RelayFeatureFlags');\nvar _require2 = require('./RelayModernOperationDescriptor'),\n createRequestDescriptor = _require2.createRequestDescriptor;\nvar _require3 = require('./RelayModernSelector'),\n areEqualSelectors = _require3.areEqualSelectors,\n createReaderSelector = _require3.createReaderSelector,\n getSelectorsFromObject = _require3.getSelectorsFromObject;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nvar RelayModernFragmentSpecResolver = /*#__PURE__*/function () {\n function RelayModernFragmentSpecResolver(context, fragments, props, callback, rootIsQueryRenderer) {\n var _this = this;\n (0, _defineProperty2[\"default\"])(this, \"_onChange\", function () {\n _this._stale = true;\n if (typeof _this._callback === 'function') {\n _this._callback();\n }\n });\n this._callback = callback;\n this._context = context;\n this._data = {};\n this._fragments = fragments;\n this._props = {};\n this._resolvers = {};\n this._stale = false;\n this._rootIsQueryRenderer = rootIsQueryRenderer;\n this.setProps(props);\n }\n var _proto = RelayModernFragmentSpecResolver.prototype;\n _proto.dispose = function dispose() {\n for (var key in this._resolvers) {\n if (this._resolvers.hasOwnProperty(key)) {\n disposeCallback(this._resolvers[key]);\n }\n }\n };\n _proto.resolve = function resolve() {\n if (this._stale) {\n var prevData = this._data;\n var nextData;\n for (var key in this._resolvers) {\n if (this._resolvers.hasOwnProperty(key)) {\n var resolver = this._resolvers[key];\n var prevItem = prevData[key];\n if (resolver) {\n var nextItem = resolver.resolve();\n if (nextData || nextItem !== prevItem) {\n nextData = nextData || (0, _objectSpread2[\"default\"])({}, prevData);\n nextData[key] = nextItem;\n }\n } else {\n var prop = this._props[key];\n var _nextItem = prop !== undefined ? prop : null;\n if (nextData || !isScalarAndEqual(_nextItem, prevItem)) {\n nextData = nextData || (0, _objectSpread2[\"default\"])({}, prevData);\n nextData[key] = _nextItem;\n }\n }\n }\n }\n this._data = nextData || prevData;\n this._stale = false;\n }\n return this._data;\n };\n _proto.setCallback = function setCallback(props, callback) {\n this._callback = callback;\n if (RelayFeatureFlags.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT === true) {\n this.setProps(props);\n }\n };\n _proto.setProps = function setProps(props) {\n this._props = {};\n var ownedSelectors = getSelectorsFromObject(this._fragments, props);\n for (var key in ownedSelectors) {\n if (ownedSelectors.hasOwnProperty(key)) {\n var ownedSelector = ownedSelectors[key];\n var resolver = this._resolvers[key];\n if (ownedSelector == null) {\n if (resolver != null) {\n resolver.dispose();\n }\n resolver = null;\n } else if (ownedSelector.kind === 'PluralReaderSelector') {\n if (resolver == null) {\n resolver = new SelectorListResolver(this._context.environment, this._rootIsQueryRenderer, ownedSelector, this._callback != null, this._onChange);\n } else {\n !(resolver instanceof SelectorListResolver) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.', key) : invariant(false) : void 0;\n resolver.setSelector(ownedSelector);\n }\n } else {\n if (resolver == null) {\n resolver = new SelectorResolver(this._context.environment, this._rootIsQueryRenderer, ownedSelector, this._callback != null, this._onChange);\n } else {\n !(resolver instanceof SelectorResolver) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.', key) : invariant(false) : void 0;\n resolver.setSelector(ownedSelector);\n }\n }\n this._props[key] = props[key];\n this._resolvers[key] = resolver;\n }\n }\n this._stale = true;\n };\n _proto.setVariables = function setVariables(variables, request) {\n for (var key in this._resolvers) {\n if (this._resolvers.hasOwnProperty(key)) {\n var resolver = this._resolvers[key];\n if (resolver) {\n resolver.setVariables(variables, request);\n }\n }\n }\n this._stale = true;\n };\n return RelayModernFragmentSpecResolver;\n}();\nvar SelectorResolver = /*#__PURE__*/function () {\n function SelectorResolver(environment, rootIsQueryRenderer, selector, subscribeOnConstruction, callback) {\n var _this2 = this;\n (0, _defineProperty2[\"default\"])(this, \"_onChange\", function (snapshot) {\n _this2._data = snapshot.data;\n _this2._isMissingData = snapshot.isMissingData;\n _this2._errorResponseFields = snapshot.errorResponseFields;\n _this2._callback();\n });\n var _snapshot = environment.lookup(selector);\n this._callback = callback;\n this._data = _snapshot.data;\n this._isMissingData = _snapshot.isMissingData;\n this._errorResponseFields = _snapshot.errorResponseFields;\n this._environment = environment;\n this._rootIsQueryRenderer = rootIsQueryRenderer;\n this._selector = selector;\n if (RelayFeatureFlags.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT === true) {\n if (subscribeOnConstruction) {\n this._subscription = environment.subscribe(_snapshot, this._onChange);\n }\n } else {\n this._subscription = environment.subscribe(_snapshot, this._onChange);\n }\n }\n var _proto2 = SelectorResolver.prototype;\n _proto2.dispose = function dispose() {\n if (this._subscription) {\n this._subscription.dispose();\n this._subscription = null;\n }\n };\n _proto2.resolve = function resolve() {\n if (this._isMissingData === true) {\n var pendingOperationsResult = getPendingOperationsForFragment(this._environment, this._selector.node, this._selector.owner);\n var promise = pendingOperationsResult === null || pendingOperationsResult === void 0 ? void 0 : pendingOperationsResult.promise;\n if (promise != null) {\n if (this._rootIsQueryRenderer) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Relay Container for fragment `%s` has missing data and ' + 'would suspend. When using features such as @defer or @module, ' + 'use `useFragment` instead of a Relay Container.', this._selector.node.name) : void 0;\n } else {\n var _pendingOperationsRes;\n var pendingOperations = (_pendingOperationsRes = pendingOperationsResult === null || pendingOperationsResult === void 0 ? void 0 : pendingOperationsResult.pendingOperations) !== null && _pendingOperationsRes !== void 0 ? _pendingOperationsRes : [];\n process.env.NODE_ENV !== \"production\" ? warning(false, '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) : void 0;\n this._environment.__log({\n name: 'suspense.fragment',\n data: this._data,\n fragment: this._selector.node,\n isRelayHooks: false,\n isMissingData: this._isMissingData,\n isPromiseCached: false,\n pendingOperations: pendingOperations\n });\n throw promise;\n }\n }\n }\n handlePotentialSnapshotErrors(this._environment, this._errorResponseFields);\n return this._data;\n };\n _proto2.setSelector = function setSelector(selector) {\n if (this._subscription != null && areEqualSelectors(selector, this._selector)) {\n return;\n }\n this.dispose();\n var snapshot = this._environment.lookup(selector);\n this._data = recycleNodesInto(this._data, snapshot.data);\n this._isMissingData = snapshot.isMissingData;\n this._errorResponseFields = snapshot.errorResponseFields;\n this._selector = selector;\n this._subscription = this._environment.subscribe(snapshot, this._onChange);\n };\n _proto2.setVariables = function setVariables(variables, request) {\n if (areEqual(variables, this._selector.variables)) {\n return;\n }\n var requestDescriptor = createRequestDescriptor(request, variables);\n var selector = createReaderSelector(this._selector.node, this._selector.dataID, variables, requestDescriptor);\n this.setSelector(selector);\n };\n return SelectorResolver;\n}();\nvar SelectorListResolver = /*#__PURE__*/function () {\n function SelectorListResolver(environment, rootIsQueryRenderer, selector, subscribeOnConstruction, callback) {\n var _this3 = this;\n (0, _defineProperty2[\"default\"])(this, \"_onChange\", function (data) {\n _this3._stale = true;\n _this3._callback();\n });\n this._callback = callback;\n this._data = [];\n this._environment = environment;\n this._resolvers = [];\n this._stale = true;\n this._rootIsQueryRenderer = rootIsQueryRenderer;\n this._subscribeOnConstruction = subscribeOnConstruction;\n this.setSelector(selector);\n }\n var _proto3 = SelectorListResolver.prototype;\n _proto3.dispose = function dispose() {\n this._resolvers.forEach(disposeCallback);\n };\n _proto3.resolve = function resolve() {\n if (this._stale) {\n var prevData = this._data;\n var nextData;\n for (var ii = 0; ii < this._resolvers.length; ii++) {\n var prevItem = prevData[ii];\n var nextItem = this._resolvers[ii].resolve();\n if (nextData || nextItem !== prevItem) {\n nextData = nextData || prevData.slice(0, ii);\n nextData.push(nextItem);\n }\n }\n if (!nextData && this._resolvers.length !== prevData.length) {\n nextData = prevData.slice(0, this._resolvers.length);\n }\n this._data = nextData || prevData;\n this._stale = false;\n }\n return this._data;\n };\n _proto3.setSelector = function setSelector(selector) {\n var selectors = selector.selectors;\n while (this._resolvers.length > selectors.length) {\n var resolver = this._resolvers.pop();\n resolver.dispose();\n }\n for (var ii = 0; ii < selectors.length; ii++) {\n if (ii < this._resolvers.length) {\n this._resolvers[ii].setSelector(selectors[ii]);\n } else {\n this._resolvers[ii] = new SelectorResolver(this._environment, this._rootIsQueryRenderer, selectors[ii], this._subscribeOnConstruction, this._onChange);\n }\n }\n this._stale = true;\n };\n _proto3.setVariables = function setVariables(variables, request) {\n this._resolvers.forEach(function (resolver) {\n return resolver.setVariables(variables, request);\n });\n this._stale = true;\n };\n return SelectorListResolver;\n}();\nfunction disposeCallback(disposable) {\n disposable && disposable.dispose();\n}\nmodule.exports = RelayModernFragmentSpecResolver;","'use strict';\n\nvar RelayModernFragmentSpecResolver = require('./RelayModernFragmentSpecResolver');\nvar warning = require(\"fbjs/lib/warning\");\nfunction createFragmentSpecResolver(context, containerName, fragments, props, rootIsQueryRenderer, callback) {\n if (process.env.NODE_ENV !== \"production\") {\n var fragmentNames = Object.keys(fragments);\n fragmentNames.forEach(function (fragmentName) {\n var propValue = props[fragmentName];\n process.env.NODE_ENV !== \"production\" ? warning(propValue !== undefined, 'createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but ' + 'got `undefined`. Pass an explicit `null` if this is intentional.', fragmentName, containerName) : void 0;\n });\n }\n return new RelayModernFragmentSpecResolver(context, fragments, props, callback, rootIsQueryRenderer);\n}\nmodule.exports = createFragmentSpecResolver;","'use strict';\n\nvar invariant = require('invariant');\nvar relayContext;\nvar firstReact;\nfunction createRelayContext(react) {\n if (!relayContext) {\n relayContext = react.createContext(null);\n if (process.env.NODE_ENV !== \"production\") {\n relayContext.displayName = 'RelayContext';\n }\n firstReact = react;\n }\n !(react === firstReact) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[createRelayContext]: You are passing a different instance of React', react.version) : invariant(false) : void 0;\n return relayContext;\n}\nmodule.exports = createRelayContext;","'use strict';\n\nvar LIVE_RESOLVER_SUSPENSE_SENTINEL = Object.freeze({\n __LIVE_RESOLVER_SUSPENSE_SENTINEL: true\n});\nfunction suspenseSentinel() {\n return LIVE_RESOLVER_SUSPENSE_SENTINEL;\n}\nfunction isSuspenseSentinel(value) {\n return value === LIVE_RESOLVER_SUSPENSE_SENTINEL;\n}\nmodule.exports = {\n isSuspenseSentinel: isSuspenseSentinel,\n suspenseSentinel: suspenseSentinel\n};","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _toPropertyKey2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toPropertyKey\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar deepFreeze = require('../util/deepFreeze');\nvar _require = require('./ClientID'),\n generateClientObjectClientID = _require.generateClientObjectClientID,\n isClientID = _require.isClientID;\nvar _require2 = require('./live-resolvers/LiveResolverSuspenseSentinel'),\n isSuspenseSentinel = _require2.isSuspenseSentinel;\nvar _require3 = require('./RelayStoreUtils'),\n ACTOR_IDENTIFIER_KEY = _require3.ACTOR_IDENTIFIER_KEY,\n ERRORS_KEY = _require3.ERRORS_KEY,\n ID_KEY = _require3.ID_KEY,\n INVALIDATED_AT_KEY = _require3.INVALIDATED_AT_KEY,\n REF_KEY = _require3.REF_KEY,\n REFS_KEY = _require3.REFS_KEY,\n RELAY_RESOLVER_VALUE_KEY = _require3.RELAY_RESOLVER_VALUE_KEY,\n ROOT_ID = _require3.ROOT_ID,\n TYPENAME_KEY = _require3.TYPENAME_KEY;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nfunction clone(record) {\n return (0, _objectSpread2[\"default\"])({}, record);\n}\nfunction copyFields(source, sink) {\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n if (key !== ID_KEY && key !== TYPENAME_KEY) {\n sink[key] = source[key];\n }\n }\n }\n}\nfunction create(dataID, typeName) {\n var record = {};\n record[ID_KEY] = dataID;\n record[TYPENAME_KEY] = typeName;\n return record;\n}\nfunction fromObject(json) {\n return json;\n}\nfunction getDataID(record) {\n return record[ID_KEY];\n}\nfunction getFields(record) {\n if (ERRORS_KEY in record) {\n return Object.keys(record).filter(function (field) {\n return field !== ERRORS_KEY;\n });\n }\n return Object.keys(record);\n}\nfunction getType(record) {\n return record[TYPENAME_KEY];\n}\nfunction getErrors(record, storageKey) {\n var _record$ERRORS_KEY;\n return (_record$ERRORS_KEY = record[ERRORS_KEY]) === null || _record$ERRORS_KEY === void 0 ? void 0 : _record$ERRORS_KEY[storageKey];\n}\nfunction getValue(record, storageKey) {\n var value = record[storageKey];\n if (value && typeof value === 'object') {\n !(!value.hasOwnProperty(REF_KEY) && !value.hasOwnProperty(REFS_KEY)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` ' + 'but found %s.', record[ID_KEY], storageKey, value.hasOwnProperty(REF_KEY) ? 'a linked record' : 'plural linked records') : invariant(false) : void 0;\n }\n return value;\n}\nfunction hasValue(record, storageKey) {\n return storageKey in record;\n}\nfunction getLinkedRecordID(record, storageKey) {\n var maybeLink = record[storageKey];\n if (maybeLink == null) {\n return maybeLink;\n }\n var link = maybeLink;\n !(typeof link === 'object' && link && typeof link[REF_KEY] === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, ' + 'was `%s`.%s', record[ID_KEY], storageKey, JSON.stringify(link), typeof link === 'object' && link[REFS_KEY] !== undefined ? ' It appears to be a plural linked record: did you mean to call ' + 'getLinkedRecords() instead of getLinkedRecord()?' : '') : invariant(false) : void 0;\n return link[REF_KEY];\n}\nfunction hasLinkedRecordID(record, storageKey) {\n var maybeLink = record[storageKey];\n if (maybeLink == null) {\n return false;\n }\n var link = maybeLink;\n return typeof link === 'object' && link && typeof link[REF_KEY] === 'string';\n}\nfunction getLinkedRecordIDs(record, storageKey) {\n var links = record[storageKey];\n if (links == null) {\n return links;\n }\n !(typeof links === 'object' && Array.isArray(links[REFS_KEY])) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array ' + 'of linked IDs, got `%s`.%s', record[ID_KEY], storageKey, JSON.stringify(links), typeof links === 'object' && links[REF_KEY] !== undefined ? ' It appears to be a singular linked record: did you mean to call ' + 'getLinkedRecord() instead of getLinkedRecords()?' : '') : invariant(false) : void 0;\n return links[REFS_KEY];\n}\nfunction hasLinkedRecordIDs(record, storageKey) {\n var links = record[storageKey];\n if (links == null) {\n return false;\n }\n return typeof links === 'object' && Array.isArray(links[REFS_KEY]) && links[REFS_KEY].every(function (link) {\n return typeof link === 'string';\n });\n}\nfunction getInvalidationEpoch(record) {\n if (record == null) {\n return null;\n }\n var invalidatedAt = record[INVALIDATED_AT_KEY];\n if (typeof invalidatedAt !== 'number') {\n return null;\n }\n return invalidatedAt;\n}\nfunction update(prevRecord, nextRecord) {\n var _updated2;\n if (process.env.NODE_ENV !== \"production\") {\n var _getType, _getType2;\n var prevID = getDataID(prevRecord);\n var nextID = getDataID(nextRecord);\n process.env.NODE_ENV !== \"production\" ? warning(prevID === nextID, 'RelayModernRecord: Invalid record update, expected both versions of ' + 'the record to have the same id, got `%s` and `%s`.', prevID, nextID) : void 0;\n var prevType = (_getType = getType(prevRecord)) !== null && _getType !== void 0 ? _getType : null;\n var nextType = (_getType2 = getType(nextRecord)) !== null && _getType2 !== void 0 ? _getType2 : null;\n process.env.NODE_ENV !== \"production\" ? warning(isClientID(nextID) && nextID !== ROOT_ID || prevType === nextType, '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.', prevID, TYPENAME_KEY, prevType, nextType) : void 0;\n }\n var prevErrorsByKey = prevRecord[ERRORS_KEY];\n var nextErrorsByKey = nextRecord[ERRORS_KEY];\n var updated = null;\n if (prevErrorsByKey == null && nextErrorsByKey == null) {\n var _updated;\n for (var storageKey in nextRecord) {\n if (updated || !areEqual(prevRecord[storageKey], nextRecord[storageKey])) {\n updated = updated !== null ? updated : (0, _objectSpread2[\"default\"])({}, prevRecord);\n updated[storageKey] = nextRecord[storageKey];\n }\n }\n return (_updated = updated) !== null && _updated !== void 0 ? _updated : prevRecord;\n }\n for (var _storageKey2 in nextRecord) {\n if (_storageKey2 === ERRORS_KEY) {\n continue;\n }\n var nextValue = nextRecord[_storageKey2];\n var nextErrors = nextErrorsByKey === null || nextErrorsByKey === void 0 ? void 0 : nextErrorsByKey[_storageKey2];\n if (updated == null) {\n var prevValue = prevRecord[_storageKey2];\n var prevErrors = prevErrorsByKey === null || prevErrorsByKey === void 0 ? void 0 : prevErrorsByKey[_storageKey2];\n if (areEqual(prevValue, nextValue) && areEqual(prevErrors, nextErrors)) {\n continue;\n }\n updated = (0, _objectSpread2[\"default\"])({}, prevRecord);\n if (prevErrorsByKey != null) {\n updated[ERRORS_KEY] = (0, _objectSpread2[\"default\"])({}, prevErrorsByKey);\n }\n }\n setValue(updated, _storageKey2, nextValue);\n setErrors(updated, _storageKey2, nextErrors);\n }\n return (_updated2 = updated) !== null && _updated2 !== void 0 ? _updated2 : prevRecord;\n}\nfunction merge(record1, record2) {\n if (process.env.NODE_ENV !== \"production\") {\n var _getType3, _getType4;\n var prevID = getDataID(record1);\n var nextID = getDataID(record2);\n process.env.NODE_ENV !== \"production\" ? warning(prevID === nextID, 'RelayModernRecord: Invalid record merge, expected both versions of ' + 'the record to have the same id, got `%s` and `%s`.', prevID, nextID) : void 0;\n var prevType = (_getType3 = getType(record1)) !== null && _getType3 !== void 0 ? _getType3 : null;\n var nextType = (_getType4 = getType(record2)) !== null && _getType4 !== void 0 ? _getType4 : null;\n process.env.NODE_ENV !== \"production\" ? warning(isClientID(nextID) && nextID !== ROOT_ID || prevType === nextType, '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.', prevID, TYPENAME_KEY, prevType, nextType) : void 0;\n }\n if (ERRORS_KEY in record1 || ERRORS_KEY in record2) {\n var errors1 = record1[ERRORS_KEY],\n fields1 = (0, _objectWithoutPropertiesLoose2[\"default\"])(record1, [ERRORS_KEY].map(_toPropertyKey2[\"default\"]));\n var errors2 = record2[ERRORS_KEY],\n fields2 = (0, _objectWithoutPropertiesLoose2[\"default\"])(record2, [ERRORS_KEY].map(_toPropertyKey2[\"default\"]));\n var updated = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, fields1), fields2);\n if (errors1 == null && errors2 == null) {\n return updated;\n }\n var updatedErrors = {};\n for (var storageKey in errors1) {\n if (fields2.hasOwnProperty(storageKey)) {\n continue;\n }\n updatedErrors[storageKey] = errors1[storageKey];\n }\n for (var _storageKey3 in errors2) {\n updatedErrors[_storageKey3] = errors2[_storageKey3];\n }\n for (var _storageKey in updatedErrors) {\n updated[ERRORS_KEY] = updatedErrors;\n break;\n }\n return updated;\n } else {\n return (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, record1), record2);\n }\n}\nfunction freeze(record) {\n deepFreeze(record);\n}\nfunction setErrors(record, storageKey, errors) {\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(storageKey in record, 'RelayModernRecord: Invalid error update, `%s` should not be undefined.', storageKey) : void 0;\n }\n var errorsByStorageKey = record[ERRORS_KEY];\n if (errors != null && errors.length > 0) {\n if (errorsByStorageKey == null) {\n record[ERRORS_KEY] = (0, _defineProperty2[\"default\"])({}, storageKey, errors);\n } else {\n errorsByStorageKey[storageKey] = errors;\n }\n } else if (errorsByStorageKey != null) {\n if (delete errorsByStorageKey[storageKey]) {\n for (var otherStorageKey in errorsByStorageKey) {\n if (errorsByStorageKey.hasOwnProperty(otherStorageKey)) {\n return;\n }\n }\n delete record[ERRORS_KEY];\n }\n }\n}\nfunction setValue(record, storageKey, value) {\n if (process.env.NODE_ENV !== \"production\") {\n var prevID = getDataID(record);\n if (storageKey === ID_KEY) {\n process.env.NODE_ENV !== \"production\" ? warning(prevID === value, 'RelayModernRecord: Invalid field update, expected both versions of ' + 'the record to have the same id, got `%s` and `%s`.', prevID, value) : void 0;\n } else if (storageKey === TYPENAME_KEY) {\n var _getType5;\n var prevType = (_getType5 = getType(record)) !== null && _getType5 !== void 0 ? _getType5 : null;\n var nextType = value !== null && value !== void 0 ? value : null;\n process.env.NODE_ENV !== \"production\" ? warning(isClientID(getDataID(record)) && getDataID(record) !== ROOT_ID || prevType === nextType, '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.', prevID, TYPENAME_KEY, prevType, nextType) : void 0;\n }\n }\n record[storageKey] = value;\n}\nfunction setLinkedRecordID(record, storageKey, linkedID) {\n var link = {};\n link[REF_KEY] = linkedID;\n record[storageKey] = link;\n}\nfunction setLinkedRecordIDs(record, storageKey, linkedIDs) {\n var links = {};\n links[REFS_KEY] = linkedIDs;\n record[storageKey] = links;\n}\nfunction setActorLinkedRecordID(record, storageKey, actorIdentifier, linkedID) {\n var link = {};\n link[REF_KEY] = linkedID;\n link[ACTOR_IDENTIFIER_KEY] = actorIdentifier;\n record[storageKey] = link;\n}\nfunction getActorLinkedRecordID(record, storageKey) {\n var link = record[storageKey];\n if (link == null) {\n return link;\n }\n !(typeof link === 'object' && typeof link[REF_KEY] === 'string' && link[ACTOR_IDENTIFIER_KEY] != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernRecord.getActorLinkedRecordID(): Expected `%s.%s` to be an actor specific linked ID, ' + 'was `%s`.', record[ID_KEY], storageKey, JSON.stringify(link)) : invariant(false) : void 0;\n return [link[ACTOR_IDENTIFIER_KEY], link[REF_KEY]];\n}\nfunction getResolverLinkedRecordID(record, typeName) {\n var id = getValue(record, RELAY_RESOLVER_VALUE_KEY);\n if (id == null || isSuspenseSentinel(id)) {\n return null;\n }\n if (typeof id === 'object') {\n id = id.id;\n }\n !(typeof id === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernRecord.getResolverLinkedRecordID(): Expected value to be a linked ID, ' + 'was `%s`.', JSON.stringify(id)) : invariant(false) : void 0;\n return generateClientObjectClientID(typeName, id);\n}\nfunction getResolverLinkedRecordIDs(record, typeName) {\n var resolverValue = getValue(record, RELAY_RESOLVER_VALUE_KEY);\n if (resolverValue == null || isSuspenseSentinel(resolverValue)) {\n return null;\n }\n !Array.isArray(resolverValue) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernRecord.getResolverLinkedRecordIDs(): Expected value to be an array of linked IDs, ' + 'was `%s`.', JSON.stringify(resolverValue)) : invariant(false) : void 0;\n return resolverValue.map(function (id) {\n if (id == null) {\n return null;\n }\n if (typeof id === 'object') {\n id = id.id;\n }\n !(typeof id === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernRecord.getResolverLinkedRecordIDs(): Expected item within resolver linked field to be a DataID, ' + 'was `%s`.', JSON.stringify(id)) : invariant(false) : void 0;\n return generateClientObjectClientID(typeName, id);\n });\n}\nfunction toJSON(record) {\n return record;\n}\nmodule.exports = {\n clone: clone,\n copyFields: copyFields,\n create: create,\n freeze: freeze,\n fromObject: fromObject,\n getDataID: getDataID,\n getErrors: getErrors,\n getFields: getFields,\n getInvalidationEpoch: getInvalidationEpoch,\n getLinkedRecordID: getLinkedRecordID,\n getLinkedRecordIDs: getLinkedRecordIDs,\n getType: getType,\n getValue: getValue,\n hasValue: hasValue,\n hasLinkedRecordID: hasLinkedRecordID,\n hasLinkedRecordIDs: hasLinkedRecordIDs,\n merge: merge,\n setErrors: setErrors,\n setValue: setValue,\n setLinkedRecordID: setLinkedRecordID,\n setLinkedRecordIDs: setLinkedRecordIDs,\n update: update,\n getActorLinkedRecordID: getActorLinkedRecordID,\n setActorLinkedRecordID: setActorLinkedRecordID,\n getResolverLinkedRecordID: getResolverLinkedRecordID,\n getResolverLinkedRecordIDs: getResolverLinkedRecordIDs,\n toJSON: toJSON\n};","'use strict';\n\nvar RelayRecordState = {\n EXISTENT: 'EXISTENT',\n NONEXISTENT: 'NONEXISTENT',\n UNKNOWN: 'UNKNOWN'\n};\nmodule.exports = RelayRecordState;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar RelayModernRecord = require('./RelayModernRecord');\nvar RelayRecordState = require('./RelayRecordState');\nvar EXISTENT = RelayRecordState.EXISTENT,\n NONEXISTENT = RelayRecordState.NONEXISTENT,\n UNKNOWN = RelayRecordState.UNKNOWN;\nvar RelayRecordSource = /*#__PURE__*/function () {\n function RelayRecordSource(records) {\n var _this = this;\n this._records = new Map();\n if (records != null) {\n Object.keys(records).forEach(function (key) {\n var object = records[key];\n var record = RelayModernRecord.fromObject(object);\n _this._records.set(key, record);\n });\n }\n }\n RelayRecordSource.create = function create(records) {\n return new RelayRecordSource(records);\n };\n var _proto = RelayRecordSource.prototype;\n _proto.clear = function clear() {\n this._records = new Map();\n };\n _proto[\"delete\"] = function _delete(dataID) {\n this._records.set(dataID, null);\n };\n _proto.get = function get(dataID) {\n return this._records.get(dataID);\n };\n _proto.getRecordIDs = function getRecordIDs() {\n return Array.from(this._records.keys());\n };\n _proto.getStatus = function getStatus(dataID) {\n if (!this._records.has(dataID)) {\n return UNKNOWN;\n }\n return this._records.get(dataID) == null ? NONEXISTENT : EXISTENT;\n };\n _proto.has = function has(dataID) {\n return this._records.has(dataID);\n };\n _proto.remove = function remove(dataID) {\n this._records[\"delete\"](dataID);\n };\n _proto.set = function set(dataID, record) {\n this._records.set(dataID, record);\n };\n _proto.size = function size() {\n return this._records.size;\n };\n _proto.toJSON = function toJSON() {\n var obj = {};\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(this._records),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = _step.value,\n key = _step$value[0],\n record = _step$value[1];\n obj[key] = RelayModernRecord.toJSON(record);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return obj;\n };\n return RelayRecordSource;\n}();\nmodule.exports = RelayRecordSource;","'use strict';\n\nvar invariant = require('invariant');\nvar INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE = 'INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE';\nfunction assertInternalActorIdentifier(actorIdentifier) {\n !(actorIdentifier === INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected to use only internal version of the `actorIdentifier`. \"%s\" was provided.', actorIdentifier) : invariant(false) : void 0;\n}\nmodule.exports = {\n assertInternalActorIdentifier: assertInternalActorIdentifier,\n getActorIdentifier: function getActorIdentifier(actorID) {\n return actorID;\n },\n getDefaultActorIdentifier: function getDefaultActorIdentifier() {\n throw new Error('Not Implemented');\n },\n INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE: INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE\n};","'use strict';\n\nvar ACTOR_IDENTIFIER_FIELD_NAME = 'actor_key';\nvar _require = require('./ActorIdentifier'),\n getActorIdentifier = _require.getActorIdentifier;\nfunction getActorIdentifierFromPayload(payload) {\n if (payload != null && typeof payload === 'object' && typeof payload[ACTOR_IDENTIFIER_FIELD_NAME] === 'string') {\n return getActorIdentifier(payload[ACTOR_IDENTIFIER_FIELD_NAME]);\n }\n}\nmodule.exports = {\n ACTOR_IDENTIFIER_FIELD_NAME: ACTOR_IDENTIFIER_FIELD_NAME,\n getActorIdentifierFromPayload: getActorIdentifierFromPayload\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar _excluded = [\"path\", \"locations\"];\nvar SELF = Symbol('$SELF');\nfunction buildErrorTrie(errors) {\n if (errors == null) {\n return null;\n }\n var trie = new Map();\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(errors),\n _step;\n try {\n ERRORS: for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = _step.value,\n path = _step$value.path,\n _ = _step$value.locations,\n error = (0, _objectWithoutPropertiesLoose2[\"default\"])(_step$value, _excluded);\n if (path == null) {\n continue;\n }\n var length = path.length;\n if (length === 0) {\n continue;\n }\n var lastIndex = length - 1;\n var currentTrie = trie;\n for (var index = 0; index < lastIndex; index++) {\n var key = path[index];\n var existingValue = currentTrie.get(key);\n if (existingValue instanceof Map) {\n currentTrie = existingValue;\n continue;\n }\n var newValue = new Map();\n if (Array.isArray(existingValue)) {\n newValue.set(SELF, existingValue);\n }\n currentTrie.set(key, newValue);\n currentTrie = newValue;\n }\n var lastKey = path[lastIndex];\n var container = currentTrie.get(lastKey);\n if (container instanceof Map) {\n currentTrie = container;\n container = currentTrie.get(lastKey);\n lastKey = SELF;\n }\n if (Array.isArray(container)) {\n container.push(error);\n } else {\n currentTrie.set(lastKey, [error]);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return trie;\n}\nfunction getErrorsByKey(trie, key) {\n var value = trie.get(key);\n if (value == null) {\n return null;\n }\n if (Array.isArray(value)) {\n return value;\n }\n var errors = [];\n recursivelyCopyErrorsIntoArray(value, errors);\n return errors;\n}\nfunction recursivelyCopyErrorsIntoArray(trieOrSet, errors) {\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(trieOrSet),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _step2$value = _step2.value,\n childKey = _step2$value[0],\n value = _step2$value[1];\n var oldLength = errors.length;\n if (Array.isArray(value)) {\n errors.push.apply(errors, (0, _toConsumableArray2[\"default\"])(value));\n } else {\n recursivelyCopyErrorsIntoArray(value, errors);\n }\n if (childKey === SELF) {\n continue;\n }\n var newLength = errors.length;\n for (var index = oldLength; index < newLength; index++) {\n var error = errors[index];\n if (error.path == null) {\n errors[index] = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, error), {}, {\n path: [childKey]\n });\n } else {\n error.path.unshift(childKey);\n }\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n}\nfunction getNestedErrorTrieByKey(trie, key) {\n var value = trie.get(key);\n if (value instanceof Map) {\n return value;\n }\n return null;\n}\nmodule.exports = {\n SELF: SELF,\n buildErrorTrie: buildErrorTrie,\n getNestedErrorTrieByKey: getNestedErrorTrieByKey,\n getErrorsByKey: getErrorsByKey\n};","'use strict';\n\nvar PREFIX = 'client:__type:';\nvar TYPE_SCHEMA_TYPE = '__TypeSchema';\nfunction generateTypeID(typeName) {\n return PREFIX + typeName;\n}\nfunction isTypeID(id) {\n return id.indexOf(PREFIX) === 0;\n}\nmodule.exports = {\n generateTypeID: generateTypeID,\n isTypeID: isTypeID,\n TYPE_SCHEMA_TYPE: TYPE_SCHEMA_TYPE\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar _require = require('../multi-actor-environment/ActorUtils'),\n ACTOR_IDENTIFIER_FIELD_NAME = _require.ACTOR_IDENTIFIER_FIELD_NAME,\n getActorIdentifierFromPayload = _require.getActorIdentifierFromPayload;\nvar RelayFeatureFlags = require('../util/RelayFeatureFlags');\nvar _require2 = require('./ClientID'),\n generateClientID = _require2.generateClientID,\n isClientID = _require2.isClientID;\nvar _require3 = require('./RelayConcreteVariables'),\n getLocalVariables = _require3.getLocalVariables;\nvar _require4 = require('./RelayErrorTrie'),\n buildErrorTrie = _require4.buildErrorTrie,\n getErrorsByKey = _require4.getErrorsByKey,\n getNestedErrorTrieByKey = _require4.getNestedErrorTrieByKey;\nvar RelayModernRecord = require('./RelayModernRecord');\nvar _require5 = require('./RelayModernSelector'),\n createNormalizationSelector = _require5.createNormalizationSelector;\nvar _require6 = require('./RelayStoreUtils'),\n ROOT_ID = _require6.ROOT_ID,\n TYPENAME_KEY = _require6.TYPENAME_KEY,\n getArgumentValues = _require6.getArgumentValues,\n getHandleStorageKey = _require6.getHandleStorageKey,\n getModuleComponentKey = _require6.getModuleComponentKey,\n getModuleOperationKey = _require6.getModuleOperationKey,\n getStorageKey = _require6.getStorageKey;\nvar _require7 = require('./TypeID'),\n TYPE_SCHEMA_TYPE = _require7.TYPE_SCHEMA_TYPE,\n generateTypeID = _require7.generateTypeID;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nfunction normalize(recordSource, selector, response, options, errors) {\n var dataID = selector.dataID,\n node = selector.node,\n variables = selector.variables;\n var normalizer = new RelayResponseNormalizer(recordSource, variables, options);\n return normalizer.normalizeResponse(node, dataID, response, errors);\n}\nvar RelayResponseNormalizer = /*#__PURE__*/function () {\n function RelayResponseNormalizer(recordSource, variables, options) {\n this._actorIdentifier = options.actorIdentifier;\n this._getDataId = options.getDataID;\n this._handleFieldPayloads = [];\n this._treatMissingFieldsAsNull = options.treatMissingFieldsAsNull;\n this._incrementalPlaceholders = [];\n this._isClientExtension = false;\n this._isUnmatchedAbstractType = false;\n this._followupPayloads = [];\n this._path = options.path ? (0, _toConsumableArray2[\"default\"])(options.path) : [];\n this._recordSource = recordSource;\n this._variables = variables;\n this._shouldProcessClientComponents = options.shouldProcessClientComponents;\n }\n var _proto = RelayResponseNormalizer.prototype;\n _proto.normalizeResponse = function normalizeResponse(node, dataID, data, errors) {\n var record = this._recordSource.get(dataID);\n !record ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer(): Expected root record `%s` to exist.', dataID) : invariant(false) : void 0;\n this._assignClientAbstractTypes(node);\n this._errorTrie = buildErrorTrie(errors);\n this._traverseSelections(node, record, data);\n return {\n errors: errors,\n fieldPayloads: this._handleFieldPayloads,\n incrementalPlaceholders: this._incrementalPlaceholders,\n followupPayloads: this._followupPayloads,\n source: this._recordSource,\n isFinal: false\n };\n };\n _proto._assignClientAbstractTypes = function _assignClientAbstractTypes(node) {\n var clientAbstractTypes = node.clientAbstractTypes;\n if (clientAbstractTypes != null) {\n for (var _i = 0, _Object$keys = Object.keys(clientAbstractTypes); _i < _Object$keys.length; _i++) {\n var abstractType = _Object$keys[_i];\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(clientAbstractTypes[abstractType]),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var concreteType = _step.value;\n var typeID = generateTypeID(concreteType);\n var typeRecord = this._recordSource.get(typeID);\n if (typeRecord == null) {\n typeRecord = RelayModernRecord.create(typeID, TYPE_SCHEMA_TYPE);\n this._recordSource.set(typeID, typeRecord);\n }\n RelayModernRecord.setValue(typeRecord, abstractType, true);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }\n };\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer(): Undefined variable `%s`.', name) : invariant(false) : void 0;\n return this._variables[name];\n };\n _proto._getRecordType = function _getRecordType(data) {\n var typeName = data[TYPENAME_KEY];\n !(typeName != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer(): Expected a typename for record `%s`.', JSON.stringify(data, null, 2)) : invariant(false) : void 0;\n return typeName;\n };\n _proto._traverseSelections = function _traverseSelections(node, record, data) {\n for (var i = 0; i < node.selections.length; i++) {\n var selection = node.selections[i];\n switch (selection.kind) {\n case 'ScalarField':\n case 'LinkedField':\n this._normalizeField(selection, record, data);\n break;\n case 'Condition':\n var conditionValue = Boolean(this._getVariableValue(selection.condition));\n if (conditionValue === selection.passingValue) {\n this._traverseSelections(selection, record, data);\n }\n break;\n case 'FragmentSpread':\n {\n var prevVariables = this._variables;\n this._variables = getLocalVariables(this._variables, selection.fragment.argumentDefinitions, selection.args);\n this._traverseSelections(selection.fragment, record, data);\n this._variables = prevVariables;\n break;\n }\n case 'InlineFragment':\n {\n var abstractKey = selection.abstractKey;\n if (abstractKey == null) {\n var typeName = RelayModernRecord.getType(record);\n if (typeName === selection.type) {\n this._traverseSelections(selection, record, data);\n }\n } else {\n var implementsInterface = data.hasOwnProperty(abstractKey);\n var _typeName = RelayModernRecord.getType(record);\n var typeID = generateTypeID(_typeName);\n var typeRecord = this._recordSource.get(typeID);\n if (typeRecord == null) {\n typeRecord = RelayModernRecord.create(typeID, TYPE_SCHEMA_TYPE);\n this._recordSource.set(typeID, typeRecord);\n }\n RelayModernRecord.setValue(typeRecord, abstractKey, implementsInterface);\n if (implementsInterface) {\n this._traverseSelections(selection, record, data);\n }\n }\n break;\n }\n case 'TypeDiscriminator':\n {\n var _abstractKey = selection.abstractKey;\n var _implementsInterface = data.hasOwnProperty(_abstractKey);\n var _typeName2 = RelayModernRecord.getType(record);\n var _typeID = generateTypeID(_typeName2);\n var _typeRecord = this._recordSource.get(_typeID);\n if (_typeRecord == null) {\n _typeRecord = RelayModernRecord.create(_typeID, TYPE_SCHEMA_TYPE);\n this._recordSource.set(_typeID, _typeRecord);\n }\n RelayModernRecord.setValue(_typeRecord, _abstractKey, _implementsInterface);\n break;\n }\n case 'LinkedHandle':\n case 'ScalarHandle':\n var args = selection.args ? getArgumentValues(selection.args, this._variables) : {};\n var fieldKey = getStorageKey(selection, this._variables);\n var handleKey = getHandleStorageKey(selection, this._variables);\n this._handleFieldPayloads.push({\n args: args,\n dataID: RelayModernRecord.getDataID(record),\n fieldKey: fieldKey,\n handle: selection.handle,\n handleKey: handleKey,\n handleArgs: selection.handleArgs ? getArgumentValues(selection.handleArgs, this._variables) : {}\n });\n break;\n case 'ModuleImport':\n this._normalizeModuleImport(selection, record, data);\n break;\n case 'Defer':\n this._normalizeDefer(selection, record, data);\n break;\n case 'Stream':\n this._normalizeStream(selection, record, data);\n break;\n case 'ClientExtension':\n var isClientExtension = this._isClientExtension;\n this._isClientExtension = true;\n this._traverseSelections(selection, record, data);\n this._isClientExtension = isClientExtension;\n break;\n case 'ClientComponent':\n if (this._shouldProcessClientComponents === false) {\n break;\n }\n this._traverseSelections(selection.fragment, record, data);\n break;\n case 'ActorChange':\n this._normalizeActorChange(selection, record, data);\n break;\n case 'RelayResolver':\n this._normalizeResolver(selection, record, data);\n break;\n case 'RelayLiveResolver':\n this._normalizeResolver(selection, record, data);\n break;\n case 'ClientEdgeToClientObject':\n this._normalizeResolver(selection.backingField, record, data);\n break;\n default:\n selection;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer(): Unexpected ast kind `%s`.', selection.kind) : invariant(false) : void 0;\n }\n }\n };\n _proto._normalizeResolver = function _normalizeResolver(resolver, record, data) {\n if (resolver.fragment != null) {\n this._traverseSelections(resolver.fragment, record, data);\n }\n };\n _proto._normalizeDefer = function _normalizeDefer(defer, record, data) {\n var isDeferred = defer[\"if\"] === null || this._getVariableValue(defer[\"if\"]);\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(typeof isDeferred === 'boolean', 'RelayResponseNormalizer: Expected value for @defer `if` argument to ' + 'be a boolean, got `%s`.', isDeferred) : void 0;\n }\n if (isDeferred === false) {\n this._traverseSelections(defer, record, data);\n } else {\n this._incrementalPlaceholders.push({\n kind: 'defer',\n data: data,\n label: defer.label,\n path: (0, _toConsumableArray2[\"default\"])(this._path),\n selector: createNormalizationSelector(defer, RelayModernRecord.getDataID(record), this._variables),\n typeName: RelayModernRecord.getType(record),\n actorIdentifier: this._actorIdentifier\n });\n }\n };\n _proto._normalizeStream = function _normalizeStream(stream, record, data) {\n this._traverseSelections(stream, record, data);\n var isStreamed = stream[\"if\"] === null || this._getVariableValue(stream[\"if\"]);\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(typeof isStreamed === 'boolean', 'RelayResponseNormalizer: Expected value for @stream `if` argument ' + 'to be a boolean, got `%s`.', isStreamed) : void 0;\n }\n if (isStreamed === true) {\n this._incrementalPlaceholders.push({\n kind: 'stream',\n label: stream.label,\n path: (0, _toConsumableArray2[\"default\"])(this._path),\n parentID: RelayModernRecord.getDataID(record),\n node: stream,\n variables: this._variables,\n actorIdentifier: this._actorIdentifier\n });\n }\n };\n _proto._normalizeModuleImport = function _normalizeModuleImport(moduleImport, record, data) {\n !(typeof data === 'object' && data) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer: Expected data for @module to be an object.') : invariant(false) : void 0;\n var typeName = RelayModernRecord.getType(record);\n var componentKey = getModuleComponentKey(moduleImport.documentName);\n var componentReference = moduleImport.componentModuleProvider || data[componentKey];\n RelayModernRecord.setValue(record, componentKey, componentReference !== null && componentReference !== void 0 ? componentReference : null);\n var operationKey = getModuleOperationKey(moduleImport.documentName);\n var operationReference = moduleImport.operationModuleProvider || data[operationKey];\n RelayModernRecord.setValue(record, operationKey, operationReference !== null && operationReference !== void 0 ? operationReference : null);\n if (operationReference != null) {\n this._followupPayloads.push({\n kind: 'ModuleImportPayload',\n args: moduleImport.args,\n data: data,\n dataID: RelayModernRecord.getDataID(record),\n operationReference: operationReference,\n path: (0, _toConsumableArray2[\"default\"])(this._path),\n typeName: typeName,\n variables: this._variables,\n actorIdentifier: this._actorIdentifier\n });\n }\n };\n _proto._normalizeField = function _normalizeField(selection, record, data) {\n !(typeof data === 'object' && data) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'writeField(): Expected data for field `%s` to be an object.', selection.name) : invariant(false) : void 0;\n var responseKey = selection.alias || selection.name;\n var storageKey = getStorageKey(selection, this._variables);\n var fieldValue = data[responseKey];\n if (fieldValue == null || RelayFeatureFlags.ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS && Array.isArray(fieldValue) && fieldValue.length === 0) {\n if (fieldValue === undefined) {\n var isOptionalField = this._isClientExtension || this._isUnmatchedAbstractType;\n if (isOptionalField) {\n return;\n } else if (!this._treatMissingFieldsAsNull) {\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(false, '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.', responseKey, storageKey) : void 0;\n }\n return;\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (selection.kind === 'ScalarField') {\n this._validateConflictingFieldsWithIdenticalId(record, storageKey, null);\n }\n }\n RelayModernRecord.setValue(record, storageKey, null);\n var errorTrie = this._errorTrie;\n if (errorTrie != null) {\n var errors = getErrorsByKey(errorTrie, responseKey);\n if (errors != null) {\n RelayModernRecord.setErrors(record, storageKey, errors);\n }\n }\n return;\n }\n if (selection.kind === 'ScalarField') {\n if (process.env.NODE_ENV !== \"production\") {\n this._validateConflictingFieldsWithIdenticalId(record, storageKey, fieldValue);\n }\n RelayModernRecord.setValue(record, storageKey, fieldValue);\n } else if (selection.kind === 'LinkedField') {\n this._path.push(responseKey);\n var oldErrorTrie = this._errorTrie;\n this._errorTrie = oldErrorTrie == null ? null : getNestedErrorTrieByKey(oldErrorTrie, responseKey);\n if (selection.plural) {\n this._normalizePluralLink(selection, record, storageKey, fieldValue);\n } else {\n this._normalizeLink(selection, record, storageKey, fieldValue);\n }\n this._errorTrie = oldErrorTrie;\n this._path.pop();\n } else {\n selection;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.', selection.kind) : invariant(false) : void 0;\n }\n };\n _proto._normalizeActorChange = function _normalizeActorChange(selection, record, data) {\n var _field$concreteType;\n var field = selection.linkedField;\n !(typeof data === 'object' && data) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '_normalizeActorChange(): Expected data for field `%s` to be an object.', field.name) : invariant(false) : void 0;\n var responseKey = field.alias || field.name;\n var storageKey = getStorageKey(field, this._variables);\n var fieldValue = data[responseKey];\n if (fieldValue == null) {\n if (fieldValue === undefined) {\n var isOptionalField = this._isClientExtension || this._isUnmatchedAbstractType;\n if (isOptionalField) {\n return;\n } else if (!this._treatMissingFieldsAsNull) {\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(false, '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.', responseKey, storageKey) : void 0;\n }\n return;\n }\n }\n RelayModernRecord.setValue(record, storageKey, null);\n return;\n }\n var actorIdentifier = getActorIdentifierFromPayload(fieldValue);\n if (actorIdentifier == null) {\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'RelayResponseNormalizer: Payload did not contain a value ' + 'for field `%s`. Check that you are parsing with the same ' + 'query that was used to fetch the payload. Payload is `%s`.', ACTOR_IDENTIFIER_FIELD_NAME, JSON.stringify(fieldValue, null, 2)) : void 0;\n }\n RelayModernRecord.setValue(record, storageKey, null);\n return;\n }\n var typeName = (_field$concreteType = field.concreteType) !== null && _field$concreteType !== void 0 ? _field$concreteType : this._getRecordType(fieldValue);\n var nextID = this._getDataId(fieldValue, typeName) || RelayModernRecord.getLinkedRecordID(record, storageKey) || generateClientID(RelayModernRecord.getDataID(record), storageKey);\n !(typeof nextID === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer: Expected id on field `%s` to be a string.', storageKey) : invariant(false) : void 0;\n RelayModernRecord.setActorLinkedRecordID(record, storageKey, actorIdentifier, nextID);\n this._followupPayloads.push({\n kind: 'ActorPayload',\n data: fieldValue,\n dataID: nextID,\n path: [].concat((0, _toConsumableArray2[\"default\"])(this._path), [responseKey]),\n typeName: typeName,\n variables: this._variables,\n node: field,\n actorIdentifier: actorIdentifier\n });\n };\n _proto._normalizeLink = function _normalizeLink(field, record, storageKey, fieldValue) {\n var _field$concreteType2;\n !(typeof fieldValue === 'object' && fieldValue) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer: Expected data for field `%s` to be an object.', storageKey) : invariant(false) : void 0;\n var nextID = this._getDataId(fieldValue, (_field$concreteType2 = field.concreteType) !== null && _field$concreteType2 !== void 0 ? _field$concreteType2 : this._getRecordType(fieldValue)) || RelayModernRecord.getLinkedRecordID(record, storageKey) || generateClientID(RelayModernRecord.getDataID(record), storageKey);\n !(typeof nextID === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer: Expected id on field `%s` to be a string.', storageKey) : invariant(false) : void 0;\n if (process.env.NODE_ENV !== \"production\") {\n this._validateConflictingLinkedFieldsWithIdenticalId(RelayModernRecord.getLinkedRecordID(record, storageKey), nextID, storageKey);\n }\n RelayModernRecord.setLinkedRecordID(record, storageKey, nextID);\n var nextRecord = this._recordSource.get(nextID);\n if (!nextRecord) {\n var typeName = field.concreteType || this._getRecordType(fieldValue);\n nextRecord = RelayModernRecord.create(nextID, typeName);\n this._recordSource.set(nextID, nextRecord);\n } else if (process.env.NODE_ENV !== \"production\") {\n this._validateRecordType(nextRecord, field, fieldValue);\n }\n this._traverseSelections(field, nextRecord, fieldValue);\n };\n _proto._normalizePluralLink = function _normalizePluralLink(field, record, storageKey, fieldValue) {\n var _this = this;\n !Array.isArray(fieldValue) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer: Expected data for field `%s` to be an array ' + 'of objects.', storageKey) : invariant(false) : void 0;\n var prevIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n var nextIDs = [];\n fieldValue.forEach(function (item, nextIndex) {\n var _field$concreteType3;\n if (item == null) {\n nextIDs.push(item);\n return;\n }\n _this._path.push(String(nextIndex));\n var oldErrorTrie = _this._errorTrie;\n _this._errorTrie = oldErrorTrie == null ? null : getNestedErrorTrieByKey(oldErrorTrie, nextIndex);\n !(typeof item === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer: Expected elements for field `%s` to be ' + 'objects.', storageKey) : invariant(false) : void 0;\n var nextID = _this._getDataId(item, (_field$concreteType3 = field.concreteType) !== null && _field$concreteType3 !== void 0 ? _field$concreteType3 : _this._getRecordType(item)) || prevIDs && prevIDs[nextIndex] || generateClientID(RelayModernRecord.getDataID(record), storageKey, nextIndex);\n !(typeof nextID === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayResponseNormalizer: Expected id of elements of field `%s` to ' + 'be strings.', storageKey) : invariant(false) : void 0;\n nextIDs.push(nextID);\n var nextRecord = _this._recordSource.get(nextID);\n if (!nextRecord) {\n var typeName = field.concreteType || _this._getRecordType(item);\n nextRecord = RelayModernRecord.create(nextID, typeName);\n _this._recordSource.set(nextID, nextRecord);\n } else if (process.env.NODE_ENV !== \"production\") {\n _this._validateRecordType(nextRecord, field, item);\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (prevIDs) {\n _this._validateConflictingLinkedFieldsWithIdenticalId(prevIDs[nextIndex], nextID, storageKey);\n }\n }\n _this._traverseSelections(field, nextRecord, item);\n _this._errorTrie = oldErrorTrie;\n _this._path.pop();\n });\n RelayModernRecord.setLinkedRecordIDs(record, storageKey, nextIDs);\n };\n _proto._validateRecordType = function _validateRecordType(record, field, payload) {\n var _field$concreteType4;\n var typeName = (_field$concreteType4 = field.concreteType) !== null && _field$concreteType4 !== void 0 ? _field$concreteType4 : this._getRecordType(payload);\n var dataID = RelayModernRecord.getDataID(record);\n process.env.NODE_ENV !== \"production\" ? warning(isClientID(dataID) && dataID !== ROOT_ID || RelayModernRecord.getType(record) === typeName, '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.', dataID, TYPENAME_KEY, RelayModernRecord.getType(record), typeName) : void 0;\n };\n _proto._validateConflictingFieldsWithIdenticalId = function _validateConflictingFieldsWithIdenticalId(record, storageKey, fieldValue) {\n if (process.env.NODE_ENV !== \"production\") {\n var dataID = RelayModernRecord.getDataID(record);\n var previousValue = RelayModernRecord.getValue(record, storageKey);\n process.env.NODE_ENV !== \"production\" ? warning(storageKey === TYPENAME_KEY || previousValue === undefined || areEqual(previousValue, fieldValue), '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.', dataID, storageKey, previousValue, fieldValue) : void 0;\n }\n };\n _proto._validateConflictingLinkedFieldsWithIdenticalId = function _validateConflictingLinkedFieldsWithIdenticalId(prevID, nextID, storageKey) {\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(prevID === undefined || prevID === nextID, '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.', storageKey, prevID, nextID) : void 0;\n }\n };\n return RelayResponseNormalizer;\n}();\nmodule.exports = {\n normalize: normalize\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _RelayModernRecord = _interopRequireDefault(require(\"./RelayModernRecord\"));\nvar _RelayRecordSource = _interopRequireDefault(require(\"./RelayRecordSource\"));\nvar _RelayResponseNormalizer = _interopRequireDefault(require(\"./RelayResponseNormalizer\"));\nfunction normalizeResponse(response, selector, typeName, options) {\n var _response$extensions;\n var data = response.data,\n errors = response.errors;\n var source = _RelayRecordSource[\"default\"].create();\n var record = _RelayModernRecord[\"default\"].create(selector.dataID, typeName);\n source.set(selector.dataID, record);\n var relayPayload = _RelayResponseNormalizer[\"default\"].normalize(source, selector, data, options, errors);\n return (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, relayPayload), {}, {\n isFinal: ((_response$extensions = response.extensions) === null || _response$extensions === void 0 ? void 0 : _response$extensions.is_final) === true\n });\n}\nmodule.exports = normalizeResponse;","'use strict';\n\nvar _require = require('../query/GraphQLTag'),\n getInlineDataFragment = _require.getInlineDataFragment;\nvar _require2 = require('./RelayStoreUtils'),\n FRAGMENTS_KEY = _require2.FRAGMENTS_KEY;\nvar invariant = require('invariant');\nfunction readInlineData(fragment, fragmentRef) {\n var _fragmentRef$FRAGMENT;\n var inlineDataFragment = getInlineDataFragment(fragment);\n if (fragmentRef == null) {\n return fragmentRef;\n }\n !(typeof fragmentRef === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'readInlineData(): Expected an object, got `%s`.', typeof fragmentRef) : invariant(false) : void 0;\n var inlineData = (_fragmentRef$FRAGMENT = fragmentRef[FRAGMENTS_KEY]) === null || _fragmentRef$FRAGMENT === void 0 ? void 0 : _fragmentRef$FRAGMENT[inlineDataFragment.name];\n !(inlineData != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'readInlineData(): Expected fragment `%s` to be spread in the parent ' + 'fragment.', inlineDataFragment.name) : invariant(false) : void 0;\n return inlineData;\n}\nmodule.exports = readInlineData;","'use strict';\n\nvar id = 100000;\nfunction generateID() {\n return id++;\n}\nmodule.exports = generateID;","'use strict';\n\nvar generateID = require('../util/generateID');\nfunction wrapNetworkWithLogObserver(env, network) {\n return {\n execute: function execute(params, variables, cacheConfig, uploadables) {\n var networkRequestId = generateID();\n var logObserver = {\n start: function start(subscription) {\n env.__log({\n name: 'network.start',\n networkRequestId: networkRequestId,\n params: params,\n variables: variables,\n cacheConfig: cacheConfig\n });\n },\n next: function next(response) {\n env.__log({\n name: 'network.next',\n networkRequestId: networkRequestId,\n response: response\n });\n },\n error: function error(_error) {\n env.__log({\n name: 'network.error',\n networkRequestId: networkRequestId,\n error: _error\n });\n },\n complete: function complete() {\n env.__log({\n name: 'network.complete',\n networkRequestId: networkRequestId\n });\n },\n unsubscribe: function unsubscribe() {\n env.__log({\n name: 'network.unsubscribe',\n networkRequestId: networkRequestId\n });\n }\n };\n var logRequestInfo = function logRequestInfo(info) {\n env.__log({\n name: 'network.info',\n networkRequestId: networkRequestId,\n info: info\n });\n };\n return network.execute(params, variables, cacheConfig, uploadables, logRequestInfo)[\"do\"](logObserver);\n }\n };\n}\nmodule.exports = wrapNetworkWithLogObserver;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar invariant = require('invariant');\nvar RelayOperationTracker = /*#__PURE__*/function () {\n function RelayOperationTracker() {\n this._ownersToPendingOperations = new Map();\n this._pendingOperationsToOwners = new Map();\n this._ownersToPendingPromise = new Map();\n }\n var _proto = RelayOperationTracker.prototype;\n _proto.update = function update(pendingOperation, affectedOwners) {\n if (affectedOwners.size === 0) {\n return;\n }\n var pendingOperationIdentifier = pendingOperation.identifier;\n var newlyAffectedOwnersIdentifier = new Set();\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(affectedOwners),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var owner = _step.value;\n var ownerIdentifier = owner.identifier;\n var pendingOperationsAffectingOwner = this._ownersToPendingOperations.get(ownerIdentifier);\n if (pendingOperationsAffectingOwner != null) {\n if (!pendingOperationsAffectingOwner.has(pendingOperationIdentifier)) {\n pendingOperationsAffectingOwner.set(pendingOperationIdentifier, pendingOperation);\n newlyAffectedOwnersIdentifier.add(ownerIdentifier);\n }\n } else {\n this._ownersToPendingOperations.set(ownerIdentifier, new Map([[pendingOperationIdentifier, pendingOperation]]));\n newlyAffectedOwnersIdentifier.add(ownerIdentifier);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n if (newlyAffectedOwnersIdentifier.size === 0) {\n return;\n }\n var ownersAffectedByPendingOperation = this._pendingOperationsToOwners.get(pendingOperationIdentifier) || new Set();\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(newlyAffectedOwnersIdentifier),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _ownerIdentifier = _step2.value;\n this._resolveOwnerResolvers(_ownerIdentifier);\n ownersAffectedByPendingOperation.add(_ownerIdentifier);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n this._pendingOperationsToOwners.set(pendingOperationIdentifier, ownersAffectedByPendingOperation);\n };\n _proto.complete = function complete(pendingOperation) {\n var pendingOperationIdentifier = pendingOperation.identifier;\n var affectedOwnersIdentifier = this._pendingOperationsToOwners.get(pendingOperationIdentifier);\n if (affectedOwnersIdentifier == null) {\n return;\n }\n var completedOwnersIdentifier = new Set();\n var updatedOwnersIdentifier = new Set();\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(affectedOwnersIdentifier),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var ownerIdentifier = _step3.value;\n var pendingOperationsAffectingOwner = this._ownersToPendingOperations.get(ownerIdentifier);\n if (!pendingOperationsAffectingOwner) {\n continue;\n }\n pendingOperationsAffectingOwner[\"delete\"](pendingOperationIdentifier);\n if (pendingOperationsAffectingOwner.size > 0) {\n updatedOwnersIdentifier.add(ownerIdentifier);\n } else {\n completedOwnersIdentifier.add(ownerIdentifier);\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(completedOwnersIdentifier),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _ownerIdentifier2 = _step4.value;\n this._resolveOwnerResolvers(_ownerIdentifier2);\n this._ownersToPendingOperations[\"delete\"](_ownerIdentifier2);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n var _iterator5 = (0, _createForOfIteratorHelper2[\"default\"])(updatedOwnersIdentifier),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var _ownerIdentifier3 = _step5.value;\n this._resolveOwnerResolvers(_ownerIdentifier3);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n this._pendingOperationsToOwners[\"delete\"](pendingOperationIdentifier);\n };\n _proto._resolveOwnerResolvers = function _resolveOwnerResolvers(ownerIdentifier) {\n var promiseEntry = this._ownersToPendingPromise.get(ownerIdentifier);\n if (promiseEntry != null) {\n promiseEntry.resolve();\n }\n this._ownersToPendingPromise[\"delete\"](ownerIdentifier);\n };\n _proto.getPendingOperationsAffectingOwner = function getPendingOperationsAffectingOwner(owner) {\n var ownerIdentifier = owner.identifier;\n var pendingOperationsForOwner = this._ownersToPendingOperations.get(ownerIdentifier);\n if (pendingOperationsForOwner == null || pendingOperationsForOwner.size === 0) {\n return null;\n }\n var cachedPromiseEntry = this._ownersToPendingPromise.get(ownerIdentifier);\n if (cachedPromiseEntry != null) {\n return {\n promise: cachedPromiseEntry.promise,\n pendingOperations: cachedPromiseEntry.pendingOperations\n };\n }\n var resolve;\n var promise = new Promise(function (r) {\n resolve = r;\n });\n !(resolve != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayOperationTracker: Expected resolver to be defined. If you' + 'are seeing this, it is likely a bug in Relay.') : invariant(false) : void 0;\n var pendingOperations = Array.from(pendingOperationsForOwner.values());\n this._ownersToPendingPromise.set(ownerIdentifier, {\n promise: promise,\n resolve: resolve,\n pendingOperations: pendingOperations\n });\n return {\n promise: promise,\n pendingOperations: pendingOperations\n };\n };\n return RelayOperationTracker;\n}();\nmodule.exports = RelayOperationTracker;","'use strict';\n\nfunction registerEnvironmentWithDevTools(environment) {\n var _global = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : undefined;\n var devToolsHook = _global && _global.__RELAY_DEVTOOLS_HOOK__;\n if (devToolsHook) {\n devToolsHook.registerEnvironment(environment);\n }\n}\nmodule.exports = registerEnvironmentWithDevTools;","'use strict';\n\nvar _require = require('./ClientID'),\n generateClientID = _require.generateClientID;\nvar _require2 = require('./RelayStoreUtils'),\n ROOT_ID = _require2.ROOT_ID;\nvar VIEWER_ID = generateClientID(ROOT_ID, 'viewer');\nvar VIEWER_TYPE = 'Viewer';\nmodule.exports = {\n VIEWER_ID: VIEWER_ID,\n VIEWER_TYPE: VIEWER_TYPE\n};","'use strict';\n\nvar _require = require('./ViewerPattern'),\n VIEWER_ID = _require.VIEWER_ID,\n VIEWER_TYPE = _require.VIEWER_TYPE;\nfunction defaultGetDataID(fieldValue, typeName) {\n if (typeName === VIEWER_TYPE) {\n return fieldValue.id == null ? VIEWER_ID : fieldValue.id;\n }\n return fieldValue.id;\n}\nmodule.exports = defaultGetDataID;","'use strict';\n\nvar defaultRelayFieldLogger = function defaultRelayFieldLogger(event) {\n if (process.env.NODE_ENV !== \"production\" && event.kind === 'missing_required_field.log') {\n throw new Error('Relay Environment Configuration Error (dev only): `@required(action: LOG)` requires that the Relay Environment be configured with a `relayFieldLogger`.');\n }\n};\nmodule.exports = defaultRelayFieldLogger;","'use strict';\n\nvar _require = require('./RelayConcreteNode'),\n REQUEST = _require.REQUEST,\n SPLIT_OPERATION = _require.SPLIT_OPERATION;\nfunction getOperation(node) {\n switch (node.kind) {\n case REQUEST:\n return node.operation;\n case SPLIT_OPERATION:\n default:\n return node;\n }\n}\nmodule.exports = getOperation;","'use strict';\n\nfunction createError(type, name, messageFormat) {\n for (var _len = arguments.length, messageParams = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n messageParams[_key - 3] = arguments[_key];\n }\n var index = 0;\n var message = messageFormat.replace(/%s/g, function () {\n return String(messageParams[index++]);\n });\n var err = new Error(message);\n var error = Object.assign(err, {\n name: name,\n messageFormat: messageFormat,\n messageParams: messageParams,\n type: type,\n taalOpcodes: [2, 2]\n });\n if (error.stack === undefined) {\n try {\n throw error;\n } catch (_unused) {}\n }\n return error;\n}\nmodule.exports = {\n create: function create(name, messageFormat) {\n for (var _len2 = arguments.length, messageParams = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n messageParams[_key2 - 2] = arguments[_key2];\n }\n return createError.apply(void 0, ['error', name, messageFormat].concat(messageParams));\n },\n createWarning: function createWarning(name, messageFormat) {\n for (var _len3 = arguments.length, messageParams = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {\n messageParams[_key3 - 2] = arguments[_key3];\n }\n return createError.apply(void 0, ['warn', name, messageFormat].concat(messageParams));\n }\n};","'use strict';\n\nvar _window, _window$performance;\nvar isPerformanceNowAvailable = typeof window !== 'undefined' && typeof ((_window = window) === null || _window === void 0 ? void 0 : (_window$performance = _window.performance) === null || _window$performance === void 0 ? void 0 : _window$performance.now) === 'function';\nfunction currentTimestamp() {\n if (isPerformanceNowAvailable) {\n return window.performance.now();\n }\n return Date.now();\n}\nfunction withStartAndDuration(cb) {\n var startTime = currentTimestamp();\n var result = cb();\n return [startTime, currentTimestamp() - startTime, result];\n}\nmodule.exports = withStartAndDuration;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar RelayObservable = require('../network/RelayObservable');\nvar generateID = require('../util/generateID');\nvar getOperation = require('../util/getOperation');\nvar RelayError = require('../util/RelayError');\nvar RelayFeatureFlags = require('../util/RelayFeatureFlags');\nvar _require = require('../util/stableCopy'),\n stableCopy = _require.stableCopy;\nvar withStartAndDuration = require('../util/withStartAndDuration');\nvar _require2 = require('./ClientID'),\n generateClientID = _require2.generateClientID,\n generateUniqueClientID = _require2.generateUniqueClientID;\nvar _require3 = require('./RelayConcreteVariables'),\n getLocalVariables = _require3.getLocalVariables;\nvar RelayModernRecord = require('./RelayModernRecord');\nvar _require4 = require('./RelayModernSelector'),\n createNormalizationSelector = _require4.createNormalizationSelector,\n createReaderSelector = _require4.createReaderSelector;\nvar RelayRecordSource = require('./RelayRecordSource');\nvar _require5 = require('./RelayStoreUtils'),\n ROOT_TYPE = _require5.ROOT_TYPE,\n TYPENAME_KEY = _require5.TYPENAME_KEY,\n getStorageKey = _require5.getStorageKey;\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nfunction execute(config) {\n return new Executor(config);\n}\nvar Executor = /*#__PURE__*/function () {\n function Executor(_ref2) {\n var _this = this;\n var actorIdentifier = _ref2.actorIdentifier,\n getDataID = _ref2.getDataID,\n getPublishQueue = _ref2.getPublishQueue,\n getStore = _ref2.getStore,\n isClientPayload = _ref2.isClientPayload,\n operation = _ref2.operation,\n operationExecutions = _ref2.operationExecutions,\n operationLoader = _ref2.operationLoader,\n operationTracker = _ref2.operationTracker,\n optimisticConfig = _ref2.optimisticConfig,\n scheduler = _ref2.scheduler,\n shouldProcessClientComponents = _ref2.shouldProcessClientComponents,\n sink = _ref2.sink,\n source = _ref2.source,\n treatMissingFieldsAsNull = _ref2.treatMissingFieldsAsNull,\n updater = _ref2.updater,\n log = _ref2.log,\n normalizeResponse = _ref2.normalizeResponse;\n this._actorIdentifier = actorIdentifier;\n this._getDataID = getDataID;\n this._treatMissingFieldsAsNull = treatMissingFieldsAsNull;\n this._incrementalPayloadsPending = false;\n this._incrementalResults = new Map();\n this._log = log;\n this._executeId = generateID();\n this._nextSubscriptionId = 0;\n this._operation = operation;\n this._operationExecutions = operationExecutions;\n this._operationLoader = operationLoader;\n this._operationTracker = operationTracker;\n this._operationUpdateEpochs = new Map();\n this._optimisticUpdates = null;\n this._pendingModulePayloadsCount = 0;\n this._getPublishQueue = getPublishQueue;\n this._scheduler = scheduler;\n this._sink = sink;\n this._source = new Map();\n this._state = 'started';\n this._getStore = getStore;\n this._subscriptions = new Map();\n this._updater = updater;\n this._isClientPayload = isClientPayload === true;\n this._isSubscriptionOperation = this._operation.request.node.params.operationKind === 'subscription';\n this._shouldProcessClientComponents = shouldProcessClientComponents;\n this._retainDisposables = new Map();\n this._seenActors = new Set();\n this._completeFns = [];\n this._normalizeResponse = normalizeResponse;\n var id = this._nextSubscriptionId++;\n if (RelayFeatureFlags.PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION && optimisticConfig != null) {\n this._processOptimisticResponse(optimisticConfig.response != null ? {\n data: optimisticConfig.response\n } : null, optimisticConfig.updater, false);\n }\n source.subscribe({\n complete: function complete() {\n return _this._complete(id);\n },\n error: function error(_error2) {\n return _this._error(_error2);\n },\n next: function next(response) {\n try {\n _this._next(id, response);\n } catch (error) {\n sink.error(error);\n }\n },\n start: function start(subscription) {\n var _this$_operation$requ;\n _this._start(id, subscription);\n _this._log({\n name: 'execute.start',\n executeId: _this._executeId,\n params: _this._operation.request.node.params,\n variables: _this._operation.request.variables,\n cacheConfig: (_this$_operation$requ = _this._operation.request.cacheConfig) !== null && _this$_operation$requ !== void 0 ? _this$_operation$requ : {}\n });\n }\n });\n if (!RelayFeatureFlags.PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION && optimisticConfig != null) {\n this._processOptimisticResponse(optimisticConfig.response != null ? {\n data: optimisticConfig.response\n } : null, optimisticConfig.updater, false);\n }\n }\n var _proto = Executor.prototype;\n _proto.cancel = function cancel() {\n var _this2 = this;\n if (this._state === 'completed') {\n return;\n }\n this._state = 'completed';\n this._operationExecutions[\"delete\"](this._operation.request.identifier);\n if (this._subscriptions.size !== 0) {\n this._subscriptions.forEach(function (sub) {\n return sub.unsubscribe();\n });\n this._subscriptions.clear();\n }\n var optimisticUpdates = this._optimisticUpdates;\n if (optimisticUpdates !== null) {\n this._optimisticUpdates = null;\n optimisticUpdates.forEach(function (update) {\n return _this2._getPublishQueueAndSaveActor().revertUpdate(update);\n });\n this._runPublishQueue();\n }\n this._incrementalResults.clear();\n if (this._asyncStoreUpdateDisposable != null) {\n this._asyncStoreUpdateDisposable.dispose();\n this._asyncStoreUpdateDisposable = null;\n }\n this._completeFns = [];\n this._completeOperationTracker();\n this._disposeRetainedData();\n };\n _proto._updateActiveState = function _updateActiveState() {\n var activeState;\n switch (this._state) {\n case 'started':\n {\n activeState = 'active';\n break;\n }\n case 'loading_incremental':\n {\n activeState = 'active';\n break;\n }\n case 'completed':\n {\n activeState = 'inactive';\n break;\n }\n case 'loading_final':\n {\n activeState = this._pendingModulePayloadsCount > 0 ? 'active' : 'inactive';\n break;\n }\n default:\n this._state;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: invalid executor state.') : invariant(false) : void 0;\n }\n this._operationExecutions.set(this._operation.request.identifier, activeState);\n };\n _proto._schedule = function _schedule(task, priority) {\n var _this3 = this;\n var scheduler = this._scheduler;\n if (scheduler != null) {\n var id = this._nextSubscriptionId++;\n RelayObservable.create(function (sink) {\n var cancellationToken = scheduler.schedule(function () {\n try {\n task();\n sink.complete();\n } catch (error) {\n sink.error(error);\n }\n }, priority);\n return function () {\n return scheduler.cancel(cancellationToken);\n };\n }).subscribe({\n complete: function complete() {\n return _this3._complete(id);\n },\n error: function error(_error3) {\n return _this3._error(_error3);\n },\n start: function start(subscription) {\n return _this3._start(id, subscription);\n }\n });\n } else {\n task();\n }\n };\n _proto._complete = function _complete(id) {\n this._subscriptions[\"delete\"](id);\n if (this._subscriptions.size === 0) {\n this.cancel();\n this._sink.complete();\n this._log({\n name: 'execute.complete',\n executeId: this._executeId\n });\n }\n };\n _proto._error = function _error(error) {\n this.cancel();\n this._sink.error(error);\n this._log({\n name: 'execute.error',\n executeId: this._executeId,\n error: error\n });\n };\n _proto._start = function _start(id, subscription) {\n this._subscriptions.set(id, subscription);\n this._updateActiveState();\n };\n _proto._next = function _next(_id, response) {\n var _this4 = this;\n var priority = this._state === 'loading_incremental' ? 'low' : 'default';\n this._schedule(function () {\n _this4._log({\n name: 'execute.next.start',\n executeId: _this4._executeId,\n response: response,\n operation: _this4._operation\n });\n _this4._handleNext(response);\n _this4._maybeCompleteSubscriptionOperationTracking();\n _this4._log({\n name: 'execute.next.end',\n executeId: _this4._executeId,\n response: response,\n operation: _this4._operation\n });\n }, priority);\n };\n _proto._handleErrorResponse = function _handleErrorResponse(responses) {\n var _this5 = this;\n var results = [];\n responses.forEach(function (response) {\n if (response.data === null && response.extensions != null && !response.hasOwnProperty('errors')) {\n return;\n } else if (response.data == null) {\n var errors = response.hasOwnProperty('errors') && response.errors != null ? response.errors : null;\n var messages = errors ? errors.map(function (_ref3) {\n var message = _ref3.message;\n return message;\n }).join('\\n') : '(No errors)';\n var error = RelayError.create('RelayNetwork', 'No data returned for operation `' + _this5._operation.request.node.params.name + '`, got error(s):\\n' + messages + '\\n\\nSee the error `source` property for more information.');\n error.source = {\n errors: errors,\n operation: _this5._operation.request.node,\n variables: _this5._operation.request.variables\n };\n error.stack;\n throw error;\n } else {\n var responseWithData = response;\n results.push(responseWithData);\n }\n });\n return results;\n };\n _proto._handleOptimisticResponses = function _handleOptimisticResponses(responses) {\n var _response$extensions;\n if (responses.length > 1) {\n if (responses.some(function (responsePart) {\n var _responsePart$extensi;\n return ((_responsePart$extensi = responsePart.extensions) === null || _responsePart$extensi === void 0 ? void 0 : _responsePart$extensi.isOptimistic) === true;\n })) {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Optimistic responses cannot be batched.') : invariant(false) : void 0;\n }\n return false;\n }\n var response = responses[0];\n var isOptimistic = ((_response$extensions = response.extensions) === null || _response$extensions === void 0 ? void 0 : _response$extensions.isOptimistic) === true;\n if (isOptimistic && this._state !== 'started') {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: optimistic payload received after server payload.') : invariant(false) : void 0;\n }\n if (isOptimistic) {\n this._processOptimisticResponse(response, null, this._treatMissingFieldsAsNull);\n this._sink.next(response);\n return true;\n }\n return false;\n };\n _proto._handleNext = function _handleNext(response) {\n if (this._state === 'completed') {\n return;\n }\n this._seenActors.clear();\n var responses = Array.isArray(response) ? response : [response];\n var responsesWithData = this._handleErrorResponse(responses);\n if (responsesWithData.length === 0) {\n var isFinal = responses.some(function (x) {\n var _x$extensions;\n return ((_x$extensions = x.extensions) === null || _x$extensions === void 0 ? void 0 : _x$extensions.is_final) === true;\n });\n if (isFinal) {\n this._state = 'loading_final';\n this._updateActiveState();\n this._incrementalPayloadsPending = false;\n }\n this._sink.next(response);\n return;\n }\n var isOptimistic = this._handleOptimisticResponses(responsesWithData);\n if (isOptimistic) {\n return;\n }\n var _partitionGraphQLResp = partitionGraphQLResponses(responsesWithData),\n nonIncrementalResponses = _partitionGraphQLResp[0],\n incrementalResponses = _partitionGraphQLResp[1];\n var hasNonIncrementalResponses = nonIncrementalResponses.length > 0;\n if (hasNonIncrementalResponses) {\n if (this._isSubscriptionOperation) {\n var nextID = generateUniqueClientID();\n this._operation = {\n request: this._operation.request,\n fragment: createReaderSelector(this._operation.fragment.node, nextID, this._operation.fragment.variables, this._operation.fragment.owner),\n root: createNormalizationSelector(this._operation.root.node, nextID, this._operation.root.variables)\n };\n }\n var payloadFollowups = this._processResponses(nonIncrementalResponses);\n this._processPayloadFollowups(payloadFollowups);\n }\n if (incrementalResponses.length > 0) {\n var _payloadFollowups = this._processIncrementalResponses(incrementalResponses);\n this._processPayloadFollowups(_payloadFollowups);\n }\n if (this._isSubscriptionOperation) {\n if (responsesWithData[0].extensions == null) {\n responsesWithData[0].extensions = {\n __relay_subscription_root_id: this._operation.fragment.dataID\n };\n } else {\n responsesWithData[0].extensions.__relay_subscription_root_id = this._operation.fragment.dataID;\n }\n }\n var updatedOwners = this._runPublishQueue(hasNonIncrementalResponses ? this._operation : undefined);\n if (hasNonIncrementalResponses) {\n if (this._incrementalPayloadsPending) {\n this._retainData();\n }\n }\n this._updateOperationTracker(updatedOwners);\n this._sink.next(response);\n };\n _proto._processOptimisticResponse = function _processOptimisticResponse(response, updater, treatMissingFieldsAsNull) {\n var _this6 = this;\n !(this._optimisticUpdates === null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: environment.execute: only support one optimistic response per ' + 'execute.') : invariant(false) : void 0;\n if (response == null && updater == null) {\n return;\n }\n var optimisticUpdates = [];\n if (response) {\n var payload = this._normalizeResponse(response, this._operation.root, ROOT_TYPE, {\n actorIdentifier: this._actorIdentifier,\n getDataID: this._getDataID,\n path: [],\n shouldProcessClientComponents: this._shouldProcessClientComponents,\n treatMissingFieldsAsNull: treatMissingFieldsAsNull\n });\n validateOptimisticResponsePayload(payload);\n optimisticUpdates.push({\n operation: this._operation,\n payload: payload,\n updater: updater\n });\n this._processOptimisticFollowups(payload, optimisticUpdates);\n } else if (updater) {\n optimisticUpdates.push({\n operation: this._operation,\n payload: {\n errors: null,\n fieldPayloads: null,\n incrementalPlaceholders: null,\n followupPayloads: null,\n source: RelayRecordSource.create(),\n isFinal: false\n },\n updater: updater\n });\n }\n this._optimisticUpdates = optimisticUpdates;\n optimisticUpdates.forEach(function (update) {\n return _this6._getPublishQueueAndSaveActor().applyUpdate(update);\n });\n var updatedOwners = this._runPublishQueue();\n if (RelayFeatureFlags.ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES) {\n this._updateOperationTracker(updatedOwners);\n }\n };\n _proto._processOptimisticFollowups = function _processOptimisticFollowups(payload, optimisticUpdates) {\n if (payload.followupPayloads && payload.followupPayloads.length) {\n var followupPayloads = payload.followupPayloads;\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(followupPayloads),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var followupPayload = _step.value;\n switch (followupPayload.kind) {\n case 'ModuleImportPayload':\n var operationLoader = this._expectOperationLoader();\n var operation = operationLoader.get(followupPayload.operationReference);\n if (operation == null) {\n this._processAsyncOptimisticModuleImport(followupPayload);\n } else {\n var moduleImportOptimisticUpdates = this._processOptimisticModuleImport(operation, followupPayload);\n optimisticUpdates.push.apply(optimisticUpdates, (0, _toConsumableArray2[\"default\"])(moduleImportOptimisticUpdates));\n }\n break;\n case 'ActorPayload':\n process.env.NODE_ENV !== \"production\" ? warning(false, 'OperationExecutor: Unexpected optimistic ActorPayload. These updates are not supported.') : void 0;\n break;\n default:\n followupPayload;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Unexpected followup kind `%s`. when processing optimistic updates.', followupPayload.kind) : invariant(false) : void 0;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n };\n _proto._normalizeFollowupPayload = function _normalizeFollowupPayload(followupPayload, normalizationNode) {\n var variables;\n if (normalizationNode.kind === 'SplitOperation' && followupPayload.kind === 'ModuleImportPayload') {\n variables = getLocalVariables(followupPayload.variables, normalizationNode.argumentDefinitions, followupPayload.args);\n } else {\n variables = followupPayload.variables;\n }\n var selector = createNormalizationSelector(normalizationNode, followupPayload.dataID, variables);\n return this._normalizeResponse({\n data: followupPayload.data\n }, selector, followupPayload.typeName, {\n actorIdentifier: this._actorIdentifier,\n getDataID: this._getDataID,\n path: followupPayload.path,\n treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,\n shouldProcessClientComponents: this._shouldProcessClientComponents\n });\n };\n _proto._processOptimisticModuleImport = function _processOptimisticModuleImport(normalizationRootNode, moduleImportPayload) {\n var operation = getOperation(normalizationRootNode);\n var optimisticUpdates = [];\n var modulePayload = this._normalizeFollowupPayload(moduleImportPayload, operation);\n validateOptimisticResponsePayload(modulePayload);\n optimisticUpdates.push({\n operation: this._operation,\n payload: modulePayload,\n updater: null\n });\n this._processOptimisticFollowups(modulePayload, optimisticUpdates);\n return optimisticUpdates;\n };\n _proto._processAsyncOptimisticModuleImport = function _processAsyncOptimisticModuleImport(moduleImportPayload) {\n var _this7 = this;\n this._expectOperationLoader().load(moduleImportPayload.operationReference).then(function (operation) {\n if (operation == null || _this7._state !== 'started') {\n return;\n }\n var moduleImportOptimisticUpdates = _this7._processOptimisticModuleImport(operation, moduleImportPayload);\n moduleImportOptimisticUpdates.forEach(function (update) {\n return _this7._getPublishQueueAndSaveActor().applyUpdate(update);\n });\n if (_this7._optimisticUpdates == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'OperationExecutor: Unexpected ModuleImport optimistic ' + 'update in operation %s.' + _this7._operation.request.node.params.name) : void 0;\n } else {\n var _this$_optimisticUpda;\n (_this$_optimisticUpda = _this7._optimisticUpdates).push.apply(_this$_optimisticUpda, (0, _toConsumableArray2[\"default\"])(moduleImportOptimisticUpdates));\n _this7._runPublishQueue();\n }\n });\n };\n _proto._processResponses = function _processResponses(responses) {\n var _this8 = this;\n this._log({\n name: 'execute.normalize.start',\n operation: this._operation\n });\n if (this._optimisticUpdates !== null) {\n this._optimisticUpdates.forEach(function (update) {\n _this8._getPublishQueueAndSaveActor().revertUpdate(update);\n });\n this._optimisticUpdates = null;\n }\n this._incrementalPayloadsPending = false;\n this._incrementalResults.clear();\n this._source.clear();\n return responses.map(function (payloadPart) {\n var relayPayload = _this8._normalizeResponse(payloadPart, _this8._operation.root, ROOT_TYPE, {\n actorIdentifier: _this8._actorIdentifier,\n getDataID: _this8._getDataID,\n path: [],\n treatMissingFieldsAsNull: _this8._treatMissingFieldsAsNull,\n shouldProcessClientComponents: _this8._shouldProcessClientComponents\n });\n _this8._getPublishQueueAndSaveActor().commitPayload(_this8._operation, relayPayload, _this8._updater);\n _this8._log({\n name: 'execute.normalize.end',\n operation: _this8._operation\n });\n return relayPayload;\n });\n };\n _proto._processPayloadFollowups = function _processPayloadFollowups(payloads) {\n var _this9 = this;\n if (this._state === 'completed') {\n return;\n }\n payloads.forEach(function (payload) {\n var incrementalPlaceholders = payload.incrementalPlaceholders,\n followupPayloads = payload.followupPayloads,\n isFinal = payload.isFinal;\n _this9._state = isFinal ? 'loading_final' : 'loading_incremental';\n _this9._updateActiveState();\n if (isFinal) {\n _this9._incrementalPayloadsPending = false;\n }\n if (followupPayloads && followupPayloads.length !== 0) {\n followupPayloads.forEach(function (followupPayload) {\n var _followupPayload$acto;\n var prevActorIdentifier = _this9._actorIdentifier;\n _this9._actorIdentifier = (_followupPayload$acto = followupPayload.actorIdentifier) !== null && _followupPayload$acto !== void 0 ? _followupPayload$acto : _this9._actorIdentifier;\n _this9._processFollowupPayload(followupPayload);\n _this9._actorIdentifier = prevActorIdentifier;\n });\n }\n if (incrementalPlaceholders && incrementalPlaceholders.length !== 0) {\n _this9._incrementalPayloadsPending = _this9._state !== 'loading_final';\n incrementalPlaceholders.forEach(function (incrementalPlaceholder) {\n var _incrementalPlacehold;\n var prevActorIdentifier = _this9._actorIdentifier;\n _this9._actorIdentifier = (_incrementalPlacehold = incrementalPlaceholder.actorIdentifier) !== null && _incrementalPlacehold !== void 0 ? _incrementalPlacehold : _this9._actorIdentifier;\n _this9._processIncrementalPlaceholder(payload, incrementalPlaceholder);\n _this9._actorIdentifier = prevActorIdentifier;\n });\n if (_this9._isClientPayload || _this9._state === 'loading_final') {\n process.env.NODE_ENV !== \"production\" ? warning(_this9._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.', _this9._operation.request.node.params.name) : void 0;\n var relayPayloads = [];\n incrementalPlaceholders.forEach(function (placeholder) {\n if (placeholder.kind === 'defer') {\n relayPayloads.push(_this9._processDeferResponse(placeholder.label, placeholder.path, placeholder, {\n data: placeholder.data\n }));\n }\n });\n if (relayPayloads.length > 0) {\n _this9._processPayloadFollowups(relayPayloads);\n }\n }\n }\n });\n };\n _proto._maybeCompleteSubscriptionOperationTracking = function _maybeCompleteSubscriptionOperationTracking() {\n if (!this._isSubscriptionOperation) {\n return;\n }\n if (this._pendingModulePayloadsCount === 0 && this._incrementalPayloadsPending === false) {\n this._completeOperationTracker();\n }\n };\n _proto._processFollowupPayload = function _processFollowupPayload(followupPayload) {\n var _this10 = this;\n switch (followupPayload.kind) {\n case 'ModuleImportPayload':\n var operationLoader = this._expectOperationLoader();\n var node = operationLoader.get(followupPayload.operationReference);\n if (node != null) {\n this._processFollowupPayloadWithNormalizationNode(followupPayload, getOperation(node));\n } else {\n var id = this._nextSubscriptionId++;\n this._pendingModulePayloadsCount++;\n var decrementPendingCount = function decrementPendingCount() {\n _this10._pendingModulePayloadsCount--;\n _this10._maybeCompleteSubscriptionOperationTracking();\n };\n var networkObservable = RelayObservable.from(new Promise(function (resolve, reject) {\n operationLoader.load(followupPayload.operationReference).then(resolve, reject);\n }));\n RelayObservable.create(function (sink) {\n var cancellationToken;\n var subscription = networkObservable.subscribe({\n next: function next(loadedNode) {\n if (loadedNode != null) {\n var publishModuleImportPayload = function publishModuleImportPayload() {\n try {\n var operation = getOperation(loadedNode);\n var batchAsyncModuleUpdatesFN = RelayFeatureFlags.BATCH_ASYNC_MODULE_UPDATES_FN;\n var shouldScheduleAsyncStoreUpdate = batchAsyncModuleUpdatesFN != null && _this10._pendingModulePayloadsCount > 1;\n var _withStartAndDuration = withStartAndDuration(function () {\n _this10._handleFollowupPayload(followupPayload, operation);\n if (shouldScheduleAsyncStoreUpdate) {\n _this10._scheduleAsyncStoreUpdate(batchAsyncModuleUpdatesFN, sink.complete);\n } else {\n var updatedOwners = _this10._runPublishQueue();\n _this10._updateOperationTracker(updatedOwners);\n }\n }),\n _ = _withStartAndDuration[0],\n duration = _withStartAndDuration[1];\n _this10._log({\n name: 'execute.async.module',\n executeId: _this10._executeId,\n operationName: operation.name,\n duration: duration\n });\n if (!shouldScheduleAsyncStoreUpdate) {\n sink.complete();\n }\n } catch (error) {\n sink.error(error);\n }\n };\n var scheduler = _this10._scheduler;\n if (scheduler == null) {\n publishModuleImportPayload();\n } else {\n cancellationToken = scheduler.schedule(publishModuleImportPayload);\n }\n } else {\n sink.complete();\n }\n },\n error: sink.error\n });\n return function () {\n subscription.unsubscribe();\n if (_this10._scheduler != null && cancellationToken != null) {\n _this10._scheduler.cancel(cancellationToken);\n }\n };\n }).subscribe({\n complete: function complete() {\n _this10._complete(id);\n decrementPendingCount();\n },\n error: function error(_error4) {\n _this10._error(_error4);\n decrementPendingCount();\n },\n start: function start(subscription) {\n return _this10._start(id, subscription);\n }\n });\n }\n break;\n case 'ActorPayload':\n this._processFollowupPayloadWithNormalizationNode(followupPayload, followupPayload.node);\n break;\n default:\n followupPayload;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Unexpected followup kind `%s`.', followupPayload.kind) : invariant(false) : void 0;\n }\n };\n _proto._processFollowupPayloadWithNormalizationNode = function _processFollowupPayloadWithNormalizationNode(followupPayload, normalizationNode) {\n this._handleFollowupPayload(followupPayload, normalizationNode);\n this._maybeCompleteSubscriptionOperationTracking();\n };\n _proto._handleFollowupPayload = function _handleFollowupPayload(followupPayload, normalizationNode) {\n var relayPayload = this._normalizeFollowupPayload(followupPayload, normalizationNode);\n this._getPublishQueueAndSaveActor().commitPayload(this._operation, relayPayload);\n this._processPayloadFollowups([relayPayload]);\n };\n _proto._processIncrementalPlaceholder = function _processIncrementalPlaceholder(relayPayload, placeholder) {\n var _relayPayload$fieldPa;\n var label = placeholder.label,\n path = placeholder.path;\n var pathKey = path.map(String).join('.');\n var resultForLabel = this._incrementalResults.get(label);\n if (resultForLabel == null) {\n resultForLabel = new Map();\n this._incrementalResults.set(label, resultForLabel);\n }\n var resultForPath = resultForLabel.get(pathKey);\n var pendingResponses = resultForPath != null && resultForPath.kind === 'response' ? resultForPath.responses : null;\n resultForLabel.set(pathKey, {\n kind: 'placeholder',\n placeholder: placeholder\n });\n var parentID;\n if (placeholder.kind === 'stream') {\n parentID = placeholder.parentID;\n } else if (placeholder.kind === 'defer') {\n parentID = placeholder.selector.dataID;\n } else {\n placeholder;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Unsupported incremental placeholder kind `%s`.', placeholder.kind) : invariant(false) : void 0;\n }\n var parentRecord = relayPayload.source.get(parentID);\n var parentPayloads = ((_relayPayload$fieldPa = relayPayload.fieldPayloads) !== null && _relayPayload$fieldPa !== void 0 ? _relayPayload$fieldPa : []).filter(function (fieldPayload) {\n var fieldID = generateClientID(fieldPayload.dataID, fieldPayload.fieldKey);\n return fieldPayload.dataID === parentID || fieldID === parentID;\n });\n !(parentRecord != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected record `%s` to exist.', parentID) : invariant(false) : void 0;\n var nextParentRecord;\n var nextParentPayloads;\n var previousParentEntry = this._source.get(parentID);\n if (previousParentEntry != null) {\n nextParentRecord = RelayModernRecord.update(previousParentEntry.record, parentRecord);\n var handlePayloads = new Map();\n var dedupePayload = function dedupePayload(payload) {\n var key = stableStringify(payload);\n handlePayloads.set(key, payload);\n };\n previousParentEntry.fieldPayloads.forEach(dedupePayload);\n parentPayloads.forEach(dedupePayload);\n nextParentPayloads = Array.from(handlePayloads.values());\n } else {\n nextParentRecord = parentRecord;\n nextParentPayloads = parentPayloads;\n }\n this._source.set(parentID, {\n record: nextParentRecord,\n fieldPayloads: nextParentPayloads\n });\n if (pendingResponses != null) {\n var payloadFollowups = this._processIncrementalResponses(pendingResponses);\n this._processPayloadFollowups(payloadFollowups);\n }\n };\n _proto._processIncrementalResponses = function _processIncrementalResponses(incrementalResponses) {\n var _this11 = this;\n var relayPayloads = [];\n incrementalResponses.forEach(function (incrementalResponse) {\n var label = incrementalResponse.label,\n path = incrementalResponse.path,\n response = incrementalResponse.response;\n var resultForLabel = _this11._incrementalResults.get(label);\n if (resultForLabel == null) {\n resultForLabel = new Map();\n _this11._incrementalResults.set(label, resultForLabel);\n }\n if (label.indexOf('$defer$') !== -1) {\n var pathKey = path.map(String).join('.');\n var resultForPath = resultForLabel.get(pathKey);\n if (resultForPath == null) {\n resultForPath = {\n kind: 'response',\n responses: [incrementalResponse]\n };\n resultForLabel.set(pathKey, resultForPath);\n return;\n } else if (resultForPath.kind === 'response') {\n resultForPath.responses.push(incrementalResponse);\n return;\n }\n var placeholder = resultForPath.placeholder;\n !(placeholder.kind === 'defer') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected data for path `%s` for label `%s` ' + 'to be data for @defer, was `@%s`.', pathKey, label, placeholder.kind) : invariant(false) : void 0;\n relayPayloads.push(_this11._processDeferResponse(label, path, placeholder, response));\n } else {\n var _pathKey = path.slice(0, -2).map(String).join('.');\n var _resultForPath = resultForLabel.get(_pathKey);\n if (_resultForPath == null) {\n _resultForPath = {\n kind: 'response',\n responses: [incrementalResponse]\n };\n resultForLabel.set(_pathKey, _resultForPath);\n return;\n } else if (_resultForPath.kind === 'response') {\n _resultForPath.responses.push(incrementalResponse);\n return;\n }\n var _placeholder = _resultForPath.placeholder;\n !(_placeholder.kind === 'stream') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected data for path `%s` for label `%s` ' + 'to be data for @stream, was `@%s`.', _pathKey, label, _placeholder.kind) : invariant(false) : void 0;\n relayPayloads.push(_this11._processStreamResponse(label, path, _placeholder, response));\n }\n });\n return relayPayloads;\n };\n _proto._processDeferResponse = function _processDeferResponse(label, path, placeholder, response) {\n var _placeholder$actorIde;\n var parentID = placeholder.selector.dataID;\n var prevActorIdentifier = this._actorIdentifier;\n this._actorIdentifier = (_placeholder$actorIde = placeholder.actorIdentifier) !== null && _placeholder$actorIde !== void 0 ? _placeholder$actorIde : this._actorIdentifier;\n var relayPayload = this._normalizeResponse(response, placeholder.selector, placeholder.typeName, {\n actorIdentifier: this._actorIdentifier,\n getDataID: this._getDataID,\n path: placeholder.path,\n treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,\n shouldProcessClientComponents: this._shouldProcessClientComponents\n });\n this._getPublishQueueAndSaveActor().commitPayload(this._operation, relayPayload);\n var parentEntry = this._source.get(parentID);\n !(parentEntry != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected the parent record `%s` for @defer ' + 'data to exist.', parentID) : invariant(false) : void 0;\n var fieldPayloads = parentEntry.fieldPayloads;\n if (fieldPayloads.length !== 0) {\n var _response$extensions2;\n var handleFieldsRelayPayload = {\n errors: null,\n fieldPayloads: fieldPayloads,\n incrementalPlaceholders: null,\n followupPayloads: null,\n source: RelayRecordSource.create(),\n isFinal: ((_response$extensions2 = response.extensions) === null || _response$extensions2 === void 0 ? void 0 : _response$extensions2.is_final) === true\n };\n this._getPublishQueueAndSaveActor().commitPayload(this._operation, handleFieldsRelayPayload);\n }\n this._actorIdentifier = prevActorIdentifier;\n return relayPayload;\n };\n _proto._processStreamResponse = function _processStreamResponse(label, path, placeholder, response) {\n var parentID = placeholder.parentID,\n node = placeholder.node,\n variables = placeholder.variables,\n actorIdentifier = placeholder.actorIdentifier;\n var prevActorIdentifier = this._actorIdentifier;\n this._actorIdentifier = actorIdentifier !== null && actorIdentifier !== void 0 ? actorIdentifier : this._actorIdentifier;\n var field = node.selections[0];\n !(field != null && field.kind === 'LinkedField' && field.plural === true) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected @stream to be used on a plural field.') : invariant(false) : void 0;\n var _this$_normalizeStrea = this._normalizeStreamItem(response, parentID, field, variables, path, placeholder.path),\n fieldPayloads = _this$_normalizeStrea.fieldPayloads,\n itemID = _this$_normalizeStrea.itemID,\n itemIndex = _this$_normalizeStrea.itemIndex,\n prevIDs = _this$_normalizeStrea.prevIDs,\n relayPayload = _this$_normalizeStrea.relayPayload,\n storageKey = _this$_normalizeStrea.storageKey;\n this._getPublishQueueAndSaveActor().commitPayload(this._operation, relayPayload, function (store) {\n var currentParentRecord = store.get(parentID);\n if (currentParentRecord == null) {\n return;\n }\n var currentItems = currentParentRecord.getLinkedRecords(storageKey);\n if (currentItems == null) {\n return;\n }\n if (currentItems.length !== prevIDs.length || currentItems.some(function (currentItem, index) {\n return prevIDs[index] !== (currentItem && currentItem.getDataID());\n })) {\n return;\n }\n var nextItems = (0, _toConsumableArray2[\"default\"])(currentItems);\n nextItems[itemIndex] = store.get(itemID);\n currentParentRecord.setLinkedRecords(nextItems, storageKey);\n });\n if (fieldPayloads.length !== 0) {\n var handleFieldsRelayPayload = {\n errors: null,\n fieldPayloads: fieldPayloads,\n incrementalPlaceholders: null,\n followupPayloads: null,\n source: RelayRecordSource.create(),\n isFinal: false\n };\n this._getPublishQueueAndSaveActor().commitPayload(this._operation, handleFieldsRelayPayload);\n }\n this._actorIdentifier = prevActorIdentifier;\n return relayPayload;\n };\n _proto._normalizeStreamItem = function _normalizeStreamItem(response, parentID, field, variables, path, normalizationPath) {\n var _field$alias, _field$concreteType, _ref, _this$_getDataID;\n var data = response.data;\n !(typeof data === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected the GraphQL @stream payload `data` ' + 'value to be an object.') : invariant(false) : void 0;\n var responseKey = (_field$alias = field.alias) !== null && _field$alias !== void 0 ? _field$alias : field.name;\n var storageKey = getStorageKey(field, variables);\n var parentEntry = this._source.get(parentID);\n !(parentEntry != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected the parent record `%s` for @stream ' + 'data to exist.', parentID) : invariant(false) : void 0;\n var parentRecord = parentEntry.record,\n fieldPayloads = parentEntry.fieldPayloads;\n var prevIDs = RelayModernRecord.getLinkedRecordIDs(parentRecord, storageKey);\n !(prevIDs != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected record `%s` to have fetched field ' + '`%s` with @stream.', parentID, field.name) : invariant(false) : void 0;\n var finalPathEntry = path[path.length - 1];\n var itemIndex = parseInt(finalPathEntry, 10);\n !(itemIndex === finalPathEntry && itemIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected path for @stream to end in a ' + 'positive integer index, got `%s`', finalPathEntry) : invariant(false) : void 0;\n var typeName = (_field$concreteType = field.concreteType) !== null && _field$concreteType !== void 0 ? _field$concreteType : data[TYPENAME_KEY];\n !(typeof typeName === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected @stream field `%s` to have a ' + '__typename.', field.name) : invariant(false) : void 0;\n var itemID = (_ref = (_this$_getDataID = this._getDataID(data, typeName)) !== null && _this$_getDataID !== void 0 ? _this$_getDataID : prevIDs === null || prevIDs === void 0 ? void 0 : prevIDs[itemIndex]) !== null && _ref !== void 0 ? _ref : generateClientID(parentID, storageKey, itemIndex);\n !(typeof itemID === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected id of elements of field `%s` to ' + 'be strings.', storageKey) : invariant(false) : void 0;\n var selector = createNormalizationSelector(field, itemID, variables);\n var nextParentRecord = RelayModernRecord.clone(parentRecord);\n var nextIDs = (0, _toConsumableArray2[\"default\"])(prevIDs);\n nextIDs[itemIndex] = itemID;\n RelayModernRecord.setLinkedRecordIDs(nextParentRecord, storageKey, nextIDs);\n this._source.set(parentID, {\n record: nextParentRecord,\n fieldPayloads: fieldPayloads\n });\n var relayPayload = this._normalizeResponse(response, selector, typeName, {\n actorIdentifier: this._actorIdentifier,\n getDataID: this._getDataID,\n path: [].concat((0, _toConsumableArray2[\"default\"])(normalizationPath), [responseKey, String(itemIndex)]),\n treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,\n shouldProcessClientComponents: this._shouldProcessClientComponents\n });\n return {\n fieldPayloads: fieldPayloads,\n itemID: itemID,\n itemIndex: itemIndex,\n prevIDs: prevIDs,\n relayPayload: relayPayload,\n storageKey: storageKey\n };\n };\n _proto._scheduleAsyncStoreUpdate = function _scheduleAsyncStoreUpdate(scheduleFn, completeFn) {\n var _this12 = this;\n this._completeFns.push(completeFn);\n if (this._asyncStoreUpdateDisposable != null) {\n return;\n }\n this._asyncStoreUpdateDisposable = scheduleFn(function () {\n _this12._asyncStoreUpdateDisposable = null;\n var updatedOwners = _this12._runPublishQueue();\n _this12._updateOperationTracker(updatedOwners);\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(_this12._completeFns),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var complete = _step2.value;\n complete();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n _this12._completeFns = [];\n });\n };\n _proto._updateOperationTracker = function _updateOperationTracker(updatedOwners) {\n if (updatedOwners != null && updatedOwners.length > 0) {\n this._operationTracker.update(this._operation.request, new Set(updatedOwners));\n }\n };\n _proto._completeOperationTracker = function _completeOperationTracker() {\n this._operationTracker.complete(this._operation.request);\n };\n _proto._getPublishQueueAndSaveActor = function _getPublishQueueAndSaveActor() {\n this._seenActors.add(this._actorIdentifier);\n return this._getPublishQueue(this._actorIdentifier);\n };\n _proto._getActorsToVisit = function _getActorsToVisit() {\n if (this._seenActors.size === 0) {\n return new Set([this._actorIdentifier]);\n } else {\n return this._seenActors;\n }\n };\n _proto._runPublishQueue = function _runPublishQueue(operation) {\n var updatedOwners = new Set();\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(this._getActorsToVisit()),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var actorIdentifier = _step3.value;\n var owners = this._getPublishQueue(actorIdentifier).run(operation);\n owners.forEach(function (owner) {\n return updatedOwners.add(owner);\n });\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return Array.from(updatedOwners);\n };\n _proto._retainData = function _retainData() {\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(this._getActorsToVisit()),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var actorIdentifier = _step4.value;\n if (!this._retainDisposables.has(actorIdentifier)) {\n this._retainDisposables.set(actorIdentifier, this._getStore(actorIdentifier).retain(this._operation));\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n };\n _proto._disposeRetainedData = function _disposeRetainedData() {\n var _iterator5 = (0, _createForOfIteratorHelper2[\"default\"])(this._retainDisposables.values()),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var disposable = _step5.value;\n disposable.dispose();\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n this._retainDisposables.clear();\n };\n _proto._expectOperationLoader = function _expectOperationLoader() {\n var operationLoader = this._operationLoader;\n !operationLoader ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: Expected an operationLoader to be ' + 'configured when using `@match`.') : invariant(false) : void 0;\n return operationLoader;\n };\n return Executor;\n}();\nfunction partitionGraphQLResponses(responses) {\n var nonIncrementalResponses = [];\n var incrementalResponses = [];\n responses.forEach(function (response) {\n if (response.path != null || response.label != null) {\n var label = response.label,\n path = response.path;\n if (label == null || path == null) {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: invalid incremental payload, expected ' + '`path` and `label` to either both be null/undefined, or ' + '`path` to be an `Array` and `label` to be a ' + '`string`.') : invariant(false) : void 0;\n }\n incrementalResponses.push({\n label: label,\n path: path,\n response: response\n });\n } else {\n nonIncrementalResponses.push(response);\n }\n });\n return [nonIncrementalResponses, incrementalResponses];\n}\nfunction stableStringify(value) {\n var _JSON$stringify;\n return (_JSON$stringify = JSON.stringify(stableCopy(value))) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : '';\n}\nfunction validateOptimisticResponsePayload(payload) {\n var incrementalPlaceholders = payload.incrementalPlaceholders;\n if (incrementalPlaceholders != null && incrementalPlaceholders.length !== 0) {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'OperationExecutor: optimistic responses cannot be returned ' + 'for operations that use incremental data delivery (@defer, ' + '@stream, and @stream_connection).') : invariant(false) : void 0;\n }\n}\nmodule.exports = {\n execute: execute\n};","'use strict';\n\nvar RelayModernRecord = require('../store/RelayModernRecord');\nvar _require = require('../store/RelayRecordState'),\n EXISTENT = _require.EXISTENT;\nvar invariant = require('invariant');\nvar RelayRecordSourceMutator = /*#__PURE__*/function () {\n function RelayRecordSourceMutator(base, sink) {\n this.__sources = [sink, base];\n this._base = base;\n this._sink = sink;\n }\n var _proto = RelayRecordSourceMutator.prototype;\n _proto.unstable_getRawRecordWithChanges = function unstable_getRawRecordWithChanges(dataID) {\n var baseRecord = this._base.get(dataID);\n var sinkRecord = this._sink.get(dataID);\n if (sinkRecord === undefined) {\n if (baseRecord == null) {\n return baseRecord;\n }\n var nextRecord = RelayModernRecord.clone(baseRecord);\n if (process.env.NODE_ENV !== \"production\") {\n RelayModernRecord.freeze(nextRecord);\n }\n return nextRecord;\n } else if (sinkRecord === null) {\n return null;\n } else if (baseRecord != null) {\n var _nextRecord = RelayModernRecord.update(baseRecord, sinkRecord);\n if (process.env.NODE_ENV !== \"production\") {\n if (_nextRecord !== baseRecord) {\n RelayModernRecord.freeze(_nextRecord);\n }\n }\n return _nextRecord;\n } else {\n var _nextRecord2 = RelayModernRecord.clone(sinkRecord);\n if (process.env.NODE_ENV !== \"production\") {\n RelayModernRecord.freeze(_nextRecord2);\n }\n return _nextRecord2;\n }\n };\n _proto._getSinkRecord = function _getSinkRecord(dataID) {\n var sinkRecord = this._sink.get(dataID);\n if (!sinkRecord) {\n var baseRecord = this._base.get(dataID);\n !baseRecord ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceMutator: Cannot modify non-existent record `%s`.', dataID) : invariant(false) : void 0;\n sinkRecord = RelayModernRecord.create(dataID, RelayModernRecord.getType(baseRecord));\n this._sink.set(dataID, sinkRecord);\n }\n return sinkRecord;\n };\n _proto.copyFields = function copyFields(sourceID, sinkID) {\n var sinkSource = this._sink.get(sourceID);\n var baseSource = this._base.get(sourceID);\n !(sinkSource || baseSource) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceMutator#copyFields(): Cannot copy fields from ' + 'non-existent record `%s`.', sourceID) : invariant(false) : void 0;\n var sink = this._getSinkRecord(sinkID);\n if (baseSource) {\n RelayModernRecord.copyFields(baseSource, sink);\n }\n if (sinkSource) {\n RelayModernRecord.copyFields(sinkSource, sink);\n }\n };\n _proto.copyFieldsFromRecord = function copyFieldsFromRecord(record, sinkID) {\n var sink = this._getSinkRecord(sinkID);\n RelayModernRecord.copyFields(record, sink);\n };\n _proto.create = function create(dataID, typeName) {\n !(this._base.getStatus(dataID) !== EXISTENT && this._sink.getStatus(dataID) !== EXISTENT) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceMutator#create(): Cannot create a record with id ' + '`%s`, this record already exists.', dataID) : invariant(false) : void 0;\n var record = RelayModernRecord.create(dataID, typeName);\n this._sink.set(dataID, record);\n };\n _proto[\"delete\"] = function _delete(dataID) {\n this._sink[\"delete\"](dataID);\n };\n _proto.getStatus = function getStatus(dataID) {\n return this._sink.has(dataID) ? this._sink.getStatus(dataID) : this._base.getStatus(dataID);\n };\n _proto.getType = function getType(dataID) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n if (record) {\n return RelayModernRecord.getType(record);\n } else if (record === null) {\n return null;\n }\n }\n };\n _proto.getValue = function getValue(dataID, storageKey) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n if (record) {\n var value = RelayModernRecord.getValue(record, storageKey);\n if (value !== undefined) {\n return value;\n }\n } else if (record === null) {\n return null;\n }\n }\n };\n _proto.setValue = function setValue(dataID, storageKey, value) {\n var sinkRecord = this._getSinkRecord(dataID);\n RelayModernRecord.setValue(sinkRecord, storageKey, value);\n };\n _proto.getErrors = function getErrors(dataID, storageKey) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n if (record) {\n var value = RelayModernRecord.getErrors(record, storageKey);\n if (value !== undefined) {\n return value;\n }\n } else if (record === null) {\n return null;\n }\n }\n };\n _proto.setErrors = function setErrors(dataID, storageKey, errors) {\n var sinkRecord = this._getSinkRecord(dataID);\n RelayModernRecord.setErrors(sinkRecord, storageKey, errors);\n };\n _proto.getLinkedRecordID = function getLinkedRecordID(dataID, storageKey) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n if (record) {\n var linkedID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n if (linkedID !== undefined) {\n return linkedID;\n }\n } else if (record === null) {\n return null;\n }\n }\n };\n _proto.setLinkedRecordID = function setLinkedRecordID(dataID, storageKey, linkedID) {\n var sinkRecord = this._getSinkRecord(dataID);\n RelayModernRecord.setLinkedRecordID(sinkRecord, storageKey, linkedID);\n };\n _proto.getLinkedRecordIDs = function getLinkedRecordIDs(dataID, storageKey) {\n for (var ii = 0; ii < this.__sources.length; ii++) {\n var record = this.__sources[ii].get(dataID);\n if (record) {\n var linkedIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n if (linkedIDs !== undefined) {\n return linkedIDs;\n }\n } else if (record === null) {\n return null;\n }\n }\n };\n _proto.setLinkedRecordIDs = function setLinkedRecordIDs(dataID, storageKey, linkedIDs) {\n var sinkRecord = this._getSinkRecord(dataID);\n RelayModernRecord.setLinkedRecordIDs(sinkRecord, storageKey, linkedIDs);\n };\n return RelayRecordSourceMutator;\n}();\nmodule.exports = RelayRecordSourceMutator;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _require = require('../store/RelayStoreUtils'),\n getArgumentValues = _require.getArgumentValues;\nvar nonUpdatableKeys = ['id', '__id', '__typename', 'js'];\nfunction createUpdatableProxy(updatableProxyRootRecord, variables, selections, recordSourceProxy, missingFieldHandlers) {\n var mutableUpdatableProxy = {};\n updateProxyFromSelections(mutableUpdatableProxy, updatableProxyRootRecord, variables, selections, recordSourceProxy, missingFieldHandlers);\n if (process.env.NODE_ENV !== \"production\") {\n Object.freeze(mutableUpdatableProxy);\n }\n return mutableUpdatableProxy;\n}\nfunction updateProxyFromSelections(mutableUpdatableProxy, updatableProxyRootRecord, variables, selections, recordSourceProxy, missingFieldHandlers) {\n var _selection$alias3;\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(selections),\n _step;\n try {\n var _loop = function _loop() {\n var selection = _step.value;\n switch (selection.kind) {\n case 'LinkedField':\n if (selection.plural) {\n Object.defineProperty(mutableUpdatableProxy, (_selection$alias = selection.alias) !== null && _selection$alias !== void 0 ? _selection$alias : selection.name, {\n get: createGetterForPluralLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers),\n set: createSetterForPluralLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy)\n });\n } else {\n Object.defineProperty(mutableUpdatableProxy, (_selection$alias2 = selection.alias) !== null && _selection$alias2 !== void 0 ? _selection$alias2 : selection.name, {\n get: createGetterForSingularLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers),\n set: createSetterForSingularLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy)\n });\n }\n break;\n case 'ScalarField':\n var scalarFieldName = (_selection$alias3 = selection.alias) !== null && _selection$alias3 !== void 0 ? _selection$alias3 : selection.name;\n Object.defineProperty(mutableUpdatableProxy, scalarFieldName, {\n get: function get() {\n var _selection$args;\n var newVariables = getArgumentValues((_selection$args = selection.args) !== null && _selection$args !== void 0 ? _selection$args : [], variables);\n var value = updatableProxyRootRecord.getValue(selection.name, newVariables);\n if (value == null) {\n value = getScalarUsingMissingFieldHandlers(selection, newVariables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers);\n }\n return value;\n },\n set: nonUpdatableKeys.includes(selection.name) ? undefined : function (newValue) {\n var _selection$args2;\n var newVariables = getArgumentValues((_selection$args2 = selection.args) !== null && _selection$args2 !== void 0 ? _selection$args2 : [], variables);\n updatableProxyRootRecord.setValue__UNSAFE(newValue, selection.name, newVariables);\n }\n });\n break;\n case 'InlineFragment':\n if (updatableProxyRootRecord.getType() === selection.type) {\n updateProxyFromSelections(mutableUpdatableProxy, updatableProxyRootRecord, variables, selection.selections, recordSourceProxy, missingFieldHandlers);\n }\n break;\n case 'ClientExtension':\n updateProxyFromSelections(mutableUpdatableProxy, updatableProxyRootRecord, variables, selection.selections, recordSourceProxy, missingFieldHandlers);\n break;\n case 'FragmentSpread':\n break;\n case 'Condition':\n case 'ActorChange':\n case 'InlineDataFragmentSpread':\n case 'AliasedInlineFragmentSpread':\n case 'ClientEdgeToClientObject':\n case 'ClientEdgeToServerObject':\n case 'Defer':\n case 'ModuleImport':\n case 'RelayLiveResolver':\n case 'RequiredField':\n case 'CatchField':\n case 'Stream':\n case 'RelayResolver':\n throw new Error('Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.');\n default:\n selection.kind;\n throw new Error('Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.');\n }\n };\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _selection$alias;\n var _selection$alias2;\n _loop();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n}\nfunction createSetterForPluralLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy) {\n return function set(newValue) {\n var _selection$args3;\n var newVariables = getArgumentValues((_selection$args3 = selection.args) !== null && _selection$args3 !== void 0 ? _selection$args3 : [], variables);\n if (newValue == null) {\n throw new Error('Do not assign null to plural linked fields; assign an empty array instead.');\n } else {\n var recordProxies = newValue.map(function (item) {\n if (item == null) {\n throw new Error('When assigning an array of items, none of the items should be null or undefined.');\n }\n var __id = item.__id;\n if (__id == null) {\n throw new Error('The __id field must be present on each item passed to the setter. This indicates a bug in Relay.');\n }\n var newValueRecord = recordSourceProxy.get(__id);\n if (newValueRecord == null) {\n throw new Error(\"Did not find item with data id \".concat(__id, \" in the store.\"));\n }\n return newValueRecord;\n });\n updatableProxyRootRecord.setLinkedRecords(recordProxies, selection.name, newVariables);\n }\n };\n}\nfunction createSetterForSingularLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy) {\n return function set(newValue) {\n var _selection$args4;\n var newVariables = getArgumentValues((_selection$args4 = selection.args) !== null && _selection$args4 !== void 0 ? _selection$args4 : [], variables);\n if (newValue == null) {\n updatableProxyRootRecord.setValue(newValue, selection.name, newVariables);\n } else {\n var __id = newValue.__id;\n if (__id == null) {\n throw new Error('The __id field must be present on the argument. This indicates a bug in Relay.');\n }\n var newValueRecord = recordSourceProxy.get(__id);\n if (newValueRecord == null) {\n throw new Error(\"Did not find item with data id \".concat(__id, \" in the store.\"));\n }\n updatableProxyRootRecord.setLinkedRecord(newValueRecord, selection.name, newVariables);\n }\n };\n}\nfunction createGetterForPluralLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers) {\n return function () {\n var _selection$args5;\n var newVariables = getArgumentValues((_selection$args5 = selection.args) !== null && _selection$args5 !== void 0 ? _selection$args5 : [], variables);\n var linkedRecords = updatableProxyRootRecord.getLinkedRecords(selection.name, newVariables);\n if (linkedRecords === undefined) {\n linkedRecords = getPluralLinkedRecordUsingMissingFieldHandlers(selection, newVariables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers);\n }\n if (linkedRecords != null) {\n return linkedRecords.map(function (linkedRecord) {\n if (linkedRecord != null) {\n var updatableProxy = {};\n updateProxyFromSelections(updatableProxy, linkedRecord, variables, selection.selections, recordSourceProxy, missingFieldHandlers);\n if (process.env.NODE_ENV !== \"production\") {\n Object.freeze(updatableProxy);\n }\n return updatableProxy;\n } else {\n return linkedRecord;\n }\n });\n } else {\n return linkedRecords;\n }\n };\n}\nfunction createGetterForSingularLinkedField(selection, variables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers) {\n return function () {\n var _selection$args6;\n var newVariables = getArgumentValues((_selection$args6 = selection.args) !== null && _selection$args6 !== void 0 ? _selection$args6 : [], variables);\n var linkedRecord = updatableProxyRootRecord.getLinkedRecord(selection.name, newVariables);\n if (linkedRecord === undefined) {\n linkedRecord = getLinkedRecordUsingMissingFieldHandlers(selection, newVariables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers);\n }\n if (linkedRecord != null) {\n var updatableProxy = {};\n updateProxyFromSelections(updatableProxy, linkedRecord, variables, selection.selections, recordSourceProxy, missingFieldHandlers);\n if (process.env.NODE_ENV !== \"production\") {\n Object.freeze(updatableProxy);\n }\n return updatableProxy;\n } else {\n return linkedRecord;\n }\n };\n}\nfunction getLinkedRecordUsingMissingFieldHandlers(selection, newVariables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers) {\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(missingFieldHandlers),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var handler = _step2.value;\n if (handler.kind === 'linked') {\n var newId = handler.handle(selection, updatableProxyRootRecord, newVariables, recordSourceProxy);\n if (newId != null) {\n return recordSourceProxy.get(newId);\n }\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n}\nfunction getPluralLinkedRecordUsingMissingFieldHandlers(selection, newVariables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers) {\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(missingFieldHandlers),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var handler = _step3.value;\n if (handler.kind === 'pluralLinked') {\n var newIds = handler.handle(selection, updatableProxyRootRecord, newVariables, recordSourceProxy);\n if (newIds != null) {\n return newIds.map(function (newId) {\n if (newId != null) {\n return recordSourceProxy.get(newId);\n }\n });\n }\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n}\nfunction getScalarUsingMissingFieldHandlers(selection, newVariables, updatableProxyRootRecord, recordSourceProxy, missingFieldHandlers) {\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(missingFieldHandlers),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var handler = _step4.value;\n if (handler.kind === 'scalar') {\n var value = handler.handle(selection, updatableProxyRootRecord, newVariables, recordSourceProxy);\n if (value !== undefined) {\n return value;\n }\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n}\nmodule.exports = {\n createUpdatableProxy: createUpdatableProxy\n};","'use strict';\n\nvar _require = require('../query/GraphQLTag'),\n getFragment = _require.getFragment;\nvar _require2 = require('../store/RelayModernSelector'),\n getVariablesFromFragment = _require2.getVariablesFromFragment;\nvar _require3 = require('../store/RelayStoreUtils'),\n ID_KEY = _require3.ID_KEY;\nvar _require4 = require('./createUpdatableProxy'),\n createUpdatableProxy = _require4.createUpdatableProxy;\nvar invariant = require('invariant');\nfunction readUpdatableFragment(fragment, fragmentReference, proxy, missingFieldHandlers) {\n var updatableFragment = getFragment(fragment);\n var fragmentVariables = getVariablesFromFragment(updatableFragment, fragmentReference);\n var id = fragmentReference[ID_KEY];\n var fragmentRoot = proxy.get(id);\n !(fragmentRoot != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"No record with \".concat(id, \" was found. This likely indicates a problem with Relay.\")) : invariant(false) : void 0;\n return {\n updatableData: createUpdatableProxy(fragmentRoot, fragmentVariables, updatableFragment.selections, proxy, missingFieldHandlers)\n };\n}\nmodule.exports = {\n readUpdatableFragment: readUpdatableFragment\n};","'use strict';\n\nvar _require = require('../query/GraphQLTag'),\n getUpdatableQuery = _require.getUpdatableQuery;\nvar _require2 = require('./createUpdatableProxy'),\n createUpdatableProxy = _require2.createUpdatableProxy;\nfunction readUpdatableQuery(query, variables, proxy, missingFieldHandlers) {\n var updatableQuery = getUpdatableQuery(query);\n return {\n updatableData: createUpdatableProxy(proxy.getRoot(), variables, updatableQuery.fragment.selections, proxy, missingFieldHandlers)\n };\n}\nmodule.exports = {\n readUpdatableQuery: readUpdatableQuery\n};","'use strict';\n\nvar _require = require('../store/ClientID'),\n generateClientID = _require.generateClientID;\nvar _require2 = require('../store/RelayStoreUtils'),\n getStableStorageKey = _require2.getStableStorageKey;\nvar invariant = require('invariant');\nvar RelayRecordProxy = /*#__PURE__*/function () {\n function RelayRecordProxy(source, mutator, dataID) {\n this._dataID = dataID;\n this._mutator = mutator;\n this._source = source;\n }\n var _proto = RelayRecordProxy.prototype;\n _proto.copyFieldsFrom = function copyFieldsFrom(source) {\n this._mutator.copyFields(source.getDataID(), this._dataID);\n };\n _proto.getDataID = function getDataID() {\n return this._dataID;\n };\n _proto.getType = function getType() {\n var type = this._mutator.getType(this._dataID);\n !(type != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordProxy: Cannot get the type of deleted record `%s`.', this._dataID) : invariant(false) : void 0;\n return type;\n };\n _proto.getValue = function getValue(name, args) {\n var storageKey = getStableStorageKey(name, args);\n return this._mutator.getValue(this._dataID, storageKey);\n };\n _proto.setValue = function setValue(value, name, args, errors) {\n !isValidLeafValue(value) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordProxy#setValue(): Expected a scalar or array of scalars, ' + 'got `%s`.', JSON.stringify(value)) : invariant(false) : void 0;\n return this.setValue__UNSAFE(value, name, args, errors);\n };\n _proto.getErrors = function getErrors(name, args) {\n var storageKey = getStableStorageKey(name, args);\n return this._mutator.getErrors(this._dataID, storageKey);\n };\n _proto.setValue__UNSAFE = function setValue__UNSAFE(value, name, args, errors) {\n var storageKey = getStableStorageKey(name, args);\n this._mutator.setValue(this._dataID, storageKey, value);\n if (errors != null) {\n if (errors.length === 0) {\n this._mutator.setErrors(this._dataID, storageKey);\n } else {\n this._mutator.setErrors(this._dataID, storageKey, errors);\n }\n }\n return this;\n };\n _proto.getLinkedRecord = function getLinkedRecord(name, args) {\n var storageKey = getStableStorageKey(name, args);\n var linkedID = this._mutator.getLinkedRecordID(this._dataID, storageKey);\n return linkedID != null ? this._source.get(linkedID) : linkedID;\n };\n _proto.setLinkedRecord = function setLinkedRecord(record, name, args) {\n !(record instanceof RelayRecordProxy) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.', record) : invariant(false) : void 0;\n var storageKey = getStableStorageKey(name, args);\n var linkedID = record.getDataID();\n this._mutator.setLinkedRecordID(this._dataID, storageKey, linkedID);\n return this;\n };\n _proto.getOrCreateLinkedRecord = function getOrCreateLinkedRecord(name, typeName, args) {\n var linkedRecord = this.getLinkedRecord(name, args);\n if (!linkedRecord) {\n var _this$_source$get;\n var storageKey = getStableStorageKey(name, args);\n var clientID = generateClientID(this.getDataID(), storageKey);\n linkedRecord = (_this$_source$get = this._source.get(clientID)) !== null && _this$_source$get !== void 0 ? _this$_source$get : this._source.create(clientID, typeName);\n this.setLinkedRecord(linkedRecord, name, args);\n }\n return linkedRecord;\n };\n _proto.getLinkedRecords = function getLinkedRecords(name, args) {\n var _this = this;\n var storageKey = getStableStorageKey(name, args);\n var linkedIDs = this._mutator.getLinkedRecordIDs(this._dataID, storageKey);\n if (linkedIDs == null) {\n return linkedIDs;\n }\n return linkedIDs.map(function (linkedID) {\n return linkedID != null ? _this._source.get(linkedID) : linkedID;\n });\n };\n _proto.setLinkedRecords = function setLinkedRecords(records, name, args) {\n !Array.isArray(records) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.', records) : invariant(false) : void 0;\n var storageKey = getStableStorageKey(name, args);\n var linkedIDs = records.map(function (record) {\n return record && record.getDataID();\n });\n this._mutator.setLinkedRecordIDs(this._dataID, storageKey, linkedIDs);\n return this;\n };\n _proto.invalidateRecord = function invalidateRecord() {\n this._source.markIDForInvalidation(this._dataID);\n };\n return RelayRecordProxy;\n}();\nfunction isValidLeafValue(value) {\n return value == null || typeof value !== 'object' || Array.isArray(value) && value.every(isValidLeafValue);\n}\nmodule.exports = RelayRecordProxy;","'use strict';\n\nvar RelayModernRecord = require('../store/RelayModernRecord');\nvar _require = require('../store/RelayRecordState'),\n EXISTENT = _require.EXISTENT,\n NONEXISTENT = _require.NONEXISTENT;\nvar _require2 = require('../store/RelayStoreUtils'),\n ROOT_ID = _require2.ROOT_ID,\n ROOT_TYPE = _require2.ROOT_TYPE;\nvar _require3 = require('./readUpdatableFragment'),\n _readUpdatableFragment = _require3.readUpdatableFragment;\nvar _require4 = require('./readUpdatableQuery'),\n _readUpdatableQuery = _require4.readUpdatableQuery;\nvar RelayRecordProxy = require('./RelayRecordProxy');\nvar invariant = require('invariant');\nvar RelayRecordSourceProxy = /*#__PURE__*/function () {\n function RelayRecordSourceProxy(mutator, getDataID, handlerProvider, missingFieldHandlers) {\n this.__mutator = mutator;\n this._handlerProvider = handlerProvider || null;\n this._proxies = {};\n this._getDataID = getDataID;\n this._invalidatedStore = false;\n this._idsMarkedForInvalidation = new Set();\n this._missingFieldHandlers = missingFieldHandlers;\n }\n var _proto = RelayRecordSourceProxy.prototype;\n _proto.publishSource = function publishSource(source, fieldPayloads) {\n var _this = this;\n var dataIDs = source.getRecordIDs();\n dataIDs.forEach(function (dataID) {\n var status = source.getStatus(dataID);\n if (status === EXISTENT) {\n var sourceRecord = source.get(dataID);\n if (sourceRecord) {\n if (_this.__mutator.getStatus(dataID) !== EXISTENT) {\n _this.create(dataID, RelayModernRecord.getType(sourceRecord));\n }\n _this.__mutator.copyFieldsFromRecord(sourceRecord, dataID);\n }\n } else if (status === NONEXISTENT) {\n _this[\"delete\"](dataID);\n }\n });\n if (fieldPayloads && fieldPayloads.length) {\n fieldPayloads.forEach(function (fieldPayload) {\n var handler = _this._handlerProvider && _this._handlerProvider(fieldPayload.handle);\n !handler ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernEnvironment: Expected a handler to be provided for handle `%s`.', fieldPayload.handle) : invariant(false) : void 0;\n handler.update(_this, fieldPayload);\n });\n }\n };\n _proto.create = function create(dataID, typeName) {\n this.__mutator.create(dataID, typeName);\n delete this._proxies[dataID];\n var record = this.get(dataID);\n !record ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceProxy#create(): Expected the created record to exist.') : invariant(false) : void 0;\n return record;\n };\n _proto[\"delete\"] = function _delete(dataID) {\n !(dataID !== ROOT_ID) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceProxy#delete(): Cannot delete the root record.') : invariant(false) : void 0;\n delete this._proxies[dataID];\n this.__mutator[\"delete\"](dataID);\n };\n _proto.get = function get(dataID) {\n if (!this._proxies.hasOwnProperty(dataID)) {\n var status = this.__mutator.getStatus(dataID);\n if (status === EXISTENT) {\n this._proxies[dataID] = new RelayRecordProxy(this, this.__mutator, dataID);\n } else {\n this._proxies[dataID] = status === NONEXISTENT ? null : undefined;\n }\n }\n return this._proxies[dataID];\n };\n _proto.getRoot = function getRoot() {\n var root = this.get(ROOT_ID);\n if (!root) {\n root = this.create(ROOT_ID, ROOT_TYPE);\n }\n !(root && root.getType() === ROOT_TYPE) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceProxy#getRoot(): Expected the source to contain a ' + 'root record, %s.', root == null ? 'no root record found' : \"found a root record of type `\".concat(root.getType(), \"`\")) : invariant(false) : void 0;\n return root;\n };\n _proto.invalidateStore = function invalidateStore() {\n this._invalidatedStore = true;\n };\n _proto.isStoreMarkedForInvalidation = function isStoreMarkedForInvalidation() {\n return this._invalidatedStore;\n };\n _proto.markIDForInvalidation = function markIDForInvalidation(dataID) {\n this._idsMarkedForInvalidation.add(dataID);\n };\n _proto.getIDsMarkedForInvalidation = function getIDsMarkedForInvalidation() {\n return this._idsMarkedForInvalidation;\n };\n _proto.readUpdatableQuery = function readUpdatableQuery(query, variables) {\n return _readUpdatableQuery(query, variables, this, this._missingFieldHandlers);\n };\n _proto.readUpdatableFragment = function readUpdatableFragment(fragment, fragmentReference) {\n return _readUpdatableFragment(fragment, fragmentReference, this, this._missingFieldHandlers);\n };\n return RelayRecordSourceProxy;\n}();\nmodule.exports = RelayRecordSourceProxy;","'use strict';\n\nvar _require = require('../store/RelayStoreUtils'),\n ROOT_TYPE = _require.ROOT_TYPE,\n getStorageKey = _require.getStorageKey;\nvar _require2 = require('./readUpdatableFragment'),\n _readUpdatableFragment = _require2.readUpdatableFragment;\nvar _require3 = require('./readUpdatableQuery'),\n _readUpdatableQuery = _require3.readUpdatableQuery;\nvar invariant = require('invariant');\nvar RelayRecordSourceSelectorProxy = /*#__PURE__*/function () {\n function RelayRecordSourceSelectorProxy(mutator, recordSource, readSelector, missingFieldHandlers) {\n this.__mutator = mutator;\n this.__recordSource = recordSource;\n this._readSelector = readSelector;\n this._missingFieldHandlers = missingFieldHandlers;\n }\n var _proto = RelayRecordSourceSelectorProxy.prototype;\n _proto.create = function create(dataID, typeName) {\n return this.__recordSource.create(dataID, typeName);\n };\n _proto[\"delete\"] = function _delete(dataID) {\n this.__recordSource[\"delete\"](dataID);\n };\n _proto.get = function get(dataID) {\n return this.__recordSource.get(dataID);\n };\n _proto.getRoot = function getRoot() {\n return this.__recordSource.getRoot();\n };\n _proto.getOperationRoot = function getOperationRoot() {\n var root = this.__recordSource.get(this._readSelector.dataID);\n if (!root) {\n root = this.__recordSource.create(this._readSelector.dataID, ROOT_TYPE);\n }\n return root;\n };\n _proto._getRootField = function _getRootField(selector, fieldName, plural) {\n var field = selector.node.selections.find(function (selection) {\n return selection.kind === 'LinkedField' && selection.name === fieldName || selection.kind === 'RequiredField' && selection.field.name === fieldName;\n });\n if (field && field.kind === 'RequiredField') {\n field = field.field;\n }\n !(field && field.kind === 'LinkedField') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceSelectorProxy#getRootField(): Cannot find root ' + 'field `%s`, no such field is defined on GraphQL document `%s`.', fieldName, selector.node.name) : invariant(false) : void 0;\n !(field.plural === plural) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayRecordSourceSelectorProxy#getRootField(): Expected root field ' + '`%s` to be %s.', fieldName, plural ? 'plural' : 'singular') : invariant(false) : void 0;\n return field;\n };\n _proto.getRootField = function getRootField(fieldName) {\n var field = this._getRootField(this._readSelector, fieldName, false);\n var storageKey = getStorageKey(field, this._readSelector.variables);\n return this.getOperationRoot().getLinkedRecord(storageKey);\n };\n _proto.getPluralRootField = function getPluralRootField(fieldName) {\n var field = this._getRootField(this._readSelector, fieldName, true);\n var storageKey = getStorageKey(field, this._readSelector.variables);\n return this.getOperationRoot().getLinkedRecords(storageKey);\n };\n _proto.invalidateStore = function invalidateStore() {\n this.__recordSource.invalidateStore();\n };\n _proto.readUpdatableQuery = function readUpdatableQuery(query, variables) {\n return _readUpdatableQuery(query, variables, this, this._missingFieldHandlers);\n };\n _proto.readUpdatableFragment = function readUpdatableFragment(fragment, fragmentReference) {\n return _readUpdatableFragment(fragment, fragmentReference, this, this._missingFieldHandlers);\n };\n return RelayRecordSourceSelectorProxy;\n}();\nmodule.exports = RelayRecordSourceSelectorProxy;","'use strict';\n\nvar _require = require('../util/RelayConcreteNode'),\n RELAY_LIVE_RESOLVER = _require.RELAY_LIVE_RESOLVER;\nvar invariant = require('invariant');\nvar NoopResolverCache = /*#__PURE__*/function () {\n function NoopResolverCache() {}\n var _proto = NoopResolverCache.prototype;\n _proto.readFromCacheOrEvaluate = function readFromCacheOrEvaluate(recordID, field, variables, evaluate, getDataForResolverFragment) {\n !(field.kind !== RELAY_LIVE_RESOLVER) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'This store does not support Live Resolvers') : invariant(false) : void 0;\n var _evaluate = evaluate(),\n resolverResult = _evaluate.resolverResult,\n snapshot = _evaluate.snapshot,\n error = _evaluate.error;\n return [resolverResult, undefined, error, snapshot, undefined, undefined];\n };\n _proto.invalidateDataIDs = function invalidateDataIDs(updatedDataIDs) {};\n _proto.ensureClientRecord = function ensureClientRecord(id, typeName) {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Client Edges to Client Objects are not supported in this version of Relay Store') : invariant(false) : void 0;\n };\n _proto.notifyUpdatedSubscribers = function notifyUpdatedSubscribers(updatedDataIDs) {};\n return NoopResolverCache;\n}();\nmodule.exports = {\n NoopResolverCache: NoopResolverCache\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar _excluded = [\"message\"];\nvar _require = require('./live-resolvers/LiveResolverSuspenseSentinel'),\n isSuspenseSentinel = _require.isSuspenseSentinel;\nvar RelayConcreteVariables = require('./RelayConcreteVariables');\nvar RelayModernRecord = require('./RelayModernRecord');\nvar _require2 = require('./RelayStoreUtils'),\n CLIENT_EDGE_TRAVERSAL_PATH = _require2.CLIENT_EDGE_TRAVERSAL_PATH,\n FRAGMENT_OWNER_KEY = _require2.FRAGMENT_OWNER_KEY,\n FRAGMENT_PROP_NAME_KEY = _require2.FRAGMENT_PROP_NAME_KEY,\n FRAGMENTS_KEY = _require2.FRAGMENTS_KEY,\n ID_KEY = _require2.ID_KEY,\n MODULE_COMPONENT_KEY = _require2.MODULE_COMPONENT_KEY,\n ROOT_ID = _require2.ROOT_ID,\n getArgumentValues = _require2.getArgumentValues,\n getModuleComponentKey = _require2.getModuleComponentKey,\n getStorageKey = _require2.getStorageKey;\nvar _require3 = require('./ResolverCache'),\n NoopResolverCache = _require3.NoopResolverCache;\nvar _require4 = require('./ResolverFragments'),\n RESOLVER_FRAGMENT_ERRORED_SENTINEL = _require4.RESOLVER_FRAGMENT_ERRORED_SENTINEL,\n withResolverContext = _require4.withResolverContext;\nvar _require5 = require('./TypeID'),\n generateTypeID = _require5.generateTypeID;\nvar invariant = require('invariant');\nfunction read(recordSource, selector, resolverCache, resolverContext) {\n var reader = new RelayReader(recordSource, selector, resolverCache !== null && resolverCache !== void 0 ? resolverCache : new NoopResolverCache(), resolverContext);\n return reader.read();\n}\nvar RelayReader = /*#__PURE__*/function () {\n function RelayReader(recordSource, selector, resolverCache, resolverContext) {\n var _selector$clientEdgeT, _this$_owner$node$ope;\n this._clientEdgeTraversalPath = (_selector$clientEdgeT = selector.clientEdgeTraversalPath) !== null && _selector$clientEdgeT !== void 0 && _selector$clientEdgeT.length ? (0, _toConsumableArray2[\"default\"])(selector.clientEdgeTraversalPath) : [];\n this._missingClientEdges = [];\n this._missingLiveResolverFields = [];\n this._isMissingData = false;\n this._isWithinUnmatchedTypeRefinement = false;\n this._errorResponseFields = null;\n this._owner = selector.owner;\n this._useExecTimeResolvers = (_this$_owner$node$ope = this._owner.node.operation.use_exec_time_resolvers) !== null && _this$_owner$node$ope !== void 0 ? _this$_owner$node$ope : false;\n this._recordSource = recordSource;\n this._seenRecords = new Set();\n this._selector = selector;\n this._variables = selector.variables;\n this._resolverCache = resolverCache;\n this._fragmentName = selector.node.name;\n this._updatedDataIDs = new Set();\n this._resolverContext = resolverContext;\n }\n var _proto = RelayReader.prototype;\n _proto.read = function read() {\n var _this$_selector$node$;\n var _this$_selector = this._selector,\n node = _this$_selector.node,\n dataID = _this$_selector.dataID,\n isWithinUnmatchedTypeRefinement = _this$_selector.isWithinUnmatchedTypeRefinement;\n var abstractKey = node.abstractKey;\n var record = this._recordSource.get(dataID);\n var isDataExpectedToBePresent = !isWithinUnmatchedTypeRefinement;\n if (isDataExpectedToBePresent && abstractKey == null && record != null) {\n if (!this._recordMatchesTypeCondition(record, node.type)) {\n isDataExpectedToBePresent = false;\n }\n }\n if (isDataExpectedToBePresent && abstractKey != null && record != null) {\n var implementsInterface = this._implementsInterface(record, abstractKey);\n if (implementsInterface === false) {\n isDataExpectedToBePresent = false;\n }\n }\n this._isWithinUnmatchedTypeRefinement = !isDataExpectedToBePresent;\n var data = this._traverse(node, dataID, null);\n var catchTo = (_this$_selector$node$ = this._selector.node.metadata) === null || _this$_selector$node$ === void 0 ? void 0 : _this$_selector$node$.catchTo;\n if (catchTo != null) {\n data = this._catchErrors(data, catchTo, null);\n }\n if (this._updatedDataIDs.size > 0) {\n this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs);\n this._updatedDataIDs.clear();\n }\n return {\n data: data,\n isMissingData: this._isMissingData && isDataExpectedToBePresent,\n missingClientEdges: this._missingClientEdges.length ? this._missingClientEdges : null,\n missingLiveResolverFields: this._missingLiveResolverFields,\n seenRecords: this._seenRecords,\n selector: this._selector,\n errorResponseFields: this._errorResponseFields\n };\n };\n _proto._maybeAddErrorResponseFields = function _maybeAddErrorResponseFields(record, storageKey) {\n var errors = RelayModernRecord.getErrors(record, storageKey);\n if (errors == null) {\n return;\n }\n var owner = this._fragmentName;\n if (this._errorResponseFields == null) {\n this._errorResponseFields = [];\n }\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(errors),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _error$path, _this$_selector$node$2, _this$_selector$node$3;\n var error = _step.value;\n this._errorResponseFields.push({\n kind: 'relay_field_payload.error',\n owner: owner,\n fieldPath: ((_error$path = error.path) !== null && _error$path !== void 0 ? _error$path : []).join('.'),\n error: error,\n shouldThrow: (_this$_selector$node$2 = (_this$_selector$node$3 = this._selector.node.metadata) === null || _this$_selector$node$3 === void 0 ? void 0 : _this$_selector$node$3.throwOnFieldError) !== null && _this$_selector$node$2 !== void 0 ? _this$_selector$node$2 : false,\n handled: false\n });\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n };\n _proto._markDataAsMissing = function _markDataAsMissing(fieldName) {\n var _this$_selector$node$4, _this$_selector$node$5;\n if (this._isWithinUnmatchedTypeRefinement) {\n return;\n }\n if (this._errorResponseFields == null) {\n this._errorResponseFields = [];\n }\n var owner = this._fragmentName;\n this._errorResponseFields.push(((_this$_selector$node$4 = (_this$_selector$node$5 = this._selector.node.metadata) === null || _this$_selector$node$5 === void 0 ? void 0 : _this$_selector$node$5.throwOnFieldError) !== null && _this$_selector$node$4 !== void 0 ? _this$_selector$node$4 : false) ? {\n kind: 'missing_expected_data.throw',\n owner: owner,\n fieldPath: fieldName,\n handled: false\n } : {\n kind: 'missing_expected_data.log',\n owner: owner,\n fieldPath: fieldName\n });\n this._isMissingData = true;\n if (this._clientEdgeTraversalPath.length) {\n var top = this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length - 1];\n if (top !== null) {\n this._missingClientEdges.push({\n request: top.readerClientEdge.operation,\n clientEdgeDestinationID: top.clientEdgeDestinationID\n });\n }\n }\n };\n _proto._traverse = function _traverse(node, dataID, prevData) {\n var record = this._recordSource.get(dataID);\n this._seenRecords.add(dataID);\n if (record == null) {\n if (record === undefined) {\n this._markDataAsMissing('');\n }\n return record;\n }\n var data = prevData || {};\n var hadRequiredData = this._traverseSelections(node.selections, record, data);\n return hadRequiredData ? data : null;\n };\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader(): Undefined variable `%s`.', name) : invariant(false) : void 0;\n return this._variables[name];\n };\n _proto._maybeReportUnexpectedNull = function _maybeReportUnexpectedNull(selection) {\n if (selection.action === 'NONE') {\n return;\n }\n var owner = this._fragmentName;\n if (this._errorResponseFields == null) {\n this._errorResponseFields = [];\n }\n var fieldName;\n if (selection.field.linkedField != null) {\n var _selection$field$link;\n fieldName = (_selection$field$link = selection.field.linkedField.alias) !== null && _selection$field$link !== void 0 ? _selection$field$link : selection.field.linkedField.name;\n } else {\n var _selection$field$alia;\n fieldName = (_selection$field$alia = selection.field.alias) !== null && _selection$field$alia !== void 0 ? _selection$field$alia : selection.field.name;\n }\n switch (selection.action) {\n case 'THROW':\n this._errorResponseFields.push({\n kind: 'missing_required_field.throw',\n fieldPath: fieldName,\n owner: owner,\n handled: false\n });\n return;\n case 'LOG':\n this._errorResponseFields.push({\n kind: 'missing_required_field.log',\n fieldPath: fieldName,\n owner: owner\n });\n return;\n default:\n selection.action;\n }\n };\n _proto._handleRequiredFieldValue = function _handleRequiredFieldValue(selection, value) {\n if (value == null) {\n this._maybeReportUnexpectedNull(selection);\n return false;\n }\n return true;\n };\n _proto._catchErrors = function _catchErrors(_value, to, previousResponseFields) {\n var value = _value;\n switch (to) {\n case 'RESULT':\n value = this._asResult(_value);\n break;\n case 'NULL':\n if (this._errorResponseFields != null && this._errorResponseFields.length > 0) {\n value = null;\n }\n break;\n default:\n to;\n }\n var childrenErrorResponseFields = this._errorResponseFields;\n this._errorResponseFields = previousResponseFields;\n if (childrenErrorResponseFields != null) {\n if (this._errorResponseFields == null) {\n this._errorResponseFields = [];\n }\n for (var i = 0; i < childrenErrorResponseFields.length; i++) {\n this._errorResponseFields.push(markFieldErrorHasHandled(childrenErrorResponseFields[i]));\n }\n }\n return value;\n };\n _proto._asResult = function _asResult(value) {\n if (this._errorResponseFields == null || this._errorResponseFields.length === 0) {\n return {\n ok: true,\n value: value\n };\n }\n var errors = this._errorResponseFields.map(function (error) {\n switch (error.kind) {\n case 'relay_field_payload.error':\n var _error$error = error.error,\n message = _error$error.message,\n displayError = (0, _objectWithoutPropertiesLoose2[\"default\"])(_error$error, _excluded);\n return displayError;\n case 'missing_expected_data.throw':\n case 'missing_expected_data.log':\n return {\n path: error.fieldPath.split('.')\n };\n case 'relay_resolver.error':\n return {\n message: \"Relay: Error in resolver for field at \".concat(error.fieldPath, \" in \").concat(error.owner)\n };\n case 'missing_required_field.throw':\n return {\n message: \"Relay: Missing @required value at path '\".concat(error.fieldPath, \"' in '\").concat(error.owner, \"'.\")\n };\n case 'missing_required_field.log':\n return null;\n default:\n error.kind;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected error errorResponseField kind: %s', error.kind) : invariant(false) : void 0;\n }\n }).filter(Boolean);\n return {\n ok: false,\n errors: errors\n };\n };\n _proto._traverseSelections = function _traverseSelections(selections, record, data) {\n for (var i = 0; i < selections.length; i++) {\n var selection = selections[i];\n switch (selection.kind) {\n case 'RequiredField':\n var requiredFieldValue = this._readClientSideDirectiveField(selection, record, data);\n if (!this._handleRequiredFieldValue(selection, requiredFieldValue)) {\n return false;\n }\n break;\n case 'CatchField':\n {\n var _selection$field$back, _selection$field, _field$alias;\n var previousResponseFields = this._errorResponseFields;\n this._errorResponseFields = null;\n var catchFieldValue = this._readClientSideDirectiveField(selection, record, data);\n var field = (_selection$field$back = (_selection$field = selection.field) === null || _selection$field === void 0 ? void 0 : _selection$field.backingField) !== null && _selection$field$back !== void 0 ? _selection$field$back : selection.field;\n var fieldName = (_field$alias = field === null || field === void 0 ? void 0 : field.alias) !== null && _field$alias !== void 0 ? _field$alias : field === null || field === void 0 ? void 0 : field.name;\n !(fieldName != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Couldn't determine field name for this field. It might be a ReaderClientExtension - which is not yet supported.\") : invariant(false) : void 0;\n data[fieldName] = this._catchErrors(catchFieldValue, selection.to, previousResponseFields);\n break;\n }\n case 'ScalarField':\n this._readScalar(selection, record, data);\n break;\n case 'LinkedField':\n if (selection.plural) {\n this._readPluralLink(selection, record, data);\n } else {\n this._readLink(selection, record, data);\n }\n break;\n case 'Condition':\n var conditionValue = Boolean(this._getVariableValue(selection.condition));\n if (conditionValue === selection.passingValue) {\n var hasExpectedData = this._traverseSelections(selection.selections, record, data);\n if (!hasExpectedData) {\n return false;\n }\n }\n break;\n case 'InlineFragment':\n {\n var _hasExpectedData = this._readInlineFragment(selection, record, data, false);\n if (_hasExpectedData === false) {\n return false;\n }\n break;\n }\n case 'RelayLiveResolver':\n case 'RelayResolver':\n {\n if (this._useExecTimeResolvers) {\n this._readScalar(selection, record, data);\n } else {\n this._readResolverField(selection, record, data);\n }\n break;\n }\n case 'FragmentSpread':\n this._createFragmentPointer(selection, record, data);\n break;\n case 'AliasedInlineFragmentSpread':\n {\n this._readAliasedInlineFragment(selection, record, data);\n break;\n }\n case 'ModuleImport':\n this._readModuleImport(selection, record, data);\n break;\n case 'InlineDataFragmentSpread':\n this._createInlineDataOrResolverFragmentPointer(selection, record, data);\n break;\n case 'Defer':\n case 'ClientExtension':\n {\n var isMissingData = this._isMissingData;\n var alreadyMissingClientEdges = this._missingClientEdges.length;\n this._clientEdgeTraversalPath.push(null);\n var _hasExpectedData2 = this._traverseSelections(selection.selections, record, data);\n this._isMissingData = isMissingData || this._missingClientEdges.length > alreadyMissingClientEdges || this._missingLiveResolverFields.length > 0;\n this._clientEdgeTraversalPath.pop();\n if (!_hasExpectedData2) {\n return false;\n }\n break;\n }\n case 'Stream':\n {\n var _hasExpectedData3 = this._traverseSelections(selection.selections, record, data);\n if (!_hasExpectedData3) {\n return false;\n }\n break;\n }\n case 'ActorChange':\n this._readActorChange(selection, record, data);\n break;\n case 'ClientEdgeToClientObject':\n case 'ClientEdgeToServerObject':\n if (this._useExecTimeResolvers && (selection.backingField.kind === 'RelayResolver' || selection.backingField.kind === 'RelayLiveResolver')) {\n var linkedField = selection.linkedField;\n if (linkedField.plural) {\n this._readPluralLink(linkedField, record, data);\n } else {\n this._readLink(linkedField, record, data);\n }\n } else {\n this._readClientEdge(selection, record, data);\n }\n break;\n default:\n selection;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader(): Unexpected ast kind `%s`.', selection.kind) : invariant(false) : void 0;\n }\n }\n return true;\n };\n _proto._readClientSideDirectiveField = function _readClientSideDirectiveField(selection, record, data) {\n switch (selection.field.kind) {\n case 'ScalarField':\n return this._readScalar(selection.field, record, data);\n case 'LinkedField':\n if (selection.field.plural) {\n return this._readPluralLink(selection.field, record, data);\n } else {\n return this._readLink(selection.field, record, data);\n }\n case 'RelayResolver':\n return this._readResolverField(selection.field, record, data);\n case 'RelayLiveResolver':\n return this._readResolverField(selection.field, record, data);\n case 'ClientEdgeToClientObject':\n case 'ClientEdgeToServerObject':\n return this._readClientEdge(selection.field, record, data);\n case 'AliasedInlineFragmentSpread':\n return this._readAliasedInlineFragment(selection.field, record, data);\n default:\n selection.field.kind;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader(): Unexpected ast kind `%s`.', selection.field.kind) : invariant(false) : void 0;\n }\n };\n _proto._readResolverField = function _readResolverField(field, record, data) {\n var _field$alias2;\n var parentRecordID = RelayModernRecord.getDataID(record);\n var prevErrors = this._errorResponseFields;\n this._errorResponseFields = null;\n var result = this._readResolverFieldImpl(field, parentRecordID);\n var fieldName = (_field$alias2 = field.alias) !== null && _field$alias2 !== void 0 ? _field$alias2 : field.name;\n this._prependPreviousErrors(prevErrors, fieldName);\n data[fieldName] = result;\n return result;\n };\n _proto._readResolverFieldImpl = function _readResolverFieldImpl(field, parentRecordID) {\n var _this = this;\n var fragment = field.fragment;\n var snapshot;\n var getDataForResolverFragment = function getDataForResolverFragment(singularReaderSelector) {\n if (snapshot != null) {\n return {\n data: snapshot.data,\n isMissingData: snapshot.isMissingData,\n errorResponseFields: snapshot.errorResponseFields\n };\n }\n snapshot = read(_this._recordSource, singularReaderSelector, _this._resolverCache);\n return {\n data: snapshot.data,\n isMissingData: snapshot.isMissingData,\n errorResponseFields: snapshot.errorResponseFields\n };\n };\n var evaluate = function evaluate() {\n if (fragment != null) {\n var key = {\n __id: parentRecordID,\n __fragmentOwner: _this._owner,\n __fragments: (0, _defineProperty2[\"default\"])({}, fragment.name, fragment.args ? getArgumentValues(fragment.args, _this._variables) : {})\n };\n var resolverContext = {\n getDataForResolverFragment: getDataForResolverFragment\n };\n return withResolverContext(resolverContext, function () {\n var _getResolverValue = getResolverValue(field, _this._variables, key, _this._resolverContext),\n resolverResult = _getResolverValue[0],\n resolverError = _getResolverValue[1];\n return {\n resolverResult: resolverResult,\n snapshot: snapshot,\n error: resolverError\n };\n });\n } else {\n var _getResolverValue2 = getResolverValue(field, _this._variables, null, _this._resolverContext),\n resolverResult = _getResolverValue2[0],\n _resolverError = _getResolverValue2[1];\n return {\n resolverResult: resolverResult,\n snapshot: undefined,\n error: _resolverError\n };\n }\n };\n var _this$_resolverCache$ = this._resolverCache.readFromCacheOrEvaluate(parentRecordID, field, this._variables, evaluate, getDataForResolverFragment),\n result = _this$_resolverCache$[0],\n seenRecord = _this$_resolverCache$[1],\n resolverError = _this$_resolverCache$[2],\n cachedSnapshot = _this$_resolverCache$[3],\n suspenseID = _this$_resolverCache$[4],\n updatedDataIDs = _this$_resolverCache$[5];\n this._propagateResolverMetadata(field.path, cachedSnapshot, resolverError, seenRecord, suspenseID, updatedDataIDs);\n return result;\n };\n _proto._propagateResolverMetadata = function _propagateResolverMetadata(fieldPath, cachedSnapshot, resolverError, seenRecord, suspenseID, updatedDataIDs) {\n if (cachedSnapshot != null) {\n if (cachedSnapshot.missingClientEdges != null) {\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(cachedSnapshot.missingClientEdges),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var missing = _step2.value;\n this._missingClientEdges.push(missing);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n if (cachedSnapshot.missingLiveResolverFields != null) {\n this._isMissingData = this._isMissingData || cachedSnapshot.missingLiveResolverFields.length > 0;\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(cachedSnapshot.missingLiveResolverFields),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var missingResolverField = _step3.value;\n this._missingLiveResolverFields.push(missingResolverField);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n if (cachedSnapshot.errorResponseFields != null) {\n if (this._errorResponseFields == null) {\n this._errorResponseFields = [];\n }\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(cachedSnapshot.errorResponseFields),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _this$_selector$node$6;\n var error = _step4.value;\n if (((_this$_selector$node$6 = this._selector.node.metadata) === null || _this$_selector$node$6 === void 0 ? void 0 : _this$_selector$node$6.throwOnFieldError) === true) {\n this._errorResponseFields.push(error);\n } else {\n this._errorResponseFields.push(markFieldErrorHasHandled(error));\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n this._isMissingData = this._isMissingData || cachedSnapshot.isMissingData;\n }\n if (resolverError) {\n var _this$_selector$node$7, _this$_selector$node$8;\n var errorEvent = {\n kind: 'relay_resolver.error',\n fieldPath: fieldPath,\n owner: this._fragmentName,\n error: resolverError,\n shouldThrow: (_this$_selector$node$7 = (_this$_selector$node$8 = this._selector.node.metadata) === null || _this$_selector$node$8 === void 0 ? void 0 : _this$_selector$node$8.throwOnFieldError) !== null && _this$_selector$node$7 !== void 0 ? _this$_selector$node$7 : false,\n handled: false\n };\n if (this._errorResponseFields == null) {\n this._errorResponseFields = [errorEvent];\n } else {\n this._errorResponseFields.push(errorEvent);\n }\n }\n if (seenRecord != null) {\n this._seenRecords.add(seenRecord);\n }\n if (suspenseID != null) {\n this._isMissingData = true;\n this._missingLiveResolverFields.push(suspenseID);\n }\n if (updatedDataIDs != null) {\n var _iterator5 = (0, _createForOfIteratorHelper2[\"default\"])(updatedDataIDs),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var recordID = _step5.value;\n this._updatedDataIDs.add(recordID);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n }\n };\n _proto._readClientEdge = function _readClientEdge(field, record, data) {\n var _this2 = this;\n var _backingField$alias;\n var backingField = field.backingField;\n !(backingField.kind !== 'ClientExtension') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Client extension client edges are not yet implemented.') : invariant(false) : void 0;\n var fieldName = (_backingField$alias = backingField.alias) !== null && _backingField$alias !== void 0 ? _backingField$alias : backingField.name;\n var backingFieldData = {};\n this._traverseSelections([backingField], record, backingFieldData);\n var clientEdgeResolverResponse = backingFieldData[fieldName];\n if (clientEdgeResolverResponse == null || isSuspenseSentinel(clientEdgeResolverResponse)) {\n data[fieldName] = clientEdgeResolverResponse;\n return clientEdgeResolverResponse;\n }\n if (field.linkedField.plural) {\n !Array.isArray(clientEdgeResolverResponse) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected plural Client Edge Relay Resolver at `%s` in `%s` to return an array containing IDs or objects with shape {id}.', backingField.path, this._owner.identifier) : invariant(false) : void 0;\n var storeIDs;\n !(field.kind === 'ClientEdgeToClientObject') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected Client Edge to plural server type `%s`. This should be prevented by the compiler.', field.kind) : invariant(false) : void 0;\n if (field.backingField.normalizationInfo == null) {\n storeIDs = clientEdgeResolverResponse.map(function (itemResponse) {\n var _field$concreteType;\n var concreteType = (_field$concreteType = field.concreteType) !== null && _field$concreteType !== void 0 ? _field$concreteType : itemResponse.__typename;\n !(typeof concreteType === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected resolver for field at `%s` in `%s` modeling an edge to an abstract type to return an object with a `__typename` property.', backingField.path, _this2._owner.identifier) : invariant(false) : void 0;\n var localId = extractIdFromResponse(itemResponse, backingField.path, _this2._owner.identifier);\n var id = _this2._resolverCache.ensureClientRecord(localId, concreteType);\n var modelResolvers = field.modelResolvers;\n if (modelResolvers != null) {\n var modelResolver = modelResolvers[concreteType];\n !(modelResolver !== undefined) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Invalid `__typename` returned by resolver at `%s` in `%s`. Expected one of %s but got `%s`.', backingField.path, _this2._owner.identifier, Object.keys(modelResolvers).join(', '), concreteType) : invariant(false) : void 0;\n var model = _this2._readResolverFieldImpl(modelResolver, id);\n return model != null ? id : null;\n }\n return id;\n });\n } else {\n storeIDs = clientEdgeResolverResponse.map(function (obj) {\n return extractIdFromResponse(obj, backingField.path, _this2._owner.identifier);\n });\n }\n this._clientEdgeTraversalPath.push(null);\n var edgeValues = this._readLinkedIds(field.linkedField, storeIDs, record, data);\n this._clientEdgeTraversalPath.pop();\n data[fieldName] = edgeValues;\n return edgeValues;\n } else {\n var _field$concreteType2;\n var id = extractIdFromResponse(clientEdgeResolverResponse, backingField.path, this._owner.identifier);\n var storeID;\n var concreteType = (_field$concreteType2 = field.concreteType) !== null && _field$concreteType2 !== void 0 ? _field$concreteType2 : clientEdgeResolverResponse.__typename;\n var traversalPathSegment;\n if (field.kind === 'ClientEdgeToClientObject') {\n if (field.backingField.normalizationInfo == null) {\n !(typeof concreteType === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected resolver for field at `%s` in `%s` modeling an edge to an abstract type to return an object with a `__typename` property.', backingField.path, this._owner.identifier) : invariant(false) : void 0;\n storeID = this._resolverCache.ensureClientRecord(id, concreteType);\n traversalPathSegment = null;\n } else {\n storeID = id;\n traversalPathSegment = null;\n }\n } else {\n storeID = id;\n traversalPathSegment = {\n readerClientEdge: field,\n clientEdgeDestinationID: id\n };\n }\n var modelResolvers = field.modelResolvers;\n if (modelResolvers != null) {\n !(typeof concreteType === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected resolver for field at `%s` in `%s` modeling an edge to an abstract type to return an object with a `__typename` property.', backingField.path, this._owner.identifier) : invariant(false) : void 0;\n var modelResolver = modelResolvers[concreteType];\n !(modelResolver !== undefined) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Invalid `__typename` returned by resolver at `%s` in `%s`. Expected one of %s but got `%s`.', backingField.path, this._owner.identifier, Object.keys(modelResolvers).join(', '), concreteType) : invariant(false) : void 0;\n var model = this._readResolverFieldImpl(modelResolver, storeID);\n if (model == null) {\n data[fieldName] = null;\n return null;\n }\n }\n this._clientEdgeTraversalPath.push(traversalPathSegment);\n var prevData = data[fieldName];\n !(prevData == null || typeof prevData === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader(): Expected data for field at `%s` in `%s` on record `%s` ' + 'to be an object, got `%s`.', backingField.path, this._owner.identifier, RelayModernRecord.getDataID(record), prevData) : invariant(false) : void 0;\n var prevErrors = this._errorResponseFields;\n this._errorResponseFields = null;\n var edgeValue = this._traverse(field.linkedField, storeID, prevData);\n this._prependPreviousErrors(prevErrors, fieldName);\n this._clientEdgeTraversalPath.pop();\n data[fieldName] = edgeValue;\n return edgeValue;\n }\n };\n _proto._readScalar = function _readScalar(field, record, data) {\n var _field$alias3;\n var fieldName = (_field$alias3 = field.alias) !== null && _field$alias3 !== void 0 ? _field$alias3 : field.name;\n var storageKey = getStorageKey(field, this._variables);\n var value = RelayModernRecord.getValue(record, storageKey);\n if (value === null) {\n this._maybeAddErrorResponseFields(record, storageKey);\n } else if (value === undefined) {\n this._markDataAsMissing(fieldName);\n }\n data[fieldName] = value;\n return value;\n };\n _proto._readLink = function _readLink(field, record, data) {\n var _field$alias4;\n var fieldName = (_field$alias4 = field.alias) !== null && _field$alias4 !== void 0 ? _field$alias4 : field.name;\n var storageKey = getStorageKey(field, this._variables);\n var linkedID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n if (linkedID == null) {\n data[fieldName] = linkedID;\n if (linkedID === null) {\n this._maybeAddErrorResponseFields(record, storageKey);\n } else if (linkedID === undefined) {\n this._markDataAsMissing(fieldName);\n }\n return linkedID;\n }\n var prevData = data[fieldName];\n !(prevData == null || typeof prevData === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader(): Expected data for field `%s` at `%s` on record `%s` ' + 'to be an object, got `%s`.', fieldName, this._owner.identifier, RelayModernRecord.getDataID(record), prevData) : invariant(false) : void 0;\n var prevErrors = this._errorResponseFields;\n this._errorResponseFields = null;\n var value = this._traverse(field, linkedID, prevData);\n this._prependPreviousErrors(prevErrors, fieldName);\n data[fieldName] = value;\n return value;\n };\n _proto._prependPreviousErrors = function _prependPreviousErrors(prevErrors, fieldNameOrIndex) {\n if (this._errorResponseFields != null) {\n for (var i = 0; i < this._errorResponseFields.length; i++) {\n var event = this._errorResponseFields[i];\n if (event.owner === this._fragmentName && (event.kind === 'missing_expected_data.throw' || event.kind === 'missing_expected_data.log' || event.kind === 'missing_required_field.throw' || event.kind === 'missing_required_field.log')) {\n event.fieldPath = \"\".concat(fieldNameOrIndex, \".\").concat(event.fieldPath);\n }\n }\n if (prevErrors != null) {\n for (var _i = this._errorResponseFields.length - 1; _i >= 0; _i--) {\n prevErrors.push(this._errorResponseFields[_i]);\n }\n this._errorResponseFields = prevErrors;\n }\n } else {\n this._errorResponseFields = prevErrors;\n }\n };\n _proto._readActorChange = function _readActorChange(field, record, data) {\n var _field$alias5;\n var fieldName = (_field$alias5 = field.alias) !== null && _field$alias5 !== void 0 ? _field$alias5 : field.name;\n var storageKey = getStorageKey(field, this._variables);\n var externalRef = RelayModernRecord.getActorLinkedRecordID(record, storageKey);\n if (externalRef == null) {\n data[fieldName] = externalRef;\n if (externalRef === undefined) {\n this._markDataAsMissing(fieldName);\n } else if (externalRef === null) {\n this._maybeAddErrorResponseFields(record, storageKey);\n }\n return data[fieldName];\n }\n var actorIdentifier = externalRef[0],\n dataID = externalRef[1];\n var fragmentRef = {};\n this._createFragmentPointer(field.fragmentSpread, RelayModernRecord.fromObject({\n __id: dataID\n }), fragmentRef);\n data[fieldName] = {\n __fragmentRef: fragmentRef,\n __viewer: actorIdentifier\n };\n return data[fieldName];\n };\n _proto._readPluralLink = function _readPluralLink(field, record, data) {\n var storageKey = getStorageKey(field, this._variables);\n var linkedIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n if (linkedIDs === null) {\n this._maybeAddErrorResponseFields(record, storageKey);\n }\n return this._readLinkedIds(field, linkedIDs, record, data);\n };\n _proto._readLinkedIds = function _readLinkedIds(field, linkedIDs, record, data) {\n var _this3 = this;\n var _field$alias6;\n var fieldName = (_field$alias6 = field.alias) !== null && _field$alias6 !== void 0 ? _field$alias6 : field.name;\n if (linkedIDs == null) {\n data[fieldName] = linkedIDs;\n if (linkedIDs === undefined) {\n this._markDataAsMissing(fieldName);\n }\n return linkedIDs;\n }\n var prevData = data[fieldName];\n !(prevData == null || Array.isArray(prevData)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader(): Expected data for field `%s` on record `%s` ' + 'to be an array, got `%s`.', fieldName, RelayModernRecord.getDataID(record), prevData) : invariant(false) : void 0;\n var prevErrors = this._errorResponseFields;\n this._errorResponseFields = null;\n var linkedArray = prevData || [];\n linkedIDs.forEach(function (linkedID, nextIndex) {\n if (linkedID == null) {\n if (linkedID === undefined) {\n _this3._markDataAsMissing(String(nextIndex));\n }\n linkedArray[nextIndex] = linkedID;\n return;\n }\n var prevItem = linkedArray[nextIndex];\n !(prevItem == null || typeof prevItem === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader(): Expected data for field `%s` on record `%s` ' + 'to be an object, got `%s`.', fieldName, RelayModernRecord.getDataID(record), prevItem) : invariant(false) : void 0;\n var prevErrors = _this3._errorResponseFields;\n _this3._errorResponseFields = null;\n linkedArray[nextIndex] = _this3._traverse(field, linkedID, prevItem);\n _this3._prependPreviousErrors(prevErrors, nextIndex);\n });\n this._prependPreviousErrors(prevErrors, fieldName);\n data[fieldName] = linkedArray;\n return linkedArray;\n };\n _proto._readModuleImport = function _readModuleImport(moduleImport, record, data) {\n var _moduleImport$compone;\n var componentKey = getModuleComponentKey(moduleImport.documentName);\n var component = (_moduleImport$compone = moduleImport.componentModuleProvider) !== null && _moduleImport$compone !== void 0 ? _moduleImport$compone : RelayModernRecord.getValue(record, componentKey);\n if (component == null) {\n if (component === undefined) {\n this._markDataAsMissing('');\n }\n return;\n }\n this._createFragmentPointer({\n kind: 'FragmentSpread',\n name: moduleImport.fragmentName,\n args: moduleImport.args\n }, record, data);\n data[FRAGMENT_PROP_NAME_KEY] = moduleImport.fragmentPropName;\n data[MODULE_COMPONENT_KEY] = component;\n };\n _proto._readAliasedInlineFragment = function _readAliasedInlineFragment(aliasedInlineFragment, record, data) {\n var prevErrors = this._errorResponseFields;\n this._errorResponseFields = null;\n var fieldValue = this._readInlineFragment(aliasedInlineFragment.fragment, record, {}, true);\n this._prependPreviousErrors(prevErrors, aliasedInlineFragment.name);\n if (fieldValue === false) {\n fieldValue = null;\n }\n data[aliasedInlineFragment.name] = fieldValue;\n };\n _proto._readInlineFragment = function _readInlineFragment(inlineFragment, record, data, skipUnmatchedAbstractTypes) {\n if (inlineFragment.type == null) {\n var hasExpectedData = this._traverseSelections(inlineFragment.selections, record, data);\n if (hasExpectedData === false) {\n return false;\n }\n return data;\n }\n var abstractKey = inlineFragment.abstractKey;\n if (abstractKey == null) {\n if (!this._recordMatchesTypeCondition(record, inlineFragment.type)) {\n return null;\n } else {\n var hasExpectedData = this._traverseSelections(inlineFragment.selections, record, data);\n if (!hasExpectedData) {\n return false;\n }\n }\n } else {\n var implementsInterface = this._implementsInterface(record, abstractKey);\n if (implementsInterface === false && skipUnmatchedAbstractTypes) {\n return null;\n }\n var parentIsMissingData = this._isMissingData;\n var parentIsWithinUnmatchedTypeRefinement = this._isWithinUnmatchedTypeRefinement;\n this._isWithinUnmatchedTypeRefinement = parentIsWithinUnmatchedTypeRefinement || implementsInterface === false;\n var hasMissingData = this._traverseSelections(inlineFragment.selections, record, data);\n this._isWithinUnmatchedTypeRefinement = parentIsWithinUnmatchedTypeRefinement;\n if (implementsInterface === false) {\n this._isMissingData = parentIsMissingData;\n return null;\n } else if (implementsInterface == null) {\n return undefined;\n } else if (hasMissingData === false) {\n return false;\n }\n }\n return data;\n };\n _proto._recordMatchesTypeCondition = function _recordMatchesTypeCondition(record, type) {\n var typeName = RelayModernRecord.getType(record);\n return typeName != null && typeName === type || RelayModernRecord.getDataID(record) === ROOT_ID;\n };\n _proto._createFragmentPointer = function _createFragmentPointer(fragmentSpread, record, data) {\n var fragmentPointers = data[FRAGMENTS_KEY];\n if (fragmentPointers == null) {\n fragmentPointers = data[FRAGMENTS_KEY] = {};\n }\n !(typeof fragmentPointers === 'object' && fragmentPointers != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader: Expected fragment spread data to be an object, got `%s`.', fragmentPointers) : invariant(false) : void 0;\n if (data[ID_KEY] == null) {\n data[ID_KEY] = RelayModernRecord.getDataID(record);\n }\n fragmentPointers[fragmentSpread.name] = getArgumentValues(fragmentSpread.args, this._variables, this._isWithinUnmatchedTypeRefinement);\n data[FRAGMENT_OWNER_KEY] = this._owner;\n if (this._clientEdgeTraversalPath.length > 0 && this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length - 1] !== null) {\n data[CLIENT_EDGE_TRAVERSAL_PATH] = (0, _toConsumableArray2[\"default\"])(this._clientEdgeTraversalPath);\n }\n };\n _proto._createInlineDataOrResolverFragmentPointer = function _createInlineDataOrResolverFragmentPointer(fragmentSpreadOrFragment, record, data) {\n var fragmentPointers = data[FRAGMENTS_KEY];\n if (fragmentPointers == null) {\n fragmentPointers = data[FRAGMENTS_KEY] = {};\n }\n !(typeof fragmentPointers === 'object' && fragmentPointers != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReader: Expected fragment spread data to be an object, got `%s`.', fragmentPointers) : invariant(false) : void 0;\n if (data[ID_KEY] == null) {\n data[ID_KEY] = RelayModernRecord.getDataID(record);\n }\n var inlineData = {};\n var parentFragmentName = this._fragmentName;\n this._fragmentName = fragmentSpreadOrFragment.name;\n var parentVariables = this._variables;\n var argumentVariables = fragmentSpreadOrFragment.args ? getArgumentValues(fragmentSpreadOrFragment.args, this._variables) : {};\n this._variables = RelayConcreteVariables.getFragmentVariables(fragmentSpreadOrFragment, this._owner.variables, argumentVariables);\n this._traverseSelections(fragmentSpreadOrFragment.selections, record, inlineData);\n this._variables = parentVariables;\n this._fragmentName = parentFragmentName;\n fragmentPointers[fragmentSpreadOrFragment.name] = inlineData;\n };\n _proto._implementsInterface = function _implementsInterface(record, abstractKey) {\n var typeName = RelayModernRecord.getType(record);\n var typeRecord = this._recordSource.get(generateTypeID(typeName));\n var implementsInterface = typeRecord != null ? RelayModernRecord.getValue(typeRecord, abstractKey) : null;\n if (implementsInterface == null) {\n this._markDataAsMissing('');\n }\n return implementsInterface;\n };\n return RelayReader;\n}();\nfunction markFieldErrorHasHandled(event) {\n switch (event.kind) {\n case 'missing_expected_data.throw':\n case 'missing_required_field.throw':\n case 'relay_field_payload.error':\n case 'relay_resolver.error':\n return (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, event), {}, {\n handled: true\n });\n case 'missing_expected_data.log':\n case 'missing_required_field.log':\n return event;\n default:\n event.kind;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected error response field kind: %s', event.kind) : invariant(false) : void 0;\n }\n}\nfunction getResolverValue(field, variables, fragmentKey, resolverContext) {\n var resolverFunction = typeof field.resolverModule === 'function' ? field.resolverModule : field.resolverModule[\"default\"];\n var resolverResult = null;\n var resolverError = null;\n try {\n var resolverFunctionArgs = [];\n if (field.fragment != null) {\n resolverFunctionArgs.push(fragmentKey);\n }\n var args = field.args ? getArgumentValues(field.args, variables) : undefined;\n resolverFunctionArgs.push(args);\n resolverFunctionArgs.push(resolverContext);\n resolverResult = resolverFunction.apply(null, resolverFunctionArgs);\n } catch (e) {\n resolverResult = null;\n if (e !== RESOLVER_FRAGMENT_ERRORED_SENTINEL) {\n resolverError = e;\n }\n }\n return [resolverResult, resolverError];\n}\nfunction extractIdFromResponse(individualResponse, path, owner) {\n if (typeof individualResponse === 'string') {\n return individualResponse;\n } else if (typeof individualResponse === 'object' && individualResponse != null && typeof individualResponse.id === 'string') {\n return individualResponse.id;\n }\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected object returned from edge resolver to be a string or an object with an `id` property at path %s in %s,', path, owner) : invariant(false) : void 0;\n}\nmodule.exports = {\n read: read\n};","'use strict';\n\nvar _global$ErrorUtils$ap, _global$ErrorUtils;\nvar RelayRecordSourceMutator = require('../mutations/RelayRecordSourceMutator');\nvar RelayRecordSourceProxy = require('../mutations/RelayRecordSourceProxy');\nvar RelayRecordSourceSelectorProxy = require('../mutations/RelayRecordSourceSelectorProxy');\nvar RelayReader = require('./RelayReader');\nvar RelayRecordSource = require('./RelayRecordSource');\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nvar _global = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : undefined;\nvar applyWithGuard = (_global$ErrorUtils$ap = _global === null || _global === void 0 ? void 0 : (_global$ErrorUtils = _global.ErrorUtils) === null || _global$ErrorUtils === void 0 ? void 0 : _global$ErrorUtils.applyWithGuard) !== null && _global$ErrorUtils$ap !== void 0 ? _global$ErrorUtils$ap : function (callback, context, args, onError, name) {\n return callback.apply(context, args);\n};\nvar RelayPublishQueue = /*#__PURE__*/function () {\n function RelayPublishQueue(store, handlerProvider, getDataID, missingFieldHandlers) {\n this._hasStoreSnapshot = false;\n this._handlerProvider = handlerProvider || null;\n this._pendingBackupRebase = false;\n this._pendingData = new Set();\n this._pendingOptimisticUpdates = new Set();\n this._store = store;\n this._appliedOptimisticUpdates = new Set();\n this._gcHold = null;\n this._getDataID = getDataID;\n this._missingFieldHandlers = missingFieldHandlers;\n }\n var _proto = RelayPublishQueue.prototype;\n _proto.applyUpdate = function applyUpdate(updater) {\n !(!this._appliedOptimisticUpdates.has(updater) && !this._pendingOptimisticUpdates.has(updater)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayPublishQueue: Cannot apply the same update function more than ' + 'once concurrently.') : invariant(false) : void 0;\n this._pendingOptimisticUpdates.add(updater);\n };\n _proto.revertUpdate = function revertUpdate(updater) {\n if (this._pendingOptimisticUpdates.has(updater)) {\n this._pendingOptimisticUpdates[\"delete\"](updater);\n } else if (this._appliedOptimisticUpdates.has(updater)) {\n this._pendingBackupRebase = true;\n this._appliedOptimisticUpdates[\"delete\"](updater);\n }\n };\n _proto.revertAll = function revertAll() {\n this._pendingBackupRebase = true;\n this._pendingOptimisticUpdates.clear();\n this._appliedOptimisticUpdates.clear();\n };\n _proto.commitPayload = function commitPayload(operation, payload, updater) {\n this._pendingBackupRebase = true;\n this._pendingData.add({\n kind: 'payload',\n operation: operation,\n payload: payload,\n updater: updater\n });\n };\n _proto.commitUpdate = function commitUpdate(updater) {\n this._pendingBackupRebase = true;\n this._pendingData.add({\n kind: 'updater',\n updater: updater\n });\n };\n _proto.commitSource = function commitSource(source) {\n this._pendingBackupRebase = true;\n this._pendingData.add({\n kind: 'source',\n source: source\n });\n };\n _proto.run = function run(sourceOperation) {\n var runWillClearGcHold = this._appliedOptimisticUpdates === 0 && !!this._gcHold;\n var runIsANoop = !this._pendingBackupRebase && this._pendingOptimisticUpdates.size === 0 && !runWillClearGcHold;\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(!runIsANoop, 'RelayPublishQueue.run was called, but the call would have been a noop.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(this._isRunning !== true, '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.') : void 0;\n this._isRunning = true;\n }\n if (runIsANoop) {\n if (process.env.NODE_ENV !== \"production\") {\n this._isRunning = false;\n }\n return [];\n }\n if (this._pendingBackupRebase) {\n if (this._hasStoreSnapshot) {\n this._store.restore();\n this._hasStoreSnapshot = false;\n }\n }\n var invalidatedStore = this._commitData();\n if (this._pendingOptimisticUpdates.size || this._pendingBackupRebase && this._appliedOptimisticUpdates.size) {\n if (!this._hasStoreSnapshot) {\n this._store.snapshot();\n this._hasStoreSnapshot = true;\n }\n this._applyUpdates();\n }\n this._pendingBackupRebase = false;\n if (this._appliedOptimisticUpdates.size > 0) {\n if (!this._gcHold) {\n this._gcHold = this._store.holdGC();\n }\n } else {\n if (this._gcHold) {\n this._gcHold.dispose();\n this._gcHold = null;\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n this._isRunning = false;\n }\n return this._store.notify(sourceOperation, invalidatedStore);\n };\n _proto._publishSourceFromPayload = function _publishSourceFromPayload(pendingPayload) {\n var _this = this;\n var payload = pendingPayload.payload,\n operation = pendingPayload.operation,\n updater = pendingPayload.updater;\n var source = payload.source,\n fieldPayloads = payload.fieldPayloads;\n var mutator = new RelayRecordSourceMutator(this._store.getSource(), source);\n var recordSourceProxy = new RelayRecordSourceProxy(mutator, this._getDataID, this._handlerProvider, this._missingFieldHandlers);\n if (fieldPayloads && fieldPayloads.length) {\n fieldPayloads.forEach(function (fieldPayload) {\n var handler = _this._handlerProvider && _this._handlerProvider(fieldPayload.handle);\n !handler ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernEnvironment: Expected a handler to be provided for ' + 'handle `%s`.', fieldPayload.handle) : invariant(false) : void 0;\n handler.update(recordSourceProxy, fieldPayload);\n });\n }\n if (updater) {\n var selector = operation.fragment;\n !(selector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernEnvironment: Expected a selector to be provided with updater function.') : invariant(false) : void 0;\n var recordSourceSelectorProxy = new RelayRecordSourceSelectorProxy(mutator, recordSourceProxy, selector, this._missingFieldHandlers);\n var selectorData = lookupSelector(source, selector);\n updater(recordSourceSelectorProxy, selectorData);\n }\n var idsMarkedForInvalidation = recordSourceProxy.getIDsMarkedForInvalidation();\n this._store.publish(source, idsMarkedForInvalidation);\n return recordSourceProxy.isStoreMarkedForInvalidation();\n };\n _proto._commitData = function _commitData() {\n var _this2 = this;\n if (!this._pendingData.size) {\n return false;\n }\n var invalidatedStore = false;\n this._pendingData.forEach(function (data) {\n if (data.kind === 'payload') {\n var payloadInvalidatedStore = _this2._publishSourceFromPayload(data);\n invalidatedStore = invalidatedStore || payloadInvalidatedStore;\n } else if (data.kind === 'source') {\n var source = data.source;\n _this2._store.publish(source);\n } else {\n var updater = data.updater;\n var sink = RelayRecordSource.create();\n var mutator = new RelayRecordSourceMutator(_this2._store.getSource(), sink);\n var recordSourceProxy = new RelayRecordSourceProxy(mutator, _this2._getDataID, _this2._handlerProvider, _this2._missingFieldHandlers);\n applyWithGuard(updater, null, [recordSourceProxy], null, 'RelayPublishQueue:commitData');\n invalidatedStore = invalidatedStore || recordSourceProxy.isStoreMarkedForInvalidation();\n var idsMarkedForInvalidation = recordSourceProxy.getIDsMarkedForInvalidation();\n _this2._store.publish(sink, idsMarkedForInvalidation);\n }\n });\n this._pendingData.clear();\n return invalidatedStore;\n };\n _proto._applyUpdates = function _applyUpdates() {\n var _this3 = this;\n var sink = RelayRecordSource.create();\n var mutator = new RelayRecordSourceMutator(this._store.getSource(), sink);\n var recordSourceProxy = new RelayRecordSourceProxy(mutator, this._getDataID, this._handlerProvider, this._missingFieldHandlers);\n var processUpdate = function processUpdate(optimisticUpdate) {\n if (optimisticUpdate.storeUpdater) {\n var storeUpdater = optimisticUpdate.storeUpdater;\n applyWithGuard(storeUpdater, null, [recordSourceProxy], null, 'RelayPublishQueue:applyUpdates');\n } else {\n var operation = optimisticUpdate.operation,\n payload = optimisticUpdate.payload,\n updater = optimisticUpdate.updater;\n var source = payload.source,\n fieldPayloads = payload.fieldPayloads;\n if (source) {\n recordSourceProxy.publishSource(source, fieldPayloads);\n }\n if (updater) {\n var selectorData;\n if (source) {\n selectorData = lookupSelector(source, operation.fragment);\n }\n var recordSourceSelectorProxy = new RelayRecordSourceSelectorProxy(mutator, recordSourceProxy, operation.fragment, _this3._missingFieldHandlers);\n applyWithGuard(updater, null, [recordSourceSelectorProxy, selectorData], null, 'RelayPublishQueue:applyUpdates');\n }\n }\n };\n if (this._pendingBackupRebase && this._appliedOptimisticUpdates.size) {\n this._appliedOptimisticUpdates.forEach(processUpdate);\n }\n if (this._pendingOptimisticUpdates.size) {\n this._pendingOptimisticUpdates.forEach(function (optimisticUpdate) {\n processUpdate(optimisticUpdate);\n _this3._appliedOptimisticUpdates.add(optimisticUpdate);\n });\n this._pendingOptimisticUpdates.clear();\n }\n this._store.publish(sink);\n };\n return RelayPublishQueue;\n}();\nfunction lookupSelector(source, selector) {\n var selectorData = RelayReader.read(source, selector).data;\n if (process.env.NODE_ENV !== \"production\") {\n var deepFreeze = require('../util/deepFreeze');\n if (selectorData) {\n deepFreeze(selectorData);\n }\n }\n return selectorData;\n}\nmodule.exports = RelayPublishQueue;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar RelayDefaultHandlerProvider = require('../handlers/RelayDefaultHandlerProvider');\nvar _require = require('../multi-actor-environment/ActorIdentifier'),\n INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE = _require.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,\n assertInternalActorIdentifier = _require.assertInternalActorIdentifier;\nvar RelayObservable = require('../network/RelayObservable');\nvar wrapNetworkWithLogObserver = require('../network/wrapNetworkWithLogObserver');\nvar RelayOperationTracker = require('../store/RelayOperationTracker');\nvar registerEnvironmentWithDevTools = require('../util/registerEnvironmentWithDevTools');\nvar defaultGetDataID = require('./defaultGetDataID');\nvar defaultRelayFieldLogger = require('./defaultRelayFieldLogger');\nvar normalizeResponse = require('./normalizeResponse');\nvar OperationExecutor = require('./OperationExecutor');\nvar RelayPublishQueue = require('./RelayPublishQueue');\nvar RelayRecordSource = require('./RelayRecordSource');\nvar invariant = require('invariant');\nvar RelayModernEnvironment = /*#__PURE__*/function () {\n function RelayModernEnvironment(config) {\n var _this = this;\n var _config$log, _config$relayFieldLog, _config$UNSTABLE_defa, _config$getDataID, _config$missingFieldH, _config$handlerProvid, _config$scheduler, _config$isServer, _config$normalizeResp, _config$operationTrac;\n this.configName = config.configName;\n this._treatMissingFieldsAsNull = config.treatMissingFieldsAsNull === true;\n var operationLoader = config.operationLoader;\n if (process.env.NODE_ENV !== \"production\") {\n if (operationLoader != null) {\n !(typeof operationLoader === 'object' && typeof operationLoader.get === 'function' && typeof operationLoader.load === 'function') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernEnvironment: Expected `operationLoader` to be an object ' + 'with get() and load() functions, got `%s`.', operationLoader) : invariant(false) : void 0;\n }\n }\n this.__log = (_config$log = config.log) !== null && _config$log !== void 0 ? _config$log : emptyFunction;\n this.relayFieldLogger = (_config$relayFieldLog = config.relayFieldLogger) !== null && _config$relayFieldLog !== void 0 ? _config$relayFieldLog : defaultRelayFieldLogger;\n this._defaultRenderPolicy = (_config$UNSTABLE_defa = config.UNSTABLE_defaultRenderPolicy) !== null && _config$UNSTABLE_defa !== void 0 ? _config$UNSTABLE_defa : 'partial';\n this._operationLoader = operationLoader;\n this._operationExecutions = new Map();\n this._network = wrapNetworkWithLogObserver(this, config.network);\n this._getDataID = (_config$getDataID = config.getDataID) !== null && _config$getDataID !== void 0 ? _config$getDataID : defaultGetDataID;\n this._missingFieldHandlers = (_config$missingFieldH = config.missingFieldHandlers) !== null && _config$missingFieldH !== void 0 ? _config$missingFieldH : [];\n this._publishQueue = new RelayPublishQueue(config.store, (_config$handlerProvid = config.handlerProvider) !== null && _config$handlerProvid !== void 0 ? _config$handlerProvid : RelayDefaultHandlerProvider, this._getDataID, this._missingFieldHandlers);\n this._scheduler = (_config$scheduler = config.scheduler) !== null && _config$scheduler !== void 0 ? _config$scheduler : null;\n this._store = config.store;\n this.options = config.options;\n this._isServer = (_config$isServer = config.isServer) !== null && _config$isServer !== void 0 ? _config$isServer : false;\n this._normalizeResponse = (_config$normalizeResp = config.normalizeResponse) !== null && _config$normalizeResp !== void 0 ? _config$normalizeResp : normalizeResponse;\n this.__setNet = function (newNet) {\n return _this._network = wrapNetworkWithLogObserver(_this, newNet);\n };\n if (process.env.NODE_ENV !== \"production\") {\n var _require2 = require('./StoreInspector'),\n inspect = _require2.inspect;\n this.DEBUG_inspect = function (dataID) {\n return inspect(_this, dataID);\n };\n }\n this._operationTracker = (_config$operationTrac = config.operationTracker) !== null && _config$operationTrac !== void 0 ? _config$operationTrac : new RelayOperationTracker();\n this._shouldProcessClientComponents = config.shouldProcessClientComponents;\n registerEnvironmentWithDevTools(this);\n }\n var _proto = RelayModernEnvironment.prototype;\n _proto.getStore = function getStore() {\n return this._store;\n };\n _proto.getNetwork = function getNetwork() {\n return this._network;\n };\n _proto.getOperationTracker = function getOperationTracker() {\n return this._operationTracker;\n };\n _proto.getScheduler = function getScheduler() {\n return this._scheduler;\n };\n _proto.isRequestActive = function isRequestActive(requestIdentifier) {\n var activeState = this._operationExecutions.get(requestIdentifier);\n return activeState === 'active';\n };\n _proto.UNSTABLE_getDefaultRenderPolicy = function UNSTABLE_getDefaultRenderPolicy() {\n return this._defaultRenderPolicy;\n };\n _proto.applyUpdate = function applyUpdate(optimisticUpdate) {\n var _this2 = this;\n var dispose = function dispose() {\n _this2._scheduleUpdates(function () {\n _this2._publishQueue.revertUpdate(optimisticUpdate);\n _this2._publishQueue.run();\n });\n };\n this._scheduleUpdates(function () {\n _this2._publishQueue.applyUpdate(optimisticUpdate);\n _this2._publishQueue.run();\n });\n return {\n dispose: dispose\n };\n };\n _proto.revertUpdate = function revertUpdate(update) {\n var _this3 = this;\n this._scheduleUpdates(function () {\n _this3._publishQueue.revertUpdate(update);\n _this3._publishQueue.run();\n });\n };\n _proto.replaceUpdate = function replaceUpdate(update, newUpdate) {\n var _this4 = this;\n this._scheduleUpdates(function () {\n _this4._publishQueue.revertUpdate(update);\n _this4._publishQueue.applyUpdate(newUpdate);\n _this4._publishQueue.run();\n });\n };\n _proto.applyMutation = function applyMutation(optimisticConfig) {\n var subscription = this._execute({\n createSource: function createSource() {\n return RelayObservable.create(function (_sink) {});\n },\n isClientPayload: false,\n operation: optimisticConfig.operation,\n optimisticConfig: optimisticConfig,\n updater: null\n }).subscribe({});\n return {\n dispose: function dispose() {\n return subscription.unsubscribe();\n }\n };\n };\n _proto.check = function check(operation) {\n if (this._missingFieldHandlers.length === 0 && !operationHasClientAbstractTypes(operation)) {\n return this._store.check(operation);\n }\n return this._checkSelectorAndHandleMissingFields(operation, this._missingFieldHandlers);\n };\n _proto.commitPayload = function commitPayload(operation, payload) {\n this._execute({\n createSource: function createSource() {\n return RelayObservable.from({\n data: payload\n });\n },\n isClientPayload: true,\n operation: operation,\n optimisticConfig: null,\n updater: null\n }).subscribe({});\n };\n _proto.commitUpdate = function commitUpdate(updater) {\n var _this5 = this;\n this._scheduleUpdates(function () {\n _this5._publishQueue.commitUpdate(updater);\n _this5._publishQueue.run();\n });\n };\n _proto.lookup = function lookup(readSelector) {\n return this._store.lookup(readSelector);\n };\n _proto.subscribe = function subscribe(snapshot, callback) {\n return this._store.subscribe(snapshot, callback);\n };\n _proto.retain = function retain(operation) {\n return this._store.retain(operation);\n };\n _proto.isServer = function isServer() {\n return this._isServer;\n };\n _proto._checkSelectorAndHandleMissingFields = function _checkSelectorAndHandleMissingFields(operation, handlers) {\n var _this6 = this;\n var target = RelayRecordSource.create();\n var source = this._store.getSource();\n var result = this._store.check(operation, {\n handlers: handlers,\n defaultActorIdentifier: INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,\n getSourceForActor: function getSourceForActor(actorIdentifier) {\n assertInternalActorIdentifier(actorIdentifier);\n return source;\n },\n getTargetForActor: function getTargetForActor(actorIdentifier) {\n assertInternalActorIdentifier(actorIdentifier);\n return target;\n }\n });\n if (target.size() > 0) {\n this._scheduleUpdates(function () {\n _this6._publishQueue.commitSource(target);\n _this6._publishQueue.run();\n });\n }\n return result;\n };\n _proto._scheduleUpdates = function _scheduleUpdates(task) {\n var scheduler = this._scheduler;\n if (scheduler != null) {\n scheduler.schedule(task);\n } else {\n task();\n }\n };\n _proto.execute = function execute(_ref) {\n var _this7 = this;\n var operation = _ref.operation;\n return this._execute({\n createSource: function createSource() {\n return _this7.getNetwork().execute(operation.request.node.params, operation.request.variables, operation.request.cacheConfig || {}, null);\n },\n isClientPayload: false,\n operation: operation,\n optimisticConfig: null,\n updater: null\n });\n };\n _proto.executeSubscription = function executeSubscription(_ref2) {\n var _this8 = this;\n var operation = _ref2.operation,\n updater = _ref2.updater;\n return this._execute({\n createSource: function createSource() {\n return _this8.getNetwork().execute(operation.request.node.params, operation.request.variables, operation.request.cacheConfig || {}, null);\n },\n isClientPayload: false,\n operation: operation,\n optimisticConfig: null,\n updater: updater\n });\n };\n _proto.executeMutation = function executeMutation(_ref3) {\n var _this9 = this;\n var operation = _ref3.operation,\n optimisticResponse = _ref3.optimisticResponse,\n optimisticUpdater = _ref3.optimisticUpdater,\n updater = _ref3.updater,\n uploadables = _ref3.uploadables;\n var optimisticConfig;\n if (optimisticResponse || optimisticUpdater) {\n optimisticConfig = {\n operation: operation,\n response: optimisticResponse,\n updater: optimisticUpdater\n };\n }\n return this._execute({\n createSource: function createSource() {\n return _this9.getNetwork().execute(operation.request.node.params, operation.request.variables, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, operation.request.cacheConfig), {}, {\n force: true\n }), uploadables);\n },\n isClientPayload: false,\n operation: operation,\n optimisticConfig: optimisticConfig,\n updater: updater\n });\n };\n _proto.executeWithSource = function executeWithSource(_ref4) {\n var operation = _ref4.operation,\n source = _ref4.source;\n return this._execute({\n createSource: function createSource() {\n return source;\n },\n isClientPayload: false,\n operation: operation,\n optimisticConfig: null,\n updater: null\n });\n };\n _proto.toJSON = function toJSON() {\n var _this$configName;\n return \"RelayModernEnvironment(\".concat((_this$configName = this.configName) !== null && _this$configName !== void 0 ? _this$configName : '', \")\");\n };\n _proto._execute = function _execute(_ref5) {\n var _this10 = this;\n var createSource = _ref5.createSource,\n isClientPayload = _ref5.isClientPayload,\n operation = _ref5.operation,\n optimisticConfig = _ref5.optimisticConfig,\n updater = _ref5.updater;\n var publishQueue = this._publishQueue;\n var store = this._store;\n return RelayObservable.create(function (sink) {\n var executor = OperationExecutor.execute({\n actorIdentifier: INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,\n getDataID: _this10._getDataID,\n isClientPayload: isClientPayload,\n log: _this10.__log,\n operation: operation,\n operationExecutions: _this10._operationExecutions,\n operationLoader: _this10._operationLoader,\n operationTracker: _this10._operationTracker,\n optimisticConfig: optimisticConfig,\n getPublishQueue: function getPublishQueue(actorIdentifier) {\n assertInternalActorIdentifier(actorIdentifier);\n return publishQueue;\n },\n scheduler: _this10._scheduler,\n shouldProcessClientComponents: _this10._shouldProcessClientComponents,\n sink: sink,\n source: createSource(),\n getStore: function getStore(actorIdentifier) {\n assertInternalActorIdentifier(actorIdentifier);\n return store;\n },\n treatMissingFieldsAsNull: _this10._treatMissingFieldsAsNull,\n updater: updater,\n normalizeResponse: _this10._normalizeResponse\n });\n return function () {\n return executor.cancel();\n };\n });\n };\n return RelayModernEnvironment;\n}();\nfunction operationHasClientAbstractTypes(operation) {\n return operation.root.node.kind === 'Operation' && operation.root.node.clientAbstractTypes != null;\n}\nRelayModernEnvironment.prototype['@@RelayModernEnvironment'] = true;\nfunction emptyFunction() {}\nmodule.exports = RelayModernEnvironment;","'use strict';\n\nvar resolvedPromise = Promise.resolve();\nfunction resolveImmediate(callback) {\n resolvedPromise.then(callback)[\"catch\"](throwNext);\n}\nfunction throwNext(error) {\n setTimeout(function () {\n throw error;\n }, 0);\n}\nmodule.exports = resolveImmediate;","'use strict';\n\nvar _require = require('../util/RelayConcreteNode'),\n LINKED_FIELD = _require.LINKED_FIELD;\nvar _require2 = require('./RelayStoreUtils'),\n getHandleStorageKey = _require2.getHandleStorageKey;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar invariant = require('invariant');\nfunction cloneRelayHandleSourceField(handleField, selections, variables) {\n var sourceField = selections.find(function (source) {\n return source.kind === LINKED_FIELD && source.name === handleField.name && source.alias === handleField.alias && areEqual(source.args, handleField.args);\n });\n !(sourceField && sourceField.kind === LINKED_FIELD) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'cloneRelayHandleSourceField: Expected a corresponding source field for ' + 'handle `%s`.', handleField.handle) : invariant(false) : void 0;\n var handleKey = getHandleStorageKey(handleField, variables);\n return {\n kind: 'LinkedField',\n alias: sourceField.alias,\n name: handleKey,\n storageKey: handleKey,\n args: null,\n concreteType: sourceField.concreteType,\n plural: sourceField.plural,\n selections: sourceField.selections\n };\n}\nmodule.exports = cloneRelayHandleSourceField;","'use strict';\n\nvar _require = require('../util/RelayConcreteNode'),\n SCALAR_FIELD = _require.SCALAR_FIELD;\nvar _require2 = require('./RelayStoreUtils'),\n getHandleStorageKey = _require2.getHandleStorageKey;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar invariant = require('invariant');\nfunction cloneRelayScalarHandleSourceField(handleField, selections, variables) {\n var sourceField = selections.find(function (source) {\n return source.kind === SCALAR_FIELD && source.name === handleField.name && source.alias === handleField.alias && areEqual(source.args, handleField.args);\n });\n !(sourceField && sourceField.kind === SCALAR_FIELD) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'cloneRelayScalarHandleSourceField: Expected a corresponding source field for ' + 'handle `%s`.', handleField.handle) : invariant(false) : void 0;\n var handleKey = getHandleStorageKey(handleField, variables);\n return {\n kind: 'ScalarField',\n alias: sourceField.alias,\n name: handleKey,\n storageKey: handleKey,\n args: null\n };\n}\nmodule.exports = cloneRelayScalarHandleSourceField;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar RelayRecordSourceMutator = require('../mutations/RelayRecordSourceMutator');\nvar RelayRecordSourceProxy = require('../mutations/RelayRecordSourceProxy');\nvar getOperation = require('../util/getOperation');\nvar _require = require('./ClientID'),\n isClientID = _require.isClientID;\nvar cloneRelayHandleSourceField = require('./cloneRelayHandleSourceField');\nvar cloneRelayScalarHandleSourceField = require('./cloneRelayScalarHandleSourceField');\nvar _require2 = require('./RelayConcreteVariables'),\n getLocalVariables = _require2.getLocalVariables;\nvar RelayModernRecord = require('./RelayModernRecord');\nvar _require3 = require('./RelayRecordState'),\n EXISTENT = _require3.EXISTENT,\n UNKNOWN = _require3.UNKNOWN;\nvar RelayStoreUtils = require('./RelayStoreUtils');\nvar _require4 = require('./TypeID'),\n TYPE_SCHEMA_TYPE = _require4.TYPE_SCHEMA_TYPE,\n generateTypeID = _require4.generateTypeID;\nvar invariant = require('invariant');\nvar getModuleOperationKey = RelayStoreUtils.getModuleOperationKey,\n getStorageKey = RelayStoreUtils.getStorageKey,\n getArgumentValues = RelayStoreUtils.getArgumentValues;\nfunction check(getSourceForActor, getTargetForActor, defaultActorIdentifier, selector, handlers, operationLoader, getDataID, shouldProcessClientComponents, log) {\n if (log != null) {\n log({\n name: 'store.datachecker.start',\n selector: selector\n });\n }\n var dataID = selector.dataID,\n node = selector.node,\n variables = selector.variables;\n var checker = new DataChecker(getSourceForActor, getTargetForActor, defaultActorIdentifier, variables, handlers, operationLoader, getDataID, shouldProcessClientComponents);\n var result = checker.check(node, dataID);\n if (log != null) {\n log({\n name: 'store.datachecker.end',\n selector: selector\n });\n }\n return result;\n}\nvar DataChecker = /*#__PURE__*/function () {\n function DataChecker(getSourceForActor, getTargetForActor, defaultActorIdentifier, variables, handlers, operationLoader, getDataID, shouldProcessClientComponents) {\n this._getSourceForActor = getSourceForActor;\n this._getTargetForActor = getTargetForActor;\n this._getDataID = getDataID;\n this._source = getSourceForActor(defaultActorIdentifier);\n this._mutatorRecordSourceProxyCache = new Map();\n var _this$_getMutatorAndR = this._getMutatorAndRecordProxyForActor(defaultActorIdentifier),\n mutator = _this$_getMutatorAndR[0],\n recordSourceProxy = _this$_getMutatorAndR[1];\n this._mostRecentlyInvalidatedAt = null;\n this._handlers = handlers;\n this._mutator = mutator;\n this._operationLoader = operationLoader !== null && operationLoader !== void 0 ? operationLoader : null;\n this._recordSourceProxy = recordSourceProxy;\n this._recordWasMissing = false;\n this._variables = variables;\n this._shouldProcessClientComponents = shouldProcessClientComponents;\n }\n var _proto = DataChecker.prototype;\n _proto._getMutatorAndRecordProxyForActor = function _getMutatorAndRecordProxyForActor(actorIdentifier) {\n var tuple = this._mutatorRecordSourceProxyCache.get(actorIdentifier);\n if (tuple == null) {\n var target = this._getTargetForActor(actorIdentifier);\n var mutator = new RelayRecordSourceMutator(this._getSourceForActor(actorIdentifier), target);\n var recordSourceProxy = new RelayRecordSourceProxy(mutator, this._getDataID, undefined, this._handlers);\n tuple = [mutator, recordSourceProxy];\n this._mutatorRecordSourceProxyCache.set(actorIdentifier, tuple);\n }\n return tuple;\n };\n _proto.check = function check(node, dataID) {\n this._assignClientAbstractTypes(node);\n this._traverse(node, dataID);\n return this._recordWasMissing === true ? {\n status: 'missing',\n mostRecentlyInvalidatedAt: this._mostRecentlyInvalidatedAt\n } : {\n status: 'available',\n mostRecentlyInvalidatedAt: this._mostRecentlyInvalidatedAt\n };\n };\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayAsyncLoader(): Undefined variable `%s`.', name) : invariant(false) : void 0;\n return this._variables[name];\n };\n _proto._handleMissing = function _handleMissing() {\n this._recordWasMissing = true;\n };\n _proto._handleMissingScalarField = function _handleMissingScalarField(field, dataID) {\n if (field.name === 'id' && field.alias == null && isClientID(dataID)) {\n return undefined;\n }\n var args = field.args != undefined ? getArgumentValues(field.args, this._variables) : {};\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(this._handlers),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var handler = _step.value;\n if (handler.kind === 'scalar') {\n var newValue = handler.handle(field, this._recordSourceProxy.get(dataID), args, this._recordSourceProxy);\n if (newValue !== undefined) {\n return newValue;\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n this._handleMissing();\n };\n _proto._handleMissingLinkField = function _handleMissingLinkField(field, dataID) {\n var args = field.args != undefined ? getArgumentValues(field.args, this._variables) : {};\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(this._handlers),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var handler = _step2.value;\n if (handler.kind === 'linked') {\n var newValue = handler.handle(field, this._recordSourceProxy.get(dataID), args, this._recordSourceProxy);\n if (newValue !== undefined && (newValue === null || this._mutator.getStatus(newValue) === EXISTENT)) {\n return newValue;\n }\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n this._handleMissing();\n };\n _proto._handleMissingPluralLinkField = function _handleMissingPluralLinkField(field, dataID) {\n var _this = this;\n var args = field.args != undefined ? getArgumentValues(field.args, this._variables) : {};\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(this._handlers),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var handler = _step3.value;\n if (handler.kind === 'pluralLinked') {\n var newValue = handler.handle(field, this._recordSourceProxy.get(dataID), args, this._recordSourceProxy);\n if (newValue != null) {\n var allItemsKnown = newValue.every(function (linkedID) {\n return linkedID != null && _this._mutator.getStatus(linkedID) === EXISTENT;\n });\n if (allItemsKnown) {\n return newValue;\n }\n } else if (newValue === null) {\n return null;\n }\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n this._handleMissing();\n };\n _proto._traverse = function _traverse(node, dataID) {\n var status = this._mutator.getStatus(dataID);\n if (status === UNKNOWN) {\n this._handleMissing();\n }\n if (status === EXISTENT) {\n var record = this._source.get(dataID);\n var invalidatedAt = RelayModernRecord.getInvalidationEpoch(record);\n if (invalidatedAt != null) {\n this._mostRecentlyInvalidatedAt = this._mostRecentlyInvalidatedAt != null ? Math.max(this._mostRecentlyInvalidatedAt, invalidatedAt) : invalidatedAt;\n }\n this._traverseSelections(node.selections, dataID);\n }\n };\n _proto._traverseSelections = function _traverseSelections(selections, dataID) {\n var _this2 = this;\n selections.forEach(function (selection) {\n switch (selection.kind) {\n case 'ScalarField':\n _this2._checkScalar(selection, dataID);\n break;\n case 'LinkedField':\n if (selection.plural) {\n _this2._checkPluralLink(selection, dataID);\n } else {\n _this2._checkLink(selection, dataID);\n }\n break;\n case 'ActorChange':\n _this2._checkActorChange(selection.linkedField, dataID);\n break;\n case 'Condition':\n var conditionValue = Boolean(_this2._getVariableValue(selection.condition));\n if (conditionValue === selection.passingValue) {\n _this2._traverseSelections(selection.selections, dataID);\n }\n break;\n case 'InlineFragment':\n {\n var _abstractKey = selection.abstractKey;\n if (_abstractKey == null) {\n var typeName = _this2._mutator.getType(dataID);\n if (typeName === selection.type) {\n _this2._traverseSelections(selection.selections, dataID);\n }\n } else {\n var _recordType = _this2._mutator.getType(dataID);\n !(_recordType != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'DataChecker: Expected record `%s` to have a known type', dataID) : invariant(false) : void 0;\n var _typeID = generateTypeID(_recordType);\n var _implementsInterface = _this2._mutator.getValue(_typeID, _abstractKey);\n if (_implementsInterface === true) {\n _this2._traverseSelections(selection.selections, dataID);\n } else if (_implementsInterface == null) {\n _this2._handleMissing();\n }\n }\n break;\n }\n case 'LinkedHandle':\n {\n var handleField = cloneRelayHandleSourceField(selection, selections, _this2._variables);\n if (handleField.plural) {\n _this2._checkPluralLink(handleField, dataID);\n } else {\n _this2._checkLink(handleField, dataID);\n }\n break;\n }\n case 'ScalarHandle':\n {\n var _handleField = cloneRelayScalarHandleSourceField(selection, selections, _this2._variables);\n _this2._checkScalar(_handleField, dataID);\n break;\n }\n case 'ModuleImport':\n _this2._checkModuleImport(selection, dataID);\n break;\n case 'Defer':\n case 'Stream':\n _this2._traverseSelections(selection.selections, dataID);\n break;\n case 'FragmentSpread':\n var prevVariables = _this2._variables;\n _this2._variables = getLocalVariables(_this2._variables, selection.fragment.argumentDefinitions, selection.args);\n _this2._traverseSelections(selection.fragment.selections, dataID);\n _this2._variables = prevVariables;\n break;\n case 'ClientExtension':\n var recordWasMissing = _this2._recordWasMissing;\n _this2._traverseSelections(selection.selections, dataID);\n _this2._recordWasMissing = recordWasMissing;\n break;\n case 'TypeDiscriminator':\n var abstractKey = selection.abstractKey;\n var recordType = _this2._mutator.getType(dataID);\n !(recordType != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'DataChecker: Expected record `%s` to have a known type', dataID) : invariant(false) : void 0;\n var typeID = generateTypeID(recordType);\n var implementsInterface = _this2._mutator.getValue(typeID, abstractKey);\n if (implementsInterface == null) {\n _this2._handleMissing();\n }\n break;\n case 'ClientComponent':\n if (_this2._shouldProcessClientComponents === false) {\n break;\n }\n _this2._traverseSelections(selection.fragment.selections, dataID);\n break;\n case 'RelayResolver':\n _this2._checkResolver(selection, dataID);\n break;\n case 'RelayLiveResolver':\n _this2._checkResolver(selection, dataID);\n break;\n case 'ClientEdgeToClientObject':\n _this2._checkResolver(selection.backingField, dataID);\n break;\n default:\n selection;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayAsyncLoader(): Unexpected ast kind `%s`.', selection.kind) : invariant(false) : void 0;\n }\n });\n };\n _proto._checkResolver = function _checkResolver(resolver, dataID) {\n if (resolver.fragment) {\n this._traverseSelections([resolver.fragment], dataID);\n }\n };\n _proto._checkModuleImport = function _checkModuleImport(moduleImport, dataID) {\n var operationLoader = this._operationLoader;\n !(operationLoader !== null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'DataChecker: Expected an operationLoader to be configured when using `@module`.') : invariant(false) : void 0;\n var operationKey = getModuleOperationKey(moduleImport.documentName);\n var operationReference = this._mutator.getValue(dataID, operationKey);\n if (operationReference == null) {\n if (operationReference === undefined) {\n this._handleMissing();\n }\n return;\n }\n var normalizationRootNode = operationLoader.get(operationReference);\n if (normalizationRootNode != null) {\n var operation = getOperation(normalizationRootNode);\n var prevVariables = this._variables;\n this._variables = getLocalVariables(this._variables, operation.argumentDefinitions, moduleImport.args);\n this._traverse(operation, dataID);\n this._variables = prevVariables;\n } else {\n this._handleMissing();\n }\n };\n _proto._checkScalar = function _checkScalar(field, dataID) {\n var storageKey = getStorageKey(field, this._variables);\n var fieldValue = this._mutator.getValue(dataID, storageKey);\n if (fieldValue === undefined) {\n fieldValue = this._handleMissingScalarField(field, dataID);\n if (fieldValue !== undefined) {\n this._mutator.setValue(dataID, storageKey, fieldValue);\n }\n }\n };\n _proto._checkLink = function _checkLink(field, dataID) {\n var storageKey = getStorageKey(field, this._variables);\n var linkedID = this._mutator.getLinkedRecordID(dataID, storageKey);\n if (linkedID === undefined) {\n linkedID = this._handleMissingLinkField(field, dataID);\n if (linkedID != null) {\n this._mutator.setLinkedRecordID(dataID, storageKey, linkedID);\n } else if (linkedID === null) {\n this._mutator.setValue(dataID, storageKey, null);\n }\n }\n if (linkedID != null) {\n this._traverse(field, linkedID);\n }\n };\n _proto._checkPluralLink = function _checkPluralLink(field, dataID) {\n var _this3 = this;\n var storageKey = getStorageKey(field, this._variables);\n var linkedIDs = this._mutator.getLinkedRecordIDs(dataID, storageKey);\n if (linkedIDs === undefined) {\n linkedIDs = this._handleMissingPluralLinkField(field, dataID);\n if (linkedIDs != null) {\n this._mutator.setLinkedRecordIDs(dataID, storageKey, linkedIDs);\n } else if (linkedIDs === null) {\n this._mutator.setValue(dataID, storageKey, null);\n }\n }\n if (linkedIDs) {\n linkedIDs.forEach(function (linkedID) {\n if (linkedID != null) {\n _this3._traverse(field, linkedID);\n }\n });\n }\n };\n _proto._checkActorChange = function _checkActorChange(field, dataID) {\n var storageKey = getStorageKey(field, this._variables);\n var record = this._source.get(dataID);\n var tuple = record != null ? RelayModernRecord.getActorLinkedRecordID(record, storageKey) : record;\n if (tuple == null) {\n if (tuple === undefined) {\n this._handleMissing();\n }\n } else {\n var actorIdentifier = tuple[0],\n linkedID = tuple[1];\n var prevSource = this._source;\n var prevMutator = this._mutator;\n var prevRecordSourceProxy = this._recordSourceProxy;\n var _this$_getMutatorAndR2 = this._getMutatorAndRecordProxyForActor(actorIdentifier),\n mutator = _this$_getMutatorAndR2[0],\n recordSourceProxy = _this$_getMutatorAndR2[1];\n this._source = this._getSourceForActor(actorIdentifier);\n this._mutator = mutator;\n this._recordSourceProxy = recordSourceProxy;\n this._assignClientAbstractTypes(field);\n this._traverse(field, linkedID);\n this._source = prevSource;\n this._mutator = prevMutator;\n this._recordSourceProxy = prevRecordSourceProxy;\n }\n };\n _proto._assignClientAbstractTypes = function _assignClientAbstractTypes(node) {\n var clientAbstractTypes = node.clientAbstractTypes;\n if (clientAbstractTypes != null) {\n for (var _i = 0, _Object$keys = Object.keys(clientAbstractTypes); _i < _Object$keys.length; _i++) {\n var abstractType = _Object$keys[_i];\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(clientAbstractTypes[abstractType]),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var concreteType = _step4.value;\n var typeID = generateTypeID(concreteType);\n if (this._source.get(typeID) == null) {\n this._mutator.create(typeID, TYPE_SCHEMA_TYPE);\n }\n if (this._mutator.getValue(typeID, abstractType) == null) {\n this._mutator.setValue(typeID, abstractType, true);\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n }\n };\n return DataChecker;\n}();\nmodule.exports = {\n check: check\n};","'use strict';\n\nmodule.exports = function shallowFreeze(value) {\n if (typeof value === 'object' && value != null && (Array.isArray(value) || value.constructor === Object)) {\n Object.freeze(value);\n }\n};","'use strict';\n\nvar RelayModernRecord = require('../RelayModernRecord');\nvar _require = require('../RelayStoreUtils'),\n RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS = _require.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS;\nvar invariant = require('invariant');\nfunction getOutputTypeRecordIDs(record) {\n var maybeOutputTypeRecordIDs = RelayModernRecord.getValue(record, RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS);\n if (maybeOutputTypeRecordIDs == null) {\n return null;\n }\n !(maybeOutputTypeRecordIDs instanceof Set) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'getOutputTypeRecordIDs: Expected the `%s` field on record `%s` to be of type Set. Instead, it is a %s.', RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS, typeof maybeOutputTypeRecordIDs) : invariant(false) : void 0;\n return maybeOutputTypeRecordIDs;\n}\nmodule.exports = getOutputTypeRecordIDs;","'use strict';\n\nfunction isLiveStateValue(v) {\n return v != null && typeof v === 'object' && typeof v.read === 'function' && typeof v.subscribe === 'function';\n}\nmodule.exports = isLiveStateValue;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar recycleNodesInto = require('../../util/recycleNodesInto');\nvar _require = require('../../util/RelayConcreteNode'),\n RELAY_LIVE_RESOLVER = _require.RELAY_LIVE_RESOLVER;\nvar RelayFeatureFlags = require('../../util/RelayFeatureFlags');\nvar shallowFreeze = require('../../util/shallowFreeze');\nvar _require2 = require('../ClientID'),\n generateClientID = _require2.generateClientID,\n generateClientObjectClientID = _require2.generateClientObjectClientID;\nvar RelayModernRecord = require('../RelayModernRecord');\nvar _require3 = require('../RelayModernSelector'),\n createNormalizationSelector = _require3.createNormalizationSelector;\nvar RelayRecordSource = require('../RelayRecordSource');\nvar _require4 = require('../RelayResponseNormalizer'),\n normalize = _require4.normalize;\nvar _require5 = require('../RelayStoreUtils'),\n RELAY_RESOLVER_ERROR_KEY = _require5.RELAY_RESOLVER_ERROR_KEY,\n RELAY_RESOLVER_INVALIDATION_KEY = _require5.RELAY_RESOLVER_INVALIDATION_KEY,\n RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS = _require5.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,\n RELAY_RESOLVER_SNAPSHOT_KEY = _require5.RELAY_RESOLVER_SNAPSHOT_KEY,\n RELAY_RESOLVER_VALUE_KEY = _require5.RELAY_RESOLVER_VALUE_KEY,\n getStorageKey = _require5.getStorageKey;\nvar getOutputTypeRecordIDs = require('./getOutputTypeRecordIDs');\nvar isLiveStateValue = require('./isLiveStateValue');\nvar _require6 = require('./LiveResolverSuspenseSentinel'),\n isSuspenseSentinel = _require6.isSuspenseSentinel;\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nvar RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY = '__resolverLiveStateSubscription';\nvar RELAY_RESOLVER_LIVE_STATE_VALUE = '__resolverLiveStateValue';\nvar RELAY_RESOLVER_LIVE_STATE_DIRTY = '__resolverLiveStateDirty';\nvar RELAY_RESOLVER_RECORD_TYPENAME = '__RELAY_RESOLVER__';\nvar MODEL_PROPERTY_NAME = '__relay_model_instance';\nfunction addDependencyEdge(edges, from, to) {\n var set = edges.get(from);\n if (!set) {\n set = new Set();\n edges.set(from, set);\n }\n set.add(to);\n}\nvar LiveResolverCache = /*#__PURE__*/function () {\n function LiveResolverCache(getRecordSource, store) {\n this._resolverIDToRecordIDs = new Map();\n this._recordIDToResolverIDs = new Map();\n this._getRecordSource = getRecordSource;\n this._store = store;\n this._handlingBatch = false;\n this._liveResolverBatchRecordSource = null;\n }\n var _proto = LiveResolverCache.prototype;\n _proto.readFromCacheOrEvaluate = function readFromCacheOrEvaluate(recordID, field, variables, evaluate, getDataForResolverFragment) {\n var recordSource = this._getRecordSource();\n var record = expectRecord(recordSource, recordID);\n var storageKey = getStorageKey(field, variables);\n var linkedID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n var linkedRecord = linkedID == null ? null : recordSource.get(linkedID);\n var updatedDataIDs;\n if (linkedRecord == null || this._isInvalid(linkedRecord, getDataForResolverFragment)) {\n var _linkedID;\n if (linkedRecord != null) {\n maybeUnsubscribeFromLiveState(linkedRecord);\n }\n linkedID = (_linkedID = linkedID) !== null && _linkedID !== void 0 ? _linkedID : generateClientID(recordID, storageKey);\n linkedRecord = RelayModernRecord.create(linkedID, RELAY_RESOLVER_RECORD_TYPENAME);\n var evaluationResult = evaluate();\n RelayModernRecord.setValue(linkedRecord, RELAY_RESOLVER_SNAPSHOT_KEY, evaluationResult.snapshot);\n RelayModernRecord.setValue(linkedRecord, RELAY_RESOLVER_ERROR_KEY, evaluationResult.error);\n if (field.kind === RELAY_LIVE_RESOLVER) {\n if (evaluationResult.resolverResult != null) {\n if (process.env.NODE_ENV !== \"production\") {\n !isLiveStateValue(evaluationResult.resolverResult) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected the @live Relay Resolver backing the field \"%s\" to return a value ' + 'that implements LiveState. Did you mean to remove the @live annotation on this resolver?', field.path) : invariant(false) : void 0;\n }\n !(evaluationResult.error == null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Did not expect resolver to have both a value and an error.') : invariant(false) : void 0;\n var liveState = evaluationResult.resolverResult;\n updatedDataIDs = this._setLiveStateValue(linkedRecord, linkedID, liveState, field, variables);\n } else {\n if (process.env.NODE_ENV !== \"production\") {\n var _evaluationResult$sna;\n !(evaluationResult.error != null || ((_evaluationResult$sna = evaluationResult.snapshot) === null || _evaluationResult$sna === void 0 ? void 0 : _evaluationResult$sna.isMissingData)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected the @live Relay Resolver backing the field \"%s\" to return a value ' + 'that implements LiveState interface. The result for this field is `%s`, we also did not detect any errors, ' + 'or missing data during resolver execution. Did you mean to remove the @live annotation on this ' + 'resolver, or was there unexpected early return in the function?', field.path, String(evaluationResult.resolverResult)) : invariant(false) : void 0;\n }\n }\n } else {\n if (process.env.NODE_ENV !== \"production\") {\n !!isLiveStateValue(evaluationResult.resolverResult) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected LiveState value returned from the non-@live Relay Resolver backing the field \"%s\". Did you intend to add @live to this resolver?', field.path) : invariant(false) : void 0;\n }\n updatedDataIDs = this._setResolverValue(linkedRecord, evaluationResult.resolverResult, field, variables);\n }\n recordSource.set(linkedID, linkedRecord);\n var currentRecord = expectRecord(recordSource, recordID);\n var nextRecord = RelayModernRecord.clone(currentRecord);\n RelayModernRecord.setLinkedRecordID(nextRecord, storageKey, linkedID);\n recordSource.set(recordID, nextRecord);\n if (field.fragment != null) {\n var _evaluationResult$sna2;\n var fragmentStorageKey = getStorageKey(field.fragment, variables);\n var resolverID = generateClientID(recordID, fragmentStorageKey);\n addDependencyEdge(this._resolverIDToRecordIDs, resolverID, linkedID);\n addDependencyEdge(this._recordIDToResolverIDs, recordID, resolverID);\n var seenRecordIds = (_evaluationResult$sna2 = evaluationResult.snapshot) === null || _evaluationResult$sna2 === void 0 ? void 0 : _evaluationResult$sna2.seenRecords;\n if (seenRecordIds != null) {\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(seenRecordIds),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var seenRecordID = _step.value;\n addDependencyEdge(this._recordIDToResolverIDs, seenRecordID, resolverID);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }\n } else if (field.kind === RELAY_LIVE_RESOLVER && RelayModernRecord.getValue(linkedRecord, RELAY_RESOLVER_LIVE_STATE_DIRTY)) {\n var _linkedID2;\n linkedID = (_linkedID2 = linkedID) !== null && _linkedID2 !== void 0 ? _linkedID2 : generateClientID(recordID, storageKey);\n linkedRecord = RelayModernRecord.clone(linkedRecord);\n var _liveState = RelayModernRecord.getValue(linkedRecord, RELAY_RESOLVER_LIVE_STATE_VALUE);\n if (!isLiveStateValue(_liveState)) {\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected LiveState value returned from Relay Resolver internal field `RELAY_RESOLVER_LIVE_STATE_VALUE`. ' + 'It is likely a bug in Relay, or a corrupt state of the relay store state ' + 'Field Path `%s`. Record `%s`.', field.path, JSON.stringify(linkedRecord)) : invariant(false) : void 0;\n }\n updatedDataIDs = this._setLiveResolverValue(linkedRecord, _liveState, field, variables);\n RelayModernRecord.setValue(linkedRecord, RELAY_RESOLVER_LIVE_STATE_DIRTY, false);\n recordSource.set(linkedID, linkedRecord);\n }\n var answer = this._getResolverValue(linkedRecord);\n var snapshot = RelayModernRecord.getValue(linkedRecord, RELAY_RESOLVER_SNAPSHOT_KEY);\n var error = RelayModernRecord.getValue(linkedRecord, RELAY_RESOLVER_ERROR_KEY);\n var suspenseID = null;\n if (isSuspenseSentinel(answer)) {\n var _linkedID3;\n suspenseID = (_linkedID3 = linkedID) !== null && _linkedID3 !== void 0 ? _linkedID3 : generateClientID(recordID, storageKey);\n }\n return [answer, linkedID, error, snapshot, suspenseID, updatedDataIDs];\n };\n _proto.getLiveResolverPromise = function getLiveResolverPromise(liveStateID) {\n var recordSource = this._getRecordSource();\n var liveStateRecord = recordSource.get(liveStateID);\n !(liveStateRecord != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected to find record for live resolver.') : invariant(false) : void 0;\n var liveState = RelayModernRecord.getValue(liveStateRecord, RELAY_RESOLVER_LIVE_STATE_VALUE);\n return new Promise(function (resolve) {\n var unsubscribe = liveState.subscribe(function () {\n unsubscribe();\n resolve();\n });\n });\n };\n _proto._setLiveStateValue = function _setLiveStateValue(linkedRecord, linkedID, liveState, field, variables) {\n var handler = this._makeLiveStateHandler(linkedID);\n var unsubscribe = liveState.subscribe(handler);\n RelayModernRecord.setValue(linkedRecord, RELAY_RESOLVER_LIVE_STATE_VALUE, liveState);\n var updatedDataIDs = this._setLiveResolverValue(linkedRecord, liveState, field, variables);\n RelayModernRecord.setValue(linkedRecord, RELAY_RESOLVER_LIVE_STATE_DIRTY, false);\n RelayModernRecord.setValue(linkedRecord, RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY, unsubscribe);\n return updatedDataIDs;\n };\n _proto._makeLiveStateHandler = function _makeLiveStateHandler(linkedID) {\n var _this = this;\n return function () {\n var currentSource = _this._getRecordSource();\n var currentRecord = currentSource.get(linkedID);\n if (!currentRecord) {\n return;\n }\n if (!RelayModernRecord.hasValue(currentRecord, RELAY_RESOLVER_LIVE_STATE_VALUE)) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Unexpected callback for a incomplete live resolver record (__id: `%s`). The record has missing live state value. ' + 'This is a no-op and indicates a memory leak, and possible bug in Relay Live Resolvers. ' + 'Possible cause: The original record was GC-ed, or was created with the optimistic record source.' + ' Record details: `%s`.', linkedID, JSON.stringify(currentRecord)) : void 0;\n return;\n }\n var nextRecord = RelayModernRecord.clone(currentRecord);\n RelayModernRecord.setValue(nextRecord, RELAY_RESOLVER_LIVE_STATE_DIRTY, true);\n _this._setLiveResolverUpdate(linkedID, nextRecord);\n };\n };\n _proto._setLiveResolverUpdate = function _setLiveResolverUpdate(linkedId, record) {\n if (this._handlingBatch) {\n if (this._liveResolverBatchRecordSource == null) {\n this._liveResolverBatchRecordSource = RelayRecordSource.create();\n }\n this._liveResolverBatchRecordSource.set(linkedId, record);\n } else {\n var nextSource = RelayRecordSource.create();\n nextSource.set(linkedId, record);\n this._store.publish(nextSource);\n this._store.notify();\n }\n };\n _proto.batchLiveStateUpdates = function batchLiveStateUpdates(callback) {\n !!this._handlingBatch ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected nested call to batchLiveStateUpdates.') : invariant(false) : void 0;\n this._handlingBatch = true;\n try {\n callback();\n } finally {\n if (this._liveResolverBatchRecordSource != null) {\n this._store.publish(this._liveResolverBatchRecordSource);\n this._store.notify();\n }\n this._liveResolverBatchRecordSource = null;\n this._handlingBatch = false;\n }\n };\n _proto._setLiveResolverValue = function _setLiveResolverValue(resolverRecord, liveValue, field, variables) {\n var value = null;\n var resolverError = null;\n try {\n value = liveValue.read();\n } catch (e) {\n resolverError = e;\n }\n RelayModernRecord.setValue(resolverRecord, RELAY_RESOLVER_ERROR_KEY, resolverError);\n return this._setResolverValue(resolverRecord, value, field, variables);\n };\n _proto._setResolverValue = function _setResolverValue(resolverRecord, value, field, variables) {\n var normalizationInfo = field.normalizationInfo;\n var updatedDataIDs = null;\n if (value != null && normalizationInfo != null && !isSuspenseSentinel(value)) {\n var resolverValue;\n var prevOutputTypeRecordIDs = getOutputTypeRecordIDs(resolverRecord);\n var nextOutputTypeRecordIDs = new Set();\n var currentSource = this._getRecordSource();\n if (normalizationInfo.plural) {\n !Array.isArray(value) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '_setResolverValue: Expected array value for plural @outputType resolver.') : invariant(false) : void 0;\n resolverValue = [];\n var nextSource = RelayRecordSource.create();\n for (var ii = 0; ii < value.length; ii++) {\n var currentValue = value[ii];\n if (currentValue == null) {\n continue;\n }\n !(typeof currentValue === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, '_setResolverValue: Expected object value as the payload for the @outputType resolver.') : invariant(false) : void 0;\n var typename = getConcreteTypename(normalizationInfo, currentValue);\n var outputTypeDataID = generateClientObjectClientID(typename, RelayModernRecord.getDataID(resolverRecord), ii);\n var source = this._normalizeOutputTypeValue(outputTypeDataID, currentValue, variables, normalizationInfo, [field.path, String(ii)], typename);\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(source.getRecordIDs()),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var recordID = _step2.value;\n nextSource.set(recordID, expectRecord(source, recordID));\n nextOutputTypeRecordIDs.add(recordID);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n resolverValue.push(outputTypeDataID);\n }\n updatedDataIDs = updateCurrentSource(currentSource, nextSource, prevOutputTypeRecordIDs);\n } else {\n !(typeof value === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, '_setResolverValue: Expected object value as the payload for the @outputType resolver.') : invariant(false) : void 0;\n var _typename = getConcreteTypename(normalizationInfo, value);\n var _outputTypeDataID = generateClientObjectClientID(_typename, RelayModernRecord.getDataID(resolverRecord));\n var _nextSource = this._normalizeOutputTypeValue(_outputTypeDataID, value, variables, normalizationInfo, [field.path], _typename);\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(_nextSource.getRecordIDs()),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var _recordID = _step3.value;\n nextOutputTypeRecordIDs.add(_recordID);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n resolverValue = _outputTypeDataID;\n updatedDataIDs = updateCurrentSource(currentSource, _nextSource, prevOutputTypeRecordIDs);\n }\n RelayModernRecord.setValue(resolverRecord, RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS, nextOutputTypeRecordIDs);\n shallowFreeze(resolverValue);\n RelayModernRecord.setValue(resolverRecord, RELAY_RESOLVER_VALUE_KEY, resolverValue);\n } else {\n shallowFreeze(value);\n RelayModernRecord.setValue(resolverRecord, RELAY_RESOLVER_VALUE_KEY, value);\n }\n return updatedDataIDs;\n };\n _proto.notifyUpdatedSubscribers = function notifyUpdatedSubscribers(updatedDataIDs) {\n this._store.__notifyUpdatedSubscribers(updatedDataIDs);\n };\n _proto._getResolverValue = function _getResolverValue(resolverRecord) {\n return RelayModernRecord.getValue(resolverRecord, RELAY_RESOLVER_VALUE_KEY);\n };\n _proto.invalidateDataIDs = function invalidateDataIDs(updatedDataIDs) {\n var recordSource = this._getRecordSource();\n var visited = new Set();\n var recordsToVisit = Array.from(updatedDataIDs);\n while (recordsToVisit.length) {\n var recordID = recordsToVisit.pop();\n visited.add(recordID);\n updatedDataIDs.add(recordID);\n var fragmentSet = this._recordIDToResolverIDs.get(recordID);\n if (fragmentSet == null) {\n continue;\n }\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(fragmentSet),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var fragment = _step4.value;\n if (!visited.has(fragment)) {\n visited.add(fragment);\n var recordSet = this._resolverIDToRecordIDs.get(fragment);\n if (recordSet == null) {\n continue;\n }\n var _iterator5 = (0, _createForOfIteratorHelper2[\"default\"])(recordSet),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var anotherRecordID = _step5.value;\n markInvalidatedResolverRecord(anotherRecordID, recordSource);\n if (!visited.has(anotherRecordID)) {\n visited.add(anotherRecordID);\n recordsToVisit.push(anotherRecordID);\n }\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n };\n _proto._isInvalid = function _isInvalid(record, getDataForResolverFragment) {\n if (!RelayModernRecord.getValue(record, RELAY_RESOLVER_INVALIDATION_KEY)) {\n return false;\n }\n var snapshot = RelayModernRecord.getValue(record, RELAY_RESOLVER_SNAPSHOT_KEY);\n var originalInputs = snapshot === null || snapshot === void 0 ? void 0 : snapshot.data;\n var readerSelector = snapshot === null || snapshot === void 0 ? void 0 : snapshot.selector;\n if (originalInputs == null || readerSelector == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Expected previous inputs and reader selector on resolver record with ID %s, but they were missing.', RelayModernRecord.getDataID(record)) : void 0;\n return true;\n }\n var _getDataForResolverFr = getDataForResolverFragment(readerSelector),\n latestValues = _getDataForResolverFr.data;\n var recycled = recycleNodesInto(originalInputs, latestValues);\n if (recycled !== originalInputs) {\n return true;\n }\n if (RelayFeatureFlags.MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD) {\n var nextRecord = RelayModernRecord.clone(record);\n RelayModernRecord.setValue(nextRecord, RELAY_RESOLVER_INVALIDATION_KEY, false);\n var recordSource = this._getRecordSource();\n recordSource.set(RelayModernRecord.getDataID(record), nextRecord);\n }\n return false;\n };\n _proto._normalizeOutputTypeValue = function _normalizeOutputTypeValue(outputTypeDataID, value, variables, normalizationInfo, fieldPath, typename) {\n var source = RelayRecordSource.create();\n switch (normalizationInfo.kind) {\n case 'OutputType':\n {\n var record = RelayModernRecord.create(outputTypeDataID, typename);\n source.set(outputTypeDataID, record);\n var selector = createNormalizationSelector(normalizationInfo.normalizationNode, outputTypeDataID, variables);\n var normalizationOptions = this._store.__getNormalizationOptions(fieldPath);\n return normalize(source, selector, value, normalizationOptions).source;\n }\n case 'WeakModel':\n {\n var _record = RelayModernRecord.create(outputTypeDataID, typename);\n RelayModernRecord.setValue(_record, MODEL_PROPERTY_NAME, value);\n source.set(outputTypeDataID, _record);\n return source;\n }\n default:\n normalizationInfo.kind;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'LiveResolverCache: Unexpected normalization info kind `%s`.', normalizationInfo.kind) : invariant(false) : void 0;\n }\n };\n _proto.ensureClientRecord = function ensureClientRecord(id, typeName) {\n var key = generateClientObjectClientID(typeName, id);\n var recordSource = this._getRecordSource();\n if (!recordSource.has(key)) {\n var newRecord = RelayModernRecord.create(key, typeName);\n RelayModernRecord.setValue(newRecord, 'id', id);\n recordSource.set(key, newRecord);\n }\n return key;\n };\n _proto.unsubscribeFromLiveResolverRecords = function unsubscribeFromLiveResolverRecords(invalidatedDataIDs) {\n return unsubscribeFromLiveResolverRecordsImpl(this._getRecordSource(), invalidatedDataIDs);\n };\n _proto.invalidateResolverRecords = function invalidateResolverRecords(invalidatedDataIDs) {\n if (invalidatedDataIDs.size === 0) {\n return;\n }\n var _iterator6 = (0, _createForOfIteratorHelper2[\"default\"])(invalidatedDataIDs),\n _step6;\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var dataID = _step6.value;\n var record = this._getRecordSource().get(dataID);\n if (record != null && isResolverRecord(record)) {\n this._getRecordSource()[\"delete\"](dataID);\n }\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n };\n return LiveResolverCache;\n}();\nfunction updateCurrentSource(currentSource, nextSource, prevOutputTypeRecordIDs) {\n var updatedDataIDs = new Set();\n if (prevOutputTypeRecordIDs != null) {\n var _iterator7 = (0, _createForOfIteratorHelper2[\"default\"])(prevOutputTypeRecordIDs),\n _step7;\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n var recordID = _step7.value;\n if (!nextSource.has(recordID)) {\n updatedDataIDs.add(recordID);\n currentSource.remove(recordID);\n }\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n }\n var _iterator8 = (0, _createForOfIteratorHelper2[\"default\"])(nextSource.getRecordIDs()),\n _step8;\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var _recordID2 = _step8.value;\n var nextRecord = expectRecord(nextSource, _recordID2);\n if (currentSource.has(_recordID2)) {\n var currentRecord = expectRecord(currentSource, _recordID2);\n var updatedRecord = RelayModernRecord.update(currentRecord, nextRecord);\n if (updatedRecord !== currentRecord) {\n updatedDataIDs.add(_recordID2);\n currentSource.set(_recordID2, updatedRecord);\n markInvalidatedLinkedResolverRecords(currentRecord, currentSource);\n }\n } else {\n currentSource.set(_recordID2, nextRecord);\n }\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n return updatedDataIDs;\n}\nfunction getAllLinkedRecordIds(record) {\n var linkedRecordIDs = new Set();\n RelayModernRecord.getFields(record).forEach(function (field) {\n if (RelayModernRecord.hasLinkedRecordID(record, field)) {\n var linkedRecordID = RelayModernRecord.getLinkedRecordID(record, field);\n if (linkedRecordID != null) {\n linkedRecordIDs.add(linkedRecordID);\n }\n } else if (RelayModernRecord.hasLinkedRecordIDs(record, field)) {\n var _RelayModernRecord$ge;\n (_RelayModernRecord$ge = RelayModernRecord.getLinkedRecordIDs(record, field)) === null || _RelayModernRecord$ge === void 0 ? void 0 : _RelayModernRecord$ge.forEach(function (linkedRecordID) {\n if (linkedRecordID != null) {\n linkedRecordIDs.add(linkedRecordID);\n }\n });\n }\n });\n return linkedRecordIDs;\n}\nfunction markInvalidatedResolverRecord(dataID, recordSource) {\n var record = recordSource.get(dataID);\n if (!record) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Expected a resolver record with ID %s, but it was missing.', dataID) : void 0;\n return;\n }\n var nextRecord = RelayModernRecord.clone(record);\n RelayModernRecord.setValue(nextRecord, RELAY_RESOLVER_INVALIDATION_KEY, true);\n recordSource.set(dataID, nextRecord);\n}\nfunction markInvalidatedLinkedResolverRecords(record, recordSource) {\n var currentLinkedDataIDs = getAllLinkedRecordIds(record);\n var _iterator9 = (0, _createForOfIteratorHelper2[\"default\"])(currentLinkedDataIDs),\n _step9;\n try {\n for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {\n var recordID = _step9.value;\n var _record2 = recordSource.get(recordID);\n if (_record2 != null && isResolverRecord(_record2)) {\n markInvalidatedResolverRecord(recordID, recordSource);\n }\n }\n } catch (err) {\n _iterator9.e(err);\n } finally {\n _iterator9.f();\n }\n}\nfunction unsubscribeFromLiveResolverRecordsImpl(recordSource, invalidatedDataIDs) {\n if (invalidatedDataIDs.size === 0) {\n return;\n }\n var _iterator10 = (0, _createForOfIteratorHelper2[\"default\"])(invalidatedDataIDs),\n _step10;\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var dataID = _step10.value;\n var record = recordSource.get(dataID);\n if (record != null && isResolverRecord(record)) {\n maybeUnsubscribeFromLiveState(record);\n }\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n}\nfunction isResolverRecord(record) {\n return RelayModernRecord.getType(record) === RELAY_RESOLVER_RECORD_TYPENAME;\n}\nfunction maybeUnsubscribeFromLiveState(linkedRecord) {\n var previousUnsubscribe = RelayModernRecord.getValue(linkedRecord, RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY);\n if (previousUnsubscribe != null) {\n previousUnsubscribe();\n }\n}\nfunction expectRecord(source, recordID) {\n var record = source.get(recordID);\n !(record != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected a record with ID `%s` to exist in the record source.', recordID) : invariant(false) : void 0;\n return record;\n}\nfunction getUpdatedDataIDs(updatedRecords) {\n return updatedRecords;\n}\nfunction getConcreteTypename(normalizationInfo, currentValue) {\n var _normalizationInfo$co;\n var typename = (_normalizationInfo$co = normalizationInfo.concreteType) !== null && _normalizationInfo$co !== void 0 ? _normalizationInfo$co : currentValue.__typename;\n !(typename != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'normalizationInfo.concreteType should not be null, or the value returned from the resolver should include a __typename field, ' + 'or the resolver should have a flow error. If not, this indicates a bug in Relay.') : invariant(false) : void 0;\n return typename;\n}\nmodule.exports = {\n LiveResolverCache: LiveResolverCache,\n getUpdatedDataIDs: getUpdatedDataIDs,\n RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY: RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar RelayModernRecord = require('./RelayModernRecord');\nvar RelayRecordSource = require('./RelayRecordSource');\nvar invariant = require('invariant');\nvar UNPUBLISH_RECORD_SENTINEL = RelayModernRecord.fromObject(Object.freeze({\n __UNPUBLISH_RECORD_SENTINEL: true\n}));\nvar RelayOptimisticRecordSource = /*#__PURE__*/function () {\n function RelayOptimisticRecordSource(base) {\n this._base = base;\n this._sink = RelayRecordSource.create();\n }\n var _proto = RelayOptimisticRecordSource.prototype;\n _proto.has = function has(dataID) {\n if (this._sink.has(dataID)) {\n var sinkRecord = this._sink.get(dataID);\n return sinkRecord !== UNPUBLISH_RECORD_SENTINEL;\n } else {\n return this._base.has(dataID);\n }\n };\n _proto.get = function get(dataID) {\n if (this._sink.has(dataID)) {\n var sinkRecord = this._sink.get(dataID);\n if (sinkRecord === UNPUBLISH_RECORD_SENTINEL) {\n return undefined;\n } else {\n return sinkRecord;\n }\n } else {\n return this._base.get(dataID);\n }\n };\n _proto.getStatus = function getStatus(dataID) {\n var record = this.get(dataID);\n if (record === undefined) {\n return 'UNKNOWN';\n } else if (record === null) {\n return 'NONEXISTENT';\n } else {\n return 'EXISTENT';\n }\n };\n _proto.clear = function clear() {\n this._base = RelayRecordSource.create();\n this._sink.clear();\n };\n _proto[\"delete\"] = function _delete(dataID) {\n this._sink[\"delete\"](dataID);\n };\n _proto.remove = function remove(dataID) {\n this._sink.set(dataID, UNPUBLISH_RECORD_SENTINEL);\n };\n _proto.set = function set(dataID, record) {\n this._sink.set(dataID, record);\n };\n _proto.getRecordIDs = function getRecordIDs() {\n return Object.keys(this.toJSON());\n };\n _proto.size = function size() {\n return Object.keys(this.toJSON()).length;\n };\n _proto.toJSON = function toJSON() {\n var _this = this;\n var merged = (0, _objectSpread2[\"default\"])({}, this._base.toJSON());\n this._sink.getRecordIDs().forEach(function (dataID) {\n var record = _this.get(dataID);\n if (record === undefined) {\n delete merged[dataID];\n } else {\n merged[dataID] = RelayModernRecord.toJSON(record);\n }\n });\n return merged;\n };\n _proto.getOptimisticRecordIDs = function getOptimisticRecordIDs() {\n return new Set(this._sink.getRecordIDs());\n };\n return RelayOptimisticRecordSource;\n}();\nfunction create(base) {\n return new RelayOptimisticRecordSource(base);\n}\nfunction getOptimisticRecordIDs(source) {\n !(source instanceof RelayOptimisticRecordSource) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'getOptimisticRecordIDs: Instance of RelayOptimisticRecordSource is expected') : invariant(false) : void 0;\n return source.getOptimisticRecordIDs();\n}\nmodule.exports = {\n create: create,\n getOptimisticRecordIDs: getOptimisticRecordIDs\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar getOperation = require('../util/getOperation');\nvar cloneRelayHandleSourceField = require('./cloneRelayHandleSourceField');\nvar getOutputTypeRecordIDs = require('./live-resolvers/getOutputTypeRecordIDs');\nvar _require = require('./RelayConcreteVariables'),\n getLocalVariables = _require.getLocalVariables;\nvar RelayModernRecord = require('./RelayModernRecord');\nvar RelayStoreUtils = require('./RelayStoreUtils');\nvar _require2 = require('./TypeID'),\n generateTypeID = _require2.generateTypeID;\nvar invariant = require('invariant');\nvar getStorageKey = RelayStoreUtils.getStorageKey,\n getModuleOperationKey = RelayStoreUtils.getModuleOperationKey;\nfunction mark(recordSource, selector, references, operationLoader, shouldProcessClientComponents) {\n var dataID = selector.dataID,\n node = selector.node,\n variables = selector.variables;\n var marker = new RelayReferenceMarker(recordSource, variables, references, operationLoader, shouldProcessClientComponents);\n marker.mark(node, dataID);\n}\nvar RelayReferenceMarker = /*#__PURE__*/function () {\n function RelayReferenceMarker(recordSource, variables, references, operationLoader, shouldProcessClientComponents) {\n this._operationLoader = operationLoader !== null && operationLoader !== void 0 ? operationLoader : null;\n this._operationName = null;\n this._recordSource = recordSource;\n this._references = references;\n this._variables = variables;\n this._shouldProcessClientComponents = shouldProcessClientComponents;\n }\n var _proto = RelayReferenceMarker.prototype;\n _proto.mark = function mark(node, dataID) {\n if (node.kind === 'Operation' || node.kind === 'SplitOperation') {\n this._operationName = node.name;\n }\n this._traverse(node, dataID);\n };\n _proto._traverse = function _traverse(node, dataID) {\n this._references.add(dataID);\n var record = this._recordSource.get(dataID);\n if (record == null) {\n return;\n }\n this._traverseSelections(node.selections, record);\n };\n _proto._getVariableValue = function _getVariableValue(name) {\n !this._variables.hasOwnProperty(name) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReferenceMarker(): Undefined variable `%s`.', name) : invariant(false) : void 0;\n return this._variables[name];\n };\n _proto._traverseSelections = function _traverseSelections(selections, record) {\n var _this = this;\n selections.forEach(function (selection) {\n switch (selection.kind) {\n case 'ActorChange':\n _this._traverseLink(selection.linkedField, record);\n break;\n case 'LinkedField':\n if (selection.plural) {\n _this._traversePluralLink(selection, record);\n } else {\n _this._traverseLink(selection, record);\n }\n break;\n case 'Condition':\n var conditionValue = Boolean(_this._getVariableValue(selection.condition));\n if (conditionValue === selection.passingValue) {\n _this._traverseSelections(selection.selections, record);\n }\n break;\n case 'InlineFragment':\n if (selection.abstractKey == null) {\n var typeName = RelayModernRecord.getType(record);\n if (typeName != null && typeName === selection.type || typeName === RelayStoreUtils.ROOT_TYPE) {\n _this._traverseSelections(selection.selections, record);\n }\n } else {\n var _typeName = RelayModernRecord.getType(record);\n var typeID = generateTypeID(_typeName);\n _this._references.add(typeID);\n _this._traverseSelections(selection.selections, record);\n }\n break;\n case 'FragmentSpread':\n var prevVariables = _this._variables;\n _this._variables = getLocalVariables(_this._variables, selection.fragment.argumentDefinitions, selection.args);\n _this._traverseSelections(selection.fragment.selections, record);\n _this._variables = prevVariables;\n break;\n case 'LinkedHandle':\n var handleField = cloneRelayHandleSourceField(selection, selections, _this._variables);\n if (handleField.plural) {\n _this._traversePluralLink(handleField, record);\n } else {\n _this._traverseLink(handleField, record);\n }\n break;\n case 'Defer':\n case 'Stream':\n _this._traverseSelections(selection.selections, record);\n break;\n case 'ScalarField':\n case 'ScalarHandle':\n break;\n case 'TypeDiscriminator':\n {\n var _typeName2 = RelayModernRecord.getType(record);\n var _typeID = generateTypeID(_typeName2);\n _this._references.add(_typeID);\n break;\n }\n case 'ModuleImport':\n _this._traverseModuleImport(selection, record);\n break;\n case 'ClientExtension':\n _this._traverseSelections(selection.selections, record);\n break;\n case 'ClientComponent':\n if (_this._shouldProcessClientComponents === false) {\n break;\n }\n _this._traverseSelections(selection.fragment.selections, record);\n break;\n case 'RelayResolver':\n _this._traverseResolverField(selection, record);\n break;\n case 'RelayLiveResolver':\n _this._traverseResolverField(selection, record);\n break;\n case 'ClientEdgeToClientObject':\n _this._traverseClientEdgeToClientObject(selection, record);\n break;\n default:\n selection;\n !false ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReferenceMarker: Unknown AST node `%s`.', selection) : invariant(false) : void 0;\n }\n });\n };\n _proto._traverseClientEdgeToClientObject = function _traverseClientEdgeToClientObject(field, record) {\n var dataID = this._traverseResolverField(field.backingField, record);\n if (dataID == null) {\n return;\n }\n var resolverRecord = this._recordSource.get(dataID);\n if (resolverRecord == null) {\n return;\n }\n if (field.backingField.isOutputType) {\n var outputTypeRecordIDs = getOutputTypeRecordIDs(resolverRecord);\n if (outputTypeRecordIDs != null) {\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(outputTypeRecordIDs),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _dataID = _step.value;\n this._references.add(_dataID);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n } else {\n var linkedField = field.linkedField;\n var concreteType = linkedField.concreteType;\n if (concreteType == null) {\n return;\n }\n if (linkedField.plural) {\n var dataIDs = RelayModernRecord.getResolverLinkedRecordIDs(resolverRecord, concreteType);\n if (dataIDs != null) {\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(dataIDs),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _dataID2 = _step2.value;\n if (_dataID2 != null) {\n this._traverse(linkedField, _dataID2);\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n } else {\n var _dataID3 = RelayModernRecord.getResolverLinkedRecordID(resolverRecord, concreteType);\n if (_dataID3 != null) {\n this._traverse(linkedField, _dataID3);\n }\n }\n }\n };\n _proto._traverseResolverField = function _traverseResolverField(field, record) {\n var storageKey = getStorageKey(field, this._variables);\n var dataID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n if (dataID != null) {\n this._references.add(dataID);\n }\n var fragment = field.fragment;\n if (fragment != null) {\n this._traverseSelections([fragment], record);\n }\n return dataID;\n };\n _proto._traverseModuleImport = function _traverseModuleImport(moduleImport, record) {\n var _this$_operationName;\n var operationLoader = this._operationLoader;\n !(operationLoader !== null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`. ' + 'Could not load fragment `%s` in operation `%s`.', moduleImport.fragmentName, (_this$_operationName = this._operationName) !== null && _this$_operationName !== void 0 ? _this$_operationName : '(unknown)') : invariant(false) : void 0;\n var operationKey = getModuleOperationKey(moduleImport.documentName);\n var operationReference = RelayModernRecord.getValue(record, operationKey);\n if (operationReference == null) {\n return;\n }\n var normalizationRootNode = operationLoader.get(operationReference);\n if (normalizationRootNode != null) {\n var operation = getOperation(normalizationRootNode);\n var prevVariables = this._variables;\n this._variables = getLocalVariables(this._variables, operation.argumentDefinitions, moduleImport.args);\n this._traverseSelections(operation.selections, record);\n this._variables = prevVariables;\n }\n };\n _proto._traverseLink = function _traverseLink(field, record) {\n var storageKey = getStorageKey(field, this._variables);\n var linkedID = RelayModernRecord.getLinkedRecordID(record, storageKey);\n if (linkedID == null) {\n return;\n }\n this._traverse(field, linkedID);\n };\n _proto._traversePluralLink = function _traversePluralLink(field, record) {\n var _this2 = this;\n var storageKey = getStorageKey(field, this._variables);\n var linkedIDs = RelayModernRecord.getLinkedRecordIDs(record, storageKey);\n if (linkedIDs == null) {\n return;\n }\n linkedIDs.forEach(function (linkedID) {\n if (linkedID != null) {\n _this2._traverse(field, linkedID);\n }\n });\n };\n return RelayReferenceMarker;\n}();\nmodule.exports = {\n mark: mark\n};","'use strict';\n\nvar ITERATOR_KEY = Symbol.iterator;\nfunction hasOverlappingIDs(seenRecords, updatedRecordIDs) {\n var iterator = seenRecords[ITERATOR_KEY]();\n var next = iterator.next();\n while (!next.done) {\n var key = next.value;\n if (updatedRecordIDs.has(key)) {\n return true;\n }\n next = iterator.next();\n }\n return false;\n}\nmodule.exports = hasOverlappingIDs;","'use strict';\n\nvar _require = require('./RelayStoreUtils'),\n ROOT_ID = _require.ROOT_ID;\nvar _require2 = require('./ViewerPattern'),\n VIEWER_ID = _require2.VIEWER_ID;\nvar ITERATOR_KEY = Symbol.iterator;\nfunction hasSignificantOverlappingIDs(seenRecords, updatedRecordIDs) {\n var iterator = seenRecords[ITERATOR_KEY]();\n var next = iterator.next();\n while (!next.done) {\n var key = next.value;\n if (updatedRecordIDs.has(key) && key !== ROOT_ID && key !== VIEWER_ID) {\n return true;\n }\n next = iterator.next();\n }\n return false;\n}\nmodule.exports = hasSignificantOverlappingIDs;","'use strict';\n\nvar deepFreeze = require('../util/deepFreeze');\nvar recycleNodesInto = require('../util/recycleNodesInto');\nvar RelayFeatureFlags = require('../util/RelayFeatureFlags');\nvar hasOverlappingIDs = require('./hasOverlappingIDs');\nvar hasSignificantOverlappingIDs = require('./hasSignificantOverlappingIDs');\nvar RelayReader = require('./RelayReader');\nvar RelayStoreSubscriptions = /*#__PURE__*/function () {\n function RelayStoreSubscriptions(log, resolverCache, resolverContext) {\n this._subscriptions = new Set();\n this.__log = log;\n this._resolverCache = resolverCache;\n this._resolverContext = resolverContext;\n }\n var _proto = RelayStoreSubscriptions.prototype;\n _proto.subscribe = function subscribe(snapshot, callback) {\n var _this = this;\n var subscription = {\n backup: null,\n callback: callback,\n snapshot: snapshot,\n stale: false\n };\n var dispose = function dispose() {\n _this._subscriptions[\"delete\"](subscription);\n };\n this._subscriptions.add(subscription);\n return {\n dispose: dispose\n };\n };\n _proto.snapshotSubscriptions = function snapshotSubscriptions(source) {\n var _this2 = this;\n this._subscriptions.forEach(function (subscription) {\n if (!subscription.stale) {\n subscription.backup = subscription.snapshot;\n return;\n }\n var snapshot = subscription.snapshot;\n var backup = RelayReader.read(source, snapshot.selector, _this2._resolverCache, _this2._resolverContext);\n var nextData = recycleNodesInto(snapshot.data, backup.data);\n backup.data = nextData;\n subscription.backup = backup;\n });\n };\n _proto.restoreSubscriptions = function restoreSubscriptions() {\n this._subscriptions.forEach(function (subscription) {\n var backup = subscription.backup;\n subscription.backup = null;\n if (backup) {\n if (backup.data !== subscription.snapshot.data) {\n subscription.stale = true;\n }\n subscription.snapshot = {\n data: subscription.snapshot.data,\n isMissingData: backup.isMissingData,\n missingClientEdges: backup.missingClientEdges,\n missingLiveResolverFields: backup.missingLiveResolverFields,\n seenRecords: backup.seenRecords,\n selector: backup.selector,\n errorResponseFields: backup.errorResponseFields\n };\n } else {\n subscription.stale = true;\n }\n });\n };\n _proto.updateSubscriptions = function updateSubscriptions(source, updatedRecordIDs, updatedOwners, sourceOperation) {\n var _this3 = this;\n var hasUpdatedRecords = updatedRecordIDs.size !== 0;\n this._subscriptions.forEach(function (subscription) {\n var owner = _this3._updateSubscription(source, subscription, updatedRecordIDs, hasUpdatedRecords, sourceOperation);\n if (owner != null) {\n updatedOwners.push(owner);\n }\n });\n };\n _proto._updateSubscription = function _updateSubscription(source, subscription, updatedRecordIDs, hasUpdatedRecords, sourceOperation) {\n var backup = subscription.backup,\n callback = subscription.callback,\n snapshot = subscription.snapshot,\n stale = subscription.stale;\n var hasOverlappingUpdates = hasUpdatedRecords && hasOverlappingIDs(snapshot.seenRecords, updatedRecordIDs);\n if (!stale && !hasOverlappingUpdates) {\n return;\n }\n var nextSnapshot = hasOverlappingUpdates || !backup ? RelayReader.read(source, snapshot.selector, this._resolverCache, this._resolverContext) : backup;\n var nextData = recycleNodesInto(snapshot.data, nextSnapshot.data);\n nextSnapshot = {\n data: nextData,\n isMissingData: nextSnapshot.isMissingData,\n missingClientEdges: nextSnapshot.missingClientEdges,\n missingLiveResolverFields: nextSnapshot.missingLiveResolverFields,\n seenRecords: nextSnapshot.seenRecords,\n selector: nextSnapshot.selector,\n errorResponseFields: nextSnapshot.errorResponseFields\n };\n if (process.env.NODE_ENV !== \"production\") {\n deepFreeze(nextSnapshot);\n }\n subscription.snapshot = nextSnapshot;\n subscription.stale = false;\n if (nextSnapshot.data !== snapshot.data) {\n if (this.__log && RelayFeatureFlags.ENABLE_NOTIFY_SUBSCRIPTION) {\n this.__log({\n name: 'store.notify.subscription',\n sourceOperation: sourceOperation,\n snapshot: snapshot,\n nextSnapshot: nextSnapshot\n });\n }\n callback(nextSnapshot);\n return snapshot.selector.owner;\n }\n if (RelayFeatureFlags.ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION && (stale || hasSignificantOverlappingIDs(snapshot.seenRecords, updatedRecordIDs))) {\n return snapshot.selector.owner;\n }\n };\n _proto.size = function size() {\n return this._subscriptions.size;\n };\n return RelayStoreSubscriptions;\n}();\nmodule.exports = RelayStoreSubscriptions;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _require = require('../multi-actor-environment/ActorIdentifier'),\n INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE = _require.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,\n assertInternalActorIdentifier = _require.assertInternalActorIdentifier;\nvar deepFreeze = require('../util/deepFreeze');\nvar resolveImmediate = require('../util/resolveImmediate');\nvar DataChecker = require('./DataChecker');\nvar defaultGetDataID = require('./defaultGetDataID');\nvar _require2 = require('./live-resolvers/LiveResolverCache'),\n LiveResolverCache = _require2.LiveResolverCache,\n RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY = _require2.RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY,\n getUpdatedDataIDs = _require2.getUpdatedDataIDs;\nvar RelayModernRecord = require('./RelayModernRecord');\nvar RelayOptimisticRecordSource = require('./RelayOptimisticRecordSource');\nvar RelayReader = require('./RelayReader');\nvar RelayReferenceMarker = require('./RelayReferenceMarker');\nvar RelayStoreSubscriptions = require('./RelayStoreSubscriptions');\nvar RelayStoreUtils = require('./RelayStoreUtils');\nvar _require3 = require('./RelayStoreUtils'),\n ROOT_ID = _require3.ROOT_ID,\n ROOT_TYPE = _require3.ROOT_TYPE;\nvar invariant = require('invariant');\nvar DEFAULT_RELEASE_BUFFER_SIZE = 10;\nvar RelayModernStore = /*#__PURE__*/function () {\n function RelayModernStore(source, options) {\n var _this = this;\n var _options$gcReleaseBuf, _options$gcScheduler, _options$getDataID, _options$log, _options$operationLoa, _options$shouldProces, _options$treatMissing;\n (0, _defineProperty2[\"default\"])(this, \"_gcStep\", function () {\n if (_this._gcRun) {\n if (_this._gcRun.next().done) {\n _this._gcRun = null;\n } else {\n _this._gcScheduler(_this._gcStep);\n }\n }\n });\n if (process.env.NODE_ENV !== \"production\") {\n var storeIDs = source.getRecordIDs();\n for (var ii = 0; ii < storeIDs.length; ii++) {\n var record = source.get(storeIDs[ii]);\n if (record) {\n RelayModernRecord.freeze(record);\n }\n }\n }\n this._currentWriteEpoch = 0;\n this._gcHoldCounter = 0;\n this._gcReleaseBufferSize = (_options$gcReleaseBuf = options === null || options === void 0 ? void 0 : options.gcReleaseBufferSize) !== null && _options$gcReleaseBuf !== void 0 ? _options$gcReleaseBuf : DEFAULT_RELEASE_BUFFER_SIZE;\n this._gcRun = null;\n this._gcScheduler = (_options$gcScheduler = options === null || options === void 0 ? void 0 : options.gcScheduler) !== null && _options$gcScheduler !== void 0 ? _options$gcScheduler : resolveImmediate;\n this._getDataID = (_options$getDataID = options === null || options === void 0 ? void 0 : options.getDataID) !== null && _options$getDataID !== void 0 ? _options$getDataID : defaultGetDataID;\n this._globalInvalidationEpoch = null;\n this._invalidationSubscriptions = new Set();\n this._invalidatedRecordIDs = new Set();\n this.__log = (_options$log = options === null || options === void 0 ? void 0 : options.log) !== null && _options$log !== void 0 ? _options$log : null;\n this._queryCacheExpirationTime = options === null || options === void 0 ? void 0 : options.queryCacheExpirationTime;\n this._operationLoader = (_options$operationLoa = options === null || options === void 0 ? void 0 : options.operationLoader) !== null && _options$operationLoa !== void 0 ? _options$operationLoa : null;\n this._optimisticSource = null;\n this._recordSource = source;\n this._releaseBuffer = [];\n this._roots = new Map();\n this._shouldScheduleGC = false;\n this._resolverCache = new LiveResolverCache(function () {\n return _this._getMutableRecordSource();\n }, this);\n this._storeSubscriptions = new RelayStoreSubscriptions(options === null || options === void 0 ? void 0 : options.log, this._resolverCache);\n this._updatedRecordIDs = new Set();\n this._shouldProcessClientComponents = (_options$shouldProces = options === null || options === void 0 ? void 0 : options.shouldProcessClientComponents) !== null && _options$shouldProces !== void 0 ? _options$shouldProces : false;\n this._resolverContext = options === null || options === void 0 ? void 0 : options.resolverContext;\n this._treatMissingFieldsAsNull = (_options$treatMissing = options === null || options === void 0 ? void 0 : options.treatMissingFieldsAsNull) !== null && _options$treatMissing !== void 0 ? _options$treatMissing : false;\n this._actorIdentifier = options === null || options === void 0 ? void 0 : options.actorIdentifier;\n initializeRecordSource(this._recordSource);\n }\n var _proto = RelayModernStore.prototype;\n _proto.getSource = function getSource() {\n var _this$_optimisticSour;\n return (_this$_optimisticSour = this._optimisticSource) !== null && _this$_optimisticSour !== void 0 ? _this$_optimisticSour : this._recordSource;\n };\n _proto.getOperationLoader = function getOperationLoader() {\n return this._operationLoader;\n };\n _proto._getMutableRecordSource = function _getMutableRecordSource() {\n var _this$_optimisticSour2;\n return (_this$_optimisticSour2 = this._optimisticSource) !== null && _this$_optimisticSour2 !== void 0 ? _this$_optimisticSour2 : this._recordSource;\n };\n _proto.getLiveResolverPromise = function getLiveResolverPromise(recordID) {\n return this._resolverCache.getLiveResolverPromise(recordID);\n };\n _proto.batchLiveStateUpdates = function batchLiveStateUpdates(callback) {\n if (this.__log != null) {\n this.__log({\n name: 'liveresolver.batch.start'\n });\n }\n try {\n this._resolverCache.batchLiveStateUpdates(callback);\n } finally {\n if (this.__log != null) {\n this.__log({\n name: 'liveresolver.batch.end'\n });\n }\n }\n };\n _proto.check = function check(operation, options) {\n var _options$handlers, _options$getSourceFor, _options$getTargetFor, _options$defaultActor;\n var selector = operation.root;\n var source = this._getMutableRecordSource();\n var globalInvalidationEpoch = this._globalInvalidationEpoch;\n var rootEntry = this._roots.get(operation.request.identifier);\n var operationLastWrittenAt = rootEntry != null ? rootEntry.epoch : null;\n if (globalInvalidationEpoch != null) {\n if (operationLastWrittenAt == null || operationLastWrittenAt <= globalInvalidationEpoch) {\n return {\n status: 'stale'\n };\n }\n }\n var handlers = (_options$handlers = options === null || options === void 0 ? void 0 : options.handlers) !== null && _options$handlers !== void 0 ? _options$handlers : [];\n var getSourceForActor = (_options$getSourceFor = options === null || options === void 0 ? void 0 : options.getSourceForActor) !== null && _options$getSourceFor !== void 0 ? _options$getSourceFor : function (actorIdentifier) {\n assertInternalActorIdentifier(actorIdentifier);\n return source;\n };\n var getTargetForActor = (_options$getTargetFor = options === null || options === void 0 ? void 0 : options.getTargetForActor) !== null && _options$getTargetFor !== void 0 ? _options$getTargetFor : function (actorIdentifier) {\n assertInternalActorIdentifier(actorIdentifier);\n return source;\n };\n var operationAvailability = DataChecker.check(getSourceForActor, getTargetForActor, (_options$defaultActor = options === null || options === void 0 ? void 0 : options.defaultActorIdentifier) !== null && _options$defaultActor !== void 0 ? _options$defaultActor : INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE, selector, handlers, this._operationLoader, this._getDataID, this._shouldProcessClientComponents, this.__log);\n return getAvailabilityStatus(operationAvailability, operationLastWrittenAt, rootEntry === null || rootEntry === void 0 ? void 0 : rootEntry.fetchTime, this._queryCacheExpirationTime);\n };\n _proto.retain = function retain(operation) {\n var _this2 = this;\n var id = operation.request.identifier;\n var disposed = false;\n var dispose = function dispose() {\n if (disposed) {\n return;\n }\n disposed = true;\n var rootEntry = _this2._roots.get(id);\n if (rootEntry == null) {\n return;\n }\n rootEntry.refCount--;\n if (rootEntry.refCount === 0) {\n var _queryCacheExpirationTime = _this2._queryCacheExpirationTime;\n var rootEntryIsStale = rootEntry.fetchTime != null && _queryCacheExpirationTime != null && rootEntry.fetchTime <= Date.now() - _queryCacheExpirationTime;\n if (rootEntryIsStale) {\n _this2._roots[\"delete\"](id);\n _this2.scheduleGC();\n } else {\n _this2._releaseBuffer.push(id);\n if (_this2._releaseBuffer.length > _this2._gcReleaseBufferSize) {\n var _id = _this2._releaseBuffer.shift();\n _this2._roots[\"delete\"](_id);\n _this2.scheduleGC();\n }\n }\n }\n };\n var rootEntry = this._roots.get(id);\n if (rootEntry != null) {\n if (rootEntry.refCount === 0) {\n this._releaseBuffer = this._releaseBuffer.filter(function (_id) {\n return _id !== id;\n });\n }\n rootEntry.refCount += 1;\n } else {\n this._roots.set(id, {\n operation: operation,\n refCount: 1,\n epoch: null,\n fetchTime: null\n });\n }\n return {\n dispose: dispose\n };\n };\n _proto.lookup = function lookup(selector) {\n var log = this.__log;\n if (log != null) {\n log({\n name: 'store.lookup.start',\n selector: selector\n });\n }\n var source = this.getSource();\n var snapshot = RelayReader.read(source, selector, this._resolverCache, this._resolverContext);\n if (process.env.NODE_ENV !== \"production\") {\n deepFreeze(snapshot);\n }\n if (log != null) {\n log({\n name: 'store.lookup.end',\n selector: selector\n });\n }\n return snapshot;\n };\n _proto.notify = function notify(sourceOperation, invalidateStore) {\n var _this3 = this;\n var log = this.__log;\n if (log != null) {\n log({\n name: 'store.notify.start',\n sourceOperation: sourceOperation\n });\n }\n this._currentWriteEpoch++;\n if (invalidateStore === true) {\n this._globalInvalidationEpoch = this._currentWriteEpoch;\n }\n this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);\n var source = this.getSource();\n var updatedOwners = [];\n this._storeSubscriptions.updateSubscriptions(source, this._updatedRecordIDs, updatedOwners, sourceOperation);\n this._invalidationSubscriptions.forEach(function (subscription) {\n _this3._updateInvalidationSubscription(subscription, invalidateStore === true);\n });\n if (sourceOperation != null) {\n var id = sourceOperation.request.identifier;\n var rootEntry = this._roots.get(id);\n if (rootEntry != null) {\n rootEntry.epoch = this._currentWriteEpoch;\n rootEntry.fetchTime = Date.now();\n } else if (sourceOperation.request.node.params.operationKind === 'query' && this._gcReleaseBufferSize > 0 && this._releaseBuffer.length < this._gcReleaseBufferSize) {\n var temporaryRootEntry = {\n operation: sourceOperation,\n refCount: 0,\n epoch: this._currentWriteEpoch,\n fetchTime: Date.now()\n };\n this._releaseBuffer.push(id);\n this._roots.set(id, temporaryRootEntry);\n }\n }\n if (log != null) {\n log({\n name: 'store.notify.complete',\n sourceOperation: sourceOperation,\n updatedRecordIDs: this._updatedRecordIDs,\n invalidatedRecordIDs: this._invalidatedRecordIDs,\n subscriptionsSize: this._storeSubscriptions.size(),\n updatedOwners: updatedOwners\n });\n }\n this._updatedRecordIDs.clear();\n this._invalidatedRecordIDs.clear();\n return updatedOwners;\n };\n _proto.publish = function publish(source, idsMarkedForInvalidation) {\n var target = this._getMutableRecordSource();\n updateTargetFromSource(target, source, this._currentWriteEpoch + 1, idsMarkedForInvalidation, this._updatedRecordIDs, this._invalidatedRecordIDs);\n var log = this.__log;\n if (log != null) {\n log({\n name: 'store.publish',\n source: source,\n optimistic: target === this._optimisticSource\n });\n }\n };\n _proto.subscribe = function subscribe(snapshot, callback) {\n return this._storeSubscriptions.subscribe(snapshot, callback);\n };\n _proto.holdGC = function holdGC() {\n var _this4 = this;\n if (this._gcRun) {\n this._gcRun = null;\n this._shouldScheduleGC = true;\n }\n this._gcHoldCounter++;\n var dispose = function dispose() {\n if (_this4._gcHoldCounter > 0) {\n _this4._gcHoldCounter--;\n if (_this4._gcHoldCounter === 0 && _this4._shouldScheduleGC) {\n _this4.scheduleGC();\n _this4._shouldScheduleGC = false;\n }\n }\n };\n return {\n dispose: dispose\n };\n };\n _proto.toJSON = function toJSON() {\n return 'RelayModernStore()';\n };\n _proto.getEpoch = function getEpoch() {\n return this._currentWriteEpoch;\n };\n _proto.__getUpdatedRecordIDs = function __getUpdatedRecordIDs() {\n return this._updatedRecordIDs;\n };\n _proto.lookupInvalidationState = function lookupInvalidationState(dataIDs) {\n var _this5 = this;\n var invalidations = new Map();\n dataIDs.forEach(function (dataID) {\n var _RelayModernRecord$ge;\n var record = _this5.getSource().get(dataID);\n invalidations.set(dataID, (_RelayModernRecord$ge = RelayModernRecord.getInvalidationEpoch(record)) !== null && _RelayModernRecord$ge !== void 0 ? _RelayModernRecord$ge : null);\n });\n invalidations.set('global', this._globalInvalidationEpoch);\n return {\n dataIDs: dataIDs,\n invalidations: invalidations\n };\n };\n _proto.checkInvalidationState = function checkInvalidationState(prevInvalidationState) {\n var latestInvalidationState = this.lookupInvalidationState(prevInvalidationState.dataIDs);\n var currentInvalidations = latestInvalidationState.invalidations;\n var prevInvalidations = prevInvalidationState.invalidations;\n if (currentInvalidations.get('global') !== prevInvalidations.get('global')) {\n return true;\n }\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(prevInvalidationState.dataIDs),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var dataID = _step.value;\n if (currentInvalidations.get(dataID) !== prevInvalidations.get(dataID)) {\n return true;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return false;\n };\n _proto.subscribeToInvalidationState = function subscribeToInvalidationState(invalidationState, callback) {\n var _this6 = this;\n var subscription = {\n callback: callback,\n invalidationState: invalidationState\n };\n var dispose = function dispose() {\n _this6._invalidationSubscriptions[\"delete\"](subscription);\n };\n this._invalidationSubscriptions.add(subscription);\n return {\n dispose: dispose\n };\n };\n _proto._updateInvalidationSubscription = function _updateInvalidationSubscription(subscription, invalidatedStore) {\n var _this7 = this;\n var callback = subscription.callback,\n invalidationState = subscription.invalidationState;\n var dataIDs = invalidationState.dataIDs;\n var isSubscribedToInvalidatedIDs = invalidatedStore || dataIDs.some(function (dataID) {\n return _this7._invalidatedRecordIDs.has(dataID);\n });\n if (!isSubscribedToInvalidatedIDs) {\n return;\n }\n callback();\n };\n _proto.snapshot = function snapshot() {\n !(this._optimisticSource == null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernStore: Unexpected call to snapshot() while a previous ' + 'snapshot exists.') : invariant(false) : void 0;\n var log = this.__log;\n if (log != null) {\n log({\n name: 'store.snapshot'\n });\n }\n this._storeSubscriptions.snapshotSubscriptions(this.getSource());\n if (this._gcRun) {\n this._gcRun = null;\n this._shouldScheduleGC = true;\n }\n this._optimisticSource = RelayOptimisticRecordSource.create(this.getSource());\n };\n _proto.restore = function restore() {\n var optimisticSource = this._optimisticSource;\n !optimisticSource ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayModernStore: Unexpected call to restore(), expected a snapshot ' + 'to exist (make sure to call snapshot()).') : invariant(false) : void 0;\n var log = this.__log;\n if (log != null) {\n log({\n name: 'store.restore'\n });\n }\n var optimisticIDs = RelayOptimisticRecordSource.getOptimisticRecordIDs(optimisticSource);\n this._resolverCache.unsubscribeFromLiveResolverRecords(optimisticIDs);\n this._optimisticSource = null;\n if (this._shouldScheduleGC) {\n this.scheduleGC();\n }\n this._storeSubscriptions.restoreSubscriptions();\n this._resolverCache.invalidateResolverRecords(optimisticIDs);\n };\n _proto.scheduleGC = function scheduleGC() {\n if (this._gcHoldCounter > 0) {\n this._shouldScheduleGC = true;\n return;\n }\n if (this._gcRun) {\n return;\n }\n this._gcRun = this._collect();\n this._gcScheduler(this._gcStep);\n };\n _proto.__gc = function __gc() {\n if (this._optimisticSource != null) {\n return;\n }\n var gcRun = this._collect();\n while (!gcRun.next().done) {}\n };\n _proto._collect = function* _collect() {\n var log = this.__log;\n top: while (true) {\n if (log != null) {\n log({\n name: 'store.gc.start'\n });\n }\n var startEpoch = this._currentWriteEpoch;\n var references = new Set();\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(this._roots.values()),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var operation = _step2.value.operation;\n var selector = operation.root;\n RelayReferenceMarker.mark(this._recordSource, selector, references, this._operationLoader, this._shouldProcessClientComponents);\n yield;\n if (startEpoch !== this._currentWriteEpoch) {\n if (log != null) {\n log({\n name: 'store.gc.interrupted'\n });\n }\n continue top;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (references.size === 0) {\n this._recordSource.clear();\n } else {\n var storeIDs = this._recordSource.getRecordIDs();\n for (var ii = 0; ii < storeIDs.length; ii++) {\n var dataID = storeIDs[ii];\n if (!references.has(dataID)) {\n var record = this._recordSource.get(dataID);\n if (record != null) {\n var maybeResolverSubscription = RelayModernRecord.getValue(record, RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY);\n if (maybeResolverSubscription != null) {\n maybeResolverSubscription();\n }\n }\n this._recordSource.remove(dataID);\n }\n }\n }\n if (log != null) {\n log({\n name: 'store.gc.end',\n references: references\n });\n }\n return;\n }\n };\n _proto.__getNormalizationOptions = function __getNormalizationOptions(path) {\n return {\n path: path,\n getDataID: this._getDataID,\n treatMissingFieldsAsNull: this._treatMissingFieldsAsNull,\n shouldProcessClientComponents: this._shouldProcessClientComponents,\n actorIdentifier: this._actorIdentifier\n };\n };\n _proto.__notifyUpdatedSubscribers = function __notifyUpdatedSubscribers(updatedRecords) {\n var nextUpdatedRecordIDs = getUpdatedDataIDs(updatedRecords);\n var prevUpdatedRecordIDs = this._updatedRecordIDs;\n this._updatedRecordIDs = nextUpdatedRecordIDs;\n this.notify();\n this._updatedRecordIDs = prevUpdatedRecordIDs;\n };\n return RelayModernStore;\n}();\nfunction initializeRecordSource(target) {\n if (!target.has(ROOT_ID)) {\n var rootRecord = RelayModernRecord.create(ROOT_ID, ROOT_TYPE);\n target.set(ROOT_ID, rootRecord);\n }\n}\nfunction updateTargetFromSource(target, source, currentWriteEpoch, idsMarkedForInvalidation, updatedRecordIDs, invalidatedRecordIDs) {\n if (idsMarkedForInvalidation) {\n idsMarkedForInvalidation.forEach(function (dataID) {\n var targetRecord = target.get(dataID);\n var sourceRecord = source.get(dataID);\n if (sourceRecord === null) {\n return;\n }\n var nextRecord;\n if (targetRecord != null) {\n nextRecord = RelayModernRecord.clone(targetRecord);\n } else {\n nextRecord = sourceRecord != null ? RelayModernRecord.clone(sourceRecord) : null;\n }\n if (!nextRecord) {\n return;\n }\n RelayModernRecord.setValue(nextRecord, RelayStoreUtils.INVALIDATED_AT_KEY, currentWriteEpoch);\n invalidatedRecordIDs.add(dataID);\n target.set(dataID, nextRecord);\n });\n }\n var dataIDs = source.getRecordIDs();\n for (var ii = 0; ii < dataIDs.length; ii++) {\n var dataID = dataIDs[ii];\n var sourceRecord = source.get(dataID);\n var targetRecord = target.get(dataID);\n if (process.env.NODE_ENV !== \"production\") {\n if (sourceRecord) {\n RelayModernRecord.freeze(sourceRecord);\n }\n }\n if (sourceRecord && targetRecord) {\n var nextRecord = RelayModernRecord.update(targetRecord, sourceRecord);\n if (nextRecord !== targetRecord) {\n if (process.env.NODE_ENV !== \"production\") {\n RelayModernRecord.freeze(nextRecord);\n }\n updatedRecordIDs.add(dataID);\n target.set(dataID, nextRecord);\n }\n } else if (sourceRecord === null) {\n target[\"delete\"](dataID);\n if (targetRecord !== null) {\n updatedRecordIDs.add(dataID);\n }\n } else if (sourceRecord) {\n target.set(dataID, sourceRecord);\n updatedRecordIDs.add(dataID);\n }\n }\n}\nfunction getAvailabilityStatus(operationAvailability, operationLastWrittenAt, operationFetchTime, queryCacheExpirationTime) {\n var mostRecentlyInvalidatedAt = operationAvailability.mostRecentlyInvalidatedAt,\n status = operationAvailability.status;\n if (typeof mostRecentlyInvalidatedAt === 'number') {\n if (operationLastWrittenAt == null || mostRecentlyInvalidatedAt > operationLastWrittenAt) {\n return {\n status: 'stale'\n };\n }\n }\n if (status === 'missing') {\n return {\n status: 'missing'\n };\n }\n if (operationFetchTime != null && queryCacheExpirationTime != null) {\n var isStale = operationFetchTime <= Date.now() - queryCacheExpirationTime;\n if (isStale) {\n return {\n status: 'stale'\n };\n }\n }\n return {\n status: 'available',\n fetchTime: operationFetchTime !== null && operationFetchTime !== void 0 ? operationFetchTime : null\n };\n}\nmodule.exports = RelayModernStore;","'use strict';\n\nvar RelayDeclarativeMutationConfig = require('../mutations/RelayDeclarativeMutationConfig');\nvar _require = require('../query/GraphQLTag'),\n getRequest = _require.getRequest;\nvar _require2 = require('../store/RelayModernOperationDescriptor'),\n createOperationDescriptor = _require2.createOperationDescriptor;\nvar _require3 = require('../store/RelayModernSelector'),\n createReaderSelector = _require3.createReaderSelector;\nvar warning = require(\"fbjs/lib/warning\");\nfunction requestSubscription(environment, config) {\n var subscription = getRequest(config.subscription);\n if (subscription.params.operationKind !== 'subscription') {\n throw new Error('requestSubscription: Must use Subscription operation');\n }\n var configs = config.configs,\n onCompleted = config.onCompleted,\n onError = config.onError,\n onNext = config.onNext,\n variables = config.variables,\n cacheConfig = config.cacheConfig;\n var operation = createOperationDescriptor(subscription, variables, cacheConfig);\n process.env.NODE_ENV !== \"production\" ? warning(!(config.updater && configs), 'requestSubscription: Expected only one of `updater` and `configs` to be provided') : void 0;\n var _ref = configs ? RelayDeclarativeMutationConfig.convert(configs, subscription, null, config.updater) : config,\n updater = _ref.updater;\n var sub = environment.executeSubscription({\n operation: operation,\n updater: updater\n }).subscribe({\n next: function next(responses) {\n if (onNext != null) {\n var selector = operation.fragment;\n var nextID;\n if (Array.isArray(responses)) {\n var _responses$, _responses$$extension;\n nextID = (_responses$ = responses[0]) === null || _responses$ === void 0 ? void 0 : (_responses$$extension = _responses$.extensions) === null || _responses$$extension === void 0 ? void 0 : _responses$$extension.__relay_subscription_root_id;\n } else {\n var _responses$extensions;\n nextID = (_responses$extensions = responses.extensions) === null || _responses$extensions === void 0 ? void 0 : _responses$extensions.__relay_subscription_root_id;\n }\n if (typeof nextID === 'string') {\n selector = createReaderSelector(selector.node, nextID, selector.variables, selector.owner);\n }\n var data = environment.lookup(selector).data;\n onNext(data);\n }\n },\n error: onError,\n complete: onCompleted\n });\n return {\n dispose: sub.unsubscribe\n };\n}\nmodule.exports = requestSubscription;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _require = require('../store/RelayStoreUtils'),\n getModuleComponentKey = _require.getModuleComponentKey,\n getModuleOperationKey = _require.getModuleOperationKey;\nfunction createPayloadFor3DField(name, operation, component, response) {\n var data = (0, _objectSpread2[\"default\"])({}, response);\n data[getModuleComponentKey(name)] = component;\n data[getModuleOperationKey(name)] = operation;\n return data;\n}\nmodule.exports = createPayloadFor3DField;","'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction isEmptyObject(obj) {\n for (var _key in obj) {\n if (hasOwnProperty.call(obj, _key)) {\n return false;\n }\n }\n return true;\n}\nmodule.exports = isEmptyObject;","'use strict';\n\nvar _require = require('../store/RelayModernSelector'),\n getDataIDsFromFragment = _require.getDataIDsFromFragment,\n getSelector = _require.getSelector,\n getVariablesFromFragment = _require.getVariablesFromFragment;\nvar isEmptyObject = require('./isEmptyObject');\nvar RelayFeatureFlags = require('./RelayFeatureFlags');\nvar _require2 = require('./stableCopy'),\n stableCopy = _require2.stableCopy;\nvar _require3 = require('./StringInterner'),\n intern = _require3.intern;\nfunction getFragmentIdentifier(fragmentNode, fragmentRef) {\n var selector = getSelector(fragmentNode, fragmentRef);\n var fragmentOwnerIdentifier = selector == null ? 'null' : selector.kind === 'SingularReaderSelector' ? selector.owner.identifier : '[' + selector.selectors.map(function (sel) {\n return sel.owner.identifier;\n }).join(',') + ']';\n var fragmentVariables = getVariablesFromFragment(fragmentNode, fragmentRef);\n var dataIDs = getDataIDsFromFragment(fragmentNode, fragmentRef);\n if (RelayFeatureFlags.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION) {\n var ids = typeof dataIDs === 'undefined' ? 'missing' : dataIDs == null ? 'null' : Array.isArray(dataIDs) ? '[' + dataIDs.join(',') + ']' : dataIDs;\n ids = RelayFeatureFlags.STRING_INTERN_LEVEL <= 1 ? ids : intern(ids, RelayFeatureFlags.MAX_DATA_ID_LENGTH);\n return fragmentOwnerIdentifier + '/' + fragmentNode.name + '/' + (fragmentVariables == null || isEmptyObject(fragmentVariables) ? '{}' : JSON.stringify(stableCopy(fragmentVariables))) + '/' + ids;\n } else {\n var _JSON$stringify;\n var _ids = (_JSON$stringify = JSON.stringify(dataIDs)) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : 'missing';\n _ids = RelayFeatureFlags.STRING_INTERN_LEVEL <= 1 ? _ids : intern(_ids, RelayFeatureFlags.MAX_DATA_ID_LENGTH);\n return fragmentOwnerIdentifier + '/' + fragmentNode.name + '/' + JSON.stringify(stableCopy(fragmentVariables)) + '/' + _ids;\n }\n}\nmodule.exports = getFragmentIdentifier;","'use strict';\n\nvar invariant = require('invariant');\nfunction getRefetchMetadata(fragmentNode, componentDisplayName) {\n var _fragmentNode$metadat, _fragmentNode$metadat2;\n !(((_fragmentNode$metadat = fragmentNode.metadata) === null || _fragmentNode$metadat === void 0 ? void 0 : _fragmentNode$metadat.plural) !== true) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getRefetchMetadata(): Expected fragment `%s` not to be plural when using ' + '`%s`. Remove `@relay(plural: true)` from fragment `%s` ' + 'in order to use it with `%s`.', fragmentNode.name, componentDisplayName, fragmentNode.name, componentDisplayName) : invariant(false) : void 0;\n var refetchMetadata = (_fragmentNode$metadat2 = fragmentNode.metadata) === null || _fragmentNode$metadat2 === void 0 ? void 0 : _fragmentNode$metadat2.refetch;\n !(refetchMetadata != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getRefetchMetadata(): Expected fragment `%s` to be refetchable when using `%s`. ' + 'Did you forget to add a @refetchable directive to the fragment?', componentDisplayName, fragmentNode.name) : invariant(false) : void 0;\n var refetchableRequest = refetchMetadata.operation[\"default\"] ? refetchMetadata.operation[\"default\"] : refetchMetadata.operation;\n var fragmentRefPathInResponse = refetchMetadata.fragmentPathInResult;\n !(typeof refetchableRequest !== 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getRefetchMetadata(): Expected refetch query to be an ' + \"operation and not a string when using `%s`. If you're seeing this, \" + 'this is likely a bug in Relay.', componentDisplayName) : invariant(false) : void 0;\n var identifierInfo = refetchMetadata.identifierInfo;\n if (identifierInfo != null) {\n !(identifierInfo.identifierField == null || typeof identifierInfo.identifierField === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getRefetchMetadata(): Expected `identifierField` to be a string.') : invariant(false) : void 0;\n !(identifierInfo.identifierQueryVariableName == null || typeof identifierInfo.identifierQueryVariableName === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getRefetchMetadata(): Expected `identifierQueryVariableName` to be a string.') : invariant(false) : void 0;\n }\n return {\n fragmentRefPathInResponse: fragmentRefPathInResponse,\n identifierInfo: identifierInfo,\n refetchableRequest: refetchableRequest,\n refetchMetadata: refetchMetadata\n };\n}\nmodule.exports = getRefetchMetadata;","'use strict';\n\nvar getRefetchMetadata = require('./getRefetchMetadata');\nvar invariant = require('invariant');\nfunction getPaginationMetadata(fragmentNode, componentDisplayName) {\n var _fragmentNode$metadat, _fragmentNode$metadat2;\n var _getRefetchMetadata = getRefetchMetadata(fragmentNode, componentDisplayName),\n paginationRequest = _getRefetchMetadata.refetchableRequest,\n refetchMetadata = _getRefetchMetadata.refetchMetadata;\n var paginationMetadata = refetchMetadata.connection;\n !(paginationMetadata != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getPaginationMetadata(): Expected fragment `%s` to include a ' + 'connection when using `%s`. Did you forget to add a @connection ' + 'directive to the connection field in the fragment?', componentDisplayName, fragmentNode.name) : invariant(false) : void 0;\n var connectionPathInFragmentData = paginationMetadata.path;\n var connectionMetadata = ((_fragmentNode$metadat = (_fragmentNode$metadat2 = fragmentNode.metadata) === null || _fragmentNode$metadat2 === void 0 ? void 0 : _fragmentNode$metadat2.connection) !== null && _fragmentNode$metadat !== void 0 ? _fragmentNode$metadat : [])[0];\n !(connectionMetadata != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getPaginationMetadata(): Expected fragment `%s` to include a ' + 'connection when using `%s`. Did you forget to add a @connection ' + 'directive to the connection field in the fragment?', componentDisplayName, fragmentNode.name) : invariant(false) : void 0;\n var identifierInfo = refetchMetadata.identifierInfo;\n !((identifierInfo === null || identifierInfo === void 0 ? void 0 : identifierInfo.identifierField) == null || typeof identifierInfo.identifierField === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: getRefetchMetadata(): Expected `identifierField` to be a string.') : invariant(false) : void 0;\n return {\n connectionPathInFragmentData: connectionPathInFragmentData,\n identifierField: identifierInfo === null || identifierInfo === void 0 ? void 0 : identifierInfo.identifierField,\n paginationRequest: paginationRequest,\n paginationMetadata: paginationMetadata,\n stream: connectionMetadata.stream === true\n };\n}\nmodule.exports = getPaginationMetadata;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _objectSpread4 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar invariant = require('invariant');\nvar warning = require(\"fbjs/lib/warning\");\nfunction getPaginationVariables(direction, count, cursor, baseVariables, extraVariables, paginationMetadata) {\n var _objectSpread3;\n var backwardMetadata = paginationMetadata.backward,\n forwardMetadata = paginationMetadata.forward;\n if (direction === 'backward') {\n var _objectSpread2;\n !(backwardMetadata != null && backwardMetadata.count != null && backwardMetadata.cursor != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected backward pagination metadata to be available. ' + \"If you're seeing this, this is likely a bug in Relay.\") : invariant(false) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!extraVariables.hasOwnProperty(backwardMetadata.cursor), 'Relay: `UNSTABLE_extraVariables` provided by caller should not ' + 'contain cursor variable `%s`. This variable is automatically ' + 'determined by Relay.', backwardMetadata.cursor) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!extraVariables.hasOwnProperty(backwardMetadata.count), 'Relay: `UNSTABLE_extraVariables` provided by caller should not ' + 'contain count variable `%s`. This variable is automatically ' + 'determined by Relay.', backwardMetadata.count) : void 0;\n var _paginationVariables = (0, _objectSpread4[\"default\"])((0, _objectSpread4[\"default\"])((0, _objectSpread4[\"default\"])({}, baseVariables), extraVariables), {}, (_objectSpread2 = {}, (0, _defineProperty2[\"default\"])(_objectSpread2, backwardMetadata.cursor, cursor), (0, _defineProperty2[\"default\"])(_objectSpread2, backwardMetadata.count, count), _objectSpread2));\n if (forwardMetadata && forwardMetadata.cursor) {\n _paginationVariables[forwardMetadata.cursor] = null;\n }\n if (forwardMetadata && forwardMetadata.count) {\n _paginationVariables[forwardMetadata.count] = null;\n }\n return _paginationVariables;\n }\n !(forwardMetadata != null && forwardMetadata.count != null && forwardMetadata.cursor != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected forward pagination metadata to be available. ' + \"If you're seeing this, this is likely a bug in Relay.\") : invariant(false) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!extraVariables.hasOwnProperty(forwardMetadata.cursor), 'Relay: `UNSTABLE_extraVariables` provided by caller should not ' + 'contain cursor variable `%s`. This variable is automatically ' + 'determined by Relay.', forwardMetadata.cursor) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!extraVariables.hasOwnProperty(forwardMetadata.count), 'Relay: `UNSTABLE_extraVariables` provided by caller should not ' + 'contain count variable `%s`. This variable is automatically ' + 'determined by Relay.', forwardMetadata.count) : void 0;\n var paginationVariables = (0, _objectSpread4[\"default\"])((0, _objectSpread4[\"default\"])((0, _objectSpread4[\"default\"])({}, baseVariables), extraVariables), {}, (_objectSpread3 = {}, (0, _defineProperty2[\"default\"])(_objectSpread3, forwardMetadata.cursor, cursor), (0, _defineProperty2[\"default\"])(_objectSpread3, forwardMetadata.count, count), _objectSpread3));\n if (backwardMetadata && backwardMetadata.cursor) {\n paginationVariables[backwardMetadata.cursor] = null;\n }\n if (backwardMetadata && backwardMetadata.count) {\n paginationVariables[backwardMetadata.count] = null;\n }\n return paginationVariables;\n}\nmodule.exports = getPaginationVariables;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar invariant = require('invariant');\nfunction getValueAtPath(data, path) {\n var result = data;\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(path),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var key = _step.value;\n if (result == null) {\n return null;\n }\n if (typeof key === 'number') {\n !Array.isArray(result) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected an array when extracting value at path. ' + \"If you're seeing this, this is likely a bug in Relay.\") : invariant(false) : void 0;\n result = result[key];\n } else {\n !(typeof result === 'object' && !Array.isArray(result)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected an object when extracting value at path. ' + \"If you're seeing this, this is likely a bug in Relay.\") : invariant(false) : void 0;\n result = result[key];\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return result;\n}\nmodule.exports = getValueAtPath;","'use strict';\n\nvar profileHandlersByName = {};\nvar defaultProfiler = {\n stop: function stop() {}\n};\nvar RelayProfiler = {\n profile: function profile(name, state) {\n var handlers = profileHandlersByName[name];\n if (handlers && handlers.length > 0) {\n var stopHandlers = [];\n for (var ii = handlers.length - 1; ii >= 0; ii--) {\n var stopHandler = handlers[ii](name, state);\n stopHandlers.unshift(stopHandler);\n }\n return {\n stop: function stop(error) {\n stopHandlers.forEach(function (stopHandler) {\n return stopHandler(error);\n });\n }\n };\n }\n return defaultProfiler;\n },\n attachProfileHandler: function attachProfileHandler(name, handler) {\n if (!profileHandlersByName.hasOwnProperty(name)) {\n profileHandlersByName[name] = [];\n }\n profileHandlersByName[name].push(handler);\n },\n detachProfileHandler: function detachProfileHandler(name, handler) {\n if (profileHandlersByName.hasOwnProperty(name)) {\n removeFromArray(profileHandlersByName[name], handler);\n }\n }\n};\nfunction removeFromArray(array, element) {\n var index = array.indexOf(element);\n if (index !== -1) {\n array.splice(index, 1);\n }\n}\nmodule.exports = RelayProfiler;","'use strict';\n\nvar _require = require('./experimental'),\n isErrorResult = _require.isErrorResult,\n isValueResult = _require.isValueResult;\nvar ConnectionHandler = require('./handlers/connection/ConnectionHandler');\nvar ConnectionInterface = require('./handlers/connection/ConnectionInterface');\nvar MutationHandlers = require('./handlers/connection/MutationHandlers');\nvar RelayDefaultHandlerProvider = require('./handlers/RelayDefaultHandlerProvider');\nvar applyOptimisticMutation = require('./mutations/applyOptimisticMutation');\nvar commitLocalUpdate = require('./mutations/commitLocalUpdate');\nvar commitMutation = require('./mutations/commitMutation');\nvar RelayDeclarativeMutationConfig = require('./mutations/RelayDeclarativeMutationConfig');\nvar RelayNetwork = require('./network/RelayNetwork');\nvar RelayObservable = require('./network/RelayObservable');\nvar RelayQueryResponseCache = require('./network/RelayQueryResponseCache');\nvar fetchQuery = require('./query/fetchQuery');\nvar fetchQuery_DEPRECATED = require('./query/fetchQuery_DEPRECATED');\nvar fetchQueryInternal = require('./query/fetchQueryInternal');\nvar GraphQLTag = require('./query/GraphQLTag');\nvar PreloadableQueryRegistry = require('./query/PreloadableQueryRegistry');\nvar _require2 = require('./store/ClientID'),\n generateClientID = _require2.generateClientID,\n generateUniqueClientID = _require2.generateUniqueClientID,\n isClientID = _require2.isClientID;\nvar createFragmentSpecResolver = require('./store/createFragmentSpecResolver');\nvar createRelayContext = require('./store/createRelayContext');\nvar isRelayModernEnvironment = require('./store/isRelayModernEnvironment');\nvar _require3 = require('./store/live-resolvers/LiveResolverSuspenseSentinel'),\n isSuspenseSentinel = _require3.isSuspenseSentinel,\n suspenseSentinel = _require3.suspenseSentinel;\nvar normalizeResponse = require('./store/normalizeResponse');\nvar readInlineData = require('./store/readInlineData');\nvar RelayConcreteVariables = require('./store/RelayConcreteVariables');\nvar RelayModernEnvironment = require('./store/RelayModernEnvironment');\nvar RelayModernOperationDescriptor = require('./store/RelayModernOperationDescriptor');\nvar RelayModernRecord = require('./store/RelayModernRecord');\nvar RelayModernSelector = require('./store/RelayModernSelector');\nvar RelayModernStore = require('./store/RelayModernStore');\nvar RelayOperationTracker = require('./store/RelayOperationTracker');\nvar RelayRecordSource = require('./store/RelayRecordSource');\nvar RelayStoreUtils = require('./store/RelayStoreUtils');\nvar ResolverFragments = require('./store/ResolverFragments');\nvar ViewerPattern = require('./store/ViewerPattern');\nvar requestSubscription = require('./subscription/requestSubscription');\nvar createPayloadFor3DField = require('./util/createPayloadFor3DField');\nvar deepFreeze = require('./util/deepFreeze');\nvar getFragmentIdentifier = require('./util/getFragmentIdentifier');\nvar getPaginationMetadata = require('./util/getPaginationMetadata');\nvar getPaginationVariables = require('./util/getPaginationVariables');\nvar getPendingOperationsForFragment = require('./util/getPendingOperationsForFragment');\nvar getRefetchMetadata = require('./util/getRefetchMetadata');\nvar getRelayHandleKey = require('./util/getRelayHandleKey');\nvar getRequestIdentifier = require('./util/getRequestIdentifier');\nvar getValueAtPath = require('./util/getValueAtPath');\nvar _require4 = require('./util/handlePotentialSnapshotErrors'),\n handlePotentialSnapshotErrors = _require4.handlePotentialSnapshotErrors;\nvar isPromise = require('./util/isPromise');\nvar isScalarAndEqual = require('./util/isScalarAndEqual');\nvar recycleNodesInto = require('./util/recycleNodesInto');\nvar RelayConcreteNode = require('./util/RelayConcreteNode');\nvar RelayDefaultHandleKey = require('./util/RelayDefaultHandleKey');\nvar RelayError = require('./util/RelayError');\nvar RelayFeatureFlags = require('./util/RelayFeatureFlags');\nvar RelayProfiler = require('./util/RelayProfiler');\nvar RelayReplaySubject = require('./util/RelayReplaySubject');\nvar _require5 = require('./util/stableCopy'),\n hasCycle = _require5.hasCycle,\n stableCopy = _require5.stableCopy;\nvar withProvidedVariables = require('./util/withProvidedVariables');\nif (process.env.NODE_ENV !== \"production\") {\n var mapStr = typeof Map !== 'function' ? 'Map' : null;\n var setStr = typeof Set !== 'function' ? 'Set' : null;\n var promiseStr = typeof Promise !== 'function' ? 'Promise' : null;\n var objStr = typeof Object.assign !== 'function' ? 'Object.assign' : null;\n if (mapStr || setStr || promiseStr || objStr) {\n throw new Error(\"relay-runtime requires \".concat([mapStr, setStr, promiseStr, objStr].filter(Boolean).join(', and '), \" to exist. \") + 'Use a polyfill to provide these for older browsers.');\n }\n}\nmodule.exports = {\n Environment: RelayModernEnvironment,\n Network: RelayNetwork,\n Observable: RelayObservable,\n QueryResponseCache: RelayQueryResponseCache,\n RecordSource: RelayRecordSource,\n Record: RelayModernRecord,\n ReplaySubject: RelayReplaySubject,\n Store: RelayModernStore,\n areEqualSelectors: RelayModernSelector.areEqualSelectors,\n createFragmentSpecResolver: createFragmentSpecResolver,\n createNormalizationSelector: RelayModernSelector.createNormalizationSelector,\n createOperationDescriptor: RelayModernOperationDescriptor.createOperationDescriptor,\n createReaderSelector: RelayModernSelector.createReaderSelector,\n createRequestDescriptor: RelayModernOperationDescriptor.createRequestDescriptor,\n getArgumentValues: RelayStoreUtils.getArgumentValues,\n getDataIDsFromFragment: RelayModernSelector.getDataIDsFromFragment,\n getDataIDsFromObject: RelayModernSelector.getDataIDsFromObject,\n getNode: GraphQLTag.getNode,\n getFragment: GraphQLTag.getFragment,\n getInlineDataFragment: GraphQLTag.getInlineDataFragment,\n getModuleComponentKey: RelayStoreUtils.getModuleComponentKey,\n getModuleOperationKey: RelayStoreUtils.getModuleOperationKey,\n getPaginationFragment: GraphQLTag.getPaginationFragment,\n getPluralSelector: RelayModernSelector.getPluralSelector,\n getRefetchableFragment: GraphQLTag.getRefetchableFragment,\n getRequest: GraphQLTag.getRequest,\n getRequestIdentifier: getRequestIdentifier,\n getSelector: RelayModernSelector.getSelector,\n getSelectorsFromObject: RelayModernSelector.getSelectorsFromObject,\n getSingularSelector: RelayModernSelector.getSingularSelector,\n getStorageKey: RelayStoreUtils.getStorageKey,\n getVariablesFromFragment: RelayModernSelector.getVariablesFromFragment,\n getVariablesFromObject: RelayModernSelector.getVariablesFromObject,\n getVariablesFromPluralFragment: RelayModernSelector.getVariablesFromPluralFragment,\n getVariablesFromSingularFragment: RelayModernSelector.getVariablesFromSingularFragment,\n handlePotentialSnapshotErrors: handlePotentialSnapshotErrors,\n graphql: GraphQLTag.graphql,\n isErrorResult: isErrorResult,\n isValueResult: isValueResult,\n isFragment: GraphQLTag.isFragment,\n isInlineDataFragment: GraphQLTag.isInlineDataFragment,\n isSuspenseSentinel: isSuspenseSentinel,\n suspenseSentinel: suspenseSentinel,\n isRequest: GraphQLTag.isRequest,\n readInlineData: readInlineData,\n MutationTypes: RelayDeclarativeMutationConfig.MutationTypes,\n RangeOperations: RelayDeclarativeMutationConfig.RangeOperations,\n DefaultHandlerProvider: RelayDefaultHandlerProvider,\n ConnectionHandler: ConnectionHandler,\n MutationHandlers: MutationHandlers,\n VIEWER_ID: ViewerPattern.VIEWER_ID,\n VIEWER_TYPE: ViewerPattern.VIEWER_TYPE,\n applyOptimisticMutation: applyOptimisticMutation,\n commitLocalUpdate: commitLocalUpdate,\n commitMutation: commitMutation,\n fetchQuery: fetchQuery,\n fetchQuery_DEPRECATED: fetchQuery_DEPRECATED,\n isRelayModernEnvironment: isRelayModernEnvironment,\n requestSubscription: requestSubscription,\n ConnectionInterface: ConnectionInterface,\n PreloadableQueryRegistry: PreloadableQueryRegistry,\n RelayProfiler: RelayProfiler,\n createPayloadFor3DField: createPayloadFor3DField,\n RelayConcreteNode: RelayConcreteNode,\n RelayError: RelayError,\n RelayFeatureFlags: RelayFeatureFlags,\n DEFAULT_HANDLE_KEY: RelayDefaultHandleKey.DEFAULT_HANDLE_KEY,\n FRAGMENTS_KEY: RelayStoreUtils.FRAGMENTS_KEY,\n FRAGMENT_OWNER_KEY: RelayStoreUtils.FRAGMENT_OWNER_KEY,\n ID_KEY: RelayStoreUtils.ID_KEY,\n REF_KEY: RelayStoreUtils.REF_KEY,\n REFS_KEY: RelayStoreUtils.REFS_KEY,\n ROOT_ID: RelayStoreUtils.ROOT_ID,\n ROOT_TYPE: RelayStoreUtils.ROOT_TYPE,\n TYPENAME_KEY: RelayStoreUtils.TYPENAME_KEY,\n deepFreeze: deepFreeze,\n generateClientID: generateClientID,\n generateUniqueClientID: generateUniqueClientID,\n getRelayHandleKey: getRelayHandleKey,\n isClientID: isClientID,\n isPromise: isPromise,\n isScalarAndEqual: isScalarAndEqual,\n recycleNodesInto: recycleNodesInto,\n stableCopy: stableCopy,\n hasCycle: hasCycle,\n getFragmentIdentifier: getFragmentIdentifier,\n getRefetchMetadata: getRefetchMetadata,\n getPaginationMetadata: getPaginationMetadata,\n getPaginationVariables: getPaginationVariables,\n getPendingOperationsForFragment: getPendingOperationsForFragment,\n getValueAtPath: getValueAtPath,\n __internal: {\n ResolverFragments: ResolverFragments,\n OperationTracker: RelayOperationTracker,\n createRelayContext: createRelayContext,\n getOperationVariables: RelayConcreteVariables.getOperationVariables,\n getLocalVariables: RelayConcreteVariables.getLocalVariables,\n fetchQuery: fetchQueryInternal.fetchQuery,\n fetchQueryDeduped: fetchQueryInternal.fetchQueryDeduped,\n getPromiseForActiveRequest: fetchQueryInternal.getPromiseForActiveRequest,\n getObservableForActiveRequest: fetchQueryInternal.getObservableForActiveRequest,\n normalizeResponse: normalizeResponse,\n withProvidedVariables: withProvidedVariables\n }\n};","/**\n * Relay v18.2.0\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nmodule.exports = require('./lib/index.js');\n","'use strict';\n\nvar React = require('react');\nvar _require = require('relay-runtime'),\n createRelayContext = _require.__internal.createRelayContext;\nmodule.exports = createRelayContext(React);","function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _extends() {\n return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _extends.apply(null, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(t, e) {\n return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _setPrototypeOf(t, e);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nvar invariant = require('invariant');\nfunction assertFragmentMap(componentName, fragmentSpec) {\n !(fragmentSpec && typeof fragmentSpec === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not create Relay Container for `%s`. ' + 'Expected a set of GraphQL fragments, got `%s` instead.', componentName, fragmentSpec) : invariant(false) : void 0;\n for (var key in fragmentSpec) {\n if (fragmentSpec.hasOwnProperty(key)) {\n var fragment = fragmentSpec[key];\n !(fragment && (typeof fragment === 'object' || typeof fragment === 'function')) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not create Relay Container for `%s`. ' + 'The value of fragment `%s` was expected to be a fragment, got `%s` instead.', componentName, key, fragment) : invariant(false) : void 0;\n }\n }\n}\nmodule.exports = assertFragmentMap;","'use strict';\n\nfunction getComponentName(component) {\n return component.displayName || component.name || 'Component';\n}\nfunction getContainerName(Component) {\n return 'Relay(' + getComponentName(Component) + ')';\n}\nmodule.exports = {\n getComponentName: getComponentName,\n getContainerName: getContainerName\n};","'use strict';\n\nvar React = require('react');\nmodule.exports = React.createContext({\n rootIsQueryRenderer: false\n});","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar assertFragmentMap = require('./assertFragmentMap');\nvar _require = require('./ReactRelayContainerUtils'),\n getComponentName = _require.getComponentName,\n getContainerName = _require.getContainerName;\nvar ReactRelayContext = require('./ReactRelayContext');\nvar ReactRelayQueryRendererContext = require('./ReactRelayQueryRendererContext');\nvar invariant = require('invariant');\nvar React = require('react');\nvar _require2 = require('relay-runtime'),\n getFragment = _require2.getFragment;\nvar useContext = React.useContext;\nfunction buildReactRelayContainer(ComponentClass, fragmentSpec, createContainerWithFragments) {\n var containerName = getContainerName(ComponentClass);\n assertFragmentMap(getComponentName(ComponentClass), fragmentSpec);\n var fragments = {};\n for (var key in fragmentSpec) {\n fragments[key] = getFragment(fragmentSpec[key]);\n }\n var Container = createContainerWithFragments(ComponentClass, fragments);\n Container.displayName = containerName;\n function ForwardRef(props, ref) {\n var _queryRendererContext;\n var context = useContext(ReactRelayContext);\n !(context != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '`%s` tried to render a context that was not valid this means that ' + '`%s` was rendered outside of a query renderer.', containerName, containerName) : invariant(false) : void 0;\n var queryRendererContext = useContext(ReactRelayQueryRendererContext);\n return /*#__PURE__*/React.createElement(Container, (0, _extends2[\"default\"])({}, props, {\n __relayContext: context,\n __rootIsQueryRenderer: (_queryRendererContext = queryRendererContext === null || queryRendererContext === void 0 ? void 0 : queryRendererContext.rootIsQueryRenderer) !== null && _queryRendererContext !== void 0 ? _queryRendererContext : false,\n componentRef: props.componentRef || ref\n }));\n }\n ForwardRef.displayName = containerName;\n var ForwardContainer = React.forwardRef(ForwardRef);\n if (process.env.NODE_ENV !== \"production\") {\n ForwardContainer.__ComponentClass = ComponentClass;\n ForwardContainer.displayName = containerName;\n }\n return ForwardContainer;\n}\nmodule.exports = buildReactRelayContainer;","'use strict';\n\nfunction isRelayEnvironment(environment) {\n return typeof environment === 'object' && environment !== null && typeof environment.check === 'function' && typeof environment.lookup === 'function' && typeof environment.retain === 'function' && typeof environment.execute === 'function' && typeof environment.subscribe === 'function';\n}\nmodule.exports = isRelayEnvironment;","'use strict';\n\nvar isRelayEnvironment = require('./isRelayEnvironment');\nvar invariant = require('invariant');\nfunction assertRelayContext(relay) {\n !isRelayContext(relay) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'RelayContext: Expected `context.relay` to be an object conforming to ' + 'the `RelayContext` interface, got `%s`.', relay) : invariant(false) : void 0;\n return relay;\n}\nfunction isRelayContext(context) {\n return typeof context === 'object' && context !== null && !Array.isArray(context) && isRelayEnvironment(context.environment);\n}\nmodule.exports = {\n assertRelayContext: assertRelayContext,\n isRelayContext: isRelayContext\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _excluded = [\"componentRef\", \"__relayContext\", \"__rootIsQueryRenderer\"];\nvar buildReactRelayContainer = require('./buildReactRelayContainer');\nvar _require = require('./ReactRelayContainerUtils'),\n getContainerName = _require.getContainerName;\nvar _require2 = require('./RelayContext'),\n assertRelayContext = _require2.assertRelayContext;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar React = require('react');\nvar _require3 = require('relay-runtime'),\n createFragmentSpecResolver = _require3.createFragmentSpecResolver,\n getDataIDsFromObject = _require3.getDataIDsFromObject,\n isScalarAndEqual = _require3.isScalarAndEqual;\nfunction createContainerWithFragments(Component, fragments) {\n var _class;\n var containerName = getContainerName(Component);\n return _class = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(_class, _React$Component);\n function _class(props) {\n var _props$__rootIsQueryR, _this;\n _this = _React$Component.call(this, props) || this;\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_handleFragmentDataUpdate\", function () {\n var resolverFromThisUpdate = _this.state.resolver;\n _this.setState(function (updatedState) {\n return resolverFromThisUpdate === updatedState.resolver ? {\n data: updatedState.resolver.resolve(),\n relayProp: getRelayProp(updatedState.relayProp.environment)\n } : null;\n });\n });\n var relayContext = assertRelayContext(props.__relayContext);\n var rootIsQueryRenderer = (_props$__rootIsQueryR = props.__rootIsQueryRenderer) !== null && _props$__rootIsQueryR !== void 0 ? _props$__rootIsQueryR : false;\n var resolver = createFragmentSpecResolver(relayContext, containerName, fragments, props, rootIsQueryRenderer);\n _this.state = {\n data: resolver.resolve(),\n prevProps: props,\n prevPropsContext: relayContext,\n relayProp: getRelayProp(relayContext.environment),\n resolver: resolver\n };\n return _this;\n }\n _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n var _nextProps$__rootIsQu;\n var prevProps = prevState.prevProps;\n var relayContext = assertRelayContext(nextProps.__relayContext);\n var rootIsQueryRenderer = (_nextProps$__rootIsQu = nextProps.__rootIsQueryRenderer) !== null && _nextProps$__rootIsQu !== void 0 ? _nextProps$__rootIsQu : false;\n var prevIDs = getDataIDsFromObject(fragments, prevProps);\n var nextIDs = getDataIDsFromObject(fragments, nextProps);\n var resolver = prevState.resolver;\n if (prevState.prevPropsContext.environment !== relayContext.environment || !areEqual(prevIDs, nextIDs)) {\n resolver = createFragmentSpecResolver(relayContext, containerName, fragments, nextProps, rootIsQueryRenderer);\n return {\n data: resolver.resolve(),\n prevPropsContext: relayContext,\n prevProps: nextProps,\n relayProp: getRelayProp(relayContext.environment),\n resolver: resolver\n };\n } else {\n resolver.setProps(nextProps);\n var data = resolver.resolve();\n if (data !== prevState.data) {\n return {\n data: data,\n prevProps: nextProps,\n prevPropsContext: relayContext,\n relayProp: getRelayProp(relayContext.environment)\n };\n }\n }\n return null;\n };\n var _proto = _class.prototype;\n _proto.componentDidMount = function componentDidMount() {\n this._subscribeToNewResolverAndRerenderIfStoreHasChanged();\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n if (this.state.resolver !== prevState.resolver) {\n prevState.resolver.dispose();\n this._subscribeToNewResolverAndRerenderIfStoreHasChanged();\n } else {\n this._rerenderIfStoreHasChanged();\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.state.resolver.dispose();\n };\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n if (nextState.data !== this.state.data) {\n return true;\n }\n var keys = Object.keys(nextProps);\n for (var ii = 0; ii < keys.length; ii++) {\n var key = keys[ii];\n if (key === '__relayContext') {\n if (nextState.prevPropsContext.environment !== this.state.prevPropsContext.environment) {\n return true;\n }\n } else {\n if (!fragments.hasOwnProperty(key) && !isScalarAndEqual(nextProps[key], this.props[key])) {\n return true;\n }\n }\n }\n return false;\n };\n _proto._rerenderIfStoreHasChanged = function _rerenderIfStoreHasChanged() {\n var _this$state = this.state,\n data = _this$state.data,\n resolver = _this$state.resolver;\n var maybeNewData = resolver.resolve();\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n };\n _proto._subscribeToNewResolverAndRerenderIfStoreHasChanged = function _subscribeToNewResolverAndRerenderIfStoreHasChanged() {\n var _this$state2 = this.state,\n data = _this$state2.data,\n resolver = _this$state2.resolver;\n var maybeNewData = resolver.resolve();\n resolver.setCallback(this.props, this._handleFragmentDataUpdate);\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n };\n _proto.render = function render() {\n var _this$props = this.props,\n componentRef = _this$props.componentRef,\n __relayContext = _this$props.__relayContext,\n __rootIsQueryRenderer = _this$props.__rootIsQueryRenderer,\n props = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props, _excluded);\n return /*#__PURE__*/React.createElement(Component, (0, _extends2[\"default\"])({}, props, this.state.data, {\n ref: componentRef,\n relay: this.state.relayProp\n }));\n };\n return _class;\n }(React.Component), (0, _defineProperty2[\"default\"])(_class, \"displayName\", containerName), _class;\n}\nfunction getRelayProp(environment) {\n return {\n environment: environment\n };\n}\nfunction createContainer(Component, fragmentSpec) {\n return buildReactRelayContainer(Component, fragmentSpec, createContainerWithFragments);\n}\nmodule.exports = {\n createContainer: createContainer\n};","'use strict';\n\nvar ReactRelayContext = require('./ReactRelayContext');\nvar ReactRelayQueryRendererContext = require('./ReactRelayQueryRendererContext');\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar React = require('react');\nvar _require = require('relay-runtime'),\n createOperationDescriptor = _require.createOperationDescriptor,\n deepFreeze = _require.deepFreeze,\n getRequest = _require.getRequest;\nvar useLayoutEffect = React.useLayoutEffect,\n useState = React.useState,\n useRef = React.useRef,\n useMemo = React.useMemo;\nvar queryRendererContext = {\n rootIsQueryRenderer: true\n};\nfunction useDeepCompare(value) {\n var latestValue = React.useRef(value);\n if (!areEqual(latestValue.current, value)) {\n if (process.env.NODE_ENV !== \"production\") {\n deepFreeze(value);\n }\n latestValue.current = value;\n }\n return latestValue.current;\n}\nfunction ReactRelayLocalQueryRenderer(props) {\n var environment = props.environment,\n query = props.query,\n variables = props.variables,\n render = props.render;\n var latestVariables = useDeepCompare(variables);\n var operation = useMemo(function () {\n var request = getRequest(query);\n return createOperationDescriptor(request, latestVariables);\n }, [query, latestVariables]);\n var relayContext = useMemo(function () {\n return {\n environment: environment\n };\n }, [environment]);\n var dataRef = useRef(null);\n var _useState = useState(null),\n forceUpdate = _useState[1];\n var cleanupFnRef = useRef(null);\n var snapshot = useMemo(function () {\n environment.check(operation);\n var res = environment.lookup(operation.fragment);\n dataRef.current = res.data;\n var retainDisposable = environment.retain(operation);\n var subscribeDisposable = environment.subscribe(res, function (newSnapshot) {\n dataRef.current = newSnapshot.data;\n forceUpdate(dataRef.current);\n });\n var disposed = false;\n function nextCleanupFn() {\n if (!disposed) {\n disposed = true;\n cleanupFnRef.current = null;\n retainDisposable.dispose();\n subscribeDisposable.dispose();\n }\n }\n if (cleanupFnRef.current) {\n cleanupFnRef.current();\n }\n cleanupFnRef.current = nextCleanupFn;\n return res;\n }, [environment, operation]);\n useLayoutEffect(function () {\n var cleanupFn = cleanupFnRef.current;\n return function () {\n cleanupFn && cleanupFn();\n };\n }, [snapshot]);\n return /*#__PURE__*/React.createElement(ReactRelayContext.Provider, {\n value: relayContext\n }, /*#__PURE__*/React.createElement(ReactRelayQueryRendererContext.Provider, {\n value: queryRendererContext\n }, render({\n props: dataRef.current\n })));\n}\nmodule.exports = ReactRelayLocalQueryRenderer;","var defineProperty = require(\"./defineProperty.js\");\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nmodule.exports = _objectSpread2, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _require = require('relay-runtime'),\n getSelector = _require.getSelector;\nfunction getRootVariablesForFragments(fragments, props) {\n var rootVariables = {};\n Object.keys(fragments).forEach(function (key) {\n var _selector$selectors$, _selector$selectors$2, _selector$owner$varia;\n var fragmentNode = fragments[key];\n var fragmentRef = props[key];\n var selector = getSelector(fragmentNode, fragmentRef);\n var fragmentOwnerVariables = selector != null && selector.kind === 'PluralReaderSelector' ? (_selector$selectors$ = (_selector$selectors$2 = selector.selectors[0]) === null || _selector$selectors$2 === void 0 ? void 0 : _selector$selectors$2.owner.variables) !== null && _selector$selectors$ !== void 0 ? _selector$selectors$ : {} : (_selector$owner$varia = selector === null || selector === void 0 ? void 0 : selector.owner.variables) !== null && _selector$owner$varia !== void 0 ? _selector$owner$varia : {};\n rootVariables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rootVariables), fragmentOwnerVariables);\n });\n return rootVariables;\n}\nmodule.exports = getRootVariablesForFragments;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar invariant = require('invariant');\nvar _require = require('relay-runtime'),\n fetchQuery = _require.__internal.fetchQuery,\n createOperationDescriptor = _require.createOperationDescriptor,\n isRelayModernEnvironment = _require.isRelayModernEnvironment;\nvar ReactRelayQueryFetcher = /*#__PURE__*/function () {\n function ReactRelayQueryFetcher(args) {\n (0, _defineProperty2[\"default\"])(this, \"_selectionReferences\", []);\n (0, _defineProperty2[\"default\"])(this, \"_didFetchFinish\", false);\n if (args != null) {\n this._cacheSelectionReference = args.cacheSelectionReference;\n this._selectionReferences = args.selectionReferences;\n }\n }\n var _proto = ReactRelayQueryFetcher.prototype;\n _proto.getSelectionReferences = function getSelectionReferences() {\n return {\n cacheSelectionReference: this._cacheSelectionReference,\n selectionReferences: this._selectionReferences\n };\n };\n _proto.lookupInStore = function lookupInStore(environment, operation, fetchPolicy) {\n if (fetchPolicy === 'store-and-network' || fetchPolicy === 'store-or-network') {\n if (environment.check(operation).status === 'available') {\n this._retainCachedOperation(environment, operation);\n return environment.lookup(operation.fragment);\n }\n }\n return null;\n };\n _proto.getFetchResult = function getFetchResult() {\n if (this._didFetchFinish) {\n if (this._error != null) {\n return {\n error: this._error\n };\n } else if (this._snapshot != null) {\n return {\n snapshot: this._snapshot\n };\n }\n } else {\n return null;\n }\n };\n _proto.execute = function execute(_ref) {\n var _this = this;\n var environment = _ref.environment,\n operation = _ref.operation,\n _ref$preservePrevious = _ref.preservePreviousReferences,\n preservePreviousReferences = _ref$preservePrevious === void 0 ? false : _ref$preservePrevious;\n var reference = environment.retain(operation);\n var error = function error() {\n _this._selectionReferences = _this._selectionReferences.concat(reference);\n };\n var complete = function complete() {\n if (!preservePreviousReferences) {\n _this.disposeSelectionReferences();\n }\n _this._selectionReferences = _this._selectionReferences.concat(reference);\n };\n var unsubscribe = function unsubscribe() {\n _this._selectionReferences = _this._selectionReferences.concat(reference);\n };\n if (!isRelayModernEnvironment(environment)) {\n return environment.execute({\n operation: operation\n })[\"do\"]({\n error: error,\n complete: complete,\n unsubscribe: unsubscribe\n });\n }\n return fetchQuery(environment, operation)[\"do\"]({\n error: error,\n complete: complete,\n unsubscribe: unsubscribe\n });\n };\n _proto.setOnDataChange = function setOnDataChange(onDataChange) {\n !this._fetchOptions ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`') : invariant(false) : void 0;\n if (typeof onDataChange === 'function') {\n this._fetchOptions.onDataChangeCallbacks = this._fetchOptions.onDataChangeCallbacks || [];\n this._fetchOptions.onDataChangeCallbacks.push(onDataChange);\n if (this._didFetchFinish) {\n if (this._error != null) {\n onDataChange({\n error: this._error\n });\n } else if (this._snapshot != null) {\n onDataChange({\n snapshot: this._snapshot\n });\n }\n }\n }\n };\n _proto.fetch = function fetch(fetchOptions, cacheConfigOverride) {\n var _this2 = this;\n var environment = fetchOptions.environment,\n operation = fetchOptions.operation,\n onDataChange = fetchOptions.onDataChange;\n var fetchHasReturned = false;\n var _error;\n this.disposeRequest();\n var oldOnDataChangeCallbacks = this._fetchOptions && this._fetchOptions.onDataChangeCallbacks;\n this._fetchOptions = {\n environment: environment,\n onDataChangeCallbacks: oldOnDataChangeCallbacks || [],\n operation: operation\n };\n if (onDataChange && this._fetchOptions.onDataChangeCallbacks.indexOf(onDataChange) === -1) {\n this._fetchOptions.onDataChangeCallbacks.push(onDataChange);\n }\n var operationOverride = cacheConfigOverride ? createOperationDescriptor(operation.request.node, operation.request.variables, cacheConfigOverride) : operation;\n var request = this.execute({\n environment: environment,\n operation: operationOverride\n })[\"finally\"](function () {\n _this2._pendingRequest = null;\n }).subscribe({\n next: function next() {\n _this2._didFetchFinish = true;\n _this2._error = null;\n _this2._onQueryDataAvailable({\n notifyFirstResult: fetchHasReturned\n });\n },\n error: function error(err) {\n _this2._didFetchFinish = true;\n _this2._error = err;\n _this2._snapshot = null;\n var onDataChangeCallbacks = _this2._fetchOptions && _this2._fetchOptions.onDataChangeCallbacks;\n if (fetchHasReturned) {\n if (onDataChangeCallbacks) {\n onDataChangeCallbacks.forEach(function (onDataChange) {\n onDataChange({\n error: err\n });\n });\n }\n } else {\n _error = err;\n }\n }\n });\n this._pendingRequest = {\n dispose: function dispose() {\n request.unsubscribe();\n }\n };\n fetchHasReturned = true;\n if (_error) {\n throw _error;\n }\n return this._snapshot;\n };\n _proto.retry = function retry(cacheConfigOverride) {\n !this._fetchOptions ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayQueryFetcher: `retry` should be called after having called `fetch`') : invariant(false) : void 0;\n return this.fetch({\n environment: this._fetchOptions.environment,\n operation: this._fetchOptions.operation,\n onDataChange: null\n }, cacheConfigOverride);\n };\n _proto.dispose = function dispose() {\n this.disposeRequest();\n this.disposeSelectionReferences();\n };\n _proto.disposeRequest = function disposeRequest() {\n this._error = null;\n this._snapshot = null;\n if (this._pendingRequest) {\n this._pendingRequest.dispose();\n }\n if (this._rootSubscription) {\n this._rootSubscription.dispose();\n this._rootSubscription = null;\n }\n };\n _proto._retainCachedOperation = function _retainCachedOperation(environment, operation) {\n this._disposeCacheSelectionReference();\n this._cacheSelectionReference = environment.retain(operation);\n };\n _proto._disposeCacheSelectionReference = function _disposeCacheSelectionReference() {\n this._cacheSelectionReference && this._cacheSelectionReference.dispose();\n this._cacheSelectionReference = null;\n };\n _proto.disposeSelectionReferences = function disposeSelectionReferences() {\n this._disposeCacheSelectionReference();\n this._selectionReferences.forEach(function (r) {\n return r.dispose();\n });\n this._selectionReferences = [];\n };\n _proto._onQueryDataAvailable = function _onQueryDataAvailable(_ref2) {\n var _this3 = this;\n var notifyFirstResult = _ref2.notifyFirstResult;\n !this._fetchOptions ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`') : invariant(false) : void 0;\n var _this$_fetchOptions = this._fetchOptions,\n environment = _this$_fetchOptions.environment,\n onDataChangeCallbacks = _this$_fetchOptions.onDataChangeCallbacks,\n operation = _this$_fetchOptions.operation;\n if (this._snapshot) {\n return;\n }\n this._snapshot = environment.lookup(operation.fragment);\n this._rootSubscription = environment.subscribe(this._snapshot, function (snapshot) {\n if (_this3._fetchOptions != null) {\n var maybeNewOnDataChangeCallbacks = _this3._fetchOptions.onDataChangeCallbacks;\n if (Array.isArray(maybeNewOnDataChangeCallbacks)) {\n maybeNewOnDataChangeCallbacks.forEach(function (onDataChange) {\n return onDataChange({\n snapshot: snapshot\n });\n });\n }\n }\n });\n if (this._snapshot && notifyFirstResult && Array.isArray(onDataChangeCallbacks)) {\n var snapshot = this._snapshot;\n onDataChangeCallbacks.forEach(function (onDataChange) {\n return onDataChange({\n snapshot: snapshot\n });\n });\n }\n };\n return ReactRelayQueryFetcher;\n}();\nmodule.exports = ReactRelayQueryFetcher;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _objectSpread3 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _excluded = [\"componentRef\"],\n _excluded2 = [\"componentRef\", \"__relayContext\", \"__rootIsQueryRenderer\"],\n _excluded3 = [\"componentRef\", \"__relayContext\", \"__rootIsQueryRenderer\"];\nvar buildReactRelayContainer = require('./buildReactRelayContainer');\nvar getRootVariablesForFragments = require('./getRootVariablesForFragments');\nvar _require = require('./ReactRelayContainerUtils'),\n getComponentName = _require.getComponentName,\n getContainerName = _require.getContainerName;\nvar ReactRelayContext = require('./ReactRelayContext');\nvar ReactRelayQueryFetcher = require('./ReactRelayQueryFetcher');\nvar _require2 = require('./RelayContext'),\n assertRelayContext = _require2.assertRelayContext;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar invariant = require('invariant');\nvar React = require('react');\nvar _require3 = require('relay-runtime'),\n ConnectionInterface = _require3.ConnectionInterface,\n Observable = _require3.Observable,\n RelayFeatureFlags = _require3.RelayFeatureFlags,\n createFragmentSpecResolver = _require3.createFragmentSpecResolver,\n createOperationDescriptor = _require3.createOperationDescriptor,\n getDataIDsFromObject = _require3.getDataIDsFromObject,\n getRequest = _require3.getRequest,\n getVariablesFromObject = _require3.getVariablesFromObject,\n isScalarAndEqual = _require3.isScalarAndEqual;\nvar warning = require(\"fbjs/lib/warning\");\nvar FORWARD = 'forward';\nfunction createGetConnectionFromProps(metadata) {\n var path = metadata.path;\n !path ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Unable to synthesize a ' + 'getConnectionFromProps function.') : invariant(false) : void 0;\n return function (props) {\n var data = props[metadata.fragmentName];\n for (var i = 0; i < path.length; i++) {\n if (!data || typeof data !== 'object') {\n return null;\n }\n data = data[path[i]];\n }\n return data;\n };\n}\nfunction createGetFragmentVariables(metadata) {\n var countVariable = metadata.count;\n !countVariable ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Unable to synthesize a ' + 'getFragmentVariables function.') : invariant(false) : void 0;\n return function (prevVars, totalCount) {\n return (0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])({}, prevVars), {}, (0, _defineProperty2[\"default\"])({}, countVariable, totalCount));\n };\n}\nfunction findConnectionMetadata(fragments) {\n var foundConnectionMetadata = null;\n var isRelayModern = false;\n for (var fragmentName in fragments) {\n var fragment = fragments[fragmentName];\n var connectionMetadata = fragment.metadata && fragment.metadata.connection;\n if (fragment.metadata !== undefined) {\n isRelayModern = true;\n }\n if (connectionMetadata) {\n !(connectionMetadata.length === 1) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Only a single @connection is ' + 'supported, `%s` has %s.', fragmentName, connectionMetadata.length) : invariant(false) : void 0;\n !!foundConnectionMetadata ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Only a single fragment with ' + '@connection is supported.') : invariant(false) : void 0;\n foundConnectionMetadata = (0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])({}, connectionMetadata[0]), {}, {\n fragmentName: fragmentName\n });\n }\n }\n !(!isRelayModern || foundConnectionMetadata !== null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: A @connection directive must be present.') : invariant(false) : void 0;\n return foundConnectionMetadata || {};\n}\nfunction toObserver(observerOrCallback) {\n return typeof observerOrCallback === 'function' ? {\n error: observerOrCallback,\n complete: observerOrCallback,\n unsubscribe: function unsubscribe(subscription) {\n typeof observerOrCallback === 'function' && observerOrCallback();\n }\n } : observerOrCallback || {};\n}\nfunction createContainerWithFragments(Component, fragments, connectionConfig) {\n var _class;\n var componentName = getComponentName(Component);\n var containerName = getContainerName(Component);\n var metadata = findConnectionMetadata(fragments);\n var getConnectionFromProps = connectionConfig.getConnectionFromProps || createGetConnectionFromProps(metadata);\n var direction = connectionConfig.direction || metadata.direction;\n !direction ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Unable to infer direction of the ' + 'connection, possibly because both first and last are provided.') : invariant(false) : void 0;\n var getFragmentVariables = connectionConfig.getFragmentVariables || createGetFragmentVariables(metadata);\n return _class = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(_class, _React$Component);\n function _class(props) {\n var _props$__rootIsQueryR, _this;\n _this = _React$Component.call(this, props) || this;\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_handleFragmentDataUpdate\", function () {\n _this.setState({\n data: _this._resolver.resolve()\n });\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_hasMore\", function () {\n var connectionData = _this._getConnectionData();\n return !!(connectionData && connectionData.hasMore && connectionData.cursor);\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_isLoading\", function () {\n return !!_this._refetchSubscription;\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_refetchConnection\", function (totalCount, observerOrCallback, refetchVariables) {\n if (!_this._canFetchPage('refetchConnection')) {\n return {\n dispose: function dispose() {}\n };\n }\n _this._refetchVariables = refetchVariables;\n var paginatingVariables = {\n count: totalCount,\n cursor: null,\n totalCount: totalCount\n };\n var fetch = _this._fetchPage(paginatingVariables, toObserver(observerOrCallback), {\n force: true\n });\n return {\n dispose: fetch.unsubscribe\n };\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_loadMore\", function (pageSize, observerOrCallback, options) {\n if (!_this._canFetchPage('loadMore')) {\n return {\n dispose: function dispose() {}\n };\n }\n var observer = toObserver(observerOrCallback);\n var connectionData = _this._getConnectionData();\n if (!connectionData) {\n Observable.create(function (sink) {\n return sink.complete();\n }).subscribe(observer);\n return null;\n }\n var totalCount = connectionData.edgeCount + pageSize;\n if (options && options.force) {\n return _this._refetchConnection(totalCount, observerOrCallback);\n }\n var _ConnectionInterface$ = ConnectionInterface.get(),\n END_CURSOR = _ConnectionInterface$.END_CURSOR,\n START_CURSOR = _ConnectionInterface$.START_CURSOR;\n var cursor = connectionData.cursor;\n process.env.NODE_ENV !== \"production\" ? warning(cursor != null && cursor !== '', 'ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)', direction === FORWARD ? END_CURSOR : START_CURSOR, cursor) : void 0;\n var paginatingVariables = {\n count: pageSize,\n cursor: cursor,\n totalCount: totalCount\n };\n var fetch = _this._fetchPage(paginatingVariables, observer, options);\n return {\n dispose: fetch.unsubscribe\n };\n });\n var relayContext = assertRelayContext(props.__relayContext);\n var rootIsQueryRenderer = (_props$__rootIsQueryR = props.__rootIsQueryRenderer) !== null && _props$__rootIsQueryR !== void 0 ? _props$__rootIsQueryR : false;\n _this._isARequestInFlight = false;\n _this._refetchSubscription = null;\n _this._refetchVariables = null;\n if (RelayFeatureFlags.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT === true) {\n _this._resolver = createFragmentSpecResolver(relayContext, containerName, fragments, props, rootIsQueryRenderer);\n } else {\n _this._resolver = createFragmentSpecResolver(relayContext, containerName, fragments, props, rootIsQueryRenderer, _this._handleFragmentDataUpdate);\n }\n _this.state = {\n data: _this._resolver.resolve(),\n prevContext: relayContext,\n contextForChildren: relayContext,\n relayProp: _this._buildRelayProp(relayContext),\n resolverGeneration: 0\n };\n _this._isUnmounted = false;\n _this._hasFetched = false;\n return _this;\n }\n var _proto = _class.prototype;\n _proto.componentDidMount = function componentDidMount() {\n this._isUnmounted = false;\n if (RelayFeatureFlags.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT === true) {\n this._subscribeToNewResolverAndRerenderIfStoreHasChanged();\n }\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n if (RelayFeatureFlags.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT === true) {\n if (prevState.resolverGeneration !== this.state.resolverGeneration) {\n this._subscribeToNewResolverAndRerenderIfStoreHasChanged();\n } else {\n this._rerenderIfStoreHasChanged();\n }\n }\n };\n _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {\n var _this2 = this;\n var _nextProps$__rootIsQu;\n var relayContext = assertRelayContext(nextProps.__relayContext);\n var rootIsQueryRenderer = (_nextProps$__rootIsQu = nextProps.__rootIsQueryRenderer) !== null && _nextProps$__rootIsQu !== void 0 ? _nextProps$__rootIsQu : false;\n var prevIDs = getDataIDsFromObject(fragments, this.props);\n var nextIDs = getDataIDsFromObject(fragments, nextProps);\n var prevRootVariables = getRootVariablesForFragments(fragments, this.props);\n var nextRootVariables = getRootVariablesForFragments(fragments, nextProps);\n if (relayContext.environment !== this.state.prevContext.environment || !areEqual(prevRootVariables, nextRootVariables) || !areEqual(prevIDs, nextIDs)) {\n this._cleanup();\n if (RelayFeatureFlags.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT === true) {\n this._resolver = createFragmentSpecResolver(relayContext, containerName, fragments, nextProps, rootIsQueryRenderer);\n } else {\n this._resolver = createFragmentSpecResolver(relayContext, containerName, fragments, nextProps, rootIsQueryRenderer, this._handleFragmentDataUpdate);\n }\n this.setState(function (prevState) {\n return {\n prevContext: relayContext,\n contextForChildren: relayContext,\n relayProp: _this2._buildRelayProp(relayContext),\n resolverGeneration: prevState.resolverGeneration + 1\n };\n });\n } else if (!this._hasFetched) {\n this._resolver.setProps(nextProps);\n }\n var data = this._resolver.resolve();\n if (data !== this.state.data) {\n this.setState({\n data: data\n });\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isUnmounted = true;\n this._cleanup();\n };\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n if (nextState.data !== this.state.data || nextState.relayProp !== this.state.relayProp || nextState.resolverGeneration !== this.state.resolverGeneration) {\n return true;\n }\n var keys = Object.keys(nextProps);\n for (var ii = 0; ii < keys.length; ii++) {\n var key = keys[ii];\n if (key === '__relayContext') {\n if (nextState.prevContext.environment !== this.state.prevContext.environment) {\n return true;\n }\n } else {\n if (!fragments.hasOwnProperty(key) && !isScalarAndEqual(nextProps[key], this.props[key])) {\n return true;\n }\n }\n }\n return false;\n };\n _proto._buildRelayProp = function _buildRelayProp(relayContext) {\n return {\n hasMore: this._hasMore,\n isLoading: this._isLoading,\n loadMore: this._loadMore,\n refetchConnection: this._refetchConnection,\n environment: relayContext.environment\n };\n };\n _proto._rerenderIfStoreHasChanged = function _rerenderIfStoreHasChanged() {\n var data = this.state.data;\n var maybeNewData = this._resolver.resolve();\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n };\n _proto._subscribeToNewResolverAndRerenderIfStoreHasChanged = function _subscribeToNewResolverAndRerenderIfStoreHasChanged() {\n var data = this.state.data;\n var maybeNewData = this._resolver.resolve();\n this._resolver.setCallback(this.props, this._handleFragmentDataUpdate);\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n };\n _proto._getConnectionData = function _getConnectionData() {\n var _this$props = this.props,\n _ = _this$props.componentRef,\n restProps = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props, _excluded);\n var props = (0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])({}, restProps), this.state.data);\n var connectionData = getConnectionFromProps(props);\n if (connectionData == null) {\n return null;\n }\n var _ConnectionInterface$2 = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$2.EDGES,\n PAGE_INFO = _ConnectionInterface$2.PAGE_INFO,\n HAS_NEXT_PAGE = _ConnectionInterface$2.HAS_NEXT_PAGE,\n HAS_PREV_PAGE = _ConnectionInterface$2.HAS_PREV_PAGE,\n END_CURSOR = _ConnectionInterface$2.END_CURSOR,\n START_CURSOR = _ConnectionInterface$2.START_CURSOR;\n !(typeof connectionData === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' + 'to return `null` or a plain object with %s and %s properties, got `%s`.', componentName, EDGES, PAGE_INFO, connectionData) : invariant(false) : void 0;\n var edges = connectionData[EDGES];\n var pageInfo = connectionData[PAGE_INFO];\n if (edges == null || pageInfo == null) {\n return null;\n }\n !Array.isArray(edges) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' + 'to return an object with %s: Array, got `%s`.', componentName, EDGES, edges) : invariant(false) : void 0;\n !(typeof pageInfo === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' + 'to return an object with %s: Object, got `%s`.', componentName, PAGE_INFO, pageInfo) : invariant(false) : void 0;\n var hasMore = direction === FORWARD ? pageInfo[HAS_NEXT_PAGE] : pageInfo[HAS_PREV_PAGE];\n var cursor = direction === FORWARD ? pageInfo[END_CURSOR] : pageInfo[START_CURSOR];\n if (typeof hasMore !== 'boolean' || edges.length !== 0 && typeof cursor === 'undefined') {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. ' + 'Be sure to fetch %s (got `%s`) and %s (got `%s`).', PAGE_INFO, componentName, direction === FORWARD ? HAS_NEXT_PAGE : HAS_PREV_PAGE, hasMore, direction === FORWARD ? END_CURSOR : START_CURSOR, cursor) : void 0;\n return null;\n }\n return {\n cursor: cursor,\n edgeCount: edges.length,\n hasMore: hasMore\n };\n };\n _proto._getQueryFetcher = function _getQueryFetcher() {\n if (!this._queryFetcher) {\n this._queryFetcher = new ReactRelayQueryFetcher();\n }\n return this._queryFetcher;\n };\n _proto._canFetchPage = function _canFetchPage(method) {\n if (this._isUnmounted) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'ReactRelayPaginationContainer: Unexpected call of `%s` ' + 'on unmounted container `%s`. It looks like some instances ' + 'of your container still trying to fetch data but they already ' + 'unmounted. Please make sure you clear all timers, intervals, async ' + 'calls, etc that may trigger `%s` call.', method, containerName, method) : void 0;\n return false;\n }\n return true;\n };\n _proto._fetchPage = function _fetchPage(paginatingVariables, observer, options) {\n var _this3 = this;\n var _assertRelayContext = assertRelayContext(this.props.__relayContext),\n environment = _assertRelayContext.environment;\n var _this$props2 = this.props,\n _ = _this$props2.componentRef,\n __relayContext = _this$props2.__relayContext,\n __rootIsQueryRenderer = _this$props2.__rootIsQueryRenderer,\n restProps = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props2, _excluded2);\n var props = (0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])({}, restProps), this.state.data);\n var fragmentVariables;\n var rootVariables = getRootVariablesForFragments(fragments, restProps);\n fragmentVariables = getVariablesFromObject(fragments, restProps);\n fragmentVariables = (0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])({}, rootVariables), fragmentVariables), this._refetchVariables);\n var fetchVariables = connectionConfig.getVariables(props, {\n count: paginatingVariables.count,\n cursor: paginatingVariables.cursor\n }, fragmentVariables);\n !(typeof fetchVariables === 'object' && fetchVariables !== null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ReactRelayPaginationContainer: Expected `getVariables()` to ' + 'return an object, got `%s` in `%s`.', fetchVariables, componentName) : invariant(false) : void 0;\n fetchVariables = (0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])({}, fetchVariables), this._refetchVariables);\n fragmentVariables = (0, _objectSpread3[\"default\"])((0, _objectSpread3[\"default\"])({}, fetchVariables), fragmentVariables);\n var cacheConfig = options ? {\n force: !!options.force\n } : undefined;\n if (cacheConfig != null && (options === null || options === void 0 ? void 0 : options.metadata) != null) {\n cacheConfig.metadata = options === null || options === void 0 ? void 0 : options.metadata;\n }\n var request = getRequest(connectionConfig.query);\n var operation = createOperationDescriptor(request, fetchVariables, cacheConfig);\n var refetchSubscription = null;\n if (this._refetchSubscription) {\n this._refetchSubscription.unsubscribe();\n }\n this._hasFetched = true;\n var onNext = function onNext(payload, complete) {\n var prevData = _this3._resolver.resolve();\n _this3._resolver.setVariables(getFragmentVariables(fragmentVariables, paginatingVariables.totalCount), operation.request.node);\n var nextData = _this3._resolver.resolve();\n if (!areEqual(prevData, nextData)) {\n _this3.setState({\n data: nextData,\n contextForChildren: {\n environment: _this3.props.__relayContext.environment\n }\n }, complete);\n } else {\n complete();\n }\n };\n var cleanup = function cleanup() {\n if (_this3._refetchSubscription === refetchSubscription) {\n _this3._refetchSubscription = null;\n _this3._isARequestInFlight = false;\n }\n };\n this._isARequestInFlight = true;\n refetchSubscription = this._getQueryFetcher().execute({\n environment: environment,\n operation: operation,\n preservePreviousReferences: true\n }).mergeMap(function (payload) {\n return Observable.create(function (sink) {\n onNext(payload, function () {\n sink.next();\n sink.complete();\n });\n });\n })[\"do\"]({\n error: cleanup,\n complete: cleanup,\n unsubscribe: cleanup\n }).subscribe(observer || {});\n this._refetchSubscription = this._isARequestInFlight ? refetchSubscription : null;\n return refetchSubscription;\n };\n _proto._cleanup = function _cleanup() {\n this._resolver.dispose();\n this._refetchVariables = null;\n this._hasFetched = false;\n if (this._refetchSubscription) {\n this._refetchSubscription.unsubscribe();\n this._refetchSubscription = null;\n this._isARequestInFlight = false;\n }\n if (this._queryFetcher) {\n this._queryFetcher.dispose();\n }\n };\n _proto.render = function render() {\n var _this$props3 = this.props,\n componentRef = _this$props3.componentRef,\n __relayContext = _this$props3.__relayContext,\n __rootIsQueryRenderer = _this$props3.__rootIsQueryRenderer,\n props = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props3, _excluded3);\n return /*#__PURE__*/React.createElement(ReactRelayContext.Provider, {\n value: this.state.contextForChildren\n }, /*#__PURE__*/React.createElement(Component, (0, _extends2[\"default\"])({}, props, this.state.data, {\n ref: componentRef,\n relay: this.state.relayProp\n })));\n };\n return _class;\n }(React.Component), (0, _defineProperty2[\"default\"])(_class, \"displayName\", containerName), _class;\n}\nfunction createContainer(Component, fragmentSpec, connectionConfig) {\n return buildReactRelayContainer(Component, fragmentSpec, function (ComponentClass, fragments) {\n return createContainerWithFragments(ComponentClass, fragments, connectionConfig);\n });\n}\nmodule.exports = {\n createContainer: createContainer\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar ReactRelayContext = require('./ReactRelayContext');\nvar ReactRelayQueryFetcher = require('./ReactRelayQueryFetcher');\nvar ReactRelayQueryRendererContext = require('./ReactRelayQueryRendererContext');\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar React = require('react');\nvar _require = require('relay-runtime'),\n createOperationDescriptor = _require.createOperationDescriptor,\n deepFreeze = _require.deepFreeze,\n getRequest = _require.getRequest;\nvar requestCache = {};\nvar queryRendererContext = {\n rootIsQueryRenderer: true\n};\nvar ReactRelayQueryRenderer = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(ReactRelayQueryRenderer, _React$Component);\n function ReactRelayQueryRenderer(props) {\n var _this;\n _this = _React$Component.call(this, props) || this;\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_handleDataChange\", function (params) {\n var error = params.error == null ? null : params.error;\n var snapshot = params.snapshot == null ? null : params.snapshot;\n _this.setState(function (prevState) {\n var prevRequestCacheKey = prevState.requestCacheKey;\n if (prevRequestCacheKey) {\n delete requestCache[prevRequestCacheKey];\n }\n if (snapshot === prevState.snapshot && error === prevState.error) {\n return null;\n }\n return {\n renderProps: getRenderProps(error, snapshot, prevState.queryFetcher, prevState.retryCallbacks),\n snapshot: snapshot,\n requestCacheKey: null\n };\n });\n });\n var retryCallbacks = {\n handleDataChange: null,\n handleRetryAfterError: null\n };\n var queryFetcher;\n var requestCacheKey;\n if (props.query) {\n var query = props.query;\n var request = getRequest(query);\n requestCacheKey = getRequestCacheKey(request.params, props.variables);\n queryFetcher = requestCache[requestCacheKey] ? requestCache[requestCacheKey].queryFetcher : new ReactRelayQueryFetcher();\n } else {\n queryFetcher = new ReactRelayQueryFetcher();\n }\n _this._maybeHiddenOrFastRefresh = false;\n _this.state = (0, _objectSpread2[\"default\"])({\n prevPropsEnvironment: props.environment,\n prevPropsVariables: props.variables,\n prevQuery: props.query,\n queryFetcher: queryFetcher,\n retryCallbacks: retryCallbacks\n }, fetchQueryAndComputeStateFromProps(props, queryFetcher, retryCallbacks, requestCacheKey));\n return _this;\n }\n ReactRelayQueryRenderer.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n if (prevState.prevQuery !== nextProps.query || prevState.prevPropsEnvironment !== nextProps.environment || !areEqual(prevState.prevPropsVariables, nextProps.variables)) {\n return resetQueryStateForUpdate(nextProps, prevState);\n }\n return null;\n };\n var _proto = ReactRelayQueryRenderer.prototype;\n _proto.componentDidMount = function componentDidMount() {\n var _this2 = this;\n if (this._maybeHiddenOrFastRefresh === true) {\n this._maybeHiddenOrFastRefresh = false;\n this.setState(function (prevState) {\n var newState = resetQueryStateForUpdate(_this2.props, prevState);\n var requestCacheKey = newState.requestCacheKey,\n queryFetcher = newState.queryFetcher;\n if (requestCacheKey != null && requestCache[requestCacheKey] != null) {\n queryFetcher.setOnDataChange(_this2._handleDataChange);\n }\n return newState;\n });\n return;\n }\n var _this$state = this.state,\n retryCallbacks = _this$state.retryCallbacks,\n queryFetcher = _this$state.queryFetcher,\n requestCacheKey = _this$state.requestCacheKey;\n if (requestCacheKey) {\n delete requestCache[requestCacheKey];\n }\n retryCallbacks.handleDataChange = this._handleDataChange;\n retryCallbacks.handleRetryAfterError = function (error) {\n return _this2.setState(function (prevState) {\n var prevRequestCacheKey = prevState.requestCacheKey;\n if (prevRequestCacheKey) {\n delete requestCache[prevRequestCacheKey];\n }\n return {\n renderProps: getLoadingRenderProps(),\n requestCacheKey: null\n };\n });\n };\n if (this.props.query) {\n queryFetcher.setOnDataChange(this._handleDataChange);\n }\n };\n _proto.componentDidUpdate = function componentDidUpdate(_prevProps, prevState) {\n var _this$state2 = this.state,\n queryFetcher = _this$state2.queryFetcher,\n requestCacheKey = _this$state2.requestCacheKey;\n if (requestCacheKey) {\n delete requestCache[requestCacheKey];\n delete this.state.requestCacheKey;\n }\n if (this.props.query && queryFetcher !== prevState.queryFetcher) {\n queryFetcher.setOnDataChange(this._handleDataChange);\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.state.queryFetcher.dispose();\n this._maybeHiddenOrFastRefresh = true;\n };\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n return nextProps.render !== this.props.render || nextState.renderProps !== this.state.renderProps;\n };\n _proto.render = function render() {\n var _this$state3 = this.state,\n renderProps = _this$state3.renderProps,\n relayContext = _this$state3.relayContext;\n if (process.env.NODE_ENV !== \"production\") {\n deepFreeze(renderProps);\n }\n return /*#__PURE__*/React.createElement(ReactRelayContext.Provider, {\n value: relayContext\n }, /*#__PURE__*/React.createElement(ReactRelayQueryRendererContext.Provider, {\n value: queryRendererContext\n }, this.props.render(renderProps)));\n };\n return ReactRelayQueryRenderer;\n}(React.Component);\nfunction getLoadingRenderProps() {\n return {\n error: null,\n props: null,\n retry: null\n };\n}\nfunction getEmptyRenderProps() {\n return {\n error: null,\n props: {},\n retry: null\n };\n}\nfunction getRenderProps(error, snapshot, queryFetcher, retryCallbacks) {\n return {\n error: error ? error : null,\n props: snapshot ? snapshot.data : null,\n retry: function retry(cacheConfigOverride) {\n var syncSnapshot = queryFetcher.retry(cacheConfigOverride);\n if (syncSnapshot && typeof retryCallbacks.handleDataChange === 'function') {\n retryCallbacks.handleDataChange({\n snapshot: syncSnapshot\n });\n } else if (error && typeof retryCallbacks.handleRetryAfterError === 'function') {\n retryCallbacks.handleRetryAfterError(error);\n }\n }\n };\n}\nfunction getRequestCacheKey(request, variables) {\n return JSON.stringify({\n id: request.cacheID ? request.cacheID : request.id,\n variables: variables\n });\n}\nfunction resetQueryStateForUpdate(props, prevState) {\n var query = props.query;\n var prevSelectionReferences = prevState.queryFetcher.getSelectionReferences();\n prevState.queryFetcher.disposeRequest();\n var queryFetcher;\n if (query) {\n var request = getRequest(query);\n var requestCacheKey = getRequestCacheKey(request.params, props.variables);\n queryFetcher = requestCache[requestCacheKey] ? requestCache[requestCacheKey].queryFetcher : new ReactRelayQueryFetcher(prevSelectionReferences);\n } else {\n queryFetcher = new ReactRelayQueryFetcher(prevSelectionReferences);\n }\n return (0, _objectSpread2[\"default\"])({\n prevQuery: props.query,\n prevPropsEnvironment: props.environment,\n prevPropsVariables: props.variables,\n queryFetcher: queryFetcher\n }, fetchQueryAndComputeStateFromProps(props, queryFetcher, prevState.retryCallbacks));\n}\nfunction fetchQueryAndComputeStateFromProps(props, queryFetcher, retryCallbacks, requestCacheKey) {\n var environment = props.environment,\n query = props.query,\n variables = props.variables,\n cacheConfig = props.cacheConfig;\n var genericEnvironment = environment;\n if (query) {\n var request = getRequest(query);\n var operation = createOperationDescriptor(request, variables, cacheConfig);\n var relayContext = {\n environment: genericEnvironment\n };\n if (typeof requestCacheKey === 'string' && requestCache[requestCacheKey]) {\n var snapshot = requestCache[requestCacheKey].snapshot;\n if (snapshot) {\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getRenderProps(null, snapshot, queryFetcher, retryCallbacks),\n snapshot: snapshot,\n requestCacheKey: requestCacheKey\n };\n } else {\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getLoadingRenderProps(),\n snapshot: null,\n requestCacheKey: requestCacheKey\n };\n }\n }\n try {\n var storeSnapshot = queryFetcher.lookupInStore(genericEnvironment, operation, props.fetchPolicy);\n var querySnapshot = queryFetcher.fetch({\n environment: genericEnvironment,\n onDataChange: null,\n operation: operation\n });\n var _snapshot = querySnapshot || storeSnapshot;\n requestCacheKey = requestCacheKey || getRequestCacheKey(request.params, props.variables);\n requestCache[requestCacheKey] = {\n queryFetcher: queryFetcher,\n snapshot: _snapshot\n };\n if (!_snapshot) {\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getLoadingRenderProps(),\n snapshot: null,\n requestCacheKey: requestCacheKey\n };\n }\n return {\n error: null,\n relayContext: relayContext,\n renderProps: getRenderProps(null, _snapshot, queryFetcher, retryCallbacks),\n snapshot: _snapshot,\n requestCacheKey: requestCacheKey\n };\n } catch (error) {\n return {\n error: error,\n relayContext: relayContext,\n renderProps: getRenderProps(error, null, queryFetcher, retryCallbacks),\n snapshot: null,\n requestCacheKey: requestCacheKey\n };\n }\n } else {\n queryFetcher.dispose();\n var _relayContext = {\n environment: genericEnvironment\n };\n return {\n error: null,\n relayContext: _relayContext,\n renderProps: getEmptyRenderProps(),\n requestCacheKey: null\n };\n }\n}\nmodule.exports = ReactRelayQueryRenderer;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _excluded = [\"componentRef\", \"__relayContext\", \"__rootIsQueryRenderer\"];\nvar buildReactRelayContainer = require('./buildReactRelayContainer');\nvar getRootVariablesForFragments = require('./getRootVariablesForFragments');\nvar _require = require('./ReactRelayContainerUtils'),\n getContainerName = _require.getContainerName;\nvar ReactRelayContext = require('./ReactRelayContext');\nvar ReactRelayQueryFetcher = require('./ReactRelayQueryFetcher');\nvar _require2 = require('./RelayContext'),\n assertRelayContext = _require2.assertRelayContext;\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar React = require('react');\nvar _require3 = require('relay-runtime'),\n Observable = _require3.Observable,\n createFragmentSpecResolver = _require3.createFragmentSpecResolver,\n createOperationDescriptor = _require3.createOperationDescriptor,\n getDataIDsFromObject = _require3.getDataIDsFromObject,\n getRequest = _require3.getRequest,\n getVariablesFromObject = _require3.getVariablesFromObject,\n isScalarAndEqual = _require3.isScalarAndEqual;\nvar warning = require(\"fbjs/lib/warning\");\nfunction createContainerWithFragments(Component, fragments, taggedNode) {\n var _class;\n var containerName = getContainerName(Component);\n return _class = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2[\"default\"])(_class, _React$Component);\n function _class(props) {\n var _props$__rootIsQueryR, _this;\n _this = _React$Component.call(this, props) || this;\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_handleFragmentDataUpdate\", function () {\n var resolverFromThisUpdate = _this.state.resolver;\n _this.setState(function (updatedState) {\n return resolverFromThisUpdate === updatedState.resolver ? {\n data: updatedState.resolver.resolve()\n } : null;\n });\n });\n (0, _defineProperty2[\"default\"])((0, _assertThisInitialized2[\"default\"])(_this), \"_refetch\", function (refetchVariables, renderVariables, observerOrCallback, options) {\n if (_this._isUnmounted) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'ReactRelayRefetchContainer: Unexpected call of `refetch` ' + 'on unmounted container `%s`. It looks like some instances ' + 'of your container still trying to refetch the data but they already ' + 'unmounted. Please make sure you clear all timers, intervals, async ' + 'calls, etc that may trigger `refetch`.', containerName) : void 0;\n return {\n dispose: function dispose() {}\n };\n }\n var _assertRelayContext = assertRelayContext(_this.props.__relayContext),\n environment = _assertRelayContext.environment;\n var rootVariables = getRootVariablesForFragments(fragments, _this.props);\n var fetchVariables = typeof refetchVariables === 'function' ? refetchVariables(_this._getFragmentVariables()) : refetchVariables;\n fetchVariables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, rootVariables), fetchVariables);\n var fragmentVariables = renderVariables ? (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, fetchVariables), renderVariables) : fetchVariables;\n var cacheConfig = options ? {\n force: !!options.force\n } : undefined;\n if (cacheConfig != null && (options === null || options === void 0 ? void 0 : options.metadata) != null) {\n cacheConfig.metadata = options === null || options === void 0 ? void 0 : options.metadata;\n }\n var observer = typeof observerOrCallback === 'function' ? {\n next: observerOrCallback,\n error: observerOrCallback\n } : observerOrCallback || {};\n var query = getRequest(taggedNode);\n var operation = createOperationDescriptor(query, fetchVariables, cacheConfig);\n _this.state.localVariables = fetchVariables;\n _this._refetchSubscription && _this._refetchSubscription.unsubscribe();\n var refetchSubscription;\n var storeSnapshot = _this._getQueryFetcher().lookupInStore(environment, operation, options === null || options === void 0 ? void 0 : options.fetchPolicy);\n if (storeSnapshot != null) {\n _this.state.resolver.setVariables(fragmentVariables, operation.request.node);\n _this.setState(function (latestState) {\n return {\n data: latestState.resolver.resolve(),\n contextForChildren: {\n environment: _this.props.__relayContext.environment\n }\n };\n }, function () {\n observer.next && observer.next();\n observer.complete && observer.complete();\n });\n return {\n dispose: function dispose() {}\n };\n }\n _this._getQueryFetcher().execute({\n environment: environment,\n operation: operation,\n preservePreviousReferences: true\n }).mergeMap(function (response) {\n _this.state.resolver.setVariables(fragmentVariables, operation.request.node);\n return Observable.create(function (sink) {\n return _this.setState(function (latestState) {\n return {\n data: latestState.resolver.resolve(),\n contextForChildren: {\n environment: _this.props.__relayContext.environment\n }\n };\n }, function () {\n sink.next();\n sink.complete();\n });\n });\n })[\"finally\"](function () {\n if (_this._refetchSubscription === refetchSubscription) {\n _this._refetchSubscription = null;\n }\n }).subscribe((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, observer), {}, {\n start: function start(subscription) {\n _this._refetchSubscription = refetchSubscription = subscription;\n observer.start && observer.start(subscription);\n }\n }));\n return {\n dispose: function dispose() {\n refetchSubscription && refetchSubscription.unsubscribe();\n }\n };\n });\n var relayContext = assertRelayContext(props.__relayContext);\n var rootIsQueryRenderer = (_props$__rootIsQueryR = props.__rootIsQueryRenderer) !== null && _props$__rootIsQueryR !== void 0 ? _props$__rootIsQueryR : false;\n _this._refetchSubscription = null;\n var resolver = createFragmentSpecResolver(relayContext, containerName, fragments, props, rootIsQueryRenderer);\n _this.state = {\n data: resolver.resolve(),\n localVariables: null,\n prevProps: props,\n prevPropsContext: relayContext,\n contextForChildren: relayContext,\n relayProp: getRelayProp(relayContext.environment, _this._refetch),\n resolver: resolver\n };\n _this._isUnmounted = false;\n return _this;\n }\n var _proto = _class.prototype;\n _proto.componentDidMount = function componentDidMount() {\n this._isUnmounted = false;\n this._subscribeToNewResolverAndRerenderIfStoreHasChanged();\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n if (this.state.resolver !== prevState.resolver) {\n prevState.resolver.dispose();\n this._queryFetcher && this._queryFetcher.dispose();\n this._refetchSubscription && this._refetchSubscription.unsubscribe();\n this._subscribeToNewResolverAndRerenderIfStoreHasChanged();\n } else {\n this._rerenderIfStoreHasChanged();\n }\n };\n _class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n var _nextProps$__rootIsQu;\n var prevProps = prevState.prevProps;\n var relayContext = assertRelayContext(nextProps.__relayContext);\n var rootIsQueryRenderer = (_nextProps$__rootIsQu = nextProps.__rootIsQueryRenderer) !== null && _nextProps$__rootIsQu !== void 0 ? _nextProps$__rootIsQu : false;\n var prevIDs = getDataIDsFromObject(fragments, prevProps);\n var nextIDs = getDataIDsFromObject(fragments, nextProps);\n var prevRootVariables = getRootVariablesForFragments(fragments, prevProps);\n var nextRootVariables = getRootVariablesForFragments(fragments, nextProps);\n var resolver = prevState.resolver;\n if (prevState.prevPropsContext.environment !== relayContext.environment || !areEqual(prevRootVariables, nextRootVariables) || !areEqual(prevIDs, nextIDs)) {\n resolver = createFragmentSpecResolver(relayContext, containerName, fragments, nextProps, rootIsQueryRenderer);\n return {\n data: resolver.resolve(),\n localVariables: null,\n prevProps: nextProps,\n prevPropsContext: relayContext,\n contextForChildren: relayContext,\n relayProp: getRelayProp(relayContext.environment, prevState.relayProp.refetch),\n resolver: resolver\n };\n } else if (!prevState.localVariables) {\n resolver.setProps(nextProps);\n }\n var data = resolver.resolve();\n if (data !== prevState.data) {\n return {\n data: data,\n prevProps: nextProps\n };\n }\n return null;\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isUnmounted = true;\n this.state.resolver.dispose();\n this._queryFetcher && this._queryFetcher.dispose();\n this._refetchSubscription && this._refetchSubscription.unsubscribe();\n };\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n if (nextState.data !== this.state.data || nextState.relayProp !== this.state.relayProp) {\n return true;\n }\n var keys = Object.keys(nextProps);\n for (var ii = 0; ii < keys.length; ii++) {\n var key = keys[ii];\n if (key === '__relayContext') {\n if (this.state.prevPropsContext.environment !== nextState.prevPropsContext.environment) {\n return true;\n }\n } else {\n if (!fragments.hasOwnProperty(key) && !isScalarAndEqual(nextProps[key], this.props[key])) {\n return true;\n }\n }\n }\n return false;\n };\n _proto._rerenderIfStoreHasChanged = function _rerenderIfStoreHasChanged() {\n var _this$state = this.state,\n data = _this$state.data,\n resolver = _this$state.resolver;\n var maybeNewData = resolver.resolve();\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n };\n _proto._subscribeToNewResolverAndRerenderIfStoreHasChanged = function _subscribeToNewResolverAndRerenderIfStoreHasChanged() {\n var _this$state2 = this.state,\n data = _this$state2.data,\n resolver = _this$state2.resolver;\n var maybeNewData = resolver.resolve();\n resolver.setCallback(this.props, this._handleFragmentDataUpdate);\n if (data !== maybeNewData) {\n this.setState({\n data: maybeNewData\n });\n }\n };\n _proto._getFragmentVariables = function _getFragmentVariables() {\n return getVariablesFromObject(fragments, this.props);\n };\n _proto._getQueryFetcher = function _getQueryFetcher() {\n if (!this._queryFetcher) {\n this._queryFetcher = new ReactRelayQueryFetcher();\n }\n return this._queryFetcher;\n };\n _proto.render = function render() {\n var _this$props = this.props,\n componentRef = _this$props.componentRef,\n __relayContext = _this$props.__relayContext,\n __rootIsQueryRenderer = _this$props.__rootIsQueryRenderer,\n props = (0, _objectWithoutPropertiesLoose2[\"default\"])(_this$props, _excluded);\n var _this$state3 = this.state,\n relayProp = _this$state3.relayProp,\n contextForChildren = _this$state3.contextForChildren;\n return /*#__PURE__*/React.createElement(ReactRelayContext.Provider, {\n value: contextForChildren\n }, /*#__PURE__*/React.createElement(Component, (0, _extends2[\"default\"])({}, props, this.state.data, {\n ref: componentRef,\n relay: relayProp\n })));\n };\n return _class;\n }(React.Component), (0, _defineProperty2[\"default\"])(_class, \"displayName\", containerName), _class;\n}\nfunction getRelayProp(environment, refetch) {\n return {\n environment: environment,\n refetch: refetch\n };\n}\nfunction createContainer(Component, fragmentSpec, taggedNode) {\n return buildReactRelayContainer(Component, fragmentSpec, function (ComponentClass, fragments) {\n return createContainerWithFragments(ComponentClass, fragments, taggedNode);\n });\n}\nmodule.exports = {\n createContainer: createContainer\n};","'use strict';\n\nvar React = require('react');\nvar ProfilerContext = React.createContext({\n wrapPrepareQueryResource: function wrapPrepareQueryResource(cb) {\n return cb();\n }\n});\nmodule.exports = ProfilerContext;","'use strict';\n\nvar ReactRelayContext = require('./../ReactRelayContext');\nvar invariant = require('invariant');\nvar _require = require('react'),\n useContext = _require.useContext;\nfunction useRelayEnvironment() {\n var context = useContext(ReactRelayContext);\n !(context != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'useRelayEnvironment: Expected to have found a Relay environment provided by ' + 'a `RelayEnvironmentProvider` component. ' + 'This usually means that useRelayEnvironment was used in a ' + 'component that is not a descendant of a `RelayEnvironmentProvider`. ' + 'Please make sure a `RelayEnvironmentProvider` has been rendered somewhere ' + 'as a parent or ancestor of your component.') : invariant(false) : void 0;\n return context.environment;\n}\nmodule.exports = useRelayEnvironment;","'use strict';\n\nvar ProfilerContext = require('./ProfilerContext');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar React = require('react');\nvar _require = require('react'),\n useContext = _require.useContext,\n useEffect = _require.useEffect;\nvar warning = require(\"fbjs/lib/warning\");\nfunction EntryPointContainer(_ref) {\n var entryPointReference = _ref.entryPointReference,\n props = _ref.props;\n process.env.NODE_ENV !== \"production\" ? warning(entryPointReference.isDisposed === false, ': Expected entryPointReference to not be disposed ' + 'yet. This is because disposing the entrypoint marks it for future garbage ' + 'collection, and as such may no longer be present in the Relay store. ' + 'In the future, this will become a hard error.') : void 0;\n var getComponent = entryPointReference.getComponent,\n queries = entryPointReference.queries,\n entryPoints = entryPointReference.entryPoints,\n extraProps = entryPointReference.extraProps,\n rootModuleID = entryPointReference.rootModuleID;\n var Component = getComponent();\n var profilerContext = useContext(ProfilerContext);\n var environment = useRelayEnvironment();\n useEffect(function () {\n environment.__log({\n name: 'entrypoint.root.consume',\n profilerContext: profilerContext,\n rootModuleID: rootModuleID\n });\n }, [environment, profilerContext, rootModuleID]);\n return /*#__PURE__*/React.createElement(Component, {\n entryPoints: entryPoints,\n extraProps: extraProps,\n props: props,\n queries: queries\n });\n}\nmodule.exports = EntryPointContainer;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar invariant = require('invariant');\nvar _require = require('relay-runtime'),\n fetchQueryDeduped = _require.__internal.fetchQueryDeduped,\n Observable = _require.Observable,\n PreloadableQueryRegistry = _require.PreloadableQueryRegistry,\n ReplaySubject = _require.ReplaySubject,\n createOperationDescriptor = _require.createOperationDescriptor,\n getRequest = _require.getRequest,\n getRequestIdentifier = _require.getRequestIdentifier;\nvar fetchKey = 100001;\nfunction loadQuery(environment, preloadableRequest, variables, options, environmentProviderOptions) {\n var _options$fetchPolicy;\n fetchKey++;\n var fetchPolicy = (_options$fetchPolicy = options === null || options === void 0 ? void 0 : options.fetchPolicy) !== null && _options$fetchPolicy !== void 0 ? _options$fetchPolicy : 'store-or-network';\n var networkCacheConfig = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, options === null || options === void 0 ? void 0 : options.networkCacheConfig), {}, {\n force: true\n });\n var retainReference;\n var didExecuteNetworkSource = false;\n var executeWithNetworkSource = function executeWithNetworkSource(operation, networkObservable) {\n didExecuteNetworkSource = true;\n return environment.executeWithSource({\n operation: operation,\n source: networkObservable\n });\n };\n var executionSubject = new ReplaySubject();\n var returnedObservable = Observable.create(function (sink) {\n return executionSubject.subscribe(sink);\n });\n var unsubscribeFromNetworkRequest;\n var networkError = null;\n var didMakeNetworkRequest = false;\n var makeNetworkRequest = function makeNetworkRequest(params) {\n didMakeNetworkRequest = true;\n var subject = new ReplaySubject();\n var identifier = 'raw-network-request-' + getRequestIdentifier(params, variables);\n var observable = fetchQueryDeduped(environment, identifier, function () {\n var network = environment.getNetwork();\n return network.execute(params, variables, networkCacheConfig);\n });\n var _observable$subscribe = observable.subscribe({\n error: function error(err) {\n networkError = err;\n subject.error(err);\n },\n next: function next(data) {\n subject.next(data);\n },\n complete: function complete() {\n subject.complete();\n }\n }),\n unsubscribe = _observable$subscribe.unsubscribe;\n unsubscribeFromNetworkRequest = unsubscribe;\n return Observable.create(function (sink) {\n var subjectSubscription = subject.subscribe(sink);\n return function () {\n subjectSubscription.unsubscribe();\n unsubscribeFromNetworkRequest();\n };\n });\n };\n var unsubscribeFromExecution;\n var executeDeduped = function executeDeduped(operation, fetchFn) {\n didMakeNetworkRequest = true;\n var _fetchQueryDeduped$su = fetchQueryDeduped(environment, operation.request.identifier, fetchFn).subscribe({\n error: function error(err) {\n executionSubject.error(err);\n },\n next: function next(data) {\n executionSubject.next(data);\n },\n complete: function complete() {\n executionSubject.complete();\n }\n });\n unsubscribeFromExecution = _fetchQueryDeduped$su.unsubscribe;\n };\n var checkAvailabilityAndExecute = function checkAvailabilityAndExecute(concreteRequest) {\n var operation = createOperationDescriptor(concreteRequest, variables, networkCacheConfig);\n retainReference = environment.retain(operation);\n if (fetchPolicy === 'store-only') {\n return;\n }\n var shouldFetch = fetchPolicy !== 'store-or-network' || environment.check(operation).status !== 'available';\n if (shouldFetch) {\n executeDeduped(operation, function () {\n var networkObservable = makeNetworkRequest(concreteRequest.params);\n var executeObservable = executeWithNetworkSource(operation, networkObservable);\n return executeObservable;\n });\n }\n };\n var params;\n var cancelOnLoadCallback;\n var queryId;\n if (preloadableRequest.kind === 'PreloadableConcreteRequest') {\n var preloadableConcreteRequest = preloadableRequest;\n params = preloadableConcreteRequest.params;\n var _params = params;\n queryId = _params.id;\n !(queryId !== null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id', params.name) : invariant(false) : void 0;\n var _module = PreloadableQueryRegistry.get(queryId);\n if (_module != null) {\n checkAvailabilityAndExecute(_module);\n } else {\n var networkObservable = fetchPolicy === 'store-only' ? null : makeNetworkRequest(params);\n var _PreloadableQueryRegi = PreloadableQueryRegistry.onLoad(queryId, function (preloadedModule) {\n cancelOnLoadCallback();\n var operation = createOperationDescriptor(preloadedModule, variables, networkCacheConfig);\n retainReference = environment.retain(operation);\n if (networkObservable != null) {\n executeDeduped(operation, function () {\n return executeWithNetworkSource(operation, networkObservable);\n });\n }\n });\n cancelOnLoadCallback = _PreloadableQueryRegi.dispose;\n }\n } else {\n var graphQlTaggedNode = preloadableRequest;\n var request = getRequest(graphQlTaggedNode);\n params = request.params;\n queryId = params.cacheID != null ? params.cacheID : params.id;\n checkAvailabilityAndExecute(request);\n }\n var isDisposed = false;\n var isReleased = false;\n var isNetworkRequestCancelled = false;\n var releaseQuery = function releaseQuery() {\n if (isReleased) {\n return;\n }\n retainReference && retainReference.dispose();\n isReleased = true;\n };\n var cancelNetworkRequest = function cancelNetworkRequest() {\n if (isNetworkRequestCancelled) {\n return;\n }\n if (didExecuteNetworkSource) {\n unsubscribeFromExecution && unsubscribeFromExecution();\n } else {\n unsubscribeFromNetworkRequest && unsubscribeFromNetworkRequest();\n }\n cancelOnLoadCallback && cancelOnLoadCallback();\n isNetworkRequestCancelled = true;\n };\n return {\n kind: 'PreloadedQuery',\n environment: environment,\n environmentProviderOptions: environmentProviderOptions,\n dispose: function dispose() {\n if (isDisposed) {\n return;\n }\n releaseQuery();\n cancelNetworkRequest();\n isDisposed = true;\n },\n releaseQuery: releaseQuery,\n cancelNetworkRequest: cancelNetworkRequest,\n fetchKey: fetchKey,\n id: queryId,\n get isDisposed() {\n return isDisposed || isReleased;\n },\n get networkError() {\n return networkError;\n },\n name: params.name,\n networkCacheConfig: networkCacheConfig,\n fetchPolicy: fetchPolicy,\n source: didMakeNetworkRequest ? returnedObservable : undefined,\n variables: variables\n };\n}\nmodule.exports = {\n loadQuery: loadQuery\n};","'use strict';\n\nvar _require = require('./loadQuery'),\n loadQuery = _require.loadQuery;\nfunction loadEntryPoint(environmentProvider, entryPoint, entryPointParams) {\n var loadingPromise = null;\n if (entryPoint.root.getModuleIfRequired() == null) {\n loadingPromise = entryPoint.root.load();\n }\n var preloadProps = entryPoint.getPreloadProps(entryPointParams);\n var queries = preloadProps.queries,\n entryPoints = preloadProps.entryPoints,\n extraProps = preloadProps.extraProps;\n var preloadedQueries = {};\n var preloadedEntryPoints = {};\n if (queries != null) {\n var queriesPropNames = Object.keys(queries);\n queriesPropNames.forEach(function (queryPropName) {\n var query = queries[queryPropName];\n if (query == null) {\n return;\n }\n var environmentProviderOptions = query.environmentProviderOptions,\n options = query.options,\n parameters = query.parameters,\n variables = query.variables;\n var environment = environmentProvider.getEnvironment(environmentProviderOptions);\n preloadedQueries[queryPropName] = loadQuery(environment, parameters, variables, {\n fetchPolicy: options === null || options === void 0 ? void 0 : options.fetchPolicy,\n networkCacheConfig: options === null || options === void 0 ? void 0 : options.networkCacheConfig,\n __nameForWarning: 'loadEntryPoint'\n }, environmentProviderOptions);\n });\n }\n if (entryPoints != null) {\n var entryPointPropNames = Object.keys(entryPoints);\n entryPointPropNames.forEach(function (entryPointPropName) {\n var entryPointDescription = entryPoints[entryPointPropName];\n if (entryPointDescription == null) {\n return;\n }\n var nestedEntryPoint = entryPointDescription.entryPoint,\n nestedParams = entryPointDescription.entryPointParams;\n preloadedEntryPoints[entryPointPropName] = loadEntryPoint(environmentProvider, nestedEntryPoint, nestedParams);\n });\n }\n var isDisposed = false;\n return {\n dispose: function dispose() {\n if (isDisposed) {\n return;\n }\n if (preloadedQueries != null) {\n Object.values(preloadedQueries).forEach(function (_ref) {\n var innerDispose = _ref.dispose;\n innerDispose();\n });\n }\n if (preloadedEntryPoints != null) {\n Object.values(preloadedEntryPoints).forEach(function (_ref2) {\n var innerDispose = _ref2.dispose;\n innerDispose();\n });\n }\n isDisposed = true;\n },\n entryPoints: preloadedEntryPoints,\n extraProps: extraProps !== null && extraProps !== void 0 ? extraProps : null,\n getComponent: function getComponent() {\n var componentModule = entryPoint.root.getModuleIfRequired();\n if (componentModule == null) {\n var _loadingPromise;\n loadingPromise = (_loadingPromise = loadingPromise) !== null && _loadingPromise !== void 0 ? _loadingPromise : entryPoint.root.load();\n throw loadingPromise;\n }\n var component = componentModule[\"default\"] != null ? componentModule[\"default\"] : componentModule;\n return component;\n },\n get isDisposed() {\n return isDisposed;\n },\n queries: preloadedQueries,\n rootModuleID: entryPoint.root.getModuleId()\n };\n}\nmodule.exports = loadEntryPoint;","'use strict';\n\nvar ReactRelayContext = require('./../ReactRelayContext');\nvar React = require('react');\nvar useMemo = React.useMemo;\nfunction RelayEnvironmentProvider(props) {\n var children = props.children,\n environment = props.environment,\n getEnvironmentForActor = props.getEnvironmentForActor;\n var context = useMemo(function () {\n return {\n environment: environment,\n getEnvironmentForActor: getEnvironmentForActor\n };\n }, [environment, getEnvironmentForActor]);\n return /*#__PURE__*/React.createElement(ReactRelayContext.Provider, {\n value: context\n }, children);\n}\nmodule.exports = RelayEnvironmentProvider;","'use strict';\n\nvar invariant = require('invariant');\nvar LRUCache = /*#__PURE__*/function () {\n function LRUCache(capacity) {\n this._capacity = capacity;\n !(this._capacity > 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'LRUCache: Unable to create instance of cache with zero or negative capacity.') : invariant(false) : void 0;\n this._map = new Map();\n }\n var _proto = LRUCache.prototype;\n _proto.set = function set(key, value) {\n this._map[\"delete\"](key);\n this._map.set(key, value);\n if (this._map.size > this._capacity) {\n var firstKey = this._map.keys().next();\n if (!firstKey.done) {\n this._map[\"delete\"](firstKey.value);\n }\n }\n };\n _proto.get = function get(key) {\n var value = this._map.get(key);\n if (value != null) {\n this._map[\"delete\"](key);\n this._map.set(key, value);\n }\n return value;\n };\n _proto.has = function has(key) {\n return this._map.has(key);\n };\n _proto[\"delete\"] = function _delete(key) {\n this._map[\"delete\"](key);\n };\n _proto.size = function size() {\n return this._map.size;\n };\n _proto.capacity = function capacity() {\n return this._capacity - this._map.size;\n };\n _proto.clear = function clear() {\n this._map.clear();\n };\n return LRUCache;\n}();\nfunction create(capacity) {\n return new LRUCache(capacity);\n}\nmodule.exports = {\n create: create\n};","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar warning = require(\"fbjs/lib/warning\");\nvar TEMPORARY_RETAIN_DURATION_MS = 5 * 60 * 1000;\nvar SuspenseResource = /*#__PURE__*/function () {\n function SuspenseResource(retain) {\n var _this = this;\n (0, _defineProperty2[\"default\"])(this, \"_retainCount\", 0);\n (0, _defineProperty2[\"default\"])(this, \"_retainDisposable\", null);\n (0, _defineProperty2[\"default\"])(this, \"_releaseTemporaryRetain\", null);\n this._retain = function (environment) {\n _this._retainCount++;\n if (_this._retainCount === 1) {\n _this._retainDisposable = retain(environment);\n }\n return {\n dispose: function dispose() {\n _this._retainCount = Math.max(0, _this._retainCount - 1);\n if (_this._retainCount === 0) {\n if (_this._retainDisposable != null) {\n _this._retainDisposable.dispose();\n _this._retainDisposable = null;\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Expected disposable to release query to be defined.' + \"If you're seeing this, this is likely a bug in Relay.\") : void 0;\n }\n }\n }\n };\n };\n }\n var _proto = SuspenseResource.prototype;\n _proto.temporaryRetain = function temporaryRetain(environment) {\n var _this2 = this;\n var _this$_releaseTempora;\n if (environment.isServer()) {\n return {\n dispose: function dispose() {}\n };\n }\n var retention = this._retain(environment);\n var releaseQueryTimeout = null;\n var releaseTemporaryRetain = function releaseTemporaryRetain() {\n clearTimeout(releaseQueryTimeout);\n releaseQueryTimeout = null;\n _this2._releaseTemporaryRetain = null;\n retention.dispose();\n };\n releaseQueryTimeout = setTimeout(releaseTemporaryRetain, TEMPORARY_RETAIN_DURATION_MS);\n (_this$_releaseTempora = this._releaseTemporaryRetain) === null || _this$_releaseTempora === void 0 ? void 0 : _this$_releaseTempora.call(this);\n this._releaseTemporaryRetain = releaseTemporaryRetain;\n return {\n dispose: function dispose() {\n var _this$_releaseTempora2;\n (_this$_releaseTempora2 = _this2._releaseTemporaryRetain) === null || _this$_releaseTempora2 === void 0 ? void 0 : _this$_releaseTempora2.call(_this2);\n }\n };\n };\n _proto.permanentRetain = function permanentRetain(environment) {\n var disposable = this._retain(environment);\n this.releaseTemporaryRetain();\n return disposable;\n };\n _proto.releaseTemporaryRetain = function releaseTemporaryRetain() {\n var _this$_releaseTempora3;\n (_this$_releaseTempora3 = this._releaseTemporaryRetain) === null || _this$_releaseTempora3 === void 0 ? void 0 : _this$_releaseTempora3.call(this);\n this._releaseTemporaryRetain = null;\n };\n _proto.getRetainCount = function getRetainCount() {\n return this._retainCount;\n };\n return SuspenseResource;\n}();\nmodule.exports = SuspenseResource;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar LRUCache = require('./LRUCache');\nvar SuspenseResource = require('./SuspenseResource');\nvar invariant = require('invariant');\nvar _require = require('relay-runtime'),\n isPromise = _require.isPromise;\nvar warning = require(\"fbjs/lib/warning\");\nvar CACHE_CAPACITY = 1000;\nvar DEFAULT_FETCH_POLICY = 'store-or-network';\nvar DEFAULT_LIVE_FETCH_POLICY = 'store-and-network';\nvar WEAKMAP_SUPPORTED = typeof WeakMap === 'function';\nfunction operationIsLiveQuery(operation) {\n return operation.request.node.params.metadata.live !== undefined;\n}\nfunction getQueryCacheIdentifier(environment, operation, maybeFetchPolicy, maybeRenderPolicy, cacheBreaker) {\n var fetchPolicy = maybeFetchPolicy !== null && maybeFetchPolicy !== void 0 ? maybeFetchPolicy : operationIsLiveQuery(operation) ? DEFAULT_LIVE_FETCH_POLICY : DEFAULT_FETCH_POLICY;\n var renderPolicy = maybeRenderPolicy !== null && maybeRenderPolicy !== void 0 ? maybeRenderPolicy : environment.UNSTABLE_getDefaultRenderPolicy();\n var cacheIdentifier = \"\".concat(fetchPolicy, \"-\").concat(renderPolicy, \"-\").concat(operation.request.identifier);\n if (cacheBreaker != null) {\n return \"\".concat(cacheIdentifier, \"-\").concat(cacheBreaker);\n }\n return cacheIdentifier;\n}\nfunction getQueryResult(operation, cacheIdentifier) {\n var rootFragmentRef = {\n __id: operation.fragment.dataID,\n __fragments: (0, _defineProperty2[\"default\"])({}, operation.fragment.node.name, operation.request.variables),\n __fragmentOwner: operation.request\n };\n return {\n cacheIdentifier: cacheIdentifier,\n fragmentNode: operation.request.node.fragment,\n fragmentRef: rootFragmentRef,\n operation: operation\n };\n}\nvar nextID = 200000;\nfunction createCacheEntry(cacheIdentifier, operation, operationAvailability, value, networkSubscription, onDispose) {\n var isLiveQuery = operationIsLiveQuery(operation);\n var currentValue = value;\n var currentNetworkSubscription = networkSubscription;\n var suspenseResource = new SuspenseResource(function (environment) {\n var retention = environment.retain(operation);\n return {\n dispose: function dispose() {\n if (isLiveQuery && currentNetworkSubscription != null) {\n currentNetworkSubscription.unsubscribe();\n }\n retention.dispose();\n onDispose(cacheEntry);\n }\n };\n });\n var cacheEntry = {\n cacheIdentifier: cacheIdentifier,\n id: nextID++,\n processedPayloadsCount: 0,\n operationAvailability: operationAvailability,\n getValue: function getValue() {\n return currentValue;\n },\n setValue: function setValue(val) {\n currentValue = val;\n },\n setNetworkSubscription: function setNetworkSubscription(subscription) {\n if (isLiveQuery && currentNetworkSubscription != null) {\n currentNetworkSubscription.unsubscribe();\n }\n currentNetworkSubscription = subscription;\n },\n temporaryRetain: function temporaryRetain(environment) {\n return suspenseResource.temporaryRetain(environment);\n },\n permanentRetain: function permanentRetain(environment) {\n return suspenseResource.permanentRetain(environment);\n },\n releaseTemporaryRetain: function releaseTemporaryRetain() {\n suspenseResource.releaseTemporaryRetain();\n }\n };\n return cacheEntry;\n}\nvar QueryResourceImpl = /*#__PURE__*/function () {\n function QueryResourceImpl(environment) {\n var _this = this;\n (0, _defineProperty2[\"default\"])(this, \"_clearCacheEntry\", function (cacheEntry) {\n _this._cache[\"delete\"](cacheEntry.cacheIdentifier);\n });\n this._environment = environment;\n this._cache = LRUCache.create(CACHE_CAPACITY);\n }\n var _proto = QueryResourceImpl.prototype;\n _proto.prepare = function prepare(operation, fetchObservable, maybeFetchPolicy, maybeRenderPolicy, observer, cacheBreaker, profilerContext) {\n var cacheIdentifier = getQueryCacheIdentifier(this._environment, operation, maybeFetchPolicy, maybeRenderPolicy, cacheBreaker);\n return this.prepareWithIdentifier(cacheIdentifier, operation, fetchObservable, maybeFetchPolicy, maybeRenderPolicy, observer, profilerContext);\n };\n _proto.prepareWithIdentifier = function prepareWithIdentifier(cacheIdentifier, operation, fetchObservable, maybeFetchPolicy, maybeRenderPolicy, observer, profilerContext) {\n var environment = this._environment;\n var fetchPolicy = maybeFetchPolicy !== null && maybeFetchPolicy !== void 0 ? maybeFetchPolicy : operationIsLiveQuery(operation) ? DEFAULT_LIVE_FETCH_POLICY : DEFAULT_FETCH_POLICY;\n var renderPolicy = maybeRenderPolicy !== null && maybeRenderPolicy !== void 0 ? maybeRenderPolicy : environment.UNSTABLE_getDefaultRenderPolicy();\n var cacheEntry = this._cache.get(cacheIdentifier);\n var temporaryRetainDisposable = null;\n var entryWasCached = cacheEntry != null;\n if (cacheEntry == null) {\n cacheEntry = this._fetchAndSaveQuery(cacheIdentifier, operation, fetchObservable, fetchPolicy, renderPolicy, profilerContext, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, observer), {}, {\n unsubscribe: function unsubscribe(subscription) {\n if (temporaryRetainDisposable != null) {\n temporaryRetainDisposable.dispose();\n }\n var observerUnsubscribe = observer === null || observer === void 0 ? void 0 : observer.unsubscribe;\n observerUnsubscribe && observerUnsubscribe(subscription);\n }\n }));\n }\n temporaryRetainDisposable = cacheEntry.temporaryRetain(environment);\n var cachedValue = cacheEntry.getValue();\n if (isPromise(cachedValue)) {\n environment.__log({\n name: 'suspense.query',\n fetchPolicy: fetchPolicy,\n isPromiseCached: entryWasCached,\n operation: operation,\n queryAvailability: cacheEntry.operationAvailability,\n renderPolicy: renderPolicy\n });\n throw cachedValue;\n }\n if (cachedValue instanceof Error) {\n throw cachedValue;\n }\n return cachedValue;\n };\n _proto.retain = function retain(queryResult, profilerContext) {\n var environment = this._environment;\n var cacheIdentifier = queryResult.cacheIdentifier,\n operation = queryResult.operation;\n var cacheEntry = this._getOrCreateCacheEntry(cacheIdentifier, operation, null, queryResult, null);\n var disposable = cacheEntry.permanentRetain(environment);\n environment.__log({\n name: 'queryresource.retain',\n profilerContext: profilerContext,\n resourceID: cacheEntry.id\n });\n return {\n dispose: function dispose() {\n disposable.dispose();\n }\n };\n };\n _proto.releaseTemporaryRetain = function releaseTemporaryRetain(queryResult) {\n var cacheEntry = this._cache.get(queryResult.cacheIdentifier);\n if (cacheEntry != null) {\n cacheEntry.releaseTemporaryRetain();\n }\n };\n _proto.TESTS_ONLY__getCacheEntry = function TESTS_ONLY__getCacheEntry(operation, maybeFetchPolicy, maybeRenderPolicy, cacheBreaker) {\n var environment = this._environment;\n var cacheIdentifier = getQueryCacheIdentifier(environment, operation, maybeFetchPolicy, maybeRenderPolicy, cacheBreaker);\n return this._cache.get(cacheIdentifier);\n };\n _proto._getOrCreateCacheEntry = function _getOrCreateCacheEntry(cacheIdentifier, operation, operationAvailability, value, networkSubscription) {\n var cacheEntry = this._cache.get(cacheIdentifier);\n if (cacheEntry == null) {\n cacheEntry = createCacheEntry(cacheIdentifier, operation, operationAvailability, value, networkSubscription, this._clearCacheEntry);\n this._cache.set(cacheIdentifier, cacheEntry);\n }\n return cacheEntry;\n };\n _proto._fetchAndSaveQuery = function _fetchAndSaveQuery(cacheIdentifier, operation, fetchObservable, fetchPolicy, renderPolicy, profilerContext, observer) {\n var _this2 = this;\n var environment = this._environment;\n var queryAvailability = environment.check(operation);\n var queryStatus = queryAvailability.status;\n var hasFullQuery = queryStatus === 'available';\n var canPartialRender = hasFullQuery || renderPolicy === 'partial' && queryStatus !== 'stale';\n var shouldFetch;\n var shouldAllowRender;\n var resolveNetworkPromise = function resolveNetworkPromise() {};\n switch (fetchPolicy) {\n case 'store-only':\n {\n shouldFetch = false;\n shouldAllowRender = true;\n break;\n }\n case 'store-or-network':\n {\n shouldFetch = !hasFullQuery;\n shouldAllowRender = canPartialRender;\n break;\n }\n case 'store-and-network':\n {\n shouldFetch = true;\n shouldAllowRender = canPartialRender;\n break;\n }\n case 'network-only':\n default:\n {\n shouldFetch = true;\n shouldAllowRender = false;\n break;\n }\n }\n if (shouldAllowRender) {\n var queryResult = getQueryResult(operation, cacheIdentifier);\n var _cacheEntry = createCacheEntry(cacheIdentifier, operation, queryAvailability, queryResult, null, this._clearCacheEntry);\n this._cache.set(cacheIdentifier, _cacheEntry);\n }\n if (shouldFetch) {\n var _queryResult = getQueryResult(operation, cacheIdentifier);\n var networkSubscription;\n fetchObservable.subscribe({\n start: function start(subscription) {\n networkSubscription = subscription;\n var cacheEntry = _this2._cache.get(cacheIdentifier);\n if (cacheEntry) {\n cacheEntry.setNetworkSubscription(networkSubscription);\n }\n var observerStart = observer === null || observer === void 0 ? void 0 : observer.start;\n if (observerStart) {\n var subscriptionWithConditionalCancelation = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, subscription), {}, {\n unsubscribe: function unsubscribe() {\n if (operationIsLiveQuery(operation)) {\n subscription.unsubscribe();\n }\n }\n });\n observerStart(subscriptionWithConditionalCancelation);\n }\n },\n next: function next() {\n var cacheEntry = _this2._getOrCreateCacheEntry(cacheIdentifier, operation, queryAvailability, _queryResult, networkSubscription);\n cacheEntry.processedPayloadsCount += 1;\n cacheEntry.setValue(_queryResult);\n resolveNetworkPromise();\n var observerNext = observer === null || observer === void 0 ? void 0 : observer.next;\n if (observerNext != null) {\n var snapshot = environment.lookup(operation.fragment);\n observerNext(snapshot);\n }\n },\n error: function error(_error) {\n var cacheEntry = _this2._getOrCreateCacheEntry(cacheIdentifier, operation, queryAvailability, _error, networkSubscription);\n if (cacheEntry.processedPayloadsCount === 0) {\n cacheEntry.setValue(_error);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'QueryResource: An incremental payload for query `%s` returned an error: `%s`.', operation.fragment.node.name, String(_error.message)) : void 0;\n }\n resolveNetworkPromise();\n networkSubscription = null;\n cacheEntry.setNetworkSubscription(null);\n var observerError = observer === null || observer === void 0 ? void 0 : observer.error;\n observerError && observerError(_error);\n },\n complete: function complete() {\n resolveNetworkPromise();\n networkSubscription = null;\n var cacheEntry = _this2._cache.get(cacheIdentifier);\n if (cacheEntry) {\n cacheEntry.setNetworkSubscription(null);\n }\n var observerComplete = observer === null || observer === void 0 ? void 0 : observer.complete;\n observerComplete && observerComplete();\n },\n unsubscribe: observer === null || observer === void 0 ? void 0 : observer.unsubscribe\n });\n var _cacheEntry2 = this._cache.get(cacheIdentifier);\n if (!_cacheEntry2) {\n var networkPromise = new Promise(function (resolve) {\n resolveNetworkPromise = resolve;\n });\n networkPromise.displayName = 'Relay(' + operation.fragment.node.name + ')';\n _cacheEntry2 = createCacheEntry(cacheIdentifier, operation, queryAvailability, networkPromise, networkSubscription, this._clearCacheEntry);\n this._cache.set(cacheIdentifier, _cacheEntry2);\n }\n } else {\n var observerComplete = observer === null || observer === void 0 ? void 0 : observer.complete;\n observerComplete && observerComplete();\n }\n var cacheEntry = this._cache.get(cacheIdentifier);\n !(cacheEntry != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected to have cached a result when attempting to fetch query.' + \"If you're seeing this, this is likely a bug in Relay.\") : invariant(false) : void 0;\n environment.__log({\n name: 'queryresource.fetch',\n resourceID: cacheEntry.id,\n operation: operation,\n profilerContext: profilerContext,\n fetchPolicy: fetchPolicy,\n renderPolicy: renderPolicy,\n queryAvailability: queryAvailability,\n shouldFetch: shouldFetch\n });\n return cacheEntry;\n };\n return QueryResourceImpl;\n}();\nfunction createQueryResource(environment) {\n return new QueryResourceImpl(environment);\n}\nvar dataResources = WEAKMAP_SUPPORTED ? new WeakMap() : new Map();\nfunction getQueryResourceForEnvironment(environment) {\n var cached = dataResources.get(environment);\n if (cached) {\n return cached;\n }\n var newDataResource = createQueryResource(environment);\n dataResources.set(environment, newDataResource);\n return newDataResource;\n}\nmodule.exports = {\n createQueryResource: createQueryResource,\n getQueryResourceForEnvironment: getQueryResourceForEnvironment,\n getQueryCacheIdentifier: getQueryCacheIdentifier\n};","'use strict';\n\nvar _require = require('react'),\n useMemo = _require.useMemo;\nfunction useUnsafeRef_DEPRECATED(init) {\n return useMemo(function () {\n return {\n current: init\n };\n }, []);\n}\nmodule.exports = useUnsafeRef_DEPRECATED;","'use strict';\n\nvar useUnsafeRef_DEPRECATED = require('./useUnsafeRef_DEPRECATED');\nvar _require = require('react'),\n useCallback = _require.useCallback,\n useEffect = _require.useEffect;\nfunction useFetchTrackingRef() {\n var subscriptionRef = useUnsafeRef_DEPRECATED(null);\n var isFetchingRef = useUnsafeRef_DEPRECATED(false);\n var disposeFetch = useCallback(function () {\n if (subscriptionRef.current != null) {\n subscriptionRef.current.unsubscribe();\n subscriptionRef.current = null;\n }\n isFetchingRef.current = false;\n }, []);\n var startFetch = useCallback(function (subscription) {\n subscriptionRef.current = subscription;\n isFetchingRef.current = true;\n }, []);\n var completeFetch = useCallback(function () {\n subscriptionRef.current = null;\n isFetchingRef.current = false;\n }, []);\n useEffect(function () {\n return disposeFetch;\n }, [disposeFetch]);\n return {\n isFetchingRef: isFetchingRef,\n startFetch: startFetch,\n disposeFetch: disposeFetch,\n completeFetch: completeFetch\n };\n}\nmodule.exports = useFetchTrackingRef;","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nfunction _createForOfIteratorHelper(r, e) {\n var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (!t) {\n if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) {\n t && (r = t);\n var _n = 0,\n F = function F() {};\n return {\n s: F,\n n: function n() {\n return _n >= r.length ? {\n done: !0\n } : {\n done: !1,\n value: r[_n++]\n };\n },\n e: function e(r) {\n throw r;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var o,\n a = !0,\n u = !1;\n return {\n s: function s() {\n t = t.call(r);\n },\n n: function n() {\n var r = t.next();\n return a = r.done, r;\n },\n e: function e(r) {\n u = !0, o = r;\n },\n f: function f() {\n try {\n a || null == t[\"return\"] || t[\"return\"]();\n } finally {\n if (u) throw o;\n }\n }\n };\n}\nmodule.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar _require = require('./QueryResource'),\n getQueryResourceForEnvironment = _require.getQueryResourceForEnvironment;\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar invariant = require('invariant');\nvar _require2 = require('react'),\n useDebugValue = _require2.useDebugValue,\n useEffect = _require2.useEffect,\n useMemo = _require2.useMemo,\n useRef = _require2.useRef,\n useState = _require2.useState;\nvar _require3 = require('relay-runtime'),\n _require3$__internal = _require3.__internal,\n fetchQueryInternal = _require3$__internal.fetchQuery,\n getPromiseForActiveRequest = _require3$__internal.getPromiseForActiveRequest,\n RelayFeatureFlags = _require3.RelayFeatureFlags,\n areEqualSelectors = _require3.areEqualSelectors,\n createOperationDescriptor = _require3.createOperationDescriptor,\n getPendingOperationsForFragment = _require3.getPendingOperationsForFragment,\n getSelector = _require3.getSelector,\n getVariablesFromFragment = _require3.getVariablesFromFragment,\n handlePotentialSnapshotErrors = _require3.handlePotentialSnapshotErrors,\n recycleNodesInto = _require3.recycleNodesInto;\nvar warning = require(\"fbjs/lib/warning\");\nfunction isMissingData(state) {\n if (state.kind === 'bailout') {\n return false;\n } else if (state.kind === 'singular') {\n return state.snapshot.isMissingData;\n } else {\n return state.snapshots.some(function (s) {\n return s.isMissingData;\n });\n }\n}\nfunction getMissingClientEdges(state) {\n if (state.kind === 'bailout') {\n return null;\n } else if (state.kind === 'singular') {\n var _state$snapshot$missi;\n return (_state$snapshot$missi = state.snapshot.missingClientEdges) !== null && _state$snapshot$missi !== void 0 ? _state$snapshot$missi : null;\n } else {\n var edges = null;\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var snapshot = _step.value;\n if (snapshot.missingClientEdges) {\n var _edges;\n edges = (_edges = edges) !== null && _edges !== void 0 ? _edges : [];\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(snapshot.missingClientEdges),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var edge = _step2.value;\n edges.push(edge);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return edges;\n }\n}\nfunction getSuspendingLiveResolver(state) {\n if (state.kind === 'bailout') {\n return null;\n } else if (state.kind === 'singular') {\n var _state$snapshot$missi2;\n return (_state$snapshot$missi2 = state.snapshot.missingLiveResolverFields) !== null && _state$snapshot$missi2 !== void 0 ? _state$snapshot$missi2 : null;\n } else {\n var missingFields = null;\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var snapshot = _step3.value;\n if (snapshot.missingLiveResolverFields) {\n var _missingFields;\n missingFields = (_missingFields = missingFields) !== null && _missingFields !== void 0 ? _missingFields : [];\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(snapshot.missingLiveResolverFields),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var edge = _step4.value;\n missingFields.push(edge);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return missingFields;\n }\n}\nfunction handlePotentialSnapshotErrorsForState(environment, state) {\n if (state.kind === 'singular') {\n handlePotentialSnapshotErrors(environment, state.snapshot.errorResponseFields);\n } else if (state.kind === 'plural') {\n var _iterator5 = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var snapshot = _step5.value;\n handlePotentialSnapshotErrors(environment, snapshot.errorResponseFields);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n }\n}\nfunction handleMissedUpdates(environment, state) {\n if (state.kind === 'bailout') {\n return null;\n }\n var currentEpoch = environment.getStore().getEpoch();\n if (currentEpoch === state.epoch) {\n return null;\n }\n if (state.kind === 'singular') {\n var currentSnapshot = environment.lookup(state.snapshot.selector);\n var updatedData = recycleNodesInto(state.snapshot.data, currentSnapshot.data);\n var updatedCurrentSnapshot = {\n data: updatedData,\n isMissingData: currentSnapshot.isMissingData,\n missingClientEdges: currentSnapshot.missingClientEdges,\n missingLiveResolverFields: currentSnapshot.missingLiveResolverFields,\n seenRecords: currentSnapshot.seenRecords,\n selector: currentSnapshot.selector,\n errorResponseFields: currentSnapshot.errorResponseFields\n };\n return [updatedData !== state.snapshot.data, {\n kind: 'singular',\n snapshot: updatedCurrentSnapshot,\n epoch: currentEpoch\n }];\n } else {\n var didMissUpdates = false;\n var currentSnapshots = [];\n for (var index = 0; index < state.snapshots.length; index++) {\n var snapshot = state.snapshots[index];\n var _currentSnapshot = environment.lookup(snapshot.selector);\n var _updatedData = recycleNodesInto(snapshot.data, _currentSnapshot.data);\n var _updatedCurrentSnapshot = {\n data: _updatedData,\n isMissingData: _currentSnapshot.isMissingData,\n missingClientEdges: _currentSnapshot.missingClientEdges,\n missingLiveResolverFields: _currentSnapshot.missingLiveResolverFields,\n seenRecords: _currentSnapshot.seenRecords,\n selector: _currentSnapshot.selector,\n errorResponseFields: _currentSnapshot.errorResponseFields\n };\n if (_updatedData !== snapshot.data) {\n didMissUpdates = true;\n }\n currentSnapshots.push(_updatedCurrentSnapshot);\n }\n !(currentSnapshots.length === state.snapshots.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected same number of snapshots') : invariant(false) : void 0;\n return [didMissUpdates, {\n kind: 'plural',\n snapshots: currentSnapshots,\n epoch: currentEpoch\n }];\n }\n}\nfunction handleMissingClientEdge(environment, parentFragmentNode, parentFragmentRef, missingClientEdgeRequestInfo, queryOptions) {\n var originalVariables = getVariablesFromFragment(parentFragmentNode, parentFragmentRef);\n var variables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, originalVariables), {}, {\n id: missingClientEdgeRequestInfo.clientEdgeDestinationID\n });\n var queryOperationDescriptor = createOperationDescriptor(missingClientEdgeRequestInfo.request, variables, queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.networkCacheConfig);\n var QueryResource = getQueryResourceForEnvironment(environment);\n var queryResult = QueryResource.prepare(queryOperationDescriptor, fetchQueryInternal(environment, queryOperationDescriptor), queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.fetchPolicy);\n return [queryResult, getPromiseForActiveRequest(environment, queryOperationDescriptor.request)];\n}\nfunction subscribeToSnapshot(environment, state, setState, hasPendingStateChanges) {\n if (state.kind === 'bailout') {\n return function () {};\n } else if (state.kind === 'singular') {\n var disposable = environment.subscribe(state.snapshot, function (latestSnapshot) {\n setState(function (prevState) {\n if (prevState.kind !== 'singular' || prevState.snapshot.selector !== latestSnapshot.selector) {\n var updates = handleMissedUpdates(environment, prevState);\n if (updates != null) {\n var dataChanged = updates[0],\n nextState = updates[1];\n environment.__log({\n name: 'useFragment.subscription.missedUpdates',\n hasDataChanges: dataChanged\n });\n hasPendingStateChanges.current = dataChanged;\n return dataChanged ? nextState : prevState;\n } else {\n return prevState;\n }\n }\n hasPendingStateChanges.current = true;\n return {\n kind: 'singular',\n snapshot: latestSnapshot,\n epoch: environment.getStore().getEpoch()\n };\n });\n });\n return function () {\n disposable.dispose();\n };\n } else {\n var disposables = state.snapshots.map(function (snapshot, index) {\n return environment.subscribe(snapshot, function (latestSnapshot) {\n setState(function (prevState) {\n var _prevState$snapshots$;\n if (prevState.kind !== 'plural' || ((_prevState$snapshots$ = prevState.snapshots[index]) === null || _prevState$snapshots$ === void 0 ? void 0 : _prevState$snapshots$.selector) !== latestSnapshot.selector) {\n var updates = handleMissedUpdates(environment, prevState);\n if (updates != null) {\n var dataChanged = updates[0],\n nextState = updates[1];\n environment.__log({\n name: 'useFragment.subscription.missedUpdates',\n hasDataChanges: dataChanged\n });\n hasPendingStateChanges.current = hasPendingStateChanges.current || dataChanged;\n return dataChanged ? nextState : prevState;\n } else {\n return prevState;\n }\n }\n var updated = (0, _toConsumableArray2[\"default\"])(prevState.snapshots);\n updated[index] = latestSnapshot;\n hasPendingStateChanges.current = true;\n return {\n kind: 'plural',\n snapshots: updated,\n epoch: environment.getStore().getEpoch()\n };\n });\n });\n });\n return function () {\n var _iterator6 = (0, _createForOfIteratorHelper2[\"default\"])(disposables),\n _step6;\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var d = _step6.value;\n d.dispose();\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n };\n }\n}\nfunction getFragmentState(environment, fragmentSelector) {\n if (fragmentSelector == null) {\n return {\n kind: 'bailout'\n };\n } else if (fragmentSelector.kind === 'PluralReaderSelector') {\n return {\n kind: 'plural',\n snapshots: fragmentSelector.selectors.map(function (s) {\n return environment.lookup(s);\n }),\n epoch: environment.getStore().getEpoch()\n };\n } else {\n return {\n kind: 'singular',\n snapshot: environment.lookup(fragmentSelector),\n epoch: environment.getStore().getEpoch()\n };\n }\n}\nfunction useFragmentInternal(fragmentNode, fragmentRef, hookDisplayName, queryOptions) {\n var _fragmentNode$metadat, _fragmentNode$metadat2;\n var fragmentSelector = useMemo(function () {\n return getSelector(fragmentNode, fragmentRef);\n }, [fragmentNode, fragmentRef]);\n var isPlural = (fragmentNode === null || fragmentNode === void 0 ? void 0 : (_fragmentNode$metadat = fragmentNode.metadata) === null || _fragmentNode$metadat === void 0 ? void 0 : _fragmentNode$metadat.plural) === true;\n if (isPlural) {\n !(fragmentRef == null || Array.isArray(fragmentRef)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected fragment pointer%s for fragment `%s` to be ' + 'an array, instead got `%s`. Remove `@relay(plural: true)` ' + 'from fragment `%s` to allow the prop to be an object.', fragmentNode.name, typeof fragmentRef, fragmentNode.name) : invariant(false) : void 0;\n } else {\n !!Array.isArray(fragmentRef) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected fragment pointer%s for fragment `%s` not to be ' + 'an array, instead got `%s`. Add `@relay(plural: true)` ' + 'to fragment `%s` to allow the prop to be an array.', fragmentNode.name, typeof fragmentRef, fragmentNode.name) : invariant(false) : void 0;\n }\n !(fragmentRef == null || isPlural && Array.isArray(fragmentRef) && fragmentRef.length === 0 || fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected to receive an object where `...%s` was spread, ' + 'but the fragment reference was not found`. This is most ' + 'likely the result of:\\n' + \"- Forgetting to spread `%s` in `%s`'s parent's fragment.\\n\" + '- Conditionally fetching `%s` but unconditionally passing %s prop ' + 'to `%s`. If the parent fragment only fetches the fragment conditionally ' + '- with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` ' + 'spread - then the fragment reference will not exist. ' + 'In this case, pass `null` if the conditions for evaluating the ' + 'fragment are not met (e.g. if the `@include(if)` value is false.)', fragmentNode.name, fragmentNode.name, hookDisplayName, fragmentNode.name, hookDisplayName) : invariant(false) : void 0;\n var environment = useRelayEnvironment();\n var _useState = useState(function () {\n return getFragmentState(environment, fragmentSelector);\n }),\n _state = _useState[0],\n setState = _useState[1];\n var state = _state;\n var _useState2 = useState(state),\n _subscribedState = _useState2[0],\n setSubscribedState = _useState2[1];\n var subscribedState = _subscribedState;\n var _useState3 = useState(fragmentSelector),\n previousFragmentSelector = _useState3[0],\n setPreviousFragmentSelector = _useState3[1];\n var _useState4 = useState(environment),\n previousEnvironment = _useState4[0],\n setPreviousEnvironment = _useState4[1];\n if (!areEqualSelectors(fragmentSelector, previousFragmentSelector) || environment !== previousEnvironment) {\n setPreviousFragmentSelector(fragmentSelector);\n setPreviousEnvironment(environment);\n var newState = getFragmentState(environment, fragmentSelector);\n setState(newState);\n setSubscribedState(newState);\n state = newState;\n subscribedState = newState;\n }\n var committedFragmentSelectorRef = useRef(false);\n useEffect(function () {\n committedFragmentSelectorRef.current = fragmentSelector;\n }, [fragmentSelector]);\n if (((_fragmentNode$metadat2 = fragmentNode.metadata) === null || _fragmentNode$metadat2 === void 0 ? void 0 : _fragmentNode$metadat2.hasClientEdges) === true) {\n var _useMemo = useMemo(function () {\n var missingClientEdges = getMissingClientEdges(state);\n var clientEdgeQueries;\n var activeRequestPromises = [];\n if (missingClientEdges !== null && missingClientEdges !== void 0 && missingClientEdges.length) {\n clientEdgeQueries = [];\n var _iterator7 = (0, _createForOfIteratorHelper2[\"default\"])(missingClientEdges),\n _step7;\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n var edge = _step7.value;\n var _handleMissingClientE = handleMissingClientEdge(environment, fragmentNode, fragmentRef, edge, queryOptions),\n queryResult = _handleMissingClientE[0],\n requestPromise = _handleMissingClientE[1];\n clientEdgeQueries.push(queryResult);\n if (requestPromise != null) {\n activeRequestPromises.push(requestPromise);\n }\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n }\n return [clientEdgeQueries, activeRequestPromises];\n }, [state, environment, fragmentNode, fragmentRef, queryOptions]),\n clientEdgeQueries = _useMemo[0],\n activeRequestPromises = _useMemo[1];\n if (activeRequestPromises.length) {\n throw Promise.all(activeRequestPromises);\n }\n useEffect(function () {\n var QueryResource = getQueryResourceForEnvironment(environment);\n if (clientEdgeQueries !== null && clientEdgeQueries !== void 0 && clientEdgeQueries.length) {\n var disposables = [];\n var _iterator8 = (0, _createForOfIteratorHelper2[\"default\"])(clientEdgeQueries),\n _step8;\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var query = _step8.value;\n disposables.push(QueryResource.retain(query));\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n return function () {\n for (var _i = 0, _disposables = disposables; _i < _disposables.length; _i++) {\n var disposable = _disposables[_i];\n disposable.dispose();\n }\n };\n }\n }, [environment, clientEdgeQueries]);\n }\n if (isMissingData(state)) {\n var suspendingLiveResolvers = getSuspendingLiveResolver(state);\n if (suspendingLiveResolvers != null && suspendingLiveResolvers.length > 0) {\n throw Promise.all(suspendingLiveResolvers.map(function (liveStateID) {\n return environment.getStore().getLiveResolverPromise(liveStateID);\n }));\n }\n if (RelayFeatureFlags.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE || environment !== previousEnvironment || !committedFragmentSelectorRef.current || !areEqualSelectors(committedFragmentSelectorRef.current, fragmentSelector)) {\n !(fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'refinement, see invariants above') : invariant(false) : void 0;\n var fragmentOwner = fragmentSelector.kind === 'PluralReaderSelector' ? fragmentSelector.selectors[0].owner : fragmentSelector.owner;\n var pendingOperationsResult = getPendingOperationsForFragment(environment, fragmentNode, fragmentOwner);\n if (pendingOperationsResult) {\n throw pendingOperationsResult.promise;\n }\n }\n }\n handlePotentialSnapshotErrorsForState(environment, state);\n var hasPendingStateChanges = useRef(false);\n useEffect(function () {\n var currentState = subscribedState;\n var updates = handleMissedUpdates(environment, subscribedState);\n if (updates !== null) {\n var didMissUpdates = updates[0],\n updatedState = updates[1];\n if (didMissUpdates) {\n setState(updatedState);\n }\n currentState = updatedState;\n }\n return subscribeToSnapshot(environment, currentState, setState, hasPendingStateChanges);\n }, [environment, subscribedState]);\n if (hasPendingStateChanges.current) {\n var updates = handleMissedUpdates(environment, state);\n if (updates != null) {\n var hasStateUpdates = updates[0],\n updatedState = updates[1];\n if (hasStateUpdates) {\n setState(updatedState);\n state = updatedState;\n }\n }\n hasPendingStateChanges.current = false;\n }\n var data;\n if (isPlural) {\n var fragmentRefIsNullish = fragmentRef == null;\n data = useMemo(function () {\n if (state.kind === 'bailout') {\n return fragmentRefIsNullish ? null : [];\n } else {\n !(state.kind === 'plural') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected state to be plural because fragment is plural') : invariant(false) : void 0;\n return state.snapshots.map(function (s) {\n return s.data;\n });\n }\n }, [state, fragmentRefIsNullish]);\n } else if (state.kind === 'bailout') {\n data = null;\n } else {\n !(state.kind === 'singular') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected state to be singular because fragment is singular') : invariant(false) : void 0;\n data = state.snapshot.data;\n }\n if (RelayFeatureFlags.LOG_MISSING_RECORDS_IN_PROD || process.env.NODE_ENV !== \"production\") {\n if (fragmentRef != null && (data === undefined || Array.isArray(data) && data.length > 0 && data.every(function (d) {\n return d === undefined;\n }))) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Expected to have been able to read non-null data for ' + 'fragment `%s` declared in ' + '`%s`, since fragment reference was non-null. ' + \"Make sure that that `%s`'s parent isn't \" + 'holding on to and/or passing a fragment reference for data that ' + 'has been deleted.', fragmentNode.name, hookDisplayName, hookDisplayName) : void 0;\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n useDebugValue({\n fragment: fragmentNode.name,\n data: data\n });\n }\n return data;\n}\nmodule.exports = useFragmentInternal;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar _require = require('./QueryResource'),\n getQueryResourceForEnvironment = _require.getQueryResourceForEnvironment;\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar invariant = require('invariant');\nvar _require2 = require('react'),\n useDebugValue = _require2.useDebugValue,\n useEffect = _require2.useEffect,\n useMemo = _require2.useMemo,\n useRef = _require2.useRef,\n useState = _require2.useState;\nvar _require3 = require('relay-runtime'),\n _require3$__internal = _require3.__internal,\n fetchQueryInternal = _require3$__internal.fetchQuery,\n getPromiseForActiveRequest = _require3$__internal.getPromiseForActiveRequest,\n RelayFeatureFlags = _require3.RelayFeatureFlags,\n areEqualSelectors = _require3.areEqualSelectors,\n createOperationDescriptor = _require3.createOperationDescriptor,\n getPendingOperationsForFragment = _require3.getPendingOperationsForFragment,\n getSelector = _require3.getSelector,\n getVariablesFromFragment = _require3.getVariablesFromFragment,\n handlePotentialSnapshotErrors = _require3.handlePotentialSnapshotErrors,\n recycleNodesInto = _require3.recycleNodesInto;\nvar warning = require(\"fbjs/lib/warning\");\nfunction isMissingData(state) {\n if (state.kind === 'bailout') {\n return false;\n } else if (state.kind === 'singular') {\n return state.snapshot.isMissingData;\n } else {\n return state.snapshots.some(function (s) {\n return s.isMissingData;\n });\n }\n}\nfunction getMissingClientEdges(state) {\n if (state.kind === 'bailout') {\n return null;\n } else if (state.kind === 'singular') {\n var _state$snapshot$missi;\n return (_state$snapshot$missi = state.snapshot.missingClientEdges) !== null && _state$snapshot$missi !== void 0 ? _state$snapshot$missi : null;\n } else {\n var edges = null;\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var snapshot = _step.value;\n if (snapshot.missingClientEdges) {\n var _edges;\n edges = (_edges = edges) !== null && _edges !== void 0 ? _edges : [];\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(snapshot.missingClientEdges),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var edge = _step2.value;\n edges.push(edge);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return edges;\n }\n}\nfunction getSuspendingLiveResolver(state) {\n if (state.kind === 'bailout') {\n return null;\n } else if (state.kind === 'singular') {\n var _state$snapshot$missi2;\n return (_state$snapshot$missi2 = state.snapshot.missingLiveResolverFields) !== null && _state$snapshot$missi2 !== void 0 ? _state$snapshot$missi2 : null;\n } else {\n var missingFields = null;\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var snapshot = _step3.value;\n if (snapshot.missingLiveResolverFields) {\n var _missingFields;\n missingFields = (_missingFields = missingFields) !== null && _missingFields !== void 0 ? _missingFields : [];\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(snapshot.missingLiveResolverFields),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var edge = _step4.value;\n missingFields.push(edge);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return missingFields;\n }\n}\nfunction handlePotentialSnapshotErrorsForState(environment, state) {\n if (state.kind === 'singular') {\n handlePotentialSnapshotErrors(environment, state.snapshot.errorResponseFields);\n } else if (state.kind === 'plural') {\n var _iterator5 = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var snapshot = _step5.value;\n handlePotentialSnapshotErrors(environment, snapshot.errorResponseFields);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n }\n}\nfunction handleMissedUpdates(environment, state) {\n if (state.kind === 'bailout') {\n return null;\n }\n var currentEpoch = environment.getStore().getEpoch();\n if (currentEpoch === state.epoch) {\n return null;\n }\n if (state.kind === 'singular') {\n var currentSnapshot = environment.lookup(state.snapshot.selector);\n var updatedData = recycleNodesInto(state.snapshot.data, currentSnapshot.data);\n var updatedCurrentSnapshot = {\n data: updatedData,\n isMissingData: currentSnapshot.isMissingData,\n missingClientEdges: currentSnapshot.missingClientEdges,\n missingLiveResolverFields: currentSnapshot.missingLiveResolverFields,\n seenRecords: currentSnapshot.seenRecords,\n selector: currentSnapshot.selector,\n errorResponseFields: currentSnapshot.errorResponseFields\n };\n return [updatedData !== state.snapshot.data, {\n kind: 'singular',\n snapshot: updatedCurrentSnapshot,\n epoch: currentEpoch,\n selector: state.selector,\n environment: state.environment\n }];\n } else {\n var didMissUpdates = false;\n var currentSnapshots = [];\n for (var index = 0; index < state.snapshots.length; index++) {\n var snapshot = state.snapshots[index];\n var _currentSnapshot = environment.lookup(snapshot.selector);\n var _updatedData = recycleNodesInto(snapshot.data, _currentSnapshot.data);\n var _updatedCurrentSnapshot = {\n data: _updatedData,\n isMissingData: _currentSnapshot.isMissingData,\n missingClientEdges: _currentSnapshot.missingClientEdges,\n missingLiveResolverFields: _currentSnapshot.missingLiveResolverFields,\n seenRecords: _currentSnapshot.seenRecords,\n selector: _currentSnapshot.selector,\n errorResponseFields: _currentSnapshot.errorResponseFields\n };\n if (_updatedData !== snapshot.data) {\n didMissUpdates = true;\n }\n currentSnapshots.push(_updatedCurrentSnapshot);\n }\n !(currentSnapshots.length === state.snapshots.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected same number of snapshots') : invariant(false) : void 0;\n return [didMissUpdates, {\n kind: 'plural',\n snapshots: currentSnapshots,\n epoch: currentEpoch,\n selector: state.selector,\n environment: state.environment\n }];\n }\n}\nfunction handleMissingClientEdge(environment, parentFragmentNode, parentFragmentRef, missingClientEdgeRequestInfo, queryOptions) {\n var originalVariables = getVariablesFromFragment(parentFragmentNode, parentFragmentRef);\n var variables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, originalVariables), {}, {\n id: missingClientEdgeRequestInfo.clientEdgeDestinationID\n });\n var queryOperationDescriptor = createOperationDescriptor(missingClientEdgeRequestInfo.request, variables, queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.networkCacheConfig);\n var QueryResource = getQueryResourceForEnvironment(environment);\n var queryResult = QueryResource.prepare(queryOperationDescriptor, fetchQueryInternal(environment, queryOperationDescriptor), queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.fetchPolicy);\n return [queryResult, getPromiseForActiveRequest(environment, queryOperationDescriptor.request)];\n}\nfunction subscribeToSnapshot(environment, state, setState) {\n if (state.kind === 'bailout') {\n return function () {};\n } else if (state.kind === 'singular') {\n var disposable = environment.subscribe(state.snapshot, function (latestSnapshot) {\n setState(function (prevState) {\n var nextState = null;\n if (prevState.kind !== 'singular' || prevState.snapshot.selector !== latestSnapshot.selector || prevState.environment !== environment) {\n var updates = handleMissedUpdates(prevState.environment, prevState);\n if (updates != null) {\n var dataChanged = updates[0],\n updatedState = updates[1];\n environment.__log({\n name: 'useFragment.subscription.missedUpdates',\n hasDataChanges: dataChanged\n });\n nextState = dataChanged ? updatedState : prevState;\n } else {\n nextState = prevState;\n }\n } else {\n nextState = {\n kind: 'singular',\n snapshot: latestSnapshot,\n epoch: environment.getStore().getEpoch(),\n selector: state.selector,\n environment: state.environment\n };\n }\n return nextState;\n });\n });\n return function () {\n disposable.dispose();\n };\n } else {\n var disposables = state.snapshots.map(function (snapshot, index) {\n return environment.subscribe(snapshot, function (latestSnapshot) {\n setState(function (prevState) {\n var _prevState$snapshots$;\n var nextState = null;\n if (prevState.kind !== 'plural' || ((_prevState$snapshots$ = prevState.snapshots[index]) === null || _prevState$snapshots$ === void 0 ? void 0 : _prevState$snapshots$.selector) !== latestSnapshot.selector || prevState.environment !== environment) {\n var updates = handleMissedUpdates(prevState.environment, prevState);\n if (updates != null) {\n var dataChanged = updates[0],\n updatedState = updates[1];\n environment.__log({\n name: 'useFragment.subscription.missedUpdates',\n hasDataChanges: dataChanged\n });\n nextState = dataChanged ? updatedState : prevState;\n } else {\n nextState = prevState;\n }\n } else {\n var updated = (0, _toConsumableArray2[\"default\"])(prevState.snapshots);\n updated[index] = latestSnapshot;\n nextState = {\n kind: 'plural',\n snapshots: updated,\n epoch: environment.getStore().getEpoch(),\n selector: state.selector,\n environment: state.environment\n };\n }\n return nextState;\n });\n });\n });\n return function () {\n var _iterator6 = (0, _createForOfIteratorHelper2[\"default\"])(disposables),\n _step6;\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var d = _step6.value;\n d.dispose();\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n };\n }\n}\nfunction getFragmentState(environment, fragmentSelector) {\n if (fragmentSelector == null) {\n return {\n kind: 'bailout',\n environment: environment\n };\n } else if (fragmentSelector.kind === 'PluralReaderSelector') {\n return {\n kind: 'plural',\n snapshots: fragmentSelector.selectors.map(function (s) {\n return environment.lookup(s);\n }),\n epoch: environment.getStore().getEpoch(),\n selector: fragmentSelector,\n environment: environment\n };\n } else {\n return {\n kind: 'singular',\n snapshot: environment.lookup(fragmentSelector),\n epoch: environment.getStore().getEpoch(),\n selector: fragmentSelector,\n environment: environment\n };\n }\n}\nfunction useFragmentInternal_EXPERIMENTAL(fragmentNode, fragmentRef, hookDisplayName, queryOptions) {\n var _fragmentNode$metadat, _fragmentNode$metadat2;\n var fragmentSelector = useMemo(function () {\n return getSelector(fragmentNode, fragmentRef);\n }, [fragmentNode, fragmentRef]);\n var isPlural = (fragmentNode === null || fragmentNode === void 0 ? void 0 : (_fragmentNode$metadat = fragmentNode.metadata) === null || _fragmentNode$metadat === void 0 ? void 0 : _fragmentNode$metadat.plural) === true;\n if (isPlural) {\n !(fragmentRef == null || Array.isArray(fragmentRef)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected fragment pointer%s for fragment `%s` to be ' + 'an array, instead got `%s`. Remove `@relay(plural: true)` ' + 'from fragment `%s` to allow the prop to be an object.', fragmentNode.name, typeof fragmentRef, fragmentNode.name) : invariant(false) : void 0;\n } else {\n !!Array.isArray(fragmentRef) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected fragment pointer%s for fragment `%s` not to be ' + 'an array, instead got `%s`. Add `@relay(plural: true)` ' + 'to fragment `%s` to allow the prop to be an array.', fragmentNode.name, typeof fragmentRef, fragmentNode.name) : invariant(false) : void 0;\n }\n !(fragmentRef == null || isPlural && Array.isArray(fragmentRef) && fragmentRef.length === 0 || fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected to receive an object where `...%s` was spread, ' + 'but the fragment reference was not found`. This is most ' + 'likely the result of:\\n' + \"- Forgetting to spread `%s` in `%s`'s parent's fragment.\\n\" + '- Conditionally fetching `%s` but unconditionally passing %s prop ' + 'to `%s`. If the parent fragment only fetches the fragment conditionally ' + '- with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` ' + 'spread - then the fragment reference will not exist. ' + 'In this case, pass `null` if the conditions for evaluating the ' + 'fragment are not met (e.g. if the `@include(if)` value is false.)', fragmentNode.name, fragmentNode.name, hookDisplayName, fragmentNode.name, hookDisplayName) : invariant(false) : void 0;\n var environment = useRelayEnvironment();\n var _useState = useState(function () {\n return getFragmentState(environment, fragmentSelector);\n }),\n _state = _useState[0],\n setState = _useState[1];\n var state = _state;\n var previousEnvironment = state.environment;\n if (!areEqualSelectors(fragmentSelector, state.selector) || environment !== state.environment) {\n var newState = getFragmentState(environment, fragmentSelector);\n setState(newState);\n state = newState;\n }\n var committedFragmentSelectorRef = useRef(false);\n useEffect(function () {\n committedFragmentSelectorRef.current = fragmentSelector;\n }, [fragmentSelector]);\n if (((_fragmentNode$metadat2 = fragmentNode.metadata) === null || _fragmentNode$metadat2 === void 0 ? void 0 : _fragmentNode$metadat2.hasClientEdges) === true) {\n var _useMemo = useMemo(function () {\n var missingClientEdges = getMissingClientEdges(state);\n var clientEdgeQueries;\n var activeRequestPromises = [];\n if (missingClientEdges !== null && missingClientEdges !== void 0 && missingClientEdges.length) {\n clientEdgeQueries = [];\n var _iterator7 = (0, _createForOfIteratorHelper2[\"default\"])(missingClientEdges),\n _step7;\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n var edge = _step7.value;\n var _handleMissingClientE = handleMissingClientEdge(environment, fragmentNode, fragmentRef, edge, queryOptions),\n queryResult = _handleMissingClientE[0],\n requestPromise = _handleMissingClientE[1];\n clientEdgeQueries.push(queryResult);\n if (requestPromise != null) {\n activeRequestPromises.push(requestPromise);\n }\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n }\n return [clientEdgeQueries, activeRequestPromises];\n }, [state, environment, fragmentNode, fragmentRef, queryOptions]),\n clientEdgeQueries = _useMemo[0],\n activeRequestPromises = _useMemo[1];\n if (activeRequestPromises.length) {\n throw Promise.all(activeRequestPromises);\n }\n useEffect(function () {\n var QueryResource = getQueryResourceForEnvironment(environment);\n if (clientEdgeQueries !== null && clientEdgeQueries !== void 0 && clientEdgeQueries.length) {\n var disposables = [];\n var _iterator8 = (0, _createForOfIteratorHelper2[\"default\"])(clientEdgeQueries),\n _step8;\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var query = _step8.value;\n disposables.push(QueryResource.retain(query));\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n return function () {\n for (var _i = 0, _disposables = disposables; _i < _disposables.length; _i++) {\n var disposable = _disposables[_i];\n disposable.dispose();\n }\n };\n }\n }, [environment, clientEdgeQueries]);\n }\n if (isMissingData(state)) {\n var suspendingLiveResolvers = getSuspendingLiveResolver(state);\n if (suspendingLiveResolvers != null && suspendingLiveResolvers.length > 0) {\n throw Promise.all(suspendingLiveResolvers.map(function (liveStateID) {\n return environment.getStore().getLiveResolverPromise(liveStateID);\n }));\n }\n if (RelayFeatureFlags.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE || environment !== previousEnvironment || !committedFragmentSelectorRef.current || !areEqualSelectors(committedFragmentSelectorRef.current, fragmentSelector)) {\n !(fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'refinement, see invariants above') : invariant(false) : void 0;\n var fragmentOwner = fragmentSelector.kind === 'PluralReaderSelector' ? fragmentSelector.selectors[0].owner : fragmentSelector.owner;\n var pendingOperationsResult = getPendingOperationsForFragment(environment, fragmentNode, fragmentOwner);\n if (pendingOperationsResult) {\n throw pendingOperationsResult.promise;\n }\n }\n }\n handlePotentialSnapshotErrorsForState(environment, state);\n var storeSubscriptionRef = useRef(null);\n useEffect(function () {\n var storeSubscription = storeSubscriptionRef.current;\n if (storeSubscription != null) {\n if (state.environment === storeSubscription.environment && state.selector === storeSubscription.selector) {\n return;\n } else {\n storeSubscription.dispose();\n }\n }\n if (state.kind === 'bailout') {\n return;\n }\n var stateForSubscription = state;\n var updates = handleMissedUpdates(state.environment, state);\n if (updates !== null) {\n var didMissUpdates = updates[0],\n updatedState = updates[1];\n if (didMissUpdates) {\n setState(updatedState);\n return;\n }\n stateForSubscription = updatedState;\n }\n var dispose = subscribeToSnapshot(state.environment, stateForSubscription, setState);\n storeSubscriptionRef.current = {\n dispose: dispose,\n selector: state.selector,\n environment: state.environment\n };\n }, [state]);\n useEffect(function () {\n if (storeSubscriptionRef.current == null && state.kind !== 'bailout') {\n var dispose = subscribeToSnapshot(state.environment, state, setState);\n storeSubscriptionRef.current = {\n dispose: dispose,\n selector: state.selector,\n environment: state.environment\n };\n }\n return function () {\n var _storeSubscriptionRef;\n (_storeSubscriptionRef = storeSubscriptionRef.current) === null || _storeSubscriptionRef === void 0 ? void 0 : _storeSubscriptionRef.dispose();\n storeSubscriptionRef.current = null;\n };\n }, []);\n var data;\n if (isPlural) {\n var fragmentRefIsNullish = fragmentRef == null;\n data = useMemo(function () {\n if (state.kind === 'bailout') {\n return fragmentRefIsNullish ? null : [];\n } else {\n !(state.kind === 'plural') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected state to be plural because fragment is plural') : invariant(false) : void 0;\n return state.snapshots.map(function (s) {\n return s.data;\n });\n }\n }, [state, fragmentRefIsNullish]);\n } else if (state.kind === 'bailout') {\n data = null;\n } else {\n !(state.kind === 'singular') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected state to be singular because fragment is singular') : invariant(false) : void 0;\n data = state.snapshot.data;\n }\n if (RelayFeatureFlags.LOG_MISSING_RECORDS_IN_PROD || process.env.NODE_ENV !== \"production\") {\n if (fragmentRef != null && (data === undefined || Array.isArray(data) && data.length > 0 && data.every(function (d) {\n return d === undefined;\n }))) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Expected to have been able to read non-null data for ' + 'fragment `%s` declared in ' + '`%s`, since fragment reference was non-null. ' + \"Make sure that that `%s`'s parent isn't \" + 'holding on to and/or passing a fragment reference for data that ' + 'has been deleted.', fragmentNode.name, hookDisplayName, hookDisplayName) : void 0;\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n useDebugValue({\n fragment: fragmentNode.name,\n data: data\n });\n }\n return data;\n}\nmodule.exports = useFragmentInternal_EXPERIMENTAL;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _useFragmentInternal_CURRENT = _interopRequireDefault(require(\"./useFragmentInternal_CURRENT\"));\nvar _useFragmentInternal_EXPERIMENTAL = _interopRequireDefault(require(\"./useFragmentInternal_EXPERIMENTAL\"));\nvar _relayRuntime = require(\"relay-runtime\");\nfunction useFragmentInternal(fragmentNode, fragmentRef, hookDisplayName, queryOptions) {\n if (_relayRuntime.RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY) {\n return (0, _useFragmentInternal_EXPERIMENTAL[\"default\"])(fragmentNode, fragmentRef, hookDisplayName, queryOptions);\n }\n return (0, _useFragmentInternal_CURRENT[\"default\"])(fragmentNode, fragmentRef, hookDisplayName, queryOptions);\n}\nmodule.exports = useFragmentInternal;","'use strict';\n\nvar ProfilerContext = require('./ProfilerContext');\nvar _require = require('./QueryResource'),\n getQueryCacheIdentifier = _require.getQueryCacheIdentifier,\n getQueryResourceForEnvironment = _require.getQueryResourceForEnvironment;\nvar useFetchTrackingRef = require('./useFetchTrackingRef');\nvar useFragmentInternal = require('./useFragmentInternal');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar React = require('react');\nvar useContext = React.useContext,\n useEffect = React.useEffect,\n useState = React.useState,\n useRef = React.useRef;\nfunction useLazyLoadQueryNode(_ref) {\n var query = _ref.query,\n componentDisplayName = _ref.componentDisplayName,\n fetchObservable = _ref.fetchObservable,\n fetchPolicy = _ref.fetchPolicy,\n fetchKey = _ref.fetchKey,\n renderPolicy = _ref.renderPolicy;\n var environment = useRelayEnvironment();\n var profilerContext = useContext(ProfilerContext);\n var QueryResource = getQueryResourceForEnvironment(environment);\n var _useState = useState(0),\n forceUpdateKey = _useState[0],\n forceUpdate = _useState[1];\n var _useFetchTrackingRef = useFetchTrackingRef(),\n startFetch = _useFetchTrackingRef.startFetch,\n completeFetch = _useFetchTrackingRef.completeFetch;\n var cacheBreaker = \"\".concat(forceUpdateKey, \"-\").concat(fetchKey !== null && fetchKey !== void 0 ? fetchKey : '');\n var cacheIdentifier = getQueryCacheIdentifier(environment, query, fetchPolicy, renderPolicy, cacheBreaker);\n var preparedQueryResult = profilerContext.wrapPrepareQueryResource(function () {\n return QueryResource.prepareWithIdentifier(cacheIdentifier, query, fetchObservable, fetchPolicy, renderPolicy, {\n start: startFetch,\n complete: completeFetch,\n error: completeFetch\n }, profilerContext);\n });\n var maybeHiddenOrFastRefresh = useRef(false);\n useEffect(function () {\n return function () {\n maybeHiddenOrFastRefresh.current = true;\n };\n }, []);\n useEffect(function () {\n if (maybeHiddenOrFastRefresh.current === true) {\n maybeHiddenOrFastRefresh.current = false;\n forceUpdate(function (n) {\n return n + 1;\n });\n return;\n }\n var disposable = QueryResource.retain(preparedQueryResult, profilerContext);\n return function () {\n disposable.dispose();\n };\n }, [environment, cacheIdentifier]);\n useEffect(function () {\n QueryResource.releaseTemporaryRetain(preparedQueryResult);\n });\n var fragmentNode = preparedQueryResult.fragmentNode,\n fragmentRef = preparedQueryResult.fragmentRef;\n var data = useFragmentInternal(fragmentNode, fragmentRef, componentDisplayName);\n return data;\n}\nmodule.exports = useLazyLoadQueryNode;","'use strict';\n\nvar areEqual = require(\"fbjs/lib/areEqual\");\nvar _require = require('react'),\n useState = _require.useState;\nfunction useMemoVariables(variables) {\n var _useState = useState(variables),\n mirroredVariables = _useState[0],\n setMirroredVariables = _useState[1];\n if (areEqual(variables, mirroredVariables)) {\n return mirroredVariables;\n } else {\n setMirroredVariables(variables);\n return variables;\n }\n}\nmodule.exports = useMemoVariables;","'use strict';\n\nvar useMemoVariables = require('./useMemoVariables');\nvar React = require('react');\nvar _require = require('relay-runtime'),\n createOperationDescriptor = _require.createOperationDescriptor,\n getRequest = _require.getRequest;\nvar useMemo = React.useMemo;\nfunction useMemoOperationDescriptor(gqlQuery, variables, cacheConfig) {\n var memoVariables = useMemoVariables(variables);\n var memoCacheConfig = useMemoVariables(cacheConfig || {});\n return useMemo(function () {\n return createOperationDescriptor(getRequest(gqlQuery), memoVariables, memoCacheConfig);\n }, [gqlQuery, memoVariables, memoCacheConfig]);\n}\nmodule.exports = useMemoOperationDescriptor;","'use strict';\n\nvar useLazyLoadQueryNode = require('./useLazyLoadQueryNode');\nvar useMemoOperationDescriptor = require('./useMemoOperationDescriptor');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar _require = require('relay-runtime'),\n fetchQuery = _require.__internal.fetchQuery;\nfunction useLazyLoadQuery(gqlQuery, variables, options) {\n var environment = useRelayEnvironment();\n var query = useMemoOperationDescriptor(gqlQuery, variables, options && options.networkCacheConfig ? options.networkCacheConfig : {\n force: true\n });\n var data = useLazyLoadQueryNode({\n componentDisplayName: 'useLazyLoadQuery()',\n fetchKey: options === null || options === void 0 ? void 0 : options.fetchKey,\n fetchObservable: fetchQuery(environment, query),\n fetchPolicy: options === null || options === void 0 ? void 0 : options.fetchPolicy,\n query: query,\n renderPolicy: options === null || options === void 0 ? void 0 : options.UNSTABLE_renderPolicy\n });\n return data;\n}\nmodule.exports = useLazyLoadQuery;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar useLazyLoadQuery = require('./useLazyLoadQuery');\nfunction useClientQuery(gqlQuery, variables, options) {\n var query = gqlQuery;\n return useLazyLoadQuery(query, variables, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, options), {}, {\n fetchPolicy: 'store-only'\n }));\n}\nmodule.exports = useClientQuery;","'use strict';\n\nvar _require = require('react'),\n useEffect = _require.useEffect,\n useRef = _require.useRef;\nfunction useIsMountedRef() {\n var isMountedRef = useRef(true);\n useEffect(function () {\n isMountedRef.current = true;\n return function () {\n isMountedRef.current = false;\n };\n }, []);\n return isMountedRef;\n}\nmodule.exports = useIsMountedRef;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar loadEntryPoint = require('./loadEntryPoint');\nvar useIsMountedRef = require('./useIsMountedRef');\nvar _require = require('react'),\n useCallback = _require.useCallback,\n useEffect = _require.useEffect,\n useRef = _require.useRef,\n useState = _require.useState;\nvar initialNullEntryPointReferenceState = {\n kind: 'NullEntryPointReference'\n};\nfunction useLoadEntryPoint(environmentProvider, entryPoint, options) {\n var _options$TEST_ONLY__i, _options$TEST_ONLY__i2, _options$TEST_ONLY__i3, _options$TEST_ONLY__i4;\n var initialEntryPointReferenceInternal = (_options$TEST_ONLY__i = options === null || options === void 0 ? void 0 : (_options$TEST_ONLY__i2 = options.TEST_ONLY__initialEntryPointData) === null || _options$TEST_ONLY__i2 === void 0 ? void 0 : _options$TEST_ONLY__i2.entryPointReference) !== null && _options$TEST_ONLY__i !== void 0 ? _options$TEST_ONLY__i : initialNullEntryPointReferenceState;\n var initialEntryPointParamsInternal = (_options$TEST_ONLY__i3 = options === null || options === void 0 ? void 0 : (_options$TEST_ONLY__i4 = options.TEST_ONLY__initialEntryPointData) === null || _options$TEST_ONLY__i4 === void 0 ? void 0 : _options$TEST_ONLY__i4.entryPointParams) !== null && _options$TEST_ONLY__i3 !== void 0 ? _options$TEST_ONLY__i3 : null;\n var isMountedRef = useIsMountedRef();\n var undisposedEntryPointReferencesRef = useRef(new Set([initialEntryPointReferenceInternal]));\n var _useState = useState(initialEntryPointReferenceInternal),\n entryPointReference = _useState[0],\n setEntryPointReference = _useState[1];\n var _useState2 = useState(initialEntryPointParamsInternal),\n entryPointParams = _useState2[0],\n setEntryPointParams = _useState2[1];\n var disposeEntryPoint = useCallback(function () {\n if (isMountedRef.current) {\n var nullEntryPointReference = {\n kind: 'NullEntryPointReference'\n };\n undisposedEntryPointReferencesRef.current.add(nullEntryPointReference);\n setEntryPointReference(nullEntryPointReference);\n }\n }, [setEntryPointReference, isMountedRef]);\n var entryPointLoaderCallback = useCallback(function (params) {\n if (isMountedRef.current) {\n var updatedEntryPointReference = loadEntryPoint(environmentProvider, entryPoint, params);\n undisposedEntryPointReferencesRef.current.add(updatedEntryPointReference);\n setEntryPointReference(updatedEntryPointReference);\n setEntryPointParams(params);\n }\n }, [environmentProvider, entryPoint, setEntryPointReference, isMountedRef]);\n var maybeHiddenOrFastRefresh = useRef(false);\n useEffect(function () {\n return function () {\n maybeHiddenOrFastRefresh.current = true;\n };\n }, []);\n useEffect(function () {\n if (maybeHiddenOrFastRefresh.current === true) {\n maybeHiddenOrFastRefresh.current = false;\n if (entryPointReference.kind !== 'NullEntryPointReference' && entryPointParams != null) {\n entryPointLoaderCallback(entryPointParams);\n }\n return;\n }\n var undisposedEntryPointReferences = undisposedEntryPointReferencesRef.current;\n if (isMountedRef.current) {\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(undisposedEntryPointReferences),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var undisposedEntryPointReference = _step.value;\n if (undisposedEntryPointReference === entryPointReference) {\n break;\n }\n undisposedEntryPointReferences[\"delete\"](undisposedEntryPointReference);\n if (undisposedEntryPointReference.kind !== 'NullEntryPointReference') {\n undisposedEntryPointReference.dispose();\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }, [entryPointReference, entryPointParams, entryPointLoaderCallback, isMountedRef]);\n useEffect(function () {\n return function disposeAllRemainingEntryPointReferences() {\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(undisposedEntryPointReferencesRef.current),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var unhandledStateChange = _step2.value;\n if (unhandledStateChange.kind !== 'NullEntryPointReference') {\n unhandledStateChange.dispose();\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n };\n }, []);\n return [entryPointReference.kind === 'NullEntryPointReference' ? null : entryPointReference, entryPointLoaderCallback, disposeEntryPoint];\n}\nmodule.exports = useLoadEntryPoint;","'use strict';\n\nvar useFragmentInternal = require('./useFragmentInternal');\nvar useStaticFragmentNodeWarning = require('./useStaticFragmentNodeWarning');\nvar _require = require('react'),\n useDebugValue = _require.useDebugValue;\nvar _require2 = require('relay-runtime'),\n getFragment = _require2.getFragment;\nfunction useFragment(fragment, key) {\n var fragmentNode = getFragment(fragment);\n useStaticFragmentNodeWarning(fragmentNode, 'first argument of useFragment()');\n var data = useFragmentInternal(fragmentNode, key, 'useFragment()');\n if (process.env.NODE_ENV !== \"production\") {\n useDebugValue({\n fragment: fragmentNode.name,\n data: data\n });\n }\n return data;\n}\nmodule.exports = useFragment;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar useIsMountedRef = require('./useIsMountedRef');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar React = require('react');\nvar _require = require('relay-runtime'),\n defaultCommitMutation = _require.commitMutation;\nvar useState = React.useState,\n useEffect = React.useEffect,\n useRef = React.useRef,\n useCallback = React.useCallback;\nfunction useMutation(mutation) {\n var commitMutationFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultCommitMutation;\n var environment = useRelayEnvironment();\n var isMountedRef = useIsMountedRef();\n var environmentRef = useRef(environment);\n var mutationRef = useRef(mutation);\n var inFlightMutationsRef = useRef(new Set());\n var _useState = useState(false),\n isMutationInFlight = _useState[0],\n setMutationInFlight = _useState[1];\n var cleanup = useCallback(function (disposable) {\n if (environmentRef.current === environment && mutationRef.current === mutation) {\n inFlightMutationsRef.current[\"delete\"](disposable);\n if (isMountedRef.current) {\n setMutationInFlight(inFlightMutationsRef.current.size > 0);\n }\n }\n }, [environment, isMountedRef, mutation]);\n useEffect(function () {\n if (environmentRef.current !== environment || mutationRef.current !== mutation) {\n inFlightMutationsRef.current = new Set();\n if (isMountedRef.current) {\n setMutationInFlight(false);\n }\n environmentRef.current = environment;\n mutationRef.current = mutation;\n }\n }, [environment, isMountedRef, mutation]);\n var commit = useCallback(function (config) {\n if (isMountedRef.current) {\n setMutationInFlight(true);\n }\n var disposable = commitMutationFn(environment, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, config), {}, {\n mutation: mutation,\n onCompleted: function onCompleted(response, errors) {\n var _config$onCompleted;\n cleanup(disposable);\n (_config$onCompleted = config.onCompleted) === null || _config$onCompleted === void 0 ? void 0 : _config$onCompleted.call(config, response, errors);\n },\n onError: function onError(error) {\n var _config$onError;\n cleanup(disposable);\n (_config$onError = config.onError) === null || _config$onError === void 0 ? void 0 : _config$onError.call(config, error);\n },\n onUnsubscribe: function onUnsubscribe() {\n var _config$onUnsubscribe;\n cleanup(disposable);\n (_config$onUnsubscribe = config.onUnsubscribe) === null || _config$onUnsubscribe === void 0 ? void 0 : _config$onUnsubscribe.call(config);\n },\n onNext: function onNext() {\n var _config$onNext;\n (_config$onNext = config.onNext) === null || _config$onNext === void 0 ? void 0 : _config$onNext.call(config);\n }\n }));\n inFlightMutationsRef.current.add(disposable);\n return disposable;\n }, [cleanup, commitMutationFn, environment, isMountedRef, mutation]);\n return [commit, isMutationInFlight];\n}\nmodule.exports = useMutation;","'use strict';\n\nvar invariant = require('invariant');\nvar _require = require('relay-runtime'),\n ConnectionInterface = _require.ConnectionInterface,\n getValueAtPath = _require.getValueAtPath;\nfunction getConnectionState(direction, fragmentNode, fragmentData, connectionPathInFragmentData) {\n var _pageInfo$END_CURSOR, _pageInfo$START_CURSO;\n var _ConnectionInterface$ = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$.EDGES,\n PAGE_INFO = _ConnectionInterface$.PAGE_INFO,\n HAS_NEXT_PAGE = _ConnectionInterface$.HAS_NEXT_PAGE,\n HAS_PREV_PAGE = _ConnectionInterface$.HAS_PREV_PAGE,\n END_CURSOR = _ConnectionInterface$.END_CURSOR,\n START_CURSOR = _ConnectionInterface$.START_CURSOR;\n var connection = getValueAtPath(fragmentData, connectionPathInFragmentData);\n if (connection == null) {\n return {\n cursor: null,\n hasMore: false\n };\n }\n !(typeof connection === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected connection in fragment `%s` to have been `null`, or ' + 'a plain object with %s and %s properties. Instead got `%s`.', fragmentNode.name, EDGES, PAGE_INFO, connection) : invariant(false) : void 0;\n var edges = connection[EDGES];\n var pageInfo = connection[PAGE_INFO];\n if (edges == null || pageInfo == null) {\n return {\n cursor: null,\n hasMore: false\n };\n }\n !Array.isArray(edges) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected connection in fragment `%s` to have a plural `%s` field. ' + 'Instead got `%s`.', fragmentNode.name, EDGES, edges) : invariant(false) : void 0;\n !(typeof pageInfo === 'object') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected connection in fragment `%s` to have a `%s` field. ' + 'Instead got `%s`.', fragmentNode.name, PAGE_INFO, pageInfo) : invariant(false) : void 0;\n var cursor = direction === 'forward' ? (_pageInfo$END_CURSOR = pageInfo[END_CURSOR]) !== null && _pageInfo$END_CURSOR !== void 0 ? _pageInfo$END_CURSOR : null : (_pageInfo$START_CURSO = pageInfo[START_CURSOR]) !== null && _pageInfo$START_CURSO !== void 0 ? _pageInfo$START_CURSO : null;\n !(cursor === null || typeof cursor === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected page info for connection in fragment `%s` to have a ' + 'valid `%s`. Instead got `%s`.', fragmentNode.name, START_CURSOR, cursor) : invariant(false) : void 0;\n var hasMore;\n if (direction === 'forward') {\n hasMore = cursor != null && pageInfo[HAS_NEXT_PAGE] === true;\n } else {\n hasMore = cursor != null && pageInfo[HAS_PREV_PAGE] === true;\n }\n return {\n cursor: cursor,\n hasMore: hasMore\n };\n}\nmodule.exports = getConnectionState;","'use strict';\n\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar invariant = require('invariant');\nvar React = require('react');\nvar _require = require('relay-runtime'),\n getObservableForActiveRequest = _require.__internal.getObservableForActiveRequest,\n getSelector = _require.getSelector;\nvar useEffect = React.useEffect,\n useState = React.useState,\n useMemo = React.useMemo;\nfunction useIsOperationNodeActive(fragmentNode, fragmentRef) {\n var environment = useRelayEnvironment();\n var observable = useMemo(function () {\n var selector = getSelector(fragmentNode, fragmentRef);\n if (selector == null) {\n return null;\n }\n !(selector.kind === 'SingularReaderSelector') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'useIsOperationNodeActive: Plural fragments are not supported.') : invariant(false) : void 0;\n return getObservableForActiveRequest(environment, selector.owner);\n }, [environment, fragmentNode, fragmentRef]);\n var _useState = useState(observable != null),\n isActive = _useState[0],\n setIsActive = _useState[1];\n useEffect(function () {\n var subscription;\n setIsActive(observable != null);\n if (observable != null) {\n var onCompleteOrError = function onCompleteOrError() {\n setIsActive(false);\n };\n subscription = observable.subscribe({\n complete: onCompleteOrError,\n error: onCompleteOrError\n });\n }\n return function () {\n if (subscription) {\n subscription.unsubscribe();\n }\n };\n }, [observable]);\n return isActive;\n}\nmodule.exports = useIsOperationNodeActive;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar getConnectionState = require('./getConnectionState');\nvar useIsMountedRef = require('./useIsMountedRef');\nvar useIsOperationNodeActive = require('./useIsOperationNodeActive');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar invariant = require('invariant');\nvar _require = require('react'),\n useCallback = _require.useCallback,\n useRef = _require.useRef,\n useState = _require.useState;\nvar _require2 = require('relay-runtime'),\n fetchQuery = _require2.__internal.fetchQuery,\n createOperationDescriptor = _require2.createOperationDescriptor,\n getPaginationVariables = _require2.getPaginationVariables,\n getRefetchMetadata = _require2.getRefetchMetadata,\n getSelector = _require2.getSelector;\nvar warning = require(\"fbjs/lib/warning\");\nfunction useLoadMoreFunction_EXPERIMENTAL(args) {\n var direction = args.direction,\n fragmentNode = args.fragmentNode,\n fragmentRef = args.fragmentRef,\n fragmentIdentifier = args.fragmentIdentifier,\n fragmentData = args.fragmentData,\n connectionPathInFragmentData = args.connectionPathInFragmentData,\n paginationRequest = args.paginationRequest,\n paginationMetadata = args.paginationMetadata,\n componentDisplayName = args.componentDisplayName,\n observer = args.observer,\n onReset = args.onReset;\n var environment = useRelayEnvironment();\n var _getRefetchMetadata = getRefetchMetadata(fragmentNode, componentDisplayName),\n identifierInfo = _getRefetchMetadata.identifierInfo;\n var identifierValue = (identifierInfo === null || identifierInfo === void 0 ? void 0 : identifierInfo.identifierField) != null && fragmentData != null && typeof fragmentData === 'object' ? fragmentData[identifierInfo.identifierField] : null;\n var fetchStatusRef = useRef({\n kind: 'none'\n });\n var _useState = useState(environment),\n mirroredEnvironment = _useState[0],\n setMirroredEnvironment = _useState[1];\n var _useState2 = useState(fragmentIdentifier),\n mirroredFragmentIdentifier = _useState2[0],\n setMirroredFragmentIdentifier = _useState2[1];\n var isParentQueryActive = useIsOperationNodeActive(fragmentNode, fragmentRef);\n var forceDisposeFn = useCallback(function () {\n if (fetchStatusRef.current.kind === 'fetching') {\n fetchStatusRef.current.subscription.unsubscribe();\n }\n fetchStatusRef.current = {\n kind: 'none'\n };\n }, []);\n var shouldReset = environment !== mirroredEnvironment || fragmentIdentifier !== mirroredFragmentIdentifier;\n if (shouldReset) {\n forceDisposeFn();\n onReset();\n setMirroredEnvironment(environment);\n setMirroredFragmentIdentifier(fragmentIdentifier);\n }\n var _getConnectionState = getConnectionState(direction, fragmentNode, fragmentData, connectionPathInFragmentData),\n cursor = _getConnectionState.cursor,\n hasMore = _getConnectionState.hasMore;\n var isMountedRef = useIsMountedRef();\n var loadMore = useCallback(function (count, options) {\n var onComplete = options === null || options === void 0 ? void 0 : options.onComplete;\n if (isMountedRef.current !== true) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected fetch on unmounted component for fragment ' + '`%s` in `%s`. It looks like some instances of your component are ' + 'still trying to fetch data but they already unmounted. ' + 'Please make sure you clear all timers, intervals, ' + 'async calls, etc that may trigger a fetch.', fragmentNode.name, componentDisplayName) : void 0;\n return {\n dispose: function dispose() {}\n };\n }\n var fragmentSelector = getSelector(fragmentNode, fragmentRef);\n if (fetchStatusRef.current.kind === 'fetching' || fragmentData == null || isParentQueryActive) {\n if (fragmentSelector == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected fetch while using a null fragment ref ' + 'for fragment `%s` in `%s`. When fetching more items, we expect ' + \"initial fragment data to be non-null. Please make sure you're \" + 'passing a valid fragment ref to `%s` before paginating.', fragmentNode.name, componentDisplayName, componentDisplayName) : void 0;\n }\n if (onComplete) {\n onComplete(null);\n }\n return {\n dispose: function dispose() {}\n };\n }\n !(fragmentSelector != null && fragmentSelector.kind !== 'PluralReaderSelector') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected to be able to find a non-plural fragment owner for ' + \"fragment `%s` when using `%s`. If you're seeing this, \" + 'this is likely a bug in Relay.', fragmentNode.name, componentDisplayName) : invariant(false) : void 0;\n var parentVariables = fragmentSelector.owner.variables;\n var fragmentVariables = fragmentSelector.variables;\n var extraVariables = options === null || options === void 0 ? void 0 : options.UNSTABLE_extraVariables;\n var baseVariables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, parentVariables), fragmentVariables);\n var paginationVariables = getPaginationVariables(direction, count, cursor, baseVariables, (0, _objectSpread2[\"default\"])({}, extraVariables), paginationMetadata);\n if (identifierInfo != null) {\n if (typeof identifierValue !== 'string') {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Expected result to have a string ' + '`%s` in order to refetch, got `%s`.', identifierInfo.identifierField, identifierValue) : void 0;\n }\n paginationVariables[identifierInfo.identifierQueryVariableName] = identifierValue;\n }\n var paginationQuery = createOperationDescriptor(paginationRequest, paginationVariables, {\n force: true\n });\n fetchQuery(environment, paginationQuery).subscribe((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, observer), {}, {\n start: function start(subscription) {\n fetchStatusRef.current = {\n kind: 'fetching',\n subscription: subscription\n };\n observer.start && observer.start(subscription);\n },\n complete: function complete() {\n fetchStatusRef.current = {\n kind: 'none'\n };\n observer.complete && observer.complete();\n onComplete && onComplete(null);\n },\n error: function error(_error) {\n fetchStatusRef.current = {\n kind: 'none'\n };\n observer.complete && observer.complete();\n onComplete && onComplete(_error);\n }\n }));\n return {\n dispose: function dispose() {}\n };\n }, [environment, identifierValue, direction, cursor, isParentQueryActive, fragmentData, fragmentNode.name, fragmentRef, componentDisplayName]);\n return [loadMore, hasMore, forceDisposeFn];\n}\nmodule.exports = useLoadMoreFunction_EXPERIMENTAL;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar getConnectionState = require('./getConnectionState');\nvar useFetchTrackingRef = require('./useFetchTrackingRef');\nvar useIsMountedRef = require('./useIsMountedRef');\nvar useIsOperationNodeActive = require('./useIsOperationNodeActive');\nvar useLoadMoreFunction_EXPERIMENTAL = require('./useLoadMoreFunction_EXPERIMENTAL');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar invariant = require('invariant');\nvar _require = require('react'),\n useCallback = _require.useCallback,\n useEffect = _require.useEffect,\n useState = _require.useState;\nvar _require2 = require('relay-runtime'),\n fetchQuery = _require2.__internal.fetchQuery,\n RelayFeatureFlags = _require2.RelayFeatureFlags,\n createOperationDescriptor = _require2.createOperationDescriptor,\n getPaginationVariables = _require2.getPaginationVariables,\n getRefetchMetadata = _require2.getRefetchMetadata,\n getSelector = _require2.getSelector;\nvar warning = require(\"fbjs/lib/warning\");\nfunction useLoadMoreFunction(args) {\n if (RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY) {\n return useLoadMoreFunction_EXPERIMENTAL(args);\n }\n return useLoadMoreFunction_CURRENT(args);\n}\nfunction useLoadMoreFunction_CURRENT(args) {\n var direction = args.direction,\n fragmentNode = args.fragmentNode,\n fragmentRef = args.fragmentRef,\n fragmentIdentifier = args.fragmentIdentifier,\n fragmentData = args.fragmentData,\n connectionPathInFragmentData = args.connectionPathInFragmentData,\n paginationRequest = args.paginationRequest,\n paginationMetadata = args.paginationMetadata,\n componentDisplayName = args.componentDisplayName,\n observer = args.observer,\n onReset = args.onReset;\n var environment = useRelayEnvironment();\n var _useFetchTrackingRef = useFetchTrackingRef(),\n isFetchingRef = _useFetchTrackingRef.isFetchingRef,\n startFetch = _useFetchTrackingRef.startFetch,\n disposeFetch = _useFetchTrackingRef.disposeFetch,\n completeFetch = _useFetchTrackingRef.completeFetch;\n var _getRefetchMetadata = getRefetchMetadata(fragmentNode, componentDisplayName),\n identifierInfo = _getRefetchMetadata.identifierInfo;\n var identifierValue = (identifierInfo === null || identifierInfo === void 0 ? void 0 : identifierInfo.identifierField) != null && fragmentData != null && typeof fragmentData === 'object' ? fragmentData[identifierInfo.identifierField] : null;\n var isMountedRef = useIsMountedRef();\n var _useState = useState(environment),\n mirroredEnvironment = _useState[0],\n setMirroredEnvironment = _useState[1];\n var _useState2 = useState(fragmentIdentifier),\n mirroredFragmentIdentifier = _useState2[0],\n setMirroredFragmentIdentifier = _useState2[1];\n var isParentQueryActive = useIsOperationNodeActive(fragmentNode, fragmentRef);\n var shouldReset = environment !== mirroredEnvironment || fragmentIdentifier !== mirroredFragmentIdentifier;\n if (shouldReset) {\n disposeFetch();\n onReset();\n setMirroredEnvironment(environment);\n setMirroredFragmentIdentifier(fragmentIdentifier);\n }\n var _getConnectionState = getConnectionState(direction, fragmentNode, fragmentData, connectionPathInFragmentData),\n cursor = _getConnectionState.cursor,\n hasMore = _getConnectionState.hasMore;\n useEffect(function () {\n return function () {\n disposeFetch();\n };\n }, [disposeFetch]);\n var loadMore = useCallback(function (count, options) {\n var onComplete = options === null || options === void 0 ? void 0 : options.onComplete;\n if (isMountedRef.current !== true) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected fetch on unmounted component for fragment ' + '`%s` in `%s`. It looks like some instances of your component are ' + 'still trying to fetch data but they already unmounted. ' + 'Please make sure you clear all timers, intervals, ' + 'async calls, etc that may trigger a fetch.', fragmentNode.name, componentDisplayName) : void 0;\n return {\n dispose: function dispose() {}\n };\n }\n var fragmentSelector = getSelector(fragmentNode, fragmentRef);\n if (isFetchingRef.current === true || fragmentData == null || isParentQueryActive) {\n if (fragmentSelector == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected fetch while using a null fragment ref ' + 'for fragment `%s` in `%s`. When fetching more items, we expect ' + \"initial fragment data to be non-null. Please make sure you're \" + 'passing a valid fragment ref to `%s` before paginating.', fragmentNode.name, componentDisplayName, componentDisplayName) : void 0;\n }\n if (onComplete) {\n onComplete(null);\n }\n return {\n dispose: function dispose() {}\n };\n }\n !(fragmentSelector != null && fragmentSelector.kind !== 'PluralReaderSelector') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected to be able to find a non-plural fragment owner for ' + \"fragment `%s` when using `%s`. If you're seeing this, \" + 'this is likely a bug in Relay.', fragmentNode.name, componentDisplayName) : invariant(false) : void 0;\n var parentVariables = fragmentSelector.owner.variables;\n var fragmentVariables = fragmentSelector.variables;\n var extraVariables = options === null || options === void 0 ? void 0 : options.UNSTABLE_extraVariables;\n var baseVariables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, parentVariables), fragmentVariables);\n var paginationVariables = getPaginationVariables(direction, count, cursor, baseVariables, (0, _objectSpread2[\"default\"])({}, extraVariables), paginationMetadata);\n if (identifierInfo != null) {\n if (typeof identifierValue !== 'string') {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Expected result to have a string ' + '`%s` in order to refetch, got `%s`.', identifierInfo.identifierField, identifierValue) : void 0;\n }\n paginationVariables[identifierInfo.identifierQueryVariableName] = identifierValue;\n }\n var paginationQuery = createOperationDescriptor(paginationRequest, paginationVariables, {\n force: true\n });\n fetchQuery(environment, paginationQuery).subscribe((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, observer), {}, {\n start: function start(subscription) {\n startFetch(subscription);\n observer.start && observer.start(subscription);\n },\n complete: function complete() {\n completeFetch();\n observer.complete && observer.complete();\n onComplete && onComplete(null);\n },\n error: function error(_error) {\n completeFetch();\n observer.error && observer.error(_error);\n onComplete && onComplete(_error);\n }\n }));\n return {\n dispose: disposeFetch\n };\n }, [environment, identifierValue, direction, cursor, startFetch, disposeFetch, completeFetch, isFetchingRef, isParentQueryActive, fragmentData, fragmentNode.name, fragmentRef, componentDisplayName]);\n return [loadMore, hasMore, disposeFetch];\n}\nmodule.exports = useLoadMoreFunction;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _require = require('./QueryResource'),\n getQueryResourceForEnvironment = _require.getQueryResourceForEnvironment;\nvar invariant = require('invariant');\nvar _require2 = require('relay-runtime'),\n fetchQueryInternal = _require2.__internal.fetchQuery,\n RelayFeatureFlags = _require2.RelayFeatureFlags,\n createOperationDescriptor = _require2.createOperationDescriptor,\n getPendingOperationsForFragment = _require2.getPendingOperationsForFragment,\n getSelector = _require2.getSelector,\n getVariablesFromFragment = _require2.getVariablesFromFragment,\n handlePotentialSnapshotErrors = _require2.handlePotentialSnapshotErrors;\nvar warning = require(\"fbjs/lib/warning\");\nfunction isMissingData(state) {\n if (state.kind === 'bailout') {\n return false;\n } else if (state.kind === 'singular') {\n return state.snapshot.isMissingData;\n } else {\n return state.snapshots.some(function (s) {\n return s.isMissingData;\n });\n }\n}\nfunction getMissingClientEdges(state) {\n if (state.kind === 'bailout') {\n return null;\n } else if (state.kind === 'singular') {\n var _state$snapshot$missi;\n return (_state$snapshot$missi = state.snapshot.missingClientEdges) !== null && _state$snapshot$missi !== void 0 ? _state$snapshot$missi : null;\n } else {\n var edges = null;\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var snapshot = _step.value;\n if (snapshot.missingClientEdges) {\n var _edges;\n edges = (_edges = edges) !== null && _edges !== void 0 ? _edges : [];\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(snapshot.missingClientEdges),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var edge = _step2.value;\n edges.push(edge);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return edges;\n }\n}\nfunction handlePotentialSnapshotErrorsForState(environment, state) {\n if (state.kind === 'singular') {\n handlePotentialSnapshotErrors(environment, state.snapshot.errorResponseFields);\n } else if (state.kind === 'plural') {\n var _iterator3 = (0, _createForOfIteratorHelper2[\"default\"])(state.snapshots),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var snapshot = _step3.value;\n handlePotentialSnapshotErrors(environment, snapshot.errorResponseFields);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n}\nfunction handleMissingClientEdge(environment, parentFragmentNode, parentFragmentRef, missingClientEdgeRequestInfo, queryOptions) {\n var originalVariables = getVariablesFromFragment(parentFragmentNode, parentFragmentRef);\n var variables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, originalVariables), {}, {\n id: missingClientEdgeRequestInfo.clientEdgeDestinationID\n });\n var queryOperationDescriptor = createOperationDescriptor(missingClientEdgeRequestInfo.request, variables, queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.networkCacheConfig);\n var QueryResource = getQueryResourceForEnvironment(environment);\n return QueryResource.prepare(queryOperationDescriptor, fetchQueryInternal(environment, queryOperationDescriptor), queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.fetchPolicy);\n}\nfunction getFragmentState(environment, fragmentSelector) {\n if (fragmentSelector == null) {\n return {\n kind: 'bailout'\n };\n } else if (fragmentSelector.kind === 'PluralReaderSelector') {\n if (fragmentSelector.selectors.length === 0) {\n return {\n kind: 'bailout'\n };\n } else {\n return {\n kind: 'plural',\n snapshots: fragmentSelector.selectors.map(function (s) {\n return environment.lookup(s);\n }),\n epoch: environment.getStore().getEpoch()\n };\n }\n } else {\n return {\n kind: 'singular',\n snapshot: environment.lookup(fragmentSelector),\n epoch: environment.getStore().getEpoch()\n };\n }\n}\nfunction readFragmentInternal(environment, fragmentNode, fragmentRef, hookDisplayName, queryOptions, fragmentKey) {\n var _fragmentNode$metadat, _fragmentNode$metadat2;\n var fragmentSelector = getSelector(fragmentNode, fragmentRef);\n var isPlural = (fragmentNode === null || fragmentNode === void 0 ? void 0 : (_fragmentNode$metadat = fragmentNode.metadata) === null || _fragmentNode$metadat === void 0 ? void 0 : _fragmentNode$metadat.plural) === true;\n if (isPlural) {\n !(fragmentRef == null || Array.isArray(fragmentRef)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected fragment pointer%s for fragment `%s` to be ' + 'an array, instead got `%s`. Remove `@relay(plural: true)` ' + 'from fragment `%s` to allow the prop to be an object.', fragmentKey != null ? \" for key `\".concat(fragmentKey, \"`\") : '', fragmentNode.name, typeof fragmentRef, fragmentNode.name) : invariant(false) : void 0;\n } else {\n !!Array.isArray(fragmentRef) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected fragment pointer%s for fragment `%s` not to be ' + 'an array, instead got `%s`. Add `@relay(plural: true)` ' + 'to fragment `%s` to allow the prop to be an array.', fragmentKey != null ? \" for key `\".concat(fragmentKey, \"`\") : '', fragmentNode.name, typeof fragmentRef, fragmentNode.name) : invariant(false) : void 0;\n }\n !(fragmentRef == null || isPlural && Array.isArray(fragmentRef) && fragmentRef.length === 0 || fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected to receive an object where `...%s` was spread, ' + 'but the fragment reference was not found`. This is most ' + 'likely the result of:\\n' + \"- Forgetting to spread `%s` in `%s`'s parent's fragment.\\n\" + '- Conditionally fetching `%s` but unconditionally passing %s prop ' + 'to `%s`. If the parent fragment only fetches the fragment conditionally ' + '- with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` ' + 'spread - then the fragment reference will not exist. ' + 'In this case, pass `null` if the conditions for evaluating the ' + 'fragment are not met (e.g. if the `@include(if)` value is false.)', fragmentNode.name, fragmentNode.name, hookDisplayName, fragmentNode.name, fragmentKey == null ? 'a fragment reference' : \"the `\".concat(fragmentKey, \"`\"), hookDisplayName) : invariant(false) : void 0;\n var state = getFragmentState(environment, fragmentSelector);\n var clientEdgeQueries = null;\n if (((_fragmentNode$metadat2 = fragmentNode.metadata) === null || _fragmentNode$metadat2 === void 0 ? void 0 : _fragmentNode$metadat2.hasClientEdges) === true) {\n var missingClientEdges = getMissingClientEdges(state);\n if (missingClientEdges !== null && missingClientEdges !== void 0 && missingClientEdges.length) {\n clientEdgeQueries = [];\n var _iterator4 = (0, _createForOfIteratorHelper2[\"default\"])(missingClientEdges),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var edge = _step4.value;\n clientEdgeQueries.push(handleMissingClientEdge(environment, fragmentNode, fragmentRef, edge, queryOptions));\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n }\n if (isMissingData(state)) {\n !(fragmentSelector != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'refinement, see invariants above') : invariant(false) : void 0;\n var fragmentOwner = fragmentSelector.kind === 'PluralReaderSelector' ? fragmentSelector.selectors[0].owner : fragmentSelector.owner;\n var pendingOperationsResult = getPendingOperationsForFragment(environment, fragmentNode, fragmentOwner);\n if (pendingOperationsResult) {\n throw pendingOperationsResult.promise;\n }\n handlePotentialSnapshotErrorsForState(environment, state);\n }\n var data;\n if (state.kind === 'bailout') {\n data = isPlural ? [] : null;\n } else if (state.kind === 'singular') {\n data = state.snapshot.data;\n } else {\n data = state.snapshots.map(function (s) {\n return s.data;\n });\n }\n if (RelayFeatureFlags.LOG_MISSING_RECORDS_IN_PROD || process.env.NODE_ENV !== \"production\") {\n if (fragmentRef != null && (data === undefined || Array.isArray(data) && data.length > 0 && data.every(function (d) {\n return d === undefined;\n }))) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Expected to have been able to read non-null data for ' + 'fragment `%s` declared in ' + '`%s`, since fragment reference was non-null. ' + \"Make sure that that `%s`'s parent isn't \" + 'holding on to and/or passing a fragment reference for data that ' + 'has been deleted.', fragmentNode.name, hookDisplayName, hookDisplayName) : void 0;\n }\n }\n return {\n data: data,\n clientEdgeQueries: clientEdgeQueries\n };\n}\nmodule.exports = readFragmentInternal;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _require = require('./loadQuery'),\n loadQuery = _require.loadQuery;\nvar useIsMountedRef = require('./useIsMountedRef');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar _require2 = require('react'),\n useCallback = _require2.useCallback,\n useEffect = _require2.useEffect,\n useInsertionEffect = _require2.useInsertionEffect,\n useRef = _require2.useRef,\n useState = _require2.useState;\nvar _require3 = require('relay-runtime'),\n getRequest = _require3.getRequest;\nvar initialNullQueryReferenceState = {\n kind: 'NullQueryReference'\n};\nfunction requestIsLiveQuery(preloadableRequest) {\n if (preloadableRequest.kind === 'PreloadableConcreteRequest') {\n return preloadableRequest.params.metadata.live !== undefined;\n }\n var request = getRequest(preloadableRequest);\n return request.params.metadata.live !== undefined;\n}\nvar CLEANUP_TIMEOUT = 1000 * 60 * 5;\nfunction useQueryLoader_EXPERIMENTAL(preloadableRequest, initialQueryReference) {\n var initialQueryReferenceInternal = initialQueryReference !== null && initialQueryReference !== void 0 ? initialQueryReference : initialNullQueryReferenceState;\n var environment = useRelayEnvironment();\n var isMountedRef = useIsMountedRef();\n var undisposedQueryReferencesRef = useRef(null);\n if (undisposedQueryReferencesRef.current == null) {\n undisposedQueryReferencesRef.current = new Set([initialQueryReferenceInternal]);\n }\n var _useState = useState(function () {\n return initialQueryReferenceInternal;\n }),\n queryReference = _useState[0],\n setQueryReference = _useState[1];\n var _useState2 = useState(function () {\n return initialQueryReferenceInternal;\n }),\n previousInitialQueryReference = _useState2[0],\n setPreviousInitialQueryReference = _useState2[1];\n if (initialQueryReferenceInternal !== previousInitialQueryReference) {\n var _undisposedQueryRefer;\n (_undisposedQueryRefer = undisposedQueryReferencesRef.current) === null || _undisposedQueryRefer === void 0 ? void 0 : _undisposedQueryRefer.add(initialQueryReferenceInternal);\n setPreviousInitialQueryReference(initialQueryReferenceInternal);\n setQueryReference(initialQueryReferenceInternal);\n }\n var disposeQuery = useCallback(function () {\n if (isMountedRef.current) {\n var _undisposedQueryRefer2;\n (_undisposedQueryRefer2 = undisposedQueryReferencesRef.current) === null || _undisposedQueryRefer2 === void 0 ? void 0 : _undisposedQueryRefer2.add(initialNullQueryReferenceState);\n setQueryReference(initialNullQueryReferenceState);\n }\n }, [isMountedRef]);\n var queryLoaderCallback = useCallback(function (variables, options) {\n var _options$__environmen, _undisposedQueryRefer3;\n if (!isMountedRef.current) {\n return;\n }\n var mergedOptions = options != null && options.hasOwnProperty('__environment') ? {\n fetchPolicy: options.fetchPolicy,\n networkCacheConfig: options.networkCacheConfig,\n __nameForWarning: options.__nameForWarning\n } : options;\n var updatedQueryReference = loadQuery((_options$__environmen = options === null || options === void 0 ? void 0 : options.__environment) !== null && _options$__environmen !== void 0 ? _options$__environmen : environment, preloadableRequest, variables, mergedOptions);\n (_undisposedQueryRefer3 = undisposedQueryReferencesRef.current) === null || _undisposedQueryRefer3 === void 0 ? void 0 : _undisposedQueryRefer3.add(updatedQueryReference);\n setQueryReference(updatedQueryReference);\n }, [environment, preloadableRequest, setQueryReference, isMountedRef]);\n var disposeAllRemainingQueryReferences = useCallback(function disposeAllRemainingQueryReferences(preloadableRequest, currentQueryReference) {\n var _undisposedQueryRefer4;\n var undisposedQueryReferences = (_undisposedQueryRefer4 = undisposedQueryReferencesRef.current) !== null && _undisposedQueryRefer4 !== void 0 ? _undisposedQueryRefer4 : new Set();\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(undisposedQueryReferences),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var undisposedQueryReference = _step.value;\n if (undisposedQueryReference === currentQueryReference) {\n continue;\n }\n if (undisposedQueryReference.kind !== 'NullQueryReference') {\n if (requestIsLiveQuery(preloadableRequest)) {\n undisposedQueryReference.dispose && undisposedQueryReference.dispose();\n } else {\n undisposedQueryReference.releaseQuery && undisposedQueryReference.releaseQuery();\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }, []);\n var cleanupTimerRef = useRef(null);\n useEffect(function () {\n disposeAllRemainingQueryReferences(preloadableRequest, queryReference);\n if (cleanupTimerRef.current != null) {\n clearTimeout(cleanupTimerRef.current);\n cleanupTimerRef.current = null;\n }\n return function () {\n cleanupTimerRef.current = setTimeout(function () {\n disposeAllRemainingQueryReferences(preloadableRequest, null);\n }, CLEANUP_TIMEOUT);\n };\n }, [preloadableRequest, queryReference]);\n useInsertionEffect(function () {\n return function () {\n cleanupTimerRef.current && clearTimeout(cleanupTimerRef.current);\n cleanupTimerRef.current = null;\n disposeAllRemainingQueryReferences(preloadableRequest, null);\n };\n }, [preloadableRequest]);\n return [queryReference.kind === 'NullQueryReference' ? null : queryReference, queryLoaderCallback, disposeQuery];\n}\nmodule.exports = useQueryLoader_EXPERIMENTAL;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _createForOfIteratorHelper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createForOfIteratorHelper\"));\nvar _require = require('./loadQuery'),\n loadQuery = _require.loadQuery;\nvar useIsMountedRef = require('./useIsMountedRef');\nvar useQueryLoader_EXPERIMENTAL = require('./useQueryLoader_EXPERIMENTAL');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar _require2 = require('react'),\n useCallback = _require2.useCallback,\n useEffect = _require2.useEffect,\n useRef = _require2.useRef,\n useState = _require2.useState;\nvar _require3 = require('relay-runtime'),\n RelayFeatureFlags = _require3.RelayFeatureFlags,\n getRequest = _require3.getRequest;\nvar initialNullQueryReferenceState = {\n kind: 'NullQueryReference'\n};\nfunction requestIsLiveQuery(preloadableRequest) {\n if (preloadableRequest.kind === 'PreloadableConcreteRequest') {\n return preloadableRequest.params.metadata.live !== undefined;\n }\n var request = getRequest(preloadableRequest);\n return request.params.metadata.live !== undefined;\n}\nfunction useQueryLoader(preloadableRequest, initialQueryReference) {\n if (RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY) {\n return useQueryLoader_EXPERIMENTAL(preloadableRequest, initialQueryReference);\n }\n return useQueryLoader_CURRENT(preloadableRequest, initialQueryReference);\n}\nfunction useQueryLoader_CURRENT(preloadableRequest, initialQueryReference) {\n var initialQueryReferenceInternal = initialQueryReference !== null && initialQueryReference !== void 0 ? initialQueryReference : initialNullQueryReferenceState;\n var environment = useRelayEnvironment();\n var isMountedRef = useIsMountedRef();\n var undisposedQueryReferencesRef = useRef(new Set([initialQueryReferenceInternal]));\n var _useState = useState(function () {\n return initialQueryReferenceInternal;\n }),\n queryReference = _useState[0],\n setQueryReference = _useState[1];\n var _useState2 = useState(function () {\n return initialQueryReferenceInternal;\n }),\n previousInitialQueryReference = _useState2[0],\n setPreviousInitialQueryReference = _useState2[1];\n if (initialQueryReferenceInternal !== previousInitialQueryReference) {\n undisposedQueryReferencesRef.current.add(initialQueryReferenceInternal);\n setPreviousInitialQueryReference(initialQueryReferenceInternal);\n setQueryReference(initialQueryReferenceInternal);\n }\n var disposeQuery = useCallback(function () {\n if (isMountedRef.current) {\n undisposedQueryReferencesRef.current.add(initialNullQueryReferenceState);\n setQueryReference(initialNullQueryReferenceState);\n }\n }, [isMountedRef]);\n var queryLoaderCallback = useCallback(function (variables, options) {\n var mergedOptions = options != null && options.hasOwnProperty('__environment') ? {\n fetchPolicy: options.fetchPolicy,\n networkCacheConfig: options.networkCacheConfig,\n __nameForWarning: options.__nameForWarning\n } : options;\n if (isMountedRef.current) {\n var _options$__environmen;\n var updatedQueryReference = loadQuery((_options$__environmen = options === null || options === void 0 ? void 0 : options.__environment) !== null && _options$__environmen !== void 0 ? _options$__environmen : environment, preloadableRequest, variables, mergedOptions);\n undisposedQueryReferencesRef.current.add(updatedQueryReference);\n setQueryReference(updatedQueryReference);\n }\n }, [environment, preloadableRequest, setQueryReference, isMountedRef]);\n var maybeHiddenOrFastRefresh = useRef(false);\n useEffect(function () {\n return function () {\n maybeHiddenOrFastRefresh.current = true;\n };\n }, []);\n useEffect(function () {\n if (maybeHiddenOrFastRefresh.current === true) {\n maybeHiddenOrFastRefresh.current = false;\n if (queryReference.kind !== 'NullQueryReference') {\n queryLoaderCallback(queryReference.variables, {\n fetchPolicy: queryReference.fetchPolicy,\n networkCacheConfig: queryReference.networkCacheConfig\n });\n }\n return;\n }\n var undisposedQueryReferences = undisposedQueryReferencesRef.current;\n if (isMountedRef.current) {\n var _iterator = (0, _createForOfIteratorHelper2[\"default\"])(undisposedQueryReferences),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var undisposedQueryReference = _step.value;\n if (undisposedQueryReference === queryReference) {\n break;\n }\n undisposedQueryReferences[\"delete\"](undisposedQueryReference);\n if (undisposedQueryReference.kind !== 'NullQueryReference') {\n if (requestIsLiveQuery(preloadableRequest)) {\n undisposedQueryReference.dispose && undisposedQueryReference.dispose();\n } else {\n undisposedQueryReference.releaseQuery && undisposedQueryReference.releaseQuery();\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }, [queryReference, isMountedRef, queryLoaderCallback, preloadableRequest]);\n useEffect(function () {\n return function disposeAllRemainingQueryReferences() {\n var _iterator2 = (0, _createForOfIteratorHelper2[\"default\"])(undisposedQueryReferencesRef.current),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var undisposedQueryReference = _step2.value;\n if (undisposedQueryReference.kind !== 'NullQueryReference') {\n if (requestIsLiveQuery(preloadableRequest)) {\n undisposedQueryReference.dispose && undisposedQueryReference.dispose();\n } else {\n undisposedQueryReference.releaseQuery && undisposedQueryReference.releaseQuery();\n }\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n };\n }, [preloadableRequest]);\n return [queryReference.kind === 'NullQueryReference' ? null : queryReference, queryLoaderCallback, disposeQuery];\n}\nmodule.exports = useQueryLoader;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar ProfilerContext = require('./ProfilerContext');\nvar _require = require('./QueryResource'),\n getQueryResourceForEnvironment = _require.getQueryResourceForEnvironment;\nvar readFragmentInternal = require('./readFragmentInternal');\nvar useFragmentInternal = require('./useFragmentInternal');\nvar useIsMountedRef = require('./useIsMountedRef');\nvar useQueryLoader = require('./useQueryLoader');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar invariant = require('invariant');\nvar _require2 = require('react'),\n useCallback = _require2.useCallback,\n useContext = _require2.useContext,\n useReducer = _require2.useReducer;\nvar _require3 = require('relay-runtime'),\n fetchQuery = _require3.__internal.fetchQuery,\n createOperationDescriptor = _require3.createOperationDescriptor,\n getFragmentIdentifier = _require3.getFragmentIdentifier,\n getRefetchMetadata = _require3.getRefetchMetadata,\n getSelector = _require3.getSelector,\n getValueAtPath = _require3.getValueAtPath;\nvar warning = require(\"fbjs/lib/warning\");\nfunction reducer(state, action) {\n switch (action.type) {\n case 'refetch':\n {\n var _action$refetchEnviro;\n return (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, state), {}, {\n fetchPolicy: action.fetchPolicy,\n mirroredEnvironment: (_action$refetchEnviro = action.refetchEnvironment) !== null && _action$refetchEnviro !== void 0 ? _action$refetchEnviro : state.mirroredEnvironment,\n onComplete: action.onComplete,\n refetchEnvironment: action.refetchEnvironment,\n refetchQuery: action.refetchQuery,\n renderPolicy: action.renderPolicy\n });\n }\n case 'reset':\n {\n return {\n fetchPolicy: undefined,\n mirroredEnvironment: action.environment,\n mirroredFragmentIdentifier: action.fragmentIdentifier,\n onComplete: undefined,\n refetchQuery: null,\n renderPolicy: undefined\n };\n }\n default:\n {\n action.type;\n throw new Error('useRefetchableFragmentNode: Unexpected action type');\n }\n }\n}\nfunction useRefetchableFragmentNode(fragmentNode, parentFragmentRef, componentDisplayName) {\n var parentEnvironment = useRelayEnvironment();\n var _getRefetchMetadata = getRefetchMetadata(fragmentNode, componentDisplayName),\n refetchableRequest = _getRefetchMetadata.refetchableRequest,\n fragmentRefPathInResponse = _getRefetchMetadata.fragmentRefPathInResponse,\n identifierInfo = _getRefetchMetadata.identifierInfo;\n var fragmentIdentifier = getFragmentIdentifier(fragmentNode, parentFragmentRef);\n var _useReducer = useReducer(reducer, {\n fetchPolicy: undefined,\n mirroredEnvironment: parentEnvironment,\n mirroredFragmentIdentifier: fragmentIdentifier,\n onComplete: undefined,\n refetchEnvironment: null,\n refetchQuery: null,\n renderPolicy: undefined\n }),\n refetchState = _useReducer[0],\n dispatch = _useReducer[1];\n var fetchPolicy = refetchState.fetchPolicy,\n mirroredEnvironment = refetchState.mirroredEnvironment,\n mirroredFragmentIdentifier = refetchState.mirroredFragmentIdentifier,\n onComplete = refetchState.onComplete,\n refetchEnvironment = refetchState.refetchEnvironment,\n refetchQuery = refetchState.refetchQuery,\n renderPolicy = refetchState.renderPolicy;\n var environment = refetchEnvironment !== null && refetchEnvironment !== void 0 ? refetchEnvironment : parentEnvironment;\n var QueryResource = getQueryResourceForEnvironment(environment);\n var profilerContext = useContext(ProfilerContext);\n var shouldReset = environment !== mirroredEnvironment || fragmentIdentifier !== mirroredFragmentIdentifier;\n var _useQueryLoader = useQueryLoader(refetchableRequest),\n queryRef = _useQueryLoader[0],\n loadQuery = _useQueryLoader[1],\n disposeQuery = _useQueryLoader[2];\n var fragmentRef = parentFragmentRef;\n if (shouldReset) {\n dispatch({\n type: 'reset',\n environment: environment,\n fragmentIdentifier: fragmentIdentifier\n });\n disposeQuery();\n } else if (refetchQuery != null && queryRef != null) {\n var debugPreviousIDAndTypename;\n if (process.env.NODE_ENV !== \"production\") {\n debugPreviousIDAndTypename = debugFunctions.getInitialIDAndType(refetchQuery.request.variables, fragmentRefPathInResponse, identifierInfo === null || identifierInfo === void 0 ? void 0 : identifierInfo.identifierQueryVariableName, environment);\n }\n var handleQueryCompleted = function handleQueryCompleted(maybeError) {\n onComplete && onComplete(maybeError !== null && maybeError !== void 0 ? maybeError : null);\n };\n var fetchObservable = queryRef.source != null ? queryRef.source : fetchQuery(environment, refetchQuery);\n var queryResult = profilerContext.wrapPrepareQueryResource(function () {\n return QueryResource.prepare(refetchQuery, fetchObservable, fetchPolicy, renderPolicy, {\n error: handleQueryCompleted,\n complete: function complete() {\n if (process.env.NODE_ENV !== \"production\") {\n debugFunctions.checkSameTypeAfterRefetch(debugPreviousIDAndTypename, environment, fragmentNode, componentDisplayName);\n }\n handleQueryCompleted();\n }\n }, queryRef.fetchKey, profilerContext);\n });\n var queryData = readFragmentInternal(environment, queryResult.fragmentNode, queryResult.fragmentRef, componentDisplayName).data;\n !(queryData != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Relay: Expected to be able to read refetch query response. ' + \"If you're seeing this, this is likely a bug in Relay.\") : invariant(false) : void 0;\n var refetchedFragmentRef = getValueAtPath(queryData, fragmentRefPathInResponse);\n fragmentRef = refetchedFragmentRef;\n if (process.env.NODE_ENV !== \"production\") {\n debugFunctions.checkSameIDAfterRefetch(debugPreviousIDAndTypename, fragmentRef, fragmentNode, componentDisplayName);\n }\n }\n var fragmentData = useFragmentInternal(fragmentNode, fragmentRef, componentDisplayName);\n var refetch = useRefetchFunction(componentDisplayName, dispatch, disposeQuery, fragmentData, fragmentIdentifier, fragmentNode, fragmentRefPathInResponse, identifierInfo, loadQuery, parentFragmentRef, refetchableRequest);\n return {\n fragmentData: fragmentData,\n fragmentRef: fragmentRef,\n refetch: refetch\n };\n}\nfunction useRefetchFunction(componentDisplayName, dispatch, disposeQuery, fragmentData, fragmentIdentifier, fragmentNode, fragmentRefPathInResponse, identifierInfo, loadQuery, parentFragmentRef, refetchableRequest) {\n var isMountedRef = useIsMountedRef();\n var identifierValue = (identifierInfo === null || identifierInfo === void 0 ? void 0 : identifierInfo.identifierField) != null && fragmentData != null && typeof fragmentData === 'object' ? fragmentData[identifierInfo.identifierField] : null;\n return useCallback(function (providedRefetchVariables, options) {\n if (isMountedRef.current !== true) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected call to `refetch` on unmounted component for fragment ' + '`%s` in `%s`. It looks like some instances of your component are ' + 'still trying to fetch data but they already unmounted. ' + 'Please make sure you clear all timers, intervals, ' + 'async calls, etc that may trigger a fetch.', fragmentNode.name, componentDisplayName) : void 0;\n return {\n dispose: function dispose() {}\n };\n }\n if (parentFragmentRef == null) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Unexpected call to `refetch` while using a null fragment ref ' + 'for fragment `%s` in `%s`. When calling `refetch`, we expect ' + \"initial fragment data to be non-null. Please make sure you're \" + 'passing a valid fragment ref to `%s` before calling ' + '`refetch`, or make sure you pass all required variables to `refetch`.', fragmentNode.name, componentDisplayName, componentDisplayName) : void 0;\n }\n var refetchEnvironment = options === null || options === void 0 ? void 0 : options.__environment;\n var fetchPolicy = options === null || options === void 0 ? void 0 : options.fetchPolicy;\n var renderPolicy = options === null || options === void 0 ? void 0 : options.UNSTABLE_renderPolicy;\n var onComplete = options === null || options === void 0 ? void 0 : options.onComplete;\n var fragmentSelector = getSelector(fragmentNode, parentFragmentRef);\n var parentVariables;\n var fragmentVariables;\n if (fragmentSelector == null) {\n parentVariables = {};\n fragmentVariables = {};\n } else if (fragmentSelector.kind === 'PluralReaderSelector') {\n var _fragmentSelector$sel, _fragmentSelector$sel2, _fragmentSelector$sel3, _fragmentSelector$sel4;\n parentVariables = (_fragmentSelector$sel = (_fragmentSelector$sel2 = fragmentSelector.selectors[0]) === null || _fragmentSelector$sel2 === void 0 ? void 0 : _fragmentSelector$sel2.owner.variables) !== null && _fragmentSelector$sel !== void 0 ? _fragmentSelector$sel : {};\n fragmentVariables = (_fragmentSelector$sel3 = (_fragmentSelector$sel4 = fragmentSelector.selectors[0]) === null || _fragmentSelector$sel4 === void 0 ? void 0 : _fragmentSelector$sel4.variables) !== null && _fragmentSelector$sel3 !== void 0 ? _fragmentSelector$sel3 : {};\n } else {\n parentVariables = fragmentSelector.owner.variables;\n fragmentVariables = fragmentSelector.variables;\n }\n var refetchVariables = (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, parentVariables), fragmentVariables), providedRefetchVariables);\n if (identifierInfo != null && !providedRefetchVariables.hasOwnProperty(identifierInfo.identifierQueryVariableName)) {\n if (typeof identifierValue !== 'string') {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Expected result to have a string ' + '`%s` in order to refetch, got `%s`.', identifierInfo.identifierField, identifierValue) : void 0;\n }\n refetchVariables[identifierInfo.identifierQueryVariableName] = identifierValue;\n }\n var refetchQuery = createOperationDescriptor(refetchableRequest, refetchVariables, {\n force: true\n });\n loadQuery(refetchQuery.request.variables, {\n fetchPolicy: fetchPolicy,\n __environment: refetchEnvironment,\n __nameForWarning: 'refetch'\n });\n dispatch({\n type: 'refetch',\n fetchPolicy: fetchPolicy,\n onComplete: onComplete,\n refetchEnvironment: refetchEnvironment,\n refetchQuery: refetchQuery,\n renderPolicy: renderPolicy\n });\n return {\n dispose: disposeQuery\n };\n }, [fragmentIdentifier, dispatch, disposeQuery, identifierValue, loadQuery]);\n}\nvar debugFunctions;\nif (process.env.NODE_ENV !== \"production\") {\n debugFunctions = {\n getInitialIDAndType: function getInitialIDAndType(memoRefetchVariables, fragmentRefPathInResponse, identifierQueryVariableName, environment) {\n var _require4 = require('relay-runtime'),\n Record = _require4.Record;\n var id = memoRefetchVariables === null || memoRefetchVariables === void 0 ? void 0 : memoRefetchVariables[identifierQueryVariableName !== null && identifierQueryVariableName !== void 0 ? identifierQueryVariableName : 'id'];\n if (fragmentRefPathInResponse.length !== 1 || fragmentRefPathInResponse[0] !== 'node' || id == null) {\n return null;\n }\n var recordSource = environment.getStore().getSource();\n var record = recordSource.get(id);\n var typename = record == null ? null : Record.getType(record);\n if (typename == null) {\n return null;\n }\n return {\n id: id,\n typename: typename\n };\n },\n checkSameTypeAfterRefetch: function checkSameTypeAfterRefetch(previousIDAndType, environment, fragmentNode, componentDisplayName) {\n var _require5 = require('relay-runtime'),\n Record = _require5.Record;\n if (!previousIDAndType) {\n return;\n }\n var recordSource = environment.getStore().getSource();\n var record = recordSource.get(previousIDAndType.id);\n var typename = record && Record.getType(record);\n if (typename !== previousIDAndType.typename) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Call to `refetch` returned data with a different ' + '__typename: was `%s`, now `%s`, on `%s` in `%s`. ' + 'Please make sure the server correctly implements' + 'unique id requirement.', previousIDAndType.typename, typename, fragmentNode.name, componentDisplayName) : void 0;\n }\n },\n checkSameIDAfterRefetch: function checkSameIDAfterRefetch(previousIDAndTypename, refetchedFragmentRef, fragmentNode, componentDisplayName) {\n if (previousIDAndTypename == null) {\n return;\n }\n var _require6 = require('relay-runtime'),\n ID_KEY = _require6.ID_KEY;\n var resultID = refetchedFragmentRef[ID_KEY];\n if (resultID != null && resultID !== previousIDAndTypename.id) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Relay: Call to `refetch` returned a different id, expected ' + '`%s`, got `%s`, on `%s` in `%s`. ' + 'Please make sure the server correctly implements ' + 'unique id requirement.', resultID, previousIDAndTypename.id, fragmentNode.name, componentDisplayName) : void 0;\n }\n }\n };\n}\nmodule.exports = useRefetchableFragmentNode;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar useLoadMoreFunction = require('./useLoadMoreFunction');\nvar useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar useStaticFragmentNodeWarning = require('./useStaticFragmentNodeWarning');\nvar _require = require('react'),\n useCallback = _require.useCallback,\n useDebugValue = _require.useDebugValue,\n useState = _require.useState;\nvar _require2 = require('relay-runtime'),\n getFragment = _require2.getFragment,\n getFragmentIdentifier = _require2.getFragmentIdentifier,\n getPaginationMetadata = _require2.getPaginationMetadata;\nfunction usePaginationFragment(fragmentInput, parentFragmentRef) {\n var fragmentNode = getFragment(fragmentInput);\n useStaticFragmentNodeWarning(fragmentNode, 'first argument of usePaginationFragment()');\n var componentDisplayName = 'usePaginationFragment()';\n var _getPaginationMetadat = getPaginationMetadata(fragmentNode, componentDisplayName),\n connectionPathInFragmentData = _getPaginationMetadat.connectionPathInFragmentData,\n paginationRequest = _getPaginationMetadat.paginationRequest,\n paginationMetadata = _getPaginationMetadat.paginationMetadata;\n var _useRefetchableFragme = useRefetchableFragmentInternal(fragmentNode, parentFragmentRef, componentDisplayName),\n fragmentData = _useRefetchableFragme.fragmentData,\n fragmentRef = _useRefetchableFragme.fragmentRef,\n refetch = _useRefetchableFragme.refetch;\n var fragmentIdentifier = getFragmentIdentifier(fragmentNode, fragmentRef);\n var _useLoadMore = useLoadMore({\n componentDisplayName: componentDisplayName,\n connectionPathInFragmentData: connectionPathInFragmentData,\n direction: 'backward',\n fragmentData: fragmentData,\n fragmentIdentifier: fragmentIdentifier,\n fragmentNode: fragmentNode,\n fragmentRef: fragmentRef,\n paginationMetadata: paginationMetadata,\n paginationRequest: paginationRequest\n }),\n loadPrevious = _useLoadMore[0],\n hasPrevious = _useLoadMore[1],\n isLoadingPrevious = _useLoadMore[2],\n disposeFetchPrevious = _useLoadMore[3];\n var _useLoadMore2 = useLoadMore({\n componentDisplayName: componentDisplayName,\n connectionPathInFragmentData: connectionPathInFragmentData,\n direction: 'forward',\n fragmentData: fragmentData,\n fragmentIdentifier: fragmentIdentifier,\n fragmentNode: fragmentNode,\n fragmentRef: fragmentRef,\n paginationMetadata: paginationMetadata,\n paginationRequest: paginationRequest\n }),\n loadNext = _useLoadMore2[0],\n hasNext = _useLoadMore2[1],\n isLoadingNext = _useLoadMore2[2],\n disposeFetchNext = _useLoadMore2[3];\n var refetchPagination = useCallback(function (variables, options) {\n disposeFetchNext();\n disposeFetchPrevious();\n return refetch(variables, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, options), {}, {\n __environment: undefined\n }));\n }, [disposeFetchNext, disposeFetchPrevious, refetch]);\n if (process.env.NODE_ENV !== \"production\") {\n useDebugValue({\n fragment: fragmentNode.name,\n data: fragmentData,\n hasNext: hasNext,\n isLoadingNext: isLoadingNext,\n hasPrevious: hasPrevious,\n isLoadingPrevious: isLoadingPrevious\n });\n }\n return {\n data: fragmentData,\n loadNext: loadNext,\n loadPrevious: loadPrevious,\n hasNext: hasNext,\n hasPrevious: hasPrevious,\n isLoadingNext: isLoadingNext,\n isLoadingPrevious: isLoadingPrevious,\n refetch: refetchPagination\n };\n}\nfunction useLoadMore(args) {\n var environment = useRelayEnvironment();\n var _useState = useState(false),\n isLoadingMore = _useState[0],\n reallySetIsLoadingMore = _useState[1];\n var setIsLoadingMore = function setIsLoadingMore(value) {\n var _environment$getSched;\n var schedule = (_environment$getSched = environment.getScheduler()) === null || _environment$getSched === void 0 ? void 0 : _environment$getSched.schedule;\n if (schedule) {\n schedule(function () {\n reallySetIsLoadingMore(value);\n });\n } else {\n reallySetIsLoadingMore(value);\n }\n };\n var observer = {\n start: function start() {\n return setIsLoadingMore(true);\n },\n complete: function complete() {\n return setIsLoadingMore(false);\n },\n error: function error() {\n return setIsLoadingMore(false);\n }\n };\n var handleReset = function handleReset() {\n return setIsLoadingMore(false);\n };\n var _useLoadMoreFunction = useLoadMoreFunction((0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, args), {}, {\n observer: observer,\n onReset: handleReset\n })),\n loadMore = _useLoadMoreFunction[0],\n hasMore = _useLoadMoreFunction[1],\n disposeFetch = _useLoadMoreFunction[2];\n return [loadMore, hasMore, isLoadingMore, disposeFetch];\n}\nmodule.exports = usePaginationFragment;","'use strict';\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar useFragment = require('./useFragment');\nvar useLoadMoreFunction = require('./useLoadMoreFunction');\nvar useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar useStaticFragmentNodeWarning = require('./useStaticFragmentNodeWarning');\nvar invariant = require('invariant');\nvar _require = require('react'),\n useCallback = _require.useCallback,\n useDebugValue = _require.useDebugValue,\n useEffect = _require.useEffect,\n useLayoutEffect = _require.useLayoutEffect,\n useMemo = _require.useMemo,\n useRef = _require.useRef,\n useState = _require.useState;\nvar _require2 = require('relay-runtime'),\n getFragment = _require2.getFragment,\n getFragmentIdentifier = _require2.getFragmentIdentifier,\n getPaginationMetadata = _require2.getPaginationMetadata;\nvar _require3 = require('relay-runtime'),\n ConnectionInterface = _require3.ConnectionInterface,\n getSelector = _require3.getSelector,\n getValueAtPath = _require3.getValueAtPath;\nfunction usePrefetchableForwardPaginationFragment_EXPERIMENTAL(fragmentInput, parentFragmentRef, bufferSize, initialSize, prefetchingLoadMoreOptions) {\n var _fragmentInput$metada, _fragmentInput$metada2;\n var minimalFetchSize = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;\n var fragmentNode = getFragment(fragmentInput);\n useStaticFragmentNodeWarning(fragmentNode, 'first argument of usePrefetchableForwardPaginationFragment_EXPERIMENTAL()');\n var componentDisplayName = 'usePrefetchableForwardPaginationFragment_EXPERIMENTAL()';\n var _getPaginationMetadat = getPaginationMetadata(fragmentNode, componentDisplayName),\n connectionPathInFragmentData = _getPaginationMetadat.connectionPathInFragmentData,\n paginationRequest = _getPaginationMetadat.paginationRequest,\n paginationMetadata = _getPaginationMetadat.paginationMetadata;\n var _useRefetchableFragme = useRefetchableFragmentInternal(fragmentNode, parentFragmentRef, componentDisplayName),\n fragmentData = _useRefetchableFragme.fragmentData,\n fragmentRef = _useRefetchableFragme.fragmentRef,\n refetch = _useRefetchableFragme.refetch;\n var fragmentIdentifier = getFragmentIdentifier(fragmentNode, fragmentRef);\n var edgeKeys = useMemo(function () {\n var connection = getValueAtPath(fragmentData, connectionPathInFragmentData);\n if (connection == null) {\n return null;\n }\n var _ConnectionInterface$ = ConnectionInterface.get(),\n EDGES = _ConnectionInterface$.EDGES;\n return connection[EDGES];\n }, [connectionPathInFragmentData, fragmentData]);\n var sourceSize = edgeKeys == null ? -1 : edgeKeys.length;\n var _useState = useState(initialSize != null ? initialSize : sourceSize),\n _numInUse = _useState[0],\n setNumInUse = _useState[1];\n var numInUse = _numInUse;\n if (_numInUse === -1 && sourceSize !== -1) {\n numInUse = initialSize != null ? initialSize : sourceSize;\n setNumInUse(numInUse);\n }\n var environment = useRelayEnvironment();\n var _useState2 = useState(false),\n isLoadingMore = _useState2[0],\n reallySetIsLoadingMore = _useState2[1];\n var _useState3 = useState(false),\n isRefetching = _useState3[0],\n setIsRefetching = _useState3[1];\n var availableSizeRef = useRef(0);\n var setIsLoadingMore = useCallback(function (value) {\n var _environment$getSched;\n var schedule = (_environment$getSched = environment.getScheduler()) === null || _environment$getSched === void 0 ? void 0 : _environment$getSched.schedule;\n if (schedule) {\n schedule(function () {\n reallySetIsLoadingMore(value);\n });\n } else {\n reallySetIsLoadingMore(value);\n }\n }, [environment]);\n var isLoadingMoreRef = useRef(false);\n var observer = useMemo(function () {\n return {\n start: function start() {\n isLoadingMoreRef.current = true;\n reallySetIsLoadingMore(true);\n },\n complete: function complete() {\n isLoadingMoreRef.current = false;\n setIsLoadingMore(false);\n },\n error: function error() {\n isLoadingMoreRef.current = false;\n setIsLoadingMore(false);\n }\n };\n }, [setIsLoadingMore]);\n var handleReset = useCallback(function () {\n if (!isRefetching) {\n var _environment$getSched2;\n var schedule = (_environment$getSched2 = environment.getScheduler()) === null || _environment$getSched2 === void 0 ? void 0 : _environment$getSched2.schedule;\n if (schedule) {\n schedule(function () {\n setNumInUse(-1);\n });\n } else {\n setNumInUse(-1);\n }\n }\n isLoadingMoreRef.current = false;\n setIsLoadingMore(false);\n }, [environment, isRefetching, setIsLoadingMore]);\n var _useLoadMoreFunction = useLoadMoreFunction({\n componentDisplayName: componentDisplayName,\n connectionPathInFragmentData: connectionPathInFragmentData,\n direction: 'forward',\n fragmentData: fragmentData,\n fragmentIdentifier: fragmentIdentifier,\n fragmentNode: fragmentNode,\n fragmentRef: fragmentRef,\n paginationMetadata: paginationMetadata,\n paginationRequest: paginationRequest,\n observer: observer,\n onReset: handleReset\n }),\n loadMore = _useLoadMoreFunction[0],\n hasNext = _useLoadMoreFunction[1],\n disposeFetchNext = _useLoadMoreFunction[2];\n useLayoutEffect(function () {\n availableSizeRef.current = sourceSize - numInUse;\n }, [numInUse, sourceSize]);\n var prefetchingUNSTABLE_extraVariables = prefetchingLoadMoreOptions === null || prefetchingLoadMoreOptions === void 0 ? void 0 : prefetchingLoadMoreOptions.UNSTABLE_extraVariables;\n var prefetchingOnComplete = prefetchingLoadMoreOptions === null || prefetchingLoadMoreOptions === void 0 ? void 0 : prefetchingLoadMoreOptions.onComplete;\n var showMore = useCallback(function (numToAdd, options) {\n if (!isLoadingMoreRef.current || availableSizeRef.current >= 0) {\n availableSizeRef.current -= numToAdd;\n setNumInUse(function (lastNumInUse) {\n return lastNumInUse + numToAdd;\n });\n if (!isLoadingMoreRef.current && availableSizeRef.current < 0) {\n loadMore(Math.max(minimalFetchSize, Math.min(numToAdd, bufferSize - availableSizeRef.current)), options !== null && options !== void 0 ? options : {\n onComplete: prefetchingOnComplete,\n UNSTABLE_extraVariables: typeof prefetchingUNSTABLE_extraVariables === 'function' ? prefetchingUNSTABLE_extraVariables({\n hasNext: hasNext,\n data: fragmentData,\n getServerEdges: function getServerEdges() {\n var selector = getSelector(edgesFragment, edgeKeys);\n if (selector == null) {\n return [];\n }\n !(selector.kind === 'PluralReaderSelector') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected a plural selector') : invariant(false) : void 0;\n return selector.selectors.map(function (sel) {\n return environment.lookup(sel).data;\n });\n }\n }) : prefetchingUNSTABLE_extraVariables\n });\n }\n }\n }, [bufferSize, loadMore, minimalFetchSize, edgeKeys, fragmentData, prefetchingUNSTABLE_extraVariables, prefetchingOnComplete]);\n var edgesFragment = (_fragmentInput$metada = fragmentInput.metadata) === null || _fragmentInput$metada === void 0 ? void 0 : (_fragmentInput$metada2 = _fragmentInput$metada.refetch) === null || _fragmentInput$metada2 === void 0 ? void 0 : _fragmentInput$metada2.edgesFragment;\n !(edgesFragment != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'usePrefetchableForwardPaginationFragment_EXPERIMENTAL: Expected the edge fragment to be defined, ' + 'please make sure you have added `prefetchable_pagination: true` to `@connection`') : invariant(false) : void 0;\n useEffect(function () {\n if (!isLoadingMoreRef.current && !isLoadingMore && !isRefetching && hasNext && (sourceSize - numInUse < bufferSize || numInUse > sourceSize)) {\n var onComplete = prefetchingOnComplete;\n loadMore(Math.max(bufferSize - Math.max(sourceSize - numInUse, 0), numInUse - sourceSize, minimalFetchSize), {\n onComplete: onComplete,\n UNSTABLE_extraVariables: typeof prefetchingUNSTABLE_extraVariables === 'function' ? prefetchingUNSTABLE_extraVariables({\n hasNext: hasNext,\n data: fragmentData,\n getServerEdges: function getServerEdges() {\n var selector = getSelector(edgesFragment, edgeKeys);\n if (selector == null) {\n return [];\n }\n !(selector.kind === 'PluralReaderSelector') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected a plural selector') : invariant(false) : void 0;\n return selector.selectors.map(function (sel) {\n return environment.lookup(sel).data;\n });\n }\n }) : prefetchingUNSTABLE_extraVariables\n });\n }\n }, [hasNext, bufferSize, isRefetching, loadMore, numInUse, prefetchingUNSTABLE_extraVariables, prefetchingOnComplete, sourceSize, edgeKeys, isLoadingMore, minimalFetchSize, environment, edgesFragment]);\n var realNumInUse = Math.min(numInUse, sourceSize);\n var derivedEdgeKeys = useMemo(function () {\n var _edgeKeys$slice;\n return (_edgeKeys$slice = edgeKeys === null || edgeKeys === void 0 ? void 0 : edgeKeys.slice(0, realNumInUse)) !== null && _edgeKeys$slice !== void 0 ? _edgeKeys$slice : [];\n }, [edgeKeys, realNumInUse]);\n var edges = useFragment(edgesFragment, derivedEdgeKeys);\n var refetchPagination = useCallback(function (variables, options) {\n disposeFetchNext();\n setIsRefetching(true);\n return refetch(variables, (0, _objectSpread2[\"default\"])((0, _objectSpread2[\"default\"])({}, options), {}, {\n onComplete: function onComplete(maybeError) {\n var _environment$getSched3, _options$onComplete;\n var schedule = (_environment$getSched3 = environment.getScheduler()) === null || _environment$getSched3 === void 0 ? void 0 : _environment$getSched3.schedule;\n if (schedule) {\n schedule(function () {\n setIsRefetching(false);\n setNumInUse(-1);\n });\n } else {\n setIsRefetching(false);\n setNumInUse(-1);\n }\n options === null || options === void 0 ? void 0 : (_options$onComplete = options.onComplete) === null || _options$onComplete === void 0 ? void 0 : _options$onComplete.call(options, maybeError);\n },\n __environment: undefined\n }));\n }, [disposeFetchNext, environment, refetch]);\n if (process.env.NODE_ENV !== \"production\") {\n useDebugValue({\n fragment: fragmentNode.name,\n data: fragmentData,\n hasNext: hasNext,\n isLoadingNext: isLoadingMore\n });\n }\n return {\n edges: edges,\n data: fragmentData,\n loadNext: showMore,\n hasNext: hasNext || sourceSize > numInUse,\n isLoadingNext: isLoadingMore && numInUse > sourceSize,\n refetch: refetchPagination\n };\n}\nmodule.exports = usePrefetchableForwardPaginationFragment_EXPERIMENTAL;","'use strict';\n\nvar useLazyLoadQueryNode = require('./useLazyLoadQueryNode');\nvar useMemoOperationDescriptor = require('./useMemoOperationDescriptor');\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar invariant = require('invariant');\nvar _require = require('react'),\n useDebugValue = _require.useDebugValue;\nvar _require2 = require('relay-runtime'),\n _require2$__internal = _require2.__internal,\n fetchQueryDeduped = _require2$__internal.fetchQueryDeduped,\n fetchQuery = _require2$__internal.fetchQuery;\nvar warning = require(\"fbjs/lib/warning\");\nfunction usePreloadedQuery(gqlQuery, preloadedQuery, options) {\n var environment = useRelayEnvironment();\n var fetchKey = preloadedQuery.fetchKey,\n fetchPolicy = preloadedQuery.fetchPolicy,\n source = preloadedQuery.source,\n variables = preloadedQuery.variables,\n networkCacheConfig = preloadedQuery.networkCacheConfig;\n var operation = useMemoOperationDescriptor(gqlQuery, variables, networkCacheConfig);\n var useLazyLoadQueryNodeParams;\n if (preloadedQuery.kind === 'PreloadedQuery_DEPRECATED') {\n !(operation.request.node.params.name === preloadedQuery.name) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'usePreloadedQuery(): Expected data to be prefetched for query `%s`, ' + 'got prefetch results for query `%s`.', operation.request.node.params.name, preloadedQuery.name) : invariant(false) : void 0;\n useLazyLoadQueryNodeParams = {\n componentDisplayName: 'usePreloadedQuery()',\n fetchKey: fetchKey,\n fetchObservable: fetchQueryDeduped(environment, operation.request.identifier, function () {\n if (environment === preloadedQuery.environment && source != null) {\n return environment.executeWithSource({\n operation: operation,\n source: source\n });\n } else {\n return environment.execute({\n operation: operation\n });\n }\n }),\n fetchPolicy: fetchPolicy,\n query: operation,\n renderPolicy: options === null || options === void 0 ? void 0 : options.UNSTABLE_renderPolicy\n };\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(preloadedQuery.isDisposed === false, 'usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. ' + 'This is because disposing the query marks it for future garbage ' + 'collection, and as such query results may no longer be present in the Relay ' + 'store. In the future, this will become a hard error.') : void 0;\n var fallbackFetchObservable = fetchQuery(environment, operation);\n var fetchObservable;\n if (source != null && environment === preloadedQuery.environment) {\n fetchObservable = source.ifEmpty(fallbackFetchObservable);\n } else if (environment !== preloadedQuery.environment) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'usePreloadedQuery(): usePreloadedQuery was passed a preloaded query ' + 'that was created with a different environment than the one that is currently ' + 'in context. In the future, this will become a hard error.') : void 0;\n fetchObservable = fallbackFetchObservable;\n } else {\n fetchObservable = fallbackFetchObservable;\n }\n useLazyLoadQueryNodeParams = {\n componentDisplayName: 'usePreloadedQuery()',\n fetchObservable: fetchObservable,\n fetchKey: fetchKey,\n fetchPolicy: fetchPolicy,\n query: operation,\n renderPolicy: options === null || options === void 0 ? void 0 : options.UNSTABLE_renderPolicy\n };\n }\n var data = useLazyLoadQueryNode(useLazyLoadQueryNodeParams);\n if (process.env.NODE_ENV !== \"production\") {\n useDebugValue({\n query: preloadedQuery.name,\n variables: preloadedQuery.variables,\n data: data,\n fetchKey: fetchKey,\n fetchPolicy: fetchPolicy,\n renderPolicy: options === null || options === void 0 ? void 0 : options.UNSTABLE_renderPolicy\n });\n }\n return data;\n}\nmodule.exports = usePreloadedQuery;","'use strict';\n\nvar useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal');\nvar useStaticFragmentNodeWarning = require('./useStaticFragmentNodeWarning');\nvar _require = require('react'),\n useDebugValue = _require.useDebugValue;\nvar _require2 = require('relay-runtime'),\n getFragment = _require2.getFragment;\nfunction useRefetchableFragment(fragmentInput, fragmentRef) {\n var fragmentNode = getFragment(fragmentInput);\n useStaticFragmentNodeWarning(fragmentNode, 'first argument of useRefetchableFragment()');\n var _useRefetchableFragme = useRefetchableFragmentInternal(fragmentNode, fragmentRef, 'useRefetchableFragment()'),\n fragmentData = _useRefetchableFragme.fragmentData,\n refetch = _useRefetchableFragme.refetch;\n if (process.env.NODE_ENV !== \"production\") {\n useDebugValue({\n fragment: fragmentNode.name,\n data: fragmentData\n });\n }\n return [fragmentData, refetch];\n}\nmodule.exports = useRefetchableFragment;","'use strict';\n\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar _require = require('react'),\n useEffect = _require.useEffect,\n useRef = _require.useRef;\nfunction useSubscribeToInvalidationState(dataIDs, callback) {\n var environment = useRelayEnvironment();\n var disposableRef = useRef(null);\n var stableDataIDs = Array.from(dataIDs).sort().join('');\n useEffect(function () {\n var store = environment.getStore();\n var invalidationState = store.lookupInvalidationState(dataIDs);\n var disposable = store.subscribeToInvalidationState(invalidationState, callback);\n disposableRef.current = disposable;\n return function () {\n return disposable.dispose();\n };\n }, [stableDataIDs, callback, environment]);\n return {\n dispose: function dispose() {\n if (disposableRef.current != null) {\n disposableRef.current.dispose();\n }\n }\n };\n}\nmodule.exports = useSubscribeToInvalidationState;","'use strict';\n\nvar useRelayEnvironment = require('./useRelayEnvironment');\nvar _require = require('react'),\n useEffect = _require.useEffect;\nvar _require2 = require('relay-runtime'),\n requestSubscription = _require2.requestSubscription;\nfunction useSubscription(config, requestSubscriptionFn) {\n var actualRequestSubscription = requestSubscriptionFn !== null && requestSubscriptionFn !== void 0 ? requestSubscriptionFn : requestSubscription;\n var environment = useRelayEnvironment();\n useEffect(function () {\n var _actualRequestSubscri = actualRequestSubscription(environment, config),\n dispose = _actualRequestSubscri.dispose;\n return dispose;\n }, [environment, config, actualRequestSubscription]);\n}\nmodule.exports = useSubscription;","'use strict';\n\nvar ReactRelayContext = require('./ReactRelayContext');\nvar ReactRelayFragmentContainer = require('./ReactRelayFragmentContainer');\nvar ReactRelayLocalQueryRenderer = require('./ReactRelayLocalQueryRenderer');\nvar ReactRelayPaginationContainer = require('./ReactRelayPaginationContainer');\nvar ReactRelayQueryRenderer = require('./ReactRelayQueryRenderer');\nvar ReactRelayRefetchContainer = require('./ReactRelayRefetchContainer');\nvar EntryPointContainer = require('./relay-hooks/EntryPointContainer.react');\nvar loadEntryPoint = require('./relay-hooks/loadEntryPoint');\nvar _require = require('./relay-hooks/loadQuery'),\n loadQuery = _require.loadQuery;\nvar ProfilerContext = require('./relay-hooks/ProfilerContext');\nvar RelayEnvironmentProvider = require('./relay-hooks/RelayEnvironmentProvider');\nvar useClientQuery = require('./relay-hooks/useClientQuery');\nvar useEntryPointLoader = require('./relay-hooks/useEntryPointLoader');\nvar useFragment = require('./relay-hooks/useFragment');\nvar useLazyLoadQuery = require('./relay-hooks/useLazyLoadQuery');\nvar useMutation = require('./relay-hooks/useMutation');\nvar usePaginationFragment = require('./relay-hooks/usePaginationFragment');\nvar usePrefetchableForwardPaginationFragment_EXPERIMENTAL = require('./relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL');\nvar usePreloadedQuery = require('./relay-hooks/usePreloadedQuery');\nvar useQueryLoader = require('./relay-hooks/useQueryLoader');\nvar useRefetchableFragment = require('./relay-hooks/useRefetchableFragment');\nvar useRelayEnvironment = require('./relay-hooks/useRelayEnvironment');\nvar useSubscribeToInvalidationState = require('./relay-hooks/useSubscribeToInvalidationState');\nvar useSubscription = require('./relay-hooks/useSubscription');\nvar RelayRuntime = require('relay-runtime');\nmodule.exports = {\n ConnectionHandler: RelayRuntime.ConnectionHandler,\n QueryRenderer: ReactRelayQueryRenderer,\n LocalQueryRenderer: ReactRelayLocalQueryRenderer,\n MutationTypes: RelayRuntime.MutationTypes,\n RangeOperations: RelayRuntime.RangeOperations,\n ReactRelayContext: ReactRelayContext,\n applyOptimisticMutation: RelayRuntime.applyOptimisticMutation,\n commitLocalUpdate: RelayRuntime.commitLocalUpdate,\n commitMutation: RelayRuntime.commitMutation,\n createFragmentContainer: ReactRelayFragmentContainer.createContainer,\n createPaginationContainer: ReactRelayPaginationContainer.createContainer,\n createRefetchContainer: ReactRelayRefetchContainer.createContainer,\n fetchQuery_DEPRECATED: RelayRuntime.fetchQuery_DEPRECATED,\n graphql: RelayRuntime.graphql,\n readInlineData: RelayRuntime.readInlineData,\n requestSubscription: RelayRuntime.requestSubscription,\n EntryPointContainer: EntryPointContainer,\n RelayEnvironmentProvider: RelayEnvironmentProvider,\n ProfilerContext: ProfilerContext,\n fetchQuery: RelayRuntime.fetchQuery,\n loadQuery: loadQuery,\n loadEntryPoint: loadEntryPoint,\n useClientQuery: useClientQuery,\n useFragment: useFragment,\n useLazyLoadQuery: useLazyLoadQuery,\n useEntryPointLoader: useEntryPointLoader,\n useQueryLoader: useQueryLoader,\n useMutation: useMutation,\n usePaginationFragment: usePaginationFragment,\n usePreloadedQuery: usePreloadedQuery,\n useRefetchableFragment: useRefetchableFragment,\n usePrefetchableForwardPaginationFragment_EXPERIMENTAL: usePrefetchableForwardPaginationFragment_EXPERIMENTAL,\n useRelayEnvironment: useRelayEnvironment,\n useSubscribeToInvalidationState: useSubscribeToInvalidationState,\n useSubscription: useSubscription\n};","/**\n * Relay v18.2.0\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nmodule.exports = require('./lib/index.js');\n"],"names":["RelayConcreteNode","RelayConcreteNode_1","invariant","condition","format","a","b","c","d","e","f","error","args","argIndex","browser","makeEmptyFunction","arg","emptyFunction","require$$0","require$$1","graphql","strings","getNode","taggedNode","node","isFragment","fragment","isRequest","request","isUpdatableQuery","updatableQuery","isInlineDataFragment","getFragment","getPaginationFragment","_fragment$metadata","refetch","connection","getRefetchableFragment","_fragment$metadata2","getRequest","getUpdatableQuery","getInlineDataFragment","GraphQLTag","_interopRequireDefault","module","_arrayLikeToArray","r","arrayLikeToArray","_unsupportedIterableToArray","t","unsupportedIterableToArray","_createForOfIteratorHelper","_n","F","o","u","_createForOfIteratorHelper2","require$$2","handleFieldErrors","environment","errorResponseFields","_iterator","_step","fieldError","err","_iterator2","_step2","_fieldError","eventShouldThrow","event","handlePotentialSnapshotErrors","handlePotentialSnapshotErrors_1","_typeof","toPrimitive","i","toPropertyKey","_defineProperty","defineProperty","ownKeys","_objectSpread2","_arrayWithoutHoles","_iterableToArray","_nonIterableSpread","arrayWithoutHoles","iterableToArray","nonIterableSpread","require$$3","_toConsumableArray","RelayDefaultHandleKey","_require","DEFAULT_HANDLE_KEY","getRelayHandleKey","handleName","key","fieldName","getRelayHandleKey_1","stableCopy","value","keys","stable","hasCycle","parents","newParents","children","v","stableCopy_1","_toConsumableArray2","require$$4","require$$5","VARIABLE","LITERAL","OBJECT_VALUE","LIST_VALUE","ERRORS_KEY","MODULE_COMPONENT_KEY_PREFIX","MODULE_OPERATION_KEY_PREFIX","getArgumentValue","variables","getStableVariableValue","field","_value","item","getArgumentValues","isWithinUnmatchedTypeRefinement","values","RelayStoreUtils","getHandleStorageKey","handleField","dynamicKey","handle","name","filters","filterArgs","formatStorageKey","getStorageKey","getArguments","_field$fragment2","_field$fragment","getStableStorageKey","argValues","argName","_JSON$stringify","getModuleComponentKey","documentName","getModuleOperationKey","RelayStoreUtils_1","getFragmentVariables","rootVariables","argumentVariables","definition","getOperationVariables","operation","providedVariables","operationVariables","def","varName","getLocalVariables","currentVariables","argumentDefinitions","nextVariables","nextArgs","_nextArgs$def$name","RelayConcreteVariables","aStackPool","bStackPool","areEqual","aStack","bStack","result","eq","objToStr","className","length","size","areEqual_1","_require2","CLIENT_EDGE_TRAVERSAL_PATH","FRAGMENT_OWNER_KEY","FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT","FRAGMENTS_KEY","ID_KEY","getSingularSelector","dataID","fragments","mixedOwner","mixedClientEdgeTraversalPath","owner","clientEdgeTraversalPath","fragmentVariables","createReaderSelector","getPluralSelector","items","selectors","ii","selector","getSelector","getSelectorsFromObject","object","getDataIDsFromObject","ids","getDataIDsFromFragment","getDataIDs","getDataID","id","getVariablesFromObject","itemVariables","getVariablesFromFragment","getVariablesFromPluralFragment","getVariablesFromSingularFragment","areEqualSingularSelectors","thisSelector","thatSelector","areEqualOwners","areEqualClientEdgeTraversalPaths","thisOwner","thatOwner","thisPath","thatPath","idx","areEqualSelectors","s","createNormalizationSelector","RelayModernSelector","_require3","contextStack","withResolverContext","context","cb","readFragment","fragmentInput","fragmentKey","fragmentNode","fragmentSelector","_context$getDataForRe","data","isMissingData","RESOLVER_FRAGMENT_ERRORED_SENTINEL","ResolverFragments","resolverDataInjector","_resolverFn","isRequiredField","resolverFn","resolverDataInjector_1","asyncGeneratorStep","n","_asyncToGenerator","_next","_throw","isPromise","p","isPromise_1","hostReportError","swallowError","RelayObservable","source","callback","obj","isObservable","fromObservable","fromPromise","fromValue","_proto","fn","_this","sink","subscription","sub","_error2","error2","next","_this2","current","observer","_this3","both","action","_this4","alternate","_this5","hasValue","_subscribe","_this6","mapValue","_this7","subscriptions","start","complete","pollInterval","_this8","timeout","poll","_this9","resolve","reject","resolved","val","promise","closed","cleanup","withClosed","doCleanup","_error3","isUncaughtThrownError","_error","_isUncaughtThrownError","RelayObservable_1","_defineProperty2","RelayReplaySubject","events","RelayReplaySubject_1","Observable","WEAKMAP_SUPPORTED","requestCachesByEnvironment","fetchQuery","fetchQueryDeduped","identifier","fetchFn","requestCache","getRequestCache","cachedRequest","response","cachedReq","getCachedRequest","getObservableForCachedRequest","cachedRequestInstance","requestSubscription","getActiveStatusObservableForCachedRequest","getPromiseForActiveRequest","resolveOnNext","getObservableForActiveRequest","cached","fetchQueryInternal","getPendingOperationsForFragment","fragmentOwner","_pendingOperations$ma","_pendingOperations","pendingOperations","_result$pendingOperat","_result$promise","operationTracker","pendingOperationName","op","fragmentName","promiseDisplayName","getPendingOperationsForFragment_1","require$$6","waitForFragmentData","_x","_x2","_x3","_waitForFragmentData","fragmentRef","_subscription","observeFragment","_subscription2","_fragmentNode$metadat","observeSelector","snapshot","snapshotToFragmentState","nextSnapshot","missingLiveResolverFields","missingClientEdges","observeFragmentExperimental","waitForFragmentExperimental","isValueResult","input","isErrorResult","experimental","RelayFeatureFlags","RelayFeatureFlags_1","internTable","nextIndex","digits","initDigitTable","INTERN_PREFIX","ESCAPE_PREFIX","escape","str","intern","limit","internedString","StringInterner","PREFIX","generateClientID","storageKey","index","internedId","isClientID","localID","generateUniqueClientID","generateClientObjectClientID","typename","localId","ClientID","CONNECTION_CALLS","config","ConnectionInterface","newConfig","call","ConnectionInterface_1","CONNECTION","NEXT_EDGE_INDEX","update","store","payload","record","_ConnectionInterface$","EDGES","END_CURSOR","HAS_NEXT_PAGE","HAS_PREV_PAGE","PAGE_INFO","PAGE_INFO_TYPE","START_CURSOR","serverConnection","serverPageInfo","clientConnectionID","clientConnectionField","clientConnection","clientPageInfo","_connection","_serverEdges","edge","buildConnectionEdge","prevEdges","prevPageInfo","nextEdges","_clientPageInfo","clientEndCursor","serverEndCursor","isAddingEdgesAfterCurrentPage","isFillingOutCurrentPage","nodeIDs","mergeEdges","_nodeIDs","startCursor","endCursor","serverEdges","getConnection","handleKey","getConnectionID","recordID","insertEdgeAfter","newEdge","cursor","_ConnectionInterface$2","CURSOR","edges","foundCursor","edgeCursor","createEdge","edgeType","_ConnectionInterface$3","NODE","edgeID","insertEdgeBefore","_ConnectionInterface$4","deleteNode","nodeID","_ConnectionInterface$5","_ConnectionInterface$6","edgeIndex","connectionEdge","sourceEdges","targetEdges","_ConnectionInterface$7","ConnectionHandler","DeleteRecordHandler","idOrIds","DeleteEdgeHandler","connections","idList","connectionID","AppendEdgeHandler","edgeUpdater","PrependEdgeHandler","AppendNodeHandler","nodeUpdater","PrependNodeHandler","insertFn","singleServerEdge","serverEdgeList","_loop","serverEdge","serverNode","serverNodeId","_iterator3","_step3","nodeAlreadyExistsInConnection","_connection$getLinked","_edge$getLinkedRecord","clientEdge","_ret","_serverNodes","_payload$handleArgs","edgeTypeName","singleServerNode","serverNodes","serverNodeList","_iterator4","_step4","_loop2","_iterator5","_step5","_connection$getLinked2","_edge$getLinkedRecord2","_ret2","MutationHandlers","RelayDefaultHandlerProvider","RelayDefaultHandlerProvider_1","isRelayModernEnvironment","isRelayModernEnvironment_1","deepFreeze","shouldBeFrozen","property","deepFreeze_1","getRequestIdentifier","parameters","requestID","getRequestIdentifier_1","_require4","ROOT_ID","require$$7","createOperationDescriptor","cacheConfig","requestDescriptor","createRequestDescriptor","operationDescriptor","RelayModernOperationDescriptor","MutationTypes","RangeOperations","convert","configs","optimisticUpdater","updater","configOptimisticUpdates","configUpdates","nodeDeleteResult","nodeDelete","rangeAddResult","rangeAdd","rangeDeleteResult","rangeDelete","eachOptimisticUpdater","eachUpdater","deletedIDFieldName","rootField","getRootField","deleteID","deleteIDs","parentID","connectionInfo","edgeName","parent","info","connectionKeys","pathToConnection","deletedIDField","eachField","idObject","recordProxy","RelayDeclarativeMutationConfig","applyOptimisticMutation","mutation","optimisticResponse","_RelayDeclarativeMuta","applyOptimisticMutation_1","commitLocalUpdate","commitLocalUpdate_1","require$$8","commitMutation","onError","onUnsubscribe","uploadables","errors","_config$onNext","onCompleted","commitMutation_1","debugCache","withProvidedVariables","userSuppliedVariables","providerFunction","providerResult","cachedResult","withProvidedVariables_1","convertFetch","logRequestInfo","ConvertToExecuteFunction","create","subscribe","observeFetch","execute","RelayNetwork","RelayQueryResponseCache","_ref","ttl","queryID","cacheKey","getCacheKey","isCurrent","fetchTime","firstKey","RelayQueryResponseCache_1","query","options","_options$fetchPolicy","queryNode","networkCacheConfig","fetchPolicy","readData","getNetworkObservable","fetchQuery_1","fetchQuery_DEPRECATED","fetchQuery_DEPRECATED_1","PreloadableQueryRegistry","callbacks","_this$_callbacks$get","dispose","preloadableQueryRegistry","PreloadableQueryRegistry_1","isScalarAndEqual","valueA","valueB","isScalarAndEqual_1","recycleNodesInto","prevData","nextData","recycleNodesIntoImpl","canMutate","canRecycle","prevArray","nextArray","canMutateNext","wasEqual","nextItem","prevValue","nextValue","prevObject","nextObject","prevKeys","nextKeys","_canMutateNext","recycleNodesInto_1","require$$9","require$$10","require$$11","RelayModernFragmentSpecResolver","props","rootIsQueryRenderer","disposeCallback","resolver","prevItem","prop","_nextItem","ownedSelectors","ownedSelector","SelectorListResolver","SelectorResolver","subscribeOnConstruction","_snapshot","_proto2","pendingOperationsResult","_pendingOperationsRes","_proto3","disposable","RelayModernFragmentSpecResolver_1","createFragmentSpecResolver","containerName","createFragmentSpecResolver_1","relayContext","firstReact","createRelayContext","react","createRelayContext_1","LIVE_RESOLVER_SUSPENSE_SENTINEL","suspenseSentinel","isSuspenseSentinel","LiveResolverSuspenseSentinel","_objectWithoutPropertiesLoose","_objectWithoutPropertiesLoose2","_toPropertyKey2","ACTOR_IDENTIFIER_KEY","INVALIDATED_AT_KEY","REF_KEY","REFS_KEY","RELAY_RESOLVER_VALUE_KEY","TYPENAME_KEY","clone","copyFields","typeName","fromObject","json","getFields","getType","getErrors","_record$ERRORS_KEY","getValue","getLinkedRecordID","maybeLink","link","hasLinkedRecordID","getLinkedRecordIDs","links","hasLinkedRecordIDs","getInvalidationEpoch","invalidatedAt","prevRecord","nextRecord","_updated2","prevErrorsByKey","nextErrorsByKey","updated","_updated","_storageKey2","nextErrors","prevErrors","setValue","setErrors","merge","record1","record2","errors1","fields1","errors2","fields2","updatedErrors","_storageKey3","_storageKey","freeze","errorsByStorageKey","otherStorageKey","setLinkedRecordID","linkedID","setLinkedRecordIDs","linkedIDs","setActorLinkedRecordID","actorIdentifier","getActorLinkedRecordID","getResolverLinkedRecordID","getResolverLinkedRecordIDs","resolverValue","toJSON","RelayModernRecord","RelayRecordState","RelayRecordState_1","EXISTENT","NONEXISTENT","UNKNOWN","RelayRecordSource","records","_step$value","RelayRecordSource_1","INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE","assertInternalActorIdentifier","ActorIdentifier","actorID","ACTOR_IDENTIFIER_FIELD_NAME","getActorIdentifier","getActorIdentifierFromPayload","ActorUtils","_excluded","SELF","buildErrorTrie","trie","path","_","lastIndex","currentTrie","existingValue","newValue","lastKey","container","getErrorsByKey","recursivelyCopyErrorsIntoArray","trieOrSet","_step2$value","childKey","oldLength","newLength","getNestedErrorTrieByKey","RelayErrorTrie","TYPE_SCHEMA_TYPE","generateTypeID","isTypeID","TypeID","_require5","_require6","_require7","require$$13","normalize","recordSource","normalizer","RelayResponseNormalizer","clientAbstractTypes","_i","_Object$keys","abstractType","concreteType","typeID","typeRecord","selection","conditionValue","prevVariables","abstractKey","implementsInterface","_typeName","_abstractKey","_implementsInterface","_typeName2","_typeID","_typeRecord","fieldKey","isClientExtension","defer","isDeferred","stream","isStreamed","moduleImport","componentKey","componentReference","operationKey","operationReference","responseKey","fieldValue","isOptionalField","errorTrie","oldErrorTrie","_field$concreteType","nextID","_field$concreteType2","prevIDs","nextIDs","_field$concreteType3","_field$concreteType4","prevID","RelayResponseNormalizer_1","_RelayModernRecord","_RelayRecordSource","_RelayResponseNormalizer","normalizeResponse","_response$extensions","relayPayload","normalizeResponse_1","readInlineData","_fragmentRef$FRAGMENT","inlineDataFragment","inlineData","readInlineData_1","generateID","generateID_1","wrapNetworkWithLogObserver","env","network","params","networkRequestId","logObserver","wrapNetworkWithLogObserver_1","RelayOperationTracker","pendingOperation","affectedOwners","pendingOperationIdentifier","newlyAffectedOwnersIdentifier","ownerIdentifier","pendingOperationsAffectingOwner","ownersAffectedByPendingOperation","_ownerIdentifier","affectedOwnersIdentifier","completedOwnersIdentifier","updatedOwnersIdentifier","_ownerIdentifier2","_ownerIdentifier3","promiseEntry","pendingOperationsForOwner","cachedPromiseEntry","RelayOperationTracker_1","registerEnvironmentWithDevTools","_global","global","devToolsHook","registerEnvironmentWithDevTools_1","VIEWER_ID","VIEWER_TYPE","ViewerPattern","defaultGetDataID","defaultGetDataID_1","defaultRelayFieldLogger","defaultRelayFieldLogger_1","REQUEST","SPLIT_OPERATION","getOperation","getOperation_1","createError","type","messageFormat","_len","messageParams","_key","message","RelayError","_len2","_key2","_len3","_key3","_window","_window$performance","isPerformanceNowAvailable","currentTimestamp","withStartAndDuration","startTime","withStartAndDuration_1","require$$12","require$$14","require$$15","ROOT_TYPE","require$$16","Executor","_ref2","getPublishQueue","getStore","isClientPayload","operationExecutions","operationLoader","optimisticConfig","scheduler","shouldProcessClientComponents","treatMissingFieldsAsNull","log","_this$_operation$requ","optimisticUpdates","activeState","task","priority","cancellationToken","_id","responses","results","messages","_ref3","responseWithData","responsePart","_responsePart$extensi","isOptimistic","responsesWithData","isFinal","x","_x$extensions","_partitionGraphQLResp","partitionGraphQLResponses","nonIncrementalResponses","incrementalResponses","hasNonIncrementalResponses","payloadFollowups","_payloadFollowups","updatedOwners","validateOptimisticResponsePayload","followupPayloads","followupPayload","moduleImportOptimisticUpdates","normalizationNode","normalizationRootNode","moduleImportPayload","modulePayload","_this$_optimisticUpda","payloadPart","payloads","incrementalPlaceholders","_followupPayload$acto","prevActorIdentifier","incrementalPlaceholder","_incrementalPlacehold","relayPayloads","placeholder","_this10","decrementPendingCount","networkObservable","loadedNode","publishModuleImportPayload","batchAsyncModuleUpdatesFN","shouldScheduleAsyncStoreUpdate","_withStartAndDuration","duration","_error4","_relayPayload$fieldPa","label","pathKey","resultForLabel","resultForPath","pendingResponses","parentRecord","parentPayloads","fieldPayload","fieldID","nextParentRecord","nextParentPayloads","previousParentEntry","handlePayloads","dedupePayload","stableStringify","_this11","incrementalResponse","_pathKey","_resultForPath","_placeholder","_placeholder$actorIde","parentEntry","fieldPayloads","_response$extensions2","handleFieldsRelayPayload","_this$_normalizeStrea","itemID","itemIndex","currentParentRecord","currentItems","currentItem","nextItems","normalizationPath","_field$alias","_this$_getDataID","finalPathEntry","scheduleFn","completeFn","_this12","owners","OperationExecutor","RelayRecordSourceMutator","base","baseRecord","sinkRecord","_nextRecord","_nextRecord2","sourceID","sinkID","sinkSource","baseSource","RelayRecordSourceMutator_1","nonUpdatableKeys","createUpdatableProxy","updatableProxyRootRecord","selections","recordSourceProxy","missingFieldHandlers","mutableUpdatableProxy","updateProxyFromSelections","_selection$alias3","_selection$alias","createGetterForPluralLinkedField","createSetterForPluralLinkedField","_selection$alias2","createGetterForSingularLinkedField","createSetterForSingularLinkedField","scalarFieldName","_selection$args","newVariables","getScalarUsingMissingFieldHandlers","_selection$args2","_selection$args3","recordProxies","__id","newValueRecord","_selection$args4","_selection$args5","linkedRecords","getPluralLinkedRecordUsingMissingFieldHandlers","linkedRecord","updatableProxy","_selection$args6","getLinkedRecordUsingMissingFieldHandlers","handler","newId","newIds","createUpdatableProxy_1","readUpdatableFragment","fragmentReference","proxy","updatableFragment","fragmentRoot","readUpdatableFragment_1","readUpdatableQuery","readUpdatableQuery_1","RelayRecordProxy","mutator","isValidLeafValue","_this$_source$get","clientID","RelayRecordProxy_1","_readUpdatableFragment","_readUpdatableQuery","RelayRecordSourceProxy","handlerProvider","dataIDs","status","sourceRecord","root","RelayRecordSourceProxy_1","RelayRecordSourceSelectorProxy","readSelector","plural","RelayRecordSourceSelectorProxy_1","RELAY_LIVE_RESOLVER","NoopResolverCache","evaluate","getDataForResolverFragment","_evaluate","resolverResult","updatedDataIDs","ResolverCache","FRAGMENT_PROP_NAME_KEY","MODULE_COMPONENT_KEY","read","resolverCache","resolverContext","reader","RelayReader","_selector$clientEdgeT","_this$_owner$node$ope","_this$_selector$node$","_this$_selector","isDataExpectedToBePresent","catchTo","_error$path","_this$_selector$node$2","_this$_selector$node$3","_this$_selector$node$4","_this$_selector$node$5","top","hadRequiredData","_selection$field$link","_selection$field$alia","to","previousResponseFields","childrenErrorResponseFields","markFieldErrorHasHandled","_error$error","displayError","requiredFieldValue","_selection$field$back","_selection$field","catchFieldValue","hasExpectedData","_hasExpectedData","alreadyMissingClientEdges","_hasExpectedData2","_hasExpectedData3","linkedField","_field$alias2","parentRecordID","singularReaderSelector","_getResolverValue","getResolverValue","resolverError","_getResolverValue2","_resolverError","_this$_resolverCache$","seenRecord","cachedSnapshot","suspenseID","fieldPath","missing","missingResolverField","_this$_selector$node$6","_this$_selector$node$7","_this$_selector$node$8","errorEvent","_backingField$alias","backingField","backingFieldData","clientEdgeResolverResponse","storeIDs","itemResponse","extractIdFromResponse","modelResolvers","modelResolver","model","edgeValues","storeID","traversalPathSegment","edgeValue","_field$alias3","_field$alias4","fieldNameOrIndex","_field$alias5","externalRef","_field$alias6","linkedArray","_moduleImport$compone","component","aliasedInlineFragment","inlineFragment","skipUnmatchedAbstractTypes","parentIsMissingData","parentIsWithinUnmatchedTypeRefinement","hasMissingData","fragmentSpread","fragmentPointers","fragmentSpreadOrFragment","parentFragmentName","parentVariables","resolverFunction","resolverFunctionArgs","individualResponse","RelayReader_1","_global$ErrorUtils$ap","_global$ErrorUtils","applyWithGuard","RelayPublishQueue","sourceOperation","runWillClearGcHold","runIsANoop","invalidatedStore","pendingPayload","recordSourceSelectorProxy","selectorData","lookupSelector","idsMarkedForInvalidation","payloadInvalidatedStore","processUpdate","optimisticUpdate","storeUpdater","RelayPublishQueue_1","RelayModernEnvironment","_config$log","_config$relayFieldLog","_config$UNSTABLE_defa","_config$getDataID","_config$missingFieldH","_config$handlerProvid","_config$scheduler","_config$isServer","_config$normalizeResp","_config$operationTrac","newNet","requestIdentifier","newUpdate","_sink","operationHasClientAbstractTypes","handlers","target","_ref4","_this$configName","_ref5","createSource","publishQueue","executor","RelayModernEnvironment_1","resolvedPromise","resolveImmediate","throwNext","resolveImmediate_1","LINKED_FIELD","cloneRelayHandleSourceField","sourceField","cloneRelayHandleSourceField_1","SCALAR_FIELD","cloneRelayScalarHandleSourceField","cloneRelayScalarHandleSourceField_1","check","getSourceForActor","getTargetForActor","defaultActorIdentifier","checker","DataChecker","_this$_getMutatorAndR","tuple","allItemsKnown","_recordType","_handleField","recordWasMissing","recordType","prevSource","prevMutator","prevRecordSourceProxy","_this$_getMutatorAndR2","DataChecker_1","shallowFreeze","RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS","getOutputTypeRecordIDs","maybeOutputTypeRecordIDs","getOutputTypeRecordIDs_1","isLiveStateValue","isLiveStateValue_1","RELAY_RESOLVER_ERROR_KEY","RELAY_RESOLVER_INVALIDATION_KEY","RELAY_RESOLVER_SNAPSHOT_KEY","RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY","RELAY_RESOLVER_LIVE_STATE_VALUE","RELAY_RESOLVER_LIVE_STATE_DIRTY","RELAY_RESOLVER_RECORD_TYPENAME","MODEL_PROPERTY_NAME","addDependencyEdge","from","set","LiveResolverCache","getRecordSource","expectRecord","_linkedID","maybeUnsubscribeFromLiveState","evaluationResult","liveState","currentRecord","_evaluationResult$sna2","fragmentStorageKey","resolverID","seenRecordIds","seenRecordID","_linkedID2","_liveState","answer","_linkedID3","liveStateID","liveStateRecord","unsubscribe","currentSource","linkedId","nextSource","resolverRecord","liveValue","normalizationInfo","prevOutputTypeRecordIDs","nextOutputTypeRecordIDs","currentValue","getConcreteTypename","outputTypeDataID","updateCurrentSource","_typename","_outputTypeDataID","_nextSource","_recordID","visited","recordsToVisit","fragmentSet","recordSet","anotherRecordID","markInvalidatedResolverRecord","originalInputs","readerSelector","_getDataForResolverFr","latestValues","recycled","normalizationOptions","_record","newRecord","invalidatedDataIDs","unsubscribeFromLiveResolverRecordsImpl","_iterator6","_step6","isResolverRecord","_iterator7","_step7","_iterator8","_step8","_recordID2","updatedRecord","markInvalidatedLinkedResolverRecords","getAllLinkedRecordIds","linkedRecordIDs","linkedRecordID","_RelayModernRecord$ge","currentLinkedDataIDs","_iterator9","_step9","_record2","_iterator10","_step10","previousUnsubscribe","getUpdatedDataIDs","updatedRecords","_normalizationInfo$co","LiveResolverCache_1","UNPUBLISH_RECORD_SENTINEL","RelayOptimisticRecordSource","merged","getOptimisticRecordIDs","RelayOptimisticRecordSource_1","mark","references","marker","RelayReferenceMarker","outputTypeRecordIDs","_dataID","_dataID2","_dataID3","RelayReferenceMarker_1","ITERATOR_KEY","hasOverlappingIDs","seenRecords","updatedRecordIDs","iterator","hasOverlappingIDs_1","hasSignificantOverlappingIDs","hasSignificantOverlappingIDs_1","RelayStoreSubscriptions","backup","hasUpdatedRecords","stale","hasOverlappingUpdates","RelayStoreSubscriptions_1","DEFAULT_RELEASE_BUFFER_SIZE","RelayModernStore","_options$gcReleaseBuf","_options$gcScheduler","_options$getDataID","_options$log","_options$operationLoa","_options$shouldProces","_options$treatMissing","initializeRecordSource","_this$_optimisticSour","_this$_optimisticSour2","_options$handlers","_options$getSourceFor","_options$getTargetFor","_options$defaultActor","globalInvalidationEpoch","rootEntry","operationLastWrittenAt","operationAvailability","getAvailabilityStatus","disposed","_queryCacheExpirationTime","rootEntryIsStale","invalidateStore","temporaryRootEntry","updateTargetFromSource","invalidations","prevInvalidationState","latestInvalidationState","currentInvalidations","prevInvalidations","invalidationState","isSubscribedToInvalidatedIDs","optimisticSource","optimisticIDs","gcRun","startEpoch","maybeResolverSubscription","nextUpdatedRecordIDs","prevUpdatedRecordIDs","rootRecord","currentWriteEpoch","invalidatedRecordIDs","targetRecord","operationFetchTime","queryCacheExpirationTime","mostRecentlyInvalidatedAt","isStale","RelayModernStore_1","onNext","_responses$","_responses$$extension","_responses$extensions","requestSubscription_1","createPayloadFor3DField","createPayloadFor3DField_1","hasOwnProperty","isEmptyObject","isEmptyObject_1","getFragmentIdentifier","fragmentOwnerIdentifier","sel","_ids","getFragmentIdentifier_1","getRefetchMetadata","componentDisplayName","_fragmentNode$metadat2","refetchMetadata","refetchableRequest","fragmentRefPathInResponse","identifierInfo","getRefetchMetadata_1","getPaginationMetadata","_getRefetchMetadata","paginationRequest","paginationMetadata","connectionPathInFragmentData","connectionMetadata","getPaginationMetadata_1","_objectSpread4","getPaginationVariables","direction","count","baseVariables","extraVariables","_objectSpread3","backwardMetadata","forwardMetadata","_paginationVariables","paginationVariables","getPaginationVariables_1","getValueAtPath","getValueAtPath_1","profileHandlersByName","defaultProfiler","RelayProfiler","state","stopHandlers","stopHandler","removeFromArray","array","element","RelayProfiler_1","require$$17","require$$18","require$$19","require$$20","require$$21","require$$22","require$$23","require$$24","require$$25","require$$26","require$$27","require$$28","require$$29","require$$30","require$$31","require$$32","require$$33","require$$34","require$$35","require$$36","require$$37","require$$38","require$$39","require$$40","require$$41","require$$42","require$$43","require$$44","require$$45","require$$46","require$$47","require$$48","require$$49","require$$50","require$$51","require$$52","require$$53","require$$54","require$$55","require$$56","require$$57","lib","relayRuntime","React","ReactRelayContext","_extends","_assertThisInitialized","_setPrototypeOf","setPrototypeOf","_inheritsLoose","assertFragmentMap","componentName","fragmentSpec","assertFragmentMap_1","getComponentName","getContainerName","Component","ReactRelayContainerUtils","ReactRelayQueryRendererContext","_extends2","useContext","buildReactRelayContainer","ComponentClass","createContainerWithFragments","Container","ForwardRef","ref","_queryRendererContext","queryRendererContext","ForwardContainer","buildReactRelayContainer_1","isRelayEnvironment","isRelayEnvironment_1","assertRelayContext","relay","isRelayContext","RelayContext","_assertThisInitialized2","_inheritsLoose2","_class","_React$Component","_props$__rootIsQueryR","resolverFromThisUpdate","updatedState","getRelayProp","nextProps","prevState","_nextProps$__rootIsQu","prevProps","nextState","_this$state","maybeNewData","_this$state2","_this$props","componentRef","createContainer","ReactRelayFragmentContainer","useLayoutEffect","useState","useRef","useMemo","useDeepCompare","latestValue","ReactRelayLocalQueryRenderer","render","latestVariables","dataRef","_useState","forceUpdate","cleanupFnRef","res","retainDisposable","subscribeDisposable","newSnapshot","nextCleanupFn","cleanupFn","ReactRelayLocalQueryRenderer_1","getRootVariablesForFragments","_selector$selectors$","_selector$selectors$2","_selector$owner$varia","fragmentOwnerVariables","getRootVariablesForFragments_1","ReactRelayQueryFetcher","_ref$preservePrevious","preservePreviousReferences","reference","onDataChange","fetchOptions","cacheConfigOverride","fetchHasReturned","oldOnDataChangeCallbacks","operationOverride","onDataChangeCallbacks","notifyFirstResult","_this$_fetchOptions","maybeNewOnDataChangeCallbacks","ReactRelayQueryFetcher_1","_excluded2","_excluded3","FORWARD","createGetConnectionFromProps","metadata","createGetFragmentVariables","countVariable","prevVars","totalCount","findConnectionMetadata","foundConnectionMetadata","isRelayModern","toObserver","observerOrCallback","connectionConfig","getConnectionFromProps","connectionData","refetchVariables","paginatingVariables","fetch","pageSize","prevRootVariables","nextRootVariables","restProps","pageInfo","hasMore","method","_assertRelayContext","_this$props2","fetchVariables","refetchSubscription","_this$props3","ReactRelayPaginationContainer","ReactRelayQueryRenderer","prevRequestCacheKey","getRenderProps","retryCallbacks","queryFetcher","requestCacheKey","getRequestCacheKey","fetchQueryAndComputeStateFromProps","resetQueryStateForUpdate","newState","getLoadingRenderProps","_prevProps","_this$state3","renderProps","getEmptyRenderProps","syncSnapshot","prevSelectionReferences","genericEnvironment","storeSnapshot","querySnapshot","_relayContext","ReactRelayQueryRenderer_1","renderVariables","latestState","relayProp","contextForChildren","ReactRelayRefetchContainer","ProfilerContext","ProfilerContext_1","useRelayEnvironment","useRelayEnvironment_1","useEffect","EntryPointContainer","entryPointReference","getComponent","queries","entryPoints","extraProps","rootModuleID","profilerContext","EntryPointContainer_react","ReplaySubject","fetchKey","loadQuery","preloadableRequest","environmentProviderOptions","retainReference","didExecuteNetworkSource","executeWithNetworkSource","executionSubject","returnedObservable","unsubscribeFromNetworkRequest","networkError","didMakeNetworkRequest","makeNetworkRequest","subject","observable","_observable$subscribe","subjectSubscription","unsubscribeFromExecution","executeDeduped","_fetchQueryDeduped$su","checkAvailabilityAndExecute","concreteRequest","shouldFetch","executeObservable","cancelOnLoadCallback","queryId","preloadableConcreteRequest","_params","_module","_PreloadableQueryRegi","preloadedModule","graphQlTaggedNode","isDisposed","isReleased","isNetworkRequestCancelled","releaseQuery","cancelNetworkRequest","loadQuery_1","loadEntryPoint","environmentProvider","entryPoint","entryPointParams","loadingPromise","preloadProps","preloadedQueries","preloadedEntryPoints","queriesPropNames","queryPropName","entryPointPropNames","entryPointPropName","entryPointDescription","nestedEntryPoint","nestedParams","innerDispose","componentModule","_loadingPromise","loadEntryPoint_1","RelayEnvironmentProvider","getEnvironmentForActor","RelayEnvironmentProvider_1","LRUCache","capacity","LRUCache_1","TEMPORARY_RETAIN_DURATION_MS","SuspenseResource","retain","_this$_releaseTempora","retention","releaseQueryTimeout","releaseTemporaryRetain","_this$_releaseTempora2","_this$_releaseTempora3","SuspenseResource_1","CACHE_CAPACITY","DEFAULT_FETCH_POLICY","DEFAULT_LIVE_FETCH_POLICY","operationIsLiveQuery","getQueryCacheIdentifier","maybeFetchPolicy","maybeRenderPolicy","cacheBreaker","renderPolicy","cacheIdentifier","getQueryResult","rootFragmentRef","createCacheEntry","networkSubscription","onDispose","isLiveQuery","currentNetworkSubscription","suspenseResource","cacheEntry","QueryResourceImpl","fetchObservable","temporaryRetainDisposable","entryWasCached","observerUnsubscribe","cachedValue","queryResult","queryAvailability","queryStatus","hasFullQuery","canPartialRender","shouldAllowRender","resolveNetworkPromise","_cacheEntry","_queryResult","observerStart","subscriptionWithConditionalCancelation","observerNext","observerError","observerComplete","_cacheEntry2","networkPromise","createQueryResource","dataResources","getQueryResourceForEnvironment","newDataResource","QueryResource","useUnsafeRef_DEPRECATED","init","useUnsafeRef_DEPRECATED_1","useCallback","useFetchTrackingRef","subscriptionRef","isFetchingRef","disposeFetch","startFetch","completeFetch","useFetchTrackingRef_1","_require3$__internal","getMissingClientEdges","_state$snapshot$missi","_edges","getSuspendingLiveResolver","_state$snapshot$missi2","missingFields","_missingFields","handlePotentialSnapshotErrorsForState","handleMissedUpdates","currentEpoch","currentSnapshot","updatedData","updatedCurrentSnapshot","didMissUpdates","currentSnapshots","_currentSnapshot","_updatedData","_updatedCurrentSnapshot","handleMissingClientEdge","parentFragmentNode","parentFragmentRef","missingClientEdgeRequestInfo","queryOptions","originalVariables","queryOperationDescriptor","subscribeToSnapshot","setState","hasPendingStateChanges","latestSnapshot","updates","dataChanged","disposables","_prevState$snapshots$","getFragmentState","useFragmentInternal","hookDisplayName","isPlural","_state","_useState2","_subscribedState","setSubscribedState","subscribedState","_useState3","previousFragmentSelector","setPreviousFragmentSelector","_useState4","previousEnvironment","setPreviousEnvironment","committedFragmentSelectorRef","_useMemo","clientEdgeQueries","activeRequestPromises","_handleMissingClientE","requestPromise","_disposables","suspendingLiveResolvers","currentState","hasStateUpdates","fragmentRefIsNullish","useFragmentInternal_CURRENT","useFragmentInternal_EXPERIMENTAL","storeSubscriptionRef","storeSubscription","stateForSubscription","_storeSubscriptionRef","useFragmentInternal_EXPERIMENTAL_1","_useFragmentInternal_CURRENT","_useFragmentInternal_EXPERIMENTAL","_relayRuntime","useFragmentInternal_1","useLazyLoadQueryNode","forceUpdateKey","_useFetchTrackingRef","preparedQueryResult","maybeHiddenOrFastRefresh","useLazyLoadQueryNode_1","useMemoVariables","mirroredVariables","setMirroredVariables","useMemoVariables_1","useMemoOperationDescriptor","gqlQuery","memoVariables","memoCacheConfig","useMemoOperationDescriptor_1","useLazyLoadQuery","useLazyLoadQuery_1","useClientQuery","useClientQuery_1","useIsMountedRef","isMountedRef","useIsMountedRef_1","initialNullEntryPointReferenceState","useLoadEntryPoint","_options$TEST_ONLY__i","_options$TEST_ONLY__i2","_options$TEST_ONLY__i3","_options$TEST_ONLY__i4","initialEntryPointReferenceInternal","initialEntryPointParamsInternal","undisposedEntryPointReferencesRef","setEntryPointReference","setEntryPointParams","disposeEntryPoint","nullEntryPointReference","entryPointLoaderCallback","updatedEntryPointReference","undisposedEntryPointReferences","undisposedEntryPointReference","unhandledStateChange","useEntryPointLoader","useFragment","useFragment_1","defaultCommitMutation","useMutation","commitMutationFn","environmentRef","mutationRef","inFlightMutationsRef","isMutationInFlight","setMutationInFlight","commit","_config$onCompleted","_config$onError","_config$onUnsubscribe","useMutation_1","getConnectionState","fragmentData","_pageInfo$END_CURSOR","_pageInfo$START_CURSO","getConnectionState_1","useIsOperationNodeActive","isActive","setIsActive","onCompleteOrError","useIsOperationNodeActive_1","useLoadMoreFunction_EXPERIMENTAL","fragmentIdentifier","onReset","identifierValue","fetchStatusRef","mirroredEnvironment","setMirroredEnvironment","mirroredFragmentIdentifier","setMirroredFragmentIdentifier","isParentQueryActive","forceDisposeFn","shouldReset","_getConnectionState","loadMore","onComplete","paginationQuery","useLoadMoreFunction_EXPERIMENTAL_1","useLoadMoreFunction","useLoadMoreFunction_CURRENT","useLoadMoreFunction_1","readFragmentInternal","readFragmentInternal_1","useInsertionEffect","initialNullQueryReferenceState","requestIsLiveQuery","CLEANUP_TIMEOUT","useQueryLoader_EXPERIMENTAL","initialQueryReference","initialQueryReferenceInternal","undisposedQueryReferencesRef","queryReference","setQueryReference","previousInitialQueryReference","setPreviousInitialQueryReference","_undisposedQueryRefer","disposeQuery","_undisposedQueryRefer2","queryLoaderCallback","_options$__environmen","_undisposedQueryRefer3","mergedOptions","updatedQueryReference","disposeAllRemainingQueryReferences","currentQueryReference","_undisposedQueryRefer4","undisposedQueryReferences","undisposedQueryReference","cleanupTimerRef","useQueryLoader_EXPERIMENTAL_1","useQueryLoader","useQueryLoader_CURRENT","useQueryLoader_1","useReducer","reducer","_action$refetchEnviro","useRefetchableFragmentNode","parentEnvironment","_useReducer","refetchState","dispatch","refetchEnvironment","refetchQuery","_useQueryLoader","queryRef","handleQueryCompleted","maybeError","queryData","refetchedFragmentRef","useRefetchFunction","providedRefetchVariables","_fragmentSelector$sel","_fragmentSelector$sel2","_fragmentSelector$sel3","_fragmentSelector$sel4","useRefetchableFragmentInternal","usePaginationFragment","_getPaginationMetadat","_useRefetchableFragme","_useLoadMore","useLoadMore","loadPrevious","hasPrevious","isLoadingPrevious","disposeFetchPrevious","_useLoadMore2","loadNext","hasNext","isLoadingNext","disposeFetchNext","refetchPagination","isLoadingMore","reallySetIsLoadingMore","setIsLoadingMore","_environment$getSched","schedule","handleReset","_useLoadMoreFunction","usePaginationFragment_1","usePrefetchableForwardPaginationFragment_EXPERIMENTAL","bufferSize","initialSize","prefetchingLoadMoreOptions","_fragmentInput$metada","_fragmentInput$metada2","minimalFetchSize","edgeKeys","sourceSize","_numInUse","setNumInUse","numInUse","isRefetching","setIsRefetching","availableSizeRef","isLoadingMoreRef","_environment$getSched2","prefetchingUNSTABLE_extraVariables","prefetchingOnComplete","showMore","numToAdd","lastNumInUse","edgesFragment","realNumInUse","derivedEdgeKeys","_edgeKeys$slice","_environment$getSched3","_options$onComplete","usePrefetchableForwardPaginationFragment_EXPERIMENTAL_1","_require2$__internal","usePreloadedQuery","preloadedQuery","useLazyLoadQueryNodeParams","fallbackFetchObservable","usePreloadedQuery_1","useRefetchableFragment","useRefetchableFragment_1","useSubscribeToInvalidationState","disposableRef","stableDataIDs","useSubscribeToInvalidationState_1","useSubscription","requestSubscriptionFn","actualRequestSubscription","_actualRequestSubscri","useSubscription_1","RelayRuntime","reactRelay"],"mappings":"uWAEA,IAAIA,GAAoB,CACtB,aAAc,cACd,YAAa,aACb,UAAW,YACX,iBAAkB,kBAClB,6BAA8B,2BAC9B,6BAA8B,2BAC9B,iBAAkB,kBAClB,MAAO,QACP,WAAY,aACZ,SAAU,WACV,gBAAiB,iBACjB,4BAA6B,2BAC7B,qBAAsB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7sC,GACjBjb,GAAWge,GACbynC,GAAYzlD,GAAS,UACnBykD,GAAkB/hC,GAClBumC,GAA2BtmC,GAC3BuwC,GAAiBtwC,GACjB6xC,GAAsBphC,GACtBqhC,GAAc/oC,GACdqnC,GAAmB1/B,GACnBuhC,GAActhC,GACdunC,GAAwBrnC,GACxB4oC,GAAwDlkB,GACxDgmB,GAAoB/lB,GACpBghB,GAAiB/gB,GACjBmmB,GAAyBlmB,GACzBqM,GAAsBpM,GACtBmmB,GAAkClmB,GAClCsmB,GAAkBrmB,GAClB0mB,GAAezmB,EACnBkC,GAAiB,CACf,kBAAmBukB,GAAa,kBAChC,cAAerc,GACf,mBAAoBpE,GACpB,cAAeygB,GAAa,cAC5B,gBAAiBA,GAAa,gBAC9B,kBAAmBpkB,GACnB,wBAAyBokB,GAAa,wBACtC,kBAAmBA,GAAa,kBAChC,eAAgBA,GAAa,eAC7B,wBAAyBhhB,GAA4B,gBACrD,0BAA2B0E,GAA8B,gBACzD,uBAAwB2B,GAA2B,gBACnD,sBAAuB2a,GAAa,sBACpC,QAASA,GAAa,QACtB,eAAgBA,GAAa,eAC7B,oBAAqBA,GAAa,oBAClC,oBAAqBra,GACrB,yBAA0BmE,GAC1B,gBAAiBxE,GACjB,WAAY0a,GAAa,WACzB,UAAW1Z,GACX,eAAgBqC,GAChB,eAAgBoL,GAChB,YAAawB,GACb,iBAAkB1B,GAClB,oBAAqByB,GACrB,eAAgB2E,GAChB,YAAavE,GACb,sBAAuBiG,GACvB,kBAAmBqD,GACnB,uBAAwBK,GACxB,sDAAuDnC,GACvD,oBAAqB1X,GACrB,gCAAiC+Z,GACjC,gBAAiBI,EACnB,ECvDAM,GAAiB3jE","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193]}