relay-runtime 2.0.0-rc.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/lib/{generateRelayClientID.js → ClientID.js} +10 -3
- package/lib/ConvertToExecuteFunction.js +6 -4
- package/lib/DataChecker.js +88 -69
- package/lib/NormalizationNode.js +1 -1
- package/lib/ReaderNode.js +1 -1
- package/lib/RelayCombinedEnvironmentTypes.js +1 -1
- package/lib/RelayConcreteNode.js +5 -2
- package/lib/RelayConcreteVariables.js +15 -9
- package/lib/RelayConnectionHandler.js +27 -20
- package/lib/RelayConnectionInterface.js +4 -2
- package/lib/RelayCore.js +48 -15
- package/lib/RelayDeclarativeMutationConfig.js +16 -15
- package/lib/RelayDefaultHandleKey.js +1 -1
- package/lib/RelayDefaultHandlerProvider.js +7 -6
- package/lib/RelayDefaultMissingFieldHandlers.js +26 -0
- package/lib/RelayError.js +7 -2
- package/lib/RelayFeatureFlags.js +16 -0
- package/lib/RelayInMemoryRecordSource.js +8 -2
- package/lib/RelayModernEnvironment.js +159 -237
- package/lib/RelayModernFragmentOwner.js +72 -0
- package/lib/RelayModernFragmentSpecResolver.js +66 -15
- package/lib/RelayModernGraphQLTag.js +9 -5
- package/lib/RelayModernOperationDescriptor.js +9 -6
- package/lib/RelayModernQueryExecutor.js +791 -0
- package/lib/RelayModernRecord.js +44 -24
- package/lib/RelayModernSelector.js +208 -82
- package/lib/RelayModernStore.js +66 -34
- package/lib/RelayNetwork.js +14 -7
- package/lib/RelayNetworkLogger.js +6 -2
- package/lib/RelayNetworkLoggerTransaction.js +8 -4
- package/lib/RelayNetworkTypes.js +1 -1
- package/lib/RelayObservable.js +72 -41
- package/lib/RelayOperationTracker.js +265 -0
- package/lib/RelayProfiler.js +10 -6
- package/lib/RelayPublishQueue.js +66 -47
- package/lib/RelayQueryResponseCache.js +11 -5
- package/lib/RelayReader.js +135 -126
- package/lib/RelayRecordProxy.js +24 -20
- package/lib/RelayRecordSourceMutator.js +88 -25
- package/lib/RelayRecordSourceProxy.js +38 -19
- package/lib/RelayRecordSourceSelectorProxy.js +10 -7
- package/lib/RelayRecordState.js +1 -1
- package/lib/RelayReferenceMarker.js +66 -55
- package/lib/RelayReplaySubject.js +134 -0
- package/lib/RelayResponseNormalizer.js +245 -134
- package/lib/RelayRuntimeTypes.js +1 -1
- package/lib/RelayStoreUtils.js +55 -16
- package/lib/RelayViewerHandler.js +8 -50
- package/lib/StoreInspector.js +171 -0
- package/lib/applyRelayModernOptimisticMutation.js +8 -2
- package/lib/cloneRelayHandleSourceField.js +17 -7
- package/lib/commitLocalUpdate.js +1 -1
- package/lib/commitRelayModernMutation.js +33 -13
- package/lib/createRelayContext.js +27 -0
- package/lib/createRelayNetworkLogger.js +8 -2
- package/lib/deepFreeze.js +1 -1
- package/lib/defaultGetDataID.js +24 -0
- package/lib/fetchQueryInternal.js +232 -0
- package/lib/fetchRelayModernQuery.js +5 -3
- package/lib/getFragmentIdentifier.js +52 -0
- package/lib/getFragmentSpecIdentifier.js +26 -0
- package/lib/getRelayHandleKey.js +8 -2
- package/lib/getRequestParametersIdentifier.js +26 -0
- package/lib/hasOverlappingIDs.js +1 -1
- package/lib/index.js +155 -53
- package/lib/isPromise.js +1 -1
- package/lib/isScalarAndEqual.js +1 -1
- package/lib/normalizeRelayPayload.js +19 -10
- package/lib/recycleNodesInto.js +23 -5
- package/lib/requestRelaySubscription.js +9 -3
- package/lib/validateMutation.js +13 -6
- package/package.json +2 -2
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/lib/normalizePayload.js +0 -37
- package/lib/simpleClone.js +0 -27
package/relay-runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relay
|
|
2
|
+
* Relay v5.0.0
|
|
3
3
|
*/
|
|
4
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/areEqual"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/sprintf"),require("fbjs/lib/resolveImmediate"),require("fbjs/lib/mapObject")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","fbjs/lib/ErrorUtils","fbjs/lib/areEqual","fbjs/lib/emptyFunction","fbjs/lib/removeFromArray","fbjs/lib/sprintf","fbjs/lib/resolveImmediate","fbjs/lib/mapObject"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/areEqual"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/sprintf"),require("fbjs/lib/resolveImmediate"),require("fbjs/lib/mapObject")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["fbjs/lib/ErrorUtils"],e["fbjs/lib/areEqual"],e["fbjs/lib/emptyFunction"],e["fbjs/lib/removeFromArray"],e["fbjs/lib/sprintf"],e["fbjs/lib/resolveImmediate"],e["fbjs/lib/mapObject"])}(window,function(e,t,r,n,o,i,a,s,c){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=45)}([function(e,t,r){"use strict";function n(e,t){var n={};return e.forEach(function(e){e.kind===r(3).VARIABLE?n[e.name]=function(e,t){return t.hasOwnProperty(e)||r(1)(!1,"getVariableValue(): Undefined variable `%s`.",e),r(21)(t[e])}(e.variableName,t):n[e.name]=e.value}),n}function o(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];null!=o&&r.push(n+":"+JSON.stringify(o))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var i={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MATCH_COMPONENT_KEY:"__match_component",MATCH_FRAGMENT_KEY:"__match_fragment",ID_KEY:"__id",MODULE_KEY:"__module",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",UNPUBLISH_RECORD_SENTINEL:Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),UNPUBLISH_FIELD_SENTINEL:Object.freeze({__UNPUBLISH_FIELD_SENTINEL:!0}),getArgumentValues:n,getHandleStorageKey:function(e,t){var i=e.handle,a=e.key,s=e.name,c=e.args,u=e.filters,l=r(26)(i,a,s);return c&&u&&0!==c.length&&0!==u.length?o(l,n(c.filter(function(e){return u.indexOf(e.name)>-1}),t)):l},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,i=e.name;return r&&0!==r.length?o(i,n(r,t)):i},getStableStorageKey:function(e,t){return o(e,r(21)(t))}};e.exports=i},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(6)(r(13));function o(e){return e[r(0).ID_KEY]}function i(e){return e[r(0).TYPENAME_KEY]}e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var n in e)e.hasOwnProperty(n)&&n!==r(0).ID_KEY&&n!==r(0).TYPENAME_KEY&&(t[n]=e[n])},create:function(e,t){var n={};return n[r(0).ID_KEY]=e,n[r(0).TYPENAME_KEY]=t,n},freeze:function(e){r(16)(e)},getDataID:o,getLinkedRecordID:function(e,t){var n=e[t];return null==n?n:("object"==typeof n&&n&&"string"==typeof n[r(0).REF_KEY]||r(1)(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.",e[r(0).ID_KEY],t,JSON.stringify(n)),n[r(0).REF_KEY])},getLinkedRecordIDs:function(e,t){var n=e[t];return null==n?n:("object"==typeof n&&Array.isArray(n[r(0).REFS_KEY])||r(1)(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.",e[r(0).ID_KEY],t,JSON.stringify(n)),n[r(0).REFS_KEY])},getType:i,getValue:function(e,t){var n=e[t];return n&&"object"==typeof n&&(n.hasOwnProperty(r(0).REF_KEY)||n.hasOwnProperty(r(0).REFS_KEY))&&r(1)(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[r(0).ID_KEY],t,n.hasOwnProperty(r(0).REF_KEY)?"a linked record":"plural linked records"),n},merge:function(e,t){var n,a,s=o(e),c=o(t);r(4)(s===c,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",s,c);var u=null!==(n=i(e))&&void 0!==n?n:null,l=null!==(a=i(t))&&void 0!==a?a:null;return r(4)(u===l,"RelayModernRecord: Invalid record merge, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",s,r(0).TYPENAME_KEY,u,l),Object.assign({},e,t)},setValue:function(e,t,n){var a=o(e);if(t===r(0).ID_KEY)r(4)(a===n,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",a,n);else if(t===r(0).TYPENAME_KEY){var s,c,u=null!==(s=i(e))&&void 0!==s?s:null,l=null!==(c=n)&&void 0!==c?c:null;r(4)(u===l,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",a,r(0).TYPENAME_KEY,u,l)}e[t]=n},setLinkedRecordID:function(e,t,n){var o={};o[r(0).REF_KEY]=n,e[t]=o},setLinkedRecordIDs:function(e,t,n){var o={};o[r(0).REFS_KEY]=n,e[t]=o},update:function(e,t){var a,s,c=o(e),u=o(t);r(4)(c===u,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",c,u);var l=null!==(a=i(e))&&void 0!==a?a:null,d=null!==(s=i(t))&&void 0!==s?s:null;r(4)(l===d,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",c,r(0).TYPENAME_KEY,l,d);for(var f=null,p=Object.keys(t),h=0;h<p.length;h++){var _=p[h];!f&&r(27)(e[_],t[_])||(f=null!==f?f:(0,n.default)({},e),t[_]!==r(0).UNPUBLISH_FIELD_SENTINEL?f[_]=t[_]:delete f[_])}return null!==f?f:e}}},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LOCAL_ARGUMENT:"LocalArgument",MATCH_FIELD:"MatchField",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",VARIABLE:"Variable"}},function(e,r){e.exports=t},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";function n(e){var t="function"==typeof e?e:"function"==typeof e.modern?e.modern:null;if(null===t)return e;var r=t();return r.default?r.default:r}function o(e){var t=n(e);return"object"==typeof t&&null!==t&&t.kind===r(3).FRAGMENT}function i(e){var t=n(e);return"object"==typeof t&&null!==t&&t.kind===r(3).REQUEST}function a(e){var t=n(e);return o(t)||r(1)(!1,"RelayModernGraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:a,getPaginationFragment:function(e){var t,r=a(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,o=null===n||void 0===n?void 0:n.connection;return null===n||"object"!=typeof n||null===o||"object"!=typeof o?null:r},getRefetchableFragment:function(e){var t,r=a(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=n(e);return i(t)||r(1)(!1,"RelayModernGraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},graphql:function(e){r(1)(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`.")},isFragment:o,isRequest:i}},function(e,t,r){"use strict";var n="client:";e.exports=function(e,t,r){var o=e+":"+t;return null!=r&&(o+=":"+r),0!==o.indexOf(n)&&(o=n+o),o}},function(e,t,r){"use strict";e.exports={areEqualSelectors:r(14).areEqualSelectors,createFragmentSpecResolver:function(e,t,n,o,i){return Object.keys(n).forEach(function(e){var n=o[e];r(4)(void 0!==n,"createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",e,t)}),new(r(50))(e,n,o,i)},createOperationDescriptor:r(51).createOperationDescriptor,getDataIDsFromObject:r(14).getDataIDsFromObject,getFragment:r(7).getFragment,getPaginationFragment:r(7).getPaginationFragment,getRefetchableFragment:r(7).getRefetchableFragment,getRequest:r(7).getRequest,getSelector:r(14).getSelector,getSelectorList:r(14).getSelectorList,getSelectorsFromObject:r(14).getSelectorsFromObject,getVariablesFromObject:r(14).getVariablesFromObject,isFragment:r(7).isFragment,isRequest:r(7).isRequest}},function(e,t,r){"use strict";var n="connection",o="__connection_next_edge_index";function i(e,t,n){if(null==n)return n;var i=r(11).get().EDGES,a=t.getValue(o);"number"!=typeof a&&r(1)(!1,"RelayConnectionHandler: Expected %s to be a number, got `%s`.",o,a);var s=r(8)(t.getDataID(),i,a),c=e.create(s,n.getType());return c.copyFieldsFrom(n),t.setValue(a+1,o),c}function a(e,t,n){for(var o=r(11).get().NODE,i=0;i<e.length;i++){var a=e[i];if(a){var s=a.getLinkedRecord(o),c=s&&s.getValue("id");if(c){if(n.has(c))continue;n.add(c)}t.push(a)}}}e.exports={buildConnectionEdge:i,createEdge:function(e,t,n,o){var i=r(11).get().NODE,a=r(8)(t.getDataID(),n.getDataID()),s=e.get(a);return s||(s=e.create(a,o)),s.setLinkedRecord(n,i),s},deleteNode:function(e,t){var n=r(11).get(),o=n.EDGES,i=n.NODE,a=e.getLinkedRecords(o);if(a){for(var s,c=0;c<a.length;c++){var u=a[c],l=u&&u.getLinkedRecord(i);null!=l&&l.getDataID()===t?void 0===s&&(s=a.slice(0,c)):void 0!==s&&s.push(u)}void 0!==s&&e.setLinkedRecords(s,o)}},getConnection:function(e,t,o){var i=r(26)(n,t,null);return e.getLinkedRecord(i,o)},insertEdgeAfter:function(e,t,n){var o=r(11).get(),i=o.CURSOR,a=o.EDGES,s=e.getLinkedRecords(a);if(s){var c;if(null==n)c=s.concat(t);else{c=[];for(var u=!1,l=0;l<s.length;l++){var d=s[l];c.push(d),null!=d&&n===d.getValue(i)&&(c.push(t),u=!0)}u||c.push(t)}e.setLinkedRecords(c,a)}else e.setLinkedRecords([t],a)},insertEdgeBefore:function(e,t,n){var o=r(11).get(),i=o.CURSOR,a=o.EDGES,s=e.getLinkedRecords(a);if(s){var c;if(null==n)c=[t].concat(s);else{c=[];for(var u=!1,l=0;l<s.length;l++){var d=s[l];null!=d&&n===d.getValue(i)&&(c.push(t),u=!0),c.push(d)}u||c.unshift(t)}e.setLinkedRecords(c,a)}else e.setLinkedRecords([t],a)},update:function(e,t){var n=e.get(t.dataID);if(n){var s=r(11).get(),c=s.EDGES,u=s.END_CURSOR,l=s.HAS_NEXT_PAGE,d=s.HAS_PREV_PAGE,f=s.PAGE_INFO,p=s.PAGE_INFO_TYPE,h=s.START_CURSOR,_=n.getLinkedRecord(t.fieldKey),g=_&&_.getLinkedRecord(f);if(_){var v=n.getLinkedRecord(t.handleKey),y=v&&v.getLinkedRecord(f);if(v){var b=v,m=_.getLinkedRecords(c);m&&(m=m.map(function(t){return i(e,b,t)}));var E=b.getLinkedRecords(c),R=b.getLinkedRecord(f);b.copyFieldsFrom(_),E&&b.setLinkedRecords(E,c),R&&b.setLinkedRecord(R,f);var S=[],k=t.args;if(E&&m)if(null!=k.after){if(!y||k.after!==y.getValue(u))return void r(4)(!1,"RelayConnectionHandler: Unexpected after cursor `%s`, edges must be fetched from the end of the list (`%s`).",k.after,y&&y.getValue(u));var D=new Set;a(E,S,D),a(m,S,D)}else if(null!=k.before){if(!y||k.before!==y.getValue(h))return void r(4)(!1,"RelayConnectionHandler: Unexpected before cursor `%s`, edges must be fetched from the beginning of the list (`%s`).",k.before,y&&y.getValue(h));var N=new Set;a(m,S,N),a(E,S,N)}else S=m;else S=m||E;if(null!=S&&S!==E&&b.setLinkedRecords(S,c),y&&g)if(null==k.after&&null==k.before)y.copyFieldsFrom(g);else if(null!=k.before||null==k.after&&k.last){y.setValue(!!g.getValue(d),d);var L=g.getValue(h);"string"==typeof L&&y.setValue(L,h)}else if(null!=k.after||null==k.before&&k.first){y.setValue(!!g.getValue(l),l);var I=g.getValue(u);"string"==typeof I&&y.setValue(I,u)}}else{var O=e.create(r(8)(n.getDataID(),t.handleKey),_.getType());O.setValue(0,o),O.copyFieldsFrom(_);var x=_.getLinkedRecords(c);x&&(x=x.map(function(t){return i(e,O,t)}),O.setLinkedRecords(x,c)),n.setLinkedRecord(O,t.handleKey),(y=e.create(r(8)(O.getDataID(),f),p)).setValue(!1,l),y.setValue(!1,d),y.setValue(null,u),y.setValue(null,h),g&&y.copyFieldsFrom(g),O.setLinkedRecord(y,f)}}else n.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(6)(r(20)),o={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},i={find:!0,first:!0,last:!0},a={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES_HAVE_SOURCE_FIELD:!1,EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},s={inject:function(e){a=e},get:function(){return a},isConnectionCall:function(e){return o.hasOwnProperty(e.name)},hasRangeCalls:function(e){return e.some(function(e){return i.hasOwnProperty(e.name)})},getDefaultPageInfo:function(){var e;return e={},(0,n.default)(e,a.END_CURSOR,null),(0,n.default)(e,a.HAS_NEXT_PAGE,!1),(0,n.default)(e,a.HAS_PREV_PAGE,!1),(0,n.default)(e,a.START_CURSOR,null),e}};e.exports=s},function(e,t,r){"use strict";var n=function(){function e(e){this._records=e||{}}var t=e.prototype;return t.clear=function(){this._records={}},t.delete=function(e){this._records[e]=null},t.get=function(e){return this._records[e]},t.getRecordIDs=function(){return Object.keys(this._records)},t.getStatus=function(e){return this._records.hasOwnProperty(e)?null==this._records[e]?r(5).NONEXISTENT:r(5).EXISTENT:r(5).UNKNOWN},t.has=function(e){return this._records.hasOwnProperty(e)},t.load=function(e,t){t(null,this.get(e))},t.remove=function(e){delete this._records[e]},t.set=function(e,t){this._records[e]=t},t.size=function(){return Object.keys(this._records).length},t.toJSON=function(){return this._records},e}();e.exports=n},function(e,t,r){var n=r(20);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}},function(e,t,r){"use strict";function n(e,t,n){("object"!=typeof n||null===n||Array.isArray(n))&&r(1)(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",t.name,JSON.stringify(n));var o=n[r(0).ID_KEY],i=n[r(0).FRAGMENTS_KEY],a=n[r(0).FRAGMENT_OWNER_KEY];if("string"==typeof o&&"object"==typeof i&&null!==i&&"object"==typeof i[t.name]&&null!==i[t.name]){var s=i[t.name];if(null!=a&&"object"==typeof a){var c=a,u=c.variables;return{owner:c,selector:{dataID:o,node:t,variables:r(24).getFragmentVariables(t,u,s)}}}return{owner:null,selector:{dataID:o,node:t,variables:r(24).getFragmentVariables(t,e,s)}}}return r(4)(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",t.name,JSON.stringify(n),t.name),null}function o(e,t,r){var o=null;return r.forEach(function(r){var i=null!=r?n(e,t,r):null;null!=i&&(o=o||[]).push(i)}),o}function i(e,t){var r;return t.forEach(function(t){var n=null!=t?a(e,t):null;null!=n&&(r=r||[]).push(n)}),r||null}function a(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&r(1)(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var n=t[r(0).ID_KEY];return"string"==typeof n?n:(r(4)(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,JSON.stringify(t),e.name),null)}function s(e,t,r){var o=n(e,t,r);return o?o.selector.variables:null}e.exports={areEqualSelectors:function(e,t){return e.selector.dataID===t.selector.dataID&&e.selector.node===t.selector.node&&r(27)(e.selector.variables,t.selector.variables)},getDataIDsFromObject:function(e,t){var n={};for(var o in e)if(e.hasOwnProperty(o)){var s=e[o],c=t[o];null==c?n[o]=c:s.metadata&&!0===s.metadata.plural?(Array.isArray(c)||r(1)(!1,"RelayModernSelector: Expected value for key `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",o,JSON.stringify(c),s.name),n[o]=i(s,c)):(Array.isArray(c)&&r(1)(!1,"RelayModernFragmentSpecResolver: Expected value for key `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",o,JSON.stringify(c),s.name),n[o]=a(s,c))}return n},getSelector:n,getSelectorList:o,getSelectorsFromObject:function(e,t,i){var a={};for(var s in t)if(t.hasOwnProperty(s)){var c=t[s],u=i[s];null==u?a[s]=u:c.metadata&&!0===c.metadata.plural?(Array.isArray(u)||r(1)(!1,"RelayModernSelector: Expected value for key `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",s,JSON.stringify(u),c.name),a[s]=o(e,c,u)):(Array.isArray(u)&&r(1)(!1,"RelayModernFragmentSpecResolver: Expected value for key `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",s,JSON.stringify(u),c.name),a[s]=n(e,c,u))}return a},getVariablesFromObject:function(e,t,n){var o={};for(var i in t)!t.hasOwnProperty(i)||function(){var a=t[i],c=n[i];if(null==c)return"continue";if(a.metadata&&!0===a.metadata.plural)Array.isArray(c)||r(1)(!1,"RelayModernSelector: Expected value for key `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",i,JSON.stringify(c),a.name),c.forEach(function(t){if(null!=t){var r=s(e,a,t);r&&Object.assign(o,r)}});else{Array.isArray(c)&&r(1)(!1,"RelayModernFragmentSpecResolver: Expected value for key `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",i,JSON.stringify(c),a.name);var u=s(e,a,c);u&&Object.assign(o,u)}}();return o}}},function(e,t,r){"use strict";var n=function(e,t){},o=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(e));this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){n=e},e.from=function(e){return i(e)?a(e):r(52)(e)?s(e):c(e)},e.fromLegacy=function(t){return e.create(function(e){var r=t({onNext:e.next,onError:e.error,onCompleted:e.complete});return i(r)?r.subscribe(e):function(){return r.dispose()}})};var t=e.prototype;return t.catch=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}})},t.do=function(t){var r=this;return e.create(function(e){var o=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){n(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:o("start"),next:o("next"),error:o("error"),complete:o("complete"),unsubscribe:o("unsubscribe")})})},t.finally=function(t){var r=this;return e.create(function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}})},t.ifEmpty=function(t){var r=this;return e.create(function(e){var n=!1,o=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():o=t.subscribe(e)}});return function(){o.unsubscribe()}})},t.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,t){var r,o=!1,i=function(e){return Object.defineProperty(e,"closed",{get:function(){return o}})};function a(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){n(e,!0)}r=void 0}}var s=i({unsubscribe:function(){if(!o){o=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){n(e,!0)}finally{a()}}}});try{t.start&&t.start(s)}catch(e){n(e,!0)}if(o)return s;var c=i({next:function(e){if(!o&&t.next)try{t.next(e)}catch(e){n(e,!0)}},error:function(e,r){if(o||!t.error)o=!0,n(e,r||!1),a();else{o=!0;try{t.error(e)}catch(e){n(e,!0)}finally{a()}}},complete:function(){if(!o){o=!0;try{t.complete&&t.complete()}catch(e){n(e,!0)}finally{a()}}}});try{r=e(c)}catch(e){c.error(e,!0)}if(void 0!==r&&"function"!=typeof r&&(!r||"function"!=typeof r.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(r));o&&a();return s}(this._source,e)},t.subscribeLegacy=function(e){return{dispose:this.subscribe({next:e.onNext,error:e.onError,complete:e.onCompleted}).unsubscribe}},t.map=function(t){var r=this;return e.create(function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}})},t.mergeMap=function(t){var r=this;return e.create(function(n){var o=[];function i(e){this._sub=e,o.push(e)}function a(){o.splice(o.indexOf(this._sub),1),0===o.length&&n.complete()}return r.subscribe({start:i,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:i,next:n.next,error:n.error,complete:a})}catch(e){n.error(e,!0)}},error:n.error,complete:a}),function(){o.forEach(function(e){return e.unsubscribe()}),o.length=0}})},t.poll=function(t){var r=this;if("number"!=typeof t||t<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+t);return e.create(function(e){var n,o;return function i(){n=r.subscribe({next:e.next,error:e.error,complete:function(){o=setTimeout(i,t)}})}(),function(){clearTimeout(o),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n;e.subscribe({start:function(e){n=e},next:function(e){t(e),n.unsubscribe()},error:r,complete:t})})},e}();function i(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}function a(e){return e instanceof o?e:o.create(function(t){return e.subscribe(t)})}function s(e){return o.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)})}function c(e){return o.create(function(t){t.next(e),t.complete()})}o.onUnhandledError(function(e,t){"function"==typeof fail?fail(String(e)):t?setTimeout(function(){throw e}):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)}),e.exports=o},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)}),t}},function(e,t,r){"use strict";e.exports=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},i=new(r(12));i.set(r(0).ROOT_ID,r(2).create(r(0).ROOT_ID,r(0).ROOT_TYPE));var a=r(37).normalize(i,e,t,o);return{errors:n,fieldPayloads:a.fieldPayloads,matchPayloads:a.matchPayloads,source:i}}},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE",FIELDS_CHANGE:"FIELDS_CHANGE",REQUIRED_CHILDREN:"REQUIRED_CHILDREN"}),o=Object.freeze({APPEND:"append",IGNORE:"ignore",PREPEND:"prepend",REFETCH:"refetch",REMOVE:"remove"});function i(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:n,RangeOperations:o,convert:function(e,t,n,o){var a=n?[n]:[],s=o?[o]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var n=function(e,t){var r=e.deletedIDFieldName,n=i(t);return n?function(e,t){var o=e.getRootField(n);if(o){var i=o.getValue(r),a=Array.isArray(i)?i:[i];a.forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null}(e,t);n&&(a.push(n),s.push(n));break;case"RANGE_ADD":var o=function(e,t){var n=e.parentID,o=e.connectionInfo,a=e.edgeName;if(!n)return r(4)(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_ADD to work you must include a parentID"),null;var s=i(t);return o&&s?function(e,t){var i=e.get(n);if(i){var c=e.getRootField(s);if(c){var u=c.getLinkedRecord(a),l=!0,d=!1,f=void 0;try{for(var p,h=o[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var _=p.value;if(u){var g=r(10).getConnection(i,_.key,_.filters);if(g){var v=r(10).buildConnectionEdge(e,g,u);if(v)switch(_.rangeBehavior){case"append":r(10).insertEdgeAfter(g,v);break;case"ignore":break;case"prepend":r(10).insertEdgeBefore(g,v);break;default:r(4)(!1,"RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` will not work as expected in RelayModern, supported range behaviors are 'append', 'prepend', and 'ignore'.",_.rangeBehavior)}}}}}catch(e){d=!0,f=e}finally{try{l||null==h.return||h.return()}finally{if(d)throw f}}}}}:null}(e,t);o&&(a.push(o),s.push(o));break;case"RANGE_DELETE":var c=function(e,t){var n=e.parentID,o=e.connectionKeys,a=e.pathToConnection,s=e.deletedIDFieldName;if(!n)return r(4)(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE to work you must include a parentID"),null;var c=i(t);return c?function(e,t){if(t){var i=[],u=t[c];if(u&&Array.isArray(s)){var l=!0,d=!1,f=void 0;try{for(var p,h=s[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var _=p.value;u&&"object"==typeof u&&(u=u[_])}}catch(e){d=!0,f=e}finally{try{l||null==h.return||h.return()}finally{if(d)throw f}}Array.isArray(u)?u.forEach(function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&i.push(e.id)}):u&&u.id&&"string"==typeof u.id&&i.push(u.id)}else u&&"string"==typeof s&&"object"==typeof u&&("string"==typeof(u=u[s])?i.push(u):Array.isArray(u)&&u.forEach(function(e){"string"==typeof e&&i.push(e)}));!function(e,t,n,o,i){r(4)(t,"RelayDeclarativeMutationConfig: RANGE_DELETE must provide a connectionKeys");var a=o.get(e);if(a)if(n.length<2)r(4)(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection must include at least parent and connection");else{for(var s=a,c=1;c<n.length-1;c++)s&&(s=s.getLinkedRecord(n[c]));if(t&&s){var u=!0,l=!1,d=void 0;try{for(var f,p=function(){var e=f.value,t=r(10).getConnection(s,e.key,e.filters);t&&i.forEach(function(e){r(10).deleteNode(t,e)})},h=t[Symbol.iterator]();!(u=(f=h.next()).done);u=!0)p()}catch(e){l=!0,d=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw d}}}else r(4)(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection is incorrect. Unable to find connection with parentID: %s and path: %s",e,n.toString())}}(n,o,a,e,i)}}:null}(e,t);c&&(a.push(c),s.push(c))}}),{optimisticUpdater:function(e,t){a.forEach(function(r){r(e,t)})},updater:function(e,t){s.forEach(function(r){r(e,t)})}}}}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},o=0;o<r.length;o++)n[r[o]]=e(t[r[o]]);return n}},function(e,t,r){"use strict";var n=r(6)(r(13)),o=function(){function e(e,t,r){this._backup=r,this._base=e,this._sink=t,this.__sources=[t,e]}var t=e.prototype;return t._createBackupRecord=function(e){var t=this._backup;if(t&&!t.has(e)){var r=this._base.get(e);null!=r?t.set(e,r):null===r&&t.delete(e)}},t._setSentinelFieldsInBackupRecord=function(e,t){var o=this._backup;if(o){var i=o.get(e);if(i&&i!==r(0).UNPUBLISH_RECORD_SENTINEL){var a=null;for(var s in t)t.hasOwnProperty(s)&&(s in i||((a=a||(0,n.default)({},i))[s]=r(0).UNPUBLISH_FIELD_SENTINEL));o.set(e,a||i)}}},t._setSentinelFieldInBackupRecord=function(e,t){var o=this._backup;if(o){var i=o.get(e);if(i&&i!==r(0).UNPUBLISH_RECORD_SENTINEL&&!(t in i)){var a=(0,n.default)({},i);r(2).setValue(a,t,r(0).UNPUBLISH_FIELD_SENTINEL),o.set(e,a)}}},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var n=this._base.get(e);n||r(1)(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),t=r(2).create(e,r(2).getType(n)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var n=this._sink.get(e),o=this._base.get(e);n||o||r(1)(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e),this._createBackupRecord(t);var i=this._getSinkRecord(t);o&&r(2).copyFields(o,i),n&&r(2).copyFields(n,i),this._setSentinelFieldsInBackupRecord(t,i)},t.copyFieldsFromRecord=function(e,t){this.copyFields(r(2).getDataID(e),t);var n=this._getSinkRecord(t);r(2).copyFields(e,n),this._setSentinelFieldsInBackupRecord(t,n)},t.create=function(e,t){(this._base.getStatus(e)===r(5).EXISTENT||this._sink.getStatus(e)===r(5).EXISTENT)&&r(1)(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e),this._backup&&this._backup.set(e,r(0).UNPUBLISH_RECORD_SENTINEL);var n=r(2).create(e,t);this._sink.set(e,n)},t.delete=function(e){this._createBackupRecord(e),this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var n=this.__sources[t].get(e);if(n)return r(2).getType(n);if(null===n)return null}},t.getValue=function(e,t){for(var n=0;n<this.__sources.length;n++){var o=this.__sources[n].get(e);if(o){var i=r(2).getValue(o,t);if(void 0!==i)return i}else if(null===o)return null}},t.setValue=function(e,t,n){this._createBackupRecord(e);var o=this._getSinkRecord(e);r(2).setValue(o,t,n),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordID=function(e,t){for(var n=0;n<this.__sources.length;n++){var o=this.__sources[n].get(e);if(o){var i=r(2).getLinkedRecordID(o,t);if(void 0!==i)return i}else if(null===o)return null}},t.setLinkedRecordID=function(e,t,n){this._createBackupRecord(e);var o=this._getSinkRecord(e);r(2).setLinkedRecordID(o,t,n),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordIDs=function(e,t){for(var n=0;n<this.__sources.length;n++){var o=this.__sources[n].get(e);if(o){var i=r(2).getLinkedRecordIDs(o,t);if(void 0!==i)return i}else if(null===o)return null}},t.setLinkedRecordIDs=function(e,t,n){this._createBackupRecord(e);var o=this._getSinkRecord(e);r(2).setLinkedRecordIDs(o,t,n),this._setSentinelFieldInBackupRecord(e,t)},e}();e.exports=o},function(e,t,r){"use strict";var n=function(){function e(e,t){this.__mutator=e,this._handlerProvider=t||null,this._proxies={}}var t=e.prototype;return t.publishSource=function(e,t){var n=this;e.getRecordIDs().forEach(function(t){var o=e.getStatus(t);if(o===r(5).EXISTENT){var i=e.get(t);i&&(n.__mutator.getStatus(t)!==r(5).EXISTENT&&n.create(t,r(2).getType(i)),n.__mutator.copyFieldsFromRecord(i,t),delete n._proxies[t])}else o===r(5).NONEXISTENT&&n.delete(t)}),t&&t.length&&t.forEach(function(e){var t=n._handlerProvider&&n._handlerProvider(e.handle);t||r(1)(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),t.update(n,e)})},t.commitPayload=function(e,t){if(!t)return new(r(28))(this,e.fragment);var n=r(17)(e.root,t),o=n.source,i=n.fieldPayloads;return this.publishSource(o,i),new(r(28))(this,e.fragment)},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var n=this.get(e);return n||r(1)(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),n},t.delete=function(e){e===r(0).ROOT_ID&&r(1)(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);t===r(5).EXISTENT?this._proxies[e]=new(r(49))(this,this.__mutator,e):this._proxies[e]=t===r(5).NONEXISTENT?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(r(0).ROOT_ID);return e||(e=this.create(r(0).ROOT_ID,r(0).ROOT_TYPE)),e&&e.getType()===r(0).ROOT_TYPE||r(1)(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record."),e},e}();e.exports=n},function(e,t,r){"use strict";var n=r(6)(r(13));e.exports={getFragmentVariables:function(e,t,o){var i;return e.argumentDefinitions.forEach(function(a){if(!o.hasOwnProperty(a.name))switch(i=i||(0,n.default)({},o),a.kind){case"LocalArgument":i[a.name]=a.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(a.name))break;i[a.name]=t[a.name];break;default:r(1)(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",a.kind,e.name)}}),i||o},getOperationVariables:function(e,t){var n={};return e.argumentDefinitions.forEach(function(o){var i=o.defaultValue;null!=t[o.name]&&(i=t[o.name]),n[o.name]=i,r(4)(null!=i||"!"!==o.type[o.type.length-1],"RelayConcreteVariables: Expected a value for non-nullable variable `$%s: %s` on operation `%s`, got `%s`. Make sure you supply a value for all non-nullable arguments.",o.name,o.type,e.name,JSON.stringify(i))}),n}}},function(e,t,r){"use strict";e.exports={convertFetch:function(e){return function(t,n,o,i){var a=e(t,n,o,i);return a instanceof Error?r(15).create(function(e){return e.error(a)}):r(15).from(a)}},convertSubscribe:function(e){return function(t,n,o){return r(15).fromLegacy(function(r){return e(t,n,o,r)})}}}},function(e,t,r){"use strict";e.exports=function(e,t,n){return t&&t!==r(35).DEFAULT_HANDLE_KEY?"__".concat(t,"_").concat(e):(null==n&&r(1)(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(n,"_").concat(e))}},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=function(){function e(e,t){this.__recordSource=e,this._readSelector=t}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t._getRootField=function(e,t,n){var o=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t});return o&&"LinkedField"===o.kind||r(1)(!1,"RelayRecordSourceSelectorProxy#getRootField(): Cannot find root field `%s`, no such field is defined on GraphQL document `%s`.",t,e.node.name),o.plural!==n&&r(1)(!1,"RelayRecordSourceSelectorProxy#getRootField(): Expected root field `%s` to be %s.",t,n?"plural":"singular"),o},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),n=r(0).getStorageKey(t,this._readSelector.variables);return this.getRoot().getLinkedRecord(n)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),n=r(0).getStorageKey(t,this._readSelector.variables);return this.getRoot().getLinkedRecords(n)},e}();e.exports=n},function(e,t,r){"use strict";var n={"*":[]},o={"*":[]},i={},a={stop:r(30)},s={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=s.instrument(t[r],e[r]))},instrument:function(e,t){n.hasOwnProperty(e)||(n[e]=[]);var o=n["*"],a=n[e],s=[],c=[],u=function(){var r;if(0===a.length&&0===s.length&&0===o.length)r=t.apply(this,arguments);else if(c.push([o.length,a.length,s.length,this,arguments,i]),function r(){var n=c[c.length-1];n[0]?(n[0]--,o[n[0]](e,r)):n[1]?(n[1]--,a[n[1]](e,r)):n[2]?(n[2]--,s[n[2]](e,r)):n[5]=t.apply(n[3],n[4])}(),(r=c.pop()[5])===i)throw new Error("RelayProfiler: Handler did not invoke original function.");return r};return u.attachHandler=function(e){s.push(e)},u.detachHandler=function(e){r(31)(s,e)},u.displayName="(instrumented "+e+")",u},attachAggregateHandler:function(e,t){n.hasOwnProperty(e)||(n[e]=[]),n[e].push(t)},detachAggregateHandler:function(e,t){n.hasOwnProperty(e)&&r(31)(n[e],t)},profile:function(e,t){var r=o["*"].length>0,n=o.hasOwnProperty(e);if(n||r){for(var i,s=n&&r?o[e].concat(o["*"]):n?o[e]:o["*"],c=s.length-1;c>=0;c--){var u=(0,s[c])(e,t);(i=i||[]).unshift(u)}return{stop:function(e){i&&i.forEach(function(t){return t(e)})}}}return a},attachProfileHandler:function(e,t){o.hasOwnProperty(e)||(o[e]=[]),o[e].push(t)},detachProfileHandler:function(e,t){o.hasOwnProperty(e)&&r(31)(o[e],t)}};e.exports=s},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=function(){function e(e,t,r){this._recordSource=e,this._seenRecords={},this._isMissingData=!1,this._variables=t,this._owner=r}var t=e.prototype;return t.read=function(e,t){return{data:this._traverse(e,t,null),dataID:t,node:e,seenRecords:this._seenRecords,variables:this._variables,isMissingData:this._isMissingData}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var o=r||{};return this._traverseSelections(e.selections,n,o),o},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||r(1)(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t,n){var o=this;e.forEach(function(e){if(e.kind===r(3).SCALAR_FIELD)o._readScalar(e,t,n);else if(e.kind===r(3).LINKED_FIELD)e.plural?o._readPluralLink(e,t,n):o._readLink(e,t,n);else if(e.kind===r(3).CONDITION){o._getVariableValue(e.condition)===e.passingValue&&o._traverseSelections(e.selections,t,n)}else if(e.kind===r(3).INLINE_FRAGMENT){var i=r(2).getType(t);null!=i&&i===e.type&&o._traverseSelections(e.selections,t,n)}else e.kind===r(3).FRAGMENT_SPREAD?o._createFragmentPointer(e,t,n,o._variables):e.kind===r(3).MATCH_FIELD?o._readMatchField(e,t,n):r(1)(!1,"RelayReader(): Unexpected ast kind `%s`.",e.kind)})},t._readScalar=function(e,t,n){var o,i=null!==(o=e.alias)&&void 0!==o?o:e.name,a=r(0).getStorageKey(e,this._variables),s=r(2).getValue(t,a);void 0===s&&(this._isMissingData=!0),n[i]=s},t._readLink=function(e,t,n){var o,i=null!==(o=e.alias)&&void 0!==o?o:e.name,a=r(0).getStorageKey(e,this._variables),s=r(2).getLinkedRecordID(t,a);if(null==s)return n[i]=s,void(void 0===s&&(this._isMissingData=!0));var c=n[i];null!=c&&"object"!=typeof c&&r(1)(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",i,r(2).getDataID(t),c),n[i]=this._traverse(e,s,c)},t._readPluralLink=function(e,t,n){var o,i=this,a=null!==(o=e.alias)&&void 0!==o?o:e.name,s=r(0).getStorageKey(e,this._variables),c=r(2).getLinkedRecordIDs(t,s);if(null==c)return n[a]=c,void(void 0===c&&(this._isMissingData=!0));var u=n[a];null==u||Array.isArray(u)||r(1)(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",a,r(2).getDataID(t),u);var l=u||[];c.forEach(function(n,o){if(null==n)return void 0===n&&(i._isMissingData=!0),void(l[o]=n);var s=l[o];null!=s&&"object"!=typeof s&&r(1)(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",a,r(2).getDataID(t),s),l[o]=i._traverse(e,n,s)}),n[a]=l},t._readMatchField=function(e,t,n){var o,i=null!==(o=e.alias)&&void 0!==o?o:e.name,a=r(0).getStorageKey(e,this._variables),s=r(2).getLinkedRecordID(t,a);if(null==s)return n[i]=s,void(void 0===s&&(this._isMissingData=!0));var c=n[i];null!=c&&"object"!=typeof c&&r(1)(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",i,r(2).getDataID(t),c);var u=this._recordSource.get(s);if(this._seenRecords[s]=u,null==u)return void 0===u&&(this._isMissingData=!0),void(n[i]=u);var l=r(2).getType(u);"string"!=typeof l&&r(1)(!1,"RelayReader(): Expected to be able to resolve concrete type for field `%s` on record `%s`",i,r(2).getDataID(u));var d=e.matchesByType[l];if(null!=d){var f=r(2).getValue(u,r(0).MATCH_COMPONENT_KEY);if(null==f)return void 0===f&&(this._isMissingData=!0),void(n[i]=null);var p={};this._createFragmentPointer({kind:"FragmentSpread",name:d.fragmentName,args:null},u,p,this._variables),p[r(0).FRAGMENT_PROP_NAME_KEY]=d.fragmentPropName,p[r(0).MODULE_KEY]=f,n[i]=p}else n[i]=null},t._createFragmentPointer=function(e,t,n,o){var i,a=n[r(0).FRAGMENTS_KEY];null==a&&(a=n[r(0).FRAGMENTS_KEY]={}),"object"==typeof a&&a||r(1)(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",a),n[r(0).ID_KEY]=null!==(i=n[r(0).ID_KEY])&&void 0!==i?i:r(2).getDataID(t),a[e.name]=e.args?r(0).getArgumentValues(e.args,o):{},n[r(0).FRAGMENT_OWNER_KEY]=this._owner},e}();e.exports={read:function(e,t,r){var o,i=t.dataID,a=t.node,s=t.variables;return new n(e,s,null!==(o=r)&&void 0!==o?o:null).read(a,i)}}},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";e.exports=function(e){switch(e){case"connection":return r(10);case"viewer":return r(36)}r(1)(!1,"RelayDefaultHandlerProvider: No handler provided for `%s`.",e)}},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";var n=r(8)(r(0).ROOT_ID,"viewer"),o="Viewer";e.exports={VIEWER_ID:n,update:function(e,t){var r=e.get(t.dataID);if(r){var i=r.getLinkedRecord(t.fieldKey);if(i){if(i.getDataID()===n)return r.setValue(null,t.fieldKey),void r.setLinkedRecord(i,t.handleKey);var a=e.get(n)||e.create(n,o);a.copyFieldsFrom(i),r.setValue(null,t.fieldKey),r.setLinkedRecord(a,t.handleKey),e.getRoot().setLinkedRecord(a,t.handleKey)}}}}},function(e,t,r){"use strict";function n(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},i=t.dataID,a=t.node,s=t.variables;return new o(e,s,n).normalizeResponse(a,i,r)}var o=function(){function e(e,t,r){this._handleFieldPayloads=[],this._handleStrippedNulls=r.handleStrippedNulls,this._matchFieldPayloads=[],this._recordSource=e,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,n){var o=this._recordSource.get(t);return o||r(1)(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._traverseSelections(e,o,n),{fieldPayloads:this._handleFieldPayloads,matchPayloads:this._matchFieldPayloads}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||r(1)(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[r(0).TYPENAME_KEY];return null==t&&r(1)(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),t},t._traverseSelections=function(e,t,n){var o=this;e.selections.forEach(function(i){if(i.kind===r(3).SCALAR_FIELD||i.kind===r(3).LINKED_FIELD)o._normalizeField(e,i,t,n);else if(i.kind===r(3).CONDITION){o._getVariableValue(i.condition)===i.passingValue&&o._traverseSelections(i,t,n)}else if(i.kind===r(3).INLINE_FRAGMENT){r(2).getType(t)===i.type&&o._traverseSelections(i,t,n)}else if(i.kind===r(3).LINKED_HANDLE||i.kind===r(3).SCALAR_HANDLE){var a=i.args?r(0).getArgumentValues(i.args,o._variables):{},s=r(0).getStorageKey(i,o._variables),c=r(0).getHandleStorageKey(i,o._variables);o._handleFieldPayloads.push({args:a,dataID:r(2).getDataID(t),fieldKey:s,handle:i.handle,handleKey:c})}else i.kind===r(3).MATCH_FIELD?o._normalizeMatchField(e,i,t,n):(i.kind===r(3).FRAGMENT||(i.kind,r(3).FRAGMENT_SPREAD),r(1)(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",i.kind))})},t._normalizeMatchField=function(e,t,n,o){"object"==typeof o&&o||r(1)(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var i=t.alias||t.name,a=r(0).getStorageKey(t,this._variables),s=o[i];if(null==s){if(void 0===s&&!this._handleStrippedNulls)return;return r(4)(e.kind===r(3).LINKED_FIELD&&null==e.concreteType||Object.prototype.hasOwnProperty.call(o,i),"RelayResponseNormalizer(): Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",i,a),void r(2).setValue(n,a,null)}"object"==typeof s&&s||r(1)(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",a);var c=this._getRecordType(s);if(null!=t.matchesByType[c]){var u=s.id||r(2).getLinkedRecordID(n,a)||r(8)(r(2).getDataID(n),a);"string"!=typeof u&&r(1)(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",a),r(2).setLinkedRecordID(n,a,u);var l=this._recordSource.get(u);l?this._validateRecordType(l,t,s):(l=r(2).create(u,c),this._recordSource.set(u,l));var d=s[r(0).MATCH_FRAGMENT_KEY];null!=d&&this._matchFieldPayloads.push({operationReference:d,dataID:u,data:s,typeName:c,variables:this._variables})}else r(2).setValue(n,a,null)},t._normalizeField=function(e,t,n,o){"object"==typeof o&&o||r(1)(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var i=t.alias||t.name,a=r(0).getStorageKey(t,this._variables),s=o[i];if(null==s){if(void 0===s&&!this._handleStrippedNulls)return;return r(4)(e.kind===r(3).LINKED_FIELD&&null==e.concreteType||Object.prototype.hasOwnProperty.call(o,i),"RelayResponseNormalizer(): Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",i,a),void r(2).setValue(n,a,null)}t.kind===r(3).SCALAR_FIELD?r(2).setValue(n,a,s):t.kind===r(3).LINKED_FIELD?t.plural?this._normalizePluralLink(t,n,a,s):this._normalizeLink(t,n,a,s):(t.kind,r(3).MATCH_FIELD,r(1)(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind))},t._normalizeLink=function(e,t,n,o){"object"==typeof o&&o||r(1)(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",n);var i=o.id||r(2).getLinkedRecordID(t,n)||r(8)(r(2).getDataID(t),n);"string"!=typeof i&&r(1)(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",n),r(2).setLinkedRecordID(t,n,i);var a=this._recordSource.get(i);if(a)this._validateRecordType(a,e,o);else{var s=e.concreteType||this._getRecordType(o);a=r(2).create(i,s),this._recordSource.set(i,a)}this._traverseSelections(e,a,o)},t._normalizePluralLink=function(e,t,n,o){var i=this;Array.isArray(o)||r(1)(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",n);var a=r(2).getLinkedRecordIDs(t,n),s=[];o.forEach(function(o,c){if(null!=o){"object"!=typeof o&&r(1)(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",n);var u=o.id||a&&a[c]||r(8)(r(2).getDataID(t),n,c);"string"!=typeof u&&r(1)(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",n),s.push(u);var l=i._recordSource.get(u);if(l)i._validateRecordType(l,e,o);else{var d=e.concreteType||i._getRecordType(o);l=r(2).create(u,d),i._recordSource.set(u,l)}i._traverseSelections(e,l,o)}else s.push(o)}),r(2).setLinkedRecordIDs(t,n,s)},t._validateRecordType=function(e,t,n){var o="LinkedField"===t.kind&&t.concreteType||this._getRecordType(n);r(4)(r(2).getType(e)===o,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be 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.",r(2).getDataID(e),r(0).TYPENAME_KEY,r(2).getType(e),o)},e}();n=r(29).instrument("RelayResponseNormalizer.normalize",n),e.exports={normalize:n}},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t,r){"use strict";var n=function(){function e(e,t,n,o,i){var a;this._operationLoader=null!==(a=i)&&void 0!==a?a:null,this._handlers=o,this._mutator=new(r(22))(e,t),this._recordWasMissing=!1,this._source=e,this._variables=n,this._recordSourceProxy=new(r(23))(this._mutator)}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!this._recordWasMissing},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||r(1)(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?r(0).getArgumentValues(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,o=r.record,i=!0,a=!1,s=void 0;try{for(var c,u=this._handlers[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var l=c.value;if("scalar"===l.kind){var d=l.handle(e,o,n,this._recordSourceProxy);if(void 0!==d)return d}}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}this._handleMissing()},t._handleMissingLinkField=function(e,t){var n=this._getDataForHandlers(e,t),o=n.args,i=n.record,a=!0,s=!1,c=void 0;try{for(var u,l=this._handlers[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;if("linked"===d.kind){var f=d.handle(e,i,o,this._recordSourceProxy);if(null!=f&&this._mutator.getStatus(f)===r(5).EXISTENT)return f}}}catch(e){s=!0,c=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw c}}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var n=this,o=this._getDataForHandlers(e,t),i=o.args,a=o.record,s=!0,c=!1,u=void 0;try{for(var l,d=this._handlers[Symbol.iterator]();!(s=(l=d.next()).done);s=!0){var f=l.value;if("pluralLinked"===f.kind){var p=f.handle(e,a,i,this._recordSourceProxy);if(null!=p)return p.filter(function(e){return null!=e&&n._mutator.getStatus(e)===r(5).EXISTENT})}}}catch(e){c=!0,u=e}finally{try{s||null==d.return||d.return()}finally{if(c)throw u}}this._handleMissing()},t._traverse=function(e,t){var n=this._mutator.getStatus(t);n===r(5).UNKNOWN&&this._handleMissing(),n===r(5).EXISTENT&&this._traverseSelections(e.selections,t)},t._traverseSelections=function(e,t){var n=this;e.forEach(function(o){switch(o.kind){case r(3).SCALAR_FIELD:n._checkScalar(o,t);break;case r(3).LINKED_FIELD:o.plural?n._checkPluralLink(o,t):n._checkLink(o,t);break;case r(3).CONDITION:n._getVariableValue(o.condition)===o.passingValue&&n._traverseSelections(o.selections,t);break;case r(3).INLINE_FRAGMENT:var i=n._mutator.getType(t);null!=i&&i===o.type&&n._traverseSelections(o.selections,t);break;case r(3).LINKED_HANDLE:var a=r(40)(o,e,n._variables);a.plural?n._checkPluralLink(a,t):n._checkLink(a,t);break;case r(3).MATCH_FIELD:n._checkMatch(o,t);break;case r(3).SCALAR_HANDLE:case r(3).FRAGMENT_SPREAD:r(1)(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",o.kind);break;default:r(1)(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",o.kind)}})},t._checkMatch=function(e,t){var n=r(0).getStorageKey(e,this._variables),o=this._mutator.getLinkedRecordID(t,n);if(void 0===o)this._handleMissing();else if(null!==o){var i=this._mutator.getStatus(o);if(i===r(5).UNKNOWN)return void this._handleMissing();if(i!==r(5).EXISTENT)return;var a=this._mutator.getType(o);if(null!=(null!=a?e.matchesByType[a]:null)){var s=this._operationLoader;null===s&&r(1)(!1,"DataChecker: Expected an operationLoader to be configured when using `@match`.");var c=this._mutator.getValue(o,r(0).MATCH_FRAGMENT_KEY);if(void 0===c)return void this._handleMissing();if(null===c)return;var u=s.get(c);null!=u?this._traverse(u,o):this._handleMissing()}}},t._checkScalar=function(e,t){var n=r(0).getStorageKey(e,this._variables),o=this._mutator.getValue(t,n);void 0===o&&void 0!==(o=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,n,o)},t._checkLink=function(e,t){var n=r(0).getStorageKey(e,this._variables),o=this._mutator.getLinkedRecordID(t,n);void 0===o&&null!=(o=this._handleMissingLinkField(e,t))&&this._mutator.setLinkedRecordID(t,n,o),null!=o&&this._traverse(e,o)},t._checkPluralLink=function(e,t){var n=this,o=r(0).getStorageKey(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,o);void 0===i&&null!=(i=this._handleMissingPluralLinkField(e,t))&&this._mutator.setLinkedRecordIDs(t,o,i),i&&i.forEach(function(t){null!=t&&n._traverse(e,t)})},e}();e.exports={check:function(e,t,r,o,i){var a=r.dataID,s=r.node,c=r.variables;return new n(e,t,c,o,i).check(s,a)}}},function(e,t,r){"use strict";var n=r(6)(r(13));e.exports=function(e,t,o){var i=t.find(function(t){return t.kind===r(3).LINKED_FIELD&&t.name===e.name&&t.alias===e.alias&&r(27)(t.args,e.args)});i&&i.kind===r(3).LINKED_FIELD||r(1)(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var a=r(0).getHandleStorageKey(e,o);return(0,n.default)({},i,{args:null,name:a,storageKey:a})}},function(e,t,r){"use strict";e.exports=function(e,t){var n=t.data,o=t.errors;if(null!=n)return r(17)(e.root,n,o,{handleStrippedNulls:!0});var i=e.node,a=r(42).create("RelayNetwork","No data returned for operation `%s`, got error(s):\n%s\n\nSee the error `source` property for more information.",i.params?i.params.name:i.name,o?o.map(function(e){return e.message}).join("\n"):"(No errors)");throw a.source={errors:o,operation:e.node,variables:e.variables},a}},function(e,t,r){"use strict";var n=r(6)(r(43)),o={create:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return i("mustfix",e,t,n)},createWarning:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return i("warn",e,t,n)}};function i(e,t,o,i){var a=new Error(r(56).apply(void 0,[o].concat((0,n.default)(i))));return a.name=t,a.type=e,a.framesToPop=2,a}e.exports=o},function(e,t,r){var n=r(53),o=r(54),i=r(55);e.exports=function(e){return n(e)||o(e)||i()}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r||"object"!=typeof t||!t||"object"!=typeof r||!r)return r;var n=!1,o=Array.isArray(t)?t:null,i=Array.isArray(r)?r:null;if(o&&i)n=i.reduce(function(t,r,n){var a=e(o[n],r);return a!==i[n]&&(i[n]=a),t&&i[n]===o[n]},!0)&&o.length===i.length;else if(!o&&!i){var a=t,s=r,c=Object.keys(a),u=Object.keys(s);n=u.reduce(function(t,r){var n=e(a[r],s[r]);return n!==s[r]&&(s[r]=n),t&&s[r]===a[r]},!0)&&c.length===u.length}return n?t:r}},function(e,t,r){"use strict";if("function"!=typeof Map||"function"!=typeof Set||"function"!=typeof Promise||"function"!=typeof Object.assign)throw new Error("relay-runtime requires Map, Set, Promise, and Object.assign to exist. Use a polyfill to provide these for older browsers.");e.exports={Environment:r(46),Network:r(57),Observable:r(15),QueryResponseCache:r(58),RecordSource:r(12),Store:r(59),areEqualSelectors:r(9).areEqualSelectors,createFragmentSpecResolver:r(9).createFragmentSpecResolver,createOperationDescriptor:r(9).createOperationDescriptor,getDataIDsFromObject:r(9).getDataIDsFromObject,getFragment:r(7).getFragment,getPaginationFragment:r(7).getPaginationFragment,getRefetchableFragment:r(7).getRefetchableFragment,getRequest:r(7).getRequest,getSelector:r(9).getSelector,getSelectorList:r(9).getSelectorList,getSelectorsFromObject:r(9).getSelectorsFromObject,getStorageKey:r(0).getStorageKey,getVariablesFromObject:r(9).getVariablesFromObject,graphql:r(7).graphql,MutationTypes:r(19).MutationTypes,RangeOperations:r(19).RangeOperations,DefaultHandlerProvider:r(34),ConnectionHandler:r(10),ViewerHandler:r(36),applyOptimisticMutation:r(63),commitLocalUpdate:r(64),commitMutation:r(65),fetchQuery:r(67),isRelayModernEnvironment:r(33),requestSubscription:r(68),ConnectionInterface:r(11),RelayProfiler:r(29),RelayConcreteNode:r(3),RelayError:r(42),RelayNetworkLoggerTransaction:r(69),DEFAULT_HANDLE_KEY:r(35).DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:r(0).FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:r(0).FRAGMENT_OWNER_KEY,ID_KEY:r(0).ID_KEY,REF_KEY:r(0).REF_KEY,REFS_KEY:r(0).REFS_KEY,ROOT_ID:r(0).ROOT_ID,ROOT_TYPE:r(0).ROOT_TYPE,createRelayNetworkLogger:r(70),deepFreeze:r(16),generateClientID:r(8),getRelayHandleKey:r(26),isScalarAndEqual:r(38),recycleNodesInto:r(44),simpleClone:r(71),stableCopy:r(21),__internal:{getModernOperationVariables:r(24).getOperationVariables}}},function(e,t,r){"use strict";(function(t){var n=function(){function e(e){var n=this;this.configName=e.configName;var o=e.handlerProvider?e.handlerProvider:r(34),i=e.operationLoader;null!=i&&("object"!=typeof i||"function"!=typeof i.get||"function"!=typeof i.load)&&r(1)(!1,"RelayModernEnvironment: Expected `operationLoader` to be an object with get() and load() functions, got `%s`.",i),this._operationLoader=i,this._network=e.network,this._publishQueue=new(r(48))(e.store,o),this._store=e.store,this.unstable_internal=r(9),this.__setNet=function(e){return n._network=e};var a=void 0!==t?t:"undefined"!=typeof window?window:void 0,s=a&&a.__RELAY_DEVTOOLS_HOOK__;s&&s.registerEnvironment(this),null!=e.missingFieldHandlers&&(this._missingFieldHandlers=e.missingFieldHandlers)}var n=e.prototype;return n.getStore=function(){return this._store},n.getNetwork=function(){return this._network},n.applyUpdate=function(e){var t=this;return this._publishQueue.applyUpdate(e),this._publishQueue.run(),{dispose:function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}}},n.revertUpdate=function(e){this._publishQueue.revertUpdate(e),this._publishQueue.run()},n.replaceUpdate=function(e,t){this._publishQueue.revertUpdate(e),this._publishQueue.applyUpdate(t),this._publishQueue.run()},n.applyMutation=function(e){var t=e.operation,r=e.optimisticResponse,n=e.optimisticUpdater;return this.applyUpdate({operation:t,selectorStoreUpdater:n,response:r||null})},n.check=function(e){return null==this._missingFieldHandlers?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},n.commitPayload=function(e,t){var n=r(17)(e.root,t);this._publishQueue.commitPayload(e,n),this._publishQueue.run()},n.commitUpdate=function(e){this._publishQueue.commitUpdate(e),this._publishQueue.run()},n.lookup=function(e,t){return this._store.lookup(e,t)},n.subscribe=function(e,t){return this._store.subscribe(e,t)},n.retain=function(e){return this._store.retain(e)},n._checkSelectorAndHandleMissingFields=function(e,t){var n=new(r(12)),o=r(39).check(this._store.getSource(),n,e,t,this._operationLoader);return n.size()>0&&(this._publishQueue.commitSource(n),this._publishQueue.run()),o},n.execute=function(e){var t=this,n=e.operation,o=e.cacheConfig,i=e.updater;return r(15).create(function(e){var a=null,s=new Set;function c(e){this._subscription=e,s.add(e)}function u(){s.delete(this._subscription),0===s.size&&e.complete()}var l=function n(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=o.matchPayloads;if(d&&d.length){var f=t._operationLoader;f||r(1)(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`."),d.forEach(function(t){(function(e,t,n){return r(15).from(new Promise(function(e,r){t.load(n.operationReference).then(e,r)})).map(function(t){if(null!=t){var o={dataID:n.dataID,variables:n.variables,node:t},i=new(r(12)),a=r(2).create(n.dataID,n.typeName);i.set(n.dataID,a);var s=r(37).normalize(i,o,n.data),c={errors:null,fieldPayloads:s.fieldPayloads,matchPayloads:s.matchPayloads,source:i};e(c)}})})(n,f,t).subscribe({complete:u,error:e.error,start:c})})}l?(null!==a&&r(1)(!1,"environment.execute: only support one optimistic response per execute."),a={source:o.source,fieldPayloads:o.fieldPayloads},t._publishQueue.applyUpdate(a),t._publishQueue.run()):(null!==a&&(t._publishQueue.revertUpdate(a),a=null),i&&s?t._publishQueue.commitPayload(i,o,s):t._publishQueue.commitRelayPayload(o),t._publishQueue.run())},d=n.node;return t._network.execute(d.params,n.variables,o||{}).subscribe({complete:u,next:function(t){var o,a=r(41)(n,t),s=!0===(null===(o=t.extensions)||void 0===o?void 0:o.isOptimistic);l(a,n,i,s),e.next(t)},error:e.error,start:c}),function(){0!==s.size&&(s.forEach(function(e){return e.unsubscribe()}),s.clear()),null!==a&&(t._publishQueue.revertUpdate(a),a=null,t._publishQueue.run())}})},n.executeMutation=function(e){var t,n=this,o=e.operation,i=e.optimisticResponse,a=e.optimisticUpdater,s=e.updater,c=e.uploadables;(i||a)&&(t={operation:o,selectorStoreUpdater:a,response:i||null});var u=o.node;return this._network.execute(u.params,o.variables,{force:!0},c).do({start:function(){t&&(n._publishQueue.applyUpdate(t),n._publishQueue.run())},next:function(e){t&&(n._publishQueue.revertUpdate(t),t=void 0),n._publishQueue.commitPayload(o,r(41)(o,e),s),n._publishQueue.run()},error:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){t&&(n._publishQueue.revertUpdate(t),t=void 0,n._publishQueue.run())}),unsubscribe:function(){t&&(n._publishQueue.revertUpdate(t),t=void 0,n._publishQueue.run())}})},n.sendQuery=function(e){var t=e.cacheConfig,n=e.onCompleted,o=e.onError,i=e.onNext,a=e.operation;return r(4)(!1,"environment.sendQuery() is deprecated. Update to the latest version of react-relay, and use environment.execute()."),this.execute({operation:a,cacheConfig:t}).subscribeLegacy({onNext:i,onError:o,onCompleted:n})},n.sendMutation=function(e){var t=e.onCompleted,n=e.onError,o=e.operation,i=e.optimisticResponse,a=e.optimisticUpdater,s=e.updater,c=e.uploadables;return r(4)(!1,"environment.sendMutation() is deprecated. Update to the latest version of react-relay, and use environment.executeMutation()."),this.executeMutation({operation:o,optimisticResponse:i,optimisticUpdater:a,updater:s,uploadables:c}).subscribeLegacy({onNext:function(e){t&&t(e.errors)},onError:n,onCompleted:t})},n.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},e}();n.prototype["@@RelayModernEnvironment"]=!0,e.exports=n}).call(this,r(47))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=function(){function e(e,t){this._backup=new(r(12)),this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingUpdaters=new Set,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&r(1)(!1,"RelayPublishQueue: Cannot apply the same update function more than once concurrently."),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){var n=t.fieldPayloads,o=t.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:n,selector:e.fragment,source:o,updater:r}})},t.commitRelayPayload=function(e){var t=e.fieldPayloads,r=e.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:t,selector:null,source:r,updater:null}})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingUpdaters.add(e)},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(){this._pendingBackupRebase&&this._backup.size()&&(this._store.publish(this._backup),this._backup=new(r(12))),this._commitData(),this._commitUpdaters(),this._applyUpdates(),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify()},t._getSourceFromPayload=function(e){var t=this,n=e.fieldPayloads,i=e.selector,a=e.source,s=e.updater,c=new(r(22))(this._store.getSource(),a),u=new(r(23))(c);(n&&n.length&&n.forEach(function(e){var n=t._handlerProvider&&t._handlerProvider(e.handle);n||r(1)(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),n.update(u,e)}),s)&&(null==i&&r(1)(!1,"RelayModernEnvironment: Expected a selector to be provided with updater function."),s(new(r(28))(u,i),o(a,i)));return a},t._commitData=function(){var e=this;this._pendingData.size&&(this._pendingData.forEach(function(t){var r;r="payload"===t.kind?e._getSourceFromPayload(t.payload):t.source,e._store.publish(r)}),this._pendingData.clear())},t._commitUpdaters=function(){var e=this;if(this._pendingUpdaters.size){var t=new(r(12));this._pendingUpdaters.forEach(function(n){var o=new(r(22))(e._store.getSource(),t),i=new(r(23))(o);r(18).applyWithGuard(n,null,[i],null,"RelayPublishQueue:commitUpdaters")}),this._store.publish(t),this._pendingUpdaters.clear()}},t._applyUpdates=function(){var e=this;if(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size){var t=new(r(12)),n=new(r(22))(this._store.getSource(),t,this._backup),i=new(r(23))(n,this._handlerProvider);this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(function(e){if(e.operation){var t,n=e.selectorStoreUpdater,a=e.operation,s=e.response,c=i.commitPayload(a,s);if(s)t=o(r(17)(a.root,s).source,a.fragment);n&&r(18).applyWithGuard(n,null,[c,t],null,"RelayPublishQueue:applyUpdates")}else if(e.storeUpdater){var u=e.storeUpdater;r(18).applyWithGuard(u,null,[i],null,"RelayPublishQueue:applyUpdates")}else{var l=e.source,d=e.fieldPayloads;i.publishSource(l,d)}}),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){if(t.operation){var n,a=t.selectorStoreUpdater,s=t.operation,c=t.response,u=i.commitPayload(s,c);if(c)n=o(r(17)(s.root,c).source,s.fragment);a&&r(18).applyWithGuard(a,null,[u,n],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var l=t.storeUpdater;r(18).applyWithGuard(l,null,[i],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,f=t.fieldPayloads;i.publishSource(d,f)}e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)}},e}();function o(e,t){var n=r(32).read(e,t).data,o=r(16);return n&&o(n),n}e.exports=n},function(e,t,r){"use strict";var n=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&r(1)(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var n=r(0).getStableStorageKey(e,t);return this._mutator.getValue(this._dataID,n)},t.setValue=function(e,t,n){o(e)||r(1)(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e));var i=r(0).getStableStorageKey(t,n);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var n=r(0).getStableStorageKey(e,t),o=this._mutator.getLinkedRecordID(this._dataID,n);return null!=o?this._source.get(o):o},t.setLinkedRecord=function(t,n,o){t instanceof e||r(1)(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var i=r(0).getStableStorageKey(n,o),a=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,i,a),this},t.getOrCreateLinkedRecord=function(e,t,n){var o=this.getLinkedRecord(e,n);if(!o){var i=r(0).getStableStorageKey(e,n),a=r(8)(this.getDataID(),i);o=this._source.create(a,t),this.setLinkedRecord(o,e,n)}return o},t.getLinkedRecords=function(e,t){var n=this,o=r(0).getStableStorageKey(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,o);return null==i?i:i.map(function(e){return null!=e?n._source.get(e):e})},t.setLinkedRecords=function(e,t,n){Array.isArray(e)||r(1)(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var o=r(0).getStableStorageKey(t,n),i=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,o,i),this},e}();function o(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(o)}e.exports=n},function(e,t,r){"use strict";var n=r(6)(r(13)),o=r(6)(r(20)),i=function(){function e(e,t,r,n){var i=this;(0,o.default)(this,"_onChange",function(){i._stale=!0,"function"==typeof i._callback&&i._callback()}),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props=r,this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&c(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var o in this._resolvers)if(this._resolvers.hasOwnProperty(o)){var i=this._resolvers[o],a=t[o];if(i){var s=i.resolve();(e||s!==a)&&((e=e||(0,n.default)({},t))[o]=s)}else{var c=this._props[o],u=void 0!==c?c:null;!e&&r(38)(u,a)||((e=e||(0,n.default)({},t))[o]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=r(14).getSelectorsFromObject(this._context.variables,this._fragments,e);for(var n in t)if(t.hasOwnProperty(n)){var o=t[n],i=this._resolvers[n];null==o?(null!=i&&i.dispose(),i=null):Array.isArray(o)?null==i?i=new s(this._context.environment,o,this._onChange):(i instanceof s||r(1)(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.",n),i.setSelectors(o)):null==i?i=new a(this._context.environment,o,this._onChange):(i instanceof a||r(1)(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.",n),i.setSelector(o)),this._resolvers[n]=i}this._props=e,this._stale=!0},t.setVariables=function(e){for(var t in this._resolvers)if(this._resolvers.hasOwnProperty(t)){var r=this._resolvers[t];r&&r.setVariables(e)}this._stale=!0},e}(),a=function(){function e(e,t,r){var n=this;(0,o.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var i=e.lookup(t.selector);this._callback=r,this._data=i.data,this._environment=e,this._ownedSelector=t,this._subscription=e.subscribe(i,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){return this._data},t.setSelector=function(e){if(null==this._subscription||!r(14).areEqualSelectors(e,this._ownedSelector)){this.dispose();var t=this._environment.lookup(e.selector);this._data=t.data,this._ownedSelector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e){var t={owner:null,selector:(0,n.default)({},this._ownedSelector.selector,{variables:e})};this.setSelector(t)},e}(),s=function(){function e(e,t,r){var n=this;(0,o.default)(this,"_onChange",function(e){n._stale=!0,n._callback()}),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelectors(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(c)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],o=this._resolvers[r].resolve();(e||o!==n)&&(e=e||t.slice(0,r)).push(o)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelectors=function(e){for(;this._resolvers.length>e.length;){this._resolvers.pop().dispose()}for(var t=0;t<e.length;t++)t<this._resolvers.length?this._resolvers[t].setSelector(e[t]):this._resolvers[t]=new a(this._environment,e[t],this._onChange);this._stale=!0},t.setVariables=function(e){this._resolvers.forEach(function(t){return t.setVariables(e)}),this._stale=!0},e}();function c(e){e&&e.dispose()}e.exports=i},function(e,t,r){"use strict";e.exports={createOperationDescriptor:function(e,t){var n=e.operation,o=r(24).getOperationVariables(n,t),i=r(0).ROOT_ID;return{fragment:{dataID:i,node:e.fragment,variables:o},node:e,root:{dataID:i,node:n,variables:o},variables:o}}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){e.exports=a},function(e,t,r){"use strict";e.exports={create:function(e,t){var n=r(25).convertFetch(e),o=t?r(25).convertSubscribe(t):void 0;return{execute:function(e,t,i,a){if("subscription"===e.operationKind)return o||r(1)(!1,"RelayNetwork: This network layer does not support Subscriptions. To use Subscriptions, provide a custom network layer."),a&&r(1)(!1,"RelayNetwork: Cannot provide uploadables while subscribing."),o(e,t,i);var s=i.poll;return null!=s?(a&&r(1)(!1,"RelayNetwork: Cannot provide uploadables while polling."),n(e,t,{force:!0}).poll(s)):n(e,t,i,a)}}}}},function(e,t,r){"use strict";var n=r(6)(r(13)),o=function(){function e(e){var t=e.size,n=e.ttl;t>0||r(1)(!1,"RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.",t),n>0||r(1)(!1,"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",n),this._responses=new Map,this._size=t,this._ttl=n}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,o=i(e,t);this._responses.forEach(function(e,t){(function(e,t){return e+t>=Date.now()})(e.fetchTime,r._ttl)||r._responses.delete(t)});var a=this._responses.get(o);return null!=a?(0,n.default)({},a.payload,{extensions:(0,n.default)({},a.payload.extensions,{cacheTimestamp:a.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),o=i(e,t);if(this._responses.delete(o),this._responses.set(o,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function i(e,t){return JSON.stringify(r(21)({queryID:e,variables:t}))}e.exports=o},function(e,t,r){"use strict";var n=r(6)(r(13)),o=function(){function e(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(60),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=e.getRecordIDs(),i=0;i<o.length;i++){var a=e.get(o[i]);a&&r(2).freeze(a)}this._gcScheduler=t,this._hasScheduledGC=!1,this._index=0,this._operationLoader=n,this._recordSource=e,this._roots=new Map,this._subscriptions=new Set,this._updatedRecordIDs={},this._gcHoldCounter=0,this._shouldScheduleGC=!1}var t=e.prototype;return t.getSource=function(){return this._recordSource},t.check=function(e){return r(39).check(this._recordSource,this._recordSource,e,[],this._operationLoader)},t.retain=function(e){var t=this,r=this._index++;return this._roots.set(r,e),{dispose:function(){t._roots.delete(r),t._scheduleGC()}}},t.lookup=function(e,t){var n=r(32).read(this._recordSource,e,t);return r(16)(n),n},t.notify=function(){var e=this;this._subscriptions.forEach(function(t){e._updateSubscription(t)}),this._updatedRecordIDs={}},t.publish=function(e){!function(e,t,n){for(var o=t.getRecordIDs(),i=0;i<o.length;i++){var a=o[i],s=t.get(a),c=e.get(a);if(s&&r(2).freeze(s),s===r(0).UNPUBLISH_RECORD_SENTINEL)e.remove(a),n[a]=!0;else if(s&&c){var u=r(2).update(c,s);u!==c&&(r(2).freeze(u),n[a]=!0,e.set(a,u))}else null===s?(e.delete(a),null!==c&&(n[a]=!0)):s&&(e.set(a,s),n[a]=!0)}}(this._recordSource,e,this._updatedRecordIDs)},t.subscribe=function(e,t){var r=this,n={callback:t,snapshot:e};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e._scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e){var t=e.callback,o=e.snapshot;if(r(61)(o,this._updatedRecordIDs)){var i=r(32).read(this._recordSource,o),a=i.data,s=i.seenRecords,c=r(44)(o.data,a),u=(0,n.default)({},o,{data:c,seenRecords:s});r(16)(u),e.snapshot=u,u.data!==o.data&&t(u)}},t._scheduleGC=function(){var e=this;this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._hasScheduledGC||(this._hasScheduledGC=!0,this._gcScheduler(function(){e.__gc(),e._hasScheduledGC=!1}))},t.__gc=function(){var e=this,t=new Set;if(this._roots.forEach(function(n){r(62).mark(e._recordSource,n,t,e._operationLoader)}),t.size)for(var n=this._recordSource.getRecordIDs(),o=0;o<n.length;o++){var i=n[o];t.has(i)||this._recordSource.remove(i)}else this._recordSource.clear()},e}();r(29).instrumentMethods(o.prototype,{lookup:"RelayModernStore.prototype.lookup",notify:"RelayModernStore.prototype.notify",publish:"RelayModernStore.prototype.publish",retain:"RelayModernStore.prototype.retain",subscribe:"RelayModernStore.prototype.subscribe",__gc:"RelayModernStore.prototype.__gc",holdGC:"RelayModernStore.prototype.holdGC"}),e.exports=o},function(e,t){e.exports=s},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=Object.keys(e.seenRecords),n=0;n<r.length;n++)if(t.hasOwnProperty(r[n]))return!0;return!1}},function(e,t,r){"use strict";var n=function(){function e(e,t,r,n){var o;this._operationLoader=null!==(o=n)&&void 0!==o?o:null,this._references=r,this._recordSource=e,this._variables=t}var t=e.prototype;return t.mark=function(e,t){this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||r(1)(!1,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var n=this;e.forEach(function(o){switch(o.kind){case r(3).LINKED_FIELD:o.plural?n._traversePluralLink(o,t):n._traverseLink(o,t);break;case r(3).CONDITION:n._getVariableValue(o.condition)===o.passingValue&&n._traverseSelections(o.selections,t);break;case r(3).INLINE_FRAGMENT:var i=r(2).getType(t);null!=i&&i===o.type&&n._traverseSelections(o.selections,t);break;case r(3).FRAGMENT_SPREAD:r(1)(!1,"RelayReferenceMarker(): Unexpected fragment spread `...%s`, expected all fragments to be inlined.",o.name);case r(3).LINKED_HANDLE:var a=r(40)(o,e,n._variables);a.plural?n._traversePluralLink(a,t):n._traverseLink(a,t);break;case r(3).SCALAR_FIELD:case r(3).SCALAR_HANDLE:break;case r(3).MATCH_FIELD:n._traverseMatch(o,t);break;default:r(1)(!1,"RelayReferenceMarker: Unknown AST node `%s`.",o)}})},t._traverseMatch=function(e,t){var n=r(0).getStorageKey(e,this._variables),o=r(2).getLinkedRecordID(t,n);if(null!=o){this._references.add(o);var i=this._recordSource.get(o);if(null!=i){var a=r(2).getType(i);if(null!=e.matchesByType[a]){var s=this._operationLoader;null===s&&r(1)(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@match`.");var c=r(2).getValue(i,r(0).MATCH_FRAGMENT_KEY);if(null==c)return;var u=s.get(c);null!=u&&this._traverseSelections(u.selections,i)}}}},t._traverseLink=function(e,t){var n=r(0).getStorageKey(e,this._variables),o=r(2).getLinkedRecordID(t,n);null!=o&&this._traverse(e,o)},t._traversePluralLink=function(e,t){var n=this,o=r(0).getStorageKey(e,this._variables),i=r(2).getLinkedRecordIDs(t,o);null!=i&&i.forEach(function(t){null!=t&&n._traverse(e,t)})},e}();e.exports={mark:function(e,t,r,o){var i=t.dataID,a=t.node,s=t.variables;new n(e,s,r,o).mark(a,i)}}},function(e,t,r){"use strict";e.exports=function(e,t){r(33)(e)||r(1)(!1,"commitRelayModernMutation: expected `environment` to be an instance of `RelayModernEnvironment`.\nWhen using Relay Modern and Relay Classic in the same application, ensure mutations use Relay Compat to work in both environments.\nSee: http://facebook.github.io/relay/docs/relay-compat.html");var n=e.unstable_internal,o=n.createOperationDescriptor,i=(0,n.getRequest)(t.mutation);if("mutation"!==i.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");var a=t.optimisticUpdater,s=t.configs,c=t.optimisticResponse,u=o(i,t.variables);return s&&(a=r(19).convert(s,i,a).optimisticUpdater),e.applyUpdate({operation:u,selectorStoreUpdater:a,response:c})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";e.exports=function(e,t){r(33)(e)||r(1)(!1,"commitRelayModernMutation: expected `environment` to be an instance of `RelayModernEnvironment`.\nWhen using Relay Modern and Relay Classic in the same application, ensure mutations use Relay Compat to work in both environments.\nSee: http://facebook.github.io/relay/docs/relay-compat.html");var n=e.unstable_internal,o=n.createOperationDescriptor,i=(0,n.getRequest)(t.mutation);if("mutation"!==i.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");if("Request"!==i.kind)throw new Error("commitRelayModernMutation: Expected mutation to be of type request");var a=t.optimisticResponse,s=t.optimisticUpdater,c=t.updater,u=t.configs,l=t.onError,d=t.variables,f=t.uploadables,p=o(i,d);if("function"==typeof a&&(a=a(),r(4)(!1,"commitRelayModernMutation: Expected `optimisticResponse` to be an object, received a function.")),a instanceof Object&&r(66)(a,i,t.variables),u){var h=r(19).convert(u,i,s,c);s=h.optimisticUpdater,c=h.updater}return e.executeMutation({operation:p,optimisticResponse:a,optimisticUpdater:s,updater:c,uploadables:f}).subscribeLegacy({onNext:function(r){var n=t.onCompleted;n&&n(e.lookup(p.fragment).data,r.errors)},onError:l})}},function(e,t,r){"use strict";var n=r(6)(r(13)),o=function(){};o=function(e,t,r){var n={operationName:t.operation.name,path:"ROOT",visitedPaths:new Set,variables:r||{}};i(e,t.operation.selections,n),c(e,n)};var i=function(e,t,r){t.forEach(function(t){return a(e,t,r)})},a=function e(t,r,n){switch(r.kind){case"Condition":return void(r.passingValue===n.variables[r.condition]&&i(t,r.selections,n));case"ScalarField":case"LinkedField":case"MatchField":return s(t,r,n);case"InlineFragment":var o=r.type;return void r.selections.forEach(function(r){t.__typename===o&&e(t,r,n)});case"LinkedHandle":case"ScalarHandle":default:return}},s=function(e,t,o){var a=t.alias||t.name,s="".concat(o.path,".").concat(a);switch(o.visitedPaths.add(s),t.kind){case"ScalarField":return void(void 0===e[a]&&r(4)(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is undefined",o.operationName,s));case"LinkedField":var c=t.selections;if(null===e[a])return;return t.plural?Array.isArray(e[a])?void e[a].forEach(function(e){return i(e,c,(0,n.default)({},o,{path:s}))}):void r(4)(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is not an array",o.operationName,s):e[a]instanceof Object?void i(e[a],c,(0,n.default)({},o,{path:s})):void r(4)(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is not an object",o.operationName,s)}},c=function e(t,o){Array.isArray(t)?t.forEach(function(t){return e(t,o)}):Object.keys(t).forEach(function(i){var a=t[i],s="".concat(o.path,".").concat(i);o.visitedPaths.has(s)?a instanceof Object&&e(a,(0,n.default)({},o,{path:s})):r(4)(!1,"validateMutation: `optimisticResponse` for mutation `%s`, contains an unused field %s",o.operationName,s)})};e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t,n,o){e.unstable_internal||r(1)(!1,"fetchRelayModernQuery: Expected a valid Relay environment, got `%s`.",e);var i=e.unstable_internal,a=i.createOperationDescriptor,s=(0,i.getRequest)(t);if("query"!==s.params.operationKind)throw new Error("fetchRelayModernQuery: Expected query operation");var c=a(s,n);return e.execute({operation:c,cacheConfig:o}).map(function(){return e.lookup(c.fragment).data}).toPromise()}},function(e,t,r){"use strict";e.exports=function(e,t){var n=e.unstable_internal,o=n.createOperationDescriptor,i=(0,n.getRequest)(t.subscription);if("subscription"!==i.params.operationKind)throw new Error("requestRelaySubscription: Must use Subscription operation");var a=t.configs,s=t.onCompleted,c=t.onError,u=t.onNext,l=o(i,t.variables);r(4)(!(t.updater&&a),"requestRelaySubscription: Expected only one of `updater` and `configs` to be provided");var d=(a?r(19).convert(a,i,null,t.updater):t).updater;return e.execute({operation:l,updater:d,cacheConfig:{force:!0}}).map(function(){return e.lookup(l.fragment).data}).subscribeLegacy({onNext:u,onError:c,onCompleted:s})}},function(e,t,r){"use strict";var n=r(6)(r(20)),o=r(6)(r(43)),i=1,a=function(){function e(e){var t=e.request,r=e.variables,o=e.cacheConfig,a=e.uploadables;(0,n.default)(this,"_hasCommittedLogs",!1),(0,n.default)(this,"_logs",[]),this._cacheConfig=o,this._id=i++,this._request=t,this._uploadables=a,this._variables=r}var t=e.prototype;return t.addLog=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this._logs.push({label:e,values:r})},t.clearLogs=function(){this._logs=[]},t.printLogs=function(e,t,r){var n=this.getIdentifier();console.groupCollapsed&&console.groupCollapsed("%c".concat(n),e?"color:red":""),console.timeEnd&&console.timeEnd(n),this.getLogsToPrint(e,t,r).forEach(function(e){var t,r=e.label,n=e.values;(t=console).log.apply(t,["".concat(r,":")].concat((0,o.default)(n)))}),console.groupEnd&&console.groupEnd()},t.commitLogs=function(e,t,n){!1!==this._hasCommittedLogs&&r(1)(!1,"The logs for transaction #".concat(this._id," have already been committed.")),this.printLogs(e,t,n),this.markCommitted()},t.markCommitted=function(){this._hasCommittedLogs=!0},t.flushLogs=function(e,t,n){!1!==this._hasCommittedLogs&&r(1)(!1,"The logs for transaction #".concat(this._id," have already been committed.")),this.printLogs(e,t,n),this.clearLogs()},t.getCacheConfig=function(){return this._cacheConfig},t.getIdentifier=function(){return"[".concat(this._id,"] Relay Modern: ").concat(this._request.name)},t.getLogsToPrint=function(e,t,r){return this._logs},t.getRequest=function(){return this._request},t.getUploadables=function(){return this._uploadables},t.getVariables=function(){return this._variables},e}();e.exports=a},function(e,t,r){"use strict";function n(e,t,r){return function(n,o,i,a){var s;function c(e,t,a){r&&s.addLog("GraphiQL",r(n,o)),s.addLog("Cache Config",i),s.addLog("Variables",JSON.stringify(o,null,2)),a&&s.addLog("Status",a),e&&s.addLog("Error",e),t&&s.addLog("Response",t)}function u(e,t,r){c(e,t,r),s.flushLogs(e,t,r)}function l(e,t,r){c(e,t,r),s.commitLogs(e,t,r)}var d=e(n,o,i,a),f="subscription"===n.operationKind;return d.do({start:function(){s=new t({request:n,variables:o,cacheConfig:i,uploadables:a}),console.time&&console.time(s.getIdentifier()),f&&u(null,null,"subscription is sent.")},next:function(e){u(null,e),console.time&&console.time(s.getIdentifier())},error:function(e){return l(e,null,null)},complete:function(){f?l(null,null,"subscription was closed."):s.markCommitted()},unsubscribe:function(){return l(null,null,f?"subscription is unsubscribed.":"execution is unsubscribed.")}})}}e.exports=function(e){return{wrapFetch:function(t,o){return function(i,a,s,c){return n(r(25).convertFetch(t),e,o)(i,a,s,c)}},wrapSubscribe:function(t,o){return function(i,a,s){return n(r(25).convertSubscribe(t),e,o)(i,a,s)}}}}},function(e,t,r){"use strict";e.exports=function e(t){return Array.isArray(t)?t.map(e):t&&"object"==typeof t?r(72)(t,e):t}},function(e,t){e.exports=c}])});
|
|
4
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","fbjs/lib/areEqual","fbjs/lib/mapObject","fbjs/lib/sprintf","fbjs/lib/emptyFunction","fbjs/lib/removeFromArray","fbjs/lib/ErrorUtils","fbjs/lib/resolveImmediate"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["fbjs/lib/areEqual"],e["fbjs/lib/mapObject"],e["fbjs/lib/sprintf"],e["fbjs/lib/emptyFunction"],e["fbjs/lib/removeFromArray"],e["fbjs/lib/ErrorUtils"],e["fbjs/lib/resolveImmediate"])}(window,function(e,t,r,n,o,a,i,s,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=47)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(2)(r(8)),o=r(5),a=r(19),i=r(0),s=r(9),l=o.VARIABLE,u="__module_component_",c="__module_operation_";function d(e,t){var r={};return e.forEach(function(e){e.kind===l?r[e.name]=function(e,t){return t.hasOwnProperty(e)||i(!1,"getVariableValue(): Undefined variable `%s`.",e),s(t[e])}(e.variableName,t):r[e.name]=e.value}),r}function f(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];null!=o&&r.push(n+":"+JSON.stringify(o))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var p={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",UNPUBLISH_RECORD_SENTINEL:Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),UNPUBLISH_FIELD_SENTINEL:Object.freeze({__UNPUBLISH_FIELD_SENTINEL:!0}),getArgumentValues:d,getHandleStorageKey:function(e,t){var r=e.dynamicKey,o=e.handle,i=e.key,s=e.name,l=e.args,u=e.filters,c=a(o,i,s),p=null;return l&&u&&0!==l.length&&0!==u.length&&(p=l.filter(function(e){return u.indexOf(e.name)>-1})),r&&(p=null!=p?[r].concat((0,n.default)(p)):[r]),null===p?c:f(c,d(p,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?f(n,d(r,t)):n},getStableStorageKey:function(e,t){return f(e,s(t))},getModuleComponentKey:function(e){return"".concat(u).concat(e)},getModuleOperationKey:function(e){return"".concat(c).concat(e)}};e.exports=p},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,r){e.exports=t},function(e,t,r){var n=r(11);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",VARIABLE:"Variable"}},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(13),a=r(16),i=r(0),s=r(3),l=r(7).isClientID,u=r(1),c=u.ID_KEY,d=u.REF_KEY,f=u.REFS_KEY,p=u.TYPENAME_KEY,h=u.UNPUBLISH_FIELD_SENTINEL;function _(e){return e[c]}function v(e){return e[p]}e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==c&&r!==p&&(t[r]=e[r])},create:function(e,t){var r={};return r[c]=e,r[p]=t,r},freeze:function(e){a(e)},getDataID:_,getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[d]||i(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.",e[c],t,JSON.stringify(r)),r[d])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[f])||i(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.",e[c],t,JSON.stringify(r)),r[f])},getType:v,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(d)||r.hasOwnProperty(f))&&i(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[c],t,r.hasOwnProperty(d)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,o=_(e),a=_(t);s(o===a,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",o,a);var i=null!==(r=v(e))&&void 0!==r?r:null,u=null!==(n=v(t))&&void 0!==n?n:null;return s(l(a)||i===u,"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.",o,p,i,u),Object.assign({},e,t)},setValue:function(e,t,r){var n=_(e);if(t===c)s(n===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",n,r);else if(t===p){var o,a,i=null!==(o=v(e))&&void 0!==o?o:null,u=null!==(a=r)&&void 0!==a?a:null;s(l(_(e))||i===u,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",n,p,i,u)}e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[d]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[f]=r,e[t]=n},update:function(e,t){var r,a,i=_(e),u=_(t);s(i===u,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",i,u);var c=null!==(r=v(e))&&void 0!==r?r:null,d=null!==(a=v(t))&&void 0!==a?a:null;s(l(u)||c===d,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,p,c,d);for(var f=null,g=Object.keys(t),m=0;m<g.length;m++){var y=g[m];!f&&o(e[y],t[y])||(f=null!==f?f:(0,n.default)({},e),t[y]!==h?f[y]=t[y]:delete f[y])}return null!==f?f:e}}},function(e,t,r){"use strict";var n="client:";e.exports={generateClientID:function(e,t,r){var o=e+":"+t;return null!=r&&(o+=":"+r),0!==o.indexOf(n)&&(o=n+o),o},isClientID:function(e){return 0===e.indexOf(n)}}},function(e,t,r){var n=r(49),o=r(50),a=r(51);e.exports=function(e){return n(e)||o(e)||a()}},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},o=0;o<r.length;o++)n[r[o]]=e(t[r[o]]);return n}},function(e,t,r){"use strict";var n=r(61),o=function(e,t){},a=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(e));this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){o=e},e.from=function(e){return i(e)?s(e):n(e)?l(e):u(e)},e.fromLegacy=function(t){return e.create(function(e){var r=t({onNext:e.next,onError:e.error,onCompleted:e.complete});return i(r)?r.subscribe(e):function(){return r.dispose()}})};var t=e.prototype;return t.catch=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}})},t.concat=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}})},t.do=function(t){var r=this;return e.create(function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){o(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})})},t.finally=function(t){var r=this;return e.create(function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}})},t.ifEmpty=function(t){var r=this;return e.create(function(e){var n=!1,o=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():o=t.subscribe(e)}});return function(){o.unsubscribe()}})},t.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function i(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){o(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){o(e,!0)}finally{i()}}}});try{t.start&&t.start(s)}catch(e){o(e,!0)}if(n)return s;var l=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){o(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,o(e,r||!1),i();else{n=!0;try{t.error(e)}catch(e){o(e,!0)}finally{i()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){o(e,!0)}finally{i()}}}});try{r=e(l)}catch(e){l.error(e,!0)}if(void 0!==r&&"function"!=typeof r&&(!r||"function"!=typeof r.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(r));n&&i();return s}(this._source,e)},t.subscribeLegacy=function(e){return{dispose:this.subscribe({next:e.onNext,error:e.onError,complete:e.onCompleted}).unsubscribe}},t.map=function(t){var r=this;return e.create(function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}})},t.mergeMap=function(t){var r=this;return e.create(function(n){var o=[];function a(e){this._sub=e,o.push(e)}function i(){o.splice(o.indexOf(this._sub),1),0===o.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:i})}catch(e){n.error(e,!0)}},error:n.error,complete:i}),function(){o.forEach(function(e){return e.unsubscribe()}),o.length=0}})},t.poll=function(t){var r=this;if("number"!=typeof t||t<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+t);return e.create(function(e){var n,o;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){o=setTimeout(a,t)}})}(),function(){clearTimeout(o),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n;e.subscribe({start:function(e){n=e},next:function(e){t(e),n.unsubscribe()},error:r,complete:t})})},e}();function i(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}function s(e){return e instanceof a?e:a.create(function(t){return e.subscribe(t)})}function l(e){return a.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)})}function u(e){return a.create(function(t){t.next(e),t.complete()})}a.onUnhandledError(function(e,t){"function"==typeof fail?fail(String(e)):t?setTimeout(function(){throw e}):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)}),e.exports=a},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=r(15),o=n.EXISTENT,a=n.NONEXISTENT,i=n.UNKNOWN,s=function(){function e(e){this._records=e||{}}var t=e.prototype;return t.clear=function(){this._records={}},t.delete=function(e){this._records[e]=null},t.get=function(e){return this._records[e]},t.getRecordIDs=function(){return Object.keys(this._records)},t.getStatus=function(e){return this._records.hasOwnProperty(e)?null==this._records[e]?a:o:i},t.has=function(e){return this._records.hasOwnProperty(e)},t.load=function(e,t){t(null,this.get(e))},t.remove=function(e){delete this._records[e]},t.set=function(e,t){this._records[e]=t},t.size=function(){return Object.keys(this._records).length},t.toJSON=function(){return this._records},e}();e.exports=s},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=r(18),o=r(3),a=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE",FIELDS_CHANGE:"FIELDS_CHANGE",REQUIRED_CHILDREN:"REQUIRED_CHILDREN"}),i=Object.freeze({APPEND:"append",IGNORE:"ignore",PREPEND:"prepend",REFETCH:"refetch",REMOVE:"remove"});function s(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:a,RangeOperations:i,convert:function(e,t,r,a){var i=r?[r]:[],l=a?[a]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=s(t);return n?function(e,t){var o=e.getRootField(n);if(o){var a=o.getValue(r),i=Array.isArray(a)?a:[a];i.forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null}(e,t);r&&(i.push(r),l.push(r));break;case"RANGE_ADD":var a=function(e,t){var r=e.parentID,a=e.connectionInfo,i=e.edgeName;if(!r)return o(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_ADD to work you must include a parentID"),null;var l=s(t);return a&&l?function(e,t){var s=e.get(r);if(s){var u=e.getRootField(l);if(u){var c=u.getLinkedRecord(i),d=!0,f=!1,p=void 0;try{for(var h,_=a[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;if(c){var g=n.getConnection(s,v.key,v.filters);if(g){var m=n.buildConnectionEdge(e,g,c);if(m)switch(v.rangeBehavior){case"append":n.insertEdgeAfter(g,m);break;case"ignore":break;case"prepend":n.insertEdgeBefore(g,m);break;default:o(!1,"RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` will not work as expected in RelayModern, supported range behaviors are 'append', 'prepend', and 'ignore'.",v.rangeBehavior)}}}}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}}}}:null}(e,t);a&&(i.push(a),l.push(a));break;case"RANGE_DELETE":var u=function(e,t){var r=e.parentID,a=e.connectionKeys,i=e.pathToConnection,l=e.deletedIDFieldName;if(!r)return o(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE to work you must include a parentID"),null;var u=s(t);return u?function(e,t){if(t){var s=[],c=t[u];if(c&&Array.isArray(l)){var d=!0,f=!1,p=void 0;try{for(var h,_=l[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;c&&"object"==typeof c&&(c=c[v])}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}Array.isArray(c)?c.forEach(function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&s.push(e.id)}):c&&c.id&&"string"==typeof c.id&&s.push(c.id)}else c&&"string"==typeof l&&"object"==typeof c&&("string"==typeof(c=c[l])?s.push(c):Array.isArray(c)&&c.forEach(function(e){"string"==typeof e&&s.push(e)}));!function(e,t,r,a,i){o(t,"RelayDeclarativeMutationConfig: RANGE_DELETE must provide a connectionKeys");var s=a.get(e);if(s)if(r.length<2)o(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection must include at least parent and connection");else{for(var l=s,u=1;u<r.length-1;u++)l&&(l=l.getLinkedRecord(r[u]));if(t&&l){var c=!0,d=!1,f=void 0;try{for(var p,h=function(){var e=p.value,t=n.getConnection(l,e.key,e.filters);t&&i.forEach(function(e){n.deleteNode(t,e)})},_=t[Symbol.iterator]();!(c=(p=_.next()).done);c=!0)h()}catch(e){d=!0,f=e}finally{try{c||null==_.return||_.return()}finally{if(d)throw f}}}else o(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection is incorrect. Unable to find connection with parentID: %s and path: %s",e,r.toString())}}(r,a,i,e,s)}}:null}(e,t);u&&(i.push(u),l.push(u))}}),{optimisticUpdater:function(e,t){i.forEach(function(r){r(e,t)})},updater:function(e,t){l.forEach(function(r){r(e,t)})}}}}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)}),t}},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(0);e.exports={getFragmentVariables:function(e,t,r){var a;return e.argumentDefinitions.forEach(function(i){if(!r.hasOwnProperty(i.name))switch(a=a||(0,n.default)({},r),i.kind){case"LocalArgument":a[i.name]=i.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(i.name)){a[i.name]=void 0;break}a[i.name]=t[i.name];break;default:o(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",i.kind,e.name)}}),a||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach(function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n}),r}}},function(e,t,r){"use strict";var n=r(26),o=r(19),a=r(0),i=r(3),s=r(7).generateClientID,l="connection",u="__connection_next_edge_index";function c(e,t,r){if(null==r)return r;var o=n.get().EDGES,i=t.getValue(u);"number"!=typeof i&&a(!1,"RelayConnectionHandler: Expected %s to be a number, got `%s`.",u,i);var l=s(t.getDataID(),o,i),c=e.create(l,r.getType());return c.copyFieldsFrom(r),t.setValue(i+1,u),c}function d(e,t,r){for(var o=n.get().NODE,a=0;a<e.length;a++){var i=e[a];if(i){var s=i.getLinkedRecord(o),l=s&&s.getDataID();if(l){if(r.has(l))continue;r.add(l)}t.push(i)}}}e.exports={buildConnectionEdge:c,createEdge:function(e,t,r,o){var a=n.get().NODE,i=s(t.getDataID(),r.getDataID()),l=e.get(i);return l||(l=e.create(i,o)),l.setLinkedRecord(r,a),l},deleteNode:function(e,t){var r=n.get(),o=r.EDGES,a=r.NODE,i=e.getLinkedRecords(o);if(i){for(var s,l=0;l<i.length;l++){var u=i[l],c=u&&u.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=i.slice(0,l)):void 0!==s&&s.push(u)}void 0!==s&&e.setLinkedRecords(s,o)}},getConnection:function(e,t,r){var n=o(l,t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var o=n.get(),a=o.CURSOR,i=o.EDGES,s=e.getLinkedRecords(i);if(s){var l;if(null==r)l=s.concat(t);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];l.push(d),null!=d&&r===d.getValue(a)&&(l.push(t),u=!0)}u||l.push(t)}e.setLinkedRecords(l,i)}else e.setLinkedRecords([t],i)},insertEdgeBefore:function(e,t,r){var o=n.get(),a=o.CURSOR,i=o.EDGES,s=e.getLinkedRecords(i);if(s){var l;if(null==r)l=[t].concat(s);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];null!=d&&r===d.getValue(a)&&(l.push(t),u=!0),l.push(d)}u||l.unshift(t)}e.setLinkedRecords(l,i)}else e.setLinkedRecords([t],i)},update:function(e,t){var r=e.get(t.dataID);if(r){var o=n.get(),a=o.EDGES,l=o.END_CURSOR,f=o.HAS_NEXT_PAGE,p=o.HAS_PREV_PAGE,h=o.PAGE_INFO,_=o.PAGE_INFO_TYPE,v=o.START_CURSOR,g=r.getLinkedRecord(t.fieldKey),m=g&&g.getLinkedRecord(h);if(g){var y=r.getLinkedRecord(t.handleKey),b=y&&y.getLinkedRecord(h);if(y){var R=y,E=g.getLinkedRecords(a);E&&(E=E.map(function(t){return c(e,R,t)}));var D=R.getLinkedRecords(a),S=R.getLinkedRecord(h);R.copyFieldsFrom(g),D&&R.setLinkedRecords(D,a),S&&R.setLinkedRecord(S,h);var k=[],I=t.args;if(D&&E)if(null!=I.after){if(!b||I.after!==b.getValue(l))return void i(!1,"RelayConnectionHandler: Unexpected after cursor `%s`, edges must be fetched from the end of the list (`%s`).",I.after,b&&b.getValue(l));var x=new Set;d(D,k,x),d(E,k,x)}else if(null!=I.before){if(!b||I.before!==b.getValue(v))return void i(!1,"RelayConnectionHandler: Unexpected before cursor `%s`, edges must be fetched from the beginning of the list (`%s`).",I.before,b&&b.getValue(v));var O=new Set;d(E,k,O),d(D,k,O)}else k=E;else k=E||D;if(null!=k&&k!==D&&R.setLinkedRecords(k,a),b&&m)if(null==I.after&&null==I.before)b.copyFieldsFrom(m);else if(null!=I.before||null==I.after&&I.last){b.setValue(!!m.getValue(p),p);var N=m.getValue(v);"string"==typeof N&&b.setValue(N,v)}else if(null!=I.after||null==I.before&&I.first){b.setValue(!!m.getValue(f),f);var F=m.getValue(l);"string"==typeof F&&b.setValue(F,l)}}else{var L=e.create(s(r.getDataID(),t.handleKey),g.getType());L.setValue(0,u),L.copyFieldsFrom(g);var w=g.getLinkedRecords(a);w&&(w=w.map(function(t){return c(e,L,t)}),L.setLinkedRecords(w,a)),r.setLinkedRecord(L,t.handleKey),(b=e.create(s(L.getDataID(),h),_)).setValue(!1,f),b.setValue(!1,p),b.setValue(null,l),b.setValue(null,v),m&&b.copyFieldsFrom(m),L.setLinkedRecord(b,h)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(0),o=r(27).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==o?"__".concat(t,"_").concat(e):(null==r&&n(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(48),o=r(3),a=r(31),i=a.getFragment,s=a.getPaginationFragment,l=a.getRefetchableFragment,u=a.getRequest,c=a.isFragment,d=a.isRequest,f=r(52).createOperationDescriptor,p=r(30),h=p.areEqualSelectors,_=p.getDataIDsFromFragment,v=p.getDataIDsFromObject,g=p.getSingularSelector,m=p.getPluralSelector,y=p.getSelector,b=p.getSelectorsFromObject,R=p.getVariablesFromSingularFragment,E=p.getVariablesFromPluralFragment,D=p.getVariablesFromFragment,S=p.getVariablesFromObject;e.exports={areEqualSelectors:h,createFragmentSpecResolver:function(e,t,r,a,i){return Object.keys(r).forEach(function(e){var r=a[e];o(void 0!==r,"createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",e,t)}),new n(e,r,a,i)},createOperationDescriptor:f,getDataIDsFromFragment:_,getDataIDsFromObject:v,getFragment:i,getPaginationFragment:s,getRefetchableFragment:l,getRequest:u,getSingularSelector:g,getPluralSelector:m,getSelector:y,getSelectorsFromObject:b,getVariablesFromSingularFragment:R,getVariablesFromPluralFragment:E,getVariablesFromFragment:D,getVariablesFromObject:S,isFragment:c,isRequest:d}},function(e,t,r){"use strict";var n=r(0),o=r(29),a=r(1).FRAGMENT_OWNER_KEY;function i(e,t){var r;return null==t?null:("object"!=typeof t&&n(!1,"RelayModernFragmentOwner: Expected value for fragment `%s` to be an object, got `%s`.",e.name,typeof t),null!==(r=t[a])&&void 0!==r?r:null)}function s(e,t){return Array.isArray(t)?function(e,t){return t.map(function(t){return i(e,t)})}(e,t):i(e,t)}e.exports={getFragmentOwner:s,getFragmentOwners:function(e,t){return o(e,function(e,r){return s(e,t[r])})}}},function(e,t,r){"use strict";var n=(0,r(7).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var n=r(12),o=r(6),a=r(39),i=r(1),s=i.ROOT_ID,l=i.ROOT_TYPE;e.exports=function(e,t,r,i){var u=new n;u.set(s,o.create(s,l));var c=a.normalize(u,e,t,i);return{errors:r,fieldPayloads:c.fieldPayloads,incrementalPlaceholders:c.incrementalPlaceholders,moduleImportPayloads:c.moduleImportPayloads,source:u}}},function(e,t,r){"use strict";var n=r(58),o=r(59),a={"*":[]},i={"*":[]},s={},l={stop:n},u={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=u.instrument(t[r],e[r]))},instrument:function(e,t){a.hasOwnProperty(e)||(a[e]=[]);var r=a["*"],n=a[e],i=[],l=[],u=function(){var o;if(0===n.length&&0===i.length&&0===r.length)o=t.apply(this,arguments);else if(l.push([r.length,n.length,i.length,this,arguments,s]),function o(){var a=l[l.length-1];a[0]?(a[0]--,r[a[0]](e,o)):a[1]?(a[1]--,n[a[1]](e,o)):a[2]?(a[2]--,i[a[2]](e,o)):a[5]=t.apply(a[3],a[4])}(),(o=l.pop()[5])===s)throw new Error("RelayProfiler: Handler did not invoke original function.");return o};return u.attachHandler=function(e){i.push(e)},u.detachHandler=function(e){o(i,e)},u.displayName="(instrumented "+e+")",u},attachAggregateHandler:function(e,t){a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t)},detachAggregateHandler:function(e,t){a.hasOwnProperty(e)&&o(a[e],t)},profile:function(e,t){var r=i["*"].length>0,n=i.hasOwnProperty(e);if(n||r){for(var o,a=n&&r?i[e].concat(i["*"]):n?i[e]:i["*"],s=a.length-1;s>=0;s--){var u=(0,a[s])(e,t);(o=o||[]).unshift(u)}return{stop:function(e){o&&o.forEach(function(t){return t(e)})}}}return l},attachProfileHandler:function(e,t){i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t)},detachProfileHandler:function(e,t){i.hasOwnProperty(e)&&o(i[e],t)}};e.exports=u},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n=r(2)(r(11)),o={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},a={find:!0,first:!0,last:!0},i={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES_HAVE_SOURCE_FIELD:!1,EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},s={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return o.hasOwnProperty(e.name)},hasRangeCalls:function(e){return e.some(function(e){return a.hasOwnProperty(e.name)})},getDefaultPageInfo:function(){var e;return e={},(0,n.default)(e,i.END_CURSOR,null),(0,n.default)(e,i.HAS_NEXT_PAGE,!1),(0,n.default)(e,i.HAS_PREV_PAGE,!1),(0,n.default)(e,i.START_CURSOR,null),e}};e.exports=s},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(13),o=r(0),a=r(3),i=r(17).getFragmentVariables,s=r(1),l=s.FRAGMENT_OWNER_KEY,u=s.FRAGMENTS_KEY,c=s.ID_KEY;function d(e,t,r,n){("object"!=typeof r||null===r||Array.isArray(r))&&o(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",t.name,JSON.stringify(r));var s=r[c],d=r[u];if("string"==typeof s&&"object"==typeof d&&null!==d&&"object"==typeof d[t.name]&&null!==d[t.name]){var f,p,h=d[t.name];if(null!=n&&"object"==typeof n){var _=n.variables;return{owner:n,selector:{dataID:s,node:t,variables:i(t,_,h)}}}return{owner:null!==(f=null!==(p=n)&&void 0!==p?p:r[l])&&void 0!==f?f:null,selector:{dataID:s,node:t,variables:i(t,e,h)}}}var v=JSON.stringify(r);return v.length>499&&(v=v.substr(0,498)+"…"),a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",t.name,v,t.name),null}function f(e,t,r,n){var o=null;return null!=n&&a(r.length===n.length,"RelayModernSelector: Expected number of plural values for fragment `%s` to match number of owners. Received %s values and %s owners.",t.name,r.length,n.length),r.forEach(function(r,a){var i=null!=n?n[a]:null,s=null!=r?d(e,t,r,i):null;null!=s&&(o=o||[]).push(s)}),o}function p(e,t,r,n){var a;return null==r?a=r:t.metadata&&!0===t.metadata.plural?(Array.isArray(r)||o(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",t.name,JSON.stringify(r),t.name),void 0!==n?(Array.isArray(n)||o(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` to be an array, got `%s`.",t.name,JSON.stringify(n)),a=f(e,t,r,n)):a=f(e,t,r)):(Array.isArray(r)&&o(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",t.name,JSON.stringify(r),t.name),null!=n?(Array.isArray(n)&&o(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` not to be an array, got `%s`.",t.name,JSON.stringify(n)),a=d(e,t,r,n)):a=d(e,t,r)),a}function h(e,t){var r;return null==t?r=t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||o(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),r=function(e,t){var r;return t.forEach(function(t){var n=null!=t?_(e,t):null;null!=n&&(r=r||[]).push(n)}),r||null}(e,t)):(Array.isArray(t)&&o(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),r=_(e,t)),r}function _(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&o(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c];return"string"==typeof r?r:(a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,JSON.stringify(t),e.name),null)}function v(e,t,r,n){var a;return null==r?{}:!0===(null===(a=t.metadata)||void 0===a?void 0:a.plural)?(Array.isArray(r)||o(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",t.name,JSON.stringify(r),t.name),void 0!==n?(Array.isArray(n)||o(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` to be an array, got `%s`.",t.name,JSON.stringify(n)),m(e,t,r,n)):m(e,t,r)):(Array.isArray(r)&&o(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",t.name,JSON.stringify(r),t.name),void 0!==n?(Array.isArray(n)&&o(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` not to be an array, got `%s`.",t.name,JSON.stringify(n)),g(e,t,r,n)||{}):g(e,t,r)||{})}function g(e,t,r,n){var o=d(e,t,r,n);return o?o.selector.variables:null}function m(e,t,r,n){var o={};return r.forEach(function(r,a){if(null!=r){var i=null!=n?n[a]:null,s=g(e,t,r,i);s&&Object.assign(o,s)}}),o}e.exports={areEqualSelectors:function(e,t){var r=n(e.selector.variables,t.selector.variables);return e.selector.dataID===t.selector.dataID&&e.selector.node===t.selector.node&&r&&e.owner===t.owner},getDataIDsFromFragment:h,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n],a=t[n];r[n]=h(o,a)}return r},getSingularSelector:d,getPluralSelector:f,getSelector:p,getSelectorsFromObject:function(e,t,r,n){var a={};for(var i in t)if(t.hasOwnProperty(i)){var s=t[i],l=r[i];if(null!=n){n.hasOwnProperty(i)||o(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` under key `%s` to exist.",s.name,i);var u=n[i];a[i]=p(e,s,l,u)}else a[i]=p(e,s,l)}return a},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,t,r,n){var a={};for(var i in t)if(t.hasOwnProperty(i)){var s=t[i],l=r[i];if(null!=n){n.hasOwnProperty(i)||o(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` under key `%s` to exist.",s.name,i);var u=v(e,s,l,n[i]);Object.assign(a,u)}else{var c=v(e,s,l);Object.assign(a,c)}}return a}}},function(e,t,r){"use strict";var n=r(5),o=r(0);function a(e){var t="function"==typeof e?e:"function"==typeof e.modern?e.modern:null;if(null===t)return e;var r=t();return r.default?r.default:r}function i(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function l(e){var t=a(e);return i(t)||o(!1,"RelayModernGraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:l,getPaginationFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,o=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===o||"object"!=typeof o?null:r},getRefetchableFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return s(t)||o(!1,"RelayModernGraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},graphql:function(e){o(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`.")},isFragment:i,isRequest:s}},function(e,t,r){"use strict";var n=r(18),o=r(0);e.exports=function(e){switch(e){case"connection":return n}o(!1,"RelayDefaultHandlerProvider: No handler provided for `%s`.",e)}},function(e,t,r){"use strict";var n=r(1).ROOT_TYPE,o=r(22).VIEWER_ID,a={kind:"linked",handle:function(e,t,r){if(null!=t&&t.__typename===n&&"viewer"===e.name)return o}};e.exports=[a]},function(e,t,r){"use strict";var n=r(2)(r(8)),o=r(53),a={create:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return i("mustfix",e,t,n)},createWarning:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return i("warn",e,t,n)}};function i(e,t,r,a){var i=new Error(o.apply(void 0,[r].concat((0,n.default)(a))));return i.name=t,i.type=e,i.framesToPop=2,i}e.exports=a},function(e,t,r){"use strict";var n=r(5),o=r(36),a=r(37),i=r(1),s=r(40),l=r(0),u=r(15),c=u.EXISTENT,d=u.UNKNOWN,f=n.CONDITION,p=n.CLIENT_EXTENSION,h=n.DEFER,_=n.FRAGMENT_SPREAD,v=n.INLINE_FRAGMENT,g=n.LINKED_FIELD,m=n.LINKED_HANDLE,y=n.MODULE_IMPORT,b=n.SCALAR_FIELD,R=n.SCALAR_HANDLE,E=n.STREAM,D=i.getModuleOperationKey,S=i.getStorageKey,k=i.getArgumentValues;var I=function(){function e(e,t,r,n,i,s){var l;this._operationLoader=null!==(l=i)&&void 0!==l?l:null,this._handlers=n,this._mutator=new o(e,t),this._recordWasMissing=!1,this._source=e,this._variables=r,this._recordSourceProxy=new a(this._mutator,s)}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!this._recordWasMissing},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||l(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?k(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,o=r.record,a=!0,i=!1,s=void 0;try{for(var l,u=this._handlers[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var c=l.value;if("scalar"===c.kind){var d=c.handle(e,o,n,this._recordSourceProxy);if(void 0!==d)return d}}}catch(e){i=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw s}}this._handleMissing()},t._handleMissingLinkField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,o=r.record,a=!0,i=!1,s=void 0;try{for(var l,u=this._handlers[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value;if("linked"===d.kind){var f=d.handle(e,o,n,this._recordSourceProxy);if(null!=f&&this._mutator.getStatus(f)===c)return f}}}catch(e){i=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw s}}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r=this,n=this._getDataForHandlers(e,t),o=n.args,a=n.record,i=!0,s=!1,l=void 0;try{for(var u,d=this._handlers[Symbol.iterator]();!(i=(u=d.next()).done);i=!0){var f=u.value;if("pluralLinked"===f.kind){var p=f.handle(e,a,o,this._recordSourceProxy);if(null!=p)return p.filter(function(e){return null!=e&&r._mutator.getStatus(e)===c})}}}catch(e){s=!0,l=e}finally{try{i||null==d.return||d.return()}finally{if(s)throw l}}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);r===d&&this._handleMissing(),r===c&&this._traverseSelections(e.selections,t)},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case b:r._checkScalar(n,t);break;case g:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case f:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case v:var o=r._mutator.getType(t);null!=o&&o===n.type&&r._traverseSelections(n.selections,t);break;case m:var a=s(n,e,r._variables);a.plural?r._checkPluralLink(a,t):r._checkLink(a,t);break;case y:r._checkModuleImport(n,t);break;case h:case E:r._traverseSelections(n.selections,t);break;case R:case _:l(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind);break;case p:var i=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=i;break;default:l(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind)}})},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&l(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var n=D(e.documentName),o=this._mutator.getValue(t,n);if(null!=o){var a=r.get(o);null!=a?this._traverse(a,t):this._handleMissing()}else void 0===o&&this._handleMissing()},t._checkScalar=function(e,t){var r=S(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=S(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&null!=(n=this._handleMissingLinkField(e,t))&&this._mutator.setLinkedRecordID(t,r,n),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=S(e,this._variables),o=this._mutator.getLinkedRecordIDs(t,n);void 0===o&&null!=(o=this._handleMissingPluralLinkField(e,t))&&this._mutator.setLinkedRecordIDs(t,n,o),o&&o.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={check:function(e,t,r,n,o,a){var i=r.dataID,s=r.node,l=r.variables;return new I(e,t,l,n,o,a).check(s,i)}}},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(6),a=r(0),i=r(15).EXISTENT,s=r(1),l=s.UNPUBLISH_FIELD_SENTINEL,u=s.UNPUBLISH_RECORD_SENTINEL,c=function(){function e(e,t,r){this._backup=r,this._base=e,this._sink=t,this.__sources=[t,e]}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);if(void 0===r){if(null==t)return t;var n=o.clone(t);return o.freeze(n),n}if(null===r)return null;if(r!==u){if(null!=t){var a=o.update(t,r);return a!==t&&o.freeze(a),a}var i=o.clone(r);return o.freeze(i),i}},t._createBackupRecord=function(e){var t=this._backup;if(t&&!t.has(e)){var r=this._base.get(e);null!=r?t.set(e,r):null===r&&t.delete(e)}},t._setSentinelFieldsInBackupRecord=function(e,t){var r=this._backup;if(r){var o=r.get(e);if(o&&o!==u){var a=null;for(var i in t)t.hasOwnProperty(i)&&(i in o||((a=a||(0,n.default)({},o))[i]=l));r.set(e,a||o)}}},t._setSentinelFieldInBackupRecord=function(e,t){var r=this._backup;if(r){var a=r.get(e);if(a&&a!==u&&!(t in a)){var i=(0,n.default)({},a);o.setValue(i,t,l),r.set(e,i)}}},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||a(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),t=o.create(e,o.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),n=this._base.get(e);r||n||a(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e),this._createBackupRecord(t);var i=this._getSinkRecord(t);n&&o.copyFields(n,i),r&&o.copyFields(r,i),this._setSentinelFieldsInBackupRecord(t,i)},t.copyFieldsFromRecord=function(e,t){this._createBackupRecord(t);var r=this._getSinkRecord(t);o.copyFields(e,r),this._setSentinelFieldsInBackupRecord(t,r)},t.create=function(e,t){(this._base.getStatus(e)===i||this._sink.getStatus(e)===i)&&a(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e),this._backup&&this._backup.set(e,u);var r=o.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._createBackupRecord(e),this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return o.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=o.getValue(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setValue=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);o.setValue(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=o.getLinkedRecordID(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordID=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);o.setLinkedRecordID(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=o.getLinkedRecordIDs(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordIDs=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);o.setLinkedRecordIDs(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},e}();e.exports=c},function(e,t,r){"use strict";var n=r(6),o=r(57),a=r(38),i=r(0),s=r(23),l=r(15),u=l.EXISTENT,c=l.NONEXISTENT,d=r(1),f=d.ROOT_ID,p=d.ROOT_TYPE,h=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach(function(t){var o=e.getStatus(t);if(o===u){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==u&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else o===c&&r.delete(t)}),t&&t.length&&t.forEach(function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||i(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),t.update(r,e)})},t.commitPayload=function(e,t){if(!t)return new a(this,e.fragment);var r=s(e.root,t,null,{getDataID:this._getDataID}),n=r.source,o=r.fieldPayloads;return this.publishSource(n,o),new a(this,e.fragment)},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||i(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===f&&i(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===u?new o(this,this.__mutator,e):t===c?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(f);return e||(e=this.create(f,p)),e&&e.getType()===p||i(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record."),e},e}();e.exports=h},function(e,t,r){"use strict";var n=r(0),o=r(1).getStorageKey,a=function(){function e(e,t){this.__recordSource=e,this._readSelector=t}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t._getRootField=function(e,t,r){var o=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t});return o&&"LinkedField"===o.kind||n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Cannot find root field `%s`, no such field is defined on GraphQL document `%s`.",t,e.node.name),o.plural!==r&&n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Expected root field `%s` to be %s.",t,r?"plural":"singular"),o},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=o(t,this._readSelector.variables);return this.getRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=o(t,this._readSelector.variables);return this.getRoot().getLinkedRecords(r)},e}();e.exports=a},function(e,t,r){"use strict";var n=r(2)(r(8)),o=r(6),a=r(24),i=r(0),s=r(3),l=r(5),u=l.CONDITION,c=l.CLIENT_EXTENSION,d=l.DEFER,f=l.INLINE_FRAGMENT,p=l.LINKED_FIELD,h=l.LINKED_HANDLE,_=l.MODULE_IMPORT,v=l.SCALAR_FIELD,g=l.SCALAR_HANDLE,m=l.STREAM,y=r(7),b=y.generateClientID,R=y.isClientID,E=r(1),D=E.getArgumentValues,S=E.getHandleStorageKey,k=E.getModuleComponentKey,I=E.getModuleOperationKey,x=E.getStorageKey,O=E.TYPENAME_KEY;function N(e,t,r,n){var o=t.dataID,a=t.node,i=t.variables;return new F(e,i,n).normalizeResponse(a,o,r)}var F=function(){function e(e,t,r){this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._handleStrippedNulls=!0===r.handleStrippedNulls,this._incrementalPlaceholders=[],this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||i(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._traverseSelections(e,n,r),{incrementalPlaceholders:this._incrementalPlaceholders,fieldPayloads:this._handleFieldPayloads,moduleImportPayloads:this._moduleImportPayloads}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||i(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[O];return null==t&&i(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var a=e.selections[n];switch(a.kind){case v:case p:this._normalizeField(e,a,t,r);break;case u:this._getVariableValue(a.condition)===a.passingValue&&this._traverseSelections(a,t,r);break;case f:o.getType(t)===a.type&&this._traverseSelections(a,t,r);break;case h:case g:var s=a.args?D(a.args,this._variables):{},l=x(a,this._variables),y=S(a,this._variables);this._handleFieldPayloads.push({args:s,dataID:o.getDataID(t),fieldKey:l,handle:a.handle,handleKey:y});break;case _:this._normalizeModuleImport(e,a,t,r);break;case d:this._normalizeDefer(a,t,r);break;case m:this._normalizeStream(a,t,r);break;case c:var b=this._handleStrippedNulls;this._handleStrippedNulls=!1,this._traverseSelections(a,t,r),this._handleStrippedNulls=b;break;default:i(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",a.kind)}}},t._normalizeDefer=function(e,t,r){var a=null===e.if||this._getVariableValue(e.if);s("boolean"==typeof a,"RelayResponseNormalizer: Expected value for @defer `if` argument to be a boolean, got `%s`.",a),!1===a?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",label:e.label,path:(0,n.default)(this._path),selector:{dataID:o.getDataID(t),node:e,variables:this._variables},typeName:o.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var a=null===e.if||this._getVariableValue(e.if);s("boolean"==typeof a,"RelayResponseNormalizer: Expected value for @stream `if` argument to be a boolean, got `%s`.",a),!0===a&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,n.default)(this._path),parentID:o.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,a){var s,l;"object"==typeof a&&a||i(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var u=o.getType(r),c=k(t.documentName),d=a[c];o.setValue(r,c,null!==(s=d)&&void 0!==s?s:null);var f=I(t.documentName),p=a[f];o.setValue(r,f,null!==(l=p)&&void 0!==l?l:null),null!=p&&this._moduleImportPayloads.push({data:a,dataID:o.getDataID(r),operationReference:p,path:(0,n.default)(this._path),typeName:u,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||i(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var a=t.alias||t.name,l=x(t,this._variables),u=n[a];if(null==u){if(void 0===u&&!this._handleStrippedNulls)return;return s(e.kind===p&&null==e.concreteType||Object.prototype.hasOwnProperty.call(n,a),"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.",a,l),void o.setValue(r,l,null)}t.kind===v?o.setValue(r,l,u):t.kind===p?(this._path.push(a),t.plural?this._normalizePluralLink(t,r,l,u):this._normalizeLink(t,r,l,u),this._path.pop()):i(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeLink=function(e,t,r,n){var a;"object"==typeof n&&n||i(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var s=this._getDataId(n,null!==(a=e.concreteType)&&void 0!==a?a:this._getRecordType(n))||o.getLinkedRecordID(t,r)||b(o.getDataID(t),r);"string"!=typeof s&&i(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),o.setLinkedRecordID(t,r,s);var l=this._recordSource.get(s);if(l)this._validateRecordType(l,e,n);else{var u=e.concreteType||this._getRecordType(n);l=o.create(s,u),this._recordSource.set(s,l)}this._traverseSelections(e,l,n)},t._normalizePluralLink=function(e,t,r,n){var a=this;Array.isArray(n)||i(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var s=o.getLinkedRecordIDs(t,r),l=[];n.forEach(function(n,u){var c;if(null!=n){a._path.push(String(u)),"object"!=typeof n&&i(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var d=a._getDataId(n,null!==(c=e.concreteType)&&void 0!==c?c:a._getRecordType(n))||s&&s[u]||b(o.getDataID(t),r,u);"string"!=typeof d&&i(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),l.push(d);var f=a._recordSource.get(d);if(f)a._validateRecordType(f,e,n);else{var p=e.concreteType||a._getRecordType(n);f=o.create(d,p),a._recordSource.set(d,f)}a._traverseSelections(e,f,n),a._path.pop()}else l.push(n)}),o.setLinkedRecordIDs(t,r,l)},t._validateRecordType=function(e,t,r){var n="LinkedField"===t.kind&&t.concreteType||this._getRecordType(r);s(R(o.getDataID(e))||o.getType(e)===n,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be 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.",o.getDataID(e),O,o.getType(e),n)},e}();N=a.instrument("RelayResponseNormalizer.normalize",N),e.exports={normalize:N}},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(13),a=r(0),i=r(5).LINKED_FIELD,s=r(1).getHandleStorageKey;e.exports=function(e,t,r){var l=t.find(function(t){return t.kind===i&&t.name===e.name&&t.alias===e.alias&&o(t.args,e.args)});l&&l.kind===i||a(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var u=s(e,r);return(0,n.default)({},l,{args:null,name:u,storageKey:u})}},function(e,t,r){"use strict";var n=r(6),o=r(0),a=r(5),i=a.CONDITION,s=a.CLIENT_EXTENSION,l=a.FRAGMENT_SPREAD,u=a.INLINE_FRAGMENT,c=a.LINKED_FIELD,d=a.MODULE_IMPORT,f=a.SCALAR_FIELD,p=r(1),h=p.FRAGMENTS_KEY,_=p.FRAGMENT_OWNER_KEY,v=p.FRAGMENT_PROP_NAME_KEY,g=p.ID_KEY,m=p.MODULE_COMPONENT_KEY,y=p.getArgumentValues,b=p.getStorageKey,R=p.getModuleComponentKey;var E=function(){function e(e,t,r){this._recordSource=e,this._seenRecords={},this._isMissingData=!1,this._variables=t,this._owner=r}var t=e.prototype;return t.read=function(e,t){return{data:this._traverse(e,t,null),dataID:t,node:e,seenRecords:this._seenRecords,variables:this._variables,isMissingData:this._isMissingData,owner:this._owner}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var o=r||{};return this._traverseSelections(e.selections,n,o),o},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||o(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t,r){for(var a=0;a<e.length;a++){var p=e[a];switch(p.kind){case f:this._readScalar(p,t,r);break;case c:p.plural?this._readPluralLink(p,t,r):this._readLink(p,t,r);break;case i:this._getVariableValue(p.condition)===p.passingValue&&this._traverseSelections(p.selections,t,r);break;case u:var h=n.getType(t);null!=h&&h===p.type&&this._traverseSelections(p.selections,t,r);break;case l:this._createFragmentPointer(p,t,r);break;case d:this._readModuleImport(p,t,r);break;case s:var _=this._isMissingData;this._traverseSelections(p.selections,t,r),this._isMissingData=_;break;default:o(!1,"RelayReader(): Unexpected ast kind `%s`.",p.kind)}}},t._readScalar=function(e,t,r){var o,a=null!==(o=e.alias)&&void 0!==o?o:e.name,i=b(e,this._variables),s=n.getValue(t,i);void 0===s&&(this._isMissingData=!0),r[a]=s},t._readLink=function(e,t,r){var a,i=null!==(a=e.alias)&&void 0!==a?a:e.name,s=b(e,this._variables),l=n.getLinkedRecordID(t,s);if(null==l)return r[i]=l,void(void 0===l&&(this._isMissingData=!0));var u=r[i];null!=u&&"object"!=typeof u&&o(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",i,n.getDataID(t),u),r[i]=this._traverse(e,l,u)},t._readPluralLink=function(e,t,r){var a,i=this,s=null!==(a=e.alias)&&void 0!==a?a:e.name,l=b(e,this._variables),u=n.getLinkedRecordIDs(t,l);if(null==u)return r[s]=u,void(void 0===u&&(this._isMissingData=!0));var c=r[s];null==c||Array.isArray(c)||o(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",s,n.getDataID(t),c);var d=c||[];u.forEach(function(r,a){if(null==r)return void 0===r&&(i._isMissingData=!0),void(d[a]=r);var l=d[a];null!=l&&"object"!=typeof l&&o(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,n.getDataID(t),l),d[a]=i._traverse(e,r,l)}),r[s]=d},t._readModuleImport=function(e,t,r){var o=R(e.documentName),a=n.getValue(t,o);null!=a?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[v]=e.fragmentPropName,r[m]=a):void 0===a&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var a=r[h];null==a&&(a=r[h]={}),"object"==typeof a&&a||o(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",a),null==r[g]&&(r[g]=n.getDataID(t)),a[e.name]=e.args?y(e.args,this._variables):{},r[_]=this._owner},e}();e.exports={read:function(e,t,r){var n,o=t.dataID,a=t.node,i=t.variables;return new E(e,i,null!==(n=r)&&void 0!==n?n:null).read(a,o)}}},function(e,t,r){"use strict";var n=r(22),o=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?o:e.id}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r||"object"!=typeof t||!t||"object"!=typeof r||!r)return r;var n=!1,o=Array.isArray(t)?t:null,a=Array.isArray(r)?r:null;if(o&&a)n=a.reduce(function(t,r,n){var i=e(o[n],r);return i!==a[n]&&(Object.isFrozen(a)||(a[n]=i)),t&&i===o[n]},!0)&&o.length===a.length;else if(!o&&!a){var i=t,s=r,l=Object.keys(i),u=Object.keys(s);n=u.reduce(function(t,r){var n=e(i[r],s[r]);return n!==s[r]&&(Object.isFrozen(s)||(s[r]=n)),t&&n===i[r]},!0)&&l.length===u.length}return n?t:r}},function(e,t,r){"use strict";var n=r(10);e.exports={convertFetch:function(e){return function(t,r,o,a){var i=e(t,r,o,a);return i instanceof Error?n.create(function(e){return e.error(i)}):n.from(i)}},convertSubscribe:function(e){return function(t,r,o){return n.fromLegacy(function(n){return e(t,r,o,n)})}}}},function(e,t,r){"use strict";var n=r(0),o=r(9);e.exports=function(e,t){var r=null!=e.id?e.id:e.text;return null==r&&n(!1,"getRequestParametersIdentifier: Expected request `%s` to have either a valid `id` or `text` property",e.name),r+JSON.stringify(o(t))}},function(e,t,r){"use strict";var n=r(20),o=n.getDataIDsFromFragment,a=n.getVariablesFromFragment,i=r(21).getFragmentOwner,s=r(9);e.exports=function(e,t){var r,n,l,u=i(e,t),c=a({},e,t,u),d=o(e,t),f=Array.isArray(u)?u.map(function(e){var t,r;return null!==(t=null!==(r=null==e?void 0:e.node.params.id)&&void 0!==r?r:null==e?void 0:e.node.params.name)&&void 0!==t?t:""}):null!==(r=null!==(n=null==u?void 0:u.node.params.id)&&void 0!==n?n:null==u?void 0:u.node.params.name)&&void 0!==r?r:"",p=Array.isArray(u)?u.map(function(e){var t;return null!==(t=null==e?void 0:e.variables)&&void 0!==t?t:null}):null!==(l=null==u?void 0:u.variables)&&void 0!==l?l:null;return"".concat(e.name,"-").concat(JSON.stringify(s({dataIDs:d,fragmentVariables:c,fragmentOwnerID:f,fragmentOwnerVariables:p})))}},function(e,t,r){"use strict";var n=r(5),o=r(17),a=r(18),i=r(26),s=r(20),l=r(14),u=r(27),c=r(32),d=r(33),f=r(34),p=r(54),h=r(12),_=r(55),v=r(21),g=r(31),m=r(65),y=r(69),b=r(70),R=r(10),E=r(24),D=r(71),S=r(1),k=r(22),I=r(72),x=r(73),O=r(74),N=r(76),F=r(77),L=r(16),w=r(78),P=r(80),M=r(46),T=r(81),A=r(19),j=r(45),C=r(25),U=r(28),V=r(43),K=r(82),G=r(9),q=r(7).generateClientID;if("function"!=typeof Map||"function"!=typeof Set||"function"!=typeof Promise||"function"!=typeof Object.assign)throw new Error("relay-runtime requires Map, Set, Promise, and Object.assign to exist. Use a polyfill to provide these for older browsers.");e.exports={Environment:_,Network:y,Observable:R,QueryResponseCache:D,RecordSource:h,Store:m,areEqualSelectors:s.areEqualSelectors,createFragmentSpecResolver:s.createFragmentSpecResolver,createOperationDescriptor:s.createOperationDescriptor,getDataIDsFromFragment:s.getDataIDsFromFragment,getDataIDsFromObject:s.getDataIDsFromObject,getFragment:g.getFragment,getFragmentOwner:v.getFragmentOwner,getFragmentOwners:v.getFragmentOwners,getPaginationFragment:g.getPaginationFragment,getModuleComponentKey:S.getModuleComponentKey,getModuleOperationKey:S.getModuleOperationKey,getRefetchableFragment:g.getRefetchableFragment,getRequest:g.getRequest,getSingularSelector:s.getSingularSelector,getPluralSelector:s.getPluralSelector,getSelector:s.getSelector,getSelectorsFromObject:s.getSelectorsFromObject,getStorageKey:S.getStorageKey,getVariablesFromSingularFragment:s.getVariablesFromSingularFragment,getVariablesFromPluralFragment:s.getVariablesFromPluralFragment,getVariablesFromFragment:s.getVariablesFromFragment,getVariablesFromObject:s.getVariablesFromObject,graphql:g.graphql,MutationTypes:l.MutationTypes,RangeOperations:l.RangeOperations,DefaultHandlerProvider:c,DefaultMissingFieldHandlers:d,ConnectionHandler:a,ViewerHandler:k,applyOptimisticMutation:I,commitLocalUpdate:x,commitMutation:O,fetchQuery:P,isRelayModernEnvironment:C,requestSubscription:K,ConnectionInterface:i,RelayProfiler:E,RelayConcreteNode:n,RelayError:f,RelayFeatureFlags:p,RelayNetworkLoggerTransaction:b,DEFAULT_HANDLE_KEY:u.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:S.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:S.FRAGMENT_OWNER_KEY,ID_KEY:S.ID_KEY,REF_KEY:S.REF_KEY,REFS_KEY:S.REFS_KEY,ROOT_ID:S.ROOT_ID,ROOT_TYPE:S.ROOT_TYPE,TYPENAME_KEY:S.TYPENAME_KEY,createRelayNetworkLogger:F,deepFreeze:L,generateClientID:q,getRelayHandleKey:A,isScalarAndEqual:U,recycleNodesInto:V,stableCopy:G,getFragmentIdentifier:M,getFragmentSpecIdentifier:T,getRequestParametersIdentifier:j,__internal:{createRelayContext:N,getModernOperationVariables:o.getOperationVariables,fetchQuery:w.fetchQuery,fetchQueryDeduped:w.fetchQueryDeduped,getPromiseForRequestInFlight:w.getPromiseForRequestInFlight,getObservableForRequestInFlight:w.getObservableForRequestInFlight}}},function(e,t,r){"use strict";var n=r(2),o=n(r(4)),a=n(r(11)),i=r(13),s=r(0),l=r(28),u=r(21).getFragmentOwners,c=r(30),d=c.areEqualSelectors,f=c.getSelectorsFromObject,p=r(1).ROOT_ID,h=function(){function e(e,t,r,n){var o=this;(0,a.default)(this,"_onChange",function(){o._stale=!0,"function"==typeof o._callback&&o._callback()}),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props=r,this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&g(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],a=t[r];if(n){var i=n.resolve();(e||i!==a)&&((e=e||(0,o.default)({},t))[r]=i)}else{var s=this._props[r],u=void 0!==s?s:null;!e&&l(u,a)||((e=e||(0,o.default)({},t))[r]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=f({},this._fragments,e,u(this._fragments,e));for(var r in t)if(t.hasOwnProperty(r)){var n=t[r],o=this._resolvers[r];null==n?(null!=o&&o.dispose(),o=null):Array.isArray(n)?null==o?o=new v(this._context.environment,n,this._onChange):(o instanceof v||s(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.",r),o.setSelectors(n)):null==o?o=new _(this._context.environment,n,this._onChange):(o instanceof _||s(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.",r),o.setSelector(n)),this._resolvers[r]=o}this._props=e,this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),_=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var o=e.lookup(t.selector,t.owner);this._callback=r,this._data=o.data,this._environment=e,this._ownedSelector=t,this._subscription=e.subscribe(o,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){return this._data},t.setSelector=function(e){if(null==this._subscription||!d(e,this._ownedSelector)){this.dispose();var t=this._environment.lookup(e.selector,e.owner);this._data=t.data,this._ownedSelector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!i(e,this._ownedSelector.selector.variables)){var r={owner:t?{fragment:{dataID:p,node:t.fragment,variables:e},node:t,root:{dataID:p,node:t.operation,variables:e},variables:e}:null,selector:(0,o.default)({},this._ownedSelector.selector,{variables:e})};this.setSelector(r)}},e}(),v=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._stale=!0,n._callback()}),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelectors(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(g)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],o=this._resolvers[r].resolve();(e||o!==n)&&(e=e||t.slice(0,r)).push(o)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelectors=function(e){for(;this._resolvers.length>e.length;){this._resolvers.pop().dispose()}for(var t=0;t<e.length;t++)t<this._resolvers.length?this._resolvers[t].setSelector(e[t]):this._resolvers[t]=new _(this._environment,e[t],this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach(function(r){return r.setVariables(e,t)}),this._stale=!0},e}();function g(e){e&&e.dispose()}e.exports=h},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,r){"use strict";var n=r(17).getOperationVariables,o=r(1).ROOT_ID;e.exports={createOperationDescriptor:function(e,t){var r=e.operation,a=n(r,t),i=o;return{fragment:{dataID:i,node:e.fragment,variables:a},node:e,root:{dataID:i,node:r,variables:a},variables:a}}}},function(e,t){e.exports=o},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1}},function(e,t,r){"use strict";(function(t){var n=r(2)(r(4)),o=r(35),a=r(20),i=r(32),s=r(33),l=r(12),u=r(60),c=r(10),d=r(62),f=r(42),p=r(0),h=r(23),_=r(3),v=function(){function e(e){var o,l,u,c,h=this;this.configName=e.configName;var _=e.handlerProvider?e.handlerProvider:i,v=e.operationLoader;null!=v&&("object"!=typeof v||"function"!=typeof v.get||"function"!=typeof v.load)&&p(!1,"RelayModernEnvironment: Expected `operationLoader` to be an object with get() and load() functions, got `%s`.",v),this._operationLoader=v,this._network=e.network,this._getDataID=null!==(o=e.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==o?o:f,this._publishQueue=null!==(l=e.publishQueue)&&void 0!==l?l:new d(e.store,_,this._getDataID),this._scheduler=null!==(u=e.scheduler)&&void 0!==u?u:null,this._store=e.store,this.unstable_internal=(0,n.default)({},a,{getOperationTracker:function(){return h._operationTracker}}),this.__setNet=function(e){return h._network=e};var g=r(64).inspect;this.DEBUG_inspect=function(e){return g(h,e)};var m=void 0!==t?t:"undefined"!=typeof window?window:void 0,y=m&&m.__RELAY_DEVTOOLS_HOOK__;y&&y.registerEnvironment(this),this._missingFieldHandlers=null!==(c=e.missingFieldHandlers)&&void 0!==c?c:s,null!=e.operationTracker&&(this._operationTracker=e.operationTracker)}var v=e.prototype;return v.getStore=function(){return this._store},v.getNetwork=function(){return this._network},v.applyUpdate=function(e){var t=this;return this._publishQueue.applyUpdate(e),this._publishQueue.run(),{dispose:function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}}},v.revertUpdate=function(e){this._publishQueue.revertUpdate(e),this._publishQueue.run()},v.replaceUpdate=function(e,t){this._publishQueue.revertUpdate(e),this._publishQueue.applyUpdate(t),this._publishQueue.run()},v.applyMutation=function(e){var t=e.operation,r=e.optimisticResponse,n=e.optimisticUpdater;return this.applyUpdate({operation:t,selectorStoreUpdater:n,response:r||null})},v.check=function(e){return null==this._missingFieldHandlers?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},v.commitPayload=function(e,t){var r=h(e.root,t,null,{getDataID:this._getDataID});this._publishQueue.commitPayload(e,r),this._publishQueue.run()},v.commitUpdate=function(e){this._publishQueue.commitUpdate(e),this._publishQueue.run()},v.lookup=function(e,t){return this._store.lookup(e,t)},v.subscribe=function(e,t){return this._store.subscribe(e,t)},v.retain=function(e){return this._store.retain(e)},v._checkSelectorAndHandleMissingFields=function(e,t){var r=new l,n=o.check(this._store.getSource(),r,e,t,this._operationLoader,this._getDataID);return r.size()>0&&(this._publishQueue.commitSource(r),this._publishQueue.run()),n},v.execute=function(e){var t=this,r=e.operation,n=e.cacheConfig,o=e.updater;return c.create(function(e){var a=t._network.execute(r.node.params,r.variables,n||{}),i=u.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:a,updater:o,operationTracker:t._operationTracker,getDataID:t._getDataID});return function(){return i.cancel()}})},v.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,o=e.optimisticUpdater,a=e.updater,i=e.uploadables;return c.create(function(e){var s,l;(n||o)&&(s={operation:r,selectorStoreUpdater:o,response:null!==(l=n)&&void 0!==l?l:null});var c=t._network.execute(r.node.params,r.variables,{force:!0},i),d=u.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:s,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:c,updater:a,operationTracker:t._operationTracker,getDataID:t._getDataID});return function(){return d.cancel()}})},v.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return c.create(function(e){var o=u.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:n,getDataID:t._getDataID});return function(){return o.cancel()}})},v.sendQuery=function(e){var t=e.cacheConfig,r=e.onCompleted,n=e.onError,o=e.onNext,a=e.operation;return _(!1,"environment.sendQuery() is deprecated. Update to the latest version of react-relay, and use environment.execute()."),this.execute({operation:a,cacheConfig:t}).subscribeLegacy({onNext:o,onError:n,onCompleted:r})},v.sendMutation=function(e){var t=e.onCompleted,r=e.onError,n=e.operation,o=e.optimisticResponse,a=e.optimisticUpdater,i=e.updater,s=e.uploadables;return _(!1,"environment.sendMutation() is deprecated. Update to the latest version of react-relay, and use environment.executeMutation()."),this.executeMutation({operation:n,optimisticResponse:o,optimisticUpdater:a,updater:i,uploadables:s}).subscribeLegacy({onNext:function(e){t&&t(e.errors)},onError:r,onCompleted:t})},v.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},e}();v.prototype["@@RelayModernEnvironment"]=!0,e.exports=v}).call(this,r(56))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(0),o=r(7).generateClientID,a=r(1).getStableStorageKey,i=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e));var o=a(t,r);return this._mutator.setValue(this._dataID,o,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,o){t instanceof e||n(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var i=a(r,o),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,i,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var i,s=a(e,r),l=o(this.getDataID(),s);n=null!==(i=this._source.get(l))&&void 0!==i?i:this._source.create(l,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),o=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==o?o:o.map(function(e){return null!=e?r._source.get(e):e})},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var o=a(t,r),i=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,o,i),this},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(2)(r(8)),o=r(34),a=r(12),i=r(6),s=r(10),l=r(39),u=r(0),c=r(9),d=r(3),f=r(7).generateClientID,p=r(1),h=p.ROOT_TYPE,_=p.TYPENAME_KEY,v=p.getStorageKey;var g=function(){function e(e){var t,r=this,n=e.operation,o=e.operationLoader,a=e.optimisticUpdate,i=e.publishQueue,s=e.scheduler,l=e.sink,u=e.source,c=e.updater,d=e.operationTracker,f=e.getDataID;this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=n,this._operationLoader=o,this._optimisticUpdate=null!==(t=a)&&void 0!==t?t:null,this._publishQueue=i,this._scheduler=s,this._sink=l,this._source=new Map,this._state="started",this._updater=c,this._subscriptions=new Map,this._operationTracker=d,this._getDataID=f;var p=this._nextSubscriptionId++;if(u.subscribe({complete:function(){return r._complete(p)},error:function(e){return r._error(e)},next:function(e){try{r._next(p,e)}catch(e){l.error(e)}},start:function(e){return r._start(p,e)}}),null!=a){i.applyUpdate(a);var h=this._publishQueue.run();this._updateOperationTracker(h)}}var t=e.prototype;return t.cancel=function(){if("completed"!==this._state){this._state="completed",0!==this._subscriptions.size&&(this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions.clear());var e=this._optimisticUpdate;null!==e&&(this._optimisticUpdate=null,this._publishQueue.revertUpdate(e),this._publishQueue.run()),this._incrementalResults.clear(),this._completeOperationTracker()}},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;s.create(function(t){var n=r.schedule(function(){try{e(),t.complete()}catch(e){t.error(e)}});return function(){return r.cancel(n)}}).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e){this.cancel(),this._sink.error(e)},t._start=function(e,t){this._subscriptions.set(e,t)},t._next=function(e,t){var r=this;this._schedule(function(){r._handleNext(t)})},t._handleNext=function(e){var t;if("completed"!==this._state){if(null==e.data){var r=e.errors,n=o.create("RelayNetwork","No data returned for operation `%s`, got error(s):\n%s\n\nSee the error `source` property for more information.",this._operation.node.params.name,r?r.map(function(e){return e.message}).join("\n"):"(No errors)");throw n.source={errors:r,operation:this._operation.node,variables:this._operation.variables},n}var a=e,i=!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic);if(i&&"started"!==this._state&&u(!1,"RelayModernQueryExecutor: optimistic payload received after server payload."),this._state="loading",i)this._processOptimisticResponse(a);else{var s=e.path,l=e.label;null!=s||null!=l?"string"==typeof l&&Array.isArray(s)?this._processIncrementalResponse({path:s,label:l,response:a}):u(!1,"RelayModernQueryExecutor: invalid incremental payload, expected `path` and `label` to either both be null/undefined, or `path` to be an `Array<string | number>` and `label` to be a `string`."):this._processResponse(a)}this._sink.next(e)}else console.warn("RelayModernQueryExecutor: payload received after execution "+"completed: '".concat(JSON.stringify(e),"'"))},t._processOptimisticResponse=function(e){null!==this._optimisticUpdate&&u(!1,"environment.execute: only support one optimistic response per execute.");var t=m(e,this._operation.root,h,[],this._getDataID),r=t.incrementalPlaceholders,n=t.moduleImportPayloads;(null!=r&&0!==r.length||null!=n&&0!==n.length)&&u(!1,"RelayModernQueryExecutor: optimistic responses cannot be returned for operations that use incremental data delivery (@match, @defer, and @stream)."),this._optimisticUpdate={source:t.source,fieldPayloads:t.fieldPayloads},this._publishQueue.applyUpdate(this._optimisticUpdate);var o=this._publishQueue.run();this._updateOperationTracker(o)},t._processResponse=function(e){var t;null!==this._optimisticUpdate&&(this._publishQueue.revertUpdate(this._optimisticUpdate),this._optimisticUpdate=null);var r=m(e,this._operation.root,h,[],this._getDataID);this._incrementalResults.clear(),this._source.clear(),this._processPayloadFollowups(r),this._publishQueue.commitPayload(this._operation,r,this._updater);var n=this._publishQueue.run();this._updateOperationTracker(n),r.incrementalPlaceholders&&0!==r.incrementalPlaceholders.length&&!0===(null===(t=e.extensions)||void 0===t?void 0:t.is_final)&&d(!1,"RelayModernEnvironment: Operation `%s` contains @defer/@stream directives but was executed in non-streaming mode. See https://fburl.com/relay-incremental-delivery-non-streaming-warning.",this._operation.node.params.name)},t._processPayloadFollowups=function(e){var t=this,r=e.incrementalPlaceholders,n=e.moduleImportPayloads;if(n&&0!==n.length){var o=this._operationLoader;o||u(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`."),n.forEach(function(e){t._processModuleImportPayload(e,o)})}r&&0!==r.length&&r.forEach(function(r){t._processIncrementalPlaceholder(e,r)})},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n)this._schedule(function(){r._handleModuleImportPayload(e,n)});else{var o=this._nextSubscriptionId++;s.from(new Promise(function(r,n){t.load(e.operationReference).then(r,n)})).map(function(t){null!=t&&r._schedule(function(){r._handleModuleImportPayload(e,t)})}).subscribe({complete:function(){return r._complete(o)},error:function(e){return r._error(e)},start:function(e){return r._start(o,e)}})}},t._handleModuleImportPayload=function(e,t){var r={dataID:e.dataID,variables:e.variables,node:t},n=m({data:e.data},r,e.typeName,e.path,this._getDataID);this._processPayloadFollowups(n),this._publishQueue.commitRelayPayload(n);var o=this._publishQueue.run();this._updateOperationTracker(o)},t._processIncrementalPlaceholder=function(e,t){var r,n=this,o=t.label,a=t.path.map(String).join("."),s=this._incrementalResults.get(o);null==s&&(s=new Map,this._incrementalResults.set(o,s));var l,d=s.get(a),p=null!=d&&"response"===d.kind?d.responses:null;s.set(a,{kind:"placeholder",placeholder:t}),l="stream"===t.kind?t.parentID:t.selector.dataID;var h,_,v=e.source.get(l),g=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter(function(e){var t=f(e.dataID,e.fieldKey);return e.dataID===l||t===l});null==v&&u(!1,"RelayModernEnvironment: Expected record `%s` to exist.",l);var m=this._source.get(l);if(null!=m){h=i.update(m.record,v);var y=new Map,b=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(c(t)))&&void 0!==r?r:"");y.set(n,e)};m.fieldPayloads.forEach(b),g.forEach(b),_=Array.from(y.values())}else h=v,_=g;this._source.set(l,{record:h,fieldPayloads:_}),null!=p&&p.forEach(function(e){n._schedule(function(){n._processIncrementalResponse(e)})})},t._processIncrementalResponse=function(e){var t=e.label,r=e.path,n=e.response,o=this._incrementalResults.get(t);if(null==o&&(o=new Map,this._incrementalResults.set(t,o)),-1!==t.indexOf("$defer$")){var a=r.map(String).join("."),i=o.get(a);if(null==i)return i={kind:"response",responses:[e]},void o.set(a,i);if("response"===i.kind)return void i.responses.push(e);var s=i.placeholder;"defer"!==s.kind&&u(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @defer, was `@%s`.",a,t,s.kind),this._processDeferResponse(t,r,s,n)}else{var l=r.slice(0,-2).map(String).join("."),c=o.get(l);if(null==c)return c={kind:"response",responses:[e]},void o.set(l,c);if("response"===c.kind)return void c.responses.push(e);var d=c.placeholder;"stream"!==d.kind&&u(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @stream, was `@%s`.",l,t,d.kind),this._processStreamResponse(t,r,d,n)}},t._processDeferResponse=function(e,t,r,n){var o=r.selector.dataID,i=m(n,r.selector,r.typeName,r.path,this._getDataID);this._processPayloadFollowups(i),this._publishQueue.commitRelayPayload(i);var s=this._source.get(o);null==s&&u(!1,"RelayModernEnvironment: Expected the parent record `%s` for @defer data to exist.",o);var l=s.fieldPayloads;if(0!==l.length){var c={errors:null,fieldPayloads:l,incrementalPlaceholders:null,moduleImportPayloads:null,source:new a};this._publishQueue.commitRelayPayload(c)}var d=this._publishQueue.run();this._updateOperationTracker(d)},t._processStreamResponse=function(e,t,r,o){var s,l,c,d=r.parentID,p=r.node,h=r.variables,g=o.data;"object"!=typeof g&&u(!1,"RelayModernEnvironment: Expected the GraphQL @stream payload `data` value to be an object.");var y=p.selections[0];(null==y||"LinkedField"!==y.kind||!0!==y.plural)&&u(!1,"RelayModernEnvironment: Expected @stream to be used on a plural field.");var b=null!==(s=y.alias)&&void 0!==s?s:y.name,R=v(y,h),E=this._source.get(d);null==E&&u(!1,"RelayModernEnvironment: Expected the parent record `%s` for @stream data to exist.",d);var D=E.record,S=E.fieldPayloads,k=i.getLinkedRecordIDs(D,R);null==k&&u(!1,"RelayModernEnvironment: Expected record `%s` to have fetched field `%s` with @stream.",d,y.name);var I=t[t.length-1],x=parseInt(I,10);x===I&&x>=0||u(!1,"RelayModernEnvironment: Expected path for @stream to end in a positive integer index, got `%s`",I);var O=null!==(l=y.concreteType)&&void 0!==l?l:g[_];"string"!=typeof O&&u(!1,"RelayModernEnvironment: Expected @stream field `%s` to have a __typename.",y.name);var N=(null!==(c=this._getDataID(g,O))&&void 0!==c?c:k&&k[x])||f(d,R,x);"string"!=typeof N&&u(!1,"RelayModernEnvironment: Expected id of elements of field `%s` to be strings.",R);var F={dataID:N,node:y,variables:h},L=i.clone(D),w=(0,n.default)(k);w[x]=N,i.setLinkedRecordIDs(L,R,w),this._source.set(d,{record:L,fieldPayloads:S});var P=m(o,F,O,[].concat((0,n.default)(r.path),[b,String(x)]),this._getDataID);if(this._processPayloadFollowups(P),this._publishQueue.commitPayload(this._operation,P,function(e){var t=e.get(d);if(null!=t){var r=t.getLinkedRecords(R);if(null!=r)if(r.length!==k.length||r.some(function(e,t){return k[t]!==(e&&e.getDataID())}))console.warn("RelayModernEnvironment: Received stale @stream payload, items for "+"field '".concat(y.name,"' on parent record '").concat(d,"' have changed."));else{var o=(0,n.default)(r);o[x]=e.get(N),t.setLinkedRecords(o,R)}else console.warn("RelayModernEnvironment: Received stale @stream payload, field "+"'".concat(y.name,"' on parent record '").concat(d,"' no longer exists."))}else console.warn("RelayModernEnvironment: Received stale @stream payload, parent "+"record '".concat(d,"' no longer exists."))}),0!==S.length){var M={errors:null,fieldPayloads:S,incrementalPlaceholders:null,moduleImportPayloads:null,source:new a};this._publishQueue.commitRelayPayload(M)}var T=this._publishQueue.run();this._updateOperationTracker(T)},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation)},e}();function m(e,t,r,n,o){var s=e.data,u=e.errors,c=new a,d=i.create(t.dataID,r);c.set(t.dataID,d);var f=l.normalize(c,t,s,{handleStrippedNulls:!0,path:n,getDataID:o});return{errors:u,incrementalPlaceholders:f.incrementalPlaceholders,fieldPayloads:f.fieldPayloads,moduleImportPayloads:f.moduleImportPayloads,source:c}}e.exports={execute:function(e){return new g(e)}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";var n=r(63),o=r(12),a=r(41),i=r(36),s=r(37),l=r(38),u=r(0),c=r(23),d=function(){function e(e,t,r){this._backup=new o,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingUpdaters=new Set,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&u(!1,"RelayPublishQueue: Cannot apply the same update function more than once concurrently."),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){var n=t.fieldPayloads,o=t.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:n,operation:e,source:o,updater:r}})},t.commitRelayPayload=function(e){var t=e.fieldPayloads,r=e.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:t,operation:null,source:r,updater:null}})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingUpdaters.add(e)},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(){return this._pendingBackupRebase&&this._backup.size()&&(this._store.publish(this._backup),this._backup=new o),this._commitData(),this._commitUpdaters(),this._applyUpdates(),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify()},t._getSourceFromPayload=function(e){var t=this,r=e.fieldPayloads,n=e.operation,o=e.source,a=e.updater,c=new i(this._store.getSource(),o),d=new s(c,this._getDataID);if(r&&r.length&&r.forEach(function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||u(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),r.update(d,e)}),a){var p=null==n?void 0:n.fragment;null==p&&u(!1,"RelayModernEnvironment: Expected a selector to be provided with updater function."),a(new l(d,p),f(o,p,n))}return o},t._commitData=function(){var e=this;this._pendingData.size&&(this._pendingData.forEach(function(t){var r;r="payload"===t.kind?e._getSourceFromPayload(t.payload):t.source,e._store.publish(r)}),this._pendingData.clear())},t._commitUpdaters=function(){var e=this;if(this._pendingUpdaters.size){var t=new o;this._pendingUpdaters.forEach(function(r){var o=new i(e._store.getSource(),t),a=new s(o,e._getDataID);n.applyWithGuard(r,null,[a],null,"RelayPublishQueue:commitUpdaters")}),this._store.publish(t),this._pendingUpdaters.clear()}},t._applyUpdates=function(){var e=this;if(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size){var t=new o,r=new i(this._store.getSource(),t,this._backup),a=new s(r,this._getDataID,this._handlerProvider);this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(function(t){if(t.operation){var r,o=t.selectorStoreUpdater,i=t.operation,s=t.response,l=a.commitPayload(i,s);if(s)r=f(c(i.root,s,null,{getDataID:e._getDataID}).source,i.fragment,i);o&&n.applyWithGuard(o,null,[l,r],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var u=t.storeUpdater;n.applyWithGuard(u,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,p=t.fieldPayloads;a.publishSource(d,p)}}),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){if(t.operation){var r,o=t.selectorStoreUpdater,i=t.operation,s=t.response,l=a.commitPayload(i,s);if(s)r=f(c(i.root,s,null,{getDataID:e._getDataID}).source,i.fragment,i);o&&n.applyWithGuard(o,null,[l,r],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var u=t.storeUpdater;n.applyWithGuard(u,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,p=t.fieldPayloads;a.publishSource(d,p)}e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)}},e}();function f(e,t,n){var o=a.read(e,t,n).data,i=r(16);return o&&i(o),o}e.exports=d},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(2),o=n(r(4)),a=n(r(8)),i=function(){},s=!1,l=function(){var e={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"},t={style:"rgb(136, 19, 145)"},r={style:"color: #777"},n=function(e){return["span",{style:"font-style: italic"},e.__typename,["span",r,' {id: "',e.__id,'", …}']]},o=function(e){return null!=e&&"string"==typeof e.__id},i=function(e,t){this.key=e,this.value=t},s=function(t){var r=Object.keys(t).map(function(e){return["li",{},["object",{object:new i(e,t[e])}]]});return["ol",e].concat((0,a.default)(r))};return[{header:function(e){return o(e)?n(e):null},hasBody:function(e){return!0},body:function(e){return s(e)}},{header:function(e){if(e instanceof i){var a=o(e.value)?n(e.value):null==(s=e.value)?["span",r,"undefined"]:["object",{object:s,config:l}];return["span",t,e.key,": ",a]}var s,l;return null},hasBody:function(e){return o(e.value)},body:function(e){return s(e.value)}}]};i=function(e,t){var r,n;return s||(s=!0,null==window.devtoolsFormatters&&(window.devtoolsFormatters=[]),Array.isArray(window.devtoolsFormatters)&&(console.info('Make sure to select "Enable custom formatters" in the Chrome Developer Tools settings, tab "Preferences" under the "Console" section.'),(n=window.devtoolsFormatters).push.apply(n,(0,a.default)(l())))),function e(t,r){var n=t.get(r);return null==n?n:new Proxy((0,o.default)({},n),{get:function(r,n){var o=r[n];if(null==o)return o;if("object"==typeof o){if("string"==typeof o.__ref)return e(t,o.__ref);if(Array.isArray(o.__refs))return o.__refs.map(function(r){return e(t,r)})}return o}})}(e.getStore().getSource(),null!==(r=t)&&void 0!==r?r:"client:root")},e.exports={inspect:i}},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(35),a=r(6),i=r(24),s=r(41),l=r(66),u=r(16),c=r(42),d=r(67),f=r(43),p=r(68),h=r(1).UNPUBLISH_RECORD_SENTINEL,_=function(){function e(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0,i=e.getRecordIDs(),s=0;s<i.length;s++){var l=e.get(i[s]);l&&a.freeze(l)}this._gcScheduler=r,this._hasScheduledGC=!1,this._index=0,this._operationLoader=n,this._recordSource=e,this._roots=new Map,this._subscriptions=new Set,this._updatedRecordIDs={},this._gcHoldCounter=0,this._shouldScheduleGC=!1,this._getDataID=null!==(t=o)&&void 0!==t?t:c}var t=e.prototype;return t.getSource=function(){return this._recordSource},t.check=function(e){return o.check(this._recordSource,this._recordSource,e,[],this._operationLoader,this._getDataID)},t.retain=function(e){var t=this,r=this._index++;return this._roots.set(r,e),{dispose:function(){t._roots.delete(r),t._scheduleGC()}}},t.lookup=function(e,t){var r=s.read(this._recordSource,e,t);return u(r),r},t.notify=function(){var e=this,t=[];return this._subscriptions.forEach(function(r){var n=e._updateSubscription(r);null!=n&&t.push(n)}),this._updatedRecordIDs={},t},t.publish=function(e){!function(e,t,r){for(var n=t.getRecordIDs(),o=0;o<n.length;o++){var i=n[o],s=t.get(i),l=e.get(i);if(s&&a.freeze(s),s===h)e.remove(i),r[i]=!0;else if(s&&l){var u=a.update(l,s);u!==l&&(a.freeze(u),r[i]=!0,e.set(i,u))}else null===s?(e.delete(i),null!==l&&(r[i]=!0)):s&&(e.set(i,s),r[i]=!0)}}(this._recordSource,e,this._updatedRecordIDs)},t.subscribe=function(e,t){var r=this,n={callback:t,snapshot:e};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e._scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e){var t=e.callback,r=e.snapshot;if(d(r,this._updatedRecordIDs)){var o=s.read(this._recordSource,r,r.owner),a=f(r.data,o.data);return o=(0,n.default)({},o,{data:a}),u(o),e.snapshot=o,o.data!==r.data?(t(o),r.owner):void 0}},t._scheduleGC=function(){var e=this;this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._hasScheduledGC||(this._hasScheduledGC=!0,this._gcScheduler(function(){e.__gc(),e._hasScheduledGC=!1}))},t.__gc=function(){var e=this,t=new Set;if(this._roots.forEach(function(r){l.mark(e._recordSource,r,t,e._operationLoader)}),t.size)for(var r=this._recordSource.getRecordIDs(),n=0;n<r.length;n++){var o=r[n];t.has(o)||this._recordSource.remove(o)}else this._recordSource.clear()},e}();i.instrumentMethods(_.prototype,{lookup:"RelayModernStore.prototype.lookup",notify:"RelayModernStore.prototype.notify",publish:"RelayModernStore.prototype.publish",__gc:"RelayModernStore.prototype.__gc"}),e.exports=_},function(e,t,r){"use strict";var n=r(5),o=r(6),a=r(1),i=r(40),s=r(0),l=n.CONDITION,u=n.CLIENT_EXTENSION,c=n.DEFER,d=n.FRAGMENT_SPREAD,f=n.INLINE_FRAGMENT,p=n.LINKED_FIELD,h=n.MODULE_IMPORT,_=n.LINKED_HANDLE,v=n.SCALAR_FIELD,g=n.SCALAR_HANDLE,m=n.STREAM,y=a.getStorageKey,b=a.getModuleOperationKey;var R=function(){function e(e,t,r,n){var o;this._operationLoader=null!==(o=n)&&void 0!==o?o:null,this._references=r,this._recordSource=e,this._variables=t}var t=e.prototype;return t.mark=function(e,t){this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||s(!1,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case p:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case l:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case f:var a=o.getType(t);null!=a&&a===n.type&&r._traverseSelections(n.selections,t);break;case d:s(!1,"RelayReferenceMarker(): Unexpected fragment spread `...%s`, expected all fragments to be inlined.",n.name);case _:var y=i(n,e,r._variables);y.plural?r._traversePluralLink(y,t):r._traverseLink(y,t);break;case c:case m:r._traverseSelections(n.selections,t);break;case v:case g:break;case h:r._traverseModuleImport(n,t);break;case u:r._traverseSelections(n.selections,t);break;default:s(!1,"RelayReferenceMarker: Unknown AST node `%s`.",n)}})},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&s(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`.");var n=b(e.documentName),a=o.getValue(t,n);if(null!=a){var i=r.get(a);null!=i&&this._traverseSelections(i.selections,t)}},t._traverseLink=function(e,t){var r=y(e,this._variables),n=o.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=y(e,this._variables),a=o.getLinkedRecordIDs(t,n);null!=a&&a.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={mark:function(e,t,r,n){var o=t.dataID,a=t.node,i=t.variables;new R(e,i,r,n).mark(a,o)}}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=Object.keys(e.seenRecords),n=0;n<r.length;n++)if(t.hasOwnProperty(r[n]))return!0;return!1}},function(e,t){e.exports=l},function(e,t,r){"use strict";r(10);var n=r(0),o=r(44),a=o.convertFetch,i=o.convertSubscribe;e.exports={create:function(e,t){var r=a(e),o=t?i(t):void 0;return{execute:function(e,t,a,i){if("subscription"===e.operationKind)return o||n(!1,"RelayNetwork: This network layer does not support Subscriptions. To use Subscriptions, provide a custom network layer."),i&&n(!1,"RelayNetwork: Cannot provide uploadables while subscribing."),o(e,t,a);var s=a.poll;return null!=s?(i&&n(!1,"RelayNetwork: Cannot provide uploadables while polling."),r(e,t,{force:!0}).poll(s)):r(e,t,a,i)}}}}},function(e,t,r){"use strict";var n=r(2),o=n(r(11)),a=n(r(8)),i=r(0),s=1,l=function(){function e(e){var t=e.request,r=e.variables,n=e.cacheConfig,a=e.uploadables;(0,o.default)(this,"_hasCommittedLogs",!1),(0,o.default)(this,"_logs",[]),this._cacheConfig=n,this._id=s++,this._request=t,this._uploadables=a,this._variables=r}var t=e.prototype;return t.addLog=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this._logs.push({label:e,values:r})},t.clearLogs=function(){this._logs=[]},t.printLogs=function(e,t,r){var n=this.getIdentifier();console.groupCollapsed&&console.groupCollapsed("%c".concat(n),e?"color:red":""),console.timeEnd&&console.timeEnd(n),this.getLogsToPrint(e,t,r).forEach(function(e){var t,r=e.label,n=e.values;(t=console).log.apply(t,["".concat(r,":")].concat((0,a.default)(n)))}),console.groupEnd&&console.groupEnd()},t.commitLogs=function(e,t,r){!1!==this._hasCommittedLogs&&i(!1,"The logs for transaction #".concat(this._id," have already been committed.")),this.printLogs(e,t,r),this.markCommitted()},t.markCommitted=function(){this._hasCommittedLogs=!0},t.flushLogs=function(e,t,r){!1!==this._hasCommittedLogs&&i(!1,"The logs for transaction #".concat(this._id," have already been committed.")),this.printLogs(e,t,r),this.clearLogs()},t.getCacheConfig=function(){return this._cacheConfig},t.getIdentifier=function(){return"[".concat(this._id,"] Relay Modern: ").concat(this._request.name)},t.getLogsToPrint=function(e,t,r){return this._logs},t.getRequest=function(){return this._request},t.getUploadables=function(){return this._uploadables},t.getVariables=function(){return this._variables},e}();e.exports=l},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(0),a=r(9),i=function(){function e(e){var t=e.size,r=e.ttl;t>0||o(!1,"RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.",t),r>0||o(!1,"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",r),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,o=s(e,t);this._responses.forEach(function(e,t){var n,o;n=e.fetchTime,o=r._ttl,n+o>=Date.now()||r._responses.delete(t)});var a=this._responses.get(o);return null!=a?(0,n.default)({},a.payload,{extensions:(0,n.default)({},a.payload.extensions,{cacheTimestamp:a.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),o=s(e,t);if(this._responses.delete(o),this._responses.set(o,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function s(e,t){return JSON.stringify(a({queryID:e,variables:t}))}e.exports=i},function(e,t,r){"use strict";var n=r(14),o=r(0),a=r(25);e.exports=function(e,t){a(e)||o(!1,"commitRelayModernMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=e.unstable_internal,i=r.createOperationDescriptor,s=(0,r.getRequest)(t.mutation);if("mutation"!==s.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");var l=t.optimisticUpdater,u=t.configs,c=t.optimisticResponse,d=i(s,t.variables);return u&&(l=n.convert(u,s,l).optimisticUpdater),e.applyUpdate({operation:d,selectorStoreUpdater:l,response:c})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(2)(r(8)),o=r(14),a=r(0),i=r(25),s=r(75),l=r(3);e.exports=function(e,t){i(e)||a(!1,"commitRelayModernMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=e.unstable_internal,u=r.createOperationDescriptor,c=(0,r.getRequest)(t.mutation);if("mutation"!==c.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");if("Request"!==c.kind)throw new Error("commitRelayModernMutation: Expected mutation to be of type request");var d=t.optimisticResponse,f=t.optimisticUpdater,p=t.updater,h=t.configs,_=t.onError,v=t.variables,g=t.uploadables,m=u(c,v);if("function"==typeof d&&(d=d(),l(!1,"commitRelayModernMutation: Expected `optimisticResponse` to be an object, received a function.")),d instanceof Object&&s(d,c,t.variables),h){var y=o.convert(h,c,f,p);f=y.optimisticUpdater,p=y.updater}var b=[];return{dispose:e.executeMutation({operation:m,optimisticResponse:d,optimisticUpdater:f,updater:p,uploadables:g}).subscribe({next:function(e){e.errors&&b.push.apply(b,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(m.fragment,m).data,0!==b.length?b:null)},error:_}).unsubscribe}}},function(e,t,r){"use strict";var n=r(2)(r(4)),o=r(3),a=function(){};a=function(e,t,r){var n={operationName:t.operation.name,path:"ROOT",visitedPaths:new Set,variables:r||{}};i(e,t.operation.selections,n),u(e,n)};var i=function(e,t,r){t.forEach(function(t){return s(e,t,r)})},s=function e(t,r,n){switch(r.kind){case"Condition":return void(r.passingValue===n.variables[r.condition]&&i(t,r.selections,n));case"ScalarField":case"LinkedField":return l(t,r,n);case"InlineFragment":var o=r.type;return void r.selections.forEach(function(r){t.__typename===o&&e(t,r,n)});case"ClientExtension":case"ModuleImport":case"LinkedHandle":case"ScalarHandle":case"Defer":case"Stream":default:return}},l=function(e,t,r){var a=t.alias||t.name,s="".concat(r.path,".").concat(a);switch(r.visitedPaths.add(s),t.kind){case"ScalarField":return void(void 0===e[a]&&o(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is undefined",r.operationName,s));case"LinkedField":var l=t.selections;if(null===e[a])return;return t.plural?Array.isArray(e[a])?void e[a].forEach(function(e){return i(e,l,(0,n.default)({},r,{path:s}))}):void o(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is not an array",r.operationName,s):e[a]instanceof Object?void i(e[a],l,(0,n.default)({},r,{path:s})):void o(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is not an object",r.operationName,s)}},u=function e(t,r){Array.isArray(t)?t.forEach(function(t){return e(t,r)}):Object.keys(t).forEach(function(a){var i=t[a],s="".concat(r.path,".").concat(a);r.visitedPaths.has(s)?i instanceof Object&&e(i,(0,n.default)({},r,{path:s})):o(!1,"validateMutation: `optimisticResponse` for mutation `%s`, contains an unused field %s",r.operationName,s)})};e.exports=a},function(e,t,r){"use strict";var n,o,a=r(0);e.exports=function(e){return n||(n=e.createContext(null),o=e),e!==o&&a(!1,"[createRelayContext]: You passing a different instance of React",e.version),n}},function(e,t,r){"use strict";r(5);var n=r(44),o=n.convertFetch,a=n.convertSubscribe;function i(e,t,r){return function(n,o,a,i){var s;function l(e,t,i){r&&s.addLog("GraphiQL",r(n,o)),s.addLog("Cache Config",a),s.addLog("Variables",JSON.stringify(o,null,2)),i&&s.addLog("Status",i),e&&s.addLog("Error",e),t&&s.addLog("Response",t)}function u(e,t,r){l(e,t,r),s.flushLogs(e,t,r)}function c(e,t,r){l(e,t,r),s.commitLogs(e,t,r)}var d=e(n,o,a,i),f="subscription"===n.operationKind;return d.do({start:function(){s=new t({request:n,variables:o,cacheConfig:a,uploadables:i}),console.time&&console.time(s.getIdentifier()),f&&u(null,null,"subscription is sent.")},next:function(e){u(null,e),console.time&&console.time(s.getIdentifier())},error:function(e){return c(e,null,null)},complete:function(){f?c(null,null,"subscription was closed."):s.markCommitted()},unsubscribe:function(){return c(null,null,f?"subscription is unsubscribed.":"execution is unsubscribed.")}})}}e.exports=function(e){return{wrapFetch:function(t,r){return function(n,a,s,l){return i(o(t),e,r)(n,a,s,l)}},wrapSubscribe:function(t,r){return function(n,o,s){return i(a(t),e,r)(n,o,s)}}}}},function(e,t,r){"use strict";var n=r(10),o=r(79),a=r(45),i=r(0),s=new Map;function l(e,t,r){return u(e,t.node.params,t.variables,function(){return e.execute({operation:t,cacheConfig:null==r?void 0:r.networkCacheConfig})})}function u(e,t,r,s){return n.create(function(n){var l=c(e),u=a(t,r),f=l.get(u);f||s().finally(function(){return l.delete(u)}).subscribe({start:function(e){f={subject:new o,subscription:e},l.set(u,f)},next:function(e){d(l,u).subject.next(e)},error:function(e){d(l,u).subject.error(e)},complete:function(){d(l,u).subject.complete()}}),null==f&&i(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously");var p=f.subject.subscribe(n);return function(){p.unsubscribe();var e=l.get(u);if(e){var t=e.subscription;null!=t&&0===e.subject.getObserverCount()&&(t.unsubscribe(),l.delete(u))}}})}function c(e){var t=s.get(e);if(null!=t)return t;var r=new Map;return s.set(e,r),r}function d(e,t){var r=e.get(t);return null==r&&i(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),r}e.exports={fetchQuery:l,getPromiseForRequestInFlight:function(e,t){var r=c(e),n=a(t.node.params,t.variables);return r.get(n)?new Promise(function(r,n){var o=!1;l(e,t).subscribe({complete:r,error:n,next:function(e){o&&r(e)}}),o=!0}):null},getObservableForRequestInFlight:function(e,t){var r=c(e),n=a(t.node.params,t.variables);return r.get(n)?l(e,t):null},fetchQueryDeduped:u}},function(e,t,r){"use strict";var n=r(2)(r(11)),o=r(10),a=r(0),i=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),this._observable=o.create(function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var o=r[n];switch(o.kind){case"complete":t.complete();break;case"error":t.error(o.error);break;case"next":t.next(o.data);break;default:o.kind,a(!1,"RelayReplaySubject: Unknown event kind `%s`.",o.kind)}}return function(){e._sinks.delete(t)}})}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach(function(e){return e.complete()}))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach(function(t){return t.error(e)}))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach(function(t){return t.next(e)}))},t.subscribe=function(e){return this._observable.subscribe(e)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=i},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t,r,o){e.unstable_internal||n(!1,"fetchRelayModernQuery: Expected a valid Relay environment, got `%s`.",e);var a=e.unstable_internal,i=a.createOperationDescriptor,s=(0,a.getRequest)(t);if("query"!==s.params.operationKind)throw new Error("fetchRelayModernQuery: Expected query operation");var l=i(s,r);return e.execute({operation:l,cacheConfig:o}).map(function(){return e.lookup(l.fragment,l).data}).toPromise()}},function(e,t,r){"use strict";var n=r(46),o=r(29),a=r(9);e.exports=function(e,t){return JSON.stringify(a(o(e,function(e,r){var o=t[r];return n(e,o)})))}},function(e,t,r){"use strict";var n=r(14),o=r(3);e.exports=function(e,t){var r=e.unstable_internal,a=r.createOperationDescriptor,i=(0,r.getRequest)(t.subscription);if("subscription"!==i.params.operationKind)throw new Error("requestRelaySubscription: Must use Subscription operation");var s=t.configs,l=t.onCompleted,u=t.onError,c=t.onNext,d=a(i,t.variables);o(!(t.updater&&s),"requestRelaySubscription: Expected only one of `updater` and `configs` to be provided");var f=(s?n.convert(s,i,null,t.updater):t).updater;return e.execute({operation:d,updater:f,cacheConfig:{force:!0}}).map(function(){return e.lookup(d.fragment,d).data}).subscribeLegacy({onNext:c,onError:u,onCompleted:l})}}])});
|