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