UNPKG

85.9 kBJavaScriptView Raw
1/**
2 * Relay v4.0.0
3 *
4 * Copyright (c) 2013-present, Facebook, Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the root directory of this source tree.
8 */
9!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","fbjs/lib/areEqual","fbjs/lib/mapObject","fbjs/lib/sprintf","fbjs/lib/emptyFunction","fbjs/lib/removeFromArray","fbjs/lib/ErrorUtils","fbjs/lib/resolveImmediate"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["fbjs/lib/areEqual"],e["fbjs/lib/mapObject"],e["fbjs/lib/sprintf"],e["fbjs/lib/emptyFunction"],e["fbjs/lib/removeFromArray"],e["fbjs/lib/ErrorUtils"],e["fbjs/lib/resolveImmediate"])}(window,function(e,t,r,n,i,a,o,s,u){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=46)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(4),i=r(19),a=r(0),o=r(9),s=n.VARIABLE;function u(e,t){var r={};return e.forEach(function(e){e.kind===s?r[e.name]=function(e,t){return t.hasOwnProperty(e)||a(!1),o(t[e])}(e.variableName,t):r[e.name]=e.value}),r}function l(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];null!=i&&r.push(n+":"+JSON.stringify(i))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var c={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",MODULE_OPERATION_KEY:"__module_operation",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",UNPUBLISH_RECORD_SENTINEL:Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),UNPUBLISH_FIELD_SENTINEL:Object.freeze({__UNPUBLISH_FIELD_SENTINEL:!0}),getArgumentValues:u,getHandleStorageKey:function(e,t){var r=e.handle,n=e.key,a=e.name,o=e.args,s=e.filters,c=i(r,n,a);return o&&s&&0!==o.length&&0!==s.length?l(c,u(o.filter(function(e){return s.indexOf(e.name)>-1}),t)):c},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?l(n,u(r,t)):n},getStableStorageKey:function(e,t){return l(e,o(t))}};e.exports=c},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,r){e.exports=t},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",VARIABLE:"Variable"}},function(e,t,r){var n=r(10);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(14),a=r(22),o=r(0),s=(r(3),r(7).isClientID,r(1)),u=s.ID_KEY,l=s.REF_KEY,c=s.REFS_KEY,d=s.TYPENAME_KEY,f=s.UNPUBLISH_FIELD_SENTINEL;e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==u&&r!==d&&(t[r]=e[r])},create:function(e,t){var r={};return r[u]=e,r[d]=t,r},freeze:function(e){a(e)},getDataID:function(e){return e[u]},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[l]||o(!1),r[l])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[c])||o(!1),r[c])},getType:function(e){return e[d]},getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(l)||r.hasOwnProperty(c))&&o(!1),r},merge:function(e,t){return Object.assign({},e,t)},setValue:function(e,t,r){e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[l]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[c]=r,e[t]=n},update:function(e,t){for(var r=null,a=Object.keys(t),o=0;o<a.length;o++){var s=a[o];!r&&i(e[s],t[s])||(r=null!==r?r:(0,n.default)({},e),t[s]!==f?r[s]=t[s]:delete r[s])}return null!==r?r:e}}},function(e,t,r){"use strict";var n="client:";e.exports={generateClientID:function(e,t,r){var i=e+":"+t;return null!=r&&(i+=":"+r),0!==i.indexOf(n)&&(i=n+i),i},isClientID:function(e){return 0===e.indexOf(n)}}},function(e,t,r){"use strict";var n=r(59),i=function(e,t){},a=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return o(e)?s(e):n(e)?u(e):l(e)},e.fromLegacy=function(t){return e.create(function(e){var r=t({onNext:e.next,onError:e.error,onCompleted:e.complete});return o(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 n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})})},t.finally=function(t){var r=this;return e.create(function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}})},t.ifEmpty=function(t){var r=this;return e.create(function(e){var n=!1,i=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():i=t.subscribe(e)}});return function(){i.unsubscribe()}})},t.subscribe=function(e){return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;var u=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(u)}catch(e){u.error(e,!0)}0;n&&o();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 i=[];function a(e){this._sub=e,i.push(e)}function o(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach(function(e){return e.unsubscribe()}),i.length=0}})},t.poll=function(t){var r=this;return e.create(function(e){var n,i;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n;e.subscribe({start:function(e){n=e},next:function(e){t(e),n.unsubscribe()},error:r,complete:t})})},e}();function o(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}function s(e){return e instanceof a?e:a.create(function(t){return e.subscribe(t)})}function u(e){return a.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)})}function l(e){return a.create(function(t){t.next(e),t.complete()})}e.exports=a},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},i=0;i<r.length;i++)n[r[i]]=e(t[r[i]]);return n}},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){var n=r(49),i=r(50),a=r(51);e.exports=function(e){return n(e)||i(e)||a()}},function(e,t,r){"use strict";var n=r(16),i=n.EXISTENT,a=n.NONEXISTENT,o=n.UNKNOWN,s=function(){function e(e){this._records=e||{}}var t=e.prototype;return t.clear=function(){this._records={}},t.delete=function(e){this._records[e]=null},t.get=function(e){return this._records[e]},t.getRecordIDs=function(){return Object.keys(this._records)},t.getStatus=function(e){return this._records.hasOwnProperty(e)?null==this._records[e]?a:i:o},t.has=function(e){return this._records.hasOwnProperty(e)},t.load=function(e,t){t(null,this.get(e))},t.remove=function(e){delete this._records[e]},t.set=function(e,t){this._records[e]=t},t.size=function(){return Object.keys(this._records).length},t.toJSON=function(){return this._records},e}();e.exports=s},function(e,t,r){"use strict";e.exports={MERGE_FETCH_AND_FRAGMENT_VARS:!1,PREFER_FRAGMENT_OWNER_OVER_CONTEXT:!1,ENABLE_INCREMENTAL_DELIVERY:!1,INCREMENTAL_DELIVERY_VARIABLE_NAME:"RELAY_INCREMENTAL_DELIVERY"}},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=r(18),i=(r(3),Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE",FIELDS_CHANGE:"FIELDS_CHANGE",REQUIRED_CHILDREN:"REQUIRED_CHILDREN"})),a=Object.freeze({APPEND:"append",IGNORE:"ignore",PREPEND:"prepend",REFETCH:"refetch",REMOVE:"remove"});function o(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:i,RangeOperations:a,convert:function(e,t,r,i){var a=r?[r]:[],s=i?[i]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=o(t);return n?function(e,t){var i=e.getRootField(n);if(i){var a=i.getValue(r),o=Array.isArray(a)?a:[a];o.forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null}(e,t);r&&(a.push(r),s.push(r));break;case"RANGE_ADD":var i=function(e,t){var r=e.parentID,i=e.connectionInfo,a=e.edgeName;if(!r)return null;var s=o(t);return i&&s?function(e,t){var o=e.get(r);if(o){var u=e.getRootField(s);if(u){var l=u.getLinkedRecord(a),c=!0,d=!1,f=void 0;try{for(var p,h=i[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var _=p.value;if(l){var v=n.getConnection(o,_.key,_.filters);if(v){var g=n.buildConnectionEdge(e,v,l);if(g)switch(_.rangeBehavior){case"append":n.insertEdgeAfter(v,g);break;case"ignore":break;case"prepend":n.insertEdgeBefore(v,g)}}}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}}}}:null}(e,t);i&&(a.push(i),s.push(i));break;case"RANGE_DELETE":var u=function(e,t){var r=e.parentID,i=e.connectionKeys,a=e.pathToConnection,s=e.deletedIDFieldName;if(!r)return null;var u=o(t);return u?function(e,t){if(t){var o=[],l=t[u];if(l&&Array.isArray(s)){var c=!0,d=!1,f=void 0;try{for(var p,h=s[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var _=p.value;l&&"object"==typeof l&&(l=l[_])}}catch(e){d=!0,f=e}finally{try{c||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&&o.push(e.id)}):l&&l.id&&"string"==typeof l.id&&o.push(l.id)}else l&&"string"==typeof s&&"object"==typeof l&&("string"==typeof(l=l[s])?o.push(l):Array.isArray(l)&&l.forEach(function(e){"string"==typeof e&&o.push(e)}));!function(e,t,r,i,a){var o=i.get(e);if(o&&!(r.length<2)){for(var s=o,u=1;u<r.length-1;u++)s&&(s=s.getLinkedRecord(r[u]));if(t&&s){var l=!0,c=!1,d=void 0;try{for(var f,p=function(){var e=f.value,t=n.getConnection(s,e.key,e.filters);t&&a.forEach(function(e){n.deleteNode(t,e)})},h=t[Symbol.iterator]();!(l=(f=h.next()).done);l=!0)p()}catch(e){c=!0,d=e}finally{try{l||null==h.return||h.return()}finally{if(c)throw d}}}}}(r,i,a,e,o)}}:null}(e,t);u&&(a.push(u),s.push(u))}}),{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,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(0);e.exports={getFragmentVariables:function(e,t,r){var a;return e.argumentDefinitions.forEach(function(e){if(!r.hasOwnProperty(e.name))switch(a=a||(0,n.default)({},r),e.kind){case"LocalArgument":a[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){a[e.name]=void 0;break}a[e.name]=t[e.name];break;default:i(!1)}}),a||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach(function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n}),r}}},function(e,t,r){"use strict";var n=r(26),i=r(19),a=r(0),o=(r(3),r(7).generateClientID),s="connection",u="__connection_next_edge_index";function l(e,t,r){if(null==r)return r;var i=n.get().EDGES,s=t.getValue(u);"number"!=typeof s&&a(!1);var l=o(t.getDataID(),i,s),c=e.create(l,r.getType());return c.copyFieldsFrom(r),t.setValue(s+1,u),c}function c(e,t,r){for(var i=n.get().NODE,a=0;a<e.length;a++){var o=e[a];if(o){var s=o.getLinkedRecord(i),u=s&&s.getValue("id");if(u){if(r.has(u))continue;r.add(u)}t.push(o)}}}e.exports={buildConnectionEdge:l,createEdge:function(e,t,r,i){var a=n.get().NODE,s=o(t.getDataID(),r.getDataID()),u=e.get(s);return u||(u=e.create(s,i)),u.setLinkedRecord(r,a),u},deleteNode:function(e,t){var r=n.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var s,u=0;u<o.length;u++){var l=o[u],c=l&&l.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=o.slice(0,u)):void 0!==s&&s.push(l)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i(s,t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=s.concat(t);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];u.push(d),null!=d&&r===d.getValue(a)&&(u.push(t),l=!0)}l||u.push(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},insertEdgeBefore:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=[t].concat(s);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];null!=d&&r===d.getValue(a)&&(u.push(t),l=!0),u.push(d)}l||u.unshift(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),a=i.EDGES,s=i.END_CURSOR,d=i.HAS_NEXT_PAGE,f=i.HAS_PREV_PAGE,p=i.PAGE_INFO,h=i.PAGE_INFO_TYPE,_=i.START_CURSOR,v=r.getLinkedRecord(t.fieldKey),g=v&&v.getLinkedRecord(p);if(v){var m=r.getLinkedRecord(t.handleKey),b=m&&m.getLinkedRecord(p);if(m){var y=m,E=v.getLinkedRecords(a);E&&(E=E.map(function(t){return l(e,y,t)}));var R=y.getLinkedRecords(a),S=y.getLinkedRecord(p);y.copyFieldsFrom(v),R&&y.setLinkedRecords(R,a),S&&y.setLinkedRecord(S,p);var k=[],D=t.args;if(R&&E)if(null!=D.after){if(!b||D.after!==b.getValue(s))return;var I=new Set;c(R,k,I),c(E,k,I)}else if(null!=D.before){if(!b||D.before!==b.getValue(_))return;var O=new Set;c(E,k,O),c(R,k,O)}else k=E;else k=E||R;if(null!=k&&k!==R&&y.setLinkedRecords(k,a),b&&g)if(null==D.after&&null==D.before)b.copyFieldsFrom(g);else if(null!=D.before||null==D.after&&D.last){b.setValue(!!g.getValue(f),f);var L=g.getValue(_);"string"==typeof L&&b.setValue(L,_)}else if(null!=D.after||null==D.before&&D.first){b.setValue(!!g.getValue(d),d);var F=g.getValue(s);"string"==typeof F&&b.setValue(F,s)}}else{var N=e.create(o(r.getDataID(),t.handleKey),v.getType());N.setValue(0,u),N.copyFieldsFrom(v);var P=v.getLinkedRecords(a);P&&(P=P.map(function(t){return l(e,N,t)}),N.setLinkedRecords(P,a)),r.setLinkedRecord(N,t.handleKey),(b=e.create(o(N.getDataID(),p),h)).setValue(!1,d),b.setValue(!1,f),b.setValue(null,s),b.setValue(null,_),g&&b.copyFieldsFrom(g),N.setLinkedRecord(b,p)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(0),i=r(27).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(47),i=(r(3),r(31)),a=i.getFragment,o=i.getPaginationFragment,s=i.getRefetchableFragment,u=i.getRequest,l=i.isFragment,c=i.isRequest,d=r(48).createOperationDescriptor,f=r(30),p=f.areEqualSelectors,h=f.getDataIDsFromFragment,_=f.getDataIDsFromObject,v=f.getSingularSelector,g=f.getPluralSelector,m=f.getSelector,b=f.getSelectorsFromObject,y=f.getVariablesFromSingularFragment,E=f.getVariablesFromPluralFragment,R=f.getVariablesFromFragment,S=f.getVariablesFromObject;e.exports={areEqualSelectors:p,createFragmentSpecResolver:function(e,t,r,i,a){return new n(e,r,i,a)},createOperationDescriptor:d,getDataIDsFromFragment:h,getDataIDsFromObject:_,getFragment:a,getPaginationFragment:o,getRefetchableFragment:s,getRequest:u,getSingularSelector:v,getPluralSelector:g,getSelector:m,getSelectorsFromObject:b,getVariablesFromSingularFragment:y,getVariablesFromPluralFragment:E,getVariablesFromFragment:R,getVariablesFromObject:S,isFragment:l,isRequest:c}},function(e,t,r){"use strict";var n=r(0),i=r(29),a=r(1).FRAGMENT_OWNER_KEY;function o(e,t){var r;return null==t?null:("object"!=typeof t&&n(!1),null!==(r=t[a])&&void 0!==r?r:null)}function s(e,t){return Array.isArray(t)?function(e,t){return t.map(function(e){return o(0,e)})}(0,t):o(0,t)}e.exports={getFragmentOwner:s,getFragmentOwners:function(e,t){return i(e,function(e,r){return s(0,t[r])})}}},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)}),t}},function(e,t,r){"use strict";var n=r(12),i=r(6),a=r(39),o=r(1),s=o.ROOT_ID,u=o.ROOT_TYPE;e.exports=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},l=new n;l.set(s,i.create(s,u));var c=a.normalize(l,e,t,o);return{errors:r,fieldPayloads:c.fieldPayloads,incrementalPlaceholders:c.incrementalPlaceholders,moduleImportPayloads:c.moduleImportPayloads,source:l}}},function(e,t,r){"use strict";var n=r(56),i=r(57),a={"*":[]},o={"*":[]},s={},u={stop:n},l=function(e){return"@"!==e.charAt(0)},c={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=c.instrument(t[r],e[r]))},instrument:function(e,t){if(!l(e))return t.attachHandler=n,t.detachHandler=n,t;a.hasOwnProperty(e)||(a[e]=[]);var r=a["*"],o=a[e],u=[],c=[],d=function(){var n;if(0===o.length&&0===u.length&&0===r.length)n=t.apply(this,arguments);else if(c.push([r.length,o.length,u.length,this,arguments,s]),function n(){var i=c[c.length-1];i[0]?(i[0]--,r[i[0]](e,n)):i[1]?(i[1]--,o[i[1]](e,n)):i[2]?(i[2]--,u[i[2]](e,n)):i[5]=t.apply(i[3],i[4])}(),(n=c.pop()[5])===s)throw new Error("RelayProfiler: Handler did not invoke original function.");return n};return d.attachHandler=function(e){u.push(e)},d.detachHandler=function(e){i(u,e)},d.displayName="(instrumented "+e+")",d},attachAggregateHandler:function(e,t){l(e)&&(a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t))},detachAggregateHandler:function(e,t){l(e)&&a.hasOwnProperty(e)&&i(a[e],t)},profile:function(e,t){var r=o["*"].length>0,n=o.hasOwnProperty(e);if(n||r){for(var i,a=n&&r?o[e].concat(o["*"]):n?o[e]:o["*"],s=a.length-1;s>=0;s--){var l=(0,a[s])(e,t);(i=i||[]).unshift(l)}return{stop:function(e){i&&i.forEach(function(t){return t(e)})}}}return u},attachProfileHandler:function(e,t){l(e)&&(o.hasOwnProperty(e)||(o[e]=[]),o[e].push(t))},detachProfileHandler:function(e,t){l(e)&&o.hasOwnProperty(e)&&i(o[e],t)}};e.exports=c},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n=r(2)(r(10)),i={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},a={find:!0,first:!0,last:!0},o={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){o=e},get:function(){return o},isConnectionCall:function(e){return i.hasOwnProperty(e.name)},hasRangeCalls:function(e){return e.some(function(e){return a.hasOwnProperty(e.name)})},getDefaultPageInfo:function(){var e;return e={},(0,n.default)(e,o.END_CURSOR,null),(0,n.default)(e,o.HAS_NEXT_PAGE,!1),(0,n.default)(e,o.HAS_PREV_PAGE,!1),(0,n.default)(e,o.START_CURSOR,null),e}};e.exports=s},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(13),i=r(14),a=r(0),o=(r(3),r(17).getFragmentVariables),s=r(1),u=s.FRAGMENT_OWNER_KEY,l=s.FRAGMENTS_KEY,c=s.ID_KEY;function d(e,t,r,n){("object"!=typeof r||null===r||Array.isArray(r))&&a(!1);var i=r[c],s=r[l];if("string"==typeof i&&"object"==typeof s&&null!==s&&"object"==typeof s[t.name]&&null!==s[t.name]){var d,f,p=s[t.name];if(null!=n&&"object"==typeof n){var h=n.variables;return{owner:n,selector:{dataID:i,node:t,variables:o(t,h,p)}}}return{owner:null!==(d=null!==(f=n)&&void 0!==f?f:r[u])&&void 0!==d?d:null,selector:{dataID:i,node:t,variables:o(t,e,p)}}}return null}function f(e,t,r,n){var i=null;return r.forEach(function(r,a){var o=null!=n?n[a]:null,s=null!=r?d(e,t,r,o):null;null!=s&&(i=i||[]).push(s)}),i}function p(e,t,r,n){var i;return null==r?i=r:t.metadata&&!0===t.metadata.plural?(Array.isArray(r)||a(!1),void 0!==n?(Array.isArray(n)||a(!1),i=f(e,t,r,n)):i=f(e,t,r)):(Array.isArray(r)&&a(!1),null!=n?(Array.isArray(n)&&a(!1),i=d(e,t,r,n)):i=d(e,t,r)),i}function h(e,t){var r;return null==t?r=t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||a(!1),r=function(e,t){var r;return t.forEach(function(t){var n=null!=t?_(e,t):null;null!=n&&(r=r||[]).push(n)}),r||null}(e,t)):(Array.isArray(t)&&a(!1),r=_(e,t)),r}function _(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&a(!1);var r=t[c];return"string"==typeof r?r:null}function v(e,t,r,n){var i;return null==r?{}:!0===(null===(i=t.metadata)||void 0===i?void 0:i.plural)?(Array.isArray(r)||a(!1),void 0!==n?(Array.isArray(n)||a(!1),m(e,t,r,n)):m(e,t,r)):(Array.isArray(r)&&a(!1),void 0!==n?(Array.isArray(n)&&a(!1),g(e,t,r,n)||{}):g(e,t,r)||{})}function g(e,t,r,n){var i=d(e,t,r,n);return i?i.selector.variables:null}function m(e,t,r,n){var i={};return r.forEach(function(r,a){if(null!=r){var o=null!=n?n[a]:null,s=g(e,t,r,o);s&&Object.assign(i,s)}}),i}e.exports={areEqualSelectors:function(e,t){var r=i(e.selector.variables,t.selector.variables),a=e.selector.dataID===t.selector.dataID&&e.selector.node===t.selector.node&&r;return n.PREFER_FRAGMENT_OWNER_OVER_CONTEXT?a&&e.owner===t.owner:a},getDataIDsFromFragment:h,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=h(i,a)}return r},getSingularSelector:d,getPluralSelector:f,getSelector:p,getSelectorsFromObject:function(e,t,r,n){var i={};for(var o in t)if(t.hasOwnProperty(o)){var s=t[o],u=r[o];if(null!=n){n.hasOwnProperty(o)||a(!1);var l=n[o];i[o]=p(e,s,u,l)}else i[o]=p(e,s,u)}return i},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,t,r,n){var i={};for(var o in t)if(t.hasOwnProperty(o)){var s=t[o],u=r[o];if(null!=n){n.hasOwnProperty(o)||a(!1);var l=v(e,s,u,n[o]);Object.assign(i,l)}else{var c=v(e,s,u);Object.assign(i,c)}}return i}}},function(e,t,r){"use strict";var n=r(4),i=r(0);function a(e){var t="function"==typeof e?e:"function"==typeof e.modern?e.modern:null;if(null===t)return e;var r=t();return r.default?r.default:r}function o(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function u(e){var t=a(e);return o(t)||i(!1),t}e.exports={getFragment:u,getPaginationFragment:function(e){var t,r=u(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null===n||void 0===n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=u(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return s(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:o,isRequest:s}},function(e,t,r){"use strict";var n=r(18),i=r(33),a=r(0);e.exports=function(e){switch(e){case"connection":return n;case"viewer":return i}a(!1)}},function(e,t,r){"use strict";var n=(0,r(7).generateClientID)(r(1).ROOT_ID,"viewer"),i="Viewer";e.exports={VIEWER_ID:n,update:function(e,t){var r=e.get(t.dataID);if(r){var a=r.getLinkedRecord(t.fieldKey);if(a){if(a.getDataID()===n)return r.setValue(null,t.fieldKey),void r.setLinkedRecord(a,t.handleKey);var o=e.get(n)||e.create(n,i);o.copyFieldsFrom(a),r.setValue(null,t.fieldKey),r.setLinkedRecord(o,t.handleKey),e.getRoot().setLinkedRecord(o,t.handleKey)}}}}},function(e,t,r){"use strict";var n=r(2)(r(11)),i=r(52),a={create:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return o("mustfix",e,t,n)},createWarning:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return o("warn",e,t,n)}};function o(e,t,r,a){var o=new Error(i.apply(void 0,[r].concat((0,n.default)(a))));return o.name=t,o.type=e,o.framesToPop=2,o}e.exports=a},function(e,t,r){"use strict";var n=r(4),i=r(36),a=r(37),o=r(1),s=r(40),u=r(0),l=r(16),c=l.EXISTENT,d=l.UNKNOWN,f=n.CONDITION,p=n.CLIENT_EXTENSION,h=n.DEFER,_=n.FRAGMENT_SPREAD,v=n.INLINE_FRAGMENT,g=n.LINKED_FIELD,m=n.LINKED_HANDLE,b=n.MODULE_IMPORT,y=n.SCALAR_FIELD,E=n.SCALAR_HANDLE,R=n.STREAM,S=o.getStorageKey,k=o.getArgumentValues,D=o.MODULE_OPERATION_KEY;var I=function(){function e(e,t,r,n,o){var s;this._operationLoader=null!==(s=o)&&void 0!==s?s:null,this._handlers=n,this._mutator=new i(e,t),this._recordWasMissing=!1,this._source=e,this._variables=r,this._recordSourceProxy=new a(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)||u(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?k(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,i=r.record,a=!0,o=!1,s=void 0;try{for(var u,l=this._handlers[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;if("scalar"===c.kind){var d=c.handle(e,i,n,this._recordSourceProxy);if(void 0!==d)return d}}}catch(e){o=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw s}}this._handleMissing()},t._handleMissingLinkField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,i=r.record,a=!0,o=!1,s=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,n,this._recordSourceProxy);if(null!=f&&this._mutator.getStatus(f)===c)return f}}}catch(e){o=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw s}}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r=this,n=this._getDataForHandlers(e,t),i=n.args,a=n.record,o=!0,s=!1,u=void 0;try{for(var l,d=this._handlers[Symbol.iterator]();!(o=(l=d.next()).done);o=!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&&r._mutator.getStatus(e)===c})}}}catch(e){s=!0,u=e}finally{try{o||null==d.return||d.return()}finally{if(s)throw u}}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);r===d&&this._handleMissing(),r===c&&this._traverseSelections(e.selections,t)},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case y:r._checkScalar(n,t);break;case g:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case f:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case v:var i=r._mutator.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t);break;case m:var a=s(n,e,r._variables);a.plural?r._checkPluralLink(a,t):r._checkLink(a,t);break;case b:r._checkModuleImport(n,t);break;case h:case R:r._traverseSelections(n.selections,t);break;case E:case _:u(!1);break;case p:var o=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=o;break;default:u(!1)}})},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&u(!1);var n=this._mutator.getValue(t,D);if(null!=n){var i=r.get(n);null!=i?this._traverse(i,t):this._handleMissing()}else void 0===n&&this._handleMissing()},t._checkScalar=function(e,t){var r=S(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=S(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&null!=(n=this._handleMissingLinkField(e,t))&&this._mutator.setLinkedRecordID(t,r,n),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=S(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&null!=(i=this._handleMissingPluralLinkField(e,t))&&this._mutator.setLinkedRecordIDs(t,n,i),i&&i.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={check:function(e,t,r,n,i){var a=r.dataID,o=r.node,s=r.variables;return new I(e,t,s,n,i).check(o,a)}}},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(6),a=r(0),o=r(16).EXISTENT,s=r(1),u=s.UNPUBLISH_FIELD_SENTINEL,l=s.UNPUBLISH_RECORD_SENTINEL,c=function(){function e(e,t,r){this._backup=r,this._base=e,this._sink=t,this.__sources=[t,e]}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);if(void 0!==r){if(null===r)return null;if(r===l)return;return null!=t?i.update(t,r):i.clone(r)}return null==t?t:i.clone(t)},t._createBackupRecord=function(e){var t=this._backup;if(t&&!t.has(e)){var r=this._base.get(e);null!=r?t.set(e,r):null===r&&t.delete(e)}},t._setSentinelFieldsInBackupRecord=function(e,t){var r=this._backup;if(r){var i=r.get(e);if(i&&i!==l){var a=null;for(var o in t)t.hasOwnProperty(o)&&(o in i||((a=a||(0,n.default)({},i))[o]=u));r.set(e,a||i)}}},t._setSentinelFieldInBackupRecord=function(e,t){var r=this._backup;if(r){var a=r.get(e);if(a&&a!==l&&!(t in a)){var o=(0,n.default)({},a);i.setValue(o,t,u),r.set(e,o)}}},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||a(!1),t=i.create(e,i.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),n=this._base.get(e);r||n||a(!1),this._createBackupRecord(t);var o=this._getSinkRecord(t);n&&i.copyFields(n,o),r&&i.copyFields(r,o),this._setSentinelFieldsInBackupRecord(t,o)},t.copyFieldsFromRecord=function(e,t){this._createBackupRecord(t);var r=this._getSinkRecord(t);i.copyFields(e,r),this._setSentinelFieldsInBackupRecord(t,r)},t.create=function(e,t){(this._base.getStatus(e)===o||this._sink.getStatus(e)===o)&&a(!1),this._backup&&this._backup.set(e,l);var r=i.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._createBackupRecord(e),this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return i.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=i.getValue(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setValue=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);i.setValue(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=i.getLinkedRecordID(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordID=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);i.setLinkedRecordID(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=i.getLinkedRecordIDs(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordIDs=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);i.setLinkedRecordIDs(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},e}();e.exports=c},function(e,t,r){"use strict";var n=r(6),i=r(55),a=r(38),o=r(0),s=r(23),u=r(16),l=u.EXISTENT,c=u.NONEXISTENT,d=r(1),f=d.ROOT_ID,p=d.ROOT_TYPE,h=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 r=this;e.getRecordIDs().forEach(function(t){var i=e.getStatus(t);if(i===l){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==l&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else i===c&&r.delete(t)}),t&&t.length&&t.forEach(function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||o(!1),t.update(r,e)})},t.commitPayload=function(e,t){if(!t)return new a(this,e.fragment);var r=s(e.root,t),n=r.source,i=r.fieldPayloads;return this.publishSource(n,i),new a(this,e.fragment)},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||o(!1),r},t.delete=function(e){e===f&&o(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===l?new i(this,this.__mutator,e):t===c?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(f);return e||(e=this.create(f,p)),e&&e.getType()===p||o(!1),e},e}();e.exports=h},function(e,t,r){"use strict";var n=r(0),i=r(1).getStorageKey,a=function(){function e(e,t){this.__recordSource=e,this._readSelector=t}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t._getRootField=function(e,t,r){var i=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t});return i&&"LinkedField"===i.kind||n(!1),i.plural!==r&&n(!1),i},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=i(t,this._readSelector.variables);return this.getRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=i(t,this._readSelector.variables);return this.getRoot().getLinkedRecords(r)},e}();e.exports=a},function(e,t,r){"use strict";var n=r(2)(r(11)),i=r(6),a=r(24),o=r(0),s=(r(3),r(4)),u=s.CONDITION,l=s.CLIENT_EXTENSION,c=s.DEFER,d=s.INLINE_FRAGMENT,f=s.LINKED_FIELD,p=s.LINKED_HANDLE,h=s.MODULE_IMPORT,_=s.SCALAR_FIELD,v=s.SCALAR_HANDLE,g=s.STREAM,m=r(7),b=m.generateClientID,y=(m.isClientID,r(1)),E=y.getArgumentValues,R=y.getHandleStorageKey,S=y.getStorageKey,k=y.MODULE_OPERATION_KEY,D=y.TYPENAME_KEY;function I(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},i=t.dataID,a=t.node,o=t.variables;return new O(e,o,n).normalizeResponse(a,i,r)}var O=function(){function e(e,t,r){this._handleFieldPayloads=[],this._handleStrippedNulls=!0===r.handleStrippedNulls,this._incrementalPlaceholders=[],this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||o(!1),this._traverseSelections(e,n,r),{incrementalPlaceholders:this._incrementalPlaceholders,fieldPayloads:this._handleFieldPayloads,moduleImportPayloads:this._moduleImportPayloads}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||o(!1),this._variables[e]},t._getRecordType=function(e){var t=e[D];return null==t&&o(!1),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var a=e.selections[n];switch(a.kind){case _:case f:this._normalizeField(e,a,t,r);break;case u:this._getVariableValue(a.condition)===a.passingValue&&this._traverseSelections(a,t,r);break;case d:i.getType(t)===a.type&&this._traverseSelections(a,t,r);break;case p:case v:var s=a.args?E(a.args,this._variables):{},m=S(a,this._variables),b=R(a,this._variables);this._handleFieldPayloads.push({args:s,dataID:i.getDataID(t),fieldKey:m,handle:a.handle,handleKey:b});break;case h:this._normalizeModuleImport(e,a,t,r);break;case c:this._normalizeDefer(a,t,r);break;case g:this._normalizeStream(a,t,r);break;case l:var y=this._handleStrippedNulls;this._handleStrippedNulls=!1,this._traverseSelections(a,t,r),this._handleStrippedNulls=y;break;default:o(!1)}}},t._normalizeDefer=function(e,t,r){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",label:e.label,path:(0,n.default)(this._path),selector:{dataID:i.getDataID(t),node:e,variables:this._variables},typeName:i.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,n.default)(this._path),parentID:i.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,a){"object"==typeof a&&a||o(!1);var s=this._getRecordType(a),u=a[k];null!=u&&this._moduleImportPayloads.push({data:a,dataID:i.getDataID(r),operationReference:u,path:(0,n.default)(this._path),typeName:s,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||o(!1);var a=t.alias||t.name,s=S(t,this._variables),u=n[a];if(null!=u)t.kind===_?i.setValue(r,s,u):t.kind===f?(this._path.push(a),t.plural?this._normalizePluralLink(t,r,s,u):this._normalizeLink(t,r,s,u),this._path.pop()):o(!1);else{if(void 0===u&&!this._handleStrippedNulls)return;i.setValue(r,s,null)}},t._normalizeLink=function(e,t,r,n){"object"==typeof n&&n||o(!1);var a=n.id||i.getLinkedRecordID(t,r)||b(i.getDataID(t),r);"string"!=typeof a&&o(!1),i.setLinkedRecordID(t,r,a);var s=this._recordSource.get(a);if(s)0;else{var u=e.concreteType||this._getRecordType(n);s=i.create(a,u),this._recordSource.set(a,s)}this._traverseSelections(e,s,n)},t._normalizePluralLink=function(e,t,r,n){var a=this;Array.isArray(n)||o(!1);var s=i.getLinkedRecordIDs(t,r),u=[];n.forEach(function(n,l){if(null!=n){a._path.push(String(l)),"object"!=typeof n&&o(!1);var c=n.id||s&&s[l]||b(i.getDataID(t),r,l);"string"!=typeof c&&o(!1),u.push(c);var d=a._recordSource.get(c);if(d)0;else{var f=e.concreteType||a._getRecordType(n);d=i.create(c,f),a._recordSource.set(c,d)}a._traverseSelections(e,d,n),a._path.pop()}else u.push(n)}),i.setLinkedRecordIDs(t,r,u)},t._validateRecordType=function(e,t,r){"LinkedField"===t.kind&&t.concreteType||this._getRecordType(r)},e}();I=a.instrument("RelayResponseNormalizer.normalize",I),e.exports={normalize:I}},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(14),a=r(0),o=r(4).LINKED_FIELD,s=r(1).getHandleStorageKey;e.exports=function(e,t,r){var u=t.find(function(t){return t.kind===o&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)});u&&u.kind===o||a(!1);var l=s(e,r);return(0,n.default)({},u,{args:null,name:l,storageKey:l})}},function(e,t,r){"use strict";var n=r(6),i=r(0),a=r(4),o=a.CONDITION,s=a.CLIENT_EXTENSION,u=a.FRAGMENT_SPREAD,l=a.INLINE_FRAGMENT,c=a.LINKED_FIELD,d=a.MODULE_IMPORT,f=a.SCALAR_FIELD,p=r(1),h=p.FRAGMENTS_KEY,_=p.FRAGMENT_OWNER_KEY,v=p.FRAGMENT_PROP_NAME_KEY,g=p.ID_KEY,m=p.MODULE_COMPONENT_KEY,b=p.getArgumentValues,y=p.getStorageKey;var E=function(){function e(e,t,r){this._recordSource=e,this._seenRecords={},this._isMissingData=!1,this._variables=t,this._owner=r}var t=e.prototype;return t.read=function(e,t){return{data:this._traverse(e,t,null),dataID:t,node:e,seenRecords:this._seenRecords,variables:this._variables,isMissingData:this._isMissingData,owner:this._owner}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i),i},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||i(!1),this._variables[e]},t._traverseSelections=function(e,t,r){for(var a=0;a<e.length;a++){var p=e[a];switch(p.kind){case f:this._readScalar(p,t,r);break;case c:p.plural?this._readPluralLink(p,t,r):this._readLink(p,t,r);break;case o:this._getVariableValue(p.condition)===p.passingValue&&this._traverseSelections(p.selections,t,r);break;case l:var h=n.getType(t);null!=h&&h===p.type&&this._traverseSelections(p.selections,t,r);break;case u:this._createFragmentPointer(p,t,r);break;case d:this._readModuleImport(p,t,r);break;case s:var _=this._isMissingData;this._traverseSelections(p.selections,t,r),this._isMissingData=_;break;default:i(!1)}}},t._readScalar=function(e,t,r){var i,a=null!==(i=e.alias)&&void 0!==i?i:e.name,o=y(e,this._variables),s=n.getValue(t,o);void 0===s&&(this._isMissingData=!0),r[a]=s},t._readLink=function(e,t,r){var a,o=null!==(a=e.alias)&&void 0!==a?a:e.name,s=y(e,this._variables),u=n.getLinkedRecordID(t,s);if(null==u)return r[o]=u,void(void 0===u&&(this._isMissingData=!0));var l=r[o];null!=l&&"object"!=typeof l&&i(!1),r[o]=this._traverse(e,u,l)},t._readPluralLink=function(e,t,r){var a,o=this,s=null!==(a=e.alias)&&void 0!==a?a:e.name,u=y(e,this._variables),l=n.getLinkedRecordIDs(t,u);if(null==l)return r[s]=l,void(void 0===l&&(this._isMissingData=!0));var c=r[s];null==c||Array.isArray(c)||i(!1);var d=c||[];l.forEach(function(t,r){if(null==t)return void 0===t&&(o._isMissingData=!0),void(d[r]=t);var n=d[r];null!=n&&"object"!=typeof n&&i(!1),d[r]=o._traverse(e,t,n)}),r[s]=d},t._readModuleImport=function(e,t,r){var i=n.getValue(t,m);null!=i?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[v]=e.fragmentPropName,r[m]=i):void 0===i&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var a=r[h];null==a&&(a=r[h]={}),"object"==typeof a&&a||i(!1),null==r[g]&&(r[g]=n.getDataID(t)),a[e.name]=e.args?b(e.args,this._variables):{},r[_]=this._owner},e}();e.exports={read:function(e,t,r){var n,i=t.dataID,a=t.node,o=t.variables;return new E(e,o,null!==(n=r)&&void 0!==n?n:null).read(a,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,i=Array.isArray(t)?t:null,a=Array.isArray(r)?r:null;if(i&&a)n=a.reduce(function(t,r,n){var o=e(i[n],r);return o!==a[n]&&(a[n]=o),t&&o===i[n]},!0)&&i.length===a.length;else if(!i&&!a){var o=t,s=r,u=Object.keys(o),l=Object.keys(s);n=l.reduce(function(t,r){var n=e(o[r],s[r]);return n!==s[r]&&(s[r]=n),t&&n===o[r]},!0)&&u.length===l.length}return n?t:r}},function(e,t,r){"use strict";var n=r(8);e.exports={convertFetch:function(e){return function(t,r,i,a){var o=e(t,r,i,a);return o instanceof Error?n.create(function(e){return e.error(o)}):n.from(o)}},convertSubscribe:function(e){return function(t,r,i){return n.fromLegacy(function(n){return e(t,r,i,n)})}}}},function(e,t,r){"use strict";var n=r(0),i=r(9);e.exports=function(e,t){var r=null!=e.id?e.id:e.text;return null==r&&n(!1),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(20),i=n.getDataIDsFromFragment,a=n.getVariablesFromFragment,o=r(21).getFragmentOwner,s=r(9);e.exports=function(e,t){var r,n,u,l=o(e,t),c=a({},e,t,l),d=i(e,t),f=Array.isArray(l)?l.map(function(e){var t,r;return null!==(t=null!==(r=null===e||void 0===e?void 0:e.node.params.id)&&void 0!==r?r:null===e||void 0===e?void 0:e.node.params.name)&&void 0!==t?t:""}):null!==(r=null!==(n=null===l||void 0===l?void 0:l.node.params.id)&&void 0!==n?n:null===l||void 0===l?void 0:l.node.params.name)&&void 0!==r?r:"",p=Array.isArray(l)?l.map(function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.variables)&&void 0!==t?t:null}):null!==(u=null===l||void 0===l?void 0:l.variables)&&void 0!==u?u:null;return"".concat(e.name,"-").concat(JSON.stringify(s({dataIDs:d,fragmentVariables:c,fragmentOwnerID:f,fragmentOwnerVariables:p})))}},function(e,t,r){"use strict";var n=r(4),i=r(17),a=r(18),o=r(26),s=r(20),u=r(15),l=r(27),c=r(32),d=r(34),f=r(13),p=r(12),h=r(53),_=r(21),v=r(31),g=r(62),m=r(66),b=r(67),y=r(8),E=r(24),R=r(68),S=r(1),k=r(33),D=r(69),I=r(70),O=r(71),L=r(73),F=r(74),N=r(22),P=r(75),A=r(77),T=r(45),w=r(78),x=r(19),M=r(44),C=r(25),U=r(28),j=r(42),V=r(79),K=r(9),G=r(7).generateClientID;e.exports={Environment:h,Network:m,Observable:y,QueryResponseCache:R,RecordSource:p,Store:g,areEqualSelectors:s.areEqualSelectors,createFragmentSpecResolver:s.createFragmentSpecResolver,createOperationDescriptor:s.createOperationDescriptor,getDataIDsFromFragment:s.getDataIDsFromFragment,getDataIDsFromObject:s.getDataIDsFromObject,getFragment:v.getFragment,getFragmentOwner:_.getFragmentOwner,getFragmentOwners:_.getFragmentOwners,getPaginationFragment:v.getPaginationFragment,getRefetchableFragment:v.getRefetchableFragment,getRequest:v.getRequest,getSingularSelector:s.getSingularSelector,getPluralSelector:s.getPluralSelector,getSelector:s.getSelector,getSelectorsFromObject:s.getSelectorsFromObject,getStorageKey:S.getStorageKey,getVariablesFromSingularFragment:s.getVariablesFromSingularFragment,getVariablesFromPluralFragment:s.getVariablesFromPluralFragment,getVariablesFromFragment:s.getVariablesFromFragment,getVariablesFromObject:s.getVariablesFromObject,graphql:v.graphql,MutationTypes:u.MutationTypes,RangeOperations:u.RangeOperations,DefaultHandlerProvider:c,ConnectionHandler:a,ViewerHandler:k,applyOptimisticMutation:D,commitLocalUpdate:I,commitMutation:O,fetchQuery:A,isRelayModernEnvironment:C,requestSubscription:V,ConnectionInterface:o,RelayProfiler:E,RelayConcreteNode:n,RelayError:d,RelayFeatureFlags:f,RelayNetworkLoggerTransaction:b,DEFAULT_HANDLE_KEY:l.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:S.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:S.FRAGMENT_OWNER_KEY,ID_KEY:S.ID_KEY,REF_KEY:S.REF_KEY,REFS_KEY:S.REFS_KEY,ROOT_ID:S.ROOT_ID,ROOT_TYPE:S.ROOT_TYPE,TYPENAME_KEY:S.TYPENAME_KEY,createRelayNetworkLogger:F,deepFreeze:N,generateClientID:G,getRelayHandleKey:x,isScalarAndEqual:U,recycleNodesInto:j,stableCopy:K,getFragmentIdentifier:T,getFragmentSpecIdentifier:w,getRequestParametersIdentifier:M,__internal:{createRelayContext:L,getModernOperationVariables:i.getOperationVariables,fetchQuery:P.fetchQuery,fetchQueryDeduped:P.fetchQueryDeduped,getPromiseForRequestInFlight:P.getPromiseForRequestInFlight,getObservableForRequestInFlight:P.getObservableForRequestInFlight}}},function(e,t,r){"use strict";var n=r(2),i=n(r(5)),a=n(r(10)),o=r(13),s=r(14),u=r(0),l=r(28),c=r(21).getFragmentOwners,d=r(30),f=d.areEqualSelectors,p=d.getSelectorsFromObject,h=r(1).ROOT_ID,_=function(){function e(e,t,r,n){var i=this;(0,a.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)&&m(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],a=t[r];if(n){var o=n.resolve();(e||o!==a)&&((e=e||(0,i.default)({},t))[r]=o)}else{var s=this._props[r],u=void 0!==s?s:null;!e&&l(u,a)||((e=e||(0,i.default)({},t))[r]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=o.PREFER_FRAGMENT_OWNER_OVER_CONTEXT?p({},this._fragments,e,c(this._fragments,e)):p(this._context.variables,this._fragments,e);for(var r in t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):Array.isArray(n)?null==i?i=new g(this._context.environment,n,this._onChange):(i instanceof g||u(!1),i.setSelectors(n)):null==i?i=new v(this._context.environment,n,this._onChange):(i instanceof v||u(!1),i.setSelector(n)),this._resolvers[r]=i}this._props=e,this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),v=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var i=e.lookup(t.selector,t.owner);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||!f(e,this._ownedSelector)){this.dispose();var t=this._environment.lookup(e.selector,e.owner);this._data=t.data,this._ownedSelector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){var r;if(o.PREFER_FRAGMENT_OWNER_OVER_CONTEXT){if(s(e,this._ownedSelector.selector.variables))return;r={owner:t?{fragment:{dataID:h,node:t.fragment,variables:e},node:t,root:{dataID:h,node:t.operation,variables:e},variables:e}:null,selector:(0,i.default)({},this._ownedSelector.selector,{variables:e})}}else r=(0,i.default)({},this._ownedSelector,{selector:(0,i.default)({},this._ownedSelector.selector,{variables:e})});this.setSelector(r)},e}(),g=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._stale=!0,n._callback()}),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelectors(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(m)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],i=this._resolvers[r].resolve();(e||i!==n)&&(e=e||t.slice(0,r)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.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 v(this._environment,e[t],this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach(function(r){return r.setVariables(e,t)}),this._stale=!0},e}();function m(e){e&&e.dispose()}e.exports=_},function(e,t,r){"use strict";var n=r(17).getOperationVariables,i=r(1).ROOT_ID;e.exports={createOperationDescriptor:function(e,t){var r=e.operation,a=n(r,t),o=i;return{fragment:{dataID:o,node:e.fragment,variables:a},node:e,root:{dataID:o,node:r,variables:a},variables:a}}}},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=i},function(e,t,r){"use strict";(function(t){var n=r(2)(r(5)),i=r(35),a=r(20),o=r(32),s=r(12),u=r(58),l=r(8),c=r(60),d=(r(0),r(23)),f=(r(3),function(){function e(e){var r,i,s=this;this.configName=e.configName;var u=e.handlerProvider?e.handlerProvider:o,l=e.operationLoader;this._operationLoader=l,this._network=e.network,this._publishQueue=null!==(r=e.publishQueue)&&void 0!==r?r:new c(e.store,u),this._scheduler=null!==(i=e.scheduler)&&void 0!==i?i:null,this._store=e.store,this.unstable_internal=(0,n.default)({},a,{getOperationTracker:function(){return s._operationTracker}}),this.__setNet=function(e){return s._network=e};var d=void 0!==t?t:"undefined"!=typeof window?window:void 0,f=d&&d.__RELAY_DEVTOOLS_HOOK__;f&&f.registerEnvironment(this),null!=e.missingFieldHandlers&&(this._missingFieldHandlers=e.missingFieldHandlers),null!=e.operationTracker&&(this._operationTracker=e.operationTracker)}var r=e.prototype;return r.getStore=function(){return this._store},r.getNetwork=function(){return this._network},r.applyUpdate=function(e){var t=this;return this._publishQueue.applyUpdate(e),this._publishQueue.run(),{dispose:function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}}},r.revertUpdate=function(e){this._publishQueue.revertUpdate(e),this._publishQueue.run()},r.replaceUpdate=function(e,t){this._publishQueue.revertUpdate(e),this._publishQueue.applyUpdate(t),this._publishQueue.run()},r.applyMutation=function(e){var t=e.operation,r=e.optimisticResponse,n=e.optimisticUpdater;return this.applyUpdate({operation:t,selectorStoreUpdater:n,response:r||null})},r.check=function(e){return null==this._missingFieldHandlers?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},r.commitPayload=function(e,t){var r=d(e.root,t);this._publishQueue.commitPayload(e,r),this._publishQueue.run()},r.commitUpdate=function(e){this._publishQueue.commitUpdate(e),this._publishQueue.run()},r.lookup=function(e,t){return this._store.lookup(e,t)},r.subscribe=function(e,t){return this._store.subscribe(e,t)},r.retain=function(e){return this._store.retain(e)},r._checkSelectorAndHandleMissingFields=function(e,t){var r=new s,n=i.check(this._store.getSource(),r,e,t,this._operationLoader);return r.size()>0&&(this._publishQueue.commitSource(r),this._publishQueue.run()),n},r.execute=function(e){var t=this,r=e.operation,n=e.cacheConfig,i=e.updater;return l.create(function(e){var a=t._network.execute(r.node.params,r.variables,n||{}),o=u.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:a,updater:i,operationTracker:t._operationTracker});return function(){return o.cancel()}})},r.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,i=e.optimisticUpdater,a=e.updater,o=e.uploadables;return l.create(function(e){var s,l;(n||i)&&(s={operation:r,selectorStoreUpdater:i,response:null!==(l=n)&&void 0!==l?l:null});var c=t._network.execute(r.node.params,r.variables,{force:!0},o),d=u.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:s,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:c,updater:a,operationTracker:t._operationTracker});return function(){return d.cancel()}})},r.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return l.create(function(e){var i=u.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:n});return function(){return i.cancel()}})},r.sendQuery=function(e){var t=e.cacheConfig,r=e.onCompleted,n=e.onError,i=e.onNext,a=e.operation;return this.execute({operation:a,cacheConfig:t}).subscribeLegacy({onNext:i,onError:n,onCompleted:r})},r.sendMutation=function(e){var t=e.onCompleted,r=e.onError,n=e.operation,i=e.optimisticResponse,a=e.optimisticUpdater,o=e.updater,s=e.uploadables;return this.executeMutation({operation:n,optimisticResponse:i,optimisticUpdater:a,updater:o,uploadables:s}).subscribeLegacy({onNext:function(e){t&&t(e.errors)},onError:r,onCompleted:t})},r.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},e}());f.prototype["@@RelayModernEnvironment"]=!0,e.exports=f}).call(this,r(54))},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=r(0),i=r(7).generateClientID,a=r(1).getStableStorageKey,o=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1);var i=a(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1);var o=a(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var o=a(e,r),s=i(this.getDataID(),o);n=this._source.create(s,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map(function(e){return null!=e?r._source.get(e):e})},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1);var i=a(t,r),o=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=o},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(2)(r(11)),i=r(34),a=r(13),o=r(12),s=r(6),u=r(8),l=r(39),c=r(0),d=r(7).generateClientID,f=r(1),p=f.ROOT_TYPE,h=f.TYPENAME_KEY,_=f.getStorageKey;var v=function(){function e(e){var t,r=this,n=e.operation,i=e.operationLoader,a=e.optimisticUpdate,o=e.publishQueue,s=e.scheduler,u=e.sink,l=e.source,c=e.updater,d=e.operationTracker;this._incrementalPlaceholders=new Map,this._nextSubscriptionId=0,this._operation=n,this._operationLoader=i,this._optimisticUpdate=null!==(t=a)&&void 0!==t?t:null,this._publishQueue=o,this._scheduler=s,this._sink=u,this._source=new Map,this._state="started",this._updater=c,this._subscriptions=new Map,this._operationTracker=d;var f=this._nextSubscriptionId++;if(l.subscribe({complete:function(){return r._complete(f)},error:function(e){return r._error(f,e)},next:function(e){try{r._next(f,e)}catch(e){u.error(e)}},start:function(e){return r._start(f,e)}}),null!=a){o.applyUpdate(a);var p=this._publishQueue.run();this._updateOperationTracker(p)}}var t=e.prototype;return t.cancel=function(){if("completed"!==this._state){this._state="completed",0!==this._subscriptions.size&&(this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions.clear());var e=this._optimisticUpdate;null!==e&&(this._optimisticUpdate=null,this._publishQueue.revertUpdate(e),this._publishQueue.run()),this._incrementalPlaceholders.clear(),this._completeOperationTracker()}},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;u.create(function(t){var n=r.schedule(function(){try{e(),t.complete()}catch(e){t.error(e)}});return function(){return r.cancel(n)}}).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(n,e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e,t){this.cancel(),this._sink.error(t)},t._start=function(e,t){this._subscriptions.set(e,t)},t._next=function(e,t){var r=this;this._schedule(function(){r._handleNext(t)})},t._handleNext=function(e){var t;if("completed"!==this._state){if(null==e.data){var r=e.errors,n=i.create("RelayNetwork","No data returned for operation `%s`, got error(s):\n%s\n\nSee the error `source` property for more information.",this._operation.node.params.name,r?r.map(function(e){return e.message}).join("\n"):"(No errors)");throw n.source={errors:r,operation:this._operation.node,variables:this._operation.variables},n}var a=e,o=!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic);if(o&&"started"!==this._state&&c(!1),this._state="loading",o)this._processOptimisticResponse(a);else{var s=e.path,u=e.label;null!=s||null!=u?"string"==typeof u&&Array.isArray(s)?this._processIncrementalResponse(u,s,a):c(!1):this._processResponse(a)}this._sink.next(e)}},t._processOptimisticResponse=function(e){null!==this._optimisticUpdate&&c(!1);var t=g(e,this._operation.root,p,[]),r=t.incrementalPlaceholders,n=t.moduleImportPayloads;(null!=r&&0!==r.length||null!=n&&0!==n.length)&&c(!1),this._optimisticUpdate={source:t.source,fieldPayloads:t.fieldPayloads},this._publishQueue.applyUpdate(this._optimisticUpdate);var i=this._publishQueue.run();this._updateOperationTracker(i)},t._processResponse=function(e){null!==this._optimisticUpdate&&(this._publishQueue.revertUpdate(this._optimisticUpdate),this._optimisticUpdate=null);var t=g(e,this._operation.root,p,[]);this._incrementalPlaceholders.clear(),this._source.clear(),this._processPayloadFollowups(t),this._publishQueue.commitPayload(this._operation,t,this._updater);var r=this._publishQueue.run();this._updateOperationTracker(r)},t._processPayloadFollowups=function(e){var t=this,r=e.incrementalPlaceholders,n=e.moduleImportPayloads;if(n&&0!==n.length){var i=this._operationLoader;i||c(!1),n.forEach(function(e){t._processModuleImportPayload(e,i)})}r&&0!==r.length&&(a.ENABLE_INCREMENTAL_DELIVERY||c(!1),r.forEach(function(r){t._processIncrementalPlaceholder(e,r)}))},t._processModuleImportPayload=function(e,t){var r=this,n=this._nextSubscriptionId++;u.from(new Promise(function(r,n){t.load(e.operationReference).then(r,n)})).map(function(t){null!=t&&r._schedule(function(){r._handleModuleImportPayload(e,t)})}).subscribe({complete:function(){return r._complete(n)},error:function(e){return r._error(n,e)},start:function(e){return r._start(n,e)}})},t._handleModuleImportPayload=function(e,t){var r={dataID:e.dataID,variables:e.variables,node:t},n=g({data:e.data},r,e.typeName,e.path);this._processPayloadFollowups(n),this._publishQueue.commitRelayPayload(n);var i=this._publishQueue.run();this._updateOperationTracker(i)},t._processIncrementalPlaceholder=function(e,t){var r,n,i=t.kind,a=t.label,o=t.path.map(String).join("."),s=this._incrementalPlaceholders.get(a);null==s?(s={kind:i,placeholdersByPath:new Map},this._incrementalPlaceholders.set(a,s)):s.kind!==i&&c(!1),s.placeholdersByPath.set(o,t),n="stream"===t.kind?t.parentID:t.selector.dataID;var u=e.source.get(n),l=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter(function(e){var t=d(e.dataID,e.fieldKey);return e.dataID===n||t===n});null!=u&&this._source.set(n,{record:u,fieldPayloads:l})},t._processIncrementalResponse=function(e,t,r){a.ENABLE_INCREMENTAL_DELIVERY||c(!1);var n=this._incrementalPlaceholders.get(e);if(null==n&&c(!1),"defer"===n.kind){var i=t.map(String).join("."),o=n.placeholdersByPath.get(i);null==o&&c(!1),"defer"!==o.kind&&c(!1),this._processDeferResponse(e,t,o,r)}else{var s=t.slice(0,-2).map(String).join("."),u=n.placeholdersByPath.get(s);null==u&&c(!1),"stream"!==u.kind&&c(!1),this._processStreamResponse(e,t,u,r)}},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,a=g(n,r.selector,r.typeName,r.path);this._processPayloadFollowups(a),this._publishQueue.commitRelayPayload(a);var s=this._source.get(i);null==s&&c(!1);var u=s.fieldPayloads;if(0!==u.length){var l={errors:null,fieldPayloads:u,incrementalPlaceholders:null,moduleImportPayloads:null,source:new o};this._publishQueue.commitRelayPayload(l)}var d=this._publishQueue.run();this._updateOperationTracker(d)},t._processStreamResponse=function(e,t,r,i){var a,u,l,f=r.parentID,p=r.node,v=r.variables,m=i.data;"object"!=typeof m&&c(!1);var b=p.selections[0];(null==b||"LinkedField"!==b.kind||!0!==b.plural)&&c(!1);var y=null!==(a=b.alias)&&void 0!==a?a:b.name,E=_(b,v),R=this._source.get(f);null==R&&c(!1);var S=R.record,k=R.fieldPayloads,D=s.getLinkedRecordIDs(S,E);null==D&&c(!1);var I=t[t.length-1],O=parseInt(I,10);O===I&&O>=0||c(!1);var L=(null!==(u=m.id)&&void 0!==u?u:D&&D[O])||d(f,E,O);"string"!=typeof L&&c(!1);var F={dataID:L,node:b,variables:v},N=null!==(l=b.concreteType)&&void 0!==l?l:m[h];"string"!=typeof N&&c(!1);var P=s.clone(S),A=(0,n.default)(D);A[O]=L,s.setLinkedRecordIDs(P,E,A),this._source.set(f,{record:P,fieldPayloads:k});var T=g(i,F,N,(0,n.default)(r.path).concat([y,String(O)]));if(this._processPayloadFollowups(T),this._publishQueue.commitPayload(this._operation,T,function(e){var t=e.get(f);if(null!=t){var r=t.getLinkedRecords(E);if(null!=r&&r.length===D.length&&!r.some(function(e,t){return D[t]!==(e&&e.getDataID())})){var i=(0,n.default)(r);i[O]=e.get(L),t.setLinkedRecords(i,E)}}}),0!==k.length){var w={errors:null,fieldPayloads:k,incrementalPlaceholders:null,moduleImportPayloads:null,source:new o};this._publishQueue.commitRelayPayload(w)}var x=this._publishQueue.run();this._updateOperationTracker(x)},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation)},e}();function g(e,t,r,n){var i=e.data,a=e.errors,u=new o,c=s.create(t.dataID,r);u.set(t.dataID,c);var d=l.normalize(u,t,i,{handleStrippedNulls:!0,path:n});return{errors:a,incrementalPlaceholders:d.incrementalPlaceholders,fieldPayloads:d.fieldPayloads,moduleImportPayloads:d.moduleImportPayloads,source:u}}e.exports={execute:function(e){return new v(e)}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";var n=r(61),i=r(12),a=r(41),o=r(36),s=r(37),u=r(38),l=r(0),c=r(23),d=function(){function e(e,t){this._backup=new i,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))&&l(!1),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,i=t.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:n,operation:e,source:i,updater:r}})},t.commitRelayPayload=function(e){var t=e.fieldPayloads,r=e.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:t,operation:null,source:r,updater:null}})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingUpdaters.add(e)},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(){return this._pendingBackupRebase&&this._backup.size()&&(this._store.publish(this._backup),this._backup=new i),this._commitData(),this._commitUpdaters(),this._applyUpdates(),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify()},t._getSourceFromPayload=function(e){var t=this,r=e.fieldPayloads,n=e.operation,i=e.source,a=e.updater,c=new o(this._store.getSource(),i),d=new s(c);if(r&&r.length&&r.forEach(function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||l(!1),r.update(d,e)}),a){var p=null===n||void 0===n?void 0:n.fragment;null==p&&l(!1),a(new u(d,p),f(i,p,n))}return i},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 i;this._pendingUpdaters.forEach(function(r){var i=new o(e._store.getSource(),t),a=new s(i);n.applyWithGuard(r,null,[a],null,"RelayPublishQueue:commitUpdaters")}),this._store.publish(t),this._pendingUpdaters.clear()}},t._applyUpdates=function(){var e=this;if(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size){var t=new i,r=new o(this._store.getSource(),t,this._backup),a=new s(r,this._handlerProvider);this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(function(e){if(e.operation){var t,r=e.selectorStoreUpdater,i=e.operation,o=e.response,s=a.commitPayload(i,o);if(o)t=f(c(i.root,o).source,i.fragment,i);r&&n.applyWithGuard(r,null,[s,t],null,"RelayPublishQueue:applyUpdates")}else if(e.storeUpdater){var u=e.storeUpdater;n.applyWithGuard(u,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var l=e.source,d=e.fieldPayloads;a.publishSource(l,d)}}),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){if(t.operation){var r,i=t.selectorStoreUpdater,o=t.operation,s=t.response,u=a.commitPayload(o,s);if(s)r=f(c(o.root,s).source,o.fragment,o);i&&n.applyWithGuard(i,null,[u,r],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var l=t.storeUpdater;n.applyWithGuard(l,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,p=t.fieldPayloads;a.publishSource(d,p)}e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)}},e}();function f(e,t,r){return a.read(e,t,r).data}e.exports=d},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(35),a=r(6),o=r(24),s=r(41),u=r(63),l=(r(22),r(64)),c=r(42),d=r(65),f=r(1).UNPUBLISH_RECORD_SENTINEL,p=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._gcScheduler=t,this._hasScheduledGC=!1,this._index=0,this._operationLoader=r,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 i.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){return s.read(this._recordSource,e,t)},t.notify=function(){var e=this,t=[];return this._subscriptions.forEach(function(r){var n=e._updateSubscription(r);null!=n&&t.push(n)}),this._updatedRecordIDs={},t},t.publish=function(e){!function(e,t,r){for(var n=t.getRecordIDs(),i=0;i<n.length;i++){var o=n[i],s=t.get(o),u=e.get(o);if(s===f)e.remove(o),r[o]=!0;else if(s&&u){var l=a.update(u,s);l!==u&&(r[o]=!0,e.set(o,l))}else null===s?(e.delete(o),null!==u&&(r[o]=!0)):s&&(e.set(o,s),r[o]=!0)}}(this._recordSource,e,this._updatedRecordIDs)},t.subscribe=function(e,t){var r=this,n={callback:t,snapshot:e};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e._scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e){var t=e.callback,r=e.snapshot;if(l(r,this._updatedRecordIDs)){var i=s.read(this._recordSource,r,r.owner),a=c(r.data,i.data);return i=(0,n.default)({},i,{data:a}),e.snapshot=i,i.data!==r.data?(t(i),r.owner):void 0}},t._scheduleGC=function(){var e=this;this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._hasScheduledGC||(this._hasScheduledGC=!0,this._gcScheduler(function(){e.__gc(),e._hasScheduledGC=!1}))},t.__gc=function(){var e=this,t=new Set;if(this._roots.forEach(function(r){u.mark(e._recordSource,r,t,e._operationLoader)}),t.size)for(var r=this._recordSource.getRecordIDs(),n=0;n<r.length;n++){var i=r[n];t.has(i)||this._recordSource.remove(i)}else this._recordSource.clear()},e}();o.instrumentMethods(p.prototype,{lookup:"RelayModernStore.prototype.lookup",notify:"RelayModernStore.prototype.notify",publish:"RelayModernStore.prototype.publish",__gc:"RelayModernStore.prototype.__gc"}),e.exports=p},function(e,t,r){"use strict";var n=r(4),i=r(6),a=r(1),o=r(40),s=r(0),u=n.CONDITION,l=n.CLIENT_EXTENSION,c=n.DEFER,d=n.FRAGMENT_SPREAD,f=n.INLINE_FRAGMENT,p=n.LINKED_FIELD,h=n.MODULE_IMPORT,_=n.LINKED_HANDLE,v=n.SCALAR_FIELD,g=n.SCALAR_HANDLE,m=n.STREAM,b=a.getStorageKey,y=a.MODULE_OPERATION_KEY;var E=function(){function e(e,t,r,n){var i;this._operationLoader=null!==(i=n)&&void 0!==i?i:null,this._references=r,this._recordSource=e,this._variables=t}var t=e.prototype;return t.mark=function(e,t){this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||s(!1),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case p:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case u:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case f:var a=i.getType(t);null!=a&&a===n.type&&r._traverseSelections(n.selections,t);break;case d:s(!1);case _:var b=o(n,e,r._variables);b.plural?r._traversePluralLink(b,t):r._traverseLink(b,t);break;case c:case m:r._traverseSelections(n.selections,t);break;case v:case g:break;case h:r._traverseModuleImport(n,t);break;case l:r._traverseSelections(n.selections,t);break;default:s(!1)}})},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&s(!1);var n=i.getValue(t,y);if(null!=n){var a=r.get(n);null!=a&&this._traverseSelections(a.selections,t)}},t._traverseLink=function(e,t){var r=b(e,this._variables),n=i.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=b(e,this._variables),a=i.getLinkedRecordIDs(t,n);null!=a&&a.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={mark:function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;new E(e,o,r,n).mark(a,i)}}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=Object.keys(e.seenRecords),n=0;n<r.length;n++)if(t.hasOwnProperty(r[n]))return!0;return!1}},function(e,t){e.exports=u},function(e,t,r){"use strict";r(8);var n=r(0),i=r(43),a=i.convertFetch,o=i.convertSubscribe;e.exports={create:function(e,t){var r=a(e),i=t?o(t):void 0;return{execute:function(e,t,a,o){if("subscription"===e.operationKind)return i||n(!1),o&&n(!1),i(e,t,a);var s=a.poll;return null!=s?(o&&n(!1),r(e,t,{force:!0}).poll(s)):r(e,t,a,o)}}}}},function(e,t,r){"use strict";var n=r(2),i=n(r(10)),a=n(r(11)),o=r(0),s=1,u=function(){function e(e){var t=e.request,r=e.variables,n=e.cacheConfig,a=e.uploadables;(0,i.default)(this,"_hasCommittedLogs",!1),(0,i.default)(this,"_logs",[]),this._cacheConfig=n,this._id=s++,this._request=t,this._uploadables=a,this._variables=r}var t=e.prototype;return t.addLog=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this._logs.push({label:e,values:r})},t.clearLogs=function(){this._logs=[]},t.printLogs=function(e,t,r){var n=this.getIdentifier();console.groupCollapsed&&console.groupCollapsed("%c".concat(n),e?"color:red":""),console.timeEnd&&console.timeEnd(n),this.getLogsToPrint(e,t,r).forEach(function(e){var t,r=e.label,n=e.values;(t=console).log.apply(t,["".concat(r,":")].concat((0,a.default)(n)))}),console.groupEnd&&console.groupEnd()},t.commitLogs=function(e,t,r){!1!==this._hasCommittedLogs&&o(!1),this.printLogs(e,t,r),this.markCommitted()},t.markCommitted=function(){this._hasCommittedLogs=!0},t.flushLogs=function(e,t,r){!1!==this._hasCommittedLogs&&o(!1),this.printLogs(e,t,r),this.clearLogs()},t.getCacheConfig=function(){return this._cacheConfig},t.getIdentifier=function(){return"[".concat(this._id,"] Relay Modern: ").concat(this._request.name)},t.getLogsToPrint=function(e,t,r){return this._logs},t.getRequest=function(){return this._request},t.getUploadables=function(){return this._uploadables},t.getVariables=function(){return this._variables},e}();e.exports=u},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(0),a=r(9),o=function(){function e(e){var t=e.size,r=e.ttl;t>0||i(!1),r>0||i(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,i=s(e,t);this._responses.forEach(function(e,t){(function(e,t){return e+t>=Date.now()})(e.fetchTime,r._ttl)||r._responses.delete(t)});var a=this._responses.get(i);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(),i=s(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function s(e,t){return JSON.stringify(a({queryID:e,variables:t}))}e.exports=o},function(e,t,r){"use strict";var n=r(15),i=r(0),a=r(25);e.exports=function(e,t){a(e)||i(!1);var r=e.unstable_internal,o=r.createOperationDescriptor,s=(0,r.getRequest)(t.mutation);if("mutation"!==s.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");var u=t.optimisticUpdater,l=t.configs,c=t.optimisticResponse,d=o(s,t.variables);return l&&(u=n.convert(l,s,u).optimisticUpdater),e.applyUpdate({operation:d,selectorStoreUpdater:u,response:c})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(2)(r(11)),i=r(15),a=r(0),o=r(25);r(72),r(3);e.exports=function(e,t){o(e)||a(!1);var r=e.unstable_internal,s=r.createOperationDescriptor,u=(0,r.getRequest)(t.mutation);if("mutation"!==u.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");if("Request"!==u.kind)throw new Error("commitRelayModernMutation: Expected mutation to be of type request");var l=t.optimisticResponse,c=t.optimisticUpdater,d=t.updater,f=t.configs,p=t.onError,h=t.variables,_=t.uploadables,v=s(u,h);if("function"==typeof l&&(l=l()),f){var g=i.convert(f,u,c,d);c=g.optimisticUpdater,d=g.updater}var m=[];return{dispose:e.executeMutation({operation:v,optimisticResponse:l,optimisticUpdater:c,updater:d,uploadables:_}).subscribe({next:function(e){e.errors&&m.push.apply(m,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(v.fragment,v).data,0!==m.length?m:null)},error:p}).unsubscribe}}},function(e,t,r){"use strict";r(2)(r(5)),r(3);e.exports=function(){}},function(e,t,r){"use strict";var n,i,a=r(0);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1),n}},function(e,t,r){"use strict";r(4);var n=r(43),i=n.convertFetch,a=n.convertSubscribe;function o(e,t,r){return function(n,i,a,o){var s;function u(e,t,o){r&&s.addLog("GraphiQL",r(n,i)),s.addLog("Cache Config",a),s.addLog("Variables",JSON.stringify(i,null,2)),o&&s.addLog("Status",o),e&&s.addLog("Error",e),t&&s.addLog("Response",t)}function l(e,t,r){u(e,t,r),s.flushLogs(e,t,r)}function c(e,t,r){u(e,t,r),s.commitLogs(e,t,r)}var d=e(n,i,a,o),f="subscription"===n.operationKind;return d.do({start:function(){s=new t({request:n,variables:i,cacheConfig:a,uploadables:o}),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 c(e,null,null)},complete:function(){f?c(null,null,"subscription was closed."):s.markCommitted()},unsubscribe:function(){return c(null,null,f?"subscription is unsubscribed.":"execution is unsubscribed.")}})}}e.exports=function(e){return{wrapFetch:function(t,r){return function(n,a,s,u){return o(i(t),e,r)(n,a,s,u)}},wrapSubscribe:function(t,r){return function(n,i,s){return o(a(t),e,r)(n,i,s)}}}}},function(e,t,r){"use strict";var n=r(8),i=r(76),a=r(44),o=r(0),s=new Map;function u(e,t,r){return l(e,t.node.params,t.variables,function(){return e.execute({operation:t,cacheConfig:null===r||void 0===r?void 0:r.networkCacheConfig})})}function l(e,t,r,s){return n.create(function(n){var u=c(e),l=a(t,r),f=u.get(l);f||s().finally(function(){return u.delete(l)}).subscribe({start:function(e){f={subject:new i,subscription:e},u.set(l,f)},next:function(e){d(u,l).subject.next(e)},error:function(e){d(u,l).subject.error(e)},complete:function(){d(u,l).subject.complete()}}),null==f&&o(!1);var p=f.subject.subscribe(n);return function(){p.unsubscribe();var e=u.get(l);if(e){var t=e.subscription;null!=t&&0===e.subject.getObserverCount()&&(t.unsubscribe(),u.delete(l))}}})}function c(e){var t=s.get(e);if(null!=t)return t;var r=new Map;return s.set(e,r),r}function d(e,t){var r=e.get(t);return null==r&&o(!1),r}e.exports={fetchQuery:u,getPromiseForRequestInFlight:function(e,t){var r=c(e),n=a(t.node.params,t.variables);return r.get(n)?new Promise(function(r,n){var i=!1;u(e,t).subscribe({complete:r,error:n,next:function(e){i&&r(e)}}),i=!0}):null},getObservableForRequestInFlight:function(e,t){var r=c(e),n=a(t.node.params,t.variables);return r.get(n)?u(e,t):null},fetchQueryDeduped:l}},function(e,t,r){"use strict";var n=r(2)(r(10)),i=r(8),a=r(0),o=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),this._observable=i.create(function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var i=r[n];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,a(!1)}}return function(){e._sinks.delete(t)}})}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach(function(e){return e.complete()}))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach(function(t){return t.error(e)}))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach(function(t){return t.next(e)}))},t.subscribe=function(e){return this._observable.subscribe(e)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=o},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t,r,i){e.unstable_internal||n(!1);var a=e.unstable_internal,o=a.createOperationDescriptor,s=(0,a.getRequest)(t);if("query"!==s.params.operationKind)throw new Error("fetchRelayModernQuery: Expected query operation");var u=o(s,r);return e.execute({operation:u,cacheConfig:i}).map(function(){return e.lookup(u.fragment,u).data}).toPromise()}},function(e,t,r){"use strict";var n=r(45),i=r(29),a=r(9);e.exports=function(e,t){return JSON.stringify(a(i(e,function(e,r){var i=t[r];return n(e,i)})))}},function(e,t,r){"use strict";var n=r(15);r(3);e.exports=function(e,t){var r=e.unstable_internal,i=r.createOperationDescriptor,a=(0,r.getRequest)(t.subscription);if("subscription"!==a.params.operationKind)throw new Error("requestRelaySubscription: Must use Subscription operation");var o=t.configs,s=t.onCompleted,u=t.onError,l=t.onNext,c=i(a,t.variables),d=(o?n.convert(o,a,null,t.updater):t).updater;return e.execute({operation:c,updater:d,cacheConfig:{force:!0}}).map(function(){return e.lookup(c.fragment,c).data}).subscribeLegacy({onNext:l,onError:u,onCompleted:s})}}])});
\No newline at end of file