1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5121],{38751:function(e,t,n){n.d(t,{g7:function(){return u}});var r=null,i={},o=1,a="@wry/context:Slot",s=Array,u=s[a]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=r;r={parent:s,slots:a};try{return t.apply(i,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var i=r;try{return r=null,e.apply(n,t)}finally{r=i}},e}();try{Object.defineProperty(s,a,{value:s[a]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();u.bind,u.noContext},82152:function(e,t,n){n.d(t,{D:function(){return u}});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=Function.prototype.toString,s=new Map;function u(e,t){try{return c(e,t)}finally{s.clear()}}function c(e,t){if(e===t)return!0;var n=i.call(e);if(n!==i.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(p(e,t))return!0;var r=l(e),s=l(t),u=r.length;if(u!==s.length)return!1;for(var f=0;f<u;++f)if(!o.call(t,r[f]))return!1;for(f=0;f<u;++f){var d=r[f];if(!c(e[d],t[d]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(p(e,t))return!0;for(var v=e.entries(),y="[object Map]"===n;;){var m=v.next();if(m.done)break;var b=m.value,g=b[0],E=b[1];if(!t.has(g))return!1;if(y&&!c(E,t.get(g)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var _=e.byteLength;if(_===t.byteLength)for(;_--&&e[_]===t[_];);return-1===_;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var k=a.call(e);return k===a.call(t)&&!function(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(k,h)}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}var h="{ [native code] }";function p(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},657:function(e,t,n){n.d(t,{B:function(){return s}});var r=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=r),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 o.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(a.call(e)))},e.prototype.getChildTrie=function(t){var n=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),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}()},17283:function(e,t,n){n.d(t,{Ps:function(){return z}});var r=n(70655);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function a(e,t){let n=0,r=1;for(const a of e.body.matchAll(o)){if("number"===typeof a.index||i(!1),a.index>=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l=`${e.name}:${a}:${c}\n`,f=r.split(/\r\n|[\n\r]/g),h=f[i];if(h.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let r=0;r<h.length;r+=80)n.push(h.slice(r,r+80));return l+u([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+u([[a-1+" |",f[i-1]],[`${a} |`,h],["|","^".padStart(c)],[`${a+1} |`,f[i+1]]])}function u(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}
1class c extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:u,path:f,originalError:h,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!==f&&void 0!==f?f:void 0,this.originalError=null!==h&&void 0!==h?h:void 0,this.nodes=l(Array.isArray(o)?o:o?[o]:void 0);const d=l(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!==s&&void 0!==s?s:null===d||void 0===d||null===(r=d[0])||void 0===r?void 0:r.source,this.positions=null!==u&&void 0!==u?u:null===d||void 0===d?void 0:d.map((e=>e.start)),this.locations=u&&s?u.map((e=>a(s,e))):null===d||void 0===d?void 0:d.map((e=>a(e.source,e.start)));const v="object"==typeof(y=null===h||void 0===h?void 0:h.extensions)&&null!==y?null===h||void 0===h?void 0:h.extensions:void 0;var y;this.extensions=null!==(i=null!==p&&void 0!==p?p:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==h&&void 0!==h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+s((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const n of this.locations)e+="\n\n"+s(this.source,n);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function f(e,t,n){return new c(`Syntax Error: ${n}`,void 0,e,[t])}var h=n(72380);let p;!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(p||(p={}));var d=n(97359),v=n(87392),y=n(68297);let m;!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(m||(m={}));class b{constructor(e){const t=new h.WU(m.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==m.EOF)do{if(e.next)e=e.next;else{const t=D(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===m.COMMENT);return e}}function g(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return _(e.charCodeAt(t))&&k(e.charCodeAt(t+1))}function _(e){return e>=55296&&e<=56319}function k(e){return e>=56320&&e<=57343}function w(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return m.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function O(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new h.WU(t,n,r,o,a,i)}function D(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return T(e,i);case 33:return O(e,m.BANG,i,i+1);case 36:return O(e,m.DOLLAR,i,i+1);case 38:return O(e,m.AMP,i,i+1);case 40:return O(e,m.PAREN_L,i,i+1);case 41:return O(e,m.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return O(e,m.SPREAD,i,i+3);break;case 58:return O(e,m.COLON,i,i+1);case 61:return O(e,m.EQUALS,i,i+1);case 64:return O(e,m.AT,i,i+1);case 91:return O(e,m.BRACKET_L,i,i+1);case 93:return O(e,m.BRACKET_R,i,i+1);case 123:return O(e,m.BRACE_L,i,i+1);case 124:return O(e,m.PIPE,i,i+1);case 125:return O(e,m.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?F(e,i):S(e,i)}if((0,y.X1)(t)||45===t)return I(e,i,t);if((0,y.LQ)(t))return L(e,i);throw f(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":g(t)||E(n,i)?`Unexpected character: ${w(e,i)}.`:`Invalid character: ${w(e,i)}.`)}return O(e,m.EOF,r,r)}function T(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;
vendor: 16,384 bytes, line 1
1if(g(e))++i;else{if(!E(n,i))break;i+=2}}return O(e,m.COMMENT,t,i,n.slice(t+1,i))}function I(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),(0,y.X1)(o))throw f(e.source,i,`Invalid number, unexpected digit after 0: ${w(e,i)}.`)}else i=N(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=N(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=N(e,i,o),o=r.charCodeAt(i)),46===o||(0,y.LQ)(o))throw f(e.source,i,`Invalid number, expected digit but got: ${w(e,i)}.`);return O(e,a?m.FLOAT:m.INT,t,i,r.slice(t,i))}function N(e,t,n){if(!(0,y.X1)(n))throw f(e.source,t,`Invalid number, expected digit but got: ${w(e,t)}.`);const r=e.source.body;let i=t+1;for(;(0,y.X1)(r.charCodeAt(i));)++i;return i}function S(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),O(e,m.STRING,t,i+1,a);if(92!==r){if(10===r||13===r)break;if(g(r))++i;else{if(!E(n,i))throw f(e.source,i,`Invalid character within String: ${w(e,i)}.`);i+=2}}else{a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?x(e,i):A(e,i):P(e,i);a+=t.value,i+=t.size,o=i}}throw f(e.source,i,"Unterminated string.")}function x(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!g(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|R(e),r<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function A(e,t){const n=e.source.body,r=C(n,t+2);if(g(r))return{value:String.fromCodePoint(r),size:6};if(_(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=C(n,t+8);if(k(e))return{value:String.fromCodePoint(r,e),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function C(e,t){return R(e.charCodeAt(t))<<12|R(e.charCodeAt(t+1))<<8|R(e.charCodeAt(t+2))<<4|R(e.charCodeAt(t+3))}function R(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function P(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function F(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const u=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){s+=n.slice(a,o),u.push(s);const r=O(e,m.BLOCK_STRING,t,o+3,(0,v.wv)(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(g(r))++o;else{if(!E(n,o))throw f(e.source,o,`Invalid character within String: ${w(e,o)}.`);o+=2}else s+=n.slice(a,o),u.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=n.slice(a,o),a=o+1,o+=4}throw f(e.source,o,"Unterminated string.")}function L(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,y.HQ)(e))break;++i}return O(e,m.NAME,t,i,n.slice(t,i))}var q=n(51270);class M{constructor(e,t){const n=(0,q.T)(e)?e:new q.H(e);this._lexer=new b(n),this._options=t}parseName(){const e=this.expectToken(m.NAME);return this.node(e,{kind:d.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:d.h.DOCUMENT,definitions:this.many(m.SOF,this.parseDefinition,m.EOF)})}parseDefinition(){if(this.peek(m.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===m.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(m.BRACE_L))return this.node(e,{kind:d.h.OPERATION_DEFINITION,operation:h.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(m.NAME)&&(n=this.parseName()),this.node(e,{kind:d.h.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(m.NAME);switch(e.value){case"query":return h.ku.QUERY;case"mutation":return h.ku.MUTATION;case"subscription":return h.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(m.PAREN_L,this.parseVariableDefinition,m.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:d.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(m.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(m.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(m.DOLLAR),this.node(e,{kind:d.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:d.h.SELECTION_SET,selections:this.many(m.BRACE_L,this.parseSelection,m.BRACE_R)})}parseSelection(){return this.peek(m.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(m.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:d.h.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(m.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(m.PAREN_L,t,m.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(m.COLON),this.node(t,{kind:d.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(m.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(m.NAME)?this.node(e,{kind:d.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:d.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:d.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:d.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case m.BRACKET_L:return this.parseList(e);case m.BRACE_L:return this.parseObject(e);case m.INT:return this._lexer.advance(),this.node(t,{kind:d.h.INT,value:t.value});case m.FLOAT:return this._lexer.advance(),this.node(t,{kind:d.h.FLOAT,value:t.value});case m.STRING:case m.BLOCK_STRING:return this.parseStringLiteral();case m.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:d.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:d.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:d.h.NULL});default:return this.node(t,{kind:d.h.ENUM,value:t.value})}case m.DOLLAR:if(e){if(this.expectToken(m.DOLLAR),this._lexer.token.kind===m.NAME){const e=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:d.h.STRING,value:e.value,block:e.kind===m.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:d.h.LIST,values:this.any(m.BRACKET_L,(()=>this.parseValueLiteral(e)),m.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:d.h.OBJECT,fields:this.any(m.BRACE_L,(()=>this.parseObjectField(e)),m.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(m.COLON),this.node(t,{kind:d.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(m.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(m.AT),this.node(t,{kind:d.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(m.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(m.BRACKET_R),t=this.node(e,{kind:d.h.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(m.BANG)?this.node(e,{kind:d.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:d.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(m.STRING)||this.peek(m.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);return this.node(e,{kind:d.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(m.COLON);const n=this.parseNamedType();return this.node(e,{kind:d.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:d.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:d.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(m.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseFieldDefinition,m.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(m.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:d.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(m.PAREN_L,this.parseInputValueDef,m.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(m.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(m.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:d.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:d.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:d.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(m.EQUALS)?this.delimitedMany(m.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:d.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(m.BRACE_L,this.parseEnumValueDefinition,m.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:d.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${V(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:d.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseInputValueDef,m.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===m.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:d.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:d.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.h
1.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(m.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:d.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(m.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(p,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new h.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw f(this._lexer.source,t.start,`Expected ${Q(e)}, found ${V(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==m.NAME||t.value!==e)throw f(this._lexer.source,t.start,`Expected "${e}", found ${V(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===m.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!==e&&void 0!==e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${V(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function V(e){const t=e.value;return Q(e.kind)+(null!=t?` "${t}"`:"")}function Q(e){return function(e){return e===m.BANG||e===m.DOLLAR||e===m.AMP||e===m.PAREN_L||e===m.PAREN_R||e===m.SPREAD||e===m.COLON||e===m.EQUALS||e===m.AT||e===m.BRACKET_L||e===m.BRACKET_R||e===m.BRACE_L||e===m.PIPE||e===m.BRACE_R}(e)?`"${e}"`:e}var j=new Map,G=new Map,U=!0,B=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function Y(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=K((a=e.loc).source.body.substring(a.start,a.end)),o=G.get(r);o&&!o.has(i)?U&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||G.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function $(e){var t=K(e);if(!j.has(t)){var n=function(e,t){return new M(e,t).parseDocument()}(e,{experimentalFragmentVariables:B,allowLegacyFragmentVariables:B});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");j.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}
1));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Y(n)))}return j.get(t)}function z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"===typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),$(r)}var J,W=z,X=function(){j.clear(),G.clear()},H=function(){U=!1},Z=function(){B=!0},ee=function(){B=!1};(J=z||(z={})).gql=W,J.resetCaches=X,J.disableFragmentWarnings=H,J.enableExperimentalFragmentVariables=Z,J.disableExperimentalFragmentVariables=ee,z.default=z},60507:function(e,t,n){n.d(t,{dP:function(){return N},re:function(){return A}});var r=n(657),i=n(38751);function o(){}var a,s=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=o),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 n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.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}(),u=new i.g7,c=Object.prototype.hasOwnProperty,l=void 0===(a=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:a;function f(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var h=[];function p(e,t){if(!e)throw new Error(t||"assertion failure")}function d(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var v=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&&!b(this))return y(this),this.value[0]},e.prototype.recompute=function(e){return p(!this.recomputing,"already recomputing"),y(this),b(this)?function(e,t){D(e),u.withValue(e,m,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{f(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,b(e))return;E(e)}(e);return d(e.value)}(this,e):d(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,g(this),f(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),D(this),_(this,(function(t,n){t.setDirty(),T(t,e)}))},e.prototype.forget=function(){this.dispose()}
1,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(l(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),h.push(this.deps),this.deps=null)},e.count=0,e}();function y(e){var t=u.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),b(e)?k(t,e):w(t,e),t}function m(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function b(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function g(e){_(e,k)}function E(e){_(e,w)}function _(e,t){var n=e.parents.size;if(n)for(var r=l(e.parents),i=0;i<n;++i)t(r[i],e)}function k(e,t){p(e.childValues.has(t)),p(b(t));var n=!b(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=h.pop()||new Set;e.dirtyChildren.add(t),n&&g(e)}function w(e,t){p(e.childValues.has(t)),p(!b(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),O(e,t),b(e)||E(e)}function O(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(h.length<100&&h.push(n),e.dirtyChildren=null))}function D(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){T(e,n)})),e.forgetDeps(),p(null===e.dirtyChildren)}function T(e,t){t.parents.delete(e),e.childValues.delete(t),O(e,t)}var I={setDirty:!0,dispose:!0,forget:!0};function N(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=u.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(f(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&c.call(I,n)?n:"setDirty";l(r).forEach((function(e){return e[i]()})),t.delete(e),f(r)}},r}function S(){var e=new r.B("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}S();var x=new Set;function A(e,t){void 0===t&&(t=Object.create(null));var n=new s(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||S(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new v(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),x.add(n),u.hasValue()||(x.forEach((function(e){return e.clean()})),x.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function c(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=c,o.peek=function(){return c(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}},49641:function(e,t,n){n.d(t,{RI:function(){return u},uG:function(){return c},jS:function(){return f},lg:function(){return h},jp:function(){return p},$O:function(){return d},E_:function(){return v},RC:function(){return y},j:function(){return m},ig:function(){return b},kJ:function(){return g}});var r=n(53712),i=n(51761),o=n(13154),a=n(19065),s=n(182),u=Object.prototype.hasOwnProperty;function c(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))}var l={dataIdFromObject:c,addTypename:!0,resultCaching:!0,canonizeResults:!1};function f(e){return(0,r.o)(l,e)}function h(e){var t=e.canonizeResults;return void 0===t?l.canonizeResults:t}function p(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var d=/^[_a-z][_0-9a-z]*/i;function v(e){var t=e.match(d);return t?t[0]:e}function y(e,t,n){return!!(0,o.s)(t)&&(g(t)?t.every((function(t){return y(e,t,n)})):e.selections.every((function(e){if((0,i.My)(e)&&(0,a.LZ)(e,n)){var r=(0,i.u2)(e);return u.call(t,r)&&(!e.selectionSet||y(e.selectionSet,t[r],n))}return!0})))}function m(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!g(e)}function b(){return new s.w0}var g=function(e){return Array.isArray(e)}},80900:function(e,t,n){n.d(t,{h:function(){return l},B:function(){return f}});var r=n(70655),i=(n(9613),n(657)),o=n(13154),a=n(30320),s=n(49641);var u,c,l=function(){function e(){this.known=new(a.sy?WeakSet:Set),this.pool=new i.B(a.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,o.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,o.s)(e)){var t=function(e){return(0,o.s)(e)?(0,s.kJ)(e)?e.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,o.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(u=this.pool.lookupArray(r)).array||(this.known.add(u.array=r),__DEV__&&Object.freeze(r)),u.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],s=this.sortedKeys(e);a.push(s.json);var u,c=a.length;if(s.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(u=this.pool.lookupArray(a)).object){var l=u.object=Object.create(i);this.known.add(l),s.sorted.forEach((function(e,t){l[e]=a[c+t]})),__DEV__&&Object.freeze(l)}return u.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),f=Object.assign((function(e){if((0,o.s)(e)){void 0===u&&h();var t=u.admit(e),n=c.get(t);return void 0===n&&c.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:h});function h(){u=new l,c=new(a.mr?WeakMap:Map)}},66438:function(e,t,n){n.d(t,{ab:function(){return i},li:function(){return s},_v:function(){return u},QS:function(){return c}});var r=n(60507),i=new(n(38751).g7),o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}
vendor: 4,597 bytes, line 1
1function 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,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach((function(e){a(e).dep.dirty(r),l(e)}));var u=Array.from(n);n.clear(),u.forEach((function(t){return t(e)}))}}else{var c=i.getValue();c&&(o(c),a(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function l(e){e.broadcastWatches&&e.broadcastWatches()}},29734:function(e,t,n){n.d(t,{f:function(){return W},J:function(){return J}});var r=n(70655),i=n(9613),o=n(48702),a=o.i.execute,s=n(53712),u=n(88380),c=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(0,u.L)(t).request)||this;return n.options=t,n}return(0,r.ZT)(t,e),t}(o.i),l=n(82152),f=n(80900),h=n(30320),p=n(48216);function d(e,t,n){return new p.y((function(r){var i=r.next,o=r.error,a=r.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 n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&f.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){u=!0,s||a&&a.call(r)}},h=e.subscribe(f);return function(){return h.unsubscribe()}}))}function v(e){return e.errors&&e.errors.length>0||!1}var y=n(36765),m=n(76982),b=n(19065),g=n(51761),E=n(13154),_=n(60897);function k(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function w(e){function t(t){Object.defineProperty(e,t,{value:p.y})}return h.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function O(e){return e&&"function"===typeof e.then}var D=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],k(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),k(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?O(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),k(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new p.y(t)]),O(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,r.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],n=e[t];n&&n.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),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(p.y);w(D);var T=n(21436),I=n(30990),N=n(1644),S=n(79487),x=Object.assign,A=Object.hasOwnProperty,C=!1,R=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=P)}catch(t){}var r=!o.observers.size;o.observers.add(e);var i=o.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=(0,y.$H)(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables}
1,enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||N.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,N.O)(n),networkStatus:n}),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,l.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,!s.complete||i.networkStatus!==N.I.loading||"cache-first"!==a&&"cache-only"!==a||(i.networkStatus=N.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||F(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!(0,l.D)(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,l.D)(n.variables,this.variables)))return n[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,n={pollInterval:0},o=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===o?o:"no-cache"===o?"no-cache":"network-only",__DEV__&&e&&A.call(e,"variables")){var a=(0,y.iW)(this.options.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,l.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,N.I.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),o=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=N.I.fetchMore,this.observe()),this.queryManager.fetchQuery(o,n,N.I.fetchMore).then((function(r){var o=r.data,a=e.updateQuery;return a?(__DEV__&&!C&&(__DEV__&&i.kG.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),C=!0),t.updateQuery((function(e){return a(e,{fetchMoreResult:o,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:o}),r})).finally((function(){t.queryManager.stopQuery(o),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&i.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,l.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},N.I.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,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.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?(0,i.kG)(n,"Attempted to start a polling query without a polling interval."):(0,i.kG)(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&((0,N.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"network-only"},N.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,r.pi)((0,r.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,S.X)(e),variables:t}),(0,T.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var i=t===N.I.refetch||t===N.I.fetchMore||t===N.I.poll,o=this.options.variables,a=i?(0,s.o)(this.options,e):x(this.options,
1(0,s.o)(e));i||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!(0,l.D)(e.variables,o)&&(a.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=N.I.setVariables)));var u=a.variables&&(0,r.pi)({},a.variables),c=this.fetch(a,t),f={next:function(e){n.reportResult(e,u)},error:function(e){n.reportError(e,u)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=c,this.observer=f),c.addObserver(f),c.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),k(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,r.pi)((0,r.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:N.I.error,loading:!1});this.updateLastResult(n,t),k(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}(p.y);function P(e){__DEV__&&i.kG.error("Unhandled error",e.message,e.stack)}function F(e){__DEV__&&e&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}w(R);var L=n(77304),q=n(182),M=n(23361),V=n(66438),Q=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),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,q.Ee)(t.resolvers,e)})):this.resolvers=(0,q.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,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then((function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,b.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,m.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)}))]:[2,(0,r.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,L.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 L.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,m.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,a){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.mG)(this,void 0,void 0,(function(){var s,u,c,l,f,h,p,d,v;return(0,r.Jh)(this,(function(m){return s=(0,y.p$)(e),u=(0,y.kU)(e),c=(0,M.F)(u),l=s.operation,f=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",p=(h=this).cache,d=h.client,v={fragmentMap:c,context:(0,r.pi)((0,r.pi)({}
1,n),{cache:p,client:d}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){var o,a,s,u,c,l=this;return(0,r.Jh)(this,(function(f){return o=n.fragmentMap,a=n.context,s=n.variables,u=[t],c=function(e){return(0,r.mG)(l,void 0,void 0,(function(){var c,l;return(0,r.Jh)(this,(function(r){return(0,b.LZ)(e,s)?(0,g.My)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&u.push(((n={})[(0,g.u2)(e)]=t,n))}))]:((0,g.Ao)(e)?c=e:(c=o[e.name.value],__DEV__?(0,i.kG)(c,"No fragment named ".concat(e.name.value)):(0,i.kG)(c,9)),c&&c.typeCondition&&(l=c.typeCondition.name.value,n.fragmentMatcher(t,l,a))?[2,this.resolveSelectionSet(c.selectionSet,t,n).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return(0,q.bw)(u)}))]}))}))},e.prototype.resolveField=function(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){var i,o,a,s,u,c,l,f,h,p=this;return(0,r.Jh)(this,(function(r){return i=n.variables,o=e.name.value,a=(0,g.u2)(e),s=o!==a,u=t[a]||t[o],c=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(h=f[s?o:a])&&(c=Promise.resolve(V.ab.withValue(this.cache,h,[t,(0,g.NC)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then((function(t){return void 0===t&&(t=u),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&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),j=new(h.mr?WeakMap:Map);function G(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return j.set(e,(j.get(e)+1)%1e15),n.apply(this,arguments)})}function U(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var B=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 n=this.cache=e.cache;j.has(n)||(j.set(n,0),G(n,"evict"),G(n,"modify"),G(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||N.I.loading;return this.variables&&this.networkStatus!==N.I.loading&&!(0,l.D)(this.variables,e.variables)&&(t=N.I.setVariables),(0,l.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(){U(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,l.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},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,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,l.D)(n&&n.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():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1U(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,N.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 n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.pi)((0,r.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,l.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 n=this.lastWrite;return!(n&&n.dmCount===j.get(this.cache)&&(0,l.D)(t,n.variables)&&(0,l.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=(0,T.O)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(K(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:j.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=N.I.ready},e.prototype.markError=function(e){return this.networkStatus=N.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function K(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!v(e);return!r&&n&&e.data&&(r=!0),r}var Y=Object.prototype.hasOwnProperty,$=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(h.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=c,this.localState=l||new Q({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,o=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,u=void 0===s?[]:s,c=e.awaitRefetchQueries,l=void 0!==c&&c,f=e.update,h=e.onQueryUpdated,p=e.errorPolicy,y=void 0===p?"none":p,m=e.fetchPolicy,b=void 0===m?"network-only":m,g=e.keepRootFields,E=e.context;return(0,r.mG)(this,void 0,void 0,(function(){var e,s,c;return(0,r.Jh)(this,(function(p){switch(p.label){case 0:return __DEV__?(0,i.kG)(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(t,12),__DEV__?(0,i.kG)("network-only"===b||"no-cache"===b,"Mutations support 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"===b||"no-cache"===b,13),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasCl
1ientExports?[4,this.localState.addExportedVariables(t,n,E)]:[3,2];case 1:n=p.sent(),p.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:t,variables:n,fetchPolicy:b,errorPolicy:y,context:E,updateQueries:a,update:f,keepRootFields:g}),this.broadcastQueries(),c=this,[2,new Promise((function(i,p){return d(c.getObservableFromLink(t,(0,r.pi)((0,r.pi)({},E),{optimisticResponse:o}),n,!1),(function(i){if(v(i)&&"none"===y)throw new I.c({graphQLErrors:i.errors});s&&(s.loading=!1,s.error=null);var p=(0,r.pi)({},i);return"function"===typeof u&&(u=u(p)),"ignore"===y&&v(p)&&delete p.errors,c.markMutationResult({mutationId:e,result:p,document:t,variables:n,fetchPolicy:b,errorPolicy:y,context:E,update:f,updateQueries:a,awaitRefetchQueries:l,refetchQueries:u,removeOptimistic:o?e:void 0,onQueryUpdated:h,keepRootFields:g})})).subscribe({next:function(e){c.broadcastQueries(),i(e)},error:function(t){s&&(s.loading=!1,s.error=t),o&&c.cache.removeOptimistic(e),c.broadcastQueries(),p(t instanceof I.c?t:new I.c({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&K(i,e.errorPolicy)){o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var s=e.updateQueries;s&&this.queries.forEach((function(e,r){var a=e.observableQuery,u=a&&a.queryName;if(u&&Y.call(s,u)){var c=s[u],l=n.queries.get(r),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=c(d,{mutationResult:i,queryName:f&&(0,y.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 u=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var s=e.update;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&(i=(0,r.pi)((0,r.pi)({},i),{data:u.result}))}s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return u.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(a){__DEV__&&i.kG.error(a)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={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 n=this.cache.transformDocument(e),i=(0,m.Fo)(this.cache.transformForLink(n)),o=this.localState.clientQuery(n),a=i&&this.localState.serverQuery(i),s={document:n,hasClientExports:(0,b.mj)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:(0,y.O4)((0,y.$H)(n)),asQuery:(0,r.pi)((0,r.pi)({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.pi)((0,r.pi)({},e),{operation:"query"}):e}))})},u=function(e){e&&!t.has(e)&&t.set(e,s)};u(e),u(n),u(o),u(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new B(this),n=new R({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=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,14),__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,15),__DEV__?(0,i.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!e.returnPartialData,16),__DEV__?(0,i.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!e.pollInterval,17),this.fetchQuery(t,e).finally((function(){return n.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(18)),this.queries.forEac
1h((function(e){e.observableQuery?e.networkStatus=N.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 n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"===typeof e?o.set(e,!1):(0,g.JW)(e)?o.set(t.transform(e).document,!1):(0,E.s)(e)&&e.query&&a.add(e)})),this.queries.forEach((function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void n.set(r,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(e){var o=(0,_.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new R({queryManager:t,queryInfo:a,options:(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.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"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(K(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),v(o))throw new I.c({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new p.y((function(e){var t=null;return c.then((function(n){return t=n.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.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,n,i){var o,s,u=this;void 0===i&&(i=null!==(o=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var l=this.inFlightLinkObservables,h=this.link,v={query:c,variables:n,operationName:(0,y.rY)(c)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!i}))};if(t=v.context,i){var m=l.get(c)||new Map;l.set(c,m);var b=(0,f.B)(n);if(!(s=m.get(b))){var g=new D([a(h,v)]);m.set(b,s=g),g.cleanup((function(){m.delete(b)&&m.size<1&&l.delete(c)}))}}else s=new D([a(h,v)])}else s=new D([p.y.of({data:{}})]),t=this.prepareContext(t);var E=this.transform(e).clientQuery;return E&&(s=d(s,(function(e){return u.localState.runResolvers({document:E,remoteResult:e,context:t,variables:n})}))),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return d(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=(0,T.O)(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new I.c({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||N.I.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=(0,I.M)(t)?t:new I.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=N.I.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,c=t.errorPolicy,l=void 0===c?"none":c,f=t.returnPartialData,h=void 0!==f&&f,p=t.notifyOnNetworkStatusChange,d=void 0!==p&&p,v=t.context,y=void 0===v?{}:v,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:h,notifyOnNetworkStatusChange:d,context:y}),b=function(e){return m.variables=e,r.fetchQueryByPolicy(a,m,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return g.cancel(e)}))}));var g=new D(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(b):b(m.variables));return g.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"===typeof r?r.call(e,n):r)}
1(t)})),g},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,_.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof B&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,f=t.returnPartialData,h=t.context,d=t.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var y=function(){return e.getDiff(a)},m=function(t,n){void 0===n&&(n=e.networkStatus||N.I.loading);var s=t.result;!__DEV__||f||(0,l.D)(s,{})||F(t.missing);var u=function(e){return p.y.of((0,r.pi)({data:e,loading:(0,N.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data||void 0)})):u(s)},b="no-cache"===s?0:n===N.I.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,b,{variables:a,context:h,fetchPolicy:s,errorPolicy:c})},E=d&&"number"===typeof v&&v!==n&&(0,N.O)(n);switch(s){default:case"cache-first":return(_=y()).complete?[m(_,e.markReady())]:f||E?[m(_),g()]:[g()];case"cache-and-network":var _;return(_=y()).complete||f||E?[m(_),g()]:[g()];case"cache-only":return[m(y(),e.markReady())];case"network-only":return E?[m(y()),g()]:[g()];case"no-cache":return E?[m(e.getDiff()),g()]:[g()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new B(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),z=!1;function J(e,t){return(0,s.o)(e,t,t.variables&&{variables:(0,r.pi)((0,r.pi)({},e.variables),t.variables)})}var W=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,a=e.headers,s=e.cache,u=e.ssrMode,l=void 0!==u&&u,f=e.ssrForceFetchDelay,h=void 0===f?0:f,p=e.connectToDevTools,d=void 0===p?"object"===typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:p,v=e.queryDeduplication,y=void 0===v||v,m=e.defaultOptions,b=e.assumeImmutableResults,g=void 0!==b&&b,E=e.resolvers,_=e.typeDefs,k=e.fragmentMatcher,w=e.name,O=e.version,D=e.link;if(D||(D=n?new c({uri:n,credentials:r,headers:a}):o.i.empty()),!s)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(7);if(this.link=D,this.cache=s,this.disableNetworkFetches=l||h>0,this.queryDeduplication=y,this.defaultOptions=m||{},this.typeDefs=_,h&&setTimeout((function(){return t.disableNetworkFetches=!1}),h),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),d&&"object"===typeof window&&(window.__APOLLO_CLIENT__=this),!z&&__DEV__&&(z=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var T=window.navigator,I=T&&T.userAgent,N=void 0;"string"===typeof I&&(I.indexOf("Chrome/")>-1?N="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":I.indexOf("Firefox/")>-1&&(N="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),N&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+N)}
1this.version="3.5.10",this.localState=new Q({cache:s,client:this,resolvers:E,fragmentMatcher:k}),this.queryManager=new $({cache:this.cache,link:this.link,queryDeduplication:y,ssrMode:l,clientAwareness:{name:w,version:O},localState:this.localState,assumeImmutableResults:g,onBroadcast:d?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=J(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=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,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(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),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var o=Promise.all(r);return o.queries=n,o.results=r,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,n){var r;function i(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return i}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},30990:function(e,t,n){n.d(t,{M:function(){return o},c:function(){return a}});var r=n(70655),i=(n(9613),n(21436));function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(n){var r=n.graphQLErrors,o=n.clientErrors,a=n.networkError,s=n.errorMessage,u=n.extraInfo,c=e.call(this,s)||this;return c.graphQLErrors=r||[],c.clientErrors=o||[],c.networkError=a||null,c.message=s||function(e){var t="";return((0,i.O)(e.graphQLErrors)||(0,i.O)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEac
1h((function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")})),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")}(c),c.extraInfo=u,c.__proto__=t.prototype,c}return(0,r.ZT)(t,e),t}(Error)},48702:function(e,t,n){n.d(t,{i:function(){return f}});var r=n(70655),i=n(9613),o=n(48216);var a=n(36765);function s(e,t){return t?t(e):o.y.of()}function u(e){return"function"===typeof e?new f(e):e}function c(e){return e.request.length<=1}var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,r.ZT)(t,e),t}(Error),f=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return o.y.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=u(n),a=u(r||new e(s));return c(i)&&c(a)?new e((function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()})):new e((function(e,n){return t(e)?i.request(e,n)||o.y.of():a.request(e,n)||o.y.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=(0,r.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"===typeof e?(0,r.pi)((0,r.pi)({},n),e(n)):(0,r.pi)((0,r.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,r.pi)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?(0,a.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(24)}return e}(t))))||o.y.of()},e.concat=function(t,n){var r=u(t);if(c(r))return __DEV__&&i.kG.warn(new l("You are calling concat on a terminating link, which will have no effect",r)),r;var a=u(n);return c(a)?new e((function(e){return r.request(e,(function(e){return a.request(e)||o.y.of()}))||o.y.of()})):new e((function(e,t){return r.request(e,(function(e){return a.request(e,t)||o.y.of()}))||o.y.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},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(19)},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}()},88380:function(e,t,n){n.d(t,{L:function(){return N}});var r=n(70655),i=n(9613),o=n(77304),a=n(48702),s=n(48216),u=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=__DEV__?new i.ej("Network request failed. ".concat(t," is not serializable: ").concat(o.message)):new i.ej(21);throw r.parseError=o,r}return n},c=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},l=Object.prototype.hasOwnProperty;var f=n(87392);const h=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function p(e){return d[e.charCodeAt(0)]}const d=["\\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 v(e){return(0,o.Vn)(e,y)}const y={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>m(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=g("(",m(e.variableDefinitions,", "),")"),n=m([e.operation,m([e.name,t]),m(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+g(" = ",n)+g(" ",m(r," "))},SelectionSet:{leave:({selections:e})=>b(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=g("",e,": ")+t;let a=o+g("(",m(n,", "),")");return a.length>80&&(a=o+g("(\n",E(m(n,"\n")),"\n)")),m([a,m(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+g(" ",m(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>m(["...",g("on ",e),m(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${g("(",m(n,", "),")")} on ${t} ${g("",m(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?(0,f.LZ)(e):`"${e.replace(h,p)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+m(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+m(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+g("(",m(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>g("",e,"\n")+m(["schema",m(t," "),b(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>g("",e,"\n")+m(["scalar",t,m(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>g("",e,"\n")+m(["type",t,g("implements ",m(n," & ")),m(r," "),b(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>g("",e,"\n")+t+(_(n)?g("(\n",E(m(n,"\n")),"\n)"):g("(",m(n,", "),")"))+": "+r+g(" ",m(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>g("",e,"\n")+m([t+": "+n,g("= ",r),m(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>g("",e,"\n")+m(["interface",t,g("implements ",m(n," & ")),m(r," "),b(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>g("",e,"\n")+m(["union",t,m(n," "),g("= ",m(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>g("",e,"\n")+m(["enum",t,m(n," "),b(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>g("",e,"\n")+m([t,m(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>g("",e,"\n")+m(["input",t,m(n," "),b(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>g("",e,"\n")+"directive @"+t+(_(n)?g("(\n",E(m(n,"\n")),"\n)"):g("(",m(n,", "),")"))+(r?" repeatable":"")+" on "+m(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>m(["extend schema",m(e," "),b(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>m(["extend scalar",e,m(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>m(["extend type",e,g("implements ",m(t," & ")),m(n," "),b(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>m(["extend interface",e,g("implements ",m(t," & ")),m(n," "),b(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>m(["extend union",e,m(t," "),g("= ",m(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>m(["extend enum",e,m(t," "),b(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>m(["extend input",e,m(t," "),b(n)]," ")}};function m(e,t=""){var n;return null!==(n=null===e||void 0===e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function b(e){return g("{\n",E(m(e,"\n")),"\n}")}function g(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function E(e){return g(" ",e.replace(/\n/g,"\n "))}function _(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var k={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},w=function(e,t){return t(e)};function O(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={},a={};n.forEach((function(e){o=(0,r.pi)((0,r.pi)((0,r.pi)({},o),e.options),{headers:(0,r.pi)((0,r.pi)({},o.headers),D(e.headers))}),e.credentials&&(o.credentials=e.credentials),a=(0,r.pi)((0,r.pi)({},a),e.http)}));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,v)),{options:o,body:f}}function D(e){if(e){var t=Object.create(null);
1return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}function T(e){return new s.y((function(t){t.error(e)}))}var I=(0,i.wY)((function(){return fetch})),N=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,f=e.fetch,h=e.print,p=void 0===h?w:h,d=e.includeExtensions,v=e.useGETForQueries,y=e.includeUnusedVariables,m=void 0!==y&&y,b=(0,r._T)(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&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(20)}(f||I);var g={http:{includeExtensions:d},options:b.fetchOptions,credentials:b.credentials,headers:b.headers};return new a.i((function(e){var t=function(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),a=e.getContext(),h={};if(a.clientAwareness){var d=a.clientAwareness,y=d.name,b=d.version;y&&(h["apollographql-client-name"]=y),b&&(h["apollographql-client-version"]=b)}var E,_=(0,r.pi)((0,r.pi)({},h),a.headers),w={http:a.http,options:a.fetchOptions,credentials:a.credentials,headers:_},D=O(e,p,k,g,w),N=D.options,S=D.body;if(S.variables&&!m){var x=new Set(Object.keys(S.variables));(0,o.Vn)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&x.delete(e.name.value)}}),x.size&&(S.variables=(0,r.pi)({},S.variables),x.forEach((function(e){delete S.variables[e]})))}if(!N.signal){var A=function(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),C=A.controller,R=A.signal;(E=C)&&(N.signal=R)}if(v&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(N.method="GET"),"GET"===N.method){var P=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=u(t.variables,"Variables map")}catch(L){return{parseError:L}}r("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(L){return{parseError:L}}r("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+a}}(t,S),F=P.newURI,L=P.parseError;if(L)return T(L);t=F}else try{N.body=u(S,"Payload")}catch(L){return T(L)}return new s.y((function(n){var r;return(f||(0,i.wY)((function(){return fetch}))||I)(t,N).then((function(t){return e.setContext({response:t}),t})).then((r=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}})).then((function(t){return e.status>=300&&c(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||l.call(t,"data")||l.call(t,"errors")||c(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,"'.")),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){E&&E.abort()}}))}))}},73359:function(e,t,n){n.d(t,{t:function(){return s}});var r=n(70655),i=n(67294),o=n(71641),a=["refetch","fetchMore","updateQuery","startPolling","subscribeToMore"];function s(e,t){var n=(0,i.useState)({called:!1}),s=n[0],u=n[1],c=(0,o.a)(e,(0,r.pi)((0,r.pi)((0,r.pi)({},t),s.options),{fetchPolicy:s.called?null===t||void 0===t?void 0:t.fetchPolicy:"standby",skip:void 0}));s.called||(c=(0,r.pi)((0,r.pi)({},c),{loading:!1,data:void 0,error:void 0,called:!1}));var l=(0,i.useMemo)((function(){for(var e={},t=function(t){var n=c[t];e[t]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u((function(e){return(0,r.pi)((0,r.pi)({},e),{called:!0})})),n.apply(void 0,e)}},n=0,i=a;n<i.length;n++){t(i[n])}return e}),[]);return c.error=c.error||void 0,Object.assign(c,l),[(0,i.useCallback)((function(e){u({called:!0,options:e});var t=c.refetch(null===e||void 0===e?void 0:e.variables).then((function(e){var t=(0,r.pi)((0,r.pi)({},c),{data:e.data,error:e.error,called:!0,loading:!1});return Object.assign(t,l),t}));return t.catch((function(){})),t}),[]),c]}},50319:function(e,t,n){n.d(t,{D:function(){return l}});var r=n(70655),i=n(67294),o=n(29734),a=n(82152),s=n(14692),u=n(30990),c=n(66252);function l(e,t){var n=(0,c.x)(null===t||void 0===t?void 0:t.client);(0,s.Vp)(e,s.n_.Mutation);var l=(0,i.useState)({called:!1,loading:!1,client:n}),f=l[0],h=l[1],p=(0,i.useRef)({result:f,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(p.current,{client:n,options:t,mutation:e});var d=(0,i.useCallback)((function(e){void 0===e&&(e={});var t=p.current,n=t.client,i=t.options,s=t.mutation,c=(0,r.pi)((0,r.pi)({},i),{mutation:s});p.current.result.loading||c.ignoreResults||h(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});var l=++p.current.mutationId,f=(0,o.J)(c,e);return n.mutate(f).then((function(t){var r,i,o=t.data,s=t.errors,d=s&&s.length>0?new u.c({graphQLErrors:s}
1):void 0;if(l===p.current.mutationId&&!f.ignoreResults){var v={called:!0,loading:!1,data:o,error:d,client:n};p.current.isMounted&&!(0,a.D)(p.current.result,v)&&h(p.current.result=v)}return null===(r=c.onCompleted)||void 0===r||r.call(c,t.data),null===(i=e.onCompleted)||void 0===i||i.call(e,t.data),t})).catch((function(t){var r,i;if(l===p.current.mutationId&&p.current.isMounted){var o={loading:!1,error:t,data:void 0,called:!0,client:n};(0,a.D)(p.current.result,o)||h(p.current.result=o)}if(c.onError||f.onError)return null===(r=c.onError)||void 0===r||r.call(c,t),null===(i=e.onError)||void 0===i||i.call(e,t),{data:void 0,errors:t};throw t}))}),[]),v=(0,i.useCallback)((function(){h({called:!1,loading:!1,client:n})}),[]);return(0,i.useEffect)((function(){return function(){p.current.isMounted=!1}}),[]),[d,(0,r.pi)({reset:v},f)]}},71641:function(e,t,n){n.d(t,{a:function(){return h}});var r=n(70655),i=n(67294),o=n(82152),a=n(29734),s=n(85317),u=n(30990),c=n(1644),l=n(14692),f=n(66252);function h(e,t){var n,a=(0,i.useContext)((0,s.K)()),h=(0,f.x)(null===t||void 0===t?void 0:t.client),d=h.defaultOptions.watchQuery;(0,l.Vp)(e,l.n_.Query);var v,y=(0,i.useState)((function(){var n=p(e,t,d),r=null;return a.renderPromises&&(r=a.renderPromises.getSSRObservable(n)),r||(r=h.watchQuery(n),a.renderPromises&&a.renderPromises.registerSSRObservable(r,n)),a.renderPromises&&!1!==(null===t||void 0===t?void 0:t.ssr)&&!(null===t||void 0===t?void 0:t.skip)&&r.getCurrentResult().loading&&a.renderPromises.addQueryPromise({getOptions:function(){return p(e,t,d)},fetchData:function(){return new Promise((function(e){var t=r.subscribe({next:function(n){n.loading||(e(),t.unsubscribe())},error:function(){e(),t.unsubscribe()},complete:function(){e()}})}))}},(function(){return null})),r})),m=y[0],b=y[1],g=(0,i.useState)((function(){var e,n,r=m.getCurrentResult();return!r.loading&&t&&(r.error?null===(e=t.onError)||void 0===e||e.call(t,r.error):r.data&&(null===(n=t.onCompleted)||void 0===n||n.call(t,r.data))),r})),E=g[0],_=g[1],k=(0,i.useRef)({client:h,query:e,options:t,result:E,previousData:void 0,watchQueryOptions:p(e,t,d)});(0,i.useEffect)((function(){var n,r,i,a=p(e,t,d);if(k.current.client===h&&(0,o.D)(k.current.query,e))(0,o.D)(k.current.watchQueryOptions,a)||(m.setOptions(a).catch((function(){})),i=m.getCurrentResult(),k.current.watchQueryOptions=a);else{var s=h.watchQuery(a);b(s),i=s.getCurrentResult()}if(i){var u=k.current.result;u.data&&(k.current.previousData=u.data),_(k.current.result=i),!i.loading&&t&&(i.error?null===(n=t.onError)||void 0===n||n.call(t,i.error):i.data&&(null===(r=t.onCompleted)||void 0===r||r.call(t,i.data)))}Object.assign(k.current,{client:h,query:e})}),[m,h,e,t]),(0,i.useEffect)((function(){if(!a.renderPromises){var e=m.subscribe(t,(function n(r){var i,a,s=m.last;e.unsubscribe();try{m.resetLastResults(),e=m.subscribe(t,n)}finally{m.last=s}if(!r.hasOwnProperty("graphQLErrors"))throw r;var u=k.current.result;(u&&u.loading||!(0,o.D)(r,u.error))&&(_(k.current.result={data:u.data,error:r,loading:!1,networkStatus:c.I.error}),null===(a=null===(i=k.current.options)||void 0===i?void 0:i.onError)||void 0===a||a.call(i,r))}));return function(){return e.unsubscribe()}}function t(){var e,t,n=k.current.result,r=m.getCurrentResult();n&&n.loading===r.loading&&n.networkStatus===r.networkStatus&&(0,o.D)(n.data,r.data)||(n.data&&(k.current.previousData=n.data),_(k.current.result=r),r.loading||null===(t=null===(e=k.current.options)||void 0===e?void 0:e.onCompleted)||void 0===t||t.call(e,r.data))}}),[m,a.renderPromises,h.disableNetworkFetches]),v=(n=E).partial,E=(0,r._T)(n,["partial"]),!v||!(null===t||void 0===t?void 0:t.partialRefetch)||E.loading||E.data&&0!==Object.keys(E.data).length||"cache-only"===m.options.fetchPolicy||(E=(0,r.pi)((0,r.pi)({},E),{loading:!0,networkStatus:c.I.refetch}),m.refetch()),a.renderPromises&&!1!==(null===t||void 0===t?void 0:t.ssr)&&!(null===t||void 0===t?void 0:t.skip)&&E.loading&&m.setOptions(p(e,t,d)).catch((function(){})),Object.assign(k.current,{options:t}),(a.renderPromises||h.disableNetworkFetches)&&!1===(null===t||void 0===t?void 0:t.ssr)?E=k.current.result={loading:!0,data:void 0,error:void 0,networkStatus:c.I.loading}:((null===t||void 0===t?void 0:t.skip)||"standby"===(null===t||void 0===t?void 0:t.fetchPolicy))&&(E={loading:!1,data:void 0,error:void 0,networkStatus:c.I.ready}),E.errors&&E.errors.length&&(E=(0,r.pi)((0,r.pi)({},E),{error:E.error||new u.c({graphQLErrors:E.errors})}));var w=(0,i.useMemo)((function(){return{refetch:m.refetch.bind(m),fetchMore:m.fetchMore.bind(m),updateQuery:m.updateQuery.bind(m),startPolling:m.startPolling.bind(m),stopPolling:m.stopPolling.bind(m),subscribeToMore:m.subscribeToMore.bind(m)}}),[m]);return(0,r.pi)((0,r.pi)((0,r.pi)({},w),{variables:p(e,t,d).variables,client:h,called:!0,previousData:k.current.previousData}),E)}function p(e,t,n){var i;void 0===t&&(t={});var o=t.skip,s=(t.ssr,t.onCompleted,t.onError,t.displayName,(0,r._T)(t,["skip","ssr","onCompleted","onError","displayName"])),u=(0,r.pi)({query:e},s);return n&&(u=(0,a.J)(n,u)),o?u.fetchPolicy="standby":(!(null===(i=u.context)||void 0===i?void 0:i.renderPromises)||"network-only"!==u.fetchPolicy&&"cache-and-network"!==u.fetchPolicy)&&u.fetchPolicy||(u.fetchPolicy="cache-first"),u.variables||(u.variables={}),u}},14692:function(e,t,n){n.d(t,{n_:function(){return r},Vp:function(){return s}});var r,i=n(9613);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var o=new Map;function a(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function s(e,t){var n=function(e){var t,n,a=o.get(e);if(a)return a;__DEV__?(0,i.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,i.kG)(!!e&&!!e.kind,30);var s=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),u=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),l=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));__DEV__?(0,i.kG)(!s.length||u.length||c.length||l.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,i.kG)(!s.length||u.length||c.length||l.length,31),__DEV__?(0,i.kG)(u.length+c.length+l.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(u.length," queries, ").concat(l.length," ")+"subscriptions and ".concat(c.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,i.kG)(u.length+c.length+l.length<=1,32),n=u.length?r.Query:r.Mutation,u.length||c.length||(n=r.Subscription);var f=u.length?u:c.length?c:l;__DEV__?(0,i.kG)(1===f.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(f.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,i.kG)(1===f.length,33);var h=f[0];t=h.variableDefinitions||[];var p={name:h.name&&"Name"===h.name.kind?h.name.value:"data",type:n,variables:t};return o.set(e,p),p}(e),s=a(t),u=a(n.type);__DEV__?(0,i.kG)(n.type===t,"Running a ".concat(s," requires a graphql ")+"".concat(s,", but a ").concat(u," was used instead.")):(0,i.kG)(n.type===t,34)}},21436:function(e,t,n){function r(e){return Array.isArray(e)&&e.length>0}n.d(t,{O:function(){return r}})},79487:function(e,t,n){n.d(t,{X:function(){return i}});var r=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(r.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);
1return t.set(e,n),n.forEach((function(e,r){n[r]=o(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(n){i[n]=o(e[n],t)})),i;default:return e}}},53712:function(e,t,n){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}n.d(t,{o:function(){return r}})},60897:function(e,t,n){n.d(t,{X:function(){return i}});var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},182:function(e,t,n){n.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var r=n(70655),i=n(13154),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]||{},n=e.length;if(n>1)for(var r=new c,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var u=function(e,t,n){return this.merge(e[n],t[n])},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 n=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=n.reconciler.apply(n,(0,r.ev)([e,t,i],a,!1));u!==s&&((e=n.shallowCopyForMerge(e))[i]=u)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){if((0,i.s)(e)){if(this.pastCopies.has(e)){if(!Object.isFrozen(e))return e;this.pastCopies.delete(e)}e=Array.isArray(e)?e.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)}return e},e}()},13154:function(e,t,n){function r(e){return null!==e&&"object"===typeof e}n.d(t,{s:function(){return r}})},19065:function(e,t,n){n.d(t,{LZ:function(){return o},FS:function(){return a},mj:function(){return s}});var r=n(9613),i=n(77304);function o(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,i=e.name.value;__DEV__?(0,r.kG)(n&&1===n.length,"Incorrect number of arguments for the @".concat(i," directive.")):(0,r.kG)(n&&1===n.length,38);var o=n[0];__DEV__?(0,r.kG)(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):(0,r.kG)(o.name&&"if"===o.name.value,39);var a=o.value;__DEV__?(0,r.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):(0,r.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),40),t.push({directive:e,ifArgument:o})}}));return t}(n).every((function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,r.kG)(void 0!==o,"Invalid variable referenced in @".concat(n.name.value," directive.")):(0,r.kG)(void 0!==o,37)):o=i.value.value,"skip"===n.name.value?!o:o}))}function a(e,t){return function(e){var t=[];return(0,i.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function s(e){return e&&a(["client"],e)&&a(["export"],e)}},23361:function(e,t,n){n.d(t,{Yk:function(){return o},F:function(){return a},hi:function(){return s}});var r=n(70655),i=n(9613);function o(e,t){var n=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(41);"FragmentDefinition"===e.kind&&o.push(e)})),"undefined"===typeof n&&(__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,42),n=o[0].name.value),(0,r.pi)((0,r.pi)({},e),{definitions:(0,r.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],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;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(e.name.value,".")):(0,i.kG)(n,43),n;default:return null}}},36765:function(e,t,n){n.d(t,{A$:function(){return o},$H:function(){return a},rY:function(){return s},kU:function(){return u},iW:function(){return c},pD:function(){return l},p$:function(){return f},O4:function(){return h}});var r=n(9613),i=n(51761);function o(e){__DEV__?(0,r.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,r.kG)(e&&"Document"===e.kind,44);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new r.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new r.ej(45);return e}));return __DEV__?(0,r.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,r.kG)(t.length<=1,46),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,r.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,r.kG)(t&&"query"===t.operation,47),t}function l(e){__DEV__?(0,r.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,r.kG)("Document"===e.kind,48),__DEV__?(0,r.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,r.kG)(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?(0,r.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,r.kG)("FragmentDefinition"===t.kind,50),t}function f(e){var t;o(e);for(var n=0,i=e.definitions;n<i.length;n++){var a=i[n];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 r.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new r.ej(51)}function h(e){var t=Object.create(null),n=e&&e.variableDefinitions;
1return n&&n.length&&n.forEach((function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)})),t}},51761:function(e,t,n){n.d(t,{kQ:function(){return a},Yk:function(){return s},JW:function(){return u},vb:function(){return c},vf:function(){return l},PT:function(){return h},NC:function(){return v},u2:function(){return y},qw:function(){return m},My:function(){return b},Ao:function(){return g}});var r=n(9613),i=n(13154),o=n(23361);function a(e){return{__ref:String(e)}}function s(e){return Boolean(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,n,i){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return c(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(i||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return c(n,t,e,i),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new r.ej('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new r.ej(52);e[t.value]=null}}function l(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return c(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)}))),h(e.name.value,r,n)}var f=["connection","include","skip","client","rest","export"],h=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(p(i),")")}return n.connection.key}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(p(n[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,n){return e[n]=t[n],e}),{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return c(n,r,i,t)})),n}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var a=i[r];if(b(a)){if("__typename"===a.name.value)return e[y(a)]}else{var s=m(e,(0,o.hi)(a,n).selectionSet,n);if("string"===typeof s)return s}}}function b(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},76982:function(e,t,n){n.d(t,{Gw:function(){return v},aL:function(){return g},ob:function(){return E},Fo:function(){return m}});var r=n(70655),i=n(9613),o=n(77304),a=n(36765);function s(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var u=n(51761),c=n(23361),l={kind:"Field",name:{kind:"Name",value:"__typename"}};function f(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&f(t[e.name.value],t)}))}function h(e){return f((0,a.$H)(e)||(0,a.pD)(e),(0,c.F)((0,a.kU)(e)))?null:e}function p(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function d(e,t){var n=Object.create(null),i=[],a=Object.create(null),u=[],c=h((0,o.Vn)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(p(e))))return t.arguments&&t.arguments.forEac
1h((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&b(t.selectionSet).forEach((function(e){u.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(p(e)(t))return null}}}));return c&&s(i,(function(e){return!!e.name&&!n[e.name]})).length&&(c=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return h((0,o.Vn)(t,{OperationDefinition:{enter:function(t){return(0,r.pi)((0,r.pi)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,c)),c&&s(u,(function(e){return!!e.name&&!a[e.name]})).length&&(c=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return h((0,o.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(u,c)),c}var v=Object.assign((function(e){return(0,o.Vn)((0,a.A$)(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var i=e.selections;if(i)if(!i.some((function(e){return(0,u.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var o=n;if(!((0,u.My)(o)&&o.directives&&o.directives.some((function(e){return"export"===e.name.value}))))return(0,r.pi)((0,r.pi)({},e),{selections:(0,r.ev)((0,r.ev)([],i,!0),[l],!1)})}}}}})}),{added:function(e){return e===l}}),y={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 m(e){return d([y],(0,a.A$)(e))}function b(e){var t=[];return e.selections.forEach((function(e){((0,u.My)(e)||(0,u.Ao)(e))&&e.selectionSet?b(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function g(e){return"query"===(0,a.p$)(e).operation?e:(0,o.Vn)(e,{OperationDefinition:{enter:function(e){return(0,r.pi)((0,r.pi)({},e),{operation:"query"})}}})}function E(e){(0,a.A$)(e);var t=d([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,o.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return(0,u.My)(e)&&"__typename"===e.name.value})))return null}}})),t}},72380:function(e,t,n){n.d(t,{Ye:function(){return r},WU:function(){return i},h8:function(){return o},UG:function(){return s},ku:function(){return u}});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&a.has(t)}let u;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(u||(u={}))},87392:function(e,t,n){n.d(t,{wv:function(){return i},LZ:function(){return a}});var r=n(68297);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s<e.length;++s){var a;const t=e[s],u=o(t);u!==t.length&&(r=null!==(a=r)&&void 0!==a?a:s,i=s,0!==s&&u<n&&(n=u))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t<e.length&&(0,r.FD)(e.charCodeAt(t));)++t;return t}function a(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every((e=>0===e.length||(0,r.FD)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!==t&&void 0!==t&&t.minimize)&&(!o||e.length>70||l||a||s);let h="";const p=o&&(0,r.FD)(e.charCodeAt(0));return(f&&!p||a)&&(h+="\n"),h+=n,(f||l)&&(h+="\n"),'"""'+h+'"""'}},68297:function(e,t,n){function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{FD:function(){return r},X1:function(){return i},LQ:function(){return a},HQ:function(){return s}})},97359:function(e,t,n){let r;n.d(t,{h:function(){return r}}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
1ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},77304:function(e,t,n){n.d(t,{$_:function(){return s},Vn:function(){return u}});var r=n(37826),i=n(25821),o=n(72380),a=n(97359);const s=Object.freeze({});function u(e,t,n=o.h8){const u=new Map;for(const r of Object.values(a.h))u.set(r,c(t,r));let l,f,h,p=Array.isArray(e),d=[e],v=-1,y=[],m=e;const b=[],g=[];do{v++;const e=v===d.length,a=e&&0!==y.length;if(e){if(f=0===g.length?void 0:b[b.length-1],m=h,h=g.pop(),a)if(p){m=m.slice();let e=0;for(const[t,n]of y){const r=t-e;null===n?(m.splice(r,1),e++):m[r]=n}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(const[e,t]of y)m[e]=t}v=l.index,d=l.keys,y=l.edits,p=l.inArray,l=l.prev}else if(h){if(f=p?v:d[v],m=h[f],null===m||void 0===m)continue;b.push(f)}let c;if(!Array.isArray(m)){var E,_;(0,o.UG)(m)||(0,r.a)(!1,`Invalid AST Node: ${(0,i.X)(m)}.`);const n=e?null===(E=u.get(m.kind))||void 0===E?void 0:E.leave:null===(_=u.get(m.kind))||void 0===_?void 0:_.enter;if(c=null===n||void 0===n?void 0:n.call(t,m,f,h,b,g),c===s)break;if(!1===c){if(!e){b.pop();continue}}else if(void 0!==c&&(y.push([f,c]),!e)){if(!(0,o.UG)(c)){b.pop();continue}m=c}}var k;if(void 0===c&&a&&y.push([f,m]),e)b.pop();else l={inArray:p,index:v,keys:d,edits:y,prev:l},p=Array.isArray(m),d=p?m:null!==(k=n[m.kind])&&void 0!==k?k:[],v=-1,y=[],h&&g.push(h),h=m}while(void 0!==l);return 0!==y.length?y[y.length-1][1]:e}function c(e,t){const n=e[t];return"object"===typeof n?n:"function"===typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}},48216:function(e,t,n){function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,{y:function(){return O}});var s=function(){return"function"===typeof Symbol},u=function(e){return s()&&Boolean(Symbol[e])},c=function(e){return u(e)?Symbol[e]:"@@"+e};s()&&!u("observable")&&(Symbol.observable=Symbol("observable"));var l=c("iterator"),f=c("observable"),h=c("species");function p(e,t){var n=e[t];if(null!=n){if("function"!==typeof n)throw new TypeError(n+" is not a function");return n}}function d(e){var t=e.constructor;return void 0!==t&&null===(t=t[h])&&(t=void 0),void 0!==t?t:O}function v(e){return e instanceof O}
vendor: 5,506 bytes, line 1
1function y(e){y.log?y.log(e):setTimeout((function(){throw e}))}function m(e){Promise.resolve().then((function(){try{e()}catch(t){y(t)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var n=p(t,"unsubscribe");n&&n.call(t)}}catch(r){y(r)}}function g(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function E(e,t,n){e._state="running";var r=e._observer;try{var i=p(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(g(e),!i)throw n;i.call(r,n);break;case"complete":g(e),i&&i.call(r)}}catch(o){y(o)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function _(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void m((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(E(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void E(e,t,n);e._queue.push({type:t,value:n})}}var k=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new w(this);try{this._cleanup=t.call(void 0,n)}catch(r){n.error(r)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(g(this),b(this))},a(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),w=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){_(this._subscription,"next",e)},t.error=function(e){_(this._subscription,"error",e)},t.complete=function(){_(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof t)throw new 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 k(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"===typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(d(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(d(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=d(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(s){return n.error(s)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=d(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=d(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(s){return r.error(s)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[f]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=p(t,f);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return v(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(u("iterator")&&(i=p(t,l)))return new n((function(e){m((function(){if(!e.closed){for(var n,o=r(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){m((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"===typeof this?this:e;return new i((function(e){m((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},a(e,null,[{key:h,get:function(){return this}}]),e}();s()&&Object.defineProperty(O,Symbol("extensions"),{value:{symbol:f,hostReportError:y},configurable:!0})}}]);
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.