relay-runtime 0.0.0-main-2c8089a3 → 0.0.0-main-b6199194
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/experimental.js +1 -1
- package/index.js +1 -1
- package/lib/query/fetchQuery.js +1 -1
- package/lib/store/RelayModernFragmentSpecResolver.js +1 -4
- package/lib/store/RelayReader.js +31 -29
- package/lib/store/RelayStoreSubscriptions.js +0 -2
- package/lib/store/observeFragmentExperimental.js +1 -1
- package/lib/util/handlePotentialSnapshotErrors.js +9 -30
- package/package.json +1 -1
- package/query/fetchQuery.js.flow +0 -1
- package/relay-runtime-experimental.js +2 -2
- package/relay-runtime-experimental.min.js +2 -2
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/RelayModernFragmentSpecResolver.js.flow +0 -6
- package/store/RelayReader.js.flow +26 -23
- package/store/RelayStoreSubscriptions.js.flow +0 -2
- package/store/RelayStoreTypes.js.flow +3 -4
- package/store/observeFragmentExperimental.js.flow +0 -1
- package/util/handlePotentialSnapshotErrors.js.flow +2 -27
package/experimental.js
CHANGED
package/index.js
CHANGED
package/lib/query/fetchQuery.js
CHANGED
|
@@ -21,7 +21,7 @@ function fetchQuery(environment, query, variables, options) {
|
|
|
21
21
|
var fetchPolicy = (_options$fetchPolicy = options === null || options === void 0 ? void 0 : options.fetchPolicy) !== null && _options$fetchPolicy !== void 0 ? _options$fetchPolicy : 'network-only';
|
|
22
22
|
function readData(snapshot) {
|
|
23
23
|
var _queryNode$fragment$m, _queryNode$fragment$m2;
|
|
24
|
-
handlePotentialSnapshotErrors(environment, snapshot.missingRequiredFields, snapshot.
|
|
24
|
+
handlePotentialSnapshotErrors(environment, snapshot.missingRequiredFields, snapshot.errorResponseFields, (_queryNode$fragment$m = (_queryNode$fragment$m2 = queryNode.fragment.metadata) === null || _queryNode$fragment$m2 === void 0 ? void 0 : _queryNode$fragment$m2.throwOnFieldError) !== null && _queryNode$fragment$m !== void 0 ? _queryNode$fragment$m : false);
|
|
25
25
|
return snapshot.data;
|
|
26
26
|
}
|
|
27
27
|
switch (fetchPolicy) {
|
|
@@ -133,7 +133,6 @@ var SelectorResolver = /*#__PURE__*/function () {
|
|
|
133
133
|
_this2._isMissingData = snapshot.isMissingData;
|
|
134
134
|
_this2._missingRequiredFields = snapshot.missingRequiredFields;
|
|
135
135
|
_this2._errorResponseFields = snapshot.errorResponseFields;
|
|
136
|
-
_this2._relayResolverErrors = snapshot.relayResolverErrors;
|
|
137
136
|
_this2._callback();
|
|
138
137
|
});
|
|
139
138
|
var _snapshot = environment.lookup(selector);
|
|
@@ -142,7 +141,6 @@ var SelectorResolver = /*#__PURE__*/function () {
|
|
|
142
141
|
this._isMissingData = _snapshot.isMissingData;
|
|
143
142
|
this._missingRequiredFields = _snapshot.missingRequiredFields;
|
|
144
143
|
this._errorResponseFields = _snapshot.errorResponseFields;
|
|
145
|
-
this._relayResolverErrors = _snapshot.relayResolverErrors;
|
|
146
144
|
this._environment = environment;
|
|
147
145
|
this._rootIsQueryRenderer = rootIsQueryRenderer;
|
|
148
146
|
this._selector = selector;
|
|
@@ -186,7 +184,7 @@ var SelectorResolver = /*#__PURE__*/function () {
|
|
|
186
184
|
}
|
|
187
185
|
}
|
|
188
186
|
}
|
|
189
|
-
handlePotentialSnapshotErrors(this._environment, this._missingRequiredFields, this.
|
|
187
|
+
handlePotentialSnapshotErrors(this._environment, this._missingRequiredFields, this._errorResponseFields, (_this$_selector$node$ = (_this$_selector$node$2 = this._selector.node.metadata) === null || _this$_selector$node$2 === void 0 ? void 0 : _this$_selector$node$2.throwOnFieldError) !== null && _this$_selector$node$ !== void 0 ? _this$_selector$node$ : false);
|
|
190
188
|
return this._data;
|
|
191
189
|
};
|
|
192
190
|
_proto2.setSelector = function setSelector(selector) {
|
|
@@ -199,7 +197,6 @@ var SelectorResolver = /*#__PURE__*/function () {
|
|
|
199
197
|
this._isMissingData = snapshot.isMissingData;
|
|
200
198
|
this._missingRequiredFields = snapshot.missingRequiredFields;
|
|
201
199
|
this._errorResponseFields = snapshot.errorResponseFields;
|
|
202
|
-
this._relayResolverErrors = snapshot.relayResolverErrors;
|
|
203
200
|
this._selector = selector;
|
|
204
201
|
this._subscription = this._environment.subscribe(snapshot, this._onChange);
|
|
205
202
|
};
|
package/lib/store/RelayReader.js
CHANGED
|
@@ -50,7 +50,6 @@ var RelayReader = /*#__PURE__*/function () {
|
|
|
50
50
|
this._selector = selector;
|
|
51
51
|
this._variables = selector.variables;
|
|
52
52
|
this._resolverCache = resolverCache;
|
|
53
|
-
this._resolverErrors = [];
|
|
54
53
|
this._fragmentName = selector.node.name;
|
|
55
54
|
this._updatedDataIDs = new Set();
|
|
56
55
|
this._resolverContext = resolverContext;
|
|
@@ -89,7 +88,6 @@ var RelayReader = /*#__PURE__*/function () {
|
|
|
89
88
|
seenRecords: this._seenRecords,
|
|
90
89
|
selector: this._selector,
|
|
91
90
|
missingRequiredFields: this._missingRequiredFields,
|
|
92
|
-
relayResolverErrors: this._resolverErrors,
|
|
93
91
|
errorResponseFields: this._errorResponseFields
|
|
94
92
|
};
|
|
95
93
|
};
|
|
@@ -222,22 +220,15 @@ var RelayReader = /*#__PURE__*/function () {
|
|
|
222
220
|
return {
|
|
223
221
|
path: error.fieldPath.split('.')
|
|
224
222
|
};
|
|
223
|
+
case 'relay_resolver.error':
|
|
224
|
+
return {
|
|
225
|
+
message: "Relay: Error in resolver for field at ".concat(error.fieldPath, " in ").concat(error.owner)
|
|
226
|
+
};
|
|
225
227
|
default:
|
|
226
228
|
error.kind;
|
|
227
229
|
!false ? process.env.NODE_ENV !== "production" ? invariant(false, 'Unexpected error errorResponseField kind: %s', error.kind) : invariant(false) : void 0;
|
|
228
230
|
}
|
|
229
231
|
});
|
|
230
|
-
if (this._resolverErrors.length > 0) {
|
|
231
|
-
if (errors == null) {
|
|
232
|
-
errors = [];
|
|
233
|
-
}
|
|
234
|
-
for (var i = 0; i < this._resolverErrors.length; i++) {
|
|
235
|
-
var resolverError = this._resolverErrors[i];
|
|
236
|
-
errors.push({
|
|
237
|
-
message: "Relay: Error in resolver for field at ".concat(resolverError.fieldPath, " in ").concat(resolverError.owner)
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
232
|
if (((_this$_missingRequire2 = this._missingRequiredFields) === null || _this$_missingRequire2 === void 0 ? void 0 : _this$_missingRequire2.action) === 'THROW') {
|
|
242
233
|
var _this$_missingRequire3 = this._missingRequiredFields.field,
|
|
243
234
|
owner = _this$_missingRequire3.owner,
|
|
@@ -283,16 +274,13 @@ var RelayReader = /*#__PURE__*/function () {
|
|
|
283
274
|
{
|
|
284
275
|
var previousResponseFields = this._errorResponseFields;
|
|
285
276
|
var previousMissingRequiredFields = this._missingRequiredFields;
|
|
286
|
-
var previousResolverErrors = this._resolverErrors;
|
|
287
277
|
this._errorResponseFields = null;
|
|
288
278
|
this._missingRequiredFields = null;
|
|
289
|
-
this._resolverErrors = [];
|
|
290
279
|
var catchFieldValue = this._readClientSideDirectiveField(selection, record, data);
|
|
291
280
|
if (selection.to === 'RESULT') {
|
|
292
281
|
this._handleCatchToResult(selection, record, data, catchFieldValue);
|
|
293
282
|
}
|
|
294
283
|
var childrenMissingRequiredFields = this._missingRequiredFields;
|
|
295
|
-
this._resolverErrors = previousResolverErrors;
|
|
296
284
|
this._errorResponseFields = previousResponseFields;
|
|
297
285
|
this._missingRequiredFields = previousMissingRequiredFields;
|
|
298
286
|
if ((childrenMissingRequiredFields === null || childrenMissingRequiredFields === void 0 ? void 0 : childrenMissingRequiredFields.action) === 'LOG') {
|
|
@@ -523,27 +511,41 @@ var RelayReader = /*#__PURE__*/function () {
|
|
|
523
511
|
_iterator3.f();
|
|
524
512
|
}
|
|
525
513
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
514
|
+
if (cachedSnapshot.errorResponseFields != null) {
|
|
515
|
+
if (this._errorResponseFields == null) {
|
|
516
|
+
this._errorResponseFields = [];
|
|
517
|
+
}
|
|
518
|
+
var _iterator4 = (0, _createForOfIteratorHelper2["default"])(cachedSnapshot.errorResponseFields),
|
|
519
|
+
_step4;
|
|
520
|
+
try {
|
|
521
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
522
|
+
var error = _step4.value;
|
|
523
|
+
if (error.kind === 'relay_resolver.error') {
|
|
524
|
+
this._errorResponseFields.push(error);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
} catch (err) {
|
|
528
|
+
_iterator4.e(err);
|
|
529
|
+
} finally {
|
|
530
|
+
_iterator4.f();
|
|
532
531
|
}
|
|
533
|
-
} catch (err) {
|
|
534
|
-
_iterator4.e(err);
|
|
535
|
-
} finally {
|
|
536
|
-
_iterator4.f();
|
|
537
532
|
}
|
|
538
533
|
this._isMissingData = this._isMissingData || cachedSnapshot.isMissingData;
|
|
539
534
|
}
|
|
540
535
|
if (resolverError) {
|
|
541
|
-
|
|
536
|
+
var _this$_selector$node$5, _this$_selector$node$6;
|
|
537
|
+
var errorEvent = {
|
|
542
538
|
kind: 'relay_resolver.error',
|
|
543
539
|
fieldPath: fieldPath,
|
|
544
540
|
owner: this._fragmentName,
|
|
545
|
-
error: resolverError
|
|
546
|
-
|
|
541
|
+
error: resolverError,
|
|
542
|
+
shouldThrow: (_this$_selector$node$5 = (_this$_selector$node$6 = this._selector.node.metadata) === null || _this$_selector$node$6 === void 0 ? void 0 : _this$_selector$node$6.throwOnFieldError) !== null && _this$_selector$node$5 !== void 0 ? _this$_selector$node$5 : RelayFeatureFlags.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT
|
|
543
|
+
};
|
|
544
|
+
if (this._errorResponseFields == null) {
|
|
545
|
+
this._errorResponseFields = [errorEvent];
|
|
546
|
+
} else {
|
|
547
|
+
this._errorResponseFields.push(errorEvent);
|
|
548
|
+
}
|
|
547
549
|
}
|
|
548
550
|
if (seenRecord != null) {
|
|
549
551
|
this._seenRecords.add(seenRecord);
|
|
@@ -60,7 +60,6 @@ var RelayStoreSubscriptions = /*#__PURE__*/function () {
|
|
|
60
60
|
seenRecords: backup.seenRecords,
|
|
61
61
|
selector: backup.selector,
|
|
62
62
|
missingRequiredFields: backup.missingRequiredFields,
|
|
63
|
-
relayResolverErrors: backup.relayResolverErrors,
|
|
64
63
|
errorResponseFields: backup.errorResponseFields
|
|
65
64
|
};
|
|
66
65
|
} else {
|
|
@@ -97,7 +96,6 @@ var RelayStoreSubscriptions = /*#__PURE__*/function () {
|
|
|
97
96
|
seenRecords: nextSnapshot.seenRecords,
|
|
98
97
|
selector: nextSnapshot.selector,
|
|
99
98
|
missingRequiredFields: nextSnapshot.missingRequiredFields,
|
|
100
|
-
relayResolverErrors: nextSnapshot.relayResolverErrors,
|
|
101
99
|
errorResponseFields: nextSnapshot.errorResponseFields
|
|
102
100
|
};
|
|
103
101
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -84,7 +84,7 @@ function snapshotToFragmentState(environment, fragmentNode, owner, snapshot) {
|
|
|
84
84
|
}
|
|
85
85
|
try {
|
|
86
86
|
var _snapshot$selector$no, _snapshot$selector$no2;
|
|
87
|
-
handlePotentialSnapshotErrors(environment, snapshot.missingRequiredFields, snapshot.
|
|
87
|
+
handlePotentialSnapshotErrors(environment, snapshot.missingRequiredFields, snapshot.errorResponseFields, (_snapshot$selector$no = (_snapshot$selector$no2 = snapshot.selector.node.metadata) === null || _snapshot$selector$no2 === void 0 ? void 0 : _snapshot$selector$no2.throwOnFieldError) !== null && _snapshot$selector$no !== void 0 ? _snapshot$selector$no : false);
|
|
88
88
|
} catch (error) {
|
|
89
89
|
return {
|
|
90
90
|
error: error,
|
|
@@ -6,41 +6,19 @@ var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime
|
|
|
6
6
|
var _excluded = ["message"];
|
|
7
7
|
var _require = require('../store/RelayErrorTrie'),
|
|
8
8
|
RelayFieldError = _require.RelayFieldError;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _iterator = (0, _createForOfIteratorHelper2["default"])(relayResolverErrors),
|
|
9
|
+
function handleFieldErrors(environment, errorResponseFields, shouldThrow) {
|
|
10
|
+
var _iterator = (0, _createForOfIteratorHelper2["default"])(errorResponseFields),
|
|
12
11
|
_step;
|
|
13
12
|
try {
|
|
14
13
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15
|
-
var
|
|
16
|
-
environment.relayFieldLogger(
|
|
14
|
+
var fieldError = _step.value;
|
|
15
|
+
environment.relayFieldLogger(fieldError);
|
|
17
16
|
}
|
|
18
17
|
} catch (err) {
|
|
19
18
|
_iterator.e(err);
|
|
20
19
|
} finally {
|
|
21
20
|
_iterator.f();
|
|
22
21
|
}
|
|
23
|
-
if (RelayFeatureFlags.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT || throwOnFieldError) {
|
|
24
|
-
throw new RelayFieldError("Relay: Unexpected resolver exception", relayResolverErrors.map(function (e) {
|
|
25
|
-
return {
|
|
26
|
-
path: e.fieldPath.split('.')
|
|
27
|
-
};
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function handleFieldErrors(environment, errorResponseFields, shouldThrow) {
|
|
32
|
-
var _iterator2 = (0, _createForOfIteratorHelper2["default"])(errorResponseFields),
|
|
33
|
-
_step2;
|
|
34
|
-
try {
|
|
35
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
36
|
-
var fieldError = _step2.value;
|
|
37
|
-
environment.relayFieldLogger(fieldError);
|
|
38
|
-
}
|
|
39
|
-
} catch (err) {
|
|
40
|
-
_iterator2.e(err);
|
|
41
|
-
} finally {
|
|
42
|
-
_iterator2.f();
|
|
43
|
-
}
|
|
44
22
|
if (shouldThrow) {
|
|
45
23
|
throw new RelayFieldError("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors", errorResponseFields.map(function (event) {
|
|
46
24
|
switch (event.kind) {
|
|
@@ -57,6 +35,10 @@ function handleFieldErrors(environment, errorResponseFields, shouldThrow) {
|
|
|
57
35
|
return {
|
|
58
36
|
path: event.fieldPath.split('.')
|
|
59
37
|
};
|
|
38
|
+
case 'relay_resolver.error':
|
|
39
|
+
return {
|
|
40
|
+
path: event.fieldPath.split('.')
|
|
41
|
+
};
|
|
60
42
|
default:
|
|
61
43
|
event.kind;
|
|
62
44
|
throw new Error('Relay: Unexpected event kind');
|
|
@@ -95,10 +77,7 @@ function handleMissingRequiredFields(environment, missingRequiredFields) {
|
|
|
95
77
|
}
|
|
96
78
|
}
|
|
97
79
|
}
|
|
98
|
-
function handlePotentialSnapshotErrors(environment, missingRequiredFields,
|
|
99
|
-
if (relayResolverErrors.length > 0) {
|
|
100
|
-
handleResolverErrors(environment, relayResolverErrors, throwOnFieldError);
|
|
101
|
-
}
|
|
80
|
+
function handlePotentialSnapshotErrors(environment, missingRequiredFields, errorResponseFields, throwOnFieldError) {
|
|
102
81
|
if (missingRequiredFields != null) {
|
|
103
82
|
handleMissingRequiredFields(environment, missingRequiredFields);
|
|
104
83
|
}
|
package/package.json
CHANGED
package/query/fetchQuery.js.flow
CHANGED
|
@@ -139,7 +139,6 @@ function fetchQuery<TVariables: Variables, TData, TRawResponse>(
|
|
|
139
139
|
handlePotentialSnapshotErrors(
|
|
140
140
|
environment,
|
|
141
141
|
snapshot.missingRequiredFields,
|
|
142
|
-
snapshot.relayResolverErrors,
|
|
143
142
|
snapshot.errorResponseFields,
|
|
144
143
|
queryNode.fragment.metadata?.throwOnFieldError ?? false,
|
|
145
144
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relay v0.0.0-main-
|
|
2
|
+
* Relay v0.0.0-main-b6199194
|
|
3
3
|
*/
|
|
4
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/wrapNativeSuper","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/wrapNativeSuper"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,t,n,a,o,i,u,l,s,c,f)=>(()=>{"use strict";var d={649:(e,r,t)=>{var n=t(222),a=t(696).observeFragment,o=t(461).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeFragment:a,waitForFragmentData:o}},60:(e,r,t)=>{var n=t(571),a=function(e,r){},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(r){return new e(r)},e.onUnhandledError=function(e){a=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?i(e):n(e)?u(e):l(e)};var r=e.prototype;return r.catch=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(t){try{r(t).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(r){e.error(r,!0)}}}),function(){return n.unsubscribe()}}))},r.concat=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.do=function(r){var t=this;return e.create((function(e){var n=function(t){return function(){try{r[t]&&r[t].apply(r,arguments)}catch(e){a(e,!0)}e[t]&&e[t].apply(e,arguments)}};return t.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},r.finally=function(r){var t=this;return e.create((function(e){var n=t.subscribe(e);return function(){n.unsubscribe(),r()}}))},r.ifEmpty=function(r){var t=this;return e.create((function(e){var n,a=!1;return n=t.subscribe({next:function(r){a=!0,e.next(r)},error:e.error,complete:function(){a?e.complete():n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,r){var t,n=!1,o=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function i(){if(t){if(t.unsubscribe)t.unsubscribe();else try{t()}catch(e){a(e,!0)}t=void 0}}var u=o({unsubscribe:function(){if(!n){n=!0;try{r.unsubscribe&&r.unsubscribe(u)}catch(e){a(e,!0)}finally{i()}}}});try{r.start&&r.start(u)}catch(e){a(e,!0)}if(n)return u;var l=o({next:function(e){if(!n&&r.next)try{r.next(e)}catch(e){a(e,!0)}},error:function(e,t){if(n||!r.error)n=!0,a(e,t||!1),i();else{n=!0;try{r.error(e)}catch(e){a(e,!0)}finally{i()}}},complete:function(){if(!n){n=!0;try{r.complete&&r.complete()}catch(e){a(e,!0)}finally{i()}}}});try{t=e(l)}catch(e){l.error(e,!0)}if(void 0!==t&&"function"!=typeof t&&(!t||"function"!=typeof t.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(t));return n&&i(),u}(this._source,e)},r.map=function(r){var t=this;return e.create((function(e){var n=t.subscribe({complete:e.complete,error:e.error,next:function(t){try{var n=r(t);e.next(n)}catch(r){e.error(r,!0)}}});return function(){n.unsubscribe()}}))},r.mergeMap=function(r){var t=this;return e.create((function(n){var a=[];function o(e){this._sub=e,a.push(e)}function i(){a.splice(a.indexOf(this._sub),1),0===a.length&&n.complete()}return t.subscribe({start:o,next:function(t){try{n.closed||e.from(r(t)).subscribe({start:o,next:n.next,error:n.error,complete:i})}catch(e){n.error(e,!0)}},error:n.error,complete:i}),function(){a.forEach((function(e){return e.unsubscribe()})),a.length=0}}))},r.poll=function(r){var t=this;if("number"!=typeof r||r<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+r);return e.create((function(e){var n,a;return function o(){n=t.subscribe({next:e.next,error:e.error,complete:function(){a=setTimeout(o,r)}})}(),function(){clearTimeout(a),n.unsubscribe()}}))},r.toPromise=function(){var e=this;return new Promise((function(r,t){var n=!1;e.subscribe({next:function(e){n||(n=!0,r(e))},error:t,complete:r})}))},e}();function i(e){return e instanceof o?e:o.create((function(r){return e.subscribe(r)}))}function u(e){return o.create((function(r){e.then((function(e){r.next(e),r.complete()}),r.error)}))}function l(e){return o.create((function(r){r.next(e),r.complete()}))}o.onUnhandledError((function(e,r){"function"==typeof fail?fail(String(e)):r?setTimeout((function(){throw e})):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)})),e.exports=o},634:(e,r,t)=>{var n=t(775),a=t(56),o=t(446);function i(e){var r=e;return"function"==typeof r?(r=r(),o(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===r.kind?r.name:r.operation.name)):r.default&&(r=r.default),r}function u(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.FRAGMENT}function l(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.REQUEST}function s(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.UPDATABLE_QUERY}function c(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.INLINE_DATA_FRAGMENT}function f(e){var r=i(e);return u(r)||a(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(r)),r}e.exports={getFragment:f,getNode:i,getPaginationFragment:function(e){var r,t=f(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch,a=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===a||"object"!=typeof a?null:t},getRefetchableFragment:function(e){var r,t=f(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch;return null===n||"object"!=typeof n?null:t},getRequest:function(e){var r=i(e);return l(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getUpdatableQuery:function(e){var r=i(e);return s(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getInlineDataFragment:function(e){var r=i(e);return c(r)||a(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(r)),r},graphql:function(e){a(!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`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:u,isRequest:l,isUpdatableQuery:s,isInlineDataFragment:c}},367:(e,r,t)=>{var n=t(60),a=t(153),o=t(56),i="function"==typeof WeakMap?new WeakMap:new Map;function u(e,r,t){return n.create((function(i){var u=s(e),l=u.get(r);return l||t().finally((function(){return u.delete(r)})).subscribe({start:function(e){l={identifier:r,subject:new a,subjectForInFlightStatus:new a,subscription:e,promise:null},u.set(r,l)},next:function(e){var t=c(u,r);t.subject.next(e),t.subjectForInFlightStatus.next(e)},error:function(e){var t=c(u,r);t.subject.error(e),t.subjectForInFlightStatus.error(e)},complete:function(){var e=c(u,r);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var t=c(u,r);t.subject.unsubscribe(),t.subjectForInFlightStatus.unsubscribe()}}),null==l&&o(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously"),function(e,r){return n.create((function(t){var n=r.subject.subscribe(t);return function(){n.unsubscribe();var t=e.get(r.identifier);if(t){var a=t.subscription;null!=a&&0===t.subject.getObserverCount()&&(a.unsubscribe(),e.delete(r.identifier))}}}))}(u,l).subscribe(i)}))}function l(e,r,t){return n.create((function(r){var n=t.subjectForInFlightStatus.subscribe({error:r.error,next:function(n){e.isRequestActive(t.identifier)?r.next():r.complete()},complete:r.complete,unsubscribe:r.complete});return function(){n.unsubscribe()}}))}function s(e){var r=i.get(e);if(null!=r)return r;var t=new Map;return i.set(e,t),t}function c(e,r){var t=e.get(r);return null==t&&o(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),t}e.exports={fetchQuery:function(e,r){return u(e,r.request.identifier,(function(){return e.execute({operation:r})}))},fetchQueryDeduped:u,getPromiseForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?new Promise((function(r,n){var a=!1;l(e,0,t).subscribe({complete:r,error:n,next:function(e){a&&r(e)}}),a=!0})):null},getObservableForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?l(e,0,t):null}}},129:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(165).getArgumentValues,o=t(56);e.exports={getLocalVariables:function(e,r,t){if(null==r)return e;var o=(0,n.default)({},e),i=t?a(t,e):{};return r.forEach((function(e){var r,t=null!==(r=i[e.name])&&void 0!==r?r:e.defaultValue;o[e.name]=t})),o},getFragmentVariables:function(e,r,t){return null==e.argumentDefinitions?t:(e.argumentDefinitions.forEach((function(i){if(!t.hasOwnProperty(i.name))switch(a=a||(0,n.default)({},t),i.kind){case"LocalArgument":a[i.name]=i.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(i.name)){a[i.name]=void 0;break}a[i.name]=r[i.name];break;default:o(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",i.kind,e.name)}})),a||t);var a},getOperationVariables:function(e,r,t){var n={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=t[e.name]&&(r=t[e.name]),n[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){n[e]=r[e].get()})),n}}},288:(e,r,t)=>{var n=t(275).default,a=n(t(175)),o=n(t(264)),i=n(t(765)),u=n(t(296)),l=n(t(757)),s=n(t(642)),c=["path","locations"],f=Symbol("$SELF"),d=function(e){function r(r){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(t=e.call(this,r)||this).name="RelayFieldError",t.message=r,t.errors=n,t}return(0,u.default)(r,e),r}((0,l.default)(Error));function p(e,r){var t,n=(0,i.default)(e);try{for(n.s();!(t=n.n()).done;){var o=t.value,u=o[0],l=o[1],c=r.length;if(Array.isArray(l)?r.push.apply(r,(0,s.default)(l)):p(l,r),u!==f)for(var d=r.length,b=c;b<d;b++){var E=r[b];null==E.path?r[b]=(0,a.default)((0,a.default)({},E),{},{path:[u]}):E.path.unshift(u)}}}catch(e){n.e(e)}finally{n.f()}}e.exports={SELF:f,buildErrorTrie:function(e){if(null==e)return null;var r,t=new Map,n=(0,i.default)(e);try{for(n.s();!(r=n.n()).done;){var a=r.value,u=a.path,l=(a.locations,(0,o.default)(a,c));if(null!=u){var s=u.length;if(0!==s){for(var d=s-1,p=t,b=0;b<d;b++){var E=u[b],m=p.get(E);if(m instanceof Map)p=m;else{var g=new Map;Array.isArray(m)&&g.set(f,m),p.set(E,g),p=g}}var v=u[d],_=p.get(v);_ instanceof Map&&(_=(p=_).get(v),v=f),Array.isArray(_)?_.push(l):p.set(v,[l])}}}}catch(e){n.e(e)}finally{n.f()}return t},getNestedErrorTrieByKey:function(e,r){var t=e.get(r);return t instanceof Map?t:null},getErrorsByKey:function(e,r){var t=e.get(r);if(null==t)return null;if(Array.isArray(t))return t;var n=[];return p(t,n),n},RelayFieldError:d}},256:(e,r,t)=>{var n=t(129).getFragmentVariables,a=t(165),o=a.CLIENT_EDGE_TRAVERSAL_PATH,i=a.FRAGMENT_OWNER_KEY,u=a.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=a.FRAGMENTS_KEY,s=a.ID_KEY,c=t(125),f=t(56),d=t(446);function p(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s],a=r[l],c=r[i],p=r[o];if("string"==typeof t&&"object"==typeof a&&null!==a&&"object"==typeof a[e.name]&&null!==a[e.name]&&"object"==typeof c&&null!==c&&(null==p||Array.isArray(p))){var b=c,E=p,m=a[e.name];return R(e,t,n(e,b.variables,m),b,!0===m[u],E)}var g=JSON.stringify(r);return g.length>499&&(g=g.substr(0,498)+"…"),d(!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,g,e.name),null}function b(e,r){var t=null;return r.forEach((function(r,n){var a=null!=r?p(e,r):null;null!=a&&(t=t||[]).push(a)})),null==t?null:{kind:"PluralReaderSelector",selectors:t}}function E(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),b(e,r)):(Array.isArray(r)&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),p(e,r))}function m(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),function(e,r){var t=null;return r.forEach((function(r){var n=null!=r?g(e,r):null;null!=n&&(t=t||[]).push(n)})),t}(e,r)):(Array.isArray(r)&&f(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),g(e,r))}function g(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s];return"string"==typeof t?t:(d(!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)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(r),e.name,e.name),null)}function v(e,r){var t;return null==r?{}:!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),h(e,r)):(Array.isArray(r)&&f(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),_(e,r)||{})}function _(e,r){var t=p(e,r);return t?t.variables:null}function h(e,r){var t={};return r.forEach((function(r,n){if(null!=r){var a=_(e,r);null!=a&&Object.assign(t,a)}})),t}function y(e,r){return e.dataID===r.dataID&&e.node===r.node&&c(e.variables,r.variables)&&((t=e.owner)===(n=r.owner)||t.identifier===n.identifier&&c(t.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var t=e.length;t--;){var n=e[t],a=r[t];if(n!==a&&(null==n||null==a||n.clientEdgeDestinationID!==a.clientEdgeDestinationID||n.readerClientEdge!==a.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var t,n}function R(e,r,t,n){var a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=a?a:null,node:e,variables:t,owner:n}}e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?y(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,t){return y(e,r.selectors[t])})))},createReaderSelector:R,createNormalizationSelector:function(e,r,t){return{dataID:r,node:e,variables:t}},getDataIDsFromFragment:m,getDataIDsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=m(a,o)}return t},getSingularSelector:p,getPluralSelector:b,getSelector:E,getSelectorsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=E(a,o)}return t},getVariablesFromSingularFragment:_,getVariablesFromPluralFragment:h,getVariablesFromFragment:v,getVariablesFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=v(e[n],r[n]);Object.assign(t,a)}return t}}},165:(e,r,t)=>{var n=(0,t(275).default)(t(642)),a=t(330),o=t(775),i=t(94).stableCopy,u=t(56),l=o.VARIABLE,s=o.LITERAL,c=o.OBJECT_VALUE,f=o.LIST_VALUE;function d(e,r){if(e.kind===l)return function(e,r){return r.hasOwnProperty(e)||u(!1,"getVariableValue(): Undefined variable `%s`.",e),i(r[e])}(e.variableName,r);if(e.kind===s)return e.value;if(e.kind===c){var t={};return e.fields.forEach((function(e){t[e.name]=d(e,r)})),t}if(e.kind===f){var n=[];return e.items.forEach((function(e){null!=e&&n.push(d(e,r))})),n}}function p(e,r,t){var n={};return t&&(n[E.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=d(e,r)})),n}function b(e,r){if(!r)return e;var t=[];for(var n in r)if(r.hasOwnProperty(n)){var a,o=r[n];null!=o&&t.push(n+":"+(null!==(a=JSON.stringify(o))&&void 0!==a?a:"undefined"))}return 0===t.length?e:e+"(".concat(t.join(","),")")}var E={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:b,getArgumentValue:d,getArgumentValues:p,getHandleStorageKey:function(e,r){var t=e.dynamicKey,o=e.handle,i=e.key,u=e.name,l=e.args,s=e.filters,c=a(o,i,u),f=null;return l&&s&&0!==l.length&&0!==s.length&&(f=l.filter((function(e){return s.indexOf(e.name)>-1}))),t&&(f=null!=f?[t].concat((0,n.default)(f)):[t]),null===f?c:b(c,p(f,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var t=function(e){var r,t;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(t=e.fragment)||void 0===t?void 0:t.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return t&&0!==t.length?b(n,p(t,r)):n},getStableStorageKey:function(e,r){return b(e,i(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=E},890:(e,r,t)=>{var n=t(634).getFragment,a=t(256).getSelector,o=t(56),i=[],u={};e.exports={readFragment:function(e,r){if(!i.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var t=i[i.length-1],l=n(e),s=a(l,r);null==s&&o(!1,"Expected a selector for the fragment of the resolver ".concat(l.name,", but got null.")),"SingularReaderSelector"!==s.kind&&o(!1,"Expected a singular reader selector for the fragment of the resolver ".concat(l.name,", but it was plural."));var c=t.getDataForResolverFragment(s,r),f=c.data,d=c.isMissingData,p=c.missingRequiredFields;if(d||null!=p&&"THROW"===p.action)throw u;return f},withResolverContext:function(e,r){i.push(e);try{return r()}finally{i.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:u}},222:(e,r,t)=>{var n=t(890).readFragment,a=t(56);e.exports=function(e,r,t,o){var i=r;return function(r,u){var l=n(e,r);if(null==t)return i(l,u);if(null==l){if(!0!==o)return i(null,u);a(!1,"Expected required resolver field `%s` in fragment `%s` to be present. But resolvers fragment data is null/undefined.",t,e.name)}if(t in l)return!0===o&&null==l[t]&&a(!1,"Expected required resolver field `%s` in fragment `%s` to be non-null.",t,e.name),i(l[t],u);a(!1,"Missing field `%s` in fragment `%s` in resolver response.",t,e.name)}}},696:(e,r,t)=>{var n=t(314).default,a=t(60),o=t(634).getFragment,i=t(250),u=t(541),l=t(256).getSelector,s=t(56);function c(){return(c=n((function*(e,r,t){var n;try{var a,o=yield new Promise((function(a,o){n=f(e,r,t).subscribe({next:function(e){"ok"===e.state?a(e.value):"error"===e.state&&o(e.error)}})}));return null===(a=n)||void 0===a||a.unsubscribe(),o}catch(e){var i;throw null===(i=n)||void 0===i||i.unsubscribe(),e}}))).apply(this,arguments)}function f(e,r,t){var n,i=o(r),u=l(i,t);switch(null!=(null===(n=i.metadata)||void 0===n?void 0:n.hasClientEdges)&&s(!1,"Client edges aren't supported yet."),null==u&&s(!1,"Expected a selector, got null."),u.kind){case"SingularReaderSelector":return function(e,r,t){var n=e.lookup(t);return a.create((function(a){a.next(d(e,r,t.owner,n));var o=e.subscribe(n,(function(n){a.next(d(e,r,t.owner,n))}));return function(){return o.dispose()}}))}(e,r,u);case"PluralReaderSelector":s(!1,"Plural fragments are not supported")}s(!1,"Unsupported fragment selector kind")}function d(e,r,t,n){var a=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,o=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(a||o)return{state:"loading"};if(n.isMissingData&&null!=i(e,r,t))return{state:"loading"};try{var l,c;u(e,n.missingRequiredFields,n.relayResolverErrors,n.errorResponseFields,null!==(l=null===(c=n.selector.node.metadata)||void 0===c?void 0:c.throwOnFieldError)&&void 0!==l&&l)}catch(e){return{error:e,state:"error"}}return null==n.data&&s(!1,"Expected data to be non-null."),{state:"ok",value:n.data}}e.exports={observeFragment:f,waitForFragmentData:function(e,r,t){return c.apply(this,arguments)}}},461:(e,r,t)=>{var n=t(314).default,a=t(696).observeFragment;function o(){return(o=n((function*(e,r,t){var n;try{var o,i=yield new Promise((function(o,i){n=a(e,r,t).subscribe({next:function(e){"ok"===e.state?o(e.value):"error"===e.state&&i(e.error)}})}));return null===(o=n)||void 0===o||o.unsubscribe(),i}catch(e){var u;throw null===(u=n)||void 0===u||u.unsubscribe(),e}}))).apply(this,arguments)}e.exports={waitForFragmentData:function(e,r,t){return o.apply(this,arguments)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},770:e=>{e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!1,AVOID_CYCLES_IN_RESOLVER_NOTIFICATION:!1}},153:(e,r,t)=>{var n=t(275).default,a=n(t(765)),o=n(t(311)),i=t(60),u=t(56),l=function(){function e(){var e=this;(0,o.default)(this,"_complete",!1),(0,o.default)(this,"_events",[]),(0,o.default)(this,"_sinks",new Set),(0,o.default)(this,"_subscription",[]),this._observable=i.create((function(r){e._sinks.add(r);for(var t=e._events,n=0;n<t.length&&!r.closed;n++){var a=t[n];switch(a.kind){case"complete":r.complete();break;case"error":r.error(a.error);break;case"next":r.next(a.data);break;default:a.kind,u(!1,"RelayReplaySubject: Unknown event kind `%s`.",a.kind)}}return function(){e._sinks.delete(r)}}))}var r=e.prototype;return r.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},r.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(r){return r.error(e)})))},r.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(r){return r.next(e)})))},r.subscribe=function(e){var r=this._observable.subscribe(e);return this._subscription.push(r),r},r.unsubscribe=function(){var e,r=(0,a.default)(this._subscription);try{for(r.s();!(e=r.n()).done;)e.value.unsubscribe()}catch(e){r.e(e)}finally{r.f()}this._subscription=[]},r.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},250:(e,r,t)=>{var n=t(367).getPromiseForActiveRequest;e.exports=function(e,r,t){var a,o,i=[],u=n(e,t);if(null!=u)i=[t];else{var l,s,c=e.getOperationTracker().getPendingOperationsAffectingOwner(t);i=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],u=null!==(s=null==c?void 0:c.promise)&&void 0!==s?s:null}if(!u)return null;var f=null!==(a=null===(o=i)||void 0===o?void 0:o.map((function(e){return e.node.params.name})).join(","))&&void 0!==a?a:null;null!=f&&0!==f.length||(f="Unknown pending operation");var d=r.name,p=f===d?"Relay(".concat(f,")"):"Relay(".concat(f,":").concat(d,")");return u.displayName=p,e.__log({name:"pendingoperation.found",fragment:r,fragmentOwner:t,pendingOperations:i}),{promise:u,pendingOperations:i}}},330:(e,r,t)=>{var n=t(204).DEFAULT_HANDLE_KEY,a=t(56);e.exports=function(e,r,t){return r&&r!==n?"__".concat(r,"_").concat(e):(null==t&&a(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(t,"_").concat(e))}},541:(e,r,t)=>{var n=t(275).default,a=n(t(264)),o=n(t(765)),i=["message"],u=t(288).RelayFieldError,l=t(770);e.exports=function(e,r,t,n,s){t.length>0&&function(e,r,t){var n,a=(0,o.default)(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;e.relayFieldLogger(i)}}catch(e){a.e(e)}finally{a.f()}if(l.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT||t)throw new u("Relay: Unexpected resolver exception",r.map((function(e){return{path:e.fieldPath.split(".")}})))}(e,t,s),null!=r&&function(e,r){switch(r.action){case"THROW":var t=r.field,n=t.path,a=t.owner;throw e.relayFieldLogger({kind:"missing_required_field.throw",owner:a,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(a,"'."));case"LOG":r.fields.forEach((function(r){var t=r.path,n=r.owner;e.relayFieldLogger({kind:"missing_required_field.log",owner:n,fieldPath:t})}));break;default:r.action}}(e,r),null!=n&&function(e,r,t){var n,l=(0,o.default)(r);try{for(l.s();!(n=l.n()).done;){var s=n.value;e.relayFieldLogger(s)}}catch(e){l.e(e)}finally{l.f()}if(t)throw new u("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map((function(e){switch(e.kind){case"relay_field_payload.error":var r=e.error;return r.message,(0,a.default)(r,i);case"missing_expected_data.throw":case"missing_expected_data.log":return{path:e.fieldPath.split(".")};default:throw e.kind,new Error("Relay: Unexpected event kind")}})))}(e,n,s)}},571:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var t=Object.keys(r).sort(),n={},a=0;a<t.length;a++)n[t[a]]=e(r[t[a]]);return n},hasCycle:function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(t.has(r))return!0;var n=new Set(t);return n.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,n)}))}}},314:r=>{r.exports=e},765:e=>{e.exports=r},311:e=>{e.exports=t},296:e=>{e.exports=n},275:e=>{e.exports=a},175:e=>{e.exports=o},264:e=>{e.exports=i},642:e=>{e.exports=u},757:e=>{e.exports=l},125:e=>{e.exports=s},446:e=>{e.exports=c},56:e=>{e.exports=f}},p={};return function e(r){var t=p[r];if(void 0!==t)return t.exports;var n=p[r]={exports:{}};return d[r](n,n.exports,e),n.exports}(649)})()));
|
|
4
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/wrapNativeSuper","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/wrapNativeSuper"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,t,n,a,o,i,u,l,s,c,f)=>(()=>{"use strict";var d={649:(e,r,t)=>{var n=t(222),a=t(696).observeFragment,o=t(461).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeFragment:a,waitForFragmentData:o}},60:(e,r,t)=>{var n=t(571),a=function(e,r){},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(r){return new e(r)},e.onUnhandledError=function(e){a=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?i(e):n(e)?u(e):l(e)};var r=e.prototype;return r.catch=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(t){try{r(t).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(r){e.error(r,!0)}}}),function(){return n.unsubscribe()}}))},r.concat=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.do=function(r){var t=this;return e.create((function(e){var n=function(t){return function(){try{r[t]&&r[t].apply(r,arguments)}catch(e){a(e,!0)}e[t]&&e[t].apply(e,arguments)}};return t.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},r.finally=function(r){var t=this;return e.create((function(e){var n=t.subscribe(e);return function(){n.unsubscribe(),r()}}))},r.ifEmpty=function(r){var t=this;return e.create((function(e){var n,a=!1;return n=t.subscribe({next:function(r){a=!0,e.next(r)},error:e.error,complete:function(){a?e.complete():n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,r){var t,n=!1,o=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function i(){if(t){if(t.unsubscribe)t.unsubscribe();else try{t()}catch(e){a(e,!0)}t=void 0}}var u=o({unsubscribe:function(){if(!n){n=!0;try{r.unsubscribe&&r.unsubscribe(u)}catch(e){a(e,!0)}finally{i()}}}});try{r.start&&r.start(u)}catch(e){a(e,!0)}if(n)return u;var l=o({next:function(e){if(!n&&r.next)try{r.next(e)}catch(e){a(e,!0)}},error:function(e,t){if(n||!r.error)n=!0,a(e,t||!1),i();else{n=!0;try{r.error(e)}catch(e){a(e,!0)}finally{i()}}},complete:function(){if(!n){n=!0;try{r.complete&&r.complete()}catch(e){a(e,!0)}finally{i()}}}});try{t=e(l)}catch(e){l.error(e,!0)}if(void 0!==t&&"function"!=typeof t&&(!t||"function"!=typeof t.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(t));return n&&i(),u}(this._source,e)},r.map=function(r){var t=this;return e.create((function(e){var n=t.subscribe({complete:e.complete,error:e.error,next:function(t){try{var n=r(t);e.next(n)}catch(r){e.error(r,!0)}}});return function(){n.unsubscribe()}}))},r.mergeMap=function(r){var t=this;return e.create((function(n){var a=[];function o(e){this._sub=e,a.push(e)}function i(){a.splice(a.indexOf(this._sub),1),0===a.length&&n.complete()}return t.subscribe({start:o,next:function(t){try{n.closed||e.from(r(t)).subscribe({start:o,next:n.next,error:n.error,complete:i})}catch(e){n.error(e,!0)}},error:n.error,complete:i}),function(){a.forEach((function(e){return e.unsubscribe()})),a.length=0}}))},r.poll=function(r){var t=this;if("number"!=typeof r||r<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+r);return e.create((function(e){var n,a;return function o(){n=t.subscribe({next:e.next,error:e.error,complete:function(){a=setTimeout(o,r)}})}(),function(){clearTimeout(a),n.unsubscribe()}}))},r.toPromise=function(){var e=this;return new Promise((function(r,t){var n=!1;e.subscribe({next:function(e){n||(n=!0,r(e))},error:t,complete:r})}))},e}();function i(e){return e instanceof o?e:o.create((function(r){return e.subscribe(r)}))}function u(e){return o.create((function(r){e.then((function(e){r.next(e),r.complete()}),r.error)}))}function l(e){return o.create((function(r){r.next(e),r.complete()}))}o.onUnhandledError((function(e,r){"function"==typeof fail?fail(String(e)):r?setTimeout((function(){throw e})):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)})),e.exports=o},634:(e,r,t)=>{var n=t(775),a=t(56),o=t(446);function i(e){var r=e;return"function"==typeof r?(r=r(),o(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===r.kind?r.name:r.operation.name)):r.default&&(r=r.default),r}function u(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.FRAGMENT}function l(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.REQUEST}function s(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.UPDATABLE_QUERY}function c(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.INLINE_DATA_FRAGMENT}function f(e){var r=i(e);return u(r)||a(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(r)),r}e.exports={getFragment:f,getNode:i,getPaginationFragment:function(e){var r,t=f(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch,a=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===a||"object"!=typeof a?null:t},getRefetchableFragment:function(e){var r,t=f(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch;return null===n||"object"!=typeof n?null:t},getRequest:function(e){var r=i(e);return l(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getUpdatableQuery:function(e){var r=i(e);return s(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getInlineDataFragment:function(e){var r=i(e);return c(r)||a(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(r)),r},graphql:function(e){a(!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`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:u,isRequest:l,isUpdatableQuery:s,isInlineDataFragment:c}},367:(e,r,t)=>{var n=t(60),a=t(153),o=t(56),i="function"==typeof WeakMap?new WeakMap:new Map;function u(e,r,t){return n.create((function(i){var u=s(e),l=u.get(r);return l||t().finally((function(){return u.delete(r)})).subscribe({start:function(e){l={identifier:r,subject:new a,subjectForInFlightStatus:new a,subscription:e,promise:null},u.set(r,l)},next:function(e){var t=c(u,r);t.subject.next(e),t.subjectForInFlightStatus.next(e)},error:function(e){var t=c(u,r);t.subject.error(e),t.subjectForInFlightStatus.error(e)},complete:function(){var e=c(u,r);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var t=c(u,r);t.subject.unsubscribe(),t.subjectForInFlightStatus.unsubscribe()}}),null==l&&o(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously"),function(e,r){return n.create((function(t){var n=r.subject.subscribe(t);return function(){n.unsubscribe();var t=e.get(r.identifier);if(t){var a=t.subscription;null!=a&&0===t.subject.getObserverCount()&&(a.unsubscribe(),e.delete(r.identifier))}}}))}(u,l).subscribe(i)}))}function l(e,r,t){return n.create((function(r){var n=t.subjectForInFlightStatus.subscribe({error:r.error,next:function(n){e.isRequestActive(t.identifier)?r.next():r.complete()},complete:r.complete,unsubscribe:r.complete});return function(){n.unsubscribe()}}))}function s(e){var r=i.get(e);if(null!=r)return r;var t=new Map;return i.set(e,t),t}function c(e,r){var t=e.get(r);return null==t&&o(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),t}e.exports={fetchQuery:function(e,r){return u(e,r.request.identifier,(function(){return e.execute({operation:r})}))},fetchQueryDeduped:u,getPromiseForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?new Promise((function(r,n){var a=!1;l(e,0,t).subscribe({complete:r,error:n,next:function(e){a&&r(e)}}),a=!0})):null},getObservableForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?l(e,0,t):null}}},129:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(165).getArgumentValues,o=t(56);e.exports={getLocalVariables:function(e,r,t){if(null==r)return e;var o=(0,n.default)({},e),i=t?a(t,e):{};return r.forEach((function(e){var r,t=null!==(r=i[e.name])&&void 0!==r?r:e.defaultValue;o[e.name]=t})),o},getFragmentVariables:function(e,r,t){return null==e.argumentDefinitions?t:(e.argumentDefinitions.forEach((function(i){if(!t.hasOwnProperty(i.name))switch(a=a||(0,n.default)({},t),i.kind){case"LocalArgument":a[i.name]=i.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(i.name)){a[i.name]=void 0;break}a[i.name]=r[i.name];break;default:o(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",i.kind,e.name)}})),a||t);var a},getOperationVariables:function(e,r,t){var n={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=t[e.name]&&(r=t[e.name]),n[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){n[e]=r[e].get()})),n}}},288:(e,r,t)=>{var n=t(275).default,a=n(t(175)),o=n(t(264)),i=n(t(765)),u=n(t(296)),l=n(t(757)),s=n(t(642)),c=["path","locations"],f=Symbol("$SELF"),d=function(e){function r(r){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(t=e.call(this,r)||this).name="RelayFieldError",t.message=r,t.errors=n,t}return(0,u.default)(r,e),r}((0,l.default)(Error));function p(e,r){var t,n=(0,i.default)(e);try{for(n.s();!(t=n.n()).done;){var o=t.value,u=o[0],l=o[1],c=r.length;if(Array.isArray(l)?r.push.apply(r,(0,s.default)(l)):p(l,r),u!==f)for(var d=r.length,b=c;b<d;b++){var m=r[b];null==m.path?r[b]=(0,a.default)((0,a.default)({},m),{},{path:[u]}):m.path.unshift(u)}}}catch(e){n.e(e)}finally{n.f()}}e.exports={SELF:f,buildErrorTrie:function(e){if(null==e)return null;var r,t=new Map,n=(0,i.default)(e);try{for(n.s();!(r=n.n()).done;){var a=r.value,u=a.path,l=(a.locations,(0,o.default)(a,c));if(null!=u){var s=u.length;if(0!==s){for(var d=s-1,p=t,b=0;b<d;b++){var m=u[b],g=p.get(m);if(g instanceof Map)p=g;else{var v=new Map;Array.isArray(g)&&v.set(f,g),p.set(m,v),p=v}}var h=u[d],E=p.get(h);E instanceof Map&&(E=(p=E).get(h),h=f),Array.isArray(E)?E.push(l):p.set(h,[l])}}}}catch(e){n.e(e)}finally{n.f()}return t},getNestedErrorTrieByKey:function(e,r){var t=e.get(r);return t instanceof Map?t:null},getErrorsByKey:function(e,r){var t=e.get(r);if(null==t)return null;if(Array.isArray(t))return t;var n=[];return p(t,n),n},RelayFieldError:d}},256:(e,r,t)=>{var n=t(129).getFragmentVariables,a=t(165),o=a.CLIENT_EDGE_TRAVERSAL_PATH,i=a.FRAGMENT_OWNER_KEY,u=a.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=a.FRAGMENTS_KEY,s=a.ID_KEY,c=t(125),f=t(56),d=t(446);function p(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s],a=r[l],c=r[i],p=r[o];if("string"==typeof t&&"object"==typeof a&&null!==a&&"object"==typeof a[e.name]&&null!==a[e.name]&&"object"==typeof c&&null!==c&&(null==p||Array.isArray(p))){var b=c,m=p,g=a[e.name];return R(e,t,n(e,b.variables,g),b,!0===g[u],m)}var v=JSON.stringify(r);return v.length>499&&(v=v.substr(0,498)+"…"),d(!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,v,e.name),null}function b(e,r){var t=null;return r.forEach((function(r,n){var a=null!=r?p(e,r):null;null!=a&&(t=t||[]).push(a)})),null==t?null:{kind:"PluralReaderSelector",selectors:t}}function m(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),b(e,r)):(Array.isArray(r)&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),p(e,r))}function g(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),function(e,r){var t=null;return r.forEach((function(r){var n=null!=r?v(e,r):null;null!=n&&(t=t||[]).push(n)})),t}(e,r)):(Array.isArray(r)&&f(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),v(e,r))}function v(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s];return"string"==typeof t?t:(d(!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)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(r),e.name,e.name),null)}function h(e,r){var t;return null==r?{}:!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),y(e,r)):(Array.isArray(r)&&f(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),E(e,r)||{})}function E(e,r){var t=p(e,r);return t?t.variables:null}function y(e,r){var t={};return r.forEach((function(r,n){if(null!=r){var a=E(e,r);null!=a&&Object.assign(t,a)}})),t}function _(e,r){return e.dataID===r.dataID&&e.node===r.node&&c(e.variables,r.variables)&&((t=e.owner)===(n=r.owner)||t.identifier===n.identifier&&c(t.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var t=e.length;t--;){var n=e[t],a=r[t];if(n!==a&&(null==n||null==a||n.clientEdgeDestinationID!==a.clientEdgeDestinationID||n.readerClientEdge!==a.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var t,n}function R(e,r,t,n){var a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=a?a:null,node:e,variables:t,owner:n}}e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?_(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,t){return _(e,r.selectors[t])})))},createReaderSelector:R,createNormalizationSelector:function(e,r,t){return{dataID:r,node:e,variables:t}},getDataIDsFromFragment:g,getDataIDsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=g(a,o)}return t},getSingularSelector:p,getPluralSelector:b,getSelector:m,getSelectorsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=m(a,o)}return t},getVariablesFromSingularFragment:E,getVariablesFromPluralFragment:y,getVariablesFromFragment:h,getVariablesFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=h(e[n],r[n]);Object.assign(t,a)}return t}}},165:(e,r,t)=>{var n=(0,t(275).default)(t(642)),a=t(330),o=t(775),i=t(94).stableCopy,u=t(56),l=o.VARIABLE,s=o.LITERAL,c=o.OBJECT_VALUE,f=o.LIST_VALUE;function d(e,r){if(e.kind===l)return function(e,r){return r.hasOwnProperty(e)||u(!1,"getVariableValue(): Undefined variable `%s`.",e),i(r[e])}(e.variableName,r);if(e.kind===s)return e.value;if(e.kind===c){var t={};return e.fields.forEach((function(e){t[e.name]=d(e,r)})),t}if(e.kind===f){var n=[];return e.items.forEach((function(e){null!=e&&n.push(d(e,r))})),n}}function p(e,r,t){var n={};return t&&(n[m.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=d(e,r)})),n}function b(e,r){if(!r)return e;var t=[];for(var n in r)if(r.hasOwnProperty(n)){var a,o=r[n];null!=o&&t.push(n+":"+(null!==(a=JSON.stringify(o))&&void 0!==a?a:"undefined"))}return 0===t.length?e:e+"(".concat(t.join(","),")")}var m={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:b,getArgumentValue:d,getArgumentValues:p,getHandleStorageKey:function(e,r){var t=e.dynamicKey,o=e.handle,i=e.key,u=e.name,l=e.args,s=e.filters,c=a(o,i,u),f=null;return l&&s&&0!==l.length&&0!==s.length&&(f=l.filter((function(e){return s.indexOf(e.name)>-1}))),t&&(f=null!=f?[t].concat((0,n.default)(f)):[t]),null===f?c:b(c,p(f,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var t=function(e){var r,t;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(t=e.fragment)||void 0===t?void 0:t.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return t&&0!==t.length?b(n,p(t,r)):n},getStableStorageKey:function(e,r){return b(e,i(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=m},890:(e,r,t)=>{var n=t(634).getFragment,a=t(256).getSelector,o=t(56),i=[],u={};e.exports={readFragment:function(e,r){if(!i.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var t=i[i.length-1],l=n(e),s=a(l,r);null==s&&o(!1,"Expected a selector for the fragment of the resolver ".concat(l.name,", but got null.")),"SingularReaderSelector"!==s.kind&&o(!1,"Expected a singular reader selector for the fragment of the resolver ".concat(l.name,", but it was plural."));var c=t.getDataForResolverFragment(s,r),f=c.data,d=c.isMissingData,p=c.missingRequiredFields;if(d||null!=p&&"THROW"===p.action)throw u;return f},withResolverContext:function(e,r){i.push(e);try{return r()}finally{i.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:u}},222:(e,r,t)=>{var n=t(890).readFragment,a=t(56);e.exports=function(e,r,t,o){var i=r;return function(r,u){var l=n(e,r);if(null==t)return i(l,u);if(null==l){if(!0!==o)return i(null,u);a(!1,"Expected required resolver field `%s` in fragment `%s` to be present. But resolvers fragment data is null/undefined.",t,e.name)}if(t in l)return!0===o&&null==l[t]&&a(!1,"Expected required resolver field `%s` in fragment `%s` to be non-null.",t,e.name),i(l[t],u);a(!1,"Missing field `%s` in fragment `%s` in resolver response.",t,e.name)}}},696:(e,r,t)=>{var n=t(314).default,a=t(60),o=t(634).getFragment,i=t(250),u=t(541),l=t(256).getSelector,s=t(56);function c(){return(c=n((function*(e,r,t){var n;try{var a,o=yield new Promise((function(a,o){n=f(e,r,t).subscribe({next:function(e){"ok"===e.state?a(e.value):"error"===e.state&&o(e.error)}})}));return null===(a=n)||void 0===a||a.unsubscribe(),o}catch(e){var i;throw null===(i=n)||void 0===i||i.unsubscribe(),e}}))).apply(this,arguments)}function f(e,r,t){var n,i=o(r),u=l(i,t);switch(null!=(null===(n=i.metadata)||void 0===n?void 0:n.hasClientEdges)&&s(!1,"Client edges aren't supported yet."),null==u&&s(!1,"Expected a selector, got null."),u.kind){case"SingularReaderSelector":return function(e,r,t){var n=e.lookup(t);return a.create((function(a){a.next(d(e,r,t.owner,n));var o=e.subscribe(n,(function(n){a.next(d(e,r,t.owner,n))}));return function(){return o.dispose()}}))}(e,r,u);case"PluralReaderSelector":s(!1,"Plural fragments are not supported")}s(!1,"Unsupported fragment selector kind")}function d(e,r,t,n){var a=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,o=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(a||o)return{state:"loading"};if(n.isMissingData&&null!=i(e,r,t))return{state:"loading"};try{var l,c;u(e,n.missingRequiredFields,n.errorResponseFields,null!==(l=null===(c=n.selector.node.metadata)||void 0===c?void 0:c.throwOnFieldError)&&void 0!==l&&l)}catch(e){return{error:e,state:"error"}}return null==n.data&&s(!1,"Expected data to be non-null."),{state:"ok",value:n.data}}e.exports={observeFragment:f,waitForFragmentData:function(e,r,t){return c.apply(this,arguments)}}},461:(e,r,t)=>{var n=t(314).default,a=t(696).observeFragment;function o(){return(o=n((function*(e,r,t){var n;try{var o,i=yield new Promise((function(o,i){n=a(e,r,t).subscribe({next:function(e){"ok"===e.state?o(e.value):"error"===e.state&&i(e.error)}})}));return null===(o=n)||void 0===o||o.unsubscribe(),i}catch(e){var u;throw null===(u=n)||void 0===u||u.unsubscribe(),e}}))).apply(this,arguments)}e.exports={waitForFragmentData:function(e,r,t){return o.apply(this,arguments)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},153:(e,r,t)=>{var n=t(275).default,a=n(t(765)),o=n(t(311)),i=t(60),u=t(56),l=function(){function e(){var e=this;(0,o.default)(this,"_complete",!1),(0,o.default)(this,"_events",[]),(0,o.default)(this,"_sinks",new Set),(0,o.default)(this,"_subscription",[]),this._observable=i.create((function(r){e._sinks.add(r);for(var t=e._events,n=0;n<t.length&&!r.closed;n++){var a=t[n];switch(a.kind){case"complete":r.complete();break;case"error":r.error(a.error);break;case"next":r.next(a.data);break;default:a.kind,u(!1,"RelayReplaySubject: Unknown event kind `%s`.",a.kind)}}return function(){e._sinks.delete(r)}}))}var r=e.prototype;return r.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},r.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(r){return r.error(e)})))},r.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(r){return r.next(e)})))},r.subscribe=function(e){var r=this._observable.subscribe(e);return this._subscription.push(r),r},r.unsubscribe=function(){var e,r=(0,a.default)(this._subscription);try{for(r.s();!(e=r.n()).done;)e.value.unsubscribe()}catch(e){r.e(e)}finally{r.f()}this._subscription=[]},r.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},250:(e,r,t)=>{var n=t(367).getPromiseForActiveRequest;e.exports=function(e,r,t){var a,o,i=[],u=n(e,t);if(null!=u)i=[t];else{var l,s,c=e.getOperationTracker().getPendingOperationsAffectingOwner(t);i=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],u=null!==(s=null==c?void 0:c.promise)&&void 0!==s?s:null}if(!u)return null;var f=null!==(a=null===(o=i)||void 0===o?void 0:o.map((function(e){return e.node.params.name})).join(","))&&void 0!==a?a:null;null!=f&&0!==f.length||(f="Unknown pending operation");var d=r.name,p=f===d?"Relay(".concat(f,")"):"Relay(".concat(f,":").concat(d,")");return u.displayName=p,e.__log({name:"pendingoperation.found",fragment:r,fragmentOwner:t,pendingOperations:i}),{promise:u,pendingOperations:i}}},330:(e,r,t)=>{var n=t(204).DEFAULT_HANDLE_KEY,a=t(56);e.exports=function(e,r,t){return r&&r!==n?"__".concat(r,"_").concat(e):(null==t&&a(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(t,"_").concat(e))}},541:(e,r,t)=>{var n=t(275).default,a=n(t(264)),o=n(t(765)),i=["message"],u=t(288).RelayFieldError;e.exports=function(e,r,t,n){null!=r&&function(e,r){switch(r.action){case"THROW":var t=r.field,n=t.path,a=t.owner;throw e.relayFieldLogger({kind:"missing_required_field.throw",owner:a,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(a,"'."));case"LOG":r.fields.forEach((function(r){var t=r.path,n=r.owner;e.relayFieldLogger({kind:"missing_required_field.log",owner:n,fieldPath:t})}));break;default:r.action}}(e,r),null!=t&&function(e,r,t){var n,l=(0,o.default)(r);try{for(l.s();!(n=l.n()).done;){var s=n.value;e.relayFieldLogger(s)}}catch(e){l.e(e)}finally{l.f()}if(t)throw new u("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map((function(e){switch(e.kind){case"relay_field_payload.error":var r=e.error;return r.message,(0,a.default)(r,i);case"missing_expected_data.throw":case"missing_expected_data.log":case"relay_resolver.error":return{path:e.fieldPath.split(".")};default:throw e.kind,new Error("Relay: Unexpected event kind")}})))}(e,t,n)}},571:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var t=Object.keys(r).sort(),n={},a=0;a<t.length;a++)n[t[a]]=e(r[t[a]]);return n},hasCycle:function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(t.has(r))return!0;var n=new Set(t);return n.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,n)}))}}},314:r=>{r.exports=e},765:e=>{e.exports=r},311:e=>{e.exports=t},296:e=>{e.exports=n},275:e=>{e.exports=a},175:e=>{e.exports=o},264:e=>{e.exports=i},642:e=>{e.exports=u},757:e=>{e.exports=l},125:e=>{e.exports=s},446:e=>{e.exports=c},56:e=>{e.exports=f}},p={};return function e(r){var t=p[r];if(void 0!==t)return t.exports;var n=p[r]={exports:{}};return d[r](n,n.exports,e),n.exports}(649)})()));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relay v0.0.0-main-
|
|
2
|
+
* Relay v0.0.0-main-b6199194
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/wrapNativeSuper","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/wrapNativeSuper"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,t,n,i,a,o,u,l,s,c,f)=>(()=>{"use strict";var E={649:(e,r,t)=>{var n=t(222),i=t(696).observeFragment,a=t(461).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeFragment:i,waitForFragmentData:a}},60:(e,r,t)=>{var n=t(571),i=function(e,r){},a=function(){function e(e){this._source=e}e.create=function(r){return new e(r)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?o(e):n(e)?u(e):l(e)};var r=e.prototype;return r.catch=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(t){try{r(t).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(r){e.error(r,!0)}}}),function(){return n.unsubscribe()}}))},r.concat=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.do=function(r){var t=this;return e.create((function(e){var n=function(t){return function(){try{r[t]&&r[t].apply(r,arguments)}catch(e){i(e,!0)}e[t]&&e[t].apply(e,arguments)}};return t.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},r.finally=function(r){var t=this;return e.create((function(e){var n=t.subscribe(e);return function(){n.unsubscribe(),r()}}))},r.ifEmpty=function(r){var t=this;return e.create((function(e){var n,i=!1;return n=t.subscribe({next:function(r){i=!0,e.next(r)},error:e.error,complete:function(){i?e.complete():n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.subscribe=function(e){return function(e,r){var t,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(t){if(t.unsubscribe)t.unsubscribe();else try{t()}catch(e){i(e,!0)}t=void 0}}var u=a({unsubscribe:function(){if(!n){n=!0;try{r.unsubscribe&&r.unsubscribe(u)}catch(e){i(e,!0)}finally{o()}}}});try{r.start&&r.start(u)}catch(e){i(e,!0)}if(n)return u;var l=a({next:function(e){if(!n&&r.next)try{r.next(e)}catch(e){i(e,!0)}},error:function(e,t){if(n||!r.error)n=!0,i(e,t||!1),o();else{n=!0;try{r.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{r.complete&&r.complete()}catch(e){i(e,!0)}finally{o()}}}});try{t=e(l)}catch(e){l.error(e,!0)}return n&&o(),u}(this._source,e)},r.map=function(r){var t=this;return e.create((function(e){var n=t.subscribe({complete:e.complete,error:e.error,next:function(t){try{var n=r(t);e.next(n)}catch(r){e.error(r,!0)}}});return function(){n.unsubscribe()}}))},r.mergeMap=function(r){var t=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 t.subscribe({start:a,next:function(t){try{n.closed||e.from(r(t)).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}}))},r.poll=function(r){var t=this;return e.create((function(e){var n,i;return function a(){n=t.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,r)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},r.toPromise=function(){var e=this;return new Promise((function(r,t){var n=!1;e.subscribe({next:function(e){n||(n=!0,r(e))},error:t,complete:r})}))},e}();function o(e){return e instanceof a?e:a.create((function(r){return e.subscribe(r)}))}function u(e){return a.create((function(r){e.then((function(e){r.next(e),r.complete()}),r.error)}))}function l(e){return a.create((function(r){r.next(e),r.complete()}))}e.exports=a},634:(e,r,t)=>{var n=t(775),i=t(56);function a(e){var r=e;return"function"==typeof r?r=r():r.default&&(r=r.default),r}function o(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.FRAGMENT}function u(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.REQUEST}function l(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.UPDATABLE_QUERY}function s(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.INLINE_DATA_FRAGMENT}function c(e){var r=a(e);return o(r)||i(!1),r}t(446),e.exports={getFragment:c,getNode:a,getPaginationFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:t},getRefetchableFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch;return null===n||"object"!=typeof n?null:t},getRequest:function(e){var r=a(e);return u(r)||i(!1),r},getUpdatableQuery:function(e){var r=a(e);return l(r)||i(!1),r},getInlineDataFragment:function(e){var r=a(e);return s(r)||i(!1),r},graphql:function(e){i(!1)},isFragment:o,isRequest:u,isUpdatableQuery:l,isInlineDataFragment:s}},367:(e,r,t)=>{var n=t(60),i=t(153),a=t(56),o="function"==typeof WeakMap?new WeakMap:new Map;function u(e,r,t){return n.create((function(o){var u=s(e),l=u.get(r);return l||t().finally((function(){return u.delete(r)})).subscribe({start:function(e){l={identifier:r,subject:new i,subjectForInFlightStatus:new i,subscription:e,promise:null},u.set(r,l)},next:function(e){var t=c(u,r);t.subject.next(e),t.subjectForInFlightStatus.next(e)},error:function(e){var t=c(u,r);t.subject.error(e),t.subjectForInFlightStatus.error(e)},complete:function(){var e=c(u,r);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var t=c(u,r);t.subject.unsubscribe(),t.subjectForInFlightStatus.unsubscribe()}}),null==l&&a(!1),function(e,r){return n.create((function(t){var n=r.subject.subscribe(t);return function(){n.unsubscribe();var t=e.get(r.identifier);if(t){var i=t.subscription;null!=i&&0===t.subject.getObserverCount()&&(i.unsubscribe(),e.delete(r.identifier))}}}))}(u,l).subscribe(o)}))}function l(e,r,t){return n.create((function(r){var n=t.subjectForInFlightStatus.subscribe({error:r.error,next:function(n){e.isRequestActive(t.identifier)?r.next():r.complete()},complete:r.complete,unsubscribe:r.complete});return function(){n.unsubscribe()}}))}function s(e){var r=o.get(e);if(null!=r)return r;var t=new Map;return o.set(e,t),t}function c(e,r){var t=e.get(r);return null==t&&a(!1),t}e.exports={fetchQuery:function(e,r){return u(e,r.request.identifier,(function(){return e.execute({operation:r})}))},fetchQueryDeduped:u,getPromiseForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?new Promise((function(r,n){var i=!1;l(e,0,t).subscribe({complete:r,error:n,next:function(e){i&&r(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?l(e,0,t):null}}},129:(e,r,t)=>{var n=(0,t(275).default)(t(175)),i=t(165).getArgumentValues,a=t(56);e.exports={getLocalVariables:function(e,r,t){if(null==r)return e;var a=(0,n.default)({},e),o=t?i(t,e):{};return r.forEach((function(e){var r,t=null!==(r=o[e.name])&&void 0!==r?r:e.defaultValue;a[e.name]=t})),a},getFragmentVariables:function(e,r,t){return null==e.argumentDefinitions?t:(e.argumentDefinitions.forEach((function(e){if(!t.hasOwnProperty(e.name))switch(i=i||(0,n.default)({},t),e.kind){case"LocalArgument":i[e.name]=e.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(e.name)){i[e.name]=void 0;break}i[e.name]=r[e.name];break;default:a(!1)}})),i||t);var i},getOperationVariables:function(e,r,t){var n={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=t[e.name]&&(r=t[e.name]),n[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){n[e]=r[e].get()})),n}}},288:(e,r,t)=>{var n=t(275).default,i=n(t(175)),a=n(t(264)),o=n(t(765)),u=n(t(296)),l=n(t(757)),s=n(t(642)),c=["path","locations"],f=Symbol("$SELF"),E=function(e){function r(r){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(t=e.call(this,r)||this).name="RelayFieldError",t.message=r,t.errors=n,t}return(0,u.default)(r,e),r}((0,l.default)(Error));function p(e,r){var t,n=(0,o.default)(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,u=a[0],l=a[1],c=r.length;if(Array.isArray(l)?r.push.apply(r,(0,s.default)(l)):p(l,r),u!==f)for(var E=r.length,b=c;b<E;b++){var d=r[b];null==d.path?r[b]=(0,i.default)((0,i.default)({},d),{},{path:[u]}):d.path.unshift(u)}}}catch(e){n.e(e)}finally{n.f()}}e.exports={SELF:f,buildErrorTrie:function(e){if(null==e)return null;var r,t=new Map,n=(0,o.default)(e);try{for(n.s();!(r=n.n()).done;){var i=r.value,u=i.path,l=(i.locations,(0,a.default)(i,c));if(null!=u){var s=u.length;if(0!==s){for(var E=s-1,p=t,b=0;b<E;b++){var d=u[b],_=p.get(d);if(_ instanceof Map)p=_;else{var v=new Map;Array.isArray(_)&&v.set(f,_),p.set(d,v),p=v}}var h=u[E],m=p.get(h);m instanceof Map&&(m=(p=m).get(h),h=f),Array.isArray(m)?m.push(l):p.set(h,[l])}}}}catch(e){n.e(e)}finally{n.f()}return t},getNestedErrorTrieByKey:function(e,r){var t=e.get(r);return t instanceof Map?t:null},getErrorsByKey:function(e,r){var t=e.get(r);if(null==t)return null;if(Array.isArray(t))return t;var n=[];return p(t,n),n},RelayFieldError:E}},256:(e,r,t)=>{var n=t(129).getFragmentVariables,i=t(165),a=i.CLIENT_EDGE_TRAVERSAL_PATH,o=i.FRAGMENT_OWNER_KEY,u=i.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=i.FRAGMENTS_KEY,s=i.ID_KEY,c=t(125),f=t(56);function E(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var t=r[s],i=r[l],c=r[o],E=r[a];if("string"==typeof t&&"object"==typeof i&&null!==i&&"object"==typeof i[e.name]&&null!==i[e.name]&&"object"==typeof c&&null!==c&&(null==E||Array.isArray(E))){var p=c,b=E,d=i[e.name];return R(e,t,n(e,p.variables,d),p,!0===d[u],b)}return null}function p(e,r){var t=null;return r.forEach((function(r,n){var i=null!=r?E(e,r):null;null!=i&&(t=t||[]).push(i)})),null==t?null:{kind:"PluralReaderSelector",selectors:t}}function b(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),p(e,r)):(Array.isArray(r)&&f(!1),E(e,r))}function d(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),t=null,r.forEach((function(e){var r=null!=e?_(0,e):null;null!=r&&(t=t||[]).push(r)})),t):(Array.isArray(r)&&f(!1),_(0,r));var t}function _(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var t=r[s];return"string"==typeof t?t:null}function v(e,r){var t;return null==r?{}:!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)?(Array.isArray(r)||f(!1),m(e,r)):(Array.isArray(r)&&f(!1),h(e,r)||{})}function h(e,r){var t=E(e,r);return t?t.variables:null}function m(e,r){var t={};return r.forEach((function(r,n){if(null!=r){var i=h(e,r);null!=i&&Object.assign(t,i)}})),t}function g(e,r){return e.dataID===r.dataID&&e.node===r.node&&c(e.variables,r.variables)&&((t=e.owner)===(n=r.owner)||t.identifier===n.identifier&&c(t.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var t=e.length;t--;){var n=e[t],i=r[t];if(n!==i&&(null==n||null==i||n.clientEdgeDestinationID!==i.clientEdgeDestinationID||n.readerClientEdge!==i.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var t,n}function R(e,r,t,n){var i=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=i?i:null,node:e,variables:t,owner:n}}t(446),e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?g(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,t){return g(e,r.selectors[t])})))},createReaderSelector:R,createNormalizationSelector:function(e,r,t){return{dataID:r,node:e,variables:t}},getDataIDsFromFragment:d,getDataIDsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=r[n];t[n]=d(i,a)}return t},getSingularSelector:E,getPluralSelector:p,getSelector:b,getSelectorsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=r[n];t[n]=b(i,a)}return t},getVariablesFromSingularFragment:h,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=v(e[n],r[n]);Object.assign(t,i)}return t}}},165:(e,r,t)=>{var n=(0,t(275).default)(t(642)),i=t(330),a=t(775),o=t(94).stableCopy,u=t(56),l=a.VARIABLE,s=a.LITERAL,c=a.OBJECT_VALUE,f=a.LIST_VALUE;function E(e,r){if(e.kind===l)return function(e,r){return r.hasOwnProperty(e)||u(!1),o(r[e])}(e.variableName,r);if(e.kind===s)return e.value;if(e.kind===c){var t={};return e.fields.forEach((function(e){t[e.name]=E(e,r)})),t}if(e.kind===f){var n=[];return e.items.forEach((function(e){null!=e&&n.push(E(e,r))})),n}}function p(e,r,t){var n={};return t&&(n[d.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=E(e,r)})),n}function b(e,r){if(!r)return e;var t=[];for(var n in r)if(r.hasOwnProperty(n)){var i,a=r[n];null!=a&&t.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===t.length?e:e+"(".concat(t.join(","),")")}var d={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:b,getArgumentValue:E,getArgumentValues:p,getHandleStorageKey:function(e,r){var t=e.dynamicKey,a=e.handle,o=e.key,u=e.name,l=e.args,s=e.filters,c=i(a,o,u),f=null;return l&&s&&0!==l.length&&0!==s.length&&(f=l.filter((function(e){return s.indexOf(e.name)>-1}))),t&&(f=null!=f?[t].concat((0,n.default)(f)):[t]),null===f?c:b(c,p(f,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var t=function(e){var r,t;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(t=e.fragment)||void 0===t?void 0:t.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return t&&0!==t.length?b(n,p(t,r)):n},getStableStorageKey:function(e,r){return b(e,o(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=d},890:(e,r,t)=>{var n=t(634).getFragment,i=t(256).getSelector,a=t(56),o=[],u={};e.exports={readFragment:function(e,r){if(!o.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var t=o[o.length-1],l=n(e),s=i(l,r);null==s&&a(!1),"SingularReaderSelector"!==s.kind&&a(!1);var c=t.getDataForResolverFragment(s,r),f=c.data,E=c.isMissingData,p=c.missingRequiredFields;if(E||null!=p&&"THROW"===p.action)throw u;return f},withResolverContext:function(e,r){o.push(e);try{return r()}finally{o.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:u}},222:(e,r,t)=>{var n=t(890).readFragment,i=t(56);e.exports=function(e,r,t,a){var o=r;return function(r,u){var l=n(e,r);if(null==t)return o(l,u);if(null==l){if(!0!==a)return o(null,u);i(!1)}if(t in l)return!0===a&&null==l[t]&&i(!1),o(l[t],u);i(!1)}}},696:(e,r,t)=>{var n=t(314).default,i=t(60),a=t(634).getFragment,o=t(250),u=t(541),l=t(256).getSelector,s=t(56);function c(){return(c=n((function*(e,r,t){var n;try{var i,a=yield new Promise((function(i,a){n=f(e,r,t).subscribe({next:function(e){"ok"===e.state?i(e.value):"error"===e.state&&a(e.error)}})}));return null===(i=n)||void 0===i||i.unsubscribe(),a}catch(e){var o;throw null===(o=n)||void 0===o||o.unsubscribe(),e}}))).apply(this,arguments)}function f(e,r,t){var n,o=a(r),u=l(o,t);switch(null!=(null===(n=o.metadata)||void 0===n?void 0:n.hasClientEdges)&&s(!1),null==u&&s(!1),u.kind){case"SingularReaderSelector":return function(e,r,t){var n=e.lookup(t);return i.create((function(i){i.next(E(e,r,t.owner,n));var a=e.subscribe(n,(function(n){i.next(E(e,r,t.owner,n))}));return function(){return a.dispose()}}))}(e,r,u);case"PluralReaderSelector":s(!1)}s(!1)}function E(e,r,t,n){var i=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,a=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(i||a)return{state:"loading"};if(n.isMissingData&&null!=o(e,r,t))return{state:"loading"};try{var l,c;u(e,n.missingRequiredFields,n.relayResolverErrors,n.errorResponseFields,null!==(l=null===(c=n.selector.node.metadata)||void 0===c?void 0:c.throwOnFieldError)&&void 0!==l&&l)}catch(e){return{error:e,state:"error"}}return null==n.data&&s(!1),{state:"ok",value:n.data}}e.exports={observeFragment:f,waitForFragmentData:function(e,r,t){return c.apply(this,arguments)}}},461:(e,r,t)=>{var n=t(314).default,i=t(696).observeFragment;function a(){return(a=n((function*(e,r,t){var n;try{var a,o=yield new Promise((function(a,o){n=i(e,r,t).subscribe({next:function(e){"ok"===e.state?a(e.value):"error"===e.state&&o(e.error)}})}));return null===(a=n)||void 0===a||a.unsubscribe(),o}catch(e){var u;throw null===(u=n)||void 0===u||u.unsubscribe(),e}}))).apply(this,arguments)}e.exports={waitForFragmentData:function(e,r,t){return a.apply(this,arguments)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},770:e=>{e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!1,AVOID_CYCLES_IN_RESOLVER_NOTIFICATION:!1}},153:(e,r,t)=>{var n=t(275).default,i=n(t(765)),a=n(t(311)),o=t(60),u=t(56),l=function(){function e(){var e=this;(0,a.default)(this,"_complete",!1),(0,a.default)(this,"_events",[]),(0,a.default)(this,"_sinks",new Set),(0,a.default)(this,"_subscription",[]),this._observable=o.create((function(r){e._sinks.add(r);for(var t=e._events,n=0;n<t.length&&!r.closed;n++){var i=t[n];switch(i.kind){case"complete":r.complete();break;case"error":r.error(i.error);break;case"next":r.next(i.data);break;default:i.kind,u(!1)}}return function(){e._sinks.delete(r)}}))}var r=e.prototype;return r.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},r.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(r){return r.error(e)})))},r.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(r){return r.next(e)})))},r.subscribe=function(e){var r=this._observable.subscribe(e);return this._subscription.push(r),r},r.unsubscribe=function(){var e,r=(0,i.default)(this._subscription);try{for(r.s();!(e=r.n()).done;)e.value.unsubscribe()}catch(e){r.e(e)}finally{r.f()}this._subscription=[]},r.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},250:(e,r,t)=>{var n=t(367).getPromiseForActiveRequest;e.exports=function(e,r,t){var i,a,o=[],u=n(e,t);if(null!=u)o=[t];else{var l,s,c=e.getOperationTracker().getPendingOperationsAffectingOwner(t);o=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],u=null!==(s=null==c?void 0:c.promise)&&void 0!==s?s:null}if(!u)return null;var f=null!==(i=null===(a=o)||void 0===a?void 0:a.map((function(e){return e.node.params.name})).join(","))&&void 0!==i?i:null;null!=f&&0!==f.length||(f="Unknown pending operation");var E=r.name,p=f===E?"Relay(".concat(f,")"):"Relay(".concat(f,":").concat(E,")");return u.displayName=p,e.__log({name:"pendingoperation.found",fragment:r,fragmentOwner:t,pendingOperations:o}),{promise:u,pendingOperations:o}}},330:(e,r,t)=>{var n=t(204).DEFAULT_HANDLE_KEY,i=t(56);e.exports=function(e,r,t){return r&&r!==n?"__".concat(r,"_").concat(e):(null==t&&i(!1),"__".concat(t,"_").concat(e))}},541:(e,r,t)=>{var n=t(275).default,i=n(t(264)),a=n(t(765)),o=["message"],u=t(288).RelayFieldError,l=t(770);e.exports=function(e,r,t,n,s){t.length>0&&function(e,r,t){var n,i=(0,a.default)(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.relayFieldLogger(o)}}catch(e){i.e(e)}finally{i.f()}if(l.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT||t)throw new u("Relay: Unexpected resolver exception",r.map((function(e){return{path:e.fieldPath.split(".")}})))}(e,t,s),null!=r&&function(e,r){switch(r.action){case"THROW":var t=r.field,n=t.path,i=t.owner;throw e.relayFieldLogger({kind:"missing_required_field.throw",owner:i,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(i,"'."));case"LOG":r.fields.forEach((function(r){var t=r.path,n=r.owner;e.relayFieldLogger({kind:"missing_required_field.log",owner:n,fieldPath:t})}));break;default:r.action}}(e,r),null!=n&&function(e,r,t){var n,l=(0,a.default)(r);try{for(l.s();!(n=l.n()).done;){var s=n.value;e.relayFieldLogger(s)}}catch(e){l.e(e)}finally{l.f()}if(t)throw new u("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map((function(e){switch(e.kind){case"relay_field_payload.error":var r=e.error;return r.message,(0,i.default)(r,o);case"missing_expected_data.throw":case"missing_expected_data.log":return{path:e.fieldPath.split(".")};default:throw e.kind,new Error("Relay: Unexpected event kind")}})))}(e,n,s)}},571:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var t=Object.keys(r).sort(),n={},i=0;i<t.length;i++)n[t[i]]=e(r[t[i]]);return n},hasCycle:function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(t.has(r))return!0;var n=new Set(t);return n.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,n)}))}}},314:r=>{r.exports=e},765:e=>{e.exports=r},311:e=>{e.exports=t},296:e=>{e.exports=n},275:e=>{e.exports=i},175:e=>{e.exports=a},264:e=>{e.exports=o},642:e=>{e.exports=u},757:e=>{e.exports=l},125:e=>{e.exports=s},446:e=>{e.exports=c},56:e=>{e.exports=f}},p={};return function e(r){var t=p[r];if(void 0!==t)return t.exports;var n=p[r]={exports:{}};return E[r](n,n.exports,e),n.exports}(649)})()));
|
|
9
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/wrapNativeSuper","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/wrapNativeSuper"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,t,n,i,a,o,u,l,s,c,f)=>(()=>{"use strict";var p={649:(e,r,t)=>{var n=t(222),i=t(696).observeFragment,a=t(461).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeFragment:i,waitForFragmentData:a}},60:(e,r,t)=>{var n=t(571),i=function(e,r){},a=function(){function e(e){this._source=e}e.create=function(r){return new e(r)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?o(e):n(e)?u(e):l(e)};var r=e.prototype;return r.catch=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(t){try{r(t).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(r){e.error(r,!0)}}}),function(){return n.unsubscribe()}}))},r.concat=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.do=function(r){var t=this;return e.create((function(e){var n=function(t){return function(){try{r[t]&&r[t].apply(r,arguments)}catch(e){i(e,!0)}e[t]&&e[t].apply(e,arguments)}};return t.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},r.finally=function(r){var t=this;return e.create((function(e){var n=t.subscribe(e);return function(){n.unsubscribe(),r()}}))},r.ifEmpty=function(r){var t=this;return e.create((function(e){var n,i=!1;return n=t.subscribe({next:function(r){i=!0,e.next(r)},error:e.error,complete:function(){i?e.complete():n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.subscribe=function(e){return function(e,r){var t,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(t){if(t.unsubscribe)t.unsubscribe();else try{t()}catch(e){i(e,!0)}t=void 0}}var u=a({unsubscribe:function(){if(!n){n=!0;try{r.unsubscribe&&r.unsubscribe(u)}catch(e){i(e,!0)}finally{o()}}}});try{r.start&&r.start(u)}catch(e){i(e,!0)}if(n)return u;var l=a({next:function(e){if(!n&&r.next)try{r.next(e)}catch(e){i(e,!0)}},error:function(e,t){if(n||!r.error)n=!0,i(e,t||!1),o();else{n=!0;try{r.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{r.complete&&r.complete()}catch(e){i(e,!0)}finally{o()}}}});try{t=e(l)}catch(e){l.error(e,!0)}return n&&o(),u}(this._source,e)},r.map=function(r){var t=this;return e.create((function(e){var n=t.subscribe({complete:e.complete,error:e.error,next:function(t){try{var n=r(t);e.next(n)}catch(r){e.error(r,!0)}}});return function(){n.unsubscribe()}}))},r.mergeMap=function(r){var t=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 t.subscribe({start:a,next:function(t){try{n.closed||e.from(r(t)).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}}))},r.poll=function(r){var t=this;return e.create((function(e){var n,i;return function a(){n=t.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,r)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},r.toPromise=function(){var e=this;return new Promise((function(r,t){var n=!1;e.subscribe({next:function(e){n||(n=!0,r(e))},error:t,complete:r})}))},e}();function o(e){return e instanceof a?e:a.create((function(r){return e.subscribe(r)}))}function u(e){return a.create((function(r){e.then((function(e){r.next(e),r.complete()}),r.error)}))}function l(e){return a.create((function(r){r.next(e),r.complete()}))}e.exports=a},634:(e,r,t)=>{var n=t(775),i=t(56);function a(e){var r=e;return"function"==typeof r?r=r():r.default&&(r=r.default),r}function o(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.FRAGMENT}function u(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.REQUEST}function l(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.UPDATABLE_QUERY}function s(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.INLINE_DATA_FRAGMENT}function c(e){var r=a(e);return o(r)||i(!1),r}t(446),e.exports={getFragment:c,getNode:a,getPaginationFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:t},getRefetchableFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch;return null===n||"object"!=typeof n?null:t},getRequest:function(e){var r=a(e);return u(r)||i(!1),r},getUpdatableQuery:function(e){var r=a(e);return l(r)||i(!1),r},getInlineDataFragment:function(e){var r=a(e);return s(r)||i(!1),r},graphql:function(e){i(!1)},isFragment:o,isRequest:u,isUpdatableQuery:l,isInlineDataFragment:s}},367:(e,r,t)=>{var n=t(60),i=t(153),a=t(56),o="function"==typeof WeakMap?new WeakMap:new Map;function u(e,r,t){return n.create((function(o){var u=s(e),l=u.get(r);return l||t().finally((function(){return u.delete(r)})).subscribe({start:function(e){l={identifier:r,subject:new i,subjectForInFlightStatus:new i,subscription:e,promise:null},u.set(r,l)},next:function(e){var t=c(u,r);t.subject.next(e),t.subjectForInFlightStatus.next(e)},error:function(e){var t=c(u,r);t.subject.error(e),t.subjectForInFlightStatus.error(e)},complete:function(){var e=c(u,r);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var t=c(u,r);t.subject.unsubscribe(),t.subjectForInFlightStatus.unsubscribe()}}),null==l&&a(!1),function(e,r){return n.create((function(t){var n=r.subject.subscribe(t);return function(){n.unsubscribe();var t=e.get(r.identifier);if(t){var i=t.subscription;null!=i&&0===t.subject.getObserverCount()&&(i.unsubscribe(),e.delete(r.identifier))}}}))}(u,l).subscribe(o)}))}function l(e,r,t){return n.create((function(r){var n=t.subjectForInFlightStatus.subscribe({error:r.error,next:function(n){e.isRequestActive(t.identifier)?r.next():r.complete()},complete:r.complete,unsubscribe:r.complete});return function(){n.unsubscribe()}}))}function s(e){var r=o.get(e);if(null!=r)return r;var t=new Map;return o.set(e,t),t}function c(e,r){var t=e.get(r);return null==t&&a(!1),t}e.exports={fetchQuery:function(e,r){return u(e,r.request.identifier,(function(){return e.execute({operation:r})}))},fetchQueryDeduped:u,getPromiseForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?new Promise((function(r,n){var i=!1;l(e,0,t).subscribe({complete:r,error:n,next:function(e){i&&r(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?l(e,0,t):null}}},129:(e,r,t)=>{var n=(0,t(275).default)(t(175)),i=t(165).getArgumentValues,a=t(56);e.exports={getLocalVariables:function(e,r,t){if(null==r)return e;var a=(0,n.default)({},e),o=t?i(t,e):{};return r.forEach((function(e){var r,t=null!==(r=o[e.name])&&void 0!==r?r:e.defaultValue;a[e.name]=t})),a},getFragmentVariables:function(e,r,t){return null==e.argumentDefinitions?t:(e.argumentDefinitions.forEach((function(e){if(!t.hasOwnProperty(e.name))switch(i=i||(0,n.default)({},t),e.kind){case"LocalArgument":i[e.name]=e.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(e.name)){i[e.name]=void 0;break}i[e.name]=r[e.name];break;default:a(!1)}})),i||t);var i},getOperationVariables:function(e,r,t){var n={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=t[e.name]&&(r=t[e.name]),n[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){n[e]=r[e].get()})),n}}},288:(e,r,t)=>{var n=t(275).default,i=n(t(175)),a=n(t(264)),o=n(t(765)),u=n(t(296)),l=n(t(757)),s=n(t(642)),c=["path","locations"],f=Symbol("$SELF"),p=function(e){function r(r){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(t=e.call(this,r)||this).name="RelayFieldError",t.message=r,t.errors=n,t}return(0,u.default)(r,e),r}((0,l.default)(Error));function b(e,r){var t,n=(0,o.default)(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,u=a[0],l=a[1],c=r.length;if(Array.isArray(l)?r.push.apply(r,(0,s.default)(l)):b(l,r),u!==f)for(var p=r.length,d=c;d<p;d++){var v=r[d];null==v.path?r[d]=(0,i.default)((0,i.default)({},v),{},{path:[u]}):v.path.unshift(u)}}}catch(e){n.e(e)}finally{n.f()}}e.exports={SELF:f,buildErrorTrie:function(e){if(null==e)return null;var r,t=new Map,n=(0,o.default)(e);try{for(n.s();!(r=n.n()).done;){var i=r.value,u=i.path,l=(i.locations,(0,a.default)(i,c));if(null!=u){var s=u.length;if(0!==s){for(var p=s-1,b=t,d=0;d<p;d++){var v=u[d],m=b.get(v);if(m instanceof Map)b=m;else{var h=new Map;Array.isArray(m)&&h.set(f,m),b.set(v,h),b=h}}var E=u[p],g=b.get(E);g instanceof Map&&(g=(b=g).get(E),E=f),Array.isArray(g)?g.push(l):b.set(E,[l])}}}}catch(e){n.e(e)}finally{n.f()}return t},getNestedErrorTrieByKey:function(e,r){var t=e.get(r);return t instanceof Map?t:null},getErrorsByKey:function(e,r){var t=e.get(r);if(null==t)return null;if(Array.isArray(t))return t;var n=[];return b(t,n),n},RelayFieldError:p}},256:(e,r,t)=>{var n=t(129).getFragmentVariables,i=t(165),a=i.CLIENT_EDGE_TRAVERSAL_PATH,o=i.FRAGMENT_OWNER_KEY,u=i.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=i.FRAGMENTS_KEY,s=i.ID_KEY,c=t(125),f=t(56);function p(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var t=r[s],i=r[l],c=r[o],p=r[a];if("string"==typeof t&&"object"==typeof i&&null!==i&&"object"==typeof i[e.name]&&null!==i[e.name]&&"object"==typeof c&&null!==c&&(null==p||Array.isArray(p))){var b=c,d=p,v=i[e.name];return y(e,t,n(e,b.variables,v),b,!0===v[u],d)}return null}function b(e,r){var t=null;return r.forEach((function(r,n){var i=null!=r?p(e,r):null;null!=i&&(t=t||[]).push(i)})),null==t?null:{kind:"PluralReaderSelector",selectors:t}}function d(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),b(e,r)):(Array.isArray(r)&&f(!1),p(e,r))}function v(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),t=null,r.forEach((function(e){var r=null!=e?m(0,e):null;null!=r&&(t=t||[]).push(r)})),t):(Array.isArray(r)&&f(!1),m(0,r));var t}function m(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var t=r[s];return"string"==typeof t?t:null}function h(e,r){var t;return null==r?{}:!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)?(Array.isArray(r)||f(!1),g(e,r)):(Array.isArray(r)&&f(!1),E(e,r)||{})}function E(e,r){var t=p(e,r);return t?t.variables:null}function g(e,r){var t={};return r.forEach((function(r,n){if(null!=r){var i=E(e,r);null!=i&&Object.assign(t,i)}})),t}function _(e,r){return e.dataID===r.dataID&&e.node===r.node&&c(e.variables,r.variables)&&((t=e.owner)===(n=r.owner)||t.identifier===n.identifier&&c(t.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var t=e.length;t--;){var n=e[t],i=r[t];if(n!==i&&(null==n||null==i||n.clientEdgeDestinationID!==i.clientEdgeDestinationID||n.readerClientEdge!==i.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var t,n}function y(e,r,t,n){var i=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=i?i:null,node:e,variables:t,owner:n}}t(446),e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?_(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,t){return _(e,r.selectors[t])})))},createReaderSelector:y,createNormalizationSelector:function(e,r,t){return{dataID:r,node:e,variables:t}},getDataIDsFromFragment:v,getDataIDsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=r[n];t[n]=v(i,a)}return t},getSingularSelector:p,getPluralSelector:b,getSelector:d,getSelectorsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=r[n];t[n]=d(i,a)}return t},getVariablesFromSingularFragment:E,getVariablesFromPluralFragment:g,getVariablesFromFragment:h,getVariablesFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=h(e[n],r[n]);Object.assign(t,i)}return t}}},165:(e,r,t)=>{var n=(0,t(275).default)(t(642)),i=t(330),a=t(775),o=t(94).stableCopy,u=t(56),l=a.VARIABLE,s=a.LITERAL,c=a.OBJECT_VALUE,f=a.LIST_VALUE;function p(e,r){if(e.kind===l)return function(e,r){return r.hasOwnProperty(e)||u(!1),o(r[e])}(e.variableName,r);if(e.kind===s)return e.value;if(e.kind===c){var t={};return e.fields.forEach((function(e){t[e.name]=p(e,r)})),t}if(e.kind===f){var n=[];return e.items.forEach((function(e){null!=e&&n.push(p(e,r))})),n}}function b(e,r,t){var n={};return t&&(n[v.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=p(e,r)})),n}function d(e,r){if(!r)return e;var t=[];for(var n in r)if(r.hasOwnProperty(n)){var i,a=r[n];null!=a&&t.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===t.length?e:e+"(".concat(t.join(","),")")}var v={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:d,getArgumentValue:p,getArgumentValues:b,getHandleStorageKey:function(e,r){var t=e.dynamicKey,a=e.handle,o=e.key,u=e.name,l=e.args,s=e.filters,c=i(a,o,u),f=null;return l&&s&&0!==l.length&&0!==s.length&&(f=l.filter((function(e){return s.indexOf(e.name)>-1}))),t&&(f=null!=f?[t].concat((0,n.default)(f)):[t]),null===f?c:d(c,b(f,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var t=function(e){var r,t;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(t=e.fragment)||void 0===t?void 0:t.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return t&&0!==t.length?d(n,b(t,r)):n},getStableStorageKey:function(e,r){return d(e,o(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=v},890:(e,r,t)=>{var n=t(634).getFragment,i=t(256).getSelector,a=t(56),o=[],u={};e.exports={readFragment:function(e,r){if(!o.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var t=o[o.length-1],l=n(e),s=i(l,r);null==s&&a(!1),"SingularReaderSelector"!==s.kind&&a(!1);var c=t.getDataForResolverFragment(s,r),f=c.data,p=c.isMissingData,b=c.missingRequiredFields;if(p||null!=b&&"THROW"===b.action)throw u;return f},withResolverContext:function(e,r){o.push(e);try{return r()}finally{o.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:u}},222:(e,r,t)=>{var n=t(890).readFragment,i=t(56);e.exports=function(e,r,t,a){var o=r;return function(r,u){var l=n(e,r);if(null==t)return o(l,u);if(null==l){if(!0!==a)return o(null,u);i(!1)}if(t in l)return!0===a&&null==l[t]&&i(!1),o(l[t],u);i(!1)}}},696:(e,r,t)=>{var n=t(314).default,i=t(60),a=t(634).getFragment,o=t(250),u=t(541),l=t(256).getSelector,s=t(56);function c(){return(c=n((function*(e,r,t){var n;try{var i,a=yield new Promise((function(i,a){n=f(e,r,t).subscribe({next:function(e){"ok"===e.state?i(e.value):"error"===e.state&&a(e.error)}})}));return null===(i=n)||void 0===i||i.unsubscribe(),a}catch(e){var o;throw null===(o=n)||void 0===o||o.unsubscribe(),e}}))).apply(this,arguments)}function f(e,r,t){var n,o=a(r),u=l(o,t);switch(null!=(null===(n=o.metadata)||void 0===n?void 0:n.hasClientEdges)&&s(!1),null==u&&s(!1),u.kind){case"SingularReaderSelector":return function(e,r,t){var n=e.lookup(t);return i.create((function(i){i.next(p(e,r,t.owner,n));var a=e.subscribe(n,(function(n){i.next(p(e,r,t.owner,n))}));return function(){return a.dispose()}}))}(e,r,u);case"PluralReaderSelector":s(!1)}s(!1)}function p(e,r,t,n){var i=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,a=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(i||a)return{state:"loading"};if(n.isMissingData&&null!=o(e,r,t))return{state:"loading"};try{var l,c;u(e,n.missingRequiredFields,n.errorResponseFields,null!==(l=null===(c=n.selector.node.metadata)||void 0===c?void 0:c.throwOnFieldError)&&void 0!==l&&l)}catch(e){return{error:e,state:"error"}}return null==n.data&&s(!1),{state:"ok",value:n.data}}e.exports={observeFragment:f,waitForFragmentData:function(e,r,t){return c.apply(this,arguments)}}},461:(e,r,t)=>{var n=t(314).default,i=t(696).observeFragment;function a(){return(a=n((function*(e,r,t){var n;try{var a,o=yield new Promise((function(a,o){n=i(e,r,t).subscribe({next:function(e){"ok"===e.state?a(e.value):"error"===e.state&&o(e.error)}})}));return null===(a=n)||void 0===a||a.unsubscribe(),o}catch(e){var u;throw null===(u=n)||void 0===u||u.unsubscribe(),e}}))).apply(this,arguments)}e.exports={waitForFragmentData:function(e,r,t){return a.apply(this,arguments)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},153:(e,r,t)=>{var n=t(275).default,i=n(t(765)),a=n(t(311)),o=t(60),u=t(56),l=function(){function e(){var e=this;(0,a.default)(this,"_complete",!1),(0,a.default)(this,"_events",[]),(0,a.default)(this,"_sinks",new Set),(0,a.default)(this,"_subscription",[]),this._observable=o.create((function(r){e._sinks.add(r);for(var t=e._events,n=0;n<t.length&&!r.closed;n++){var i=t[n];switch(i.kind){case"complete":r.complete();break;case"error":r.error(i.error);break;case"next":r.next(i.data);break;default:i.kind,u(!1)}}return function(){e._sinks.delete(r)}}))}var r=e.prototype;return r.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},r.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(r){return r.error(e)})))},r.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(r){return r.next(e)})))},r.subscribe=function(e){var r=this._observable.subscribe(e);return this._subscription.push(r),r},r.unsubscribe=function(){var e,r=(0,i.default)(this._subscription);try{for(r.s();!(e=r.n()).done;)e.value.unsubscribe()}catch(e){r.e(e)}finally{r.f()}this._subscription=[]},r.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},250:(e,r,t)=>{var n=t(367).getPromiseForActiveRequest;e.exports=function(e,r,t){var i,a,o=[],u=n(e,t);if(null!=u)o=[t];else{var l,s,c=e.getOperationTracker().getPendingOperationsAffectingOwner(t);o=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],u=null!==(s=null==c?void 0:c.promise)&&void 0!==s?s:null}if(!u)return null;var f=null!==(i=null===(a=o)||void 0===a?void 0:a.map((function(e){return e.node.params.name})).join(","))&&void 0!==i?i:null;null!=f&&0!==f.length||(f="Unknown pending operation");var p=r.name,b=f===p?"Relay(".concat(f,")"):"Relay(".concat(f,":").concat(p,")");return u.displayName=b,e.__log({name:"pendingoperation.found",fragment:r,fragmentOwner:t,pendingOperations:o}),{promise:u,pendingOperations:o}}},330:(e,r,t)=>{var n=t(204).DEFAULT_HANDLE_KEY,i=t(56);e.exports=function(e,r,t){return r&&r!==n?"__".concat(r,"_").concat(e):(null==t&&i(!1),"__".concat(t,"_").concat(e))}},541:(e,r,t)=>{var n=t(275).default,i=n(t(264)),a=n(t(765)),o=["message"],u=t(288).RelayFieldError;e.exports=function(e,r,t,n){null!=r&&function(e,r){switch(r.action){case"THROW":var t=r.field,n=t.path,i=t.owner;throw e.relayFieldLogger({kind:"missing_required_field.throw",owner:i,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(i,"'."));case"LOG":r.fields.forEach((function(r){var t=r.path,n=r.owner;e.relayFieldLogger({kind:"missing_required_field.log",owner:n,fieldPath:t})}));break;default:r.action}}(e,r),null!=t&&function(e,r,t){var n,l=(0,a.default)(r);try{for(l.s();!(n=l.n()).done;){var s=n.value;e.relayFieldLogger(s)}}catch(e){l.e(e)}finally{l.f()}if(t)throw new u("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map((function(e){switch(e.kind){case"relay_field_payload.error":var r=e.error;return r.message,(0,i.default)(r,o);case"missing_expected_data.throw":case"missing_expected_data.log":case"relay_resolver.error":return{path:e.fieldPath.split(".")};default:throw e.kind,new Error("Relay: Unexpected event kind")}})))}(e,t,n)}},571:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var t=Object.keys(r).sort(),n={},i=0;i<t.length;i++)n[t[i]]=e(r[t[i]]);return n},hasCycle:function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(t.has(r))return!0;var n=new Set(t);return n.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,n)}))}}},314:r=>{r.exports=e},765:e=>{e.exports=r},311:e=>{e.exports=t},296:e=>{e.exports=n},275:e=>{e.exports=i},175:e=>{e.exports=a},264:e=>{e.exports=o},642:e=>{e.exports=u},757:e=>{e.exports=l},125:e=>{e.exports=s},446:e=>{e.exports=c},56:e=>{e.exports=f}},b={};return function e(r){var t=b[r];if(void 0!==t)return t.exports;var n=b[r]={exports:{}};return p[r](n,n.exports,e),n.exports}(649)})()));
|