import{A as ie,B as oe,C as ee,D as ui,E as Rr,Ia as Cr,Ja as fi,K as Ar,La as Ft,Na as Ke,Wa as li,Zb as pi,a as ne,b as Ge,j as ai,l as Fr,t as si,v as B,w as d,x as pe,xa as ci}from"./chunk-V6BPA3D7.js";var Lr="Invariant Violation",hi=Object.setPrototypeOf,ka=hi===void 0?function(r,e){return r.__proto__=e,r}:hi,I=function(r){B(e,r);function e(t){t===void 0&&(t=Lr);var n=r.call(this,typeof t=="number"?Lr+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return n.framesToPop=1,n.name=Lr,ka(n,e.prototype),n}return e}(Error);function O(r,e){if(!r)throw new I(e)}var At=["debug","log","warn","error","silent"],Pr=At.indexOf("log");function Rt(r){return function(){if(At.indexOf(r)>=Pr){var e=console[r]||console.log;return e.apply(console,arguments)}}}(function(r){r.debug=Rt("debug"),r.log=Rt("log"),r.warn=Rt("warn"),r.error=Rt("error")})(O||(O={}));function di(r){var e=At[Pr];return Pr=Math.max(0,At.indexOf(r)),e}function G(r){try{return r()}catch{}}var Ct=G(function(){return globalThis})||G(function(){return window})||G(function(){return self})||G(function(){return global})||G(function(){return G.constructor("return this")()});var mi="__",vi=[mi,mi].join("DEV");function Na(){try{return!!__DEV__}catch{return Object.defineProperty(Ct,vi,{value:G(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),Ct[vi]}}var Ie=Na();function Ee(r){try{return r()}catch{}}var Mr=Ee(function(){return globalThis})||Ee(function(){return window})||Ee(function(){return self})||Ee(function(){return global})||Ee(function(){return Ee.constructor("return this")()}),Vr=!1;function Ia(){Mr&&!Ee(function(){return"production"})&&!Ee(function(){return process})&&(Object.defineProperty(Mr,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Vr=!0)}Ia();function jr(){Vr&&(delete Mr.process,Vr=!1)}function Lt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lt=function(t){return typeof t}:Lt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(r)}function qr(r){return Lt(r)=="object"&&r!==null}var cc=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",fc=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",Pt=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function ze(r,e){for(var t=/\r\n|[\n\r]/g,n=1,i=e+1,o;(o=t.exec(r.body))&&o.index<e;)n+=1,i=e+1-(o.index+o[0].length);return{line:n,column:i}}function Qr(r){return Vt(r.source,ze(r.source,r.start))}function Vt(r,e){var t=r.locationOffset.column-1,n=Mt(t)+r.body,i=e.line-1,o=r.locationOffset.line-1,a=e.line+o,s=e.line===1?t:0,u=e.column+s,c="".concat(r.name,":").concat(a,":").concat(u,`
`),f=n.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){for(var l=Math.floor(u/80),h=u%80,v=[],m=0;m<p.length;m+=80)v.push(p.slice(m,m+80));return c+yi([["".concat(a),v[0]]].concat(v.slice(1,l+1).map(function(b){return["",b]}),[[" ",Mt(h-1)+"^"],["",v[l+1]]]))}return c+yi([["".concat(a-1),f[i-1]],["".concat(a),p],["",Mt(u-1)+"^"],["".concat(a+1),f[i+1]]])}function yi(r){var e=r.filter(function(n){var i=n[0],o=n[1];return o!==void 0}),t=Math.max.apply(Math,e.map(function(n){var i=n[0];return i.length}));return e.map(function(n){var i=n[0],o=n[1];return Fa(t,i)+(o?" | "+o:" |")}).join(`
`)}function Mt(r){return Array(r+1).join(" ")}function Fa(r,e){return Mt(r-e.length)+e}function jt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(t){return typeof t}:jt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(r)}function Ra(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function gi(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Aa(r,e,t){return e&&gi(r.prototype,e),t&&gi(r,t),r}function Ca(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&st(r,e)}function La(r){var e=Ei();return function(){var n=ut(r),i;if(e){var o=ut(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return bi(this,i)}}function bi(r,e){return e&&(jt(e)==="object"||typeof e=="function")?e:at(r)}function at(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Br(r){var e=typeof Map=="function"?new Map:void 0;return Br=function(n){if(n===null||!Pa(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return qt(n,arguments,ut(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),st(i,n)},Br(r)}function qt(r,e,t){return Ei()?qt=Reflect.construct:qt=function(i,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(i,s),c=new u;return a&&st(c,a.prototype),c},qt.apply(null,arguments)}function Ei(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Pa(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function st(r,e){return st=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},st(r,e)}function ut(r){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ut(r)}var Oi=function(r){Ca(t,r);var e=La(t);function t(n,i,o,a,s,u,c){var f,p,l,h,v;Ra(this,t),v=e.call(this,n);var m=Array.isArray(i)?i.length!==0?i:void 0:i?[i]:void 0,b=o;if(!b&&m){var _;b=(_=m[0].loc)===null||_===void 0?void 0:_.source}var g=a;!g&&m&&(g=m.reduce(function(w,S){return S.loc&&w.push(S.loc.start),w},[])),g&&g.length===0&&(g=void 0);var E;a&&o?E=a.map(function(w){return ze(o,w)}):m&&(E=m.reduce(function(w,S){return S.loc&&w.push(ze(S.loc.source,S.loc.start)),w},[]));var x=c;if(x==null&&u!=null){var k=u.extensions;qr(k)&&(x=k)}return Object.defineProperties(at(v),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:(f=E)!==null&&f!==void 0?f:void 0,enumerable:E!=null},path:{value:s??void 0,enumerable:s!=null},nodes:{value:m??void 0},source:{value:(p=b)!==null&&p!==void 0?p:void 0},positions:{value:(l=g)!==null&&l!==void 0?l:void 0},originalError:{value:u},extensions:{value:(h=x)!==null&&h!==void 0?h:void 0,enumerable:x!=null}}),u?.stack?(Object.defineProperty(at(v),"stack",{value:u.stack,writable:!0,configurable:!0}),bi(v)):(Error.captureStackTrace?Error.captureStackTrace(at(v),t):Object.defineProperty(at(v),"stack",{value:Error().stack,writable:!0,configurable:!0}),v)}return Aa(t,[{key:"toString",value:function(){return Ma(this)}},{key:Pt,get:function(){return"Object"}}]),t}(Br(Error));function Ma(r){var e=r.message;if(r.nodes)for(var t=0,n=r.nodes;t<n.length;t++){var i=n[t];i.loc&&(e+=`
`+Qr(i.loc))}else if(r.source&&r.locations)for(var o=0,a=r.locations;o<a.length;o++){var s=a[o];e+=`
`+Vt(r.source,s)}return e}function H(r,e,t){return new Oi("Syntax Error: ".concat(t),void 0,r,[e])}var T=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function Ur(r,e){var t=!!r;if(!t)throw new Error(e??"Unexpected invariant triggered.")}var Va=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,ct=Va;function Qt(r){var e=r.prototype.toJSON;typeof e=="function"||Ur(0),r.prototype.inspect=e,ct&&(r.prototype[ct]=e)}var Bt=function(){function r(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}var e=r.prototype;return e.toJSON=function(){return{start:this.start,end:this.end}},r}();Qt(Bt);var j=function(){function r(t,n,i,o,a,s,u){this.kind=t,this.start=n,this.end=i,this.line=o,this.column=a,this.value=u,this.prev=s,this.next=null}var e=r.prototype;return e.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},r}();Qt(j);function Gr(r){return r!=null&&typeof r.kind=="string"}var y=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Ut(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ut=function(t){return typeof t}:Ut=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(r)}var ja=10,_i=2;function ft(r){return Gt(r,[])}function Gt(r,e){switch(Ut(r)){case"string":return JSON.stringify(r);case"function":return r.name?"[function ".concat(r.name,"]"):"[function]";case"object":return r===null?"null":qa(r,e);default:return String(r)}}function qa(r,e){if(e.indexOf(r)!==-1)return"[Circular]";var t=[].concat(e,[r]),n=Ua(r);if(n!==void 0){var i=n.call(r);if(i!==r)return typeof i=="string"?i:Gt(i,t)}else if(Array.isArray(r))return Ba(r,t);return Qa(r,t)}function Qa(r,e){var t=Object.keys(r);if(t.length===0)return"{}";if(e.length>_i)return"["+Ga(r)+"]";var n=t.map(function(i){var o=Gt(r[i],e);return i+": "+o});return"{ "+n.join(", ")+" }"}function Ba(r,e){if(r.length===0)return"[]";if(e.length>_i)return"[Array]";for(var t=Math.min(ja,r.length),n=r.length-t,i=[],o=0;o<t;++o)i.push(Gt(r[o],e));return n===1?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}function Ua(r){var e=r[String(ct)];if(typeof e=="function")return e;if(typeof r.inspect=="function")return r.inspect}function Ga(r){var e=Object.prototype.toString.call(r).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof r.constructor=="function"){var t=r.constructor.name;if(typeof t=="string"&&t!=="")return t}return e}function lt(r,e){var t=!!r;if(!t)throw new Error(e)}var xi=function(e,t){return e instanceof t};function Ti(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Ka(r,e,t){return e&&Ti(r.prototype,e),t&&Ti(r,t),r}var Fe=function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof e=="string"||lt(0,"Body must be a string. Received: ".concat(ft(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||lt(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||lt(0,"column in locationOffset is 1-indexed and must be positive.")}return Ka(r,[{key:Pt,get:function(){return"Source"}}]),r}();function Si(r){return xi(r,Fe)}var Kr=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function wi(r){var e=r.split(/\r\n|[\n\r]/g),t=za(r);if(t!==0)for(var n=1;n<e.length;n++)e[n]=e[n].slice(t);for(var i=0;i<e.length&&Di(e[i]);)++i;for(var o=e.length;o>i&&Di(e[o-1]);)--o;return e.slice(i,o).join(`
`)}function Di(r){for(var e=0;e<r.length;++e)if(r[e]!==" "&&r[e]!==" ")return!1;return!0}function za(r){for(var e,t=!0,n=!0,i=0,o=null,a=0;a<r.length;++a)switch(r.charCodeAt(a)){case 13:r.charCodeAt(a+1)===10&&++a;case 10:t=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!t&&(o===null||i<o)&&(o=i),n=!1}return(e=o)!==null&&e!==void 0?e:0}function ki(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.indexOf(`
`)===-1,i=r[0]===" "||r[0]===" ",o=r[r.length-1]==='"',a=r[r.length-1]==="\\",s=!n||o||a||t,u="";return s&&!(n&&i)&&(u+=`
`+e),u+=e?r.replace(/\n/g,`
`+e):r,s&&(u+=`
`),'"""'+u.replace(/"""/g,'\\"""')+'"""'}var Wr=function(){function r(t){var n=new j(y.SOF,0,0,0,0,null);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var e=r.prototype;return e.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},e.lookahead=function(){var n=this.token;if(n.kind!==y.EOF)do{var i;n=(i=n.next)!==null&&i!==void 0?i:n.next=Wa(this,n)}while(n.kind===y.COMMENT);return n},r}();function Ni(r){return r===y.BANG||r===y.DOLLAR||r===y.AMP||r===y.PAREN_L||r===y.PAREN_R||r===y.SPREAD||r===y.COLON||r===y.EQUALS||r===y.AT||r===y.BRACKET_L||r===y.BRACKET_R||r===y.BRACE_L||r===y.PIPE||r===y.BRACE_R}function Re(r){return isNaN(r)?y.EOF:r<127?JSON.stringify(String.fromCharCode(r)):'"\\u'.concat(("00"+r.toString(16).toUpperCase()).slice(-4),'"')}function Wa(r,e){for(var t=r.source,n=t.body,i=n.length,o=e.end;o<i;){var a=n.charCodeAt(o),s=r.line,u=1+o-r.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++r.line,r.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++r.line,r.lineStart=o;continue;case 33:return new j(y.BANG,o,o+1,s,u,e);case 35:return Ja(t,o,s,u,e);case 36:return new j(y.DOLLAR,o,o+1,s,u,e);case 38:return new j(y.AMP,o,o+1,s,u,e);case 40:return new j(y.PAREN_L,o,o+1,s,u,e);case 41:return new j(y.PAREN_R,o,o+1,s,u,e);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return new j(y.SPREAD,o,o+3,s,u,e);break;case 58:return new j(y.COLON,o,o+1,s,u,e);case 61:return new j(y.EQUALS,o,o+1,s,u,e);case 64:return new j(y.AT,o,o+1,s,u,e);case 91:return new j(y.BRACKET_L,o,o+1,s,u,e);case 93:return new j(y.BRACKET_R,o,o+1,s,u,e);case 123:return new j(y.BRACE_L,o,o+1,s,u,e);case 124:return new j(y.PIPE,o,o+1,s,u,e);case 125:return new j(y.BRACE_R,o,o+1,s,u,e);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?Za(t,o,s,u,e,r):Xa(t,o,s,u,e);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ha(t,o,a,s,u,e);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return es(t,o,s,u,e)}throw H(t,o,Ya(a))}var c=r.line,f=1+o-r.lineStart;return new j(y.EOF,i,i,c,f,e)}function Ya(r){return r<32&&r!==9&&r!==10&&r!==13?"Cannot contain the invalid character ".concat(Re(r),"."):r===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Re(r),".")}function Ja(r,e,t,n,i){var o=r.body,a,s=e;do a=o.charCodeAt(++s);while(!isNaN(a)&&(a>31||a===9));return new j(y.COMMENT,e,s,t,n,i,o.slice(e+1,s))}function Ha(r,e,t,n,i,o){var a=r.body,s=t,u=e,c=!1;if(s===45&&(s=a.charCodeAt(++u)),s===48){if(s=a.charCodeAt(++u),s>=48&&s<=57)throw H(r,u,"Invalid number, unexpected digit after 0: ".concat(Re(s),"."))}else u=zr(r,u,s),s=a.charCodeAt(u);if(s===46&&(c=!0,s=a.charCodeAt(++u),u=zr(r,u,s),s=a.charCodeAt(u)),(s===69||s===101)&&(c=!0,s=a.charCodeAt(++u),(s===43||s===45)&&(s=a.charCodeAt(++u)),u=zr(r,u,s),s=a.charCodeAt(u)),s===46||ts(s))throw H(r,u,"Invalid number, expected digit but got: ".concat(Re(s),"."));return new j(c?y.FLOAT:y.INT,e,u,n,i,o,a.slice(e,u))}function zr(r,e,t){var n=r.body,i=e,o=t;if(o>=48&&o<=57){do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i}throw H(r,i,"Invalid number, expected digit but got: ".concat(Re(o),"."))}function Xa(r,e,t,n,i){for(var o=r.body,a=e+1,s=a,u=0,c="";a<o.length&&!isNaN(u=o.charCodeAt(a))&&u!==10&&u!==13;){if(u===34)return c+=o.slice(s,a),new j(y.STRING,e,a+1,t,n,i,c);if(u<32&&u!==9)throw H(r,a,"Invalid character within String: ".concat(Re(u),"."));if(++a,u===92){switch(c+=o.slice(s,a-1),u=o.charCodeAt(a),u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+=`
`;break;case 114:c+="\r";break;case 116:c+=" ";break;case 117:{var f=$a(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(f<0){var p=o.slice(a+1,a+5);throw H(r,a,"Invalid character escape sequence: \\u".concat(p,"."))}c+=String.fromCharCode(f),a+=4;break}default:throw H(r,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++a,s=a}}throw H(r,a,"Unterminated string.")}function Za(r,e,t,n,i,o){for(var a=r.body,s=e+3,u=s,c=0,f="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(c===34&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34)return f+=a.slice(u,s),new j(y.BLOCK_STRING,e,s+3,t,n,i,wi(f));if(c<32&&c!==9&&c!==10&&c!==13)throw H(r,s,"Invalid character within String: ".concat(Re(c),"."));c===10?(++s,++o.line,o.lineStart=s):c===13?(a.charCodeAt(s+1)===10?s+=2:++s,++o.line,o.lineStart=s):c===92&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34&&a.charCodeAt(s+3)===34?(f+=a.slice(u,s)+'"""',s+=4,u=s):++s}throw H(r,s,"Unterminated string.")}function $a(r,e,t,n){return Kt(r)<<12|Kt(e)<<8|Kt(t)<<4|Kt(n)}function Kt(r){return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:-1}function es(r,e,t,n,i){for(var o=r.body,a=o.length,s=e+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new j(y.NAME,e,s,t,n,i,o.slice(e,s))}function ts(r){return r===95||r>=65&&r<=90||r>=97&&r<=122}function zt(r,e){var t=new rs(r,e);return t.parseDocument()}var rs=function(){function r(t,n){var i=Si(t)?t:new Fe(t);this._lexer=new Wr(i),this._options=n}var e=r.prototype;return e.parseName=function(){var n=this.expectToken(y.NAME);return{kind:T.NAME,value:n.value,loc:this.loc(n)}},e.parseDocument=function(){var n=this._lexer.token;return{kind:T.DOCUMENT,definitions:this.many(y.SOF,this.parseDefinition,y.EOF),loc:this.loc(n)}},e.parseDefinition=function(){if(this.peek(y.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(y.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(y.BRACE_L))return{kind:T.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var i=this.parseOperationType(),o;return this.peek(y.NAME)&&(o=this.parseName()),{kind:T.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseOperationType=function(){var n=this.expectToken(y.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},e.parseVariableDefinitions=function(){return this.optionalMany(y.PAREN_L,this.parseVariableDefinition,y.PAREN_R)},e.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:T.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(y.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},e.parseVariable=function(){var n=this._lexer.token;return this.expectToken(y.DOLLAR),{kind:T.VARIABLE,name:this.parseName(),loc:this.loc(n)}},e.parseSelectionSet=function(){var n=this._lexer.token;return{kind:T.SELECTION_SET,selections:this.many(y.BRACE_L,this.parseSelection,y.BRACE_R),loc:this.loc(n)}},e.parseSelection=function(){return this.peek(y.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var n=this._lexer.token,i=this.parseName(),o,a;return this.expectOptionalToken(y.COLON)?(o=i,a=this.parseName()):a=i,{kind:T.FIELD,alias:o,name:a,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(y.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function(n){var i=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(y.PAREN_L,i,y.PAREN_R)},e.parseArgument=function(){var n=this._lexer.token,i=this.parseName();return this.expectToken(y.COLON),{kind:T.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(n)}},e.parseConstArgument=function(){var n=this._lexer.token;return{kind:T.ARGUMENT,name:this.parseName(),value:(this.expectToken(y.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},e.parseFragment=function(){var n=this._lexer.token;this.expectToken(y.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(y.NAME)?{kind:T.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:T.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseFragmentDefinition=function(){var n,i=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},e.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(n){var i=this._lexer.token;switch(i.kind){case y.BRACKET_L:return this.parseList(n);case y.BRACE_L:return this.parseObject(n);case y.INT:return this._lexer.advance(),{kind:T.INT,value:i.value,loc:this.loc(i)};case y.FLOAT:return this._lexer.advance(),{kind:T.FLOAT,value:i.value,loc:this.loc(i)};case y.STRING:case y.BLOCK_STRING:return this.parseStringLiteral();case y.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:T.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:T.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:T.NULL,loc:this.loc(i)};default:return{kind:T.ENUM,value:i.value,loc:this.loc(i)}}case y.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},e.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:T.STRING,value:n.value,block:n.kind===y.BLOCK_STRING,loc:this.loc(n)}},e.parseList=function(n){var i=this,o=this._lexer.token,a=function(){return i.parseValueLiteral(n)};return{kind:T.LIST,values:this.any(y.BRACKET_L,a,y.BRACKET_R),loc:this.loc(o)}},e.parseObject=function(n){var i=this,o=this._lexer.token,a=function(){return i.parseObjectField(n)};return{kind:T.OBJECT,fields:this.any(y.BRACE_L,a,y.BRACE_R),loc:this.loc(o)}},e.parseObjectField=function(n){var i=this._lexer.token,o=this.parseName();return this.expectToken(y.COLON),{kind:T.OBJECT_FIELD,name:o,value:this.parseValueLiteral(n),loc:this.loc(i)}},e.parseDirectives=function(n){for(var i=[];this.peek(y.AT);)i.push(this.parseDirective(n));return i},e.parseDirective=function(n){var i=this._lexer.token;return this.expectToken(y.AT),{kind:T.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(i)}},e.parseTypeReference=function(){var n=this._lexer.token,i;return this.expectOptionalToken(y.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(y.BRACKET_R),i={kind:T.LIST_TYPE,type:i,loc:this.loc(n)}):i=this.parseNamedType(),this.expectOptionalToken(y.BANG)?{kind:T.NON_NULL_TYPE,type:i,loc:this.loc(n)}:i},e.parseNamedType=function(){var n=this._lexer.token;return{kind:T.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},e.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===y.NAME)switch(n.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()}throw this.unexpected(n)},e.peekDescription=function(){return this.peek(y.STRING)||this.peek(y.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),a=this.many(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);return{kind:T.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:a,loc:this.loc(n)}},e.parseOperationTypeDefinition=function(){var n=this._lexer.token,i=this.parseOperationType();this.expectToken(y.COLON);var o=this.parseNamedType();return{kind:T.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(n)}},e.parseScalarTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),a=this.parseDirectives(!0);return{kind:T.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:a,loc:this.loc(n)}},e.parseObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:T.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:a,directives:s,fields:u,loc:this.loc(n)}},e.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var i=[];this.expectOptionalToken(y.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(y.AMP)||this.peek(y.NAME));return i}return this.delimitedMany(y.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(y.BRACE_L)&&this._lexer.lookahead().kind===y.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(y.BRACE_L,this.parseFieldDefinition,y.BRACE_R)},e.parseFieldDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),a=this.parseArgumentDefs();this.expectToken(y.COLON);var s=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:T.FIELD_DEFINITION,description:i,name:o,arguments:a,type:s,directives:u,loc:this.loc(n)}},e.parseArgumentDefs=function(){return this.optionalMany(y.PAREN_L,this.parseInputValueDef,y.PAREN_R)},e.parseInputValueDef=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(y.COLON);var a=this.parseTypeReference(),s;this.expectOptionalToken(y.EQUALS)&&(s=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:T.INPUT_VALUE_DEFINITION,description:i,name:o,type:a,defaultValue:s,directives:u,loc:this.loc(n)}},e.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:T.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:a,directives:s,fields:u,loc:this.loc(n)}},e.parseUnionTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseUnionMemberTypes();return{kind:T.UNION_TYPE_DEFINITION,description:i,name:o,directives:a,types:s,loc:this.loc(n)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(y.EQUALS)?this.delimitedMany(y.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();return{kind:T.ENUM_TYPE_DEFINITION,description:i,name:o,directives:a,values:s,loc:this.loc(n)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(y.BRACE_L,this.parseEnumValueDefinition,y.BRACE_R)},e.parseEnumValueDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),a=this.parseDirectives(!0);return{kind:T.ENUM_VALUE_DEFINITION,description:i,name:o,directives:a,loc:this.loc(n)}},e.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();return{kind:T.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:a,fields:s,loc:this.loc(n)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(y.BRACE_L,this.parseInputValueDef,y.BRACE_R)},e.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===y.NAME)switch(n.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(n)},e.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),o=this.optionalMany(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:T.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(n)}},e.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:T.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(n)}},e.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(o.length===0&&a.length===0&&s.length===0)throw this.unexpected();return{kind:T.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:a,fields:s,loc:this.loc(n)}},e.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(o.length===0&&a.length===0&&s.length===0)throw this.unexpected();return{kind:T.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:a,fields:s,loc:this.loc(n)}},e.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseUnionMemberTypes();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:T.UNION_TYPE_EXTENSION,name:i,directives:o,types:a,loc:this.loc(n)}},e.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseEnumValuesDefinition();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:T.ENUM_TYPE_EXTENSION,name:i,directives:o,values:a,loc:this.loc(n)}},e.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseInputFieldsDefinition();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:T.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:a,loc:this.loc(n)}},e.parseDirectiveDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(y.AT);var o=this.parseName(),a=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:T.DIRECTIVE_DEFINITION,description:i,name:o,arguments:a,repeatable:s,locations:u,loc:this.loc(n)}},e.parseDirectiveLocations=function(){return this.delimitedMany(y.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var n=this._lexer.token,i=this.parseName();if(Kr[i.value]!==void 0)return i;throw this.unexpected(n)},e.loc=function(n){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new Bt(n,this._lexer.lastToken,this._lexer.source)},e.peek=function(n){return this._lexer.token.kind===n},e.expectToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i;throw H(this._lexer.source,i.start,"Expected ".concat(Ii(n),", found ").concat(Yr(i),"."))},e.expectOptionalToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i},e.expectKeyword=function(n){var i=this._lexer.token;if(i.kind===y.NAME&&i.value===n)this._lexer.advance();else throw H(this._lexer.source,i.start,'Expected "'.concat(n,'", found ').concat(Yr(i),"."))},e.expectOptionalKeyword=function(n){var i=this._lexer.token;return i.kind===y.NAME&&i.value===n?(this._lexer.advance(),!0):!1},e.unexpected=function(n){var i=n??this._lexer.token;return H(this._lexer.source,i.start,"Unexpected ".concat(Yr(i),"."))},e.any=function(n,i,o){this.expectToken(n);for(var a=[];!this.expectOptionalToken(o);)a.push(i.call(this));return a},e.optionalMany=function(n,i,o){if(this.expectOptionalToken(n)){var a=[];do a.push(i.call(this));while(!this.expectOptionalToken(o));return a}return[]},e.many=function(n,i,o){this.expectToken(n);var a=[];do a.push(i.call(this));while(!this.expectOptionalToken(o));return a},e.delimitedMany=function(n,i){this.expectOptionalToken(n);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(n));return o},r}();function Yr(r){var e=r.value;return Ii(r.kind)+(e!=null?' "'.concat(e,'"'):"")}function Ii(r){return Ni(r)?'"'.concat(r,'"'):r}var ns={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"]},Ae=Object.freeze({});function W(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ns,n=void 0,i=Array.isArray(r),o=[r],a=-1,s=[],u=void 0,c=void 0,f=void 0,p=[],l=[],h=r;do{a++;var v=a===o.length,m=v&&s.length!==0;if(v){if(c=l.length===0?void 0:p[p.length-1],u=f,f=l.pop(),m){if(i)u=u.slice();else{for(var b={},_=0,g=Object.keys(u);_<g.length;_++){var E=g[_];b[E]=u[E]}u=b}for(var x=0,k=0;k<s.length;k++){var w=s[k][0],S=s[k][1];i&&(w-=x),i&&S===null?(u.splice(w,1),x++):u[w]=S}}a=n.index,o=n.keys,s=n.edits,i=n.inArray,n=n.prev}else{if(c=f?i?a:o[a]:void 0,u=f?f[c]:h,u==null)continue;f&&p.push(c)}var N=void 0;if(!Array.isArray(u)){if(!Gr(u))throw new Error("Invalid AST Node: ".concat(ft(u),"."));var P=Jr(e,u.kind,v);if(P){if(N=P.call(e,u,c,f,p,l),N===Ae)break;if(N===!1){if(!v){p.pop();continue}}else if(N!==void 0&&(s.push([c,N]),!v))if(Gr(N))u=N;else{p.pop();continue}}}if(N===void 0&&m&&s.push([c,u]),v)p.pop();else{var F;n={inArray:i,index:a,keys:o,edits:s,prev:n},i=Array.isArray(u),o=i?u:(F=t[u.kind])!==null&&F!==void 0?F:[],a=-1,s=[],f&&l.push(f),f=u}}while(n!==void 0);return s.length!==0&&(h=s[s.length-1][1]),h}function Jr(r,e,t){var n=r[e];if(n){if(!t&&typeof n=="function")return n;var i=t?n.leave:n.enter;if(typeof i=="function")return i}else{var o=t?r.leave:r.enter;if(o){if(typeof o=="function")return o;var a=o[e];if(typeof a=="function")return a}}}function Yt(r){return W(r,{leave:os})}var is=80,os={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return D(e.definitions,`
`)+`
`},OperationDefinition:function(e){var t=e.operation,n=e.name,i=q("(",D(e.variableDefinitions,", "),")"),o=D(e.directives," "),a=e.selectionSet;return!n&&!o&&!i&&t==="query"?a:D([t,D([n,i]),o,a]," ")},VariableDefinition:function(e){var t=e.variable,n=e.type,i=e.defaultValue,o=e.directives;return t+": "+n+q(" = ",i)+q(" ",D(o," "))},SelectionSet:function(e){var t=e.selections;return se(t)},Field:function(e){var t=e.alias,n=e.name,i=e.arguments,o=e.directives,a=e.selectionSet,s=q("",t,": ")+n,u=s+q("(",D(i,", "),")");return u.length>is&&(u=s+q(`(
`,Wt(D(i,`
`)),`
)`)),D([u,D(o," "),a]," ")},Argument:function(e){var t=e.name,n=e.value;return t+": "+n},FragmentSpread:function(e){var t=e.name,n=e.directives;return"..."+t+q(" ",D(n," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,i=e.selectionSet;return D(["...",q("on ",t),D(n," "),i]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,i=e.variableDefinitions,o=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(q("(",D(i,", "),")")," ")+"on ".concat(n," ").concat(q("",D(o," ")," "))+a},IntValue:function(e){var t=e.value;return t},FloatValue:function(e){var t=e.value;return t},StringValue:function(e,t){var n=e.value,i=e.block;return i?ki(n,t==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(e){var t=e.value;return t?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var t=e.value;return t},ListValue:function(e){var t=e.values;return"["+D(t,", ")+"]"},ObjectValue:function(e){var t=e.fields;return"{"+D(t,", ")+"}"},ObjectField:function(e){var t=e.name,n=e.value;return t+": "+n},Directive:function(e){var t=e.name,n=e.arguments;return"@"+t+q("(",D(n,", "),")")},NamedType:function(e){var t=e.name;return t},ListType:function(e){var t=e.type;return"["+t+"]"},NonNullType:function(e){var t=e.type;return t+"!"},SchemaDefinition:ae(function(r){var e=r.directives,t=r.operationTypes;return D(["schema",D(e," "),se(t)]," ")}),OperationTypeDefinition:function(e){var t=e.operation,n=e.type;return t+": "+n},ScalarTypeDefinition:ae(function(r){var e=r.name,t=r.directives;return D(["scalar",e,D(t," ")]," ")}),ObjectTypeDefinition:ae(function(r){var e=r.name,t=r.interfaces,n=r.directives,i=r.fields;return D(["type",e,q("implements ",D(t," & ")),D(n," "),se(i)]," ")}),FieldDefinition:ae(function(r){var e=r.name,t=r.arguments,n=r.type,i=r.directives;return e+(Fi(t)?q(`(
`,Wt(D(t,`
`)),`
)`):q("(",D(t,", "),")"))+": "+n+q(" ",D(i," "))}),InputValueDefinition:ae(function(r){var e=r.name,t=r.type,n=r.defaultValue,i=r.directives;return D([e+": "+t,q("= ",n),D(i," ")]," ")}),InterfaceTypeDefinition:ae(function(r){var e=r.name,t=r.interfaces,n=r.directives,i=r.fields;return D(["interface",e,q("implements ",D(t," & ")),D(n," "),se(i)]," ")}),UnionTypeDefinition:ae(function(r){var e=r.name,t=r.directives,n=r.types;return D(["union",e,D(t," "),n&&n.length!==0?"= "+D(n," | "):""]," ")}),EnumTypeDefinition:ae(function(r){var e=r.name,t=r.directives,n=r.values;return D(["enum",e,D(t," "),se(n)]," ")}),EnumValueDefinition:ae(function(r){var e=r.name,t=r.directives;return D([e,D(t," ")]," ")}),InputObjectTypeDefinition:ae(function(r){var e=r.name,t=r.directives,n=r.fields;return D(["input",e,D(t," "),se(n)]," ")}),DirectiveDefinition:ae(function(r){var e=r.name,t=r.arguments,n=r.repeatable,i=r.locations;return"directive @"+e+(Fi(t)?q(`(
`,Wt(D(t,`
`)),`
)`):q("(",D(t,", "),")"))+(n?" repeatable":"")+" on "+D(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return D(["extend schema",D(t," "),se(n)]," ")},ScalarTypeExtension:function(e){var t=e.name,n=e.directives;return D(["extend scalar",t,D(n," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,i=e.directives,o=e.fields;return D(["extend type",t,q("implements ",D(n," & ")),D(i," "),se(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,i=e.directives,o=e.fields;return D(["extend interface",t,q("implements ",D(n," & ")),D(i," "),se(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,i=e.types;return D(["extend union",t,D(n," "),i&&i.length!==0?"= "+D(i," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,i=e.values;return D(["extend enum",t,D(n," "),se(i)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,i=e.fields;return D(["extend input",t,D(n," "),se(i)]," ")}};function ae(r){return function(e){return D([e.description,r(e)],`
`)}}function D(r){var e,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(e=r?.filter(function(n){return n}).join(t))!==null&&e!==void 0?e:""}function se(r){return q(`{
`,Wt(D(r,`
`)),`
}`)}function q(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return e!=null&&e!==""?r+e+t:""}function Wt(r){return q(" ",r.replace(/\n/g,`
`))}function as(r){return r.indexOf(`
`)!==-1}function Fi(r){return r!=null&&r.some(as)}function pt(r){return r.kind===T.FIELD||r.kind===T.FRAGMENT_SPREAD||r.kind===T.INLINE_FRAGMENT}function Ri(){return typeof Fe=="function"?jr():jr()}function gs(){__DEV__?O(typeof Ie=="boolean",Ie):O(typeof Ie=="boolean",39)}Ri();gs();function ve(r,e){var t=r.directives;return!t||!t.length?!0:Ai(t).every(function(n){var i=n.directive,o=n.ifArgument,a=!1;return o.value.kind==="Variable"?(a=e&&e[o.value.name.value],__DEV__?O(a!==void 0,"Invalid variable referenced in @".concat(i.name.value," directive.")):O(a!==void 0,40)):a=o.value.value,i.name.value==="skip"?!a:a})}function We(r,e,t){var n=new Set(r),i=n.size;return W(e,{Directive:function(o){if(n.delete(o.name.value)&&(!t||!n.size))return Ae}}),t?!n.size:n.size<i}function Hr(r){return r&&We(["client","export"],r,!0)}function bs(r){var e=r.name.value;return e==="skip"||e==="include"}function Ai(r){var e=[];return r&&r.length&&r.forEach(function(t){if(bs(t)){var n=t.arguments,i=t.name.value;__DEV__?O(n&&n.length===1,"Incorrect number of arguments for the @".concat(i," directive.")):O(n&&n.length===1,41);var o=n[0];__DEV__?O(o.name&&o.name.value==="if","Invalid argument for the @".concat(i," directive.")):O(o.name&&o.name.value==="if",42);var a=o.value;__DEV__?O(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):O(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),43),e.push({directive:t,ifArgument:o})}}),e}function Xr(r,e){var t=e,n=[];r.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw __DEV__?new I("Found a ".concat(o.operation," operation").concat(o.name?" named '".concat(o.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new I(44);o.kind==="FragmentDefinition"&&n.push(o)}),typeof t>"u"&&(__DEV__?O(n.length===1,"Found ".concat(n.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):O(n.length===1,45),t=n[0].name.value);var i=d(d({},r),{definitions:ee([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:t}}]}}],r.definitions,!0)});return i}function Ce(r){r===void 0&&(r=[]);var e={};return r.forEach(function(t){e[t.name.value]=t}),e}function Le(r,e){switch(r.kind){case"InlineFragment":return r;case"FragmentSpread":{var t=r.name.value;if(typeof e=="function")return e(t);var n=e&&e[t];return __DEV__?O(n,"No fragment named ".concat(t)):O(n,46),n||null}default:return null}}function A(r){return r!==null&&typeof r=="object"}function ue(r){return{__ref:String(r)}}function R(r){return!!(r&&typeof r=="object"&&typeof r.__ref=="string")}function Zr(r){return A(r)&&r.kind==="Document"&&Array.isArray(r.definitions)}function Es(r){return r.kind==="StringValue"}function Os(r){return r.kind==="BooleanValue"}function _s(r){return r.kind==="IntValue"}function xs(r){return r.kind==="FloatValue"}function Ts(r){return r.kind==="Variable"}function Ss(r){return r.kind==="ObjectValue"}function Ds(r){return r.kind==="ListValue"}function ws(r){return r.kind==="EnumValue"}function ks(r){return r.kind==="NullValue"}function Oe(r,e,t,n){if(_s(t)||xs(t))r[e.value]=Number(t.value);else if(Os(t)||Es(t))r[e.value]=t.value;else if(Ss(t)){var i={};t.fields.map(function(a){return Oe(i,a.name,a.value,n)}),r[e.value]=i}else if(Ts(t)){var o=(n||{})[t.name.value];r[e.value]=o}else if(Ds(t))r[e.value]=t.values.map(function(a){var s={};return Oe(s,e,a,n),s[e.value]});else if(ws(t))r[e.value]=t.value;else if(ks(t))r[e.value]=null;else throw __DEV__?new I('The inline argument "'.concat(e.value,'" of kind "').concat(t.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new I(55)}function $r(r,e){var t=null;r.directives&&(t={},r.directives.forEach(function(i){t[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,s=o.value;return Oe(t[i.name.value],a,s,e)})}));var n=null;return r.arguments&&r.arguments.length&&(n={},r.arguments.forEach(function(i){var o=i.name,a=i.value;return Oe(n,o,a,e)})),dt(r.name.value,n,t)}var Ns=["connection","include","skip","client","rest","export"],dt=Object.assign(function(r,e,t){if(e&&t&&t.connection&&t.connection.key)if(t.connection.filter&&t.connection.filter.length>0){var n=t.connection.filter?t.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=e[s]}),"".concat(t.connection.key,"(").concat(ht(i),")")}else return t.connection.key;var o=r;if(e){var a=ht(e);o+="(".concat(a,")")}return t&&Object.keys(t).forEach(function(s){Ns.indexOf(s)===-1&&(t[s]&&Object.keys(t[s]).length?o+="@".concat(s,"(").concat(ht(t[s]),")"):o+="@".concat(s))}),o},{setStringify:function(r){var e=ht;return ht=r,e}}),ht=function(e){return JSON.stringify(e,Is)};function Is(r,e){return A(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{})),e}function ye(r,e){if(r.arguments&&r.arguments.length){var t={};return r.arguments.forEach(function(n){var i=n.name,o=n.value;return Oe(t,i,o,e)}),t}return null}function te(r){return r.alias?r.alias.value:r.name.value}function mt(r,e,t){for(var n,i=0,o=e.selections;i<o.length;i++){var a=o[i];if(Z(a)){if(a.name.value==="__typename")return r[te(a)]}else n?n.push(a):n=[a]}if(typeof r.__typename=="string")return r.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var a=u[s],c=mt(r,Le(a,t).selectionSet,t);if(typeof c=="string")return c}}function Z(r){return r.kind==="Field"}function en(r){return r.kind==="InlineFragment"}function Ye(r){__DEV__?O(r&&r.kind==="Document",'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'):O(r&&r.kind==="Document",47);var e=r.definitions.filter(function(t){return t.kind!=="FragmentDefinition"}).map(function(t){if(t.kind!=="OperationDefinition")throw __DEV__?new I('Schema type definitions not allowed in queries. Found: "'.concat(t.kind,'"')):new I(48);return t});return __DEV__?O(e.length<=1,"Ambiguous GraphQL document: contains ".concat(e.length," operations")):O(e.length<=1,49),r}function he(r){return Ye(r),r.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function Je(r){return r.definitions.filter(function(e){return e.kind==="OperationDefinition"&&!!e.name}).map(function(e){return e.name.value})[0]||null}function Pe(r){return r.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function vt(r){var e=he(r);return __DEV__?O(e&&e.operation==="query","Must contain a query definition."):O(e&&e.operation==="query",50),e}function tn(r){__DEV__?O(r.kind==="Document",'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'):O(r.kind==="Document",51),__DEV__?O(r.definitions.length<=1,"Fragment must have exactly one definition."):O(r.definitions.length<=1,52);var e=r.definitions[0];return __DEV__?O(e.kind==="FragmentDefinition","Must be a fragment definition."):O(e.kind==="FragmentDefinition",53),e}function ge(r){Ye(r);for(var e,t=0,n=r.definitions;t<n.length;t++){var i=n[t];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!e&&(e=i)}if(e)return e;throw __DEV__?new I("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new I(54)}function Me(r){var e=Object.create(null),t=r&&r.variableDefinitions;return t&&t.length&&t.forEach(function(n){n.defaultValue&&Oe(e,n.variable.name,n.defaultValue)}),e}var M=Array.isArray;function K(r){return Array.isArray(r)&&r.length>0}var Ci={kind:T.FIELD,name:{kind:T.NAME,value:"__typename"}};function Pi(r,e){return!r||r.selectionSet.selections.every(function(t){return t.kind===T.FRAGMENT_SPREAD&&Pi(e[t.name.value],e)})}function Fs(r){return Pi(he(r)||tn(r),Ce(Pe(r)))?null:r}function Rs(r){var e=new Set,t=[];return r.forEach(function(n){n.name?e.add(n.name):n.test&&t.push(n.test)}),function(n){return e.has(n.name.value)||t.some(function(i){return i(n)})}}function Li(r){var e=new Map;return function(n){n===void 0&&(n=r);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function rn(r,e){for(var t=Li(""),n=Li(""),i=function(g){for(var E=0,x=void 0;E<g.length&&(x=g[E]);++E)if(!M(x)){if(x.kind===T.OPERATION_DEFINITION)return t(x.name&&x.name.value);if(x.kind===T.FRAGMENT_DEFINITION)return n(x.name.value)}return __DEV__&&O.error("Could not find operation or fragment"),null},o=0,a=e.definitions.length-1;a>=0;--a)e.definitions[a].kind===T.OPERATION_DEFINITION&&++o;var s=Rs(r),u=r.some(function(g){return g.remove}),c=function(g){return u&&g&&g.some(s)},f=new Map,p=!1,l={enter:function(g){if(c(g.directives))return p=!0,null}},h=W(e,{Field:l,InlineFragment:l,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(g,E,x,k,w){var S=i(w);S&&S.variables.add(g.name.value)}},FragmentSpread:{enter:function(g,E,x,k,w){if(c(g.directives))return p=!0,null;var S=i(w);S&&S.fragmentSpreads.add(g.name.value)}},FragmentDefinition:{enter:function(g,E,x,k){f.set(JSON.stringify(k),g)},leave:function(g,E,x,k){var w=f.get(JSON.stringify(k));if(g===w)return g;if(o>0&&g.selectionSet.selections.every(function(S){return S.kind===T.FIELD&&S.name.value==="__typename"}))return n(g.name.value).removed=!0,p=!0,null}},Directive:{leave:function(g){if(s(g))return p=!0,null}}});if(!p)return e;var v=function(g){return g.transitiveVars||(g.transitiveVars=new Set(g.variables),g.removed||g.fragmentSpreads.forEach(function(E){v(n(E)).transitiveVars.forEach(function(x){g.transitiveVars.add(x)})})),g},m=new Set;h.definitions.forEach(function(g){g.kind===T.OPERATION_DEFINITION?v(t(g.name&&g.name.value)).fragmentSpreads.forEach(function(E){m.add(E)}):g.kind===T.FRAGMENT_DEFINITION&&o===0&&!n(g.name.value).removed&&m.add(g.name.value)}),m.forEach(function(g){v(n(g)).fragmentSpreads.forEach(function(E){m.add(E)})});var b=function(g){return!!(!m.has(g)||n(g).removed)},_={enter:function(g){if(b(g.name.value))return null}};return Fs(W(h,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave:function(g){if(g.variableDefinitions){var E=v(t(g.name&&g.name.value)).transitiveVars;if(E.size<g.variableDefinitions.length)return d(d({},g),{variableDefinitions:g.variableDefinitions.filter(function(x){return E.has(x.variable.name.value)})})}}}}))}var Ve=Object.assign(function(r){return W(r,{SelectionSet:{enter:function(e,t,n){if(!(n&&n.kind===T.OPERATION_DEFINITION)){var i=e.selections;if(i){var o=i.some(function(s){return Z(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!o){var a=n;if(!(Z(a)&&a.directives&&a.directives.some(function(s){return s.name.value==="export"})))return d(d({},e),{selections:ee(ee([],i,!0),[Ci],!1)})}}}}}})},{added:function(r){return r===Ci}}),As={test:function(r){var e=r.name.value==="connection";return e&&(!r.arguments||!r.arguments.some(function(t){return t.name.value==="key"}))&&__DEV__&&O.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."),e}};function nn(r){return rn([As],Ye(r))}function on(r){var e=ge(r),t=e.operation;if(t==="query")return r;var n=W(r,{OperationDefinition:{enter:function(i){return d(d({},i),{operation:"query"})}}});return n}function an(r){Ye(r);var e=rn([{test:function(t){return t.name.value==="client"},remove:!0}],r);return e}var Cs=Object.prototype.hasOwnProperty;function sn(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return yt(r)}function yt(r){var e=r[0]||{},t=r.length;if(t>1)for(var n=new X,i=1;i<t;++i)e=n.merge(e,r[i]);return e}var Ls=function(r,e,t){return this.merge(r[t],e[t])},X=function(){function r(e){e===void 0&&(e=Ls),this.reconciler=e,this.isObject=A,this.pastCopies=new Set}return r.prototype.merge=function(e,t){for(var n=this,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return A(t)&&A(e)?(Object.keys(t).forEach(function(a){if(Cs.call(e,a)){var s=e[a];if(t[a]!==s){var u=n.reconciler.apply(n,ee([e,t,a],i,!1));u!==s&&(e=n.shallowCopyForMerge(e),e[a]=u)}}else e=n.shallowCopyForMerge(e),e[a]=t[a]}),e):t},r.prototype.shallowCopyForMerge=function(e){return A(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e=d({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},r}();function Ps(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=Ms(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ms(r,e){if(r){if(typeof r=="string")return Mi(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Mi(r,e)}}function Mi(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Vi(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function ln(r,e,t){return e&&Vi(r.prototype,e),t&&Vi(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}var pn=function(){return typeof Symbol=="function"},hn=function(r){return pn()&&!!Symbol[r]},dn=function(r){return hn(r)?Symbol[r]:"@@"+r};pn()&&!hn("observable")&&(Symbol.observable=Symbol("observable"));var Vs=dn("iterator"),cn=dn("observable"),ji=dn("species");function Ht(r,e){var t=r[e];if(t!=null){if(typeof t!="function")throw new TypeError(t+" is not a function");return t}}function gt(r){var e=r.constructor;return e!==void 0&&(e=e[ji],e===null&&(e=void 0)),e!==void 0?e:C}function js(r){return r instanceof C}function He(r){He.log?He.log(r):setTimeout(function(){throw r})}function Jt(r){Promise.resolve().then(function(){try{r()}catch(e){He(e)}})}function qi(r){var e=r._cleanup;if(e!==void 0&&(r._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{var t=Ht(e,"unsubscribe");t&&t.call(e)}}catch(n){He(n)}}function fn(r){r._observer=void 0,r._queue=void 0,r._state="closed"}function qs(r){var e=r._queue;if(e){r._queue=void 0,r._state="ready";for(var t=0;t<e.length&&(Qi(r,e[t].type,e[t].value),r._state!=="closed");++t);}}function Qi(r,e,t){r._state="running";var n=r._observer;try{var i=Ht(n,e);switch(e){case"next":i&&i.call(n,t);break;case"error":if(fn(r),i)i.call(n,t);else throw t;break;case"complete":fn(r),i&&i.call(n);break}}catch(o){He(o)}r._state==="closed"?qi(r):r._state==="running"&&(r._state="ready")}function un(r,e,t){if(r._state!=="closed"){if(r._state==="buffering"){r._queue.push({type:e,value:t});return}if(r._state!=="ready"){r._state="buffering",r._queue=[{type:e,value:t}],Jt(function(){return qs(r)});return}Qi(r,e,t)}}var Qs=function(){function r(t,n){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new Bs(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}this._state==="initializing"&&(this._state="ready")}var e=r.prototype;return e.unsubscribe=function(){this._state!=="closed"&&(fn(this),qi(this))},ln(r,[{key:"closed",get:function(){return this._state==="closed"}}]),r}(),Bs=function(){function r(t){this._subscription=t}var e=r.prototype;return e.next=function(n){un(this._subscription,"next",n)},e.error=function(n){un(this._subscription,"error",n)},e.complete=function(){un(this._subscription,"complete")},ln(r,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),r}(),C=function(){function r(t){if(!(this instanceof r))throw new TypeError("Observable cannot be called as a function");if(typeof t!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=t}var e=r.prototype;return e.subscribe=function(n){return(typeof n!="object"||n===null)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new Qs(n,this._subscriber)},e.forEach=function(n){var i=this;return new Promise(function(o,a){if(typeof n!="function"){a(new TypeError(n+" is not a function"));return}function s(){u.unsubscribe(),o()}var u=i.subscribe({next:function(c){try{n(c,s)}catch(f){a(f),u.unsubscribe()}},error:a,complete:o})})},e.map=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=gt(this);return new o(function(a){return i.subscribe({next:function(s){try{s=n(s)}catch(u){return a.error(u)}a.next(s)},error:function(s){a.error(s)},complete:function(){a.complete()}})})},e.filter=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=gt(this);return new o(function(a){return i.subscribe({next:function(s){try{if(!n(s))return}catch(u){return a.error(u)}a.next(s)},error:function(s){a.error(s)},complete:function(){a.complete()}})})},e.reduce=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=gt(this),a=arguments.length>1,s=!1,u=arguments[1],c=u;return new o(function(f){return i.subscribe({next:function(p){var l=!s;if(s=!0,!l||a)try{c=n(c,p)}catch(h){return f.error(h)}else c=p},error:function(p){f.error(p)},complete:function(){if(!s&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(c),f.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=gt(this);return new s(function(u){var c,f=0;function p(l){c=l.subscribe({next:function(h){u.next(h)},error:function(h){u.error(h)},complete:function(){f===o.length?(c=void 0,u.complete()):p(s.from(o[f++]))}})}return p(n),function(){c&&(c.unsubscribe(),c=void 0)}})},e.flatMap=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=gt(this);return new o(function(a){var s=[],u=i.subscribe({next:function(f){if(n)try{f=n(f)}catch(l){return a.error(l)}var p=o.from(f).subscribe({next:function(l){a.next(l)},error:function(l){a.error(l)},complete:function(){var l=s.indexOf(p);l>=0&&s.splice(l,1),c()}});s.push(p)},error:function(f){a.error(f)},complete:function(){c()}});function c(){u.closed&&s.length===0&&a.complete()}return function(){s.forEach(function(f){return f.unsubscribe()}),u.unsubscribe()}})},e[cn]=function(){return this},r.from=function(n){var i=typeof this=="function"?this:r;if(n==null)throw new TypeError(n+" is not an object");var o=Ht(n,cn);if(o){var a=o.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return js(a)&&a.constructor===i?a:new i(function(s){return a.subscribe(s)})}if(hn("iterator")&&(o=Ht(n,Vs),o))return new i(function(s){Jt(function(){if(!s.closed){for(var u=Ps(o.call(n)),c;!(c=u()).done;){var f=c.value;if(s.next(f),s.closed)return}s.complete()}})});if(Array.isArray(n))return new i(function(s){Jt(function(){if(!s.closed){for(var u=0;u<n.length;++u)if(s.next(n[u]),s.closed)return;s.complete()}})});throw new TypeError(n+" is not observable")},r.of=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=typeof this=="function"?this:r;return new a(function(s){Jt(function(){if(!s.closed){for(var u=0;u<i.length;++u)if(s.next(i[u]),s.closed)return;s.complete()}})})},ln(r,null,[{key:ji,get:function(){return this}}]),r}();pn()&&Object.defineProperty(C,Symbol("extensions"),{value:{symbol:cn,hostReportError:He},configurable:!0});function mn(r){var e,t=r.Symbol;if(typeof t=="function")if(t.observable)e=t.observable;else{typeof t.for=="function"?e=t.for("https://github.com/benlesh/symbol-observable"):e=t("https://github.com/benlesh/symbol-observable");try{t.observable=e}catch{}}else e="@@observable";return e}var Xe;typeof self<"u"?Xe=self:typeof window<"u"?Xe=window:typeof global<"u"?Xe=global:typeof module<"u"?Xe=module:Xe=Function("return this")();var nl=mn(Xe);var Bi=C.prototype,Ui="@@observable";Bi[Ui]||(Bi[Ui]=function(){return this});var Us=Object.prototype.toString;function Xt(r){return vn(r)}function vn(r,e){switch(Us.call(r)){case"[object Array]":{if(e=e||new Map,e.has(r))return e.get(r);var t=r.slice(0);return e.set(r,t),t.forEach(function(i,o){t[o]=vn(i,e)}),t}case"[object Object]":{if(e=e||new Map,e.has(r))return e.get(r);var n=Object.create(Object.getPrototypeOf(r));return e.set(r,n),Object.keys(r).forEach(function(i){n[i]=vn(r[i],e)}),n}default:return r}}function Gs(r){var e=new Set([r]);return e.forEach(function(t){A(t)&&Ks(t)===t&&Object.getOwnPropertyNames(t).forEach(function(n){A(t[n])&&e.add(t[n])})}),r}function Ks(r){if(__DEV__&&!Object.isFrozen(r))try{Object.freeze(r)}catch(e){if(e instanceof TypeError)return null;throw e}return r}function bt(r){return __DEV__&&Gs(r),r}function je(r,e,t){var n=[];r.forEach(function(i){return i[e]&&n.push(i)}),n.forEach(function(i){return i[e](t)})}function Zt(r,e,t){return new C(function(n){var i=n.next,o=n.error,a=n.complete,s=0,u=!1,c={then:function(h){return new Promise(function(v){return v(h())})}};function f(h,v){return h?function(m){++s;var b=function(){return h(m)};c=c.then(b,b).then(function(_){--s,i&&i.call(n,_),u&&p.complete()},function(_){throw--s,_}).catch(function(_){o&&o.call(n,_)})}:function(m){return v&&v.call(n,m)}}var p={next:f(e,i),error:f(t,o),complete:function(){u=!0,s||a&&a.call(n)}},l=r.subscribe(p);return function(){return l.unsubscribe()}})}var re=typeof WeakMap=="function"&&G(function(){return navigator.product})!=="ReactNative",Gi=typeof WeakSet=="function",yn=typeof Symbol=="function"&&typeof Symbol.for=="function",_e=yn&&Symbol.asyncIterator,vl=typeof G(function(){return window.document.createElement})=="function",yl=G(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1;function $t(r){function e(t){Object.defineProperty(r,t,{value:C})}return yn&&Symbol.species&&e(Symbol.species),e("@@species"),r}function Ki(r){return r&&typeof r.then=="function"}var qe=function(r){B(e,r);function e(t){var n=r.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.promise=new Promise(function(i,o){n.resolve=i,n.reject=o}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],n.notify("next",i),je(n.observers,"next",i))},error:function(i){var o=n.sub;o!==null&&(o&&setTimeout(function(){return o.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),n.notify("error",i),je(n.observers,"error",i))},complete:function(){var i=n,o=i.sub,a=i.sources,s=a===void 0?[]:a;if(o!==null){var u=s.shift();u?Ki(u)?u.then(function(c){return n.sub=c.subscribe(n.handlers)}):n.sub=u.subscribe(n.handlers):(o&&setTimeout(function(){return o.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),je(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.complete()},n.promise.catch(function(i){}),typeof t=="function"&&(t=[new C(t)]),Ki(t)?t.then(function(i){return n.start(i)},n.handlers.error):n.start(t),n}return e.prototype.start=function(t){this.sub===void 0&&(this.sources=Array.from(t),this.handlers.complete())},e.prototype.deliverLastMessage=function(t){if(this.latest){var n=this.latest[0],i=t[n];i&&i.call(t,this.latest[1]),this.sub===null&&n==="next"&&t.complete&&t.complete()}},e.prototype.addObserver=function(t){this.observers.has(t)||(this.deliverLastMessage(t),this.observers.add(t))},e.prototype.removeObserver=function(t){this.observers.delete(t)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(t,n){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(o){return o(t,n)}))},e.prototype.beforeNext=function(t){var n=!1;this.nextResultListeners.add(function(i,o){n||(n=!0,t(i,o))})},e}(C);$t(qe);function xe(r){return"incremental"in r}function zs(r){return"hasNext"in r&&"data"in r}function zi(r){return xe(r)||zs(r)}function Wi(r){return A(r)&&"payload"in r}function er(r,e){var t=r,n=new X;return xe(e)&&K(e.incremental)&&e.incremental.forEach(function(i){for(var o=i.data,a=i.path,s=a.length-1;s>=0;--s){var u=a[s],c=!isNaN(+u),f=c?[]:{};f[u]=o,o=f}t=n.merge(t,o)}),t}function Ze(r){var e=tr(r);return K(e)}function tr(r){var e=K(r.errors)?r.errors.slice(0):[];return xe(r)&&K(r.incremental)&&r.incremental.forEach(function(t){t.errors&&e.push.apply(e,t.errors)}),e}function Te(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Object.create(null);return r.forEach(function(n){n&&Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(t[i]=o)})}),t}var Yi=new Map;function Et(r){var e=Yi.get(r)||1;return Yi.set(r,e+1),"".concat(r,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function Ji(r){var e=Et("stringifyForDisplay");return JSON.stringify(r,function(t,n){return n===void 0?e:n}).split(JSON.stringify(e)).join("<undefined>")}function Ot(r,e){return Te(r,e,e.variables&&{variables:d(d({},r&&r.variables),e.variables)})}function rr(r){return new C(function(e){e.error(r)})}var _t=function(r,e,t){var n=new Error(t);throw n.name="ServerError",n.response=r,n.statusCode=r.status,n.result=e,n};function gn(r){for(var e=["query","operationName","variables","extensions","context"],t=0,n=Object.keys(r);t<n.length;t++){var i=n[t];if(e.indexOf(i)<0)throw __DEV__?new I("illegal argument: ".concat(i)):new I(27)}return r}function bn(r,e){var t=d({},r),n=function(o){typeof o=="function"?t=d(d({},t),o(t)):t=d(d({},t),o)},i=function(){return d({},t)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:n}),Object.defineProperty(e,"getContext",{enumerable:!1,value:i}),e}function En(r){var e={variables:r.variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query};return e.operationName||(e.operationName=typeof e.query!="string"?Je(e.query)||void 0:""),e}function Hi(r,e){return e?e(r):C.of()}function xt(r){return typeof r=="function"?new de(r):r}function nr(r){return r.request.length<=1}var Ws=function(r){B(e,r);function e(t,n){var i=r.call(this,t)||this;return i.link=n,i}return e}(Error),de=function(){function r(e){e&&(this.request=e)}return r.empty=function(){return new r(function(){return C.of()})},r.from=function(e){return e.length===0?r.empty():e.map(xt).reduce(function(t,n){return t.concat(n)})},r.split=function(e,t,n){var i=xt(t),o=xt(n||new r(Hi));return nr(i)&&nr(o)?new r(function(a){return e(a)?i.request(a)||C.of():o.request(a)||C.of()}):new r(function(a,s){return e(a)?i.request(a,s)||C.of():o.request(a,s)||C.of()})},r.execute=function(e,t){return e.request(bn(t.context,En(gn(t))))||C.of()},r.concat=function(e,t){var n=xt(e);if(nr(n))return __DEV__&&O.warn(new Ws("You are calling concat on a terminating link, which will have no effect",n)),n;var i=xt(t);return nr(i)?new r(function(o){return n.request(o,function(a){return i.request(a)||C.of()})||C.of()}):new r(function(o,a){return n.request(o,function(s){return i.request(s,a)||C.of()})||C.of()})},r.prototype.split=function(e,t,n){return this.concat(r.split(e,t,n||new r(Hi)))},r.prototype.concat=function(e){return r.concat(this,e)},r.prototype.request=function(e,t){throw __DEV__?new I("request is not implemented"):new I(22)},r.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},r.prototype.setOnError=function(e){return this.onError=e,this},r}();var $e=de.execute;var Xi="3.7.17";function Zi(r){return!!r.body}function $i(r){return!!r.getReader}function eo(r){return!!(_e&&r[Symbol.asyncIterator])}function to(r){return!!r.stream}function ro(r){return!!r.arrayBuffer}function no(r){return!!r.pipe}function On(r){var e,t=r[Symbol.asyncIterator]();return e={next:function(){return t.next()}},e[Symbol.asyncIterator]=function(){return this},e}function _n(r){var e=null,t=null,n=!1,i=[],o=[];function a(p){if(!t){if(o.length){var l=o.shift();if(Array.isArray(l)&&l[0])return l[0]({value:p,done:!1})}i.push(p)}}function s(p){t=p;var l=o.slice();l.forEach(function(h){h[1](p)}),!e||e()}function u(){n=!0;var p=o.slice();p.forEach(function(l){l[0]({value:void 0,done:!0})}),!e||e()}e=function(){e=null,r.removeListener("data",a),r.removeListener("error",s),r.removeListener("end",u),r.removeListener("finish",u),r.removeListener("close",u)},r.on("data",a),r.on("error",s),r.on("end",u),r.on("finish",u),r.on("close",u);function c(){return new Promise(function(p,l){if(t)return l(t);if(i.length)return p({value:i.shift(),done:!1});if(n)return p({value:void 0,done:!0});o.push([p,l])})}var f={next:function(){return c()}};return _e&&(f[Symbol.asyncIterator]=function(){return this}),f}function xn(r){var e=!1,t={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(n,i){r.then(function(o){n({value:o,done:!1})}).catch(i)}))}};return _e&&(t[Symbol.asyncIterator]=function(){return this}),t}function ir(r){var e={next:function(){return r.read()}};return _e&&(e[Symbol.asyncIterator]=function(){return this}),e}function io(r){var e=r;if(Zi(r)&&(e=r.body),eo(e))return On(e);if($i(e))return ir(e.getReader());if(to(e))return ir(e.stream().getReader());if(ro(e))return xn(e.arrayBuffer());if(no(e))return _n(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Tt=Symbol();function oo(r){return r.extensions?Array.isArray(r.extensions[Tt]):!1}function ao(r){return r.hasOwnProperty("graphQLErrors")}var Ys=function(r){var e=ee(ee(ee([],r.graphQLErrors,!0),r.clientErrors,!0),r.protocolErrors,!0);return r.networkError&&e.push(r.networkError),e.map(function(t){return A(t)&&t.message||"Error message not found."}).join(`
`)},Qe=function(r){B(e,r);function e(t){var n=t.graphQLErrors,i=t.protocolErrors,o=t.clientErrors,a=t.networkError,s=t.errorMessage,u=t.extraInfo,c=r.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=a||null,c.message=s||Ys(c),c.extraInfo=u,c.__proto__=e.prototype,c}return e}(Error);var so=Object.prototype.hasOwnProperty;function uo(r,e){var t,n,i,o,a;return ie(this,void 0,void 0,function(){var s,u,c,f,p,l,h,v,m,b,_,g,E,x,k,w,S,N,P,F,Y,fe,U;return oe(this,function(le){switch(le.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");s=new TextDecoder("utf-8"),u=(t=r.headers)===null||t===void 0?void 0:t.get("content-type"),c="boundary=",f=u?.includes(c)?u?.substring(u?.indexOf(c)+c.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",p=`\r
--`.concat(f),l="",h=io(r),v=!0,le.label=1;case 1:return v?[4,h.next()]:[3,3];case 2:for(m=le.sent(),b=m.value,_=m.done,g=typeof b=="string"?b:s.decode(b),E=l.length-p.length+1,v=!_,l+=g,x=l.indexOf(p,E);x>-1;){if(k=void 0,fe=[l.slice(0,x),l.slice(x+p.length)],k=fe[0],l=fe[1],w=k.indexOf(`\r
\r
`),S=Js(k.slice(0,w)),N=S["content-type"],N&&N.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(P=k.slice(w),P)try{F=co(r,P),Object.keys(F).length>1||"data"in F||"incremental"in F||"errors"in F||"payload"in F?Wi(F)?(Y={},"payload"in F&&(Y=d({},F.payload)),"errors"in F&&(Y=d(d({},Y),{extensions:d(d({},"extensions"in Y?Y.extensions:null),(U={},U[Tt]=F.errors,U))})),(n=e.next)===null||n===void 0||n.call(e,Y)):(i=e.next)===null||i===void 0||i.call(e,F):Object.keys(F).length===1&&"hasNext"in F&&!F.hasNext&&((o=e.complete)===null||o===void 0||o.call(e))}catch(Dr){or(Dr,e)}x=l.indexOf(p)}return[3,1];case 3:return(a=e.complete)===null||a===void 0||a.call(e),[2]}})})}function Js(r){var e={};return r.split(`
`).forEach(function(t){var n=t.indexOf(":");if(n>-1){var i=t.slice(0,n).trim().toLowerCase(),o=t.slice(n+1).trim();e[i]=o}}),e}function co(r,e){if(r.status>=300){var t=function(){try{return JSON.parse(e)}catch{return e}};_t(r,t(),"Response not successful: Received status code ".concat(r.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=r,n.statusCode=r.status,n.bodyText=e,n}}function or(r,e){var t,n;r.name!=="AbortError"&&(r.result&&r.result.errors&&r.result.data&&((t=e.next)===null||t===void 0||t.call(e,r.result)),(n=e.error)===null||n===void 0||n.call(e,r))}function fo(r,e,t){Hs(e)(r).then(function(n){var i,o;(i=t.next)===null||i===void 0||i.call(t,n),(o=t.complete)===null||o===void 0||o.call(t)}).catch(function(n){return or(n,t)})}function Hs(r){return function(e){return e.text().then(function(t){return co(e,t)}).then(function(t){return e.status>=300&&_t(e,t,"Response not successful: Received status code ".concat(e.status)),!Array.isArray(t)&&!so.call(t,"data")&&!so.call(t,"errors")&&_t(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map(function(n){return n.operationName}):r.operationName,"'.")),t})}}var St=function(r,e){var t;try{t=JSON.stringify(r)}catch(i){var n=__DEV__?new I("Network request failed. ".concat(e," is not serializable: ").concat(i.message)):new I(24);throw n.parseError=i,n}return t};var Xs={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Zs={accept:"*/*","content-type":"application/json"},$s={method:"POST"},lo={http:Xs,headers:Zs,options:$s},po=function(r,e){return e(r)};function ho(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var i={},o={};t.forEach(function(p){i=d(d(d({},i),p.options),{headers:d(d({},i.headers),p.headers)}),p.credentials&&(i.credentials=p.credentials),o=d(d({},o),p.http)}),i.headers&&(i.headers=eu(i.headers,o.preserveHeaderCase));var a=r.operationName,s=r.extensions,u=r.variables,c=r.query,f={operationName:a,variables:u};return o.includeExtensions&&(f.extensions=s),o.includeQuery&&(f.query=e(c,Yt)),{options:i,body:f}}function eu(r,e){if(!e){var t=Object.create(null);return Object.keys(Object(r)).forEach(function(o){t[o.toLowerCase()]=r[o]}),t}var n=Object.create(null);Object.keys(Object(r)).forEach(function(o){n[o.toLowerCase()]={originalName:o,value:r[o]}});var i=Object.create(null);return Object.keys(n).forEach(function(o){i[n[o].originalName]=n[o].value}),i}var mo=function(r){if(!r&&typeof fetch>"u")throw __DEV__?new I(`
"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:
import fetch from 'cross-fetch';
import { ApolloClient, HttpLink } from '@apollo/client';
const client = new ApolloClient({
link: new HttpLink({ uri: '/graphql', fetch })
});
`):new I(23)};var vo=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var r=new AbortController,e=r.signal;return{controller:r,signal:e}};var yo=function(r,e){var t=r.getContext(),n=t.uri;return n||(typeof e=="function"?e(r):e||"/graphql")};function go(r,e){var t=[],n=function(p,l){t.push("".concat(p,"=").concat(encodeURIComponent(l)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=St(e.variables,"Variables map")}catch(p){return{parseError:p}}n("variables",i)}if(e.extensions){var o=void 0;try{o=St(e.extensions,"Extensions map")}catch(p){return{parseError:p}}n("extensions",o)}var a="",s=r,u=r.indexOf("#");u!==-1&&(a=r.substr(u),s=r.substr(0,u));var c=s.indexOf("?")===-1?"?":"&",f=s+c+t.join("&")+a;return{newURI:f}}var bo=G(function(){return fetch}),Eo=function(r){r===void 0&&(r={});var e=r.uri,t=e===void 0?"/graphql":e,n=r.fetch,i=r.print,o=i===void 0?po:i,a=r.includeExtensions,s=r.preserveHeaderCase,u=r.useGETForQueries,c=r.includeUnusedVariables,f=c===void 0?!1:c,p=pe(r,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&mo(n||bo);var l={http:{includeExtensions:a,preserveHeaderCase:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new de(function(h){var v=yo(h,t),m=h.getContext(),b={};if(m.clientAwareness){var _=m.clientAwareness,g=_.name,E=_.version;g&&(b["apollographql-client-name"]=g),E&&(b["apollographql-client-version"]=E)}var x=d(d({},b),m.headers),k={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:x},w=ho(h,o,lo,l,k),S=w.options,N=w.body;if(N.variables&&!f){var P=new Set(Object.keys(N.variables));W(h.query,{Variable:function(J,ii,me){me&&me.kind!=="VariableDefinition"&&P.delete(J.name.value)}}),P.size&&(N.variables=d({},N.variables),P.forEach(function(J){delete N.variables[J]}))}var F;if(!S.signal){var Y=vo(),fe=Y.controller,U=Y.signal;F=fe,F&&(S.signal=U)}var le=function(J){return J.kind==="OperationDefinition"&&J.operation==="mutation"},Dr=function(J){return J.kind==="OperationDefinition"&&J.operation==="subscription"},wr=Dr(ge(h.query)),kr=We(["defer"],h.query);if(u&&!h.query.definitions.some(le)&&(S.method="GET"),kr||wr){S.headers=S.headers||{};var Nr="multipart/mixed;";wr&&kr&&__DEV__&&O.warn("Multipart-subscriptions do not support @defer"),wr?Nr+="boundary=graphql;subscriptionSpec=1.0,application/json":kr&&(Nr+="deferSpec=20220824,application/json"),S.headers.accept=Nr}if(S.method==="GET"){var ri=go(v,N),wa=ri.newURI,ni=ri.parseError;if(ni)return rr(ni);v=wa}else try{S.body=St(N,"Payload")}catch(J){return rr(J)}return new C(function(J){var ii=n||G(function(){return fetch})||bo;return ii(v,S).then(function(me){var Ir;h.setContext({response:me});var oi=(Ir=me.headers)===null||Ir===void 0?void 0:Ir.get("content-type");return oi!==null&&/^multipart\/mixed/i.test(oi)?uo(me,J):fo(me,h,J)}).catch(function(me){return or(me,J)}),function(){F&&F.abort()}})})};var Tn=function(r){B(e,r);function e(t){t===void 0&&(t={});var n=r.call(this,Eo(t).request)||this;return n.options=t,n}return e}(de);var{toString:Oo,hasOwnProperty:tu}=Object.prototype,_o=Function.prototype.toString,Sn=new Map;function V(r,e){try{return Dn(r,e)}finally{Sn.clear()}}function Dn(r,e){if(r===e)return!0;let t=Oo.call(r),n=Oo.call(e);if(t!==n)return!1;switch(t){case"[object Array]":if(r.length!==e.length)return!1;case"[object Object]":{if(To(r,e))return!0;let i=xo(r),o=xo(e),a=i.length;if(a!==o.length)return!1;for(let s=0;s<a;++s)if(!tu.call(e,i[s]))return!1;for(let s=0;s<a;++s){let u=i[s];if(!Dn(r[u],e[u]))return!1}return!0}case"[object Error]":return r.name===e.name&&r.message===e.message;case"[object Number]":if(r!==r)return e!==e;case"[object Boolean]":case"[object Date]":return+r==+e;case"[object RegExp]":case"[object String]":return r==`${e}`;case"[object Map]":case"[object Set]":{if(r.size!==e.size)return!1;if(To(r,e))return!0;let i=r.entries(),o=t==="[object Map]";for(;;){let a=i.next();if(a.done)break;let[s,u]=a.value;if(!e.has(s)||o&&!Dn(u,e.get(s)))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]":r=new Uint8Array(r),e=new Uint8Array(e);case"[object DataView]":{let i=r.byteLength;if(i===e.byteLength)for(;i--&&r[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let i=_o.call(r);return i!==_o.call(e)?!1:!iu(i,nu)}}return!1}function xo(r){return Object.keys(r).filter(ru,r)}function ru(r){return this[r]!==void 0}var nu="{ [native code] }";function iu(r,e){let t=r.length-e.length;return t>=0&&r.indexOf(e,t)===t}function To(r,e){let t=Sn.get(r);if(t){if(t.has(e))return!0}else Sn.set(r,t=new Set);return t.add(e),!1}var ou=function(){return Object.create(null)},So=Array.prototype,au=So.forEach,su=So.slice,wn=function(){function r(e,t){e===void 0&&(e=!0),t===void 0&&(t=ou),this.weakness=e,this.makeData=t}return r.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},r.prototype.lookupArray=function(e){var t=this;return au.call(e,function(n){return t=t.getChildTrie(n)}),t.data||(t.data=this.makeData(su.call(e)))},r.prototype.getChildTrie=function(e){var t=this.weakness&&uu(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new r(this.weakness,this.makeData)),n},r}();function uu(r){switch(typeof r){case"object":if(r===null)break;case"function":return!0}return!1}var z=null,Do={},cu=1,fu=()=>class{constructor(){this.id=["slot",cu++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=z;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===Do)break;return e!==z&&(z.slots[this.id]=t),!0}return z&&(z.slots[this.id]=Do),!1}getValue(){if(this.hasValue())return z.slots[this.id]}withValue(e,t,n,i){let o={__proto__:null,[this.id]:e},a=z;z={parent:a,slots:o};try{return t.apply(i,n)}finally{z=a}}static bind(e){let t=z;return function(){let n=z;try{return z=t,e.apply(this,arguments)}finally{z=n}}}static noContext(e,t,n){if(z){let i=z;try{return z=null,e.apply(n,t)}finally{z=i}}else return e.apply(n,t)}};function wo(r){try{return r()}catch{}}var kn="@wry/context:Slot",lu=wo(()=>globalThis)||wo(()=>global)||Object.create(null),ko=lu,et=ko[kn]||Array[kn]||function(r){try{Object.defineProperty(ko,kn,{value:r,enumerable:!1,writable:!1,configurable:!0})}finally{return r}}(fu());var{bind:pu,noContext:hu}=et;function du(){}var mu=function(){function r(e,t){e===void 0&&(e=1/0),t===void 0&&(t=du),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return r.prototype.has=function(e){return this.map.has(e)},r.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},r.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,i=t.newer;i&&(i.older=n),n&&(n.newer=i),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=i)}return t},r.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)},r.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},r.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):!1},r}(),sr=new et,Nn,vu=Object.prototype.hasOwnProperty,Fn=(Nn=Array.from,Nn===void 0?function(r){var e=[];return r.forEach(function(t){return e.push(t)}),e}:Nn);function ar(r){var e=r.unsubscribe;typeof e=="function"&&(r.unsubscribe=void 0,e())}var Dt=[],yu=100;function tt(r,e){if(!r)throw new Error(e||"assertion failure")}function gu(r,e){var t=r.length;return t>0&&t===e.length&&r[t-1]===e[t-1]}function Io(r){switch(r.length){case 0:throw new Error("unknown value");case 1:return r[0];case 2:throw r[1]}}function bu(r){return r.slice(0)}var Eu=function(){function r(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++r.count}return r.prototype.peek=function(){if(this.value.length===1&&!Se(this))return No(this),this.value[0]},r.prototype.recompute=function(e){return tt(!this.recomputing,"already recomputing"),No(this),Se(this)?Ou(this,e):Io(this.value)},r.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Fo(this),ar(this))},r.prototype.dispose=function(){var e=this;this.setDirty(),Po(this),Rn(this,function(t,n){t.setDirty(),Mo(t,e)})},r.prototype.forget=function(){this.dispose()},r.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Dt.pop()||new Set),this.deps.add(e)},r.prototype.forgetDeps=function(){var e=this;this.deps&&(Fn(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),Dt.push(this.deps),this.deps=null)},r.count=0,r}();function No(r){var e=sr.getValue();if(e)return r.parents.add(e),e.childValues.has(r)||e.childValues.set(r,[]),Se(r)?Ao(e,r):Co(e,r),e}function Ou(r,e){return Po(r),sr.withValue(r,_u,[r,e]),Tu(r,e)&&xu(r),Io(r.value)}function _u(r,e){r.recomputing=!0,r.value.length=0;try{r.value[0]=r.fn.apply(null,e)}catch(t){r.value[1]=t}r.recomputing=!1}function Se(r){return r.dirty||!!(r.dirtyChildren&&r.dirtyChildren.size)}function xu(r){r.dirty=!1,!Se(r)&&Ro(r)}function Fo(r){Rn(r,Ao)}function Ro(r){Rn(r,Co)}function Rn(r,e){var t=r.parents.size;if(t)for(var n=Fn(r.parents),i=0;i<t;++i)e(n[i],r)}function Ao(r,e){tt(r.childValues.has(e)),tt(Se(e));var t=!Se(r);if(!r.dirtyChildren)r.dirtyChildren=Dt.pop()||new Set;else if(r.dirtyChildren.has(e))return;r.dirtyChildren.add(e),t&&Fo(r)}function Co(r,e){tt(r.childValues.has(e)),tt(!Se(e));var t=r.childValues.get(e);t.length===0?r.childValues.set(e,bu(e.value)):gu(t,e.value)||r.setDirty(),Lo(r,e),!Se(r)&&Ro(r)}function Lo(r,e){var t=r.dirtyChildren;t&&(t.delete(e),t.size===0&&(Dt.length<yu&&Dt.push(t),r.dirtyChildren=null))}function Po(r){r.childValues.size>0&&r.childValues.forEach(function(e,t){Mo(r,t)}),r.forgetDeps(),tt(r.dirtyChildren===null)}function Mo(r,e){e.parents.delete(r),r.childValues.delete(e),Lo(r,e)}function Tu(r,e){if(typeof r.subscribe=="function")try{ar(r),r.unsubscribe=r.subscribe.apply(null,e)}catch{return r.setDirty(),!1}return!0}var Su={setDirty:!0,dispose:!0,forget:!0};function ur(r){var e=new Map,t=r&&r.subscribe;function n(i){var o=sr.getValue();if(o){var a=e.get(i);a||e.set(i,a=new Set),o.dependOn(a),typeof t=="function"&&(ar(a),a.unsubscribe=t(i))}}return n.dirty=function(o,a){var s=e.get(o);if(s){var u=a&&vu.call(Su,a)?a:"setDirty";Fn(s).forEach(function(c){return c[u]()}),e.delete(o),ar(s)}},n}function Vo(){var r=new wn(typeof WeakMap=="function");return function(){return r.lookupArray(arguments)}}var ad=Vo(),In=new Set;function Be(r,e){e===void 0&&(e=Object.create(null));var t=new mu(e.max||Math.pow(2,16),function(c){return c.dispose()}),n=e.keyArgs,i=e.makeCacheKey||Vo(),o=function(){var c=i.apply(null,n?n.apply(null,arguments):arguments);if(c===void 0)return r.apply(null,arguments);var f=t.get(c);f||(t.set(c,f=new Eu(r)),f.subscribe=e.subscribe,f.forget=function(){return t.delete(c)});var p=f.recompute(Array.prototype.slice.call(arguments));return t.set(c,f),In.add(t),sr.hasValue()||(In.forEach(function(l){return l.clean()}),In.clear()),p};Object.defineProperty(o,"size",{get:function(){return t.map.size},configurable:!1,enumerable:!1});function a(c){var f=t.get(c);f&&f.setDirty()}o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))};function s(c){var f=t.get(c);if(f)return f.peek()}o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))};function u(c){return t.delete(c)}return o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var An=function(){function r(){this.getFragmentDoc=Be(Xr)}return r.prototype.batch=function(e){var t=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(t)},n),i},r.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},r.prototype.transformDocument=function(e){return e},r.prototype.transformForLink=function(e){return e},r.prototype.identify=function(e){},r.prototype.gc=function(){return[]},r.prototype.modify=function(e){return!1},r.prototype.readQuery=function(e,t){return t===void 0&&(t=!!e.optimistic),this.read(d(d({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},r.prototype.readFragment=function(e,t){return t===void 0&&(t=!!e.optimistic),this.read(d(d({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},r.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=pe(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:n}))},r.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,o=e.fragmentName,a=pe(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:n}))},r.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),o=t(i);return o==null?i:(n.writeQuery(d(d({},e),{data:o})),o)}})},r.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),o=t(i);return o==null?i:(n.writeFragment(d(d({},e),{data:o})),o)}})},r}();var wt=function(r){B(e,r);function e(t,n,i,o){var a,s=r.call(this,t)||this;if(s.message=t,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=(a={},a[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=e.prototype,s}return e}(Error);var Du=()=>Object.create(null),{forEach:wu,slice:ku}=Array.prototype,{hasOwnProperty:Nu}=Object.prototype,be=class r{constructor(e=!0,t=Du){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return wu.call(e,n=>t=t.getChildTrie(n)),Nu.call(t,"data")?t.data:t.data=this.makeData(ku.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,i=e.length;t&&n<i;++n){let o=this.weakness&&jo(e[n])?t.weak:t.strong;t=o&&o.get(e[n])}return t&&t.data}getChildTrie(e){let t=this.weakness&&jo(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new r(this.weakness,this.makeData)),n}};function jo(r){switch(typeof r){case"object":if(r===null)break;case"function":return!0}return!1}var Q=Object.prototype.hasOwnProperty;function kt(r){return r==null}function fr(r,e){var t=r.__typename,n=r.id,i=r._id;if(typeof t=="string"&&(e&&(e.keyObject=kt(n)?kt(i)?void 0:{_id:i}:{id:n}),kt(n)&&!kt(i)&&(n=i),!kt(n)))return"".concat(t,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var qo={dataIdFromObject:fr,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Qo(r){return Te(qo,r)}function lr(r){var e=r.canonizeResults;return e===void 0?qo.canonizeResults:e}function Bo(r,e){return R(e)?r.get(e.__ref,"__typename"):e&&e.__typename}var Cn=/^[_a-z][_0-9a-z]*/i;function ce(r){var e=r.match(Cn);return e?e[0]:r}function cr(r,e,t){return A(e)?M(e)?e.every(function(n){return cr(r,n,t)}):r.selections.every(function(n){if(Z(n)&&ve(n,t)){var i=te(n);return Q.call(e,i)&&(!n.selectionSet||cr(n.selectionSet,e[i],t))}return!0}):!1}function De(r){return A(r)&&!R(r)&&!M(r)}function Uo(){return new X}function pr(r,e){var t=Ce(Pe(r));return{fragmentMap:t,lookupFragment:function(n){var i=t[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var hr=Object.create(null),Ln=function(){return hr},Go=Object.create(null),rt=function(){function r(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return bt(R(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return R(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return ue(i);if(R(i))return i;var a=n.policies.identify(i)[0];if(a){var s=ue(a);return o&&n.merge(a,i),s}}}return r.prototype.toObject=function(){return d({},this.data)},r.prototype.has=function(e){return this.lookup(e,!0)!==void 0},r.prototype.get=function(e,t){if(this.group.depend(e,t),Q.call(this.data,e)){var n=this.data[e];if(n&&Q.call(n,t))return n[t]}if(t==="__typename"&&Q.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof we)return this.parent.get(e,t)},r.prototype.lookup=function(e,t){if(t&&this.group.depend(e,"__exists"),Q.call(this.data,e))return this.data[e];if(this instanceof we)return this.parent.lookup(e,t);if(this.policies.rootTypenamesById[e])return Object.create(null)},r.prototype.merge=function(e,t){var n=this,i;R(e)&&(e=e.__ref),R(t)&&(t=t.__ref);var o=typeof e=="string"?this.lookup(i=e):e,a=typeof t=="string"?this.lookup(i=t):t;if(a){__DEV__?O(typeof i=="string","store.merge expects a string ID"):O(typeof i=="string",1);var s=new X(Fu).merge(o,a);if(this.data[i]=s,s!==o&&(delete this.refs[i],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach(function(c){if(!o||o[c]!==s[c]){u[c]=1;var f=ce(c);f!==c&&!n.policies.hasKeyArgs(s.__typename,f)&&(u[f]=1),s[c]===void 0&&!(n instanceof we)&&delete s[c]}}),u.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(c){return n.group.dirty(i,c)})}}},r.prototype.modify=function(e,t){var n=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,u={DELETE:hr,INVALIDATE:Go,isReference:R,toReference:this.toReference,canRead:this.canRead,readField:function(c,f){return n.policies.readField(typeof c=="string"?{fieldName:c,from:f||ue(e)}:c,{store:n})}};if(Object.keys(i).forEach(function(c){var f=ce(c),p=i[c];if(p!==void 0){var l=typeof t=="function"?t:t[c]||t[f];if(l){var h=l===Ln?hr:l(bt(p),d(d({},u),{fieldName:f,storeFieldName:c,storage:n.getStorage(e,c)}));h===Go?n.group.dirty(e,c):(h===hr&&(h=void 0),h!==p&&(o[c]=h,a=!0,p=h))}p!==void 0&&(s=!1)}}),a)return this.merge(e,o),s&&(this instanceof we?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},r.prototype.delete=function(e,t,n){var i,o=this.lookup(e);if(o){var a=this.getFieldValue(o,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,s?(i={},i[s]=Ln,i):Ln)}return!1},r.prototype.evict=function(e,t){var n=!1;return e.id&&(Q.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof we&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},r.prototype.clear=function(){this.replace(null)},r.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){Q.call(e.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},r.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(o){e&&Q.call(e,o)||t.delete(o)}),e){var n=e.__META,i=pe(e,["__META"]);Object.keys(i).forEach(function(o){t.merge(o,i[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},r.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},r.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},r.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof we?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},r.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(a){Q.call(n,a)&&(Object.keys(e.findChildRefIds(a)).forEach(t.add,t),delete n[a])});var i=Object.keys(n);if(i.length){for(var o=this;o instanceof we;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},r.prototype.findChildRefIds=function(e){if(!Q.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var i=new Set([n]);i.forEach(function(o){R(o)&&(t[o.__ref]=!0),A(o)&&Object.keys(o).forEach(function(a){var s=o[a];A(s)&&i.add(s)})})}return this.refs[e]},r.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},r}();var Ko=function(){function r(e,t){t===void 0&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return r.prototype.resetCaching=function(){this.d=this.caching?ur():null,this.keyMaker=new be(re)},r.prototype.depend=function(e,t){if(this.d){this.d(Pn(e,t));var n=ce(t);n!==t&&this.d(Pn(e,n)),this.parent&&this.parent.depend(e,t)}},r.prototype.dirty=function(e,t){this.d&&this.d.dirty(Pn(e,t),t==="__exists"?"forget":"setDirty")},r}();function Pn(r,e){return e+"#"+r}function Mn(r,e){Ue(r)&&r.group.depend(e,"__exists")}(function(r){var e=function(t){B(n,t);function n(i){var o=i.policies,a=i.resultCaching,s=a===void 0?!0:a,u=i.seed,c=t.call(this,o,new Ko(s))||this;return c.stump=new Iu(c),c.storageTrie=new be(re),u&&c.replace(u),c}return n.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(r);r.Root=e})(rt||(rt={}));var we=function(r){B(e,r);function e(t,n,i,o){var a=r.call(this,n.policies,o)||this;return a.id=t,a.parent=n,a.replay=i,a.group=o,i(a),a}return e.prototype.addLayer=function(t,n){return new e(t,this,n,this.group)},e.prototype.removeLayer=function(t){var n=this,i=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=n.data[o],s=i.lookup(o);s?a?a!==s&&Object.keys(a).forEach(function(u){V(a[u],s[u])||n.group.dirty(o,u)}):(n.group.dirty(o,"__exists"),Object.keys(s).forEach(function(u){n.group.dirty(o,u)})):n.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return d(d({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Q.call(this.data,t)?d(d({},n),r.prototype.findChildRefIds.call(this,t)):n},e.prototype.getStorage=function(){for(var t=this.parent;t.parent;)t=t.parent;return t.getStorage.apply(t,arguments)},e}(rt),Iu=function(r){B(e,r);function e(t){return r.call(this,"EntityStore.Stump",t,function(){},new Ko(t.group.caching,t.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(we);function Fu(r,e,t){var n=r[t],i=e[t];return V(n,i)?n:i}function Ue(r){return!!(r instanceof rt&&r.group.caching)}function Ru(r){return A(r)?M(r)?r.slice(0):d({__proto__:Object.getPrototypeOf(r)},r):r}var dr=function(){function r(){this.known=new(Gi?WeakSet:Set),this.pool=new be(re),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return r.prototype.isKnown=function(e){return A(e)&&this.known.has(e)},r.prototype.pass=function(e){if(A(e)){var t=Ru(e);return this.passes.set(t,e),t}return e},r.prototype.admit=function(e){var t=this;if(A(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var o=e.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),__DEV__&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(e))return e;var s=Object.getPrototypeOf(e),u=[s],c=this.sortedKeys(e);u.push(c.json);var f=u.length;c.sorted.forEach(function(h){u.push(t.admit(e[h]))});var a=this.pool.lookupArray(u);if(!a.object){var p=a.object=Object.create(s);this.known.add(p),c.sorted.forEach(function(h,v){p[h]=u[f+v]}),__DEV__&&Object.freeze(p)}return a.object}}}return e},r.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var i=JSON.stringify(t);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:t,json:i})}return n.keys},r}();var $=Object.assign(function(r){if(A(r)){Vn===void 0&&zo();var e=Vn.admit(r),t=jn.get(e);return t===void 0&&jn.set(e,t=JSON.stringify(e)),t}return JSON.stringify(r)},{reset:zo}),Vn,jn;function zo(){Vn=new dr,jn=new(re?WeakMap:Map)}function Wo(r){return[r.selectionSet,r.objectOrReference,r.context,r.context.canonizeResults]}var Yo=function(){function r(e){var t=this;this.knownResults=new(re?WeakMap:Map),this.config=Te(e,{addTypename:e.addTypename!==!1,canonizeResults:lr(e)}),this.canon=e.canon||new dr,this.executeSelectionSet=Be(function(n){var i,o=n.context.canonizeResults,a=Wo(n);a[3]=!o;var s=(i=t.executeSelectionSet).peek.apply(i,a);return s?o?d(d({},s),{result:t.canon.admit(s.result)}):s:(Mn(n.context.store,n.enclosingRef.__ref),t.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:Wo,makeCacheKey:function(n,i,o,a){if(Ue(o.store))return o.store.makeCacheKey(n,R(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=Be(function(n){return Mn(n.context.store,n.enclosingRef.__ref),t.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(Ue(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return r.prototype.resetCanon=function(){this.canon=new dr},r.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,i=e.rootId,o=i===void 0?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,u=s===void 0?!0:s,c=e.canonizeResults,f=c===void 0?this.config.canonizeResults:c,p=this.config.cache.policies;a=d(d({},Me(vt(n))),a);var l=ue(o),h=this.executeSelectionSet({selectionSet:ge(n).selectionSet,objectOrReference:l,enclosingRef:l,context:d({store:t,query:n,policies:p,variables:a,varString:$(a),canonizeResults:f},pr(n,this.config.fragments))}),v;if(h.missing&&(v=[new wt(Au(h.missing),h.missing,n,a)],!u))throw v[0];return{result:h.result,complete:!v,missing:v}},r.prototype.isFresh=function(e,t,n,i){if(Ue(i.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,t,i,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},r.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(R(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,u=a.policies,c=a.store,f=c.getFieldValue(i,"__typename"),p=[],l,h=new X;this.config.addTypename&&typeof f=="string"&&!u.rootIdsByTypename[f]&&p.push({__typename:f});function v(E,x){var k;return E.missing&&(l=h.merge(l,(k={},k[x]=E.missing,k))),E.result}var m=new Set(n.selections);m.forEach(function(E){var x,k;if(ve(E,s))if(Z(E)){var w=u.readField({fieldName:E.name.value,field:E,variables:a.variables,from:i},a),S=te(E);w===void 0?Ve.added(E)||(l=h.merge(l,(x={},x[S]="Can't find field '".concat(E.name.value,"' on ").concat(R(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),x))):M(w)?w=v(t.executeSubSelectedArray({field:E,array:w,enclosingRef:o,context:a}),S):E.selectionSet?w!=null&&(w=v(t.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:w,enclosingRef:R(w)?w:o,context:a}),S)):a.canonizeResults&&(w=t.canon.pass(w)),w!==void 0&&p.push((k={},k[S]=w,k))}else{var N=Le(E,a.lookupFragment);if(!N&&E.kind===T.FRAGMENT_SPREAD)throw __DEV__?new I("No fragment named ".concat(E.name.value)):new I(5);N&&u.fragmentMatches(N,f)&&N.selectionSet.selections.forEach(m.add,m)}});var b=yt(p),_={result:b,missing:l},g=a.canonizeResults?this.canon.admit(_):bt(_);return g.result&&this.knownResults.set(g.result,n),g},r.prototype.execSubSelectedArrayImpl=function(e){var t=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s,u=new X;function c(f,p){var l;return f.missing&&(s=u.merge(s,(l={},l[p]=f.missing,l))),f.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(f,p){return f===null?null:M(f)?c(t.executeSubSelectedArray({field:n,array:f,enclosingRef:o,context:a}),p):n.selectionSet?c(t.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:R(f)?f:o,context:a}),p):(__DEV__&&Cu(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:s}},r}();function Au(r){try{JSON.stringify(r,function(e,t){if(typeof t=="string")throw t;return t})}catch(e){return e}}function Cu(r,e,t){if(!e.selectionSet){var n=new Set([t]);n.forEach(function(i){A(i)&&(__DEV__?O(!R(i),"Missing selection set for object of type ".concat(Bo(r,i)," returned for query field ").concat(e.name.value)):O(!R(i),6),Object.values(i).forEach(n.add,n))})}}var nt=new et,Jo=new WeakMap;function Nt(r){var e=Jo.get(r);return e||Jo.set(r,e={vars:new Set,dep:ur()}),e}function qn(r){Nt(r).vars.forEach(function(e){return e.forgetCache(r)})}function Ho(r){Nt(r).vars.forEach(function(e){return e.attachCache(r)})}function mr(r){var e=new Set,t=new Set,n=function(o){if(arguments.length>0){if(r!==o){r=o,e.forEach(function(u){Nt(u).dep.dirty(n),Lu(u)});var a=Array.from(t);t.clear(),a.forEach(function(u){return u(r)})}}else{var s=nt.getValue();s&&(i(s),Nt(s).dep(n))}return r};n.onNextChange=function(o){return t.add(o),function(){t.delete(o)}};var i=n.attachCache=function(o){return e.add(o),Nt(o).vars.add(n),n};return n.forgetCache=function(o){return e.delete(o)},n}function Lu(r){r.broadcastWatches&&r.broadcastWatches()}var Xo=Object.create(null);function Qn(r){var e=JSON.stringify(r);return Xo[e]||(Xo[e]=Object.create(null))}function Bn(r){var e=Qn(r);return e.keyFieldsFn||(e.keyFieldsFn=function(t,n){var i=function(a,s){return n.readField(s,a)},o=n.keyObject=Gn(r,function(a){var s=it(n.storeObject,a,i);return s===void 0&&t!==n.storeObject&&Q.call(t,a[0])&&(s=it(t,a,$o)),__DEV__?O(s!==void 0,"Missing field '".concat(a.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):O(s!==void 0,2),s});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function Un(r){var e=Qn(r);return e.keyArgsFn||(e.keyArgsFn=function(t,n){var i=n.field,o=n.variables,a=n.fieldName,s=Gn(r,function(c){var f=c[0],p=f.charAt(0);if(p==="@"){if(i&&K(i.directives)){var l=f.slice(1),h=i.directives.find(function(_){return _.name.value===l}),v=h&&ye(h,o);return v&&it(v,c.slice(1))}return}if(p==="$"){var m=f.slice(1);if(o&&Q.call(o,m)){var b=c.slice(0);return b[0]=m,it(o,b)}return}if(t)return it(t,c)}),u=JSON.stringify(s);return(t||u!=="{}")&&(a+=":"+u),a})}function Gn(r,e){var t=new X;return Zo(r).reduce(function(n,i){var o,a=e(i);if(a!==void 0){for(var s=i.length-1;s>=0;--s)a=(o={},o[i[s]]=a,o);n=t.merge(n,a)}return n},Object.create(null))}function Zo(r){var e=Qn(r);if(!e.paths){var t=e.paths=[],n=[];r.forEach(function(i,o){M(i)?(Zo(i).forEach(function(a){return t.push(n.concat(a))}),n.length=0):(n.push(i),M(r[o+1])||(t.push(n.slice(0)),n.length=0))})}return e.paths}function $o(r,e){return r[e]}function it(r,e,t){return t=t||$o,ea(e.reduce(function n(i,o){return M(i)?i.map(function(a){return n(a,o)}):i&&t(i,o)},r))}function ea(r){return A(r)?M(r)?r.map(ea):Gn(Object.keys(r).sort(),function(e){return it(r,e)}):r}dt.setStringify($);function Kn(r){return r.args!==void 0?r.args:r.field?ye(r.field,r.variables):null}var Pu=function(){},ta=function(r,e){return e.fieldName},ra=function(r,e,t){var n=t.mergeObjects;return n(r,e)},na=function(r,e){return e},oa=function(){function r(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=d({dataIdFromObject:fr},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return r.prototype.identify=function(e,t){var n,i=this,o=t&&(t.typename||((n=t.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,s=d(d({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var l=vr(arguments,a);return i.readField(l,{store:i.cache.data,variables:l.variables})}}),u,c=o&&this.getTypePolicy(o),f=c&&c.keyFn||this.config.dataIdFromObject;f;){var p=f(d(d({},e),a),s);if(M(p))f=Bn(p);else{u=p;break}}return u=u?String(u):void 0,s.keyObject?[u,s.keyObject]:[u]},r.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=pe(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),Q.call(t.toBeAdded,n)?t.toBeAdded[n].push(u):t.toBeAdded[n]=[u]})},r.prototype.updateTypePolicy=function(e,t){var n=this,i=this.getTypePolicy(e),o=t.keyFields,a=t.fields;function s(u,c){u.merge=typeof c=="function"?c:c===!0?ra:c===!1?na:u.merge}s(i,t.merge),i.keyFn=o===!1?Pu:M(o)?Bn(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(u){var c=n.getFieldPolicy(e,u,!0),f=a[u];if(typeof f=="function")c.read=f;else{var p=f.keyArgs,l=f.read,h=f.merge;c.keyFn=p===!1?ta:M(p)?Un(p):typeof p=="function"?p:c.keyFn,typeof l=="function"&&(c.read=l),s(c,h)}c.read&&c.merge&&(c.keyFn=c.keyFn||ta)})},r.prototype.setRootTypename=function(e,t){t===void 0&&(t=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];t!==i&&(__DEV__?O(!i||i===e,"Cannot change root ".concat(e," __typename more than once")):O(!i||i===e,3),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},r.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(i){t.getSupertypeSet(i,!0).add(n);var o=i.match(Cn);(!o||o[0]!==i)&&t.fuzzySubtypes.set(i,new RegExp(i))})})},r.prototype.getTypePolicy=function(e){var t=this;if(!Q.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach(function(a){var s=t.getTypePolicy(a),u=s.fields,c=pe(s,["fields"]);Object.assign(n,c),Object.assign(n.fields,u)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(a){t.updateTypePolicy(e,a)}),this.typePolicies[e]},r.prototype.getFieldPolicy=function(e,t,n){if(e){var i=this.getTypePolicy(e).fields;return i[t]||n&&(i[t]=Object.create(null))}},r.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},r.prototype.fragmentMatches=function(e,t,n,i){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(v){var m=o.getSupertypeSet(v,!1);m&&m.size&&u.indexOf(m)<0&&u.push(m)},f=!!(n&&this.fuzzySubtypes.size),p=!1,l=0;l<u.length;++l){var h=u[l];if(h.has(a))return s.has(a)||(p&&__DEV__&&O.warn("Inferring subtype ".concat(t," of supertype ").concat(a)),s.add(a)),!0;h.forEach(c),f&&l===u.length-1&&cr(e.selectionSet,n,i)&&(f=!1,p=!0,this.fuzzySubtypes.forEach(function(v,m){var b=t.match(v);b&&b[0]===t&&c(m)}))}return!1},r.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},r.prototype.getStoreFieldName=function(e){var t=e.typename,n=e.fieldName,i=this.getFieldPolicy(t,n,!1),o,a=i&&i.keyFn;if(a&&t)for(var s={typename:t,fieldName:n,field:e.field||null,variables:e.variables},u=Kn(e);a;){var c=a(u,s);if(M(c))a=Un(c);else{o=c||n;break}}return o===void 0&&(o=e.field?$r(e.field,e.variables):dt(n,Kn(e))),o===!1?n:n===ce(o)?o:n+":"+o},r.prototype.readField=function(e,t){var n=e.from;if(n){var i=e.field||e.fieldName;if(i){if(e.typename===void 0){var o=t.store.getFieldValue(n,"__typename");o&&(e.typename=o)}var a=this.getStoreFieldName(e),s=ce(a),u=t.store.getFieldValue(n,a),c=this.getFieldPolicy(e.typename,s,!1),f=c&&c.read;if(f){var p=ia(this,n,e,t,t.store.getStorage(R(n)?n.__ref:n,a));return nt.withValue(this.cache,f,[u,p])}return u}}},r.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},r.prototype.getMergeFunction=function(e,t,n){var i=this.getFieldPolicy(e,t,!1),o=i&&i.merge;return!o&&n&&(i=this.getTypePolicy(n),o=i&&i.merge),o},r.prototype.runMergeFunction=function(e,t,n,i,o){var a=n.field,s=n.typename,u=n.merge;return u===ra?aa(i.store)(e,t):u===na?t:(i.overwrite&&(e=void 0),u(e,t,ia(this,void 0,{typename:s,fieldName:a.name.value,field:a,variables:i.variables},i,o||Object.create(null))))},r}();function ia(r,e,t,n,i){var o=r.getStoreFieldName(t),a=ce(o),s=t.variables||n.variables,u=n.store,c=u.toReference,f=u.canRead;return{args:Kn(t),field:t.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:R,toReference:c,storage:i,cache:r.cache,canRead:f,readField:function(){return r.readField(vr(arguments,e,s),n)},mergeObjects:aa(n.store)}}function vr(r,e,t){var n=r[0],i=r[1],o=r.length,a;return typeof n=="string"?a={fieldName:n,from:o>1?i:e}:(a=d({},n),Q.call(a,"from")||(a.from=e)),__DEV__&&a.from===void 0&&__DEV__&&O.warn("Undefined 'from' passed to readField with arguments ".concat(Ji(Array.from(r)))),a.variables===void 0&&(a.variables=t),a}function aa(r){return function(t,n){if(M(t)||M(n))throw __DEV__?new I("Cannot automatically merge arrays"):new I(4);if(A(t)&&A(n)){var i=r.getFieldValue(t,"__typename"),o=r.getFieldValue(n,"__typename"),a=i&&o&&i!==o;if(a)return n;if(R(t)&&De(n))return r.merge(t.__ref,n),t;if(De(t)&&R(n))return r.merge(t,n.__ref),n;if(De(t)&&De(n))return d(d({},t),n)}return n}}function zn(r,e,t){var n="".concat(e).concat(t),i=r.flavors.get(n);return i||r.flavors.set(n,i=r.clientOnly===e&&r.deferred===t?r:d(d({},r),{clientOnly:e,deferred:t})),i}var fa=function(){function r(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return r.prototype.writeToStore=function(e,t){var n=this,i=t.query,o=t.result,a=t.dataId,s=t.variables,u=t.overwrite,c=he(i),f=Uo();s=d(d({},Me(c)),s);var p=d(d({store:e,written:Object.create(null),merge:function(h,v){return f.merge(h,v)},variables:s,varString:$(s)},pr(i,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),l=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:p});if(!R(l))throw __DEV__?new I("Could not identify object ".concat(JSON.stringify(o))):new I(7);return p.incomingById.forEach(function(h,v){var m=h.storeObject,b=h.mergeTree,_=h.fieldNodeSet,g=ue(v);if(b&&b.map.size){var E=n.applyMerges(b,g,m,p);if(R(E))return;m=E}if(__DEV__&&!p.overwrite){var x=Object.create(null);_.forEach(function(S){S.selectionSet&&(x[S.name.value]=!0)});var k=function(S){return x[ce(S)]===!0},w=function(S){var N=b&&b.map.get(S);return!!(N&&N.info&&N.info.merge)};Object.keys(m).forEach(function(S){k(S)&&!w(S)&&Mu(g,m,S,p.store)})}e.merge(v,m)}),e.retain(l.__ref),l},r.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,i=e.result,o=e.selectionSet,a=e.context,s=e.mergeTree,u=this.cache.policies,c=Object.create(null),f=n&&u.rootTypenamesById[n]||mt(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(c.__typename=f);var p=function(){var E=vr(arguments,c,a.variables);if(R(E.from)){var x=a.incomingById.get(E.from.__ref);if(x){var k=u.readField(d(d({},E),{from:x.storeObject}),a);if(k!==void 0)return k}}return u.readField(E,a)},l=new Set;this.flattenFields(o,i,a,f).forEach(function(E,x){var k,w=te(x),S=i[w];if(l.add(x),S!==void 0){var N=u.getStoreFieldName({typename:f,fieldName:x.name.value,field:x,variables:E.variables}),P=sa(s,N),F=t.processFieldValue(S,x,x.selectionSet?zn(E,!1,!1):E,P),Y=void 0;x.selectionSet&&(R(F)||De(F))&&(Y=p("__typename",F));var fe=u.getMergeFunction(f,x.name.value,Y);fe?P.info={field:x,typename:f,merge:fe}:ua(s,N),c=E.merge(c,(k={},k[N]=F,k))}else __DEV__&&!E.clientOnly&&!E.deferred&&!Ve.added(x)&&!u.getReadFunction(f,x.name.value)&&__DEV__&&O.error("Missing field '".concat(te(x),"' while writing result ").concat(JSON.stringify(i,null,2)).substring(0,1e3))});try{var h=u.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:c,readField:p}),v=h[0],m=h[1];n=n||v,m&&(c=a.merge(c,m))}catch(E){if(!n)throw E}if(typeof n=="string"){var b=ue(n),_=a.written[n]||(a.written[n]=[]);if(_.indexOf(o)>=0||(_.push(o),this.reader&&this.reader.isFresh(i,b,o,a)))return b;var g=a.incomingById.get(n);return g?(g.storeObject=a.merge(g.storeObject,c),g.mergeTree=Wn(g.mergeTree,s),l.forEach(function(E){return g.fieldNodeSet.add(E)})):a.incomingById.set(n,{storeObject:c,mergeTree:yr(s)?void 0:s,fieldNodeSet:l}),b}return c},r.prototype.processFieldValue=function(e,t,n,i){var o=this;return!t.selectionSet||e===null?__DEV__?Xt(e):e:M(e)?e.map(function(a,s){var u=o.processFieldValue(a,t,n,sa(i,s));return ua(i,s),u}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:i})},r.prototype.flattenFields=function(e,t,n,i){i===void 0&&(i=mt(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,s=new be(!1);return function u(c,f){var p=s.lookup(c,f.clientOnly,f.deferred);p.visited||(p.visited=!0,c.selections.forEach(function(l){if(ve(l,n.variables)){var h=f.clientOnly,v=f.deferred;if(!(h&&v)&&K(l.directives)&&l.directives.forEach(function(_){var g=_.name.value;if(g==="client"&&(h=!0),g==="defer"){var E=ye(_,n.variables);(!E||E.if!==!1)&&(v=!0)}}),Z(l)){var m=o.get(l);m&&(h=h&&m.clientOnly,v=v&&m.deferred),o.set(l,zn(n,h,v))}else{var b=Le(l,n.lookupFragment);if(!b&&l.kind===T.FRAGMENT_SPREAD)throw __DEV__?new I("No fragment named ".concat(l.name.value)):new I(8);b&&a.fragmentMatches(b,i,t,n.variables)&&u(b.selectionSet,zn(n,h,v))}}}))}(e,n),o},r.prototype.applyMerges=function(e,t,n,i,o){var a,s=this;if(e.map.size&&!R(n)){var u=!M(n)&&(R(t)||De(t))?t:void 0,c=n;u&&!o&&(o=[R(u)?u.__ref:u]);var f,p=function(l,h){return M(l)?typeof h=="number"?l[h]:void 0:i.store.getFieldValue(l,String(h))};e.map.forEach(function(l,h){var v=p(u,h),m=p(c,h);if(m!==void 0){o&&o.push(h);var b=s.applyMerges(l,v,m,i,o);b!==m&&(f=f||new Map,f.set(h,b)),o&&O(o.pop()===h)}}),f&&(n=M(c)?c.slice(0):d({},c),f.forEach(function(l,h){n[h]=l}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},r}();var la=[];function sa(r,e){var t=r.map;return t.has(e)||t.set(e,la.pop()||{map:new Map}),t.get(e)}function Wn(r,e){if(r===e||!e||yr(e))return r;if(!r||yr(r))return e;var t=r.info&&e.info?d(d({},r.info),e.info):r.info||e.info,n=r.map.size&&e.map.size,i=n?new Map:r.map.size?r.map:e.map,o={info:t,map:i};if(n){var a=new Set(e.map.keys());r.map.forEach(function(s,u){o.map.set(u,Wn(s,e.map.get(u))),a.delete(u)}),a.forEach(function(s){o.map.set(s,Wn(e.map.get(s),r.map.get(s)))})}return o}function yr(r){return!r||!(r.info||r.map.size)}function ua(r,e){var t=r.map,n=t.get(e);n&&yr(n)&&(la.push(n),t.delete(e))}var ca=new Set;function Mu(r,e,t,n){var i=function(p){var l=n.getFieldValue(p,t);return typeof l=="object"&&l},o=i(r);if(o){var a=i(e);if(a&&!R(o)&&!V(o,a)&&!Object.keys(o).every(function(p){return n.getFieldValue(a,p)!==void 0})){var s=n.getFieldValue(r,"__typename")||n.getFieldValue(e,"__typename"),u=ce(t),c="".concat(s,".").concat(u);if(!ca.has(c)){ca.add(c);var f=[];!M(o)&&!M(a)&&[o,a].forEach(function(p){var l=n.getFieldValue(p,"__typename");typeof l=="string"&&!f.includes(l)&&f.push(l)}),__DEV__&&O.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(s,` object.
This could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.
To address this problem (which is not a bug in Apollo Client), `).concat(f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c,` field, so InMemoryCache can safely merge these objects:
existing: `).concat(JSON.stringify(o).slice(0,1e3),`
incoming: `).concat(JSON.stringify(a).slice(0,1e3),`
For more information about these options, please refer to the documentation:
* Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers
* Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects
`))}}}}var pa=function(r){B(e,r);function e(t){t===void 0&&(t={});var n=r.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=mr,n.txCount=0,n.config=Qo(t),n.addTypename=!!n.config.addTypename,n.policies=new oa({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var t=this.data=new rt.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=t.stump,this.resetResultCache()},e.prototype.resetResultCache=function(t){var n=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new fa(this,this.storeReader=new Yo({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:lr(this.config),canon:t?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Be(function(a,s){return n.broadcastWatch(a,s)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var s=a.optimistic?n.optimisticData:n.data;if(Ue(s)){var u=a.optimistic,c=a.id,f=a.variables;return s.makeCacheKey(a.query,a.callback,$({optimistic:u,id:c,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},e.prototype.restore=function(t){return this.init(),t&&this.data.replace(t),this},e.prototype.extract=function(t){return t===void 0&&(t=!1),(t?this.optimisticData:this.data).extract()},e.prototype.read=function(t){var n=t.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(d(d({},t),{store:t.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof wt)return null;throw o}},e.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore(this.data,t)}finally{!--this.txCount&&t.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(t){if(Q.call(t,"id")&&!t.id)return!1;var n=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(t.id||"ROOT_QUERY",t.fields)}finally{!--this.txCount&&t.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore(d(d({},t),{store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(t){var n=this;return this.watches.size||Ho(this),this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){n.watches.delete(t)&&!n.watches.size&&qn(n),n.maybeBroadcastWatch.forget(t)}},e.prototype.gc=function(t){$.reset();var n=this.optimisticData.gc();return t&&!this.txCount&&(t.resetResultCache?this.resetResultCache(t.resetResultIdentities):t.resetResultIdentities&&this.storeReader.resetCanon()),n},e.prototype.retain=function(t,n){return(n?this.optimisticData:this.data).retain(t)},e.prototype.release=function(t,n){return(n?this.optimisticData:this.data).release(t)},e.prototype.identify=function(t){if(R(t))return t.__ref;try{return this.policies.identify(t)[0]}catch(n){__DEV__&&O.warn(n)}},e.prototype.evict=function(t){if(!t.id){if(Q.call(t,"id"))return!1;t=d(d({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t,this.data)}finally{!--this.txCount&&t.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(t){var n=this;return this.init(),$.reset(),t&&t.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),qn(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){var n=this.optimisticData.removeLayer(t);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(t){var n=this,i=t.update,o=t.optimistic,a=o===void 0?!0:o,s=t.removeOptimistic,u=t.onWatchUpdated,c,f=function(l){var h=n,v=h.data,m=h.optimisticData;++n.txCount,l&&(n.data=n.optimisticData=l);try{return c=i(n)}finally{--n.txCount,n.data=v,n.optimisticData=m}},p=new Set;return u&&!this.txCount&&this.broadcastWatches(d(d({},t),{onWatchUpdated:function(l){return p.add(l),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&p.size?(this.broadcastWatches(d(d({},t),{onWatchUpdated:function(l,h){var v=u.call(this,l,h);return v!==!1&&p.delete(l),v}})),p.size&&p.forEach(function(l){return n.maybeBroadcastWatch.dirty(l)})):this.broadcastWatches(t),c},e.prototype.performTransaction=function(t,n){return this.batch({update:t,optimistic:n||n!==null})},e.prototype.transformDocument=function(t){if(this.addTypename){var n=this.typenameDocumentCache.get(t);return n||(n=Ve(t),this.typenameDocumentCache.set(t,n),this.typenameDocumentCache.set(n,n)),n}return t},e.prototype.transformForLink=function(t){var n=this.config.fragments;return n?n.transform(t):t},e.prototype.broadcastWatches=function(t){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,t)})},e.prototype.broadcastWatch=function(t,n){var i=t.lastDiff,o=this.diff(t);n&&(t.optimistic&&typeof n.optimistic=="string"&&(o.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,t,o,i)===!1)||(!i||!V(i.result,o.result))&&t.callback(t.lastDiff=o,i)},e}(An);var L=function(r){return r[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error",r}(L||{});function ke(r){return r?r<7:!1}var Vu=Object.assign,ju=Object.hasOwnProperty,gr=function(r){B(e,r);function e(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=r.call(this,function(b){try{var _=b._subscription._observer;_&&!_.error&&(_.error=qu)}catch{}var g=!a.observers.size;a.observers.add(b);var E=a.last;return E&&E.error?b.error&&b.error(E.error):E&&E.result&&b.next&&b.next(E.result),g&&a.reobserve().catch(function(){}),function(){a.observers.delete(b)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=Yn(o.fetchPolicy),a.isTornDown=!1;var s=n.defaultOptions.watchQuery,u=s===void 0?{}:s,c=u.fetchPolicy,f=c===void 0?"cache-first":c,p=o.fetchPolicy,l=p===void 0?f:p,h=o.initialFetchPolicy,v=h===void 0?l==="standby"?f:l:h;a.options=d(d({},o),{initialFetchPolicy:v,fetchPolicy:l}),a.queryId=i.queryId||n.generateQueryId();var m=he(a.query);return a.queryName=m&&m.name&&m.name.value,a}return Object.defineProperty(e.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var t=this;return new Promise(function(n,i){var o={next:function(s){n(s),t.observers.delete(o),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=t.subscribe(o)})},e.prototype.getCurrentResult=function(t){t===void 0&&(t=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||L.ready,o=d(d({},n),{loading:ke(i),networkStatus:i}),a=this.options.fetchPolicy,s=a===void 0?"cache-first":a;if(!(Yn(s)||this.queryManager.transform(this.options.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(o.data=u.result),V(o.data,{})&&(o.data=void 0),u.complete?(delete o.partial,u.complete&&o.networkStatus===L.loading&&(s==="cache-first"||s==="cache-only")&&(o.networkStatus=L.ready,o.loading=!1)):o.partial=!0,__DEV__&&!u.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&Hn(u.missing)}return t&&this.updateLastResult(o),o},e.prototype.isDifferentFromLastResult=function(t,n){return!this.last||!V(this.last.result,t)||n&&!V(this.last.variables,n)},e.prototype.getLast=function(t,n){var i=this.last;if(i&&i[t]&&(!n||V(i.variables,this.variables)))return i[t]},e.prototype.getLastResult=function(t){return this.getLast("result",t)},e.prototype.getLastError=function(t){return this.getLast("error",t)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(t){var n,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="cache-and-network"?i.fetchPolicy=o:o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",__DEV__&&t&&ju.call(t,"variables")){var a=vt(this.query),s=a.variableDefinitions;(!s||!s.some(function(u){return u.variable.name.value==="variables"}))&&__DEV__&&O.warn("Called refetch(".concat(JSON.stringify(t),") for query ").concat(((n=a.name)===null||n===void 0?void 0:n.value)||JSON.stringify(a),`, which does not declare a $variables variable.
Did you mean to call refetch(variables) instead of refetch({ variables })?`))}return t&&!V(this.options.variables,t)&&(i.variables=this.options.variables=d(d({},this.options.variables),t)),this.queryInfo.resetLastWrite(),this.reobserve(i,L.refetch)},e.prototype.fetchMore=function(t){var n=this,i=d(d({},t.query?t:d(d(d(d({},this.options),{query:this.query}),t),{variables:d(d({},this.options.variables),t.variables)})),{fetchPolicy:"no-cache"}),o=this.queryManager.generateQueryId(),a=this.queryInfo,s=a.networkStatus;a.networkStatus=L.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(o,i,L.fetchMore).then(function(c){return n.queryManager.removeQuery(o),a.networkStatus===L.fetchMore&&(a.networkStatus=s),n.queryManager.cache.batch({update:function(f){var p=t.updateQuery;p?f.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(l){return p(l,{fetchMoreResult:c.data,variables:i.variables})}):f.writeQuery({query:i.query,variables:i.variables,data:c.data})},onWatchUpdated:function(f){u.add(f.query)}}),c}).finally(function(){u.has(n.query)||Jn(n)})},e.prototype.subscribeToMore=function(t){var n=this,i=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(o){var a=t.updateQuery;a&&n.updateQuery(function(s,u){var c=u.variables;return a(s,{subscriptionData:o,variables:c})})},error:function(o){if(t.onError){t.onError(o);return}__DEV__&&O.error("Unhandled GraphQL subscription error",o)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(t){return this.reobserve(t)},e.prototype.setVariables=function(t){return V(this.variables,t)?this.observers.size?this.result():Promise.resolve():(this.options.variables=t,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:t},L.setVariables):Promise.resolve())},e.prototype.updateQuery=function(t){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,o=t(i,{variables:this.variables});o&&(n.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(t){this.options.pollInterval=t,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(t,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,o=i===void 0?"cache-first":i,a=n.initialFetchPolicy,s=a===void 0?o:a;o==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(o,{reason:t,options:n,observable:this,initialFetchPolicy:s}):t==="variables-changed"?n.fetchPolicy=s:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(t,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,t,n)},e.prototype.updatePolling=function(){var t=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,o=n.options.pollInterval;if(!o){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){__DEV__?O(o,"Attempted to start a polling query without a polling interval."):O(o,13);var a=i||(this.pollingInfo={});a.interval=o;var s=function(){t.pollingInfo&&(ke(t.queryInfo.networkStatus)?u():t.reobserve({fetchPolicy:t.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},L.poll).then(u,u))},u=function(){var c=t.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(s,c.interval))};u()}}},e.prototype.updateLastResult=function(t,n){return n===void 0&&(n=this.variables),this.last=d(d({},this.last),{result:this.queryManager.assumeImmutableResults?t:Xt(t),variables:n}),K(t.errors)||delete this.last.error,this.last},e.prototype.reobserveAsConcast=function(t,n){var i=this;this.isTornDown=!1;var o=n===L.refetch||n===L.fetchMore||n===L.poll,a=this.options.variables,s=this.options.fetchPolicy,u=Te(this.options,t||{}),c=o?u:Vu(this.options,u);o||(this.updatePolling(),t&&t.variables&&!V(t.variables,a)&&c.fetchPolicy!=="standby"&&c.fetchPolicy===s&&(this.applyNextFetchPolicy("variables-changed",c),n===void 0&&(n=L.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Yn(c.fetchPolicy));var f=function(){i.concast===h&&(i.waitForOwnResult=!1)},p=c.variables&&d({},c.variables),l=this.fetch(c,n),h=l.concast,v=l.fromLink,m={next:function(b){f(),i.reportResult(b,p)},error:function(b){f(),i.reportError(b,p)}};return!o&&v&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=m),h.addObserver(m),h},e.prototype.reobserve=function(t,n){return this.reobserveAsConcast(t,n).promise},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(t,n){var i=this.getLastError();(i||this.isDifferentFromLastResult(t,n))&&((i||!t.partial||this.options.returnPartialData)&&this.updateLastResult(t,n),je(this.observers,"next",t))},e.prototype.reportError=function(t,n){var i=d(d({},this.getLastResult()),{error:t,errors:t.graphQLErrors,networkStatus:L.error,loading:!1});this.updateLastResult(i,n),je(this.observers,"error",this.last.error=t)},e.prototype.hasObservers=function(){return this.observers.size>0},e.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(t){return t.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e}(C);$t(gr);function Jn(r){var e=r.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return t==="cache-and-network"||t==="network-only"?r.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,typeof n=="function"?n.apply(this,arguments):t}}):r.reobserve()}function qu(r){__DEV__&&O.error("Unhandled error",r.message,r.stack)}function Hn(r){__DEV__&&r&&__DEV__&&O.debug("Missing cache result fields: ".concat(JSON.stringify(r)),r)}function Yn(r){return r==="network-only"||r==="no-cache"||r==="standby"}var br=function(){function r(e){var t=e.cache,n=e.client,i=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return r.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){t.resolvers=sn(t.resolvers,n)}):this.resolvers=sn(this.resolvers,e)},r.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},r.prototype.getResolvers=function(){return this.resolvers||{}},r.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=a===void 0?!1:a;return ie(this,void 0,void 0,function(){return oe(this,function(u){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then(function(c){return d(d({},n),{data:c.result})})]:[2,n]})})},r.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},r.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},r.prototype.clientQuery=function(e){return We(["client"],e)&&this.resolvers?e:null},r.prototype.serverQuery=function(e){return an(e)},r.prototype.prepareContext=function(e){var t=this.cache;return d(d({},e),{cache:t,getCacheKey:function(n){return t.identify(n)}})},r.prototype.addExportedVariables=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),ie(this,void 0,void 0,function(){return oe(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(o){return d(d({},t),o.exportedVariables)})]:[2,d({},t)]})})},r.prototype.shouldForceResolvers=function(e){var t=!1;return W(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(t=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),t))return Ae}}}),t},r.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:on(e),variables:t,returnPartialData:!0,optimistic:!1}).result},r.prototype.resolveDocument=function(e,t,n,i,o,a){return n===void 0&&(n={}),i===void 0&&(i={}),o===void 0&&(o=function(){return!0}),a===void 0&&(a=!1),ie(this,void 0,void 0,function(){var s,u,c,f,p,l,h,v,m,b,_;return oe(this,function(g){return s=ge(e),u=Pe(e),c=Ce(u),f=this.collectSelectionsToResolve(s,c),p=s.operation,l=p?p.charAt(0).toUpperCase()+p.slice(1):"Query",h=this,v=h.cache,m=h.client,b={fragmentMap:c,context:d(d({},n),{cache:v,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:l,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},_=!1,[2,this.resolveSelectionSet(s.selectionSet,_,t,b).then(function(E){return{result:E,exportedVariables:b.exportedVariables}})]})})},r.prototype.resolveSelectionSet=function(e,t,n,i){return ie(this,void 0,void 0,function(){var o,a,s,u,c,f=this;return oe(this,function(p){return o=i.fragmentMap,a=i.context,s=i.variables,u=[n],c=function(l){return ie(f,void 0,void 0,function(){var h,v;return oe(this,function(m){return!t&&!i.selectionsToResolve.has(l)?[2]:ve(l,s)?Z(l)?[2,this.resolveField(l,t,n,i).then(function(b){var _;typeof b<"u"&&u.push((_={},_[te(l)]=b,_))})]:(en(l)?h=l:(h=o[l.name.value],__DEV__?O(h,"No fragment named ".concat(l.name.value)):O(h,11)),h&&h.typeCondition&&(v=h.typeCondition.name.value,i.fragmentMatcher(n,v,a))?[2,this.resolveSelectionSet(h.selectionSet,t,n,i).then(function(b){u.push(b)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return yt(u)})]})})},r.prototype.resolveField=function(e,t,n,i){return ie(this,void 0,void 0,function(){var o,a,s,u,c,f,p,l,h,v=this;return oe(this,function(m){return n?(o=i.variables,a=e.name.value,s=te(e),u=a!==s,c=n[s]||n[a],f=Promise.resolve(c),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(p=n.__typename||i.defaultOperationType,l=this.resolvers&&this.resolvers[p],l&&(h=l[u?a:s],h&&(f=Promise.resolve(nt.withValue(this.cache,h,[n,ye(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(b){var _,g;if(b===void 0&&(b=c),e.directives&&e.directives.forEach(function(x){x.name.value==="export"&&x.arguments&&x.arguments.forEach(function(k){k.name.value==="as"&&k.value.kind==="StringValue"&&(i.exportedVariables[k.value.value]=b)})}),!e.selectionSet||b==null)return b;var E=(g=(_=e.directives)===null||_===void 0?void 0:_.some(function(x){return x.name.value==="client"}))!==null&&g!==void 0?g:!1;if(Array.isArray(b))return v.resolveSubSelectedArray(e,t||E,b,i);if(e.selectionSet)return v.resolveSelectionSet(e.selectionSet,t||E,b,i)})]):[2,null]})})},r.prototype.resolveSubSelectedArray=function(e,t,n,i){var o=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(e,t,a,i);if(e.selectionSet)return o.resolveSelectionSet(e.selectionSet,t,a,i)}))},r.prototype.collectSelectionsToResolve=function(e,t){var n=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function o(a){if(!i.has(a)){var s=new Set;i.set(a,s),W(a,{Directive:function(u,c,f,p,l){u.name.value==="client"&&l.forEach(function(h){n(h)&&pt(h)&&s.add(h)})},FragmentSpread:function(u,c,f,p,l){var h=t[u.name.value];__DEV__?O(h,"No fragment named ".concat(u.name.value)):O(h,12);var v=o(h);v.size>0&&(l.forEach(function(m){n(m)&&pt(m)&&s.add(m)}),s.add(u),v.forEach(function(m){s.add(m)}))}})}return i.get(a)}return o(e)},r}();var ot=new(re?WeakMap:Map);function Xn(r,e){var t=r[e];typeof t=="function"&&(r[e]=function(){return ot.set(r,(ot.get(r)+1)%1e15),t.apply(this,arguments)})}function ha(r){r.notifyTimeout&&(clearTimeout(r.notifyTimeout),r.notifyTimeout=void 0)}var Er=function(){function r(e,t){t===void 0&&(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;ot.has(n)||(ot.set(n,0),Xn(n,"evict"),Xn(n,"modify"),Xn(n,"reset"))}return r.prototype.init=function(e){var t=e.networkStatus||L.loading;return this.variables&&this.networkStatus!==L.loading&&!V(this.variables,e.variables)&&(t=L.setVariables),V(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},r.prototype.reset=function(){ha(this),this.dirty=!1},r.prototype.getDiff=function(e){e===void 0&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&V(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var i=this.cache.diff(t);return this.updateLastDiff(i,t),i},r.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},r.prototype.getDiffOptions=function(e){var t;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(t=this.observableQuery)===null||t===void 0?void 0:t.options.canonizeResults}},r.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!V(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},r.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(){var n=t.getDiff();n.fromOptimisticTransaction?e.observe():Jn(e)})):delete this.oqListener)},r.prototype.notify=function(){var e=this;ha(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},r.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ke(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},r.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=r.prototype.cancel,this.subscriptions.forEach(function(t){return t.unsubscribe()});var e=this.observableQuery;e&&e.stopPolling()}},r.prototype.cancel=function(){},r.prototype.updateWatch=function(e){var t=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=d(d({},this.getDiffOptions(e)),{watcher:this,callback:function(o){return t.setDiff(o)}});(!this.lastWatch||!V(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},r.prototype.resetLastWrite=function(){this.lastWrite=void 0},r.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===ot.get(this.cache)&&V(t,n.variables)&&V(e.data,n.result.data))},r.prototype.markResult=function(e,t,n,i){var o=this,a=new X,s=K(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&K(e.incremental)){var u=er(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=s,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(Or(e,n.errorPolicy)?this.cache.performTransaction(function(f){if(o.shouldWrite(e,n.variables))f.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:i===1}),o.lastWrite={result:e,variables:n.variables,dmCount:ot.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var p=o.getDiffOptions(n.variables),l=f.diff(p);o.stopped||o.updateWatch(n.variables),o.updateLastDiff(l,p),l.complete&&(e.data=l.result)}):this.lastWrite=void 0)},r.prototype.markReady=function(){return this.networkError=null,this.networkStatus=L.ready},r.prototype.markError=function(e){return this.networkStatus=L.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},r}();function Or(r,e){e===void 0&&(e="none");var t=e==="ignore"||e==="all",n=!Ze(r);return!n&&t&&r.data&&(n=!0),n}var Qu=Object.prototype.hasOwnProperty,da=function(){function r(e){var t=e.cache,n=e.link,i=e.defaultOptions,o=e.queryDeduplication,a=o===void 0?!1:o,s=e.onBroadcast,u=e.ssrMode,c=u===void 0?!1:u,f=e.clientAwareness,p=f===void 0?{}:f,l=e.localState,h=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(re?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=p,this.localState=l||new br({cache:t}),this.ssrMode=c,this.assumeImmutableResults=!!h,(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return r.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new I("QueryManager stopped while query was in flight"):new I(14))},r.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},r.prototype.mutate=function(e){var t,n,i=e.mutation,o=e.variables,a=e.optimisticResponse,s=e.updateQueries,u=e.refetchQueries,c=u===void 0?[]:u,f=e.awaitRefetchQueries,p=f===void 0?!1:f,l=e.update,h=e.onQueryUpdated,v=e.fetchPolicy,m=v===void 0?((t=this.defaultOptions.mutate)===null||t===void 0?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,_=b===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.errorPolicy)||"none":b,g=e.keepRootFields,E=e.context;return ie(this,void 0,void 0,function(){var x,k,w,S,N,P;return oe(this,function(F){switch(F.label){case 0:return __DEV__?O(i,"mutation option is required. You must specify your GraphQL document in the mutation option."):O(i,15),__DEV__?O(m==="network-only"||m==="no-cache","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."):O(m==="network-only"||m==="no-cache",16),x=this.generateMutationId(),k=this.transform(i),w=k.document,S=k.hasClientExports,i=this.cache.transformForLink(w),o=this.getVariables(i,o),S?[4,this.localState.addExportedVariables(i,o,E)]:[3,2];case 1:o=F.sent(),F.label=2;case 2:return N=this.mutationStore&&(this.mutationStore[x]={mutation:i,variables:o,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:x,document:i,variables:o,fetchPolicy:m,errorPolicy:_,context:E,updateQueries:s,update:l,keepRootFields:g}),this.broadcastQueries(),P=this,[2,new Promise(function(Y,fe){return Zt(P.getObservableFromLink(i,d(d({},E),{optimisticResponse:a}),o,!1),function(U){if(Ze(U)&&_==="none")throw new Qe({graphQLErrors:tr(U)});N&&(N.loading=!1,N.error=null);var le=d({},U);return typeof c=="function"&&(c=c(le)),_==="ignore"&&Ze(le)&&delete le.errors,P.markMutationResult({mutationId:x,result:le,document:i,variables:o,fetchPolicy:m,errorPolicy:_,context:E,update:l,updateQueries:s,awaitRefetchQueries:p,refetchQueries:c,removeOptimistic:a?x:void 0,onQueryUpdated:h,keepRootFields:g})}).subscribe({next:function(U){P.broadcastQueries(),(!("hasNext"in U)||U.hasNext===!1)&&Y(U)},error:function(U){N&&(N.loading=!1,N.error=U),a&&P.cache.removeOptimistic(x),P.broadcastQueries(),fe(U instanceof Qe?U:new Qe({networkError:U}))}})})]}})})},r.prototype.markMutationResult=function(e,t){var n=this;t===void 0&&(t=this.cache);var i=e.result,o=[],a=e.fetchPolicy==="no-cache";if(!a&&Or(i,e.errorPolicy)){if(xe(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),xe(i)&&K(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=er(s.result,i)),typeof u<"u"&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(p,l){var h=p.observableQuery,v=h&&h.queryName;if(!(!v||!Qu.call(c,v))){var m=c[v],b=n.queries.get(l),_=b.document,g=b.variables,E=t.diff({query:_,variables:g,returnPartialData:!0,optimistic:!1}),x=E.result,k=E.complete;if(k&&x){var w=m(x,{mutationResult:i,queryName:_&&Je(_)||void 0,queryVariables:g});w&&o.push({result:w,dataId:"ROOT_QUERY",query:_,variables:g})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(p){a||o.forEach(function(m){return p.write(m)});var l=e.update,h=!zi(i)||xe(i)&&!i.hasNext;if(l){if(!a){var v=p.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});v.complete&&(i=d(d({},i),{data:v.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&l(p,i,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&h&&p.modify({id:"ROOT_MUTATION",fields:function(m,b){var _=b.fieldName,g=b.DELETE;return _==="__typename"?m:g}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(p){return f.push(p)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},r.prototype.markMutationOptimistic=function(e,t){var n=this,i=typeof e=="function"?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(d(d({},t),{result:{data:i}}),o)}catch(a){__DEV__&&O.error(a)}},t.mutationId)},r.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},r.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},r.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},r.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),i=nn(n),o=this.localState.clientQuery(n),a=i&&this.localState.serverQuery(i),s={document:n,hasClientExports:Hr(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Me(he(n)),asQuery:d(d({},n),{definitions:n.definitions.map(function(c){return c.kind==="OperationDefinition"&&c.operation!=="query"?d(d({},c),{operation:"query"}):c})})},u=function(c){c&&!t.has(c)&&t.set(c,s)};u(e),u(n),u(o),u(a)}return t.get(e)},r.prototype.getVariables=function(e,t){return d(d({},this.transform(e).defaultVars),t)},r.prototype.watchQuery=function(e){e=d(d({},e),{variables:this.getVariables(e.query,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var t=new Er(this),n=new gr({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},r.prototype.query=function(e,t){var n=this;return t===void 0&&(t=this.generateQueryId()),__DEV__?O(e.query,"query option is required. You must specify your GraphQL document in the query option."):O(e.query,17),__DEV__?O(e.query.kind==="Document",'You must wrap the query string in a "gql" tag.'):O(e.query.kind==="Document",18),__DEV__?O(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):O(!e.returnPartialData,19),__DEV__?O(!e.pollInterval,"pollInterval option only supported on watchQuery."):O(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return n.stopQuery(t)})},r.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},r.prototype.generateRequestId=function(){return this.requestIdCounter++},r.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},r.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},r.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},r.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new I("Store reset while query was in flight (not completed in link chain)"):new I(21)),this.queries.forEach(function(t){t.observableQuery?t.networkStatus=L.loading:t.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},r.prototype.getObservableQueries=function(e){var t=this;e===void 0&&(e="active");var n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(a){typeof a=="string"?i.set(a,!1):Zr(a)?i.set(t.transform(a).document,!1):A(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,s){var u=a.observableQuery,c=a.document;if(u){if(e==="all"){n.set(s,u);return}var f=u.queryName,p=u.options.fetchPolicy;if(p==="standby"||e==="active"&&!u.hasObservers())return;(e==="active"||f&&i.has(f)||c&&i.has(c))&&(n.set(s,u),f&&i.set(f,!0),c&&i.set(c,!0))}}),o.size&&o.forEach(function(a){var s=Et("legacyOneTimeQuery"),u=t.getQuery(s).init({document:a.query,variables:a.variables}),c=new gr({queryManager:t,queryInfo:u,options:d(d({},a),{fetchPolicy:"network-only"})});O(c.queryId===s),u.setObservableQuery(c),n.set(s,c)}),__DEV__&&i.size&&i.forEach(function(a,s){a||__DEV__&&O.warn("Unknown query ".concat(typeof s=="string"?"named ":"").concat(JSON.stringify(s,null,2)," requested in refetchQueries options.include array"))}),n},r.prototype.reFetchObservableQueries=function(e){var t=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,o){var a=i.options.fetchPolicy;i.resetLastResults(),(e||a!=="standby"&&a!=="cache-only")&&n.push(i.refetch()),t.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},r.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},r.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,i=e.fetchPolicy,o=e.errorPolicy,a=e.variables,s=e.context,u=s===void 0?{}:s;n=this.transform(n).document,a=this.getVariables(n,a);var c=function(p){return t.getObservableFromLink(n,u,p).map(function(l){i!=="no-cache"&&(Or(l,o)&&t.cache.write({query:n,result:l.data,dataId:"ROOT_SUBSCRIPTION",variables:p}),t.broadcastQueries());var h=Ze(l),v=oo(l);if(h||v){var m={};throw h&&(m.graphQLErrors=l.errors),v&&(m.protocolErrors=l.extensions[Tt]),new Qe(m)}return l})};if(this.transform(n).hasClientExports){var f=this.localState.addExportedVariables(n,a,u).then(c);return new C(function(p){var l=null;return f.then(function(h){return l=h.subscribe(p)},p.error),function(){return l&&l.unsubscribe()}})}return c(a)},r.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},r.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},r.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},r.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},r.prototype.getLocalState=function(){return this.localState},r.prototype.getObservableFromLink=function(e,t,n,i){var o=this,a;i===void 0&&(i=(a=t?.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var s,u=this.transform(e).serverQuery;if(u){var c=this,f=c.inFlightLinkObservables,p=c.link,l={query:u,variables:n,operationName:Je(u)||void 0,context:this.prepareContext(d(d({},t),{forceFetch:!i}))};if(t=l.context,i){var h=f.get(u)||new Map;f.set(u,h);var v=$(n);if(s=h.get(v),!s){var m=new qe([$e(p,l)]);h.set(v,s=m),m.beforeNext(function(){h.delete(v)&&h.size<1&&f.delete(u)})}}else s=new qe([$e(p,l)])}else s=new qe([C.of({data:{}})]),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(s=Zt(s,function(_){return o.localState.runResolvers({document:b,remoteResult:_,context:t,variables:n})})),s},r.prototype.getResultsFromLink=function(e,t,n){var i=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(this.transform(e.document).document);return Zt(this.getObservableFromLink(o,n.context,n.variables),function(a){var s=tr(a),u=s.length>0;if(i>=e.lastRequestId){if(u&&n.errorPolicy==="none")throw e.markError(new Qe({graphQLErrors:s}));e.markResult(a,o,n,t),e.markReady()}var c={data:a.data,loading:!1,networkStatus:L.ready};return u&&n.errorPolicy!=="ignore"&&(c.errors=s,c.networkStatus=L.error),c},function(a){var s=ao(a)?a:new Qe({networkError:a});throw i>=e.lastRequestId&&e.markError(s),s})},r.prototype.fetchQueryObservable=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast},r.prototype.fetchConcastWithInfo=function(e,t,n){var i=this;n===void 0&&(n=L.loading);var o=this.transform(t.query).document,a=this.getVariables(o,t.variables),s=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,f=c===void 0?u&&u.fetchPolicy||"cache-first":c,p=t.errorPolicy,l=p===void 0?u&&u.errorPolicy||"none":p,h=t.returnPartialData,v=h===void 0?!1:h,m=t.notifyOnNetworkStatusChange,b=m===void 0?!1:m,_=t.context,g=_===void 0?{}:_,E=Object.assign({},t,{query:o,variables:a,fetchPolicy:f,errorPolicy:l,returnPartialData:v,notifyOnNetworkStatusChange:b,context:g}),x=function(P){E.variables=P;var F=i.fetchQueryByPolicy(s,E,n);return E.fetchPolicy!=="standby"&&F.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",t),F},k=function(){return i.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(P){k(),setTimeout(function(){return w.cancel(P)})});var w,S;if(this.transform(E.query).hasClientExports)w=new qe(this.localState.addExportedVariables(E.query,E.variables,E.context).then(x).then(function(P){return P.sources})),S=!0;else{var N=x(E.variables);S=N.fromLink,w=new qe(N.sources)}return w.promise.then(k,k),{concast:w,fromLink:S}},r.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,i=e.include,o=e.optimistic,a=o===void 0?!1:o,s=e.removeOptimistic,u=s===void 0?a?Et("refetchQueries"):void 0:s,c=e.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(l,h){f.set(h,{oq:l,lastDiff:t.getQuery(h).getDiff()})});var p=new Map;return n&&this.cache.batch({update:n,optimistic:a&&u||!1,removeOptimistic:u,onWatchUpdated:function(l,h,v){var m=l.watcher instanceof Er&&l.watcher.observableQuery;if(m){if(c){f.delete(m.queryId);var b=c(m,h,v);return b===!0&&(b=m.refetch()),b!==!1&&p.set(m,b),b}c!==null&&f.set(m.queryId,{oq:m,lastDiff:v,diff:h})}}}),f.size&&f.forEach(function(l,h){var v=l.oq,m=l.lastDiff,b=l.diff,_;if(c){if(!b){var g=v.queryInfo;g.reset(),b=g.getDiff()}_=c(v,b,m)}(!c||_===!0)&&(_=v.refetch()),_!==!1&&p.set(v,_),h.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(h)}),u&&this.cache.removeOptimistic(u),p},r.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,p=t.context,l=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:n});var v=function(){return e.getDiff(a)},m=function(x,k){k===void 0&&(k=e.networkStatus||L.loading);var w=x.result;__DEV__&&!f&&!V(w,{})&&Hn(x.missing);var S=function(N){return C.of(d({data:N,loading:ke(k),networkStatus:k},x.complete?null:{partial:!0}))};return w&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:w},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(N){return S(N.data||void 0)}):c==="none"&&k===L.refetch&&Array.isArray(x.missing)?S(void 0):S(w)},b=s==="no-cache"?0:n===L.refetch&&u!=="merge"?1:2,_=function(){return i.getResultsFromLink(e,b,{variables:a,context:p,fetchPolicy:s,errorPolicy:c})},g=l&&typeof h=="number"&&h!==n&&ke(n);switch(s){default:case"cache-first":{var E=v();return E.complete?{fromLink:!1,sources:[m(E,e.markReady())]}:f||g?{fromLink:!0,sources:[m(E),_()]}:{fromLink:!0,sources:[_()]}}case"cache-and-network":{var E=v();return E.complete||f||g?{fromLink:!0,sources:[m(E),_()]}:{fromLink:!0,sources:[_()]}}case"cache-only":return{fromLink:!1,sources:[m(v(),e.markReady())]};case"network-only":return g?{fromLink:!0,sources:[m(v()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return g?{fromLink:!0,sources:[m(e.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},r.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Er(this,e)),this.queries.get(e)},r.prototype.prepareContext=function(e){e===void 0&&(e={});var t=this.localState.prepareContext(e);return d(d({},t),{clientAwareness:this.clientAwareness})},r}();var ma=!1;var _r=function(){function r(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,s=e.ssrMode,u=s===void 0?!1:s,c=e.ssrForceFetchDelay,f=c===void 0?0:c,p=e.connectToDevTools,l=p===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&__DEV__:p,h=e.queryDeduplication,v=h===void 0?!0:h,m=e.defaultOptions,b=e.assumeImmutableResults,_=b===void 0?!1:b,g=e.resolvers,E=e.typeDefs,x=e.fragmentMatcher,k=e.name,w=e.version,S=e.link;if(S||(S=n?new Tn({uri:n,credentials:i,headers:o}):de.empty()),!a)throw __DEV__?new I(`To initialize Apollo Client, you must specify a 'cache' property in the options object.
For more information, please visit: https://go.apollo.dev/c/docs`):new I(9);if(this.link=S,this.cache=a,this.disableNetworkFetches=u||f>0,this.queryDeduplication=v,this.defaultOptions=m||Object.create(null),this.typeDefs=E,f&&setTimeout(function(){return t.disableNetworkFetches=!1},f),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),l&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!ma&&l&&__DEV__&&(ma=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var N=window.navigator,P=N&&N.userAgent,F=void 0;typeof P=="string"&&(P.indexOf("Chrome/")>-1?F="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":P.indexOf("Firefox/")>-1&&(F="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),F&&__DEV__&&O.log("Download the Apollo DevTools for a better development experience: "+F)}this.version=Xi,this.localState=new br({cache:a,client:this,resolvers:g,fragmentMatcher:x}),this.queryManager=new da({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:v,ssrMode:u,clientAwareness:{name:k,version:w},localState:this.localState,assumeImmutableResults:_,onBroadcast:l?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return r.prototype.stop=function(){this.queryManager.stop()},r.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Ot(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=d(d({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},r.prototype.query=function(e){return this.defaultOptions.query&&(e=Ot(this.defaultOptions.query,e)),__DEV__?O(e.fetchPolicy!=="cache-and-network","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."):O(e.fetchPolicy!=="cache-and-network",10),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=d(d({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},r.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Ot(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},r.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},r.prototype.readQuery=function(e,t){return t===void 0&&(t=!1),this.cache.readQuery(e,t)},r.prototype.readFragment=function(e,t){return t===void 0&&(t=!1),this.cache.readFragment(e,t)},r.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},r.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},r.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},r.prototype.__requestRaw=function(e){return $e(this.link,e)},r.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(t){return t()}))}).then(function(){return e.reFetchObservableQueries()})},r.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(t){return t()}))})},r.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(n){return n!==e})}},r.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(n){return n!==e})}},r.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},r.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],i=[];t.forEach(function(a,s){n.push(s),i.push(a)});var o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(a){__DEV__&&O.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(a))}),o},r.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},r.prototype.extract=function(e){return this.cache.extract(e)},r.prototype.restore=function(e){return this.cache.restore(e)},r.prototype.addResolvers=function(e){this.localState.addResolvers(e)},r.prototype.setResolvers=function(e){this.localState.setResolvers(e)},r.prototype.getResolvers=function(){return this.localState.getResolvers()},r.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},r.prototype.setLink=function(e){this.link=this.queryManager.link=e},r}();var xr=new Map,Zn=new Map,va=!0,Tr=!1;function ya(r){return r.replace(/[\s,]+/g," ").trim()}function Bu(r){return ya(r.source.body.substring(r.start,r.end))}function Uu(r){var e=new Set,t=[];return r.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=Bu(n.loc),a=Zn.get(i);a&&!a.has(o)?va&&console.warn("Warning: fragment with name "+i+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Zn.set(i,a=new Set),a.add(o),e.has(o)||(e.add(o),t.push(n))}else t.push(n)}),d(d({},r),{definitions:t})}function Gu(r){var e=new Set(r.definitions);e.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&e.add(o)})});var t=r.loc;return t&&(delete t.startToken,delete t.endToken),r}function Ku(r){var e=ya(r);if(!xr.has(e)){var t=zt(r,{experimentalFragmentVariables:Tr,allowLegacyFragmentVariables:Tr});if(!t||t.kind!=="Document")throw new Error("Not a valid GraphQL document.");xr.set(e,Gu(Uu(t)))}return xr.get(e)}function Ne(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];typeof r=="string"&&(r=[r]);var n=r[0];return e.forEach(function(i,o){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=r[o+1]}),Ku(n)}function ga(){xr.clear(),Zn.clear()}function ba(){va=!1}function Ea(){Tr=!0}function Oa(){Tr=!1}var It={gql:Ne,resetCaches:ga,disableFragmentWarnings:ba,enableExperimentalFragmentVariables:Ea,disableExperimentalFragmentVariables:Oa};(function(r){r.gql=It.gql,r.resetCaches=It.resetCaches,r.disableFragmentWarnings=It.disableFragmentWarnings,r.enableExperimentalFragmentVariables=It.enableExperimentalFragmentVariables,r.disableExperimentalFragmentVariables=It.disableExperimentalFragmentVariables})(Ne||(Ne={}));Ne.default=Ne;di(Ie?"log":"silent");function _a(r){return new Fr(e=>(r().then(t=>{e.closed||(e.next(t),e.complete())},t=>{e.closed||e.error(t)}),()=>e.unsubscribe()))}function zu(r,e){return e?r.pipe(ci({loading:!0}),Ar(t=>Ge(ne({},t),{loading:!!t.loading}))):r.pipe(Ar(t=>Ge(ne({},t),{loading:!1})))}var ei=class{zone;constructor(e){this.zone=e}now=Date.now?Date.now:()=>+new Date;schedule(e,t=0,n){return this.zone.run(()=>si.schedule(e,t,n))}};function Ta(r){return r[ai]=()=>r,r}function Sa(r,e){return r.pipe(ui(new ei(e)))}function xa(r,e,t){return r&&typeof r[e]<"u"?r[e]:t}function Wu(r){return function(t){return new Fr(function(i){let o=r.getCurrentResult(),{loading:a,errors:s,error:u,partial:c,data:f}=o,{partialRefetch:p,fetchPolicy:l}=r.options,h=s||u;return p&&c&&(!f||Object.keys(f).length===0)&&l!=="cache-only"&&!a&&!h&&i.next(Ge(ne({},o),{loading:!0,networkStatus:L.loading})),t.subscribe(i)})}}var ti=class{obsQuery;valueChanges;queryId;constructor(e,t,n){this.obsQuery=e;let i=Sa(Rr(Ta(this.obsQuery)),t);this.valueChanges=n.useInitialLoading?i.pipe(Wu(this.obsQuery)):i,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(e){return this.obsQuery.refetch(e)}fetchMore(e){return this.obsQuery.fetchMore(e)}subscribeToMore(e){return this.obsQuery.subscribeToMore(e)}updateQuery(e){return this.obsQuery.updateQuery(e)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(e){return this.obsQuery.startPolling(e)}setOptions(e){return this.obsQuery.setOptions(e)}setVariables(e){return this.obsQuery.setVariables(e)}},Yu=new Ft("APOLLO_FLAGS"),Ju=new Ft("APOLLO_OPTIONS"),Hu=new Ft("APOLLO_NAMED_OPTIONS"),Sr=class{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(e,t,n){this.ngZone=e,this.flags=t,this._client=n,this.useInitialLoading=xa(t,"useInitialLoading",!1),this.useMutationLoading=xa(t,"useMutationLoading",!1)}watchQuery(e){return new ti(this.ensureClient().watchQuery(ne({},e)),this.ngZone,ne({useInitialLoading:this.useInitialLoading},e))}query(e){return _a(()=>this.ensureClient().query(ne({},e)))}mutate(e){return zu(_a(()=>this.ensureClient().mutate(ne({},e))),e.useMutationLoading??this.useMutationLoading)}subscribe(e,t){let n=Rr(Ta(this.ensureClient().subscribe(ne({},e))));return t&&t.useZone!==!0?n:Sa(n,this.ngZone)}getClient(){return this.client}setClient(e){this.client=e}get client(){return this._client}set client(e){if(this._client)throw new Error("Client has been already defined");this._client=e}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}},Da=(()=>{class r extends Sr{_ngZone;map=new Map;constructor(t,n,i,o){if(super(t,o),this._ngZone=t,n&&this.createDefault(n),i&&typeof i=="object"){for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];this.create(s,a)}}}create(t,n){$n(n)?this.createDefault(t):this.createNamed(n,t)}default(){return this}use(t){return $n(t)?this.default():this.map.get(t)}createDefault(t){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new _r(t))}createNamed(t,n){if(this.map.has(t))throw new Error(`Client ${t} has been already created`);this.map.set(t,new Sr(this._ngZone,this.flags,new _r(n)))}removeClient(t){$n(t)?this._client=void 0:this.map.delete(t)}static \u0275fac=function(n){return new(n||r)(Ke(pi),Ke(Ju,8),Ke(Hu,8),Ke(Yu,8))};static \u0275prov=Cr({token:r,factory:r.\u0275fac})}return r})();function $n(r){return!r||r==="default"}var Xu=[Da],Xv=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=li({type:r});static \u0275inj=fi({providers:Xu})}return r})(),Zv=(()=>{class r{apollo;document;client="default";constructor(t){this.apollo=t}watch(t,n){return this.apollo.use(this.client).watchQuery(Ge(ne({},n),{variables:t,query:this.document}))}fetch(t,n){return this.apollo.use(this.client).query(Ge(ne({},n),{variables:t,query:this.document}))}static \u0275fac=function(n){return new(n||r)(Ke(Da))};static \u0275prov=Cr({token:r,factory:r.\u0275fac})}return r})();function Zu(r,...e){return Ne(r,...e)}var $v=Zu;export{Yt as a,M as b,C as c,de as d,pa as e,Da as f,Xv as g,Zv as h,$v as i};