react-relay 2.0.0-rc.2 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/index.js +2 -2
  2. package/lib/ReactRelayContext.js +6 -3
  3. package/lib/ReactRelayFragmentContainer.js +48 -46
  4. package/lib/ReactRelayFragmentMockRenderer.js +5 -1
  5. package/lib/ReactRelayPaginationContainer.js +102 -68
  6. package/lib/ReactRelayQueryFetcher.js +54 -28
  7. package/lib/ReactRelayQueryRenderer.js +28 -20
  8. package/lib/ReactRelayRefetchContainer.js +70 -58
  9. package/lib/ReactRelayTestMocker.js +56 -43
  10. package/lib/ReactRelayTypes.js +1 -1
  11. package/lib/RelayContext.js +8 -2
  12. package/lib/assertFragmentMap.js +9 -7
  13. package/lib/buildReactRelayContainer.js +32 -23
  14. package/lib/index.js +41 -0
  15. package/lib/isRelayEnvironment.js +1 -1
  16. package/lib/isRelayVariables.js +1 -1
  17. package/lib/readContext.js +7 -4
  18. package/package.json +4 -4
  19. package/react-relay.js +2 -2
  20. package/react-relay.min.js +2 -2
  21. package/classic.js +0 -10
  22. package/compat.js +0 -10
  23. package/lib/ConcreteQuery.js +0 -10
  24. package/lib/GraphQLQueryRunner.js +0 -264
  25. package/lib/GraphQLRange.js +0 -1124
  26. package/lib/GraphQLSegment.js +0 -743
  27. package/lib/GraphQLStoreChangeEmitter.js +0 -141
  28. package/lib/GraphQLStoreQueryResolver.js +0 -288
  29. package/lib/GraphQLStoreRangeUtils.js +0 -126
  30. package/lib/QueryBuilder.js +0 -228
  31. package/lib/ReactRelayClassicExports.js +0 -29
  32. package/lib/ReactRelayCompatContainerBuilder.js +0 -175
  33. package/lib/ReactRelayCompatPublic.js +0 -28
  34. package/lib/ReactRelayContainerProfiler.js +0 -30
  35. package/lib/ReactRelayFragmentContainer-flowtest.js +0 -201
  36. package/lib/ReactRelayPaginationContainer-flowtest.js +0 -213
  37. package/lib/ReactRelayPublic.js +0 -29
  38. package/lib/ReactRelayRefetchContainer-flowtest.js +0 -191
  39. package/lib/RelayCacheProcessor.js +0 -196
  40. package/lib/RelayChangeTracker.js +0 -83
  41. package/lib/RelayClassicContainerUtils.js +0 -49
  42. package/lib/RelayClassicCore.js +0 -34
  43. package/lib/RelayClassicRecordState.js +0 -31
  44. package/lib/RelayCompatContainer.js +0 -25
  45. package/lib/RelayCompatEnvironment.js +0 -27
  46. package/lib/RelayCompatMutations.js +0 -133
  47. package/lib/RelayCompatPaginationContainer.js +0 -27
  48. package/lib/RelayCompatRefetchContainer.js +0 -27
  49. package/lib/RelayCompatTypes.js +0 -10
  50. package/lib/RelayContainer.js +0 -889
  51. package/lib/RelayContainerComparators.js +0 -75
  52. package/lib/RelayContainerProxy.js +0 -21
  53. package/lib/RelayDefaultNetworkLayer.js +0 -192
  54. package/lib/RelayEnvironment.js +0 -449
  55. package/lib/RelayEnvironmentTypes.js +0 -10
  56. package/lib/RelayFetchMode.js +0 -17
  57. package/lib/RelayFragmentPointer.js +0 -161
  58. package/lib/RelayFragmentReference.js +0 -249
  59. package/lib/RelayFragmentSpecResolver.js +0 -305
  60. package/lib/RelayGraphQLMutation.js +0 -288
  61. package/lib/RelayGraphQLTag.js +0 -42
  62. package/lib/RelayInternalTypes.js +0 -15
  63. package/lib/RelayInternals.js +0 -24
  64. package/lib/RelayMetaRoute.js +0 -35
  65. package/lib/RelayMockRenderer.js +0 -71
  66. package/lib/RelayModern-flowtest.js +0 -342
  67. package/lib/RelayModernFlowtest_badref.graphql.js +0 -10
  68. package/lib/RelayModernFlowtest_notref.graphql.js +0 -10
  69. package/lib/RelayModernFlowtest_user.graphql.js +0 -10
  70. package/lib/RelayModernFlowtest_users.graphql.js +0 -10
  71. package/lib/RelayMutation.js +0 -322
  72. package/lib/RelayMutationDebugPrinter.js +0 -47
  73. package/lib/RelayMutationQuery.js +0 -558
  74. package/lib/RelayMutationQueue.js +0 -530
  75. package/lib/RelayMutationRequest.js +0 -103
  76. package/lib/RelayMutationTracker.js +0 -113
  77. package/lib/RelayMutationTransaction.js +0 -92
  78. package/lib/RelayMutationTransactionStatus.js +0 -55
  79. package/lib/RelayNetworkDebug.js +0 -131
  80. package/lib/RelayNetworkLayer.js +0 -185
  81. package/lib/RelayNodeInterface.js +0 -104
  82. package/lib/RelayOperationDescriptor.js +0 -40
  83. package/lib/RelayOptimisticMutationUtils.js +0 -208
  84. package/lib/RelayPendingQueryTracker.js +0 -166
  85. package/lib/RelayPropTypes.js +0 -57
  86. package/lib/RelayPublic.js +0 -44
  87. package/lib/RelayQL.js +0 -128
  88. package/lib/RelayQuery.js +0 -1584
  89. package/lib/RelayQueryCaching.js +0 -33
  90. package/lib/RelayQueryConfig.js +0 -58
  91. package/lib/RelayQueryPath.js +0 -204
  92. package/lib/RelayQueryRequest.js +0 -103
  93. package/lib/RelayQueryTracker.js +0 -86
  94. package/lib/RelayQueryTransform.js +0 -91
  95. package/lib/RelayQueryVisitor.js +0 -93
  96. package/lib/RelayQueryWriter.js +0 -573
  97. package/lib/RelayReadyState.js +0 -83
  98. package/lib/RelayReadyStateRenderer.js +0 -145
  99. package/lib/RelayRecord.js +0 -75
  100. package/lib/RelayRecordStatusMap.js +0 -57
  101. package/lib/RelayRecordStore.js +0 -433
  102. package/lib/RelayRecordWriter.js +0 -601
  103. package/lib/RelayRefQueryDescriptor.js +0 -27
  104. package/lib/RelayRenderer.js +0 -268
  105. package/lib/RelayRootContainer.js +0 -125
  106. package/lib/RelayRoute.js +0 -92
  107. package/lib/RelayRouteFragment.js +0 -44
  108. package/lib/RelaySelector.js +0 -201
  109. package/lib/RelayShallowMock.js +0 -69
  110. package/lib/RelayStaticContainer.js +0 -38
  111. package/lib/RelayStore.js +0 -12
  112. package/lib/RelayStoreConstants.js +0 -20
  113. package/lib/RelayStoreData.js +0 -660
  114. package/lib/RelayTaskQueue.js +0 -189
  115. package/lib/RelayTypes.js +0 -13
  116. package/lib/RelayVariable.js +0 -32
  117. package/lib/RelayVariables.js +0 -92
  118. package/lib/buildRQL.js +0 -160
  119. package/lib/callsFromGraphQL.js +0 -74
  120. package/lib/callsToGraphQL.js +0 -34
  121. package/lib/checkRelayQueryData.js +0 -250
  122. package/lib/createRelayQuery.js +0 -17
  123. package/lib/dedent.js +0 -49
  124. package/lib/diffRelayQuery.js +0 -757
  125. package/lib/directivesToGraphQL.js +0 -39
  126. package/lib/filterRelayQuery.js +0 -29
  127. package/lib/findRelayQueryLeaves.js +0 -293
  128. package/lib/flattenRelayQuery.js +0 -121
  129. package/lib/flattenSplitRelayQueries.js +0 -44
  130. package/lib/forEachRootCallArg.js +0 -40
  131. package/lib/fromGraphQL.js +0 -48
  132. package/lib/generateClientEdgeID.js +0 -22
  133. package/lib/generateClientID.js +0 -27
  134. package/lib/generateConcreteFragmentID.js +0 -30
  135. package/lib/generateForceIndex.js +0 -24
  136. package/lib/generateRQLFieldAlias.js +0 -39
  137. package/lib/getRangeBehavior.js +0 -58
  138. package/lib/getRelayQueries.js +0 -83
  139. package/lib/intersectRelayQuery.js +0 -149
  140. package/lib/isClassicRelayContext.js +0 -20
  141. package/lib/isClassicRelayEnvironment.js +0 -20
  142. package/lib/isCompatibleRelayFragmentType.js +0 -27
  143. package/lib/isRelayContainer.js +0 -16
  144. package/lib/makeLegacyStringishComponentRef.js +0 -52
  145. package/lib/printRelayOSSQuery.js +0 -329
  146. package/lib/printRelayQuery.js +0 -26
  147. package/lib/rangeOperationToMetadataKey.js +0 -25
  148. package/lib/readRelayQueryData.js +0 -551
  149. package/lib/relayUnstableBatchedUpdates.js +0 -12
  150. package/lib/relayUnstableBatchedUpdates.native.js +0 -11
  151. package/lib/restoreRelayCacheData.js +0 -188
  152. package/lib/serializeRelayQueryCall.js +0 -42
  153. package/lib/splitDeferredRelayQueries.js +0 -298
  154. package/lib/stableStringify.js +0 -85
  155. package/lib/testEditDistance.js +0 -112
  156. package/lib/throwFailedPromise.js +0 -26
  157. package/lib/toGraphQL.js +0 -94
  158. package/lib/transformRelayQueryPayload.js +0 -145
  159. package/lib/validateMutationConfig.js +0 -117
  160. package/lib/validateRelayReadQuery.js +0 -112
  161. package/lib/writeRelayQueryPayload.js +0 -44
  162. package/lib/writeRelayUpdatePayload.js +0 -513
  163. package/react-relay-classic.js +0 -4
  164. package/react-relay-classic.min.js +0 -9
  165. package/react-relay-compat.js +0 -4
  166. package/react-relay-compat.min.js +0 -9
@@ -1,4 +0,0 @@
1
- /**
2
- * Relay v2.0.0-rc.2
3
- */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("react"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/base62"),require("fbjs/lib/forEachObject")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","relay-runtime","react","fbjs/lib/warning","fbjs/lib/areEqual","fbjs/lib/mapObject","fbjs/lib/base62","fbjs/lib/forEachObject"],t):"object"==typeof exports?exports.ReactRelayCompat=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("react"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/base62"),require("fbjs/lib/forEachObject")):e.ReactRelayCompat=t(e["fbjs/lib/invariant"],e["relay-runtime"],e.react,e["fbjs/lib/warning"],e["fbjs/lib/areEqual"],e["fbjs/lib/mapObject"],e["fbjs/lib/base62"],e["fbjs/lib/forEachObject"])}(window,function(e,t,n,r,a,o,i,s){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}([function(t,n){t.exports=e},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=[],a=[],o=[],i={};Object.freeze(r),Object.freeze(a),Object.freeze(o),Object.freeze(i);var s={createBatchCallVariable:function(e,t){return{kind:"BatchCallVariable",sourceQueryID:e,jsonPath:t}},createCall:function(e,t,n){return{kind:"Call",name:e,metadata:{type:n||null},value:t}},createCallValue:function(e){return{kind:"CallValue",callValue:e}},createCallVariable:function(e){return{kind:"CallVariable",callVariableName:e}},createDirective:function(e,t){return{args:t,kind:"Directive",name:e}},createDirectiveArgument:function(e,t){return{name:e,value:t}},createField:function(e){var t=e.metadata||i;return{alias:e.alias,calls:e.calls||r,children:e.children||a,directives:e.directives||o,fieldName:e.fieldName,kind:"Field",metadata:{canHaveSubselections:!!t.canHaveSubselections,inferredRootCallName:t.inferredRootCallName,inferredPrimaryKey:t.inferredPrimaryKey,isConnection:!!t.isConnection,isFindable:!!t.isFindable,isGenerated:!!t.isGenerated,isPlural:!!t.isPlural,isRequisite:!!t.isRequisite,isAbstract:!!t.isAbstract},type:e.type}},createFragment:function(e){var t=e.metadata||i;return{children:e.children||a,directives:e.directives||o,id:n(25)(),kind:"Fragment",metadata:{isAbstract:!!t.isAbstract,pattern:!!t.pattern,plural:!!t.plural},name:e.name,type:e.type}},createMutation:function(e){var t=e.metadata||i;return{calls:e.calls||r,children:e.children||a,directives:e.directives||o,kind:"Mutation",metadata:{inputType:t.inputType},name:e.name,responseType:e.responseType}},createQuery:function(e){var t=e.metadata||i,r=[],l=t.identifyingArgName;return null==l&&n(26).isNodeRootCall(e.fieldName)&&(l=n(26).ID),null!=l&&(n(5)(null!=e.identifyingArgValue,"QueryBuilder.createQuery(): An argument value may be required for query `%s(%s: ???)`.",e.fieldName,l),r=[s.createCall(l,e.identifyingArgValue,t.identifyingArgType)]),{calls:r,children:e.children||a,directives:e.directives||o,fieldName:e.fieldName,isDeferred:!(!e.isDeferred&&!t.isDeferred),kind:"Query",metadata:{identifyingArgName:l,identifyingArgType:t.identifyingArgType,isAbstract:!!t.isAbstract,isPlural:!!t.isPlural},name:e.name,type:e.type}},createSubscription:function(e){var t=e.metadata||i;return{calls:e.calls||r,children:e.children||a,directives:e.directives||o,kind:"Subscription",metadata:{inputType:t.inputType},name:e.name,responseType:e.responseType}},getBatchCallVariable:function(e){if(l(e,"BatchCallVariable"))return e},getCallVariable:function(e){if(l(e,"CallVariable"))return e},getField:function(e){if(l(e,"Field"))return e},getFragment:function(e){if(l(e,"Fragment"))return e},getFragmentDefinition:function(e){if(l(e,"FragmentDefinition"))return e},getFragmentSpread:function(e){if(l(e,"FragmentSpread"))return e},getOperationDefinition:function(e){if(l(e,"OperationDefinition"))return e},getMutation:function(e){if(l(e,"Mutation"))return e},getQuery:function(e){if(l(e,"Query"))return e},getSubscription:function(e){if(l(e,"Subscription"))return e}};function l(e,t){return"object"==typeof e&&null!==e&&e.kind===t}e.exports=s},function(e,t){e.exports=r},function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:r,getContainerName:function(e){return"Relay("+r(e)+")"}}},function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(40)(e.environment)&&n(41)(e.variables)}e.exports={assertRelayContext:function(e){return r(e)||n(0)(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:r}},function(e,t,n){var r=n(10);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t,n){"use strict";var r=n(1)(n(10)),a=function(){function e(e){(0,r.default)(this,"_selectionReferences",[]),(0,r.default)(this,"_callOnDataChangeWhenSet",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t){return e.check(t.root)?(this._retainCachedOperation(e,t),e.lookup(t.fragment)):null},t.execute=function(e){var t=this,n=e.environment,r=e.operation,a=e.cacheConfig,o=e.preservePreviousReferences,i=void 0!==o&&o,s=n.retain(r.root);return n.execute({operation:r,cacheConfig:a}).do({error:function(){t._selectionReferences=t._selectionReferences.concat(s)},complete:function(){i||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},unsubscribe:function(){t._selectionReferences=t._selectionReferences.concat(s)}})},t.setOnDataChange=function(e){this._fetchOptions||n(0)(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._callOnDataChangeWhenSet&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e){var t,n=this,r=e.cacheConfig,a=e.environment,o=e.operation,i=e.onDataChange,s=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={cacheConfig:r,environment:a,onDataChangeCallbacks:l||[],operation:o},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=this.execute({environment:a,operation:o,cacheConfig:r}).finally(function(){n._pendingRequest=null}).subscribe({next:function(){n._callOnDataChangeWhenSet=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:s})},error:function(e){n._callOnDataChangeWhenSet=!0,n._error=e,n._snapshot=null;var r=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;s?r&&r.forEach(function(t){t({error:e})}):t=e}});if(this._pendingRequest={dispose:function(){c.unsubscribe()}},s=!0,t)throw t;return this._snapshot},t.retry=function(){return this._fetchOptions||n(0)(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({cacheConfig:this._fetchOptions.cacheConfig,environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null})},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t.root)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach(function(e){return e.dispose()}),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||n(0)(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var a=this._fetchOptions,o=a.environment,i=a.onDataChangeCallbacks,s=a.operation;if(!this._snapshot&&(this._snapshot=o.lookup(s.fragment),this._rootSubscription=o.subscribe(this._snapshot,function(e){if(null!=t._fetchOptions){var n=t._fetchOptions.onDataChangeCallbacks;Array.isArray(n)&&n.forEach(function(t){return t({snapshot:e})})}}),this._snapshot&&r&&Array.isArray(i))){var l=this._snapshot;i.forEach(function(e){return e({snapshot:l})})}},e}();e.exports=a},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=a},function(e,t,n){"use strict";var r=n(3).createContext(null);e.exports=r},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";e.exports={getRelayClassicEnvironment:function(e){if(n(32)(e))return e},getRelayModernEnvironment:function(e){if(n(2).isRelayModernEnvironment(e))return e}}},function(e,t,n){"use strict";var r=n(1)(n(16)),a=n(1)(n(8)),o=null;var i=function(){};e.exports={injectDefaultVariablesProvider:function(e){o&&n(0)(!1,"injectDefaultVariablesProvider must be called no more than once."),o=e},injectCompatLoggingFunction:function(e){i=e},buildCompatContainer:function(e,t,s){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown",c=n(6).getContainerName(e);n(23)(n(6).getComponentName(e),t);var u,f,p=null;function h(r){if(null==f||r.__relayContext.environment!==u){u=r.__relayContext.environment,i(l,n(2).isRelayModernEnvironment(u));var a=u.unstable_internal.getFragment,o=n(28)(t,a);f=s(e,o),h.getDerivedStateFromProps=f.getDerivedStateFromProps}return new f(r)}function d(e,t){var a=n(29)(n(12));return a||n(0)(!1,"".concat(c," tried to render a context that was ")+"not valid this means that ".concat(c," was rendered outside of a ")+"query renderer."),n(3).createElement(h,(0,r.default)({},e,{__relayContext:a,componentRef:e.componentRef||t}))}d.displayName=c;var v=n(3).forwardRef(d);return v.getFragment=function(e,r){i(l,!1);var s=t[e];s||n(0)(!1,"ReactRelayCompatContainerBuilder: Expected a fragment named `%s` to be defined on `%s`.",e,c);var u=n(24).getClassicFragment(s);return{kind:"FragmentSpread",args:(0,a.default)({},(null==p&&(p=o?o():{}),p),r||{}),fragment:u}},v.getFragmentNames=function(){return Object.keys(t)},v.hasFragment=function(e){return t.hasOwnProperty(e)},v.hasVariable=function(e){return Object.keys(t).some(function(r){return n(24).getClassicFragment(t[r]).argumentDefinitions.some(function(t){return t.name===e})})},v.__ComponentClass=e,e.__container__=v,v}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";var r=n(1)(n(8));function a(e){n(0)(!1,"RelayQL: 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 `Relay.QL`.")}function o(e){e instanceof n(27)||n(4).getFragment(e)||n(4).getFragmentSpread(e)||n(0)(!1,"RelayQL: Invalid fragment composition, use `${Child.getFragment('name')}`.")}Object.assign(a,{__frag:function(e){return"function"==typeof e?new(n(38))(e):(null!=e&&(Array.isArray(e)?e.forEach(o):o(e)),e)},__var:function(e){var t=n(4).getCallVariable(e);return t&&n(0)(!1,"RelayQL: Invalid argument `%s` supplied via template substitution. Instead, use an inline variable (e.g. `comments(count: $count)`).",t.callVariableName),n(4).createCallValue(e)},__id:function(){return n(25)()},__createFragment:function(e,t){return new(n(27))(function(){return e},null,t)},__getClassicNode:function(e){var t=e.__classic_node__;if(null==t){var r=e.classic;"function"!=typeof r&&n(0)(!1,'RelayQL: Expected a graphql literal, got `%s`.\nThe "relay" Babel plugin must enable "compat" mode to be used with "react-relay/compat" or "react-relay/classic".\nSee: https://facebook.github.io/relay/docs/babel-plugin-relay.html',JSON.stringify(e)),t=r(this),e.__classic_node__=t}return t},__getClassicFragment:function(e,t){var a=this.__getClassicNode(e),o=n(4).getFragmentDefinition(a);if(o||n(0)(!1,'RelayQL: Expected a fragment, got `%s`.\nThe "relay" Babel plugin must enable "compat" mode to be used with "react-relay/compat" or "react-relay/classic".\nSee: https://facebook.github.io/relay/docs/babel-plugin-relay.html',a),t){var i=[];o.argumentDefinitions.forEach(function(e){"RootArgument"!==e.kind&&n(0)(!1,"RelayQL: Cannot unmask fragment `%s`. Expected all the arguments are root argument but get `%s`",a.node.name,e.name),i.push(e.name)}),o.node.metadata=(0,r.default)({},a.node.metadata,{hoistedRootArgs:i})}return o},__getClassicOperation:function(e){var t=this.__getClassicNode(e),r=n(4).getOperationDefinition(t);return r||n(0)(!1,'RelayQL: Expected an operation, got `%s`.\nThe "relay" Babel plugin must enable "compat" mode to be used with "react-relay/compat" or "react-relay/classic".\nSee: https://facebook.github.io/relay/docs/babel-plugin-relay.html',t),r}}),e.exports=a},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";e.exports={profileContainer:function(e,t){n(2).RelayProfiler.instrumentMethods(e.prototype,{constructor:"".concat(t,".prototype.constructor"),UNSAFE_componentWillReceiveProps:"".concat(t,".prototype.UNSAFE_componentWillReceiveProps"),componentWillUnmount:"".concat(t,".prototype.componentWillUnmount"),shouldComponentUpdate:"".concat(t,".prototype.shouldComponentUpdate")}),null!==e.prototype&&"object"==typeof e.prototype&&"function"==typeof e.getDerivedStateFromProps&&(e.prototype.constructor.getDerivedStateFromProps=e.getDerivedStateFromProps)}}},function(e,t,n){"use strict";var r=n(1)(n(16));e.exports=function(e,t,a){var o,i,s=n(6).getContainerName(e);function l(r){if(null==i||r.__relayContext.environment!==o){if(o=r.__relayContext.environment,!(0,n(2).isRelayModernEnvironment)(o))throw new Error("RelayModernContainer: Can only use Relay Modern component "+"".concat(s," in a Relay Modern environment!\n")+"When using Relay Modern and Relay Classic in the same application, ensure components use Relay Compat to work in both environments.\nSee: http://facebook.github.io/relay/docs/relay-compat.html");var c=o.unstable_internal.getFragment,u=n(28)(t,c);i=a(e,u),l.getDerivedStateFromProps=i.getDerivedStateFromProps}return new i(r)}function c(e,t){var a=n(29)(n(12));return a||n(0)(!1,"".concat(s," tried to render a context that was ")+"not valid this means that ".concat(s," was rendered outside of a ")+"query renderer."),n(3).createElement(l,(0,r.default)({},e,{__relayContext:a,componentRef:e.componentRef||t}))}n(23)(n(6).getComponentName(e),t),c.displayName=s;var u=n(3).forwardRef(c);return u.__ComponentClass=e,u.getFragment=function(){throw new Error("RelayModernContainer: ".concat(s,".getFragment() was called on ")+"a Relay Modern component by a Relay Classic or Relay Compat component.\nWhen using Relay Modern and Relay Classic in the same application, ensure components use Relay Compat to work in both environments.\nSee: http://facebook.github.io/relay/docs/relay-compat.html")},u}},function(e,t,n){"use strict";var r=function(){};function a(e,t){if("Mutation"===e.node.kind&&e.node.calls&&1===e.node.calls.length){var r=e.node.calls[0].name;if(t[r])return t[r];n(5)(!1,"RelayCompatMutations: Expected result from `optimisticResponse`to contain the mutation name `%s` as a property, got `%s`",r,t)}return t}e.exports={applyUpdate:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unknown",i=n(14).getRelayModernEnvironment(e);if(i)return r(o,!0),n(2).applyOptimisticMutation(i,t);var s=n(14).getRelayClassicEnvironment(e);return s||n(0)(!1,"RelayCompatMutations: Expected an object that conforms to the `RelayEnvironmentInterface`, got `%s`.",e),r(o,!1),function(e,t){var n=t.configs,r=t.mutation,o=t.optimisticResponse,i=t.variables,s=(0,e.unstable_internal.getRequest)(r);if("mutation"!==s.operation)throw new Error("RelayCompatMutations: Expected mutation operation");return o?(o=a(s,o),e.applyMutation({configs:n||[],operation:s,optimisticResponse:o,variables:i})):{dispose:function(){}}}(s,t)},commitUpdate:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unknown",i=n(14).getRelayModernEnvironment(e);if(i)return r(o,!0),n(2).commitMutation(i,t);var s=n(14).getRelayClassicEnvironment(e);return s||n(0)(!1,"RelayCompatMutations: Expected an object that conforms to the `RelayEnvironmentInterface`, got `%s`.",e),r(o,!1),function(e,t){var r=t.configs,o=t.mutation,i=t.onCompleted,s=t.onError,l=t.optimisticResponse,c=t.variables,u=t.uploadables,f=(0,e.unstable_internal.getRequest)(o);return"function"==typeof l&&(n(5)(!1,"RelayCompatMutations: Expected `optimisticResponse` to be an object, received a function."),l=l()),l&&(l=a(f,l)),e.sendMutation({configs:r||[],operation:f,onCompleted:i,onError:s,optimisticResponse:l,variables:c,uploadables:u})}(s,t)},injectCompatLoggingFunction:function(e){r=e}}},function(e,t,n){"use strict";e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(0)(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var a=t[r];(!a||"object"!=typeof a&&"function"!=typeof a)&&n(0)(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,a)}}},function(e,t,n){"use strict";e.exports={getClassicFragment:function(e){return n(17).__getClassicFragment(e)},getClassicOperation:function(e){return n(17).__getClassicOperation(e)},graphql:function(){n(0)(!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`.")},isClassicFragment:function(e){return null!=n(4).getFragmentDefinition(n(17).__getClassicNode(e))},isClassicOperation:function(e){return null!=n(4).getOperationDefinition(n(17).__getClassicNode(e))}}},function(e,t,n){"use strict";var r="::client",a=0;e.exports=function(){return n(34)(a++)+r}},function(e,t,n){"use strict";var r=function(e,t){var r=[];if(e.getBatchCall())o(e,t).forEach(function(t){if("object"==typeof t&&t){var o=t[a.ID];"string"!=typeof o&&n(0)(!1,"RelayNodeInterface.getResultsFromPayload(): Unable to write result with no `%s` field for query, `%s`.",a.ID,e.getName()),r.push({result:t,rootCallInfo:{storageKey:a.NODE,identifyingArgKey:o,identifyingArgValue:o}})}});else{var i=o(e,t),s=0,l=e.getStorageKey();n(35)(e,function(e){var t=e.identifyingArgKey,n=e.identifyingArgValue,a=i[s++];r.push({result:a,rootCallInfo:{storageKey:l,identifyingArgKey:t,identifyingArgValue:n}})})}return r},a={ANY_TYPE:"__any",ID:"id",ID_TYPE:"ID!",NODE:"node",NODE_TYPE:"Node",NODES:"nodes",TYPENAME:"__typename",isNodeRootCall:function(e){return e===a.NODE||e===a.NODES},getResultsFromPayload:function(e,t){return r(e,t)},injectGetResultsFromPayloadImpl:function(e){r=e}};function o(e,t){var r=e.getFieldName(),a=e.getIdentifyingArg(),o=a&&a.value||null,i=t[r];return e.getBatchCall()||(Array.isArray(o)?(Array.isArray(i)||n(0)(!1,"RelayNodeInterface: Expected payload for root field `%s` to be an array with %s results, instead received a single non-array result.",r,o.length),i.length!==o.length&&n(0)(!1,"RelayNodeInterface: Expected payload for root field `%s` to be an array with %s results, instead received an array with %s results.",r,o.length,i.length)):Array.isArray(i)&&n(0)(!1,"RelayNodeInterface: Expected payload for root field `%s` to be a single non-array result, instead received an array with %s results.",r,i.length)),Array.isArray(i)?i:[i||null]}e.exports=a},function(e,t,n){"use strict";var r=n(1)(n(8)),a=function(){function e(e,t,n,r){this._conditions=null,this._initialVariables=t||{},this._fragment=void 0,this._fragmentGetter=e,this._isContainerFragment=!1,this._isDeferred=!1,this._isTypeConditional=!1,this._variableMapping=n,this._prepareVariables=r}e.createForContainer=function(t,n,r,a){var o=new e(t,n,r,a);return o._isContainerFragment=!0,o};var t=e.prototype;return t.conditionOnType=function(){return this._isTypeConditional=!0,this},t.getConditions=function(){return this._conditions},t.getFragmentUnconditional=function(){var e=this._fragment;return null==e&&(e=this._fragmentGetter(),this._fragment=e),e},t.getInitialVariables=function(){return this._initialVariables},t.getVariableMapping=function(){return this._variableMapping},t.defer=function(){return this._isDeferred=!0,this},t.if=function(e){var t=n(4).getCallVariable(e);return t||n(0)(!1,"RelayFragmentReference: Invalid value `%s` supplied to `if()`. Expected a variable.",t),this._addCondition({passingValue:!0,variable:t.callVariableName}),this},t.unless=function(e){var t=n(4).getCallVariable(e);return t||n(0)(!1,"RelayFragmentReference: Invalid value `%s` supplied to `unless()`. Expected a variable.",t),this._addCondition({passingValue:!1,variable:t.callVariableName}),this},t.getFragment=function(e){var t=this._conditions;return t&&!t.every(function(t){var n=t.variable,r=t.passingValue;return!!e[n]===r})?null:this.getFragmentUnconditional()},t.getVariables=function(e,t){var a=this,o=(0,r.default)({},this._initialVariables),i=this._variableMapping;i&&n(37)(i,function(e,r){var i=n(4).getCallVariable(e);i&&(e=t[i.callVariableName]),void 0===e?n(5)(!1,"RelayFragmentReference: Variable `%s` is undefined in fragment `%s`.",r,a.getFragmentUnconditional().name):o[r]=e});var s=this._prepareVariables;return s&&(o=s(o,e)),o},t.isContainerFragment=function(){return this._isContainerFragment},t.isDeferred=function(){return this._isDeferred},t.isTypeConditional=function(){return this._isTypeConditional},t._addCondition=function(e){var t=this._conditions;t||(t=[],this._conditions=t),t.push(e)},e}();e.exports=a},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=n(3).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,a=n(3).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;e.exports=function(e){return(null!=r?r.current:a.currentDispatcher).readContext(e)}},function(e,t,n){"use strict";e.exports={QueryRenderer:n(31),MutationTypes:n(2).MutationTypes,RangeOperations:n(2).RangeOperations,applyOptimisticMutation:n(22).applyUpdate,commitMutation:n(22).commitUpdate,createFragmentContainer:n(33).createContainer,createPaginationContainer:n(42).createContainer,createRefetchContainer:n(44).createContainer,fetchQuery:n(2).fetchQuery,graphql:n(2).graphql,injectDefaultVariablesProvider:n(15).injectDefaultVariablesProvider}},function(e,t,n){"use strict";var r=n(1)(n(8)),a=n(1)(n(13)),o={},i="STORE_THEN_NETWORK",s=function(e){function t(t){var a;a=e.call(this,t)||this;var i,s,l={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;s=u((0,t.environment.unstable_internal.getRequest)(c).params,t.variables),i=o[s]?o[s].queryFetcher:new(n(9))}else i=new(n(9));return a.state=(0,r.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:i,retryCallbacks:l},f(t,i,l,s)),a}(0,a.default)(t,e),t.getDerivedStateFromProps=function(e,t){if(t.prevQuery!==e.query||t.prevPropsEnvironment!==e.environment||!n(11)(t.prevPropsVariables,e.variables)){var a,i=e.query,s=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),i){var l=u((0,e.environment.unstable_internal.getRequest)(i).params,e.variables);a=o[l]?o[l].queryFetcher:new(n(9))(s)}else a=new(n(9))(s);return(0,r.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:a},f(e,a,t.retryCallbacks))}return null};var i=t.prototype;return i.componentDidMount=function(){var e=this,t=this.state,n=t.retryCallbacks,r=t.queryFetcher,a=t.requestCacheKey;a&&delete o[a],n.handleDataChange=function(t){var a=null==t.error?null:t.error,i=null==t.snapshot?null:t.snapshot;e.setState(function(e){var t=e.requestCacheKey;return t&&delete o[t],i===e.snapshot&&a===e.error?null:{renderProps:c(a,i,r,n),snapshot:i,requestCacheKey:null}})},n.handleRetryAfterError=function(t){return e.setState(function(e){var t=e.requestCacheKey;return t&&delete o[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}})},this.props.query&&r.setOnDataChange(n.handleDataChange)},i.componentDidUpdate=function(){var e=this.state.requestCacheKey;e&&(delete o[e],delete this.state.requestCacheKey)},i.componentWillUnmount=function(){this.state.queryFetcher.dispose()},i.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},i.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return n(2).deepFreeze(t),n(3).createElement(n(12).Provider,{value:r},this.props.render(t))},t}(n(3).Component);function l(e,t){return{environment:e,variables:t}}function c(e,t,n,r){return{error:e||null,props:t?t.data:null,retry:function(){var t=n.retry();t&&"function"==typeof r.handleDataChange?r.handleDataChange({snapshot:t}):e&&"function"==typeof r.handleRetryAfterError&&r.handleRetryAfterError(e)}}}function u(e,t){var n=e.id||e.text;return JSON.stringify({id:String(n),variables:t})}function f(e,t,n,r){var a=e.environment,s=e.query,f=e.variables,p=a;if(!s)return t.dispose(),{error:null,relayContext:l(p,f),renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var h=p.unstable_internal,d=h.createOperationDescriptor,v=(0,h.getRequest)(s),y=d(v,f),m=l(p,y.variables);if("string"==typeof r&&o[r]){var g=o[r].snapshot;return g?{error:null,relayContext:m,renderProps:c(null,g,t,n),snapshot:g,requestCacheKey:r}:{error:null,relayContext:m,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:r}}try{var b=e.dataFrom===i?t.lookupInStore(p,y):null,_=t.fetch({cacheConfig:e.cacheConfig,dataFrom:e.dataFrom,environment:p,onDataChange:n.handleDataChange,operation:y})||b;return r=r||u(v.params,e.variables),o[r]={queryFetcher:t,snapshot:_},_?{error:null,relayContext:m,renderProps:c(null,_,t,n),snapshot:_,requestCacheKey:r}:{error:null,relayContext:m,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:r}}catch(e){return{error:e,relayContext:m,renderProps:c(e,null,t,n),snapshot:null,requestCacheKey:r}}}e.exports=s},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.applyMutation&&"function"==typeof e.sendMutation&&"function"==typeof e.forceFetch&&"function"==typeof e.getFragmentResolver&&"function"==typeof e.getStoreData&&"function"==typeof e.primeCache}},function(e,t,n){"use strict";e.exports={createContainer:function(e,t,r){return n(15).buildCompatContainer(e,t,n(39).createContainerWithFragments,r)}}},function(e,t){e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t){e.getBatchCall()&&n(0)(!1,"forEachRootCallArg(): Cannot iterate over batch call variables.");var r=e.getIdentifyingArg();!function e(t,r){Array.isArray(t)?t.forEach(function(t){return e(t,r)}):r({identifyingArgValue:t,identifyingArgKey:null==t?null:"string"==typeof t?t:n(36)(t)})}(r&&r.value||null,t)}},function(e,t,n){"use strict";function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function e(t){var n=Array.isArray(t),a=r(t);if(n||a){var o=Object.keys(t);if(o.length){var i=[];o.sort();for(var s=0;s<o.length;s++){var l=o[s],c=t[l];c=r(c)||Array.isArray(c)?e(c):JSON.stringify(c),i.push(l+":"+c)}return n?"["+i.join(",")+"]":"{"+i.join(",")+"}"}}return JSON.stringify(t)}},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=function(){function e(e){this._builder=e}return e.prototype.getFragmentForRoute=function(e){return this._builder(e)},e}();e.exports=r},function(e,t,n){"use strict";var r=n(1)(n(8)),a=n(1)(n(18)),o=n(1)(n(13)),i=n(1)(n(19)),s=n(1)(n(10));function l(e,t){var l=n(6).getContainerName(e),u=function(u){function f(e){var r;r=u.call(this,e)||this,(0,s.default)((0,i.default)((0,i.default)(r)),"_handleFragmentDataUpdate",function(){var e=n(2).RelayProfiler.profile("ReactRelayFragmentContainer.handleFragmentDataUpdate"),t=r.state.resolver;r.setState(function(e){return t===e.resolver?{data:e.resolver.resolve(),relayProp:c(e.relayProp.environment)}:null},e.stop)});var a=n(7).assertRelayContext(e.__relayContext),o=(0,a.environment.unstable_internal.createFragmentSpecResolver)(a,l,t,e);return r.state={data:o.resolve(),prevProps:e,prevPropsContext:a,relayProp:c(a.environment),resolver:o},r}(0,o.default)(f,u),f.getDerivedStateFromProps=function(e,r){var a=r.prevProps,o=n(7).assertRelayContext(e.__relayContext),i=o.environment.unstable_internal,s=i.createFragmentSpecResolver,u=i.getDataIDsFromObject,f=u(t,a),p=u(t,e),h=r.resolver;if(r.prevPropsContext.environment!==o.environment||r.prevPropsContext.variables!==o.variables||!n(11)(f,p))return{data:(h=s(o,l,t,e)).resolve(),prevPropsContext:o,prevProps:e,relayProp:c(o.environment),resolver:h};h.setProps(e);var d=h.resolve();return d!==r.data?{data:d,prevProps:e,prevPropsContext:o,relayProp:c(o.environment)}:null};var p=f.prototype;return p.componentDidMount=function(){this._subscribeToNewResolver(),this._rerenderIfStoreHasChanged()},p.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver&&(t.resolver.dispose(),this._subscribeToNewResolver()),this._rerenderIfStoreHasChanged()},p.componentWillUnmount=function(){this.state.resolver.dispose()},p.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];if("__relayContext"===i){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment||r.prevPropsContext.variables!==this.state.prevPropsContext.variables)return!0}else if(!t.hasOwnProperty(i)&&!n(2).isScalarAndEqual(e[i],this.props[i]))return!0}return!1},p._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,n=e.resolver.resolve();t!==n&&this.setState({data:n})},p._subscribeToNewResolver=function(){this.state.resolver.setCallback(this._handleFragmentDataUpdate)},p.render=function(){var t=this.props,o=t.componentRef,i=(t.__relayContext,(0,a.default)(t,["componentRef","__relayContext"]));return n(3).createElement(e,(0,r.default)({},i,this.state.data,{ref:o,relay:this.state.relayProp}))},f}(n(3).Component);return(0,s.default)(u,"displayName",l),n(20).profileContainer(u,"ReactRelayFragmentContainer"),u}function c(e){return{environment:e}}e.exports={createContainer:function(e,t){return n(21)(e,t,l)},createContainerWithFragments:l}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.sendQuery&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}},function(e,t,n){"use strict";e.exports={createContainer:function(e,t,r,a){return n(15).buildCompatContainer(e,t,function(e,t){return n(43).createContainerWithFragments(e,t,r)},a)}}},function(e,t,n){"use strict";var r=n(1)(n(16)),a=n(1)(n(18)),o=n(1)(n(13)),i=n(1)(n(19)),s=n(1)(n(10)),l=n(1)(n(8)),c="forward";function u(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}function f(e,t,f){var p=n(6).getComponentName(e),h=n(6).getContainerName(e),d=function(e){var t=null,r=!1;for(var a in e){var o=e[a],i=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(r=!0),i&&(1!==i.length&&n(0)(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",a,i.length),t&&n(0)(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,l.default)({},i[0],{fragmentName:a}))}return r&&null===t&&n(0)(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),v=f.getConnectionFromProps||function(e){var t=e.path;return t||n(0)(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(n){for(var r=n[e.fragmentName],a=0;a<t.length;a++){if(!r||"object"!=typeof r)return null;r=r[t[a]]}return r}}(d),y=f.direction||d.direction;y||n(0)(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var m=f.getFragmentVariables||function(e){var t=e.count;return t||n(0)(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,n){return(0,l.default)({},e,(0,s.default)({},t,n))}}(d),g=function(d){function g(e){var r;r=d.call(this,e)||this,(0,s.default)((0,i.default)((0,i.default)(r)),"_handleFragmentDataUpdate",function(){var e=n(2).RelayProfiler.profile("ReactRelayPaginationContainer.handleFragmentDataUpdate");r.setState({data:r._resolver.resolve()},e.stop)}),(0,s.default)((0,i.default)((0,i.default)(r)),"_hasMore",function(){var e=r._getConnectionData();return!!(e&&e.hasMore&&e.cursor)}),(0,s.default)((0,i.default)((0,i.default)(r)),"_isLoading",function(){return!!r._refetchSubscription}),(0,s.default)((0,i.default)((0,i.default)(r)),"_refetchConnection",function(e,t,n){if(!r._canFetchPage("refetchConnection"))return{dispose:function(){}};r._refetchVariables=n;var a={count:e,cursor:null,totalCount:e};return{dispose:r._fetchPage(a,u(t),{force:!0}).unsubscribe}}),(0,s.default)((0,i.default)((0,i.default)(r)),"_loadMore",function(e,t,a){if(!r._canFetchPage("loadMore"))return{dispose:function(){}};var o=u(t),i=r._getConnectionData();if(!i)return n(2).Observable.create(function(e){return e.complete()}).subscribe(o),null;var s=i.edgeCount+e;if(a&&a.force)return r._refetchConnection(s,t);var l=n(2).ConnectionInterface.get(),f=l.END_CURSOR,p=l.START_CURSOR,h=i.cursor;n(5)(h,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",y===c?f:p,h);var d={count:e,cursor:h,totalCount:s};return{dispose:r._fetchPage(d,o,a).unsubscribe}});var a=n(7).assertRelayContext(e.__relayContext),o=a.environment.unstable_internal.createFragmentSpecResolver;return r._isARequestInFlight=!1,r._refetchSubscription=null,r._refetchVariables=null,r._resolver=o(a,h,t,e,r._handleFragmentDataUpdate),r.state={data:r._resolver.resolve(),prevContext:a,contextForChildren:a,relayProp:r._buildRelayProp(a)},r._isUnmounted=!1,r._hasFetched=!1,r}(0,o.default)(g,d);var b=g.prototype;return b.UNSAFE_componentWillReceiveProps=function(e){var r=n(7).assertRelayContext(e.__relayContext),a=r.environment.unstable_internal,o=a.createFragmentSpecResolver,i=a.getDataIDsFromObject,s=i(t,this.props),l=i(t,e);r.environment===this.state.prevContext.environment&&r.variables===this.state.prevContext.variables&&n(11)(s,l)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),this._resolver=o(r,h,t,e,this._handleFragmentDataUpdate),this.setState({prevContext:r,contextForChildren:r,relayProp:this._buildRelayProp(r)}));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},b.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},b.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];if("__relayContext"===i){if(r.prevContext.environment!==this.state.prevContext.environment||r.prevContext.variables!==this.state.prevContext.variables)return!0}else if(!t.hasOwnProperty(i)&&!n(2).isScalarAndEqual(e[i],this.props[i]))return!0}return!1},b._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},b._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,a.default)(e,["componentRef"])),r=(0,l.default)({},t,this.state.data),o=v(r);if(null==o)return null;var i=n(2).ConnectionInterface.get(),s=i.EDGES,u=i.PAGE_INFO,f=i.HAS_NEXT_PAGE,h=i.HAS_PREV_PAGE,d=i.END_CURSOR,m=i.START_CURSOR;"object"!=typeof o&&n(0)(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",p,s,u,o);var g=o[s],b=o[u];if(null==g||null==b)return null;Array.isArray(g)||n(0)(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",p,s,g),"object"!=typeof b&&n(0)(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",p,u,b);var _=y===c?b[f]:b[h],C=y===c?b[d]:b[m];return"boolean"!=typeof _||0!==g.length&&void 0===C?(n(5)(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",u,p,y===c?f:h,_,y===c?d:m,C),null):{cursor:C,edgeCount:g.length,hasMore:_}},b._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new(n(9))),this._queryFetcher},b._canFetchPage=function(e){return!this._isUnmounted||(n(5)(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,h,e),!1)},b._fetchPage=function(e,r,o){var i=this,s=n(7).assertRelayContext(this.props.__relayContext).environment,c=s.unstable_internal,u=c.createOperationDescriptor,h=c.getRequest,d=c.getVariablesFromObject,v=this.props,y=(v.componentRef,v.__relayContext,(0,a.default)(v,["componentRef","__relayContext"])),g=(0,l.default)({},y,this.state.data),b=this.props.__relayContext.variables,_=d(b,t,y);_=(0,l.default)({},b,_,this._refetchVariables);var C=f.getVariables(g,{count:e.count,cursor:e.cursor},_);("object"!=typeof C||null===C)&&n(0)(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",C,p),C=(0,l.default)({},C,this._refetchVariables);var R=o?{force:!!o.force}:void 0,x=u(h(f.query),C),F=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var P=function(){i._refetchSubscription===F&&(i._refetchSubscription=null,i._isARequestInFlight=!1)};return this._isARequestInFlight=!0,F=this._getQueryFetcher().execute({environment:s,operation:x,cacheConfig:R,preservePreviousReferences:!0}).mergeMap(function(t){return n(2).Observable.create(function(t){!function(t,r){var a=(0,l.default)({},i.props.__relayContext.variables,_),o=i._resolver.resolve();i._resolver.setVariables(m(_,e.totalCount));var s=i._resolver.resolve();n(11)(o,s)?r():i.setState({data:s,contextForChildren:{environment:i.props.__relayContext.environment,variables:a}},r)}(0,function(){t.next(),t.complete()})})}).do({error:P,complete:P,unsubscribe:P}).subscribe(r||{}),this._refetchSubscription=this._isARequestInFlight?F:null,F},b._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},b.render=function(){var t=this.props,o=t.componentRef,i=(t.__relayContext,(0,a.default)(t,["componentRef","__relayContext"]));return n(3).createElement(n(12).Provider,{value:this.state.contextForChildren},n(3).createElement(e,(0,r.default)({},i,this.state.data,{ref:o,relay:this.state.relayProp})))},g}(n(3).Component);return(0,s.default)(g,"displayName",h),n(20).profileContainer(g,"ReactRelayPaginationContainer"),g}e.exports={createContainer:function(e,t,r){return n(21)(e,t,function(e,t){return f(e,t,r)})},createContainerWithFragments:f}},function(e,t,n){"use strict";e.exports={createContainer:function(e,t,r,a){return n(15).buildCompatContainer(e,t,function(e,t){return n(45).createContainerWithFragments(e,t,r)},a)}}},function(e,t,n){"use strict";var r=n(1)(n(16)),a=n(1)(n(18)),o=n(1)(n(8)),i=n(1)(n(13)),s=n(1)(n(19)),l=n(1)(n(10));function c(e,t,c){var f=n(6).getContainerName(e),p=function(p){function h(e){var r;r=p.call(this,e)||this,(0,l.default)((0,s.default)((0,s.default)(r)),"_handleFragmentDataUpdate",function(){var e=n(2).RelayProfiler.profile("ReactRelayRefetchContainer.handleFragmentDataUpdate"),t=r.state.resolver;r.setState(function(e){return t===e.resolver?{data:e.resolver.resolve()}:null},e.stop)}),(0,l.default)((0,s.default)((0,s.default)(r)),"_refetch",function(e,t,a,i){if(r._isUnmounted)return n(5)(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",f),{dispose:function(){}};var s=n(7).assertRelayContext(r.props.__relayContext),l=s.environment,u=s.variables,p="function"==typeof e?e(r._getFragmentVariables()):e;p=(0,o.default)({},u,p);var h,d=t?(0,o.default)({},u,t):p,v=i?{force:!!i.force}:void 0,y="function"==typeof a?{next:a,error:a}:a||{},m=r.props.__relayContext.environment.unstable_internal,g=(0,m.createOperationDescriptor)((0,m.getRequest)(c),p);if((r.state.localVariables=p,r._refetchSubscription&&r._refetchSubscription.unsubscribe(),"store-or-network"===(null===i||void 0===i?void 0:i.fetchPolicy))&&null!=r._getQueryFetcher().lookupInStore(l,g))return r.state.resolver.setVariables(d),r.setState(function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:r.props.__relayContext.environment,variables:d}}},function(){y.next&&y.next(),y.complete&&y.complete()}),{dispose:function(){}};return r._getQueryFetcher().execute({environment:l,operation:g,cacheConfig:v,preservePreviousReferences:!0}).mergeMap(function(e){return r.state.resolver.setVariables(d),n(2).Observable.create(function(e){return r.setState(function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:r.props.__relayContext.environment,variables:d}}},function(){e.next(),e.complete()})})}).finally(function(){r._refetchSubscription===h&&(r._refetchSubscription=null)}).subscribe((0,o.default)({},y,{start:function(e){r._refetchSubscription=h=e,y.start&&y.start(e)}})),{dispose:function(){h&&h.unsubscribe()}}});var a=n(7).assertRelayContext(e.__relayContext);r._refetchSubscription=null;var i=(0,a.environment.unstable_internal.createFragmentSpecResolver)(a,f,t,e);return r.state={data:i.resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:u(a.environment,r._refetch),resolver:i},r._isUnmounted=!1,r}(0,i.default)(h,p);var d=h.prototype;return d.componentDidMount=function(){this._subscribeToNewResolver()},d.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver&&(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolver())},h.getDerivedStateFromProps=function(e,r){var a=r.prevProps,o=n(7).assertRelayContext(e.__relayContext),i=o.environment.unstable_internal,s=i.createFragmentSpecResolver,l=i.getDataIDsFromObject,c=l(t,a),p=l(t,e),h=r.resolver;if(r.prevPropsContext.environment!==o.environment||r.prevPropsContext.variables!==o.variables||!n(11)(c,p))return{data:(h=s(o,f,t,e)).resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:u(o.environment,r.relayProp.refetch),resolver:h};r.localVariables||h.setProps(e);var d=h.resolve();return d!==r.data?{data:d,prevProps:e}:null},d.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},d.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];if("__relayContext"===i){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment||this.state.prevPropsContext.variables!==r.prevPropsContext.variables)return!0}else if(!t.hasOwnProperty(i)&&!n(2).isScalarAndEqual(e[i],this.props[i]))return!0}return!1},d._subscribeToNewResolver=function(){var e=this.state,t=e.data,n=e.resolver;n.setCallback(this._handleFragmentDataUpdate);var r=n.resolve();t!==r&&this.setState({data:r})},d._getFragmentVariables=function(){return(0,this.props.__relayContext.environment.unstable_internal.getVariablesFromObject)(this.props.__relayContext.variables,t,this.props)},d._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new(n(9))),this._queryFetcher},d.render=function(){var t=this.props,o=t.componentRef,i=(t.__relayContext,(0,a.default)(t,["componentRef","__relayContext"])),s=this.state,l=s.relayProp,c=s.contextForChildren;return n(3).createElement(n(12).Provider,{value:c},n(3).createElement(e,(0,r.default)({},i,this.state.data,{ref:o,relay:l})))},h}(n(3).Component);return(0,l.default)(p,"displayName",f),n(20).profileContainer(p,"ReactRelayRefetchContainer"),p}function u(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return n(21)(e,t,function(e,t){return c(e,t,r)})},createContainerWithFragments:c}}])});
@@ -1,9 +0,0 @@
1
- /**
2
- * Relay v2.0.0-rc.2
3
- *
4
- * Copyright (c) 2013-present, Facebook, Inc.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("react"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/base62"),require("fbjs/lib/forEachObject")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","relay-runtime","react","fbjs/lib/areEqual","fbjs/lib/mapObject","fbjs/lib/base62","fbjs/lib/forEachObject"],t):"object"==typeof exports?exports.ReactRelayCompat=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("react"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/base62"),require("fbjs/lib/forEachObject")):e.ReactRelayCompat=t(e["fbjs/lib/invariant"],e["relay-runtime"],e.react,e["fbjs/lib/areEqual"],e["fbjs/lib/mapObject"],e["fbjs/lib/base62"],e["fbjs/lib/forEachObject"])}(window,function(e,t,n,r,o,i,a){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}([function(t,n){t.exports=e},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=[],o=[],i=[],a={};var s={createBatchCallVariable:function(e,t){return{kind:"BatchCallVariable",sourceQueryID:e,jsonPath:t}},createCall:function(e,t,n){return{kind:"Call",name:e,metadata:{type:n||null},value:t}},createCallValue:function(e){return{kind:"CallValue",callValue:e}},createCallVariable:function(e){return{kind:"CallVariable",callVariableName:e}},createDirective:function(e,t){return{args:t,kind:"Directive",name:e}},createDirectiveArgument:function(e,t){return{name:e,value:t}},createField:function(e){var t=e.metadata||a;return{alias:e.alias,calls:e.calls||r,children:e.children||o,directives:e.directives||i,fieldName:e.fieldName,kind:"Field",metadata:{canHaveSubselections:!!t.canHaveSubselections,inferredRootCallName:t.inferredRootCallName,inferredPrimaryKey:t.inferredPrimaryKey,isConnection:!!t.isConnection,isFindable:!!t.isFindable,isGenerated:!!t.isGenerated,isPlural:!!t.isPlural,isRequisite:!!t.isRequisite,isAbstract:!!t.isAbstract},type:e.type}},createFragment:function(e){var t=e.metadata||a;return{children:e.children||o,directives:e.directives||i,id:n(24)(),kind:"Fragment",metadata:{isAbstract:!!t.isAbstract,pattern:!!t.pattern,plural:!!t.plural},name:e.name,type:e.type}},createMutation:function(e){var t=e.metadata||a;return{calls:e.calls||r,children:e.children||o,directives:e.directives||i,kind:"Mutation",metadata:{inputType:t.inputType},name:e.name,responseType:e.responseType}},createQuery:function(e){var t=e.metadata||a,r=[],u=t.identifyingArgName;return null==u&&n(25).isNodeRootCall(e.fieldName)&&(u=n(25).ID),null!=u&&(r=[s.createCall(u,e.identifyingArgValue,t.identifyingArgType)]),{calls:r,children:e.children||o,directives:e.directives||i,fieldName:e.fieldName,isDeferred:!(!e.isDeferred&&!t.isDeferred),kind:"Query",metadata:{identifyingArgName:u,identifyingArgType:t.identifyingArgType,isAbstract:!!t.isAbstract,isPlural:!!t.isPlural},name:e.name,type:e.type}},createSubscription:function(e){var t=e.metadata||a;return{calls:e.calls||r,children:e.children||o,directives:e.directives||i,kind:"Subscription",metadata:{inputType:t.inputType},name:e.name,responseType:e.responseType}},getBatchCallVariable:function(e){if(u(e,"BatchCallVariable"))return e},getCallVariable:function(e){if(u(e,"CallVariable"))return e},getField:function(e){if(u(e,"Field"))return e},getFragment:function(e){if(u(e,"Fragment"))return e},getFragmentDefinition:function(e){if(u(e,"FragmentDefinition"))return e},getFragmentSpread:function(e){if(u(e,"FragmentSpread"))return e},getOperationDefinition:function(e){if(u(e,"OperationDefinition"))return e},getMutation:function(e){if(u(e,"Mutation"))return e},getQuery:function(e){if(u(e,"Query"))return e},getSubscription:function(e){if(u(e,"Subscription"))return e}};function u(e,t){return"object"==typeof e&&null!==e&&e.kind===t}e.exports=s},function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:r,getContainerName:function(e){return"Relay("+r(e)+")"}}},function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(39)(e.environment)&&n(40)(e.variables)}e.exports={assertRelayContext:function(e){return r(e)||n(0)(!1),e},isRelayContext:r}},function(e,t,n){var r=n(9);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t,n){"use strict";var r=n(1)(n(9)),o=function(){function e(e){(0,r.default)(this,"_selectionReferences",[]),(0,r.default)(this,"_callOnDataChangeWhenSet",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t){return e.check(t.root)?(this._retainCachedOperation(e,t),e.lookup(t.fragment)):null},t.execute=function(e){var t=this,n=e.environment,r=e.operation,o=e.cacheConfig,i=e.preservePreviousReferences,a=void 0!==i&&i,s=n.retain(r.root);return n.execute({operation:r,cacheConfig:o}).do({error:function(){t._selectionReferences=t._selectionReferences.concat(s)},complete:function(){a||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},unsubscribe:function(){t._selectionReferences=t._selectionReferences.concat(s)}})},t.setOnDataChange=function(e){this._fetchOptions||n(0)(!1),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._callOnDataChangeWhenSet&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e){var t,n=this,r=e.cacheConfig,o=e.environment,i=e.operation,a=e.onDataChange,s=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={cacheConfig:r,environment:o,onDataChangeCallbacks:u||[],operation:i},a&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(a)&&this._fetchOptions.onDataChangeCallbacks.push(a);var l=this.execute({environment:o,operation:i,cacheConfig:r}).finally(function(){n._pendingRequest=null}).subscribe({next:function(){n._callOnDataChangeWhenSet=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:s})},error:function(e){n._callOnDataChangeWhenSet=!0,n._error=e,n._snapshot=null;var r=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;s?r&&r.forEach(function(t){t({error:e})}):t=e}});if(this._pendingRequest={dispose:function(){l.unsubscribe()}},s=!0,t)throw t;return this._snapshot},t.retry=function(){return this._fetchOptions||n(0)(!1),this.fetch({cacheConfig:this._fetchOptions.cacheConfig,environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null})},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t.root)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach(function(e){return e.dispose()}),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||n(0)(!1);var o=this._fetchOptions,i=o.environment,a=o.onDataChangeCallbacks,s=o.operation;if(!this._snapshot&&(this._snapshot=i.lookup(s.fragment),this._rootSubscription=i.subscribe(this._snapshot,function(e){if(null!=t._fetchOptions){var n=t._fetchOptions.onDataChangeCallbacks;Array.isArray(n)&&n.forEach(function(t){return t({snapshot:e})})}}),this._snapshot&&r&&Array.isArray(a))){var u=this._snapshot;a.forEach(function(e){return e({snapshot:u})})}},e}();e.exports=o},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=n(3).createContext(null);e.exports=r},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";e.exports={getRelayClassicEnvironment:function(e){if(n(31)(e))return e},getRelayModernEnvironment:function(e){if(n(2).isRelayModernEnvironment(e))return e}}},function(e,t,n){"use strict";var r=n(1)(n(15)),o=n(1)(n(7)),i=null;var a=function(){};e.exports={injectDefaultVariablesProvider:function(e){i&&n(0)(!1),i=e},injectCompatLoggingFunction:function(e){a=e},buildCompatContainer:function(e,t,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown",l=n(5).getContainerName(e);n(22)(n(5).getComponentName(e),t);var c,f,p=null;function h(r){if(null==f||r.__relayContext.environment!==c){c=r.__relayContext.environment,a(u,n(2).isRelayModernEnvironment(c));var o=c.unstable_internal.getFragment,i=n(27)(t,o);f=s(e,i),h.getDerivedStateFromProps=f.getDerivedStateFromProps}return new f(r)}function d(e,t){var o=n(28)(n(11));return o||n(0)(!1),n(3).createElement(h,(0,r.default)({},e,{__relayContext:o,componentRef:e.componentRef||t}))}d.displayName=l;var v=n(3).forwardRef(d);return v.getFragment=function(e,r){a(u,!1);var s=t[e];s||n(0)(!1);var l=n(23).getClassicFragment(s);return{kind:"FragmentSpread",args:(0,o.default)({},(null==p&&(p=i?i():{}),p),r||{}),fragment:l}},v.getFragmentNames=function(){return Object.keys(t)},v.hasFragment=function(e){return t.hasOwnProperty(e)},v.hasVariable=function(e){return Object.keys(t).some(function(r){return n(23).getClassicFragment(t[r]).argumentDefinitions.some(function(t){return t.name===e})})},e.__container__=v,v}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";var r=n(1)(n(7));function o(e){n(0)(!1)}function i(e){e instanceof n(26)||n(4).getFragment(e)||n(4).getFragmentSpread(e)||n(0)(!1)}Object.assign(o,{__frag:function(e){return"function"==typeof e?new(n(37))(e):(null!=e&&(Array.isArray(e)?e.forEach(i):i(e)),e)},__var:function(e){return n(4).getCallVariable(e)&&n(0)(!1),n(4).createCallValue(e)},__id:function(){return n(24)()},__createFragment:function(e,t){return new(n(26))(function(){return e},null,t)},__getClassicNode:function(e){var t=e.__classic_node__;if(null==t){var r=e.classic;"function"!=typeof r&&n(0)(!1),t=r(this),e.__classic_node__=t}return t},__getClassicFragment:function(e,t){var o=this.__getClassicNode(e),i=n(4).getFragmentDefinition(o);if(i||n(0)(!1),t){var a=[];i.argumentDefinitions.forEach(function(e){"RootArgument"!==e.kind&&n(0)(!1),a.push(e.name)}),i.node.metadata=(0,r.default)({},o.node.metadata,{hoistedRootArgs:a})}return i},__getClassicOperation:function(e){var t=this.__getClassicNode(e),r=n(4).getOperationDefinition(t);return r||n(0)(!1),r}}),e.exports=o},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";e.exports={profileContainer:function(e,t){n(2).RelayProfiler.instrumentMethods(e.prototype,{constructor:"".concat(t,".prototype.constructor"),UNSAFE_componentWillReceiveProps:"".concat(t,".prototype.UNSAFE_componentWillReceiveProps"),componentWillUnmount:"".concat(t,".prototype.componentWillUnmount"),shouldComponentUpdate:"".concat(t,".prototype.shouldComponentUpdate")}),null!==e.prototype&&"object"==typeof e.prototype&&"function"==typeof e.getDerivedStateFromProps&&(e.prototype.constructor.getDerivedStateFromProps=e.getDerivedStateFromProps)}}},function(e,t,n){"use strict";var r=n(1)(n(15));e.exports=function(e,t,o){var i,a,s=n(5).getContainerName(e);function u(r){if(null==a||r.__relayContext.environment!==i){var s=(i=r.__relayContext.environment).unstable_internal.getFragment,l=n(27)(t,s);a=o(e,l),u.getDerivedStateFromProps=a.getDerivedStateFromProps}return new a(r)}function l(e,t){var o=n(28)(n(11));return o||n(0)(!1),n(3).createElement(u,(0,r.default)({},e,{__relayContext:o,componentRef:e.componentRef||t}))}return n(22)(n(5).getComponentName(e),t),l.displayName=s,n(3).forwardRef(l)}},function(e,t,n){"use strict";var r=function(){};function o(e,t){if("Mutation"===e.node.kind&&e.node.calls&&1===e.node.calls.length){var n=e.node.calls[0].name;if(t[n])return t[n]}return t}e.exports={applyUpdate:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unknown",a=n(13).getRelayModernEnvironment(e);if(a)return r(i,!0),n(2).applyOptimisticMutation(a,t);var s=n(13).getRelayClassicEnvironment(e);return s||n(0)(!1),r(i,!1),function(e,t){var n=t.configs,r=t.mutation,i=t.optimisticResponse,a=t.variables,s=(0,e.unstable_internal.getRequest)(r);if("mutation"!==s.operation)throw new Error("RelayCompatMutations: Expected mutation operation");return i?(i=o(s,i),e.applyMutation({configs:n||[],operation:s,optimisticResponse:i,variables:a})):{dispose:function(){}}}(s,t)},commitUpdate:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unknown",a=n(13).getRelayModernEnvironment(e);if(a)return r(i,!0),n(2).commitMutation(a,t);var s=n(13).getRelayClassicEnvironment(e);return s||n(0)(!1),r(i,!1),function(e,t){var n=t.configs,r=t.mutation,i=t.onCompleted,a=t.onError,s=t.optimisticResponse,u=t.variables,l=t.uploadables,c=(0,e.unstable_internal.getRequest)(r);return"function"==typeof s&&(s=s()),s&&(s=o(c,s)),e.sendMutation({configs:n||[],operation:c,onCompleted:i,onError:a,optimisticResponse:s,variables:u,uploadables:l})}(s,t)},injectCompatLoggingFunction:function(e){r=e}}},function(e,t,n){"use strict";e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(0)(!1),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(0)(!1)}}},function(e,t,n){"use strict";e.exports={getClassicFragment:function(e){return n(16).__getClassicFragment(e)},getClassicOperation:function(e){return n(16).__getClassicOperation(e)},graphql:function(){n(0)(!1)},isClassicFragment:function(e){return null!=n(4).getFragmentDefinition(n(16).__getClassicNode(e))},isClassicOperation:function(e){return null!=n(4).getOperationDefinition(n(16).__getClassicNode(e))}}},function(e,t,n){"use strict";var r="::client",o=0;e.exports=function(){return n(33)(o++)+r}},function(e,t,n){"use strict";var r=function(e,t){var r=[];if(e.getBatchCall())i(e,t).forEach(function(e){if("object"==typeof e&&e){var t=e[o.ID];"string"!=typeof t&&n(0)(!1),r.push({result:e,rootCallInfo:{storageKey:o.NODE,identifyingArgKey:t,identifyingArgValue:t}})}});else{var a=i(e,t),s=0,u=e.getStorageKey();n(34)(e,function(e){var t=e.identifyingArgKey,n=e.identifyingArgValue,o=a[s++];r.push({result:o,rootCallInfo:{storageKey:u,identifyingArgKey:t,identifyingArgValue:n}})})}return r},o={ANY_TYPE:"__any",ID:"id",ID_TYPE:"ID!",NODE:"node",NODE_TYPE:"Node",NODES:"nodes",TYPENAME:"__typename",isNodeRootCall:function(e){return e===o.NODE||e===o.NODES},getResultsFromPayload:function(e,t){return r(e,t)},injectGetResultsFromPayloadImpl:function(e){r=e}};function i(e,t){var r=e.getFieldName(),o=e.getIdentifyingArg(),i=o&&o.value||null,a=t[r];return e.getBatchCall()||(Array.isArray(i)?(Array.isArray(a)||n(0)(!1),a.length!==i.length&&n(0)(!1)):Array.isArray(a)&&n(0)(!1)),Array.isArray(a)?a:[a||null]}e.exports=o},function(e,t,n){"use strict";var r=n(1)(n(7)),o=function(){function e(e,t,n,r){this._conditions=null,this._initialVariables=t||{},this._fragment=void 0,this._fragmentGetter=e,this._isContainerFragment=!1,this._isDeferred=!1,this._isTypeConditional=!1,this._variableMapping=n,this._prepareVariables=r}e.createForContainer=function(t,n,r,o){var i=new e(t,n,r,o);return i._isContainerFragment=!0,i};var t=e.prototype;return t.conditionOnType=function(){return this._isTypeConditional=!0,this},t.getConditions=function(){return this._conditions},t.getFragmentUnconditional=function(){var e=this._fragment;return null==e&&(e=this._fragmentGetter(),this._fragment=e),e},t.getInitialVariables=function(){return this._initialVariables},t.getVariableMapping=function(){return this._variableMapping},t.defer=function(){return this._isDeferred=!0,this},t.if=function(e){var t=n(4).getCallVariable(e);return t||n(0)(!1),this._addCondition({passingValue:!0,variable:t.callVariableName}),this},t.unless=function(e){var t=n(4).getCallVariable(e);return t||n(0)(!1),this._addCondition({passingValue:!1,variable:t.callVariableName}),this},t.getFragment=function(e){var t=this._conditions;return t&&!t.every(function(t){var n=t.variable,r=t.passingValue;return!!e[n]===r})?null:this.getFragmentUnconditional()},t.getVariables=function(e,t){var o=(0,r.default)({},this._initialVariables),i=this._variableMapping;i&&n(36)(i,function(e,r){var i=n(4).getCallVariable(e);i&&(e=t[i.callVariableName]),void 0===e||(o[r]=e)});var a=this._prepareVariables;return a&&(o=a(o,e)),o},t.isContainerFragment=function(){return this._isContainerFragment},t.isDeferred=function(){return this._isDeferred},t.isTypeConditional=function(){return this._isTypeConditional},t._addCondition=function(e){var t=this._conditions;t||(t=[],this._conditions=t),t.push(e)},e}();e.exports=o},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=n(3).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,o=n(3).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;e.exports=function(e){return(null!=r?r.current:o.currentDispatcher).readContext(e)}},function(e,t,n){"use strict";e.exports={QueryRenderer:n(30),MutationTypes:n(2).MutationTypes,RangeOperations:n(2).RangeOperations,applyOptimisticMutation:n(21).applyUpdate,commitMutation:n(21).commitUpdate,createFragmentContainer:n(32).createContainer,createPaginationContainer:n(41).createContainer,createRefetchContainer:n(43).createContainer,fetchQuery:n(2).fetchQuery,graphql:n(2).graphql,injectDefaultVariablesProvider:n(14).injectDefaultVariablesProvider}},function(e,t,n){"use strict";var r=n(1)(n(7)),o=n(1)(n(12)),i={},a="STORE_THEN_NETWORK",s=function(e){function t(t){var o;o=e.call(this,t)||this;var a,s,u={handleDataChange:null,handleRetryAfterError:null};if(t.query){var l=t.query;s=c((0,t.environment.unstable_internal.getRequest)(l).params,t.variables),a=i[s]?i[s].queryFetcher:new(n(8))}else a=new(n(8));return o.state=(0,r.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:a,retryCallbacks:u},f(t,a,u,s)),o}(0,o.default)(t,e),t.getDerivedStateFromProps=function(e,t){if(t.prevQuery!==e.query||t.prevPropsEnvironment!==e.environment||!n(10)(t.prevPropsVariables,e.variables)){var o,a=e.query,s=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),a){var u=c((0,e.environment.unstable_internal.getRequest)(a).params,e.variables);o=i[u]?i[u].queryFetcher:new(n(8))(s)}else o=new(n(8))(s);return(0,r.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:o},f(e,o,t.retryCallbacks))}return null};var a=t.prototype;return a.componentDidMount=function(){var e=this,t=this.state,n=t.retryCallbacks,r=t.queryFetcher,o=t.requestCacheKey;o&&delete i[o],n.handleDataChange=function(t){var o=null==t.error?null:t.error,a=null==t.snapshot?null:t.snapshot;e.setState(function(e){var t=e.requestCacheKey;return t&&delete i[t],a===e.snapshot&&o===e.error?null:{renderProps:l(o,a,r,n),snapshot:a,requestCacheKey:null}})},n.handleRetryAfterError=function(t){return e.setState(function(e){var t=e.requestCacheKey;return t&&delete i[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}})},this.props.query&&r.setOnDataChange(n.handleDataChange)},a.componentDidUpdate=function(){var e=this.state.requestCacheKey;e&&(delete i[e],delete this.state.requestCacheKey)},a.componentWillUnmount=function(){this.state.queryFetcher.dispose()},a.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},a.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return n(3).createElement(n(11).Provider,{value:r},this.props.render(t))},t}(n(3).Component);function u(e,t){return{environment:e,variables:t}}function l(e,t,n,r){return{error:e||null,props:t?t.data:null,retry:function(){var t=n.retry();t&&"function"==typeof r.handleDataChange?r.handleDataChange({snapshot:t}):e&&"function"==typeof r.handleRetryAfterError&&r.handleRetryAfterError(e)}}}function c(e,t){var n=e.id||e.text;return JSON.stringify({id:String(n),variables:t})}function f(e,t,n,r){var o=e.environment,s=e.query,f=e.variables,p=o;if(!s)return t.dispose(),{error:null,relayContext:u(p,f),renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var h=p.unstable_internal,d=h.createOperationDescriptor,v=(0,h.getRequest)(s),_=d(v,f),y=u(p,_.variables);if("string"==typeof r&&i[r]){var m=i[r].snapshot;return m?{error:null,relayContext:y,renderProps:l(null,m,t,n),snapshot:m,requestCacheKey:r}:{error:null,relayContext:y,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:r}}try{var g=e.dataFrom===a?t.lookupInStore(p,_):null,b=t.fetch({cacheConfig:e.cacheConfig,dataFrom:e.dataFrom,environment:p,onDataChange:n.handleDataChange,operation:_})||g;return r=r||c(v.params,e.variables),i[r]={queryFetcher:t,snapshot:b},b?{error:null,relayContext:y,renderProps:l(null,b,t,n),snapshot:b,requestCacheKey:r}:{error:null,relayContext:y,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:r}}catch(e){return{error:e,relayContext:y,renderProps:l(e,null,t,n),snapshot:null,requestCacheKey:r}}}e.exports=s},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.applyMutation&&"function"==typeof e.sendMutation&&"function"==typeof e.forceFetch&&"function"==typeof e.getFragmentResolver&&"function"==typeof e.getStoreData&&"function"==typeof e.primeCache}},function(e,t,n){"use strict";e.exports={createContainer:function(e,t,r){return n(14).buildCompatContainer(e,t,n(38).createContainerWithFragments,r)}}},function(e,t){e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t){e.getBatchCall()&&n(0)(!1);var r=e.getIdentifyingArg();!function e(t,r){Array.isArray(t)?t.forEach(function(t){return e(t,r)}):r({identifyingArgValue:t,identifyingArgKey:null==t?null:"string"==typeof t?t:n(35)(t)})}(r&&r.value||null,t)}},function(e,t,n){"use strict";function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function e(t){var n=Array.isArray(t),o=r(t);if(n||o){var i=Object.keys(t);if(i.length){var a=[];i.sort();for(var s=0;s<i.length;s++){var u=i[s],l=t[u];l=r(l)||Array.isArray(l)?e(l):JSON.stringify(l),a.push(u+":"+l)}return n?"["+a.join(",")+"]":"{"+a.join(",")+"}"}}return JSON.stringify(t)}},function(e,t){e.exports=a},function(e,t,n){"use strict";var r=function(){function e(e){this._builder=e}return e.prototype.getFragmentForRoute=function(e){return this._builder(e)},e}();e.exports=r},function(e,t,n){"use strict";var r=n(1)(n(7)),o=n(1)(n(17)),i=n(1)(n(12)),a=n(1)(n(18)),s=n(1)(n(9));function u(e,t){var u=n(5).getContainerName(e),c=function(c){function f(e){var r;r=c.call(this,e)||this,(0,s.default)((0,a.default)((0,a.default)(r)),"_handleFragmentDataUpdate",function(){var e=n(2).RelayProfiler.profile("ReactRelayFragmentContainer.handleFragmentDataUpdate"),t=r.state.resolver;r.setState(function(e){return t===e.resolver?{data:e.resolver.resolve(),relayProp:l(e.relayProp.environment)}:null},e.stop)});var o=n(6).assertRelayContext(e.__relayContext),i=(0,o.environment.unstable_internal.createFragmentSpecResolver)(o,u,t,e);return r.state={data:i.resolve(),prevProps:e,prevPropsContext:o,relayProp:l(o.environment),resolver:i},r}(0,i.default)(f,c),f.getDerivedStateFromProps=function(e,r){var o=r.prevProps,i=n(6).assertRelayContext(e.__relayContext),a=i.environment.unstable_internal,s=a.createFragmentSpecResolver,c=a.getDataIDsFromObject,f=c(t,o),p=c(t,e),h=r.resolver;if(r.prevPropsContext.environment!==i.environment||r.prevPropsContext.variables!==i.variables||!n(10)(f,p))return{data:(h=s(i,u,t,e)).resolve(),prevPropsContext:i,prevProps:e,relayProp:l(i.environment),resolver:h};h.setProps(e);var d=h.resolve();return d!==r.data?{data:d,prevProps:e,prevPropsContext:i,relayProp:l(i.environment)}:null};var p=f.prototype;return p.componentDidMount=function(){this._subscribeToNewResolver(),this._rerenderIfStoreHasChanged()},p.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver&&(t.resolver.dispose(),this._subscribeToNewResolver()),this._rerenderIfStoreHasChanged()},p.componentWillUnmount=function(){this.state.resolver.dispose()},p.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var o=Object.keys(e),i=0;i<o.length;i++){var a=o[i];if("__relayContext"===a){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment||r.prevPropsContext.variables!==this.state.prevPropsContext.variables)return!0}else if(!t.hasOwnProperty(a)&&!n(2).isScalarAndEqual(e[a],this.props[a]))return!0}return!1},p._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,n=e.resolver.resolve();t!==n&&this.setState({data:n})},p._subscribeToNewResolver=function(){this.state.resolver.setCallback(this._handleFragmentDataUpdate)},p.render=function(){var t=this.props,i=t.componentRef,a=(t.__relayContext,(0,o.default)(t,["componentRef","__relayContext"]));return n(3).createElement(e,(0,r.default)({},a,this.state.data,{ref:i,relay:this.state.relayProp}))},f}(n(3).Component);return(0,s.default)(c,"displayName",u),n(19).profileContainer(c,"ReactRelayFragmentContainer"),c}function l(e){return{environment:e}}e.exports={createContainer:function(e,t){return n(20)(e,t,u)},createContainerWithFragments:u}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.sendQuery&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}},function(e,t,n){"use strict";e.exports={createContainer:function(e,t,r,o){return n(14).buildCompatContainer(e,t,function(e,t){return n(42).createContainerWithFragments(e,t,r)},o)}}},function(e,t,n){"use strict";var r=n(1)(n(15)),o=n(1)(n(17)),i=n(1)(n(12)),a=n(1)(n(18)),s=n(1)(n(9)),u=n(1)(n(7)),l="forward";function c(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}function f(e,t,f){n(5).getComponentName(e);var p=n(5).getContainerName(e),h=function(e){var t=null,r=!1;for(var o in e){var i=e[o],a=i.metadata&&i.metadata.connection;void 0!==i.metadata&&(r=!0),a&&(1!==a.length&&n(0)(!1),t&&n(0)(!1),t=(0,u.default)({},a[0],{fragmentName:o}))}return r&&null===t&&n(0)(!1),t||{}}(t),d=f.getConnectionFromProps||function(e){var t=e.path;return t||n(0)(!1),function(n){for(var r=n[e.fragmentName],o=0;o<t.length;o++){if(!r||"object"!=typeof r)return null;r=r[t[o]]}return r}}(h),v=f.direction||h.direction;v||n(0)(!1);var _=f.getFragmentVariables||function(e){var t=e.count;return t||n(0)(!1),function(e,n){return(0,u.default)({},e,(0,s.default)({},t,n))}}(h),y=function(h){function y(e){var r;r=h.call(this,e)||this,(0,s.default)((0,a.default)((0,a.default)(r)),"_handleFragmentDataUpdate",function(){var e=n(2).RelayProfiler.profile("ReactRelayPaginationContainer.handleFragmentDataUpdate");r.setState({data:r._resolver.resolve()},e.stop)}),(0,s.default)((0,a.default)((0,a.default)(r)),"_hasMore",function(){var e=r._getConnectionData();return!!(e&&e.hasMore&&e.cursor)}),(0,s.default)((0,a.default)((0,a.default)(r)),"_isLoading",function(){return!!r._refetchSubscription}),(0,s.default)((0,a.default)((0,a.default)(r)),"_refetchConnection",function(e,t,n){if(!r._canFetchPage("refetchConnection"))return{dispose:function(){}};r._refetchVariables=n;var o={count:e,cursor:null,totalCount:e};return{dispose:r._fetchPage(o,c(t),{force:!0}).unsubscribe}}),(0,s.default)((0,a.default)((0,a.default)(r)),"_loadMore",function(e,t,o){if(!r._canFetchPage("loadMore"))return{dispose:function(){}};var i=c(t),a=r._getConnectionData();if(!a)return n(2).Observable.create(function(e){return e.complete()}).subscribe(i),null;var s=a.edgeCount+e;if(o&&o.force)return r._refetchConnection(s,t);var u=n(2).ConnectionInterface.get(),l=(u.END_CURSOR,u.START_CURSOR,{count:e,cursor:a.cursor,totalCount:s});return{dispose:r._fetchPage(l,i,o).unsubscribe}});var o=n(6).assertRelayContext(e.__relayContext),i=o.environment.unstable_internal.createFragmentSpecResolver;return r._isARequestInFlight=!1,r._refetchSubscription=null,r._refetchVariables=null,r._resolver=i(o,p,t,e,r._handleFragmentDataUpdate),r.state={data:r._resolver.resolve(),prevContext:o,contextForChildren:o,relayProp:r._buildRelayProp(o)},r._isUnmounted=!1,r._hasFetched=!1,r}(0,i.default)(y,h);var m=y.prototype;return m.UNSAFE_componentWillReceiveProps=function(e){var r=n(6).assertRelayContext(e.__relayContext),o=r.environment.unstable_internal,i=o.createFragmentSpecResolver,a=o.getDataIDsFromObject,s=a(t,this.props),u=a(t,e);r.environment===this.state.prevContext.environment&&r.variables===this.state.prevContext.variables&&n(10)(s,u)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),this._resolver=i(r,p,t,e,this._handleFragmentDataUpdate),this.setState({prevContext:r,contextForChildren:r,relayProp:this._buildRelayProp(r)}));var l=this._resolver.resolve();l!==this.state.data&&this.setState({data:l})},m.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},m.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var o=Object.keys(e),i=0;i<o.length;i++){var a=o[i];if("__relayContext"===a){if(r.prevContext.environment!==this.state.prevContext.environment||r.prevContext.variables!==this.state.prevContext.variables)return!0}else if(!t.hasOwnProperty(a)&&!n(2).isScalarAndEqual(e[a],this.props[a]))return!0}return!1},m._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},m._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,o.default)(e,["componentRef"])),r=(0,u.default)({},t,this.state.data),i=d(r);if(null==i)return null;var a=n(2).ConnectionInterface.get(),s=a.EDGES,c=a.PAGE_INFO,f=a.HAS_NEXT_PAGE,p=a.HAS_PREV_PAGE,h=a.END_CURSOR,_=a.START_CURSOR;"object"!=typeof i&&n(0)(!1);var y=i[s],m=i[c];if(null==y||null==m)return null;Array.isArray(y)||n(0)(!1),"object"!=typeof m&&n(0)(!1);var g=v===l?m[f]:m[p],b=v===l?m[h]:m[_];return"boolean"!=typeof g||0!==y.length&&void 0===b?null:{cursor:b,edgeCount:y.length,hasMore:g}},m._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new(n(8))),this._queryFetcher},m._canFetchPage=function(e){return!this._isUnmounted},m._fetchPage=function(e,r,i){var a=this,s=n(6).assertRelayContext(this.props.__relayContext).environment,l=s.unstable_internal,c=l.createOperationDescriptor,p=l.getRequest,h=l.getVariablesFromObject,d=this.props,v=(d.componentRef,d.__relayContext,(0,o.default)(d,["componentRef","__relayContext"])),y=(0,u.default)({},v,this.state.data),m=this.props.__relayContext.variables,g=h(m,t,v);g=(0,u.default)({},m,g,this._refetchVariables);var b=f.getVariables(y,{count:e.count,cursor:e.cursor},g);("object"!=typeof b||null===b)&&n(0)(!1),b=(0,u.default)({},b,this._refetchVariables);var C=i?{force:!!i.force}:void 0,R=c(p(f.query),b),x=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var F=function(){a._refetchSubscription===x&&(a._refetchSubscription=null,a._isARequestInFlight=!1)};return this._isARequestInFlight=!0,x=this._getQueryFetcher().execute({environment:s,operation:R,cacheConfig:C,preservePreviousReferences:!0}).mergeMap(function(t){return n(2).Observable.create(function(t){!function(t,r){var o=(0,u.default)({},a.props.__relayContext.variables,g),i=a._resolver.resolve();a._resolver.setVariables(_(g,e.totalCount));var s=a._resolver.resolve();n(10)(i,s)?r():a.setState({data:s,contextForChildren:{environment:a.props.__relayContext.environment,variables:o}},r)}(0,function(){t.next(),t.complete()})})}).do({error:F,complete:F,unsubscribe:F}).subscribe(r||{}),this._refetchSubscription=this._isARequestInFlight?x:null,x},m._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},m.render=function(){var t=this.props,i=t.componentRef,a=(t.__relayContext,(0,o.default)(t,["componentRef","__relayContext"]));return n(3).createElement(n(11).Provider,{value:this.state.contextForChildren},n(3).createElement(e,(0,r.default)({},a,this.state.data,{ref:i,relay:this.state.relayProp})))},y}(n(3).Component);return(0,s.default)(y,"displayName",p),n(19).profileContainer(y,"ReactRelayPaginationContainer"),y}e.exports={createContainer:function(e,t,r){return n(20)(e,t,function(e,t){return f(e,t,r)})},createContainerWithFragments:f}},function(e,t,n){"use strict";e.exports={createContainer:function(e,t,r,o){return n(14).buildCompatContainer(e,t,function(e,t){return n(44).createContainerWithFragments(e,t,r)},o)}}},function(e,t,n){"use strict";var r=n(1)(n(15)),o=n(1)(n(17)),i=n(1)(n(7)),a=n(1)(n(12)),s=n(1)(n(18)),u=n(1)(n(9));function l(e,t,l){var f=n(5).getContainerName(e),p=function(p){function h(e){var r;r=p.call(this,e)||this,(0,u.default)((0,s.default)((0,s.default)(r)),"_handleFragmentDataUpdate",function(){var e=n(2).RelayProfiler.profile("ReactRelayRefetchContainer.handleFragmentDataUpdate"),t=r.state.resolver;r.setState(function(e){return t===e.resolver?{data:e.resolver.resolve()}:null},e.stop)}),(0,u.default)((0,s.default)((0,s.default)(r)),"_refetch",function(e,t,o,a){if(r._isUnmounted)return{dispose:function(){}};var s=n(6).assertRelayContext(r.props.__relayContext),u=s.environment,c=s.variables,f="function"==typeof e?e(r._getFragmentVariables()):e;f=(0,i.default)({},c,f);var p,h=t?(0,i.default)({},c,t):f,d=a?{force:!!a.force}:void 0,v="function"==typeof o?{next:o,error:o}:o||{},_=r.props.__relayContext.environment.unstable_internal,y=(0,_.createOperationDescriptor)((0,_.getRequest)(l),f);if((r.state.localVariables=f,r._refetchSubscription&&r._refetchSubscription.unsubscribe(),"store-or-network"===(null===a||void 0===a?void 0:a.fetchPolicy))&&null!=r._getQueryFetcher().lookupInStore(u,y))return r.state.resolver.setVariables(h),r.setState(function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:r.props.__relayContext.environment,variables:h}}},function(){v.next&&v.next(),v.complete&&v.complete()}),{dispose:function(){}};return r._getQueryFetcher().execute({environment:u,operation:y,cacheConfig:d,preservePreviousReferences:!0}).mergeMap(function(e){return r.state.resolver.setVariables(h),n(2).Observable.create(function(e){return r.setState(function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:r.props.__relayContext.environment,variables:h}}},function(){e.next(),e.complete()})})}).finally(function(){r._refetchSubscription===p&&(r._refetchSubscription=null)}).subscribe((0,i.default)({},v,{start:function(e){r._refetchSubscription=p=e,v.start&&v.start(e)}})),{dispose:function(){p&&p.unsubscribe()}}});var o=n(6).assertRelayContext(e.__relayContext);r._refetchSubscription=null;var a=(0,o.environment.unstable_internal.createFragmentSpecResolver)(o,f,t,e);return r.state={data:a.resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:c(o.environment,r._refetch),resolver:a},r._isUnmounted=!1,r}(0,a.default)(h,p);var d=h.prototype;return d.componentDidMount=function(){this._subscribeToNewResolver()},d.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver&&(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolver())},h.getDerivedStateFromProps=function(e,r){var o=r.prevProps,i=n(6).assertRelayContext(e.__relayContext),a=i.environment.unstable_internal,s=a.createFragmentSpecResolver,u=a.getDataIDsFromObject,l=u(t,o),p=u(t,e),h=r.resolver;if(r.prevPropsContext.environment!==i.environment||r.prevPropsContext.variables!==i.variables||!n(10)(l,p))return{data:(h=s(i,f,t,e)).resolve(),localVariables:null,prevProps:e,prevPropsContext:i,contextForChildren:i,relayProp:c(i.environment,r.relayProp.refetch),resolver:h};r.localVariables||h.setProps(e);var d=h.resolve();return d!==r.data?{data:d,prevProps:e}:null},d.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},d.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var o=Object.keys(e),i=0;i<o.length;i++){var a=o[i];if("__relayContext"===a){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment||this.state.prevPropsContext.variables!==r.prevPropsContext.variables)return!0}else if(!t.hasOwnProperty(a)&&!n(2).isScalarAndEqual(e[a],this.props[a]))return!0}return!1},d._subscribeToNewResolver=function(){var e=this.state,t=e.data,n=e.resolver;n.setCallback(this._handleFragmentDataUpdate);var r=n.resolve();t!==r&&this.setState({data:r})},d._getFragmentVariables=function(){return(0,this.props.__relayContext.environment.unstable_internal.getVariablesFromObject)(this.props.__relayContext.variables,t,this.props)},d._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new(n(8))),this._queryFetcher},d.render=function(){var t=this.props,i=t.componentRef,a=(t.__relayContext,(0,o.default)(t,["componentRef","__relayContext"])),s=this.state,u=s.relayProp,l=s.contextForChildren;return n(3).createElement(n(11).Provider,{value:l},n(3).createElement(e,(0,r.default)({},a,this.state.data,{ref:i,relay:u})))},h}(n(3).Component);return(0,u.default)(p,"displayName",f),n(19).profileContainer(p,"ReactRelayRefetchContainer"),p}function c(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return n(20)(e,t,function(e,t){return l(e,t,r)})},createContainerWithFragments:l}}])});