1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,516080,e=>{"use strict";e.i(247167);var t=e.i(355824),r=e.i(541793),n=e.i(204359),i=e.i(195594),o=e.i(716005),a=e.i(307656),s=e.i(320502),u=e.i(834510),c=e.i(204425),l=e.i(836271),f=e.i(709578),h=e.i(352171),p=e.i(581949),d=e.i(197057),y=e.i(669430);let v=null,m=()=>(v||(v=(0,s.default)("https://console.phase.dev/service/auth/csrf/",{credentials:"include"}).then(e=>e.ok?e.json():{csrfToken:""}).then(e=>{let t=e.csrfToken||"";return t||(v=null),t}).catch(()=>(v=null,""))),v),g=()=>(v=null,m());m();let b=async()=>{k.stop();try{y.default.reset();let e=(0,h.getActivePasswordUser)();e&&((0,h.deleteDeviceKey)(e),(0,h.clearActivePasswordUser)());let t=e=>p.default.post(l.UrlUtils.makeUrl("https://console.phase.dev/service","logout"),{},{withCredentials:!0,headers:e?{"X-CSRFToken":e}:{}});try{await t(await m())}catch(e){if(p.default.isAxiosError(e)&&e.response?.status===403&&e.response.data?.code==="csrf_failed")await t(await g());else throw e}}catch(e){}finally{window.location.href="/login"}},_=new t.HttpLink({uri:"https://console.phase.dev/service/graphql/",credentials:"include",fetch:s.default}),w=(0,c.setContext)(async(e,{headers:t})=>{let r=await m();return{headers:{...t,...r?{"X-CSRFToken":r}:{}}}}),E=new o.ApolloLink((e,t)=>new a.Observable(r=>{let n,i=!1,o=()=>{n=t(e).subscribe({next:e=>r.next(e),error:e=>{let{statusCode:t,result:n}=e??{};if(!i&&403===t&&n?.code==="csrf_failed"){i=!0,g(),o();return}r.error(e)},complete:()=>r.complete()})};return o(),()=>n?.unsubscribe()})),O=(0,u.onError)(({graphQLErrors:e,networkError:t,operation:r})=>{if(e){let{suppressGlobalErrorToast:t}=r.getContext();for(let r of e){let e=r.extensions?.code;if("IP_RESTRICTED"===e){let e=r.extensions?.organisation_name;window.location.href=`/ip-restricted?org=${e}`;return}if("SSO_REQUIRED"===e)return void("/"!==window.location.pathname?window.location.href="/":d.toast.error(r.message));if("REAUTH_REQUIRED"===e||(0,f.isReauthError)(r.message)){if(!window.location.pathname.startsWith("/login")){let e=(0,f.reauthRedirectUrl)();(0,f.requestReauthPrompt)(e)||(window.location.href=e)}return}t||d.toast.error(r.message),console.log(`[GraphQL error]: Code: ${e}, Message: ${r.message}, Location: ${r.locations}, Path: ${r.path}`)}}if(t){console.log(`[Network error]: ${t}`);let e=["/login","/signup","/lockbox"].some(e=>window.location.pathname.startsWith(e));t.message.includes("403")&&!e&&b()}}),k=new r.ApolloClient({connectToDevTools:!1,link:(0,i.from)([O,E,w,_]),cache:new n.InMemoryCache({typePolicies:{KeyMap:{keyFields:["id","keyName"]},Query:{fields:{auditLogs:{keyArgs:["organisationId","start","end","resourceType","resourceTypes","resourceId","eventTypes","actorId"],merge(e,t,{args:r}){let n=r?.offset??0;return e&&0!==n?{...t,logs:[...e.logs||[],...t.logs||[]],count:t.count}:t}}}}}}),defaultOptions:{watchQuery:{skipPollAttempt:()=>document.hidden}}});e.s(["getCsrfToken",0,m,"graphQlClient",0,k,"handleSignout",0,b,"refreshCsrfToken",0,g])},320502,(e,t,r)=>{var n="u">typeof globalThis&&globalThis||"u">typeof self&&self||e.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t=void 0!==i&&i||"u">typeof self&&self||void 0!==t&&t,r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(r.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=f(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(r.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;r.arrayBuffer&&r.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){if(!this._bodyArrayBuffer)return this.blob().then(h);var e=l(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}),this.text=function(){var e,t,r,n=l(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=f(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=s(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=s(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),u(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),u(e)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);
1var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),y.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function g(e,t){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];g.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(n,i){return new Promise(function(o,a){var u=new v(n,i);if(u.signal&&u.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function f(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var n="response"in l?l.response:l.responseText;setTimeout(function(){o(new g(n,r))},0)},l.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},l.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)}
1,l.open(u.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(r.blob?l.responseType="blob":r.arrayBuffer&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof c?u.headers.forEach(function(e,t){l.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){l.setRequestHeader(e,s(i.headers[e]))}),u.signal&&(u.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",f)}),l.send(void 0===u._bodyInit?null:u._bodyInit)})}_.polyfill=!0,t.fetch||(t.fetch=_,t.Headers=c,t.Request=v,t.Response=g),e.Headers=c,e.Request=v,e.Response=g,e.fetch=_})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(r=o.fetch).default=o.fetch,r.fetch=o.fetch,r.Headers=o.Headers,r.Request=o.Request,r.Response=o.Response,t.exports=r},355824,307656,716005,541793,204359,195594,834510,204425,e=>{"use strict";let t;var r,n,i,o,a,s,u,c,l=e.i(290571);e.i(171258);var f=e.i(687081);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var y=function(){return"function"==typeof Symbol},v=function(e){return y()&&!!Symbol[e]},m=function(e){return v(e)?Symbol[e]:"@@"+e};y()&&!v("observable")&&(Symbol.observable=Symbol("observable"));var g=m("iterator"),b=m("observable"),_=m("species");function w(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function E(e){var t=e.constructor;return void 0!==t&&null===(t=t[_])&&(t=void 0),void 0!==t?t:R}function O(e){O.log?O.log(e):setTimeout(function(){throw e})}function k(e){Promise.resolve().then(function(){try{e()}catch(e){O(e)}})}function S(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=w(t,"unsubscribe");r&&r.call(t)}}catch(e){O(e)}}function T(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function D(e,t,r){e._state="running";var n=e._observer;try{var i=w(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(T(e),i)i.call(n,r);else throw r;break;case"complete":T(e),i&&i.call(n)}}catch(e){O(e)}"closed"===e._state?S(e):"running"===e._state&&(e._state="ready")}function I(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],k(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(D(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}D(e,t,r)}}var x=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new N(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(T(this),S(this))},d(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),N=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){I(this._subscription,"next",e)},t.error=function(e){I(this._subscription,"error",e)},t.complete=function(){I(this._subscription,"complete")},d(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),R=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new x(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return void n(TypeError(e+" is not a function"));function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(E(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(E(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=E(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=E(this);return new i(function(t){var n,o=0;return!function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=E(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[b]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=w(t,b);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof R&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(v("iterator")&&(n=w(t,g)))return new r(function(e){k(function(){if(!e.closed){for(var r,i=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return h(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h(e,void 0)}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){k(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){k(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},d(e,null,[{key:_,get:function(){return this}}]),e}();y()&&Object.defineProperty(R,Symbol("extensions"),{value:{symbol:b,hostReportError:O},configurable:!0}),e.s(["Observable",0,R],307656);var A=e.i(419983);let F={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"]},P=new Set(Object.keys(F));function q(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&P.has(t)}(r=a||(a={})).QUERY="query",r.MUTATION="mutation",r.SUBSCRIPTION="subscription",(n=s||(s={})).NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.VARIABLE="Variable",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="Str
1ingValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition",n.SCHEMA_EXTENSION="SchemaExtension",n.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",n.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",n.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",n.UNION_TYPE_EXTENSION="UnionTypeExtension",n.ENUM_TYPE_EXTENSION="EnumTypeExtension",n.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";let C=Object.freeze({});function j(e,t,r=F){let n,i,o,a=new Map;for(let e of Object.values(s))a.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let u=Array.isArray(e),c=[e],l=-1,f=[],h=e,p=[],d=[];do{var y,v,m;let e,s=++l===c.length,g=s&&0!==f.length;if(s){if(i=0===d.length?void 0:p[p.length-1],h=o,o=d.pop(),g)if(u){h=h.slice();let e=0;for(let[t,r]of f){let n=t-e;null===r?(h.splice(n,1),e++):h[n]=r}}else for(let[e,t]of(h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h)),f))h[e]=t;l=n.index,c=n.keys,f=n.edits,u=n.inArray,n=n.prev}else if(o){if(null==(h=o[i=u?l:c[l]]))continue;p.push(i)}if(!Array.isArray(h)){q(h)||function(e,t){if(!e)throw Error(t)}(!1,`Invalid AST Node: ${function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){let n;if(null===t)return"null";if(r.includes(t))return"[Circular]";let i=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,i)}else if(Array.isArray(t)){var o,a,s=t,u=i;if(0===s.length)return"[]";if(u.length>2)return"[Array]";let r=Math.min(10,s.length),n=s.length-r,c=[];for(let t=0;t<r;++t)c.push(e(s[t],u));return 1===n?c.push("... 1 more item"):n>1&&c.push(`... ${n} more items`),"["+c.join(", ")+"]"}return o=t,a=i,0===(n=Object.entries(o)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+n.map(([t,r])=>t+": "+e(r,a)).join(", ")+" }"}(t,r);default:return String(t)}}(h,[])}.`);let r=s?null==(y=a.get(h.kind))?void 0:y.leave:null==(v=a.get(h.kind))?void 0:v.enter;if((e=null==r?void 0:r.call(t,h,i,o,p,d))===C)break;if(!1===e){if(!s){p.pop();continue}}else if(void 0!==e&&(f.push([i,e]),!s))if(q(e))h=e;else{p.pop();continue}}void 0===e&&g&&f.push([i,h]),s?p.pop():(n={inArray:u,index:l,keys:c,edits:f,prev:n},c=(u=Array.isArray(h))?h:null!=(m=r[h.kind])?m:[],l=-1,f=[],o&&d.push(o),o=h)}while(void 0!==n)return 0!==f.length?f[f.length-1][1]:e}function M(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,f.newInvariantError)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,f.invariant)(1===n.length,86,n.length),r=n[0].name.value),(0,l.__assign)((0,l.__assign)({},e),{definitions:(0,l.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function Q(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function V(e,t){switch(e.kind){case"InlineFragment":return e;
1case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,f.invariant)(n,87,r),n||null;default:return null}}var L=e.i(134049),B=e.i(872243),U=e.i(420871),z=Object.assign(function(e){return JSON.stringify(e,W)},{reset:function(){u=new L.AutoCleanedStrongCache(B.cacheSizes.canonicalStringify||1e3)}});function W(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(K))return t;var i=JSON.stringify(n),o=u.get(i);if(!o){n.sort();var a=JSON.stringify(n);o=u.get(a)||n,u.set(i,o),u.set(a,o)}var s=Object.create(r);return o.forEach(function(e){s[e]=t[e]}),s}}return t}function K(e,t,r){return 0===t||r[t-1]<=e}function Y(e){return{__ref:String(e)}}function G(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function H(e,t,r,n){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var i={};r.fields.map(function(e){return H(i,e.name,e.value,n)}),e[t.value]=i}else if("Variable"===r.kind){var o=(n||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return H(r,t,e,n),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,f.newInvariantError)(96,t.value,r.kind)}!1!==globalThis.__DEV__&&(0,U.registerGlobalCache)("canonicalStringify",function(){return u.size}),z.reset();var J=["connection","include","skip","client","rest","export","nonreactive"],$=z,X=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat($(i),")")}var o=e;if(t){var a=$(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===J.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat($(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=$;return $=e,t}});function Z(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return H(r,e.name,e.value,t)}),r}return null}function ee(e){return e.alias?e.alias.value:e.name.value}function et(e,t,r){for(var n,i=0,o=t.selections;i<o.length;i++){var a=o[i];if(er(a)){if("__typename"===a.name.value)return e[ee(a)]}else n?n.push(a):n=[a]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var a=u[s],c=et(e,V(a,r).selectionSet,r);if("string"==typeof c)return c}}function er(e){return"Field"===e.kind}function en(e){(0,f.invariant)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,f.newInvariantError)(89,e.kind);return e});return(0,f.invariant)(t.length<=1,90,t.length),e}function ei(e){return en(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function eo(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function ea(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function es(e){var t=ei(e);return(0,f.invariant)(t&&"query"===t.operation,91),t}function eu(e){(0,f.invariant)("Document"===e.kind,92),(0,f.invariant)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,f.invariant)("FragmentDefinition"===t.kind,94),t}function ec(e){en(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw(0,f.newInvariantError)(95)}function el(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&H(t,e.variable.name,e.defaultValue)}),t}function ef(e,t){return t?t(e):R.of()}function eh(e){return"function"==typeof e?new ed(e):e}function ep(e){return e.request.length<=1}var ed=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return R.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(eh).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=eh(r),o=eh(n||new e(ef));return Object.assign(new e(ep(i)&&ep(o)?function(e){return t(e)?i.request(e)||R.of():o.request(e)||R.of()}:function(e,r){return t(e)?i.request(e,r)||R.of():o.request(e,r)||R.of()}),{left:i,right:o})},e.execute=function(e,t){var r,n,i,o,a;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw(0,f.newInvariantError)(46,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?eo(n.query)||void 0:""),o=n,a=(0,l.__assign)({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){a="function"==typeof e?(0,l.__assign)((0,l.__assign)({},a),e(a)):(0,l.__assign)((0,l.__assign)({},a),e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,l.__assign)({},a)}}),o))||R.of()},e.concat=function(t,r){var n=eh(t);
1if(ep(n))return!1!==globalThis.__DEV__&&f.invariant.warn(38,n),n;var i=eh(r);return Object.assign(new e(ep(i)?function(e){return n.request(e,function(e){return i.request(e)||R.of()})||R.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||R.of()})||R.of()}),{left:n,right:i})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(ef)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,f.newInvariantError)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();function ey(e,t){var r,n,i=e.directives;return!i||!i.length||(n=[],(r=i)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,i=e.name.value;(0,f.invariant)(r&&1===r.length,79,i);var o=r[0];(0,f.invariant)(o.name&&"if"===o.name.value,80,i);var a=o.value;(0,f.invariant)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),81,i),n.push({directive:e,ifArgument:o})}}),n).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],(0,f.invariant)(void 0!==i,78,r.name.value)):i=n.value.value,"skip"===r.name.value?!i:i})}function ev(e,t,r){var n=new Set(e),i=n.size;return j(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return C}}),r?!n.size:n.size<i}e.s(["ApolloLink",0,ed],716005);var em=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,f.newInvariantError)(42,t,e.message);throw n.parseError=e,n}return r},eg=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},eb=e.i(975625);function e_(e){var t={next:function(){return e.read()}};return eb.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}var ew=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},eE=e.i(521110),eO=e.i(645938),ek=Object.prototype.hasOwnProperty;function eS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eT(e)}function eT(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new eI,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var eD=function(e,t,r){return this.merge(e[r],t[r])},eI=function(){function e(e){void 0===e&&(e=eD),this.reconciler=e,this.isObject=A.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(0,A.isNonNullObject)(t)&&(0,A.isNonNullObject)(e)?(Object.keys(t).forEach(function(i){if(ek.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,(0,l.__spreadArray)([e,t,i],n,!1));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,A.isNonNullObject)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,l.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function ex(e){return"incremental"in e}function eN(e,t){var r=e,n=new eI;return ex(t)&&(0,eO.isNonEmptyArray)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}var eR=Object.prototype.hasOwnProperty;function eA(e,t){e.status>=300&&ew(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var eF=function(e){if(!e&&"u"<typeof fetch)throw(0,f.newInvariantError)(40)};function eP(e){return 9===e||32===e}let eq=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eC(e){return ej[e.charCodeAt(0)]}let ej=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],eM={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eQ(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eL("(",eQ(e.variableDefinitions,", "),")"),r=eQ([e.o
1peration,eQ([e.name,t]),eQ(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+eL(" = ",r)+eL(" ",eQ(n," "))},SelectionSet:{leave:({selections:e})=>eV(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=eL("",e,": ")+t,a=o+eL("(",eQ(r,", "),")");return a.length>80&&(a=o+eL("(\n",eB(eQ(r,"\n")),"\n)")),eQ([a,eQ(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eL(" ",eQ(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>eQ(["...",eL("on ",e),eQ(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${eL("(",eQ(r,", "),")")} on ${t} ${eL("",eQ(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>{let r,n,i,o,a,s,u,c,l,f,h;return t?(i=1===(n=(r=e.replace(/"""/g,'\\"""')).split(/\r\n|[\n\r]/g)).length,o=n.length>1&&n.slice(1).every(e=>0===e.length||eP(e.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=s||u,l=!i||e.length>70||c||o||a,f="",h=i&&eP(e.charCodeAt(0)),(l&&!h||o)&&(f+="\n"),f+=r,(l||c)&&(f+="\n"),'"""'+f+'"""'):`"${e.replace(eq,eC)}"`}},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eQ(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eQ(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eL("(",eQ(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>eL("",e,"\n")+eQ(["schema",eQ(t," "),eV(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>eL("",e,"\n")+eQ(["scalar",t,eQ(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>eL("",e,"\n")+eQ(["type",t,eL("implements ",eQ(r," & ")),eQ(n," "),eV(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>eL("",e,"\n")+t+(eU(r)?eL("(\n",eB(eQ(r,"\n")),"\n)"):eL("(",eQ(r,", "),")"))+": "+n+eL(" ",eQ(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>eL("",e,"\n")+eQ([t+": "+r,eL("= ",n),eQ(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>eL("",e,"\n")+eQ(["interface",t,eL("implements ",eQ(r," & ")),eQ(n," "),eV(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>eL("",e,"\n")+eQ(["union",t,eQ(r," "),eL("= ",eQ(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>eL("",e,"\n")+eQ(["enum",t,eQ(r," "),eV(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>eL("",e,"\n")+eQ([t,eQ(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>eL("",e,"\n")+eQ(["input",t,eQ(r," "),eV(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>eL("",e,"\n")+"directive @"+t+(eU(r)?eL("(\n",eB(eQ(r,"\n")),"\n)"):eL("(",eQ(r,", "),")"))+(n?" repeatable":"")+" on "+eQ(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eQ(["extend schema",eQ(e," "),eV(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eQ(["extend scalar",e,eQ(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eQ(["extend type",e,eL("implements ",eQ(t," & ")),eQ(r," "),eV(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eQ(["extend interface",e,eL("implements ",eQ(t," & ")),eQ(r," "),eV(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>eQ(["extend union",e,eQ(t," "),eL("= ",eQ(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>eQ(["extend enum",e,eQ(t," "),eV(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>eQ(["extend input",e,eQ(t," "),eV(r)]," ")}};function eQ(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function eV(e){return eL("{\n",eB(eQ(e,"\n")),"\n}")}function eL(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function eB(e){return eL(" ",e.replace(/\n/g,"\n "))}function eU(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var ez=Object.assign(function(e){var t=c.get(e);return t||(t=j(e,eM),c.set(e,t)),t},{reset:function(){c=new L.AutoCleanedWeakCache(B.cacheSizes.print||2e3)}});ez.reset(),!1!==globalThis.__DEV__&&(0,U.registerGlobalCache)("print",function(){return c?c.size:0});var eW={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},eK=function(e,t){return t(e)};function eY(e){return new R(function(t){t.error(e)})}var eG=e.i(430207),eH={kind:s.FIELD,name:{kind:s.NAME,value:"__typename"}};function eJ(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function e$(e,t){en(t);for(var r,n,i,o=eJ(""),a=eJ(""),u=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,eO.isArray)(r)){if(r.kind===s.OPERATION_DEFINITION)return o(r.name&&r.name.value);if(r.kind===s.FRAGMENT_DEFINITION)return a(r.name.value)}return!1!==globalThis.__DEV__&&f.invariant.error(97),null},c=0,h=t.definitions.length-1;h>=0;--h)t.definitions[h].kind===s.OPERATION_DEFINITION&&++c;var p=(r=new Map,n=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&n.set(e.test,e))}
1),function(e){var t=r.get(e.name.value);return!t&&n.size&&n.forEach(function(r,n){n(e)&&(t=r)}),t}),d=function(e){return(0,eO.isNonEmptyArray)(e)&&e.map(p).some(function(e){return e&&e.remove})},y=new Map,v=!1,m={enter:function(e){if(d(e.directives))return v=!0,null}},g=j(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=u(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(d(e.directives))return v=!0,null;var o=u(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){y.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===y.get(JSON.stringify(n))?e:c>0&&e.selectionSet.selections.every(function(e){return e.kind===s.FIELD&&"__typename"===e.name.value})?(a(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return v=!0,null}}});if(!v)return t;var b=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(a(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},_=new Set;g.definitions.forEach(function(e){e.kind===s.OPERATION_DEFINITION?b(o(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==s.FRAGMENT_DEFINITION||0!==c||a(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){b(a(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var w={enter:function(e){var t;if(t=e.name.value,!_.has(t)||a(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===s.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}(ei(i=j(g,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(o(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,l.__assign)((0,l.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||eu(i),Q(ea(i)))?i:null}var eX=Object.assign(function(e){return j(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==s.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return er(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(er(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,l.__assign)((0,l.__assign)({},e),{selections:(0,l.__spreadArray)((0,l.__spreadArray)([],n,!0),[eH],!1)})}}}})},{added:function(e){return e===eH}});function eZ(e){return en(e),e$([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var e0=(0,eG.maybe)(function(){return fetch}),e1=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,o=void 0===i?eK:i,a=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,c=e.includeUnusedVariables,h=void 0!==c&&c,p=(0,l.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&eF(n||e0);var d={http:{includeExtensions:a,preserveHeaderCase:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new ed(function(e){var t,i,a,s,c,p,y=eg(e,r),v=e.getContext(),m={};if(v.clientAwareness){var g=v.clientAwareness,b=g.name,_=g.version;b&&(m["apollographql-client-name"]=b),_&&(m["apollographql-client-version"]=_)}var w=(0,l.__assign)((0,l.__assign)({},m),v.headers),E={http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:w};if(ev(["client"],e.query)){var O=eZ(e.query);if(!O)return eY(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=O}var k=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(e){i=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},i),e.options),{headers:(0,l.__assign)((0,l.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,l.__assign)((0,l.__assign)({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,f={operationName:a,variables:u};return o.includeExtensions&&(f.extensions=s),o.includeQuery&&(f.query=t(c,ez)),{options:i,body:f}}(e,o,eW,d,E),S=k.options,T=k.body;T.variables&&!h&&(t=T.variables,i=e.query,a=(0,l.__assign)({},t),s=new Set(Object.keys(t)),j(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&s.delete(e.name.value)}}),s.forEach(function(e){delete a[e]}),T.variables=a),!S.signal&&"u">typeof AbortController&&(S.signal=(p=new AbortController).signal);var D="OperationDefinition"===(c=ec(e.query)).kind&&"subscription"===c.operation,I=ev(["defer"],e.query);if(u&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(S.method="GET"),I||D){S.headers=S.headers||{};var x="multipart/mixed;";D&&I&&!1!==globalThis.__DEV__&&f.invariant.warn(41),D?x+="boundary=graphql;subscriptionSpec=1.0,application/json":I&&(x+="deferSpec=20220824,application/json"),S.headers.accept=x}if("GET"===S.method){var N=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=em(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=em(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(y,T),F=N.newURI,P=N.parseError;if(P)return eY(P);y=F}else try{S.body=em(T,"Payload")}catch(e){return eY(e)}return new R(function(t){var r=n||(0,eG.maybe)(function(){return fetch})||e0,i=t.next.bind(t);return r(y,S).then(function(t){e.setContext({response:t});var r,n=null==(r=t.headers)?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return(0,l.__awaiter)(this,void 0,void 0,function(){var r,n,i,o,a,s,u,c,f,h,p,d,y,v,m,g,b,_,w,E,O,k,S;return(0,l.__generator)(this,function(T){switch(T.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(S=e.headers)?void 0:S.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",u=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,eb.canUseAsyncIteratorSymbol&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return e_(s.getReader());if(s.stream)return e_(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},eb.canUseAsyncIteratorSymbol&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return eb.canUseAsyncIteratorSymbol&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),c=!0,T.label=1;case 1:if(!c)return[3,3];return[4,u.next()];
1case 2:for(h=(f=T.sent()).value,p=f.done,d="string"==typeof h?h:r.decode(h),y=s.length-a.length+1,c=!p,s+=d,v=s.indexOf(a,y);v>-1;){if(m=void 0,m=(O=[s.slice(0,v),s.slice(v+a.length)])[0],s=O[1],g=m.indexOf("\r\n\r\n"),(b=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(m.slice(0,g))["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(_=m.slice(g)){if(Object.keys(w=eA(e,_)).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if((0,A.isNonNullObject)(w)&&"payload"in w){if(E={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];E=(0,l.__assign)({},w.payload)}"errors"in w&&(E=(0,l.__assign)((0,l.__assign)({},E),{extensions:(0,l.__assign)((0,l.__assign)({},"extensions"in E?E.extensions:null),((k={})[eE.PROTOCOL_ERRORS_SYMBOL]=w.errors,k))})),t(E)}else t(w);else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2]}v=s.indexOf(a)}return[3,1];case 3:return[2]}})})}(t,i):(function(t){return t.text().then(function(e){return eA(t,e)}).then(function(r){return Array.isArray(r)||eR.call(r,"data")||eR.call(r,"errors")||ew(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})})(t).then(i)}).then(function(){p=void 0,t.complete()}).catch(function(e){p=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){p&&p.abort()}})})},e2=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,e1(t).request)||this;return r.options=t,r}return(0,l.__extends)(t,e),t}(ed);e.s(["HttpLink",0,e2],355824);var e3=ed.execute,e8=e.i(582587),e9=e.i(869981);function e5(e){var t=e4(e);return(0,eO.isNonEmptyArray)(t)}function e4(e){var t=(0,eO.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return ex(e)&&(0,eO.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function e7(e,t,r){return new R(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}function e6(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function te(e){function t(t){Object.defineProperty(e,t,{value:R})}return eb.canUseSymbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function tt(e){return e&&"function"==typeof e.then}var tr=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),e6(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),e6(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?tt(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),e6(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new R(t)]),tt(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,l.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(R);te(tr);var tn=e.i(675739);let ti=()=>Object.create(null),{forEach:to,slice:ta}=Array.prototype,{hasOwnProperty:ts}=Object.prototype;class tu{constructor(e=!0,t=ti){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return to.call(e,e=>t=t.getChildTrie(e)),ts.call(t,"data")?t.data:t.data=this.makeData(ta.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(ta.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new tu(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}var tc=e.i(952812);let tl=()=>
1Object.create(null),{forEach:tf,slice:th}=Array.prototype,{hasOwnProperty:tp}=Object.prototype;class td{constructor(e=!0,t=tl){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return tf.call(e,e=>t=t.getChildTrie(e)),tp.call(t,"data")?t.data:t.data=this.makeData(th.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=this.weakness&&ty(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){let t=this.weakness&&ty(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=t.get(e);return r||t.set(e,r=new td(this.weakness,this.makeData)),r}}function ty(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var tv=e.i(65842);let tm=null,tg={},tb=1;function t_(e){try{return e()}catch(e){}}let tw="@wry/context:Slot",tE=t_(()=>globalThis)||t_(()=>e.g)||Object.create(null),tO=tE[tw]||Array[tw]||function(e){try{Object.defineProperty(tE,tw,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",tb++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=tm;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===tg)break;return e!==tm&&(tm.slots[this.id]=t),!0}return tm&&(tm.slots[this.id]=tg),!1}getValue(){if(this.hasValue())return tm.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=tm;tm={parent:o,slots:i};try{return t.apply(n,r)}finally{tm=o}}static bind(e){let t=tm;return function(){let r=tm;try{return tm=t,e.apply(this,arguments)}finally{tm=r}}}static noContext(e,t,r){if(!tm)return e.apply(r,t);{let n=tm;try{return tm=null,e.apply(r,t)}finally{tm=n}}}}),{bind:tk,noContext:tS}=tO,tT=new tO,{hasOwnProperty:tD}=Object.prototype,tI=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function tx(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let tN=[];function tR(e,t){if(!e)throw Error(t||"assertion failure")}function tA(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function tF(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class tP{constructor(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,++tP.count}peek(){if(1===this.value.length&&!tj(this))return tq(this),this.value[0]}recompute(e){var t,r,n;return tR(!this.recomputing,"already recomputing"),tq(this),tj(this)?(t=this,r=e,tB(t),tT.withValue(t,tC,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{tx(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,tj(n)||function(e){tM(e,tV)}(n)),tF(t.value)):tF(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,tM(e,tQ),tx(this))}dispose(){this.setDirty(),tB(this),tM(this,(e,t)=>{e.setDirty(),tU(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=tN.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(tI(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),tN.push(this.deps),this.deps=null)}}function tq(e){let t=tT.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tj(e)?tQ(t,e):tV(t,e),t}function tC(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!tA(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function tj(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}tP.count=0;function tM(e,t){let r=e.parents.size;if(r){let n=tI(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function tQ(e,t){tR(e.childValues.has(t)),tR(tj(t));let r=!tj(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tN.pop()||new Set;e.dirtyChildren.add(t),r&&tM(e,tQ)}function tV(e,t){tR(e.childValues.has(t)),tR(!tj(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):tA(r,t.value)||e.setDirty(),tL(e,t),tj(e)||tM(e,tV)}function tL(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(tN.length<100&&tN.push(r),e.dirtyChildren=null))}function tB(e){e.childValues.size>
10&&e.childValues.forEach((t,r)=>{tU(e,r)}),e.forgetDeps(),tR(null===e.dirtyChildren)}function tU(e,t){t.parents.delete(e),e.childValues.delete(t),tL(e,t)}let tz={setDirty:!0,dispose:!0,forget:!0};function tW(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=tT.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(tx(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&tD.call(tz,r)?r:"setDirty";tI(n).forEach(e=>e[i]()),t.delete(e),tx(n)}},n}function tK(...e){return(t||(t=new td("function"==typeof WeakMap))).lookupArray(e)}let tY=new Set;function tG(e,{max:t=65536,keyArgs:r,makeCacheKey:n=tK,normalizeResult:i,subscribe:o,cache:a=tv.StrongCache}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new tP(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),tY.add(s),tT.hasValue()||(tY.forEach(e=>e.clean()),tY.clear()),u};function c(e){let t=e&&s.get(e);t&&t.setDirty()}function l(e){let t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}function tH(e){return e}var tJ=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=eb.canUseWeakSet?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(tH,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new tu(eb.canUseWeakMap);this.performWork=tG(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,f.invariant)(Array.isArray(n),77),r.lookupArray(n)},max:B.cacheSizes["documentTransform.cache"],cache:tc.WeakCache})}},e.prototype.performWork=function(e){return en(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),t$=e.i(107799),tX=Object.prototype.toString;function tZ(e,t){switch(tX.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=tZ(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=tZ(e[r],t)}),n;default:return e}}var t0=e.i(436433);function t1(e,t,r,n){var i=t.data,o=(0,l.__rest)(t,["data"]),a=r.data,s=(0,l.__rest)(r,["data"]);return(0,e9.default)(o,s)&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!ey(t,i.variables)||t2(t)))return!0;if(er(t)){var a=ee(t),s=r&&r[a],u=n&&n[a],c=t.selectionSet;if(!c)return(0,e9.default)(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var h=s.length;if(u.length!==h)return!1;for(var p=0;p<h;++p)if(!e(c,s[p],u[p],i))return!1;return!0}return e(c,s,u,i)}var d=V(t,i.fragmentMap);if(d)return!!t2(d)||e(d.selectionSet,r,n,i)})}(ec(e).selectionSet,i,a,{fragmentMap:Q(ea(e)),variables:n})}function t2(e){return!!e.directives&&e.directives.some(t3)}function t3(e){return"nonreactive"===e.name.value}var t8=Object.assign,t9=Object.hasOwnProperty,t5=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=t7)}catch(e){}var r=!o.observers.size;o.observers.add(e);var n=o.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(o.maskResult(n.result)),r&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=n,o.queryManager=r,o.waitForOwnResult=re(i.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var a=r.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,u=void 0===s?"cache-first":s,c=i.fetchPolicy,f=void 0===c?u:c,h=i.initialFetchPolicy,p=void 0===h?"standby"===f?u:f:h;o.options=(0,l.__assign)((0,l.__assign)({},i),{initialFetchPolicy:p,fetchPolicy:f}),o.queryId=n.queryId||r.generateQueryId();var d=ei(o.query);return o.queryName=d&&d.name&&d.name.value,o}return(0,l.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||t$.NetworkStatus.ready,n=(0,l.__assign)((0,l.__assign)({},t),{loading:(0,t$.isNetworkRequestInFlight)(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(re(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(n.data=a.result),(0,e9.equal)(n.data,{})&&(n.data=void 0),a.complete?(delete n.partial,a.complete&&n.networkStatus===t$.NetworkStatus.loading&&("cache-first"===o||"cac
1he-only"===o)&&(n.networkStatus=t$.NetworkStatus.ready,n.loading=!1)):n.partial=!0,n.networkStatus===t$.NetworkStatus.ready&&(n.error||n.errors)&&(n.networkStatus=t$.NetworkStatus.error),!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||n.loading||n.data||n.error||t6(a.missing)}return e&&this.updateLastResult(n),n},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!t1(i,this.last.result,e,this.variables):!(0,e9.equal)(this.last.result,e))||t&&!(0,e9.equal)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,e9.equal)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&t9.call(e,"variables")){var n=es(this.query),i=n.variableDefinitions;i&&i.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||f.invariant.warn(21,e,(null==(t=n.name)?void 0:t.value)||n)}return e&&!(0,e9.equal)(this.options.variables,e)&&(r.variables=this.options.variables=(0,l.__assign)((0,l.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,t$.NetworkStatus.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,l.__assign)((0,l.__assign)({},e.query?e:(0,l.__assign)((0,l.__assign)((0,l.__assign)((0,l.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,l.__assign)((0,l.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=t$.NetworkStatus.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var a=new Set,s=null==e?void 0:e.updateQuery,u="no-cache"!==this.options.fetchPolicy;return u||(0,f.invariant)(s,22),this.queryManager.fetchQuery(n,r,t$.NetworkStatus.fetchMore).then(function(c){if(t.queryManager.removeQuery(n),i.networkStatus===t$.NetworkStatus.fetchMore&&(i.networkStatus=o),u)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:c.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:c.data})},onWatchUpdated:function(e){a.add(e.query)}});else{var f=t.getLast("result"),h=s(f.data,{fetchMoreResult:c.data,variables:r.variables});t.reportResult((0,l.__assign)((0,l.__assign)({},f),{networkStatus:o,loading:(0,t$.isNetworkRequestInFlight)(o),data:h}),t.variables)}return t.maskResult(c)}).finally(function(){u&&!a.has(t.query)&&t4(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,(0,l.__assign)({subscriptionData:r},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&f.invariant.error(23,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,t0.compact)(this.options,e||{});t8(this.options,t)},t.prototype.setVariables=function(e){return(0,e9.equal)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},t$.NetworkStatus.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,i=r.complete,o=e(n,{variables:this.variables,complete:!!i,previousData:n});o&&(t.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,f.invariant)(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;
1e.pollingInfo&&((0,t$.isNetworkRequestInFlight)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},t$.NetworkStatus.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,e9.equal)(t,this.last.variables)&&(r=void 0),this.last=(0,l.__assign)({result:this.queryManager.assumeImmutableResults?e:tZ(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===t$.NetworkStatus.refetch||t===t$.NetworkStatus.fetchMore||t===t$.NetworkStatus.poll,i=this.options.variables,o=this.options.fetchPolicy,a=(0,t0.compact)(this.options,e||{}),s=n?a:t8(this.options,a),u=this.transformDocument(s.query);this.lastQuery=u,!n&&(this.updatePolling(),e&&e.variables&&!(0,e9.equal)(e.variables,i)&&"standby"!==s.fetchPolicy&&(s.fetchPolicy===o||"function"==typeof s.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=t$.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=re(s.fetchPolicy));var c=function(){r.concast===p&&(r.waitForOwnResult=!1)},f=s.variables&&(0,l.__assign)({},s.variables),h=this.fetch(s,t,u),p=h.concast,d=h.fromLink,y={next:function(e){(0,e9.equal)(r.variables,f)&&(c(),r.reportResult(e,f))},error:function(e){(0,e9.equal)(r.variables,f)&&((0,eE.isApolloError)(e)||(e=new eE.ApolloError({networkError:e})),c(),r.reportError(e,f))}};return n||!d&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=y),p.addObserver(y),p},t.prototype.reobserve=function(e,t){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),r},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&e6(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,l.__assign)((0,l.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:t$.NetworkStatus.error,loading:!1});this.updateLastResult(r,t),e6(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,l.__assign)((0,l.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t}(R);function t4(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function t7(e){!1!==globalThis.__DEV__&&f.invariant.error(25,e.message,e.stack)}function t6(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&f.invariant.debug(26,e)}function re(e){return"network-only"===e||"no-cache"===e||"standby"===e}te(t5);var rt=new(eb.canUseWeakMap?WeakMap:Map);function rr(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return rt.set(e,(rt.get(e)+1)%1e15),r.apply(this,arguments)})}function rn(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ri=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;rt.has(r)||(rt.set(r,0),rr(r,"evict"),rr(r,"modify"),rr(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||t$.NetworkStatus.loading;return this.variables&&this.networkStatus!==t$.NetworkStatus.loading&&!(0,e9.equal)(this.variables,e.variables)&&(t=t$.NetworkStatus.setVariables),(0,e9.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){rn(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,e9.equal)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,e9.equal)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():t4(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1rn(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,t$.isNetworkRequestInFlight)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel();var e=this.observableQuery;e&&e.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,l.__assign)((0,l.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,e9.equal)(n,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===rt.get(this.cache)&&(0,e9.equal)(t,r.variables)&&(0,e9.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new eI,a=(0,eO.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,eO.isNonEmptyArray)(e.incremental)){var s=eN(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(ro(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:rt.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&(0,e9.equal)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=t$.NetworkStatus.ready},e.prototype.markError=function(e){return this.networkStatus=t$.NetworkStatus.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function ro(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!e5(e);return!n&&r&&e.data&&(n=!0),n}var ra=eb.canUseWeakMap?WeakMap:Map,rs=eb.canUseWeakSet?WeakSet:Set,ru=new tO,rc=!1;function rl(){rc||(rc=!0,!1!==globalThis.__DEV__&&f.invariant.warn(52))}var rf=e.i(376846);function rh(e,t,r){return ru.withValue(!0,function(){var n=function e(t,r,n,i,o){var a,u=n.knownChanged,c=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var l=0,h=Array.from(t.entries());l<h.length;l++){var p=h[l],d=p[0],y=p[1];if(null===y){c[d]=null;continue}var v=e(y,r,n,i,!1!==globalThis.__DEV__?"".concat(o||"","[").concat(d,"]"):void 0);u.has(v)&&u.add(c),c[d]=v}return u.has(c)?c:t}for(var m=0,g=r.selections;m<g.length;m++){var b=g[m],_=void 0;if(i&&u.add(c),b.kind===s.FIELD){var w=ee(b),E=b.selectionSet;if(void 0===(_=c[w]||t[w]))continue;if(E&&null!==_){var v=e(t[w],E,n,i,!1!==globalThis.__DEV__?"".concat(o||"",".").concat(w):void 0);u.has(v)&&(_=v)}!1===globalThis.__DEV__&&(c[w]=_),!1!==globalThis.__DEV__&&(!i||"__typename"===w||(null==(a=Object.getOwnPropertyDescriptor(c,w))?void 0:a.value)?(delete c[w],c[w]=_):Object.defineProperty(c,w,function(e,t,r,n,i){var o=function(){return ru.getValue()||(!1!==globalThis.__DEV__&&f.invariant.warn(48,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}(w,_,o||"",n.operationName,n.operationType)))}if(b.kind===s.INLINE_FRAGMENT&&(!b.typeCondition||n.cache.fragmentMatches(b,t.__typename))&&(_=e(t,b.selectionSet,n,i,o)),b.kind===s.FRAGMENT_SPREAD){var O=b.name.value,k=n.fragmentMap[O]||(n.fragmentMap[O]=n.cache.lookupFragment(O));(0,f.invariant)(k,47,O);var S=function(e){var t,r,n=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var i=null==(r=n.arguments)?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&i&&(i.value.kind===s.VARIABLE?!1!==globalThis.__DEV__&&f.invariant.warn(82):i.value.kind!==s.STRING?!1!==globalThis.__DEV__&&f.invariant.warn(83):"migrate"!==i.value.value&&!1!==globalThis.__DEV__&&f.invariant.warn(84,i.value.value)),i&&"value"in i.value&&"migrate"===i.value.value)?"migrate":"unmask"}(b);"mask"!==S&&(_=e(t,k.selectionSet,n,"migrate"===S,o))}u.has(_)&&u.add(c)}return"__typename"in t&&!("__typename"in c)&&(c.__typename=t.__typename),Object.keys(c).length!==Object.keys(t).length&&u.add(c),u.has(c)?c:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,rf.maybeDeepFreeze)(n),n})}function rp(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&rl(),e;var i=t.definitions.filter(function(e){return e.kind===s.FRAGMENT_DEFINITION});void 0===n&&((0,f.invariant)(1===i.length,49,i.length),n=i[0].name.value);var o=i.find(function(e){return e.name.value===n});return((0,f.invariant)(!!o,50,n),null==e||(0,e9.default)(e,{}))?e:rh(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:Q(ea(t)),cache:r,mutableTargets:new ra,knownChanged:new rs})}var rd=Object.prototype.hasOwnProperty,ry=Object.create(null),rv=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new L.AutoCleanedWeakCache(B.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new tu(!1),this.noCacheWarningsByQueryId=new Set;var r=new tJ(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
1this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,f.newInvariantError)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,l.__awaiter)(this,arguments,void 0,function(e){var t,r,n,i,o,a,s,u=e.mutation,c=e.variables,h=e.optimisticResponse,p=e.updateQueries,d=e.refetchQueries,y=void 0===d?[]:d,v=e.awaitRefetchQueries,m=void 0!==v&&v,g=e.update,b=e.onQueryUpdated,_=e.fetchPolicy,w=void 0===_?(null==(a=this.defaultOptions.mutate)?void 0:a.fetchPolicy)||"network-only":_,E=e.errorPolicy,O=void 0===E?(null==(s=this.defaultOptions.mutate)?void 0:s.errorPolicy)||"none":E,k=e.keepRootFields,S=e.context;return(0,l.__generator)(this,function(e){switch(e.label){case 0:if((0,f.invariant)(u,28),(0,f.invariant)("network-only"===w||"no-cache"===w,29),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,c=this.getVariables(u,c),!r)return[3,2];return[4,this.localState.addExportedVariables(u,c,S)];case 1:c=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:c,loading:!0,error:null}),i=h&&this.markMutationOptimistic(h,{mutationId:t,document:u,variables:c,fetchPolicy:w,errorPolicy:O,context:S,updateQueries:p,update:g,keepRootFields:k}),this.broadcastQueries(),o=this,[2,new Promise(function(e,r){return e7(o.getObservableFromLink(u,(0,l.__assign)((0,l.__assign)({},S),{optimisticResponse:i?h:void 0}),c,{},!1),function(e){if(e5(e)&&"none"===O)throw new eE.ApolloError({graphQLErrors:e4(e)});n&&(n.loading=!1,n.error=null);var r=(0,l.__assign)({},e);return"function"==typeof y&&(y=y(r)),"ignore"===O&&e5(r)&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:u,variables:c,fetchPolicy:w,errorPolicy:O,context:S,update:g,updateQueries:p,awaitRefetchQueries:m,refetchQueries:y,removeOptimistic:i?t:void 0,onQueryUpdated:b,keepRootFields:k})}).subscribe({next:function(r){o.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,l.__assign)((0,l.__assign)({},r),{data:o.maskOperation({document:u,data:r.data,fetchPolicy:w,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof eE.ApolloError?e:new eE.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&ro(n,e.errorPolicy)){if(ex(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),ex(n)&&(0,eO.isNonEmptyArray)(n.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=eN(a.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&rd.call(u,s)){var c=u[s],l=r.queries.get(o),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var y=c(d,{mutationResult:n,queryName:f&&eo(f)||void 0,queryVariables:h});y&&i.push({result:y,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,u=!(ex(a=n)||"hasNext"in a&&"data"in a)||ex(n)&&!n.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=(0,l.__assign)((0,l.__assign)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&s(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}
1).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:ry}):e;return n!==ry&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,l.__assign)((0,l.__assign)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&f.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:e&&ev(["client","export"],e,!0),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:ev(["nonreactive"],e),nonReactiveQuery:(en(e),j(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,l.__assign)((0,l.__assign)({},e),{directives:(0,l.__spreadArray)((0,l.__spreadArray)([],e.directives||[],!0),[{kind:s.DIRECTIVE,name:{kind:s.NAME,value:"nonreactive"}}
1],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:e$([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:el(ei(e)),asQuery:(0,l.__assign)((0,l.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,l.__assign)((0,l.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,l.__assign)((0,l.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,l.__assign)((0,l.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new ri(this),n=new t5({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,f.invariant)(e.query,30),(0,f.invariant)("Document"===e.query.kind,31),(0,f.invariant)(!e.returnPartialData,32),(0,f.invariant)(!e.pollInterval,33);var n=this.transform(e.query);return this.fetchQuery(t,(0,l.__assign)((0,l.__assign)({},e),{query:n})).then(function(i){return i&&(0,l.__assign)((0,l.__assign)({},i),{data:r.maskOperation({document:n,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,f.newInvariantError)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=t$.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),i.set(e,!1);else if((0,A.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){var r=ez(t.transform(e));n.set(r,eo(e)),i.set(r,!1)}else(0,A.isNonNullObject)(e)&&e.query&&o.add(e)}),this.queries.forEach(function(t,n){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void r.set(n,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&i.has(s)||a&&i.has(ez(a)))&&(r.set(n,o),s&&i.set(s,!0),a&&i.set(ez(a),!0))}}),o.size&&o.forEach(function(e){var n=(0,tn.makeUniqueId)("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new t5({queryManager:t,queryInfo:i,options:(0,l.__assign)((0,l.__assign)({},e),{fetchPolicy:"network-only"})});(0,f.invariant)(o.queryId===n),i.setObservableQuery(o),r.set(n,o)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&f.invariant.warn(35,r):!1!==globalThis.__DEV__&&f.invariant.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(ro(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=e5(n),s=(0,eE.graphQLResultHasProtocolErrors)(n);if(o||s){var u={};if(o&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[eE.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new eE.ApolloError(u)}return"ignore"===a&&delete n.errors,n})};
1if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,u).then(f);return new R(function(e){var t=null;return h.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var o,a,s=this;void 0===i&&(i=null!=(o=null==t?void 0:t.queryDeduplication)?o:this.queryDeduplication);var u=this.getDocumentInfo(e),c=u.serverQuery,f=u.clientQuery;if(c){var h=this.inFlightLinkObservables,p=this.link,d={query:c,variables:r,operationName:eo(c)||void 0,context:this.prepareContext((0,l.__assign)((0,l.__assign)({},t),{forceFetch:!i})),extensions:n};if(t=d.context,i){var y=ez(c),v=z(r),m=h.lookup(y,v);if(!(a=m.observable)){var g=new tr([e3(p,d)]);a=m.observable=g,g.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?g.beforeNext(e):h.remove(y,v)})}}else a=new tr([e3(p,d)])}else a=new tr([R.of({data:{}})]),t=this.prepareContext(t);return f&&(a=e7(a,function(e){return s.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})})),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return e7(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=e4(o),s=a.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===u)throw e.markError(new eE.ApolloError({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:t$.NetworkStatus.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=a,c.networkStatus=t$.NetworkStatus.error),c},function(t){var r=(0,eE.isApolloError)(t)?t:new eE.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=t$.NetworkStatus.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,d=t.returnPartialData,y=t.notifyOnNetworkStatusChange,v=t.context,m=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==y&&y,context:void 0===v?{}:v}),g=function(e){m.variables=e;var n=a.fetchQueryByPolicy(u,m,r);return"standby"!==m.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)i=new tr(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),o=!0;else{var _=g(m.variables);o=_.fromLink,i=new tr(_.sources)}return i.promise.then(b,b),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,tn.makeUniqueId)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof ri&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}
1),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,o=e.data;if(!1!==globalThis.__DEV__){var a,s=e.fetchPolicy,u=e.id,c=null==(t=ei(i))?void 0:t.operation,l=(null!=(r=null==c?void 0:c[0])?r:"o")+u;!this.dataMasking||"no-cache"!==s||(a=!0,j(i,{FragmentSpread:function(e){if(!(a=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return C}}),a)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&f.invariant.warn(37,null!=(n=eo(i))?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&rl(),e;var n,i=ei(t);return((0,f.invariant)(i,51),null==e)?e:rh(e,i.selectionSet,{operationType:i.operation,operationName:null==(n=i.name)?void 0:n.value,fragmentMap:Q(ea(t)),cache:r,mutableTargets:new ra,knownChanged:new rs})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?rp(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,f=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var d=function(){return e.getDiff()},y=function(t,r){void 0===r&&(r=e.networkStatus||t$.NetworkStatus.loading);var a=t.result;!1===globalThis.__DEV__||c||(0,e9.equal)(a,{})||t6(t.missing);var s=function(e){return R.of((0,l.__assign)({data:e,loading:(0,t$.isNetworkRequestInFlight)(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:a},context:f,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===u&&r===t$.NetworkStatus.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},v="no-cache"===a?0:r===t$.NetworkStatus.refetch&&"merge"!==s?1:2,m=function(){return n.getResultsFromLink(e,v,{query:i,variables:o,context:f,fetchPolicy:a,errorPolicy:u})},g=h&&"number"==typeof p&&p!==r&&(0,t$.isNetworkRequestInFlight)(r);switch(a){default:case"cache-first":var b=d();if(b.complete)return{fromLink:!1,sources:[y(b,e.markReady())]};if(c||g)return{fromLink:!0,sources:[y(b),m()]};return{fromLink:!0,sources:[m()]};case"cache-and-network":var b=d();if(b.complete||c||g)return{fromLink:!0,sources:[y(b),m()]};return{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[y(d(),e.markReady())]};case"network-only":if(g)return{fromLink:!0,sources:[y(d()),m()]};return{fromLink:!0,sources:[m()]};case"no-cache":if(g)return{fromLink:!0,sources:[y(e.getDiff()),m()]};return{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ri(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,l.__assign)((0,l.__assign)((0,l.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function rm(e){return e.kind===s.FIELD||e.kind===s.FRAGMENT_SPREAD||e.kind===s.INLINE_FRAGMENT}var rg=new tO,rb=new WeakMap;function r_(e){var t=rb.get(e);return t||rb.set(e,t={vars:new Set,dep:tW()}),t}function rw(e){r_(e).vars.forEach(function(t){return t.forgetCache(e)})}function rE(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){var t;r_(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=rg.getValue();s&&(i(s),r_(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),r_(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var rO=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=eS(t.resolvers,e)}):this.resolvers=eS(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,l.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,l.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return(0,l.__assign)((0,l.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return ev(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return eZ(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,l.__assign)((0,l.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,l.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,l.__generator)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,l.__assign)((0,l.__assign)({},t),e.exportedVariables)})]:[2,(0,l.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return j(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return C}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===ec(e).operation?e:j(e,{OperationDefinition:{enter:function(e){return(0,l.__assign)((0,l.__assign)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,l.__awaiter)(this,arguments,void 0,function(e,t,r,n,i,o){var a,s,u,c,f,h,p,d,y;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,l.__generator)(this,function(v){return a=ec(e),s=Q(ea(e)),u=this.collectSelectionsToResolve(a,s),f=(c=a.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",h=this,p=h.cache,d=h.client,y={fragmentMap:s,context:(0,l.__assign)((0,l.__assign)({},r),{cache:p,client:d}),variables:n,fragmentMatcher:i,defaultOperationType:f,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,l.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,c=this;return(0,l.__generator)(this,function(h){return i=n.fragmentMap,o=n.context,a=n.variables,s=[r],u=function(e){return(0,l.__awaiter)(c,void 0,void 0,function(){var u,c;return(0,l.__generator)(this,function(l){return(t||n.selectionsToResolve.has(e))&&ey(e,a)?er(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[ee(e)]=t,r))})]:("InlineFragment"===e.kind?u=e:(u=i[e.name.value],(0,f.invariant)(u,19,e.name.value)),u&&u.typeCondition&&(c=u.typeCondition.name.value,n.fragmentMatcher(r,c,o)))?[2,this.resolveSelectionSet(u.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return eT(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,l.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,c,f,h,p,d=this;return(0,l.__generator)(this,function(l){return r?(i=n.variables,s=(o=e.name.value)!==(a=ee(e)),c=Promise.resolve(u=r[a
1]||r[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||n.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[s?o:a])&&(c=Promise.resolve(rg.withValue(this.cache,p,[r,Z(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,a=null!=(o=null==(i=e.directives)?void 0:i.some(function(e){return"client"===e.name.value}))&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),j(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&rm(e)&&o.add(e)})},FragmentSpread:function(n,i,a,s,u){var c=t[n.name.value];(0,f.invariant)(c,20,n.name.value);var l=e(c);l.size>0&&(u.forEach(function(e){r(e)&&rm(e)&&o.add(e)}),o.add(n),l.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}(),rk=e.i(6195),rS=!1,rT=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,f.newInvariantError)(16);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,s=e.documentTransform,u=e.ssrMode,c=void 0!==u&&u,h=e.ssrForceFetchDelay,p=void 0===h?0:h,d=e.connectToDevTools,y=e.queryDeduplication,v=void 0===y||y,m=e.defaultOptions,g=e.defaultContext,b=e.assumeImmutableResults,_=void 0===b?a.assumeImmutableResults:b,w=e.resolvers,E=e.typeDefs,O=e.fragmentMatcher,k=e.name,S=e.version,T=e.devtools,D=e.dataMasking,I=e.link;I||(I=n?new e2({uri:n,credentials:i,headers:o}):ed.empty()),this.link=I,this.cache=a,this.disableNetworkFetches=c||p>0,this.queryDeduplication=v,this.defaultOptions=m||Object.create(null),this.typeDefs=E,this.devtoolsConfig=(0,l.__assign)((0,l.__assign)({},T),{enabled:null!=(t=null==T?void 0:T.enabled)?t:d}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),p&&setTimeout(function(){return r.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=e8.version,this.localState=new rO({cache:a,client:this,resolvers:w,fragmentMatcher:O}),this.queryManager=new rv({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:s,queryDeduplication:v,ssrMode:c,dataMasking:!!D,clientAwareness:{name:k,version:S},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!rS&&!1!==globalThis.__DEV__&&(rS=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&f.invariant.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
1,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,rk.mergeOptions)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,l.__assign)((0,l.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,rk.mergeOptions)(this.defaultOptions.query,e)),(0,f.invariant)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,l.__assign)((0,l.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,rk.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,l.__assign)((0,l.__assign)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,l.__assign)((0,l.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return e3(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&f.invariant.debug(18,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(rT.prototype.getMemoryInternals=U.getApolloClientMemoryInternals),e.s(["ApolloClient",0,rT],541793);var rD=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=tG(M,{max:B.cacheSizes["cac
1he.fragmentQueryDocuments"]||1e3,cache:tc.WeakCache})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,l.__assign)((0,l.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,a=e.optimistic,s=(0,l.__rest)(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(n,i),c=void 0===o||"string"==typeof o?o:this.identify(o),h=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var p=i||eu(n).name.value;c||!1===globalThis.__DEV__||f.invariant.warn(1,p)}var d=(0,l.__assign)((0,l.__assign)({},s),{returnPartialData:!0,id:c,query:u,optimistic:void 0===a||a});return new R(function(o){return r.watch((0,l.__assign)((0,l.__assign)({},d),{immediate:!0,callback:function(a){var s=h?rp(a.result,n,r,i):a.result;if(!(t&&t1(u,{data:t.result},{data:s},e.variables))){var c={data:s,complete:!!a.complete};a.missing&&(c.missing=eT(a.missing.map(function(e){return e.missing}))),t=(0,l.__assign)((0,l.__assign)({},a),{result:s}),o.next(c)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,l.__assign)((0,l.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,l.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=(0,l.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,l.__assign)((0,l.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,l.__assign)((0,l.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(rD.prototype.getMemoryInternals=U.getApolloCacheMemoryInternals);var rI=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(a={})[s.path[u]]=s.missing,s.missing=a}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,l.__extends)(t,e),t}(Error),rx=Object.prototype.hasOwnProperty;function rN(e){return null==e}function rR(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=rN(n)?rN(i)?void 0:{_id:i}:{id:n}),rN(n)&&!rN(i)&&(n=i),!rN(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var rA={dataIdFromObject:rR,addTypename:!0,resultCaching:!0,canonizeResults:!1};function rF(e){var t=e.canonizeResults;return void 0===t?rA.canonizeResults:t}var rP=/^[_a-z][_0-9a-z]*/i;function rq(e){var t=e.match(rP);return t?t[0]:e}function rC(e){return(0,A.isNonNullObject)(e)&&!G(e)&&!(0,eO.isArray)(e)}function rj(e,t){var r=Q(ea(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var rM=Object.create(null),rQ=function(){return rM},rV=Object.create(null),rL=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,rf.maybeDeepFreeze)(G(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return G(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Y(e);if(G(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Y(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,l.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),rx.call(this.data,e)){var r=this.data[e];if(r&&rx.call(r,t))return r[t]}return"__typename"===t&&rx.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof rz?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),rx.call(this.data,e))?this.data[e]:this instanceof rz?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;G(e)&&(e=e.__ref),G(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,f.invariant)("string"==typeof r,2);var a=new eI(rK).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=rq(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof rz||delete a[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,a=!0,s={DELETE:rM,INVALIDATE:rV,isReference:G,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Y(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=rq(u),h=n[u];if(void 0!==h){var p="function"==typeof t?t:t[u]||t[c];if(p){var d=p===rQ?rM:p((0,rf.maybeDeepFreeze)(h),(0,l.__assign)((0,l.__assign)({},s),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));if(d===rV)r.group.dirty(e,u);else if(d===rM&&(d=void 0),d!==h&&(i[u]=d,o=!0,h=d,!1!==globalThis.__DEV__)){var y=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&f.invariant.warn(3,e),!0};if(G(d))y(d);else if(Array.isArray(d))for(var v=!1,m=void 0,g=0,b=d;g<b.length;g++){var _=b[g];if(G(_)){if(v=!0,y(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(m=_);if(v&&void 0!==m){!1!==globalThis.__DEV__&&f.invariant.warn(4,m);break}}}}void 0!==h&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof rz?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=rQ,n):rQ)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(rx.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof rz&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){rx.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&rx.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,l.__rest)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof rz?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){rx.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof rz;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!rx.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){G(e)&&(t[e.__ref]=!0),(0,A.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,A.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),rB=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?tW():null,this.keyMaker=new tu(eb.canUseWeakMap)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=rq(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function rU(e,t){rY(e)&&e.group.depend(t,"__exists")}o=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new rB(void 0===n||n))||this;return o.stump=new rW(o),o.storageTrie=new tu(eb.canUseWeakMap),i&&o.replace(i),o}return(0,l.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(i=rL||(rL={})),i.Root=o;var rz=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,l.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,e9.equal)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,l.__assign)((0,l.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return rx.call(this.data,t)?(0,l.__assign)((0,l.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(rL),rW=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new rB(t.group.caching,t.group))||this}return(0,l.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(rz);function rK(e,t,r){var n=e[r],i=t[r];return(0,e9.equal)(n,i)?n:i}function rY(e){return!!(e instanceof rL&&e.group.caching)}var rG=function(){function e(){this.known=new(eb.canUseWeakSet?WeakSet:Set),this.pool=new tu(eb.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,A.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,A.isNonNullObject)(e)){var t=(0,A.isNonNullObject)(e)?(0,eO.isArray)(e)?e.slice(0):(0,l.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,A.isNonNullObject)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function rH(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var rJ=function(){function e(e){var t=this;this.knownResults=new(eb.canUseWeakMap?WeakMap:Map),this.config=(0,t0.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:rF(e)}),this.canon=e.canon||new rG,this.executeSelectionSet=tG(function(e){var r,n=e.context.canonizeResults,i=rH(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?(0,l.__assign)((0,l.__assign)({},o),{result:t.canon.admit(o.result)}):o:(rU(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||B.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:rH,makeCacheKey:function(e,t,r,n){if(rY(r.store))return r.store.makeCacheKey(e,G(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=tG(function(e){return rU(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||B.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(rY(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new rG},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,o=e.variables,a=e.returnPartialData,s=e.canonizeResults,u=void 0===s?this.config.canonizeResults:s,c=this.config.cache.policies;o=(0,l.__assign)((0,l.__assign)({},el(es(n))),o);var f=Y(void 0===i?"ROOT_QUERY":i),h=this.executeSelectionSet({selectionSet:ec(n).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,l.__assign)({store:r,query:n,policies:c,variables:o,varString:z(o),canonizeResults:u},rj(n,this.config.fragments))});if(h.missing&&(t=[new rI(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,n,o)],!(void 0===a||a)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(rY(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(G(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 u=a.variables,c=a.policies,l=a.store.getFieldValue(i,"__typename"),h=[],p=new eI;function d(e,r){var n;return e.missing&&(t=p.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&h.push({__typename:l});var y=new Set(n.selections);
1y.forEach(function(e){var n,v;if(ey(e,u))if(er(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),g=ee(e);void 0===m?eX.added(e)||(t=p.merge(t,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(G(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,eO.isArray)(m)?m.length>0&&(m=d(r.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:a}),g)):e.selectionSet?null!=m&&(m=d(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:G(m)?m:o,context:a}),g)):a.canonizeResults&&(m=r.canon.pass(m)),void 0!==m&&h.push(((v={})[g]=m,v))}else{var b=V(e,a.lookupFragment);if(!b&&e.kind===s.FRAGMENT_SPREAD)throw(0,f.newInvariantError)(10,e.name.value);b&&c.fragmentMatches(b,l)&&b.selectionSet.selections.forEach(y.add,y)}});var v={result:eT(h),missing:t},m=a.canonizeResults?this.canon.admit(v):(0,rf.maybeDeepFreeze)(v);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new eI;function u(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,eO.isArray)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:G(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,A.isNonNullObject)(r)&&((0,f.invariant)(!G(r),11,G(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(a.store,n,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),r$=e.i(290690),rX=Object.create(null);function rZ(e){var t=JSON.stringify(e);return rX[t]||(rX[t]=Object.create(null))}function r0(e){var t=rZ(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=r2(e,function(e){var i=r8(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&rx.call(t,e[0])&&(i=r8(t,e,r3)),(0,f.invariant)(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function r1(e){var t=rZ(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(r2(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,eO.isNonEmptyArray)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&Z(s,i);return u&&r8(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&rx.call(i,c)){var l=e.slice(0);return l[0]=c,r8(i,l)}return}if(t)return r8(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function r2(e,t){var r=new eI;return(function e(t){var r=rZ(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,eO.isArray)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,eO.isArray)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function r3(e,t){return e[t]}function r8(e,t,r){return r=r||r3,function e(t){return(0,A.isNonNullObject)(t)?(0,eO.isArray)(t)?t.map(e):r2(Object.keys(t).sort(),function(e){return r8(t,e)}):t}(t.reduce(function e(t,n){return(0,eO.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function r9(e){return void 0!==e.args?e.args:e.field?Z(e.field,e.variables):null}var r5=function(){},r4=function(e,t){return t.fieldName},r7=function(e,t,r){return(0,r.mergeObjects)(e,t)},r6=function(e,t){return t},ne=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,l.__assign)({dataIdFromObject:rR},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,o=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a=t&&t.storeObject||e,s=(0,l.__assign)((0,l.__assign)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=nr(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;return ru.withValue(!0,function(){for(;c;){var t=c((0,l.__assign)((0,l.__assign)({},e),a),s);if((0,eO.isArray)(t))c=r0(t);else{n=t;break}}}),n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,o=n.mutationType,a=n.subscriptionType,s=(0,l.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),rx.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?r7:!1===t?r6:e.merge}a(n,t.merge),n.keyFn=!1===i?r5:(0,eO.isArray)(i)?r0(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?r4:(0,eO.isArray)(s)?r1(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||r4)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,f.invariant)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(rP);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!rx.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,l.__rest)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(r&&this.fuzzySubtypes.size),l=!1,h=0;h<s.length;++h){var p=s[h];if(p.has(o))return a.has(o)||(l&&!1!==globalThis.__DEV__&&f.invariant.warn(7,t,o),a.add(o)),!0;p.forEach(u),c&&h===s.length-1&&function e(t,r,n){return!!(0,A.isNonNullObject)(r)&&((0,eO.isArray)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if(er(t)&&ey(t,n)){var i=ee(t);return rx.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r,n,i,o,a=e.typename,s=e.fieldName,u=this.getFieldPolicy(a,s,!1),c=u&&u.keyFn;if(c&&a)for(var l={typename:a,fieldName:s,field:e.field||null,variables:e.variables},f=r9(e);c;){var h=c(f,l);if((0,eO.isArray)(h))c=r1(h);else{o=h||s;break}}return(void 0===o&&(o=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return H(n[e.name.value],i,o,r)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,n=e.value;return H(i,t,n,r)})),X(t.name.value,i,n)):X(s,r9(e))),!1===o)?s:s===rq(o)?o:s+":"+o},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=rq(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=nt(this,r,e,t,t.store.getStorage(G(r)?r.__ref:r,i));return rg.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===r7?nn(n.store)(e,t):s===r6?t:(n.overwrite&&(e=void 0),s(e,t,nt(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function nt(e,t,r,n,i){var o=e.getStoreFieldName(r),a=rq(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:r9(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:G,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(nr
1(arguments,t,s),n)},mergeObjects:nn(n.store)}}function nr(e,t,r){var n,i=e[0],o=e[1],a=e.length;return"string"==typeof i?n={fieldName:i,from:a>1?o:t}:(n=(0,l.__assign)({},i),rx.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&f.invariant.warn(8,(0,r$.stringifyForDisplay)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function nn(e){return function(t,r){if((0,eO.isArray)(t)||(0,eO.isArray)(r))throw(0,f.newInvariantError)(9);if((0,A.isNonNullObject)(t)&&(0,A.isNonNullObject)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(G(t)&&rC(r))return e.merge(t.__ref,r),t;if(rC(t)&&G(r))return e.merge(t,r.__ref),r;if(rC(t)&&rC(r))return(0,l.__assign)((0,l.__assign)({},t),r)}return r}}function ni(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,l.__assign)((0,l.__assign)({},e),{clientOnly:t,deferred:r})),i}var no=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=ei(n),c=new eI;a=(0,l.__assign)((0,l.__assign)({},el(u)),a);var h=(0,l.__assign)((0,l.__assign)({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:z(a)},rj(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:h});if(!G(p))throw(0,f.newInvariantError)(12,i);return h.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=Y(n);if(o&&o.map.size){var u=r.applyMerges(o,s,i,h);if(G(u))return;i=u}if(!1!==globalThis.__DEV__&&!h.overwrite){var c=Object.create(null);a.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var p=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};
1Object.keys(i).forEach(function(e){!0!==c[rq(e)]||p(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(!(!a||G(o)||(0,e9.equal)(o,a)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(a,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=rq(r),c="".concat(s,".").concat(u);if(!nl.has(c)){nl.add(c);var h=[];(0,eO.isArray)(o)||(0,eO.isArray)(a)||[o,a].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),!1!==globalThis.__DEV__&&f.invariant.warn(15,u,s,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",c,(0,l.__assign)({},o),(0,l.__assign)({},a))}}}}(s,i,e,h.store)})}e.merge(n,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=Object.create(null),c=r&&s.rootTypenamesById[r]||et(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof c&&(u.__typename=c);var h=function(){var e=nr(arguments,u,o.variables);if(G(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,l.__assign)((0,l.__assign)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return s.readField(e,o)},p=new Set;this.flattenFields(i,n,o,c).forEach(function(e,r){var i,o=n[ee(r)];if(p.add(r),void 0!==o){var l=s.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),d=ns(a,l),y=t.processFieldValue(o,r,r.selectionSet?ni(e,!1,!1):e,d),v=void 0;r.selectionSet&&(G(y)||rC(y))&&(v=h("__typename",y));var m=s.getMergeFunction(c,r.name.value,v);m?d.info={field:r,typename:c,merge:m}:nc(a,l),u=e.merge(u,((i={})[l]=y,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||eX.added(r)||s.getReadFunction(c,r.name.value)||!1===globalThis.__DEV__||f.invariant.error(13,ee(r),n)});try{var d=s.identify(n,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:h}),y=d[0],v=d[1];r=r||y,v&&(u=o.merge(u,v))}catch(e){if(!r)throw e}if("string"==typeof r){var m=Y(r),g=o.written[r]||(o.written[r]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(n,m,i,o)))return m;var b=o.incomingById.get(r);return b?(b.storeObject=o.merge(b.storeObject,u),b.mergeTree=function e(t,r){if(t===r||!r||nu(r))return t;if(!t||nu(t))return r;var n=t.info&&r.info?(0,l.__assign)((0,l.__assign)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var a=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),a.delete(n)}),a.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(b.mergeTree,a),p.forEach(function(e){return b.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:u,mergeTree:nu(a)?void 0:a,fieldNodeSet:p}),m}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,eO.isArray)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,ns(n,o));return nc(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?tZ(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=et(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new tu(!1);return!function e(u,c){var l=a.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach(function(a){if(ey(a,r.variables)){var u=c.clientOnly,l=c.deferred;if(!(u&&l)&&(0,eO.isNonEmptyArray)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=Z(e,r.variables);n&&!1===n.if||(l=!0)}}),er(a)){var h=i.get(a);h&&(u=u&&h.clientOnly,l=l&&h.deferred),i.set(a,ni(r,u,l))}else{var p=V(a,r.lookupFragment);if(!p&&a.kind===s.FRAGMENT_SPREAD)throw(0,f.newInvariantError)(14,a.name.value);p&&o.fragmentMatches(p,n,t,r.variables)&&e(p.selectionSet,ni(r,u,l))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o=this;if(e.map.size&&!G(r)){var a,s,u=!(0,eO.isArray)(r)&&(G(t)||rC(t))?t:void 0,c=r;u&&!i&&(i=[G(u)?u.__ref:u]);var h=function(e,t){return(0,eO.isArray)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
1e.map.forEach(function(e,t){var r=h(u,t),a=h(c,t);if(void 0!==a){i&&i.push(t);var l=o.applyMerges(e,r,a,n,i);l!==a&&(s=s||new Map).set(t,l),i&&(0,f.invariant)(i.pop()===t)}}),s&&(r=(0,eO.isArray)(c)?c.slice(0):(0,l.__assign)({},c),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),na=[];function ns(e,t){var r=e.map;return r.has(t)||r.set(t,na.pop()||{map:new Map}),r.get(t)}function nu(e){return!e||!(e.info||e.map.size)}function nc(e,t){var r=e.map,n=r.get(t);n&&nu(n)&&(na.push(n),r.delete(t))}var nl=new Set,nf=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new tJ(eX),n.assumeImmutableResults=!0,n.makeVar=rE,n.txCount=0,r=t,n.config=(0,t0.compact)(rA,r),n.addTypename=!!n.config.addTypename,n.policies=new ne({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,l.__extends)(t,e),t.prototype.init=function(){var e=this.data=new rL.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new no(this,this.storeReader=new rJ({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:rF(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=tG(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||B.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(rY(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,z({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,l.__assign)((0,l.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof rI)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(rx.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,l.__assign)((0,l.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||(t=this,r_(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&rw(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){z.reset(),ez.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(G(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&f.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(rx.call(e,"id"))return!1;e=(0,l.__assign)((0,l.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),z.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),rw(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return s&&!this.txCount&&this.broadcastWatches((0,l.__assign)((0,l.__assign)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches((0,l.__assign)((0,l.__assign)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,e9.equal)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(rD);!1!==globalThis.__DEV__&&(nf.prototype.getMemoryInternals=U.getInMemoryCacheMemoryInternals),e.s(["InMemoryCache",0,nf],204359);var nh=ed.from;function np(e){return new ed(function(t,r){return new R(function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){if(i.errors?a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,eE.graphQLResultHasProtocolErrors)(i)&&(a=e({protocolErrors:i.extensions[eE.PROTOCOL_ERRORS_SYMBOL],response:i,operation:t,forward:r})),a){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}e.s(["from",0,nh],195594);function nd(e){var t=ed.call(this)||this;return t.link=np(e),t}(0,l.__extends)(nd,ed),nd.prototype.request=function(e,t){return this.link.request(e,t)},e.s(["onError",0,np],834510),e.s(["setContext",0,function(e){return new ed(function(t,r){var n=(0,l.__rest)(t,[]);return new R(function(i){var o,a=!1;return Promise.resolve(n).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})}],204425)},709578,e=>{"use strict";let t={identity_in_use:"This sign-in identity is already linked to a different account. Contact support if you believe this is a mistake.",not_verified:"The identity provider reports this email address as unverified. Verify it with your provider and try again.",link_failed:"Something went wrong while linking this sign-in method. Please try again.",session_changed:"Your session changed while linking. Please try again.",link_session_stale:"Your session expired before linking finished. Please sign in again and retry.",not_a_member:"You are not a member of the organisation that this SSO provider belongs to.",email_domain_not_allowed:"This email domain is not allowed on this instance.",last_method:"You must keep at least one sign-in method.",org_enforced:"Your organisation requires this sign-in method.",scim_managed:"Your organisation manages this sign-in method.",invalid_state:"The sign-in flow expired or was tampered with. Please try again.",missing_code_or_state:"The sign-in flow was incomplete. Please try again.",token_exchange_failed:"Could not complete authentication with the provider. Please try again.",no_access_token:"Could not complete authentication with the provider. Please try again.",sso_config_not_found:"This SSO provider is no longer configured. Contact your administrator.",sso_discovery_failed:"Could not reach the identity provider. Please try again or c
1ontact your administrator.",sso_misconfigured:"This organisation's SSO provider is misconfigured. Contact your administrator.",unsupported_provider:"This sign-in provider is not supported on this instance.",unknown_provider:"This sign-in provider is not supported on this instance.",login_failed:"Sign-in failed. Please try again.",authentication_failed:"Authentication with the provider failed. Please try again."},r=e=>`/login?callbackUrl=${encodeURIComponent(e)}&reauth=1`;r("/account");let n=null,i=null;e.s(["accountErrorMessage",0,e=>t[e]||"Something went wrong. Please try again.","buildReauthUrl",0,r,"isReauthError",0,e=>!!e&&e.includes("reauth_required"),"knownErrorMessage",0,e=>t[e]??null,"reauthRedirectUrl",0,()=>{let e=window.location.pathname,t=n?.();return t&&Object.keys(t).length>0?r(`${e}?${new URLSearchParams(t).toString()}`):r(e)},"registerReauthPromptListener",0,e=>(i=e,()=>{i===e&&(i=null)}),"registerReauthState",0,e=>(n=e,()=>{n===e&&(n=null)}),"requestReauthPrompt",0,e=>!!i&&(i(e),!0)])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.