1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3068],{4092:function(e,t,r){r.d(t,{dP:function(){return j},re:function(){return R}});var n,i=function(){return Object.create(null)},o=Array.prototype,a=o.forEach,s=o.slice,u=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=i),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return a.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(s.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}(),c=r(93);function l(){}var f=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=l),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),h=new c.g7,p=Object.prototype.hasOwnProperty,d=void 0===(n=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:n;function v(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var y=[];function m(e,t){if(!e)throw Error(t||"assertion failure")}function g(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var b=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!w(this))return _(this),this.value[0]},e.prototype.recompute=function(e){var t;return m(!this.recomputing,"already recomputing"),_(this),w(this)&&(x(this),h.withValue(this,k,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{v(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,w(this)||(t=this,O(t,E)))),g(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,O(this,S),v(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),x(this),O(this,function(t,r){t.setDirty(),q(t,e)})},e.prototype.forget=function(){this.dispose()}
1,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=y.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(d(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),y.push(this.deps),this.deps=null)},e.count=0,e}();function _(e){var t=h.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),w(e)?S(t,e):E(t,e),t}function k(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function w(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function O(e,t){var r=e.parents.size;if(r)for(var n=d(e.parents),i=0;i<r;++i)t(n[i],e)}function S(e,t){m(e.childValues.has(t)),m(w(t));var r=!w(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=y.pop()||new Set;e.dirtyChildren.add(t),r&&O(e,S)}function E(e,t){m(e.childValues.has(t)),m(!w(t));var r,n,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(r=t.value,(n=i.length)>0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),D(e,t),w(e)||O(e,E)}function D(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(y.length<100&&y.push(r),e.dirtyChildren=null))}function x(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){q(e,r)}),e.forgetDeps(),m(null===e.dirtyChildren)}function q(e,t){t.parents.delete(e),e.childValues.delete(t),D(e,t)}var I={setDirty:!0,dispose:!0,forget:!0};function j(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=h.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(v(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&p.call(I,r)?r:"setDirty";d(n).forEach(function(e){return e[i]()}),t.delete(e),v(n)}},n}function F(){var e=new u("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}F();var T=new Set;function R(e,t){void 0===t&&(t=Object.create(null));var r=new f(t.max||65536,function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||F(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new b(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),T.add(r),h.hasValue()||(T.forEach(function(e){return e.clean()}),T.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function s(e){var t=r.get(e);if(t)return t.peek()}function u(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},8819:function(e,t,r){r.d(t,{h:function(){return eg}});var n,i,o=r(7582),a=r(3917),s=r(4092),u=r(20),c=r(3361),l=function(){function e(){this.getFragmentDoc=(0,s.re)(c.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}(),f=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.ZT)(t,e),t}(Error),h=r(1761),p=r(6487),d=r(7359),v=r(320),y=r(3712),m=r(6765),g=r(9832),b=r(9065),_=r(8702),k=r(3154),w=r(5028),O=r(2651),S=Object.prototype.hasOwnProperty;function E(e){return null==e}function D(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=E(n)?E(i)?void 0:{_id:i}:{id:n}),E(n)&&!E(i)&&(n=i),!E(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var x={dataIdFromObject:D,addTypename:!0,resultCaching:!0,canonizeResults:!1};function q(e){var t=e.canonizeResults;return void 0===t?x.canonizeResults:t}var I=/^[_a-z][_0-9a-z]*/i;function j(e){var t=e.match(I);return t?t[0]:e}function F(e){return(0,k.s)(e)&&!(0,h.Yk)(e)&&!(0,O.k)(e)}function T(e,t){var r=(0,c.F)((0,m.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var R=Object.create(null),P=function(){return R},C=Object.create(null),Q=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,_.J)((0,h.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,h.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,h.kQ)(e);if((0,h.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,h.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),S.call(this.data,e)){var r=this.data[e];if(r&&S.call(r,t))return r[t]}return"__typename"===t&&S.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof N?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),S.call(this.data,e))?this.data[e]:this instanceof N?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,h.Yk)(e)&&(e=e.__ref),(0,h.Yk)(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){__DEV__?(0,a.kG)("string"==typeof r,"store.merge expects a string ID"):(0,a.kG)("string"==typeof r,1);var s=new g.w0(L).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=j(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof N||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,u={DELETE:R,INVALIDATE:C,isReference:h.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,h.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(c){var l=j(c),f=n[c];if(void 0!==f){var h="function"==typeof t?t:t[c]||t[l];if(h){var p=h===P?R:h((0,_.J)(f),(0,o.pi)((0,o.pi)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));p===C?r.group.dirty(e,c):(p===R&&(p=void 0),p!==f&&(i[c]=p,a=!0,f=p))}void 0!==f&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof N?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=P,n):P)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(S.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof N&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){S.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&S.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof N?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){S.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof N;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!S.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,h.Yk)(e)&&(t[e.__ref]=!0),(0,k.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,k.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),V=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new w.B(v.mr)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=j(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function M(e,t){G(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new V(void 0===n||n))||this;return o.stump=new A(o),o.storageTrie=new w.B(v.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=Q||(Q={})),n.Root=i;var N=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,u.D)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return S.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Q),A=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new V(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(N);function L(e,t,r){var n=e[r],i=t[r];return(0,u.D)(n,i)?n:i}function G(e){return!!(e instanceof Q&&e.group.caching)}var z=r(900);function B(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var W=function(){function e(e){var t=this;this.knownResults=new(v.mr?WeakMap:Map),this.config=(0,y.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:q(e)}),this.canon=e.canon||new z.h,this.executeSelectionSet=(0,s.re)(function(e){var r,n=e.context.canonizeResults,i=B(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(M(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:B,makeCacheKey:function(e,t,r,n){if(G(r.store))return r.store.makeCacheKey(e,(0,h.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return M(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(G(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new z.h},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=void 0===i?"ROOT_QUERY":i,s=e.variables,u=e.returnPartialData,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,p=this.config.cache.policies;s=(0,o.pi)((0,o.pi)({},(0,m.O4)((0,m.iW)(n))),s);var d=(0,h.kQ)(a),v=this.executeSelectionSet({selectionSet:(0,m.p$)(n).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,o.pi)({store:r,query:n,policies:p,variables:s,varString:(0,z.B)(s),canonizeResults:l},T(n,this.config.fragments))});if(v.missing&&(t=[new f(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(v.missing),v.missing,n,s)],!(void 0===u||u)))throw t[0];return{result:v.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(G(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,h.Yk)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,l=s.policies,f=s.store.getFieldValue(i,"__typename"),v=[],y=new g.w0;function m(e,r){var n;return e.missing&&(t=y.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof f&&!l.rootIdsByTypename[f]&&v.push({__typename:f});var k=new Set(n.selections);
1k.forEach(function(e){var n,g;if((0,b.LZ)(e,u)){if((0,h.My)(e)){var _=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),w=(0,h.u2)(e);void 0===_?p.Gw.added(e)||(t=y.merge(t,((n={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,O.k)(_)?_=m(r.executeSubSelectedArray({field:e,array:_,enclosingRef:o,context:s}),w):e.selectionSet?null!=_&&(_=m(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:_,enclosingRef:(0,h.Yk)(_)?_:o,context:s}),w)):s.canonizeResults&&(_=r.canon.pass(_)),void 0!==_&&v.push(((g={})[w]=_,g))}else{var S=(0,c.hi)(e,s.lookupFragment);if(!S&&e.kind===d.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(e.name.value)):new a.ej(5);S&&l.fragmentMatches(S,f)&&S.selectionSet.selections.forEach(k.add,k)}}});var w={result:(0,g.bw)(v),missing:t},S=s.canonizeResults?this.canon.admit(w):(0,_.J)(w);return S.result&&this.knownResults.set(S.result,n),S},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,u=new g.w0;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,O.k)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,h.Yk)(e)?e:o,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,k.s)(r)&&(__DEV__?(0,a.kG)(!(0,h.Yk)(r),"Missing selection set for object of type ".concat((0,h.Yk)(r)?e.get(r.__ref,"__typename"):r&&r.__typename," returned for query field ").concat(t.name.value)):(0,a.kG)(!(0,h.Yk)(r),6),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),Y=r(9487),U=r(897),J=r(6438),$=Object.create(null);function K(e){var t=JSON.stringify(e);return $[t]||($[t]=Object.create(null))}function H(e){var t=K(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=X(e,function(e){var i=et(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&S.call(t,e[0])&&(i=et(t,e,ee)),__DEV__?(0,a.kG)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.kG)(void 0!==i,2),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Z(e){var t=K(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(X(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,O.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,h.NC)(s,i);return u&&et(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&S.call(i,c)){var l=e.slice(0);return l[0]=c,et(i,l)}return}if(t)return et(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function X(e,t){var r=new g.w0;return(function e(t){var r=K(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,O.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,O.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function ee(e,t){return e[t]}function et(e,t,r){return r=r||ee,function e(t){return(0,k.s)(t)?(0,O.k)(t)?t.map(e):X(Object.keys(t).sort(),function(e){return et(t,e)}):t}(t.reduce(function e(t,n){return(0,O.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function er(e){return void 0!==e.args?e.args:e.field?(0,h.NC)(e.field,e.variables):null}h.PT.setStringify(z.B);var en=function(){},ei=function(e,t){return t.fieldName},eo=function(e,t,r){return(0,r.mergeObjects)(e,t)},ea=function(e,t){return t},es=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:D},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=ec(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,o.pi)((0,o.pi)({},e),s),u);if((0,O.k)(f))l=H(f);else{n=f;break}}return n=n?String(n):void 0,u.keyObject?[n,u.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,u=(0,o._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),S.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?eo:!1===t?ea:e.merge}a(n,t.merge),n.keyFn=!1===i?en:(0,O.k)(i)?H(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?ei:(0,O.k)(s)?Z(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||ei)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?(0,a.kG)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.kG)(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(I);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!S.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,p=0;p<u.length;++p){var d=u[p];if(d.has(o))return s.has(o)||(f&&__DEV__&&a.kG.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),s.add(o)),!0;d.forEach(c),l&&p===u.length-1&&function e(t,r,n){return!!(0,k.s)(r)&&((0,O.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,h.My)(t)&&(0,b.LZ)(t,n)){var i=(0,h.u2)(t);return S.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=er(e);o;){var u=o(s,a);if((0,O.k)(u))o=Z(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,h.vf)(e.field,e.variables):(0,h.PT)(n,er(e))),!1===t)?n:n===j(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=j(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=eu(this,r,e,t,t.store.getStorage((0,h.Yk)(r)?r.__ref:r,i));return J.ab.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===eo?el(n.store)(e,t):s===ea?t:(n.overwrite&&(e=void 0),s(e,t,eu(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function eu(e,t,r,n,i){var o=e.getStoreFieldName(r),a=j(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:er(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:h.Yk,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(ec(arguments,t,s),n)},mergeObjects:el(n.store)}}function ec(e,t,r){var n,i,s,u=e[0],c=e[1],l=e.length;return"string"==typeof u?s={fieldName:u,from:l>1?c:t}:(s=(0,o.pi)({},u),S.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&a.kG.warn("Undefined 'from' passed to readField with arguments ".concat((n=Array.from(e),i=(0,U.X)("stringifyForDisplay"),JSON.stringify(n,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===s.variables&&(s.variables=r),s}function el(e){return function(t,r){if((0,O.k)(t)||(0,O.k)(r))throw __DEV__?new a.ej("Cannot automatically merge arrays"):new a.ej(4);if((0,k.s)(t)&&(0,k.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,h.Yk)(t)&&F(r))return e.merge(t.__ref,r),t;if(F(t)&&(0,h.Yk)(r))return e.merge(t,r.__ref),r;if(F(t)&&F(r))return(0,o.pi)((0,o.pi)({},t),r)}return r}}function ef(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:r})),i}var eh=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,c=t.variables,l=t.overwrite,f=(0,m.$H)(n),p=new g.w0;c=(0,o.pi)((0,o.pi)({},(0,m.O4)(f)),c);var d=(0,o.pi)((0,o.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,z.B)(c)},T(n,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,h.Yk)(v))throw __DEV__?new a.ej("Could not identify object ".concat(JSON.stringify(i))):new a.ej(7);
1return d.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,c=(0,h.kQ)(n);if(o&&o.map.size){var l=r.applyMerges(o,c,i,d);if((0,h.Yk)(l))return;i=l}if(__DEV__&&!d.overwrite){var f=Object.create(null);s.forEach(function(e){e.selectionSet&&(f[e.name.value]=!0)});var p=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==f[j(e)]||p(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||(0,h.Yk)(o)||(0,u.D)(o,s)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(s,e)}))){var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=j(r),f="".concat(c,".").concat(l);if(!em.has(f)){em.add(f);var p=[];(0,O.k)(o)||(0,O.k)(s)||[o,s].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),__DEV__&&a.kG.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(c," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(f," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(c,i,e,d.store)})}e.merge(n,i)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,h.qw)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var d=function(){var e=ec(arguments,l,s.variables);if((0,h.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},v=new Set;this.flattenFields(i,n,s,f).forEach(function(e,r){var i,o=n[(0,h.u2)(r)];if(v.add(r),void 0!==o){var s=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),y=ed(u,s),m=t.processFieldValue(o,r,r.selectionSet?ef(e,!1,!1):e,y),g=void 0;r.selectionSet&&((0,h.Yk)(m)||F(m))&&(g=d("__typename",m));var b=c.getMergeFunction(f,r.name.value,g);b?y.info={field:r,typename:f,merge:b}:ey(u,s),l=e.merge(l,((i={})[s]=m,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!p.Gw.added(r)&&!c.getReadFunction(f,r.name.value)&&__DEV__&&a.kG.error("Missing field '".concat((0,h.u2)(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))});try{var y=c.identify(n,{typename:f,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:l,readField:d}),m=y[0],g=y[1];r=r||m,g&&(l=s.merge(l,g))}catch(e){if(!r)throw e}if("string"==typeof r){var b=(0,h.kQ)(r),_=s.written[r]||(s.written[r]=[]);if(_.indexOf(i)>=0||(_.push(i),this.reader&&this.reader.isFresh(n,b,i,s)))return b;var k=s.incomingById.get(r);return k?(k.storeObject=s.merge(k.storeObject,l),k.mergeTree=function e(t,r){if(t===r||!r||ev(r))return t;if(!t||ev(t))return r;var n=t.info&&r.info?(0,o.pi)((0,o.pi)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(k.mergeTree,u),v.forEach(function(e){return k.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:ev(u)?void 0:u,fieldNodeSet:v}),b}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,O.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,ed(n,o));return ey(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?(0,Y.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,h.qw)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new w.B(!1);return function e(u,l){var f=s.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(s){if((0,b.LZ)(s,r.variables)){var u=l.clientOnly,f=l.deferred;
1if(!(u&&f)&&(0,O.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,h.NC)(e,r.variables);n&&!1===n.if||(f=!0)}}),(0,h.My)(s)){var p=i.get(s);p&&(u=u&&p.clientOnly,f=f&&p.deferred),i.set(s,ef(r,u,f))}else{var v=(0,c.hi)(s,r.lookupFragment);if(!v&&s.kind===d.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(s.name.value)):new a.ej(8);v&&o.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,ef(r,u,f))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,h.Yk)(r)){var u,c,l=!(0,O.k)(r)&&((0,h.Yk)(t)||F(t))?t:void 0,f=r;l&&!i&&(i=[(0,h.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,O.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=p(l,t),o=p(f,t);if(void 0!==o){i&&i.push(t);var u=s.applyMerges(e,r,o,n,i);u!==o&&(c=c||new Map).set(t,u),i&&(0,a.kG)(i.pop()===t)}}),c&&(r=(0,O.k)(f)?f.slice(0):(0,o.pi)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(u=n.store).getStorage.apply(u,i)):r},e}(),ep=[];function ed(e,t){var r=e.map;return r.has(t)||r.set(t,ep.pop()||{map:new Map}),r.get(t)}function ev(e){return!e||!(e.info||e.map.size)}function ey(e,t){var r=e.map,n=r.get(t);n&&ev(n)&&(ep.push(n),r.delete(t))}var em=new Set,eg=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=J.QS,n.txCount=0,n.config=(r=t,(0,y.o)(x,r)),n.addTypename=!!n.config.addTypename,n.policies=new es({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new Q.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new eh(this,this.storeReader=new W({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:q(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,s.re)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(G(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,z.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof f)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(S.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,J._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,J.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){z.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(S.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),z.B.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,J.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,p.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,u.D)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(l)},900:function(e,t,r){r.d(t,{B:function(){return f},h:function(){return l}});var n,i,o=r(7582);r(3917);var a=r(5028),s=r(3154),u=r(320),c=r(2651),l=function(){function e(){this.known=new(u.sy?WeakSet:Set),this.pool=new a.B(u.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,c.k)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return!i.array&&(this.known.add(i.array=n),__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],u=this.sortedKeys(e);a.push(u.json);var c=a.length;u.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var l=i.object=Object.create(o);this.known.add(l),u.sorted.forEach(function(e,t){l[e]=a[c+t]}),__DEV__&&Object.freeze(l)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),f=Object.assign(function(e){if((0,s.s)(e)){void 0===n&&h();var t=n.admit(e),r=i.get(t);return void 0===r&&i.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:h});function h(){n=new l,i=new(u.mr?WeakMap:Map)}},6438:function(e,t,r){r.d(t,{QS:function(){return c},_v:function(){return u},ab:function(){return i},li:function(){return s}});var n=r(4092),i=new(r(93)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var u=Array.from(r);r.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},3493:function(e,t,r){r.d(t,{f:function(){return eU}});var n=r(7582),i=r(3917);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var u=function(){return"function"==typeof Symbol},c=function(e){return u()&&!!Symbol[e]},l=function(e){return c(e)?Symbol[e]:"@@"+e};u()&&!c("observable")&&(Symbol.observable=Symbol("observable"));var f=l("iterator"),h=l("observable"),p=l("species");function d(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function v(e){var t=e.constructor;return void 0!==t&&null===(t=t[p])&&(t=void 0),void 0!==t?t:S}
1function y(e){y.log?y.log(e):setTimeout(function(){throw e})}function m(e){Promise.resolve().then(function(){try{e()}catch(e){y(e)}})}function g(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=d(t,"unsubscribe");r&&r.call(t)}}catch(e){y(e)}}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function _(e,t,r){e._state="running";var n=e._observer;try{var i=d(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(b(e),i)i.call(n,r);else throw r;break;case"complete":b(e),i&&i.call(n)}}catch(e){y(e)}"closed"===e._state?g(e):"running"===e._state&&(e._state="ready")}function k(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],m(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(_(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}_(e,t,r)}}var w=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new O(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(b(this),g(this))},s(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),O=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){k(this._subscription,"next",e)},t.error=function(e){k(this._subscription,"error",e)},t.complete=function(){k(this._subscription,"complete")},s(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),S=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(v(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(v(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=v(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=v(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=v(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}
1return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[h]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=d(t,h);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof S&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(c("iterator")&&(n=d(t,f)))return new r(function(e){m(function(){if(!e.closed){for(var r,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){m(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){m(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},s(e,null,[{key:p,get:function(){return this}}]),e}();u()&&Object.defineProperty(S,Symbol("extensions"),{value:{symbol:h,hostReportError:y},configurable:!0});var E=r(6765);function D(e,t){return t?t(e):S.of()}function x(e){return"function"==typeof e?new j(e):e}function q(e){return e.request.length<=1}var I=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,n.ZT)(t,e),t}(Error),j=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return S.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(x).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=x(r),o=x(n||new e(D));return new e(q(i)&&q(o)?function(e){return t(e)?i.request(e)||S.of():o.request(e)||S.of()}:function(e,r){return t(e)?i.request(e,r)||S.of():o.request(e,r)||S.of()})},e.execute=function(e,t){var r,o,a,s;return e.request((a=t.context,(o={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(0>t.indexOf(o))throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(27)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(o.operationName="string"!=typeof o.query?(0,E.rY)(o.query)||void 0:""),s=(0,n.pi)({},a),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){s="function"==typeof e?(0,n.pi)((0,n.pi)({},s),e(s)):(0,n.pi)((0,n.pi)({},s),e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},s)}}),o))||S.of()},e.concat=function(t,r){var n=x(t);if(q(n))return __DEV__&&i.kG.warn(new I("You are calling concat on a terminating link, which will have no effect",n)),n;var o=x(r);return new e(q(o)?function(e){return n.request(e,function(e){return o.request(e)||S.of()})||S.of()}:function(e,t){return n.request(e,function(e){return o.request(e,t)||S.of()})||S.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(D)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.ej("request is not implemented"):new i.ej(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),F=j.execute,T=r(7304),R=r(9065),P=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=__DEV__?new i.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new i.ej(24);throw n.parseError=e,n}return r},C=r(320);function Q(e){var t={next:function(){return e.read()}};return C.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var V=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},M=r(990),N=r(3154),A=r(2651),L=r(9832);function G(e){return"incremental"in e}function z(e,t){var r=e,n=new L.w0;return G(t)&&(0,A.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}
1r=n.merge(r,t)}),r}var B=Object.prototype.hasOwnProperty;function W(e,t){e.status>=300&&V(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function Y(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}var U=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new i.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new i.ej(23)},J=r(7392);let $=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function K(e){return H[e.charCodeAt(0)]}let H=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function Z(e){return(0,T.Vn)(e,X)}let X={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ee(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=er("(",ee(e.variableDefinitions,", "),")"),r=ee([e.operation,ee([e.name,t]),ee(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+er(" = ",r)+er(" ",ee(n," "))},SelectionSet:{leave:({selections:e})=>et(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=er("",e,": ")+t,a=o+er("(",ee(r,", "),")");return a.length>80&&(a=o+er("(\n",en(ee(r,"\n")),"\n)")),ee([a,ee(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+er(" ",ee(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>ee(["...",er("on ",e),ee(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${er("(",ee(r,", "),")")} on ${t} ${er("",ee(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,J.LZ)(e):`"${e.replace($,K)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ee(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ee(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+er("(",ee(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>er("",e,"\n")+ee(["schema",ee(t," "),et(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>er("",e,"\n")+ee(["scalar",t,ee(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>er("",e,"\n")+ee(["type",t,er("implements ",ee(r," & ")),ee(n," "),et(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>
1er("",e,"\n")+t+(ei(r)?er("(\n",en(ee(r,"\n")),"\n)"):er("(",ee(r,", "),")"))+": "+n+er(" ",ee(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>er("",e,"\n")+ee([t+": "+r,er("= ",n),ee(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>er("",e,"\n")+ee(["interface",t,er("implements ",ee(r," & ")),ee(n," "),et(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>er("",e,"\n")+ee(["union",t,ee(r," "),er("= ",ee(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>er("",e,"\n")+ee(["enum",t,ee(r," "),et(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>er("",e,"\n")+ee([t,ee(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>er("",e,"\n")+ee(["input",t,ee(r," "),et(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>er("",e,"\n")+"directive @"+t+(ei(r)?er("(\n",en(ee(r,"\n")),"\n)"):er("(",ee(r,", "),")"))+(n?" repeatable":"")+" on "+ee(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ee(["extend schema",ee(e," "),et(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ee(["extend scalar",e,ee(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ee(["extend type",e,er("implements ",ee(t," & ")),ee(r," "),et(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ee(["extend interface",e,er("implements ",ee(t," & ")),ee(r," "),et(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>ee(["extend union",e,ee(t," "),er("= ",ee(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>ee(["extend enum",e,ee(t," "),et(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>ee(["extend input",e,ee(t," "),et(r)]," ")}};function ee(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function et(e){return er("{\n",en(ee(e,"\n")),"\n}")}function er(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function en(e){return er(" ",e.replace(/\n/g,"\n "))}function ei(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var eo={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ea=function(e,t){return t(e)},es=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function eu(e){return new S(function(t){t.error(e)})}var ec=(0,i.wY)(function(){return fetch}),el=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,o=e.fetch,a=e.print,s=void 0===a?ea:a,u=e.includeExtensions,c=e.preserveHeaderCase,l=e.useGETForQueries,f=e.includeUnusedVariables,h=void 0!==f&&f,p=(0,n._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&U(o||ec);var d={http:{includeExtensions:u,preserveHeaderCase:c},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new j(function(e){var t,a,u,c,f=(t=e,a=r,t.getContext().uri||("function"==typeof a?a(t):a||"/graphql")),p=e.getContext(),v={};if(p.clientAwareness){var y=p.clientAwareness,m=y.name,g=y.version;m&&(v["apollographql-client-name"]=m),g&&(v["apollographql-client-version"]=g)}var b=(0,n.pi)((0,n.pi)({},v),p.headers),_=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.pi)((0,n.pi)((0,n.pi)({},o),e.options),{headers:(0,n.pi)((0,n.pi)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.pi)((0,n.pi)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,Z)),{options:o,body:f}}(e,s,eo,d,{http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:b}),k=_.options,w=_.body;if(w.variables&&!h){var O=new Set(Object.keys(w.variables));(0,T.Vn)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&O.delete(e.name.value)}}),O.size&&(w.variables=(0,n.pi)({},w.variables),O.forEach(function(e){delete w.variables[e]}))}if(!k.signal){var D=es(),x=D.controller,q=D.signal;(c=x)&&(k.signal=q)}var I="OperationDefinition"===(u=(0,E.p$)(e.query)).kind&&"subscription"===u.operation,j=(0,R.FS)(["defer"],e.query);if(l&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(k.method="GET"),j||I){k.headers=k.headers||{};var F="multipart/mixed;";I&&j&&__DEV__&&i.kG.warn("Multipart-subscriptions do not support @defer"),I?F+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(F+="deferSpec=20220824,application/json"),k.headers.accept=F}if("GET"===k.method){var A=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=P(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=P(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(f,w),L=A.newURI,G=A.parseError;if(G)return eu(G);f=L}else try{k.body=P(w,"Payload")}catch(e){return eu(e)}return new S(function(t){return(o||(0,i.wY)(function(){return fetch})||ec)(f,k).then(function(r){e.setContext({response:r});var i,o=null===(i=r.headers)||void 0===i?void 0:i.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){var r,i,o,a,s;return(0,n.mG)(this,void 0,void 0,function(){var u,c,l,f,h,p,d,v,y,m,g,b,_,k,w,O,S,E,D,x,q,I;return(0,n.Jh)(this,function(j){switch(j.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");u=new TextDecoder("utf-8"),c=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),l="boundary=",f=(null==c?void 0:c.includes(l))?null==c?void 0:c.substring((null==c?void 0:c.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",h="\r\n--".concat(f),p="",d=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,C.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return Q(s.getReader());if(s.stream)return Q(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},C.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return C.DN&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),v=!0,j.label=1;case 1:if(!v)return[3,3];return[4,d.next()];case 2:for(m=(y=j.sent()).value,g=y.done,b="string"==typeof m?m:u.decode(m),_=p.length-h.length+1,v=!g,p+=b,k=p.indexOf(h,_);k>-1;){if(w=void 0,w=(q=[p.slice(0,k),p.slice(k+h.length)])[0],p=q[1],O=w.indexOf("\r\n\r\n"),(S=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(w.slice(0,O))["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(E=w.slice(O))try{(D=W(e,E),Object.keys(D).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D)?(0,N.s)(D)&&"payload"in D?(x={},"payload"in D&&(x=(0,n.pi)({},D.payload)),"errors"in D&&(x=(0,n.pi)((0,n.pi)({},x),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in x?x.extensions:null),((I={})[M.YG]=D.errors,I))})),null===(i=t.next)||void 0===i||i.call(t,x)):null===(o=t.next)||void 0===o||o.call(t,D):1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext&&(null===(a=t.complete)||void 0===a||a.call(t))}catch(e){Y(e,t)}k=p.indexOf(h)}return[3,1];case 3:return null===(s=t.complete)||void 0===s||s.call(t),[2]}})})}(r,t):function(e,t,r){var n;(n=e).text().then(function(e){return W(n,e)}).then(function(e){return n.status>=300&&V(n,e,"Response not successful: Received status code ".concat(n.status)),Array.isArray(e)||B.call(e,"data")||B.call(e,"errors")||V(n,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName,"'.")),e}).then(function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)}
1).catch(function(e){return Y(e,r)})}(r,e,t)}).catch(function(e){return Y(e,t)}),function(){c&&c.abort()}})})},ef=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,el(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(j),eh=r(20),ep=r(900);function ed(e,t,r){return new S(function(n){var i=n.next,o=n.error,a=n.complete,s=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var r=function(){return e(t)};c=c.then(r,r).then(function(e){--s,i&&i.call(n,e),u&&f.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){u=!0,!s&&a&&a.call(n)}},h=e.subscribe(f);return function(){return h.unsubscribe()}})}function ev(e){var t=ey(e);return(0,A.O)(t)}function ey(e){var t=(0,A.O)(e.errors)?e.errors.slice(0):[];return G(e)&&(0,A.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var em=r(6487),eg=r(1761),eb=r(897);function e_(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function ek(e){function t(t){Object.defineProperty(e,t,{value:S})}return C.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ew(e){return e&&"function"==typeof e.then}var eO=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),e_(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),e_(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?ew(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),e_(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new S(t)]),ew(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(S);ek(eO);var eS=r(1644),eE=r(9487),eD=r(3712),ex=Object.assign,eq=Object.hasOwnProperty,eI=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=eF)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,u=(void 0===s?{}:s).fetchPolicy,c=void 0===u?"cache-first":u,l=o.fetchPolicy,f=void 0===l?c:l,h=o.initialFetchPolicy;a.options=(0,n.pi)((0,n.pi)({},o),{initialFetchPolicy:void 0===h?"standby"===f?c:f:h,fetchPolicy:f}),a.queryId=i.queryId||r.generateQueryId();var p=(0,E.$H)(a.query);return a.queryName=p&&p.name&&p.name.value,a}return(0,n.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||eS.I.ready,i=(0,n.pi)((0,n.pi)({},t),{loading:(0,eS.O)(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,eh.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===eS.I.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=eS.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||eT(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,eh.D)(this.last.result,e)||t&&!(0,eh.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,eh.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?r.fetchPolicy=o:"no-cache"===o?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",__DEV__&&e&&eq.call(e,"variables")){var a=(0,E.iW)(this.query),s=a.variableDefinitions;(!s||!s.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,eh.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,eS.I.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.pi)((0,n.pi)({},e.query?e:(0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},this.options),{query:this.query}),e),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=eS.I.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,r,eS.I.fetchMore).then(function(n){return t.queryManager.removeQuery(i),o.networkStatus===eS.I.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})}):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){s.add(e.query)}}),n}).finally(function(){s.has(t.query)||ej(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&i.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,eh.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},eS.I.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){__DEV__?(0,i.kG)(r,"Attempted to start a polling query without a polling interval."):(0,i.kG)(r,13),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&((0,eS.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},eS.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,n.pi)((0,n.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,eE.X)(e),variables:t}),(0,A.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===eS.I.refetch||t===eS.I.fetchMore||t===eS.I.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,eD.o)(this.options,e||{}),u=i?s:ex(this.options,s);!i&&(this.updatePolling(),e&&e.variables&&!(0,eh.D)(e.variables,o)&&"standby"!==u.fetchPolicy&&u.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=eS.I.setVariables)));var c=u.variables&&(0,n.pi)({},u.variables),l=this.fetch(u,t),f=l.concast,h=l.fromLink,p={next:function(e){r.reportResult(e,c)},error:function(e){r.reportError(e,c)}};return!i&&h&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=p),f.addObserver(p),f},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),e_(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=(0,n.pi)((0,n.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:eS.I.error,loading:!1});this.updateLastResult(r,t),e_(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(S);function ej(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function eF(e){__DEV__&&i.kG.error("Unhandled error",e.message,e.stack)}function eT(e){__DEV__&&e&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}ek(eI);var eR=r(7359);function eP(e){return e.kind===eR.h.FIELD||e.kind===eR.h.FRAGMENT_SPREAD||e.kind===eR.h.INLINE_FRAGMENT}var eC=r(3361),eQ=r(6438),eV=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,L.Ee)(t.resolvers,e)}):this.resolvers=(0,L.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,n.pi)((0,n.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,R.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,em.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)})]:[2,(0,n.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,T.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return T.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,em.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.mG)(this,void 0,void 0,function(){var s,u,c,l,f,h,p,d,v,y;return(0,n.Jh)(this,function(m){return s=(0,E.p$)(e),u=(0,E.kU)(e),c=(0,eC.F)(u),l=this.collectSelectionsToResolve(s,c),h=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=this,d=p.c
1ache,v=p.client,y={fragmentMap:c,context:(0,n.pi)((0,n.pi)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,function(){var a,s,u,c,l,f=this;return(0,n.Jh)(this,function(h){return a=o.fragmentMap,s=o.context,u=o.variables,c=[r],l=function(e){return(0,n.mG)(f,void 0,void 0,function(){var l,f;return(0,n.Jh)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,R.LZ)(e,u)?(0,eg.My)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&c.push(((r={})[(0,eg.u2)(e)]=t,r))})]:((0,eg.Ao)(e)?l=e:(l=a[e.name.value],__DEV__?(0,i.kG)(l,"No fragment named ".concat(e.name.value)):(0,i.kG)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,o.fragmentMatcher(r,f,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,L.bw)(c)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,function(){var o,a,s,u,c,l,f,h,p,d=this;return(0,n.Jh)(this,function(n){return r?(o=i.variables,u=(a=e.name.value)!==(s=(0,eg.u2)(e)),l=Promise.resolve(c=r[s]||r[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?a:s])&&(l=Promise.resolve(eQ.ab.withValue(this.cache,p,[r,(0,eg.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,T.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&eP(e)&&a.add(e)})},FragmentSpread:function(n,o,s,u,c){var l=t[n.name.value];__DEV__?(0,i.kG)(l,"No fragment named ".concat(n.name.value)):(0,i.kG)(l,12);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&eP(e)&&a.add(e)}),a.add(n),f.forEach(function(e){a.add(e)}))}})}return n.get(o)}(e)},e}(),eM=new(C.mr?WeakMap:Map);function eN(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return eM.set(e,(eM.get(e)+1)%1e15),r.apply(this,arguments)})}function eA(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var eL=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;eM.has(r)||(eM.set(r,0),eN(r,"evict"),eN(r,"modify"),eN(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||eS.I.loading;return this.variables&&this.networkStatus!==eS.I.loading&&!(0,eh.D)(this.variables,e.variables)&&(t=eS.I.setVariables),(0,eh.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){eA(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,eh.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,eh.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():ej(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1eA(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,eS.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,eh.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===eM.get(this.cache)&&(0,eh.D)(t,r.variables)&&(0,eh.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new L.w0,a=(0,A.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,A.O)(e.incremental)){var s=z(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(eG(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:eM.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=eS.I.ready},e.prototype.markError=function(e){return this.networkStatus=eS.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function eG(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!ev(e);return!n&&r&&e.data&&(n=!0),n}var ez=Object.prototype.hasOwnProperty,eB=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,u=e.localState,c=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(C.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=u||new eV({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!c,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,h=void 0!==f&&f,p=e.update,d=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,m=e.errorPolicy,g=void 0===m?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":m,b=e.keepRootFields,_=e.context;return(0,n.mG)(this,void 0,void 0,function(){var e,t,r,c,f,v;return(0,n.Jh)(this,function(m){switch(m.label){case 0:if(__DEV__?(0,i.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(o,15),__DEV__?(0,i.kG)("network-only"===y||"no-cache"===y,"Mutations supp
1ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.kG)("network-only"===y||"no-cache"===y,16),e=this.generateMutationId(),r=(t=this.transform(o)).document,c=t.hasClientExports,o=this.cache.transformForLink(r),a=this.getVariables(o,a),!c)return[3,2];return[4,this.localState.addExportedVariables(o,a,_)];case 1:a=m.sent(),m.label=2;case 2:return f=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:y,errorPolicy:g,context:_,updateQueries:u,update:p,keepRootFields:b}),this.broadcastQueries(),v=this,[2,new Promise(function(t,r){return ed(v.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},_),{optimisticResponse:s}),a,!1),function(t){if(ev(t)&&"none"===g)throw new M.cA({graphQLErrors:ey(t)});f&&(f.loading=!1,f.error=null);var r=(0,n.pi)({},t);return"function"==typeof l&&(l=l(r)),"ignore"===g&&ev(r)&&delete r.errors,v.markMutationResult({mutationId:e,result:r,document:o,variables:a,fetchPolicy:y,errorPolicy:g,context:_,update:p,updateQueries:u,awaitRefetchQueries:h,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:d,keepRootFields:b})}).subscribe({next:function(e){v.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){f&&(f.loading=!1,f.error=t),s&&v.cache.removeOptimistic(e),v.broadcastQueries(),r(t instanceof M.cA?t:new M.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&eG(i,e.errorPolicy)){if(G(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),G(i)&&(0,A.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=z(s.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&ez.call(c,s)){var u=c[s],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=u(d,{mutationResult:i,queryName:f&&(0,E.rY)(f)||void 0,queryVariables:h});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s,u=e.update,c=!(G(s=i)||"hasNext"in s&&"data"in s)||G(i)&&!i.hasNext;if(u){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&u(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),i=(0,em.Fo)(r),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:(0,R.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,E.O4)((0,E.$H)(r)),asQuery:(0,n.pi)((0,n.pi)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e})})},u=function(e){e&&!t.has(e)&&t.set(e,s)};u(e),u(r),u(o),u(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new eL(this),r=new eI({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.kG)(e.query,17),__DEV__?(0,i.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.kG)("Document"===e.query.kind,18),__DEV__?(0,i.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!e.returnPartialData,19),__DEV__?(0,i.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.ej("Store reset while query was in flight (not completed in link chain)"):new i.ej(21)),this.queries.forEac
1h(function(e){e.observableQuery?e.networkStatus=eS.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,eg.JW)(e)?o.set(t.transform(e).document,!1):(0,N.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e){r.set(n,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,eb.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new eI({queryManager:t,queryInfo:a,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){!e&&__DEV__&&i.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var u=function(e){return t.getObservableFromLink(r,s,e).map(function(o){"no-cache"!==n&&(eG(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=ev(o),s=(0,M.ls)(o);if(a||s){var u={};throw a&&(u.graphQLErrors=o.errors),s&&(u.protocolErrors=o.extensions[M.YG]),new M.cA(u)}return o})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,s).then(u);return new S(function(e){var t=null;return c.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,a,s=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var c=this.inFlightLinkObservables,l=this.link,f={query:u,variables:r,operationName:(0,E.rY)(u)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=f.context,i){var h=c.get(u)||new Map;c.set(u,h);var p=(0,ep.B)(r);if(!(a=h.get(p))){var d=new eO([F(l,f)]);h.set(p,a=d),d.beforeNext(function(){h.delete(p)&&h.size<1&&c.delete(u)})}}else a=new eO([F(l,f)])}else a=new eO([S.of({data:{}})]),t=this.prepareContext(t);var v=this.transform(e).clientQuery;return v&&(a=ed(a,function(e){return s.localState.runResolvers({document:v,remoteResult:e,context:t,variables:r})})),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return ed(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=ey(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new M.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:eS.I.ready};return s&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=eS.I.error),u},function(t){var r=(0,M.MS)(t)?t:new M.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast},e.prototype.fetchConcastWithInfo=function(e,t,r){var n,i,o=this;void 0===r&&(r=eS.I.loading);var a=this.transform(t.query).document,s=this.getVariables(a,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,d=t.returnPartialData,v=t.notifyOnNetworkStatusChange,y=t.context,m=Object.assign({},t,{query:a,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===y?{}:y}),g=function(e){m.variables=e;var n=o.fetchQueryByPolicy(u,m,r);return"standby"!==m.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return n.cancel(e)})}),this.transform(m.query).hasClientExports)n=new eO(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),i=!0;else{var _=g(m.variables);i=_.fromLink,n=new eO(_.sources)}return n.promise.then(b,b),{concast:n,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,eb.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;
1n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof eL&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,f=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var d=function(){return e.getDiff(a)},v=function(t,r){void 0===r&&(r=e.networkStatus||eS.I.loading);var s=t.result;!__DEV__||l||(0,eh.D)(s,{})||eT(t.missing);var u=function(e){return S.of((0,n.pi)({data:e,loading:(0,eS.O)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&r===eS.I.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},y="no-cache"===s?0:r===eS.I.refetch&&"merge"!==u?1:2,m=function(){return i.getResultsFromLink(e,y,{variables:a,context:f,fetchPolicy:s,errorPolicy:c})},g=h&&"number"==typeof p&&p!==r&&(0,eS.O)(r);switch(s){default:case"cache-first":var b=d();if(b.complete)return{fromLink:!1,sources:[v(b,e.markReady())]};if(l||g)return{fromLink:!0,sources:[v(b),m()]};return{fromLink:!0,sources:[m()]};case"cache-and-network":var b=d();if(b.complete||l||g)return{fromLink:!0,sources:[v(b),m()]};return{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[v(d(),e.markReady())]};case"network-only":if(g)return{fromLink:!0,sources:[v(d()),m()]};return{fromLink:!0,sources:[m()]};case"no-cache":if(g)return{fromLink:!0,sources:[v(e.getDiff()),m()]};return{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eL(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),eW=r(4012),eY=!1,eU=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,o=e.headers,a=e.cache,s=e.ssrMode,u=void 0!==s&&s,c=e.ssrForceFetchDelay,l=void 0===c?0:c,f=e.connectToDevTools,h=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:f,p=e.queryDeduplication,d=void 0===p||p,v=e.defaultOptions,y=e.assumeImmutableResults,m=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,_=e.name,k=e.version,w=e.link;if(w||(w=r?new ef({uri:r,credentials:n,headers:o}):j.empty()),!a)throw __DEV__?new i.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.ej(9);if(this.link=w,this.cache=a,this.disableNetworkFetches=u||l>0,this.queryDeduplication=d,this.defaultOptions=v||Object.create(null),this.typeDefs=g,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!eY&&h&&__DEV__&&(eY=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var O=window.navigator,S=O&&O.userAgent,E=void 0;"string"==typeof S&&(S.indexOf("Chrome/")>-1?E="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":S.indexOf("Firefox/")>-1&&(E="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),E&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+E)}this.version="3.7.15",this.localState=new eV({cache:a,client:this,resolvers:m,fragmentMatcher:b}),this.queryManager=new eB({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:d,ssrMode:u,clientAwareness:{name:_,version:k},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,eW.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,eW.J)(this.defaultOptions.query,e)),__DEV__?(0,i.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,eW.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return F(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){__DEV__&&i.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},1644:function(e,t,r){var n,i;function o(e){return!!e&&e<7}r.d(t,{I:function(){return n},O:function(){return o}}),(i=n||(n={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},2651:function(e,t,r){r.d(t,{O:function(){return i},k:function(){return n}});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},9487:function(e,t,r){r.d(t,{X:function(){return i}});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);
1return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},897:function(e,t,r){r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},8702:function(e,t,r){r.d(t,{J:function(){return i}}),r(3917);var n=r(3154);function i(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,n.s)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.s)(e[r])&&t.add(e[r])})})}return e}},9832:function(e,t,r){r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var n=r(7582),i=r(3154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},9065:function(e,t,r){r.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var n=r(3917),i=r(7304);function o(e,t){var r,i=e.directives;return!i||!i.length||(r=[],i&&i.length&&i.forEach(function(e){var t;if("skip"===(t=e.name.value)||"include"===t){var i=e.arguments,o=e.name.value;__DEV__?(0,n.kG)(i&&1===i.length,"Incorrect number of arguments for the @".concat(o," directive.")):(0,n.kG)(i&&1===i.length,41);var a=i[0];__DEV__?(0,n.kG)(a.name&&"if"===a.name.value,"Invalid argument for the @".concat(o," directive.")):(0,n.kG)(a.name&&"if"===a.name.value,42);var s=a.value;__DEV__?(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(o," directive must be a variable or a boolean value.")):(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),43),r.push({directive:e,ifArgument:a})}}),r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,n.kG)(void 0!==o,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,n.kG)(void 0!==o,40)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function s(e){return e&&a(["client","export"],e,!0)}},3361:function(e,t,r){r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var n=r(7582),i=r(3917);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,45),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;
1case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(r)):(0,i.kG)(n,46),n||null;default:return null}}},6765:function(e,t,r){r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return h},iW:function(){return c},kU:function(){return u},p$:function(){return f},pD:function(){return l},rY:function(){return s}});var n=r(3917),i=r(1761);function o(e){__DEV__?(0,n.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new n.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new n.ej(48);return e});return __DEV__?(0,n.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,n.kG)(t.length<=1,49),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return __DEV__?(0,n.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,n.kG)(t&&"query"===t.operation,50),t}function l(e){__DEV__?(0,n.kG)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)("Document"===e.kind,51),__DEV__?(0,n.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,n.kG)(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?(0,n.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,n.kG)("FragmentDefinition"===t.kind,53),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw __DEV__?new n.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n.ej(54)}function h(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},1761:function(e,t,r){r.d(t,{Ao:function(){return g},JW:function(){return u},My:function(){return m},NC:function(){return v},PT:function(){return h},Yk:function(){return s},kQ:function(){return a},qw:function(){return function e(t,r,n){for(var i,a=0,s=r.selections;a<s.length;a++){var u=s[a];if(m(u)){if("__typename"===u.name.value)return t[y(u)]}else i?i.push(u):i=[u]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,l=i;c<l.length;c++){var u=l[c],f=e(t,(0,o.hi)(u,n).selectionSet,n);if("string"==typeof f)return f}}},u2:function(){return y},vb:function(){return c},vf:function(){return l}});var n=r(3917),i=r(3154),o=r(3361);function a(e){return{__ref:String(e)}}function s(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return c(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return c(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw __DEV__?new n.ej('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n.ej(55)}function l(e,t){var r=null;e.directives&&(r={}
1,e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return c(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){return c(n,e.name,e.value,t)})),h(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export"],h=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,d)};function d(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return c(r,e.name,e.value,t)}),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},6487:function(e,t,r){r.d(t,{Fo:function(){return y},Gw:function(){return d},aL:function(){return m},ob:function(){return g}});var n=r(7582),i=r(3917),o=r(7359),a=r(7304),s=r(6765),u=r(1761),c=r(3361),l=r(2651),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function p(e,t){for(var r,u,f,p=h(""),d=h(""),v=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,l.k)(r)){if(r.kind===o.h.OPERATION_DEFINITION)return p(r.name&&r.name.value);if(r.kind===o.h.FRAGMENT_DEFINITION)return d(r.name.value)}return __DEV__&&i.kG.error("Could not find operation or fragment"),null},y=0,m=t.definitions.length-1;m>=0;--m)t.definitions[m].kind===o.h.OPERATION_DEFINITION&&++y;var g=(r=new Set,u=[],e.forEach(function(e){e.name?r.add(e.name):e.test&&u.push(e.test)}),function(e){return r.has(e.name.value)||u.some(function(t){return t(e)})}),b=e.some(function(e){return e.remove}),_=function(e){return b&&e&&e.some(g)},k=new Map,w=!1,O={enter:function(e){if(_(e.directives))return w=!0,null}},S=(0,a.Vn)(t,{Field:O,InlineFragment:O,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=v(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(_(e.directives))return w=!0,null;var o=v(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){k.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===k.get(JSON.stringify(n))?e:y>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(d(e.name.value).removed=!0,w=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return w=!0,null}}});if(!w)return t;var E=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){E(d(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},D=new Set;S.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?E(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){D.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==y||d(e.name.value).removed||D.add(e.name.value)}),D.forEach(function(e){E(d(e)).fragmentSpreads.forEach(function(e){D.add(e)})});var x={enter:function(e){var t;if(t=e.name.value,!D.has(t)||d(t).removed)return null}};return f=(0,a.Vn)(S,{FragmentSpread:x,FragmentDefinition:x,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=E(p(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.$H)(f)||(0,s.pD)(f),(0,c.F)((0,s.kU)(f)))?f:null}var d=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}}),v={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function y(e){return p([v],(0,s.A$)(e))}
1function m(e){return"query"===(0,s.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function g(e){return(0,s.A$)(e),p([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},7091:function(e,t,r){r.d(t,{ZB:function(){return o}});var n=r(7582),i=r(9832);function o(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var r=t.canRead,i=t.readField;if(!e)return e;var o=[],s="",u="";e.edges.forEach(function(e){r(i("node",e))&&(o.push(e),e.cursor&&(s=s||e.cursor||"",u=e.cursor||u))});var c=e.pageInfo||{},l=c.startCursor,f=c.endCursor;return(0,n.pi)((0,n.pi)({},a(e)),{edges:o,pageInfo:(0,n.pi)((0,n.pi)({},e.pageInfo),{startCursor:l||s,endCursor:f||u})})},merge:function(e,t,r){var o=r.args,s=r.isReference,u=r.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var c=t.edges?t.edges.map(function(e){return s(e=(0,n.pi)({},e))&&(e.cursor=u("cursor",e)),e}):[];if(t.pageInfo){var l=t.pageInfo,f=l.startCursor,h=l.endCursor,p=c[0],d=c[c.length-1];p&&f&&(p.cursor=f),d&&h&&(d.cursor=h);var v=p&&p.cursor;v&&!f&&(t=(0,i.Ee)(t,{pageInfo:{startCursor:v}}));var y=d&&d.cursor;y&&!h&&(t=(0,i.Ee)(t,{pageInfo:{endCursor:y}}))}var m=e.edges,g=[];if(o&&o.after){var b=m.findIndex(function(e){return e.cursor===o.after});b>=0&&(m=m.slice(0,b+1))}else if(o&&o.before){var b=m.findIndex(function(e){return e.cursor===o.before});g=b<0?m:m.slice(b),m=[]}else t.edges&&(m=[]);var _=(0,n.ev)((0,n.ev)((0,n.ev)([],m,!0),c,!0),g,!0),k=(0,n.pi)((0,n.pi)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var w=t.pageInfo,O=w.hasPreviousPage,S=w.hasNextPage,f=w.startCursor,h=w.endCursor;Object.assign(k,(0,n._T)(w,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),m.length||(void 0!==O&&(k.hasPreviousPage=O),void 0===f||(k.startCursor=f)),g.length||(void 0!==S&&(k.hasNextPage=S),void 0===h||(k.endCursor=h))}return(0,n.pi)((0,n.pi)((0,n.pi)({},a(e)),a(t)),{edges:_,pageInfo:k})}}}var a=function(e){return(0,n._T)(e,s)},s=["edges","pageInfo"]},93:function(e,t,r){r.d(t,{g7:function(){return c}});let n=null,i={},o=1;function a(e){try{return e()}catch(e){}}let s="@wry/context:Slot",u=a(()=>globalThis)||a(()=>global)||Object.create(null),c=u[s]||Array[s]||function(e){try{Object.defineProperty(u,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){let o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){let t=n;return function(){let r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{let i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:l,noContext:f}=c},5028:function(e,t,r){r.d(t,{B:function(){return s}});let n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=this.weakness&&u(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){let t=this.weakness&&u(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=t.get(e);return r||t.set(e,r=new s(this.weakness,this.makeData)),r}}function u(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}},7304:function(e,t,r){r.d(t,{$_:function(){return s},Vn:function(){return u}});var n=r(7826),i=r(7820),o=r(2380),a=r(7359);let s=Object.freeze({});function u(e,t,r=o.h8){let u,c,l;let f=new Map;for(let e of Object.values(a.h))f.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let h=Array.isArray(e),p=[e],d=-1,v=[],y=e,m=[],g=[];do{var b,_,k;let e;d++;let a=d===p.length,w=a&&0!==v.length;if(a){if(c=0===g.length?void 0:m[m.length-1],y=l,l=g.pop(),w){if(h){y=y.slice();let e=0;for(let[t,r]of v){let n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else for(let[e,t]of(y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y)),v))y[e]=t}d=u.index,p=u.keys,v=u.edits,h=u.inArray,u=u.prev}else if(l){if(null==(y=l[c=h?d:p[d]]))continue;m.push(c)}if(!Array.isArray(y)){(0,o.UG)(y)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(y)}.`);let r=a?null===(b=f.get(y.kind))||void 0===b?void 0:b.leave:null===(_=f.get(y.kind))||void 0===_?void 0:_.enter;if((e=null==r?void 0:r.call(t,y,c,l,m,g))===s)break;if(!1===e){if(!a){m.pop();continue}}else if(void 0!==e&&(v.push([c,e]),!a)){if((0,o.UG)(e))y=e;else{m.pop();continue}}}void 0===e&&w&&v.push([c,y]),a?m.pop():(u={inArray:h,index:d,keys:p,edits:v,prev:u},p=(h=Array.isArray(y))?y:null!==(k=r[y.kind])&&void 0!==k?k:[],d=-1,v=[],l&&g.push(l),l=y)}while(void 0!==u);return 0!==v.length?v[v.length-1][1]:e}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.